diff --git a/AUTHORS.txt b/AUTHORS.txt new file mode 100644 index 000000000..8e5b831e7 --- /dev/null +++ b/AUTHORS.txt @@ -0,0 +1,39 @@ +Bullet Physics is created by Erwin Coumans with contributions from the following authors / copyright holders: + +AMD +Apple +Steve Baker +Gino van den Bergen +Nicola Candussi +Erin Catto +Lawrence Chai +Erwin Coumans +Christer Ericson +Disney Animation +Google +Dirk Gregorius +Marcus Hennix +MBSim Development Team +Takahiro Harada +Simon Hobbs +John Hsu +Ole Kniemeyer +Jay Lee +Francisco Leon +Vsevolod Klementjev +Phil Knight +John McCutchan +Steven Peters +Roman Ponomarev +Nathanael Presson +Gabor PUHR +Arthur Shek +Russel Smith +Sony +Jakub Stephien +Marten Svanfeldt +Pierre Terdiman +Steven Thompson +Tamas Umenhoffer + +If your name is missing, please send an email to erwin.coumans@gmail.com or file an issue at http://github.com/bulletphysics/bullet3 diff --git a/CMakeLists.txt b/CMakeLists.txt index 2962c1f79..c54b9abfd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,7 @@ ENDIF(INTERNAL_CREATE_MSVC_RELATIVE_PATH_PROJECTFILES) ENDIF (WIN32) -OPTION(BUILD_CPU_DEMOS "Build original Bullet CPU demos" ON) +OPTION(BUILD_CPU_DEMOS "Build original Bullet CPU examples" ON) @@ -189,45 +189,9 @@ ENDIF (OPENGL_FOUND) OPTION(BUILD_BULLET2_DEMOS "Set when you want to build the Bullet 2 demos" ON) IF(BUILD_BULLET2_DEMOS) -IF (USE_GLUT) - IF (MSVC) - SET(GLUT_FOUND TRUE) - ADD_DEFINITIONS(-DBT_USE_FREEGLUT) - IF (CMAKE_CL_64) - message("Win64 using static freeglut in Demos/Glut/glut64.lib") - SET(GLUT_glut_LIBRARY ${BULLET_PHYSICS_SOURCE_DIR}/Demos/Glut/glut64.lib glu32.lib gdi32.lib winmm.lib user32.lib) - ELSE(CMAKE_CL_64) - message("Win32 using static freeglut in Demos/Glut/glut32.lib") - SET(GLUT_glut_LIBRARY ${BULLET_PHYSICS_SOURCE_DIR}/Demos/Glut/glut32.lib glu32.lib gdi32.lib winmm.lib user32.lib) - ENDIF (CMAKE_CL_64) - SET(GLUT_INCLUDE_DIR ${BULLET_PHYSICS_SOURCE_DIR}/Demos/Glut ) - ELSE() - FIND_PACKAGE(GLUT) - IF (GLUT_FOUND) - MESSAGE("GLUT FOUND") - MESSAGE(${GLUT_glut_LIBRARY}) - ELSE (GLUT_FOUND) -# IF (MINGW) -# MESSAGE ("GLUT NOT FOUND not found, trying to use MINGW glut32") -# SET(GLUT_glut_LIBRARY glut32) -# #TODO add better GLUT detection for MinGW -# SET(GLUT_FOUND TRUE) -# ELSE (MINGW) - MESSAGE("GLUT NOT FOUND") -# ENDIF (MINGW) - ENDIF (GLUT_FOUND) - ENDIF (MSVC) - - IF(NOT WIN32 AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING) - # This is added for linux. This should always work if everything is installed and working fine. - SET(GLUT_INCLUDE_DIR /usr/include /usr/local/include) - ENDIF() -ENDIF(USE_GLUT) - - - IF(EXISTS ${BULLET_PHYSICS_SOURCE_DIR}/Demos AND IS_DIRECTORY ${BULLET_PHYSICS_SOURCE_DIR}/Demos) - SUBDIRS(Demos) + IF(EXISTS ${BULLET_PHYSICS_SOURCE_DIR}/examples AND IS_DIRECTORY ${BULLET_PHYSICS_SOURCE_DIR}/examples) + SUBDIRS(examples) ENDIF() ENDIF(BUILD_BULLET2_DEMOS) @@ -257,7 +221,6 @@ ENDIF(BUILD_BULLET3) IF(BUILD_OPENGL3_DEMOS) IF(EXISTS ${BULLET_PHYSICS_SOURCE_DIR}/Demos3 AND IS_DIRECTORY ${BULLET_PHYSICS_SOURCE_DIR}/Demos3) SUBDIRS(Demos3) - SUBDIRS(btgui) ENDIF() ENDIF(BUILD_OPENGL3_DEMOS) diff --git a/Demos/AllBulletDemos/CMakeLists.txt b/Demos/AllBulletDemos/CMakeLists.txt deleted file mode 100644 index 5fb0dce1c..000000000 --- a/Demos/AllBulletDemos/CMakeLists.txt +++ /dev/null @@ -1,87 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/Extras -${BULLET_PHYSICS_SOURCE_DIR}/Extras/GIMPACTUtils -${BULLET_PHYSICS_SOURCE_DIR}/Extras/HACD -${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition -${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML -${BULLET_PHYSICS_SOURCE_DIR}/Extras/LibXML/include -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter -${VECTOR_MATH_INCLUDE} -) - -LINK_LIBRARIES( -GLUI GIMPACTUtils HACD ConvexDecomposition OpenGLSupport BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -SET(AllBulletDemos_SRCS - Main.cpp - DemoEntries.cpp - ../CcdPhysicsDemo/CcdPhysicsDemo.cpp - ../BasicDemo/BasicDemo.cpp - ../BspDemo/BspDemo.cpp - ../BspDemo/BspConverter.cpp - ../BspDemo/BspLoader.cpp - ../DynamicControlDemo/MotorDemo.cpp - ../ConcaveDemo/ConcavePhysicsDemo.cpp - ../ConcaveRaycastDemo/ConcaveRaycastDemo.cpp - ../ConcaveConvexcastDemo/ConcaveConvexcastDemo.cpp - ../ConvexDecompositionDemo/ConvexDecompositionDemo.cpp - ../SliderConstraintDemo/SliderConstraintDemo.cpp - ../RagdollDemo/RagdollDemo.cpp - ../GimpactTestDemo/GimpactTestDemo.cpp - ../Raytracer/Raytracer.cpp - ../GjkConvexCastDemo/LinearConvexCastDemo.cpp - ../ForkLiftDemo/ForkLiftDemo.cpp - ../SoftDemo/SoftDemo.cpp - ../ConstraintDemo/ConstraintDemo.cpp - ../Benchmarks/BenchmarkDemo.cpp - ../Box2dDemo/Box2dDemo.cpp - -) - -IF (WIN32) - ADD_EXECUTABLE(AppAllBulletDemos - ${AllBulletDemos_SRCS} - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppAllBulletDemos - ${AllBulletDemos_SRCS} - ) -ENDIF() - - - - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( - TARGET AppAllBulletDemos - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SerializeDemo/testFile.bullet ${CMAKE_CURRENT_BINARY_DIR}/testFile.bullet - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/file.obj ${CMAKE_CURRENT_BINARY_DIR} - ) -ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppAllBulletDemos PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppAllBulletDemos PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppAllBulletDemos PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/AllBulletDemos/DemoEntries.cpp b/Demos/AllBulletDemos/DemoEntries.cpp deleted file mode 100644 index eb35f02c0..000000000 --- a/Demos/AllBulletDemos/DemoEntries.cpp +++ /dev/null @@ -1,178 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "DemoEntries.h" - -#include "../CcdPhysicsDemo/CcdPhysicsDemo.h" -#include "../BspDemo/BspDemo.h" -#include "../BasicDemo/BasicDemo.h" -#include "../ConcaveDemo/ConcaveDemo.h" -#include "../ConcaveRaycastDemo/ConcaveRaycastDemo.h" -#include "../ConcaveConvexcastDemo/ConcaveConvexcastDemo.h" -#include "../ConvexDecompositionDemo/ConvexDecompositionDemo.h" -#include "../DynamicControlDemo/MotorDemo.h" -#include "../SliderConstraintDemo/SliderConstraintDemo.h" -#include "../RagdollDemo/RagdollDemo.h" -#include "../GimpactTestDemo/GimpactTestDemo.h" -#include "../Raytracer/Raytracer.h" -#include "../GjkConvexCastDemo/LinearConvexCastDemo.h" -#include "../ForkLiftDemo/ForkLiftDemo.h" -#include "../ConstraintDemo/ConstraintDemo.h" -//#include "../Benchmarks/BenchmarkDemo.h" -#include "../SoftDemo/SoftDemo.h" -//#include "../Box2dDemo/Box2dDemo.h" - -#include "GLDebugFont.h" - -#include "GlutStuff.h"//OpenGL stuff - - -extern int gNumAlignedAllocs; -extern int gNumAlignedFree; -extern int gTotalBytesAlignedAllocs; - -class btEmptyDebugDemo : public GlutDemoApplication -{ -public: - btEmptyDebugDemo() - { - - } - - virtual void clientMoveAndDisplay() - { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float xOffset = 10.f; - float yStart = 20.f; - float yIncr = 20.f; - char buf[124]; - - - glColor3f(0, 0, 0); - - setOrthographicProjection(); - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gNumAlignedAllocs= %d",gNumAlignedAllocs); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gNumAlignedFree= %d",gNumAlignedFree); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"# alloc-free = %d",gNumAlignedAllocs-gNumAlignedFree); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; -#ifdef BT_DEBUG_MEMORY_ALLOCATIONS - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gTotalBytesAlignedAllocs = %d",gTotalBytesAlignedAllocs); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; -#endif //BT_DEBUG_MEMORY_ALLOCATIONS - - glFlush(); - glutSwapBuffers(); - - } - - virtual void initPhysics() {} - - static DemoApplication* Create() - { - btEmptyDebugDemo* demo = new btEmptyDebugDemo(); - demo->myinit(); - return demo; - } - -}; - - -btDemoEntry g_demoEntries[] = -{ -// {"Box2dDemo",Box2dDemo::Create}, - {"ForkLift Demo",ForkLiftDemo::Create}, - {"Dynamic Control Demo",MotorDemo::Create}, - {"ConstraintDemo",ConstraintDemo::Create}, - - {"Ragdoll Demo",RagdollDemo::Create}, - {"Basic Demo", BasicDemo::Create}, - {"CcdPhysicsDemo", CcdPhysicsDemo::Create}, - {"Convex Decomposition",ConvexDecompositionDemo::Create}, - {"Concave Moving", GimpactConcaveDemo::Create}, - - {"ConcaveDemo",ConcaveDemo::Create}, - {"Concave Convexcast Demo",ConcaveConvexcastDemo::Create}, - {"SoftBody Cluster Collide1",SoftDemo19::Create}, - - {"SoftBody Ropes Attach",SoftDemo4::Create}, - - {"SoftBody Cloth Attach",SoftDemo5::Create}, - - {"SoftBody Cloth",SoftDemo0::Create}, - -// {"SoftBody Volume",SoftDemo2::Create}, - {"SoftBody Pressure",SoftDemo1::Create}, - {"SoftBody Cluster Car",SoftDemo24::Create}, - {"SoftBody Cluster Robot",SoftDemo25::Create}, - // {"SoftBody Ropes",SoftDemo3::Create}, - {"SoftBody Sticks",SoftDemo6::Create}, - {"SoftBody Collide",SoftDemo7::Create}, - {"SoftBody Collide2",SoftDemo8::Create}, -// {"SoftBody Collide3",SoftDemo9::Create}, -// {"SoftBody Impact",SoftDemo10::Create}, - {"SoftBody Aero",SoftDemo11::Create}, - {"SoftBody Friction",SoftDemo12::Create}, -// {"SoftBody Torus",SoftDemo13::Create}, -// {"SoftBody Torus Match",SoftDemo14::Create}, -// {"SoftBody Bunny",SoftDemo15::Create}, -// {"SoftBody Bunny Match",SoftDemo16::Create}, - {"SoftBody Init Cutting",SoftDemo17::Create}, -// {"SoftBody Cluster Deform",SoftDemo18::Create}, - -// {"SoftBody Cluster Collide2",SoftDemo20::Create}, -// {"SoftBody Cluster Socket",SoftDemo21::Create}, - {"SoftBody Cluster Hinge",SoftDemo22::Create}, - {"SoftBody Cluster Combine",SoftDemo23::Create}, -// {"SoftBody Cluster Stack Soft",SoftDemo26::Create}, - {"SoftBody Cluster Stack Mixed",SoftDemo27::Create}, - - {"SoftBody TetGen Tetrahedral Cube",SoftDemo28::Create}, - {"SoftBody TetGen Tetrahedral Bunny",SoftDemo29::Create}, - - -// {"SliderConstraint",SliderConstraintDemo::Create}, - -// {"ConcaveRaycastDemo",ConcaveRaycastDemo::Create}, - //{"BspDemo", BspDemo::Create}, -// {"Raytracer Test",Raytracer::Create}, -// {"GjkConvexCast",LinearConvexCastDemo::Create}, -// {"Benchmark 3000 FALL",BenchmarkDemo1::Create}, -// {"Benchmark 1000 STACK",BenchmarkDemo2::Create}, -// {"Benchmark 136 RAGDOLLS",BenchmarkDemo3::Create}, -// {"Benchmark 1000 CONVEX",BenchmarkDemo4::Create}, -// {"Benchmark Mesh-Prim",BenchmarkDemo5::Create}, -// {"Benchmark Mesh-Convex",BenchmarkDemo6::Create}, -// {"Benchmark Raycast",BenchmarkDemo7::Create}, - - {"MemoryLeak Checker",btEmptyDebugDemo::Create}, - {0, 0} -}; - - diff --git a/Demos/AllBulletDemos/Main.cpp b/Demos/AllBulletDemos/Main.cpp deleted file mode 100644 index c59e18d3b..000000000 --- a/Demos/AllBulletDemos/Main.cpp +++ /dev/null @@ -1,574 +0,0 @@ -/* -* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com -* -* This software is provided 'as-is', without any express or implied -* warranty. In no event will the authors be held liable for any damages -* arising from the use of this software. -* Permission is granted to anyone to use this software for any purpose, -* including commercial applications, and to alter it and redistribute it -* freely, subject to the following restrictions: -* 1. The origin of this software must not be misrepresented; you must not -* claim that you wrote the original software. If you use this software -* in a product, an acknowledgment in the product documentation would be -* appreciated but is not required. -* 2. Altered source versions must be plainly marked as such, and must not be -* misrepresented as being the original software. -* 3. This notice may not be removed or altered from any source distribution. -*/ - -#include - -#include "glui/GL/glui.h" -#include "LinearMath/btScalar.h" -#include "LinearMath/btMinMax.h" -#include "BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h" -#include "DemoApplication.h" -#include "DemoEntries.h" -#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h" -#include "BulletSoftBody/btSoftRigidDynamicsWorld.h" -#include "BulletSoftBody/btSoftBodyHelpers.h" - -#include "GLDebugDrawer.h" -static GLDebugDrawer dDebugDraw2; - -#include "LinearMath/btQuickprof.h" - - - -namespace -{ - int testIndex=1; - int testSelection=0; - btDemoEntry* entry; - DemoApplication* demo; - int iterationCount; - int width; - int height; - int framePeriod;//todo: test if this value should be 0 - int mainWindow; - GLUI *glui; - //float hz; - float viewZoom=20.f; - float viewX; - float viewY; - int tx, ty, tw, th; - int gDrawAabb; - int gWireFrame; - int gDrawNormals; - int gHelpText; - int gDebugConstraints; - int gDebugContacts; - int gDrawTextures=1; - int gDrawShadows=0; - int gDrawClusters=0; - int gDebugNoDeactivation; - int gUseWarmstarting; - int gRandomizeConstraints; - int gUseSplitImpulse; - float gErp; - float gSlop; - float gErp2; - float gWarmStartingParameter; -} - - - -void setDefaultSettings() -{ - viewX = 0.0f; - viewY = 0.0f; - framePeriod = 6;//16;//16;//todo: test if this value should be 0 - - width = 1280; - height = 768;//480; - iterationCount = 10; - gDrawAabb=0; - gDrawNormals=0; - gWireFrame=0; - gDebugContacts=0; - //enable constraint debug visualization for first demo, only if user hasn't overridden the setting - if (testSelection>1) - { - gDebugConstraints=0; - } else - { - gDebugConstraints=1; - } - gHelpText = 0; - gDrawTextures=1; - gDrawShadows=0; - gDrawClusters=0; - - gDebugNoDeactivation = 0; - gUseSplitImpulse = 1; - gUseWarmstarting = 1; - gRandomizeConstraints = 0; - gErp = 0.2f; - gSlop=0.0f; - gErp2 = 0.81f; - gWarmStartingParameter = 0.85f; - -} - -void setDefaultSettingsAndSync() -{ - setDefaultSettings(); - glui->sync_live(); -} - - -void TogglePause() -{ - if (demo) - demo->toggleIdle(); -} - -void ResetScene() -{ - if (demo) - demo->clientResetScene(); -} - -void NextScene() -{ - testSelection++; - if (testSelection>1) - { - gDebugConstraints=0; - } else - { - gDebugConstraints=1; - } - - if(testSelection>28) - testSelection=0; - if (glui) - glui->sync_live(); -} - - -void SingleSimulationStep() -{ - if (demo) - demo->clientMoveAndDisplay(); -} - - -void Resize(int w, int h) -{ - width = w; - height = h; - - GLUI_Master.get_viewport_area( &tx, &ty, &tw, &th ); - glViewport( tx, ty, tw, th ); - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - if (demo) - demo->reshape(tw, th); -} - -DemoApplication* CreatDemo(btDemoEntry* entry) -{ - DemoApplication* demo = entry->createFcn(); - btAssert(demo); - if (demo->getDynamicsWorld()) - { - demo->getDynamicsWorld()->setDebugDrawer(&dDebugDraw2); - gDrawTextures = demo->getTexturing(); - gDrawShadows = demo->getShadows(); - if (glui) - glui->sync_live(); - } - -#ifndef BT_NO_PROFILE - CProfileManager::Reset(); -#endif //BT_NO_PROFILE - - return demo; - -} - -/*b2Vec2 ConvertScreenToWorld(int x, int y) -{ - b2Vec2 p; - - float ratio = float(tw) / float(th); - float u = x / float(tw); - float v = (th - y) / float(th); - p.x = viewZoom * (viewX - ratio) * (1.0f - u) + viewZoom * (ratio + viewX) * u; - p.y = viewZoom * (viewY - 0.1f) * (1.0f - v) + viewZoom * (viewY + 1.9f) * v; - return p; -} -*/ - -// This is used to control the frame rate (60Hz). -void Timer(int) -{ - glutSetWindow(mainWindow); - glutPostRedisplay(); - glutTimerFunc(framePeriod, Timer, 0); -} - -void SimulationLoop() -{ - Resize(width, height); - - - - if (gDrawAabb) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawAabb); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_DrawAabb)); - } - if (gWireFrame) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawWireframe); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_DrawWireframe)); - } - if (gDrawNormals) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawNormals); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_DrawNormals)); - } - if (gHelpText) - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_NoHelpText)); - } else - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_NoHelpText); - } - if (gDebugConstraints) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits)); - } - if (gDebugContacts) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawContactPoints); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_DrawContactPoints)); - } - - demo->setTexturing(0!=gDrawTextures); - demo->setShadows(0!=gDrawShadows); - demo->setDrawClusters(0!=gDrawClusters); - - if (gDebugNoDeactivation) - { - demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_NoDeactivation); - } else - { - demo->setDebugMode(demo->getDebugMode() & (~btIDebugDraw::DBG_NoDeactivation)); - } - - - - - if (demo->getDynamicsWorld() && demo->getDynamicsWorld()->getWorldType() == BT_DISCRETE_DYNAMICS_WORLD) - { - btDiscreteDynamicsWorld* discreteWorld = (btDiscreteDynamicsWorld*) demo->getDynamicsWorld(); - discreteWorld->getSolverInfo().m_numIterations = iterationCount; - discreteWorld->getSolverInfo().m_erp = gErp; - discreteWorld->getSolverInfo().m_erp2 = gErp2; - - discreteWorld->getSolverInfo().m_linearSlop = gSlop; - - discreteWorld->getSolverInfo().m_warmstartingFactor = gWarmStartingParameter; - discreteWorld->getSolverInfo().m_splitImpulse = gUseSplitImpulse; - - // btSequentialImpulseConstraintSolver* solver = ((btSequentialImpulseConstraintSolver*) discreteWorld->getConstraintSolver()); - - if (gUseWarmstarting) - { - discreteWorld->getSolverInfo().m_solverMode |= SOLVER_USE_WARMSTARTING; - } else - { - discreteWorld->getSolverInfo().m_solverMode &= (~SOLVER_USE_WARMSTARTING); - } - if (gRandomizeConstraints) - { - discreteWorld->getSolverInfo().m_solverMode |= SOLVER_RANDMIZE_ORDER; - } else - { - discreteWorld->getSolverInfo().m_solverMode &= (~SOLVER_RANDMIZE_ORDER); - } - } - - if (!demo->isIdle()) - { - demo->clientMoveAndDisplay(); - - - } - else - { - demo->displayCallback(); - } - - if (demo->getDynamicsWorld() && demo->getDynamicsWorld()->getWorldType()==BT_SOFT_RIGID_DYNAMICS_WORLD) - { - btSoftRigidDynamicsWorld* softWorld = (btSoftRigidDynamicsWorld*)demo->getDynamicsWorld(); - for ( int i=0;igetSoftBodyArray().size();i++) - { - btSoftBody* psb=(btSoftBody*)softWorld->getSoftBodyArray()[i]; - if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe))) - { - btSoftBodyHelpers::DrawFrame(psb,softWorld->getDebugDrawer()); - btSoftBodyHelpers::Draw(psb,softWorld->getDebugDrawer(),softWorld->getDrawFlags()); - } - } - } - - if (testSelection != testIndex) - { - if (testSelection>1) - { - gDebugConstraints=0; - } else - { - gDebugConstraints=1; - } - - testIndex = testSelection; - delete demo; - entry = g_demoEntries + testIndex; - demo = CreatDemo(entry); - viewZoom = 20.0f; - viewX = 0.0f; - viewY = 0.0f; - Resize(width, height); - } -} - -void RestartScene() -{ - delete demo; - entry = g_demoEntries + testIndex; - demo = CreatDemo(entry); - viewZoom = 20.0f; - viewX = 0.0f; - viewY = 0.0f; - Resize(width, height); -} - -void Keyboard(unsigned char key, int x, int y) -{ - - - - - switch (key) - { - case 27: - exit(0); - break; - - // Press 'r' to reset. - case 'r': - delete demo; - demo = CreatDemo(entry); - Resize(width,height); - break; - - default: - if (demo) - { - demo->keyboardCallback(key,x,y); - } - } -} - -void KeyboardSpecialUp(int key, int x, int y) -{ - if (demo) - { - demo->specialKeyboardUp(key,x,y); - } - -} - - -void GlutIdleFunc() -{ - int current_window, new_window=-1; - current_window = glutGetWindow(); - if (GLUI_Master.gluis.first_child() != NULL ) - { - new_window = ((GLUI_Main*)GLUI_Master.gluis.first_child())->getMainWindowId(); - } - if ( (new_window > 0) && (new_window != current_window )) - { - //--- Window is changed only if its not already the current window --- - glutSetWindow( new_window ); - } - - if (demo) - demo->moveAndDisplay(); - - glutSetWindow( current_window ); -} - -void KeyboardSpecial(int key, int x, int y) -{ - - if (demo) - { - demo->specialKeyboard(key,x,y); - } - -} - - -void Mouse(int button, int state, int x, int y) -{ - if (demo) - demo->mouseFunc(button,state,x,y); -} - -void MouseMotion(int x, int y) -{ - demo->mouseMotionFunc(x,y); -} - -#ifdef BT_USE_FREEGLUT -#include "GL/freeglut_ext.h" -#endif - -int main(int argc, char** argv) -{ - -//#define CHECK_FPU_EXCEPTIONS 1 -#ifdef CHECK_FPU_EXCEPTIONS - - int cw = _control87(0, 0); - - // Set the exception masks off, turn exceptions on - cw &= ~(EM_ZERODIVIDE | EM_INVALID); - - printf("control87 = %#x\n", cw); - - // Set the control word - _control87(cw, MCW_EM); -#endif //CHECK_FPU_EXCEPTIONS - - - setDefaultSettings(); - - int bulletVersion = btGetVersion(); - printf("Bullet version %d\n",bulletVersion); - - glutInit(&argc, argv); - glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE |GLUT_DEPTH | GLUT_STENCIL); - glutInitWindowSize(width, height); - mainWindow = glutCreateWindow("http://bulletphysics.com"); -#ifdef BT_USE_FREEGLUT - glutSetOption (GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS); -#endif - entry = g_demoEntries + testIndex; - demo = CreatDemo(entry); - - glutDisplayFunc(SimulationLoop); - GLUI_Master.set_glutReshapeFunc(Resize); - GLUI_Master.set_glutKeyboardFunc(Keyboard); - GLUI_Master.set_glutSpecialFunc(KeyboardSpecial); - GLUI_Master.set_glutIdleFunc(GlutIdleFunc); - GLUI_Master.set_glutSpecialUpFunc(KeyboardSpecialUp); - GLUI_Master.set_glutMouseFunc(Mouse); - glutMotionFunc(MouseMotion); - - - glui = GLUI_Master.create_glui_subwindow( mainWindow, - GLUI_SUBWINDOW_RIGHT ); - - - - glui->add_statictext("Tests"); - GLUI_Listbox* testList = - glui->add_listbox("", &testSelection); - glui->add_button("Next Scene", 0,(GLUI_Update_CB)NextScene); - - glui->add_separator(); - - GLUI_Spinner* iterationSpinner = - glui->add_spinner("Iterations", GLUI_SPINNER_INT, &iterationCount); - iterationSpinner->set_int_limits(1, 250); - -/* GLUI_Spinner* hertzSpinner = - glui->add_spinner("Hertz", GLUI_SPINNER_FLOAT, &hz); - hertzSpinner->set_float_limits(5.0f, 200.0f); -*/ - - - glui->add_checkbox("DisableDeactivation", &gDebugNoDeactivation); - glui->add_checkbox("Split Impulse", &gUseSplitImpulse); - GLUI_Spinner* spinner = 0; - - spinner = glui->add_spinner("ERP", GLUI_SPINNER_FLOAT, &gErp); -// spinner->set_float_limits(0.f,1.f); -// spinner = glui->add_spinner("ERP2", GLUI_SPINNER_FLOAT, &gErp2); - spinner->set_float_limits(0.f,1.f); - spinner = glui->add_spinner("Slop", GLUI_SPINNER_FLOAT, &gSlop); - spinner->set_float_limits(0.f,1.f); -// spinner = glui->add_spinner("WSP", GLUI_SPINNER_FLOAT,&gWarmStartingParameter); -// spinner->set_float_limits (0.f,1.0); - glui->add_checkbox("Warmstarting", &gUseWarmstarting); - glui->add_checkbox("Randomize Constraints", &gRandomizeConstraints); - - - glui->add_button("Reset Defaults", 0,(GLUI_Update_CB)setDefaultSettingsAndSync); - glui->add_separator(); - - GLUI_Panel* drawPanel = glui->add_panel("Debug Draw"); - - - glui->add_checkbox_to_panel(drawPanel, "Help", &gHelpText); - glui->add_checkbox_to_panel(drawPanel, "AABBs", &gDrawAabb); - glui->add_checkbox_to_panel(drawPanel, "Wireframe", &gWireFrame); - glui->add_checkbox_to_panel(drawPanel, "Normals", &gDrawNormals); - glui->add_checkbox_to_panel(drawPanel, "Contacts", &gDebugContacts); - glui->add_checkbox_to_panel(drawPanel, "Constraints", &gDebugConstraints); - - glui->add_checkbox_to_panel(drawPanel, "Textures", &gDrawTextures); - glui->add_checkbox_to_panel(drawPanel, "Shadows", &gDrawShadows); - glui->add_checkbox_to_panel(drawPanel, "Clusters", &gDrawClusters); - - int testCount = 0; - btDemoEntry* e = g_demoEntries; - while (e->createFcn) - { - testList->add_item(testCount, e->name); - ++testCount; - ++e; - } - - glui->add_separator(); - - glui->add_button("Toggle Pause", 0,(GLUI_Update_CB)TogglePause); - - glui->add_button("Single Step", 0,(GLUI_Update_CB)SingleSimulationStep); - glui->add_button("Reset Scene", 0,(GLUI_Update_CB)ResetScene); - glui->add_button("Restart Scene", 0,(GLUI_Update_CB)RestartScene); - - glui->add_separator(); - -// glui->add_button("Exit", 0,(GLUI_Update_CB)exit); - - glui->set_main_gfx_window( mainWindow ); - - // Use a timer to control the frame rate. - glutTimerFunc(framePeriod, Timer, 0); - - glutMainLoop(); - - return 0; -} diff --git a/Demos/AllBulletDemos/Makefile.am b/Demos/AllBulletDemos/Makefile.am deleted file mode 100644 index aab8b9854..000000000 --- a/Demos/AllBulletDemos/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -noinst_PROGRAMS=AllBulletDemo - -AllBulletDemo_SOURCES=\ - ../SoftDemo/SoftDemo.cpp \ - ../ConstraintDemo/ConstraintDemo.cpp \ - ../ForkLiftDemo/ForkLiftDemo.cpp \ - ../RagdollDemo/RagdollDemo.cpp \ - ../BasicDemo/BasicDemo.cpp \ - ../CcdPhysicsDemo/CcdPhysicsDemo.cpp \ - ../SliderConstraintDemo/SliderConstraintDemo.cpp \ - ../ConcaveRaycastDemo/ConcaveRaycastDemo.cpp \ - ../Raytracer/Raytracer.cpp \ - ../BspDemo/BspDemo.cpp \ - ../BspDemo/BspLoader.cpp \ - ../BspDemo/BspConverter.cpp \ - ../ConcaveConvexcastDemo/ConcaveConvexcastDemo.cpp \ - ../ConvexDecompositionDemo/ConvexDecompositionDemo.cpp \ - ../GimpactTestDemo/GimpactTestDemo.cpp \ - ../GjkConvexCastDemo/LinearConvexCastDemo.cpp \ - ../ConcaveDemo/ConcavePhysicsDemo.cpp \ - ../DynamicControlDemo/MotorDemo.cpp \ - DemoEntries.cpp \ - DemoEntries.h\ - Main.cpp -AllBulletDemo_CXXFLAGS=\ - -I@top_builddir@/src \ - -I@top_builddir@/Extras/GIMPACTUtils \ - -I@top_builddir@/Extras/ConvexDecomposition \ - -I@top_builddir@/Extras/HACD \ - -I@top_builddir@/Extras \ - -I@top_builddir@/Demos/OpenGL \ - -I@top_builddir@/Demos/SoftDemo \ - $(CXXFLAGS) -AllBulletDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -L../../Extras -lgimpactutils -lconvexdecomposition -lHACD -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -lglui @opengl_LIBS@ diff --git a/Demos/BasicDemo/BasicDemo.cpp b/Demos/BasicDemo/BasicDemo.cpp deleted file mode 100644 index 5cdfb0f16..000000000 --- a/Demos/BasicDemo/BasicDemo.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "BasicDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" - -#include //printf debugging -#include "GLDebugDrawer.h" -#include "LinearMath/btAabbUtil2.h" - -static GLDebugDrawer gDebugDraw; - -///The MyOverlapCallback is used to show how to collect object that overlap with a given bounding box defined by aabbMin and aabbMax. -///See m_physicsSetup.m_dynamicsWorld->getBroadphase()->aabbTest. -struct MyOverlapCallback : public btBroadphaseAabbCallback -{ - btVector3 m_queryAabbMin; - btVector3 m_queryAabbMax; - - int m_numOverlap; - MyOverlapCallback(const btVector3& aabbMin, const btVector3& aabbMax ) : m_queryAabbMin(aabbMin),m_queryAabbMax(aabbMax),m_numOverlap(0) {} - virtual bool process(const btBroadphaseProxy* proxy) - { - btVector3 proxyAabbMin,proxyAabbMax; - btCollisionObject* colObj0 = (btCollisionObject*)proxy->m_clientObject; - colObj0->getCollisionShape()->getAabb(colObj0->getWorldTransform(),proxyAabbMin,proxyAabbMax); - if (TestAabbAgainstAabb2(proxyAabbMin,proxyAabbMax,m_queryAabbMin,m_queryAabbMax)) - { - m_numOverlap++; - } - return true; - } -}; - -void BasicDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - m_physicsSetup.stepSimulation(ms/1000000.f); - m_physicsSetup.m_dynamicsWorld->debugDrawWorld(); - - /* - ///step the simulation - if (m_physicsSetup.m_dynamicsWorld) - { - m_physicsSetup.m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_physicsSetup.m_dynamicsWorld->debugDrawWorld(); - - btVector3 aabbMin(1,1,1); - btVector3 aabbMax(2,2,2); - - MyOverlapCallback aabbOverlap(aabbMin,aabbMax); - m_physicsSetup.m_dynamicsWorld->getBroadphase()->aabbTest(aabbMin,aabbMax,aabbOverlap); - - //if (aabbOverlap.m_numOverlap) - // printf("#aabb overlap = %d\n", aabbOverlap.m_numOverlap); - } - */ - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void BasicDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_physicsSetup.m_dynamicsWorld) - m_physicsSetup.m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - - - - -void BasicDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(SCALING*50.)); - GraphicsPhysicsBridge gfxBridge; - m_physicsSetup.initPhysics(gfxBridge); - - m_dynamicsWorld = m_physicsSetup.m_dynamicsWorld; - m_dynamicsWorld->setDebugDrawer(&gDebugDraw); - -} -void BasicDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void BasicDemo::exitPhysics() -{ - m_physicsSetup.exitPhysics(); -} - - - - diff --git a/Demos/BasicDemo/BasicDemo.h b/Demos/BasicDemo/BasicDemo.h deleted file mode 100644 index ae6bf7149..000000000 --- a/Demos/BasicDemo/BasicDemo.h +++ /dev/null @@ -1,67 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BASIC_DEMO_H -#define BASIC_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" -#include "BasicDemoPhysicsSetup.h" - - -///BasicDemo is good starting point for learning the code base and porting. - -class BasicDemo : public PlatformDemoApplication -{ - - BasicDemoPhysicsSetup m_physicsSetup; - - public: - - BasicDemo() - { - } - virtual ~BasicDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - BasicDemo* demo = new BasicDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BASIC_DEMO_H - diff --git a/Demos/BasicDemo/BasicDemoPhysicsSetup.cpp b/Demos/BasicDemo/BasicDemoPhysicsSetup.cpp deleted file mode 100644 index 6956f0fc0..000000000 --- a/Demos/BasicDemo/BasicDemoPhysicsSetup.cpp +++ /dev/null @@ -1,91 +0,0 @@ - - -#include "BasicDemoPhysicsSetup.h" -#include "btBulletDynamicsCommon.h" -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Z 5 - -void BasicDemoPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - if (m_dynamicsWorld->getDebugDrawer()) - m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe+btIDebugDraw::DBG_DrawContactPoints); - - ///create a few basic rigid bodies - btBoxShape* groundShape = createBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); - gfxBridge.createCollisionShapeGraphicsObject(groundShape); - - //groundShape->initializePolyhedralFeatures(); -// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - - { - btScalar mass(0.); - btRigidBody* body = createRigidBody(mass,groundTransform,groundShape, btVector4(0,0,1,1)); - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(0, 1, 0)); - } - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btBoxShape* colShape = createBoxShape(btVector3(1,1,1)); - gfxBridge.createCollisionShapeGraphicsObject(colShape); - - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - - for (int k=0;k m_collisionShapes; - - btAlignedObjectArray m_ragdolls; - - btBroadphaseInterface* m_overlappingPairCache; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - int m_benchmark; - - void createTest1(); - void createTest2(); - void createTest3(); - void createTest4(); - void createTest5(); - void createTest6(); - void createTest7(); - - void createWall(const btVector3& offsetPosition,int stackSize,const btVector3& boxSize); - void createPyramid(const btVector3& offsetPosition,int stackSize,const btVector3& boxSize); - void createTowerCircle(const btVector3& offsetPosition,int stackSize,int rotSize,const btVector3& boxSize); - void createLargeMeshBody(); - - - class SpuBatchRaycaster* m_batchRaycaster; - class btThreadSupportInterface* m_batchRaycasterThreadSupport; - - void castRays(); - void initRays(); - - public: - - BenchmarkDemo(int benchmark) - :m_benchmark(benchmark), - m_overlappingPairCache(0), - m_dispatcher(0), - m_solver(0), - m_collisionConfiguration(0) - { - } - virtual ~BenchmarkDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - - - -}; - -class BenchmarkDemo1 : public BenchmarkDemo -{ -public: - BenchmarkDemo1() - :BenchmarkDemo(1) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo1* demo = new BenchmarkDemo1; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -class BenchmarkDemo2 : public BenchmarkDemo -{ -public: - BenchmarkDemo2() - :BenchmarkDemo(2) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo2* demo = new BenchmarkDemo2; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -class BenchmarkDemo3 : public BenchmarkDemo -{ -public: - BenchmarkDemo3() - :BenchmarkDemo(3) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo3* demo = new BenchmarkDemo3; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -class BenchmarkDemo4 : public BenchmarkDemo -{ -public: - BenchmarkDemo4() - :BenchmarkDemo(4) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo4* demo = new BenchmarkDemo4; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - - -class BenchmarkDemo5 : public BenchmarkDemo -{ -public: - BenchmarkDemo5() - :BenchmarkDemo(5) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo5* demo = new BenchmarkDemo5; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - - -class BenchmarkDemo6 : public BenchmarkDemo -{ -public: - BenchmarkDemo6() - :BenchmarkDemo(6) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo6* demo = new BenchmarkDemo6; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -class BenchmarkDemo7 : public BenchmarkDemo -{ -public: - BenchmarkDemo7() - :BenchmarkDemo(7) - { - } - - static DemoApplication* Create() - { - BenchmarkDemo7* demo = new BenchmarkDemo7; - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -#endif //BENCHMARK_DEMO_H - diff --git a/Demos/Benchmarks/CMakeLists.txt b/Demos/Benchmarks/CMakeLists.txt deleted file mode 100644 index dae23300c..000000000 --- a/Demos/Benchmarks/CMakeLists.txt +++ /dev/null @@ -1,93 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GRAPHICAL_BENCHMARK) -IF (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} - ) - - IF (USE_MULTITHREADED_BENCHMARK) - INCLUDE_DIRECTORIES( ${VECTOR_MATH_INCLUDE} ) - LINK_LIBRARIES( OpenGLSupport BulletMultiThreaded BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) - ELSE() - LINK_LIBRARIES( OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) - ENDIF(USE_MULTITHREADED_BENCHMARK) - - IF (WIN32) - ADD_EXECUTABLE(AppBenchmarks - main.cpp - BenchmarkDemo.cpp - BenchmarkDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppBenchmarks - main.cpp - BenchmarkDemo.cpp - BenchmarkDemo.h - ) - ENDIF () - IF (WIN32) - IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBenchmarks PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBenchmarks PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBenchmarks PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") - ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - - ENDIF(WIN32) -ELSE (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - IF (USE_MULTITHREADED_BENCHMARK) - INCLUDE_DIRECTORIES( ${VECTOR_MATH_INCLUDE} ) - LINK_LIBRARIES( - OpenGLSupport BulletMultiThreaded BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - ELSE() - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ENDIF() - - ADD_EXECUTABLE(AppBenchmarks - WIN32 - ../OpenGL/Win32AppMain.cpp - BenchmarkDemo.cpp - BenchmarkDemo.h - Win32BenchmarkDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ENDIF (USE_GLUT) -ELSE (USE_GRAPHICAL_BENCHMARK) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - IF (USE_MULTITHREADED_BENCHMARK) - LINK_LIBRARIES( BulletMultiThreaded BulletDynamics BulletCollision LinearMath ) - ELSE() - LINK_LIBRARIES( BulletDynamics BulletCollision LinearMath ) - ENDIF() - - - ADD_EXECUTABLE(AppBenchmarks - main.cpp - BenchmarkDemo.cpp - ) -ENDIF (USE_GRAPHICAL_BENCHMARK) \ No newline at end of file diff --git a/Demos/Benchmarks/main.cpp b/Demos/Benchmarks/main.cpp deleted file mode 100644 index 78c05e5bd..000000000 --- a/Demos/Benchmarks/main.cpp +++ /dev/null @@ -1,89 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BenchmarkDemo.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" -#include - -#ifdef USE_GRAPHICAL_BENCHMARK - #include "GlutStuff.h" - #include "GLDebugDrawer.h" - GLDebugDrawer gDebugDrawer; -#define benchmarkDemo benchmarkDemo2 -#endif //USE_GRAPHICAL_BENCHMARK - - -#define NUM_DEMOS 7 -#define NUM_TESTS 200 - -extern bool gDisableDeactivation; - -int main(int argc,char** argv) -{ - gDisableDeactivation = true; - - BenchmarkDemo1 benchmarkDemo1; - BenchmarkDemo2 benchmarkDemo2; - BenchmarkDemo3 benchmarkDemo3; - BenchmarkDemo4 benchmarkDemo4; - BenchmarkDemo5 benchmarkDemo5; - BenchmarkDemo6 benchmarkDemo6; - BenchmarkDemo7 benchmarkDemo7; - - BenchmarkDemo* demoArray[NUM_DEMOS] = {&benchmarkDemo1,&benchmarkDemo2,&benchmarkDemo3,&benchmarkDemo4,&benchmarkDemo5,&benchmarkDemo6,&benchmarkDemo7}; - const char* demoNames[NUM_DEMOS] = {"3000 fall", "1000 stack", "136 ragdolls","1000 convex", "prim-trimesh", "convex-trimesh","raytests"}; - float totalTime[NUM_DEMOS] = {0.f,0.f,0.f,0.f,0.f,0.f,0.f}; - -#ifdef USE_GRAPHICAL_BENCHMARK - benchmarkDemo.initPhysics(); - benchmarkDemo.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - benchmarkDemo.setDebugMode(benchmarkDemo.getDebugMode() | btIDebugDraw::DBG_NoDeactivation); - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",&benchmarkDemo); - -#else //USE_GRAPHICAL_BENCHMARK - int d; - - for (d=0;dinitPhysics(); - - - for (int i=0;iclientMoveAndDisplay(); - float frameTime = CProfileManager::Get_Time_Since_Reset(); - if ((i % 25)==0) - { - printf("BenchmarkDemo: %s, Frame %d, Duration (ms): %f\n",demoNames[d],i,frameTime); - } - totalTime[d] += frameTime; - if (i==NUM_TESTS-1) - CProfileManager::dumpAll(); - - - } - demoArray[d]->exitPhysics(); - } - - for (d=0;d m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - GL_DialogDynamicsWorld* m_dialogDynamicsWorld; - - public: - - Box2dDemo() : m_dialogDynamicsWorld(0) - { - } - virtual ~Box2dDemo() - { - exitPhysics(); - } - - virtual void reshape(int w, int h); - - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - Box2dDemo* demo = new Box2dDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - virtual void mouseFunc(int button, int state, int x, int y); - virtual void mouseMotionFunc(int x,int y); - - -}; - -#endif //BOX2D_DEMO_H - diff --git a/Demos/Box2dDemo/CMakeLists.txt b/Demos/Box2dDemo/CMakeLists.txt deleted file mode 100644 index 9c993a32c..000000000 --- a/Demos/Box2dDemo/CMakeLists.txt +++ /dev/null @@ -1,59 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -) - -IF (USE_GLUT) - INCLUDE_DIRECTORIES( ${GLUT_INCLUDE_DIR} ) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppBox2dDemo - main.cpp - Box2dDemo.cpp - Box2dDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppBox2dDemo - main.cpp - Box2dDemo.cpp - Box2dDemo.h - ) - ENDIF() -ELSE (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppBox2dDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32Box2dDemo.cpp - Box2dDemo.cpp - Box2dDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBox2dDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBox2dDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBox2dDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - diff --git a/Demos/Box2dDemo/Win32Box2dDemo.cpp b/Demos/Box2dDemo/Win32Box2dDemo.cpp deleted file mode 100644 index fb439063d..000000000 --- a/Demos/Box2dDemo/Win32Box2dDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "Box2dDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new Box2dDemo(); -} - -#endif diff --git a/Demos/Box2dDemo/main.cpp b/Demos/Box2dDemo/main.cpp deleted file mode 100644 index 1b0651c39..000000000 --- a/Demos/Box2dDemo/main.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "Box2dDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - -class OurValue - { - int m_uid; - - public: - OurValue(const btVector3& initialPos) - :m_position(initialPos) - { - static int gUid=0; - m_uid=gUid; - gUid++; - } - - btVector3 m_position; - int getUid() const - { - return m_uid; - } - }; - - -int main(int argc,char** argv) -{ - GLDebugDrawer gDebugDrawer; - - Box2dDemo ccdDemo; - ccdDemo.initPhysics(); - ccdDemo.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/BspDemo/BspDemo.h b/Demos/BspDemo/BspDemo.h deleted file mode 100644 index d2f5d7a30..000000000 --- a/Demos/BspDemo/BspDemo.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BSP_DEMO_H -#define BSP_DEMO_H - -#include "GlutDemoApplication.h" -#include "LinearMath/btAlignedObjectArray.h" - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; - - -///BspDemo shows the convex collision detection, by converting a Quake BSP file into convex objects and allowing interaction with boxes. -class BspDemo : public GlutDemoApplication -{ - public: - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - - - - virtual ~BspDemo(); - - virtual void initPhysics(); - - void initPhysics(const char* bspfilename); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - BspDemo* demo = new BspDemo; - demo->myinit(); - demo->initPhysics("BspDemo.bsp"); - return demo; - } - -}; - -#endif //BSP_DEMO_H - - diff --git a/Demos/BspDemo/CMakeLists.txt b/Demos/BspDemo/CMakeLists.txt deleted file mode 100644 index 4d201988f..000000000 --- a/Demos/BspDemo/CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} - -) - -LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppBspPhysicsDemo - main.cpp - BspDemo.cpp - BspLoader.cpp - BspConverter.cpp -) - - - - - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( - TARGET AppBspPhysicsDemo - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/BspDemo/BspDemo.bsp ${CMAKE_CURRENT_BINARY_DIR} - ) -ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBspPhysicsDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBspPhysicsDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBspPhysicsDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/BspDemo/main.cpp b/Demos/BspDemo/main.cpp deleted file mode 100644 index e957fa1c0..000000000 --- a/Demos/BspDemo/main.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#include "BspDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -char* makeExeToBspFilename(const char* lpCmdLine); -char* getLastFileName(); - - -int main(int argc,char** argv) -{ - - BspDemo* bspDemo = new BspDemo(); - - const char* bspfilename = "BspDemo.bsp"; - - printf("argc=%i\n",argc); - { - for (int i=0;i1) - { - bspfilename = argv[1]; - } - - GLDebugDrawer gDebugDrawer; - - // Enrico: TODO: Should change parameter type of initPhysics() to std::string or at least const char * - bspDemo->initPhysics((char*)bspfilename); - - bspDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - - - return glutmain(argc, argv,640,480,"Bullet Quake BSP Physics Viewer http://bulletphysics.org",bspDemo); -} - diff --git a/Demos/BulletDinoDemo/BulletDino.c b/Demos/BulletDinoDemo/BulletDino.c deleted file mode 100644 index 146f28d24..000000000 --- a/Demos/BulletDinoDemo/BulletDino.c +++ /dev/null @@ -1,996 +0,0 @@ - -/* This demo has been modified to use the Bullet C-API. - The C-API is minimal, and will develop based on developer feedback. - The C++ API is recommended, and compatible with the C-API. -*/ - -/* Copyright (c) Mark J. Kilgard, 1994, 1997. */ - -/* This program is freely distributable without licensing fees - and is provided without guarantee or warrantee expressed or - implied. This program is -not- in the public domain. */ - -/* Example for PC game developers to show how to *combine* texturing, - reflections, and projected shadows all in real-time with OpenGL. - Robust reflections use stenciling. Robust projected shadows - use both stenciling and polygon offset. PC game programmers - should realize that neither stenciling nor polygon offset are - supported by Direct3D, so these real-time rendering algorithms - are only really viable with OpenGL. - - The program has modes for disabling the stenciling and polygon - offset uses. It is worth running this example with these features - toggled off so you can see the sort of artifacts that result. - - Notice that the floor texturing, reflections, and shadowing - all co-exist properly. */ - -/* When you run this program: Left mouse button controls the - view. Middle mouse button controls light position (left & - right rotates light around dino; up & down moves light - position up and down). Right mouse button pops up menu. */ - -/* Check out the comments in the "redraw" routine to see how the - reflection blending and surface stenciling is done. You can - also see in "redraw" how the projected shadows are rendered, - including the use of stenciling and polygon offset. */ - -/* This program is derived from glutdino.c */ - -/* Compile: cc -o dinoshade dinoshade.c -lglut -lGLU -lGL -lXmu -lXext -lX11 -lm */ - -#include -#include -#include -#include /* for cos(), sin(), and sqrt() */ -#ifdef WIN32//for glut.h -#include -#endif - -#ifndef WIN32 -#ifndef CALLBACK -#define CALLBACK -#endif -#endif - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#include -#define GLVOIDPTR GLvoid(*)() -#else -#include -#include -#define GLVOIDPTR void(CALLBACK*)() -#endif - -/* Some files do not define M_PI... */ -#ifndef M_PI -#define M_PI 3.14159265 -#endif - - -//#include "../../include/Bullet-C-Api.h" -#include "Bullet-C-Api.h" - - - -plPhysicsSdkHandle physicsSdk=0; -plDynamicsWorldHandle dynamicsWorld=0; -plRigidBodyHandle floorRigidBody; -plRigidBodyHandle dinoRigidBody; - -/* Variable controlling various rendering modes. */ -static int stencilReflection = 1, stencilShadow = 1, offsetShadow = 1; -static int renderShadow = 1, renderDinosaur = 1, renderReflection = 1; -static int linearFiltering = 0, useMipmaps = 0, useTexture = 1; -static int reportSpeed = 0; -static int animation = 1; -static GLboolean lightSwitch = GL_TRUE; -static int directionalLight = 1; -static int forceExtension = 0; - -/* Time varying or user-controled variables. */ -static float jump = 0.0; -static float lightAngle = 0.0, lightHeight = 20; -GLfloat angle = -150; /* in degrees */ -GLfloat angle2 = 30; /* in degrees */ - -int moving, startx, starty; -int lightMoving = 0, lightStartX, lightStartY; - -enum { - MISSING, EXTENSION, ONE_DOT_ONE -}; -int polygonOffsetVersion; - -static GLdouble bodyWidth = 3.0; -/* *INDENT-OFF* */ -static GLfloat body[][2] = { {0, 3}, {1, 1}, {5, 1}, {8, 4}, {10, 4}, {11, 5}, - {11, 11.5}, {13, 12}, {13, 13}, {10, 13.5}, {13, 14}, {13, 15}, {11, 16}, - {8, 16}, {7, 15}, {7, 13}, {8, 12}, {7, 11}, {6, 6}, {4, 3}, {3, 2}, - {1, 2} }; -static GLfloat arm[][2] = { {8, 10}, {9, 9}, {10, 9}, {13, 8}, {14, 9}, {16, 9}, - {15, 9.5}, {16, 10}, {15, 10}, {15.5, 11}, {14.5, 10}, {14, 11}, {14, 10}, - {13, 9}, {11, 11}, {9, 11} }; -static GLfloat leg[][2] = { {8, 6}, {8, 4}, {9, 3}, {9, 2}, {8, 1}, {8, 0.5}, {9, 0}, - {12, 0}, {10, 1}, {10, 2}, {12, 4}, {11, 6}, {10, 7}, {9, 7} }; -static GLfloat eye[][2] = { {8.75, 15}, {9, 14.7}, {9.6, 14.7}, {10.1, 15}, - {9.6, 15.25}, {9, 15.25} }; -static GLfloat lightPosition[4]; -static GLfloat lightColor[] = {0.8, 1.0, 0.8, 1.0}; /* green-tinted */ -static GLfloat skinColor[] = {0.1, 1.0, 0.1, 1.0}, eyeColor[] = {1.0, 0.2, 0.2, 1.0}; -/* *INDENT-ON* */ - -/* Nice floor texture tiling pattern. */ -static char *circles[] = { - "....xxxx........", - "..xxxxxxxx......", - ".xxxxxxxxxx.....", - ".xxx....xxx.....", - "xxx......xxx....", - "xxx......xxx....", - "xxx......xxx....", - "xxx......xxx....", - ".xxx....xxx.....", - ".xxxxxxxxxx.....", - "..xxxxxxxx......", - "....xxxx........", - "................", - "................", - "................", - "................", -}; - -static void -makeFloorTexture(void) -{ - GLubyte floorTexture[16][16][3]; - GLubyte *loc; - int s, t; - loc=0; - - /* Setup RGB image for the texture. */ - loc = (GLubyte*) floorTexture; - for (t = 0; t < 16; t++) { - for (s = 0; s < 16; s++) { - if (circles[t][s] == 'x') { - /* Nice green. */ - loc[0] = 0x1f; - loc[1] = 0x8f; - loc[2] = 0x1f; - } else { - /* Light gray. */ - loc[0] = 0xaa; - loc[1] = 0xaa; - loc[2] = 0xaa; - } - loc += 3; - } - } - - glPixelStorei(GL_UNPACK_ALIGNMENT, 1); - - if (useMipmaps) { - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, - GL_LINEAR_MIPMAP_LINEAR); - gluBuild2DMipmaps(GL_TEXTURE_2D, 3, 16, 16, - GL_RGB, GL_UNSIGNED_BYTE, floorTexture); - } else { - if (linearFiltering) { - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - } else { - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - } - glTexImage2D(GL_TEXTURE_2D, 0, 3, 16, 16, 0, - GL_RGB, GL_UNSIGNED_BYTE, floorTexture); - } -} - -enum { - X, Y, Z, W -}; -enum { - A, B, C, D -}; - -/* Create a matrix that will project the desired shadow. */ -void -shadowMatrix(GLfloat shadowMat[4][4], - GLfloat groundplane[4], - GLfloat lightpos[4]) -{ - GLfloat dot; - - /* Find dot product between light position vector and ground plane normal. */ - dot = groundplane[X] * lightpos[X] + - groundplane[Y] * lightpos[Y] + - groundplane[Z] * lightpos[Z] + - groundplane[W] * lightpos[W]; - - shadowMat[0][0] = dot - lightpos[X] * groundplane[X]; - shadowMat[1][0] = 0.f - lightpos[X] * groundplane[Y]; - shadowMat[2][0] = 0.f - lightpos[X] * groundplane[Z]; - shadowMat[3][0] = 0.f - lightpos[X] * groundplane[W]; - - shadowMat[X][1] = 0.f - lightpos[Y] * groundplane[X]; - shadowMat[1][1] = dot - lightpos[Y] * groundplane[Y]; - shadowMat[2][1] = 0.f - lightpos[Y] * groundplane[Z]; - shadowMat[3][1] = 0.f - lightpos[Y] * groundplane[W]; - - shadowMat[X][2] = 0.f - lightpos[Z] * groundplane[X]; - shadowMat[1][2] = 0.f - lightpos[Z] * groundplane[Y]; - shadowMat[2][2] = dot - lightpos[Z] * groundplane[Z]; - shadowMat[3][2] = 0.f - lightpos[Z] * groundplane[W]; - - shadowMat[X][3] = 0.f - lightpos[W] * groundplane[X]; - shadowMat[1][3] = 0.f - lightpos[W] * groundplane[Y]; - shadowMat[2][3] = 0.f - lightpos[W] * groundplane[Z]; - shadowMat[3][3] = dot - lightpos[W] * groundplane[W]; - -} - -/* Find the plane equation given 3 points. */ -void -findPlane(GLfloat plane[4], - GLfloat v0[3], GLfloat v1[3], GLfloat v2[3]) -{ - GLfloat vec0[3], vec1[3]; - - /* Need 2 vectors to find cross product. */ - vec0[X] = v1[X] - v0[X]; - vec0[Y] = v1[Y] - v0[Y]; - vec0[Z] = v1[Z] - v0[Z]; - - vec1[X] = v2[X] - v0[X]; - vec1[Y] = v2[Y] - v0[Y]; - vec1[Z] = v2[Z] - v0[Z]; - - /* find cross product to get A, B, and C of plane equation */ - plane[A] = vec0[Y] * vec1[Z] - vec0[Z] * vec1[Y]; - plane[B] = -(vec0[X] * vec1[Z] - vec0[Z] * vec1[X]); - plane[C] = vec0[X] * vec1[Y] - vec0[Y] * vec1[X]; - - plane[D] = -(plane[A] * v0[X] + plane[B] * v0[Y] + plane[C] * v0[Z]); -} - -void -extrudeSolidFromPolygon(GLfloat data[][2], unsigned int dataSize, - GLdouble thickness, GLuint side, GLuint edge, GLuint whole) -{ - static GLUtriangulatorObj *tobj = NULL; - GLdouble vertex[3], dx, dy, len; - int i; - int count = dataSize / (2 * sizeof(GLfloat)); - - if (tobj == NULL) { - tobj = gluNewTess(); /* create and initialize a GLU - polygon * * tesselation object */ - gluTessCallback(tobj, (GLenum)GLU_BEGIN, (GLVOIDPTR)glBegin); - gluTessCallback(tobj, (GLenum)GLU_VERTEX, (GLVOIDPTR)glVertex2fv); /* semi-tricky */ - gluTessCallback(tobj, (GLenum)GLU_END, (GLVOIDPTR)glEnd); - } - glNewList(side, GL_COMPILE); - glShadeModel(GL_SMOOTH); /* smooth minimizes seeing - tessellation */ - gluBeginPolygon(tobj); - for (i = 0; i < count; i++) { - vertex[0] = data[i][0]; - vertex[1] = data[i][1]; - vertex[2] = 0; - gluTessVertex(tobj, vertex, data[i]); - } - gluEndPolygon(tobj); - glEndList(); - glNewList(edge, GL_COMPILE); - glShadeModel(GL_FLAT); /* flat shade keeps angular hands - from being "smoothed" */ - glBegin(GL_QUAD_STRIP); - for (i = 0; i <= count; i++) { - /* mod function handles closing the edge */ - glVertex3f(data[i % count][0], data[i % count][1], 0.0); - glVertex3f(data[i % count][0], data[i % count][1], thickness); - /* Calculate a unit normal by dividing by Euclidean - distance. We * could be lazy and use - glEnable(GL_NORMALIZE) so we could pass in * arbitrary - normals for a very slight performance hit. */ - dx = data[(i + 1) % count][1] - data[i % count][1]; - dy = data[i % count][0] - data[(i + 1) % count][0]; - len = sqrt(dx * dx + dy * dy); - glNormal3f(dx / len, dy / len, 0.0); - } - glEnd(); - glEndList(); - glNewList(whole, GL_COMPILE); - glFrontFace(GL_CW); - glCallList(edge); - glNormal3f(0.0, 0.0, -1.0); /* constant normal for side */ - glCallList(side); - glPushMatrix(); - glTranslatef(0.0, 0.0, thickness); - glFrontFace(GL_CCW); - glNormal3f(0.0, 0.0, 1.0); /* opposite normal for other side */ - glCallList(side); - glPopMatrix(); - glEndList(); -} - -/* Enumerants for refering to display lists. */ -typedef enum { - RESERVED, BODY_SIDE, BODY_EDGE, BODY_WHOLE, ARM_SIDE, ARM_EDGE, ARM_WHOLE, - LEG_SIDE, LEG_EDGE, LEG_WHOLE, EYE_SIDE, EYE_EDGE, EYE_WHOLE -} displayLists; - -static void -makeDinosaur(void) -{ - extrudeSolidFromPolygon(body, sizeof(body), bodyWidth, - BODY_SIDE, BODY_EDGE, BODY_WHOLE); - extrudeSolidFromPolygon(arm, sizeof(arm), bodyWidth / 4, - ARM_SIDE, ARM_EDGE, ARM_WHOLE); - extrudeSolidFromPolygon(leg, sizeof(leg), bodyWidth / 2, - LEG_SIDE, LEG_EDGE, LEG_WHOLE); - extrudeSolidFromPolygon(eye, sizeof(eye), bodyWidth + 0.2, - EYE_SIDE, EYE_EDGE, EYE_WHOLE); -} - -static void -drawDinosaur(void) - -{ - plReal matrix[16]; - - glPushMatrix(); - /* Translate the dinosaur to be at (0,8,0). */ - - plGetOpenGLMatrix(dinoRigidBody,matrix); -// plGetPosition(dinoRigidBody,dinoWorldPos); - // glTranslatef(-8, 0, -bodyWidth / 2); - //glTranslatef(0.0, jump, 0.0); -// glTranslatef(dinoWorldPos[0],dinoWorldPos[1],dinoWorldPos[2]); - -#ifdef BT_USE_DOUBLE_PRECISION - glMultMatrixd(matrix); -#else - glMultMatrixf(matrix); -#endif -// glutSolidCube(15); - glTranslatef(-8.5, -8.5, 0); - - glMaterialfv(GL_FRONT, GL_DIFFUSE, skinColor); - glCallList(BODY_WHOLE); - glTranslatef(0.0, 0.0, bodyWidth); - glCallList(ARM_WHOLE); - glCallList(LEG_WHOLE); - glTranslatef(0.0, 0.0, -bodyWidth - bodyWidth / 4); - glCallList(ARM_WHOLE); - glTranslatef(0.0, 0.0, -bodyWidth / 4); - glCallList(LEG_WHOLE); - glTranslatef(0.0, 0.0, bodyWidth / 2 - 0.1); - glMaterialfv(GL_FRONT, GL_DIFFUSE, eyeColor); - glCallList(EYE_WHOLE); - - - glPopMatrix(); -} - -static GLfloat floorVertices[4][3] = { - { -20.0, 0.0, 20.0 }, - { 20.0, 0.0, 20.0 }, - { 20.0, 0.0, -20.0 }, - { -20.0, 0.0, -20.0 }, -}; - -/* Draw a floor (possibly textured). */ -static void -drawFloor(void) -{ - glDisable(GL_LIGHTING); - - if (useTexture) { - glEnable(GL_TEXTURE_2D); - } - - glBegin(GL_QUADS); - glTexCoord2f(0.0, 0.0); - glVertex3fv(floorVertices[0]); - glTexCoord2f(0.0, 16.0); - glVertex3fv(floorVertices[1]); - glTexCoord2f(16.0, 16.0); - glVertex3fv(floorVertices[2]); - glTexCoord2f(16.0, 0.0); - glVertex3fv(floorVertices[3]); - glEnd(); - - if (useTexture) { - glDisable(GL_TEXTURE_2D); - } - - glEnable(GL_LIGHTING); -} - -static GLfloat floorPlane[4]; -static GLfloat floorShadow[4][4]; - -static void -redraw(void) -{ - int start = 0, end = 0 ; - - if (reportSpeed) { - start = glutGet(GLUT_ELAPSED_TIME); - } - - /* Clear; default stencil clears to zero. */ - if ((stencilReflection && renderReflection) || (stencilShadow && renderShadow)) { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); - } else { - /* Avoid clearing stencil when not using it. */ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - } - - /* Reposition the light source. */ - lightPosition[0] = 12*cos(lightAngle); - lightPosition[1] = lightHeight; - lightPosition[2] = 12*sin(lightAngle); - if (directionalLight) { - lightPosition[3] = 0.0; - } else { - lightPosition[3] = 1.0; - } - - shadowMatrix(floorShadow, floorPlane, lightPosition); - - glPushMatrix(); - /* Perform scene rotations based on user mouse input. */ - glRotatef(angle2, 1.0, 0.0, 0.0); - glRotatef(angle, 0.0, 1.0, 0.0); - - /* Tell GL new light source position. */ - glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); - - if (renderReflection) { - if (stencilReflection) { - /* We can eliminate the visual "artifact" of seeing the "flipped" - dinosaur underneath the floor by using stencil. The idea is - draw the floor without color or depth update but so that - a stencil value of one is where the floor will be. Later when - rendering the dinosaur reflection, we will only update pixels - with a stencil value of 1 to make sure the reflection only - lives on the floor, not below the floor. */ - - /* Don't update color or depth. */ - glDisable(GL_DEPTH_TEST); - glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); - - /* Draw 1 into the stencil buffer. */ - glEnable(GL_STENCIL_TEST); - glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE); - glStencilFunc(GL_ALWAYS, 1, 0xffffffff); - - /* Now render floor; floor pixels just get their stencil set to 1. */ - drawFloor(); - - /* Re-enable update of color and depth. */ - glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); - glEnable(GL_DEPTH_TEST); - - /* Now, only render where stencil is set to 1. */ - glStencilFunc(GL_EQUAL, 1, 0xffffffff); /* draw if ==1 */ - glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); - } - - glPushMatrix(); - - /* The critical reflection step: Reflect dinosaur through the floor - (the Y=0 plane) to make a relection. */ - glScalef(1.0, -1.0, 1.0); - - /* Reflect the light position. */ - glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); - - /* To avoid our normals getting reversed and hence botched lighting - on the reflection, turn on normalize. */ - glEnable(GL_NORMALIZE); - glCullFace(GL_FRONT); - - /* Draw the reflected dinosaur. */ - drawDinosaur(); - - /* Disable noramlize again and re-enable back face culling. */ - glDisable(GL_NORMALIZE); - glCullFace(GL_BACK); - - glPopMatrix(); - - /* Switch back to the unreflected light position. */ - glLightfv(GL_LIGHT0, GL_POSITION, lightPosition); - - if (stencilReflection) { - glDisable(GL_STENCIL_TEST); - } - } - - /* Back face culling will get used to only draw either the top or the - bottom floor. This let's us get a floor with two distinct - appearances. The top floor surface is reflective and kind of red. - The bottom floor surface is not reflective and blue. */ - - /* Draw "bottom" of floor in blue. */ - glFrontFace(GL_CW); /* Switch face orientation. */ - glColor4f(0.1, 0.1, 0.7, 1.0); - drawFloor(); - glFrontFace(GL_CCW); - - if (renderShadow) { - if (stencilShadow) { - /* Draw the floor with stencil value 3. This helps us only - draw the shadow once per floor pixel (and only on the - floor pixels). */ - glEnable(GL_STENCIL_TEST); - glStencilFunc(GL_ALWAYS, 3, 0xffffffff); - glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); - } - } - - /* Draw "top" of floor. Use blending to blend in reflection. */ - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glColor4f(0.7, 0.0, 0.0, 0.3); - glColor4f(1.0, 1.0, 1.0, 0.3); - drawFloor(); - glDisable(GL_BLEND); - - if (renderDinosaur) { - /* Draw "actual" dinosaur, not its reflection. */ - drawDinosaur(); - } - - if (renderShadow) { - - /* Render the projected shadow. */ - - if (stencilShadow) { - - /* Now, only render where stencil is set above 2 (ie, 3 where - the top floor is). Update stencil with 2 where the shadow - gets drawn so we don't redraw (and accidently reblend) the - shadow). */ - glStencilFunc(GL_LESS, 2, 0xffffffff); /* draw if ==1 */ - glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE); - } - - /* To eliminate depth buffer artifacts, we use polygon offset - to raise the depth of the projected shadow slightly so - that it does not depth buffer alias with the floor. */ - if (offsetShadow) { - switch (polygonOffsetVersion) { - case EXTENSION: -#ifdef GL_VERSION_1_1 - case ONE_DOT_ONE: - glEnable(GL_POLYGON_OFFSET_FILL); - break; -#endif - case MISSING: - /* Oh well. */ - break; - } - } - - /* Render 50% black shadow color on top of whatever the - floor appareance is. */ - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glDisable(GL_LIGHTING); /* Force the 50% black. */ - glColor4f(0.0, 0.0, 0.0, 0.5); - - glPushMatrix(); - /* Project the shadow. */ - glMultMatrixf((GLfloat *) floorShadow); - drawDinosaur(); - glPopMatrix(); - - glDisable(GL_BLEND); - glEnable(GL_LIGHTING); - - if (offsetShadow) { - switch (polygonOffsetVersion) { -#ifdef GL_VERSION_1_1 - case ONE_DOT_ONE: - glDisable(GL_POLYGON_OFFSET_FILL); - break; -#endif - case MISSING: - /* Oh well. */ - break; - } - } - if (stencilShadow) { - glDisable(GL_STENCIL_TEST); - } - } - - glPushMatrix(); - glDisable(GL_LIGHTING); - glColor3f(1.0, 1.0, 0.0); - if (directionalLight) { - /* Draw an arrowhead. */ - glDisable(GL_CULL_FACE); - glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); - glRotatef(lightAngle * -180.0 / M_PI, 0, 1, 0); - glRotatef(atan(lightHeight/12) * 180.0 / M_PI, 0, 0, 1); - glBegin(GL_TRIANGLE_FAN); - glVertex3f(0, 0, 0); - glVertex3f(2, 1, 1); - glVertex3f(2, -1, 1); - glVertex3f(2, -1, -1); - glVertex3f(2, 1, -1); - glVertex3f(2, 1, 1); - glEnd(); - /* Draw a white line from light direction. */ - glColor3f(1.0, 1.0, 1.0); - glBegin(GL_LINES); - glVertex3f(0, 0, 0); - glVertex3f(5, 0, 0); - glEnd(); - glEnable(GL_CULL_FACE); - } else { - /* Draw a yellow ball at the light source. */ - glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]); - glutSolidSphere(1.0, 5, 5); - } - glEnable(GL_LIGHTING); - glPopMatrix(); - - glPopMatrix(); - - if (reportSpeed) { - glFinish(); - end = glutGet(GLUT_ELAPSED_TIME); - printf("Speed %.3g frames/sec (%d ms)\n", 1000.0/(end-start), end-start); - } - - glutSwapBuffers(); -} - -/* ARGSUSED2 */ -static void -mouse(int button, int state, int x, int y) -{ - if (button == GLUT_LEFT_BUTTON) { - if (state == GLUT_DOWN) { - moving = 1; - startx = x; - starty = y; - } - if (state == GLUT_UP) { - moving = 0; - } - } - if (button == GLUT_MIDDLE_BUTTON) { - if (state == GLUT_DOWN) { - lightMoving = 1; - lightStartX = x; - lightStartY = y; - } - if (state == GLUT_UP) { - lightMoving = 0; - } - } -} - -/* ARGSUSED1 */ -static void -motion(int x, int y) -{ - if (moving) { - angle = angle + (x - startx); - angle2 = angle2 + (y - starty); - startx = x; - starty = y; - glutPostRedisplay(); - } - if (0){//lightMoving) { - lightAngle += (x - lightStartX)/40.0; - lightHeight += (lightStartY - y)/20.0; - lightStartX = x; - lightStartY = y; - glutPostRedisplay(); - } -} - -/* Advance time varying state when idle callback registered. */ -static void -idle(void) -{ - static float time = 0.0; - static float prevtime = 0.0; - float dtime; - prevtime = time; - - time = glutGet(GLUT_ELAPSED_TIME) / 500.0; - dtime = time - prevtime; - - jump = 4.0 * fabs(sin(time)*0.5); - if (!lightMoving) { - lightAngle = time; - } - - if (dynamicsWorld) - plStepSimulation(dynamicsWorld,dtime); - - glutPostRedisplay(); -} - -enum { - M_NONE, M_MOTION, M_LIGHT, M_TEXTURE, M_SHADOWS, M_REFLECTION, M_DINOSAUR, - M_STENCIL_REFLECTION, M_STENCIL_SHADOW, M_OFFSET_SHADOW, - M_POSITIONAL, M_DIRECTIONAL, M_PERFORMANCE -}; - -static void -controlLights(int value) -{ - switch (value) { - case M_NONE: - return; - case M_MOTION: - animation = 1 - animation; - if (animation) { - glutIdleFunc(idle); - } else { - glutIdleFunc(NULL); - } - break; - case M_LIGHT: - lightSwitch = !lightSwitch; - if (lightSwitch) { - glEnable(GL_LIGHT0); - } else { - glDisable(GL_LIGHT0); - } - break; - case M_TEXTURE: - useTexture = !useTexture; - break; - case M_SHADOWS: - renderShadow = 1 - renderShadow; - break; - case M_REFLECTION: - renderReflection = 1 - renderReflection; - break; - case M_DINOSAUR: - renderDinosaur = 1 - renderDinosaur; - break; - case M_STENCIL_REFLECTION: - stencilReflection = 1 - stencilReflection; - break; - case M_STENCIL_SHADOW: - stencilShadow = 1 - stencilShadow; - break; - case M_OFFSET_SHADOW: - offsetShadow = 1 - offsetShadow; - break; - case M_POSITIONAL: - directionalLight = 0; - break; - case M_DIRECTIONAL: - directionalLight = 1; - break; - case M_PERFORMANCE: - reportSpeed = 1 - reportSpeed; - break; - } - glutPostRedisplay(); -} - -/* When not visible, stop animating. Restart when visible again. */ -static void -visible(int vis) -{ - if (vis == GLUT_VISIBLE) { - if (animation) - glutIdleFunc(idle); - } else { - if (!animation) - glutIdleFunc(NULL); - } -} - -/* Press any key to redraw; good when motion stopped and - performance reporting on. */ -/* ARGSUSED */ -static void -key(unsigned char c, int x, int y) -{ - if (c == 27) { - exit(0); /* IRIS GLism, Escape quits. */ - } - glutPostRedisplay(); -} - -/* Press any key to redraw; good when motion stopped and - performance reporting on. */ -/* ARGSUSED */ -static void -special(int k, int x, int y) -{ - glutPostRedisplay(); -} - -static int -supportsOneDotOne(void) -{ - const char *version; - int major, minor; - - version = (char *) glGetString(GL_VERSION); - if (sscanf(version, "%d.%d", &major, &minor) == 2) - return ((major > 1) || (major >= 1 && minor >= 1)); - return 0; /* OpenGL version string malformed! */ -} - - -int -main(int argc, char **argv) -{ - int i; - plCollisionShapeHandle floorShape; - plCollisionShapeHandle dinoShape,dinoChildShape; - plVector3 floorPos,childPos; - plVector3 dinoPos; - plQuaternion childOrn,dinoOrient; - - void* user_data=NULL; - - physicsSdk = plNewBulletSdk(); - dynamicsWorld = plCreateDynamicsWorld(physicsSdk); - - //create ground plane - - floorShape = plNewConvexHullShape(); - - for (i=0;i<4;i++) - { -// floorVertices - plAddVertex(floorShape,floorVertices[i][0],floorVertices[i][1],floorVertices[i][2]); - } - - - floorShape = plNewBoxShape(120,0,120); - - floorRigidBody = plCreateRigidBody(user_data,0.f,floorShape); - floorPos[0] = 0; - floorPos[1] = 0; - floorPos[2] = 0; - - plSetPosition(floorRigidBody,floorPos); - plAddRigidBody(dynamicsWorld,floorRigidBody); - - //create dino rigidbody - dinoChildShape = plNewBoxShape(8.5,8.5,8.5); - dinoShape = plNewCompoundShape(); - childPos[0] = 0; - childPos[1] = 0; - childPos[2] = 0; - childOrn[0] = 0; - childOrn[1] = 0; - childOrn[2] = 0; - childOrn[3] = 1; - - plAddChildShape(dinoShape,dinoChildShape,childPos,childOrn); - - dinoPos[0] = -10; dinoPos[1] = 28; dinoPos[2] = 0; - dinoRigidBody = plCreateRigidBody(0,1.0,dinoShape); - plSetPosition(dinoRigidBody,dinoPos); - plSetEuler(0,0,3.15*0.20,dinoOrient); - plSetOrientation(dinoRigidBody,dinoOrient); - - plAddRigidBody(dynamicsWorld,dinoRigidBody); - - printf("BulletDino\n"); - glutInit(&argc, argv); - - for (i=1; i=2 rgb double depth"); -#endif - - glutCreateWindow("Shadowy Leapin' Lizards"); - - if (glutGet(GLUT_WINDOW_STENCIL_SIZE) <= 1) { - printf("dinoshade: Sorry, I need at least 2 bits of stencil.\n"); - exit(1); - } - - /* Register GLUT callbacks. */ - glutDisplayFunc(redraw); - glutMouseFunc(mouse); - glutMotionFunc(motion); - glutVisibilityFunc(visible); - glutKeyboardFunc(key); - glutSpecialFunc(special); - - glutCreateMenu(controlLights); - - glutAddMenuEntry("Toggle motion", M_MOTION); - glutAddMenuEntry("-----------------------", M_NONE); - glutAddMenuEntry("Toggle light", M_LIGHT); - glutAddMenuEntry("Toggle texture", M_TEXTURE); - glutAddMenuEntry("Toggle shadows", M_SHADOWS); - glutAddMenuEntry("Toggle reflection", M_REFLECTION); - glutAddMenuEntry("Toggle dinosaur", M_DINOSAUR); - glutAddMenuEntry("-----------------------", M_NONE); - glutAddMenuEntry("Toggle reflection stenciling", M_STENCIL_REFLECTION); - glutAddMenuEntry("Toggle shadow stenciling", M_STENCIL_SHADOW); - glutAddMenuEntry("Toggle shadow offset", M_OFFSET_SHADOW); - glutAddMenuEntry("----------------------", M_NONE); - glutAddMenuEntry("Positional light", M_POSITIONAL); - glutAddMenuEntry("Directional light", M_DIRECTIONAL); - glutAddMenuEntry("-----------------------", M_NONE); - glutAddMenuEntry("Toggle performance", M_PERFORMANCE); - glutAttachMenu(GLUT_RIGHT_BUTTON); - makeDinosaur(); - -#ifdef GL_VERSION_1_1 - if (supportsOneDotOne() && !forceExtension) { - polygonOffsetVersion = ONE_DOT_ONE; - glPolygonOffset(-2.0, -1.0); - } else -#endif - { - { - polygonOffsetVersion = MISSING; - printf("\ndinoshine: Missing polygon offset.\n"); - printf(" Expect shadow depth aliasing artifacts.\n\n"); - } - } - - glEnable(GL_CULL_FACE); - glEnable(GL_DEPTH_TEST); - glEnable(GL_TEXTURE_2D); - glLineWidth(3.0); - - glMatrixMode(GL_PROJECTION); - gluPerspective( /* field of view in degree */ 40.0, - /* aspect ratio */ 1.0, - /* Z near */ 20.0, /* Z far */ 100.0); - glMatrixMode(GL_MODELVIEW); - gluLookAt(0.0, 8.0, 60.0, /* eye is at (0,0,30) */ - 0.0, 8.0, 0.0, /* center is at (0,0,0) */ - 0.0, 1.0, 0.); /* up is in postivie Y direction */ - - glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); - glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor); - glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 0.1); - glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.05); - glEnable(GL_LIGHT0); - glEnable(GL_LIGHTING); - - makeFloorTexture(); - - /* Setup floor plane for projected shadow calculations. */ - findPlane(floorPlane, floorVertices[1], floorVertices[2], floorVertices[3]); - - glutMainLoop(); - - plDeleteDynamicsWorld(dynamicsWorld); - plDeletePhysicsSdk(physicsSdk); - - - return 0; /* ANSI C requires main to return int. */ -} diff --git a/Demos/BulletDinoDemo/CMakeLists.txt b/Demos/BulletDinoDemo/CMakeLists.txt deleted file mode 100644 index eb43abb8f..000000000 --- a/Demos/BulletDinoDemo/CMakeLists.txt +++ /dev/null @@ -1,62 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - - -# This is the shortcut to finding GLU, GLUT and OpenGL if they are properly installed on your system -# This should be the case. -INCLUDE (${CMAKE_ROOT}/Modules/FindGLU.cmake) -INCLUDE (${CMAKE_ROOT}/Modules/FindGLUT.cmake) -INCLUDE (${CMAKE_ROOT}/Modules/FindOpenGL.cmake) - - -IF (WIN32) - # This is the Windows code for which Opengl, and Glut are not properly installed - # since I can't install them I must cheat and copy libraries around - INCLUDE_DIRECTORIES(${GLUT_ROOT}) - # LINK_DIRECTORIES(${GLUT_ROOT}\\lib) - IF (${GLUT_glut_LIBRARY} MATCHES "GLUT_glut_LIBRARY-NOTFOUND") - SET(GLUT_glut_LIBRARY ${BULLET_PHYSICS_SOURCE_DIR}/Glut/glut32.lib) - # LINK_LIBRARIES(${GLUT_ROOT}\\lib\\glut32 ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY}) - # TARGET_LINK_LIBRARIES(table ${GLUT_ROOT}\\lib\\glut32) -# -# ADD_CUSTOM_COMMAND(TARGET table POST_BUILD COMMAND copy ${GLUT_ROOT}\\lib\\glut32.dll ${GLUT_ROOT}\\bin\\vs2005\\Debug -# COMMAND copy ${GLUT_ROOT}\\lib\\glut32.dll ${GLUT_ROOT}\\bin\\vs2003\\Debug -# COMMAND copy ${GLUT_ROOT}\\lib\\glut32.dll ${GLUT_ROOT}\\bin\\vs6\\Debug) - ELSE (${GLUT_glut_LIBRARY} MATCHES "GLUT_glut_LIBRARY-NOTFOUND") -# LINK_LIBRARIES(${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY}) -# TARGET_LINK_LIBRARIES(table ${GLUT_glut_LIBRARY}) - ENDIF(${GLUT_glut_LIBRARY} MATCHES "GLUT_glut_LIBRARY-NOTFOUND") -# TARGET_LINK_LIBRARIES(table ${OPENGL_gl_LIBRARY}) -# TARGET_LINK_LIBRARIES(table ${OPENGL_glu_LIBRARY}) -ELSE (WIN32) - # This is the lines for linux. This should always work if everything is installed and working fine. -# SET(CMAKE_BUILD_TYPE Debug) -# SET(CMAKE_CXX_FLAGS_DEBUG "-g") - INCLUDE_DIRECTORIES(/usr/include /usr/local/include ${GLUT_INCLUDE_DIR}) -# TARGET_LINK_LIBRARIES(table ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY}) -# TARGET_LINK_LIBRARIES(checker ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY}) -ENDIF (WIN32) - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -) - -LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glU_LIBRARY} -) - -ADD_EXECUTABLE(BulletDino - BulletDino.c -) - diff --git a/Demos/BulletXmlImportDemo/BulletXmlImportDemo.cpp b/Demos/BulletXmlImportDemo/BulletXmlImportDemo.cpp deleted file mode 100644 index dba805a5b..000000000 --- a/Demos/BulletXmlImportDemo/BulletXmlImportDemo.cpp +++ /dev/null @@ -1,198 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#include "BulletXmlImportDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btSerializer.h" -#include "btBulletFile.h" -#include "btBulletWorldImporter.h" -#include "btBulletXmlWorldImporter.h" - -#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h" -#include //printf debugging - - - -#include "GLDebugDrawer.h" -GLDebugDrawer gDebugDrawer; - - -void BulletXmlImportDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - - - setupEmptyDynamicsWorld(); - - - m_dynamicsWorld->setDebugDrawer(&gDebugDrawer); - - - btBulletXmlWorldImporter* importer = new btBulletXmlWorldImporter(m_dynamicsWorld); - static const char* filename = "bullet_basic.xml"; - - const char* prefix[]={"./","../","../../","../../../","../../../../", "BulletXmlImportDemo/", "Demos/BulletXmlImportDemo/", - "../Demos/BulletXmlImportDemo/","../../Demos/BulletXmlImportDemo/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - bool fileFound = false; - - for (int i=0;iloadFile(relativeFileName); -// importer->loadFile("bulletser.xml"); -// importer->loadFile("bullet_constraints.xml"); - -} - -void BulletXmlImportDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - - - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void BulletXmlImportDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - -void BulletXmlImportDemo::setupEmptyDynamicsWorld() -{ - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - btGImpactCollisionAlgorithm::registerAlgorithm(m_dispatcher); - - m_broadphase = new btDbvtBroadphase(); - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - - //btGImpactCollisionAlgorithm::registerAlgorithm((btCollisionDispatcher*)m_dynamicsWorld->getDispatcher()); - - - -} - - - - -BulletXmlImportDemo::~BulletXmlImportDemo() -{ - exitPhysics(); -} - -void BulletXmlImportDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void BulletXmlImportDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - public: - - BulletXmlImportDemo() - { - //m_idle=true; - setCameraDistance(btScalar(30.)); - } - virtual ~BulletXmlImportDemo(); - - virtual void clientResetScene(); - - void initPhysics(); - - void setupEmptyDynamicsWorld(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - BulletXmlImportDemo* demo = new BulletXmlImportDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //SERIALIZE_DEMO_H - diff --git a/Demos/BulletXmlImportDemo/CMakeLists.txt b/Demos/BulletXmlImportDemo/CMakeLists.txt deleted file mode 100644 index 175c52964..000000000 --- a/Demos/BulletXmlImportDemo/CMakeLists.txt +++ /dev/null @@ -1,78 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletXmlWorldImporter -${GLUT_INCLUDE_DIR} -) - -ADD_DEFINITIONS(-DDESERIALIZE_SOFT_BODIES) - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletXmlWorldImporter BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppBulletXmlImportDemo - main.cpp - BulletXmlImportDemo.cpp - BulletXmlImportDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppBulletXmlImportDemo - main.cpp - BulletXmlImportDemo.cpp - BulletXmlImportDemo.h - ) - ENDIF() - -ELSE (USE_GLUT) - - LINK_LIBRARIES( - OpenGLSupport BulletXmlWorldImporter BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppBulletXmlImportDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32BulletXmlImportDemo.cpp - BulletXmlImportDemo.cpp - BulletXmlImportDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ENDIF (USE_GLUT) - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES AND NOT INTERNAL_UPDATE_SERIALIZATION_STRUCTURES) - ADD_CUSTOM_COMMAND( - TARGET AppBulletXmlImportDemo - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/BulletXmlImportDemo/bullet_basic.xml ${CMAKE_CURRENT_BINARY_DIR}/bullet_basic.xml - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/BulletXmlImportDemo/bullet_basic.xml ${CMAKE_CURRENT_BINARY_DIR}/Debug/bullet_basic.xml - ) -ENDIF () - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBulletXmlImportDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBulletXmlImportDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBulletXmlImportDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - - diff --git a/Demos/BulletXmlImportDemo/Win32BulletXmlImportDemo.cpp b/Demos/BulletXmlImportDemo/Win32BulletXmlImportDemo.cpp deleted file mode 100644 index 9e8510221..000000000 --- a/Demos/BulletXmlImportDemo/Win32BulletXmlImportDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BulletXmlImportDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new BulletXmlImportDemo(); -} - -#endif diff --git a/Demos/BulletXmlImportDemo/bullet_basic.xml b/Demos/BulletXmlImportDemo/bullet_basic.xml deleted file mode 100644 index 9205ee067..000000000 --- a/Demos/BulletXmlImportDemo/bullet_basic.xml +++ /dev/null @@ -1,668 +0,0 @@ - - - - - 0.600000 - 1.000000 - 0.300000 - 0.016667 - 0.000000 - 20.000000 - 1.000000 - 0.200000 - 0.800000 - 0.000000 - -0.040000 - 0.100000 - 0.000000 - 0.850000 - 100.000000 - 1000000015047466200000000000000.000000 - 10 - 260 - 2 - 128 - 1 - 0 0 0 0 - - - 0.000000 -10.000000 0.000000 0.000000 - - - - - 0 - 3 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 -50.000000 0.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 1 - -1 - -2 - 2 - 2 - 0 - -51 -51 -51 -51 - - - - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 5 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 14.166666 -3.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 14.166666 -3.000000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 4 - -1 - 1 - 2 - 0 - -51 -51 -51 -51 - - - - 1.500000 0.000000 0.000000 0.000000 - 0.000000 1.500000 0.000000 0.000000 - 0.000000 0.000000 1.500000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.500000 1.500000 1.500000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 5 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 16.166668 -3.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 16.166668 -3.000000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 4 - -1 - 1 - 2 - 0 - -51 -51 -51 -51 - - - - 1.500000 0.000000 0.000000 0.000000 - 0.000000 1.500000 0.000000 0.000000 - 0.000000 0.000000 1.500000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.500000 1.500000 1.500000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 5 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 18.166668 -3.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 18.166668 -3.000000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 4 - -1 - 1 - 2 - 0 - -51 -51 -51 -51 - - - - 1.500000 0.000000 0.000000 0.000000 - 0.000000 1.500000 0.000000 0.000000 - 0.000000 0.000000 1.500000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.500000 1.500000 1.500000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 5 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 20.166668 -3.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 20.166668 -3.000000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 4 - -1 - 1 - 2 - 0 - -51 -51 -51 -51 - - - - 1.500000 0.000000 0.000000 0.000000 - 0.000000 1.500000 0.000000 0.000000 - 0.000000 0.000000 1.500000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.500000 1.500000 1.500000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 5 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 22.166668 -3.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -5.000000 22.166668 -3.000000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - -431602080.000000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 4 - -1 - 1 - 2 - 0 - -51 -51 -51 -51 - - - - 1.500000 0.000000 0.000000 0.000000 - 0.000000 1.500000 0.000000 0.000000 - 0.000000 0.000000 1.500000 0.000000 - - - - 0.000000 -4.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.500000 1.500000 1.500000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 0 - -51 -51 -51 -51 - - - 1.000000 1.000000 1.000000 0.000000 - - - 49.959999 49.959999 49.959999 0.000000 - - 0.040000 - -842150451 - - - - 0 - 0 - -51 -51 -51 -51 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.960000 0.960000 0.960000 0.000000 - - 0.040000 - -842150451 - - diff --git a/Demos/BulletXmlImportDemo/bulletser.xml b/Demos/BulletXmlImportDemo/bulletser.xml deleted file mode 100644 index 82b8b8046..000000000 --- a/Demos/BulletXmlImportDemo/bulletser.xml +++ /dev/null @@ -1,24344 +0,0 @@ - - - - - 0 - 2 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 -7.000000 0.000000 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 -7.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.000000 - 1.000000 - 0.000000 - 0.000000 - 0 - 1 - -1 - -2 - 2 - 2 - 0 - - - - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 4 - 0 - 0 - - - - 0.264808 0.292382 0.918907 0.000000 - 0.957898 0.029880 -0.285551 0.000000 - -0.110947 0.955835 -0.272160 0.000000 - - - - -10.018404 16.045120 -1.137200 0.000000 - - - - - - 0.264808 0.292382 0.918907 0.000000 - 0.957898 0.029880 -0.285551 0.000000 - -0.110947 0.955835 -0.272160 0.000000 - - - - -10.018404 16.045120 -1.137200 0.000000 - - - - 0.000313 -3.168241 0.001859 0.000000 - - - -0.000187 0.000277 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.678407 -0.015449 -0.076281 0.000000 - -0.015449 0.658463 -0.002496 0.000000 - -0.076281 -0.002496 0.450866 0.000000 - - - - 0.000313 -3.168241 0.001859 0.000000 - - - -0.000187 0.000277 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.654481 0.427455 0.705801 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 6 - 0 - 0 - - - - 0.242979 0.250713 0.937072 0.000000 - 0.965499 0.030774 -0.258584 0.000000 - -0.093668 0.967572 -0.234586 0.000000 - - - - -11.238498 15.694831 0.166336 0.000000 - - - - - - 0.242979 0.250713 0.937072 0.000000 - 0.965499 0.030774 -0.258584 0.000000 - -0.093668 0.967572 -0.234586 0.000000 - - - - -11.238498 15.694831 0.166336 0.000000 - - - - 0.000846 -3.168296 0.002338 0.000000 - - - -0.000171 0.000315 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.860338 0.016671 -0.009542 0.000000 - 0.016671 0.925339 -0.007493 0.000000 - -0.009542 -0.007493 0.828272 0.000000 - - - - 0.000846 -3.168296 0.002338 0.000000 - - - -0.000171 0.000315 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.930261 0.825561 0.858127 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 8 - 0 - 0 - - - - 0.275672 0.264634 0.924107 0.000000 - 0.958897 -0.008466 -0.283626 0.000000 - -0.067234 0.964312 -0.256090 0.000000 - - - - -2.524789 11.367409 -1.009499 0.000000 - - - - - - 0.275672 0.264634 0.924107 0.000000 - 0.958897 -0.008466 -0.283626 0.000000 - -0.067234 0.964312 -0.256090 0.000000 - - - - -2.524789 11.367409 -1.009499 0.000000 - - - - 0.001664 -3.165827 0.000217 0.000000 - - - -0.000169 0.000337 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.894856 -0.056095 -0.064263 0.000000 - -0.056095 0.732659 0.016010 0.000000 - -0.064263 0.016010 0.680254 0.000000 - - - - 0.001664 -3.165827 0.000217 0.000000 - - - -0.000169 0.000337 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.715410 0.662478 0.929882 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 10 - 0 - 0 - - - - 0.257979 0.278814 0.925046 0.000000 - 0.962798 0.005503 -0.270166 0.000000 - -0.080417 0.960330 -0.267021 0.000000 - - - - -9.919354 17.980125 -0.555819 0.000000 - - - - - - 0.257979 0.278814 0.925046 0.000000 - 0.962798 0.005503 -0.270166 0.000000 - -0.080417 0.960330 -0.267021 0.000000 - - - - -9.919354 17.980125 -0.555819 0.000000 - - - - -0.000078 -3.168092 0.001480 0.000000 - - - -0.000177 0.000339 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.393794 0.005861 -0.002142 0.000000 - 0.005861 0.414610 -0.001863 0.000000 - -0.002142 -0.001863 0.387164 0.000000 - - - - -0.000078 -3.168092 0.001480 0.000000 - - - -0.000177 0.000339 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.416336 0.386531 0.392701 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 12 - 0 - 0 - - - - 0.248511 0.279020 0.927572 0.000000 - 0.965454 0.006127 -0.260503 0.000000 - -0.078369 0.960266 -0.267858 0.000000 - - - - -8.410973 14.244036 -0.442220 0.000000 - - - - - - 0.248511 0.279020 0.927572 0.000000 - 0.965454 0.006127 -0.260503 0.000000 - -0.078369 0.960266 -0.267858 0.000000 - - - - -8.410973 14.244036 -0.442220 0.000000 - - - - 0.001032 -3.167562 0.001671 0.000000 - - - -0.000182 0.000329 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.589460 0.021100 0.021100 0.000000 - 0.021100 0.658852 -0.006107 0.000000 - 0.021100 -0.006107 0.656448 0.000000 - - - - 0.001032 -3.167562 0.001671 0.000000 - - - -0.000182 0.000329 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.664779 0.662540 0.577441 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 14 - 0 - 0 - - - - 0.247185 0.280090 0.927604 0.000000 - 0.958474 0.069834 -0.276497 0.000000 - -0.142222 0.957430 -0.251197 0.000000 - - - - 1.130368 22.070639 -4.238024 0.000000 - - - - - - 0.247185 0.280090 0.927604 0.000000 - 0.958474 0.069834 -0.276497 0.000000 - -0.142222 0.957430 -0.251197 0.000000 - - - - 1.130368 22.070639 -4.238024 0.000000 - - - - -0.002590 -3.165485 -0.002949 0.000000 - - - -0.000169 0.000332 0.000293 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.466322 0.006449 -0.034802 0.000000 - 0.006449 0.507692 -0.013464 0.000000 - -0.034802 -0.013464 0.360131 0.000000 - - - - -0.002590 -3.165485 -0.002949 0.000000 - - - -0.000169 0.000332 0.000293 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.511353 0.348968 0.473824 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 16 - 0 - 0 - - - - 0.266485 0.246893 0.931681 0.000000 - 0.959592 0.022678 -0.280478 0.000000 - -0.090377 0.968777 -0.230873 0.000000 - - - - -9.872525 21.078518 0.099456 0.000000 - - - - - - 0.266485 0.246893 0.931681 0.000000 - 0.959592 0.022678 -0.280478 0.000000 - -0.090377 0.968777 -0.230873 0.000000 - - - - -9.872525 21.078518 0.099456 0.000000 - - - - -0.000733 -3.168016 0.000908 0.000000 - - - -0.000170 0.000350 0.000271 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.339247 -0.021719 -0.005950 0.000000 - -0.021719 0.269707 0.006570 0.000000 - -0.005950 0.006570 0.315268 0.000000 - - - - -0.000733 -3.168016 0.000908 0.000000 - - - -0.000170 0.000350 0.000271 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.263057 0.313905 0.347260 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 18 - 0 - 0 - - - - 0.276870 0.268336 0.922680 0.000000 - 0.955658 0.023338 -0.293552 0.000000 - -0.100304 0.963043 -0.249976 0.000000 - - - - -4.702626 11.224889 -1.168015 0.000000 - - - - - - 0.276870 0.268336 0.922680 0.000000 - 0.955658 0.023338 -0.293552 0.000000 - -0.100304 0.963043 -0.249976 0.000000 - - - - -4.702626 11.224889 -1.168015 0.000000 - - - - 0.001675 -3.166511 0.000977 0.000000 - - - -0.000171 0.000335 0.000309 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.197971 0.007453 0.003046 0.000000 - 0.007453 0.220187 -0.002334 0.000000 - 0.003046 -0.002334 0.208758 0.000000 - - - - 0.001675 -3.166511 0.000977 0.000000 - - - -0.000171 0.000335 0.000309 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.222592 0.209550 0.194775 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 20 - 0 - 0 - - - - 0.283593 0.280329 0.917055 0.000000 - 0.951274 0.038476 -0.305936 0.000000 - -0.121047 0.959132 -0.255759 0.000000 - - - - -10.550672 14.599033 0.296376 0.000000 - - - - - - 0.283593 0.280329 0.917055 0.000000 - 0.951274 0.038476 -0.305936 0.000000 - -0.121047 0.959132 -0.255759 0.000000 - - - - -10.550672 14.599033 0.296376 0.000000 - - - - 0.001169 -3.168065 0.002311 0.000000 - - - -0.000193 0.000324 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 1.236007 0.043334 -0.045267 0.000000 - 0.043334 1.384638 -0.024602 0.000000 - -0.045267 -0.024602 1.101292 0.000000 - - - - 0.001169 -3.168065 0.002311 0.000000 - - - -0.000193 0.000324 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.400687 1.087075 1.234175 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 22 - 0 - 0 - - - - 0.272907 0.234561 0.933007 0.000000 - 0.959242 0.007573 -0.282485 0.000000 - -0.073325 0.972072 -0.222934 0.000000 - - - - 1.922308 18.900015 -3.260913 0.000000 - - - - - - 0.272907 0.234561 0.933007 0.000000 - 0.959242 0.007573 -0.282485 0.000000 - -0.073325 0.972072 -0.222934 0.000000 - - - - 1.922308 18.900015 -3.260913 0.000000 - - - - -0.001330 -3.165045 -0.002655 0.000000 - - - -0.000171 0.000335 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.325534 -0.006948 0.015560 0.000000 - -0.006948 0.299091 0.002383 0.000000 - 0.015560 0.002383 0.386022 0.000000 - - - - -0.001330 -3.165045 -0.002655 0.000000 - - - -0.000171 0.000335 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.296932 0.389795 0.323920 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 24 - 0 - 0 - - - - 0.274333 0.300222 0.913569 0.000000 - 0.961129 -0.054803 -0.270606 0.000000 - -0.031176 0.952294 -0.303587 0.000000 - - - - 0.144925 11.882150 -3.524450 0.000000 - - - - - - 0.274333 0.300222 0.913569 0.000000 - 0.961129 -0.054803 -0.270606 0.000000 - -0.031176 0.952294 -0.303587 0.000000 - - - - 0.144925 11.882150 -3.524450 0.000000 - - - - 0.000599 -3.165483 -0.000786 0.000000 - - - -0.000173 0.000347 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.570005 0.021714 0.010805 0.000000 - 0.021714 0.638505 -0.004648 0.000000 - 0.010805 -0.004648 0.596642 0.000000 - - - - 0.000599 -3.165483 -0.000786 0.000000 - - - -0.000173 0.000347 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.644854 0.600315 0.559982 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 26 - 0 - 0 - - - - 0.259535 0.269832 0.927271 0.000000 - 0.960981 0.022978 -0.275656 0.000000 - -0.095688 0.962633 -0.253340 0.000000 - - - - -8.745180 13.411012 0.804027 0.000000 - - - - - - 0.259535 0.269832 0.927271 0.000000 - 0.960981 0.022978 -0.275656 0.000000 - -0.095688 0.962633 -0.253340 0.000000 - - - - -8.745180 13.411012 0.804027 0.000000 - - - - 0.001708 -3.167436 0.001931 0.000000 - - - -0.000179 0.000338 0.000311 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.549220 -0.025285 -0.045189 0.000000 - -0.025285 0.479570 0.004850 0.000000 - -0.045189 0.004850 0.398405 0.000000 - - - - 0.001708 -3.167436 0.001931 0.000000 - - - -0.000179 0.000338 0.000311 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.472259 0.385854 0.569083 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 28 - 0 - 0 - - - - 0.243210 0.295166 0.923973 0.000000 - 0.968147 -0.015434 -0.249907 0.000000 - -0.059503 0.955321 -0.289518 0.000000 - - - - -9.695178 19.994808 0.607097 0.000000 - - - - - - 0.243210 0.295166 0.923973 0.000000 - 0.968147 -0.015434 -0.249907 0.000000 - -0.059503 0.955321 -0.289518 0.000000 - - - - -9.695178 19.994808 0.607097 0.000000 - - - - -0.000250 -3.167815 0.001025 0.000000 - - - -0.000188 0.000356 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.418109 -0.011465 0.005721 0.000000 - -0.011465 0.374105 0.002523 0.000000 - 0.005721 0.002523 0.435498 0.000000 - - - - -0.000250 -3.167815 0.001025 0.000000 - - - -0.000188 0.000356 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.371069 0.437225 0.419418 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 30 - 0 - 0 - - - - 0.266779 0.290382 0.918971 0.000000 - 0.959454 0.009993 -0.281689 0.000000 - -0.090980 0.956859 -0.275942 0.000000 - - - - -9.310074 14.486863 -0.889529 0.000000 - - - - - - 0.266779 0.290382 0.918971 0.000000 - 0.959454 0.009993 -0.281689 0.000000 - -0.090980 0.956859 -0.275942 0.000000 - - - - -9.310074 14.486863 -0.889529 0.000000 - - - - 0.000829 -3.167903 0.001926 0.000000 - - - -0.000175 0.000334 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.601416 0.069075 0.034001 0.000000 - 0.069075 0.816951 -0.022019 0.000000 - 0.034001 -0.022019 0.705745 0.000000 - - - - 0.000829 -3.167903 0.001926 0.000000 - - - -0.000175 0.000334 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.838246 0.715833 0.570033 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 32 - 0 - 0 - - - - 0.275035 0.243113 0.930189 0.000000 - 0.958017 0.012202 -0.286452 0.000000 - -0.080990 0.969921 -0.229551 0.000000 - - - - -1.096564 13.172791 -2.039617 0.000000 - - - - - - 0.275035 0.243113 0.930189 0.000000 - 0.958017 0.012202 -0.286452 0.000000 - -0.080990 0.969921 -0.229551 0.000000 - - - - -1.096564 13.172791 -2.039617 0.000000 - - - - 0.000771 -3.165606 -0.000599 0.000000 - - - -0.000181 0.000348 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.534793 0.008557 -0.019153 0.000000 - 0.008557 0.567485 -0.003512 0.000000 - -0.019153 -0.003512 0.463653 0.000000 - - - - 0.000771 -3.165606 -0.000599 0.000000 - - - -0.000181 0.000348 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.570238 0.458809 0.536884 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 34 - 0 - 0 - - - - 0.272922 0.269009 0.923660 0.000000 - 0.958389 0.007495 -0.285367 0.000000 - -0.083689 0.963108 -0.255770 0.000000 - - - - -5.976898 12.528832 -0.221821 0.000000 - - - - - - 0.272922 0.269009 0.923660 0.000000 - 0.958389 0.007495 -0.285367 0.000000 - -0.083689 0.963108 -0.255770 0.000000 - - - - -5.976898 12.528832 -0.221821 0.000000 - - - - 0.001635 -3.166748 0.001185 0.000000 - - - -0.000178 0.000312 0.000312 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.316995 0.001262 -0.016360 0.000000 - 0.001262 0.326006 -0.000878 0.000000 - -0.016360 -0.000878 0.263034 0.000000 - - - - 0.001635 -3.166748 0.001185 0.000000 - - - -0.000178 0.000312 0.000312 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.326442 0.258458 0.321136 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 36 - 0 - 0 - - - - 0.263349 0.270617 0.925967 0.000000 - 0.961822 0.000445 -0.273677 0.000000 - -0.074474 0.962687 -0.260168 0.000000 - - - - -10.960040 18.021080 0.939480 0.000000 - - - - - - 0.263349 0.270617 0.925967 0.000000 - 0.961822 0.000445 -0.273677 0.000000 - -0.074474 0.962687 -0.260168 0.000000 - - - - -10.960040 18.021080 0.939480 0.000000 - - - - 0.000421 -3.168117 0.001832 0.000000 - - - -0.000176 0.000334 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.486755 -0.008641 -0.007840 0.000000 - -0.008640 0.459969 0.002428 0.000000 - -0.007840 0.002428 0.461054 0.000000 - - - - 0.000421 -3.168117 0.001832 0.000000 - - - -0.000176 0.000334 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.457415 0.458851 0.491512 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 38 - 0 - 0 - - - - 0.266744 0.253792 0.929751 0.000000 - 0.960598 0.008160 -0.277821 0.000000 - -0.078096 0.967224 -0.241616 0.000000 - - - - -11.098556 16.231737 0.987424 0.000000 - - - - - - 0.266744 0.253792 0.929751 0.000000 - 0.960598 0.008160 -0.277821 0.000000 - -0.078096 0.967224 -0.241616 0.000000 - - - - -11.098556 16.231737 0.987424 0.000000 - - - - 0.000970 -3.168130 0.002216 0.000000 - - - -0.000185 0.000342 0.000276 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.585797 -0.030939 0.003375 0.000000 - -0.030939 0.482723 0.009088 0.000000 - 0.003375 0.009088 0.596704 0.000000 - - - - 0.000970 -3.168130 0.002216 0.000000 - - - -0.000185 0.000342 0.000276 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.473392 0.597666 0.594164 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 40 - 0 - 0 - - - - 0.269143 0.210785 0.939751 0.000000 - 0.962592 -0.027180 -0.269588 0.000000 - -0.031283 0.977154 -0.210215 0.000000 - - - - 0.026031 13.865726 -2.003178 0.000000 - - - - - - 0.269143 0.210785 0.939751 0.000000 - 0.962592 -0.027180 -0.269588 0.000000 - -0.031283 0.977154 -0.210215 0.000000 - - - - 0.026031 13.865726 -2.003178 0.000000 - - - - 0.000572 -3.165297 -0.001108 0.000000 - - - -0.000180 0.000344 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.603775 -0.031062 -0.006832 0.000000 - -0.031062 0.502313 0.004648 0.000000 - -0.006832 0.004648 0.577712 0.000000 - - - - 0.000572 -3.165297 -0.001108 0.000000 - - - -0.000180 0.000344 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.493477 0.576109 0.614214 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 42 - 0 - 0 - - - - 0.283737 0.215623 0.934345 0.000000 - 0.956772 0.001251 -0.290836 0.000000 - -0.063879 0.976476 -0.205947 0.000000 - - - - 0.178605 13.075008 -1.375758 0.000000 - - - - - - 0.283737 0.215623 0.934345 0.000000 - 0.956772 0.001251 -0.290836 0.000000 - -0.063879 0.976476 -0.205947 0.000000 - - - - 0.178605 13.075008 -1.375758 0.000000 - - - - 0.001017 -3.165117 -0.001027 0.000000 - - - -0.000176 0.000351 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 2.338381 -0.177631 -0.146997 0.000000 - -0.177631 1.827779 0.039024 0.000000 - -0.146997 0.039024 1.704065 0.000000 - - - - 0.001017 -3.165117 -0.001027 0.000000 - - - -0.000176 0.000351 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.772496 1.671656 2.426074 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 44 - 0 - 0 - - - - 0.259117 0.262494 0.929492 0.000000 - 0.959188 0.042868 -0.279501 0.000000 - -0.113213 0.963981 -0.240673 0.000000 - - - - 0.062176 11.969648 -1.848458 0.000000 - - - - - - 0.259117 0.262494 0.929492 0.000000 - 0.959188 0.042868 -0.279501 0.000000 - -0.113213 0.963981 -0.240673 0.000000 - - - - 0.062176 11.969648 -1.848458 0.000000 - - - - 0.001145 -3.165230 -0.000781 0.000000 - - - -0.000170 0.000345 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.684872 -0.006403 -0.006127 0.000000 - -0.006403 0.665760 0.001546 0.000000 - -0.006127 0.001546 0.662925 0.000000 - - - - 0.001145 -3.165230 -0.000781 0.000000 - - - -0.000170 0.000345 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.663848 0.661325 0.688384 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 46 - 0 - 0 - - - - 0.250381 0.269174 0.929976 0.000000 - 0.966033 -0.006013 -0.258349 0.000000 - -0.063949 0.963073 -0.261536 0.000000 - - - - -1.106317 12.913932 -1.058279 0.000000 - - - - - - 0.250381 0.269174 0.929976 0.000000 - 0.966033 -0.006013 -0.258349 0.000000 - -0.063949 0.963073 -0.261536 0.000000 - - - - -1.106317 12.913932 -1.058279 0.000000 - - - - 0.001200 -3.165425 -0.000550 0.000000 - - - -0.000177 0.000359 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 1.543157 0.090421 -0.089587 0.000000 - 0.090421 1.890073 -0.021093 0.000000 - -0.089587 -0.021093 1.245511 0.000000 - - - - 0.001200 -3.165425 -0.000550 0.000000 - - - -0.000177 0.000359 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.914905 1.220603 1.543232 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 48 - 0 - 0 - - - - 0.267856 0.275219 0.923313 0.000000 - 0.959776 0.007491 -0.280667 0.000000 - -0.084162 0.961352 -0.262142 0.000000 - - - - -1.124454 23.155754 -1.647149 0.000000 - - - - - - 0.267856 0.275219 0.923313 0.000000 - 0.959776 0.007491 -0.280667 0.000000 - -0.084162 0.961352 -0.262142 0.000000 - - - - -1.124454 23.155754 -1.647149 0.000000 - - - - -0.002031 -3.165764 -0.002409 0.000000 - - - -0.000171 0.000322 0.000302 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.357407 0.019838 -0.019681 0.000000 - 0.019838 0.428544 -0.006765 0.000000 - -0.019681 -0.006765 0.294889 0.000000 - - - - -0.002031 -3.165764 -0.002409 0.000000 - - - -0.000171 0.000322 0.000302 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.434674 0.289202 0.356964 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 50 - 0 - 0 - - - - 0.304517 0.278124 0.910998 0.000000 - 0.952197 -0.064487 -0.298601 0.000000 - -0.024301 0.958378 -0.284466 0.000000 - - - - -7.906496 15.780626 -1.263670 0.000000 - - - - - - 0.304517 0.278124 0.910998 0.000000 - 0.952197 -0.064487 -0.298601 0.000000 - -0.024301 0.958378 -0.284466 0.000000 - - - - -7.906496 15.780626 -1.263670 0.000000 - - - - 0.000297 -3.167574 0.001238 0.000000 - - - -0.000196 0.000328 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.649328 0.001596 0.025461 0.000000 - 0.001596 0.651618 -0.006188 0.000000 - 0.025461 -0.006188 0.728887 0.000000 - - - - 0.000297 -3.167574 0.001238 0.000000 - - - -0.000196 0.000328 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.652287 0.736692 0.640855 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 52 - 0 - 0 - - - - 0.263972 0.247827 0.932148 0.000000 - 0.960098 0.025030 -0.278542 0.000000 - -0.092362 0.968481 -0.231331 0.000000 - - - - -8.914278 23.222511 -0.677441 0.000000 - - - - - - 0.263972 0.247827 0.932148 0.000000 - 0.960098 0.025030 -0.278542 0.000000 - -0.092362 0.968481 -0.231331 0.000000 - - - - -8.914278 23.222511 -0.677441 0.000000 - - - - -0.001617 -3.167928 0.000177 0.000000 - - - -0.000181 0.000355 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.177730 -0.004872 0.000719 0.000000 - -0.004872 0.161264 0.001732 0.000000 - 0.000719 0.001732 0.179820 0.000000 - - - - -0.001617 -3.167928 0.000177 0.000000 - - - -0.000181 0.000355 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.159758 0.180048 0.179007 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 54 - 0 - 0 - - - - 0.260971 0.245743 0.933544 0.000000 - 0.963806 -0.011706 -0.266349 0.000000 - -0.054526 0.969264 -0.239903 0.000000 - - - - -9.322986 15.480569 1.086315 0.000000 - - - - - - 0.260971 0.245743 0.933544 0.000000 - 0.963806 -0.011706 -0.266349 0.000000 - -0.054526 0.969264 -0.239903 0.000000 - - - - -9.322986 15.480569 1.086315 0.000000 - - - - 0.001184 -3.167588 0.001755 0.000000 - - - -0.000179 0.000337 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.858383 0.031085 -0.077081 0.000000 - 0.031085 0.980720 -0.002714 0.000000 - -0.077081 -0.002714 0.572388 0.000000 - - - - 0.001184 -3.167588 0.001755 0.000000 - - - -0.000179 0.000337 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.989290 0.552878 0.869323 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 56 - 0 - 0 - - - - 0.230733 0.267495 0.935526 0.000000 - 0.970522 0.005541 -0.240949 0.000000 - -0.069637 0.963543 -0.258332 0.000000 - - - - -9.812456 19.797951 -1.139824 0.000000 - - - - - - 0.230733 0.267495 0.935526 0.000000 - 0.970522 0.005541 -0.240949 0.000000 - -0.069637 0.963543 -0.258332 0.000000 - - - - -9.812456 19.797951 -1.139824 0.000000 - - - - -0.000819 -3.168171 0.001123 0.000000 - - - -0.000177 0.000343 0.000289 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.424625 0.016657 -0.019142 0.000000 - 0.016657 0.496117 -0.005430 0.000000 - -0.019142 -0.005430 0.361365 0.000000 - - - - -0.000819 -3.168171 0.001123 0.000000 - - - -0.000177 0.000343 0.000289 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.500467 0.356020 0.425621 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 58 - 0 - 0 - - - - 0.265756 0.244547 0.932508 0.000000 - 0.962682 -0.015986 -0.270163 0.000000 - -0.051161 0.969505 -0.239670 0.000000 - - - - -2.932368 10.656281 -1.757161 0.000000 - - - - - - 0.265756 0.244547 0.932508 0.000000 - 0.962682 -0.015986 -0.270163 0.000000 - -0.051161 0.969505 -0.239670 0.000000 - - - - -2.932368 10.656281 -1.757161 0.000000 - - - - 0.001641 -3.166028 0.000483 0.000000 - - - -0.000164 0.000315 0.000319 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.591222 0.006645 -0.014575 0.000000 - 0.006645 0.616250 -0.000304 0.000000 - -0.014575 -0.000304 0.536678 0.000000 - - - - 0.001641 -3.166028 0.000483 0.000000 - - - -0.000164 0.000315 0.000319 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.618101 0.533007 0.593043 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 60 - 0 - 0 - - - - 0.271211 0.256094 0.927826 0.000000 - 0.959765 0.000928 -0.280803 0.000000 - -0.072773 0.966651 -0.245538 0.000000 - - - - -3.117821 13.220895 -2.660358 0.000000 - - - - - - 0.271211 0.256094 0.927826 0.000000 - 0.959765 0.000928 -0.280803 0.000000 - -0.072773 0.966651 -0.245538 0.000000 - - - - -3.117821 13.220895 -2.660358 0.000000 - - - - 0.000551 -3.166315 0.000111 0.000000 - - - -0.000163 0.000370 0.000299 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.570054 -0.007811 -0.024397 0.000000 - -0.007811 0.551317 0.001999 0.000000 - -0.024397 0.001999 0.484399 0.000000 - - - - 0.000551 -3.166315 0.000111 0.000000 - - - -0.000163 0.000370 0.000299 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.548958 0.477938 0.578874 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 62 - 0 - 0 - - - - 0.281732 0.243452 0.928094 0.000000 - 0.952933 0.041925 -0.300270 0.000000 - -0.112011 0.969006 -0.220182 0.000000 - - - - 0.631069 12.861382 -2.330191 0.000000 - - - - - - 0.281732 0.243452 0.928094 0.000000 - 0.952933 0.041925 -0.300270 0.000000 - -0.112011 0.969006 -0.220182 0.000000 - - - - 0.631069 12.861382 -2.330191 0.000000 - - - - 0.000720 -3.165162 -0.001135 0.000000 - - - -0.000171 0.000345 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.741244 -0.047747 -0.045102 0.000000 - -0.047747 0.612900 0.009426 0.000000 - -0.045102 0.009426 0.564426 0.000000 - - - - 0.000720 -3.165162 -0.001135 0.000000 - - - -0.000171 0.000345 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.597675 0.553502 0.767391 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 64 - 0 - 0 - - - - 0.267312 0.248245 0.931085 0.000000 - 0.959302 0.022712 -0.281468 0.000000 - -0.091020 0.968431 -0.232071 0.000000 - - - - 0.543064 13.186378 -3.114460 0.000000 - - - - - - 0.267312 0.248245 0.931085 0.000000 - 0.959302 0.022712 -0.281468 0.000000 - -0.091020 0.968431 -0.232071 0.000000 - - - - 0.543064 13.186378 -3.114460 0.000000 - - - - 0.000359 -3.165322 -0.001161 0.000000 - - - -0.000175 0.000346 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.954923 -0.055351 -0.110718 0.000000 - -0.055351 0.810104 0.007337 0.000000 - -0.110718 0.007337 0.546145 0.000000 - - - - 0.000359 -3.165322 -0.001161 0.000000 - - - -0.000175 0.000346 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.793984 0.517936 0.999252 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 66 - 0 - 0 - - - - 0.271468 0.255952 0.927790 0.000000 - 0.958176 0.018848 -0.285559 0.000000 - -0.090577 0.966506 -0.240130 0.000000 - - - - -0.965391 13.097441 -3.100339 0.000000 - - - - - - 0.271468 0.255952 0.927790 0.000000 - 0.958176 0.018848 -0.285559 0.000000 - -0.090577 0.966506 -0.240130 0.000000 - - - - -0.965391 13.097441 -3.100339 0.000000 - - - - 0.000405 -3.165745 -0.000620 0.000000 - - - -0.000176 0.000338 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.391987 0.029349 -0.014953 0.000000 - 0.029349 0.491234 -0.010767 0.000000 - -0.014953 -0.010767 0.341856 0.000000 - - - - 0.000405 -3.165745 -0.000620 0.000000 - - - -0.000176 0.000338 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.500567 0.337686 0.386824 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 68 - 0 - 0 - - - - 0.251400 0.233070 0.939402 0.000000 - 0.963943 0.027199 -0.264716 0.000000 - -0.087248 0.972079 -0.217829 0.000000 - - - - -9.529333 19.458237 0.711732 0.000000 - - - - - - 0.251400 0.233070 0.939402 0.000000 - 0.963943 0.027199 -0.264716 0.000000 - -0.087248 0.972079 -0.217829 0.000000 - - - - -9.529333 19.458237 0.711732 0.000000 - - - - -0.000064 -3.167744 0.001072 0.000000 - - - -0.000185 0.000349 0.000292 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.477585 -0.007613 -0.008849 0.000000 - -0.007613 0.453581 0.001439 0.000000 - -0.008849 0.001439 0.441871 0.000000 - - - - -0.000064 -3.167744 0.001072 0.000000 - - - -0.000185 0.000349 0.000292 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.451465 0.439789 0.481782 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 70 - 0 - 0 - - - - 0.280082 0.276048 0.919430 0.000000 - 0.954961 0.017658 -0.296207 0.000000 - -0.098002 0.960982 -0.258669 0.000000 - - - - -6.334208 11.489948 -1.055669 0.000000 - - - - - - 0.280082 0.276048 0.919430 0.000000 - 0.954961 0.017658 -0.296207 0.000000 - -0.098002 0.960982 -0.258669 0.000000 - - - - -6.334208 11.489948 -1.055669 0.000000 - - - - 0.001657 -3.166995 0.001468 0.000000 - - - -0.000181 0.000326 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.318873 0.005114 0.009139 0.000000 - 0.005114 0.331497 -0.001110 0.000000 - 0.009139 -0.001110 0.348409 0.000000 - - - - 0.001657 -3.166995 0.001468 0.000000 - - - -0.000181 0.000326 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.333111 0.351013 0.314654 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 72 - 0 - 0 - - - - 0.266364 0.282788 0.921456 0.000000 - 0.960521 0.001775 -0.278201 0.000000 - -0.080307 0.959181 -0.271151 0.000000 - - - - -6.095496 12.996134 -1.462297 0.000000 - - - - - - 0.266364 0.282788 0.921456 0.000000 - 0.960521 0.001775 -0.278201 0.000000 - -0.080307 0.959181 -0.271151 0.000000 - - - - -6.095496 12.996134 -1.462297 0.000000 - - - - 0.001075 -3.167000 0.001139 0.000000 - - - -0.000152 0.000297 0.000313 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.555805 -0.039464 -0.001863 0.000000 - -0.039464 0.425993 0.011863 0.000000 - -0.001863 0.011863 0.549767 0.000000 - - - - 0.001075 -3.167000 0.001139 0.000000 - - - -0.000152 0.000297 0.000313 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.414057 0.549239 0.568268 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 74 - 0 - 0 - - - - 0.263759 0.273029 0.925141 0.000000 - 0.960030 0.018832 -0.279263 0.000000 - -0.093669 0.961822 -0.257149 0.000000 - - - - 0.555015 22.981026 -2.500042 0.000000 - - - - - - 0.263759 0.273029 0.925141 0.000000 - 0.960030 0.018832 -0.279263 0.000000 - -0.093669 0.961822 -0.257149 0.000000 - - - - 0.555015 22.981026 -2.500042 0.000000 - - - - -0.002286 -3.165403 -0.002924 0.000000 - - - -0.000175 0.000328 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.367031 -0.000089 -0.019040 0.000000 - -0.000089 0.373354 -0.001412 0.000000 - -0.019040 -0.001412 0.305384 0.000000 - - - - -0.002286 -3.165403 -0.002924 0.000000 - - - -0.000175 0.000328 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.373467 0.299951 0.372350 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 76 - 0 - 0 - - - - 0.266485 0.263046 0.927250 0.000000 - 0.960338 0.009457 -0.278677 0.000000 - -0.082074 0.964737 -0.250093 0.000000 - - - - 2.009061 15.789817 -3.737069 0.000000 - - - - - - 0.266485 0.263046 0.927250 0.000000 - 0.960338 0.009457 -0.278677 0.000000 - -0.082074 0.964737 -0.250093 0.000000 - - - - 2.009061 15.789817 -3.737069 0.000000 - - - - -0.000597 -3.165054 -0.002139 0.000000 - - - -0.000180 0.000334 0.000282 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.230768 0.000958 0.005683 0.000000 - 0.000958 0.232198 -0.000071 0.000000 - 0.005683 -0.000071 0.250097 0.000000 - - - - -0.000597 -3.165054 -0.002139 0.000000 - - - -0.000180 0.000334 0.000282 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.232470 0.251646 0.228947 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 78 - 0 - 0 - - - - 0.278133 0.300327 0.912385 0.000000 - 0.953948 0.024746 -0.298949 0.000000 - -0.112360 0.953515 -0.279614 0.000000 - - - - -1.537477 11.377494 -2.709434 0.000000 - - - - - - 0.278133 0.300327 0.912385 0.000000 - 0.953948 0.024746 -0.298949 0.000000 - -0.112360 0.953515 -0.279614 0.000000 - - - - -1.537477 11.377494 -2.709434 0.000000 - - - - 0.001066 -3.165801 -0.000131 0.000000 - - - -0.000177 0.000406 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.587764 -0.026011 -0.019809 0.000000 - -0.026011 0.515125 0.008390 0.000000 - -0.019809 0.008390 0.528749 0.000000 - - - - 0.001066 -3.165801 -0.000131 0.000000 - - - -0.000177 0.000406 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.506553 0.522728 0.602357 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 80 - 0 - 0 - - - - 0.288211 0.211865 0.933835 0.000000 - 0.955584 -0.000916 -0.294716 0.000000 - -0.061585 0.977298 -0.202719 0.000000 - - - - -11.153685 15.238323 -0.176678 0.000000 - - - - - - 0.288211 0.211865 0.933835 0.000000 - 0.955584 -0.000916 -0.294716 0.000000 - -0.061585 0.977298 -0.202719 0.000000 - - - - -11.153685 15.238323 -0.176678 0.000000 - - - - 0.000851 -3.168326 0.002377 0.000000 - - - -0.000190 0.000330 0.000314 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.718333 0.064361 0.033177 0.000000 - 0.064361 0.904328 -0.013921 0.000000 - 0.033177 -0.013921 0.863890 0.000000 - - - - 0.000851 -3.168326 0.002377 0.000000 - - - -0.000190 0.000330 0.000314 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.924637 0.871096 0.690819 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 82 - 0 - 0 - - - - 0.255828 0.249914 0.933860 0.000000 - 0.962706 0.022106 -0.269646 0.000000 - -0.088033 0.968016 -0.234938 0.000000 - - - - 2.395922 17.278748 -2.422043 0.000000 - - - - - - 0.255828 0.249914 0.933860 0.000000 - 0.962706 0.022106 -0.269646 0.000000 - -0.088033 0.968016 -0.234938 0.000000 - - - - 2.395922 17.278748 -2.422043 0.000000 - - - - -0.000575 -3.164746 -0.002537 0.000000 - - - -0.000173 0.000338 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.401404 -0.006928 -0.030805 0.000000 - -0.006928 0.387717 -0.000638 0.000000 - -0.030805 -0.000638 0.289440 0.000000 - - - - -0.000575 -3.164746 -0.002537 0.000000 - - - -0.000173 0.000338 0.000284 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.385935 0.281473 0.411154 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 84 - 0 - 0 - - - - 0.286062 0.271376 0.918980 0.000000 - 0.954436 0.004349 -0.298383 0.000000 - -0.084971 0.962464 -0.257767 0.000000 - - - - -8.576577 15.730978 0.142786 0.000000 - - - - - - 0.286062 0.271376 0.918980 0.000000 - 0.954436 0.004349 -0.298383 0.000000 - -0.084971 0.962464 -0.257767 0.000000 - - - - -8.576577 15.730978 0.142786 0.000000 - - - - 0.000782 -3.167524 0.001452 0.000000 - - - -0.000186 0.000328 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.918569 0.013301 -0.029362 0.000000 - 0.013301 0.967286 -0.004440 0.000000 - -0.029362 -0.004440 0.822946 0.000000 - - - - 0.000782 -3.167524 0.001452 0.000000 - - - -0.000186 0.000328 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.971668 0.814647 0.922486 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 86 - 0 - 0 - - - - 0.293470 0.270392 0.916932 0.000000 - 0.953699 -0.016758 -0.300296 0.000000 - -0.065832 0.962605 -0.262790 0.000000 - - - - -3.529477 12.837772 -1.574597 0.000000 - - - - - - 0.293470 0.270392 0.916932 0.000000 - 0.953699 -0.016758 -0.300296 0.000000 - -0.065832 0.962605 -0.262790 0.000000 - - - - -3.529477 12.837772 -1.574597 0.000000 - - - - 0.001049 -3.166231 0.000334 0.000000 - - - -0.000192 0.000335 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.633052 -0.034856 0.018469 0.000000 - -0.034856 0.526830 0.006759 0.000000 - 0.018469 0.006759 0.695892 0.000000 - - - - 0.001049 -3.166231 0.000334 0.000000 - - - -0.000192 0.000335 0.000291 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.515637 0.700962 0.639175 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 88 - 0 - 0 - - - - 0.279608 0.266419 0.922410 0.000000 - 0.948137 0.074659 -0.308970 0.000000 - -0.151182 0.960962 -0.231726 0.000000 - - - - -0.734770 11.378308 -1.685973 0.000000 - - - - - - 0.279608 0.266419 0.922410 0.000000 - 0.948137 0.074659 -0.308970 0.000000 - -0.151182 0.960962 -0.231726 0.000000 - - - - -0.734770 11.378308 -1.685973 0.000000 - - - - 0.001410 -3.165412 -0.000409 0.000000 - - - -0.000168 0.000348 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.908387 -0.055531 -0.027766 0.000000 - -0.055531 0.754402 0.018369 0.000000 - -0.027766 0.018369 0.798944 0.000000 - - - - 0.001410 -3.165412 -0.000409 0.000000 - - - -0.000168 0.000348 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.735096 0.792673 0.933963 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 90 - 0 - 0 - - - - 0.273991 0.286075 0.918199 0.000000 - 0.956963 0.013872 -0.289880 0.000000 - -0.095665 0.958107 -0.269962 0.000000 - - - - -10.326201 16.496368 -0.103978 0.000000 - - - - - - 0.273991 0.286075 0.918199 0.000000 - 0.956963 0.013872 -0.289880 0.000000 - -0.095665 0.958107 -0.269962 0.000000 - - - - -10.326201 16.496368 -0.103978 0.000000 - - - - 0.000523 -3.168090 0.001913 0.000000 - - - -0.000193 0.000329 0.000292 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.681288 -0.003437 0.017528 0.000000 - -0.003437 0.664360 0.002119 0.000000 - 0.017528 0.002119 0.734561 0.000000 - - - - 0.000523 -3.168090 0.001913 0.000000 - - - -0.000193 0.000329 0.000292 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.663164 0.739825 0.677219 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 92 - 0 - 0 - - - - 0.253137 0.305463 0.917940 0.000000 - 0.956732 0.061679 -0.284359 0.000000 - -0.143479 0.950204 -0.276633 0.000000 - - - - -8.583277 13.501283 -1.313118 0.000000 - - - - - - 0.253137 0.305463 0.917940 0.000000 - 0.956732 0.061679 -0.284359 0.000000 - -0.143479 0.950204 -0.276633 0.000000 - - - - -8.583277 13.501283 -1.313118 0.000000 - - - - 0.000982 -3.167748 0.001865 0.000000 - - - -0.000172 0.000330 0.000312 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.594244 0.000140 -0.046838 0.000000 - 0.000140 0.619611 -0.011147 0.000000 - -0.046838 -0.011147 0.464354 0.000000 - - - - 0.000982 -3.167748 0.001865 0.000000 - - - -0.000172 0.000330 0.000312 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.621320 0.448574 0.608316 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 94 - 0 - 0 - - - - 0.261394 0.195782 0.945168 0.000000 - 0.963575 0.004427 -0.267401 0.000000 - -0.056536 0.980637 -0.187493 0.000000 - - - - -10.865542 14.610499 -0.832829 0.000000 - - - - - - 0.261394 0.195782 0.945168 0.000000 - 0.963575 0.004427 -0.267401 0.000000 - -0.056536 0.980637 -0.187493 0.000000 - - - - -10.865542 14.610499 -0.832829 0.000000 - - - - 0.000814 -3.168353 0.002402 0.000000 - - - -0.000190 0.000321 0.000281 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.537418 0.001708 -0.028606 0.000000 - 0.001708 0.549376 -0.001042 0.000000 - -0.028606 -0.001042 0.399892 0.000000 - - - - 0.000814 -3.168353 0.002402 0.000000 - - - -0.000190 0.000321 0.000281 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.549900 0.394176 0.542610 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 96 - 0 - 0 - - - - 0.262078 0.251424 0.931720 0.000000 - 0.961679 0.012545 -0.273890 0.000000 - -0.080551 0.967796 -0.238501 0.000000 - - - - -5.880309 22.535719 -1.172234 0.000000 - - - - - - 0.262078 0.251424 0.931720 0.000000 - 0.961679 0.012545 -0.273890 0.000000 - -0.080551 0.967796 -0.238501 0.000000 - - - - -5.880309 22.535719 -1.172234 0.000000 - - - - -0.001632 -3.167109 -0.000744 0.000000 - - - -0.000175 0.000332 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.539629 -0.010172 -0.007735 0.000000 - -0.010172 0.507677 0.002664 0.000000 - -0.007735 0.002664 0.511324 0.000000 - - - - -0.001632 -3.167109 -0.000744 0.000000 - - - -0.000175 0.000332 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.504682 0.509349 0.544599 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 98 - 0 - 0 - - - - 0.253657 0.276427 0.926955 0.000000 - 0.962288 0.025257 -0.270857 0.000000 - -0.098284 0.960703 -0.259596 0.000000 - - - - -0.765661 23.249353 -3.015953 0.000000 - - - - - - 0.253657 0.276427 0.926955 0.000000 - 0.962288 0.025257 -0.270857 0.000000 - -0.098284 0.960703 -0.259596 0.000000 - - - - -0.765661 23.249353 -3.015953 0.000000 - - - - -0.002528 -3.165864 -0.002533 0.000000 - - - -0.000165 0.000329 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.317900 0.025521 0.017053 0.000000 - 0.025521 0.400578 -0.007897 0.000000 - 0.017053 -0.007897 0.374801 0.000000 - - - - -0.002528 -3.165864 -0.002533 0.000000 - - - -0.000165 0.000329 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.408112 0.379500 0.305667 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 100 - 0 - 0 - - - - 0.275954 0.273218 0.921521 0.000000 - 0.952351 0.051862 -0.300563 0.000000 - -0.129911 0.960553 -0.245888 0.000000 - - - - -6.764637 23.863518 -1.478289 0.000000 - - - - - - 0.275954 0.273218 0.921521 0.000000 - 0.952351 0.051862 -0.300563 0.000000 - -0.129911 0.960553 -0.245888 0.000000 - - - - -6.764637 23.863518 -1.478289 0.000000 - - - - -0.002145 -3.167443 -0.000690 0.000000 - - - -0.000188 0.000352 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.275604 -0.009430 -0.017239 0.000000 - -0.009430 0.253972 0.000481 0.000000 - -0.017239 0.000481 0.218083 0.000000 - - - - -0.002145 -3.167443 -0.000690 0.000000 - - - -0.000188 0.000352 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.251174 0.213206 0.283279 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 102 - 0 - 0 - - - - 0.307184 0.279937 0.909546 0.000000 - 0.949373 -0.024065 -0.313228 0.000000 - -0.065796 0.959717 -0.273157 0.000000 - - - - -2.548520 24.746481 -2.059655 0.000000 - - - - - - 0.307184 0.279937 0.909546 0.000000 - 0.949373 -0.024065 -0.313228 0.000000 - -0.065796 0.959717 -0.273157 0.000000 - - - - -2.548520 24.746481 -2.059655 0.000000 - - - - -0.002639 -3.166269 -0.002207 0.000000 - - - -0.000177 0.000315 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.336702 -0.017753 -0.008861 0.000000 - -0.017753 0.289803 0.004726 0.000000 - -0.008861 0.004726 0.310554 0.000000 - - - - -0.002639 -3.166269 -0.002207 0.000000 - - - -0.000177 0.000315 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.283731 0.307851 0.345477 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 104 - 0 - 0 - - - - 0.270584 0.262477 0.926224 0.000000 - 0.954163 0.054695 -0.294246 0.000000 - -0.127893 0.963387 -0.235646 0.000000 - - - - -10.263887 15.183156 1.194660 0.000000 - - - - - - 0.270584 0.262477 0.926224 0.000000 - 0.954163 0.054695 -0.294246 0.000000 - -0.127893 0.963387 -0.235646 0.000000 - - - - -10.263887 15.183156 1.194660 0.000000 - - - - 0.001319 -3.167841 0.002134 0.000000 - - - -0.000192 0.000351 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 1.005904 0.086390 -0.082662 0.000000 - 0.086390 1.317417 -0.057426 0.000000 - -0.082662 -0.057426 0.746288 0.000000 - - - - 0.001319 -3.167841 0.002134 0.000000 - - - -0.000192 0.000351 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 1.349612 0.720506 0.999490 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 106 - 0 - 0 - - - - 0.273492 0.245503 0.930016 0.000000 - 0.959489 -0.001580 -0.281742 0.000000 - -0.067699 0.969394 -0.235990 0.000000 - - - - -10.835474 19.140160 0.045569 0.000000 - - - - - - 0.273492 0.245503 0.930016 0.000000 - 0.959489 -0.001580 -0.281742 0.000000 - -0.067699 0.969394 -0.235990 0.000000 - - - - -10.835474 19.140160 0.045569 0.000000 - - - - -0.000200 -3.168237 0.001590 0.000000 - - - -0.000182 0.000350 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.428329 -0.030176 0.006413 0.000000 - -0.030176 0.330002 0.007440 0.000000 - 0.006413 0.007440 0.452232 0.000000 - - - - -0.000200 -3.168237 0.001590 0.000000 - - - -0.000182 0.000350 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.320876 0.453844 0.435843 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 108 - 0 - 0 - - - - 0.276657 0.248175 0.928370 0.000000 - 0.956198 0.025056 -0.291647 0.000000 - -0.095641 0.968391 -0.230372 0.000000 - - - - 2.141578 17.485554 -3.835118 0.000000 - - - - - - 0.276657 0.248175 0.928370 0.000000 - 0.956198 0.025056 -0.291647 0.000000 - -0.095641 0.968391 -0.230372 0.000000 - - - - 2.141578 17.485554 -3.835118 0.000000 - - - - -0.001111 -3.165064 -0.002480 0.000000 - - - -0.000171 0.000339 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.328809 0.003394 -0.001809 0.000000 - 0.003394 0.340048 -0.001334 0.000000 - -0.001809 -0.001334 0.322590 0.000000 - - - - -0.001111 -3.165064 -0.002480 0.000000 - - - -0.000171 0.000339 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.341163 0.322092 0.328191 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 110 - 0 - 0 - - - - 0.277013 0.279371 0.919356 0.000000 - 0.955605 0.019887 -0.293979 0.000000 - -0.100412 0.959977 -0.261459 0.000000 - - - - 0.366417 13.577110 -3.965630 0.000000 - - - - - - 0.277013 0.279371 0.919356 0.000000 - 0.955605 0.019887 -0.293979 0.000000 - -0.100412 0.959977 -0.261459 0.000000 - - - - 0.366417 13.577110 -3.965630 0.000000 - - - - -0.000046 -3.165520 -0.001177 0.000000 - - - -0.000178 0.000332 0.000272 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.725660 -0.047109 -0.067738 0.000000 - -0.047109 0.602552 0.011369 0.000000 - -0.067738 0.011369 0.509023 0.000000 - - - - -0.000046 -3.165520 -0.001177 0.000000 - - - -0.000178 0.000332 0.000272 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.587701 0.489545 0.759988 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 112 - 0 - 0 - - - - 0.266045 0.254641 0.929719 0.000000 - 0.960020 0.017125 -0.279406 0.000000 - -0.087070 0.966884 -0.239905 0.000000 - - - - 0.419757 16.287697 -2.909253 0.000000 - - - - - - 0.266045 0.254641 0.929719 0.000000 - 0.960020 0.017125 -0.279406 0.000000 - -0.087070 0.966884 -0.239905 0.000000 - - - - 0.419757 16.287697 -2.909253 0.000000 - - - - -0.000435 -3.165362 -0.001679 0.000000 - - - -0.000182 0.000342 0.000276 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.367256 0.034700 0.025560 0.000000 - 0.034700 0.473648 -0.009263 0.000000 - 0.025560 -0.009263 0.460074 0.000000 - - - - -0.000435 -3.165362 -0.001679 0.000000 - - - -0.000182 0.000342 0.000276 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.484105 0.466641 0.350232 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 114 - 0 - 0 - - - - 0.283997 0.280445 0.916895 0.000000 - 0.954494 0.008096 -0.298119 0.000000 - -0.091029 0.959836 -0.265384 0.000000 - - - - -5.006969 24.920004 -1.445974 0.000000 - - - - - - 0.283997 0.280445 0.916895 0.000000 - 0.954494 0.008096 -0.298119 0.000000 - -0.091029 0.959836 -0.265384 0.000000 - - - - -5.006969 24.920004 -1.445974 0.000000 - - - - -0.002488 -3.166935 -0.001467 0.000000 - - - -0.000173 0.000360 0.000279 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.291709 0.005933 0.020432 0.000000 - 0.005933 0.303217 -0.001239 0.000000 - 0.020432 -0.001239 0.355850 0.000000 - - - - -0.002488 -3.166935 -0.001467 0.000000 - - - -0.000173 0.000360 0.000279 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.305101 0.361810 0.283866 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 116 - 0 - 0 - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - -4.086954 -6.994352 1.661670 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 1 - -1 - -2 - 2 - 2 - 0 - - - - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - 0.000000 0.000000 0.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 118 - 0 - 0 - - - - 0.282709 0.266868 0.921334 0.000000 - 0.956434 -0.005457 -0.291899 0.000000 - -0.072871 0.963718 -0.256784 0.000000 - - - - -6.690329 22.841635 -0.064674 0.000000 - - - - - - 0.282709 0.266868 0.921334 0.000000 - 0.956434 -0.005457 -0.291899 0.000000 - -0.072871 0.963718 -0.256784 0.000000 - - - - -6.690329 22.841635 -0.064674 0.000000 - - - - -0.001309 -3.167142 -0.000531 0.000000 - - - -0.000175 0.000343 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.363364 0.005830 -0.011844 0.000000 - 0.005830 0.384322 -0.001253 0.000000 - -0.011844 -0.001253 0.323746 0.000000 - - - - -0.001309 -3.167142 -0.000531 0.000000 - - - -0.000175 0.000343 0.000294 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.386140 0.320474 0.364818 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 120 - 0 - 0 - - - - 0.269730 0.272314 0.923629 0.000000 - 0.958694 0.013996 -0.284097 0.000000 - -0.090291 0.962107 -0.257291 0.000000 - - - - -2.238892 10.446442 -1.914610 0.000000 - - - - - - 0.269730 0.272314 0.923629 0.000000 - 0.958694 0.013996 -0.284097 0.000000 - -0.090291 0.962107 -0.257291 0.000000 - - - - -2.238892 10.446442 -1.914610 0.000000 - - - - 0.001609 -3.165849 0.000284 0.000000 - - - -0.000182 0.000330 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.685166 -0.028362 -0.004088 0.000000 - -0.028362 0.594566 0.009114 0.000000 - -0.004088 0.009114 0.670291 0.000000 - - - - 0.001609 -3.165849 0.000284 0.000000 - - - -0.000182 0.000330 0.000301 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.585728 0.669266 0.695029 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 122 - 0 - 0 - - - - 0.266424 0.246170 0.931890 0.000000 - 0.959362 0.025527 -0.281021 0.000000 - -0.092967 0.968890 -0.229366 0.000000 - - - - -9.230621 16.392509 -0.261454 0.000000 - - - - - - 0.266424 0.246170 0.931890 0.000000 - 0.959362 0.025527 -0.281021 0.000000 - -0.092967 0.968890 -0.229366 0.000000 - - - - -9.230621 16.392509 -0.261454 0.000000 - - - - 0.000451 -3.167827 0.001564 0.000000 - - - -0.000184 0.000284 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.638536 0.026139 0.057842 0.000000 - 0.026139 0.704992 -0.002323 0.000000 - 0.057842 -0.002323 0.854270 0.000000 - - - - 0.000451 -3.167827 0.001564 0.000000 - - - -0.000184 0.000284 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.712477 0.868905 0.616416 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 124 - 0 - 0 - - - - 0.280871 0.270439 0.920855 0.000000 - 0.957483 -0.013109 -0.288193 0.000000 - -0.065867 0.962648 -0.262622 0.000000 - - - - -4.216679 11.550082 -2.446970 0.000000 - - - - - - 0.280871 0.270439 0.920855 0.000000 - 0.957483 -0.013109 -0.288193 0.000000 - -0.065867 0.962648 -0.262622 0.000000 - - - - -4.216679 11.550082 -2.446970 0.000000 - - - - 0.001164 -3.166569 0.000757 0.000000 - - - -0.000173 0.000330 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.687466 -0.014084 -0.050529 0.000000 - -0.014084 0.655845 0.005966 0.000000 - -0.050529 0.005966 0.522564 0.000000 - - - - 0.001164 -3.166569 0.000757 0.000000 - - - -0.000173 0.000330 0.000290 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.651303 0.508288 0.706284 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 126 - 0 - 0 - - - - 0.261877 0.272530 0.925823 0.000000 - 0.960583 0.019108 -0.277334 0.000000 - -0.093273 0.961958 -0.256784 0.000000 - - - - 1.679321 22.410299 -3.022897 0.000000 - - - - - - 0.261877 0.272530 0.925823 0.000000 - 0.960583 0.019108 -0.277334 0.000000 - -0.093273 0.961958 -0.256784 0.000000 - - - - 1.679321 22.410299 -3.022897 0.000000 - - - - -0.002298 -3.165136 -0.003193 0.000000 - - - -0.000173 0.000330 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.463526 0.009845 -0.015818 0.000000 - 0.009845 0.502138 -0.004652 0.000000 - -0.015818 -0.004652 0.412956 0.000000 - - - - -0.002298 -3.165136 -0.003193 0.000000 - - - -0.000173 0.000330 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.505274 0.408383 0.464964 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 128 - 0 - 0 - - - - 0.273401 0.252818 0.928081 0.000000 - 0.958752 0.006378 -0.284174 0.000000 - -0.077763 0.967493 -0.240646 0.000000 - - - - 0.670923 21.478176 -2.130810 0.000000 - - - - - - 0.273401 0.252818 0.928081 0.000000 - 0.958752 0.006378 -0.284174 0.000000 - -0.077763 0.967493 -0.240646 0.000000 - - - - 0.670923 21.478176 -2.130810 0.000000 - - - - -0.001698 -3.165273 -0.002678 0.000000 - - - -0.000166 0.000319 0.000302 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.350099 -0.005389 -0.010238 0.000000 - -0.005389 0.335750 0.001244 0.000000 - -0.010238 0.001244 0.313451 0.000000 - - - - -0.001698 -3.165273 -0.002678 0.000000 - - - -0.000166 0.000319 0.000302 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.334113 0.310784 0.354403 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 130 - 0 - 0 - - - - 0.254240 0.276170 0.926872 0.000000 - 0.962169 0.024828 -0.271320 0.000000 - -0.097943 0.960788 -0.259410 0.000000 - - - - 0.817258 20.765602 -2.848148 0.000000 - - - - - - 0.254240 0.276170 0.926872 0.000000 - 0.962169 0.024828 -0.271320 0.000000 - -0.097943 0.960788 -0.259410 0.000000 - - - - 0.817258 20.765602 -2.848148 0.000000 - - - - -0.001720 -3.165330 -0.002601 0.000000 - - - -0.000159 0.000323 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.332454 -0.014740 0.005360 0.000000 - -0.014740 0.279118 0.006063 0.000000 - 0.005360 0.006063 0.348079 0.000000 - - - - -0.001720 -3.165330 -0.002601 0.000000 - - - -0.000159 0.000323 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.274606 0.349776 0.335268 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 132 - 0 - 0 - - - - 0.291108 0.281970 0.914193 0.000000 - 0.952135 0.007754 -0.305581 0.000000 - -0.093253 0.959392 -0.266216 0.000000 - - - - -6.037422 24.456434 -0.454460 0.000000 - - - - - - 0.291108 0.281970 0.914193 0.000000 - 0.952135 0.007754 -0.305581 0.000000 - -0.093253 0.959392 -0.266216 0.000000 - - - - -6.037422 24.456434 -0.454460 0.000000 - - - - -0.001985 -3.167069 -0.001045 0.000000 - - - -0.000140 0.000332 0.000282 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.461956 -0.026666 -0.025547 0.000000 - -0.026666 0.391830 0.007695 0.000000 - -0.025547 0.007695 0.381746 0.000000 - - - - -0.001985 -3.167069 -0.001045 0.000000 - - - -0.000140 0.000332 0.000282 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.382924 0.374300 0.478309 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 134 - 0 - 0 - - - - 0.282443 0.276804 0.918480 0.000000 - 0.955446 0.004391 -0.295134 0.000000 - -0.085727 0.960916 -0.263231 0.000000 - - - - 0.750912 14.822566 -2.498849 0.000000 - - - - - - 0.282443 0.276804 0.918480 0.000000 - 0.955446 0.004391 -0.295134 0.000000 - -0.085727 0.960916 -0.263231 0.000000 - - - - 0.750912 14.822566 -2.498849 0.000000 - - - - 0.000112 -3.165181 -0.001530 0.000000 - - - -0.000175 0.000346 0.000279 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.314363 0.005554 -0.004282 0.000000 - 0.005554 0.332651 -0.001751 0.000000 - -0.004282 -0.001751 0.300829 0.000000 - - - - 0.000112 -3.165181 -0.001530 0.000000 - - - -0.000175 0.000346 0.000279 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.334450 0.299587 0.313805 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 136 - 0 - 0 - - - - 0.251660 0.268205 0.929911 0.000000 - 0.964375 0.011455 -0.264291 0.000000 - -0.081536 0.963294 -0.255767 0.000000 - - - - 2.279323 20.056404 -3.510723 0.000000 - - - - - - 0.251660 0.268205 0.929911 0.000000 - 0.964375 0.011455 -0.264291 0.000000 - -0.081536 0.963294 -0.255767 0.000000 - - - - 2.279323 20.056404 -3.510723 0.000000 - - - - -0.001768 -3.164999 -0.002980 0.000000 - - - -0.000168 0.000332 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.302863 0.000459 -0.008528 0.000000 - 0.000459 0.307219 -0.000544 0.000000 - -0.008528 -0.000544 0.274635 0.000000 - - - - -0.001768 -3.164999 -0.002980 0.000000 - - - -0.000168 0.000332 0.000300 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.307385 0.272254 0.305078 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 138 - 0 - 0 - - - - 0.242261 0.206779 0.947920 0.000000 - 0.965595 0.043814 -0.256335 0.000000 - -0.094537 0.977406 -0.189050 0.000000 - - - - -0.215132 14.671159 -1.805316 0.000000 - - - - - - 0.242261 0.206779 0.947920 0.000000 - 0.965595 0.043814 -0.256335 0.000000 - -0.094537 0.977406 -0.189050 0.000000 - - - - -0.215132 14.671159 -1.805316 0.000000 - - - - 0.000416 -3.165317 -0.001170 0.000000 - - - -0.000177 0.000348 0.000285 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.577963 0.026100 -0.006581 0.000000 - 0.026100 0.676926 -0.011105 0.000000 - -0.006581 -0.011105 0.554275 0.000000 - - - - 0.000416 -3.165317 -0.001170 0.000000 - - - -0.000177 0.000348 0.000285 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.684562 0.552385 0.572218 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 140 - 0 - 0 - - - - 0.304548 0.275685 0.911728 0.000000 - 0.951993 -0.119219 -0.281949 0.000000 - 0.030967 0.953826 -0.298758 0.000000 - - - - -3.571203 10.602681 -3.091400 0.000000 - - - - - - 0.304548 0.275685 0.911728 0.000000 - 0.951993 -0.119219 -0.281949 0.000000 - 0.030967 0.953826 -0.298758 0.000000 - - - - -3.571203 10.602681 -3.091400 0.000000 - - - - 0.001238 -3.166449 0.000694 0.000000 - - - -0.000162 0.000318 0.000318 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.692087 -0.012773 -0.075099 0.000000 - -0.012773 0.647636 0.029922 0.000000 - -0.075099 0.029922 0.463226 0.000000 - - - - 0.001238 -3.166449 0.000694 0.000000 - - - -0.000162 0.000318 0.000318 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.644523 0.437780 0.720645 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 142 - 0 - 0 - - - - 0.287046 0.259887 0.921989 0.000000 - 0.953841 0.011150 -0.300105 0.000000 - -0.088273 0.965575 -0.244690 0.000000 - - - - -2.225920 12.455692 -3.315838 0.000000 - - - - - - 0.287046 0.259887 0.921989 0.000000 - 0.953841 0.011150 -0.300105 0.000000 - -0.088273 0.965575 -0.244690 0.000000 - - - - -2.225920 12.455692 -3.315838 0.000000 - - - - 0.000524 -3.166133 -0.000055 0.000000 - - - -0.000191 0.000405 0.000272 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.923296 0.006944 -0.088225 0.000000 - 0.006944 0.970838 -0.006200 0.000000 - -0.088225 -0.006200 0.619623 0.000000 - - - - 0.000524 -3.166133 -0.000055 0.000000 - - - -0.000191 0.000405 0.000272 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.973501 0.595806 0.944450 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 144 - 0 - 0 - - - - 0.268226 0.224188 0.936907 0.000000 - 0.960055 0.018231 -0.279216 0.000000 - -0.079678 0.974375 -0.210343 0.000000 - - - - -9.112514 17.757938 0.199737 0.000000 - - - - - - 0.268226 0.224188 0.936907 0.000000 - 0.960055 0.018231 -0.279216 0.000000 - -0.079678 0.974375 -0.210343 0.000000 - - - - -9.112514 17.757938 0.199737 0.000000 - - - - 0.000255 -3.167715 0.001250 0.000000 - - - -0.000188 0.000352 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.374337 0.023469 0.015617 0.000000 - 0.023469 0.446691 -0.005448 0.000000 - 0.015617 -0.005448 0.440627 0.000000 - - - - 0.000255 -3.167715 0.001250 0.000000 - - - -0.000188 0.000352 0.000287 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.453700 0.444118 0.363836 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 146 - 0 - 0 - - - - 0.272262 0.275121 0.922053 0.000000 - 0.958384 0.007979 -0.285370 0.000000 - -0.085868 0.961377 -0.261499 0.000000 - - - - -8.206606 11.824456 -0.271219 0.000000 - - - - - - 0.272262 0.275121 0.922053 0.000000 - 0.958384 0.007979 -0.285370 0.000000 - -0.085868 0.961377 -0.261499 0.000000 - - - - -8.206606 11.824456 -0.271219 0.000000 - - - - 0.001826 -3.167458 0.002030 0.000000 - - - -0.000174 0.000334 0.000304 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.358441 -0.029307 0.005791 0.000000 - -0.029307 0.262614 0.009343 0.000000 - 0.005791 0.009343 0.376092 0.000000 - - - - 0.001826 -3.167458 0.002030 0.000000 - - - -0.000174 0.000334 0.000304 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.253451 0.377827 0.365870 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 148 - 0 - 0 - - - - 0.266603 0.261177 0.927744 0.000000 - 0.958254 0.031346 -0.284195 0.000000 - -0.103306 0.964782 -0.241918 0.000000 - - - - -8.307735 22.773829 0.525339 0.000000 - - - - - - 0.266603 0.261177 0.927744 0.000000 - 0.958254 0.031346 -0.284195 0.000000 - -0.103306 0.964782 -0.241918 0.000000 - - - - -8.307735 22.773829 0.525339 0.000000 - - - - -0.001083 -3.167543 0.000048 0.000000 - - - -0.000168 0.000346 0.000316 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.580518 0.020111 -0.046532 0.000000 - 0.020111 0.663768 -0.013655 0.000000 - -0.046532 -0.013655 0.424085 0.000000 - - - - -0.001083 -3.167543 0.000048 0.000000 - - - -0.000168 0.000346 0.000316 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.670836 0.411045 0.586491 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 150 - 0 - 0 - - - - 0.241777 0.253009 0.936766 0.000000 - 0.966434 0.023662 -0.255825 0.000000 - -0.086892 0.967174 -0.238796 0.000000 - - - - -0.112271 22.069670 -3.606622 0.000000 - - - - - - 0.241777 0.253009 0.936766 0.000000 - 0.966434 0.023662 -0.255825 0.000000 - -0.086892 0.967174 -0.238796 0.000000 - - - - -0.112271 22.069670 -3.606622 0.000000 - - - - -0.002379 -3.165752 -0.002538 0.000000 - - - -0.000170 0.000324 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.434495 -0.003448 -0.005632 0.000000 - -0.003448 0.423656 0.000633 0.000000 - -0.005632 0.000633 0.414102 0.000000 - - - - -0.002379 -3.165752 -0.002538 0.000000 - - - -0.000170 0.000324 0.000298 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.422736 0.412644 0.436873 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 152 - 0 - 0 - - - - 0.254328 0.271086 0.928348 0.000000 - 0.965174 -0.010306 -0.261407 0.000000 - -0.061296 0.962500 -0.264266 0.000000 - - - - -10.277276 17.783934 0.780533 0.000000 - - - - - - 0.254328 0.271086 0.928348 0.000000 - 0.965174 -0.010306 -0.261407 0.000000 - -0.061296 0.962500 -0.264266 0.000000 - - - - -10.277276 17.783934 0.780533 0.000000 - - - - 0.000444 -3.167942 0.001646 0.000000 - - - -0.000178 0.000344 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.737092 0.038964 0.029305 0.000000 - 0.038964 0.866952 -0.010682 0.000000 - 0.029305 -0.010682 0.831291 0.000000 - - - - 0.000444 -3.167942 0.001646 0.000000 - - - -0.000178 0.000344 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.877898 0.839660 0.717778 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 154 - 0 - 0 - - - - 0.299216 0.226625 0.926882 0.000000 - 0.950806 0.010861 -0.309595 0.000000 - -0.080229 0.973922 -0.212226 0.000000 - - - - -2.472811 23.386496 -2.742500 0.000000 - - - - - - 0.299216 0.226625 0.926882 0.000000 - 0.950806 0.010861 -0.309595 0.000000 - -0.080229 0.973922 -0.212226 0.000000 - - - - -2.472811 23.386496 -2.742500 0.000000 - - - - -0.002451 -3.166363 -0.002020 0.000000 - - - -0.000166 0.000317 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.274777 0.018970 0.005428 0.000000 - 0.018970 0.327233 -0.004729 0.000000 - 0.005428 -0.004729 0.297802 0.000000 - - - - -0.002451 -3.166363 -0.002020 0.000000 - - - -0.000166 0.000317 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.333602 0.299013 0.267198 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 156 - 0 - 0 - - - - 0.315779 0.242121 0.917421 0.000000 - 0.945339 0.002614 -0.326078 0.000000 - -0.081349 0.970243 -0.228061 0.000000 - - - - -3.610549 23.389378 -1.669634 0.000000 - - - - - - 0.315779 0.242121 0.917421 0.000000 - 0.945339 0.002614 -0.326078 0.000000 - -0.081349 0.970243 -0.228061 0.000000 - - - - -3.610549 23.389378 -1.669634 0.000000 - - - - -0.002088 -3.166511 -0.001661 0.000000 - - - -0.000172 0.000344 0.000299 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.394054 -0.004516 0.031684 0.000000 - -0.004516 0.374011 0.001523 0.000000 - 0.031684 0.001523 0.513060 0.000000 - - - - -0.002088 -3.166511 -0.001661 0.000000 - - - -0.000172 0.000344 0.000299 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.372371 0.520971 0.387783 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 158 - 0 - 0 - - - - 0.272245 0.253314 0.928286 0.000000 - 0.960007 -0.005993 -0.279912 0.000000 - -0.065343 0.967366 -0.244815 0.000000 - - - - -11.480623 17.341631 -0.277955 0.000000 - - - - - - 0.272245 0.253314 0.928286 0.000000 - 0.960007 -0.005993 -0.279912 0.000000 - -0.065343 0.967366 -0.244815 0.000000 - - - - -11.480623 17.341631 -0.277955 0.000000 - - - - 0.000203 -3.168483 0.002119 0.000000 - - - -0.000183 0.000323 0.000285 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.456758 0.005744 0.021015 0.000000 - 0.005744 0.470209 -0.001917 0.000000 - 0.021015 -0.001917 0.531361 0.000000 - - - - 0.000203 -3.168483 0.002119 0.000000 - - - -0.000183 0.000323 0.000285 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.471969 0.536875 0.449483 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 160 - 0 - 0 - - - - 0.288222 0.274237 0.917454 0.000000 - 0.954227 -0.002342 -0.299075 0.000000 - -0.079869 0.961659 -0.262359 0.000000 - - - - -8.022085 13.911036 0.167906 0.000000 - - - - - - 0.288222 0.274237 0.917454 0.000000 - 0.954227 -0.002342 -0.299075 0.000000 - -0.079869 0.961659 -0.262359 0.000000 - - - - -8.022085 13.911036 0.167906 0.000000 - - - - 0.001331 -3.167321 0.001599 0.000000 - - - -0.000180 0.000334 0.000310 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.350486 -0.013354 0.000530 0.000000 - -0.013354 0.310473 0.003706 0.000000 - 0.000530 0.003706 0.352315 0.000000 - - - - 0.001331 -3.167321 0.001599 0.000000 - - - -0.000180 0.000334 0.000310 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.306129 0.352457 0.354688 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 162 - 0 - 0 - - - - 0.258442 0.351774 0.899702 0.000000 - 0.965628 -0.067303 -0.251064 0.000000 - -0.027765 0.933662 -0.357076 0.000000 - - - - -8.393955 20.474304 -0.927764 0.000000 - - - - - - 0.258442 0.351774 0.899702 0.000000 - 0.965628 -0.067303 -0.251064 0.000000 - -0.027765 0.933662 -0.357076 0.000000 - - - - -8.393955 20.474304 -0.927764 0.000000 - - - - -0.000941 -3.167741 0.000495 0.000000 - - - -0.000181 0.000346 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.373811 0.005516 -0.002104 0.000000 - 0.005516 0.393163 -0.000204 0.000000 - -0.002104 -0.000204 0.367949 0.000000 - - - - -0.000941 -3.167741 0.000495 0.000000 - - - -0.000181 0.000346 0.000288 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.394645 0.367171 0.373107 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 164 - 0 - 0 - - - - 0.278631 0.201994 0.938916 0.000000 - 0.959357 -0.013024 -0.281895 0.000000 - -0.044712 0.979300 -0.197414 0.000000 - - - - -10.886441 20.601580 0.028054 0.000000 - - - - - - 0.278631 0.201994 0.938916 0.000000 - 0.959357 -0.013024 -0.281895 0.000000 - -0.044712 0.979300 -0.197414 0.000000 - - - - -10.886441 20.601580 0.028054 0.000000 - - - - -0.000615 -3.168304 0.001342 0.000000 - - - -0.000174 0.000343 0.000275 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.237972 0.016787 0.017304 0.000000 - 0.016787 0.287938 -0.003899 0.000000 - 0.017304 -0.003899 0.317162 0.000000 - - - - -0.000615 -3.168304 0.001342 0.000000 - - - -0.000174 0.000343 0.000275 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.292996 0.320783 0.229294 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 166 - 0 - 0 - - - - 0.260586 0.226656 0.938468 0.000000 - 0.963287 0.003997 -0.268443 0.000000 - -0.064596 0.973967 -0.217294 0.000000 - - - - 0.396177 18.553259 -2.599638 0.000000 - - - - - - 0.260586 0.226656 0.938468 0.000000 - 0.963287 0.003997 -0.268443 0.000000 - -0.064596 0.973967 -0.217294 0.000000 - - - - 0.396177 18.553259 -2.599638 0.000000 - - - - -0.000977 -3.165363 -0.002078 0.000000 - - - -0.000177 0.000331 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.359976 0.003616 0.026764 0.000000 - 0.003616 0.365703 -0.000393 0.000000 - 0.026764 -0.000393 0.468821 0.000000 - - - - -0.000977 -3.165363 -0.002078 0.000000 - - - -0.000177 0.000331 0.000283 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.366707 0.475048 0.352745 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 168 - 0 - 0 - - - - 0.303373 0.291774 0.907101 0.000000 - 0.949547 -0.013113 -0.313351 0.000000 - -0.079533 0.956398 -0.281031 0.000000 - - - - -9.927484 14.747825 0.034541 0.000000 - - - - - - 0.303373 0.291774 0.907101 0.000000 - 0.949547 -0.013113 -0.313351 0.000000 - -0.079533 0.956398 -0.281031 0.000000 - - - - -9.927484 14.747825 0.034541 0.000000 - - - - 0.001051 -3.167932 0.002079 0.000000 - - - -0.000195 0.000333 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.673907 0.080193 0.073487 0.000000 - 0.080193 0.877934 -0.024921 0.000000 - 0.073487 -0.024921 0.888422 0.000000 - - - - 0.001051 -3.167932 0.002079 0.000000 - - - -0.000195 0.000333 0.000297 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.905643 0.911182 0.623437 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 170 - 0 - 0 - - - - 0.271995 0.282809 0.919803 0.000000 - 0.960321 -0.018521 -0.278282 0.000000 - -0.061665 0.958998 -0.276625 0.000000 - - - - 1.777066 14.335148 -3.082107 0.000000 - - - - - - 0.271995 0.282809 0.919803 0.000000 - 0.960321 -0.018521 -0.278282 0.000000 - -0.061665 0.958998 -0.276625 0.000000 - - - - 1.777066 14.335148 -3.082107 0.000000 - - - - 0.000037 -3.164991 -0.001789 0.000000 - - - -0.000173 0.000342 0.000278 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.330301 0.026053 0.032641 0.000000 - 0.026053 0.406972 -0.008307 0.000000 - 0.032641 -0.008307 0.429494 0.000000 - - - - 0.000037 -3.164991 -0.001789 0.000000 - - - -0.000173 0.000342 0.000278 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.414884 0.439280 0.312602 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 172 - 0 - 0 - - - - 0.273325 0.268440 0.923706 0.000000 - 0.958168 0.008775 -0.286072 0.000000 - -0.084899 0.963256 -0.254812 0.000000 - - - - -2.715794 13.233632 -1.192465 0.000000 - - - - - - 0.273325 0.268440 0.923706 0.000000 - 0.958168 0.008775 -0.286072 0.000000 - -0.084899 0.963256 -0.254812 0.000000 - - - - -2.715794 13.233632 -1.192465 0.000000 - - - - 0.001070 -3.165934 -0.000031 0.000000 - - - -0.000167 0.000358 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.394029 0.012621 0.002867 0.000000 - 0.012621 0.433447 -0.003779 0.000000 - 0.002867 -0.003779 0.403964 0.000000 - - - - 0.001070 -3.165934 -0.000031 0.000000 - - - -0.000167 0.000358 0.000295 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.437382 0.404729 0.389330 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 0 - 174 - 0 - 0 - - - - 0.291331 0.271931 0.917159 0.000000 - 0.952633 0.004998 -0.304082 0.000000 - -0.087273 0.962304 -0.257594 0.000000 - - - - -9.943352 13.049049 -0.094216 0.000000 - - - - - - 0.291331 0.271931 0.917159 0.000000 - 0.952633 0.004998 -0.304082 0.000000 - -0.087273 0.962304 -0.257594 0.000000 - - - - -9.943352 13.049049 -0.094216 0.000000 - - - - 0.001521 -3.167956 0.002386 0.000000 - - - -0.000172 0.000324 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - 999999984306749440.000000 - 0.000000 - 0.500000 - 0.100000 - 1.000000 - 0.000000 - 0.000000 - 0 - 0 - 84 - -1 - 1 - 2 - 1 - - - - 0.541295 -0.040699 -0.003333 0.000000 - -0.040699 0.422760 0.012051 0.000000 - -0.003333 0.012051 0.529632 0.000000 - - - - 0.001521 -3.167956 0.002386 0.000000 - - - -0.000172 0.000324 0.000303 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.000000 -10.000000 0.000000 0.000000 - - - 0.409209 0.528753 0.555725 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1.000000 - 0.000000 - 0.000000 - 0.005000 - 0.010000 - 0.010000 - 0.010000 - 0.800000 - 1.000000 - 0 - - - - 71 - 147 - 0 - 6 - -1 - -1 - 0 - 0.398739 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999825 -0.015506 0.010442 0.000000 - 0.015509 0.999880 -0.000183 0.000000 - -0.010438 0.000345 0.999945 0.000000 - - - - -1.148605 0.407813 -0.909073 0.000000 - - - - - - 0.999989 -0.004721 0.000164 0.000000 - 0.004721 0.999988 0.001398 0.000000 - -0.000171 -0.001398 0.999999 0.000000 - - - - -0.879751 0.179427 1.106070 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 81 - 95 - 0 - 6 - -1 - -1 - 0 - -0.154912 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999928 0.000549 0.011972 0.000000 - -0.000801 0.999779 0.020995 0.000000 - -0.011958 -0.021003 0.999708 0.000000 - - - - 0.130261 -0.280198 0.534541 0.000000 - - - - - - 0.999832 0.001246 -0.018271 0.000000 - -0.001189 0.999994 0.003157 0.000000 - 0.018275 -0.003135 0.999828 0.000000 - - - - 0.609493 0.303517 -0.029588 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 77 - 109 - 0 - 6 - -1 - -1 - 0 - -0.254296 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999994 -0.001953 -0.002959 0.000000 - 0.001987 0.999934 0.011345 0.000000 - 0.002937 -0.011351 0.999931 0.000000 - - - - 1.505062 -1.204177 -0.708804 0.000000 - - - - - - 0.999862 -0.012593 0.010844 0.000000 - 0.012679 0.999889 -0.007881 0.000000 - -0.010743 0.008017 0.999910 0.000000 - - - - -0.160763 -1.154789 -0.404381 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 107 - 165 - 0 - 6 - -1 - -1 - 0 - 0.195486 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999972 -0.001225 0.007369 0.000000 - 0.001210 0.999997 0.002116 0.000000 - -0.007372 -0.002107 0.999971 0.000000 - - - - 0.126838 1.149777 -0.642064 0.000000 - - - - - - 0.999714 0.022761 0.007321 0.000000 - -0.022465 0.999012 -0.038348 0.000000 - -0.008186 0.038172 0.999238 0.000000 - - - - -1.234870 1.214337 -0.139222 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 107 - 159 - 0 - 6 - -1 - -1 - 0 - 0.714112 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999972 -0.001225 0.007369 0.000000 - 0.001210 0.999997 0.002116 0.000000 - -0.007372 -0.002107 0.999971 0.000000 - - - - -0.798123 -1.531303 0.605195 0.000000 - - - - - - 0.999987 0.000688 0.005104 0.000000 - -0.000733 0.999959 0.008980 0.000000 - -0.005098 -0.008984 0.999947 0.000000 - - - - 1.078496 -1.061508 0.632784 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 75 - 127 - 0 - 6 - -1 - -1 - 0 - -0.039352 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999992 -0.002750 -0.002877 0.000000 - 0.002758 0.999993 0.002669 0.000000 - 0.002870 -0.002677 0.999992 0.000000 - - - - 0.945728 -1.136918 -0.004621 0.000000 - - - - - - 0.999985 -0.002735 -0.004700 0.000000 - 0.002745 0.999994 0.002207 0.000000 - 0.004694 -0.002220 0.999987 0.000000 - - - - 1.151271 -0.929153 -1.336886 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 99 - 103 - 0 - 6 - -1 - -1 - 0 - -0.406892 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999887 -0.009273 -0.011833 0.000000 - 0.009287 0.999956 0.001103 0.000000 - 0.011822 -0.001213 0.999929 0.000000 - - - - 1.565424 1.236504 -0.716268 0.000000 - - - - - - 0.998740 0.038313 0.032400 0.000000 - -0.038899 0.999087 0.017672 0.000000 - -0.031694 -0.018910 0.999319 0.000000 - - - - 0.776975 0.767613 1.544399 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 99 - 75 - 0 - 6 - -1 - -1 - 0 - 0.541433 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999887 -0.009273 -0.011833 0.000000 - 0.009287 0.999956 0.001103 0.000000 - 0.011822 -0.001213 0.999929 0.000000 - - - - 1.010527 -0.312474 1.047620 0.000000 - - - - - - 0.999992 -0.002750 -0.002877 0.000000 - 0.002758 0.999993 0.002669 0.000000 - 0.002870 -0.002677 0.999992 0.000000 - - - - 0.976103 -1.173144 -0.122854 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 43 - 41 - 0 - 6 - -1 - -1 - 0 - 0.000064 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999671 0.022995 0.011362 0.000000 - -0.022373 0.998392 -0.052082 0.000000 - -0.012541 0.051811 0.998578 0.000000 - - - - 0.547733 0.364076 0.024028 0.000000 - - - - - - 0.998622 0.051113 -0.011898 0.000000 - -0.051637 0.997462 -0.049015 0.000000 - 0.009363 0.049562 0.998727 0.000000 - - - - -0.181741 1.015347 0.260045 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 115 - 103 - 0 - 6 - -1 - -1 - 0 - 0.398816 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999854 0.007988 0.015077 0.000000 - -0.008209 0.999859 0.014645 0.000000 - -0.014958 -0.014767 0.999779 0.000000 - - - - -0.544667 -1.603396 1.544737 0.000000 - - - - - - 0.998740 0.038313 0.032400 0.000000 - -0.038899 0.999087 0.017672 0.000000 - -0.031694 -0.018910 0.999319 0.000000 - - - - -1.197697 -1.679137 -0.898750 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 113 - 77 - 0 - 6 - -1 - -1 - 0 - -0.366810 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999974 -0.006829 -0.002456 0.000000 - 0.006831 0.999976 0.000691 0.000000 - 0.002451 -0.000708 0.999997 0.000000 - - - - 0.245624 -1.559062 0.712341 0.000000 - - - - - - 0.999994 -0.001953 -0.002959 0.000000 - 0.001987 0.999934 0.011345 0.000000 - 0.002937 -0.011351 0.999931 0.000000 - - - - 0.223766 -1.167623 -1.090824 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 129 - 131 - 0 - 6 - -1 - -1 - 0 - 0.040231 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999985 0.004147 0.003719 0.000000 - -0.004153 0.999990 0.001576 0.000000 - -0.003712 -0.001592 0.999992 0.000000 - - - - -0.516964 0.990952 0.901215 0.000000 - - - - - - 0.999737 -0.020466 -0.010354 0.000000 - 0.020667 0.999592 0.019718 0.000000 - 0.009946 -0.019927 0.999752 0.000000 - - - - 0.024732 1.660541 0.360760 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 31 - 93 - 0 - 6 - -1 - -1 - 0 - -0.111936 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999902 0.013490 -0.003659 0.000000 - -0.013487 0.999909 0.000807 0.000000 - 0.003670 -0.000758 0.999993 0.000000 - - - - -1.181128 -0.261032 -0.365489 0.000000 - - - - - - 0.999190 -0.040157 -0.002590 0.000000 - 0.040164 0.999189 0.002843 0.000000 - 0.002473 -0.002945 0.999993 0.000000 - - - - -0.467074 -0.083943 -1.427529 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 101 - 115 - 0 - 6 - -1 - -1 - 0 - 1.536227 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999443 -0.028229 0.017782 0.000000 - 0.028344 0.999579 -0.006224 0.000000 - -0.017598 0.006724 0.999822 0.000000 - - - - 1.871074 0.120632 -0.165374 0.000000 - - - - - - 0.999854 0.007988 0.015077 0.000000 - -0.008209 0.999859 0.014645 0.000000 - -0.014958 -0.014767 0.999779 0.000000 - - - - 0.371448 -0.503327 -1.444950 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 61 - 33 - 0 - 6 - -1 - -1 - 0 - -0.585814 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999989 0.004199 -0.002231 0.000000 - -0.004190 0.999982 0.004222 0.000000 - 0.002248 -0.004212 0.999989 0.000000 - - - - 1.178923 0.330306 0.853489 0.000000 - - - - - - 0.999992 0.000088 0.004020 0.000000 - -0.000043 0.999937 -0.011226 0.000000 - -0.004020 0.011225 0.999929 0.000000 - - - - 0.722433 -0.760042 -0.903138 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 87 - 61 - 0 - 6 - -1 - -1 - 0 - -3.175179 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999592 0.022966 0.016977 0.000000 - -0.023176 0.999656 0.012290 0.000000 - -0.016688 -0.012679 0.999780 0.000000 - - - - -0.058689 -1.275792 -0.502480 0.000000 - - - - - - 0.999989 0.004199 -0.002231 0.000000 - -0.004190 0.999982 0.004222 0.000000 - 0.002248 -0.004212 0.999989 0.000000 - - - - -0.588453 -0.318871 -1.069428 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 13 - 161 - 0 - 6 - -1 - -1 - 0 - 0.304131 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999305 0.001210 -0.037243 0.000000 - -0.000641 0.999883 0.015283 0.000000 - 0.037257 -0.015249 0.999189 0.000000 - - - - -0.603564 0.251886 -0.558628 0.000000 - - - - - - 0.999941 0.010428 0.003191 0.000000 - -0.010465 0.999876 0.011748 0.000000 - -0.003068 -0.011780 0.999926 0.000000 - - - - -0.369211 -0.434017 -0.829002 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 35 - 87 - 0 - 6 - -1 - -1 - 0 - 0.573876 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 1.000000 0.000429 -0.000126 0.000000 - -0.000428 0.999991 0.004252 0.000000 - 0.000128 -0.004252 0.999991 0.000000 - - - - 0.668413 0.555253 1.563411 0.000000 - - - - - - 0.999592 0.022966 0.016977 0.000000 - -0.023176 0.999656 0.012290 0.000000 - -0.016688 -0.012679 0.999780 0.000000 - - - - -0.396940 1.203964 -0.959884 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 167 - 131 - 0 - 6 - -1 - -1 - 0 - -0.177745 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999813 0.013677 -0.013690 0.000000 - -0.013995 0.999629 -0.023374 0.000000 - 0.013366 0.023561 0.999633 0.000000 - - - - 1.101216 -1.519549 -0.208364 0.000000 - - - - - - 0.999737 -0.020466 -0.010354 0.000000 - 0.020667 0.999592 0.019718 0.000000 - 0.009946 -0.019927 0.999752 0.000000 - - - - -1.109613 -1.421741 -0.000889 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 167 - 113 - 0 - 6 - -1 - -1 - 0 - 0.177712 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999813 0.013677 -0.013690 0.000000 - -0.013995 0.999629 -0.023374 0.000000 - 0.013366 0.023561 0.999633 0.000000 - - - - -1.140611 0.683941 0.340254 0.000000 - - - - - - 0.999974 -0.006829 -0.002456 0.000000 - 0.006831 0.999976 0.000691 0.000000 - 0.002451 -0.000708 0.999997 0.000000 - - - - 0.991228 1.000827 -0.392762 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 157 - 155 - 0 - 6 - -1 - -1 - 0 - 0.147908 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999025 -0.003424 0.044024 0.000000 - 0.003940 0.999925 -0.011635 0.000000 - -0.043981 0.011797 0.998963 0.000000 - - - - -0.762092 0.160179 1.350998 0.000000 - - - - - - 0.999594 -0.007832 0.027388 0.000000 - 0.008676 0.999487 -0.030844 0.000000 - -0.027133 0.031069 0.999149 0.000000 - - - - -1.208668 0.920593 0.058037 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 31 - 5 - 0 - 6 - -1 - -1 - 0 - -0.142490 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999902 0.013490 -0.003660 0.000000 - -0.013487 0.999909 0.000807 0.000000 - 0.003670 -0.000758 0.999993 0.000000 - - - - 0.064520 -0.979395 -0.312057 0.000000 - - - - - - 0.999984 -0.005549 0.001266 0.000000 - 0.005545 0.999981 0.002810 0.000000 - -0.001282 -0.002803 0.999995 0.000000 - - - - -1.250101 -0.577753 0.715910 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 127 - 137 - 0 - 6 - -1 - -1 - 0 - -0.035165 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999985 -0.002735 -0.004700 0.000000 - 0.002745 0.999994 0.002207 0.000000 - 0.004694 -0.002220 0.999987 0.000000 - - - - -0.678187 -0.758855 1.211484 0.000000 - - - - - - 0.999816 0.005765 -0.018303 0.000000 - -0.005765 0.999983 0.000035 0.000000 - 0.018303 0.000070 0.999833 0.000000 - - - - 1.378594 -0.419746 -0.104451 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 23 - 83 - 0 - 6 - -1 - -1 - 0 - -0.176209 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999920 0.012504 0.001622 0.000000 - -0.012480 0.999819 -0.014376 0.000000 - -0.001802 0.014355 0.999895 0.000000 - - - - 0.135392 0.605935 1.521100 0.000000 - - - - - - 0.999914 -0.006125 -0.011598 0.000000 - 0.006091 0.999977 -0.003025 0.000000 - 0.011617 0.002954 0.999928 0.000000 - - - - 1.617340 -0.268658 0.832913 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 153 - 37 - 0 - 6 - -1 - -1 - 0 - -0.820308 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999873 0.004799 -0.015190 0.000000 - -0.004741 0.999981 0.003909 0.000000 - 0.015208 -0.003837 0.999877 0.000000 - - - - 0.741776 0.952270 -0.603444 0.000000 - - - - - - 0.999984 -0.005219 -0.002192 0.000000 - 0.005223 0.999985 0.001494 0.000000 - 0.002184 -0.001505 0.999996 0.000000 - - - - 0.689913 0.994789 0.126445 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 165 - 57 - 0 - 6 - -1 - -1 - 0 - 1.265434 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999700 0.023651 0.006386 0.000000 - -0.023400 0.999045 -0.036891 0.000000 - -0.007252 0.036730 0.999299 0.000000 - - - - -0.440566 -1.433525 0.316210 0.000000 - - - - - - 0.999292 -0.013129 -0.035244 0.000000 - 0.013967 0.999623 0.023642 0.000000 - 0.034920 -0.024117 0.999099 0.000000 - - - - 0.047603 -0.582398 -1.113613 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 97 - 119 - 0 - 6 - -1 - -1 - 0 - 0.982118 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999969 -0.000079 -0.007920 0.000000 - 0.000040 0.999988 -0.004880 0.000000 - 0.007920 0.004880 0.999957 0.000000 - - - - 0.040992 1.011433 -0.026501 0.000000 - - - - - - 0.999866 0.013991 0.008538 0.000000 - -0.014118 0.999788 0.014996 0.000000 - -0.008326 -0.015115 0.999851 0.000000 - - - - 0.075087 0.157909 1.074155 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 67 - 65 - 0 - 6 - -1 - -1 - 0 - 0.167513 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999968 -0.007428 0.003032 0.000000 - 0.007429 0.999972 -0.000233 0.000000 - -0.003030 0.000255 0.999995 0.000000 - - - - 1.425411 -0.011601 0.011769 0.000000 - - - - - - 0.999960 -0.008821 -0.001079 0.000000 - 0.008811 0.999920 -0.009119 0.000000 - 0.001159 0.009109 0.999958 0.000000 - - - - 0.935354 -0.372748 -1.365238 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 23 - 131 - 0 - 6 - -1 - -1 - 0 - 0.138032 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999972 0.007345 0.001594 0.000000 - -0.007310 0.999748 -0.021209 0.000000 - -0.001749 0.021197 0.999774 0.000000 - - - - 1.056650 1.701536 -0.117703 0.000000 - - - - - - 0.999719 -0.021348 -0.010282 0.000000 - 0.021503 0.999654 0.015141 0.000000 - 0.009955 -0.015358 0.999833 0.000000 - - - - -0.463922 1.587691 1.470158 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 157 - 97 - 0 - 6 - -1 - -1 - 0 - 0.372702 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998833 0.012154 0.046733 0.000000 - -0.011597 0.999859 -0.012160 0.000000 - -0.046875 0.011604 0.998833 0.000000 - - - - -1.046819 0.502274 -0.762776 0.000000 - - - - - - 0.999969 -0.000079 -0.007920 0.000000 - 0.000040 0.999988 -0.004880 0.000000 - 0.007920 0.004880 0.999957 0.000000 - - - - 0.446679 0.584710 1.177444 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 129 - 49 - 0 - 6 - -1 - -1 - 0 - -0.040112 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999988 0.003329 0.003678 0.000000 - -0.003318 0.999990 -0.003002 0.000000 - -0.003688 0.002990 0.999989 0.000000 - - - - -0.267122 0.512280 -1.373376 0.000000 - - - - - - 0.999992 -0.003974 -0.000028 0.000000 - 0.003974 0.999840 0.017462 0.000000 - -0.000041 -0.017462 0.999848 0.000000 - - - - -1.354793 0.496778 0.870278 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 157 - 49 - 0 - 6 - -1 - -1 - 0 - -0.529262 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998833 0.012154 0.046733 0.000000 - -0.011597 0.999859 -0.012160 0.000000 - -0.046875 0.011604 0.998833 0.000000 - - - - 0.004832 1.287365 0.982306 0.000000 - - - - - - 0.999992 -0.003974 -0.000028 0.000000 - 0.003974 0.999840 0.017462 0.000000 - -0.000041 -0.017462 0.999848 0.000000 - - - - -0.500239 0.615772 -1.413696 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 33 - 67 - 0 - 6 - -1 - -1 - 0 - -0.405770 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999992 0.001099 0.003746 0.000000 - -0.001058 0.999940 -0.010940 0.000000 - -0.003758 0.010936 0.999933 0.000000 - - - - 0.776240 -0.720229 -0.808953 0.000000 - - - - - - 0.999968 -0.007428 0.003032 0.000000 - 0.007429 0.999972 -0.000233 0.000000 - -0.003030 0.000255 0.999995 0.000000 - - - - 0.724390 0.274628 -1.199862 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 77 - 171 - 0 - 6 - -1 - -1 - 0 - -0.039446 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999993 0.001110 -0.003564 0.000000 - -0.001103 0.999998 0.001799 0.000000 - 0.003566 -0.001795 0.999992 0.000000 - - - - -1.571034 -0.854730 0.213210 0.000000 - - - - - - 0.999741 0.022445 -0.003802 0.000000 - -0.022323 0.999317 0.029431 0.000000 - 0.004460 -0.029339 0.999560 0.000000 - - - - -0.088246 -1.404151 0.224946 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 37 - 39 - 0 - 6 - -1 - -1 - 0 - 0.133219 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999957 0.005323 -0.007536 0.000000 - -0.005220 0.999895 0.013512 0.000000 - 0.007608 -0.013472 0.999880 0.000000 - - - - -0.943738 0.880049 0.847125 0.000000 - - - - - - 0.999985 0.002943 -0.004713 0.000000 - -0.002973 0.999975 -0.006451 0.000000 - 0.004694 0.006465 0.999968 0.000000 - - - - 0.815253 0.861530 0.512363 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 39 - 105 - 0 - 6 - -1 - -1 - 0 - 0.110181 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999985 0.002943 -0.004713 0.000000 - -0.002973 0.999975 -0.006451 0.000000 - 0.004694 0.006465 0.999968 0.000000 - - - - 0.333353 1.013113 0.551395 0.000000 - - - - - - 0.998895 -0.045145 0.013071 0.000000 - 0.045290 0.998913 -0.011021 0.000000 - -0.012559 0.011601 0.999854 0.000000 - - - - 1.094530 0.664131 -0.482392 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 93 - 175 - 0 - 6 - -1 - -1 - 0 - -0.000073 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998314 -0.057878 -0.004438 0.000000 - 0.057971 0.998010 0.024815 0.000000 - 0.002993 -0.025030 0.999682 0.000000 - - - - -0.788371 -0.323563 -1.463284 0.000000 - - - - - - 0.999823 0.004551 0.018255 0.000000 - -0.004673 0.999967 0.006651 0.000000 - -0.018224 -0.006736 0.999811 0.000000 - - - - 0.096754 -1.048344 -0.026887 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 17 - 53 - 0 - 6 - -1 - -1 - 0 - -0.983829 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999956 -0.009421 -0.000064 0.000000 - 0.009419 0.999845 -0.014858 0.000000 - 0.000204 0.014857 0.999890 0.000000 - - - - 1.164370 0.400812 -1.268687 0.000000 - - - - - - 0.999926 -0.011592 -0.003692 0.000000 - 0.011537 0.999827 -0.014605 0.000000 - 0.003861 0.014562 0.999887 0.000000 - - - - -1.217212 0.862043 -1.742996 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 93 - 71 - 0 - 6 - -1 - -1 - 0 - 0.066129 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998314 -0.057878 -0.004438 0.000000 - 0.057971 0.998010 0.024815 0.000000 - 0.002993 -0.025030 0.999682 0.000000 - - - - -1.421421 -0.579937 0.842680 0.000000 - - - - - - 0.999921 -0.008590 0.009135 0.000000 - 0.008521 0.999935 0.007569 0.000000 - -0.009199 -0.007491 0.999930 0.000000 - - - - -0.122090 -1.353865 -1.745057 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 31 - 13 - 0 - 6 - -1 - -1 - 0 - 0.127278 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999982 -0.004243 -0.004327 0.000000 - 0.004340 0.999730 0.022847 0.000000 - 0.004229 -0.022865 0.999730 0.000000 - - - - 0.841270 -0.274391 0.756510 0.000000 - - - - - - 0.999657 0.003157 -0.025989 0.000000 - -0.002843 0.999923 0.012120 0.000000 - 0.026026 -0.012042 0.999589 0.000000 - - - - 0.868942 -0.966759 -0.005924 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 161 - 73 - 0 - 6 - -1 - -1 - 0 - 0.694567 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999818 0.012503 0.014420 0.000000 - -0.012626 0.999884 0.008474 0.000000 - -0.014312 -0.008655 0.999860 0.000000 - - - - 0.701325 -1.004728 1.100832 0.000000 - - - - - - 0.999970 0.004018 -0.006552 0.000000 - -0.003931 0.999903 0.013335 0.000000 - 0.006604 -0.013308 0.999890 0.000000 - - - - 0.920021 0.022569 -1.349704 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 37 - 107 - 0 - 6 - -1 - -1 - 0 - -0.674791 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999957 0.005323 -0.007536 0.000000 - -0.005220 0.999895 0.013512 0.000000 - 0.007608 -0.013472 0.999880 0.000000 - - - - 1.079500 0.698007 -0.583321 0.000000 - - - - - - 0.999884 0.015223 0.000784 0.000000 - -0.015215 0.999837 -0.009739 0.000000 - -0.000932 0.009726 0.999952 0.000000 - - - - -0.085087 1.541600 -0.589792 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 83 - 109 - 0 - 6 - -1 - -1 - 0 - -0.177075 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999894 -0.007480 -0.012518 0.000000 - 0.007294 0.999864 -0.014825 0.000000 - 0.012627 0.014732 0.999812 0.000000 - - - - 1.514431 -0.339333 0.950581 0.000000 - - - - - - 0.999902 -0.009403 0.010338 0.000000 - 0.009582 0.999802 -0.017435 0.000000 - -0.010172 0.017532 0.999795 0.000000 - - - - 1.274038 1.088178 0.885551 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 13 - 85 - 0 - 6 - -1 - -1 - 0 - -0.022617 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999657 0.003157 -0.025989 0.000000 - -0.002843 0.999923 0.012120 0.000000 - 0.026026 -0.012042 0.999589 0.000000 - - - - 0.758274 0.681199 0.001532 0.000000 - - - - - - 0.999888 0.006632 0.013414 0.000000 - -0.006699 0.999965 0.004927 0.000000 - -0.013381 -0.005016 0.999898 0.000000 - - - - -0.561571 0.153719 0.723050 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 87 - 173 - 0 - 6 - -1 - -1 - 0 - 2.378793 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999476 0.027828 0.016561 0.000000 - -0.027985 0.999565 0.009327 0.000000 - -0.016294 -0.009786 0.999819 0.000000 - - - - 0.863280 0.062484 0.354611 0.000000 - - - - - - 0.999996 0.000418 0.002760 0.000000 - -0.000419 1.000000 0.000416 0.000000 - -0.002759 -0.000417 0.999996 0.000000 - - - - 0.287416 -0.510340 -0.172879 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 107 - 29 - 0 - 6 - -1 - -1 - 0 - -1.595709 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999884 0.015223 0.000784 0.000000 - -0.015215 0.999837 -0.009739 0.000000 - -0.000932 0.009726 0.999952 0.000000 - - - - 0.865269 -0.229341 0.735999 0.000000 - - - - - - 0.999345 0.016246 -0.032349 0.000000 - -0.014821 0.998930 0.043805 0.000000 - 0.033026 -0.043296 0.998516 0.000000 - - - - -0.230945 -1.048352 0.097483 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 161 - 27 - 0 - 6 - -1 - -1 - 0 - -0.042971 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999818 0.012503 0.014420 0.000000 - -0.012626 0.999884 0.008474 0.000000 - -0.014312 -0.008655 0.999860 0.000000 - - - - 0.355256 1.050246 -0.689039 0.000000 - - - - - - 0.999897 -0.010279 -0.009988 0.000000 - 0.010249 0.999943 -0.003062 0.000000 - 0.010019 0.002959 0.999945 0.000000 - - - - 1.076603 0.660442 0.025604 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 5 - 123 - 0 - 6 - -1 - -1 - 0 - -0.710271 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999727 -0.023384 0.000179 0.000000 - 0.023372 0.999418 0.024833 0.000000 - -0.000759 -0.024822 0.999692 0.000000 - - - - 0.476363 0.152431 0.833646 0.000000 - - - - - - 0.999976 -0.005905 -0.003552 0.000000 - 0.005839 0.999812 -0.018503 0.000000 - 0.003660 0.018482 0.999822 0.000000 - - - - 0.013903 -0.944748 0.405447 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 159 - 11 - 0 - 6 - -1 - -1 - 0 - -0.023756 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999852 0.017109 -0.001503 0.000000 - -0.017113 0.999849 -0.002862 0.000000 - 0.001454 0.002887 0.999995 0.000000 - - - - 0.969475 -1.028847 0.855172 0.000000 - - - - - - 0.999930 -0.002280 -0.011649 0.000000 - 0.002508 0.999804 0.019636 0.000000 - 0.011602 -0.019664 0.999739 0.000000 - - - - -0.060030 -1.163552 -0.458388 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 113 - 135 - 0 - 6 - -1 - -1 - 0 - -0.120716 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999988 -0.003752 -0.003019 0.000000 - 0.003725 0.999954 -0.008833 0.000000 - 0.003052 0.008821 0.999956 0.000000 - - - - -1.697575 -0.423645 -0.324618 0.000000 - - - - - - 0.999911 0.001812 0.013243 0.000000 - -0.002034 0.999856 0.016827 0.000000 - -0.013211 -0.016852 0.999771 0.000000 - - - - -0.363410 -0.901576 -0.914864 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 165 - 17 - 0 - 6 - -1 - -1 - 0 - -1.021723 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999231 0.039200 0.000453 0.000000 - -0.039129 0.997981 -0.050031 0.000000 - -0.002414 0.049974 0.998748 0.000000 - - - - 1.113746 -1.206181 0.514244 0.000000 - - - - - - 0.999956 -0.009421 -0.000064 0.000000 - 0.009419 0.999845 -0.014858 0.000000 - 0.000204 0.014857 0.999890 0.000000 - - - - 0.448129 -1.464164 -0.238204 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 35 - 161 - 0 - 6 - -1 - -1 - 0 - 0.346120 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999986 0.005243 -0.000475 0.000000 - -0.005242 0.999985 0.001281 0.000000 - 0.000482 -0.001278 0.999999 0.000000 - - - - 0.287570 0.799899 -1.552757 0.000000 - - - - - - 0.999818 0.012503 0.014420 0.000000 - -0.012626 0.999884 0.008474 0.000000 - -0.014312 -0.008655 0.999860 0.000000 - - - - -0.426237 0.974539 0.829051 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 113 - 41 - 0 - 6 - -1 - -1 - 0 - -0.025021 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999988 -0.003752 -0.003019 0.000000 - 0.003725 0.999954 -0.008833 0.000000 - 0.003052 0.008821 0.999956 0.000000 - - - - -1.775705 -0.220237 -1.017524 0.000000 - - - - - - 0.998616 0.050560 -0.014507 0.000000 - -0.051100 0.997906 -0.039648 0.000000 - 0.012472 0.040334 0.999108 0.000000 - - - - 0.691801 -0.960003 -1.132915 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 153 - 91 - 0 - 6 - -1 - -1 - 0 - 0.063031 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999672 0.015495 -0.020412 0.000000 - -0.015170 0.999757 0.015980 0.000000 - 0.020654 -0.015665 0.999664 0.000000 - - - - -0.983500 0.299771 0.718049 0.000000 - - - - - - 0.999900 -0.011554 0.008154 0.000000 - 0.011351 0.999634 0.024572 0.000000 - -0.008435 -0.024477 0.999665 0.000000 - - - - 0.189642 1.154552 0.176793 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 93 - 147 - 0 - 6 - -1 - -1 - 0 - -0.407922 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998314 -0.057878 -0.004438 0.000000 - 0.057971 0.998010 0.024815 0.000000 - 0.002993 -0.025030 0.999682 0.000000 - - - - -1.397458 -0.462519 0.122354 0.000000 - - - - - - 0.999997 0.002275 -0.001059 0.000000 - -0.002266 0.999955 0.009164 0.000000 - 0.001080 -0.009161 0.999957 0.000000 - - - - 0.172993 -1.474296 -0.434893 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 49 - 75 - 0 - 6 - -1 - -1 - 0 - -0.574933 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999999 -0.000094 -0.001220 0.000000 - 0.000109 0.999924 0.012312 0.000000 - 0.001218 -0.012312 0.999923 0.000000 - - - - 0.232985 0.893101 1.614673 0.000000 - - - - - - 0.999944 -0.010230 -0.002669 0.000000 - 0.010246 0.999929 0.006130 0.000000 - 0.002606 -0.006157 0.999978 0.000000 - - - - -0.133558 1.251653 -0.202133 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 125 - 19 - 0 - 6 - -1 - -1 - 0 - 1.652194 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999702 0.024139 0.003589 0.000000 - -0.024185 0.999619 0.013316 0.000000 - -0.003267 -0.013399 0.999905 0.000000 - - - - -1.204425 -0.262825 -0.500958 0.000000 - - - - - - 0.999923 -0.009091 0.008416 0.000000 - 0.009090 0.999959 0.000161 0.000000 - -0.008417 -0.000085 0.999965 0.000000 - - - - -0.623731 -1.391303 0.174927 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 19 - 9 - 0 - 6 - -1 - -1 - 0 - 1.308758 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999923 -0.009091 0.008416 0.000000 - 0.009090 0.999959 0.000161 0.000000 - -0.008417 -0.000085 0.999965 0.000000 - - - - 0.299810 1.438023 0.926680 0.000000 - - - - - - 0.999776 0.021146 -0.000676 0.000000 - -0.021141 0.999752 0.007014 0.000000 - 0.000824 -0.006998 0.999975 0.000000 - - - - -0.387944 0.705266 -1.009258 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 119 - 149 - 0 - 6 - -1 - -1 - 0 - 0.972415 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999769 0.020538 0.006346 0.000000 - -0.020586 0.999759 0.007559 0.000000 - -0.006190 -0.007688 0.999951 0.000000 - - - - -0.611347 0.190139 -0.383555 0.000000 - - - - - - 0.999910 -0.013206 -0.002402 0.000000 - 0.013185 0.999878 -0.008398 0.000000 - 0.002513 0.008366 0.999962 0.000000 - - - - -0.057306 0.031083 1.238600 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 79 - 143 - 0 - 6 - -1 - -1 - 0 - -0.160719 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999861 -0.016105 0.004259 0.000000 - 0.016099 0.999869 0.001505 0.000000 - -0.004283 -0.001436 0.999990 0.000000 - - - - -0.351740 -0.952579 -0.281047 0.000000 - - - - - - 0.999914 0.011723 0.005899 0.000000 - -0.011515 0.999351 -0.034132 0.000000 - -0.006295 0.034061 0.999400 0.000000 - - - - -1.261499 -0.180052 0.495457 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 141 - 59 - 0 - 6 - -1 - -1 - 0 - 0.000048 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.995579 0.093802 -0.004761 0.000000 - -0.093633 0.995210 0.028099 0.000000 - 0.007374 -0.027529 0.999594 0.000000 - - - - 0.951686 0.465828 0.364875 0.000000 - - - - - - 0.999769 0.003920 -0.021119 0.000000 - -0.004650 0.999389 -0.034648 0.000000 - 0.020970 0.034738 0.999176 0.000000 - - - - 0.747476 -0.923579 0.149383 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 95 - 21 - 0 - 6 - -1 - -1 - 0 - -0.014669 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999451 0.028966 -0.016092 0.000000 - -0.029936 0.997518 -0.063731 0.000000 - 0.014206 0.064178 0.997837 0.000000 - - - - -0.698994 0.602673 0.670300 0.000000 - - - - - - 0.999314 -0.028105 0.024099 0.000000 - 0.027876 0.999564 0.009760 0.000000 - -0.024363 -0.009082 0.999662 0.000000 - - - - -0.649031 -0.558438 0.649866 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 81 - 7 - 0 - 6 - -1 - -1 - 0 - -0.500172 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999441 0.030294 0.014130 0.000000 - -0.029616 0.998506 -0.045917 0.000000 - -0.015500 0.045473 0.998845 0.000000 - - - - -0.478968 0.925546 -0.117188 0.000000 - - - - - - 0.999725 -0.007598 -0.022193 0.000000 - 0.007220 0.999828 -0.017060 0.000000 - 0.022319 0.016895 0.999608 0.000000 - - - - -0.897503 0.576177 0.114841 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 65 - 63 - 0 - 6 - -1 - -1 - 0 - 0.010938 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999995 -0.003125 -0.001068 0.000000 - 0.003105 0.999820 -0.018705 0.000000 - 0.001127 0.018702 0.999824 0.000000 - - - - -0.981236 0.433616 0.665279 0.000000 - - - - - - 0.999617 -0.019834 0.019313 0.000000 - 0.020387 0.999376 -0.028843 0.000000 - -0.018729 0.029226 0.999397 0.000000 - - - - -0.602147 -0.357662 0.682560 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 169 - 21 - 0 - 6 - -1 - -1 - 0 - 0.016487 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999349 0.016561 0.032043 0.000000 - -0.017674 0.999239 0.034771 0.000000 - -0.031443 -0.035315 0.998881 0.000000 - - - - -0.818487 -0.229377 0.087430 0.000000 - - - - - - 0.999314 -0.028105 0.024099 0.000000 - 0.027876 0.999564 0.009760 0.000000 - -0.024363 -0.009082 0.999662 0.000000 - - - - -0.458102 -0.339242 0.667569 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 145 - 69 - 0 - 6 - -1 - -1 - 0 - 1.610953 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999934 0.009728 0.006086 0.000000 - -0.009444 0.998941 -0.045029 0.000000 - -0.006518 0.044969 0.998967 0.000000 - - - - 0.353925 1.134289 -0.751691 0.000000 - - - - - - 0.999957 -0.000818 -0.009275 0.000000 - 0.000464 0.999274 -0.038108 0.000000 - 0.009299 0.038102 0.999231 0.000000 - - - - -1.136587 0.686161 0.199615 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 111 - 113 - 0 - 6 - -1 - -1 - 0 - -0.035771 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999881 -0.010253 0.011513 0.000000 - 0.010100 0.999861 0.013299 0.000000 - -0.011648 -0.013181 0.999845 0.000000 - - - - 0.638979 -0.155035 -1.375884 0.000000 - - - - - - 0.999995 -0.000321 -0.003271 0.000000 - 0.000286 0.999942 -0.010812 0.000000 - 0.003275 0.010811 0.999936 0.000000 - - - - -1.866807 -1.210397 -0.408328 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 115 - 133 - 0 - 6 - -1 - -1 - 0 - 1.096859 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999883 0.002853 0.015028 0.000000 - -0.003137 0.999816 0.018933 0.000000 - -0.014971 -0.018977 0.999708 0.000000 - - - - 0.412565 0.015143 -1.515353 0.000000 - - - - - - 0.999718 -0.001123 0.023733 0.000000 - 0.000721 0.999856 0.016954 0.000000 - -0.023748 -0.016932 0.999575 0.000000 - - - - 1.236128 -0.644280 -0.454261 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 153 - 11 - 0 - 6 - -1 - -1 - 0 - 0.139258 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999539 0.021759 -0.021153 0.000000 - -0.021494 0.999688 0.012695 0.000000 - 0.021422 -0.012235 0.999696 0.000000 - - - - -0.664246 -1.042966 0.120270 0.000000 - - - - - - 0.999916 0.003976 -0.012336 0.000000 - -0.003774 0.999860 0.016315 0.000000 - 0.012399 -0.016267 0.999791 0.000000 - - - - -1.032116 0.131022 -0.505006 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 135 - 77 - 0 - 6 - -1 - -1 - 0 - 0.075870 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999902 0.005280 0.012980 0.000000 - -0.005472 0.999875 0.014850 0.000000 - -0.012900 -0.014920 0.999805 0.000000 - - - - 1.180767 0.484837 0.495352 0.000000 - - - - - - 0.999982 0.004582 -0.003781 0.000000 - -0.004583 0.999990 -0.000191 0.000000 - 0.003780 0.000209 0.999993 0.000000 - - - - -0.194403 1.332391 -0.684163 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 111 - 67 - 0 - 6 - -1 - -1 - 0 - 0.023904 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999881 -0.010253 0.011513 0.000000 - 0.010100 0.999861 0.013299 0.000000 - -0.011648 -0.013181 0.999845 0.000000 - - - - -0.676625 -0.597386 -0.791770 0.000000 - - - - - - 0.999994 -0.001683 0.003030 0.000000 - 0.001713 0.999950 -0.009815 0.000000 - -0.003013 0.009820 0.999947 0.000000 - - - - 0.224800 -1.058920 0.495595 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 111 - 65 - 0 - 6 - -1 - -1 - 0 - 0.047915 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999881 -0.010253 0.011513 0.000000 - 0.010100 0.999861 0.013299 0.000000 - -0.011648 -0.013181 0.999845 0.000000 - - - - 0.534215 0.354962 -1.213605 0.000000 - - - - - - 0.999995 -0.003125 -0.001068 0.000000 - 0.003105 0.999820 -0.018705 0.000000 - 0.001127 0.018702 0.999824 0.000000 - - - - 0.956890 -0.469586 -1.271772 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 101 - 133 - 0 - 6 - -1 - -1 - 0 - -1.106969 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999288 -0.033392 0.017579 0.000000 - 0.033431 0.999439 -0.001954 0.000000 - -0.017504 0.002540 0.999844 0.000000 - - - - 0.498038 1.302521 -1.614984 0.000000 - - - - - - 0.999718 -0.001123 0.023733 0.000000 - 0.000721 0.999856 0.016954 0.000000 - -0.023748 -0.016932 0.999575 0.000000 - - - - -0.148963 0.081156 -1.856099 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 41 - 33 - 0 - 6 - -1 - -1 - 0 - -0.024351 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998429 0.054042 -0.014813 0.000000 - -0.054616 0.997641 -0.041583 0.000000 - 0.012531 0.042327 0.999025 0.000000 - - - - -0.602355 0.436298 -0.680222 0.000000 - - - - - - 0.999970 0.006829 0.003744 0.000000 - -0.006751 0.999767 -0.020524 0.000000 - -0.003883 0.020498 0.999782 0.000000 - - - - 0.336238 0.709238 0.159118 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 101 - 97 - 0 - 6 - -1 - -1 - 0 - -0.394603 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999288 -0.033392 0.017579 0.000000 - 0.033431 0.999439 -0.001954 0.000000 - -0.017504 0.002540 0.999844 0.000000 - - - - -0.910687 -0.564842 1.090239 0.000000 - - - - - - 0.999930 0.006370 -0.009993 0.000000 - -0.006493 0.999903 -0.012329 0.000000 - 0.009913 0.012393 0.999874 0.000000 - - - - 0.108746 -1.031685 -0.056167 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 151 - 137 - 0 - 6 - -1 - -1 - 0 - -0.000108 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999611 -0.006978 -0.027020 0.000000 - 0.006593 0.999876 -0.014328 0.000000 - 0.027117 0.014144 0.999532 0.000000 - - - - -1.467359 -0.847947 1.149774 0.000000 - - - - - - 0.999826 0.000774 -0.018626 0.000000 - -0.000697 0.999991 0.004161 0.000000 - 0.018629 -0.004147 0.999818 0.000000 - - - - -0.116462 -1.526084 -1.554153 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 73 - 125 - 0 - 6 - -1 - -1 - 0 - -0.640455 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999968 0.005839 -0.005517 0.000000 - -0.005731 0.999796 0.019373 0.000000 - 0.005629 -0.019340 0.999797 0.000000 - - - - 0.076073 -0.909683 1.153965 0.000000 - - - - - - 0.999702 0.024139 0.003589 0.000000 - -0.024185 0.999619 0.013316 0.000000 - -0.003267 -0.013399 0.999905 0.000000 - - - - 0.861644 -0.503119 -1.258545 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 15 - 127 - 0 - 6 - -1 - -1 - 0 - 0.003999 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998236 -0.059059 -0.006014 0.000000 - 0.059061 0.998254 0.000125 0.000000 - 0.005996 -0.000480 0.999982 0.000000 - - - - -0.350008 0.268479 1.228509 0.000000 - - - - - - 0.999957 -0.007775 -0.005052 0.000000 - 0.007807 0.999950 0.006300 0.000000 - 0.005003 -0.006339 0.999967 0.000000 - - - - -0.691931 -1.031878 1.125067 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 87 - 73 - 0 - 6 - -1 - -1 - 0 - -0.410369 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999411 0.029728 0.017152 0.000000 - -0.029961 0.999460 0.013502 0.000000 - -0.016741 -0.014008 0.999762 0.000000 - - - - -0.498200 0.618621 -1.134893 0.000000 - - - - - - 0.999968 0.005839 -0.005517 0.000000 - -0.005731 0.999796 0.019373 0.000000 - 0.005629 -0.019340 0.999797 0.000000 - - - - 0.053165 1.219834 1.288397 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 25 - 111 - 0 - 6 - -1 - -1 - 0 - 0.036186 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998354 0.056381 -0.010478 0.000000 - -0.055721 0.996921 0.055171 0.000000 - 0.013556 -0.054496 0.998422 0.000000 - - - - 0.918613 -0.963300 -0.545922 0.000000 - - - - - - 0.999881 -0.010253 0.011513 0.000000 - 0.010100 0.999861 0.013299 0.000000 - -0.011648 -0.013181 0.999845 0.000000 - - - - -0.760561 -0.550512 -0.427465 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 105 - 169 - 0 - 6 - -1 - -1 - 0 - 0.246104 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999169 -0.038782 0.012527 0.000000 - 0.038961 0.999138 -0.014362 0.000000 - -0.011959 0.014838 0.999818 0.000000 - - - - 0.652899 -0.348363 0.603762 0.000000 - - - - - - 0.999349 0.016561 0.032043 0.000000 - -0.017674 0.999239 0.034771 0.000000 - -0.031443 -0.035315 0.998881 0.000000 - - - - 0.861060 0.648370 -0.158040 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 71 - 19 - 0 - 6 - -1 - -1 - 0 - -0.342478 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999911 -0.006889 0.011396 0.000000 - 0.006776 0.999928 0.009948 0.000000 - -0.011463 -0.009870 0.999886 0.000000 - - - - -0.431657 1.608635 0.186081 0.000000 - - - - - - 0.999923 -0.009091 0.008416 0.000000 - 0.009090 0.999959 0.000161 0.000000 - -0.008417 -0.000085 0.999965 0.000000 - - - - -0.646625 1.282563 -1.411759 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 135 - 65 - 0 - 6 - -1 - -1 - 0 - -0.166824 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999902 0.005280 0.012980 0.000000 - -0.005472 0.999875 0.014850 0.000000 - -0.012900 -0.014920 0.999805 0.000000 - - - - -0.560084 -0.953440 0.200688 0.000000 - - - - - - 0.999995 -0.003125 -0.001068 0.000000 - 0.003105 0.999820 -0.018705 0.000000 - 0.001127 0.018702 0.999824 0.000000 - - - - 1.015613 -0.279369 -0.249187 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 173 - 61 - 0 - 6 - -1 - -1 - 0 - 2.371180 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999992 0.002393 0.003226 0.000000 - -0.002408 0.999986 0.004625 0.000000 - -0.003215 -0.004633 0.999984 0.000000 - - - - 0.417097 -0.665503 0.015037 0.000000 - - - - - - 0.999937 0.010877 -0.002591 0.000000 - -0.010890 0.999928 -0.005063 0.000000 - 0.002535 0.005091 0.999984 0.000000 - - - - 0.424694 0.839560 0.025363 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 5 - 169 - 0 - 6 - -1 - -1 - 0 - -0.226500 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999762 -0.021698 0.002428 0.000000 - 0.021622 0.999380 0.027802 0.000000 - -0.003030 -0.027743 0.999610 0.000000 - - - - -0.752462 0.404144 -0.218184 0.000000 - - - - - - 0.999349 0.016561 0.032043 0.000000 - -0.017674 0.999239 0.034771 0.000000 - -0.031443 -0.035315 0.998881 0.000000 - - - - 0.557696 -0.728009 -0.359226 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 5 - 81 - 0 - 6 - -1 - -1 - 0 - -0.743296 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999762 -0.021698 0.002428 0.000000 - 0.021622 0.999380 0.027802 0.000000 - -0.003030 -0.027743 0.999610 0.000000 - - - - -0.306596 -0.179920 -1.347529 0.000000 - - - - - - 0.999441 0.030294 0.014130 0.000000 - -0.029616 0.998506 -0.045917 0.000000 - -0.015500 0.045473 0.998845 0.000000 - - - - 0.827304 -0.765847 -0.336876 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 91 - 123 - 0 - 6 - -1 - -1 - 0 - 1.714060 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999958 -0.005185 0.007504 0.000000 - 0.005025 0.999761 0.021277 0.000000 - -0.007613 -0.021238 0.999745 0.000000 - - - - 0.177877 1.136742 0.360921 0.000000 - - - - - - 0.999990 -0.004234 -0.001164 0.000000 - 0.004202 0.999636 -0.026654 0.000000 - 0.001276 0.026649 0.999644 0.000000 - - - - -0.032812 1.009118 -0.666950 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 13 - 93 - 0 - 6 - -1 - -1 - 0 - 0.000474 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999677 0.005076 -0.024895 0.000000 - -0.004682 0.999863 0.015851 0.000000 - 0.024972 -0.015729 0.999564 0.000000 - - - - -0.880761 -0.066487 -0.499819 0.000000 - - - - - - 0.998425 -0.056040 -0.002472 0.000000 - 0.056087 0.998042 0.027673 0.000000 - 0.000916 -0.027768 0.999614 0.000000 - - - - -0.257100 0.799081 -0.771685 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 123 - 85 - 0 - 6 - -1 - -1 - 0 - -0.834739 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999990 -0.004234 -0.001164 0.000000 - 0.004202 0.999636 -0.026654 0.000000 - 0.001276 0.026649 0.999644 0.000000 - - - - 0.533919 0.370623 0.493564 0.000000 - - - - - - 0.999851 0.008368 0.015124 0.000000 - -0.008493 0.999930 0.008240 0.000000 - -0.015054 -0.008368 0.999852 0.000000 - - - - 1.025450 -0.185496 -0.223309 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 85 - 31 - 0 - 6 - -1 - -1 - 0 - 0.137636 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999851 0.008368 0.015124 0.000000 - -0.008493 0.999930 0.008240 0.000000 - -0.015054 -0.008368 0.999852 0.000000 - - - - -0.431496 -0.772591 0.153700 0.000000 - - - - - - 0.999995 -0.002508 -0.002061 0.000000 - 0.002560 0.999667 0.025681 0.000000 - 0.001996 -0.025686 0.999668 0.000000 - - - - 0.869588 0.437810 0.198101 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 35 - 73 - 0 - 6 - -1 - -1 - 0 - -0.903984 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999975 0.007121 0.000055 0.000000 - -0.007121 0.999960 0.005419 0.000000 - -0.000017 -0.005419 0.999985 0.000000 - - - - -0.259993 -0.770097 -1.092074 0.000000 - - - - - - 0.999968 0.005839 -0.005517 0.000000 - -0.005731 0.999796 0.019373 0.000000 - 0.005629 -0.019340 0.999797 0.000000 - - - - -0.775571 0.444842 -1.179768 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 91 - 5 - 0 - 6 - -1 - -1 - 0 - -1.642532 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999958 -0.005185 0.007504 0.000000 - 0.005025 0.999761 0.021277 0.000000 - -0.007613 -0.021238 0.999745 0.000000 - - - - -0.295292 -0.989206 -0.495621 0.000000 - - - - - - 0.999762 -0.021698 0.002428 0.000000 - 0.021622 0.999380 0.027802 0.000000 - -0.003030 -0.027743 0.999610 0.000000 - - - - -0.041721 -0.095044 -1.188069 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 171 - 65 - 0 - 6 - -1 - -1 - 0 - -0.039558 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999656 0.025923 -0.004058 0.000000 - -0.025802 0.999291 0.027434 0.000000 - 0.004767 -0.027320 0.999615 0.000000 - - - - -1.044801 -0.411434 0.531493 0.000000 - - - - - - 0.999995 -0.003125 -0.001068 0.000000 - 0.003105 0.999820 -0.018705 0.000000 - 0.001127 0.018702 0.999824 0.000000 - - - - 0.398721 -0.102370 1.332800 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 27 - 55 - 0 - 6 - -1 - -1 - 0 - -0.042197 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999927 -0.007291 -0.009620 0.000000 - 0.007299 0.999973 0.000787 0.000000 - 0.009614 -0.000857 0.999953 0.000000 - - - - 0.848515 0.635854 -0.521518 0.000000 - - - - - - 0.999287 0.033006 -0.018307 0.000000 - -0.033254 0.999357 -0.013383 0.000000 - 0.017854 0.013982 0.999743 0.000000 - - - - -0.949702 0.501865 0.654394 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 139 - 47 - 0 - 6 - -1 - -1 - 0 - 0.088238 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999603 -0.012740 -0.025112 0.000000 - 0.011063 0.997769 -0.065836 0.000000 - 0.025895 0.065532 0.997514 0.000000 - - - - -0.974469 0.315338 -0.860540 0.000000 - - - - - - 0.999510 0.018154 -0.025483 0.000000 - -0.017908 0.999791 0.009873 0.000000 - 0.025657 -0.009412 0.999627 0.000000 - - - - 1.002713 -0.209325 -0.311700 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 133 - 157 - 0 - 6 - -1 - -1 - 0 - 0.003812 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999726 0.000607 0.023384 0.000000 - -0.000968 0.999880 0.015435 0.000000 - -0.023372 -0.015454 0.999607 0.000000 - - - - -0.692457 0.741643 1.716321 0.000000 - - - - - - 0.998795 0.020783 0.044467 0.000000 - -0.019886 0.999591 -0.020539 0.000000 - -0.044875 0.019630 0.998800 0.000000 - - - - -0.496974 1.280787 -1.096491 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 123 - 145 - 0 - 6 - -1 - -1 - 0 - 1.290125 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999994 -0.002886 -0.001801 0.000000 - 0.002836 0.999622 -0.027332 0.000000 - 0.001879 0.027327 0.999625 0.000000 - - - - 0.643378 0.381964 0.456922 0.000000 - - - - - - 0.999939 0.010625 -0.003000 0.000000 - -0.010740 0.999091 -0.041248 0.000000 - 0.002559 0.041278 0.999144 0.000000 - - - - -0.657001 -0.138330 0.833549 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 173 - 47 - 0 - 6 - -1 - -1 - 0 - -0.022925 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999989 0.003857 0.002800 0.000000 - -0.003870 0.999982 0.004549 0.000000 - -0.002782 -0.004560 0.999986 0.000000 - - - - -0.506900 0.861696 0.806145 0.000000 - - - - - - 0.999510 0.018154 -0.025483 0.000000 - -0.017908 0.999791 0.009873 0.000000 - 0.025657 -0.009412 0.999627 0.000000 - - - - -0.602095 0.309121 -0.757164 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 63 - 45 - 0 - 6 - -1 - -1 - 0 - -0.018773 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999652 -0.018125 0.019165 0.000000 - 0.018687 0.999389 -0.029527 0.000000 - -0.018618 0.029875 0.999380 0.000000 - - - - -1.053370 -0.135942 0.423892 0.000000 - - - - - - 0.999679 -0.025107 -0.003287 0.000000 - 0.025070 0.999628 -0.010782 0.000000 - 0.003556 0.010696 0.999936 0.000000 - - - - -0.004460 -0.411844 0.798038 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 67 - 45 - 0 - 6 - -1 - -1 - 0 - 0.018657 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999996 0.000089 0.002806 0.000000 - -0.000060 0.999947 -0.010302 0.000000 - -0.002806 0.010302 0.999943 0.000000 - - - - -1.035719 0.934667 0.515754 0.000000 - - - - - - 0.999679 -0.025107 -0.003287 0.000000 - 0.025070 0.999628 -0.010782 0.000000 - 0.003556 0.010696 0.999936 0.000000 - - - - -0.104925 -0.520005 -0.459737 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 173 - 33 - 0 - 6 - -1 - -1 - 0 - 0.000680 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999989 0.003857 0.002800 0.000000 - -0.003870 0.999982 0.004549 0.000000 - -0.002782 -0.004560 0.999986 0.000000 - - - - 1.042834 0.183749 1.036114 0.000000 - - - - - - 0.999956 0.008606 0.003609 0.000000 - -0.008528 0.999742 -0.021062 0.000000 - -0.003789 0.021030 0.999772 0.000000 - - - - 0.590740 0.581877 -0.678716 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 53 - 149 - 0 - 6 - -1 - -1 - 0 - -0.976079 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999978 -0.003666 -0.005578 0.000000 - 0.003549 0.999775 -0.020924 0.000000 - 0.005654 0.020904 0.999766 0.000000 - - - - 1.426453 1.328977 0.330063 0.000000 - - - - - - 0.999926 -0.011917 -0.002602 0.000000 - 0.011892 0.999886 -0.009354 0.000000 - 0.002714 0.009322 0.999953 0.000000 - - - - 1.803313 0.040098 -0.091152 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 155 - 99 - 0 - 6 - -1 - -1 - 0 - 0.138542 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999480 0.016230 0.027865 0.000000 - -0.015115 0.999095 -0.039754 0.000000 - -0.028485 0.039312 0.998821 0.000000 - - - - 1.653289 -0.494682 0.618810 0.000000 - - - - - - 0.999848 -0.012318 -0.012339 0.000000 - 0.012378 0.999912 0.004782 0.000000 - 0.012279 -0.004934 0.999912 0.000000 - - - - 1.310703 -0.621363 -0.984140 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 33 - 47 - 0 - 6 - -1 - -1 - 0 - -0.065432 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999956 0.008606 0.003609 0.000000 - -0.008528 0.999742 -0.021062 0.000000 - -0.003789 0.021030 0.999772 0.000000 - - - - -0.725962 0.755379 0.359052 0.000000 - - - - - - 0.999510 0.018154 -0.025483 0.000000 - -0.017908 0.999791 0.009873 0.000000 - 0.025657 -0.009412 0.999627 0.000000 - - - - -0.413559 -0.171502 0.513204 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 113 - 139 - 0 - 6 - -1 - -1 - 0 - 0.224433 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999994 0.001269 -0.003301 0.000000 - -0.001308 0.999932 -0.011618 0.000000 - 0.003286 0.011622 0.999927 0.000000 - - - - -1.508416 0.093455 -0.933949 0.000000 - - - - - - 0.999603 -0.012740 -0.025112 0.000000 - 0.011063 0.997769 -0.065836 0.000000 - 0.025895 0.065532 0.997514 0.000000 - - - - 0.330823 -0.752074 -0.564528 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 87 - 125 - 0 - 6 - -1 - -1 - 0 - 1.796692 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999392 0.030344 0.017156 0.000000 - -0.030577 0.999442 0.013467 0.000000 - -0.016738 -0.013984 0.999762 0.000000 - - - - -0.216676 -1.226292 -1.074611 0.000000 - - - - - - 0.999674 0.025470 0.001886 0.000000 - -0.025480 0.999662 0.005088 0.000000 - -0.001755 -0.005134 0.999985 0.000000 - - - - 1.171028 -0.221550 -1.044196 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 137 - 15 - 0 - 6 - -1 - -1 - 0 - 0.004222 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999817 0.002760 -0.018943 0.000000 - -0.002700 0.999991 0.003190 0.000000 - 0.018952 -0.003139 0.999815 0.000000 - - - - 0.286095 -1.551816 -1.191771 0.000000 - - - - - - 0.998349 -0.057092 -0.006238 0.000000 - 0.057088 0.998369 -0.000868 0.000000 - 0.006278 0.000511 0.999980 0.000000 - - - - -1.387041 -0.650972 0.238991 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 25 - 67 - 0 - 6 - -1 - -1 - 0 - -0.036246 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998257 0.058057 -0.010605 0.000000 - -0.057397 0.996860 0.054544 0.000000 - 0.013738 -0.053841 0.998455 0.000000 - - - - 0.854138 -1.017775 -0.823246 0.000000 - - - - - - 0.999996 0.000089 0.002806 0.000000 - -0.000060 0.999947 -0.010302 0.000000 - -0.002806 0.010302 0.999943 0.000000 - - - - 0.072217 -1.059843 0.581106 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 59 - 125 - 0 - 6 - -1 - -1 - 0 - 0.459085 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999340 0.031378 -0.018317 0.000000 - -0.031738 0.999302 -0.019702 0.000000 - 0.017686 0.020270 0.999638 0.000000 - - - - 1.010491 -0.503666 -0.328882 0.000000 - - - - - - 0.999674 0.025470 0.001886 0.000000 - -0.025480 0.999662 0.005088 0.000000 - -0.001755 -0.005134 0.999985 0.000000 - - - - 0.472327 0.521937 0.923435 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 67 - 143 - 0 - 6 - -1 - -1 - 0 - 0.414236 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999996 0.000089 0.002806 0.000000 - -0.000060 0.999947 -0.010302 0.000000 - -0.002806 0.010302 0.999943 0.000000 - - - - -0.441509 -1.028411 -0.056791 0.000000 - - - - - - 0.999816 0.008327 0.017292 0.000000 - -0.008141 0.999908 -0.010816 0.000000 - -0.017381 0.010673 0.999792 0.000000 - - - - 0.507258 -0.486087 0.869517 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 59 - 121 - 0 - 6 - -1 - -1 - 0 - -0.458958 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999340 0.031378 -0.018317 0.000000 - -0.031738 0.999302 -0.019702 0.000000 - 0.017686 0.020270 0.999638 0.000000 - - - - -0.068167 -0.817373 1.016800 0.000000 - - - - - - 0.999998 -0.000484 -0.002106 0.000000 - 0.000489 0.999997 0.002340 0.000000 - 0.002104 -0.002341 0.999995 0.000000 - - - - -0.035808 -0.840368 0.291712 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 153 - 55 - 0 - 6 - -1 - -1 - 0 - 0.604775 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999485 0.023126 -0.022233 0.000000 - -0.022914 0.999690 0.009765 0.000000 - 0.022451 -0.009250 0.999705 0.000000 - - - - -0.784411 1.066980 0.390953 0.000000 - - - - - - 0.999287 0.033006 -0.018307 0.000000 - -0.033254 0.999357 -0.013383 0.000000 - 0.017854 0.013982 0.999743 0.000000 - - - - 1.213310 0.500232 -1.009990 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 23 - 137 - 0 - 6 - -1 - -1 - 0 - 0.039629 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999869 0.016193 0.000128 0.000000 - -0.016183 0.999448 -0.029020 0.000000 - -0.000598 0.029015 0.999579 0.000000 - - - - 0.634799 -1.533541 -1.499307 0.000000 - - - - - - 0.999817 0.002760 -0.018943 0.000000 - -0.002700 0.999991 0.003190 0.000000 - 0.018952 -0.003139 0.999815 0.000000 - - - - -0.543082 -1.440917 -1.526497 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 85 - 55 - 0 - 6 - -1 - -1 - 0 - -0.996048 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999847 0.009780 0.014486 0.000000 - -0.009888 0.999924 0.007382 0.000000 - -0.014413 -0.007524 0.999868 0.000000 - - - - -0.798323 0.967909 0.349607 0.000000 - - - - - - 0.999287 0.033006 -0.018307 0.000000 - -0.033254 0.999357 -0.013383 0.000000 - 0.017854 0.013982 0.999743 0.000000 - - - - -0.299313 0.245975 1.199606 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 105 - 55 - 0 - 6 - -1 - -1 - 0 - -0.128150 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999235 -0.037225 0.012002 0.000000 - 0.037422 0.999160 -0.016677 0.000000 - -0.011371 0.017113 0.999789 0.000000 - - - - -0.691672 0.405592 0.723570 0.000000 - - - - - - 0.999287 0.033006 -0.018307 0.000000 - -0.033254 0.999357 -0.013383 0.000000 - 0.017854 0.013982 0.999743 0.000000 - - - - -1.220983 0.331820 -0.122910 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 57 - 17 - 0 - 6 - -1 - -1 - 0 - 0.020521 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999055 0.009567 -0.042389 0.000000 - -0.009401 0.999947 0.004098 0.000000 - 0.042426 -0.003696 0.999093 0.000000 - - - - 1.518001 -0.341384 -0.762734 0.000000 - - - - - - 0.999997 -0.001474 -0.001951 0.000000 - 0.001433 0.999775 -0.021174 0.000000 - 0.001982 0.021171 0.999774 0.000000 - - - - 0.384535 -1.510486 -0.131125 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 69 - 29 - 0 - 6 - -1 - -1 - 0 - 1.608307 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999826 0.000238 -0.018625 0.000000 - -0.000886 0.999395 -0.034779 0.000000 - 0.018605 0.034790 0.999221 0.000000 - - - - -0.549585 0.572513 -1.341193 0.000000 - - - - - - 0.999122 0.024040 -0.034307 0.000000 - -0.022760 0.999047 0.037239 0.000000 - 0.035169 -0.036426 0.998717 0.000000 - - - - -1.003116 0.637012 -1.126825 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 79 - 89 - 0 - 6 - -1 - -1 - 0 - 0.213800 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999720 -0.018640 0.014590 0.000000 - 0.018153 0.999296 0.032820 0.000000 - -0.015192 -0.032546 0.999355 0.000000 - - - - 0.275675 1.078840 -0.317842 0.000000 - - - - - - 0.998037 -0.056356 0.027333 0.000000 - 0.056880 0.998204 -0.018783 0.000000 - -0.026225 0.020301 0.999450 0.000000 - - - - 0.160671 -0.092306 -0.767547 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 79 - 9 - 0 - 6 - -1 - -1 - 0 - -1.311379 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999720 -0.018640 0.014590 0.000000 - 0.018153 0.999296 0.032820 0.000000 - -0.015192 -0.032546 0.999355 0.000000 - - - - -0.394871 0.722561 -0.817239 0.000000 - - - - - - 0.999737 0.022915 -0.001317 0.000000 - -0.022916 0.999737 -0.000521 0.000000 - 0.001305 0.000551 0.999999 0.000000 - - - - 0.043577 -0.613353 0.541286 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 121 - 79 - 0 - 6 - -1 - -1 - 0 - -0.480381 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999998 -0.000190 -0.002053 0.000000 - 0.000197 0.999994 0.003537 0.000000 - 0.002052 -0.003537 0.999992 0.000000 - - - - 0.067992 -0.697016 0.595567 0.000000 - - - - - - 0.999720 -0.018640 0.014590 0.000000 - 0.018153 0.999296 0.032820 0.000000 - -0.015192 -0.032546 0.999355 0.000000 - - - - -1.084769 -0.158835 0.027893 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 123 - 55 - 0 - 6 - -1 - -1 - 0 - 0.559885 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999994 -0.002760 -0.002020 0.000000 - 0.002705 0.999637 -0.026810 0.000000 - 0.002093 0.026805 0.999638 0.000000 - - - - -0.834968 0.769494 -0.279048 0.000000 - - - - - - 0.999278 0.033193 -0.018458 0.000000 - -0.033448 0.999347 -0.013654 0.000000 - 0.017993 0.014262 0.999736 0.000000 - - - - 0.174020 -0.500104 -0.136622 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 67 - 89 - 0 - 6 - -1 - -1 - 0 - -0.214666 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999996 0.000931 0.002529 0.000000 - -0.000904 0.999945 -0.010481 0.000000 - -0.002539 0.010479 0.999942 0.000000 - - - - -1.184629 0.855819 0.449632 0.000000 - - - - - - 0.998037 -0.056356 0.027333 0.000000 - 0.056880 0.998204 -0.018783 0.000000 - -0.026225 0.020301 0.999450 0.000000 - - - - 0.560713 -0.503984 0.067069 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 159 - 7 - 0 - 6 - -1 - -1 - 0 - 0.476677 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999677 0.025179 -0.003513 0.000000 - -0.025210 0.999639 -0.009304 0.000000 - 0.003277 0.009389 0.999951 0.000000 - - - - -1.031419 -0.198710 0.163638 0.000000 - - - - - - 0.999657 -0.006302 -0.025418 0.000000 - 0.005793 0.999782 -0.020059 0.000000 - 0.025539 0.019905 0.999476 0.000000 - - - - 0.547859 -0.668573 -0.407400 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 33 - 139 - 0 - 6 - -1 - -1 - 0 - -0.136029 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999950 0.009457 0.003363 0.000000 - -0.009384 0.999730 -0.021252 0.000000 - -0.003563 0.021220 0.999768 0.000000 - - - - 1.236913 -0.226451 -0.551620 0.000000 - - - - - - 0.999607 -0.011977 -0.025333 0.000000 - 0.010283 0.997768 -0.065982 0.000000 - 0.026067 0.065695 0.997499 0.000000 - - - - -0.382169 -0.654208 -0.931227 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 67 - 79 - 0 - 6 - -1 - -1 - 0 - -0.826043 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999996 0.000974 0.002457 0.000000 - -0.000947 0.999938 -0.011058 0.000000 - -0.002468 0.011055 0.999936 0.000000 - - - - -1.505095 0.542423 0.900927 0.000000 - - - - - - 0.999717 -0.018723 0.014667 0.000000 - 0.018233 0.999294 0.032850 0.000000 - -0.015272 -0.032574 0.999353 0.000000 - - - - 0.340514 0.396384 1.011295 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 163 - 97 - 0 - 6 - -1 - -1 - 0 - 0.970185 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.997605 0.062113 -0.030440 0.000000 - -0.058457 0.992320 0.109011 0.000000 - 0.036977 -0.106970 0.993574 0.000000 - - - - 1.476443 0.486329 0.913734 0.000000 - - - - - - 0.999910 0.008640 -0.010282 0.000000 - -0.008786 0.999860 -0.014238 0.000000 - 0.010158 0.014327 0.999846 0.000000 - - - - -1.182305 0.021136 -0.893970 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 159 - 37 - 0 - 6 - -1 - -1 - 0 - 0.266430 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999704 0.024114 -0.003331 0.000000 - -0.024143 0.999671 -0.008677 0.000000 - 0.003121 0.008755 0.999957 0.000000 - - - - 0.000383 0.217391 0.660933 0.000000 - - - - - - 0.999871 0.013062 -0.009312 0.000000 - -0.012995 0.999890 0.007150 0.000000 - 0.009404 -0.007028 0.999931 0.000000 - - - - -0.705906 -1.085847 0.679040 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 143 - 61 - 0 - 6 - -1 - -1 - 0 - 0.188686 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999826 0.007522 0.017041 0.000000 - -0.007393 0.999944 -0.007605 0.000000 - -0.017097 0.007477 0.999826 0.000000 - - - - 0.225340 -0.211301 -0.771730 0.000000 - - - - - - 0.999874 0.015442 -0.003740 0.000000 - -0.015468 0.999855 -0.007127 0.000000 - 0.003629 0.007183 0.999968 0.000000 - - - - -0.204876 -0.630318 0.438494 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 63 - 135 - 0 - 6 - -1 - -1 - 0 - 0.029585 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999649 -0.018581 0.018902 0.000000 - 0.019148 0.999359 -0.030263 0.000000 - -0.018327 0.030614 0.999363 0.000000 - - - - 0.560866 0.853232 0.509590 0.000000 - - - - - - 0.999897 0.007362 0.012319 0.000000 - -0.007525 0.999884 0.013219 0.000000 - -0.012221 -0.013311 0.999837 0.000000 - - - - -1.342288 0.980490 0.900231 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 57 - 11 - 0 - 6 - -1 - -1 - 0 - -0.449149 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999049 0.008960 -0.042662 0.000000 - -0.008848 0.999957 0.002812 0.000000 - 0.042685 -0.002432 0.999086 0.000000 - - - - -0.991636 0.441656 1.038285 0.000000 - - - - - - 0.999897 0.005133 -0.013414 0.000000 - -0.004951 0.999896 0.013546 0.000000 - 0.013482 -0.013479 0.999818 0.000000 - - - - 0.862090 -0.070671 0.825420 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 57 - 145 - 0 - 6 - -1 - -1 - 0 - 0.656874 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999050 0.008719 -0.042702 0.000000 - -0.008611 0.999959 0.002706 0.000000 - 0.042724 -0.002335 0.999084 0.000000 - - - - -0.840727 0.586269 1.087485 0.000000 - - - - - - 0.999958 0.008634 -0.003026 0.000000 - -0.008756 0.999047 -0.042765 0.000000 - 0.002654 0.042789 0.999081 0.000000 - - - - 1.078610 -0.895109 0.204945 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 159 - 39 - 0 - 6 - -1 - -1 - 0 - -0.014030 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999721 0.023373 -0.003271 0.000000 - -0.023400 0.999690 -0.008475 0.000000 - 0.003071 0.008550 0.999959 0.000000 - - - - -0.633000 0.660746 -0.496322 0.000000 - - - - - - 0.999930 0.009915 -0.006511 0.000000 - -0.009995 0.999874 -0.012334 0.000000 - 0.006388 0.012398 0.999903 0.000000 - - - - 0.423656 -0.657524 -0.853168 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 31 - 51 - 0 - 6 - -1 - -1 - 0 - 0.272670 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999987 -0.004228 -0.002975 0.000000 - 0.004302 0.999667 0.025433 0.000000 - 0.002867 -0.025445 0.999672 0.000000 - - - - 1.010839 -0.391663 0.631610 0.000000 - - - - - - 0.997428 0.069505 0.017479 0.000000 - -0.070065 0.996972 0.033730 0.000000 - -0.015081 -0.034868 0.999278 0.000000 - - - - -0.677447 -0.408883 -0.381499 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 11 - 145 - 0 - 6 - -1 - -1 - 0 - -0.327312 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999903 0.003826 -0.013390 0.000000 - -0.003636 0.999893 0.014160 0.000000 - 0.013442 -0.014109 0.999810 0.000000 - - - - 0.450811 1.150341 -0.303628 0.000000 - - - - - - 0.999966 0.007632 -0.003111 0.000000 - -0.007759 0.999037 -0.043180 0.000000 - 0.002778 0.043203 0.999062 0.000000 - - - - 0.508511 0.249434 -0.899110 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 93 - 95 - 0 - 6 - -1 - -1 - 0 - 0.228531 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.998301 -0.058241 -0.001840 0.000000 - 0.058269 0.997981 0.025274 0.000000 - 0.000364 -0.025339 0.999679 0.000000 - - - - -0.077853 -0.699305 -1.383325 0.000000 - - - - - - 0.999460 0.027820 -0.017473 0.000000 - -0.028941 0.997294 -0.067582 0.000000 - 0.015545 0.068051 0.997561 0.000000 - - - - -0.557222 -0.587851 1.100715 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 5 - 51 - 0 - 6 - -1 - -1 - 0 - -0.121320 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.999704 -0.024277 0.001611 0.000000 - 0.024235 0.999453 0.022485 0.000000 - -0.002156 -0.022440 0.999746 0.000000 - - - - -0.031808 -0.020050 1.339074 0.000000 - - - - - - 0.997428 0.069505 0.017479 0.000000 - -0.070065 0.996972 0.033730 0.000000 - -0.015081 -0.034868 0.999278 0.000000 - - - - -0.408879 -0.482817 -0.699488 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 51 - 13 - 0 - 6 - -1 - -1 - 0 - 0.151669 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.997418 0.069685 0.017351 0.000000 - -0.070246 0.996946 0.034118 0.000000 - -0.014920 -0.035249 0.999267 0.000000 - - - - -0.846216 0.300711 0.466160 0.000000 - - - - - - 0.999694 0.003390 -0.024494 0.000000 - -0.003026 0.999885 0.014888 0.000000 - 0.024542 -0.014810 0.999589 0.000000 - - - - 0.790366 -0.405384 0.724201 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 57 - 163 - 0 - 6 - -1 - -1 - 0 - -0.039658 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.371027 0.917910 -0.140645 0.000000 - -0.399368 0.020991 -0.916551 0.000000 - -0.838358 0.396234 0.374372 0.000000 - - - - 0.214166 0.225124 0.783153 0.000000 - - - - - - 0.337445 0.924316 -0.178245 0.000000 - -0.501924 0.016481 -0.864755 0.000000 - -0.796369 0.381273 0.469498 0.000000 - - - - -0.774225 -0.357658 -0.276467 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 109 - 113 - 0 - 6 - -1 - -1 - 0 - -0.084688 - 0.300000 - 1 - 100 - 45.000000 - 1 - - - - - 0.331731 0.937140 -0.108269 0.000000 - -0.373095 0.024918 -0.927459 0.000000 - -0.866461 0.348062 0.357908 0.000000 - - - - 0.115618 -1.142983 -0.887744 0.000000 - - - - - - 0.339873 0.933090 -0.117597 0.000000 - -0.382533 0.022927 -0.923658 0.000000 - -0.859160 0.358911 0.364730 0.000000 - - - - 1.807837 -1.587922 0.609291 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 1 - 1 - - - - 0 - 28 - 0 0 0 0 - - - 0.000000 0.000000 0.000000 0.000000 - - - 0.000000 1.000000 0.000000 0.000000 - - 0.000000 - 0 0 0 0 - - - - 0 - 31 - 0 0 0 0 - - 315 - 1 - 0.000000 - - - - - - 0.737321 -0.000198 -0.675542 0.000000 - 0.097020 0.989664 0.105602 0.000000 - 0.668539 -0.143404 0.729720 0.000000 - - - - -0.074712 -0.143958 0.022858 0.000000 - - - 316 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 317 - 0 - 42 - 0 0 0 0 - - - 0.596313 -0.309567 1.106486 0.000000 - 0.643806 -0.177254 0.154638 0.000000 - 0.831410 -0.111997 1.007067 0.000000 - 0.423118 -0.382422 1.138688 0.000000 - 0.150360 -0.364670 0.035505 0.000000 - 0.089922 -0.518111 1.205917 0.000000 - -0.065866 -0.529368 1.207362 0.000000 - -0.378625 -0.386715 -0.076780 0.000000 - -0.445276 -0.552009 1.217677 0.000000 - -0.550605 -0.527907 1.203142 0.000000 - -0.643938 -0.442624 0.842944 0.000000 - -0.891385 -0.241135 -0.171223 0.000000 - -0.871448 -0.287719 0.015864 0.000000 - -0.920838 -0.231840 -0.195754 0.000000 - -1.080077 0.054311 -0.869217 0.000000 - -1.098567 0.076301 -0.851978 0.000000 - -1.075426 0.079097 -0.896598 0.000000 - -0.747485 -0.100814 -0.991281 0.000000 - -0.531135 -0.203898 -1.081084 0.000000 - -0.237642 -0.264237 -1.169412 0.000000 - 0.099648 -0.328022 -1.275779 0.000000 - 0.282612 -0.317081 -1.315009 0.000000 - 0.437516 -0.317272 -1.348398 0.000000 - 0.626668 -0.308415 -1.242323 0.000000 - 0.725284 -0.269717 -1.155176 0.000000 - 1.036329 -0.138061 -0.892418 0.000000 - 1.058200 0.070749 0.027147 0.000000 - 1.146224 -0.027736 -0.746670 0.000000 - 1.202566 0.018216 -0.681935 0.000000 - 1.012291 0.091243 0.263587 0.000000 - 0.858097 -0.091489 0.997485 0.000000 - 1.015917 0.069825 0.561513 0.000000 - -1.057152 0.124347 -0.849862 0.000000 - -0.588774 0.532716 0.321014 0.000000 - -0.491743 0.619486 0.232160 0.000000 - -0.964025 0.211063 -0.835323 0.000000 - -0.500202 0.338036 0.751803 0.000000 - 0.029345 0.625646 0.615315 0.000000 - -0.062352 0.681505 0.446670 0.000000 - 0.924138 0.155257 -0.706661 0.000000 - 0.246133 0.002639 -1.183328 0.000000 - 0.763646 0.183583 0.840469 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 318 - 1 - 0.000000 - - - - - - 0.499110 -0.493079 0.712575 0.000000 - 0.604727 0.787168 0.121126 0.000000 - -0.620641 0.370458 0.691061 0.000000 - - - - 0.089376 0.104299 -0.078941 0.000000 - - - 319 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.831410 -0.111997 1.007067 0.000000 - - 0.040000 - 0 - - 320 - 0 - 32 - 0 0 0 0 - - - 0.410384 -0.291683 -0.422583 0.000000 - -0.146526 0.204817 -0.657320 0.000000 - 0.401662 -0.101049 -0.427067 0.000000 - -0.312712 -1.072996 -0.211322 0.000000 - -0.301037 -1.013021 -0.256365 0.000000 - -0.280210 -1.045215 -0.231604 0.000000 - -0.299865 -0.860814 -0.333081 0.000000 - -0.081437 -0.971186 -0.265043 0.000000 - -0.302923 -0.334494 -0.592421 0.000000 - 0.281833 -0.840598 -0.319615 0.000000 - 0.402071 -0.793700 -0.310932 0.000000 - -0.302138 -0.291562 -0.602830 0.000000 - 0.400089 -0.699885 -0.327678 0.000000 - -0.300214 -0.046996 -0.660726 0.000000 - -0.289753 0.302915 -0.678564 0.000000 - -0.294456 0.355784 -0.676432 0.000000 - -0.286270 0.878632 -0.562647 0.000000 - 0.159255 0.626722 -0.509626 0.000000 - -0.282738 0.971590 -0.546108 0.000000 - -0.294065 0.959934 -0.553997 0.000000 - -0.310502 0.956176 -0.546933 0.000000 - 0.331063 0.856657 -0.332182 0.000000 - 0.379740 0.492353 -0.408213 0.000000 - 0.361112 0.855564 -0.315227 0.000000 - 0.388935 0.416179 -0.423057 0.000000 - -0.253115 0.538029 0.782402 0.000000 - -0.244842 0.555385 0.803444 0.000000 - -0.242751 0.540194 0.816696 0.000000 - -0.305532 -0.994030 0.179649 0.000000 - 0.232044 -0.695319 0.519626 0.000000 - 0.121245 0.501817 0.939261 0.000000 - -0.258828 0.525195 0.777583 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 321 - 1 - 0.000000 - - - - - - 0.961986 -0.038364 0.270391 0.000000 - 0.099073 0.971660 -0.214618 0.000000 - -0.254494 0.233248 0.938524 0.000000 - - - - 0.197784 0.147631 0.070011 0.000000 - - - 322 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.402071 -0.793700 -0.310932 0.000000 - - 0.040000 - 0 - - 323 - 0 - 35 - 0 0 0 0 - - - 0.072488 0.292632 -1.317285 0.000000 - -0.022874 0.592725 0.512022 0.000000 - 0.481618 0.584783 0.315911 0.000000 - 0.119963 0.291453 -1.329191 0.000000 - -0.402954 0.282573 -1.215855 0.000000 - -0.462269 0.265744 -1.184262 0.000000 - -0.494933 0.435279 0.725359 0.000000 - -0.871796 0.129517 -0.982222 0.000000 - -1.001108 0.036240 -0.870254 0.000000 - -0.914152 0.091316 -0.445417 0.000000 - -0.948729 0.073766 -0.911174 0.000000 - -0.689950 0.298907 0.834273 0.000000 - -0.407252 0.455154 0.969429 0.000000 - -0.642434 0.290991 1.045011 0.000000 - -0.353105 0.490766 0.958187 0.000000 - 0.091857 0.637451 0.860874 0.000000 - 0.185402 0.665258 0.845027 0.000000 - 0.530930 0.643942 0.585995 0.000000 - 0.381991 0.674682 0.810246 0.000000 - 0.579489 0.635245 0.514021 0.000000 - 0.822559 0.469336 0.162319 0.000000 - 0.591319 0.171601 -1.312346 0.000000 - 0.820254 0.478071 0.160854 0.000000 - 0.602482 0.172085 -1.321233 0.000000 - 0.184474 -0.661480 -0.445488 0.000000 - 0.293513 -0.869981 0.136834 0.000000 - -0.335577 -0.647084 0.459345 0.000000 - -0.966679 0.001816 -0.820019 0.000000 - 0.500563 -0.242168 -0.901465 0.000000 - 0.418675 -0.818617 0.202325 0.000000 - 0.264394 -0.221569 0.970405 0.000000 - -0.414372 -0.167564 1.081723 0.000000 - 0.531432 -0.550742 0.538466 0.000000 - 0.631008 -0.209819 0.580920 0.000000 - 0.393338 -0.028316 0.913643 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 324 - 1 - 0.000000 - - - - - - 0.747553 0.454401 -0.484443 0.000000 - -0.169682 0.835810 0.522139 0.000000 - 0.642163 -0.308125 0.701916 0.000000 - - - - -0.065133 -0.040087 -0.017158 0.000000 - - - 325 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.481618 0.584783 0.315911 0.000000 - - 0.040000 - 0 - - 326 - 0 - 39 - 0 0 0 0 - - - -0.022812 -0.844826 -0.904981 0.000000 - -0.004545 -0.837416 -0.897980 0.000000 - 0.126167 -0.856493 -0.745248 0.000000 - 0.032309 -0.965994 -0.569593 0.000000 - -0.121244 -0.969102 -0.699102 0.000000 - 0.168920 -0.864897 -0.696896 0.000000 - 0.495179 -0.747109 -0.360836 0.000000 - 0.396296 -0.834006 -0.191573 0.000000 - 0.541746 -0.727914 -0.317078 0.000000 - 0.827435 -0.456875 -0.070349 0.000000 - 0.653225 -0.572473 0.206293 0.000000 - 0.905384 -0.380840 -0.008586 0.000000 - 1.213429 0.105673 0.171303 0.000000 - 0.861436 -0.194963 0.447960 0.000000 - 1.102831 -0.057057 0.123691 0.000000 - 0.772408 -0.266654 0.522845 0.000000 - 0.573509 -0.612860 0.779051 0.000000 - 0.530352 -0.714906 0.692592 0.000000 - 0.474164 -0.858053 0.581661 0.000000 - 0.309231 -1.024483 0.347799 0.000000 - 0.355206 -0.990911 0.456376 0.000000 - 0.238919 -1.084627 0.154403 0.000000 - -0.010663 -1.146148 -0.191940 0.000000 - -0.093528 -1.166744 -0.301615 0.000000 - -0.252390 -1.170646 -0.422473 0.000000 - -0.054475 1.345767 -0.277811 0.000000 - 0.874494 0.734852 0.003788 0.000000 - 1.164669 0.501073 0.005933 0.000000 - 0.806737 0.612274 -0.397654 0.000000 - -0.140870 1.417651 -0.279713 0.000000 - -0.077231 1.395026 0.120023 0.000000 - -0.664740 0.201212 0.952238 0.000000 - -0.712390 0.574783 -0.573177 0.000000 - -1.054371 -0.205300 0.155014 0.000000 - -0.775000 0.459809 -0.611802 0.000000 - -1.064406 -0.217065 0.140009 0.000000 - -0.435366 -0.006186 0.939490 0.000000 - -0.538975 -0.956918 -0.153960 0.000000 - 0.039522 -0.886270 0.435089 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 327 - 1 - 0.000000 - - - - - - 0.728556 -0.436749 0.527690 0.000000 - 0.683375 0.516242 -0.516229 0.000000 - -0.046954 0.736712 0.674574 0.000000 - - - - 0.234213 -0.012225 -0.237108 0.000000 - - - 328 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.126167 -0.856493 -0.745248 0.000000 - - 0.040000 - 0 - - 329 - 0 - 26 - 0 0 0 0 - - - -0.249704 -0.586694 1.038860 0.000000 - -0.212097 -0.590698 1.040961 0.000000 - -0.224462 -0.497632 1.049651 0.000000 - -0.233574 -0.592160 1.039131 0.000000 - -0.230562 -0.550755 1.035753 0.000000 - -0.227830 -0.480073 1.049466 0.000000 - 0.142967 0.483213 1.150505 0.000000 - 0.125713 0.480541 1.164587 0.000000 - 0.115695 0.489935 1.142920 0.000000 - -0.052507 0.474350 1.271099 0.000000 - -0.008301 0.248330 1.179300 0.000000 - -0.049945 0.518983 1.290845 0.000000 - -0.225766 -0.441146 1.049085 0.000000 - -0.152542 -0.338777 1.040126 0.000000 - 0.578306 0.116731 -1.072736 0.000000 - 0.712743 0.143241 -0.921227 0.000000 - 0.607236 -0.016820 -0.982974 0.000000 - 0.512924 0.063280 -1.114486 0.000000 - 0.768596 0.303741 0.170359 0.000000 - 0.297529 -0.552953 0.316760 0.000000 - 0.426291 -0.357225 -0.587797 0.000000 - -0.292565 -0.037558 -1.147663 0.000000 - -0.464113 0.186177 -0.972360 0.000000 - -0.317455 -0.033122 -1.142580 0.000000 - -0.858239 0.030396 -0.796152 0.000000 - -0.813362 0.253130 -0.739476 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 330 - 1 - 0.000000 - - - - - - 0.819801 -0.395231 0.414390 0.000000 - 0.078724 0.794551 0.602072 0.000000 - -0.567212 -0.460957 0.682488 0.000000 - - - - -0.164444 -0.053678 -0.029805 0.000000 - - - 331 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - -0.008301 0.248330 1.179300 0.000000 - - 0.040000 - 0 - - 332 - 0 - 35 - 0 0 0 0 - - - -0.838835 -0.335560 0.968081 0.000000 - -0.900231 -0.418889 0.784926 0.000000 - 0.660936 -0.319713 0.481776 0.000000 - -0.318237 -0.311157 0.837381 0.000000 - -0.943584 -0.445233 0.618130 0.000000 - 0.504457 -0.397544 -0.030751 0.000000 - -1.041692 -0.496189 0.266098 0.000000 - -1.068753 -0.469685 0.109274 0.000000 - 0.325966 -0.307600 -0.533932 0.000000 - -1.139169 -0.402216 -0.255887 0.000000 - -1.046948 0.002858 -0.890883 0.000000 - -1.176697 -0.022363 -0.853741 0.000000 - -1.188264 0.028638 -0.913991 0.000000 - -0.292307 -0.126541 -0.868619 0.000000 - -1.183270 -0.146076 -0.730737 0.000000 - -0.097789 -0.148950 -0.847233 0.000000 - -1.150027 -0.328068 -0.397508 0.000000 - 0.185765 -0.181383 -0.816098 0.000000 - 0.633829 -0.220064 -0.751005 0.000000 - 0.803826 -0.226333 -0.728650 0.000000 - 1.232373 -0.193782 -0.588524 0.000000 - 1.548316 -0.163189 -0.488908 0.000000 - 1.765561 -0.091394 -0.354719 0.000000 - 2.005334 0.005697 -0.142536 0.000000 - 1.910449 -0.043788 -0.265710 0.000000 - 1.730707 0.031243 0.208917 0.000000 - 2.067529 0.090444 0.006800 0.000000 - 2.094359 0.110454 0.059536 0.000000 - 2.085881 0.116583 0.081784 0.000000 - 0.697276 -0.276455 0.608629 0.000000 - -0.438373 0.833122 0.188403 0.000000 - -0.980885 0.371680 -0.460290 0.000000 - -0.718668 0.613059 0.369079 0.000000 - 1.969284 0.113278 -0.014365 0.000000 - 1.256720 0.390482 0.096433 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 333 - 1 - 0.000000 - - - - - - 0.919658 0.024893 -0.391930 0.000000 - 0.182755 0.856216 0.483214 0.000000 - 0.347605 -0.516019 0.782876 0.000000 - - - - 0.081378 0.250998 -0.138542 0.000000 - - - 334 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 1.765561 -0.091394 -0.354719 0.000000 - - 0.040000 - 0 - - 335 - 0 - 45 - 0 0 0 0 - - - -0.905591 1.085954 -0.329751 0.000000 - 0.772413 0.962819 -0.815490 0.000000 - -0.612763 0.904455 -0.681011 0.000000 - -1.341478 1.245149 0.216855 0.000000 - -1.370582 1.223408 0.194309 0.000000 - -1.360537 1.234686 0.261273 0.000000 - 0.569831 0.512615 1.306878 0.000000 - 0.539956 0.568212 1.285468 0.000000 - 0.547653 0.578372 1.274587 0.000000 - 0.539520 0.639112 1.197901 0.000000 - 0.385020 0.699279 1.179960 0.000000 - 0.548479 0.910185 0.852451 0.000000 - 0.034416 0.950114 0.982318 0.000000 - 0.560991 0.943540 0.759017 0.000000 - -0.368353 1.101061 0.751281 0.000000 - 0.631771 1.098259 0.306833 0.000000 - -0.592088 1.178041 0.629515 0.000000 - 0.645986 1.100642 0.244087 0.000000 - -1.243901 1.242112 0.258964 0.000000 - 0.781722 1.113668 -0.297624 0.000000 - -1.269762 1.239667 0.251355 0.000000 - 0.783409 1.112138 -0.305127 0.000000 - -1.020337 1.123779 -0.180305 0.000000 - 0.811987 1.089488 -0.392653 0.000000 - 0.856364 0.973603 -0.783216 0.000000 - 0.904851 0.996527 -0.677906 0.000000 - 0.845737 0.967444 -0.808646 0.000000 - 0.656856 0.767934 -1.147639 0.000000 - 0.598883 0.697747 -1.247072 0.000000 - -0.388254 0.757393 -0.956428 0.000000 - 0.595622 0.700043 -1.247532 0.000000 - -0.226888 0.597363 -1.133648 0.000000 - 0.111025 0.207949 -1.503598 0.000000 - 0.342077 0.257149 -1.556253 0.000000 - 0.229209 -0.055964 -1.653649 0.000000 - 0.047925 0.304673 -1.445027 0.000000 - 0.358591 0.286515 -1.545565 0.000000 - 1.008512 -0.550796 0.757363 0.000000 - 0.778659 -0.298028 1.443483 0.000000 - -0.558342 -1.254844 0.691743 0.000000 - 0.209110 -1.563367 -0.551456 0.000000 - -1.116206 -0.730147 0.369149 0.000000 - -1.016754 -1.066245 0.330725 0.000000 - -1.029452 -1.067330 0.418921 0.000000 - 0.041044 -1.496372 -1.068261 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 336 - 1 - 0.000000 - - - - - - 0.530805 0.632459 0.564129 0.000000 - -0.581363 0.756069 -0.300627 0.000000 - -0.616655 -0.168390 0.769014 0.000000 - - - - -0.042381 0.288483 0.147835 0.000000 - - - 337 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - -0.612763 0.904455 -0.681011 0.000000 - - 0.040000 - 0 - - 338 - 0 - 64 - 0 0 0 0 - - - 0.067742 0.614521 -1.807078 0.000000 - 0.058145 0.579170 -1.807656 0.000000 - 0.081315 0.611910 -1.798810 0.000000 - 0.000677 0.441834 -1.816566 0.000000 - -1.136187 0.272400 0.063542 0.000000 - 0.032415 0.844738 -1.529120 0.000000 - -0.004395 0.439362 -1.814491 0.000000 - -1.180055 -0.267324 0.064113 0.000000 - -0.123189 -0.111188 -1.691315 0.000000 - -0.129784 -0.185122 -1.653621 0.000000 - -1.070628 -0.792870 0.135631 0.000000 - -0.138130 -0.658336 -1.421795 0.000000 - 0.602283 -1.792770 0.170117 0.000000 - 0.618022 -1.786751 0.149875 0.000000 - 0.266350 -1.770968 0.215472 0.000000 - 0.438803 -1.755706 -0.060574 0.000000 - 0.138518 -1.742832 0.260242 0.000000 - 0.319667 -1.660930 -0.268029 0.000000 - -0.151241 -1.683233 0.356161 0.000000 - -0.357199 -1.594713 0.286550 0.000000 - 0.157071 -1.523885 -0.564409 0.000000 - -0.380220 -1.576996 0.280600 0.000000 - 0.041439 -1.311278 -0.828139 0.000000 - -0.799769 -1.248970 0.209001 0.000000 - -0.041727 -1.145463 -1.033553 0.000000 - -0.800745 -1.247844 0.207497 0.000000 - -0.115142 -0.796250 -1.311188 0.000000 - -0.858290 -1.174411 0.211325 0.000000 - -1.110417 -0.790874 0.251095 0.000000 - -1.126215 -0.764269 0.259586 0.000000 - -1.290206 -0.278773 0.407073 0.000000 - -1.317537 -0.193808 0.438989 0.000000 - -1.305070 0.217277 0.516601 0.000000 - -1.329803 -0.031292 0.512076 0.000000 - -1.326800 0.130272 0.554476 0.000000 - -1.279383 0.326351 0.468783 0.000000 - -1.063478 0.747482 0.385196 0.000000 - -0.943379 0.773407 0.133951 0.000000 - -1.031066 0.810479 0.375526 0.000000 - -0.710795 1.181516 0.426151 0.000000 - -0.620589 1.186641 0.268407 0.000000 - -0.679022 1.218088 0.434566 0.000000 - -0.299899 1.480570 0.615484 0.000000 - -0.199490 1.471696 0.453712 0.000000 - -0.278427 1.499645 0.622866 0.000000 - -0.275123 1.498555 0.624233 0.000000 - 0.077679 1.550048 0.549979 0.000000 - 0.425994 1.626017 0.275395 0.000000 - 0.295812 1.567526 -0.003211 0.000000 - 0.132464 1.570540 0.522198 0.000000 - 0.198198 1.525905 -0.229293 0.000000 - 0.130530 1.416040 -0.499135 0.000000 - 0.047844 1.268527 -0.861603 0.000000 - 0.039824 1.172333 -1.016727 0.000000 - 0.024553 0.884544 -1.483214 0.000000 - 1.362316 0.025138 0.458217 0.000000 - 1.391814 -0.115812 0.370119 0.000000 - 0.781498 0.533932 -0.770093 0.000000 - 0.811746 1.179605 0.228606 0.000000 - -0.165785 1.068714 1.027354 0.000000 - -0.201009 0.466143 1.402669 0.000000 - 0.187913 -0.023863 1.381222 0.000000 - -1.278330 0.117882 0.602969 0.000000 - 0.190660 -1.281242 0.747143 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 339 - 1 - 0.000000 - - - - - - 0.982456 0.020968 0.185312 0.000000 - 0.010904 0.985502 -0.169316 0.000000 - -0.186175 0.168366 0.967983 0.000000 - - - - -0.185187 0.007059 0.060775 0.000000 - - - 340 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - -1.110417 -0.790874 0.251095 0.000000 - - 0.040000 - 0 - - 341 - 0 - 24 - 0 0 0 0 - - - -0.137758 -0.545029 -0.530415 0.000000 - -0.392292 -0.494327 -0.359440 0.000000 - -0.119579 -0.473242 -0.564437 0.000000 - -0.794579 -0.212278 -0.178904 0.000000 - -0.064762 -0.283993 -0.669716 0.000000 - -0.824116 -0.429000 -0.084139 0.000000 - -0.761597 -0.064285 -0.199468 0.000000 - 0.131194 0.100433 -0.791804 0.000000 - -0.680362 0.325083 -0.242895 0.000000 - 0.171524 0.186000 -0.818187 0.000000 - 0.178711 0.181401 -0.828878 0.000000 - 0.177418 0.197450 -0.824325 0.000000 - -0.627766 0.480442 -0.214916 0.000000 - -0.306044 0.500301 -0.402022 0.000000 - -0.569314 0.697320 -0.166838 0.000000 - -0.365284 0.387573 0.563555 0.000000 - -0.067261 0.779914 0.491815 0.000000 - -0.567313 0.694537 -0.167826 0.000000 - 1.193845 0.205441 0.124108 0.000000 - -0.543830 -0.367646 0.604430 0.000000 - -0.471569 -0.492462 0.584267 0.000000 - 0.625885 -0.694403 0.275877 0.000000 - 1.192557 0.169848 0.123098 0.000000 - -0.584045 -0.475939 0.587582 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 342 - 1 - 0.000000 - - - - - - 0.930531 0.247449 -0.269964 0.000000 - -0.317436 0.912601 -0.257671 0.000000 - 0.182609 0.325467 0.927753 0.000000 - - - - -0.067546 -0.072300 -0.147572 0.000000 - - - 343 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 344 - 0 - 55 - 0 0 0 0 - - - -0.589175 -1.681216 -0.026649 0.000000 - 0.622146 -1.552234 -1.114926 0.000000 - -0.325464 -1.712240 0.440229 0.000000 - -0.588194 -1.681474 -0.024965 0.000000 - -0.778786 -1.510182 -0.429829 0.000000 - -0.157427 -1.532325 -0.734341 0.000000 - -0.582683 -1.685705 -0.023038 0.000000 - 0.528499 -1.563314 -1.076542 0.000000 - 0.609699 -1.578101 -1.073618 0.000000 - 0.626630 -1.580517 -1.075327 0.000000 - 0.621743 -1.574369 -1.079746 0.000000 - 0.833847 -1.601727 -1.075196 0.000000 - 0.796654 -1.585065 -0.934152 0.000000 - 0.720810 -1.625968 -0.526065 0.000000 - 0.669690 -1.605643 -0.278770 0.000000 - -0.051958 -1.583488 0.889158 0.000000 - 0.560422 -1.541519 0.321837 0.000000 - 0.382728 -1.018645 1.425591 0.000000 - 0.233476 -1.310434 1.250354 0.000000 - 0.421455 -1.291051 1.058200 0.000000 - 0.234953 -1.312063 1.248880 0.000000 - 0.454438 -1.354897 0.875893 0.000000 - 0.156642 -1.385360 1.168042 0.000000 - -0.088185 -1.611074 0.913546 0.000000 - -0.102445 -1.617852 0.904768 0.000000 - -0.428196 -1.742037 0.549171 0.000000 - -0.416095 -1.745433 0.577901 0.000000 - -0.436854 -1.749164 0.502167 0.000000 - 0.364414 1.087661 1.350821 0.000000 - 0.365757 1.091566 1.364830 0.000000 - 0.384857 0.998929 1.413931 0.000000 - 0.384909 1.175386 1.258777 0.000000 - 0.333517 1.154089 1.336514 0.000000 - 0.336462 1.161510 1.332712 0.000000 - 0.464479 1.428211 0.820902 0.000000 - 0.164881 1.445534 1.028258 0.000000 - 0.514364 1.563687 0.574164 0.000000 - 0.124094 1.510482 0.959129 0.000000 - 0.579591 1.674026 0.215222 0.000000 - -0.103476 1.676056 0.622100 0.000000 - 0.669837 1.809876 -0.247049 0.000000 - -0.163855 1.716569 0.537681 0.000000 - 0.701558 1.826957 -0.422140 0.000000 - -0.433089 1.746542 0.196194 0.000000 - 0.427207 1.846154 -0.674949 0.000000 - -0.501966 1.752096 0.113651 0.000000 - 0.755425 1.858850 -0.657234 0.000000 - 0.250349 1.807633 -0.688835 0.000000 - -0.796469 1.638165 -0.209584 0.000000 - -0.383333 1.669415 -0.645800 0.000000 - -0.856993 1.613633 -0.271282 0.000000 - -0.198856 1.701392 -0.737480 0.000000 - -0.973063 1.519535 -0.361555 0.000000 - -1.199485 0.325709 -0.242378 0.000000 - -1.199692 -0.609640 -0.235665 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 345 - 1 - 0.000000 - - - - - - 0.779733 -0.449930 -0.435406 0.000000 - 0.186959 0.831001 -0.523911 0.000000 - 0.597547 0.327108 0.732078 0.000000 - - - - 0.152066 -0.033652 -0.085371 0.000000 - - - 346 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 347 - 0 - 39 - 0 0 0 0 - - - -0.678987 0.950257 -0.004246 0.000000 - -0.723739 0.928023 0.002351 0.000000 - -0.842150 0.679654 0.091838 0.000000 - -0.085393 0.448462 0.301492 0.000000 - 0.016743 0.937829 0.093149 0.000000 - -0.623377 0.968589 -0.004370 0.000000 - -0.921804 0.519193 0.149229 0.000000 - -1.013530 0.185026 0.172006 0.000000 - -0.181771 -0.082624 0.345611 0.000000 - -1.070066 -0.010470 0.181675 0.000000 - -1.071637 -0.056811 0.187948 0.000000 - -0.973966 -0.353476 0.150379 0.000000 - -0.262946 -0.603359 0.221219 0.000000 - -0.915306 -0.534265 0.126836 0.000000 - -0.574565 -0.971686 -0.029474 0.000000 - -0.320969 -1.062716 -0.059432 0.000000 - -0.523576 -1.037867 -0.054490 0.000000 - -0.301452 -1.199726 -0.160903 0.000000 - 0.113226 -1.266457 -0.145075 0.000000 - -0.044699 -1.387033 -0.297808 0.000000 - 0.216271 -1.203223 -0.054173 0.000000 - 0.441939 -0.958155 0.115435 0.000000 - 0.574658 -0.818196 0.208392 0.000000 - 0.723482 -0.553548 0.273045 0.000000 - 0.844323 -0.345486 0.320493 0.000000 - 0.924811 -0.073240 0.296959 0.000000 - 1.000211 0.169726 0.272575 0.000000 - 0.855562 0.500854 0.168560 0.000000 - 1.000503 0.205573 0.265232 0.000000 - 0.742765 0.733131 0.095077 0.000000 - 0.080273 1.133654 -0.056768 0.000000 - 0.636348 0.864103 0.026069 0.000000 - 0.237313 1.144394 -0.094870 0.000000 - -0.391857 1.021474 -0.013494 0.000000 - 0.124240 0.440167 -0.461686 0.000000 - -0.017631 0.775251 -0.399957 0.000000 - 0.207261 -0.277685 -0.472078 0.000000 - -0.679019 0.895345 -0.036482 0.000000 - -0.674231 0.892256 -0.040329 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 348 - 1 - 0.000000 - - - - - - 0.864969 -0.375837 -0.332528 0.000000 - 0.442403 0.883880 0.151777 0.000000 - 0.236871 -0.278394 0.930800 0.000000 - - - - -0.008220 0.154810 -0.080662 0.000000 - - - 349 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 350 - 0 - 48 - 0 0 0 0 - - - 0.367213 0.148594 1.615108 0.000000 - 0.728751 0.302705 -0.336181 0.000000 - -0.149120 0.311165 1.617608 0.000000 - 1.139599 -0.022407 -0.200441 0.000000 - 0.242805 0.478229 -0.497682 0.000000 - -0.944674 0.274399 0.411716 0.000000 - -0.800202 0.311926 0.640390 0.000000 - -0.270680 0.486888 -0.669141 0.000000 - -0.701809 0.368814 -0.817876 0.000000 - -0.556540 0.380274 1.038423 0.000000 - -0.468864 0.372451 1.154210 0.000000 - -0.142225 0.341866 1.587671 0.000000 - -0.103506 0.335237 1.631650 0.000000 - -0.100985 0.326332 1.643176 0.000000 - 0.331774 0.164050 1.729523 0.000000 - 0.131486 0.212627 1.894735 0.000000 - 0.364427 0.157615 1.705929 0.000000 - 0.495180 0.089092 1.571802 0.000000 - 1.066541 0.009438 0.083025 0.000000 - 0.620628 0.040819 1.453516 0.000000 - 1.145972 0.005019 -0.199272 0.000000 - 1.162076 0.005911 -0.223981 0.000000 - 1.159161 -0.017216 -0.217251 0.000000 - 1.154873 -0.009767 -0.225897 0.000000 - 0.880113 0.263330 -0.518966 0.000000 - 0.839221 0.302458 -0.567503 0.000000 - 0.553457 0.424447 -0.869416 0.000000 - 0.464812 0.459904 -0.968814 0.000000 - 0.192228 0.458669 -1.202212 0.000000 - 0.268664 0.460065 -1.170504 0.000000 - 0.028714 0.459158 -1.269780 0.000000 - -0.653121 0.349698 -0.978629 0.000000 - -0.461034 0.297749 -1.448044 0.000000 - -0.505347 0.271872 -1.471375 0.000000 - -0.681393 0.361966 -0.883241 0.000000 - -0.309348 0.349792 -1.390633 0.000000 - 0.542870 -0.371357 -0.858684 0.000000 - 0.634069 -0.349370 -0.768210 0.000000 - -0.254698 -0.752137 -0.475346 0.000000 - -0.203351 -0.670420 -0.833507 0.000000 - -0.228225 -0.665934 -0.830626 0.000000 - -0.200935 -0.673472 -0.830074 0.000000 - 0.356900 -0.198761 -1.048574 0.000000 - -0.263250 -0.430430 -1.042565 0.000000 - 0.144197 -0.152625 -1.139141 0.000000 - -0.510137 0.293268 -1.467469 0.000000 - 0.143527 -0.152366 1.627247 0.000000 - -0.474328 -0.708844 0.374591 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 351 - 1 - 0.000000 - - - - - - 0.739048 -0.645267 0.193488 0.000000 - 0.641477 0.586392 -0.494623 0.000000 - 0.205704 0.489668 0.847296 0.000000 - - - - -0.124277 -0.023173 0.170248 0.000000 - - - 352 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 353 - 0 - 48 - 0 0 0 0 - - - 0.310740 0.173688 -1.427836 0.000000 - 0.301504 0.196937 -1.411331 0.000000 - 0.044736 -0.183332 -1.698743 0.000000 - -0.403801 0.247752 -1.754959 0.000000 - 0.310589 0.173968 -1.427606 0.000000 - 0.312311 0.170235 -1.432035 0.000000 - 0.786542 0.250579 1.030478 0.000000 - 0.749602 0.252288 1.032364 0.000000 - 0.530442 0.310772 1.103972 0.000000 - 1.265245 0.094259 0.915635 0.000000 - 1.070183 0.204192 0.872194 0.000000 - 1.356999 0.045825 0.885360 0.000000 - 1.167832 0.182622 0.732024 0.000000 - 1.500589 0.061683 0.469560 0.000000 - 1.378757 0.139413 0.411338 0.000000 - 1.425505 0.012925 0.867270 0.000000 - 1.507434 0.051160 0.385635 0.000000 - 1.371228 0.129659 0.234009 0.000000 - 1.541470 0.027422 0.053130 0.000000 - 1.518725 0.033428 -0.069547 0.000000 - 1.347312 0.112042 -0.164073 0.000000 - 1.416996 0.032901 -0.265866 0.000000 - 1.151233 0.116368 -0.508072 0.000000 - 1.199793 0.017302 -0.683715 0.000000 - 0.977696 0.124612 -0.798916 0.000000 - 0.878889 -0.025162 -1.047996 0.000000 - 0.704468 -0.052461 -1.244501 0.000000 - 0.101343 -0.164999 -1.680452 0.000000 - 0.080782 -0.169414 -1.695011 0.000000 - 0.004266 -0.185581 -1.727811 0.000000 - -0.488317 0.230507 -1.786013 0.000000 - -0.486126 0.220293 -1.784639 0.000000 - 0.008097 -0.184651 -1.731731 0.000000 - -0.521790 0.280427 -1.789951 0.000000 - -0.207104 0.438369 1.224314 0.000000 - -0.200260 0.385594 1.261435 0.000000 - -0.213820 0.409690 1.239112 0.000000 - -0.134194 0.399099 1.224648 0.000000 - -0.823245 0.384976 1.174485 0.000000 - -0.731372 0.440952 1.313073 0.000000 - -0.680994 0.471689 1.328272 0.000000 - -0.821139 0.443082 0.830387 0.000000 - -0.897150 0.405217 -0.333533 0.000000 - -1.006110 0.068798 0.716692 0.000000 - -0.728798 -0.621059 0.450526 0.000000 - -0.364004 -0.563509 0.880516 0.000000 - -0.660224 -0.558163 0.071638 0.000000 - 1.399200 -0.071769 0.833307 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 354 - 1 - 0.000000 - - - - - - 0.900044 0.292528 -0.323028 0.000000 - -0.268001 0.956036 0.119044 0.000000 - 0.343650 -0.020573 0.938872 0.000000 - - - - 0.089682 -0.043406 -0.115440 0.000000 - - - 355 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 356 - 0 - 34 - 0 0 0 0 - - - 1.086981 -0.108901 0.530724 0.000000 - 1.092456 -0.100113 0.524267 0.000000 - 1.204011 -0.100275 0.082502 0.000000 - 1.216415 -0.091105 0.073867 0.000000 - 1.061298 -0.141051 0.548676 0.000000 - 0.884996 -0.461846 0.373327 0.000000 - 1.021122 -0.379231 0.078440 0.000000 - 0.841265 -0.503608 0.345795 0.000000 - 0.883440 -0.501543 0.045681 0.000000 - 0.513185 -0.800225 0.165475 0.000000 - 0.606088 -0.743616 -0.030415 0.000000 - 0.451220 -0.827505 0.143265 0.000000 - 0.472942 -0.800858 -0.086505 0.000000 - 0.026950 -1.005994 0.010090 0.000000 - 0.142197 -0.938077 -0.236247 0.000000 - 0.033253 -0.943587 -0.290070 0.000000 - -0.033683 -1.012441 -0.001534 0.000000 - -0.415280 -1.050627 -0.040138 0.000000 - 0.040952 -0.944491 -0.296411 0.000000 - -0.976315 0.769998 0.196800 0.000000 - -0.958188 0.784896 0.216957 0.000000 - -0.973784 0.788619 0.162836 0.000000 - 0.316278 0.842509 -0.300423 0.000000 - -0.027504 1.087879 -0.025507 0.000000 - 0.714170 0.604680 0.163373 0.000000 - 0.861004 0.481852 -0.073676 0.000000 - 1.079172 0.195468 -0.117920 0.000000 - 0.418572 0.423209 -0.601001 0.000000 - -1.075786 0.032172 -0.174645 0.000000 - -1.148976 0.146783 -0.085874 0.000000 - -0.020288 -0.037661 -0.688980 0.000000 - -1.183380 0.015807 -0.125330 0.000000 - -1.166252 -0.560474 0.113515 0.000000 - -0.936595 0.188994 0.480457 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 357 - 1 - 0.000000 - - - - - - 0.888870 0.064878 0.453542 0.000000 - -0.268007 0.876514 0.399869 0.000000 - -0.371593 -0.476984 0.796495 0.000000 - - - - -0.143654 0.052339 -0.171384 0.000000 - - - 358 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 359 - 0 - 36 - 0 0 0 0 - - - 1.187243 0.019130 -0.351717 0.000000 - 1.282576 -0.056208 -0.104277 0.000000 - 1.180459 -0.087498 -0.459568 0.000000 - 1.034073 0.373494 -0.056431 0.000000 - 1.069783 0.376232 0.141309 0.000000 - 1.008755 0.428900 -0.012864 0.000000 - 0.720331 0.716060 0.249294 0.000000 - 0.711490 0.719803 0.246073 0.000000 - 0.703251 0.718574 0.156737 0.000000 - 0.697880 0.729064 0.156381 0.000000 - 0.935285 0.511907 0.214585 0.000000 - 1.109265 0.378253 0.181932 0.000000 - 1.129668 0.361517 0.182798 0.000000 - 1.448681 -0.018517 0.173042 0.000000 - 1.540971 -0.129544 0.176462 0.000000 - 1.333197 -0.328612 -0.231476 0.000000 - 1.583823 -0.207402 0.181146 0.000000 - 1.631535 -0.281671 0.182320 0.000000 - 1.179415 -0.152520 -0.529054 0.000000 - 1.267509 -0.346214 -0.463971 0.000000 - -1.116167 0.387351 -0.353853 0.000000 - -0.815099 0.523657 -0.649009 0.000000 - -0.774750 0.289625 -0.880800 0.000000 - -1.159987 0.198644 -0.442763 0.000000 - -0.281502 -0.042556 -1.015794 0.000000 - 0.000282 -0.493305 -0.837839 0.000000 - -1.083275 -0.564602 0.184617 0.000000 - -1.048609 -0.555738 0.299706 0.000000 - -0.920149 0.274062 0.413812 0.000000 - -0.562492 -0.467994 0.874497 0.000000 - 0.071592 -0.401081 0.820363 0.000000 - -0.438872 -0.257916 1.001974 0.000000 - -0.441326 -0.187810 0.993439 0.000000 - -0.582116 0.273338 0.815449 0.000000 - 0.126496 0.479737 0.676944 0.000000 - 0.134916 0.482792 0.672993 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 360 - 1 - 0.000000 - - - - - - 0.815991 0.396335 -0.420806 0.000000 - -0.281474 0.908245 0.309617 0.000000 - 0.504907 -0.134199 0.852678 0.000000 - - - - 0.063921 0.174658 -0.301427 0.000000 - - - 361 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 362 - 0 - 57 - 0 0 0 0 - - - 1.292580 -0.115704 0.009470 0.000000 - 0.974122 -0.285433 -1.507742 0.000000 - 0.744918 0.171449 -1.330760 0.000000 - 0.956607 0.224854 0.262013 0.000000 - 0.380450 0.526946 -1.147946 0.000000 - 0.536850 0.420917 0.541426 0.000000 - -0.083697 0.746285 -0.977165 0.000000 - 0.074319 0.453253 0.820400 0.000000 - -0.602182 0.807959 -0.835121 0.000000 - -0.385756 0.318609 1.071640 0.000000 - 1.051911 -0.280325 -1.315669 0.000000 - 1.308896 -0.121441 -0.025152 0.000000 - 0.988113 -0.308404 -1.535603 0.000000 - 1.008096 -0.319606 -1.681336 0.000000 - 0.998576 -0.279923 -1.672951 0.000000 - 0.984966 -0.209834 -1.677387 0.000000 - 0.797147 0.179019 -1.616773 0.000000 - 0.745341 0.280812 -1.603805 0.000000 - 0.467931 0.558497 -1.485869 0.000000 - 0.377633 0.646412 -1.450918 0.000000 - 0.014921 0.809628 -1.277358 0.000000 - -0.083519 0.852582 -1.233115 0.000000 - -0.531822 0.876351 -1.001438 0.000000 - -0.594738 0.878943 -0.970911 0.000000 - -0.907888 0.755625 -0.733545 0.000000 - -0.796814 0.818777 -0.855896 0.000000 - -1.045216 0.691382 -0.571286 0.000000 - -1.065892 0.672111 -0.541139 0.000000 - -0.798334 0.030069 1.270533 0.000000 - -1.307643 0.338300 -0.015336 0.000000 - -1.226961 0.522056 -0.354918 0.000000 - -1.412855 -0.218606 0.727936 0.000000 - -1.347150 -0.212395 0.832119 0.000000 - -1.405229 -0.204596 0.693008 0.000000 - -1.195771 -0.191193 1.044187 0.000000 - -1.351749 0.089292 0.317046 0.000000 - -1.013899 -0.164241 1.303339 0.000000 - -0.987963 -0.157637 1.308225 0.000000 - -0.719712 0.027371 1.393309 0.000000 - -0.674874 0.049246 1.409343 0.000000 - -0.162188 0.253703 1.490315 0.000000 - -0.002252 0.310390 1.518627 0.000000 - 0.400666 0.377104 1.526753 0.000000 - 0.684432 0.418160 1.536481 0.000000 - 0.938493 0.398201 1.504649 0.000000 - 1.276271 0.365664 1.460806 0.000000 - 1.269883 0.374821 1.464324 0.000000 - 1.365162 0.316487 1.346818 0.000000 - 1.600548 0.180653 1.057031 0.000000 - 1.674734 0.070846 0.917121 0.000000 - 1.416240 -0.074612 0.186077 0.000000 - 1.688425 0.070463 0.901666 0.000000 - 0.124827 -0.548140 0.981170 0.000000 - 1.242119 -0.075159 1.173470 0.000000 - -0.494108 -0.896256 -0.766273 0.000000 - -0.971111 0.297295 -0.690120 0.000000 - -0.451181 -0.889747 -0.862521 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 363 - 1 - 0.000000 - - - - - - 0.785128 -0.081658 0.613927 0.000000 - 0.298411 0.918494 -0.259458 0.000000 - -0.542701 0.386911 0.745503 0.000000 - - - - -0.216586 0.091476 0.004375 0.000000 - - - 364 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 365 - 0 - 38 - 0 0 0 0 - - - 1.195942 0.549982 0.304843 0.000000 - 0.239964 0.504323 -0.422600 0.000000 - 0.181247 0.895236 -0.052628 0.000000 - 0.997960 0.760891 0.381421 0.000000 - 1.430483 0.300799 0.221726 0.000000 - 1.450415 0.164075 0.160962 0.000000 - 0.230527 0.021489 -0.667568 0.000000 - 1.484562 0.228170 0.207222 0.000000 - 1.318951 -0.126407 -0.067262 0.000000 - 1.139842 -0.384197 -0.201322 0.000000 - 0.153839 -0.505966 -0.763472 0.000000 - 0.981585 -0.617242 -0.315812 0.000000 - 0.836927 -0.779382 -0.357367 0.000000 - 0.141973 -0.568063 -0.764562 0.000000 - -0.277533 -0.489293 -0.855172 0.000000 - -0.270327 -0.491854 -0.848462 0.000000 - -0.243402 -0.399464 -0.858042 0.000000 - -0.211930 0.043006 -0.787086 0.000000 - -0.208924 0.146419 -0.769906 0.000000 - -0.283485 0.543212 -0.598528 0.000000 - -0.311770 0.664885 -0.545312 0.000000 - -0.465347 0.967434 -0.312897 0.000000 - -0.541858 1.104750 -0.206451 0.000000 - -0.361260 1.218351 0.147178 0.000000 - -0.730441 1.288714 0.035284 0.000000 - -0.744688 1.304793 0.053327 0.000000 - -0.736647 1.329441 0.086846 0.000000 - 0.102133 1.085102 0.225580 0.000000 - 0.688517 0.885159 0.331115 0.000000 - 0.969431 0.790572 0.381531 0.000000 - -1.136817 -0.731172 0.523415 0.000000 - -0.079314 -0.911225 0.630027 0.000000 - -0.005421 -0.831913 0.649318 0.000000 - -1.135210 -0.732283 0.510967 0.000000 - -1.244566 0.225538 0.300180 0.000000 - -1.215663 -0.606890 0.105025 0.000000 - -0.849533 1.207208 0.111158 0.000000 - 1.103697 0.130132 0.537789 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 366 - 1 - 0.000000 - - - - - - 0.713805 0.101503 -0.692950 0.000000 - -0.511430 0.751509 -0.416742 0.000000 - 0.478457 0.651868 0.588342 0.000000 - - - - 0.268277 0.029150 -0.011397 0.000000 - - - 367 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 368 - 0 - 34 - 0 0 0 0 - - - 0.128394 1.176994 -0.441059 0.000000 - 0.098214 1.151236 -0.402748 0.000000 - 0.134951 1.183831 -0.444649 0.000000 - -0.160291 1.064528 -0.174482 0.000000 - 0.004258 0.916231 -0.635623 0.000000 - -0.213827 1.025438 -0.146394 0.000000 - -0.038984 0.739644 -0.707105 0.000000 - -0.507647 0.697976 0.088562 0.000000 - 0.059488 -1.234180 0.227541 0.000000 - 0.005222 -1.177801 0.237457 0.000000 - 0.039349 -1.173727 0.083600 0.000000 - -0.296628 -0.919909 0.339273 0.000000 - -0.001441 -1.060277 -0.280854 0.000000 - -0.409246 -0.764078 0.389441 0.000000 - 0.000238 -0.800541 -0.813677 0.000000 - 0.005604 -0.816285 -0.808160 0.000000 - -0.692650 -0.366077 0.524488 0.000000 - -0.033292 -0.720673 -0.853919 0.000000 - -0.720979 -0.289458 0.545914 0.000000 - -0.116137 -0.291324 -0.915225 0.000000 - -0.829266 0.146927 0.566317 0.000000 - -0.133623 -0.187988 -0.931137 0.000000 - -0.856830 0.060573 0.649244 0.000000 - -0.817702 0.169745 0.538756 0.000000 - -0.126025 0.237664 -0.873836 0.000000 - -0.591201 0.604809 0.162798 0.000000 - -0.121004 0.375738 -0.856283 0.000000 - 0.248754 1.122530 -0.288475 0.000000 - 0.600111 0.933161 0.211528 0.000000 - 0.665948 0.356586 0.199588 0.000000 - 0.711288 -0.647272 0.297557 0.000000 - 0.754156 -0.560644 0.225295 0.000000 - 0.553490 0.889259 0.292133 0.000000 - 0.381045 0.529562 0.614608 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 369 - 1 - 0.000000 - - - - - - 0.970878 0.012669 -0.239241 0.000000 - 0.151980 0.739376 0.655915 0.000000 - 0.185199 -0.673173 0.715919 0.000000 - - - - 0.011299 0.150707 -0.040963 0.000000 - - - 370 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 371 - 0 - 30 - 0 0 0 0 - - - 0.967211 0.201787 0.902247 0.000000 - 1.004035 0.155460 0.903515 0.000000 - 0.962719 0.206682 0.898613 0.000000 - 0.554646 0.303098 0.837760 0.000000 - 0.912140 0.170859 0.974814 0.000000 - 0.040943 0.481274 0.749247 0.000000 - 0.085009 0.392637 0.873834 0.000000 - 0.910007 0.167580 0.978980 0.000000 - 0.057614 0.180545 1.054639 0.000000 - 0.561804 -0.081028 1.237848 0.000000 - 0.090315 -0.419733 1.424731 0.000000 - 0.146924 -0.378857 1.399054 0.000000 - -0.099214 -0.260534 1.327379 0.000000 - -0.169985 -0.360238 1.393910 0.000000 - 0.490353 -0.134448 1.291185 0.000000 - 0.024850 -0.025665 1.229300 0.000000 - 0.334969 -0.035991 -1.633820 0.000000 - 0.193410 -0.037825 -1.688709 0.000000 - 0.095701 0.065032 -1.661043 0.000000 - 0.066007 0.135321 -1.619091 0.000000 - 0.433953 0.011840 -1.573868 0.000000 - 0.247106 -0.099367 -1.711073 0.000000 - -0.925452 -0.189043 0.331781 0.000000 - -0.866400 -0.209760 0.469362 0.000000 - -0.919222 -0.164535 0.333173 0.000000 - -0.662544 -0.277456 -0.209166 0.000000 - -0.639755 0.604901 -0.126571 0.000000 - 0.667175 -0.008054 -1.258123 0.000000 - 0.265088 -0.279857 -1.539216 0.000000 - 0.006318 -0.470845 -0.969060 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 372 - 1 - 0.000000 - - - - - - 0.901322 -0.432537 0.023026 0.000000 - 0.432500 0.901608 0.006806 0.000000 - -0.023705 0.003824 0.999712 0.000000 - - - - -0.032484 0.144918 -0.056613 0.000000 - - - 373 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 374 - 0 - 28 - 0 0 0 0 - - - 0.667295 0.018419 0.204851 0.000000 - -0.075664 0.334666 -0.251745 0.000000 - 0.574943 0.014786 0.461512 0.000000 - 0.534099 0.004755 -0.269947 0.000000 - 0.180997 0.120487 -0.677388 0.000000 - 0.658997 0.001131 0.035171 0.000000 - 0.442657 0.022291 -0.496467 0.000000 - 0.240653 -0.009396 -0.862078 0.000000 - 0.138159 0.149690 -0.784455 0.000000 - 0.244462 -0.008211 -0.901247 0.000000 - 0.113805 0.180245 -0.765815 0.000000 - -0.184082 0.402577 -0.496244 0.000000 - -0.241617 0.442113 -0.448967 0.000000 - -0.291341 0.391197 0.092428 0.000000 - -0.354840 0.478066 -0.350381 0.000000 - -0.273771 0.363887 0.219914 0.000000 - 0.486726 0.006920 0.714143 0.000000 - -0.263924 0.351972 0.252142 0.000000 - 0.298868 -0.039106 0.904741 0.000000 - 0.014443 -0.025382 0.986683 0.000000 - -0.199121 0.050266 0.879472 0.000000 - -0.191527 0.030245 0.934408 0.000000 - 0.189130 -0.066944 1.027128 0.000000 - -0.430003 -0.413723 -0.023263 0.000000 - -0.406044 -0.030135 -0.328967 0.000000 - 0.081573 -0.303177 -0.786088 0.000000 - 0.067714 -0.306557 -0.780664 0.000000 - -0.390512 -0.373926 0.174964 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 375 - 1 - 0.000000 - - - - - - 0.662539 0.441647 0.604970 0.000000 - -0.669354 0.711585 0.213570 0.000000 - -0.336165 -0.546438 0.767071 0.000000 - - - - 0.070972 0.054560 -0.024852 0.000000 - - - 376 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 377 - 0 - 40 - 0 0 0 0 - - - -0.088406 -0.746036 0.553685 0.000000 - -0.161188 -0.792723 0.336471 0.000000 - -0.081333 -0.789196 0.517614 0.000000 - -0.119487 -0.290303 0.789070 0.000000 - -0.321428 -0.276799 0.374327 0.000000 - -0.121194 -0.181620 0.847019 0.000000 - -0.064081 0.230345 0.954555 0.000000 - -0.324257 0.264337 0.354563 0.000000 - -0.073376 0.328319 0.919312 0.000000 - -0.060040 0.283634 0.975345 0.000000 - -0.165138 0.746752 0.367449 0.000000 - -0.169455 0.777648 0.279137 0.000000 - -0.169033 0.768359 0.339542 0.000000 - -0.165264 0.822067 0.245440 0.000000 - -0.269964 0.964468 -0.452466 0.000000 - -0.116198 1.057284 -0.156666 0.000000 - -0.361948 0.848046 -0.465335 0.000000 - -0.295038 0.961240 -0.491270 0.000000 - -0.460459 0.527335 -0.417358 0.000000 - -0.519384 0.330172 -0.392084 0.000000 - -0.516603 -0.025874 -0.367185 0.000000 - -0.513636 -0.217606 -0.357655 0.000000 - -0.399925 -0.574104 -0.360515 0.000000 - -0.344961 -0.741599 -0.365501 0.000000 - -0.059089 -1.162660 -0.437808 0.000000 - -0.029695 -1.190270 -0.414905 0.000000 - -0.062313 -1.175166 -0.421218 0.000000 - -0.064346 -1.094503 -0.195891 0.000000 - -0.122701 -1.059807 -0.398026 0.000000 - -0.073705 -0.956976 0.293718 0.000000 - -0.053468 -0.887624 0.439363 0.000000 - 0.506267 0.352525 0.271127 0.000000 - 0.607984 0.345720 0.150343 0.000000 - 0.583021 0.392246 0.137949 0.000000 - 0.616593 0.068044 0.019096 0.000000 - 0.370081 -0.239295 -0.577478 0.000000 - 0.114158 0.625388 -0.563271 0.000000 - 0.307069 0.764414 -0.144518 0.000000 - 0.303113 -0.687910 0.062508 0.000000 - 0.021761 -1.106929 -0.443784 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 378 - 1 - 0.000000 - - - - - - 0.984043 0.120661 -0.130767 0.000000 - -0.091149 0.973027 0.211920 0.000000 - 0.152811 -0.196619 0.968499 0.000000 - - - - -0.159084 0.029071 -0.041940 0.000000 - - - 379 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 380 - 0 - 30 - 0 0 0 0 - - - 1.098363 -0.101743 -0.555502 0.000000 - 1.023508 -0.112730 -0.625956 0.000000 - 0.984159 -0.123254 -0.619511 0.000000 - 1.096733 -0.142445 -0.555964 0.000000 - -0.705796 0.368336 -0.522399 0.000000 - -0.693682 0.361968 -0.555772 0.000000 - -0.737362 0.360500 -0.513959 0.000000 - -0.256369 0.152801 0.692986 0.000000 - -0.200673 0.154549 0.707612 0.000000 - -0.794949 0.293954 -0.003754 0.000000 - -0.834566 0.207963 0.233481 0.000000 - 0.141284 0.194665 0.797051 0.000000 - 0.238922 0.242341 0.687935 0.000000 - -0.786325 0.321424 -0.085329 0.000000 - 0.299714 0.249010 0.622115 0.000000 - -0.604417 0.361951 -0.527873 0.000000 - 0.618033 0.274352 0.296653 0.000000 - -0.572890 0.361962 -0.531569 0.000000 - 0.651633 0.262961 0.262412 0.000000 - 0.014152 0.245700 -0.572075 0.000000 - 0.913722 0.143007 -0.118528 0.000000 - 0.240663 0.198261 -0.590106 0.000000 - 0.831613 0.200105 0.090252 0.000000 - 0.922159 0.128211 -0.146535 0.000000 - 0.577619 0.056648 -0.600754 0.000000 - 0.344897 -0.242230 0.685577 0.000000 - 0.860845 -0.139625 0.134773 0.000000 - -0.137329 -0.319997 0.551323 0.000000 - -0.708922 -0.422151 0.018401 0.000000 - -0.624287 -0.402131 -0.412611 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 381 - 1 - 0.000000 - - - - - - 0.917718 -0.322024 0.232582 0.000000 - 0.302404 0.946021 0.116603 0.000000 - -0.257577 -0.036675 0.965562 0.000000 - - - - -0.087164 0.225096 0.037935 0.000000 - - - 382 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 383 - 0 - 62 - 0 0 0 0 - - - 0.643738 0.639166 -1.358966 0.000000 - -0.538551 0.585390 0.034366 0.000000 - -0.081856 0.664968 0.313477 0.000000 - 1.159965 0.547453 -1.224739 0.000000 - 0.367820 0.575621 0.601102 0.000000 - 0.112842 0.588945 -1.432605 0.000000 - 0.161376 0.595085 -1.432893 0.000000 - 0.114319 0.593970 -1.429238 0.000000 - -0.957605 0.344759 -0.208941 0.000000 - -0.443446 0.352496 -1.378106 0.000000 - -0.526210 0.290692 -1.358806 0.000000 - -1.298076 -0.033335 -0.392681 0.000000 - -0.912830 -0.024746 -1.283083 0.000000 - -1.040937 -0.203128 -1.233444 0.000000 - -1.526719 -0.511910 -0.498917 0.000000 - -1.050743 -0.194492 -1.233564 0.000000 - -1.477140 -0.467504 -0.620930 0.000000 - -1.551668 -0.517928 -0.490746 0.000000 - -1.908717 -0.625636 -0.137600 0.000000 - -1.924144 -0.604424 -0.108243 0.000000 - -1.857751 -0.635290 -0.192441 0.000000 - -2.014129 -0.496989 0.010643 0.000000 - -1.993541 -0.425951 0.021415 0.000000 - -1.891185 -0.195371 0.078286 0.000000 - -1.778020 0.060861 0.147519 0.000000 - -1.634565 0.238975 0.247095 0.000000 - -1.465759 0.448654 0.371032 0.000000 - -1.295986 0.561677 0.501986 0.000000 - -1.087416 0.699510 0.669986 0.000000 - -0.906622 0.740229 0.819854 0.000000 - -0.680053 0.789001 1.015072 0.000000 - -0.503831 0.754921 1.170519 0.000000 - -0.283481 0.708490 1.372540 0.000000 - -0.127464 0.602135 1.519574 0.000000 - 0.766448 0.325998 0.869089 0.000000 - 0.014062 0.522393 1.650561 0.000000 - 0.089087 0.489158 1.633807 0.000000 - 0.660329 0.143402 1.412458 0.000000 - 1.074956 -0.059541 1.091178 0.000000 - 0.855831 0.021619 1.337288 0.000000 - 1.185339 -0.256829 1.139320 0.000000 - 1.600877 -0.660624 0.559772 0.000000 - 1.448892 -0.590110 0.875169 0.000000 - 1.474034 -0.622010 0.847704 0.000000 - 1.703614 -0.690889 0.343357 0.000000 - 1.723596 -0.529470 0.206129 0.000000 - 1.402342 -0.513000 0.945075 0.000000 - 1.700277 -0.307604 -0.011190 0.000000 - 1.671593 -0.045524 -0.278285 0.000000 - 1.613359 0.070201 -0.425283 0.000000 - 1.476213 0.337802 -0.777916 0.000000 - 1.434798 0.370666 -0.837099 0.000000 - 1.209443 0.546758 -1.163756 0.000000 - 1.146926 0.592115 -1.249351 0.000000 - 1.140779 0.591296 -1.263831 0.000000 - 0.692818 0.670651 -1.444118 0.000000 - 0.977499 0.635703 -1.423367 0.000000 - 0.659686 0.674462 -1.448477 0.000000 - 0.712300 -0.723450 -0.347969 0.000000 - 0.127928 -0.282281 -1.173243 0.000000 - -1.490653 -0.448808 0.447973 0.000000 - -1.304486 -0.566463 0.371529 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 384 - 1 - 0.000000 - - - - - - 0.699535 0.535495 -0.473177 0.000000 - -0.170938 0.768329 0.616807 0.000000 - 0.693853 -0.350594 0.629009 0.000000 - - - - -0.348556 -0.075106 -0.244480 0.000000 - - - 385 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 386 - 0 - 33 - 0 0 0 0 - - - 0.169403 -0.156645 0.601578 0.000000 - 0.184314 0.338458 -0.877206 0.000000 - 0.175227 0.751586 -0.528150 0.000000 - -0.004271 0.234643 0.932228 0.000000 - 0.178385 -0.586350 0.273142 0.000000 - 0.187633 0.243141 -0.892030 0.000000 - 0.095985 -0.157018 -0.930066 0.000000 - 0.251620 0.376636 -0.902758 0.000000 - 0.261348 0.410481 -0.911562 0.000000 - 0.322578 0.867467 -0.799338 0.000000 - 0.339670 0.998540 -0.773659 0.000000 - 0.266964 1.155527 -0.630778 0.000000 - 0.116340 0.929578 -0.365721 0.000000 - 0.055824 0.803848 0.175256 0.000000 - -0.174792 0.425034 1.148190 0.000000 - 0.063565 0.167379 1.117319 0.000000 - -0.157660 0.449884 1.110537 0.000000 - 0.124609 0.083653 1.126787 0.000000 - 0.295312 -0.277935 1.042525 0.000000 - 0.376010 -0.456061 1.005735 0.000000 - 0.396181 -0.636651 0.897784 0.000000 - 0.383237 -0.669342 0.821567 0.000000 - 0.348600 -0.773511 0.590322 0.000000 - 0.116168 -0.800621 0.061528 0.000000 - 0.066272 -0.227409 -0.948002 0.000000 - 0.067770 -0.867356 -0.177804 0.000000 - 0.056397 -0.868594 -0.226364 0.000000 - -0.020424 -0.640769 -0.679579 0.000000 - 0.074932 -0.244798 -0.940421 0.000000 - -0.210965 0.266701 0.898836 0.000000 - -0.366291 -0.159608 -0.077443 0.000000 - -0.336196 -0.141493 -0.403037 0.000000 - -0.170505 -0.350167 -0.665908 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 387 - 1 - 0.000000 - - - - - - 0.875996 -0.480893 -0.037042 0.000000 - 0.370485 0.720070 -0.586720 0.000000 - 0.308822 0.500241 0.808942 0.000000 - - - - -0.271513 -0.011639 -0.019090 0.000000 - - - 388 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 389 - 0 - 78 - 0 0 0 0 - - - -1.176981 -0.258271 -1.622161 0.000000 - 1.330066 -0.324723 -1.032338 0.000000 - 1.154358 -0.768169 -0.775819 0.000000 - -1.373209 -0.590517 -1.242126 0.000000 - 0.933711 -1.095073 -0.404649 0.000000 - -1.546295 -0.784337 -0.766981 0.000000 - 0.689762 -1.273394 0.044771 0.000000 - -1.679279 -0.820762 -0.243325 0.000000 - 0.446429 -1.285685 0.528367 0.000000 - -1.759144 -0.696283 0.277508 0.000000 - 0.227560 -1.130803 0.998738 0.000000 - -0.976853 0.179833 -1.869815 0.000000 - 1.443611 0.191776 -1.149063 0.000000 - 2.167277 -0.314605 -0.511947 0.000000 - 2.224947 -0.089990 -0.559020 0.000000 - 2.022953 -0.586939 -0.381707 0.000000 - 1.930259 -0.763731 -0.292654 0.000000 - 1.724313 -0.980918 -0.090655 0.000000 - 1.615080 -1.096309 0.021433 0.000000 - 1.359210 -1.226225 0.285210 0.000000 - 1.252544 -1.279506 0.399631 0.000000 - 0.966646 -1.292793 0.706029 0.000000 - 0.878201 -1.295169 0.804856 0.000000 - 0.590045 -1.170748 1.125421 0.000000 - 0.528793 -1.141657 1.197324 0.000000 - 0.271932 -0.872836 1.496084 0.000000 - 0.054579 -0.824000 1.409815 0.000000 - 0.238617 -0.833975 1.538508 0.000000 - 0.048063 -0.434062 1.776189 0.000000 - -0.055604 -0.395396 1.721389 0.000000 - 0.036156 -0.402258 1.794921 0.000000 - -0.058246 0.092306 1.935928 0.000000 - -0.092246 0.113003 1.903032 0.000000 - -0.058692 0.111184 1.941367 0.000000 - -0.063929 0.340389 1.927455 0.000000 - -0.041821 0.369738 1.954292 0.000000 - -0.279295 0.200027 1.841074 0.000000 - -0.366734 0.150667 1.804315 0.000000 - -0.778925 -0.035460 1.546930 0.000000 - -1.139953 -0.188694 1.320897 0.000000 - -1.322223 -0.240860 1.174725 0.000000 - -1.693763 -0.461128 0.767292 0.000000 - -1.574798 -0.314065 0.972750 0.000000 - -1.698882 -0.466023 0.755505 0.000000 - -1.745684 -0.502810 0.655519 0.000000 - -1.911291 -0.626117 0.295017 0.000000 - -1.934099 -0.636703 0.251527 0.000000 - -1.972883 -0.642322 0.147820 0.000000 - -1.897133 -0.730918 -0.194835 0.000000 - -1.884693 -0.745886 -0.256665 0.000000 - -1.747371 -0.721365 -0.732779 0.000000 - -1.733942 -0.716545 -0.785148 0.000000 - -1.578747 -0.538677 -1.221750 0.000000 - -1.564548 -0.517932 -1.266807 0.000000 - -1.307955 -0.248165 -1.617642 0.000000 - -1.518837 -0.448218 -1.359869 0.000000 - -1.289879 -0.228660 -1.640567 0.000000 - -0.956118 0.155674 -1.879847 0.000000 - -0.957089 0.157185 -1.879356 0.000000 - -0.907064 0.233847 -1.889333 0.000000 - -0.632872 0.628947 -1.921805 0.000000 - -0.198236 0.654646 -1.750920 0.000000 - -0.615165 0.649589 -1.917594 0.000000 - -0.565986 0.736407 -1.898146 0.000000 - 1.453238 0.293086 -1.150534 0.000000 - 1.798943 0.252460 -0.927155 0.000000 - 2.202348 0.191011 -0.672175 0.000000 - 2.193498 0.203675 -0.680712 0.000000 - 2.200179 0.192311 -0.679179 0.000000 - 2.226665 -0.084731 -0.561765 0.000000 - 0.655804 1.017345 1.218964 0.000000 - 0.316049 1.390524 1.250108 0.000000 - 0.185969 0.807285 1.739262 0.000000 - -0.620302 1.507975 0.084228 0.000000 - 0.262739 1.545859 1.030975 0.000000 - -1.912498 -0.403370 0.139556 0.000000 - -1.696216 0.051530 0.431992 0.000000 - 1.896509 0.294417 -0.195375 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 390 - 1 - 0.000000 - - - - - - 0.832957 0.089344 0.546077 0.000000 - 0.008210 0.984775 -0.173642 0.000000 - -0.553276 0.149119 0.819542 0.000000 - - - - 0.045315 0.135490 -0.031806 0.000000 - - - 391 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 392 - 0 - 43 - 0 0 0 0 - - - 0.733411 0.178117 -0.724698 0.000000 - 1.353613 0.240968 -0.490448 0.000000 - 1.114084 0.185023 -0.687794 0.000000 - -1.101936 0.186372 -0.587406 0.000000 - 0.034246 0.158851 -0.780649 0.000000 - -1.066547 0.057555 -0.788646 0.000000 - -1.117995 0.232991 -0.453099 0.000000 - 0.426009 0.272176 -0.375788 0.000000 - 0.401750 0.175101 -0.758490 0.000000 - -1.172722 0.366221 -0.052088 0.000000 - -1.176072 0.368859 0.026658 0.000000 - 0.447756 0.281025 0.164923 0.000000 - -1.207800 0.376381 0.503996 0.000000 - -1.206012 0.373113 0.518549 0.000000 - 0.465975 0.122296 0.681914 0.000000 - -0.968235 0.279969 0.776330 0.000000 - -0.175829 0.193985 0.771070 0.000000 - -1.205360 0.380050 0.517556 0.000000 - 0.472662 0.105220 0.740920 0.000000 - 0.790756 0.114673 0.773153 0.000000 - 0.897318 0.158144 0.717278 0.000000 - 0.832601 0.120015 0.782204 0.000000 - 1.118213 0.254903 0.439043 0.000000 - 1.281921 0.320070 0.239712 0.000000 - 1.420473 0.318490 0.020189 0.000000 - 1.478972 0.317119 -0.253704 0.000000 - 1.465272 0.324246 -0.052798 0.000000 - 1.449682 0.269959 -0.414310 0.000000 - 1.466310 0.293103 -0.333297 0.000000 - -0.855011 -0.410211 0.155135 0.000000 - -0.942679 -0.227879 0.303842 0.000000 - -1.016229 -0.302941 0.121810 0.000000 - -0.999124 -0.385601 0.024875 0.000000 - -0.989106 -0.388179 -0.282946 0.000000 - 0.109668 -0.607663 0.078208 0.000000 - 0.093032 -0.607251 0.065168 0.000000 - 0.582378 -0.511801 0.027468 0.000000 - 0.960469 -0.383706 -0.059715 0.000000 - 1.062073 -0.334049 -0.011273 0.000000 - 1.061977 -0.320138 0.079176 0.000000 - 1.026306 -0.323907 0.134298 0.000000 - 0.853637 -0.140074 0.537872 0.000000 - 1.360918 0.165732 -0.323681 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 393 - 1 - 0.000000 - - - - - - 0.919434 -0.058025 0.388940 0.000000 - -0.172248 0.829703 0.530965 0.000000 - -0.353514 -0.555181 0.752863 0.000000 - - - - -0.027422 -0.159819 -0.044034 0.000000 - - - 394 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 395 - 0 - 46 - 0 0 0 0 - - - -0.075691 -0.299810 -0.396426 0.000000 - 1.479205 -0.562648 0.518706 0.000000 - -0.288447 -0.363354 0.097036 0.000000 - 0.127904 -0.073585 -0.843965 0.000000 - 1.825405 -0.360531 0.155105 0.000000 - 0.714150 -0.554509 0.646254 0.000000 - 1.468206 -0.576710 0.450146 0.000000 - 0.352594 -0.464924 0.722466 0.000000 - -0.489552 -0.258092 0.588142 0.000000 - -0.054681 -0.357127 0.815224 0.000000 - -0.649535 -0.066407 0.921865 0.000000 - -1.143344 0.102349 1.030694 0.000000 - -1.157280 0.086170 1.010287 0.000000 - -1.024335 0.056143 0.996426 0.000000 - -1.334945 -0.053972 0.825788 0.000000 - -0.835215 -0.022922 0.963053 0.000000 - -1.331719 -0.059924 0.829003 0.000000 - -1.403091 -0.164751 0.621652 0.000000 - -1.520370 -0.328768 0.289910 0.000000 - -1.534008 -0.354947 0.163192 0.000000 - -1.587397 -0.440018 -0.277077 0.000000 - -1.577992 -0.433675 -0.344123 0.000000 - -1.525492 -0.380155 -0.810224 0.000000 - -1.501609 -0.355683 -0.862727 0.000000 - -0.950132 -0.162206 -1.117666 0.000000 - -1.440892 -0.284102 -1.024570 0.000000 - 0.260150 0.170811 -1.123713 0.000000 - 0.168487 0.174692 -1.165509 0.000000 - 1.900764 -0.006410 -0.271410 0.000000 - 1.017332 0.116829 -0.764675 0.000000 - 1.903765 0.056889 -0.322719 0.000000 - 1.891536 -0.043930 -0.232878 0.000000 - 1.823830 -0.338607 0.082545 0.000000 - 1.807939 -0.399535 0.148294 0.000000 - 1.810844 -0.397085 0.153926 0.000000 - 1.455810 -0.574062 0.458510 0.000000 - 1.725918 -0.523948 0.377917 0.000000 - 1.462811 -0.572318 0.457565 0.000000 - -0.092734 0.659690 0.166770 0.000000 - -0.875569 0.488733 0.369118 0.000000 - -1.086648 0.227556 0.862928 0.000000 - -1.101646 0.154232 1.011800 0.000000 - 0.017740 0.433879 0.662739 0.000000 - 1.749252 0.142338 -0.158663 0.000000 - 0.009158 0.656018 0.085799 0.000000 - 1.484543 0.056381 0.326930 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 396 - 1 - 0.000000 - - - - - - 0.917693 0.194250 -0.346563 0.000000 - -0.051730 0.923316 0.380542 0.000000 - 0.393907 -0.331293 0.857369 0.000000 - - - - 0.000230 -0.275686 -0.191821 0.000000 - - - 397 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 398 - 0 - 34 - 0 0 0 0 - - - 0.091387 -0.662306 0.745082 0.000000 - -1.321391 0.066409 -0.130603 0.000000 - -1.230051 -0.403146 -0.384562 0.000000 - 0.256730 -0.830594 0.779423 0.000000 - -0.309824 -0.226896 0.667617 0.000000 - -0.762830 0.980845 0.383458 0.000000 - -0.721412 0.987693 0.383581 0.000000 - -0.666217 1.067370 0.392464 0.000000 - -0.821295 0.904870 0.352548 0.000000 - -0.704905 0.841005 0.419471 0.000000 - -1.125490 0.514045 0.182602 0.000000 - -0.646762 0.400093 0.531140 0.000000 - -1.137528 0.484277 0.166297 0.000000 - -0.507400 0.134041 0.587484 0.000000 - -1.304525 0.083318 -0.071113 0.000000 - -1.320742 0.031156 -0.093434 0.000000 - -1.318919 0.037512 -0.094515 0.000000 - -1.295887 -0.381590 -0.435953 0.000000 - -1.294529 -0.396933 -0.453718 0.000000 - -1.156937 -0.547626 -0.504937 0.000000 - -1.231572 -0.533423 -0.601607 0.000000 - -0.358198 -0.760135 0.132897 0.000000 - 0.446312 -0.991004 0.786639 0.000000 - 0.439998 -0.977195 0.804186 0.000000 - 0.652636 0.870619 -0.378446 0.000000 - -0.466363 1.143433 0.355625 0.000000 - 0.800511 0.289668 0.439985 0.000000 - 1.084311 0.487178 -0.200927 0.000000 - 1.073563 0.093290 -0.372396 0.000000 - 1.015846 0.024265 -0.434592 0.000000 - 0.518456 0.379177 -0.689895 0.000000 - 1.042365 -0.154547 -0.395450 0.000000 - 0.944207 -0.553462 -0.318626 0.000000 - -0.603298 -0.430267 -0.811780 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 399 - 1 - 0.000000 - - - - - - 0.771723 -0.054771 -0.633596 0.000000 - 0.316118 0.897522 0.307447 0.000000 - 0.551827 -0.437555 0.709953 0.000000 - - - - -0.195184 0.092964 0.271780 0.000000 - - - 400 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 401 - 0 - 36 - 0 0 0 0 - - - -0.110244 -0.681566 -0.169558 0.000000 - -0.130993 -0.697144 -0.138046 0.000000 - 0.421997 -0.704116 -0.225047 0.000000 - -0.135600 -0.676478 -0.175327 0.000000 - -1.030294 -0.476982 -0.303595 0.000000 - -0.972444 -0.662867 -0.114907 0.000000 - -1.133237 -0.188770 -0.592948 0.000000 - -1.156586 -0.068968 -0.669875 0.000000 - 0.104707 -0.272228 -0.375954 0.000000 - -1.040094 0.243293 -0.857217 0.000000 - -1.215713 0.179528 -0.846093 0.000000 - -0.932362 0.275778 -0.843362 0.000000 - 0.330728 0.212691 -0.455984 0.000000 - -0.328597 0.496962 -0.746030 0.000000 - 0.244300 0.691684 -0.512127 0.000000 - 0.524988 0.710213 -0.370358 0.000000 - 0.395533 0.745147 -0.448664 0.000000 - 0.445044 0.757189 -0.426155 0.000000 - 0.511927 0.698773 -0.396143 0.000000 - 0.553790 0.669927 -0.399180 0.000000 - 0.602824 0.642411 -0.393781 0.000000 - 1.259117 0.171707 -0.385501 0.000000 - 1.418568 -0.189672 -0.427255 0.000000 - 1.346673 0.106963 -0.397182 0.000000 - 1.436626 -0.127874 -0.423248 0.000000 - 1.373105 -0.263549 -0.417174 0.000000 - 1.145808 -0.658043 -0.350580 0.000000 - 1.070236 -0.736686 -0.308157 0.000000 - -0.465530 0.349308 0.879251 0.000000 - -0.559980 0.305782 0.840188 0.000000 - -0.560599 0.142914 0.873297 0.000000 - -0.590753 -0.190672 0.845287 0.000000 - 0.495052 -0.313362 0.556197 0.000000 - 0.581593 -0.108775 0.553999 0.000000 - 0.315384 0.406003 0.683372 0.000000 - 0.059321 0.551732 0.775153 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 402 - 1 - 0.000000 - - - - - - 0.929846 0.085890 -0.357783 0.000000 - 0.068264 0.915224 0.397120 0.000000 - 0.361561 -0.393684 0.845155 0.000000 - - - - 0.152447 -0.083367 0.065429 0.000000 - - - 403 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 404 - 0 - 28 - 0 0 0 0 - - - -0.965185 -0.324997 0.699940 0.000000 - -0.551598 -0.557510 0.676434 0.000000 - 0.422027 -0.613911 0.749660 0.000000 - -0.891925 -0.251457 0.720188 0.000000 - 0.059430 0.749184 0.574228 0.000000 - 0.567510 0.708667 0.612143 0.000000 - 0.533225 0.762875 0.576792 0.000000 - 0.241047 0.775975 0.560087 0.000000 - -0.238712 0.644858 0.604717 0.000000 - 0.754591 0.313665 0.769814 0.000000 - 0.753641 0.336774 0.766399 0.000000 - -0.201994 0.698003 0.590708 0.000000 - -0.466253 0.308553 0.728702 0.000000 - 0.748090 0.198976 0.812878 0.000000 - -0.544967 0.201624 0.731296 0.000000 - 0.717816 -0.223615 0.839441 0.000000 - -0.852081 -0.202198 0.735823 0.000000 - 0.712352 -0.344901 0.845087 0.000000 - 0.702196 -0.641023 0.778920 0.000000 - -0.370125 0.293194 -0.914388 0.000000 - 0.274760 -0.029110 -1.660554 0.000000 - 0.332864 -0.178322 -1.691820 0.000000 - -0.846362 -0.396682 -0.100623 0.000000 - -1.059504 -0.280834 0.135599 0.000000 - -0.763770 0.259370 -0.395873 0.000000 - -0.601143 0.481985 -0.418804 0.000000 - -0.520184 0.536041 -0.248763 0.000000 - 0.747902 -0.424688 -0.424819 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 405 - 1 - 0.000000 - - - - - - 0.897721 0.124076 -0.422733 0.000000 - -0.040159 0.978575 0.201938 0.000000 - 0.438731 -0.164308 0.883469 0.000000 - - - - 0.016324 -0.032739 0.138042 0.000000 - - - 406 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 407 - 0 - 16 - 0 0 0 0 - - - -0.175556 -0.303342 0.823609 0.000000 - 0.621782 -0.232306 0.857367 0.000000 - -0.381914 -0.074407 0.899159 0.000000 - 0.629961 0.118219 1.000258 0.000000 - -0.560798 0.117145 0.966333 0.000000 - 0.837780 -0.235573 0.875601 0.000000 - 0.567755 0.221514 1.007220 0.000000 - 0.282129 0.256646 1.002692 0.000000 - -0.687347 0.197809 0.978880 0.000000 - 0.538174 0.280398 1.017275 0.000000 - -0.761827 -0.261494 -0.251489 0.000000 - -1.036651 0.150086 0.176199 0.000000 - 0.051882 0.174715 -1.484893 0.000000 - 0.228906 -0.054630 -1.776645 0.000000 - 0.522259 0.238139 -0.222647 0.000000 - 0.710587 -0.093672 -0.808784 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 408 - 1 - 0.000000 - - - - - - 0.879846 0.191164 0.435119 0.000000 - -0.113692 0.973616 -0.197852 0.000000 - -0.461461 0.124610 0.878366 0.000000 - - - - -0.062500 -0.049358 0.038841 0.000000 - - - 409 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 410 - 0 - 59 - 0 0 0 0 - - - 1.484298 -0.339551 0.624772 0.000000 - 1.387102 -0.430738 0.631886 0.000000 - 0.821126 -0.640081 -0.088698 0.000000 - 1.545708 -0.207358 0.487775 0.000000 - 1.098601 -0.592297 0.645706 0.000000 - 0.419872 -0.885095 0.179201 0.000000 - 0.808097 -0.750585 0.665562 0.000000 - 0.328152 -0.871292 0.690973 0.000000 - -0.046435 -0.974024 0.439142 0.000000 - 0.169027 -0.909405 0.701631 0.000000 - 0.016772 -0.910111 0.706103 0.000000 - -0.311918 -0.947780 0.542429 0.000000 - -1.435894 -0.751078 -0.022004 0.000000 - -1.365506 -0.740407 0.079727 0.000000 - -1.573847 -0.593009 0.046203 0.000000 - -1.291336 -0.916124 -0.118849 0.000000 - -1.206676 -0.842429 0.134724 0.000000 - -1.226688 -0.958530 -0.162595 0.000000 - -0.998070 -1.005243 -0.090157 0.000000 - -0.682175 -0.959609 0.358084 0.000000 - -0.760742 -1.063600 -0.005244 0.000000 - -0.601837 -0.972908 0.397736 0.000000 - -0.318402 -1.072205 0.036459 0.000000 - -0.178510 -1.074680 0.046540 0.000000 - 0.261299 -0.969949 -0.052509 0.000000 - 0.339985 -0.950794 -0.073437 0.000000 - 0.682991 -0.742570 -0.306495 0.000000 - 0.744141 -0.704162 -0.353322 0.000000 - 0.934561 -0.444461 -0.659439 0.000000 - 1.118126 -0.263026 -0.338355 0.000000 - 1.018611 -0.349891 -0.654332 0.000000 - 0.933573 -0.452787 -0.648805 0.000000 - 1.192367 0.076961 -0.728471 0.000000 - 1.281889 0.209160 -0.545378 0.000000 - 1.223581 0.157752 -0.744995 0.000000 - 1.304778 0.344246 -0.574523 0.000000 - 1.235775 0.208443 -0.761164 0.000000 - 1.610330 0.594323 -0.216114 0.000000 - 1.669829 0.549261 -0.107617 0.000000 - 1.714953 0.370946 0.033990 0.000000 - 1.721212 0.514021 -0.023565 0.000000 - 1.671329 0.172510 0.163851 0.000000 - 1.616247 -0.080651 0.337373 0.000000 - -1.859060 0.461401 0.163869 0.000000 - -1.864201 0.448778 0.146188 0.000000 - -1.129940 0.796332 -0.263465 0.000000 - -1.157794 0.736437 -0.352662 0.000000 - -1.301263 0.810681 0.496864 0.000000 - -0.642749 1.126462 0.192090 0.000000 - 1.040400 0.519062 0.533907 0.000000 - 0.996190 0.669232 0.416424 0.000000 - 0.050519 1.060526 0.188626 0.000000 - -0.991297 0.659631 0.594029 0.000000 - 1.380482 0.220948 0.605431 0.000000 - 1.378598 0.214316 0.608635 0.000000 - -0.481901 0.156853 0.714236 0.000000 - 1.579948 0.505926 0.196055 0.000000 - -0.035936 0.038739 -1.119773 0.000000 - -0.082255 -0.165237 -1.064396 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 411 - 1 - 0.000000 - - - - - - 0.896168 -0.296522 0.330087 0.000000 - 0.420098 0.806472 -0.416077 0.000000 - -0.142830 0.511544 0.847303 0.000000 - - - - -0.264679 0.322185 0.215149 0.000000 - - - 412 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 413 - 0 - 51 - 0 0 0 0 - - - -0.591463 0.668254 -0.719167 0.000000 - -0.558506 0.732132 -0.433716 0.000000 - 0.596248 0.234408 -0.169544 0.000000 - -0.561464 0.631422 -0.779014 0.000000 - -0.542974 0.721974 -0.266322 0.000000 - 0.424087 0.282633 0.341183 0.000000 - -0.517753 0.694822 0.127475 0.000000 - -0.513459 0.615462 0.340406 0.000000 - 0.208684 0.169576 0.824430 0.000000 - -0.514914 0.491938 0.663822 0.000000 - -0.530883 0.308939 0.906141 0.000000 - -0.028890 -0.093642 1.232977 0.000000 - -0.550441 0.142757 1.122433 0.000000 - -0.649602 -0.421595 1.492206 0.000000 - -0.481829 -0.367185 1.474463 0.000000 - -0.620917 -0.318722 1.457819 0.000000 - -0.387189 -0.358648 1.461035 0.000000 - -0.595027 -0.163450 1.346491 0.000000 - -0.290269 -0.319652 1.453788 0.000000 - -0.221664 -0.311028 1.432029 0.000000 - 0.141312 -0.201332 1.439714 0.000000 - 0.203703 -0.215095 1.435517 0.000000 - 0.389705 -0.163496 1.436579 0.000000 - 0.704263 -0.052103 1.342492 0.000000 - 0.421663 -0.127296 1.433265 0.000000 - 1.016943 0.025193 1.244867 0.000000 - 1.132184 0.049792 1.117509 0.000000 - 1.379666 0.097286 0.852920 0.000000 - 1.398348 0.092688 0.684116 0.000000 - 1.450250 0.075201 0.300097 0.000000 - 1.323695 0.015034 -0.063951 0.000000 - 0.708298 0.029534 -0.657796 0.000000 - 1.219151 -0.041274 -0.371895 0.000000 - 0.722311 -0.236718 -1.066747 0.000000 - -0.026423 -0.484226 -1.581535 0.000000 - -0.011689 -0.496347 -1.574147 0.000000 - -0.042785 -0.416039 -1.549753 0.000000 - 0.093317 -0.451772 -1.523294 0.000000 - -0.162480 -0.107439 -1.406826 0.000000 - 0.709581 -0.235183 -1.086084 0.000000 - -0.265304 0.138521 -1.291172 0.000000 - 0.708241 -0.242780 -1.084766 0.000000 - -0.360038 0.315126 -1.133525 0.000000 - -0.292292 0.187754 -1.250043 0.000000 - -0.495089 0.558266 -0.909623 0.000000 - -0.703171 -0.137829 -0.201144 0.000000 - -0.588328 -0.521964 -0.363525 0.000000 - -0.611493 -0.540093 -0.244344 0.000000 - -0.718029 -0.488745 0.920023 0.000000 - -0.264125 -0.480870 -1.091281 0.000000 - -0.661318 -0.425477 1.490594 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 414 - 1 - 0.000000 - - - - - - 0.831239 -0.549884 -0.081660 0.000000 - 0.553267 0.832625 0.025106 0.000000 - 0.054187 -0.066049 0.996344 0.000000 - - - - -0.104222 -0.404259 -0.018270 0.000000 - - - 415 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 416 - 0 - 62 - 0 0 0 0 - - - -0.689265 -0.674771 -1.726225 0.000000 - -0.531362 -0.955883 -1.619304 0.000000 - -0.644704 -0.916288 0.172335 0.000000 - -0.736340 -0.585339 -1.685104 0.000000 - -0.475063 -1.013165 -1.584436 0.000000 - -0.246899 -1.280554 0.126552 0.000000 - -0.150243 -1.320172 -1.412766 0.000000 - -0.046270 -1.371114 -1.362762 0.000000 - 0.244429 -1.503700 0.085038 0.000000 - 0.326429 -1.542426 -1.201335 0.000000 - 0.615163 -1.562466 0.065909 0.000000 - 0.404628 -1.560089 -1.168981 0.000000 - 0.641514 -1.666511 0.827425 0.000000 - 0.722249 -1.680196 0.797925 0.000000 - 0.391300 -1.648191 0.933383 0.000000 - 0.185601 -1.561899 1.040444 0.000000 - -0.066527 -1.452741 1.178622 0.000000 - -0.209217 -1.321901 1.276772 0.000000 - -0.427611 -1.116184 1.435302 0.000000 - -0.508008 -0.964019 1.516759 0.000000 - -0.909968 -0.446502 0.217904 0.000000 - -0.656809 -0.671736 1.678276 0.000000 - -0.681539 -0.516799 1.739138 0.000000 - -1.016631 0.082816 0.258794 0.000000 - -0.698170 -0.461913 1.760667 0.000000 - -0.769185 -0.162578 1.692084 0.000000 - -0.766417 0.075676 1.602167 0.000000 - -0.954179 0.619799 0.290995 0.000000 - -0.755409 0.419029 1.478350 0.000000 - -0.662574 0.725335 1.322345 0.000000 - -0.728697 1.111798 0.311347 0.000000 - -0.585539 0.964731 1.203518 0.000000 - -0.366134 1.290425 0.981467 0.000000 - -0.362279 1.510564 0.317853 0.000000 - -0.275710 1.420187 0.894509 0.000000 - 0.083525 1.695700 0.624612 0.000000 - 0.109136 1.777009 0.309878 0.000000 - 0.143639 1.740011 0.581787 0.000000 - 0.624267 1.891312 0.298661 0.000000 - 0.639311 1.885044 0.288205 0.000000 - 0.630989 1.892463 0.296228 0.000000 - 0.736341 1.885409 0.248897 0.000000 - 0.704377 1.885903 -0.040836 0.000000 - 0.789617 1.884602 0.232103 0.000000 - 0.644171 1.884482 -0.278203 0.000000 - 0.346034 1.806480 -0.462572 0.000000 - 0.606962 1.873311 -0.427069 0.000000 - 0.163899 1.766672 -0.489967 0.000000 - -0.125433 1.597871 -0.580018 0.000000 - -0.301228 1.492394 -0.640074 0.000000 - -0.501574 1.263471 -0.757228 0.000000 - -0.655634 1.082658 -0.854252 0.000000 - -0.758254 0.839238 -0.975736 0.000000 - -0.864238 0.577991 -1.111389 0.000000 - -0.882474 0.364177 -1.215870 0.000000 - -0.906569 0.028455 -1.386091 0.000000 - -0.872405 -0.122641 -1.458208 0.000000 - -0.778947 -0.511503 -1.651251 0.000000 - 1.121062 0.680787 0.493626 0.000000 - 0.725760 0.178593 -1.258817 0.000000 - 0.954721 -0.679871 1.042161 0.000000 - 0.665940 -0.038261 -1.366480 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 417 - 1 - 0.000000 - - - - - - 0.959431 -0.281037 0.022600 0.000000 - 0.258872 0.909842 0.324304 0.000000 - -0.111704 -0.305297 0.945683 0.000000 - - - - 0.026292 0.055128 0.086320 0.000000 - - - 418 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 419 - 0 - 41 - 0 0 0 0 - - - 0.437044 -0.403504 0.139787 0.000000 - 0.821422 -0.023322 -1.233648 0.000000 - 0.656485 0.058833 0.314964 0.000000 - -0.425812 -0.770565 -1.379036 0.000000 - -0.389198 -1.013894 -0.154863 0.000000 - -0.442141 -1.041268 -0.175585 0.000000 - -0.419941 -0.778799 -1.388801 0.000000 - -0.028235 -0.684936 -1.385644 0.000000 - 0.053565 -0.641204 -1.382383 0.000000 - 0.076758 -0.773131 -0.022098 0.000000 - 0.477247 -0.405564 -1.374681 0.000000 - 0.483420 -0.400493 -1.373080 0.000000 - 0.545909 -0.333739 -1.370248 0.000000 - 0.894671 -0.044129 -1.355968 0.000000 - 0.943000 -0.001595 -1.358071 0.000000 - 1.063542 0.275787 -1.203827 0.000000 - 0.992706 0.308123 -1.057853 0.000000 - 0.970888 0.033788 -1.351943 0.000000 - 0.968419 0.320379 -0.795972 0.000000 - 0.712394 0.446485 0.464612 0.000000 - 0.770299 0.244639 1.365449 0.000000 - 0.734179 0.444739 0.737325 0.000000 - 0.718161 0.490008 1.452689 0.000000 - 0.753155 0.078427 1.308405 0.000000 - 0.712540 -0.271874 1.195628 0.000000 - 0.646707 -0.415375 1.143939 0.000000 - 0.491337 -0.744516 1.033420 0.000000 - 0.382470 -0.860708 0.988793 0.000000 - 0.128356 -1.127082 0.894682 0.000000 - -0.004274 -1.198079 0.856390 0.000000 - 0.008875 -1.196519 0.862632 0.000000 - -0.331696 -1.303735 0.604561 0.000000 - -0.445220 -1.315276 0.528673 0.000000 - -0.601373 0.783112 -1.201987 0.000000 - -0.593652 0.773850 -1.217983 0.000000 - -0.629350 0.914135 -1.093755 0.000000 - -0.586458 0.875145 -1.153129 0.000000 - 0.181047 0.693225 1.492035 0.000000 - -0.731279 1.015391 0.811173 0.000000 - -0.560520 -0.386857 1.016168 0.000000 - -0.431199 -0.350845 1.103222 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 420 - 1 - 0.000000 - - - - - - 0.911589 0.252273 0.324596 0.000000 - 0.021386 0.759406 -0.650265 0.000000 - -0.410545 0.599717 0.686872 0.000000 - - - - 0.021492 0.023872 -0.099277 0.000000 - - - 421 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 422 - 0 - 41 - 0 0 0 0 - - - -0.115949 0.838655 -0.852883 0.000000 - -0.147595 0.874069 -0.792474 0.000000 - -0.058899 0.825366 -0.848055 0.000000 - -0.285400 1.008722 -0.530031 0.000000 - 0.607405 0.624805 -0.773034 0.000000 - -0.630129 1.346149 0.129570 0.000000 - -0.658581 1.332318 0.102671 0.000000 - -0.624731 1.339519 0.115020 0.000000 - -0.636335 1.342207 0.125797 0.000000 - -0.552953 1.301923 0.320252 0.000000 - -0.763624 1.373555 0.284331 0.000000 - -0.208008 1.126492 0.422778 0.000000 - 1.416758 0.235304 -0.521626 0.000000 - -0.112834 1.052599 0.453391 0.000000 - 1.588503 -0.026475 -0.079740 0.000000 - 0.357692 0.653156 0.641259 0.000000 - 0.824782 -0.658028 1.104976 0.000000 - 1.053789 -0.524522 0.932984 0.000000 - 0.861584 -0.452757 1.037362 0.000000 - 0.826569 -0.650579 1.088462 0.000000 - 1.143695 -0.466327 0.822506 0.000000 - 0.808539 -0.221218 0.960173 0.000000 - 1.470392 -0.262638 0.417129 0.000000 - 0.726254 0.108635 0.853189 0.000000 - 1.487325 -0.248731 0.379493 0.000000 - 0.517599 0.422987 0.728869 0.000000 - 1.600622 -0.160136 0.127180 0.000000 - 1.671008 -0.079970 -0.149637 0.000000 - 1.678740 -0.077224 -0.185991 0.000000 - 1.649775 0.011928 -0.640054 0.000000 - 1.687345 -0.012559 -0.640051 0.000000 - 1.576891 0.098565 -0.653714 0.000000 - 1.291866 0.315654 -0.694267 0.000000 - 0.842738 0.546903 -0.752189 0.000000 - -1.521762 0.143826 0.535681 0.000000 - -1.548223 -0.142353 0.399494 0.000000 - -1.567568 -0.025633 0.572453 0.000000 - -1.062891 -1.074963 -0.805812 0.000000 - -0.842852 -1.151767 -0.779717 0.000000 - 0.650864 -0.728922 1.061503 0.000000 - -0.059857 -0.496149 0.923290 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 423 - 1 - 0.000000 - - - - - - 0.793384 -0.604082 -0.075010 0.000000 - 0.452510 0.667712 -0.591097 0.000000 - 0.407156 0.435024 0.803105 0.000000 - - - - -0.132915 -0.335763 -0.166737 0.000000 - - - 424 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 425 - 0 - 46 - 0 0 0 0 - - - 0.510189 1.251719 0.525931 0.000000 - 1.149163 0.864849 0.542527 0.000000 - 0.652889 1.284477 0.431469 0.000000 - 0.140270 1.133938 0.666841 0.000000 - 0.872593 0.470803 0.790631 0.000000 - -0.107205 1.059703 0.754592 0.000000 - -0.404941 0.949222 0.787403 0.000000 - 0.554114 0.041640 0.878256 0.000000 - -0.753743 0.825333 0.820325 0.000000 - -0.945197 0.743983 0.789542 0.000000 - 0.224954 -0.380561 0.796849 0.000000 - -1.294023 0.557851 0.719616 0.000000 - -1.243039 0.618046 0.742597 0.000000 - -1.350589 0.476070 0.671475 0.000000 - -0.082626 -0.754429 0.554450 0.000000 - -1.579260 0.164303 0.476114 0.000000 - -1.614739 0.113144 0.416456 0.000000 - -0.338510 -1.043367 0.174880 0.000000 - -1.809940 -0.144693 0.094281 0.000000 - -1.889803 -0.236736 -0.119534 0.000000 - -0.817356 -0.971415 -0.181583 0.000000 - -1.824378 -0.166462 0.046316 0.000000 - -0.493921 -1.197324 -0.202005 0.000000 - 0.277202 -1.788251 -0.227733 0.000000 - 0.556587 -2.032052 -0.237363 0.000000 - 0.605677 -1.960606 -0.084746 0.000000 - 0.653801 -1.846946 0.041722 0.000000 - 0.773034 -1.589290 0.322654 0.000000 - 0.841016 -1.356164 0.455151 0.000000 - 0.929921 -1.072098 0.612019 0.000000 - 1.008909 -0.692783 0.701483 0.000000 - 1.060888 -0.458753 0.753542 0.000000 - 1.132301 0.054615 0.738029 0.000000 - 1.152739 0.190496 0.732017 0.000000 - 1.179826 0.791482 0.563562 0.000000 - 1.188330 0.723513 0.578615 0.000000 - 1.175985 0.822093 0.557227 0.000000 - 1.154123 0.921970 0.511885 0.000000 - 1.000733 1.402297 0.163013 0.000000 - 1.037111 1.382060 0.156728 0.000000 - 1.016109 1.392217 0.174002 0.000000 - 0.496107 0.867261 -1.402322 0.000000 - -0.213098 0.666537 -1.067715 0.000000 - 0.510810 0.899124 -1.343082 0.000000 - 0.625133 0.113958 -1.133389 0.000000 - -1.531398 0.270051 -0.448948 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 426 - 1 - 0.000000 - - - - - - 0.935698 0.163039 -0.312871 0.000000 - -0.247472 0.935365 -0.252687 0.000000 - 0.251450 0.313865 0.915566 0.000000 - - - - 0.011121 0.035538 -0.125123 0.000000 - - - 427 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 428 - 0 - 44 - 0 0 0 0 - - - -0.901689 -0.317766 0.551212 0.000000 - -0.890235 -0.287110 0.560222 0.000000 - -0.886745 -0.258437 0.573579 0.000000 - -0.908564 -0.324079 0.539379 0.000000 - -0.960304 -0.585590 0.357839 0.000000 - -0.716724 -0.760265 0.424027 0.000000 - -0.620979 -0.751328 0.487485 0.000000 - -0.979851 -0.544250 0.369155 0.000000 - -0.690450 -0.779759 0.431297 0.000000 - -0.430308 -0.942329 0.400857 0.000000 - -0.208112 -1.078095 0.363030 0.000000 - 0.699793 -0.784189 0.750839 0.000000 - 0.684517 -0.736426 0.804459 0.000000 - -0.192890 -1.084557 0.347211 0.000000 - 0.632866 -0.538212 0.939315 0.000000 - 0.580033 -0.330287 1.080123 0.000000 - 0.566686 -0.274395 1.102134 0.000000 - 0.502693 -0.080465 1.151047 0.000000 - 0.404624 0.240495 1.231047 0.000000 - 0.385023 0.434385 1.230846 0.000000 - -0.720911 0.258191 0.677584 0.000000 - 0.225122 0.706454 1.169327 0.000000 - -0.689794 0.356419 0.696872 0.000000 - 0.361182 0.701264 1.241057 0.000000 - -0.571694 0.778361 0.651048 0.000000 - -0.542488 0.808342 0.654607 0.000000 - -0.558541 0.782327 0.660068 0.000000 - -0.180639 0.274264 -1.288936 0.000000 - 0.023425 0.583088 -1.088209 0.000000 - 0.419563 0.182869 -1.189120 0.000000 - 0.110226 0.181227 -1.266771 0.000000 - -0.239190 -0.464314 -1.028048 0.000000 - -0.143807 -0.715896 -0.855425 0.000000 - -0.245095 -0.793676 -0.741757 0.000000 - -0.287631 -0.760590 -0.749607 0.000000 - 0.892706 -0.273192 -0.808488 0.000000 - -0.245167 -0.211528 -1.165718 0.000000 - 0.882372 -0.078131 -0.921616 0.000000 - -0.316044 0.187575 -1.266209 0.000000 - -0.703312 0.339427 -0.642704 0.000000 - -0.534664 0.877169 -0.089143 0.000000 - -0.035716 0.926678 -0.563042 0.000000 - 0.559760 0.824530 0.222029 0.000000 - 0.412392 0.704825 1.173786 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 429 - 1 - 0.000000 - - - - - - 0.763743 0.510824 0.394658 0.000000 - -0.642568 0.660017 0.389209 0.000000 - -0.061663 -0.550851 0.832323 0.000000 - - - - 0.096002 -0.002419 0.008226 0.000000 - - - 430 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 431 - 0 - 29 - 0 0 0 0 - - - -0.274533 -0.226825 -0.516238 0.000000 - -0.081623 0.120424 -0.638691 0.000000 - 0.192503 -0.096106 -0.627173 0.000000 - -0.428379 -0.278867 -0.472457 0.000000 - -1.087089 0.313972 -0.108503 0.000000 - -1.047543 0.287272 -0.122238 0.000000 - -1.052484 0.262206 -0.134383 0.000000 - -0.626026 0.244980 -0.436641 0.000000 - -0.938719 -0.143448 -0.280587 0.000000 - -0.569635 0.239986 -0.460680 0.000000 - -0.836686 -0.339155 -0.309184 0.000000 - -0.804241 -0.416185 -0.320341 0.000000 - -0.225676 0.213055 -0.605018 0.000000 - -0.003975 0.194047 -0.655712 0.000000 - 0.032386 0.197646 -0.658341 0.000000 - 0.497783 -0.032116 -0.622938 0.000000 - 0.789214 0.178371 -0.631500 0.000000 - 0.904648 0.177092 -0.602933 0.000000 - 1.054275 0.032093 -0.504068 0.000000 - 0.423390 -0.047477 -0.624112 0.000000 - 0.628408 0.177443 -0.640412 0.000000 - 0.374164 -0.313891 0.608221 0.000000 - 1.079536 0.060847 -0.306485 0.000000 - 0.993461 0.200740 -0.251395 0.000000 - -0.113432 0.381134 0.908619 0.000000 - -0.124665 0.421445 0.896728 0.000000 - 0.039297 -0.478774 0.457660 0.000000 - 0.329549 -0.439057 0.537424 0.000000 - 1.097749 0.011632 -0.410750 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 432 - 1 - 0.000000 - - - - - - 0.923753 -0.006910 0.382927 0.000000 - 0.127618 0.948250 -0.290749 0.000000 - -0.361101 0.317449 0.876831 0.000000 - - - - -0.245008 0.135135 0.094641 0.000000 - - - 433 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 434 - 0 - 62 - 0 0 0 0 - - - 1.244997 0.499785 -0.331313 0.000000 - -0.501347 0.361940 -1.255064 0.000000 - -0.683510 0.612217 -0.811107 0.000000 - 1.203233 0.580091 0.202393 0.000000 - -0.887361 0.701972 -0.317728 0.000000 - 1.143924 0.491916 0.733286 0.000000 - -1.092945 0.622325 0.176774 0.000000 - 1.072872 0.243819 1.209339 0.000000 - -1.280114 0.380998 0.623938 0.000000 - 0.997039 -0.139936 1.583864 0.000000 - -1.430515 0.001590 0.979910 0.000000 - 1.265137 0.258954 -0.815580 0.000000 - -0.689871 0.368553 -1.377696 0.000000 - -0.654855 0.315489 -1.420315 0.000000 - -0.913806 0.571257 -1.058859 0.000000 - -0.968590 0.616076 -0.985973 0.000000 - -1.199257 0.683798 -0.643927 0.000000 - -1.225718 0.694474 -0.601691 0.000000 - -1.252452 0.702819 -0.544762 0.000000 - -1.406056 0.641806 -0.144820 0.000000 - -1.449352 0.623544 -0.038849 0.000000 - -1.582384 0.427743 0.342686 0.000000 - -1.614438 0.381486 0.427845 0.000000 - -1.711591 0.061727 0.750602 0.000000 - -1.712742 0.025971 0.809925 0.000000 - -1.719645 0.041123 0.789403 0.000000 - -1.477307 -0.346418 1.184450 0.000000 - -1.319186 -0.482977 1.280151 0.000000 - -1.382456 -0.464629 1.266102 0.000000 - -1.365118 -0.488970 1.279703 0.000000 - -1.071437 -0.453814 1.327359 0.000000 - -1.403973 -0.446839 1.252898 0.000000 - -0.041602 -0.307990 1.475834 0.000000 - 0.979273 -0.165256 1.622624 0.000000 - 1.192240 -0.144443 1.588237 0.000000 - 1.377288 -0.139551 1.553655 0.000000 - 1.354490 -0.140765 1.565616 0.000000 - 1.468145 0.139974 1.260744 0.000000 - 1.497556 0.203118 1.192453 0.000000 - 1.567481 0.404241 0.805546 0.000000 - 1.586844 0.449677 0.711767 0.000000 - 1.597014 0.529111 0.281703 0.000000 - 1.601778 0.545142 0.180270 0.000000 - 1.548926 0.492776 -0.266181 0.000000 - 1.541006 0.480572 -0.350710 0.000000 - 1.490358 0.402134 -0.529920 0.000000 - 1.239058 0.286509 -0.805000 0.000000 - 1.240997 0.286536 -0.803534 0.000000 - 1.235399 0.293468 -0.803785 0.000000 - 0.369627 -0.312745 -1.569647 0.000000 - 0.452403 -0.294960 -1.526613 0.000000 - 0.410107 -0.340378 -1.573770 0.000000 - -0.188591 0.007650 -1.554294 0.000000 - 0.687711 -0.062601 -1.338288 0.000000 - -0.239503 0.031346 -1.545851 0.000000 - -0.353923 0.081473 -1.527063 0.000000 - -0.583142 0.209915 -1.513041 0.000000 - 0.974903 -0.628371 -0.734242 0.000000 - 0.558943 -0.772023 -1.205394 0.000000 - -0.576044 -0.745336 -0.473335 0.000000 - -1.078675 -0.126341 -0.716136 0.000000 - -1.024586 -0.157788 -0.797457 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 435 - 1 - 0.000000 - - - - - - 0.895498 0.046515 0.442629 0.000000 - -0.086380 0.993777 0.070324 0.000000 - -0.436604 -0.101209 0.893943 0.000000 - - - - -0.145894 0.152615 -0.092442 0.000000 - - - 436 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 437 - 0 - 30 - 0 0 0 0 - - - -0.739473 0.255969 0.677363 0.000000 - 0.715281 -0.091271 0.396035 0.000000 - 0.631143 0.401185 0.188565 0.000000 - -0.741927 0.257363 0.675755 0.000000 - -0.723985 0.138033 0.729400 0.000000 - 0.282655 -0.116279 0.539983 0.000000 - 0.746199 -0.293460 0.414973 0.000000 - 1.148251 -0.214828 0.445820 0.000000 - 1.153989 -0.227810 0.426978 0.000000 - 1.119634 -0.257876 0.448146 0.000000 - 1.118267 -0.056406 0.411128 0.000000 - 1.023952 0.300729 0.261956 0.000000 - 0.990497 0.438022 0.202471 0.000000 - 0.904340 0.735834 -0.045777 0.000000 - 0.903316 0.724905 -0.048609 0.000000 - 0.894014 0.744438 -0.063001 0.000000 - 0.558748 0.691289 -0.042640 0.000000 - -0.823968 0.664606 0.317804 0.000000 - -0.137963 0.713294 0.102751 0.000000 - -0.844706 0.726164 0.222712 0.000000 - -0.814495 0.628273 0.351123 0.000000 - -0.767103 0.186294 -0.558907 0.000000 - 0.112936 0.114755 -0.794722 0.000000 - -0.148179 -0.630994 -0.491719 0.000000 - -0.525385 -0.292826 -0.484876 0.000000 - -0.012838 -1.108225 -0.032050 0.000000 - -0.258106 -0.954092 0.055703 0.000000 - -0.697469 -0.129883 0.566793 0.000000 - -0.846610 0.320962 -0.354983 0.000000 - 0.905016 0.540833 -0.322842 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 438 - 1 - 0.000000 - - - - - - 0.987847 -0.137056 -0.073301 0.000000 - 0.150935 0.958477 0.241950 0.000000 - 0.037096 -0.250074 0.967516 0.000000 - - - - -0.169946 -0.052140 -0.216687 0.000000 - - - 439 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 440 - 0 - 47 - 0 0 0 0 - - - 0.343690 -0.098558 -0.983514 0.000000 - 0.452219 -0.053161 -0.568965 0.000000 - 0.293101 -0.560761 -0.667055 0.000000 - 0.227051 -0.456681 -1.062475 0.000000 - 0.390263 0.054232 -0.952822 0.000000 - 0.389654 0.417265 -0.859206 0.000000 - 0.454380 0.463415 -0.408519 0.000000 - 0.386424 0.585311 -0.819048 0.000000 - 0.295150 0.860550 -0.736651 0.000000 - 0.277495 0.899677 -0.713187 0.000000 - 0.299356 0.938493 -0.201387 0.000000 - 0.230237 1.053273 -0.607175 0.000000 - -0.043567 1.443446 -0.333823 0.000000 - -0.071454 1.407111 0.031021 0.000000 - -0.001358 1.335622 -0.004276 0.000000 - -0.063273 1.435949 -0.334827 0.000000 - -0.001495 1.336132 -0.005377 0.000000 - 0.019212 1.330318 -0.407777 0.000000 - 0.009865 1.320453 -0.001577 0.000000 - 0.382891 0.918394 0.015025 0.000000 - 0.446224 0.849123 0.023524 0.000000 - 0.685491 0.463961 0.133382 0.000000 - 0.831242 0.228145 0.208618 0.000000 - 0.925105 -0.003941 0.316334 0.000000 - 1.084222 -0.355358 0.486050 0.000000 - 1.056752 -0.370289 0.440355 0.000000 - 0.960161 -0.443090 0.303925 0.000000 - 0.610138 -0.717885 -0.157320 0.000000 - 0.144963 -0.988678 -0.536139 0.000000 - -0.007446 -1.009787 -0.693196 0.000000 - 0.066600 -1.034842 -0.598126 0.000000 - -0.077724 -1.107469 -0.674536 0.000000 - -0.082583 -1.099341 -0.684451 0.000000 - -0.164163 -0.961677 -1.142528 0.000000 - -0.087147 -0.897222 -1.137233 0.000000 - -0.168815 -0.970178 -1.154585 0.000000 - 0.135367 -0.589001 -1.082914 0.000000 - -0.398266 -0.518853 1.145867 0.000000 - 0.066229 -0.329544 1.302787 0.000000 - -0.155122 -0.129202 1.307134 0.000000 - -0.297392 -0.142714 1.267387 0.000000 - -0.293176 0.903744 0.619213 0.000000 - -0.527971 0.316583 0.910087 0.000000 - -0.728133 -0.179420 0.617536 0.000000 - -0.467402 -0.579279 1.042774 0.000000 - -0.702989 -0.184911 -0.890960 0.000000 - -0.215236 0.989130 -0.641092 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 441 - 1 - 0.000000 - - - - - - 0.931990 0.256164 -0.256467 0.000000 - 0.005519 0.697416 0.716645 0.000000 - 0.362443 -0.669322 0.648571 0.000000 - - - - 0.033228 0.075070 -0.125018 0.000000 - - - 442 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 443 - 0 - 32 - 0 0 0 0 - - - -0.093006 1.040401 0.079177 0.000000 - -0.217994 0.926018 0.139593 0.000000 - 0.503525 0.704430 0.350234 0.000000 - 0.542765 0.810371 0.290349 0.000000 - -0.284791 0.847354 0.154635 0.000000 - 0.421552 0.390191 0.443755 0.000000 - -0.592099 0.494623 0.213419 0.000000 - 0.375378 0.194606 0.499929 0.000000 - -0.628757 0.435664 0.205129 0.000000 - 0.316157 -0.156256 0.492743 0.000000 - -0.801350 0.167800 0.164541 0.000000 - -0.786681 0.019495 0.163672 0.000000 - 0.288506 -0.347109 0.487358 0.000000 - -0.767228 -0.063437 0.149555 0.000000 - 0.260392 -0.700145 0.370509 0.000000 - -0.669773 -0.552863 0.039332 0.000000 - 0.251392 -0.867659 0.313863 0.000000 - -0.601229 -0.681875 0.004630 0.000000 - 0.259924 -1.184585 0.090450 0.000000 - -0.638189 -0.655797 0.005565 0.000000 - 0.144098 -1.243303 -0.004254 0.000000 - 0.267633 -1.316116 -0.003439 0.000000 - 0.264395 -1.314534 0.005338 0.000000 - 0.257233 -1.316364 -0.003854 0.000000 - 0.452113 -0.395618 -0.430689 0.000000 - 0.527914 -0.396326 -0.393395 0.000000 - 0.282482 -1.259545 -0.061975 0.000000 - 0.315014 -1.255707 -0.032392 0.000000 - 0.598056 0.467574 -0.123584 0.000000 - -0.134640 0.404194 -0.575192 0.000000 - -0.051194 0.606508 -0.470300 0.000000 - -0.619608 0.016244 -0.257740 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 444 - 1 - 0.000000 - - - - - - 0.918580 -0.244373 -0.310633 0.000000 - 0.133411 0.931528 -0.338316 0.000000 - 0.372039 0.269328 0.888285 0.000000 - - - - -0.019495 -0.161241 0.078680 0.000000 - - - 445 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 446 - 0 - 22 - 0 0 0 0 - - - -0.449587 0.866284 0.115949 0.000000 - -0.189065 0.938321 -0.197181 0.000000 - -0.485269 0.793924 0.127053 0.000000 - -0.742894 -0.741241 -0.353734 0.000000 - -0.300416 -0.232555 -0.703931 0.000000 - 0.359335 1.189322 -0.368605 0.000000 - 0.254940 1.173011 -0.320156 0.000000 - 0.057862 1.165141 0.001682 0.000000 - 0.445132 1.196383 -0.291751 0.000000 - 0.429883 1.196779 -0.319314 0.000000 - 0.651508 0.470893 -0.213048 0.000000 - 0.202840 -0.354012 -0.565737 0.000000 - 0.164368 0.645694 -0.524450 0.000000 - -0.221739 1.064320 0.254419 0.000000 - -0.661554 -0.003049 0.558106 0.000000 - -0.780800 -0.886053 -0.262795 0.000000 - 0.408592 -1.113863 -0.053406 0.000000 - 0.880738 -0.710016 0.472894 0.000000 - -0.351888 0.178011 0.828943 0.000000 - -0.177440 -0.169268 -0.741916 0.000000 - 0.196924 -0.382239 -0.572933 0.000000 - 0.771551 0.285865 -0.009266 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 447 - 1 - 0.000000 - - - - - - 0.986782 -0.105394 0.123100 0.000000 - 0.092483 0.990027 0.106273 0.000000 - -0.133073 -0.093483 0.986688 0.000000 - - - - -0.106155 -0.088984 0.098369 0.000000 - - - 448 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 449 - 0 - 56 - 0 0 0 0 - - - -1.143335 -0.555845 0.354111 0.000000 - 0.079167 -0.479360 -1.422292 0.000000 - -0.671304 -0.708402 0.570784 0.000000 - 0.456416 -0.637847 -1.067891 0.000000 - -0.183797 -0.693270 0.805367 0.000000 - 0.849176 -0.628642 -0.695635 0.000000 - 0.271475 -0.512025 1.034896 0.000000 - 1.219011 -0.452743 -0.341957 0.000000 - 0.650014 -0.182482 1.236930 0.000000 - 1.529768 -0.127440 -0.041429 0.000000 - -1.143672 -0.620333 0.647803 0.000000 - -0.761116 -0.753969 0.903249 0.000000 - -1.214561 -0.594536 0.602902 0.000000 - -1.444354 -0.425464 0.456138 0.000000 - -1.397221 -0.386605 0.229164 0.000000 - -0.991963 0.020974 -0.979166 0.000000 - -0.903767 0.014209 -1.085197 0.000000 - -1.089230 -0.079995 -0.709433 0.000000 - -0.459956 -0.037561 -1.638421 0.000000 - -0.330302 -0.188294 -1.605168 0.000000 - -1.281258 -0.273662 -0.187745 0.000000 - -0.313582 -0.200992 -1.599751 0.000000 - -0.110301 -0.336220 -1.549688 0.000000 - 0.147704 -0.489829 -1.483204 0.000000 - 0.176151 -0.500041 -1.480682 0.000000 - 0.245189 -0.531197 -1.456741 0.000000 - 0.573319 -0.653141 -1.214224 0.000000 - 0.617995 -0.666131 -1.184962 0.000000 - 0.974033 -0.659555 -0.859623 0.000000 - 1.023441 -0.656241 -0.818519 0.000000 - 1.323956 -0.500453 -0.478710 0.000000 - 1.363100 -0.479015 -0.438309 0.000000 - 1.513434 -0.177304 -0.045621 0.000000 - 1.546085 -0.240610 -0.164932 0.000000 - 1.511781 -0.173463 -0.038551 0.000000 - 1.503898 -0.172366 -0.020705 0.000000 - 1.088687 0.267446 1.172420 0.000000 - 1.068876 0.256359 1.170825 0.000000 - 1.290975 0.248085 0.841544 0.000000 - 1.274276 0.266317 0.896449 0.000000 - 1.019128 0.199523 1.176507 0.000000 - 0.702981 -0.151527 1.216769 0.000000 - 0.657243 -0.205183 1.227495 0.000000 - 0.653937 -0.204157 1.230953 0.000000 - 0.266300 -0.505562 1.260033 0.000000 - 0.196903 -0.555273 1.268790 0.000000 - -0.188670 -0.702499 1.276537 0.000000 - -0.292801 -0.743729 1.221533 0.000000 - -0.208657 -0.715343 1.275781 0.000000 - -0.656239 -0.752836 0.972209 0.000000 - -0.599073 0.761202 1.061983 0.000000 - -0.605883 0.747634 1.059722 0.000000 - 0.016914 0.944702 -0.761855 0.000000 - -0.329077 0.965425 -0.350787 0.000000 - 0.080546 0.819561 -1.010278 0.000000 - -0.239214 0.171157 -1.574760 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 450 - 1 - 0.000000 - - - - - - 0.783777 0.471682 0.403993 0.000000 - -0.111896 0.747116 -0.655208 0.000000 - -0.610879 0.468331 0.638351 0.000000 - - - - -0.039315 -0.008027 0.136791 0.000000 - - - 451 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 452 - 0 - 39 - 0 0 0 0 - - - -1.177451 -0.313997 0.398915 0.000000 - 1.069377 -0.273921 -0.523248 0.000000 - 1.099364 -0.308527 0.016317 0.000000 - 1.205500 -0.280144 -0.506242 0.000000 - 1.033586 -0.267031 -0.626097 0.000000 - 1.257766 -0.274035 -0.473626 0.000000 - 1.720857 -0.206347 -0.039977 0.000000 - 1.723996 -0.209033 0.023886 0.000000 - 1.721644 -0.206591 0.022695 0.000000 - 1.712949 -0.208441 -0.048878 0.000000 - 1.085854 -0.234643 0.423262 0.000000 - -0.240920 -0.030513 1.070469 0.000000 - -0.242437 -0.029997 1.067079 0.000000 - -0.038843 -0.054866 0.967434 0.000000 - -0.819129 -0.213945 0.848268 0.000000 - 0.853961 -0.213723 0.548869 0.000000 - -0.766477 -0.202092 0.884569 0.000000 - -0.843363 -0.222128 0.822072 0.000000 - -1.069507 -0.292303 0.583940 0.000000 - -1.214553 -0.330926 0.418689 0.000000 - -1.226373 -0.329786 0.409193 0.000000 - -1.343912 -0.308975 0.232126 0.000000 - -1.263346 -0.312783 -0.048927 0.000000 - -1.241174 -0.308194 -0.115690 0.000000 - -1.235872 -0.311703 -0.118241 0.000000 - 0.569251 -0.159613 -0.826739 0.000000 - -0.979217 -0.108974 -0.676434 0.000000 - 0.409288 -0.122225 -0.896048 0.000000 - -0.357106 0.016686 -0.956639 0.000000 - -0.918653 -0.045722 -0.770318 0.000000 - -0.848913 0.029849 -0.897381 0.000000 - 0.008915 0.004008 -1.005342 0.000000 - 0.371068 0.496971 -0.047765 0.000000 - -0.782643 0.367820 -0.219686 0.000000 - 0.186511 0.527309 0.401285 0.000000 - 0.590390 0.541594 0.152680 0.000000 - -1.205573 -0.059776 0.155390 0.000000 - -0.914495 0.335600 -0.278430 0.000000 - 1.711193 -0.197795 0.001132 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 453 - 1 - 0.000000 - - - - - - 0.748207 -0.095848 0.656506 0.000000 - -0.024094 0.984932 0.171257 0.000000 - -0.663028 -0.143953 0.734623 0.000000 - - - - 0.175614 -0.023224 0.070981 0.000000 - - - 454 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 455 - 0 - 42 - 0 0 0 0 - - - -0.232008 0.786908 -0.581310 0.000000 - -0.245557 0.545708 -0.061556 0.000000 - -0.071333 0.946874 0.053434 0.000000 - -0.338798 0.676917 -1.035415 0.000000 - -0.363636 0.610379 -1.240564 0.000000 - -0.316829 0.018889 -0.161453 0.000000 - -0.415561 0.524915 -1.557534 0.000000 - -0.413449 0.271415 -1.530556 0.000000 - -0.390057 0.524544 -1.522201 0.000000 - -0.414366 0.262839 -1.530434 0.000000 - -0.417505 0.269341 -1.527066 0.000000 - -0.219813 -0.506735 -0.244552 0.000000 - -0.311331 -0.285834 -1.523597 0.000000 - -0.293328 -0.322972 -1.523170 0.000000 - 0.036032 -0.979805 -0.302730 0.000000 - -0.137933 -0.662406 -1.550398 0.000000 - -0.047074 -0.872130 -0.770390 0.000000 - 0.008648 -0.988882 -0.293445 0.000000 - 0.029886 -1.460439 0.681473 0.000000 - 0.013041 -1.420257 0.675050 0.000000 - -0.251196 -1.171317 0.711211 0.000000 - -0.322382 -1.045766 0.731377 0.000000 - -0.515986 -0.697976 0.796099 0.000000 - -0.538459 -0.589712 0.816495 0.000000 - -0.620613 -0.171995 0.906790 0.000000 - -0.610528 -0.081958 0.925727 0.000000 - -0.555019 0.355300 1.032466 0.000000 - -0.517819 0.435890 1.051430 0.000000 - -0.073334 0.970407 0.120551 0.000000 - -0.325682 0.832545 1.160869 0.000000 - -0.072177 0.983728 0.155982 0.000000 - 0.048634 1.205099 0.929450 0.000000 - 0.027296 1.134353 0.698874 0.000000 - -0.253995 0.908577 1.181628 0.000000 - -0.021243 1.173851 1.271407 0.000000 - -0.123833 0.325919 -1.599604 0.000000 - 0.310910 0.181372 -1.377184 0.000000 - -0.045008 -0.417501 -1.581051 0.000000 - 0.379663 -0.826482 0.845420 0.000000 - 0.508052 -0.553732 0.878099 0.000000 - 0.490111 -0.488900 0.924566 0.000000 - 0.612158 0.347292 -0.533400 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 456 - 1 - 0.000000 - - - - - - 0.919872 -0.392053 -0.011445 0.000000 - 0.372815 0.864926 0.336023 0.000000 - -0.121840 -0.313365 0.941784 0.000000 - - - - 0.444965 -0.098839 -0.131652 0.000000 - - - 457 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 458 - 0 - 65 - 0 0 0 0 - - - -0.732271 -1.121580 0.351624 0.000000 - -0.372324 -1.036392 -0.221393 0.000000 - -0.584317 -1.130237 0.444061 0.000000 - -1.037894 -0.992018 0.175606 0.000000 - -0.851435 -0.858197 -0.399534 0.000000 - -1.173164 -0.933476 0.102031 0.000000 - -1.444036 -0.697600 -0.028888 0.000000 - -1.267234 -0.533624 -0.520711 0.000000 - -1.556901 -0.598563 -0.079202 0.000000 - -1.992917 1.151808 0.011664 0.000000 - -1.974217 1.147596 0.000232 0.000000 - -2.056253 0.896159 -0.025782 0.000000 - -2.038560 0.907586 -0.078316 0.000000 - -2.043211 0.734905 -0.063577 0.000000 - -2.030230 0.737337 -0.111616 0.000000 - -2.006030 0.360509 -0.157852 0.000000 - -2.011899 0.369378 -0.174034 0.000000 - -1.942862 0.242611 -0.196979 0.000000 - -1.962668 0.215200 -0.177119 0.000000 - -1.729480 -0.139386 -0.331237 0.000000 - -1.845919 -0.149627 -0.174334 0.000000 - -1.674456 -0.188886 -0.353500 0.000000 - -1.762142 -0.280072 -0.149744 0.000000 - -1.320810 -0.500744 -0.498887 0.000000 - -1.267538 -0.550520 -0.523433 0.000000 - -1.264001 -0.549165 -0.527152 0.000000 - -0.837638 -0.764510 -0.664692 0.000000 - -0.759284 -0.799319 -0.693009 0.000000 - -0.349934 -0.866876 -0.793777 0.000000 - -0.180283 -0.890109 -0.839294 0.000000 - 0.167501 -0.847887 -0.902350 0.000000 - 0.123204 -1.050672 -0.003704 0.000000 - 0.415769 -0.812880 -0.951672 0.000000 - 0.679806 -0.702398 -0.981596 0.000000 - 0.586596 -0.899558 0.232217 0.000000 - 0.935616 -0.591484 -1.000279 0.000000 - 0.920152 -0.604885 -1.009505 0.000000 - 1.102144 -0.465651 -0.857737 0.000000 - 0.972414 -0.597804 0.463251 0.000000 - 1.304456 -0.307790 -0.689172 0.000000 - 1.431648 -0.104474 -0.538402 0.000000 - 1.242811 -0.174962 0.666743 0.000000 - 1.554261 0.096428 -0.396554 0.000000 - 1.642559 0.873698 -0.053167 0.000000 - 1.598010 0.847851 0.082810 0.000000 - 1.632632 0.884597 -0.046668 0.000000 - 1.495575 0.793193 0.459369 0.000000 - 1.444146 0.363587 0.599831 0.000000 - 1.660255 0.581480 -0.151263 0.000000 - 1.428840 0.322255 0.612799 0.000000 - 1.613538 0.363368 -0.258438 0.000000 - 1.318561 0.034419 0.707176 0.000000 - 1.188359 -0.188509 0.775084 0.000000 - 1.165529 -0.214600 0.788541 0.000000 - 0.761895 -0.594683 0.917347 0.000000 - 0.655344 -0.686977 0.954346 0.000000 - 0.292579 -0.889905 0.989269 0.000000 - 0.355278 -0.858631 1.014562 0.000000 - 0.160515 -0.990609 0.914154 0.000000 - -0.129993 -1.095962 0.749266 0.000000 - 0.000850 -1.051586 0.844186 0.000000 - -0.277375 -1.144423 0.645158 0.000000 - 0.183605 -0.829677 0.993231 0.000000 - -1.301946 1.020850 0.427710 0.000000 - 0.568956 1.044166 -0.559733 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 459 - 1 - 0.000000 - - - - - - 0.821778 -0.130051 -0.554768 0.000000 - -0.115772 0.915190 -0.386036 0.000000 - 0.557922 0.381462 0.737027 0.000000 - - - - 0.085235 -0.220548 -0.156015 0.000000 - - - 460 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 461 - 0 - 62 - 0 0 0 0 - - - 1.142647 0.095341 1.823756 0.000000 - 1.047178 0.151866 1.849189 0.000000 - 0.061126 -0.135755 1.390421 0.000000 - 1.204931 -0.076810 1.666355 0.000000 - -0.095627 0.254574 1.557935 0.000000 - 0.975572 0.193933 1.856255 0.000000 - -1.400775 0.090275 1.414492 0.000000 - -0.692472 0.198865 1.502443 0.000000 - -1.392342 0.143955 1.424873 0.000000 - -1.414755 0.038019 1.392333 0.000000 - -1.459643 -0.162768 1.319843 0.000000 - -1.420806 -0.420513 1.211747 0.000000 - -1.414204 -0.437428 1.199382 0.000000 - 0.251981 -0.519617 1.060223 0.000000 - -1.309864 -0.822075 0.867811 0.000000 - -1.297587 -0.843003 0.835611 0.000000 - 0.441893 -0.773488 0.621586 0.000000 - -1.177648 -1.088639 0.417893 0.000000 - -1.157490 -1.103104 0.355265 0.000000 - 0.612269 -0.872440 0.117388 0.000000 - -1.036981 -1.194280 -0.094401 0.000000 - -1.009500 -1.183810 -0.189251 0.000000 - 0.746410 -0.806692 -0.403020 0.000000 - -0.901553 -1.128466 -0.619356 0.000000 - -0.870385 -1.074141 -0.736659 0.000000 - 0.831152 -0.582609 -0.888646 0.000000 - -0.784621 -0.897216 -1.105769 0.000000 - -0.755699 -0.786636 -1.225722 0.000000 - 0.858170 -0.222099 -1.291871 0.000000 - -0.697704 -0.522763 -1.505890 0.000000 - -0.677833 -0.354658 -1.603098 0.000000 - 0.824802 0.239522 -1.573140 0.000000 - -0.649404 -0.041574 -1.780221 0.000000 - -0.706784 0.695925 -1.889415 0.000000 - -0.658730 0.736592 -1.883874 0.000000 - -0.668648 0.702570 -1.892432 0.000000 - -0.100404 0.565887 -1.825600 0.000000 - -0.644519 0.499174 -1.901571 0.000000 - 0.212390 0.502190 -1.757227 0.000000 - -0.644645 0.172593 -1.829515 0.000000 - 0.788018 0.386174 -1.630899 0.000000 - 1.087587 0.339670 -1.471147 0.000000 - 1.239714 0.326819 -1.383692 0.000000 - 1.384714 0.052221 -1.121465 0.000000 - 1.327545 0.318017 -1.324946 0.000000 - 1.411868 -0.057374 -1.039913 0.000000 - 1.452614 -0.298540 -0.722123 0.000000 - 1.471876 -0.393372 -0.590052 0.000000 - 1.478366 -0.523403 -0.237484 0.000000 - 1.484768 -0.586998 -0.051838 0.000000 - 1.461820 -0.608890 0.286399 0.000000 - 1.449411 -0.619469 0.521562 0.000000 - 1.406423 -0.554605 0.804053 0.000000 - 1.369441 -0.488085 1.073717 0.000000 - 1.318295 -0.371251 1.274975 0.000000 - 1.252839 -0.206338 1.550646 0.000000 - -1.326723 0.788308 0.629516 0.000000 - -0.547117 1.095874 0.376454 0.000000 - -0.835057 0.862115 -1.273128 0.000000 - 0.986839 0.848904 1.028268 0.000000 - -1.455220 0.306201 1.219645 0.000000 - 1.021477 0.641703 1.298926 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 462 - 1 - 0.000000 - - - - - - 0.938503 0.047552 0.341982 0.000000 - 0.014153 0.984340 -0.175712 0.000000 - -0.344982 0.169746 0.923133 0.000000 - - - - 0.080155 0.054204 -0.163570 0.000000 - - - 463 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 464 - 0 - 63 - 0 0 0 0 - - - 0.277823 -0.285000 1.764780 0.000000 - 0.829025 -0.476250 0.751562 0.000000 - 0.295033 -0.003830 1.782071 0.000000 - 0.192192 -0.569704 1.688796 0.000000 - 0.591329 -0.962859 0.752211 0.000000 - 0.117148 -0.802808 1.628212 0.000000 - 0.113019 -0.825623 1.617186 0.000000 - 0.030347 -1.121243 1.315380 0.000000 - 0.226404 -1.357818 0.688461 0.000000 - -0.009718 -1.266838 1.167570 0.000000 - -0.214970 -1.608657 0.626656 0.000000 - -0.229942 -1.622457 0.566583 0.000000 - -0.223041 -1.620510 0.607648 0.000000 - -0.256950 -1.647968 0.528992 0.000000 - -0.831342 -1.893828 -0.712825 0.000000 - -0.762390 -1.854807 -0.422287 0.000000 - -0.975064 -1.883385 -0.772467 0.000000 - -0.997731 -1.878594 -0.743098 0.000000 - -0.517298 -1.938460 -0.656856 0.000000 - -0.598509 -1.837816 -0.135878 0.000000 - -0.305009 -1.904092 -0.634057 0.000000 - 0.014972 -1.849767 -0.606395 0.000000 - 0.204001 -1.755319 -0.604667 0.000000 - 0.500960 -1.604356 -0.608794 0.000000 - 0.648304 -1.463501 -0.626760 0.000000 - 0.893057 -1.226308 -0.663808 0.000000 - 0.986883 -1.057165 -0.697829 0.000000 - 1.152861 -0.752724 -0.766034 0.000000 - 1.188615 -0.574997 -0.810948 0.000000 - 0.916155 0.054318 0.686562 0.000000 - 1.254984 -0.230088 -0.905431 0.000000 - 1.235082 -0.062433 -0.955371 0.000000 - 0.844166 0.576824 0.563581 0.000000 - 1.189574 0.290349 -1.068310 0.000000 - 1.122238 0.432494 -1.117520 0.000000 - 0.620126 1.040037 0.394680 0.000000 - 0.963248 0.757672 -1.238703 0.000000 - 0.860659 0.863563 -1.282225 0.000000 - 0.266035 1.398565 0.196427 0.000000 - 0.598331 1.126325 -1.399949 0.000000 - 0.474343 1.190429 -1.434138 0.000000 - -0.183362 1.617311 -0.011739 0.000000 - 0.130542 1.360499 -1.536331 0.000000 - -0.638990 1.660686 -0.328929 0.000000 - -0.538602 1.588623 -0.754152 0.000000 - -0.768453 1.619767 -0.478412 0.000000 - -0.623658 1.661613 -0.305640 0.000000 - -0.102670 1.434913 -1.287104 0.000000 - -0.549692 1.665724 -0.189776 0.000000 - 0.105063 1.371101 -1.541985 0.000000 - -0.331040 1.667656 0.164684 0.000000 - -0.297769 1.666359 0.230229 0.000000 - -0.126105 1.558148 0.658707 0.000000 - -0.064309 1.514112 0.831334 0.000000 - 0.008968 1.351776 1.172409 0.000000 - 0.059544 1.224009 1.442449 0.000000 - 0.069169 1.081139 1.636377 0.000000 - 0.069061 1.090273 1.635370 0.000000 - 0.200902 0.807145 1.733675 0.000000 - 0.250816 0.566695 1.762658 0.000000 - 0.306579 0.269753 1.801043 0.000000 - -1.341094 0.558346 0.031408 0.000000 - -0.761021 0.562735 0.961962 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 465 - 1 - 0.000000 - - - - - - 0.941790 -0.040058 0.333808 0.000000 - 0.039058 0.999190 0.009709 0.000000 - -0.333926 0.003894 0.942591 0.000000 - - - - 0.031305 -0.016677 -0.006595 0.000000 - - - 466 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 467 - 0 - 35 - 0 0 0 0 - - - -1.201609 0.142060 -0.057478 0.000000 - 0.336939 0.338295 -0.478657 0.000000 - 0.213421 -0.036319 -0.849649 0.000000 - -1.273085 0.022821 -0.158440 0.000000 - -1.051429 0.398358 0.169487 0.000000 - -0.965094 0.476922 0.304840 0.000000 - 0.483291 0.573792 -0.013617 0.000000 - 0.182487 0.583012 0.089605 0.000000 - -0.941927 0.506761 0.348854 0.000000 - 0.499299 0.587885 0.022975 0.000000 - 0.791912 0.576340 -0.020251 0.000000 - 1.132900 0.579375 -0.083564 0.000000 - 1.168749 0.584655 -0.057860 0.000000 - 0.812455 0.406553 -0.421125 0.000000 - 0.719968 0.353829 -0.520649 0.000000 - 0.319813 0.009938 -0.839530 0.000000 - 0.295506 -0.012487 -0.859510 0.000000 - 0.168015 -0.123002 -0.909364 0.000000 - 0.206661 -0.100426 -0.907625 0.000000 - -0.429301 -0.441167 -0.832261 0.000000 - -0.459290 -0.450795 -0.816228 0.000000 - -0.445223 -0.427166 -0.834358 0.000000 - -0.969750 -0.179341 -0.431228 0.000000 - -1.305217 -0.017710 -0.185601 0.000000 - -1.298895 -0.055481 -0.197154 0.000000 - 1.125881 -0.126009 0.473700 0.000000 - 0.786736 -0.265305 0.616088 0.000000 - 0.475403 -0.424066 0.620849 0.000000 - 0.437978 -0.589021 0.297946 0.000000 - 0.801686 -0.396725 0.256333 0.000000 - 0.376039 -0.347536 0.751687 0.000000 - -0.784215 -0.019602 0.716260 0.000000 - -0.880708 -0.059803 0.547260 0.000000 - 0.430129 -0.589027 0.291514 0.000000 - -1.307274 -0.003833 -0.234572 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 468 - 1 - 0.000000 - - - - - - 0.906315 -0.079412 0.415075 0.000000 - -0.142047 0.867795 0.476187 0.000000 - -0.398016 -0.490535 0.775215 0.000000 - - - - -0.139952 -0.270917 -0.072032 0.000000 - - - 469 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 470 - 0 - 48 - 0 0 0 0 - - - -0.760568 -1.455847 -0.189445 0.000000 - -0.656653 -1.383128 -0.323220 0.000000 - -0.304131 -1.358251 -0.245512 0.000000 - -0.757263 -1.456110 -0.175972 0.000000 - -0.596520 -1.317091 -0.394496 0.000000 - 0.829258 -1.077000 -0.287166 0.000000 - 0.836435 -1.079528 -0.285402 0.000000 - -0.374871 -1.044484 -0.679372 0.000000 - 0.825387 -1.053671 -0.317215 0.000000 - -0.310772 -0.907750 -0.754972 0.000000 - 0.738012 -0.681304 -0.598446 0.000000 - -0.174367 -0.589526 -0.927940 0.000000 - 0.720674 -0.598865 -0.658412 0.000000 - -0.134992 -0.397948 -0.970856 0.000000 - 0.628182 -0.212684 -0.795733 0.000000 - -0.074920 -0.062971 -1.044347 0.000000 - 0.597036 -0.072207 -0.843132 0.000000 - -0.076471 0.151001 -1.034130 0.000000 - 0.507150 0.296408 -0.851606 0.000000 - -0.086361 0.483360 -1.017038 0.000000 - 0.466594 0.474438 -0.852889 0.000000 - -0.130696 0.682983 -0.951964 0.000000 - 0.384749 0.803563 -0.748136 0.000000 - -0.207603 0.995631 -0.848634 0.000000 - 0.342171 0.987127 -0.686585 0.000000 - -0.283855 1.150454 -0.743397 0.000000 - 0.272480 1.259997 -0.481171 0.000000 - -0.324650 1.248305 -0.686191 0.000000 - -0.237404 1.404422 -0.525568 0.000000 - 0.236017 1.415273 -0.360592 0.000000 - -0.141226 1.547767 -0.276150 0.000000 - 0.182472 1.615206 -0.063096 0.000000 - -0.039070 1.708693 0.010027 0.000000 - 0.158594 1.716681 0.092924 0.000000 - 0.133683 1.819989 0.431612 0.000000 - 0.046807 1.803313 0.381146 0.000000 - 0.149124 1.813067 0.426021 0.000000 - 0.050300 1.826158 0.439668 0.000000 - 0.059231 1.828584 0.445975 0.000000 - 0.582870 -0.138539 0.917726 0.000000 - 0.588429 -0.464624 1.012976 0.000000 - 0.668024 -0.479153 0.953664 0.000000 - -0.727033 0.170223 -0.018104 0.000000 - -0.365486 0.621320 0.863522 0.000000 - -0.143631 1.333779 0.609216 0.000000 - -0.776226 0.091212 -0.119933 0.000000 - -0.183468 -0.586849 1.201847 0.000000 - -0.348894 0.498193 0.904857 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 471 - 1 - 0.000000 - - - - - - 0.885320 -0.362470 0.291247 0.000000 - 0.419982 0.892165 -0.166302 0.000000 - -0.199561 0.269549 0.942082 0.000000 - - - - -0.051448 0.157000 0.135060 0.000000 - - - 472 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 473 - 0 - 43 - 0 0 0 0 - - - 0.069365 -1.403164 0.255719 0.000000 - 0.099274 -1.402098 0.236415 0.000000 - 0.037814 -1.419637 0.169482 0.000000 - 0.071556 -1.403279 0.252333 0.000000 - 0.262540 -1.222400 0.573208 0.000000 - 0.298547 -1.170923 0.646701 0.000000 - 0.242826 -1.113383 0.671359 0.000000 - 0.308578 -1.157994 0.665752 0.000000 - 0.531881 -0.803572 0.956404 0.000000 - 0.435664 -0.716624 0.985402 0.000000 - 0.549735 -0.779668 0.974647 0.000000 - 0.812658 -0.379591 1.114363 0.000000 - 0.658902 -0.250675 1.147712 0.000000 - 0.841195 -0.341051 1.125972 0.000000 - 1.114190 0.061045 1.109543 0.000000 - 0.890659 0.238793 1.142339 0.000000 - 1.154270 0.114673 1.104777 0.000000 - 1.413472 0.517246 0.946792 0.000000 - 1.290839 0.526497 0.968765 0.000000 - 1.384464 0.490584 0.955891 0.000000 - 1.059801 0.580019 1.026499 0.000000 - 1.322147 0.363925 1.003928 0.000000 - 0.066768 0.786023 0.960219 0.000000 - -0.930502 1.002348 0.882254 0.000000 - -1.204062 1.058915 0.844374 0.000000 - -1.158202 0.575324 0.887565 0.000000 - -1.242758 1.085025 0.851969 0.000000 - -1.127038 0.444134 0.869757 0.000000 - -1.023012 -0.058001 0.782322 0.000000 - -0.956379 -0.273495 0.687149 0.000000 - -0.853897 -0.623690 0.522881 0.000000 - -0.750136 -0.866448 0.313109 0.000000 - -0.667463 -1.065589 0.134762 0.000000 - -0.131337 -1.503188 -0.280024 0.000000 - -0.482084 -1.340001 -0.343584 0.000000 - -0.417937 -1.375910 -0.531897 0.000000 - -0.217065 -1.474183 -0.704194 0.000000 - -0.124086 -1.499123 -0.257256 0.000000 - -0.537850 -1.256602 -0.194159 0.000000 - 0.331969 -0.155722 -1.554628 0.000000 - 0.360862 0.608573 -1.804501 0.000000 - 0.787956 0.533029 -1.380197 0.000000 - -0.661318 0.865988 -0.979590 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 474 - 1 - 0.000000 - - - - - - 0.960485 0.181201 -0.211271 0.000000 - -0.127903 0.961510 0.243187 0.000000 - 0.247205 -0.206555 0.946691 0.000000 - - - - 0.073211 -0.023462 -0.040671 0.000000 - - - 475 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 476 - 0 - 46 - 0 0 0 0 - - - 0.481752 0.110122 1.382887 0.000000 - 0.566068 -0.091272 1.172183 0.000000 - 0.756601 -0.100826 1.154291 0.000000 - 0.219779 0.328488 1.513632 0.000000 - 0.022601 0.305199 1.452190 0.000000 - 0.270485 0.282767 1.494840 0.000000 - -0.765993 0.215654 1.240275 0.000000 - -0.753754 0.221656 1.222889 0.000000 - 0.304591 0.259182 1.486437 0.000000 - -0.706677 0.026426 1.053668 0.000000 - -0.661015 -0.184540 0.866895 0.000000 - -0.658490 -0.312110 0.646731 0.000000 - 0.638656 -0.362576 0.709202 0.000000 - -0.661542 -0.464133 0.378687 0.000000 - -0.694417 -0.512748 0.162113 0.000000 - 0.699834 -0.476849 0.183522 0.000000 - -0.755373 -0.589507 -0.193682 0.000000 - -0.799181 -0.579726 -0.348879 0.000000 - 0.743615 -0.422973 -0.353335 0.000000 - -0.868581 -0.578996 -0.604792 0.000000 - -0.762402 -0.557041 -0.708768 0.000000 - 0.241819 0.091323 -1.377565 0.000000 - 0.144822 0.081690 -1.405500 0.000000 - 0.195385 0.158645 -1.440702 0.000000 - 0.336888 0.015989 -1.261353 0.000000 - -0.072330 -0.116272 -1.253343 0.000000 - 0.674832 -0.239984 -0.854446 0.000000 - -0.295545 -0.310014 -1.101575 0.000000 - 0.683273 -0.244061 -0.842014 0.000000 - -0.643589 -0.499386 -0.804514 0.000000 - 0.725920 -0.262007 -0.781531 0.000000 - 0.843931 -0.321743 -0.615468 0.000000 - 0.892046 -0.401875 -0.408899 0.000000 - 0.905007 -0.418191 -0.362572 0.000000 - 0.979168 -0.448856 0.090451 0.000000 - 0.995176 -0.451749 0.171290 0.000000 - 1.040282 -0.346121 0.592222 0.000000 - 1.054061 -0.317725 0.694293 0.000000 - 0.799513 -0.128233 1.097689 0.000000 - 1.053961 -0.287258 0.766578 0.000000 - 0.668016 0.430127 -0.441199 0.000000 - 0.149137 0.661585 -1.201420 0.000000 - 0.455430 0.563474 -0.158629 0.000000 - 0.165057 0.667857 -1.195568 0.000000 - 0.756708 0.316409 -0.356091 0.000000 - -1.116300 0.308661 0.054726 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 477 - 1 - 0.000000 - - - - - - 0.995299 -0.074969 -0.061317 0.000000 - 0.082247 0.988568 0.126368 0.000000 - 0.051143 -0.130817 0.990086 0.000000 - - - - 0.009026 -0.253688 0.115282 0.000000 - - - 478 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 479 - 0 - 76 - 0 0 0 0 - - - 0.154058 -1.071807 -0.073258 0.000000 - -1.503407 -0.913743 -0.231005 0.000000 - 0.165981 -0.643423 -0.403491 0.000000 - 0.193077 -0.134755 -0.585589 0.000000 - -1.269717 0.004743 -0.724808 0.000000 - 0.232694 0.404471 -0.601799 0.000000 - -1.372918 -0.496667 -0.549954 0.000000 - 1.680033 -0.726625 -0.738037 0.000000 - 0.158481 -1.377983 0.372883 0.000000 - -1.648436 -1.205668 0.200913 0.000000 - -1.203879 0.541469 -0.738522 0.000000 - 0.280962 0.921573 -0.450557 0.000000 - 0.957009 1.451256 -0.164515 0.000000 - 0.333163 1.366023 -0.146624 0.000000 - 0.384199 1.694359 0.280340 0.000000 - 0.476951 1.686623 0.218534 0.000000 - 1.006360 1.428794 -0.203547 0.000000 - 1.006757 1.331799 -0.305686 0.000000 - 1.030944 1.104464 -0.471480 0.000000 - 1.061277 0.874359 -0.636949 0.000000 - 1.112899 0.671442 -0.711421 0.000000 - 1.204595 0.338458 -0.831286 0.000000 - 1.253418 0.207123 -0.840928 0.000000 - 1.422570 -0.222862 -0.869562 0.000000 - 1.444202 -0.268386 -0.859700 0.000000 - 1.611888 -0.598095 -0.784296 0.000000 - 1.683901 -0.740775 -0.765612 0.000000 - 1.693457 -0.751143 -0.763862 0.000000 - 1.701716 -0.781745 -0.756889 0.000000 - 1.708896 -1.139066 -0.465326 0.000000 - 1.711343 -1.173814 -0.438866 0.000000 - 1.708401 -1.171178 -0.445872 0.000000 - 1.702939 -1.481848 0.012648 0.000000 - 1.692782 -1.511080 0.076485 0.000000 - 1.510123 -1.560880 0.320515 0.000000 - 1.143568 -1.506028 0.336214 0.000000 - 1.696939 -1.496911 0.057556 0.000000 - 0.158678 -1.396424 0.365023 0.000000 - -0.177019 -1.375559 0.369776 0.000000 - -1.544274 -1.297932 0.392041 0.000000 - -1.612818 -1.232806 0.214829 0.000000 - -1.634164 -1.217414 0.163159 0.000000 - -1.641243 -1.212166 0.162848 0.000000 - -1.840775 -0.931778 -0.325488 0.000000 - -1.898149 -0.856266 -0.448237 0.000000 - -1.920678 -0.584396 -0.682887 0.000000 - -1.940839 -0.753316 -0.552959 0.000000 - -1.901427 -0.428428 -0.808104 0.000000 - -1.860161 -0.136116 -0.918734 0.000000 - -1.834071 0.081570 -0.999248 0.000000 - -1.809392 0.239870 -1.009722 0.000000 - -1.695276 0.366806 -0.966552 0.000000 - -1.600168 0.471103 -0.934531 0.000000 - -1.513831 0.553868 -0.900144 0.000000 - -1.148348 0.870389 -0.653404 0.000000 - -0.973725 1.024648 -0.591016 0.000000 - -0.898023 1.086267 -0.542169 0.000000 - -0.506180 1.439177 -0.244769 0.000000 - -0.239477 1.610882 0.010512 0.000000 - -0.399770 1.521495 -0.137532 0.000000 - -0.021091 1.732805 0.212691 0.000000 - 0.359344 1.723705 0.312107 0.000000 - 0.186608 1.808640 0.463858 0.000000 - 0.440407 1.699052 0.240052 0.000000 - -1.860851 -0.238882 -0.394427 0.000000 - -1.862012 -0.236567 -0.396398 0.000000 - -1.858142 -0.224919 -0.391540 0.000000 - -0.559822 0.457445 0.864663 0.000000 - -1.510746 -0.505040 0.478557 0.000000 - -1.480789 -0.611584 0.569311 0.000000 - -1.377970 0.638620 -0.676452 0.000000 - -1.800541 0.173125 -0.787956 0.000000 - 0.026790 1.105804 1.045175 0.000000 - 0.512564 0.474904 0.867363 0.000000 - 1.539099 0.057740 -0.267894 0.000000 - 1.245122 0.879672 -0.166033 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 480 - 1 - 0.000000 - - - - - - 0.895167 0.432078 -0.109476 0.000000 - -0.405676 0.891526 0.201515 0.000000 - 0.184671 -0.135978 0.973348 0.000000 - - - - 0.139111 -0.321140 0.290806 0.000000 - - - 481 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 482 - 0 - 64 - 0 0 0 0 - - - -0.111250 1.727903 0.890612 0.000000 - -0.292561 1.749827 0.369965 0.000000 - -0.246195 1.731091 0.934322 0.000000 - 0.242517 1.602990 0.773879 0.000000 - 0.166971 1.582117 0.137734 0.000000 - 0.379309 1.552541 0.732283 0.000000 - 0.675238 1.323227 0.641284 0.000000 - 0.558088 1.263410 -0.059093 0.000000 - 0.799544 1.224684 0.606764 0.000000 - 1.011598 0.918585 0.548869 0.000000 - 0.842424 0.824918 -0.201211 0.000000 - 1.108159 0.776542 0.526397 0.000000 - 1.220148 0.427311 0.505257 0.000000 - 0.992091 0.309631 -0.274680 0.000000 - 1.274890 0.252210 0.499065 0.000000 - 1.281320 -0.104325 0.514538 0.000000 - 0.992425 -0.231924 -0.272301 0.000000 - 1.283528 -0.296753 0.527401 0.000000 - 1.189242 -0.626325 0.575887 0.000000 - 0.843428 -0.746654 -0.194325 0.000000 - 1.133483 -0.816505 0.608538 0.000000 - 0.952159 -1.089589 0.683671 0.000000 - 0.559755 -1.184127 -0.048422 0.000000 - 0.839715 -1.256287 0.734438 0.000000 - 0.591480 -1.450260 0.828029 0.000000 - 0.169259 -1.501530 0.151085 0.000000 - 0.431108 -1.573345 0.892733 0.000000 - 0.139761 -1.673285 0.995772 0.000000 - -0.289774 -1.667857 0.384634 0.000000 - -0.022646 -1.725899 1.031465 0.000000 - -0.004533 -1.731742 1.050568 0.000000 - -0.562120 -1.683133 0.505647 0.000000 - -0.865572 -1.719988 0.213151 0.000000 - -0.713655 -1.718585 0.050529 0.000000 - -0.600462 -1.721877 -0.083767 0.000000 - -0.410173 -1.634008 -0.345103 0.000000 - -0.282591 -1.570861 -0.529451 0.000000 - -0.161533 -1.420524 -0.741644 0.000000 - -0.046126 -1.268668 -0.956119 0.000000 - 0.012060 -1.090964 -1.109082 0.000000 - 0.085894 -0.845320 -1.321931 0.000000 - 0.093624 -0.667805 -1.416299 0.000000 - 0.100846 -0.342665 -1.591221 0.000000 - 0.072343 -0.183455 -1.634364 0.000000 - -0.002308 0.189915 -1.738006 0.000000 - -0.054252 0.321680 -1.740031 0.000000 - -0.179090 0.644718 -1.751080 0.000000 - -0.179706 0.671228 -1.729701 0.000000 - -0.181039 0.817904 -1.571142 0.000000 - -0.199936 1.152866 -1.208065 0.000000 - -0.247525 1.354026 -0.863603 0.000000 - -0.293292 1.519641 -0.577558 0.000000 - -0.420223 1.695667 -0.024500 0.000000 - -0.450710 1.734382 0.099566 0.000000 - -0.593957 1.762032 0.554035 0.000000 - -0.683867 1.749734 0.806823 0.000000 - -0.623958 1.733617 1.066197 0.000000 - -0.706862 1.719299 1.014510 0.000000 - -0.715334 1.729674 0.896981 0.000000 - -0.751649 1.715869 0.974978 0.000000 - -0.650247 1.732154 1.075709 0.000000 - -1.174250 -0.572103 0.115811 0.000000 - -1.169212 -0.641891 0.059691 0.000000 - -1.107324 -0.943645 0.118092 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 483 - 1 - 0.000000 - - - - - - 1.000000 0.000000 0.000000 0.000000 - 0.000000 1.000000 0.000000 0.000000 - 0.000000 0.000000 1.000000 0.000000 - - - - 0.000000 0.000000 0.000000 0.000000 - - - 484 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 485 - 0 - 8 - 0 0 0 0 - - - -17.020262 -1.407098 13.169413 0.000000 - 17.020262 -1.407098 13.169413 0.000000 - -17.020262 1.407098 13.169413 0.000000 - 17.020262 1.407098 13.169413 0.000000 - -17.020262 1.407098 -13.169413 0.000000 - 17.020262 1.407098 -13.169413 0.000000 - -17.020262 -1.407098 -13.169413 0.000000 - 17.020262 -1.407098 -13.169413 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 486 - 1 - 0.000000 - - - - - - 0.780502 -0.501667 0.373024 0.000000 - 0.382838 0.855276 0.349196 0.000000 - -0.494218 -0.129741 0.859602 0.000000 - - - - 0.213697 0.164281 -0.102246 0.000000 - - - 487 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 488 - 0 - 50 - 0 0 0 0 - - - -1.048270 -0.003646 0.367004 0.000000 - -1.004334 0.578821 -0.385466 0.000000 - -1.399631 0.213131 -0.436926 0.000000 - -1.300280 0.056219 -0.056548 0.000000 - -0.700763 -0.090131 0.951035 0.000000 - -0.689995 -0.114464 0.967955 0.000000 - -0.678243 -0.088534 1.008855 0.000000 - -0.670743 -0.096060 1.031832 0.000000 - -0.394537 -0.142089 1.544629 0.000000 - -0.190932 0.086846 1.023797 0.000000 - -0.299137 -0.141722 1.751979 0.000000 - -0.282042 -0.137113 1.751617 0.000000 - 0.037914 -0.059728 1.622470 0.000000 - 0.347592 0.138322 1.011600 0.000000 - 0.271742 -0.007074 1.531072 0.000000 - 0.780866 0.039435 1.091981 0.000000 - 0.872910 0.034847 0.932520 0.000000 - 0.839792 0.043716 1.041657 0.000000 - 0.955329 0.040704 0.883105 0.000000 - 1.591628 -0.316762 -0.841206 0.000000 - 1.530222 -0.207937 -0.784693 0.000000 - 1.539774 -0.210945 -0.577598 0.000000 - 1.591407 -0.295206 -0.857023 0.000000 - 1.404037 0.065640 -0.635279 0.000000 - 1.491666 -0.117054 -0.212907 0.000000 - 1.277571 0.198894 -0.561575 0.000000 - 1.294731 -0.012812 0.324674 0.000000 - 1.051268 0.433426 -0.438693 0.000000 - 1.245646 0.005750 0.457789 0.000000 - 0.903060 0.515266 -0.395471 0.000000 - 0.582233 0.690192 -0.310681 0.000000 - 0.448766 0.720439 -0.296601 0.000000 - 0.043086 0.810860 -0.263746 0.000000 - -0.042700 0.806901 -0.267530 0.000000 - -0.513204 0.783766 -0.302398 0.000000 - -0.534390 0.776923 -0.305370 0.000000 - -0.744473 0.706892 -0.354967 0.000000 - -1.040455 0.630257 -0.414915 0.000000 - -1.068376 0.623358 -0.425477 0.000000 - -1.471988 0.388540 -0.573985 0.000000 - -1.486879 0.385082 -0.577024 0.000000 - -1.493587 0.344201 -0.570897 0.000000 - -1.504660 0.077443 -0.493200 0.000000 - -1.537829 0.090871 -0.516564 0.000000 - -1.385776 0.069694 -0.238754 0.000000 - 1.027518 -0.455593 -0.770992 0.000000 - -0.421382 -0.684209 0.066134 0.000000 - -0.930391 -0.516950 -0.631769 0.000000 - -1.304484 0.064361 -0.728171 0.000000 - -1.341581 -0.166663 -0.687520 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 489 - 1 - 0.000000 - - - - - - 0.810132 0.479821 0.336834 0.000000 - -0.320998 0.843836 -0.430002 0.000000 - -0.490557 0.240236 0.837640 0.000000 - - - - 0.060836 0.167956 0.071016 0.000000 - - - 490 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 491 - 0 - 29 - 0 0 0 0 - - - -0.243518 -0.458576 -0.976009 0.000000 - -0.313628 0.196007 0.457069 0.000000 - -0.174062 -0.176103 -1.324129 0.000000 - -0.222905 -0.574481 -0.700884 0.000000 - -0.221927 -0.276309 0.705720 0.000000 - -0.186586 -0.740334 -0.320933 0.000000 - 0.087762 -0.923172 0.666392 0.000000 - -0.013105 -0.742476 0.801916 0.000000 - 0.019950 -0.904871 0.465991 0.000000 - -0.020820 -0.724443 0.811285 0.000000 - -0.040739 -0.857592 0.243644 0.000000 - -0.051138 -0.650887 0.850078 0.000000 - -0.165379 -0.155788 0.981801 0.000000 - -0.177862 -0.067972 1.007458 0.000000 - -0.192252 0.414295 1.023354 0.000000 - -0.193943 0.401391 1.026099 0.000000 - -0.205604 0.470608 0.938893 0.000000 - -0.195970 0.753440 0.515222 0.000000 - -0.236340 0.663884 0.195525 0.000000 - -0.192703 0.802807 0.443602 0.000000 - -0.166072 0.866314 0.325827 0.000000 - -0.180060 0.805218 0.103235 0.000000 - -0.066101 0.313981 -1.052562 0.000000 - -0.149068 -0.090187 -1.436364 0.000000 - -0.032039 0.134172 -1.509359 0.000000 - -0.088127 0.023357 -1.495727 0.000000 - 0.206604 0.593221 0.481284 0.000000 - 0.598444 0.109619 -0.008264 0.000000 - -0.028259 0.132205 -1.463063 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 492 - 1 - 0.000000 - - - - - - 0.860363 -0.506807 0.054068 0.000000 - 0.458324 0.815709 0.352929 0.000000 - -0.222970 -0.278866 0.934087 0.000000 - - - - -0.024495 -0.107537 0.018802 0.000000 - - - 493 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 494 - 0 - 33 - 0 0 0 0 - - - 0.647772 -0.095041 0.602946 0.000000 - 0.555914 -0.342086 0.529317 0.000000 - 0.628928 -0.388792 0.502723 0.000000 - 0.657172 -0.071779 0.616564 0.000000 - 0.417475 -0.421678 0.489845 0.000000 - 0.606498 -0.639547 0.317255 0.000000 - 0.020220 -0.641997 0.381850 0.000000 - 0.590270 -0.873674 0.138884 0.000000 - -0.042105 -0.647094 0.371671 0.000000 - 0.487028 -1.069881 -0.117089 0.000000 - 0.572297 -0.995592 -0.010911 0.000000 - -0.200238 -0.658255 0.347187 0.000000 - -0.437094 -0.839413 0.093466 0.000000 - 0.381704 -1.164026 -0.248773 0.000000 - -0.565294 -0.780612 0.267912 0.000000 - -0.594369 -0.799080 0.273259 0.000000 - -0.619102 -0.798885 0.279664 0.000000 - -0.416320 -0.845085 0.118061 0.000000 - -0.301971 -0.901501 0.035876 0.000000 - 0.281033 -1.208845 -0.400076 0.000000 - -0.211275 1.123779 -0.205747 0.000000 - -0.244592 1.170771 -0.029992 0.000000 - 0.150454 1.157113 -0.205534 0.000000 - -0.256118 1.174050 -0.027927 0.000000 - 0.676304 1.017611 0.185525 0.000000 - 0.651342 1.100414 -0.223374 0.000000 - 0.231108 -0.935590 -0.578631 0.000000 - -0.816789 0.236220 -0.369256 0.000000 - 0.592372 0.096259 -0.398043 0.000000 - -0.912500 0.184577 -0.210463 0.000000 - -0.813188 0.518488 0.147904 0.000000 - -0.900642 -0.469737 0.321829 0.000000 - -0.853290 -0.134833 0.392557 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 495 - 1 - 0.000000 - - - - - - 0.962658 -0.085875 0.256738 0.000000 - 0.033146 0.978609 0.203043 0.000000 - -0.268683 -0.186951 0.944912 0.000000 - - - - 0.243952 -0.167843 -0.107657 0.000000 - - - 496 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 497 - 0 - 43 - 0 0 0 0 - - - 1.039976 -0.108249 -0.169325 0.000000 - 0.905066 -0.319821 0.050472 0.000000 - 0.794078 -0.303017 -0.216702 0.000000 - 1.039528 -0.097062 -0.191442 0.000000 - 0.853159 -0.404392 0.141926 0.000000 - 0.646718 -0.606430 0.465508 0.000000 - 0.304618 -0.532170 -0.243587 0.000000 - 0.499191 -0.740690 0.686869 0.000000 - 0.511045 -0.742476 0.680184 0.000000 - 0.278546 -0.780029 0.729074 0.000000 - -0.231940 -0.602574 -0.235285 0.000000 - -0.024052 -0.832709 0.794098 0.000000 - -0.703880 -0.522510 -0.216837 0.000000 - -0.014991 -0.837833 0.791266 0.000000 - -1.302165 0.002468 -0.784536 0.000000 - -1.314230 0.000256 -0.757004 0.000000 - -1.272623 -0.022456 -0.766681 0.000000 - -1.252216 -0.025885 -0.763960 0.000000 - -1.158700 -0.132309 -0.811803 0.000000 - -1.161573 -0.144658 -0.708667 0.000000 - -0.836069 -0.297143 -0.891389 0.000000 - -0.745842 -0.499192 -0.282004 0.000000 - -0.673481 -0.376057 -0.934647 0.000000 - -0.739967 -0.504005 -0.266646 0.000000 - -0.337627 -0.431707 -0.987744 0.000000 - -0.131165 -0.461975 -1.023902 0.000000 - 0.177349 -0.419102 -1.048308 0.000000 - 0.415054 -0.382052 -1.070911 0.000000 - 0.665611 -0.264492 -1.069008 0.000000 - 0.872487 -0.178494 -0.966309 0.000000 - 0.760375 -0.224303 -1.069039 0.000000 - 1.107037 0.010239 -0.687306 0.000000 - 1.114994 0.017549 -0.673707 0.000000 - 1.111975 0.006293 -0.685023 0.000000 - 0.056356 0.295370 1.364438 0.000000 - -0.140872 -0.026765 1.403259 0.000000 - -0.111233 -0.076802 1.412362 0.000000 - 0.013543 -0.015142 1.412095 0.000000 - 0.113506 0.473936 1.269224 0.000000 - -0.016960 0.848783 0.746618 0.000000 - -1.033109 0.285337 0.039500 0.000000 - 0.396809 0.690147 -0.776451 0.000000 - 0.494986 0.758336 -0.670775 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 498 - 1 - 0.000000 - - - - - - 0.697870 0.210095 0.684717 0.000000 - -0.214436 0.973445 -0.080131 0.000000 - -0.683370 -0.090908 0.724391 0.000000 - - - - -0.125315 -0.183984 0.084187 0.000000 - - - 499 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 500 - 0 - 34 - 0 0 0 0 - - - -1.184960 0.576836 0.275827 0.000000 - 0.337760 0.605606 0.386486 0.000000 - 0.194225 1.046593 0.106815 0.000000 - -1.195611 0.751712 0.168237 0.000000 - -1.172156 0.280085 0.452807 0.000000 - -1.146518 0.095373 0.499298 0.000000 - 0.466276 0.094776 0.512405 0.000000 - -1.104714 -0.248312 0.580897 0.000000 - -1.066889 -0.429834 0.568661 0.000000 - 0.567170 -0.435812 0.472212 0.000000 - -0.999886 -0.782050 0.540261 0.000000 - -0.943182 -1.012559 0.452262 0.000000 - -0.471797 -0.913392 0.422315 0.000000 - -0.952233 -0.949512 0.471323 0.000000 - 0.605057 -0.716851 0.374971 0.000000 - 1.632071 -0.429464 0.037709 0.000000 - 2.010179 -0.347214 -0.061042 0.000000 - 1.971534 -0.192664 0.004115 0.000000 - 1.840365 0.004848 0.056239 0.000000 - 1.652602 0.295126 0.125626 0.000000 - 1.353084 0.546963 0.139195 0.000000 - 1.131104 0.735987 0.144561 0.000000 - 0.564056 1.028715 0.072283 0.000000 - 0.456121 1.084747 0.056772 0.000000 - 0.110322 1.184487 -0.028509 0.000000 - -0.864847 0.958895 0.006729 0.000000 - -0.143829 1.214627 -0.113674 0.000000 - -1.190741 0.793487 0.136273 0.000000 - -1.072256 0.889853 0.049593 0.000000 - -0.462825 -0.498466 -0.851359 0.000000 - -0.336014 -0.213396 -0.886964 0.000000 - 1.154708 -0.375943 -0.386440 0.000000 - -0.772446 -0.638158 -0.594604 0.000000 - -0.371101 -0.013886 -0.801080 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 501 - 1 - 0.000000 - - - - - - 0.699558 -0.557454 0.447061 0.000000 - 0.404350 0.824645 0.395552 0.000000 - -0.589169 -0.095942 0.802294 0.000000 - - - - -0.025514 0.253344 -0.170900 0.000000 - - - 502 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 503 - 0 - 51 - 0 0 0 0 - - - 1.082339 -0.155548 0.781795 0.000000 - 0.564684 0.009453 1.015651 0.000000 - 0.555036 -0.363211 1.315045 0.000000 - 1.292523 -0.082644 0.565195 0.000000 - 1.286599 0.063480 0.332471 0.000000 - 0.481343 0.350320 0.603464 0.000000 - 1.353016 -0.060145 0.484241 0.000000 - 1.220246 0.219009 0.166790 0.000000 - 1.093918 0.343546 -0.082102 0.000000 - 0.329570 0.551425 0.124464 0.000000 - 0.999589 0.435832 -0.275998 0.000000 - 0.847683 0.468344 -0.540159 0.000000 - 0.124256 0.593175 -0.374444 0.000000 - 0.734184 0.489786 -0.744904 0.000000 - 0.572815 0.427637 -0.996073 0.000000 - -0.114495 0.471571 -0.844464 0.000000 - 0.449980 0.375526 -1.194066 0.000000 - 0.296360 0.227957 -1.405764 0.000000 - -0.363332 0.198571 -1.239668 0.000000 - 0.174810 0.104160 -1.579481 0.000000 - 0.044452 -0.109388 -1.731248 0.000000 - -0.597940 -0.199107 -1.521465 0.000000 - -0.064344 -0.297760 -1.863348 0.000000 - -0.592661 -0.270997 -1.571095 0.000000 - -0.089363 -0.352450 -1.893898 0.000000 - -0.595877 -0.412681 -1.661463 0.000000 - -0.601846 -0.177429 -1.530514 0.000000 - -0.606275 -0.171318 -1.524506 0.000000 - -0.622496 0.233904 -1.233457 0.000000 - -0.630721 0.324230 -1.164358 0.000000 - -0.638255 0.564286 -0.859220 0.000000 - -0.647323 0.694326 -0.688902 0.000000 - -0.648228 0.799962 -0.418142 0.000000 - -0.654473 0.903386 -0.145560 0.000000 - -0.650907 0.915699 0.074351 0.000000 - -0.651427 0.932212 0.412223 0.000000 - -0.644686 0.881362 0.587195 0.000000 - -0.638392 0.779198 0.930702 0.000000 - -0.628670 0.674913 1.072232 0.000000 - -0.616547 0.459496 1.360758 0.000000 - -0.603375 0.294222 1.470767 0.000000 - 0.530680 -0.372351 1.334433 0.000000 - -0.587985 0.003253 1.661526 0.000000 - 0.524610 -0.375012 1.339161 0.000000 - -0.420921 -0.320529 1.679014 0.000000 - -0.571005 -0.235829 1.724407 0.000000 - -0.572777 -0.296984 1.747690 0.000000 - 0.335598 -0.440747 1.436121 0.000000 - 0.224059 -0.482836 -1.299346 0.000000 - -0.562317 -0.808284 0.010329 0.000000 - -0.557747 -0.804363 0.417170 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 504 - 1 - 0.000000 - - - - - - 0.769113 0.194984 0.608643 0.000000 - 0.230726 0.803394 -0.548930 0.000000 - -0.596013 0.562619 0.572913 0.000000 - - - - -0.296284 0.293714 0.154533 0.000000 - - - 505 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 506 - 0 - 69 - 0 0 0 0 - - - 0.630671 1.490238 0.952471 0.000000 - 0.610549 1.505064 0.878866 0.000000 - 0.118578 1.682096 0.683647 0.000000 - 0.518016 1.504643 1.036335 0.000000 - 0.557648 1.570285 0.643020 0.000000 - -0.003910 1.730709 0.586645 0.000000 - 0.492715 1.552012 0.297891 0.000000 - -0.262744 1.723123 0.080301 0.000000 - -0.274061 1.780008 0.366679 0.000000 - 0.459023 1.538694 0.100418 0.000000 - 0.415150 1.396583 -0.233717 0.000000 - -0.227180 1.486225 -0.405136 0.000000 - 0.397498 1.325455 -0.394012 0.000000 - 0.382516 1.076484 -0.661660 0.000000 - -0.230697 1.113391 -0.797438 0.000000 - 0.379114 0.951554 -0.791721 0.000000 - 0.708405 -1.521566 -0.613645 0.000000 - 0.742246 -1.363709 -0.760519 0.000000 - 0.783562 -1.500659 -0.684655 0.000000 - -0.527381 -1.692602 0.862963 0.000000 - -0.523885 -1.691407 0.852578 0.000000 - -0.532458 -1.682369 0.853229 0.000000 - -0.857521 -1.638953 0.460547 0.000000 - -0.319297 -1.778731 0.476163 0.000000 - -0.743257 -1.653824 0.672590 0.000000 - -0.857755 -1.638990 0.458385 0.000000 - -0.103977 -1.773179 0.192035 0.000000 - -0.900218 -1.617804 0.385224 0.000000 - -0.861644 -1.600916 0.348748 0.000000 - -0.870638 -1.628285 0.434611 0.000000 - -0.517322 -1.609668 -0.025373 0.000000 - 0.086663 -1.766907 -0.047918 0.000000 - -0.425765 -1.571702 -0.132068 0.000000 - 0.509619 -1.624046 -0.469202 0.000000 - -0.134993 -1.430227 -0.493347 0.000000 - 0.560699 -1.607731 -0.510712 0.000000 - -0.031781 -1.282568 -0.646884 0.000000 - 0.711896 -1.273906 -0.836678 0.000000 - 0.104351 -1.073917 -0.859178 0.000000 - 0.709193 -1.261424 -0.846238 0.000000 - 0.139725 -0.853224 -0.961291 0.000000 - 0.603603 -0.821272 -1.035691 0.000000 - 0.177544 -0.575958 -1.087295 0.000000 - 0.579267 -0.710322 -1.082120 0.000000 - 0.144727 -0.366588 -1.112163 0.000000 - 0.511076 -0.338458 -1.128561 0.000000 - 0.077296 0.015209 -1.155292 0.000000 - 0.474667 -0.119138 -1.153666 0.000000 - 0.026264 0.140953 -1.135897 0.000000 - 0.438398 0.159301 -1.106829 0.000000 - -0.186987 0.641292 -1.055960 0.000000 - 0.405696 0.453683 -1.053572 0.000000 - -0.194148 0.652964 -1.051126 0.000000 - 0.392636 0.645554 -0.954872 0.000000 - -0.230721 0.706430 -1.027865 0.000000 - -0.451754 1.088528 -0.901025 0.000000 - -0.499108 1.160064 -0.876414 0.000000 - -0.753777 1.441818 -0.679385 0.000000 - -0.876841 1.568428 -0.588885 0.000000 - -0.668309 1.710359 -0.201936 0.000000 - -0.889644 1.586838 -0.585134 0.000000 - -0.583134 1.761533 -0.051919 0.000000 - -0.413492 1.787600 0.251395 0.000000 - 0.742051 -0.146358 0.706092 0.000000 - 0.802135 -0.268486 0.512915 0.000000 - 0.791094 0.055048 0.699333 0.000000 - 0.189881 -0.186233 1.107006 0.000000 - -0.161853 -1.061794 1.016209 0.000000 - 0.483701 -0.321197 0.872791 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 507 - 1 - 0.000000 - - - - - - 0.977161 -0.204508 -0.057733 0.000000 - 0.211052 0.965664 0.151492 0.000000 - 0.024769 -0.160217 0.986771 0.000000 - - - - 0.020288 0.143868 0.269107 0.000000 - - - 508 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 509 - 0 - 50 - 0 0 0 0 - - - 0.098246 0.888906 -0.461909 0.000000 - 0.628068 0.539523 1.583877 0.000000 - 1.103100 0.380538 1.378689 0.000000 - 0.420872 0.617405 -0.801526 0.000000 - -0.269227 0.360981 -2.116015 0.000000 - 0.637346 0.220506 -1.099581 0.000000 - 0.726409 -0.262929 -1.326841 0.000000 - 0.174896 -0.009716 -1.847626 0.000000 - -0.270872 0.364642 -2.121370 0.000000 - -0.366337 0.609225 -2.042734 0.000000 - -0.358747 0.606602 -2.049167 0.000000 - -0.280008 0.710842 -1.746109 0.000000 - -0.183274 0.838432 -1.400839 0.000000 - -0.124953 0.946266 -0.830807 0.000000 - -0.112774 0.973203 -0.688523 0.000000 - -0.161249 0.974688 -0.198338 0.000000 - -0.193477 0.969053 0.032989 0.000000 - -0.577930 0.503593 1.510417 0.000000 - -0.574498 0.497611 1.512572 0.000000 - -0.750501 0.562479 1.209197 0.000000 - -0.761740 0.560755 1.214207 0.000000 - -0.451309 0.516960 1.535276 0.000000 - -0.559693 0.712604 0.942880 0.000000 - 0.074091 0.591355 1.637260 0.000000 - -0.425039 0.821585 0.743187 0.000000 - 0.098345 0.589570 1.639088 0.000000 - -0.212611 0.954025 0.114220 0.000000 - 0.291646 0.570415 1.657514 0.000000 - 0.630252 0.543701 1.692436 0.000000 - 0.666725 0.537614 1.699057 0.000000 - 1.060967 0.404892 1.596751 0.000000 - 1.010035 0.417975 1.697043 0.000000 - 1.106634 0.396910 1.516780 0.000000 - 1.183286 0.349212 1.301541 0.000000 - 1.307904 0.205011 0.837074 0.000000 - 1.312982 0.155608 0.714958 0.000000 - 1.336169 -0.096904 0.177503 0.000000 - 1.283994 -0.266928 -0.103973 0.000000 - 1.219791 -0.480551 -0.439784 0.000000 - 0.947759 -0.872231 -1.012235 0.000000 - 0.969719 -0.907903 -0.953261 0.000000 - 0.976218 -0.912878 -0.963251 0.000000 - 0.872552 -0.757480 -1.143367 0.000000 - 1.046921 -0.774908 -0.797412 0.000000 - 0.727368 -0.538367 -1.394960 0.000000 - 0.374239 -0.189106 -1.689678 0.000000 - -0.639907 -1.149648 0.869428 0.000000 - -0.671292 -1.210605 0.802031 0.000000 - -1.454164 -0.216953 -0.251262 0.000000 - -0.709922 0.324521 -1.714827 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 510 - 1 - 0.000000 - - - - - - 0.795920 0.448524 0.406618 0.000000 - -0.135227 0.786394 -0.602743 0.000000 - -0.590106 0.424749 0.686559 0.000000 - - - - -0.066894 0.293589 0.139174 0.000000 - - - 511 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 512 - 0 - 45 - 0 0 0 0 - - - -1.264341 0.725895 0.109276 0.000000 - -1.258929 0.715984 0.144787 0.000000 - -1.555965 0.332206 -0.333987 0.000000 - -1.652693 0.312398 0.055866 0.000000 - -1.245621 0.742661 0.109765 0.000000 - -1.233649 0.744727 0.120237 0.000000 - -0.407910 1.226950 0.306139 0.000000 - -0.902632 0.781026 -0.257657 0.000000 - 0.119559 1.529972 0.433871 0.000000 - 0.296075 1.591529 0.466466 0.000000 - -0.482430 0.705470 -0.590458 0.000000 - 0.280661 1.607435 0.474334 0.000000 - 0.592817 1.510389 0.188076 0.000000 - 1.136956 0.384267 -0.496115 0.000000 - 1.160482 0.508223 -0.464142 0.000000 - 1.155063 0.330660 -0.523008 0.000000 - 0.950217 0.599272 -0.508421 0.000000 - 1.182972 0.808930 -0.341800 0.000000 - 0.707667 0.665473 -0.525386 0.000000 - 1.055923 1.217680 -0.096817 0.000000 - 1.166519 1.122605 -0.143504 0.000000 - 0.306888 0.767466 -0.556733 0.000000 - 0.999589 1.269964 -0.074576 0.000000 - 0.141458 0.750585 -0.569250 0.000000 - 0.670240 1.463649 0.134839 0.000000 - -0.420940 0.706319 -0.600754 0.000000 - -0.370242 0.702629 -0.606743 0.000000 - -0.493834 0.713443 -0.592536 0.000000 - -0.496683 0.709480 -0.594489 0.000000 - -0.988756 0.596034 -0.512683 0.000000 - -1.082678 0.569169 -0.500273 0.000000 - -1.461672 0.348556 -0.419498 0.000000 - -1.528307 0.321995 -0.410653 0.000000 - 0.683371 0.881755 0.664051 0.000000 - 0.511524 0.044609 0.721060 0.000000 - 0.733898 0.852955 0.620265 0.000000 - -0.153728 -1.201054 0.674258 0.000000 - 0.422486 -1.762130 0.001609 0.000000 - 0.161031 -1.356732 0.793581 0.000000 - 0.132460 -1.561977 -0.221053 0.000000 - 0.431533 -1.769562 -0.012377 0.000000 - -0.762575 -0.795223 0.450709 0.000000 - 0.098195 -1.487586 -0.383624 0.000000 - 0.666139 -1.663858 -0.458812 0.000000 - 0.848540 -1.065640 -0.561610 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 513 - 1 - 0.000000 - - - - - - 0.666992 0.337554 -0.664213 0.000000 - -0.443753 0.896095 0.009788 0.000000 - 0.598502 0.288218 0.747479 0.000000 - - - - 0.053015 -0.300733 0.024304 0.000000 - - - 514 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 515 - 0 - 62 - 0 0 0 0 - - - -0.015088 -1.485293 -1.024312 0.000000 - -0.042853 -1.490780 -0.489220 0.000000 - -0.177322 -1.535921 -1.064891 0.000000 - 0.294294 -1.267201 -0.957367 0.000000 - 0.388256 -1.184417 -0.373801 0.000000 - 0.422585 -1.174492 -0.932911 0.000000 - 0.649423 -0.868436 -0.903073 0.000000 - 0.702128 -0.756133 -0.267983 0.000000 - 0.743399 -0.738492 -0.894274 0.000000 - 0.862645 -0.384171 -0.903744 0.000000 - 0.867947 -0.247840 -0.182142 0.000000 - 0.915752 -0.220096 -0.912215 0.000000 - 0.920776 0.133103 -0.932814 0.000000 - 0.869403 0.290664 -0.124701 0.000000 - 0.921655 0.029687 -0.940914 0.000000 - 0.920184 0.319376 -0.918133 0.000000 - 0.812618 0.666570 -0.915375 0.000000 - 0.706316 0.806585 -0.101298 0.000000 - 0.756106 0.842396 -0.917975 0.000000 - 0.551578 1.137378 -0.948062 0.000000 - 0.394664 1.249331 -0.114230 0.000000 - 0.442113 1.291613 -0.968142 0.000000 - 0.168228 1.502979 -1.025925 0.000000 - -0.034985 1.575500 -0.162227 0.000000 - 0.009206 1.622809 -1.063685 0.000000 - -0.390682 1.745963 -0.619509 0.000000 - -0.540486 1.753144 -0.240575 0.000000 - -0.027034 1.648800 -1.072632 0.000000 - -0.489854 1.773580 -0.496882 0.000000 - -0.696502 1.771100 -0.245787 0.000000 - -0.724241 1.707255 0.115185 0.000000 - -0.808580 1.754511 -0.118081 0.000000 - -0.675577 1.674469 0.272076 0.000000 - -0.513013 1.497960 0.710879 0.000000 - -0.400275 1.363620 1.035044 0.000000 - -0.310121 1.201693 1.263621 0.000000 - -0.165032 0.925297 1.651043 0.000000 - -0.129452 0.822868 1.731485 0.000000 - -0.087485 0.701202 1.827628 0.000000 - 0.039275 0.445907 1.895170 0.000000 - 0.059329 0.379324 1.898303 0.000000 - 0.182944 -0.084847 1.929127 0.000000 - 0.184973 -0.135252 1.922108 0.000000 - 0.182367 -0.626562 1.867977 0.000000 - 0.175133 -0.659683 1.856525 0.000000 - 0.037855 -1.126697 1.717785 0.000000 - 0.027538 -1.146379 1.705435 0.000000 - -0.120837 -1.476971 1.248736 0.000000 - 0.004404 -1.207921 1.674783 0.000000 - -0.170809 -1.528912 1.068131 0.000000 - -0.344058 -1.681007 0.525269 0.000000 - -0.533893 -1.706445 -0.061669 0.000000 - -0.548928 -1.645298 -0.602937 0.000000 - -0.612891 -1.715115 -0.295501 0.000000 - -0.735482 -1.656263 -0.665344 0.000000 - -0.789087 -1.660130 -0.824473 0.000000 - -0.617942 -1.650838 -1.023159 0.000000 - -0.517185 -1.641532 -1.062068 0.000000 - -0.596731 -1.652480 -1.048799 0.000000 - -0.290701 -1.573756 -1.092181 0.000000 - -0.144428 -0.049661 -1.249842 0.000000 - -0.355512 -0.998288 -1.187238 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 516 - 1 - 0.000000 - - - - - - 0.727518 0.297961 -0.618010 0.000000 - 0.299931 0.672017 0.677077 0.000000 - 0.617056 -0.677947 0.399537 0.000000 - - - - -0.153050 0.197006 -0.151022 0.000000 - - - 517 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 518 - 0 - 40 - 0 0 0 0 - - - 0.484764 0.181296 -0.431911 0.000000 - -0.956799 0.246973 0.141485 0.000000 - 0.737998 0.156741 0.045559 0.000000 - -0.814631 0.227478 0.663133 0.000000 - 0.986265 -0.033143 0.487277 0.000000 - 1.314449 0.343740 -0.351688 0.000000 - 1.311504 0.261583 -0.141509 0.000000 - 1.172099 0.355423 -0.596860 0.000000 - 1.124849 0.359951 -0.681455 0.000000 - 0.996397 0.328552 -0.741791 0.000000 - 0.449784 0.130030 -0.914930 0.000000 - 0.251314 0.038193 -0.898450 0.000000 - 0.357021 0.094970 -0.945544 0.000000 - 0.169068 -0.014348 -0.981409 0.000000 - -0.413599 -0.225829 -1.164273 0.000000 - -0.825318 -0.198007 -0.994493 0.000000 - -0.835356 -0.187595 -0.947374 0.000000 - -0.335441 -0.213641 -1.138808 0.000000 - -0.863504 -0.111353 -0.817892 0.000000 - -0.958379 0.124820 -0.404117 0.000000 - -0.960602 0.134003 -0.372553 0.000000 - -0.984554 0.194179 -0.135932 0.000000 - -1.026298 0.296302 0.130189 0.000000 - -1.033667 0.294350 0.145538 0.000000 - -1.027759 0.302127 0.141241 0.000000 - -0.864019 0.268264 0.637688 0.000000 - -0.856531 0.265952 0.665408 0.000000 - -0.737556 0.171842 0.861000 0.000000 - -0.787622 0.198790 0.850319 0.000000 - -0.331099 0.059018 0.990464 0.000000 - 0.645572 -0.176680 0.921041 0.000000 - -0.107941 -0.042786 1.036322 0.000000 - 0.160125 -0.144744 1.101258 0.000000 - 1.147285 -0.213381 0.734486 0.000000 - 1.269692 0.032865 0.367315 0.000000 - 1.138742 -0.208288 0.747512 0.000000 - 1.316243 0.102002 0.249545 0.000000 - -0.828755 -0.092702 0.673475 0.000000 - -0.824820 -0.091211 0.683182 0.000000 - -0.062964 -0.207829 -1.008848 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 519 - 1 - 0.000000 - - - - - - 0.697191 0.452889 0.555713 0.000000 - -0.528603 0.848399 -0.028240 0.000000 - -0.484255 -0.274063 0.830895 0.000000 - - - - 0.159321 0.103551 0.096018 0.000000 - - - 520 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 521 - 0 - 30 - 0 0 0 0 - - - -0.143671 -0.304132 1.240610 0.000000 - -0.391904 -0.087774 -1.166004 0.000000 - 0.121734 -0.215051 -1.051097 0.000000 - -0.551143 0.031323 -1.346195 0.000000 - -0.305006 -0.026335 -1.503399 0.000000 - -0.606002 0.009318 -1.207839 0.000000 - -0.203617 -0.044507 -1.571527 0.000000 - 0.116059 -0.077849 -1.695069 0.000000 - 0.174139 -0.101576 -1.632220 0.000000 - 0.281748 -0.149504 -1.534060 0.000000 - 0.608516 -0.216632 -0.933590 0.000000 - 0.643697 -0.174654 -0.913029 0.000000 - 0.614179 -0.217285 -0.923858 0.000000 - 0.620969 -0.220862 -0.892005 0.000000 - 0.932765 -0.080453 0.334333 0.000000 - 0.790601 -0.119102 0.458098 0.000000 - 0.414857 -0.268864 0.814926 0.000000 - 0.333476 -0.277942 0.883037 0.000000 - -0.043162 -0.318891 1.199858 0.000000 - -0.150224 -0.321484 1.283096 0.000000 - -0.133291 -0.337127 1.270088 0.000000 - -0.121263 -0.332881 1.271122 0.000000 - -0.337973 -0.293819 1.189977 0.000000 - -0.642209 -0.213021 1.055077 0.000000 - -0.734097 -0.033053 -0.127078 0.000000 - -0.661911 -0.203365 1.036168 0.000000 - -0.863831 -0.075234 0.887690 0.000000 - 0.263399 0.491845 0.693106 0.000000 - -0.120624 0.267785 -0.964763 0.000000 - 0.217403 0.515874 0.663400 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 522 - 1 - 0.000000 - - - - - - 0.940066 -0.069037 -0.333930 0.000000 - 0.025310 0.990716 -0.133570 0.000000 - 0.340051 0.117113 0.933086 0.000000 - - - - -0.170465 -0.144877 -0.006843 0.000000 - - - 523 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 524 - 0 - 29 - 0 0 0 0 - - - 1.141971 -0.319053 0.250459 0.000000 - -0.429467 -0.343152 0.022254 0.000000 - -0.127644 -0.325591 -0.426649 0.000000 - 1.187009 -0.314567 0.183315 0.000000 - 0.900493 -0.331889 0.636481 0.000000 - 0.800675 -0.300756 0.722653 0.000000 - -0.727121 -0.192908 0.448709 0.000000 - 0.485023 -0.187868 1.008461 0.000000 - 0.099788 0.027701 1.208152 0.000000 - -0.869761 0.045006 0.830858 0.000000 - -0.859930 0.079537 0.849466 0.000000 - 0.281353 -0.073851 1.109129 0.000000 - -0.880816 0.000662 0.718571 0.000000 - -0.936371 -0.207721 0.298407 0.000000 - -0.953086 -0.243782 0.209851 0.000000 - -1.001377 -0.373760 -0.322605 0.000000 - -1.018208 -0.436524 -0.528351 0.000000 - -1.020391 -0.432271 -0.529372 0.000000 - -0.812913 -0.420760 -0.765924 0.000000 - -0.669621 -0.409987 -0.934816 0.000000 - -0.663858 -0.415802 -0.938647 0.000000 - 0.146934 -0.185973 -0.798530 0.000000 - 1.319125 -0.138257 -0.309786 0.000000 - 0.206638 -0.179937 -0.792019 0.000000 - 1.304934 0.073834 -0.640283 0.000000 - 1.296476 -0.168107 -0.230905 0.000000 - -0.723939 0.482305 -0.304083 0.000000 - 0.409357 0.607186 -0.248312 0.000000 - -0.835975 0.427140 -0.203366 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 525 - 1 - 0.000000 - - - - - - 0.709605 -0.648802 0.274803 0.000000 - 0.440886 0.713083 0.545098 0.000000 - -0.549618 -0.265647 0.792055 0.000000 - - - - -0.091277 0.142486 -0.005874 0.000000 - - - 526 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 527 - 0 - 50 - 0 0 0 0 - - - -0.742900 0.548696 0.562127 0.000000 - 0.211123 0.044223 0.420503 0.000000 - -0.619780 0.937982 0.490058 0.000000 - -0.792283 0.401834 0.543681 0.000000 - -0.075894 -0.410754 0.363466 0.000000 - -0.926897 0.032941 0.491525 0.000000 - -0.986365 -0.118971 0.417612 0.000000 - -0.337107 -0.830054 0.143118 0.000000 - -1.018587 -0.471856 0.260191 0.000000 - -0.984026 -0.131441 0.421104 0.000000 - -1.014383 -0.712112 0.058646 0.000000 - -0.547000 -1.172715 -0.218995 0.000000 - -1.014235 -0.933402 -0.133083 0.000000 - -1.007884 -1.032952 -0.253487 0.000000 - -0.562332 -1.176898 -0.192572 0.000000 - -0.471142 -1.242999 -0.165440 0.000000 - 0.002640 -1.581739 -0.045896 0.000000 - -0.004310 -1.576374 -0.087033 0.000000 - 0.250290 -1.584576 0.080235 0.000000 - 0.292989 -1.586159 0.109512 0.000000 - 0.371555 -1.528669 0.207931 0.000000 - 0.396673 -1.417139 0.294361 0.000000 - 0.440279 -1.241361 0.363430 0.000000 - 0.535123 -0.898257 0.495283 0.000000 - 0.615245 -0.636215 0.514520 0.000000 - 0.709175 -0.349219 0.532897 0.000000 - 0.823580 -0.030176 0.455601 0.000000 - 0.495897 0.490420 0.308610 0.000000 - 0.901757 0.175989 0.403067 0.000000 - 1.034921 0.493132 0.204249 0.000000 - 0.750583 0.884203 0.038653 0.000000 - 1.093902 0.625598 0.118315 0.000000 - 1.186575 0.790063 -0.062296 0.000000 - 0.821166 0.989093 -0.061385 0.000000 - 0.120916 1.379235 -0.018407 0.000000 - 0.162745 1.412331 -0.047343 0.000000 - -0.034824 1.286290 0.158890 0.000000 - -0.242834 1.161334 0.291487 0.000000 - -0.518770 1.002129 0.460097 0.000000 - -0.616785 0.943152 0.493147 0.000000 - 0.348761 -1.540481 0.188254 0.000000 - 0.339028 -1.559854 0.105078 0.000000 - 0.379115 -1.488374 -0.044736 0.000000 - 0.543042 -1.161242 -0.139833 0.000000 - -0.515420 1.034410 -0.306691 0.000000 - -0.492806 1.058179 -0.329897 0.000000 - -0.531057 0.344067 -0.618160 0.000000 - -0.675642 0.073386 -0.551393 0.000000 - 0.961354 -0.065827 -0.445498 0.000000 - -0.656673 0.928239 0.142077 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 528 - 1 - 0.000000 - - - - - - 0.924541 -0.032198 -0.379719 0.000000 - -0.183508 0.835671 -0.517667 0.000000 - 0.333988 0.548286 0.766704 0.000000 - - - - 0.057490 0.080270 -0.032472 0.000000 - - - 529 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 530 - 0 - 53 - 0 0 0 0 - - - -0.303040 -0.349334 1.257611 0.000000 - -0.560185 -0.698504 0.454506 0.000000 - -0.229958 -1.067541 0.673707 0.000000 - -0.129696 -0.691120 1.235242 0.000000 - -0.402293 -0.141443 1.273601 0.000000 - -0.474982 0.166974 1.242628 0.000000 - -0.741636 -0.263259 0.188128 0.000000 - -0.534490 0.442132 1.218192 0.000000 - -0.527505 0.694160 1.152012 0.000000 - -0.756507 0.195520 -0.099308 0.000000 - -0.514237 1.002175 1.075003 0.000000 - -0.450036 1.189594 0.989054 0.000000 - -0.603353 0.632849 -0.379621 0.000000 - -0.344625 1.484429 0.858461 0.000000 - -0.240788 1.609699 0.762612 0.000000 - -0.297227 1.005864 -0.625331 0.000000 - -0.090947 1.798774 0.625243 0.000000 - -0.073202 1.793410 0.572363 0.000000 - 0.121768 1.332376 -0.721725 0.000000 - 0.214115 1.644362 -0.262825 0.000000 - 0.355095 1.533163 -0.570785 0.000000 - 0.106736 1.314578 -0.732677 0.000000 - 0.077782 1.713092 0.121229 0.000000 - 0.060186 1.258475 -0.767438 0.000000 - -0.203078 0.855284 -0.982519 0.000000 - -0.264252 0.748191 -1.042202 0.000000 - -0.410108 0.321650 -1.214394 0.000000 - -0.485883 0.083803 -1.321858 0.000000 - -0.500617 0.074361 -1.315706 0.000000 - -0.561444 -0.163097 -1.212026 0.000000 - -0.629731 -0.400744 -1.110817 0.000000 - -0.620175 -0.646126 -0.989858 0.000000 - -0.606801 -0.894630 -0.872103 0.000000 - -0.517537 -1.115066 -0.751938 0.000000 - -0.419439 -1.349424 -0.629145 0.000000 - -0.262955 -1.525232 -0.520888 0.000000 - -0.086164 -1.720611 -0.405748 0.000000 - 0.103425 -1.692890 -0.034874 0.000000 - 0.216639 -1.334211 0.824257 0.000000 - 0.032398 -1.800549 -0.352133 0.000000 - 0.218452 -1.530143 0.486449 0.000000 - 0.316483 -1.369146 0.855923 0.000000 - 0.319395 -1.202126 1.075523 0.000000 - 0.389426 -1.256537 1.051428 0.000000 - 0.256970 -1.152383 1.106455 0.000000 - -0.030193 -0.816213 1.199411 0.000000 - 0.488830 -0.327370 -0.977278 0.000000 - 0.611731 1.107533 -0.566427 0.000000 - 0.973802 0.175013 0.309435 0.000000 - 0.993975 0.057333 0.357415 0.000000 - 0.559331 -0.666944 -0.808820 0.000000 - 0.922787 0.243158 0.349601 0.000000 - 0.991635 0.037713 0.365930 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 531 - 1 - 0.000000 - - - - - - 0.998862 -0.041799 0.022972 0.000000 - 0.045531 0.979103 -0.198201 0.000000 - -0.014207 0.199021 0.979892 0.000000 - - - - -0.311999 0.143146 0.171851 0.000000 - - - 532 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 533 - 0 - 50 - 0 0 0 0 - - - -1.159148 0.455282 -0.240084 0.000000 - 0.152039 0.400769 1.032666 0.000000 - 0.451766 0.552115 0.608325 0.000000 - -0.983073 0.430428 -0.751259 0.000000 - 0.775596 0.536143 0.174968 0.000000 - -0.814641 0.239719 -1.229061 0.000000 - 1.091840 0.354319 -0.224987 0.000000 - -0.670355 -0.098257 -1.626672 0.000000 - 1.369519 0.024361 -0.552345 0.000000 - -1.325635 0.311946 0.254429 0.000000 - -0.519799 -0.248415 1.499730 0.000000 - -0.525137 -0.255221 1.489452 0.000000 - -0.865977 -0.105583 1.164668 0.000000 - 0.021006 0.302729 1.147025 0.000000 - -0.223100 0.127568 1.300114 0.000000 - 0.164230 0.418113 1.061149 0.000000 - 0.178622 0.425899 1.056043 0.000000 - 0.561734 0.577574 0.813845 0.000000 - 0.628478 0.600647 0.776072 0.000000 - 0.985424 0.606346 0.551679 0.000000 - 1.098976 0.605822 0.484966 0.000000 - 1.405664 0.493567 0.292999 0.000000 - 1.544174 0.441425 0.211108 0.000000 - 1.786496 0.237510 0.059997 0.000000 - 1.920874 0.123834 -0.018970 0.000000 - 1.846856 -0.222495 -0.413771 0.000000 - 2.089611 -0.149403 -0.123790 0.000000 - 2.160202 -0.219473 -0.154037 0.000000 - 1.517400 -0.234720 -0.710097 0.000000 - -0.022092 -0.323349 -1.520360 0.000000 - -0.418302 -0.347456 -1.739985 0.000000 - -0.613561 -0.109290 -1.646987 0.000000 - -0.649733 -0.057468 -1.625553 0.000000 - -0.652820 -0.063115 -1.625019 0.000000 - -0.984147 0.251943 -1.293498 0.000000 - -1.019500 0.277812 -1.261753 0.000000 - -1.265290 0.442081 -0.874083 0.000000 - -1.313592 0.468732 -0.803732 0.000000 - -1.468477 0.490448 -0.391147 0.000000 - -1.507411 0.492998 -0.295734 0.000000 - -1.533028 0.364997 0.139525 0.000000 - -1.520591 0.466083 -0.193502 0.000000 - -1.536387 0.342106 0.217117 0.000000 - -1.419831 0.086858 0.630057 0.000000 - -1.495856 0.125695 0.568533 0.000000 - -1.323543 0.064301 0.736923 0.000000 - -0.251476 0.105858 1.318964 0.000000 - -1.443371 0.068535 0.504817 0.000000 - -0.963311 -0.528363 0.289228 0.000000 - -0.284447 -0.551269 1.360752 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 534 - 1 - 0.000000 - - - - - - 0.983455 0.178784 0.029208 0.000000 - -0.155868 0.917274 -0.366488 0.000000 - -0.092314 0.355872 0.929964 0.000000 - - - - -0.302572 -0.071095 0.018698 0.000000 - - - 535 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 536 - 0 - 51 - 0 0 0 0 - - - -1.276630 -0.347839 0.081864 0.000000 - -0.884273 -0.381309 -0.263622 0.000000 - -1.266424 -0.424532 0.375883 0.000000 - -1.209098 -0.075261 -0.466148 0.000000 - -1.141381 -0.025963 -0.580262 0.000000 - -1.202490 -0.045317 -0.523565 0.000000 - -1.158157 0.055071 -0.664326 0.000000 - -1.141982 0.112000 -0.783389 0.000000 - -0.893136 0.125658 -1.324272 0.000000 - -0.780420 0.012970 -1.412421 0.000000 - -0.766555 -0.012693 -1.431778 0.000000 - -0.670765 -0.254565 -1.327464 0.000000 - -0.574555 -0.378096 -1.242722 0.000000 - -0.368539 -0.632143 -1.071738 0.000000 - -0.249336 -0.706124 -0.983404 0.000000 - -0.541125 -0.597088 0.094703 0.000000 - 0.028967 -0.872159 -0.787495 0.000000 - 0.161801 -0.896610 -0.701087 0.000000 - -0.145451 -0.652138 0.459695 0.000000 - 0.482773 -0.951338 -0.502542 0.000000 - 0.620713 -0.925712 -0.423212 0.000000 - 0.264063 -0.540989 0.795645 0.000000 - 0.948548 -0.862132 -0.244668 0.000000 - 1.884000 0.048945 0.106722 0.000000 - 1.803628 -0.041864 0.123393 0.000000 - 1.822964 -0.062263 0.114024 0.000000 - 1.621836 -0.188562 0.235859 0.000000 - 1.737695 -0.229124 0.094476 0.000000 - 1.326778 -0.300891 0.384249 0.000000 - 1.496918 -0.488573 0.007336 0.000000 - 0.951111 -0.436081 0.576863 0.000000 - 1.380900 -0.613321 -0.038977 0.000000 - 0.782195 -0.454858 0.651666 0.000000 - 1.081636 -0.785983 -0.178411 0.000000 - 0.355294 -0.501617 0.841153 0.000000 - 0.111918 -0.517119 0.945977 0.000000 - -0.050151 -0.517774 1.021439 0.000000 - -0.777688 -0.480378 1.318155 0.000000 - -0.940595 -0.481975 1.388363 0.000000 - -1.109222 -0.517840 1.260888 0.000000 - -1.178014 -0.514759 1.156037 0.000000 - -1.170528 -0.518503 1.200749 0.000000 - -1.257939 -0.508500 0.722169 0.000000 - 1.884392 0.381726 0.036714 0.000000 - -0.195730 0.477912 -1.187114 0.000000 - -0.401393 0.546656 -1.113659 0.000000 - -0.344617 1.061243 0.404696 0.000000 - -0.274614 1.122430 0.624410 0.000000 - 1.178238 0.629746 0.253628 0.000000 - -0.365505 0.906619 0.840276 0.000000 - -0.808766 0.057044 1.215537 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 537 - 1 - 0.000000 - - - - - - 0.859792 -0.134780 0.492536 0.000000 - 0.206668 0.973859 -0.094277 0.000000 - -0.466954 0.182849 0.865171 0.000000 - - - - 0.005828 0.161011 0.074764 0.000000 - - - 538 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 539 - 0 - 23 - 0 0 0 0 - - - 0.576709 0.779019 0.201091 0.000000 - 0.622014 0.769384 0.152621 0.000000 - 0.213249 0.837096 -0.138389 0.000000 - 0.156826 0.843684 0.130754 0.000000 - 0.733182 0.755958 0.040641 0.000000 - 1.093614 0.583411 -0.257817 0.000000 - 0.860520 0.652537 -0.229249 0.000000 - 0.983991 0.627756 -0.193781 0.000000 - 0.238287 0.823146 -0.225899 0.000000 - -0.205618 0.922249 -0.222440 0.000000 - -0.594757 1.012577 -0.182463 0.000000 - -0.613356 1.012343 -0.229797 0.000000 - -0.594453 1.008775 -0.001495 0.000000 - 0.324479 -1.111246 -0.221902 0.000000 - 1.292363 -0.119134 -0.247719 0.000000 - 0.887928 -0.429701 0.254754 0.000000 - 0.621701 -0.154591 0.454370 0.000000 - -0.936082 -0.313478 0.314019 0.000000 - -0.846277 -1.075228 -0.211507 0.000000 - -1.045215 -0.123371 -0.201052 0.000000 - -1.114715 0.407163 0.099400 0.000000 - -1.114476 0.403216 0.037218 0.000000 - -0.756090 0.846390 -0.221430 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 540 - 1 - 0.000000 - - - - - - 0.825115 0.470222 0.313171 0.000000 - -0.536547 0.825794 0.173728 0.000000 - -0.176924 -0.311376 0.933672 0.000000 - - - - -0.170513 -0.184021 0.245260 0.000000 - - - 541 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 542 - 0 - 49 - 0 0 0 0 - - - 0.128328 -0.468416 -0.867718 0.000000 - -0.379797 -1.105786 0.592634 0.000000 - -0.392544 -0.332163 -0.920980 0.000000 - -0.864320 -0.923939 0.434906 0.000000 - -0.859548 -0.090803 -0.876810 0.000000 - -1.302165 -0.611998 0.374733 0.000000 - -0.858236 -0.090551 -0.877796 0.000000 - -0.852047 -0.089755 -0.881862 0.000000 - -0.453613 -0.252381 -1.169863 0.000000 - -0.363846 -0.285216 -1.237381 0.000000 - -0.019513 -0.322638 -1.413021 0.000000 - 0.179285 -0.339244 -1.517977 0.000000 - 0.447237 -0.294359 -1.605294 0.000000 - 0.657987 -0.444861 -0.759496 0.000000 - 0.726381 -0.242561 -1.700161 0.000000 - 0.705445 -0.262690 -1.702564 0.000000 - 0.957603 -0.221284 -1.345359 0.000000 - 1.144620 -0.263715 -0.606871 0.000000 - 1.148461 -0.193993 -1.085021 0.000000 - 1.459949 -0.048625 -0.432567 0.000000 - 1.606111 0.490230 0.827580 0.000000 - 1.537909 0.279210 0.804319 0.000000 - 1.613522 0.306784 0.498975 0.000000 - 1.453419 0.010846 0.803500 0.000000 - 1.623096 0.217235 0.308655 0.000000 - 1.311361 -0.210287 0.793691 0.000000 - 1.509032 -0.021187 -0.309516 0.000000 - 1.119420 -0.500964 0.786176 0.000000 - 1.504421 -0.022618 -0.332135 0.000000 - 0.980876 -0.621492 0.776329 0.000000 - 0.662619 -0.892785 0.760535 0.000000 - 0.575296 -0.931927 0.753732 0.000000 - 0.128560 -1.126910 0.729095 0.000000 - 0.121764 -1.128079 0.727219 0.000000 - 0.023452 -1.136625 0.722623 0.000000 - -0.439140 -1.213339 0.694247 0.000000 - -0.501990 -1.222288 0.695892 0.000000 - -0.957520 -1.146138 0.664692 0.000000 - -1.080796 -1.125237 0.661117 0.000000 - -1.409481 -0.917355 0.637240 0.000000 - -1.539550 -0.835592 0.631607 0.000000 - -1.694118 -0.606287 0.618593 0.000000 - -1.585614 -0.281760 0.379242 0.000000 - -1.335728 0.174582 -0.487030 0.000000 - -1.581107 -0.164099 0.232417 0.000000 - -1.501231 0.359797 -0.298854 0.000000 - -1.238057 0.118349 -0.566602 0.000000 - -0.000050 1.258564 0.716904 0.000000 - -0.667967 1.181175 -0.122934 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 543 - 1 - 0.000000 - - - - - - 0.954362 0.282772 -0.096087 0.000000 - -0.292493 0.949986 -0.109425 0.000000 - 0.060339 0.132536 0.989340 0.000000 - - - - -0.104428 0.232843 -0.144961 0.000000 - - - 544 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 545 - 0 - 68 - 0 0 0 0 - - - -0.800600 -0.565477 -0.251842 0.000000 - -0.497804 -0.311604 1.142815 0.000000 - -0.881692 -0.038647 -0.343886 0.000000 - -0.573369 0.219860 1.076226 0.000000 - -0.804488 0.475269 -0.494106 0.000000 - -0.480124 0.747226 0.999891 0.000000 - -0.576489 0.926038 -0.687837 0.000000 - -0.227134 1.218948 0.921267 0.000000 - -0.219923 1.269557 -0.906153 0.000000 - -0.931362 -0.536345 -0.440012 0.000000 - -1.000391 -0.090271 -0.521433 0.000000 - -0.917860 -0.623807 -0.427656 0.000000 - -0.750821 -1.031460 -0.441462 0.000000 - -0.569152 -1.053750 -0.226960 0.000000 - -0.709839 -1.131820 -0.448757 0.000000 - -0.476788 -1.453790 -0.545100 0.000000 - -0.209944 -1.455753 -0.271678 0.000000 - -0.396871 -1.564333 -0.582608 0.000000 - -0.135583 -1.776899 -0.736654 0.000000 - 0.241950 -1.732171 -0.381647 0.000000 - -0.087557 -1.822431 -0.760692 0.000000 - -0.000802 -1.851324 -0.747088 0.000000 - 0.375960 -1.781680 -0.402691 0.000000 - 0.097334 -1.871017 -0.729627 0.000000 - 0.871911 -1.746296 0.191247 0.000000 - 0.892561 -1.731697 0.188123 0.000000 - 0.866308 -1.735463 0.204645 0.000000 - 0.865758 -1.746578 0.216680 0.000000 - 0.640594 -1.652905 0.349421 0.000000 - 0.416553 -1.578376 0.499417 0.000000 - 0.257626 -1.456448 0.623175 0.000000 - 0.005988 -1.256439 0.827659 0.000000 - -0.056447 -1.165161 0.889142 0.000000 - -0.298530 -0.797846 1.140449 0.000000 - -0.298702 -0.799704 1.139076 0.000000 - -0.298476 -0.788586 1.145964 0.000000 - -0.515135 -0.364219 1.400352 0.000000 - -0.561970 -0.266147 1.462864 0.000000 - -0.610492 0.043227 1.588542 0.000000 - -0.622391 0.039620 1.589250 0.000000 - -0.630872 0.236986 1.481109 0.000000 - -0.538434 0.663763 1.226588 0.000000 - -0.518253 0.751762 1.176146 0.000000 - -0.244252 1.215348 0.887533 0.000000 - -0.245094 1.213004 0.889951 0.000000 - -0.246213 1.217924 0.879725 0.000000 - 0.112727 1.562429 0.658951 0.000000 - 0.724116 1.623129 -0.798852 0.000000 - 0.674761 1.601916 -0.854772 0.000000 - 0.648306 1.646106 -0.517305 0.000000 - 0.264738 1.521082 -0.915377 0.000000 - 0.466820 1.718875 0.181156 0.000000 - 0.625453 1.587894 -0.914157 0.000000 - 0.224273 1.502348 -0.915067 0.000000 - 0.144914 1.578561 0.644910 0.000000 - 0.372019 1.703300 0.560327 0.000000 - -0.100646 1.343263 -0.924061 0.000000 - -0.255709 1.270675 -0.928635 0.000000 - -0.268402 1.260711 -0.934395 0.000000 - -0.691134 0.910329 -0.961146 0.000000 - -0.778731 0.833561 -0.972642 0.000000 - -0.914832 0.500015 -0.773257 0.000000 - -0.790270 0.820386 -0.972916 0.000000 - -0.949315 0.416268 -0.720846 0.000000 - -0.992213 -0.007557 -0.550990 0.000000 - -0.023868 -0.757414 -1.147498 0.000000 - 0.323925 0.574197 1.204287 0.000000 - -0.011655 -1.171299 -1.030583 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 546 - 1 - 0.000000 - - - - - - 0.942931 0.220595 0.249439 0.000000 - -0.332396 0.668234 0.665564 0.000000 - -0.019864 -0.710494 0.703423 0.000000 - - - - 0.195386 -0.115327 -0.053679 0.000000 - - - 547 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 548 - 0 - 48 - 0 0 0 0 - - - 1.100199 -0.935313 0.052735 0.000000 - 0.773318 -1.044099 0.032065 0.000000 - 1.110535 -0.842562 -0.010848 0.000000 - 1.057109 -1.058943 0.176922 0.000000 - 0.825111 -1.184578 0.214970 0.000000 - 0.393602 -1.367210 0.176137 0.000000 - 0.511180 -1.387091 0.260046 0.000000 - 0.252987 -1.356288 0.064716 0.000000 - -0.067017 -1.278883 -0.102076 0.000000 - 0.599575 -0.662863 -0.310729 0.000000 - -0.333849 -1.217594 -0.233420 0.000000 - -0.575441 -1.129668 -0.294719 0.000000 - 0.386470 -0.205614 -0.507325 0.000000 - -0.950793 -0.997615 -0.383183 0.000000 - -1.043439 -0.897772 -0.380416 0.000000 - 0.154868 0.282876 -0.538385 0.000000 - -0.956823 -0.993963 -0.384756 0.000000 - -1.183169 -0.553576 -0.412342 0.000000 - -1.033686 -0.902456 -0.387705 0.000000 - -1.161046 -0.646447 -0.407054 0.000000 - -1.197682 -0.345615 -0.374479 0.000000 - -0.072534 0.754732 -0.400804 0.000000 - -1.230650 0.034773 -0.296725 0.000000 - -1.220221 0.167197 -0.241141 0.000000 - -1.147838 0.354508 -0.173761 0.000000 - -0.273437 1.163684 -0.108032 0.000000 - -1.016327 0.695036 -0.056522 0.000000 - -0.391015 1.394653 0.165351 0.000000 - -0.769924 1.145937 0.186503 0.000000 - 0.452779 1.559618 0.127336 0.000000 - 0.402348 1.619962 0.198454 0.000000 - 0.554856 1.466913 -0.011513 0.000000 - 0.709398 1.223087 -0.190893 0.000000 - 0.807636 1.073093 -0.297988 0.000000 - 0.926210 0.774781 -0.387753 0.000000 - 1.003720 0.587524 -0.441075 0.000000 - 1.079038 0.248380 -0.434066 0.000000 - 1.124281 0.056938 -0.427130 0.000000 - 1.146115 -0.310068 -0.310290 0.000000 - 1.157603 -0.467632 -0.257232 0.000000 - 0.156912 -1.159198 0.377441 0.000000 - -0.317935 -0.366284 0.646069 0.000000 - -0.720539 -0.132222 0.532117 0.000000 - -0.800416 -0.191312 0.423810 0.000000 - -0.966988 -0.727795 -0.109011 0.000000 - -0.933673 -0.901434 -0.218781 0.000000 - 0.503533 0.316772 0.557133 0.000000 - -0.972246 -0.947865 -0.361680 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 549 - 1 - 0.000000 - - - - - - 0.878246 0.087909 -0.470059 0.000000 - -0.371678 0.743977 -0.555297 0.000000 - 0.300897 0.662398 0.686069 0.000000 - - - - -0.037943 -0.044133 0.237014 0.000000 - - - 550 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 551 - 0 - 42 - 0 0 0 0 - - - 0.633521 0.183424 -0.990686 0.000000 - 0.639099 0.161025 -0.998118 0.000000 - 0.709876 0.147113 -0.914807 0.000000 - 0.634765 0.180284 -0.991924 0.000000 - 0.239208 0.230928 -1.300519 0.000000 - 0.157520 0.269694 -1.219436 0.000000 - 0.204177 0.232332 -1.330611 0.000000 - -0.267655 0.241119 -1.379831 0.000000 - -0.276395 0.251348 -1.350028 0.000000 - 0.088514 0.207205 -1.405644 0.000000 - -0.582645 1.104368 -0.074375 0.000000 - -0.375749 0.449126 -1.063716 0.000000 - -0.772573 1.119840 0.020651 0.000000 - -0.512470 1.089614 -0.089268 0.000000 - -0.019303 0.991417 -0.156471 0.000000 - 0.092643 0.946425 -0.142037 0.000000 - 0.491983 0.787795 -0.073661 0.000000 - 0.596472 0.717618 -0.015832 0.000000 - 0.924670 0.127022 -0.539188 0.000000 - 0.735880 0.135758 -0.890825 0.000000 - 0.900864 0.513546 0.165843 0.000000 - 0.982735 0.125886 -0.431085 0.000000 - 0.961713 0.441358 0.247254 0.000000 - 1.139882 -0.009062 -0.086209 0.000000 - 1.167057 0.195625 0.538504 0.000000 - 1.225945 -0.086232 0.099467 0.000000 - 1.181930 0.147764 0.603654 0.000000 - 1.288483 -0.254911 0.306905 0.000000 - 1.284330 -0.242676 0.265905 0.000000 - 1.320162 -0.318661 0.531800 0.000000 - 1.196044 0.106641 0.659123 0.000000 - 1.275915 -0.138934 0.792536 0.000000 - -0.611655 -1.169266 -0.022215 0.000000 - -0.740167 -0.885372 0.401419 0.000000 - -0.863277 -0.601892 0.236392 0.000000 - -0.654454 -1.057410 -0.429086 0.000000 - -0.341001 -0.000809 1.469067 0.000000 - -0.376455 0.079820 1.423622 0.000000 - -0.962245 0.849325 0.525148 0.000000 - -0.316973 -0.555834 -1.324781 0.000000 - -0.154788 -0.439990 -1.346467 0.000000 - 0.743854 -0.150717 -0.779679 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 552 - 1 - 0.000000 - - - - - - 0.938923 -0.044744 -0.341207 0.000000 - -0.093401 0.921158 -0.377815 0.000000 - 0.331211 0.386608 0.860717 0.000000 - - - - 0.329255 -0.070790 0.019341 0.000000 - - - 553 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 554 - 0 - 64 - 0 0 0 0 - - - -1.475359 -0.026420 0.712867 0.000000 - -0.030086 -0.002383 0.414181 0.000000 - -1.497253 0.498422 0.583796 0.000000 - 0.008839 -0.540087 0.369511 0.000000 - 1.541383 -0.329451 0.504200 0.000000 - 1.426667 0.197836 0.542209 0.000000 - -0.077886 0.522028 0.290464 0.000000 - -1.572028 0.515303 0.660199 0.000000 - -1.463929 0.573963 0.557707 0.000000 - -1.509556 0.549709 0.606988 0.000000 - -1.628390 0.486753 0.706604 0.000000 - -1.817869 0.269459 0.877802 0.000000 - -1.689512 0.153550 0.827519 0.000000 - -1.781889 0.360978 0.829865 0.000000 - -1.558086 0.030919 0.785391 0.000000 - -1.437254 -0.068433 0.721316 0.000000 - -0.938416 -0.529506 0.589783 0.000000 - -0.636403 -0.797703 0.420930 0.000000 - 0.035082 -1.038534 0.160775 0.000000 - -0.382694 -1.029893 0.271815 0.000000 - 0.078829 -1.431264 -0.165367 0.000000 - 0.431538 -1.450973 -0.196732 0.000000 - 0.092937 -1.440118 -0.168585 0.000000 - 0.207784 -1.564829 -0.351599 0.000000 - 0.609048 -1.364138 -0.091187 0.000000 - 0.090235 -1.441486 -0.174153 0.000000 - 0.944337 -1.115059 0.112783 0.000000 - 1.310150 -0.844848 0.325384 0.000000 - 1.381373 -0.759696 0.363572 0.000000 - 1.564254 -0.548323 0.443970 0.000000 - 1.636649 -0.330819 0.563841 0.000000 - 1.617000 -0.510172 0.489512 0.000000 - 1.645107 -0.288418 0.583054 0.000000 - 1.495955 0.172664 0.591524 0.000000 - 1.646164 -0.210930 0.597553 0.000000 - 1.483951 0.207567 0.590953 0.000000 - 1.300602 0.681857 0.434375 0.000000 - 1.291514 0.707932 0.427322 0.000000 - 1.289406 0.703637 0.431890 0.000000 - -0.129889 0.981915 0.010468 0.000000 - 1.029434 1.134522 0.139311 0.000000 - 1.206297 0.947601 0.281209 0.000000 - 0.995831 1.159123 0.120479 0.000000 - 0.378781 1.258861 -0.145532 0.000000 - -0.181016 1.332335 -0.398467 0.000000 - -0.097848 1.336717 -0.349794 0.000000 - -0.204434 1.343972 -0.392467 0.000000 - -0.331937 1.351815 -0.370735 0.000000 - -0.286854 1.373107 -0.419944 0.000000 - -0.401628 1.326348 -0.310888 0.000000 - -0.760794 1.111920 0.012653 0.000000 - -1.029853 0.953143 0.234871 0.000000 - -0.992754 0.973466 0.221430 0.000000 - -1.164574 0.836393 0.335211 0.000000 - -1.191355 0.809784 0.365655 0.000000 - -1.213196 -0.211504 -0.094926 0.000000 - -0.264951 1.273449 -0.479218 0.000000 - 0.137994 0.640049 -0.744855 0.000000 - -0.192501 -1.161880 -0.704940 0.000000 - 1.177905 0.830009 -0.010880 0.000000 - 1.341988 0.659921 0.133373 0.000000 - 1.589268 -0.045317 0.434319 0.000000 - -1.793112 0.278874 0.852973 0.000000 - -1.764328 0.345578 0.867408 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 555 - 1 - 0.000000 - - - - - - 0.764303 -0.638838 0.087907 0.000000 - 0.564996 0.729107 0.386243 0.000000 - -0.310840 -0.245539 0.918199 0.000000 - - - - -0.205517 -0.199284 -0.195520 0.000000 - - - 556 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 557 - 0 - 45 - 0 0 0 0 - - - 1.181983 0.552373 0.035903 0.000000 - 0.381589 1.116737 -0.324949 0.000000 - 0.577716 1.408105 0.087273 0.000000 - 1.007469 0.998786 0.184119 0.000000 - 1.311750 0.219075 -0.066106 0.000000 - 1.359606 -0.067451 -0.125095 0.000000 - 0.105717 0.747543 -0.609394 0.000000 - 1.440876 -0.545747 -0.215798 0.000000 - 1.428915 -0.680463 -0.224457 0.000000 - -0.222858 0.336719 -0.738162 0.000000 - 1.397413 -1.053471 -0.247961 0.000000 - 1.334148 -1.134941 -0.255838 0.000000 - 1.294799 -1.168566 -0.255982 0.000000 - -0.571915 -0.075452 -0.698639 0.000000 - 0.932676 -1.502363 -0.232912 0.000000 - 0.888163 -1.529164 -0.218552 0.000000 - -0.907232 -0.448566 -0.494738 0.000000 - 0.497225 -1.786025 -0.060401 0.000000 - 0.445347 -1.805189 -0.027610 0.000000 - -1.195955 -0.746074 -0.146501 0.000000 - -0.647333 -1.242478 -0.008816 0.000000 - 0.184587 -1.917532 0.158764 0.000000 - -1.216707 -0.768258 -0.116931 0.000000 - -1.286736 -0.717052 -0.132576 0.000000 - -1.284578 -0.707248 -0.143039 0.000000 - -1.287348 -0.683768 -0.164569 0.000000 - -1.225819 -0.299062 -0.445896 0.000000 - -1.215811 -0.218988 -0.498961 0.000000 - -1.100098 0.163264 -0.643770 0.000000 - -1.063440 0.295436 -0.689579 0.000000 - -0.911996 0.646338 -0.711544 0.000000 - -0.845378 0.809142 -0.718423 0.000000 - -0.672821 1.109395 -0.632482 0.000000 - -0.582972 1.272304 -0.583300 0.000000 - -0.400442 1.507911 -0.401684 0.000000 - -0.301612 1.640349 -0.297655 0.000000 - -0.118448 1.797526 -0.028269 0.000000 - -0.028369 1.877903 0.110938 0.000000 - 0.644074 1.574994 0.449633 0.000000 - 0.125073 1.939917 0.420675 0.000000 - 0.648169 1.575263 0.444641 0.000000 - 0.917936 1.144578 0.243090 0.000000 - -0.496499 0.088300 0.931861 0.000000 - -0.645940 -0.281239 0.978794 0.000000 - 0.193168 -1.755548 0.326007 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 558 - 1 - 0.000000 - - - - - - 0.916068 -0.218120 0.336515 0.000000 - 0.337244 0.873073 -0.352150 0.000000 - -0.216992 0.436081 0.873354 0.000000 - - - - 0.346012 0.201864 0.146039 0.000000 - - - 559 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 560 - 0 - 55 - 0 0 0 0 - - - 0.913889 0.134685 -0.523483 0.000000 - -0.506515 0.743886 -0.373394 0.000000 - 1.181734 0.554721 -0.312447 0.000000 - 0.662240 -0.341322 -0.575696 0.000000 - -0.687918 0.237751 -0.433029 0.000000 - 0.451371 -0.826773 -0.464028 0.000000 - -0.874585 -0.258080 -0.323918 0.000000 - 0.301879 -1.274240 -0.199409 0.000000 - -1.048278 -0.695167 -0.056742 0.000000 - -0.348106 1.210859 -0.150794 0.000000 - 1.145620 0.595448 -0.320108 0.000000 - 1.100821 0.958784 -0.018817 0.000000 - 1.153149 0.557632 -0.355049 0.000000 - 1.157897 0.554041 -0.350851 0.000000 - 1.162062 0.073649 -0.634579 0.000000 - 1.167859 -0.032492 -0.692725 0.000000 - 1.108688 -0.413753 -0.780108 0.000000 - 1.083847 -0.604670 -0.821778 0.000000 - 0.985027 -0.891708 -0.769560 0.000000 - 0.914658 -1.109167 -0.729371 0.000000 - 0.771840 -1.339381 -0.550784 0.000000 - 0.675349 -1.502012 -0.424619 0.000000 - 0.449979 -1.691908 -0.043583 0.000000 - 0.228378 -1.639996 0.192326 0.000000 - 0.387090 -1.747034 0.067076 0.000000 - 0.174686 -1.795873 0.490910 0.000000 - -0.465252 -1.459176 0.424322 0.000000 - 0.145996 -1.826162 0.541893 0.000000 - -1.080828 -1.107818 0.313169 0.000000 - -1.079924 -1.084336 0.317237 0.000000 - -1.080995 -1.068668 0.301512 0.000000 - -1.099026 -0.933520 0.181838 0.000000 - -1.140921 -0.693350 -0.076030 0.000000 - -1.149473 -0.662535 -0.104978 0.000000 - -1.182219 -0.264329 -0.353315 0.000000 - -1.195629 -0.151796 -0.419595 0.000000 - -1.205623 0.206747 -0.517801 0.000000 - -1.215829 0.412480 -0.571094 0.000000 - -1.209423 0.701895 -0.559394 0.000000 - -1.208196 0.974863 -0.545746 0.000000 - -1.107728 1.160235 -0.453232 0.000000 - -1.196279 1.108840 -0.505275 0.000000 - -0.821127 1.338392 -0.295535 0.000000 - -0.189169 1.563385 0.164446 0.000000 - -0.171591 1.571361 0.173793 0.000000 - 1.092618 1.031568 0.043146 0.000000 - -0.169841 1.571389 0.166810 0.000000 - 0.999487 1.270672 0.373991 0.000000 - 0.820268 1.440327 0.522429 0.000000 - 0.955702 1.386121 0.539092 0.000000 - 0.109304 1.627674 0.400454 0.000000 - 0.959417 1.402776 0.541321 0.000000 - -1.121305 0.665171 -0.147029 0.000000 - -1.076138 -0.091795 0.254991 0.000000 - -0.657830 0.721025 0.282129 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 561 - 1 - 0.000000 - - - - - - 0.767560 -0.579668 0.273564 0.000000 - 0.639597 0.720643 -0.267562 0.000000 - -0.042045 0.380340 0.923890 0.000000 - - - - 0.185066 0.047493 0.038386 0.000000 - - - 562 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 563 - 0 - 24 - 0 0 0 0 - - - 0.284491 0.907433 0.162430 0.000000 - 0.404171 0.758380 0.252137 0.000000 - 0.854629 0.002870 -0.069283 0.000000 - 0.858963 -0.013644 -0.072574 0.000000 - 0.196581 0.931783 -0.114824 0.000000 - 0.268571 0.279541 0.448452 0.000000 - 0.291838 -0.249552 0.494597 0.000000 - -0.499476 0.784866 0.089121 0.000000 - 0.042008 0.930302 -0.256645 0.000000 - -0.468686 0.825800 -0.157590 0.000000 - -0.514453 0.781575 0.085161 0.000000 - 0.835088 -0.186876 -0.198010 0.000000 - 0.637815 -0.348697 -0.459502 0.000000 - 0.655548 -0.368789 -0.442311 0.000000 - -1.039429 0.402392 -0.089813 0.000000 - -0.254721 -0.929726 -0.136291 0.000000 - -0.084560 -0.949206 -0.133243 0.000000 - 0.101412 -0.797558 0.253739 0.000000 - 0.045989 -0.725413 0.414541 0.000000 - -0.516225 -0.757414 0.173555 0.000000 - 0.619084 -0.371760 -0.450748 0.000000 - 0.587299 -0.398389 -0.445627 0.000000 - -0.379718 -0.695011 -0.248250 0.000000 - -1.075852 0.188489 -0.094027 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 564 - 1 - 0.000000 - - - - - - 0.754245 0.637955 0.155329 0.000000 - -0.602854 0.766590 -0.221147 0.000000 - -0.260156 0.073159 0.962791 0.000000 - - - - 0.079015 0.068228 0.175201 0.000000 - - - 565 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 566 - 0 - 46 - 0 0 0 0 - - - 0.531421 0.007053 0.996946 0.000000 - -0.674661 -0.701075 0.512324 0.000000 - -0.311453 -1.100321 0.557064 0.000000 - 0.562924 -0.269839 0.963250 0.000000 - 0.492873 0.406051 1.042528 0.000000 - 0.479104 0.584497 1.017352 0.000000 - -0.956403 -0.280202 0.320475 0.000000 - 0.450706 1.050606 0.949599 0.000000 - 0.448826 1.065736 0.944070 0.000000 - 0.439562 1.090179 0.908293 0.000000 - -1.129060 0.121032 0.000335 0.000000 - 0.225088 1.368225 0.605963 0.000000 - -0.045528 1.679910 -0.393805 0.000000 - 0.039605 1.765956 -0.387829 0.000000 - 0.045562 1.777409 -0.407731 0.000000 - -0.479949 1.212106 -0.370161 0.000000 - 0.061817 1.649412 0.027565 0.000000 - -1.127630 0.508076 -0.343944 0.000000 - 0.072034 1.618731 0.139976 0.000000 - -1.144489 0.485418 -0.343642 0.000000 - 0.193380 1.413929 0.519624 0.000000 - -1.172724 0.447128 -0.343919 0.000000 - -1.418739 -0.081669 -0.358808 0.000000 - -1.427247 -0.071608 -0.362429 0.000000 - -1.412618 -0.165176 -0.271665 0.000000 - -1.283637 -0.487829 -0.024399 0.000000 - -1.247448 -0.580579 0.042272 0.000000 - -1.003706 -0.880458 0.218493 0.000000 - -1.072985 -0.836997 0.167616 0.000000 - -0.917525 -0.934591 0.286731 0.000000 - -0.425413 -1.142898 0.489149 0.000000 - -0.521181 -1.119559 0.445427 0.000000 - -0.385853 -1.152491 0.507846 0.000000 - -0.167989 -1.190590 0.546561 0.000000 - 0.681391 -1.075136 0.604212 0.000000 - 0.355303 -1.255953 0.539293 0.000000 - 0.742111 -1.305396 0.438334 0.000000 - 0.654007 -0.909902 0.718498 0.000000 - 0.279442 -1.252770 0.552398 0.000000 - 0.600510 -0.558643 0.855076 0.000000 - 0.767240 0.304527 -0.771744 0.000000 - 0.906041 -1.065992 -0.865495 0.000000 - 0.863969 -1.037394 -0.980606 0.000000 - 0.494267 -0.993090 -0.890498 0.000000 - -0.233610 -0.812883 -0.708247 0.000000 - 0.658246 1.219690 -0.621077 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 567 - 1 - 0.000000 - - - - - - 0.747144 0.622311 -0.233465 0.000000 - -0.470538 0.743308 0.475486 0.000000 - 0.469436 -0.245402 0.848179 0.000000 - - - - -0.175003 0.061738 0.331545 0.000000 - - - 568 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 569 - 0 - 42 - 0 0 0 0 - - - -0.106896 0.178809 -0.868863 0.000000 - 0.386692 0.177782 -0.470750 0.000000 - 0.133414 0.087588 -0.841142 0.000000 - -0.395516 0.245881 -0.848626 0.000000 - 0.079224 0.377130 -0.072806 0.000000 - -0.835435 0.341101 -0.821188 0.000000 - -0.933051 0.343117 -0.793492 0.000000 - -0.226492 0.413946 0.372043 0.000000 - -1.463297 0.347225 -0.649309 0.000000 - -1.456282 0.350006 -0.652366 0.000000 - -0.500561 0.284558 0.820319 0.000000 - -1.582961 0.296795 -0.564010 0.000000 - -1.472136 0.342809 -0.644101 0.000000 - -1.585528 0.314371 -0.585795 0.000000 - -1.663349 0.224306 -0.191853 0.000000 - -0.550000 0.274186 0.853375 0.000000 - -0.559048 0.258219 0.853621 0.000000 - -1.663559 0.238788 -0.205812 0.000000 - -0.464724 0.318378 0.825888 0.000000 - -0.442789 0.324859 0.825422 0.000000 - 0.109575 0.530009 0.661502 0.000000 - 0.311900 0.599272 0.608346 0.000000 - 0.670110 0.647765 0.503057 0.000000 - 1.082986 0.699543 0.389115 0.000000 - 1.153816 0.690621 0.345094 0.000000 - 1.135513 0.703681 0.367638 0.000000 - 1.419652 0.532018 0.030331 0.000000 - 1.524713 -0.040828 -0.451811 0.000000 - 1.588289 0.032330 -0.415045 0.000000 - 1.595638 -0.030244 -0.453261 0.000000 - 0.786735 -0.079354 -0.704701 0.000000 - 1.590063 0.158704 -0.335582 0.000000 - 0.707735 -0.086440 -0.726252 0.000000 - 1.440071 0.483809 -0.020061 0.000000 - 0.644299 -0.097780 -0.743861 0.000000 - 0.550001 -0.080459 -0.797359 0.000000 - -0.029135 -0.688865 0.501187 0.000000 - -0.222268 -0.855866 0.191240 0.000000 - 0.077261 -0.842336 0.102765 0.000000 - 0.376073 -0.779665 0.111294 0.000000 - -0.075790 -0.387320 0.716212 0.000000 - -1.253373 -0.167542 -0.172561 0.000000 - - - - 0 - 31 - 0 0 0 0 - - 570 - 1 - 0.000000 - - - - - - 0.930797 0.238516 -0.276998 0.000000 - -0.031286 0.806984 0.589744 0.000000 - 0.364196 -0.540266 0.758600 0.000000 - - - - 0.000300 0.113718 0.053941 0.000000 - - - 571 - 4 - 0.040000 - - - - - 0 - 4 - 0 0 0 0 - - - 1.000000 1.000000 1.000000 0.000000 - - - 0.000000 0.000000 0.000000 0.000000 - - 0.040000 - 0 - - 572 - 0 - 45 - 0 0 0 0 - - - -0.239485 0.631381 -0.880147 0.000000 - -0.469398 0.275618 -0.418576 0.000000 - -0.216857 0.756212 -0.798697 0.000000 - -0.220138 0.386933 -0.978611 0.000000 - -0.228720 0.190010 -0.986072 0.000000 - -0.370678 -0.166610 -0.715236 0.000000 - -0.238359 0.060458 -0.990861 0.000000 - -0.142911 -0.576634 -0.938825 0.000000 - -0.117681 -0.586604 -0.945207 0.000000 - -0.141236 -0.582379 -0.938705 0.000000 - -0.123693 -0.620712 -0.930405 0.000000 - 0.021149 -0.884440 -0.862653 0.000000 - -0.111716 -1.228824 -0.279913 0.000000 - -0.138804 -1.307093 -0.166289 0.000000 - -0.235212 -1.214336 -0.105601 0.000000 - -0.376023 -1.011232 0.047684 0.000000 - -0.497863 -0.834056 0.187362 0.000000 - -0.553773 -0.617830 0.365070 0.000000 - -0.602779 -0.420846 0.533205 0.000000 - -0.572144 -0.213391 0.716414 0.000000 - -0.404148 0.696723 -0.084312 0.000000 - -0.539734 -0.015287 0.897962 0.000000 - -0.430025 0.163585 1.068178 0.000000 - -0.181341 1.055415 0.254782 0.000000 - -0.315075 0.342853 1.245844 0.000000 - -0.349645 0.322184 1.232351 0.000000 - -0.215438 1.046666 0.241660 0.000000 - -0.205031 1.067584 0.203107 0.000000 - -0.176364 1.097938 0.151595 0.000000 - -0.085042 1.194936 -0.481343 0.000000 - 0.013113 1.358308 -0.348913 0.000000 - 0.022136 1.370047 -0.310225 0.000000 - -0.149062 1.088434 -0.587032 0.000000 - 0.571393 -0.513192 0.629367 0.000000 - 0.674420 -0.231618 0.203329 0.000000 - 0.733457 0.190523 0.169219 0.000000 - 0.557589 -0.239996 0.872670 0.000000 - 0.634786 -0.205571 -0.088319 0.000000 - 0.723132 0.445694 -0.100759 0.000000 - 0.195901 -0.638044 -0.771981 0.000000 - 0.311710 0.010452 -0.712688 0.000000 - 0.384439 0.115093 -0.603964 0.000000 - 0.720511 0.455386 -0.105697 0.000000 - 0.547331 0.705756 -0.204312 0.000000 - -0.034983 1.378438 -0.337384 0.000000 - - diff --git a/Demos/BulletXmlImportDemo/main.cpp b/Demos/BulletXmlImportDemo/main.cpp deleted file mode 100644 index c9100183a..000000000 --- a/Demos/BulletXmlImportDemo/main.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BulletXmlImportDemo.h" -#include "GlutStuff.h" - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - -#ifdef USE_AMD_OPENCL - - - -#include "btOpenCLUtils.h" - -#include - -cl_context g_cxMainContext; -cl_device_id g_cdDevice; -cl_command_queue g_cqCommandQue; - - -// Returns true if OpenCL is initialized properly, false otherwise. -bool initCL( void* glCtx, void* glDC ) -{ - const char* vendorSDK = btOpenCLUtils::getSdkVendorName(); - printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK); - - int ciErrNum = 0; - -#ifdef BT_USE_CLEW - ciErrNum = clewInit( "OpenCL.dll" ); - if ( ciErrNum != CLEW_SUCCESS ) { - return false; - } -#endif - -#if defined(CL_PLATFORM_MINI_CL) - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#elif defined(CL_PLATFORM_AMD) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#elif defined(CL_PLATFORM_NVIDIA) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#else - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#endif - - g_cxMainContext = btOpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - int numDev = btOpenCLUtils::getNumDevices(g_cxMainContext); - if (!numDev) - return false; - - g_cdDevice = btOpenCLUtils::getDevice(g_cxMainContext,0); - - btOpenCLDeviceInfo clInfo; - btOpenCLUtils::getDeviceInfo(g_cdDevice,clInfo); - btOpenCLUtils::printDeviceInfo(g_cdDevice); - - // create a command-queue - g_cqCommandQue = clCreateCommandQueue(g_cxMainContext, g_cdDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - return true; -} - -#endif //#ifdef USE_AMD_OPENCL - - -int main(int argc,char** argv) -{ - -#ifdef USE_AMD_OPENCL - - bool initialized = initCL(0,0); - btAssert(initialized); -#endif //USE_AMD_OPENCL - - - BulletXmlImportDemo serializeDemo; - serializeDemo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - serializeDemo.exitPhysics(); -#else - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.org",&serializeDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/CMakeLists.txt b/Demos/CMakeLists.txt deleted file mode 100644 index 98bcd2c22..000000000 --- a/Demos/CMakeLists.txt +++ /dev/null @@ -1,59 +0,0 @@ - -SUBDIRS( HelloWorld ) - - -IF (USE_GLUT) - IF (GLUT_FOUND) - IF(BUILD_CPU_DEMOS) - IF(BUILD_EXTRAS) - SUBDIRS( BulletXmlImportDemo ConcaveDemo ConvexDecompositionDemo SerializeDemo ) - ENDIF() - SET(SharedDemoSubdirs - OpenGL - CcdPhysicsDemo ConstraintDemo SliderConstraintDemo GenericJointDemo Raytracer - RagdollDemo ForkLiftDemo BasicDemo FeatherstoneMultiBodyDemo RollingFrictionDemo RaytestDemo VoronoiFractureDemo - GyroscopicDemo FractureDemo Box2dDemo BspDemo MovingConcaveDemo VehicleDemo - UserCollisionAlgorithm CharacterDemo SoftDemo - CollisionInterfaceDemo ConcaveConvexcastDemo SimplexDemo DynamicControlDemo - ConvexHullDistance - DoublePrecisionDemo CollisionDemo - ContinuousConvexCollision ConcaveRaycastDemo GjkConvexCastDemo - MultiMaterialDemo InternalEdgeDemo - ) - ELSE() - SET(SharedDemoSubdirs OpenGL ) - ENDIF(BUILD_CPU_DEMOS) - - - SUBDIRS( - ${SharedDemoSubdirs} - Benchmarks - ) - - - ENDIF(GLUT_FOUND) -ELSE (USE_GLUT) - IF (WIN32) - SUBDIRS( - OpenGL - BasicDemo - RaytestDemo - FractureDemo - Benchmarks - Box2dDemo - CollisionInterfaceDemo - ConcaveDemo - ConstraintDemo - RollingFrictionDemo - ConvexDecompositionDemo - InternalEdgeDemo - GyroscopicDemo - FeatherstoneMultiBodyDemo - GenericJointDemo - SerializeDemo - SoftDemo - VoronoiFractureDemo - ) - ENDIF(WIN32) -ENDIF (USE_GLUT) - diff --git a/Demos/CcdPhysicsDemo/CMakeLists.txt b/Demos/CcdPhysicsDemo/CMakeLists.txt deleted file mode 100644 index 4224de545..000000000 --- a/Demos/CcdPhysicsDemo/CMakeLists.txt +++ /dev/null @@ -1,48 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -../../btgui -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - ADD_EXECUTABLE(AppCcdPhysicsDemo - main.cpp - CcdPhysicsDemo.cpp - CcdPhysicsSetup.h - CcdPhysicsSetup.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppCcdPhysicsDemo - main.cpp - CcdPhysicsDemo.cpp - CcdPhysicsSetup.h - CcdPhysicsSetup.cpp - - ) -ENDIF() - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppCcdPhysicsDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppCcdPhysicsDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppCcdPhysicsDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp deleted file mode 100644 index afe53260e..000000000 --- a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp +++ /dev/null @@ -1,275 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#define CUBE_HALF_EXTENTS 1 - -#define EXTRA_HEIGHT 1.f - -#include "CcdPhysicsDemo.h" -#include "GlutStuff.h" -#include "GLDebugFont.h" - -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" - -#include //printf debugging -#include "GLDebugDrawer.h" - -#if 0 -extern btAlignedObjectArray debugContacts; -extern btAlignedObjectArray debugNormals; -#endif - -static GLDebugDrawer sDebugDrawer; - - -CcdPhysicsDemo::CcdPhysicsDemo() -:m_ccdMode(USE_CCD) -{ - setDebugMode(btIDebugDraw::DBG_DrawText+btIDebugDraw::DBG_NoHelpText); - setCameraDistance(btScalar(40.)); -} - - -void CcdPhysicsDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - //float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(1./60.,0);//ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - displayText(); -#if 0 - for (int i=0;igetDebugDrawer()->drawContactPoint(debugContacts[i],debugNormals[i],0,0,btVector3(1,0,0)); - } -#endif - - glFlush(); - - swapBuffers(); - -} - - -void CcdPhysicsDemo::displayText() -{ - int lineWidth=440; - int xStart = m_glutScreenWidth - lineWidth; - int yStart = 20; - - if((getDebugMode() & btIDebugDraw::DBG_DrawText)!=0) - { - setOrthographicProjection(); - glDisable(GL_LIGHTING); - glColor3f(0, 0, 0); - char buf[124]; - - glRasterPos3f(xStart, yStart, 0); - switch (m_ccdMode) - { - case USE_CCD: - { - sprintf(buf,"Predictive contacts and motion clamping"); - break; - } - case USE_NO_CCD: - { - sprintf(buf,"CCD handling disabled"); - break; - } - default: - { - sprintf(buf,"unknown CCD setting"); - }; - }; - - GLDebugDrawString(xStart,20,buf); - glRasterPos3f(xStart, yStart, 0); - sprintf(buf,"Press 'p' to change CCD mode"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - glRasterPos3f(xStart, yStart, 0); - sprintf(buf,"Press '.' or right mouse to shoot bullets"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - glRasterPos3f(xStart, yStart, 0); - sprintf(buf,"space to restart, h(elp), t(ext), w(ire)"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - - resetPerspectiveProjection(); - glEnable(GL_LIGHTING); - } - -} - - - -void CcdPhysicsDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - displayText(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - { - m_dynamicsWorld->debugDrawWorld(); - } -#if 0 - for (int i=0;igetDebugDrawer()->drawContactPoint(debugContacts[i],debugNormals[i],0,0,btVector3(1,0,0)); - } -#endif - - glFlush(); - swapBuffers(); -} - - - - - -void CcdPhysicsDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - m_ShootBoxInitialSpeed = 4000.f; - - m_defaultContactProcessingThreshold = 0.f; - GraphicsPhysicsBridge bridge; - m_physicsSetup.initPhysics(bridge); - m_dynamicsWorld = m_physicsSetup.m_dynamicsWorld; - m_dynamicsWorld->getSolverInfo().m_solverMode |=SOLVER_USE_2_FRICTION_DIRECTIONS|SOLVER_RANDMIZE_ORDER; - - m_dynamicsWorld ->setDebugDrawer(&sDebugDrawer); - - //m_dynamicsWorld->getSolverInfo().m_splitImpulse=false; - - - - if (m_ccdMode==USE_CCD) - { - m_dynamicsWorld->getDispatchInfo().m_useContinuous=true; - } else - { - m_dynamicsWorld->getDispatchInfo().m_useContinuous=false; - } - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - -} - -void CcdPhysicsDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - -void CcdPhysicsDemo::keyboardCallback(unsigned char key, int x, int y) -{ - if (key=='p') - { - switch (m_ccdMode) - { - case USE_CCD: - { - m_ccdMode = USE_NO_CCD; - break; - } - case USE_NO_CCD: - default: - { - m_ccdMode = USE_CCD; - } - }; - clientResetScene(); - } else - { - DemoApplication::keyboardCallback(key,x,y); - } -} - - -void CcdPhysicsDemo::shootBox(const btVector3& destination) -{ - - if (m_dynamicsWorld) - { - float mass = 1.f; - btTransform startTransform; - startTransform.setIdentity(); - btVector3 camPos = getCameraPosition(); - startTransform.setOrigin(camPos); - - setShootBoxShape (); - - - btRigidBody* body = this->localCreateRigidBody(mass, startTransform,m_shootBoxShape); - body->setLinearFactor(btVector3(1,1,1)); - //body->setRestitution(1); - - btVector3 linVel(destination[0]-camPos[0],destination[1]-camPos[1],destination[2]-camPos[2]); - linVel.normalize(); - linVel*=m_ShootBoxInitialSpeed; - - body->getWorldTransform().setOrigin(camPos); - body->getWorldTransform().setRotation(btQuaternion(0,0,0,1)); - body->setLinearVelocity(linVel); - body->setAngularVelocity(btVector3(0,0,0)); - body->setContactProcessingThreshold(1e30); - - ///when using m_ccdMode, disable regular CCD - if (m_ccdMode==USE_CCD) - { - body->setCcdMotionThreshold(CUBE_HALF_EXTENTS); - body->setCcdSweptSphereRadius(0.4f); - } - - } -} - - - - -void CcdPhysicsDemo::exitPhysics() -{ - m_physicsSetup.exitPhysics(); - - - -} - - - - diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.h b/Demos/CcdPhysicsDemo/CcdPhysicsDemo.h deleted file mode 100644 index 27e8babe9..000000000 --- a/Demos/CcdPhysicsDemo/CcdPhysicsDemo.h +++ /dev/null @@ -1,88 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BT_CCD_PHYSICS_DEMO_H -#define BT_CCD_PHYSICS_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; - -#include "CcdPhysicsSetup.h" - -///CcdPhysicsDemo is good starting point for learning the code base and porting. - -class CcdPhysicsDemo : public PlatformDemoApplication -{ - - CcdPhysicsSetup m_physicsSetup; - - enum - { - USE_CCD=1, - USE_NO_CCD - }; - int m_ccdMode; - - - public: - - CcdPhysicsDemo(); - - virtual ~CcdPhysicsDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - void displayText(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - virtual void displayCallback(); - virtual void shootBox(const btVector3& destination); - virtual void clientResetScene(); - - - static DemoApplication* Create() - { - CcdPhysicsDemo* demo = new CcdPhysicsDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BT_CCD_PHYSICS_DEMO_H - diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp b/Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp deleted file mode 100644 index bbbe0088c..000000000 --- a/Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp +++ /dev/null @@ -1,179 +0,0 @@ - -#include "CcdPhysicsSetup.h" -#include "btBulletDynamicsCommon.h" -#define CUBE_HALF_EXTENTS 1.f -#define EXTRA_HEIGHT 1.f - - -void KinematicObjectSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - createEmptyDynamicsWorld(); - { - btBoxShape* box = new btBoxShape(btVector3(btScalar(10.), btScalar(1.), btScalar(10.))); - gfxBridge.createCollisionShapeGraphicsObject(box); - btTransform startTrans; - startTrans.setIdentity(); - startTrans.setOrigin(btVector3(0, -1, 0)); - btRigidBody* body = createRigidBody(0, startTrans, box); - body->setMotionState(0); - body->setFriction(1); - body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - body->setActivationState(DISABLE_DEACTIVATION); - - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(0,1,0)); - } - { - btBoxShape* box = new btBoxShape(btVector3(btScalar(1.), btScalar(1.), btScalar(1.))); - gfxBridge.createCollisionShapeGraphicsObject(box); - btTransform startTrans; - startTrans.setIdentity(); - startTrans.setOrigin(btVector3(0, 1, 0)); - btRigidBody* body = createRigidBody(1, startTrans, box); - body->setFriction(1); - body->setActivationState(DISABLE_DEACTIVATION); - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(1, 1, 0)); - } -} - -void KinematicObjectSetup::stepSimulation(float deltaTime) -{ - if (m_dynamicsWorld) - { - btCollisionObject* colObj = m_dynamicsWorld->getCollisionObjectArray()[0]; - btRigidBody* body = btRigidBody::upcast(colObj); - if (body) - { - btMotionState* ms = body->getMotionState(); - - btTransform startTrans; - startTrans.setIdentity(); - static float time = 0.f; - time += 0.01f; - static float xPos = 0.f; - xPos = sinf(time)*10.f; - startTrans.setOrigin(btVector3(xPos, -1, 0)); - if (ms) - { - - ms->setWorldTransform(startTrans); - } - else - { - body->setWorldTransform(startTrans); - } - } - m_dynamicsWorld->stepSimulation(deltaTime); - } -} - -void CcdPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - createEmptyDynamicsWorld(); - - - ///create a few basic rigid bodies - btBoxShape* box = new btBoxShape(btVector3(btScalar(110.), btScalar(1.), btScalar(110.))); - gfxBridge.createCollisionShapeGraphicsObject(box); - // box->initializePolyhedralFeatures(); - btCollisionShape* groundShape = box; - - - m_collisionShapes.push_back(groundShape); - //m_collisionShapes.push_back(new btCylinderShape (btVector3(CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS))); - m_collisionShapes.push_back(new btBoxShape(btVector3(CUBE_HALF_EXTENTS, CUBE_HALF_EXTENTS, CUBE_HALF_EXTENTS))); - - btTransform groundTransform; - groundTransform.setIdentity(); - //groundTransform.setOrigin(btVector3(5,5,5)); - - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0, 0, 0); - if (isDynamic) - groundShape->calculateLocalInertia(mass, localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass, myMotionState, groundShape, localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(0, 1, 0)); - body->setFriction(0.5); - //body->setRollingFriction(0.3); - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btCollisionShape* colShape = new btBoxShape(btVector3(1, 1, 1)); - gfxBridge.createCollisionShapeGraphicsObject(colShape); - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0, 0, 0); - if (isDynamic) - colShape->calculateLocalInertia(mass, localInertia); - - int gNumObjects = 120;//120; - int i; - for (i = 0; i3) - { - col = 11; - row2 |= 1; - } - - btVector3 pos(col * 2 * CUBE_HALF_EXTENTS + (row2 % 2)*CUBE_HALF_EXTENTS, - row * 2 * CUBE_HALF_EXTENTS + CUBE_HALF_EXTENTS + EXTRA_HEIGHT, 0); - - trans.setOrigin(pos); - - float mass = 1.f; - - btRigidBody* body = createRigidBody(mass, trans, shape); - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(1, 1, 0)); - - body->setAnisotropicFriction(shape->getAnisotropicRollingFrictionDirection(), btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); - body->setFriction(0.5); - - //body->setRollingFriction(.3); - ///when using m_ccdMode - //if (m_ccdMode == USE_CCD) - { - body->setCcdMotionThreshold(CUBE_HALF_EXTENTS); - body->setCcdSweptSphereRadius(0.9*CUBE_HALF_EXTENTS); - } - } - } - -} diff --git a/Demos/CcdPhysicsDemo/CcdPhysicsSetup.h b/Demos/CcdPhysicsDemo/CcdPhysicsSetup.h deleted file mode 100644 index 9fb58225d..000000000 --- a/Demos/CcdPhysicsDemo/CcdPhysicsSetup.h +++ /dev/null @@ -1,23 +0,0 @@ - -#ifndef CCD_PHYSICS_SETUP_H -#define CCD_PHYSICS_SETUP_H - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct CcdPhysicsSetup : public CommonRigidBodySetup -{ - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - -}; - -struct KinematicObjectSetup : public CommonRigidBodySetup -{ - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void stepSimulation(float deltaTime); - -}; - - -#endif //CCD_PHYSICS_SETUP_H diff --git a/Demos/CcdPhysicsDemo/Makefile.am b/Demos/CcdPhysicsDemo/Makefile.am deleted file mode 100644 index b7c6968b5..000000000 --- a/Demos/CcdPhysicsDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=CcdPhysicsDemo - -CcdPhysicsDemo_SOURCES=CcdPhysicsDemo.cpp CcdPhysicsDemo.h main.cpp -CcdPhysicsDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -CcdPhysicsDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/CcdPhysicsDemo/main.cpp b/Demos/CcdPhysicsDemo/main.cpp deleted file mode 100644 index 3d0955a7d..000000000 --- a/Demos/CcdPhysicsDemo/main.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "CcdPhysicsDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -#ifdef __DEBUG_FPU_ISSUES -#define _GNU_SOURCE -#include -#endif - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - CcdPhysicsDemo* ccdDemo = new CcdPhysicsDemo(); - -#ifdef __DEBUG_FPU_ISSUES -// feenableexcept (FE_DIVBYZERO); -// feenableexcept (FE_INEXACT); -// feenableexcept (FE_INVALID); -// feenableexcept (FE_OVERFLOW|FE_DIVBYZERO|FE_UNDERFLOW); -// feenableexcept (FE_UNDERFLOW); -#endif - - ccdDemo->initPhysics(); - ccdDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - - glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",ccdDemo); - - delete ccdDemo; - return 0; - -} diff --git a/Demos/CellSpuDemo/BasicDemo2.cpp b/Demos/CellSpuDemo/BasicDemo2.cpp deleted file mode 100644 index 2af2b802e..000000000 --- a/Demos/CellSpuDemo/BasicDemo2.cpp +++ /dev/null @@ -1,277 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -//#define USE_GROUND_BOX 1 -#define PRINT_CONTACT_STATISTICS 1 -#define USE_PARALLEL_DISPATCHER 1 - - -//#define USE_SIMPLE_DYNAMICS_WORLD 1 - -int gNumObjects = 5; -#define HALF_EXTENTS btScalar(1.) -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/BroadphaseCollision/btMultiSapBroadphase.h" -#include "LinearMath/btIDebugDraw.h" -#include //printf debugging -btScalar deltaTime = btScalar(1./60.); -btScalar gCollisionMargin = btScalar(0.05); -#include "BasicDemo2.h" - -#ifdef USE_PARALLEL_DISPATCHER -#include "BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "BulletMultiThreaded/Win32ThreadSupport.h" -#include "BulletMultiThreaded/SpuLibspe2Support.h" -#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" -#endif//USE_PARALLEL_DISPATCHER - - -#include - -//////////////////////////////////// - - - - -int main(int argc,char** argv) -{ - - BasicDemo ccdDemo; - ccdDemo.initPhysics(); - - int i; - for (i=0;i<5;i++) - ccdDemo.clientMoveAndDisplay(); - ccdDemo.exitPhysics(); - - return 0; -} - - - -extern int gNumManifold; - -void BasicDemo::clientMoveAndDisplay() -{ - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = m_clock.getTimeMicroseconds(); - m_clock.reset(); - float minFPS = 1000000.f/60.f; - if (ms > minFPS) - ms = minFPS; - - if (m_dynamicsWorld) - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - - //some additional debugging info -#ifdef PRINT_CONTACT_STATISTICS - printf("num contact manifolds: %i\n",gNumManifold); - int numManifolds = m_dynamicsWorld->getDispatcher()->getNumManifolds(); - for (int i=0;igetDispatcher()->getManifoldByIndexInternal(i); - btCollisionObject* obA = static_cast(contactManifold->getBody0()); - btCollisionObject* obB = static_cast(contactManifold->getBody1()); - - int numContacts = contactManifold->getNumContacts(); - for (int j=0;jgetContactPoint(j); - btVector3 ptA = pt.getPositionWorldOnA(); - btVector3 ptB = pt.getPositionWorldOnB(); - printf("contact manifold[%d],pointA[%d]=(%f,%f,%f)\n",i,j,ptA[0],ptA[1],ptA[2]); - } - } -#endif //PRINT_CONTACT_STATISTICS - - -} - - - - - -void BasicDemo::initPhysics() -{ - - btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); - -#ifdef USE_PARALLEL_DISPATCHER - - int maxNumOutstandingTasks = 1;//number of maximum outstanding tasks -#ifdef USE_WIN32_THREADING - - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( - "collision", - processCollisionTask, - createCollisionLocalStoreMemory, - maxNumOutstandingTasks)); -#else - - spe_program_handle_t * program_handle; -#ifndef USE_CESOF - char* spuFileName = "../../../src/BulletMultiThreaded/out/spuCollision.elf"; - - program_handle = spe_image_open (spuFileName); - if (program_handle == NULL) - { - printf( "SPU OPEN IMAGE ERROR:%s\n",spuFileName); - exit(0); - } - else - { - printf( "IMAGE OPENED:%s\n",spuFileName); - } -#else - extern spe_program_handle_t spu_program; - program_handle = &spu_program; -#endif - SpuLibspe2Support* threadSupport = new SpuLibspe2Support( program_handle, maxNumOutstandingTasks); - -#endif // WIN32 - - - m_dispatcher = new SpuGatheringCollisionDispatcher(threadSupport,maxNumOutstandingTasks,collisionConfiguration); -#else - m_dispatcher = new btCollisionDispatcher(collisionConfiguration); -#endif //USE_PARALLEL_DISPATCHER - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - -#define USE_SWEEP_AND_PRUNE 1 -#ifdef USE_SWEEP_AND_PRUNE -#define maxProxies 8192 - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax(10000,10000,10000); - m_overlappingPairCache = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies); - //m_overlappingPairCache = new btMultiSapBroadphase(); - - -#else - m_overlappingPairCache = new btSimpleBroadphase; -#endif //USE_SWEEP_AND_PRUNE - - - - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_solver,m_collisionConfiguration); - m_dynamicsWorld->getDispatchInfo().m_enableSPU = true; - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - - ///create a few basic rigid bodies - - - //static ground -#ifdef USE_GROUND_BOX - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); -#else - btCollisionShape* groundShape = new btSphereShape(btScalar(50.)); -#endif//USE_GROUND_BOX - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - localCreateRigidBody(btScalar(0.),groundTransform,groundShape); - - //create a few dynamic sphere rigidbodies (re-using the same sphere shape) - //btCollisionShape* sphereShape = new btBoxShape(btVector3(1,1,1)); - btCollisionShape* sphereShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(sphereShape); - - int i; - for (i=0;isetMargin(gCollisionMargin); - btTransform trans; - trans.setIdentity(); - //stack them - int colsize = 2; - int row = (int)((i*HALF_EXTENTS*2)/(colsize*2*HALF_EXTENTS)); - int row2 = row; - int col = (i)%(colsize)-colsize/2; - btVector3 pos(col*2*HALF_EXTENTS + (row2%2)*HALF_EXTENTS, - row*2*HALF_EXTENTS+HALF_EXTENTS,0); - - trans.setOrigin(pos); - //btRigidBody* body = localCreateRigidBody(btScalar(1.),trans,sphereShape); - localCreateRigidBody(btScalar(1.),trans,sphereShape); - } - - //clientResetScene(); -} - -btRigidBody* BasicDemo::localCreateRigidBody(btScalar mass,const btTransform& startTrans,btCollisionShape* colShape) -{ -btVector3 inertia(0,0,0); -if (mass) - colShape->calculateLocalInertia(mass,inertia); - btRigidBody::btRigidBodyConstructionInfo rbci(mass,0,colShape,inertia); - rbci.m_startWorldTransform = startTrans; - -btRigidBody* body = new btRigidBody(rbci); - m_dynamicsWorld->addRigidBody(body); -return body; - -} -void BasicDemo::exitPhysics() -{ - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_overlappingPairCache; - - btCollisionDispatcher* m_dispatcher; - btDefaultCollisionConfiguration* m_collisionConfiguration; - btConstraintSolver* m_solver; - btDiscreteDynamicsWorld* m_dynamicsWorld; - - btCollisionAlgorithmCreateFunc* m_sphereSphereCF; - btCollisionAlgorithmCreateFunc* m_sphereBoxCF; - btCollisionAlgorithmCreateFunc* m_boxSphereCF; - - btRigidBody* localCreateRigidBody(btScalar mass,const btTransform& startTrans,btCollisionShape* colShape); - - - public: - - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - - -}; - -#endif //BASIC_DEMO_H - diff --git a/Demos/CharacterDemo/CMakeLists.txt b/Demos/CharacterDemo/CMakeLists.txt deleted file mode 100644 index 9b344f8ae..000000000 --- a/Demos/CharacterDemo/CMakeLists.txt +++ /dev/null @@ -1,59 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) -SET(CharacterDemo_SRCS - - DynamicCharacterController.cpp - DynamicCharacterController.h - CharacterDemo.cpp - CharacterDemo.h - ../BspDemo/BspConverter.cpp - ../BspDemo/BspConverter.h - ../BspDemo/BspLoader.cpp - ../BspDemo/BspLoader.h - main.cpp -) - -IF (WIN32) - ADD_EXECUTABLE(AppCharacterDemo - ${CharacterDemo_SRCS} - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppCharacterDemo - ${CharacterDemo_SRCS} - ) -ENDIF() - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( - TARGET AppCharacterDemo - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/BspDemo/BspDemo.bsp ${CMAKE_CURRENT_BINARY_DIR} - ) -ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppCharacterDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppCharacterDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppCharacterDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/CharacterDemo/CharacterDemo.cpp b/Demos/CharacterDemo/CharacterDemo.cpp deleted file mode 100644 index 29a544a12..000000000 --- a/Demos/CharacterDemo/CharacterDemo.cpp +++ /dev/null @@ -1,526 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" -#include "BulletCollision/CollisionDispatch/btGhostObject.h" - -#include "GLDebugDrawer.h" -#include //printf debugging - -#include "GL_ShapeDrawer.h" - -#include "GlutStuff.h" -#include "CharacterDemo.h" -#ifdef DYNAMIC_CHARACTER_CONTROLLER -#include "DynamicCharacterController.h" -#else -#include "BulletDynamics/Character/btKinematicCharacterController.h" -#endif - -const int maxProxies = 32766; -const int maxOverlap = 65535; - -static int gForward = 0; -static int gBackward = 0; -static int gLeft = 0; -static int gRight = 0; -static int gJump = 0; - - - - -CharacterDemo::CharacterDemo() -: -m_indexVertexArrays(0), -m_vertices(0), -m_cameraHeight(4.f), -m_minCameraDistance(3.f), -m_maxCameraDistance(10.f) -{ - m_character = 0; - m_cameraPosition = btVector3(30,30,30); -} - - -void CharacterDemo::initPhysics() -{ - btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); - m_collisionShapes.push_back(groundShape); - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - btAxisSweep3* sweepBP = new btAxisSweep3(worldMin,worldMax); - m_overlappingPairCache = sweepBP; - - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_constraintSolver,m_collisionConfiguration); - m_dynamicsWorld->getDispatchInfo().m_allowedCcdPenetration=0.0001f; - -#ifdef DYNAMIC_CHARACTER_CONTROLLER - m_character = new DynamicCharacterController (); -#else - - btTransform startTransform; - startTransform.setIdentity (); - //startTransform.setOrigin (btVector3(0.0, 4.0, 0.0)); - startTransform.setOrigin (btVector3(10.210098,-1.6433364,16.453260)); - - - m_ghostObject = new btPairCachingGhostObject(); - m_ghostObject->setWorldTransform(startTransform); - sweepBP->getOverlappingPairCache()->setInternalGhostPairCallback(new btGhostPairCallback()); - btScalar characterHeight=1.75; - btScalar characterWidth =1.75; - btConvexShape* capsule = new btCapsuleShape(characterWidth,characterHeight); - m_ghostObject->setCollisionShape (capsule); - m_ghostObject->setCollisionFlags (btCollisionObject::CF_CHARACTER_OBJECT); - - btScalar stepHeight = btScalar(0.35); - m_character = new btKinematicCharacterController (m_ghostObject,capsule,stepHeight); -#endif - - //////////////// - - /// Create some basic environment from a Quake level - - //m_dynamicsWorld->setGravity(btVector3(0,0,0)); - btTransform tr; - tr.setIdentity(); - - const char* filename = "BspDemo.bsp"; - - const char* prefix[]={"./","../","../../","../../../","../../../../", "BspDemo/", "Demos/BspDemo/", - "../Demos/BspDemo/","../../Demos/BspDemo/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - FILE* file=0; - - for (int i=0;iaddCollisionObject(m_ghostObject,btBroadphaseProxy::CharacterFilter, btBroadphaseProxy::StaticFilter|btBroadphaseProxy::DefaultFilter); - - m_dynamicsWorld->addAction(m_character); - - - /////////////// - - clientResetScene(); - - setCameraDistance(56.f); - -} - - -//to be implemented by the demo -void CharacterDemo::renderme() -{ - updateCamera(); - - DemoApplication::renderme(); -} - - - -void CharacterDemo::debugDrawContacts() -{ -// printf("numPairs = %d\n",m_customPairCallback->getOverlappingPairArray().size()); - { - btManifoldArray manifoldArray; - btBroadphasePairArray& pairArray = m_ghostObject->getOverlappingPairCache()->getOverlappingPairArray(); - int numPairs = pairArray.size(); - - for (int i=0;igetOverlappingPairCache()->findPair(pair.m_pProxy0,pair.m_pProxy1); - if (!collisionPair) - continue; - - if (collisionPair->m_algorithm) - collisionPair->m_algorithm->getAllContactManifolds(manifoldArray); - - for (int j=0;jgetNumContacts();p++) - { - const btManifoldPoint&pt = manifold->getContactPoint(p); - - btVector3 color(255,255,255); - m_dynamicsWorld->getDebugDrawer()->drawContactPoint(pt.getPositionWorldOnB(),pt.m_normalWorldOnB,pt.getDistance(),pt.getLifeTime(),color); - } - } - } - } - -} - -void CharacterDemo::clientMoveAndDisplay() -{ - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - /* Character stuff &*/ - if (m_character) - { - - } - - debugDrawContacts(); - - - if (m_dynamicsWorld) - { - //during idle mode, just run 1 simulation step maximum - int maxSimSubSteps = m_idle ? 1 : 2; - if (m_idle) - dt = 1.0/420.f; - - ///set walkDirection for our character - btTransform xform; - xform = m_ghostObject->getWorldTransform (); - - btVector3 forwardDir = xform.getBasis()[2]; - // printf("forwardDir=%f,%f,%f\n",forwardDir[0],forwardDir[1],forwardDir[2]); - btVector3 upDir = xform.getBasis()[1]; - btVector3 strafeDir = xform.getBasis()[0]; - forwardDir.normalize (); - upDir.normalize (); - strafeDir.normalize (); - - btVector3 walkDirection = btVector3(0.0, 0.0, 0.0); - btScalar walkVelocity = btScalar(1.1) * 4.0; // 4 km/h -> 1.1 m/s - btScalar walkSpeed = walkVelocity * dt; - - //rotate view - if (gLeft) - { - btMatrix3x3 orn = m_ghostObject->getWorldTransform().getBasis(); - orn *= btMatrix3x3(btQuaternion(btVector3(0,1,0),0.01)); - m_ghostObject->getWorldTransform ().setBasis(orn); - } - - if (gRight) - { - btMatrix3x3 orn = m_ghostObject->getWorldTransform().getBasis(); - orn *= btMatrix3x3(btQuaternion(btVector3(0,1,0),-0.01)); - m_ghostObject->getWorldTransform ().setBasis(orn); - } - - if (gForward) - walkDirection += forwardDir; - - if (gBackward) - walkDirection -= forwardDir; - - - m_character->setWalkDirection(walkDirection*walkSpeed); - - - int numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - -//#define VERBOSE_FEEDBACK -#ifdef VERBOSE_FEEDBACK - if (!numSimSteps) - printf("Interpolated transforms\n"); - else - { - if (numSimSteps > maxSimSubSteps) - { - //detect dropping frames - printf("Dropped (%i) simulation steps out of %i\n",numSimSteps - maxSimSubSteps,numSimSteps); - } else - { - printf("Simulated (%i) steps\n",numSimSteps); - } - } -#endif //VERBOSE_FEEDBACK - - } - - - - - - - -#ifdef USE_QUICKPROF - btProfiler::beginBlock("render"); -#endif //USE_QUICKPROF - - - renderme(); - -#ifdef USE_QUICKPROF - btProfiler::endBlock("render"); -#endif - - - glFlush(); - glutSwapBuffers(); - -} - - - -void CharacterDemo::displayCallback(void) -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - debugDrawContacts(); - - glFlush(); - glutSwapBuffers(); -} - -void CharacterDemo::clientResetScene() -{ - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(m_ghostObject->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - - m_character->reset (m_dynamicsWorld); - ///WTF - m_character->warp (btVector3(10.210001,-2.0306311,16.576973)); - -} - -void CharacterDemo::specialKeyboardUp(int key, int x, int y) -{ - switch (key) - { - case GLUT_KEY_UP: - { - gForward = 0; - } - break; - case GLUT_KEY_DOWN: - { - gBackward = 0; - } - break; - case GLUT_KEY_LEFT: - { - gLeft = 0; - } - break; - case GLUT_KEY_RIGHT: - { - gRight = 0; - } - break; - default: - DemoApplication::specialKeyboardUp(key,x,y); - break; - } -} - - -void CharacterDemo::specialKeyboard(int key, int x, int y) -{ - -// printf("key = %i x=%i y=%i\n",key,x,y); - - switch (key) - { - case GLUT_KEY_UP: - { - gForward = 1; - } - break; - case GLUT_KEY_DOWN: - { - gBackward = 1; - } - break; - case GLUT_KEY_LEFT: - { - gLeft = 1; - } - break; - case GLUT_KEY_RIGHT: - { - gRight = 1; - } - break; - case GLUT_KEY_F1: - { - if (m_character && m_character->canJump()) - gJump = 1; - } - break; - default: - DemoApplication::specialKeyboard(key,x,y); - break; - } - -// glutPostRedisplay(); - - -} - -void CharacterDemo::updateCamera() -{ - -//#define DISABLE_CAMERA 1 -#ifdef DISABLE_CAMERA - DemoApplication::updateCamera(); - return; -#endif //DISABLE_CAMERA - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - - btTransform characterWorldTrans; - - //look at the vehicle - characterWorldTrans = m_ghostObject->getWorldTransform(); - btVector3 up = characterWorldTrans.getBasis()[1]; - btVector3 backward = -characterWorldTrans.getBasis()[2]; - up.normalize (); - backward.normalize (); - - m_cameraTargetPosition = characterWorldTrans.getOrigin(); - m_cameraPosition = m_cameraTargetPosition + up * 10.0 + backward * 12.0; - - //use the convex sweep test to find a safe position for the camera (not blocked by static geometry) - btSphereShape cameraSphere(0.2f); - btTransform cameraFrom,cameraTo; - cameraFrom.setIdentity(); - cameraFrom.setOrigin(characterWorldTrans.getOrigin()); - cameraTo.setIdentity(); - cameraTo.setOrigin(m_cameraPosition); - - btCollisionWorld::ClosestConvexResultCallback cb( characterWorldTrans.getOrigin(), cameraTo.getOrigin() ); - cb.m_collisionFilterMask = btBroadphaseProxy::StaticFilter; - - m_dynamicsWorld->convexSweepTest(&cameraSphere,cameraFrom,cameraTo,cb); - if (cb.hasHit()) - { - - btScalar minFraction = cb.m_closestHitFraction;//btMax(btScalar(0.3),cb.m_closestHitFraction); - m_cameraPosition.setInterpolate3(cameraFrom.getOrigin(),cameraTo.getOrigin(),minFraction); - } - - - - - //update OpenGL camera settings - glFrustum(-1.0, 1.0, -1.0, 1.0, 1.0, 10000.0); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - gluLookAt(m_cameraPosition[0],m_cameraPosition[1],m_cameraPosition[2], - m_cameraTargetPosition[0],m_cameraTargetPosition[1], m_cameraTargetPosition[2], - m_cameraUp.getX(),m_cameraUp.getY(),m_cameraUp.getZ()); - - - -} - - -CharacterDemo::~CharacterDemo() -{ - //cleanup in the reverse order of creation/initialization - if (m_character) - { - m_dynamicsWorld->removeCollisionObject(m_ghostObject); - } - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - class btTriangleIndexVertexArray* m_indexVertexArrays; - - btVector3* m_vertices; - - void debugDrawContacts(); - - float m_cameraHeight; - - float m_minCameraDistance; - float m_maxCameraDistance; - - - CharacterDemo(); - - virtual ~CharacterDemo(); - - virtual void clientMoveAndDisplay(); - - virtual void clientResetScene(); - - virtual void displayCallback(); - - ///a very basic camera following the character - virtual void updateCamera(); - - virtual void specialKeyboard(int key, int x, int y); - - virtual void specialKeyboardUp(int key, int x, int y); - - void renderme(); - - void initPhysics(); - - static DemoApplication* Create() - { - CharacterDemo* demo = new CharacterDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - - - -#define QUAKE_BSP_IMPORTING 1 -#ifdef QUAKE_BSP_IMPORTING -#include "../BspDemo/BspLoader.h" -#include "../BspDemo/BspConverter.h" - - - - -class BspToBulletConverter : public BspConverter -{ - CharacterDemo* m_demoApp; - -public: - - BspToBulletConverter(CharacterDemo* demoApp) - :m_demoApp(demoApp) - { - } - - virtual void addConvexVerticesCollider(btAlignedObjectArray& vertices, bool isEntity, const btVector3& entityTargetLocation) - { - ///perhaps we can do something special with entities (isEntity) - ///like adding a collision Triggering (as example) - - if (vertices.size() > 0) - { - float mass = 0.f; - btTransform startTransform; - //can use a shift - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-10.0f,0.0f)); - //this create an internal copy of the vertices - for (int i = 0; i < vertices.size(); i++) - { - vertices[i] *= btScalar(0.5); - float t = vertices[i].getZ() * btScalar(0.75); - vertices[i].setZ(-vertices[i].getY()); - vertices[i].setY(t); - } - - btCollisionShape* shape = new btConvexHullShape(&(vertices[0].getX()),vertices.size()); - m_demoApp->m_collisionShapes.push_back(shape); - - //btRigidBody* body = m_demoApp->localCreateRigidBody(mass, startTransform,shape); - m_demoApp->localCreateRigidBody(mass, startTransform,shape); - } - } -}; -#endif //QUAKE_BSP_IMPORTING - - -#endif //CHARACTER_DEMO_H - - diff --git a/Demos/CharacterDemo/DynamicCharacterController.cpp b/Demos/CharacterDemo/DynamicCharacterController.cpp deleted file mode 100644 index 452d86bc4..000000000 --- a/Demos/CharacterDemo/DynamicCharacterController.cpp +++ /dev/null @@ -1,204 +0,0 @@ -#include "BulletCollision/CollisionShapes/btMultiSphereShape.h" -#include "BulletDynamics/Dynamics/btRigidBody.h" -#include "BulletCollision/CollisionDispatch/btCollisionWorld.h" -#include "LinearMath/btDefaultMotionState.h" -#include "DynamicCharacterController.h" - -DynamicCharacterController::DynamicCharacterController () -{ - m_rayLambda[0] = 1.0; - m_rayLambda[1] = 1.0; - m_halfHeight = 1.0; - m_turnAngle = 0.0; - m_maxLinearVelocity = 10.0; - m_walkVelocity = 8.0; // meters/sec - m_turnVelocity = 1.0; // radians/sec - m_shape = NULL; - m_rigidBody = NULL; -} - -DynamicCharacterController::~DynamicCharacterController () -{ -} - -void DynamicCharacterController::setup (btScalar height, btScalar width, btScalar stepHeight) -{ - btVector3 spherePositions[2]; - btScalar sphereRadii[2]; - - sphereRadii[0] = width; - sphereRadii[1] = width; - spherePositions[0] = btVector3 (0.0, (height/btScalar(2.0) - width), 0.0); - spherePositions[1] = btVector3 (0.0, (-height/btScalar(2.0) + width), 0.0); - - m_halfHeight = height/btScalar(2.0); - - m_shape = new btMultiSphereShape (&spherePositions[0], &sphereRadii[0], 2); - - btTransform startTransform; - startTransform.setIdentity (); - startTransform.setOrigin (btVector3(0.0, 2.0, 0.0)); - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo cInfo(1.0, myMotionState, m_shape); - m_rigidBody = new btRigidBody(cInfo); - // kinematic vs. static doesn't work - //m_rigidBody->setCollisionFlags( m_rigidBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - m_rigidBody->setSleepingThresholds (0.0, 0.0); - m_rigidBody->setAngularFactor (0.0); - -} - -void DynamicCharacterController::destroy () -{ - if (m_shape) - { - delete m_shape; - } - - if (m_rigidBody) - { - delete m_rigidBody; - m_rigidBody = 0; - } -} - -btCollisionObject* DynamicCharacterController::getCollisionObject () -{ - return m_rigidBody; -} - -void DynamicCharacterController::preStep (const btCollisionWorld* collisionWorld) -{ - btTransform xform; - m_rigidBody->getMotionState()->getWorldTransform (xform); - btVector3 down = -xform.getBasis()[1]; - btVector3 forward = xform.getBasis()[2]; - down.normalize (); - forward.normalize(); - - m_raySource[0] = xform.getOrigin(); - m_raySource[1] = xform.getOrigin(); - - m_rayTarget[0] = m_raySource[0] + down * m_halfHeight * btScalar(1.1); - m_rayTarget[1] = m_raySource[1] + forward * m_halfHeight * btScalar(1.1); - - class ClosestNotMe : public btCollisionWorld::ClosestRayResultCallback - { - public: - ClosestNotMe (btRigidBody* me) : btCollisionWorld::ClosestRayResultCallback(btVector3(0.0, 0.0, 0.0), btVector3(0.0, 0.0, 0.0)) - { - m_me = me; - } - - virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult& rayResult,bool normalInWorldSpace) - { - if (rayResult.m_collisionObject == m_me) - return 1.0; - - return ClosestRayResultCallback::addSingleResult (rayResult, normalInWorldSpace - ); - } - protected: - btRigidBody* m_me; - }; - - ClosestNotMe rayCallback(m_rigidBody); - - int i = 0; - for (i = 0; i < 2; i++) - { - rayCallback.m_closestHitFraction = 1.0; - collisionWorld->rayTest (m_raySource[i], m_rayTarget[i], rayCallback); - if (rayCallback.hasHit()) - { - m_rayLambda[i] = rayCallback.m_closestHitFraction; - } else { - m_rayLambda[i] = 1.0; - } - } -} - -void DynamicCharacterController::playerStep (const btCollisionWorld* dynaWorld,btScalar dt, - int forward, - int backward, - int left, - int right, - int jump) -{ - btTransform xform; - m_rigidBody->getMotionState()->getWorldTransform (xform); - - /* Handle turning */ - if (left) - m_turnAngle -= dt * m_turnVelocity; - if (right) - m_turnAngle += dt * m_turnVelocity; - - xform.setRotation (btQuaternion (btVector3(0.0, 1.0, 0.0), m_turnAngle)); - - btVector3 linearVelocity = m_rigidBody->getLinearVelocity(); - btScalar speed = m_rigidBody->getLinearVelocity().length(); - - btVector3 forwardDir = xform.getBasis()[2]; - forwardDir.normalize (); - btVector3 walkDirection = btVector3(0.0, 0.0, 0.0); - btScalar walkSpeed = m_walkVelocity * dt; - - if (forward) - walkDirection += forwardDir; - if (backward) - walkDirection -= forwardDir; - - - - if (!forward && !backward && onGround()) - { - /* Dampen when on the ground and not being moved by the player */ - linearVelocity *= btScalar(0.2); - m_rigidBody->setLinearVelocity (linearVelocity); - } else { - if (speed < m_maxLinearVelocity) - { - btVector3 velocity = linearVelocity + walkDirection * walkSpeed; - m_rigidBody->setLinearVelocity (velocity); - } - } - - m_rigidBody->getMotionState()->setWorldTransform (xform); - m_rigidBody->setCenterOfMassTransform (xform); -} - -bool DynamicCharacterController::canJump () const -{ - return onGround(); -} - -void DynamicCharacterController::jump () -{ - if (!canJump()) - return; - - btTransform xform; - m_rigidBody->getMotionState()->getWorldTransform (xform); - btVector3 up = xform.getBasis()[1]; - up.normalize (); - btScalar magnitude = (btScalar(1.0)/m_rigidBody->getInvMass()) * btScalar(8.0); - m_rigidBody->applyCentralImpulse (up * magnitude); -} - -bool DynamicCharacterController::onGround () const -{ - return m_rayLambda[0] < btScalar(1.0); -} - -void DynamicCharacterController::reset () -{ -} -void DynamicCharacterController::warp (const btVector3& origin) -{ -} -void DynamicCharacterController::registerPairCacheAndDispatcher (btOverlappingPairCache* pairCache, btCollisionDispatcher* dispatcher) -{ - -} - diff --git a/Demos/CharacterDemo/DynamicCharacterController.h b/Demos/CharacterDemo/DynamicCharacterController.h deleted file mode 100644 index 241aaeac1..000000000 --- a/Demos/CharacterDemo/DynamicCharacterController.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef CHARACTER_CONTROLLER_H -#define CHARACTER_CONTROLLER_H - -#include "LinearMath/btVector3.h" - -#include "BulletDynamics/Character/btCharacterControllerInterface.h" - -class btCollisionShape; -class btRigidBody; -class btCollisionWorld; - -///DynamicCharacterController is obsolete/unsupported at the moment -class DynamicCharacterController : public btCharacterControllerInterface -{ -protected: - btScalar m_halfHeight; - btCollisionShape* m_shape; - btRigidBody* m_rigidBody; - - btVector3 m_raySource[2]; - btVector3 m_rayTarget[2]; - btScalar m_rayLambda[2]; - btVector3 m_rayNormal[2]; - - btScalar m_turnAngle; - - btScalar m_maxLinearVelocity; - btScalar m_walkVelocity; - btScalar m_turnVelocity; -public: - DynamicCharacterController (); - ~DynamicCharacterController (); - void setup (btScalar height = 2.0, btScalar width = 0.25, btScalar stepHeight = 0.25); - void destroy (); - - virtual void reset (); - virtual void warp (const btVector3& origin); - virtual void registerPairCacheAndDispatcher (btOverlappingPairCache* pairCache, btCollisionDispatcher* dispatcher); - - btCollisionObject* getCollisionObject (); - - void preStep (const btCollisionWorld* collisionWorld); - void playerStep (const btCollisionWorld* collisionWorld,btScalar dt, - int forward, - int backward, - int left, - int right, - int jump); - bool canJump () const; - void jump (); - - bool onGround () const; -}; - -#endif diff --git a/Demos/CharacterDemo/main.cpp b/Demos/CharacterDemo/main.cpp deleted file mode 100644 index 080eb8621..000000000 --- a/Demos/CharacterDemo/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ - -#include "CharacterDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - CharacterDemo* characterDemo = new CharacterDemo; - - characterDemo->initPhysics(); - characterDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,640,480,"Bullet Character Demo. http://www.continuousphysics.com/Bullet/phpBB2/", characterDemo); -} - diff --git a/Demos/CollisionDemo/CMakeLists.txt b/Demos/CollisionDemo/CMakeLists.txt deleted file mode 100644 index 7f544ca30..000000000 --- a/Demos/CollisionDemo/CMakeLists.txt +++ /dev/null @@ -1,39 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - ADD_EXECUTABLE(AppCollisionDemo - CollisionDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppCollisionDemo - CollisionDemo.cpp - ) -ENDIF() - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppCollisionDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppCollisionDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppCollisionDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/CollisionDemo/CollisionDemo.cpp b/Demos/CollisionDemo/CollisionDemo.cpp deleted file mode 100644 index 3f4b0504f..000000000 --- a/Demos/CollisionDemo/CollisionDemo.cpp +++ /dev/null @@ -1,380 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -/// -/// Collision Demo shows a degenerate case, where the Simplex solver has to deal with near-affine dependent cases -/// See the define CATCH_DEGENERATE_TETRAHEDRON in Bullet's btVoronoiSimplexSolver.cpp -/// - - -//#define CHECK_GENSHER_TRIANGLE_CASE 1 - - -///This low-level internal demo does intentionally NOT use the btBulletCollisionCommon.h header -///It needs internal access -#include "GL_Simplex1to4.h" -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h" -#include "BulletCollision/NarrowPhaseCollision/btPointCollector.h" -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h" -#include "LinearMath/btTransformUtil.h" - -#include "CollisionDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" -#include "LinearMath/btIDebugDraw.h" -#include "../OpenGL/GLDebugDrawer.h" -GLDebugDrawer debugDrawer; - - -float yaw=0.f,pitch=0.f,roll=0.f; -const int maxNumObjects = 4; -const int numObjects = 2; - -GL_Simplex1to4 simplex; - -btPolyhedralConvexShape* shapePtr[maxNumObjects]; - -btTransform tr[numObjects]; -int screenWidth = 640; -int screenHeight = 480; - -void DrawRasterizerLine(float const* , float const*, int) -{ - -} - -int main(int argc,char** argv) -{ - CollisionDemo* colDemo = new CollisionDemo(); - -#ifdef CHECK_GENSHER_TRIANGLE_CASE - colDemo->setCameraDistance(8.f); -#else - colDemo->setCameraDistance(4.f); - -#endif // - colDemo->initPhysics(); - - - - return glutmain(argc, argv,screenWidth,screenHeight,"Collision Demo",colDemo); -} - -void CollisionDemo::initPhysics() -{ - setTexturing(false); - setShadows(false); - - //m_debugMode |= btIDebugDraw::DBG_DrawWireframe; -#ifdef CHECK_GENSHER_TRIANGLE_CASE - m_azi = 140.f; -#else - m_azi = 250.f; -#endif - m_ele = 25.f; - - m_azi = 0; - m_ele = 0; - m_cameraTargetPosition.setValue(8.12,0.39,0); - - tr[0].setIdentity(); - tr[0].setOrigin(btVector3(10,0,0)); - tr[1].setIdentity(); - tr[1].setOrigin(btVector3(0,0,0)); - - -#ifdef CHECK_GENSHER_TRIANGLE_CASE - tr[0].setIdentity(); - tr[1].setIdentity(); -#endif //CHECK_GENSHER_TRIANGLE_CASE - - btVector3 boxHalfExtentsA(1,1,1);//1.0000004768371582f,1.0000004768371582f,1.0000001192092896f); - btVector3 boxHalfExtentsB(4,4,4);//3.2836332321166992f,3.2836332321166992f,3.2836320400238037f); - -#ifndef CHECK_GENSHER_TRIANGLE_CASE - btBoxShape* boxA = new btBoxShape(boxHalfExtentsA); - btBoxShape* boxB = new btBoxShape(boxHalfExtentsB); -#endif - - - - - - -#ifdef CHECK_GENSHER_TRIANGLE_CASE - shapePtr[0] = trishapeA; - shapePtr[1] = trishapeB; -#else - shapePtr[0] = boxA; - shapePtr[1] = boxB; -#endif - -} - -void CollisionDemo::clientMoveAndDisplay() -{ - - displayCallback(); -} - - -static btVoronoiSimplexSolver sGjkSimplexSolver; -btSimplexSolverInterface& gGjkSimplexSolver = sGjkSimplexSolver; - -static btScalar gContactBreakingThreshold=.02f; -int myiter = 1; -int mystate = 2; - -int checkPerturbation = 1; -int numPerturbationIterations = 20; -void CollisionDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - btVoronoiSimplexSolver sGjkSimplexSolver; - btGjkEpaPenetrationDepthSolver epaSolver; - btPointCollector gjkOutput; - btVector3 worldBoundsMin(-1000,-1000,-1000); - btVector3 worldBoundsMax(1000,1000,1000); - { - btGjkPairDetector convexConvex(shapePtr[0],shapePtr[1],&sGjkSimplexSolver,&epaSolver); - - btGjkPairDetector::ClosestPointInput input; - input.m_transformA = tr[0]; - input.m_transformB = tr[1]; - - - convexConvex.getClosestPoints(input, gjkOutput, 0); - } - - ATTRIBUTE_ALIGNED16(btScalar) m[16]; - int i; - - //m_ele = 21.2; - //m_azi = -56.6; - - - - - for (i=0;idrawOpenGL(m,shapePtr[i],btVector3(119./255.,147./255.,60./255.),btIDebugDraw::DBG_FastWireframe,worldBoundsMin,worldBoundsMax); - m_shapeDrawer->drawOpenGL(m,shapePtr[i],btVector3(0.6,0.6,0.6),btIDebugDraw::DBG_FastWireframe,worldBoundsMin,worldBoundsMax); - } - - if (gjkOutput.m_hasResult) - { - printf("original distance: %10.4f\n", gjkOutput.m_distance); - btVector3 endPt = gjkOutput.m_pointInWorld + - gjkOutput.m_normalOnBInWorld*gjkOutput.m_distance; - - debugDrawer.drawLine(gjkOutput.m_pointInWorld,endPt,btVector3(0,0,0)); - debugDrawer.drawSphere(gjkOutput.m_pointInWorld,0.05,btVector3(0,0,0)); - debugDrawer.drawSphere(endPt,0.05,btVector3(0,0,0)); - - bool perturbeA = false;//true; - const btScalar angleLimit = 0.125f * SIMD_PI; - btScalar perturbeAngle; - btScalar radiusA = shapePtr[0]->getAngularMotionDisc(); - btScalar radiusB = shapePtr[1]->getAngularMotionDisc(); - - if (radiusA < radiusB) - { - perturbeAngle = gContactBreakingThreshold /radiusA; - perturbeA = true; - } else - { - perturbeAngle = gContactBreakingThreshold / radiusB; - perturbeA = false; - } - if ( perturbeAngle > angleLimit ) - perturbeAngle = angleLimit; - - perturbeAngle*=5; - - btVector3 v0,v1; - btPlaneSpace1(gjkOutput.m_normalOnBInWorld,v0,v1); - - glLineWidth(5); - int i; - i=0; - if (myiter>=numPerturbationIterations) - myiter=0; - if (mystate<2) - { - i= myiter; - } - - for ( ;idrawOpenGL(m,shapePtr[0],btVector3(108./255.,131./255.,158./255),btIDebugDraw::DBG_FastWireframe,worldBoundsMin,worldBoundsMax); - m_shapeDrawer->drawOpenGL(m,shapePtr[0],btVector3(0.3,0.3,1),btIDebugDraw::DBG_FastWireframe,worldBoundsMin,worldBoundsMax); - - } - - if (1)//gjkOutput.m_hasResult) - { - - printf("perturbed distance: %10.4f\n", gjkOutput.m_distance); - btVector3 startPt,endPt; - btScalar depth = 0; - if (perturbeA) - { - btVector3 endPtOrg = gjkOutput.m_pointInWorld + gjkOutput.m_normalOnBInWorld*gjkOutput.m_distance; - endPt = (tr[0]*input.m_transformA.inverse())(endPtOrg); - depth = (endPt - gjkOutput.m_pointInWorld).dot(gjkOutput.m_normalOnBInWorld); - startPt = endPt-gjkOutput.m_normalOnBInWorld*depth; - } else - { - endPt = gjkOutput.m_pointInWorld + gjkOutput.m_normalOnBInWorld*gjkOutput.m_distance; - startPt = (tr[1]*input.m_transformB.inverse())(gjkOutput.m_pointInWorld); - depth = (endPt - startPt).dot(gjkOutput.m_normalOnBInWorld); - } - - printf("corrected distance: %10.4f\n", depth); - - - - debugDrawer.drawLine(startPt,endPt,btVector3(1,0,0)); - debugDrawer.drawSphere(startPt,0.05,btVector3(0,1,0)); - debugDrawer.drawSphere(endPt,0.05,btVector3(0,0,1)); - } - if (mystate<2) - break; - if (mystate==2 && i>myiter) - break; - } - - - } - - static int looper = 0; - if (looper++>10) - { - looper =0; - checkPerturbation++; - if (checkPerturbation>numPerturbationIterations) - checkPerturbation=0; - } - - GL_ShapeDrawer::drawCoordSystem(); - - - - if (mystate==1 || mystate==2) - { - static int count = 10; - count--; - if (count<0) - { - count=10; - myiter++; - } - } - - btQuaternion orn; - orn.setEuler(yaw,pitch,roll); - //let it rotate - //tr[0].setRotation(orn); - - pitch += 0.005f; - yaw += 0.01f; - - glFlush(); - glutSwapBuffers(); -} - - -void CollisionDemo::specialKeyboard(int key, int x, int y) -{ - switch (key) - { - case GLUT_KEY_DOWN: - case GLUT_KEY_UP: - { - break; - } - default: - DemoApplication::specialKeyboard(key,x,y); - break; - } - -} - -void CollisionDemo::specialKeyboardUp(int key, int x, int y) -{ - switch (key) - { - case GLUT_KEY_UP : - { - myiter++; - break; - } - - case GLUT_KEY_DOWN: - { - mystate++; - if (mystate>1) - myiter=0; - if (mystate>=4) - mystate = 0; - break; - } - default: - DemoApplication::specialKeyboardUp(key,x,y); - break; - } -} diff --git a/Demos/CollisionDemo/CollisionDemo.h b/Demos/CollisionDemo/CollisionDemo.h deleted file mode 100644 index 487250a97..000000000 --- a/Demos/CollisionDemo/CollisionDemo.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef COLLISION_DEMO_H -#define COLLISION_DEMO_H - -#include "GlutDemoApplication.h" - -///CollisionDemo shows the low-level direct access to GJK -class CollisionDemo : public GlutDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void specialKeyboardUp(int key, int x, int y); - - virtual void specialKeyboard(int key, int x, int y); - -}; - -#endif //COLLISION_DEMO_H - diff --git a/Demos/CollisionInterfaceDemo/CMakeLists.txt b/Demos/CollisionInterfaceDemo/CMakeLists.txt deleted file mode 100644 index 9dd777bce..000000000 --- a/Demos/CollisionInterfaceDemo/CMakeLists.txt +++ /dev/null @@ -1,63 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -IF (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppCollisionInterfaceDemo - CollisionInterfaceDemo.cpp - CollisionInterfaceDemo.h - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppCollisionInterfaceDemo - CollisionInterfaceDemo.cpp - CollisionInterfaceDemo.h - main.cpp - ) - ENDIF() -ELSE (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppCollisionInterfaceDemo - WIN32 - CollisionInterfaceDemo.cpp - CollisionInterfaceDemo.h - Win32CollisionInterfaceDemo.cpp - ../OpenGL/Win32AppMain.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ENDIF (USE_GLUT) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppCollisionInterfaceDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppCollisionInterfaceDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppCollisionInterfaceDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.cpp b/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.cpp deleted file mode 100644 index c44d9a558..000000000 --- a/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.cpp +++ /dev/null @@ -1,292 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -/// -/// CollisionInterfaceDemo shows high level usage of the Collision Detection. -/// -#define TEST_NOT_ADDING_OBJECTS_TO_WORLD - -#include "GL_Simplex1to4.h" - -//include common Bullet Collision Detection headerfiles -#include "btBulletCollisionCommon.h" - -#include "LinearMath/btIDebugDraw.h" -#include "GL_ShapeDrawer.h" -#include "CollisionInterfaceDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" - -btScalar yaw=0.f,pitch=0.f,roll=0.f; -const int maxNumObjects = 4; -const int numObjects = 2; - -GL_Simplex1to4 simplex; - -btCollisionObject objects[maxNumObjects]; -btCollisionWorld* collisionWorld = 0; - -GLDebugDrawer debugDrawer; - - -void CollisionInterfaceDemo::initPhysics() -{ - - m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - - btMatrix3x3 basisA; - basisA.setIdentity(); - - btMatrix3x3 basisB; - basisB.setIdentity(); - - objects[0].getWorldTransform().setBasis(basisA); - objects[1].getWorldTransform().setBasis(basisB); - - btBoxShape* boxA = new btBoxShape(btVector3(1,1,1)); - boxA->setMargin(0.f); - - btBoxShape* boxB = new btBoxShape(btVector3(0.5,0.5,0.5)); - boxB->setMargin(0.f); - //ConvexHullShape hullA(points0,3); - //hullA.setLocalScaling(btVector3(3,3,3)); - //ConvexHullShape hullB(points1,4); - //hullB.setLocalScaling(btVector3(4,4,4)); - - objects[0].setCollisionShape(boxA);//&hullA; - objects[1].setCollisionShape(boxB);//&hullB; - - btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); - btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration); - btVector3 worldAabbMin(-1000,-1000,-1000); - btVector3 worldAabbMax(1000,1000,1000); - - btAxisSweep3* broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax); - - //SimpleBroadphase is a brute force alternative, performing N^2 aabb overlap tests - //SimpleBroadphase* broadphase = new btSimpleBroadphase; - - collisionWorld = new btCollisionWorld(dispatcher,broadphase,collisionConfiguration); - collisionWorld->setDebugDrawer(&debugDrawer); - -#ifdef TEST_NOT_ADDING_OBJECTS_TO_WORLD -// collisionWorld->addCollisionObject(&objects[0]); - collisionWorld->addCollisionObject(&objects[1]); -#endif //TEST_NOT_ADDING_OBJECTS_TO_WORLD - -} - - -//to be implemented by the demo - -void CollisionInterfaceDemo::clientMoveAndDisplay() -{ - - displayCallback(); -} - - -static btVoronoiSimplexSolver sGjkSimplexSolver; -btSimplexSolverInterface& gGjkSimplexSolver = sGjkSimplexSolver; - -struct btDrawingResult : public btCollisionWorld::ContactResultCallback -{ - virtual btScalar addSingleResult(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) - { - - glBegin(GL_LINES); - glColor3f(0, 0, 0); - - btVector3 ptA = cp.getPositionWorldOnA(); - btVector3 ptB = cp.getPositionWorldOnB(); - - glVertex3d(ptA.x(),ptA.y(),ptA.z()); - glVertex3d(ptB.x(),ptB.y(),ptB.z()); - glEnd(); - - return 0; - } -}; - -void CollisionInterfaceDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - btScalar m[16]; - - btVector3 worldBoundsMin,worldBoundsMax; - collisionWorld->getBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); - - - int i; - for (i=0;idrawOpenGL(m,objects[i].getCollisionShape(),btVector3(1,1,1),getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - collisionWorld->getDispatchInfo().m_debugDraw = &debugDrawer; - - if (collisionWorld) - collisionWorld->performDiscreteCollisionDetection(); - - - - - -#ifndef TEST_NOT_ADDING_OBJECTS_TO_WORLD - - collisionWorld->debugDrawWorld(); - ///one way to draw all the contact points is iterating over contact manifolds in the dispatcher: - - int numManifolds = collisionWorld->getDispatcher()->getNumManifolds(); - for (i=0;igetDispatcher()->getManifoldByIndexInternal(i); - btCollisionObject* obA = static_cast(contactManifold->getBody0()); - btCollisionObject* obB = static_cast(contactManifold->getBody1()); - - int numContacts = contactManifold->getNumContacts(); - for (int j=0;jgetContactPoint(j); - - glBegin(GL_LINES); - glColor3f(0, 0, 0); - - btVector3 ptA = pt.getPositionWorldOnA(); - btVector3 ptB = pt.getPositionWorldOnB(); - - glVertex3d(ptA.x(),ptA.y(),ptA.z()); - glVertex3d(ptB.x(),ptB.y(),ptB.z()); - glEnd(); - } - - //you can un-comment out this line, and then all points are removed - //contactManifold->clearManifold(); - } -#else - - - glDisable(GL_TEXTURE_2D); - for (i=0;idebugDrawObject(objects[i].getWorldTransform(),objects[i].getCollisionShape(), btVector3(1,1,0)); - } - - btDrawingResult renderCallback; - - //collisionWorld->contactPairTest(&objects[0],&objects[1], renderCallback); - collisionWorld->contactTest(&objects[0],renderCallback); - -#if 0 - - //another way is to directly query the dispatcher for both objects. The objects don't need to be inserted into the world - - btCollisionAlgorithm* algo = collisionWorld->getDispatcher()->findAlgorithm(&objects[0],&objects[1]); - btManifoldResult contactPointResult(&objects[0],&objects[1]); - algo->processCollision(&objects[0],&objects[1],collisionWorld->getDispatchInfo(),&contactPointResult); - - btManifoldArray manifoldArray; - algo->getAllContactManifolds(manifoldArray); - - int numManifolds = manifoldArray.size(); - for (i=0;i(contactManifold->getBody0()); - // btCollisionObject* obB = static_cast(contactManifold->getBody1()); - - glDisable(GL_DEPTH_TEST); - int numContacts = contactManifold->getNumContacts(); - bool swap = obA == &objects[0]; - - for (int j=0;jgetContactPoint(j); - - glBegin(GL_LINES); - glColor3f(0, 0, 0); - - btVector3 ptA = swap ?pt.getPositionWorldOnA():pt.getPositionWorldOnB(); - btVector3 ptB = swap ? pt.getPositionWorldOnB():pt.getPositionWorldOnA(); - - glVertex3d(ptA.x(),ptA.y(),ptA.z()); - glVertex3d(ptB.x(),ptB.y(),ptB.z()); - glEnd(); - } - - //you can un-comment out this line, and then all points are removed - //contactManifold->clearManifold(); - } -#endif - - -#endif - - - - - - //GL_ShapeDrawer::drawCoordSystem(); - - -// btQuaternion qA = objects[0].getWorldTransform().getRotation(); -// btQuaternion qB = objects[1].getWorldTransform().getRotation(); - - - if (!m_idle) - { - - - btScalar timeInSeconds = getDeltaTimeMicroseconds()/1000.f; - - btQuaternion orn; - - objects[0].getWorldTransform().getBasis().getEulerYPR(yaw,pitch,roll); - pitch += 0.00005f*timeInSeconds; - yaw += 0.0001f*timeInSeconds; - objects[0].getWorldTransform().getBasis().setEulerYPR(yaw,pitch,roll); - - orn.setEuler(yaw,pitch,roll); - objects[1].getWorldTransform().setOrigin(objects[1].getWorldTransform().getOrigin()+btVector3(0,-0.00001*timeInSeconds,0)); - - //objects[0].getWorldTransform().setRotation(orn); - - - - } - - glFlush(); - swapBuffers(); -} - -void CollisionInterfaceDemo::clientResetScene() -{ - objects[0].getWorldTransform().setOrigin(btVector3(0.0f,3.f,0.f)); - - btQuaternion rotA(0.739f,-0.204f,0.587f,0.257f); - rotA.normalize(); - - objects[0].getWorldTransform().setRotation(rotA); - - objects[1].getWorldTransform().setOrigin(btVector3(0.0f,4.248f,0.f)); - -} - - diff --git a/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.h b/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.h deleted file mode 100644 index 9c0d61130..000000000 --- a/Demos/CollisionInterfaceDemo/CollisionInterfaceDemo.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef COLLISION_INTERFACE_DEMO_H -#define COLLISION_INTERFACE_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -///CollisionInterfaceDemo shows how to use the collision detection without dynamics (btCollisionWorld/CollisionObject) -class CollisionInterfaceDemo : public PlatformDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void clientResetScene(); - -}; - -#endif //COLLISION_INTERFACE_DEMO_H - diff --git a/Demos/CollisionInterfaceDemo/Win32CollisionInterfaceDemo.cpp b/Demos/CollisionInterfaceDemo/Win32CollisionInterfaceDemo.cpp deleted file mode 100644 index c2f59060a..000000000 --- a/Demos/CollisionInterfaceDemo/Win32CollisionInterfaceDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "CollisionInterfaceDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new CollisionInterfaceDemo(); -} - -#endif diff --git a/Demos/CollisionInterfaceDemo/main.cpp b/Demos/CollisionInterfaceDemo/main.cpp deleted file mode 100644 index f8cbb77df..000000000 --- a/Demos/CollisionInterfaceDemo/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ - -#include "CollisionInterfaceDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" - -int screenWidth = 640; -int screenHeight = 480; - - -int main(int argc,char** argv) -{ - CollisionInterfaceDemo* collisionInterfaceDemo = new CollisionInterfaceDemo(); - - collisionInterfaceDemo->initPhysics(); - - collisionInterfaceDemo->clientResetScene(); - - return glutmain(argc, argv,screenWidth,screenHeight,"Collision Interface Demo",collisionInterfaceDemo); -} diff --git a/Demos/ConcaveConvexcastDemo/CMakeLists.txt b/Demos/ConcaveConvexcastDemo/CMakeLists.txt deleted file mode 100644 index 356a4495e..000000000 --- a/Demos/ConcaveConvexcastDemo/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppConcaveConvexCastDemo - ConcaveConvexcastDemo.cpp - main.cpp -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConcaveConvexCastDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConcaveConvexCastDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConcaveConvexCastDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ConcaveConvexcastDemo/ConcaveConvexcastDemo.cpp b/Demos/ConcaveConvexcastDemo/ConcaveConvexcastDemo.cpp deleted file mode 100644 index 8faf62a42..000000000 --- a/Demos/ConcaveConvexcastDemo/ConcaveConvexcastDemo.cpp +++ /dev/null @@ -1,516 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "GLDebugDrawer.h" -#include "ConcaveConvexcastDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -#define NUM_DYNAMIC_BOXES_X 30 -#define NUM_DYNAMIC_BOXES_Y 30 - -static btVector3* gVertices=0; -static int* gIndices=0; -static btBvhTriangleMeshShape* trimeshShape =0; -static btRigidBody* staticBody = 0; -static float waveheight = 5.f; - -const float TRIANGLE_SIZE=8.f; - - -/* Scrolls back and forth over terrain */ -#define NUMRAYS_IN_BAR 100 -class btConvexcastBatch -{ -public: - btVector3 source[NUMRAYS_IN_BAR]; - btVector3 dest[NUMRAYS_IN_BAR]; - btVector3 direction[NUMRAYS_IN_BAR]; - btVector3 hit_com[NUMRAYS_IN_BAR]; - btVector3 hit_surface[NUMRAYS_IN_BAR]; - btScalar hit_fraction[NUMRAYS_IN_BAR]; - btVector3 normal[NUMRAYS_IN_BAR]; - - int frame_counter; - int ms; - int sum_ms; - int sum_ms_samples; - int min_ms; - int max_ms; - -#ifdef USE_BT_CLOCK - btClock frame_timer; -#endif //USE_BT_CLOCK - - btScalar dx; - btScalar min_x; - btScalar max_x; - btScalar min_y; - btScalar max_y; - btScalar sign; - - btVector3 boxShapeHalfExtents; - btBoxShape boxShape; - - btConvexcastBatch () : boxShape(btVector3(0.0, 0.0, 0.0)) - { - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - } - - btConvexcastBatch (bool unused, btScalar ray_length, btScalar min_z, btScalar max_z, btScalar min_y , btScalar max_y ) : boxShape(btVector3(0.0, 0.0, 0.0)) - { - boxShapeHalfExtents = btVector3(1.0, 1.0, 1.0); - boxShape = btBoxShape(boxShapeHalfExtents); - frame_counter = 0; - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - dx = 10.0; - min_x = -40; - max_x = 20; - this->min_y = min_y; - this->max_y = max_y; - sign = 1.0; - // btScalar dalpha = 2*SIMD_2_PI/NUMRAYS_IN_BAR; - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btScalar z = (max_z-min_z)/NUMRAYS_IN_BAR * i + min_z; - source[i] = btVector3(min_x, max_y, z); - dest[i] = btVector3(min_x + ray_length, min_y, z); - normal[i] = btVector3(1.0, 0.0, 0.0); - } - } - - btConvexcastBatch (btScalar ray_length, btScalar z, btScalar min_y = -1000, btScalar max_y = 10) : boxShape(btVector3(0.0, 0.0, 0.0)) - { - boxShapeHalfExtents = btVector3(1.0, 1.0, 1.0); - boxShape = btBoxShape(boxShapeHalfExtents); - frame_counter = 0; - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - dx = 10.0; - min_x = -40; - max_x = 20; - this->min_y = min_y; - this->max_y = max_y; - sign = 1.0; - btScalar dalpha = btScalar(2)*SIMD_2_PI/btScalar(NUMRAYS_IN_BAR); - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btScalar alpha = dalpha * btScalar(i); - // rotate around by alpha degrees y - btTransform tr(btQuaternion(btVector3(0.0, 1.0, 0.0), alpha)); - direction[i] = btVector3(1.0, 0.0, 0.0); - direction[i] = tr * direction[i]; - source[i] = btVector3(min_x, max_y, z); - dest[i] = source[i] + direction[i] * ray_length; - dest[i][1] = min_y; - normal[i] = btVector3(1.0, 0.0, 0.0); - } - } - - void move (btScalar dt) - { - if (dt > (1.0/60.0)) - dt = 1.0/60.0; - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - source[i][0] += dx * dt * sign; - dest[i][0] += dx * dt * sign; - } - if (source[0][0] < min_x) - sign = 1.0; - else if (source[0][0] > max_x) - sign = -1.0; - } - - void cast (btCollisionWorld* cw) - { -#ifdef USE_BT_CLOCK - frame_timer.reset (); -#endif //USE_BT_CLOCK - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btCollisionWorld::ClosestConvexResultCallback cb(source[i], dest[i]); - btQuaternion qFrom; - btQuaternion qTo; - qFrom.setRotation (btVector3(1.0, 0.0, 0.0), 0.0); - qTo.setRotation (btVector3(1.0, 0.0, 0.0), 0.7); - btTransform from(qFrom, source[i]); - btTransform to(qTo, dest[i]); - cw->convexSweepTest (&boxShape, from, to, cb); - if (cb.hasHit ()) - { - hit_surface[i] = cb.m_hitPointWorld; - hit_com[i].setInterpolate3(source[i], dest[i], cb.m_closestHitFraction); - hit_fraction[i] = cb.m_closestHitFraction; - normal[i] = cb.m_hitNormalWorld; - normal[i].normalize (); - } else { - hit_com[i] = dest[i]; - hit_surface[i] = dest[i]; - hit_fraction[i] = 1.0f; - normal[i] = btVector3(1.0, 0.0, 0.0); - } - - } -#ifdef USE_BT_CLOCK - ms += frame_timer.getTimeMilliseconds (); -#endif //USE_BT_CLOCK - frame_counter++; - if (frame_counter > 50) - { - min_ms = ms < min_ms ? ms : min_ms; - max_ms = ms > max_ms ? ms : max_ms; - sum_ms += ms; - sum_ms_samples++; - btScalar mean_ms = (btScalar)sum_ms/(btScalar)sum_ms_samples; - printf("%d rays in %d ms %d %d %f\n", NUMRAYS_IN_BAR * frame_counter, ms, min_ms, max_ms, mean_ms); - ms = 0; - frame_counter = 0; - } - } - - - void drawCube (const btTransform& T) - { - ATTRIBUTE_ALIGNED16(btScalar) m[16]; - T.getOpenGLMatrix (&m[0]); - glPushMatrix (); -#ifdef BT_USE_DOUBLE_PRECISION - glMultMatrixd (&m[0]); - glScaled (2.0 * boxShapeHalfExtents[0], 2.0 * boxShapeHalfExtents[1], 2.0 * boxShapeHalfExtents[2]); -#else - glMultMatrixf (&m[0]); - glScalef (2.0 * boxShapeHalfExtents[0], 2.0 * boxShapeHalfExtents[1], 2.0 * boxShapeHalfExtents[2]); -#endif //BT_USE_DOUBLE_PRECISION - glutSolidCube (1.0); - glPopMatrix (); - } - - void draw () - { - glDisable (GL_LIGHTING); - glColor3f (0.0, 1.0, 0.0); - glBegin (GL_LINES); - int i; - for (i = 0; i < NUMRAYS_IN_BAR; i++) - { - glVertex3f (source[i][0], source[i][1], source[i][2]); - glVertex3f (hit_com[i][0], hit_com[i][1], hit_com[i][2]); - } - glColor3f (1.0, 1.0, 1.0); - glBegin (GL_LINES); - btScalar normal_scale = 10.0; // easier to see if this is big - for (i = 0; i < NUMRAYS_IN_BAR; i++) - { - glVertex3f (hit_surface[i][0], hit_surface[i][1], hit_surface[i][2]); - glVertex3f (hit_surface[i][0] + normal_scale * normal[i][0], hit_surface[i][1] + normal_scale * normal[i][1], hit_surface[i][2] + normal_scale * normal[i][2]); - } - glEnd (); - glColor3f (0.0, 1.0, 1.0); - btQuaternion qFrom; - btQuaternion qTo; - qFrom.setRotation (btVector3(1.0, 0.0, 0.0), 0.0); - qTo.setRotation (btVector3(1.0, 0.0, 0.0), 0.7); - for ( i = 0; i < NUMRAYS_IN_BAR; i++) - { - btTransform from(qFrom, source[i]); - btTransform to(qTo, dest[i]); - btVector3 linVel, angVel; - btTransformUtil::calculateVelocity (from, to, 1.0, linVel, angVel); - btTransform T; - btTransformUtil::integrateTransform (from, linVel, angVel, hit_fraction[i], T); - drawCube (T); - } - glEnable (GL_LIGHTING); - } -}; - - -static btConvexcastBatch convexcastBatch; - - - - - -const int NUM_VERTS_X = 30; -const int NUM_VERTS_Y = 30; -const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - -void ConcaveConvexcastDemo::setVertexPositions(float waveheight, float offset) -{ - int i; - int j; - - for ( i=0;isetCollisionFlags( staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->setActivationState(DISABLE_DEACTIVATION); - } else - { - staticBody->setCollisionFlags( staticBody->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->forceActivationState(ACTIVE_TAG); - } - } - - DemoApplication::keyboardCallback(key,x,y); - -} - -void ConcaveConvexcastDemo::initPhysics() -{ - #define TRISIZE 10.f - - setCameraDistance(100.f); - - - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - - - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - - gVertices = new btVector3[totalVerts]; - gIndices = new int[totalTriangles*3]; - - int i; - - - setVertexPositions(waveheight,0.f); - - int index=0; - for ( i=0;isetCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_STATIC_OBJECT); - - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - convexcastBatch = btConvexcastBatch (40.0, 0.0, -10.0,80.0); - //convexcastBatch = btConvexcastBatch (true, 40.0, -50.0, 50.0); -} - -void ConcaveConvexcastDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_animatedMesh) - { - static float offset=0.f; - offset+=0.01f; - - - - int i; - int j; - btVector3 aabbMin(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); - btVector3 aabbMax(-BT_LARGE_FLOAT,-BT_LARGE_FLOAT,-BT_LARGE_FLOAT); - - for ( i=NUM_VERTS_X/2-3;ipartialRefitTree(aabbMin,aabbMax); - - - //clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation. - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - } - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - convexcastBatch.move (dt); - convexcastBatch.cast (m_dynamicsWorld); - renderme(); - convexcastBatch.draw (); - glFlush(); - glutSwapBuffers(); - -} - - - - -void ConcaveConvexcastDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - convexcastBatch.draw (); - glFlush(); - glutSwapBuffers(); -} - - - -void ConcaveConvexcastDemo::exitPhysics() -{ - - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btTriangleIndexVertexArray* m_indexVertexArrays; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - bool m_animatedMesh; - - public: - - ConcaveConvexcastDemo() : m_animatedMesh(true) - { - - } - void initPhysics(); - - void exitPhysics(); - - virtual ~ConcaveConvexcastDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - //to show refit works - void setVertexPositions(float waveheight, float offset); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - ConcaveConvexcastDemo* demo = new ConcaveConvexcastDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - }; -}; - -#endif //CONCAVE_CONVEXCAST_DEMO_H - diff --git a/Demos/ConcaveConvexcastDemo/main.cpp b/Demos/ConcaveConvexcastDemo/main.cpp deleted file mode 100644 index 6f405b6a7..000000000 --- a/Demos/ConcaveConvexcastDemo/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -#include "ConcaveConvexcastDemo.h" -#include "GlutStuff.h" - - -int main(int argc,char** argv) -{ - - ConcaveConvexcastDemo* concaveConvexcastDemo = new ConcaveConvexcastDemo(); - concaveConvexcastDemo->initPhysics(); - concaveConvexcastDemo->setCameraDistance(30.f); - - return glutmain(argc, argv,640,480,"Concave Convexcast Demo",concaveConvexcastDemo); -} - diff --git a/Demos/ConcaveDemo/CMakeLists.txt b/Demos/ConcaveDemo/CMakeLists.txt deleted file mode 100644 index e065ccf57..000000000 --- a/Demos/ConcaveDemo/CMakeLists.txt +++ /dev/null @@ -1,67 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader - ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter - ${GLUT_INCLUDE_DIR} - - ) - - LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision BulletFileLoader LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppConcaveDemo - ConcavePhysicsDemo.cpp - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppConcaveDemo - ConcavePhysicsDemo.cpp - main.cpp - ) - ENDIF() -ELSE (USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader - ${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter - ) - - LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision BulletFileLoader LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppConcaveDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - ConcavePhysicsDemo.cpp - ConcaveDemo.h - Win32ConcaveDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConcaveDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConcaveDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConcaveDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ConcaveDemo/ConcaveDemo.h b/Demos/ConcaveDemo/ConcaveDemo.h deleted file mode 100644 index 86144c7e8..000000000 --- a/Demos/ConcaveDemo/ConcaveDemo.h +++ /dev/null @@ -1,91 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef CONCAVE_DEMO_H -#define CONCAVE_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; -class btTriangleIndexVertexArray; - -///ConcaveDemo shows usage of static concave triangle meshes -///It also shows per-triangle material (friction/restitution) through CustomMaterialCombinerCallback -class ConcaveDemo : public PlatformDemoApplication -{ - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btTriangleIndexVertexArray* m_indexVertexArrays; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - bool m_animatedMesh; - - public: - - ConcaveDemo() : m_animatedMesh(true) - { - - } - void initPhysics(); - - void exitPhysics(); - - virtual ~ConcaveDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - //to show refit works - void setVertexPositions(float waveheight, float offset); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - ConcaveDemo* demo = new ConcaveDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - }; -}; - -#endif //CONCAVE_DEMO_H - diff --git a/Demos/ConcaveDemo/ConcavePhysicsDemo.cpp b/Demos/ConcaveDemo/ConcavePhysicsDemo.cpp deleted file mode 100644 index e261662b0..000000000 --- a/Demos/ConcaveDemo/ConcavePhysicsDemo.cpp +++ /dev/null @@ -1,474 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" -#include "ConcaveDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -#define SERIALIZE_TO_DISK 1 - -#ifndef SERIALIZE_TO_DISK -#include "btBulletWorldImporter.h" -#endif //SERIALIZE_TO_DISK - -//by default, the sample only (de)serializes the BVH to disk. -//If you enable the SERIALIZE_SHAPE define then it will serialize the entire collision shape -//then the animation will not play, because it is using the deserialized vertices -//#define SERIALIZE_SHAPE - - - - -//#define USE_PARALLEL_DISPATCHER 1 -#ifdef USE_PARALLEL_DISPATCHER -#include "../../Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "../../Extras/BulletMultiThreaded/Win32ThreadSupport.h" -#include "../../Extras/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" -#endif//USE_PARALLEL_DISPATCHER - - - - -static btVector3* gVertices=0; -static int* gIndices=0; -static btBvhTriangleMeshShape* trimeshShape =0; -static btRigidBody* staticBody = 0; -static float waveheight = 5.f; - -const float TRIANGLE_SIZE=8.f; - - - -///User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback; -inline btScalar calculateCombinedFriction(float friction0,float friction1) -{ - btScalar friction = friction0 * friction1; - - const btScalar MAX_FRICTION = 10.f; - if (friction < -MAX_FRICTION) - friction = -MAX_FRICTION; - if (friction > MAX_FRICTION) - friction = MAX_FRICTION; - return friction; - -} - -inline btScalar calculateCombinedRestitution(float restitution0,float restitution1) -{ - return restitution0 * restitution1; -} - - - -static bool CustomMaterialCombinerCallback(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) -{ - - float friction0 = colObj0Wrap->getCollisionObject()->getFriction(); - float friction1 = colObj1Wrap->getCollisionObject()->getFriction(); - float restitution0 = colObj0Wrap->getCollisionObject()->getRestitution(); - float restitution1 = colObj1Wrap->getCollisionObject()->getRestitution(); - - if (colObj0Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - friction0 = 1.0;//partId0,index0 - restitution0 = 0.f; - } - if (colObj1Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - if (index1&1) - { - friction1 = 1.0f;//partId1,index1 - } else - { - friction1 = 0.f; - } - restitution1 = 0.f; - } - - cp.m_combinedFriction = calculateCombinedFriction(friction0,friction1); - cp.m_combinedRestitution = calculateCombinedRestitution(restitution0,restitution1); - - //this return value is currently ignored, but to be on the safe side: return false if you don't calculate friction - return true; -} - -extern ContactAddedCallback gContactAddedCallback; - - const int NUM_VERTS_X = 30; - const int NUM_VERTS_Y = 30; - const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - -void ConcaveDemo::setVertexPositions(float waveheight, float offset) -{ - int i; - int j; - - for ( i=0;isetCollisionFlags( staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->setActivationState(DISABLE_DEACTIVATION); - } else - { - staticBody->setCollisionFlags( staticBody->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->forceActivationState(ACTIVE_TAG); - } - } - - DemoApplication::keyboardCallback(key,x,y); - -} - -void ConcaveDemo::initPhysics() -{ - - setTexturing(true); - setShadows(false);//true); - - #define TRISIZE 10.f - - gContactAddedCallback = CustomMaterialCombinerCallback; - -#define USE_TRIMESH_SHAPE 1 -#ifdef USE_TRIMESH_SHAPE - - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - - - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - - gVertices = new btVector3[totalVerts]; - gIndices = new int[totalTriangles*3]; - - int i; - - - setVertexPositions(waveheight,0.f); - - int index=0; - for ( i=0;isetSerializationFlags(BT_SERIALIZE_NO_BVH);// or BT_SERIALIZE_NO_TRIANGLEINFOMAP - serializer->startSerialization(); - //registering a name is optional, it allows you to retrieve the shape by name - //serializer->registerNameForPointer(trimeshShape,"mymesh"); -#ifdef SERIALIZE_SHAPE - trimeshShape->serializeSingleShape(serializer); -#else - trimeshShape->serializeSingleBvh(serializer); -#endif - serializer->finishSerialization(); - FILE* f2 = fopen("myShape.bullet","wb"); - fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1,f2); - fclose(f2); - -#else - btBulletWorldImporter import(0);//don't store info into the world - if (import.loadFile("myShape.bullet")) - { - int numBvh = import.getNumBvhs(); - if (numBvh) - { - btOptimizedBvh* bvh = import.getBvhByIndex(0); - btVector3 aabbMin(-1000,-1000,-1000),aabbMax(1000,1000,1000); - - trimeshShape = new btBvhTriangleMeshShape(m_indexVertexArrays,useQuantizedAabbCompression,aabbMin,aabbMax,false); - trimeshShape->setOptimizedBvh(bvh); - //trimeshShape = new btBvhTriangleMeshShape(m_indexVertexArrays,useQuantizedAabbCompression,aabbMin,aabbMax); - //trimeshShape->setOptimizedBvh(bvh); - - } - int numShape = import.getNumCollisionShapes(); - if (numShape) - { - trimeshShape = (btBvhTriangleMeshShape*)import.getCollisionShapeByIndex(0); - - //if you know the name, you can also try to get the shape by name: - const char* meshName = import.getNameForPointer(trimeshShape); - if (meshName) - trimeshShape = (btBvhTriangleMeshShape*)import.getCollisionShapeByName(meshName); - - } - } - - -#endif - - btCollisionShape* groundShape = trimeshShape; - -#else - btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); - m_collisionShapes.push_back(groundShape); - -#endif //USE_TRIMESH_SHAPE - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - -#ifdef USE_PARALLEL_DISPATCHER - -#ifdef USE_WIN32_THREADING - - int maxNumOutstandingTasks = 4;//number of maximum outstanding tasks - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( - "collision", - processCollisionTask, - createCollisionLocalStoreMemory, - maxNumOutstandingTasks)); -#else -///@todo show other platform threading -///Playstation 3 SPU (SPURS) version is available through PS3 Devnet -///Libspe2 SPU support will be available soon -///pthreads version -///you can hook it up to your custom task scheduler by deriving from btThreadSupportInterface -#endif - - m_dispatcher = new SpuGatheringCollisionDispatcher(threadSupport,maxNumOutstandingTasks,m_collisionConfiguration); -#else - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); -#endif//USE_PARALLEL_DISPATCHER - - - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - m_broadphase = new btAxisSweep3(worldMin,worldMax); - m_solver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); -#ifdef USE_PARALLEL_DISPATCHER - m_dynamicsWorld->getDispatchInfo().m_enableSPU=true; -#endif //USE_PARALLEL_DISPATCHER - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-2,0)); - -#ifdef USE_BOX_SHAPE - btCollisionShape* colShape = new btBoxShape(btVector3(1,1,1)); -#else - - btCompoundShape* colShape = new btCompoundShape; - btCollisionShape* cylinderShape = new btCylinderShapeX(btVector3(4,1,1)); - btCollisionShape* boxShape = new btBoxShape(btVector3(4,1,1)); - btTransform localTransform; - localTransform.setIdentity(); - colShape->addChildShape(localTransform,boxShape); - btQuaternion orn(SIMD_HALF_PI,0,0); - localTransform.setRotation(orn); - colShape->addChildShape(localTransform,cylinderShape); - -#endif //USE_BOX_SHAPE - - - m_collisionShapes.push_back(colShape); - - { - for (int i=0;i<10;i++) - { - startTransform.setOrigin(btVector3(2,10+i*2,1)); - localCreateRigidBody(1, startTransform,colShape); - } - } - - startTransform.setIdentity(); - staticBody = localCreateRigidBody(mass, startTransform,groundShape); - - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);//STATIC_OBJECT); - - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - - - -} - -void ConcaveDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_animatedMesh) - { - static float offset=0.f; - offset+=dt; - - // setVertexPositions(waveheight,offset); - - int i; - int j; - btVector3 aabbMin(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); - btVector3 aabbMax(-BT_LARGE_FLOAT,-BT_LARGE_FLOAT,-BT_LARGE_FLOAT); - - for ( i=NUM_VERTS_X/2-3;ipartialRefitTree(aabbMin,aabbMax); - - //clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation. - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - } - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - - renderme(); - - glFlush(); - swapBuffers(); - -} - - - - -void ConcaveDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - - glFlush(); - swapBuffers(); -} - - - -void ConcaveDemo::exitPhysics() -{ - - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;jinitPhysics(); - concaveDemo->setCameraDistance(30.f); - concaveDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,640,480,"Static Concave Mesh Demo",concaveDemo); -} - diff --git a/Demos/ConcaveRaycastDemo/CMakeLists.txt b/Demos/ConcaveRaycastDemo/CMakeLists.txt deleted file mode 100644 index e64fb3aa9..000000000 --- a/Demos/ConcaveRaycastDemo/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - ADD_EXECUTABLE(AppConcaveRayCastDemo - ConcaveRaycastDemo.cpp - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppConcaveRayCastDemo - ConcaveRaycastDemo.cpp - main.cpp - ) -ENDIF() - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConcaveRayCastDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConcaveRayCastDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConcaveRayCastDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ConcaveRaycastDemo/ConcaveRaycastDemo.cpp b/Demos/ConcaveRaycastDemo/ConcaveRaycastDemo.cpp deleted file mode 100644 index 25242b7ae..000000000 --- a/Demos/ConcaveRaycastDemo/ConcaveRaycastDemo.cpp +++ /dev/null @@ -1,490 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" -#include "ConcaveRaycastDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -static GLDebugDrawer sDebugDraw; - -static btVector3* gVertices=0; -static int* gIndices=0; -static btBvhTriangleMeshShape* trimeshShape =0; -static btRigidBody* staticBody = 0; -static float waveheight = 5.f; - -const float TRIANGLE_SIZE=8.f; - - -/* Scrolls back and forth over terrain */ -#define NUMRAYS_IN_BAR 100 -class btRaycastBar -{ -public: - btVector3 source[NUMRAYS_IN_BAR]; - btVector3 dest[NUMRAYS_IN_BAR]; - btVector3 direction[NUMRAYS_IN_BAR]; - btVector3 hit[NUMRAYS_IN_BAR]; - btVector3 normal[NUMRAYS_IN_BAR]; - - int frame_counter; - int ms; - int sum_ms; - int sum_ms_samples; - int min_ms; - int max_ms; - -#ifdef USE_BT_CLOCK - btClock frame_timer; -#endif //USE_BT_CLOCK - - btScalar dx; - btScalar min_x; - btScalar max_x; - btScalar min_y; - btScalar max_y; - btScalar sign; - - btRaycastBar () - { - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - } - - btRaycastBar (bool unused, btScalar ray_length, btScalar min_z, btScalar max_z, btScalar min_y = -10, btScalar max_y = 10) - { - frame_counter = 0; - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - dx = 10.0; - min_x = -40; - max_x = 20; - this->min_y = min_y; - this->max_y = max_y; - sign = 1.0; - // btScalar dalpha = 2*SIMD_2_PI/NUMRAYS_IN_BAR; - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btScalar z = (max_z-min_z)/btScalar(NUMRAYS_IN_BAR) * btScalar(i) + min_z; - source[i] = btVector3(min_x, max_y, z); - dest[i] = btVector3(min_x + ray_length, min_y, z); - normal[i] = btVector3(1.0, 0.0, 0.0); - } - } - - btRaycastBar (btScalar ray_length, btScalar z, btScalar min_y = -1000, btScalar max_y = 10) - { - frame_counter = 0; - ms = 0; - max_ms = 0; - min_ms = 9999.0; - sum_ms_samples = 0; - sum_ms = 0; - dx = 10.0; - min_x = -40; - max_x = 20; - this->min_y = min_y; - this->max_y = max_y; - sign = 1.0; - btScalar dalpha = 2*SIMD_2_PI/NUMRAYS_IN_BAR; - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btScalar alpha = dalpha * i; - // rotate around by alpha degrees y - btTransform tr (btQuaternion (btVector3(0.0, 1.0, 0.0), alpha)); - direction[i] = btVector3(1.0, 0.0, 0.0); - direction[i] = tr* direction[i]; - direction[i] = direction[i] * ray_length; - source[i] = btVector3(min_x, max_y, z); - dest[i] = source[i] + direction[i]; - dest[i][1] = min_y; - normal[i] = btVector3(1.0, 0.0, 0.0); - } - } - - void move (btScalar dt) - { - if (dt > (1.0/60.0)) - dt = 1.0/60.0; - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - source[i][0] += dx * dt * sign; - dest[i][0] += dx * dt * sign; - } - if (source[0][0] < min_x) - sign = 1.0; - else if (source[0][0] > max_x) - sign = -1.0; - } - - void cast (btCollisionWorld* cw) - { -#ifdef USE_BT_CLOCK - frame_timer.reset (); -#endif //USE_BT_CLOCK - -#ifdef BATCH_RAYCASTER - if (!gBatchRaycaster) - return; - - gBatchRaycaster->clearRays (); - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - gBatchRaycaster->addRay (source[i], dest[i]); - } - gBatchRaycaster->performBatchRaycast (); - for (int i = 0; i < gBatchRaycaster->getNumRays (); i++) - { - const SpuRaycastTaskWorkUnitOut& out = (*gBatchRaycaster)[i]; - hit[i].setInterpolate3(source[i],dest[i],out.hitFraction); - normal[i] = out.hitNormal; - normal[i].normalize (); - } -#else - for (int i = 0; i < NUMRAYS_IN_BAR; i++) - { - btCollisionWorld::ClosestRayResultCallback cb(source[i], dest[i]); - - cw->rayTest (source[i], dest[i], cb); - if (cb.hasHit ()) - { - hit[i] = cb.m_hitPointWorld; - normal[i] = cb.m_hitNormalWorld; - normal[i].normalize (); - } else { - hit[i] = dest[i]; - normal[i] = btVector3(1.0, 0.0, 0.0); - } - - } -#ifdef USE_BT_CLOCK - ms += frame_timer.getTimeMilliseconds (); -#endif //USE_BT_CLOCK - frame_counter++; - if (frame_counter > 50) - { - min_ms = ms < min_ms ? ms : min_ms; - max_ms = ms > max_ms ? ms : max_ms; - sum_ms += ms; - sum_ms_samples++; - btScalar mean_ms = (btScalar)sum_ms/(btScalar)sum_ms_samples; - printf("%d rays in %d ms %d %d %f\n", NUMRAYS_IN_BAR * frame_counter, ms, min_ms, max_ms, mean_ms); - ms = 0; - frame_counter = 0; - } -#endif - } - - void draw () - { - glDisable (GL_LIGHTING); - glColor3f (0.0, 1.0, 0.0); - glBegin (GL_LINES); - int i; - - for (i = 0; i < NUMRAYS_IN_BAR; i++) - { - glVertex3f (source[i][0], source[i][1], source[i][2]); - glVertex3f (hit[i][0], hit[i][1], hit[i][2]); - } - glEnd (); - glColor3f (1.0, 1.0, 1.0); - glBegin (GL_LINES); - for (i = 0; i < NUMRAYS_IN_BAR; i++) - { - glVertex3f (hit[i][0], hit[i][1], hit[i][2]); - glVertex3f (hit[i][0] + normal[i][0], hit[i][1] + normal[i][1], hit[i][2] + normal[i][2]); - } - glEnd (); - glColor3f (0.0, 1.0, 1.0); - glBegin (GL_POINTS); - for ( i = 0; i < NUMRAYS_IN_BAR; i++) - { - glVertex3f (hit[i][0], hit[i][1], hit[i][2]); - } - glEnd (); - glEnable (GL_LIGHTING); - } -}; - - -static btRaycastBar raycastBar; - - -const int NUM_VERTS_X = 30; -const int NUM_VERTS_Y = 30; -const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - -void ConcaveRaycastDemo::setVertexPositions(float waveheight, float offset) -{ - int i; - int j; - - for ( i=0;isetCollisionFlags( staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->setActivationState(DISABLE_DEACTIVATION); - } else - { - staticBody->setCollisionFlags( staticBody->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->forceActivationState(ACTIVE_TAG); - } - } - - DemoApplication::keyboardCallback(key,x,y); - -} - -void ConcaveRaycastDemo::initPhysics() -{ - - #define TRISIZE 10.f - - - - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - - - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - - gVertices = new btVector3[totalVerts]; - gIndices = new int[totalTriangles*3]; - - int i; - - - setVertexPositions(waveheight,0.f); - - int index=0; - for ( i=0;igetSolverInfo().m_splitImpulse=true; - m_dynamicsWorld->setDebugDrawer(&sDebugDraw); - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-2,0)); - - btCollisionShape* colShape = new btBoxShape(btVector3(1,1,1)); - m_collisionShapes.push_back(colShape); - - { - for (int i=0;i<10;i++) - { - //btCollisionShape* colShape = new btCapsuleShape(0.5,2.0);//boxShape = new btSphereShape(1.f); - startTransform.setOrigin(btVector3(2*i,10,1)); - localCreateRigidBody(1, startTransform,colShape); - } - } - - startTransform.setIdentity(); - staticBody = localCreateRigidBody(mass, startTransform,groundShape); - - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_STATIC_OBJECT); - -#ifdef BATCH_RAYCASTER -int maxNumOutstandingTasks = 4; - -#ifdef USE_WIN32_THREADING - Win32ThreadSupport::Win32ThreadConstructionInfo tci("batch raycast", - processRaycastTask, - createRaycastLocalStoreMemory, - maxNumOutstandingTasks); - m_threadSupportRaycast = new Win32ThreadSupport(tci); - printf("m_threadSupportRaycast = %p\n", m_threadSupportRaycast); -#endif - - gBatchRaycaster = new SpuBatchRaycaster (m_threadSupportRaycast, maxNumOutstandingTasks, m_dynamicsWorld->getCollisionObjectArray(), m_dynamicsWorld->getNumCollisionObjects()); -#endif - - raycastBar = btRaycastBar (4000.0, 0.0); - //raycastBar = btRaycastBar (true, 40.0, -50.0, 50.0); - - - - - -} - -void ConcaveRaycastDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_animatedMesh) - { - static float offset=0.f; - offset+=0.01f; - - setVertexPositions(waveheight,offset); - - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - - trimeshShape->refitTree(worldMin,worldMax); - - //clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation. - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - } - - m_dynamicsWorld->stepSimulation(1./60.,0); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - raycastBar.move (dt); - raycastBar.cast (m_dynamicsWorld); - renderme(); - raycastBar.draw (); - glFlush(); - glutSwapBuffers(); - -} - - - - -void ConcaveRaycastDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - raycastBar.draw (); - glFlush(); - glutSwapBuffers(); -} - - - -void ConcaveRaycastDemo::exitPhysics() -{ - - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btTriangleIndexVertexArray* m_indexVertexArrays; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - class btThreadSupportInterface* m_threadSupportRaycast; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - bool m_animatedMesh; - - public: - - ConcaveRaycastDemo() : m_animatedMesh(false) - { - - } - void initPhysics(); - - void exitPhysics(); - - virtual ~ConcaveRaycastDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - //to show refit works - void setVertexPositions(float waveheight, float offset); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - ConcaveRaycastDemo* demo = new ConcaveRaycastDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - }; -}; - -#endif //CONCAVE_RAYCAST_DEMO_H - diff --git a/Demos/ConcaveRaycastDemo/main.cpp b/Demos/ConcaveRaycastDemo/main.cpp deleted file mode 100644 index 03fe36f08..000000000 --- a/Demos/ConcaveRaycastDemo/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -#include "ConcaveRaycastDemo.h" -#include "GlutStuff.h" - - -int main(int argc,char** argv) -{ - - ConcaveRaycastDemo* concaveRaycastDemo = new ConcaveRaycastDemo(); - concaveRaycastDemo->initPhysics(); - concaveRaycastDemo->setCameraDistance(30.f); - - return glutmain(argc, argv,640,480,"Concave Raycast Demo",concaveRaycastDemo); -} - diff --git a/Demos/ConstraintDemo/CMakeLists.txt b/Demos/ConstraintDemo/CMakeLists.txt deleted file mode 100644 index 6051a2455..000000000 --- a/Demos/ConstraintDemo/CMakeLists.txt +++ /dev/null @@ -1,52 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} - ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppConstraintDemo - ConstraintDemo.cpp - ConstraintDemo.h - main.cpp - ) -ELSE (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppConstraintDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32ConstraintDemo.cpp - ConstraintDemo.cpp - ConstraintDemo.h - ) -ENDIF (USE_GLUT) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConstraintDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConstraintDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConstraintDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/ConstraintDemo/ConstraintDemo.h b/Demos/ConstraintDemo/ConstraintDemo.h deleted file mode 100644 index 5037cb91e..000000000 --- a/Demos/ConstraintDemo/ConstraintDemo.h +++ /dev/null @@ -1,75 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef CONSTRAINT_DEMO_H -#define CONSTRAINT_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -///ConstraintDemo shows how to create a constraint, like Hinge or btGenericD6constraint -class ConstraintDemo : public PlatformDemoApplication -{ - //keep track of variables to delete memory at the end - btAlignedObjectArray m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - void setupEmptyDynamicsWorld(); - - void clientResetScene(); - - - public: - - - virtual ~ConstraintDemo(); - - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - ConstraintDemo* demo = new ConstraintDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - - virtual void keyboardCallback(unsigned char key, int x, int y); - - // for cone-twist motor driving - float m_Time; - class btConeTwistConstraint* m_ctc; - -}; - -#endif //CONSTRAINT_DEMO_H - diff --git a/Demos/ConstraintDemo/Win32ConstraintDemo.cpp b/Demos/ConstraintDemo/Win32ConstraintDemo.cpp deleted file mode 100644 index 552c263cd..000000000 --- a/Demos/ConstraintDemo/Win32ConstraintDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "ConstraintDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new ConstraintDemo(); -} - -#endif diff --git a/Demos/ConstraintDemo/main.cpp b/Demos/ConstraintDemo/main.cpp deleted file mode 100644 index 0cec5f6cb..000000000 --- a/Demos/ConstraintDemo/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "ConstraintDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" - -#include "btBulletDynamicsCommon.h" - -int main(int argc,char** argv) -{ - - - - ConstraintDemo* constraintDemo = new ConstraintDemo(); - - - constraintDemo->initPhysics(); - constraintDemo->setDebugMode(btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits); - - return glutmain(argc, argv,640,480,"Constraint Demo. http://www.continuousphysics.com/Bullet/phpBB2/",constraintDemo); -} - diff --git a/Demos/ContinuousConvexCollision/CMakeLists.txt b/Demos/ContinuousConvexCollision/CMakeLists.txt deleted file mode 100644 index 6426bc382..000000000 --- a/Demos/ContinuousConvexCollision/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppContinuousConvexCollisionDemo - ContinuousConvexCollisionDemo.cpp -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppContinuousConvexCollisionDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppContinuousConvexCollisionDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppContinuousConvexCollisionDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ContinuousConvexCollision/ContinuousConvexCollision.h b/Demos/ContinuousConvexCollision/ContinuousConvexCollision.h deleted file mode 100644 index 3f08900a4..000000000 --- a/Demos/ContinuousConvexCollision/ContinuousConvexCollision.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef CONTINUOUS_CONVEX_COLLISION_DEMO_H -#define CONTINUOUS_CONVEX_COLLISION_DEMO_H - - - -///ContinuousConvexCollisionDemo shows the working of the continuous collision detection, including linear and angular motion -#include "GlutDemoApplication.h" -class btContinuousConvexCollisionDemo : public GlutDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - -}; - -#endif //CONTINUOUS_CONVEX_COLLISION_DEMO_H - diff --git a/Demos/ContinuousConvexCollision/ContinuousConvexCollisionDemo.cpp b/Demos/ContinuousConvexCollision/ContinuousConvexCollisionDemo.cpp deleted file mode 100644 index 932484509..000000000 --- a/Demos/ContinuousConvexCollision/ContinuousConvexCollisionDemo.cpp +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright (c) 2005 Erwin Coumans http://continuousphysics.com/Bullet/ - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies. - * Erwin Coumans makes no representations about the suitability - * of this software for any purpose. - * It is provided "as is" without express or implied warranty. - */ - - -/* - Continuous Convex Collision Demo demonstrates an efficient continuous collision detection algorithm. - Both linear and angular velocities are supported. Convex Objects are sampled using Supporting Vertex. - Motion using Exponential Map. - Future ideas: Comparison with Screwing Motion. - Also comparision with Algebraic CCD and Interval Arithmetic methods (Stephane Redon) -*/ - - -///This low level demo need internal access, and intentionally doesn't include the btBulletCollisionCommon.h headerfile -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/CollisionShapes/btMinkowskiSumShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h" -#include "BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h" -#include "BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h" - -#include "LinearMath/btTransformUtil.h" -#include "DebugCastResult.h" - -#include "BulletCollision/CollisionShapes/btSphereShape.h" - -#include "BulletCollision/CollisionShapes/btTetrahedronShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h" - -#include "GL_ShapeDrawer.h" -#include "ContinuousConvexCollision.h" -#include "GlutStuff.h" - - -float yaw=0.f,pitch=0.f,roll=0.f; -const int maxNumObjects = 4; -const int numObjects = 2; - -btVector3 angVels[numObjects]; -btVector3 linVels[numObjects]; - -btPolyhedralConvexShape* shapePtr[maxNumObjects]; - - -btTransform fromTrans[maxNumObjects]; -btTransform toTrans[maxNumObjects]; - - -int screenWidth = 640; -int screenHeight = 480; - - -int main(int argc,char** argv) -{ - btContinuousConvexCollisionDemo* ccdDemo = new btContinuousConvexCollisionDemo(); - - ccdDemo->setCameraDistance(40.f); - - ccdDemo->initPhysics(); - - return glutmain(argc, argv,screenWidth,screenHeight,"Continuous Convex Collision Demo",ccdDemo); -} - - -void btContinuousConvexCollisionDemo::initPhysics() -{ - fromTrans[0].setOrigin(btVector3(0,10,20)); - toTrans[0].setOrigin(btVector3(0,10,-20)); - fromTrans[1].setOrigin(btVector3(-2,7,0)); - toTrans[1].setOrigin(btVector3(-2,10,0)); - - btMatrix3x3 identBasis; - identBasis.setIdentity(); - - btMatrix3x3 basisA; - basisA.setIdentity(); - basisA.setEulerZYX(0.f,-SIMD_HALF_PI,0.f); - - fromTrans[0].setBasis(identBasis); - toTrans[0].setBasis(basisA); - - fromTrans[1].setBasis(identBasis); - toTrans[1].setBasis(identBasis); - - toTrans[1].setBasis(identBasis); - btVector3 boxHalfExtentsA(10,1,1); - btVector3 boxHalfExtentsB(1.1f,1.1f,1.1f); - btBoxShape* boxA = new btBoxShape(boxHalfExtentsA); -// btBU_Simplex1to4* boxA = new btBU_Simplex1to4(btVector3(-2,0,-2),btVector3(2,0,-2),btVector3(0,0,2),btVector3(0,2,0)); -// btBU_Simplex1to4* boxA = new btBU_Simplex1to4(btVector3(-12,0,0),btVector3(12,0,0)); - - - btBoxShape* boxB = new btBoxShape(boxHalfExtentsB); - - shapePtr[0] = boxA; - shapePtr[1] = boxB; - - shapePtr[0]->setMargin(0.01f); - shapePtr[1]->setMargin(0.01f); - - for (int i=0;idrawOpenGL(m,shapePtr[i],btVector3(1,0,1),getDebugMode(),worldBoundsMin,worldBoundsMax); - } - } - } - - - btMatrix3x3 mat; - mat.setEulerZYX(yaw,pitch,roll); - btQuaternion orn; - mat.getRotation(orn); - orn.setEuler(yaw,pitch,roll); - fromTrans[1].setRotation(orn); - toTrans[1].setRotation(orn); - - - if (m_stepping || m_singleStep) - { - m_singleStep = false; - pitch += 0.005f; -// yaw += 0.01f; - } -// btVector3 fromA(-25,11,0); -// btVector3 toA(-15,11,0); - -// btQuaternion ornFromA(0.f,0.f,0.f,1.f); -// btQuaternion ornToA(0.f,0.f,0.f,1.f); - -// btTransform rayFromWorld(ornFromA,fromA); -// btTransform rayToWorld(ornToA,toA); - - btTransform rayFromWorld = fromTrans[0]; - btTransform rayToWorld = toTrans[0]; - - - if (drawLine) - { - glBegin(GL_LINES); - glColor3f(0, 0, 1); - glVertex3d(rayFromWorld.getOrigin().x(), rayFromWorld.getOrigin().y(),rayFromWorld.getOrigin().z()); - glVertex3d(rayToWorld.getOrigin().x(),rayToWorld.getOrigin().y(),rayToWorld.getOrigin().z()); - glEnd(); - } - - //now perform a raycast on the shapes, in local (shape) space - gGjkSimplexSolver.reset(); - - //choose one of the following lines - - - for (i=0;idrawOpenGL(m,shapePtr[i],btVector3(1,1,1),getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - btDebugCastResult rayResult1(fromTrans[0],shapePtr[0],linVels[0],angVels[0],m_shapeDrawer); - - - for (i=1;im_fraction,hitTrans); - - hitTrans.getOpenGLMatrix(m); - m_shapeDrawer->drawOpenGL(m,shapePtr[0],btVector3(0,1,0),getDebugMode(),worldBoundsMin,worldBoundsMax); - - btTransformUtil::integrateTransform(fromTrans[i],linVels[i],angVels[i],rayResultPtr->m_fraction,hitTrans); - - hitTrans.getOpenGLMatrix(m); - m_shapeDrawer->drawOpenGL(m,shapePtr[i],btVector3(0,1,1),getDebugMode(),worldBoundsMin,worldBoundsMax); - - - } - } - - swapBuffers(); -} - - diff --git a/Demos/ConvexDecompositionDemo/CMakeLists.txt b/Demos/ConvexDecompositionDemo/CMakeLists.txt deleted file mode 100644 index 08045bd4f..000000000 --- a/Demos/ConvexDecompositionDemo/CMakeLists.txt +++ /dev/null @@ -1,69 +0,0 @@ - -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${BULLET_PHYSICS_SOURCE_DIR}/Extras/HACD -${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexDecomposition -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter -${GLUT_INCLUDE_DIR} - -) - -IF (USE_GLUT) - - LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision LinearMath BulletFileLoader HACD ConvexDecomposition ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppConvexDecompositionDemo - main.cpp - ConvexDecompositionDemo.cpp - ConvexDecompositionDemo.h - ) -ELSE (USE_GLUT) - -LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletDynamics BulletCollision LinearMath BulletFileLoader HACD ConvexDecomposition ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppConvexDecompositionDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - ConvexDecompositionDemo.cpp - ConvexDecompositionDemo.h - Win32ConvexDecompositionDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - -ENDIF (USE_GLUT) - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( - TARGET AppConvexDecompositionDemo - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SerializeDemo/testFile.bullet ${CMAKE_CURRENT_BINARY_DIR}/testFile.bullet - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/ConvexDecompositionDemo/file.obj ${CMAKE_CURRENT_BINARY_DIR} - ) -ENDIF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConvexDecompositionDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/ConvexDecompositionDemo/ConvexDecompositionDemo.cpp b/Demos/ConvexDecompositionDemo/ConvexDecompositionDemo.cpp deleted file mode 100644 index 3b081eaf9..000000000 --- a/Demos/ConvexDecompositionDemo/ConvexDecompositionDemo.cpp +++ /dev/null @@ -1,778 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "hacdCircularList.h" -#include "hacdVector.h" -#include "hacdICHull.h" -#include "hacdGraph.h" -#include "hacdHACD.h" - -#include "cd_wavefront.h" -#include "ConvexBuilder.h" - -#include "btBulletDynamicsCommon.h" - -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btIDebugDraw.h" -#include "LinearMath/btGeometryUtil.h" -#include "BulletCollision/CollisionShapes/btShapeHull.h" -#include "GLDebugDrawer.h" -GLDebugDrawer gDebugDrawer; -//#define TEST_SERIALIZATION -//#define NO_OBJ_TO_BULLET - -#ifdef TEST_SERIALIZATION -#include "LinearMath/btSerializer.h" -#include "btBulletFile.h" -#include "btBulletWorldImporter.h" -#endif - -//#define USE_PARALLEL_DISPATCHER 1 -#ifdef USE_PARALLEL_DISPATCHER -#include "../../Extras/BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "../../Extras/BulletMultiThreaded/Win32ThreadSupport.h" -#include "../../Extras/BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" -#endif//USE_PARALLEL_DISPATCHER - -#include "BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.h"//for the callback - -bool MyCompoundChildShapeCallback(const btCollisionShape* pShape0, const btCollisionShape* pShape1) -{ - return true; -} - -#include "GLDebugFont.h" -#include //printf debugging - - -#include "ConvexDecompositionDemo.h" -#include "GL_ShapeDrawer.h" - -#include "GlutStuff.h" - - -btVector3 centroid=btVector3(0,0,0); -btVector3 convexDecompositionObjectOffset(10,0,0); - -#define CUBE_HALF_EXTENTS 4 - - -//////////////////////////////////// - -unsigned int tcount = 0; - -//sEnableSAT creates the data structures required for performing SAT tests between convex polyhedra, as alternative to GJK -bool sEnableSAT = false; - -void ConvexDecompositionDemo::initPhysics() -{ - initPhysics("file.obj"); -} - - - - -///MyContactCallback is just an example to show how to get access to the child shape that collided -bool MyContactCallback ( - btManifoldPoint& cp, - const btCollisionObjectWrapper* colObj0Wrap, - int partId0, - int index0, - const btCollisionObjectWrapper* colObj1Wrap, - int partId1, - int index1) -{ - - if (colObj0Wrap->getCollisionObject()->getCollisionShape()->getShapeType()==COMPOUND_SHAPE_PROXYTYPE) - { - btCompoundShape* compound = (btCompoundShape*)colObj0Wrap->getCollisionObject()->getCollisionShape(); - btCollisionShape* childShape; - childShape = compound->getChildShape(index0); - } - - if (colObj1Wrap->getCollisionObject()->getCollisionShape()->getShapeType()==COMPOUND_SHAPE_PROXYTYPE) - { - btCompoundShape* compound = (btCompoundShape*)colObj1Wrap->getCollisionObject()->getCollisionShape(); - btCollisionShape* childShape; - childShape = compound->getChildShape(index1); - } - - return true; -} - - -void ConvexDecompositionDemo::setupEmptyDynamicsWorld() -{ -m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - -#ifdef USE_PARALLEL_DISPATCHER -#ifdef USE_WIN32_THREADING - - int maxNumOutstandingTasks = 4;//number of maximum outstanding tasks - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( - "collision", - processCollisionTask, - createCollisionLocalStoreMemory, - maxNumOutstandingTasks)); -#else -///@todo other platform threading -///Playstation 3 SPU (SPURS) version is available through PS3 Devnet -///Libspe2 SPU support will be available soon -///pthreads version -///you can hook it up to your custom task scheduler by deriving from btThreadSupportInterface -#endif - - m_dispatcher = new SpuGatheringCollisionDispatcher(threadSupport,maxNumOutstandingTasks,m_collisionConfiguration); -#else - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); -#endif//USE_PARALLEL_DISPATCHER - - gCompoundChildShapePairCallback = MyCompoundChildShapeCallback; - - convexDecompositionObjectOffset.setValue(10,0,0); - - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax(10000,10000,10000); - - m_broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax); - //m_broadphase = new btSimpleBroadphase(); - - m_solver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - -#ifdef USE_PARALLEL_DISPATCHER - m_dynamicsWorld->getDispatchInfo().m_enableSPU = true; -#endif //USE_PARALLEL_DISPATCHER - -} - -void ConvexDecompositionDemo::initPhysics(const char* filename) -{ - - gContactAddedCallback = &MyContactCallback; - - setupEmptyDynamicsWorld(); - - getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - setTexturing(true); - setShadows(true); - - setCameraDistance(26.f); - - -#ifndef NO_OBJ_TO_BULLET - - ConvexDecomposition::WavefrontObj wo; - - tcount = 0; - const char* prefix[]={"./","../","../../","../../../","../../../../", "ConvexDecompositionDemo/", "Demos/ConvexDecompositionDemo/", - "../Demos/ConvexDecompositionDemo/","../../Demos/ConvexDecompositionDemo/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - - for (int i=0;i m_convexShapes; - btAlignedObjectArray m_convexCentroids; - - MyConvexDecomposition (FILE* outputFile,ConvexDecompositionDemo* demo) - :m_convexDemo(demo), - mBaseCount(0), - mHullCount(0), - mOutputFile(outputFile) - - { - } - - virtual void ConvexDecompResult(ConvexDecomposition::ConvexResult &result) - { - - btTriangleMesh* trimesh = new btTriangleMesh(); - m_convexDemo->m_trimeshes.push_back(trimesh); - - btVector3 localScaling(6.f,6.f,6.f); - - //export data to .obj - printf("ConvexResult. "); - if (mOutputFile) - { - fprintf(mOutputFile,"## Hull Piece %d with %d vertices and %d triangles.\r\n", mHullCount, result.mHullVcount, result.mHullTcount ); - - fprintf(mOutputFile,"usemtl Material%i\r\n",mBaseCount); - fprintf(mOutputFile,"o Object%i\r\n",mBaseCount); - - for (unsigned int i=0; i vertices; - if ( 1 ) - { - //const unsigned int *src = result.mHullIndices; - for (unsigned int i=0; iaddTriangle(vertex0,vertex1,vertex2); - - index0+=mBaseCount; - index1+=mBaseCount; - index2+=mBaseCount; - - fprintf(mOutputFile,"f %d %d %d\r\n", index0+1, index1+1, index2+1 ); - } - } - - // float mass = 1.f; - - -//this is a tools issue: due to collision margin, convex objects overlap, compensate for it here: -//#define SHRINK_OBJECT_INWARDS 1 -#ifdef SHRINK_OBJECT_INWARDS - - float collisionMargin = 0.01f; - - btAlignedObjectArray planeEquations; - btGeometryUtil::getPlaneEquationsFromVertices(vertices,planeEquations); - - btAlignedObjectArray shiftedPlaneEquations; - for (int p=0;p shiftedVertices; - btGeometryUtil::getVerticesFromPlaneEquations(shiftedPlaneEquations,shiftedVertices); - - - btConvexHullShape* convexShape = new btConvexHullShape(&(shiftedVertices[0].getX()),shiftedVertices.size()); - -#else //SHRINK_OBJECT_INWARDS - - btConvexHullShape* convexShape = new btConvexHullShape(&(vertices[0].getX()),vertices.size()); -#endif - if (sEnableSAT) - convexShape->initializePolyhedralFeatures(); - convexShape->setMargin(0.01f); - m_convexShapes.push_back(convexShape); - m_convexCentroids.push_back(centroid); - m_convexDemo->m_collisionShapes.push_back(convexShape); - mBaseCount+=result.mHullVcount; // advance the 'base index' counter. - - - } - } - - int mBaseCount; - int mHullCount; - FILE* mOutputFile; - - }; - - if (tcount) - { - btTriangleMesh* trimesh = new btTriangleMesh(); - m_trimeshes.push_back(trimesh); - - btVector3 localScaling(6.f,6.f,6.f); - - int i; - for ( i=0;iaddTriangle(vertex0,vertex1,vertex2); - } - - - btConvexShape* tmpConvexShape = new btConvexTriangleMeshShape(trimesh); - - printf("old numTriangles= %d\n",wo.mTriCount); - printf("old numIndices = %d\n",wo.mTriCount*3); - printf("old numVertices = %d\n",wo.mVertexCount); - - printf("reducing vertices by creating a convex hull\n"); - - //create a hull approximation - btShapeHull* hull = new btShapeHull(tmpConvexShape); - btScalar margin = tmpConvexShape->getMargin(); - hull->buildHull(margin); - tmpConvexShape->setUserPointer(hull); - - - printf("new numTriangles = %d\n", hull->numTriangles ()); - printf("new numIndices = %d\n", hull->numIndices ()); - printf("new numVertices = %d\n", hull->numVertices ()); - - btConvexHullShape* convexShape = new btConvexHullShape(); - bool updateLocalAabb = false; - - for (i=0;inumVertices();i++) - { - convexShape->addPoint(hull->getVertexPointer()[i],updateLocalAabb); - } - convexShape->recalcLocalAabb(); - - if (sEnableSAT) - convexShape->initializePolyhedralFeatures(); - delete tmpConvexShape; - delete hull; - - - - m_collisionShapes.push_back(convexShape); - - float mass = 1.f; - - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,2,14)); - - localCreateRigidBody(mass, startTransform,convexShape); - - bool useQuantization = true; - btCollisionShape* concaveShape = new btBvhTriangleMeshShape(trimesh,useQuantization); - startTransform.setOrigin(convexDecompositionObjectOffset); - localCreateRigidBody(0.f,startTransform,concaveShape); - - m_collisionShapes.push_back (concaveShape); - - } - - - if (tcount) - { - //----------------------------------- - // Bullet Convex Decomposition - //----------------------------------- - - char outputFileName[512]; - strcpy(outputFileName,filename); - char *dot = strstr(outputFileName,"."); - if ( dot ) - *dot = 0; - strcat(outputFileName,"_convex.obj"); - FILE* outputFile = fopen(outputFileName,"wb"); - - unsigned int depth = 5; - float cpercent = 5; - float ppercent = 15; - unsigned int maxv = 16; - float skinWidth = 0.0; - - printf("WavefrontObj num triangles read %i\n",tcount); - ConvexDecomposition::DecompDesc desc; - desc.mVcount = wo.mVertexCount; - desc.mVertices = wo.mVertices; - desc.mTcount = wo.mTriCount; - desc.mIndices = (unsigned int *)wo.mIndices; - desc.mDepth = depth; - desc.mCpercent = cpercent; - desc.mPpercent = ppercent; - desc.mMaxVertices = maxv; - desc.mSkinWidth = skinWidth; - - MyConvexDecomposition convexDecomposition(outputFile,this); - desc.mCallback = &convexDecomposition; - - - //----------------------------------------------- - // HACD - //----------------------------------------------- - - std::vector< HACD::Vec3 > points; - std::vector< HACD::Vec3 > triangles; - - for(int i=0; i vertex(wo.mVertices[index], wo.mVertices[index+1],wo.mVertices[index+2]); - points.push_back(vertex); - } - - for(int i=0;i triangle(wo.mIndices[index], wo.mIndices[index+1], wo.mIndices[index+2]); - triangles.push_back(triangle); - } - - - HACD::HACD myHACD; - myHACD.SetPoints(&points[0]); - myHACD.SetNPoints(points.size()); - myHACD.SetTriangles(&triangles[0]); - myHACD.SetNTriangles(triangles.size()); - myHACD.SetCompacityWeight(0.1); - myHACD.SetVolumeWeight(0.0); - - // HACD parameters - // Recommended parameters: 2 100 0 0 0 0 - size_t nClusters = 2; - double concavity = 100; - bool invert = false; - bool addExtraDistPoints = false; - bool addNeighboursDistPoints = false; - bool addFacesPoints = false; - - myHACD.SetNClusters(nClusters); // minimum number of clusters - myHACD.SetNVerticesPerCH(100); // max of 100 vertices per convex-hull - myHACD.SetConcavity(concavity); // maximum concavity - myHACD.SetAddExtraDistPoints(addExtraDistPoints); - myHACD.SetAddNeighboursDistPoints(addNeighboursDistPoints); - myHACD.SetAddFacesPoints(addFacesPoints); - - myHACD.Compute(); - nClusters = myHACD.GetNClusters(); - - myHACD.Save("output.wrl", false); - - - //convexDecomposition.performConvexDecomposition(desc); - -// ConvexBuilder cb(desc.mCallback); -// cb.process(desc); - //now create some bodies - - if (1) - { - btCompoundShape* compound = new btCompoundShape(); - m_collisionShapes.push_back (compound); - - btTransform trans; - trans.setIdentity(); - - for (int c=0;c * pointsCH = new HACD::Vec3[nPoints]; - HACD::Vec3 * trianglesCH = new HACD::Vec3[nTriangles]; - myHACD.GetCH(c, pointsCH, trianglesCH); - - // points - for(size_t v = 0; v < nPoints; v++) - { - vertices[3*v] = pointsCH[v].X(); - vertices[3*v+1] = pointsCH[v].Y(); - vertices[3*v+2] = pointsCH[v].Z(); - } - // triangles - for(size_t f = 0; f < nTriangles; f++) - { - triangles[3*f] = trianglesCH[f].X(); - triangles[3*f+1] = trianglesCH[f].Y(); - triangles[3*f+2] = trianglesCH[f].Z(); - } - - delete [] pointsCH; - delete [] trianglesCH; - - ConvexResult r(nPoints, vertices, nTriangles, triangles); - convexDecomposition.ConvexDecompResult(r); - } - - for (int i=0;iaddChildShape(trans,convexShape); - - btRigidBody* body; - body = localCreateRigidBody( 1.0, trans,convexShape); - } -/* for (int i=0;iaddChildShape(trans,convexShape); - - btRigidBody* body; - body = localCreateRigidBody( 1.0, trans,convexShape); - }*/ - -#if 1 - btScalar mass=10.f; - trans.setOrigin(-convexDecompositionObjectOffset); - btRigidBody* body = localCreateRigidBody( mass, trans,compound); - body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - convexDecompositionObjectOffset.setZ(6); - trans.setOrigin(-convexDecompositionObjectOffset); - body = localCreateRigidBody( mass, trans,compound); - body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - convexDecompositionObjectOffset.setZ(-6); - trans.setOrigin(-convexDecompositionObjectOffset); - body = localCreateRigidBody( mass, trans,compound); - body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); -#endif - } - - - if (outputFile) - fclose(outputFile); - - - } - - - -#ifdef TEST_SERIALIZATION - //test serializing this - - int maxSerializeBufferSize = 1024*1024*5; - - btDefaultSerializer* serializer = new btDefaultSerializer(maxSerializeBufferSize); - m_dynamicsWorld->serialize(serializer); - - FILE* f2 = fopen("testFile.bullet","wb"); - fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1,f2); - fclose(f2); - - exitPhysics(); - - //now try again from the loaded file - setupEmptyDynamicsWorld(); -#endif //TEST_SERIALIZATION - -#endif //NO_OBJ_TO_BULLET - -#ifdef TEST_SERIALIZATION - - btBulletWorldImporter* fileLoader = new btBulletWorldImporter(m_dynamicsWorld); - //fileLoader->setVerboseMode(true); - - fileLoader->loadFile("testFile.bullet"); - //fileLoader->loadFile("testFile64Double.bullet"); - //fileLoader->loadFile("testFile64Single.bullet"); - //fileLoader->loadFile("testFile32Single.bullet"); - - - - -#endif //TEST_SERIALIZATION - -} - -void ConvexDecompositionDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - swapBuffers(); - -} - - - -void ConvexDecompositionDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - - glFlush(); - swapBuffers(); -} - - - - -void ConvexDecompositionDemo::exitPhysics() -{ - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (i=0;i m_collisionShapes; - - btAlignedObjectArray m_trimeshes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - - virtual void initPhysics(); - - void initPhysics(const char* filename); - - void exitPhysics(); - - virtual void clientResetScene(); - - virtual ~ConvexDecompositionDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - ConvexDecompositionDemo* demo = new ConvexDecompositionDemo(); - demo->myinit(); - demo->initPhysics("file.obj"); - return demo; - } - - -}; - -#endif //CONVEX_DECOMPOSITION_DEMO_H - - diff --git a/Demos/ConvexDecompositionDemo/Win32ConvexDecompositionDemo.cpp b/Demos/ConvexDecompositionDemo/Win32ConvexDecompositionDemo.cpp deleted file mode 100644 index d04e1d378..000000000 --- a/Demos/ConvexDecompositionDemo/Win32ConvexDecompositionDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "ConvexDecompositionDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new ConvexDecompositionDemo(); -} - -#endif diff --git a/Demos/ConvexDecompositionDemo/file.obj b/Demos/ConvexDecompositionDemo/file.obj deleted file mode 100644 index 15047b022..000000000 --- a/Demos/ConvexDecompositionDemo/file.obj +++ /dev/null @@ -1,3578 +0,0 @@ -v 0.000118 -0.390977 -0.478607 -v 0.017389 -0.390977 -0.478271 -v 0.029547 -0.390983 -0.429828 -v 0.000118 -0.390983 -0.429848 -v 0.017389 -0.390977 -0.478271 -v 0.017389 -0.342855 -0.474044 -v 0.029547 -0.317820 -0.429577 -v 0.029547 -0.390983 -0.429828 -v 0.017389 -0.342855 -0.474044 -v 0.000118 -0.331762 -0.473074 -v 0.000118 -0.306727 -0.429520 -v 0.029547 -0.317820 -0.429577 -v -0.017152 -0.342855 -0.474044 -v -0.029311 -0.317820 -0.429577 -v -0.017152 -0.342855 -0.474044 -v -0.017152 -0.390977 -0.478271 -v -0.029311 -0.390983 -0.429828 -v -0.029311 -0.317820 -0.429577 -v -0.017152 -0.390977 -0.478271 -v -0.029311 -0.390983 -0.429828 -v 0.017389 -0.391071 -0.377731 -v 0.000118 -0.391100 -0.378066 -v 0.017389 -0.336012 -0.378305 -v 0.017389 -0.391071 -0.377731 -v 0.029547 -0.317820 -0.429577 -v 0.000118 -0.306727 -0.429520 -v 0.000118 -0.324876 -0.378305 -v 0.017389 -0.336012 -0.378305 -v 0.000118 -0.306727 -0.429520 -v -0.029311 -0.317820 -0.429577 -v -0.017152 -0.336012 -0.378305 -v 0.000118 -0.324876 -0.378305 -v -0.017152 -0.391071 -0.377731 -v -0.017152 -0.336012 -0.378305 -v -0.017152 -0.391071 -0.377731 -v 0.017389 -0.355018 -0.311310 -v 0.000118 -0.358745 -0.310312 -v 0.017389 -0.313071 -0.327714 -v 0.017389 -0.355018 -0.311310 -v 0.000118 -0.302315 -0.330597 -v 0.017389 -0.313071 -0.327714 -v -0.017152 -0.313071 -0.327714 -v 0.000118 -0.302315 -0.330597 -v -0.017152 -0.355018 -0.311310 -v -0.017152 -0.313071 -0.327714 -v -0.017152 -0.355018 -0.311310 -v 0.027414 -0.282077 -0.242925 -v 0.000118 -0.286749 -0.239005 -v 0.027414 -0.244765 -0.265699 -v 0.027414 -0.282077 -0.242925 -v 0.000118 -0.231283 -0.277012 -v 0.027414 -0.244765 -0.265699 -v -0.027178 -0.244765 -0.265699 -v 0.000118 -0.231283 -0.277012 -v -0.027178 -0.282077 -0.242925 -v -0.027178 -0.244765 -0.265699 -v -0.027178 -0.282077 -0.242925 -v 0.035601 -0.254040 -0.188841 -v 0.000118 -0.261848 -0.187464 -v 0.035601 -0.172486 -0.190596 -v 0.035601 -0.254040 -0.188841 -v 0.000118 -0.149955 -0.194569 -v 0.035601 -0.172486 -0.190596 -v -0.035364 -0.172486 -0.190596 -v 0.000118 -0.149955 -0.194569 -v -0.035364 -0.254040 -0.188841 -v -0.035364 -0.172486 -0.190596 -v -0.035364 -0.254040 -0.188841 -v 0.000118 -0.360973 -0.484897 -v 0.017389 -0.390977 -0.478271 -v 0.000118 -0.390977 -0.478607 -v 0.017389 -0.342855 -0.474044 -v 0.000118 -0.331762 -0.473074 -v -0.017152 -0.342855 -0.474044 -v -0.017152 -0.390977 -0.478271 -v 0.035601 -0.232880 -0.098411 -v 0.000118 -0.240808 -0.098411 -v 0.035601 -0.144967 -0.098411 -v 0.035601 -0.232880 -0.098411 -v 0.000118 -0.122088 -0.098411 -v 0.035601 -0.144967 -0.098411 -v -0.035364 -0.144967 -0.098411 -v 0.000118 -0.122088 -0.098411 -v -0.035364 -0.232880 -0.098411 -v -0.035364 -0.144967 -0.098411 -v -0.035364 -0.232880 -0.098411 -v 0.478607 -0.390977 0.000118 -v 0.478271 -0.390977 0.017389 -v 0.429828 -0.390983 0.029547 -v 0.429848 -0.390983 0.000118 -v 0.478271 -0.390977 0.017389 -v 0.474044 -0.342855 0.017389 -v 0.429577 -0.317820 0.029547 -v 0.429828 -0.390983 0.029547 -v 0.474044 -0.342855 0.017389 -v 0.473074 -0.331762 0.000118 -v 0.429520 -0.306727 0.000118 -v 0.429577 -0.317820 0.029547 -v 0.474044 -0.342855 -0.017152 -v 0.429577 -0.317820 -0.029311 -v 0.474044 -0.342855 -0.017152 -v 0.478271 -0.390977 -0.017152 -v 0.429828 -0.390983 -0.029311 -v 0.429577 -0.317820 -0.029311 -v 0.478271 -0.390977 -0.017152 -v 0.429828 -0.390983 -0.029311 -v 0.377731 -0.391071 0.017389 -v 0.378066 -0.391100 0.000118 -v 0.378305 -0.336012 0.017389 -v 0.377731 -0.391071 0.017389 -v 0.429577 -0.317820 0.029547 -v 0.429520 -0.306727 0.000118 -v 0.378305 -0.324876 0.000118 -v 0.378305 -0.336012 0.017389 -v 0.429520 -0.306727 0.000118 -v 0.429577 -0.317820 -0.029311 -v 0.378305 -0.336012 -0.017152 -v 0.378305 -0.324876 0.000118 -v 0.377731 -0.391071 -0.017152 -v 0.378305 -0.336012 -0.017152 -v 0.377731 -0.391071 -0.017152 -v 0.311310 -0.355018 0.017389 -v 0.310312 -0.358745 0.000118 -v 0.327714 -0.313071 0.017389 -v 0.311310 -0.355018 0.017389 -v 0.330597 -0.302315 0.000118 -v 0.327714 -0.313071 0.017389 -v 0.327714 -0.313071 -0.017152 -v 0.330597 -0.302315 0.000118 -v 0.311310 -0.355018 -0.017152 -v 0.327714 -0.313071 -0.017152 -v 0.311310 -0.355018 -0.017152 -v 0.242925 -0.282077 0.027414 -v 0.239005 -0.286749 0.000118 -v 0.265699 -0.244765 0.027414 -v 0.242925 -0.282077 0.027414 -v 0.277012 -0.231283 0.000118 -v 0.265699 -0.244765 0.027414 -v 0.265699 -0.244765 -0.027178 -v 0.277012 -0.231283 0.000118 -v 0.242925 -0.282077 -0.027178 -v 0.265699 -0.244765 -0.027178 -v 0.242925 -0.282077 -0.027178 -v 0.188841 -0.254040 0.035601 -v 0.187464 -0.261848 0.000118 -v 0.190596 -0.172486 0.035601 -v 0.188841 -0.254040 0.035601 -v 0.194569 -0.149955 0.000118 -v 0.190596 -0.172486 0.035601 -v 0.190596 -0.172486 -0.035364 -v 0.194569 -0.149955 0.000118 -v 0.188841 -0.254040 -0.035364 -v 0.190596 -0.172486 -0.035364 -v 0.188841 -0.254040 -0.035364 -v 0.484897 -0.360973 0.000118 -v 0.478271 -0.390977 0.017389 -v 0.478607 -0.390977 0.000118 -v 0.474044 -0.342855 0.017389 -v 0.473074 -0.331762 0.000118 -v 0.474044 -0.342855 -0.017152 -v 0.478271 -0.390977 -0.017152 -v 0.098411 -0.232880 0.035601 -v 0.098411 -0.240808 0.000118 -v 0.098411 -0.144967 0.035601 -v 0.098411 -0.232880 0.035601 -v 0.098411 -0.122088 0.000118 -v 0.098411 -0.144967 0.035601 -v 0.098411 -0.144967 -0.035364 -v 0.098411 -0.122088 0.000118 -v 0.098411 -0.232880 -0.035364 -v 0.098411 -0.144967 -0.035364 -v 0.098411 -0.232880 -0.035364 -v -0.000118 -0.390977 0.478607 -v -0.017389 -0.390977 0.478271 -v -0.029547 -0.390983 0.429828 -v -0.000118 -0.390983 0.429848 -v -0.017389 -0.390977 0.478271 -v -0.017389 -0.342855 0.474044 -v -0.029547 -0.317820 0.429577 -v -0.029547 -0.390983 0.429828 -v -0.017389 -0.342855 0.474044 -v -0.000118 -0.331762 0.473074 -v -0.000118 -0.306727 0.429520 -v -0.029547 -0.317820 0.429577 -v 0.017152 -0.342855 0.474044 -v 0.029310 -0.317820 0.429577 -v 0.017152 -0.342855 0.474044 -v 0.017152 -0.390977 0.478271 -v 0.029310 -0.390983 0.429828 -v 0.029310 -0.317820 0.429577 -v 0.017152 -0.390977 0.478271 -v 0.029310 -0.390983 0.429828 -v -0.017389 -0.391071 0.377731 -v -0.000118 -0.391100 0.378066 -v -0.017389 -0.336012 0.378305 -v -0.017389 -0.391071 0.377731 -v -0.029547 -0.317820 0.429577 -v -0.000118 -0.306727 0.429520 -v -0.000118 -0.324876 0.378305 -v -0.017389 -0.336012 0.378305 -v -0.000118 -0.306727 0.429520 -v 0.029310 -0.317820 0.429577 -v 0.017152 -0.336012 0.378305 -v -0.000118 -0.324876 0.378305 -v 0.017152 -0.391071 0.377731 -v 0.017152 -0.336012 0.378305 -v 0.017152 -0.391071 0.377731 -v -0.017389 -0.355018 0.311310 -v -0.000118 -0.358745 0.310312 -v -0.017389 -0.313071 0.327714 -v -0.017389 -0.355018 0.311310 -v -0.000118 -0.302315 0.330597 -v -0.017389 -0.313071 0.327714 -v 0.017152 -0.313071 0.327714 -v -0.000118 -0.302315 0.330597 -v 0.017152 -0.355018 0.311310 -v 0.017152 -0.313071 0.327714 -v 0.017152 -0.355018 0.311310 -v -0.027414 -0.282077 0.242925 -v -0.000118 -0.286749 0.239005 -v -0.027414 -0.244765 0.265699 -v -0.027414 -0.282077 0.242925 -v -0.000118 -0.231283 0.277012 -v -0.027414 -0.244765 0.265699 -v 0.027178 -0.244765 0.265699 -v -0.000118 -0.231283 0.277012 -v 0.027178 -0.282077 0.242925 -v 0.027178 -0.244765 0.265699 -v 0.027178 -0.282077 0.242925 -v -0.035601 -0.254040 0.188841 -v -0.000118 -0.261848 0.187464 -v -0.035601 -0.172486 0.190596 -v -0.035601 -0.254040 0.188841 -v -0.000118 -0.149955 0.194569 -v -0.035601 -0.172486 0.190596 -v 0.035364 -0.172486 0.190596 -v -0.000118 -0.149955 0.194569 -v 0.035364 -0.254040 0.188841 -v 0.035364 -0.172486 0.190596 -v 0.035364 -0.254040 0.188841 -v -0.000118 -0.360973 0.484897 -v -0.017389 -0.390977 0.478271 -v -0.000118 -0.390977 0.478607 -v -0.017389 -0.342855 0.474044 -v -0.000118 -0.331762 0.473074 -v 0.017152 -0.342855 0.474044 -v 0.017152 -0.390977 0.478271 -v -0.035601 -0.232880 0.098411 -v -0.000118 -0.240808 0.098411 -v -0.035601 -0.144967 0.098411 -v -0.035601 -0.232880 0.098411 -v -0.000118 -0.122088 0.098411 -v -0.035601 -0.144967 0.098411 -v 0.035364 -0.144967 0.098411 -v -0.000118 -0.122088 0.098411 -v 0.035364 -0.232880 0.098411 -v 0.035364 -0.144967 0.098411 -v 0.035364 -0.232880 0.098411 -v -0.478607 -0.390977 -0.000118 -v -0.478271 -0.390977 -0.017389 -v -0.429828 -0.390983 -0.029547 -v -0.429848 -0.390983 -0.000118 -v -0.478271 -0.390977 -0.017389 -v -0.474044 -0.342855 -0.017389 -v -0.429577 -0.317820 -0.029547 -v -0.429828 -0.390983 -0.029547 -v -0.474044 -0.342855 -0.017389 -v -0.473074 -0.331762 -0.000118 -v -0.429520 -0.306727 -0.000118 -v -0.429577 -0.317820 -0.029547 -v -0.474044 -0.342855 0.017152 -v -0.429577 -0.317820 0.029310 -v -0.474044 -0.342855 0.017152 -v -0.478271 -0.390977 0.017152 -v -0.429828 -0.390983 0.029310 -v -0.429577 -0.317820 0.029310 -v -0.478271 -0.390977 0.017152 -v -0.429828 -0.390983 0.029310 -v -0.377731 -0.391071 -0.017389 -v -0.378066 -0.391100 -0.000118 -v -0.378305 -0.336012 -0.017389 -v -0.377731 -0.391071 -0.017389 -v -0.429577 -0.317820 -0.029547 -v -0.429520 -0.306727 -0.000118 -v -0.378305 -0.324876 -0.000118 -v -0.378305 -0.336012 -0.017389 -v -0.429520 -0.306727 -0.000118 -v -0.429577 -0.317820 0.029310 -v -0.378305 -0.336012 0.017152 -v -0.378305 -0.324876 -0.000118 -v -0.377731 -0.391071 0.017152 -v -0.378305 -0.336012 0.017152 -v -0.377731 -0.391071 0.017152 -v -0.311310 -0.355018 -0.017389 -v -0.310312 -0.358745 -0.000118 -v -0.327714 -0.313071 -0.017389 -v -0.311310 -0.355018 -0.017389 -v -0.330597 -0.302315 -0.000118 -v -0.327714 -0.313071 -0.017389 -v -0.327714 -0.313071 0.017152 -v -0.330597 -0.302315 -0.000118 -v -0.311310 -0.355018 0.017152 -v -0.327714 -0.313071 0.017152 -v -0.311310 -0.355018 0.017152 -v -0.242925 -0.282077 -0.027414 -v -0.239005 -0.286749 -0.000118 -v -0.265699 -0.244765 -0.027414 -v -0.242925 -0.282077 -0.027414 -v -0.277012 -0.231283 -0.000118 -v -0.265699 -0.244765 -0.027414 -v -0.265699 -0.244765 0.027178 -v -0.277012 -0.231283 -0.000118 -v -0.242925 -0.282077 0.027178 -v -0.265699 -0.244765 0.027178 -v -0.242925 -0.282077 0.027178 -v -0.188841 -0.254040 -0.035601 -v -0.187464 -0.261848 -0.000118 -v -0.190596 -0.172486 -0.035601 -v -0.188841 -0.254040 -0.035601 -v -0.194569 -0.149955 -0.000118 -v -0.190596 -0.172486 -0.035601 -v -0.190596 -0.172486 0.035364 -v -0.194569 -0.149955 -0.000118 -v -0.188841 -0.254040 0.035364 -v -0.190596 -0.172486 0.035364 -v -0.188841 -0.254040 0.035364 -v -0.484897 -0.360973 -0.000118 -v -0.478271 -0.390977 -0.017389 -v -0.478607 -0.390977 -0.000118 -v -0.474044 -0.342855 -0.017389 -v -0.473074 -0.331762 -0.000118 -v -0.474044 -0.342855 0.017152 -v -0.478271 -0.390977 0.017152 -v -0.098411 -0.232880 -0.035601 -v -0.098411 -0.240808 -0.000118 -v -0.098411 -0.144967 -0.035601 -v -0.098411 -0.232880 -0.035601 -v -0.098411 -0.122088 -0.000118 -v -0.098411 -0.144967 -0.035601 -v -0.098411 -0.144967 0.035364 -v -0.098411 -0.122088 -0.000118 -v -0.098411 -0.232880 0.035364 -v -0.098411 -0.144967 0.035364 -v -0.098411 -0.232880 0.035364 -v 0.000000 -0.094464 0.000000 -v 0.043796 -0.094464 0.105844 -v 0.105811 -0.094464 0.043875 -v -0.043875 -0.094464 0.105811 -v -0.105844 -0.094464 0.043796 -v -0.105811 -0.094464 -0.043875 -v -0.043796 -0.094464 -0.105844 -v 0.043875 -0.094464 -0.105811 -v 0.105844 -0.094464 -0.043796 -v 0.043796 -0.255563 0.105844 -v 0.105811 -0.255563 0.043875 -v 0.105811 -0.094464 0.043875 -v 0.043796 -0.094464 0.105844 -v -0.043875 -0.255563 0.105811 -v 0.043796 -0.255563 0.105844 -v 0.043796 -0.094464 0.105844 -v -0.043875 -0.094464 0.105811 -v -0.105844 -0.255563 0.043796 -v -0.043875 -0.255563 0.105811 -v -0.043875 -0.094464 0.105811 -v -0.105844 -0.094464 0.043796 -v -0.105811 -0.255563 -0.043875 -v -0.105844 -0.255563 0.043796 -v -0.105844 -0.094464 0.043796 -v -0.105811 -0.094464 -0.043875 -v -0.043796 -0.255563 -0.105844 -v -0.105811 -0.255563 -0.043875 -v -0.105811 -0.094464 -0.043875 -v -0.043796 -0.094464 -0.105844 -v 0.043875 -0.255563 -0.105811 -v -0.043796 -0.255563 -0.105844 -v -0.043796 -0.094464 -0.105844 -v 0.043875 -0.094464 -0.105811 -v 0.105844 -0.255563 -0.043796 -v 0.043875 -0.255563 -0.105811 -v 0.043875 -0.094464 -0.105811 -v 0.105844 -0.094464 -0.043796 -v 0.105811 -0.255563 0.043875 -v 0.105844 -0.255563 -0.043796 -v 0.105844 -0.094464 -0.043796 -v 0.105811 -0.094464 0.043875 -v 0.000000 -0.255563 0.000000 -v 0.105811 -0.255563 0.043875 -v 0.043796 -0.255563 0.105844 -v -0.043875 -0.255563 0.105811 -v -0.105844 -0.255563 0.043796 -v -0.105811 -0.255563 -0.043875 -v -0.043796 -0.255563 -0.105844 -v 0.043875 -0.255563 -0.105811 -v 0.105844 -0.255563 -0.043796 -v -0.275954 0.604340 0.275954 -v -0.275954 0.604340 -0.275954 -v -0.275954 0.612392 -0.275954 -v -0.275954 0.612392 0.275954 -v -0.275954 0.604340 -0.275954 -v 0.275954 0.604340 -0.275954 -v 0.275954 0.612392 -0.275954 -v -0.275954 0.612392 -0.275954 -v 0.275954 0.604340 -0.275954 -v 0.275954 0.604340 0.275954 -v 0.275954 0.612392 0.275954 -v 0.275954 0.612392 -0.275954 -v 0.275954 0.604340 0.275954 -v -0.275954 0.604340 0.275954 -v -0.275954 0.612392 0.275954 -v 0.275954 0.612392 0.275954 -v -0.275954 0.612392 0.275954 -v -0.275954 0.612392 -0.275954 -v -0.284007 0.611587 -0.284007 -v -0.284007 0.611587 0.284007 -v -0.275954 0.612392 -0.275954 -v 0.275954 0.612392 -0.275954 -v 0.284007 0.611587 -0.284007 -v -0.284007 0.611587 -0.284007 -v 0.275954 0.612392 -0.275954 -v 0.275954 0.612392 0.275954 -v 0.284007 0.611587 0.284007 -v 0.284007 0.611587 -0.284007 -v 0.275954 0.612392 0.275954 -v -0.275954 0.612392 0.275954 -v -0.284007 0.611587 0.284007 -v 0.284007 0.611587 0.284007 -v -0.284007 0.611587 0.284007 -v -0.284007 0.611587 -0.284007 -v -0.284007 0.603535 -0.284007 -v -0.284007 0.603535 0.284007 -v -0.284007 0.611587 -0.284007 -v 0.284007 0.611587 -0.284007 -v 0.284007 0.603535 -0.284007 -v -0.284007 0.603535 -0.284007 -v 0.284007 0.611587 -0.284007 -v 0.284007 0.611587 0.284007 -v 0.284007 0.603535 0.284007 -v 0.284007 0.603535 -0.284007 -v 0.284007 0.611587 0.284007 -v -0.284007 0.611587 0.284007 -v -0.284007 0.603535 0.284007 -v 0.284007 0.603535 0.284007 -v -0.507297 0.549194 0.507297 -v 0.507297 0.549194 0.507297 -v 0.507297 0.550000 0.507297 -v -0.507297 0.550000 0.507297 -v 0.507297 0.549194 0.507297 -v 0.507297 0.549194 -0.507297 -v 0.507297 0.550000 -0.507297 -v 0.507297 0.550000 0.507297 -v 0.507297 0.549194 -0.507297 -v -0.507297 0.549194 -0.507297 -v -0.507297 0.550000 -0.507297 -v 0.507297 0.550000 -0.507297 -v -0.507297 0.549194 -0.507297 -v -0.507297 0.549194 0.507297 -v -0.507297 0.550000 0.507297 -v -0.507297 0.550000 -0.507297 -v 0.507297 0.558052 0.507297 -v -0.507297 0.558052 0.507297 -v 0.507297 0.558052 -0.507297 -v 0.507297 0.558052 0.507297 -v -0.507297 0.558052 -0.507297 -v 0.507297 0.558052 -0.507297 -v -0.507297 0.558052 0.507297 -v -0.507297 0.558052 -0.507297 -v 0.499245 0.566104 0.499245 -v -0.499245 0.566104 0.499245 -v 0.499245 0.566104 -0.499245 -v 0.499245 0.566104 0.499245 -v -0.499245 0.566104 -0.499245 -v 0.499245 0.566104 -0.499245 -v -0.499245 0.566104 0.499245 -v -0.499245 0.566104 -0.499245 -v 0.499245 0.574157 0.499245 -v -0.499245 0.574157 0.499245 -v 0.499245 0.574157 -0.499245 -v 0.499245 0.574157 0.499245 -v -0.499245 0.574157 -0.499245 -v 0.499245 0.574157 -0.499245 -v -0.499245 0.574157 0.499245 -v -0.499245 0.574157 -0.499245 -v 0.491193 0.582209 0.491193 -v -0.491193 0.582209 0.491193 -v 0.491193 0.582209 -0.491193 -v 0.491193 0.582209 0.491193 -v -0.491193 0.582209 -0.491193 -v 0.491193 0.582209 -0.491193 -v -0.491193 0.582209 0.491193 -v -0.491193 0.582209 -0.491193 -v -0.491193 0.582209 0.491193 -v 0.491193 0.582209 0.491193 -v 0.483140 0.583014 0.483140 -v -0.483140 0.583014 0.483140 -v 0.491193 0.582209 0.491193 -v 0.491193 0.582209 -0.491193 -v 0.483140 0.583014 -0.483140 -v 0.483140 0.583014 0.483140 -v 0.491193 0.582209 -0.491193 -v -0.491193 0.582209 -0.491193 -v -0.483140 0.583014 -0.483140 -v 0.483140 0.583014 -0.483140 -v -0.491193 0.582209 -0.491193 -v -0.491193 0.582209 0.491193 -v -0.483140 0.583014 0.483140 -v -0.483140 0.583014 -0.483140 -v -0.314041 0.591939 -0.314041 -v -0.314041 0.591939 0.314041 -v 0.314041 0.591939 -0.314041 -v -0.314041 0.591939 -0.314041 -v 0.314041 0.591939 0.314041 -v 0.314041 0.591939 -0.314041 -v -0.314041 0.591939 0.314041 -v 0.314041 0.591939 0.314041 -v -0.322094 0.591134 -0.322094 -v -0.322094 0.591134 0.322094 -v 0.322094 0.591134 -0.322094 -v -0.322094 0.591134 -0.322094 -v 0.322094 0.591134 0.322094 -v 0.322094 0.591134 -0.322094 -v -0.322094 0.591134 0.322094 -v 0.322094 0.591134 0.322094 -v -0.322094 0.583082 -0.322094 -v -0.322094 0.583082 0.322094 -v 0.322094 0.583082 -0.322094 -v -0.322094 0.583082 -0.322094 -v 0.322094 0.583082 0.322094 -v 0.322094 0.583082 -0.322094 -v -0.322094 0.583082 0.322094 -v 0.322094 0.583082 0.322094 -v -0.322094 0.583082 0.322094 -v -0.322094 0.583082 -0.322094 -v -0.483140 0.575029 -0.483140 -v -0.483140 0.575029 0.483140 -v -0.322094 0.583082 -0.322094 -v 0.322094 0.583082 -0.322094 -v 0.483140 0.575029 -0.483140 -v -0.483140 0.575029 -0.483140 -v 0.322094 0.583082 -0.322094 -v 0.322094 0.583082 0.322094 -v 0.483140 0.575029 0.483140 -v 0.483140 0.575029 -0.483140 -v 0.322094 0.583082 0.322094 -v -0.322094 0.583082 0.322094 -v -0.483140 0.575029 0.483140 -v 0.483140 0.575029 0.483140 -v -0.483140 0.575029 0.483140 -v -0.483140 0.575029 -0.483140 -v -0.483140 0.583014 -0.483140 -v -0.483140 0.583014 0.483140 -v -0.483140 0.575029 -0.483140 -v 0.483140 0.575029 -0.483140 -v 0.483140 0.583014 -0.483140 -v -0.483140 0.583014 -0.483140 -v 0.483140 0.575029 -0.483140 -v 0.483140 0.575029 0.483140 -v 0.483140 0.583014 0.483140 -v 0.483140 0.583014 -0.483140 -v 0.483140 0.575029 0.483140 -v -0.483140 0.575029 0.483140 -v -0.483140 0.583014 0.483140 -v 0.483140 0.583014 0.483140 -v 0.275954 0.604340 -0.275954 -v -0.275954 0.604340 -0.275954 -v -0.275954 0.604340 0.275954 -v 0.275954 0.604340 0.275954 -v 0.507297 0.549194 -0.507297 -v 0.507297 0.549194 0.507297 -v -0.507297 0.549194 0.507297 -v -0.507297 0.549194 -0.507297 -v 0.061122 0.493612 0.044408 -v 0.075551 0.493612 0.000000 -v 0.153763 0.549783 0.000000 -v 0.124397 0.549782 0.090379 -v 0.023346 0.493612 0.071853 -v 0.047515 0.549782 0.146237 -v -0.023346 0.493612 0.071853 -v -0.047515 0.549782 0.146237 -v -0.061122 0.493612 0.044408 -v -0.124396 0.549782 0.090380 -v -0.075551 0.493612 0.000000 -v -0.153763 0.549783 0.000000 -v -0.061122 0.493612 -0.044407 -v -0.124397 0.549783 -0.090379 -v -0.023346 0.493612 -0.071853 -v -0.047515 0.549783 -0.146237 -v 0.023346 0.493612 -0.071853 -v 0.047515 0.549783 -0.146237 -v 0.061122 0.493612 -0.044407 -v 0.124396 0.549783 -0.090379 -v 0.039643 0.457110 0.028802 -v 0.049002 0.457110 0.000000 -v 0.015142 0.457110 0.046603 -v -0.015142 0.457110 0.046603 -v -0.039643 0.457110 0.028802 -v -0.049002 0.457110 0.000000 -v -0.039643 0.457110 -0.028802 -v -0.015142 0.457110 -0.046603 -v 0.015142 0.457110 -0.046603 -v 0.039643 0.457110 -0.028802 -v 0.065534 -0.100432 0.047613 -v 0.081005 -0.100432 0.000000 -v 0.081005 -0.082613 0.000000 -v 0.065534 -0.082613 0.047613 -v 0.025032 -0.100432 0.077040 -v 0.065534 -0.100432 0.047613 -v 0.065534 -0.082613 0.047613 -v 0.025032 -0.082613 0.077040 -v -0.025032 -0.100432 0.077040 -v 0.025032 -0.100432 0.077040 -v 0.025032 -0.082613 0.077040 -v -0.025032 -0.082613 0.077040 -v -0.065534 -0.100432 0.047613 -v -0.025032 -0.100432 0.077040 -v -0.025032 -0.082613 0.077040 -v -0.065534 -0.082613 0.047613 -v -0.081005 -0.100432 0.000000 -v -0.065534 -0.100432 0.047613 -v -0.065534 -0.082613 0.047613 -v -0.081005 -0.082613 0.000000 -v -0.065534 -0.100432 -0.047613 -v -0.081005 -0.100432 0.000000 -v -0.081005 -0.082613 0.000000 -v -0.065534 -0.082613 -0.047613 -v -0.025032 -0.100432 -0.077040 -v -0.065534 -0.100432 -0.047613 -v -0.065534 -0.082613 -0.047613 -v -0.025032 -0.082613 -0.077040 -v 0.025032 -0.100432 -0.077040 -v -0.025032 -0.100432 -0.077040 -v -0.025032 -0.082613 -0.077040 -v 0.025032 -0.082613 -0.077040 -v 0.065534 -0.100432 -0.047613 -v 0.025032 -0.100432 -0.077040 -v 0.025032 -0.082613 -0.077040 -v 0.065534 -0.082613 -0.047613 -v 0.081005 -0.100432 0.000000 -v 0.065534 -0.100432 -0.047613 -v 0.065534 -0.082613 -0.047613 -v 0.081005 -0.082613 0.000000 -v 0.065534 -0.082613 0.047613 -v 0.081005 -0.082613 0.000000 -v 0.062269 -0.081722 0.000000 -v 0.050377 -0.081722 0.036601 -v 0.025032 -0.082613 0.077040 -v 0.065534 -0.082613 0.047613 -v 0.050377 -0.081722 0.036601 -v 0.019242 -0.081722 0.059221 -v -0.025032 -0.082613 0.077040 -v 0.025032 -0.082613 0.077040 -v 0.019242 -0.081722 0.059221 -v -0.019242 -0.081722 0.059221 -v -0.065534 -0.082613 0.047613 -v -0.025032 -0.082613 0.077040 -v -0.019242 -0.081722 0.059221 -v -0.050377 -0.081722 0.036601 -v -0.081005 -0.082613 0.000000 -v -0.065534 -0.082613 0.047613 -v -0.050377 -0.081722 0.036601 -v -0.062269 -0.081722 0.000000 -v -0.065534 -0.082613 -0.047613 -v -0.081005 -0.082613 0.000000 -v -0.062269 -0.081722 0.000000 -v -0.050377 -0.081722 -0.036601 -v -0.025032 -0.082613 -0.077040 -v -0.065534 -0.082613 -0.047613 -v -0.050377 -0.081722 -0.036601 -v -0.019242 -0.081722 -0.059221 -v 0.025032 -0.082613 -0.077040 -v -0.025032 -0.082613 -0.077040 -v -0.019242 -0.081722 -0.059221 -v 0.019242 -0.081722 -0.059221 -v 0.065534 -0.082613 -0.047613 -v 0.025032 -0.082613 -0.077040 -v 0.019242 -0.081722 -0.059221 -v 0.050377 -0.081722 -0.036601 -v 0.081005 -0.082613 0.000000 -v 0.065534 -0.082613 -0.047613 -v 0.050377 -0.081722 -0.036601 -v 0.062269 -0.081722 0.000000 -v 0.050377 -0.081722 0.036601 -v 0.062269 -0.081722 0.000000 -v 0.062269 -0.063904 0.000000 -v 0.050377 -0.063904 0.036601 -v 0.019242 -0.081722 0.059221 -v 0.050377 -0.081722 0.036601 -v 0.050377 -0.063904 0.036601 -v 0.019242 -0.063904 0.059221 -v -0.019242 -0.081722 0.059221 -v 0.019242 -0.081722 0.059221 -v 0.019242 -0.063904 0.059221 -v -0.019242 -0.063904 0.059221 -v -0.050377 -0.081722 0.036601 -v -0.019242 -0.081722 0.059221 -v -0.019242 -0.063904 0.059221 -v -0.050377 -0.063904 0.036601 -v -0.062269 -0.081722 0.000000 -v -0.050377 -0.081722 0.036601 -v -0.050377 -0.063904 0.036601 -v -0.062269 -0.063904 0.000000 -v -0.050377 -0.081722 -0.036601 -v -0.062269 -0.081722 0.000000 -v -0.062269 -0.063904 0.000000 -v -0.050377 -0.063904 -0.036601 -v -0.019242 -0.081722 -0.059221 -v -0.050377 -0.081722 -0.036601 -v -0.050377 -0.063904 -0.036601 -v -0.019242 -0.063904 -0.059221 -v 0.019242 -0.081722 -0.059221 -v -0.019242 -0.081722 -0.059221 -v -0.019242 -0.063904 -0.059221 -v 0.019242 -0.063904 -0.059221 -v 0.050377 -0.081722 -0.036601 -v 0.019242 -0.081722 -0.059221 -v 0.019242 -0.063904 -0.059221 -v 0.050377 -0.063904 -0.036601 -v 0.062269 -0.081722 0.000000 -v 0.050377 -0.081722 -0.036601 -v 0.050377 -0.063904 -0.036601 -v 0.062269 -0.063904 0.000000 -v 0.050377 -0.063904 0.036601 -v 0.062269 -0.063904 0.000000 -v 0.071637 -0.059449 0.000000 -v 0.057955 -0.059449 0.042107 -v 0.019242 -0.063904 0.059221 -v 0.050377 -0.063904 0.036601 -v 0.057955 -0.059449 0.042107 -v 0.022137 -0.059449 0.068131 -v -0.019242 -0.063904 0.059221 -v 0.019242 -0.063904 0.059221 -v 0.022137 -0.059449 0.068131 -v -0.022137 -0.059449 0.068131 -v -0.050377 -0.063904 0.036601 -v -0.019242 -0.063904 0.059221 -v -0.022137 -0.059449 0.068131 -v -0.057955 -0.059449 0.042107 -v -0.062269 -0.063904 0.000000 -v -0.050377 -0.063904 0.036601 -v -0.057955 -0.059449 0.042107 -v -0.071637 -0.059449 0.000000 -v -0.050377 -0.063904 -0.036601 -v -0.062269 -0.063904 0.000000 -v -0.071637 -0.059449 0.000000 -v -0.057955 -0.059449 -0.042107 -v -0.019242 -0.063904 -0.059221 -v -0.050377 -0.063904 -0.036601 -v -0.057955 -0.059449 -0.042107 -v -0.022137 -0.059449 -0.068131 -v 0.019242 -0.063904 -0.059221 -v -0.019242 -0.063904 -0.059221 -v -0.022137 -0.059449 -0.068131 -v 0.022137 -0.059449 -0.068131 -v 0.050377 -0.063904 -0.036601 -v 0.019242 -0.063904 -0.059221 -v 0.022137 -0.059449 -0.068131 -v 0.057955 -0.059449 -0.042107 -v 0.062269 -0.063904 0.000000 -v 0.050377 -0.063904 -0.036601 -v 0.057955 -0.059449 -0.042107 -v 0.071637 -0.059449 0.000000 -v 0.057955 -0.059449 0.042107 -v 0.071637 -0.059449 0.000000 -v 0.071637 -0.050540 0.000000 -v 0.057955 -0.050540 0.042107 -v 0.022137 -0.059449 0.068131 -v 0.057955 -0.059449 0.042107 -v 0.057955 -0.050540 0.042107 -v 0.022137 -0.050540 0.068131 -v -0.022137 -0.059449 0.068131 -v 0.022137 -0.059449 0.068131 -v 0.022137 -0.050540 0.068131 -v -0.022137 -0.050540 0.068131 -v -0.057955 -0.059449 0.042107 -v -0.022137 -0.059449 0.068131 -v -0.022137 -0.050540 0.068131 -v -0.057955 -0.050540 0.042107 -v -0.071637 -0.059449 0.000000 -v -0.057955 -0.059449 0.042107 -v -0.057955 -0.050540 0.042107 -v -0.071637 -0.050540 0.000000 -v -0.057955 -0.059449 -0.042107 -v -0.071637 -0.059449 0.000000 -v -0.071637 -0.050540 0.000000 -v -0.057955 -0.050540 -0.042107 -v -0.022137 -0.059449 -0.068131 -v -0.057955 -0.059449 -0.042107 -v -0.057955 -0.050540 -0.042107 -v -0.022137 -0.050540 -0.068131 -v 0.022137 -0.059449 -0.068131 -v -0.022137 -0.059449 -0.068131 -v -0.022137 -0.050540 -0.068131 -v 0.022137 -0.050540 -0.068131 -v 0.057955 -0.059449 -0.042107 -v 0.022137 -0.059449 -0.068131 -v 0.022137 -0.050540 -0.068131 -v 0.057955 -0.050540 -0.042107 -v 0.071637 -0.059449 0.000000 -v 0.057955 -0.059449 -0.042107 -v 0.057955 -0.050540 -0.042107 -v 0.071637 -0.050540 0.000000 -v 0.057955 -0.050540 0.042107 -v 0.071637 -0.050540 0.000000 -v 0.062269 -0.046085 0.000000 -v 0.050377 -0.046085 0.036601 -v 0.022137 -0.050540 0.068131 -v 0.057955 -0.050540 0.042107 -v 0.050377 -0.046085 0.036601 -v 0.019242 -0.046085 0.059221 -v -0.022137 -0.050540 0.068131 -v 0.022137 -0.050540 0.068131 -v 0.019242 -0.046085 0.059221 -v -0.019242 -0.046085 0.059221 -v -0.057955 -0.050540 0.042107 -v -0.022137 -0.050540 0.068131 -v -0.019242 -0.046085 0.059221 -v -0.050377 -0.046085 0.036601 -v -0.071637 -0.050540 0.000000 -v -0.057955 -0.050540 0.042107 -v -0.050377 -0.046085 0.036601 -v -0.062269 -0.046085 0.000000 -v -0.057955 -0.050540 -0.042107 -v -0.071637 -0.050540 0.000000 -v -0.062269 -0.046085 0.000000 -v -0.050377 -0.046085 -0.036601 -v -0.022137 -0.050540 -0.068131 -v -0.057955 -0.050540 -0.042107 -v -0.050377 -0.046085 -0.036601 -v -0.019242 -0.046085 -0.059221 -v 0.022137 -0.050540 -0.068131 -v -0.022137 -0.050540 -0.068131 -v -0.019242 -0.046085 -0.059221 -v 0.019242 -0.046085 -0.059221 -v 0.057955 -0.050540 -0.042107 -v 0.022137 -0.050540 -0.068131 -v 0.019242 -0.046085 -0.059221 -v 0.050377 -0.046085 -0.036601 -v 0.071637 -0.050540 0.000000 -v 0.057955 -0.050540 -0.042107 -v 0.050377 -0.046085 -0.036601 -v 0.062269 -0.046085 0.000000 -v 0.050377 -0.046085 0.036601 -v 0.062269 -0.046085 0.000000 -v 0.062269 -0.037015 0.000000 -v 0.050377 -0.037015 0.036601 -v 0.019242 -0.046085 0.059221 -v 0.050377 -0.046085 0.036601 -v 0.050377 -0.037015 0.036601 -v 0.019242 -0.037015 0.059221 -v -0.019242 -0.046085 0.059221 -v 0.019242 -0.046085 0.059221 -v 0.019242 -0.037015 0.059221 -v -0.019242 -0.037015 0.059221 -v -0.050377 -0.046085 0.036601 -v -0.019242 -0.046085 0.059221 -v -0.019242 -0.037015 0.059221 -v -0.050377 -0.037015 0.036601 -v -0.062269 -0.046085 0.000000 -v -0.050377 -0.046085 0.036601 -v -0.050377 -0.037015 0.036601 -v -0.062269 -0.037015 0.000000 -v -0.050377 -0.046085 -0.036601 -v -0.062269 -0.046085 0.000000 -v -0.062269 -0.037015 0.000000 -v -0.050377 -0.037015 -0.036601 -v -0.019242 -0.046085 -0.059221 -v -0.050377 -0.046085 -0.036601 -v -0.050377 -0.037015 -0.036601 -v -0.019242 -0.037015 -0.059221 -v 0.019242 -0.046085 -0.059221 -v -0.019242 -0.046085 -0.059221 -v -0.019242 -0.037015 -0.059221 -v 0.019242 -0.037015 -0.059221 -v 0.050377 -0.046085 -0.036601 -v 0.019242 -0.046085 -0.059221 -v 0.019242 -0.037015 -0.059221 -v 0.050377 -0.037015 -0.036601 -v 0.062269 -0.046085 0.000000 -v 0.050377 -0.046085 -0.036601 -v 0.050377 -0.037015 -0.036601 -v 0.062269 -0.037015 0.000000 -v 0.035221 0.414309 0.025590 -v 0.043536 0.414309 0.000000 -v 0.049002 0.457110 0.000000 -v 0.039643 0.457110 0.028802 -v 0.013453 0.414309 0.041405 -v 0.015142 0.457110 0.046603 -v -0.013453 0.414309 0.041405 -v -0.015142 0.457110 0.046603 -v -0.035221 0.414309 0.025590 -v -0.039643 0.457110 0.028802 -v -0.043536 0.414309 0.000000 -v -0.049002 0.457110 0.000000 -v -0.035221 0.414309 -0.025590 -v -0.039643 0.457110 -0.028802 -v -0.013453 0.414309 -0.041405 -v -0.015142 0.457110 -0.046603 -v 0.013453 0.414309 -0.041405 -v 0.015142 0.457110 -0.046603 -v 0.035221 0.414309 -0.025590 -v 0.013453 0.414309 -0.041405 -v 0.015142 0.457110 -0.046603 -v 0.039643 0.457110 -0.028802 -v 0.051175 0.223460 0.037181 -v 0.063256 0.223460 0.000000 -v 0.019547 0.223460 0.060160 -v -0.019547 0.223460 0.060160 -v -0.051175 0.223460 0.037181 -v -0.063256 0.223460 0.000000 -v -0.051175 0.223460 -0.037181 -v -0.019547 0.223460 -0.060160 -v 0.019547 0.223460 -0.060160 -v 0.051176 0.223460 -0.037181 -v 0.019547 0.223460 -0.060160 -v 0.076220 0.102045 0.055377 -v 0.094213 0.102045 0.000000 -v 0.029113 0.102045 0.089602 -v -0.029113 0.102045 0.089602 -v -0.076220 0.102045 0.055377 -v -0.094213 0.102045 0.000000 -v -0.076220 0.102045 -0.055377 -v -0.029113 0.102045 -0.089602 -v 0.029113 0.102045 -0.089602 -v 0.076220 0.102045 -0.055377 -v 0.029113 0.102045 -0.089602 -v 0.068919 -0.002139 0.050073 -v 0.085189 -0.002139 0.000000 -v 0.026325 -0.002139 0.081019 -v -0.026325 -0.002139 0.081019 -v -0.068919 -0.002139 0.050073 -v -0.085189 -0.002139 0.000000 -v -0.068919 -0.002139 -0.050073 -v -0.026325 -0.002139 -0.081019 -v 0.026325 -0.002139 -0.081019 -v 0.068919 -0.002139 -0.050073 -v 0.026325 -0.002139 -0.081019 -v 0.050377 -0.037015 0.036601 -v 0.062269 -0.037015 0.000000 -v 0.019242 -0.037015 0.059221 -v -0.019242 -0.037015 0.059221 -v -0.050377 -0.037015 0.036601 -v -0.062269 -0.037015 0.000000 -v -0.050377 -0.037015 -0.036601 -v -0.019242 -0.037015 -0.059221 -v 0.019242 -0.037015 -0.059221 -v 0.050377 -0.037015 -0.036601 -v 0.019242 -0.037015 -0.059221 -vt 0.017083 0.467481 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077277 0.475172 -vt 0.017498 0.425773 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.077301 0.425780 -vt 0.022716 0.366365 -vt 0.023914 0.320840 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077611 0.335458 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.141617 0.425888 -vt 0.141203 0.458853 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.077611 0.335458 -vt 0.077682 0.295421 -vt 0.140908 0.303558 -vt 0.140908 0.357917 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.140908 0.357917 -vt 0.140908 0.303558 -vt 0.141617 0.425888 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.223614 0.381380 -vt 0.233628 0.407934 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.187732 0.293268 -vt 0.203363 0.329596 -vt 0.203363 0.329596 -vt 0.187732 0.293268 -vt 0.223614 0.381380 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.308037 0.291333 -vt 0.324950 0.321248 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.264859 0.213261 -vt 0.279922 0.245271 -vt 0.279922 0.245271 -vt 0.264859 0.213261 -vt 0.308037 0.291333 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.377000 0.255623 -vt 0.378700 0.295995 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.367735 0.111762 -vt 0.372639 0.156040 -vt 0.372639 0.156040 -vt 0.367735 0.111762 -vt 0.377000 0.255623 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.393655 0.410963 -vt 0.467714 0.453591 -vt 0.467714 0.410963 -vt 0.348935 0.453591 -vt 0.321554 0.410963 -vt 0.348935 0.368334 -vt 0.467714 0.368334 -vt 0.486443 0.230599 -vt 0.486443 0.273314 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.486443 0.071872 -vt 0.486443 0.122067 -vt 0.486443 0.122067 -vt 0.486443 0.071872 -vt 0.486443 0.230599 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.017083 0.467481 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077277 0.475172 -vt 0.017498 0.425773 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.077301 0.425780 -vt 0.022716 0.366365 -vt 0.023914 0.320840 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077611 0.335458 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.141617 0.425888 -vt 0.141203 0.458853 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.077611 0.335458 -vt 0.077682 0.295421 -vt 0.140908 0.303558 -vt 0.140908 0.357917 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.140908 0.357917 -vt 0.140908 0.303558 -vt 0.141617 0.425888 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.223614 0.381380 -vt 0.233628 0.407934 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.187732 0.293268 -vt 0.203363 0.329596 -vt 0.203363 0.329596 -vt 0.187732 0.293268 -vt 0.223614 0.381380 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.308037 0.291333 -vt 0.324950 0.321248 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.264859 0.213261 -vt 0.279922 0.245271 -vt 0.279922 0.245271 -vt 0.264859 0.213261 -vt 0.308037 0.291333 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.377000 0.255623 -vt 0.378700 0.295995 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.367735 0.111762 -vt 0.372639 0.156040 -vt 0.372639 0.156040 -vt 0.367735 0.111762 -vt 0.377000 0.255623 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.393655 0.410963 -vt 0.467714 0.453591 -vt 0.467714 0.410963 -vt 0.348935 0.453591 -vt 0.321554 0.410963 -vt 0.348935 0.368334 -vt 0.467714 0.368334 -vt 0.486443 0.230599 -vt 0.486443 0.273314 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.486443 0.071872 -vt 0.486443 0.122067 -vt 0.486443 0.122067 -vt 0.486443 0.071872 -vt 0.486443 0.230599 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.017083 0.467481 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077277 0.475172 -vt 0.017498 0.425773 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.077301 0.425780 -vt 0.022716 0.366365 -vt 0.023914 0.320840 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077611 0.335458 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.141617 0.425888 -vt 0.141203 0.458853 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.077611 0.335458 -vt 0.077682 0.295421 -vt 0.140908 0.303558 -vt 0.140908 0.357917 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.140908 0.357917 -vt 0.140908 0.303558 -vt 0.141617 0.425888 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.223614 0.381380 -vt 0.233628 0.407934 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.187732 0.293268 -vt 0.203363 0.329596 -vt 0.203363 0.329596 -vt 0.187732 0.293268 -vt 0.223614 0.381380 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.308037 0.291333 -vt 0.324950 0.321248 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.264859 0.213261 -vt 0.279922 0.245271 -vt 0.279922 0.245271 -vt 0.264859 0.213261 -vt 0.308037 0.291333 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.377000 0.255623 -vt 0.378700 0.295995 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.367735 0.111762 -vt 0.372639 0.156040 -vt 0.372639 0.156040 -vt 0.367735 0.111762 -vt 0.377000 0.255623 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.393655 0.410963 -vt 0.467714 0.453591 -vt 0.467714 0.410963 -vt 0.348935 0.453591 -vt 0.321554 0.410963 -vt 0.348935 0.368334 -vt 0.467714 0.368334 -vt 0.486443 0.230599 -vt 0.486443 0.273314 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.486443 0.071872 -vt 0.486443 0.122067 -vt 0.486443 0.122067 -vt 0.486443 0.071872 -vt 0.486443 0.230599 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.017083 0.467481 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077277 0.475172 -vt 0.017498 0.425773 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.077301 0.425780 -vt 0.022716 0.366365 -vt 0.023914 0.320840 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.077611 0.335458 -vt 0.022716 0.366365 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.077611 0.335458 -vt 0.017498 0.425773 -vt 0.077301 0.425780 -vt 0.141617 0.425888 -vt 0.141203 0.458853 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.077611 0.335458 -vt 0.077682 0.295421 -vt 0.140908 0.303558 -vt 0.140908 0.357917 -vt 0.077682 0.295421 -vt 0.077611 0.335458 -vt 0.140908 0.357917 -vt 0.140908 0.303558 -vt 0.141617 0.425888 -vt 0.140908 0.357917 -vt 0.141617 0.425888 -vt 0.223614 0.381380 -vt 0.233628 0.407934 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.187732 0.293268 -vt 0.203363 0.329596 -vt 0.203363 0.329596 -vt 0.187732 0.293268 -vt 0.223614 0.381380 -vt 0.203363 0.329596 -vt 0.223614 0.381380 -vt 0.308037 0.291333 -vt 0.324950 0.321248 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.264859 0.213261 -vt 0.279922 0.245271 -vt 0.279922 0.245271 -vt 0.264859 0.213261 -vt 0.308037 0.291333 -vt 0.279922 0.245271 -vt 0.308037 0.291333 -vt 0.377000 0.255623 -vt 0.378700 0.295995 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.367735 0.111762 -vt 0.372639 0.156040 -vt 0.372639 0.156040 -vt 0.367735 0.111762 -vt 0.377000 0.255623 -vt 0.372639 0.156040 -vt 0.377000 0.255623 -vt 0.393655 0.410963 -vt 0.467714 0.453591 -vt 0.467714 0.410963 -vt 0.348935 0.453591 -vt 0.321554 0.410963 -vt 0.348935 0.368334 -vt 0.467714 0.368334 -vt 0.486443 0.230599 -vt 0.486443 0.273314 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.486443 0.071872 -vt 0.486443 0.122067 -vt 0.486443 0.122067 -vt 0.486443 0.071872 -vt 0.486443 0.230599 -vt 0.486443 0.122067 -vt 0.486443 0.230599 -vt 0.000000 1.000000 -vt 0.312949 0.385343 -vt 0.374010 0.385343 -vt 0.251887 0.385343 -vt 0.190825 0.385343 -vt 0.129763 0.385343 -vt 0.068702 0.385343 -vt 0.496134 0.385343 -vt 0.435072 0.385343 -vt 0.312949 0.498276 -vt 0.374010 0.498276 -vt 0.374010 0.385343 -vt 0.312949 0.385343 -vt 0.251887 0.498276 -vt 0.312949 0.498276 -vt 0.312949 0.385343 -vt 0.251887 0.385343 -vt 0.190825 0.498276 -vt 0.251887 0.498276 -vt 0.251887 0.385343 -vt 0.190825 0.385343 -vt 0.129763 0.498276 -vt 0.190825 0.498276 -vt 0.190825 0.385343 -vt 0.129763 0.385343 -vt 0.068702 0.498276 -vt 0.129763 0.498276 -vt 0.129763 0.385343 -vt 0.068702 0.385343 -vt 0.007640 0.498276 -vt 0.068702 0.498276 -vt 0.068702 0.385343 -vt 0.007640 0.385343 -vt 0.435072 0.498276 -vt 0.496134 0.498276 -vt 0.496134 0.385343 -vt 0.435072 0.385343 -vt 0.321935 0.273341 -vt 0.321962 0.201250 -vt 0.321962 0.201250 -vt 0.321935 0.273341 -vt 0.234927 0.237263 -vt 0.321935 0.273341 -vt 0.270940 0.324298 -vt 0.198849 0.324271 -vt 0.147891 0.273276 -vt 0.147918 0.201184 -vt 0.198914 0.150227 -vt 0.271005 0.150254 -vt 0.321962 0.201250 -vt 0.143227 0.361033 -vt 0.143227 0.144695 -vt 0.135916 0.138034 -vt 0.135916 0.368993 -vt 0.143227 0.144695 -vt 0.359565 0.144695 -vt 0.366875 0.138034 -vt 0.135916 0.138034 -vt 0.359565 0.144695 -vt 0.359565 0.361033 -vt 0.366875 0.368993 -vt 0.366875 0.138034 -vt 0.359565 0.361033 -vt 0.143227 0.361033 -vt 0.135916 0.368993 -vt 0.366875 0.368993 -vt 0.135916 0.368993 -vt 0.135916 0.138034 -vt 0.113352 0.114821 -vt 0.113352 0.390908 -vt 0.135916 0.138034 -vt 0.366875 0.138034 -vt 0.389439 0.114821 -vt 0.113352 0.114821 -vt 0.366875 0.138034 -vt 0.366875 0.368993 -vt 0.389439 0.390908 -vt 0.389439 0.114821 -vt 0.366875 0.368993 -vt 0.135916 0.368993 -vt 0.113352 0.390908 -vt 0.389439 0.390908 -vt 0.113352 0.390908 -vt 0.113352 0.114821 -vt 0.121903 0.123372 -vt 0.121903 0.382356 -vt 0.113352 0.114821 -vt 0.389439 0.114821 -vt 0.380888 0.123372 -vt 0.121903 0.123372 -vt 0.389439 0.114821 -vt 0.389439 0.390908 -vt 0.380888 0.382356 -vt 0.380888 0.123372 -vt 0.389439 0.390908 -vt 0.113352 0.390908 -vt 0.121903 0.382356 -vt 0.380888 0.382356 -vt 0.004820 0.499440 -vt 0.497971 0.499440 -vt 0.497971 0.499440 -vt 0.004820 0.499440 -vt 0.497971 0.499440 -vt 0.497971 0.006289 -vt 0.497971 0.006289 -vt 0.497971 0.499440 -vt 0.497971 0.006289 -vt 0.004820 0.006289 -vt 0.004820 0.006289 -vt 0.497971 0.006289 -vt 0.004820 0.006289 -vt 0.004820 0.499440 -vt 0.004820 0.499440 -vt 0.004820 0.006289 -vt 0.497971 0.499440 -vt 0.004820 0.499440 -vt 0.497971 0.006289 -vt 0.497971 0.499440 -vt 0.004820 0.006289 -vt 0.497971 0.006289 -vt 0.004820 0.499440 -vt 0.004820 0.006289 -vt 0.491654 0.493123 -vt 0.011137 0.493123 -vt 0.491654 0.012605 -vt 0.491654 0.493123 -vt 0.011137 0.012605 -vt 0.491654 0.012605 -vt 0.011137 0.493123 -vt 0.011137 0.012605 -vt 0.482370 0.483838 -vt 0.020421 0.483838 -vt 0.482370 0.021890 -vt 0.482370 0.483838 -vt 0.020421 0.021890 -vt 0.482370 0.021890 -vt 0.020421 0.483838 -vt 0.020421 0.021890 -vt 0.470567 0.472035 -vt 0.032224 0.472035 -vt 0.470567 0.033693 -vt 0.470567 0.472035 -vt 0.032224 0.033693 -vt 0.470567 0.033693 -vt 0.032224 0.472035 -vt 0.032224 0.033693 -vt 0.032224 0.472035 -vt 0.470567 0.472035 -vt 0.459013 0.460481 -vt 0.043778 0.460481 -vt 0.470567 0.472035 -vt 0.470567 0.033693 -vt 0.459013 0.045247 -vt 0.459013 0.460481 -vt 0.470567 0.033693 -vt 0.032224 0.033693 -vt 0.043778 0.045247 -vt 0.459013 0.045247 -vt 0.032224 0.033693 -vt 0.032224 0.472035 -vt 0.043778 0.460481 -vt 0.043778 0.045247 -vt 0.098754 0.100222 -vt 0.098754 0.405506 -vt 0.404037 0.100222 -vt 0.098754 0.100222 -vt 0.404037 0.405506 -vt 0.404037 0.100222 -vt 0.098754 0.405506 -vt 0.404037 0.405506 -vt 0.094840 0.096308 -vt 0.094840 0.409420 -vt 0.407951 0.096308 -vt 0.094840 0.096308 -vt 0.407951 0.409420 -vt 0.407951 0.096308 -vt 0.094840 0.409420 -vt 0.407951 0.409420 -vt 0.087012 0.088481 -vt 0.087012 0.417248 -vt 0.415779 0.088481 -vt 0.087012 0.088481 -vt 0.415779 0.417248 -vt 0.415779 0.088481 -vt 0.087012 0.417248 -vt 0.415779 0.417248 -vt 0.586243 0.413570 -vt 0.586243 0.086583 -vt 0.504496 0.004836 -vt 0.504496 0.495317 -vt 0.586243 0.086583 -vt 0.913231 0.086583 -vt 0.994978 0.004836 -vt 0.504496 0.004836 -vt 0.913231 0.086583 -vt 0.913231 0.413570 -vt 0.994978 0.495317 -vt 0.994978 0.004836 -vt 0.913231 0.413570 -vt 0.586243 0.413570 -vt 0.504496 0.495317 -vt 0.994978 0.495317 -vt 0.052083 0.452177 -vt 0.052083 0.053552 -vt 0.043778 0.045247 -vt 0.043778 0.460481 -vt 0.052083 0.053552 -vt 0.450708 0.053552 -vt 0.459013 0.045247 -vt 0.043778 0.045247 -vt 0.450708 0.053552 -vt 0.450708 0.452177 -vt 0.459013 0.460481 -vt 0.459013 0.045247 -vt 0.450708 0.452177 -vt 0.052083 0.452177 -vt 0.043778 0.460481 -vt 0.459013 0.460481 -vt 0.997798 0.502710 -vt 0.503545 0.502710 -vt 0.503545 0.996963 -vt 0.997798 0.996963 -vt 0.497971 0.006289 -vt 0.497971 0.499440 -vt 0.004820 0.499440 -vt 0.004820 0.006289 -vt 0.366183 0.254192 -vt 0.376207 0.221754 -vt 0.430543 0.221754 -vt 0.410142 0.287774 -vt 0.339940 0.274240 -vt 0.356731 0.328576 -vt 0.307501 0.274241 -vt 0.290711 0.328576 -vt 0.281258 0.254192 -vt 0.237300 0.287774 -vt 0.271234 0.221754 -vt 0.216899 0.221754 -vt 0.281258 0.189315 -vt 0.237300 0.155734 -vt 0.307501 0.169267 -vt 0.290711 0.114932 -vt 0.339940 0.169267 -vt 0.356731 0.114932 -vt 0.366183 0.189315 -vt 0.410142 0.155734 -vt 0.351262 0.242793 -vt 0.357763 0.221754 -vt 0.334240 0.255796 -vt 0.313201 0.255796 -vt 0.296180 0.242793 -vt 0.289678 0.221754 -vt 0.296180 0.200714 -vt 0.313201 0.187711 -vt 0.334240 0.187711 -vt 0.351262 0.200714 -vt 0.350121 0.494170 -vt 0.396949 0.494170 -vt 0.396949 0.469050 -vt 0.350121 0.469050 -vt 0.300793 0.494170 -vt 0.350121 0.494170 -vt 0.350121 0.469050 -vt 0.300793 0.469050 -vt 0.249801 0.494170 -vt 0.300793 0.494170 -vt 0.300793 0.469050 -vt 0.249801 0.469050 -vt 0.200473 0.494170 -vt 0.249801 0.494170 -vt 0.249801 0.469050 -vt 0.200473 0.469050 -vt 0.153645 0.494170 -vt 0.200473 0.494170 -vt 0.200473 0.469050 -vt 0.153645 0.469050 -vt 0.106818 0.494170 -vt 0.153645 0.494170 -vt 0.153645 0.469050 -vt 0.106818 0.469050 -vt 0.057489 0.494170 -vt 0.106818 0.494170 -vt 0.106818 0.469050 -vt 0.057489 0.469050 -vt 0.006498 0.494170 -vt 0.057489 0.494170 -vt 0.057489 0.469050 -vt 0.006498 0.469050 -vt 0.443776 0.494170 -vt 0.493105 0.494170 -vt 0.493105 0.469050 -vt 0.443776 0.469050 -vt 0.396949 0.494170 -vt 0.443776 0.494170 -vt 0.443776 0.469050 -vt 0.396949 0.469050 -vt 0.350121 0.469050 -vt 0.396949 0.469050 -vt 0.396949 0.467794 -vt 0.350121 0.467794 -vt 0.300793 0.469050 -vt 0.350121 0.469050 -vt 0.350121 0.467794 -vt 0.300793 0.467794 -vt 0.249801 0.469050 -vt 0.300793 0.469050 -vt 0.300793 0.467794 -vt 0.249801 0.467794 -vt 0.200473 0.469050 -vt 0.249801 0.469050 -vt 0.249801 0.467794 -vt 0.200473 0.467794 -vt 0.153645 0.469050 -vt 0.200473 0.469050 -vt 0.200473 0.467794 -vt 0.153645 0.467794 -vt 0.106818 0.469050 -vt 0.153645 0.469050 -vt 0.153645 0.467794 -vt 0.106818 0.467794 -vt 0.057489 0.469050 -vt 0.106818 0.469050 -vt 0.106818 0.467794 -vt 0.057489 0.467794 -vt 0.006498 0.469050 -vt 0.057489 0.469050 -vt 0.057489 0.467794 -vt 0.006498 0.467794 -vt 0.443776 0.469050 -vt 0.493105 0.469050 -vt 0.493105 0.467794 -vt 0.443776 0.467794 -vt 0.396949 0.469050 -vt 0.443776 0.469050 -vt 0.443776 0.467794 -vt 0.396949 0.467794 -vt 0.350121 0.467794 -vt 0.396949 0.467794 -vt 0.396949 0.442675 -vt 0.350121 0.442675 -vt 0.300793 0.467794 -vt 0.350121 0.467794 -vt 0.350121 0.442675 -vt 0.300793 0.442675 -vt 0.249801 0.467794 -vt 0.300793 0.467794 -vt 0.300793 0.442675 -vt 0.249801 0.442675 -vt 0.200473 0.467794 -vt 0.249801 0.467794 -vt 0.249801 0.442675 -vt 0.200473 0.442675 -vt 0.153645 0.467794 -vt 0.200473 0.467794 -vt 0.200473 0.442675 -vt 0.153645 0.442675 -vt 0.106818 0.467794 -vt 0.153645 0.467794 -vt 0.153645 0.442675 -vt 0.106818 0.442675 -vt 0.057489 0.467794 -vt 0.106818 0.467794 -vt 0.106818 0.442675 -vt 0.057489 0.442675 -vt 0.006498 0.467794 -vt 0.057489 0.467794 -vt 0.057489 0.442675 -vt 0.006498 0.442675 -vt 0.443776 0.467794 -vt 0.493105 0.467794 -vt 0.493105 0.442675 -vt 0.443776 0.442675 -vt 0.396949 0.467794 -vt 0.443776 0.467794 -vt 0.443776 0.442675 -vt 0.396949 0.442675 -vt 0.350121 0.442675 -vt 0.396949 0.442675 -vt 0.396949 0.436395 -vt 0.350121 0.436395 -vt 0.300793 0.442675 -vt 0.350121 0.442675 -vt 0.350121 0.436395 -vt 0.300793 0.436395 -vt 0.249801 0.442675 -vt 0.300793 0.442675 -vt 0.300793 0.436395 -vt 0.249801 0.436395 -vt 0.200473 0.442675 -vt 0.249801 0.442675 -vt 0.249801 0.436395 -vt 0.200473 0.436395 -vt 0.153645 0.442675 -vt 0.200473 0.442675 -vt 0.200473 0.436395 -vt 0.153645 0.436395 -vt 0.106818 0.442675 -vt 0.153645 0.442675 -vt 0.153645 0.436395 -vt 0.106818 0.436395 -vt 0.057489 0.442675 -vt 0.106818 0.442675 -vt 0.106818 0.436395 -vt 0.057489 0.436395 -vt 0.006498 0.442675 -vt 0.057489 0.442675 -vt 0.057489 0.436395 -vt 0.006498 0.436395 -vt 0.443776 0.442675 -vt 0.493105 0.442675 -vt 0.493105 0.436395 -vt 0.443776 0.436395 -vt 0.396949 0.442675 -vt 0.443776 0.442675 -vt 0.443776 0.436395 -vt 0.396949 0.436395 -vt 0.350121 0.436395 -vt 0.396949 0.436395 -vt 0.396949 0.423835 -vt 0.350121 0.423835 -vt 0.300793 0.436395 -vt 0.350121 0.436395 -vt 0.350121 0.423835 -vt 0.300793 0.423835 -vt 0.249801 0.436395 -vt 0.300793 0.436395 -vt 0.300793 0.423835 -vt 0.249801 0.423835 -vt 0.200473 0.436395 -vt 0.249801 0.436395 -vt 0.249801 0.423835 -vt 0.200473 0.423835 -vt 0.153645 0.436395 -vt 0.200473 0.436395 -vt 0.200473 0.423835 -vt 0.153645 0.423835 -vt 0.106818 0.436395 -vt 0.153645 0.436395 -vt 0.153645 0.423835 -vt 0.106818 0.423835 -vt 0.057489 0.436395 -vt 0.106818 0.436395 -vt 0.106818 0.423835 -vt 0.057489 0.423835 -vt 0.006498 0.436395 -vt 0.057489 0.436395 -vt 0.057489 0.423835 -vt 0.006498 0.423835 -vt 0.443776 0.436395 -vt 0.493105 0.436395 -vt 0.493105 0.423835 -vt 0.443776 0.423835 -vt 0.396949 0.436395 -vt 0.443776 0.436395 -vt 0.443776 0.423835 -vt 0.396949 0.423835 -vt 0.350121 0.423835 -vt 0.396949 0.423835 -vt 0.396949 0.417555 -vt 0.350121 0.417555 -vt 0.300793 0.423835 -vt 0.350121 0.423835 -vt 0.350121 0.417555 -vt 0.300793 0.417555 -vt 0.249801 0.423835 -vt 0.300793 0.423835 -vt 0.300793 0.417555 -vt 0.249801 0.417555 -vt 0.200473 0.423835 -vt 0.249801 0.423835 -vt 0.249801 0.417555 -vt 0.200473 0.417555 -vt 0.153645 0.423835 -vt 0.200473 0.423835 -vt 0.200473 0.417555 -vt 0.153645 0.417555 -vt 0.106818 0.423835 -vt 0.153645 0.423835 -vt 0.153645 0.417555 -vt 0.106818 0.417555 -vt 0.057489 0.423835 -vt 0.106818 0.423835 -vt 0.106818 0.417555 -vt 0.057489 0.417555 -vt 0.006498 0.423835 -vt 0.057489 0.423835 -vt 0.057489 0.417555 -vt 0.006498 0.417555 -vt 0.443776 0.423835 -vt 0.493105 0.423835 -vt 0.493105 0.417555 -vt 0.443776 0.417555 -vt 0.396949 0.423835 -vt 0.443776 0.423835 -vt 0.443776 0.417555 -vt 0.396949 0.417555 -vt 0.350121 0.417555 -vt 0.396949 0.417555 -vt 0.396949 0.404768 -vt 0.350121 0.404768 -vt 0.300793 0.417555 -vt 0.350121 0.417555 -vt 0.350121 0.404768 -vt 0.300793 0.404768 -vt 0.249801 0.417555 -vt 0.300793 0.417555 -vt 0.300793 0.404768 -vt 0.249801 0.404768 -vt 0.200473 0.417555 -vt 0.249801 0.417555 -vt 0.249801 0.404768 -vt 0.200473 0.404768 -vt 0.153645 0.417555 -vt 0.200473 0.417555 -vt 0.200473 0.404768 -vt 0.153645 0.404768 -vt 0.106818 0.417555 -vt 0.153645 0.417555 -vt 0.153645 0.404768 -vt 0.106818 0.404768 -vt 0.057489 0.417555 -vt 0.106818 0.417555 -vt 0.106818 0.404768 -vt 0.057489 0.404768 -vt 0.006498 0.417555 -vt 0.057489 0.417555 -vt 0.057489 0.404768 -vt 0.006498 0.404768 -vt 0.443776 0.417555 -vt 0.493105 0.417555 -vt 0.493105 0.404768 -vt 0.443776 0.404768 -vt 0.396949 0.417555 -vt 0.443776 0.417555 -vt 0.443776 0.404768 -vt 0.396949 0.404768 -vt 0.350998 0.547962 -vt 0.398319 0.547961 -vt 0.398319 0.498824 -vt 0.350998 0.498825 -vt 0.301150 0.547961 -vt 0.301150 0.498825 -vt 0.249620 0.547961 -vt 0.249620 0.498825 -vt 0.199772 0.547962 -vt 0.199772 0.498825 -vt 0.152451 0.547962 -vt 0.152451 0.498824 -vt 0.105130 0.547961 -vt 0.105130 0.498824 -vt 0.055282 0.547962 -vt 0.055282 0.498824 -vt 0.003753 0.547962 -vt 0.003753 0.498824 -vt 0.445640 0.547961 -vt 0.495488 0.547962 -vt 0.495488 0.498824 -vt 0.445640 0.498824 -vt 0.350998 0.737698 -vt 0.398319 0.737698 -vt 0.301150 0.737698 -vt 0.249620 0.737698 -vt 0.199772 0.737698 -vt 0.152451 0.737698 -vt 0.105130 0.737698 -vt 0.055282 0.737698 -vt 0.003753 0.737698 -vt 0.445640 0.737698 -vt 0.495488 0.737698 -vt 0.350998 0.858405 -vt 0.398319 0.858405 -vt 0.301150 0.858405 -vt 0.249620 0.858405 -vt 0.199772 0.858405 -vt 0.152451 0.858405 -vt 0.105130 0.858405 -vt 0.055282 0.858405 -vt 0.003753 0.858405 -vt 0.445640 0.858405 -vt 0.495488 0.858405 -vt 0.350998 0.961982 -vt 0.398319 0.961982 -vt 0.301150 0.961982 -vt 0.249620 0.961982 -vt 0.199772 0.961982 -vt 0.152451 0.961982 -vt 0.105130 0.961982 -vt 0.055282 0.961982 -vt 0.003753 0.961982 -vt 0.445640 0.961982 -vt 0.495488 0.961982 -vt 0.350998 0.996654 -vt 0.398319 0.996654 -vt 0.301150 0.996654 -vt 0.249620 0.996654 -vt 0.199772 0.996654 -vt 0.152451 0.996654 -vt 0.105130 0.996654 -vt 0.055282 0.996654 -vt 0.003753 0.996654 -vt 0.445640 0.996654 -vt 0.495488 0.996654 -vn 0.000001 -0.000117 -1.000000 -vn 0.000007 -0.000119 -1.000000 -vn 0.000004 -0.000642 -1.000000 -vn 0.000290 -0.001097 -0.999999 -vn 0.965539 -0.259953 0.012557 -vn 0.960748 -0.276359 0.024272 -vn 0.995038 -0.099144 0.008333 -vn 0.997311 0.073275 0.000826 -vn 0.384905 -0.746403 0.542891 -vn -0.062420 -0.728758 0.681921 -vn 0.161475 -0.510903 0.844336 -vn 0.298440 -0.528902 0.794478 -vn -0.388088 -0.822360 0.416066 -vn -0.374937 -0.503238 0.778571 -vn -0.967185 -0.253827 0.011142 -vn -0.969696 -0.243379 0.021376 -vn -0.995359 -0.095953 0.007360 -vn -0.997773 0.066697 0.000871 -vn -0.000005 -0.000117 -1.000000 -vn -0.000578 -0.001225 -0.999999 -vn -0.002059 0.162154 -0.986763 -vn 0.036715 0.227361 -0.973118 -vn 0.988150 0.153490 0.000530 -vn 0.997092 0.076202 0.000795 -vn 0.419290 0.355620 0.835302 -vn 0.335340 0.314686 0.887986 -vn 0.476829 0.120448 0.870704 -vn 0.548589 -0.115983 0.828008 -vn -0.425538 0.336785 0.839936 -vn -0.326355 0.383871 0.863791 -vn -0.479491 0.111072 0.870489 -vn -0.546378 -0.151051 0.823805 -vn -0.988094 0.153853 0.000548 -vn -0.996980 0.077652 0.000810 -vn -0.071204 0.307808 -0.948780 -vn 0.134041 0.542848 -0.829065 -vn 0.038742 0.586621 -0.808935 -vn 0.999191 -0.037450 -0.014645 -vn 0.997224 -0.066926 -0.032638 -vn 0.508477 -0.486691 0.710340 -vn 0.518399 -0.586423 0.622391 -vn -0.510691 -0.477362 0.715067 -vn -0.519541 -0.586094 0.621748 -vn -0.999321 -0.034320 -0.013421 -vn -0.997248 -0.066385 -0.032993 -vn -0.208233 0.626135 -0.751394 -vn 0.208454 0.614903 -0.760553 -vn 0.003597 0.581754 -0.813357 -vn 0.994885 -0.089661 -0.046525 -vn 0.994269 -0.101688 -0.032983 -vn 0.510524 -0.657019 0.554699 -vn 0.512927 -0.632907 0.579944 -vn -0.512007 -0.660652 0.548989 -vn -0.514396 -0.638014 0.573004 -vn -0.992961 -0.104288 -0.056137 -vn -0.993472 -0.105450 -0.043510 -vn -0.215729 0.522222 -0.825073 -vn 0.214294 0.359182 -0.908332 -vn 0.000134 0.334072 -0.942548 -vn 0.997269 -0.072312 -0.015018 -vn 0.998775 -0.049471 -0.001064 -vn 0.525393 -0.499573 0.688759 -vn 0.520961 -0.381681 0.763491 -vn -0.527026 -0.502395 0.685451 -vn -0.522284 -0.373646 0.766556 -vn -0.997005 -0.073521 -0.023992 -vn -0.999371 -0.035442 -0.000762 -vn -0.214604 0.292047 -0.932016 -vn -0.000002 -0.996240 0.086630 -vn 0.254654 -0.964745 -0.066466 -vn -0.000002 -0.978728 -0.205161 -vn 0.384905 -0.746403 0.542891 -vn -0.062420 -0.728758 0.681921 -vn -0.388088 -0.822360 0.416066 -vn -0.254657 -0.964744 -0.066466 -vn 0.215116 0.223526 -0.950664 -vn -0.074129 0.228601 -0.970694 -vn 1.000000 0.000000 -0.000000 -vn 1.000000 0.000000 -0.000000 -vn 0.532664 -0.238851 0.811923 -vn 0.525606 -0.243348 0.815181 -vn -0.532938 -0.238769 0.811767 -vn -0.526504 -0.236645 0.816574 -vn -1.000000 -0.000000 0.000000 -vn -1.000000 -0.000000 0.000000 -vn -0.212589 0.222631 -0.951442 -vn 0.000117 0.000000 -1.000000 -vn 0.000118 0.000007 -1.000000 -vn 0.000642 0.000004 -1.000000 -vn 0.001097 0.000289 -0.999999 -vn 0.259953 0.965539 0.012557 -vn 0.276358 0.960748 0.024272 -vn 0.099144 0.995038 0.008333 -vn -0.073275 0.997311 0.000826 -vn 0.746403 0.384905 0.542891 -vn 0.728758 -0.062420 0.681921 -vn 0.510903 0.161476 0.844336 -vn 0.528902 0.298440 0.794478 -vn 0.822360 -0.388088 0.416066 -vn 0.503238 -0.374936 0.778572 -vn 0.253827 -0.967185 0.011142 -vn 0.243379 -0.969696 0.021376 -vn 0.095953 -0.995359 0.007360 -vn -0.066697 -0.997773 0.000871 -vn 0.000117 -0.000006 -1.000000 -vn 0.001225 -0.000578 -0.999999 -vn -0.162154 -0.002061 -0.986763 -vn -0.227361 0.036714 -0.973118 -vn -0.153490 0.988150 0.000530 -vn -0.076202 0.997092 0.000795 -vn -0.355620 0.419290 0.835302 -vn -0.314686 0.335340 0.887986 -vn -0.120448 0.476829 0.870704 -vn 0.115983 0.548589 0.828008 -vn -0.336785 -0.425537 0.839937 -vn -0.383871 -0.326354 0.863792 -vn -0.111072 -0.479490 0.870490 -vn 0.151051 -0.546377 0.823805 -vn -0.153853 -0.988094 0.000549 -vn -0.077652 -0.996980 0.000810 -vn -0.307808 -0.071204 -0.948780 -vn -0.542849 0.134040 -0.829065 -vn -0.586621 0.038742 -0.808935 -vn 0.037450 0.999191 -0.014646 -vn 0.066926 0.997224 -0.032638 -vn 0.486691 0.508477 0.710340 -vn 0.586423 0.518399 0.622390 -vn 0.477362 -0.510691 0.715067 -vn 0.586095 -0.519541 0.621748 -vn 0.034320 -0.999321 -0.013421 -vn 0.066385 -0.997248 -0.032993 -vn -0.626135 -0.208233 -0.751394 -vn -0.614903 0.208454 -0.760553 -vn -0.581754 0.003596 -0.813357 -vn 0.089661 0.994885 -0.046525 -vn 0.101687 0.994269 -0.032983 -vn 0.657019 0.510524 0.554699 -vn 0.632907 0.512927 0.579944 -vn 0.660652 -0.512006 0.548989 -vn 0.638015 -0.514396 0.573004 -vn 0.104288 -0.992961 -0.056137 -vn 0.105450 -0.993472 -0.043510 -vn -0.522222 -0.215730 -0.825073 -vn -0.359182 0.214294 -0.908332 -vn -0.334072 0.000134 -0.942547 -vn 0.072312 0.997269 -0.015018 -vn 0.049471 0.998775 -0.001064 -vn 0.499573 0.525393 0.688759 -vn 0.381681 0.520961 0.763491 -vn 0.502395 -0.527026 0.685451 -vn 0.373646 -0.522284 0.766556 -vn 0.073521 -0.997005 -0.023992 -vn 0.035442 -0.999371 -0.000762 -vn -0.292047 -0.214604 -0.932016 -vn 0.996240 -0.000002 0.086630 -vn 0.964745 0.254654 -0.066466 -vn 0.978728 -0.000002 -0.205161 -vn 0.746403 0.384905 0.542891 -vn 0.728758 -0.062420 0.681921 -vn 0.822360 -0.388088 0.416066 -vn 0.964744 -0.254658 -0.066466 -vn -0.223526 0.215116 -0.950664 -vn -0.228601 -0.074129 -0.970694 -vn -0.000000 1.000000 -0.000000 -vn -0.000000 1.000000 -0.000000 -vn 0.238851 0.532664 0.811923 -vn 0.243348 0.525606 0.815181 -vn 0.238770 -0.532938 0.811767 -vn 0.236645 -0.526504 0.816574 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn -0.222631 -0.212589 -0.951442 -vn -0.000001 0.000116 -1.000000 -vn -0.000009 0.000119 -1.000000 -vn -0.000005 0.000642 -1.000000 -vn -0.000289 0.001096 -0.999999 -vn -0.965539 0.259953 0.012557 -vn -0.960748 0.276358 0.024272 -vn -0.995038 0.099144 0.008333 -vn -0.997311 -0.073275 0.000826 -vn -0.384905 0.746403 0.542891 -vn 0.062420 0.728758 0.681921 -vn -0.161475 0.510903 0.844336 -vn -0.298440 0.528902 0.794478 -vn 0.388088 0.822361 0.416066 -vn 0.374936 0.503239 0.778571 -vn 0.967185 0.253827 0.011142 -vn 0.969696 0.243379 0.021376 -vn 0.995359 0.095953 0.007360 -vn 0.997773 -0.066696 0.000871 -vn 0.000006 0.000116 -1.000000 -vn 0.000578 0.001225 -0.999999 -vn 0.002061 -0.162154 -0.986763 -vn -0.036715 -0.227361 -0.973118 -vn -0.988150 -0.153490 0.000530 -vn -0.997092 -0.076202 0.000795 -vn -0.419290 -0.355620 0.835302 -vn -0.335340 -0.314686 0.887986 -vn -0.476829 -0.120448 0.870704 -vn -0.548589 0.115983 0.828008 -vn 0.425538 -0.336785 0.839937 -vn 0.326355 -0.383871 0.863791 -vn 0.479490 -0.111072 0.870490 -vn 0.546377 0.151051 0.823806 -vn 0.988094 -0.153853 0.000549 -vn 0.996980 -0.077652 0.000810 -vn 0.071202 -0.307807 -0.948781 -vn -0.134041 -0.542849 -0.829065 -vn -0.038743 -0.586621 -0.808935 -vn -0.999191 0.037450 -0.014645 -vn -0.997224 0.066925 -0.032638 -vn -0.508477 0.486691 0.710340 -vn -0.518400 0.586423 0.622390 -vn 0.510690 0.477362 0.715067 -vn 0.519540 0.586095 0.621748 -vn 0.999321 0.034320 -0.013421 -vn 0.997248 0.066385 -0.032993 -vn 0.208233 -0.626135 -0.751394 -vn -0.208455 -0.614903 -0.760553 -vn -0.003597 -0.581754 -0.813357 -vn -0.994885 0.089660 -0.046525 -vn -0.994269 0.101687 -0.032983 -vn -0.510524 0.657019 0.554699 -vn -0.512927 0.632907 0.579944 -vn 0.512006 0.660652 0.548989 -vn 0.514396 0.638015 0.573004 -vn 0.992961 0.104288 -0.056137 -vn 0.993472 0.105451 -0.043510 -vn 0.215730 -0.522222 -0.825072 -vn -0.214294 -0.359182 -0.908332 -vn -0.000134 -0.334072 -0.942547 -vn -0.997269 0.072312 -0.015018 -vn -0.998775 0.049471 -0.001064 -vn -0.525393 0.499573 0.688759 -vn -0.520961 0.381681 0.763491 -vn 0.527026 0.502395 0.685451 -vn 0.522284 0.373646 0.766556 -vn 0.997005 0.073521 -0.023992 -vn 0.999371 0.035442 -0.000762 -vn 0.214604 -0.292047 -0.932016 -vn 0.000002 0.996240 0.086630 -vn -0.254654 0.964745 -0.066466 -vn 0.000002 0.978728 -0.205161 -vn -0.384905 0.746403 0.542891 -vn 0.062420 0.728758 0.681921 -vn 0.388088 0.822361 0.416066 -vn 0.254658 0.964744 -0.066466 -vn -0.215116 -0.223526 -0.950664 -vn 0.074129 -0.228601 -0.970694 -vn -1.000000 -0.000000 -0.000000 -vn -1.000000 -0.000000 -0.000000 -vn -0.532664 0.238851 0.811923 -vn -0.525606 0.243348 0.815181 -vn 0.532938 0.238770 0.811767 -vn 0.526504 0.236645 0.816574 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.212589 -0.222631 -0.951442 -vn -0.000117 -0.000002 -1.000000 -vn -0.000120 -0.000009 -1.000000 -vn -0.000642 -0.000005 -1.000000 -vn -0.001096 -0.000290 -0.999999 -vn -0.259953 -0.965540 0.012557 -vn -0.276358 -0.960748 0.024272 -vn -0.099144 -0.995038 0.008333 -vn 0.073275 -0.997311 0.000826 -vn -0.746403 -0.384905 0.542891 -vn -0.728758 0.062420 0.681921 -vn -0.510903 -0.161475 0.844336 -vn -0.528903 -0.298440 0.794478 -vn -0.822360 0.388088 0.416066 -vn -0.503238 0.374937 0.778571 -vn -0.253827 0.967185 0.011142 -vn -0.243379 0.969696 0.021376 -vn -0.095953 0.995359 0.007360 -vn 0.066697 0.997773 0.000871 -vn -0.000116 0.000005 -1.000000 -vn -0.001225 0.000578 -0.999999 -vn 0.162155 0.002059 -0.986763 -vn 0.227361 -0.036715 -0.973118 -vn 0.153490 -0.988150 0.000530 -vn 0.076203 -0.997092 0.000795 -vn 0.355621 -0.419290 0.835302 -vn 0.314686 -0.335340 0.887986 -vn 0.120448 -0.476829 0.870704 -vn -0.115983 -0.548589 0.828008 -vn 0.336785 0.425538 0.839937 -vn 0.383871 0.326355 0.863791 -vn 0.111072 0.479490 0.870490 -vn -0.151051 0.546377 0.823805 -vn 0.153853 0.988094 0.000548 -vn 0.077652 0.996980 0.000810 -vn 0.307808 0.071202 -0.948781 -vn 0.542849 -0.134041 -0.829065 -vn 0.586621 -0.038743 -0.808934 -vn -0.037450 -0.999191 -0.014645 -vn -0.066925 -0.997224 -0.032638 -vn -0.486691 -0.508477 0.710340 -vn -0.586423 -0.518400 0.622390 -vn -0.477362 0.510691 0.715067 -vn -0.586095 0.519541 0.621748 -vn -0.034320 0.999321 -0.013421 -vn -0.066385 0.997248 -0.032993 -vn 0.626135 0.208232 -0.751395 -vn 0.614903 -0.208454 -0.760553 -vn 0.581754 -0.003597 -0.813357 -vn -0.089660 -0.994885 -0.046525 -vn -0.101687 -0.994269 -0.032983 -vn -0.657019 -0.510525 0.554699 -vn -0.632907 -0.512927 0.579944 -vn -0.660652 0.512007 0.548988 -vn -0.638015 0.514396 0.573004 -vn -0.104288 0.992961 -0.056137 -vn -0.105451 0.993472 -0.043510 -vn 0.522222 0.215729 -0.825072 -vn 0.359182 -0.214295 -0.908331 -vn 0.334072 -0.000134 -0.942547 -vn -0.072312 -0.997269 -0.015018 -vn -0.049471 -0.998775 -0.001064 -vn -0.499573 -0.525393 0.688759 -vn -0.381681 -0.520961 0.763491 -vn -0.502395 0.527026 0.685451 -vn -0.373646 0.522284 0.766556 -vn -0.073521 0.997005 -0.023992 -vn -0.035442 0.999371 -0.000763 -vn 0.292047 0.214604 -0.932016 -vn -0.996240 0.000002 0.086630 -vn -0.964745 -0.254654 -0.066466 -vn -0.978728 0.000002 -0.205161 -vn -0.746403 -0.384905 0.542891 -vn -0.728758 0.062420 0.681921 -vn -0.822360 0.388088 0.416066 -vn -0.964744 0.254657 -0.066466 -vn 0.223526 -0.215116 -0.950664 -vn 0.228601 0.074129 -0.970694 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 -0.000000 -vn -0.238851 -0.532664 0.811923 -vn -0.243348 -0.525606 0.815181 -vn -0.238770 0.532938 0.811767 -vn -0.236645 0.526504 0.816574 -vn -0.000000 1.000000 0.000000 -vn -0.000000 1.000000 0.000000 -vn 0.222631 0.212589 -0.951442 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.706842 0.707371 0.000000 -vn 0.706842 0.707371 0.000000 -vn 0.706842 0.707371 0.000000 -vn 0.706842 0.707371 0.000000 -vn -0.000374 1.000000 0.000000 -vn -0.000374 1.000000 0.000000 -vn -0.000374 1.000000 0.000000 -vn -0.000374 1.000000 0.000000 -vn -0.707371 0.706842 0.000000 -vn -0.707371 0.706842 0.000000 -vn -0.707371 0.706842 0.000000 -vn -0.707371 0.706842 0.000000 -vn -1.000000 -0.000374 0.000000 -vn -1.000000 -0.000374 0.000000 -vn -1.000000 -0.000374 0.000000 -vn -1.000000 -0.000374 0.000000 -vn -0.706842 -0.707371 -0.000000 -vn -0.706842 -0.707371 -0.000000 -vn -0.706842 -0.707371 -0.000000 -vn -0.706842 -0.707371 0.000000 -vn 0.000374 -1.000000 -0.000000 -vn 0.000374 -1.000000 0.000000 -vn 0.000374 -1.000000 -0.000000 -vn 0.000374 -1.000000 -0.000000 -vn 0.707371 -0.706842 -0.000000 -vn 0.707371 -0.706842 -0.000000 -vn 0.707371 -0.706842 -0.000000 -vn 0.707371 -0.706842 -0.000000 -vn 1.000000 0.000374 0.000000 -vn 1.000000 0.000374 0.000000 -vn 1.000000 0.000374 0.000000 -vn 1.000000 0.000374 0.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn -0.099506 0.000000 0.995037 -vn -0.099506 0.000000 0.995037 -vn -0.099506 0.000000 0.995037 -vn -0.099506 0.000000 0.995037 -vn 0.000000 -0.099506 0.995037 -vn 0.000000 -0.099506 0.995037 -vn 0.000000 -0.099506 0.995037 -vn 0.000000 -0.099506 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -0.929987 0.000000 0.367592 -vn -0.677867 0.000000 0.735184 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -0.929987 0.367592 -vn 0.000000 -0.677867 0.735184 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.929987 0.000000 0.367592 -vn 0.677867 0.000000 0.735184 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 0.929987 0.367592 -vn 0.000000 0.677867 0.735184 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn -0.000000 -1.000000 0.000000 -vn -0.000000 -1.000000 0.000000 -vn -0.000000 -1.000000 0.000000 -vn -0.000000 -1.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn 0.000000 0.967538 0.252725 -vn 0.000000 0.862856 0.505449 -vn 0.967538 0.000000 0.252725 -vn 0.862856 0.000000 0.505449 -vn -0.000000 -0.967538 0.252725 -vn -0.000000 -0.862856 0.505449 -vn -0.967538 0.000000 0.252725 -vn -0.862856 0.000000 0.505449 -vn 0.000000 0.862856 0.505449 -vn 0.000000 0.967538 0.252725 -vn 0.862856 0.000000 0.505449 -vn 0.967538 0.000000 0.252725 -vn -0.000000 -0.862856 0.505449 -vn -0.000000 -0.967538 0.252725 -vn -0.862856 0.000000 0.505449 -vn -0.967538 0.000000 0.252725 -vn 0.000000 0.967538 0.252725 -vn 0.000000 0.862856 0.505449 -vn 0.967538 0.000000 0.252724 -vn 0.862857 0.000000 0.505449 -vn -0.000000 -0.967538 0.252724 -vn -0.000000 -0.862857 0.505448 -vn -0.967538 0.000000 0.252725 -vn -0.862857 0.000000 0.505449 -vn 0.000000 0.707107 0.707107 -vn 0.000000 0.707107 0.707107 -vn 0.707108 0.000000 0.707106 -vn 0.707107 0.000000 0.707107 -vn -0.000000 -0.707108 0.707105 -vn -0.000000 -0.707108 0.707105 -vn -0.707108 0.000000 0.707106 -vn -0.707108 0.000000 0.707105 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.000000 0.099506 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.099501 0.000000 0.995037 -vn 0.099506 0.000000 0.995037 -vn 0.099506 0.000000 0.995037 -vn -0.000000 -0.099501 0.995037 -vn -0.000000 -0.099501 0.995037 -vn -0.000000 -0.099501 0.995037 -vn -0.000000 -0.099501 0.995037 -vn -0.099501 0.000000 0.995037 -vn -0.099506 0.000000 0.995037 -vn -0.099501 0.000000 0.995037 -vn -0.099501 0.000000 0.995037 -vn -0.275482 0.000000 0.961306 -vn -0.187896 0.000000 0.982189 -vn 0.000000 -0.275482 0.961306 -vn 0.000000 -0.187896 0.982189 -vn 0.275482 0.000000 0.961306 -vn 0.187896 0.000000 0.982189 -vn 0.000000 0.275482 0.961306 -vn 0.000000 0.187896 0.982189 -vn -0.516067 0.000000 0.856548 -vn -0.903649 0.000000 0.428274 -vn 0.000000 -0.516067 0.856548 -vn 0.000000 -0.903649 0.428274 -vn 0.516067 0.000000 0.856548 -vn 0.903649 0.000000 0.428274 -vn 0.000000 0.516067 0.856548 -vn 0.000000 0.903649 0.428274 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn -0.049938 0.000000 0.998752 -vn -0.049938 0.000000 0.998752 -vn -0.049938 0.000000 0.998752 -vn -0.049938 0.000000 0.998752 -vn 0.000000 -0.049938 0.998752 -vn 0.000000 -0.049938 0.998752 -vn 0.000000 -0.049938 0.998752 -vn 0.000000 -0.049938 0.998752 -vn 0.049938 0.000000 0.998752 -vn 0.049938 0.000000 0.998752 -vn 0.049938 0.000000 0.998752 -vn 0.049938 0.000000 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 1.000000 0.000000 0.000000 -vn 0.000000 1.000000 -0.000002 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 -0.000002 -vn 0.000000 1.000000 -0.000005 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -1.000000 0.000000 0.000000 -vn -0.000000 -1.000000 0.000002 -vn 0.000000 -1.000000 0.000005 -vn -0.000000 -1.000000 0.000002 -vn -0.000000 -1.000000 0.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.000000 0.000000 -1.000000 -vn 0.562661 0.423331 -0.710072 -vn 0.704032 0.011758 -0.710070 -vn 0.582173 0.063049 -0.810617 -vn 0.433925 0.393201 -0.810618 -vn 0.206373 0.673207 -0.710072 -vn 0.119934 0.573161 -0.810618 -vn -0.228742 0.665939 -0.710072 -vn -0.239867 0.534192 -0.810618 -vn -0.576487 0.404302 -0.710072 -vn -0.508049 0.291177 -0.810618 -vn -0.704032 -0.011763 -0.710070 -vn -0.582173 -0.063055 -0.810616 -vn -0.562662 -0.423334 -0.710070 -vn -0.433926 -0.393204 -0.810616 -vn -0.206373 -0.673209 -0.710070 -vn -0.119934 -0.573164 -0.810616 -vn 0.228743 -0.665941 -0.710070 -vn 0.239869 -0.534195 -0.810616 -vn 0.576487 -0.404306 -0.710070 -vn 0.508049 -0.291182 -0.810616 -vn 0.745732 0.553468 -0.370886 -vn 0.928631 0.009435 -0.370885 -vn 0.277988 0.886096 -0.370886 -vn -0.295936 0.880264 -0.370886 -vn -0.756825 0.538201 -0.370886 -vn -0.928631 -0.009437 -0.370885 -vn -0.745732 -0.553469 -0.370885 -vn -0.277989 -0.886096 -0.370885 -vn 0.295937 -0.880265 -0.370885 -vn 0.756824 -0.538202 -0.370885 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 -0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.047494 0.015432 0.998752 -vn 0.047493 0.015432 0.998752 -vn 0.047494 0.015432 0.998752 -vn 0.047494 0.015432 0.998752 -vn 0.029353 0.040401 0.998752 -vn 0.029353 0.040401 0.998752 -vn 0.029353 0.040401 0.998752 -vn 0.029353 0.040401 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn 0.000000 0.049938 0.998752 -vn -0.029353 0.040401 0.998752 -vn -0.029353 0.040401 0.998752 -vn -0.029353 0.040401 0.998752 -vn -0.029353 0.040401 0.998752 -vn -0.047493 0.015431 0.998752 -vn -0.047494 0.015432 0.998752 -vn -0.047493 0.015431 0.998752 -vn -0.047493 0.015431 0.998752 -vn -0.047493 -0.015432 0.998752 -vn -0.047493 -0.015432 0.998752 -vn -0.047493 -0.015432 0.998752 -vn -0.047493 -0.015432 0.998752 -vn -0.029353 -0.040400 0.998752 -vn -0.029353 -0.040400 0.998752 -vn -0.029353 -0.040400 0.998752 -vn -0.029353 -0.040400 0.998752 -vn 0.000000 -0.049937 0.998752 -vn 0.000000 -0.049937 0.998752 -vn 0.000000 -0.049937 0.998752 -vn 0.000000 -0.049937 0.998752 -vn 0.029353 -0.040399 0.998752 -vn 0.029353 -0.040400 0.998752 -vn 0.029353 -0.040399 0.998752 -vn 0.029353 -0.040399 0.998752 -vn 0.047493 -0.015432 0.998752 -vn 0.047493 -0.015432 0.998752 -vn 0.047493 -0.015432 0.998752 -vn 0.047493 -0.015432 0.998752 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 -0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.425325 0.138196 -0.894427 -vn 0.425326 0.138197 -0.894427 -vn 0.425325 0.138196 -0.894427 -vn 0.425325 0.138196 -0.894427 -vn 0.262866 0.361804 -0.894427 -vn 0.262865 0.361803 -0.894427 -vn 0.262866 0.361804 -0.894427 -vn 0.262866 0.361804 -0.894427 -vn -0.000000 0.447215 -0.894427 -vn 0.000000 0.447214 -0.894427 -vn -0.000000 0.447215 -0.894427 -vn -0.000000 0.447215 -0.894427 -vn -0.262865 0.361803 -0.894427 -vn -0.262866 0.361804 -0.894427 -vn -0.262865 0.361803 -0.894427 -vn -0.262865 0.361803 -0.894427 -vn -0.425326 0.138196 -0.894427 -vn -0.425325 0.138196 -0.894427 -vn -0.425326 0.138196 -0.894427 -vn -0.425326 0.138196 -0.894427 -vn -0.425326 -0.138196 -0.894427 -vn -0.425326 -0.138196 -0.894427 -vn -0.425326 -0.138196 -0.894427 -vn -0.425326 -0.138196 -0.894427 -vn -0.262865 -0.361804 -0.894427 -vn -0.262865 -0.361804 -0.894427 -vn -0.262865 -0.361804 -0.894427 -vn -0.262865 -0.361804 -0.894427 -vn 0.000000 -0.447214 -0.894427 -vn 0.000000 -0.447214 -0.894427 -vn 0.000000 -0.447214 -0.894427 -vn 0.000000 -0.447214 -0.894427 -vn 0.262865 -0.361804 -0.894427 -vn 0.262865 -0.361804 -0.894427 -vn 0.262865 -0.361804 -0.894427 -vn 0.262865 -0.361804 -0.894427 -vn 0.425326 -0.138196 -0.894427 -vn 0.425326 -0.138196 -0.894427 -vn 0.425326 -0.138196 -0.894427 -vn 0.425326 -0.138196 -0.894427 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.587786 0.809017 -0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587786 0.809017 -0.000000 -vn 0.587786 0.809017 -0.000000 -vn -0.000000 1.000000 0.000000 -vn -0.000000 1.000000 -0.000001 -vn -0.000000 1.000000 0.000000 -vn -0.000000 1.000000 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 -0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.951056 -0.309017 -0.000000 -vn 0.425325 0.138197 0.894427 -vn 0.425326 0.138197 0.894427 -vn 0.425325 0.138197 0.894427 -vn 0.425325 0.138197 0.894427 -vn 0.262866 0.361803 0.894427 -vn 0.262866 0.361804 0.894427 -vn 0.262866 0.361803 0.894427 -vn 0.262866 0.361803 0.894427 -vn 0.000000 0.447214 0.894427 -vn -0.000000 0.447213 0.894427 -vn 0.000000 0.447214 0.894427 -vn 0.000000 0.447214 0.894427 -vn -0.262866 0.361804 0.894427 -vn -0.262865 0.361804 0.894427 -vn -0.262866 0.361804 0.894427 -vn -0.262866 0.361804 0.894427 -vn -0.425326 0.138197 0.894427 -vn -0.425326 0.138197 0.894427 -vn -0.425326 0.138197 0.894427 -vn -0.425326 0.138197 0.894427 -vn -0.425324 -0.138197 0.894428 -vn -0.425326 -0.138197 0.894427 -vn -0.425324 -0.138197 0.894428 -vn -0.425324 -0.138197 0.894428 -vn -0.262866 -0.361803 0.894427 -vn -0.262865 -0.361802 0.894428 -vn -0.262866 -0.361803 0.894427 -vn -0.262866 -0.361803 0.894427 -vn 0.000000 -0.447213 0.894427 -vn 0.000000 -0.447213 0.894427 -vn 0.000000 -0.447213 0.894427 -vn 0.000000 -0.447213 0.894427 -vn 0.262866 -0.361802 0.894427 -vn 0.262866 -0.361803 0.894427 -vn 0.262866 -0.361802 0.894427 -vn 0.262866 -0.361802 0.894427 -vn 0.425326 -0.138198 0.894427 -vn 0.425325 -0.138197 0.894427 -vn 0.425326 -0.138198 0.894427 -vn 0.425326 -0.138198 0.894427 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000001 -vn 0.951056 0.309017 0.000000 -vn 0.951056 0.309017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.587785 0.809017 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn 0.000000 1.000000 0.000000 -vn -0.587785 0.809017 0.000001 -vn -0.587785 0.809017 0.000000 -vn -0.587785 0.809017 0.000001 -vn -0.587785 0.809017 0.000001 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000001 -vn -0.951056 0.309017 0.000000 -vn -0.951056 0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 -0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.951056 -0.309017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn -0.587785 -0.809017 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.000000 -1.000000 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.587785 -0.809017 0.000000 -vn 0.951056 -0.309017 0.000001 -vn 0.951056 -0.309017 0.000000 -vn 0.951056 -0.309017 0.000001 -vn 0.951056 -0.309017 0.000001 -vn 0.808878 0.587853 -0.012040 -vn 0.999927 0.000136 -0.012040 -vn 0.928631 0.009435 -0.370885 -vn 0.745732 0.553468 -0.370886 -vn 0.308865 0.951030 -0.012040 -vn 0.277988 0.886096 -0.370886 -vn -0.309124 0.950945 -0.012040 -vn -0.295936 0.880264 -0.370886 -vn -0.809038 0.587632 -0.012040 -vn -0.756825 0.538201 -0.370886 -vn -0.999927 -0.000136 -0.012040 -vn -0.928631 -0.009437 -0.370885 -vn -0.808878 -0.587853 -0.012040 -vn -0.745732 -0.553469 -0.370885 -vn -0.308865 -0.951030 -0.012040 -vn -0.277989 -0.886096 -0.370885 -vn 0.309124 -0.950945 -0.012040 -vn 0.295937 -0.880265 -0.370885 -vn 0.809038 -0.587632 -0.012040 -vn 0.309124 -0.950945 -0.012040 -vn 0.295937 -0.880265 -0.370885 -vn 0.756824 -0.538202 -0.370885 -vn 0.797207 0.577639 0.175482 -vn 0.984482 -0.001267 0.175482 -vn 0.305427 0.935906 0.175482 -vn -0.303017 0.936689 0.175482 -vn -0.795718 0.579689 0.175482 -vn -0.984482 0.001267 0.175482 -vn -0.797207 -0.577639 0.175482 -vn -0.305426 -0.935906 0.175482 -vn 0.303017 -0.936689 0.175482 -vn 0.795718 -0.579689 0.175482 -vn 0.303017 -0.936689 0.175482 -vn 0.805510 0.586917 0.081747 -vn 0.996652 0.001359 0.081747 -vn 0.306690 0.948292 0.081747 -vn -0.309275 0.947452 0.081747 -vn -0.807107 0.584718 0.081747 -vn -0.996652 -0.001359 0.081747 -vn -0.805510 -0.586917 0.081747 -vn -0.306690 -0.948292 0.081747 -vn 0.309275 -0.947452 0.081747 -vn 0.807107 -0.584718 0.081747 -vn 0.309275 -0.947452 0.081747 -vn 0.768673 0.548289 -0.329426 -vn 0.944145 -0.008240 -0.329426 -vn 0.299593 0.895389 -0.329426 -vn -0.283921 0.900482 -0.329426 -vn -0.758987 0.561621 -0.329426 -vn -0.944145 0.008240 -0.329426 -vn -0.768673 -0.548289 -0.329426 -vn -0.299593 -0.895389 -0.329426 -vn 0.283921 -0.900482 -0.329426 -vn 0.758987 -0.561620 -0.329426 -vn 0.283921 -0.900482 -0.329426 -vn 0.726320 0.416280 -0.546965 -vn 0.832289 -0.090142 -0.546964 -vn 0.342922 0.763698 -0.546965 -vn -0.171461 0.819409 -0.546965 -vn -0.620351 0.562133 -0.546965 -vn -0.832288 0.090142 -0.546965 -vn -0.726320 -0.416280 -0.546965 -vn -0.342922 -0.763698 -0.546965 -vn 0.171461 -0.819409 -0.546965 -vn 0.620351 -0.562134 -0.546965 -vn 0.171461 -0.819409 -0.546965 -f 1/1/1 2/2/2 3/3/3 -f 3/3/3 4/4/4 1/1/1 -f 5/5/5 6/6/6 7/7/7 -f 7/7/7 8/8/8 5/5/5 -f 9/9/9 10/10/10 11/11/11 -f 11/11/11 12/12/12 9/9/9 -f 10/10/10 13/13/13 14/14/14 -f 14/14/14 11/11/11 10/10/10 -f 15/15/15 16/16/16 17/17/17 -f 17/17/17 18/18/18 15/15/15 -f 19/19/19 1/1/1 4/4/4 -f 4/4/4 20/20/20 19/19/19 -f 4/4/4 3/3/3 21/21/21 -f 21/21/21 22/22/22 4/4/4 -f 8/8/8 7/7/7 23/23/23 -f 23/23/23 24/24/24 8/8/8 -f 25/25/25 26/26/26 27/27/27 -f 27/27/27 28/28/28 25/25/25 -f 29/29/29 30/30/30 31/31/31 -f 31/31/31 32/32/32 29/29/29 -f 18/18/18 17/17/17 33/33/33 -f 33/33/33 34/34/34 18/18/18 -f 20/20/20 4/4/4 22/22/22 -f 22/22/22 35/35/35 20/20/20 -f 22/22/22 21/21/21 36/36/36 -f 36/36/36 37/37/37 22/22/22 -f 24/24/24 23/23/23 38/38/38 -f 38/38/38 39/39/39 24/24/24 -f 28/28/28 27/27/27 40/40/40 -f 40/40/40 41/41/41 28/28/28 -f 32/32/32 31/31/31 42/42/42 -f 42/42/42 43/43/43 32/32/32 -f 34/34/34 33/33/33 44/44/44 -f 44/44/44 45/45/45 34/34/34 -f 35/35/35 22/22/22 37/37/37 -f 37/37/37 46/46/46 35/35/35 -f 37/37/37 36/36/36 47/47/47 -f 47/47/47 48/48/48 37/37/37 -f 39/39/39 38/38/38 49/49/49 -f 49/49/49 50/50/50 39/39/39 -f 41/41/41 40/40/40 51/51/51 -f 51/51/51 52/52/52 41/41/41 -f 43/43/43 42/42/42 53/53/53 -f 53/53/53 54/54/54 43/43/43 -f 45/45/45 44/44/44 55/55/55 -f 55/55/55 56/56/56 45/45/45 -f 46/46/46 37/37/37 48/48/48 -f 48/48/48 57/57/57 46/46/46 -f 48/48/48 47/47/47 58/58/58 -f 58/58/58 59/59/59 48/48/48 -f 50/50/50 49/49/49 60/60/60 -f 60/60/60 61/61/61 50/50/50 -f 52/52/52 51/51/51 62/62/62 -f 62/62/62 63/63/63 52/52/52 -f 54/54/54 53/53/53 64/64/64 -f 64/64/64 65/65/65 54/54/54 -f 56/56/56 55/55/55 66/66/66 -f 66/66/66 67/67/67 56/56/56 -f 57/57/57 48/48/48 59/59/59 -f 59/59/59 68/68/68 57/57/57 -f 69/69/69 70/70/70 71/71/71 -f 69/69/69 72/72/72 70/70/70 -f 69/69/69 73/73/73 72/72/72 -f 69/69/69 74/74/74 73/73/73 -f 69/69/69 75/75/75 74/74/74 -f 69/69/69 71/71/71 75/75/75 -f 76/76/76 77/77/77 59/59/59 -f 76/76/76 59/59/59 58/58/58 -f 78/78/78 79/79/79 61/61/61 -f 78/78/78 61/61/61 60/60/60 -f 80/80/80 81/81/81 63/63/63 -f 80/80/80 63/63/63 62/62/62 -f 82/82/82 83/83/83 65/65/65 -f 82/82/82 65/65/65 64/64/64 -f 84/84/84 85/85/85 67/67/67 -f 84/84/84 67/67/67 66/66/66 -f 77/77/77 86/86/86 68/68/68 -f 77/77/77 68/68/68 59/59/59 -f 87/87/87 88/88/88 89/89/89 -f 89/89/89 90/90/90 87/87/87 -f 91/91/91 92/92/92 93/93/93 -f 93/93/93 94/94/94 91/91/91 -f 95/95/95 96/96/96 97/97/97 -f 97/97/97 98/98/98 95/95/95 -f 96/96/96 99/99/99 100/100/100 -f 100/100/100 97/97/97 96/96/96 -f 101/101/101 102/102/102 103/103/103 -f 103/103/103 104/104/104 101/101/101 -f 105/105/105 87/87/87 90/90/90 -f 90/90/90 106/106/106 105/105/105 -f 90/90/90 89/89/89 107/107/107 -f 107/107/107 108/108/108 90/90/90 -f 94/94/94 93/93/93 109/109/109 -f 109/109/109 110/110/110 94/94/94 -f 111/111/111 112/112/112 113/113/113 -f 113/113/113 114/114/114 111/111/111 -f 115/115/115 116/116/116 117/117/117 -f 117/117/117 118/118/118 115/115/115 -f 104/104/104 103/103/103 119/119/119 -f 119/119/119 120/120/120 104/104/104 -f 106/106/106 90/90/90 108/108/108 -f 108/108/108 121/121/121 106/106/106 -f 108/108/108 107/107/107 122/122/122 -f 122/122/122 123/123/123 108/108/108 -f 110/110/110 109/109/109 124/124/124 -f 124/124/124 125/125/125 110/110/110 -f 114/114/114 113/113/113 126/126/126 -f 126/126/126 127/127/127 114/114/114 -f 118/118/118 117/117/117 128/128/128 -f 128/128/128 129/129/129 118/118/118 -f 120/120/120 119/119/119 130/130/130 -f 130/130/130 131/131/131 120/120/120 -f 121/121/121 108/108/108 123/123/123 -f 123/123/123 132/132/132 121/121/121 -f 123/123/123 122/122/122 133/133/133 -f 133/133/133 134/134/134 123/123/123 -f 125/125/125 124/124/124 135/135/135 -f 135/135/135 136/136/136 125/125/125 -f 127/127/127 126/126/126 137/137/137 -f 137/137/137 138/138/138 127/127/127 -f 129/129/129 128/128/128 139/139/139 -f 139/139/139 140/140/140 129/129/129 -f 131/131/131 130/130/130 141/141/141 -f 141/141/141 142/142/142 131/131/131 -f 132/132/132 123/123/123 134/134/134 -f 134/134/134 143/143/143 132/132/132 -f 134/134/134 133/133/133 144/144/144 -f 144/144/144 145/145/145 134/134/134 -f 136/136/136 135/135/135 146/146/146 -f 146/146/146 147/147/147 136/136/136 -f 138/138/138 137/137/137 148/148/148 -f 148/148/148 149/149/149 138/138/138 -f 140/140/140 139/139/139 150/150/150 -f 150/150/150 151/151/151 140/140/140 -f 142/142/142 141/141/141 152/152/152 -f 152/152/152 153/153/153 142/142/142 -f 143/143/143 134/134/134 145/145/145 -f 145/145/145 154/154/154 143/143/143 -f 155/155/155 156/156/156 157/157/157 -f 155/155/155 158/158/158 156/156/156 -f 155/155/155 159/159/159 158/158/158 -f 155/155/155 160/160/160 159/159/159 -f 155/155/155 161/161/161 160/160/160 -f 155/155/155 157/157/157 161/161/161 -f 162/162/162 163/163/163 145/145/145 -f 162/162/162 145/145/145 144/144/144 -f 164/164/164 165/165/165 147/147/147 -f 164/164/164 147/147/147 146/146/146 -f 166/166/166 167/167/167 149/149/149 -f 166/166/166 149/149/149 148/148/148 -f 168/168/168 169/169/169 151/151/151 -f 168/168/168 151/151/151 150/150/150 -f 170/170/170 171/171/171 153/153/153 -f 170/170/170 153/153/153 152/152/152 -f 163/163/163 172/172/172 154/154/154 -f 163/163/163 154/154/154 145/145/145 -f 173/173/173 174/174/174 175/175/175 -f 175/175/175 176/176/176 173/173/173 -f 177/177/177 178/178/178 179/179/179 -f 179/179/179 180/180/180 177/177/177 -f 181/181/181 182/182/182 183/183/183 -f 183/183/183 184/184/184 181/181/181 -f 182/182/182 185/185/185 186/186/186 -f 186/186/186 183/183/183 182/182/182 -f 187/187/187 188/188/188 189/189/189 -f 189/189/189 190/190/190 187/187/187 -f 191/191/191 173/173/173 176/176/176 -f 176/176/176 192/192/192 191/191/191 -f 176/176/176 175/175/175 193/193/193 -f 193/193/193 194/194/194 176/176/176 -f 180/180/180 179/179/179 195/195/195 -f 195/195/195 196/196/196 180/180/180 -f 197/197/197 198/198/198 199/199/199 -f 199/199/199 200/200/200 197/197/197 -f 201/201/201 202/202/202 203/203/203 -f 203/203/203 204/204/204 201/201/201 -f 190/190/190 189/189/189 205/205/205 -f 205/205/205 206/206/206 190/190/190 -f 192/192/192 176/176/176 194/194/194 -f 194/194/194 207/207/207 192/192/192 -f 194/194/194 193/193/193 208/208/208 -f 208/208/208 209/209/209 194/194/194 -f 196/196/196 195/195/195 210/210/210 -f 210/210/210 211/211/211 196/196/196 -f 200/200/200 199/199/199 212/212/212 -f 212/212/212 213/213/213 200/200/200 -f 204/204/204 203/203/203 214/214/214 -f 214/214/214 215/215/215 204/204/204 -f 206/206/206 205/205/205 216/216/216 -f 216/216/216 217/217/217 206/206/206 -f 207/207/207 194/194/194 209/209/209 -f 209/209/209 218/218/218 207/207/207 -f 209/209/209 208/208/208 219/219/219 -f 219/219/219 220/220/220 209/209/209 -f 211/211/211 210/210/210 221/221/221 -f 221/221/221 222/222/222 211/211/211 -f 213/213/213 212/212/212 223/223/223 -f 223/223/223 224/224/224 213/213/213 -f 215/215/215 214/214/214 225/225/225 -f 225/225/225 226/226/226 215/215/215 -f 217/217/217 216/216/216 227/227/227 -f 227/227/227 228/228/228 217/217/217 -f 218/218/218 209/209/209 220/220/220 -f 220/220/220 229/229/229 218/218/218 -f 220/220/220 219/219/219 230/230/230 -f 230/230/230 231/231/231 220/220/220 -f 222/222/222 221/221/221 232/232/232 -f 232/232/232 233/233/233 222/222/222 -f 224/224/224 223/223/223 234/234/234 -f 234/234/234 235/235/235 224/224/224 -f 226/226/226 225/225/225 236/236/236 -f 236/236/236 237/237/237 226/226/226 -f 228/228/228 227/227/227 238/238/238 -f 238/238/238 239/239/239 228/228/228 -f 229/229/229 220/220/220 231/231/231 -f 231/231/231 240/240/240 229/229/229 -f 241/241/241 242/242/242 243/243/243 -f 241/241/241 244/244/244 242/242/242 -f 241/241/241 245/245/245 244/244/244 -f 241/241/241 246/246/246 245/245/245 -f 241/241/241 247/247/247 246/246/246 -f 241/241/241 243/243/243 247/247/247 -f 248/248/248 249/249/249 231/231/231 -f 248/248/248 231/231/231 230/230/230 -f 250/250/250 251/251/251 233/233/233 -f 250/250/250 233/233/233 232/232/232 -f 252/252/252 253/253/253 235/235/235 -f 252/252/252 235/235/235 234/234/234 -f 254/254/254 255/255/255 237/237/237 -f 254/254/254 237/237/237 236/236/236 -f 256/256/256 257/257/257 239/239/239 -f 256/256/256 239/239/239 238/238/238 -f 249/249/249 258/258/258 240/240/240 -f 249/249/249 240/240/240 231/231/231 -f 259/259/259 260/260/260 261/261/261 -f 261/261/261 262/262/262 259/259/259 -f 263/263/263 264/264/264 265/265/265 -f 265/265/265 266/266/266 263/263/263 -f 267/267/267 268/268/268 269/269/269 -f 269/269/269 270/270/270 267/267/267 -f 268/268/268 271/271/271 272/272/272 -f 272/272/272 269/269/269 268/268/268 -f 273/273/273 274/274/274 275/275/275 -f 275/275/275 276/276/276 273/273/273 -f 277/277/277 259/259/259 262/262/262 -f 262/262/262 278/278/278 277/277/277 -f 262/262/262 261/261/261 279/279/279 -f 279/279/279 280/280/280 262/262/262 -f 266/266/266 265/265/265 281/281/281 -f 281/281/281 282/282/282 266/266/266 -f 283/283/283 284/284/284 285/285/285 -f 285/285/285 286/286/286 283/283/283 -f 287/287/287 288/288/288 289/289/289 -f 289/289/289 290/290/290 287/287/287 -f 276/276/276 275/275/275 291/291/291 -f 291/291/291 292/292/292 276/276/276 -f 278/278/278 262/262/262 280/280/280 -f 280/280/280 293/293/293 278/278/278 -f 280/280/280 279/279/279 294/294/294 -f 294/294/294 295/295/295 280/280/280 -f 282/282/282 281/281/281 296/296/296 -f 296/296/296 297/297/297 282/282/282 -f 286/286/286 285/285/285 298/298/298 -f 298/298/298 299/299/299 286/286/286 -f 290/290/290 289/289/289 300/300/300 -f 300/300/300 301/301/301 290/290/290 -f 292/292/292 291/291/291 302/302/302 -f 302/302/302 303/303/303 292/292/292 -f 293/293/293 280/280/280 295/295/295 -f 295/295/295 304/304/304 293/293/293 -f 295/295/295 294/294/294 305/305/305 -f 305/305/305 306/306/306 295/295/295 -f 297/297/297 296/296/296 307/307/307 -f 307/307/307 308/308/308 297/297/297 -f 299/299/299 298/298/298 309/309/309 -f 309/309/309 310/310/310 299/299/299 -f 301/301/301 300/300/300 311/311/311 -f 311/311/311 312/312/312 301/301/301 -f 303/303/303 302/302/302 313/313/313 -f 313/313/313 314/314/314 303/303/303 -f 304/304/304 295/295/295 306/306/306 -f 306/306/306 315/315/315 304/304/304 -f 306/306/306 305/305/305 316/316/316 -f 316/316/316 317/317/317 306/306/306 -f 308/308/308 307/307/307 318/318/318 -f 318/318/318 319/319/319 308/308/308 -f 310/310/310 309/309/309 320/320/320 -f 320/320/320 321/321/321 310/310/310 -f 312/312/312 311/311/311 322/322/322 -f 322/322/322 323/323/323 312/312/312 -f 314/314/314 313/313/313 324/324/324 -f 324/324/324 325/325/325 314/314/314 -f 315/315/315 306/306/306 317/317/317 -f 317/317/317 326/326/326 315/315/315 -f 327/327/327 328/328/328 329/329/329 -f 327/327/327 330/330/330 328/328/328 -f 327/327/327 331/331/331 330/330/330 -f 327/327/327 332/332/332 331/331/331 -f 327/327/327 333/333/333 332/332/332 -f 327/327/327 329/329/329 333/333/333 -f 334/334/334 335/335/335 317/317/317 -f 334/334/334 317/317/317 316/316/316 -f 336/336/336 337/337/337 319/319/319 -f 336/336/336 319/319/319 318/318/318 -f 338/338/338 339/339/339 321/321/321 -f 338/338/338 321/321/321 320/320/320 -f 340/340/340 341/341/341 323/323/323 -f 340/340/340 323/323/323 322/322/322 -f 342/342/342 343/343/343 325/325/325 -f 342/342/342 325/325/325 324/324/324 -f 335/335/335 344/344/344 326/326/326 -f 335/335/335 326/326/326 317/317/317 -f 345/345/345 346/346/346 347/347/347 -f 345/345/345 348/348/348 346/346/346 -f 345/345/345 349/349/349 348/348/348 -f 345/345/345 350/350/350 349/349/349 -f 345/345/345 351/351/351 350/350/350 -f 345/345/345 352/352/352 351/351/351 -f 345/345/345 353/353/353 352/352/352 -f 345/345/345 347/347/347 353/353/353 -f 354/354/354 355/355/355 356/356/356 -f 354/354/354 356/356/356 357/357/357 -f 358/358/358 359/359/359 360/360/360 -f 358/358/358 360/360/360 361/361/361 -f 362/362/362 363/363/363 364/364/364 -f 362/362/362 364/364/364 365/365/365 -f 366/366/366 367/367/367 368/368/368 -f 366/366/366 368/368/368 369/369/369 -f 370/370/370 371/371/371 372/372/372 -f 370/370/370 372/372/372 373/373/373 -f 374/374/374 375/375/375 376/376/376 -f 374/374/374 376/376/376 377/377/377 -f 378/378/378 379/379/379 380/380/380 -f 378/378/378 380/380/380 381/381/381 -f 382/382/382 383/383/383 384/384/384 -f 382/382/382 384/384/384 385/385/385 -f 386/386/386 387/387/387 388/388/388 -f 386/386/386 388/388/388 389/389/389 -f 386/386/386 389/389/389 390/390/390 -f 386/386/386 390/390/390 391/391/391 -f 386/386/386 391/391/391 392/392/392 -f 386/386/386 392/392/392 393/393/393 -f 386/386/386 393/393/393 394/394/394 -f 386/386/386 394/394/394 387/387/387 -f 395/395/395 396/396/396 397/397/397 -f 397/397/397 398/398/398 395/395/395 -f 399/399/399 400/400/400 401/401/401 -f 401/401/401 402/402/402 399/399/399 -f 403/403/403 404/404/404 405/405/405 -f 405/405/405 406/406/406 403/403/403 -f 407/407/407 408/408/408 409/409/409 -f 409/409/409 410/410/410 407/407/407 -f 411/411/411 412/412/412 413/413/413 -f 413/413/413 414/414/414 411/411/411 -f 415/415/415 416/416/416 417/417/417 -f 417/417/417 418/418/418 415/415/415 -f 419/419/419 420/420/420 421/421/421 -f 421/421/421 422/422/422 419/419/419 -f 423/423/423 424/424/424 425/425/425 -f 425/425/425 426/426/426 423/423/423 -f 427/427/427 428/428/428 429/429/429 -f 429/429/429 430/430/430 427/427/427 -f 431/431/431 432/432/432 433/433/433 -f 433/433/433 434/434/434 431/431/431 -f 435/435/435 436/436/436 437/437/437 -f 437/437/437 438/438/438 435/435/435 -f 439/439/439 440/440/440 441/441/441 -f 441/441/441 442/442/442 439/439/439 -f 443/443/443 444/444/444 445/445/445 -f 445/445/445 446/446/446 443/443/443 -f 447/447/447 448/448/448 449/449/449 -f 449/449/449 450/450/450 447/447/447 -f 451/451/451 452/452/452 453/453/453 -f 453/453/453 454/454/454 451/451/451 -f 455/455/455 456/456/456 457/457/457 -f 457/457/457 458/458/458 455/455/455 -f 446/446/446 445/445/445 459/459/459 -f 459/459/459 460/460/460 446/446/446 -f 450/450/450 449/449/449 461/461/461 -f 461/461/461 462/462/462 450/450/450 -f 454/454/454 453/453/453 463/463/463 -f 463/463/463 464/464/464 454/454/454 -f 458/458/458 457/457/457 465/465/465 -f 465/465/465 466/466/466 458/458/458 -f 460/460/460 459/459/459 467/467/467 -f 467/467/467 468/468/468 460/460/460 -f 462/462/462 461/461/461 469/469/469 -f 469/469/469 470/470/470 462/462/462 -f 464/464/464 463/463/463 471/471/471 -f 471/471/471 472/472/472 464/464/464 -f 466/466/466 465/465/465 473/473/473 -f 473/473/473 474/474/474 466/466/466 -f 468/468/468 467/467/467 475/475/475 -f 475/475/475 476/476/476 468/468/468 -f 470/470/470 469/469/469 477/477/477 -f 477/477/477 478/478/478 470/470/470 -f 472/472/472 471/471/471 479/479/479 -f 479/479/479 480/480/480 472/472/472 -f 474/474/474 473/473/473 481/481/481 -f 481/481/481 482/482/482 474/474/474 -f 476/476/476 475/475/475 483/483/483 -f 483/483/483 484/484/484 476/476/476 -f 478/478/478 477/477/477 485/485/485 -f 485/485/485 486/486/486 478/478/478 -f 480/480/480 479/479/479 487/487/487 -f 487/487/487 488/488/488 480/480/480 -f 482/482/482 481/481/481 489/489/489 -f 489/489/489 490/490/490 482/482/482 -f 491/491/491 492/492/492 493/493/493 -f 493/493/493 494/494/494 491/491/491 -f 495/495/495 496/496/496 497/497/497 -f 497/497/497 498/498/498 495/495/495 -f 499/499/499 500/500/500 501/501/501 -f 501/501/501 502/502/502 499/499/499 -f 503/503/503 504/504/504 505/505/505 -f 505/505/505 506/506/506 503/503/503 -f 430/430/430 429/429/429 507/507/507 -f 507/507/507 508/508/508 430/430/430 -f 434/434/434 433/433/433 509/509/509 -f 509/509/509 510/510/510 434/434/434 -f 438/438/438 437/437/437 511/511/511 -f 511/511/511 512/512/512 438/438/438 -f 442/442/442 441/441/441 513/513/513 -f 513/513/513 514/514/514 442/442/442 -f 508/508/508 507/507/507 515/515/515 -f 515/515/515 516/516/516 508/508/508 -f 510/510/510 509/509/509 517/517/517 -f 517/517/517 518/518/518 510/510/510 -f 512/512/512 511/511/511 519/519/519 -f 519/519/519 520/520/520 512/512/512 -f 514/514/514 513/513/513 521/521/521 -f 521/521/521 522/522/522 514/514/514 -f 516/516/516 515/515/515 523/523/523 -f 523/523/523 524/524/524 516/516/516 -f 518/518/518 517/517/517 525/525/525 -f 525/525/525 526/526/526 518/518/518 -f 520/520/520 519/519/519 527/527/527 -f 527/527/527 528/528/528 520/520/520 -f 522/522/522 521/521/521 529/529/529 -f 529/529/529 530/530/530 522/522/522 -f 531/531/531 532/532/532 533/533/533 -f 533/533/533 534/534/534 531/531/531 -f 535/535/535 536/536/536 537/537/537 -f 537/537/537 538/538/538 535/535/535 -f 539/539/539 540/540/540 541/541/541 -f 541/541/541 542/542/542 539/539/539 -f 543/543/543 544/544/544 545/545/545 -f 545/545/545 546/546/546 543/543/543 -f 547/547/547 548/548/548 549/549/549 -f 549/549/549 550/550/550 547/547/547 -f 551/551/551 552/552/552 553/553/553 -f 553/553/553 554/554/554 551/551/551 -f 555/555/555 556/556/556 557/557/557 -f 557/557/557 558/558/558 555/555/555 -f 559/559/559 560/560/560 561/561/561 -f 561/561/561 562/562/562 559/559/559 -f 563/563/563 564/564/564 565/565/565 -f 565/565/565 566/566/566 563/563/563 -f 567/567/567 568/568/568 569/569/569 -f 569/569/569 570/570/570 567/567/567 -f 571/571/571 572/572/572 573/573/573 -f 573/573/573 574/574/574 571/571/571 -f 575/575/575 571/571/571 574/574/574 -f 574/574/574 576/576/576 575/575/575 -f 577/577/577 575/575/575 576/576/576 -f 576/576/576 578/578/578 577/577/577 -f 579/579/579 577/577/577 578/578/578 -f 578/578/578 580/580/580 579/579/579 -f 581/581/581 579/579/579 580/580/580 -f 580/580/580 582/582/582 581/581/581 -f 583/583/583 581/581/581 582/582/582 -f 582/582/582 584/584/584 583/583/583 -f 585/585/585 583/583/583 584/584/584 -f 584/584/584 586/586/586 585/585/585 -f 587/587/587 585/585/585 586/586/586 -f 586/586/586 588/588/588 587/587/587 -f 589/589/589 587/587/587 588/588/588 -f 588/588/588 590/590/590 589/589/589 -f 572/572/572 589/589/589 590/590/590 -f 590/590/590 573/573/573 572/572/572 -f 591/591/591 592/592/592 572/572/572 -f 572/572/572 571/571/571 591/591/591 -f 593/593/593 591/591/591 571/571/571 -f 571/571/571 575/575/575 593/593/593 -f 594/594/594 593/593/593 575/575/575 -f 575/575/575 577/577/577 594/594/594 -f 595/595/595 594/594/594 577/577/577 -f 577/577/577 579/579/579 595/595/595 -f 596/596/596 595/595/595 579/579/579 -f 579/579/579 581/581/581 596/596/596 -f 597/597/597 596/596/596 581/581/581 -f 581/581/581 583/583/583 597/597/597 -f 598/598/598 597/597/597 583/583/583 -f 583/583/583 585/585/585 598/598/598 -f 599/599/599 598/598/598 585/585/585 -f 585/585/585 587/587/587 599/599/599 -f 600/600/600 599/599/599 587/587/587 -f 587/587/587 589/589/589 600/600/600 -f 592/592/592 600/600/600 589/589/589 -f 589/589/589 572/572/572 592/592/592 -f 601/601/601 602/602/602 603/603/603 -f 603/603/603 604/604/604 601/601/601 -f 605/605/605 606/606/606 607/607/607 -f 607/607/607 608/608/608 605/605/605 -f 609/609/609 610/610/610 611/611/611 -f 611/611/611 612/612/612 609/609/609 -f 613/613/613 614/614/614 615/615/615 -f 615/615/615 616/616/616 613/613/613 -f 617/617/617 618/618/618 619/619/619 -f 619/619/619 620/620/620 617/617/617 -f 621/621/621 622/622/622 623/623/623 -f 623/623/623 624/624/624 621/621/621 -f 625/625/625 626/626/626 627/627/627 -f 627/627/627 628/628/628 625/625/625 -f 629/629/629 630/630/630 631/631/631 -f 631/631/631 632/632/632 629/629/629 -f 633/633/633 634/634/634 635/635/635 -f 635/635/635 636/636/636 633/633/633 -f 637/637/637 638/638/638 639/639/639 -f 639/639/639 640/640/640 637/637/637 -f 641/641/641 642/642/642 643/643/643 -f 643/643/643 644/644/644 641/641/641 -f 645/645/645 646/646/646 647/647/647 -f 647/647/647 648/648/648 645/645/645 -f 649/649/649 650/650/650 651/651/651 -f 651/651/651 652/652/652 649/649/649 -f 653/653/653 654/654/654 655/655/655 -f 655/655/655 656/656/656 653/653/653 -f 657/657/657 658/658/658 659/659/659 -f 659/659/659 660/660/660 657/657/657 -f 661/661/661 662/662/662 663/663/663 -f 663/663/663 664/664/664 661/661/661 -f 665/665/665 666/666/666 667/667/667 -f 667/667/667 668/668/668 665/665/665 -f 669/669/669 670/670/670 671/671/671 -f 671/671/671 672/672/672 669/669/669 -f 673/673/673 674/674/674 675/675/675 -f 675/675/675 676/676/676 673/673/673 -f 677/677/677 678/678/678 679/679/679 -f 679/679/679 680/680/680 677/677/677 -f 681/681/681 682/682/682 683/683/683 -f 683/683/683 684/684/684 681/681/681 -f 685/685/685 686/686/686 687/687/687 -f 687/687/687 688/688/688 685/685/685 -f 689/689/689 690/690/690 691/691/691 -f 691/691/691 692/692/692 689/689/689 -f 693/693/693 694/694/694 695/695/695 -f 695/695/695 696/696/696 693/693/693 -f 697/697/697 698/698/698 699/699/699 -f 699/699/699 700/700/700 697/697/697 -f 701/701/701 702/702/702 703/703/703 -f 703/703/703 704/704/704 701/701/701 -f 705/705/705 706/706/706 707/707/707 -f 707/707/707 708/708/708 705/705/705 -f 709/709/709 710/710/710 711/711/711 -f 711/711/711 712/712/712 709/709/709 -f 713/713/713 714/714/714 715/715/715 -f 715/715/715 716/716/716 713/713/713 -f 717/717/717 718/718/718 719/719/719 -f 719/719/719 720/720/720 717/717/717 -f 721/721/721 722/722/722 723/723/723 -f 723/723/723 724/724/724 721/721/721 -f 725/725/725 726/726/726 727/727/727 -f 727/727/727 728/728/728 725/725/725 -f 729/729/729 730/730/730 731/731/731 -f 731/731/731 732/732/732 729/729/729 -f 733/733/733 734/734/734 735/735/735 -f 735/735/735 736/736/736 733/733/733 -f 737/737/737 738/738/738 739/739/739 -f 739/739/739 740/740/740 737/737/737 -f 741/741/741 742/742/742 743/743/743 -f 743/743/743 744/744/744 741/741/741 -f 745/745/745 746/746/746 747/747/747 -f 747/747/747 748/748/748 745/745/745 -f 749/749/749 750/750/750 751/751/751 -f 751/751/751 752/752/752 749/749/749 -f 753/753/753 754/754/754 755/755/755 -f 755/755/755 756/756/756 753/753/753 -f 757/757/757 758/758/758 759/759/759 -f 759/759/759 760/760/760 757/757/757 -f 761/761/761 762/762/762 763/763/763 -f 763/763/763 764/764/764 761/761/761 -f 765/765/765 766/766/766 767/767/767 -f 767/767/767 768/768/768 765/765/765 -f 769/769/769 770/770/770 771/771/771 -f 771/771/771 772/772/772 769/769/769 -f 773/773/773 774/774/774 775/775/775 -f 775/775/775 776/776/776 773/773/773 -f 777/777/777 778/778/778 779/779/779 -f 779/779/779 780/780/780 777/777/777 -f 781/781/781 782/782/782 783/783/783 -f 783/783/783 784/784/784 781/781/781 -f 785/785/785 786/786/786 787/787/787 -f 787/787/787 788/788/788 785/785/785 -f 789/789/789 790/790/790 791/791/791 -f 791/791/791 792/792/792 789/789/789 -f 793/793/793 794/794/794 795/795/795 -f 795/795/795 796/796/796 793/793/793 -f 797/797/797 798/798/798 799/799/799 -f 799/799/799 800/800/800 797/797/797 -f 801/801/801 802/802/802 803/803/803 -f 803/803/803 804/804/804 801/801/801 -f 805/805/805 806/806/806 807/807/807 -f 807/807/807 808/808/808 805/805/805 -f 809/809/809 810/810/810 811/811/811 -f 811/811/811 812/812/812 809/809/809 -f 813/813/813 814/814/814 815/815/815 -f 815/815/815 816/816/816 813/813/813 -f 817/817/817 818/818/818 819/819/819 -f 819/819/819 820/820/820 817/817/817 -f 821/821/821 822/822/822 823/823/823 -f 823/823/823 824/824/824 821/821/821 -f 825/825/825 826/826/826 827/827/827 -f 827/827/827 828/828/828 825/825/825 -f 829/829/829 830/830/830 831/831/831 -f 831/831/831 832/832/832 829/829/829 -f 833/833/833 834/834/834 835/835/835 -f 835/835/835 836/836/836 833/833/833 -f 837/837/837 838/838/838 839/839/839 -f 839/839/839 840/840/840 837/837/837 -f 841/841/841 842/842/842 843/843/843 -f 843/843/843 844/844/844 841/841/841 -f 845/845/845 846/846/846 847/847/847 -f 847/847/847 848/848/848 845/845/845 -f 849/849/849 850/850/850 851/851/851 -f 851/851/851 852/852/852 849/849/849 -f 853/853/853 854/854/854 855/855/855 -f 855/855/855 856/856/856 853/853/853 -f 857/857/857 858/858/858 859/859/859 -f 859/859/859 860/860/860 857/857/857 -f 861/861/861 862/862/862 863/863/863 -f 863/863/863 864/864/864 861/861/861 -f 865/865/865 866/866/866 867/867/867 -f 867/867/867 868/868/868 865/865/865 -f 869/869/869 870/870/870 871/871/871 -f 871/871/871 872/872/872 869/869/869 -f 873/873/873 874/874/874 875/875/875 -f 875/875/875 876/876/876 873/873/873 -f 877/877/877 878/878/878 879/879/879 -f 879/879/879 880/880/880 877/877/877 -f 881/881/881 882/882/882 883/883/883 -f 881/881/881 883/883/883 884/884/884 -f 885/885/885 881/881/881 884/884/884 -f 885/885/885 884/884/884 886/886/886 -f 887/887/887 885/885/885 886/886/886 -f 887/887/887 886/886/886 888/888/888 -f 889/889/889 887/887/887 888/888/888 -f 889/889/889 888/888/888 890/890/890 -f 891/891/891 889/889/889 890/890/890 -f 891/891/891 890/890/890 892/892/892 -f 893/893/893 891/891/891 892/892/892 -f 893/893/893 892/892/892 894/894/894 -f 895/895/895 893/893/893 894/894/894 -f 895/895/895 894/894/894 896/896/896 -f 897/897/897 895/895/895 896/896/896 -f 897/897/897 896/896/896 898/898/898 -f 899/899/899 900/900/900 901/901/901 -f 899/899/899 901/901/901 902/902/902 -f 882/882/882 899/899/899 902/902/902 -f 882/882/882 902/902/902 883/883/883 -f 903/903/903 904/904/904 882/882/882 -f 903/903/903 882/882/882 881/881/881 -f 905/905/905 903/903/903 881/881/881 -f 905/905/905 881/881/881 885/885/885 -f 906/906/906 905/905/905 885/885/885 -f 906/906/906 885/885/885 887/887/887 -f 907/907/907 906/906/906 887/887/887 -f 907/907/907 887/887/887 889/889/889 -f 908/908/908 907/907/907 889/889/889 -f 908/908/908 889/889/889 891/891/891 -f 909/909/909 908/908/908 891/891/891 -f 909/909/909 891/891/891 893/893/893 -f 910/910/910 909/909/909 893/893/893 -f 910/910/910 893/893/893 895/895/895 -f 911/911/911 910/910/910 895/895/895 -f 911/911/911 895/895/895 897/897/897 -f 912/912/912 913/913/913 900/900/900 -f 912/912/912 900/900/900 899/899/899 -f 904/904/904 912/912/912 899/899/899 -f 904/904/904 899/899/899 882/882/882 -f 914/914/914 915/915/915 904/904/904 -f 914/914/914 904/904/904 903/903/903 -f 916/916/916 914/914/914 903/903/903 -f 916/916/916 903/903/903 905/905/905 -f 917/917/917 916/916/916 905/905/905 -f 917/917/917 905/905/905 906/906/906 -f 918/918/918 917/917/917 906/906/906 -f 918/918/918 906/906/906 907/907/907 -f 919/919/919 918/918/918 907/907/907 -f 919/919/919 907/907/907 908/908/908 -f 920/920/920 919/919/919 908/908/908 -f 920/920/920 908/908/908 909/909/909 -f 921/921/921 920/920/920 909/909/909 -f 921/921/921 909/909/909 910/910/910 -f 922/922/922 921/921/921 910/910/910 -f 922/922/922 910/910/910 911/911/911 -f 923/923/923 924/924/924 913/913/913 -f 923/923/923 913/913/913 912/912/912 -f 915/915/915 923/923/923 912/912/912 -f 915/915/915 912/912/912 904/904/904 -f 925/925/925 926/926/926 915/915/915 -f 925/925/925 915/915/915 914/914/914 -f 927/927/927 925/925/925 914/914/914 -f 927/927/927 914/914/914 916/916/916 -f 928/928/928 927/927/927 916/916/916 -f 928/928/928 916/916/916 917/917/917 -f 929/929/929 928/928/928 917/917/917 -f 929/929/929 917/917/917 918/918/918 -f 930/930/930 929/929/929 918/918/918 -f 930/930/930 918/918/918 919/919/919 -f 931/931/931 930/930/930 919/919/919 -f 931/931/931 919/919/919 920/920/920 -f 932/932/932 931/931/931 920/920/920 -f 932/932/932 920/920/920 921/921/921 -f 933/933/933 932/932/932 921/921/921 -f 933/933/933 921/921/921 922/922/922 -f 934/934/934 935/935/935 924/924/924 -f 934/934/934 924/924/924 923/923/923 -f 926/926/926 934/934/934 923/923/923 -f 926/926/926 923/923/923 915/915/915 -f 936/936/936 937/937/937 926/926/926 -f 936/936/936 926/926/926 925/925/925 -f 938/938/938 936/936/936 925/925/925 -f 938/938/938 925/925/925 927/927/927 -f 939/939/939 938/938/938 927/927/927 -f 939/939/939 927/927/927 928/928/928 -f 940/940/940 939/939/939 928/928/928 -f 940/940/940 928/928/928 929/929/929 -f 941/941/941 940/940/940 929/929/929 -f 941/941/941 929/929/929 930/930/930 -f 942/942/942 941/941/941 930/930/930 -f 942/942/942 930/930/930 931/931/931 -f 943/943/943 942/942/942 931/931/931 -f 943/943/943 931/931/931 932/932/932 -f 944/944/944 943/943/943 932/932/932 -f 944/944/944 932/932/932 933/933/933 -f 945/945/945 946/946/946 935/935/935 -f 945/945/945 935/935/935 934/934/934 -f 937/937/937 945/945/945 934/934/934 -f 937/937/937 934/934/934 926/926/926 diff --git a/Demos/ConvexDecompositionDemo/main.cpp b/Demos/ConvexDecompositionDemo/main.cpp deleted file mode 100644 index 9173e5be0..000000000 --- a/Demos/ConvexDecompositionDemo/main.cpp +++ /dev/null @@ -1,27 +0,0 @@ - - -#include "ConvexDecompositionDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - - - -int main(int argc,char** argv) -{ - const char* filename = "file.obj"; - - - ConvexDecompositionDemo* convexDecompDemo = new ConvexDecompositionDemo(); - - convexDecompDemo->initPhysics(filename); - - - - - glutmain(argc, argv,640,480,"Bullet Physics Demo. http://www.continuousphysics.com/Bullet/phpBB2/",convexDecompDemo); - - delete convexDecompDemo; - - return 0; -} diff --git a/Demos/ConvexDecompositionDemo/testFile32Single.bullet b/Demos/ConvexDecompositionDemo/testFile32Single.bullet deleted file mode 100644 index b94637973..000000000 Binary files a/Demos/ConvexDecompositionDemo/testFile32Single.bullet and /dev/null differ diff --git a/Demos/ConvexHullDistance/CMakeLists.txt b/Demos/ConvexHullDistance/CMakeLists.txt deleted file mode 100644 index 7e02bf696..000000000 --- a/Demos/ConvexHullDistance/CMakeLists.txt +++ /dev/null @@ -1,65 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppConvexHullDistanceDemo - - ConvexHullDistanceDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppConvexHullDistanceDemo - ConvexHullDistanceDemo.cpp - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppConvexHullDistanceDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - ConvexHullDistanceDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppConvexHullDistanceDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppConvexHullDistanceDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppConvexHullDistanceDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ConvexHullDistance/ConvexHullDistanceDemo.cpp b/Demos/ConvexHullDistance/ConvexHullDistanceDemo.cpp deleted file mode 100644 index b0647dd80..000000000 --- a/Demos/ConvexHullDistance/ConvexHullDistanceDemo.cpp +++ /dev/null @@ -1,509 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -/// -/// Convex Hull Distance Demo shows distance calculation between two convex hulls of points. -/// GJK with the btVoronoiSimplexSolver is used. -/// - -#include "GL_Simplex1to4.h" -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletCollision/CollisionShapes/btCylinderShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h" -#include "BulletCollision/NarrowPhaseCollision/btPointCollector.h" -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h" -#include "LinearMath/btIDebugDraw.h" -#include "LinearMath/btConvexHullComputer.h" - - - - -#define TaruVtxCount 43 - -static btScalar TaruVtx[] = { -1.08664f,-1.99237f,0.0f, -0.768369f,-1.99237f,-0.768369f, -1.28852f,1.34412e-007f,-1.28852f, -1.82224f,1.90735e-007f,0.0f, -0.0f,-1.99237f,-1.08664f, -0.0f,0.0f,-1.82224f, -0.0f,-1.99237f,-1.08664f, --0.768369f,-1.99237f,-0.768369f, --1.28852f,1.34412e-007f,-1.28852f, -0.0f,0.0f,-1.82224f, --1.08664f,-1.99237f,1.82086e-007f, --1.82224f,1.90735e-007f,1.59305e-007f, --0.768369f,-1.99237f,0.76837f, --1.28852f,2.47058e-007f,1.28852f, -1.42495e-007f,-1.99237f,1.08664f, -2.38958e-007f,2.70388e-007f,1.82224f, -0.768369f,-1.99237f,0.768369f, -1.28852f,2.47058e-007f,1.28852f, -0.768369f,1.99237f,-0.768369f, -1.08664f,1.99237f,0.0f, -0.0f,1.99237f,-1.08664f, --0.768369f,1.99237f,-0.768369f, -0.0f,1.99237f,-1.08664f, --1.08664f,1.99237f,0.0f, --0.768369f,1.99237f,0.768369f, -1.42495e-007f,1.99237f,1.08664f, -0.768369f,1.99237f,0.768369f, -1.42495e-007f,-1.99237f,1.08664f, --0.768369f,-1.99237f,0.76837f, --1.08664f,-1.99237f,1.82086e-007f, --0.768369f,-1.99237f,-0.768369f, -0.0f,-1.99237f,-1.08664f, -0.768369f,-1.99237f,-0.768369f, -1.08664f,-1.99237f,0.0f, -0.768369f,-1.99237f,0.768369f, -0.768369f,1.99237f,-0.768369f, -0.0f,1.99237f,-1.08664f, --0.768369f,1.99237f,-0.768369f, --1.08664f,1.99237f,0.0f, --0.768369f,1.99237f,0.768369f, -1.42495e-007f,1.99237f,1.08664f, -0.768369f,1.99237f,0.768369f, -1.08664f,1.99237f,0.0f, -}; - - - - -#define USE_GJK - -#ifndef USE_GJK -#include "btBulletCollisionCommon.h" - -#endif //USE_GJK -#include "GL_ShapeDrawer.h" -#ifdef WIN32 //needed for glut.h -#include -#endif -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#include -#else -#include -#endif -#include "GlutStuff.h" - - -float yaw=0.f,pitch=0.f,roll=0.f; -const int maxNumObjects = 4; -const int numObjects = 2; - -GL_Simplex1to4 simplex; - -btConvexShape* shapePtr[maxNumObjects]; - -btTransform tr[numObjects]; -int screenWidth = 640.f; -int screenHeight = 480.f; - -void clientResetScene() -{ - tr[0].setOrigin(btVector3(0.0f,3.f,7.f)); - tr[1].setOrigin(btVector3(0.0f,9.f,2.f)); -} - -int debugMode = btIDebugDraw::DBG_DrawWireframe; -GL_ShapeDrawer shapeDrawer; -int m_glutScreenWidth=0; -int m_glutScreenHeight=0; -float m_frustumZNear = 1.f; -float m_frustumZFar = 10000.f; -bool m_ortho = false; - -int myglutmain(int argc, char **argv,int width,int height,const char* title); - - -void updateCamera() { - - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - btScalar rele = 0; - btScalar razi = 0; - btVector3 m_cameraUp(0,1,0); - btScalar m_cameraDistance = 10.f; - btVector3 m_cameraPosition; - - - btVector3 m_cameraTargetPosition = (tr[0].getOrigin()+tr[1].getOrigin())*0.5; - - - btQuaternion rot(m_cameraUp,razi); - - - int m_forwardAxis = 2; - - btVector3 eyePos(0,0,0); - eyePos[m_forwardAxis] = -m_cameraDistance; - - btVector3 forward(eyePos[0],eyePos[1],eyePos[2]); - if (forward.length2() < SIMD_EPSILON) - { - forward.setValue(1.f,0.f,0.f); - } - btVector3 right = m_cameraUp.cross(forward); - btQuaternion roll(right,-rele); - - eyePos = btMatrix3x3(rot) * btMatrix3x3(roll) * eyePos; - - m_cameraPosition[0] = eyePos.getX(); - m_cameraPosition[1] = eyePos.getY(); - m_cameraPosition[2] = eyePos.getZ(); - m_cameraPosition += m_cameraTargetPosition; - - if (m_glutScreenWidth == 0 && m_glutScreenHeight == 0) - return; - - btScalar aspect; - btVector3 extents; - - if (m_glutScreenWidth > m_glutScreenHeight) - { - aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - extents.setValue(aspect * 1.0f, 1.0f,0); - } else - { - aspect = m_glutScreenHeight / (btScalar)m_glutScreenWidth; - extents.setValue(1.0f, aspect*1.f,0); - } - - - if (m_ortho) - { - // reset matrix - glLoadIdentity(); - - - extents *= m_cameraDistance; - btVector3 lower = m_cameraTargetPosition - extents; - btVector3 upper = m_cameraTargetPosition + extents; - //gluOrtho2D(lower.x, upper.x, lower.y, upper.y); - glOrtho(lower.getX(), upper.getX(), lower.getY(), upper.getY(),-1000,1000); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - //glTranslatef(100,210,0); - } else - { - if (m_glutScreenWidth > m_glutScreenHeight) - { -// glFrustum (-aspect, aspect, -1.0, 1.0, 1.0, 10000.0); - glFrustum (-aspect * m_frustumZNear, aspect * m_frustumZNear, -m_frustumZNear, m_frustumZNear, m_frustumZNear, m_frustumZFar); - } else - { -// glFrustum (-1.0, 1.0, -aspect, aspect, 1.0, 10000.0); - glFrustum (-aspect * m_frustumZNear, aspect * m_frustumZNear, -m_frustumZNear, m_frustumZNear, m_frustumZNear, m_frustumZFar); - } - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - gluLookAt(m_cameraPosition[0], m_cameraPosition[1], m_cameraPosition[2], - m_cameraTargetPosition[0], m_cameraTargetPosition[1], m_cameraTargetPosition[2], - m_cameraUp.getX(),m_cameraUp.getY(),m_cameraUp.getZ()); - } - -} - - -int main(int argc,char** argv) -{ - clientResetScene(); - - btMatrix3x3 basisA; - basisA.setIdentity(); - - btMatrix3x3 basisB; - basisB.setIdentity(); - - tr[0].setBasis(basisA); - tr[1].setBasis(basisB); - - btVector3 points0[3]={btVector3(1,0,0),btVector3(0,1,0),btVector3(0,0,1)}; - //btVector3 points1[5]={btVector3(1,0,0),btVector3(0,1,0),btVector3(0,0,1),btVector3(0,0,-1),btVector3(-1,-1,0)}; - - btConvexHullShape hullA(&points0[0].getX(),3); - btConvexHullShape hullB(TaruVtx,TaruVtxCount,3*sizeof(btScalar)); - - shapePtr[0] = &hullA; - shapePtr[1] = &hullB; - - - btTransform tr; - tr.setIdentity(); - - - return myglutmain(argc, argv,screenWidth,screenHeight,"Convex Hull Distance Demo"); -} - - -static btVoronoiSimplexSolver sGjkSimplexSolver; -btSimplexSolverInterface& gGjkSimplexSolver = sGjkSimplexSolver; - -#include - - -void clientDisplay(void) { - - - updateCamera(); - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - //GL_ShapeDrawer::drawCoordSystem(); - - ATTRIBUTE_ALIGNED16(btScalar) m[16]; - int i; -#ifdef USE_GJK - btGjkEpaPenetrationDepthSolver epa; - btGjkPairDetector convexConvex(shapePtr[0],shapePtr[1],&sGjkSimplexSolver,&epa); - - btVector3 seperatingAxis(0.00000000f,0.059727669f,0.29259586f); - convexConvex.setCachedSeperatingAxis(seperatingAxis); - - btPointCollector gjkOutput; - btGjkPairDetector::ClosestPointInput input; - input.m_transformA = tr[0]; - input.m_transformB = tr[1]; - - convexConvex.getClosestPoints(input ,gjkOutput,0); - - if (gjkOutput.m_hasResult) - { - btVector3 endPt = gjkOutput.m_pointInWorld + - gjkOutput.m_normalOnBInWorld*gjkOutput.m_distance; - - glBegin(GL_LINES); - glColor3f(1, 0, 0); - glVertex3d(gjkOutput.m_pointInWorld.x(), gjkOutput.m_pointInWorld.y(),gjkOutput.m_pointInWorld.z()); - glVertex3d(endPt.x(),endPt.y(),endPt.z()); - glEnd(); - - } -#else //USE_GJK - - - struct MyContactResultCallback : public btCollisionWorld::ContactResultCallback - { - virtual btScalar addSingleResult(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) - { - glBegin(GL_LINES); - glColor3f(1, 0, 0); - - glVertex3d(cp.m_positionWorldOnA.getX(),cp.m_positionWorldOnA.getY(),cp.m_positionWorldOnA.getZ()); - glVertex3d(cp.m_positionWorldOnB.getX(),cp.m_positionWorldOnB.getY(),cp.m_positionWorldOnB.getZ()); - glEnd(); - - return 1.f; - } - }; - - btDefaultCollisionConfiguration collisionConfiguration; - btCollisionDispatcher dispatcher(&collisionConfiguration); - btDbvtBroadphase pairCache; - btCollisionWorld world (&dispatcher,&pairCache,&collisionConfiguration); - gContactBreakingThreshold=1e10f; - - MyContactResultCallback result; - btCollisionObject obA; - obA.setCollisionShape(shapePtr[0]); - obA.setWorldTransform(tr[0]); - btCollisionObject obB; - obB.setCollisionShape(shapePtr[1]); - obB.setWorldTransform(tr[1]); - world.contactPairTest(&obA,&obB,result); - -#endif//USE_GJK - - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - - for (i=0;iisPolyhedral()) - { - if (!shapePtr[i]->getUserPointer()) - { - btConvexHullComputer* convexUtil = new btConvexHullComputer(); - shapePtr[i]->setUserPointer(convexUtil); - - btPolyhedralConvexShape* polyshape = (btPolyhedralConvexShape*) shapePtr[i]; - - btAlignedObjectArray vertices; - vertices.resize(polyshape->getNumVertices()); - for (int i=0;igetNumVertices();i++) - { - polyshape->getVertex(i,vertices[i]); - } - - bool useDoublePrecision = false; - convexUtil->compute(&vertices[0].getX(),sizeof(btVector3), polyshape->getNumVertices(),0,0); - } - - if (shapePtr[i]->getUserPointer()) - { - btConvexHullComputer* convexUtil = (btConvexHullComputer*)shapePtr[i]->getUserPointer(); - //printf("num faces = %d\n",convexUtil->faces.size()); - for (int j=0;jfaces.size();j++) - { - int face = convexUtil->faces[j]; - //printf("face=%d\n",face); - const btConvexHullComputer::Edge* firstEdge = &convexUtil->edges[face]; - const btConvexHullComputer::Edge* edge = firstEdge; - - do - { - int src = edge->getSourceVertex(); - int targ = edge->getTargetVertex(); - //printf("src=%d target = %d\n", src,targ); - - btVector3 wa = tr[i] * convexUtil->vertices[src]; - btVector3 wb = tr[i] * convexUtil->vertices[targ]; - - glBegin(GL_LINES); - glColor3f(1, 1, 1); - glVertex3f(wa.getX(),wa.getY(),wa.getZ()); - glVertex3f(wb.getX(),wb.getY(),wb.getZ()); - glEnd(); - - edge = edge->getNextEdgeOfFace(); - } while (edge!=firstEdge); - - } - } - } - } else - { - shapeDrawer.drawOpenGL(m,shapePtr[i],btVector3(1,1,1),debugMode, worldMin, worldMax); - } - - - } - - simplex.setSimplexSolver(&sGjkSimplexSolver); - btVector3 ybuf[4],pbuf[4],qbuf[4]; - int numpoints = sGjkSimplexSolver.getSimplex(pbuf,qbuf,ybuf); - simplex.reset(); - - for (i=0;iinitPhysics(); - doublePrecisionDemo->setCameraDistance(btScalar(2.0)); - - doublePrecisionDemo->clientResetScene(); - - return glutmain(argc, argv,screenWidth,screenHeight,"Double Precision Demo",doublePrecisionDemo); -} - -void DoublePrecisionDemo::initPhysics() -{ - m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - - btMatrix3x3 basisA; - basisA.setIdentity(); - - btMatrix3x3 basisB; - basisB.setIdentity(); - - objects[0].getWorldTransform().setBasis(basisA); - objects[1].getWorldTransform().setBasis(basisB); - - - btBoxShape* boxA = new btBoxShape(btVector3(0.5,0.5,0.5)); - btBoxShape* boxB = new btBoxShape(btVector3(0.5,0.5,0.5)); - - objects[0].setCollisionShape(boxA);//&hullA; - objects[1].setCollisionShape(boxB);//&hullB; - - btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); - btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration); - btVector3 worldAabbMin(80000,80000,80000); - btVector3 worldAabbMax(120000,120000,120000); - - btAxisSweep3* broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax); - - collisionWorld = new btCollisionWorld(dispatcher,broadphase,collisionConfiguration); - - collisionWorld->addCollisionObject(&objects[0]); - collisionWorld->addCollisionObject(&objects[1]); - -} - - -//to be implemented by the demo - -void DoublePrecisionDemo::clientMoveAndDisplay() -{ - - displayCallback(); -} - - -static btVoronoiSimplexSolver sGjkSimplexSolver; -btSimplexSolverInterface& gGjkSimplexSolver = sGjkSimplexSolver; - -void DoublePrecisionDemo::displayCallback(void) -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - collisionWorld->getDispatchInfo().m_debugDraw = &debugDrawer; - - if (collisionWorld) - collisionWorld->performDiscreteCollisionDetection(); - - int i; - - btVector3 worldBoundsMin,worldBoundsMax; - collisionWorld->getBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); - - - ///one way to draw all the contact points is iterating over contact manifolds / points: - int numManifolds = collisionWorld->getDispatcher()->getNumManifolds(); - for (i=0;igetDispatcher()->getManifoldByIndexInternal(i); - const btCollisionObject* obA = static_cast(contactManifold->getBody0()); - const btCollisionObject* obB = static_cast(contactManifold->getBody1()); - contactManifold->refreshContactPoints(obA->getWorldTransform(),obB->getWorldTransform()); - - int numContacts = contactManifold->getNumContacts(); - for (int j=0;jgetContactPoint(j); - - glBegin(GL_LINES); - glColor3f(1, 1, 1); - - btVector3 ptA = pt.getPositionWorldOnA() - m_cameraPosition; - btVector3 ptB = pt.getPositionWorldOnB() - m_cameraPosition; - - glVertex3d(ptA.x(),ptA.y(),ptA.z()); - glVertex3d(ptB.x(),ptB.y(),ptB.z()); - glEnd(); - } - - //you can un-comment out this line, and then all points are removed - //contactManifold->clearManifold(); - } - - btScalar m[16]; - btTransform temp; - - - btVector3 color; - //int i; - for (i=0;idrawOpenGL(m,objects[i].getCollisionShape(),color,getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - objects[1].getWorldTransform().setOrigin(objects[1].getWorldTransform().getOrigin()+btVector3(-VERY_SMALL_INCREMENT,-VERY_SMALL_INCREMENT,0)); - objects[0].getWorldTransform().setOrigin(objects[0].getWorldTransform().getOrigin()+btVector3(VERY_SMALL_INCREMENT,VERY_SMALL_INCREMENT,0)); - - float yStart = 20.f; - float yIncr = 20.f; - char buf[124]; - - glColor3f(0, 0, 0); - - setOrthographicProjection(); - - glRasterPos3f(10.0f,yStart,0); - #ifdef BT_USE_DOUBLE_PRECISION - GLDebugDrawString(10.f,yStart,"Double Precision Mode"); - #else - GLDebugDrawString(10.f,yStart,"Single Precision Mode"); - #endif - yStart += yIncr; - - glRasterPos3f(10.0f,yStart,0); - sprintf(buf,"Movement distance in x and y axis = %lf", VERY_SMALL_INCREMENT); - - GLDebugDrawString(10.f,yStart,buf); - yStart += yIncr; - - glRasterPos3f(10.0f,yStart,0); - btScalar xValue = objects[0].getWorldTransform().getOrigin().x(); - btScalar yValue = objects[0].getWorldTransform().getOrigin().y(); - btScalar zValue = objects[0].getWorldTransform().getOrigin().z(); - sprintf(buf,"Cube 0 location = ( %lf, %lf, %lf )", xValue, yValue, zValue); - GLDebugDrawString(10.f,yStart,buf); - yStart += yIncr; - - xValue = objects[1].getWorldTransform().getOrigin().x(); - yValue = objects[1].getWorldTransform().getOrigin().y(); - zValue = objects[1].getWorldTransform().getOrigin().z(); - glRasterPos3f(10.0f,yStart,0); - sprintf(buf,"Cube 1 location = ( %lf, %lf, %lf )", xValue, yValue, zValue); - GLDebugDrawString(10.f,yStart,buf); - yStart += yIncr; - - glRasterPos3f(10.0f,yStart,0); - GLDebugDrawString(10.f,yStart,"w=toggle wireframe/solid"); - - resetPerspectiveProjection(); - - glFlush(); - glutSwapBuffers(); -} - -void DoublePrecisionDemo::clientResetScene() -{ - objects[0].getWorldTransform().setOrigin(btVector3(LARGE_DISTANCE_FROM_ORIGIN,LARGE_DISTANCE_FROM_ORIGIN,LARGE_DISTANCE_FROM_ORIGIN)); - objects[1].getWorldTransform().setOrigin(btVector3(LARGE_DISTANCE_FROM_ORIGIN-VERY_SMALL_INCREMENT,LARGE_DISTANCE_FROM_ORIGIN-VERY_SMALL_INCREMENT,LARGE_DISTANCE_FROM_ORIGIN)); -} - - - -void DoublePrecisionDemo::updateCamera() -{ - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - - // look at the stationary cube - m_cameraTargetPosition = objects[0].getWorldTransform().getOrigin(); - - m_cameraPosition = m_cameraTargetPosition; - m_cameraPosition[2] = m_cameraTargetPosition[2] - m_cameraDistance; - - //update OpenGL camera settings - glFrustum(-1.0, 1.0, -1.0, 1.0, 1.0, 10000.0); - - // To not loose precision in the rendering process, we shift the object to the origin - gluLookAt(0.0, 0.0, 0.0, - m_cameraTargetPosition[0]-m_cameraPosition[0],m_cameraTargetPosition[1]-m_cameraPosition[1], m_cameraTargetPosition[2]-m_cameraPosition[2], - m_cameraUp.getX(),m_cameraUp.getY(),m_cameraUp.getZ()); - glMatrixMode(GL_MODELVIEW); -} - -void DoublePrecisionDemo::keyboardCallback(unsigned char key, int x, int y) -{ - if (key == 'w') - { - if (m_debugMode & btIDebugDraw::DBG_DrawWireframe) - { - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawWireframe); - m_debugMode |= btIDebugDraw::DBG_DrawAabb; - } - else - { - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawAabb); - m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - } - return; - } - - DemoApplication::keyboardCallback(key, x, y); -} - - diff --git a/Demos/DoublePrecisionDemo/DoublePrecisionDemo.h b/Demos/DoublePrecisionDemo/DoublePrecisionDemo.h deleted file mode 100644 index 7de07fd27..000000000 --- a/Demos/DoublePrecisionDemo/DoublePrecisionDemo.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef COLLISION_INTERFACE_DEMO_H -#define COLLISION_INTERFACE_DEMO_H - -#include "GlutDemoApplication.h" - -///DoublePrecisionDemo shows how to use the collision detection without dynamics (btCollisionWorld/CollisionObject) -class DoublePrecisionDemo : public GlutDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void clientResetScene(); - - virtual void updateCamera(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - -}; - -#endif //COLLISION_INTERFACE_DEMO_H - - diff --git a/Demos/DynamicControlDemo/CMakeLists.txt b/Demos/DynamicControlDemo/CMakeLists.txt deleted file mode 100644 index 04521bcfd..000000000 --- a/Demos/DynamicControlDemo/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppMotorDemo - MotorDemo.cpp - main.cpp -) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppMotorDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppMotorDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppMotorDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/DynamicControlDemo/MotorDemo.cpp b/Demos/DynamicControlDemo/MotorDemo.cpp deleted file mode 100644 index ee2184e28..000000000 --- a/Demos/DynamicControlDemo/MotorDemo.cpp +++ /dev/null @@ -1,468 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library Copyright (c) 2007 Erwin Coumans -Motor Demo - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#include "btBulletDynamicsCommon.h" -#include "GlutStuff.h" -#include "GL_ShapeDrawer.h" - -#include "LinearMath/btIDebugDraw.h" - -#include "GLDebugDrawer.h" -#include "MotorDemo.h" - - -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.785398163397448309616 -#endif - -#ifndef M_PI_8 -#define M_PI_8 0.5 * M_PI_4 -#endif - - -// LOCAL FUNCTIONS - -void vertex(btVector3 &v) -{ - glVertex3d(v.getX(), v.getY(), v.getZ()); -} - -void drawFrame(btTransform &tr) -{ - const float fSize = 1.f; - - glBegin(GL_LINES); - - // x - glColor3f(255.f,0,0); - btVector3 vX = tr*btVector3(fSize,0,0); - vertex(tr.getOrigin()); vertex(vX); - - // y - glColor3f(0,255.f,0); - btVector3 vY = tr*btVector3(0,fSize,0); - vertex(tr.getOrigin()); vertex(vY); - - // z - glColor3f(0,0,255.f); - btVector3 vZ = tr*btVector3(0,0,fSize); - vertex(tr.getOrigin()); vertex(vZ); - - glEnd(); -} - -// /LOCAL FUNCTIONS - - - -#define NUM_LEGS 6 -#define BODYPART_COUNT 2 * NUM_LEGS + 1 -#define JOINT_COUNT BODYPART_COUNT - 1 - -class TestRig -{ - btDynamicsWorld* m_ownerWorld; - btCollisionShape* m_shapes[BODYPART_COUNT]; - btRigidBody* m_bodies[BODYPART_COUNT]; - btTypedConstraint* m_joints[JOINT_COUNT]; - - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape) - { - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,shape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - m_ownerWorld->addRigidBody(body); - - return body; - } - - -public: - TestRig (btDynamicsWorld* ownerWorld, const btVector3& positionOffset, bool bFixed) - : m_ownerWorld (ownerWorld) - { - btVector3 vUp(0, 1, 0); - - // - // Setup geometry - // - float fBodySize = 0.25f; - float fLegLength = 0.45f; - float fForeLegLength = 0.75f; - m_shapes[0] = new btCapsuleShape(btScalar(fBodySize), btScalar(0.10)); - int i; - for ( i=0; isetDamping(0.05, 0.85); - m_bodies[i]->setDeactivationTime(0.8); - //m_bodies[i]->setSleepingThresholds(1.6, 2.5); - m_bodies[i]->setSleepingThresholds(0.5f, 0.5f); - } - - - // - // Setup the constraints - // - btHingeConstraint* hingeC; - //btConeTwistConstraint* coneC; - - btTransform localA, localB, localC; - - for ( i=0; igetWorldTransform().inverse() * m_bodies[0]->getWorldTransform() * localA; - hingeC = new btHingeConstraint(*m_bodies[0], *m_bodies[1+2*i], localA, localB); - hingeC->setLimit(btScalar(-0.75 * M_PI_4), btScalar(M_PI_8)); - //hingeC->setLimit(btScalar(-0.1), btScalar(0.1)); - m_joints[2*i] = hingeC; - m_ownerWorld->addConstraint(m_joints[2*i], true); - - // knee joints - localA.setIdentity(); localB.setIdentity(); localC.setIdentity(); - localA.getBasis().setEulerZYX(0,-fAngle,0); localA.setOrigin(btVector3(btScalar(fCos*(fBodySize+fLegLength)), btScalar(0.), btScalar(fSin*(fBodySize+fLegLength)))); - localB = m_bodies[1+2*i]->getWorldTransform().inverse() * m_bodies[0]->getWorldTransform() * localA; - localC = m_bodies[2+2*i]->getWorldTransform().inverse() * m_bodies[0]->getWorldTransform() * localA; - hingeC = new btHingeConstraint(*m_bodies[1+2*i], *m_bodies[2+2*i], localB, localC); - //hingeC->setLimit(btScalar(-0.01), btScalar(0.01)); - hingeC->setLimit(btScalar(-M_PI_8), btScalar(0.2)); - m_joints[1+2*i] = hingeC; - m_ownerWorld->addConstraint(m_joints[1+2*i], true); - } - } - - virtual ~TestRig () - { - int i; - - // Remove all constraints - for ( i = 0; i < JOINT_COUNT; ++i) - { - m_ownerWorld->removeConstraint(m_joints[i]); - delete m_joints[i]; m_joints[i] = 0; - } - - // Remove all bodies and shapes - for ( i = 0; i < BODYPART_COUNT; ++i) - { - m_ownerWorld->removeRigidBody(m_bodies[i]); - - delete m_bodies[i]->getMotionState(); - - delete m_bodies[i]; m_bodies[i] = 0; - delete m_shapes[i]; m_shapes[i] = 0; - } - } - - btTypedConstraint** GetJoints() {return &m_joints[0];} - -}; - - - -void motorPreTickCallback (btDynamicsWorld *world, btScalar timeStep) -{ - MotorDemo* motorDemo = (MotorDemo*)world->getWorldUserInfo(); - - motorDemo->setMotorTargets(timeStep); - -} - - - -void MotorDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - // Setup the basic world - - m_Time = 0; - m_fCyclePeriod = 2000.f; // in milliseconds - -// m_fMuscleStrength = 0.05f; - // new SIMD solver for joints clips accumulated impulse, so the new limits for the motor - // should be (numberOfsolverIterations * oldLimits) - // currently solver uses 10 iterations, so: - m_fMuscleStrength = 0.5f; - - setCameraDistance(btScalar(5.)); - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax(10000,10000,10000); - m_broadphase = new btAxisSweep3 (worldAabbMin, worldAabbMax); - - m_solver = new btSequentialImpulseConstraintSolver; - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - - m_dynamicsWorld->setInternalTickCallback(motorPreTickCallback,this,true); - - - // Setup a big ground box - { - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(200.),btScalar(10.),btScalar(200.))); - m_collisionShapes.push_back(groundShape); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-10,0)); - localCreateRigidBody(btScalar(0.),groundTransform,groundShape); - } - - // Spawn one ragdoll - btVector3 startOffset(1,0.5,0); - spawnTestRig(startOffset, false); - startOffset.setValue(-2,0.5,0); - spawnTestRig(startOffset, true); - - clientResetScene(); -} - - -void MotorDemo::spawnTestRig(const btVector3& startOffset, bool bFixed) -{ - TestRig* rig = new TestRig(m_dynamicsWorld, startOffset, bFixed); - m_rigs.push_back(rig); -} - -void PreStep() -{ - -} - - - - -void MotorDemo::setMotorTargets(btScalar deltaTime) -{ - - float ms = deltaTime*1000000.; - float minFPS = 1000000.f/60.f; - if (ms > minFPS) - ms = minFPS; - - m_Time += ms; - - // - // set per-frame sinusoidal position targets using angular motor (hacky?) - // - for (int r=0; r(m_rigs[r]->GetJoints()[i]); - btScalar fCurAngle = hingeC->getHingeAngle(); - - btScalar fTargetPercent = (int(m_Time / 1000) % int(m_fCyclePeriod)) / m_fCyclePeriod; - btScalar fTargetAngle = 0.5 * (1 + sin(2 * M_PI * fTargetPercent)); - btScalar fTargetLimitAngle = hingeC->getLowerLimit() + fTargetAngle * (hingeC->getUpperLimit() - hingeC->getLowerLimit()); - btScalar fAngleError = fTargetLimitAngle - fCurAngle; - btScalar fDesiredAngularVel = 1000000.f * fAngleError/ms; - hingeC->enableAngularMotor(true, fDesiredAngularVel, m_fMuscleStrength); - } - } - - -} - -void MotorDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float deltaTime = getDeltaTimeMicroseconds()/1000000.f; - - - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(deltaTime); - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - for (int i=2; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - drawFrame(body->getWorldTransform()); - } - - glFlush(); - - glutSwapBuffers(); -} - -void MotorDemo::displayCallback() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - glutSwapBuffers(); -} - -void MotorDemo::keyboardCallback(unsigned char key, int x, int y) -{ - switch (key) - { - case '+': case '=': - m_fCyclePeriod /= 1.1f; - if (m_fCyclePeriod < 1.f) - m_fCyclePeriod = 1.f; - break; - case '-': case '_': - m_fCyclePeriod *= 1.1f; - break; - case '[': - m_fMuscleStrength /= 1.1f; - break; - case ']': - m_fMuscleStrength *= 1.1f; - break; - default: - DemoApplication::keyboardCallback(key, x, y); - } -} - - - -void MotorDemo::exitPhysics() -{ - - int i; - - for (i=0;igetNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_rigs; - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - -public: - void initPhysics(); - - void exitPhysics(); - - virtual ~MotorDemo() - { - exitPhysics(); - } - - void spawnTestRig(const btVector3& startOffset, bool bFixed); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - MotorDemo* demo = new MotorDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - - void setMotorTargets(btScalar deltaTime); - -}; - - -#endif diff --git a/Demos/EPAPenDepthDemo/PenetrationTestBullet.cpp b/Demos/EPAPenDepthDemo/PenetrationTestBullet.cpp deleted file mode 100644 index ba427db43..000000000 --- a/Demos/EPAPenDepthDemo/PenetrationTestBullet.cpp +++ /dev/null @@ -1,855 +0,0 @@ - -///contribution by Pierre Terdiman to check penetration depth solvers -///see http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=638 - -#ifdef WIN32//for glut.h -#include -#endif - - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#include -#else -#include -#endif - - -#include -#include -#include - -#define VERBOSE_TEXT_ONSCREEN 1 -#ifdef VERBOSE_TEXT_ONSCREEN -#include "GLDebugFont.h" -#endif - -#include "btBulletCollisionCommon.h" - -#include "BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h" -#include "BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h" -#include "BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkEpaPenetrationDepthSolver.h" - - -//We can use the Bullet EPA or sampling penetration depth solver, but comparison might be useful -//#define COMPARE_WITH_SOLID35_AND_OTHER_EPA 1 -#ifdef COMPARE_WITH_SOLID35_AND_OTHER_EPA -#include "../Extras/ExtraSolid35/Solid3EpaPenetrationDepth.h" -#include "../Extras/ExtraSolid35/Solid3JohnsonSimplexSolver.h" -#include "../Extras/EPA/EpaPenetrationDepthSolver.h" -#endif //COMPARE_WITH_SOLID35_AND_OTHER_EPA - -#define USE_ORIGINAL 1 -#ifndef USE_ORIGINAL -#include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h" -#endif //USE_ORIGINAL - -static bool gRefMode = false; -static int gMethod = 0; -static int gLastUsedMethod = -1; -static int gNumGjkIterations = -1; -static int gLastDegenerateSimplex = -1; - -static const float gDisp = 0.01f; -static const float gCamSpeed = 0.1f; -static btVector3 Eye(3.0616338f, 1.1985892f, 2.5769043f); -static btVector3 Dir(-0.66853905,-0.14004262,-0.73037237); -static btVector3 N; -static int mx = 0; -static int my = 0; -static int glutScreenHeight = 512; -static int glutScreenWidth = 512; - -static void DrawLine(const btVector3& p0, const btVector3& p1, const btVector3& color, float line_width) -{ - glDisable(GL_LIGHTING); - glLineWidth(line_width); - glColor4f(color.x(), color.y(), color.z(), 1.0f); - btVector3 tmp[] = {p0, p1}; - glEnableClientState(GL_VERTEX_ARRAY); -#ifndef BT_USE_DOUBLE_PRECISION - glVertexPointer(3, GL_FLOAT, sizeof(btVector3), &tmp[0].x()); -#else - glVertexPointer(3, GL_DOUBLE, sizeof(btVector3), &tmp[0].x()); -#endif - glDrawArrays(GL_LINES, 0, 2); - glDisableClientState(GL_VERTEX_ARRAY); - glColor4f(1.0f, 1.0f, 1.0f, 1.0f); - glEnable(GL_LIGHTING); -} - -void DrawTriangle(const btVector3& p0, const btVector3& p1, const btVector3& p2, const btVector3& color) -{ -// glDisable(GL_LIGHTING); - glColor4f(color.x(), color.y(), color.z(), 1.0f); - btVector3 tmp[] = {p0, p1, p2}; - glEnableClientState(GL_VERTEX_ARRAY); -#ifndef BT_USE_DOUBLE_PRECISION - glVertexPointer(3, GL_FLOAT, sizeof(btVector3), &tmp[0].x()); -#else - glVertexPointer(3, GL_DOUBLE, sizeof(btVector3), &tmp[0].x()); -#endif - glDrawArrays(GL_TRIANGLES, 0, 3); - glDisableClientState(GL_VERTEX_ARRAY); -// glColor4f(1.0f, 1.0f, 1.0f, 1.0f); -// glEnable(GL_LIGHTING); -} - -class MyPoly -{ - public: - MyPoly() : mNbVerts(0), mIndices(NULL) {} - ~MyPoly() { delete[]mIndices; } - - short mNbVerts; - char* mIndices; - float mPlane[4]; -}; - -class MyConvex -{ - public: - MyConvex(); - ~MyConvex(); - - bool LoadFromFile(const char* filename); - void Render(bool only_wireframe, const btVector3& wire_color) const; - void Project(const btVector3& dir, float& min, float& max) const; - - int mNbVerts; - btVector3* mVerts; - int mNbPolys; - MyPoly* mPolys; - btTransform mTransform; -}; - -MyConvex::MyConvex() : - mNbVerts (0), - mVerts (NULL), - mNbPolys (0), - mPolys (NULL) -{ - mTransform.setIdentity(); -} - -MyConvex::~MyConvex() -{ - delete[]mPolys; - delete[]mVerts; -} - -bool MyConvex::LoadFromFile(const char* filename) -{ - FILE* fp = fopen(filename, "rb"); - if(!fp) return false; - - fread(&mNbVerts, sizeof(int), 1, fp); - - int i; - - mVerts = new btVector3[mNbVerts]; - for( i=0;i max) max = dp; - } - if(min>max) - { - float tmp = min; - min = max; - max = tmp; - } -} - -static btVector3 gNormal; -static btVector3 gPoint; -static float gDepth; - - struct MyResult : public btDiscreteCollisionDetectorInterface::Result - { - virtual void setShapeIdentifiersA(int partId0, int index0) - { - } - virtual void setShapeIdentifiersB(int partId1, int index1) - { - } - - virtual void addContactPoint(const btVector3& normalOnBInWorld, const btVector3& pointInWorld, btScalar depth) - { - gNormal = normalOnBInWorld; - gPoint = pointInWorld; - gDepth = depth; - } - }; - - - -static bool TestEPA(const MyConvex& hull0, const MyConvex& hull1) -{ - static btSimplexSolverInterface simplexSolver; -#ifdef COMPARE_WITH_SOLID35_AND_OTHER_EPA -// static Solid3JohnsonSimplexSolver simplexSolver2; -#endif //COMPARE_WITH_SOLID35_AND_OTHER_EPA - - simplexSolver.reset(); - - btConvexHullShape convexA((btScalar*)hull0.mVerts, hull0.mNbVerts, sizeof(btVector3)); - btConvexHullShape convexB((btScalar*)hull1.mVerts, hull1.mNbVerts, sizeof(btVector3)); - - static btGjkEpaPenetrationDepthSolver Solver0; - static btMinkowskiPenetrationDepthSolver Solver1; - -#ifdef COMPARE_WITH_SOLID35_AND_OTHER_EPA - static Solid3EpaPenetrationDepth Solver2; - static EpaPenetrationDepthSolver Solver3; -#endif - - - btConvexPenetrationDepthSolver* Solver = NULL ; - if(gMethod==0) - Solver = &Solver0; - else if(gMethod==1) - Solver = &Solver1; -#ifdef COMPARE_WITH_SOLID35_AND_OTHER_EPA - else if(gMethod==2) - Solver = &Solver2; - else - Solver = &Solver3; -#endif //COMPARE_WITH_SOLID35_AND_OTHER_EPA - - -#ifdef USE_ORIGINAL - - btGjkPairDetector GJK(&convexA, &convexB, &simplexSolver, Solver); - GJK.m_catchDegeneracies = 1; - convexA.setMargin(0.01f); - convexB.setMargin(0.01f); - - btDiscreteCollisionDetectorInterface::ClosestPointInput input; - input.m_transformA = hull0.mTransform; - input.m_transformB = hull1.mTransform; - - - MyResult output; - GJK.getClosestPoints(input, output, 0); - gLastUsedMethod = GJK.m_lastUsedMethod; - gNumGjkIterations = GJK.m_curIter; - gLastDegenerateSimplex= GJK.m_degenerateSimplex; -#else - MyResult output; - btVector3 witnesses[2]; - btVector3 normal; - btScalar depth; - - btGjkEpaSolver::sResults results; - btScalar radialMargin = 0.01f; - - btGjkEpaSolver::Collide(&convexA,hull0.mTransform, - &convexB,hull1.mTransform, - radialMargin, - results); - if (results.depth>0) - { - output.addContactPoint(results.normal,results.witnesses[1],-results.depth); - } -#endif - return true; -} - -static bool TestSepAxis(const btVector3& sep_axis, const MyConvex& hull0, const MyConvex& hull1, float& depth) -{ - float Min0,Max0; - float Min1,Max1; - hull0.Project(sep_axis, Min0, Max0); - hull1.Project(sep_axis, Min1, Max1); - - if(Max0=0.0f); - float d1 = Max1 - Min0; - btAssert(d1>=0.0f); - depth = d01e-6 || fabsf(v.y())>1e-6 || fabsf(v.z())>1e-6) return false; - return true; -} - -static bool ReferenceCode(const MyConvex& hull0, const MyConvex& hull1, float& dmin, btVector3& sep) -{ - dmin = FLT_MAX; - - int i; - - // Test normals from hull0 - for( i=0;i0.0f) sep = -sep; - - return true; -} - - - -static MyConvex gConvex0; -static MyConvex gConvex1; - -static void KeyboardCallback(unsigned char key, int x, int y) -{ - switch (key) - { - case 27: exit(0); break; - - case 'R': - case 'r': - gRefMode = !gRefMode; - break; - - case ' ': - gMethod++; -#ifdef COMPARE_WITH_SOLID35_AND_OTHER_EPA - if(gMethod==4) gMethod=0; -#else - if(gMethod==2) gMethod=0; -#endif - break; - - case '4': - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() + btVector3(-gDisp,0,0)); - break; - case '7': - gConvex0.mTransform.setRotation(gConvex0.mTransform.getRotation()*btQuaternion(btVector3(1,0,0),0.01)); - break; - case '9': - gConvex0.mTransform.setRotation(gConvex0.mTransform.getRotation()*btQuaternion(btVector3(1,0,0),-0.01)); - break; - case '1': - gConvex0.mTransform.setRotation(gConvex0.mTransform.getRotation()*btQuaternion(btVector3(0,1,0),0.01)); - break; - case '3': - gConvex0.mTransform.setRotation(gConvex0.mTransform.getRotation()*btQuaternion(btVector3(0,1,0),-0.01)); - break; - case '5': - gConvex0.mTransform.setRotation(gConvex0.mTransform.getRotation()*btQuaternion(btVector3(0,0,1),0.01)); - break; - - case '6': - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() + btVector3(gDisp,0,0)); - break; - case '8': - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() + btVector3(0,gDisp,0)); - break; - case '2': - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() + btVector3(0,-gDisp,0)); - break; - - case 101: Eye += Dir * gCamSpeed; break; - case 103: Eye -= Dir * gCamSpeed; break; - case 100: Eye -= N * gCamSpeed; break; - case 102: Eye += N * gCamSpeed; break; - } -} - -static void ArrowKeyCallback(int key, int x, int y) -{ - KeyboardCallback(key,x,y); -} - -static void MouseCallback(int button, int state, int x, int y) -{ - mx = x; - my = y; -} - -static const float NxPiF32 = 3.141592653589793f; - -float degToRad(float a) - { - return (float)0.01745329251994329547 * a; - } - -class NxQuat - { - public: - NxQuat(){} - - NxQuat(const float angle, const btVector3 & axis) - { - x = axis.x(); - y = axis.y(); - z = axis.z(); - - const float i_length = 1.0f / sqrtf( x*x + y*y + z*z ); - x = x * i_length; - y = y * i_length; - z = z * i_length; - - float Half = degToRad(angle * 0.5f); - - w = cosf(Half); - const float sin_theta_over_two = sinf(Half ); - x = x * sin_theta_over_two; - y = y * sin_theta_over_two; - z = z * sin_theta_over_two; - } - - void multiply(const NxQuat& left, const btVector3& right) - { - float a,b,c,d; - - a = - left.x*right.x() - left.y*right.y() - left.z *right.z(); - b = left.w*right.x() + left.y*right.z() - right.y()*left.z; - c = left.w*right.y() + left.z*right.x() - right.z()*left.x; - d = left.w*right.z() + left.x*right.y() - right.x()*left.y; - - w = a; - x = b; - y = c; - z = d; - } - - void rotate(btVector3 & v) const - { - NxQuat myInverse; - myInverse.x = -x; - myInverse.y = -y; - myInverse.z = -z; - myInverse.w = w; - - NxQuat left; - left.multiply(*this,v); - float vx = left.w*myInverse.x + myInverse.w*left.x + left.y*myInverse.z - myInverse.y*left.z; - float vy = left.w*myInverse.y + myInverse.w*left.y + left.z*myInverse.x - myInverse.z*left.x; - float vz = left.w*myInverse.z + myInverse.w*left.z + left.x*myInverse.y - myInverse.x*left.y; - v.setValue(vx, vy, vz); - } - - float x,y,z,w; -}; - - -static void MotionCallback(int x, int y) -{ - int dx = mx - x; - int dy = my - y; - - Dir = Dir.normalize(); - N = Dir.cross(btVector3(0,1,0)); - - NxQuat qx(NxPiF32 * dx * 20/ 180.0f, btVector3(0,1,0)); - qx.rotate(Dir); - NxQuat qy(NxPiF32 * dy * 20/ 180.0f, N); - qy.rotate(Dir); - - mx = x; - my = y; -} - -static void RenderCallback() -{ - // Clear buffers - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - // Setup camera - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - gluPerspective(60.0f, ((float)glutGet(GLUT_WINDOW_WIDTH))/((float)glutGet(GLUT_WINDOW_HEIGHT)), 1.0f, 10000.0f); - gluLookAt(Eye.x(), Eye.y(), Eye.z(), Eye.x() + Dir.x(), Eye.y() + Dir.y(), Eye.z() + Dir.z(), 0.0f, 1.0f, 0.0f); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - glEnable(GL_LIGHTING); - - //clear previous frames result - gNormal.setValue(10,0,0); - gPoint.setValue(0,0,0); - gDepth = 999.999; - gLastUsedMethod = -1; - gNumGjkIterations = -1; - - - TestEPA(gConvex0, gConvex1); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - btVector3 RefSep(btScalar(0.), btScalar(0.), btScalar(0.)); - float RefDMin=0.f; - bool RefResult = false; - if(gRefMode) - RefResult = ReferenceCode(gConvex0, gConvex1, RefDMin, RefSep); - -// DrawLine(gPoint, gPoint + gNormal*20.0f, btVector3(1,0,0), 2.0f); -// printf("%f: %f %f %f\n", gDepth, gNormal.x(), gNormal.y(), gNormal.z()); - -#ifdef VERBOSE_TEXT_ONSCREEN - glColor3f(255.f, 255.f, 255.f); - - setOrthographicProjection(); - float xOffset = 10.f; - float yStart = 20.f; - float yIncr = 20.f; - char buf[124]; - - sprintf(buf,"gDepth=%f: gNormal=(%f %f %f)\n", gDepth, gNormal.x(), gNormal.y(), gNormal.z()); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - sprintf(buf,"num GJK iterations =%d\n", gNumGjkIterations); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - sprintf(buf,"gLastUsedMethod=%d\n", gLastUsedMethod); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - - - - - if (gLastUsedMethod >= 3) - { - switch ( gMethod) - { - case 0: - sprintf(buf,"Bullet GjkEpa Penetration depth solver (zlib free\n" ); - break; - case 1: - sprintf(buf,"Bullet Minkowski sampling Penetration depth solver\n" ); - break; - case 2: - sprintf(buf,"Solid35 EPA Penetration depth solver\n" ); - break; - case 3: - sprintf(buf,"EPA Penetration depth solver (Experimental/WorkInProgress, zlib free\n" ); - break; - default: - sprintf(buf,"Unknown Penetration Depth\n" ); - } - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - } else - { - sprintf(buf,"Hybrid GJK method %d\n", gLastUsedMethod); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - } - - if (gLastDegenerateSimplex) - { - sprintf(buf,"DegenerateSimplex %d\n", gLastDegenerateSimplex); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - } - - - - - resetPerspectiveProjection(); -#endif //VERBOSE_TEXT_ONSCREEN - - btVector3 color(0,0,0); - gConvex0.Render(false, color); - gConvex1.Render(false, color); - - if(gDepth<0.0f) - { - btTransform Saved = gConvex0.mTransform; - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() - btVector3(gNormal*gDepth)); - gConvex0.Render(true, btVector3(1.0f, 0.5f, 0.0f)); - gConvex0.mTransform = Saved; - } - else - { - DrawLine(gPoint, gPoint + gNormal, btVector3(0,1,0), 2.0f); - } - - if(RefResult & gRefMode) - { - btTransform Saved = gConvex0.mTransform; - gConvex0.mTransform.setOrigin(gConvex0.mTransform.getOrigin() + btVector3(RefSep*RefDMin)); - gConvex0.Render(true, btVector3(0.0f, 0.5f, 1.0f)); - gConvex0.mTransform = Saved; - } - - glutSwapBuffers(); -} - -static void ReshapeCallback(int width, int height) -{ - glViewport(0, 0, width, height); -} - -static void IdleCallback() -{ - glutPostRedisplay(); -} - -int main(int argc, char** argv) -{ - // Initialize Glut - glutInit(&argc, argv); - glutInitWindowSize(glutScreenWidth, glutScreenHeight); - glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); - int mainHandle = glutCreateWindow("TestBullet"); - glutSetWindow(mainHandle); - glutDisplayFunc(RenderCallback); - glutReshapeFunc(ReshapeCallback); - glutIdleFunc(IdleCallback); - glutKeyboardFunc(KeyboardCallback); - glutSpecialFunc(ArrowKeyCallback); - glutMouseFunc(MouseCallback); - glutMotionFunc(MotionCallback); - MotionCallback(0,0); - - // Setup default render states - glClearColor(0.3f, 0.4f, 0.5f, 1.0); - glEnable(GL_DEPTH_TEST); - glEnable(GL_COLOR_MATERIAL); - glEnable(GL_CULL_FACE); - - // Setup lighting - glEnable(GL_LIGHTING); - float AmbientColor[] = { 0.0f, 0.1f, 0.2f, 0.0f }; glLightfv(GL_LIGHT0, GL_AMBIENT, AmbientColor); - float DiffuseColor[] = { 1.0f, 1.0f, 1.0f, 0.0f }; glLightfv(GL_LIGHT0, GL_DIFFUSE, DiffuseColor); - float SpecularColor[] = { 0.0f, 0.0f, 0.0f, 0.0f }; glLightfv(GL_LIGHT0, GL_SPECULAR, SpecularColor); - float Position[] = { -10.0f, 1000.0f, -4.0f, 1.0f }; glLightfv(GL_LIGHT0, GL_POSITION, Position); - glEnable(GL_LIGHT0); - - // - bool Status = gConvex0.LoadFromFile("convex0.bin"); - if(!Status) - { - Status = gConvex0.LoadFromFile("../../convex0.bin"); - if(!Status) - { - printf("Failed to load object!\n"); - exit(0); - } - } - Status = gConvex1.LoadFromFile("convex0.bin"); - if(!Status) - { - Status = gConvex1.LoadFromFile("../../convex0.bin"); - if(!Status) - { - printf("Failed to load object!\n"); - exit(0); - } - } - -// gConvex0.mTransform.setOrigin(btVector3(1.0f, 1.0f, 0.0f)); - gConvex0.mTransform.setOrigin(btVector3(0.20000069f, 0.95000005f, 0.0f)); - - // Run - glutMainLoop(); - - return 0; -} diff --git a/Demos/FeatherstoneMultiBodyDemo/CMakeLists.txt b/Demos/FeatherstoneMultiBodyDemo/CMakeLists.txt deleted file mode 100644 index cb8c544a7..000000000 --- a/Demos/FeatherstoneMultiBodyDemo/CMakeLists.txt +++ /dev/null @@ -1,70 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppFeatherstoneMultiBodyDemo - main.cpp - FeatherstoneMultiBodyDemo.cpp - FeatherstoneMultiBodyDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppFeatherstoneMultiBodyDemo - main.cpp - FeatherstoneMultiBodyDemo.cpp - FeatherstoneMultiBodyDemo.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppFeatherstoneMultiBodyDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32FeatherstoneMultiBodyDemo.cpp - FeatherstoneMultiBodyDemo.cpp - FeatherstoneMultiBodyDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/FeatherstoneMultiBodyDemo/FeatherstoneMultiBodyDemo.cpp b/Demos/FeatherstoneMultiBodyDemo/FeatherstoneMultiBodyDemo.cpp deleted file mode 100644 index 720054914..000000000 --- a/Demos/FeatherstoneMultiBodyDemo/FeatherstoneMultiBodyDemo.cpp +++ /dev/null @@ -1,575 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2013 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///experimental support for Featherstone multi body (articulated hierarchies) - - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 -float friction = 1.; - - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - - -#define START_POS_X -5 -//#define START_POS_Y 12 -#define START_POS_Y 2 -#define START_POS_Z -3 - -#include "FeatherstoneMultiBodyDemo.h" - -#include "BulletDynamics/Featherstone/btMultiBody.h" -#include "BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h" -#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "BulletDynamics/Featherstone/btMultiBodyLink.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" -#include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" - - -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" - -#include //printf debugging -#include "GLDebugDrawer.h" -#include "LinearMath/btAabbUtil2.h" - -static GLDebugDrawer gDebugDraw; -//btVector3 scaling(0.1,0.1,0.1); -float scaling = 0.4f; - - -void FeatherstoneMultiBodyDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - btVector3 aabbMin(1,1,1); - btVector3 aabbMax(2,2,2); - - - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void FeatherstoneMultiBodyDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - - - - -void FeatherstoneMultiBodyDemo::initPhysics() -{ - //m_idle=true; - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(100.*scaling)); - this->m_azi = 130; - ///collision configuration contains default setup for memory, collision setup - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - m_broadphase = new btDbvtBroadphase(); - - //Use the btMultiBodyConstraintSolver for Featherstone btMultiBody support - btMultiBodyConstraintSolver* sol = new btMultiBodyConstraintSolver; - m_solver = sol; - - //use btMultiBodyDynamicsWorld for Featherstone btMultiBody support - btMultiBodyDynamicsWorld* world = new btMultiBodyDynamicsWorld(m_dispatcher,m_broadphase,sol,m_collisionConfiguration); - m_dynamicsWorld = world; - m_dynamicsWorld->setDebugDrawer(&gDebugDraw); - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - ///create a few basic rigid bodies - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); - //groundShape->initializePolyhedralFeatures(); -// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,00)); - - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - if (1) - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btBoxShape* colShape = new btBoxShape(btVector3(1,1,1)); - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - float start_x = START_POS_X - ARRAY_SIZE_X/2; - float start_y = START_POS_Y; - float start_z = START_POS_Z - ARRAY_SIZE_Z/2; - - for (int k=0;kaddRigidBody(body);//,1,1+2); - } - } - } - } - - btMultiBodySettings settings; - settings.m_numLinks = 2; - settings.m_basePosition = btVector3 (60,29.5,-2)*scaling; - settings.m_isFixedBase = false; - settings.m_disableParentCollision = true;//the self-collision has conflicting/non-resolvable contact normals - - settings.m_usePrismatic = true; - settings.m_canSleep = true; - settings.m_createConstraints = true; - - //btMultiBody* createFeatherstoneMultiBody(class btMultiBodyDynamicsWorld* world, int numLinks, const btVector3& basePosition,bool isFixedBase, bool usePrismatic, bool canSleep, bool createConstraints); - - btMultiBody* mbA = createFeatherstoneMultiBody(world, settings); - - settings.m_numLinks = 10; - settings.m_basePosition = btVector3 (0,29.5,-settings.m_numLinks*4.f); - settings.m_isFixedBase = true; - settings.m_usePrismatic = false; - - btMultiBody* mbB = createFeatherstoneMultiBody(world, settings); - settings.m_basePosition = btVector3 (-20*scaling,29.5*scaling,-settings.m_numLinks*4.f*scaling); - settings.m_isFixedBase = false; - btMultiBody* mbC = createFeatherstoneMultiBody(world, settings); - - settings.m_basePosition = btVector3 (-20,9.5,-settings.m_numLinks*4.f); - settings.m_isFixedBase = true; - settings.m_usePrismatic = true; - settings.m_disableParentCollision = true; - - btMultiBody* mbPrim= createFeatherstoneMultiBody(world, settings); - - //btMultiBody* mbB = createFeatherstoneMultiBody(world, 15, btVector3 (0,29.5,-2), false,true,true); -#if 0 - if (0)//!useGroundShape && i==4) - { - //attach two multibody using a point2point constraint - - //btVector3 pivotInAworld(0,20,46); - btVector3 pivotInAworld(-0.3,29,-3.5); - - int linkA = -1; - int linkB = -1; - - btVector3 pivotInAlocal = mbA->worldPosToLocal(linkA, pivotInAworld); - btVector3 pivotInBlocal = mbB->worldPosToLocal(linkB, pivotInAworld); - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(mbA,linkA,mbB,linkB,pivotInAlocal,pivotInBlocal); - world->addMultiBodyConstraint(p2p); - } -#endif - bool testRemoveLinks = false; - if (testRemoveLinks) - { - while (mbA->getNumLinks()) - { - btCollisionObject* col = mbA->getLink(mbA->getNumLinks()-1).m_collider; - m_dynamicsWorld->removeCollisionObject(col); - delete col; - mbA->setNumLinks(mbA->getNumLinks()-1); - } - } - - if (1)//useGroundShape - { - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body,1,1+2);//,1,1+2); - } - - -} - -btMultiBody* FeatherstoneMultiBodyDemo::createFeatherstoneMultiBody(class btMultiBodyDynamicsWorld* world, const btMultiBodySettings& settings) -{ - - int n_links = settings.m_numLinks; - float mass = 13.5*scaling; - btVector3 inertia = btVector3 (91,344,253)*scaling*scaling; - - - bool multiDof = false; - btMultiBody * bod = new btMultiBody(n_links, mass, inertia, settings.m_isFixedBase, settings.m_canSleep,multiDof); -// bod->setHasSelfCollision(false); - - //btQuaternion orn(btVector3(0,0,1),-0.25*SIMD_HALF_PI);//0,0,0,1); - btQuaternion orn(0,0,0,1); - bod->setBasePos(settings.m_basePosition); - bod->setWorldToBaseRot(orn); - btVector3 vel(0,0,0); - bod->setBaseVel(vel); - - { - - btVector3 joint_axis_hinge(1,0,0); - btVector3 joint_axis_prismatic(0,0,1); - btQuaternion parent_to_child = orn.inverse(); - btVector3 joint_axis_child_prismatic = quatRotate(parent_to_child ,joint_axis_prismatic); - btVector3 joint_axis_child_hinge = quatRotate(parent_to_child , joint_axis_hinge); - - int this_link_num = -1; - int link_num_counter = 0; - - - - btVector3 pos = btVector3 (0,0,9.0500002)*scaling; - - btVector3 joint_axis_position = btVector3 (0,0,4.5250001)*scaling; - - for (int i=0;i0) - initial_joint_angle = -0.06f; - - const int child_link_num = link_num_counter++; - - - - if (settings.m_usePrismatic)// && i==(n_links-1)) - { - bod->setupPrismatic(child_link_num, mass, inertia, this_link_num, - parent_to_child, joint_axis_child_prismatic, quatRotate(parent_to_child , pos),btVector3(0,0,0),settings.m_disableParentCollision); - - } else - { - bod->setupRevolute(child_link_num, mass, inertia, this_link_num,parent_to_child, joint_axis_child_hinge, - joint_axis_position,quatRotate(parent_to_child , (pos - joint_axis_position)),settings.m_disableParentCollision); - } - bod->setJointPos(child_link_num, initial_joint_angle); - this_link_num = i; - - if (0)//!useGroundShape && i==4) - { - btVector3 pivotInAworld(0,20,46); - btVector3 pivotInAlocal = bod->worldPosToLocal(i, pivotInAworld); - btVector3 pivotInBworld = pivotInAworld; - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(bod,i,&btTypedConstraint::getFixedBody(),pivotInAlocal,pivotInBworld); - world->addMultiBodyConstraint(p2p); - } - //add some constraint limit - if (settings.m_usePrismatic) - { - // btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,n_links-1,2,3); - - if (settings.m_createConstraints) - { - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } else - { - if (settings.m_createConstraints) - { - if (1) - { - btMultiBodyJointMotor* con = new btMultiBodyJointMotor(bod,i,0,0,500000); - world->addMultiBodyConstraint(con); - } - - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } - } - } - - //add a collider for the base - { - - btAlignedObjectArray world_to_local; - world_to_local.resize(n_links+1); - - btAlignedObjectArray local_origin; - local_origin.resize(n_links+1); - world_to_local[0] = bod->getWorldToBaseRot(); - local_origin[0] = bod->getBasePos(); - //float halfExtents[3]={7.5,0.05,4.5}; - float halfExtents[3]={7.5,0.45,4.5}; - { - - float pos[4]={local_origin[0].x(),local_origin[0].y(),local_origin[0].z(),1}; - float quat[4]={-world_to_local[0].x(),-world_to_local[0].y(),-world_to_local[0].z(),world_to_local[0].w()}; - - - if (1) - { - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - btMultiBodyLinkCollider* col= new btMultiBodyLinkCollider(bod,-1); - col->setCollisionShape(box); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(local_origin[0]); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - world->addCollisionObject(col, 2,1+2); - col->setFriction(friction); - bod->setBaseCollider(col); - } - } - - - for (int i=0;igetNumLinks();i++) - { - const int parent = bod->getParent(i); - world_to_local[i+1] = bod->getParentToLocalRot(i) * world_to_local[parent+1]; - local_origin[i+1] = local_origin[parent+1] + (quatRotate(world_to_local[i+1].inverse() , bod->getRVector(i))); - } - - - for (int i=0;igetNumLinks();i++) - { - - btVector3 posr = local_origin[i+1]; - float pos[4]={posr.x(),posr.y(),posr.z(),1}; - - float quat[4]={-world_to_local[i+1].x(),-world_to_local[i+1].y(),-world_to_local[i+1].z(),world_to_local[i+1].w()}; - - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - btMultiBodyLinkCollider* col = new btMultiBodyLinkCollider(bod,i); - - col->setCollisionShape(box); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(posr); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - col->setFriction(friction); - world->addCollisionObject(col,2,1+2); - - bod->getLink(i).m_collider=col; - //app->drawBox(halfExtents, pos,quat); - } - - } - - - world->addMultiBody(bod); - - return bod; -} - -extern btScalar gOldPickingDist; -void FeatherstoneMultiBodyDemo::mouseMotionFunc(int x,int y) -{ - if (m_pickingMultiBodyPoint2Point) - { - //keep it at the same picking distance - - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; - btVector3 oldPivotInB = m_pickingMultiBodyPoint2Point->getPivotInB(); - btVector3 newPivotB; - if (m_ortho) - { - newPivotB = oldPivotInB; - newPivotB.setX(newRayTo.getX()); - newPivotB.setY(newRayTo.getY()); - } else - { - rayFrom = m_cameraPosition; - btVector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= gOldPickingDist; - - newPivotB = rayFrom + dir; - } - m_pickingMultiBodyPoint2Point->setPivotInB(newPivotB); - } - DemoApplication::mouseMotionFunc(x,y); -} - -void FeatherstoneMultiBodyDemo::removePickingConstraint() -{ - if (m_pickingMultiBodyPoint2Point) - { - m_pickingMultiBodyPoint2Point->getMultiBodyA()->setCanSleep(true); - - btMultiBodyDynamicsWorld* world = (btMultiBodyDynamicsWorld*) m_dynamicsWorld; - world->removeMultiBodyConstraint(m_pickingMultiBodyPoint2Point); - delete m_pickingMultiBodyPoint2Point; - m_pickingMultiBodyPoint2Point = 0; - } - - DemoApplication::removePickingConstraint(); - -} - -void FeatherstoneMultiBodyDemo::pickObject(const btVector3& pickPos, const class btCollisionObject* hitObj) -{ - btVector3 pivotInA(0,0,0); - btMultiBodyLinkCollider* multiCol = (btMultiBodyLinkCollider*)btMultiBodyLinkCollider::upcast(hitObj); - if (multiCol && multiCol->m_multiBody) - { - multiCol->m_multiBody->setCanSleep(false); - - btVector3 pivotInA = multiCol->m_multiBody->worldPosToLocal(multiCol->m_link, pickPos); - - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(multiCol->m_multiBody,multiCol->m_link,0,pivotInA,pickPos); - //if you add too much energy to the system, causing high angular velocities, simulation 'explodes' - //see also http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=4&t=949 - //so we try to avoid it by clamping the maximum impulse (force) that the mouse pick can apply - //it is not satisfying, hopefully we find a better solution (higher order integrator, using joint friction using a zero-velocity target motor with limited force etc?) - - p2p->setMaxAppliedImpulse(200*scaling); - - btMultiBodyDynamicsWorld* world = (btMultiBodyDynamicsWorld*) m_dynamicsWorld; - world->addMultiBodyConstraint(p2p); - m_pickingMultiBodyPoint2Point =p2p; - } else - { - DemoApplication::pickObject(pickPos,hitObj); - } -} - - - -void FeatherstoneMultiBodyDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void FeatherstoneMultiBodyDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - virtual void mouseMotionFunc(int x,int y); - virtual void removePickingConstraint(); - virtual void pickObject(const btVector3& pickPos, const class btCollisionObject* hitObj); - class btMultiBodyPoint2Point* m_pickingMultiBodyPoint2Point; - - btMultiBody* createFeatherstoneMultiBody(class btMultiBodyDynamicsWorld* world, const btMultiBodySettings& settings); - - public: - - FeatherstoneMultiBodyDemo() - :m_pickingMultiBodyPoint2Point(0) - { - } - virtual ~FeatherstoneMultiBodyDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - FeatherstoneMultiBodyDemo* demo = new FeatherstoneMultiBodyDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //FEATHERSTONE_MULTIBODY_DEMO_H - diff --git a/Demos/FeatherstoneMultiBodyDemo/Makefile.am b/Demos/FeatherstoneMultiBodyDemo/Makefile.am deleted file mode 100644 index 00e92e685..000000000 --- a/Demos/FeatherstoneMultiBodyDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=FeatherstoneMultiBodyDemo - -FeatherstoneMultiBodyDemo_SOURCES=FeatherstoneMultiBodyDemo.cpp FeatherstoneMultiBodyDemo.h main.cpp -FeatherstoneMultiBodyDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -FeatherstoneMultiBodyDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/FeatherstoneMultiBodyDemo/Win32FeatherstoneMultiBodyDemo.cpp b/Demos/FeatherstoneMultiBodyDemo/Win32FeatherstoneMultiBodyDemo.cpp deleted file mode 100644 index 2b287c698..000000000 --- a/Demos/FeatherstoneMultiBodyDemo/Win32FeatherstoneMultiBodyDemo.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2013 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///experimental support for Featherstone multi body (articulated hierarchies) - - -#include "FeatherstoneMultiBodyDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new FeatherstoneMultiBodyDemo(); -} - -#endif diff --git a/Demos/FeatherstoneMultiBodyDemo/main.cpp b/Demos/FeatherstoneMultiBodyDemo/main.cpp deleted file mode 100644 index d72c107be..000000000 --- a/Demos/FeatherstoneMultiBodyDemo/main.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2013 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///experimental support for Featherstone multi body (articulated hierarchies) - - -#include "FeatherstoneMultiBodyDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - - -int main(int argc,char** argv) -{ - - FeatherstoneMultiBodyDemo demo; - demo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&demo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/ForkLiftDemo/CMakeLists.txt b/Demos/ForkLiftDemo/CMakeLists.txt deleted file mode 100644 index d4f067710..000000000 --- a/Demos/ForkLiftDemo/CMakeLists.txt +++ /dev/null @@ -1,44 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - ADD_EXECUTABLE(AppForkLiftDemo - ForkLiftDemo.cpp - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ELSE() - ADD_EXECUTABLE(AppForkLiftDemo - ForkLiftDemo.cpp - main.cpp - ) -ENDIF() - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppForkLiftDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppForkLiftDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppForkLiftDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/ForkLiftDemo/ForkLiftDemo.h b/Demos/ForkLiftDemo/ForkLiftDemo.h deleted file mode 100644 index 3489f3732..000000000 --- a/Demos/ForkLiftDemo/ForkLiftDemo.h +++ /dev/null @@ -1,115 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef FORKLIFT_DEMO_H -#define FORKLIFT_DEMO_H - -class btVehicleTuning; -struct btVehicleRaycaster; -class btCollisionShape; - -#include "BulletDynamics/Vehicle/btRaycastVehicle.h" -#include "BulletDynamics/ConstraintSolver/btHingeConstraint.h" -#include "BulletDynamics/ConstraintSolver/btSliderConstraint.h" - -#include "GlutDemoApplication.h" - -///VehicleDemo shows how to setup and use the built-in raycast vehicle -class ForkLiftDemo : public GlutDemoApplication -{ - public: - - btRigidBody* m_carChassis; - -//---------------------------- - btRigidBody* m_liftBody; - btVector3 m_liftStartPos; - btHingeConstraint* m_liftHinge; - - btRigidBody* m_forkBody; - btVector3 m_forkStartPos; - btSliderConstraint* m_forkSlider; - - btRigidBody* m_loadBody; - btVector3 m_loadStartPos; - - void lockLiftHinge(void); - void lockForkSlider(void); - - bool m_useDefaultCamera; -//---------------------------- - - - btAlignedObjectArray m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - class btTriangleIndexVertexArray* m_indexVertexArrays; - - btVector3* m_vertices; - - - btRaycastVehicle::btVehicleTuning m_tuning; - btVehicleRaycaster* m_vehicleRayCaster; - btRaycastVehicle* m_vehicle; - btCollisionShape* m_wheelShape; - - float m_cameraHeight; - - float m_minCameraDistance; - float m_maxCameraDistance; - - - ForkLiftDemo(); - - virtual ~ForkLiftDemo(); - - virtual void clientMoveAndDisplay(); - - virtual void resetForklift(); - - virtual void clientResetScene(); - - virtual void displayCallback(); - - ///a very basic camera following the vehicle - virtual void updateCamera(); - - virtual void specialKeyboard(int key, int x, int y); - - virtual void specialKeyboardUp(int key, int x, int y); - - void renderme(); - - void initPhysics(); - void exitPhysics(); - - static DemoApplication* Create() - { - ForkLiftDemo* demo = new ForkLiftDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -#endif // FORKLIFT_DEMO_H - - diff --git a/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.cpp b/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.cpp deleted file mode 100644 index edb556828..000000000 --- a/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.cpp +++ /dev/null @@ -1,503 +0,0 @@ -#include "ForkLiftPhysicsSetup.h" -#include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" -#include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" -#include "BulletDynamics/MLCPSolvers/btMLCPSolver.h" -#include "OpenGLWindow/CommonRenderInterface.h" - -btScalar maxMotorImpulse = 1400.f; -btScalar loadMass = 350.f;// -#ifdef FORCE_ZAXIS_UP - int rightIndex = 0; - int upIndex = 2; - int forwardIndex = 1; - btVector3 wheelDirectionCS0(0,0,-1); - btVector3 wheelAxleCS(1,0,0); -#else - int rightIndex = 0; - int upIndex = 1; - int forwardIndex = 2; - btVector3 wheelDirectionCS0(0,-1,0); - btVector3 wheelAxleCS(-1,0,0); -#endif - -float defaultBreakingForce = 10.f; -float gBreakingForce = 100.f; -float gEngineForce = 0.f; -float gVehicleSteering = 0.f; -float steeringIncrement = 0.04f; -float steeringClamp = 0.3f; -float wheelRadius = 0.5f; -float wheelWidth = 0.4f; -btScalar suspensionRestLength(0.6); -#define CUBE_HALF_EXTENTS 1 -float suspensionStiffness = 20.f; -float suspensionDamping = 2.3f; -float suspensionCompression = 4.4f; -float rollInfluence = 0.1f;//1.0f; -float wheelFriction = 1000;//BT_LARGE_FLOAT; - - -struct ForkLiftInternalData -{ - btRigidBody* m_carChassis; - -//---------------------------- - btRigidBody* m_liftBody; - btVector3 m_liftStartPos; - btHingeConstraint* m_liftHinge; - btRigidBody* m_forkBody; - btVector3 m_forkStartPos; - btSliderConstraint* m_forkSlider; - btRigidBody* m_loadBody; - btVector3 m_loadStartPos; - bool m_useDefaultCamera; - class btTriangleIndexVertexArray* m_indexVertexArrays; - btVector3* m_vertices; - btRaycastVehicle::btVehicleTuning m_tuning; - btVehicleRaycaster* m_vehicleRayCaster; - btRaycastVehicle* m_vehicle; - btCollisionShape* m_wheelShape; - float m_cameraHeight; - float m_minCameraDistance; - float m_maxCameraDistance; - btAlignedObjectArray m_collisionShapes; - class btBroadphaseInterface* m_overlappingPairCache; - class btCollisionDispatcher* m_dispatcher; - class btConstraintSolver* m_constraintSolver; - class btDefaultCollisionConfiguration* m_collisionConfiguration; - class btDiscreteDynamicsWorld* m_dynamicsWorld; - - int m_wheelInstances[4]; - - bool useMCLPSolver; - - ForkLiftInternalData() - :m_carChassis(0), - m_liftBody(0), - m_forkBody(0), - m_loadBody(0), - m_indexVertexArrays(0), - m_vertices(0), - m_cameraHeight(4.f), - m_minCameraDistance(3.f), - m_maxCameraDistance(10.f), - m_overlappingPairCache(0), - m_dispatcher(0), - m_constraintSolver(0), - m_collisionConfiguration(0), - m_dynamicsWorld(0), - useMCLPSolver(false) - { - m_vehicle = 0; - m_wheelShape = 0; - m_useDefaultCamera = false; - } -}; - -ForkLiftPhysicsSetup::ForkLiftPhysicsSetup() -{ - m_data = new ForkLiftInternalData; -} - -ForkLiftPhysicsSetup::~ForkLiftPhysicsSetup() -{ - delete m_data; -} - - -void ForkLiftPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - - -#ifdef FORCE_ZAXIS_UP - m_cameraUp = btVector3(0,0,1); - m_forwardAxis = 1; -#endif - - btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); - m_data->m_collisionShapes.push_back(groundShape); - m_data->m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_data->m_dispatcher = new btCollisionDispatcher(m_data->m_collisionConfiguration); - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - m_data->m_overlappingPairCache = new btAxisSweep3(worldMin,worldMax); - if (m_data->useMCLPSolver) - { - btDantzigSolver* mlcp = new btDantzigSolver(); - //btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; - btMLCPSolver* sol = new btMLCPSolver(mlcp); - m_data->m_constraintSolver = sol; - } else - { - m_data->m_constraintSolver = new btSequentialImpulseConstraintSolver(); - } - m_data->m_dynamicsWorld = new btDiscreteDynamicsWorld(m_data->m_dispatcher,m_data->m_overlappingPairCache,m_data->m_constraintSolver,m_data->m_collisionConfiguration); - if (m_data->useMCLPSolver) - { - m_data->m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 1;//for direct solver it is better to have a small A matrix - } else - { - m_data->m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 128;//for direct solver, it is better to solve multiple objects together, small batches have high overhead - } -#ifdef FORCE_ZAXIS_UP - m_dynamicsWorld->setGravity(btVector3(0,0,-10)); -#endif - - //m_dynamicsWorld->setGravity(btVector3(0,0,0)); -btTransform tr; -tr.setIdentity(); -tr.setOrigin(btVector3(0,-3,0)); - -//either use heightfield or triangle mesh - - - //create ground object - localCreateRigidBody(0,tr,groundShape); - -#ifdef FORCE_ZAXIS_UP -// indexRightAxis = 0; -// indexUpAxis = 2; -// indexForwardAxis = 1; - btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,2.f, 0.5f)); - btCompoundShape* compound = new btCompoundShape(); - btTransform localTrans; - localTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - localTrans.setOrigin(btVector3(0,0,1)); -#else - btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,0.5f,2.f)); - m_data->m_collisionShapes.push_back(chassisShape); - - btCompoundShape* compound = new btCompoundShape(); - m_data->m_collisionShapes.push_back(compound); - btTransform localTrans; - localTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - localTrans.setOrigin(btVector3(0,1,0)); -#endif - - compound->addChildShape(localTrans,chassisShape); - - { - btCollisionShape* suppShape = new btBoxShape(btVector3(0.5f,0.1f,0.5f)); - btTransform suppLocalTrans; - suppLocalTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - suppLocalTrans.setOrigin(btVector3(0,1.0,2.5)); - compound->addChildShape(suppLocalTrans, suppShape); - } - - tr.setOrigin(btVector3(0,0.f,0)); - - m_data->m_carChassis = localCreateRigidBody(800,tr,compound);//chassisShape); - //m_carChassis->setDamping(0.2,0.2); - - m_data->m_wheelShape = new btCylinderShapeX(btVector3(wheelWidth,wheelRadius,wheelRadius)); - gfxBridge.createCollisionShapeGraphicsObject(m_data->m_wheelShape); - int wheelGraphicsIndex = m_data->m_wheelShape->getUserIndex(); - - const float position[4]={0,10,10,0}; - const float quaternion[4]={0,0,0,1}; - const float color[4]={0,1,0,1}; - const float scaling[4] = {1,1,1,1}; - - for (int i=0;i<4;i++) - { - m_data->m_wheelInstances[i] = gfxBridge.registerGraphicsInstance(wheelGraphicsIndex, position, quaternion, color, scaling); - } - - - { - btCollisionShape* liftShape = new btBoxShape(btVector3(0.5f,2.0f,0.05f)); - m_data->m_collisionShapes.push_back(liftShape); - btTransform liftTrans; - m_data->m_liftStartPos = btVector3(0.0f, 2.5f, 3.05f); - liftTrans.setIdentity(); - liftTrans.setOrigin(m_data->m_liftStartPos); - m_data->m_liftBody = localCreateRigidBody(10,liftTrans, liftShape); - - btTransform localA, localB; - localA.setIdentity(); - localB.setIdentity(); - localA.getBasis().setEulerZYX(0, SIMD_HALF_PI, 0); - localA.setOrigin(btVector3(0.0, 1.0, 3.05)); - localB.getBasis().setEulerZYX(0, SIMD_HALF_PI, 0); - localB.setOrigin(btVector3(0.0, -1.5, -0.05)); - m_data->m_liftHinge = new btHingeConstraint(*m_data->m_carChassis,*m_data->m_liftBody, localA, localB); -// m_liftHinge->setLimit(-LIFT_EPS, LIFT_EPS); - m_data->m_liftHinge->setLimit(0.0f, 0.0f); - m_data->m_dynamicsWorld->addConstraint(m_data->m_liftHinge, true); - - btCollisionShape* forkShapeA = new btBoxShape(btVector3(1.0f,0.1f,0.1f)); - m_data->m_collisionShapes.push_back(forkShapeA); - btCompoundShape* forkCompound = new btCompoundShape(); - m_data->m_collisionShapes.push_back(forkCompound); - btTransform forkLocalTrans; - forkLocalTrans.setIdentity(); - forkCompound->addChildShape(forkLocalTrans, forkShapeA); - - btCollisionShape* forkShapeB = new btBoxShape(btVector3(0.1f,0.02f,0.6f)); - m_data->m_collisionShapes.push_back(forkShapeB); - forkLocalTrans.setIdentity(); - forkLocalTrans.setOrigin(btVector3(-0.9f, -0.08f, 0.7f)); - forkCompound->addChildShape(forkLocalTrans, forkShapeB); - - btCollisionShape* forkShapeC = new btBoxShape(btVector3(0.1f,0.02f,0.6f)); - m_data->m_collisionShapes.push_back(forkShapeC); - forkLocalTrans.setIdentity(); - forkLocalTrans.setOrigin(btVector3(0.9f, -0.08f, 0.7f)); - forkCompound->addChildShape(forkLocalTrans, forkShapeC); - - btTransform forkTrans; - m_data->m_forkStartPos = btVector3(0.0f, 0.6f, 3.2f); - forkTrans.setIdentity(); - forkTrans.setOrigin(m_data->m_forkStartPos); - m_data->m_forkBody = localCreateRigidBody(5, forkTrans, forkCompound); - - localA.setIdentity(); - localB.setIdentity(); - localA.getBasis().setEulerZYX(0, 0, SIMD_HALF_PI); - localA.setOrigin(btVector3(0.0f, -1.9f, 0.05f)); - localB.getBasis().setEulerZYX(0, 0, SIMD_HALF_PI); - localB.setOrigin(btVector3(0.0, 0.0, -0.1)); - m_data->m_forkSlider = new btSliderConstraint(*m_data->m_liftBody, *m_data->m_forkBody, localA, localB, true); - m_data->m_forkSlider->setLowerLinLimit(0.1f); - m_data->m_forkSlider->setUpperLinLimit(0.1f); -// m_forkSlider->setLowerAngLimit(-LIFT_EPS); -// m_forkSlider->setUpperAngLimit(LIFT_EPS); - m_data->m_forkSlider->setLowerAngLimit(0.0f); - m_data->m_forkSlider->setUpperAngLimit(0.0f); - m_data->m_dynamicsWorld->addConstraint(m_data->m_forkSlider, true); - - - btCompoundShape* loadCompound = new btCompoundShape(); - m_data->m_collisionShapes.push_back(loadCompound); - btCollisionShape* loadShapeA = new btBoxShape(btVector3(2.0f,0.5f,0.5f)); - m_data->m_collisionShapes.push_back(loadShapeA); - btTransform loadTrans; - loadTrans.setIdentity(); - loadCompound->addChildShape(loadTrans, loadShapeA); - btCollisionShape* loadShapeB = new btBoxShape(btVector3(0.1f,1.0f,1.0f)); - m_data->m_collisionShapes.push_back(loadShapeB); - loadTrans.setIdentity(); - loadTrans.setOrigin(btVector3(2.1f, 0.0f, 0.0f)); - loadCompound->addChildShape(loadTrans, loadShapeB); - btCollisionShape* loadShapeC = new btBoxShape(btVector3(0.1f,1.0f,1.0f)); - m_data->m_collisionShapes.push_back(loadShapeC); - loadTrans.setIdentity(); - loadTrans.setOrigin(btVector3(-2.1f, 0.0f, 0.0f)); - loadCompound->addChildShape(loadTrans, loadShapeC); - loadTrans.setIdentity(); - m_data->m_loadStartPos = btVector3(0.0f, 3.5f, 7.0f); - loadTrans.setOrigin(m_data->m_loadStartPos); - m_data->m_loadBody = localCreateRigidBody(loadMass, loadTrans, loadCompound); - } - - - - - - /// create vehicle - { - - m_data->m_vehicleRayCaster = new btDefaultVehicleRaycaster(m_data->m_dynamicsWorld); - m_data->m_vehicle = new btRaycastVehicle(m_data->m_tuning,m_data->m_carChassis,m_data->m_vehicleRayCaster); - - ///never deactivate the vehicle - m_data->m_carChassis->setActivationState(DISABLE_DEACTIVATION); - - m_data->m_dynamicsWorld->addVehicle(m_data->m_vehicle); - - float connectionHeight = 1.2f; - - - bool isFrontWheel=true; - - //choose coordinate system - m_data->m_vehicle->setCoordinateSystem(rightIndex,upIndex,forwardIndex); - -#ifdef FORCE_ZAXIS_UP - btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else - btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif - - m_data->m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_data->m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif - - m_data->m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_data->m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif //FORCE_ZAXIS_UP - isFrontWheel = false; - m_data->m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_data->m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif - m_data->m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_data->m_tuning,isFrontWheel); - - for (int i=0;im_vehicle->getNumWheels();i++) - { - btWheelInfo& wheel = m_data->m_vehicle->getWheelInfo(i); - wheel.m_suspensionStiffness = suspensionStiffness; - wheel.m_wheelsDampingRelaxation = suspensionDamping; - wheel.m_wheelsDampingCompression = suspensionCompression; - wheel.m_frictionSlip = wheelFriction; - wheel.m_rollInfluence = rollInfluence; - } - } - - resetForklift(); - gfxBridge.autogenerateGraphicsObjects(m_data->m_dynamicsWorld); - -// setCameraDistance(26.f); -} - -void ForkLiftPhysicsSetup::resetForklift() -{ - gVehicleSteering = 0.f; - gBreakingForce = defaultBreakingForce; - gEngineForce = 0.f; - - m_data->m_carChassis->setCenterOfMassTransform(btTransform::getIdentity()); - m_data->m_carChassis->setLinearVelocity(btVector3(0,0,0)); - m_data->m_carChassis->setAngularVelocity(btVector3(0,0,0)); - m_data->m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(m_data->m_carChassis->getBroadphaseHandle(),m_data->m_dynamicsWorld->getDispatcher()); - if (m_data->m_vehicle) - { - m_data->m_vehicle->resetSuspension(); - for (int i=0;im_vehicle->getNumWheels();i++) - { - //synchronize the wheels with the (interpolated) chassis worldtransform - m_data->m_vehicle->updateWheelTransform(i,true); - } - } - btTransform liftTrans; - liftTrans.setIdentity(); - liftTrans.setOrigin(m_data->m_liftStartPos); - m_data->m_liftBody->activate(); - m_data->m_liftBody->setCenterOfMassTransform(liftTrans); - m_data->m_liftBody->setLinearVelocity(btVector3(0,0,0)); - m_data->m_liftBody->setAngularVelocity(btVector3(0,0,0)); - - btTransform forkTrans; - forkTrans.setIdentity(); - forkTrans.setOrigin(m_data->m_forkStartPos); - m_data->m_forkBody->activate(); - m_data->m_forkBody->setCenterOfMassTransform(forkTrans); - m_data->m_forkBody->setLinearVelocity(btVector3(0,0,0)); - m_data->m_forkBody->setAngularVelocity(btVector3(0,0,0)); - -// m_liftHinge->setLimit(-LIFT_EPS, LIFT_EPS); - m_data->m_liftHinge->setLimit(0.0f, 0.0f); - m_data->m_liftHinge->enableAngularMotor(false, 0, 0); - - - m_data->m_forkSlider->setLowerLinLimit(0.1f); - m_data->m_forkSlider->setUpperLinLimit(0.1f); - m_data->m_forkSlider->setPoweredLinMotor(false); - - btTransform loadTrans; - loadTrans.setIdentity(); - loadTrans.setOrigin(m_data->m_loadStartPos); - m_data->m_loadBody->activate(); - m_data->m_loadBody->setCenterOfMassTransform(loadTrans); - m_data->m_loadBody->setLinearVelocity(btVector3(0,0,0)); - m_data->m_loadBody->setAngularVelocity(btVector3(0,0,0)); - -} - -btRigidBody* ForkLiftPhysicsSetup::localCreateRigidBody(btScalar mass, const btTransform& startTransform, btCollisionShape* shape) -{ - btAssert((!shape || shape->getShapeType() != INVALID_SHAPE_PROXYTYPE)); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - -//#define USE_MOTIONSTATE 1 -#ifdef USE_MOTIONSTATE - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - - btRigidBody::btRigidBodyConstructionInfo cInfo(mass,myMotionState,shape,localInertia); - - btRigidBody* body = new btRigidBody(cInfo); - body->setContactProcessingThreshold(BT_LARGE_FLOAT);//m_defaultContactProcessingThreshold); - -#else - btRigidBody* body = new btRigidBody(mass,0,shape,localInertia); - body->setWorldTransform(startTransform); -#endif// - - m_data->m_dynamicsWorld->addRigidBody(body); - return body; -} - -void ForkLiftPhysicsSetup::exitPhysics() -{ -} -void ForkLiftPhysicsSetup::stepSimulation(float deltaTime) -{ - m_data->m_dynamicsWorld->stepSimulation(deltaTime); -} -void ForkLiftPhysicsSetup::debugDraw(int debugDrawFlags) -{ -} -bool ForkLiftPhysicsSetup::pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) -{ - return false; -} -bool ForkLiftPhysicsSetup::movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) -{ - return false; -} -void ForkLiftPhysicsSetup::removePickingConstraint() -{ -} -void ForkLiftPhysicsSetup::syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) -{ - gfxBridge.syncPhysicsToGraphics(m_data->m_dynamicsWorld); - //sync wheels - - for (int i=0;im_vehicle->getNumWheels();i++) - { - //synchronize the wheels with the (interpolated) chassis worldtransform - m_data->m_vehicle->updateWheelTransform(i,true); - - CommonRenderInterface* renderer = gfxBridge.getRenderInterface(); - if (renderer) - { - btTransform tr = m_data->m_vehicle->getWheelInfo(i).m_worldTransform; - btVector3 pos=tr.getOrigin(); - btQuaternion orn = tr.getRotation(); - renderer->writeSingleInstanceTransformToCPU(pos,orn,m_data->m_wheelInstances[i]); - } - } - -} - -void ForkLiftPhysicsSetup::renderScene(GraphicsPhysicsBridge& gfxBridge) -{ - gfxBridge.drawText3D("hi!",0,10,10,2); -} - -void ForkLiftPhysicsSetup::lockLiftHinge() -{ -} - -void ForkLiftPhysicsSetup::lockForkSlider() -{ -} diff --git a/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h b/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h deleted file mode 100644 index 89e932668..000000000 --- a/Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef FORK_LIFT_PHYSICS_SETUP_H -#define FORK_LIFT_PHYSICS_SETUP_H - -class btRigidBody; -class btCollisionShape; -class btBroadphaseInterface; -class btConstraintSolver; -class btCollisionDispatcher; -class btDefaultCollisionConfiguration; -class btDiscreteDynamicsWorld; -class btTransform; -class btVector3; -class btBoxShape; - -#include "LinearMath/btVector3.h" -#include "LinearMath/btAlignedObjectArray.h" -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -class ForkLiftPhysicsSetup : public CommonPhysicsSetup -{ - -protected: - - struct ForkLiftInternalData* m_data; - -public: - - ForkLiftPhysicsSetup(); - virtual ~ForkLiftPhysicsSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - - virtual void exitPhysics(); - virtual void stepSimulation(float deltaTime); - virtual void debugDraw(int debugDrawFlags); - virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual void removePickingConstraint(); - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge); - virtual void renderScene(GraphicsPhysicsBridge& gfxBridge); - - void resetForklift(); - void lockLiftHinge(); - void lockForkSlider(); - class btRigidBody* localCreateRigidBody(btScalar mass, const btTransform& startTrans, btCollisionShape* shape); - -}; - -#endif //FORK_LIFT_PHYSICS_SETUP_H diff --git a/Demos/ForkLiftDemo/Makefile.am b/Demos/ForkLiftDemo/Makefile.am deleted file mode 100644 index 588373493..000000000 --- a/Demos/ForkLiftDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=ForkLiftDemo - -ForkLiftDemo_SOURCES=ForkLiftDemo.cpp ForkLiftDemo.h main.cpp -ForkLiftDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -ForkLiftDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/ForkLiftDemo/main.cpp b/Demos/ForkLiftDemo/main.cpp deleted file mode 100644 index 42b8b0698..000000000 --- a/Demos/ForkLiftDemo/main.cpp +++ /dev/null @@ -1,18 +0,0 @@ - -#include "ForkLiftDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - ForkLiftDemo* pForkLiftDemo = new ForkLiftDemo; - - pForkLiftDemo->initPhysics(); - pForkLiftDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,1024,768,"Bullet ForkLift Demo. http://www.continuousphysics.com/Bullet/phpBB2/", pForkLiftDemo); -} - diff --git a/Demos/FractureDemo/CMakeLists.txt b/Demos/FractureDemo/CMakeLists.txt deleted file mode 100644 index 425ddc116..000000000 --- a/Demos/FractureDemo/CMakeLists.txt +++ /dev/null @@ -1,82 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppFractureDemo - main.cpp - FractureDemo.cpp - FractureDemo.h - btFractureBody.h - btFractureBody.cpp - btFractureDynamicsWorld.cpp - btFractureDynamicsWorld.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppFractureDemo - main.cpp - FractureDemo.cpp - FractureDemo.h - btFractureBody.h - btFractureBody.cpp - btFractureDynamicsWorld.cpp - btFractureDynamicsWorld.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppFractureDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32FractureDemo.cpp - FractureDemo.cpp - FractureDemo.h - btFractureBody.h - btFractureBody.cpp - btFractureDynamicsWorld.cpp - btFractureDynamicsWorld.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppFractureDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppFractureDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppFractureDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/FractureDemo/FractureDemo.cpp b/Demos/FractureDemo/FractureDemo.cpp deleted file mode 100644 index 983d4d34d..000000000 --- a/Demos/FractureDemo/FractureDemo.cpp +++ /dev/null @@ -1,362 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2011 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -///FractureDemo shows how to break objects. -///It assumes a btCompoundShaps (where the childshapes are the pre-fractured pieces) -///The btFractureBody is a class derived from btRigidBody, dealing with the collision impacts. -///Press the F key to toggle between fracture and glue mode -///This is preliminary work - - -#define CUBE_HALF_EXTENTS 1.f -#define EXTRA_HEIGHT 1.f -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "FractureDemo.h" -#include "GlutStuff.h" -#include "GLDebugFont.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" - - -#include //printf debugging - - -int sFrameNumber = 0; - -#include "btFractureBody.h" -#include "btFractureDynamicsWorld.h" - - - - - -void FractureDemo::initPhysics() -{ - - setTexturing(true); - setShadows(true); - - setDebugMode(btIDebugDraw::DBG_DrawText|btIDebugDraw::DBG_NoHelpText); - - setCameraDistance(btScalar(SCALING*20.)); - - ///collision configuration contains default setup for memory, collision setup - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - //m_collisionConfiguration->setConvexConvexMultipointIterations(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - m_broadphase = new btDbvtBroadphase(); - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - - //m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - - btFractureDynamicsWorld* fractureWorld = new btFractureDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - m_dynamicsWorld = fractureWorld; - - m_ShootBoxInitialSpeed=100; - - //m_splitImpulse removes the penetration resolution from the applied impulse, otherwise objects might fracture due to deep penetrations. - m_dynamicsWorld->getSolverInfo().m_splitImpulse = true; - - { - ///create a few basic rigid bodies - btCollisionShape* groundShape = new btBoxShape(btVector3(50,1,50)); - /// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),0); - m_collisionShapes.push_back(groundShape); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,0,0)); - localCreateRigidBody(0.f,groundTransform,groundShape); - } - - { - ///create a few basic rigid bodies - btCollisionShape* shape = new btBoxShape(btVector3(1,1,1)); - m_collisionShapes.push_back(shape); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(5,2,0)); - localCreateRigidBody(0.f,tr,shape); - } - - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btCollisionShape* colShape = new btBoxShape(btVector3(SCALING*1,SCALING*1,SCALING*1)); - //btCollisionShape* colShape = new btCapsuleShape(SCALING*0.4,SCALING*1); - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - - int gNumObjects = 10; - - for (int i=0;isetLinearVelocity(btVector3(0,-10,0)); - - m_dynamicsWorld->addRigidBody(body); - - - } - - } - - - - fractureWorld->stepSimulation(1./60.,0); - fractureWorld->glueCallback(); - - - -} - -void FractureDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void FractureDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - - - renderme(); - - showMessage(); - - glFlush(); - - swapBuffers(); - -} - -void FractureDemo::showMessage() -{ - if((getDebugMode() & btIDebugDraw::DBG_DrawText)) - { - setOrthographicProjection(); - glDisable(GL_LIGHTING); - glColor3f(0, 0, 0); - char buf[124]; - - int lineWidth=380; - int xStart = m_glutScreenWidth - lineWidth; - int yStart = 20; - - btFractureDynamicsWorld* world = (btFractureDynamicsWorld*)m_dynamicsWorld; - if (world->getFractureMode()) - { - sprintf(buf,"Fracture mode"); - } else - { - sprintf(buf,"Glue mode"); - } - GLDebugDrawString(xStart,yStart,buf); - sprintf(buf,"f to toggle fracture/glue mode"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - sprintf(buf,"space to restart, mouse to pick/shoot"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - - resetPerspectiveProjection(); - glEnable(GL_LIGHTING); - } - -} - - -void FractureDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - showMessage(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - -void FractureDemo::keyboardUpCallback(unsigned char key, int x, int y) -{ - if (key=='f') - { - btFractureDynamicsWorld* world = (btFractureDynamicsWorld*)m_dynamicsWorld; - world->setFractureMode(!world->getFractureMode()); - } - - PlatformDemoApplication::keyboardUpCallback(key,x,y); - -} - - -void FractureDemo::shootBox(const btVector3& destination) -{ - - if (m_dynamicsWorld) - { - btScalar mass = 1.f; - btTransform startTransform; - startTransform.setIdentity(); - btVector3 camPos = getCameraPosition(); - startTransform.setOrigin(camPos); - - setShootBoxShape (); - - btAssert((!m_shootBoxShape || m_shootBoxShape->getShapeType() != INVALID_SHAPE_PROXYTYPE)); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - m_shootBoxShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - - btFractureBody* body = new btFractureBody(mass,0,m_shootBoxShape,localInertia,&mass,1,m_dynamicsWorld); - - body->setWorldTransform(startTransform); - - m_dynamicsWorld->addRigidBody(body); - - - body->setLinearFactor(btVector3(1,1,1)); - //body->setRestitution(1); - - btVector3 linVel(destination[0]-camPos[0],destination[1]-camPos[1],destination[2]-camPos[2]); - linVel.normalize(); - linVel*=m_ShootBoxInitialSpeed; - - body->getWorldTransform().setOrigin(camPos); - body->getWorldTransform().setRotation(btQuaternion(0,0,0,1)); - body->setLinearVelocity(linVel); - body->setAngularVelocity(btVector3(0,0,0)); - body->setCcdMotionThreshold(1.); - body->setCcdSweptSphereRadius(0.2f); - - } -} - - - - - - -void FractureDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - void showMessage(); - - public: - - FractureDemo() - { - } - virtual ~FractureDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void keyboardUpCallback(unsigned char key, int x, int y); - - virtual void clientResetScene(); - - static DemoApplication* Create() - { - FractureDemo* demo = new FractureDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - void shootBox(const btVector3& destination); - -}; - -#endif //FRACTURE_DEMO_H - diff --git a/Demos/FractureDemo/Win32FractureDemo.cpp b/Demos/FractureDemo/Win32FractureDemo.cpp deleted file mode 100644 index 903986bce..000000000 --- a/Demos/FractureDemo/Win32FractureDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2011 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "FractureDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new FractureDemo(); -} - -#endif diff --git a/Demos/FractureDemo/btFractureBody.cpp b/Demos/FractureDemo/btFractureBody.cpp deleted file mode 100644 index 4ae742ffd..000000000 --- a/Demos/FractureDemo/btFractureBody.cpp +++ /dev/null @@ -1,139 +0,0 @@ - -#include "btFractureBody.h" -#include "BulletCollision/CollisionDispatch/btCollisionWorld.h" -#include "BulletCollision/CollisionShapes/btCompoundShape.h" -#include "BulletDynamics/Dynamics/btDynamicsWorld.h" - - - -void btFractureBody::recomputeConnectivity(btCollisionWorld* world) -{ - m_connections.clear(); - //@todo use the AABB tree to avoid N^2 checks - - if (getCollisionShape()->isCompound()) - { - btCompoundShape* compound = (btCompoundShape*)getCollisionShape(); - for (int i=0;igetNumChildShapes();i++) - { - for (int j=i+1;jgetNumChildShapes();j++) - { - - struct MyContactResultCallback : public btCollisionWorld::ContactResultCallback - { - bool m_connected; - btScalar m_margin; - MyContactResultCallback() :m_connected(false),m_margin(0.05) - { - } - virtual btScalar addSingleResult(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) - { - if (cp.getDistance()<=m_margin) - m_connected = true; - return 1.f; - } - }; - - MyContactResultCallback result; - - btCollisionObject obA; - obA.setWorldTransform(compound->getChildTransform(i)); - obA.setCollisionShape(compound->getChildShape(i)); - btCollisionObject obB; - obB.setWorldTransform(compound->getChildTransform(j)); - obB.setCollisionShape(compound->getChildShape(j)); - world->contactPairTest(&obA,&obB,result); - if (result.m_connected) - { - btConnection tmp; - tmp.m_childIndex0 = i; - tmp.m_childIndex1 = j; - tmp.m_childShape0 = compound->getChildShape(i); - tmp.m_childShape1 = compound->getChildShape(j); - tmp.m_strength = 1.f;//?? - m_connections.push_back(tmp); - } - } - } - } - - -} - -btCompoundShape* btFractureBody::shiftTransformDistributeMass(btCompoundShape* boxCompound,btScalar mass,btTransform& shift) -{ - - btVector3 principalInertia; - - btScalar* masses = new btScalar[boxCompound->getNumChildShapes()]; - for (int j=0;jgetNumChildShapes();j++) - { - //evenly distribute mass - masses[j]=mass/boxCompound->getNumChildShapes(); - } - - return shiftTransform(boxCompound,masses,shift,principalInertia); - -} - - -btCompoundShape* btFractureBody::shiftTransform(btCompoundShape* boxCompound,btScalar* masses,btTransform& shift, btVector3& principalInertia) -{ - btTransform principal; - - boxCompound->calculatePrincipalAxisTransform(masses,principal,principalInertia); - - - ///create a new compound with world transform/center of mass properly aligned with the principal axis - - ///non-recursive compound shapes perform better - -#ifdef USE_RECURSIVE_COMPOUND - - btCompoundShape* newCompound = new btCompoundShape(); - newCompound->addChildShape(principal.inverse(),boxCompound); - newBoxCompound = newCompound; - //m_collisionShapes.push_back(newCompound); - - //btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - //btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,newCompound,principalInertia); - -#else -#ifdef CHANGE_COMPOUND_INPLACE - newBoxCompound = boxCompound; - for (int i=0;igetNumChildShapes();i++) - { - btTransform newChildTransform = principal.inverse()*boxCompound->getChildTransform(i); - ///updateChildTransform is really slow, because it re-calculates the AABB each time. todo: add option to disable this update - boxCompound->updateChildTransform(i,newChildTransform); - } - bool isDynamic = (mass != 0.f); - btVector3 localInertia(0,0,0); - if (isDynamic) - boxCompound->calculateLocalInertia(mass,localInertia); - -#else - ///creation is faster using a new compound to store the shifted children - btCompoundShape* newBoxCompound = new btCompoundShape(); - for (int i=0;igetNumChildShapes();i++) - { - btTransform newChildTransform = principal.inverse()*boxCompound->getChildTransform(i); - ///updateChildTransform is really slow, because it re-calculates the AABB each time. todo: add option to disable this update - newBoxCompound->addChildShape(newChildTransform,boxCompound->getChildShape(i)); - } - - - -#endif - -#endif//USE_RECURSIVE_COMPOUND - - shift = principal; - return newBoxCompound; -} - - - - - - diff --git a/Demos/FractureDemo/btFractureBody.h b/Demos/FractureDemo/btFractureBody.h deleted file mode 100644 index 922db3c22..000000000 --- a/Demos/FractureDemo/btFractureBody.h +++ /dev/null @@ -1,78 +0,0 @@ - -#ifndef BT_FRACTURE_BODY -#define BT_FRACTURE_BODY - -class btCollisionShape; -class btDynamicsWorld; -class btCollisionWorld; -class btCompoundShape; -class btManifoldPoint; - -#include "LinearMath/btAlignedObjectArray.h" -#include "BulletDynamics/Dynamics/btRigidBody.h" - -#define CUSTOM_FRACTURE_TYPE (btRigidBody::CO_USER_TYPE+1) - - -struct btConnection -{ - - btCollisionShape* m_childShape0; - btCollisionShape* m_childShape1; - int m_childIndex0; - int m_childIndex1; - btScalar m_strength; -}; - -class btFractureBody : public btRigidBody -{ - //connections -public: - - btDynamicsWorld* m_world; - btAlignedObjectArray m_masses; - btAlignedObjectArray m_connections; - - - - btFractureBody( const btRigidBodyConstructionInfo& constructionInfo, btDynamicsWorld* world) - :btRigidBody(constructionInfo), - m_world(world) - { - m_masses.push_back(constructionInfo.m_mass); - m_internalType=CUSTOM_FRACTURE_TYPE+CO_RIGID_BODY; - } - - - - ///btRigidBody constructor for backwards compatibility. - ///To specify friction (etc) during rigid body construction, please use the other constructor (using btRigidBodyConstructionInfo) - btFractureBody( btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape, const btVector3& localInertia, btScalar* masses, int numMasses, btDynamicsWorld* world) - :btRigidBody(mass,motionState,collisionShape,localInertia), - m_world(world) - { - - for (int i=0;igetNumManifolds(); - - ///first build the islands based on axis aligned bounding box overlap - - btUnionFind unionFind; - - int index = 0; - { - - int i; - for (i=0;iisStaticOrKinematicObject()) - { - collisionObject->setIslandTag(index++); - } else - { - collisionObject->setIslandTag(-1); - } -#else - collisionObject->setIslandTag(i); - index=i+1; -#endif - } - } - - unionFind.reset(index); - - int numElem = unionFind.getNumElements(); - - for (int i=0;igetManifoldByIndexInternal(i); - if (!manifold->getNumContacts()) - continue; - - btScalar minDist = 1e30f; - for (int v=0;vgetNumContacts();v++) - { - minDist = btMin(minDist,manifold->getContactPoint(v).getDistance()); - } - if (minDist>0.) - continue; - - btCollisionObject* colObj0 = (btCollisionObject*)manifold->getBody0(); - btCollisionObject* colObj1 = (btCollisionObject*)manifold->getBody1(); - int tag0 = (colObj0)->getIslandTag(); - int tag1 = (colObj1)->getIslandTag(); - //btRigidBody* body0 = btRigidBody::upcast(colObj0); - //btRigidBody* body1 = btRigidBody::upcast(colObj1); - - - if (!colObj0->isStaticOrKinematicObject() && !colObj1->isStaticOrKinematicObject()) - { - unionFind.unite(tag0, tag1); - } - } - - - - - numElem = unionFind.getNumElements(); - - - - index=0; - for (int ai=0;aiisStaticOrKinematicObject()) - { - int tag = unionFind.find(index); - - collisionObject->setIslandTag( tag); - - //Set the correct object offset in Collision Object Array -#if STATIC_SIMULATION_ISLAND_OPTIMIZATION - unionFind.getElement(index).m_sz = ai; -#endif //STATIC_SIMULATION_ISLAND_OPTIMIZATION - - index++; - } - } - unionFind.sortIslands(); - - - - int endIslandIndex=1; - int startIslandIndex; - - btAlignedObjectArray removedObjects; - - ///iterate over all islands - for ( startIslandIndex=0;startIslandIndexgetInternalType()& CUSTOM_FRACTURE_TYPE) - { - fractureObjectIndex = i; - } - btRigidBody* otherObject = btRigidBody::upcast(colObj0); - if (!otherObject || !otherObject->getInvMass()) - continue; - numObjects++; - } - - ///Then for each island that contains at least two objects and one fracture object - if (fractureObjectIndex>=0 && numObjects>1) - { - - btFractureBody* fracObj = (btFractureBody*)getCollisionObjectArray()[fractureObjectIndex]; - - ///glueing objects means creating a new compound and removing the old objects - ///delay the removal of old objects to avoid array indexing problems - removedObjects.push_back(fracObj); - m_fractureBodies.remove(fracObj); - - btAlignedObjectArray massArray; - - btAlignedObjectArray oldImpulses; - btAlignedObjectArray oldCenterOfMassesWS; - - oldImpulses.push_back(fracObj->getLinearVelocity()/1./fracObj->getInvMass()); - oldCenterOfMassesWS.push_back(fracObj->getCenterOfMassPosition()); - - btScalar totalMass = 0.f; - - - btCompoundShape* compound = new btCompoundShape(); - if (fracObj->getCollisionShape()->isCompound()) - { - btTransform tr; - tr.setIdentity(); - btCompoundShape* oldCompound = (btCompoundShape*)fracObj->getCollisionShape(); - for (int c=0;cgetNumChildShapes();c++) - { - compound->addChildShape(oldCompound->getChildTransform(c),oldCompound->getChildShape(c)); - massArray.push_back(fracObj->m_masses[c]); - totalMass+=fracObj->m_masses[c]; - } - - } else - { - btTransform tr; - tr.setIdentity(); - compound->addChildShape(tr,fracObj->getCollisionShape()); - massArray.push_back(fracObj->m_masses[0]); - totalMass+=fracObj->m_masses[0]; - } - - for (idx=startIslandIndex;idxgetInvMass()) - continue; - - - oldImpulses.push_back(otherObject->getLinearVelocity()*(1.f/otherObject->getInvMass())); - oldCenterOfMassesWS.push_back(otherObject->getCenterOfMassPosition()); - - removedObjects.push_back(otherObject); - m_fractureBodies.remove((btFractureBody*)otherObject); - - btScalar curMass = 1.f/otherObject->getInvMass(); - - - if (otherObject->getCollisionShape()->isCompound()) - { - btTransform tr; - btCompoundShape* oldCompound = (btCompoundShape*)otherObject->getCollisionShape(); - for (int c=0;cgetNumChildShapes();c++) - { - tr = fracObj->getWorldTransform().inverseTimes(otherObject->getWorldTransform()*oldCompound->getChildTransform(c)); - compound->addChildShape(tr,oldCompound->getChildShape(c)); - massArray.push_back(curMass/(btScalar)oldCompound->getNumChildShapes()); - - } - } else - { - btTransform tr; - tr = fracObj->getWorldTransform().inverseTimes(otherObject->getWorldTransform()); - compound->addChildShape(tr,otherObject->getCollisionShape()); - massArray.push_back(curMass); - } - totalMass+=curMass; - } - - - - btTransform shift; - shift.setIdentity(); - btCompoundShape* newCompound = btFractureBody::shiftTransformDistributeMass(compound,totalMass,shift); - int numChildren = newCompound->getNumChildShapes(); - btAssert(numChildren == massArray.size()); - - btVector3 localInertia; - newCompound->calculateLocalInertia(totalMass,localInertia); - btFractureBody* newBody = new btFractureBody(totalMass,0,newCompound,localInertia, &massArray[0], numChildren,this); - newBody->recomputeConnectivity(this); - newBody->setWorldTransform(fracObj->getWorldTransform()*shift); - - //now the linear/angular velocity is still zero, apply the impulses - - for (int i=0;igetCenterOfMassPosition(); - const btVector3& imp = oldImpulses[i]; - newBody->applyImpulse(imp, rel_pos); - } - - addRigidBody(newBody); - - - } - - - } - - //remove the objects from the world at the very end, - //otherwise the island tags would not match the world collision object array indices anymore - while (removedObjects.size()) - { - btCollisionObject* otherCollider = removedObjects[removedObjects.size()-1]; - removedObjects.pop_back(); - - btRigidBody* otherObject = btRigidBody::upcast(otherCollider); - if (!otherObject || !otherObject->getInvMass()) - continue; - removeRigidBody(otherObject); - } - -} - - -struct btFracturePair -{ - btFractureBody* m_fracObj; - btAlignedObjectArray m_contactManifolds; -}; - - - -void btFractureDynamicsWorld::solveConstraints(btContactSolverInfo& solverInfo) -{ - // todo: after fracture we should run the solver again for better realism - // for example - // save all velocities and if one or more objects fracture: - // 1) revert all velocties - // 2) apply impulses for the fracture bodies at the contact locations - // 3)and run the constaint solver again - - btDiscreteDynamicsWorld::solveConstraints(solverInfo); - - fractureCallback(); -} - -btFractureBody* btFractureDynamicsWorld::addNewBody(const btTransform& oldTransform,btScalar* masses, btCompoundShape* oldCompound) -{ - int i; - - btTransform shift; - shift.setIdentity(); - btVector3 localInertia; - btCompoundShape* newCompound = btFractureBody::shiftTransform(oldCompound,masses,shift,localInertia); - btScalar totalMass = 0; - for (i=0;igetNumChildShapes();i++) - totalMass += masses[i]; - //newCompound->calculateLocalInertia(totalMass,localInertia); - - btFractureBody* newBody = new btFractureBody(totalMass,0,newCompound,localInertia, masses,newCompound->getNumChildShapes(), this); - newBody->recomputeConnectivity(this); - - newBody->setCollisionFlags(newBody->getCollisionFlags()|btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - newBody->setWorldTransform(oldTransform*shift); - addRigidBody(newBody); - return newBody; -} - -void btFractureDynamicsWorld::addRigidBody(btRigidBody* body) -{ - if (body->getInternalType() & CUSTOM_FRACTURE_TYPE) - { - btFractureBody* fbody = (btFractureBody*)body; - m_fractureBodies.push_back(fbody); - } - btDiscreteDynamicsWorld::addRigidBody(body); -} - -void btFractureDynamicsWorld::removeRigidBody(btRigidBody* body) -{ - if (body->getInternalType() & CUSTOM_FRACTURE_TYPE) - { - btFractureBody* fbody = (btFractureBody*)body; - btAlignedObjectArray tmpConstraints; - - for (int i=0;igetNumConstraintRefs();i++) - { - tmpConstraints.push_back(fbody->getConstraintRef(i)); - } - - //remove all constraints attached to this rigid body too - for (int i=0;igetCollisionShape()->isCompound()) - return; - - btCompoundShape* compound = (btCompoundShape*)fracObj->getCollisionShape(); - int numChildren = compound->getNumChildShapes(); - - if (numChildren<=1) - return; - - //compute connectivity - btUnionFind unionFind; - - btAlignedObjectArray tags; - tags.resize(numChildren); - int i, index = 0; - for ( i=0;im_connections.size();i++) - { - btConnection& connection = fracObj->m_connections[i]; - if (connection.m_strength > 0.) - { - int tag0 = tags[connection.m_childIndex0]; - int tag1 = tags[connection.m_childIndex1]; - unionFind.unite(tag0, tag1); - } - } - numElem = unionFind.getNumElements(); - - index=0; - for (int ai=0;ai removedObjects; - - int numIslands = 0; - - for ( startIslandIndex=0;startIslandIndex masses; - - int idx; - for (idx=startIslandIndex;idxgetChildShape(i); - newCompound->addChildShape(compound->getChildTransform(i),compound->getChildShape(i)); - masses.push_back(fracObj->m_masses[i]); - numShapes++; - } - if (numShapes) - { - btFractureBody* newBody = addNewBody(fracObj->getWorldTransform(),&masses[0],newCompound); - newBody->setLinearVelocity(fracObj->getLinearVelocity()); - newBody->setAngularVelocity(fracObj->getAngularVelocity()); - - numIslands++; - } - } - - - - - - removeRigidBody(fracObj);//should it also be removed from the array? - - -} - -#include - - -void btFractureDynamicsWorld::fractureCallback( ) -{ - - btAlignedObjectArray sFracturePairs; - - if (!m_fracturingMode) - { - glueCallback(); - return; - } - - int numManifolds = getDispatcher()->getNumManifolds(); - - sFracturePairs.clear(); - - - for (int i=0;igetManifoldByIndexInternal(i); - if (!manifold->getNumContacts()) - continue; - - btScalar totalImpact = 0.f; - for (int p=0;pgetNumContacts();p++) - { - totalImpact += manifold->getContactPoint(p).m_appliedImpulse; - } - - -// printf("totalImpact=%f\n",totalImpact); - - static float maxImpact = 0; - if (totalImpact>maxImpact) - maxImpact = totalImpact; - - //some threshold otherwise resting contact would break objects after a while - if (totalImpact < 40.f) - continue; - - // printf("strong impact\n"); - - - //@todo: add better logic to decide what parts to fracture - //For example use the idea from the SIGGRAPH talk about the fracture in the movie 2012: - // - //Breaking thresholds can be stored as connectivity information between child shapes in the fracture object - // - //You can calculate some "impact value" by simulating all the individual child shapes - //as rigid bodies, without constraints, running it in a separate simulation world - //(or by running the constraint solver without actually modifying the dynamics world) - //Then measure some "impact value" using the offset and applied impulse for each child shape - //weaken the connections based on this "impact value" and only break - //if this impact value exceeds the breaking threshold. - //you can propagate the weakening and breaking of connections using the connectivity information - - int f0 = m_fractureBodies.findLinearSearch((btFractureBody*)manifold->getBody0()); - int f1 = m_fractureBodies.findLinearSearch((btFractureBody*)manifold->getBody1()); - - if (f0 == f1 == m_fractureBodies.size()) - continue; - - - if (f0getBody1(); - // btRigidBody* otherOb = btRigidBody::upcast(colOb); - // if (!otherOb->getInvMass()) - // continue; - - int pi=-1; - - for (int p=0;pgetBody0(); - btRigidBody* otherOb = btRigidBody::upcast(colOb); - // if (!otherOb->getInvMass()) - // continue; - - - int pi=-1; - - for (int p=0;pgetCollisionShape()->isCompound()) - { - btTransform tr; - tr.setIdentity(); - btCompoundShape* oldCompound = (btCompoundShape*)sFracturePairs[i].m_fracObj->getCollisionShape(); - if (oldCompound->getNumChildShapes()>1) - { - bool needsBreakingCheck = false; - - - //weaken/break the connections - - //@todo: propagate along the connection graph - for (int j=0;jgetNumContacts();k++) - { - btManifoldPoint& pt = manifold->getContactPoint(k); - if (manifold->getBody0()==sFracturePairs[i].m_fracObj) - { - for (int f=0;fm_connections.size();f++) - { - btConnection& connection = sFracturePairs[i].m_fracObj->m_connections[f]; - if ( (connection.m_childIndex0 == pt.m_index0) || - (connection.m_childIndex1 == pt.m_index0) - ) - { - connection.m_strength -= pt.m_appliedImpulse; - if (connection.m_strength<0) - { - //remove or set to zero - connection.m_strength=0.f; - needsBreakingCheck = true; - } - } - } - } else - { - for (int f=0;fm_connections.size();f++) - { - btConnection& connection = sFracturePairs[i].m_fracObj->m_connections[f]; - if ( (connection.m_childIndex0 == pt.m_index1) || - (connection.m_childIndex1 == pt.m_index1) - ) - { - connection.m_strength -= pt.m_appliedImpulse; - if (connection.m_strength<0) - { - //remove or set to zero - connection.m_strength=0.f; - needsBreakingCheck = true; - } - } - } - } - } - } - - if (needsBreakingCheck) - { - breakDisconnectedParts(sFracturePairs[i].m_fracObj); - } - } - - } - - } - } - - sFracturePairs.clear(); - -} - diff --git a/Demos/FractureDemo/btFractureDynamicsWorld.h b/Demos/FractureDemo/btFractureDynamicsWorld.h deleted file mode 100644 index 255487729..000000000 --- a/Demos/FractureDemo/btFractureDynamicsWorld.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef _BT_FRACTURE_DYNAMICS_WORLD_H -#define _BT_FRACTURE_DYNAMICS_WORLD_H - -#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h" -#include "LinearMath/btAlignedObjectArray.h" - -class btFractureBody; -class btCompoundShape; -class btTransform; - - -///The btFractureDynamicsWorld class enabled basic glue and fracture of objects. -///If/once this implementation is stablized/tested we might merge it into btDiscreteDynamicsWorld and remove the class. -class btFractureDynamicsWorld : public btDiscreteDynamicsWorld -{ - btAlignedObjectArray m_fractureBodies; - - bool m_fracturingMode; - - btFractureBody* addNewBody(const btTransform& oldTransform,btScalar* masses, btCompoundShape* oldCompound); - - void breakDisconnectedParts( btFractureBody* fracObj); - -public: - - btFractureDynamicsWorld ( btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration); - - virtual void addRigidBody(btRigidBody* body); - - virtual void removeRigidBody(btRigidBody* body); - - void solveConstraints(btContactSolverInfo& solverInfo); - - ///either fracture or glue (!fracture) - void setFractureMode(bool fracture) - { - m_fracturingMode = fracture; - } - - bool getFractureMode() const { return m_fracturingMode;} - - ///normally those callbacks are called internally by the 'solveConstraints' - void glueCallback(); - - ///normally those callbacks are called internally by the 'solveConstraints' - void fractureCallback(); - -}; - -#endif //_BT_FRACTURE_DYNAMICS_WORLD_H - diff --git a/Demos/FractureDemo/main.cpp b/Demos/FractureDemo/main.cpp deleted file mode 100644 index 8988b6040..000000000 --- a/Demos/FractureDemo/main.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "FractureDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - -int main(int argc,char** argv) -{ - GLDebugDrawer gDebugDrawer; - - - FractureDemo ccdDemo; - ccdDemo.initPhysics(); - ccdDemo.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/GenericJointDemo/CMakeLists.txt b/Demos/GenericJointDemo/CMakeLists.txt deleted file mode 100644 index afcd423cb..000000000 --- a/Demos/GenericJointDemo/CMakeLists.txt +++ /dev/null @@ -1,68 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppGenericJointDemo - GenericJointDemo.cpp - GenericJointDemo.h - Ragdoll.cpp - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppGenericJointDemo - GenericJointDemo.cpp - GenericJointDemo.h - Ragdoll.cpp - main.cpp - ) - ENDIF() - -ELSE(USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppGenericJointDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32GenericJointDemo.cpp - GenericJointDemo.cpp - GenericJointDemo.h - Ragdoll.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - - ) -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppGenericJointDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppGenericJointDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppGenericJointDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/GenericJointDemo/GenericJointDemo.cpp b/Demos/GenericJointDemo/GenericJointDemo.cpp deleted file mode 100644 index 35e24c1f7..000000000 --- a/Demos/GenericJointDemo/GenericJointDemo.cpp +++ /dev/null @@ -1,135 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Ragdoll Demo -Copyright (c) 2007 Starbreeze Studios - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. - -Originally Written by: Marten Svanfeldt -ReWritten by: Francisco León -*/ - - - -#include "btBulletDynamicsCommon.h" -#include "GlutStuff.h" -#include "GL_ShapeDrawer.h" - -#include "LinearMath/btIDebugDraw.h" - -#include "GLDebugDrawer.h" -#include "GenericJointDemo.h" - - - -GLDebugDrawer debugDrawer; - - - - - - -void GenericJointDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - // Setup the basic world - - btDefaultCollisionConfiguration * collision_config = new btDefaultCollisionConfiguration(); - - btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collision_config); - - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax(10000,10000,10000); - btBroadphaseInterface* overlappingPairCache = new btAxisSweep3 (worldAabbMin, worldAabbMax); - - btConstraintSolver* constraintSolver = new btSequentialImpulseConstraintSolver; - - - m_dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,overlappingPairCache,constraintSolver,collision_config); - - m_dynamicsWorld->setGravity(btVector3(0,-30,0)); - - m_dynamicsWorld->setDebugDrawer(&debugDrawer); - - // Setup a big ground box - { - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(200.),btScalar(10.),btScalar(200.))); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-15,0)); - localCreateRigidBody(btScalar(0.),groundTransform,groundShape); - } - - // Spawn one ragdoll - spawnRagdoll(); - - clientResetScene(); -} - -void GenericJointDemo::spawnRagdoll(bool random) -{ - RagDoll* ragDoll = new RagDoll (m_dynamicsWorld, btVector3 (0,0,10),5.f); - m_ragdolls.push_back(ragDoll); -} - -void GenericJointDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - float minFPS = 1000000.f/60.f; - if (ms > minFPS) - ms = minFPS; - - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - glFlush(); - - swapBuffers(); -} - -void GenericJointDemo::displayCallback() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - swapBuffers(); -} - -void GenericJointDemo::keyboardCallback(unsigned char key, int x, int y) -{ - switch (key) - { - case 'e': - spawnRagdoll(true); - break; - default: - DemoApplication::keyboardCallback(key, x, y); - } - - -} diff --git a/Demos/GenericJointDemo/GenericJointDemo.h b/Demos/GenericJointDemo/GenericJointDemo.h deleted file mode 100644 index 68a11c052..000000000 --- a/Demos/GenericJointDemo/GenericJointDemo.h +++ /dev/null @@ -1,51 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -GenericJointDemo -Copyright (c) 2007 Starbreeze Studios - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. - -Written by: Marten Svanfeldt -*/ - -#ifndef GENERIGJOINTDEMO_H -#define GENERIGJOINTDEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" -#include "Ragdoll.h" - -class GenericJointDemo : public PlatformDemoApplication -{ - - btAlignedObjectArray m_ragdolls; - -public: - void initPhysics(); - - void spawnRagdoll(bool random = false); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void keyboardCallback(unsigned char key, int x, int y); -}; - - -#endif diff --git a/Demos/GenericJointDemo/Ragdoll.cpp b/Demos/GenericJointDemo/Ragdoll.cpp deleted file mode 100644 index 0229f5ab5..000000000 --- a/Demos/GenericJointDemo/Ragdoll.cpp +++ /dev/null @@ -1,373 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Ragdoll Demo -Copyright (c) 2007 Starbreeze Studios - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. - -Written by: Marten Svanfeldt -*/ - -#include "Ragdoll.h" - -//#define RIGID 1 - -RagDoll::RagDoll (btDynamicsWorld* ownerWorld, const btVector3& positionOffset, - btScalar scale_ragdoll) : m_ownerWorld (ownerWorld) -{ - - - // Setup the geometry - m_shapes[BODYPART_PELVIS] = new btCapsuleShape( - btScalar(scale_ragdoll*0.15), btScalar(scale_ragdoll*0.20)); - m_shapes[BODYPART_SPINE] = new btCapsuleShape( - btScalar(scale_ragdoll*0.15), btScalar(scale_ragdoll*0.28)); - m_shapes[BODYPART_HEAD] = new btCapsuleShape(btScalar(scale_ragdoll*0.10), btScalar(scale_ragdoll*0.05)); - m_shapes[BODYPART_LEFT_UPPER_LEG] = new btCapsuleShape(btScalar(scale_ragdoll*0.07), btScalar(scale_ragdoll*0.45)); - m_shapes[BODYPART_LEFT_LOWER_LEG] = new btCapsuleShape(btScalar(scale_ragdoll*0.05), btScalar(scale_ragdoll*0.37)); - m_shapes[BODYPART_RIGHT_UPPER_LEG] = new btCapsuleShape(btScalar(scale_ragdoll*0.07), btScalar(scale_ragdoll*0.45)); - m_shapes[BODYPART_RIGHT_LOWER_LEG] = new btCapsuleShape(btScalar(scale_ragdoll*0.05), btScalar(scale_ragdoll*0.37)); - m_shapes[BODYPART_LEFT_UPPER_ARM] = new btCapsuleShape(btScalar(scale_ragdoll*0.05), btScalar(scale_ragdoll*0.33)); - m_shapes[BODYPART_LEFT_LOWER_ARM] = new btCapsuleShape(btScalar(scale_ragdoll*0.04), btScalar(scale_ragdoll*0.25)); - m_shapes[BODYPART_RIGHT_UPPER_ARM] = new btCapsuleShape(btScalar(scale_ragdoll*0.05), btScalar(scale_ragdoll*0.33)); - m_shapes[BODYPART_RIGHT_LOWER_ARM] = new btCapsuleShape(btScalar(scale_ragdoll*0.04), btScalar(scale_ragdoll*0.25)); - - // Setup all the rigid bodies - btTransform offset; offset.setIdentity(); - offset.setOrigin(positionOffset); - - btTransform transform; - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(scale_ragdoll*1.), btScalar(0.))); - m_bodies[BODYPART_PELVIS] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(scale_ragdoll*1.2), btScalar(0.))); - m_bodies[BODYPART_SPINE] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(scale_ragdoll*1.6), btScalar(0.))); - m_bodies[BODYPART_HEAD] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18*scale_ragdoll), btScalar(0.65*scale_ragdoll), -btScalar(0.))); - m_bodies[BODYPART_LEFT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18*scale_ragdoll), btScalar(0.2*scale_ragdoll), btScalar(0.))); - m_bodies[BODYPART_LEFT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18*scale_ragdoll), btScalar(0.65*scale_ragdoll), btScalar(0.))); - m_bodies[BODYPART_RIGHT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18*scale_ragdoll), btScalar(0.2*scale_ragdoll), btScalar(0.))); - m_bodies[BODYPART_RIGHT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.35*scale_ragdoll), btScalar(1.45*scale_ragdoll), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); - m_bodies[BODYPART_LEFT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.7*scale_ragdoll), btScalar(1.45*scale_ragdoll), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); - m_bodies[BODYPART_LEFT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.35*scale_ragdoll), btScalar(1.45*scale_ragdoll), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-SIMD_HALF_PI); - m_bodies[BODYPART_RIGHT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.7*scale_ragdoll), btScalar(1.45*scale_ragdoll), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-SIMD_HALF_PI); - m_bodies[BODYPART_RIGHT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); - - // Setup some damping on the m_bodies - for (int i = 0; i < BODYPART_COUNT; ++i) - { - m_bodies[i]->setDamping(0.05f, 0.85f); - m_bodies[i]->setDeactivationTime(0.8f); - m_bodies[i]->setSleepingThresholds(1.6f, 2.5f); - } - -///////////////////////////// SETTING THE CONSTRAINTS /////////////////////////////////////////////7777 - // Now setup the constraints - btGeneric6DofConstraint * joint6DOF; - btTransform localA, localB; - bool useLinearReferenceFrameA = true; -/// ******* SPINE HEAD ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.), btScalar(0.30*scale_ragdoll), btScalar(0.))); - - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14*scale_ragdoll), btScalar(0.))); - - joint6DOF = new btGeneric6DofConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_HEAD], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_PI*0.3f,-SIMD_EPSILON,-SIMD_PI*0.3f)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.5f,SIMD_EPSILON,SIMD_PI*0.3f)); -#endif - m_joints[JOINT_SPINE_HEAD] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_SPINE_HEAD], true); - } -/// *************************** /// - - - - -/// ******* LEFT SHOULDER ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(-0.2*scale_ragdoll), btScalar(0.15*scale_ragdoll), btScalar(0.))); - - localB.getBasis().setEulerZYX(SIMD_HALF_PI,0,-SIMD_HALF_PI); - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18*scale_ragdoll), btScalar(0.))); - - joint6DOF = new btGeneric6DofConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_LEFT_UPPER_ARM], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_PI*0.8f,-SIMD_EPSILON,-SIMD_PI*0.5f)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.8f,SIMD_EPSILON,SIMD_PI*0.5f)); -#endif - m_joints[JOINT_LEFT_SHOULDER] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_SHOULDER], true); - } -/// *************************** /// - - -/// ******* RIGHT SHOULDER ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.2*scale_ragdoll), btScalar(0.15*scale_ragdoll), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_RIGHT_UPPER_ARM], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_PI*0.8f,-SIMD_EPSILON,-SIMD_PI*0.5f)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.8f,SIMD_EPSILON,SIMD_PI*0.5f)); -#endif - m_joints[JOINT_RIGHT_SHOULDER] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_SHOULDER], true); - } -/// *************************** /// - -/// ******* LEFT ELBOW ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18*scale_ragdoll), btScalar(0.))); - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint (*m_bodies[BODYPART_LEFT_UPPER_ARM], *m_bodies[BODYPART_LEFT_LOWER_ARM], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.7f,SIMD_EPSILON,SIMD_EPSILON)); -#endif - m_joints[JOINT_LEFT_ELBOW] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_ELBOW], true); - } -/// *************************** /// - -/// ******* RIGHT ELBOW ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18*scale_ragdoll), btScalar(0.))); - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint (*m_bodies[BODYPART_RIGHT_UPPER_ARM], *m_bodies[BODYPART_RIGHT_LOWER_ARM], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.7,SIMD_EPSILON,SIMD_EPSILON)); -#endif - - m_joints[JOINT_RIGHT_ELBOW] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_ELBOW], true); - } -/// *************************** /// - - -/// ******* PELVIS ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); - localA.setOrigin(btVector3(btScalar(0.), btScalar(0.15*scale_ragdoll), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); - localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.15*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint (*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_SPINE], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_PI*0.2,-SIMD_EPSILON,-SIMD_PI*0.3)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.2,SIMD_EPSILON,SIMD_PI*0.6)); -#endif - m_joints[JOINT_PELVIS_SPINE] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_PELVIS_SPINE], true); - } -/// *************************** /// - -/// ******* LEFT HIP ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(-0.18*scale_ragdoll), btScalar(-0.10*scale_ragdoll), btScalar(0.))); - - localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225*scale_ragdoll), btScalar(0.))); - - joint6DOF = new btGeneric6DofConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_LEFT_UPPER_LEG], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_HALF_PI*0.5,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_HALF_PI*0.8,SIMD_EPSILON,SIMD_HALF_PI*0.6f)); -#endif - m_joints[JOINT_LEFT_HIP] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_HIP], true); - } -/// *************************** /// - - -/// ******* RIGHT HIP ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.18*scale_ragdoll), btScalar(-0.10*scale_ragdoll), btScalar(0.))); - localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225*scale_ragdoll), btScalar(0.))); - - joint6DOF = new btGeneric6DofConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_RIGHT_UPPER_LEG], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_HALF_PI*0.5,-SIMD_EPSILON,-SIMD_HALF_PI*0.6f)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_HALF_PI*0.8,SIMD_EPSILON,SIMD_EPSILON)); -#endif - m_joints[JOINT_RIGHT_HIP] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_HIP], true); - } -/// *************************** /// - - -/// ******* LEFT KNEE ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225*scale_ragdoll), btScalar(0.))); - localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint (*m_bodies[BODYPART_LEFT_UPPER_LEG], *m_bodies[BODYPART_LEFT_LOWER_LEG], localA, localB,useLinearReferenceFrameA); -// -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.7f,SIMD_EPSILON,SIMD_EPSILON)); -#endif - m_joints[JOINT_LEFT_KNEE] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_KNEE], true); - } -/// *************************** /// - -/// ******* RIGHT KNEE ******** /// - { - localA.setIdentity(); localB.setIdentity(); - - localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225*scale_ragdoll), btScalar(0.))); - localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185*scale_ragdoll), btScalar(0.))); - joint6DOF = new btGeneric6DofConstraint (*m_bodies[BODYPART_RIGHT_UPPER_LEG], *m_bodies[BODYPART_RIGHT_LOWER_LEG], localA, localB,useLinearReferenceFrameA); - -#ifdef RIGID - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_EPSILON,SIMD_EPSILON,SIMD_EPSILON)); -#else - joint6DOF->setAngularLowerLimit(btVector3(-SIMD_EPSILON,-SIMD_EPSILON,-SIMD_EPSILON)); - joint6DOF->setAngularUpperLimit(btVector3(SIMD_PI*0.7f,SIMD_EPSILON,SIMD_EPSILON)); -#endif - m_joints[JOINT_RIGHT_KNEE] = joint6DOF; - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_KNEE], true); - } -/// *************************** /// - -} - - -RagDoll::~RagDoll() -{ - int i; - - // Remove all constraints - for (i = 0; i < JOINT_COUNT; ++i) - { - m_ownerWorld->removeConstraint(m_joints[i]); - delete m_joints[i]; m_joints[i] = 0; - } - - // Remove all bodies and shapes - for (i = 0; i < BODYPART_COUNT; ++i) - { - m_ownerWorld->removeRigidBody(m_bodies[i]); - - delete m_bodies[i]->getMotionState(); - - delete m_bodies[i]; m_bodies[i] = 0; - delete m_shapes[i]; m_shapes[i] = 0; - } -} - - -btRigidBody* RagDoll::localCreateRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape) -{ - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,shape,localInertia); - rbInfo.m_additionalDamping = true; - btRigidBody* body = new btRigidBody(rbInfo); - - m_ownerWorld->addRigidBody(body); - - return body; -} diff --git a/Demos/GenericJointDemo/Ragdoll.h b/Demos/GenericJointDemo/Ragdoll.h deleted file mode 100644 index 29a9cbde1..000000000 --- a/Demos/GenericJointDemo/Ragdoll.h +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef RAGDOLL_H_INCLUDED -#define RAGDOLL_H_INCLUDED - -#include "DemoApplication.h" -#include "LinearMath/btAlignedObjectArray.h" -#include "btBulletDynamicsCommon.h" - - - - -class RagDoll -{ - enum - { - BODYPART_PELVIS = 0, - BODYPART_SPINE, - BODYPART_HEAD, - - BODYPART_LEFT_UPPER_LEG, - BODYPART_LEFT_LOWER_LEG, - - BODYPART_RIGHT_UPPER_LEG, - BODYPART_RIGHT_LOWER_LEG, - - BODYPART_LEFT_UPPER_ARM, - BODYPART_LEFT_LOWER_ARM, - - BODYPART_RIGHT_UPPER_ARM, - BODYPART_RIGHT_LOWER_ARM, - - BODYPART_COUNT - }; - - enum - { - JOINT_PELVIS_SPINE = 0, - JOINT_SPINE_HEAD, - - JOINT_LEFT_HIP, - JOINT_LEFT_KNEE, - - JOINT_RIGHT_HIP, - JOINT_RIGHT_KNEE, - - JOINT_LEFT_SHOULDER, - JOINT_LEFT_ELBOW, - - JOINT_RIGHT_SHOULDER, - JOINT_RIGHT_ELBOW, - - JOINT_COUNT - }; - - btDynamicsWorld* m_ownerWorld; - btCollisionShape* m_shapes[BODYPART_COUNT]; - btRigidBody* m_bodies[BODYPART_COUNT]; - btTypedConstraint* m_joints[JOINT_COUNT]; - - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape); - -public: - RagDoll (btDynamicsWorld* ownerWorld, - const btVector3& positionOffset, - btScalar scale_ragdoll = btScalar(1.0)); - - ~RagDoll (); -}; - - - -#endif // RAGDOLL_H_INCLUDED diff --git a/Demos/GenericJointDemo/Win32GenericJointDemo.cpp b/Demos/GenericJointDemo/Win32GenericJointDemo.cpp deleted file mode 100644 index 990b1fac1..000000000 --- a/Demos/GenericJointDemo/Win32GenericJointDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GenericJointDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new GenericJointDemo(); -} - -#endif diff --git a/Demos/GenericJointDemo/main.cpp b/Demos/GenericJointDemo/main.cpp deleted file mode 100644 index 4dd56b85e..000000000 --- a/Demos/GenericJointDemo/main.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GenericJointDemo.h" - -int main(int argc,char* argv[]) -{ - GenericJointDemo demoApp; -// demoApp.configDebugDrawer(&debugDrawer); - - demoApp.initPhysics(); - demoApp.setCameraDistance(btScalar(10.)); - - return glutmain(argc, argv,640,480,"Joint 6DOF - Sequencial Impulse Solver",&demoApp); - -} diff --git a/Demos/GimpactTestDemo/CMakeLists.txt b/Demos/GimpactTestDemo/CMakeLists.txt deleted file mode 100644 index fc7331c23..000000000 --- a/Demos/GimpactTestDemo/CMakeLists.txt +++ /dev/null @@ -1,45 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath GIMPACTUtils ConvexDecomposition ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppGimpactTestDemo - GimpactTestDemo.cpp - GimpactTestDemo.h - main.cpp - ) -ELSE(USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath GIMPACTUtils ConvexDecomposition ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppGimpactTestDemo - WIN32 - GimpactTestDemo.cpp - GimpactTestDemo.h - ../OpenGL/Win32AppMain.cpp - Win32GimpactDemo.cpp - ) -ENDIF(USE_GLUT) diff --git a/Demos/GimpactTestDemo/GimpactTestDemo.cpp b/Demos/GimpactTestDemo/GimpactTestDemo.cpp deleted file mode 100644 index 9e5427319..000000000 --- a/Demos/GimpactTestDemo/GimpactTestDemo.cpp +++ /dev/null @@ -1,688 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "GimpactTestDemo.h" - -#define SHOW_NUM_DEEP_PENETRATIONS - -#include "LinearMath/btDefaultMotionState.h" -#include "LinearMath/btIDebugDraw.h" -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btDefaultMotionState.h" -#include "GLDebugFont.h" -/// Including GIMPACT here - - - -#include "GLDebugDrawer.h" - -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -/// Include Torus Mesh here -#include "TorusMesh.h" -#include "BunnyMesh.h" - -#ifdef SHOW_NUM_DEEP_PENETRATIONS -extern int gNumDeepPenetrationChecks; -extern int gNumSplitImpulseRecoveries; -extern int gNumGjkChecks; -#endif // - - - -//Real dts = 0.000001f; -Real dts = 1.0 / 60.0; - - -///************************************************************************************** -/// GIMPACT Test Demo made by DevO -/// -///************************************************************************************** - - - -GimpactConcaveDemo::~GimpactConcaveDemo() -{ - - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - delete m_dynamicsWorld; - - delete m_indexVertexArrays; - delete m_trimeshShape; - - delete m_indexVertexArrays2; - delete m_trimeshShape2; - - for (i=0;igetBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); - - - int numObjects = m_dynamicsWorld->getNumCollisionObjects(); - btVector3 wireColor(1,0,0); - for (int i=0;igetCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(colObj); - - if (body && body->getMotionState()) - { - btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState(); - myMotionState->m_graphicsWorldTrans.getOpenGLMatrix(m); - } else - { - colObj->getWorldTransform().getOpenGLMatrix(m); - } - - btVector3 wireColor(1.f,1.0f,0.5f); //wants deactivation - if (i & 1) - { - wireColor = btVector3(0.f,0.0f,1.f); - } - ///color differently for active, sleeping, wantsdeactivation states - if (colObj->getActivationState() == 1) //active - { - if (i & 1) - { - wireColor += btVector3 (0.8f,0.1f,0.1f); - } else - { - wireColor += btVector3 (0.5f,0.f,0.f); - } - } - if (colObj->getActivationState() == 2) //ISLAND_SLEEPING - { - if (i & 1) - { - wireColor += btVector3 (0.5f,0.8f, 0.5f); - } else - { - wireColor += btVector3 (0.f,0.5f,0.f); - } - } - - m_shapeDrawer->drawOpenGL(m,colObj->getCollisionShape(),wireColor,getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - - float xOffset = 10.f; - float yStart = 20.f; - float yIncr = 20.f; - char buf[124]; - - glColor3f(0, 0, 0); - - setOrthographicProjection(); - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"mouse to interact"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - /* glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"space to reset"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - */ - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"cursor keys and z,x to navigate"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"i to toggle simulation, s single step"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"q to quit"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,". to shoot TRIMESH (dot)"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - // not yet hooked up again after refactoring... - -/* glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"d to toggle deactivation"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; -*/ - - /* - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"a to draw temporal AABBs"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - */ - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"h to toggle help text"); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - //bool useBulletLCP = !(getDebugMode() & btIDebugDraw::DBG_DisableBulletLCP); - - bool useCCD = ((getDebugMode() & btIDebugDraw::DBG_EnableCCD) != 0); - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"1 CCD mode (adhoc) = %i",useCCD); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"+- shooting speed = %10.2f",m_ShootBoxInitialSpeed); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - #ifdef SHOW_NUM_DEEP_PENETRATIONS - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gNumDeepPenetrationChecks = %d",gNumDeepPenetrationChecks); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gNumSplitImpulseRecoveries= %d",gNumSplitImpulseRecoveries); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - - - - glRasterPos3f(xOffset,yStart,0); - sprintf(buf,"gNumGjkChecks= %d",gNumGjkChecks); - GLDebugDrawString(xOffset,yStart,buf); - yStart += yIncr; - - #endif //SHOW_NUM_DEEP_PENETRATIONS - - - resetPerspectiveProjection(); - - - } - -} - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::initGImpactCollision() -{ - /// Create Torus Shape - { - m_indexVertexArrays = new btTriangleIndexVertexArray - (NUM_TRIANGLES, - &gIndices[0][0], - 3*sizeof(int), - NUM_VERTICES, - (Real*) &gVertices[0],sizeof(Real)*3); - - -#ifdef BULLET_GIMPACT - #ifdef BULLET_GIMPACT_CONVEX_DECOMPOSITION - btGImpactConvexDecompositionShape * trimesh = new - btGImpactConvexDecompositionShape( - m_indexVertexArrays, btVector3(1.f,1.f,1.f),btScalar(0.01)); - trimesh->setMargin(0.07); - trimesh->updateBound(); - - - #else - btGImpactMeshShape * trimesh = new btGImpactMeshShape(m_indexVertexArrays); - trimesh->setLocalScaling(btVector3(1.f,1.f,1.f)); - #ifdef BULLET_TRIANGLE_COLLISION - trimesh->setMargin(0.07f); ///????? - #else - trimesh->setMargin(0.0f); - #endif - trimesh->updateBound(); - #endif - - m_trimeshShape = trimesh; - -#else - m_trimeshShape = new btGIMPACTMeshData(m_indexVertexArrays); -#endif - - } - - /// Create Bunny Shape - { - m_indexVertexArrays2 = new btTriangleIndexVertexArray - (BUNNY_NUM_TRIANGLES, - &gIndicesBunny[0][0], - 3*sizeof(int), - BUNNY_NUM_VERTICES, - (Real*) &gVerticesBunny[0],sizeof(Real)*3); -#ifdef BULLET_GIMPACT - - #ifdef BULLET_GIMPACT_CONVEX_DECOMPOSITION - btGImpactConvexDecompositionShape * trimesh2 = new - btGImpactConvexDecompositionShape( - m_indexVertexArrays2, btVector3(4.f,4.f,4.f),btScalar(0.01)); - trimesh2->setMargin(0.07); - trimesh2->updateBound(); - #else - btGImpactMeshShape * trimesh2 = new btGImpactMeshShape(m_indexVertexArrays2); - trimesh2->setLocalScaling(btVector3(4.f,4.f,4.f)); - #ifdef BULLET_TRIANGLE_COLLISION - trimesh2->setMargin(0.07f); ///????? - #else - trimesh2->setMargin(0.0f); - #endif - trimesh2->updateBound(); - #endif - - - - m_trimeshShape2 = trimesh2; -#else - m_trimeshShape2 = new btGIMPACTMeshData(m_indexVertexArrays2); - -#endif - - } - - - ///register GIMPACT algorithm - btCollisionDispatcher * dispatcher = static_cast(m_dynamicsWorld ->getDispatcher()); - -#ifdef BULLET_GIMPACT - btGImpactCollisionAlgorithm::registerAlgorithm(dispatcher); -#else - btConcaveConcaveCollisionAlgorithm::registerAlgorithm(dispatcher); -#endif - - -} - -#ifndef BULLET_GIMPACT -btCollisionShape * GimpactConcaveDemo::createTorusShape() -{ - btGIMPACTMeshShape * newtrimeshShape = new btGIMPACTMeshShape(m_trimeshShape); - newtrimeshShape->setLocalScaling(btVector3(1.f,1.f,1.f)); - return newtrimeshShape; -} -btCollisionShape * GimpactConcaveDemo::createBunnyShape() -{ - btGIMPACTMeshShape * newtrimeshShape = new btGIMPACTMeshShape(m_trimeshShape2); - newtrimeshShape->setLocalScaling(btVector3(4.f,4.f,4.f)); - return newtrimeshShape; -} -#endif -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::initPhysics() -{ - setTexturing(true); - setShadows(false); - - setCameraDistance(45.f); - - - /// Init Bullet - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - //btOverlappingPairCache* broadphase = new btSimpleBroadphase(); - //m_broadphase = new btSimpleBroadphase(); - - int maxProxies = 1024; - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax( 10000, 10000, 10000); - m_broadphase = new bt32BitAxisSweep3(worldAabbMin,worldAabbMax,maxProxies); - - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_constraintSolver,m_collisionConfiguration); - - //create trimesh model and shape - initGImpactCollision(); - - - - /// Create Scene - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - - - btCollisionShape* staticboxShape1 = new btBoxShape(btVector3(200,1,200));//floor - m_collisionShapes.push_back(staticboxShape1); - startTransform.setOrigin(btVector3(0,-10,0)); - localCreateRigidBody(mass, startTransform,staticboxShape1); - - btCollisionShape* staticboxShape2 = new btBoxShape(btVector3(1,50,200));//left wall - m_collisionShapes.push_back(staticboxShape2); - startTransform.setOrigin(btVector3(-200,15,0)); - localCreateRigidBody(mass, startTransform,staticboxShape2); - - btCollisionShape* staticboxShape3 = new btBoxShape(btVector3(1,50,200));//right wall - m_collisionShapes.push_back(staticboxShape3); - startTransform.setOrigin(btVector3(200,15,0)); - localCreateRigidBody(mass, startTransform,staticboxShape3); - - btCollisionShape* staticboxShape4 = new btBoxShape(btVector3(200,50,1));//front wall - m_collisionShapes.push_back(staticboxShape4); - startTransform.setOrigin(btVector3(0,15,200)); - localCreateRigidBody(mass, startTransform,staticboxShape4); - - btCollisionShape* staticboxShape5 = new btBoxShape(btVector3(200,50,1));//back wall - m_collisionShapes.push_back(staticboxShape5); - startTransform.setOrigin(btVector3(0,15,-200)); - localCreateRigidBody(mass, startTransform,staticboxShape5); - - - //static plane - - btVector3 normal(-0.5,0.5,0.0); - normal.normalize(); - btCollisionShape* staticplaneShape6 = new btStaticPlaneShape(normal,0.0);// A plane - m_collisionShapes.push_back(staticplaneShape6); - startTransform.setOrigin(btVector3(0,-9,0)); - - btRigidBody* staticBody2 = localCreateRigidBody(mass, startTransform,staticplaneShape6 ); - - //another static plane - - normal.setValue(0.5,0.7,0.0); - //normal.normalize(); - btCollisionShape* staticplaneShape7 = new btStaticPlaneShape(normal,0.0);// A plane - m_collisionShapes.push_back(staticplaneShape7); - startTransform.setOrigin(btVector3(0,-10,0)); - - staticBody2 = localCreateRigidBody(mass, startTransform,staticplaneShape7 ); - - /// Create Static Torus - float height = 28; - float step = 2.5; - float massT = 1.0; - - startTransform.setOrigin(btVector3(0,height,-5)); - startTransform.setRotation(btQuaternion(3.14159265*0.5,0,3.14159265*0.5)); -#ifdef BULLET_GIMPACT - kinematicTorus = localCreateRigidBody(0.0, startTransform,m_trimeshShape); - -#else - kinematicTorus = localCreateRigidBody(0.0, startTransform,createTorusShape()); - -#endif //kinematicTorus->setCollisionFlags(kinematicTorus->getCollisionFlags()|btCollisionObject::CF_STATIC_OBJECT); - //kinematicTorus->setActivationState(ISLAND_SLEEPING); - - kinematicTorus->setCollisionFlags( kinematicTorus->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - kinematicTorus->setActivationState(DISABLE_DEACTIVATION); - - /// Kinematic - kinTorusTran = btVector3(-0.1,0,0); - kinTorusRot = btQuaternion(0,3.14159265*0.01,0); - -#ifdef TEST_GIMPACT_TORUS - -#ifdef BULLET_GIMPACT - /// Create dynamic Torus - for (int i=0;i<6;i++) - { - height -= step; - startTransform.setOrigin(btVector3(0,height,-5)); - startTransform.setRotation(btQuaternion(0,0,3.14159265*0.5)); - - btRigidBody* bodyA; - bodyA= localCreateRigidBody(massT, startTransform,m_trimeshShape); - - height -= step; - startTransform.setOrigin(btVector3(0,height,-5)); - startTransform.setRotation(btQuaternion(3.14159265*0.5,0,3.14159265*0.5)); - btRigidBody* bodyB; - bodyB= localCreateRigidBody(massT, startTransform,m_trimeshShape); - - } -#else - -/// Create dynamic Torus - for (int i=0;i<6;i++) - { - height -= step; - startTransform.setOrigin(btVector3(0,height,-5)); - startTransform.setRotation(btQuaternion(0,0,3.14159265*0.5)); - - btRigidBody* bodyA = localCreateRigidBody(massT, startTransform,createTorusShape()); - - height -= step; - startTransform.setOrigin(btVector3(0,height,-5)); - startTransform.setRotation(btQuaternion(3.14159265*0.5,0,3.14159265*0.5)); - btRigidBody* bodyB = localCreateRigidBody(massT, startTransform,createTorusShape()); - - } -#endif //no BULLET_GIMPACT -#endif - - startTransform.setIdentity(); - - - /// Create Dynamic Boxes - { - for (int i=0;i<8;i++) - { - btCollisionShape* boxShape = new btBoxShape(btVector3(1,1,1)); - m_collisionShapes.push_back(boxShape); - - startTransform.setOrigin(btVector3(2*i-5,2,-3)); - localCreateRigidBody(1, startTransform,boxShape); - } - } - - - //m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - -} - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::shootTrimesh(const btVector3& destination) -{ - - if (m_dynamicsWorld) - { - float mass = 4.f; - btTransform startTransform; - startTransform.setIdentity(); - btVector3 camPos = getCameraPosition(); - startTransform.setOrigin(camPos); -#ifdef BULLET_GIMPACT - btRigidBody* body = this->localCreateRigidBody(mass, startTransform,m_trimeshShape2); -#else - btRigidBody* body = this->localCreateRigidBody(mass, startTransform,createBunnyShape()); -#endif - btVector3 linVel(destination[0]-camPos[0],destination[1]-camPos[1],destination[2]-camPos[2]); - linVel.normalize(); - linVel*=m_ShootBoxInitialSpeed*0.25; - - body->getWorldTransform().setOrigin(camPos); - body->getWorldTransform().setRotation(btQuaternion(0,0,0,1)); - body->setLinearVelocity(linVel); - body->setAngularVelocity(btVector3(0,0,0)); - } -} - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - -#define USE_KINEMATIC_GROUND -#ifdef USE_KINEMATIC_GROUND - //kinTorusTran = btVector3(-0.05,0,0); - //kinTorusRot = btQuaternion(0,3.14159265*0.1,0); - - //kinematic object - btCollisionObject* colObj = kinematicTorus; - //is this a rigidbody with a motionstate? then use the motionstate to update positions! - if (colObj && btRigidBody::upcast(colObj) && btRigidBody::upcast(colObj)->getMotionState()) - { - btTransform newTrans; - btRigidBody::upcast(colObj)->getMotionState()->getWorldTransform(newTrans); - - newTrans.getOrigin() += kinTorusTran; - newTrans.getBasis() = newTrans.getBasis() * btMatrix3x3(kinTorusRot); - if(newTrans.getOrigin().getX() > 6.0){ - newTrans.getOrigin().setX(6.0); - kinTorusTran = -kinTorusTran; - } - if(newTrans.getOrigin().getX() < -6.0){ - newTrans.getOrigin().setX(-6.0); - kinTorusTran = -kinTorusTran; - } - - btRigidBody::upcast(colObj)->getMotionState()->setWorldTransform(newTrans); - } else - { - /* - btTransform &newTrans = m_dynamicsWorld->getCollisionObjectArray()[0]->getWorldTransform(); - newTrans.getOrigin() += kinTorusTran; - if(newTrans.getOrigin().getX() > 0.1) kinTorusTran = -kinTorusTran; - if(newTrans.getOrigin().getX() < 0.1) kinTorusTran = -kinTorusTran; - */ - } - -#endif //USE_KINEMATIC_GROUND - - - unsigned long int time = getDeltaTimeMicroseconds()/btScalar(1000); - printf("%i time %i ms \n",m_steps_done,int(time)); - -//#ifdef BULLET_GIMPACT -// printf("%i time %.1f ms \n",m_steps_done,btGImpactCollisionAlgorithm::getAverageTreeCollisionTime()); -//#else -// printf("%i time %.1f ms \n",m_steps_done,btConcaveConcaveCollisionAlgorithm::getAverageTreeCollisionTime()); -//#endif - - //float dt = float(m_clock.getTimeMicroseconds()) * dts; //0.000001f; - float dt = btScalar(1./60.); - - - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - m_steps_done++; - - //m_dynamicsWorld->stepSimulation(dts); - - renderme(); - - glFlush(); - swapBuffers(); - -} - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::clientResetScene() -{ - m_steps_done = 0; - DemoApplication::clientResetScene(); -} - -#define KEY_ESCAPE 0x1B - - -//------------------------------------------------------------------------------ -void GimpactConcaveDemo::keyboardCallback(unsigned char key, int x, int y) -{ - switch (key) - { - case '.': - { - shootTrimesh(getCameraTargetPosition()); - break; - } - - case '2': - { - dts += 0.000001f; - break; - } - case '3': - { - dts -= 0.000001f; if(dts<0.000001f) dts = 0.000001f; - break; - } - - default: - DemoApplication::keyboardCallback(key, x, y); - } -} - - - diff --git a/Demos/GimpactTestDemo/GimpactTestDemo.h b/Demos/GimpactTestDemo/GimpactTestDemo.h deleted file mode 100644 index 0b83e49c3..000000000 --- a/Demos/GimpactTestDemo/GimpactTestDemo.h +++ /dev/null @@ -1,145 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef TEST_CONCAVE_DEMO_H -#define TEST_CONCAVE_DEMO_H - - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -class btTriangleIndexVertexArray; -class btDefaultCollisionConfiguration; - -//#define BULLET_TRIANGLE_COLLISION 1 -#define BULLET_GIMPACT 1 -//#define BULLET_GIMPACT_CONVEX_DECOMPOSITION 1 - -#define TEST_GIMPACT_TORUS - -#ifdef BULLET_GIMPACT - -#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h" - #ifdef BULLET_GIMPACT_CONVEX_DECOMPOSITION - #include "../Extras/GIMPACTUtils/btGImpactConvexDecompositionShape.h" - #endif - - -#else - -#include "BulletCollision/Gimpact/btConcaveConcaveCollisionAlgorithm.h" -#include "BulletCollision/Gimpact/btGIMPACTMeshShape.h" - -#endif - - - -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; - -///GimpactConcaveDemo shows usage of static concave triangle meshes -///It also shows per-triangle material (friction/restitution) through CustomMaterialCombinerCallback -class GimpactConcaveDemo : public PlatformDemoApplication -{ - -public: - GimpactConcaveDemo() - : m_steps_done(0), - m_trimeshShape(NULL), - m_trimeshShape2(NULL), - m_indexVertexArrays(NULL), - m_indexVertexArrays2(NULL), - - - kinematicTorus(NULL), - - - m_gimpactCollisionCreateFunc(NULL), - m_collisionConfiguration(NULL), - - m_dispatcher(NULL), - - m_broadphase(NULL), - m_constraintSolver(NULL) - { - } - - virtual ~GimpactConcaveDemo(); - - - void initGImpactCollision(); - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void clientResetScene(); - - virtual void renderme(); - virtual void keyboardCallback(unsigned char key, int x, int y); - - ///Demo functions - void shootTrimesh(const btVector3& destination); - -public: ///data - unsigned int m_steps_done; - -#ifdef BULLET_GIMPACT - btCollisionShape *m_trimeshShape; - btCollisionShape *m_trimeshShape2; -#else - - btGIMPACTMeshData * m_trimeshShape; - btGIMPACTMeshData * m_trimeshShape2; - - btCollisionShape * createTorusShape(); - btCollisionShape * createBunnyShape(); - -#endif - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btTriangleIndexVertexArray *m_indexVertexArrays; - btTriangleIndexVertexArray *m_indexVertexArrays2; - - btVector3 kinTorusTran; - btQuaternion kinTorusRot; - btRigidBody *kinematicTorus; - - - btCollisionAlgorithmCreateFunc* m_gimpactCollisionCreateFunc; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - btCollisionDispatcher* m_dispatcher; - btBroadphaseInterface* m_broadphase; - btConstraintSolver* m_constraintSolver; - - static DemoApplication* Create() - { - GimpactConcaveDemo* demo = new GimpactConcaveDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -#endif //CONCAVE_DEMO_H - diff --git a/Demos/GimpactTestDemo/Win32GimpactDemo.cpp b/Demos/GimpactTestDemo/Win32GimpactDemo.cpp deleted file mode 100644 index 57cc15d8a..000000000 --- a/Demos/GimpactTestDemo/Win32GimpactDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GimpactTestDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new GimpactConcaveDemo(); -} - -#endif diff --git a/Demos/GimpactTestDemo/main.cpp b/Demos/GimpactTestDemo/main.cpp deleted file mode 100644 index 2deb72611..000000000 --- a/Demos/GimpactTestDemo/main.cpp +++ /dev/null @@ -1,13 +0,0 @@ - -#include "GimpactTestDemo.h" -#include "GlutStuff.h" - -//################################## main ##################################### -int main(int argc,char** argv) -{ - - GimpactConcaveDemo* concaveDemo = new GimpactConcaveDemo(); /// This will not be Deleted!!! - concaveDemo->initPhysics(); - - return glutmain(argc, argv,640,480,"DevO,s GIMPACT Test Demo",concaveDemo); -} diff --git a/Demos/GjkConvexCastDemo/CMakeLists.txt b/Demos/GjkConvexCastDemo/CMakeLists.txt deleted file mode 100644 index cc9037d07..000000000 --- a/Demos/GjkConvexCastDemo/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppLinearConvexCastDemo - LinearConvexCastDemo.cpp - main.cpp -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppLinearConvexCastDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppLinearConvexCastDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppLinearConvexCastDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/GjkConvexCastDemo/LinearConvexCastDemo.cpp b/Demos/GjkConvexCastDemo/LinearConvexCastDemo.cpp deleted file mode 100644 index 29fbb091c..000000000 --- a/Demos/GjkConvexCastDemo/LinearConvexCastDemo.cpp +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright (c) 2005 Erwin Coumans http://continuousphysics.com/Bullet/ - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies. - * Erwin Coumans makes no representations about the suitability - * of this software for any purpose. - * It is provided "as is" without express or implied warranty. - */ - - - -/* - LinearConvexCastDemo implements an efficient continuous collision detection algorithm. - Both linear and angular velocities are supported. Gjk or Simplex based methods. - Motion using Exponential Map. - Comparison with Screwing Motion. - Also comparision with Algebraic CCD and Interval Arithmetic methods (Stephane Redon) -*/ - - -///Low level demo, doesn't include btBulletCollisionCommon.h -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" - -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletCollision/CollisionShapes/btMinkowskiSumShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkPairDetector.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h" -#include "BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h" -#include "BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h" - - - -#include "BulletCollision/CollisionShapes/btSphereShape.h" -#include "BulletCollision/CollisionShapes/btTetrahedronShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btConvexPenetrationDepthSolver.h" - - - -#include "GL_ShapeDrawer.h" -#include "LinearConvexCastDemo.h" -#include "GlutStuff.h" - -static btVoronoiSimplexSolver sVoronoiSimplexSolver; -btSimplexSolverInterface& gGjkSimplexSolver = sVoronoiSimplexSolver; - -static float yaw=0.f,pitch=0.f,roll=0.f; -static const int maxNumObjects = 4; -static const int numObjects = 2; - -static btPolyhedralConvexShape* shapePtr[maxNumObjects]; - -static btTransform tr[numObjects]; - - - -void LinearConvexCastDemo::initPhysics() -{ - - setCameraDistance(10.f); - - tr[0].setIdentity(); - tr[0].setOrigin( btVector3( 0.0f, 5.5f, 0.0f ) ); - - tr[1].setIdentity(); - tr[1].setOrigin( btVector3( 0.0f, 0.0f, 0.0f ) ); - - // Pyramide - float r = 1.0f; - float h = 2.0f; - - btConvexHullShape* shapeA = new btConvexHullShape; - shapeA->addPoint( btVector3( 0.0f, 0.75f * h, 0.0f ) ); - shapeA->addPoint( btVector3( -r, -0.25f * h, r ) ); - shapeA->addPoint( btVector3( r, -0.25f * h, r ) ); - shapeA->addPoint( btVector3( r, -0.25f * h, -r ) ); - shapeA->addPoint( btVector3( -r, -0.25f * h, -r ) ); - - - - // Triangle - btConvexHullShape* shapeB = new btConvexHullShape; - shapeB->addPoint( btVector3( 0.0f, 1.0f, 0.0f ) ); - shapeB->addPoint( btVector3( 1.0f, -1.0f, 0.0f ) ); - shapeB->addPoint( btVector3( -1.0f, -1.0f, 0.0f ) ); - - shapePtr[0] = shapeA; - shapePtr[1] = shapeB; - - shapePtr[0]->setMargin( 0.01f ); - shapePtr[1]->setMargin( 0.01f ); -} - -//to be implemented by the demo -void LinearConvexCastDemo::clientMoveAndDisplay() -{ - displayCallback(); -} - -LinearConvexCastDemo::~LinearConvexCastDemo() -{ - delete shapePtr[0]; - delete shapePtr[1]; -} - -void LinearConvexCastDemo::displayCallback(void) -{ - updateCamera(); - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - GL_ShapeDrawer::drawCoordSystem(); - - - - static btScalar angle = 0.f; - angle+=getDeltaTimeMicroseconds()/1000000.0; - - tr[1].setRotation(btQuaternion(btVector3(1,0,0),angle)); - - btTransform toA, toB; - toA = tr[0]; - toA.setOrigin( btVector3( 0.0f, 0.f, 0.0f ) ); - toB = tr[1]; - toB.setOrigin( btVector3( 0.0f, 0.0f, 0.0f ) ); - - - gGjkSimplexSolver.reset(); - - - btVector3 worldBoundsMin(-1000,-1000,-1000); - btVector3 worldBoundsMax(1000,1000,1000); - - - //btGjkConvexCast convexCaster(shapePtr[ 0 ], shapePtr[ 1 ], &gGjkSimplexSolver ); - btSubsimplexConvexCast convexCaster( shapePtr[ 0 ], shapePtr[ 1 ], &gGjkSimplexSolver ); - - btConvexCast::CastResult result; - - result.m_hitPoint.setValue(0,0,0); - - convexCaster.calcTimeOfImpact( tr[ 0 ], toA, tr[ 1 ], toB, result ); - - ATTRIBUTE_ALIGNED16(btScalar) m1[16]; - ATTRIBUTE_ALIGNED16(btScalar) m2[16]; - ATTRIBUTE_ALIGNED16(btScalar) m3[16]; - - tr[ 0 ].getOpenGLMatrix( m1 ); - tr[ 1 ].getOpenGLMatrix( m2 ); - - btSphereShape sphere(0.2); - - btTransform tmp = tr[0]; - tmp.setOrigin(result.m_hitPoint); - tmp.getOpenGLMatrix(m3); - m_shapeDrawer->drawOpenGL( m3, &sphere, btVector3( 1, 0, 1 ), getDebugMode() ,worldBoundsMin,worldBoundsMax); - - - m_shapeDrawer->drawOpenGL( m1, shapePtr[ 0 ], btVector3( 1, 0, 0 ), getDebugMode() ,worldBoundsMin,worldBoundsMax); - m_shapeDrawer->drawOpenGL( m2, shapePtr[ 1 ], btVector3( 1, 0, 0 ), getDebugMode() ,worldBoundsMin,worldBoundsMax); - - btVector3 originA, originB; - originA.setInterpolate3( tr[ 0 ].getOrigin(), toA.getOrigin(), result.m_fraction ); - originB.setInterpolate3( tr[ 1 ].getOrigin(), toB.getOrigin(), result.m_fraction ); - - btTransform A = tr[ 0 ]; - A.setOrigin( originA ); - - btTransform B = tr[ 1 ]; - B.setOrigin( originB ); - - A.getOpenGLMatrix( m1 ); - B.getOpenGLMatrix( m2 ); - - m_shapeDrawer->drawOpenGL( m1, shapePtr[ 0 ], btVector3( 1, 1, 0 ), getDebugMode() ,worldBoundsMin,worldBoundsMax); - m_shapeDrawer->drawOpenGL( m2, shapePtr[ 1 ], btVector3( 1, 1, 0 ), getDebugMode() ,worldBoundsMin,worldBoundsMax); - - glFlush(); - glutSwapBuffers(); -} diff --git a/Demos/GjkConvexCastDemo/LinearConvexCastDemo.h b/Demos/GjkConvexCastDemo/LinearConvexCastDemo.h deleted file mode 100644 index 9b64d2855..000000000 --- a/Demos/GjkConvexCastDemo/LinearConvexCastDemo.h +++ /dev/null @@ -1,44 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef LINEAR_CONVEX_CAST_DEMO_H -#define LINEAR_CONVEX_CAST_DEMO_H - -#include "GlutDemoApplication.h" - -///LinearConvexCastDemo shows the working of the object sweep / pure-linear continuous collision detection query -class LinearConvexCastDemo : public GlutDemoApplication -{ - public: - - virtual ~LinearConvexCastDemo(); - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - LinearConvexCastDemo* demo = new LinearConvexCastDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - -}; - -#endif //LINEAR_CONVEX_CAST_DEMO_H - diff --git a/Demos/GjkConvexCastDemo/main.cpp b/Demos/GjkConvexCastDemo/main.cpp deleted file mode 100644 index 3c2748a7f..000000000 --- a/Demos/GjkConvexCastDemo/main.cpp +++ /dev/null @@ -1,17 +0,0 @@ - -#include "LinearConvexCastDemo.h" -#include "GlutStuff.h" - -int screenWidth = 640; -int screenHeight = 480; - -int main(int argc,char** argv) -{ - - LinearConvexCastDemo* linearCastDemo = new LinearConvexCastDemo(); - - linearCastDemo->initPhysics(); - - - return glutmain(argc, argv,screenWidth,screenHeight,"Linear Convex Cast Demo",linearCastDemo); -} diff --git a/Demos/Glut/GL/freeglut.h b/Demos/Glut/GL/freeglut.h deleted file mode 100644 index 0e6f8c6ad..000000000 --- a/Demos/Glut/GL/freeglut.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __FREEGLUT_H__ -#define __FREEGLUT_H__ - -/* - * freeglut.h - * - * The freeglut library include file - * - * 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 - * PAWEL W. OLSZTA 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 "freeglut_std.h" -#include "freeglut_ext.h" - -/*** END OF FILE ***/ - -#endif /* __FREEGLUT_H__ */ diff --git a/Demos/Glut/GL/freeglut_ext.h b/Demos/Glut/GL/freeglut_ext.h deleted file mode 100644 index e547c56d8..000000000 --- a/Demos/Glut/GL/freeglut_ext.h +++ /dev/null @@ -1,239 +0,0 @@ -#ifndef __FREEGLUT_EXT_H__ -#define __FREEGLUT_EXT_H__ - -/* - * freeglut_ext.h - * - * The non-GLUT-compatible extensions to the freeglut library include file - * - * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. - * Written by Pawel W. Olszta, - * Creation date: Thu Dec 2 1999 - * - * 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 above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * 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 - * PAWEL W. OLSZTA 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. - */ - -#ifdef __cplusplus - extern "C" { -#endif - -/* - * Additional GLUT Key definitions for the Special key function - */ -#define GLUT_KEY_NUM_LOCK 0x006D -#define GLUT_KEY_BEGIN 0x006E -#define GLUT_KEY_DELETE 0x006F -#define GLUT_KEY_SHIFT_L 0x0070 -#define GLUT_KEY_SHIFT_R 0x0071 -#define GLUT_KEY_CTRL_L 0x0072 -#define GLUT_KEY_CTRL_R 0x0073 -#define GLUT_KEY_ALT_L 0x0074 -#define GLUT_KEY_ALT_R 0x0075 - -/* - * GLUT API Extension macro definitions -- behaviour when the user clicks on an "x" to close a window - */ -#define GLUT_ACTION_EXIT 0 -#define GLUT_ACTION_GLUTMAINLOOP_RETURNS 1 -#define GLUT_ACTION_CONTINUE_EXECUTION 2 - -/* - * Create a new rendering context when the user opens a new window? - */ -#define GLUT_CREATE_NEW_CONTEXT 0 -#define GLUT_USE_CURRENT_CONTEXT 1 - -/* - * Direct/Indirect rendering context options (has meaning only in Unix/X11) - */ -#define GLUT_FORCE_INDIRECT_CONTEXT 0 -#define GLUT_ALLOW_DIRECT_CONTEXT 1 -#define GLUT_TRY_DIRECT_CONTEXT 2 -#define GLUT_FORCE_DIRECT_CONTEXT 3 - -/* - * GLUT API Extension macro definitions -- the glutGet parameters - */ -#define GLUT_INIT_STATE 0x007C - -#define GLUT_ACTION_ON_WINDOW_CLOSE 0x01F9 - -#define GLUT_WINDOW_BORDER_WIDTH 0x01FA -#define GLUT_WINDOW_BORDER_HEIGHT 0x01FB -#define GLUT_WINDOW_HEADER_HEIGHT 0x01FB /* Docs say it should always have been GLUT_WINDOW_BORDER_HEIGHT, keep this for backward compatibility */ - -#define GLUT_VERSION 0x01FC - -#define GLUT_RENDERING_CONTEXT 0x01FD -#define GLUT_DIRECT_RENDERING 0x01FE - -#define GLUT_FULL_SCREEN 0x01FF - -#define GLUT_SKIP_STALE_MOTION_EVENTS 0x0204 - -/* - * New tokens for glutInitDisplayMode. - * Only one GLUT_AUXn bit may be used at a time. - * Value 0x0400 is defined in OpenGLUT. - */ -#define GLUT_AUX 0x1000 - -#define GLUT_AUX1 0x1000 -#define GLUT_AUX2 0x2000 -#define GLUT_AUX3 0x4000 -#define GLUT_AUX4 0x8000 - -/* - * Context-related flags, see freeglut_state.c - */ -#define GLUT_INIT_MAJOR_VERSION 0x0200 -#define GLUT_INIT_MINOR_VERSION 0x0201 -#define GLUT_INIT_FLAGS 0x0202 -#define GLUT_INIT_PROFILE 0x0203 - -/* - * Flags for glutInitContextFlags, see freeglut_init.c - */ -#define GLUT_DEBUG 0x0001 -#define GLUT_FORWARD_COMPATIBLE 0x0002 - - -/* - * Flags for glutInitContextProfile, see freeglut_init.c - */ -#define GLUT_CORE_PROFILE 0x0001 -#define GLUT_COMPATIBILITY_PROFILE 0x0002 - -/* - * Process loop function, see freeglut_main.c - */ -FGAPI void FGAPIENTRY glutMainLoopEvent( void ); -FGAPI void FGAPIENTRY glutLeaveMainLoop( void ); -FGAPI void FGAPIENTRY glutExit ( void ); - -/* - * Window management functions, see freeglut_window.c - */ -FGAPI void FGAPIENTRY glutFullScreenToggle( void ); -FGAPI void FGAPIENTRY glutLeaveFullScreen( void ); - -/* - * Window-specific callback functions, see freeglut_callbacks.c - */ -FGAPI void FGAPIENTRY glutMouseWheelFunc( void (* callback)( int, int, int, int ) ); -FGAPI void FGAPIENTRY glutCloseFunc( void (* callback)( void ) ); -FGAPI void FGAPIENTRY glutWMCloseFunc( void (* callback)( void ) ); -/* A. Donev: Also a destruction callback for menus */ -FGAPI void FGAPIENTRY glutMenuDestroyFunc( void (* callback)( void ) ); - -/* - * State setting and retrieval functions, see freeglut_state.c - */ -FGAPI void FGAPIENTRY glutSetOption ( GLenum option_flag, int value ); -FGAPI int * FGAPIENTRY glutGetModeValues(GLenum mode, int * size); -/* A.Donev: User-data manipulation */ -FGAPI void* FGAPIENTRY glutGetWindowData( void ); -FGAPI void FGAPIENTRY glutSetWindowData(void* data); -FGAPI void* FGAPIENTRY glutGetMenuData( void ); -FGAPI void FGAPIENTRY glutSetMenuData(void* data); - -/* - * Font stuff, see freeglut_font.c - */ -FGAPI int FGAPIENTRY glutBitmapHeight( void* font ); -FGAPI GLfloat FGAPIENTRY glutStrokeHeight( void* font ); -FGAPI void FGAPIENTRY glutBitmapString( void* font, const unsigned char *string ); -FGAPI void FGAPIENTRY glutStrokeString( void* font, const unsigned char *string ); - -/* - * Geometry functions, see freeglut_geometry.c - */ -FGAPI void FGAPIENTRY glutWireRhombicDodecahedron( void ); -FGAPI void FGAPIENTRY glutSolidRhombicDodecahedron( void ); -FGAPI void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); -FGAPI void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale ); -FGAPI void FGAPIENTRY glutWireCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); -FGAPI void FGAPIENTRY glutSolidCylinder( GLdouble radius, GLdouble height, GLint slices, GLint stacks); - -/* - * Extension functions, see freeglut_ext.c - */ -typedef void (*GLUTproc)(); -FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName ); - -/* - * Multi-touch/multi-pointer extensions - */ - -#define GLUT_HAS_MULTI 1 - -FGAPI void FGAPIENTRY glutMultiEntryFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutMultiButtonFunc( void (* callback)( int, int, int, int, int ) ); -FGAPI void FGAPIENTRY glutMultiMotionFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutMultiPassiveFunc( void (* callback)( int, int, int ) ); - -/* - * Joystick functions, see freeglut_joystick.c - */ -/* USE OF THESE FUNCTIONS IS DEPRECATED !!!!! */ -/* If you have a serious need for these functions in your application, please either - * contact the "freeglut" developer community at freeglut-developer@lists.sourceforge.net, - * switch to the OpenGLUT library, or else port your joystick functionality over to PLIB's - * "js" library. - */ -int glutJoystickGetNumAxes( int ident ); -int glutJoystickGetNumButtons( int ident ); -int glutJoystickNotWorking( int ident ); -float glutJoystickGetDeadBand( int ident, int axis ); -void glutJoystickSetDeadBand( int ident, int axis, float db ); -float glutJoystickGetSaturation( int ident, int axis ); -void glutJoystickSetSaturation( int ident, int axis, float st ); -void glutJoystickSetMinRange( int ident, float *axes ); -void glutJoystickSetMaxRange( int ident, float *axes ); -void glutJoystickSetCenter( int ident, float *axes ); -void glutJoystickGetMinRange( int ident, float *axes ); -void glutJoystickGetMaxRange( int ident, float *axes ); -void glutJoystickGetCenter( int ident, float *axes ); - -/* - * Initialization functions, see freeglut_init.c - */ -FGAPI void FGAPIENTRY glutInitContextVersion( int majorVersion, int minorVersion ); -FGAPI void FGAPIENTRY glutInitContextFlags( int flags ); -FGAPI void FGAPIENTRY glutInitContextProfile( int profile ); - -/* to get the typedef for va_list */ -#include - -FGAPI void FGAPIENTRY glutInitErrorFunc( void (* vError)( const char *fmt, va_list ap ) ); -FGAPI void FGAPIENTRY glutInitWarningFunc( void (* vWarning)( const char *fmt, va_list ap ) ); - -/* - * GLUT API macro definitions -- the display mode definitions - */ -#define GLUT_CAPTIONLESS 0x0400 -#define GLUT_BORDERLESS 0x0800 -#define GLUT_SRGB 0x1000 - -#ifdef __cplusplus - } -#endif - -/*** END OF FILE ***/ - -#endif /* __FREEGLUT_EXT_H__ */ diff --git a/Demos/Glut/GL/freeglut_std.h b/Demos/Glut/GL/freeglut_std.h deleted file mode 100644 index 02c5c671f..000000000 --- a/Demos/Glut/GL/freeglut_std.h +++ /dev/null @@ -1,630 +0,0 @@ -#ifndef __FREEGLUT_STD_H__ -#define __FREEGLUT_STD_H__ - -/* - * freeglut_std.h - * - * The GLUT-compatible part of the freeglut library include file - * - * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. - * Written by Pawel W. Olszta, - * Creation date: Thu Dec 2 1999 - * - * 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 above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * 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 - * PAWEL W. OLSZTA 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. - */ - -#ifdef __cplusplus - extern "C" { -#endif - -/* - * Under windows, we have to differentiate between static and dynamic libraries - */ -#ifdef _WIN32 -/* #pragma may not be supported by some compilers. - * Discussion by FreeGLUT developers suggests that - * Visual C++ specific code involving pragmas may - * need to move to a separate header. 24th Dec 2003 - */ - -/* Define FREEGLUT_LIB_PRAGMAS to 1 to include library - * pragmas or to 0 to exclude library pragmas. - * The default behavior depends on the compiler/platform. - */ -# ifndef FREEGLUT_LIB_PRAGMAS -# if ( defined(_MSC_VER) || defined(__WATCOMC__) ) && !defined(_WIN32_WCE) -# define FREEGLUT_LIB_PRAGMAS 0 -# else -# define FREEGLUT_LIB_PRAGMAS 0 -# endif -# endif - -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN 1 -# endif -# ifndef NOMINMAX -# define NOMINMAX -# endif -# include - -/* Windows static library */ -# ifdef FREEGLUT_STATIC - -# define FGAPI -# define FGAPIENTRY - - /* Link with Win32 static freeglut lib */ - -/* Windows shared library (DLL) */ -# else - -# define FGAPIENTRY __stdcall -# if defined(FREEGLUT_EXPORTS) -# define FGAPI __declspec(dllexport) -# else -# define FGAPI __declspec(dllimport) - - /* Link with Win32 shared freeglut lib */ - -# endif - -# endif - -/* Drag in other Windows libraries as required by FreeGLUT */ -# if FREEGLUT_LIB_PRAGMAS -# pragma comment (lib, "glu32.lib") /* link OpenGL Utility lib */ -# pragma comment (lib, "opengl32.lib") /* link Microsoft OpenGL lib */ -# pragma comment (lib, "gdi32.lib") /* link Windows GDI lib */ -# pragma comment (lib, "winmm.lib") /* link Windows MultiMedia lib */ -# pragma comment (lib, "user32.lib") /* link Windows user lib */ -# endif - -#else - -/* Non-Windows definition of FGAPI and FGAPIENTRY */ -# define FGAPI -# define FGAPIENTRY - -#endif - -/* - * The freeglut and GLUT API versions - */ -#define FREEGLUT 1 -#define GLUT_API_VERSION 4 -#define GLUT_XLIB_IMPLEMENTATION 13 -/* Deprecated: - cf. http://sourceforge.net/mailarchive/forum.php?thread_name=CABcAi1hw7cr4xtigckaGXB5X8wddLfMcbA_rZ3NAuwMrX_zmsw%40mail.gmail.com&forum_name=freeglut-developer */ -#define FREEGLUT_VERSION_2_0 1 - -/* - * Always include OpenGL and GLU headers - */ -#if __APPLE__ -# include -# include -#else -# include -# include -#endif - -/* - * GLUT API macro definitions -- the special key codes: - */ -#define GLUT_KEY_F1 0x0001 -#define GLUT_KEY_F2 0x0002 -#define GLUT_KEY_F3 0x0003 -#define GLUT_KEY_F4 0x0004 -#define GLUT_KEY_F5 0x0005 -#define GLUT_KEY_F6 0x0006 -#define GLUT_KEY_F7 0x0007 -#define GLUT_KEY_F8 0x0008 -#define GLUT_KEY_F9 0x0009 -#define GLUT_KEY_F10 0x000A -#define GLUT_KEY_F11 0x000B -#define GLUT_KEY_F12 0x000C -#define GLUT_KEY_LEFT 0x0064 -#define GLUT_KEY_UP 0x0065 -#define GLUT_KEY_RIGHT 0x0066 -#define GLUT_KEY_DOWN 0x0067 -#define GLUT_KEY_PAGE_UP 0x0068 -#define GLUT_KEY_PAGE_DOWN 0x0069 -#define GLUT_KEY_HOME 0x006A -#define GLUT_KEY_END 0x006B -#define GLUT_KEY_INSERT 0x006C - -/* - * GLUT API macro definitions -- mouse state definitions - */ -#define GLUT_LEFT_BUTTON 0x0000 -#define GLUT_MIDDLE_BUTTON 0x0001 -#define GLUT_RIGHT_BUTTON 0x0002 -#define GLUT_DOWN 0x0000 -#define GLUT_UP 0x0001 -#define GLUT_LEFT 0x0000 -#define GLUT_ENTERED 0x0001 - -/* - * GLUT API macro definitions -- the display mode definitions - */ -#define GLUT_RGB 0x0000 -#define GLUT_RGBA 0x0000 -#define GLUT_INDEX 0x0001 -#define GLUT_SINGLE 0x0000 -#define GLUT_DOUBLE 0x0002 -#define GLUT_ACCUM 0x0004 -#define GLUT_ALPHA 0x0008 -#define GLUT_DEPTH 0x0010 -#define GLUT_STENCIL 0x0020 -#define GLUT_MULTISAMPLE 0x0080 -#define GLUT_STEREO 0x0100 -#define GLUT_LUMINANCE 0x0200 - -/* - * GLUT API macro definitions -- windows and menu related definitions - */ -#define GLUT_MENU_NOT_IN_USE 0x0000 -#define GLUT_MENU_IN_USE 0x0001 -#define GLUT_NOT_VISIBLE 0x0000 -#define GLUT_VISIBLE 0x0001 -#define GLUT_HIDDEN 0x0000 -#define GLUT_FULLY_RETAINED 0x0001 -#define GLUT_PARTIALLY_RETAINED 0x0002 -#define GLUT_FULLY_COVERED 0x0003 - -/* - * GLUT API macro definitions -- fonts definitions - * - * Steve Baker suggested to make it binary compatible with GLUT: - */ -#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__WATCOMC__) -# define GLUT_STROKE_ROMAN ((void *)0x0000) -# define GLUT_STROKE_MONO_ROMAN ((void *)0x0001) -# define GLUT_BITMAP_9_BY_15 ((void *)0x0002) -# define GLUT_BITMAP_8_BY_13 ((void *)0x0003) -# define GLUT_BITMAP_TIMES_ROMAN_10 ((void *)0x0004) -# define GLUT_BITMAP_TIMES_ROMAN_24 ((void *)0x0005) -# define GLUT_BITMAP_HELVETICA_10 ((void *)0x0006) -# define GLUT_BITMAP_HELVETICA_12 ((void *)0x0007) -# define GLUT_BITMAP_HELVETICA_18 ((void *)0x0008) -#else - /* - * I don't really know if it's a good idea... But here it goes: - */ - extern void* glutStrokeRoman; - extern void* glutStrokeMonoRoman; - extern void* glutBitmap9By15; - extern void* glutBitmap8By13; - extern void* glutBitmapTimesRoman10; - extern void* glutBitmapTimesRoman24; - extern void* glutBitmapHelvetica10; - extern void* glutBitmapHelvetica12; - extern void* glutBitmapHelvetica18; - - /* - * Those pointers will be used by following definitions: - */ -# define GLUT_STROKE_ROMAN ((void *) &glutStrokeRoman) -# define GLUT_STROKE_MONO_ROMAN ((void *) &glutStrokeMonoRoman) -# define GLUT_BITMAP_9_BY_15 ((void *) &glutBitmap9By15) -# define GLUT_BITMAP_8_BY_13 ((void *) &glutBitmap8By13) -# define GLUT_BITMAP_TIMES_ROMAN_10 ((void *) &glutBitmapTimesRoman10) -# define GLUT_BITMAP_TIMES_ROMAN_24 ((void *) &glutBitmapTimesRoman24) -# define GLUT_BITMAP_HELVETICA_10 ((void *) &glutBitmapHelvetica10) -# define GLUT_BITMAP_HELVETICA_12 ((void *) &glutBitmapHelvetica12) -# define GLUT_BITMAP_HELVETICA_18 ((void *) &glutBitmapHelvetica18) -#endif - -/* - * GLUT API macro definitions -- the glutGet parameters - */ -#define GLUT_WINDOW_X 0x0064 -#define GLUT_WINDOW_Y 0x0065 -#define GLUT_WINDOW_WIDTH 0x0066 -#define GLUT_WINDOW_HEIGHT 0x0067 -#define GLUT_WINDOW_BUFFER_SIZE 0x0068 -#define GLUT_WINDOW_STENCIL_SIZE 0x0069 -#define GLUT_WINDOW_DEPTH_SIZE 0x006A -#define GLUT_WINDOW_RED_SIZE 0x006B -#define GLUT_WINDOW_GREEN_SIZE 0x006C -#define GLUT_WINDOW_BLUE_SIZE 0x006D -#define GLUT_WINDOW_ALPHA_SIZE 0x006E -#define GLUT_WINDOW_ACCUM_RED_SIZE 0x006F -#define GLUT_WINDOW_ACCUM_GREEN_SIZE 0x0070 -#define GLUT_WINDOW_ACCUM_BLUE_SIZE 0x0071 -#define GLUT_WINDOW_ACCUM_ALPHA_SIZE 0x0072 -#define GLUT_WINDOW_DOUBLEBUFFER 0x0073 -#define GLUT_WINDOW_RGBA 0x0074 -#define GLUT_WINDOW_PARENT 0x0075 -#define GLUT_WINDOW_NUM_CHILDREN 0x0076 -#define GLUT_WINDOW_COLORMAP_SIZE 0x0077 -#define GLUT_WINDOW_NUM_SAMPLES 0x0078 -#define GLUT_WINDOW_STEREO 0x0079 -#define GLUT_WINDOW_CURSOR 0x007A - -#define GLUT_SCREEN_WIDTH 0x00C8 -#define GLUT_SCREEN_HEIGHT 0x00C9 -#define GLUT_SCREEN_WIDTH_MM 0x00CA -#define GLUT_SCREEN_HEIGHT_MM 0x00CB -#define GLUT_MENU_NUM_ITEMS 0x012C -#define GLUT_DISPLAY_MODE_POSSIBLE 0x0190 -#define GLUT_INIT_WINDOW_X 0x01F4 -#define GLUT_INIT_WINDOW_Y 0x01F5 -#define GLUT_INIT_WINDOW_WIDTH 0x01F6 -#define GLUT_INIT_WINDOW_HEIGHT 0x01F7 -#define GLUT_INIT_DISPLAY_MODE 0x01F8 -#define GLUT_ELAPSED_TIME 0x02BC -#define GLUT_WINDOW_FORMAT_ID 0x007B - -/* - * GLUT API macro definitions -- the glutDeviceGet parameters - */ -#define GLUT_HAS_KEYBOARD 0x0258 -#define GLUT_HAS_MOUSE 0x0259 -#define GLUT_HAS_SPACEBALL 0x025A -#define GLUT_HAS_DIAL_AND_BUTTON_BOX 0x025B -#define GLUT_HAS_TABLET 0x025C -#define GLUT_NUM_MOUSE_BUTTONS 0x025D -#define GLUT_NUM_SPACEBALL_BUTTONS 0x025E -#define GLUT_NUM_BUTTON_BOX_BUTTONS 0x025F -#define GLUT_NUM_DIALS 0x0260 -#define GLUT_NUM_TABLET_BUTTONS 0x0261 -#define GLUT_DEVICE_IGNORE_KEY_REPEAT 0x0262 -#define GLUT_DEVICE_KEY_REPEAT 0x0263 -#define GLUT_HAS_JOYSTICK 0x0264 -#define GLUT_OWNS_JOYSTICK 0x0265 -#define GLUT_JOYSTICK_BUTTONS 0x0266 -#define GLUT_JOYSTICK_AXES 0x0267 -#define GLUT_JOYSTICK_POLL_RATE 0x0268 - -/* - * GLUT API macro definitions -- the glutLayerGet parameters - */ -#define GLUT_OVERLAY_POSSIBLE 0x0320 -#define GLUT_LAYER_IN_USE 0x0321 -#define GLUT_HAS_OVERLAY 0x0322 -#define GLUT_TRANSPARENT_INDEX 0x0323 -#define GLUT_NORMAL_DAMAGED 0x0324 -#define GLUT_OVERLAY_DAMAGED 0x0325 - -/* - * GLUT API macro definitions -- the glutVideoResizeGet parameters - */ -#define GLUT_VIDEO_RESIZE_POSSIBLE 0x0384 -#define GLUT_VIDEO_RESIZE_IN_USE 0x0385 -#define GLUT_VIDEO_RESIZE_X_DELTA 0x0386 -#define GLUT_VIDEO_RESIZE_Y_DELTA 0x0387 -#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 0x0388 -#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 0x0389 -#define GLUT_VIDEO_RESIZE_X 0x038A -#define GLUT_VIDEO_RESIZE_Y 0x038B -#define GLUT_VIDEO_RESIZE_WIDTH 0x038C -#define GLUT_VIDEO_RESIZE_HEIGHT 0x038D - -/* - * GLUT API macro definitions -- the glutUseLayer parameters - */ -#define GLUT_NORMAL 0x0000 -#define GLUT_OVERLAY 0x0001 - -/* - * GLUT API macro definitions -- the glutGetModifiers parameters - */ -#define GLUT_ACTIVE_SHIFT 0x0001 -#define GLUT_ACTIVE_CTRL 0x0002 -#define GLUT_ACTIVE_ALT 0x0004 - -/* - * GLUT API macro definitions -- the glutSetCursor parameters - */ -#define GLUT_CURSOR_RIGHT_ARROW 0x0000 -#define GLUT_CURSOR_LEFT_ARROW 0x0001 -#define GLUT_CURSOR_INFO 0x0002 -#define GLUT_CURSOR_DESTROY 0x0003 -#define GLUT_CURSOR_HELP 0x0004 -#define GLUT_CURSOR_CYCLE 0x0005 -#define GLUT_CURSOR_SPRAY 0x0006 -#define GLUT_CURSOR_WAIT 0x0007 -#define GLUT_CURSOR_TEXT 0x0008 -#define GLUT_CURSOR_CROSSHAIR 0x0009 -#define GLUT_CURSOR_UP_DOWN 0x000A -#define GLUT_CURSOR_LEFT_RIGHT 0x000B -#define GLUT_CURSOR_TOP_SIDE 0x000C -#define GLUT_CURSOR_BOTTOM_SIDE 0x000D -#define GLUT_CURSOR_LEFT_SIDE 0x000E -#define GLUT_CURSOR_RIGHT_SIDE 0x000F -#define GLUT_CURSOR_TOP_LEFT_CORNER 0x0010 -#define GLUT_CURSOR_TOP_RIGHT_CORNER 0x0011 -#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 0x0012 -#define GLUT_CURSOR_BOTTOM_LEFT_CORNER 0x0013 -#define GLUT_CURSOR_INHERIT 0x0064 -#define GLUT_CURSOR_NONE 0x0065 -#define GLUT_CURSOR_FULL_CROSSHAIR 0x0066 - -/* - * GLUT API macro definitions -- RGB color component specification definitions - */ -#define GLUT_RED 0x0000 -#define GLUT_GREEN 0x0001 -#define GLUT_BLUE 0x0002 - -/* - * GLUT API macro definitions -- additional keyboard and joystick definitions - */ -#define GLUT_KEY_REPEAT_OFF 0x0000 -#define GLUT_KEY_REPEAT_ON 0x0001 -#define GLUT_KEY_REPEAT_DEFAULT 0x0002 - -#define GLUT_JOYSTICK_BUTTON_A 0x0001 -#define GLUT_JOYSTICK_BUTTON_B 0x0002 -#define GLUT_JOYSTICK_BUTTON_C 0x0004 -#define GLUT_JOYSTICK_BUTTON_D 0x0008 - -/* - * GLUT API macro definitions -- game mode definitions - */ -#define GLUT_GAME_MODE_ACTIVE 0x0000 -#define GLUT_GAME_MODE_POSSIBLE 0x0001 -#define GLUT_GAME_MODE_WIDTH 0x0002 -#define GLUT_GAME_MODE_HEIGHT 0x0003 -#define GLUT_GAME_MODE_PIXEL_DEPTH 0x0004 -#define GLUT_GAME_MODE_REFRESH_RATE 0x0005 -#define GLUT_GAME_MODE_DISPLAY_CHANGED 0x0006 - -/* - * Initialization functions, see fglut_init.c - */ -FGAPI void FGAPIENTRY glutInit( int* pargc, char** argv ); -FGAPI void FGAPIENTRY glutInitWindowPosition( int x, int y ); -FGAPI void FGAPIENTRY glutInitWindowSize( int width, int height ); -FGAPI void FGAPIENTRY glutInitDisplayMode( unsigned int displayMode ); -FGAPI void FGAPIENTRY glutInitDisplayString( const char* displayMode ); - -/* - * Process loop function, see freeglut_main.c - */ -FGAPI void FGAPIENTRY glutMainLoop( void ); - -/* - * Window management functions, see freeglut_window.c - */ -FGAPI int FGAPIENTRY glutCreateWindow( const char* title ); -FGAPI int FGAPIENTRY glutCreateSubWindow( int window, int x, int y, int width, int height ); -FGAPI void FGAPIENTRY glutDestroyWindow( int window ); -FGAPI void FGAPIENTRY glutSetWindow( int window ); -FGAPI int FGAPIENTRY glutGetWindow( void ); -FGAPI void FGAPIENTRY glutSetWindowTitle( const char* title ); -FGAPI void FGAPIENTRY glutSetIconTitle( const char* title ); -FGAPI void FGAPIENTRY glutReshapeWindow( int width, int height ); -FGAPI void FGAPIENTRY glutPositionWindow( int x, int y ); -FGAPI void FGAPIENTRY glutShowWindow( void ); -FGAPI void FGAPIENTRY glutHideWindow( void ); -FGAPI void FGAPIENTRY glutIconifyWindow( void ); -FGAPI void FGAPIENTRY glutPushWindow( void ); -FGAPI void FGAPIENTRY glutPopWindow( void ); -FGAPI void FGAPIENTRY glutFullScreen( void ); - -/* - * Display-connected functions, see freeglut_display.c - */ -FGAPI void FGAPIENTRY glutPostWindowRedisplay( int window ); -FGAPI void FGAPIENTRY glutPostRedisplay( void ); -FGAPI void FGAPIENTRY glutSwapBuffers( void ); - -/* - * Mouse cursor functions, see freeglut_cursor.c - */ -FGAPI void FGAPIENTRY glutWarpPointer( int x, int y ); -FGAPI void FGAPIENTRY glutSetCursor( int cursor ); - -/* - * Overlay stuff, see freeglut_overlay.c - */ -FGAPI void FGAPIENTRY glutEstablishOverlay( void ); -FGAPI void FGAPIENTRY glutRemoveOverlay( void ); -FGAPI void FGAPIENTRY glutUseLayer( GLenum layer ); -FGAPI void FGAPIENTRY glutPostOverlayRedisplay( void ); -FGAPI void FGAPIENTRY glutPostWindowOverlayRedisplay( int window ); -FGAPI void FGAPIENTRY glutShowOverlay( void ); -FGAPI void FGAPIENTRY glutHideOverlay( void ); - -/* - * Menu stuff, see freeglut_menu.c - */ -FGAPI int FGAPIENTRY glutCreateMenu( void (* callback)( int menu ) ); -FGAPI void FGAPIENTRY glutDestroyMenu( int menu ); -FGAPI int FGAPIENTRY glutGetMenu( void ); -FGAPI void FGAPIENTRY glutSetMenu( int menu ); -FGAPI void FGAPIENTRY glutAddMenuEntry( const char* label, int value ); -FGAPI void FGAPIENTRY glutAddSubMenu( const char* label, int subMenu ); -FGAPI void FGAPIENTRY glutChangeToMenuEntry( int item, const char* label, int value ); -FGAPI void FGAPIENTRY glutChangeToSubMenu( int item, const char* label, int value ); -FGAPI void FGAPIENTRY glutRemoveMenuItem( int item ); -FGAPI void FGAPIENTRY glutAttachMenu( int button ); -FGAPI void FGAPIENTRY glutDetachMenu( int button ); - -/* - * Global callback functions, see freeglut_callbacks.c - */ -FGAPI void FGAPIENTRY glutTimerFunc( unsigned int time, void (* callback)( int ), int value ); -FGAPI void FGAPIENTRY glutIdleFunc( void (* callback)( void ) ); - -/* - * Window-specific callback functions, see freeglut_callbacks.c - */ -FGAPI void FGAPIENTRY glutKeyboardFunc( void (* callback)( unsigned char, int, int ) ); -FGAPI void FGAPIENTRY glutSpecialFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutReshapeFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutVisibilityFunc( void (* callback)( int ) ); -FGAPI void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) ); -FGAPI void FGAPIENTRY glutMouseFunc( void (* callback)( int, int, int, int ) ); -FGAPI void FGAPIENTRY glutMotionFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutPassiveMotionFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutEntryFunc( void (* callback)( int ) ); - -FGAPI void FGAPIENTRY glutKeyboardUpFunc( void (* callback)( unsigned char, int, int ) ); -FGAPI void FGAPIENTRY glutSpecialUpFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval ); -FGAPI void FGAPIENTRY glutMenuStateFunc( void (* callback)( int ) ); -FGAPI void FGAPIENTRY glutMenuStatusFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutOverlayDisplayFunc( void (* callback)( void ) ); -FGAPI void FGAPIENTRY glutWindowStatusFunc( void (* callback)( int ) ); - -FGAPI void FGAPIENTRY glutSpaceballMotionFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutSpaceballRotateFunc( void (* callback)( int, int, int ) ); -FGAPI void FGAPIENTRY glutSpaceballButtonFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutButtonBoxFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutDialsFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutTabletMotionFunc( void (* callback)( int, int ) ); -FGAPI void FGAPIENTRY glutTabletButtonFunc( void (* callback)( int, int, int, int ) ); - -/* - * State setting and retrieval functions, see freeglut_state.c - */ -FGAPI int FGAPIENTRY glutGet( GLenum query ); -FGAPI int FGAPIENTRY glutDeviceGet( GLenum query ); -FGAPI int FGAPIENTRY glutGetModifiers( void ); -FGAPI int FGAPIENTRY glutLayerGet( GLenum query ); - -/* - * Font stuff, see freeglut_font.c - */ -FGAPI void FGAPIENTRY glutBitmapCharacter( void* font, int character ); -FGAPI int FGAPIENTRY glutBitmapWidth( void* font, int character ); -FGAPI void FGAPIENTRY glutStrokeCharacter( void* font, int character ); -FGAPI int FGAPIENTRY glutStrokeWidth( void* font, int character ); -FGAPI int FGAPIENTRY glutBitmapLength( void* font, const unsigned char* string ); -FGAPI int FGAPIENTRY glutStrokeLength( void* font, const unsigned char* string ); - -/* - * Geometry functions, see freeglut_geometry.c - */ -FGAPI void FGAPIENTRY glutWireCube( GLdouble size ); -FGAPI void FGAPIENTRY glutSolidCube( GLdouble size ); -FGAPI void FGAPIENTRY glutWireSphere( GLdouble radius, GLint slices, GLint stacks ); -FGAPI void FGAPIENTRY glutSolidSphere( GLdouble radius, GLint slices, GLint stacks ); -FGAPI void FGAPIENTRY glutWireCone( GLdouble base, GLdouble height, GLint slices, GLint stacks ); -FGAPI void FGAPIENTRY glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks ); - -FGAPI void FGAPIENTRY glutWireTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings ); -FGAPI void FGAPIENTRY glutSolidTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings ); -FGAPI void FGAPIENTRY glutWireDodecahedron( void ); -FGAPI void FGAPIENTRY glutSolidDodecahedron( void ); -FGAPI void FGAPIENTRY glutWireOctahedron( void ); -FGAPI void FGAPIENTRY glutSolidOctahedron( void ); -FGAPI void FGAPIENTRY glutWireTetrahedron( void ); -FGAPI void FGAPIENTRY glutSolidTetrahedron( void ); -FGAPI void FGAPIENTRY glutWireIcosahedron( void ); -FGAPI void FGAPIENTRY glutSolidIcosahedron( void ); - -/* - * Teapot rendering functions, found in freeglut_teapot.c - * NB: front facing polygons have clockwise winding, not counter clockwise - */ -FGAPI void FGAPIENTRY glutWireTeapot( GLdouble size ); -FGAPI void FGAPIENTRY glutSolidTeapot( GLdouble size ); - -/* - * Game mode functions, see freeglut_gamemode.c - */ -FGAPI void FGAPIENTRY glutGameModeString( const char* string ); -FGAPI int FGAPIENTRY glutEnterGameMode( void ); -FGAPI void FGAPIENTRY glutLeaveGameMode( void ); -FGAPI int FGAPIENTRY glutGameModeGet( GLenum query ); - -/* - * Video resize functions, see freeglut_videoresize.c - */ -FGAPI int FGAPIENTRY glutVideoResizeGet( GLenum query ); -FGAPI void FGAPIENTRY glutSetupVideoResizing( void ); -FGAPI void FGAPIENTRY glutStopVideoResizing( void ); -FGAPI void FGAPIENTRY glutVideoResize( int x, int y, int width, int height ); -FGAPI void FGAPIENTRY glutVideoPan( int x, int y, int width, int height ); - -/* - * Colormap functions, see freeglut_misc.c - */ -FGAPI void FGAPIENTRY glutSetColor( int color, GLfloat red, GLfloat green, GLfloat blue ); -FGAPI GLfloat FGAPIENTRY glutGetColor( int color, int component ); -FGAPI void FGAPIENTRY glutCopyColormap( int window ); - -/* - * Misc keyboard and joystick functions, see freeglut_misc.c - */ -FGAPI void FGAPIENTRY glutIgnoreKeyRepeat( int ignore ); -FGAPI void FGAPIENTRY glutSetKeyRepeat( int repeatMode ); -FGAPI void FGAPIENTRY glutForceJoystickFunc( void ); - -/* - * Misc functions, see freeglut_misc.c - */ -FGAPI int FGAPIENTRY glutExtensionSupported( const char* extension ); -FGAPI void FGAPIENTRY glutReportErrors( void ); - -/* Comment from glut.h of classic GLUT: - - Win32 has an annoying issue where there are multiple C run-time - libraries (CRTs). If the executable is linked with a different CRT - from the GLUT DLL, the GLUT DLL will not share the same CRT static - data seen by the executable. In particular, atexit callbacks registered - in the executable will not be called if GLUT calls its (different) - exit routine). GLUT is typically built with the - "/MD" option (the CRT with multithreading DLL support), but the Visual - C++ linker default is "/ML" (the single threaded CRT). - - One workaround to this issue is requiring users to always link with - the same CRT as GLUT is compiled with. That requires users supply a - non-standard option. GLUT 3.7 has its own built-in workaround where - the executable's "exit" function pointer is covertly passed to GLUT. - GLUT then calls the executable's exit function pointer to ensure that - any "atexit" calls registered by the application are called if GLUT - needs to exit. - - Note that the __glut*WithExit routines should NEVER be called directly. - To avoid the atexit workaround, #define GLUT_DISABLE_ATEXIT_HACK. */ - -/* to get the prototype for exit() */ -#include - -#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK) && !defined(__WATCOMC__) -FGAPI void FGAPIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int)); -FGAPI int FGAPIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int)); -FGAPI int FGAPIENTRY __glutCreateMenuWithExit(void (* func)(int), void (__cdecl *exitfunc)(int)); -#ifndef FREEGLUT_BUILDING_LIB -#if defined(__GNUC__) -#define FGUNUSED __attribute__((unused)) -#else -#define FGUNUSED -#endif -static void FGAPIENTRY FGUNUSED glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); } -#define glutInit glutInit_ATEXIT_HACK -static int FGAPIENTRY FGUNUSED glutCreateWindow_ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); } -#define glutCreateWindow glutCreateWindow_ATEXIT_HACK -static int FGAPIENTRY FGUNUSED glutCreateMenu_ATEXIT_HACK(void (* func)(int)) { return __glutCreateMenuWithExit(func, exit); } -#define glutCreateMenu glutCreateMenu_ATEXIT_HACK -#endif -#endif - -#ifdef __cplusplus - } -#endif - -/*** END OF FILE ***/ - -#endif /* __FREEGLUT_STD_H__ */ - diff --git a/Demos/Glut/GL/glew.h b/Demos/Glut/GL/glew.h deleted file mode 100644 index f70103d11..000000000 --- a/Demos/Glut/GL/glew.h +++ /dev/null @@ -1,15507 +0,0 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2002-2008, Milan Ikits -** Copyright (C) 2002-2008, Marcelo E. Magallon -** Copyright (C) 2002, Lev Povalahev -** All rights reserved. -** -** Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are met: -** -** * Redistributions of source code must retain the above copyright notice, -** this list of conditions and the following disclaimer. -** * 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. -** * 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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. -*/ - -/* - * Mesa 3-D graphics library - * Version: 7.0 - * - * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. - * - * 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 above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * 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 - * BRIAN PAUL 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. - */ - -/* -** Copyright (c) 2007 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE 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 -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -#ifndef __glew_h__ -#define __glew_h__ -#define __GLEW_H__ - -#if defined(__gl_h_) || defined(__GL_H__) || defined(__X_GL_H) -#error gl.h included before glew.h -#endif -#if defined(__glext_h_) || defined(__GLEXT_H_) -#error glext.h included before glew.h -#endif -#if defined(__gl_ATI_h_) -#error glATI.h included before glew.h -#endif - -#define __gl_h_ -#define __GL_H__ -#define __X_GL_H -#define __glext_h_ -#define __GLEXT_H_ -#define __gl_ATI_h_ - -#if defined(_WIN32) - -/* - * GLEW does not include to avoid name space pollution. - * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t - * defined properly. - */ -/* */ -#ifndef APIENTRY -#define GLEW_APIENTRY_DEFINED -# if defined(__MINGW32__) || defined(__CYGWIN__) -# define APIENTRY __stdcall -# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) -# define APIENTRY __stdcall -# else -# define APIENTRY -# endif -#endif -#ifndef GLAPI -# if defined(__MINGW32__) || defined(__CYGWIN__) -# define GLAPI extern -# endif -#endif -/* */ -#ifndef CALLBACK -#define GLEW_CALLBACK_DEFINED -# if defined(__MINGW32__) || defined(__CYGWIN__) -# define CALLBACK __attribute__ ((__stdcall__)) -# elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) -# define CALLBACK __stdcall -# else -# define CALLBACK -# endif -#endif -/* and */ -#ifndef WINGDIAPI -#define GLEW_WINGDIAPI_DEFINED -#define WINGDIAPI __declspec(dllimport) -#endif -/* */ -#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED) -typedef unsigned short wchar_t; -# define _WCHAR_T_DEFINED -#endif -/* */ -#if !defined(_W64) -# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && defined(_MSC_VER) && _MSC_VER >= 1300 -# define _W64 __w64 -# else -# define _W64 -# endif -#endif -#if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_) && !defined(__MINGW64__) -# ifdef _WIN64 -typedef __int64 ptrdiff_t; -# else -typedef _W64 int ptrdiff_t; -# endif -# define _PTRDIFF_T_DEFINED -# define _PTRDIFF_T_ -#endif - -#ifndef GLAPI -# if defined(__MINGW32__) || defined(__CYGWIN__) -# define GLAPI extern -# else -# define GLAPI WINGDIAPI -# endif -#endif - -#ifndef GLAPIENTRY -#define GLAPIENTRY APIENTRY -#endif - -/* - * GLEW_STATIC is defined for static library. - * GLEW_BUILD is defined for building the DLL library. - */ - -#ifdef GLEW_STATIC -# define GLEWAPI extern -#else -# ifdef GLEW_BUILD -# define GLEWAPI extern __declspec(dllexport) -# else -# define GLEWAPI extern __declspec(dllimport) -# endif -#endif - -#else /* _UNIX */ - -/* - * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO - * C. On my system, this amounts to _3 lines_ of included code, all of - * them pretty much harmless. If you know of a way of detecting 32 vs - * 64 _targets_ at compile time you are free to replace this with - * something that's portable. For now, _this_ is the portable solution. - * (mem, 2004-01-04) - */ - -#include - -/* SGI MIPSPro doesn't like stdint.h in C++ mode */ - -#if defined(__sgi) && !defined(__GNUC__) -#include -#else -#include -#endif - -#define GLEW_APIENTRY_DEFINED -#define APIENTRY - -/* - * GLEW_STATIC is defined for static library. - */ - -#ifdef GLEW_STATIC -# define GLEWAPI extern -#else -# if defined(__GNUC__) && __GNUC__>=4 -# define GLEWAPI extern __attribute__ ((visibility("default"))) -# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# define GLEWAPI extern __global -# else -# define GLEWAPI extern -# endif -#endif - -/* */ -#ifndef GLAPI -#define GLAPI extern -#endif -#ifndef GLAPIENTRY -#define GLAPIENTRY -#endif - -#endif /* _WIN32 */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------- GL_VERSION_1_1 ---------------------------- */ - -#ifndef GL_VERSION_1_1 -#define GL_VERSION_1_1 1 - -typedef unsigned int GLenum; -typedef unsigned int GLbitfield; -typedef unsigned int GLuint; -typedef int GLint; -typedef int GLsizei; -typedef unsigned char GLboolean; -typedef signed char GLbyte; -typedef short GLshort; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned long GLulong; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void GLvoid; -#if defined(_MSC_VER) && _MSC_VER < 1400 -typedef __int64 GLint64EXT; -typedef unsigned __int64 GLuint64EXT; -#elif defined(_MSC_VER) || defined(__BORLANDC__) -typedef signed long long GLint64EXT; -typedef unsigned long long GLuint64EXT; -#else -# if defined(__MINGW32__) || defined(__CYGWIN__) -#include -# endif -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -#endif -typedef GLint64EXT GLint64; -typedef GLuint64EXT GLuint64; -typedef struct __GLsync *GLsync; - -typedef char GLchar; - -#define GL_ZERO 0 -#define GL_FALSE 0 -#define GL_LOGIC_OP 0x0BF1 -#define GL_NONE 0 -#define GL_TEXTURE_COMPONENTS 0x1003 -#define GL_NO_ERROR 0 -#define GL_POINTS 0x0000 -#define GL_CURRENT_BIT 0x00000001 -#define GL_TRUE 1 -#define GL_ONE 1 -#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_POINT_BIT 0x00000002 -#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 -#define GL_LINE_STRIP 0x0003 -#define GL_LINE_BIT 0x00000004 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_QUADS 0x0007 -#define GL_QUAD_STRIP 0x0008 -#define GL_POLYGON_BIT 0x00000008 -#define GL_POLYGON 0x0009 -#define GL_POLYGON_STIPPLE_BIT 0x00000010 -#define GL_PIXEL_MODE_BIT 0x00000020 -#define GL_LIGHTING_BIT 0x00000040 -#define GL_FOG_BIT 0x00000080 -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_ACCUM 0x0100 -#define GL_LOAD 0x0101 -#define GL_RETURN 0x0102 -#define GL_MULT 0x0103 -#define GL_ADD 0x0104 -#define GL_NEVER 0x0200 -#define GL_ACCUM_BUFFER_BIT 0x00000200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -#define GL_AUX0 0x0409 -#define GL_AUX1 0x040A -#define GL_AUX2 0x040B -#define GL_AUX3 0x040C -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_STACK_OVERFLOW 0x0503 -#define GL_STACK_UNDERFLOW 0x0504 -#define GL_OUT_OF_MEMORY 0x0505 -#define GL_2D 0x0600 -#define GL_3D 0x0601 -#define GL_3D_COLOR 0x0602 -#define GL_3D_COLOR_TEXTURE 0x0603 -#define GL_4D_COLOR_TEXTURE 0x0604 -#define GL_PASS_THROUGH_TOKEN 0x0700 -#define GL_POINT_TOKEN 0x0701 -#define GL_LINE_TOKEN 0x0702 -#define GL_POLYGON_TOKEN 0x0703 -#define GL_BITMAP_TOKEN 0x0704 -#define GL_DRAW_PIXEL_TOKEN 0x0705 -#define GL_COPY_PIXEL_TOKEN 0x0706 -#define GL_LINE_RESET_TOKEN 0x0707 -#define GL_EXP 0x0800 -#define GL_VIEWPORT_BIT 0x00000800 -#define GL_EXP2 0x0801 -#define GL_CW 0x0900 -#define GL_CCW 0x0901 -#define GL_COEFF 0x0A00 -#define GL_ORDER 0x0A01 -#define GL_DOMAIN 0x0A02 -#define GL_CURRENT_COLOR 0x0B00 -#define GL_CURRENT_INDEX 0x0B01 -#define GL_CURRENT_NORMAL 0x0B02 -#define GL_CURRENT_TEXTURE_COORDS 0x0B03 -#define GL_CURRENT_RASTER_COLOR 0x0B04 -#define GL_CURRENT_RASTER_INDEX 0x0B05 -#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 -#define GL_CURRENT_RASTER_POSITION 0x0B07 -#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 -#define GL_CURRENT_RASTER_DISTANCE 0x0B09 -#define GL_POINT_SMOOTH 0x0B10 -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_LINE_STIPPLE 0x0B24 -#define GL_LINE_STIPPLE_PATTERN 0x0B25 -#define GL_LINE_STIPPLE_REPEAT 0x0B26 -#define GL_LIST_MODE 0x0B30 -#define GL_MAX_LIST_NESTING 0x0B31 -#define GL_LIST_BASE 0x0B32 -#define GL_LIST_INDEX 0x0B33 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_POLYGON_STIPPLE 0x0B42 -#define GL_EDGE_FLAG 0x0B43 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_LIGHTING 0x0B50 -#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 -#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 -#define GL_LIGHT_MODEL_AMBIENT 0x0B53 -#define GL_SHADE_MODEL 0x0B54 -#define GL_COLOR_MATERIAL_FACE 0x0B55 -#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 -#define GL_COLOR_MATERIAL 0x0B57 -#define GL_FOG 0x0B60 -#define GL_FOG_INDEX 0x0B61 -#define GL_FOG_DENSITY 0x0B62 -#define GL_FOG_START 0x0B63 -#define GL_FOG_END 0x0B64 -#define GL_FOG_MODE 0x0B65 -#define GL_FOG_COLOR 0x0B66 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_ACCUM_CLEAR_VALUE 0x0B80 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_MATRIX_MODE 0x0BA0 -#define GL_NORMALIZE 0x0BA1 -#define GL_VIEWPORT 0x0BA2 -#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 -#define GL_PROJECTION_STACK_DEPTH 0x0BA4 -#define GL_TEXTURE_STACK_DEPTH 0x0BA5 -#define GL_MODELVIEW_MATRIX 0x0BA6 -#define GL_PROJECTION_MATRIX 0x0BA7 -#define GL_TEXTURE_MATRIX 0x0BA8 -#define GL_ATTRIB_STACK_DEPTH 0x0BB0 -#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 -#define GL_ALPHA_TEST 0x0BC0 -#define GL_ALPHA_TEST_FUNC 0x0BC1 -#define GL_ALPHA_TEST_REF 0x0BC2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_INDEX_LOGIC_OP 0x0BF1 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_AUX_BUFFERS 0x0C00 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_INDEX_CLEAR_VALUE 0x0C20 -#define GL_INDEX_WRITEMASK 0x0C21 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_INDEX_MODE 0x0C30 -#define GL_RGBA_MODE 0x0C31 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_RENDER_MODE 0x0C40 -#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 -#define GL_POINT_SMOOTH_HINT 0x0C51 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_FOG_HINT 0x0C54 -#define GL_TEXTURE_GEN_S 0x0C60 -#define GL_TEXTURE_GEN_T 0x0C61 -#define GL_TEXTURE_GEN_R 0x0C62 -#define GL_TEXTURE_GEN_Q 0x0C63 -#define GL_PIXEL_MAP_I_TO_I 0x0C70 -#define GL_PIXEL_MAP_S_TO_S 0x0C71 -#define GL_PIXEL_MAP_I_TO_R 0x0C72 -#define GL_PIXEL_MAP_I_TO_G 0x0C73 -#define GL_PIXEL_MAP_I_TO_B 0x0C74 -#define GL_PIXEL_MAP_I_TO_A 0x0C75 -#define GL_PIXEL_MAP_R_TO_R 0x0C76 -#define GL_PIXEL_MAP_G_TO_G 0x0C77 -#define GL_PIXEL_MAP_B_TO_B 0x0C78 -#define GL_PIXEL_MAP_A_TO_A 0x0C79 -#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 -#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 -#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 -#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 -#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 -#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 -#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 -#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 -#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 -#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAP_COLOR 0x0D10 -#define GL_MAP_STENCIL 0x0D11 -#define GL_INDEX_SHIFT 0x0D12 -#define GL_INDEX_OFFSET 0x0D13 -#define GL_RED_SCALE 0x0D14 -#define GL_RED_BIAS 0x0D15 -#define GL_ZOOM_X 0x0D16 -#define GL_ZOOM_Y 0x0D17 -#define GL_GREEN_SCALE 0x0D18 -#define GL_GREEN_BIAS 0x0D19 -#define GL_BLUE_SCALE 0x0D1A -#define GL_BLUE_BIAS 0x0D1B -#define GL_ALPHA_SCALE 0x0D1C -#define GL_ALPHA_BIAS 0x0D1D -#define GL_DEPTH_SCALE 0x0D1E -#define GL_DEPTH_BIAS 0x0D1F -#define GL_MAX_EVAL_ORDER 0x0D30 -#define GL_MAX_LIGHTS 0x0D31 -#define GL_MAX_CLIP_PLANES 0x0D32 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 -#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 -#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 -#define GL_MAX_NAME_STACK_DEPTH 0x0D37 -#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 -#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_INDEX_BITS 0x0D51 -#define GL_RED_BITS 0x0D52 -#define GL_GREEN_BITS 0x0D53 -#define GL_BLUE_BITS 0x0D54 -#define GL_ALPHA_BITS 0x0D55 -#define GL_DEPTH_BITS 0x0D56 -#define GL_STENCIL_BITS 0x0D57 -#define GL_ACCUM_RED_BITS 0x0D58 -#define GL_ACCUM_GREEN_BITS 0x0D59 -#define GL_ACCUM_BLUE_BITS 0x0D5A -#define GL_ACCUM_ALPHA_BITS 0x0D5B -#define GL_NAME_STACK_DEPTH 0x0D70 -#define GL_AUTO_NORMAL 0x0D80 -#define GL_MAP1_COLOR_4 0x0D90 -#define GL_MAP1_INDEX 0x0D91 -#define GL_MAP1_NORMAL 0x0D92 -#define GL_MAP1_TEXTURE_COORD_1 0x0D93 -#define GL_MAP1_TEXTURE_COORD_2 0x0D94 -#define GL_MAP1_TEXTURE_COORD_3 0x0D95 -#define GL_MAP1_TEXTURE_COORD_4 0x0D96 -#define GL_MAP1_VERTEX_3 0x0D97 -#define GL_MAP1_VERTEX_4 0x0D98 -#define GL_MAP2_COLOR_4 0x0DB0 -#define GL_MAP2_INDEX 0x0DB1 -#define GL_MAP2_NORMAL 0x0DB2 -#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 -#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 -#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 -#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 -#define GL_MAP2_VERTEX_3 0x0DB7 -#define GL_MAP2_VERTEX_4 0x0DB8 -#define GL_MAP1_GRID_DOMAIN 0x0DD0 -#define GL_MAP1_GRID_SEGMENTS 0x0DD1 -#define GL_MAP2_GRID_DOMAIN 0x0DD2 -#define GL_MAP2_GRID_SEGMENTS 0x0DD3 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 -#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 -#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 -#define GL_SELECTION_BUFFER_POINTER 0x0DF3 -#define GL_SELECTION_BUFFER_SIZE 0x0DF4 -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TRANSFORM_BIT 0x00001000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_TEXTURE_BORDER 0x1005 -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 -#define GL_AMBIENT 0x1200 -#define GL_DIFFUSE 0x1201 -#define GL_SPECULAR 0x1202 -#define GL_POSITION 0x1203 -#define GL_SPOT_DIRECTION 0x1204 -#define GL_SPOT_EXPONENT 0x1205 -#define GL_SPOT_CUTOFF 0x1206 -#define GL_CONSTANT_ATTENUATION 0x1207 -#define GL_LINEAR_ATTENUATION 0x1208 -#define GL_QUADRATIC_ATTENUATION 0x1209 -#define GL_COMPILE 0x1300 -#define GL_COMPILE_AND_EXECUTE 0x1301 -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_2_BYTES 0x1407 -#define GL_3_BYTES 0x1408 -#define GL_4_BYTES 0x1409 -#define GL_DOUBLE 0x140A -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F -#define GL_EMISSION 0x1600 -#define GL_SHININESS 0x1601 -#define GL_AMBIENT_AND_DIFFUSE 0x1602 -#define GL_COLOR_INDEXES 0x1603 -#define GL_MODELVIEW 0x1700 -#define GL_PROJECTION 0x1701 -#define GL_TEXTURE 0x1702 -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 -#define GL_COLOR_INDEX 0x1900 -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -#define GL_LUMINANCE 0x1909 -#define GL_LUMINANCE_ALPHA 0x190A -#define GL_BITMAP 0x1A00 -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 -#define GL_RENDER 0x1C00 -#define GL_FEEDBACK 0x1C01 -#define GL_SELECT 0x1C02 -#define GL_FLAT 0x1D00 -#define GL_SMOOTH 0x1D01 -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 -#define GL_S 0x2000 -#define GL_ENABLE_BIT 0x00002000 -#define GL_T 0x2001 -#define GL_R 0x2002 -#define GL_Q 0x2003 -#define GL_MODULATE 0x2100 -#define GL_DECAL 0x2101 -#define GL_TEXTURE_ENV_MODE 0x2200 -#define GL_TEXTURE_ENV_COLOR 0x2201 -#define GL_TEXTURE_ENV 0x2300 -#define GL_EYE_LINEAR 0x2400 -#define GL_OBJECT_LINEAR 0x2401 -#define GL_SPHERE_MAP 0x2402 -#define GL_TEXTURE_GEN_MODE 0x2500 -#define GL_OBJECT_PLANE 0x2501 -#define GL_EYE_PLANE 0x2502 -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -#define GL_CLAMP 0x2900 -#define GL_REPEAT 0x2901 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_R3_G3_B2 0x2A10 -#define GL_V2F 0x2A20 -#define GL_V3F 0x2A21 -#define GL_C4UB_V2F 0x2A22 -#define GL_C4UB_V3F 0x2A23 -#define GL_C3F_V3F 0x2A24 -#define GL_N3F_V3F 0x2A25 -#define GL_C4F_N3F_V3F 0x2A26 -#define GL_T2F_V3F 0x2A27 -#define GL_T4F_V4F 0x2A28 -#define GL_T2F_C4UB_V3F 0x2A29 -#define GL_T2F_C3F_V3F 0x2A2A -#define GL_T2F_N3F_V3F 0x2A2B -#define GL_T2F_C4F_N3F_V3F 0x2A2C -#define GL_T4F_C4F_N3F_V4F 0x2A2D -#define GL_CLIP_PLANE0 0x3000 -#define GL_CLIP_PLANE1 0x3001 -#define GL_CLIP_PLANE2 0x3002 -#define GL_CLIP_PLANE3 0x3003 -#define GL_CLIP_PLANE4 0x3004 -#define GL_CLIP_PLANE5 0x3005 -#define GL_LIGHT0 0x4000 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_LIGHT1 0x4001 -#define GL_LIGHT2 0x4002 -#define GL_LIGHT3 0x4003 -#define GL_LIGHT4 0x4004 -#define GL_LIGHT5 0x4005 -#define GL_LIGHT6 0x4006 -#define GL_LIGHT7 0x4007 -#define GL_HINT_BIT 0x00008000 -#define GL_POLYGON_OFFSET_FILL 0x8037 -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_ALPHA4 0x803B -#define GL_ALPHA8 0x803C -#define GL_ALPHA12 0x803D -#define GL_ALPHA16 0x803E -#define GL_LUMINANCE4 0x803F -#define GL_LUMINANCE8 0x8040 -#define GL_LUMINANCE12 0x8041 -#define GL_LUMINANCE16 0x8042 -#define GL_LUMINANCE4_ALPHA4 0x8043 -#define GL_LUMINANCE6_ALPHA2 0x8044 -#define GL_LUMINANCE8_ALPHA8 0x8045 -#define GL_LUMINANCE12_ALPHA4 0x8046 -#define GL_LUMINANCE12_ALPHA12 0x8047 -#define GL_LUMINANCE16_ALPHA16 0x8048 -#define GL_INTENSITY 0x8049 -#define GL_INTENSITY4 0x804A -#define GL_INTENSITY8 0x804B -#define GL_INTENSITY12 0x804C -#define GL_INTENSITY16 0x804D -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE 0x8061 -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_TEXTURE_PRIORITY 0x8066 -#define GL_TEXTURE_RESIDENT 0x8067 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 -#define GL_VERTEX_ARRAY 0x8074 -#define GL_NORMAL_ARRAY 0x8075 -#define GL_COLOR_ARRAY 0x8076 -#define GL_INDEX_ARRAY 0x8077 -#define GL_TEXTURE_COORD_ARRAY 0x8078 -#define GL_EDGE_FLAG_ARRAY 0x8079 -#define GL_VERTEX_ARRAY_SIZE 0x807A -#define GL_VERTEX_ARRAY_TYPE 0x807B -#define GL_VERTEX_ARRAY_STRIDE 0x807C -#define GL_NORMAL_ARRAY_TYPE 0x807E -#define GL_NORMAL_ARRAY_STRIDE 0x807F -#define GL_COLOR_ARRAY_SIZE 0x8081 -#define GL_COLOR_ARRAY_TYPE 0x8082 -#define GL_COLOR_ARRAY_STRIDE 0x8083 -#define GL_INDEX_ARRAY_TYPE 0x8085 -#define GL_INDEX_ARRAY_STRIDE 0x8086 -#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A -#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C -#define GL_VERTEX_ARRAY_POINTER 0x808E -#define GL_NORMAL_ARRAY_POINTER 0x808F -#define GL_COLOR_ARRAY_POINTER 0x8090 -#define GL_INDEX_ARRAY_POINTER 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 -#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_EVAL_BIT 0x00010000 -#define GL_LIST_BIT 0x00020000 -#define GL_TEXTURE_BIT 0x00040000 -#define GL_SCISSOR_BIT 0x00080000 -#define GL_ALL_ATTRIB_BITS 0x000fffff -#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff - -GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value); -GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref); -GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); -GLAPI void GLAPIENTRY glArrayElement (GLint i); -GLAPI void GLAPIENTRY glBegin (GLenum mode); -GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture); -GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); -GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); -GLAPI void GLAPIENTRY glCallList (GLuint list); -GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); -GLAPI void GLAPIENTRY glClear (GLbitfield mask); -GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -GLAPI void GLAPIENTRY glClearDepth (GLclampd depth); -GLAPI void GLAPIENTRY glClearIndex (GLfloat c); -GLAPI void GLAPIENTRY glClearStencil (GLint s); -GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation); -GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); -GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v); -GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); -GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); -GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue); -GLAPI void GLAPIENTRY glColor3iv (const GLint *v); -GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); -GLAPI void GLAPIENTRY glColor3sv (const GLshort *v); -GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); -GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v); -GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); -GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v); -GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); -GLAPI void GLAPIENTRY glColor3usv (const GLushort *v); -GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v); -GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); -GLAPI void GLAPIENTRY glColor4iv (const GLint *v); -GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); -GLAPI void GLAPIENTRY glColor4sv (const GLshort *v); -GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v); -GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); -GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v); -GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); -GLAPI void GLAPIENTRY glColor4usv (const GLushort *v); -GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode); -GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); -GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void GLAPIENTRY glCullFace (GLenum mode); -GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range); -GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); -GLAPI void GLAPIENTRY glDepthFunc (GLenum func); -GLAPI void GLAPIENTRY glDepthMask (GLboolean flag); -GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); -GLAPI void GLAPIENTRY glDisable (GLenum cap); -GLAPI void GLAPIENTRY glDisableClientState (GLenum array); -GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); -GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode); -GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); -GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag); -GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag); -GLAPI void GLAPIENTRY glEnable (GLenum cap); -GLAPI void GLAPIENTRY glEnableClientState (GLenum array); -GLAPI void GLAPIENTRY glEnd (void); -GLAPI void GLAPIENTRY glEndList (void); -GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u); -GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u); -GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u); -GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u); -GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v); -GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u); -GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v); -GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u); -GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2); -GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); -GLAPI void GLAPIENTRY glEvalPoint1 (GLint i); -GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j); -GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); -GLAPI void GLAPIENTRY glFinish (void); -GLAPI void GLAPIENTRY glFlush (void); -GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glFrontFace (GLenum mode); -GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range); -GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures); -GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params); -GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation); -GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params); -GLAPI GLenum GLAPIENTRY glGetError (void); -GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v); -GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v); -GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v); -GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values); -GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values); -GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values); -GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params); -GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask); -GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name); -GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); -GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode); -GLAPI void GLAPIENTRY glIndexMask (GLuint mask); -GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glIndexd (GLdouble c); -GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c); -GLAPI void GLAPIENTRY glIndexf (GLfloat c); -GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c); -GLAPI void GLAPIENTRY glIndexi (GLint c); -GLAPI void GLAPIENTRY glIndexiv (const GLint *c); -GLAPI void GLAPIENTRY glIndexs (GLshort c); -GLAPI void GLAPIENTRY glIndexsv (const GLshort *c); -GLAPI void GLAPIENTRY glIndexub (GLubyte c); -GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c); -GLAPI void GLAPIENTRY glInitNames (void); -GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); -GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap); -GLAPI GLboolean GLAPIENTRY glIsList (GLuint list); -GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture); -GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern); -GLAPI void GLAPIENTRY glLineWidth (GLfloat width); -GLAPI void GLAPIENTRY glListBase (GLuint base); -GLAPI void GLAPIENTRY glLoadIdentity (void); -GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m); -GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m); -GLAPI void GLAPIENTRY glLoadName (GLuint name); -GLAPI void GLAPIENTRY glLogicOp (GLenum opcode); -GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); -GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); -GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); -GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); -GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glMatrixMode (GLenum mode); -GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m); -GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m); -GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode); -GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v); -GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); -GLAPI void GLAPIENTRY glNormal3iv (const GLint *v); -GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); -GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v); -GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI void GLAPIENTRY glPassThrough (GLfloat token); -GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); -GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); -GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); -GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); -GLAPI void GLAPIENTRY glPointSize (GLfloat size); -GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode); -GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units); -GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask); -GLAPI void GLAPIENTRY glPopAttrib (void); -GLAPI void GLAPIENTRY glPopClientAttrib (void); -GLAPI void GLAPIENTRY glPopMatrix (void); -GLAPI void GLAPIENTRY glPopName (void); -GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); -GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask); -GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask); -GLAPI void GLAPIENTRY glPushMatrix (void); -GLAPI void GLAPIENTRY glPushName (GLuint name); -GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y); -GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y); -GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y); -GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y); -GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v); -GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z); -GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); -GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v); -GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); -GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v); -GLAPI void GLAPIENTRY glReadBuffer (GLenum mode); -GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); -GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); -GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); -GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2); -GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); -GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2); -GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode); -GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); -GLAPI void GLAPIENTRY glShadeModel (GLenum mode); -GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); -GLAPI void GLAPIENTRY glStencilMask (GLuint mask); -GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); -GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s); -GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s); -GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord1i (GLint s); -GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord1s (GLshort s); -GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t); -GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t); -GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t); -GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t); -GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); -GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); -GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r); -GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); -GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); -GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); -GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); -GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y); -GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y); -GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y); -GLAPI void GLAPIENTRY glVertex2iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y); -GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z); -GLAPI void GLAPIENTRY glVertex3iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); -GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); -GLAPI void GLAPIENTRY glVertex4iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); - -#define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1) - -#endif /* GL_VERSION_1_1 */ - -/* ---------------------------------- GLU ---------------------------------- */ - -#ifndef GLEW_NO_GLU -/* this is where we can safely include GLU */ -# if defined(__APPLE__) && defined(__MACH__) -# include -# else -# include -# endif -#endif - -/* ----------------------------- GL_VERSION_1_2 ---------------------------- */ - -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 - -#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_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_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_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_ALIASED_POINT_SIZE_RANGE 0x846D -#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E - -typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); -typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); - -#define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D) -#define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements) -#define glTexImage3D GLEW_GET_FUN(__glewTexImage3D) -#define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D) - -#define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2) - -#endif /* GL_VERSION_1_2 */ - -/* ---------------------------- GL_VERSION_1_2_1 --------------------------- */ - -#ifndef GL_VERSION_1_2_1 -#define GL_VERSION_1_2_1 1 - -#define GLEW_VERSION_1_2_1 GLEW_GET_VAR(__GLEW_VERSION_1_2_1) - -#endif /* GL_VERSION_1_2_1 */ - -/* ----------------------------- GL_VERSION_1_3 ---------------------------- */ - -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 - -#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_CLAMP_TO_BORDER 0x812D -#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_SUBTRACT 0x84E7 -#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_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_COMBINE 0x8570 -#define GL_COMBINE_RGB 0x8571 -#define GL_COMBINE_ALPHA 0x8572 -#define GL_RGB_SCALE 0x8573 -#define GL_ADD_SIGNED 0x8574 -#define GL_INTERPOLATE 0x8575 -#define GL_CONSTANT 0x8576 -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PREVIOUS 0x8578 -#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_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_DOT3_RGB 0x86AE -#define GL_DOT3_RGBA 0x86AF -#define GL_MULTISAMPLE_BIT 0x20000000 - -typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture); -typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLvoid *img); -typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); -typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); -typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); -typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); - -#define glActiveTexture GLEW_GET_FUN(__glewActiveTexture) -#define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture) -#define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D) -#define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D) -#define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D) -#define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D) -#define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D) -#define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D) -#define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage) -#define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd) -#define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf) -#define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd) -#define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf) -#define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d) -#define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv) -#define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f) -#define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv) -#define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i) -#define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv) -#define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s) -#define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv) -#define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d) -#define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv) -#define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f) -#define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv) -#define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i) -#define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv) -#define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s) -#define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv) -#define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d) -#define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv) -#define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f) -#define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv) -#define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i) -#define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv) -#define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s) -#define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv) -#define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d) -#define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv) -#define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f) -#define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv) -#define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i) -#define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv) -#define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s) -#define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv) -#define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage) - -#define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3) - -#endif /* GL_VERSION_1_3 */ - -/* ----------------------------- GL_VERSION_1_4 ---------------------------- */ - -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (GLAPIENTRY * PFNGLFOGCOORDDPROC) (GLdouble coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDDVPROC) (const GLdouble *coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDFPROC) (GLfloat coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDFVPROC) (const GLfloat *coord); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVPROC) (const GLdouble *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVPROC) (const GLfloat *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVPROC) (const GLint *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVPROC) (const GLshort *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVPROC) (const GLdouble *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVPROC) (const GLfloat *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVPROC) (const GLint *p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVPROC) (const GLshort *p); - -#define glBlendColor GLEW_GET_FUN(__glewBlendColor) -#define glBlendEquation GLEW_GET_FUN(__glewBlendEquation) -#define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate) -#define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer) -#define glFogCoordd GLEW_GET_FUN(__glewFogCoordd) -#define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv) -#define glFogCoordf GLEW_GET_FUN(__glewFogCoordf) -#define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv) -#define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays) -#define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements) -#define glPointParameterf GLEW_GET_FUN(__glewPointParameterf) -#define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv) -#define glPointParameteri GLEW_GET_FUN(__glewPointParameteri) -#define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv) -#define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b) -#define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv) -#define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d) -#define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv) -#define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f) -#define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv) -#define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i) -#define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv) -#define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s) -#define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv) -#define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub) -#define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv) -#define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui) -#define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv) -#define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us) -#define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv) -#define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer) -#define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d) -#define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv) -#define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f) -#define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv) -#define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i) -#define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv) -#define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s) -#define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv) -#define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d) -#define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv) -#define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f) -#define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv) -#define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i) -#define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv) -#define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s) -#define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv) - -#define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4) - -#endif /* GL_VERSION_1_4 */ - -/* ----------------------------- GL_VERSION_1_5 ---------------------------- */ - -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 - -#define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE -#define GL_FOG_COORD GL_FOG_COORDINATE -#define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY -#define GL_SRC0_RGB GL_SOURCE0_RGB -#define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER -#define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE -#define GL_SRC1_ALPHA GL_SOURCE1_ALPHA -#define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE -#define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE -#define GL_SRC0_ALPHA GL_SOURCE0_ALPHA -#define GL_SRC1_RGB GL_SOURCE1_RGB -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING -#define GL_SRC2_ALPHA GL_SOURCE2_ALPHA -#define GL_SRC2_RGB GL_SOURCE2_RGB -#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 - -typedef ptrdiff_t GLintptr; -typedef ptrdiff_t GLsizeiptr; - -typedef void (GLAPIENTRY * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); -typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); -typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers); -typedef void (GLAPIENTRY * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLENDQUERYPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers); -typedef void (GLAPIENTRY * PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids); -typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid** params); -typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint buffer); -typedef GLboolean (GLAPIENTRY * PFNGLISQUERYPROC) (GLuint id); -typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); -typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERPROC) (GLenum target); - -#define glBeginQuery GLEW_GET_FUN(__glewBeginQuery) -#define glBindBuffer GLEW_GET_FUN(__glewBindBuffer) -#define glBufferData GLEW_GET_FUN(__glewBufferData) -#define glBufferSubData GLEW_GET_FUN(__glewBufferSubData) -#define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers) -#define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries) -#define glEndQuery GLEW_GET_FUN(__glewEndQuery) -#define glGenBuffers GLEW_GET_FUN(__glewGenBuffers) -#define glGenQueries GLEW_GET_FUN(__glewGenQueries) -#define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv) -#define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv) -#define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData) -#define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv) -#define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv) -#define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv) -#define glIsBuffer GLEW_GET_FUN(__glewIsBuffer) -#define glIsQuery GLEW_GET_FUN(__glewIsQuery) -#define glMapBuffer GLEW_GET_FUN(__glewMapBuffer) -#define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer) - -#define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5) - -#endif /* GL_VERSION_1_5 */ - -/* ----------------------------- GL_VERSION_2_0 ---------------------------- */ - -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name); -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum, GLenum); -typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader); -typedef GLuint (GLAPIENTRY * PFNGLCREATEPROGRAMPROC) (void); -typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type); -typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program); -typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader); -typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); -typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint); -typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs); -typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint); -typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); -typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); -typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* param); -typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); -typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLuint obj, GLsizei maxLength, GLsizei* length, GLchar* source); -typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* param); -typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint, GLenum, GLvoid**); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVPROC) (GLuint, GLenum, GLdouble*); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint, GLenum, GLfloat*); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint, GLenum, GLint*); -typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program); -typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader); -typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program); -typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths); -typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum, GLuint); -typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); -typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint v0); -typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); -typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program); -typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer); - -#define glAttachShader GLEW_GET_FUN(__glewAttachShader) -#define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation) -#define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate) -#define glCompileShader GLEW_GET_FUN(__glewCompileShader) -#define glCreateProgram GLEW_GET_FUN(__glewCreateProgram) -#define glCreateShader GLEW_GET_FUN(__glewCreateShader) -#define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram) -#define glDeleteShader GLEW_GET_FUN(__glewDeleteShader) -#define glDetachShader GLEW_GET_FUN(__glewDetachShader) -#define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray) -#define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers) -#define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray) -#define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib) -#define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform) -#define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders) -#define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation) -#define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog) -#define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv) -#define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog) -#define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource) -#define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv) -#define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation) -#define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv) -#define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv) -#define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv) -#define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv) -#define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv) -#define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv) -#define glIsProgram GLEW_GET_FUN(__glewIsProgram) -#define glIsShader GLEW_GET_FUN(__glewIsShader) -#define glLinkProgram GLEW_GET_FUN(__glewLinkProgram) -#define glShaderSource GLEW_GET_FUN(__glewShaderSource) -#define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate) -#define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate) -#define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate) -#define glUniform1f GLEW_GET_FUN(__glewUniform1f) -#define glUniform1fv GLEW_GET_FUN(__glewUniform1fv) -#define glUniform1i GLEW_GET_FUN(__glewUniform1i) -#define glUniform1iv GLEW_GET_FUN(__glewUniform1iv) -#define glUniform2f GLEW_GET_FUN(__glewUniform2f) -#define glUniform2fv GLEW_GET_FUN(__glewUniform2fv) -#define glUniform2i GLEW_GET_FUN(__glewUniform2i) -#define glUniform2iv GLEW_GET_FUN(__glewUniform2iv) -#define glUniform3f GLEW_GET_FUN(__glewUniform3f) -#define glUniform3fv GLEW_GET_FUN(__glewUniform3fv) -#define glUniform3i GLEW_GET_FUN(__glewUniform3i) -#define glUniform3iv GLEW_GET_FUN(__glewUniform3iv) -#define glUniform4f GLEW_GET_FUN(__glewUniform4f) -#define glUniform4fv GLEW_GET_FUN(__glewUniform4fv) -#define glUniform4i GLEW_GET_FUN(__glewUniform4i) -#define glUniform4iv GLEW_GET_FUN(__glewUniform4iv) -#define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv) -#define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv) -#define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv) -#define glUseProgram GLEW_GET_FUN(__glewUseProgram) -#define glValidateProgram GLEW_GET_FUN(__glewValidateProgram) -#define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d) -#define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv) -#define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f) -#define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv) -#define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s) -#define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv) -#define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d) -#define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv) -#define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f) -#define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv) -#define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s) -#define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv) -#define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d) -#define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv) -#define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f) -#define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv) -#define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s) -#define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv) -#define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv) -#define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv) -#define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv) -#define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub) -#define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv) -#define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv) -#define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv) -#define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv) -#define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d) -#define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv) -#define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f) -#define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv) -#define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv) -#define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s) -#define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv) -#define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv) -#define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv) -#define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv) -#define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer) - -#define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0) - -#endif /* GL_VERSION_2_0 */ - -/* ----------------------------- GL_VERSION_2_1 ---------------------------- */ - -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 - -#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F -#define GL_PIXEL_PACK_BUFFER 0x88EB -#define GL_PIXEL_UNPACK_BUFFER 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF -#define GL_FLOAT_MAT2x3 0x8B65 -#define GL_FLOAT_MAT2x4 0x8B66 -#define GL_FLOAT_MAT3x2 0x8B67 -#define GL_FLOAT_MAT3x4 0x8B68 -#define GL_FLOAT_MAT4x2 0x8B69 -#define GL_FLOAT_MAT4x3 0x8B6A -#define GL_SRGB 0x8C40 -#define GL_SRGB8 0x8C41 -#define GL_SRGB_ALPHA 0x8C42 -#define GL_SRGB8_ALPHA8 0x8C43 -#define GL_SLUMINANCE_ALPHA 0x8C44 -#define GL_SLUMINANCE8_ALPHA8 0x8C45 -#define GL_SLUMINANCE 0x8C46 -#define GL_SLUMINANCE8 0x8C47 -#define GL_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#define GL_COMPRESSED_SLUMINANCE 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B - -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); - -#define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv) -#define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv) -#define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv) -#define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv) -#define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv) -#define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv) - -#define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1) - -#endif /* GL_VERSION_2_1 */ - -/* ----------------------------- GL_VERSION_3_0 ---------------------------- */ - -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 - -#define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES -#define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5 -#define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1 -#define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3 -#define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB -#define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0 -#define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4 -#define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2 -#define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#define GL_DEPTH_BUFFER 0x8223 -#define GL_STENCIL_BUFFER 0x8224 -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_RGBA32F 0x8814 -#define GL_RGB32F 0x8815 -#define GL_RGBA16F 0x881A -#define GL_RGB16F 0x881B -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD -#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF -#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 -#define GL_CLAMP_VERTEX_COLOR 0x891A -#define GL_CLAMP_FRAGMENT_COLOR 0x891B -#define GL_CLAMP_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_TEXTURE_RED_TYPE 0x8C10 -#define GL_TEXTURE_GREEN_TYPE 0x8C11 -#define GL_TEXTURE_BLUE_TYPE 0x8C12 -#define GL_TEXTURE_ALPHA_TYPE 0x8C13 -#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 -#define GL_TEXTURE_INTENSITY_TYPE 0x8C15 -#define GL_TEXTURE_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_TEXTURE_1D_ARRAY 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19 -#define GL_TEXTURE_2D_ARRAY 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D -#define GL_R11F_G11F_B10F 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B -#define GL_RGB9_E5 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E -#define GL_TEXTURE_SHARED_SIZE 0x8C3F -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85 -#define GL_PRIMITIVES_GENERATED 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88 -#define GL_RASTERIZER_DISCARD 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B -#define GL_INTERLEAVED_ATTRIBS 0x8C8C -#define GL_SEPARATE_ATTRIBS 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F -#define GL_RGBA32UI 0x8D70 -#define GL_RGB32UI 0x8D71 -#define GL_RGBA16UI 0x8D76 -#define GL_RGB16UI 0x8D77 -#define GL_RGBA8UI 0x8D7C -#define GL_RGB8UI 0x8D7D -#define GL_RGBA32I 0x8D82 -#define GL_RGB32I 0x8D83 -#define GL_RGBA16I 0x8D88 -#define GL_RGB16I 0x8D89 -#define GL_RGBA8I 0x8D8E -#define GL_RGB8I 0x8D8F -#define GL_RED_INTEGER 0x8D94 -#define GL_GREEN_INTEGER 0x8D95 -#define GL_BLUE_INTEGER 0x8D96 -#define GL_ALPHA_INTEGER 0x8D97 -#define GL_RGB_INTEGER 0x8D98 -#define GL_RGBA_INTEGER 0x8D99 -#define GL_BGR_INTEGER 0x8D9A -#define GL_BGRA_INTEGER 0x8D9B -#define GL_SAMPLER_1D_ARRAY 0x8DC0 -#define GL_SAMPLER_2D_ARRAY 0x8DC1 -#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW 0x8DC5 -#define GL_UNSIGNED_INT_VEC2 0x8DC6 -#define GL_UNSIGNED_INT_VEC3 0x8DC7 -#define GL_UNSIGNED_INT_VEC4 0x8DC8 -#define GL_INT_SAMPLER_1D 0x8DC9 -#define GL_INT_SAMPLER_2D 0x8DCA -#define GL_INT_SAMPLER_3D 0x8DCB -#define GL_INT_SAMPLER_CUBE 0x8DCC -#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF -#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7 -#define GL_QUERY_WAIT 0x8E13 -#define GL_QUERY_NO_WAIT 0x8E14 -#define GL_QUERY_BY_REGION_WAIT 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16 - -typedef void (GLAPIENTRY * PFNGLBEGINCONDITIONALRENDERPROC) (GLuint, GLenum); -typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum); -typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONPROC) (GLuint, GLuint, const GLchar*); -typedef void (GLAPIENTRY * PFNGLCLAMPCOLORPROC) (GLenum, GLenum); -typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFIPROC) (GLenum, GLint, GLfloat, GLint); -typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFVPROC) (GLenum, GLint, const GLfloat*); -typedef void (GLAPIENTRY * PFNGLCLEARBUFFERIVPROC) (GLenum, GLint, const GLint*); -typedef void (GLAPIENTRY * PFNGLCLEARBUFFERUIVPROC) (GLenum, GLint, const GLuint*); -typedef void (GLAPIENTRY * PFNGLCOLORMASKIPROC) (GLuint, GLboolean, GLboolean, GLboolean, GLboolean); -typedef void (GLAPIENTRY * PFNGLDISABLEIPROC) (GLenum, GLuint); -typedef void (GLAPIENTRY * PFNGLENABLEIPROC) (GLenum, GLuint); -typedef void (GLAPIENTRY * PFNGLENDCONDITIONALRENDERPROC) (void); -typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKPROC) (void); -typedef void (GLAPIENTRY * PFNGLGETBOOLEANI_VPROC) (GLenum, GLuint, GLboolean*); -typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONPROC) (GLuint, const GLchar*); -typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGIPROC) (GLenum, GLuint); -typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVPROC) (GLenum, GLenum, GLint*); -typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVPROC) (GLenum, GLenum, GLuint*); -typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVPROC) (GLuint, GLint, GLuint*); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVPROC) (GLuint, GLenum, GLint*); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint, GLenum, GLuint*); -typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDIPROC) (GLenum, GLuint); -typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVPROC) (GLenum, GLenum, const GLint*); -typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVPROC) (GLenum, GLenum, const GLuint*); -typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint, GLsizei, const GLchar **, GLenum); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UIPROC) (GLint, GLuint); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVPROC) (GLint, GLsizei, const GLuint*); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UIPROC) (GLint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVPROC) (GLint, GLsizei, const GLuint*); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UIPROC) (GLint, GLuint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVPROC) (GLint, GLsizei, const GLuint*); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UIPROC) (GLint, GLuint, GLuint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVPROC) (GLint, GLsizei, const GLuint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IPROC) (GLuint, GLint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVPROC) (GLuint, const GLint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIPROC) (GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVPROC) (GLuint, const GLuint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IPROC) (GLuint, GLint, GLint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVPROC) (GLuint, const GLint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIPROC) (GLuint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVPROC) (GLuint, const GLuint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IPROC) (GLuint, GLint, GLint, GLint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVPROC) (GLuint, const GLint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIPROC) (GLuint, GLuint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVPROC) (GLuint, const GLuint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVPROC) (GLuint, const GLbyte*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IPROC) (GLuint, GLint, GLint, GLint, GLint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVPROC) (GLuint, const GLint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVPROC) (GLuint, const GLshort*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVPROC) (GLuint, const GLubyte*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIPROC) (GLuint, GLuint, GLuint, GLuint, GLuint); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVPROC) (GLuint, const GLuint*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVPROC) (GLuint, const GLushort*); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint, GLint, GLenum, GLsizei, const GLvoid*); - -#define glBeginConditionalRender GLEW_GET_FUN(__glewBeginConditionalRender) -#define glBeginTransformFeedback GLEW_GET_FUN(__glewBeginTransformFeedback) -#define glBindFragDataLocation GLEW_GET_FUN(__glewBindFragDataLocation) -#define glClampColor GLEW_GET_FUN(__glewClampColor) -#define glClearBufferfi GLEW_GET_FUN(__glewClearBufferfi) -#define glClearBufferfv GLEW_GET_FUN(__glewClearBufferfv) -#define glClearBufferiv GLEW_GET_FUN(__glewClearBufferiv) -#define glClearBufferuiv GLEW_GET_FUN(__glewClearBufferuiv) -#define glColorMaski GLEW_GET_FUN(__glewColorMaski) -#define glDisablei GLEW_GET_FUN(__glewDisablei) -#define glEnablei GLEW_GET_FUN(__glewEnablei) -#define glEndConditionalRender GLEW_GET_FUN(__glewEndConditionalRender) -#define glEndTransformFeedback GLEW_GET_FUN(__glewEndTransformFeedback) -#define glGetBooleani_v GLEW_GET_FUN(__glewGetBooleani_v) -#define glGetFragDataLocation GLEW_GET_FUN(__glewGetFragDataLocation) -#define glGetStringi GLEW_GET_FUN(__glewGetStringi) -#define glGetTexParameterIiv GLEW_GET_FUN(__glewGetTexParameterIiv) -#define glGetTexParameterIuiv GLEW_GET_FUN(__glewGetTexParameterIuiv) -#define glGetTransformFeedbackVarying GLEW_GET_FUN(__glewGetTransformFeedbackVarying) -#define glGetUniformuiv GLEW_GET_FUN(__glewGetUniformuiv) -#define glGetVertexAttribIiv GLEW_GET_FUN(__glewGetVertexAttribIiv) -#define glGetVertexAttribIuiv GLEW_GET_FUN(__glewGetVertexAttribIuiv) -#define glIsEnabledi GLEW_GET_FUN(__glewIsEnabledi) -#define glTexParameterIiv GLEW_GET_FUN(__glewTexParameterIiv) -#define glTexParameterIuiv GLEW_GET_FUN(__glewTexParameterIuiv) -#define glTransformFeedbackVaryings GLEW_GET_FUN(__glewTransformFeedbackVaryings) -#define glUniform1ui GLEW_GET_FUN(__glewUniform1ui) -#define glUniform1uiv GLEW_GET_FUN(__glewUniform1uiv) -#define glUniform2ui GLEW_GET_FUN(__glewUniform2ui) -#define glUniform2uiv GLEW_GET_FUN(__glewUniform2uiv) -#define glUniform3ui GLEW_GET_FUN(__glewUniform3ui) -#define glUniform3uiv GLEW_GET_FUN(__glewUniform3uiv) -#define glUniform4ui GLEW_GET_FUN(__glewUniform4ui) -#define glUniform4uiv GLEW_GET_FUN(__glewUniform4uiv) -#define glVertexAttribI1i GLEW_GET_FUN(__glewVertexAttribI1i) -#define glVertexAttribI1iv GLEW_GET_FUN(__glewVertexAttribI1iv) -#define glVertexAttribI1ui GLEW_GET_FUN(__glewVertexAttribI1ui) -#define glVertexAttribI1uiv GLEW_GET_FUN(__glewVertexAttribI1uiv) -#define glVertexAttribI2i GLEW_GET_FUN(__glewVertexAttribI2i) -#define glVertexAttribI2iv GLEW_GET_FUN(__glewVertexAttribI2iv) -#define glVertexAttribI2ui GLEW_GET_FUN(__glewVertexAttribI2ui) -#define glVertexAttribI2uiv GLEW_GET_FUN(__glewVertexAttribI2uiv) -#define glVertexAttribI3i GLEW_GET_FUN(__glewVertexAttribI3i) -#define glVertexAttribI3iv GLEW_GET_FUN(__glewVertexAttribI3iv) -#define glVertexAttribI3ui GLEW_GET_FUN(__glewVertexAttribI3ui) -#define glVertexAttribI3uiv GLEW_GET_FUN(__glewVertexAttribI3uiv) -#define glVertexAttribI4bv GLEW_GET_FUN(__glewVertexAttribI4bv) -#define glVertexAttribI4i GLEW_GET_FUN(__glewVertexAttribI4i) -#define glVertexAttribI4iv GLEW_GET_FUN(__glewVertexAttribI4iv) -#define glVertexAttribI4sv GLEW_GET_FUN(__glewVertexAttribI4sv) -#define glVertexAttribI4ubv GLEW_GET_FUN(__glewVertexAttribI4ubv) -#define glVertexAttribI4ui GLEW_GET_FUN(__glewVertexAttribI4ui) -#define glVertexAttribI4uiv GLEW_GET_FUN(__glewVertexAttribI4uiv) -#define glVertexAttribI4usv GLEW_GET_FUN(__glewVertexAttribI4usv) -#define glVertexAttribIPointer GLEW_GET_FUN(__glewVertexAttribIPointer) - -#define GLEW_VERSION_3_0 GLEW_GET_VAR(__GLEW_VERSION_3_0) - -#endif /* GL_VERSION_3_0 */ - -/* ----------------------------- GL_VERSION_3_1 ---------------------------- */ - -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 - -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_BUFFER_FORMAT 0x8C2E -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_RED_SNORM 0x8F90 -#define GL_RG_SNORM 0x8F91 -#define GL_RGB_SNORM 0x8F92 -#define GL_RGBA_SNORM 0x8F93 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 - -typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum, GLint, GLsizei, GLsizei); -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum, GLsizei, GLenum, const GLvoid*, GLsizei); -typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint); -typedef void (GLAPIENTRY * PFNGLTEXBUFFERPROC) (GLenum, GLenum, GLuint); - -#define glDrawArraysInstanced GLEW_GET_FUN(__glewDrawArraysInstanced) -#define glDrawElementsInstanced GLEW_GET_FUN(__glewDrawElementsInstanced) -#define glPrimitiveRestartIndex GLEW_GET_FUN(__glewPrimitiveRestartIndex) -#define glTexBuffer GLEW_GET_FUN(__glewTexBuffer) - -#define GLEW_VERSION_3_1 GLEW_GET_VAR(__GLEW_VERSION_3_1) - -#endif /* GL_VERSION_3_1 */ - -/* ----------------------------- GL_VERSION_3_2 ---------------------------- */ - -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 - -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 - -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum, GLenum, GLuint, GLint); -typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum, GLenum, GLint64 *); -typedef void (GLAPIENTRY * PFNGLGETINTEGER64I_VPROC) (GLenum, GLuint, GLint64 *); - -#define glFramebufferTexture GLEW_GET_FUN(__glewFramebufferTexture) -#define glGetBufferParameteri64v GLEW_GET_FUN(__glewGetBufferParameteri64v) -#define glGetInteger64i_v GLEW_GET_FUN(__glewGetInteger64i_v) - -#define GLEW_VERSION_3_2 GLEW_GET_VAR(__GLEW_VERSION_3_2) - -#endif /* GL_VERSION_3_2 */ - -/* ----------------------------- GL_VERSION_3_3 ---------------------------- */ - -#ifndef GL_VERSION_3_3 -#define GL_VERSION_3_3 1 - -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE -#define GL_ANY_SAMPLES_PASSED 0x8C2F -#define GL_TEXTURE_SWIZZLE_R 0x8E42 -#define GL_TEXTURE_SWIZZLE_G 0x8E43 -#define GL_TEXTURE_SWIZZLE_B 0x8E44 -#define GL_TEXTURE_SWIZZLE_A 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 -#define GL_RGB10_A2UI 0x906F - -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); - -#define glVertexAttribDivisor GLEW_GET_FUN(__glewVertexAttribDivisor) - -#define GLEW_VERSION_3_3 GLEW_GET_VAR(__GLEW_VERSION_3_3) - -#endif /* GL_VERSION_3_3 */ - -/* ----------------------------- GL_VERSION_4_0 ---------------------------- */ - -#ifndef GL_VERSION_4_0 -#define GL_VERSION_4_0 1 - -#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F -#define GL_SAMPLE_SHADING 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F -#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F -#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F - -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGPROC) (GLclampf value); - -#define glBlendEquationSeparatei GLEW_GET_FUN(__glewBlendEquationSeparatei) -#define glBlendEquationi GLEW_GET_FUN(__glewBlendEquationi) -#define glBlendFuncSeparatei GLEW_GET_FUN(__glewBlendFuncSeparatei) -#define glBlendFunci GLEW_GET_FUN(__glewBlendFunci) -#define glMinSampleShading GLEW_GET_FUN(__glewMinSampleShading) - -#define GLEW_VERSION_4_0 GLEW_GET_VAR(__GLEW_VERSION_4_0) - -#endif /* GL_VERSION_4_0 */ - -/* ----------------------------- GL_VERSION_4_1 ---------------------------- */ - -#ifndef GL_VERSION_4_1 -#define GL_VERSION_4_1 1 - -#define GLEW_VERSION_4_1 GLEW_GET_VAR(__GLEW_VERSION_4_1) - -#endif /* GL_VERSION_4_1 */ - -/* -------------------------- GL_3DFX_multisample -------------------------- */ - -#ifndef GL_3DFX_multisample -#define GL_3DFX_multisample 1 - -#define GL_MULTISAMPLE_3DFX 0x86B2 -#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 -#define GL_SAMPLES_3DFX 0x86B4 -#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 - -#define GLEW_3DFX_multisample GLEW_GET_VAR(__GLEW_3DFX_multisample) - -#endif /* GL_3DFX_multisample */ - -/* ---------------------------- GL_3DFX_tbuffer ---------------------------- */ - -#ifndef GL_3DFX_tbuffer -#define GL_3DFX_tbuffer 1 - -typedef void (GLAPIENTRY * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); - -#define glTbufferMask3DFX GLEW_GET_FUN(__glewTbufferMask3DFX) - -#define GLEW_3DFX_tbuffer GLEW_GET_VAR(__GLEW_3DFX_tbuffer) - -#endif /* GL_3DFX_tbuffer */ - -/* -------------------- GL_3DFX_texture_compression_FXT1 ------------------- */ - -#ifndef GL_3DFX_texture_compression_FXT1 -#define GL_3DFX_texture_compression_FXT1 1 - -#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 -#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 - -#define GLEW_3DFX_texture_compression_FXT1 GLEW_GET_VAR(__GLEW_3DFX_texture_compression_FXT1) - -#endif /* GL_3DFX_texture_compression_FXT1 */ - -/* ----------------------- GL_AMD_blend_minmax_factor ---------------------- */ - -#ifndef GL_AMD_blend_minmax_factor -#define GL_AMD_blend_minmax_factor 1 - -#define GL_FACTOR_MIN_AMD 0x901C -#define GL_FACTOR_MAX_AMD 0x901D - -#define GLEW_AMD_blend_minmax_factor GLEW_GET_VAR(__GLEW_AMD_blend_minmax_factor) - -#endif /* GL_AMD_blend_minmax_factor */ - -/* ----------------------- GL_AMD_conservative_depth ----------------------- */ - -#ifndef GL_AMD_conservative_depth -#define GL_AMD_conservative_depth 1 - -#define GLEW_AMD_conservative_depth GLEW_GET_VAR(__GLEW_AMD_conservative_depth) - -#endif /* GL_AMD_conservative_depth */ - -/* -------------------------- GL_AMD_debug_output -------------------------- */ - -#ifndef GL_AMD_debug_output -#define GL_AMD_debug_output 1 - -#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 -#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 -#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 -#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A -#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B -#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C -#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D -#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E -#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F -#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 - -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); - -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void* userParam); -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const char* buf); -typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum* categories, GLuint* severities, GLuint* ids, GLsizei* lengths, char* message); - -#define glDebugMessageCallbackAMD GLEW_GET_FUN(__glewDebugMessageCallbackAMD) -#define glDebugMessageEnableAMD GLEW_GET_FUN(__glewDebugMessageEnableAMD) -#define glDebugMessageInsertAMD GLEW_GET_FUN(__glewDebugMessageInsertAMD) -#define glGetDebugMessageLogAMD GLEW_GET_FUN(__glewGetDebugMessageLogAMD) - -#define GLEW_AMD_debug_output GLEW_GET_VAR(__GLEW_AMD_debug_output) - -#endif /* GL_AMD_debug_output */ - -/* ---------------------- GL_AMD_depth_clamp_separate ---------------------- */ - -#ifndef GL_AMD_depth_clamp_separate -#define GL_AMD_depth_clamp_separate 1 - -#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E -#define GL_DEPTH_CLAMP_FAR_AMD 0x901F - -#define GLEW_AMD_depth_clamp_separate GLEW_GET_VAR(__GLEW_AMD_depth_clamp_separate) - -#endif /* GL_AMD_depth_clamp_separate */ - -/* ----------------------- GL_AMD_draw_buffers_blend ----------------------- */ - -#ifndef GL_AMD_draw_buffers_blend -#define GL_AMD_draw_buffers_blend 1 - -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode); -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); - -#define glBlendEquationIndexedAMD GLEW_GET_FUN(__glewBlendEquationIndexedAMD) -#define glBlendEquationSeparateIndexedAMD GLEW_GET_FUN(__glewBlendEquationSeparateIndexedAMD) -#define glBlendFuncIndexedAMD GLEW_GET_FUN(__glewBlendFuncIndexedAMD) -#define glBlendFuncSeparateIndexedAMD GLEW_GET_FUN(__glewBlendFuncSeparateIndexedAMD) - -#define GLEW_AMD_draw_buffers_blend GLEW_GET_VAR(__GLEW_AMD_draw_buffers_blend) - -#endif /* GL_AMD_draw_buffers_blend */ - -/* ------------------------- GL_AMD_name_gen_delete ------------------------ */ - -#ifndef GL_AMD_name_gen_delete -#define GL_AMD_name_gen_delete 1 - -#define GL_DATA_BUFFER_AMD 0x9151 -#define GL_PERFORMANCE_MONITOR_AMD 0x9152 -#define GL_QUERY_OBJECT_AMD 0x9153 -#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154 -#define GL_SAMPLER_OBJECT_AMD 0x9155 - -typedef void (GLAPIENTRY * PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint* names); -typedef void (GLAPIENTRY * PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint* names); -typedef GLboolean (GLAPIENTRY * PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name); - -#define glDeleteNamesAMD GLEW_GET_FUN(__glewDeleteNamesAMD) -#define glGenNamesAMD GLEW_GET_FUN(__glewGenNamesAMD) -#define glIsNameAMD GLEW_GET_FUN(__glewIsNameAMD) - -#define GLEW_AMD_name_gen_delete GLEW_GET_VAR(__GLEW_AMD_name_gen_delete) - -#endif /* GL_AMD_name_gen_delete */ - -/* ----------------------- GL_AMD_performance_monitor ---------------------- */ - -#ifndef GL_AMD_performance_monitor -#define GL_AMD_performance_monitor 1 - -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_COUNTER_TYPE_AMD 0x8BC0 -#define GL_COUNTER_RANGE_AMD 0x8BC1 -#define GL_UNSIGNED_INT64_AMD 0x8BC2 -#define GL_PERCENTAGE_AMD 0x8BC3 -#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 -#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 -#define GL_PERFMON_RESULT_AMD 0x8BC6 - -typedef void (GLAPIENTRY * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); -typedef void (GLAPIENTRY * PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); -typedef void (GLAPIENTRY * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); -typedef void (GLAPIENTRY * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint *bytesWritten); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void* data); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, char *counterString); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint* numCounters, GLint *maxActiveCounters, GLsizei countersSize, GLuint *counters); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, char *groupString); -typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint *groups); -typedef void (GLAPIENTRY * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList); - -#define glBeginPerfMonitorAMD GLEW_GET_FUN(__glewBeginPerfMonitorAMD) -#define glDeletePerfMonitorsAMD GLEW_GET_FUN(__glewDeletePerfMonitorsAMD) -#define glEndPerfMonitorAMD GLEW_GET_FUN(__glewEndPerfMonitorAMD) -#define glGenPerfMonitorsAMD GLEW_GET_FUN(__glewGenPerfMonitorsAMD) -#define glGetPerfMonitorCounterDataAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterDataAMD) -#define glGetPerfMonitorCounterInfoAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterInfoAMD) -#define glGetPerfMonitorCounterStringAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterStringAMD) -#define glGetPerfMonitorCountersAMD GLEW_GET_FUN(__glewGetPerfMonitorCountersAMD) -#define glGetPerfMonitorGroupStringAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupStringAMD) -#define glGetPerfMonitorGroupsAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupsAMD) -#define glSelectPerfMonitorCountersAMD GLEW_GET_FUN(__glewSelectPerfMonitorCountersAMD) - -#define GLEW_AMD_performance_monitor GLEW_GET_VAR(__GLEW_AMD_performance_monitor) - -#endif /* GL_AMD_performance_monitor */ - -/* ------------------------ GL_AMD_sample_positions ------------------------ */ - -#ifndef GL_AMD_sample_positions -#define GL_AMD_sample_positions 1 - -#define GL_SUBSAMPLE_DISTANCE_AMD 0x883F - -typedef void (GLAPIENTRY * PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat* val); - -#define glSetMultisamplefvAMD GLEW_GET_FUN(__glewSetMultisamplefvAMD) - -#define GLEW_AMD_sample_positions GLEW_GET_VAR(__GLEW_AMD_sample_positions) - -#endif /* GL_AMD_sample_positions */ - -/* ------------------ GL_AMD_seamless_cubemap_per_texture ------------------ */ - -#ifndef GL_AMD_seamless_cubemap_per_texture -#define GL_AMD_seamless_cubemap_per_texture 1 - -#define GL_TEXTURE_CUBE_MAP_SEAMLESS_ARB 0x884F - -#define GLEW_AMD_seamless_cubemap_per_texture GLEW_GET_VAR(__GLEW_AMD_seamless_cubemap_per_texture) - -#endif /* GL_AMD_seamless_cubemap_per_texture */ - -/* ---------------------- GL_AMD_shader_stencil_export --------------------- */ - -#ifndef GL_AMD_shader_stencil_export -#define GL_AMD_shader_stencil_export 1 - -#define GLEW_AMD_shader_stencil_export GLEW_GET_VAR(__GLEW_AMD_shader_stencil_export) - -#endif /* GL_AMD_shader_stencil_export */ - -/* ------------------------ GL_AMD_texture_texture4 ------------------------ */ - -#ifndef GL_AMD_texture_texture4 -#define GL_AMD_texture_texture4 1 - -#define GLEW_AMD_texture_texture4 GLEW_GET_VAR(__GLEW_AMD_texture_texture4) - -#endif /* GL_AMD_texture_texture4 */ - -/* --------------- GL_AMD_transform_feedback3_lines_triangles -------------- */ - -#ifndef GL_AMD_transform_feedback3_lines_triangles -#define GL_AMD_transform_feedback3_lines_triangles 1 - -#define GLEW_AMD_transform_feedback3_lines_triangles GLEW_GET_VAR(__GLEW_AMD_transform_feedback3_lines_triangles) - -#endif /* GL_AMD_transform_feedback3_lines_triangles */ - -/* -------------------- GL_AMD_vertex_shader_tessellator ------------------- */ - -#ifndef GL_AMD_vertex_shader_tessellator -#define GL_AMD_vertex_shader_tessellator 1 - -#define GL_SAMPLER_BUFFER_AMD 0x9001 -#define GL_INT_SAMPLER_BUFFER_AMD 0x9002 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003 -#define GL_TESSELLATION_MODE_AMD 0x9004 -#define GL_TESSELLATION_FACTOR_AMD 0x9005 -#define GL_DISCRETE_AMD 0x9006 -#define GL_CONTINUOUS_AMD 0x9007 - -typedef void (GLAPIENTRY * PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor); -typedef void (GLAPIENTRY * PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode); - -#define glTessellationFactorAMD GLEW_GET_FUN(__glewTessellationFactorAMD) -#define glTessellationModeAMD GLEW_GET_FUN(__glewTessellationModeAMD) - -#define GLEW_AMD_vertex_shader_tessellator GLEW_GET_VAR(__GLEW_AMD_vertex_shader_tessellator) - -#endif /* GL_AMD_vertex_shader_tessellator */ - -/* ----------------------- GL_APPLE_aux_depth_stencil ---------------------- */ - -#ifndef GL_APPLE_aux_depth_stencil -#define GL_APPLE_aux_depth_stencil 1 - -#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14 - -#define GLEW_APPLE_aux_depth_stencil GLEW_GET_VAR(__GLEW_APPLE_aux_depth_stencil) - -#endif /* GL_APPLE_aux_depth_stencil */ - -/* ------------------------ GL_APPLE_client_storage ------------------------ */ - -#ifndef GL_APPLE_client_storage -#define GL_APPLE_client_storage 1 - -#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 - -#define GLEW_APPLE_client_storage GLEW_GET_VAR(__GLEW_APPLE_client_storage) - -#endif /* GL_APPLE_client_storage */ - -/* ------------------------- GL_APPLE_element_array ------------------------ */ - -#ifndef GL_APPLE_element_array -#define GL_APPLE_element_array 1 - -#define GL_ELEMENT_ARRAY_APPLE 0x8A0C -#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D -#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E - -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void* pointer); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei *count, GLsizei primcount); - -#define glDrawElementArrayAPPLE GLEW_GET_FUN(__glewDrawElementArrayAPPLE) -#define glDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewDrawRangeElementArrayAPPLE) -#define glElementPointerAPPLE GLEW_GET_FUN(__glewElementPointerAPPLE) -#define glMultiDrawElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawElementArrayAPPLE) -#define glMultiDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawRangeElementArrayAPPLE) - -#define GLEW_APPLE_element_array GLEW_GET_VAR(__GLEW_APPLE_element_array) - -#endif /* GL_APPLE_element_array */ - -/* ----------------------------- GL_APPLE_fence ---------------------------- */ - -#ifndef GL_APPLE_fence -#define GL_APPLE_fence 1 - -#define GL_DRAW_PIXELS_APPLE 0x8A0A -#define GL_FENCE_APPLE 0x8A0B - -typedef void (GLAPIENTRY * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint* fences); -typedef void (GLAPIENTRY * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence); -typedef void (GLAPIENTRY * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name); -typedef void (GLAPIENTRY * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint* fences); -typedef GLboolean (GLAPIENTRY * PFNGLISFENCEAPPLEPROC) (GLuint fence); -typedef void (GLAPIENTRY * PFNGLSETFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCEAPPLEPROC) (GLuint fence); -typedef GLboolean (GLAPIENTRY * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name); - -#define glDeleteFencesAPPLE GLEW_GET_FUN(__glewDeleteFencesAPPLE) -#define glFinishFenceAPPLE GLEW_GET_FUN(__glewFinishFenceAPPLE) -#define glFinishObjectAPPLE GLEW_GET_FUN(__glewFinishObjectAPPLE) -#define glGenFencesAPPLE GLEW_GET_FUN(__glewGenFencesAPPLE) -#define glIsFenceAPPLE GLEW_GET_FUN(__glewIsFenceAPPLE) -#define glSetFenceAPPLE GLEW_GET_FUN(__glewSetFenceAPPLE) -#define glTestFenceAPPLE GLEW_GET_FUN(__glewTestFenceAPPLE) -#define glTestObjectAPPLE GLEW_GET_FUN(__glewTestObjectAPPLE) - -#define GLEW_APPLE_fence GLEW_GET_VAR(__GLEW_APPLE_fence) - -#endif /* GL_APPLE_fence */ - -/* ------------------------- GL_APPLE_float_pixels ------------------------- */ - -#ifndef GL_APPLE_float_pixels -#define GL_APPLE_float_pixels 1 - -#define GL_HALF_APPLE 0x140B -#define GL_RGBA_FLOAT32_APPLE 0x8814 -#define GL_RGB_FLOAT32_APPLE 0x8815 -#define GL_ALPHA_FLOAT32_APPLE 0x8816 -#define GL_INTENSITY_FLOAT32_APPLE 0x8817 -#define GL_LUMINANCE_FLOAT32_APPLE 0x8818 -#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 -#define GL_RGBA_FLOAT16_APPLE 0x881A -#define GL_RGB_FLOAT16_APPLE 0x881B -#define GL_ALPHA_FLOAT16_APPLE 0x881C -#define GL_INTENSITY_FLOAT16_APPLE 0x881D -#define GL_LUMINANCE_FLOAT16_APPLE 0x881E -#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F -#define GL_COLOR_FLOAT_APPLE 0x8A0F - -#define GLEW_APPLE_float_pixels GLEW_GET_VAR(__GLEW_APPLE_float_pixels) - -#endif /* GL_APPLE_float_pixels */ - -/* ---------------------- GL_APPLE_flush_buffer_range ---------------------- */ - -#ifndef GL_APPLE_flush_buffer_range -#define GL_APPLE_flush_buffer_range 1 - -#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 -#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 - -typedef void (GLAPIENTRY * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size); - -#define glBufferParameteriAPPLE GLEW_GET_FUN(__glewBufferParameteriAPPLE) -#define glFlushMappedBufferRangeAPPLE GLEW_GET_FUN(__glewFlushMappedBufferRangeAPPLE) - -#define GLEW_APPLE_flush_buffer_range GLEW_GET_VAR(__GLEW_APPLE_flush_buffer_range) - -#endif /* GL_APPLE_flush_buffer_range */ - -/* ----------------------- GL_APPLE_object_purgeable ----------------------- */ - -#ifndef GL_APPLE_object_purgeable -#define GL_APPLE_object_purgeable 1 - -#define GL_BUFFER_OBJECT_APPLE 0x85B3 -#define GL_RELEASED_APPLE 0x8A19 -#define GL_VOLATILE_APPLE 0x8A1A -#define GL_RETAINED_APPLE 0x8A1B -#define GL_UNDEFINED_APPLE 0x8A1C -#define GL_PURGEABLE_APPLE 0x8A1D - -typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint* params); -typedef GLenum (GLAPIENTRY * PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); -typedef GLenum (GLAPIENTRY * PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option); - -#define glGetObjectParameterivAPPLE GLEW_GET_FUN(__glewGetObjectParameterivAPPLE) -#define glObjectPurgeableAPPLE GLEW_GET_FUN(__glewObjectPurgeableAPPLE) -#define glObjectUnpurgeableAPPLE GLEW_GET_FUN(__glewObjectUnpurgeableAPPLE) - -#define GLEW_APPLE_object_purgeable GLEW_GET_VAR(__GLEW_APPLE_object_purgeable) - -#endif /* GL_APPLE_object_purgeable */ - -/* ------------------------- GL_APPLE_pixel_buffer ------------------------- */ - -#ifndef GL_APPLE_pixel_buffer -#define GL_APPLE_pixel_buffer 1 - -#define GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10 - -#define GLEW_APPLE_pixel_buffer GLEW_GET_VAR(__GLEW_APPLE_pixel_buffer) - -#endif /* GL_APPLE_pixel_buffer */ - -/* ---------------------------- GL_APPLE_rgb_422 --------------------------- */ - -#ifndef GL_APPLE_rgb_422 -#define GL_APPLE_rgb_422 1 - -#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB -#define GL_RGB_422_APPLE 0x8A1F - -#define GLEW_APPLE_rgb_422 GLEW_GET_VAR(__GLEW_APPLE_rgb_422) - -#endif /* GL_APPLE_rgb_422 */ - -/* --------------------------- GL_APPLE_row_bytes -------------------------- */ - -#ifndef GL_APPLE_row_bytes -#define GL_APPLE_row_bytes 1 - -#define GL_PACK_ROW_BYTES_APPLE 0x8A15 -#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16 - -#define GLEW_APPLE_row_bytes GLEW_GET_VAR(__GLEW_APPLE_row_bytes) - -#endif /* GL_APPLE_row_bytes */ - -/* ------------------------ GL_APPLE_specular_vector ----------------------- */ - -#ifndef GL_APPLE_specular_vector -#define GL_APPLE_specular_vector 1 - -#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 - -#define GLEW_APPLE_specular_vector GLEW_GET_VAR(__GLEW_APPLE_specular_vector) - -#endif /* GL_APPLE_specular_vector */ - -/* ------------------------- GL_APPLE_texture_range ------------------------ */ - -#ifndef GL_APPLE_texture_range -#define GL_APPLE_texture_range 1 - -#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 -#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 -#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC -#define GL_STORAGE_PRIVATE_APPLE 0x85BD -#define GL_STORAGE_CACHED_APPLE 0x85BE -#define GL_STORAGE_SHARED_APPLE 0x85BF - -typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid **params); -typedef void (GLAPIENTRY * PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, GLvoid *pointer); - -#define glGetTexParameterPointervAPPLE GLEW_GET_FUN(__glewGetTexParameterPointervAPPLE) -#define glTextureRangeAPPLE GLEW_GET_FUN(__glewTextureRangeAPPLE) - -#define GLEW_APPLE_texture_range GLEW_GET_VAR(__GLEW_APPLE_texture_range) - -#endif /* GL_APPLE_texture_range */ - -/* ------------------------ GL_APPLE_transform_hint ------------------------ */ - -#ifndef GL_APPLE_transform_hint -#define GL_APPLE_transform_hint 1 - -#define GL_TRANSFORM_HINT_APPLE 0x85B1 - -#define GLEW_APPLE_transform_hint GLEW_GET_VAR(__GLEW_APPLE_transform_hint) - -#endif /* GL_APPLE_transform_hint */ - -/* ---------------------- GL_APPLE_vertex_array_object --------------------- */ - -#ifndef GL_APPLE_vertex_array_object -#define GL_APPLE_vertex_array_object 1 - -#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 - -typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array); -typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays); -typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays); -typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array); - -#define glBindVertexArrayAPPLE GLEW_GET_FUN(__glewBindVertexArrayAPPLE) -#define glDeleteVertexArraysAPPLE GLEW_GET_FUN(__glewDeleteVertexArraysAPPLE) -#define glGenVertexArraysAPPLE GLEW_GET_FUN(__glewGenVertexArraysAPPLE) -#define glIsVertexArrayAPPLE GLEW_GET_FUN(__glewIsVertexArrayAPPLE) - -#define GLEW_APPLE_vertex_array_object GLEW_GET_VAR(__GLEW_APPLE_vertex_array_object) - -#endif /* GL_APPLE_vertex_array_object */ - -/* ---------------------- GL_APPLE_vertex_array_range ---------------------- */ - -#ifndef GL_APPLE_vertex_array_range -#define GL_APPLE_vertex_array_range 1 - -#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_MAX_VERTEX_ARRAY_RANGE_ELEMENT_APPLE 0x8520 -#define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521 -#define GL_STORAGE_CLIENT_APPLE 0x85B4 -#define GL_STORAGE_CACHED_APPLE 0x85BE -#define GL_STORAGE_SHARED_APPLE 0x85BF - -typedef void (GLAPIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer); - -#define glFlushVertexArrayRangeAPPLE GLEW_GET_FUN(__glewFlushVertexArrayRangeAPPLE) -#define glVertexArrayParameteriAPPLE GLEW_GET_FUN(__glewVertexArrayParameteriAPPLE) -#define glVertexArrayRangeAPPLE GLEW_GET_FUN(__glewVertexArrayRangeAPPLE) - -#define GLEW_APPLE_vertex_array_range GLEW_GET_VAR(__GLEW_APPLE_vertex_array_range) - -#endif /* GL_APPLE_vertex_array_range */ - -/* ------------------- GL_APPLE_vertex_program_evaluators ------------------ */ - -#ifndef GL_APPLE_vertex_program_evaluators -#define GL_APPLE_vertex_program_evaluators 1 - -#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00 -#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01 -#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02 -#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03 -#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04 -#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05 -#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06 -#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07 -#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08 -#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09 - -typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); -typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname); -typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname); -typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points); -typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points); -typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points); -typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points); - -#define glDisableVertexAttribAPPLE GLEW_GET_FUN(__glewDisableVertexAttribAPPLE) -#define glEnableVertexAttribAPPLE GLEW_GET_FUN(__glewEnableVertexAttribAPPLE) -#define glIsVertexAttribEnabledAPPLE GLEW_GET_FUN(__glewIsVertexAttribEnabledAPPLE) -#define glMapVertexAttrib1dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1dAPPLE) -#define glMapVertexAttrib1fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1fAPPLE) -#define glMapVertexAttrib2dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2dAPPLE) -#define glMapVertexAttrib2fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2fAPPLE) - -#define GLEW_APPLE_vertex_program_evaluators GLEW_GET_VAR(__GLEW_APPLE_vertex_program_evaluators) - -#endif /* GL_APPLE_vertex_program_evaluators */ - -/* --------------------------- GL_APPLE_ycbcr_422 -------------------------- */ - -#ifndef GL_APPLE_ycbcr_422 -#define GL_APPLE_ycbcr_422 1 - -#define GL_YCBCR_422_APPLE 0x85B9 -#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB - -#define GLEW_APPLE_ycbcr_422 GLEW_GET_VAR(__GLEW_APPLE_ycbcr_422) - -#endif /* GL_APPLE_ycbcr_422 */ - -/* ------------------------ GL_ARB_ES2_compatibility ----------------------- */ - -#ifndef GL_ARB_ES2_compatibility -#define GL_ARB_ES2_compatibility 1 - -#define GL_FIXED 0x140C -#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B -#define GL_LOW_FLOAT 0x8DF0 -#define GL_MEDIUM_FLOAT 0x8DF1 -#define GL_HIGH_FLOAT 0x8DF2 -#define GL_LOW_INT 0x8DF3 -#define GL_MEDIUM_INT 0x8DF4 -#define GL_HIGH_INT 0x8DF5 -#define GL_SHADER_BINARY_FORMATS 0x8DF8 -#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 -#define GL_SHADER_COMPILER 0x8DFA -#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB -#define GL_MAX_VARYING_VECTORS 0x8DFC -#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD - -typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFPROC) (GLclampf d); -typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFPROC) (GLclampf n, GLclampf f); -typedef void (GLAPIENTRY * PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint* range, GLint *precision); -typedef void (GLAPIENTRY * PFNGLRELEASESHADERCOMPILERPROC) (void); -typedef void (GLAPIENTRY * PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint* shaders, GLenum binaryformat, const GLvoid*binary, GLsizei length); - -#define glClearDepthf GLEW_GET_FUN(__glewClearDepthf) -#define glDepthRangef GLEW_GET_FUN(__glewDepthRangef) -#define glGetShaderPrecisionFormat GLEW_GET_FUN(__glewGetShaderPrecisionFormat) -#define glReleaseShaderCompiler GLEW_GET_FUN(__glewReleaseShaderCompiler) -#define glShaderBinary GLEW_GET_FUN(__glewShaderBinary) - -#define GLEW_ARB_ES2_compatibility GLEW_GET_VAR(__GLEW_ARB_ES2_compatibility) - -#endif /* GL_ARB_ES2_compatibility */ - -/* ----------------------- GL_ARB_blend_func_extended ---------------------- */ - -#ifndef GL_ARB_blend_func_extended -#define GL_ARB_blend_func_extended 1 - -#define GL_SRC1_COLOR 0x88F9 -#define GL_ONE_MINUS_SRC1_COLOR 0x88FA -#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB -#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC - -typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const char * name); -typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const char * name); - -#define glBindFragDataLocationIndexed GLEW_GET_FUN(__glewBindFragDataLocationIndexed) -#define glGetFragDataIndex GLEW_GET_FUN(__glewGetFragDataIndex) - -#define GLEW_ARB_blend_func_extended GLEW_GET_VAR(__GLEW_ARB_blend_func_extended) - -#endif /* GL_ARB_blend_func_extended */ - -/* ---------------------------- GL_ARB_cl_event ---------------------------- */ - -#ifndef GL_ARB_cl_event -#define GL_ARB_cl_event 1 - -#define GL_SYNC_CL_EVENT_ARB 0x8240 -#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 - -typedef struct _cl_context *cl_context; -typedef struct _cl_event *cl_event; - -typedef GLsync (GLAPIENTRY * PFNGLCREATESYNCFROMCLEVENTARBPROC) (cl_context context, cl_event event, GLbitfield flags); - -#define glCreateSyncFromCLeventARB GLEW_GET_FUN(__glewCreateSyncFromCLeventARB) - -#define GLEW_ARB_cl_event GLEW_GET_VAR(__GLEW_ARB_cl_event) - -#endif /* GL_ARB_cl_event */ - -/* ----------------------- GL_ARB_color_buffer_float ----------------------- */ - -#ifndef GL_ARB_color_buffer_float -#define GL_ARB_color_buffer_float 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp); - -#define glClampColorARB GLEW_GET_FUN(__glewClampColorARB) - -#define GLEW_ARB_color_buffer_float GLEW_GET_VAR(__GLEW_ARB_color_buffer_float) - -#endif /* GL_ARB_color_buffer_float */ - -/* -------------------------- GL_ARB_compatibility ------------------------- */ - -#ifndef GL_ARB_compatibility -#define GL_ARB_compatibility 1 - -#define GLEW_ARB_compatibility GLEW_GET_VAR(__GLEW_ARB_compatibility) - -#endif /* GL_ARB_compatibility */ - -/* --------------------------- GL_ARB_copy_buffer -------------------------- */ - -#ifndef GL_ARB_copy_buffer -#define GL_ARB_copy_buffer 1 - -#define GL_COPY_READ_BUFFER 0x8F36 -#define GL_COPY_WRITE_BUFFER 0x8F37 - -typedef void (GLAPIENTRY * PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readtarget, GLenum writetarget, GLintptr readoffset, GLintptr writeoffset, GLsizeiptr size); - -#define glCopyBufferSubData GLEW_GET_FUN(__glewCopyBufferSubData) - -#define GLEW_ARB_copy_buffer GLEW_GET_VAR(__GLEW_ARB_copy_buffer) - -#endif /* GL_ARB_copy_buffer */ - -/* -------------------------- GL_ARB_debug_output -------------------------- */ - -#ifndef GL_ARB_debug_output -#define GL_ARB_debug_output 1 - -#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 -#define GL_DEBUG_SOURCE_API_ARB 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A -#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B -#define GL_DEBUG_TYPE_ERROR_ARB 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E -#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 -#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 -#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 - -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); - -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, void* userParam); -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); -typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* buf); -typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, char* messageLog); - -#define glDebugMessageCallbackARB GLEW_GET_FUN(__glewDebugMessageCallbackARB) -#define glDebugMessageControlARB GLEW_GET_FUN(__glewDebugMessageControlARB) -#define glDebugMessageInsertARB GLEW_GET_FUN(__glewDebugMessageInsertARB) -#define glGetDebugMessageLogARB GLEW_GET_FUN(__glewGetDebugMessageLogARB) - -#define GLEW_ARB_debug_output GLEW_GET_VAR(__GLEW_ARB_debug_output) - -#endif /* GL_ARB_debug_output */ - -/* ----------------------- GL_ARB_depth_buffer_float ----------------------- */ - -#ifndef GL_ARB_depth_buffer_float -#define GL_ARB_depth_buffer_float 1 - -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD - -#define GLEW_ARB_depth_buffer_float GLEW_GET_VAR(__GLEW_ARB_depth_buffer_float) - -#endif /* GL_ARB_depth_buffer_float */ - -/* --------------------------- GL_ARB_depth_clamp -------------------------- */ - -#ifndef GL_ARB_depth_clamp -#define GL_ARB_depth_clamp 1 - -#define GL_DEPTH_CLAMP 0x864F - -#define GLEW_ARB_depth_clamp GLEW_GET_VAR(__GLEW_ARB_depth_clamp) - -#endif /* GL_ARB_depth_clamp */ - -/* -------------------------- GL_ARB_depth_texture ------------------------- */ - -#ifndef GL_ARB_depth_texture -#define GL_ARB_depth_texture 1 - -#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 - -#define GLEW_ARB_depth_texture GLEW_GET_VAR(__GLEW_ARB_depth_texture) - -#endif /* GL_ARB_depth_texture */ - -/* -------------------------- GL_ARB_draw_buffers -------------------------- */ - -#ifndef GL_ARB_draw_buffers -#define GL_ARB_draw_buffers 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum* bufs); - -#define glDrawBuffersARB GLEW_GET_FUN(__glewDrawBuffersARB) - -#define GLEW_ARB_draw_buffers GLEW_GET_VAR(__GLEW_ARB_draw_buffers) - -#endif /* GL_ARB_draw_buffers */ - -/* ----------------------- GL_ARB_draw_buffers_blend ----------------------- */ - -#ifndef GL_ARB_draw_buffers_blend -#define GL_ARB_draw_buffers_blend 1 - -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -typedef void (GLAPIENTRY * PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); - -#define glBlendEquationSeparateiARB GLEW_GET_FUN(__glewBlendEquationSeparateiARB) -#define glBlendEquationiARB GLEW_GET_FUN(__glewBlendEquationiARB) -#define glBlendFuncSeparateiARB GLEW_GET_FUN(__glewBlendFuncSeparateiARB) -#define glBlendFunciARB GLEW_GET_FUN(__glewBlendFunciARB) - -#define GLEW_ARB_draw_buffers_blend GLEW_GET_VAR(__GLEW_ARB_draw_buffers_blend) - -#endif /* GL_ARB_draw_buffers_blend */ - -/* -------------------- GL_ARB_draw_elements_base_vertex ------------------- */ - -#ifndef GL_ARB_draw_elements_base_vertex -#define GL_ARB_draw_elements_base_vertex 1 - -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, void* indices, GLint basevertex); -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount, GLint basevertex); -typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, void* indices, GLint basevertex); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei* count, GLenum type, GLvoid**indices, GLsizei primcount, GLint *basevertex); - -#define glDrawElementsBaseVertex GLEW_GET_FUN(__glewDrawElementsBaseVertex) -#define glDrawElementsInstancedBaseVertex GLEW_GET_FUN(__glewDrawElementsInstancedBaseVertex) -#define glDrawRangeElementsBaseVertex GLEW_GET_FUN(__glewDrawRangeElementsBaseVertex) -#define glMultiDrawElementsBaseVertex GLEW_GET_FUN(__glewMultiDrawElementsBaseVertex) - -#define GLEW_ARB_draw_elements_base_vertex GLEW_GET_VAR(__GLEW_ARB_draw_elements_base_vertex) - -#endif /* GL_ARB_draw_elements_base_vertex */ - -/* -------------------------- GL_ARB_draw_indirect ------------------------- */ - -#ifndef GL_ARB_draw_indirect -#define GL_ARB_draw_indirect 1 - -#define GL_DRAW_INDIRECT_BUFFER 0x8F3F -#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 - -typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void* indirect); -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void* indirect); - -#define glDrawArraysIndirect GLEW_GET_FUN(__glewDrawArraysIndirect) -#define glDrawElementsIndirect GLEW_GET_FUN(__glewDrawElementsIndirect) - -#define GLEW_ARB_draw_indirect GLEW_GET_VAR(__GLEW_ARB_draw_indirect) - -#endif /* GL_ARB_draw_indirect */ - -/* ------------------------- GL_ARB_draw_instanced ------------------------- */ - -#ifndef GL_ARB_draw_instanced -#define GL_ARB_draw_instanced 1 - -#define GLEW_ARB_draw_instanced GLEW_GET_VAR(__GLEW_ARB_draw_instanced) - -#endif /* GL_ARB_draw_instanced */ - -/* -------------------- GL_ARB_explicit_attrib_location -------------------- */ - -#ifndef GL_ARB_explicit_attrib_location -#define GL_ARB_explicit_attrib_location 1 - -#define GLEW_ARB_explicit_attrib_location GLEW_GET_VAR(__GLEW_ARB_explicit_attrib_location) - -#endif /* GL_ARB_explicit_attrib_location */ - -/* ------------------- GL_ARB_fragment_coord_conventions ------------------- */ - -#ifndef GL_ARB_fragment_coord_conventions -#define GL_ARB_fragment_coord_conventions 1 - -#define GLEW_ARB_fragment_coord_conventions GLEW_GET_VAR(__GLEW_ARB_fragment_coord_conventions) - -#endif /* GL_ARB_fragment_coord_conventions */ - -/* ------------------------ GL_ARB_fragment_program ------------------------ */ - -#ifndef GL_ARB_fragment_program -#define GL_ARB_fragment_program 1 - -#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 - -#define GLEW_ARB_fragment_program GLEW_GET_VAR(__GLEW_ARB_fragment_program) - -#endif /* GL_ARB_fragment_program */ - -/* --------------------- GL_ARB_fragment_program_shadow -------------------- */ - -#ifndef GL_ARB_fragment_program_shadow -#define GL_ARB_fragment_program_shadow 1 - -#define GLEW_ARB_fragment_program_shadow GLEW_GET_VAR(__GLEW_ARB_fragment_program_shadow) - -#endif /* GL_ARB_fragment_program_shadow */ - -/* ------------------------- GL_ARB_fragment_shader ------------------------ */ - -#ifndef GL_ARB_fragment_shader -#define GL_ARB_fragment_shader 1 - -#define GL_FRAGMENT_SHADER_ARB 0x8B30 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B - -#define GLEW_ARB_fragment_shader GLEW_GET_VAR(__GLEW_ARB_fragment_shader) - -#endif /* GL_ARB_fragment_shader */ - -/* ----------------------- GL_ARB_framebuffer_object ----------------------- */ - -#ifndef GL_ARB_framebuffer_object -#define GL_ARB_framebuffer_object 1 - -#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 -#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210 -#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211 -#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212 -#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213 -#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214 -#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215 -#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216 -#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217 -#define GL_FRAMEBUFFER_DEFAULT 0x8218 -#define GL_FRAMEBUFFER_UNDEFINED 0x8219 -#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A -#define GL_INDEX 0x8222 -#define GL_MAX_RENDERBUFFER_SIZE 0x84E8 -#define GL_DEPTH_STENCIL 0x84F9 -#define GL_UNSIGNED_INT_24_8 0x84FA -#define GL_DEPTH24_STENCIL8 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE 0x88F1 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_SRGB 0x8C40 -#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_RENDERBUFFER_BINDING 0x8CA7 -#define GL_READ_FRAMEBUFFER 0x8CA8 -#define GL_DRAW_FRAMEBUFFER 0x8CA9 -#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA -#define GL_RENDERBUFFER_SAMPLES 0x8CAB -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0 -#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 -#define GL_FRAMEBUFFER_COMPLETE 0x8CD5 -#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6 -#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7 -#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB -#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC -#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD -#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF -#define GL_COLOR_ATTACHMENT0 0x8CE0 -#define GL_COLOR_ATTACHMENT1 0x8CE1 -#define GL_COLOR_ATTACHMENT2 0x8CE2 -#define GL_COLOR_ATTACHMENT3 0x8CE3 -#define GL_COLOR_ATTACHMENT4 0x8CE4 -#define GL_COLOR_ATTACHMENT5 0x8CE5 -#define GL_COLOR_ATTACHMENT6 0x8CE6 -#define GL_COLOR_ATTACHMENT7 0x8CE7 -#define GL_COLOR_ATTACHMENT8 0x8CE8 -#define GL_COLOR_ATTACHMENT9 0x8CE9 -#define GL_COLOR_ATTACHMENT10 0x8CEA -#define GL_COLOR_ATTACHMENT11 0x8CEB -#define GL_COLOR_ATTACHMENT12 0x8CEC -#define GL_COLOR_ATTACHMENT13 0x8CED -#define GL_COLOR_ATTACHMENT14 0x8CEE -#define GL_COLOR_ATTACHMENT15 0x8CEF -#define GL_DEPTH_ATTACHMENT 0x8D00 -#define GL_STENCIL_ATTACHMENT 0x8D20 -#define GL_FRAMEBUFFER 0x8D40 -#define GL_RENDERBUFFER 0x8D41 -#define GL_RENDERBUFFER_WIDTH 0x8D42 -#define GL_RENDERBUFFER_HEIGHT 0x8D43 -#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44 -#define GL_STENCIL_INDEX1 0x8D46 -#define GL_STENCIL_INDEX4 0x8D47 -#define GL_STENCIL_INDEX8 0x8D48 -#define GL_STENCIL_INDEX16 0x8D49 -#define GL_RENDERBUFFER_RED_SIZE 0x8D50 -#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51 -#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52 -#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53 -#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54 -#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 -#define GL_MAX_SAMPLES 0x8D57 - -typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); -typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint* framebuffers); -typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint* renderbuffers); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target,GLenum attachment, GLuint texture,GLint level,GLint layer); -typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers); -typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers); -typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); -typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); - -#define glBindFramebuffer GLEW_GET_FUN(__glewBindFramebuffer) -#define glBindRenderbuffer GLEW_GET_FUN(__glewBindRenderbuffer) -#define glBlitFramebuffer GLEW_GET_FUN(__glewBlitFramebuffer) -#define glCheckFramebufferStatus GLEW_GET_FUN(__glewCheckFramebufferStatus) -#define glDeleteFramebuffers GLEW_GET_FUN(__glewDeleteFramebuffers) -#define glDeleteRenderbuffers GLEW_GET_FUN(__glewDeleteRenderbuffers) -#define glFramebufferRenderbuffer GLEW_GET_FUN(__glewFramebufferRenderbuffer) -#define glFramebufferTexture1D GLEW_GET_FUN(__glewFramebufferTexture1D) -#define glFramebufferTexture2D GLEW_GET_FUN(__glewFramebufferTexture2D) -#define glFramebufferTexture3D GLEW_GET_FUN(__glewFramebufferTexture3D) -#define glFramebufferTextureLayer GLEW_GET_FUN(__glewFramebufferTextureLayer) -#define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers) -#define glGenRenderbuffers GLEW_GET_FUN(__glewGenRenderbuffers) -#define glGenerateMipmap GLEW_GET_FUN(__glewGenerateMipmap) -#define glGetFramebufferAttachmentParameteriv GLEW_GET_FUN(__glewGetFramebufferAttachmentParameteriv) -#define glGetRenderbufferParameteriv GLEW_GET_FUN(__glewGetRenderbufferParameteriv) -#define glIsFramebuffer GLEW_GET_FUN(__glewIsFramebuffer) -#define glIsRenderbuffer GLEW_GET_FUN(__glewIsRenderbuffer) -#define glRenderbufferStorage GLEW_GET_FUN(__glewRenderbufferStorage) -#define glRenderbufferStorageMultisample GLEW_GET_FUN(__glewRenderbufferStorageMultisample) - -#define GLEW_ARB_framebuffer_object GLEW_GET_VAR(__GLEW_ARB_framebuffer_object) - -#endif /* GL_ARB_framebuffer_object */ - -/* ------------------------ GL_ARB_framebuffer_sRGB ------------------------ */ - -#ifndef GL_ARB_framebuffer_sRGB -#define GL_ARB_framebuffer_sRGB 1 - -#define GL_FRAMEBUFFER_SRGB 0x8DB9 - -#define GLEW_ARB_framebuffer_sRGB GLEW_GET_VAR(__GLEW_ARB_framebuffer_sRGB) - -#endif /* GL_ARB_framebuffer_sRGB */ - -/* ------------------------ GL_ARB_geometry_shader4 ------------------------ */ - -#ifndef GL_ARB_geometry_shader4 -#define GL_ARB_geometry_shader4 1 - -#define GL_LINES_ADJACENCY_ARB 0xA -#define GL_LINE_STRIP_ADJACENCY_ARB 0xB -#define GL_TRIANGLES_ADJACENCY_ARB 0xC -#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0xD -#define GL_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9 -#define GL_GEOMETRY_SHADER_ARB 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA -#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB -#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC -#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD -#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 - -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value); - -#define glFramebufferTextureARB GLEW_GET_FUN(__glewFramebufferTextureARB) -#define glFramebufferTextureFaceARB GLEW_GET_FUN(__glewFramebufferTextureFaceARB) -#define glFramebufferTextureLayerARB GLEW_GET_FUN(__glewFramebufferTextureLayerARB) -#define glProgramParameteriARB GLEW_GET_FUN(__glewProgramParameteriARB) - -#define GLEW_ARB_geometry_shader4 GLEW_GET_VAR(__GLEW_ARB_geometry_shader4) - -#endif /* GL_ARB_geometry_shader4 */ - -/* ----------------------- GL_ARB_get_program_binary ----------------------- */ - -#ifndef GL_ARB_get_program_binary -#define GL_ARB_get_program_binary 1 - -#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 -#define GL_PROGRAM_BINARY_LENGTH 0x8741 -#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE -#define GL_PROGRAM_BINARY_FORMATS 0x87FF - -typedef void (GLAPIENTRY * PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLenum *binaryFormat, GLvoid*binary); -typedef void (GLAPIENTRY * PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void* binary, GLsizei length); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); - -#define glGetProgramBinary GLEW_GET_FUN(__glewGetProgramBinary) -#define glProgramBinary GLEW_GET_FUN(__glewProgramBinary) -#define glProgramParameteri GLEW_GET_FUN(__glewProgramParameteri) - -#define GLEW_ARB_get_program_binary GLEW_GET_VAR(__GLEW_ARB_get_program_binary) - -#endif /* GL_ARB_get_program_binary */ - -/* --------------------------- GL_ARB_gpu_shader5 -------------------------- */ - -#ifndef GL_ARB_gpu_shader5 -#define GL_ARB_gpu_shader5 1 - -#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D -#define GL_MAX_VERTEX_STREAMS 0x8E71 - -#define GLEW_ARB_gpu_shader5 GLEW_GET_VAR(__GLEW_ARB_gpu_shader5) - -#endif /* GL_ARB_gpu_shader5 */ - -/* ------------------------- GL_ARB_gpu_shader_fp64 ------------------------ */ - -#ifndef GL_ARB_gpu_shader_fp64 -#define GL_ARB_gpu_shader_fp64 1 - -#define GL_DOUBLE_MAT2 0x8F46 -#define GL_DOUBLE_MAT3 0x8F47 -#define GL_DOUBLE_MAT4 0x8F48 -#define GL_DOUBLE_MAT2x3 0x8F49 -#define GL_DOUBLE_MAT2x4 0x8F4A -#define GL_DOUBLE_MAT3x2 0x8F4B -#define GL_DOUBLE_MAT3x4 0x8F4C -#define GL_DOUBLE_MAT4x2 0x8F4D -#define GL_DOUBLE_MAT4x3 0x8F4E -#define GL_DOUBLE_VEC2 0x8FFC -#define GL_DOUBLE_VEC3 0x8FFD -#define GL_DOUBLE_VEC4 0x8FFE - -typedef void (GLAPIENTRY * PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DEXTPROC) (GLuint program, GLint location, GLdouble x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DEXTPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); -typedef void (GLAPIENTRY * PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); - -#define glGetUniformdv GLEW_GET_FUN(__glewGetUniformdv) -#define glProgramUniform1dEXT GLEW_GET_FUN(__glewProgramUniform1dEXT) -#define glProgramUniform1dvEXT GLEW_GET_FUN(__glewProgramUniform1dvEXT) -#define glProgramUniform2dEXT GLEW_GET_FUN(__glewProgramUniform2dEXT) -#define glProgramUniform2dvEXT GLEW_GET_FUN(__glewProgramUniform2dvEXT) -#define glProgramUniform3dEXT GLEW_GET_FUN(__glewProgramUniform3dEXT) -#define glProgramUniform3dvEXT GLEW_GET_FUN(__glewProgramUniform3dvEXT) -#define glProgramUniform4dEXT GLEW_GET_FUN(__glewProgramUniform4dEXT) -#define glProgramUniform4dvEXT GLEW_GET_FUN(__glewProgramUniform4dvEXT) -#define glProgramUniformMatrix2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2dvEXT) -#define glProgramUniformMatrix2x3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x3dvEXT) -#define glProgramUniformMatrix2x4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x4dvEXT) -#define glProgramUniformMatrix3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3dvEXT) -#define glProgramUniformMatrix3x2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x2dvEXT) -#define glProgramUniformMatrix3x4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x4dvEXT) -#define glProgramUniformMatrix4dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4dvEXT) -#define glProgramUniformMatrix4x2dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x2dvEXT) -#define glProgramUniformMatrix4x3dvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x3dvEXT) -#define glUniform1d GLEW_GET_FUN(__glewUniform1d) -#define glUniform1dv GLEW_GET_FUN(__glewUniform1dv) -#define glUniform2d GLEW_GET_FUN(__glewUniform2d) -#define glUniform2dv GLEW_GET_FUN(__glewUniform2dv) -#define glUniform3d GLEW_GET_FUN(__glewUniform3d) -#define glUniform3dv GLEW_GET_FUN(__glewUniform3dv) -#define glUniform4d GLEW_GET_FUN(__glewUniform4d) -#define glUniform4dv GLEW_GET_FUN(__glewUniform4dv) -#define glUniformMatrix2dv GLEW_GET_FUN(__glewUniformMatrix2dv) -#define glUniformMatrix2x3dv GLEW_GET_FUN(__glewUniformMatrix2x3dv) -#define glUniformMatrix2x4dv GLEW_GET_FUN(__glewUniformMatrix2x4dv) -#define glUniformMatrix3dv GLEW_GET_FUN(__glewUniformMatrix3dv) -#define glUniformMatrix3x2dv GLEW_GET_FUN(__glewUniformMatrix3x2dv) -#define glUniformMatrix3x4dv GLEW_GET_FUN(__glewUniformMatrix3x4dv) -#define glUniformMatrix4dv GLEW_GET_FUN(__glewUniformMatrix4dv) -#define glUniformMatrix4x2dv GLEW_GET_FUN(__glewUniformMatrix4x2dv) -#define glUniformMatrix4x3dv GLEW_GET_FUN(__glewUniformMatrix4x3dv) - -#define GLEW_ARB_gpu_shader_fp64 GLEW_GET_VAR(__GLEW_ARB_gpu_shader_fp64) - -#endif /* GL_ARB_gpu_shader_fp64 */ - -/* ------------------------ GL_ARB_half_float_pixel ------------------------ */ - -#ifndef GL_ARB_half_float_pixel -#define GL_ARB_half_float_pixel 1 - -#define GL_HALF_FLOAT_ARB 0x140B - -#define GLEW_ARB_half_float_pixel GLEW_GET_VAR(__GLEW_ARB_half_float_pixel) - -#endif /* GL_ARB_half_float_pixel */ - -/* ------------------------ GL_ARB_half_float_vertex ----------------------- */ - -#ifndef GL_ARB_half_float_vertex -#define GL_ARB_half_float_vertex 1 - -#define GL_HALF_FLOAT 0x140B - -#define GLEW_ARB_half_float_vertex GLEW_GET_VAR(__GLEW_ARB_half_float_vertex) - -#endif /* GL_ARB_half_float_vertex */ - -/* ----------------------------- GL_ARB_imaging ---------------------------- */ - -#ifndef GL_ARB_imaging -#define GL_ARB_imaging 1 - -#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_IGNORE_BORDER 0x8150 -#define GL_CONSTANT_BORDER 0x8151 -#define GL_WRAP_BORDER 0x8152 -#define GL_REPLICATE_BORDER 0x8153 -#define GL_CONVOLUTION_BORDER_COLOR 0x8154 - -typedef void (GLAPIENTRY * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); -typedef void (GLAPIENTRY * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (GLAPIENTRY * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values); -typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); -typedef void (GLAPIENTRY * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (GLAPIENTRY * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (GLAPIENTRY * PFNGLRESETHISTOGRAMPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLRESETMINMAXPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); - -#define glColorSubTable GLEW_GET_FUN(__glewColorSubTable) -#define glColorTable GLEW_GET_FUN(__glewColorTable) -#define glColorTableParameterfv GLEW_GET_FUN(__glewColorTableParameterfv) -#define glColorTableParameteriv GLEW_GET_FUN(__glewColorTableParameteriv) -#define glConvolutionFilter1D GLEW_GET_FUN(__glewConvolutionFilter1D) -#define glConvolutionFilter2D GLEW_GET_FUN(__glewConvolutionFilter2D) -#define glConvolutionParameterf GLEW_GET_FUN(__glewConvolutionParameterf) -#define glConvolutionParameterfv GLEW_GET_FUN(__glewConvolutionParameterfv) -#define glConvolutionParameteri GLEW_GET_FUN(__glewConvolutionParameteri) -#define glConvolutionParameteriv GLEW_GET_FUN(__glewConvolutionParameteriv) -#define glCopyColorSubTable GLEW_GET_FUN(__glewCopyColorSubTable) -#define glCopyColorTable GLEW_GET_FUN(__glewCopyColorTable) -#define glCopyConvolutionFilter1D GLEW_GET_FUN(__glewCopyConvolutionFilter1D) -#define glCopyConvolutionFilter2D GLEW_GET_FUN(__glewCopyConvolutionFilter2D) -#define glGetColorTable GLEW_GET_FUN(__glewGetColorTable) -#define glGetColorTableParameterfv GLEW_GET_FUN(__glewGetColorTableParameterfv) -#define glGetColorTableParameteriv GLEW_GET_FUN(__glewGetColorTableParameteriv) -#define glGetConvolutionFilter GLEW_GET_FUN(__glewGetConvolutionFilter) -#define glGetConvolutionParameterfv GLEW_GET_FUN(__glewGetConvolutionParameterfv) -#define glGetConvolutionParameteriv GLEW_GET_FUN(__glewGetConvolutionParameteriv) -#define glGetHistogram GLEW_GET_FUN(__glewGetHistogram) -#define glGetHistogramParameterfv GLEW_GET_FUN(__glewGetHistogramParameterfv) -#define glGetHistogramParameteriv GLEW_GET_FUN(__glewGetHistogramParameteriv) -#define glGetMinmax GLEW_GET_FUN(__glewGetMinmax) -#define glGetMinmaxParameterfv GLEW_GET_FUN(__glewGetMinmaxParameterfv) -#define glGetMinmaxParameteriv GLEW_GET_FUN(__glewGetMinmaxParameteriv) -#define glGetSeparableFilter GLEW_GET_FUN(__glewGetSeparableFilter) -#define glHistogram GLEW_GET_FUN(__glewHistogram) -#define glMinmax GLEW_GET_FUN(__glewMinmax) -#define glResetHistogram GLEW_GET_FUN(__glewResetHistogram) -#define glResetMinmax GLEW_GET_FUN(__glewResetMinmax) -#define glSeparableFilter2D GLEW_GET_FUN(__glewSeparableFilter2D) - -#define GLEW_ARB_imaging GLEW_GET_VAR(__GLEW_ARB_imaging) - -#endif /* GL_ARB_imaging */ - -/* ------------------------ GL_ARB_instanced_arrays ------------------------ */ - -#ifndef GL_ARB_instanced_arrays -#define GL_ARB_instanced_arrays 1 - -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE - -typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor); - -#define glDrawArraysInstancedARB GLEW_GET_FUN(__glewDrawArraysInstancedARB) -#define glDrawElementsInstancedARB GLEW_GET_FUN(__glewDrawElementsInstancedARB) -#define glVertexAttribDivisorARB GLEW_GET_FUN(__glewVertexAttribDivisorARB) - -#define GLEW_ARB_instanced_arrays GLEW_GET_VAR(__GLEW_ARB_instanced_arrays) - -#endif /* GL_ARB_instanced_arrays */ - -/* ------------------------ GL_ARB_map_buffer_range ------------------------ */ - -#ifndef GL_ARB_map_buffer_range -#define GL_ARB_map_buffer_range 1 - -#define GL_MAP_READ_BIT 0x0001 -#define GL_MAP_WRITE_BIT 0x0002 -#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004 -#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008 -#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010 -#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020 - -typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); -typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); - -#define glFlushMappedBufferRange GLEW_GET_FUN(__glewFlushMappedBufferRange) -#define glMapBufferRange GLEW_GET_FUN(__glewMapBufferRange) - -#define GLEW_ARB_map_buffer_range GLEW_GET_VAR(__GLEW_ARB_map_buffer_range) - -#endif /* GL_ARB_map_buffer_range */ - -/* ------------------------- GL_ARB_matrix_palette ------------------------- */ - -#ifndef GL_ARB_matrix_palette -#define GL_ARB_matrix_palette 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index); -typedef void (GLAPIENTRY * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); -typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, GLubyte *indices); -typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, GLuint *indices); -typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, GLushort *indices); - -#define glCurrentPaletteMatrixARB GLEW_GET_FUN(__glewCurrentPaletteMatrixARB) -#define glMatrixIndexPointerARB GLEW_GET_FUN(__glewMatrixIndexPointerARB) -#define glMatrixIndexubvARB GLEW_GET_FUN(__glewMatrixIndexubvARB) -#define glMatrixIndexuivARB GLEW_GET_FUN(__glewMatrixIndexuivARB) -#define glMatrixIndexusvARB GLEW_GET_FUN(__glewMatrixIndexusvARB) - -#define GLEW_ARB_matrix_palette GLEW_GET_VAR(__GLEW_ARB_matrix_palette) - -#endif /* GL_ARB_matrix_palette */ - -/* --------------------------- GL_ARB_multisample -------------------------- */ - -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); - -#define glSampleCoverageARB GLEW_GET_FUN(__glewSampleCoverageARB) - -#define GLEW_ARB_multisample GLEW_GET_VAR(__GLEW_ARB_multisample) - -#endif /* GL_ARB_multisample */ - -/* -------------------------- GL_ARB_multitexture -------------------------- */ - -#ifndef GL_ARB_multitexture -#define GL_ARB_multitexture 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); - -#define glActiveTextureARB GLEW_GET_FUN(__glewActiveTextureARB) -#define glClientActiveTextureARB GLEW_GET_FUN(__glewClientActiveTextureARB) -#define glMultiTexCoord1dARB GLEW_GET_FUN(__glewMultiTexCoord1dARB) -#define glMultiTexCoord1dvARB GLEW_GET_FUN(__glewMultiTexCoord1dvARB) -#define glMultiTexCoord1fARB GLEW_GET_FUN(__glewMultiTexCoord1fARB) -#define glMultiTexCoord1fvARB GLEW_GET_FUN(__glewMultiTexCoord1fvARB) -#define glMultiTexCoord1iARB GLEW_GET_FUN(__glewMultiTexCoord1iARB) -#define glMultiTexCoord1ivARB GLEW_GET_FUN(__glewMultiTexCoord1ivARB) -#define glMultiTexCoord1sARB GLEW_GET_FUN(__glewMultiTexCoord1sARB) -#define glMultiTexCoord1svARB GLEW_GET_FUN(__glewMultiTexCoord1svARB) -#define glMultiTexCoord2dARB GLEW_GET_FUN(__glewMultiTexCoord2dARB) -#define glMultiTexCoord2dvARB GLEW_GET_FUN(__glewMultiTexCoord2dvARB) -#define glMultiTexCoord2fARB GLEW_GET_FUN(__glewMultiTexCoord2fARB) -#define glMultiTexCoord2fvARB GLEW_GET_FUN(__glewMultiTexCoord2fvARB) -#define glMultiTexCoord2iARB GLEW_GET_FUN(__glewMultiTexCoord2iARB) -#define glMultiTexCoord2ivARB GLEW_GET_FUN(__glewMultiTexCoord2ivARB) -#define glMultiTexCoord2sARB GLEW_GET_FUN(__glewMultiTexCoord2sARB) -#define glMultiTexCoord2svARB GLEW_GET_FUN(__glewMultiTexCoord2svARB) -#define glMultiTexCoord3dARB GLEW_GET_FUN(__glewMultiTexCoord3dARB) -#define glMultiTexCoord3dvARB GLEW_GET_FUN(__glewMultiTexCoord3dvARB) -#define glMultiTexCoord3fARB GLEW_GET_FUN(__glewMultiTexCoord3fARB) -#define glMultiTexCoord3fvARB GLEW_GET_FUN(__glewMultiTexCoord3fvARB) -#define glMultiTexCoord3iARB GLEW_GET_FUN(__glewMultiTexCoord3iARB) -#define glMultiTexCoord3ivARB GLEW_GET_FUN(__glewMultiTexCoord3ivARB) -#define glMultiTexCoord3sARB GLEW_GET_FUN(__glewMultiTexCoord3sARB) -#define glMultiTexCoord3svARB GLEW_GET_FUN(__glewMultiTexCoord3svARB) -#define glMultiTexCoord4dARB GLEW_GET_FUN(__glewMultiTexCoord4dARB) -#define glMultiTexCoord4dvARB GLEW_GET_FUN(__glewMultiTexCoord4dvARB) -#define glMultiTexCoord4fARB GLEW_GET_FUN(__glewMultiTexCoord4fARB) -#define glMultiTexCoord4fvARB GLEW_GET_FUN(__glewMultiTexCoord4fvARB) -#define glMultiTexCoord4iARB GLEW_GET_FUN(__glewMultiTexCoord4iARB) -#define glMultiTexCoord4ivARB GLEW_GET_FUN(__glewMultiTexCoord4ivARB) -#define glMultiTexCoord4sARB GLEW_GET_FUN(__glewMultiTexCoord4sARB) -#define glMultiTexCoord4svARB GLEW_GET_FUN(__glewMultiTexCoord4svARB) - -#define GLEW_ARB_multitexture GLEW_GET_VAR(__GLEW_ARB_multitexture) - -#endif /* GL_ARB_multitexture */ - -/* ------------------------- GL_ARB_occlusion_query ------------------------ */ - -#ifndef GL_ARB_occlusion_query -#define GL_ARB_occlusion_query 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLENDQUERYARBPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint* ids); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISQUERYARBPROC) (GLuint id); - -#define glBeginQueryARB GLEW_GET_FUN(__glewBeginQueryARB) -#define glDeleteQueriesARB GLEW_GET_FUN(__glewDeleteQueriesARB) -#define glEndQueryARB GLEW_GET_FUN(__glewEndQueryARB) -#define glGenQueriesARB GLEW_GET_FUN(__glewGenQueriesARB) -#define glGetQueryObjectivARB GLEW_GET_FUN(__glewGetQueryObjectivARB) -#define glGetQueryObjectuivARB GLEW_GET_FUN(__glewGetQueryObjectuivARB) -#define glGetQueryivARB GLEW_GET_FUN(__glewGetQueryivARB) -#define glIsQueryARB GLEW_GET_FUN(__glewIsQueryARB) - -#define GLEW_ARB_occlusion_query GLEW_GET_VAR(__GLEW_ARB_occlusion_query) - -#endif /* GL_ARB_occlusion_query */ - -/* ------------------------ GL_ARB_occlusion_query2 ------------------------ */ - -#ifndef GL_ARB_occlusion_query2 -#define GL_ARB_occlusion_query2 1 - -#define GL_ANY_SAMPLES_PASSED 0x8C2F - -#define GLEW_ARB_occlusion_query2 GLEW_GET_VAR(__GLEW_ARB_occlusion_query2) - -#endif /* GL_ARB_occlusion_query2 */ - -/* ----------------------- GL_ARB_pixel_buffer_object ---------------------- */ - -#ifndef GL_ARB_pixel_buffer_object -#define GL_ARB_pixel_buffer_object 1 - -#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 - -#define GLEW_ARB_pixel_buffer_object GLEW_GET_VAR(__GLEW_ARB_pixel_buffer_object) - -#endif /* GL_ARB_pixel_buffer_object */ - -/* ------------------------ GL_ARB_point_parameters ------------------------ */ - -#ifndef GL_ARB_point_parameters -#define GL_ARB_point_parameters 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat* params); - -#define glPointParameterfARB GLEW_GET_FUN(__glewPointParameterfARB) -#define glPointParameterfvARB GLEW_GET_FUN(__glewPointParameterfvARB) - -#define GLEW_ARB_point_parameters GLEW_GET_VAR(__GLEW_ARB_point_parameters) - -#endif /* GL_ARB_point_parameters */ - -/* -------------------------- GL_ARB_point_sprite -------------------------- */ - -#ifndef GL_ARB_point_sprite -#define GL_ARB_point_sprite 1 - -#define GL_POINT_SPRITE_ARB 0x8861 -#define GL_COORD_REPLACE_ARB 0x8862 - -#define GLEW_ARB_point_sprite GLEW_GET_VAR(__GLEW_ARB_point_sprite) - -#endif /* GL_ARB_point_sprite */ - -/* ------------------------ GL_ARB_provoking_vertex ------------------------ */ - -#ifndef GL_ARB_provoking_vertex -#define GL_ARB_provoking_vertex 1 - -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F - -typedef void (GLAPIENTRY * PFNGLPROVOKINGVERTEXPROC) (GLenum mode); - -#define glProvokingVertex GLEW_GET_FUN(__glewProvokingVertex) - -#define GLEW_ARB_provoking_vertex GLEW_GET_VAR(__GLEW_ARB_provoking_vertex) - -#endif /* GL_ARB_provoking_vertex */ - -/* --------------------------- GL_ARB_robustness --------------------------- */ - -#ifndef GL_ARB_robustness -#define GL_ARB_robustness 1 - -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 - -typedef void (GLAPIENTRY * PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* table); -typedef void (GLAPIENTRY * PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void* img); -typedef void (GLAPIENTRY * PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void* image); -typedef void (GLAPIENTRY * PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); -typedef void (GLAPIENTRY * PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble* v); -typedef void (GLAPIENTRY * PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat* v); -typedef void (GLAPIENTRY * PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint* v); -typedef void (GLAPIENTRY * PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void* values); -typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat* values); -typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint* values); -typedef void (GLAPIENTRY * PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort* values); -typedef void (GLAPIENTRY * PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte* pattern); -typedef void (GLAPIENTRY * PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void* row, GLsizei columnBufSize, GLvoid*column, GLvoid*span); -typedef void (GLAPIENTRY * PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void* img); -typedef void (GLAPIENTRY * PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint* params); -typedef void (GLAPIENTRY * PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data); - -#define glGetnColorTableARB GLEW_GET_FUN(__glewGetnColorTableARB) -#define glGetnCompressedTexImageARB GLEW_GET_FUN(__glewGetnCompressedTexImageARB) -#define glGetnConvolutionFilterARB GLEW_GET_FUN(__glewGetnConvolutionFilterARB) -#define glGetnHistogramARB GLEW_GET_FUN(__glewGetnHistogramARB) -#define glGetnMapdvARB GLEW_GET_FUN(__glewGetnMapdvARB) -#define glGetnMapfvARB GLEW_GET_FUN(__glewGetnMapfvARB) -#define glGetnMapivARB GLEW_GET_FUN(__glewGetnMapivARB) -#define glGetnMinmaxARB GLEW_GET_FUN(__glewGetnMinmaxARB) -#define glGetnPixelMapfvARB GLEW_GET_FUN(__glewGetnPixelMapfvARB) -#define glGetnPixelMapuivARB GLEW_GET_FUN(__glewGetnPixelMapuivARB) -#define glGetnPixelMapusvARB GLEW_GET_FUN(__glewGetnPixelMapusvARB) -#define glGetnPolygonStippleARB GLEW_GET_FUN(__glewGetnPolygonStippleARB) -#define glGetnSeparableFilterARB GLEW_GET_FUN(__glewGetnSeparableFilterARB) -#define glGetnTexImageARB GLEW_GET_FUN(__glewGetnTexImageARB) -#define glGetnUniformdvARB GLEW_GET_FUN(__glewGetnUniformdvARB) -#define glGetnUniformfvARB GLEW_GET_FUN(__glewGetnUniformfvARB) -#define glGetnUniformivARB GLEW_GET_FUN(__glewGetnUniformivARB) -#define glGetnUniformuivARB GLEW_GET_FUN(__glewGetnUniformuivARB) -#define glReadnPixelsARB GLEW_GET_FUN(__glewReadnPixelsARB) - -#define GLEW_ARB_robustness GLEW_GET_VAR(__GLEW_ARB_robustness) - -#endif /* GL_ARB_robustness */ - -/* ------------------------- GL_ARB_sample_shading ------------------------- */ - -#ifndef GL_ARB_sample_shading -#define GL_ARB_sample_shading 1 - -#define GL_SAMPLE_SHADING_ARB 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 - -typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGARBPROC) (GLclampf value); - -#define glMinSampleShadingARB GLEW_GET_FUN(__glewMinSampleShadingARB) - -#define GLEW_ARB_sample_shading GLEW_GET_VAR(__GLEW_ARB_sample_shading) - -#endif /* GL_ARB_sample_shading */ - -/* ------------------------- GL_ARB_sampler_objects ------------------------ */ - -#ifndef GL_ARB_sampler_objects -#define GL_ARB_sampler_objects 1 - -#define GL_SAMPLER_BINDING 0x8919 - -typedef void (GLAPIENTRY * PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); -typedef void (GLAPIENTRY * PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint * samplers); -typedef void (GLAPIENTRY * PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint* samplers); -typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISSAMPLERPROC) (GLuint sampler); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint* params); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint* params); - -#define glBindSampler GLEW_GET_FUN(__glewBindSampler) -#define glDeleteSamplers GLEW_GET_FUN(__glewDeleteSamplers) -#define glGenSamplers GLEW_GET_FUN(__glewGenSamplers) -#define glGetSamplerParameterIiv GLEW_GET_FUN(__glewGetSamplerParameterIiv) -#define glGetSamplerParameterIuiv GLEW_GET_FUN(__glewGetSamplerParameterIuiv) -#define glGetSamplerParameterfv GLEW_GET_FUN(__glewGetSamplerParameterfv) -#define glGetSamplerParameteriv GLEW_GET_FUN(__glewGetSamplerParameteriv) -#define glIsSampler GLEW_GET_FUN(__glewIsSampler) -#define glSamplerParameterIiv GLEW_GET_FUN(__glewSamplerParameterIiv) -#define glSamplerParameterIuiv GLEW_GET_FUN(__glewSamplerParameterIuiv) -#define glSamplerParameterf GLEW_GET_FUN(__glewSamplerParameterf) -#define glSamplerParameterfv GLEW_GET_FUN(__glewSamplerParameterfv) -#define glSamplerParameteri GLEW_GET_FUN(__glewSamplerParameteri) -#define glSamplerParameteriv GLEW_GET_FUN(__glewSamplerParameteriv) - -#define GLEW_ARB_sampler_objects GLEW_GET_VAR(__GLEW_ARB_sampler_objects) - -#endif /* GL_ARB_sampler_objects */ - -/* ------------------------ GL_ARB_seamless_cube_map ----------------------- */ - -#ifndef GL_ARB_seamless_cube_map -#define GL_ARB_seamless_cube_map 1 - -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F - -#define GLEW_ARB_seamless_cube_map GLEW_GET_VAR(__GLEW_ARB_seamless_cube_map) - -#endif /* GL_ARB_seamless_cube_map */ - -/* --------------------- GL_ARB_separate_shader_objects -------------------- */ - -#ifndef GL_ARB_separate_shader_objects -#define GL_ARB_separate_shader_objects 1 - -#define GL_VERTEX_SHADER_BIT 0x00000001 -#define GL_FRAGMENT_SHADER_BIT 0x00000002 -#define GL_GEOMETRY_SHADER_BIT 0x00000004 -#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 -#define GL_PROGRAM_SEPARABLE 0x8258 -#define GL_ACTIVE_PROGRAM 0x8259 -#define GL_PROGRAM_PIPELINE_BINDING 0x825A -#define GL_ALL_SHADER_BITS 0xFFFFFFFF - -typedef void (GLAPIENTRY * PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); -typedef void (GLAPIENTRY * PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const char ** strings); -typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint* pipelines); -typedef void (GLAPIENTRY * PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint* pipelines); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei* length, char *infoLog); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint x, GLuint y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint x, GLuint y, GLuint z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); -typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); - -#define glActiveShaderProgram GLEW_GET_FUN(__glewActiveShaderProgram) -#define glBindProgramPipeline GLEW_GET_FUN(__glewBindProgramPipeline) -#define glCreateShaderProgramv GLEW_GET_FUN(__glewCreateShaderProgramv) -#define glDeleteProgramPipelines GLEW_GET_FUN(__glewDeleteProgramPipelines) -#define glGenProgramPipelines GLEW_GET_FUN(__glewGenProgramPipelines) -#define glGetProgramPipelineInfoLog GLEW_GET_FUN(__glewGetProgramPipelineInfoLog) -#define glGetProgramPipelineiv GLEW_GET_FUN(__glewGetProgramPipelineiv) -#define glIsProgramPipeline GLEW_GET_FUN(__glewIsProgramPipeline) -#define glProgramUniform1d GLEW_GET_FUN(__glewProgramUniform1d) -#define glProgramUniform1dv GLEW_GET_FUN(__glewProgramUniform1dv) -#define glProgramUniform1f GLEW_GET_FUN(__glewProgramUniform1f) -#define glProgramUniform1fv GLEW_GET_FUN(__glewProgramUniform1fv) -#define glProgramUniform1i GLEW_GET_FUN(__glewProgramUniform1i) -#define glProgramUniform1iv GLEW_GET_FUN(__glewProgramUniform1iv) -#define glProgramUniform1ui GLEW_GET_FUN(__glewProgramUniform1ui) -#define glProgramUniform1uiv GLEW_GET_FUN(__glewProgramUniform1uiv) -#define glProgramUniform2d GLEW_GET_FUN(__glewProgramUniform2d) -#define glProgramUniform2dv GLEW_GET_FUN(__glewProgramUniform2dv) -#define glProgramUniform2f GLEW_GET_FUN(__glewProgramUniform2f) -#define glProgramUniform2fv GLEW_GET_FUN(__glewProgramUniform2fv) -#define glProgramUniform2i GLEW_GET_FUN(__glewProgramUniform2i) -#define glProgramUniform2iv GLEW_GET_FUN(__glewProgramUniform2iv) -#define glProgramUniform2ui GLEW_GET_FUN(__glewProgramUniform2ui) -#define glProgramUniform2uiv GLEW_GET_FUN(__glewProgramUniform2uiv) -#define glProgramUniform3d GLEW_GET_FUN(__glewProgramUniform3d) -#define glProgramUniform3dv GLEW_GET_FUN(__glewProgramUniform3dv) -#define glProgramUniform3f GLEW_GET_FUN(__glewProgramUniform3f) -#define glProgramUniform3fv GLEW_GET_FUN(__glewProgramUniform3fv) -#define glProgramUniform3i GLEW_GET_FUN(__glewProgramUniform3i) -#define glProgramUniform3iv GLEW_GET_FUN(__glewProgramUniform3iv) -#define glProgramUniform3ui GLEW_GET_FUN(__glewProgramUniform3ui) -#define glProgramUniform3uiv GLEW_GET_FUN(__glewProgramUniform3uiv) -#define glProgramUniform4d GLEW_GET_FUN(__glewProgramUniform4d) -#define glProgramUniform4dv GLEW_GET_FUN(__glewProgramUniform4dv) -#define glProgramUniform4f GLEW_GET_FUN(__glewProgramUniform4f) -#define glProgramUniform4fv GLEW_GET_FUN(__glewProgramUniform4fv) -#define glProgramUniform4i GLEW_GET_FUN(__glewProgramUniform4i) -#define glProgramUniform4iv GLEW_GET_FUN(__glewProgramUniform4iv) -#define glProgramUniform4ui GLEW_GET_FUN(__glewProgramUniform4ui) -#define glProgramUniform4uiv GLEW_GET_FUN(__glewProgramUniform4uiv) -#define glProgramUniformMatrix2dv GLEW_GET_FUN(__glewProgramUniformMatrix2dv) -#define glProgramUniformMatrix2fv GLEW_GET_FUN(__glewProgramUniformMatrix2fv) -#define glProgramUniformMatrix2x3dv GLEW_GET_FUN(__glewProgramUniformMatrix2x3dv) -#define glProgramUniformMatrix2x3fv GLEW_GET_FUN(__glewProgramUniformMatrix2x3fv) -#define glProgramUniformMatrix2x4dv GLEW_GET_FUN(__glewProgramUniformMatrix2x4dv) -#define glProgramUniformMatrix2x4fv GLEW_GET_FUN(__glewProgramUniformMatrix2x4fv) -#define glProgramUniformMatrix3dv GLEW_GET_FUN(__glewProgramUniformMatrix3dv) -#define glProgramUniformMatrix3fv GLEW_GET_FUN(__glewProgramUniformMatrix3fv) -#define glProgramUniformMatrix3x2dv GLEW_GET_FUN(__glewProgramUniformMatrix3x2dv) -#define glProgramUniformMatrix3x2fv GLEW_GET_FUN(__glewProgramUniformMatrix3x2fv) -#define glProgramUniformMatrix3x4dv GLEW_GET_FUN(__glewProgramUniformMatrix3x4dv) -#define glProgramUniformMatrix3x4fv GLEW_GET_FUN(__glewProgramUniformMatrix3x4fv) -#define glProgramUniformMatrix4dv GLEW_GET_FUN(__glewProgramUniformMatrix4dv) -#define glProgramUniformMatrix4fv GLEW_GET_FUN(__glewProgramUniformMatrix4fv) -#define glProgramUniformMatrix4x2dv GLEW_GET_FUN(__glewProgramUniformMatrix4x2dv) -#define glProgramUniformMatrix4x2fv GLEW_GET_FUN(__glewProgramUniformMatrix4x2fv) -#define glProgramUniformMatrix4x3dv GLEW_GET_FUN(__glewProgramUniformMatrix4x3dv) -#define glProgramUniformMatrix4x3fv GLEW_GET_FUN(__glewProgramUniformMatrix4x3fv) -#define glUseProgramStages GLEW_GET_FUN(__glewUseProgramStages) -#define glValidateProgramPipeline GLEW_GET_FUN(__glewValidateProgramPipeline) - -#define GLEW_ARB_separate_shader_objects GLEW_GET_VAR(__GLEW_ARB_separate_shader_objects) - -#endif /* GL_ARB_separate_shader_objects */ - -/* ----------------------- GL_ARB_shader_bit_encoding ---------------------- */ - -#ifndef GL_ARB_shader_bit_encoding -#define GL_ARB_shader_bit_encoding 1 - -#define GLEW_ARB_shader_bit_encoding GLEW_GET_VAR(__GLEW_ARB_shader_bit_encoding) - -#endif /* GL_ARB_shader_bit_encoding */ - -/* ------------------------- GL_ARB_shader_objects ------------------------- */ - -#ifndef GL_ARB_shader_objects -#define GL_ARB_shader_objects 1 - -#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 - -typedef char GLcharARB; -typedef unsigned int GLhandleARB; - -typedef void (GLAPIENTRY * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj); -typedef void (GLAPIENTRY * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj); -typedef GLhandleARB (GLAPIENTRY * PFNGLCREATEPROGRAMOBJECTARBPROC) (void); -typedef GLhandleARB (GLAPIENTRY * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType); -typedef void (GLAPIENTRY * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj); -typedef void (GLAPIENTRY * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name); -typedef void (GLAPIENTRY * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB *obj); -typedef GLhandleARB (GLAPIENTRY * PFNGLGETHANDLEARBPROC) (GLenum pname); -typedef void (GLAPIENTRY * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *infoLog); -typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *source); -typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint* params); -typedef void (GLAPIENTRY * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj); -typedef void (GLAPIENTRY * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint *length); -typedef void (GLAPIENTRY * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0); -typedef void (GLAPIENTRY * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0); -typedef void (GLAPIENTRY * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1); -typedef void (GLAPIENTRY * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1); -typedef void (GLAPIENTRY * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (GLAPIENTRY * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2); -typedef void (GLAPIENTRY * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (GLAPIENTRY * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (GLAPIENTRY * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj); -typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj); - -#define glAttachObjectARB GLEW_GET_FUN(__glewAttachObjectARB) -#define glCompileShaderARB GLEW_GET_FUN(__glewCompileShaderARB) -#define glCreateProgramObjectARB GLEW_GET_FUN(__glewCreateProgramObjectARB) -#define glCreateShaderObjectARB GLEW_GET_FUN(__glewCreateShaderObjectARB) -#define glDeleteObjectARB GLEW_GET_FUN(__glewDeleteObjectARB) -#define glDetachObjectARB GLEW_GET_FUN(__glewDetachObjectARB) -#define glGetActiveUniformARB GLEW_GET_FUN(__glewGetActiveUniformARB) -#define glGetAttachedObjectsARB GLEW_GET_FUN(__glewGetAttachedObjectsARB) -#define glGetHandleARB GLEW_GET_FUN(__glewGetHandleARB) -#define glGetInfoLogARB GLEW_GET_FUN(__glewGetInfoLogARB) -#define glGetObjectParameterfvARB GLEW_GET_FUN(__glewGetObjectParameterfvARB) -#define glGetObjectParameterivARB GLEW_GET_FUN(__glewGetObjectParameterivARB) -#define glGetShaderSourceARB GLEW_GET_FUN(__glewGetShaderSourceARB) -#define glGetUniformLocationARB GLEW_GET_FUN(__glewGetUniformLocationARB) -#define glGetUniformfvARB GLEW_GET_FUN(__glewGetUniformfvARB) -#define glGetUniformivARB GLEW_GET_FUN(__glewGetUniformivARB) -#define glLinkProgramARB GLEW_GET_FUN(__glewLinkProgramARB) -#define glShaderSourceARB GLEW_GET_FUN(__glewShaderSourceARB) -#define glUniform1fARB GLEW_GET_FUN(__glewUniform1fARB) -#define glUniform1fvARB GLEW_GET_FUN(__glewUniform1fvARB) -#define glUniform1iARB GLEW_GET_FUN(__glewUniform1iARB) -#define glUniform1ivARB GLEW_GET_FUN(__glewUniform1ivARB) -#define glUniform2fARB GLEW_GET_FUN(__glewUniform2fARB) -#define glUniform2fvARB GLEW_GET_FUN(__glewUniform2fvARB) -#define glUniform2iARB GLEW_GET_FUN(__glewUniform2iARB) -#define glUniform2ivARB GLEW_GET_FUN(__glewUniform2ivARB) -#define glUniform3fARB GLEW_GET_FUN(__glewUniform3fARB) -#define glUniform3fvARB GLEW_GET_FUN(__glewUniform3fvARB) -#define glUniform3iARB GLEW_GET_FUN(__glewUniform3iARB) -#define glUniform3ivARB GLEW_GET_FUN(__glewUniform3ivARB) -#define glUniform4fARB GLEW_GET_FUN(__glewUniform4fARB) -#define glUniform4fvARB GLEW_GET_FUN(__glewUniform4fvARB) -#define glUniform4iARB GLEW_GET_FUN(__glewUniform4iARB) -#define glUniform4ivARB GLEW_GET_FUN(__glewUniform4ivARB) -#define glUniformMatrix2fvARB GLEW_GET_FUN(__glewUniformMatrix2fvARB) -#define glUniformMatrix3fvARB GLEW_GET_FUN(__glewUniformMatrix3fvARB) -#define glUniformMatrix4fvARB GLEW_GET_FUN(__glewUniformMatrix4fvARB) -#define glUseProgramObjectARB GLEW_GET_FUN(__glewUseProgramObjectARB) -#define glValidateProgramARB GLEW_GET_FUN(__glewValidateProgramARB) - -#define GLEW_ARB_shader_objects GLEW_GET_VAR(__GLEW_ARB_shader_objects) - -#endif /* GL_ARB_shader_objects */ - -/* ------------------------ GL_ARB_shader_precision ------------------------ */ - -#ifndef GL_ARB_shader_precision -#define GL_ARB_shader_precision 1 - -#define GLEW_ARB_shader_precision GLEW_GET_VAR(__GLEW_ARB_shader_precision) - -#endif /* GL_ARB_shader_precision */ - -/* ---------------------- GL_ARB_shader_stencil_export --------------------- */ - -#ifndef GL_ARB_shader_stencil_export -#define GL_ARB_shader_stencil_export 1 - -#define GLEW_ARB_shader_stencil_export GLEW_GET_VAR(__GLEW_ARB_shader_stencil_export) - -#endif /* GL_ARB_shader_stencil_export */ - -/* ------------------------ GL_ARB_shader_subroutine ----------------------- */ - -#ifndef GL_ARB_shader_subroutine -#define GL_ARB_shader_subroutine 1 - -#define GL_ACTIVE_SUBROUTINES 0x8DE5 -#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 -#define GL_MAX_SUBROUTINES 0x8DE7 -#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 -#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 -#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A -#define GL_COMPATIBLE_SUBROUTINES 0x8E4B - -typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name); -typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name); -typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint* values); -typedef GLuint (GLAPIENTRY * PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const char* name); -typedef GLint (GLAPIENTRY * PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const char* name); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint* params); -typedef void (GLAPIENTRY * PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint* indices); - -#define glGetActiveSubroutineName GLEW_GET_FUN(__glewGetActiveSubroutineName) -#define glGetActiveSubroutineUniformName GLEW_GET_FUN(__glewGetActiveSubroutineUniformName) -#define glGetActiveSubroutineUniformiv GLEW_GET_FUN(__glewGetActiveSubroutineUniformiv) -#define glGetProgramStageiv GLEW_GET_FUN(__glewGetProgramStageiv) -#define glGetSubroutineIndex GLEW_GET_FUN(__glewGetSubroutineIndex) -#define glGetSubroutineUniformLocation GLEW_GET_FUN(__glewGetSubroutineUniformLocation) -#define glGetUniformSubroutineuiv GLEW_GET_FUN(__glewGetUniformSubroutineuiv) -#define glUniformSubroutinesuiv GLEW_GET_FUN(__glewUniformSubroutinesuiv) - -#define GLEW_ARB_shader_subroutine GLEW_GET_VAR(__GLEW_ARB_shader_subroutine) - -#endif /* GL_ARB_shader_subroutine */ - -/* ----------------------- GL_ARB_shader_texture_lod ----------------------- */ - -#ifndef GL_ARB_shader_texture_lod -#define GL_ARB_shader_texture_lod 1 - -#define GLEW_ARB_shader_texture_lod GLEW_GET_VAR(__GLEW_ARB_shader_texture_lod) - -#endif /* GL_ARB_shader_texture_lod */ - -/* ---------------------- GL_ARB_shading_language_100 ---------------------- */ - -#ifndef GL_ARB_shading_language_100 -#define GL_ARB_shading_language_100 1 - -#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C - -#define GLEW_ARB_shading_language_100 GLEW_GET_VAR(__GLEW_ARB_shading_language_100) - -#endif /* GL_ARB_shading_language_100 */ - -/* -------------------- GL_ARB_shading_language_include -------------------- */ - -#ifndef GL_ARB_shading_language_include -#define GL_ARB_shading_language_include 1 - -#define GL_SHADER_INCLUDE_ARB 0x8DAE -#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 -#define GL_NAMED_STRING_TYPE_ARB 0x8DEA - -typedef void (GLAPIENTRY * PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const char ** path, const GLint *length); -typedef void (GLAPIENTRY * PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const char* name); -typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const char* name, GLsizei bufSize, GLint *stringlen, char *string); -typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const char* name, GLenum pname, GLint *params); -typedef GLboolean (GLAPIENTRY * PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const char* name); -typedef void (GLAPIENTRY * PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const char* name, GLint stringlen, const char *string); - -#define glCompileShaderIncludeARB GLEW_GET_FUN(__glewCompileShaderIncludeARB) -#define glDeleteNamedStringARB GLEW_GET_FUN(__glewDeleteNamedStringARB) -#define glGetNamedStringARB GLEW_GET_FUN(__glewGetNamedStringARB) -#define glGetNamedStringivARB GLEW_GET_FUN(__glewGetNamedStringivARB) -#define glIsNamedStringARB GLEW_GET_FUN(__glewIsNamedStringARB) -#define glNamedStringARB GLEW_GET_FUN(__glewNamedStringARB) - -#define GLEW_ARB_shading_language_include GLEW_GET_VAR(__GLEW_ARB_shading_language_include) - -#endif /* GL_ARB_shading_language_include */ - -/* ----------------------------- GL_ARB_shadow ----------------------------- */ - -#ifndef GL_ARB_shadow -#define GL_ARB_shadow 1 - -#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C -#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D -#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E - -#define GLEW_ARB_shadow GLEW_GET_VAR(__GLEW_ARB_shadow) - -#endif /* GL_ARB_shadow */ - -/* ------------------------- GL_ARB_shadow_ambient ------------------------- */ - -#ifndef GL_ARB_shadow_ambient -#define GL_ARB_shadow_ambient 1 - -#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF - -#define GLEW_ARB_shadow_ambient GLEW_GET_VAR(__GLEW_ARB_shadow_ambient) - -#endif /* GL_ARB_shadow_ambient */ - -/* ------------------------------ GL_ARB_sync ------------------------------ */ - -#ifndef GL_ARB_sync -#define GL_ARB_sync 1 - -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF - -typedef GLenum (GLAPIENTRY * PFNGLCLIENTWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout); -typedef void (GLAPIENTRY * PFNGLDELETESYNCPROC) (GLsync GLsync); -typedef GLsync (GLAPIENTRY * PFNGLFENCESYNCPROC) (GLenum condition,GLbitfield flags); -typedef void (GLAPIENTRY * PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64* params); -typedef void (GLAPIENTRY * PFNGLGETSYNCIVPROC) (GLsync GLsync,GLenum pname,GLsizei bufSize,GLsizei* length, GLint *values); -typedef GLboolean (GLAPIENTRY * PFNGLISSYNCPROC) (GLsync GLsync); -typedef void (GLAPIENTRY * PFNGLWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout); - -#define glClientWaitSync GLEW_GET_FUN(__glewClientWaitSync) -#define glDeleteSync GLEW_GET_FUN(__glewDeleteSync) -#define glFenceSync GLEW_GET_FUN(__glewFenceSync) -#define glGetInteger64v GLEW_GET_FUN(__glewGetInteger64v) -#define glGetSynciv GLEW_GET_FUN(__glewGetSynciv) -#define glIsSync GLEW_GET_FUN(__glewIsSync) -#define glWaitSync GLEW_GET_FUN(__glewWaitSync) - -#define GLEW_ARB_sync GLEW_GET_VAR(__GLEW_ARB_sync) - -#endif /* GL_ARB_sync */ - -/* ----------------------- GL_ARB_tessellation_shader ---------------------- */ - -#ifndef GL_ARB_tessellation_shader -#define GL_ARB_tessellation_shader 1 - -#define GL_PATCHES 0xE -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F -#define GL_PATCH_VERTICES 0x8E72 -#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 -#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 -#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 -#define GL_TESS_GEN_MODE 0x8E76 -#define GL_TESS_GEN_SPACING 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 -#define GL_TESS_GEN_POINT_MODE 0x8E79 -#define GL_ISOLINES 0x8E7A -#define GL_FRACTIONAL_ODD 0x8E7B -#define GL_FRACTIONAL_EVEN 0x8E7C -#define GL_MAX_PATCH_VERTICES 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 -#define GL_TESS_EVALUATION_SHADER 0x8E87 -#define GL_TESS_CONTROL_SHADER 0x8E88 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A - -typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat* values); -typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); - -#define glPatchParameterfv GLEW_GET_FUN(__glewPatchParameterfv) -#define glPatchParameteri GLEW_GET_FUN(__glewPatchParameteri) - -#define GLEW_ARB_tessellation_shader GLEW_GET_VAR(__GLEW_ARB_tessellation_shader) - -#endif /* GL_ARB_tessellation_shader */ - -/* ---------------------- GL_ARB_texture_border_clamp ---------------------- */ - -#ifndef GL_ARB_texture_border_clamp -#define GL_ARB_texture_border_clamp 1 - -#define GL_CLAMP_TO_BORDER_ARB 0x812D - -#define GLEW_ARB_texture_border_clamp GLEW_GET_VAR(__GLEW_ARB_texture_border_clamp) - -#endif /* GL_ARB_texture_border_clamp */ - -/* ---------------------- GL_ARB_texture_buffer_object --------------------- */ - -#ifndef GL_ARB_texture_buffer_object -#define GL_ARB_texture_buffer_object 1 - -#define GL_TEXTURE_BUFFER_ARB 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D -#define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E - -typedef void (GLAPIENTRY * PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer); - -#define glTexBufferARB GLEW_GET_FUN(__glewTexBufferARB) - -#define GLEW_ARB_texture_buffer_object GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object) - -#endif /* GL_ARB_texture_buffer_object */ - -/* ------------------- GL_ARB_texture_buffer_object_rgb32 ------------------ */ - -#ifndef GL_ARB_texture_buffer_object_rgb32 -#define GL_ARB_texture_buffer_object_rgb32 1 - -#define GLEW_ARB_texture_buffer_object_rgb32 GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object_rgb32) - -#endif /* GL_ARB_texture_buffer_object_rgb32 */ - -/* ----------------------- GL_ARB_texture_compression ---------------------- */ - -#ifndef GL_ARB_texture_compression -#define GL_ARB_texture_compression 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, void* img); - -#define glCompressedTexImage1DARB GLEW_GET_FUN(__glewCompressedTexImage1DARB) -#define glCompressedTexImage2DARB GLEW_GET_FUN(__glewCompressedTexImage2DARB) -#define glCompressedTexImage3DARB GLEW_GET_FUN(__glewCompressedTexImage3DARB) -#define glCompressedTexSubImage1DARB GLEW_GET_FUN(__glewCompressedTexSubImage1DARB) -#define glCompressedTexSubImage2DARB GLEW_GET_FUN(__glewCompressedTexSubImage2DARB) -#define glCompressedTexSubImage3DARB GLEW_GET_FUN(__glewCompressedTexSubImage3DARB) -#define glGetCompressedTexImageARB GLEW_GET_FUN(__glewGetCompressedTexImageARB) - -#define GLEW_ARB_texture_compression GLEW_GET_VAR(__GLEW_ARB_texture_compression) - -#endif /* GL_ARB_texture_compression */ - -/* -------------------- GL_ARB_texture_compression_bptc -------------------- */ - -#ifndef GL_ARB_texture_compression_bptc -#define GL_ARB_texture_compression_bptc 1 - -#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F - -#define GLEW_ARB_texture_compression_bptc GLEW_GET_VAR(__GLEW_ARB_texture_compression_bptc) - -#endif /* GL_ARB_texture_compression_bptc */ - -/* -------------------- GL_ARB_texture_compression_rgtc -------------------- */ - -#ifndef GL_ARB_texture_compression_rgtc -#define GL_ARB_texture_compression_rgtc 1 - -#define GL_COMPRESSED_RED_RGTC1 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC -#define GL_COMPRESSED_RG_RGTC2 0x8DBD -#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE - -#define GLEW_ARB_texture_compression_rgtc GLEW_GET_VAR(__GLEW_ARB_texture_compression_rgtc) - -#endif /* GL_ARB_texture_compression_rgtc */ - -/* ------------------------ GL_ARB_texture_cube_map ------------------------ */ - -#ifndef GL_ARB_texture_cube_map -#define GL_ARB_texture_cube_map 1 - -#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 - -#define GLEW_ARB_texture_cube_map GLEW_GET_VAR(__GLEW_ARB_texture_cube_map) - -#endif /* GL_ARB_texture_cube_map */ - -/* --------------------- GL_ARB_texture_cube_map_array --------------------- */ - -#ifndef GL_ARB_texture_cube_map_array -#define GL_ARB_texture_cube_map_array 1 - -#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F - -#define GLEW_ARB_texture_cube_map_array GLEW_GET_VAR(__GLEW_ARB_texture_cube_map_array) - -#endif /* GL_ARB_texture_cube_map_array */ - -/* ------------------------- GL_ARB_texture_env_add ------------------------ */ - -#ifndef GL_ARB_texture_env_add -#define GL_ARB_texture_env_add 1 - -#define GLEW_ARB_texture_env_add GLEW_GET_VAR(__GLEW_ARB_texture_env_add) - -#endif /* GL_ARB_texture_env_add */ - -/* ----------------------- GL_ARB_texture_env_combine ---------------------- */ - -#ifndef GL_ARB_texture_env_combine -#define GL_ARB_texture_env_combine 1 - -#define GL_SUBTRACT_ARB 0x84E7 -#define GL_COMBINE_ARB 0x8570 -#define GL_COMBINE_RGB_ARB 0x8571 -#define GL_COMBINE_ALPHA_ARB 0x8572 -#define GL_RGB_SCALE_ARB 0x8573 -#define GL_ADD_SIGNED_ARB 0x8574 -#define GL_INTERPOLATE_ARB 0x8575 -#define GL_CONSTANT_ARB 0x8576 -#define GL_PRIMARY_COLOR_ARB 0x8577 -#define GL_PREVIOUS_ARB 0x8578 -#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 GLEW_ARB_texture_env_combine GLEW_GET_VAR(__GLEW_ARB_texture_env_combine) - -#endif /* GL_ARB_texture_env_combine */ - -/* ---------------------- GL_ARB_texture_env_crossbar ---------------------- */ - -#ifndef GL_ARB_texture_env_crossbar -#define GL_ARB_texture_env_crossbar 1 - -#define GLEW_ARB_texture_env_crossbar GLEW_GET_VAR(__GLEW_ARB_texture_env_crossbar) - -#endif /* GL_ARB_texture_env_crossbar */ - -/* ------------------------ GL_ARB_texture_env_dot3 ------------------------ */ - -#ifndef GL_ARB_texture_env_dot3 -#define GL_ARB_texture_env_dot3 1 - -#define GL_DOT3_RGB_ARB 0x86AE -#define GL_DOT3_RGBA_ARB 0x86AF - -#define GLEW_ARB_texture_env_dot3 GLEW_GET_VAR(__GLEW_ARB_texture_env_dot3) - -#endif /* GL_ARB_texture_env_dot3 */ - -/* -------------------------- GL_ARB_texture_float ------------------------- */ - -#ifndef GL_ARB_texture_float -#define GL_ARB_texture_float 1 - -#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 -#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 GLEW_ARB_texture_float GLEW_GET_VAR(__GLEW_ARB_texture_float) - -#endif /* GL_ARB_texture_float */ - -/* ------------------------- GL_ARB_texture_gather ------------------------- */ - -#ifndef GL_ARB_texture_gather -#define GL_ARB_texture_gather 1 - -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F -#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F - -#define GLEW_ARB_texture_gather GLEW_GET_VAR(__GLEW_ARB_texture_gather) - -#endif /* GL_ARB_texture_gather */ - -/* --------------------- GL_ARB_texture_mirrored_repeat -------------------- */ - -#ifndef GL_ARB_texture_mirrored_repeat -#define GL_ARB_texture_mirrored_repeat 1 - -#define GL_MIRRORED_REPEAT_ARB 0x8370 - -#define GLEW_ARB_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_ARB_texture_mirrored_repeat) - -#endif /* GL_ARB_texture_mirrored_repeat */ - -/* ----------------------- GL_ARB_texture_multisample ---------------------- */ - -#ifndef GL_ARB_texture_multisample -#define GL_ARB_texture_multisample 1 - -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 - -typedef void (GLAPIENTRY * PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat* val); -typedef void (GLAPIENTRY * PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask); -typedef void (GLAPIENTRY * PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); - -#define glGetMultisamplefv GLEW_GET_FUN(__glewGetMultisamplefv) -#define glSampleMaski GLEW_GET_FUN(__glewSampleMaski) -#define glTexImage2DMultisample GLEW_GET_FUN(__glewTexImage2DMultisample) -#define glTexImage3DMultisample GLEW_GET_FUN(__glewTexImage3DMultisample) - -#define GLEW_ARB_texture_multisample GLEW_GET_VAR(__GLEW_ARB_texture_multisample) - -#endif /* GL_ARB_texture_multisample */ - -/* -------------------- GL_ARB_texture_non_power_of_two -------------------- */ - -#ifndef GL_ARB_texture_non_power_of_two -#define GL_ARB_texture_non_power_of_two 1 - -#define GLEW_ARB_texture_non_power_of_two GLEW_GET_VAR(__GLEW_ARB_texture_non_power_of_two) - -#endif /* GL_ARB_texture_non_power_of_two */ - -/* ------------------------ GL_ARB_texture_query_lod ----------------------- */ - -#ifndef GL_ARB_texture_query_lod -#define GL_ARB_texture_query_lod 1 - -#define GLEW_ARB_texture_query_lod GLEW_GET_VAR(__GLEW_ARB_texture_query_lod) - -#endif /* GL_ARB_texture_query_lod */ - -/* ------------------------ GL_ARB_texture_rectangle ----------------------- */ - -#ifndef GL_ARB_texture_rectangle -#define GL_ARB_texture_rectangle 1 - -#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 -#define GL_SAMPLER_2D_RECT_ARB 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64 - -#define GLEW_ARB_texture_rectangle GLEW_GET_VAR(__GLEW_ARB_texture_rectangle) - -#endif /* GL_ARB_texture_rectangle */ - -/* --------------------------- GL_ARB_texture_rg --------------------------- */ - -#ifndef GL_ARB_texture_rg -#define GL_ARB_texture_rg 1 - -#define GL_RED 0x1903 -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_RG 0x8227 -#define GL_RG_INTEGER 0x8228 -#define GL_R8 0x8229 -#define GL_R16 0x822A -#define GL_RG8 0x822B -#define GL_RG16 0x822C -#define GL_R16F 0x822D -#define GL_R32F 0x822E -#define GL_RG16F 0x822F -#define GL_RG32F 0x8230 -#define GL_R8I 0x8231 -#define GL_R8UI 0x8232 -#define GL_R16I 0x8233 -#define GL_R16UI 0x8234 -#define GL_R32I 0x8235 -#define GL_R32UI 0x8236 -#define GL_RG8I 0x8237 -#define GL_RG8UI 0x8238 -#define GL_RG16I 0x8239 -#define GL_RG16UI 0x823A -#define GL_RG32I 0x823B -#define GL_RG32UI 0x823C - -#define GLEW_ARB_texture_rg GLEW_GET_VAR(__GLEW_ARB_texture_rg) - -#endif /* GL_ARB_texture_rg */ - -/* ----------------------- GL_ARB_texture_rgb10_a2ui ----------------------- */ - -#ifndef GL_ARB_texture_rgb10_a2ui -#define GL_ARB_texture_rgb10_a2ui 1 - -#define GL_RGB10_A2UI 0x906F - -#define GLEW_ARB_texture_rgb10_a2ui GLEW_GET_VAR(__GLEW_ARB_texture_rgb10_a2ui) - -#endif /* GL_ARB_texture_rgb10_a2ui */ - -/* ------------------------- GL_ARB_texture_swizzle ------------------------ */ - -#ifndef GL_ARB_texture_swizzle -#define GL_ARB_texture_swizzle 1 - -#define GL_TEXTURE_SWIZZLE_R 0x8E42 -#define GL_TEXTURE_SWIZZLE_G 0x8E43 -#define GL_TEXTURE_SWIZZLE_B 0x8E44 -#define GL_TEXTURE_SWIZZLE_A 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 - -#define GLEW_ARB_texture_swizzle GLEW_GET_VAR(__GLEW_ARB_texture_swizzle) - -#endif /* GL_ARB_texture_swizzle */ - -/* --------------------------- GL_ARB_timer_query -------------------------- */ - -#ifndef GL_ARB_timer_query -#define GL_ARB_timer_query 1 - -#define GL_TIME_ELAPSED 0x88BF -#define GL_TIMESTAMP 0x8E28 - -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64* params); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64* params); -typedef void (GLAPIENTRY * PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); - -#define glGetQueryObjecti64v GLEW_GET_FUN(__glewGetQueryObjecti64v) -#define glGetQueryObjectui64v GLEW_GET_FUN(__glewGetQueryObjectui64v) -#define glQueryCounter GLEW_GET_FUN(__glewQueryCounter) - -#define GLEW_ARB_timer_query GLEW_GET_VAR(__GLEW_ARB_timer_query) - -#endif /* GL_ARB_timer_query */ - -/* ----------------------- GL_ARB_transform_feedback2 ---------------------- */ - -#ifndef GL_ARB_transform_feedback2 -#define GL_ARB_transform_feedback2 1 - -#define GL_TRANSFORM_FEEDBACK 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 - -typedef void (GLAPIENTRY * PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); -typedef void (GLAPIENTRY * PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint* ids); -typedef GLboolean (GLAPIENTRY * PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); -typedef void (GLAPIENTRY * PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); - -#define glBindTransformFeedback GLEW_GET_FUN(__glewBindTransformFeedback) -#define glDeleteTransformFeedbacks GLEW_GET_FUN(__glewDeleteTransformFeedbacks) -#define glDrawTransformFeedback GLEW_GET_FUN(__glewDrawTransformFeedback) -#define glGenTransformFeedbacks GLEW_GET_FUN(__glewGenTransformFeedbacks) -#define glIsTransformFeedback GLEW_GET_FUN(__glewIsTransformFeedback) -#define glPauseTransformFeedback GLEW_GET_FUN(__glewPauseTransformFeedback) -#define glResumeTransformFeedback GLEW_GET_FUN(__glewResumeTransformFeedback) - -#define GLEW_ARB_transform_feedback2 GLEW_GET_VAR(__GLEW_ARB_transform_feedback2) - -#endif /* GL_ARB_transform_feedback2 */ - -/* ----------------------- GL_ARB_transform_feedback3 ---------------------- */ - -#ifndef GL_ARB_transform_feedback3 -#define GL_ARB_transform_feedback3 1 - -#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 -#define GL_MAX_VERTEX_STREAMS 0x8E71 - -typedef void (GLAPIENTRY * PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); -typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); -typedef void (GLAPIENTRY * PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); -typedef void (GLAPIENTRY * PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); - -#define glBeginQueryIndexed GLEW_GET_FUN(__glewBeginQueryIndexed) -#define glDrawTransformFeedbackStream GLEW_GET_FUN(__glewDrawTransformFeedbackStream) -#define glEndQueryIndexed GLEW_GET_FUN(__glewEndQueryIndexed) -#define glGetQueryIndexediv GLEW_GET_FUN(__glewGetQueryIndexediv) - -#define GLEW_ARB_transform_feedback3 GLEW_GET_VAR(__GLEW_ARB_transform_feedback3) - -#endif /* GL_ARB_transform_feedback3 */ - -/* ------------------------ GL_ARB_transpose_matrix ------------------------ */ - -#ifndef GL_ARB_transpose_matrix -#define GL_ARB_transpose_matrix 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]); -typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]); -typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]); -typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]); - -#define glLoadTransposeMatrixdARB GLEW_GET_FUN(__glewLoadTransposeMatrixdARB) -#define glLoadTransposeMatrixfARB GLEW_GET_FUN(__glewLoadTransposeMatrixfARB) -#define glMultTransposeMatrixdARB GLEW_GET_FUN(__glewMultTransposeMatrixdARB) -#define glMultTransposeMatrixfARB GLEW_GET_FUN(__glewMultTransposeMatrixfARB) - -#define GLEW_ARB_transpose_matrix GLEW_GET_VAR(__GLEW_ARB_transpose_matrix) - -#endif /* GL_ARB_transpose_matrix */ - -/* ---------------------- GL_ARB_uniform_buffer_object --------------------- */ - -#ifndef GL_ARB_uniform_buffer_object -#define GL_ARB_uniform_buffer_object 1 - -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFF - -typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, char* uniformBlockName); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, char* uniformName); -typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint* data); -typedef GLuint (GLAPIENTRY * PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const char* uniformBlockName); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const char** uniformNames, GLuint* uniformIndices); -typedef void (GLAPIENTRY * PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); - -#define glBindBufferBase GLEW_GET_FUN(__glewBindBufferBase) -#define glBindBufferRange GLEW_GET_FUN(__glewBindBufferRange) -#define glGetActiveUniformBlockName GLEW_GET_FUN(__glewGetActiveUniformBlockName) -#define glGetActiveUniformBlockiv GLEW_GET_FUN(__glewGetActiveUniformBlockiv) -#define glGetActiveUniformName GLEW_GET_FUN(__glewGetActiveUniformName) -#define glGetActiveUniformsiv GLEW_GET_FUN(__glewGetActiveUniformsiv) -#define glGetIntegeri_v GLEW_GET_FUN(__glewGetIntegeri_v) -#define glGetUniformBlockIndex GLEW_GET_FUN(__glewGetUniformBlockIndex) -#define glGetUniformIndices GLEW_GET_FUN(__glewGetUniformIndices) -#define glUniformBlockBinding GLEW_GET_FUN(__glewUniformBlockBinding) - -#define GLEW_ARB_uniform_buffer_object GLEW_GET_VAR(__GLEW_ARB_uniform_buffer_object) - -#endif /* GL_ARB_uniform_buffer_object */ - -/* ------------------------ GL_ARB_vertex_array_bgra ----------------------- */ - -#ifndef GL_ARB_vertex_array_bgra -#define GL_ARB_vertex_array_bgra 1 - -#define GL_BGRA 0x80E1 - -#define GLEW_ARB_vertex_array_bgra GLEW_GET_VAR(__GLEW_ARB_vertex_array_bgra) - -#endif /* GL_ARB_vertex_array_bgra */ - -/* ----------------------- GL_ARB_vertex_array_object ---------------------- */ - -#ifndef GL_ARB_vertex_array_object -#define GL_ARB_vertex_array_object 1 - -#define GL_VERTEX_ARRAY_BINDING 0x85B5 - -typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYPROC) (GLuint array); -typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint* arrays); -typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint* arrays); -typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYPROC) (GLuint array); - -#define glBindVertexArray GLEW_GET_FUN(__glewBindVertexArray) -#define glDeleteVertexArrays GLEW_GET_FUN(__glewDeleteVertexArrays) -#define glGenVertexArrays GLEW_GET_FUN(__glewGenVertexArrays) -#define glIsVertexArray GLEW_GET_FUN(__glewIsVertexArray) - -#define GLEW_ARB_vertex_array_object GLEW_GET_VAR(__GLEW_ARB_vertex_array_object) - -#endif /* GL_ARB_vertex_array_object */ - -/* ----------------------- GL_ARB_vertex_attrib_64bit ---------------------- */ - -#ifndef GL_ARB_vertex_attrib_64bit -#define GL_ARB_vertex_attrib_64bit 1 - -#define GL_DOUBLE_MAT2 0x8F46 -#define GL_DOUBLE_MAT3 0x8F47 -#define GL_DOUBLE_MAT4 0x8F48 -#define GL_DOUBLE_VEC2 0x8FFC -#define GL_DOUBLE_VEC3 0x8FFD -#define GL_DOUBLE_VEC4 0x8FFE - -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); - -#define glGetVertexAttribLdv GLEW_GET_FUN(__glewGetVertexAttribLdv) -#define glVertexAttribL1d GLEW_GET_FUN(__glewVertexAttribL1d) -#define glVertexAttribL1dv GLEW_GET_FUN(__glewVertexAttribL1dv) -#define glVertexAttribL2d GLEW_GET_FUN(__glewVertexAttribL2d) -#define glVertexAttribL2dv GLEW_GET_FUN(__glewVertexAttribL2dv) -#define glVertexAttribL3d GLEW_GET_FUN(__glewVertexAttribL3d) -#define glVertexAttribL3dv GLEW_GET_FUN(__glewVertexAttribL3dv) -#define glVertexAttribL4d GLEW_GET_FUN(__glewVertexAttribL4d) -#define glVertexAttribL4dv GLEW_GET_FUN(__glewVertexAttribL4dv) -#define glVertexAttribLPointer GLEW_GET_FUN(__glewVertexAttribLPointer) - -#define GLEW_ARB_vertex_attrib_64bit GLEW_GET_VAR(__GLEW_ARB_vertex_attrib_64bit) - -#endif /* GL_ARB_vertex_attrib_64bit */ - -/* -------------------------- GL_ARB_vertex_blend -------------------------- */ - -#ifndef GL_ARB_vertex_blend -#define GL_ARB_vertex_blend 1 - -#define GL_MODELVIEW0_ARB 0x1700 -#define GL_MODELVIEW1_ARB 0x850A -#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_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 - -typedef void (GLAPIENTRY * PFNGLVERTEXBLENDARBPROC) (GLint count); -typedef void (GLAPIENTRY * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); -typedef void (GLAPIENTRY * PFNGLWEIGHTBVARBPROC) (GLint size, GLbyte *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTDVARBPROC) (GLint size, GLdouble *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTFVARBPROC) (GLint size, GLfloat *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTIVARBPROC) (GLint size, GLint *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTSVARBPROC) (GLint size, GLshort *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTUBVARBPROC) (GLint size, GLubyte *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTUIVARBPROC) (GLint size, GLuint *weights); -typedef void (GLAPIENTRY * PFNGLWEIGHTUSVARBPROC) (GLint size, GLushort *weights); - -#define glVertexBlendARB GLEW_GET_FUN(__glewVertexBlendARB) -#define glWeightPointerARB GLEW_GET_FUN(__glewWeightPointerARB) -#define glWeightbvARB GLEW_GET_FUN(__glewWeightbvARB) -#define glWeightdvARB GLEW_GET_FUN(__glewWeightdvARB) -#define glWeightfvARB GLEW_GET_FUN(__glewWeightfvARB) -#define glWeightivARB GLEW_GET_FUN(__glewWeightivARB) -#define glWeightsvARB GLEW_GET_FUN(__glewWeightsvARB) -#define glWeightubvARB GLEW_GET_FUN(__glewWeightubvARB) -#define glWeightuivARB GLEW_GET_FUN(__glewWeightuivARB) -#define glWeightusvARB GLEW_GET_FUN(__glewWeightusvARB) - -#define GLEW_ARB_vertex_blend GLEW_GET_VAR(__GLEW_ARB_vertex_blend) - -#endif /* GL_ARB_vertex_blend */ - -/* ---------------------- GL_ARB_vertex_buffer_object ---------------------- */ - -#ifndef GL_ARB_vertex_buffer_object -#define GL_ARB_vertex_buffer_object 1 - -#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 - -typedef ptrdiff_t GLintptrARB; -typedef ptrdiff_t GLsizeiptrARB; - -typedef void (GLAPIENTRY * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid* data, GLenum usage); -typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid* data); -typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint* buffers); -typedef void (GLAPIENTRY * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint* buffers); -typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid** params); -typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid* data); -typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERARBPROC) (GLuint buffer); -typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); -typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERARBPROC) (GLenum target); - -#define glBindBufferARB GLEW_GET_FUN(__glewBindBufferARB) -#define glBufferDataARB GLEW_GET_FUN(__glewBufferDataARB) -#define glBufferSubDataARB GLEW_GET_FUN(__glewBufferSubDataARB) -#define glDeleteBuffersARB GLEW_GET_FUN(__glewDeleteBuffersARB) -#define glGenBuffersARB GLEW_GET_FUN(__glewGenBuffersARB) -#define glGetBufferParameterivARB GLEW_GET_FUN(__glewGetBufferParameterivARB) -#define glGetBufferPointervARB GLEW_GET_FUN(__glewGetBufferPointervARB) -#define glGetBufferSubDataARB GLEW_GET_FUN(__glewGetBufferSubDataARB) -#define glIsBufferARB GLEW_GET_FUN(__glewIsBufferARB) -#define glMapBufferARB GLEW_GET_FUN(__glewMapBufferARB) -#define glUnmapBufferARB GLEW_GET_FUN(__glewUnmapBufferARB) - -#define GLEW_ARB_vertex_buffer_object GLEW_GET_VAR(__GLEW_ARB_vertex_buffer_object) - -#endif /* GL_ARB_vertex_buffer_object */ - -/* ------------------------- GL_ARB_vertex_program ------------------------- */ - -#ifndef GL_ARB_vertex_program -#define GL_ARB_vertex_program 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program); -typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint* programs); -typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index); -typedef void (GLAPIENTRY * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint* programs); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void* string); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid** pointer); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMARBPROC) (GLuint program); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void* string); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer); - -#define glBindProgramARB GLEW_GET_FUN(__glewBindProgramARB) -#define glDeleteProgramsARB GLEW_GET_FUN(__glewDeleteProgramsARB) -#define glDisableVertexAttribArrayARB GLEW_GET_FUN(__glewDisableVertexAttribArrayARB) -#define glEnableVertexAttribArrayARB GLEW_GET_FUN(__glewEnableVertexAttribArrayARB) -#define glGenProgramsARB GLEW_GET_FUN(__glewGenProgramsARB) -#define glGetProgramEnvParameterdvARB GLEW_GET_FUN(__glewGetProgramEnvParameterdvARB) -#define glGetProgramEnvParameterfvARB GLEW_GET_FUN(__glewGetProgramEnvParameterfvARB) -#define glGetProgramLocalParameterdvARB GLEW_GET_FUN(__glewGetProgramLocalParameterdvARB) -#define glGetProgramLocalParameterfvARB GLEW_GET_FUN(__glewGetProgramLocalParameterfvARB) -#define glGetProgramStringARB GLEW_GET_FUN(__glewGetProgramStringARB) -#define glGetProgramivARB GLEW_GET_FUN(__glewGetProgramivARB) -#define glGetVertexAttribPointervARB GLEW_GET_FUN(__glewGetVertexAttribPointervARB) -#define glGetVertexAttribdvARB GLEW_GET_FUN(__glewGetVertexAttribdvARB) -#define glGetVertexAttribfvARB GLEW_GET_FUN(__glewGetVertexAttribfvARB) -#define glGetVertexAttribivARB GLEW_GET_FUN(__glewGetVertexAttribivARB) -#define glIsProgramARB GLEW_GET_FUN(__glewIsProgramARB) -#define glProgramEnvParameter4dARB GLEW_GET_FUN(__glewProgramEnvParameter4dARB) -#define glProgramEnvParameter4dvARB GLEW_GET_FUN(__glewProgramEnvParameter4dvARB) -#define glProgramEnvParameter4fARB GLEW_GET_FUN(__glewProgramEnvParameter4fARB) -#define glProgramEnvParameter4fvARB GLEW_GET_FUN(__glewProgramEnvParameter4fvARB) -#define glProgramLocalParameter4dARB GLEW_GET_FUN(__glewProgramLocalParameter4dARB) -#define glProgramLocalParameter4dvARB GLEW_GET_FUN(__glewProgramLocalParameter4dvARB) -#define glProgramLocalParameter4fARB GLEW_GET_FUN(__glewProgramLocalParameter4fARB) -#define glProgramLocalParameter4fvARB GLEW_GET_FUN(__glewProgramLocalParameter4fvARB) -#define glProgramStringARB GLEW_GET_FUN(__glewProgramStringARB) -#define glVertexAttrib1dARB GLEW_GET_FUN(__glewVertexAttrib1dARB) -#define glVertexAttrib1dvARB GLEW_GET_FUN(__glewVertexAttrib1dvARB) -#define glVertexAttrib1fARB GLEW_GET_FUN(__glewVertexAttrib1fARB) -#define glVertexAttrib1fvARB GLEW_GET_FUN(__glewVertexAttrib1fvARB) -#define glVertexAttrib1sARB GLEW_GET_FUN(__glewVertexAttrib1sARB) -#define glVertexAttrib1svARB GLEW_GET_FUN(__glewVertexAttrib1svARB) -#define glVertexAttrib2dARB GLEW_GET_FUN(__glewVertexAttrib2dARB) -#define glVertexAttrib2dvARB GLEW_GET_FUN(__glewVertexAttrib2dvARB) -#define glVertexAttrib2fARB GLEW_GET_FUN(__glewVertexAttrib2fARB) -#define glVertexAttrib2fvARB GLEW_GET_FUN(__glewVertexAttrib2fvARB) -#define glVertexAttrib2sARB GLEW_GET_FUN(__glewVertexAttrib2sARB) -#define glVertexAttrib2svARB GLEW_GET_FUN(__glewVertexAttrib2svARB) -#define glVertexAttrib3dARB GLEW_GET_FUN(__glewVertexAttrib3dARB) -#define glVertexAttrib3dvARB GLEW_GET_FUN(__glewVertexAttrib3dvARB) -#define glVertexAttrib3fARB GLEW_GET_FUN(__glewVertexAttrib3fARB) -#define glVertexAttrib3fvARB GLEW_GET_FUN(__glewVertexAttrib3fvARB) -#define glVertexAttrib3sARB GLEW_GET_FUN(__glewVertexAttrib3sARB) -#define glVertexAttrib3svARB GLEW_GET_FUN(__glewVertexAttrib3svARB) -#define glVertexAttrib4NbvARB GLEW_GET_FUN(__glewVertexAttrib4NbvARB) -#define glVertexAttrib4NivARB GLEW_GET_FUN(__glewVertexAttrib4NivARB) -#define glVertexAttrib4NsvARB GLEW_GET_FUN(__glewVertexAttrib4NsvARB) -#define glVertexAttrib4NubARB GLEW_GET_FUN(__glewVertexAttrib4NubARB) -#define glVertexAttrib4NubvARB GLEW_GET_FUN(__glewVertexAttrib4NubvARB) -#define glVertexAttrib4NuivARB GLEW_GET_FUN(__glewVertexAttrib4NuivARB) -#define glVertexAttrib4NusvARB GLEW_GET_FUN(__glewVertexAttrib4NusvARB) -#define glVertexAttrib4bvARB GLEW_GET_FUN(__glewVertexAttrib4bvARB) -#define glVertexAttrib4dARB GLEW_GET_FUN(__glewVertexAttrib4dARB) -#define glVertexAttrib4dvARB GLEW_GET_FUN(__glewVertexAttrib4dvARB) -#define glVertexAttrib4fARB GLEW_GET_FUN(__glewVertexAttrib4fARB) -#define glVertexAttrib4fvARB GLEW_GET_FUN(__glewVertexAttrib4fvARB) -#define glVertexAttrib4ivARB GLEW_GET_FUN(__glewVertexAttrib4ivARB) -#define glVertexAttrib4sARB GLEW_GET_FUN(__glewVertexAttrib4sARB) -#define glVertexAttrib4svARB GLEW_GET_FUN(__glewVertexAttrib4svARB) -#define glVertexAttrib4ubvARB GLEW_GET_FUN(__glewVertexAttrib4ubvARB) -#define glVertexAttrib4uivARB GLEW_GET_FUN(__glewVertexAttrib4uivARB) -#define glVertexAttrib4usvARB GLEW_GET_FUN(__glewVertexAttrib4usvARB) -#define glVertexAttribPointerARB GLEW_GET_FUN(__glewVertexAttribPointerARB) - -#define GLEW_ARB_vertex_program GLEW_GET_VAR(__GLEW_ARB_vertex_program) - -#endif /* GL_ARB_vertex_program */ - -/* -------------------------- GL_ARB_vertex_shader ------------------------- */ - -#ifndef GL_ARB_vertex_shader -#define GL_ARB_vertex_shader 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB* name); -typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name); -typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name); - -#define glBindAttribLocationARB GLEW_GET_FUN(__glewBindAttribLocationARB) -#define glGetActiveAttribARB GLEW_GET_FUN(__glewGetActiveAttribARB) -#define glGetAttribLocationARB GLEW_GET_FUN(__glewGetAttribLocationARB) - -#define GLEW_ARB_vertex_shader GLEW_GET_VAR(__GLEW_ARB_vertex_shader) - -#endif /* GL_ARB_vertex_shader */ - -/* ------------------- GL_ARB_vertex_type_2_10_10_10_rev ------------------- */ - -#ifndef GL_ARB_vertex_type_2_10_10_10_rev -#define GL_ARB_vertex_type_2_10_10_10_rev 1 - -#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 -#define GL_INT_2_10_10_10_REV 0x8D9F - -typedef void (GLAPIENTRY * PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (GLAPIENTRY * PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint* color); -typedef void (GLAPIENTRY * PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); -typedef void (GLAPIENTRY * PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint* color); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint* color); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); -typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint* coords); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); -typedef void (GLAPIENTRY * PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint* value); - -#define glColorP3ui GLEW_GET_FUN(__glewColorP3ui) -#define glColorP3uiv GLEW_GET_FUN(__glewColorP3uiv) -#define glColorP4ui GLEW_GET_FUN(__glewColorP4ui) -#define glColorP4uiv GLEW_GET_FUN(__glewColorP4uiv) -#define glMultiTexCoordP1ui GLEW_GET_FUN(__glewMultiTexCoordP1ui) -#define glMultiTexCoordP1uiv GLEW_GET_FUN(__glewMultiTexCoordP1uiv) -#define glMultiTexCoordP2ui GLEW_GET_FUN(__glewMultiTexCoordP2ui) -#define glMultiTexCoordP2uiv GLEW_GET_FUN(__glewMultiTexCoordP2uiv) -#define glMultiTexCoordP3ui GLEW_GET_FUN(__glewMultiTexCoordP3ui) -#define glMultiTexCoordP3uiv GLEW_GET_FUN(__glewMultiTexCoordP3uiv) -#define glMultiTexCoordP4ui GLEW_GET_FUN(__glewMultiTexCoordP4ui) -#define glMultiTexCoordP4uiv GLEW_GET_FUN(__glewMultiTexCoordP4uiv) -#define glNormalP3ui GLEW_GET_FUN(__glewNormalP3ui) -#define glNormalP3uiv GLEW_GET_FUN(__glewNormalP3uiv) -#define glSecondaryColorP3ui GLEW_GET_FUN(__glewSecondaryColorP3ui) -#define glSecondaryColorP3uiv GLEW_GET_FUN(__glewSecondaryColorP3uiv) -#define glTexCoordP1ui GLEW_GET_FUN(__glewTexCoordP1ui) -#define glTexCoordP1uiv GLEW_GET_FUN(__glewTexCoordP1uiv) -#define glTexCoordP2ui GLEW_GET_FUN(__glewTexCoordP2ui) -#define glTexCoordP2uiv GLEW_GET_FUN(__glewTexCoordP2uiv) -#define glTexCoordP3ui GLEW_GET_FUN(__glewTexCoordP3ui) -#define glTexCoordP3uiv GLEW_GET_FUN(__glewTexCoordP3uiv) -#define glTexCoordP4ui GLEW_GET_FUN(__glewTexCoordP4ui) -#define glTexCoordP4uiv GLEW_GET_FUN(__glewTexCoordP4uiv) -#define glVertexAttribP1ui GLEW_GET_FUN(__glewVertexAttribP1ui) -#define glVertexAttribP1uiv GLEW_GET_FUN(__glewVertexAttribP1uiv) -#define glVertexAttribP2ui GLEW_GET_FUN(__glewVertexAttribP2ui) -#define glVertexAttribP2uiv GLEW_GET_FUN(__glewVertexAttribP2uiv) -#define glVertexAttribP3ui GLEW_GET_FUN(__glewVertexAttribP3ui) -#define glVertexAttribP3uiv GLEW_GET_FUN(__glewVertexAttribP3uiv) -#define glVertexAttribP4ui GLEW_GET_FUN(__glewVertexAttribP4ui) -#define glVertexAttribP4uiv GLEW_GET_FUN(__glewVertexAttribP4uiv) -#define glVertexP2ui GLEW_GET_FUN(__glewVertexP2ui) -#define glVertexP2uiv GLEW_GET_FUN(__glewVertexP2uiv) -#define glVertexP3ui GLEW_GET_FUN(__glewVertexP3ui) -#define glVertexP3uiv GLEW_GET_FUN(__glewVertexP3uiv) -#define glVertexP4ui GLEW_GET_FUN(__glewVertexP4ui) -#define glVertexP4uiv GLEW_GET_FUN(__glewVertexP4uiv) - -#define GLEW_ARB_vertex_type_2_10_10_10_rev GLEW_GET_VAR(__GLEW_ARB_vertex_type_2_10_10_10_rev) - -#endif /* GL_ARB_vertex_type_2_10_10_10_rev */ - -/* ------------------------- GL_ARB_viewport_array ------------------------- */ - -#ifndef GL_ARB_viewport_array -#define GL_ARB_viewport_array 1 - -#define GL_DEPTH_RANGE 0x0B70 -#define GL_VIEWPORT 0x0BA2 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_MAX_VIEWPORTS 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE 0x825D -#define GL_LAYER_PROVOKING_VERTEX 0x825E -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F -#define GL_UNDEFINED_VERTEX 0x8260 -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F - -typedef void (GLAPIENTRY * PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLclampd * v); -typedef void (GLAPIENTRY * PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLclampd n, GLclampd f); -typedef void (GLAPIENTRY * PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble* data); -typedef void (GLAPIENTRY * PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat* data); -typedef void (GLAPIENTRY * PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint * v); -typedef void (GLAPIENTRY * PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint * v); -typedef void (GLAPIENTRY * PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat * v); -typedef void (GLAPIENTRY * PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -typedef void (GLAPIENTRY * PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat * v); - -#define glDepthRangeArrayv GLEW_GET_FUN(__glewDepthRangeArrayv) -#define glDepthRangeIndexed GLEW_GET_FUN(__glewDepthRangeIndexed) -#define glGetDoublei_v GLEW_GET_FUN(__glewGetDoublei_v) -#define glGetFloati_v GLEW_GET_FUN(__glewGetFloati_v) -#define glScissorArrayv GLEW_GET_FUN(__glewScissorArrayv) -#define glScissorIndexed GLEW_GET_FUN(__glewScissorIndexed) -#define glScissorIndexedv GLEW_GET_FUN(__glewScissorIndexedv) -#define glViewportArrayv GLEW_GET_FUN(__glewViewportArrayv) -#define glViewportIndexedf GLEW_GET_FUN(__glewViewportIndexedf) -#define glViewportIndexedfv GLEW_GET_FUN(__glewViewportIndexedfv) - -#define GLEW_ARB_viewport_array GLEW_GET_VAR(__GLEW_ARB_viewport_array) - -#endif /* GL_ARB_viewport_array */ - -/* --------------------------- GL_ARB_window_pos --------------------------- */ - -#ifndef GL_ARB_window_pos -#define GL_ARB_window_pos 1 - -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVARBPROC) (const GLint* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVARBPROC) (const GLshort* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVARBPROC) (const GLint* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVARBPROC) (const GLshort* p); - -#define glWindowPos2dARB GLEW_GET_FUN(__glewWindowPos2dARB) -#define glWindowPos2dvARB GLEW_GET_FUN(__glewWindowPos2dvARB) -#define glWindowPos2fARB GLEW_GET_FUN(__glewWindowPos2fARB) -#define glWindowPos2fvARB GLEW_GET_FUN(__glewWindowPos2fvARB) -#define glWindowPos2iARB GLEW_GET_FUN(__glewWindowPos2iARB) -#define glWindowPos2ivARB GLEW_GET_FUN(__glewWindowPos2ivARB) -#define glWindowPos2sARB GLEW_GET_FUN(__glewWindowPos2sARB) -#define glWindowPos2svARB GLEW_GET_FUN(__glewWindowPos2svARB) -#define glWindowPos3dARB GLEW_GET_FUN(__glewWindowPos3dARB) -#define glWindowPos3dvARB GLEW_GET_FUN(__glewWindowPos3dvARB) -#define glWindowPos3fARB GLEW_GET_FUN(__glewWindowPos3fARB) -#define glWindowPos3fvARB GLEW_GET_FUN(__glewWindowPos3fvARB) -#define glWindowPos3iARB GLEW_GET_FUN(__glewWindowPos3iARB) -#define glWindowPos3ivARB GLEW_GET_FUN(__glewWindowPos3ivARB) -#define glWindowPos3sARB GLEW_GET_FUN(__glewWindowPos3sARB) -#define glWindowPos3svARB GLEW_GET_FUN(__glewWindowPos3svARB) - -#define GLEW_ARB_window_pos GLEW_GET_VAR(__GLEW_ARB_window_pos) - -#endif /* GL_ARB_window_pos */ - -/* ------------------------- GL_ATIX_point_sprites ------------------------- */ - -#ifndef GL_ATIX_point_sprites -#define GL_ATIX_point_sprites 1 - -#define GL_TEXTURE_POINT_MODE_ATIX 0x60B0 -#define GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1 -#define GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2 -#define GL_POINT_SPRITE_CULL_MODE_ATIX 0x60B3 -#define GL_POINT_SPRITE_CULL_CENTER_ATIX 0x60B4 -#define GL_POINT_SPRITE_CULL_CLIP_ATIX 0x60B5 - -#define GLEW_ATIX_point_sprites GLEW_GET_VAR(__GLEW_ATIX_point_sprites) - -#endif /* GL_ATIX_point_sprites */ - -/* ---------------------- GL_ATIX_texture_env_combine3 --------------------- */ - -#ifndef GL_ATIX_texture_env_combine3 -#define GL_ATIX_texture_env_combine3 1 - -#define GL_MODULATE_ADD_ATIX 0x8744 -#define GL_MODULATE_SIGNED_ADD_ATIX 0x8745 -#define GL_MODULATE_SUBTRACT_ATIX 0x8746 - -#define GLEW_ATIX_texture_env_combine3 GLEW_GET_VAR(__GLEW_ATIX_texture_env_combine3) - -#endif /* GL_ATIX_texture_env_combine3 */ - -/* ----------------------- GL_ATIX_texture_env_route ----------------------- */ - -#ifndef GL_ATIX_texture_env_route -#define GL_ATIX_texture_env_route 1 - -#define GL_SECONDARY_COLOR_ATIX 0x8747 -#define GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748 -#define GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749 - -#define GLEW_ATIX_texture_env_route GLEW_GET_VAR(__GLEW_ATIX_texture_env_route) - -#endif /* GL_ATIX_texture_env_route */ - -/* ---------------- GL_ATIX_vertex_shader_output_point_size ---------------- */ - -#ifndef GL_ATIX_vertex_shader_output_point_size -#define GL_ATIX_vertex_shader_output_point_size 1 - -#define GL_OUTPUT_POINT_SIZE_ATIX 0x610E - -#define GLEW_ATIX_vertex_shader_output_point_size GLEW_GET_VAR(__GLEW_ATIX_vertex_shader_output_point_size) - -#endif /* GL_ATIX_vertex_shader_output_point_size */ - -/* -------------------------- GL_ATI_draw_buffers -------------------------- */ - -#ifndef GL_ATI_draw_buffers -#define GL_ATI_draw_buffers 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum* bufs); - -#define glDrawBuffersATI GLEW_GET_FUN(__glewDrawBuffersATI) - -#define GLEW_ATI_draw_buffers GLEW_GET_VAR(__GLEW_ATI_draw_buffers) - -#endif /* GL_ATI_draw_buffers */ - -/* -------------------------- GL_ATI_element_array ------------------------- */ - -#ifndef GL_ATI_element_array -#define GL_ATI_element_array 1 - -#define GL_ELEMENT_ARRAY_ATI 0x8768 -#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 -#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A - -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count); -typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count); -typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void* pointer); - -#define glDrawElementArrayATI GLEW_GET_FUN(__glewDrawElementArrayATI) -#define glDrawRangeElementArrayATI GLEW_GET_FUN(__glewDrawRangeElementArrayATI) -#define glElementPointerATI GLEW_GET_FUN(__glewElementPointerATI) - -#define GLEW_ATI_element_array GLEW_GET_VAR(__GLEW_ATI_element_array) - -#endif /* GL_ATI_element_array */ - -/* ------------------------- GL_ATI_envmap_bumpmap ------------------------- */ - -#ifndef GL_ATI_envmap_bumpmap -#define GL_ATI_envmap_bumpmap 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); -typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); -typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param); -typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param); - -#define glGetTexBumpParameterfvATI GLEW_GET_FUN(__glewGetTexBumpParameterfvATI) -#define glGetTexBumpParameterivATI GLEW_GET_FUN(__glewGetTexBumpParameterivATI) -#define glTexBumpParameterfvATI GLEW_GET_FUN(__glewTexBumpParameterfvATI) -#define glTexBumpParameterivATI GLEW_GET_FUN(__glewTexBumpParameterivATI) - -#define GLEW_ATI_envmap_bumpmap GLEW_GET_VAR(__GLEW_ATI_envmap_bumpmap) - -#endif /* GL_ATI_envmap_bumpmap */ - -/* ------------------------- GL_ATI_fragment_shader ------------------------ */ - -#ifndef GL_ATI_fragment_shader -#define GL_ATI_fragment_shader 1 - -#define GL_RED_BIT_ATI 0x00000001 -#define GL_2X_BIT_ATI 0x00000001 -#define GL_4X_BIT_ATI 0x00000002 -#define GL_GREEN_BIT_ATI 0x00000002 -#define GL_COMP_BIT_ATI 0x00000002 -#define GL_BLUE_BIT_ATI 0x00000004 -#define GL_8X_BIT_ATI 0x00000004 -#define GL_NEGATE_BIT_ATI 0x00000004 -#define GL_BIAS_BIT_ATI 0x00000008 -#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_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_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_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 - -typedef void (GLAPIENTRY * PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (GLAPIENTRY * PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLBEGINFRAGMENTSHADERATIPROC) (void); -typedef void (GLAPIENTRY * PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -typedef void (GLAPIENTRY * PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLENDFRAGMENTSHADERATIPROC) (void); -typedef GLuint (GLAPIENTRY * PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range); -typedef void (GLAPIENTRY * PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle); -typedef void (GLAPIENTRY * PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle); -typedef void (GLAPIENTRY * PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat* value); - -#define glAlphaFragmentOp1ATI GLEW_GET_FUN(__glewAlphaFragmentOp1ATI) -#define glAlphaFragmentOp2ATI GLEW_GET_FUN(__glewAlphaFragmentOp2ATI) -#define glAlphaFragmentOp3ATI GLEW_GET_FUN(__glewAlphaFragmentOp3ATI) -#define glBeginFragmentShaderATI GLEW_GET_FUN(__glewBeginFragmentShaderATI) -#define glBindFragmentShaderATI GLEW_GET_FUN(__glewBindFragmentShaderATI) -#define glColorFragmentOp1ATI GLEW_GET_FUN(__glewColorFragmentOp1ATI) -#define glColorFragmentOp2ATI GLEW_GET_FUN(__glewColorFragmentOp2ATI) -#define glColorFragmentOp3ATI GLEW_GET_FUN(__glewColorFragmentOp3ATI) -#define glDeleteFragmentShaderATI GLEW_GET_FUN(__glewDeleteFragmentShaderATI) -#define glEndFragmentShaderATI GLEW_GET_FUN(__glewEndFragmentShaderATI) -#define glGenFragmentShadersATI GLEW_GET_FUN(__glewGenFragmentShadersATI) -#define glPassTexCoordATI GLEW_GET_FUN(__glewPassTexCoordATI) -#define glSampleMapATI GLEW_GET_FUN(__glewSampleMapATI) -#define glSetFragmentShaderConstantATI GLEW_GET_FUN(__glewSetFragmentShaderConstantATI) - -#define GLEW_ATI_fragment_shader GLEW_GET_VAR(__GLEW_ATI_fragment_shader) - -#endif /* GL_ATI_fragment_shader */ - -/* ------------------------ GL_ATI_map_object_buffer ----------------------- */ - -#ifndef GL_ATI_map_object_buffer -#define GL_ATI_map_object_buffer 1 - -typedef void* (GLAPIENTRY * PFNGLMAPOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (GLAPIENTRY * PFNGLUNMAPOBJECTBUFFERATIPROC) (GLuint buffer); - -#define glMapObjectBufferATI GLEW_GET_FUN(__glewMapObjectBufferATI) -#define glUnmapObjectBufferATI GLEW_GET_FUN(__glewUnmapObjectBufferATI) - -#define GLEW_ATI_map_object_buffer GLEW_GET_VAR(__GLEW_ATI_map_object_buffer) - -#endif /* GL_ATI_map_object_buffer */ - -/* ----------------------------- GL_ATI_meminfo ---------------------------- */ - -#ifndef GL_ATI_meminfo -#define GL_ATI_meminfo 1 - -#define GL_VBO_FREE_MEMORY_ATI 0x87FB -#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC -#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD - -#define GLEW_ATI_meminfo GLEW_GET_VAR(__GLEW_ATI_meminfo) - -#endif /* GL_ATI_meminfo */ - -/* -------------------------- GL_ATI_pn_triangles -------------------------- */ - -#ifndef GL_ATI_pn_triangles -#define GL_ATI_pn_triangles 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLPNTRIANGLESFATIPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLPNTRIANGLESIATIPROC) (GLenum pname, GLint param); - -#define glPNTrianglesfATI GLEW_GET_FUN(__glewPNTrianglesfATI) -#define glPNTrianglesiATI GLEW_GET_FUN(__glewPNTrianglesiATI) - -#define GLEW_ATI_pn_triangles GLEW_GET_VAR(__GLEW_ATI_pn_triangles) - -#endif /* GL_ATI_pn_triangles */ - -/* ------------------------ GL_ATI_separate_stencil ------------------------ */ - -#ifndef GL_ATI_separate_stencil -#define GL_ATI_separate_stencil 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEATIPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEATIPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); - -#define glStencilFuncSeparateATI GLEW_GET_FUN(__glewStencilFuncSeparateATI) -#define glStencilOpSeparateATI GLEW_GET_FUN(__glewStencilOpSeparateATI) - -#define GLEW_ATI_separate_stencil GLEW_GET_VAR(__GLEW_ATI_separate_stencil) - -#endif /* GL_ATI_separate_stencil */ - -/* ----------------------- GL_ATI_shader_texture_lod ----------------------- */ - -#ifndef GL_ATI_shader_texture_lod -#define GL_ATI_shader_texture_lod 1 - -#define GLEW_ATI_shader_texture_lod GLEW_GET_VAR(__GLEW_ATI_shader_texture_lod) - -#endif /* GL_ATI_shader_texture_lod */ - -/* ---------------------- GL_ATI_text_fragment_shader ---------------------- */ - -#ifndef GL_ATI_text_fragment_shader -#define GL_ATI_text_fragment_shader 1 - -#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 - -#define GLEW_ATI_text_fragment_shader GLEW_GET_VAR(__GLEW_ATI_text_fragment_shader) - -#endif /* GL_ATI_text_fragment_shader */ - -/* --------------------- GL_ATI_texture_compression_3dc -------------------- */ - -#ifndef GL_ATI_texture_compression_3dc -#define GL_ATI_texture_compression_3dc 1 - -#define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837 - -#define GLEW_ATI_texture_compression_3dc GLEW_GET_VAR(__GLEW_ATI_texture_compression_3dc) - -#endif /* GL_ATI_texture_compression_3dc */ - -/* ---------------------- GL_ATI_texture_env_combine3 ---------------------- */ - -#ifndef GL_ATI_texture_env_combine3 -#define GL_ATI_texture_env_combine3 1 - -#define GL_MODULATE_ADD_ATI 0x8744 -#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 -#define GL_MODULATE_SUBTRACT_ATI 0x8746 - -#define GLEW_ATI_texture_env_combine3 GLEW_GET_VAR(__GLEW_ATI_texture_env_combine3) - -#endif /* GL_ATI_texture_env_combine3 */ - -/* -------------------------- GL_ATI_texture_float ------------------------- */ - -#ifndef GL_ATI_texture_float -#define GL_ATI_texture_float 1 - -#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 - -#define GLEW_ATI_texture_float GLEW_GET_VAR(__GLEW_ATI_texture_float) - -#endif /* GL_ATI_texture_float */ - -/* ----------------------- GL_ATI_texture_mirror_once ---------------------- */ - -#ifndef GL_ATI_texture_mirror_once -#define GL_ATI_texture_mirror_once 1 - -#define GL_MIRROR_CLAMP_ATI 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 - -#define GLEW_ATI_texture_mirror_once GLEW_GET_VAR(__GLEW_ATI_texture_mirror_once) - -#endif /* GL_ATI_texture_mirror_once */ - -/* ----------------------- GL_ATI_vertex_array_object ---------------------- */ - -#ifndef GL_ATI_vertex_array_object -#define GL_ATI_vertex_array_object 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLARRAYOBJECTATIPROC) (GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -typedef void (GLAPIENTRY * PFNGLFREEOBJECTBUFFERATIPROC) (GLuint buffer); -typedef void (GLAPIENTRY * PFNGLGETARRAYOBJECTFVATIPROC) (GLenum array, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETARRAYOBJECTIVATIPROC) (GLenum array, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETOBJECTBUFFERFVATIPROC) (GLuint buffer, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETOBJECTBUFFERIVATIPROC) (GLuint buffer, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVARIANTARRAYOBJECTFVATIPROC) (GLuint id, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETVARIANTARRAYOBJECTIVATIPROC) (GLuint id, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISOBJECTBUFFERATIPROC) (GLuint buffer); -typedef GLuint (GLAPIENTRY * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const void* pointer, GLenum usage); -typedef void (GLAPIENTRY * PFNGLUPDATEOBJECTBUFFERATIPROC) (GLuint buffer, GLuint offset, GLsizei size, const void* pointer, GLenum preserve); -typedef void (GLAPIENTRY * PFNGLVARIANTARRAYOBJECTATIPROC) (GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); - -#define glArrayObjectATI GLEW_GET_FUN(__glewArrayObjectATI) -#define glFreeObjectBufferATI GLEW_GET_FUN(__glewFreeObjectBufferATI) -#define glGetArrayObjectfvATI GLEW_GET_FUN(__glewGetArrayObjectfvATI) -#define glGetArrayObjectivATI GLEW_GET_FUN(__glewGetArrayObjectivATI) -#define glGetObjectBufferfvATI GLEW_GET_FUN(__glewGetObjectBufferfvATI) -#define glGetObjectBufferivATI GLEW_GET_FUN(__glewGetObjectBufferivATI) -#define glGetVariantArrayObjectfvATI GLEW_GET_FUN(__glewGetVariantArrayObjectfvATI) -#define glGetVariantArrayObjectivATI GLEW_GET_FUN(__glewGetVariantArrayObjectivATI) -#define glIsObjectBufferATI GLEW_GET_FUN(__glewIsObjectBufferATI) -#define glNewObjectBufferATI GLEW_GET_FUN(__glewNewObjectBufferATI) -#define glUpdateObjectBufferATI GLEW_GET_FUN(__glewUpdateObjectBufferATI) -#define glVariantArrayObjectATI GLEW_GET_FUN(__glewVariantArrayObjectATI) - -#define GLEW_ATI_vertex_array_object GLEW_GET_VAR(__GLEW_ATI_vertex_array_object) - -#endif /* GL_ATI_vertex_array_object */ - -/* ------------------- GL_ATI_vertex_attrib_array_object ------------------- */ - -#ifndef GL_ATI_vertex_attrib_array_object -#define GL_ATI_vertex_attrib_array_object 1 - -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC) (GLuint index, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC) (GLuint index, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBARRAYOBJECTATIPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); - -#define glGetVertexAttribArrayObjectfvATI GLEW_GET_FUN(__glewGetVertexAttribArrayObjectfvATI) -#define glGetVertexAttribArrayObjectivATI GLEW_GET_FUN(__glewGetVertexAttribArrayObjectivATI) -#define glVertexAttribArrayObjectATI GLEW_GET_FUN(__glewVertexAttribArrayObjectATI) - -#define GLEW_ATI_vertex_attrib_array_object GLEW_GET_VAR(__GLEW_ATI_vertex_attrib_array_object) - -#endif /* GL_ATI_vertex_attrib_array_object */ - -/* ------------------------- GL_ATI_vertex_streams ------------------------- */ - -#ifndef GL_ATI_vertex_streams -#define GL_ATI_vertex_streams 1 - -#define GL_MAX_VERTEX_STREAMS_ATI 0x876B -#define GL_VERTEX_SOURCE_ATI 0x876C -#define GL_VERTEX_STREAM0_ATI 0x876D -#define GL_VERTEX_STREAM1_ATI 0x876E -#define GL_VERTEX_STREAM2_ATI 0x876F -#define GL_VERTEX_STREAM3_ATI 0x8770 -#define GL_VERTEX_STREAM4_ATI 0x8771 -#define GL_VERTEX_STREAM5_ATI 0x8772 -#define GL_VERTEX_STREAM6_ATI 0x8773 -#define GL_VERTEX_STREAM7_ATI 0x8774 - -typedef void (GLAPIENTRY * PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC) (GLenum stream); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3BATIPROC) (GLenum stream, GLbyte x, GLbyte y, GLbyte z); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3BVATIPROC) (GLenum stream, const GLbyte *v); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3DVATIPROC) (GLenum stream, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3FVATIPROC) (GLenum stream, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3IVATIPROC) (GLenum stream, const GLint *v); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLNORMALSTREAM3SVATIPROC) (GLenum stream, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLVERTEXBLENDENVFATIPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLVERTEXBLENDENVIATIPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2DATIPROC) (GLenum stream, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2DVATIPROC) (GLenum stream, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2FATIPROC) (GLenum stream, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2FVATIPROC) (GLenum stream, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2IATIPROC) (GLenum stream, GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2IVATIPROC) (GLenum stream, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2SATIPROC) (GLenum stream, GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM2SVATIPROC) (GLenum stream, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3DVATIPROC) (GLenum stream, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3FVATIPROC) (GLenum stream, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3IATIPROC) (GLenum stream, GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3IVATIPROC) (GLenum stream, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM3SVATIPROC) (GLenum stream, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4DATIPROC) (GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4DVATIPROC) (GLenum stream, const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4FATIPROC) (GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4FVATIPROC) (GLenum stream, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4IATIPROC) (GLenum stream, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4IVATIPROC) (GLenum stream, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4SATIPROC) (GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (GLAPIENTRY * PFNGLVERTEXSTREAM4SVATIPROC) (GLenum stream, const GLshort *v); - -#define glClientActiveVertexStreamATI GLEW_GET_FUN(__glewClientActiveVertexStreamATI) -#define glNormalStream3bATI GLEW_GET_FUN(__glewNormalStream3bATI) -#define glNormalStream3bvATI GLEW_GET_FUN(__glewNormalStream3bvATI) -#define glNormalStream3dATI GLEW_GET_FUN(__glewNormalStream3dATI) -#define glNormalStream3dvATI GLEW_GET_FUN(__glewNormalStream3dvATI) -#define glNormalStream3fATI GLEW_GET_FUN(__glewNormalStream3fATI) -#define glNormalStream3fvATI GLEW_GET_FUN(__glewNormalStream3fvATI) -#define glNormalStream3iATI GLEW_GET_FUN(__glewNormalStream3iATI) -#define glNormalStream3ivATI GLEW_GET_FUN(__glewNormalStream3ivATI) -#define glNormalStream3sATI GLEW_GET_FUN(__glewNormalStream3sATI) -#define glNormalStream3svATI GLEW_GET_FUN(__glewNormalStream3svATI) -#define glVertexBlendEnvfATI GLEW_GET_FUN(__glewVertexBlendEnvfATI) -#define glVertexBlendEnviATI GLEW_GET_FUN(__glewVertexBlendEnviATI) -#define glVertexStream2dATI GLEW_GET_FUN(__glewVertexStream2dATI) -#define glVertexStream2dvATI GLEW_GET_FUN(__glewVertexStream2dvATI) -#define glVertexStream2fATI GLEW_GET_FUN(__glewVertexStream2fATI) -#define glVertexStream2fvATI GLEW_GET_FUN(__glewVertexStream2fvATI) -#define glVertexStream2iATI GLEW_GET_FUN(__glewVertexStream2iATI) -#define glVertexStream2ivATI GLEW_GET_FUN(__glewVertexStream2ivATI) -#define glVertexStream2sATI GLEW_GET_FUN(__glewVertexStream2sATI) -#define glVertexStream2svATI GLEW_GET_FUN(__glewVertexStream2svATI) -#define glVertexStream3dATI GLEW_GET_FUN(__glewVertexStream3dATI) -#define glVertexStream3dvATI GLEW_GET_FUN(__glewVertexStream3dvATI) -#define glVertexStream3fATI GLEW_GET_FUN(__glewVertexStream3fATI) -#define glVertexStream3fvATI GLEW_GET_FUN(__glewVertexStream3fvATI) -#define glVertexStream3iATI GLEW_GET_FUN(__glewVertexStream3iATI) -#define glVertexStream3ivATI GLEW_GET_FUN(__glewVertexStream3ivATI) -#define glVertexStream3sATI GLEW_GET_FUN(__glewVertexStream3sATI) -#define glVertexStream3svATI GLEW_GET_FUN(__glewVertexStream3svATI) -#define glVertexStream4dATI GLEW_GET_FUN(__glewVertexStream4dATI) -#define glVertexStream4dvATI GLEW_GET_FUN(__glewVertexStream4dvATI) -#define glVertexStream4fATI GLEW_GET_FUN(__glewVertexStream4fATI) -#define glVertexStream4fvATI GLEW_GET_FUN(__glewVertexStream4fvATI) -#define glVertexStream4iATI GLEW_GET_FUN(__glewVertexStream4iATI) -#define glVertexStream4ivATI GLEW_GET_FUN(__glewVertexStream4ivATI) -#define glVertexStream4sATI GLEW_GET_FUN(__glewVertexStream4sATI) -#define glVertexStream4svATI GLEW_GET_FUN(__glewVertexStream4svATI) - -#define GLEW_ATI_vertex_streams GLEW_GET_VAR(__GLEW_ATI_vertex_streams) - -#endif /* GL_ATI_vertex_streams */ - -/* --------------------------- GL_EXT_422_pixels --------------------------- */ - -#ifndef GL_EXT_422_pixels -#define GL_EXT_422_pixels 1 - -#define GL_422_EXT 0x80CC -#define GL_422_REV_EXT 0x80CD -#define GL_422_AVERAGE_EXT 0x80CE -#define GL_422_REV_AVERAGE_EXT 0x80CF - -#define GLEW_EXT_422_pixels GLEW_GET_VAR(__GLEW_EXT_422_pixels) - -#endif /* GL_EXT_422_pixels */ - -/* ---------------------------- GL_EXT_Cg_shader --------------------------- */ - -#ifndef GL_EXT_Cg_shader -#define GL_EXT_Cg_shader 1 - -#define GL_CG_VERTEX_SHADER_EXT 0x890E -#define GL_CG_FRAGMENT_SHADER_EXT 0x890F - -#define GLEW_EXT_Cg_shader GLEW_GET_VAR(__GLEW_EXT_Cg_shader) - -#endif /* GL_EXT_Cg_shader */ - -/* ------------------------------ GL_EXT_abgr ------------------------------ */ - -#ifndef GL_EXT_abgr -#define GL_EXT_abgr 1 - -#define GL_ABGR_EXT 0x8000 - -#define GLEW_EXT_abgr GLEW_GET_VAR(__GLEW_EXT_abgr) - -#endif /* GL_EXT_abgr */ - -/* ------------------------------ GL_EXT_bgra ------------------------------ */ - -#ifndef GL_EXT_bgra -#define GL_EXT_bgra 1 - -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 - -#define GLEW_EXT_bgra GLEW_GET_VAR(__GLEW_EXT_bgra) - -#endif /* GL_EXT_bgra */ - -/* ------------------------ GL_EXT_bindable_uniform ------------------------ */ - -#ifndef GL_EXT_bindable_uniform -#define GL_EXT_bindable_uniform 1 - -#define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2 -#define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3 -#define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4 -#define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT 0x8DED -#define GL_UNIFORM_BUFFER_EXT 0x8DEE -#define GL_UNIFORM_BUFFER_BINDING_EXT 0x8DEF - -typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMBUFFERSIZEEXTPROC) (GLuint program, GLint location); -typedef GLintptr (GLAPIENTRY * PFNGLGETUNIFORMOFFSETEXTPROC) (GLuint program, GLint location); -typedef void (GLAPIENTRY * PFNGLUNIFORMBUFFEREXTPROC) (GLuint program, GLint location, GLuint buffer); - -#define glGetUniformBufferSizeEXT GLEW_GET_FUN(__glewGetUniformBufferSizeEXT) -#define glGetUniformOffsetEXT GLEW_GET_FUN(__glewGetUniformOffsetEXT) -#define glUniformBufferEXT GLEW_GET_FUN(__glewUniformBufferEXT) - -#define GLEW_EXT_bindable_uniform GLEW_GET_VAR(__GLEW_EXT_bindable_uniform) - -#endif /* GL_EXT_bindable_uniform */ - -/* --------------------------- GL_EXT_blend_color -------------------------- */ - -#ifndef GL_EXT_blend_color -#define GL_EXT_blend_color 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); - -#define glBlendColorEXT GLEW_GET_FUN(__glewBlendColorEXT) - -#define GLEW_EXT_blend_color GLEW_GET_VAR(__GLEW_EXT_blend_color) - -#endif /* GL_EXT_blend_color */ - -/* --------------------- GL_EXT_blend_equation_separate -------------------- */ - -#ifndef GL_EXT_blend_equation_separate -#define GL_EXT_blend_equation_separate 1 - -#define GL_BLEND_EQUATION_RGB_EXT 0x8009 -#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D - -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEEXTPROC) (GLenum modeRGB, GLenum modeAlpha); - -#define glBlendEquationSeparateEXT GLEW_GET_FUN(__glewBlendEquationSeparateEXT) - -#define GLEW_EXT_blend_equation_separate GLEW_GET_VAR(__GLEW_EXT_blend_equation_separate) - -#endif /* GL_EXT_blend_equation_separate */ - -/* ----------------------- GL_EXT_blend_func_separate ---------------------- */ - -#ifndef GL_EXT_blend_func_separate -#define GL_EXT_blend_func_separate 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); - -#define glBlendFuncSeparateEXT GLEW_GET_FUN(__glewBlendFuncSeparateEXT) - -#define GLEW_EXT_blend_func_separate GLEW_GET_VAR(__GLEW_EXT_blend_func_separate) - -#endif /* GL_EXT_blend_func_separate */ - -/* ------------------------- GL_EXT_blend_logic_op ------------------------- */ - -#ifndef GL_EXT_blend_logic_op -#define GL_EXT_blend_logic_op 1 - -#define GLEW_EXT_blend_logic_op GLEW_GET_VAR(__GLEW_EXT_blend_logic_op) - -#endif /* GL_EXT_blend_logic_op */ - -/* -------------------------- GL_EXT_blend_minmax -------------------------- */ - -#ifndef GL_EXT_blend_minmax -#define GL_EXT_blend_minmax 1 - -#define GL_FUNC_ADD_EXT 0x8006 -#define GL_MIN_EXT 0x8007 -#define GL_MAX_EXT 0x8008 -#define GL_BLEND_EQUATION_EXT 0x8009 - -typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode); - -#define glBlendEquationEXT GLEW_GET_FUN(__glewBlendEquationEXT) - -#define GLEW_EXT_blend_minmax GLEW_GET_VAR(__GLEW_EXT_blend_minmax) - -#endif /* GL_EXT_blend_minmax */ - -/* ------------------------- GL_EXT_blend_subtract ------------------------- */ - -#ifndef GL_EXT_blend_subtract -#define GL_EXT_blend_subtract 1 - -#define GL_FUNC_SUBTRACT_EXT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B - -#define GLEW_EXT_blend_subtract GLEW_GET_VAR(__GLEW_EXT_blend_subtract) - -#endif /* GL_EXT_blend_subtract */ - -/* ------------------------ GL_EXT_clip_volume_hint ------------------------ */ - -#ifndef GL_EXT_clip_volume_hint -#define GL_EXT_clip_volume_hint 1 - -#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 - -#define GLEW_EXT_clip_volume_hint GLEW_GET_VAR(__GLEW_EXT_clip_volume_hint) - -#endif /* GL_EXT_clip_volume_hint */ - -/* ------------------------------ GL_EXT_cmyka ----------------------------- */ - -#ifndef GL_EXT_cmyka -#define GL_EXT_cmyka 1 - -#define GL_CMYK_EXT 0x800C -#define GL_CMYKA_EXT 0x800D -#define GL_PACK_CMYK_HINT_EXT 0x800E -#define GL_UNPACK_CMYK_HINT_EXT 0x800F - -#define GLEW_EXT_cmyka GLEW_GET_VAR(__GLEW_EXT_cmyka) - -#endif /* GL_EXT_cmyka */ - -/* ------------------------- GL_EXT_color_subtable ------------------------- */ - -#ifndef GL_EXT_color_subtable -#define GL_EXT_color_subtable 1 - -typedef void (GLAPIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void* data); -typedef void (GLAPIENTRY * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); - -#define glColorSubTableEXT GLEW_GET_FUN(__glewColorSubTableEXT) -#define glCopyColorSubTableEXT GLEW_GET_FUN(__glewCopyColorSubTableEXT) - -#define GLEW_EXT_color_subtable GLEW_GET_VAR(__GLEW_EXT_color_subtable) - -#endif /* GL_EXT_color_subtable */ - -/* ---------------------- GL_EXT_compiled_vertex_array --------------------- */ - -#ifndef GL_EXT_compiled_vertex_array -#define GL_EXT_compiled_vertex_array 1 - -#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 -#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 - -typedef void (GLAPIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); -typedef void (GLAPIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void); - -#define glLockArraysEXT GLEW_GET_FUN(__glewLockArraysEXT) -#define glUnlockArraysEXT GLEW_GET_FUN(__glewUnlockArraysEXT) - -#define GLEW_EXT_compiled_vertex_array GLEW_GET_VAR(__GLEW_EXT_compiled_vertex_array) - -#endif /* GL_EXT_compiled_vertex_array */ - -/* --------------------------- GL_EXT_convolution -------------------------- */ - -#ifndef GL_EXT_convolution -#define GL_EXT_convolution 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* image); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* image); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* image); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, void* row, void* column, void* span); -typedef void (GLAPIENTRY * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* row, const void* column); - -#define glConvolutionFilter1DEXT GLEW_GET_FUN(__glewConvolutionFilter1DEXT) -#define glConvolutionFilter2DEXT GLEW_GET_FUN(__glewConvolutionFilter2DEXT) -#define glConvolutionParameterfEXT GLEW_GET_FUN(__glewConvolutionParameterfEXT) -#define glConvolutionParameterfvEXT GLEW_GET_FUN(__glewConvolutionParameterfvEXT) -#define glConvolutionParameteriEXT GLEW_GET_FUN(__glewConvolutionParameteriEXT) -#define glConvolutionParameterivEXT GLEW_GET_FUN(__glewConvolutionParameterivEXT) -#define glCopyConvolutionFilter1DEXT GLEW_GET_FUN(__glewCopyConvolutionFilter1DEXT) -#define glCopyConvolutionFilter2DEXT GLEW_GET_FUN(__glewCopyConvolutionFilter2DEXT) -#define glGetConvolutionFilterEXT GLEW_GET_FUN(__glewGetConvolutionFilterEXT) -#define glGetConvolutionParameterfvEXT GLEW_GET_FUN(__glewGetConvolutionParameterfvEXT) -#define glGetConvolutionParameterivEXT GLEW_GET_FUN(__glewGetConvolutionParameterivEXT) -#define glGetSeparableFilterEXT GLEW_GET_FUN(__glewGetSeparableFilterEXT) -#define glSeparableFilter2DEXT GLEW_GET_FUN(__glewSeparableFilter2DEXT) - -#define GLEW_EXT_convolution GLEW_GET_VAR(__GLEW_EXT_convolution) - -#endif /* GL_EXT_convolution */ - -/* ------------------------ GL_EXT_coordinate_frame ------------------------ */ - -#ifndef GL_EXT_coordinate_frame -#define GL_EXT_coordinate_frame 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBINORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, void* pointer); -typedef void (GLAPIENTRY * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, void* pointer); - -#define glBinormalPointerEXT GLEW_GET_FUN(__glewBinormalPointerEXT) -#define glTangentPointerEXT GLEW_GET_FUN(__glewTangentPointerEXT) - -#define GLEW_EXT_coordinate_frame GLEW_GET_VAR(__GLEW_EXT_coordinate_frame) - -#endif /* GL_EXT_coordinate_frame */ - -/* -------------------------- GL_EXT_copy_texture -------------------------- */ - -#ifndef GL_EXT_copy_texture -#define GL_EXT_copy_texture 1 - -typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); - -#define glCopyTexImage1DEXT GLEW_GET_FUN(__glewCopyTexImage1DEXT) -#define glCopyTexImage2DEXT GLEW_GET_FUN(__glewCopyTexImage2DEXT) -#define glCopyTexSubImage1DEXT GLEW_GET_FUN(__glewCopyTexSubImage1DEXT) -#define glCopyTexSubImage2DEXT GLEW_GET_FUN(__glewCopyTexSubImage2DEXT) -#define glCopyTexSubImage3DEXT GLEW_GET_FUN(__glewCopyTexSubImage3DEXT) - -#define GLEW_EXT_copy_texture GLEW_GET_VAR(__GLEW_EXT_copy_texture) - -#endif /* GL_EXT_copy_texture */ - -/* --------------------------- GL_EXT_cull_vertex -------------------------- */ - -#ifndef GL_EXT_cull_vertex -#define GL_EXT_cull_vertex 1 - -#define GL_CULL_VERTEX_EXT 0x81AA -#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB -#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC - -typedef void (GLAPIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params); - -#define glCullParameterdvEXT GLEW_GET_FUN(__glewCullParameterdvEXT) -#define glCullParameterfvEXT GLEW_GET_FUN(__glewCullParameterfvEXT) - -#define GLEW_EXT_cull_vertex GLEW_GET_VAR(__GLEW_EXT_cull_vertex) - -#endif /* GL_EXT_cull_vertex */ - -/* ------------------------ GL_EXT_depth_bounds_test ----------------------- */ - -#ifndef GL_EXT_depth_bounds_test -#define GL_EXT_depth_bounds_test 1 - -#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 -#define GL_DEPTH_BOUNDS_EXT 0x8891 - -typedef void (GLAPIENTRY * PFNGLDEPTHBOUNDSEXTPROC) (GLclampd zmin, GLclampd zmax); - -#define glDepthBoundsEXT GLEW_GET_FUN(__glewDepthBoundsEXT) - -#define GLEW_EXT_depth_bounds_test GLEW_GET_VAR(__GLEW_EXT_depth_bounds_test) - -#endif /* GL_EXT_depth_bounds_test */ - -/* ----------------------- GL_EXT_direct_state_access ---------------------- */ - -#ifndef GL_EXT_direct_state_access -#define GL_EXT_direct_state_access 1 - -#define GL_PROGRAM_MATRIX_EXT 0x8E2D -#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E -#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F - -typedef void (GLAPIENTRY * PFNGLBINDMULTITEXTUREEXTPROC) (GLenum texunit, GLenum target, GLuint texture); -typedef GLenum (GLAPIENTRY * PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC) (GLuint framebuffer, GLenum target); -typedef void (GLAPIENTRY * PFNGLCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); -typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLCOPYTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (GLAPIENTRY * PFNGLDISABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); -typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); -typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); -typedef void (GLAPIENTRY * PFNGLENABLECLIENTSTATEINDEXEDEXTPROC) (GLenum array, GLuint index); -typedef void (GLAPIENTRY * PFNGLENABLECLIENTSTATEIEXTPROC) (GLenum array, GLuint index); -typedef void (GLAPIENTRY * PFNGLENABLEVERTEXARRAYATTRIBEXTPROC) (GLuint vaobj, GLuint index); -typedef void (GLAPIENTRY * PFNGLENABLEVERTEXARRAYEXTPROC) (GLuint vaobj, GLenum array); -typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC) (GLuint framebuffer, GLsizei n, const GLenum* bufs); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERREADBUFFEREXTPROC) (GLuint framebuffer, GLenum mode); -typedef void (GLAPIENTRY * PFNGLGENERATEMULTITEXMIPMAPEXTPROC) (GLenum texunit, GLenum target); -typedef void (GLAPIENTRY * PFNGLGENERATETEXTUREMIPMAPEXTPROC) (GLuint texture, GLenum target); -typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, void* img); -typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, void* img); -typedef void (GLAPIENTRY * PFNGLGETDOUBLEINDEXEDVEXTPROC) (GLenum target, GLuint index, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETDOUBLEI_VEXTPROC) (GLenum pname, GLuint index, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETFLOATINDEXEDVEXTPROC) (GLenum target, GLuint index, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETFLOATI_VEXTPROC) (GLenum pname, GLuint index, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint* param); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXIMAGEEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC) (GLuint buffer, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPOINTERVEXTPROC) (GLuint buffer, GLenum pname, void** params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void* data); -typedef void (GLAPIENTRY * PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum pname, void* string); -typedef void (GLAPIENTRY * PFNGLGETNAMEDPROGRAMIVEXTPROC) (GLuint program, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC) (GLuint renderbuffer, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETPOINTERINDEXEDVEXTPROC) (GLenum target, GLuint index, GLvoid** params); -typedef void (GLAPIENTRY * PFNGLGETPOINTERI_VEXTPROC) (GLenum pname, GLuint index, GLvoid** params); -typedef void (GLAPIENTRY * PFNGLGETTEXTUREIMAGEEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void* pixels); -typedef void (GLAPIENTRY * PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLint level, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint* param); -typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYINTEGERVEXTPROC) (GLuint vaobj, GLenum pname, GLint* param); -typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC) (GLuint vaobj, GLuint index, GLenum pname, GLvoid** param); -typedef void (GLAPIENTRY * PFNGLGETVERTEXARRAYPOINTERVEXTPROC) (GLuint vaobj, GLenum pname, GLvoid** param); -typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); -typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -typedef void (GLAPIENTRY * PFNGLMATRIXFRUSTUMEXTPROC) (GLenum matrixMode, GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f); -typedef void (GLAPIENTRY * PFNGLMATRIXLOADIDENTITYEXTPROC) (GLenum matrixMode); -typedef void (GLAPIENTRY * PFNGLMATRIXLOADTRANSPOSEDEXTPROC) (GLenum matrixMode, const GLdouble* m); -typedef void (GLAPIENTRY * PFNGLMATRIXLOADTRANSPOSEFEXTPROC) (GLenum matrixMode, const GLfloat* m); -typedef void (GLAPIENTRY * PFNGLMATRIXLOADDEXTPROC) (GLenum matrixMode, const GLdouble* m); -typedef void (GLAPIENTRY * PFNGLMATRIXLOADFEXTPROC) (GLenum matrixMode, const GLfloat* m); -typedef void (GLAPIENTRY * PFNGLMATRIXMULTTRANSPOSEDEXTPROC) (GLenum matrixMode, const GLdouble* m); -typedef void (GLAPIENTRY * PFNGLMATRIXMULTTRANSPOSEFEXTPROC) (GLenum matrixMode, const GLfloat* m); -typedef void (GLAPIENTRY * PFNGLMATRIXMULTDEXTPROC) (GLenum matrixMode, const GLdouble* m); -typedef void (GLAPIENTRY * PFNGLMATRIXMULTFEXTPROC) (GLenum matrixMode, const GLfloat* m); -typedef void (GLAPIENTRY * PFNGLMATRIXORTHOEXTPROC) (GLenum matrixMode, GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f); -typedef void (GLAPIENTRY * PFNGLMATRIXPOPEXTPROC) (GLenum matrixMode); -typedef void (GLAPIENTRY * PFNGLMATRIXPUSHEXTPROC) (GLenum matrixMode); -typedef void (GLAPIENTRY * PFNGLMATRIXROTATEDEXTPROC) (GLenum matrixMode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLMATRIXROTATEFEXTPROC) (GLenum matrixMode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLMATRIXSCALEDEXTPROC) (GLenum matrixMode, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLMATRIXSCALEFEXTPROC) (GLenum matrixMode, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLMATRIXTRANSLATEDEXTPROC) (GLenum matrixMode, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLMATRIXTRANSLATEFEXTPROC) (GLenum matrixMode, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLMULTITEXBUFFEREXTPROC) (GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDPOINTEREXTPROC) (GLenum texunit, GLint size, GLenum type, GLsizei stride, const void* pointer); -typedef void (GLAPIENTRY * PFNGLMULTITEXENVFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLMULTITEXENVFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXENVIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLMULTITEXENVIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENDEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENDVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENFEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENFVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENIEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLMULTITEXGENIVEXTPROC) (GLenum texunit, GLenum coord, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLMULTITEXIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIUIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLuint* params); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERFEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERFVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLfloat* param); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIEXTPROC) (GLenum texunit, GLenum target, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLMULTITEXPARAMETERIVEXTPROC) (GLenum texunit, GLenum target, GLenum pname, const GLint* param); -typedef void (GLAPIENTRY * PFNGLMULTITEXRENDERBUFFEREXTPROC) (GLenum texunit, GLenum target, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE1DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE2DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLMULTITEXSUBIMAGE3DEXTPROC) (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLsizeiptr size, const void* data, GLenum usage); -typedef void (GLAPIENTRY * PFNGLNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data); -typedef void (GLAPIENTRY * PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC) (GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -typedef void (GLAPIENTRY * PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC) (GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC) (GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC) (GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLint* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC) (GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, const GLuint* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLint* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC) (GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint* params); -typedef void (GLAPIENTRY * PFNGLNAMEDPROGRAMSTRINGEXTPROC) (GLuint program, GLenum target, GLenum format, GLsizei len, const void* string); -typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC) (GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); -typedef void (GLAPIENTRY * PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC) (GLbitfield mask); -typedef void (GLAPIENTRY * PFNGLTEXTUREBUFFEREXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIUIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLuint* params); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERFEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERFVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLfloat* param); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIEXTPROC) (GLuint texture, GLenum target, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLTEXTUREPARAMETERIVEXTPROC) (GLuint texture, GLenum target, GLenum pname, const GLint* param); -typedef void (GLAPIENTRY * PFNGLTEXTURERENDERBUFFEREXTPROC) (GLuint texture, GLenum target, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE1DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE2DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXTURESUBIMAGE3DEXTPROC) (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); -typedef GLboolean (GLAPIENTRY * PFNGLUNMAPNAMEDBUFFEREXTPROC) (GLuint buffer); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYINDEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYNORMALOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); - -#define glBindMultiTextureEXT GLEW_GET_FUN(__glewBindMultiTextureEXT) -#define glCheckNamedFramebufferStatusEXT GLEW_GET_FUN(__glewCheckNamedFramebufferStatusEXT) -#define glClientAttribDefaultEXT GLEW_GET_FUN(__glewClientAttribDefaultEXT) -#define glCompressedMultiTexImage1DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage1DEXT) -#define glCompressedMultiTexImage2DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage2DEXT) -#define glCompressedMultiTexImage3DEXT GLEW_GET_FUN(__glewCompressedMultiTexImage3DEXT) -#define glCompressedMultiTexSubImage1DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage1DEXT) -#define glCompressedMultiTexSubImage2DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage2DEXT) -#define glCompressedMultiTexSubImage3DEXT GLEW_GET_FUN(__glewCompressedMultiTexSubImage3DEXT) -#define glCompressedTextureImage1DEXT GLEW_GET_FUN(__glewCompressedTextureImage1DEXT) -#define glCompressedTextureImage2DEXT GLEW_GET_FUN(__glewCompressedTextureImage2DEXT) -#define glCompressedTextureImage3DEXT GLEW_GET_FUN(__glewCompressedTextureImage3DEXT) -#define glCompressedTextureSubImage1DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage1DEXT) -#define glCompressedTextureSubImage2DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage2DEXT) -#define glCompressedTextureSubImage3DEXT GLEW_GET_FUN(__glewCompressedTextureSubImage3DEXT) -#define glCopyMultiTexImage1DEXT GLEW_GET_FUN(__glewCopyMultiTexImage1DEXT) -#define glCopyMultiTexImage2DEXT GLEW_GET_FUN(__glewCopyMultiTexImage2DEXT) -#define glCopyMultiTexSubImage1DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage1DEXT) -#define glCopyMultiTexSubImage2DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage2DEXT) -#define glCopyMultiTexSubImage3DEXT GLEW_GET_FUN(__glewCopyMultiTexSubImage3DEXT) -#define glCopyTextureImage1DEXT GLEW_GET_FUN(__glewCopyTextureImage1DEXT) -#define glCopyTextureImage2DEXT GLEW_GET_FUN(__glewCopyTextureImage2DEXT) -#define glCopyTextureSubImage1DEXT GLEW_GET_FUN(__glewCopyTextureSubImage1DEXT) -#define glCopyTextureSubImage2DEXT GLEW_GET_FUN(__glewCopyTextureSubImage2DEXT) -#define glCopyTextureSubImage3DEXT GLEW_GET_FUN(__glewCopyTextureSubImage3DEXT) -#define glDisableClientStateIndexedEXT GLEW_GET_FUN(__glewDisableClientStateIndexedEXT) -#define glDisableClientStateiEXT GLEW_GET_FUN(__glewDisableClientStateiEXT) -#define glDisableVertexArrayAttribEXT GLEW_GET_FUN(__glewDisableVertexArrayAttribEXT) -#define glDisableVertexArrayEXT GLEW_GET_FUN(__glewDisableVertexArrayEXT) -#define glEnableClientStateIndexedEXT GLEW_GET_FUN(__glewEnableClientStateIndexedEXT) -#define glEnableClientStateiEXT GLEW_GET_FUN(__glewEnableClientStateiEXT) -#define glEnableVertexArrayAttribEXT GLEW_GET_FUN(__glewEnableVertexArrayAttribEXT) -#define glEnableVertexArrayEXT GLEW_GET_FUN(__glewEnableVertexArrayEXT) -#define glFlushMappedNamedBufferRangeEXT GLEW_GET_FUN(__glewFlushMappedNamedBufferRangeEXT) -#define glFramebufferDrawBufferEXT GLEW_GET_FUN(__glewFramebufferDrawBufferEXT) -#define glFramebufferDrawBuffersEXT GLEW_GET_FUN(__glewFramebufferDrawBuffersEXT) -#define glFramebufferReadBufferEXT GLEW_GET_FUN(__glewFramebufferReadBufferEXT) -#define glGenerateMultiTexMipmapEXT GLEW_GET_FUN(__glewGenerateMultiTexMipmapEXT) -#define glGenerateTextureMipmapEXT GLEW_GET_FUN(__glewGenerateTextureMipmapEXT) -#define glGetCompressedMultiTexImageEXT GLEW_GET_FUN(__glewGetCompressedMultiTexImageEXT) -#define glGetCompressedTextureImageEXT GLEW_GET_FUN(__glewGetCompressedTextureImageEXT) -#define glGetDoubleIndexedvEXT GLEW_GET_FUN(__glewGetDoubleIndexedvEXT) -#define glGetDoublei_vEXT GLEW_GET_FUN(__glewGetDoublei_vEXT) -#define glGetFloatIndexedvEXT GLEW_GET_FUN(__glewGetFloatIndexedvEXT) -#define glGetFloati_vEXT GLEW_GET_FUN(__glewGetFloati_vEXT) -#define glGetFramebufferParameterivEXT GLEW_GET_FUN(__glewGetFramebufferParameterivEXT) -#define glGetMultiTexEnvfvEXT GLEW_GET_FUN(__glewGetMultiTexEnvfvEXT) -#define glGetMultiTexEnvivEXT GLEW_GET_FUN(__glewGetMultiTexEnvivEXT) -#define glGetMultiTexGendvEXT GLEW_GET_FUN(__glewGetMultiTexGendvEXT) -#define glGetMultiTexGenfvEXT GLEW_GET_FUN(__glewGetMultiTexGenfvEXT) -#define glGetMultiTexGenivEXT GLEW_GET_FUN(__glewGetMultiTexGenivEXT) -#define glGetMultiTexImageEXT GLEW_GET_FUN(__glewGetMultiTexImageEXT) -#define glGetMultiTexLevelParameterfvEXT GLEW_GET_FUN(__glewGetMultiTexLevelParameterfvEXT) -#define glGetMultiTexLevelParameterivEXT GLEW_GET_FUN(__glewGetMultiTexLevelParameterivEXT) -#define glGetMultiTexParameterIivEXT GLEW_GET_FUN(__glewGetMultiTexParameterIivEXT) -#define glGetMultiTexParameterIuivEXT GLEW_GET_FUN(__glewGetMultiTexParameterIuivEXT) -#define glGetMultiTexParameterfvEXT GLEW_GET_FUN(__glewGetMultiTexParameterfvEXT) -#define glGetMultiTexParameterivEXT GLEW_GET_FUN(__glewGetMultiTexParameterivEXT) -#define glGetNamedBufferParameterivEXT GLEW_GET_FUN(__glewGetNamedBufferParameterivEXT) -#define glGetNamedBufferPointervEXT GLEW_GET_FUN(__glewGetNamedBufferPointervEXT) -#define glGetNamedBufferSubDataEXT GLEW_GET_FUN(__glewGetNamedBufferSubDataEXT) -#define glGetNamedFramebufferAttachmentParameterivEXT GLEW_GET_FUN(__glewGetNamedFramebufferAttachmentParameterivEXT) -#define glGetNamedProgramLocalParameterIivEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterIivEXT) -#define glGetNamedProgramLocalParameterIuivEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterIuivEXT) -#define glGetNamedProgramLocalParameterdvEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterdvEXT) -#define glGetNamedProgramLocalParameterfvEXT GLEW_GET_FUN(__glewGetNamedProgramLocalParameterfvEXT) -#define glGetNamedProgramStringEXT GLEW_GET_FUN(__glewGetNamedProgramStringEXT) -#define glGetNamedProgramivEXT GLEW_GET_FUN(__glewGetNamedProgramivEXT) -#define glGetNamedRenderbufferParameterivEXT GLEW_GET_FUN(__glewGetNamedRenderbufferParameterivEXT) -#define glGetPointerIndexedvEXT GLEW_GET_FUN(__glewGetPointerIndexedvEXT) -#define glGetPointeri_vEXT GLEW_GET_FUN(__glewGetPointeri_vEXT) -#define glGetTextureImageEXT GLEW_GET_FUN(__glewGetTextureImageEXT) -#define glGetTextureLevelParameterfvEXT GLEW_GET_FUN(__glewGetTextureLevelParameterfvEXT) -#define glGetTextureLevelParameterivEXT GLEW_GET_FUN(__glewGetTextureLevelParameterivEXT) -#define glGetTextureParameterIivEXT GLEW_GET_FUN(__glewGetTextureParameterIivEXT) -#define glGetTextureParameterIuivEXT GLEW_GET_FUN(__glewGetTextureParameterIuivEXT) -#define glGetTextureParameterfvEXT GLEW_GET_FUN(__glewGetTextureParameterfvEXT) -#define glGetTextureParameterivEXT GLEW_GET_FUN(__glewGetTextureParameterivEXT) -#define glGetVertexArrayIntegeri_vEXT GLEW_GET_FUN(__glewGetVertexArrayIntegeri_vEXT) -#define glGetVertexArrayIntegervEXT GLEW_GET_FUN(__glewGetVertexArrayIntegervEXT) -#define glGetVertexArrayPointeri_vEXT GLEW_GET_FUN(__glewGetVertexArrayPointeri_vEXT) -#define glGetVertexArrayPointervEXT GLEW_GET_FUN(__glewGetVertexArrayPointervEXT) -#define glMapNamedBufferEXT GLEW_GET_FUN(__glewMapNamedBufferEXT) -#define glMapNamedBufferRangeEXT GLEW_GET_FUN(__glewMapNamedBufferRangeEXT) -#define glMatrixFrustumEXT GLEW_GET_FUN(__glewMatrixFrustumEXT) -#define glMatrixLoadIdentityEXT GLEW_GET_FUN(__glewMatrixLoadIdentityEXT) -#define glMatrixLoadTransposedEXT GLEW_GET_FUN(__glewMatrixLoadTransposedEXT) -#define glMatrixLoadTransposefEXT GLEW_GET_FUN(__glewMatrixLoadTransposefEXT) -#define glMatrixLoaddEXT GLEW_GET_FUN(__glewMatrixLoaddEXT) -#define glMatrixLoadfEXT GLEW_GET_FUN(__glewMatrixLoadfEXT) -#define glMatrixMultTransposedEXT GLEW_GET_FUN(__glewMatrixMultTransposedEXT) -#define glMatrixMultTransposefEXT GLEW_GET_FUN(__glewMatrixMultTransposefEXT) -#define glMatrixMultdEXT GLEW_GET_FUN(__glewMatrixMultdEXT) -#define glMatrixMultfEXT GLEW_GET_FUN(__glewMatrixMultfEXT) -#define glMatrixOrthoEXT GLEW_GET_FUN(__glewMatrixOrthoEXT) -#define glMatrixPopEXT GLEW_GET_FUN(__glewMatrixPopEXT) -#define glMatrixPushEXT GLEW_GET_FUN(__glewMatrixPushEXT) -#define glMatrixRotatedEXT GLEW_GET_FUN(__glewMatrixRotatedEXT) -#define glMatrixRotatefEXT GLEW_GET_FUN(__glewMatrixRotatefEXT) -#define glMatrixScaledEXT GLEW_GET_FUN(__glewMatrixScaledEXT) -#define glMatrixScalefEXT GLEW_GET_FUN(__glewMatrixScalefEXT) -#define glMatrixTranslatedEXT GLEW_GET_FUN(__glewMatrixTranslatedEXT) -#define glMatrixTranslatefEXT GLEW_GET_FUN(__glewMatrixTranslatefEXT) -#define glMultiTexBufferEXT GLEW_GET_FUN(__glewMultiTexBufferEXT) -#define glMultiTexCoordPointerEXT GLEW_GET_FUN(__glewMultiTexCoordPointerEXT) -#define glMultiTexEnvfEXT GLEW_GET_FUN(__glewMultiTexEnvfEXT) -#define glMultiTexEnvfvEXT GLEW_GET_FUN(__glewMultiTexEnvfvEXT) -#define glMultiTexEnviEXT GLEW_GET_FUN(__glewMultiTexEnviEXT) -#define glMultiTexEnvivEXT GLEW_GET_FUN(__glewMultiTexEnvivEXT) -#define glMultiTexGendEXT GLEW_GET_FUN(__glewMultiTexGendEXT) -#define glMultiTexGendvEXT GLEW_GET_FUN(__glewMultiTexGendvEXT) -#define glMultiTexGenfEXT GLEW_GET_FUN(__glewMultiTexGenfEXT) -#define glMultiTexGenfvEXT GLEW_GET_FUN(__glewMultiTexGenfvEXT) -#define glMultiTexGeniEXT GLEW_GET_FUN(__glewMultiTexGeniEXT) -#define glMultiTexGenivEXT GLEW_GET_FUN(__glewMultiTexGenivEXT) -#define glMultiTexImage1DEXT GLEW_GET_FUN(__glewMultiTexImage1DEXT) -#define glMultiTexImage2DEXT GLEW_GET_FUN(__glewMultiTexImage2DEXT) -#define glMultiTexImage3DEXT GLEW_GET_FUN(__glewMultiTexImage3DEXT) -#define glMultiTexParameterIivEXT GLEW_GET_FUN(__glewMultiTexParameterIivEXT) -#define glMultiTexParameterIuivEXT GLEW_GET_FUN(__glewMultiTexParameterIuivEXT) -#define glMultiTexParameterfEXT GLEW_GET_FUN(__glewMultiTexParameterfEXT) -#define glMultiTexParameterfvEXT GLEW_GET_FUN(__glewMultiTexParameterfvEXT) -#define glMultiTexParameteriEXT GLEW_GET_FUN(__glewMultiTexParameteriEXT) -#define glMultiTexParameterivEXT GLEW_GET_FUN(__glewMultiTexParameterivEXT) -#define glMultiTexRenderbufferEXT GLEW_GET_FUN(__glewMultiTexRenderbufferEXT) -#define glMultiTexSubImage1DEXT GLEW_GET_FUN(__glewMultiTexSubImage1DEXT) -#define glMultiTexSubImage2DEXT GLEW_GET_FUN(__glewMultiTexSubImage2DEXT) -#define glMultiTexSubImage3DEXT GLEW_GET_FUN(__glewMultiTexSubImage3DEXT) -#define glNamedBufferDataEXT GLEW_GET_FUN(__glewNamedBufferDataEXT) -#define glNamedBufferSubDataEXT GLEW_GET_FUN(__glewNamedBufferSubDataEXT) -#define glNamedCopyBufferSubDataEXT GLEW_GET_FUN(__glewNamedCopyBufferSubDataEXT) -#define glNamedFramebufferRenderbufferEXT GLEW_GET_FUN(__glewNamedFramebufferRenderbufferEXT) -#define glNamedFramebufferTexture1DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture1DEXT) -#define glNamedFramebufferTexture2DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture2DEXT) -#define glNamedFramebufferTexture3DEXT GLEW_GET_FUN(__glewNamedFramebufferTexture3DEXT) -#define glNamedFramebufferTextureEXT GLEW_GET_FUN(__glewNamedFramebufferTextureEXT) -#define glNamedFramebufferTextureFaceEXT GLEW_GET_FUN(__glewNamedFramebufferTextureFaceEXT) -#define glNamedFramebufferTextureLayerEXT GLEW_GET_FUN(__glewNamedFramebufferTextureLayerEXT) -#define glNamedProgramLocalParameter4dEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4dEXT) -#define glNamedProgramLocalParameter4dvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4dvEXT) -#define glNamedProgramLocalParameter4fEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4fEXT) -#define glNamedProgramLocalParameter4fvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameter4fvEXT) -#define glNamedProgramLocalParameterI4iEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4iEXT) -#define glNamedProgramLocalParameterI4ivEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4ivEXT) -#define glNamedProgramLocalParameterI4uiEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4uiEXT) -#define glNamedProgramLocalParameterI4uivEXT GLEW_GET_FUN(__glewNamedProgramLocalParameterI4uivEXT) -#define glNamedProgramLocalParameters4fvEXT GLEW_GET_FUN(__glewNamedProgramLocalParameters4fvEXT) -#define glNamedProgramLocalParametersI4ivEXT GLEW_GET_FUN(__glewNamedProgramLocalParametersI4ivEXT) -#define glNamedProgramLocalParametersI4uivEXT GLEW_GET_FUN(__glewNamedProgramLocalParametersI4uivEXT) -#define glNamedProgramStringEXT GLEW_GET_FUN(__glewNamedProgramStringEXT) -#define glNamedRenderbufferStorageEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageEXT) -#define glNamedRenderbufferStorageMultisampleCoverageEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageMultisampleCoverageEXT) -#define glNamedRenderbufferStorageMultisampleEXT GLEW_GET_FUN(__glewNamedRenderbufferStorageMultisampleEXT) -#define glProgramUniform1fEXT GLEW_GET_FUN(__glewProgramUniform1fEXT) -#define glProgramUniform1fvEXT GLEW_GET_FUN(__glewProgramUniform1fvEXT) -#define glProgramUniform1iEXT GLEW_GET_FUN(__glewProgramUniform1iEXT) -#define glProgramUniform1ivEXT GLEW_GET_FUN(__glewProgramUniform1ivEXT) -#define glProgramUniform1uiEXT GLEW_GET_FUN(__glewProgramUniform1uiEXT) -#define glProgramUniform1uivEXT GLEW_GET_FUN(__glewProgramUniform1uivEXT) -#define glProgramUniform2fEXT GLEW_GET_FUN(__glewProgramUniform2fEXT) -#define glProgramUniform2fvEXT GLEW_GET_FUN(__glewProgramUniform2fvEXT) -#define glProgramUniform2iEXT GLEW_GET_FUN(__glewProgramUniform2iEXT) -#define glProgramUniform2ivEXT GLEW_GET_FUN(__glewProgramUniform2ivEXT) -#define glProgramUniform2uiEXT GLEW_GET_FUN(__glewProgramUniform2uiEXT) -#define glProgramUniform2uivEXT GLEW_GET_FUN(__glewProgramUniform2uivEXT) -#define glProgramUniform3fEXT GLEW_GET_FUN(__glewProgramUniform3fEXT) -#define glProgramUniform3fvEXT GLEW_GET_FUN(__glewProgramUniform3fvEXT) -#define glProgramUniform3iEXT GLEW_GET_FUN(__glewProgramUniform3iEXT) -#define glProgramUniform3ivEXT GLEW_GET_FUN(__glewProgramUniform3ivEXT) -#define glProgramUniform3uiEXT GLEW_GET_FUN(__glewProgramUniform3uiEXT) -#define glProgramUniform3uivEXT GLEW_GET_FUN(__glewProgramUniform3uivEXT) -#define glProgramUniform4fEXT GLEW_GET_FUN(__glewProgramUniform4fEXT) -#define glProgramUniform4fvEXT GLEW_GET_FUN(__glewProgramUniform4fvEXT) -#define glProgramUniform4iEXT GLEW_GET_FUN(__glewProgramUniform4iEXT) -#define glProgramUniform4ivEXT GLEW_GET_FUN(__glewProgramUniform4ivEXT) -#define glProgramUniform4uiEXT GLEW_GET_FUN(__glewProgramUniform4uiEXT) -#define glProgramUniform4uivEXT GLEW_GET_FUN(__glewProgramUniform4uivEXT) -#define glProgramUniformMatrix2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2fvEXT) -#define glProgramUniformMatrix2x3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x3fvEXT) -#define glProgramUniformMatrix2x4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2x4fvEXT) -#define glProgramUniformMatrix3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3fvEXT) -#define glProgramUniformMatrix3x2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x2fvEXT) -#define glProgramUniformMatrix3x4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3x4fvEXT) -#define glProgramUniformMatrix4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4fvEXT) -#define glProgramUniformMatrix4x2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x2fvEXT) -#define glProgramUniformMatrix4x3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4x3fvEXT) -#define glPushClientAttribDefaultEXT GLEW_GET_FUN(__glewPushClientAttribDefaultEXT) -#define glTextureBufferEXT GLEW_GET_FUN(__glewTextureBufferEXT) -#define glTextureImage1DEXT GLEW_GET_FUN(__glewTextureImage1DEXT) -#define glTextureImage2DEXT GLEW_GET_FUN(__glewTextureImage2DEXT) -#define glTextureImage3DEXT GLEW_GET_FUN(__glewTextureImage3DEXT) -#define glTextureParameterIivEXT GLEW_GET_FUN(__glewTextureParameterIivEXT) -#define glTextureParameterIuivEXT GLEW_GET_FUN(__glewTextureParameterIuivEXT) -#define glTextureParameterfEXT GLEW_GET_FUN(__glewTextureParameterfEXT) -#define glTextureParameterfvEXT GLEW_GET_FUN(__glewTextureParameterfvEXT) -#define glTextureParameteriEXT GLEW_GET_FUN(__glewTextureParameteriEXT) -#define glTextureParameterivEXT GLEW_GET_FUN(__glewTextureParameterivEXT) -#define glTextureRenderbufferEXT GLEW_GET_FUN(__glewTextureRenderbufferEXT) -#define glTextureSubImage1DEXT GLEW_GET_FUN(__glewTextureSubImage1DEXT) -#define glTextureSubImage2DEXT GLEW_GET_FUN(__glewTextureSubImage2DEXT) -#define glTextureSubImage3DEXT GLEW_GET_FUN(__glewTextureSubImage3DEXT) -#define glUnmapNamedBufferEXT GLEW_GET_FUN(__glewUnmapNamedBufferEXT) -#define glVertexArrayColorOffsetEXT GLEW_GET_FUN(__glewVertexArrayColorOffsetEXT) -#define glVertexArrayEdgeFlagOffsetEXT GLEW_GET_FUN(__glewVertexArrayEdgeFlagOffsetEXT) -#define glVertexArrayFogCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayFogCoordOffsetEXT) -#define glVertexArrayIndexOffsetEXT GLEW_GET_FUN(__glewVertexArrayIndexOffsetEXT) -#define glVertexArrayMultiTexCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayMultiTexCoordOffsetEXT) -#define glVertexArrayNormalOffsetEXT GLEW_GET_FUN(__glewVertexArrayNormalOffsetEXT) -#define glVertexArraySecondaryColorOffsetEXT GLEW_GET_FUN(__glewVertexArraySecondaryColorOffsetEXT) -#define glVertexArrayTexCoordOffsetEXT GLEW_GET_FUN(__glewVertexArrayTexCoordOffsetEXT) -#define glVertexArrayVertexAttribIOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribIOffsetEXT) -#define glVertexArrayVertexAttribOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribOffsetEXT) -#define glVertexArrayVertexOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexOffsetEXT) - -#define GLEW_EXT_direct_state_access GLEW_GET_VAR(__GLEW_EXT_direct_state_access) - -#endif /* GL_EXT_direct_state_access */ - -/* -------------------------- GL_EXT_draw_buffers2 ------------------------- */ - -#ifndef GL_EXT_draw_buffers2 -#define GL_EXT_draw_buffers2 1 - -typedef void (GLAPIENTRY * PFNGLCOLORMASKINDEXEDEXTPROC) (GLuint buf, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (GLAPIENTRY * PFNGLDISABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef void (GLAPIENTRY * PFNGLENABLEINDEXEDEXTPROC) (GLenum target, GLuint index); -typedef void (GLAPIENTRY * PFNGLGETBOOLEANINDEXEDVEXTPROC) (GLenum value, GLuint index, GLboolean* data); -typedef void (GLAPIENTRY * PFNGLGETINTEGERINDEXEDVEXTPROC) (GLenum value, GLuint index, GLint* data); -typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDINDEXEDEXTPROC) (GLenum target, GLuint index); - -#define glColorMaskIndexedEXT GLEW_GET_FUN(__glewColorMaskIndexedEXT) -#define glDisableIndexedEXT GLEW_GET_FUN(__glewDisableIndexedEXT) -#define glEnableIndexedEXT GLEW_GET_FUN(__glewEnableIndexedEXT) -#define glGetBooleanIndexedvEXT GLEW_GET_FUN(__glewGetBooleanIndexedvEXT) -#define glGetIntegerIndexedvEXT GLEW_GET_FUN(__glewGetIntegerIndexedvEXT) -#define glIsEnabledIndexedEXT GLEW_GET_FUN(__glewIsEnabledIndexedEXT) - -#define GLEW_EXT_draw_buffers2 GLEW_GET_VAR(__GLEW_EXT_draw_buffers2) - -#endif /* GL_EXT_draw_buffers2 */ - -/* ------------------------- GL_EXT_draw_instanced ------------------------- */ - -#ifndef GL_EXT_draw_instanced -#define GL_EXT_draw_instanced 1 - -typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount); - -#define glDrawArraysInstancedEXT GLEW_GET_FUN(__glewDrawArraysInstancedEXT) -#define glDrawElementsInstancedEXT GLEW_GET_FUN(__glewDrawElementsInstancedEXT) - -#define GLEW_EXT_draw_instanced GLEW_GET_VAR(__GLEW_EXT_draw_instanced) - -#endif /* GL_EXT_draw_instanced */ - -/* ----------------------- GL_EXT_draw_range_elements ---------------------- */ - -#ifndef GL_EXT_draw_range_elements -#define GL_EXT_draw_range_elements 1 - -#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 - -typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); - -#define glDrawRangeElementsEXT GLEW_GET_FUN(__glewDrawRangeElementsEXT) - -#define GLEW_EXT_draw_range_elements GLEW_GET_VAR(__GLEW_EXT_draw_range_elements) - -#endif /* GL_EXT_draw_range_elements */ - -/* ---------------------------- GL_EXT_fog_coord --------------------------- */ - -#ifndef GL_EXT_fog_coord -#define GL_EXT_fog_coord 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (GLAPIENTRY * PFNGLFOGCOORDDEXTPROC) (GLdouble coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDFEXTPROC) (GLfloat coord); -typedef void (GLAPIENTRY * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); - -#define glFogCoordPointerEXT GLEW_GET_FUN(__glewFogCoordPointerEXT) -#define glFogCoorddEXT GLEW_GET_FUN(__glewFogCoorddEXT) -#define glFogCoorddvEXT GLEW_GET_FUN(__glewFogCoorddvEXT) -#define glFogCoordfEXT GLEW_GET_FUN(__glewFogCoordfEXT) -#define glFogCoordfvEXT GLEW_GET_FUN(__glewFogCoordfvEXT) - -#define GLEW_EXT_fog_coord GLEW_GET_VAR(__GLEW_EXT_fog_coord) - -#endif /* GL_EXT_fog_coord */ - -/* ------------------------ GL_EXT_fragment_lighting ----------------------- */ - -#ifndef GL_EXT_fragment_lighting -#define GL_EXT_fragment_lighting 1 - -#define GL_FRAGMENT_LIGHTING_EXT 0x8400 -#define GL_FRAGMENT_COLOR_MATERIAL_EXT 0x8401 -#define GL_FRAGMENT_COLOR_MATERIAL_FACE_EXT 0x8402 -#define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_EXT 0x8403 -#define GL_MAX_FRAGMENT_LIGHTS_EXT 0x8404 -#define GL_MAX_ACTIVE_LIGHTS_EXT 0x8405 -#define GL_CURRENT_RASTER_NORMAL_EXT 0x8406 -#define GL_LIGHT_ENV_MODE_EXT 0x8407 -#define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_EXT 0x8408 -#define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_EXT 0x8409 -#define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_EXT 0x840A -#define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_EXT 0x840B -#define GL_FRAGMENT_LIGHT0_EXT 0x840C -#define GL_FRAGMENT_LIGHT7_EXT 0x8413 - -typedef void (GLAPIENTRY * PFNGLFRAGMENTCOLORMATERIALEXTPROC) (GLenum face, GLenum mode); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFEXTPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVEXTPROC) (GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIEXTPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVEXTPROC) (GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFEXTPROC) (GLenum light, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVEXTPROC) (GLenum light, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIEXTPROC) (GLenum light, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVEXTPROC) (GLenum light, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFEXTPROC) (GLenum face, GLenum pname, const GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFVEXTPROC) (GLenum face, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIEXTPROC) (GLenum face, GLenum pname, const GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIVEXTPROC) (GLenum face, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTFVEXTPROC) (GLenum light, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTIVEXTPROC) (GLenum light, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVEXTPROC) (GLenum face, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVEXTPROC) (GLenum face, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLLIGHTENVIEXTPROC) (GLenum pname, GLint param); - -#define glFragmentColorMaterialEXT GLEW_GET_FUN(__glewFragmentColorMaterialEXT) -#define glFragmentLightModelfEXT GLEW_GET_FUN(__glewFragmentLightModelfEXT) -#define glFragmentLightModelfvEXT GLEW_GET_FUN(__glewFragmentLightModelfvEXT) -#define glFragmentLightModeliEXT GLEW_GET_FUN(__glewFragmentLightModeliEXT) -#define glFragmentLightModelivEXT GLEW_GET_FUN(__glewFragmentLightModelivEXT) -#define glFragmentLightfEXT GLEW_GET_FUN(__glewFragmentLightfEXT) -#define glFragmentLightfvEXT GLEW_GET_FUN(__glewFragmentLightfvEXT) -#define glFragmentLightiEXT GLEW_GET_FUN(__glewFragmentLightiEXT) -#define glFragmentLightivEXT GLEW_GET_FUN(__glewFragmentLightivEXT) -#define glFragmentMaterialfEXT GLEW_GET_FUN(__glewFragmentMaterialfEXT) -#define glFragmentMaterialfvEXT GLEW_GET_FUN(__glewFragmentMaterialfvEXT) -#define glFragmentMaterialiEXT GLEW_GET_FUN(__glewFragmentMaterialiEXT) -#define glFragmentMaterialivEXT GLEW_GET_FUN(__glewFragmentMaterialivEXT) -#define glGetFragmentLightfvEXT GLEW_GET_FUN(__glewGetFragmentLightfvEXT) -#define glGetFragmentLightivEXT GLEW_GET_FUN(__glewGetFragmentLightivEXT) -#define glGetFragmentMaterialfvEXT GLEW_GET_FUN(__glewGetFragmentMaterialfvEXT) -#define glGetFragmentMaterialivEXT GLEW_GET_FUN(__glewGetFragmentMaterialivEXT) -#define glLightEnviEXT GLEW_GET_FUN(__glewLightEnviEXT) - -#define GLEW_EXT_fragment_lighting GLEW_GET_VAR(__GLEW_EXT_fragment_lighting) - -#endif /* GL_EXT_fragment_lighting */ - -/* ------------------------ GL_EXT_framebuffer_blit ------------------------ */ - -#ifndef GL_EXT_framebuffer_blit -#define GL_EXT_framebuffer_blit 1 - -#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 -#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA - -typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFEREXTPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); - -#define glBlitFramebufferEXT GLEW_GET_FUN(__glewBlitFramebufferEXT) - -#define GLEW_EXT_framebuffer_blit GLEW_GET_VAR(__GLEW_EXT_framebuffer_blit) - -#endif /* GL_EXT_framebuffer_blit */ - -/* --------------------- GL_EXT_framebuffer_multisample -------------------- */ - -#ifndef GL_EXT_framebuffer_multisample -#define GL_EXT_framebuffer_multisample 1 - -#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 -#define GL_MAX_SAMPLES_EXT 0x8D57 - -typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); - -#define glRenderbufferStorageMultisampleEXT GLEW_GET_FUN(__glewRenderbufferStorageMultisampleEXT) - -#define GLEW_EXT_framebuffer_multisample GLEW_GET_VAR(__GLEW_EXT_framebuffer_multisample) - -#endif /* GL_EXT_framebuffer_multisample */ - -/* ----------------------- GL_EXT_framebuffer_object ----------------------- */ - -#ifndef GL_EXT_framebuffer_object -#define GL_EXT_framebuffer_object 1 - -#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_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 - -typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFEREXTPROC) (GLenum target, GLuint framebuffer); -typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFEREXTPROC) (GLenum target, GLuint renderbuffer); -typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSEXTPROC) (GLsizei n, const GLuint* framebuffers); -typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSEXTPROC) (GLsizei n, const GLuint* renderbuffers); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSEXTPROC) (GLsizei n, GLuint* framebuffers); -typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSEXTPROC) (GLsizei n, GLuint* renderbuffers); -typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPEXTPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFEREXTPROC) (GLuint framebuffer); -typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFEREXTPROC) (GLuint renderbuffer); -typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); - -#define glBindFramebufferEXT GLEW_GET_FUN(__glewBindFramebufferEXT) -#define glBindRenderbufferEXT GLEW_GET_FUN(__glewBindRenderbufferEXT) -#define glCheckFramebufferStatusEXT GLEW_GET_FUN(__glewCheckFramebufferStatusEXT) -#define glDeleteFramebuffersEXT GLEW_GET_FUN(__glewDeleteFramebuffersEXT) -#define glDeleteRenderbuffersEXT GLEW_GET_FUN(__glewDeleteRenderbuffersEXT) -#define glFramebufferRenderbufferEXT GLEW_GET_FUN(__glewFramebufferRenderbufferEXT) -#define glFramebufferTexture1DEXT GLEW_GET_FUN(__glewFramebufferTexture1DEXT) -#define glFramebufferTexture2DEXT GLEW_GET_FUN(__glewFramebufferTexture2DEXT) -#define glFramebufferTexture3DEXT GLEW_GET_FUN(__glewFramebufferTexture3DEXT) -#define glGenFramebuffersEXT GLEW_GET_FUN(__glewGenFramebuffersEXT) -#define glGenRenderbuffersEXT GLEW_GET_FUN(__glewGenRenderbuffersEXT) -#define glGenerateMipmapEXT GLEW_GET_FUN(__glewGenerateMipmapEXT) -#define glGetFramebufferAttachmentParameterivEXT GLEW_GET_FUN(__glewGetFramebufferAttachmentParameterivEXT) -#define glGetRenderbufferParameterivEXT GLEW_GET_FUN(__glewGetRenderbufferParameterivEXT) -#define glIsFramebufferEXT GLEW_GET_FUN(__glewIsFramebufferEXT) -#define glIsRenderbufferEXT GLEW_GET_FUN(__glewIsRenderbufferEXT) -#define glRenderbufferStorageEXT GLEW_GET_FUN(__glewRenderbufferStorageEXT) - -#define GLEW_EXT_framebuffer_object GLEW_GET_VAR(__GLEW_EXT_framebuffer_object) - -#endif /* GL_EXT_framebuffer_object */ - -/* ------------------------ GL_EXT_framebuffer_sRGB ------------------------ */ - -#ifndef GL_EXT_framebuffer_sRGB -#define GL_EXT_framebuffer_sRGB 1 - -#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 -#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA - -#define GLEW_EXT_framebuffer_sRGB GLEW_GET_VAR(__GLEW_EXT_framebuffer_sRGB) - -#endif /* GL_EXT_framebuffer_sRGB */ - -/* ------------------------ GL_EXT_geometry_shader4 ------------------------ */ - -#ifndef GL_EXT_geometry_shader4 -#define GL_EXT_geometry_shader4 1 - -#define GL_LINES_ADJACENCY_EXT 0xA -#define GL_LINE_STRIP_ADJACENCY_EXT 0xB -#define GL_TRIANGLES_ADJACENCY_EXT 0xC -#define GL_TRIANGLE_STRIP_ADJACENCY_EXT 0xD -#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 -#define GL_MAX_VARYING_COMPONENTS_EXT 0x8B4B -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 -#define GL_GEOMETRY_SHADER_EXT 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA -#define GL_GEOMETRY_INPUT_TYPE_EXT 0x8DDB -#define GL_GEOMETRY_OUTPUT_TYPE_EXT 0x8DDC -#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD -#define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1 - -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value); - -#define glFramebufferTextureEXT GLEW_GET_FUN(__glewFramebufferTextureEXT) -#define glFramebufferTextureFaceEXT GLEW_GET_FUN(__glewFramebufferTextureFaceEXT) -#define glProgramParameteriEXT GLEW_GET_FUN(__glewProgramParameteriEXT) - -#define GLEW_EXT_geometry_shader4 GLEW_GET_VAR(__GLEW_EXT_geometry_shader4) - -#endif /* GL_EXT_geometry_shader4 */ - -/* --------------------- GL_EXT_gpu_program_parameters --------------------- */ - -#ifndef GL_EXT_gpu_program_parameters -#define GL_EXT_gpu_program_parameters 1 - -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat* params); - -#define glProgramEnvParameters4fvEXT GLEW_GET_FUN(__glewProgramEnvParameters4fvEXT) -#define glProgramLocalParameters4fvEXT GLEW_GET_FUN(__glewProgramLocalParameters4fvEXT) - -#define GLEW_EXT_gpu_program_parameters GLEW_GET_VAR(__GLEW_EXT_gpu_program_parameters) - -#endif /* GL_EXT_gpu_program_parameters */ - -/* --------------------------- GL_EXT_gpu_shader4 -------------------------- */ - -#ifndef GL_EXT_gpu_shader4 -#define GL_EXT_gpu_shader4 1 - -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD -#define GL_SAMPLER_1D_ARRAY_EXT 0x8DC0 -#define GL_SAMPLER_2D_ARRAY_EXT 0x8DC1 -#define GL_SAMPLER_BUFFER_EXT 0x8DC2 -#define GL_SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3 -#define GL_SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW_EXT 0x8DC5 -#define GL_UNSIGNED_INT_VEC2_EXT 0x8DC6 -#define GL_UNSIGNED_INT_VEC3_EXT 0x8DC7 -#define GL_UNSIGNED_INT_VEC4_EXT 0x8DC8 -#define GL_INT_SAMPLER_1D_EXT 0x8DC9 -#define GL_INT_SAMPLER_2D_EXT 0x8DCA -#define GL_INT_SAMPLER_3D_EXT 0x8DCB -#define GL_INT_SAMPLER_CUBE_EXT 0x8DCC -#define GL_INT_SAMPLER_2D_RECT_EXT 0x8DCD -#define GL_INT_SAMPLER_1D_ARRAY_EXT 0x8DCE -#define GL_INT_SAMPLER_2D_ARRAY_EXT 0x8DCF -#define GL_INT_SAMPLER_BUFFER_EXT 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1 -#define GL_UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2 -#define GL_UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3 -#define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6 -#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8 - -typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONEXTPROC) (GLuint program, const GLchar *name); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVEXTPROC) (GLuint program, GLint location, GLuint *params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVEXTPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVEXTPROC) (GLuint index, GLenum pname, GLuint *params); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UIEXTPROC) (GLint location, GLuint v0); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UIEXTPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UIEXTPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVEXTPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IEXTPROC) (GLuint index, GLint x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVEXTPROC) (GLuint index, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIEXTPROC) (GLuint index, GLuint x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IEXTPROC) (GLuint index, GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVEXTPROC) (GLuint index, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIEXTPROC) (GLuint index, GLuint x, GLuint y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IEXTPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVEXTPROC) (GLuint index, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVEXTPROC) (GLuint index, const GLbyte *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IEXTPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVEXTPROC) (GLuint index, const GLint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVEXTPROC) (GLuint index, const GLshort *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVEXTPROC) (GLuint index, const GLubyte *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIEXTPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVEXTPROC) (GLuint index, const GLuint *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVEXTPROC) (GLuint index, const GLushort *v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); - -#define glBindFragDataLocationEXT GLEW_GET_FUN(__glewBindFragDataLocationEXT) -#define glGetFragDataLocationEXT GLEW_GET_FUN(__glewGetFragDataLocationEXT) -#define glGetUniformuivEXT GLEW_GET_FUN(__glewGetUniformuivEXT) -#define glGetVertexAttribIivEXT GLEW_GET_FUN(__glewGetVertexAttribIivEXT) -#define glGetVertexAttribIuivEXT GLEW_GET_FUN(__glewGetVertexAttribIuivEXT) -#define glUniform1uiEXT GLEW_GET_FUN(__glewUniform1uiEXT) -#define glUniform1uivEXT GLEW_GET_FUN(__glewUniform1uivEXT) -#define glUniform2uiEXT GLEW_GET_FUN(__glewUniform2uiEXT) -#define glUniform2uivEXT GLEW_GET_FUN(__glewUniform2uivEXT) -#define glUniform3uiEXT GLEW_GET_FUN(__glewUniform3uiEXT) -#define glUniform3uivEXT GLEW_GET_FUN(__glewUniform3uivEXT) -#define glUniform4uiEXT GLEW_GET_FUN(__glewUniform4uiEXT) -#define glUniform4uivEXT GLEW_GET_FUN(__glewUniform4uivEXT) -#define glVertexAttribI1iEXT GLEW_GET_FUN(__glewVertexAttribI1iEXT) -#define glVertexAttribI1ivEXT GLEW_GET_FUN(__glewVertexAttribI1ivEXT) -#define glVertexAttribI1uiEXT GLEW_GET_FUN(__glewVertexAttribI1uiEXT) -#define glVertexAttribI1uivEXT GLEW_GET_FUN(__glewVertexAttribI1uivEXT) -#define glVertexAttribI2iEXT GLEW_GET_FUN(__glewVertexAttribI2iEXT) -#define glVertexAttribI2ivEXT GLEW_GET_FUN(__glewVertexAttribI2ivEXT) -#define glVertexAttribI2uiEXT GLEW_GET_FUN(__glewVertexAttribI2uiEXT) -#define glVertexAttribI2uivEXT GLEW_GET_FUN(__glewVertexAttribI2uivEXT) -#define glVertexAttribI3iEXT GLEW_GET_FUN(__glewVertexAttribI3iEXT) -#define glVertexAttribI3ivEXT GLEW_GET_FUN(__glewVertexAttribI3ivEXT) -#define glVertexAttribI3uiEXT GLEW_GET_FUN(__glewVertexAttribI3uiEXT) -#define glVertexAttribI3uivEXT GLEW_GET_FUN(__glewVertexAttribI3uivEXT) -#define glVertexAttribI4bvEXT GLEW_GET_FUN(__glewVertexAttribI4bvEXT) -#define glVertexAttribI4iEXT GLEW_GET_FUN(__glewVertexAttribI4iEXT) -#define glVertexAttribI4ivEXT GLEW_GET_FUN(__glewVertexAttribI4ivEXT) -#define glVertexAttribI4svEXT GLEW_GET_FUN(__glewVertexAttribI4svEXT) -#define glVertexAttribI4ubvEXT GLEW_GET_FUN(__glewVertexAttribI4ubvEXT) -#define glVertexAttribI4uiEXT GLEW_GET_FUN(__glewVertexAttribI4uiEXT) -#define glVertexAttribI4uivEXT GLEW_GET_FUN(__glewVertexAttribI4uivEXT) -#define glVertexAttribI4usvEXT GLEW_GET_FUN(__glewVertexAttribI4usvEXT) -#define glVertexAttribIPointerEXT GLEW_GET_FUN(__glewVertexAttribIPointerEXT) - -#define GLEW_EXT_gpu_shader4 GLEW_GET_VAR(__GLEW_EXT_gpu_shader4) - -#endif /* GL_EXT_gpu_shader4 */ - -/* ---------------------------- GL_EXT_histogram --------------------------- */ - -#ifndef GL_EXT_histogram -#define GL_EXT_histogram 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void* values); -typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (GLAPIENTRY * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (GLAPIENTRY * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLRESETMINMAXEXTPROC) (GLenum target); - -#define glGetHistogramEXT GLEW_GET_FUN(__glewGetHistogramEXT) -#define glGetHistogramParameterfvEXT GLEW_GET_FUN(__glewGetHistogramParameterfvEXT) -#define glGetHistogramParameterivEXT GLEW_GET_FUN(__glewGetHistogramParameterivEXT) -#define glGetMinmaxEXT GLEW_GET_FUN(__glewGetMinmaxEXT) -#define glGetMinmaxParameterfvEXT GLEW_GET_FUN(__glewGetMinmaxParameterfvEXT) -#define glGetMinmaxParameterivEXT GLEW_GET_FUN(__glewGetMinmaxParameterivEXT) -#define glHistogramEXT GLEW_GET_FUN(__glewHistogramEXT) -#define glMinmaxEXT GLEW_GET_FUN(__glewMinmaxEXT) -#define glResetHistogramEXT GLEW_GET_FUN(__glewResetHistogramEXT) -#define glResetMinmaxEXT GLEW_GET_FUN(__glewResetMinmaxEXT) - -#define GLEW_EXT_histogram GLEW_GET_VAR(__GLEW_EXT_histogram) - -#endif /* GL_EXT_histogram */ - -/* ----------------------- GL_EXT_index_array_formats ---------------------- */ - -#ifndef GL_EXT_index_array_formats -#define GL_EXT_index_array_formats 1 - -#define GLEW_EXT_index_array_formats GLEW_GET_VAR(__GLEW_EXT_index_array_formats) - -#endif /* GL_EXT_index_array_formats */ - -/* --------------------------- GL_EXT_index_func --------------------------- */ - -#ifndef GL_EXT_index_func -#define GL_EXT_index_func 1 - -typedef void (GLAPIENTRY * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLfloat ref); - -#define glIndexFuncEXT GLEW_GET_FUN(__glewIndexFuncEXT) - -#define GLEW_EXT_index_func GLEW_GET_VAR(__GLEW_EXT_index_func) - -#endif /* GL_EXT_index_func */ - -/* ------------------------- GL_EXT_index_material ------------------------- */ - -#ifndef GL_EXT_index_material -#define GL_EXT_index_material 1 - -typedef void (GLAPIENTRY * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); - -#define glIndexMaterialEXT GLEW_GET_FUN(__glewIndexMaterialEXT) - -#define GLEW_EXT_index_material GLEW_GET_VAR(__GLEW_EXT_index_material) - -#endif /* GL_EXT_index_material */ - -/* -------------------------- GL_EXT_index_texture ------------------------- */ - -#ifndef GL_EXT_index_texture -#define GL_EXT_index_texture 1 - -#define GLEW_EXT_index_texture GLEW_GET_VAR(__GLEW_EXT_index_texture) - -#endif /* GL_EXT_index_texture */ - -/* -------------------------- GL_EXT_light_texture ------------------------- */ - -#ifndef GL_EXT_light_texture -#define GL_EXT_light_texture 1 - -#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 -#define GL_FRAGMENT_DEPTH_EXT 0x8452 - -typedef void (GLAPIENTRY * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); -typedef void (GLAPIENTRY * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); -typedef void (GLAPIENTRY * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode); - -#define glApplyTextureEXT GLEW_GET_FUN(__glewApplyTextureEXT) -#define glTextureLightEXT GLEW_GET_FUN(__glewTextureLightEXT) -#define glTextureMaterialEXT GLEW_GET_FUN(__glewTextureMaterialEXT) - -#define GLEW_EXT_light_texture GLEW_GET_VAR(__GLEW_EXT_light_texture) - -#endif /* GL_EXT_light_texture */ - -/* ------------------------- GL_EXT_misc_attribute ------------------------- */ - -#ifndef GL_EXT_misc_attribute -#define GL_EXT_misc_attribute 1 - -#define GLEW_EXT_misc_attribute GLEW_GET_VAR(__GLEW_EXT_misc_attribute) - -#endif /* GL_EXT_misc_attribute */ - -/* ------------------------ GL_EXT_multi_draw_arrays ----------------------- */ - -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 - -typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount); -typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, GLsizei* count, GLenum type, const GLvoid **indices, GLsizei primcount); - -#define glMultiDrawArraysEXT GLEW_GET_FUN(__glewMultiDrawArraysEXT) -#define glMultiDrawElementsEXT GLEW_GET_FUN(__glewMultiDrawElementsEXT) - -#define GLEW_EXT_multi_draw_arrays GLEW_GET_VAR(__GLEW_EXT_multi_draw_arrays) - -#endif /* GL_EXT_multi_draw_arrays */ - -/* --------------------------- GL_EXT_multisample -------------------------- */ - -#ifndef GL_EXT_multisample -#define GL_EXT_multisample 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); -typedef void (GLAPIENTRY * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); - -#define glSampleMaskEXT GLEW_GET_FUN(__glewSampleMaskEXT) -#define glSamplePatternEXT GLEW_GET_FUN(__glewSamplePatternEXT) - -#define GLEW_EXT_multisample GLEW_GET_VAR(__GLEW_EXT_multisample) - -#endif /* GL_EXT_multisample */ - -/* ---------------------- GL_EXT_packed_depth_stencil ---------------------- */ - -#ifndef GL_EXT_packed_depth_stencil -#define GL_EXT_packed_depth_stencil 1 - -#define GL_DEPTH_STENCIL_EXT 0x84F9 -#define GL_UNSIGNED_INT_24_8_EXT 0x84FA -#define GL_DEPTH24_STENCIL8_EXT 0x88F0 -#define GL_TEXTURE_STENCIL_SIZE_EXT 0x88F1 - -#define GLEW_EXT_packed_depth_stencil GLEW_GET_VAR(__GLEW_EXT_packed_depth_stencil) - -#endif /* GL_EXT_packed_depth_stencil */ - -/* -------------------------- GL_EXT_packed_float -------------------------- */ - -#ifndef GL_EXT_packed_float -#define GL_EXT_packed_float 1 - -#define GL_R11F_G11F_B10F_EXT 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B -#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C - -#define GLEW_EXT_packed_float GLEW_GET_VAR(__GLEW_EXT_packed_float) - -#endif /* GL_EXT_packed_float */ - -/* -------------------------- GL_EXT_packed_pixels ------------------------- */ - -#ifndef GL_EXT_packed_pixels -#define GL_EXT_packed_pixels 1 - -#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 - -#define GLEW_EXT_packed_pixels GLEW_GET_VAR(__GLEW_EXT_packed_pixels) - -#endif /* GL_EXT_packed_pixels */ - -/* ------------------------ GL_EXT_paletted_texture ------------------------ */ - -#ifndef GL_EXT_paletted_texture -#define GL_EXT_paletted_texture 1 - -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_TEXTURE_3D_EXT 0x806F -#define GL_PROXY_TEXTURE_3D_EXT 0x8070 -#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 -#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF -#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 -#define GL_TEXTURE_CUBE_MAP_ARB 0x8513 -#define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B - -typedef void (GLAPIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void* data); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, void* data); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint* params); - -#define glColorTableEXT GLEW_GET_FUN(__glewColorTableEXT) -#define glGetColorTableEXT GLEW_GET_FUN(__glewGetColorTableEXT) -#define glGetColorTableParameterfvEXT GLEW_GET_FUN(__glewGetColorTableParameterfvEXT) -#define glGetColorTableParameterivEXT GLEW_GET_FUN(__glewGetColorTableParameterivEXT) - -#define GLEW_EXT_paletted_texture GLEW_GET_VAR(__GLEW_EXT_paletted_texture) - -#endif /* GL_EXT_paletted_texture */ - -/* ----------------------- GL_EXT_pixel_buffer_object ---------------------- */ - -#ifndef GL_EXT_pixel_buffer_object -#define GL_EXT_pixel_buffer_object 1 - -#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 - -#define GLEW_EXT_pixel_buffer_object GLEW_GET_VAR(__GLEW_EXT_pixel_buffer_object) - -#endif /* GL_EXT_pixel_buffer_object */ - -/* ------------------------- GL_EXT_pixel_transform ------------------------ */ - -#ifndef GL_EXT_pixel_transform -#define GL_EXT_pixel_transform 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, const GLfloat param); -typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, const GLint param); -typedef void (GLAPIENTRY * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint* params); - -#define glGetPixelTransformParameterfvEXT GLEW_GET_FUN(__glewGetPixelTransformParameterfvEXT) -#define glGetPixelTransformParameterivEXT GLEW_GET_FUN(__glewGetPixelTransformParameterivEXT) -#define glPixelTransformParameterfEXT GLEW_GET_FUN(__glewPixelTransformParameterfEXT) -#define glPixelTransformParameterfvEXT GLEW_GET_FUN(__glewPixelTransformParameterfvEXT) -#define glPixelTransformParameteriEXT GLEW_GET_FUN(__glewPixelTransformParameteriEXT) -#define glPixelTransformParameterivEXT GLEW_GET_FUN(__glewPixelTransformParameterivEXT) - -#define GLEW_EXT_pixel_transform GLEW_GET_VAR(__GLEW_EXT_pixel_transform) - -#endif /* GL_EXT_pixel_transform */ - -/* ------------------- GL_EXT_pixel_transform_color_table ------------------ */ - -#ifndef GL_EXT_pixel_transform_color_table -#define GL_EXT_pixel_transform_color_table 1 - -#define GLEW_EXT_pixel_transform_color_table GLEW_GET_VAR(__GLEW_EXT_pixel_transform_color_table) - -#endif /* GL_EXT_pixel_transform_color_table */ - -/* ------------------------ GL_EXT_point_parameters ------------------------ */ - -#ifndef GL_EXT_point_parameters -#define GL_EXT_point_parameters 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat* params); - -#define glPointParameterfEXT GLEW_GET_FUN(__glewPointParameterfEXT) -#define glPointParameterfvEXT GLEW_GET_FUN(__glewPointParameterfvEXT) - -#define GLEW_EXT_point_parameters GLEW_GET_VAR(__GLEW_EXT_point_parameters) - -#endif /* GL_EXT_point_parameters */ - -/* ------------------------- GL_EXT_polygon_offset ------------------------- */ - -#ifndef GL_EXT_polygon_offset -#define GL_EXT_polygon_offset 1 - -#define GL_POLYGON_OFFSET_EXT 0x8037 -#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 -#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 - -typedef void (GLAPIENTRY * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias); - -#define glPolygonOffsetEXT GLEW_GET_FUN(__glewPolygonOffsetEXT) - -#define GLEW_EXT_polygon_offset GLEW_GET_VAR(__GLEW_EXT_polygon_offset) - -#endif /* GL_EXT_polygon_offset */ - -/* ------------------------ GL_EXT_provoking_vertex ------------------------ */ - -#ifndef GL_EXT_provoking_vertex -#define GL_EXT_provoking_vertex 1 - -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D -#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E -#define GL_PROVOKING_VERTEX_EXT 0x8E4F - -typedef void (GLAPIENTRY * PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode); - -#define glProvokingVertexEXT GLEW_GET_FUN(__glewProvokingVertexEXT) - -#define GLEW_EXT_provoking_vertex GLEW_GET_VAR(__GLEW_EXT_provoking_vertex) - -#endif /* GL_EXT_provoking_vertex */ - -/* ------------------------- GL_EXT_rescale_normal ------------------------- */ - -#ifndef GL_EXT_rescale_normal -#define GL_EXT_rescale_normal 1 - -#define GL_RESCALE_NORMAL_EXT 0x803A - -#define GLEW_EXT_rescale_normal GLEW_GET_VAR(__GLEW_EXT_rescale_normal) - -#endif /* GL_EXT_rescale_normal */ - -/* -------------------------- GL_EXT_scene_marker -------------------------- */ - -#ifndef GL_EXT_scene_marker -#define GL_EXT_scene_marker 1 - -typedef void (GLAPIENTRY * PFNGLBEGINSCENEEXTPROC) (void); -typedef void (GLAPIENTRY * PFNGLENDSCENEEXTPROC) (void); - -#define glBeginSceneEXT GLEW_GET_FUN(__glewBeginSceneEXT) -#define glEndSceneEXT GLEW_GET_FUN(__glewEndSceneEXT) - -#define GLEW_EXT_scene_marker GLEW_GET_VAR(__GLEW_EXT_scene_marker) - -#endif /* GL_EXT_scene_marker */ - -/* ------------------------- GL_EXT_secondary_color ------------------------ */ - -#ifndef GL_EXT_secondary_color -#define GL_EXT_secondary_color 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); - -#define glSecondaryColor3bEXT GLEW_GET_FUN(__glewSecondaryColor3bEXT) -#define glSecondaryColor3bvEXT GLEW_GET_FUN(__glewSecondaryColor3bvEXT) -#define glSecondaryColor3dEXT GLEW_GET_FUN(__glewSecondaryColor3dEXT) -#define glSecondaryColor3dvEXT GLEW_GET_FUN(__glewSecondaryColor3dvEXT) -#define glSecondaryColor3fEXT GLEW_GET_FUN(__glewSecondaryColor3fEXT) -#define glSecondaryColor3fvEXT GLEW_GET_FUN(__glewSecondaryColor3fvEXT) -#define glSecondaryColor3iEXT GLEW_GET_FUN(__glewSecondaryColor3iEXT) -#define glSecondaryColor3ivEXT GLEW_GET_FUN(__glewSecondaryColor3ivEXT) -#define glSecondaryColor3sEXT GLEW_GET_FUN(__glewSecondaryColor3sEXT) -#define glSecondaryColor3svEXT GLEW_GET_FUN(__glewSecondaryColor3svEXT) -#define glSecondaryColor3ubEXT GLEW_GET_FUN(__glewSecondaryColor3ubEXT) -#define glSecondaryColor3ubvEXT GLEW_GET_FUN(__glewSecondaryColor3ubvEXT) -#define glSecondaryColor3uiEXT GLEW_GET_FUN(__glewSecondaryColor3uiEXT) -#define glSecondaryColor3uivEXT GLEW_GET_FUN(__glewSecondaryColor3uivEXT) -#define glSecondaryColor3usEXT GLEW_GET_FUN(__glewSecondaryColor3usEXT) -#define glSecondaryColor3usvEXT GLEW_GET_FUN(__glewSecondaryColor3usvEXT) -#define glSecondaryColorPointerEXT GLEW_GET_FUN(__glewSecondaryColorPointerEXT) - -#define GLEW_EXT_secondary_color GLEW_GET_VAR(__GLEW_EXT_secondary_color) - -#endif /* GL_EXT_secondary_color */ - -/* --------------------- GL_EXT_separate_shader_objects -------------------- */ - -#ifndef GL_EXT_separate_shader_objects -#define GL_EXT_separate_shader_objects 1 - -#define GL_ACTIVE_PROGRAM_EXT 0x8B8D - -typedef void (GLAPIENTRY * PFNGLACTIVEPROGRAMEXTPROC) (GLuint program); -typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROGRAMEXTPROC) (GLenum type, const char* string); -typedef void (GLAPIENTRY * PFNGLUSESHADERPROGRAMEXTPROC) (GLenum type, GLuint program); - -#define glActiveProgramEXT GLEW_GET_FUN(__glewActiveProgramEXT) -#define glCreateShaderProgramEXT GLEW_GET_FUN(__glewCreateShaderProgramEXT) -#define glUseShaderProgramEXT GLEW_GET_FUN(__glewUseShaderProgramEXT) - -#define GLEW_EXT_separate_shader_objects GLEW_GET_VAR(__GLEW_EXT_separate_shader_objects) - -#endif /* GL_EXT_separate_shader_objects */ - -/* --------------------- GL_EXT_separate_specular_color -------------------- */ - -#ifndef GL_EXT_separate_specular_color -#define GL_EXT_separate_specular_color 1 - -#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 -#define GL_SINGLE_COLOR_EXT 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA - -#define GLEW_EXT_separate_specular_color GLEW_GET_VAR(__GLEW_EXT_separate_specular_color) - -#endif /* GL_EXT_separate_specular_color */ - -/* --------------------- GL_EXT_shader_image_load_store -------------------- */ - -#ifndef GL_EXT_shader_image_load_store -#define GL_EXT_shader_image_load_store 1 - -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020 -#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000 -#define GL_MAX_IMAGE_UNITS_EXT 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39 -#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A -#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B -#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C -#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D -#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E -#define GL_IMAGE_1D_EXT 0x904C -#define GL_IMAGE_2D_EXT 0x904D -#define GL_IMAGE_3D_EXT 0x904E -#define GL_IMAGE_2D_RECT_EXT 0x904F -#define GL_IMAGE_CUBE_EXT 0x9050 -#define GL_IMAGE_BUFFER_EXT 0x9051 -#define GL_IMAGE_1D_ARRAY_EXT 0x9052 -#define GL_IMAGE_2D_ARRAY_EXT 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056 -#define GL_INT_IMAGE_1D_EXT 0x9057 -#define GL_INT_IMAGE_2D_EXT 0x9058 -#define GL_INT_IMAGE_3D_EXT 0x9059 -#define GL_INT_IMAGE_2D_RECT_EXT 0x905A -#define GL_INT_IMAGE_CUBE_EXT 0x905B -#define GL_INT_IMAGE_BUFFER_EXT 0x905C -#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D -#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C -#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D -#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E -#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF - -typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); -typedef void (GLAPIENTRY * PFNGLMEMORYBARRIEREXTPROC) (GLbitfield barriers); - -#define glBindImageTextureEXT GLEW_GET_FUN(__glewBindImageTextureEXT) -#define glMemoryBarrierEXT GLEW_GET_FUN(__glewMemoryBarrierEXT) - -#define GLEW_EXT_shader_image_load_store GLEW_GET_VAR(__GLEW_EXT_shader_image_load_store) - -#endif /* GL_EXT_shader_image_load_store */ - -/* -------------------------- GL_EXT_shadow_funcs -------------------------- */ - -#ifndef GL_EXT_shadow_funcs -#define GL_EXT_shadow_funcs 1 - -#define GLEW_EXT_shadow_funcs GLEW_GET_VAR(__GLEW_EXT_shadow_funcs) - -#endif /* GL_EXT_shadow_funcs */ - -/* --------------------- GL_EXT_shared_texture_palette --------------------- */ - -#ifndef GL_EXT_shared_texture_palette -#define GL_EXT_shared_texture_palette 1 - -#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB - -#define GLEW_EXT_shared_texture_palette GLEW_GET_VAR(__GLEW_EXT_shared_texture_palette) - -#endif /* GL_EXT_shared_texture_palette */ - -/* ------------------------ GL_EXT_stencil_clear_tag ----------------------- */ - -#ifndef GL_EXT_stencil_clear_tag -#define GL_EXT_stencil_clear_tag 1 - -#define GL_STENCIL_TAG_BITS_EXT 0x88F2 -#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 - -#define GLEW_EXT_stencil_clear_tag GLEW_GET_VAR(__GLEW_EXT_stencil_clear_tag) - -#endif /* GL_EXT_stencil_clear_tag */ - -/* ------------------------ GL_EXT_stencil_two_side ------------------------ */ - -#ifndef GL_EXT_stencil_two_side -#define GL_EXT_stencil_two_side 1 - -#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 -#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 - -typedef void (GLAPIENTRY * PFNGLACTIVESTENCILFACEEXTPROC) (GLenum face); - -#define glActiveStencilFaceEXT GLEW_GET_FUN(__glewActiveStencilFaceEXT) - -#define GLEW_EXT_stencil_two_side GLEW_GET_VAR(__GLEW_EXT_stencil_two_side) - -#endif /* GL_EXT_stencil_two_side */ - -/* -------------------------- GL_EXT_stencil_wrap -------------------------- */ - -#ifndef GL_EXT_stencil_wrap -#define GL_EXT_stencil_wrap 1 - -#define GL_INCR_WRAP_EXT 0x8507 -#define GL_DECR_WRAP_EXT 0x8508 - -#define GLEW_EXT_stencil_wrap GLEW_GET_VAR(__GLEW_EXT_stencil_wrap) - -#endif /* GL_EXT_stencil_wrap */ - -/* --------------------------- GL_EXT_subtexture --------------------------- */ - -#ifndef GL_EXT_subtexture -#define GL_EXT_subtexture 1 - -typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); - -#define glTexSubImage1DEXT GLEW_GET_FUN(__glewTexSubImage1DEXT) -#define glTexSubImage2DEXT GLEW_GET_FUN(__glewTexSubImage2DEXT) -#define glTexSubImage3DEXT GLEW_GET_FUN(__glewTexSubImage3DEXT) - -#define GLEW_EXT_subtexture GLEW_GET_VAR(__GLEW_EXT_subtexture) - -#endif /* GL_EXT_subtexture */ - -/* ----------------------------- GL_EXT_texture ---------------------------- */ - -#ifndef GL_EXT_texture -#define GL_EXT_texture 1 - -#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 GLEW_EXT_texture GLEW_GET_VAR(__GLEW_EXT_texture) - -#endif /* GL_EXT_texture */ - -/* ---------------------------- GL_EXT_texture3D --------------------------- */ - -#ifndef GL_EXT_texture3D -#define GL_EXT_texture3D 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); - -#define glTexImage3DEXT GLEW_GET_FUN(__glewTexImage3DEXT) - -#define GLEW_EXT_texture3D GLEW_GET_VAR(__GLEW_EXT_texture3D) - -#endif /* GL_EXT_texture3D */ - -/* -------------------------- GL_EXT_texture_array ------------------------- */ - -#ifndef GL_EXT_texture_array -#define GL_EXT_texture_array 1 - -#define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E -#define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF -#define GL_TEXTURE_1D_ARRAY_EXT 0x8C18 -#define GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19 -#define GL_TEXTURE_2D_ARRAY_EXT 0x8C1A -#define GL_PROXY_TEXTURE_2D_ARRAY_EXT 0x8C1B -#define GL_TEXTURE_BINDING_1D_ARRAY_EXT 0x8C1C -#define GL_TEXTURE_BINDING_2D_ARRAY_EXT 0x8C1D - -typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); - -#define glFramebufferTextureLayerEXT GLEW_GET_FUN(__glewFramebufferTextureLayerEXT) - -#define GLEW_EXT_texture_array GLEW_GET_VAR(__GLEW_EXT_texture_array) - -#endif /* GL_EXT_texture_array */ - -/* ---------------------- GL_EXT_texture_buffer_object --------------------- */ - -#ifndef GL_EXT_texture_buffer_object -#define GL_EXT_texture_buffer_object 1 - -#define GL_TEXTURE_BUFFER_EXT 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D -#define GL_TEXTURE_BUFFER_FORMAT_EXT 0x8C2E - -typedef void (GLAPIENTRY * PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer); - -#define glTexBufferEXT GLEW_GET_FUN(__glewTexBufferEXT) - -#define GLEW_EXT_texture_buffer_object GLEW_GET_VAR(__GLEW_EXT_texture_buffer_object) - -#endif /* GL_EXT_texture_buffer_object */ - -/* -------------------- GL_EXT_texture_compression_dxt1 -------------------- */ - -#ifndef GL_EXT_texture_compression_dxt1 -#define GL_EXT_texture_compression_dxt1 1 - -#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0 -#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 - -#define GLEW_EXT_texture_compression_dxt1 GLEW_GET_VAR(__GLEW_EXT_texture_compression_dxt1) - -#endif /* GL_EXT_texture_compression_dxt1 */ - -/* -------------------- GL_EXT_texture_compression_latc -------------------- */ - -#ifndef GL_EXT_texture_compression_latc -#define GL_EXT_texture_compression_latc 1 - -#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70 -#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71 -#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72 -#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73 - -#define GLEW_EXT_texture_compression_latc GLEW_GET_VAR(__GLEW_EXT_texture_compression_latc) - -#endif /* GL_EXT_texture_compression_latc */ - -/* -------------------- GL_EXT_texture_compression_rgtc -------------------- */ - -#ifndef GL_EXT_texture_compression_rgtc -#define GL_EXT_texture_compression_rgtc 1 - -#define GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB -#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC -#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD -#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE - -#define GLEW_EXT_texture_compression_rgtc GLEW_GET_VAR(__GLEW_EXT_texture_compression_rgtc) - -#endif /* GL_EXT_texture_compression_rgtc */ - -/* -------------------- GL_EXT_texture_compression_s3tc -------------------- */ - -#ifndef GL_EXT_texture_compression_s3tc -#define GL_EXT_texture_compression_s3tc 1 - -#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 - -#define GLEW_EXT_texture_compression_s3tc GLEW_GET_VAR(__GLEW_EXT_texture_compression_s3tc) - -#endif /* GL_EXT_texture_compression_s3tc */ - -/* ------------------------ GL_EXT_texture_cube_map ------------------------ */ - -#ifndef GL_EXT_texture_cube_map -#define GL_EXT_texture_cube_map 1 - -#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 - -#define GLEW_EXT_texture_cube_map GLEW_GET_VAR(__GLEW_EXT_texture_cube_map) - -#endif /* GL_EXT_texture_cube_map */ - -/* ----------------------- GL_EXT_texture_edge_clamp ----------------------- */ - -#ifndef GL_EXT_texture_edge_clamp -#define GL_EXT_texture_edge_clamp 1 - -#define GL_CLAMP_TO_EDGE_EXT 0x812F - -#define GLEW_EXT_texture_edge_clamp GLEW_GET_VAR(__GLEW_EXT_texture_edge_clamp) - -#endif /* GL_EXT_texture_edge_clamp */ - -/* --------------------------- GL_EXT_texture_env -------------------------- */ - -#ifndef GL_EXT_texture_env -#define GL_EXT_texture_env 1 - -#define GL_TEXTURE_ENV0_EXT 0 -#define GL_ENV_BLEND_EXT 0 -#define GL_TEXTURE_ENV_SHIFT_EXT 0 -#define GL_ENV_REPLACE_EXT 0 -#define GL_ENV_ADD_EXT 0 -#define GL_ENV_SUBTRACT_EXT 0 -#define GL_TEXTURE_ENV_MODE_ALPHA_EXT 0 -#define GL_ENV_REVERSE_SUBTRACT_EXT 0 -#define GL_ENV_REVERSE_BLEND_EXT 0 -#define GL_ENV_COPY_EXT 0 -#define GL_ENV_MODULATE_EXT 0 - -#define GLEW_EXT_texture_env GLEW_GET_VAR(__GLEW_EXT_texture_env) - -#endif /* GL_EXT_texture_env */ - -/* ------------------------- GL_EXT_texture_env_add ------------------------ */ - -#ifndef GL_EXT_texture_env_add -#define GL_EXT_texture_env_add 1 - -#define GLEW_EXT_texture_env_add GLEW_GET_VAR(__GLEW_EXT_texture_env_add) - -#endif /* GL_EXT_texture_env_add */ - -/* ----------------------- GL_EXT_texture_env_combine ---------------------- */ - -#ifndef GL_EXT_texture_env_combine -#define GL_EXT_texture_env_combine 1 - -#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 - -#define GLEW_EXT_texture_env_combine GLEW_GET_VAR(__GLEW_EXT_texture_env_combine) - -#endif /* GL_EXT_texture_env_combine */ - -/* ------------------------ GL_EXT_texture_env_dot3 ------------------------ */ - -#ifndef GL_EXT_texture_env_dot3 -#define GL_EXT_texture_env_dot3 1 - -#define GL_DOT3_RGB_EXT 0x8740 -#define GL_DOT3_RGBA_EXT 0x8741 - -#define GLEW_EXT_texture_env_dot3 GLEW_GET_VAR(__GLEW_EXT_texture_env_dot3) - -#endif /* GL_EXT_texture_env_dot3 */ - -/* ------------------- GL_EXT_texture_filter_anisotropic ------------------- */ - -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_EXT_texture_filter_anisotropic 1 - -#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE -#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF - -#define GLEW_EXT_texture_filter_anisotropic GLEW_GET_VAR(__GLEW_EXT_texture_filter_anisotropic) - -#endif /* GL_EXT_texture_filter_anisotropic */ - -/* ------------------------- GL_EXT_texture_integer ------------------------ */ - -#ifndef GL_EXT_texture_integer -#define GL_EXT_texture_integer 1 - -#define GL_RGBA32UI_EXT 0x8D70 -#define GL_RGB32UI_EXT 0x8D71 -#define GL_ALPHA32UI_EXT 0x8D72 -#define GL_INTENSITY32UI_EXT 0x8D73 -#define GL_LUMINANCE32UI_EXT 0x8D74 -#define GL_LUMINANCE_ALPHA32UI_EXT 0x8D75 -#define GL_RGBA16UI_EXT 0x8D76 -#define GL_RGB16UI_EXT 0x8D77 -#define GL_ALPHA16UI_EXT 0x8D78 -#define GL_INTENSITY16UI_EXT 0x8D79 -#define GL_LUMINANCE16UI_EXT 0x8D7A -#define GL_LUMINANCE_ALPHA16UI_EXT 0x8D7B -#define GL_RGBA8UI_EXT 0x8D7C -#define GL_RGB8UI_EXT 0x8D7D -#define GL_ALPHA8UI_EXT 0x8D7E -#define GL_INTENSITY8UI_EXT 0x8D7F -#define GL_LUMINANCE8UI_EXT 0x8D80 -#define GL_LUMINANCE_ALPHA8UI_EXT 0x8D81 -#define GL_RGBA32I_EXT 0x8D82 -#define GL_RGB32I_EXT 0x8D83 -#define GL_ALPHA32I_EXT 0x8D84 -#define GL_INTENSITY32I_EXT 0x8D85 -#define GL_LUMINANCE32I_EXT 0x8D86 -#define GL_LUMINANCE_ALPHA32I_EXT 0x8D87 -#define GL_RGBA16I_EXT 0x8D88 -#define GL_RGB16I_EXT 0x8D89 -#define GL_ALPHA16I_EXT 0x8D8A -#define GL_INTENSITY16I_EXT 0x8D8B -#define GL_LUMINANCE16I_EXT 0x8D8C -#define GL_LUMINANCE_ALPHA16I_EXT 0x8D8D -#define GL_RGBA8I_EXT 0x8D8E -#define GL_RGB8I_EXT 0x8D8F -#define GL_ALPHA8I_EXT 0x8D90 -#define GL_INTENSITY8I_EXT 0x8D91 -#define GL_LUMINANCE8I_EXT 0x8D92 -#define GL_LUMINANCE_ALPHA8I_EXT 0x8D93 -#define GL_RED_INTEGER_EXT 0x8D94 -#define GL_GREEN_INTEGER_EXT 0x8D95 -#define GL_BLUE_INTEGER_EXT 0x8D96 -#define GL_ALPHA_INTEGER_EXT 0x8D97 -#define GL_RGB_INTEGER_EXT 0x8D98 -#define GL_RGBA_INTEGER_EXT 0x8D99 -#define GL_BGR_INTEGER_EXT 0x8D9A -#define GL_BGRA_INTEGER_EXT 0x8D9B -#define GL_LUMINANCE_INTEGER_EXT 0x8D9C -#define GL_LUMINANCE_ALPHA_INTEGER_EXT 0x8D9D -#define GL_RGBA_INTEGER_MODE_EXT 0x8D9E - -typedef void (GLAPIENTRY * PFNGLCLEARCOLORIIEXTPROC) (GLint red, GLint green, GLint blue, GLint alpha); -typedef void (GLAPIENTRY * PFNGLCLEARCOLORIUIEXTPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); -typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params); - -#define glClearColorIiEXT GLEW_GET_FUN(__glewClearColorIiEXT) -#define glClearColorIuiEXT GLEW_GET_FUN(__glewClearColorIuiEXT) -#define glGetTexParameterIivEXT GLEW_GET_FUN(__glewGetTexParameterIivEXT) -#define glGetTexParameterIuivEXT GLEW_GET_FUN(__glewGetTexParameterIuivEXT) -#define glTexParameterIivEXT GLEW_GET_FUN(__glewTexParameterIivEXT) -#define glTexParameterIuivEXT GLEW_GET_FUN(__glewTexParameterIuivEXT) - -#define GLEW_EXT_texture_integer GLEW_GET_VAR(__GLEW_EXT_texture_integer) - -#endif /* GL_EXT_texture_integer */ - -/* ------------------------ GL_EXT_texture_lod_bias ------------------------ */ - -#ifndef GL_EXT_texture_lod_bias -#define GL_EXT_texture_lod_bias 1 - -#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD -#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 -#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 - -#define GLEW_EXT_texture_lod_bias GLEW_GET_VAR(__GLEW_EXT_texture_lod_bias) - -#endif /* GL_EXT_texture_lod_bias */ - -/* ---------------------- GL_EXT_texture_mirror_clamp ---------------------- */ - -#ifndef GL_EXT_texture_mirror_clamp -#define GL_EXT_texture_mirror_clamp 1 - -#define GL_MIRROR_CLAMP_EXT 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 -#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 - -#define GLEW_EXT_texture_mirror_clamp GLEW_GET_VAR(__GLEW_EXT_texture_mirror_clamp) - -#endif /* GL_EXT_texture_mirror_clamp */ - -/* ------------------------- GL_EXT_texture_object ------------------------- */ - -#ifndef GL_EXT_texture_object -#define GL_EXT_texture_object 1 - -#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 - -typedef GLboolean (GLAPIENTRY * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint* textures, GLboolean* residences); -typedef void (GLAPIENTRY * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); -typedef void (GLAPIENTRY * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint* textures); -typedef void (GLAPIENTRY * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint* textures); -typedef GLboolean (GLAPIENTRY * PFNGLISTEXTUREEXTPROC) (GLuint texture); -typedef void (GLAPIENTRY * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint* textures, const GLclampf* priorities); - -#define glAreTexturesResidentEXT GLEW_GET_FUN(__glewAreTexturesResidentEXT) -#define glBindTextureEXT GLEW_GET_FUN(__glewBindTextureEXT) -#define glDeleteTexturesEXT GLEW_GET_FUN(__glewDeleteTexturesEXT) -#define glGenTexturesEXT GLEW_GET_FUN(__glewGenTexturesEXT) -#define glIsTextureEXT GLEW_GET_FUN(__glewIsTextureEXT) -#define glPrioritizeTexturesEXT GLEW_GET_FUN(__glewPrioritizeTexturesEXT) - -#define GLEW_EXT_texture_object GLEW_GET_VAR(__GLEW_EXT_texture_object) - -#endif /* GL_EXT_texture_object */ - -/* --------------------- GL_EXT_texture_perturb_normal --------------------- */ - -#ifndef GL_EXT_texture_perturb_normal -#define GL_EXT_texture_perturb_normal 1 - -#define GL_PERTURB_EXT 0x85AE -#define GL_TEXTURE_NORMAL_EXT 0x85AF - -typedef void (GLAPIENTRY * PFNGLTEXTURENORMALEXTPROC) (GLenum mode); - -#define glTextureNormalEXT GLEW_GET_FUN(__glewTextureNormalEXT) - -#define GLEW_EXT_texture_perturb_normal GLEW_GET_VAR(__GLEW_EXT_texture_perturb_normal) - -#endif /* GL_EXT_texture_perturb_normal */ - -/* ------------------------ GL_EXT_texture_rectangle ----------------------- */ - -#ifndef GL_EXT_texture_rectangle -#define GL_EXT_texture_rectangle 1 - -#define GL_TEXTURE_RECTANGLE_EXT 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE_EXT 0x84F8 - -#define GLEW_EXT_texture_rectangle GLEW_GET_VAR(__GLEW_EXT_texture_rectangle) - -#endif /* GL_EXT_texture_rectangle */ - -/* -------------------------- GL_EXT_texture_sRGB -------------------------- */ - -#ifndef GL_EXT_texture_sRGB -#define GL_EXT_texture_sRGB 1 - -#define GL_SRGB_EXT 0x8C40 -#define GL_SRGB8_EXT 0x8C41 -#define GL_SRGB_ALPHA_EXT 0x8C42 -#define GL_SRGB8_ALPHA8_EXT 0x8C43 -#define GL_SLUMINANCE_ALPHA_EXT 0x8C44 -#define GL_SLUMINANCE8_ALPHA8_EXT 0x8C45 -#define GL_SLUMINANCE_EXT 0x8C46 -#define GL_SLUMINANCE8_EXT 0x8C47 -#define GL_COMPRESSED_SRGB_EXT 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA_EXT 0x8C49 -#define GL_COMPRESSED_SLUMINANCE_EXT 0x8C4A -#define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B -#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT 0x8C4C -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F - -#define GLEW_EXT_texture_sRGB GLEW_GET_VAR(__GLEW_EXT_texture_sRGB) - -#endif /* GL_EXT_texture_sRGB */ - -/* ----------------------- GL_EXT_texture_sRGB_decode ---------------------- */ - -#ifndef GL_EXT_texture_sRGB_decode -#define GL_EXT_texture_sRGB_decode 1 - -#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 -#define GL_DECODE_EXT 0x8A49 -#define GL_SKIP_DECODE_EXT 0x8A4A - -#define GLEW_EXT_texture_sRGB_decode GLEW_GET_VAR(__GLEW_EXT_texture_sRGB_decode) - -#endif /* GL_EXT_texture_sRGB_decode */ - -/* --------------------- GL_EXT_texture_shared_exponent -------------------- */ - -#ifndef GL_EXT_texture_shared_exponent -#define GL_EXT_texture_shared_exponent 1 - -#define GL_RGB9_E5_EXT 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E -#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F - -#define GLEW_EXT_texture_shared_exponent GLEW_GET_VAR(__GLEW_EXT_texture_shared_exponent) - -#endif /* GL_EXT_texture_shared_exponent */ - -/* -------------------------- GL_EXT_texture_snorm ------------------------- */ - -#ifndef GL_EXT_texture_snorm -#define GL_EXT_texture_snorm 1 - -#define GL_RED_SNORM 0x8F90 -#define GL_RG_SNORM 0x8F91 -#define GL_RGB_SNORM 0x8F92 -#define GL_RGBA_SNORM 0x8F93 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_ALPHA_SNORM 0x9010 -#define GL_LUMINANCE_SNORM 0x9011 -#define GL_LUMINANCE_ALPHA_SNORM 0x9012 -#define GL_INTENSITY_SNORM 0x9013 -#define GL_ALPHA8_SNORM 0x9014 -#define GL_LUMINANCE8_SNORM 0x9015 -#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016 -#define GL_INTENSITY8_SNORM 0x9017 -#define GL_ALPHA16_SNORM 0x9018 -#define GL_LUMINANCE16_SNORM 0x9019 -#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A -#define GL_INTENSITY16_SNORM 0x901B - -#define GLEW_EXT_texture_snorm GLEW_GET_VAR(__GLEW_EXT_texture_snorm) - -#endif /* GL_EXT_texture_snorm */ - -/* ------------------------- GL_EXT_texture_swizzle ------------------------ */ - -#ifndef GL_EXT_texture_swizzle -#define GL_EXT_texture_swizzle 1 - -#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42 -#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43 -#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44 -#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46 - -#define GLEW_EXT_texture_swizzle GLEW_GET_VAR(__GLEW_EXT_texture_swizzle) - -#endif /* GL_EXT_texture_swizzle */ - -/* --------------------------- GL_EXT_timer_query -------------------------- */ - -#ifndef GL_EXT_timer_query -#define GL_EXT_timer_query 1 - -#define GL_TIME_ELAPSED_EXT 0x88BF - -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64EXT *params); -typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64EXT *params); - -#define glGetQueryObjecti64vEXT GLEW_GET_FUN(__glewGetQueryObjecti64vEXT) -#define glGetQueryObjectui64vEXT GLEW_GET_FUN(__glewGetQueryObjectui64vEXT) - -#define GLEW_EXT_timer_query GLEW_GET_VAR(__GLEW_EXT_timer_query) - -#endif /* GL_EXT_timer_query */ - -/* ----------------------- GL_EXT_transform_feedback ----------------------- */ - -#ifndef GL_EXT_transform_feedback -#define GL_EXT_transform_feedback 1 - -#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76 -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 -#define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85 -#define GL_PRIMITIVES_GENERATED_EXT 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88 -#define GL_RASTERIZER_DISCARD_EXT 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B -#define GL_INTERLEAVED_ATTRIBS_EXT 0x8C8C -#define GL_SEPARATE_ATTRIBS_EXT 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F - -typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void); -typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei *size, GLenum *type, char *name); -typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const char ** varyings, GLenum bufferMode); - -#define glBeginTransformFeedbackEXT GLEW_GET_FUN(__glewBeginTransformFeedbackEXT) -#define glBindBufferBaseEXT GLEW_GET_FUN(__glewBindBufferBaseEXT) -#define glBindBufferOffsetEXT GLEW_GET_FUN(__glewBindBufferOffsetEXT) -#define glBindBufferRangeEXT GLEW_GET_FUN(__glewBindBufferRangeEXT) -#define glEndTransformFeedbackEXT GLEW_GET_FUN(__glewEndTransformFeedbackEXT) -#define glGetTransformFeedbackVaryingEXT GLEW_GET_FUN(__glewGetTransformFeedbackVaryingEXT) -#define glTransformFeedbackVaryingsEXT GLEW_GET_FUN(__glewTransformFeedbackVaryingsEXT) - -#define GLEW_EXT_transform_feedback GLEW_GET_VAR(__GLEW_EXT_transform_feedback) - -#endif /* GL_EXT_transform_feedback */ - -/* -------------------------- GL_EXT_vertex_array -------------------------- */ - -#ifndef GL_EXT_vertex_array -#define GL_EXT_vertex_array 1 - -#define GL_DOUBLE_EXT 0x140A -#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 - -typedef void (GLAPIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i); -typedef void (GLAPIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); -typedef void (GLAPIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (GLAPIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean* pointer); -typedef void (GLAPIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); -typedef void (GLAPIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const void* pointer); -typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); -typedef void (GLAPIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const void* pointer); - -#define glArrayElementEXT GLEW_GET_FUN(__glewArrayElementEXT) -#define glColorPointerEXT GLEW_GET_FUN(__glewColorPointerEXT) -#define glDrawArraysEXT GLEW_GET_FUN(__glewDrawArraysEXT) -#define glEdgeFlagPointerEXT GLEW_GET_FUN(__glewEdgeFlagPointerEXT) -#define glIndexPointerEXT GLEW_GET_FUN(__glewIndexPointerEXT) -#define glNormalPointerEXT GLEW_GET_FUN(__glewNormalPointerEXT) -#define glTexCoordPointerEXT GLEW_GET_FUN(__glewTexCoordPointerEXT) -#define glVertexPointerEXT GLEW_GET_FUN(__glewVertexPointerEXT) - -#define GLEW_EXT_vertex_array GLEW_GET_VAR(__GLEW_EXT_vertex_array) - -#endif /* GL_EXT_vertex_array */ - -/* ------------------------ GL_EXT_vertex_array_bgra ----------------------- */ - -#ifndef GL_EXT_vertex_array_bgra -#define GL_EXT_vertex_array_bgra 1 - -#define GL_BGRA 0x80E1 - -#define GLEW_EXT_vertex_array_bgra GLEW_GET_VAR(__GLEW_EXT_vertex_array_bgra) - -#endif /* GL_EXT_vertex_array_bgra */ - -/* ----------------------- GL_EXT_vertex_attrib_64bit ---------------------- */ - -#ifndef GL_EXT_vertex_attrib_64bit -#define GL_EXT_vertex_attrib_64bit 1 - -#define GL_DOUBLE_MAT2_EXT 0x8F46 -#define GL_DOUBLE_MAT3_EXT 0x8F47 -#define GL_DOUBLE_MAT4_EXT 0x8F48 -#define GL_DOUBLE_MAT2x3_EXT 0x8F49 -#define GL_DOUBLE_MAT2x4_EXT 0x8F4A -#define GL_DOUBLE_MAT3x2_EXT 0x8F4B -#define GL_DOUBLE_MAT3x4_EXT 0x8F4C -#define GL_DOUBLE_MAT4x2_EXT 0x8F4D -#define GL_DOUBLE_MAT4x3_EXT 0x8F4E -#define GL_DOUBLE_VEC2_EXT 0x8FFC -#define GL_DOUBLE_VEC3_EXT 0x8FFD -#define GL_DOUBLE_VEC4_EXT 0x8FFE - -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLDVEXTPROC) (GLuint index, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC) (GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DEXTPROC) (GLuint index, GLdouble x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1DVEXTPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DEXTPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2DVEXTPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3DVEXTPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DEXTPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4DVEXTPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLPOINTEREXTPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); - -#define glGetVertexAttribLdvEXT GLEW_GET_FUN(__glewGetVertexAttribLdvEXT) -#define glVertexArrayVertexAttribLOffsetEXT GLEW_GET_FUN(__glewVertexArrayVertexAttribLOffsetEXT) -#define glVertexAttribL1dEXT GLEW_GET_FUN(__glewVertexAttribL1dEXT) -#define glVertexAttribL1dvEXT GLEW_GET_FUN(__glewVertexAttribL1dvEXT) -#define glVertexAttribL2dEXT GLEW_GET_FUN(__glewVertexAttribL2dEXT) -#define glVertexAttribL2dvEXT GLEW_GET_FUN(__glewVertexAttribL2dvEXT) -#define glVertexAttribL3dEXT GLEW_GET_FUN(__glewVertexAttribL3dEXT) -#define glVertexAttribL3dvEXT GLEW_GET_FUN(__glewVertexAttribL3dvEXT) -#define glVertexAttribL4dEXT GLEW_GET_FUN(__glewVertexAttribL4dEXT) -#define glVertexAttribL4dvEXT GLEW_GET_FUN(__glewVertexAttribL4dvEXT) -#define glVertexAttribLPointerEXT GLEW_GET_FUN(__glewVertexAttribLPointerEXT) - -#define GLEW_EXT_vertex_attrib_64bit GLEW_GET_VAR(__GLEW_EXT_vertex_attrib_64bit) - -#endif /* GL_EXT_vertex_attrib_64bit */ - -/* -------------------------- GL_EXT_vertex_shader ------------------------- */ - -#ifndef GL_EXT_vertex_shader -#define GL_EXT_vertex_shader 1 - -#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_INVARIANTS_EXT 0x87CC -#define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_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 - -typedef void (GLAPIENTRY * PFNGLBEGINVERTEXSHADEREXTPROC) (void); -typedef GLuint (GLAPIENTRY * PFNGLBINDLIGHTPARAMETEREXTPROC) (GLenum light, GLenum value); -typedef GLuint (GLAPIENTRY * PFNGLBINDMATERIALPARAMETEREXTPROC) (GLenum face, GLenum value); -typedef GLuint (GLAPIENTRY * PFNGLBINDPARAMETEREXTPROC) (GLenum value); -typedef GLuint (GLAPIENTRY * PFNGLBINDTEXGENPARAMETEREXTPROC) (GLenum unit, GLenum coord, GLenum value); -typedef GLuint (GLAPIENTRY * PFNGLBINDTEXTUREUNITPARAMETEREXTPROC) (GLenum unit, GLenum value); -typedef void (GLAPIENTRY * PFNGLBINDVERTEXSHADEREXTPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETEVERTEXSHADEREXTPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLENABLEVARIANTCLIENTSTATEEXTPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLENDVERTEXSHADEREXTPROC) (void); -typedef void (GLAPIENTRY * PFNGLEXTRACTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef GLuint (GLAPIENTRY * PFNGLGENSYMBOLSEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components); -typedef GLuint (GLAPIENTRY * PFNGLGENVERTEXSHADERSEXTPROC) (GLuint range); -typedef void (GLAPIENTRY * PFNGLGETINVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (GLAPIENTRY * PFNGLGETINVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (GLAPIENTRY * PFNGLGETINVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (GLAPIENTRY * PFNGLGETLOCALCONSTANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (GLAPIENTRY * PFNGLGETVARIANTBOOLEANVEXTPROC) (GLuint id, GLenum value, GLboolean *data); -typedef void (GLAPIENTRY * PFNGLGETVARIANTFLOATVEXTPROC) (GLuint id, GLenum value, GLfloat *data); -typedef void (GLAPIENTRY * PFNGLGETVARIANTINTEGERVEXTPROC) (GLuint id, GLenum value, GLint *data); -typedef void (GLAPIENTRY * PFNGLGETVARIANTPOINTERVEXTPROC) (GLuint id, GLenum value, GLvoid **data); -typedef void (GLAPIENTRY * PFNGLINSERTCOMPONENTEXTPROC) (GLuint res, GLuint src, GLuint num); -typedef GLboolean (GLAPIENTRY * PFNGLISVARIANTENABLEDEXTPROC) (GLuint id, GLenum cap); -typedef void (GLAPIENTRY * PFNGLSETINVARIANTEXTPROC) (GLuint id, GLenum type, GLvoid *addr); -typedef void (GLAPIENTRY * PFNGLSETLOCALCONSTANTEXTPROC) (GLuint id, GLenum type, GLvoid *addr); -typedef void (GLAPIENTRY * PFNGLSHADEROP1EXTPROC) (GLenum op, GLuint res, GLuint arg1); -typedef void (GLAPIENTRY * PFNGLSHADEROP2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); -typedef void (GLAPIENTRY * PFNGLSHADEROP3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -typedef void (GLAPIENTRY * PFNGLSWIZZLEEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -typedef void (GLAPIENTRY * PFNGLVARIANTPOINTEREXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTBVEXTPROC) (GLuint id, GLbyte *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTDVEXTPROC) (GLuint id, GLdouble *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTFVEXTPROC) (GLuint id, GLfloat *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTIVEXTPROC) (GLuint id, GLint *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTSVEXTPROC) (GLuint id, GLshort *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTUBVEXTPROC) (GLuint id, GLubyte *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTUIVEXTPROC) (GLuint id, GLuint *addr); -typedef void (GLAPIENTRY * PFNGLVARIANTUSVEXTPROC) (GLuint id, GLushort *addr); -typedef void (GLAPIENTRY * PFNGLWRITEMASKEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); - -#define glBeginVertexShaderEXT GLEW_GET_FUN(__glewBeginVertexShaderEXT) -#define glBindLightParameterEXT GLEW_GET_FUN(__glewBindLightParameterEXT) -#define glBindMaterialParameterEXT GLEW_GET_FUN(__glewBindMaterialParameterEXT) -#define glBindParameterEXT GLEW_GET_FUN(__glewBindParameterEXT) -#define glBindTexGenParameterEXT GLEW_GET_FUN(__glewBindTexGenParameterEXT) -#define glBindTextureUnitParameterEXT GLEW_GET_FUN(__glewBindTextureUnitParameterEXT) -#define glBindVertexShaderEXT GLEW_GET_FUN(__glewBindVertexShaderEXT) -#define glDeleteVertexShaderEXT GLEW_GET_FUN(__glewDeleteVertexShaderEXT) -#define glDisableVariantClientStateEXT GLEW_GET_FUN(__glewDisableVariantClientStateEXT) -#define glEnableVariantClientStateEXT GLEW_GET_FUN(__glewEnableVariantClientStateEXT) -#define glEndVertexShaderEXT GLEW_GET_FUN(__glewEndVertexShaderEXT) -#define glExtractComponentEXT GLEW_GET_FUN(__glewExtractComponentEXT) -#define glGenSymbolsEXT GLEW_GET_FUN(__glewGenSymbolsEXT) -#define glGenVertexShadersEXT GLEW_GET_FUN(__glewGenVertexShadersEXT) -#define glGetInvariantBooleanvEXT GLEW_GET_FUN(__glewGetInvariantBooleanvEXT) -#define glGetInvariantFloatvEXT GLEW_GET_FUN(__glewGetInvariantFloatvEXT) -#define glGetInvariantIntegervEXT GLEW_GET_FUN(__glewGetInvariantIntegervEXT) -#define glGetLocalConstantBooleanvEXT GLEW_GET_FUN(__glewGetLocalConstantBooleanvEXT) -#define glGetLocalConstantFloatvEXT GLEW_GET_FUN(__glewGetLocalConstantFloatvEXT) -#define glGetLocalConstantIntegervEXT GLEW_GET_FUN(__glewGetLocalConstantIntegervEXT) -#define glGetVariantBooleanvEXT GLEW_GET_FUN(__glewGetVariantBooleanvEXT) -#define glGetVariantFloatvEXT GLEW_GET_FUN(__glewGetVariantFloatvEXT) -#define glGetVariantIntegervEXT GLEW_GET_FUN(__glewGetVariantIntegervEXT) -#define glGetVariantPointervEXT GLEW_GET_FUN(__glewGetVariantPointervEXT) -#define glInsertComponentEXT GLEW_GET_FUN(__glewInsertComponentEXT) -#define glIsVariantEnabledEXT GLEW_GET_FUN(__glewIsVariantEnabledEXT) -#define glSetInvariantEXT GLEW_GET_FUN(__glewSetInvariantEXT) -#define glSetLocalConstantEXT GLEW_GET_FUN(__glewSetLocalConstantEXT) -#define glShaderOp1EXT GLEW_GET_FUN(__glewShaderOp1EXT) -#define glShaderOp2EXT GLEW_GET_FUN(__glewShaderOp2EXT) -#define glShaderOp3EXT GLEW_GET_FUN(__glewShaderOp3EXT) -#define glSwizzleEXT GLEW_GET_FUN(__glewSwizzleEXT) -#define glVariantPointerEXT GLEW_GET_FUN(__glewVariantPointerEXT) -#define glVariantbvEXT GLEW_GET_FUN(__glewVariantbvEXT) -#define glVariantdvEXT GLEW_GET_FUN(__glewVariantdvEXT) -#define glVariantfvEXT GLEW_GET_FUN(__glewVariantfvEXT) -#define glVariantivEXT GLEW_GET_FUN(__glewVariantivEXT) -#define glVariantsvEXT GLEW_GET_FUN(__glewVariantsvEXT) -#define glVariantubvEXT GLEW_GET_FUN(__glewVariantubvEXT) -#define glVariantuivEXT GLEW_GET_FUN(__glewVariantuivEXT) -#define glVariantusvEXT GLEW_GET_FUN(__glewVariantusvEXT) -#define glWriteMaskEXT GLEW_GET_FUN(__glewWriteMaskEXT) - -#define GLEW_EXT_vertex_shader GLEW_GET_VAR(__GLEW_EXT_vertex_shader) - -#endif /* GL_EXT_vertex_shader */ - -/* ------------------------ GL_EXT_vertex_weighting ------------------------ */ - -#ifndef GL_EXT_vertex_weighting -#define GL_EXT_vertex_weighting 1 - -#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3 -#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6 -#define GL_MODELVIEW0_EXT 0x1700 -#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 -#define GL_MODELVIEW1_MATRIX_EXT 0x8506 -#define GL_VERTEX_WEIGHTING_EXT 0x8509 -#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 - -typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, void* pointer); -typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); -typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTFVEXTPROC) (GLfloat* weight); - -#define glVertexWeightPointerEXT GLEW_GET_FUN(__glewVertexWeightPointerEXT) -#define glVertexWeightfEXT GLEW_GET_FUN(__glewVertexWeightfEXT) -#define glVertexWeightfvEXT GLEW_GET_FUN(__glewVertexWeightfvEXT) - -#define GLEW_EXT_vertex_weighting GLEW_GET_VAR(__GLEW_EXT_vertex_weighting) - -#endif /* GL_EXT_vertex_weighting */ - -/* ------------------------- GL_EXT_x11_sync_object ------------------------ */ - -#ifndef GL_EXT_x11_sync_object -#define GL_EXT_x11_sync_object 1 - -#define GL_SYNC_X11_FENCE_EXT 0x90E1 - -typedef GLsync (GLAPIENTRY * PFNGLIMPORTSYNCEXTPROC) (GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); - -#define glImportSyncEXT GLEW_GET_FUN(__glewImportSyncEXT) - -#define GLEW_EXT_x11_sync_object GLEW_GET_VAR(__GLEW_EXT_x11_sync_object) - -#endif /* GL_EXT_x11_sync_object */ - -/* ---------------------- GL_GREMEDY_frame_terminator ---------------------- */ - -#ifndef GL_GREMEDY_frame_terminator -#define GL_GREMEDY_frame_terminator 1 - -typedef void (GLAPIENTRY * PFNGLFRAMETERMINATORGREMEDYPROC) (void); - -#define glFrameTerminatorGREMEDY GLEW_GET_FUN(__glewFrameTerminatorGREMEDY) - -#define GLEW_GREMEDY_frame_terminator GLEW_GET_VAR(__GLEW_GREMEDY_frame_terminator) - -#endif /* GL_GREMEDY_frame_terminator */ - -/* ------------------------ GL_GREMEDY_string_marker ----------------------- */ - -#ifndef GL_GREMEDY_string_marker -#define GL_GREMEDY_string_marker 1 - -typedef void (GLAPIENTRY * PFNGLSTRINGMARKERGREMEDYPROC) (GLsizei len, const void* string); - -#define glStringMarkerGREMEDY GLEW_GET_FUN(__glewStringMarkerGREMEDY) - -#define GLEW_GREMEDY_string_marker GLEW_GET_VAR(__GLEW_GREMEDY_string_marker) - -#endif /* GL_GREMEDY_string_marker */ - -/* --------------------- GL_HP_convolution_border_modes -------------------- */ - -#ifndef GL_HP_convolution_border_modes -#define GL_HP_convolution_border_modes 1 - -#define GLEW_HP_convolution_border_modes GLEW_GET_VAR(__GLEW_HP_convolution_border_modes) - -#endif /* GL_HP_convolution_border_modes */ - -/* ------------------------- GL_HP_image_transform ------------------------- */ - -#ifndef GL_HP_image_transform -#define GL_HP_image_transform 1 - -typedef void (GLAPIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, const GLfloat param); -typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, const GLint param); -typedef void (GLAPIENTRY * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint* params); - -#define glGetImageTransformParameterfvHP GLEW_GET_FUN(__glewGetImageTransformParameterfvHP) -#define glGetImageTransformParameterivHP GLEW_GET_FUN(__glewGetImageTransformParameterivHP) -#define glImageTransformParameterfHP GLEW_GET_FUN(__glewImageTransformParameterfHP) -#define glImageTransformParameterfvHP GLEW_GET_FUN(__glewImageTransformParameterfvHP) -#define glImageTransformParameteriHP GLEW_GET_FUN(__glewImageTransformParameteriHP) -#define glImageTransformParameterivHP GLEW_GET_FUN(__glewImageTransformParameterivHP) - -#define GLEW_HP_image_transform GLEW_GET_VAR(__GLEW_HP_image_transform) - -#endif /* GL_HP_image_transform */ - -/* -------------------------- GL_HP_occlusion_test ------------------------- */ - -#ifndef GL_HP_occlusion_test -#define GL_HP_occlusion_test 1 - -#define GL_OCCLUSION_TEST_HP 0x8165 -#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 - -#define GLEW_HP_occlusion_test GLEW_GET_VAR(__GLEW_HP_occlusion_test) - -#endif /* GL_HP_occlusion_test */ - -/* ------------------------- GL_HP_texture_lighting ------------------------ */ - -#ifndef GL_HP_texture_lighting -#define GL_HP_texture_lighting 1 - -#define GLEW_HP_texture_lighting GLEW_GET_VAR(__GLEW_HP_texture_lighting) - -#endif /* GL_HP_texture_lighting */ - -/* --------------------------- GL_IBM_cull_vertex -------------------------- */ - -#ifndef GL_IBM_cull_vertex -#define GL_IBM_cull_vertex 1 - -#define GL_CULL_VERTEX_IBM 103050 - -#define GLEW_IBM_cull_vertex GLEW_GET_VAR(__GLEW_IBM_cull_vertex) - -#endif /* GL_IBM_cull_vertex */ - -/* ---------------------- GL_IBM_multimode_draw_arrays --------------------- */ - -#ifndef GL_IBM_multimode_draw_arrays -#define GL_IBM_multimode_draw_arrays 1 - -typedef void (GLAPIENTRY * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (const GLenum* mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -typedef void (GLAPIENTRY * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum* mode, const GLsizei *count, GLenum type, const GLvoid * const *indices, GLsizei primcount, GLint modestride); - -#define glMultiModeDrawArraysIBM GLEW_GET_FUN(__glewMultiModeDrawArraysIBM) -#define glMultiModeDrawElementsIBM GLEW_GET_FUN(__glewMultiModeDrawElementsIBM) - -#define GLEW_IBM_multimode_draw_arrays GLEW_GET_VAR(__GLEW_IBM_multimode_draw_arrays) - -#endif /* GL_IBM_multimode_draw_arrays */ - -/* ------------------------- GL_IBM_rasterpos_clip ------------------------- */ - -#ifndef GL_IBM_rasterpos_clip -#define GL_IBM_rasterpos_clip 1 - -#define GL_RASTER_POSITION_UNCLIPPED_IBM 103010 - -#define GLEW_IBM_rasterpos_clip GLEW_GET_VAR(__GLEW_IBM_rasterpos_clip) - -#endif /* GL_IBM_rasterpos_clip */ - -/* --------------------------- GL_IBM_static_data -------------------------- */ - -#ifndef GL_IBM_static_data -#define GL_IBM_static_data 1 - -#define GL_ALL_STATIC_DATA_IBM 103060 -#define GL_STATIC_VERTEX_ARRAY_IBM 103061 - -#define GLEW_IBM_static_data GLEW_GET_VAR(__GLEW_IBM_static_data) - -#endif /* GL_IBM_static_data */ - -/* --------------------- GL_IBM_texture_mirrored_repeat -------------------- */ - -#ifndef GL_IBM_texture_mirrored_repeat -#define GL_IBM_texture_mirrored_repeat 1 - -#define GL_MIRRORED_REPEAT_IBM 0x8370 - -#define GLEW_IBM_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_IBM_texture_mirrored_repeat) - -#endif /* GL_IBM_texture_mirrored_repeat */ - -/* ----------------------- GL_IBM_vertex_array_lists ----------------------- */ - -#ifndef GL_IBM_vertex_array_lists -#define GL_IBM_vertex_array_lists 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); -typedef void (GLAPIENTRY * PFNGLVERTEXPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid ** pointer, GLint ptrstride); - -#define glColorPointerListIBM GLEW_GET_FUN(__glewColorPointerListIBM) -#define glEdgeFlagPointerListIBM GLEW_GET_FUN(__glewEdgeFlagPointerListIBM) -#define glFogCoordPointerListIBM GLEW_GET_FUN(__glewFogCoordPointerListIBM) -#define glIndexPointerListIBM GLEW_GET_FUN(__glewIndexPointerListIBM) -#define glNormalPointerListIBM GLEW_GET_FUN(__glewNormalPointerListIBM) -#define glSecondaryColorPointerListIBM GLEW_GET_FUN(__glewSecondaryColorPointerListIBM) -#define glTexCoordPointerListIBM GLEW_GET_FUN(__glewTexCoordPointerListIBM) -#define glVertexPointerListIBM GLEW_GET_FUN(__glewVertexPointerListIBM) - -#define GLEW_IBM_vertex_array_lists GLEW_GET_VAR(__GLEW_IBM_vertex_array_lists) - -#endif /* GL_IBM_vertex_array_lists */ - -/* -------------------------- GL_INGR_color_clamp -------------------------- */ - -#ifndef GL_INGR_color_clamp -#define GL_INGR_color_clamp 1 - -#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 - -#define GLEW_INGR_color_clamp GLEW_GET_VAR(__GLEW_INGR_color_clamp) - -#endif /* GL_INGR_color_clamp */ - -/* ------------------------- GL_INGR_interlace_read ------------------------ */ - -#ifndef GL_INGR_interlace_read -#define GL_INGR_interlace_read 1 - -#define GL_INTERLACE_READ_INGR 0x8568 - -#define GLEW_INGR_interlace_read GLEW_GET_VAR(__GLEW_INGR_interlace_read) - -#endif /* GL_INGR_interlace_read */ - -/* ------------------------ GL_INTEL_parallel_arrays ----------------------- */ - -#ifndef GL_INTEL_parallel_arrays -#define GL_INTEL_parallel_arrays 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); -typedef void (GLAPIENTRY * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void** pointer); -typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); -typedef void (GLAPIENTRY * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer); - -#define glColorPointervINTEL GLEW_GET_FUN(__glewColorPointervINTEL) -#define glNormalPointervINTEL GLEW_GET_FUN(__glewNormalPointervINTEL) -#define glTexCoordPointervINTEL GLEW_GET_FUN(__glewTexCoordPointervINTEL) -#define glVertexPointervINTEL GLEW_GET_FUN(__glewVertexPointervINTEL) - -#define GLEW_INTEL_parallel_arrays GLEW_GET_VAR(__GLEW_INTEL_parallel_arrays) - -#endif /* GL_INTEL_parallel_arrays */ - -/* ------------------------ GL_INTEL_texture_scissor ----------------------- */ - -#ifndef GL_INTEL_texture_scissor -#define GL_INTEL_texture_scissor 1 - -typedef void (GLAPIENTRY * PFNGLTEXSCISSORFUNCINTELPROC) (GLenum target, GLenum lfunc, GLenum hfunc); -typedef void (GLAPIENTRY * PFNGLTEXSCISSORINTELPROC) (GLenum target, GLclampf tlow, GLclampf thigh); - -#define glTexScissorFuncINTEL GLEW_GET_FUN(__glewTexScissorFuncINTEL) -#define glTexScissorINTEL GLEW_GET_FUN(__glewTexScissorINTEL) - -#define GLEW_INTEL_texture_scissor GLEW_GET_VAR(__GLEW_INTEL_texture_scissor) - -#endif /* GL_INTEL_texture_scissor */ - -/* -------------------------- GL_KTX_buffer_region ------------------------- */ - -#ifndef GL_KTX_buffer_region -#define GL_KTX_buffer_region 1 - -#define GL_KTX_FRONT_REGION 0x0 -#define GL_KTX_BACK_REGION 0x1 -#define GL_KTX_Z_REGION 0x2 -#define GL_KTX_STENCIL_REGION 0x3 - -typedef GLuint (GLAPIENTRY * PFNGLBUFFERREGIONENABLEDEXTPROC) (void); -typedef void (GLAPIENTRY * PFNGLDELETEBUFFERREGIONEXTPROC) (GLenum region); -typedef void (GLAPIENTRY * PFNGLDRAWBUFFERREGIONEXTPROC) (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height, GLint xDest, GLint yDest); -typedef GLuint (GLAPIENTRY * PFNGLNEWBUFFERREGIONEXTPROC) (GLenum region); -typedef void (GLAPIENTRY * PFNGLREADBUFFERREGIONEXTPROC) (GLuint region, GLint x, GLint y, GLsizei width, GLsizei height); - -#define glBufferRegionEnabledEXT GLEW_GET_FUN(__glewBufferRegionEnabledEXT) -#define glDeleteBufferRegionEXT GLEW_GET_FUN(__glewDeleteBufferRegionEXT) -#define glDrawBufferRegionEXT GLEW_GET_FUN(__glewDrawBufferRegionEXT) -#define glNewBufferRegionEXT GLEW_GET_FUN(__glewNewBufferRegionEXT) -#define glReadBufferRegionEXT GLEW_GET_FUN(__glewReadBufferRegionEXT) - -#define GLEW_KTX_buffer_region GLEW_GET_VAR(__GLEW_KTX_buffer_region) - -#endif /* GL_KTX_buffer_region */ - -/* ------------------------- GL_MESAX_texture_stack ------------------------ */ - -#ifndef GL_MESAX_texture_stack -#define GL_MESAX_texture_stack 1 - -#define GL_TEXTURE_1D_STACK_MESAX 0x8759 -#define GL_TEXTURE_2D_STACK_MESAX 0x875A -#define GL_PROXY_TEXTURE_1D_STACK_MESAX 0x875B -#define GL_PROXY_TEXTURE_2D_STACK_MESAX 0x875C -#define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D -#define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E - -#define GLEW_MESAX_texture_stack GLEW_GET_VAR(__GLEW_MESAX_texture_stack) - -#endif /* GL_MESAX_texture_stack */ - -/* -------------------------- GL_MESA_pack_invert -------------------------- */ - -#ifndef GL_MESA_pack_invert -#define GL_MESA_pack_invert 1 - -#define GL_PACK_INVERT_MESA 0x8758 - -#define GLEW_MESA_pack_invert GLEW_GET_VAR(__GLEW_MESA_pack_invert) - -#endif /* GL_MESA_pack_invert */ - -/* ------------------------- GL_MESA_resize_buffers ------------------------ */ - -#ifndef GL_MESA_resize_buffers -#define GL_MESA_resize_buffers 1 - -typedef void (GLAPIENTRY * PFNGLRESIZEBUFFERSMESAPROC) (void); - -#define glResizeBuffersMESA GLEW_GET_FUN(__glewResizeBuffersMESA) - -#define GLEW_MESA_resize_buffers GLEW_GET_VAR(__GLEW_MESA_resize_buffers) - -#endif /* GL_MESA_resize_buffers */ - -/* --------------------------- GL_MESA_window_pos -------------------------- */ - -#ifndef GL_MESA_window_pos -#define GL_MESA_window_pos 1 - -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVMESAPROC) (const GLint* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVMESAPROC) (const GLint* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4IVMESAPROC) (const GLint* p); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (GLAPIENTRY * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort* p); - -#define glWindowPos2dMESA GLEW_GET_FUN(__glewWindowPos2dMESA) -#define glWindowPos2dvMESA GLEW_GET_FUN(__glewWindowPos2dvMESA) -#define glWindowPos2fMESA GLEW_GET_FUN(__glewWindowPos2fMESA) -#define glWindowPos2fvMESA GLEW_GET_FUN(__glewWindowPos2fvMESA) -#define glWindowPos2iMESA GLEW_GET_FUN(__glewWindowPos2iMESA) -#define glWindowPos2ivMESA GLEW_GET_FUN(__glewWindowPos2ivMESA) -#define glWindowPos2sMESA GLEW_GET_FUN(__glewWindowPos2sMESA) -#define glWindowPos2svMESA GLEW_GET_FUN(__glewWindowPos2svMESA) -#define glWindowPos3dMESA GLEW_GET_FUN(__glewWindowPos3dMESA) -#define glWindowPos3dvMESA GLEW_GET_FUN(__glewWindowPos3dvMESA) -#define glWindowPos3fMESA GLEW_GET_FUN(__glewWindowPos3fMESA) -#define glWindowPos3fvMESA GLEW_GET_FUN(__glewWindowPos3fvMESA) -#define glWindowPos3iMESA GLEW_GET_FUN(__glewWindowPos3iMESA) -#define glWindowPos3ivMESA GLEW_GET_FUN(__glewWindowPos3ivMESA) -#define glWindowPos3sMESA GLEW_GET_FUN(__glewWindowPos3sMESA) -#define glWindowPos3svMESA GLEW_GET_FUN(__glewWindowPos3svMESA) -#define glWindowPos4dMESA GLEW_GET_FUN(__glewWindowPos4dMESA) -#define glWindowPos4dvMESA GLEW_GET_FUN(__glewWindowPos4dvMESA) -#define glWindowPos4fMESA GLEW_GET_FUN(__glewWindowPos4fMESA) -#define glWindowPos4fvMESA GLEW_GET_FUN(__glewWindowPos4fvMESA) -#define glWindowPos4iMESA GLEW_GET_FUN(__glewWindowPos4iMESA) -#define glWindowPos4ivMESA GLEW_GET_FUN(__glewWindowPos4ivMESA) -#define glWindowPos4sMESA GLEW_GET_FUN(__glewWindowPos4sMESA) -#define glWindowPos4svMESA GLEW_GET_FUN(__glewWindowPos4svMESA) - -#define GLEW_MESA_window_pos GLEW_GET_VAR(__GLEW_MESA_window_pos) - -#endif /* GL_MESA_window_pos */ - -/* ------------------------- GL_MESA_ycbcr_texture ------------------------- */ - -#ifndef GL_MESA_ycbcr_texture -#define GL_MESA_ycbcr_texture 1 - -#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB -#define GL_YCBCR_MESA 0x8757 - -#define GLEW_MESA_ycbcr_texture GLEW_GET_VAR(__GLEW_MESA_ycbcr_texture) - -#endif /* GL_MESA_ycbcr_texture */ - -/* ------------------------- GL_NVX_gpu_memory_info ------------------------ */ - -#ifndef GL_NVX_gpu_memory_info -#define GL_NVX_gpu_memory_info 1 - -#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 -#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 -#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 -#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A -#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B - -#define GLEW_NVX_gpu_memory_info GLEW_GET_VAR(__GLEW_NVX_gpu_memory_info) - -#endif /* GL_NVX_gpu_memory_info */ - -/* --------------------------- GL_NV_blend_square -------------------------- */ - -#ifndef GL_NV_blend_square -#define GL_NV_blend_square 1 - -#define GLEW_NV_blend_square GLEW_GET_VAR(__GLEW_NV_blend_square) - -#endif /* GL_NV_blend_square */ - -/* ------------------------ GL_NV_conditional_render ----------------------- */ - -#ifndef GL_NV_conditional_render -#define GL_NV_conditional_render 1 - -#define GL_QUERY_WAIT_NV 0x8E13 -#define GL_QUERY_NO_WAIT_NV 0x8E14 -#define GL_QUERY_BY_REGION_WAIT_NV 0x8E15 -#define GL_QUERY_BY_REGION_NO_WAIT_NV 0x8E16 - -typedef void (GLAPIENTRY * PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode); -typedef void (GLAPIENTRY * PFNGLENDCONDITIONALRENDERNVPROC) (void); - -#define glBeginConditionalRenderNV GLEW_GET_FUN(__glewBeginConditionalRenderNV) -#define glEndConditionalRenderNV GLEW_GET_FUN(__glewEndConditionalRenderNV) - -#define GLEW_NV_conditional_render GLEW_GET_VAR(__GLEW_NV_conditional_render) - -#endif /* GL_NV_conditional_render */ - -/* ----------------------- GL_NV_copy_depth_to_color ----------------------- */ - -#ifndef GL_NV_copy_depth_to_color -#define GL_NV_copy_depth_to_color 1 - -#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E -#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F - -#define GLEW_NV_copy_depth_to_color GLEW_GET_VAR(__GLEW_NV_copy_depth_to_color) - -#endif /* GL_NV_copy_depth_to_color */ - -/* ---------------------------- GL_NV_copy_image --------------------------- */ - -#ifndef GL_NV_copy_image -#define GL_NV_copy_image 1 - -typedef void (GLAPIENTRY * PFNGLCOPYIMAGESUBDATANVPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); - -#define glCopyImageSubDataNV GLEW_GET_FUN(__glewCopyImageSubDataNV) - -#define GLEW_NV_copy_image GLEW_GET_VAR(__GLEW_NV_copy_image) - -#endif /* GL_NV_copy_image */ - -/* ------------------------ GL_NV_depth_buffer_float ----------------------- */ - -#ifndef GL_NV_depth_buffer_float -#define GL_NV_depth_buffer_float 1 - -#define GL_DEPTH_COMPONENT32F_NV 0x8DAB -#define GL_DEPTH32F_STENCIL8_NV 0x8DAC -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD -#define GL_DEPTH_BUFFER_FLOAT_MODE_NV 0x8DAF - -typedef void (GLAPIENTRY * PFNGLCLEARDEPTHDNVPROC) (GLdouble depth); -typedef void (GLAPIENTRY * PFNGLDEPTHBOUNDSDNVPROC) (GLdouble zmin, GLdouble zmax); -typedef void (GLAPIENTRY * PFNGLDEPTHRANGEDNVPROC) (GLdouble zNear, GLdouble zFar); - -#define glClearDepthdNV GLEW_GET_FUN(__glewClearDepthdNV) -#define glDepthBoundsdNV GLEW_GET_FUN(__glewDepthBoundsdNV) -#define glDepthRangedNV GLEW_GET_FUN(__glewDepthRangedNV) - -#define GLEW_NV_depth_buffer_float GLEW_GET_VAR(__GLEW_NV_depth_buffer_float) - -#endif /* GL_NV_depth_buffer_float */ - -/* --------------------------- GL_NV_depth_clamp --------------------------- */ - -#ifndef GL_NV_depth_clamp -#define GL_NV_depth_clamp 1 - -#define GL_DEPTH_CLAMP_NV 0x864F - -#define GLEW_NV_depth_clamp GLEW_GET_VAR(__GLEW_NV_depth_clamp) - -#endif /* GL_NV_depth_clamp */ - -/* ---------------------- GL_NV_depth_range_unclamped ---------------------- */ - -#ifndef GL_NV_depth_range_unclamped -#define GL_NV_depth_range_unclamped 1 - -#define GL_SAMPLE_COUNT_BITS_NV 0x8864 -#define GL_CURRENT_SAMPLE_COUNT_QUERY_NV 0x8865 -#define GL_QUERY_RESULT_NV 0x8866 -#define GL_QUERY_RESULT_AVAILABLE_NV 0x8867 -#define GL_SAMPLE_COUNT_NV 0x8914 - -#define GLEW_NV_depth_range_unclamped GLEW_GET_VAR(__GLEW_NV_depth_range_unclamped) - -#endif /* GL_NV_depth_range_unclamped */ - -/* ---------------------------- GL_NV_evaluators --------------------------- */ - -#ifndef GL_NV_evaluators -#define GL_NV_evaluators 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); -typedef void (GLAPIENTRY * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void* points); -typedef void (GLAPIENTRY * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void* points); -typedef void (GLAPIENTRY * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint* params); - -#define glEvalMapsNV GLEW_GET_FUN(__glewEvalMapsNV) -#define glGetMapAttribParameterfvNV GLEW_GET_FUN(__glewGetMapAttribParameterfvNV) -#define glGetMapAttribParameterivNV GLEW_GET_FUN(__glewGetMapAttribParameterivNV) -#define glGetMapControlPointsNV GLEW_GET_FUN(__glewGetMapControlPointsNV) -#define glGetMapParameterfvNV GLEW_GET_FUN(__glewGetMapParameterfvNV) -#define glGetMapParameterivNV GLEW_GET_FUN(__glewGetMapParameterivNV) -#define glMapControlPointsNV GLEW_GET_FUN(__glewMapControlPointsNV) -#define glMapParameterfvNV GLEW_GET_FUN(__glewMapParameterfvNV) -#define glMapParameterivNV GLEW_GET_FUN(__glewMapParameterivNV) - -#define GLEW_NV_evaluators GLEW_GET_VAR(__GLEW_NV_evaluators) - -#endif /* GL_NV_evaluators */ - -/* ----------------------- GL_NV_explicit_multisample ---------------------- */ - -#ifndef GL_NV_explicit_multisample -#define GL_NV_explicit_multisample 1 - -#define GL_SAMPLE_POSITION_NV 0x8E50 -#define GL_SAMPLE_MASK_NV 0x8E51 -#define GL_SAMPLE_MASK_VALUE_NV 0x8E52 -#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53 -#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54 -#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55 -#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56 -#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57 -#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58 -#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59 - -typedef void (GLAPIENTRY * PFNGLGETMULTISAMPLEFVNVPROC) (GLenum pname, GLuint index, GLfloat* val); -typedef void (GLAPIENTRY * PFNGLSAMPLEMASKINDEXEDNVPROC) (GLuint index, GLbitfield mask); -typedef void (GLAPIENTRY * PFNGLTEXRENDERBUFFERNVPROC) (GLenum target, GLuint renderbuffer); - -#define glGetMultisamplefvNV GLEW_GET_FUN(__glewGetMultisamplefvNV) -#define glSampleMaskIndexedNV GLEW_GET_FUN(__glewSampleMaskIndexedNV) -#define glTexRenderbufferNV GLEW_GET_FUN(__glewTexRenderbufferNV) - -#define GLEW_NV_explicit_multisample GLEW_GET_VAR(__GLEW_NV_explicit_multisample) - -#endif /* GL_NV_explicit_multisample */ - -/* ------------------------------ GL_NV_fence ------------------------------ */ - -#ifndef GL_NV_fence -#define GL_NV_fence 1 - -#define GL_ALL_COMPLETED_NV 0x84F2 -#define GL_FENCE_STATUS_NV 0x84F3 -#define GL_FENCE_CONDITION_NV 0x84F4 - -typedef void (GLAPIENTRY * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint* fences); -typedef void (GLAPIENTRY * PFNGLFINISHFENCENVPROC) (GLuint fence); -typedef void (GLAPIENTRY * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint* fences); -typedef void (GLAPIENTRY * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISFENCENVPROC) (GLuint fence); -typedef void (GLAPIENTRY * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); -typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCENVPROC) (GLuint fence); - -#define glDeleteFencesNV GLEW_GET_FUN(__glewDeleteFencesNV) -#define glFinishFenceNV GLEW_GET_FUN(__glewFinishFenceNV) -#define glGenFencesNV GLEW_GET_FUN(__glewGenFencesNV) -#define glGetFenceivNV GLEW_GET_FUN(__glewGetFenceivNV) -#define glIsFenceNV GLEW_GET_FUN(__glewIsFenceNV) -#define glSetFenceNV GLEW_GET_FUN(__glewSetFenceNV) -#define glTestFenceNV GLEW_GET_FUN(__glewTestFenceNV) - -#define GLEW_NV_fence GLEW_GET_VAR(__GLEW_NV_fence) - -#endif /* GL_NV_fence */ - -/* --------------------------- GL_NV_float_buffer -------------------------- */ - -#ifndef GL_NV_float_buffer -#define GL_NV_float_buffer 1 - -#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 - -#define GLEW_NV_float_buffer GLEW_GET_VAR(__GLEW_NV_float_buffer) - -#endif /* GL_NV_float_buffer */ - -/* --------------------------- GL_NV_fog_distance -------------------------- */ - -#ifndef GL_NV_fog_distance -#define GL_NV_fog_distance 1 - -#define GL_FOG_DISTANCE_MODE_NV 0x855A -#define GL_EYE_RADIAL_NV 0x855B -#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C - -#define GLEW_NV_fog_distance GLEW_GET_VAR(__GLEW_NV_fog_distance) - -#endif /* GL_NV_fog_distance */ - -/* ------------------------- GL_NV_fragment_program ------------------------ */ - -#ifndef GL_NV_fragment_program -#define GL_NV_fragment_program 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble *params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4DNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLdouble v[]); -typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4FNVPROC) (GLuint id, GLsizei len, const GLubyte* name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC) (GLuint id, GLsizei len, const GLubyte* name, const GLfloat v[]); - -#define glGetProgramNamedParameterdvNV GLEW_GET_FUN(__glewGetProgramNamedParameterdvNV) -#define glGetProgramNamedParameterfvNV GLEW_GET_FUN(__glewGetProgramNamedParameterfvNV) -#define glProgramNamedParameter4dNV GLEW_GET_FUN(__glewProgramNamedParameter4dNV) -#define glProgramNamedParameter4dvNV GLEW_GET_FUN(__glewProgramNamedParameter4dvNV) -#define glProgramNamedParameter4fNV GLEW_GET_FUN(__glewProgramNamedParameter4fNV) -#define glProgramNamedParameter4fvNV GLEW_GET_FUN(__glewProgramNamedParameter4fvNV) - -#define GLEW_NV_fragment_program GLEW_GET_VAR(__GLEW_NV_fragment_program) - -#endif /* GL_NV_fragment_program */ - -/* ------------------------ GL_NV_fragment_program2 ------------------------ */ - -#ifndef GL_NV_fragment_program2 -#define GL_NV_fragment_program2 1 - -#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 - -#define GLEW_NV_fragment_program2 GLEW_GET_VAR(__GLEW_NV_fragment_program2) - -#endif /* GL_NV_fragment_program2 */ - -/* ------------------------ GL_NV_fragment_program4 ------------------------ */ - -#ifndef GL_NV_fragment_program4 -#define GL_NV_fragment_program4 1 - -#define GLEW_NV_fragment_program4 GLEW_GET_VAR(__GLEW_NV_fragment_program4) - -#endif /* GL_NV_fragment_program4 */ - -/* --------------------- GL_NV_fragment_program_option --------------------- */ - -#ifndef GL_NV_fragment_program_option -#define GL_NV_fragment_program_option 1 - -#define GLEW_NV_fragment_program_option GLEW_GET_VAR(__GLEW_NV_fragment_program_option) - -#endif /* GL_NV_fragment_program_option */ - -/* ----------------- GL_NV_framebuffer_multisample_coverage ---------------- */ - -#ifndef GL_NV_framebuffer_multisample_coverage -#define GL_NV_framebuffer_multisample_coverage 1 - -#define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB -#define GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10 -#define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11 -#define GL_MULTISAMPLE_COVERAGE_MODES_NV 0x8E12 - -typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); - -#define glRenderbufferStorageMultisampleCoverageNV GLEW_GET_FUN(__glewRenderbufferStorageMultisampleCoverageNV) - -#define GLEW_NV_framebuffer_multisample_coverage GLEW_GET_VAR(__GLEW_NV_framebuffer_multisample_coverage) - -#endif /* GL_NV_framebuffer_multisample_coverage */ - -/* ------------------------ GL_NV_geometry_program4 ------------------------ */ - -#ifndef GL_NV_geometry_program4 -#define GL_NV_geometry_program4 1 - -#define GL_GEOMETRY_PROGRAM_NV 0x8C26 -#define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27 -#define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28 - -typedef void (GLAPIENTRY * PFNGLPROGRAMVERTEXLIMITNVPROC) (GLenum target, GLint limit); - -#define glProgramVertexLimitNV GLEW_GET_FUN(__glewProgramVertexLimitNV) - -#define GLEW_NV_geometry_program4 GLEW_GET_VAR(__GLEW_NV_geometry_program4) - -#endif /* GL_NV_geometry_program4 */ - -/* ------------------------- GL_NV_geometry_shader4 ------------------------ */ - -#ifndef GL_NV_geometry_shader4 -#define GL_NV_geometry_shader4 1 - -#define GLEW_NV_geometry_shader4 GLEW_GET_VAR(__GLEW_NV_geometry_shader4) - -#endif /* GL_NV_geometry_shader4 */ - -/* --------------------------- GL_NV_gpu_program4 -------------------------- */ - -#ifndef GL_NV_gpu_program4 -#define GL_NV_gpu_program4 1 - -#define GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905 -#define GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906 -#define GL_PROGRAM_RESULT_COMPONENTS_NV 0x8907 -#define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908 -#define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909 -#define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5 -#define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6 - -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4INVPROC) (GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC) (GLenum target, GLuint index, const GLint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4UINVPROC) (GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC) (GLenum target, GLuint index, const GLuint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLuint *params); - -#define glProgramEnvParameterI4iNV GLEW_GET_FUN(__glewProgramEnvParameterI4iNV) -#define glProgramEnvParameterI4ivNV GLEW_GET_FUN(__glewProgramEnvParameterI4ivNV) -#define glProgramEnvParameterI4uiNV GLEW_GET_FUN(__glewProgramEnvParameterI4uiNV) -#define glProgramEnvParameterI4uivNV GLEW_GET_FUN(__glewProgramEnvParameterI4uivNV) -#define glProgramEnvParametersI4ivNV GLEW_GET_FUN(__glewProgramEnvParametersI4ivNV) -#define glProgramEnvParametersI4uivNV GLEW_GET_FUN(__glewProgramEnvParametersI4uivNV) -#define glProgramLocalParameterI4iNV GLEW_GET_FUN(__glewProgramLocalParameterI4iNV) -#define glProgramLocalParameterI4ivNV GLEW_GET_FUN(__glewProgramLocalParameterI4ivNV) -#define glProgramLocalParameterI4uiNV GLEW_GET_FUN(__glewProgramLocalParameterI4uiNV) -#define glProgramLocalParameterI4uivNV GLEW_GET_FUN(__glewProgramLocalParameterI4uivNV) -#define glProgramLocalParametersI4ivNV GLEW_GET_FUN(__glewProgramLocalParametersI4ivNV) -#define glProgramLocalParametersI4uivNV GLEW_GET_FUN(__glewProgramLocalParametersI4uivNV) - -#define GLEW_NV_gpu_program4 GLEW_GET_VAR(__GLEW_NV_gpu_program4) - -#endif /* GL_NV_gpu_program4 */ - -/* --------------------------- GL_NV_gpu_program5 -------------------------- */ - -#ifndef GL_NV_gpu_program5 -#define GL_NV_gpu_program5 1 - -#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C -#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F - -#define GLEW_NV_gpu_program5 GLEW_GET_VAR(__GLEW_NV_gpu_program5) - -#endif /* GL_NV_gpu_program5 */ - -/* ------------------------- GL_NV_gpu_program_fp64 ------------------------ */ - -#ifndef GL_NV_gpu_program_fp64 -#define GL_NV_gpu_program_fp64 1 - -#define GLEW_NV_gpu_program_fp64 GLEW_GET_VAR(__GLEW_NV_gpu_program_fp64) - -#endif /* GL_NV_gpu_program_fp64 */ - -/* --------------------------- GL_NV_gpu_shader5 --------------------------- */ - -#ifndef GL_NV_gpu_shader5 -#define GL_NV_gpu_shader5 1 - -#define GL_INT64_NV 0x140E -#define GL_UNSIGNED_INT64_NV 0x140F -#define GL_INT8_NV 0x8FE0 -#define GL_INT8_VEC2_NV 0x8FE1 -#define GL_INT8_VEC3_NV 0x8FE2 -#define GL_INT8_VEC4_NV 0x8FE3 -#define GL_INT16_NV 0x8FE4 -#define GL_INT16_VEC2_NV 0x8FE5 -#define GL_INT16_VEC3_NV 0x8FE6 -#define GL_INT16_VEC4_NV 0x8FE7 -#define GL_INT64_VEC2_NV 0x8FE9 -#define GL_INT64_VEC3_NV 0x8FEA -#define GL_INT64_VEC4_NV 0x8FEB -#define GL_UNSIGNED_INT8_NV 0x8FEC -#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED -#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE -#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF -#define GL_UNSIGNED_INT16_NV 0x8FF0 -#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 -#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 -#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 -#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 -#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 -#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 -#define GL_FLOAT16_NV 0x8FF8 -#define GL_FLOAT16_VEC2_NV 0x8FF9 -#define GL_FLOAT16_VEC3_NV 0x8FFA -#define GL_FLOAT16_VEC4_NV 0x8FFB - -typedef void (GLAPIENTRY * PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT* params); -typedef void (GLAPIENTRY * PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x); -typedef void (GLAPIENTRY * PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x); -typedef void (GLAPIENTRY * PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y); -typedef void (GLAPIENTRY * PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y); -typedef void (GLAPIENTRY * PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (GLAPIENTRY * PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (GLAPIENTRY * PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (GLAPIENTRY * PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (GLAPIENTRY * PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); - -#define glGetUniformi64vNV GLEW_GET_FUN(__glewGetUniformi64vNV) -#define glGetUniformui64vNV GLEW_GET_FUN(__glewGetUniformui64vNV) -#define glProgramUniform1i64NV GLEW_GET_FUN(__glewProgramUniform1i64NV) -#define glProgramUniform1i64vNV GLEW_GET_FUN(__glewProgramUniform1i64vNV) -#define glProgramUniform1ui64NV GLEW_GET_FUN(__glewProgramUniform1ui64NV) -#define glProgramUniform1ui64vNV GLEW_GET_FUN(__glewProgramUniform1ui64vNV) -#define glProgramUniform2i64NV GLEW_GET_FUN(__glewProgramUniform2i64NV) -#define glProgramUniform2i64vNV GLEW_GET_FUN(__glewProgramUniform2i64vNV) -#define glProgramUniform2ui64NV GLEW_GET_FUN(__glewProgramUniform2ui64NV) -#define glProgramUniform2ui64vNV GLEW_GET_FUN(__glewProgramUniform2ui64vNV) -#define glProgramUniform3i64NV GLEW_GET_FUN(__glewProgramUniform3i64NV) -#define glProgramUniform3i64vNV GLEW_GET_FUN(__glewProgramUniform3i64vNV) -#define glProgramUniform3ui64NV GLEW_GET_FUN(__glewProgramUniform3ui64NV) -#define glProgramUniform3ui64vNV GLEW_GET_FUN(__glewProgramUniform3ui64vNV) -#define glProgramUniform4i64NV GLEW_GET_FUN(__glewProgramUniform4i64NV) -#define glProgramUniform4i64vNV GLEW_GET_FUN(__glewProgramUniform4i64vNV) -#define glProgramUniform4ui64NV GLEW_GET_FUN(__glewProgramUniform4ui64NV) -#define glProgramUniform4ui64vNV GLEW_GET_FUN(__glewProgramUniform4ui64vNV) -#define glUniform1i64NV GLEW_GET_FUN(__glewUniform1i64NV) -#define glUniform1i64vNV GLEW_GET_FUN(__glewUniform1i64vNV) -#define glUniform1ui64NV GLEW_GET_FUN(__glewUniform1ui64NV) -#define glUniform1ui64vNV GLEW_GET_FUN(__glewUniform1ui64vNV) -#define glUniform2i64NV GLEW_GET_FUN(__glewUniform2i64NV) -#define glUniform2i64vNV GLEW_GET_FUN(__glewUniform2i64vNV) -#define glUniform2ui64NV GLEW_GET_FUN(__glewUniform2ui64NV) -#define glUniform2ui64vNV GLEW_GET_FUN(__glewUniform2ui64vNV) -#define glUniform3i64NV GLEW_GET_FUN(__glewUniform3i64NV) -#define glUniform3i64vNV GLEW_GET_FUN(__glewUniform3i64vNV) -#define glUniform3ui64NV GLEW_GET_FUN(__glewUniform3ui64NV) -#define glUniform3ui64vNV GLEW_GET_FUN(__glewUniform3ui64vNV) -#define glUniform4i64NV GLEW_GET_FUN(__glewUniform4i64NV) -#define glUniform4i64vNV GLEW_GET_FUN(__glewUniform4i64vNV) -#define glUniform4ui64NV GLEW_GET_FUN(__glewUniform4ui64NV) -#define glUniform4ui64vNV GLEW_GET_FUN(__glewUniform4ui64vNV) - -#define GLEW_NV_gpu_shader5 GLEW_GET_VAR(__GLEW_NV_gpu_shader5) - -#endif /* GL_NV_gpu_shader5 */ - -/* ---------------------------- GL_NV_half_float --------------------------- */ - -#ifndef GL_NV_half_float -#define GL_NV_half_float 1 - -#define GL_HALF_FLOAT_NV 0x140B - -typedef unsigned short GLhalf; - -typedef void (GLAPIENTRY * PFNGLCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (GLAPIENTRY * PFNGLCOLOR3HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLCOLOR4HNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha); -typedef void (GLAPIENTRY * PFNGLCOLOR4HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLFOGCOORDHNVPROC) (GLhalf fog); -typedef void (GLAPIENTRY * PFNGLFOGCOORDHVNVPROC) (const GLhalf* fog); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1HNVPROC) (GLenum target, GLhalf s); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1HVNVPROC) (GLenum target, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2HNVPROC) (GLenum target, GLhalf s, GLhalf t); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2HVNVPROC) (GLenum target, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3HVNVPROC) (GLenum target, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4HNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4HVNVPROC) (GLenum target, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLNORMAL3HNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz); -typedef void (GLAPIENTRY * PFNGLNORMAL3HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3HNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD1HNVPROC) (GLhalf s); -typedef void (GLAPIENTRY * PFNGLTEXCOORD1HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2HNVPROC) (GLhalf s, GLhalf t); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD3HNVPROC) (GLhalf s, GLhalf t, GLhalf r); -typedef void (GLAPIENTRY * PFNGLTEXCOORD3HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD4HNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (GLAPIENTRY * PFNGLTEXCOORD4HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEX2HNVPROC) (GLhalf x, GLhalf y); -typedef void (GLAPIENTRY * PFNGLVERTEX2HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEX3HNVPROC) (GLhalf x, GLhalf y, GLhalf z); -typedef void (GLAPIENTRY * PFNGLVERTEX3HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEX4HNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (GLAPIENTRY * PFNGLVERTEX4HVNVPROC) (const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1HNVPROC) (GLuint index, GLhalf x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1HVNVPROC) (GLuint index, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2HNVPROC) (GLuint index, GLhalf x, GLhalf y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2HVNVPROC) (GLuint index, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3HVNVPROC) (GLuint index, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4HNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4HVNVPROC) (GLuint index, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4HVNVPROC) (GLuint index, GLsizei n, const GLhalf* v); -typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTHNVPROC) (GLhalf weight); -typedef void (GLAPIENTRY * PFNGLVERTEXWEIGHTHVNVPROC) (const GLhalf* weight); - -#define glColor3hNV GLEW_GET_FUN(__glewColor3hNV) -#define glColor3hvNV GLEW_GET_FUN(__glewColor3hvNV) -#define glColor4hNV GLEW_GET_FUN(__glewColor4hNV) -#define glColor4hvNV GLEW_GET_FUN(__glewColor4hvNV) -#define glFogCoordhNV GLEW_GET_FUN(__glewFogCoordhNV) -#define glFogCoordhvNV GLEW_GET_FUN(__glewFogCoordhvNV) -#define glMultiTexCoord1hNV GLEW_GET_FUN(__glewMultiTexCoord1hNV) -#define glMultiTexCoord1hvNV GLEW_GET_FUN(__glewMultiTexCoord1hvNV) -#define glMultiTexCoord2hNV GLEW_GET_FUN(__glewMultiTexCoord2hNV) -#define glMultiTexCoord2hvNV GLEW_GET_FUN(__glewMultiTexCoord2hvNV) -#define glMultiTexCoord3hNV GLEW_GET_FUN(__glewMultiTexCoord3hNV) -#define glMultiTexCoord3hvNV GLEW_GET_FUN(__glewMultiTexCoord3hvNV) -#define glMultiTexCoord4hNV GLEW_GET_FUN(__glewMultiTexCoord4hNV) -#define glMultiTexCoord4hvNV GLEW_GET_FUN(__glewMultiTexCoord4hvNV) -#define glNormal3hNV GLEW_GET_FUN(__glewNormal3hNV) -#define glNormal3hvNV GLEW_GET_FUN(__glewNormal3hvNV) -#define glSecondaryColor3hNV GLEW_GET_FUN(__glewSecondaryColor3hNV) -#define glSecondaryColor3hvNV GLEW_GET_FUN(__glewSecondaryColor3hvNV) -#define glTexCoord1hNV GLEW_GET_FUN(__glewTexCoord1hNV) -#define glTexCoord1hvNV GLEW_GET_FUN(__glewTexCoord1hvNV) -#define glTexCoord2hNV GLEW_GET_FUN(__glewTexCoord2hNV) -#define glTexCoord2hvNV GLEW_GET_FUN(__glewTexCoord2hvNV) -#define glTexCoord3hNV GLEW_GET_FUN(__glewTexCoord3hNV) -#define glTexCoord3hvNV GLEW_GET_FUN(__glewTexCoord3hvNV) -#define glTexCoord4hNV GLEW_GET_FUN(__glewTexCoord4hNV) -#define glTexCoord4hvNV GLEW_GET_FUN(__glewTexCoord4hvNV) -#define glVertex2hNV GLEW_GET_FUN(__glewVertex2hNV) -#define glVertex2hvNV GLEW_GET_FUN(__glewVertex2hvNV) -#define glVertex3hNV GLEW_GET_FUN(__glewVertex3hNV) -#define glVertex3hvNV GLEW_GET_FUN(__glewVertex3hvNV) -#define glVertex4hNV GLEW_GET_FUN(__glewVertex4hNV) -#define glVertex4hvNV GLEW_GET_FUN(__glewVertex4hvNV) -#define glVertexAttrib1hNV GLEW_GET_FUN(__glewVertexAttrib1hNV) -#define glVertexAttrib1hvNV GLEW_GET_FUN(__glewVertexAttrib1hvNV) -#define glVertexAttrib2hNV GLEW_GET_FUN(__glewVertexAttrib2hNV) -#define glVertexAttrib2hvNV GLEW_GET_FUN(__glewVertexAttrib2hvNV) -#define glVertexAttrib3hNV GLEW_GET_FUN(__glewVertexAttrib3hNV) -#define glVertexAttrib3hvNV GLEW_GET_FUN(__glewVertexAttrib3hvNV) -#define glVertexAttrib4hNV GLEW_GET_FUN(__glewVertexAttrib4hNV) -#define glVertexAttrib4hvNV GLEW_GET_FUN(__glewVertexAttrib4hvNV) -#define glVertexAttribs1hvNV GLEW_GET_FUN(__glewVertexAttribs1hvNV) -#define glVertexAttribs2hvNV GLEW_GET_FUN(__glewVertexAttribs2hvNV) -#define glVertexAttribs3hvNV GLEW_GET_FUN(__glewVertexAttribs3hvNV) -#define glVertexAttribs4hvNV GLEW_GET_FUN(__glewVertexAttribs4hvNV) -#define glVertexWeighthNV GLEW_GET_FUN(__glewVertexWeighthNV) -#define glVertexWeighthvNV GLEW_GET_FUN(__glewVertexWeighthvNV) - -#define GLEW_NV_half_float GLEW_GET_VAR(__GLEW_NV_half_float) - -#endif /* GL_NV_half_float */ - -/* ------------------------ GL_NV_light_max_exponent ----------------------- */ - -#ifndef GL_NV_light_max_exponent -#define GL_NV_light_max_exponent 1 - -#define GL_MAX_SHININESS_NV 0x8504 -#define GL_MAX_SPOT_EXPONENT_NV 0x8505 - -#define GLEW_NV_light_max_exponent GLEW_GET_VAR(__GLEW_NV_light_max_exponent) - -#endif /* GL_NV_light_max_exponent */ - -/* ----------------------- GL_NV_multisample_coverage ---------------------- */ - -#ifndef GL_NV_multisample_coverage -#define GL_NV_multisample_coverage 1 - -#define GL_COVERAGE_SAMPLES_NV 0x80A9 -#define GL_COLOR_SAMPLES_NV 0x8E20 - -#define GLEW_NV_multisample_coverage GLEW_GET_VAR(__GLEW_NV_multisample_coverage) - -#endif /* GL_NV_multisample_coverage */ - -/* --------------------- GL_NV_multisample_filter_hint --------------------- */ - -#ifndef GL_NV_multisample_filter_hint -#define GL_NV_multisample_filter_hint 1 - -#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 - -#define GLEW_NV_multisample_filter_hint GLEW_GET_VAR(__GLEW_NV_multisample_filter_hint) - -#endif /* GL_NV_multisample_filter_hint */ - -/* ------------------------- GL_NV_occlusion_query ------------------------- */ - -#ifndef GL_NV_occlusion_query -#define GL_NV_occlusion_query 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLENDOCCLUSIONQUERYNVPROC) (void); -typedef void (GLAPIENTRY * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint* ids); -typedef void (GLAPIENTRY * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); - -#define glBeginOcclusionQueryNV GLEW_GET_FUN(__glewBeginOcclusionQueryNV) -#define glDeleteOcclusionQueriesNV GLEW_GET_FUN(__glewDeleteOcclusionQueriesNV) -#define glEndOcclusionQueryNV GLEW_GET_FUN(__glewEndOcclusionQueryNV) -#define glGenOcclusionQueriesNV GLEW_GET_FUN(__glewGenOcclusionQueriesNV) -#define glGetOcclusionQueryivNV GLEW_GET_FUN(__glewGetOcclusionQueryivNV) -#define glGetOcclusionQueryuivNV GLEW_GET_FUN(__glewGetOcclusionQueryuivNV) -#define glIsOcclusionQueryNV GLEW_GET_FUN(__glewIsOcclusionQueryNV) - -#define GLEW_NV_occlusion_query GLEW_GET_VAR(__GLEW_NV_occlusion_query) - -#endif /* GL_NV_occlusion_query */ - -/* ----------------------- GL_NV_packed_depth_stencil ---------------------- */ - -#ifndef GL_NV_packed_depth_stencil -#define GL_NV_packed_depth_stencil 1 - -#define GL_DEPTH_STENCIL_NV 0x84F9 -#define GL_UNSIGNED_INT_24_8_NV 0x84FA - -#define GLEW_NV_packed_depth_stencil GLEW_GET_VAR(__GLEW_NV_packed_depth_stencil) - -#endif /* GL_NV_packed_depth_stencil */ - -/* --------------------- GL_NV_parameter_buffer_object --------------------- */ - -#ifndef GL_NV_parameter_buffer_object -#define GL_NV_parameter_buffer_object 1 - -#define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0 -#define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1 -#define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2 -#define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3 -#define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4 - -typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLuint *params); -typedef void (GLAPIENTRY * PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat *params); - -#define glProgramBufferParametersIivNV GLEW_GET_FUN(__glewProgramBufferParametersIivNV) -#define glProgramBufferParametersIuivNV GLEW_GET_FUN(__glewProgramBufferParametersIuivNV) -#define glProgramBufferParametersfvNV GLEW_GET_FUN(__glewProgramBufferParametersfvNV) - -#define GLEW_NV_parameter_buffer_object GLEW_GET_VAR(__GLEW_NV_parameter_buffer_object) - -#endif /* GL_NV_parameter_buffer_object */ - -/* --------------------- GL_NV_parameter_buffer_object2 -------------------- */ - -#ifndef GL_NV_parameter_buffer_object2 -#define GL_NV_parameter_buffer_object2 1 - -#define GLEW_NV_parameter_buffer_object2 GLEW_GET_VAR(__GLEW_NV_parameter_buffer_object2) - -#endif /* GL_NV_parameter_buffer_object2 */ - -/* ------------------------- GL_NV_pixel_data_range ------------------------ */ - -#ifndef GL_NV_pixel_data_range -#define GL_NV_pixel_data_range 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLFLUSHPIXELDATARANGENVPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLPIXELDATARANGENVPROC) (GLenum target, GLsizei length, void* pointer); - -#define glFlushPixelDataRangeNV GLEW_GET_FUN(__glewFlushPixelDataRangeNV) -#define glPixelDataRangeNV GLEW_GET_FUN(__glewPixelDataRangeNV) - -#define GLEW_NV_pixel_data_range GLEW_GET_VAR(__GLEW_NV_pixel_data_range) - -#endif /* GL_NV_pixel_data_range */ - -/* --------------------------- GL_NV_point_sprite -------------------------- */ - -#ifndef GL_NV_point_sprite -#define GL_NV_point_sprite 1 - -#define GL_POINT_SPRITE_NV 0x8861 -#define GL_COORD_REPLACE_NV 0x8862 -#define GL_POINT_SPRITE_R_MODE_NV 0x8863 - -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const GLint* params); - -#define glPointParameteriNV GLEW_GET_FUN(__glewPointParameteriNV) -#define glPointParameterivNV GLEW_GET_FUN(__glewPointParameterivNV) - -#define GLEW_NV_point_sprite GLEW_GET_VAR(__GLEW_NV_point_sprite) - -#endif /* GL_NV_point_sprite */ - -/* -------------------------- GL_NV_present_video -------------------------- */ - -#ifndef GL_NV_present_video -#define GL_NV_present_video 1 - -#define GL_FRAME_NV 0x8E26 -#define GL_FIELDS_NV 0x8E27 -#define GL_CURRENT_TIME_NV 0x8E28 -#define GL_NUM_FILL_STREAMS_NV 0x8E29 -#define GL_PRESENT_TIME_NV 0x8E2A -#define GL_PRESENT_DURATION_NV 0x8E2B - -typedef void (GLAPIENTRY * PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint* params); -typedef void (GLAPIENTRY * PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); -typedef void (GLAPIENTRY * PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); - -#define glGetVideoi64vNV GLEW_GET_FUN(__glewGetVideoi64vNV) -#define glGetVideoivNV GLEW_GET_FUN(__glewGetVideoivNV) -#define glGetVideoui64vNV GLEW_GET_FUN(__glewGetVideoui64vNV) -#define glGetVideouivNV GLEW_GET_FUN(__glewGetVideouivNV) -#define glPresentFrameDualFillNV GLEW_GET_FUN(__glewPresentFrameDualFillNV) -#define glPresentFrameKeyedNV GLEW_GET_FUN(__glewPresentFrameKeyedNV) - -#define GLEW_NV_present_video GLEW_GET_VAR(__GLEW_NV_present_video) - -#endif /* GL_NV_present_video */ - -/* ------------------------ GL_NV_primitive_restart ------------------------ */ - -#ifndef GL_NV_primitive_restart -#define GL_NV_primitive_restart 1 - -#define GL_PRIMITIVE_RESTART_NV 0x8558 -#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 - -typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXNVPROC) (GLuint index); -typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTNVPROC) (void); - -#define glPrimitiveRestartIndexNV GLEW_GET_FUN(__glewPrimitiveRestartIndexNV) -#define glPrimitiveRestartNV GLEW_GET_FUN(__glewPrimitiveRestartNV) - -#define GLEW_NV_primitive_restart GLEW_GET_VAR(__GLEW_NV_primitive_restart) - -#endif /* GL_NV_primitive_restart */ - -/* ------------------------ GL_NV_register_combiners ----------------------- */ - -#ifndef GL_NV_register_combiners -#define GL_NV_register_combiners 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (GLAPIENTRY * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (GLAPIENTRY * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint* params); - -#define glCombinerInputNV GLEW_GET_FUN(__glewCombinerInputNV) -#define glCombinerOutputNV GLEW_GET_FUN(__glewCombinerOutputNV) -#define glCombinerParameterfNV GLEW_GET_FUN(__glewCombinerParameterfNV) -#define glCombinerParameterfvNV GLEW_GET_FUN(__glewCombinerParameterfvNV) -#define glCombinerParameteriNV GLEW_GET_FUN(__glewCombinerParameteriNV) -#define glCombinerParameterivNV GLEW_GET_FUN(__glewCombinerParameterivNV) -#define glFinalCombinerInputNV GLEW_GET_FUN(__glewFinalCombinerInputNV) -#define glGetCombinerInputParameterfvNV GLEW_GET_FUN(__glewGetCombinerInputParameterfvNV) -#define glGetCombinerInputParameterivNV GLEW_GET_FUN(__glewGetCombinerInputParameterivNV) -#define glGetCombinerOutputParameterfvNV GLEW_GET_FUN(__glewGetCombinerOutputParameterfvNV) -#define glGetCombinerOutputParameterivNV GLEW_GET_FUN(__glewGetCombinerOutputParameterivNV) -#define glGetFinalCombinerInputParameterfvNV GLEW_GET_FUN(__glewGetFinalCombinerInputParameterfvNV) -#define glGetFinalCombinerInputParameterivNV GLEW_GET_FUN(__glewGetFinalCombinerInputParameterivNV) - -#define GLEW_NV_register_combiners GLEW_GET_VAR(__GLEW_NV_register_combiners) - -#endif /* GL_NV_register_combiners */ - -/* ----------------------- GL_NV_register_combiners2 ----------------------- */ - -#ifndef GL_NV_register_combiners2 -#define GL_NV_register_combiners2 1 - -#define GL_PER_STAGE_CONSTANTS_NV 0x8535 - -typedef void (GLAPIENTRY * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat* params); - -#define glCombinerStageParameterfvNV GLEW_GET_FUN(__glewCombinerStageParameterfvNV) -#define glGetCombinerStageParameterfvNV GLEW_GET_FUN(__glewGetCombinerStageParameterfvNV) - -#define GLEW_NV_register_combiners2 GLEW_GET_VAR(__GLEW_NV_register_combiners2) - -#endif /* GL_NV_register_combiners2 */ - -/* ------------------------ GL_NV_shader_buffer_load ----------------------- */ - -#ifndef GL_NV_shader_buffer_load -#define GL_NV_shader_buffer_load 1 - -#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D -#define GL_GPU_ADDRESS_NV 0x8F34 -#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 - -typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERUI64VNVPROC) (GLenum target, GLenum pname, GLuint64EXT* params); -typedef void (GLAPIENTRY * PFNGLGETINTEGERUI64VNVPROC) (GLenum value, GLuint64EXT* result); -typedef void (GLAPIENTRY * PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC) (GLuint buffer, GLenum pname, GLuint64EXT* params); -typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERRESIDENTNVPROC) (GLenum target); -typedef GLboolean (GLAPIENTRY * PFNGLISNAMEDBUFFERRESIDENTNVPROC) (GLuint buffer); -typedef void (GLAPIENTRY * PFNGLMAKEBUFFERNONRESIDENTNVPROC) (GLenum target); -typedef void (GLAPIENTRY * PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); -typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC) (GLuint buffer); -typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMUI64NVPROC) (GLuint program, GLint location, GLuint64EXT value); -typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT* value); -typedef void (GLAPIENTRY * PFNGLUNIFORMUI64NVPROC) (GLint location, GLuint64EXT value); -typedef void (GLAPIENTRY * PFNGLUNIFORMUI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT* value); - -#define glGetBufferParameterui64vNV GLEW_GET_FUN(__glewGetBufferParameterui64vNV) -#define glGetIntegerui64vNV GLEW_GET_FUN(__glewGetIntegerui64vNV) -#define glGetNamedBufferParameterui64vNV GLEW_GET_FUN(__glewGetNamedBufferParameterui64vNV) -#define glIsBufferResidentNV GLEW_GET_FUN(__glewIsBufferResidentNV) -#define glIsNamedBufferResidentNV GLEW_GET_FUN(__glewIsNamedBufferResidentNV) -#define glMakeBufferNonResidentNV GLEW_GET_FUN(__glewMakeBufferNonResidentNV) -#define glMakeBufferResidentNV GLEW_GET_FUN(__glewMakeBufferResidentNV) -#define glMakeNamedBufferNonResidentNV GLEW_GET_FUN(__glewMakeNamedBufferNonResidentNV) -#define glMakeNamedBufferResidentNV GLEW_GET_FUN(__glewMakeNamedBufferResidentNV) -#define glProgramUniformui64NV GLEW_GET_FUN(__glewProgramUniformui64NV) -#define glProgramUniformui64vNV GLEW_GET_FUN(__glewProgramUniformui64vNV) -#define glUniformui64NV GLEW_GET_FUN(__glewUniformui64NV) -#define glUniformui64vNV GLEW_GET_FUN(__glewUniformui64vNV) - -#define GLEW_NV_shader_buffer_load GLEW_GET_VAR(__GLEW_NV_shader_buffer_load) - -#endif /* GL_NV_shader_buffer_load */ - -/* ---------------------- GL_NV_tessellation_program5 ---------------------- */ - -#ifndef GL_NV_tessellation_program5 -#define GL_NV_tessellation_program5 1 - -#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 -#define GL_TESS_CONTROL_PROGRAM_NV 0x891E -#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F -#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 -#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 - -#define GLEW_NV_tessellation_program5 GLEW_GET_VAR(__GLEW_NV_tessellation_program5) - -#endif /* GL_NV_tessellation_program5 */ - -/* -------------------------- GL_NV_texgen_emboss -------------------------- */ - -#ifndef GL_NV_texgen_emboss -#define GL_NV_texgen_emboss 1 - -#define GL_EMBOSS_LIGHT_NV 0x855D -#define GL_EMBOSS_CONSTANT_NV 0x855E -#define GL_EMBOSS_MAP_NV 0x855F - -#define GLEW_NV_texgen_emboss GLEW_GET_VAR(__GLEW_NV_texgen_emboss) - -#endif /* GL_NV_texgen_emboss */ - -/* ------------------------ GL_NV_texgen_reflection ------------------------ */ - -#ifndef GL_NV_texgen_reflection -#define GL_NV_texgen_reflection 1 - -#define GL_NORMAL_MAP_NV 0x8511 -#define GL_REFLECTION_MAP_NV 0x8512 - -#define GLEW_NV_texgen_reflection GLEW_GET_VAR(__GLEW_NV_texgen_reflection) - -#endif /* GL_NV_texgen_reflection */ - -/* ------------------------- GL_NV_texture_barrier ------------------------- */ - -#ifndef GL_NV_texture_barrier -#define GL_NV_texture_barrier 1 - -typedef void (GLAPIENTRY * PFNGLTEXTUREBARRIERNVPROC) (void); - -#define glTextureBarrierNV GLEW_GET_FUN(__glewTextureBarrierNV) - -#define GLEW_NV_texture_barrier GLEW_GET_VAR(__GLEW_NV_texture_barrier) - -#endif /* GL_NV_texture_barrier */ - -/* --------------------- GL_NV_texture_compression_vtc --------------------- */ - -#ifndef GL_NV_texture_compression_vtc -#define GL_NV_texture_compression_vtc 1 - -#define GLEW_NV_texture_compression_vtc GLEW_GET_VAR(__GLEW_NV_texture_compression_vtc) - -#endif /* GL_NV_texture_compression_vtc */ - -/* ----------------------- GL_NV_texture_env_combine4 ---------------------- */ - -#ifndef GL_NV_texture_env_combine4 -#define GL_NV_texture_env_combine4 1 - -#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 - -#define GLEW_NV_texture_env_combine4 GLEW_GET_VAR(__GLEW_NV_texture_env_combine4) - -#endif /* GL_NV_texture_env_combine4 */ - -/* ---------------------- GL_NV_texture_expand_normal ---------------------- */ - -#ifndef GL_NV_texture_expand_normal -#define GL_NV_texture_expand_normal 1 - -#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F - -#define GLEW_NV_texture_expand_normal GLEW_GET_VAR(__GLEW_NV_texture_expand_normal) - -#endif /* GL_NV_texture_expand_normal */ - -/* ----------------------- GL_NV_texture_multisample ----------------------- */ - -#ifndef GL_NV_texture_multisample -#define GL_NV_texture_multisample 1 - -#define GL_TEXTURE_COVERAGE_SAMPLES_NV 0x9045 -#define GL_TEXTURE_COLOR_SAMPLES_NV 0x9046 - -typedef void (GLAPIENTRY * PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC) (GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -typedef void (GLAPIENTRY * PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC) (GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); - -#define glTexImage2DMultisampleCoverageNV GLEW_GET_FUN(__glewTexImage2DMultisampleCoverageNV) -#define glTexImage3DMultisampleCoverageNV GLEW_GET_FUN(__glewTexImage3DMultisampleCoverageNV) -#define glTextureImage2DMultisampleCoverageNV GLEW_GET_FUN(__glewTextureImage2DMultisampleCoverageNV) -#define glTextureImage2DMultisampleNV GLEW_GET_FUN(__glewTextureImage2DMultisampleNV) -#define glTextureImage3DMultisampleCoverageNV GLEW_GET_FUN(__glewTextureImage3DMultisampleCoverageNV) -#define glTextureImage3DMultisampleNV GLEW_GET_FUN(__glewTextureImage3DMultisampleNV) - -#define GLEW_NV_texture_multisample GLEW_GET_VAR(__GLEW_NV_texture_multisample) - -#endif /* GL_NV_texture_multisample */ - -/* ------------------------ GL_NV_texture_rectangle ------------------------ */ - -#ifndef GL_NV_texture_rectangle -#define GL_NV_texture_rectangle 1 - -#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 - -#define GLEW_NV_texture_rectangle GLEW_GET_VAR(__GLEW_NV_texture_rectangle) - -#endif /* GL_NV_texture_rectangle */ - -/* -------------------------- GL_NV_texture_shader ------------------------- */ - -#ifndef GL_NV_texture_shader -#define GL_NV_texture_shader 1 - -#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_2D_MATRIX_NV 0x86E1 -#define GL_OFFSET_TEXTURE_MATRIX_NV 0x86E1 -#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_BIAS_NV 0x86E3 -#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3 -#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 - -#define GLEW_NV_texture_shader GLEW_GET_VAR(__GLEW_NV_texture_shader) - -#endif /* GL_NV_texture_shader */ - -/* ------------------------- GL_NV_texture_shader2 ------------------------- */ - -#ifndef GL_NV_texture_shader2 -#define GL_NV_texture_shader2 1 - -#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_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF -#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 GLEW_NV_texture_shader2 GLEW_GET_VAR(__GLEW_NV_texture_shader2) - -#endif /* GL_NV_texture_shader2 */ - -/* ------------------------- GL_NV_texture_shader3 ------------------------- */ - -#ifndef GL_NV_texture_shader3 -#define GL_NV_texture_shader3 1 - -#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 - -#define GLEW_NV_texture_shader3 GLEW_GET_VAR(__GLEW_NV_texture_shader3) - -#endif /* GL_NV_texture_shader3 */ - -/* ------------------------ GL_NV_transform_feedback ----------------------- */ - -#ifndef GL_NV_transform_feedback -#define GL_NV_transform_feedback 1 - -#define GL_BACK_PRIMARY_COLOR_NV 0x8C77 -#define GL_BACK_SECONDARY_COLOR_NV 0x8C78 -#define GL_TEXTURE_COORD_NV 0x8C79 -#define GL_CLIP_DISTANCE_NV 0x8C7A -#define GL_VERTEX_ID_NV 0x8C7B -#define GL_PRIMITIVE_ID_NV 0x8C7C -#define GL_GENERIC_ATTRIB_NV 0x8C7D -#define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV 0x8C7E -#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80 -#define GL_ACTIVE_VARYINGS_NV 0x8C81 -#define GL_ACTIVE_VARYING_MAX_LENGTH_NV 0x8C82 -#define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83 -#define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84 -#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85 -#define GL_TRANSFORM_FEEDBACK_RECORD_NV 0x8C86 -#define GL_PRIMITIVES_GENERATED_NV 0x8C87 -#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88 -#define GL_RASTERIZER_DISCARD_NV 0x8C89 -#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_NV 0x8C8A -#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B -#define GL_INTERLEAVED_ATTRIBS_NV 0x8C8C -#define GL_SEPARATE_ATTRIBS_NV 0x8C8D -#define GL_TRANSFORM_FEEDBACK_BUFFER_NV 0x8C8E -#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F - -typedef void (GLAPIENTRY * PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name); -typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKNVPROC) (GLenum primitiveMode); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (GLAPIENTRY * PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset); -typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKNVPROC) (void); -typedef void (GLAPIENTRY * PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC) (GLuint program, GLuint index, GLint *location); -typedef GLint (GLAPIENTRY * PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name); -typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC) (GLuint count, const GLint *attribs, GLenum bufferMode); -typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); - -#define glActiveVaryingNV GLEW_GET_FUN(__glewActiveVaryingNV) -#define glBeginTransformFeedbackNV GLEW_GET_FUN(__glewBeginTransformFeedbackNV) -#define glBindBufferBaseNV GLEW_GET_FUN(__glewBindBufferBaseNV) -#define glBindBufferOffsetNV GLEW_GET_FUN(__glewBindBufferOffsetNV) -#define glBindBufferRangeNV GLEW_GET_FUN(__glewBindBufferRangeNV) -#define glEndTransformFeedbackNV GLEW_GET_FUN(__glewEndTransformFeedbackNV) -#define glGetActiveVaryingNV GLEW_GET_FUN(__glewGetActiveVaryingNV) -#define glGetTransformFeedbackVaryingNV GLEW_GET_FUN(__glewGetTransformFeedbackVaryingNV) -#define glGetVaryingLocationNV GLEW_GET_FUN(__glewGetVaryingLocationNV) -#define glTransformFeedbackAttribsNV GLEW_GET_FUN(__glewTransformFeedbackAttribsNV) -#define glTransformFeedbackVaryingsNV GLEW_GET_FUN(__glewTransformFeedbackVaryingsNV) - -#define GLEW_NV_transform_feedback GLEW_GET_VAR(__GLEW_NV_transform_feedback) - -#endif /* GL_NV_transform_feedback */ - -/* ----------------------- GL_NV_transform_feedback2 ----------------------- */ - -#ifndef GL_NV_transform_feedback2 -#define GL_NV_transform_feedback2 1 - -#define GL_TRANSFORM_FEEDBACK_NV 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25 - -typedef void (GLAPIENTRY * PFNGLBINDTRANSFORMFEEDBACKNVPROC) (GLenum target, GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETETRANSFORMFEEDBACKSNVPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id); -typedef void (GLAPIENTRY * PFNGLGENTRANSFORMFEEDBACKSNVPROC) (GLsizei n, GLuint* ids); -typedef GLboolean (GLAPIENTRY * PFNGLISTRANSFORMFEEDBACKNVPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLPAUSETRANSFORMFEEDBACKNVPROC) (void); -typedef void (GLAPIENTRY * PFNGLRESUMETRANSFORMFEEDBACKNVPROC) (void); - -#define glBindTransformFeedbackNV GLEW_GET_FUN(__glewBindTransformFeedbackNV) -#define glDeleteTransformFeedbacksNV GLEW_GET_FUN(__glewDeleteTransformFeedbacksNV) -#define glDrawTransformFeedbackNV GLEW_GET_FUN(__glewDrawTransformFeedbackNV) -#define glGenTransformFeedbacksNV GLEW_GET_FUN(__glewGenTransformFeedbacksNV) -#define glIsTransformFeedbackNV GLEW_GET_FUN(__glewIsTransformFeedbackNV) -#define glPauseTransformFeedbackNV GLEW_GET_FUN(__glewPauseTransformFeedbackNV) -#define glResumeTransformFeedbackNV GLEW_GET_FUN(__glewResumeTransformFeedbackNV) - -#define GLEW_NV_transform_feedback2 GLEW_GET_VAR(__GLEW_NV_transform_feedback2) - -#endif /* GL_NV_transform_feedback2 */ - -/* -------------------------- GL_NV_vdpau_interop -------------------------- */ - -#ifndef GL_NV_vdpau_interop -#define GL_NV_vdpau_interop 1 - -#define GL_SURFACE_STATE_NV 0x86EB -#define GL_SURFACE_REGISTERED_NV 0x86FD -#define GL_SURFACE_MAPPED_NV 0x8700 -#define GL_WRITE_DISCARD_NV 0x88BE - -typedef GLintptr GLvdpauSurfaceNV; - -typedef void (GLAPIENTRY * PFNGLVDPAUFININVPROC) (void); -typedef void (GLAPIENTRY * PFNGLVDPAUGETSURFACEIVNVPROC) (GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei* length, GLint *values); -typedef void (GLAPIENTRY * PFNGLVDPAUINITNVPROC) (const void* vdpDevice, const GLvoid*getProcAddress); -typedef void (GLAPIENTRY * PFNGLVDPAUISSURFACENVPROC) (GLvdpauSurfaceNV surface); -typedef void (GLAPIENTRY * PFNGLVDPAUMAPSURFACESNVPROC) (GLsizei numSurfaces, const GLvdpauSurfaceNV* surfaces); -typedef GLvdpauSurfaceNV (GLAPIENTRY * PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -typedef GLvdpauSurfaceNV (GLAPIENTRY * PFNGLVDPAUREGISTERVIDEOSURFACENVPROC) (const void* vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -typedef void (GLAPIENTRY * PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access); -typedef void (GLAPIENTRY * PFNGLVDPAUUNMAPSURFACESNVPROC) (GLsizei numSurface, const GLvdpauSurfaceNV* surfaces); -typedef void (GLAPIENTRY * PFNGLVDPAUUNREGISTERSURFACENVPROC) (GLvdpauSurfaceNV surface); - -#define glVDPAUFiniNV GLEW_GET_FUN(__glewVDPAUFiniNV) -#define glVDPAUGetSurfaceivNV GLEW_GET_FUN(__glewVDPAUGetSurfaceivNV) -#define glVDPAUInitNV GLEW_GET_FUN(__glewVDPAUInitNV) -#define glVDPAUIsSurfaceNV GLEW_GET_FUN(__glewVDPAUIsSurfaceNV) -#define glVDPAUMapSurfacesNV GLEW_GET_FUN(__glewVDPAUMapSurfacesNV) -#define glVDPAURegisterOutputSurfaceNV GLEW_GET_FUN(__glewVDPAURegisterOutputSurfaceNV) -#define glVDPAURegisterVideoSurfaceNV GLEW_GET_FUN(__glewVDPAURegisterVideoSurfaceNV) -#define glVDPAUSurfaceAccessNV GLEW_GET_FUN(__glewVDPAUSurfaceAccessNV) -#define glVDPAUUnmapSurfacesNV GLEW_GET_FUN(__glewVDPAUUnmapSurfacesNV) -#define glVDPAUUnregisterSurfaceNV GLEW_GET_FUN(__glewVDPAUUnregisterSurfaceNV) - -#define GLEW_NV_vdpau_interop GLEW_GET_VAR(__GLEW_NV_vdpau_interop) - -#endif /* GL_NV_vdpau_interop */ - -/* ------------------------ GL_NV_vertex_array_range ----------------------- */ - -#ifndef GL_NV_vertex_array_range -#define GL_NV_vertex_array_range 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); -typedef void (GLAPIENTRY * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei length, void* pointer); - -#define glFlushVertexArrayRangeNV GLEW_GET_FUN(__glewFlushVertexArrayRangeNV) -#define glVertexArrayRangeNV GLEW_GET_FUN(__glewVertexArrayRangeNV) - -#define GLEW_NV_vertex_array_range GLEW_GET_VAR(__GLEW_NV_vertex_array_range) - -#endif /* GL_NV_vertex_array_range */ - -/* ----------------------- GL_NV_vertex_array_range2 ----------------------- */ - -#ifndef GL_NV_vertex_array_range2 -#define GL_NV_vertex_array_range2 1 - -#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 - -#define GLEW_NV_vertex_array_range2 GLEW_GET_VAR(__GLEW_NV_vertex_array_range2) - -#endif /* GL_NV_vertex_array_range2 */ - -/* ------------------- GL_NV_vertex_attrib_integer_64bit ------------------- */ - -#ifndef GL_NV_vertex_attrib_integer_64bit -#define GL_NV_vertex_attrib_integer_64bit 1 - -#define GL_INT64_NV 0x140E -#define GL_UNSIGNED_INT64_NV 0x140F - -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLI64VNVPROC) (GLuint index, GLenum pname, GLint64EXT* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBLUI64VNVPROC) (GLuint index, GLenum pname, GLuint64EXT* params); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1I64NVPROC) (GLuint index, GLint64EXT x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1I64VNVPROC) (GLuint index, const GLint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1UI64NVPROC) (GLuint index, GLuint64EXT x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL1UI64VNVPROC) (GLuint index, const GLuint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2I64VNVPROC) (GLuint index, const GLint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL2UI64VNVPROC) (GLuint index, const GLuint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3I64VNVPROC) (GLuint index, const GLint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL3UI64VNVPROC) (GLuint index, const GLuint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4I64NVPROC) (GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4I64VNVPROC) (GLuint index, const GLint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4UI64NVPROC) (GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBL4UI64VNVPROC) (GLuint index, const GLuint64EXT* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBLFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); - -#define glGetVertexAttribLi64vNV GLEW_GET_FUN(__glewGetVertexAttribLi64vNV) -#define glGetVertexAttribLui64vNV GLEW_GET_FUN(__glewGetVertexAttribLui64vNV) -#define glVertexAttribL1i64NV GLEW_GET_FUN(__glewVertexAttribL1i64NV) -#define glVertexAttribL1i64vNV GLEW_GET_FUN(__glewVertexAttribL1i64vNV) -#define glVertexAttribL1ui64NV GLEW_GET_FUN(__glewVertexAttribL1ui64NV) -#define glVertexAttribL1ui64vNV GLEW_GET_FUN(__glewVertexAttribL1ui64vNV) -#define glVertexAttribL2i64NV GLEW_GET_FUN(__glewVertexAttribL2i64NV) -#define glVertexAttribL2i64vNV GLEW_GET_FUN(__glewVertexAttribL2i64vNV) -#define glVertexAttribL2ui64NV GLEW_GET_FUN(__glewVertexAttribL2ui64NV) -#define glVertexAttribL2ui64vNV GLEW_GET_FUN(__glewVertexAttribL2ui64vNV) -#define glVertexAttribL3i64NV GLEW_GET_FUN(__glewVertexAttribL3i64NV) -#define glVertexAttribL3i64vNV GLEW_GET_FUN(__glewVertexAttribL3i64vNV) -#define glVertexAttribL3ui64NV GLEW_GET_FUN(__glewVertexAttribL3ui64NV) -#define glVertexAttribL3ui64vNV GLEW_GET_FUN(__glewVertexAttribL3ui64vNV) -#define glVertexAttribL4i64NV GLEW_GET_FUN(__glewVertexAttribL4i64NV) -#define glVertexAttribL4i64vNV GLEW_GET_FUN(__glewVertexAttribL4i64vNV) -#define glVertexAttribL4ui64NV GLEW_GET_FUN(__glewVertexAttribL4ui64NV) -#define glVertexAttribL4ui64vNV GLEW_GET_FUN(__glewVertexAttribL4ui64vNV) -#define glVertexAttribLFormatNV GLEW_GET_FUN(__glewVertexAttribLFormatNV) - -#define GLEW_NV_vertex_attrib_integer_64bit GLEW_GET_VAR(__GLEW_NV_vertex_attrib_integer_64bit) - -#endif /* GL_NV_vertex_attrib_integer_64bit */ - -/* ------------------- GL_NV_vertex_buffer_unified_memory ------------------ */ - -#ifndef GL_NV_vertex_buffer_unified_memory -#define GL_NV_vertex_buffer_unified_memory 1 - -#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E -#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F -#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 -#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 -#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 -#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 -#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 -#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 -#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 -#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 -#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 -#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 -#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A -#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B -#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C -#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D -#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E -#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F -#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 -#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 -#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 -#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 -#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 -#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 -#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 - -typedef void (GLAPIENTRY * PFNGLBUFFERADDRESSRANGENVPROC) (GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); -typedef void (GLAPIENTRY * PFNGLCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLEDGEFLAGFORMATNVPROC) (GLsizei stride); -typedef void (GLAPIENTRY * PFNGLFOGCOORDFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLGETINTEGERUI64I_VNVPROC) (GLenum value, GLuint index, GLuint64EXT result[]); -typedef void (GLAPIENTRY * PFNGLINDEXFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLNORMALFORMATNVPROC) (GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLTEXCOORDFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIFORMATNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride); -typedef void (GLAPIENTRY * PFNGLVERTEXFORMATNVPROC) (GLint size, GLenum type, GLsizei stride); - -#define glBufferAddressRangeNV GLEW_GET_FUN(__glewBufferAddressRangeNV) -#define glColorFormatNV GLEW_GET_FUN(__glewColorFormatNV) -#define glEdgeFlagFormatNV GLEW_GET_FUN(__glewEdgeFlagFormatNV) -#define glFogCoordFormatNV GLEW_GET_FUN(__glewFogCoordFormatNV) -#define glGetIntegerui64i_vNV GLEW_GET_FUN(__glewGetIntegerui64i_vNV) -#define glIndexFormatNV GLEW_GET_FUN(__glewIndexFormatNV) -#define glNormalFormatNV GLEW_GET_FUN(__glewNormalFormatNV) -#define glSecondaryColorFormatNV GLEW_GET_FUN(__glewSecondaryColorFormatNV) -#define glTexCoordFormatNV GLEW_GET_FUN(__glewTexCoordFormatNV) -#define glVertexAttribFormatNV GLEW_GET_FUN(__glewVertexAttribFormatNV) -#define glVertexAttribIFormatNV GLEW_GET_FUN(__glewVertexAttribIFormatNV) -#define glVertexFormatNV GLEW_GET_FUN(__glewVertexFormatNV) - -#define GLEW_NV_vertex_buffer_unified_memory GLEW_GET_VAR(__GLEW_NV_vertex_buffer_unified_memory) - -#endif /* GL_NV_vertex_buffer_unified_memory */ - -/* -------------------------- GL_NV_vertex_program ------------------------- */ - -#ifndef GL_NV_vertex_program -#define GL_NV_vertex_program 1 - -#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 - -typedef GLboolean (GLAPIENTRY * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint* ids, GLboolean *residences); -typedef void (GLAPIENTRY * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); -typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint* ids); -typedef void (GLAPIENTRY * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint* ids); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte* program); -typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid** pointer); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint* params); -typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMNVPROC) (GLuint id); -typedef void (GLAPIENTRY * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte* program); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei num, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei num, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, GLuint* ids); -typedef void (GLAPIENTRY * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void* pointer); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei n, const GLdouble* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei n, const GLfloat* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei n, const GLshort* v); -typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei n, const GLubyte* v); - -#define glAreProgramsResidentNV GLEW_GET_FUN(__glewAreProgramsResidentNV) -#define glBindProgramNV GLEW_GET_FUN(__glewBindProgramNV) -#define glDeleteProgramsNV GLEW_GET_FUN(__glewDeleteProgramsNV) -#define glExecuteProgramNV GLEW_GET_FUN(__glewExecuteProgramNV) -#define glGenProgramsNV GLEW_GET_FUN(__glewGenProgramsNV) -#define glGetProgramParameterdvNV GLEW_GET_FUN(__glewGetProgramParameterdvNV) -#define glGetProgramParameterfvNV GLEW_GET_FUN(__glewGetProgramParameterfvNV) -#define glGetProgramStringNV GLEW_GET_FUN(__glewGetProgramStringNV) -#define glGetProgramivNV GLEW_GET_FUN(__glewGetProgramivNV) -#define glGetTrackMatrixivNV GLEW_GET_FUN(__glewGetTrackMatrixivNV) -#define glGetVertexAttribPointervNV GLEW_GET_FUN(__glewGetVertexAttribPointervNV) -#define glGetVertexAttribdvNV GLEW_GET_FUN(__glewGetVertexAttribdvNV) -#define glGetVertexAttribfvNV GLEW_GET_FUN(__glewGetVertexAttribfvNV) -#define glGetVertexAttribivNV GLEW_GET_FUN(__glewGetVertexAttribivNV) -#define glIsProgramNV GLEW_GET_FUN(__glewIsProgramNV) -#define glLoadProgramNV GLEW_GET_FUN(__glewLoadProgramNV) -#define glProgramParameter4dNV GLEW_GET_FUN(__glewProgramParameter4dNV) -#define glProgramParameter4dvNV GLEW_GET_FUN(__glewProgramParameter4dvNV) -#define glProgramParameter4fNV GLEW_GET_FUN(__glewProgramParameter4fNV) -#define glProgramParameter4fvNV GLEW_GET_FUN(__glewProgramParameter4fvNV) -#define glProgramParameters4dvNV GLEW_GET_FUN(__glewProgramParameters4dvNV) -#define glProgramParameters4fvNV GLEW_GET_FUN(__glewProgramParameters4fvNV) -#define glRequestResidentProgramsNV GLEW_GET_FUN(__glewRequestResidentProgramsNV) -#define glTrackMatrixNV GLEW_GET_FUN(__glewTrackMatrixNV) -#define glVertexAttrib1dNV GLEW_GET_FUN(__glewVertexAttrib1dNV) -#define glVertexAttrib1dvNV GLEW_GET_FUN(__glewVertexAttrib1dvNV) -#define glVertexAttrib1fNV GLEW_GET_FUN(__glewVertexAttrib1fNV) -#define glVertexAttrib1fvNV GLEW_GET_FUN(__glewVertexAttrib1fvNV) -#define glVertexAttrib1sNV GLEW_GET_FUN(__glewVertexAttrib1sNV) -#define glVertexAttrib1svNV GLEW_GET_FUN(__glewVertexAttrib1svNV) -#define glVertexAttrib2dNV GLEW_GET_FUN(__glewVertexAttrib2dNV) -#define glVertexAttrib2dvNV GLEW_GET_FUN(__glewVertexAttrib2dvNV) -#define glVertexAttrib2fNV GLEW_GET_FUN(__glewVertexAttrib2fNV) -#define glVertexAttrib2fvNV GLEW_GET_FUN(__glewVertexAttrib2fvNV) -#define glVertexAttrib2sNV GLEW_GET_FUN(__glewVertexAttrib2sNV) -#define glVertexAttrib2svNV GLEW_GET_FUN(__glewVertexAttrib2svNV) -#define glVertexAttrib3dNV GLEW_GET_FUN(__glewVertexAttrib3dNV) -#define glVertexAttrib3dvNV GLEW_GET_FUN(__glewVertexAttrib3dvNV) -#define glVertexAttrib3fNV GLEW_GET_FUN(__glewVertexAttrib3fNV) -#define glVertexAttrib3fvNV GLEW_GET_FUN(__glewVertexAttrib3fvNV) -#define glVertexAttrib3sNV GLEW_GET_FUN(__glewVertexAttrib3sNV) -#define glVertexAttrib3svNV GLEW_GET_FUN(__glewVertexAttrib3svNV) -#define glVertexAttrib4dNV GLEW_GET_FUN(__glewVertexAttrib4dNV) -#define glVertexAttrib4dvNV GLEW_GET_FUN(__glewVertexAttrib4dvNV) -#define glVertexAttrib4fNV GLEW_GET_FUN(__glewVertexAttrib4fNV) -#define glVertexAttrib4fvNV GLEW_GET_FUN(__glewVertexAttrib4fvNV) -#define glVertexAttrib4sNV GLEW_GET_FUN(__glewVertexAttrib4sNV) -#define glVertexAttrib4svNV GLEW_GET_FUN(__glewVertexAttrib4svNV) -#define glVertexAttrib4ubNV GLEW_GET_FUN(__glewVertexAttrib4ubNV) -#define glVertexAttrib4ubvNV GLEW_GET_FUN(__glewVertexAttrib4ubvNV) -#define glVertexAttribPointerNV GLEW_GET_FUN(__glewVertexAttribPointerNV) -#define glVertexAttribs1dvNV GLEW_GET_FUN(__glewVertexAttribs1dvNV) -#define glVertexAttribs1fvNV GLEW_GET_FUN(__glewVertexAttribs1fvNV) -#define glVertexAttribs1svNV GLEW_GET_FUN(__glewVertexAttribs1svNV) -#define glVertexAttribs2dvNV GLEW_GET_FUN(__glewVertexAttribs2dvNV) -#define glVertexAttribs2fvNV GLEW_GET_FUN(__glewVertexAttribs2fvNV) -#define glVertexAttribs2svNV GLEW_GET_FUN(__glewVertexAttribs2svNV) -#define glVertexAttribs3dvNV GLEW_GET_FUN(__glewVertexAttribs3dvNV) -#define glVertexAttribs3fvNV GLEW_GET_FUN(__glewVertexAttribs3fvNV) -#define glVertexAttribs3svNV GLEW_GET_FUN(__glewVertexAttribs3svNV) -#define glVertexAttribs4dvNV GLEW_GET_FUN(__glewVertexAttribs4dvNV) -#define glVertexAttribs4fvNV GLEW_GET_FUN(__glewVertexAttribs4fvNV) -#define glVertexAttribs4svNV GLEW_GET_FUN(__glewVertexAttribs4svNV) -#define glVertexAttribs4ubvNV GLEW_GET_FUN(__glewVertexAttribs4ubvNV) - -#define GLEW_NV_vertex_program GLEW_GET_VAR(__GLEW_NV_vertex_program) - -#endif /* GL_NV_vertex_program */ - -/* ------------------------ GL_NV_vertex_program1_1 ------------------------ */ - -#ifndef GL_NV_vertex_program1_1 -#define GL_NV_vertex_program1_1 1 - -#define GLEW_NV_vertex_program1_1 GLEW_GET_VAR(__GLEW_NV_vertex_program1_1) - -#endif /* GL_NV_vertex_program1_1 */ - -/* ------------------------- GL_NV_vertex_program2 ------------------------- */ - -#ifndef GL_NV_vertex_program2 -#define GL_NV_vertex_program2 1 - -#define GLEW_NV_vertex_program2 GLEW_GET_VAR(__GLEW_NV_vertex_program2) - -#endif /* GL_NV_vertex_program2 */ - -/* ---------------------- GL_NV_vertex_program2_option --------------------- */ - -#ifndef GL_NV_vertex_program2_option -#define GL_NV_vertex_program2_option 1 - -#define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4 -#define GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5 - -#define GLEW_NV_vertex_program2_option GLEW_GET_VAR(__GLEW_NV_vertex_program2_option) - -#endif /* GL_NV_vertex_program2_option */ - -/* ------------------------- GL_NV_vertex_program3 ------------------------- */ - -#ifndef GL_NV_vertex_program3 -#define GL_NV_vertex_program3 1 - -#define MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C - -#define GLEW_NV_vertex_program3 GLEW_GET_VAR(__GLEW_NV_vertex_program3) - -#endif /* GL_NV_vertex_program3 */ - -/* ------------------------- GL_NV_vertex_program4 ------------------------- */ - -#ifndef GL_NV_vertex_program4 -#define GL_NV_vertex_program4 1 - -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD - -#define GLEW_NV_vertex_program4 GLEW_GET_VAR(__GLEW_NV_vertex_program4) - -#endif /* GL_NV_vertex_program4 */ - -/* -------------------------- GL_NV_video_capture -------------------------- */ - -#ifndef GL_NV_video_capture -#define GL_NV_video_capture 1 - -#define GL_VIDEO_BUFFER_NV 0x9020 -#define GL_VIDEO_BUFFER_BINDING_NV 0x9021 -#define GL_FIELD_UPPER_NV 0x9022 -#define GL_FIELD_LOWER_NV 0x9023 -#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024 -#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025 -#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026 -#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027 -#define GL_VIDEO_BUFFER_PITCH_NV 0x9028 -#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029 -#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A -#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B -#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C -#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D -#define GL_PARTIAL_SUCCESS_NV 0x902E -#define GL_SUCCESS_NV 0x902F -#define GL_FAILURE_NV 0x9030 -#define GL_YCBYCR8_422_NV 0x9031 -#define GL_YCBAYCR8A_4224_NV 0x9032 -#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033 -#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034 -#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035 -#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036 -#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037 -#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038 -#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039 -#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A -#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B -#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C - -typedef void (GLAPIENTRY * PFNGLBEGINVIDEOCAPTURENVPROC) (GLuint video_capture_slot); -typedef void (GLAPIENTRY * PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); -typedef void (GLAPIENTRY * PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC) (GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); -typedef void (GLAPIENTRY * PFNGLENDVIDEOCAPTURENVPROC) (GLuint video_capture_slot); -typedef void (GLAPIENTRY * PFNGLGETVIDEOCAPTURESTREAMDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOCAPTURESTREAMFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOCAPTURESTREAMIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETVIDEOCAPTUREIVNVPROC) (GLuint video_capture_slot, GLenum pname, GLint* params); -typedef GLenum (GLAPIENTRY * PFNGLVIDEOCAPTURENVPROC) (GLuint video_capture_slot, GLuint* sequence_num, GLuint64EXT *capture_time); -typedef void (GLAPIENTRY * PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble* params); -typedef void (GLAPIENTRY * PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC) (GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint* params); - -#define glBeginVideoCaptureNV GLEW_GET_FUN(__glewBeginVideoCaptureNV) -#define glBindVideoCaptureStreamBufferNV GLEW_GET_FUN(__glewBindVideoCaptureStreamBufferNV) -#define glBindVideoCaptureStreamTextureNV GLEW_GET_FUN(__glewBindVideoCaptureStreamTextureNV) -#define glEndVideoCaptureNV GLEW_GET_FUN(__glewEndVideoCaptureNV) -#define glGetVideoCaptureStreamdvNV GLEW_GET_FUN(__glewGetVideoCaptureStreamdvNV) -#define glGetVideoCaptureStreamfvNV GLEW_GET_FUN(__glewGetVideoCaptureStreamfvNV) -#define glGetVideoCaptureStreamivNV GLEW_GET_FUN(__glewGetVideoCaptureStreamivNV) -#define glGetVideoCaptureivNV GLEW_GET_FUN(__glewGetVideoCaptureivNV) -#define glVideoCaptureNV GLEW_GET_FUN(__glewVideoCaptureNV) -#define glVideoCaptureStreamParameterdvNV GLEW_GET_FUN(__glewVideoCaptureStreamParameterdvNV) -#define glVideoCaptureStreamParameterfvNV GLEW_GET_FUN(__glewVideoCaptureStreamParameterfvNV) -#define glVideoCaptureStreamParameterivNV GLEW_GET_FUN(__glewVideoCaptureStreamParameterivNV) - -#define GLEW_NV_video_capture GLEW_GET_VAR(__GLEW_NV_video_capture) - -#endif /* GL_NV_video_capture */ - -/* ------------------------ GL_OES_byte_coordinates ------------------------ */ - -#ifndef GL_OES_byte_coordinates -#define GL_OES_byte_coordinates 1 - -#define GL_BYTE 0x1400 - -#define GLEW_OES_byte_coordinates GLEW_GET_VAR(__GLEW_OES_byte_coordinates) - -#endif /* GL_OES_byte_coordinates */ - -/* ------------------- GL_OES_compressed_paletted_texture ------------------ */ - -#ifndef GL_OES_compressed_paletted_texture -#define GL_OES_compressed_paletted_texture 1 - -#define GL_PALETTE4_RGB8_OES 0x8B90 -#define GL_PALETTE4_RGBA8_OES 0x8B91 -#define GL_PALETTE4_R5_G6_B5_OES 0x8B92 -#define GL_PALETTE4_RGBA4_OES 0x8B93 -#define GL_PALETTE4_RGB5_A1_OES 0x8B94 -#define GL_PALETTE8_RGB8_OES 0x8B95 -#define GL_PALETTE8_RGBA8_OES 0x8B96 -#define GL_PALETTE8_R5_G6_B5_OES 0x8B97 -#define GL_PALETTE8_RGBA4_OES 0x8B98 -#define GL_PALETTE8_RGB5_A1_OES 0x8B99 - -#define GLEW_OES_compressed_paletted_texture GLEW_GET_VAR(__GLEW_OES_compressed_paletted_texture) - -#endif /* GL_OES_compressed_paletted_texture */ - -/* --------------------------- GL_OES_read_format -------------------------- */ - -#ifndef GL_OES_read_format -#define GL_OES_read_format 1 - -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B - -#define GLEW_OES_read_format GLEW_GET_VAR(__GLEW_OES_read_format) - -#endif /* GL_OES_read_format */ - -/* ------------------------ GL_OES_single_precision ------------------------ */ - -#ifndef GL_OES_single_precision -#define GL_OES_single_precision 1 - -typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFOESPROC) (GLclampd depth); -typedef void (GLAPIENTRY * PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat* equation); -typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f); -typedef void (GLAPIENTRY * PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat* equation); -typedef void (GLAPIENTRY * PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); - -#define glClearDepthfOES GLEW_GET_FUN(__glewClearDepthfOES) -#define glClipPlanefOES GLEW_GET_FUN(__glewClipPlanefOES) -#define glDepthRangefOES GLEW_GET_FUN(__glewDepthRangefOES) -#define glFrustumfOES GLEW_GET_FUN(__glewFrustumfOES) -#define glGetClipPlanefOES GLEW_GET_FUN(__glewGetClipPlanefOES) -#define glOrthofOES GLEW_GET_FUN(__glewOrthofOES) - -#define GLEW_OES_single_precision GLEW_GET_VAR(__GLEW_OES_single_precision) - -#endif /* GL_OES_single_precision */ - -/* ---------------------------- GL_OML_interlace --------------------------- */ - -#ifndef GL_OML_interlace -#define GL_OML_interlace 1 - -#define GL_INTERLACE_OML 0x8980 -#define GL_INTERLACE_READ_OML 0x8981 - -#define GLEW_OML_interlace GLEW_GET_VAR(__GLEW_OML_interlace) - -#endif /* GL_OML_interlace */ - -/* ---------------------------- GL_OML_resample ---------------------------- */ - -#ifndef GL_OML_resample -#define GL_OML_resample 1 - -#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 - -#define GLEW_OML_resample GLEW_GET_VAR(__GLEW_OML_resample) - -#endif /* GL_OML_resample */ - -/* ---------------------------- GL_OML_subsample --------------------------- */ - -#ifndef GL_OML_subsample -#define GL_OML_subsample 1 - -#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 -#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 - -#define GLEW_OML_subsample GLEW_GET_VAR(__GLEW_OML_subsample) - -#endif /* GL_OML_subsample */ - -/* --------------------------- GL_PGI_misc_hints --------------------------- */ - -#ifndef GL_PGI_misc_hints -#define GL_PGI_misc_hints 1 - -#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000 -#define GL_CONSERVE_MEMORY_HINT_PGI 107005 -#define GL_RECLAIM_MEMORY_HINT_PGI 107006 -#define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010 -#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011 -#define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012 -#define GL_ALWAYS_FAST_HINT_PGI 107020 -#define GL_ALWAYS_SOFT_HINT_PGI 107021 -#define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022 -#define GL_ALLOW_DRAW_WIN_HINT_PGI 107023 -#define GL_ALLOW_DRAW_FRG_HINT_PGI 107024 -#define GL_ALLOW_DRAW_MEM_HINT_PGI 107025 -#define GL_STRICT_DEPTHFUNC_HINT_PGI 107030 -#define GL_STRICT_LIGHTING_HINT_PGI 107031 -#define GL_STRICT_SCISSOR_HINT_PGI 107032 -#define GL_FULL_STIPPLE_HINT_PGI 107033 -#define GL_CLIP_NEAR_HINT_PGI 107040 -#define GL_CLIP_FAR_HINT_PGI 107041 -#define GL_WIDE_LINE_HINT_PGI 107042 -#define GL_BACK_NORMALS_HINT_PGI 107043 - -#define GLEW_PGI_misc_hints GLEW_GET_VAR(__GLEW_PGI_misc_hints) - -#endif /* GL_PGI_misc_hints */ - -/* -------------------------- GL_PGI_vertex_hints -------------------------- */ - -#ifndef GL_PGI_vertex_hints -#define GL_PGI_vertex_hints 1 - -#define GL_VERTEX23_BIT_PGI 0x00000004 -#define GL_VERTEX4_BIT_PGI 0x00000008 -#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_VERTEX_DATA_HINT_PGI 107050 -#define GL_VERTEX_CONSISTENT_HINT_PGI 107051 -#define GL_MATERIAL_SIDE_HINT_PGI 107052 -#define GL_MAX_VERTEX_HINT_PGI 107053 -#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 GLEW_PGI_vertex_hints GLEW_GET_VAR(__GLEW_PGI_vertex_hints) - -#endif /* GL_PGI_vertex_hints */ - -/* ----------------------- GL_REND_screen_coordinates ---------------------- */ - -#ifndef GL_REND_screen_coordinates -#define GL_REND_screen_coordinates 1 - -#define GL_SCREEN_COORDINATES_REND 0x8490 -#define GL_INVERTED_SCREEN_W_REND 0x8491 - -#define GLEW_REND_screen_coordinates GLEW_GET_VAR(__GLEW_REND_screen_coordinates) - -#endif /* GL_REND_screen_coordinates */ - -/* ------------------------------- GL_S3_s3tc ------------------------------ */ - -#ifndef GL_S3_s3tc -#define GL_S3_s3tc 1 - -#define GL_RGB_S3TC 0x83A0 -#define GL_RGB4_S3TC 0x83A1 -#define GL_RGBA_S3TC 0x83A2 -#define GL_RGBA4_S3TC 0x83A3 -#define GL_RGBA_DXT5_S3TC 0x83A4 -#define GL_RGBA4_DXT5_S3TC 0x83A5 - -#define GLEW_S3_s3tc GLEW_GET_VAR(__GLEW_S3_s3tc) - -#endif /* GL_S3_s3tc */ - -/* -------------------------- GL_SGIS_color_range -------------------------- */ - -#ifndef GL_SGIS_color_range -#define GL_SGIS_color_range 1 - -#define GL_EXTENDED_RANGE_SGIS 0x85A5 -#define GL_MIN_RED_SGIS 0x85A6 -#define GL_MAX_RED_SGIS 0x85A7 -#define GL_MIN_GREEN_SGIS 0x85A8 -#define GL_MAX_GREEN_SGIS 0x85A9 -#define GL_MIN_BLUE_SGIS 0x85AA -#define GL_MAX_BLUE_SGIS 0x85AB -#define GL_MIN_ALPHA_SGIS 0x85AC -#define GL_MAX_ALPHA_SGIS 0x85AD - -#define GLEW_SGIS_color_range GLEW_GET_VAR(__GLEW_SGIS_color_range) - -#endif /* GL_SGIS_color_range */ - -/* ------------------------- GL_SGIS_detail_texture ------------------------ */ - -#ifndef GL_SGIS_detail_texture -#define GL_SGIS_detail_texture 1 - -typedef void (GLAPIENTRY * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); -typedef void (GLAPIENTRY * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat* points); - -#define glDetailTexFuncSGIS GLEW_GET_FUN(__glewDetailTexFuncSGIS) -#define glGetDetailTexFuncSGIS GLEW_GET_FUN(__glewGetDetailTexFuncSGIS) - -#define GLEW_SGIS_detail_texture GLEW_GET_VAR(__GLEW_SGIS_detail_texture) - -#endif /* GL_SGIS_detail_texture */ - -/* -------------------------- GL_SGIS_fog_function ------------------------- */ - -#ifndef GL_SGIS_fog_function -#define GL_SGIS_fog_function 1 - -typedef void (GLAPIENTRY * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat* points); -typedef void (GLAPIENTRY * PFNGLGETFOGFUNCSGISPROC) (GLfloat* points); - -#define glFogFuncSGIS GLEW_GET_FUN(__glewFogFuncSGIS) -#define glGetFogFuncSGIS GLEW_GET_FUN(__glewGetFogFuncSGIS) - -#define GLEW_SGIS_fog_function GLEW_GET_VAR(__GLEW_SGIS_fog_function) - -#endif /* GL_SGIS_fog_function */ - -/* ------------------------ GL_SGIS_generate_mipmap ------------------------ */ - -#ifndef GL_SGIS_generate_mipmap -#define GL_SGIS_generate_mipmap 1 - -#define GL_GENERATE_MIPMAP_SGIS 0x8191 -#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 - -#define GLEW_SGIS_generate_mipmap GLEW_GET_VAR(__GLEW_SGIS_generate_mipmap) - -#endif /* GL_SGIS_generate_mipmap */ - -/* -------------------------- GL_SGIS_multisample -------------------------- */ - -#ifndef GL_SGIS_multisample -#define GL_SGIS_multisample 1 - -#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 -#define GL_MULTISAMPLE_BIT_EXT 0x20000000 - -typedef void (GLAPIENTRY * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); -typedef void (GLAPIENTRY * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern); - -#define glSampleMaskSGIS GLEW_GET_FUN(__glewSampleMaskSGIS) -#define glSamplePatternSGIS GLEW_GET_FUN(__glewSamplePatternSGIS) - -#define GLEW_SGIS_multisample GLEW_GET_VAR(__GLEW_SGIS_multisample) - -#endif /* GL_SGIS_multisample */ - -/* ------------------------- GL_SGIS_pixel_texture ------------------------- */ - -#ifndef GL_SGIS_pixel_texture -#define GL_SGIS_pixel_texture 1 - -#define GLEW_SGIS_pixel_texture GLEW_GET_VAR(__GLEW_SGIS_pixel_texture) - -#endif /* GL_SGIS_pixel_texture */ - -/* ----------------------- GL_SGIS_point_line_texgen ----------------------- */ - -#ifndef GL_SGIS_point_line_texgen -#define GL_SGIS_point_line_texgen 1 - -#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 - -#define GLEW_SGIS_point_line_texgen GLEW_GET_VAR(__GLEW_SGIS_point_line_texgen) - -#endif /* GL_SGIS_point_line_texgen */ - -/* ------------------------ GL_SGIS_sharpen_texture ------------------------ */ - -#ifndef GL_SGIS_sharpen_texture -#define GL_SGIS_sharpen_texture 1 - -typedef void (GLAPIENTRY * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat* points); -typedef void (GLAPIENTRY * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat* points); - -#define glGetSharpenTexFuncSGIS GLEW_GET_FUN(__glewGetSharpenTexFuncSGIS) -#define glSharpenTexFuncSGIS GLEW_GET_FUN(__glewSharpenTexFuncSGIS) - -#define GLEW_SGIS_sharpen_texture GLEW_GET_VAR(__GLEW_SGIS_sharpen_texture) - -#endif /* GL_SGIS_sharpen_texture */ - -/* --------------------------- GL_SGIS_texture4D --------------------------- */ - -#ifndef GL_SGIS_texture4D -#define GL_SGIS_texture4D 1 - -typedef void (GLAPIENTRY * PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLint border, GLenum format, GLenum type, const void* pixels); -typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLenum format, GLenum type, const void* pixels); - -#define glTexImage4DSGIS GLEW_GET_FUN(__glewTexImage4DSGIS) -#define glTexSubImage4DSGIS GLEW_GET_FUN(__glewTexSubImage4DSGIS) - -#define GLEW_SGIS_texture4D GLEW_GET_VAR(__GLEW_SGIS_texture4D) - -#endif /* GL_SGIS_texture4D */ - -/* ---------------------- GL_SGIS_texture_border_clamp --------------------- */ - -#ifndef GL_SGIS_texture_border_clamp -#define GL_SGIS_texture_border_clamp 1 - -#define GL_CLAMP_TO_BORDER_SGIS 0x812D - -#define GLEW_SGIS_texture_border_clamp GLEW_GET_VAR(__GLEW_SGIS_texture_border_clamp) - -#endif /* GL_SGIS_texture_border_clamp */ - -/* ----------------------- GL_SGIS_texture_edge_clamp ---------------------- */ - -#ifndef GL_SGIS_texture_edge_clamp -#define GL_SGIS_texture_edge_clamp 1 - -#define GL_CLAMP_TO_EDGE_SGIS 0x812F - -#define GLEW_SGIS_texture_edge_clamp GLEW_GET_VAR(__GLEW_SGIS_texture_edge_clamp) - -#endif /* GL_SGIS_texture_edge_clamp */ - -/* ------------------------ GL_SGIS_texture_filter4 ------------------------ */ - -#ifndef GL_SGIS_texture_filter4 -#define GL_SGIS_texture_filter4 1 - -typedef void (GLAPIENTRY * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat* weights); -typedef void (GLAPIENTRY * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat* weights); - -#define glGetTexFilterFuncSGIS GLEW_GET_FUN(__glewGetTexFilterFuncSGIS) -#define glTexFilterFuncSGIS GLEW_GET_FUN(__glewTexFilterFuncSGIS) - -#define GLEW_SGIS_texture_filter4 GLEW_GET_VAR(__GLEW_SGIS_texture_filter4) - -#endif /* GL_SGIS_texture_filter4 */ - -/* -------------------------- GL_SGIS_texture_lod -------------------------- */ - -#ifndef GL_SGIS_texture_lod -#define GL_SGIS_texture_lod 1 - -#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 - -#define GLEW_SGIS_texture_lod GLEW_GET_VAR(__GLEW_SGIS_texture_lod) - -#endif /* GL_SGIS_texture_lod */ - -/* ------------------------- GL_SGIS_texture_select ------------------------ */ - -#ifndef GL_SGIS_texture_select -#define GL_SGIS_texture_select 1 - -#define GLEW_SGIS_texture_select GLEW_GET_VAR(__GLEW_SGIS_texture_select) - -#endif /* GL_SGIS_texture_select */ - -/* ----------------------------- GL_SGIX_async ----------------------------- */ - -#ifndef GL_SGIX_async -#define GL_SGIX_async 1 - -#define GL_ASYNC_MARKER_SGIX 0x8329 - -typedef void (GLAPIENTRY * PFNGLASYNCMARKERSGIXPROC) (GLuint marker); -typedef void (GLAPIENTRY * PFNGLDELETEASYNCMARKERSSGIXPROC) (GLuint marker, GLsizei range); -typedef GLint (GLAPIENTRY * PFNGLFINISHASYNCSGIXPROC) (GLuint* markerp); -typedef GLuint (GLAPIENTRY * PFNGLGENASYNCMARKERSSGIXPROC) (GLsizei range); -typedef GLboolean (GLAPIENTRY * PFNGLISASYNCMARKERSGIXPROC) (GLuint marker); -typedef GLint (GLAPIENTRY * PFNGLPOLLASYNCSGIXPROC) (GLuint* markerp); - -#define glAsyncMarkerSGIX GLEW_GET_FUN(__glewAsyncMarkerSGIX) -#define glDeleteAsyncMarkersSGIX GLEW_GET_FUN(__glewDeleteAsyncMarkersSGIX) -#define glFinishAsyncSGIX GLEW_GET_FUN(__glewFinishAsyncSGIX) -#define glGenAsyncMarkersSGIX GLEW_GET_FUN(__glewGenAsyncMarkersSGIX) -#define glIsAsyncMarkerSGIX GLEW_GET_FUN(__glewIsAsyncMarkerSGIX) -#define glPollAsyncSGIX GLEW_GET_FUN(__glewPollAsyncSGIX) - -#define GLEW_SGIX_async GLEW_GET_VAR(__GLEW_SGIX_async) - -#endif /* GL_SGIX_async */ - -/* ------------------------ GL_SGIX_async_histogram ------------------------ */ - -#ifndef GL_SGIX_async_histogram -#define GL_SGIX_async_histogram 1 - -#define GL_ASYNC_HISTOGRAM_SGIX 0x832C -#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D - -#define GLEW_SGIX_async_histogram GLEW_GET_VAR(__GLEW_SGIX_async_histogram) - -#endif /* GL_SGIX_async_histogram */ - -/* -------------------------- GL_SGIX_async_pixel -------------------------- */ - -#ifndef GL_SGIX_async_pixel -#define GL_SGIX_async_pixel 1 - -#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 - -#define GLEW_SGIX_async_pixel GLEW_GET_VAR(__GLEW_SGIX_async_pixel) - -#endif /* GL_SGIX_async_pixel */ - -/* ----------------------- GL_SGIX_blend_alpha_minmax ---------------------- */ - -#ifndef GL_SGIX_blend_alpha_minmax -#define GL_SGIX_blend_alpha_minmax 1 - -#define GL_ALPHA_MIN_SGIX 0x8320 -#define GL_ALPHA_MAX_SGIX 0x8321 - -#define GLEW_SGIX_blend_alpha_minmax GLEW_GET_VAR(__GLEW_SGIX_blend_alpha_minmax) - -#endif /* GL_SGIX_blend_alpha_minmax */ - -/* ---------------------------- GL_SGIX_clipmap ---------------------------- */ - -#ifndef GL_SGIX_clipmap -#define GL_SGIX_clipmap 1 - -#define GLEW_SGIX_clipmap GLEW_GET_VAR(__GLEW_SGIX_clipmap) - -#endif /* GL_SGIX_clipmap */ - -/* ---------------------- GL_SGIX_convolution_accuracy --------------------- */ - -#ifndef GL_SGIX_convolution_accuracy -#define GL_SGIX_convolution_accuracy 1 - -#define GL_CONVOLUTION_HINT_SGIX 0x8316 - -#define GLEW_SGIX_convolution_accuracy GLEW_GET_VAR(__GLEW_SGIX_convolution_accuracy) - -#endif /* GL_SGIX_convolution_accuracy */ - -/* ------------------------- GL_SGIX_depth_texture ------------------------- */ - -#ifndef GL_SGIX_depth_texture -#define GL_SGIX_depth_texture 1 - -#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 -#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 -#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 - -#define GLEW_SGIX_depth_texture GLEW_GET_VAR(__GLEW_SGIX_depth_texture) - -#endif /* GL_SGIX_depth_texture */ - -/* -------------------------- GL_SGIX_flush_raster ------------------------- */ - -#ifndef GL_SGIX_flush_raster -#define GL_SGIX_flush_raster 1 - -typedef void (GLAPIENTRY * PFNGLFLUSHRASTERSGIXPROC) (void); - -#define glFlushRasterSGIX GLEW_GET_FUN(__glewFlushRasterSGIX) - -#define GLEW_SGIX_flush_raster GLEW_GET_VAR(__GLEW_SGIX_flush_raster) - -#endif /* GL_SGIX_flush_raster */ - -/* --------------------------- GL_SGIX_fog_offset -------------------------- */ - -#ifndef GL_SGIX_fog_offset -#define GL_SGIX_fog_offset 1 - -#define GL_FOG_OFFSET_SGIX 0x8198 -#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 - -#define GLEW_SGIX_fog_offset GLEW_GET_VAR(__GLEW_SGIX_fog_offset) - -#endif /* GL_SGIX_fog_offset */ - -/* -------------------------- GL_SGIX_fog_texture -------------------------- */ - -#ifndef GL_SGIX_fog_texture -#define GL_SGIX_fog_texture 1 - -#define GL_TEXTURE_FOG_SGIX 0 -#define GL_FOG_PATCHY_FACTOR_SGIX 0 -#define GL_FRAGMENT_FOG_SGIX 0 - -typedef void (GLAPIENTRY * PFNGLTEXTUREFOGSGIXPROC) (GLenum pname); - -#define glTextureFogSGIX GLEW_GET_FUN(__glewTextureFogSGIX) - -#define GLEW_SGIX_fog_texture GLEW_GET_VAR(__GLEW_SGIX_fog_texture) - -#endif /* GL_SGIX_fog_texture */ - -/* ------------------- GL_SGIX_fragment_specular_lighting ------------------ */ - -#ifndef GL_SGIX_fragment_specular_lighting -#define GL_SGIX_fragment_specular_lighting 1 - -typedef void (GLAPIENTRY * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, const GLfloat param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, const GLint param); -typedef void (GLAPIENTRY * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum value, GLfloat* data); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum value, GLint* data); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat* data); -typedef void (GLAPIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint* data); - -#define glFragmentColorMaterialSGIX GLEW_GET_FUN(__glewFragmentColorMaterialSGIX) -#define glFragmentLightModelfSGIX GLEW_GET_FUN(__glewFragmentLightModelfSGIX) -#define glFragmentLightModelfvSGIX GLEW_GET_FUN(__glewFragmentLightModelfvSGIX) -#define glFragmentLightModeliSGIX GLEW_GET_FUN(__glewFragmentLightModeliSGIX) -#define glFragmentLightModelivSGIX GLEW_GET_FUN(__glewFragmentLightModelivSGIX) -#define glFragmentLightfSGIX GLEW_GET_FUN(__glewFragmentLightfSGIX) -#define glFragmentLightfvSGIX GLEW_GET_FUN(__glewFragmentLightfvSGIX) -#define glFragmentLightiSGIX GLEW_GET_FUN(__glewFragmentLightiSGIX) -#define glFragmentLightivSGIX GLEW_GET_FUN(__glewFragmentLightivSGIX) -#define glFragmentMaterialfSGIX GLEW_GET_FUN(__glewFragmentMaterialfSGIX) -#define glFragmentMaterialfvSGIX GLEW_GET_FUN(__glewFragmentMaterialfvSGIX) -#define glFragmentMaterialiSGIX GLEW_GET_FUN(__glewFragmentMaterialiSGIX) -#define glFragmentMaterialivSGIX GLEW_GET_FUN(__glewFragmentMaterialivSGIX) -#define glGetFragmentLightfvSGIX GLEW_GET_FUN(__glewGetFragmentLightfvSGIX) -#define glGetFragmentLightivSGIX GLEW_GET_FUN(__glewGetFragmentLightivSGIX) -#define glGetFragmentMaterialfvSGIX GLEW_GET_FUN(__glewGetFragmentMaterialfvSGIX) -#define glGetFragmentMaterialivSGIX GLEW_GET_FUN(__glewGetFragmentMaterialivSGIX) - -#define GLEW_SGIX_fragment_specular_lighting GLEW_GET_VAR(__GLEW_SGIX_fragment_specular_lighting) - -#endif /* GL_SGIX_fragment_specular_lighting */ - -/* --------------------------- GL_SGIX_framezoom --------------------------- */ - -#ifndef GL_SGIX_framezoom -#define GL_SGIX_framezoom 1 - -typedef void (GLAPIENTRY * PFNGLFRAMEZOOMSGIXPROC) (GLint factor); - -#define glFrameZoomSGIX GLEW_GET_FUN(__glewFrameZoomSGIX) - -#define GLEW_SGIX_framezoom GLEW_GET_VAR(__GLEW_SGIX_framezoom) - -#endif /* GL_SGIX_framezoom */ - -/* --------------------------- GL_SGIX_interlace --------------------------- */ - -#ifndef GL_SGIX_interlace -#define GL_SGIX_interlace 1 - -#define GL_INTERLACE_SGIX 0x8094 - -#define GLEW_SGIX_interlace GLEW_GET_VAR(__GLEW_SGIX_interlace) - -#endif /* GL_SGIX_interlace */ - -/* ------------------------- GL_SGIX_ir_instrument1 ------------------------ */ - -#ifndef GL_SGIX_ir_instrument1 -#define GL_SGIX_ir_instrument1 1 - -#define GLEW_SGIX_ir_instrument1 GLEW_GET_VAR(__GLEW_SGIX_ir_instrument1) - -#endif /* GL_SGIX_ir_instrument1 */ - -/* ------------------------- GL_SGIX_list_priority ------------------------- */ - -#ifndef GL_SGIX_list_priority -#define GL_SGIX_list_priority 1 - -#define GLEW_SGIX_list_priority GLEW_GET_VAR(__GLEW_SGIX_list_priority) - -#endif /* GL_SGIX_list_priority */ - -/* ------------------------- GL_SGIX_pixel_texture ------------------------- */ - -#ifndef GL_SGIX_pixel_texture -#define GL_SGIX_pixel_texture 1 - -typedef void (GLAPIENTRY * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); - -#define glPixelTexGenSGIX GLEW_GET_FUN(__glewPixelTexGenSGIX) - -#define GLEW_SGIX_pixel_texture GLEW_GET_VAR(__GLEW_SGIX_pixel_texture) - -#endif /* GL_SGIX_pixel_texture */ - -/* ----------------------- GL_SGIX_pixel_texture_bits ---------------------- */ - -#ifndef GL_SGIX_pixel_texture_bits -#define GL_SGIX_pixel_texture_bits 1 - -#define GLEW_SGIX_pixel_texture_bits GLEW_GET_VAR(__GLEW_SGIX_pixel_texture_bits) - -#endif /* GL_SGIX_pixel_texture_bits */ - -/* ------------------------ GL_SGIX_reference_plane ------------------------ */ - -#ifndef GL_SGIX_reference_plane -#define GL_SGIX_reference_plane 1 - -typedef void (GLAPIENTRY * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble* equation); - -#define glReferencePlaneSGIX GLEW_GET_FUN(__glewReferencePlaneSGIX) - -#define GLEW_SGIX_reference_plane GLEW_GET_VAR(__GLEW_SGIX_reference_plane) - -#endif /* GL_SGIX_reference_plane */ - -/* ---------------------------- GL_SGIX_resample --------------------------- */ - -#ifndef GL_SGIX_resample -#define GL_SGIX_resample 1 - -#define GL_PACK_RESAMPLE_SGIX 0x842E -#define GL_UNPACK_RESAMPLE_SGIX 0x842F -#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 -#define GL_RESAMPLE_REPLICATE_SGIX 0x8433 -#define GL_RESAMPLE_ZERO_FILL_SGIX 0x8434 - -#define GLEW_SGIX_resample GLEW_GET_VAR(__GLEW_SGIX_resample) - -#endif /* GL_SGIX_resample */ - -/* ----------------------------- GL_SGIX_shadow ---------------------------- */ - -#ifndef GL_SGIX_shadow -#define GL_SGIX_shadow 1 - -#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 - -#define GLEW_SGIX_shadow GLEW_GET_VAR(__GLEW_SGIX_shadow) - -#endif /* GL_SGIX_shadow */ - -/* ------------------------- GL_SGIX_shadow_ambient ------------------------ */ - -#ifndef GL_SGIX_shadow_ambient -#define GL_SGIX_shadow_ambient 1 - -#define GL_SHADOW_AMBIENT_SGIX 0x80BF - -#define GLEW_SGIX_shadow_ambient GLEW_GET_VAR(__GLEW_SGIX_shadow_ambient) - -#endif /* GL_SGIX_shadow_ambient */ - -/* ----------------------------- GL_SGIX_sprite ---------------------------- */ - -#ifndef GL_SGIX_sprite -#define GL_SGIX_sprite 1 - -typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); -typedef void (GLAPIENTRY * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, GLint* params); - -#define glSpriteParameterfSGIX GLEW_GET_FUN(__glewSpriteParameterfSGIX) -#define glSpriteParameterfvSGIX GLEW_GET_FUN(__glewSpriteParameterfvSGIX) -#define glSpriteParameteriSGIX GLEW_GET_FUN(__glewSpriteParameteriSGIX) -#define glSpriteParameterivSGIX GLEW_GET_FUN(__glewSpriteParameterivSGIX) - -#define GLEW_SGIX_sprite GLEW_GET_VAR(__GLEW_SGIX_sprite) - -#endif /* GL_SGIX_sprite */ - -/* ----------------------- GL_SGIX_tag_sample_buffer ----------------------- */ - -#ifndef GL_SGIX_tag_sample_buffer -#define GL_SGIX_tag_sample_buffer 1 - -typedef void (GLAPIENTRY * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); - -#define glTagSampleBufferSGIX GLEW_GET_FUN(__glewTagSampleBufferSGIX) - -#define GLEW_SGIX_tag_sample_buffer GLEW_GET_VAR(__GLEW_SGIX_tag_sample_buffer) - -#endif /* GL_SGIX_tag_sample_buffer */ - -/* ------------------------ GL_SGIX_texture_add_env ------------------------ */ - -#ifndef GL_SGIX_texture_add_env -#define GL_SGIX_texture_add_env 1 - -#define GLEW_SGIX_texture_add_env GLEW_GET_VAR(__GLEW_SGIX_texture_add_env) - -#endif /* GL_SGIX_texture_add_env */ - -/* -------------------- GL_SGIX_texture_coordinate_clamp ------------------- */ - -#ifndef GL_SGIX_texture_coordinate_clamp -#define GL_SGIX_texture_coordinate_clamp 1 - -#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 -#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A -#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B - -#define GLEW_SGIX_texture_coordinate_clamp GLEW_GET_VAR(__GLEW_SGIX_texture_coordinate_clamp) - -#endif /* GL_SGIX_texture_coordinate_clamp */ - -/* ------------------------ GL_SGIX_texture_lod_bias ----------------------- */ - -#ifndef GL_SGIX_texture_lod_bias -#define GL_SGIX_texture_lod_bias 1 - -#define GLEW_SGIX_texture_lod_bias GLEW_GET_VAR(__GLEW_SGIX_texture_lod_bias) - -#endif /* GL_SGIX_texture_lod_bias */ - -/* ---------------------- GL_SGIX_texture_multi_buffer --------------------- */ - -#ifndef GL_SGIX_texture_multi_buffer -#define GL_SGIX_texture_multi_buffer 1 - -#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E - -#define GLEW_SGIX_texture_multi_buffer GLEW_GET_VAR(__GLEW_SGIX_texture_multi_buffer) - -#endif /* GL_SGIX_texture_multi_buffer */ - -/* ------------------------- GL_SGIX_texture_range ------------------------- */ - -#ifndef GL_SGIX_texture_range -#define GL_SGIX_texture_range 1 - -#define GL_RGB_SIGNED_SGIX 0x85E0 -#define GL_RGBA_SIGNED_SGIX 0x85E1 -#define GL_ALPHA_SIGNED_SGIX 0x85E2 -#define GL_LUMINANCE_SIGNED_SGIX 0x85E3 -#define GL_INTENSITY_SIGNED_SGIX 0x85E4 -#define GL_LUMINANCE_ALPHA_SIGNED_SGIX 0x85E5 -#define GL_RGB16_SIGNED_SGIX 0x85E6 -#define GL_RGBA16_SIGNED_SGIX 0x85E7 -#define GL_ALPHA16_SIGNED_SGIX 0x85E8 -#define GL_LUMINANCE16_SIGNED_SGIX 0x85E9 -#define GL_INTENSITY16_SIGNED_SGIX 0x85EA -#define GL_LUMINANCE16_ALPHA16_SIGNED_SGIX 0x85EB -#define GL_RGB_EXTENDED_RANGE_SGIX 0x85EC -#define GL_RGBA_EXTENDED_RANGE_SGIX 0x85ED -#define GL_ALPHA_EXTENDED_RANGE_SGIX 0x85EE -#define GL_LUMINANCE_EXTENDED_RANGE_SGIX 0x85EF -#define GL_INTENSITY_EXTENDED_RANGE_SGIX 0x85F0 -#define GL_LUMINANCE_ALPHA_EXTENDED_RANGE_SGIX 0x85F1 -#define GL_RGB16_EXTENDED_RANGE_SGIX 0x85F2 -#define GL_RGBA16_EXTENDED_RANGE_SGIX 0x85F3 -#define GL_ALPHA16_EXTENDED_RANGE_SGIX 0x85F4 -#define GL_LUMINANCE16_EXTENDED_RANGE_SGIX 0x85F5 -#define GL_INTENSITY16_EXTENDED_RANGE_SGIX 0x85F6 -#define GL_LUMINANCE16_ALPHA16_EXTENDED_RANGE_SGIX 0x85F7 -#define GL_MIN_LUMINANCE_SGIS 0x85F8 -#define GL_MAX_LUMINANCE_SGIS 0x85F9 -#define GL_MIN_INTENSITY_SGIS 0x85FA -#define GL_MAX_INTENSITY_SGIS 0x85FB - -#define GLEW_SGIX_texture_range GLEW_GET_VAR(__GLEW_SGIX_texture_range) - -#endif /* GL_SGIX_texture_range */ - -/* ----------------------- GL_SGIX_texture_scale_bias ---------------------- */ - -#ifndef GL_SGIX_texture_scale_bias -#define GL_SGIX_texture_scale_bias 1 - -#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 - -#define GLEW_SGIX_texture_scale_bias GLEW_GET_VAR(__GLEW_SGIX_texture_scale_bias) - -#endif /* GL_SGIX_texture_scale_bias */ - -/* ------------------------- GL_SGIX_vertex_preclip ------------------------ */ - -#ifndef GL_SGIX_vertex_preclip -#define GL_SGIX_vertex_preclip 1 - -#define GL_VERTEX_PRECLIP_SGIX 0x83EE -#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF - -#define GLEW_SGIX_vertex_preclip GLEW_GET_VAR(__GLEW_SGIX_vertex_preclip) - -#endif /* GL_SGIX_vertex_preclip */ - -/* ---------------------- GL_SGIX_vertex_preclip_hint ---------------------- */ - -#ifndef GL_SGIX_vertex_preclip_hint -#define GL_SGIX_vertex_preclip_hint 1 - -#define GL_VERTEX_PRECLIP_SGIX 0x83EE -#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF - -#define GLEW_SGIX_vertex_preclip_hint GLEW_GET_VAR(__GLEW_SGIX_vertex_preclip_hint) - -#endif /* GL_SGIX_vertex_preclip_hint */ - -/* ----------------------------- GL_SGIX_ycrcb ----------------------------- */ - -#ifndef GL_SGIX_ycrcb -#define GL_SGIX_ycrcb 1 - -#define GLEW_SGIX_ycrcb GLEW_GET_VAR(__GLEW_SGIX_ycrcb) - -#endif /* GL_SGIX_ycrcb */ - -/* -------------------------- GL_SGI_color_matrix -------------------------- */ - -#ifndef GL_SGI_color_matrix -#define GL_SGI_color_matrix 1 - -#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 - -#define GLEW_SGI_color_matrix GLEW_GET_VAR(__GLEW_SGI_color_matrix) - -#endif /* GL_SGI_color_matrix */ - -/* --------------------------- GL_SGI_color_table -------------------------- */ - -#ifndef GL_SGI_color_table -#define GL_SGI_color_table 1 - -#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 - -typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat* params); -typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint* params); -typedef void (GLAPIENTRY * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void* table); -typedef void (GLAPIENTRY * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat* params); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint* params); -typedef void (GLAPIENTRY * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, void* table); - -#define glColorTableParameterfvSGI GLEW_GET_FUN(__glewColorTableParameterfvSGI) -#define glColorTableParameterivSGI GLEW_GET_FUN(__glewColorTableParameterivSGI) -#define glColorTableSGI GLEW_GET_FUN(__glewColorTableSGI) -#define glCopyColorTableSGI GLEW_GET_FUN(__glewCopyColorTableSGI) -#define glGetColorTableParameterfvSGI GLEW_GET_FUN(__glewGetColorTableParameterfvSGI) -#define glGetColorTableParameterivSGI GLEW_GET_FUN(__glewGetColorTableParameterivSGI) -#define glGetColorTableSGI GLEW_GET_FUN(__glewGetColorTableSGI) - -#define GLEW_SGI_color_table GLEW_GET_VAR(__GLEW_SGI_color_table) - -#endif /* GL_SGI_color_table */ - -/* ----------------------- GL_SGI_texture_color_table ---------------------- */ - -#ifndef GL_SGI_texture_color_table -#define GL_SGI_texture_color_table 1 - -#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC -#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD - -#define GLEW_SGI_texture_color_table GLEW_GET_VAR(__GLEW_SGI_texture_color_table) - -#endif /* GL_SGI_texture_color_table */ - -/* ------------------------- GL_SUNX_constant_data ------------------------- */ - -#ifndef GL_SUNX_constant_data -#define GL_SUNX_constant_data 1 - -#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 -#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 - -typedef void (GLAPIENTRY * PFNGLFINISHTEXTURESUNXPROC) (void); - -#define glFinishTextureSUNX GLEW_GET_FUN(__glewFinishTextureSUNX) - -#define GLEW_SUNX_constant_data GLEW_GET_VAR(__GLEW_SUNX_constant_data) - -#endif /* GL_SUNX_constant_data */ - -/* -------------------- GL_SUN_convolution_border_modes -------------------- */ - -#ifndef GL_SUN_convolution_border_modes -#define GL_SUN_convolution_border_modes 1 - -#define GL_WRAP_BORDER_SUN 0x81D4 - -#define GLEW_SUN_convolution_border_modes GLEW_GET_VAR(__GLEW_SUN_convolution_border_modes) - -#endif /* GL_SUN_convolution_border_modes */ - -/* -------------------------- GL_SUN_global_alpha -------------------------- */ - -#ifndef GL_SUN_global_alpha -#define GL_SUN_global_alpha 1 - -#define GL_GLOBAL_ALPHA_SUN 0x81D9 -#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA - -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); -typedef void (GLAPIENTRY * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); - -#define glGlobalAlphaFactorbSUN GLEW_GET_FUN(__glewGlobalAlphaFactorbSUN) -#define glGlobalAlphaFactordSUN GLEW_GET_FUN(__glewGlobalAlphaFactordSUN) -#define glGlobalAlphaFactorfSUN GLEW_GET_FUN(__glewGlobalAlphaFactorfSUN) -#define glGlobalAlphaFactoriSUN GLEW_GET_FUN(__glewGlobalAlphaFactoriSUN) -#define glGlobalAlphaFactorsSUN GLEW_GET_FUN(__glewGlobalAlphaFactorsSUN) -#define glGlobalAlphaFactorubSUN GLEW_GET_FUN(__glewGlobalAlphaFactorubSUN) -#define glGlobalAlphaFactoruiSUN GLEW_GET_FUN(__glewGlobalAlphaFactoruiSUN) -#define glGlobalAlphaFactorusSUN GLEW_GET_FUN(__glewGlobalAlphaFactorusSUN) - -#define GLEW_SUN_global_alpha GLEW_GET_VAR(__GLEW_SUN_global_alpha) - -#endif /* GL_SUN_global_alpha */ - -/* --------------------------- GL_SUN_mesh_array --------------------------- */ - -#ifndef GL_SUN_mesh_array -#define GL_SUN_mesh_array 1 - -#define GL_QUAD_MESH_SUN 0x8614 -#define GL_TRIANGLE_MESH_SUN 0x8615 - -#define GLEW_SUN_mesh_array GLEW_GET_VAR(__GLEW_SUN_mesh_array) - -#endif /* GL_SUN_mesh_array */ - -/* ------------------------ GL_SUN_read_video_pixels ----------------------- */ - -#ifndef GL_SUN_read_video_pixels -#define GL_SUN_read_video_pixels 1 - -typedef void (GLAPIENTRY * PFNGLREADVIDEOPIXELSSUNPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); - -#define glReadVideoPixelsSUN GLEW_GET_FUN(__glewReadVideoPixelsSUN) - -#define GLEW_SUN_read_video_pixels GLEW_GET_VAR(__GLEW_SUN_read_video_pixels) - -#endif /* GL_SUN_read_video_pixels */ - -/* --------------------------- GL_SUN_slice_accum -------------------------- */ - -#ifndef GL_SUN_slice_accum -#define GL_SUN_slice_accum 1 - -#define GL_SLICE_ACCUM_SUN 0x85CC - -#define GLEW_SUN_slice_accum GLEW_GET_VAR(__GLEW_SUN_slice_accum) - -#endif /* GL_SUN_slice_accum */ - -/* -------------------------- GL_SUN_triangle_list ------------------------- */ - -#ifndef GL_SUN_triangle_list -#define GL_SUN_triangle_list 1 - -#define GL_RESTART_SUN 0x01 -#define GL_REPLACE_MIDDLE_SUN 0x02 -#define GL_REPLACE_OLDEST_SUN 0x03 -#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 - -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const void* pointer); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte* code); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint* code); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort* code); - -#define glReplacementCodePointerSUN GLEW_GET_FUN(__glewReplacementCodePointerSUN) -#define glReplacementCodeubSUN GLEW_GET_FUN(__glewReplacementCodeubSUN) -#define glReplacementCodeubvSUN GLEW_GET_FUN(__glewReplacementCodeubvSUN) -#define glReplacementCodeuiSUN GLEW_GET_FUN(__glewReplacementCodeuiSUN) -#define glReplacementCodeuivSUN GLEW_GET_FUN(__glewReplacementCodeuivSUN) -#define glReplacementCodeusSUN GLEW_GET_FUN(__glewReplacementCodeusSUN) -#define glReplacementCodeusvSUN GLEW_GET_FUN(__glewReplacementCodeusvSUN) - -#define GLEW_SUN_triangle_list GLEW_GET_VAR(__GLEW_SUN_triangle_list) - -#endif /* GL_SUN_triangle_list */ - -/* ----------------------------- GL_SUN_vertex ----------------------------- */ - -#ifndef GL_SUN_vertex -#define GL_SUN_vertex 1 - -typedef void (GLAPIENTRY * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* c, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte* c, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte* c, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *c, const GLfloat *v); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLuint* rc, const GLubyte *c, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *tc, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLuint rc, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLuint* rc, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *v); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat* tc, const GLubyte *c, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (GLAPIENTRY * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat* tc, const GLfloat *v); -typedef void (GLAPIENTRY * 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 (GLAPIENTRY * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (GLAPIENTRY * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (GLAPIENTRY * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat* tc, const GLfloat *v); - -#define glColor3fVertex3fSUN GLEW_GET_FUN(__glewColor3fVertex3fSUN) -#define glColor3fVertex3fvSUN GLEW_GET_FUN(__glewColor3fVertex3fvSUN) -#define glColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewColor4fNormal3fVertex3fSUN) -#define glColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewColor4fNormal3fVertex3fvSUN) -#define glColor4ubVertex2fSUN GLEW_GET_FUN(__glewColor4ubVertex2fSUN) -#define glColor4ubVertex2fvSUN GLEW_GET_FUN(__glewColor4ubVertex2fvSUN) -#define glColor4ubVertex3fSUN GLEW_GET_FUN(__glewColor4ubVertex3fSUN) -#define glColor4ubVertex3fvSUN GLEW_GET_FUN(__glewColor4ubVertex3fvSUN) -#define glNormal3fVertex3fSUN GLEW_GET_FUN(__glewNormal3fVertex3fSUN) -#define glNormal3fVertex3fvSUN GLEW_GET_FUN(__glewNormal3fVertex3fvSUN) -#define glReplacementCodeuiColor3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor3fVertex3fSUN) -#define glReplacementCodeuiColor3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor3fVertex3fvSUN) -#define glReplacementCodeuiColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4fNormal3fVertex3fSUN) -#define glReplacementCodeuiColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4fNormal3fVertex3fvSUN) -#define glReplacementCodeuiColor4ubVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4ubVertex3fSUN) -#define glReplacementCodeuiColor4ubVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiColor4ubVertex3fvSUN) -#define glReplacementCodeuiNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiNormal3fVertex3fSUN) -#define glReplacementCodeuiNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiNormal3fVertex3fvSUN) -#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN) -#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN) -#define glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fNormal3fVertex3fSUN) -#define glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN) -#define glReplacementCodeuiTexCoord2fVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fVertex3fSUN) -#define glReplacementCodeuiTexCoord2fVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiTexCoord2fVertex3fvSUN) -#define glReplacementCodeuiVertex3fSUN GLEW_GET_FUN(__glewReplacementCodeuiVertex3fSUN) -#define glReplacementCodeuiVertex3fvSUN GLEW_GET_FUN(__glewReplacementCodeuiVertex3fvSUN) -#define glTexCoord2fColor3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor3fVertex3fSUN) -#define glTexCoord2fColor3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor3fVertex3fvSUN) -#define glTexCoord2fColor4fNormal3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor4fNormal3fVertex3fSUN) -#define glTexCoord2fColor4fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor4fNormal3fVertex3fvSUN) -#define glTexCoord2fColor4ubVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fColor4ubVertex3fSUN) -#define glTexCoord2fColor4ubVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fColor4ubVertex3fvSUN) -#define glTexCoord2fNormal3fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fNormal3fVertex3fSUN) -#define glTexCoord2fNormal3fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fNormal3fVertex3fvSUN) -#define glTexCoord2fVertex3fSUN GLEW_GET_FUN(__glewTexCoord2fVertex3fSUN) -#define glTexCoord2fVertex3fvSUN GLEW_GET_FUN(__glewTexCoord2fVertex3fvSUN) -#define glTexCoord4fColor4fNormal3fVertex4fSUN GLEW_GET_FUN(__glewTexCoord4fColor4fNormal3fVertex4fSUN) -#define glTexCoord4fColor4fNormal3fVertex4fvSUN GLEW_GET_FUN(__glewTexCoord4fColor4fNormal3fVertex4fvSUN) -#define glTexCoord4fVertex4fSUN GLEW_GET_FUN(__glewTexCoord4fVertex4fSUN) -#define glTexCoord4fVertex4fvSUN GLEW_GET_FUN(__glewTexCoord4fVertex4fvSUN) - -#define GLEW_SUN_vertex GLEW_GET_VAR(__GLEW_SUN_vertex) - -#endif /* GL_SUN_vertex */ - -/* -------------------------- GL_WIN_phong_shading ------------------------- */ - -#ifndef GL_WIN_phong_shading -#define GL_WIN_phong_shading 1 - -#define GL_PHONG_WIN 0x80EA -#define GL_PHONG_HINT_WIN 0x80EB - -#define GLEW_WIN_phong_shading GLEW_GET_VAR(__GLEW_WIN_phong_shading) - -#endif /* GL_WIN_phong_shading */ - -/* -------------------------- GL_WIN_specular_fog -------------------------- */ - -#ifndef GL_WIN_specular_fog -#define GL_WIN_specular_fog 1 - -#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC - -#define GLEW_WIN_specular_fog GLEW_GET_VAR(__GLEW_WIN_specular_fog) - -#endif /* GL_WIN_specular_fog */ - -/* ---------------------------- GL_WIN_swap_hint --------------------------- */ - -#ifndef GL_WIN_swap_hint -#define GL_WIN_swap_hint 1 - -typedef void (GLAPIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height); - -#define glAddSwapHintRectWIN GLEW_GET_FUN(__glewAddSwapHintRectWIN) - -#define GLEW_WIN_swap_hint GLEW_GET_VAR(__GLEW_WIN_swap_hint) - -#endif /* GL_WIN_swap_hint */ - -/* ------------------------------------------------------------------------- */ - -#if defined(GLEW_MX) && defined(_WIN32) -#define GLEW_FUN_EXPORT -#else -#define GLEW_FUN_EXPORT GLEWAPI -#endif /* GLEW_MX */ - -#if defined(GLEW_MX) -#define GLEW_VAR_EXPORT -#else -#define GLEW_VAR_EXPORT GLEWAPI -#endif /* GLEW_MX */ - -#if defined(GLEW_MX) && defined(_WIN32) -struct GLEWContextStruct -{ -#endif /* GLEW_MX */ - -GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D; -GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements; -GLEW_FUN_EXPORT PFNGLTEXIMAGE3DPROC __glewTexImage3D; -GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DPROC __glewTexSubImage3D; - -GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture; -GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DPROC __glewCompressedTexImage1D; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DPROC __glewCompressedTexImage3D; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC __glewCompressedTexSubImage1D; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC __glewCompressedTexSubImage3D; -GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEPROC __glewGetCompressedTexImage; -GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXDPROC __glewLoadTransposeMatrixd; -GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXFPROC __glewLoadTransposeMatrixf; -GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXDPROC __glewMultTransposeMatrixd; -GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXFPROC __glewMultTransposeMatrixf; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DPROC __glewMultiTexCoord1d; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DVPROC __glewMultiTexCoord1dv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FPROC __glewMultiTexCoord1f; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FVPROC __glewMultiTexCoord1fv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IPROC __glewMultiTexCoord1i; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IVPROC __glewMultiTexCoord1iv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SPROC __glewMultiTexCoord1s; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SVPROC __glewMultiTexCoord1sv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DPROC __glewMultiTexCoord2d; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DVPROC __glewMultiTexCoord2dv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FPROC __glewMultiTexCoord2f; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FVPROC __glewMultiTexCoord2fv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IPROC __glewMultiTexCoord2i; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IVPROC __glewMultiTexCoord2iv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SPROC __glewMultiTexCoord2s; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SVPROC __glewMultiTexCoord2sv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DPROC __glewMultiTexCoord3d; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DVPROC __glewMultiTexCoord3dv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FPROC __glewMultiTexCoord3f; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FVPROC __glewMultiTexCoord3fv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IPROC __glewMultiTexCoord3i; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IVPROC __glewMultiTexCoord3iv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SPROC __glewMultiTexCoord3s; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SVPROC __glewMultiTexCoord3sv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DPROC __glewMultiTexCoord4d; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DVPROC __glewMultiTexCoord4dv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FVPROC __glewMultiTexCoord4fv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IPROC __glewMultiTexCoord4i; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IVPROC __glewMultiTexCoord4iv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SPROC __glewMultiTexCoord4s; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SVPROC __glewMultiTexCoord4sv; -GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage; - -GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor; -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONPROC __glewBlendEquation; -GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate; -GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTERPROC __glewFogCoordPointer; -GLEW_FUN_EXPORT PFNGLFOGCOORDDPROC __glewFogCoordd; -GLEW_FUN_EXPORT PFNGLFOGCOORDDVPROC __glewFogCoorddv; -GLEW_FUN_EXPORT PFNGLFOGCOORDFPROC __glewFogCoordf; -GLEW_FUN_EXPORT PFNGLFOGCOORDFVPROC __glewFogCoordfv; -GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSPROC __glewMultiDrawArrays; -GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSPROC __glewMultiDrawElements; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFPROC __glewPointParameterf; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIPROC __glewPointParameteri; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIVPROC __glewPointParameteriv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BPROC __glewSecondaryColor3b; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BVPROC __glewSecondaryColor3bv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DPROC __glewSecondaryColor3d; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DVPROC __glewSecondaryColor3dv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FPROC __glewSecondaryColor3f; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FVPROC __glewSecondaryColor3fv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IPROC __glewSecondaryColor3i; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IVPROC __glewSecondaryColor3iv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SPROC __glewSecondaryColor3s; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SVPROC __glewSecondaryColor3sv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBPROC __glewSecondaryColor3ub; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBVPROC __glewSecondaryColor3ubv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIPROC __glewSecondaryColor3ui; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIVPROC __glewSecondaryColor3uiv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USPROC __glewSecondaryColor3us; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USVPROC __glewSecondaryColor3usv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTERPROC __glewSecondaryColorPointer; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DPROC __glewWindowPos2d; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVPROC __glewWindowPos2dv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FPROC __glewWindowPos2f; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVPROC __glewWindowPos2fv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IPROC __glewWindowPos2i; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVPROC __glewWindowPos2iv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SPROC __glewWindowPos2s; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVPROC __glewWindowPos2sv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DPROC __glewWindowPos3d; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVPROC __glewWindowPos3dv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FPROC __glewWindowPos3f; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVPROC __glewWindowPos3fv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IPROC __glewWindowPos3i; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVPROC __glewWindowPos3iv; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SPROC __glewWindowPos3s; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVPROC __glewWindowPos3sv; - -GLEW_FUN_EXPORT PFNGLBEGINQUERYPROC __glewBeginQuery; -GLEW_FUN_EXPORT PFNGLBINDBUFFERPROC __glewBindBuffer; -GLEW_FUN_EXPORT PFNGLBUFFERDATAPROC __glewBufferData; -GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAPROC __glewBufferSubData; -GLEW_FUN_EXPORT PFNGLDELETEBUFFERSPROC __glewDeleteBuffers; -GLEW_FUN_EXPORT PFNGLDELETEQUERIESPROC __glewDeleteQueries; -GLEW_FUN_EXPORT PFNGLENDQUERYPROC __glewEndQuery; -GLEW_FUN_EXPORT PFNGLGENBUFFERSPROC __glewGenBuffers; -GLEW_FUN_EXPORT PFNGLGENQUERIESPROC __glewGenQueries; -GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv; -GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVPROC __glewGetBufferPointerv; -GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAPROC __glewGetBufferSubData; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTIVPROC __glewGetQueryObjectiv; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVPROC __glewGetQueryObjectuiv; -GLEW_FUN_EXPORT PFNGLGETQUERYIVPROC __glewGetQueryiv; -GLEW_FUN_EXPORT PFNGLISBUFFERPROC __glewIsBuffer; -GLEW_FUN_EXPORT PFNGLISQUERYPROC __glewIsQuery; -GLEW_FUN_EXPORT PFNGLMAPBUFFERPROC __glewMapBuffer; -GLEW_FUN_EXPORT PFNGLUNMAPBUFFERPROC __glewUnmapBuffer; - -GLEW_FUN_EXPORT PFNGLATTACHSHADERPROC __glewAttachShader; -GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation; -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate; -GLEW_FUN_EXPORT PFNGLCOMPILESHADERPROC __glewCompileShader; -GLEW_FUN_EXPORT PFNGLCREATEPROGRAMPROC __glewCreateProgram; -GLEW_FUN_EXPORT PFNGLCREATESHADERPROC __glewCreateShader; -GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPROC __glewDeleteProgram; -GLEW_FUN_EXPORT PFNGLDELETESHADERPROC __glewDeleteShader; -GLEW_FUN_EXPORT PFNGLDETACHSHADERPROC __glewDetachShader; -GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray; -GLEW_FUN_EXPORT PFNGLDRAWBUFFERSPROC __glewDrawBuffers; -GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray; -GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform; -GLEW_FUN_EXPORT PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders; -GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation; -GLEW_FUN_EXPORT PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog; -GLEW_FUN_EXPORT PFNGLGETPROGRAMIVPROC __glewGetProgramiv; -GLEW_FUN_EXPORT PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog; -GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEPROC __glewGetShaderSource; -GLEW_FUN_EXPORT PFNGLGETSHADERIVPROC __glewGetShaderiv; -GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation; -GLEW_FUN_EXPORT PFNGLGETUNIFORMFVPROC __glewGetUniformfv; -GLEW_FUN_EXPORT PFNGLGETUNIFORMIVPROC __glewGetUniformiv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVPROC __glewGetVertexAttribdv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv; -GLEW_FUN_EXPORT PFNGLISPROGRAMPROC __glewIsProgram; -GLEW_FUN_EXPORT PFNGLISSHADERPROC __glewIsShader; -GLEW_FUN_EXPORT PFNGLLINKPROGRAMPROC __glewLinkProgram; -GLEW_FUN_EXPORT PFNGLSHADERSOURCEPROC __glewShaderSource; -GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate; -GLEW_FUN_EXPORT PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate; -GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate; -GLEW_FUN_EXPORT PFNGLUNIFORM1FPROC __glewUniform1f; -GLEW_FUN_EXPORT PFNGLUNIFORM1FVPROC __glewUniform1fv; -GLEW_FUN_EXPORT PFNGLUNIFORM1IPROC __glewUniform1i; -GLEW_FUN_EXPORT PFNGLUNIFORM1IVPROC __glewUniform1iv; -GLEW_FUN_EXPORT PFNGLUNIFORM2FPROC __glewUniform2f; -GLEW_FUN_EXPORT PFNGLUNIFORM2FVPROC __glewUniform2fv; -GLEW_FUN_EXPORT PFNGLUNIFORM2IPROC __glewUniform2i; -GLEW_FUN_EXPORT PFNGLUNIFORM2IVPROC __glewUniform2iv; -GLEW_FUN_EXPORT PFNGLUNIFORM3FPROC __glewUniform3f; -GLEW_FUN_EXPORT PFNGLUNIFORM3FVPROC __glewUniform3fv; -GLEW_FUN_EXPORT PFNGLUNIFORM3IPROC __glewUniform3i; -GLEW_FUN_EXPORT PFNGLUNIFORM3IVPROC __glewUniform3iv; -GLEW_FUN_EXPORT PFNGLUNIFORM4FPROC __glewUniform4f; -GLEW_FUN_EXPORT PFNGLUNIFORM4FVPROC __glewUniform4fv; -GLEW_FUN_EXPORT PFNGLUNIFORM4IPROC __glewUniform4i; -GLEW_FUN_EXPORT PFNGLUNIFORM4IVPROC __glewUniform4iv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv; -GLEW_FUN_EXPORT PFNGLUSEPROGRAMPROC __glewUseProgram; -GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPROC __glewValidateProgram; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DPROC __glewVertexAttrib1d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVPROC __glewVertexAttrib1dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SPROC __glewVertexAttrib1s; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVPROC __glewVertexAttrib1sv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DPROC __glewVertexAttrib2d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVPROC __glewVertexAttrib2dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SPROC __glewVertexAttrib2s; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVPROC __glewVertexAttrib2sv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DPROC __glewVertexAttrib3d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVPROC __glewVertexAttrib3dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SPROC __glewVertexAttrib3s; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVPROC __glewVertexAttrib3sv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NBVPROC __glewVertexAttrib4Nbv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NIVPROC __glewVertexAttrib4Niv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NSVPROC __glewVertexAttrib4Nsv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBPROC __glewVertexAttrib4Nub; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBVPROC __glewVertexAttrib4Nubv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUIVPROC __glewVertexAttrib4Nuiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUSVPROC __glewVertexAttrib4Nusv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4BVPROC __glewVertexAttrib4bv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DPROC __glewVertexAttrib4d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVPROC __glewVertexAttrib4dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4IVPROC __glewVertexAttrib4iv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SPROC __glewVertexAttrib4s; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVPROC __glewVertexAttrib4sv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVPROC __glewVertexAttrib4ubv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UIVPROC __glewVertexAttrib4uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4USVPROC __glewVertexAttrib4usv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer; - -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X3FVPROC __glewUniformMatrix2x3fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X4FVPROC __glewUniformMatrix2x4fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X2FVPROC __glewUniformMatrix3x2fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X4FVPROC __glewUniformMatrix3x4fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X2FVPROC __glewUniformMatrix4x2fv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X3FVPROC __glewUniformMatrix4x3fv; - -GLEW_FUN_EXPORT PFNGLBEGINCONDITIONALRENDERPROC __glewBeginConditionalRender; -GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKPROC __glewBeginTransformFeedback; -GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONPROC __glewBindFragDataLocation; -GLEW_FUN_EXPORT PFNGLCLAMPCOLORPROC __glewClampColor; -GLEW_FUN_EXPORT PFNGLCLEARBUFFERFIPROC __glewClearBufferfi; -GLEW_FUN_EXPORT PFNGLCLEARBUFFERFVPROC __glewClearBufferfv; -GLEW_FUN_EXPORT PFNGLCLEARBUFFERIVPROC __glewClearBufferiv; -GLEW_FUN_EXPORT PFNGLCLEARBUFFERUIVPROC __glewClearBufferuiv; -GLEW_FUN_EXPORT PFNGLCOLORMASKIPROC __glewColorMaski; -GLEW_FUN_EXPORT PFNGLDISABLEIPROC __glewDisablei; -GLEW_FUN_EXPORT PFNGLENABLEIPROC __glewEnablei; -GLEW_FUN_EXPORT PFNGLENDCONDITIONALRENDERPROC __glewEndConditionalRender; -GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKPROC __glewEndTransformFeedback; -GLEW_FUN_EXPORT PFNGLGETBOOLEANI_VPROC __glewGetBooleani_v; -GLEW_FUN_EXPORT PFNGLGETFRAGDATALOCATIONPROC __glewGetFragDataLocation; -GLEW_FUN_EXPORT PFNGLGETSTRINGIPROC __glewGetStringi; -GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIIVPROC __glewGetTexParameterIiv; -GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIUIVPROC __glewGetTexParameterIuiv; -GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGPROC __glewGetTransformFeedbackVarying; -GLEW_FUN_EXPORT PFNGLGETUNIFORMUIVPROC __glewGetUniformuiv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIIVPROC __glewGetVertexAttribIiv; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIUIVPROC __glewGetVertexAttribIuiv; -GLEW_FUN_EXPORT PFNGLISENABLEDIPROC __glewIsEnabledi; -GLEW_FUN_EXPORT PFNGLTEXPARAMETERIIVPROC __glewTexParameterIiv; -GLEW_FUN_EXPORT PFNGLTEXPARAMETERIUIVPROC __glewTexParameterIuiv; -GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSPROC __glewTransformFeedbackVaryings; -GLEW_FUN_EXPORT PFNGLUNIFORM1UIPROC __glewUniform1ui; -GLEW_FUN_EXPORT PFNGLUNIFORM1UIVPROC __glewUniform1uiv; -GLEW_FUN_EXPORT PFNGLUNIFORM2UIPROC __glewUniform2ui; -GLEW_FUN_EXPORT PFNGLUNIFORM2UIVPROC __glewUniform2uiv; -GLEW_FUN_EXPORT PFNGLUNIFORM3UIPROC __glewUniform3ui; -GLEW_FUN_EXPORT PFNGLUNIFORM3UIVPROC __glewUniform3uiv; -GLEW_FUN_EXPORT PFNGLUNIFORM4UIPROC __glewUniform4ui; -GLEW_FUN_EXPORT PFNGLUNIFORM4UIVPROC __glewUniform4uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IPROC __glewVertexAttribI1i; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IVPROC __glewVertexAttribI1iv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIPROC __glewVertexAttribI1ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIVPROC __glewVertexAttribI1uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IPROC __glewVertexAttribI2i; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IVPROC __glewVertexAttribI2iv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIPROC __glewVertexAttribI2ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIVPROC __glewVertexAttribI2uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IPROC __glewVertexAttribI3i; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IVPROC __glewVertexAttribI3iv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIPROC __glewVertexAttribI3ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIVPROC __glewVertexAttribI3uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4BVPROC __glewVertexAttribI4bv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IPROC __glewVertexAttribI4i; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IVPROC __glewVertexAttribI4iv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4SVPROC __glewVertexAttribI4sv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UBVPROC __glewVertexAttribI4ubv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIPROC __glewVertexAttribI4ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIVPROC __glewVertexAttribI4uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4USVPROC __glewVertexAttribI4usv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIPOINTERPROC __glewVertexAttribIPointer; - -GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDPROC __glewDrawArraysInstanced; -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDPROC __glewDrawElementsInstanced; -GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTINDEXPROC __glewPrimitiveRestartIndex; -GLEW_FUN_EXPORT PFNGLTEXBUFFERPROC __glewTexBuffer; - -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREPROC __glewFramebufferTexture; -GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERI64VPROC __glewGetBufferParameteri64v; -GLEW_FUN_EXPORT PFNGLGETINTEGER64I_VPROC __glewGetInteger64i_v; - -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBDIVISORPROC __glewVertexAttribDivisor; - -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEIPROC __glewBlendEquationSeparatei; -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONIPROC __glewBlendEquationi; -GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEIPROC __glewBlendFuncSeparatei; -GLEW_FUN_EXPORT PFNGLBLENDFUNCIPROC __glewBlendFunci; -GLEW_FUN_EXPORT PFNGLMINSAMPLESHADINGPROC __glewMinSampleShading; - -GLEW_FUN_EXPORT PFNGLTBUFFERMASK3DFXPROC __glewTbufferMask3DFX; - -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECALLBACKAMDPROC __glewDebugMessageCallbackAMD; -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEENABLEAMDPROC __glewDebugMessageEnableAMD; -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEINSERTAMDPROC __glewDebugMessageInsertAMD; -GLEW_FUN_EXPORT PFNGLGETDEBUGMESSAGELOGAMDPROC __glewGetDebugMessageLogAMD; - -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONINDEXEDAMDPROC __glewBlendEquationIndexedAMD; -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC __glewBlendEquationSeparateIndexedAMD; -GLEW_FUN_EXPORT PFNGLBLENDFUNCINDEXEDAMDPROC __glewBlendFuncIndexedAMD; -GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC __glewBlendFuncSeparateIndexedAMD; - -GLEW_FUN_EXPORT PFNGLDELETENAMESAMDPROC __glewDeleteNamesAMD; -GLEW_FUN_EXPORT PFNGLGENNAMESAMDPROC __glewGenNamesAMD; -GLEW_FUN_EXPORT PFNGLISNAMEAMDPROC __glewIsNameAMD; - -GLEW_FUN_EXPORT PFNGLBEGINPERFMONITORAMDPROC __glewBeginPerfMonitorAMD; -GLEW_FUN_EXPORT PFNGLDELETEPERFMONITORSAMDPROC __glewDeletePerfMonitorsAMD; -GLEW_FUN_EXPORT PFNGLENDPERFMONITORAMDPROC __glewEndPerfMonitorAMD; -GLEW_FUN_EXPORT PFNGLGENPERFMONITORSAMDPROC __glewGenPerfMonitorsAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERDATAAMDPROC __glewGetPerfMonitorCounterDataAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERINFOAMDPROC __glewGetPerfMonitorCounterInfoAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC __glewGetPerfMonitorCounterStringAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSAMDPROC __glewGetPerfMonitorCountersAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSTRINGAMDPROC __glewGetPerfMonitorGroupStringAMD; -GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSAMDPROC __glewGetPerfMonitorGroupsAMD; -GLEW_FUN_EXPORT PFNGLSELECTPERFMONITORCOUNTERSAMDPROC __glewSelectPerfMonitorCountersAMD; - -GLEW_FUN_EXPORT PFNGLSETMULTISAMPLEFVAMDPROC __glewSetMultisamplefvAMD; - -GLEW_FUN_EXPORT PFNGLTESSELLATIONFACTORAMDPROC __glewTessellationFactorAMD; -GLEW_FUN_EXPORT PFNGLTESSELLATIONMODEAMDPROC __glewTessellationModeAMD; - -GLEW_FUN_EXPORT PFNGLDRAWELEMENTARRAYAPPLEPROC __glewDrawElementArrayAPPLE; -GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC __glewDrawRangeElementArrayAPPLE; -GLEW_FUN_EXPORT PFNGLELEMENTPOINTERAPPLEPROC __glewElementPointerAPPLE; -GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC __glewMultiDrawElementArrayAPPLE; -GLEW_FUN_EXPORT PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC __glewMultiDrawRangeElementArrayAPPLE; - -GLEW_FUN_EXPORT PFNGLDELETEFENCESAPPLEPROC __glewDeleteFencesAPPLE; -GLEW_FUN_EXPORT PFNGLFINISHFENCEAPPLEPROC __glewFinishFenceAPPLE; -GLEW_FUN_EXPORT PFNGLFINISHOBJECTAPPLEPROC __glewFinishObjectAPPLE; -GLEW_FUN_EXPORT PFNGLGENFENCESAPPLEPROC __glewGenFencesAPPLE; -GLEW_FUN_EXPORT PFNGLISFENCEAPPLEPROC __glewIsFenceAPPLE; -GLEW_FUN_EXPORT PFNGLSETFENCEAPPLEPROC __glewSetFenceAPPLE; -GLEW_FUN_EXPORT PFNGLTESTFENCEAPPLEPROC __glewTestFenceAPPLE; -GLEW_FUN_EXPORT PFNGLTESTOBJECTAPPLEPROC __glewTestObjectAPPLE; - -GLEW_FUN_EXPORT PFNGLBUFFERPARAMETERIAPPLEPROC __glewBufferParameteriAPPLE; -GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC __glewFlushMappedBufferRangeAPPLE; - -GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERIVAPPLEPROC __glewGetObjectParameterivAPPLE; -GLEW_FUN_EXPORT PFNGLOBJECTPURGEABLEAPPLEPROC __glewObjectPurgeableAPPLE; -GLEW_FUN_EXPORT PFNGLOBJECTUNPURGEABLEAPPLEPROC __glewObjectUnpurgeableAPPLE; - -GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC __glewGetTexParameterPointervAPPLE; -GLEW_FUN_EXPORT PFNGLTEXTURERANGEAPPLEPROC __glewTextureRangeAPPLE; - -GLEW_FUN_EXPORT PFNGLBINDVERTEXARRAYAPPLEPROC __glewBindVertexArrayAPPLE; -GLEW_FUN_EXPORT PFNGLDELETEVERTEXARRAYSAPPLEPROC __glewDeleteVertexArraysAPPLE; -GLEW_FUN_EXPORT PFNGLGENVERTEXARRAYSAPPLEPROC __glewGenVertexArraysAPPLE; -GLEW_FUN_EXPORT PFNGLISVERTEXARRAYAPPLEPROC __glewIsVertexArrayAPPLE; - -GLEW_FUN_EXPORT PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC __glewFlushVertexArrayRangeAPPLE; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYPARAMETERIAPPLEPROC __glewVertexArrayParameteriAPPLE; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYRANGEAPPLEPROC __glewVertexArrayRangeAPPLE; - -GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBAPPLEPROC __glewDisableVertexAttribAPPLE; -GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBAPPLEPROC __glewEnableVertexAttribAPPLE; -GLEW_FUN_EXPORT PFNGLISVERTEXATTRIBENABLEDAPPLEPROC __glewIsVertexAttribEnabledAPPLE; -GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB1DAPPLEPROC __glewMapVertexAttrib1dAPPLE; -GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB1FAPPLEPROC __glewMapVertexAttrib1fAPPLE; -GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB2DAPPLEPROC __glewMapVertexAttrib2dAPPLE; -GLEW_FUN_EXPORT PFNGLMAPVERTEXATTRIB2FAPPLEPROC __glewMapVertexAttrib2fAPPLE; - -GLEW_FUN_EXPORT PFNGLCLEARDEPTHFPROC __glewClearDepthf; -GLEW_FUN_EXPORT PFNGLDEPTHRANGEFPROC __glewDepthRangef; -GLEW_FUN_EXPORT PFNGLGETSHADERPRECISIONFORMATPROC __glewGetShaderPrecisionFormat; -GLEW_FUN_EXPORT PFNGLRELEASESHADERCOMPILERPROC __glewReleaseShaderCompiler; -GLEW_FUN_EXPORT PFNGLSHADERBINARYPROC __glewShaderBinary; - -GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONINDEXEDPROC __glewBindFragDataLocationIndexed; -GLEW_FUN_EXPORT PFNGLGETFRAGDATAINDEXPROC __glewGetFragDataIndex; - -GLEW_FUN_EXPORT PFNGLCREATESYNCFROMCLEVENTARBPROC __glewCreateSyncFromCLeventARB; - -GLEW_FUN_EXPORT PFNGLCLAMPCOLORARBPROC __glewClampColorARB; - -GLEW_FUN_EXPORT PFNGLCOPYBUFFERSUBDATAPROC __glewCopyBufferSubData; - -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECALLBACKARBPROC __glewDebugMessageCallbackARB; -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECONTROLARBPROC __glewDebugMessageControlARB; -GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEINSERTARBPROC __glewDebugMessageInsertARB; -GLEW_FUN_EXPORT PFNGLGETDEBUGMESSAGELOGARBPROC __glewGetDebugMessageLogARB; - -GLEW_FUN_EXPORT PFNGLDRAWBUFFERSARBPROC __glewDrawBuffersARB; - -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEIARBPROC __glewBlendEquationSeparateiARB; -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONIARBPROC __glewBlendEquationiARB; -GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEIARBPROC __glewBlendFuncSeparateiARB; -GLEW_FUN_EXPORT PFNGLBLENDFUNCIARBPROC __glewBlendFunciARB; - -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSBASEVERTEXPROC __glewDrawElementsBaseVertex; -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC __glewDrawElementsInstancedBaseVertex; -GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC __glewDrawRangeElementsBaseVertex; -GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC __glewMultiDrawElementsBaseVertex; - -GLEW_FUN_EXPORT PFNGLDRAWARRAYSINDIRECTPROC __glewDrawArraysIndirect; -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINDIRECTPROC __glewDrawElementsIndirect; - -GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFERPROC __glewBindFramebuffer; -GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFERPROC __glewBindRenderbuffer; -GLEW_FUN_EXPORT PFNGLBLITFRAMEBUFFERPROC __glewBlitFramebuffer; -GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSPROC __glewCheckFramebufferStatus; -GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSPROC __glewDeleteFramebuffers; -GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSPROC __glewDeleteRenderbuffers; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFERPROC __glewFramebufferRenderbuffer; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE1DPROC __glewFramebufferTexture1D; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DPROC __glewFramebufferTexture2D; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE3DPROC __glewFramebufferTexture3D; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERPROC __glewFramebufferTextureLayer; -GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSPROC __glewGenFramebuffers; -GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSPROC __glewGenRenderbuffers; -GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPPROC __glewGenerateMipmap; -GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC __glewGetFramebufferAttachmentParameteriv; -GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVPROC __glewGetRenderbufferParameteriv; -GLEW_FUN_EXPORT PFNGLISFRAMEBUFFERPROC __glewIsFramebuffer; -GLEW_FUN_EXPORT PFNGLISRENDERBUFFERPROC __glewIsRenderbuffer; -GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEPROC __glewRenderbufferStorage; -GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC __glewRenderbufferStorageMultisample; - -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREARBPROC __glewFramebufferTextureARB; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEARBPROC __glewFramebufferTextureFaceARB; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERARBPROC __glewFramebufferTextureLayerARB; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIARBPROC __glewProgramParameteriARB; - -GLEW_FUN_EXPORT PFNGLGETPROGRAMBINARYPROC __glewGetProgramBinary; -GLEW_FUN_EXPORT PFNGLPROGRAMBINARYPROC __glewProgramBinary; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIPROC __glewProgramParameteri; - -GLEW_FUN_EXPORT PFNGLGETUNIFORMDVPROC __glewGetUniformdv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DEXTPROC __glewProgramUniform1dEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DVEXTPROC __glewProgramUniform1dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DEXTPROC __glewProgramUniform2dEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DVEXTPROC __glewProgramUniform2dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DEXTPROC __glewProgramUniform3dEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DVEXTPROC __glewProgramUniform3dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DEXTPROC __glewProgramUniform4dEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DVEXTPROC __glewProgramUniform4dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC __glewProgramUniformMatrix2dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC __glewProgramUniformMatrix2x3dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC __glewProgramUniformMatrix2x4dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC __glewProgramUniformMatrix3dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC __glewProgramUniformMatrix3x2dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC __glewProgramUniformMatrix3x4dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC __glewProgramUniformMatrix4dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC __glewProgramUniformMatrix4x2dvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC __glewProgramUniformMatrix4x3dvEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM1DPROC __glewUniform1d; -GLEW_FUN_EXPORT PFNGLUNIFORM1DVPROC __glewUniform1dv; -GLEW_FUN_EXPORT PFNGLUNIFORM2DPROC __glewUniform2d; -GLEW_FUN_EXPORT PFNGLUNIFORM2DVPROC __glewUniform2dv; -GLEW_FUN_EXPORT PFNGLUNIFORM3DPROC __glewUniform3d; -GLEW_FUN_EXPORT PFNGLUNIFORM3DVPROC __glewUniform3dv; -GLEW_FUN_EXPORT PFNGLUNIFORM4DPROC __glewUniform4d; -GLEW_FUN_EXPORT PFNGLUNIFORM4DVPROC __glewUniform4dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2DVPROC __glewUniformMatrix2dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X3DVPROC __glewUniformMatrix2x3dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X4DVPROC __glewUniformMatrix2x4dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3DVPROC __glewUniformMatrix3dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X2DVPROC __glewUniformMatrix3x2dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X4DVPROC __glewUniformMatrix3x4dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4DVPROC __glewUniformMatrix4dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X2DVPROC __glewUniformMatrix4x2dv; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X3DVPROC __glewUniformMatrix4x3dv; - -GLEW_FUN_EXPORT PFNGLCOLORSUBTABLEPROC __glewColorSubTable; -GLEW_FUN_EXPORT PFNGLCOLORTABLEPROC __glewColorTable; -GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERFVPROC __glewColorTableParameterfv; -GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERIVPROC __glewColorTableParameteriv; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER1DPROC __glewConvolutionFilter1D; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER2DPROC __glewConvolutionFilter2D; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFPROC __glewConvolutionParameterf; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFVPROC __glewConvolutionParameterfv; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIPROC __glewConvolutionParameteri; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIVPROC __glewConvolutionParameteriv; -GLEW_FUN_EXPORT PFNGLCOPYCOLORSUBTABLEPROC __glewCopyColorSubTable; -GLEW_FUN_EXPORT PFNGLCOPYCOLORTABLEPROC __glewCopyColorTable; -GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DPROC __glewCopyConvolutionFilter1D; -GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DPROC __glewCopyConvolutionFilter2D; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPROC __glewGetColorTable; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVPROC __glewGetColorTableParameterfv; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVPROC __glewGetColorTableParameteriv; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONFILTERPROC __glewGetConvolutionFilter; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVPROC __glewGetConvolutionParameterfv; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVPROC __glewGetConvolutionParameteriv; -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPROC __glewGetHistogram; -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERFVPROC __glewGetHistogramParameterfv; -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERIVPROC __glewGetHistogramParameteriv; -GLEW_FUN_EXPORT PFNGLGETMINMAXPROC __glewGetMinmax; -GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERFVPROC __glewGetMinmaxParameterfv; -GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERIVPROC __glewGetMinmaxParameteriv; -GLEW_FUN_EXPORT PFNGLGETSEPARABLEFILTERPROC __glewGetSeparableFilter; -GLEW_FUN_EXPORT PFNGLHISTOGRAMPROC __glewHistogram; -GLEW_FUN_EXPORT PFNGLMINMAXPROC __glewMinmax; -GLEW_FUN_EXPORT PFNGLRESETHISTOGRAMPROC __glewResetHistogram; -GLEW_FUN_EXPORT PFNGLRESETMINMAXPROC __glewResetMinmax; -GLEW_FUN_EXPORT PFNGLSEPARABLEFILTER2DPROC __glewSeparableFilter2D; - -GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDARBPROC __glewDrawArraysInstancedARB; -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDARBPROC __glewDrawElementsInstancedARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBDIVISORARBPROC __glewVertexAttribDivisorARB; - -GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEPROC __glewFlushMappedBufferRange; -GLEW_FUN_EXPORT PFNGLMAPBUFFERRANGEPROC __glewMapBufferRange; - -GLEW_FUN_EXPORT PFNGLCURRENTPALETTEMATRIXARBPROC __glewCurrentPaletteMatrixARB; -GLEW_FUN_EXPORT PFNGLMATRIXINDEXPOINTERARBPROC __glewMatrixIndexPointerARB; -GLEW_FUN_EXPORT PFNGLMATRIXINDEXUBVARBPROC __glewMatrixIndexubvARB; -GLEW_FUN_EXPORT PFNGLMATRIXINDEXUIVARBPROC __glewMatrixIndexuivARB; -GLEW_FUN_EXPORT PFNGLMATRIXINDEXUSVARBPROC __glewMatrixIndexusvARB; - -GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEARBPROC __glewSampleCoverageARB; - -GLEW_FUN_EXPORT PFNGLACTIVETEXTUREARBPROC __glewActiveTextureARB; -GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREARBPROC __glewClientActiveTextureARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DARBPROC __glewMultiTexCoord1dARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DVARBPROC __glewMultiTexCoord1dvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FARBPROC __glewMultiTexCoord1fARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FVARBPROC __glewMultiTexCoord1fvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IARBPROC __glewMultiTexCoord1iARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IVARBPROC __glewMultiTexCoord1ivARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SARBPROC __glewMultiTexCoord1sARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SVARBPROC __glewMultiTexCoord1svARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DARBPROC __glewMultiTexCoord2dARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DVARBPROC __glewMultiTexCoord2dvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FARBPROC __glewMultiTexCoord2fARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FVARBPROC __glewMultiTexCoord2fvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IARBPROC __glewMultiTexCoord2iARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IVARBPROC __glewMultiTexCoord2ivARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SARBPROC __glewMultiTexCoord2sARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SVARBPROC __glewMultiTexCoord2svARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DARBPROC __glewMultiTexCoord3dARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DVARBPROC __glewMultiTexCoord3dvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FARBPROC __glewMultiTexCoord3fARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FVARBPROC __glewMultiTexCoord3fvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IARBPROC __glewMultiTexCoord3iARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IVARBPROC __glewMultiTexCoord3ivARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SARBPROC __glewMultiTexCoord3sARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SVARBPROC __glewMultiTexCoord3svARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DARBPROC __glewMultiTexCoord4dARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DVARBPROC __glewMultiTexCoord4dvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FARBPROC __glewMultiTexCoord4fARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FVARBPROC __glewMultiTexCoord4fvARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IARBPROC __glewMultiTexCoord4iARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IVARBPROC __glewMultiTexCoord4ivARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SARBPROC __glewMultiTexCoord4sARB; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SVARBPROC __glewMultiTexCoord4svARB; - -GLEW_FUN_EXPORT PFNGLBEGINQUERYARBPROC __glewBeginQueryARB; -GLEW_FUN_EXPORT PFNGLDELETEQUERIESARBPROC __glewDeleteQueriesARB; -GLEW_FUN_EXPORT PFNGLENDQUERYARBPROC __glewEndQueryARB; -GLEW_FUN_EXPORT PFNGLGENQUERIESARBPROC __glewGenQueriesARB; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTIVARBPROC __glewGetQueryObjectivARB; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVARBPROC __glewGetQueryObjectuivARB; -GLEW_FUN_EXPORT PFNGLGETQUERYIVARBPROC __glewGetQueryivARB; -GLEW_FUN_EXPORT PFNGLISQUERYARBPROC __glewIsQueryARB; - -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFARBPROC __glewPointParameterfARB; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVARBPROC __glewPointParameterfvARB; - -GLEW_FUN_EXPORT PFNGLPROVOKINGVERTEXPROC __glewProvokingVertex; - -GLEW_FUN_EXPORT PFNGLGETNCOLORTABLEARBPROC __glewGetnColorTableARB; -GLEW_FUN_EXPORT PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC __glewGetnCompressedTexImageARB; -GLEW_FUN_EXPORT PFNGLGETNCONVOLUTIONFILTERARBPROC __glewGetnConvolutionFilterARB; -GLEW_FUN_EXPORT PFNGLGETNHISTOGRAMARBPROC __glewGetnHistogramARB; -GLEW_FUN_EXPORT PFNGLGETNMAPDVARBPROC __glewGetnMapdvARB; -GLEW_FUN_EXPORT PFNGLGETNMAPFVARBPROC __glewGetnMapfvARB; -GLEW_FUN_EXPORT PFNGLGETNMAPIVARBPROC __glewGetnMapivARB; -GLEW_FUN_EXPORT PFNGLGETNMINMAXARBPROC __glewGetnMinmaxARB; -GLEW_FUN_EXPORT PFNGLGETNPIXELMAPFVARBPROC __glewGetnPixelMapfvARB; -GLEW_FUN_EXPORT PFNGLGETNPIXELMAPUIVARBPROC __glewGetnPixelMapuivARB; -GLEW_FUN_EXPORT PFNGLGETNPIXELMAPUSVARBPROC __glewGetnPixelMapusvARB; -GLEW_FUN_EXPORT PFNGLGETNPOLYGONSTIPPLEARBPROC __glewGetnPolygonStippleARB; -GLEW_FUN_EXPORT PFNGLGETNSEPARABLEFILTERARBPROC __glewGetnSeparableFilterARB; -GLEW_FUN_EXPORT PFNGLGETNTEXIMAGEARBPROC __glewGetnTexImageARB; -GLEW_FUN_EXPORT PFNGLGETNUNIFORMDVARBPROC __glewGetnUniformdvARB; -GLEW_FUN_EXPORT PFNGLGETNUNIFORMFVARBPROC __glewGetnUniformfvARB; -GLEW_FUN_EXPORT PFNGLGETNUNIFORMIVARBPROC __glewGetnUniformivARB; -GLEW_FUN_EXPORT PFNGLGETNUNIFORMUIVARBPROC __glewGetnUniformuivARB; -GLEW_FUN_EXPORT PFNGLREADNPIXELSARBPROC __glewReadnPixelsARB; - -GLEW_FUN_EXPORT PFNGLMINSAMPLESHADINGARBPROC __glewMinSampleShadingARB; - -GLEW_FUN_EXPORT PFNGLBINDSAMPLERPROC __glewBindSampler; -GLEW_FUN_EXPORT PFNGLDELETESAMPLERSPROC __glewDeleteSamplers; -GLEW_FUN_EXPORT PFNGLGENSAMPLERSPROC __glewGenSamplers; -GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIIVPROC __glewGetSamplerParameterIiv; -GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIUIVPROC __glewGetSamplerParameterIuiv; -GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERFVPROC __glewGetSamplerParameterfv; -GLEW_FUN_EXPORT PFNGLGETSAMPLERPARAMETERIVPROC __glewGetSamplerParameteriv; -GLEW_FUN_EXPORT PFNGLISSAMPLERPROC __glewIsSampler; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIIVPROC __glewSamplerParameterIiv; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIUIVPROC __glewSamplerParameterIuiv; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERFPROC __glewSamplerParameterf; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERFVPROC __glewSamplerParameterfv; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIPROC __glewSamplerParameteri; -GLEW_FUN_EXPORT PFNGLSAMPLERPARAMETERIVPROC __glewSamplerParameteriv; - -GLEW_FUN_EXPORT PFNGLACTIVESHADERPROGRAMPROC __glewActiveShaderProgram; -GLEW_FUN_EXPORT PFNGLBINDPROGRAMPIPELINEPROC __glewBindProgramPipeline; -GLEW_FUN_EXPORT PFNGLCREATESHADERPROGRAMVPROC __glewCreateShaderProgramv; -GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPIPELINESPROC __glewDeleteProgramPipelines; -GLEW_FUN_EXPORT PFNGLGENPROGRAMPIPELINESPROC __glewGenProgramPipelines; -GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEINFOLOGPROC __glewGetProgramPipelineInfoLog; -GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEIVPROC __glewGetProgramPipelineiv; -GLEW_FUN_EXPORT PFNGLISPROGRAMPIPELINEPROC __glewIsProgramPipeline; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DPROC __glewProgramUniform1d; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1DVPROC __glewProgramUniform1dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FPROC __glewProgramUniform1f; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FVPROC __glewProgramUniform1fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IPROC __glewProgramUniform1i; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IVPROC __glewProgramUniform1iv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIPROC __glewProgramUniform1ui; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIVPROC __glewProgramUniform1uiv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DPROC __glewProgramUniform2d; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2DVPROC __glewProgramUniform2dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FPROC __glewProgramUniform2f; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FVPROC __glewProgramUniform2fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IPROC __glewProgramUniform2i; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IVPROC __glewProgramUniform2iv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIPROC __glewProgramUniform2ui; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIVPROC __glewProgramUniform2uiv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DPROC __glewProgramUniform3d; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3DVPROC __glewProgramUniform3dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FPROC __glewProgramUniform3f; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FVPROC __glewProgramUniform3fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IPROC __glewProgramUniform3i; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IVPROC __glewProgramUniform3iv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIPROC __glewProgramUniform3ui; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIVPROC __glewProgramUniform3uiv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DPROC __glewProgramUniform4d; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4DVPROC __glewProgramUniform4dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FPROC __glewProgramUniform4f; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FVPROC __glewProgramUniform4fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IPROC __glewProgramUniform4i; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IVPROC __glewProgramUniform4iv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIPROC __glewProgramUniform4ui; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIVPROC __glewProgramUniform4uiv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2DVPROC __glewProgramUniformMatrix2dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVPROC __glewProgramUniformMatrix2fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC __glewProgramUniformMatrix2x3dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC __glewProgramUniformMatrix2x3fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC __glewProgramUniformMatrix2x4dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC __glewProgramUniformMatrix2x4fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3DVPROC __glewProgramUniformMatrix3dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVPROC __glewProgramUniformMatrix3fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC __glewProgramUniformMatrix3x2dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC __glewProgramUniformMatrix3x2fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC __glewProgramUniformMatrix3x4dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC __glewProgramUniformMatrix3x4fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4DVPROC __glewProgramUniformMatrix4dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVPROC __glewProgramUniformMatrix4fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC __glewProgramUniformMatrix4x2dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC __glewProgramUniformMatrix4x2fv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC __glewProgramUniformMatrix4x3dv; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC __glewProgramUniformMatrix4x3fv; -GLEW_FUN_EXPORT PFNGLUSEPROGRAMSTAGESPROC __glewUseProgramStages; -GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPIPELINEPROC __glewValidateProgramPipeline; - -GLEW_FUN_EXPORT PFNGLATTACHOBJECTARBPROC __glewAttachObjectARB; -GLEW_FUN_EXPORT PFNGLCOMPILESHADERARBPROC __glewCompileShaderARB; -GLEW_FUN_EXPORT PFNGLCREATEPROGRAMOBJECTARBPROC __glewCreateProgramObjectARB; -GLEW_FUN_EXPORT PFNGLCREATESHADEROBJECTARBPROC __glewCreateShaderObjectARB; -GLEW_FUN_EXPORT PFNGLDELETEOBJECTARBPROC __glewDeleteObjectARB; -GLEW_FUN_EXPORT PFNGLDETACHOBJECTARBPROC __glewDetachObjectARB; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMARBPROC __glewGetActiveUniformARB; -GLEW_FUN_EXPORT PFNGLGETATTACHEDOBJECTSARBPROC __glewGetAttachedObjectsARB; -GLEW_FUN_EXPORT PFNGLGETHANDLEARBPROC __glewGetHandleARB; -GLEW_FUN_EXPORT PFNGLGETINFOLOGARBPROC __glewGetInfoLogARB; -GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERFVARBPROC __glewGetObjectParameterfvARB; -GLEW_FUN_EXPORT PFNGLGETOBJECTPARAMETERIVARBPROC __glewGetObjectParameterivARB; -GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEARBPROC __glewGetShaderSourceARB; -GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONARBPROC __glewGetUniformLocationARB; -GLEW_FUN_EXPORT PFNGLGETUNIFORMFVARBPROC __glewGetUniformfvARB; -GLEW_FUN_EXPORT PFNGLGETUNIFORMIVARBPROC __glewGetUniformivARB; -GLEW_FUN_EXPORT PFNGLLINKPROGRAMARBPROC __glewLinkProgramARB; -GLEW_FUN_EXPORT PFNGLSHADERSOURCEARBPROC __glewShaderSourceARB; -GLEW_FUN_EXPORT PFNGLUNIFORM1FARBPROC __glewUniform1fARB; -GLEW_FUN_EXPORT PFNGLUNIFORM1FVARBPROC __glewUniform1fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORM1IARBPROC __glewUniform1iARB; -GLEW_FUN_EXPORT PFNGLUNIFORM1IVARBPROC __glewUniform1ivARB; -GLEW_FUN_EXPORT PFNGLUNIFORM2FARBPROC __glewUniform2fARB; -GLEW_FUN_EXPORT PFNGLUNIFORM2FVARBPROC __glewUniform2fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORM2IARBPROC __glewUniform2iARB; -GLEW_FUN_EXPORT PFNGLUNIFORM2IVARBPROC __glewUniform2ivARB; -GLEW_FUN_EXPORT PFNGLUNIFORM3FARBPROC __glewUniform3fARB; -GLEW_FUN_EXPORT PFNGLUNIFORM3FVARBPROC __glewUniform3fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORM3IARBPROC __glewUniform3iARB; -GLEW_FUN_EXPORT PFNGLUNIFORM3IVARBPROC __glewUniform3ivARB; -GLEW_FUN_EXPORT PFNGLUNIFORM4FARBPROC __glewUniform4fARB; -GLEW_FUN_EXPORT PFNGLUNIFORM4FVARBPROC __glewUniform4fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORM4IARBPROC __glewUniform4iARB; -GLEW_FUN_EXPORT PFNGLUNIFORM4IVARBPROC __glewUniform4ivARB; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVARBPROC __glewUniformMatrix2fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVARBPROC __glewUniformMatrix3fvARB; -GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVARBPROC __glewUniformMatrix4fvARB; -GLEW_FUN_EXPORT PFNGLUSEPROGRAMOBJECTARBPROC __glewUseProgramObjectARB; -GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMARBPROC __glewValidateProgramARB; - -GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINENAMEPROC __glewGetActiveSubroutineName; -GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC __glewGetActiveSubroutineUniformName; -GLEW_FUN_EXPORT PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC __glewGetActiveSubroutineUniformiv; -GLEW_FUN_EXPORT PFNGLGETPROGRAMSTAGEIVPROC __glewGetProgramStageiv; -GLEW_FUN_EXPORT PFNGLGETSUBROUTINEINDEXPROC __glewGetSubroutineIndex; -GLEW_FUN_EXPORT PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC __glewGetSubroutineUniformLocation; -GLEW_FUN_EXPORT PFNGLGETUNIFORMSUBROUTINEUIVPROC __glewGetUniformSubroutineuiv; -GLEW_FUN_EXPORT PFNGLUNIFORMSUBROUTINESUIVPROC __glewUniformSubroutinesuiv; - -GLEW_FUN_EXPORT PFNGLCOMPILESHADERINCLUDEARBPROC __glewCompileShaderIncludeARB; -GLEW_FUN_EXPORT PFNGLDELETENAMEDSTRINGARBPROC __glewDeleteNamedStringARB; -GLEW_FUN_EXPORT PFNGLGETNAMEDSTRINGARBPROC __glewGetNamedStringARB; -GLEW_FUN_EXPORT PFNGLGETNAMEDSTRINGIVARBPROC __glewGetNamedStringivARB; -GLEW_FUN_EXPORT PFNGLISNAMEDSTRINGARBPROC __glewIsNamedStringARB; -GLEW_FUN_EXPORT PFNGLNAMEDSTRINGARBPROC __glewNamedStringARB; - -GLEW_FUN_EXPORT PFNGLCLIENTWAITSYNCPROC __glewClientWaitSync; -GLEW_FUN_EXPORT PFNGLDELETESYNCPROC __glewDeleteSync; -GLEW_FUN_EXPORT PFNGLFENCESYNCPROC __glewFenceSync; -GLEW_FUN_EXPORT PFNGLGETINTEGER64VPROC __glewGetInteger64v; -GLEW_FUN_EXPORT PFNGLGETSYNCIVPROC __glewGetSynciv; -GLEW_FUN_EXPORT PFNGLISSYNCPROC __glewIsSync; -GLEW_FUN_EXPORT PFNGLWAITSYNCPROC __glewWaitSync; - -GLEW_FUN_EXPORT PFNGLPATCHPARAMETERFVPROC __glewPatchParameterfv; -GLEW_FUN_EXPORT PFNGLPATCHPARAMETERIPROC __glewPatchParameteri; - -GLEW_FUN_EXPORT PFNGLTEXBUFFERARBPROC __glewTexBufferARB; - -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DARBPROC __glewCompressedTexImage1DARB; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DARBPROC __glewCompressedTexImage2DARB; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DARBPROC __glewCompressedTexImage3DARB; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC __glewCompressedTexSubImage1DARB; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC __glewCompressedTexSubImage2DARB; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC __glewCompressedTexSubImage3DARB; -GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEARBPROC __glewGetCompressedTexImageARB; - -GLEW_FUN_EXPORT PFNGLGETMULTISAMPLEFVPROC __glewGetMultisamplefv; -GLEW_FUN_EXPORT PFNGLSAMPLEMASKIPROC __glewSampleMaski; -GLEW_FUN_EXPORT PFNGLTEXIMAGE2DMULTISAMPLEPROC __glewTexImage2DMultisample; -GLEW_FUN_EXPORT PFNGLTEXIMAGE3DMULTISAMPLEPROC __glewTexImage3DMultisample; - -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTI64VPROC __glewGetQueryObjecti64v; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUI64VPROC __glewGetQueryObjectui64v; -GLEW_FUN_EXPORT PFNGLQUERYCOUNTERPROC __glewQueryCounter; - -GLEW_FUN_EXPORT PFNGLBINDTRANSFORMFEEDBACKPROC __glewBindTransformFeedback; -GLEW_FUN_EXPORT PFNGLDELETETRANSFORMFEEDBACKSPROC __glewDeleteTransformFeedbacks; -GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKPROC __glewDrawTransformFeedback; -GLEW_FUN_EXPORT PFNGLGENTRANSFORMFEEDBACKSPROC __glewGenTransformFeedbacks; -GLEW_FUN_EXPORT PFNGLISTRANSFORMFEEDBACKPROC __glewIsTransformFeedback; -GLEW_FUN_EXPORT PFNGLPAUSETRANSFORMFEEDBACKPROC __glewPauseTransformFeedback; -GLEW_FUN_EXPORT PFNGLRESUMETRANSFORMFEEDBACKPROC __glewResumeTransformFeedback; - -GLEW_FUN_EXPORT PFNGLBEGINQUERYINDEXEDPROC __glewBeginQueryIndexed; -GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC __glewDrawTransformFeedbackStream; -GLEW_FUN_EXPORT PFNGLENDQUERYINDEXEDPROC __glewEndQueryIndexed; -GLEW_FUN_EXPORT PFNGLGETQUERYINDEXEDIVPROC __glewGetQueryIndexediv; - -GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXDARBPROC __glewLoadTransposeMatrixdARB; -GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXFARBPROC __glewLoadTransposeMatrixfARB; -GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXDARBPROC __glewMultTransposeMatrixdARB; -GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXFARBPROC __glewMultTransposeMatrixfARB; - -GLEW_FUN_EXPORT PFNGLBINDBUFFERBASEPROC __glewBindBufferBase; -GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGEPROC __glewBindBufferRange; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC __glewGetActiveUniformBlockName; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMBLOCKIVPROC __glewGetActiveUniformBlockiv; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMNAMEPROC __glewGetActiveUniformName; -GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMSIVPROC __glewGetActiveUniformsiv; -GLEW_FUN_EXPORT PFNGLGETINTEGERI_VPROC __glewGetIntegeri_v; -GLEW_FUN_EXPORT PFNGLGETUNIFORMBLOCKINDEXPROC __glewGetUniformBlockIndex; -GLEW_FUN_EXPORT PFNGLGETUNIFORMINDICESPROC __glewGetUniformIndices; -GLEW_FUN_EXPORT PFNGLUNIFORMBLOCKBINDINGPROC __glewUniformBlockBinding; - -GLEW_FUN_EXPORT PFNGLBINDVERTEXARRAYPROC __glewBindVertexArray; -GLEW_FUN_EXPORT PFNGLDELETEVERTEXARRAYSPROC __glewDeleteVertexArrays; -GLEW_FUN_EXPORT PFNGLGENVERTEXARRAYSPROC __glewGenVertexArrays; -GLEW_FUN_EXPORT PFNGLISVERTEXARRAYPROC __glewIsVertexArray; - -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLDVPROC __glewGetVertexAttribLdv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DPROC __glewVertexAttribL1d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DVPROC __glewVertexAttribL1dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DPROC __glewVertexAttribL2d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DVPROC __glewVertexAttribL2dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DPROC __glewVertexAttribL3d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DVPROC __glewVertexAttribL3dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DPROC __glewVertexAttribL4d; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DVPROC __glewVertexAttribL4dv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLPOINTERPROC __glewVertexAttribLPointer; - -GLEW_FUN_EXPORT PFNGLVERTEXBLENDARBPROC __glewVertexBlendARB; -GLEW_FUN_EXPORT PFNGLWEIGHTPOINTERARBPROC __glewWeightPointerARB; -GLEW_FUN_EXPORT PFNGLWEIGHTBVARBPROC __glewWeightbvARB; -GLEW_FUN_EXPORT PFNGLWEIGHTDVARBPROC __glewWeightdvARB; -GLEW_FUN_EXPORT PFNGLWEIGHTFVARBPROC __glewWeightfvARB; -GLEW_FUN_EXPORT PFNGLWEIGHTIVARBPROC __glewWeightivARB; -GLEW_FUN_EXPORT PFNGLWEIGHTSVARBPROC __glewWeightsvARB; -GLEW_FUN_EXPORT PFNGLWEIGHTUBVARBPROC __glewWeightubvARB; -GLEW_FUN_EXPORT PFNGLWEIGHTUIVARBPROC __glewWeightuivARB; -GLEW_FUN_EXPORT PFNGLWEIGHTUSVARBPROC __glewWeightusvARB; - -GLEW_FUN_EXPORT PFNGLBINDBUFFERARBPROC __glewBindBufferARB; -GLEW_FUN_EXPORT PFNGLBUFFERDATAARBPROC __glewBufferDataARB; -GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAARBPROC __glewBufferSubDataARB; -GLEW_FUN_EXPORT PFNGLDELETEBUFFERSARBPROC __glewDeleteBuffersARB; -GLEW_FUN_EXPORT PFNGLGENBUFFERSARBPROC __glewGenBuffersARB; -GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVARBPROC __glewGetBufferParameterivARB; -GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVARBPROC __glewGetBufferPointervARB; -GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAARBPROC __glewGetBufferSubDataARB; -GLEW_FUN_EXPORT PFNGLISBUFFERARBPROC __glewIsBufferARB; -GLEW_FUN_EXPORT PFNGLMAPBUFFERARBPROC __glewMapBufferARB; -GLEW_FUN_EXPORT PFNGLUNMAPBUFFERARBPROC __glewUnmapBufferARB; - -GLEW_FUN_EXPORT PFNGLBINDPROGRAMARBPROC __glewBindProgramARB; -GLEW_FUN_EXPORT PFNGLDELETEPROGRAMSARBPROC __glewDeleteProgramsARB; -GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYARBPROC __glewDisableVertexAttribArrayARB; -GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYARBPROC __glewEnableVertexAttribArrayARB; -GLEW_FUN_EXPORT PFNGLGENPROGRAMSARBPROC __glewGenProgramsARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMENVPARAMETERDVARBPROC __glewGetProgramEnvParameterdvARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMENVPARAMETERFVARBPROC __glewGetProgramEnvParameterfvARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC __glewGetProgramLocalParameterdvARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC __glewGetProgramLocalParameterfvARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMSTRINGARBPROC __glewGetProgramStringARB; -GLEW_FUN_EXPORT PFNGLGETPROGRAMIVARBPROC __glewGetProgramivARB; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVARBPROC __glewGetVertexAttribPointervARB; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVARBPROC __glewGetVertexAttribdvARB; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVARBPROC __glewGetVertexAttribfvARB; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVARBPROC __glewGetVertexAttribivARB; -GLEW_FUN_EXPORT PFNGLISPROGRAMARBPROC __glewIsProgramARB; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4DARBPROC __glewProgramEnvParameter4dARB; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4DVARBPROC __glewProgramEnvParameter4dvARB; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4FARBPROC __glewProgramEnvParameter4fARB; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETER4FVARBPROC __glewProgramEnvParameter4fvARB; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4DARBPROC __glewProgramLocalParameter4dARB; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4DVARBPROC __glewProgramLocalParameter4dvARB; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4FARBPROC __glewProgramLocalParameter4fARB; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETER4FVARBPROC __glewProgramLocalParameter4fvARB; -GLEW_FUN_EXPORT PFNGLPROGRAMSTRINGARBPROC __glewProgramStringARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DARBPROC __glewVertexAttrib1dARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVARBPROC __glewVertexAttrib1dvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FARBPROC __glewVertexAttrib1fARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVARBPROC __glewVertexAttrib1fvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SARBPROC __glewVertexAttrib1sARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVARBPROC __glewVertexAttrib1svARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DARBPROC __glewVertexAttrib2dARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVARBPROC __glewVertexAttrib2dvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FARBPROC __glewVertexAttrib2fARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVARBPROC __glewVertexAttrib2fvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SARBPROC __glewVertexAttrib2sARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVARBPROC __glewVertexAttrib2svARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DARBPROC __glewVertexAttrib3dARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVARBPROC __glewVertexAttrib3dvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FARBPROC __glewVertexAttrib3fARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVARBPROC __glewVertexAttrib3fvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SARBPROC __glewVertexAttrib3sARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVARBPROC __glewVertexAttrib3svARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NBVARBPROC __glewVertexAttrib4NbvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NIVARBPROC __glewVertexAttrib4NivARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NSVARBPROC __glewVertexAttrib4NsvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBARBPROC __glewVertexAttrib4NubARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBVARBPROC __glewVertexAttrib4NubvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUIVARBPROC __glewVertexAttrib4NuivARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUSVARBPROC __glewVertexAttrib4NusvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4BVARBPROC __glewVertexAttrib4bvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DARBPROC __glewVertexAttrib4dARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVARBPROC __glewVertexAttrib4dvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FARBPROC __glewVertexAttrib4fARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVARBPROC __glewVertexAttrib4fvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4IVARBPROC __glewVertexAttrib4ivARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SARBPROC __glewVertexAttrib4sARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVARBPROC __glewVertexAttrib4svARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVARBPROC __glewVertexAttrib4ubvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UIVARBPROC __glewVertexAttrib4uivARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4USVARBPROC __glewVertexAttrib4usvARB; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERARBPROC __glewVertexAttribPointerARB; - -GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONARBPROC __glewBindAttribLocationARB; -GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBARBPROC __glewGetActiveAttribARB; -GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONARBPROC __glewGetAttribLocationARB; - -GLEW_FUN_EXPORT PFNGLCOLORP3UIPROC __glewColorP3ui; -GLEW_FUN_EXPORT PFNGLCOLORP3UIVPROC __glewColorP3uiv; -GLEW_FUN_EXPORT PFNGLCOLORP4UIPROC __glewColorP4ui; -GLEW_FUN_EXPORT PFNGLCOLORP4UIVPROC __glewColorP4uiv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP1UIPROC __glewMultiTexCoordP1ui; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP1UIVPROC __glewMultiTexCoordP1uiv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP2UIPROC __glewMultiTexCoordP2ui; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP2UIVPROC __glewMultiTexCoordP2uiv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP3UIPROC __glewMultiTexCoordP3ui; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP3UIVPROC __glewMultiTexCoordP3uiv; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP4UIPROC __glewMultiTexCoordP4ui; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDP4UIVPROC __glewMultiTexCoordP4uiv; -GLEW_FUN_EXPORT PFNGLNORMALP3UIPROC __glewNormalP3ui; -GLEW_FUN_EXPORT PFNGLNORMALP3UIVPROC __glewNormalP3uiv; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORP3UIPROC __glewSecondaryColorP3ui; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORP3UIVPROC __glewSecondaryColorP3uiv; -GLEW_FUN_EXPORT PFNGLTEXCOORDP1UIPROC __glewTexCoordP1ui; -GLEW_FUN_EXPORT PFNGLTEXCOORDP1UIVPROC __glewTexCoordP1uiv; -GLEW_FUN_EXPORT PFNGLTEXCOORDP2UIPROC __glewTexCoordP2ui; -GLEW_FUN_EXPORT PFNGLTEXCOORDP2UIVPROC __glewTexCoordP2uiv; -GLEW_FUN_EXPORT PFNGLTEXCOORDP3UIPROC __glewTexCoordP3ui; -GLEW_FUN_EXPORT PFNGLTEXCOORDP3UIVPROC __glewTexCoordP3uiv; -GLEW_FUN_EXPORT PFNGLTEXCOORDP4UIPROC __glewTexCoordP4ui; -GLEW_FUN_EXPORT PFNGLTEXCOORDP4UIVPROC __glewTexCoordP4uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP1UIPROC __glewVertexAttribP1ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP1UIVPROC __glewVertexAttribP1uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP2UIPROC __glewVertexAttribP2ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP2UIVPROC __glewVertexAttribP2uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP3UIPROC __glewVertexAttribP3ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP3UIVPROC __glewVertexAttribP3uiv; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP4UIPROC __glewVertexAttribP4ui; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBP4UIVPROC __glewVertexAttribP4uiv; -GLEW_FUN_EXPORT PFNGLVERTEXP2UIPROC __glewVertexP2ui; -GLEW_FUN_EXPORT PFNGLVERTEXP2UIVPROC __glewVertexP2uiv; -GLEW_FUN_EXPORT PFNGLVERTEXP3UIPROC __glewVertexP3ui; -GLEW_FUN_EXPORT PFNGLVERTEXP3UIVPROC __glewVertexP3uiv; -GLEW_FUN_EXPORT PFNGLVERTEXP4UIPROC __glewVertexP4ui; -GLEW_FUN_EXPORT PFNGLVERTEXP4UIVPROC __glewVertexP4uiv; - -GLEW_FUN_EXPORT PFNGLDEPTHRANGEARRAYVPROC __glewDepthRangeArrayv; -GLEW_FUN_EXPORT PFNGLDEPTHRANGEINDEXEDPROC __glewDepthRangeIndexed; -GLEW_FUN_EXPORT PFNGLGETDOUBLEI_VPROC __glewGetDoublei_v; -GLEW_FUN_EXPORT PFNGLGETFLOATI_VPROC __glewGetFloati_v; -GLEW_FUN_EXPORT PFNGLSCISSORARRAYVPROC __glewScissorArrayv; -GLEW_FUN_EXPORT PFNGLSCISSORINDEXEDPROC __glewScissorIndexed; -GLEW_FUN_EXPORT PFNGLSCISSORINDEXEDVPROC __glewScissorIndexedv; -GLEW_FUN_EXPORT PFNGLVIEWPORTARRAYVPROC __glewViewportArrayv; -GLEW_FUN_EXPORT PFNGLVIEWPORTINDEXEDFPROC __glewViewportIndexedf; -GLEW_FUN_EXPORT PFNGLVIEWPORTINDEXEDFVPROC __glewViewportIndexedfv; - -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DARBPROC __glewWindowPos2dARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVARBPROC __glewWindowPos2dvARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FARBPROC __glewWindowPos2fARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVARBPROC __glewWindowPos2fvARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IARBPROC __glewWindowPos2iARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVARBPROC __glewWindowPos2ivARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SARBPROC __glewWindowPos2sARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVARBPROC __glewWindowPos2svARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DARBPROC __glewWindowPos3dARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVARBPROC __glewWindowPos3dvARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FARBPROC __glewWindowPos3fARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVARBPROC __glewWindowPos3fvARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IARBPROC __glewWindowPos3iARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVARBPROC __glewWindowPos3ivARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SARBPROC __glewWindowPos3sARB; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVARBPROC __glewWindowPos3svARB; - -GLEW_FUN_EXPORT PFNGLDRAWBUFFERSATIPROC __glewDrawBuffersATI; - -GLEW_FUN_EXPORT PFNGLDRAWELEMENTARRAYATIPROC __glewDrawElementArrayATI; -GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTARRAYATIPROC __glewDrawRangeElementArrayATI; -GLEW_FUN_EXPORT PFNGLELEMENTPOINTERATIPROC __glewElementPointerATI; - -GLEW_FUN_EXPORT PFNGLGETTEXBUMPPARAMETERFVATIPROC __glewGetTexBumpParameterfvATI; -GLEW_FUN_EXPORT PFNGLGETTEXBUMPPARAMETERIVATIPROC __glewGetTexBumpParameterivATI; -GLEW_FUN_EXPORT PFNGLTEXBUMPPARAMETERFVATIPROC __glewTexBumpParameterfvATI; -GLEW_FUN_EXPORT PFNGLTEXBUMPPARAMETERIVATIPROC __glewTexBumpParameterivATI; - -GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP1ATIPROC __glewAlphaFragmentOp1ATI; -GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP2ATIPROC __glewAlphaFragmentOp2ATI; -GLEW_FUN_EXPORT PFNGLALPHAFRAGMENTOP3ATIPROC __glewAlphaFragmentOp3ATI; -GLEW_FUN_EXPORT PFNGLBEGINFRAGMENTSHADERATIPROC __glewBeginFragmentShaderATI; -GLEW_FUN_EXPORT PFNGLBINDFRAGMENTSHADERATIPROC __glewBindFragmentShaderATI; -GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP1ATIPROC __glewColorFragmentOp1ATI; -GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP2ATIPROC __glewColorFragmentOp2ATI; -GLEW_FUN_EXPORT PFNGLCOLORFRAGMENTOP3ATIPROC __glewColorFragmentOp3ATI; -GLEW_FUN_EXPORT PFNGLDELETEFRAGMENTSHADERATIPROC __glewDeleteFragmentShaderATI; -GLEW_FUN_EXPORT PFNGLENDFRAGMENTSHADERATIPROC __glewEndFragmentShaderATI; -GLEW_FUN_EXPORT PFNGLGENFRAGMENTSHADERSATIPROC __glewGenFragmentShadersATI; -GLEW_FUN_EXPORT PFNGLPASSTEXCOORDATIPROC __glewPassTexCoordATI; -GLEW_FUN_EXPORT PFNGLSAMPLEMAPATIPROC __glewSampleMapATI; -GLEW_FUN_EXPORT PFNGLSETFRAGMENTSHADERCONSTANTATIPROC __glewSetFragmentShaderConstantATI; - -GLEW_FUN_EXPORT PFNGLMAPOBJECTBUFFERATIPROC __glewMapObjectBufferATI; -GLEW_FUN_EXPORT PFNGLUNMAPOBJECTBUFFERATIPROC __glewUnmapObjectBufferATI; - -GLEW_FUN_EXPORT PFNGLPNTRIANGLESFATIPROC __glewPNTrianglesfATI; -GLEW_FUN_EXPORT PFNGLPNTRIANGLESIATIPROC __glewPNTrianglesiATI; - -GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEATIPROC __glewStencilFuncSeparateATI; -GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEATIPROC __glewStencilOpSeparateATI; - -GLEW_FUN_EXPORT PFNGLARRAYOBJECTATIPROC __glewArrayObjectATI; -GLEW_FUN_EXPORT PFNGLFREEOBJECTBUFFERATIPROC __glewFreeObjectBufferATI; -GLEW_FUN_EXPORT PFNGLGETARRAYOBJECTFVATIPROC __glewGetArrayObjectfvATI; -GLEW_FUN_EXPORT PFNGLGETARRAYOBJECTIVATIPROC __glewGetArrayObjectivATI; -GLEW_FUN_EXPORT PFNGLGETOBJECTBUFFERFVATIPROC __glewGetObjectBufferfvATI; -GLEW_FUN_EXPORT PFNGLGETOBJECTBUFFERIVATIPROC __glewGetObjectBufferivATI; -GLEW_FUN_EXPORT PFNGLGETVARIANTARRAYOBJECTFVATIPROC __glewGetVariantArrayObjectfvATI; -GLEW_FUN_EXPORT PFNGLGETVARIANTARRAYOBJECTIVATIPROC __glewGetVariantArrayObjectivATI; -GLEW_FUN_EXPORT PFNGLISOBJECTBUFFERATIPROC __glewIsObjectBufferATI; -GLEW_FUN_EXPORT PFNGLNEWOBJECTBUFFERATIPROC __glewNewObjectBufferATI; -GLEW_FUN_EXPORT PFNGLUPDATEOBJECTBUFFERATIPROC __glewUpdateObjectBufferATI; -GLEW_FUN_EXPORT PFNGLVARIANTARRAYOBJECTATIPROC __glewVariantArrayObjectATI; - -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC __glewGetVertexAttribArrayObjectfvATI; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC __glewGetVertexAttribArrayObjectivATI; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBARRAYOBJECTATIPROC __glewVertexAttribArrayObjectATI; - -GLEW_FUN_EXPORT PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC __glewClientActiveVertexStreamATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3BATIPROC __glewNormalStream3bATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3BVATIPROC __glewNormalStream3bvATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3DATIPROC __glewNormalStream3dATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3DVATIPROC __glewNormalStream3dvATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3FATIPROC __glewNormalStream3fATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3FVATIPROC __glewNormalStream3fvATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3IATIPROC __glewNormalStream3iATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3IVATIPROC __glewNormalStream3ivATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3SATIPROC __glewNormalStream3sATI; -GLEW_FUN_EXPORT PFNGLNORMALSTREAM3SVATIPROC __glewNormalStream3svATI; -GLEW_FUN_EXPORT PFNGLVERTEXBLENDENVFATIPROC __glewVertexBlendEnvfATI; -GLEW_FUN_EXPORT PFNGLVERTEXBLENDENVIATIPROC __glewVertexBlendEnviATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2DATIPROC __glewVertexStream2dATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2DVATIPROC __glewVertexStream2dvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2FATIPROC __glewVertexStream2fATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2FVATIPROC __glewVertexStream2fvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2IATIPROC __glewVertexStream2iATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2IVATIPROC __glewVertexStream2ivATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2SATIPROC __glewVertexStream2sATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM2SVATIPROC __glewVertexStream2svATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3DATIPROC __glewVertexStream3dATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3DVATIPROC __glewVertexStream3dvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3FATIPROC __glewVertexStream3fATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3FVATIPROC __glewVertexStream3fvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3IATIPROC __glewVertexStream3iATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3IVATIPROC __glewVertexStream3ivATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3SATIPROC __glewVertexStream3sATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM3SVATIPROC __glewVertexStream3svATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4DATIPROC __glewVertexStream4dATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4DVATIPROC __glewVertexStream4dvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4FATIPROC __glewVertexStream4fATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4FVATIPROC __glewVertexStream4fvATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4IATIPROC __glewVertexStream4iATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4IVATIPROC __glewVertexStream4ivATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4SATIPROC __glewVertexStream4sATI; -GLEW_FUN_EXPORT PFNGLVERTEXSTREAM4SVATIPROC __glewVertexStream4svATI; - -GLEW_FUN_EXPORT PFNGLGETUNIFORMBUFFERSIZEEXTPROC __glewGetUniformBufferSizeEXT; -GLEW_FUN_EXPORT PFNGLGETUNIFORMOFFSETEXTPROC __glewGetUniformOffsetEXT; -GLEW_FUN_EXPORT PFNGLUNIFORMBUFFEREXTPROC __glewUniformBufferEXT; - -GLEW_FUN_EXPORT PFNGLBLENDCOLOREXTPROC __glewBlendColorEXT; - -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEEXTPROC __glewBlendEquationSeparateEXT; - -GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEEXTPROC __glewBlendFuncSeparateEXT; - -GLEW_FUN_EXPORT PFNGLBLENDEQUATIONEXTPROC __glewBlendEquationEXT; - -GLEW_FUN_EXPORT PFNGLCOLORSUBTABLEEXTPROC __glewColorSubTableEXT; -GLEW_FUN_EXPORT PFNGLCOPYCOLORSUBTABLEEXTPROC __glewCopyColorSubTableEXT; - -GLEW_FUN_EXPORT PFNGLLOCKARRAYSEXTPROC __glewLockArraysEXT; -GLEW_FUN_EXPORT PFNGLUNLOCKARRAYSEXTPROC __glewUnlockArraysEXT; - -GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER1DEXTPROC __glewConvolutionFilter1DEXT; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONFILTER2DEXTPROC __glewConvolutionFilter2DEXT; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFEXTPROC __glewConvolutionParameterfEXT; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERFVEXTPROC __glewConvolutionParameterfvEXT; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIEXTPROC __glewConvolutionParameteriEXT; -GLEW_FUN_EXPORT PFNGLCONVOLUTIONPARAMETERIVEXTPROC __glewConvolutionParameterivEXT; -GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC __glewCopyConvolutionFilter1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC __glewCopyConvolutionFilter2DEXT; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONFILTEREXTPROC __glewGetConvolutionFilterEXT; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC __glewGetConvolutionParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC __glewGetConvolutionParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETSEPARABLEFILTEREXTPROC __glewGetSeparableFilterEXT; -GLEW_FUN_EXPORT PFNGLSEPARABLEFILTER2DEXTPROC __glewSeparableFilter2DEXT; - -GLEW_FUN_EXPORT PFNGLBINORMALPOINTEREXTPROC __glewBinormalPointerEXT; -GLEW_FUN_EXPORT PFNGLTANGENTPOINTEREXTPROC __glewTangentPointerEXT; - -GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE1DEXTPROC __glewCopyTexImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE2DEXTPROC __glewCopyTexImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE1DEXTPROC __glewCopyTexSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE2DEXTPROC __glewCopyTexSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DEXTPROC __glewCopyTexSubImage3DEXT; - -GLEW_FUN_EXPORT PFNGLCULLPARAMETERDVEXTPROC __glewCullParameterdvEXT; -GLEW_FUN_EXPORT PFNGLCULLPARAMETERFVEXTPROC __glewCullParameterfvEXT; - -GLEW_FUN_EXPORT PFNGLDEPTHBOUNDSEXTPROC __glewDepthBoundsEXT; - -GLEW_FUN_EXPORT PFNGLBINDMULTITEXTUREEXTPROC __glewBindMultiTextureEXT; -GLEW_FUN_EXPORT PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC __glewCheckNamedFramebufferStatusEXT; -GLEW_FUN_EXPORT PFNGLCLIENTATTRIBDEFAULTEXTPROC __glewClientAttribDefaultEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC __glewCompressedMultiTexImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC __glewCompressedMultiTexImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC __glewCompressedMultiTexImage3DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC __glewCompressedMultiTexSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC __glewCompressedMultiTexSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC __glewCompressedMultiTexSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC __glewCompressedTextureImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC __glewCompressedTextureImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC __glewCompressedTextureImage3DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC __glewCompressedTextureSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC __glewCompressedTextureSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC __glewCompressedTextureSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLCOPYMULTITEXIMAGE1DEXTPROC __glewCopyMultiTexImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYMULTITEXIMAGE2DEXTPROC __glewCopyMultiTexImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC __glewCopyMultiTexSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC __glewCopyMultiTexSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC __glewCopyMultiTexSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXTUREIMAGE1DEXTPROC __glewCopyTextureImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXTUREIMAGE2DEXTPROC __glewCopyTextureImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC __glewCopyTextureSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC __glewCopyTextureSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC __glewCopyTextureSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC __glewDisableClientStateIndexedEXT; -GLEW_FUN_EXPORT PFNGLDISABLECLIENTSTATEIEXTPROC __glewDisableClientStateiEXT; -GLEW_FUN_EXPORT PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC __glewDisableVertexArrayAttribEXT; -GLEW_FUN_EXPORT PFNGLDISABLEVERTEXARRAYEXTPROC __glewDisableVertexArrayEXT; -GLEW_FUN_EXPORT PFNGLENABLECLIENTSTATEINDEXEDEXTPROC __glewEnableClientStateIndexedEXT; -GLEW_FUN_EXPORT PFNGLENABLECLIENTSTATEIEXTPROC __glewEnableClientStateiEXT; -GLEW_FUN_EXPORT PFNGLENABLEVERTEXARRAYATTRIBEXTPROC __glewEnableVertexArrayAttribEXT; -GLEW_FUN_EXPORT PFNGLENABLEVERTEXARRAYEXTPROC __glewEnableVertexArrayEXT; -GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC __glewFlushMappedNamedBufferRangeEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC __glewFramebufferDrawBufferEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC __glewFramebufferDrawBuffersEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERREADBUFFEREXTPROC __glewFramebufferReadBufferEXT; -GLEW_FUN_EXPORT PFNGLGENERATEMULTITEXMIPMAPEXTPROC __glewGenerateMultiTexMipmapEXT; -GLEW_FUN_EXPORT PFNGLGENERATETEXTUREMIPMAPEXTPROC __glewGenerateTextureMipmapEXT; -GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC __glewGetCompressedMultiTexImageEXT; -GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC __glewGetCompressedTextureImageEXT; -GLEW_FUN_EXPORT PFNGLGETDOUBLEINDEXEDVEXTPROC __glewGetDoubleIndexedvEXT; -GLEW_FUN_EXPORT PFNGLGETDOUBLEI_VEXTPROC __glewGetDoublei_vEXT; -GLEW_FUN_EXPORT PFNGLGETFLOATINDEXEDVEXTPROC __glewGetFloatIndexedvEXT; -GLEW_FUN_EXPORT PFNGLGETFLOATI_VEXTPROC __glewGetFloati_vEXT; -GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC __glewGetFramebufferParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXENVFVEXTPROC __glewGetMultiTexEnvfvEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXENVIVEXTPROC __glewGetMultiTexEnvivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXGENDVEXTPROC __glewGetMultiTexGendvEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXGENFVEXTPROC __glewGetMultiTexGenfvEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXGENIVEXTPROC __glewGetMultiTexGenivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXIMAGEEXTPROC __glewGetMultiTexImageEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC __glewGetMultiTexLevelParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC __glewGetMultiTexLevelParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIIVEXTPROC __glewGetMultiTexParameterIivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIUIVEXTPROC __glewGetMultiTexParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERFVEXTPROC __glewGetMultiTexParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETMULTITEXPARAMETERIVEXTPROC __glewGetMultiTexParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC __glewGetNamedBufferParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPOINTERVEXTPROC __glewGetNamedBufferPointervEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERSUBDATAEXTPROC __glewGetNamedBufferSubDataEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetNamedFramebufferAttachmentParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC __glewGetNamedProgramLocalParameterIivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC __glewGetNamedProgramLocalParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC __glewGetNamedProgramLocalParameterdvEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC __glewGetNamedProgramLocalParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMSTRINGEXTPROC __glewGetNamedProgramStringEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDPROGRAMIVEXTPROC __glewGetNamedProgramivEXT; -GLEW_FUN_EXPORT PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC __glewGetNamedRenderbufferParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETPOINTERINDEXEDVEXTPROC __glewGetPointerIndexedvEXT; -GLEW_FUN_EXPORT PFNGLGETPOINTERI_VEXTPROC __glewGetPointeri_vEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTUREIMAGEEXTPROC __glewGetTextureImageEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC __glewGetTextureLevelParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC __glewGetTextureLevelParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIIVEXTPROC __glewGetTextureParameterIivEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIUIVEXTPROC __glewGetTextureParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERFVEXTPROC __glewGetTextureParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETTEXTUREPARAMETERIVEXTPROC __glewGetTextureParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC __glewGetVertexArrayIntegeri_vEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYINTEGERVEXTPROC __glewGetVertexArrayIntegervEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC __glewGetVertexArrayPointeri_vEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXARRAYPOINTERVEXTPROC __glewGetVertexArrayPointervEXT; -GLEW_FUN_EXPORT PFNGLMAPNAMEDBUFFEREXTPROC __glewMapNamedBufferEXT; -GLEW_FUN_EXPORT PFNGLMAPNAMEDBUFFERRANGEEXTPROC __glewMapNamedBufferRangeEXT; -GLEW_FUN_EXPORT PFNGLMATRIXFRUSTUMEXTPROC __glewMatrixFrustumEXT; -GLEW_FUN_EXPORT PFNGLMATRIXLOADIDENTITYEXTPROC __glewMatrixLoadIdentityEXT; -GLEW_FUN_EXPORT PFNGLMATRIXLOADTRANSPOSEDEXTPROC __glewMatrixLoadTransposedEXT; -GLEW_FUN_EXPORT PFNGLMATRIXLOADTRANSPOSEFEXTPROC __glewMatrixLoadTransposefEXT; -GLEW_FUN_EXPORT PFNGLMATRIXLOADDEXTPROC __glewMatrixLoaddEXT; -GLEW_FUN_EXPORT PFNGLMATRIXLOADFEXTPROC __glewMatrixLoadfEXT; -GLEW_FUN_EXPORT PFNGLMATRIXMULTTRANSPOSEDEXTPROC __glewMatrixMultTransposedEXT; -GLEW_FUN_EXPORT PFNGLMATRIXMULTTRANSPOSEFEXTPROC __glewMatrixMultTransposefEXT; -GLEW_FUN_EXPORT PFNGLMATRIXMULTDEXTPROC __glewMatrixMultdEXT; -GLEW_FUN_EXPORT PFNGLMATRIXMULTFEXTPROC __glewMatrixMultfEXT; -GLEW_FUN_EXPORT PFNGLMATRIXORTHOEXTPROC __glewMatrixOrthoEXT; -GLEW_FUN_EXPORT PFNGLMATRIXPOPEXTPROC __glewMatrixPopEXT; -GLEW_FUN_EXPORT PFNGLMATRIXPUSHEXTPROC __glewMatrixPushEXT; -GLEW_FUN_EXPORT PFNGLMATRIXROTATEDEXTPROC __glewMatrixRotatedEXT; -GLEW_FUN_EXPORT PFNGLMATRIXROTATEFEXTPROC __glewMatrixRotatefEXT; -GLEW_FUN_EXPORT PFNGLMATRIXSCALEDEXTPROC __glewMatrixScaledEXT; -GLEW_FUN_EXPORT PFNGLMATRIXSCALEFEXTPROC __glewMatrixScalefEXT; -GLEW_FUN_EXPORT PFNGLMATRIXTRANSLATEDEXTPROC __glewMatrixTranslatedEXT; -GLEW_FUN_EXPORT PFNGLMATRIXTRANSLATEFEXTPROC __glewMatrixTranslatefEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXBUFFEREXTPROC __glewMultiTexBufferEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORDPOINTEREXTPROC __glewMultiTexCoordPointerEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXENVFEXTPROC __glewMultiTexEnvfEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXENVFVEXTPROC __glewMultiTexEnvfvEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXENVIEXTPROC __glewMultiTexEnviEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXENVIVEXTPROC __glewMultiTexEnvivEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENDEXTPROC __glewMultiTexGendEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENDVEXTPROC __glewMultiTexGendvEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENFEXTPROC __glewMultiTexGenfEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENFVEXTPROC __glewMultiTexGenfvEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENIEXTPROC __glewMultiTexGeniEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXGENIVEXTPROC __glewMultiTexGenivEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE1DEXTPROC __glewMultiTexImage1DEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE2DEXTPROC __glewMultiTexImage2DEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXIMAGE3DEXTPROC __glewMultiTexImage3DEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIIVEXTPROC __glewMultiTexParameterIivEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIUIVEXTPROC __glewMultiTexParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERFEXTPROC __glewMultiTexParameterfEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERFVEXTPROC __glewMultiTexParameterfvEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIEXTPROC __glewMultiTexParameteriEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXPARAMETERIVEXTPROC __glewMultiTexParameterivEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXRENDERBUFFEREXTPROC __glewMultiTexRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE1DEXTPROC __glewMultiTexSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE2DEXTPROC __glewMultiTexSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLMULTITEXSUBIMAGE3DEXTPROC __glewMultiTexSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLNAMEDBUFFERDATAEXTPROC __glewNamedBufferDataEXT; -GLEW_FUN_EXPORT PFNGLNAMEDBUFFERSUBDATAEXTPROC __glewNamedBufferSubDataEXT; -GLEW_FUN_EXPORT PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC __glewNamedCopyBufferSubDataEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC __glewNamedFramebufferRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC __glewNamedFramebufferTexture1DEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC __glewNamedFramebufferTexture2DEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC __glewNamedFramebufferTexture3DEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC __glewNamedFramebufferTextureEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC __glewNamedFramebufferTextureFaceEXT; -GLEW_FUN_EXPORT PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC __glewNamedFramebufferTextureLayerEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC __glewNamedProgramLocalParameter4dEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC __glewNamedProgramLocalParameter4dvEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC __glewNamedProgramLocalParameter4fEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC __glewNamedProgramLocalParameter4fvEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC __glewNamedProgramLocalParameterI4iEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC __glewNamedProgramLocalParameterI4ivEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC __glewNamedProgramLocalParameterI4uiEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC __glewNamedProgramLocalParameterI4uivEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC __glewNamedProgramLocalParameters4fvEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC __glewNamedProgramLocalParametersI4ivEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC __glewNamedProgramLocalParametersI4uivEXT; -GLEW_FUN_EXPORT PFNGLNAMEDPROGRAMSTRINGEXTPROC __glewNamedProgramStringEXT; -GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC __glewNamedRenderbufferStorageEXT; -GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC __glewNamedRenderbufferStorageMultisampleCoverageEXT; -GLEW_FUN_EXPORT PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewNamedRenderbufferStorageMultisampleEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FEXTPROC __glewProgramUniform1fEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FVEXTPROC __glewProgramUniform1fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IEXTPROC __glewProgramUniform1iEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IVEXTPROC __glewProgramUniform1ivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIEXTPROC __glewProgramUniform1uiEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UIVEXTPROC __glewProgramUniform1uivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FEXTPROC __glewProgramUniform2fEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FVEXTPROC __glewProgramUniform2fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IEXTPROC __glewProgramUniform2iEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IVEXTPROC __glewProgramUniform2ivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIEXTPROC __glewProgramUniform2uiEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UIVEXTPROC __glewProgramUniform2uivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FEXTPROC __glewProgramUniform3fEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FVEXTPROC __glewProgramUniform3fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IEXTPROC __glewProgramUniform3iEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IVEXTPROC __glewProgramUniform3ivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIEXTPROC __glewProgramUniform3uiEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UIVEXTPROC __glewProgramUniform3uivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FEXTPROC __glewProgramUniform4fEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FVEXTPROC __glewProgramUniform4fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IEXTPROC __glewProgramUniform4iEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IVEXTPROC __glewProgramUniform4ivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIEXTPROC __glewProgramUniform4uiEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UIVEXTPROC __glewProgramUniform4uivEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC __glewProgramUniformMatrix2fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC __glewProgramUniformMatrix2x3fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC __glewProgramUniformMatrix2x4fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC __glewProgramUniformMatrix3fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC __glewProgramUniformMatrix3x2fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC __glewProgramUniformMatrix3x4fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC __glewProgramUniformMatrix4fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC __glewProgramUniformMatrix4x2fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC __glewProgramUniformMatrix4x3fvEXT; -GLEW_FUN_EXPORT PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC __glewPushClientAttribDefaultEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREBUFFEREXTPROC __glewTextureBufferEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE1DEXTPROC __glewTextureImage1DEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE2DEXTPROC __glewTextureImage2DEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE3DEXTPROC __glewTextureImage3DEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIIVEXTPROC __glewTextureParameterIivEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIUIVEXTPROC __glewTextureParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERFEXTPROC __glewTextureParameterfEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERFVEXTPROC __glewTextureParameterfvEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIEXTPROC __glewTextureParameteriEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREPARAMETERIVEXTPROC __glewTextureParameterivEXT; -GLEW_FUN_EXPORT PFNGLTEXTURERENDERBUFFEREXTPROC __glewTextureRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE1DEXTPROC __glewTextureSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE2DEXTPROC __glewTextureSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLTEXTURESUBIMAGE3DEXTPROC __glewTextureSubImage3DEXT; -GLEW_FUN_EXPORT PFNGLUNMAPNAMEDBUFFEREXTPROC __glewUnmapNamedBufferEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYCOLOROFFSETEXTPROC __glewVertexArrayColorOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC __glewVertexArrayEdgeFlagOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC __glewVertexArrayFogCoordOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYINDEXOFFSETEXTPROC __glewVertexArrayIndexOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC __glewVertexArrayMultiTexCoordOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYNORMALOFFSETEXTPROC __glewVertexArrayNormalOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC __glewVertexArraySecondaryColorOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC __glewVertexArrayTexCoordOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC __glewVertexArrayVertexAttribIOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC __glewVertexArrayVertexAttribOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC __glewVertexArrayVertexOffsetEXT; - -GLEW_FUN_EXPORT PFNGLCOLORMASKINDEXEDEXTPROC __glewColorMaskIndexedEXT; -GLEW_FUN_EXPORT PFNGLDISABLEINDEXEDEXTPROC __glewDisableIndexedEXT; -GLEW_FUN_EXPORT PFNGLENABLEINDEXEDEXTPROC __glewEnableIndexedEXT; -GLEW_FUN_EXPORT PFNGLGETBOOLEANINDEXEDVEXTPROC __glewGetBooleanIndexedvEXT; -GLEW_FUN_EXPORT PFNGLGETINTEGERINDEXEDVEXTPROC __glewGetIntegerIndexedvEXT; -GLEW_FUN_EXPORT PFNGLISENABLEDINDEXEDEXTPROC __glewIsEnabledIndexedEXT; - -GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDEXTPROC __glewDrawArraysInstancedEXT; -GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDEXTPROC __glewDrawElementsInstancedEXT; - -GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSEXTPROC __glewDrawRangeElementsEXT; - -GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTEREXTPROC __glewFogCoordPointerEXT; -GLEW_FUN_EXPORT PFNGLFOGCOORDDEXTPROC __glewFogCoorddEXT; -GLEW_FUN_EXPORT PFNGLFOGCOORDDVEXTPROC __glewFogCoorddvEXT; -GLEW_FUN_EXPORT PFNGLFOGCOORDFEXTPROC __glewFogCoordfEXT; -GLEW_FUN_EXPORT PFNGLFOGCOORDFVEXTPROC __glewFogCoordfvEXT; - -GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALEXTPROC __glewFragmentColorMaterialEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFEXTPROC __glewFragmentLightModelfEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVEXTPROC __glewFragmentLightModelfvEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIEXTPROC __glewFragmentLightModeliEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVEXTPROC __glewFragmentLightModelivEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFEXTPROC __glewFragmentLightfEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFVEXTPROC __glewFragmentLightfvEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIEXTPROC __glewFragmentLightiEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVEXTPROC __glewFragmentLightivEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFEXTPROC __glewFragmentMaterialfEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFVEXTPROC __glewFragmentMaterialfvEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIEXTPROC __glewFragmentMaterialiEXT; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIVEXTPROC __glewFragmentMaterialivEXT; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVEXTPROC __glewGetFragmentLightfvEXT; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVEXTPROC __glewGetFragmentLightivEXT; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVEXTPROC __glewGetFragmentMaterialfvEXT; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVEXTPROC __glewGetFragmentMaterialivEXT; -GLEW_FUN_EXPORT PFNGLLIGHTENVIEXTPROC __glewLightEnviEXT; - -GLEW_FUN_EXPORT PFNGLBLITFRAMEBUFFEREXTPROC __glewBlitFramebufferEXT; - -GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewRenderbufferStorageMultisampleEXT; - -GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFEREXTPROC __glewBindFramebufferEXT; -GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFEREXTPROC __glewBindRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC __glewCheckFramebufferStatusEXT; -GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSEXTPROC __glewDeleteFramebuffersEXT; -GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSEXTPROC __glewDeleteRenderbuffersEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC __glewFramebufferRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE1DEXTPROC __glewFramebufferTexture1DEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DEXTPROC __glewFramebufferTexture2DEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE3DEXTPROC __glewFramebufferTexture3DEXT; -GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSEXTPROC __glewGenFramebuffersEXT; -GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSEXTPROC __glewGenRenderbuffersEXT; -GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPEXTPROC __glewGenerateMipmapEXT; -GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetFramebufferAttachmentParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC __glewGetRenderbufferParameterivEXT; -GLEW_FUN_EXPORT PFNGLISFRAMEBUFFEREXTPROC __glewIsFramebufferEXT; -GLEW_FUN_EXPORT PFNGLISRENDERBUFFEREXTPROC __glewIsRenderbufferEXT; -GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEEXTPROC __glewRenderbufferStorageEXT; - -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREEXTPROC __glewFramebufferTextureEXT; -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC __glewFramebufferTextureFaceEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIEXTPROC __glewProgramParameteriEXT; - -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERS4FVEXTPROC __glewProgramEnvParameters4fvEXT; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC __glewProgramLocalParameters4fvEXT; - -GLEW_FUN_EXPORT PFNGLBINDFRAGDATALOCATIONEXTPROC __glewBindFragDataLocationEXT; -GLEW_FUN_EXPORT PFNGLGETFRAGDATALOCATIONEXTPROC __glewGetFragDataLocationEXT; -GLEW_FUN_EXPORT PFNGLGETUNIFORMUIVEXTPROC __glewGetUniformuivEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIIVEXTPROC __glewGetVertexAttribIivEXT; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIUIVEXTPROC __glewGetVertexAttribIuivEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM1UIEXTPROC __glewUniform1uiEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM1UIVEXTPROC __glewUniform1uivEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM2UIEXTPROC __glewUniform2uiEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM2UIVEXTPROC __glewUniform2uivEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM3UIEXTPROC __glewUniform3uiEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM3UIVEXTPROC __glewUniform3uivEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM4UIEXTPROC __glewUniform4uiEXT; -GLEW_FUN_EXPORT PFNGLUNIFORM4UIVEXTPROC __glewUniform4uivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IEXTPROC __glewVertexAttribI1iEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1IVEXTPROC __glewVertexAttribI1ivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIEXTPROC __glewVertexAttribI1uiEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI1UIVEXTPROC __glewVertexAttribI1uivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IEXTPROC __glewVertexAttribI2iEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2IVEXTPROC __glewVertexAttribI2ivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIEXTPROC __glewVertexAttribI2uiEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI2UIVEXTPROC __glewVertexAttribI2uivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IEXTPROC __glewVertexAttribI3iEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3IVEXTPROC __glewVertexAttribI3ivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIEXTPROC __glewVertexAttribI3uiEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI3UIVEXTPROC __glewVertexAttribI3uivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4BVEXTPROC __glewVertexAttribI4bvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IEXTPROC __glewVertexAttribI4iEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4IVEXTPROC __glewVertexAttribI4ivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4SVEXTPROC __glewVertexAttribI4svEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UBVEXTPROC __glewVertexAttribI4ubvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIEXTPROC __glewVertexAttribI4uiEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4UIVEXTPROC __glewVertexAttribI4uivEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBI4USVEXTPROC __glewVertexAttribI4usvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIPOINTEREXTPROC __glewVertexAttribIPointerEXT; - -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMEXTPROC __glewGetHistogramEXT; -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERFVEXTPROC __glewGetHistogramParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETHISTOGRAMPARAMETERIVEXTPROC __glewGetHistogramParameterivEXT; -GLEW_FUN_EXPORT PFNGLGETMINMAXEXTPROC __glewGetMinmaxEXT; -GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERFVEXTPROC __glewGetMinmaxParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETMINMAXPARAMETERIVEXTPROC __glewGetMinmaxParameterivEXT; -GLEW_FUN_EXPORT PFNGLHISTOGRAMEXTPROC __glewHistogramEXT; -GLEW_FUN_EXPORT PFNGLMINMAXEXTPROC __glewMinmaxEXT; -GLEW_FUN_EXPORT PFNGLRESETHISTOGRAMEXTPROC __glewResetHistogramEXT; -GLEW_FUN_EXPORT PFNGLRESETMINMAXEXTPROC __glewResetMinmaxEXT; - -GLEW_FUN_EXPORT PFNGLINDEXFUNCEXTPROC __glewIndexFuncEXT; - -GLEW_FUN_EXPORT PFNGLINDEXMATERIALEXTPROC __glewIndexMaterialEXT; - -GLEW_FUN_EXPORT PFNGLAPPLYTEXTUREEXTPROC __glewApplyTextureEXT; -GLEW_FUN_EXPORT PFNGLTEXTURELIGHTEXTPROC __glewTextureLightEXT; -GLEW_FUN_EXPORT PFNGLTEXTUREMATERIALEXTPROC __glewTextureMaterialEXT; - -GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSEXTPROC __glewMultiDrawArraysEXT; -GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSEXTPROC __glewMultiDrawElementsEXT; - -GLEW_FUN_EXPORT PFNGLSAMPLEMASKEXTPROC __glewSampleMaskEXT; -GLEW_FUN_EXPORT PFNGLSAMPLEPATTERNEXTPROC __glewSamplePatternEXT; - -GLEW_FUN_EXPORT PFNGLCOLORTABLEEXTPROC __glewColorTableEXT; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEEXTPROC __glewGetColorTableEXT; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVEXTPROC __glewGetColorTableParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVEXTPROC __glewGetColorTableParameterivEXT; - -GLEW_FUN_EXPORT PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC __glewGetPixelTransformParameterfvEXT; -GLEW_FUN_EXPORT PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC __glewGetPixelTransformParameterivEXT; -GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERFEXTPROC __glewPixelTransformParameterfEXT; -GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC __glewPixelTransformParameterfvEXT; -GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERIEXTPROC __glewPixelTransformParameteriEXT; -GLEW_FUN_EXPORT PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC __glewPixelTransformParameterivEXT; - -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFEXTPROC __glewPointParameterfEXT; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVEXTPROC __glewPointParameterfvEXT; - -GLEW_FUN_EXPORT PFNGLPOLYGONOFFSETEXTPROC __glewPolygonOffsetEXT; - -GLEW_FUN_EXPORT PFNGLPROVOKINGVERTEXEXTPROC __glewProvokingVertexEXT; - -GLEW_FUN_EXPORT PFNGLBEGINSCENEEXTPROC __glewBeginSceneEXT; -GLEW_FUN_EXPORT PFNGLENDSCENEEXTPROC __glewEndSceneEXT; - -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BEXTPROC __glewSecondaryColor3bEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BVEXTPROC __glewSecondaryColor3bvEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DEXTPROC __glewSecondaryColor3dEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DVEXTPROC __glewSecondaryColor3dvEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FEXTPROC __glewSecondaryColor3fEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FVEXTPROC __glewSecondaryColor3fvEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IEXTPROC __glewSecondaryColor3iEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IVEXTPROC __glewSecondaryColor3ivEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SEXTPROC __glewSecondaryColor3sEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SVEXTPROC __glewSecondaryColor3svEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBEXTPROC __glewSecondaryColor3ubEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBVEXTPROC __glewSecondaryColor3ubvEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIEXTPROC __glewSecondaryColor3uiEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIVEXTPROC __glewSecondaryColor3uivEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USEXTPROC __glewSecondaryColor3usEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USVEXTPROC __glewSecondaryColor3usvEXT; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTEREXTPROC __glewSecondaryColorPointerEXT; - -GLEW_FUN_EXPORT PFNGLACTIVEPROGRAMEXTPROC __glewActiveProgramEXT; -GLEW_FUN_EXPORT PFNGLCREATESHADERPROGRAMEXTPROC __glewCreateShaderProgramEXT; -GLEW_FUN_EXPORT PFNGLUSESHADERPROGRAMEXTPROC __glewUseShaderProgramEXT; - -GLEW_FUN_EXPORT PFNGLBINDIMAGETEXTUREEXTPROC __glewBindImageTextureEXT; -GLEW_FUN_EXPORT PFNGLMEMORYBARRIEREXTPROC __glewMemoryBarrierEXT; - -GLEW_FUN_EXPORT PFNGLACTIVESTENCILFACEEXTPROC __glewActiveStencilFaceEXT; - -GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE1DEXTPROC __glewTexSubImage1DEXT; -GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE2DEXTPROC __glewTexSubImage2DEXT; -GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DEXTPROC __glewTexSubImage3DEXT; - -GLEW_FUN_EXPORT PFNGLTEXIMAGE3DEXTPROC __glewTexImage3DEXT; - -GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC __glewFramebufferTextureLayerEXT; - -GLEW_FUN_EXPORT PFNGLTEXBUFFEREXTPROC __glewTexBufferEXT; - -GLEW_FUN_EXPORT PFNGLCLEARCOLORIIEXTPROC __glewClearColorIiEXT; -GLEW_FUN_EXPORT PFNGLCLEARCOLORIUIEXTPROC __glewClearColorIuiEXT; -GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIIVEXTPROC __glewGetTexParameterIivEXT; -GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIUIVEXTPROC __glewGetTexParameterIuivEXT; -GLEW_FUN_EXPORT PFNGLTEXPARAMETERIIVEXTPROC __glewTexParameterIivEXT; -GLEW_FUN_EXPORT PFNGLTEXPARAMETERIUIVEXTPROC __glewTexParameterIuivEXT; - -GLEW_FUN_EXPORT PFNGLARETEXTURESRESIDENTEXTPROC __glewAreTexturesResidentEXT; -GLEW_FUN_EXPORT PFNGLBINDTEXTUREEXTPROC __glewBindTextureEXT; -GLEW_FUN_EXPORT PFNGLDELETETEXTURESEXTPROC __glewDeleteTexturesEXT; -GLEW_FUN_EXPORT PFNGLGENTEXTURESEXTPROC __glewGenTexturesEXT; -GLEW_FUN_EXPORT PFNGLISTEXTUREEXTPROC __glewIsTextureEXT; -GLEW_FUN_EXPORT PFNGLPRIORITIZETEXTURESEXTPROC __glewPrioritizeTexturesEXT; - -GLEW_FUN_EXPORT PFNGLTEXTURENORMALEXTPROC __glewTextureNormalEXT; - -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTI64VEXTPROC __glewGetQueryObjecti64vEXT; -GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUI64VEXTPROC __glewGetQueryObjectui64vEXT; - -GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKEXTPROC __glewBeginTransformFeedbackEXT; -GLEW_FUN_EXPORT PFNGLBINDBUFFERBASEEXTPROC __glewBindBufferBaseEXT; -GLEW_FUN_EXPORT PFNGLBINDBUFFEROFFSETEXTPROC __glewBindBufferOffsetEXT; -GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGEEXTPROC __glewBindBufferRangeEXT; -GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKEXTPROC __glewEndTransformFeedbackEXT; -GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC __glewGetTransformFeedbackVaryingEXT; -GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC __glewTransformFeedbackVaryingsEXT; - -GLEW_FUN_EXPORT PFNGLARRAYELEMENTEXTPROC __glewArrayElementEXT; -GLEW_FUN_EXPORT PFNGLCOLORPOINTEREXTPROC __glewColorPointerEXT; -GLEW_FUN_EXPORT PFNGLDRAWARRAYSEXTPROC __glewDrawArraysEXT; -GLEW_FUN_EXPORT PFNGLEDGEFLAGPOINTEREXTPROC __glewEdgeFlagPointerEXT; -GLEW_FUN_EXPORT PFNGLINDEXPOINTEREXTPROC __glewIndexPointerEXT; -GLEW_FUN_EXPORT PFNGLNORMALPOINTEREXTPROC __glewNormalPointerEXT; -GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTEREXTPROC __glewTexCoordPointerEXT; -GLEW_FUN_EXPORT PFNGLVERTEXPOINTEREXTPROC __glewVertexPointerEXT; - -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLDVEXTPROC __glewGetVertexAttribLdvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC __glewVertexArrayVertexAttribLOffsetEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DEXTPROC __glewVertexAttribL1dEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1DVEXTPROC __glewVertexAttribL1dvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DEXTPROC __glewVertexAttribL2dEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2DVEXTPROC __glewVertexAttribL2dvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DEXTPROC __glewVertexAttribL3dEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3DVEXTPROC __glewVertexAttribL3dvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DEXTPROC __glewVertexAttribL4dEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4DVEXTPROC __glewVertexAttribL4dvEXT; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLPOINTEREXTPROC __glewVertexAttribLPointerEXT; - -GLEW_FUN_EXPORT PFNGLBEGINVERTEXSHADEREXTPROC __glewBeginVertexShaderEXT; -GLEW_FUN_EXPORT PFNGLBINDLIGHTPARAMETEREXTPROC __glewBindLightParameterEXT; -GLEW_FUN_EXPORT PFNGLBINDMATERIALPARAMETEREXTPROC __glewBindMaterialParameterEXT; -GLEW_FUN_EXPORT PFNGLBINDPARAMETEREXTPROC __glewBindParameterEXT; -GLEW_FUN_EXPORT PFNGLBINDTEXGENPARAMETEREXTPROC __glewBindTexGenParameterEXT; -GLEW_FUN_EXPORT PFNGLBINDTEXTUREUNITPARAMETEREXTPROC __glewBindTextureUnitParameterEXT; -GLEW_FUN_EXPORT PFNGLBINDVERTEXSHADEREXTPROC __glewBindVertexShaderEXT; -GLEW_FUN_EXPORT PFNGLDELETEVERTEXSHADEREXTPROC __glewDeleteVertexShaderEXT; -GLEW_FUN_EXPORT PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC __glewDisableVariantClientStateEXT; -GLEW_FUN_EXPORT PFNGLENABLEVARIANTCLIENTSTATEEXTPROC __glewEnableVariantClientStateEXT; -GLEW_FUN_EXPORT PFNGLENDVERTEXSHADEREXTPROC __glewEndVertexShaderEXT; -GLEW_FUN_EXPORT PFNGLEXTRACTCOMPONENTEXTPROC __glewExtractComponentEXT; -GLEW_FUN_EXPORT PFNGLGENSYMBOLSEXTPROC __glewGenSymbolsEXT; -GLEW_FUN_EXPORT PFNGLGENVERTEXSHADERSEXTPROC __glewGenVertexShadersEXT; -GLEW_FUN_EXPORT PFNGLGETINVARIANTBOOLEANVEXTPROC __glewGetInvariantBooleanvEXT; -GLEW_FUN_EXPORT PFNGLGETINVARIANTFLOATVEXTPROC __glewGetInvariantFloatvEXT; -GLEW_FUN_EXPORT PFNGLGETINVARIANTINTEGERVEXTPROC __glewGetInvariantIntegervEXT; -GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC __glewGetLocalConstantBooleanvEXT; -GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTFLOATVEXTPROC __glewGetLocalConstantFloatvEXT; -GLEW_FUN_EXPORT PFNGLGETLOCALCONSTANTINTEGERVEXTPROC __glewGetLocalConstantIntegervEXT; -GLEW_FUN_EXPORT PFNGLGETVARIANTBOOLEANVEXTPROC __glewGetVariantBooleanvEXT; -GLEW_FUN_EXPORT PFNGLGETVARIANTFLOATVEXTPROC __glewGetVariantFloatvEXT; -GLEW_FUN_EXPORT PFNGLGETVARIANTINTEGERVEXTPROC __glewGetVariantIntegervEXT; -GLEW_FUN_EXPORT PFNGLGETVARIANTPOINTERVEXTPROC __glewGetVariantPointervEXT; -GLEW_FUN_EXPORT PFNGLINSERTCOMPONENTEXTPROC __glewInsertComponentEXT; -GLEW_FUN_EXPORT PFNGLISVARIANTENABLEDEXTPROC __glewIsVariantEnabledEXT; -GLEW_FUN_EXPORT PFNGLSETINVARIANTEXTPROC __glewSetInvariantEXT; -GLEW_FUN_EXPORT PFNGLSETLOCALCONSTANTEXTPROC __glewSetLocalConstantEXT; -GLEW_FUN_EXPORT PFNGLSHADEROP1EXTPROC __glewShaderOp1EXT; -GLEW_FUN_EXPORT PFNGLSHADEROP2EXTPROC __glewShaderOp2EXT; -GLEW_FUN_EXPORT PFNGLSHADEROP3EXTPROC __glewShaderOp3EXT; -GLEW_FUN_EXPORT PFNGLSWIZZLEEXTPROC __glewSwizzleEXT; -GLEW_FUN_EXPORT PFNGLVARIANTPOINTEREXTPROC __glewVariantPointerEXT; -GLEW_FUN_EXPORT PFNGLVARIANTBVEXTPROC __glewVariantbvEXT; -GLEW_FUN_EXPORT PFNGLVARIANTDVEXTPROC __glewVariantdvEXT; -GLEW_FUN_EXPORT PFNGLVARIANTFVEXTPROC __glewVariantfvEXT; -GLEW_FUN_EXPORT PFNGLVARIANTIVEXTPROC __glewVariantivEXT; -GLEW_FUN_EXPORT PFNGLVARIANTSVEXTPROC __glewVariantsvEXT; -GLEW_FUN_EXPORT PFNGLVARIANTUBVEXTPROC __glewVariantubvEXT; -GLEW_FUN_EXPORT PFNGLVARIANTUIVEXTPROC __glewVariantuivEXT; -GLEW_FUN_EXPORT PFNGLVARIANTUSVEXTPROC __glewVariantusvEXT; -GLEW_FUN_EXPORT PFNGLWRITEMASKEXTPROC __glewWriteMaskEXT; - -GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTPOINTEREXTPROC __glewVertexWeightPointerEXT; -GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTFEXTPROC __glewVertexWeightfEXT; -GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTFVEXTPROC __glewVertexWeightfvEXT; - -GLEW_FUN_EXPORT PFNGLIMPORTSYNCEXTPROC __glewImportSyncEXT; - -GLEW_FUN_EXPORT PFNGLFRAMETERMINATORGREMEDYPROC __glewFrameTerminatorGREMEDY; - -GLEW_FUN_EXPORT PFNGLSTRINGMARKERGREMEDYPROC __glewStringMarkerGREMEDY; - -GLEW_FUN_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC __glewGetImageTransformParameterfvHP; -GLEW_FUN_EXPORT PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC __glewGetImageTransformParameterivHP; -GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERFHPPROC __glewImageTransformParameterfHP; -GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERFVHPPROC __glewImageTransformParameterfvHP; -GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERIHPPROC __glewImageTransformParameteriHP; -GLEW_FUN_EXPORT PFNGLIMAGETRANSFORMPARAMETERIVHPPROC __glewImageTransformParameterivHP; - -GLEW_FUN_EXPORT PFNGLMULTIMODEDRAWARRAYSIBMPROC __glewMultiModeDrawArraysIBM; -GLEW_FUN_EXPORT PFNGLMULTIMODEDRAWELEMENTSIBMPROC __glewMultiModeDrawElementsIBM; - -GLEW_FUN_EXPORT PFNGLCOLORPOINTERLISTIBMPROC __glewColorPointerListIBM; -GLEW_FUN_EXPORT PFNGLEDGEFLAGPOINTERLISTIBMPROC __glewEdgeFlagPointerListIBM; -GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTERLISTIBMPROC __glewFogCoordPointerListIBM; -GLEW_FUN_EXPORT PFNGLINDEXPOINTERLISTIBMPROC __glewIndexPointerListIBM; -GLEW_FUN_EXPORT PFNGLNORMALPOINTERLISTIBMPROC __glewNormalPointerListIBM; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTERLISTIBMPROC __glewSecondaryColorPointerListIBM; -GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTERLISTIBMPROC __glewTexCoordPointerListIBM; -GLEW_FUN_EXPORT PFNGLVERTEXPOINTERLISTIBMPROC __glewVertexPointerListIBM; - -GLEW_FUN_EXPORT PFNGLCOLORPOINTERVINTELPROC __glewColorPointervINTEL; -GLEW_FUN_EXPORT PFNGLNORMALPOINTERVINTELPROC __glewNormalPointervINTEL; -GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTERVINTELPROC __glewTexCoordPointervINTEL; -GLEW_FUN_EXPORT PFNGLVERTEXPOINTERVINTELPROC __glewVertexPointervINTEL; - -GLEW_FUN_EXPORT PFNGLTEXSCISSORFUNCINTELPROC __glewTexScissorFuncINTEL; -GLEW_FUN_EXPORT PFNGLTEXSCISSORINTELPROC __glewTexScissorINTEL; - -GLEW_FUN_EXPORT PFNGLBUFFERREGIONENABLEDEXTPROC __glewBufferRegionEnabledEXT; -GLEW_FUN_EXPORT PFNGLDELETEBUFFERREGIONEXTPROC __glewDeleteBufferRegionEXT; -GLEW_FUN_EXPORT PFNGLDRAWBUFFERREGIONEXTPROC __glewDrawBufferRegionEXT; -GLEW_FUN_EXPORT PFNGLNEWBUFFERREGIONEXTPROC __glewNewBufferRegionEXT; -GLEW_FUN_EXPORT PFNGLREADBUFFERREGIONEXTPROC __glewReadBufferRegionEXT; - -GLEW_FUN_EXPORT PFNGLRESIZEBUFFERSMESAPROC __glewResizeBuffersMESA; - -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DMESAPROC __glewWindowPos2dMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVMESAPROC __glewWindowPos2dvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FMESAPROC __glewWindowPos2fMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVMESAPROC __glewWindowPos2fvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IMESAPROC __glewWindowPos2iMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVMESAPROC __glewWindowPos2ivMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SMESAPROC __glewWindowPos2sMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVMESAPROC __glewWindowPos2svMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DMESAPROC __glewWindowPos3dMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVMESAPROC __glewWindowPos3dvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FMESAPROC __glewWindowPos3fMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVMESAPROC __glewWindowPos3fvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IMESAPROC __glewWindowPos3iMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVMESAPROC __glewWindowPos3ivMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SMESAPROC __glewWindowPos3sMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVMESAPROC __glewWindowPos3svMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4DMESAPROC __glewWindowPos4dMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4DVMESAPROC __glewWindowPos4dvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4FMESAPROC __glewWindowPos4fMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4FVMESAPROC __glewWindowPos4fvMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4IMESAPROC __glewWindowPos4iMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4IVMESAPROC __glewWindowPos4ivMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4SMESAPROC __glewWindowPos4sMESA; -GLEW_FUN_EXPORT PFNGLWINDOWPOS4SVMESAPROC __glewWindowPos4svMESA; - -GLEW_FUN_EXPORT PFNGLBEGINCONDITIONALRENDERNVPROC __glewBeginConditionalRenderNV; -GLEW_FUN_EXPORT PFNGLENDCONDITIONALRENDERNVPROC __glewEndConditionalRenderNV; - -GLEW_FUN_EXPORT PFNGLCOPYIMAGESUBDATANVPROC __glewCopyImageSubDataNV; - -GLEW_FUN_EXPORT PFNGLCLEARDEPTHDNVPROC __glewClearDepthdNV; -GLEW_FUN_EXPORT PFNGLDEPTHBOUNDSDNVPROC __glewDepthBoundsdNV; -GLEW_FUN_EXPORT PFNGLDEPTHRANGEDNVPROC __glewDepthRangedNV; - -GLEW_FUN_EXPORT PFNGLEVALMAPSNVPROC __glewEvalMapsNV; -GLEW_FUN_EXPORT PFNGLGETMAPATTRIBPARAMETERFVNVPROC __glewGetMapAttribParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETMAPATTRIBPARAMETERIVNVPROC __glewGetMapAttribParameterivNV; -GLEW_FUN_EXPORT PFNGLGETMAPCONTROLPOINTSNVPROC __glewGetMapControlPointsNV; -GLEW_FUN_EXPORT PFNGLGETMAPPARAMETERFVNVPROC __glewGetMapParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETMAPPARAMETERIVNVPROC __glewGetMapParameterivNV; -GLEW_FUN_EXPORT PFNGLMAPCONTROLPOINTSNVPROC __glewMapControlPointsNV; -GLEW_FUN_EXPORT PFNGLMAPPARAMETERFVNVPROC __glewMapParameterfvNV; -GLEW_FUN_EXPORT PFNGLMAPPARAMETERIVNVPROC __glewMapParameterivNV; - -GLEW_FUN_EXPORT PFNGLGETMULTISAMPLEFVNVPROC __glewGetMultisamplefvNV; -GLEW_FUN_EXPORT PFNGLSAMPLEMASKINDEXEDNVPROC __glewSampleMaskIndexedNV; -GLEW_FUN_EXPORT PFNGLTEXRENDERBUFFERNVPROC __glewTexRenderbufferNV; - -GLEW_FUN_EXPORT PFNGLDELETEFENCESNVPROC __glewDeleteFencesNV; -GLEW_FUN_EXPORT PFNGLFINISHFENCENVPROC __glewFinishFenceNV; -GLEW_FUN_EXPORT PFNGLGENFENCESNVPROC __glewGenFencesNV; -GLEW_FUN_EXPORT PFNGLGETFENCEIVNVPROC __glewGetFenceivNV; -GLEW_FUN_EXPORT PFNGLISFENCENVPROC __glewIsFenceNV; -GLEW_FUN_EXPORT PFNGLSETFENCENVPROC __glewSetFenceNV; -GLEW_FUN_EXPORT PFNGLTESTFENCENVPROC __glewTestFenceNV; - -GLEW_FUN_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC __glewGetProgramNamedParameterdvNV; -GLEW_FUN_EXPORT PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC __glewGetProgramNamedParameterfvNV; -GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DNVPROC __glewProgramNamedParameter4dNV; -GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC __glewProgramNamedParameter4dvNV; -GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FNVPROC __glewProgramNamedParameter4fNV; -GLEW_FUN_EXPORT PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC __glewProgramNamedParameter4fvNV; - -GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC __glewRenderbufferStorageMultisampleCoverageNV; - -GLEW_FUN_EXPORT PFNGLPROGRAMVERTEXLIMITNVPROC __glewProgramVertexLimitNV; - -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4INVPROC __glewProgramEnvParameterI4iNV; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4IVNVPROC __glewProgramEnvParameterI4ivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4UINVPROC __glewProgramEnvParameterI4uiNV; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERI4UIVNVPROC __glewProgramEnvParameterI4uivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERSI4IVNVPROC __glewProgramEnvParametersI4ivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC __glewProgramEnvParametersI4uivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4INVPROC __glewProgramLocalParameterI4iNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC __glewProgramLocalParameterI4ivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UINVPROC __glewProgramLocalParameterI4uiNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC __glewProgramLocalParameterI4uivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC __glewProgramLocalParametersI4ivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC __glewProgramLocalParametersI4uivNV; - -GLEW_FUN_EXPORT PFNGLGETUNIFORMI64VNVPROC __glewGetUniformi64vNV; -GLEW_FUN_EXPORT PFNGLGETUNIFORMUI64VNVPROC __glewGetUniformui64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1I64NVPROC __glewProgramUniform1i64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1I64VNVPROC __glewProgramUniform1i64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UI64NVPROC __glewProgramUniform1ui64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1UI64VNVPROC __glewProgramUniform1ui64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2I64NVPROC __glewProgramUniform2i64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2I64VNVPROC __glewProgramUniform2i64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UI64NVPROC __glewProgramUniform2ui64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2UI64VNVPROC __glewProgramUniform2ui64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3I64NVPROC __glewProgramUniform3i64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3I64VNVPROC __glewProgramUniform3i64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UI64NVPROC __glewProgramUniform3ui64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3UI64VNVPROC __glewProgramUniform3ui64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4I64NVPROC __glewProgramUniform4i64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4I64VNVPROC __glewProgramUniform4i64vNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UI64NVPROC __glewProgramUniform4ui64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4UI64VNVPROC __glewProgramUniform4ui64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM1I64NVPROC __glewUniform1i64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM1I64VNVPROC __glewUniform1i64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM1UI64NVPROC __glewUniform1ui64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM1UI64VNVPROC __glewUniform1ui64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM2I64NVPROC __glewUniform2i64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM2I64VNVPROC __glewUniform2i64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM2UI64NVPROC __glewUniform2ui64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM2UI64VNVPROC __glewUniform2ui64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM3I64NVPROC __glewUniform3i64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM3I64VNVPROC __glewUniform3i64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM3UI64NVPROC __glewUniform3ui64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM3UI64VNVPROC __glewUniform3ui64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM4I64NVPROC __glewUniform4i64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM4I64VNVPROC __glewUniform4i64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORM4UI64NVPROC __glewUniform4ui64NV; -GLEW_FUN_EXPORT PFNGLUNIFORM4UI64VNVPROC __glewUniform4ui64vNV; - -GLEW_FUN_EXPORT PFNGLCOLOR3HNVPROC __glewColor3hNV; -GLEW_FUN_EXPORT PFNGLCOLOR3HVNVPROC __glewColor3hvNV; -GLEW_FUN_EXPORT PFNGLCOLOR4HNVPROC __glewColor4hNV; -GLEW_FUN_EXPORT PFNGLCOLOR4HVNVPROC __glewColor4hvNV; -GLEW_FUN_EXPORT PFNGLFOGCOORDHNVPROC __glewFogCoordhNV; -GLEW_FUN_EXPORT PFNGLFOGCOORDHVNVPROC __glewFogCoordhvNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1HNVPROC __glewMultiTexCoord1hNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1HVNVPROC __glewMultiTexCoord1hvNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2HNVPROC __glewMultiTexCoord2hNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2HVNVPROC __glewMultiTexCoord2hvNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3HNVPROC __glewMultiTexCoord3hNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3HVNVPROC __glewMultiTexCoord3hvNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4HNVPROC __glewMultiTexCoord4hNV; -GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4HVNVPROC __glewMultiTexCoord4hvNV; -GLEW_FUN_EXPORT PFNGLNORMAL3HNVPROC __glewNormal3hNV; -GLEW_FUN_EXPORT PFNGLNORMAL3HVNVPROC __glewNormal3hvNV; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3HNVPROC __glewSecondaryColor3hNV; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3HVNVPROC __glewSecondaryColor3hvNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD1HNVPROC __glewTexCoord1hNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD1HVNVPROC __glewTexCoord1hvNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD2HNVPROC __glewTexCoord2hNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD2HVNVPROC __glewTexCoord2hvNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD3HNVPROC __glewTexCoord3hNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD3HVNVPROC __glewTexCoord3hvNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD4HNVPROC __glewTexCoord4hNV; -GLEW_FUN_EXPORT PFNGLTEXCOORD4HVNVPROC __glewTexCoord4hvNV; -GLEW_FUN_EXPORT PFNGLVERTEX2HNVPROC __glewVertex2hNV; -GLEW_FUN_EXPORT PFNGLVERTEX2HVNVPROC __glewVertex2hvNV; -GLEW_FUN_EXPORT PFNGLVERTEX3HNVPROC __glewVertex3hNV; -GLEW_FUN_EXPORT PFNGLVERTEX3HVNVPROC __glewVertex3hvNV; -GLEW_FUN_EXPORT PFNGLVERTEX4HNVPROC __glewVertex4hNV; -GLEW_FUN_EXPORT PFNGLVERTEX4HVNVPROC __glewVertex4hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1HNVPROC __glewVertexAttrib1hNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1HVNVPROC __glewVertexAttrib1hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2HNVPROC __glewVertexAttrib2hNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2HVNVPROC __glewVertexAttrib2hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3HNVPROC __glewVertexAttrib3hNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3HVNVPROC __glewVertexAttrib3hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4HNVPROC __glewVertexAttrib4hNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4HVNVPROC __glewVertexAttrib4hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1HVNVPROC __glewVertexAttribs1hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2HVNVPROC __glewVertexAttribs2hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3HVNVPROC __glewVertexAttribs3hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4HVNVPROC __glewVertexAttribs4hvNV; -GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTHNVPROC __glewVertexWeighthNV; -GLEW_FUN_EXPORT PFNGLVERTEXWEIGHTHVNVPROC __glewVertexWeighthvNV; - -GLEW_FUN_EXPORT PFNGLBEGINOCCLUSIONQUERYNVPROC __glewBeginOcclusionQueryNV; -GLEW_FUN_EXPORT PFNGLDELETEOCCLUSIONQUERIESNVPROC __glewDeleteOcclusionQueriesNV; -GLEW_FUN_EXPORT PFNGLENDOCCLUSIONQUERYNVPROC __glewEndOcclusionQueryNV; -GLEW_FUN_EXPORT PFNGLGENOCCLUSIONQUERIESNVPROC __glewGenOcclusionQueriesNV; -GLEW_FUN_EXPORT PFNGLGETOCCLUSIONQUERYIVNVPROC __glewGetOcclusionQueryivNV; -GLEW_FUN_EXPORT PFNGLGETOCCLUSIONQUERYUIVNVPROC __glewGetOcclusionQueryuivNV; -GLEW_FUN_EXPORT PFNGLISOCCLUSIONQUERYNVPROC __glewIsOcclusionQueryNV; - -GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC __glewProgramBufferParametersIivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC __glewProgramBufferParametersIuivNV; -GLEW_FUN_EXPORT PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC __glewProgramBufferParametersfvNV; - -GLEW_FUN_EXPORT PFNGLFLUSHPIXELDATARANGENVPROC __glewFlushPixelDataRangeNV; -GLEW_FUN_EXPORT PFNGLPIXELDATARANGENVPROC __glewPixelDataRangeNV; - -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERINVPROC __glewPointParameteriNV; -GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIVNVPROC __glewPointParameterivNV; - -GLEW_FUN_EXPORT PFNGLGETVIDEOI64VNVPROC __glewGetVideoi64vNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOIVNVPROC __glewGetVideoivNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOUI64VNVPROC __glewGetVideoui64vNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOUIVNVPROC __glewGetVideouivNV; -GLEW_FUN_EXPORT PFNGLPRESENTFRAMEDUALFILLNVPROC __glewPresentFrameDualFillNV; -GLEW_FUN_EXPORT PFNGLPRESENTFRAMEKEYEDNVPROC __glewPresentFrameKeyedNV; - -GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTINDEXNVPROC __glewPrimitiveRestartIndexNV; -GLEW_FUN_EXPORT PFNGLPRIMITIVERESTARTNVPROC __glewPrimitiveRestartNV; - -GLEW_FUN_EXPORT PFNGLCOMBINERINPUTNVPROC __glewCombinerInputNV; -GLEW_FUN_EXPORT PFNGLCOMBINEROUTPUTNVPROC __glewCombinerOutputNV; -GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERFNVPROC __glewCombinerParameterfNV; -GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERFVNVPROC __glewCombinerParameterfvNV; -GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERINVPROC __glewCombinerParameteriNV; -GLEW_FUN_EXPORT PFNGLCOMBINERPARAMETERIVNVPROC __glewCombinerParameterivNV; -GLEW_FUN_EXPORT PFNGLFINALCOMBINERINPUTNVPROC __glewFinalCombinerInputNV; -GLEW_FUN_EXPORT PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC __glewGetCombinerInputParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC __glewGetCombinerInputParameterivNV; -GLEW_FUN_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC __glewGetCombinerOutputParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC __glewGetCombinerOutputParameterivNV; -GLEW_FUN_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC __glewGetFinalCombinerInputParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC __glewGetFinalCombinerInputParameterivNV; - -GLEW_FUN_EXPORT PFNGLCOMBINERSTAGEPARAMETERFVNVPROC __glewCombinerStageParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC __glewGetCombinerStageParameterfvNV; - -GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERUI64VNVPROC __glewGetBufferParameterui64vNV; -GLEW_FUN_EXPORT PFNGLGETINTEGERUI64VNVPROC __glewGetIntegerui64vNV; -GLEW_FUN_EXPORT PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC __glewGetNamedBufferParameterui64vNV; -GLEW_FUN_EXPORT PFNGLISBUFFERRESIDENTNVPROC __glewIsBufferResidentNV; -GLEW_FUN_EXPORT PFNGLISNAMEDBUFFERRESIDENTNVPROC __glewIsNamedBufferResidentNV; -GLEW_FUN_EXPORT PFNGLMAKEBUFFERNONRESIDENTNVPROC __glewMakeBufferNonResidentNV; -GLEW_FUN_EXPORT PFNGLMAKEBUFFERRESIDENTNVPROC __glewMakeBufferResidentNV; -GLEW_FUN_EXPORT PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC __glewMakeNamedBufferNonResidentNV; -GLEW_FUN_EXPORT PFNGLMAKENAMEDBUFFERRESIDENTNVPROC __glewMakeNamedBufferResidentNV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMUI64NVPROC __glewProgramUniformui64NV; -GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMUI64VNVPROC __glewProgramUniformui64vNV; -GLEW_FUN_EXPORT PFNGLUNIFORMUI64NVPROC __glewUniformui64NV; -GLEW_FUN_EXPORT PFNGLUNIFORMUI64VNVPROC __glewUniformui64vNV; - -GLEW_FUN_EXPORT PFNGLTEXTUREBARRIERNVPROC __glewTextureBarrierNV; - -GLEW_FUN_EXPORT PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC __glewTexImage2DMultisampleCoverageNV; -GLEW_FUN_EXPORT PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC __glewTexImage3DMultisampleCoverageNV; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC __glewTextureImage2DMultisampleCoverageNV; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC __glewTextureImage2DMultisampleNV; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC __glewTextureImage3DMultisampleCoverageNV; -GLEW_FUN_EXPORT PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC __glewTextureImage3DMultisampleNV; - -GLEW_FUN_EXPORT PFNGLACTIVEVARYINGNVPROC __glewActiveVaryingNV; -GLEW_FUN_EXPORT PFNGLBEGINTRANSFORMFEEDBACKNVPROC __glewBeginTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLBINDBUFFERBASENVPROC __glewBindBufferBaseNV; -GLEW_FUN_EXPORT PFNGLBINDBUFFEROFFSETNVPROC __glewBindBufferOffsetNV; -GLEW_FUN_EXPORT PFNGLBINDBUFFERRANGENVPROC __glewBindBufferRangeNV; -GLEW_FUN_EXPORT PFNGLENDTRANSFORMFEEDBACKNVPROC __glewEndTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLGETACTIVEVARYINGNVPROC __glewGetActiveVaryingNV; -GLEW_FUN_EXPORT PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC __glewGetTransformFeedbackVaryingNV; -GLEW_FUN_EXPORT PFNGLGETVARYINGLOCATIONNVPROC __glewGetVaryingLocationNV; -GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC __glewTransformFeedbackAttribsNV; -GLEW_FUN_EXPORT PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC __glewTransformFeedbackVaryingsNV; - -GLEW_FUN_EXPORT PFNGLBINDTRANSFORMFEEDBACKNVPROC __glewBindTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLDELETETRANSFORMFEEDBACKSNVPROC __glewDeleteTransformFeedbacksNV; -GLEW_FUN_EXPORT PFNGLDRAWTRANSFORMFEEDBACKNVPROC __glewDrawTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLGENTRANSFORMFEEDBACKSNVPROC __glewGenTransformFeedbacksNV; -GLEW_FUN_EXPORT PFNGLISTRANSFORMFEEDBACKNVPROC __glewIsTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLPAUSETRANSFORMFEEDBACKNVPROC __glewPauseTransformFeedbackNV; -GLEW_FUN_EXPORT PFNGLRESUMETRANSFORMFEEDBACKNVPROC __glewResumeTransformFeedbackNV; - -GLEW_FUN_EXPORT PFNGLVDPAUFININVPROC __glewVDPAUFiniNV; -GLEW_FUN_EXPORT PFNGLVDPAUGETSURFACEIVNVPROC __glewVDPAUGetSurfaceivNV; -GLEW_FUN_EXPORT PFNGLVDPAUINITNVPROC __glewVDPAUInitNV; -GLEW_FUN_EXPORT PFNGLVDPAUISSURFACENVPROC __glewVDPAUIsSurfaceNV; -GLEW_FUN_EXPORT PFNGLVDPAUMAPSURFACESNVPROC __glewVDPAUMapSurfacesNV; -GLEW_FUN_EXPORT PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC __glewVDPAURegisterOutputSurfaceNV; -GLEW_FUN_EXPORT PFNGLVDPAUREGISTERVIDEOSURFACENVPROC __glewVDPAURegisterVideoSurfaceNV; -GLEW_FUN_EXPORT PFNGLVDPAUSURFACEACCESSNVPROC __glewVDPAUSurfaceAccessNV; -GLEW_FUN_EXPORT PFNGLVDPAUUNMAPSURFACESNVPROC __glewVDPAUUnmapSurfacesNV; -GLEW_FUN_EXPORT PFNGLVDPAUUNREGISTERSURFACENVPROC __glewVDPAUUnregisterSurfaceNV; - -GLEW_FUN_EXPORT PFNGLFLUSHVERTEXARRAYRANGENVPROC __glewFlushVertexArrayRangeNV; -GLEW_FUN_EXPORT PFNGLVERTEXARRAYRANGENVPROC __glewVertexArrayRangeNV; - -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLI64VNVPROC __glewGetVertexAttribLi64vNV; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBLUI64VNVPROC __glewGetVertexAttribLui64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1I64NVPROC __glewVertexAttribL1i64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1I64VNVPROC __glewVertexAttribL1i64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1UI64NVPROC __glewVertexAttribL1ui64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL1UI64VNVPROC __glewVertexAttribL1ui64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2I64NVPROC __glewVertexAttribL2i64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2I64VNVPROC __glewVertexAttribL2i64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2UI64NVPROC __glewVertexAttribL2ui64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL2UI64VNVPROC __glewVertexAttribL2ui64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3I64NVPROC __glewVertexAttribL3i64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3I64VNVPROC __glewVertexAttribL3i64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3UI64NVPROC __glewVertexAttribL3ui64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL3UI64VNVPROC __glewVertexAttribL3ui64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4I64NVPROC __glewVertexAttribL4i64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4I64VNVPROC __glewVertexAttribL4i64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4UI64NVPROC __glewVertexAttribL4ui64NV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBL4UI64VNVPROC __glewVertexAttribL4ui64vNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBLFORMATNVPROC __glewVertexAttribLFormatNV; - -GLEW_FUN_EXPORT PFNGLBUFFERADDRESSRANGENVPROC __glewBufferAddressRangeNV; -GLEW_FUN_EXPORT PFNGLCOLORFORMATNVPROC __glewColorFormatNV; -GLEW_FUN_EXPORT PFNGLEDGEFLAGFORMATNVPROC __glewEdgeFlagFormatNV; -GLEW_FUN_EXPORT PFNGLFOGCOORDFORMATNVPROC __glewFogCoordFormatNV; -GLEW_FUN_EXPORT PFNGLGETINTEGERUI64I_VNVPROC __glewGetIntegerui64i_vNV; -GLEW_FUN_EXPORT PFNGLINDEXFORMATNVPROC __glewIndexFormatNV; -GLEW_FUN_EXPORT PFNGLNORMALFORMATNVPROC __glewNormalFormatNV; -GLEW_FUN_EXPORT PFNGLSECONDARYCOLORFORMATNVPROC __glewSecondaryColorFormatNV; -GLEW_FUN_EXPORT PFNGLTEXCOORDFORMATNVPROC __glewTexCoordFormatNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBFORMATNVPROC __glewVertexAttribFormatNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBIFORMATNVPROC __glewVertexAttribIFormatNV; -GLEW_FUN_EXPORT PFNGLVERTEXFORMATNVPROC __glewVertexFormatNV; - -GLEW_FUN_EXPORT PFNGLAREPROGRAMSRESIDENTNVPROC __glewAreProgramsResidentNV; -GLEW_FUN_EXPORT PFNGLBINDPROGRAMNVPROC __glewBindProgramNV; -GLEW_FUN_EXPORT PFNGLDELETEPROGRAMSNVPROC __glewDeleteProgramsNV; -GLEW_FUN_EXPORT PFNGLEXECUTEPROGRAMNVPROC __glewExecuteProgramNV; -GLEW_FUN_EXPORT PFNGLGENPROGRAMSNVPROC __glewGenProgramsNV; -GLEW_FUN_EXPORT PFNGLGETPROGRAMPARAMETERDVNVPROC __glewGetProgramParameterdvNV; -GLEW_FUN_EXPORT PFNGLGETPROGRAMPARAMETERFVNVPROC __glewGetProgramParameterfvNV; -GLEW_FUN_EXPORT PFNGLGETPROGRAMSTRINGNVPROC __glewGetProgramStringNV; -GLEW_FUN_EXPORT PFNGLGETPROGRAMIVNVPROC __glewGetProgramivNV; -GLEW_FUN_EXPORT PFNGLGETTRACKMATRIXIVNVPROC __glewGetTrackMatrixivNV; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVNVPROC __glewGetVertexAttribPointervNV; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVNVPROC __glewGetVertexAttribdvNV; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVNVPROC __glewGetVertexAttribfvNV; -GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVNVPROC __glewGetVertexAttribivNV; -GLEW_FUN_EXPORT PFNGLISPROGRAMNVPROC __glewIsProgramNV; -GLEW_FUN_EXPORT PFNGLLOADPROGRAMNVPROC __glewLoadProgramNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4DNVPROC __glewProgramParameter4dNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4DVNVPROC __glewProgramParameter4dvNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4FNVPROC __glewProgramParameter4fNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETER4FVNVPROC __glewProgramParameter4fvNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERS4DVNVPROC __glewProgramParameters4dvNV; -GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERS4FVNVPROC __glewProgramParameters4fvNV; -GLEW_FUN_EXPORT PFNGLREQUESTRESIDENTPROGRAMSNVPROC __glewRequestResidentProgramsNV; -GLEW_FUN_EXPORT PFNGLTRACKMATRIXNVPROC __glewTrackMatrixNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DNVPROC __glewVertexAttrib1dNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVNVPROC __glewVertexAttrib1dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FNVPROC __glewVertexAttrib1fNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVNVPROC __glewVertexAttrib1fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SNVPROC __glewVertexAttrib1sNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVNVPROC __glewVertexAttrib1svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DNVPROC __glewVertexAttrib2dNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVNVPROC __glewVertexAttrib2dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FNVPROC __glewVertexAttrib2fNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVNVPROC __glewVertexAttrib2fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SNVPROC __glewVertexAttrib2sNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVNVPROC __glewVertexAttrib2svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DNVPROC __glewVertexAttrib3dNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVNVPROC __glewVertexAttrib3dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FNVPROC __glewVertexAttrib3fNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVNVPROC __glewVertexAttrib3fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SNVPROC __glewVertexAttrib3sNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVNVPROC __glewVertexAttrib3svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DNVPROC __glewVertexAttrib4dNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVNVPROC __glewVertexAttrib4dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FNVPROC __glewVertexAttrib4fNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVNVPROC __glewVertexAttrib4fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SNVPROC __glewVertexAttrib4sNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVNVPROC __glewVertexAttrib4svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBNVPROC __glewVertexAttrib4ubNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVNVPROC __glewVertexAttrib4ubvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERNVPROC __glewVertexAttribPointerNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1DVNVPROC __glewVertexAttribs1dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1FVNVPROC __glewVertexAttribs1fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS1SVNVPROC __glewVertexAttribs1svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2DVNVPROC __glewVertexAttribs2dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2FVNVPROC __glewVertexAttribs2fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS2SVNVPROC __glewVertexAttribs2svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3DVNVPROC __glewVertexAttribs3dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3FVNVPROC __glewVertexAttribs3fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS3SVNVPROC __glewVertexAttribs3svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4DVNVPROC __glewVertexAttribs4dvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4FVNVPROC __glewVertexAttribs4fvNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4SVNVPROC __glewVertexAttribs4svNV; -GLEW_FUN_EXPORT PFNGLVERTEXATTRIBS4UBVNVPROC __glewVertexAttribs4ubvNV; - -GLEW_FUN_EXPORT PFNGLBEGINVIDEOCAPTURENVPROC __glewBeginVideoCaptureNV; -GLEW_FUN_EXPORT PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC __glewBindVideoCaptureStreamBufferNV; -GLEW_FUN_EXPORT PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC __glewBindVideoCaptureStreamTextureNV; -GLEW_FUN_EXPORT PFNGLENDVIDEOCAPTURENVPROC __glewEndVideoCaptureNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOCAPTURESTREAMDVNVPROC __glewGetVideoCaptureStreamdvNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOCAPTURESTREAMFVNVPROC __glewGetVideoCaptureStreamfvNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOCAPTURESTREAMIVNVPROC __glewGetVideoCaptureStreamivNV; -GLEW_FUN_EXPORT PFNGLGETVIDEOCAPTUREIVNVPROC __glewGetVideoCaptureivNV; -GLEW_FUN_EXPORT PFNGLVIDEOCAPTURENVPROC __glewVideoCaptureNV; -GLEW_FUN_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC __glewVideoCaptureStreamParameterdvNV; -GLEW_FUN_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC __glewVideoCaptureStreamParameterfvNV; -GLEW_FUN_EXPORT PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC __glewVideoCaptureStreamParameterivNV; - -GLEW_FUN_EXPORT PFNGLCLEARDEPTHFOESPROC __glewClearDepthfOES; -GLEW_FUN_EXPORT PFNGLCLIPPLANEFOESPROC __glewClipPlanefOES; -GLEW_FUN_EXPORT PFNGLDEPTHRANGEFOESPROC __glewDepthRangefOES; -GLEW_FUN_EXPORT PFNGLFRUSTUMFOESPROC __glewFrustumfOES; -GLEW_FUN_EXPORT PFNGLGETCLIPPLANEFOESPROC __glewGetClipPlanefOES; -GLEW_FUN_EXPORT PFNGLORTHOFOESPROC __glewOrthofOES; - -GLEW_FUN_EXPORT PFNGLDETAILTEXFUNCSGISPROC __glewDetailTexFuncSGIS; -GLEW_FUN_EXPORT PFNGLGETDETAILTEXFUNCSGISPROC __glewGetDetailTexFuncSGIS; - -GLEW_FUN_EXPORT PFNGLFOGFUNCSGISPROC __glewFogFuncSGIS; -GLEW_FUN_EXPORT PFNGLGETFOGFUNCSGISPROC __glewGetFogFuncSGIS; - -GLEW_FUN_EXPORT PFNGLSAMPLEMASKSGISPROC __glewSampleMaskSGIS; -GLEW_FUN_EXPORT PFNGLSAMPLEPATTERNSGISPROC __glewSamplePatternSGIS; - -GLEW_FUN_EXPORT PFNGLGETSHARPENTEXFUNCSGISPROC __glewGetSharpenTexFuncSGIS; -GLEW_FUN_EXPORT PFNGLSHARPENTEXFUNCSGISPROC __glewSharpenTexFuncSGIS; - -GLEW_FUN_EXPORT PFNGLTEXIMAGE4DSGISPROC __glewTexImage4DSGIS; -GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE4DSGISPROC __glewTexSubImage4DSGIS; - -GLEW_FUN_EXPORT PFNGLGETTEXFILTERFUNCSGISPROC __glewGetTexFilterFuncSGIS; -GLEW_FUN_EXPORT PFNGLTEXFILTERFUNCSGISPROC __glewTexFilterFuncSGIS; - -GLEW_FUN_EXPORT PFNGLASYNCMARKERSGIXPROC __glewAsyncMarkerSGIX; -GLEW_FUN_EXPORT PFNGLDELETEASYNCMARKERSSGIXPROC __glewDeleteAsyncMarkersSGIX; -GLEW_FUN_EXPORT PFNGLFINISHASYNCSGIXPROC __glewFinishAsyncSGIX; -GLEW_FUN_EXPORT PFNGLGENASYNCMARKERSSGIXPROC __glewGenAsyncMarkersSGIX; -GLEW_FUN_EXPORT PFNGLISASYNCMARKERSGIXPROC __glewIsAsyncMarkerSGIX; -GLEW_FUN_EXPORT PFNGLPOLLASYNCSGIXPROC __glewPollAsyncSGIX; - -GLEW_FUN_EXPORT PFNGLFLUSHRASTERSGIXPROC __glewFlushRasterSGIX; - -GLEW_FUN_EXPORT PFNGLTEXTUREFOGSGIXPROC __glewTextureFogSGIX; - -GLEW_FUN_EXPORT PFNGLFRAGMENTCOLORMATERIALSGIXPROC __glewFragmentColorMaterialSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFSGIXPROC __glewFragmentLightModelfSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELFVSGIXPROC __glewFragmentLightModelfvSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELISGIXPROC __glewFragmentLightModeliSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTMODELIVSGIXPROC __glewFragmentLightModelivSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFSGIXPROC __glewFragmentLightfSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTFVSGIXPROC __glewFragmentLightfvSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTISGIXPROC __glewFragmentLightiSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTLIGHTIVSGIXPROC __glewFragmentLightivSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFSGIXPROC __glewFragmentMaterialfSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALFVSGIXPROC __glewFragmentMaterialfvSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALISGIXPROC __glewFragmentMaterialiSGIX; -GLEW_FUN_EXPORT PFNGLFRAGMENTMATERIALIVSGIXPROC __glewFragmentMaterialivSGIX; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTFVSGIXPROC __glewGetFragmentLightfvSGIX; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTLIGHTIVSGIXPROC __glewGetFragmentLightivSGIX; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX; -GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX; - -GLEW_FUN_EXPORT PFNGLFRAMEZOOMSGIXPROC __glewFrameZoomSGIX; - -GLEW_FUN_EXPORT PFNGLPIXELTEXGENSGIXPROC __glewPixelTexGenSGIX; - -GLEW_FUN_EXPORT PFNGLREFERENCEPLANESGIXPROC __glewReferencePlaneSGIX; - -GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERFSGIXPROC __glewSpriteParameterfSGIX; -GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERFVSGIXPROC __glewSpriteParameterfvSGIX; -GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERISGIXPROC __glewSpriteParameteriSGIX; -GLEW_FUN_EXPORT PFNGLSPRITEPARAMETERIVSGIXPROC __glewSpriteParameterivSGIX; - -GLEW_FUN_EXPORT PFNGLTAGSAMPLEBUFFERSGIXPROC __glewTagSampleBufferSGIX; - -GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERFVSGIPROC __glewColorTableParameterfvSGI; -GLEW_FUN_EXPORT PFNGLCOLORTABLEPARAMETERIVSGIPROC __glewColorTableParameterivSGI; -GLEW_FUN_EXPORT PFNGLCOLORTABLESGIPROC __glewColorTableSGI; -GLEW_FUN_EXPORT PFNGLCOPYCOLORTABLESGIPROC __glewCopyColorTableSGI; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERFVSGIPROC __glewGetColorTableParameterfvSGI; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLEPARAMETERIVSGIPROC __glewGetColorTableParameterivSGI; -GLEW_FUN_EXPORT PFNGLGETCOLORTABLESGIPROC __glewGetColorTableSGI; - -GLEW_FUN_EXPORT PFNGLFINISHTEXTURESUNXPROC __glewFinishTextureSUNX; - -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORBSUNPROC __glewGlobalAlphaFactorbSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORDSUNPROC __glewGlobalAlphaFactordSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORFSUNPROC __glewGlobalAlphaFactorfSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORISUNPROC __glewGlobalAlphaFactoriSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORSSUNPROC __glewGlobalAlphaFactorsSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUBSUNPROC __glewGlobalAlphaFactorubSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUISUNPROC __glewGlobalAlphaFactoruiSUN; -GLEW_FUN_EXPORT PFNGLGLOBALALPHAFACTORUSSUNPROC __glewGlobalAlphaFactorusSUN; - -GLEW_FUN_EXPORT PFNGLREADVIDEOPIXELSSUNPROC __glewReadVideoPixelsSUN; - -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEPOINTERSUNPROC __glewReplacementCodePointerSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUBSUNPROC __glewReplacementCodeubSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUBVSUNPROC __glewReplacementCodeubvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUISUNPROC __glewReplacementCodeuiSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVSUNPROC __glewReplacementCodeuivSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUSSUNPROC __glewReplacementCodeusSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUSVSUNPROC __glewReplacementCodeusvSUN; - -GLEW_FUN_EXPORT PFNGLCOLOR3FVERTEX3FSUNPROC __glewColor3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLCOLOR3FVERTEX3FVSUNPROC __glewColor3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewColor4fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewColor4fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX2FSUNPROC __glewColor4ubVertex2fSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX2FVSUNPROC __glewColor4ubVertex2fvSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX3FSUNPROC __glewColor4ubVertex3fSUN; -GLEW_FUN_EXPORT PFNGLCOLOR4UBVERTEX3FVSUNPROC __glewColor4ubVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLNORMAL3FVERTEX3FSUNPROC __glewNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLNORMAL3FVERTEX3FVSUNPROC __glewNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC __glewReplacementCodeuiColor3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC __glewReplacementCodeuiColor4ubVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC __glewReplacementCodeuiColor4ubVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC __glewReplacementCodeuiVertex3fSUN; -GLEW_FUN_EXPORT PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC __glewReplacementCodeuiVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC __glewTexCoord2fColor3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC __glewTexCoord2fColor3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC __glewTexCoord2fColor4ubVertex3fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC __glewTexCoord2fColor4ubVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fNormal3fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fNormal3fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FVERTEX3FSUNPROC __glewTexCoord2fVertex3fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD2FVERTEX3FVSUNPROC __glewTexCoord2fVertex3fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fvSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD4FVERTEX4FSUNPROC __glewTexCoord4fVertex4fSUN; -GLEW_FUN_EXPORT PFNGLTEXCOORD4FVERTEX4FVSUNPROC __glewTexCoord4fVertex4fvSUN; - -GLEW_FUN_EXPORT PFNGLADDSWAPHINTRECTWINPROC __glewAddSwapHintRectWIN; - -#if defined(GLEW_MX) && !defined(_WIN32) -struct GLEWContextStruct -{ -#endif /* GLEW_MX */ - -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2_1; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_3; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_4; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_5; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_0; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_1; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_0; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_1; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_2; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_3_3; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_4_0; -GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_4_1; -GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_tbuffer; -GLEW_VAR_EXPORT GLboolean __GLEW_3DFX_texture_compression_FXT1; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_blend_minmax_factor; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_conservative_depth; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_debug_output; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_depth_clamp_separate; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_draw_buffers_blend; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_name_gen_delete; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_performance_monitor; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_sample_positions; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_seamless_cubemap_per_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_shader_stencil_export; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_texture_texture4; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_transform_feedback3_lines_triangles; -GLEW_VAR_EXPORT GLboolean __GLEW_AMD_vertex_shader_tessellator; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_aux_depth_stencil; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_client_storage; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_element_array; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_fence; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_float_pixels; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_flush_buffer_range; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_object_purgeable; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_pixel_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_rgb_422; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_row_bytes; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_specular_vector; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_texture_range; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_transform_hint; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_array_object; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_array_range; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_vertex_program_evaluators; -GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_ycbcr_422; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_ES2_compatibility; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_blend_func_extended; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_cl_event; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_color_buffer_float; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_compatibility; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_copy_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_debug_output; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_buffer_float; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_depth_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_buffers; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_buffers_blend; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_elements_base_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_indirect; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_draw_instanced; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_explicit_attrib_location; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_coord_conventions; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_program; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_program_shadow; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_fragment_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_framebuffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_framebuffer_sRGB; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_geometry_shader4; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_get_program_binary; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_gpu_shader5; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_gpu_shader_fp64; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_half_float_pixel; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_half_float_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_imaging; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_instanced_arrays; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_map_buffer_range; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_matrix_palette; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_multitexture; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_occlusion_query; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_occlusion_query2; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_pixel_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_point_parameters; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_point_sprite; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_provoking_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_robustness; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sample_shading; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sampler_objects; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_seamless_cube_map; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_separate_shader_objects; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_bit_encoding; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_objects; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_precision; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_stencil_export; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_subroutine; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shader_texture_lod; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shading_language_100; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shading_language_include; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shadow; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_shadow_ambient; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_sync; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_tessellation_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_border_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_buffer_object_rgb32; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression_bptc; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_compression_rgtc; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_cube_map; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_cube_map_array; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_add; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_combine; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_crossbar; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_env_dot3; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_float; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_gather; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_mirrored_repeat; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_non_power_of_two; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_query_lod; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rectangle; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rg; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_rgb10_a2ui; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_texture_swizzle; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_timer_query; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transform_feedback2; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transform_feedback3; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_transpose_matrix; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_uniform_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_array_bgra; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_array_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_attrib_64bit; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_blend; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_program; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_type_2_10_10_10_rev; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_viewport_array; -GLEW_VAR_EXPORT GLboolean __GLEW_ARB_window_pos; -GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_point_sprites; -GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_texture_env_combine3; -GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_texture_env_route; -GLEW_VAR_EXPORT GLboolean __GLEW_ATIX_vertex_shader_output_point_size; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_draw_buffers; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_element_array; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_envmap_bumpmap; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_fragment_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_map_object_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_meminfo; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_pn_triangles; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_separate_stencil; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_shader_texture_lod; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_text_fragment_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_compression_3dc; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_env_combine3; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_float; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_texture_mirror_once; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_array_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_attrib_array_object; -GLEW_VAR_EXPORT GLboolean __GLEW_ATI_vertex_streams; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_422_pixels; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_Cg_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_abgr; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_bgra; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_bindable_uniform; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_color; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_equation_separate; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_func_separate; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_logic_op; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_minmax; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_subtract; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_clip_volume_hint; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_cmyka; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_color_subtable; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_compiled_vertex_array; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_convolution; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_coordinate_frame; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_copy_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_cull_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_depth_bounds_test; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_direct_state_access; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_buffers2; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_instanced; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_draw_range_elements; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_fog_coord; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_fragment_lighting; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_blit; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_framebuffer_sRGB; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_geometry_shader4; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_gpu_program_parameters; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_gpu_shader4; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_histogram; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_array_formats; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_func; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_material; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_index_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_light_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_misc_attribute; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multi_draw_arrays; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_depth_stencil; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_float; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_packed_pixels; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_paletted_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_transform; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_pixel_transform_color_table; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_point_parameters; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_polygon_offset; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_provoking_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_rescale_normal; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_scene_marker; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_secondary_color; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_separate_shader_objects; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_separate_specular_color; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shader_image_load_store; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shadow_funcs; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shared_texture_palette; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_clear_tag; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_two_side; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_stencil_wrap; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_subtexture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture3D; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_array; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_dxt1; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_latc; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_rgtc; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_s3tc; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_cube_map; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_edge_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_add; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_combine; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_env_dot3; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_filter_anisotropic; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_integer; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_lod_bias; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_mirror_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_object; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_perturb_normal; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_rectangle; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_sRGB; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_sRGB_decode; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_shared_exponent; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_snorm; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_swizzle; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_timer_query; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_transform_feedback; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_array; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_array_bgra; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_attrib_64bit; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_vertex_weighting; -GLEW_VAR_EXPORT GLboolean __GLEW_EXT_x11_sync_object; -GLEW_VAR_EXPORT GLboolean __GLEW_GREMEDY_frame_terminator; -GLEW_VAR_EXPORT GLboolean __GLEW_GREMEDY_string_marker; -GLEW_VAR_EXPORT GLboolean __GLEW_HP_convolution_border_modes; -GLEW_VAR_EXPORT GLboolean __GLEW_HP_image_transform; -GLEW_VAR_EXPORT GLboolean __GLEW_HP_occlusion_test; -GLEW_VAR_EXPORT GLboolean __GLEW_HP_texture_lighting; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_cull_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_multimode_draw_arrays; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_rasterpos_clip; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_static_data; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_texture_mirrored_repeat; -GLEW_VAR_EXPORT GLboolean __GLEW_IBM_vertex_array_lists; -GLEW_VAR_EXPORT GLboolean __GLEW_INGR_color_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_INGR_interlace_read; -GLEW_VAR_EXPORT GLboolean __GLEW_INTEL_parallel_arrays; -GLEW_VAR_EXPORT GLboolean __GLEW_INTEL_texture_scissor; -GLEW_VAR_EXPORT GLboolean __GLEW_KTX_buffer_region; -GLEW_VAR_EXPORT GLboolean __GLEW_MESAX_texture_stack; -GLEW_VAR_EXPORT GLboolean __GLEW_MESA_pack_invert; -GLEW_VAR_EXPORT GLboolean __GLEW_MESA_resize_buffers; -GLEW_VAR_EXPORT GLboolean __GLEW_MESA_window_pos; -GLEW_VAR_EXPORT GLboolean __GLEW_MESA_ycbcr_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_NVX_gpu_memory_info; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_blend_square; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_conditional_render; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_copy_depth_to_color; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_copy_image; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_buffer_float; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_range_unclamped; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_evaluators; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_explicit_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fence; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_float_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fog_distance; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_fragment_program_option; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_framebuffer_multisample_coverage; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_geometry_program4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_geometry_shader4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program5; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_program_fp64; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_gpu_shader5; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_half_float; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_light_max_exponent; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_multisample_coverage; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_multisample_filter_hint; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_occlusion_query; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_packed_depth_stencil; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_parameter_buffer_object; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_parameter_buffer_object2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_pixel_data_range; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_point_sprite; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_present_video; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_primitive_restart; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_register_combiners; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_register_combiners2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_shader_buffer_load; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_tessellation_program5; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texgen_emboss; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texgen_reflection; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_barrier; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_compression_vtc; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_env_combine4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_expand_normal; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_rectangle; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_shader3; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_transform_feedback; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_transform_feedback2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vdpau_interop; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_array_range; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_array_range2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_attrib_integer_64bit; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_buffer_unified_memory; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program1_1; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program2; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program2_option; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program3; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_vertex_program4; -GLEW_VAR_EXPORT GLboolean __GLEW_NV_video_capture; -GLEW_VAR_EXPORT GLboolean __GLEW_OES_byte_coordinates; -GLEW_VAR_EXPORT GLboolean __GLEW_OES_compressed_paletted_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_OES_read_format; -GLEW_VAR_EXPORT GLboolean __GLEW_OES_single_precision; -GLEW_VAR_EXPORT GLboolean __GLEW_OML_interlace; -GLEW_VAR_EXPORT GLboolean __GLEW_OML_resample; -GLEW_VAR_EXPORT GLboolean __GLEW_OML_subsample; -GLEW_VAR_EXPORT GLboolean __GLEW_PGI_misc_hints; -GLEW_VAR_EXPORT GLboolean __GLEW_PGI_vertex_hints; -GLEW_VAR_EXPORT GLboolean __GLEW_REND_screen_coordinates; -GLEW_VAR_EXPORT GLboolean __GLEW_S3_s3tc; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_color_range; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_detail_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_fog_function; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_generate_mipmap; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_multisample; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_pixel_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_point_line_texgen; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_sharpen_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture4D; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_border_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_edge_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_filter4; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_lod; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_select; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async_histogram; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_async_pixel; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_blend_alpha_minmax; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_clipmap; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_convolution_accuracy; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_depth_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_flush_raster; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fog_offset; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fog_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_fragment_specular_lighting; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_framezoom; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_interlace; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_ir_instrument1; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_list_priority; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_pixel_texture; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_pixel_texture_bits; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_reference_plane; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_resample; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_shadow; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_shadow_ambient; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_sprite; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_tag_sample_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_add_env; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_coordinate_clamp; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_lod_bias; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_multi_buffer; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_range; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_texture_scale_bias; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_vertex_preclip; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_vertex_preclip_hint; -GLEW_VAR_EXPORT GLboolean __GLEW_SGIX_ycrcb; -GLEW_VAR_EXPORT GLboolean __GLEW_SGI_color_matrix; -GLEW_VAR_EXPORT GLboolean __GLEW_SGI_color_table; -GLEW_VAR_EXPORT GLboolean __GLEW_SGI_texture_color_table; -GLEW_VAR_EXPORT GLboolean __GLEW_SUNX_constant_data; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_convolution_border_modes; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_global_alpha; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_mesh_array; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_read_video_pixels; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_slice_accum; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_triangle_list; -GLEW_VAR_EXPORT GLboolean __GLEW_SUN_vertex; -GLEW_VAR_EXPORT GLboolean __GLEW_WIN_phong_shading; -GLEW_VAR_EXPORT GLboolean __GLEW_WIN_specular_fog; -GLEW_VAR_EXPORT GLboolean __GLEW_WIN_swap_hint; - -#ifdef GLEW_MX -}; /* GLEWContextStruct */ -#endif /* GLEW_MX */ - -/* ------------------------------------------------------------------------- */ - -/* error codes */ -#define GLEW_OK 0 -#define GLEW_NO_ERROR 0 -#define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */ -#define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* Need at least OpenGL 1.1 */ -#define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* Need at least GLX 1.2 */ - -/* string codes */ -#define GLEW_VERSION 1 -#define GLEW_VERSION_MAJOR 2 -#define GLEW_VERSION_MINOR 3 -#define GLEW_VERSION_MICRO 4 - -/* API */ -#ifdef GLEW_MX - -typedef struct GLEWContextStruct GLEWContext; -GLEWAPI GLenum glewContextInit (GLEWContext* ctx); -GLEWAPI GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name); - -#define glewInit() glewContextInit(glewGetContext()) -#define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x) -#define glewIsExtensionSupported(x) glewIsSupported(x) - -#define GLEW_GET_VAR(x) (*(const GLboolean*)&(glewGetContext()->x)) -#ifdef _WIN32 -# define GLEW_GET_FUN(x) glewGetContext()->x -#else -# define GLEW_GET_FUN(x) x -#endif - -#else /* GLEW_MX */ - -GLEWAPI GLenum glewInit (); -GLEWAPI GLboolean glewIsSupported (const char* name); -#define glewIsExtensionSupported(x) glewIsSupported(x) - -#define GLEW_GET_VAR(x) (*(const GLboolean*)&x) -#define GLEW_GET_FUN(x) x - -#endif /* GLEW_MX */ - -GLEWAPI GLboolean glewExperimental; -GLEWAPI GLboolean glewGetExtension (const char* name); -GLEWAPI const GLubyte* glewGetErrorString (GLenum error); -GLEWAPI const GLubyte* glewGetString (GLenum name); - -#ifdef __cplusplus -} -#endif - -#ifdef GLEW_APIENTRY_DEFINED -#undef GLEW_APIENTRY_DEFINED -#undef APIENTRY -#undef GLAPIENTRY -#define GLAPIENTRY -#endif - -#ifdef GLEW_CALLBACK_DEFINED -#undef GLEW_CALLBACK_DEFINED -#undef CALLBACK -#endif - -#ifdef GLEW_WINGDIAPI_DEFINED -#undef GLEW_WINGDIAPI_DEFINED -#undef WINGDIAPI -#endif - -#undef GLAPI -/* #undef GLEWAPI */ - -#endif /* __glew_h__ */ diff --git a/Demos/Glut/GL/glext.h b/Demos/Glut/GL/glext.h deleted file mode 100644 index 10c2bc0f8..000000000 --- a/Demos/Glut/GL/glext.h +++ /dev/null @@ -1,3326 +0,0 @@ -#ifndef __glext_h_ -#define __glext_h_ - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright 1998, 1999, 2000, 2001, NVIDIA Corporation. -** All rights Reserved. -** -** THE INFORMATION CONTAINED HEREIN IS PROPRIETARY AND CONFIDENTIAL TO -** NVIDIA, CORPORATION. USE, REPRODUCTION OR DISCLOSURE TO ANY THIRD PARTY -** IS SUBJECT TO WRITTEN PRE-APPROVAL BY NVIDIA, CORPORATION. -*/ - -/* -** 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-2000 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__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif - -/*************************************************************/ - -/* Header file version number, required by OpenGL ABI for Linux */ -#define GL_GLEXT_VERSION 6 - -#ifndef GL_VERSION_1_2 -#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_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_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_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_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_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 -#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_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_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_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 0x806B -#define GL_PACK_SKIP_IMAGES_EXT 0x806B -#define GL_PACK_IMAGE_HEIGHT 0x806C -#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C -#define GL_UNPACK_SKIP_IMAGES 0x806D -#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D -#define GL_UNPACK_IMAGE_HEIGHT 0x806E -#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E -#define GL_TEXTURE_3D 0x806F -#define GL_TEXTURE_3D_EXT 0x806F -#define GL_PROXY_TEXTURE_3D 0x8070 -#define GL_PROXY_TEXTURE_3D_EXT 0x8070 -#define GL_TEXTURE_DEPTH 0x8071 -#define GL_TEXTURE_DEPTH_EXT 0x8071 -#define GL_TEXTURE_WRAP_R 0x8072 -#define GL_TEXTURE_WRAP_R_EXT 0x8072 -#define GL_MAX_3D_TEXTURE_SIZE 0x8073 -#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_BUM_SGIX 0x8139 -#define GL_PIXEL_TEX_BUM_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_SGIS_point_parameters -#define GL_POINT_SIZE_MIN_EXT 0x8126 -#define GL_POINT_SIZE_MIN_SGIS 0x8126 -#define GL_POINT_SIZE_MAX_EXT 0x8127 -#define GL_POINT_SIZE_MAX_SGIS 0x8127 -#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 -#define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128 -#define GL_DISTANCE_ATTENUATION_EXT 0x8129 -#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_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_EXT_bgra -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 -#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_SOURCE3_RGB_EXT 0x8583 -#define GL_SOURCE4_RGB_EXT 0x8584 -#define GL_SOURCE5_RGB_EXT 0x8585 -#define GL_SOURCE6_RGB_EXT 0x8586 -#define GL_SOURCE7_RGB_EXT 0x8587 -#define GL_SOURCE0_ALPHA_EXT 0x8588 -#define GL_SOURCE1_ALPHA_EXT 0x8589 -#define GL_SOURCE2_ALPHA_EXT 0x858A -#define GL_SOURCE3_ALPHA_EXT 0x858B -#define GL_SOURCE4_ALPHA_EXT 0x858C -#define GL_SOURCE5_ALPHA_EXT 0x858D -#define GL_SOURCE6_ALPHA_EXT 0x858E -#define GL_SOURCE7_ALPHA_EXT 0x858F -#define GL_OPERAND0_RGB_EXT 0x8590 -#define GL_OPERAND1_RGB_EXT 0x8591 -#define GL_OPERAND2_RGB_EXT 0x8592 -#define GL_OPERAND3_RGB_EXT 0x8593 -#define GL_OPERAND4_RGB_EXT 0x8594 -#define GL_OPERAND5_RGB_EXT 0x8595 -#define GL_OPERAND6_RGB_EXT 0x8596 -#define GL_OPERAND7_RGB_EXT 0x8597 -#define GL_OPERAND0_ALPHA_EXT 0x8598 -#define GL_OPERAND1_ALPHA_EXT 0x8599 -#define GL_OPERAND2_ALPHA_EXT 0x859A -#define GL_OPERAND3_ALPHA_EXT 0x859B -#define GL_OPERAND4_ALPHA_EXT 0x859C -#define GL_OPERAND5_ALPHA_EXT 0x859D -#define GL_OPERAND6_ALPHA_EXT 0x859E -#define GL_OPERAND7_ALPHA_EXT 0x859F -#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 0x01 -#define GL_REPLACE_MIDDLE_SUN 0x02 -#define GL_REPLACE_OLDEST_SUN 0x03 -#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_MODELVIEW_MATRIX1_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_vertex_array_range2 -#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 -#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 -#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_VERSION_1_2 -#define GL_VERSION_1_2 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf); -extern void APIENTRY glBlendEquation (GLenum); -extern void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); -extern void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *); -extern void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint, GLsizei); -extern void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetColorTableParameterfv (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *); -extern void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint, GLsizei); -extern void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat); -extern void APIENTRY glConvolutionParameterfv (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint); -extern void APIENTRY glConvolutionParameteriv (GLenum, GLenum, const GLint *); -extern void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint, GLint, GLsizei); -extern void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); -extern void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *); -extern void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); -extern void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); -extern void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *); -extern void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *); -extern void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean); -extern void APIENTRY glMinmax (GLenum, GLenum, GLboolean); -extern void APIENTRY glResetHistogram (GLenum); -extern void APIENTRY glResetMinmax (GLenum); -extern void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -typedef void (APIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode); -typedef void (APIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); -typedef void (APIENTRY * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); -typedef void (APIENTRY * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); -typedef void (APIENTRY * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column); -typedef void (APIENTRY * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRY * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRY * PFNGLRESETHISTOGRAMPROC) (GLenum target); -typedef void (APIENTRY * PFNGLRESETMINMAXPROC) (GLenum target); -typedef void (APIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRY * 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 (APIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif - -#ifndef GL_ARB_multitexture -#define GL_ARB_multitexture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glActiveTextureARB (GLenum); -extern void APIENTRY glClientActiveTextureARB (GLenum); -extern void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble); -extern void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *); -extern void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat); -extern void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *); -extern void APIENTRY glMultiTexCoord1iARB (GLenum, GLint); -extern void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *); -extern void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort); -extern void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *); -extern void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble); -extern void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *); -extern void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat); -extern void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *); -extern void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint); -extern void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *); -extern void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort); -extern void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *); -extern void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble, GLdouble); -extern void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *); -extern void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *); -extern void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint); -extern void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *); -extern void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort, GLshort); -extern void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *); -extern void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -extern void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *); -extern void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *); -extern void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint, GLint); -extern void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *); -extern void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort, GLshort, GLshort); -extern void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s); -typedef void (APIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t); -typedef void (APIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r); -typedef void (APIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v); -#endif - -#ifndef GL_ARB_transpose_matrix -#define GL_ARB_transpose_matrix 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *); -extern void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *); -extern void APIENTRY glMultTransposeMatrixfARB (const GLfloat *); -extern void APIENTRY glMultTransposeMatrixdARB (const GLdouble *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRY * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -typedef void (APIENTRY * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m); -typedef void (APIENTRY * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m); -#endif - -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glSampleCoverageARB (GLclampf, GLboolean); -extern void APIENTRY glSamplePassARB (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRY * PFNGLSAMPLEPASSARBPROC) (GLenum pass); -#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 -extern void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -extern void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -extern void APIENTRY glCompressedTexImage1DARB (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -extern void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -extern void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -extern void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -extern void APIENTRY glGetCompressedTexImageARB (GLenum, GLint, void *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRY * 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 (APIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); -typedef void (APIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void *img); -#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 -extern void APIENTRY glBlendColorEXT (GLclampf, GLclampf, GLclampf, GLclampf); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glPolygonOffsetEXT (GLfloat, GLfloat); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRY * 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 -extern void APIENTRY glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *); -extern void APIENTRY glTexFilterFuncSGIS (GLenum, GLenum, GLsizei, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights); -typedef void (APIENTRY * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); -#endif - -#ifndef GL_EXT_subtexture -#define GL_EXT_subtexture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRY * 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 -extern void APIENTRY glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -extern void APIENTRY glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -extern void APIENTRY glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint, GLint, GLsizei); -extern void APIENTRY glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -extern void APIENTRY glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRY * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRY * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRY * 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 -extern void APIENTRY glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetHistogramParameterfvEXT (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetHistogramParameterivEXT (GLenum, GLenum, GLint *); -extern void APIENTRY glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *); -extern void APIENTRY glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean); -extern void APIENTRY glMinmaxEXT (GLenum, GLenum, GLboolean); -extern void APIENTRY glResetHistogramEXT (GLenum); -extern void APIENTRY glResetMinmaxEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values); -typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -typedef void (APIENTRY * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink); -typedef void (APIENTRY * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target); -typedef void (APIENTRY * PFNGLRESETMINMAXEXTPROC) (GLenum target); -#endif - -#ifndef GL_EXT_convolution -#define GL_EXT_convolution 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glConvolutionParameterfEXT (GLenum, GLenum, GLfloat); -extern void APIENTRY glConvolutionParameterfvEXT (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glConvolutionParameteriEXT (GLenum, GLenum, GLint); -extern void APIENTRY glConvolutionParameterivEXT (GLenum, GLenum, const GLint *); -extern void APIENTRY glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint, GLint, GLsizei); -extern void APIENTRY glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); -extern void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetConvolutionParameterfvEXT (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetConvolutionParameterivEXT (GLenum, GLenum, GLint *); -extern void APIENTRY glGetSeparableFilterEXT (GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); -extern void APIENTRY glSeparableFilter2DEXT (GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params); -typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span); -typedef void (APIENTRY * 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 -extern void APIENTRY glColorTableSGI (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glColorTableParameterfvSGI (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glColorTableParameterivSGI (GLenum, GLenum, const GLint *); -extern void APIENTRY glCopyColorTableSGI (GLenum, GLenum, GLint, GLint, GLsizei); -extern void APIENTRY glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetColorTableParameterfvSGI (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetColorTableParameterivSGI (GLenum, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -typedef void (APIENTRY * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params); -#endif - -#ifndef GL_SGIX_pixel_texture -#define GL_SGIX_pixel_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glPixelTexGenSGIX (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode); -#endif - -#ifndef GL_SGIS_pixel_texture -#define GL_SGIS_pixel_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glPixelTexGenParameteriSGIS (GLenum, GLint); -extern void APIENTRY glPixelTexGenParameterivSGIS (GLenum, const GLint *); -extern void APIENTRY glPixelTexGenParameterfSGIS (GLenum, GLfloat); -extern void APIENTRY glPixelTexGenParameterfvSGIS (GLenum, const GLfloat *); -extern void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum, GLint *); -extern void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum pname, GLfloat *params); -#endif - -#ifndef GL_SGIS_texture4D -#define GL_SGIS_texture4D 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 (APIENTRY * 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 -extern GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei, const GLuint *, GLboolean *); -extern void APIENTRY glBindTextureEXT (GLenum, GLuint); -extern void APIENTRY glDeleteTexturesEXT (GLsizei, const GLuint *); -extern void APIENTRY glGenTexturesEXT (GLsizei, GLuint *); -extern GLboolean APIENTRY glIsTextureEXT (GLuint); -extern void APIENTRY glPrioritizeTexturesEXT (GLsizei, const GLuint *, const GLclampf *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLboolean (APIENTRY * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); -typedef void (APIENTRY * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture); -typedef void (APIENTRY * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures); -typedef void (APIENTRY * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures); -typedef GLboolean (APIENTRY * PFNGLISTEXTUREEXTPROC) (GLuint texture); -typedef void (APIENTRY * 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 -extern void APIENTRY glDetailTexFuncSGIS (GLenum, GLsizei, const GLfloat *); -extern void APIENTRY glGetDetailTexFuncSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRY * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points); -#endif - -#ifndef GL_SGIS_sharpen_texture -#define GL_SGIS_sharpen_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glSharpenTexFuncSGIS (GLenum, GLsizei, const GLfloat *); -extern void APIENTRY glGetSharpenTexFuncSGIS (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points); -typedef void (APIENTRY * 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 -extern void APIENTRY glSampleMaskSGIS (GLclampf, GLboolean); -extern void APIENTRY glSamplePatternSGIS (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRY * 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 -extern void APIENTRY glArrayElementEXT (GLint); -extern void APIENTRY glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -extern void APIENTRY glDrawArraysEXT (GLenum, GLint, GLsizei); -extern void APIENTRY glEdgeFlagPointerEXT (GLsizei, GLsizei, const GLboolean *); -extern void APIENTRY glGetPointervEXT (GLenum, GLvoid* *); -extern void APIENTRY glIndexPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); -extern void APIENTRY glNormalPointerEXT (GLenum, GLsizei, GLsizei, const GLvoid *); -extern void APIENTRY glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -extern void APIENTRY glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i); -typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer); -typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params); -typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer); -typedef void (APIENTRY * 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 -extern void APIENTRY glBlendEquationEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glSpriteParameterfSGIX (GLenum, GLfloat); -extern void APIENTRY glSpriteParameterfvSGIX (GLenum, const GLfloat *); -extern void APIENTRY glSpriteParameteriSGIX (GLenum, GLint); -extern void APIENTRY glSpriteParameterivSGIX (GLenum, const GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * 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 -extern void APIENTRY glPointParameterfEXT (GLenum, GLfloat); -extern void APIENTRY glPointParameterfvEXT (GLenum, const GLfloat *); -extern void APIENTRY glPointParameterfSGIS (GLenum, GLfloat); -extern void APIENTRY glPointParameterfvSGIS (GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLPOINTPARAMETERFSGISPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLPOINTPARAMETERFVSGISPROC) (GLenum pname, const GLfloat *params); -#endif - -#ifndef GL_SGIX_instruments -#define GL_SGIX_instruments 1 -#ifdef GL_GLEXT_PROTOTYPES -extern GLint APIENTRY glGetInstrumentsSGIX (void); -extern void APIENTRY glInstrumentsBufferSGIX (GLsizei, GLint *); -extern GLint APIENTRY glPollInstrumentsSGIX (GLint *); -extern void APIENTRY glReadInstrumentsSGIX (GLint); -extern void APIENTRY glStartInstrumentsSGIX (void); -extern void APIENTRY glStopInstrumentsSGIX (GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef GLint (APIENTRY * PFNGLGETINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRY * PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buffer); -typedef GLint (APIENTRY * PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *marker_p); -typedef void (APIENTRY * PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker); -typedef void (APIENTRY * PFNGLSTARTINSTRUMENTSSGIXPROC) (void); -typedef void (APIENTRY * 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 -extern void APIENTRY glFrameZoomSGIX (GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFRAMEZOOMSGIXPROC) (GLint factor); -#endif - -#ifndef GL_SGIX_tag_sample_buffer -#define GL_SGIX_tag_sample_buffer 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glTagSampleBufferSGIX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void); -#endif - -#ifndef GL_SGIX_reference_plane -#define GL_SGIX_reference_plane 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glReferencePlaneSGIX (const GLdouble *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *equation); -#endif - -#ifndef GL_SGIX_flush_raster -#define GL_SGIX_flush_raster 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glFlushRasterSGIX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glFogFuncSGIS (GLsizei, const GLfloat *); -extern void APIENTRY glGetFogFuncSGIS (const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFOGFUNCSGISPROC) (GLsizei n, const GLfloat *points); -typedef void (APIENTRY * PFNGLGETFOGFUNCSGISPROC) (const 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 -extern void APIENTRY glImageTransformParameteriHP (GLenum, GLenum, GLint); -extern void APIENTRY glImageTransformParameterfHP (GLenum, GLenum, GLfloat); -extern void APIENTRY glImageTransformParameterivHP (GLenum, GLenum, const GLint *); -extern void APIENTRY glImageTransformParameterfvHP (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glGetImageTransformParameterivHP (GLenum, GLenum, GLint *); -extern void APIENTRY glGetImageTransformParameterfvHP (GLenum, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glColorSubTableEXT (GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glCopyColorSubTableEXT (GLenum, GLsizei, GLint, GLint, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data); -typedef void (APIENTRY * 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 -extern void APIENTRY glHintPGI (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLHINTPGIPROC) (GLenum target, GLint mode); -#endif - -#ifndef GL_EXT_paletted_texture -#define GL_EXT_paletted_texture 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glColorTableEXT (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -extern void APIENTRY glGetColorTableEXT (GLenum, GLenum, GLenum, GLvoid *); -extern void APIENTRY glGetColorTableParameterivEXT (GLenum, GLenum, GLint *); -extern void APIENTRY glGetColorTableParameterfvEXT (GLenum, GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table); -typedef void (APIENTRY * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *data); -typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glGetListParameterfvSGIX (GLuint, GLenum, GLfloat *); -extern void APIENTRY glGetListParameterivSGIX (GLuint, GLenum, GLint *); -extern void APIENTRY glListParameterfSGIX (GLuint, GLenum, GLfloat); -extern void APIENTRY glListParameterfvSGIX (GLuint, GLenum, const GLfloat *); -extern void APIENTRY glListParameteriSGIX (GLuint, GLenum, GLint); -extern void APIENTRY glListParameterivSGIX (GLuint, GLenum, const GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum pname, GLint param); -typedef void (APIENTRY * 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 -extern void APIENTRY glIndexMaterialEXT (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode); -#endif - -#ifndef GL_EXT_index_func -#define GL_EXT_index_func 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glIndexFuncEXT (GLenum, GLclampf); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glLockArraysEXT (GLint, GLsizei); -extern void APIENTRY glUnlockArraysEXT (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count); -typedef void (APIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void); -#endif - -#ifndef GL_EXT_cull_vertex -#define GL_EXT_cull_vertex 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glCullParameterdvEXT (GLenum, GLdouble *); -extern void APIENTRY glCullParameterfvEXT (GLenum, GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glFragmentColorMaterialSGIX (GLenum, GLenum); -extern void APIENTRY glFragmentLightfSGIX (GLenum, GLenum, GLfloat); -extern void APIENTRY glFragmentLightfvSGIX (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glFragmentLightiSGIX (GLenum, GLenum, GLint); -extern void APIENTRY glFragmentLightivSGIX (GLenum, GLenum, const GLint *); -extern void APIENTRY glFragmentLightModelfSGIX (GLenum, GLfloat); -extern void APIENTRY glFragmentLightModelfvSGIX (GLenum, const GLfloat *); -extern void APIENTRY glFragmentLightModeliSGIX (GLenum, GLint); -extern void APIENTRY glFragmentLightModelivSGIX (GLenum, const GLint *); -extern void APIENTRY glFragmentMaterialfSGIX (GLenum, GLenum, GLfloat); -extern void APIENTRY glFragmentMaterialfvSGIX (GLenum, GLenum, const GLfloat *); -extern void APIENTRY glFragmentMaterialiSGIX (GLenum, GLenum, GLint); -extern void APIENTRY glFragmentMaterialivSGIX (GLenum, GLenum, const GLint *); -extern void APIENTRY glGetFragmentLightfvSGIX (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetFragmentLightivSGIX (GLenum, GLenum, GLint *); -extern void APIENTRY glGetFragmentMaterialfvSGIX (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetFragmentMaterialivSGIX (GLenum, GLenum, GLint *); -extern void APIENTRY glLightEnviSGIX (GLenum, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glDrawRangeElementsEXT (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * 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 -extern void APIENTRY glApplyTextureEXT (GLenum); -extern void APIENTRY glTextureLightEXT (GLenum); -extern void APIENTRY glTextureMaterialEXT (GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode); -typedef void (APIENTRY * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname); -typedef void (APIENTRY * 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_INTEL_parallel_arrays -#define GL_INTEL_parallel_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glVertexPointervINTEL (GLint, GLenum, const GLvoid* *); -extern void APIENTRY glNormalPointervINTEL (GLenum, const GLvoid* *); -extern void APIENTRY glColorPointervINTEL (GLint, GLenum, const GLvoid* *); -extern void APIENTRY glTexCoordPointervINTEL (GLint, GLenum, const GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); -typedef void (APIENTRY * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const GLvoid* *pointer); -typedef void (APIENTRY * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const GLvoid* *pointer); -typedef void (APIENTRY * 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 -extern void APIENTRY glPixelTransformParameteriEXT (GLenum, GLenum, GLint); -extern void APIENTRY glPixelTransformParameterfEXT (GLenum, GLenum, GLfloat); -extern void APIENTRY glPixelTransformParameterivEXT (GLenum, GLenum, const GLint *); -extern void APIENTRY glPixelTransformParameterfvEXT (GLenum, GLenum, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLPIXELTRANSFORMPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLPIXELTRANSFORMPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glSecondaryColor3bEXT (GLbyte, GLbyte, GLbyte); -extern void APIENTRY glSecondaryColor3bvEXT (const GLbyte *); -extern void APIENTRY glSecondaryColor3dEXT (GLdouble, GLdouble, GLdouble); -extern void APIENTRY glSecondaryColor3dvEXT (const GLdouble *); -extern void APIENTRY glSecondaryColor3fEXT (GLfloat, GLfloat, GLfloat); -extern void APIENTRY glSecondaryColor3fvEXT (const GLfloat *); -extern void APIENTRY glSecondaryColor3iEXT (GLint, GLint, GLint); -extern void APIENTRY glSecondaryColor3ivEXT (const GLint *); -extern void APIENTRY glSecondaryColor3sEXT (GLshort, GLshort, GLshort); -extern void APIENTRY glSecondaryColor3svEXT (const GLshort *); -extern void APIENTRY glSecondaryColor3ubEXT (GLubyte, GLubyte, GLubyte); -extern void APIENTRY glSecondaryColor3ubvEXT (const GLubyte *); -extern void APIENTRY glSecondaryColor3uiEXT (GLuint, GLuint, GLuint); -extern void APIENTRY glSecondaryColor3uivEXT (const GLuint *); -extern void APIENTRY glSecondaryColor3usEXT (GLushort, GLushort, GLushort); -extern void APIENTRY glSecondaryColor3usvEXT (const GLushort *); -extern void APIENTRY glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DEXTPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IEXTPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3IVEXTPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SEXTPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UBVEXTPROC) (const GLubyte *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIEXTPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3UIVEXTPROC) (const GLuint *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USEXTPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRY * PFNGLSECONDARYCOLOR3USVEXTPROC) (const GLushort *v); -typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); -#endif - -#ifndef GL_EXT_texture_perturb_normal -#define GL_EXT_texture_perturb_normal 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glTextureNormalEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTEXTURENORMALEXTPROC) (GLenum mode); -#endif - -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei); -extern void APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRY * 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 -extern void APIENTRY glFogCoordfEXT (GLfloat); -extern void APIENTRY glFogCoordfvEXT (const GLfloat *); -extern void APIENTRY glFogCoorddEXT (GLdouble); -extern void APIENTRY glFogCoorddvEXT (const GLdouble *); -extern void APIENTRY glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFOGCOORDFEXTPROC) (GLfloat coord); -typedef void (APIENTRY * PFNGLFOGCOORDFVEXTPROC) (const GLfloat *coord); -typedef void (APIENTRY * PFNGLFOGCOORDDEXTPROC) (GLdouble coord); -typedef void (APIENTRY * PFNGLFOGCOORDDVEXTPROC) (const GLdouble *coord); -typedef void (APIENTRY * 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 -extern void APIENTRY glTangent3bEXT (GLbyte, GLbyte, GLbyte); -extern void APIENTRY glTangent3bvEXT (const GLbyte *); -extern void APIENTRY glTangent3dEXT (GLdouble, GLdouble, GLdouble); -extern void APIENTRY glTangent3dvEXT (const GLdouble *); -extern void APIENTRY glTangent3fEXT (GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTangent3fvEXT (const GLfloat *); -extern void APIENTRY glTangent3iEXT (GLint, GLint, GLint); -extern void APIENTRY glTangent3ivEXT (const GLint *); -extern void APIENTRY glTangent3sEXT (GLshort, GLshort, GLshort); -extern void APIENTRY glTangent3svEXT (const GLshort *); -extern void APIENTRY glBinormal3bEXT (GLbyte, GLbyte, GLbyte); -extern void APIENTRY glBinormal3bvEXT (const GLbyte *); -extern void APIENTRY glBinormal3dEXT (GLdouble, GLdouble, GLdouble); -extern void APIENTRY glBinormal3dvEXT (const GLdouble *); -extern void APIENTRY glBinormal3fEXT (GLfloat, GLfloat, GLfloat); -extern void APIENTRY glBinormal3fvEXT (const GLfloat *); -extern void APIENTRY glBinormal3iEXT (GLint, GLint, GLint); -extern void APIENTRY glBinormal3ivEXT (const GLint *); -extern void APIENTRY glBinormal3sEXT (GLshort, GLshort, GLshort); -extern void APIENTRY glBinormal3svEXT (const GLshort *); -extern void APIENTRY glTangentPointerEXT (GLenum, GLsizei, const GLvoid *); -extern void APIENTRY glBinormalPointerEXT (GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTANGENT3BEXTPROC) (GLbyte tx, GLbyte ty, GLbyte tz); -typedef void (APIENTRY * PFNGLTANGENT3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRY * PFNGLTANGENT3DEXTPROC) (GLdouble tx, GLdouble ty, GLdouble tz); -typedef void (APIENTRY * PFNGLTANGENT3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLTANGENT3FEXTPROC) (GLfloat tx, GLfloat ty, GLfloat tz); -typedef void (APIENTRY * PFNGLTANGENT3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLTANGENT3IEXTPROC) (GLint tx, GLint ty, GLint tz); -typedef void (APIENTRY * PFNGLTANGENT3IVEXTPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLTANGENT3SEXTPROC) (GLshort tx, GLshort ty, GLshort tz); -typedef void (APIENTRY * PFNGLTANGENT3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRY * PFNGLBINORMAL3BEXTPROC) (GLbyte bx, GLbyte by, GLbyte bz); -typedef void (APIENTRY * PFNGLBINORMAL3BVEXTPROC) (const GLbyte *v); -typedef void (APIENTRY * PFNGLBINORMAL3DEXTPROC) (GLdouble bx, GLdouble by, GLdouble bz); -typedef void (APIENTRY * PFNGLBINORMAL3DVEXTPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLBINORMAL3FEXTPROC) (GLfloat bx, GLfloat by, GLfloat bz); -typedef void (APIENTRY * PFNGLBINORMAL3FVEXTPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLBINORMAL3IEXTPROC) (GLint bx, GLint by, GLint bz); -typedef void (APIENTRY * PFNGLBINORMAL3IVEXTPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLBINORMAL3SEXTPROC) (GLshort bx, GLshort by, GLshort bz); -typedef void (APIENTRY * PFNGLBINORMAL3SVEXTPROC) (const GLshort *v); -typedef void (APIENTRY * PFNGLTANGENTPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * 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 -extern void APIENTRY glFinishTextureSUNX (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFINISHTEXTURESUNXPROC) (void); -#endif - -#ifndef GL_SUN_global_alpha -#define GL_SUN_global_alpha 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glGlobalAlphaFactorbSUN (GLbyte); -extern void APIENTRY glGlobalAlphaFactorsSUN (GLshort); -extern void APIENTRY glGlobalAlphaFactoriSUN (GLint); -extern void APIENTRY glGlobalAlphaFactorfSUN (GLfloat); -extern void APIENTRY glGlobalAlphaFactordSUN (GLdouble); -extern void APIENTRY glGlobalAlphaFactorubSUN (GLubyte); -extern void APIENTRY glGlobalAlphaFactorusSUN (GLushort); -extern void APIENTRY glGlobalAlphaFactoruiSUN (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORBSUNPROC) (GLbyte factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORSSUNPROC) (GLshort factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORISUNPROC) (GLint factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORFSUNPROC) (GLfloat factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORDSUNPROC) (GLdouble factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUBSUNPROC) (GLubyte factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUSSUNPROC) (GLushort factor); -typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUISUNPROC) (GLuint factor); -#endif - -#ifndef GL_SUN_triangle_list -#define GL_SUN_triangle_list 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glReplacementCodeuiSUN (GLuint); -extern void APIENTRY glReplacementCodeusSUN (GLushort); -extern void APIENTRY glReplacementCodeubSUN (GLubyte); -extern void APIENTRY glReplacementCodeuivSUN (const GLuint *); -extern void APIENTRY glReplacementCodeusvSUN (const GLushort *); -extern void APIENTRY glReplacementCodeubvSUN (const GLubyte *); -extern void APIENTRY glReplacementCodePointerSUN (GLenum, GLsizei, const GLvoid* *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUISUNPROC) (GLuint code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUSSUNPROC) (GLushort code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUBSUNPROC) (GLubyte code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVSUNPROC) (const GLuint *code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUSVSUNPROC) (const GLushort *code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUBVSUNPROC) (const GLubyte *code); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEPOINTERSUNPROC) (GLenum type, GLsizei stride, const GLvoid* *pointer); -#endif - -#ifndef GL_SUN_vertex -#define GL_SUN_vertex 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glColor4ubVertex2fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat); -extern void APIENTRY glColor4ubVertex2fvSUN (const GLubyte *, const GLfloat *); -extern void APIENTRY glColor4ubVertex3fSUN (GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glColor4ubVertex3fvSUN (const GLubyte *, const GLfloat *); -extern void APIENTRY glColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glColor3fVertex3fvSUN (const GLfloat *, const GLfloat *); -extern void APIENTRY glNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *); -extern void APIENTRY glColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord2fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord2fVertex3fvSUN (const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord4fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord4fVertex4fvSUN (const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord2fColor4ubVertex3fSUN (GLfloat, GLfloat, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord2fColor4ubVertex3fvSUN (const GLfloat *, const GLubyte *, const GLfloat *); -extern void APIENTRY glTexCoord2fColor3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord2fColor3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord2fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord2fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiVertex3fvSUN (const GLenum *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN (GLenum, GLubyte, GLubyte, GLubyte, GLubyte, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN (const GLenum *, const GLubyte *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiColor3fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *, const GLfloat *); -extern void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLenum, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLenum *, const GLfloat *, const GLfloat *, const GLfloat *, const GLfloat *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX2FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX2FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX3FSUNPROC) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX3FVSUNPROC) (const GLubyte *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLCOLOR3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLNORMAL3FVERTEX3FSUNPROC) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLTEXCOORD2FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLTEXCOORD2FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRY * PFNGLTEXCOORD4FVERTEX4FSUNPROC) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * PFNGLTEXCOORD4FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC) (const GLfloat *tc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * 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 (APIENTRY * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * 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 (APIENTRY * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC) (GLenum rc, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC) (GLenum rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC) (const GLenum *rc, const GLubyte *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC) (GLenum rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *c, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC) (GLenum rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLenum rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC) (GLenum rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *tc, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC) (GLenum rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC) (const GLenum *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC) (GLenum 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 (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC) (const GLenum *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 -extern void APIENTRY glBlendFuncSeparateEXT (GLenum, GLenum, GLenum, GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLBLENDFUNCSEPARATEEXTPROC) (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 -extern void APIENTRY glVertexWeightfEXT (GLfloat); -extern void APIENTRY glVertexWeightfvEXT (const GLfloat *); -extern void APIENTRY glVertexWeightPointerEXT (GLsizei, GLenum, GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight); -typedef void (APIENTRY * PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight); -typedef void (APIENTRY * 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 -extern void APIENTRY glFlushVertexArrayRangeNV (void); -extern void APIENTRY glVertexArrayRangeNV (GLsizei, const GLvoid *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void); -typedef void (APIENTRY * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei size, const GLvoid *pointer); -#endif - -#ifndef GL_NV_vertex_array_range2 -#define GL_NV_vertex_array_range2 1 -#endif - -#ifndef GL_NV_register_combiners -#define GL_NV_register_combiners 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glCombinerParameterfvNV (GLenum, const GLfloat *); -extern void APIENTRY glCombinerParameterfNV (GLenum, GLfloat); -extern void APIENTRY glCombinerParameterivNV (GLenum, const GLint *); -extern void APIENTRY glCombinerParameteriNV (GLenum, GLint); -extern void APIENTRY glCombinerInputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); -extern void APIENTRY glCombinerOutputNV (GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); -extern void APIENTRY glFinalCombinerInputNV (GLenum, GLenum, GLenum, GLenum); -extern void APIENTRY glGetCombinerInputParameterfvNV (GLenum, GLenum, GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetCombinerInputParameterivNV (GLenum, GLenum, GLenum, GLenum, GLint *); -extern void APIENTRY glGetCombinerOutputParameterfvNV (GLenum, GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetCombinerOutputParameterivNV (GLenum, GLenum, GLenum, GLint *); -extern void APIENTRY glGetFinalCombinerInputParameterfvNV (GLenum, GLenum, GLfloat *); -extern void APIENTRY glGetFinalCombinerInputParameterivNV (GLenum, GLenum, GLint *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRY * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param); -typedef void (APIENTRY * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRY * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -typedef void (APIENTRY * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -typedef void (APIENTRY * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat *params); -typedef void (APIENTRY * 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 -extern void APIENTRY glResizeBuffersMESA (void); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLRESIZEBUFFERSMESAPROC) (void); -#endif - -#ifndef GL_MESA_window_pos -#define GL_MESA_window_pos 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glWindowPos2dMESA (GLdouble, GLdouble); -extern void APIENTRY glWindowPos2dvMESA (const GLdouble *); -extern void APIENTRY glWindowPos2fMESA (GLfloat, GLfloat); -extern void APIENTRY glWindowPos2fvMESA (const GLfloat *); -extern void APIENTRY glWindowPos2iMESA (GLint, GLint); -extern void APIENTRY glWindowPos2ivMESA (const GLint *); -extern void APIENTRY glWindowPos2sMESA (GLshort, GLshort); -extern void APIENTRY glWindowPos2svMESA (const GLshort *); -extern void APIENTRY glWindowPos3dMESA (GLdouble, GLdouble, GLdouble); -extern void APIENTRY glWindowPos3dvMESA (const GLdouble *); -extern void APIENTRY glWindowPos3fMESA (GLfloat, GLfloat, GLfloat); -extern void APIENTRY glWindowPos3fvMESA (const GLfloat *); -extern void APIENTRY glWindowPos3iMESA (GLint, GLint, GLint); -extern void APIENTRY glWindowPos3ivMESA (const GLint *); -extern void APIENTRY glWindowPos3sMESA (GLshort, GLshort, GLshort); -extern void APIENTRY glWindowPos3svMESA (const GLshort *); -extern void APIENTRY glWindowPos4dMESA (GLdouble, GLdouble, GLdouble, GLdouble); -extern void APIENTRY glWindowPos4dvMESA (const GLdouble *); -extern void APIENTRY glWindowPos4fMESA (GLfloat, GLfloat, GLfloat, GLfloat); -extern void APIENTRY glWindowPos4fvMESA (const GLfloat *); -extern void APIENTRY glWindowPos4iMESA (GLint, GLint, GLint, GLint); -extern void APIENTRY glWindowPos4ivMESA (const GLint *); -extern void APIENTRY glWindowPos4sMESA (GLshort, GLshort, GLshort, GLshort); -extern void APIENTRY glWindowPos4svMESA (const GLshort *); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRY * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRY * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y); -typedef void (APIENTRY * PFNGLWINDOWPOS2IVMESAPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y); -typedef void (APIENTRY * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *v); -typedef void (APIENTRY * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRY * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRY * PFNGLWINDOWPOS3IVMESAPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *v); -typedef void (APIENTRY * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRY * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *v); -typedef void (APIENTRY * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *v); -typedef void (APIENTRY * PFNGLWINDOWPOS4IMESAPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY * PFNGLWINDOWPOS4IVMESAPROC) (const GLint *v); -typedef void (APIENTRY * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRY * 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 -extern void APIENTRY glMultiModeDrawArraysIBM (GLenum, const GLint *, const GLsizei *, GLsizei, GLint); -extern void APIENTRY glMultiModeDrawElementsIBM (const GLenum *, const GLsizei *, GLenum, const GLvoid* *, GLsizei, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLMULTIMODEDRAWARRAYSIBMPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -typedef void (APIENTRY * PFNGLMULTIMODEDRAWELEMENTSIBMPROC) (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, GLint modestride); -#endif - -#ifndef GL_IBM_vertex_array_lists -#define GL_IBM_vertex_array_lists 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glSecondaryColorPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glEdgeFlagPointerListIBM (GLint, const GLboolean* *, GLint); -extern void APIENTRY glFogCoordPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glIndexPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glNormalPointerListIBM (GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glTexCoordPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -extern void APIENTRY glVertexPointerListIBM (GLint, GLenum, GLint, const GLvoid* *, GLint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLSECONDARYCOLORPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLEDGEFLAGPOINTERLISTIBMPROC) (GLint stride, const GLboolean* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLFOGCOORDPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLINDEXPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLNORMALPOINTERLISTIBMPROC) (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * PFNGLTEXCOORDPOINTERLISTIBMPROC) (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride); -typedef void (APIENTRY * 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 -extern void APIENTRY glTbufferMask3DFX (GLuint); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask); -#endif - -#ifndef GL_EXT_multisample -#define GL_EXT_multisample 1 -#ifdef GL_GLEXT_PROTOTYPES -extern void APIENTRY glSampleMaskEXT (GLclampf, GLboolean); -extern void APIENTRY glSamplePatternEXT (GLenum); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLSAMPLEMASKEXTPROC) (GLclampf value, GLboolean invert); -typedef void (APIENTRY * PFNGLSAMPLEPATTERNEXTPROC) (GLenum pattern); -#endif - -#ifndef GL_SGI_vertex_preclip -#define GL_SGI_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 -extern void APIENTRY glTextureColorMaskSGIS (GLboolean, GLboolean, GLboolean, GLboolean); -#endif /* GL_GLEXT_PROTOTYPES */ -typedef void (APIENTRY * PFNGLTEXTURECOLORMASKSGISPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -#endif - - - -/* added by Cass -- this part will be auto-generated in the future*/ - -#ifndef GL_EXT_texture_compression_s3tc -#define GL_EXT_texture_compression_s3tc 1 -#endif - -/* Extensions */ -#define GL_ARB_texture_border_clamp 1 -#define GL_ARB_texture_env_combine 1 -#define GL_ARB_texture_env_dot3 1 -#define GL_EXT_texture_env_dot3 1 -#define GL_IBM_texture_mirrored_repeat 1 -#define GL_NV_evaluators 1 -#define GL_NV_fence 1 -#define GL_NV_multisample_filter_hint 1 -#define GL_NV_packed_depth_stencil 1 -#define GL_NV_register_combiners2 1 -#define GL_NV_texture_compression_vtc 1 -#define GL_NV_texture_rectangle 1 -#define GL_NV_texture_shader 1 -#define GL_NV_texture_shader2 1 -#define GL_NV_vertex_program 1 -#define GL_NV_point_sprite 1 -#define GL_NV_occlusion_query 1 - -/* ARB_texture_border_clamp */ -#define GL_CLAMP_TO_BORDER_ARB 0x812D - -/* ARB_texture_env_combine */ -#define GL_COMBINE_ARB 0x8570 -#define GL_COMBINE_RGB_ARB 0x8571 -#define GL_COMBINE_ALPHA_ARB 0x8572 -#define GL_RGB_SCALE_ARB 0x8573 -#define GL_ADD_SIGNED_ARB 0x8574 -#define GL_INTERPOLATE_ARB 0x8575 -#define GL_CONSTANT_ARB 0x8576 -#define GL_PRIMARY_COLOR_ARB 0x8577 -#define GL_PREVIOUS_ARB 0x8578 -#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_SUBTRACT_ARB 0x84E7 - -/* ARB_texture_env_dot3 */ -#define GL_DOT3_RGB_ARB 0x86AE -#define GL_DOT3_RGBA_ARB 0x86AF - -/* EXT_texture_env_dot3 */ -#define GL_DOT3_RGB_EXT 0x8740 -#define GL_DOT3_RGBA_EXT 0x8741 - -/* IBM_texture_mirrored_repeat */ -#define GL_MIRRORED_REPEAT_IBM 0x8370 - -/* 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 - -/* 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 - -/* NV_fence */ -#define GL_ALL_COMPLETED_NV 0x84F2 -#define GL_FENCE_STATUS_NV 0x84F3 -#define GL_FENCE_CONDITION_NV 0x84F4 - -/* 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 - -/* NV_point_sprite */ -#define GL_POINT_SPRITE_NV 0x8861 -#define GL_COORD_REPLACE_NV 0x8862 -#define GL_POINT_SPRITE_R_MODE_NV 0x8863 - -/* 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 - -/* 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_ISOTROPIC_BRDF_NV 0x86EB -#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_3D_NV 0x86EF -#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 - -/* NV_texture_shader2 */ -#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF - -/* NV_register_combiners2 */ -#define GL_PER_STAGE_CONSTANTS_NV 0x8535 - -/* NV_packed_depth_stencil */ -#define GL_DEPTH_STENCIL_NV 0x84F9 -#define GL_UNSIGNED_INT_24_8_NV 0x84FA - -/* NV_multisample_filter_hint */ -#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 - -/* NV_texture_compression_vtc */ - -/* NV_vertex_program */ -typedef GLboolean (APIENTRY * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); -typedef void (APIENTRY * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); -typedef void (APIENTRY * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRY * PFNGLEXECUTEPROGRAMNVPROC) (GLenum target, GLuint id, const GLfloat *params); -typedef void (APIENTRY * PFNGLGENPROGRAMSNVPROC) (GLsizei n, GLuint *programs); -typedef void (APIENTRY * PFNGLGETPROGRAMPARAMETERDVNVPROC) (GLenum target, GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRY * PFNGLGETPROGRAMPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETPROGRAMIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETPROGRAMSTRINGNVPROC) (GLuint id, GLenum pname, GLubyte *program); -typedef void (APIENTRY * PFNGLGETTRACKMATRIXIVNVPROC) (GLenum target, GLuint address, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETVERTEXATTRIBDVNVPROC) (GLuint index, GLenum pname, GLdouble *params); -typedef void (APIENTRY * PFNGLGETVERTEXATTRIBFVNVPROC) (GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETVERTEXATTRIBIVNVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETVERTEXATTRIBPOINTERVNVPROC) (GLuint index, GLenum pname, GLvoid* *pointer); -typedef GLboolean (APIENTRY * PFNGLISPROGRAMNVPROC) (GLuint id); -typedef void (APIENTRY * PFNGLLOADPROGRAMNVPROC) (GLenum target, GLuint id, GLsizei len, const GLubyte *program); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETER4DNVPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETER4DVNVPROC) (GLenum target, GLuint index, const GLdouble *v); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETER4FNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETER4FVNVPROC) (GLenum target, GLuint index, const GLfloat *v); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETERS4DVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRY * PFNGLPROGRAMPARAMETERS4FVNVPROC) (GLenum target, GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRY * PFNGLREQUESTRESIDENTPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); -typedef void (APIENTRY * PFNGLTRACKMATRIXNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); -typedef void (APIENTRY * PFNGLVERTEXATTRIBPOINTERNVPROC) (GLuint index, GLint fsize, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1DNVPROC) (GLuint index, GLdouble x); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1FNVPROC) (GLuint index, GLfloat x); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1SNVPROC) (GLuint index, GLshort x); -typedef void (APIENTRY * PFNGLVERTEXATTRIB1SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2DNVPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2FNVPROC) (GLuint index, GLfloat x, GLfloat y); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2SNVPROC) (GLuint index, GLshort x, GLshort y); -typedef void (APIENTRY * PFNGLVERTEXATTRIB2SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * PFNGLVERTEXATTRIB3SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4DNVPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4DVNVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4FNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4FVNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4SNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4SVNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4UBNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRY * PFNGLVERTEXATTRIB4UBVNVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS1DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS1FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS1SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS2DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS2FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS2SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS3DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS3FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS3SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS4DVNVPROC) (GLuint index, GLsizei count, const GLdouble *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); -typedef void (APIENTRY * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); - -/* NV_evaluators */ -typedef void (APIENTRY * PFNGLMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points); -typedef void (APIENTRY * PFNGLMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * PFNGLMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLGETMAPCONTROLPOINTSNVPROC) (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points); -typedef void (APIENTRY * PFNGLGETMAPPARAMETERIVNVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETMAPPARAMETERFVNVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLGETMAPATTRIBPARAMETERIVNVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETMAPATTRIBPARAMETERFVNVPROC) (GLenum target, GLuint index, GLenum pname, GLfloat *params); -typedef void (APIENTRY * PFNGLEVALMAPSNVPROC) (GLenum target, GLenum mode); - -/* NV_fence */ -typedef void (APIENTRY * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences); -typedef void (APIENTRY * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); -typedef GLboolean (APIENTRY * PFNGLISFENCENVPROC) (GLuint fence); -typedef GLboolean (APIENTRY * PFNGLTESTFENCENVPROC) (GLuint fence); -typedef void (APIENTRY * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLFINISHFENCENVPROC) (GLuint fence); -typedef void (APIENTRY * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition); - -/* NV_occlusion_query */ -typedef void (APIENTRY * PFNGLGENOCCLUSIONQUERIESNVPROC) (GLsizei n, GLuint *ids); -typedef void (APIENTRY * PFNGLDELETEOCCLUSIONQUERIESNVPROC) (GLsizei n, const GLuint *ids); -typedef void (APIENTRY * PFNGLISOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRY * PFNGLBEGINOCCLUSIONQUERYNVPROC) (GLuint id); -typedef void (APIENTRY * PFNGLENDOCCLUSIONQUERYNVPROC) (GLvoid); -typedef void (APIENTRY * PFNGLGETOCCLUSIONQUERYIVNVPROC) (GLuint id, GLenum pname, GLint *params); -typedef void (APIENTRY * PFNGLGETOCCLUSIONQUERYUIVNVPROC) (GLuint id, GLenum pname, GLuint *params); - -/* NV_point_sprite */ -typedef void (APIENTRY * PFNGLPOINTPARAMETERINVPROC) (GLenum pname, int param); -typedef void (APIENTRY * PFNGLPOINTPARAMETERIVNVPROC) (GLenum pname, const int *params); - -/* NV_register_combiners2 */ -typedef void (APIENTRY * PFNGLCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, const GLfloat *params); -typedef void (APIENTRY * PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC) (GLenum stage, GLenum pname, GLfloat *params); - - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/Demos/Glut/GL/glut.h b/Demos/Glut/GL/glut.h deleted file mode 100644 index 5662b6588..000000000 --- a/Demos/Glut/GL/glut.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __GLUT_H__ -#define __GLUT_H__ - -#define FREEGLUT_STATIC 1 -/* - * glut.h - * - * The freeglut library include file - * - * 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 - * PAWEL W. OLSZTA 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 "freeglut_std.h" - -/*** END OF FILE ***/ - -#endif /* __GLUT_H__ */ diff --git a/Demos/Glut/GL/glxew.h b/Demos/Glut/GL/glxew.h deleted file mode 100644 index 6d249f73e..000000000 --- a/Demos/Glut/GL/glxew.h +++ /dev/null @@ -1,1587 +0,0 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2002-2008, Milan Ikits -** Copyright (C) 2002-2008, Marcelo E. Magallon -** Copyright (C) 2002, Lev Povalahev -** All rights reserved. -** -** Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are met: -** -** * Redistributions of source code must retain the above copyright notice, -** this list of conditions and the following disclaimer. -** * 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. -** * 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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. -*/ - -/* - * Mesa 3-D graphics library - * Version: 7.0 - * - * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. - * - * 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 above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * 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 - * BRIAN PAUL 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. - */ - -/* -** Copyright (c) 2007 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE 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 -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -#ifndef __glxew_h__ -#define __glxew_h__ -#define __GLXEW_H__ - -#ifdef __glxext_h_ -#error glxext.h included before glxew.h -#endif - -#if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__) -#error glx.h included before glxew.h -#endif - -#define __glxext_h_ - -#define GLX_H -#define __GLX_glx_h__ -#define __glx_h__ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* ---------------------------- GLX_VERSION_1_0 --------------------------- */ - -#ifndef GLX_VERSION_1_0 -#define GLX_VERSION_1_0 1 - -#define GLX_USE_GL 1 -#define GLX_BUFFER_SIZE 2 -#define GLX_LEVEL 3 -#define GLX_RGBA 4 -#define GLX_DOUBLEBUFFER 5 -#define GLX_STEREO 6 -#define GLX_AUX_BUFFERS 7 -#define GLX_RED_SIZE 8 -#define GLX_GREEN_SIZE 9 -#define GLX_BLUE_SIZE 10 -#define GLX_ALPHA_SIZE 11 -#define GLX_DEPTH_SIZE 12 -#define GLX_STENCIL_SIZE 13 -#define GLX_ACCUM_RED_SIZE 14 -#define GLX_ACCUM_GREEN_SIZE 15 -#define GLX_ACCUM_BLUE_SIZE 16 -#define GLX_ACCUM_ALPHA_SIZE 17 -#define GLX_BAD_SCREEN 1 -#define GLX_BAD_ATTRIBUTE 2 -#define GLX_NO_EXTENSION 3 -#define GLX_BAD_VISUAL 4 -#define GLX_BAD_CONTEXT 5 -#define GLX_BAD_VALUE 6 -#define GLX_BAD_ENUM 7 - -typedef XID GLXDrawable; -typedef XID GLXPixmap; -#ifdef __sun -typedef struct __glXContextRec *GLXContext; -#else -typedef struct __GLXcontextRec *GLXContext; -#endif - -typedef unsigned int GLXVideoDeviceNV; - -extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); -extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); -extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); -extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); -extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); -extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); -extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); -extern void glXDestroyContext (Display *dpy, GLXContext ctx); -extern Bool glXIsDirect (Display *dpy, GLXContext ctx); -extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); -extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); -extern GLXContext glXGetCurrentContext (void); -extern GLXDrawable glXGetCurrentDrawable (void); -extern void glXWaitGL (void); -extern void glXWaitX (void); -extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); -extern void glXUseXFont (Font font, int first, int count, int listBase); - -#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) - -#endif /* GLX_VERSION_1_0 */ - -/* ---------------------------- GLX_VERSION_1_1 --------------------------- */ - -#ifndef GLX_VERSION_1_1 -#define GLX_VERSION_1_1 - -#define GLX_VENDOR 0x1 -#define GLX_VERSION 0x2 -#define GLX_EXTENSIONS 0x3 - -extern const char* glXQueryExtensionsString (Display *dpy, int screen); -extern const char* glXGetClientString (Display *dpy, int name); -extern const char* glXQueryServerString (Display *dpy, int screen, int name); - -#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) - -#endif /* GLX_VERSION_1_1 */ - -/* ---------------------------- GLX_VERSION_1_2 ---------------------------- */ - -#ifndef GLX_VERSION_1_2 -#define GLX_VERSION_1_2 1 - -typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void); - -#define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay) - -#define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2) - -#endif /* GLX_VERSION_1_2 */ - -/* ---------------------------- GLX_VERSION_1_3 ---------------------------- */ - -#ifndef GLX_VERSION_1_3 -#define GLX_VERSION_1_3 1 - -#define GLX_RGBA_BIT 0x00000001 -#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 -#define GLX_WINDOW_BIT 0x00000001 -#define GLX_COLOR_INDEX_BIT 0x00000002 -#define GLX_PIXMAP_BIT 0x00000002 -#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 -#define GLX_PBUFFER_BIT 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 -#define GLX_AUX_BUFFERS_BIT 0x00000010 -#define GLX_CONFIG_CAVEAT 0x20 -#define GLX_DEPTH_BUFFER_BIT 0x00000020 -#define GLX_X_VISUAL_TYPE 0x22 -#define GLX_TRANSPARENT_TYPE 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE 0x24 -#define GLX_TRANSPARENT_RED_VALUE 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 -#define GLX_STENCIL_BUFFER_BIT 0x00000040 -#define GLX_ACCUM_BUFFER_BIT 0x00000080 -#define GLX_NONE 0x8000 -#define GLX_SLOW_CONFIG 0x8001 -#define GLX_TRUE_COLOR 0x8002 -#define GLX_DIRECT_COLOR 0x8003 -#define GLX_PSEUDO_COLOR 0x8004 -#define GLX_STATIC_COLOR 0x8005 -#define GLX_GRAY_SCALE 0x8006 -#define GLX_STATIC_GRAY 0x8007 -#define GLX_TRANSPARENT_RGB 0x8008 -#define GLX_TRANSPARENT_INDEX 0x8009 -#define GLX_VISUAL_ID 0x800B -#define GLX_SCREEN 0x800C -#define GLX_NON_CONFORMANT_CONFIG 0x800D -#define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 -#define GLX_X_RENDERABLE 0x8012 -#define GLX_FBCONFIG_ID 0x8013 -#define GLX_RGBA_TYPE 0x8014 -#define GLX_COLOR_INDEX_TYPE 0x8015 -#define GLX_MAX_PBUFFER_WIDTH 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT 0x8017 -#define GLX_MAX_PBUFFER_PIXELS 0x8018 -#define GLX_PRESERVED_CONTENTS 0x801B -#define GLX_LARGEST_PBUFFER 0x801C -#define GLX_WIDTH 0x801D -#define GLX_HEIGHT 0x801E -#define GLX_EVENT_MASK 0x801F -#define GLX_DAMAGED 0x8020 -#define GLX_SAVED 0x8021 -#define GLX_WINDOW 0x8022 -#define GLX_PBUFFER 0x8023 -#define GLX_PBUFFER_HEIGHT 0x8040 -#define GLX_PBUFFER_WIDTH 0x8041 -#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 -#define GLX_DONT_CARE 0xFFFFFFFF - -typedef XID GLXFBConfigID; -typedef XID GLXPbuffer; -typedef XID GLXWindow; -typedef struct __GLXFBConfigRec *GLXFBConfig; - -typedef struct { - int event_type; - int draw_type; - unsigned long serial; - Bool send_event; - Display *display; - GLXDrawable drawable; - unsigned int buffer_mask; - unsigned int aux_buffer; - int x, y; - int width, height; - int count; -} GLXPbufferClobberEvent; -typedef union __GLXEvent { - GLXPbufferClobberEvent glxpbufferclobber; - long pad[24]; -} GLXEvent; - -typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); -typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); -typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); -typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); -typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); -typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); -typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); -typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); -typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); -typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); -typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); -typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); -typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); -typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); -typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); - -#define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig) -#define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext) -#define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer) -#define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap) -#define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow) -#define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer) -#define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap) -#define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow) -#define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable) -#define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib) -#define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs) -#define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent) -#define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig) -#define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent) -#define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext) -#define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable) -#define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent) - -#define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3) - -#endif /* GLX_VERSION_1_3 */ - -/* ---------------------------- GLX_VERSION_1_4 ---------------------------- */ - -#ifndef GLX_VERSION_1_4 -#define GLX_VERSION_1_4 1 - -#define GLX_SAMPLE_BUFFERS 100000 -#define GLX_SAMPLES 100001 - -extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); - -#define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4) - -#endif /* GLX_VERSION_1_4 */ - -/* -------------------------- GLX_3DFX_multisample ------------------------- */ - -#ifndef GLX_3DFX_multisample -#define GLX_3DFX_multisample 1 - -#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 -#define GLX_SAMPLES_3DFX 0x8051 - -#define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample) - -#endif /* GLX_3DFX_multisample */ - -/* ------------------------ GLX_AMD_gpu_association ------------------------ */ - -#ifndef GLX_AMD_gpu_association -#define GLX_AMD_gpu_association 1 - -#define GLX_GPU_VENDOR_AMD 0x1F00 -#define GLX_GPU_RENDERER_STRING_AMD 0x1F01 -#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define GLX_GPU_RAM_AMD 0x21A3 -#define GLX_GPU_CLOCK_AMD 0x21A4 -#define GLX_GPU_NUM_PIPES_AMD 0x21A5 -#define GLX_GPU_NUM_SIMD_AMD 0x21A6 -#define GLX_GPU_NUM_RB_AMD 0x21A7 -#define GLX_GPU_NUM_SPI_AMD 0x21A8 - -#define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association) - -#endif /* GLX_AMD_gpu_association */ - -/* ------------------------- GLX_ARB_create_context ------------------------ */ - -#ifndef GLX_ARB_create_context -#define GLX_ARB_create_context 1 - -#define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 -#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 -#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define GLX_CONTEXT_FLAGS_ARB 0x2094 - -typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); - -#define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB) - -#define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context) - -#endif /* GLX_ARB_create_context */ - -/* --------------------- GLX_ARB_create_context_profile -------------------- */ - -#ifndef GLX_ARB_create_context_profile -#define GLX_ARB_create_context_profile 1 - -#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 - -#define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile) - -#endif /* GLX_ARB_create_context_profile */ - -/* ------------------- GLX_ARB_create_context_robustness ------------------- */ - -#ifndef GLX_ARB_create_context_robustness -#define GLX_ARB_create_context_robustness 1 - -#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 - -#define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness) - -#endif /* GLX_ARB_create_context_robustness */ - -/* ------------------------- GLX_ARB_fbconfig_float ------------------------ */ - -#ifndef GLX_ARB_fbconfig_float -#define GLX_ARB_fbconfig_float 1 - -#define GLX_RGBA_FLOAT_BIT 0x00000004 -#define GLX_RGBA_FLOAT_TYPE 0x20B9 - -#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float) - -#endif /* GLX_ARB_fbconfig_float */ - -/* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */ - -#ifndef GLX_ARB_framebuffer_sRGB -#define GLX_ARB_framebuffer_sRGB 1 - -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 - -#define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB) - -#endif /* GLX_ARB_framebuffer_sRGB */ - -/* ------------------------ GLX_ARB_get_proc_address ----------------------- */ - -#ifndef GLX_ARB_get_proc_address -#define GLX_ARB_get_proc_address 1 - -extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); - -#define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address) - -#endif /* GLX_ARB_get_proc_address */ - -/* -------------------------- GLX_ARB_multisample -------------------------- */ - -#ifndef GLX_ARB_multisample -#define GLX_ARB_multisample 1 - -#define GLX_SAMPLE_BUFFERS_ARB 100000 -#define GLX_SAMPLES_ARB 100001 - -#define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample) - -#endif /* GLX_ARB_multisample */ - -/* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */ - -#ifndef GLX_ARB_vertex_buffer_object -#define GLX_ARB_vertex_buffer_object 1 - -#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 - -#define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object) - -#endif /* GLX_ARB_vertex_buffer_object */ - -/* ----------------------- GLX_ATI_pixel_format_float ---------------------- */ - -#ifndef GLX_ATI_pixel_format_float -#define GLX_ATI_pixel_format_float 1 - -#define GLX_RGBA_FLOAT_ATI_BIT 0x00000100 - -#define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float) - -#endif /* GLX_ATI_pixel_format_float */ - -/* ------------------------- GLX_ATI_render_texture ------------------------ */ - -#ifndef GLX_ATI_render_texture -#define GLX_ATI_render_texture 1 - -#define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800 -#define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801 -#define GLX_TEXTURE_FORMAT_ATI 0x9802 -#define GLX_TEXTURE_TARGET_ATI 0x9803 -#define GLX_MIPMAP_TEXTURE_ATI 0x9804 -#define GLX_TEXTURE_RGB_ATI 0x9805 -#define GLX_TEXTURE_RGBA_ATI 0x9806 -#define GLX_NO_TEXTURE_ATI 0x9807 -#define GLX_TEXTURE_CUBE_MAP_ATI 0x9808 -#define GLX_TEXTURE_1D_ATI 0x9809 -#define GLX_TEXTURE_2D_ATI 0x980A -#define GLX_MIPMAP_LEVEL_ATI 0x980B -#define GLX_CUBE_MAP_FACE_ATI 0x980C -#define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D -#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E -#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F -#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810 -#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811 -#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812 -#define GLX_FRONT_LEFT_ATI 0x9813 -#define GLX_FRONT_RIGHT_ATI 0x9814 -#define GLX_BACK_LEFT_ATI 0x9815 -#define GLX_BACK_RIGHT_ATI 0x9816 -#define GLX_AUX0_ATI 0x9817 -#define GLX_AUX1_ATI 0x9818 -#define GLX_AUX2_ATI 0x9819 -#define GLX_AUX3_ATI 0x981A -#define GLX_AUX4_ATI 0x981B -#define GLX_AUX5_ATI 0x981C -#define GLX_AUX6_ATI 0x981D -#define GLX_AUX7_ATI 0x981E -#define GLX_AUX8_ATI 0x981F -#define GLX_AUX9_ATI 0x9820 -#define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821 -#define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822 - -typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); -typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list); -typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); - -#define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI) -#define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI) -#define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI) - -#define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture) - -#endif /* GLX_ATI_render_texture */ - -/* ------------------- GLX_EXT_create_context_es2_profile ------------------ */ - -#ifndef GLX_EXT_create_context_es2_profile -#define GLX_EXT_create_context_es2_profile 1 - -#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 - -#define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile) - -#endif /* GLX_EXT_create_context_es2_profile */ - -/* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */ - -#ifndef GLX_EXT_fbconfig_packed_float -#define GLX_EXT_fbconfig_packed_float 1 - -#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 -#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 - -#define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float) - -#endif /* GLX_EXT_fbconfig_packed_float */ - -/* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */ - -#ifndef GLX_EXT_framebuffer_sRGB -#define GLX_EXT_framebuffer_sRGB 1 - -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 - -#define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB) - -#endif /* GLX_EXT_framebuffer_sRGB */ - -/* ------------------------- GLX_EXT_import_context ------------------------ */ - -#ifndef GLX_EXT_import_context -#define GLX_EXT_import_context 1 - -#define GLX_SHARE_CONTEXT_EXT 0x800A -#define GLX_VISUAL_ID_EXT 0x800B -#define GLX_SCREEN_EXT 0x800C - -typedef XID GLXContextID; - -typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context); -typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); -typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID); -typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value); - -#define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT) -#define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT) -#define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT) -#define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT) - -#define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context) - -#endif /* GLX_EXT_import_context */ - -/* -------------------------- GLX_EXT_scene_marker ------------------------- */ - -#ifndef GLX_EXT_scene_marker -#define GLX_EXT_scene_marker 1 - -#define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker) - -#endif /* GLX_EXT_scene_marker */ - -/* -------------------------- GLX_EXT_swap_control ------------------------- */ - -#ifndef GLX_EXT_swap_control -#define GLX_EXT_swap_control 1 - -#define GLX_SWAP_INTERVAL_EXT 0x20F1 -#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 - -typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval); - -#define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT) - -#define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control) - -#endif /* GLX_EXT_swap_control */ - -/* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */ - -#ifndef GLX_EXT_texture_from_pixmap -#define GLX_EXT_texture_from_pixmap 1 - -#define GLX_TEXTURE_1D_BIT_EXT 0x00000001 -#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 -#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 -#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 -#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 -#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 -#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 -#define GLX_Y_INVERTED_EXT 0x20D4 -#define GLX_TEXTURE_FORMAT_EXT 0x20D5 -#define GLX_TEXTURE_TARGET_EXT 0x20D6 -#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 -#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 -#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 -#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA -#define GLX_TEXTURE_1D_EXT 0x20DB -#define GLX_TEXTURE_2D_EXT 0x20DC -#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD -#define GLX_FRONT_LEFT_EXT 0x20DE -#define GLX_FRONT_RIGHT_EXT 0x20DF -#define GLX_BACK_LEFT_EXT 0x20E0 -#define GLX_BACK_RIGHT_EXT 0x20E1 -#define GLX_AUX0_EXT 0x20E2 -#define GLX_AUX1_EXT 0x20E3 -#define GLX_AUX2_EXT 0x20E4 -#define GLX_AUX3_EXT 0x20E5 -#define GLX_AUX4_EXT 0x20E6 -#define GLX_AUX5_EXT 0x20E7 -#define GLX_AUX6_EXT 0x20E8 -#define GLX_AUX7_EXT 0x20E9 -#define GLX_AUX8_EXT 0x20EA -#define GLX_AUX9_EXT 0x20EB - -typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list); -typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer); - -#define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT) -#define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT) - -#define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap) - -#endif /* GLX_EXT_texture_from_pixmap */ - -/* -------------------------- GLX_EXT_visual_info -------------------------- */ - -#ifndef GLX_EXT_visual_info -#define GLX_EXT_visual_info 1 - -#define GLX_X_VISUAL_TYPE_EXT 0x22 -#define GLX_TRANSPARENT_TYPE_EXT 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 -#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 -#define GLX_NONE_EXT 0x8000 -#define GLX_TRUE_COLOR_EXT 0x8002 -#define GLX_DIRECT_COLOR_EXT 0x8003 -#define GLX_PSEUDO_COLOR_EXT 0x8004 -#define GLX_STATIC_COLOR_EXT 0x8005 -#define GLX_GRAY_SCALE_EXT 0x8006 -#define GLX_STATIC_GRAY_EXT 0x8007 -#define GLX_TRANSPARENT_RGB_EXT 0x8008 -#define GLX_TRANSPARENT_INDEX_EXT 0x8009 - -#define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info) - -#endif /* GLX_EXT_visual_info */ - -/* ------------------------- GLX_EXT_visual_rating ------------------------- */ - -#ifndef GLX_EXT_visual_rating -#define GLX_EXT_visual_rating 1 - -#define GLX_VISUAL_CAVEAT_EXT 0x20 -#define GLX_SLOW_VISUAL_EXT 0x8001 -#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D - -#define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating) - -#endif /* GLX_EXT_visual_rating */ - -/* -------------------------- GLX_INTEL_swap_event ------------------------- */ - -#ifndef GLX_INTEL_swap_event -#define GLX_INTEL_swap_event 1 - -#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 -#define GLX_COPY_COMPLETE_INTEL 0x8181 -#define GLX_FLIP_COMPLETE_INTEL 0x8182 -#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 - -#define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event) - -#endif /* GLX_INTEL_swap_event */ - -/* -------------------------- GLX_MESA_agp_offset -------------------------- */ - -#ifndef GLX_MESA_agp_offset -#define GLX_MESA_agp_offset 1 - -typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer); - -#define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA) - -#define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset) - -#endif /* GLX_MESA_agp_offset */ - -/* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */ - -#ifndef GLX_MESA_copy_sub_buffer -#define GLX_MESA_copy_sub_buffer 1 - -typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height); - -#define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA) - -#define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer) - -#endif /* GLX_MESA_copy_sub_buffer */ - -/* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */ - -#ifndef GLX_MESA_pixmap_colormap -#define GLX_MESA_pixmap_colormap 1 - -typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); - -#define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA) - -#define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap) - -#endif /* GLX_MESA_pixmap_colormap */ - -/* ------------------------ GLX_MESA_release_buffers ----------------------- */ - -#ifndef GLX_MESA_release_buffers -#define GLX_MESA_release_buffers 1 - -typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d); - -#define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA) - -#define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers) - -#endif /* GLX_MESA_release_buffers */ - -/* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */ - -#ifndef GLX_MESA_set_3dfx_mode -#define GLX_MESA_set_3dfx_mode 1 - -#define GLX_3DFX_WINDOW_MODE_MESA 0x1 -#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 - -typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode); - -#define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA) - -#define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode) - -#endif /* GLX_MESA_set_3dfx_mode */ - -/* ------------------------- GLX_MESA_swap_control ------------------------- */ - -#ifndef GLX_MESA_swap_control -#define GLX_MESA_swap_control 1 - -typedef int ( * PFNGLXGETSWAPINTERVALMESAPROC) (void); -typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval); - -#define glXGetSwapIntervalMESA GLXEW_GET_FUN(__glewXGetSwapIntervalMESA) -#define glXSwapIntervalMESA GLXEW_GET_FUN(__glewXSwapIntervalMESA) - -#define GLXEW_MESA_swap_control GLXEW_GET_VAR(__GLXEW_MESA_swap_control) - -#endif /* GLX_MESA_swap_control */ - -/* --------------------------- GLX_NV_copy_image --------------------------- */ - -#ifndef GLX_NV_copy_image -#define GLX_NV_copy_image 1 - -typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); - -#define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV) - -#define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image) - -#endif /* GLX_NV_copy_image */ - -/* -------------------------- GLX_NV_float_buffer -------------------------- */ - -#ifndef GLX_NV_float_buffer -#define GLX_NV_float_buffer 1 - -#define GLX_FLOAT_COMPONENTS_NV 0x20B0 - -#define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer) - -#endif /* GLX_NV_float_buffer */ - -/* ---------------------- GLX_NV_multisample_coverage ---------------------- */ - -#ifndef GLX_NV_multisample_coverage -#define GLX_NV_multisample_coverage 1 - -#define GLX_COLOR_SAMPLES_NV 0x20B3 -#define GLX_COVERAGE_SAMPLES_NV 100001 - -#define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage) - -#endif /* GLX_NV_multisample_coverage */ - -/* -------------------------- GLX_NV_present_video ------------------------- */ - -#ifndef GLX_NV_present_video -#define GLX_NV_present_video 1 - -#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 - -typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); -typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); - -#define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV) -#define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV) - -#define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video) - -#endif /* GLX_NV_present_video */ - -/* --------------------------- GLX_NV_swap_group --------------------------- */ - -#ifndef GLX_NV_swap_group -#define GLX_NV_swap_group 1 - -typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier); -typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group); -typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count); -typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); -typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); -typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen); - -#define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV) -#define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV) -#define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV) -#define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV) -#define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV) -#define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV) - -#define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group) - -#endif /* GLX_NV_swap_group */ - -/* ----------------------- GLX_NV_vertex_array_range ----------------------- */ - -#ifndef GLX_NV_vertex_array_range -#define GLX_NV_vertex_array_range 1 - -typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); -typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer); - -#define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV) -#define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV) - -#define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range) - -#endif /* GLX_NV_vertex_array_range */ - -/* -------------------------- GLX_NV_video_capture ------------------------- */ - -#ifndef GLX_NV_video_capture -#define GLX_NV_video_capture 1 - -#define GLX_DEVICE_ID_NV 0x20CD -#define GLX_UNIQUE_ID_NV 0x20CE -#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF - -typedef XID GLXVideoCaptureDeviceNV; - -typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display* dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); -typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display* dpy, int screen, int *nelements); -typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); -typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); -typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); - -#define glXBindVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXBindVideoCaptureDeviceNV) -#define glXEnumerateVideoCaptureDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoCaptureDevicesNV) -#define glXLockVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXLockVideoCaptureDeviceNV) -#define glXQueryVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXQueryVideoCaptureDeviceNV) -#define glXReleaseVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoCaptureDeviceNV) - -#define GLXEW_NV_video_capture GLXEW_GET_VAR(__GLXEW_NV_video_capture) - -#endif /* GLX_NV_video_capture */ - -/* -------------------------- GLX_NV_video_output -------------------------- */ - -#ifndef GLX_NV_video_output -#define GLX_NV_video_output 1 - -#define GLX_VIDEO_OUT_COLOR_NV 0x20C3 -#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 -#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 -#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define GLX_VIDEO_OUT_FRAME_NV 0x20C8 -#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 -#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA -#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB -#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC - -typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); -typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); -typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice); -typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf); -typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); - -#define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV) -#define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV) -#define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV) -#define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV) -#define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV) -#define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV) - -#define GLXEW_NV_video_output GLXEW_GET_VAR(__GLXEW_NV_video_output) - -#endif /* GLX_NV_video_output */ - -/* -------------------------- GLX_OML_swap_method -------------------------- */ - -#ifndef GLX_OML_swap_method -#define GLX_OML_swap_method 1 - -#define GLX_SWAP_METHOD_OML 0x8060 -#define GLX_SWAP_EXCHANGE_OML 0x8061 -#define GLX_SWAP_COPY_OML 0x8062 -#define GLX_SWAP_UNDEFINED_OML 0x8063 - -#define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method) - -#endif /* GLX_OML_swap_method */ - -/* -------------------------- GLX_OML_sync_control ------------------------- */ - -#ifndef GLX_OML_sync_control -#define GLX_OML_sync_control 1 - -typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator); -typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc); -typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); -typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t* ust, int64_t* msc, int64_t* sbc); -typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc); - -#define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML) -#define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML) -#define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML) -#define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML) -#define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML) - -#define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control) - -#endif /* GLX_OML_sync_control */ - -/* ------------------------ GLX_SGIS_blended_overlay ----------------------- */ - -#ifndef GLX_SGIS_blended_overlay -#define GLX_SGIS_blended_overlay 1 - -#define GLX_BLENDED_RGBA_SGIS 0x8025 - -#define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay) - -#endif /* GLX_SGIS_blended_overlay */ - -/* -------------------------- GLX_SGIS_color_range ------------------------- */ - -#ifndef GLX_SGIS_color_range -#define GLX_SGIS_color_range 1 - -#define GLX_MIN_RED_SGIS 0 -#define GLX_MAX_GREEN_SGIS 0 -#define GLX_MIN_BLUE_SGIS 0 -#define GLX_MAX_ALPHA_SGIS 0 -#define GLX_MIN_GREEN_SGIS 0 -#define GLX_MIN_ALPHA_SGIS 0 -#define GLX_MAX_RED_SGIS 0 -#define GLX_EXTENDED_RANGE_SGIS 0 -#define GLX_MAX_BLUE_SGIS 0 - -#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range) - -#endif /* GLX_SGIS_color_range */ - -/* -------------------------- GLX_SGIS_multisample ------------------------- */ - -#ifndef GLX_SGIS_multisample -#define GLX_SGIS_multisample 1 - -#define GLX_SAMPLE_BUFFERS_SGIS 100000 -#define GLX_SAMPLES_SGIS 100001 - -#define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample) - -#endif /* GLX_SGIS_multisample */ - -/* ---------------------- GLX_SGIS_shared_multisample ---------------------- */ - -#ifndef GLX_SGIS_shared_multisample -#define GLX_SGIS_shared_multisample 1 - -#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 -#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 - -#define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample) - -#endif /* GLX_SGIS_shared_multisample */ - -/* --------------------------- GLX_SGIX_fbconfig --------------------------- */ - -#ifndef GLX_SGIX_fbconfig -#define GLX_SGIX_fbconfig 1 - -#define GLX_WINDOW_BIT_SGIX 0x00000001 -#define GLX_RGBA_BIT_SGIX 0x00000001 -#define GLX_PIXMAP_BIT_SGIX 0x00000002 -#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 -#define GLX_SCREEN_EXT 0x800C -#define GLX_DRAWABLE_TYPE_SGIX 0x8010 -#define GLX_RENDER_TYPE_SGIX 0x8011 -#define GLX_X_RENDERABLE_SGIX 0x8012 -#define GLX_FBCONFIG_ID_SGIX 0x8013 -#define GLX_RGBA_TYPE_SGIX 0x8014 -#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 - -typedef XID GLXFBConfigIDSGIX; -typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; - -typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); -typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap); -typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value); -typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis); -typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config); - -#define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX) -#define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX) -#define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX) -#define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX) -#define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX) -#define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX) - -#define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig) - -#endif /* GLX_SGIX_fbconfig */ - -/* --------------------------- GLX_SGIX_hyperpipe -------------------------- */ - -#ifndef GLX_SGIX_hyperpipe -#define GLX_SGIX_hyperpipe 1 - -#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 -#define GLX_PIPE_RECT_SGIX 0x00000001 -#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 -#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 -#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 -#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 -#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 -#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 -#define GLX_BAD_HYPERPIPE_SGIX 92 -#define GLX_HYPERPIPE_ID_SGIX 0x8030 - -typedef struct { - char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; - int networkId; -} GLXHyperpipeNetworkSGIX; -typedef struct { - char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; - int XOrigin; - int YOrigin; - int maxHeight; - int maxWidth; -} GLXPipeRectLimits; -typedef struct { - char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; - int channel; - unsigned int participationType; - int timeSlice; -} GLXHyperpipeConfigSGIX; -typedef struct { - char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; - int srcXOrigin; - int srcYOrigin; - int srcWidth; - int srcHeight; - int destXOrigin; - int destYOrigin; - int destWidth; - int destHeight; -} GLXPipeRect; - -typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); -typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); -typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); -typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); -typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); -typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); -typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); -typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); - -#define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX) -#define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX) -#define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX) -#define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX) -#define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX) -#define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX) -#define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX) -#define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX) - -#define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe) - -#endif /* GLX_SGIX_hyperpipe */ - -/* ---------------------------- GLX_SGIX_pbuffer --------------------------- */ - -#ifndef GLX_SGIX_pbuffer -#define GLX_SGIX_pbuffer 1 - -#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 -#define GLX_PBUFFER_BIT_SGIX 0x00000004 -#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 -#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 -#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 -#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 -#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 -#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 -#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 -#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 -#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 -#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A -#define GLX_PRESERVED_CONTENTS_SGIX 0x801B -#define GLX_LARGEST_PBUFFER_SGIX 0x801C -#define GLX_WIDTH_SGIX 0x801D -#define GLX_HEIGHT_SGIX 0x801E -#define GLX_EVENT_MASK_SGIX 0x801F -#define GLX_DAMAGED_SGIX 0x8020 -#define GLX_SAVED_SGIX 0x8021 -#define GLX_WINDOW_SGIX 0x8022 -#define GLX_PBUFFER_SGIX 0x8023 -#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 - -typedef XID GLXPbufferSGIX; -typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX; - -typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list); -typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf); -typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask); -typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value); -typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask); - -#define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX) -#define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX) -#define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX) -#define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX) -#define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX) - -#define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer) - -#endif /* GLX_SGIX_pbuffer */ - -/* ------------------------- GLX_SGIX_swap_barrier ------------------------- */ - -#ifndef GLX_SGIX_swap_barrier -#define GLX_SGIX_swap_barrier 1 - -typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); -typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); - -#define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX) -#define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX) - -#define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier) - -#endif /* GLX_SGIX_swap_barrier */ - -/* -------------------------- GLX_SGIX_swap_group -------------------------- */ - -#ifndef GLX_SGIX_swap_group -#define GLX_SGIX_swap_group 1 - -typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); - -#define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX) - -#define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group) - -#endif /* GLX_SGIX_swap_group */ - -/* ------------------------- GLX_SGIX_video_resize ------------------------- */ - -#ifndef GLX_SGIX_video_resize -#define GLX_SGIX_video_resize 1 - -#define GLX_SYNC_FRAME_SGIX 0x00000000 -#define GLX_SYNC_SWAP_SGIX 0x00000001 - -typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window); -typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h); -typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype); -typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h); -typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); - -#define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX) -#define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX) -#define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX) -#define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX) -#define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX) - -#define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize) - -#endif /* GLX_SGIX_video_resize */ - -/* ---------------------- GLX_SGIX_visual_select_group --------------------- */ - -#ifndef GLX_SGIX_visual_select_group -#define GLX_SGIX_visual_select_group 1 - -#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 - -#define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group) - -#endif /* GLX_SGIX_visual_select_group */ - -/* ---------------------------- GLX_SGI_cushion ---------------------------- */ - -#ifndef GLX_SGI_cushion -#define GLX_SGI_cushion 1 - -typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion); - -#define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI) - -#define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion) - -#endif /* GLX_SGI_cushion */ - -/* ----------------------- GLX_SGI_make_current_read ----------------------- */ - -#ifndef GLX_SGI_make_current_read -#define GLX_SGI_make_current_read 1 - -typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); -typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); - -#define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI) -#define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI) - -#define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read) - -#endif /* GLX_SGI_make_current_read */ - -/* -------------------------- GLX_SGI_swap_control ------------------------- */ - -#ifndef GLX_SGI_swap_control -#define GLX_SGI_swap_control 1 - -typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); - -#define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI) - -#define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control) - -#endif /* GLX_SGI_swap_control */ - -/* --------------------------- GLX_SGI_video_sync -------------------------- */ - -#ifndef GLX_SGI_video_sync -#define GLX_SGI_video_sync 1 - -typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count); -typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count); - -#define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI) -#define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI) - -#define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync) - -#endif /* GLX_SGI_video_sync */ - -/* --------------------- GLX_SUN_get_transparent_index --------------------- */ - -#ifndef GLX_SUN_get_transparent_index -#define GLX_SUN_get_transparent_index 1 - -typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); - -#define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN) - -#define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index) - -#endif /* GLX_SUN_get_transparent_index */ - -/* -------------------------- GLX_SUN_video_resize ------------------------- */ - -#ifndef GLX_SUN_video_resize -#define GLX_SUN_video_resize 1 - -#define GLX_VIDEO_RESIZE_SUN 0x8171 -#define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD - -typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor); -typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor); - -#define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN) -#define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN) - -#define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize) - -#endif /* GLX_SUN_video_resize */ - -/* ------------------------------------------------------------------------- */ - -#ifdef GLEW_MX -#define GLXEW_EXPORT -#else -#define GLXEW_EXPORT extern -#endif /* GLEW_MX */ - -extern PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay; - -extern PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig; -extern PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext; -extern PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer; -extern PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap; -extern PFNGLXCREATEWINDOWPROC __glewXCreateWindow; -extern PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer; -extern PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap; -extern PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow; -extern PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable; -extern PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib; -extern PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs; -extern PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent; -extern PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig; -extern PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent; -extern PFNGLXQUERYCONTEXTPROC __glewXQueryContext; -extern PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable; -extern PFNGLXSELECTEVENTPROC __glewXSelectEvent; - -extern PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB; - -extern PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI; -extern PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI; -extern PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI; - -extern PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT; -extern PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT; -extern PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT; -extern PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT; - -extern PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT; - -extern PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT; -extern PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT; - -extern PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA; - -extern PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA; - -extern PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA; - -extern PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA; - -extern PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA; - -extern PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA; -extern PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA; - -extern PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV; - -extern PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV; -extern PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV; - -extern PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV; -extern PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV; -extern PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV; -extern PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV; -extern PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV; -extern PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV; - -extern PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV; -extern PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV; - -extern PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV; -extern PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV; -extern PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV; -extern PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV; -extern PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV; - -extern PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV; -extern PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV; -extern PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV; -extern PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV; -extern PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV; -extern PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV; - -extern PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML; -extern PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML; -extern PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML; -extern PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML; -extern PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML; - -extern PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX; -extern PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX; -extern PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX; -extern PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX; -extern PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX; -extern PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX; - -extern PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX; -extern PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX; -extern PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX; -extern PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX; -extern PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX; -extern PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX; -extern PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX; -extern PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX; - -extern PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX; -extern PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX; -extern PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX; -extern PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX; -extern PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX; - -extern PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX; -extern PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX; - -extern PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX; - -extern PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX; -extern PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX; -extern PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX; -extern PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX; -extern PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX; - -extern PFNGLXCUSHIONSGIPROC __glewXCushionSGI; - -extern PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI; -extern PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI; - -extern PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI; - -extern PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI; -extern PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI; - -extern PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN; - -extern PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN; -extern PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN; - -#if defined(GLEW_MX) -struct GLXEWContextStruct -{ -#endif /* GLEW_MX */ - -GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_0; -GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_1; -GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_2; -GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_3; -GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_4; -GLXEW_EXPORT GLboolean __GLXEW_3DFX_multisample; -GLXEW_EXPORT GLboolean __GLXEW_AMD_gpu_association; -GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context; -GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_profile; -GLXEW_EXPORT GLboolean __GLXEW_ARB_create_context_robustness; -GLXEW_EXPORT GLboolean __GLXEW_ARB_fbconfig_float; -GLXEW_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB; -GLXEW_EXPORT GLboolean __GLXEW_ARB_get_proc_address; -GLXEW_EXPORT GLboolean __GLXEW_ARB_multisample; -GLXEW_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object; -GLXEW_EXPORT GLboolean __GLXEW_ATI_pixel_format_float; -GLXEW_EXPORT GLboolean __GLXEW_ATI_render_texture; -GLXEW_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile; -GLXEW_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float; -GLXEW_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB; -GLXEW_EXPORT GLboolean __GLXEW_EXT_import_context; -GLXEW_EXPORT GLboolean __GLXEW_EXT_scene_marker; -GLXEW_EXPORT GLboolean __GLXEW_EXT_swap_control; -GLXEW_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap; -GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_info; -GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_rating; -GLXEW_EXPORT GLboolean __GLXEW_INTEL_swap_event; -GLXEW_EXPORT GLboolean __GLXEW_MESA_agp_offset; -GLXEW_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer; -GLXEW_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap; -GLXEW_EXPORT GLboolean __GLXEW_MESA_release_buffers; -GLXEW_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode; -GLXEW_EXPORT GLboolean __GLXEW_MESA_swap_control; -GLXEW_EXPORT GLboolean __GLXEW_NV_copy_image; -GLXEW_EXPORT GLboolean __GLXEW_NV_float_buffer; -GLXEW_EXPORT GLboolean __GLXEW_NV_multisample_coverage; -GLXEW_EXPORT GLboolean __GLXEW_NV_present_video; -GLXEW_EXPORT GLboolean __GLXEW_NV_swap_group; -GLXEW_EXPORT GLboolean __GLXEW_NV_vertex_array_range; -GLXEW_EXPORT GLboolean __GLXEW_NV_video_capture; -GLXEW_EXPORT GLboolean __GLXEW_NV_video_output; -GLXEW_EXPORT GLboolean __GLXEW_OML_swap_method; -GLXEW_EXPORT GLboolean __GLXEW_OML_sync_control; -GLXEW_EXPORT GLboolean __GLXEW_SGIS_blended_overlay; -GLXEW_EXPORT GLboolean __GLXEW_SGIS_color_range; -GLXEW_EXPORT GLboolean __GLXEW_SGIS_multisample; -GLXEW_EXPORT GLboolean __GLXEW_SGIS_shared_multisample; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_fbconfig; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_hyperpipe; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_pbuffer; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_barrier; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_group; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_video_resize; -GLXEW_EXPORT GLboolean __GLXEW_SGIX_visual_select_group; -GLXEW_EXPORT GLboolean __GLXEW_SGI_cushion; -GLXEW_EXPORT GLboolean __GLXEW_SGI_make_current_read; -GLXEW_EXPORT GLboolean __GLXEW_SGI_swap_control; -GLXEW_EXPORT GLboolean __GLXEW_SGI_video_sync; -GLXEW_EXPORT GLboolean __GLXEW_SUN_get_transparent_index; -GLXEW_EXPORT GLboolean __GLXEW_SUN_video_resize; - -#ifdef GLEW_MX -}; /* GLXEWContextStruct */ -#endif /* GLEW_MX */ - -/* ------------------------------------------------------------------------ */ - -#ifdef GLEW_MX - -typedef struct GLXEWContextStruct GLXEWContext; -extern GLenum glxewContextInit (GLXEWContext* ctx); -extern GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name); - -#define glxewInit() glxewContextInit(glxewGetContext()) -#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) - -#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x)) -#define GLXEW_GET_FUN(x) x - -#else /* GLEW_MX */ - -#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) -#define GLXEW_GET_FUN(x) x - -extern GLboolean glxewIsSupported (const char* name); - -#endif /* GLEW_MX */ - -extern GLboolean glxewGetExtension (const char* name); - -#ifdef __cplusplus -} -#endif - -#endif /* __glxew_h__ */ diff --git a/Demos/Glut/GL/glxext.h b/Demos/Glut/GL/glxext.h deleted file mode 100644 index b3de958da..000000000 --- a/Demos/Glut/GL/glxext.h +++ /dev/null @@ -1,546 +0,0 @@ -#ifndef __glxext_h_ -#define __glxext_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-2000 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__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#else -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif - - -/*************************************************************/ - -/* Header file version number, required by OpenGL ABI for Linux */ -#define GLX_GLXEXT_VERSION 2 - -#ifndef GLX_VERSION_1_3 -#define GLX_WINDOW_BIT 0x00000001 -#define GLX_PIXMAP_BIT 0x00000002 -#define GLX_PBUFFER_BIT 0x00000004 -#define GLX_RGBA_BIT 0x00000001 -#define GLX_COLOR_INDEX_BIT 0x00000002 -#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 -#define GLX_AUX_BUFFERS_BIT 0x00000010 -#define GLX_DEPTH_BUFFER_BIT 0x00000020 -#define GLX_STENCIL_BUFFER_BIT 0x00000040 -#define GLX_ACCUM_BUFFER_BIT 0x00000080 -#define GLX_CONFIG_CAVEAT 0x20 -#define GLX_X_VISUAL_TYPE 0x22 -#define GLX_TRANSPARENT_TYPE 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE 0x24 -#define GLX_TRANSPARENT_RED_VALUE 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 -#define GLX_DONT_CARE 0xFFFFFFFF -#define GLX_NONE 0x8000 -#define GLX_SLOW_CONFIG 0x8001 -#define GLX_TRUE_COLOR 0x8002 -#define GLX_DIRECT_COLOR 0x8003 -#define GLX_PSEUDO_COLOR 0x8004 -#define GLX_STATIC_COLOR 0x8005 -#define GLX_GRAY_SCALE 0x8006 -#define GLX_STATIC_GRAY 0x8007 -#define GLX_TRANSPARENT_RGB 0x8008 -#define GLX_TRANSPARENT_INDEX 0x8009 -#define GLX_VISUAL_ID 0x800B -#define GLX_SCREEN 0x800C -#define GLX_NON_CONFORMANT_CONFIG 0x800D -#define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 -#define GLX_X_RENDERABLE 0x8012 -#define GLX_FBCONFIG_ID 0x8013 -#define GLX_RGBA_TYPE 0x8014 -#define GLX_COLOR_INDEX_TYPE 0x8015 -#define GLX_MAX_PBUFFER_WIDTH 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT 0x8017 -#define GLX_MAX_PBUFFER_PIXELS 0x8018 -#define GLX_PRESERVED_CONTENTS 0x801B -#define GLX_LARGEST_PBUFFER 0x801C -#define GLX_WIDTH 0x801D -#define GLX_HEIGHT 0x801E -#define GLX_EVENT_MASK 0x801F -#define GLX_DAMAGED 0x8020 -#define GLX_SAVED 0x8021 -#define GLX_WINDOW 0x8022 -#define GLX_PBUFFER 0x8023 -#define GLX_PBUFFER_HEIGHT 0x8040 -#define GLX_PBUFFER_WIDTH 0x8041 -#endif - -#ifndef GLX_EXT_visual_info -#define GLX_X_VISUAL_TYPE_EXT 0x22 -#define GLX_TRANSPARENT_TYPE_EXT 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 -#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 -#define GLX_NONE_EXT 0x8000 -#define GLX_TRUE_COLOR_EXT 0x8002 -#define GLX_DIRECT_COLOR_EXT 0x8003 -#define GLX_PSEUDO_COLOR_EXT 0x8004 -#define GLX_STATIC_COLOR_EXT 0x8005 -#define GLX_GRAY_SCALE_EXT 0x8006 -#define GLX_STATIC_GRAY_EXT 0x8007 -#define GLX_TRANSPARENT_RGB_EXT 0x8008 -#define GLX_TRANSPARENT_INDEX_EXT 0x8009 -#endif - -#ifndef GLX_SGI_swap_control -#endif - -#ifndef GLX_SGI_video_sync -#endif - -#ifndef GLX_SGI_make_current_read -#endif - -#ifndef GLX_SGIX_video_source -#endif - -#ifndef GLX_EXT_visual_rating -#define GLX_VISUAL_CAVEAT_EXT 0x20 -#define GLX_SLOW_VISUAL_EXT 0x8001 -#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D -/* reuse GLX_NONE_EXT */ -#endif - -#ifndef GLX_EXT_import_context -#define GLX_SHARE_CONTEXT_EXT 0x800A -#define GLX_VISUAL_ID_EXT 0x800B -#define GLX_SCREEN_EXT 0x800C -#endif - -#ifndef GLX_SGIX_fbconfig -#define GLX_WINDOW_BIT_SGIX 0x00000001 -#define GLX_PIXMAP_BIT_SGIX 0x00000002 -#define GLX_RGBA_BIT_SGIX 0x00000001 -#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 -#define GLX_DRAWABLE_TYPE_SGIX 0x8010 -#define GLX_RENDER_TYPE_SGIX 0x8011 -#define GLX_X_RENDERABLE_SGIX 0x8012 -#define GLX_FBCONFIG_ID_SGIX 0x8013 -#define GLX_RGBA_TYPE_SGIX 0x8014 -#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 -/* reuse GLX_SCREEN_EXT */ -#endif - -#ifndef GLX_SGIX_pbuffer -#define GLX_PBUFFER_BIT_SGIX 0x00000004 -#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 -#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 -#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 -#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 -#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 -#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 -#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 -#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 -#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 -#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A -#define GLX_PRESERVED_CONTENTS_SGIX 0x801B -#define GLX_LARGEST_PBUFFER_SGIX 0x801C -#define GLX_WIDTH_SGIX 0x801D -#define GLX_HEIGHT_SGIX 0x801E -#define GLX_EVENT_MASK_SGIX 0x801F -#define GLX_DAMAGED_SGIX 0x8020 -#define GLX_SAVED_SGIX 0x8021 -#define GLX_WINDOW_SGIX 0x8022 -#define GLX_PBUFFER_SGIX 0x8023 -#endif - -#ifndef GLX_SGI_cushion -#endif - -#ifndef GLX_SGIX_video_resize -#define GLX_SYNC_FRAME_SGIX 0x00000000 -#define GLX_SYNC_SWAP_SGIX 0x00000001 -#endif - -#ifndef GLX_SGIX_dmbuffer -#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024 -#endif - -#ifndef GLX_SGIX_swap_group -#endif - -#ifndef GLX_SGIX_swap_barrier -#endif - -#ifndef GLX_SGIS_blended_overlay -#define GLX_BLENDED_RGBA_SGIS 0x8025 -#endif - -#ifndef GLX_SGIS_shared_multisample -#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 -#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 -#endif - -#ifndef GLX_SUN_get_transparent_index -#endif - -#ifndef GLX_3DFX_multisample -#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 -#define GLX_SAMPLES_3DFX 0x8051 -#endif - -#ifndef GLX_MESA_copy_sub_buffer -#endif - -#ifndef GLX_MESA_pixmap_colormap -#endif - -#ifndef GLX_MESA_release_buffers -#endif - -#ifndef GLX_MESA_set_3dfx_mode -#define GLX_3DFX_WINDOW_MODE_MESA 0x1 -#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 -#endif - - -/*************************************************************/ - -#ifndef GLX_ARB_get_proc_address -typedef void (*__GLXextFuncPtr)(); -#endif - -#ifndef GLX_SGIX_video_source -typedef XID GLXVideoSourceSGIX; -#endif - -#ifndef GLX_SGIX_fbconfig -typedef XID GLXFBConfigIDSGIX; -typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; -#endif - -#ifndef GLX_SGIX_pbuffer -typedef XID GLXPbufferSGIX; -typedef struct { - int type; - unsigned long serial; /* # of last request processed by server */ - Bool send_event; /* true if this came for SendEvent request */ - Display *display; /* display the event was read from */ - GLXDrawable drawable; /* i.d. of Drawable */ - int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ - int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ - unsigned int mask; /* mask indicating which buffers are affected*/ - int x, y; - int width, height; - int count; /* if nonzero, at least this many more */ -} GLXBufferClobberEventSGIX; -#endif - -#ifdef GL_NV_vertex_array_range -#ifndef PFNGLXALLOCATEMEMORYNVPROC -#ifdef GLX_GLXEXT_PROTOTYPES -extern void *glXAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat); -#endif -typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei, GLfloat, GLfloat, GLfloat); -#endif -#ifndef PFNGLXFREEMEMORYNVPROC -#ifdef GLX_GLXEXT_PROTOTYPES -extern void glXFreeMemoryNV (void *); -#endif -typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *); -#endif -#endif - -#ifndef GLX_VERSION_1_3 -#define GLX_VERSION_1_3 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *); -extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *); -extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *); -extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig); -extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *); -extern void glXDestroyWindow (Display *, GLXWindow); -extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *); -extern void glXDestroyPixmap (Display *, GLXPixmap); -extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *); -extern void glXDestroyPbuffer (Display *, GLXPbuffer); -extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *); -extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool); -extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext); -extern GLXDrawable glXGetCurrentReadDrawable (void); -extern Display * glXGetCurrentDisplay (void); -extern int glXQueryContext (Display *, GLXContext, int, int *); -extern void glXSelectEvent (Display *, GLXDrawable, unsigned long); -extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); -typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); -typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); -typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); -typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); -typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); -typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); -typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); -typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); -typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); -typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); -typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); -typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void); -typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); -typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); -typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); -#endif - -#ifndef GLX_ARB_get_proc_address -#define GLX_ARB_get_proc_address 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); -#endif - -#ifndef GLX_SGIS_multisample -#define GLX_SGIS_multisample 1 -#endif - -#ifndef GLX_EXT_visual_info -#define GLX_EXT_visual_info 1 -#endif - -#ifndef GLX_SGI_swap_control -#define GLX_SGI_swap_control 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern int glXSwapIntervalSGI (int); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); -#endif - -#ifndef GLX_SGI_video_sync -#define GLX_SGI_video_sync 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern int glXGetVideoSyncSGI (unsigned int *); -extern int glXWaitVideoSyncSGI (int, int, unsigned int *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count); -typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count); -#endif - -#ifndef GLX_SGI_make_current_read -#define GLX_SGI_make_current_read 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext); -extern GLXDrawable glXGetCurrentReadDrawableSGI (void); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); -#endif - -#ifdef _VL_H -#ifndef GLX_SGIX_video_source -#define GLX_SGIX_video_source 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode); -extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); -typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource); -#endif - -#endif /* _VL_H */ -#ifndef GLX_EXT_visual_rating -#define GLX_EXT_visual_rating 1 -#endif - -#ifndef GLX_EXT_import_context -#define GLX_EXT_import_context 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Display * glXGetCurrentDisplayEXT (void); -extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *); -extern GLXContextID glXGetContextIDEXT (GLXContext); -extern GLXContext glXImportContextEXT (Display *, GLXContextID); -extern void glXFreeContextEXT (Display *, GLXContext); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void); -typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value); -typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (GLXContext context); -typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID); -typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context); -#endif - -#ifndef GLX_SGIX_fbconfig -#define GLX_SGIX_fbconfig 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *); -extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *); -extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap); -extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool); -extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX); -extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); -typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); -typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); -typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); -typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); -typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis); -#endif - -#ifndef GLX_SGIX_pbuffer -#define GLX_SGIX_pbuffer 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *); -extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX); -extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *); -extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long); -extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); -typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf); -typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); -typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask); -typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask); -#endif - -#ifndef GLX_SGI_cushion -#define GLX_SGI_cushion 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern void glXCushionSGI (Display *, Window, float); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion); -#endif - -#ifndef GLX_SGIX_video_resize -#define GLX_SGIX_video_resize 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern int glXBindChannelToWindowSGIX (Display *, int, int, Window); -extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int); -extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *); -extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *); -extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window); -typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h); -typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); -typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); -typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype); -#endif - -#ifdef _DM_BUFFER_H_ -#ifndef GLX_SGIX_dmbuffer -#define GLX_SGIX_dmbuffer 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); -#endif - -#endif /* _DM_BUFFER_H_ */ -#ifndef GLX_SGIX_swap_group -#define GLX_SGIX_swap_group 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); -#endif - -#ifndef GLX_SGIX_swap_barrier -#define GLX_SGIX_swap_barrier 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int); -extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); -typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); -#endif - -#ifndef GLX_SUN_get_transparent_index -#define GLX_SUN_get_transparent_index 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex); -#endif - -#ifndef GLX_MESA_copy_sub_buffer -#define GLX_MESA_copy_sub_buffer 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); -#endif - -#ifndef GLX_MESA_pixmap_colormap -#define GLX_MESA_pixmap_colormap 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); -#endif - -#ifndef GLX_MESA_release_buffers -#define GLX_MESA_release_buffers 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable); -#endif - -#ifndef GLX_MESA_set_3dfx_mode -#define GLX_MESA_set_3dfx_mode 1 -#ifdef GLX_GLXEXT_PROTOTYPES -extern Bool glXSet3DfxModeMESA (int); -#endif /* GLX_GLXEXT_PROTOTYPES */ -typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode); -#endif - - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/Demos/Glut/GL/wglew.h b/Demos/Glut/GL/wglew.h deleted file mode 100644 index 05f054fc8..000000000 --- a/Demos/Glut/GL/wglew.h +++ /dev/null @@ -1,1363 +0,0 @@ -/* -** The OpenGL Extension Wrangler Library -** Copyright (C) 2002-2008, Milan Ikits -** Copyright (C) 2002-2008, Marcelo E. Magallon -** Copyright (C) 2002, Lev Povalahev -** All rights reserved. -** -** Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are met: -** -** * Redistributions of source code must retain the above copyright notice, -** this list of conditions and the following disclaimer. -** * 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. -** * 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 COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER OR CONTRIBUTORS 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. -*/ - -/* -** Copyright (c) 2007 The Khronos Group Inc. -** -** Permission is hereby granted, free of charge, to any person obtaining a -** copy of this software and/or associated documentation files (the -** "Materials"), to deal in the Materials without restriction, including -** without limitation the rights to use, copy, modify, merge, publish, -** distribute, sublicense, and/or sell copies of the Materials, and to -** permit persons to whom the Materials are furnished to do so, subject to -** the following conditions: -** -** The above copyright notice and this permission notice shall be included -** in all copies or substantial portions of the Materials. -** -** THE MATERIALS ARE 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 -** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. -*/ - -#ifndef __wglew_h__ -#define __wglew_h__ -#define __WGLEW_H__ - -#ifdef __wglext_h_ -#error wglext.h included before wglew.h -#endif - -#define __wglext_h_ - -#if !defined(WINAPI) -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN 1 -# endif -#include -# undef WIN32_LEAN_AND_MEAN -#endif - -/* - * GLEW_STATIC needs to be set when using the static version. - * GLEW_BUILD is set when building the DLL version. - */ -#ifdef GLEW_STATIC -# define GLEWAPI extern -#else -# ifdef GLEW_BUILD -# define GLEWAPI extern __declspec(dllexport) -# else -# define GLEWAPI extern __declspec(dllimport) -# endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* -------------------------- WGL_3DFX_multisample ------------------------- */ - -#ifndef WGL_3DFX_multisample -#define WGL_3DFX_multisample 1 - -#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 -#define WGL_SAMPLES_3DFX 0x2061 - -#define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample) - -#endif /* WGL_3DFX_multisample */ - -/* ------------------------- WGL_3DL_stereo_control ------------------------ */ - -#ifndef WGL_3DL_stereo_control -#define WGL_3DL_stereo_control 1 - -#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 -#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 -#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 -#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 - -typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState); - -#define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL) - -#define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control) - -#endif /* WGL_3DL_stereo_control */ - -/* ------------------------ WGL_AMD_gpu_association ------------------------ */ - -#ifndef WGL_AMD_gpu_association -#define WGL_AMD_gpu_association 1 - -#define WGL_GPU_VENDOR_AMD 0x1F00 -#define WGL_GPU_RENDERER_STRING_AMD 0x1F01 -#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define WGL_GPU_RAM_AMD 0x21A3 -#define WGL_GPU_CLOCK_AMD 0x21A4 -#define WGL_GPU_NUM_PIPES_AMD 0x21A5 -#define WGL_GPU_NUM_SIMD_AMD 0x21A6 -#define WGL_GPU_NUM_RB_AMD 0x21A7 -#define WGL_GPU_NUM_SPI_AMD 0x21A8 - -typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id); -typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList); -typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc); -typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc); -typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); -typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids); -typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data); -typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc); - -#define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD) -#define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD) -#define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD) -#define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD) -#define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD) -#define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD) -#define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD) -#define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD) -#define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD) - -#define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association) - -#endif /* WGL_AMD_gpu_association */ - -/* ------------------------- WGL_ARB_buffer_region ------------------------- */ - -#ifndef WGL_ARB_buffer_region -#define WGL_ARB_buffer_region 1 - -#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 -#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 -#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 -#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 - -typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); -typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); -typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); -typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); - -#define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB) -#define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB) -#define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB) -#define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB) - -#define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region) - -#endif /* WGL_ARB_buffer_region */ - -/* ------------------------- WGL_ARB_create_context ------------------------ */ - -#ifndef WGL_ARB_create_context -#define WGL_ARB_create_context 1 - -#define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 -#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 -#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 -#define WGL_CONTEXT_FLAGS_ARB 0x2094 -#define ERROR_INVALID_VERSION_ARB 0x2095 -#define ERROR_INVALID_PROFILE_ARB 0x2096 - -typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList); - -#define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB) - -#define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context) - -#endif /* WGL_ARB_create_context */ - -/* --------------------- WGL_ARB_create_context_profile -------------------- */ - -#ifndef WGL_ARB_create_context_profile -#define WGL_ARB_create_context_profile 1 - -#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 - -#define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile) - -#endif /* WGL_ARB_create_context_profile */ - -/* ------------------- WGL_ARB_create_context_robustness ------------------- */ - -#ifndef WGL_ARB_create_context_robustness -#define WGL_ARB_create_context_robustness 1 - -#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 - -#define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness) - -#endif /* WGL_ARB_create_context_robustness */ - -/* ----------------------- WGL_ARB_extensions_string ----------------------- */ - -#ifndef WGL_ARB_extensions_string -#define WGL_ARB_extensions_string 1 - -typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); - -#define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB) - -#define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string) - -#endif /* WGL_ARB_extensions_string */ - -/* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */ - -#ifndef WGL_ARB_framebuffer_sRGB -#define WGL_ARB_framebuffer_sRGB 1 - -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 - -#define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB) - -#endif /* WGL_ARB_framebuffer_sRGB */ - -/* ----------------------- WGL_ARB_make_current_read ----------------------- */ - -#ifndef WGL_ARB_make_current_read -#define WGL_ARB_make_current_read 1 - -#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 -#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 - -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID); -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); - -#define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB) -#define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB) - -#define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read) - -#endif /* WGL_ARB_make_current_read */ - -/* -------------------------- WGL_ARB_multisample -------------------------- */ - -#ifndef WGL_ARB_multisample -#define WGL_ARB_multisample 1 - -#define WGL_SAMPLE_BUFFERS_ARB 0x2041 -#define WGL_SAMPLES_ARB 0x2042 - -#define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample) - -#endif /* WGL_ARB_multisample */ - -/* ---------------------------- WGL_ARB_pbuffer ---------------------------- */ - -#ifndef WGL_ARB_pbuffer -#define WGL_ARB_pbuffer 1 - -#define WGL_DRAW_TO_PBUFFER_ARB 0x202D -#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E -#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 -#define WGL_PBUFFER_LARGEST_ARB 0x2033 -#define WGL_PBUFFER_WIDTH_ARB 0x2034 -#define WGL_PBUFFER_HEIGHT_ARB 0x2035 -#define WGL_PBUFFER_LOST_ARB 0x2036 - -DECLARE_HANDLE(HPBUFFERARB); - -typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); - -#define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB) -#define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB) -#define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB) -#define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB) -#define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB) - -#define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer) - -#endif /* WGL_ARB_pbuffer */ - -/* -------------------------- WGL_ARB_pixel_format ------------------------- */ - -#ifndef WGL_ARB_pixel_format -#define WGL_ARB_pixel_format 1 - -#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 -#define WGL_DRAW_TO_WINDOW_ARB 0x2001 -#define WGL_DRAW_TO_BITMAP_ARB 0x2002 -#define WGL_ACCELERATION_ARB 0x2003 -#define WGL_NEED_PALETTE_ARB 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 -#define WGL_SWAP_METHOD_ARB 0x2007 -#define WGL_NUMBER_OVERLAYS_ARB 0x2008 -#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 -#define WGL_TRANSPARENT_ARB 0x200A -#define WGL_SHARE_DEPTH_ARB 0x200C -#define WGL_SHARE_STENCIL_ARB 0x200D -#define WGL_SHARE_ACCUM_ARB 0x200E -#define WGL_SUPPORT_GDI_ARB 0x200F -#define WGL_SUPPORT_OPENGL_ARB 0x2010 -#define WGL_DOUBLE_BUFFER_ARB 0x2011 -#define WGL_STEREO_ARB 0x2012 -#define WGL_PIXEL_TYPE_ARB 0x2013 -#define WGL_COLOR_BITS_ARB 0x2014 -#define WGL_RED_BITS_ARB 0x2015 -#define WGL_RED_SHIFT_ARB 0x2016 -#define WGL_GREEN_BITS_ARB 0x2017 -#define WGL_GREEN_SHIFT_ARB 0x2018 -#define WGL_BLUE_BITS_ARB 0x2019 -#define WGL_BLUE_SHIFT_ARB 0x201A -#define WGL_ALPHA_BITS_ARB 0x201B -#define WGL_ALPHA_SHIFT_ARB 0x201C -#define WGL_ACCUM_BITS_ARB 0x201D -#define WGL_ACCUM_RED_BITS_ARB 0x201E -#define WGL_ACCUM_GREEN_BITS_ARB 0x201F -#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 -#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 -#define WGL_DEPTH_BITS_ARB 0x2022 -#define WGL_STENCIL_BITS_ARB 0x2023 -#define WGL_AUX_BUFFERS_ARB 0x2024 -#define WGL_NO_ACCELERATION_ARB 0x2025 -#define WGL_GENERIC_ACCELERATION_ARB 0x2026 -#define WGL_FULL_ACCELERATION_ARB 0x2027 -#define WGL_SWAP_EXCHANGE_ARB 0x2028 -#define WGL_SWAP_COPY_ARB 0x2029 -#define WGL_SWAP_UNDEFINED_ARB 0x202A -#define WGL_TYPE_RGBA_ARB 0x202B -#define WGL_TYPE_COLORINDEX_ARB 0x202C -#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 -#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 -#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 -#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A -#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B - -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues); - -#define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB) -#define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB) -#define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB) - -#define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format) - -#endif /* WGL_ARB_pixel_format */ - -/* ----------------------- WGL_ARB_pixel_format_float ---------------------- */ - -#ifndef WGL_ARB_pixel_format_float -#define WGL_ARB_pixel_format_float 1 - -#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 - -#define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float) - -#endif /* WGL_ARB_pixel_format_float */ - -/* ------------------------- WGL_ARB_render_texture ------------------------ */ - -#ifndef WGL_ARB_render_texture -#define WGL_ARB_render_texture 1 - -#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 -#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 -#define WGL_TEXTURE_FORMAT_ARB 0x2072 -#define WGL_TEXTURE_TARGET_ARB 0x2073 -#define WGL_MIPMAP_TEXTURE_ARB 0x2074 -#define WGL_TEXTURE_RGB_ARB 0x2075 -#define WGL_TEXTURE_RGBA_ARB 0x2076 -#define WGL_NO_TEXTURE_ARB 0x2077 -#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 -#define WGL_TEXTURE_1D_ARB 0x2079 -#define WGL_TEXTURE_2D_ARB 0x207A -#define WGL_MIPMAP_LEVEL_ARB 0x207B -#define WGL_CUBE_MAP_FACE_ARB 0x207C -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 -#define WGL_FRONT_LEFT_ARB 0x2083 -#define WGL_FRONT_RIGHT_ARB 0x2084 -#define WGL_BACK_LEFT_ARB 0x2085 -#define WGL_BACK_RIGHT_ARB 0x2086 -#define WGL_AUX0_ARB 0x2087 -#define WGL_AUX1_ARB 0x2088 -#define WGL_AUX2_ARB 0x2089 -#define WGL_AUX3_ARB 0x208A -#define WGL_AUX4_ARB 0x208B -#define WGL_AUX5_ARB 0x208C -#define WGL_AUX6_ARB 0x208D -#define WGL_AUX7_ARB 0x208E -#define WGL_AUX8_ARB 0x208F -#define WGL_AUX9_ARB 0x2090 - -typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList); - -#define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB) -#define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB) -#define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB) - -#define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture) - -#endif /* WGL_ARB_render_texture */ - -/* ----------------------- WGL_ATI_pixel_format_float ---------------------- */ - -#ifndef WGL_ATI_pixel_format_float -#define WGL_ATI_pixel_format_float 1 - -#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 -#define GL_RGBA_FLOAT_MODE_ATI 0x8820 -#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 - -#define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float) - -#endif /* WGL_ATI_pixel_format_float */ - -/* -------------------- WGL_ATI_render_texture_rectangle ------------------- */ - -#ifndef WGL_ATI_render_texture_rectangle -#define WGL_ATI_render_texture_rectangle 1 - -#define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 - -#define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle) - -#endif /* WGL_ATI_render_texture_rectangle */ - -/* ------------------- WGL_EXT_create_context_es2_profile ------------------ */ - -#ifndef WGL_EXT_create_context_es2_profile -#define WGL_EXT_create_context_es2_profile 1 - -#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 - -#define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile) - -#endif /* WGL_EXT_create_context_es2_profile */ - -/* -------------------------- WGL_EXT_depth_float -------------------------- */ - -#ifndef WGL_EXT_depth_float -#define WGL_EXT_depth_float 1 - -#define WGL_DEPTH_FLOAT_EXT 0x2040 - -#define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float) - -#endif /* WGL_EXT_depth_float */ - -/* ---------------------- WGL_EXT_display_color_table ---------------------- */ - -#ifndef WGL_EXT_display_color_table -#define WGL_EXT_display_color_table 1 - -typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length); - -#define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT) -#define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT) -#define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT) -#define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT) - -#define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table) - -#endif /* WGL_EXT_display_color_table */ - -/* ----------------------- WGL_EXT_extensions_string ----------------------- */ - -#ifndef WGL_EXT_extensions_string -#define WGL_EXT_extensions_string 1 - -typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); - -#define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT) - -#define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string) - -#endif /* WGL_EXT_extensions_string */ - -/* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */ - -#ifndef WGL_EXT_framebuffer_sRGB -#define WGL_EXT_framebuffer_sRGB 1 - -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 - -#define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB) - -#endif /* WGL_EXT_framebuffer_sRGB */ - -/* ----------------------- WGL_EXT_make_current_read ----------------------- */ - -#ifndef WGL_EXT_make_current_read -#define WGL_EXT_make_current_read 1 - -#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 - -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID); -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); - -#define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT) -#define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT) - -#define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read) - -#endif /* WGL_EXT_make_current_read */ - -/* -------------------------- WGL_EXT_multisample -------------------------- */ - -#ifndef WGL_EXT_multisample -#define WGL_EXT_multisample 1 - -#define WGL_SAMPLE_BUFFERS_EXT 0x2041 -#define WGL_SAMPLES_EXT 0x2042 - -#define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample) - -#endif /* WGL_EXT_multisample */ - -/* ---------------------------- WGL_EXT_pbuffer ---------------------------- */ - -#ifndef WGL_EXT_pbuffer -#define WGL_EXT_pbuffer 1 - -#define WGL_DRAW_TO_PBUFFER_EXT 0x202D -#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E -#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 -#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 -#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 -#define WGL_PBUFFER_LARGEST_EXT 0x2033 -#define WGL_PBUFFER_WIDTH_EXT 0x2034 -#define WGL_PBUFFER_HEIGHT_EXT 0x2035 - -DECLARE_HANDLE(HPBUFFEREXT); - -typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); - -#define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT) -#define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT) -#define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT) -#define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT) -#define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT) - -#define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer) - -#endif /* WGL_EXT_pbuffer */ - -/* -------------------------- WGL_EXT_pixel_format ------------------------- */ - -#ifndef WGL_EXT_pixel_format -#define WGL_EXT_pixel_format 1 - -#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 -#define WGL_DRAW_TO_WINDOW_EXT 0x2001 -#define WGL_DRAW_TO_BITMAP_EXT 0x2002 -#define WGL_ACCELERATION_EXT 0x2003 -#define WGL_NEED_PALETTE_EXT 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 -#define WGL_SWAP_METHOD_EXT 0x2007 -#define WGL_NUMBER_OVERLAYS_EXT 0x2008 -#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 -#define WGL_TRANSPARENT_EXT 0x200A -#define WGL_TRANSPARENT_VALUE_EXT 0x200B -#define WGL_SHARE_DEPTH_EXT 0x200C -#define WGL_SHARE_STENCIL_EXT 0x200D -#define WGL_SHARE_ACCUM_EXT 0x200E -#define WGL_SUPPORT_GDI_EXT 0x200F -#define WGL_SUPPORT_OPENGL_EXT 0x2010 -#define WGL_DOUBLE_BUFFER_EXT 0x2011 -#define WGL_STEREO_EXT 0x2012 -#define WGL_PIXEL_TYPE_EXT 0x2013 -#define WGL_COLOR_BITS_EXT 0x2014 -#define WGL_RED_BITS_EXT 0x2015 -#define WGL_RED_SHIFT_EXT 0x2016 -#define WGL_GREEN_BITS_EXT 0x2017 -#define WGL_GREEN_SHIFT_EXT 0x2018 -#define WGL_BLUE_BITS_EXT 0x2019 -#define WGL_BLUE_SHIFT_EXT 0x201A -#define WGL_ALPHA_BITS_EXT 0x201B -#define WGL_ALPHA_SHIFT_EXT 0x201C -#define WGL_ACCUM_BITS_EXT 0x201D -#define WGL_ACCUM_RED_BITS_EXT 0x201E -#define WGL_ACCUM_GREEN_BITS_EXT 0x201F -#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 -#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 -#define WGL_DEPTH_BITS_EXT 0x2022 -#define WGL_STENCIL_BITS_EXT 0x2023 -#define WGL_AUX_BUFFERS_EXT 0x2024 -#define WGL_NO_ACCELERATION_EXT 0x2025 -#define WGL_GENERIC_ACCELERATION_EXT 0x2026 -#define WGL_FULL_ACCELERATION_EXT 0x2027 -#define WGL_SWAP_EXCHANGE_EXT 0x2028 -#define WGL_SWAP_COPY_EXT 0x2029 -#define WGL_SWAP_UNDEFINED_EXT 0x202A -#define WGL_TYPE_RGBA_EXT 0x202B -#define WGL_TYPE_COLORINDEX_EXT 0x202C - -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues); - -#define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT) -#define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT) -#define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT) - -#define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format) - -#endif /* WGL_EXT_pixel_format */ - -/* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */ - -#ifndef WGL_EXT_pixel_format_packed_float -#define WGL_EXT_pixel_format_packed_float 1 - -#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 - -#define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float) - -#endif /* WGL_EXT_pixel_format_packed_float */ - -/* -------------------------- WGL_EXT_swap_control ------------------------- */ - -#ifndef WGL_EXT_swap_control -#define WGL_EXT_swap_control 1 - -typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); -typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); - -#define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT) -#define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT) - -#define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control) - -#endif /* WGL_EXT_swap_control */ - -/* --------------------- WGL_I3D_digital_video_control --------------------- */ - -#ifndef WGL_I3D_digital_video_control -#define WGL_I3D_digital_video_control 1 - -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 -#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 -#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 - -typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); -typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); - -#define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D) -#define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D) - -#define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control) - -#endif /* WGL_I3D_digital_video_control */ - -/* ----------------------------- WGL_I3D_gamma ----------------------------- */ - -#ifndef WGL_I3D_gamma -#define WGL_I3D_gamma 1 - -#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E -#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F - -typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue); -typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); -typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue); -typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); - -#define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D) -#define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D) -#define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D) -#define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D) - -#define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma) - -#endif /* WGL_I3D_gamma */ - -/* ---------------------------- WGL_I3D_genlock ---------------------------- */ - -#ifndef WGL_I3D_genlock -#define WGL_I3D_genlock 1 - -#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 -#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 -#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 -#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 -#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 -#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 -#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A -#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B -#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C - -typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); -typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); -typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); -typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge); -typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource); -typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag); -typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay); - -#define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D) -#define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D) -#define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D) -#define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D) -#define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D) -#define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D) -#define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D) -#define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D) -#define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D) -#define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D) -#define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D) -#define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D) - -#define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock) - -#endif /* WGL_I3D_genlock */ - -/* -------------------------- WGL_I3D_image_buffer ------------------------- */ - -#ifndef WGL_I3D_image_buffer -#define WGL_I3D_image_buffer 1 - -#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 -#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 - -typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count); -typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); -typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); -typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count); - -#define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D) -#define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D) -#define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D) -#define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D) - -#define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer) - -#endif /* WGL_I3D_image_buffer */ - -/* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */ - -#ifndef WGL_I3D_swap_frame_lock -#define WGL_I3D_swap_frame_lock 1 - -typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID); -typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID); -typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag); - -#define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D) -#define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D) -#define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D) -#define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D) - -#define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock) - -#endif /* WGL_I3D_swap_frame_lock */ - -/* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */ - -#ifndef WGL_I3D_swap_frame_usage -#define WGL_I3D_swap_frame_usage 1 - -typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); -typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); - -#define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D) -#define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D) -#define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D) -#define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D) - -#define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage) - -#endif /* WGL_I3D_swap_frame_usage */ - -/* --------------------------- WGL_NV_DX_interop --------------------------- */ - -#ifndef WGL_NV_DX_interop -#define WGL_NV_DX_interop 1 - -#define WGL_ACCESS_READ_ONLY_NV 0x0000 -#define WGL_ACCESS_READ_WRITE_NV 0x0001 -#define WGL_ACCESS_WRITE_DISCARD_NV 0x0002 - -typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice); -typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects); -typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access); -typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice); -typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access); -typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void* dxObject, HANDLE shareHandle); -typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects); -typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject); - -#define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV) -#define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV) -#define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV) -#define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV) -#define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV) -#define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV) -#define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV) -#define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV) - -#define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop) - -#endif /* WGL_NV_DX_interop */ - -/* --------------------------- WGL_NV_copy_image --------------------------- */ - -#ifndef WGL_NV_copy_image -#define WGL_NV_copy_image 1 - -typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); - -#define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV) - -#define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image) - -#endif /* WGL_NV_copy_image */ - -/* -------------------------- WGL_NV_float_buffer -------------------------- */ - -#ifndef WGL_NV_float_buffer -#define WGL_NV_float_buffer 1 - -#define WGL_FLOAT_COMPONENTS_NV 0x20B0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 -#define WGL_TEXTURE_FLOAT_R_NV 0x20B5 -#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 -#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 -#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 - -#define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer) - -#endif /* WGL_NV_float_buffer */ - -/* -------------------------- WGL_NV_gpu_affinity -------------------------- */ - -#ifndef WGL_NV_gpu_affinity -#define WGL_NV_gpu_affinity 1 - -#define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 -#define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 - -DECLARE_HANDLE(HGPUNV); -typedef struct _GPU_DEVICE { - DWORD cb; - CHAR DeviceName[32]; - CHAR DeviceString[128]; - DWORD Flags; - RECT rcVirtualScreen; -} GPU_DEVICE, *PGPU_DEVICE; - -typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); -typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); -typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); -typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); -typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); - -#define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV) -#define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV) -#define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV) -#define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV) -#define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV) - -#define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity) - -#endif /* WGL_NV_gpu_affinity */ - -/* ---------------------- WGL_NV_multisample_coverage ---------------------- */ - -#ifndef WGL_NV_multisample_coverage -#define WGL_NV_multisample_coverage 1 - -#define WGL_COVERAGE_SAMPLES_NV 0x2042 -#define WGL_COLOR_SAMPLES_NV 0x20B9 - -#define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage) - -#endif /* WGL_NV_multisample_coverage */ - -/* -------------------------- WGL_NV_present_video ------------------------- */ - -#ifndef WGL_NV_present_video -#define WGL_NV_present_video 1 - -#define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 - -DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); - -typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList); -typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList); -typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue); - -#define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV) -#define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV) -#define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV) - -#define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video) - -#endif /* WGL_NV_present_video */ - -/* ---------------------- WGL_NV_render_depth_texture ---------------------- */ - -#ifndef WGL_NV_render_depth_texture -#define WGL_NV_render_depth_texture 1 - -#define WGL_NO_TEXTURE_ARB 0x2077 -#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 -#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 -#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 -#define WGL_DEPTH_COMPONENT_NV 0x20A7 - -#define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture) - -#endif /* WGL_NV_render_depth_texture */ - -/* -------------------- WGL_NV_render_texture_rectangle -------------------- */ - -#ifndef WGL_NV_render_texture_rectangle -#define WGL_NV_render_texture_rectangle 1 - -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 -#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 - -#define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle) - -#endif /* WGL_NV_render_texture_rectangle */ - -/* --------------------------- WGL_NV_swap_group --------------------------- */ - -#ifndef WGL_NV_swap_group -#define WGL_NV_swap_group 1 - -typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier); -typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); -typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count); -typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers); -typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier); -typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); - -#define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV) -#define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV) -#define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV) -#define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV) -#define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV) -#define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV) - -#define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group) - -#endif /* WGL_NV_swap_group */ - -/* ----------------------- WGL_NV_vertex_array_range ----------------------- */ - -#ifndef WGL_NV_vertex_array_range -#define WGL_NV_vertex_array_range 1 - -typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); -typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); - -#define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV) -#define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV) - -#define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range) - -#endif /* WGL_NV_vertex_array_range */ - -/* -------------------------- WGL_NV_video_capture ------------------------- */ - -#ifndef WGL_NV_video_capture -#define WGL_NV_video_capture 1 - -#define WGL_UNIQUE_ID_NV 0x20CE -#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF - -DECLARE_HANDLE(HVIDEOINPUTDEVICENV); - -typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); -typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList); -typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); -typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int* piValue); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice); - -#define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV) -#define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV) -#define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV) -#define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV) -#define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV) - -#define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture) - -#endif /* WGL_NV_video_capture */ - -/* -------------------------- WGL_NV_video_output -------------------------- */ - -#ifndef WGL_NV_video_output -#define WGL_NV_video_output 1 - -#define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 -#define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 -#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 -#define WGL_VIDEO_OUT_COLOR_NV 0x20C3 -#define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 -#define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 -#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define WGL_VIDEO_OUT_FRAME 0x20C8 -#define WGL_VIDEO_OUT_FIELD_1 0x20C9 -#define WGL_VIDEO_OUT_FIELD_2 0x20CA -#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB -#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC - -DECLARE_HANDLE(HPVIDEODEV); - -typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); -typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice); -typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice); -typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer); -typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock); - -#define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV) -#define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV) -#define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV) -#define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV) -#define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV) -#define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV) - -#define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output) - -#endif /* WGL_NV_video_output */ - -/* -------------------------- WGL_OML_sync_control ------------------------- */ - -#ifndef WGL_OML_sync_control -#define WGL_OML_sync_control 1 - -typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator); -typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc); -typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); -typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); -typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc); -typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc); - -#define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML) -#define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML) -#define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML) -#define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML) -#define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML) -#define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML) - -#define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control) - -#endif /* WGL_OML_sync_control */ - -/* ------------------------------------------------------------------------- */ - -#ifdef GLEW_MX -#define WGLEW_EXPORT -#else -#define WGLEW_EXPORT GLEWAPI -#endif /* GLEW_MX */ - -#ifdef GLEW_MX -struct WGLEWContextStruct -{ -#endif /* GLEW_MX */ - -WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL; - -WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD; -WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD; -WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD; -WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD; -WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD; -WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD; -WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD; -WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD; -WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD; - -WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB; -WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB; -WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB; -WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB; - -WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB; - -WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB; - -WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB; -WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB; - -WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB; -WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB; -WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB; -WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB; -WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB; - -WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB; -WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB; -WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB; - -WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB; -WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB; -WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB; - -WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT; -WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT; -WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT; -WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT; - -WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT; - -WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT; -WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT; - -WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT; -WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT; -WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT; -WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT; -WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT; - -WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT; -WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT; -WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT; - -WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT; -WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT; - -WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D; -WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D; - -WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D; -WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D; -WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D; -WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D; - -WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D; -WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D; -WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D; -WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D; -WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D; -WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D; -WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D; -WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D; -WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D; -WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D; -WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D; -WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D; - -WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D; -WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D; -WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D; -WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D; - -WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D; -WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D; -WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D; -WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D; - -WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D; -WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D; -WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D; -WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D; - -WGLEW_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV; -WGLEW_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV; -WGLEW_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV; -WGLEW_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV; -WGLEW_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV; -WGLEW_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV; -WGLEW_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV; -WGLEW_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV; - -WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV; - -WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV; -WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV; -WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV; -WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV; -WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV; - -WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV; -WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV; -WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV; - -WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV; -WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV; -WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV; -WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV; -WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV; -WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV; - -WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV; -WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV; - -WGLEW_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV; -WGLEW_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV; -WGLEW_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV; -WGLEW_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV; -WGLEW_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV; - -WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV; -WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV; -WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV; -WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV; -WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV; -WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV; - -WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML; -WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML; -WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML; -WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML; -WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML; -WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML; -WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample; -WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control; -WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association; -WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region; -WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context; -WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile; -WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_robustness; -WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string; -WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB; -WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read; -WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample; -WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer; -WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format; -WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float; -WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture; -WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float; -WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle; -WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile; -WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float; -WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table; -WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string; -WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB; -WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read; -WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample; -WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer; -WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format; -WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float; -WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control; -WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control; -WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma; -WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock; -WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer; -WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock; -WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage; -WGLEW_EXPORT GLboolean __WGLEW_NV_DX_interop; -WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image; -WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer; -WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity; -WGLEW_EXPORT GLboolean __WGLEW_NV_multisample_coverage; -WGLEW_EXPORT GLboolean __WGLEW_NV_present_video; -WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture; -WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle; -WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group; -WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range; -WGLEW_EXPORT GLboolean __WGLEW_NV_video_capture; -WGLEW_EXPORT GLboolean __WGLEW_NV_video_output; -WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control; - -#ifdef GLEW_MX -}; /* WGLEWContextStruct */ -#endif /* GLEW_MX */ - -/* ------------------------------------------------------------------------- */ - -#ifdef GLEW_MX - -typedef struct WGLEWContextStruct WGLEWContext; -GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); -GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name); - -#define wglewInit() wglewContextInit(wglewGetContext()) -#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) - -#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) -#define WGLEW_GET_FUN(x) wglewGetContext()->x - -#else /* GLEW_MX */ - -#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) -#define WGLEW_GET_FUN(x) x - -GLEWAPI GLboolean wglewIsSupported (const char* name); - -#endif /* GLEW_MX */ - -GLEWAPI GLboolean wglewGetExtension (const char* name); - -#ifdef __cplusplus -} -#endif - -#undef GLEWAPI - -#endif /* __wglew_h__ */ diff --git a/Demos/Glut/GL/wglext.h b/Demos/Glut/GL/wglext.h deleted file mode 100644 index 8c6192c27..000000000 --- a/Demos/Glut/GL/wglext.h +++ /dev/null @@ -1,466 +0,0 @@ -#ifndef __wglext_h_ -#define __wglext_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-2000 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__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif - -/*************************************************************/ - -/* Header file version number */ -#define WGL_WGLEXT_VERSION 1 - -#ifndef WGL_ARB_buffer_region -#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 -#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 -#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 -#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 -#endif - -#ifndef WGL_ARB_extensions_string -#endif - -#ifndef WGL_ARB_pixel_format -#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 -#define WGL_DRAW_TO_WINDOW_ARB 0x2001 -#define WGL_DRAW_TO_BITMAP_ARB 0x2002 -#define WGL_ACCELERATION_ARB 0x2003 -#define WGL_NEED_PALETTE_ARB 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 -#define WGL_SWAP_METHOD_ARB 0x2007 -#define WGL_NUMBER_OVERLAYS_ARB 0x2008 -#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 -#define WGL_TRANSPARENT_ARB 0x200A -#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 -#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 -#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 -#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A -#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B -#define WGL_SHARE_DEPTH_ARB 0x200C -#define WGL_SHARE_STENCIL_ARB 0x200D -#define WGL_SHARE_ACCUM_ARB 0x200E -#define WGL_SUPPORT_GDI_ARB 0x200F -#define WGL_SUPPORT_OPENGL_ARB 0x2010 -#define WGL_DOUBLE_BUFFER_ARB 0x2011 -#define WGL_STEREO_ARB 0x2012 -#define WGL_PIXEL_TYPE_ARB 0x2013 -#define WGL_COLOR_BITS_ARB 0x2014 -#define WGL_RED_BITS_ARB 0x2015 -#define WGL_RED_SHIFT_ARB 0x2016 -#define WGL_GREEN_BITS_ARB 0x2017 -#define WGL_GREEN_SHIFT_ARB 0x2018 -#define WGL_BLUE_BITS_ARB 0x2019 -#define WGL_BLUE_SHIFT_ARB 0x201A -#define WGL_ALPHA_BITS_ARB 0x201B -#define WGL_ALPHA_SHIFT_ARB 0x201C -#define WGL_ACCUM_BITS_ARB 0x201D -#define WGL_ACCUM_RED_BITS_ARB 0x201E -#define WGL_ACCUM_GREEN_BITS_ARB 0x201F -#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 -#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 -#define WGL_DEPTH_BITS_ARB 0x2022 -#define WGL_STENCIL_BITS_ARB 0x2023 -#define WGL_AUX_BUFFERS_ARB 0x2024 -#define WGL_NO_ACCELERATION_ARB 0x2025 -#define WGL_GENERIC_ACCELERATION_ARB 0x2026 -#define WGL_FULL_ACCELERATION_ARB 0x2027 -#define WGL_SWAP_EXCHANGE_ARB 0x2028 -#define WGL_SWAP_COPY_ARB 0x2029 -#define WGL_SWAP_UNDEFINED_ARB 0x202A -#define WGL_TYPE_RGBA_ARB 0x202B -#define WGL_TYPE_COLORINDEX_ARB 0x202C -#endif - -#ifndef WGL_ARB_make_current_read -#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 -#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 -#endif - -#ifndef WGL_ARB_pbuffer -#define WGL_DRAW_TO_PBUFFER_ARB 0x202D -#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E -#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 -#define WGL_PBUFFER_LARGEST_ARB 0x2033 -#define WGL_PBUFFER_WIDTH_ARB 0x2034 -#define WGL_PBUFFER_HEIGHT_ARB 0x2035 -#define WGL_PBUFFER_LOST_ARB 0x2036 -#endif - -#ifndef WGL_ARB_render_texture -#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 -#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 -#define WGL_TEXTURE_FORMAT_ARB 0x2072 -#define WGL_TEXTURE_TARGET_ARB 0x2073 -#define WGL_MIPMAP_TEXTURE_ARB 0x2074 -#define WGL_TEXTURE_RGB_ARB 0x2075 -#define WGL_TEXTURE_RGBA_ARB 0x2076 -#define WGL_NO_TEXTURE_ARB 0x2077 -#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 -#define WGL_TEXTURE_1D_ARB 0x2079 -#define WGL_TEXTURE_2D_ARB 0x207A -#define WGL_MIPMAP_LEVEL_ARB 0x207B -#define WGL_CUBE_MAP_FACE_ARB 0x207C -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 -#define WGL_FRONT_LEFT_ARB 0x2083 -#define WGL_FRONT_RIGHT_ARB 0x2084 -#define WGL_BACK_LEFT_ARB 0x2085 -#define WGL_BACK_RIGHT_ARB 0x2086 -#define WGL_AUX0_ARB 0x2087 -#define WGL_AUX1_ARB 0x2088 -#define WGL_AUX2_ARB 0x2089 -#define WGL_AUX3_ARB 0x208A -#define WGL_AUX4_ARB 0x208B -#define WGL_AUX5_ARB 0x208C -#define WGL_AUX6_ARB 0x208D -#define WGL_AUX7_ARB 0x208E -#define WGL_AUX8_ARB 0x208F -#define WGL_AUX9_ARB 0x2090 -#endif - -#ifndef WGL_EXT_make_current_read -#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 -#endif - -#ifndef WGL_EXT_pixel_format -#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 -#define WGL_DRAW_TO_WINDOW_EXT 0x2001 -#define WGL_DRAW_TO_BITMAP_EXT 0x2002 -#define WGL_ACCELERATION_EXT 0x2003 -#define WGL_NEED_PALETTE_EXT 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 -#define WGL_SWAP_METHOD_EXT 0x2007 -#define WGL_NUMBER_OVERLAYS_EXT 0x2008 -#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 -#define WGL_TRANSPARENT_EXT 0x200A -#define WGL_TRANSPARENT_VALUE_EXT 0x200B -#define WGL_SHARE_DEPTH_EXT 0x200C -#define WGL_SHARE_STENCIL_EXT 0x200D -#define WGL_SHARE_ACCUM_EXT 0x200E -#define WGL_SUPPORT_GDI_EXT 0x200F -#define WGL_SUPPORT_OPENGL_EXT 0x2010 -#define WGL_DOUBLE_BUFFER_EXT 0x2011 -#define WGL_STEREO_EXT 0x2012 -#define WGL_PIXEL_TYPE_EXT 0x2013 -#define WGL_COLOR_BITS_EXT 0x2014 -#define WGL_RED_BITS_EXT 0x2015 -#define WGL_RED_SHIFT_EXT 0x2016 -#define WGL_GREEN_BITS_EXT 0x2017 -#define WGL_GREEN_SHIFT_EXT 0x2018 -#define WGL_BLUE_BITS_EXT 0x2019 -#define WGL_BLUE_SHIFT_EXT 0x201A -#define WGL_ALPHA_BITS_EXT 0x201B -#define WGL_ALPHA_SHIFT_EXT 0x201C -#define WGL_ACCUM_BITS_EXT 0x201D -#define WGL_ACCUM_RED_BITS_EXT 0x201E -#define WGL_ACCUM_GREEN_BITS_EXT 0x201F -#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 -#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 -#define WGL_DEPTH_BITS_EXT 0x2022 -#define WGL_STENCIL_BITS_EXT 0x2023 -#define WGL_AUX_BUFFERS_EXT 0x2024 -#define WGL_NO_ACCELERATION_EXT 0x2025 -#define WGL_GENERIC_ACCELERATION_EXT 0x2026 -#define WGL_FULL_ACCELERATION_EXT 0x2027 -#define WGL_SWAP_EXCHANGE_EXT 0x2028 -#define WGL_SWAP_COPY_EXT 0x2029 -#define WGL_SWAP_UNDEFINED_EXT 0x202A -#define WGL_TYPE_RGBA_EXT 0x202B -#define WGL_TYPE_COLORINDEX_EXT 0x202C -#endif - -#ifndef WGL_EXT_pbuffer -#define WGL_DRAW_TO_PBUFFER_EXT 0x202D -#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E -#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 -#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 -#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 -#define WGL_PBUFFER_LARGEST_EXT 0x2033 -#define WGL_PBUFFER_WIDTH_EXT 0x2034 -#define WGL_PBUFFER_HEIGHT_EXT 0x2035 -#endif - -#ifndef WGL_EXT_depth_float -#define WGL_DEPTH_FLOAT_EXT 0x2040 -#endif - -#ifndef WGL_NV_render_texture_rectangle -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 -#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 -#endif - -#ifndef WGL_NV_render_depth_texture -#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 -#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 -#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 -#define WGL_DEPTH_COMPONENT_NV 0x20A7 -#endif - -#ifndef WGL_3DFX_multisample -#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 -#define WGL_SAMPLES_3DFX 0x2061 -#endif - -#ifndef WGL_EXT_multisample -#define WGL_SAMPLE_BUFFERS_EXT 0x2041 -#define WGL_SAMPLES_EXT 0x2042 -#endif - -#ifndef WGL_I3D_unknown_genlock_extension_name -#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 -#define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045 -#define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046 -#define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047 -#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 -#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 -#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A -#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B -#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C -#endif - -#ifndef WGL_I3D_unknown_gamma_extension_name -#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E -#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F -#endif - -#ifndef WGL_I3D_unknown_digital_video_cursor_extension_name -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 -#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 -#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 -#endif - - -/*************************************************************/ - -#ifndef WGL_ARB_pbuffer -DECLARE_HANDLE(HPBUFFERARB); -#endif -#ifndef WGL_EXT_pbuffer -DECLARE_HANDLE(HPBUFFEREXT); -#endif - -#ifndef WGL_ARB_buffer_region -#define WGL_ARB_buffer_region 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT); -extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE); -extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int); -extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); -typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); -typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); -typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); -#endif - -#ifndef WGL_ARB_extensions_string -#define WGL_ARB_extensions_string 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern const char * WINAPI wglGetExtensionsStringARB (HDC); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); -#endif - -#ifndef WGL_ARB_pixel_format -#define WGL_ARB_pixel_format 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *); -extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *); -extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#endif - -#ifndef WGL_ARB_make_current_read -#define WGL_ARB_make_current_read 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC); -extern HDC WINAPI wglGetCurrentReadDCARB (void); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void); -#endif - -#ifndef WGL_ARB_pbuffer -#define WGL_ARB_pbuffer 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *); -extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB); -extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC); -extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB); -extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); -#endif - -#ifndef WGL_EXT_display_color_table -#define WGL_EXT_display_color_table 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort); -extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint); -extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort); -extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length); -typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); -typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); -#endif - -#ifndef WGL_EXT_extensions_string -#define WGL_EXT_extensions_string 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern const char * WINAPI wglGetExtensionsStringEXT (void); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); -#endif - -#ifndef WGL_EXT_make_current_read -#define WGL_EXT_make_current_read 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC); -extern HDC WINAPI wglGetCurrentReadDCEXT (void); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void); -#endif - -#ifndef WGL_EXT_pbuffer -#define WGL_EXT_pbuffer 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *); -extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT); -extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC); -extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT); -extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); -typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); -typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); -typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); -#endif - -#ifndef WGL_EXT_pixel_format -#define WGL_EXT_pixel_format 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *); -extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *); -extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); -typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); -typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -#endif - -#ifndef WGL_EXT_swap_control -#define WGL_EXT_swap_control 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern BOOL WINAPI wglSwapIntervalEXT (int); -extern int WINAPI wglGetSwapIntervalEXT (void); -#endif /* WGL_WGLEXT_PROTOTYPES */ -typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); -typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); -#endif - -#ifndef WGL_WGL_EXT_depth_float -#define WGL_WGL_EXT_depth_float 1 -#endif - -#ifndef WGL_WGL_3DFX_multisample -#define WGL_WGL_3DFX_multisample 1 -#endif - -#ifndef WGL_WGL_EXT_multisample -#define WGL_WGL_EXT_multisample 1 -#endif - -/* added by Cass -- but this should already be in here! */ -#ifndef WGL_NV_allocate_memory -#define WGL_NV_allocate_memory 1 -#ifdef WGL_WGLEXT_PROTOTYPES -extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority); -extern void wglFreeMemoryNV(void * pointer); -#endif -typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority); -typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer); -#endif - -/* WGL_ARB_render_texture */ -#ifndef WGL_ARB_render_texture -#define WGL_ARB_render_texture 1 -typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); -typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList); -#endif - -#ifndef WGL_NV_render_texture_rectangle -#define WGL_NV_render_texture_rectangle 1 -#endif - -#ifndef WGL_NV_render_depth_texture -#define WGL_NV_render_depth_texture 1 -#endif - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/Demos/Glut/btGlutInclude.h b/Demos/Glut/btGlutInclude.h deleted file mode 100644 index d79cb5656..000000000 --- a/Demos/Glut/btGlutInclude.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2011 Advanced Micro Devices, Inc. http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef BT_GLUT_INCLUDE_H -#define BT_GLUT_INCLUDE_H - - -#ifdef _WIN32//for glut.h -#include -#endif - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#include -#include -#else - - -#ifdef _WINDOWS -#include -#include -#include -#else -#include -#include -#endif //_WINDOWS -#endif //APPLE - -#endif //BT_GLUT_INCLUDE_H diff --git a/Demos/Glut/glew32s.lib b/Demos/Glut/glew32s.lib deleted file mode 100644 index eb2d718e0..000000000 Binary files a/Demos/Glut/glew32s.lib and /dev/null differ diff --git a/Demos/Glut/glew64s.lib b/Demos/Glut/glew64s.lib deleted file mode 100644 index e9b15a682..000000000 Binary files a/Demos/Glut/glew64s.lib and /dev/null differ diff --git a/Demos/Glut/glut32.lib b/Demos/Glut/glut32.lib deleted file mode 100644 index 4f0a17685..000000000 Binary files a/Demos/Glut/glut32.lib and /dev/null differ diff --git a/Demos/Glut/glut64.lib b/Demos/Glut/glut64.lib deleted file mode 100644 index c9bd577b2..000000000 Binary files a/Demos/Glut/glut64.lib and /dev/null differ diff --git a/Demos/GyroscopicDemo/CMakeLists.txt b/Demos/GyroscopicDemo/CMakeLists.txt deleted file mode 100644 index f47d62f37..000000000 --- a/Demos/GyroscopicDemo/CMakeLists.txt +++ /dev/null @@ -1,51 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppGyroscopicDemo - GyroscopicDemo.cpp - GyroscopicDemo.h - main.cpp - ) -ELSE (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppGyroscopicDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32GyroscopicDemo.cpp - GyroscopicDemo.cpp - GyroscopicDemo.h - ) -ENDIF (USE_GLUT) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppGyroscopicDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppGyroscopicDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppGyroscopicDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/GyroscopicDemo/GyroscopicDemo.cpp b/Demos/GyroscopicDemo/GyroscopicDemo.cpp deleted file mode 100644 index cc1a926c5..000000000 --- a/Demos/GyroscopicDemo/GyroscopicDemo.cpp +++ /dev/null @@ -1,240 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" - -#include "GLDebugDrawer.h" - -#include "GLDebugFont.h" -#include //printf debugging - -#include "GyroscopicDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - - -#include "GLDebugDrawer.h" -static GLDebugDrawer gDebugDrawer; - - - - - -void GyroscopicDemo::setupEmptyDynamicsWorld() -{ - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - m_overlappingPairCache = new btDbvtBroadphase(); - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_constraintSolver,m_collisionConfiguration); -} - -void GyroscopicDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} -void GyroscopicDemo::initPhysics() -{ - m_azi=90; - m_ele = 20; - - setTexturing(true); - setShadows(true); - setCameraUp(btVector3(0,0,1)); - setCameraForwardAxis(1); - m_sundirection.setValue(0,-1000,-1000); - setCameraDistance(7.f); - - setupEmptyDynamicsWorld(); - m_dynamicsWorld->setGravity(btVector3(0,0,-9.8)); - m_dynamicsWorld->setDebugDrawer(&gDebugDrawer); - - - //btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(0.5))); - btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,0,1),0); - - m_collisionShapes.push_back(groundShape); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,0,0)); - btRigidBody* groundBody; - groundBody= localCreateRigidBody(0, groundTransform, groundShape); - groundBody->setFriction(btSqrt(2)); - btVector3 positions[2] = { - btVector3(0.8,-2,2), - btVector3(0.8,2,2) - }; - bool gyro[2] = { - true, - false - }; - - for (int i=0;i<2;i++) - { - btCylinderShapeZ* top = new btCylinderShapeZ(btVector3(1,1,0.125)); - btCapsuleShapeZ* pin = new btCapsuleShapeZ(0.05,1.5); - top->setMargin(0.01); - pin->setMargin(0.01); - btCompoundShape* compound = new btCompoundShape(); - compound->addChildShape(btTransform::getIdentity(),top); - compound->addChildShape(btTransform::getIdentity(),pin); - btVector3 localInertia; - top->calculateLocalInertia(1,localInertia); - btRigidBody* body = new btRigidBody(1,0,compound,localInertia); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(positions[i]); - body->setCenterOfMassTransform(tr); - body->setAngularVelocity(btVector3(0,0,15)); - body->setLinearVelocity(btVector3(0,.2,0)); - body->setFriction(btSqrt(1)); - m_dynamicsWorld->addRigidBody(body); - if (gyro[i]) - { - body->setFlags(BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY); - } else - { - body->setFlags(0); - } - body->setDamping(0.00001f,0.0001f); - - - } - -} - -void GyroscopicDemo::exitPhysics() -{ - - int i; - - //removed/delete constraints - for (i=m_dynamicsWorld->getNumConstraints()-1; i>=0 ;i--) - { - btTypedConstraint* constraint = m_dynamicsWorld->getConstraint(i); - m_dynamicsWorld->removeConstraint(constraint); - delete constraint; - } - - //remove the rigidbodies from the dynamics world and delete them - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - - - - //delete collision shapes - for (int j=0;jgetDebugDrawer() && once) - { - m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits); - once=false; - } - } - - - { - //during idle mode, just run 1 simulation step maximum - - int numSimSteps = m_dynamicsWorld->stepSimulation(dt,100,1./1000.f); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - - } - renderme(); - - - glFlush(); - swapBuffers(); -} - - - - -void GyroscopicDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - - renderme(); - - glFlush(); - swapBuffers(); -} - - diff --git a/Demos/GyroscopicDemo/GyroscopicDemo.h b/Demos/GyroscopicDemo/GyroscopicDemo.h deleted file mode 100644 index ad482dfdc..000000000 --- a/Demos/GyroscopicDemo/GyroscopicDemo.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BT_GYROSCOPIC_DEMO_H -#define BT_GYROSCOPIC_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -///GyroscopicDemo shows how to create a constraint, like Hinge or btGenericD6constraint -class GyroscopicDemo : public PlatformDemoApplication -{ - //keep track of variables to delete memory at the end - btAlignedObjectArray m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - void setupEmptyDynamicsWorld(); - - void clientResetScene(); - - - public: - - GyroscopicDemo(); - - virtual ~GyroscopicDemo(); - - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - GyroscopicDemo* demo = new GyroscopicDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BT_GYROSCOPIC_DEMO_H - diff --git a/Demos/GyroscopicDemo/GyroscopicSetup.h b/Demos/GyroscopicDemo/GyroscopicSetup.h deleted file mode 100644 index 0a7f8a197..000000000 --- a/Demos/GyroscopicDemo/GyroscopicSetup.h +++ /dev/null @@ -1,16 +0,0 @@ - -#ifndef GYROSCOPIC_SETUP_H -#define GYROSCOPIC_SETUP_H - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct GyroscopicSetup : public CommonRigidBodySetup -{ - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge); - -}; - - -#endif //GYROSCOPIC_SETUP_H diff --git a/Demos/GyroscopicDemo/Win32GyroscopicDemo.cpp b/Demos/GyroscopicDemo/Win32GyroscopicDemo.cpp deleted file mode 100644 index 0a82e8c54..000000000 --- a/Demos/GyroscopicDemo/Win32GyroscopicDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GyroscopicDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new GyroscopicDemo(); -} - -#endif diff --git a/Demos/GyroscopicDemo/main.cpp b/Demos/GyroscopicDemo/main.cpp deleted file mode 100644 index aa2e373f0..000000000 --- a/Demos/GyroscopicDemo/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "GyroscopicDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" - -#include "btBulletDynamicsCommon.h" - -int main(int argc,char** argv) -{ - - - - GyroscopicDemo* constraintDemo = new GyroscopicDemo(); - - - constraintDemo->initPhysics(); - constraintDemo->setDebugMode(btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits); - - return glutmain(argc, argv,640,480,"Constraint Demo. http://www.continuousphysics.com/Bullet/phpBB2/",constraintDemo); -} - diff --git a/Demos/InternalEdgeDemo/CMakeLists.txt b/Demos/InternalEdgeDemo/CMakeLists.txt deleted file mode 100644 index ca4b111f0..000000000 --- a/Demos/InternalEdgeDemo/CMakeLists.txt +++ /dev/null @@ -1,55 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GLUT) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppInternalEdgeDemo - InternalEdgeDemo.cpp - InternalEdgeDemo.h - main.cpp - ) -ELSE (USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ) - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppInternalEdgeDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - InternalEdgeDemo.cpp - InternalEdgeDemo.h - Win32InternalEdgeDemo.cpp - ) - -ENDIF (USE_GLUT) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppInternalEdgeDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppInternalEdgeDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppInternalEdgeDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp b/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp deleted file mode 100644 index 628849d28..000000000 --- a/Demos/InternalEdgeDemo/InternalEdgeDemo.cpp +++ /dev/null @@ -1,623 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#include "GLDebugFont.h" - - -//#define SHIFT_INDICES 1 -#define SWAP_WINDING 1 -//#define ROTATE_GROUND 1 -bool enable=true; - -#if defined (SHIFT_INDICES) && !defined (SWAP_WINDING) -//#define TEST_INCONSISTENT_WINDING -#endif - - - -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionDispatch/btInternalEdgeUtility.h" -#include "Taru.mdl" - -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" -#include "InternalEdgeDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" -#include "BulletCollision/CollisionShapes/btTriangleShape.h" -#include "GLDebugDrawer.h" -GLDebugDrawer gDebugDrawer; - -static btVector3* gVertices=0; -static int* gIndices=0; -static btBvhTriangleMeshShape* trimeshShape =0; -static btRigidBody* staticBody = 0; -static float waveheight = 0.f; - -const float TRIANGLE_SIZE=20.f; - - - -///User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback; -inline btScalar calculateCombinedFriction(float friction0,float friction1) -{ - return 0.f; - btScalar friction = friction0 * friction1; - - const btScalar MAX_FRICTION = 10.f; - if (friction < -MAX_FRICTION) - friction = -MAX_FRICTION; - if (friction > MAX_FRICTION) - friction = MAX_FRICTION; - return friction; - -} - -inline btScalar calculateCombinedRestitution(float restitution0,float restitution1) -{ - return restitution0 * restitution1; -} - - -/////////////////////////////////////////////////////////////// - - -static bool CustomMaterialCombinerCallback(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) -{ - - if (enable) - { - btAdjustInternalEdgeContacts(cp,colObj1Wrap,colObj0Wrap, partId1,index1); - //btAdjustInternalEdgeContacts(cp,colObj1,colObj0, partId1,index1, BT_TRIANGLE_CONVEX_BACKFACE_MODE); - //btAdjustInternalEdgeContacts(cp,colObj1,colObj0, partId1,index1, BT_TRIANGLE_CONVEX_DOUBLE_SIDED+BT_TRIANGLE_CONCAVE_DOUBLE_SIDED); - } - - float friction0 = colObj0Wrap->getCollisionObject()->getFriction(); - float friction1 = colObj1Wrap->getCollisionObject()->getFriction(); - float restitution0 = colObj0Wrap->getCollisionObject()->getRestitution(); - float restitution1 = colObj1Wrap->getCollisionObject()->getRestitution(); - - if (colObj0Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - friction0 = 1.0;//partId0,index0 - restitution0 = 0.f; - } - if (colObj1Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - if (index1&1) - { - friction1 = 1.0f;//partId1,index1 - } else - { - friction1 = 0.f; - } - restitution1 = 0.f; - } - - cp.m_combinedFriction = calculateCombinedFriction(friction0,friction1); - cp.m_combinedRestitution = calculateCombinedRestitution(restitution0,restitution1); - - //this return value is currently ignored, but to be on the safe side: return false if you don't calculate friction - return true; -} - -extern ContactAddedCallback gContactAddedCallback; - - const int NUM_VERTS_X = 2; - const int NUM_VERTS_Y = 2; - const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - -void InternalEdgeDemo::setVertexPositions(float waveheight, float offset) -{ - int i; - int j; - - for ( i=0;isetCollisionFlags( staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->setActivationState(DISABLE_DEACTIVATION); - } else - { - staticBody->setCollisionFlags( staticBody->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->forceActivationState(ACTIVE_TAG); - } - } - - DemoApplication::keyboardCallback(key,x,y); - -} - - - -void InternalEdgeDemo::initPhysics() -{ - - setTexturing(true); - setShadows(false);//true); - - #define TRISIZE 10.f - - gContactAddedCallback = CustomMaterialCombinerCallback; - -#define USE_TRIMESH_SHAPE 1 -#ifdef USE_TRIMESH_SHAPE - - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - - - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - - gVertices = new btVector3[totalVerts]; - gIndices = new int[totalTriangles*3]; - - int i; - - - setVertexPositions(waveheight,0.f); - - - //gVertices[1].setY(21.1); - //gVertices[1].setY(121.1); - gVertices[1].setY(.1f); - -#ifdef ROTATE_GROUND - //gVertices[1].setY(-1.1); -#else - //gVertices[1].setY(0.1); - //gVertices[1].setY(-0.1); - //gVertices[1].setY(-20.1); - //gVertices[1].setY(-20); -#endif - - int index=0; - for ( i=0;igetOptimizedBvh()->calculateSerializeBufferSize(); - buffer = btAlignedAlloc(numBytes,16); - bool swapEndian = false; - trimeshShape->getOptimizedBvh()->serialize(buffer,numBytes,swapEndian); - FILE* file = fopen("bvh.bin","wb"); - fwrite(buffer,1,numBytes,file); - fclose(file); - btAlignedFree(buffer); - - - -#else - - trimeshShape = new btBvhTriangleMeshShape(m_indexVertexArrays,useQuantizedAabbCompression,false); - - char* fileName = "bvh.bin"; - - FILE* file = fopen(fileName,"rb"); - int size=0; - btOptimizedBvh* bvh = 0; - - if (fseek(file, 0, SEEK_END) || (size = ftell(file)) == EOF || fseek(file, 0, SEEK_SET)) { /* File operations denied? ok, just close and return failure */ - printf("Error: cannot get filesize from %s\n", fileName); - exit(0); - } else - { - - fseek(file, 0, SEEK_SET); - - int buffersize = size+btOptimizedBvh::getAlignmentSerializationPadding(); - - void* buffer = btAlignedAlloc(buffersize,16); - int read = fread(buffer,1,size,file); - fclose(file); - bool swapEndian = false; - bvh = btOptimizedBvh::deSerializeInPlace(buffer,buffersize,swapEndian); - } - - trimeshShape->setOptimizedBvh(bvh); - -#endif - - btCollisionShape* groundShape = trimeshShape; - - btTriangleInfoMap* triangleInfoMap = new btTriangleInfoMap(); - - - btGenerateInternalEdgeInfo(trimeshShape,triangleInfoMap); - - - -#else - btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); - - m_collisionShapes.push_back(groundShape); - -#endif //USE_TRIMESH_SHAPE - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - - - m_broadphase = new btDbvtBroadphase(); - m_solver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); -/* -m_dynamicsWorld->getSolverInfo().m_splitImpulse = true; - m_dynamicsWorld->getSolverInfo().m_splitImpulsePenetrationThreshold = 1e30f; - m_dynamicsWorld->getSolverInfo().m_maxErrorReduction = 1e30f; - m_dynamicsWorld->getSolverInfo().m_erp =1.f; - m_dynamicsWorld->getSolverInfo().m_erp2 = 1.f; -*/ - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-2,0)); - - - btConvexHullShape* colShape = new btConvexHullShape(); - for (int i=0;iaddPoint(vtx); - } - //this will enable polyhedral contact clipping, better quality, slightly slower - colShape->initializePolyhedralFeatures(); - - //the polyhedral contact clipping can use either GJK or SAT test to find the separating axis - m_dynamicsWorld->getDispatchInfo().m_enableSatConvex=false; - - m_collisionShapes.push_back(colShape); - - { - for (int i=0;i<1;i++) - { - startTransform.setOrigin(btVector3(-10.f+i*3.f,2.2f+btScalar(i)*0.1f,-1.3f)); - btRigidBody* body = localCreateRigidBody(10, startTransform,colShape); - body->setActivationState(DISABLE_DEACTIVATION); - body->setLinearVelocity(btVector3(0,0,-1)); - //body->setContactProcessingThreshold(0.f); - } - } - { - btBoxShape* colShape = new btBoxShape(btVector3(1,1,1)); - colShape->initializePolyhedralFeatures(); - m_collisionShapes.push_back(colShape); - startTransform.setOrigin(btVector3(-16.f+i*3.f,1.f+btScalar(i)*0.1f,-1.3f)); - btRigidBody* body = localCreateRigidBody(10, startTransform,colShape); - body->setActivationState(DISABLE_DEACTIVATION); - body->setLinearVelocity(btVector3(0,0,-1)); - } - - startTransform.setIdentity(); -#ifdef ROTATE_GROUND - btQuaternion orn(btVector3(0,0,1),SIMD_PI); - startTransform.setOrigin(btVector3(-20,0,0)); - startTransform.setRotation(orn); -#endif //ROTATE_GROUND - - staticBody = localCreateRigidBody(mass, startTransform,groundShape); - //staticBody->setContactProcessingThreshold(-0.031f); - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);//STATIC_OBJECT); - - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - setDebugMode(btIDebugDraw::DBG_DrawText|btIDebugDraw::DBG_NoHelpText+btIDebugDraw::DBG_DrawWireframe+btIDebugDraw::DBG_DrawContactPoints); - - -#ifdef BT_INTERNAL_EDGE_DEBUG_DRAW - btSetDebugDrawer(&gDebugDrawer); -#endif //BT_INTERNAL_EDGE_DEBUG_DRAW - - -} - - -void InternalEdgeDemo::clientResetScene() -{ - DemoApplication::clientResetScene(); - for (int i=0;igetNumCollisionObjects();i++) - { - btCollisionObject* colobj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(colobj); - if (body && body->getInvMass() != 0.f) - { - - body->setLinearVelocity(btVector3(0,0,-1)); - } - - } -} - -void InternalEdgeDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_animatedMesh) - { - static float offset=0.f; - offset+=0.01f; - - // setVertexPositions(waveheight,offset); -#if 0 ///not currently supported, we need to update the btInternalTriangleInfoMap - int i; - int j; - btVector3 aabbMin(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); - btVector3 aabbMax(-BT_LARGE_FLOAT,-BT_LARGE_FLOAT,-BT_LARGE_FLOAT); - - for ( i=NUM_VERTS_X/2-3;ipartialRefitTree(aabbMin,aabbMax); -#else - btVector3 aabbMin,aabbMax; - trimeshShape->getMeshInterface()->calculateAabbBruteForce(aabbMin,aabbMax); - trimeshShape->refitTree(aabbMin,aabbMax); - -#endif - - - //for debugging: clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation. - //m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - } - - - - m_dynamicsWorld->stepSimulation(dt); - ///enable one of the following to debug (render debug lines each frame) - //m_dynamicsWorld->stepSimulation(1./800.,0); - //m_dynamicsWorld->stepSimulation(1./60.,100,1./800.); - //m_dynamicsWorld->stepSimulation(1./60.,0); - - - int lineWidth=450; - int xStart = m_glutScreenWidth - lineWidth; - int yStart = 20; - - if((getDebugMode() & btIDebugDraw::DBG_DrawText)!=0) - { - setOrthographicProjection(); - glDisable(GL_LIGHTING); - glColor3f(0, 0, 0); - char buf[124]; - - glRasterPos3f(xStart, yStart, 0); - if (enable) - { - sprintf(buf,"InternalEdgeUtility enabled"); - } else - { - sprintf(buf,"InternalEdgeUtility disabled"); - } - GLDebugDrawString(xStart,20,buf); - yStart+=20; - glRasterPos3f(xStart, yStart, 0); - sprintf(buf,"Press 'n' to toggle InternalEdgeUtility"); - yStart+=20; - GLDebugDrawString(xStart,yStart,buf); - glRasterPos3f(xStart, yStart, 0); - - resetPerspectiveProjection(); - glEnable(GL_LIGHTING); - } - - - renderme(); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - - glFlush(); - swapBuffers(); - -} - - - - -void InternalEdgeDemo::displayCallback(void) { - - clientMoveAndDisplay(); - /* - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - - glFlush(); - glutSwapBuffers(); - */ - -} - - - -void InternalEdgeDemo::exitPhysics() -{ - - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btTriangleIndexVertexArray* m_indexVertexArrays; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - bool m_animatedMesh; - - public: - - InternalEdgeDemo() : m_animatedMesh(true) - { - - } - void initPhysics(); - - void exitPhysics(); - - virtual ~InternalEdgeDemo() - { - exitPhysics(); - } - - virtual void clientResetScene(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - //to show refit works - void setVertexPositions(float waveheight, float offset); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - InternalEdgeDemo* demo = new InternalEdgeDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - }; -}; - -#endif //CONCAVE_DEMO_H - diff --git a/Demos/InternalEdgeDemo/Taru.mdl b/Demos/InternalEdgeDemo/Taru.mdl deleted file mode 100644 index 73f708c82..000000000 --- a/Demos/InternalEdgeDemo/Taru.mdl +++ /dev/null @@ -1,49 +0,0 @@ -#define TaruVtxCount 43 -#define TaruIdxCount 132 - -static float TaruVtx[] = { -1.08664f,-1.99237f,0.0f, -0.768369f,-1.99237f,-0.768369f, -1.28852f,1.34412e-007f,-1.28852f, -1.82224f,1.90735e-007f,0.0f, -0.0f,-1.99237f,-1.08664f, -0.0f,0.0f,-1.82224f, -0.0f,-1.99237f,-1.08664f, --0.768369f,-1.99237f,-0.768369f, --1.28852f,1.34412e-007f,-1.28852f, -0.0f,0.0f,-1.82224f, --1.08664f,-1.99237f,1.82086e-007f, --1.82224f,1.90735e-007f,1.59305e-007f, --0.768369f,-1.99237f,0.76837f, --1.28852f,2.47058e-007f,1.28852f, -1.42495e-007f,-1.99237f,1.08664f, -2.38958e-007f,2.70388e-007f,1.82224f, -0.768369f,-1.99237f,0.768369f, -1.28852f,2.47058e-007f,1.28852f, -0.768369f,1.99237f,-0.768369f, -1.08664f,1.99237f,0.0f, -0.0f,1.99237f,-1.08664f, --0.768369f,1.99237f,-0.768369f, -0.0f,1.99237f,-1.08664f, --1.08664f,1.99237f,0.0f, --0.768369f,1.99237f,0.768369f, -1.42495e-007f,1.99237f,1.08664f, -0.768369f,1.99237f,0.768369f, -1.42495e-007f,-1.99237f,1.08664f, --0.768369f,-1.99237f,0.76837f, --1.08664f,-1.99237f,1.82086e-007f, --0.768369f,-1.99237f,-0.768369f, -0.0f,-1.99237f,-1.08664f, -0.768369f,-1.99237f,-0.768369f, -1.08664f,-1.99237f,0.0f, -0.768369f,-1.99237f,0.768369f, -0.768369f,1.99237f,-0.768369f, -0.0f,1.99237f,-1.08664f, --0.768369f,1.99237f,-0.768369f, --1.08664f,1.99237f,0.0f, --0.768369f,1.99237f,0.768369f, -1.42495e-007f,1.99237f,1.08664f, -0.768369f,1.99237f,0.768369f, -1.08664f,1.99237f,0.0f, -}; - diff --git a/Demos/InternalEdgeDemo/Win32InternalEdgeDemo.cpp b/Demos/InternalEdgeDemo/Win32InternalEdgeDemo.cpp deleted file mode 100644 index f55071383..000000000 --- a/Demos/InternalEdgeDemo/Win32InternalEdgeDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "InternalEdgeDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new InternalEdgeDemo(); -} - -#endif diff --git a/Demos/InternalEdgeDemo/main.cpp b/Demos/InternalEdgeDemo/main.cpp deleted file mode 100644 index 596ecb385..000000000 --- a/Demos/InternalEdgeDemo/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ - -#include "InternalEdgeDemo.h" -#include "GlutStuff.h" - -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - - -int main(int argc,char** argv) -{ - - InternalEdgeDemo* internalEdgeDemo = new InternalEdgeDemo(); - internalEdgeDemo->initPhysics(); - internalEdgeDemo->setCameraDistance(30.f); - - - return glutmain(argc, argv,640,480,"Internal Edge Demo",internalEdgeDemo); -} - diff --git a/Demos/MovingConcaveDemo/CMakeLists.txt b/Demos/MovingConcaveDemo/CMakeLists.txt deleted file mode 100644 index e4a173022..000000000 --- a/Demos/MovingConcaveDemo/CMakeLists.txt +++ /dev/null @@ -1,36 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - - - -ADD_EXECUTABLE(AppMovingConcaveDemo -ConcavePhysicsDemo.cpp -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppMovingConcaveDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppMovingConcaveDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppMovingConcaveDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/MovingConcaveDemo/ConcaveDemo.h b/Demos/MovingConcaveDemo/ConcaveDemo.h deleted file mode 100644 index 0a7e31bcb..000000000 --- a/Demos/MovingConcaveDemo/ConcaveDemo.h +++ /dev/null @@ -1,48 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef CONCAVE_DEMO_H -#define CONCAVE_DEMO_H - -#include "GlutDemoApplication.h" - -struct btCollisionAlgorithmCreateFunc; - -///ConcaveDemo shows usage of static concave triangle meshes -///It also shows per-triangle material (friction/restitution) through CustomMaterialCombinerCallback -class ConcaveDemo : public GlutDemoApplication -{ - - btCollisionShape * m_trimeshShape; - - public: - - void initGImpactCollision(); - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void renderme(); - virtual void keyboardCallback(unsigned char key, int x, int y); - - ///Demo functions - void shootTrimesh(const btVector3& startPosition,const btVector3& destination); - - -}; - -#endif //CONCAVE_DEMO_H - diff --git a/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp b/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp deleted file mode 100644 index b04c61885..000000000 --- a/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp +++ /dev/null @@ -1,1926 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "ConcaveDemo.h" - - -#include "LinearMath/btDefaultMotionState.h" -#include "LinearMath/btIDebugDraw.h" -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btDefaultMotionState.h" -#include "BulletCollision/Gimpact/btGImpactShape.h" -#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h" -#include "GLDebugFont.h" - - - -#include "GLDebugDrawer.h" - -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - - -GLDebugDrawer debugDrawer1; - -//***************************THE FAMOUS BUNNY TRIMESH********************************************// - -#define REAL btScalar -const int NUM_TRIANGLES =902; -const int NUM_VERTICES = 453; -const int NUM_INDICES = NUM_TRIANGLES * 3; - - -REAL gVertices[NUM_VERTICES * 3] = { - REAL(-0.334392), REAL(0.133007), REAL(0.062259), - REAL(-0.350189), REAL(0.150354), REAL(-0.147769), - REAL(-0.234201), REAL(0.343811), REAL(-0.174307), - REAL(-0.200259), REAL(0.285207), REAL(0.093749), - REAL(0.003520), REAL(0.475208), REAL(-0.159365), - REAL(0.001856), REAL(0.419203), REAL(0.098582), - REAL(-0.252802), REAL(0.093666), REAL(0.237538), - REAL(-0.162901), REAL(0.237984), REAL(0.206905), - REAL(0.000865), REAL(0.318141), REAL(0.235370), - REAL(-0.414624), REAL(0.164083), REAL(-0.278254), - REAL(-0.262213), REAL(0.357334), REAL(-0.293246), - REAL(0.004628), REAL(0.482694), REAL(-0.338626), - REAL(-0.402162), REAL(0.133528), REAL(-0.443247), - REAL(-0.243781), REAL(0.324275), REAL(-0.436763), - REAL(0.005293), REAL(0.437592), REAL(-0.458332), - REAL(-0.339884), REAL(-0.041150), REAL(-0.668211), - REAL(-0.248382), REAL(0.255825), REAL(-0.627493), - REAL(0.006261), REAL(0.376103), REAL(-0.631506), - REAL(-0.216201), REAL(-0.126776), REAL(-0.886936), - REAL(-0.171075), REAL(0.011544), REAL(-0.881386), - REAL(-0.181074), REAL(0.098223), REAL(-0.814779), - REAL(-0.119891), REAL(0.218786), REAL(-0.760153), - REAL(-0.078895), REAL(0.276780), REAL(-0.739281), - REAL(0.006801), REAL(0.310959), REAL(-0.735661), - REAL(-0.168842), REAL(0.102387), REAL(-0.920381), - REAL(-0.104072), REAL(0.177278), REAL(-0.952530), - REAL(-0.129704), REAL(0.211848), REAL(-0.836678), - REAL(-0.099875), REAL(0.310931), REAL(-0.799381), - REAL(0.007237), REAL(0.361687), REAL(-0.794439), - REAL(-0.077913), REAL(0.258753), REAL(-0.921640), - REAL(0.007957), REAL(0.282241), REAL(-0.931680), - REAL(-0.252222), REAL(-0.550401), REAL(-0.557810), - REAL(-0.267633), REAL(-0.603419), REAL(-0.655209), - REAL(-0.446838), REAL(-0.118517), REAL(-0.466159), - REAL(-0.459488), REAL(-0.093017), REAL(-0.311341), - REAL(-0.370645), REAL(-0.100108), REAL(-0.159454), - REAL(-0.371984), REAL(-0.091991), REAL(-0.011044), - REAL(-0.328945), REAL(-0.098269), REAL(0.088659), - REAL(-0.282452), REAL(-0.018862), REAL(0.311501), - REAL(-0.352403), REAL(-0.131341), REAL(0.144902), - REAL(-0.364126), REAL(-0.200299), REAL(0.202388), - REAL(-0.283965), REAL(-0.231869), REAL(0.023668), - REAL(-0.298943), REAL(-0.155218), REAL(0.369716), - REAL(-0.293787), REAL(-0.121856), REAL(0.419097), - REAL(-0.290163), REAL(-0.290797), REAL(0.107824), - REAL(-0.264165), REAL(-0.272849), REAL(0.036347), - REAL(-0.228567), REAL(-0.372573), REAL(0.290309), - REAL(-0.190431), REAL(-0.286997), REAL(0.421917), - REAL(-0.191039), REAL(-0.240973), REAL(0.507118), - REAL(-0.287272), REAL(-0.276431), REAL(-0.065444), - REAL(-0.295675), REAL(-0.280818), REAL(-0.174200), - REAL(-0.399537), REAL(-0.313131), REAL(-0.376167), - REAL(-0.392666), REAL(-0.488581), REAL(-0.427494), - REAL(-0.331669), REAL(-0.570185), REAL(-0.466054), - REAL(-0.282290), REAL(-0.618140), REAL(-0.589220), - REAL(-0.374238), REAL(-0.594882), REAL(-0.323298), - REAL(-0.381071), REAL(-0.629723), REAL(-0.350777), - REAL(-0.382112), REAL(-0.624060), REAL(-0.221577), - REAL(-0.272701), REAL(-0.566522), REAL(0.259157), - REAL(-0.256702), REAL(-0.663406), REAL(0.286079), - REAL(-0.280948), REAL(-0.428359), REAL(0.055790), - REAL(-0.184974), REAL(-0.508894), REAL(0.326265), - REAL(-0.279971), REAL(-0.526918), REAL(0.395319), - REAL(-0.282599), REAL(-0.663393), REAL(0.412411), - REAL(-0.188329), REAL(-0.475093), REAL(0.417954), - REAL(-0.263384), REAL(-0.663396), REAL(0.466604), - REAL(-0.209063), REAL(-0.663393), REAL(0.509344), - REAL(-0.002044), REAL(-0.319624), REAL(0.553078), - REAL(-0.001266), REAL(-0.371260), REAL(0.413296), - REAL(-0.219753), REAL(-0.339762), REAL(-0.040921), - REAL(-0.256986), REAL(-0.282511), REAL(-0.006349), - REAL(-0.271706), REAL(-0.260881), REAL(0.001764), - REAL(-0.091191), REAL(-0.419184), REAL(-0.045912), - REAL(-0.114944), REAL(-0.429752), REAL(-0.124739), - REAL(-0.113970), REAL(-0.382987), REAL(-0.188540), - REAL(-0.243012), REAL(-0.464942), REAL(-0.242850), - REAL(-0.314815), REAL(-0.505402), REAL(-0.324768), - REAL(0.002774), REAL(-0.437526), REAL(-0.262766), - REAL(-0.072625), REAL(-0.417748), REAL(-0.221440), - REAL(-0.160112), REAL(-0.476932), REAL(-0.293450), - REAL(0.003859), REAL(-0.453425), REAL(-0.443916), - REAL(-0.120363), REAL(-0.581567), REAL(-0.438689), - REAL(-0.091499), REAL(-0.584191), REAL(-0.294511), - REAL(-0.116469), REAL(-0.599861), REAL(-0.188308), - REAL(-0.208032), REAL(-0.513640), REAL(-0.134649), - REAL(-0.235749), REAL(-0.610017), REAL(-0.040939), - REAL(-0.344916), REAL(-0.622487), REAL(-0.085380), - REAL(-0.336401), REAL(-0.531864), REAL(-0.212298), - REAL(0.001961), REAL(-0.459550), REAL(-0.135547), - REAL(-0.058296), REAL(-0.430536), REAL(-0.043440), - REAL(0.001378), REAL(-0.449511), REAL(-0.037762), - REAL(-0.130135), REAL(-0.510222), REAL(0.079144), - REAL(0.000142), REAL(-0.477549), REAL(0.157064), - REAL(-0.114284), REAL(-0.453206), REAL(0.304397), - REAL(-0.000592), REAL(-0.443558), REAL(0.285401), - REAL(-0.056215), REAL(-0.663402), REAL(0.326073), - REAL(-0.026248), REAL(-0.568010), REAL(0.273318), - REAL(-0.049261), REAL(-0.531064), REAL(0.389854), - REAL(-0.127096), REAL(-0.663398), REAL(0.479316), - REAL(-0.058384), REAL(-0.663401), REAL(0.372891), - REAL(-0.303961), REAL(0.054199), REAL(0.625921), - REAL(-0.268594), REAL(0.193403), REAL(0.502766), - REAL(-0.277159), REAL(0.126123), REAL(0.443289), - REAL(-0.287605), REAL(-0.005722), REAL(0.531844), - REAL(-0.231396), REAL(-0.121289), REAL(0.587387), - REAL(-0.253475), REAL(-0.081797), REAL(0.756541), - REAL(-0.195164), REAL(-0.137969), REAL(0.728011), - REAL(-0.167673), REAL(-0.156573), REAL(0.609388), - REAL(-0.145917), REAL(-0.169029), REAL(0.697600), - REAL(-0.077776), REAL(-0.214247), REAL(0.622586), - REAL(-0.076873), REAL(-0.214971), REAL(0.696301), - REAL(-0.002341), REAL(-0.233135), REAL(0.622859), - REAL(-0.002730), REAL(-0.213526), REAL(0.691267), - REAL(-0.003136), REAL(-0.192628), REAL(0.762731), - REAL(-0.056136), REAL(-0.201222), REAL(0.763806), - REAL(-0.114589), REAL(-0.166192), REAL(0.770723), - REAL(-0.155145), REAL(-0.129632), REAL(0.791738), - REAL(-0.183611), REAL(-0.058705), REAL(0.847012), - REAL(-0.165562), REAL(0.001980), REAL(0.833386), - REAL(-0.220084), REAL(0.019914), REAL(0.768935), - REAL(-0.255730), REAL(0.090306), REAL(0.670782), - REAL(-0.255594), REAL(0.113833), REAL(0.663389), - REAL(-0.226380), REAL(0.212655), REAL(0.617740), - REAL(-0.003367), REAL(-0.195342), REAL(0.799680), - REAL(-0.029743), REAL(-0.210508), REAL(0.827180), - REAL(-0.003818), REAL(-0.194783), REAL(0.873636), - REAL(-0.004116), REAL(-0.157907), REAL(0.931268), - REAL(-0.031280), REAL(-0.184555), REAL(0.889476), - REAL(-0.059885), REAL(-0.184448), REAL(0.841330), - REAL(-0.135333), REAL(-0.164332), REAL(0.878200), - REAL(-0.085574), REAL(-0.170948), REAL(0.925547), - REAL(-0.163833), REAL(-0.094170), REAL(0.897114), - REAL(-0.138444), REAL(-0.104250), REAL(0.945975), - REAL(-0.083497), REAL(-0.084934), REAL(0.979607), - REAL(-0.004433), REAL(-0.146642), REAL(0.985872), - REAL(-0.150715), REAL(0.032650), REAL(0.884111), - REAL(-0.135892), REAL(-0.035520), REAL(0.945455), - REAL(-0.070612), REAL(0.036849), REAL(0.975733), - REAL(-0.004458), REAL(-0.042526), REAL(1.015670), - REAL(-0.004249), REAL(0.046042), REAL(1.003240), - REAL(-0.086969), REAL(0.133224), REAL(0.947633), - REAL(-0.003873), REAL(0.161605), REAL(0.970499), - REAL(-0.125544), REAL(0.140012), REAL(0.917678), - REAL(-0.125651), REAL(0.250246), REAL(0.857602), - REAL(-0.003127), REAL(0.284070), REAL(0.878870), - REAL(-0.159174), REAL(0.125726), REAL(0.888878), - REAL(-0.183807), REAL(0.196970), REAL(0.844480), - REAL(-0.159890), REAL(0.291736), REAL(0.732480), - REAL(-0.199495), REAL(0.207230), REAL(0.779864), - REAL(-0.206182), REAL(0.164608), REAL(0.693257), - REAL(-0.186315), REAL(0.160689), REAL(0.817193), - REAL(-0.192827), REAL(0.166706), REAL(0.782271), - REAL(-0.175112), REAL(0.110008), REAL(0.860621), - REAL(-0.161022), REAL(0.057420), REAL(0.855111), - REAL(-0.172319), REAL(0.036155), REAL(0.816189), - REAL(-0.190318), REAL(0.064083), REAL(0.760605), - REAL(-0.195072), REAL(0.129179), REAL(0.731104), - REAL(-0.203126), REAL(0.410287), REAL(0.680536), - REAL(-0.216677), REAL(0.309274), REAL(0.642272), - REAL(-0.241515), REAL(0.311485), REAL(0.587832), - REAL(-0.002209), REAL(0.366663), REAL(0.749413), - REAL(-0.088230), REAL(0.396265), REAL(0.678635), - REAL(-0.170147), REAL(0.109517), REAL(0.840784), - REAL(-0.160521), REAL(0.067766), REAL(0.830650), - REAL(-0.181546), REAL(0.139805), REAL(0.812146), - REAL(-0.180495), REAL(0.148568), REAL(0.776087), - REAL(-0.180255), REAL(0.129125), REAL(0.744192), - REAL(-0.186298), REAL(0.078308), REAL(0.769352), - REAL(-0.167622), REAL(0.060539), REAL(0.806675), - REAL(-0.189876), REAL(0.102760), REAL(0.802582), - REAL(-0.108340), REAL(0.455446), REAL(0.657174), - REAL(-0.241585), REAL(0.527592), REAL(0.669296), - REAL(-0.265676), REAL(0.513366), REAL(0.634594), - REAL(-0.203073), REAL(0.478550), REAL(0.581526), - REAL(-0.266772), REAL(0.642330), REAL(0.602061), - REAL(-0.216961), REAL(0.564846), REAL(0.535435), - REAL(-0.202210), REAL(0.525495), REAL(0.475944), - REAL(-0.193888), REAL(0.467925), REAL(0.520606), - REAL(-0.265837), REAL(0.757267), REAL(0.500933), - REAL(-0.240306), REAL(0.653440), REAL(0.463215), - REAL(-0.309239), REAL(0.776868), REAL(0.304726), - REAL(-0.271009), REAL(0.683094), REAL(0.382018), - REAL(-0.312111), REAL(0.671099), REAL(0.286687), - REAL(-0.268791), REAL(0.624342), REAL(0.377231), - REAL(-0.302457), REAL(0.533996), REAL(0.360289), - REAL(-0.263656), REAL(0.529310), REAL(0.412564), - REAL(-0.282311), REAL(0.415167), REAL(0.447666), - REAL(-0.239201), REAL(0.442096), REAL(0.495604), - REAL(-0.220043), REAL(0.569026), REAL(0.445877), - REAL(-0.001263), REAL(0.395631), REAL(0.602029), - REAL(-0.057345), REAL(0.442535), REAL(0.572224), - REAL(-0.088927), REAL(0.506333), REAL(0.529106), - REAL(-0.125738), REAL(0.535076), REAL(0.612913), - REAL(-0.126251), REAL(0.577170), REAL(0.483159), - REAL(-0.149594), REAL(0.611520), REAL(0.557731), - REAL(-0.163188), REAL(0.660791), REAL(0.491080), - REAL(-0.172482), REAL(0.663387), REAL(0.415416), - REAL(-0.160464), REAL(0.591710), REAL(0.370659), - REAL(-0.156445), REAL(0.536396), REAL(0.378302), - REAL(-0.136496), REAL(0.444358), REAL(0.425226), - REAL(-0.095564), REAL(0.373768), REAL(0.473659), - REAL(-0.104146), REAL(0.315912), REAL(0.498104), - REAL(-0.000496), REAL(0.384194), REAL(0.473817), - REAL(-0.000183), REAL(0.297770), REAL(0.401486), - REAL(-0.129042), REAL(0.270145), REAL(0.434495), - REAL(0.000100), REAL(0.272963), REAL(0.349138), - REAL(-0.113060), REAL(0.236984), REAL(0.385554), - REAL(0.007260), REAL(0.016311), REAL(-0.883396), - REAL(0.007865), REAL(0.122104), REAL(-0.956137), - REAL(-0.032842), REAL(0.115282), REAL(-0.953252), - REAL(-0.089115), REAL(0.108449), REAL(-0.950317), - REAL(-0.047440), REAL(0.014729), REAL(-0.882756), - REAL(-0.104458), REAL(0.013137), REAL(-0.882070), - REAL(-0.086439), REAL(-0.584866), REAL(-0.608343), - REAL(-0.115026), REAL(-0.662605), REAL(-0.436732), - REAL(-0.071683), REAL(-0.665372), REAL(-0.606385), - REAL(-0.257884), REAL(-0.665381), REAL(-0.658052), - REAL(-0.272542), REAL(-0.665381), REAL(-0.592063), - REAL(-0.371322), REAL(-0.665382), REAL(-0.353620), - REAL(-0.372362), REAL(-0.665381), REAL(-0.224420), - REAL(-0.335166), REAL(-0.665380), REAL(-0.078623), - REAL(-0.225999), REAL(-0.665375), REAL(-0.038981), - REAL(-0.106719), REAL(-0.665374), REAL(-0.186351), - REAL(-0.081749), REAL(-0.665372), REAL(-0.292554), - REAL(0.006943), REAL(-0.091505), REAL(-0.858354), - REAL(0.006117), REAL(-0.280985), REAL(-0.769967), - REAL(0.004495), REAL(-0.502360), REAL(-0.559799), - REAL(-0.198638), REAL(-0.302135), REAL(-0.845816), - REAL(-0.237395), REAL(-0.542544), REAL(-0.587188), - REAL(-0.270001), REAL(-0.279489), REAL(-0.669861), - REAL(-0.134547), REAL(-0.119852), REAL(-0.959004), - REAL(-0.052088), REAL(-0.122463), REAL(-0.944549), - REAL(-0.124463), REAL(-0.293508), REAL(-0.899566), - REAL(-0.047616), REAL(-0.289643), REAL(-0.879292), - REAL(-0.168595), REAL(-0.529132), REAL(-0.654931), - REAL(-0.099793), REAL(-0.515719), REAL(-0.645873), - REAL(-0.186168), REAL(-0.605282), REAL(-0.724690), - REAL(-0.112970), REAL(-0.583097), REAL(-0.707469), - REAL(-0.108152), REAL(-0.665375), REAL(-0.700408), - REAL(-0.183019), REAL(-0.665378), REAL(-0.717630), - REAL(-0.349529), REAL(-0.334459), REAL(-0.511985), - REAL(-0.141182), REAL(-0.437705), REAL(-0.798194), - REAL(-0.212670), REAL(-0.448725), REAL(-0.737447), - REAL(-0.261111), REAL(-0.414945), REAL(-0.613835), - REAL(-0.077364), REAL(-0.431480), REAL(-0.778113), - REAL(0.005174), REAL(-0.425277), REAL(-0.651592), - REAL(0.089236), REAL(-0.431732), REAL(-0.777093), - REAL(0.271006), REAL(-0.415749), REAL(-0.610577), - REAL(0.223981), REAL(-0.449384), REAL(-0.734774), - REAL(0.153275), REAL(-0.438150), REAL(-0.796391), - REAL(0.358414), REAL(-0.335529), REAL(-0.507649), - REAL(0.193434), REAL(-0.665946), REAL(-0.715325), - REAL(0.118363), REAL(-0.665717), REAL(-0.699021), - REAL(0.123515), REAL(-0.583454), REAL(-0.706020), - REAL(0.196851), REAL(-0.605860), REAL(-0.722345), - REAL(0.109788), REAL(-0.516035), REAL(-0.644590), - REAL(0.178656), REAL(-0.529656), REAL(-0.652804), - REAL(0.061157), REAL(-0.289807), REAL(-0.878626), - REAL(0.138234), REAL(-0.293905), REAL(-0.897958), - REAL(0.066933), REAL(-0.122643), REAL(-0.943820), - REAL(0.149571), REAL(-0.120281), REAL(-0.957264), - REAL(0.280989), REAL(-0.280321), REAL(-0.666487), - REAL(0.246581), REAL(-0.543275), REAL(-0.584224), - REAL(0.211720), REAL(-0.302754), REAL(-0.843303), - REAL(0.086966), REAL(-0.665627), REAL(-0.291520), - REAL(0.110634), REAL(-0.665702), REAL(-0.185021), - REAL(0.228099), REAL(-0.666061), REAL(-0.036201), - REAL(0.337743), REAL(-0.666396), REAL(-0.074503), - REAL(0.376722), REAL(-0.666513), REAL(-0.219833), - REAL(0.377265), REAL(-0.666513), REAL(-0.349036), - REAL(0.281411), REAL(-0.666217), REAL(-0.588670), - REAL(0.267564), REAL(-0.666174), REAL(-0.654834), - REAL(0.080745), REAL(-0.665602), REAL(-0.605452), - REAL(0.122016), REAL(-0.662963), REAL(-0.435280), - REAL(0.095767), REAL(-0.585141), REAL(-0.607228), - REAL(0.118944), REAL(0.012799), REAL(-0.880702), - REAL(0.061944), REAL(0.014564), REAL(-0.882086), - REAL(0.104725), REAL(0.108156), REAL(-0.949130), - REAL(0.048513), REAL(0.115159), REAL(-0.952753), - REAL(0.112696), REAL(0.236643), REAL(0.386937), - REAL(0.128177), REAL(0.269757), REAL(0.436071), - REAL(0.102643), REAL(0.315600), REAL(0.499370), - REAL(0.094535), REAL(0.373481), REAL(0.474824), - REAL(0.136270), REAL(0.443946), REAL(0.426895), - REAL(0.157071), REAL(0.535923), REAL(0.380222), - REAL(0.161350), REAL(0.591224), REAL(0.372630), - REAL(0.173035), REAL(0.662865), REAL(0.417531), - REAL(0.162808), REAL(0.660299), REAL(0.493077), - REAL(0.148250), REAL(0.611070), REAL(0.559555), - REAL(0.125719), REAL(0.576790), REAL(0.484702), - REAL(0.123489), REAL(0.534699), REAL(0.614440), - REAL(0.087621), REAL(0.506066), REAL(0.530188), - REAL(0.055321), REAL(0.442365), REAL(0.572915), - REAL(0.219936), REAL(0.568361), REAL(0.448571), - REAL(0.238099), REAL(0.441375), REAL(0.498528), - REAL(0.281711), REAL(0.414315), REAL(0.451121), - REAL(0.263833), REAL(0.528513), REAL(0.415794), - REAL(0.303284), REAL(0.533081), REAL(0.363998), - REAL(0.269687), REAL(0.623528), REAL(0.380528), - REAL(0.314255), REAL(0.670153), REAL(0.290524), - REAL(0.272023), REAL(0.682273), REAL(0.385343), - REAL(0.311480), REAL(0.775931), REAL(0.308527), - REAL(0.240239), REAL(0.652714), REAL(0.466159), - REAL(0.265619), REAL(0.756464), REAL(0.504187), - REAL(0.192562), REAL(0.467341), REAL(0.522972), - REAL(0.201605), REAL(0.524885), REAL(0.478417), - REAL(0.215743), REAL(0.564193), REAL(0.538084), - REAL(0.264969), REAL(0.641527), REAL(0.605317), - REAL(0.201031), REAL(0.477940), REAL(0.584002), - REAL(0.263086), REAL(0.512567), REAL(0.637832), - REAL(0.238615), REAL(0.526867), REAL(0.672237), - REAL(0.105309), REAL(0.455123), REAL(0.658482), - REAL(0.183993), REAL(0.102195), REAL(0.804872), - REAL(0.161563), REAL(0.060042), REAL(0.808692), - REAL(0.180748), REAL(0.077754), REAL(0.771600), - REAL(0.175168), REAL(0.128588), REAL(0.746368), - REAL(0.175075), REAL(0.148030), REAL(0.778264), - REAL(0.175658), REAL(0.139265), REAL(0.814333), - REAL(0.154191), REAL(0.067291), REAL(0.832578), - REAL(0.163818), REAL(0.109013), REAL(0.842830), - REAL(0.084760), REAL(0.396004), REAL(0.679695), - REAL(0.238888), REAL(0.310760), REAL(0.590775), - REAL(0.213380), REAL(0.308625), REAL(0.644905), - REAL(0.199666), REAL(0.409678), REAL(0.683003), - REAL(0.190143), REAL(0.128597), REAL(0.733463), - REAL(0.184833), REAL(0.063516), REAL(0.762902), - REAL(0.166070), REAL(0.035644), REAL(0.818261), - REAL(0.154361), REAL(0.056943), REAL(0.857042), - REAL(0.168542), REAL(0.109489), REAL(0.862725), - REAL(0.187387), REAL(0.166131), REAL(0.784599), - REAL(0.180428), REAL(0.160135), REAL(0.819438), - REAL(0.201823), REAL(0.163991), REAL(0.695756), - REAL(0.194206), REAL(0.206635), REAL(0.782275), - REAL(0.155438), REAL(0.291260), REAL(0.734412), - REAL(0.177696), REAL(0.196424), REAL(0.846693), - REAL(0.152305), REAL(0.125256), REAL(0.890786), - REAL(0.119546), REAL(0.249876), REAL(0.859104), - REAL(0.118369), REAL(0.139643), REAL(0.919173), - REAL(0.079410), REAL(0.132973), REAL(0.948652), - REAL(0.062419), REAL(0.036648), REAL(0.976547), - REAL(0.127847), REAL(-0.035919), REAL(0.947070), - REAL(0.143624), REAL(0.032206), REAL(0.885913), - REAL(0.074888), REAL(-0.085173), REAL(0.980577), - REAL(0.130184), REAL(-0.104656), REAL(0.947620), - REAL(0.156201), REAL(-0.094653), REAL(0.899074), - REAL(0.077366), REAL(-0.171194), REAL(0.926545), - REAL(0.127722), REAL(-0.164729), REAL(0.879810), - REAL(0.052670), REAL(-0.184618), REAL(0.842019), - REAL(0.023477), REAL(-0.184638), REAL(0.889811), - REAL(0.022626), REAL(-0.210587), REAL(0.827500), - REAL(0.223089), REAL(0.211976), REAL(0.620493), - REAL(0.251444), REAL(0.113067), REAL(0.666494), - REAL(0.251419), REAL(0.089540), REAL(0.673887), - REAL(0.214360), REAL(0.019258), REAL(0.771595), - REAL(0.158999), REAL(0.001490), REAL(0.835374), - REAL(0.176696), REAL(-0.059249), REAL(0.849218), - REAL(0.148696), REAL(-0.130091), REAL(0.793599), - REAL(0.108290), REAL(-0.166528), REAL(0.772088), - REAL(0.049820), REAL(-0.201382), REAL(0.764454), - REAL(0.071341), REAL(-0.215195), REAL(0.697209), - REAL(0.073148), REAL(-0.214475), REAL(0.623510), - REAL(0.140502), REAL(-0.169461), REAL(0.699354), - REAL(0.163374), REAL(-0.157073), REAL(0.611416), - REAL(0.189466), REAL(-0.138550), REAL(0.730366), - REAL(0.247593), REAL(-0.082554), REAL(0.759610), - REAL(0.227468), REAL(-0.121982), REAL(0.590197), - REAL(0.284702), REAL(-0.006586), REAL(0.535347), - REAL(0.275741), REAL(0.125287), REAL(0.446676), - REAL(0.266650), REAL(0.192594), REAL(0.506044), - REAL(0.300086), REAL(0.053287), REAL(0.629620), - REAL(0.055450), REAL(-0.663935), REAL(0.375065), - REAL(0.122854), REAL(-0.664138), REAL(0.482323), - REAL(0.046520), REAL(-0.531571), REAL(0.391918), - REAL(0.024824), REAL(-0.568450), REAL(0.275106), - REAL(0.053855), REAL(-0.663931), REAL(0.328224), - REAL(0.112829), REAL(-0.453549), REAL(0.305788), - REAL(0.131265), REAL(-0.510617), REAL(0.080746), - REAL(0.061174), REAL(-0.430716), REAL(-0.042710), - REAL(0.341019), REAL(-0.532887), REAL(-0.208150), - REAL(0.347705), REAL(-0.623533), REAL(-0.081139), - REAL(0.238040), REAL(-0.610732), REAL(-0.038037), - REAL(0.211764), REAL(-0.514274), REAL(-0.132078), - REAL(0.120605), REAL(-0.600219), REAL(-0.186856), - REAL(0.096985), REAL(-0.584476), REAL(-0.293357), - REAL(0.127621), REAL(-0.581941), REAL(-0.437170), - REAL(0.165902), REAL(-0.477425), REAL(-0.291453), - REAL(0.077720), REAL(-0.417975), REAL(-0.220519), - REAL(0.320892), REAL(-0.506363), REAL(-0.320874), - REAL(0.248214), REAL(-0.465684), REAL(-0.239842), - REAL(0.118764), REAL(-0.383338), REAL(-0.187114), - REAL(0.118816), REAL(-0.430106), REAL(-0.123307), - REAL(0.094131), REAL(-0.419464), REAL(-0.044777), - REAL(0.274526), REAL(-0.261706), REAL(0.005110), - REAL(0.259842), REAL(-0.283292), REAL(-0.003185), - REAL(0.222861), REAL(-0.340431), REAL(-0.038210), - REAL(0.204445), REAL(-0.664380), REAL(0.513353), - REAL(0.259286), REAL(-0.664547), REAL(0.471281), - REAL(0.185402), REAL(-0.476020), REAL(0.421718), - REAL(0.279163), REAL(-0.664604), REAL(0.417328), - REAL(0.277157), REAL(-0.528122), REAL(0.400208), - REAL(0.183069), REAL(-0.509812), REAL(0.329995), - REAL(0.282599), REAL(-0.429210), REAL(0.059242), - REAL(0.254816), REAL(-0.664541), REAL(0.290687), - REAL(0.271436), REAL(-0.567707), REAL(0.263966), - REAL(0.386561), REAL(-0.625221), REAL(-0.216870), - REAL(0.387086), REAL(-0.630883), REAL(-0.346073), - REAL(0.380021), REAL(-0.596021), REAL(-0.318679), - REAL(0.291269), REAL(-0.619007), REAL(-0.585707), - REAL(0.339280), REAL(-0.571198), REAL(-0.461946), - REAL(0.400045), REAL(-0.489778), REAL(-0.422640), - REAL(0.406817), REAL(-0.314349), REAL(-0.371230), - REAL(0.300588), REAL(-0.281718), REAL(-0.170549), - REAL(0.290866), REAL(-0.277304), REAL(-0.061905), - REAL(0.187735), REAL(-0.241545), REAL(0.509437), - REAL(0.188032), REAL(-0.287569), REAL(0.424234), - REAL(0.227520), REAL(-0.373262), REAL(0.293102), - REAL(0.266526), REAL(-0.273650), REAL(0.039597), - REAL(0.291592), REAL(-0.291676), REAL(0.111386), - REAL(0.291914), REAL(-0.122741), REAL(0.422683), - REAL(0.297574), REAL(-0.156119), REAL(0.373368), - REAL(0.286603), REAL(-0.232731), REAL(0.027162), - REAL(0.364663), REAL(-0.201399), REAL(0.206850), - REAL(0.353855), REAL(-0.132408), REAL(0.149228), - REAL(0.282208), REAL(-0.019715), REAL(0.314960), - REAL(0.331187), REAL(-0.099266), REAL(0.092701), - REAL(0.375463), REAL(-0.093120), REAL(-0.006467), - REAL(0.375917), REAL(-0.101236), REAL(-0.154882), - REAL(0.466635), REAL(-0.094416), REAL(-0.305669), - REAL(0.455805), REAL(-0.119881), REAL(-0.460632), - REAL(0.277465), REAL(-0.604242), REAL(-0.651871), - REAL(0.261022), REAL(-0.551176), REAL(-0.554667), - REAL(0.093627), REAL(0.258494), REAL(-0.920589), - REAL(0.114248), REAL(0.310608), REAL(-0.798070), - REAL(0.144232), REAL(0.211434), REAL(-0.835001), - REAL(0.119916), REAL(0.176940), REAL(-0.951159), - REAL(0.184061), REAL(0.101854), REAL(-0.918220), - REAL(0.092431), REAL(0.276521), REAL(-0.738231), - REAL(0.133504), REAL(0.218403), REAL(-0.758602), - REAL(0.194987), REAL(0.097655), REAL(-0.812476), - REAL(0.185542), REAL(0.011005), REAL(-0.879202), - REAL(0.230315), REAL(-0.127450), REAL(-0.884202), - REAL(0.260471), REAL(0.255056), REAL(-0.624378), - REAL(0.351567), REAL(-0.042194), REAL(-0.663976), - REAL(0.253742), REAL(0.323524), REAL(-0.433716), - REAL(0.411612), REAL(0.132299), REAL(-0.438264), - REAL(0.270513), REAL(0.356530), REAL(-0.289984), - REAL(0.422146), REAL(0.162819), REAL(-0.273130), - REAL(0.164724), REAL(0.237490), REAL(0.208912), - REAL(0.253806), REAL(0.092900), REAL(0.240640), - REAL(0.203608), REAL(0.284597), REAL(0.096223), - REAL(0.241006), REAL(0.343093), REAL(-0.171396), - REAL(0.356076), REAL(0.149288), REAL(-0.143443), - REAL(0.337656), REAL(0.131992), REAL(0.066374) -}; - -int gIndices[NUM_TRIANGLES][3] = { - {126,134,133}, - {342,138,134}, - {133,134,138}, - {126,342,134}, - {312,316,317}, - {169,163,162}, - {312,317,319}, - {312,319,318}, - {169,162,164}, - {169,168,163}, - {312,314,315}, - {169,164,165}, - {169,167,168}, - {312,315,316}, - {312,313,314}, - {169,165,166}, - {169,166,167}, - {312,318,313}, - {308,304,305}, - {308,305,306}, - {179,181,188}, - {177,173,175}, - {177,175,176}, - {302,293,300}, - {322,294,304}, - {188,176,175}, - {188,175,179}, - {158,177,187}, - {305,293,302}, - {305,302,306}, - {322,304,308}, - {188,181,183}, - {158,173,177}, - {293,298,300}, - {304,294,296}, - {304,296,305}, - {185,176,188}, - {185,188,183}, - {187,177,176}, - {187,176,185}, - {305,296,298}, - {305,298,293}, - {436,432, 28}, - {436, 28, 23}, - {434,278,431}, - { 30,208,209}, - { 30,209, 29}, - { 19, 20, 24}, - {208,207,211}, - {208,211,209}, - { 19,210,212}, - {433,434,431}, - {433,431,432}, - {433,432,436}, - {436,437,433}, - {277,275,276}, - {277,276,278}, - {209,210, 25}, - { 21, 26, 24}, - { 21, 24, 20}, - { 25, 26, 27}, - { 25, 27, 29}, - {435,439,277}, - {439,275,277}, - {432,431, 30}, - {432, 30, 28}, - {433,437,438}, - {433,438,435}, - {434,277,278}, - { 24, 25,210}, - { 24, 26, 25}, - { 29, 27, 28}, - { 29, 28, 30}, - { 19, 24,210}, - {208, 30,431}, - {208,431,278}, - {435,434,433}, - {435,277,434}, - { 25, 29,209}, - { 27, 22, 23}, - { 27, 23, 28}, - { 26, 22, 27}, - { 26, 21, 22}, - {212,210,209}, - {212,209,211}, - {207,208,278}, - {207,278,276}, - {439,435,438}, - { 12, 9, 10}, - { 12, 10, 13}, - { 2, 3, 5}, - { 2, 5, 4}, - { 16, 13, 14}, - { 16, 14, 17}, - { 22, 21, 16}, - { 13, 10, 11}, - { 13, 11, 14}, - { 1, 0, 3}, - { 1, 3, 2}, - { 15, 12, 16}, - { 19, 18, 15}, - { 19, 15, 16}, - { 19, 16, 20}, - { 9, 1, 2}, - { 9, 2, 10}, - { 3, 7, 8}, - { 3, 8, 5}, - { 16, 17, 23}, - { 16, 23, 22}, - { 21, 20, 16}, - { 10, 2, 4}, - { 10, 4, 11}, - { 0, 6, 7}, - { 0, 7, 3}, - { 12, 13, 16}, - {451,446,445}, - {451,445,450}, - {442,440,439}, - {442,439,438}, - {442,438,441}, - {421,420,422}, - {412,411,426}, - {412,426,425}, - {408,405,407}, - {413, 67, 68}, - {413, 68,414}, - {391,390,412}, - { 80,384,386}, - {404,406,378}, - {390,391,377}, - {390,377, 88}, - {400,415,375}, - {398,396,395}, - {398,395,371}, - {398,371,370}, - {112,359,358}, - {112,358,113}, - {351,352,369}, - {125,349,348}, - {345,343,342}, - {342,340,339}, - {341,335,337}, - {328,341,327}, - {331,323,333}, - {331,322,323}, - {327,318,319}, - {327,319,328}, - {315,314,324}, - {302,300,301}, - {302,301,303}, - {320,311,292}, - {285,284,289}, - {310,307,288}, - {310,288,290}, - {321,350,281}, - {321,281,282}, - {423,448,367}, - {272,273,384}, - {272,384,274}, - {264,265,382}, - {264,382,383}, - {440,442,261}, - {440,261,263}, - {252,253,254}, - {252,254,251}, - {262,256,249}, - {262,249,248}, - {228,243,242}, - {228, 31,243}, - {213,215,238}, - {213,238,237}, - { 19,212,230}, - {224,225,233}, - {224,233,231}, - {217,218, 56}, - {217, 56, 54}, - {217,216,239}, - {217,239,238}, - {217,238,215}, - {218,217,215}, - {218,215,214}, - { 6,102,206}, - {186,199,200}, - {197,182,180}, - {170,171,157}, - {201,200,189}, - {170,190,191}, - {170,191,192}, - {175,174,178}, - {175,178,179}, - {168,167,155}, - {122,149,158}, - {122,158,159}, - {135,153,154}, - {135,154,118}, - {143,140,141}, - {143,141,144}, - {132,133,136}, - {130,126,133}, - {124,125,127}, - {122,101,100}, - {122,100,121}, - {110,108,107}, - {110,107,109}, - { 98, 99, 97}, - { 98, 97, 64}, - { 98, 64, 66}, - { 87, 55, 57}, - { 83, 82, 79}, - { 83, 79, 84}, - { 78, 74, 50}, - { 49, 71, 41}, - { 49, 41, 37}, - { 49, 37, 36}, - { 58, 44, 60}, - { 60, 59, 58}, - { 51, 34, 33}, - { 39, 40, 42}, - { 39, 42, 38}, - {243,240, 33}, - {243, 33,229}, - { 39, 38, 6}, - { 44, 46, 40}, - { 55, 56, 57}, - { 64, 62, 65}, - { 64, 65, 66}, - { 41, 71, 45}, - { 75, 50, 51}, - { 81, 79, 82}, - { 77, 88, 73}, - { 93, 92, 94}, - { 68, 47, 46}, - { 96, 97, 99}, - { 96, 99, 95}, - {110,109,111}, - {111,112,110}, - {114,113,123}, - {114,123,124}, - {132,131,129}, - {133,137,136}, - {135,142,145}, - {145,152,135}, - {149,147,157}, - {157,158,149}, - {164,150,151}, - {153,163,168}, - {153,168,154}, - {185,183,182}, - {185,182,184}, - {161,189,190}, - {200,199,191}, - {200,191,190}, - {180,178,195}, - {180,195,196}, - {102,101,204}, - {102,204,206}, - { 43, 48,104}, - { 43,104,103}, - {216,217, 54}, - {216, 54, 32}, - {207,224,231}, - {230,212,211}, - {230,211,231}, - {227,232,241}, - {227,241,242}, - {235,234,241}, - {235,241,244}, - {430,248,247}, - {272,274,253}, - {272,253,252}, - {439,260,275}, - {225,224,259}, - {225,259,257}, - {269,270,407}, - {269,407,405}, - {270,269,273}, - {270,273,272}, - {273,269,268}, - {273,268,267}, - {273,267,266}, - {273,266,265}, - {273,265,264}, - {448,279,367}, - {281,350,368}, - {285,286,301}, - {290,323,310}, - {290,311,323}, - {282,281,189}, - {292,311,290}, - {292,290,291}, - {307,306,302}, - {307,302,303}, - {316,315,324}, - {316,324,329}, - {331,351,350}, - {330,334,335}, - {330,335,328}, - {341,337,338}, - {344,355,354}, - {346,345,348}, - {346,348,347}, - {364,369,352}, - {364,352,353}, - {365,363,361}, - {365,361,362}, - {376,401,402}, - {373,372,397}, - {373,397,400}, - {376, 92,377}, - {381,378,387}, - {381,387,385}, - {386, 77, 80}, - {390,389,412}, - {416,417,401}, - {403,417,415}, - {408,429,430}, - {419,423,418}, - {427,428,444}, - {427,444,446}, - {437,436,441}, - {450,445, 11}, - {450, 11, 4}, - {447,449, 5}, - {447, 5, 8}, - {441,438,437}, - {425,426,451}, - {425,451,452}, - {417,421,415}, - {408,407,429}, - {399,403,400}, - {399,400,397}, - {394,393,416}, - {389,411,412}, - {386,383,385}, - {408,387,378}, - {408,378,406}, - {377,391,376}, - { 94,375,415}, - {372,373,374}, - {372,374,370}, - {359,111,360}, - {359,112,111}, - {113,358,349}, - {113,349,123}, - {346,343,345}, - {343,340,342}, - {338,336,144}, - {338,144,141}, - {327,341,354}, - {327,354,326}, - {331,350,321}, - {331,321,322}, - {314,313,326}, - {314,326,325}, - {300,298,299}, - {300,299,301}, - {288,287,289}, - {189,292,282}, - {287,288,303}, - {284,285,297}, - {368,280,281}, - {448,447,279}, - {274,226,255}, - {267,268,404}, - {267,404,379}, - {429,262,430}, - {439,440,260}, - {257,258,249}, - {257,249,246}, - {430,262,248}, - {234,228,242}, - {234,242,241}, - {237,238,239}, - {237,239,236}, - { 15, 18,227}, - { 15,227,229}, - {222,223, 82}, - {222, 82, 83}, - {214,215,213}, - {214,213, 81}, - { 38,102, 6}, - {122,159,200}, - {122,200,201}, - {174,171,192}, - {174,192,194}, - {197,193,198}, - {190,170,161}, - {181,179,178}, - {181,178,180}, - {166,156,155}, - {163,153,152}, - {163,152,162}, - {120,156,149}, - {120,149,121}, - {152,153,135}, - {140,143,142}, - {135,131,132}, - {135,132,136}, - {130,129,128}, - {130,128,127}, - {100,105,119}, - {100,119,120}, - {106,104,107}, - {106,107,108}, - { 91, 95, 59}, - { 93, 94, 68}, - { 91, 89, 92}, - { 76, 53, 55}, - { 76, 55, 87}, - { 81, 78, 79}, - { 74, 73, 49}, - { 69, 60, 45}, - { 58, 62, 64}, - { 58, 64, 61}, - { 53, 31, 32}, - { 32, 54, 53}, - { 42, 43, 38}, - { 35, 36, 0}, - { 35, 0, 1}, - { 34, 35, 1}, - { 34, 1, 9}, - { 44, 40, 41}, - { 44, 41, 45}, - { 33,240, 51}, - { 63, 62, 58}, - { 63, 58, 59}, - { 45, 71, 70}, - { 76, 75, 51}, - { 76, 51, 52}, - { 86, 85, 84}, - { 86, 84, 87}, - { 89, 72, 73}, - { 89, 73, 88}, - { 91, 92, 96}, - { 91, 96, 95}, - { 72, 91, 60}, - { 72, 60, 69}, - {104,106,105}, - {119,105,117}, - {119,117,118}, - {124,127,128}, - {117,116,129}, - {117,129,131}, - {118,117,131}, - {135,140,142}, - {146,150,152}, - {146,152,145}, - {149,122,121}, - {166,165,151}, - {166,151,156}, - {158,172,173}, - {161,160,189}, - {199,198,193}, - {199,193,191}, - {204,201,202}, - {178,174,194}, - {200,159,186}, - {109, 48, 67}, - { 48,107,104}, - {216, 32,236}, - {216,236,239}, - {223,214, 81}, - {223, 81, 82}, - { 33, 12, 15}, - { 32,228,234}, - { 32,234,236}, - {240, 31, 52}, - {256,255,246}, - {256,246,249}, - {258,263,248}, - {258,248,249}, - {275,260,259}, - {275,259,276}, - {207,276,259}, - {270,271,429}, - {270,429,407}, - {413,418,366}, - {413,366,365}, - {368,367,279}, - {368,279,280}, - {303,301,286}, - {303,286,287}, - {283,282,292}, - {283,292,291}, - {320,292,189}, - {298,296,297}, - {298,297,299}, - {318,327,326}, - {318,326,313}, - {329,330,317}, - {336,333,320}, - {326,354,353}, - {334,332,333}, - {334,333,336}, - {342,339,139}, - {342,139,138}, - {345,342,126}, - {347,357,356}, - {369,368,351}, - {363,356,357}, - {363,357,361}, - {366,367,368}, - {366,368,369}, - {375,373,400}, - { 92, 90,377}, - {409,387,408}, - {386,385,387}, - {386,387,388}, - {412,394,391}, - {396,398,399}, - {408,406,405}, - {415,421,419}, - {415,419,414}, - {425,452,448}, - {425,448,424}, - {444,441,443}, - {448,452,449}, - {448,449,447}, - {446,444,443}, - {446,443,445}, - {250,247,261}, - {250,261,428}, - {421,422,423}, - {421,423,419}, - {427,410,250}, - {417,403,401}, - {403,402,401}, - {420,392,412}, - {420,412,425}, - {420,425,424}, - {386,411,389}, - {383,382,381}, - {383,381,385}, - {378,379,404}, - {372,371,395}, - {372,395,397}, - {371,372,370}, - {361,359,360}, - {361,360,362}, - {368,350,351}, - {349,347,348}, - {356,355,344}, - {356,344,346}, - {344,341,340}, - {344,340,343}, - {338,337,336}, - {328,335,341}, - {324,352,351}, - {324,351,331}, - {320,144,336}, - {314,325,324}, - {322,308,309}, - {310,309,307}, - {287,286,289}, - {203,280,279}, - {203,279,205}, - {297,295,283}, - {297,283,284}, - {447,205,279}, - {274,384, 80}, - {274, 80,226}, - {266,267,379}, - {266,379,380}, - {225,257,246}, - {225,246,245}, - {256,254,253}, - {256,253,255}, - {430,247,250}, - {226,235,244}, - {226,244,245}, - {232,233,244}, - {232,244,241}, - {230, 18, 19}, - { 32, 31,228}, - {219,220, 86}, - {219, 86, 57}, - {226,213,235}, - {206, 7, 6}, - {122,201,101}, - {201,204,101}, - {180,196,197}, - {170,192,171}, - {200,190,189}, - {194,193,195}, - {183,181,180}, - {183,180,182}, - {155,154,168}, - {149,156,151}, - {149,151,148}, - {155,156,120}, - {145,142,143}, - {145,143,146}, - {136,137,140}, - {133,132,130}, - {128,129,116}, - {100,120,121}, - {110,112,113}, - {110,113,114}, - { 66, 65, 63}, - { 66, 63, 99}, - { 66, 99, 98}, - { 96, 46, 61}, - { 89, 88, 90}, - { 86, 87, 57}, - { 80, 78, 81}, - { 72, 69, 49}, - { 67, 48, 47}, - { 67, 47, 68}, - { 56, 55, 53}, - { 50, 49, 36}, - { 50, 36, 35}, - { 40, 39, 41}, - {242,243,229}, - {242,229,227}, - { 6, 37, 39}, - { 42, 47, 48}, - { 42, 48, 43}, - { 61, 46, 44}, - { 45, 70, 69}, - { 69, 70, 71}, - { 69, 71, 49}, - { 74, 78, 77}, - { 83, 84, 85}, - { 73, 74, 77}, - { 93, 96, 92}, - { 68, 46, 93}, - { 95, 99, 63}, - { 95, 63, 59}, - {115,108,110}, - {115,110,114}, - {125,126,127}, - {129,130,132}, - {137,133,138}, - {137,138,139}, - {148,146,143}, - {148,143,147}, - {119,118,154}, - {161,147,143}, - {165,164,151}, - {158,157,171}, - {158,171,172}, - {159,158,187}, - {159,187,186}, - {194,192,191}, - {194,191,193}, - {189,202,201}, - {182,197,184}, - {205, 8, 7}, - { 48,109,107}, - {218,219, 57}, - {218, 57, 56}, - {207,231,211}, - {232,230,231}, - {232,231,233}, - { 53, 52, 31}, - {388,411,386}, - {409,430,250}, - {262,429,254}, - {262,254,256}, - {442,444,428}, - {273,264,383}, - {273,383,384}, - {429,271,251}, - {429,251,254}, - {413,365,362}, - { 67,413,360}, - {282,283,295}, - {285,301,299}, - {202,281,280}, - {284,283,291}, - {284,291,289}, - {320,189,160}, - {308,306,307}, - {307,309,308}, - {319,317,330}, - {319,330,328}, - {353,352,324}, - {332,331,333}, - {340,341,338}, - {354,341,344}, - {349,358,357}, - {349,357,347}, - {364,355,356}, - {364,356,363}, - {364,365,366}, - {364,366,369}, - {374,376,402}, - {375, 92,373}, - { 77,389,390}, - {382,380,381}, - {389, 77,386}, - {393,394,412}, - {393,412,392}, - {401,394,416}, - {415,400,403}, - {411,410,427}, - {411,427,426}, - {422,420,424}, - {247,248,263}, - {247,263,261}, - {445,443, 14}, - {445, 14, 11}, - {449,450, 4}, - {449, 4, 5}, - {443,441, 17}, - {443, 17, 14}, - {436, 23, 17}, - {436, 17,441}, - {424,448,422}, - {448,423,422}, - {414,419,418}, - {414,418,413}, - {406,404,405}, - {399,397,395}, - {399,395,396}, - {420,416,392}, - {388,410,411}, - {386,384,383}, - {390, 88, 77}, - {375, 94, 92}, - {415,414, 68}, - {415, 68, 94}, - {370,374,402}, - {370,402,398}, - {361,357,358}, - {361,358,359}, - {125,348,126}, - {346,344,343}, - {340,338,339}, - {337,335,334}, - {337,334,336}, - {325,353,324}, - {324,331,332}, - {324,332,329}, - {323,322,309}, - {323,309,310}, - {294,295,297}, - {294,297,296}, - {289,286,285}, - {202,280,203}, - {288,307,303}, - {282,295,321}, - { 67,360,111}, - {418,423,367}, - {418,367,366}, - {272,252,251}, - {272,251,271}, - {272,271,270}, - {255,253,274}, - {265,266,380}, - {265,380,382}, - {442,428,261}, - {440,263,258}, - {440,258,260}, - {409,250,410}, - {255,226,245}, - {255,245,246}, - { 31,240,243}, - {236,234,235}, - {236,235,237}, - {233,225,245}, - {233,245,244}, - {220,221, 85}, - {220, 85, 86}, - { 81,213,226}, - { 81,226, 80}, - { 7,206,205}, - {186,184,198}, - {186,198,199}, - {204,203,205}, - {204,205,206}, - {195,193,196}, - {171,174,172}, - {173,174,175}, - {173,172,174}, - {155,167,166}, - {160,161,143}, - {160,143,144}, - {119,154,155}, - {148,151,150}, - {148,150,146}, - {140,137,139}, - {140,139,141}, - {127,126,130}, - {114,124,128}, - {114,128,115}, - {117,105,106}, - {117,106,116}, - {104,105,100}, - {104,100,103}, - { 59, 60, 91}, - { 97, 96, 61}, - { 97, 61, 64}, - { 91, 72, 89}, - { 87, 84, 79}, - { 87, 79, 76}, - { 78, 80, 77}, - { 49, 50, 74}, - { 60, 44, 45}, - { 61, 44, 58}, - { 51, 50, 35}, - { 51, 35, 34}, - { 39, 37, 41}, - { 33, 34, 9}, - { 33, 9, 12}, - { 0, 36, 37}, - { 0, 37, 6}, - { 40, 46, 47}, - { 40, 47, 42}, - { 53, 54, 56}, - { 65, 62, 63}, - { 72, 49, 73}, - { 79, 78, 75}, - { 79, 75, 76}, - { 52, 53, 76}, - { 92, 89, 90}, - { 96, 93, 46}, - {102,103,100}, - {102,100,101}, - {116,106,108}, - {116,108,115}, - {123,125,124}, - {116,115,128}, - {118,131,135}, - {140,135,136}, - {148,147,149}, - {120,119,155}, - {164,162,152}, - {164,152,150}, - {157,147,161}, - {157,161,170}, - {186,187,185}, - {186,185,184}, - {193,197,196}, - {202,203,204}, - {194,195,178}, - {198,184,197}, - { 67,111,109}, - { 38, 43,103}, - { 38,103,102}, - {214,223,222}, - {214,222,221}, - {214,221,220}, - {214,220,219}, - {214,219,218}, - {213,237,235}, - {221,222, 83}, - {221, 83, 85}, - { 15,229, 33}, - {227, 18,230}, - {227,230,232}, - { 52, 51,240}, - { 75, 78, 50}, - {408,430,409}, - {260,258,257}, - {260,257,259}, - {224,207,259}, - {268,269,405}, - {268,405,404}, - {413,362,360}, - {447, 8,205}, - {299,297,285}, - {189,281,202}, - {290,288,289}, - {290,289,291}, - {322,321,295}, - {322,295,294}, - {333,323,311}, - {333,311,320}, - {317,316,329}, - {320,160,144}, - {353,325,326}, - {329,332,334}, - {329,334,330}, - {339,338,141}, - {339,141,139}, - {348,345,126}, - {347,356,346}, - {123,349,125}, - {364,353,354}, - {364,354,355}, - {365,364,363}, - {376,391,394}, - {376,394,401}, - { 92,376,374}, - { 92,374,373}, - {377, 90, 88}, - {380,379,378}, - {380,378,381}, - {388,387,409}, - {388,409,410}, - {416,393,392}, - {399,398,402}, - {399,402,403}, - {250,428,427}, - {421,417,416}, - {421,416,420}, - {426,427,446}, - {426,446,451}, - {444,442,441}, - {452,451,450}, - {452,450,449} -}; - - -//***************************THE END OF FAMOUS BUNNY TRIMESH********************************************// - -//****GLOBALS - -//****GLOBALS - -///User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback; -inline btScalar calculateCombinedFriction(float friction0,float friction1) -{ - btScalar friction = friction0 * friction1; - - const btScalar MAX_FRICTION = 10.f; - if (friction < -MAX_FRICTION) - friction = -MAX_FRICTION; - if (friction > MAX_FRICTION) - friction = MAX_FRICTION; - return friction; - -} - -inline btScalar calculateCombinedRestitution(float restitution0,float restitution1) -{ - return restitution0 * restitution1; -} - - - -bool CustomMaterialCombinerCallback(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) -{ - - float friction0 = colObj0Wrap->getCollisionObject()->getFriction(); - float friction1 = colObj1Wrap->getCollisionObject()->getFriction(); - float restitution0 = colObj0Wrap->getCollisionObject()->getRestitution(); - float restitution1 = colObj1Wrap->getCollisionObject()->getRestitution(); - - if (colObj0Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - friction0 = 1.0;//partId0,index0 - restitution0 = 0.f; - } - if (colObj1Wrap->getCollisionObject()->getCollisionFlags() & btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK) - { - if (index1&1) - { - friction1 = 1.0f;//partId1,index1 - } else - { - friction1 = 0.f; - } - restitution1 = 0.f; - } - - cp.m_combinedFriction = calculateCombinedFriction(friction0,friction1); - cp.m_combinedRestitution = calculateCombinedRestitution(restitution0,restitution1); - - //this return value is currently ignored, but to be on the safe side: return false if you don't calculate friction - return true; -} - -extern ContactAddedCallback gContactAddedCallback; - - - -int main(int argc,char** argv) -{ - gContactAddedCallback = CustomMaterialCombinerCallback; - - ConcaveDemo* concaveDemo = new ConcaveDemo(); - concaveDemo->initPhysics(); - concaveDemo->setCameraDistance(30.f); -//cannot run stepFront yet, the OpenGL context is not opened (stepFront updates camera...) -// concaveDemo->stepFront(); -// concaveDemo->stepFront(); -// concaveDemo->stepFront(); -// concaveDemo->stepFront(); - - return glutmain(argc, argv,640,480,"Moving Concave Mesh Demo",concaveDemo); -} - -void ConcaveDemo::renderme() -{ - updateCamera(); - - btScalar m[16]; - - if (m_dynamicsWorld) - { - btVector3 worldBoundsMin,worldBoundsMax; - getDynamicsWorld()->getBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); - - - int numObjects = m_dynamicsWorld->getNumCollisionObjects(); - btVector3 wireColor(1,0,0); - for (int i=0;igetCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(colObj); - - if (body && body->getMotionState()) - { - btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState(); - myMotionState->m_graphicsWorldTrans.getOpenGLMatrix(m); - } else - { - colObj->getWorldTransform().getOpenGLMatrix(m); - } - - btVector3 wireColor(1.f,1.0f,0.5f); //wants deactivation - if (i & 1) - { - wireColor = btVector3(0.f,0.0f,1.f); - } - ///color differently for active, sleeping, wantsdeactivation states - if (colObj->getActivationState() == 1) //active - { - if (i & 1) - { - wireColor += btVector3 (1.f,0.f,0.f); - } else - { - wireColor += btVector3 (.5f,0.f,0.f); - } - } - if (colObj->getActivationState() == 2) //ISLAND_SLEEPING - { - if (i & 1) - { - wireColor += btVector3 (0.f,1.f, 0.f); - } else - { - wireColor += btVector3 (0.f,0.5f,0.f); - } - } - - m_shapeDrawer->drawOpenGL(m,colObj->getCollisionShape(),wireColor,getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - - float xOffset = 10.f; - float yStart = 20.f; - float yIncr = 20.f; - char buf[124]; - - glColor3f(0, 0, 0); - - setOrthographicProjection(); - - sprintf(buf,"mouse to interact"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - /* glRasterPos3f(xOffset,xOffset,0); - sprintf(buf,"space to reset"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - */ - - sprintf(buf,"cursor keys and z,x to navigate"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - - sprintf(buf,"i to toggle simulation, s single step"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - - sprintf(buf,"q to quit"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - - sprintf(buf,". to shoot TRIMESH (dot)"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - // not yet hooked up again after refactoring... - -/* glRasterPos3f(xOffset,xOffset,0); - sprintf(buf,"d to toggle deactivation"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; -*/ - - /* - glRasterPos3f(xOffset,xOffset,0); - sprintf(buf,"a to draw temporal AABBs"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - */ - - - sprintf(buf,"h to toggle help text"); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - //bool useBulletLCP = !(getDebugMode() & btIDebugDraw::DBG_DisableBulletLCP); - - bool useCCD = ((getDebugMode() & btIDebugDraw::DBG_EnableCCD) != 0); - - - sprintf(buf,"1 CCD mode (adhoc) = %i",useCCD); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - - sprintf(buf,"+- shooting speed = %10.2f",m_ShootBoxInitialSpeed); - GLDebugDrawString(xOffset,xOffset,buf); - xOffset += yIncr; - - resetPerspectiveProjection(); - - - } - -} - - - -void ConcaveDemo::initGImpactCollision() -{ - // create trimesh - btTriangleIndexVertexArray* indexVertexArrays = new btTriangleIndexVertexArray(NUM_TRIANGLES, - &gIndices[0][0], - 3*sizeof(int), - NUM_VERTICES,(REAL*) &gVertices[0],sizeof(REAL)*3); - - btGImpactMeshShape * trimesh = new btGImpactMeshShape(indexVertexArrays); - trimesh->setLocalScaling(btVector3(4.f,4.f,4.f)); - trimesh->updateBound(); - m_trimeshShape = trimesh; - - //register algorithm - - btCollisionDispatcher * dispatcher = static_cast(m_dynamicsWorld ->getDispatcher()); - btGImpactCollisionAlgorithm::registerAlgorithm(dispatcher); - -} - -void ConcaveDemo::initPhysics() -{ - - btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); - - //btConstraintSolver* solver = new btSequentialImpulseConstraintSolver; - btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration); - //btOverlappingPairCache* broadphase = new btSimpleBroadphase(); - btBroadphaseInterface* broadphase = new btSimpleBroadphase(); - - btConstraintSolver* constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,broadphase,constraintSolver,collisionConfiguration); - - - //create trimesh model and shape - initGImpactCollision(); - - - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - - btCollisionShape* staticboxShape1 = new btBoxShape(btVector3(200,1,200));//floor - btCollisionShape* staticboxShape2 = new btBoxShape(btVector3(1,50,200));//left wall - btCollisionShape* staticboxShape3 = new btBoxShape(btVector3(1,50,200));//right wall - btCollisionShape* staticboxShape4 = new btBoxShape(btVector3(200,50,1));//front wall - btCollisionShape* staticboxShape5 = new btBoxShape(btVector3(200,50,1));//back wall - - btCompoundShape* staticScenario = new btCompoundShape();//static scenario - - startTransform.setOrigin(btVector3(0,0,0)); - staticScenario->addChildShape(startTransform,staticboxShape1); - startTransform.setOrigin(btVector3(-200,25,0)); - staticScenario->addChildShape(startTransform,staticboxShape2); - startTransform.setOrigin(btVector3(200,25,0)); - staticScenario->addChildShape(startTransform,staticboxShape3); - startTransform.setOrigin(btVector3(0,25,200)); - staticScenario->addChildShape(startTransform,staticboxShape4); - startTransform.setOrigin(btVector3(0,25,-200)); - staticScenario->addChildShape(startTransform,staticboxShape5); - - startTransform.setOrigin(btVector3(0,0,0)); - - btRigidBody* staticBody = localCreateRigidBody(mass, startTransform,staticScenario); - - staticBody->setCollisionFlags(staticBody->getCollisionFlags()|btCollisionObject::CF_STATIC_OBJECT); - - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags()|btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - - //static plane - btVector3 normal(0.4,1.5,-0.4); - normal.normalize(); - btCollisionShape* staticplaneShape6 = new btStaticPlaneShape(normal,0.0);// A plane - - startTransform.setOrigin(btVector3(0,0,0)); - - btRigidBody* staticBody2 = localCreateRigidBody(mass, startTransform,staticplaneShape6 ); - - staticBody2->setCollisionFlags(staticBody2->getCollisionFlags()|btCollisionObject::CF_STATIC_OBJECT); - - { - for (int i=0;i<9;i++) - { - btCollisionShape* boxShape = new btBoxShape(btVector3(1,1,1)); - startTransform.setOrigin(btVector3(2*i-5,2,-3)); - localCreateRigidBody(1, startTransform,boxShape); - } - } - - shootTrimesh(btVector3(0,10,0),btVector3(0,0,0)); - - shootTrimesh(btVector3(0,20,0),btVector3(0,10,0)); - - //m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - -} - -void ConcaveDemo::keyboardCallback(unsigned char key, int x, int y) -{ - m_lastKey = 0; - - switch (key) - { - case 'q' : exit(0); break; - - case 'l' : stepLeft(); break; - case 'r' : stepRight(); break; - case 'f' : stepFront(); break; - case 'b' : stepBack(); break; - case 'z' : zoomIn(); break; - case 'x' : zoomOut(); break; - case 'i' : toggleIdle(); break; - case 'h': - if (m_debugMode & btIDebugDraw::DBG_NoHelpText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_NoHelpText); - else - m_debugMode |= btIDebugDraw::DBG_NoHelpText; - break; - - case 'w': - if (m_debugMode & btIDebugDraw::DBG_DrawWireframe) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawWireframe); - else - m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - break; - - case 'p': - if (m_debugMode & btIDebugDraw::DBG_ProfileTimings) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_ProfileTimings); - else - m_debugMode |= btIDebugDraw::DBG_ProfileTimings; - break; - - case 'm': - if (m_debugMode & btIDebugDraw::DBG_EnableSatComparison) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_EnableSatComparison); - else - m_debugMode |= btIDebugDraw::DBG_EnableSatComparison; - break; - - case 'n': - if (m_debugMode & btIDebugDraw::DBG_DisableBulletLCP) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DisableBulletLCP); - else - m_debugMode |= btIDebugDraw::DBG_DisableBulletLCP; - break; - - case 't' : - if (m_debugMode & btIDebugDraw::DBG_DrawText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawText); - else - m_debugMode |= btIDebugDraw::DBG_DrawText; - break; - case 'y': - if (m_debugMode & btIDebugDraw::DBG_DrawFeaturesText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawFeaturesText); - else - m_debugMode |= btIDebugDraw::DBG_DrawFeaturesText; - break; - case 'a': - if (m_debugMode & btIDebugDraw::DBG_DrawAabb) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawAabb); - else - m_debugMode |= btIDebugDraw::DBG_DrawAabb; - break; - case 'c' : - if (m_debugMode & btIDebugDraw::DBG_DrawContactPoints) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawContactPoints); - else - m_debugMode |= btIDebugDraw::DBG_DrawContactPoints; - break; - - case 'd' : - if (m_debugMode & btIDebugDraw::DBG_NoDeactivation) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_NoDeactivation); - else - m_debugMode |= btIDebugDraw::DBG_NoDeactivation; - if (m_debugMode | btIDebugDraw::DBG_NoDeactivation) - { - gDisableDeactivation = true; - } else - { - gDisableDeactivation = false; - } - break; - - - - - case 'o' : - { - m_stepping = !m_stepping; - break; - } - case 's' : clientMoveAndDisplay(); break; -// case ' ' : newRandom(); break; - case ' ': - clientResetScene(); - break; - case '1': - { - if (m_debugMode & btIDebugDraw::DBG_EnableCCD) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_EnableCCD); - else - m_debugMode |= btIDebugDraw::DBG_EnableCCD; - break; - } - - case '.': - { - shootTrimesh(getCameraPosition(),getCameraTargetPosition()); - break; - } - - case '+': - { - m_ShootBoxInitialSpeed += 10.f; - break; - } - case '-': - { - m_ShootBoxInitialSpeed -= 10.f; - break; - } - - default: -// std::cout << "unused key : " << key << std::endl; - break; - } - - if (getDynamicsWorld() && getDynamicsWorld()->getDebugDrawer()) - getDynamicsWorld()->getDebugDrawer()->setDebugMode(m_debugMode); - - glutPostRedisplay(); - -} - - -void ConcaveDemo::shootTrimesh(const btVector3& startPosition,const btVector3& destination) -{ - - if (m_dynamicsWorld) - { - float mass = 4.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(startPosition); - - btRigidBody* body = this->localCreateRigidBody(mass, startTransform,m_trimeshShape); - - btVector3 linVel(destination[0]-startPosition[0],destination[1]-startPosition[1],destination[2]-startPosition[2]); - linVel.normalize(); - linVel*=m_ShootBoxInitialSpeed*0.25; - - body->getWorldTransform().setOrigin(startPosition); - body->getWorldTransform().setRotation(btQuaternion(0,0,0,1)); - body->setLinearVelocity(linVel); - body->setAngularVelocity(btVector3(0,0,0)); - } -} - -void ConcaveDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = float(getDeltaTimeMicroseconds()) * 0.000001f; - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - glutSwapBuffers(); - -} - - - - -void ConcaveDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - glutSwapBuffers(); -} - - diff --git a/Demos/MultiMaterialDemo/CMakeLists.txt b/Demos/MultiMaterialDemo/CMakeLists.txt deleted file mode 100644 index 0acf2c1e1..000000000 --- a/Demos/MultiMaterialDemo/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppMultiMaterialDemo - MultiMaterialDemo.cpp - main.cpp -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppMultiMaterialDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppMultiMaterialDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppMultiMaterialDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/MultiMaterialDemo/MultiMaterialDemo.cpp b/Demos/MultiMaterialDemo/MultiMaterialDemo.cpp deleted file mode 100644 index 14e961982..000000000 --- a/Demos/MultiMaterialDemo/MultiMaterialDemo.cpp +++ /dev/null @@ -1,383 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" -#include "MultiMaterialDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -#include "BulletCollision/CollisionShapes/btTriangleShape.h" -#include "BulletCollision/CollisionShapes/btTriangleIndexVertexMaterialArray.h" -#include "BulletCollision/CollisionShapes/btMultimaterialTriangleMeshShape.h" -#include "BulletCollision/CollisionShapes/btMaterial.h" -#include "BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h" - -// Create a custom material, just because we can -class CustomMaterial : public btMaterial -{ -public: - int foo1; - int foo2; - CustomMaterial(){} - CustomMaterial(int a, int b) {foo1 = a; foo2 = b;} -}; - -// Storage for the vertex data -static btVector3* gVertices = 0; -// Storage for the face data -static int* gIndices = 0; -// Storage for the material data -static CustomMaterial* gMaterials = 0; -// Storage for the face -> material index data -static int* gFaceMaterialIndices = 0; - -static btBvhTriangleMeshShape* trimeshShape =0; -static btRigidBody* staticBody = 0; -static float waveheight = 0.f; - -const float TRIANGLE_SIZE=1.f; - - -///User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback; -inline btScalar calculateCombinedFriction(float friction0,float friction1) -{ - btScalar friction = friction0 * friction1; - - const btScalar MAX_FRICTION = 10.f; - if (friction < -MAX_FRICTION) - friction = -MAX_FRICTION; - if (friction > MAX_FRICTION) - friction = MAX_FRICTION; - return friction; - -} - -inline btScalar calculateCombinedRestitution(float restitution0,float restitution1) -{ - return restitution0 * restitution1; -} - - - -static bool CustomMaterialCombinerCallback(btManifoldPoint& cp, const btCollisionObjectWrapper* colObj0Wrap,int partId0,int index0,const btCollisionObjectWrapper* colObj1Wrap,int partId1,int index1) -{ - - // Apply material properties - if (colObj0Wrap->getCollisionShape()->getShapeType() == TRIANGLE_SHAPE_PROXYTYPE) - { - const btCollisionShape* parent0 = colObj0Wrap->getCollisionObject()->getCollisionShape(); - if(parent0 != 0 && parent0->getShapeType() == MULTIMATERIAL_TRIANGLE_MESH_PROXYTYPE) - { - btMultimaterialTriangleMeshShape* shape = (btMultimaterialTriangleMeshShape*)parent0; - const btMaterial * props = shape->getMaterialProperties(partId0, index0); - cp.m_combinedFriction = calculateCombinedFriction(props->m_friction, colObj1Wrap->getCollisionObject()->getFriction()); - cp.m_combinedRestitution = props->m_restitution * colObj1Wrap->getCollisionObject()->getRestitution(); - } - } - else if (colObj1Wrap->getCollisionShape()->getShapeType() == TRIANGLE_SHAPE_PROXYTYPE) - { - const btCollisionShape* parent1 = colObj1Wrap->getCollisionObject()->getCollisionShape(); - if(parent1 != 0 && parent1->getShapeType() == MULTIMATERIAL_TRIANGLE_MESH_PROXYTYPE) - { - btMultimaterialTriangleMeshShape* shape = (btMultimaterialTriangleMeshShape*)parent1; - const btMaterial * props = shape->getMaterialProperties(partId1, index1); - cp.m_combinedFriction = calculateCombinedFriction(props->m_friction, colObj0Wrap->getCollisionObject()->getFriction()); - cp.m_combinedRestitution = props->m_restitution * colObj0Wrap->getCollisionObject()->getRestitution(); - } - } - - //this return value is currently ignored, but to be on the safe side: return false if you don't calculate friction - return true; -} - -extern ContactAddedCallback gContactAddedCallback; - -const int NUM_VERTS_X = 20; -const int NUM_VERTS_Y = 50; -const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - -void MultiMaterialDemo::setVertexPositions(float waveheight, float offset) -{ - int i; - int j; - - for ( i=0;isetCollisionFlags( staticBody->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->setActivationState(DISABLE_DEACTIVATION); - } else - { - staticBody->setCollisionFlags( staticBody->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT); - staticBody->forceActivationState(ACTIVE_TAG); - } - } - - DemoApplication::keyboardCallback(key,x,y); - -} - -void MultiMaterialDemo::initPhysics() -{ -#define TRISIZE 50.f - - gContactAddedCallback = CustomMaterialCombinerCallback; - - // The number of triangles - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - // The number of materials - const int totalMaterials = 2; - - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - // int materialStride = sizeof(CustomMaterial); - // int triangleMaterialStride = sizeof(int); - - gVertices = new btVector3[totalVerts]; - gIndices = new int[totalTriangles*3]; - gMaterials = new CustomMaterial[totalMaterials]; - gFaceMaterialIndices = new int[totalTriangles]; - - // Explicitly set up the materials. It's a small array so let's do it bit by bit. - gMaterials[0].m_friction = 0; - gMaterials[0].m_restitution = 0.9; - gMaterials[0].foo1 = 5; - gMaterials[0].foo2 = 7; - gMaterials[1].m_friction = 0.9; - gMaterials[1].m_restitution = 0.1; - gMaterials[1].foo1 = 53; - gMaterials[1].foo2 = 15; - - int i; - // Set up the vertex data - setVertexPositions(waveheight,0.f); - int index=0; - // Set up the face data - for ( i=0;imaterial index data - for(int a = 0; a < totalTriangles; a++) - { - // This will give the first half of the faces low friction and high restitution - // and the second half of the faces high friction and low restitution - if(a > totalTriangles*0.5f) - gFaceMaterialIndices[a] = 0; - else - gFaceMaterialIndices[a] = 1; - } - - // Create the array structure - m_indexVertexArrays = new btTriangleIndexVertexMaterialArray( - totalTriangles, gIndices, indexStride, - totalVerts,(btScalar*) &gVertices[0].x(),vertStride, - totalMaterials, (unsigned char *)gMaterials, sizeof(CustomMaterial), - gFaceMaterialIndices, sizeof(int)); - - bool useQuantizedAabbCompression = true; - // Create the multimaterial mesh shape - trimeshShape = new btMultimaterialTriangleMeshShape((btTriangleIndexVertexMaterialArray*)m_indexVertexArrays,useQuantizedAabbCompression); - m_collisionShapes.push_back(trimeshShape); - - btCollisionShape* groundShape = trimeshShape; - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - m_broadphase = new btAxisSweep3(worldMin,worldMax); - m_solver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-2,0)); - - btCollisionShape* colShape = new btBoxShape(btVector3(0.5f,0.5f,0.5f)); - m_collisionShapes.push_back(colShape); - - { - for (int i=0;i<1;i++) - { - startTransform.setOrigin(btVector3(10,10,-20)); - btRigidBody* body = localCreateRigidBody(1, startTransform,colShape); - body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - body->setFriction(0.9f); - body->setGravity(btVector3(0,-20.f,0)); - body->applyCentralImpulse(btVector3(-7.7f,0,0)); - } - } - - startTransform.setIdentity(); - staticBody = localCreateRigidBody(mass, startTransform,groundShape); - - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_STATIC_OBJECT); - - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); -} - -void MultiMaterialDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_animatedMesh) - { - static float offset=0.f; - offset+=0.01f; - - // setVertexPositions(waveheight,offset); - - int i; - int j; - btVector3 aabbMin(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); - btVector3 aabbMax(-BT_LARGE_FLOAT,-BT_LARGE_FLOAT,-BT_LARGE_FLOAT); - - for ( i=NUM_VERTS_X/2-3;ipartialRefitTree(aabbMin,aabbMax); - - //clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation. - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - } - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - glutSwapBuffers(); - -} - - - - -void MultiMaterialDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - glFlush(); - glutSwapBuffers(); -} - - - -void MultiMaterialDemo::exitPhysics() -{ - - - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btTriangleIndexVertexArray* m_indexVertexArrays; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - bool m_animatedMesh; - - public: - - MultiMaterialDemo() : m_animatedMesh(true) - { - - } - void initPhysics(); - - void exitPhysics(); - - virtual ~MultiMaterialDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - //to show refit works - void setVertexPositions(float waveheight, float offset); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - MultiMaterialDemo* demo = new MultiMaterialDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - }; -}; - -#endif //CONCAVE_DEMO_H - diff --git a/Demos/MultiMaterialDemo/main.cpp b/Demos/MultiMaterialDemo/main.cpp deleted file mode 100644 index 9b8d35bd9..000000000 --- a/Demos/MultiMaterialDemo/main.cpp +++ /dev/null @@ -1,22 +0,0 @@ - -#include "MultiMaterialDemo.h" -#include "GlutStuff.h" - -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - MultiMaterialDemo* multiMaterialDemo = new MultiMaterialDemo(); - multiMaterialDemo->initPhysics(); - multiMaterialDemo->setCameraDistance(30.f); - - multiMaterialDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,640,480,"Multimaterial Mesh Demo",multiMaterialDemo); -} - diff --git a/Demos/MultiThreadedDemo/CMakeLists.txt b/Demos/MultiThreadedDemo/CMakeLists.txt deleted file mode 100644 index 0a4ac250a..000000000 --- a/Demos/MultiThreadedDemo/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${VECTOR_MATH_INCLUDE} -) - -IF(WIN32) - ADD_DEFINITIONS(-DGLEW_STATIC) -ENDIF(WIN32) - -LINK_LIBRARIES( -OpenGLSupport BulletMultiThreaded BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppMultiThreadedDemo - main.cpp - MultiThreadedDemo.cpp - MultiThreadedDemo.h -) -IF (UNIX) - TARGET_LINK_LIBRARIES(AppMultiThreadedDemo pthread) -ENDIF(UNIX) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppMultiThreadedDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppMultiThreadedDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppMultiThreadedDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/MultiThreadedDemo/Makefile.am b/Demos/MultiThreadedDemo/Makefile.am deleted file mode 100644 index 71d8dd3ca..000000000 --- a/Demos/MultiThreadedDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=MultiThreadedDemo - -MultiThreadedDemo_SOURCES=MultiThreadedDemo.cpp MultiThreadedDemo.h main.cpp -MultiThreadedDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL -I@top_builddir@/Extras $(CXXFLAGS) -MultiThreadedDemo_LDADD=-L../OpenGL -L../../Extras -L../../src -lbulletmultithreaded -lbulletopenglsupport -lbulletdynamics -lbulletcollision -lbulletmath @opengl_LIBS@ -lpthread diff --git a/Demos/MultiThreadedDemo/MultiThreadedDemo.cpp b/Demos/MultiThreadedDemo/MultiThreadedDemo.cpp deleted file mode 100644 index 5d4d3a1a1..000000000 --- a/Demos/MultiThreadedDemo/MultiThreadedDemo.cpp +++ /dev/null @@ -1,505 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#define USE_PARALLEL_SOLVER 1 //experimental parallel solver -#define USE_PARALLEL_DISPATCHER 1 - -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.h" -#include "BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h" -#include "BulletCollision/CollisionDispatch/btSimulationIslandManager.h" - -#ifdef USE_PARALLEL_DISPATCHER -#include "BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "BulletMultiThreaded/PlatformDefinitions.h" - -#ifdef USE_LIBSPE2 -#include "BulletMultiThreaded/SpuLibspe2Support.h" -#elif defined (_WIN32) -#include "BulletMultiThreaded/Win32ThreadSupport.h" -#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" - -#elif defined (USE_PTHREADS) - -#include "BulletMultiThreaded/PosixThreadSupport.h" -#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" - -#else -//other platforms run the parallel code sequentially (until pthread support or other parallel implementation is added) - -#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" -#endif //USE_LIBSPE2 - -#ifdef USE_PARALLEL_SOLVER -#include "BulletMultiThreaded/btParallelConstraintSolver.h" -#include "BulletMultiThreaded/SequentialThreadSupport.h" - - -btThreadSupportInterface* createSolverThreadSupport(int maxNumThreads) -{ -//#define SEQUENTIAL -#ifdef SEQUENTIAL - SequentialThreadSupport::SequentialThreadConstructionInfo tci("solverThreads",SolverThreadFunc,SolverlsMemoryFunc); - SequentialThreadSupport* threadSupport = new SequentialThreadSupport(tci); - threadSupport->startSPU(); -#else - -#ifdef _WIN32 - Win32ThreadSupport::Win32ThreadConstructionInfo threadConstructionInfo("solverThreads",SolverThreadFunc,SolverlsMemoryFunc,maxNumThreads); - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(threadConstructionInfo); - threadSupport->startSPU(); -#elif defined (USE_PTHREADS) - PosixThreadSupport::ThreadConstructionInfo solverConstructionInfo("solver", SolverThreadFunc, - SolverlsMemoryFunc, maxNumThreads); - - PosixThreadSupport* threadSupport = new PosixThreadSupport(solverConstructionInfo); - -#else - SequentialThreadSupport::SequentialThreadConstructionInfo tci("solverThreads",SolverThreadFunc,SolverlsMemoryFunc); - SequentialThreadSupport* threadSupport = new SequentialThreadSupport(tci); - threadSupport->startSPU(); -#endif - -#endif - - return threadSupport; -} - -#endif //USE_PARALLEL_SOLVER - -#endif//USE_PARALLEL_DISPATCHER - - - - -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btIDebugDraw.h" - - - -#include //printf debugging - -#include "MultiThreadedDemo.h" -#include "GL_ShapeDrawer.h" - -#include "GlutStuff.h" - - -extern float eye[3]; -extern int glutScreenWidth; -extern int glutScreenHeight; - -const int maxProxies = 32766; -const int maxOverlap = 65535; - - - - -#ifdef _DEBUG -const int gNumObjects = 120; -#else -const int gNumObjects = 120;//try this in release mode: 3000. never go above 16384, unless you increate maxNumObjects value in DemoApplication.cp -#endif - - -const int maxNumObjects = 32760; - -static int shapeIndex[maxNumObjects]; - - -#define CUBE_HALF_EXTENTS 0.5 - -#define EXTRA_HEIGHT -10.f -//GL_LineSegmentShape shapeE(btVector3(-50,0,0), -// btVector3(50,0,0)); - - -void MultiThreadedDemo::createStack( btCollisionShape* boxShape, float halfCubeSize, int size, float zPos ) -{ - btTransform trans; - trans.setIdentity(); - - for(int i=0; istepSimulation(1.0f/60.f,0); - //CProfileManager::dumpAll(); - -#else - //during idle mode, just run 1 simulation step maximum - int maxSimSubSteps = m_idle ? 1 : 1; - if (m_idle) - dt = 1.0/420.f; - - int numSimSteps = 0; - numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps); - - -#ifdef VERBOSE_TIMESTEPPING_CONSOLEOUTPUT - if (!numSimSteps) - printf("Interpolated transforms\n"); - else - { - if (numSimSteps > maxSimSubSteps) - { - //detect dropping frames - printf("Dropped (%i) simulation steps out of %i\n",numSimSteps - maxSimSubSteps,numSimSteps); - } else - { - printf("Simulated (%i) steps\n",numSimSteps); - } - } -#endif //VERBOSE_TIMESTEPPING_CONSOLEOUTPUT - -#endif - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - } - -#ifdef USE_QUICKPROF - btProfiler::beginBlock("render"); -#endif //USE_QUICKPROF - - renderme(); - - - //render the graphics objects, with center of mass shift - - updateCamera(); - - - -#ifdef USE_QUICKPROF - btProfiler::endBlock("render"); -#endif - glFlush(); - - - glutSwapBuffers(); - -} - - - -void MultiThreadedDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - - renderme(); - - glFlush(); - glutSwapBuffers(); -} - - - - - -void MultiThreadedDemo::initPhysics() -{ -#ifdef USE_PARALLEL_DISPATCHER - m_threadSupportSolver = 0; - m_threadSupportCollision = 0; -#endif - -//#define USE_GROUND_PLANE 1 -#ifdef USE_GROUND_PLANE - m_collisionShapes.push_back(new btStaticPlaneShape(btVector3(0,1,0),0.5)); -#else - - ///Please don't make the box sizes larger then 1000: the collision detection will be inaccurate. - ///See http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=346 - m_collisionShapes.push_back(new btBoxShape (btVector3(200,CUBE_HALF_EXTENTS,200))); -#endif - - m_collisionShapes.push_back(new btBoxShape (btVector3(CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS))); - - - - setCameraDistance(32.5f); - - m_azi = 90.f; - - m_dispatcher=0; - btDefaultCollisionConstructionInfo cci; - cci.m_defaultMaxPersistentManifoldPoolSize = 32768; - m_collisionConfiguration = new btDefaultCollisionConfiguration(cci); - -#ifdef USE_PARALLEL_DISPATCHER - int maxNumOutstandingTasks = 4; - -#ifdef USE_WIN32_THREADING - -m_threadSupportCollision = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( - "collision", - processCollisionTask, - createCollisionLocalStoreMemory, - maxNumOutstandingTasks)); -#else - -#ifdef USE_LIBSPE2 - - spe_program_handle_t * program_handle; -#ifndef USE_CESOF - program_handle = spe_image_open ("./spuCollision.elf"); - if (program_handle == NULL) - { - perror( "SPU OPEN IMAGE ERROR\n"); - } - else - { - printf( "IMAGE OPENED\n"); - } -#else - extern spe_program_handle_t spu_program; - program_handle = &spu_program; -#endif - SpuLibspe2Support* threadSupportCollision = new SpuLibspe2Support( program_handle, maxNumOutstandingTasks); -#elif defined (USE_PTHREADS) - PosixThreadSupport::ThreadConstructionInfo constructionInfo("collision", - processCollisionTask, - createCollisionLocalStoreMemory, - maxNumOutstandingTasks); - m_threadSupportCollision = new PosixThreadSupport(constructionInfo); -#else - - SequentialThreadSupport::SequentialThreadConstructionInfo colCI("collision",processCollisionTask,createCollisionLocalStoreMemory); - SequentialThreadSupport* m_threadSupportCollision = new SequentialThreadSupport(colCI); - -#endif //USE_LIBSPE2 - -///Playstation 3 SPU (SPURS) version is available through PS3 Devnet -/// For Unix/Mac someone could implement a pthreads version of btThreadSupportInterface? -///you can hook it up to your custom task scheduler by deriving from btThreadSupportInterface -#endif - - - m_dispatcher = new SpuGatheringCollisionDispatcher(m_threadSupportCollision,maxNumOutstandingTasks,m_collisionConfiguration); -// m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); -#else - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); -#endif //USE_PARALLEL_DISPATCHER - - - btVector3 worldAabbMin(-1000,-1000,-1000); - btVector3 worldAabbMax(1000,1000,1000); - - - - m_broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies); - - - -#ifdef USE_PARALLEL_SOLVER - m_threadSupportSolver = createSolverThreadSupport(maxNumOutstandingTasks); - m_solver = new btParallelConstraintSolver(m_threadSupportSolver); - //this solver requires the contacts to be in a contiguous pool, so avoid dynamic allocation - m_dispatcher->setDispatcherFlags(btCollisionDispatcher::CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION); -#else - - btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver(); - m_solver = solver; - //default solverMode is SOLVER_RANDMIZE_ORDER. Warmstarting seems not to improve convergence, see - //solver->setSolverMode(0);//btSequentialImpulseConstraintSolver::SOLVER_USE_WARMSTARTING | btSequentialImpulseConstraintSolver::SOLVER_RANDMIZE_ORDER); -#endif //USE_PARALLEL_SOLVER - - - btDiscreteDynamicsWorld* world = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - m_dynamicsWorld = world; - - world->getSimulationIslandManager()->setSplitIslands(false); - world->getSolverInfo().m_numIterations = 4; - world->getSolverInfo().m_solverMode = SOLVER_SIMD+SOLVER_USE_WARMSTARTING;//+SOLVER_RANDMIZE_ORDER; - - m_dynamicsWorld->getDispatchInfo().m_enableSPU = true; - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - - - int i; - - btTransform tr; - tr.setIdentity(); - - - for (i=0;i0) - { - shapeIndex[i] = 1;//sphere - } - else - shapeIndex[i] = 0; - } - - - btTransform trans; - trans.setIdentity(); - - btScalar halfExtents = CUBE_HALF_EXTENTS; - - trans.setOrigin(btVector3(0,-halfExtents,0)); - - - - localCreateRigidBody(0.f,trans,m_collisionShapes[shapeIndex[0]]); - - int numWalls = 15; - int wallHeight = 15; - float wallDistance = 3; - - - for ( i=0;isetLinearVelocity(btVector3(0,0,-10)); -#endif -// clientResetScene(); - - -} - - - - - - -void MultiThreadedDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - class btThreadSupportInterface* m_threadSupportCollision; - class btThreadSupportInterface* m_threadSupportSolver; - - btConstraintSolver* m_solver; - - btCollisionAlgorithmCreateFunc* m_boxBoxCF; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - - public: - - void initPhysics(); - - void exitPhysics(); - - virtual ~MultiThreadedDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - void createStack( btCollisionShape* boxShape, float halfCubeSize, int size, float zPos ); - - static DemoApplication* Create() - { - MultiThreadedDemo* demo = new MultiThreadedDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - -}; - -#endif //MULTI_THREADED_DEMO_H - diff --git a/Demos/MultiThreadedDemo/main.cpp b/Demos/MultiThreadedDemo/main.cpp deleted file mode 100644 index 36b56deae..000000000 --- a/Demos/MultiThreadedDemo/main.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#include -#include "MultiThreadedDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - MultiThreadedDemo* demo = new MultiThreadedDemo(); - - demo->initPhysics(); - demo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - - glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",demo); - - delete demo; - - return EXIT_SUCCESS; -} diff --git a/Demos/NativeClient/bin_html/bind.js b/Demos/NativeClient/bin_html/bind.js deleted file mode 100644 index 92fbbd218..000000000 --- a/Demos/NativeClient/bin_html/bind.js +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview This class implements an extension to Function object that - * lets you bind a scope for |this| to a function. - */ - -/** - * Bind a scope to a function. Used to bind an object to |this| for event - * handlers. - * @param {!Object} scope The scope in which the function executes. |scope| - * becomes |this| during function execution. - * @return {function} the bound version of the original function. - */ -Function.prototype.bind = function(scope) { - var boundContext = this; - return function() { - return boundContext.apply(scope, arguments); - } -} diff --git a/Demos/NativeClient/bin_html/dragger.js b/Demos/NativeClient/bin_html/dragger.js deleted file mode 100644 index 232d8b5fb..000000000 --- a/Demos/NativeClient/bin_html/dragger.js +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview This class implements a mouse-drag event. It registers for - * mousedown events, and when it sees one, starts capturing mousemove events - * until it gets a mousup event. It manufactures three drag events: the - * DRAG_START, DRAG and DRAG_END. - */ - -// Requires bind - -/** - * Constructor for the Dragger. Register for mousedown events that happen on - * |opt_target|. If |opt_target| is null or undefined, then this object - * observes mousedown on the whole document. - * @param {?Element} opt_target The event target. Defaults to the whole - * document. - * @constructor - */ -tumbler.Dragger = function(opt_target) { - /** - * The event target. - * @type {Element} - * @private - */ - this.target_ = opt_target || document; - - /** - * The array of objects that get notified of drag events. Each object in - * this array get sent a handleStartDrag(), handleDrag() and handleEndDrag() - * message. - * @type {Array.} - * @private - */ - this.listeners_ = []; - - /** - * Flag to indicate whether the object is in a drag sequence or not. - * @type {boolean} - * @private - */ - this.isDragging_ = false; - - /** - * The function objects that get attached as event handlers. These are - * cached so that they can be removed on mouse up. - * @type {function} - * @private - */ - this.boundMouseMove_ = null; - this.boundMouseUp_ = null; - - this.target_.addEventListener('mousedown', - this.onMouseDown.bind(this), - false); -} - -/** - * The ids used for drag event types. - * @enum {string} - */ -tumbler.Dragger.DragEvents = { - DRAG_START: 'dragstart', // Start a drag sequence - DRAG: 'drag', // Mouse moved during a drag sequence. - DRAG_END: 'dragend' // End a drag sewquence. -}; - -/** - * Add a drag listener. Each listener should respond to thhree methods: - * handleStartDrag(), handleDrag() and handleEndDrag(). This method assumes - * that |listener| does not already exist in the array of listeners. - * @param {!Object} listener The object that will listen to drag events. - */ -tumbler.Dragger.prototype.addDragListener = function(listener) { - this.listeners_.push(listener); -} - -/** - * Handle a mousedown event: register for mousemove and mouseup, then tell - * the target that is has a DRAG_START event. - * @param {Event} event The mousedown event that triggered this method. - */ -tumbler.Dragger.prototype.onMouseDown = function(event) { - this.boundMouseMove_ = this.onMouseMove.bind(this); - this.boundMouseUp_ = this.onMouseUp.bind(this); - this.target_.addEventListener('mousemove', this.boundMouseMove_); - this.target_.addEventListener('mouseup', this.boundMouseUp_); - this.isDragging_ = true; - var dragStartEvent = { type: tumbler.Dragger.DragEvents.DRAG_START, - clientX: event.offsetX, - clientY: event.offsetY }; - var i; - for (i = 0; i < this.listeners_.length; ++i) { - this.listeners_[i].handleStartDrag(this.target_, dragStartEvent); - } -} - -/** - * Handle a mousemove event: tell the target that is has a DRAG event. - * @param {Event} event The mousemove event that triggered this method. - */ -tumbler.Dragger.prototype.onMouseMove = function(event) { - if (!this.isDragging_) - return; - var dragEvent = { type: tumbler.Dragger.DragEvents.DRAG, - clientX: event.offsetX, - clientY: event.offsetY}; - var i; - for (i = 0; i < this.listeners_.length; ++i) { - this.listeners_[i].handleDrag(this.target_, dragEvent); - } -} - -/** - * Handle a mouseup event: un-register for mousemove and mouseup, then tell - * the target that is has a DRAG_END event. - * @param {Event} event The mouseup event that triggered this method. - */ -tumbler.Dragger.prototype.onMouseUp = function(event) { - this.target_.removeEventListener('mouseup', this.boundMouseUp_, false); - this.target_.removeEventListener('mousemove', this.boundMouseMove_, false); - this.boundMouseUp_ = null; - this.boundMouseMove_ = null; - this.isDragging_ = false; - var dragEndEvent = { type: tumbler.Dragger.DragEvents.DRAG_END, - clientX: event.offsetX, - clientY: event.offsetY}; - var i; - for (i = 0; i < this.listeners_.length; ++i) { - this.listeners_[i].handleEndDrag(this.target_, dragEndEvent); - } -} diff --git a/Demos/NativeClient/bin_html/httpd.cmd b/Demos/NativeClient/bin_html/httpd.cmd deleted file mode 100644 index 43143fbc1..000000000 --- a/Demos/NativeClient/bin_html/httpd.cmd +++ /dev/null @@ -1,9 +0,0 @@ -@echo off -setlocal - -REM Relative path of CygWin -set CYGWIN=%~dp0%..\third_party\cygwin\bin - -PATH=%CYGWIN%;%PATH% - -python httpd.py diff --git a/Demos/NativeClient/bin_html/httpd.py b/Demos/NativeClient/bin_html/httpd.py deleted file mode 100644 index 65434a875..000000000 --- a/Demos/NativeClient/bin_html/httpd.py +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/python -# -# Copyright (c) 2011, The Native Client Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# - -"""A tiny web server. - -This is intended to be used for testing, and only run from within the examples -directory. -""" - -import BaseHTTPServer -import logging -import os -import SimpleHTTPServer -import SocketServer -import sys -import urlparse - -logging.getLogger().setLevel(logging.INFO) - -# Using 'localhost' means that we only accept connections -# via the loop back interface. -SERVER_PORT = 5103 -SERVER_HOST = '' - -# We only run from the examples directory (the one that contains scons-out), so -# that not too much is exposed via this HTTP server. Everything in the -# directory is served, so there should never be anything potentially sensitive -# in the serving directory, especially if the machine might be a -# multi-user machine and not all users are trusted. We only serve via -# the loopback interface. - -SAFE_DIR_COMPONENTS = ['bin_html'] -SAFE_DIR_SUFFIX = apply(os.path.join, SAFE_DIR_COMPONENTS) - -def SanityCheckDirectory(): - if os.getcwd().endswith(SAFE_DIR_SUFFIX): - return - logging.error('httpd.py should only be run from the %s', SAFE_DIR_SUFFIX) - logging.error('directory for testing purposes.') - logging.error('We are currently in %s', os.getcwd()) - sys.exit(1) - - -# An HTTP server that will quit when |is_running| is set to False. We also use -# SocketServer.ThreadingMixIn in order to handle requests asynchronously for -# faster responses. -class QuittableHTTPServer(SocketServer.ThreadingMixIn, - BaseHTTPServer.HTTPServer): - def serve_forever(self, timeout=0.5): - self.is_running = True - self.timeout = timeout - while self.is_running: - self.handle_request() - - def shutdown(self): - self.is_running = False - return 1 - - -# "Safely" split a string at |sep| into a [key, value] pair. If |sep| does not -# exist in |str|, then the entire |str| is the key and the value is set to an -# empty string. -def KeyValuePair(str, sep='='): - if sep in str: - return str.split(sep) - else: - return [str, ''] - - -# A small handler that looks for '?quit=1' query in the path and shuts itself -# down if it finds that parameter. -class QuittableHTTPHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): - def do_GET(self): - (_, _, _, query, _) = urlparse.urlsplit(self.path) - url_params = dict([KeyValuePair(key_value) - for key_value in query.split('&')]) - if 'quit' in url_params and '1' in url_params['quit']: - self.send_response(200, 'OK') - self.send_header('Content-type', 'text/html') - self.send_header('Content-length', '0') - self.end_headers() - self.server.shutdown() - return - - SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) - - -def Run(server_address, - server_class=QuittableHTTPServer, - handler_class=QuittableHTTPHandler): - httpd = server_class(server_address, handler_class) - logging.info("Starting local server on port %d", server_address[1]) - logging.info("To shut down send http://localhost:%d?quit=1", - server_address[1]) - try: - httpd.serve_forever() - except KeyboardInterrupt: - logging.info("Received keyboard interrupt.") - httpd.server_close() - - logging.info("Shutting down local server on port %d", server_address[1]) - - -if __name__ == '__main__': - SanityCheckDirectory() - if len(sys.argv) > 1: - Run((SERVER_HOST, int(sys.argv[1]))) - else: - Run((SERVER_HOST, SERVER_PORT)) - sys.exit(0) diff --git a/Demos/NativeClient/bin_html/index.html b/Demos/NativeClient/bin_html/index.html deleted file mode 100644 index a3002da5e..000000000 --- a/Demos/NativeClient/bin_html/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Interactive Cube Example - - - - - - - - -

Interactive Cube Example

-

- The Native Client module executed in this page draws a 3D cube - and allows you to rotate it using a virtual trackball method. -

-
- - - diff --git a/Demos/NativeClient/bin_html/trackball.js b/Demos/NativeClient/bin_html/trackball.js deleted file mode 100644 index 88b9a62df..000000000 --- a/Demos/NativeClient/bin_html/trackball.js +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview Implement a virtual trackball in the tumbler.Trackball - * class. This class maps 2D mouse events to 3D rotations by simulating a - * trackball that you roll by dragging the mouse. There are two principle - * methods in the class: startAtPointInFrame which you use to begin a trackball - * simulation and rollToPoint, which you use while dragging the mouse. The - * rollToPoint method returns a rotation expressed as a quaternion. - */ - - -// Requires tumbler.Application -// Requires tumbler.DragEvent -// Requires tumbler.Vector3 - -/** - * Constructor for the Trackball object. This class maps 2D mouse drag events - * into 3D rotations by simulating a trackball. The idea is to simulate - * clicking on the trackball, and then rolling it as you drag the mouse. - * The math behind the trackball is simple: start with a vector from the first - * mouse-click on the ball to the center of the 3D view. At the same time, set - * the radius of the ball to be the smaller dimension of the 3D view. As you - * drag the mouse around in the 3D view, a second vector is computed from the - * surface of the ball to the center. The axis of rotation is the cross - * product of these two vectors, and the angle of rotation is the angle between - * the two vectors. - * @constructor - */ -tumbler.Trackball = function() { - /** - * The square of the trackball's radius. The math never looks at the radius, - * but looks at the radius squared. - * @type {number} - * @private - */ - this.sqrRadius_ = 0; - - /** - * The 3D vector representing the point on the trackball where the mouse - * was clicked. Default is pointing stright through the center of the ball. - * @type {Object} - * @private - */ - this.rollStart_ = new tumbler.Vector3(0, 0, 1); - - /** - * The 2D center of the frame that encloses the trackball. - * @type {!Object} - * @private - */ - this.center_ = { x: 0, y: 0 }; - - /** - * Cached camera orientation. When a drag START event happens this is set to - * the current orientation in the calling view's plugin. The default is the - * identity quaternion. - * @type {Array.} - * @private - */ - this.cameraOrientation_ = [0, 0, 0, 1]; -}; - -/** - * Compute the dimensions of the virtual trackball to fit inside |frameSize|. - * The radius of the trackball is set to be 1/2 of the smaller of the two frame - * dimensions, the center point is at the midpoint of each side. - * @param {!goog.math.Size} frameSize 2D-point representing the size of the - * element that encloses the virtual trackball. - * @private - */ -tumbler.Trackball.prototype.initInFrame_ = function(frameSize) { - // Compute the radius of the virtual trackball. This is 1/2 of the smaller - // of the frame's width and height. - var halfFrameSize = 0.5 * Math.min(frameSize.width, frameSize.height); - // Cache the square of the trackball's radius. - this.sqrRadius_ = halfFrameSize * halfFrameSize; - // Figure the center of the view. - this.center_.x = frameSize.width * 0.5; - this.center_.y = frameSize.height * 0.5; -}; - -/** - * Method to convert (by translation) a 2D client point from a coordinate space - * with origin in the lower-left corner of the client view to a space with - * origin in the center of the client view. Use this method before mapping the - * 2D point to he 3D tackball point (see also the projectOnTrackball_() method). - * Call the startAtPointInFrame before calling this method so that the - * |center_| property is correctly initialized. - * @param {!Object} clientPoint map this point to the coordinate space with - * origin in thecenter of the client view. - * @return {Object} the converted point. - * @private - */ -tumbler.Trackball.prototype.convertClientPoint_ = function(clientPoint) { - var difference = { x: clientPoint.x - this.center_.x, - y: clientPoint.y - this.center_.y } - return difference; -}; - -/** - * Method to map a 2D point to a 3D point on the virtual trackball that was set - * up using the startAtPointInFrame method. If the point lies outside of the - * radius of the virtual trackball, then the z-coordinate of the 3D point - * is set to 0. - * @param {!Object.} point 2D-point in the coordinate space with origin - * in the center of the client view. - * @return {tumbler.Vector3} the 3D point on the virtual trackball. - * @private - */ -tumbler.Trackball.prototype.projectOnTrackball_ = function(point) { - var sqrRadius2D = point.x * point.x + point.y * point.y; - var zValue; - if (sqrRadius2D > this.sqrRadius_) { - // |point| lies outside the virtual trackball's sphere, so use a virtual - // z-value of 0. This is equivalent to clicking on the horizontal equator - // of the trackball. - zValue = 0; - } else { - // A sphere can be defined as: r^2 = x^2 + y^2 + z^2, so z = - // sqrt(r^2 - (x^2 + y^2)). - zValue = Math.sqrt(this.sqrRadius_ - sqrRadius2D); - } - var trackballPoint = new tumbler.Vector3(point.x, point.y, zValue); - return trackballPoint; -}; - -/** - * Method to start up the trackball. The trackball works by pretending that a - * ball encloses the 3D view. You roll this pretend ball with the mouse. For - * example, if you click on the center of the ball and move the mouse straight - * to the right, you roll the ball around its Y-axis. This produces a Y-axis - * rotation. You can click on the "edge" of the ball and roll it around - * in a circle to get a Z-axis rotation. - * @param {!Object.} startPoint 2D-point, usually the mouse-down - * point. - * @param {!Object.} frameSize 2D-point representing the size of - * the element that encloses the virtual trackball. - */ -tumbler.Trackball.prototype.startAtPointInFrame = - function(startPoint, frameSize) { - this.initInFrame_(frameSize); - // Compute the starting vector from the surface of the ball to its center. - this.rollStart_ = this.projectOnTrackball_( - this.convertClientPoint_(startPoint)); -}; - -/** - * Method to roll the virtual trackball; call this in response to a mouseDrag - * event. Takes |dragPoint| and projects it from 2D mouse coordinates onto the - * virtual track ball that was set up in startAtPointInFrame method. - * Returns a quaternion that represents the rotation from |rollStart_| to - * |rollEnd_|. - * @param {!Object.} dragPoint 2D-point representing the - * destination mouse point. - * @return {Array.} a quaternion that represents the rotation from - * the point wnere the mouse was clicked on the trackball to this point. - * The quaternion looks like this: [[v], cos(angle/2)], where [v] is the - * imaginary part of the quaternion and is computed as [x, y, z] * - * sin(angle/2). - */ -tumbler.Trackball.prototype.rollToPoint = function(dragPoint) { - var rollTo = this.convertClientPoint_(dragPoint); - if ((Math.abs(this.rollStart_.x - rollTo.x) < - tumbler.Trackball.DOUBLE_EPSILON) && - (Math.abs(this.rollStart_.y, rollTo.y) < - tumbler.Trackball.DOUBLE_EPSILON)) { - // Not enough change in the vectors to roll the ball, return the identity - // quaternion. - return [0, 0, 0, 1]; - } - - // Compute the ending vector from the surface of the ball to its center. - var rollEnd = this.projectOnTrackball_(rollTo); - - // Take the cross product of the two vectors. r = s X e - var rollVector = this.rollStart_.cross(rollEnd); - var invStartMag = 1.0 / this.rollStart_.magnitude(); - var invEndMag = 1.0 / rollEnd.magnitude(); - - // cos(a) = (s . e) / (||s|| ||e||) - var cosAng = this.rollStart_.dot(rollEnd) * invStartMag * invEndMag; - // sin(a) = ||(s X e)|| / (||s|| ||e||) - var sinAng = rollVector.magnitude() * invStartMag * invEndMag; - // Build a quaternion that represents the rotation about |rollVector|. - // Use atan2 for a better angle. If you use only cos or sin, you only get - // half the possible angles, and you can end up with rotations that flip - // around near the poles. - var rollHalfAngle = Math.atan2(sinAng, cosAng) * 0.5; - rollVector.normalize(); - // The quaternion looks like this: [[v], cos(angle/2)], where [v] is the - // imaginary part of the quaternion and is computed as [x, y, z] * - // sin(angle/2). - rollVector.scale(Math.sin(rollHalfAngle)); - var ballQuaternion = [rollVector.x, - rollVector.y, - rollVector.z, - Math.cos(rollHalfAngle)]; - return ballQuaternion; -}; - -/** - * Handle the drag START event: grab the current camera orientation from the - * sending view and set up the virtual trackball. - * @param {!tumbler.Application} view The view controller that called this - * method. - * @param {!tumbler.DragEvent} dragStartEvent The DRAG_START event that - * triggered this handler. - */ -tumbler.Trackball.prototype.handleStartDrag = - function(controller, dragStartEvent) { - // Cache the camera orientation. The orientations from the trackball as it - // rolls are concatenated to this orientation and pushed back into the - // plugin on the other side of the JavaScript bridge. - controller.setCameraOrientation(this.cameraOrientation_); - // Invert the y-coordinate for the trackball computations. - var frameSize = { width: controller.offsetWidth, - height: controller.offsetHeight }; - var flippedY = { x: dragStartEvent.clientX, - y: frameSize.height - dragStartEvent.clientY }; - this.startAtPointInFrame(flippedY, frameSize); -}; - -/** - * Handle the drag DRAG event: concatenate the current orientation to the - * cached orientation. Send this final value through to the GSPlugin via the - * setValueForKey() method. - * @param {!tumbler.Application} view The view controller that called this - * method. - * @param {!tumbler.DragEvent} dragEvent The DRAG event that triggered this - * handler. - */ -tumbler.Trackball.prototype.handleDrag = - function(controller, dragEvent) { - // Flip the y-coordinate so that the 2D origin is in the lower-left corner. - var frameSize = { width: controller.offsetWidth, - height: controller.offsetHeight }; - var flippedY = { x: dragEvent.clientX, - y: frameSize.height - dragEvent.clientY }; - controller.setCameraOrientation( - tumbler.multQuaternions(this.rollToPoint(flippedY), - this.cameraOrientation_)); -}; - -/** - * Handle the drag END event: get the final orientation and concatenate it to - * the cached orientation. - * @param {!tumbler.Application} view The view controller that called this - * method. - * @param {!tumbler.DragEvent} dragEndEvent The DRAG_END event that triggered - * this handler. - */ -tumbler.Trackball.prototype.handleEndDrag = - function(controller, dragEndEvent) { - // Flip the y-coordinate so that the 2D origin is in the lower-left corner. - var frameSize = { width: controller.offsetWidth, - height: controller.offsetHeight }; - var flippedY = { x: dragEndEvent.clientX, - y: frameSize.height - dragEndEvent.clientY }; - this.cameraOrientation_ = tumbler.multQuaternions(this.rollToPoint(flippedY), - this.cameraOrientation_); - controller.setCameraOrientation(this.cameraOrientation_); -}; - -/** - * A utility function to multiply two quaterions. Returns the product q0 * q1. - * This is effectively the same thing as concatenating the two rotations - * represented in each quaternion together. Note that quaternion multiplication - * is NOT commutative: q0 * q1 != q1 * q0. - * @param {!Array.} q0 A 4-element array representing the first - * quaternion. - * @param {!Array.} q1 A 4-element array representing the second - * quaternion. - * @return {Array.} A 4-element array representing the product q0 * q1. - */ -tumbler.multQuaternions = function(q0, q1) { - // Return q0 * q1 (note the order). - var qMult = [ - q0[3] * q1[0] + q0[0] * q1[3] + q0[1] * q1[2] - q0[2] * q1[1], - q0[3] * q1[1] - q0[0] * q1[2] + q0[1] * q1[3] + q0[2] * q1[0], - q0[3] * q1[2] + q0[0] * q1[1] - q0[1] * q1[0] + q0[2] * q1[3], - q0[3] * q1[3] - q0[0] * q1[0] - q0[1] * q1[1] - q0[2] * q1[2] - ]; - return qMult; -}; - -/** - * Real numbers that are less than this distance apart are considered - * equivalent. - * TODO(dspringer): It seems as though there should be a const like this - * in Closure somewhere (goog.math?). - * @type {number} - */ -tumbler.Trackball.DOUBLE_EPSILON = 1.0e-16; diff --git a/Demos/NativeClient/bin_html/tumbler.js b/Demos/NativeClient/bin_html/tumbler.js deleted file mode 100644 index e8e42ebdc..000000000 --- a/Demos/NativeClient/bin_html/tumbler.js +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview The tumbler Application object. This object instantiates a - * Trackball object and connects it to the element named |tumbler_content|. - * It also conditionally embeds a debuggable module or a release module into - * the |tumbler_content| element. - */ - -// Requires tumbler -// Requires tumbler.Dragger -// Requires tumbler.Trackball - -/** - * Constructor for the Application class. Use the run() method to populate - * the object with controllers and wire up the events. - * @constructor - */ -tumbler.Application = function() { - /** - * The native module for the application. This refers to the module loaded - * via the tag. - * @type {Element} - * @private - */ - this.module_ = null; - - /** - * The trackball object. - * @type {tumbler.Trackball} - * @private - */ - this.trackball_ = null; - - /** - * The mouse-drag event object. - * @type {tumbler.Dragger} - * @private - */ - this.dragger_ = null; - - /** - * The function objects that get attached as event handlers. These are - * cached so that they can be removed when they are no longer needed. - * @type {function} - * @private - */ - this.boundModuleDidLoad_ = null; -} - -/** - * The ids used for elements in the DOM. The Tumlber Application expects these - * elements to exist. - * @enum {string} - * @private - */ -tumbler.Application.DomIds_ = { - MODULE: 'tumbler', // The element representing the NaCl module - VIEW: 'tumbler_view' // The
containing the NaCl element. -} - -/** - * Called by the module loading function once the module has been loaded. - * @param {?Element} nativeModule The instance of the native module. - */ -tumbler.Application.prototype.moduleDidLoad = function() { - this.module_ = document.getElementById(tumbler.Application.DomIds_.MODULE); - // Unbind the load function. - this.boundModuleDidLoad_ = null; - - /** - * Set the camera orientation property on the NaCl module. - * @param {Array.} orientation A 4-element array representing the - * camera orientation as a quaternion. - */ - this.module_.setCameraOrientation = function(orientation) { - var methodString = 'setCameraOrientation ' + - 'orientation:' + - JSON.stringify(orientation); - this.postMessage(methodString); - } - - this.trackball_ = new tumbler.Trackball(); - this.dragger_ = new tumbler.Dragger(this.module_); - this.dragger_.addDragListener(this.trackball_); -} - -/** - * Asserts that cond is true; issues an alert and throws an Error otherwise. - * @param {bool} cond The condition. - * @param {String} message The error message issued if cond is false. - */ -tumbler.Application.prototype.assert = function(cond, message) { - if (!cond) { - message = "Assertion failed: " + message; - alert(message); - throw new Error(message); - } -} - -/** - * The run() method starts and 'runs' the application. The trackball object - * is allocated and all the events get wired up. - * @param {?String} opt_contentDivName The id of a DOM element in which to - * embed the Native Client module. If unspecified, defaults to - * VIEW. The DOM element must exist. - */ -tumbler.Application.prototype.run = function(opt_contentDivName) { - contentDivName = opt_contentDivName || tumbler.Application.DomIds_.VIEW; - var contentDiv = document.getElementById(contentDivName); - this.assert(contentDiv, "Missing DOM element '" + contentDivName + "'"); - - // Note that the element is wrapped inside a
, which has a 'load' - // event listener attached. This method is used instead of attaching the - // 'load' event listener directly to the element to ensure that the - // listener is active before the NaCl module 'load' event fires. - this.boundModuleDidLoad_ = this.moduleDidLoad.bind(this); - contentDiv.addEventListener('load', this.boundModuleDidLoad_, true); - - // Load the published .nexe. This includes the 'nacl' attribute which - // shows how to load multi-architecture modules. Each entry in the "nexes" - // object in the .nmf manifest file is a key-value pair: the key is the - // runtime ('x86-32', 'x86-64', etc.); the value is a URL for the desired - // NaCl module. To load the debug versions of your .nexes, set the 'nacl' - // attribute to the _dbg.nmf version of the manifest file. - contentDiv.innerHTML = '' -} diff --git a/Demos/NativeClient/bin_html/tumbler.nmf b/Demos/NativeClient/bin_html/tumbler.nmf deleted file mode 100644 index c4bf50a4b..000000000 --- a/Demos/NativeClient/bin_html/tumbler.nmf +++ /dev/null @@ -1,6 +0,0 @@ -{ - "program": { - "x86-64": {"url": "NativeClientTumbler_x64.exe"}, - "x86-32": {"url": "NativeClientTumbler.exe"} - } -} diff --git a/Demos/NativeClient/bin_html/vector3.js b/Demos/NativeClient/bin_html/vector3.js deleted file mode 100644 index a79f78173..000000000 --- a/Demos/NativeClient/bin_html/vector3.js +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview A 3D vector class. Proviudes some utility functions on - * 3-dimentional vectors. - */ - -// Requires tumbler - -/** - * Constructor for the Vector3 object. This class contains a 3-tuple that - * represents a vector in 3D space. - * @param {?number} opt_x The x-coordinate for this vector. If null or - * undefined, the x-coordinate value is set to 0. - * @param {?number} opt_y The y-coordinate for this vector. If null or - * undefined, the y-coordinate value is set to 0. - * @param {?number} opt_z The z-coordinate for this vector. If null or - * undefined, the z-coordinate value is set to 0. - * @constructor - */ -tumbler.Vector3 = function(opt_x, opt_y, opt_z) { - /** - * The vector's 3-tuple. - * @type {number} - */ - this.x = opt_x || 0; - this.y = opt_y || 0; - this.z = opt_z || 0; -} - -/** - * Method to return the magnitude of a Vector3. - * @return {number} the magnitude of the vector. - */ -tumbler.Vector3.prototype.magnitude = function() { - return Math.sqrt(this.dot(this)); -} - -/** - * Normalize the vector in-place. - * @return {number} the magnitude of the vector. - */ -tumbler.Vector3.prototype.normalize = function() { - var mag = this.magnitude(); - if (mag < tumbler.Vector3.DOUBLE_EPSILON) - return 0.0; // |this| is equivalent to the 0-vector, don't normalize. - this.scale(1.0 / mag); - return mag; -} - -/** - * Scale the vector in-place by |s|. - * @param {!number} s The scale factor. - */ -tumbler.Vector3.prototype.scale = function(s) { - this.x *= s; - this.y *= s; - this.z *= s; -} - -/** - * Compute the dot product: |this| . v. - * @param {!tumbler.Vector3} v The vector to dot. - * @return {number} the result of |this| . v. - */ -tumbler.Vector3.prototype.dot = function(v) { - return this.x * v.x + this.y * v.y + this.z * v.z; -} - -/** - * Compute the cross product: |this| X v. - * @param {!tumbler.Vector3} v The vector to cross with. - * @return {tumbler.Vector3} the result of |this| X v. - */ -tumbler.Vector3.prototype.cross = function(v) { - var vCross = new tumbler.Vector3(this.y * v.z - this.z * v.y, - this.z * v.x - this.x * v.z, - this.x * v.y - this.y * v.x); - return vCross; -} - -/** - * Real numbers that are less than this distance apart are considered - * equivalent. - * TODO(dspringer): It seems as though there should be a const like this - * in generally available somewhere. - * @type {number} - */ -tumbler.Vector3.DOUBLE_EPSILON = 1.0e-16; diff --git a/Demos/NativeClient/callback.h b/Demos/NativeClient/callback.h deleted file mode 100644 index 4d67262ad..000000000 --- a/Demos/NativeClient/callback.h +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_CALLBACK_H_ -#define EXAMPLES_TUMBLER_CALLBACK_H_ - -#include -#include -#include - -namespace tumbler { - -class ScriptingBridge; - -// Templates used to support method call-backs when a method or property is -// accessed from the browser code. - -// Class suite used to publish a method name to Javascript. Typical use is -// like this: -// photo::MethodCallback* calculate_callback_; -// calculate_callback_ = -// new scripting::MethodCallback(this, -// &Calculator::Calculate); -// bridge->AddMethodNamed("calculate", calculate_callback_); -// ... -// delete calculate_callback_; -// -// The caller must delete the callback. - -// Methods get parameters as a dictionary that maps parameter names to values. -typedef std::map MethodParameter; - -// Pure virtual class used in STL containers. -class MethodCallbackExecutor { - public: - virtual ~MethodCallbackExecutor() {} - virtual void Execute( - const ScriptingBridge& bridge, - const MethodParameter& parameters) = 0; -}; - -template -class MethodCallback : public MethodCallbackExecutor { - public: - typedef void (T::*Method)( - const ScriptingBridge& bridge, - const MethodParameter& parameters); - - MethodCallback(T* instance, Method method) - : instance_(instance), method_(method) {} - virtual ~MethodCallback() {} - virtual void Execute( - const ScriptingBridge& bridge, - const MethodParameter& parameters) { - // Use "this->" to force C++ to look inside our templatized base class; see - // Effective C++, 3rd Ed, item 43, p210 for details. - ((this->instance_)->*(this->method_))(bridge, parameters); - } - - private: - T* instance_; - Method method_; -}; - -template -class ConstMethodCallback : public MethodCallbackExecutor { - public: - typedef void (T::*ConstMethod)( - const ScriptingBridge& bridge, - const MethodParameter& parameters) const; - - ConstMethodCallback(const T* instance, ConstMethod method) - : instance_(instance), const_method_(method) {} - virtual ~ConstMethodCallback() {} - virtual void Execute( - const ScriptingBridge& bridge, - const MethodParameter& parameters) { - // Use "this->" to force C++ to look inside our templatized base class; see - // Effective C++, 3rd Ed, item 43, p210 for details. - ((this->instance_)->*(this->const_method_))(bridge, parameters); - } - - private: - const T* instance_; - ConstMethod const_method_; -}; - -} // namespace tumbler - -#endif // EXAMPLES_TUMBLER_CALLBACK_H_ - diff --git a/Demos/NativeClient/cube.cc b/Demos/NativeClient/cube.cc deleted file mode 100644 index 777e6ebdc..000000000 --- a/Demos/NativeClient/cube.cc +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "cube.h" - -#include - -#include "shader_util.h" -#include "transforms.h" - -namespace tumbler { - -static const size_t kVertexCount = 24; -static const int kIndexCount = 36; - -Cube::Cube(SharedOpenGLContext opengl_context) - : opengl_context_(opengl_context), - width_(1), - height_(1) { - eye_[0] = eye_[1] = 0.0f; - eye_[2] = 2.0f; - orientation_[0] = 0.0f; - orientation_[1] = 0.0f; - orientation_[2] = 0.0f; - orientation_[3] = 1.0f; -} - -Cube::~Cube() { - glDeleteBuffers(3, cube_vbos_); - glDeleteProgram(shader_program_object_); -} - -void Cube::PrepareOpenGL() { - CreateShaders(); - CreateCube(); - glClearColor(1.0f, 1.0f, 1.0f, 1.0f); - glEnable(GL_DEPTH_TEST); -} - -void Cube::Resize(int width, int height) { - width_ = std::max(width, 1); - height_ = std::max(height, 1); - // Set the viewport - glViewport(0, 0, width_, height_); - // Compute the perspective projection matrix with a 60 degree FOV. - GLfloat aspect = static_cast(width_) / static_cast(height_); - transform_4x4::LoadIdentity(perspective_proj_); - transform_4x4::Perspective(perspective_proj_, 60.0f, aspect, 1.0f, 20.0f); -} - -void Cube::Draw() { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - // Compute a new model-view matrix, then use that to make the composite - // model-view-projection matrix: MVP = MV . P. - GLfloat model_view[16]; - ComputeModelViewTransform(model_view); - transform_4x4::Multiply(mvp_matrix_, model_view, perspective_proj_); - - glBindBuffer(GL_ARRAY_BUFFER, cube_vbos_[0]); - glUseProgram(shader_program_object_); - glEnableVertexAttribArray(position_location_); - glVertexAttribPointer(position_location_, - 3, - GL_FLOAT, - GL_FALSE, - 3 * sizeof(GLfloat), - NULL); - glEnableVertexAttribArray(color_location_); - glBindBuffer(GL_ARRAY_BUFFER, cube_vbos_[1]); - glVertexAttribPointer(color_location_, - 3, - GL_FLOAT, - GL_FALSE, - 3 * sizeof(GLfloat), - NULL); - glUniformMatrix4fv(mvp_location_, 1, GL_FALSE, mvp_matrix_); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, cube_vbos_[2]); - glDrawElements(GL_TRIANGLES, kIndexCount, GL_UNSIGNED_SHORT, 0); - glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); -} - -bool Cube::CreateShaders() { - const char vertex_shader_src[] = - "uniform mat4 u_mvpMatrix; \n" - "attribute vec4 a_position; \n" - "attribute vec3 a_color; \n" - "varying lowp vec4 v_color; \n" - "void main() \n" - "{ \n" - " v_color.xyz = a_color; \n" - " v_color.w = 1.0; \n" - " gl_Position = u_mvpMatrix * a_position; \n" - "} \n"; - - const char fragment_shader_src[] = - "varying lowp vec4 v_color; \n" - "void main() \n" - "{ \n" - " gl_FragColor = v_color; \n" - "} \n"; - - // Load the shaders and get a linked program object - shader_program_object_ = - shader_util::CreateProgramFromVertexAndFragmentShaders( - vertex_shader_src, fragment_shader_src); - if (shader_program_object_ == 0) - return false; - position_location_ = glGetAttribLocation(shader_program_object_, - "a_position"); - color_location_ = glGetAttribLocation(shader_program_object_, "a_color"); - mvp_location_ = glGetUniformLocation(shader_program_object_, "u_mvpMatrix"); - return true; -} - -void Cube::CreateCube() { - static const GLfloat cube_vertices[] = { - // Vertex coordinates interleaved with color values - // Bottom - -0.5f, -0.5f, -0.5f, - -0.5f, -0.5f, 0.5f, - 0.5f, -0.5f, 0.5f, - 0.5f, -0.5f, -0.5f, - // Top - -0.5f, 0.5f, -0.5f, - -0.5f, 0.5f, 0.5f, - 0.5f, 0.5f, 0.5f, - 0.5f, 0.5f, -0.5f, - // Back - -0.5f, -0.5f, -0.5f, - -0.5f, 0.5f, -0.5f, - 0.5f, 0.5f, -0.5f, - 0.5f, -0.5f, -0.5f, - // Front - -0.5f, -0.5f, 0.5f, - -0.5f, 0.5f, 0.5f, - 0.5f, 0.5f, 0.5f, - 0.5f, -0.5f, 0.5f, - // Left - -0.5f, -0.5f, -0.5f, - -0.5f, -0.5f, 0.5f, - -0.5f, 0.5f, 0.5f, - -0.5f, 0.5f, -0.5f, - // Right - 0.5f, -0.5f, -0.5f, - 0.5f, -0.5f, 0.5f, - 0.5f, 0.5f, 0.5f, - 0.5f, 0.5f, -0.5f - }; - - static const GLfloat cube_colors[] = { - // Vertex coordinates interleaved with color values - // Bottom - 1.0, 0.0, 0.0, - 1.0, 0.0, 0.0, - 1.0, 0.0, 0.0, - 1.0, 0.0, 0.0, - // Top - 0.0, 1.0, 0.0, - 0.0, 1.0, 0.0, - 0.0, 1.0, 0.0, - 0.0, 1.0, 0.0, - // Back - 0.0, 0.0, 1.0, - 0.0, 0.0, 1.0, - 0.0, 0.0, 1.0, - 0.0, 0.0, 1.0, - // Front - 1.0, 0.0, 1.0, - 1.0, 0.0, 1.0, - 1.0, 0.0, 1.0, - 1.0, 0.0, 1.0, - // Left - 1.0, 1.0, 0.0, - 1.0, 1.0, 0.0, - 1.0, 1.0, 0.0, - 1.0, 1.0, 0.0, - // Right - 0.0, 1.0, 1.0, - 0.0, 1.0, 1.0, - 0.0, 1.0, 1.0, - 0.0, 1.0, 1.0 - }; - - static const GLushort cube_indices[] = { - // Bottom - 0, 2, 1, - 0, 3, 2, - // Top - 4, 5, 6, - 4, 6, 7, - // Back - 8, 9, 10, - 8, 10, 11, - // Front - 12, 15, 14, - 12, 14, 13, - // Left - 16, 17, 18, - 16, 18, 19, - // Right - 20, 23, 22, - 20, 22, 21 - }; - - // Generate the VBOs and upload them to the graphics context. - glGenBuffers(3, cube_vbos_); - glBindBuffer(GL_ARRAY_BUFFER, cube_vbos_[0]); - glBufferData(GL_ARRAY_BUFFER, - kVertexCount * sizeof(GLfloat) * 3, - cube_vertices, - GL_STATIC_DRAW); - glBindBuffer(GL_ARRAY_BUFFER, cube_vbos_[1]); - glBufferData(GL_ARRAY_BUFFER, - kVertexCount * sizeof(GLfloat) * 3, - cube_colors, - GL_STATIC_DRAW); - glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, cube_vbos_[2]); - glBufferData(GL_ELEMENT_ARRAY_BUFFER, - kIndexCount * sizeof(GL_UNSIGNED_SHORT), - cube_indices, - GL_STATIC_DRAW); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); -} - -void Cube::ComputeModelViewTransform(GLfloat* model_view) { - // This method takes into account the possiblity that |orientation_| - // might not be normalized. - double sqrx = orientation_[0] * orientation_[0]; - double sqry = orientation_[1] * orientation_[1]; - double sqrz = orientation_[2] * orientation_[2]; - double sqrw = orientation_[3] * orientation_[3]; - double sqrLength = 1.0 / (sqrx + sqry + sqrz + sqrw); - - transform_4x4::LoadIdentity(model_view); - model_view[0] = (sqrx - sqry - sqrz + sqrw) * sqrLength; - model_view[5] = (-sqrx + sqry - sqrz + sqrw) * sqrLength; - model_view[10] = (-sqrx - sqry + sqrz + sqrw) * sqrLength; - - double temp1 = orientation_[0] * orientation_[1]; - double temp2 = orientation_[2] * orientation_[3]; - model_view[1] = 2.0 * (temp1 + temp2) * sqrLength; - model_view[4] = 2.0 * (temp1 - temp2) * sqrLength; - - temp1 = orientation_[0] * orientation_[2]; - temp2 = orientation_[1] * orientation_[3]; - model_view[2] = 2.0 * (temp1 - temp2) * sqrLength; - model_view[8] = 2.0 * (temp1 + temp2) * sqrLength; - temp1 = orientation_[1] * orientation_[2]; - temp2 = orientation_[0] * orientation_[3]; - model_view[6] = 2.0 * (temp1 + temp2) * sqrLength; - model_view[9] = 2.0 * (temp1 - temp2) * sqrLength; - model_view[3] = 0.0; - model_view[7] = 0.0; - model_view[11] = 0.0; - - // Concatenate the translation to the eye point. - model_view[12] = -eye_[0]; - model_view[13] = -eye_[1]; - model_view[14] = -eye_[2]; - model_view[15] = 1.0; -} - -} // namespace tumbler diff --git a/Demos/NativeClient/cube.h b/Demos/NativeClient/cube.h deleted file mode 100644 index 1c3b62baa..000000000 --- a/Demos/NativeClient/cube.h +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_CUBE_H_ -#define EXAMPLES_TUMBLER_CUBE_H_ - -#include -#include -#include "opengl_context.h" -#include "opengl_context_ptrs.h" - -namespace tumbler { - -// The Cube class provides a place to implement 3D rendering. It has a -// frame that it occupies in a browser window. -class Cube { - public: - explicit Cube(SharedOpenGLContext opengl_context); - ~Cube(); - - // Called once when a new RenderContext is first bound to the view. The - // bound context is guaranteed to be current and valid before calling this - // method. - void PrepareOpenGL(); - - // Called whenever the size of the browser view changes. This method is - // called at least once when the view is first made visible. Clamps the - // sizes to 1. - void Resize(int width, int height); - - // Called every time the view need to be drawn. The bound context is - // guaranteed to be current and valid before this method is called. The - // visible portion of the context is flushed to the browser after this - // method returns. - void Draw(); - - // Accessor for width and height. To change these, call Resize. - const int width() const { - return width_; - } - - const int height() const { - return height_; - } - - // Accessor/mutator for the camera orientation. - void GetOrientation(std::vector* orientation) const { - if (!orientation) - return; - (*orientation)[0] = static_cast(orientation_[0]); - (*orientation)[1] = static_cast(orientation_[1]); - (*orientation)[2] = static_cast(orientation_[2]); - (*orientation)[3] = static_cast(orientation_[3]); - } - void SetOrientation(const std::vector& orientation) { - orientation_[0] = static_cast(orientation[0]); - orientation_[1] = static_cast(orientation[1]); - orientation_[2] = static_cast(orientation[2]); - orientation_[3] = static_cast(orientation[3]); - } - - private: - // Create the shaders used to draw the cube, and link them into a program. - // Initializes |shader_progam_object_|, |position_loction_| and - // |mvp_location_|. - bool CreateShaders(); - - // Generates a cube as a series of GL_TRIANGLE_STRIPs, and initializes - // |index_count_| to the number of indices in the index list used as a VBO. - // Creates the |vbo_ids_| required for the vertex and index data and uploads - // the the VBO data. - void CreateCube(); - - // Build up the model-view transform from the eye and orienation properties. - // Assumes that |model_view| is a 4x4 matrix. - void ComputeModelViewTransform(GLfloat* model_view); - - SharedOpenGLContext opengl_context_; - int width_; - int height_; - GLuint shader_program_object_; // The compiled shaders. - GLint position_location_; // The position attribute location. - GLint color_location_; // The color attribute location. - GLint mvp_location_; // The Model-View-Projection composite matrix. - GLuint cube_vbos_[3]; - GLfloat eye_[3]; // The eye point of the virtual camera. - // The orientation of the virtual camera stored as a quaternion. The - // quaternion is laid out as {{x, y, z}, w}. - GLfloat orientation_[4]; - GLfloat perspective_proj_[16]; - GLfloat mvp_matrix_[16]; -}; - -} // namespace tumbler - -#endif // EXAMPLES_TUMBLER_CUBE_H_ diff --git a/Demos/NativeClient/opengl_context.cc b/Demos/NativeClient/opengl_context.cc deleted file mode 100644 index 1c0afa711..000000000 --- a/Demos/NativeClient/opengl_context.cc +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "opengl_context.h" - -#include -#include "ppapi/gles2/gl2ext_ppapi.h" - -namespace { -// This is called by the brower when the 3D context has been flushed to the -// browser window. -void FlushCallback(void* data, int32_t result) { - static_cast(data)->set_flush_pending(false); -} -} // namespace - -namespace tumbler { - -OpenGLContext::OpenGLContext(pp::Instance* instance) - : pp::Graphics3DClient_Dev(instance), - flush_pending_(false) { - pp::Module* module = pp::Module::Get(); - assert(module); - gles2_interface_ = static_cast( - module->GetBrowserInterface(PPB_OPENGLES2_DEV_INTERFACE)); - assert(gles2_interface_); -} - -OpenGLContext::~OpenGLContext() { - glSetCurrentContextPPAPI(0); -} - -bool OpenGLContext::MakeContextCurrent(pp::Instance* instance) { - if (instance == NULL) { - glSetCurrentContextPPAPI(0); - return false; - } - // Lazily create the Pepper context. - if (context_.is_null()) { - context_ = pp::Context3D_Dev(*instance, 0, pp::Context3D_Dev(), NULL); - if (context_.is_null()) { - glSetCurrentContextPPAPI(0); - return false; - } - surface_ = pp::Surface3D_Dev(*instance, 0, NULL); - context_.BindSurfaces(surface_, surface_); - instance->BindGraphics(surface_); - } - glSetCurrentContextPPAPI(context_.pp_resource()); - return true; -} - -void OpenGLContext::InvalidateContext(pp::Instance* instance) { - if (instance == NULL) - return; - // Unbind the existing surface and re-bind to null surfaces. - instance->BindGraphics(pp::Surface3D_Dev()); - context_.BindSurfaces(pp::Surface3D_Dev(), pp::Surface3D_Dev()); - glSetCurrentContextPPAPI(0); -} - -void OpenGLContext::FlushContext() { - if (flush_pending()) { - // A flush is pending so do nothing; just drop this flush on the floor. - return; - } - set_flush_pending(true); - surface_.SwapBuffers(pp::CompletionCallback(&FlushCallback, this)); -} -} // namespace tumbler - diff --git a/Demos/NativeClient/opengl_context.h b/Demos/NativeClient/opengl_context.h deleted file mode 100644 index 851b9dbfc..000000000 --- a/Demos/NativeClient/opengl_context.h +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_OPENGL_CONTEXT_H_ -#define EXAMPLES_TUMBLER_OPENGL_CONTEXT_H_ - -/// -/// @file -/// OpenGLContext manages the OpenGL context in the browser that is associated -/// with a @a pp::Instance instance. -/// - -#include - -#include -#include - -#include "opengl_context_ptrs.h" -#include "ppapi/c/dev/ppb_opengles_dev.h" -#include "ppapi/cpp/dev/context_3d_dev.h" -#include "ppapi/cpp/dev/graphics_3d_client_dev.h" -#include "ppapi/cpp/dev/graphics_3d_dev.h" -#include "ppapi/cpp/dev/surface_3d_dev.h" -#include "ppapi/cpp/instance.h" - -namespace tumbler { - -/// OpenGLContext manages an OpenGL rendering context in the browser. -/// -class OpenGLContext : public pp::Graphics3DClient_Dev { - public: - explicit OpenGLContext(pp::Instance* instance); - - /// Release all the in-browser resources used by this context, and make this - /// context invalid. - virtual ~OpenGLContext(); - - /// The Graphics3DClient interfcace. - virtual void Graphics3DContextLost() { - assert(!"Unexpectedly lost graphics context"); - } - - /// Make @a this the current 3D context in @a instance. - /// @param instance The instance of the NaCl module that will receive the - /// the current 3D context. - /// @return success. - bool MakeContextCurrent(pp::Instance* instance); - - /// Flush the contents of this context to the browser's 3D device. - void FlushContext(); - - /// Make the underlying 3D device invalid, so that any subsequent rendering - /// commands will have no effect. The next call to MakeContextCurrent() will - /// cause the underlying 3D device to get rebound and start receiving - /// receiving rendering commands again. Use InvalidateContext(), for - /// example, when resizing the context's viewing area. - void InvalidateContext(pp::Instance* instance); - - /// The OpenGL ES 2.0 interface. - const struct PPB_OpenGLES2_Dev* gles2() const { - return gles2_interface_; - } - - /// The PP_Resource needed to make GLES2 calls through the Pepper interface. - const PP_Resource gl_context() const { - return context_.pp_resource(); - } - - /// Indicate whether a flush is pending. This can only be called from the - /// main thread; it is not thread safe. - bool flush_pending() const { - return flush_pending_; - } - void set_flush_pending(bool flag) { - flush_pending_ = flag; - } - - private: - pp::Context3D_Dev context_; - pp::Surface3D_Dev surface_; - bool flush_pending_; - - const struct PPB_OpenGLES2_Dev* gles2_interface_; -}; - -} // namespace tumbler - -#endif // EXAMPLES_TUMBLER_OPENGL_CONTEXT_H_ - diff --git a/Demos/NativeClient/opengl_context_ptrs.h b/Demos/NativeClient/opengl_context_ptrs.h deleted file mode 100644 index 347852134..000000000 --- a/Demos/NativeClient/opengl_context_ptrs.h +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_OPENGL_CONTEXT_PTRS_H_ -#define EXAMPLES_TUMBLER_OPENGL_CONTEXT_PTRS_H_ - -// A convenience wrapper for a shared OpenGLContext pointer type. As other -// smart pointer types are needed, add them here. - -#include - -namespace tumbler { - -class OpenGLContext; - -typedef std::tr1::shared_ptr SharedOpenGLContext; - -} // namespace tumbler - -#endif // EXAMPLES_TUMBLER_OPENGL_CONTEXT_PTRS_H_ - diff --git a/Demos/NativeClient/premake4.lua b/Demos/NativeClient/premake4.lua deleted file mode 100644 index 1957fbb3a..000000000 --- a/Demos/NativeClient/premake4.lua +++ /dev/null @@ -1,27 +0,0 @@ - project "NativeClientTumbler" - - kind "ConsoleApp" - - targetdir "bin_html" - - includedirs { "." } - - --libdirs {} - - links { - "ppapi_gles2", - "ppapi", - "ppapi_cpp", - "ppruntime" - } - - - files { - "cube.cc", - "opengl_context.cc", - "scripting_bridge.cc", - "shader_util.cc", - "transforms.cc", - "tumbler.cc", - "tumbler_module.cc" - } \ No newline at end of file diff --git a/Demos/NativeClient/scripting_bridge.cc b/Demos/NativeClient/scripting_bridge.cc deleted file mode 100644 index abc67ca2e..000000000 --- a/Demos/NativeClient/scripting_bridge.cc +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "scripting_bridge.h" - -namespace { -const char* const kWhiteSpaceCharacters = " \t"; - -// Helper function to pull out the next token in |token_string|. A token is -// delimited by whitespace. Scanning begins at |*pos|, if pos goes beyond the -// end of |token_string|, it is set to std::string::npos and an empty string -// is returned. On return, |*pos| will point to the beginning of the next -// token. |pos| must not be NULL. -const std::string ScanToken(const std::string& token_string, size_t* pos) { - std::string token; - if (*pos == std::string::npos) { - return token; - } - size_t token_start_pos = token_string.find_first_not_of(kWhiteSpaceCharacters, - *pos); - size_t token_end_pos = token_string.find_first_of(kWhiteSpaceCharacters, - token_start_pos); - if (token_start_pos != std::string::npos) { - token = token_string.substr(token_start_pos, token_end_pos); - } - *pos = token_end_pos; - return token; -} - -// Take a string of the form 'name:value' and split it into two strings, one -// containing 'name' and the other 'value'. If the ':' separator is missing, -// or is the last character in |parameter|, |parameter| is copied to -// |param_name|, |param_value| is left unchanged and false is returned. -bool ParseParameter(const std::string& parameter, - std::string* param_name, - std::string* param_value) { - bool success = false; - size_t sep_pos = parameter.find_first_of(':'); - if (sep_pos != std::string::npos) { - *param_name = parameter.substr(0, sep_pos); - if (sep_pos < parameter.length() - 1) { - *param_value = parameter.substr(sep_pos + 1); - success = true; - } else { - success = false; - } - } else { - *param_name = parameter; - success = false; - } - return success; -} -} // namespace - -namespace tumbler { - -bool ScriptingBridge::AddMethodNamed(const std::string& method_name, - SharedMethodCallbackExecutor method) { - if (method_name.size() == 0 || method == NULL) - return false; - method_dictionary_.insert( - std::pair(method_name, - method)); - return true; -} - -bool ScriptingBridge::InvokeMethod(const std::string& method) { - size_t current_pos = 0; - const std::string method_name = ScanToken(method, ¤t_pos); - MethodDictionary::iterator method_iter; - method_iter = method_dictionary_.find(method_name); - if (method_iter != method_dictionary_.end()) { - // Pull out the method parameters and build a dictionary that maps - // parameter names to values. - std::map param_dict; - while (current_pos != std::string::npos) { - const std::string parameter = ScanToken(method, ¤t_pos); - if (parameter.length()) { - std::string param_name; - std::string param_value; - if (ParseParameter(parameter, ¶m_name, ¶m_value)) { - // Note that duplicate parameter names will override each other. The - // last one in the method string will be used. - param_dict[param_name] = param_value; - } - } - } - (*method_iter->second).Execute(*this, param_dict); - return true; - } - return false; -} - -} // namespace tumbler diff --git a/Demos/NativeClient/scripting_bridge.h b/Demos/NativeClient/scripting_bridge.h deleted file mode 100644 index f6a366c65..000000000 --- a/Demos/NativeClient/scripting_bridge.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_SCRIPTING_BRIDGE_H_ -#define EXAMPLES_TUMBLER_SCRIPTING_BRIDGE_H_ - -#include -#include -#include -#include - -#include "callback.h" -#include "ppapi/cpp/var.h" - -namespace tumbler { - -class MethodCallbackExecutor; - -// This class handles the interface between the browser and the NaCl module. -// There is a single point of entry from the browser: postMessage(). The -// string passed to postMessage() has this format: -// 'function_name arg_name0:arg_0 arg_name1:arg1 ...' -// The arguments have undetermined type; they are placed in a map of argument -// names and values. Values are all strings, it is up to the target code to -// do any type coercion. -// Methods called by the scripting bridge must have a signature like this: -// void Method(const ScriptingBridge& bridge, -// const ParameterDictionary&); -class ScriptingBridge { - public: - // Shared pointer type used in the method map. - typedef std::tr1::shared_ptr - SharedMethodCallbackExecutor; - - virtual ~ScriptingBridge() {} - - // Causes |method_name| to be published as a method that can be called via - // postMessage() from the browser. Associates this method with |method|. - bool AddMethodNamed(const std::string& method_name, - SharedMethodCallbackExecutor method); - - bool InvokeMethod(const std::string& method); - - private: - typedef std::map MethodDictionary; - - MethodDictionary method_dictionary_; -}; - -} // namespace tumbler -#endif // EXAMPLES_TUMBLER_SCRIPTING_BRIDGE_H_ diff --git a/Demos/NativeClient/shader_util.cc b/Demos/NativeClient/shader_util.cc deleted file mode 100644 index 802955b66..000000000 --- a/Demos/NativeClient/shader_util.cc +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "shader_util.h" - -#include -#include - -namespace shader_util { - -GLuint CreateShaderOfType(GLenum type, const char *shader_src) { - GLuint shader; - GLint compiled; - - // Create the shader object - shader = glCreateShader(type); - - if (shader == 0) - return 0; - - // Load and compile the shader source - glShaderSource(shader, 1, &shader_src, NULL); - glCompileShader(shader); - - // Check the compile status - glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); - if (compiled == 0) { - GLint info_len = 0; - glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &info_len); - if (info_len > 1) { - char* info_log = reinterpret_cast(malloc(sizeof(char) * info_len)); - glGetShaderInfoLog(shader, info_len, NULL, info_log); - // TODO(dspringer): We could really use a logging API. - printf("Error compiling shader:\n%s\n", info_log); - free(info_log); - } - glDeleteShader(shader); - return 0; - } - - return shader; -} - -GLuint CreateProgramFromVertexAndFragmentShaders( - const char *vertex_shader_src, const char *fragment_shader_src) { - GLuint vertex_shader; - GLuint fragment_shader; - GLuint program_object; - GLint linked; - - // Load the vertex/fragment shaders - vertex_shader = CreateShaderOfType(GL_VERTEX_SHADER, vertex_shader_src); - if (vertex_shader == 0) - return 0; - fragment_shader = CreateShaderOfType(GL_FRAGMENT_SHADER, fragment_shader_src); - if (fragment_shader == 0) { - glDeleteShader(vertex_shader); - return 0; - } - - // Create the program object and attach the shaders. - program_object = glCreateProgram(); - if (program_object == 0) - return 0; - glAttachShader(program_object, vertex_shader); - glAttachShader(program_object, fragment_shader); - - // Link the program - glLinkProgram(program_object); - - // Check the link status - glGetProgramiv(program_object, GL_LINK_STATUS, &linked); - if (linked == 0) { - GLint info_len = 0; - glGetProgramiv(program_object, GL_INFO_LOG_LENGTH, &info_len); - if (info_len > 1) { - char* info_log = reinterpret_cast(malloc(info_len)); - glGetProgramInfoLog(program_object, info_len, NULL, info_log); - // TODO(dspringer): We could really use a logging API. - printf("Error linking program:\n%s\n", info_log); - free(info_log); - } - glDeleteProgram(program_object); - return 0; - } - - // Delete these here because they are attached to the program object. - glDeleteShader(vertex_shader); - glDeleteShader(fragment_shader); - - return program_object; -} - -} // namespace shader_util diff --git a/Demos/NativeClient/shader_util.h b/Demos/NativeClient/shader_util.h deleted file mode 100644 index 635b16b9f..000000000 --- a/Demos/NativeClient/shader_util.h +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Some simple helper functions that load shaders and create program objects. - -#ifndef EXAMPLES_TUMBLER_SHADER_UTIL_H_ -#define EXAMPLES_TUMBLER_SHADER_UTIL_H_ - -#include - -namespace shader_util { - -// Load and compile a shader. |type| can be one of GL_VERTEX_SHADER or -// GL_FRAGMENT_SHADER. Returns a non-0 value representing the compiled -// shader on success, 0 on failure. The caller is responsible for deleting -// the returned shader using glDeleteShader(). -GLuint CreateShaderOfType(GLenum type, const char *shader_src); - -// Load and compile the vertex and fragment shaders, then link these together -// into a complete program. Returns a non-0 value representing the program on, -// success or 0 on failure. The caller is responsible for deleting the -// returned program using glDeleteProgram(). -GLuint CreateProgramFromVertexAndFragmentShaders( - const char *vertex_shader_src, const char *fragment_shader_src); - -} // namespace shader_util - -#endif // EXAMPLES_TUMBLER_SHADER_UTIL_H_ diff --git a/Demos/NativeClient/transforms.cc b/Demos/NativeClient/transforms.cc deleted file mode 100644 index 10ab16c94..000000000 --- a/Demos/NativeClient/transforms.cc +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "transforms.h" - -#include -#include -#include - -namespace transform_4x4 { - -static const GLfloat kPI = 3.1415926535897932384626433832795f; - -void Translate(GLfloat* m, GLfloat tx, GLfloat ty, GLfloat tz) { - m[12] += (m[0] * tx + m[4] * ty + m[8] * tz); - m[13] += (m[1] * tx + m[5] * ty + m[9] * tz); - m[14] += (m[2] * tx + m[6] * ty + m[10] * tz); - m[15] += (m[3] * tx + m[7] * ty + m[11] * tz); -} - -void Frustum(GLfloat* m, - GLfloat left, - GLfloat right, - GLfloat bottom, - GLfloat top, - GLfloat near_z, - GLfloat far_z) { - GLfloat delta_x = right - left; - GLfloat delta_y = top - bottom; - GLfloat delta_z = far_z - near_z; - GLfloat frustum[16]; - - if ((near_z <= 0.0f) || (far_z <= 0.0f) || - (delta_x <= 0.0f) || (delta_y <= 0.0f) || (delta_z <= 0.0f)) - return; - - frustum[0] = 2.0f * near_z / delta_x; - frustum[1] = frustum[2] = frustum[3] = 0.0f; - - frustum[5] = 2.0f * near_z / delta_y; - frustum[4] = frustum[6] = frustum[7] = 0.0f; - - frustum[8] = (right + left) / delta_x; - frustum[9] = (top + bottom) / delta_y; - frustum[10] = -(near_z + far_z) / delta_z; - frustum[11] = -1.0f; - - frustum[14] = -2.0f * near_z * far_z / delta_z; - frustum[12] = frustum[13] = frustum[15] = 0.0f; - - transform_4x4::Multiply(m, frustum, m); -} - - -void Perspective(GLfloat* m, - GLfloat fovy, - GLfloat aspect, - GLfloat near_z, - GLfloat far_z) { - GLfloat frustum_w, frustum_h; - - frustum_h = tanf((fovy * 0.5f) / 180.0f * kPI) * near_z; - frustum_w = frustum_h * aspect; - transform_4x4::Frustum(m, -frustum_w, frustum_w, -frustum_h, frustum_h, - near_z, far_z); -} - -void Multiply(GLfloat *m, GLfloat *a, GLfloat* b) { - GLfloat tmp[16]; - // tmp = a . b - GLfloat a0, a1, a2, a3; - a0 = a[0]; - a1 = a[1]; - a2 = a[2]; - a3 = a[3]; - tmp[0] = a0 * b[0] + a1 * b[4] + a2 * b[8] + a3 * b[12]; - tmp[1] = a0 * b[1] + a1 * b[5] + a2 * b[9] + a3 * b[13]; - tmp[2] = a0 * b[2] + a1 * b[6] + a2 * b[10] + a3 * b[14]; - tmp[3] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3 * b[15]; - - a0 = a[4]; - a1 = a[5]; - a2 = a[6]; - a3 = a[7]; - tmp[4] = a0 * b[0] + a1 * b[4] + a2 * b[8] + a3 * b[12]; - tmp[5] = a0 * b[1] + a1 * b[5] + a2 * b[9] + a3 * b[13]; - tmp[6] = a0 * b[2] + a1 * b[6] + a2 * b[10] + a3 * b[14]; - tmp[7] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3 * b[15]; - - a0 = a[8]; - a1 = a[9]; - a2 = a[10]; - a3 = a[11]; - tmp[8] = a0 * b[0] + a1 * b[4] + a2 * b[8] + a3 * b[12]; - tmp[9] = a0 * b[1] + a1 * b[5] + a2 * b[9] + a3 * b[13]; - tmp[10] = a0 * b[2] + a1 * b[6] + a2 * b[10] + a3 * b[14]; - tmp[11] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3 * b[15]; - - a0 = a[12]; - a1 = a[13]; - a2 = a[14]; - a3 = a[15]; - tmp[12] = a0 * b[0] + a1 * b[4] + a2 * b[8] + a3 * b[12]; - tmp[13] = a0 * b[1] + a1 * b[5] + a2 * b[9] + a3 * b[13]; - tmp[14] = a0 * b[2] + a1 * b[6] + a2 * b[10] + a3 * b[14]; - tmp[15] = a0 * b[3] + a1 * b[7] + a2 * b[11] + a3 * b[15]; - memcpy(m, tmp, sizeof(GLfloat) * 4 * 4); -} - -void LoadIdentity(GLfloat* m) { - memset(m, 0, sizeof(GLfloat) * 4 * 4); - m[0] = m[5] = m[10] = m[15] = 1.0f; -} - -} // namespace transform_4x4 diff --git a/Demos/NativeClient/transforms.h b/Demos/NativeClient/transforms.h deleted file mode 100644 index 5ac3d6e52..000000000 --- a/Demos/NativeClient/transforms.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_TRANSFORMS_H_ -#define EXAMPLES_TUMBLER_TRANSFORMS_H_ - -#include - -// A very simple set of 4x4 matrix routines. In all these routines, the input -// matrix is assumed to be a 4x4 of GLfloats. - -namespace transform_4x4 { - -// Pre-multply |m| with a projection transformation 4x4 matrix from a -// truncated pyramid viewing frustum. -void Frustum(GLfloat* m, - GLfloat left, - GLfloat right, - GLfloat bottom, - GLfloat top, - GLfloat near_z, - GLfloat far_z); - -// Replace |m| with the 4x4 identity matrix. -void LoadIdentity(GLfloat* m); - -// |m| <- |a| . |b|. |m| can point at the same memory as either |a| or |b|. -void Multiply(GLfloat *m, GLfloat *a, GLfloat* b); - -// Pre-multiply |m| with a single-point perspective matrix based on the viewing -// frustum whose view angle is |fovy|. -void Perspective(GLfloat* m, - GLfloat fovy, - GLfloat aspect, - GLfloat near_z, - GLfloat far_z); - -// Pre-multiply |m| with a matrix that represents a translation by |tx|, |ty|, -// |tz|. -void Translate(GLfloat* m, GLfloat tx, GLfloat ty, GLfloat tz); -} // namespace transform_4x4 - -#endif // EXAMPLES_TUMBLER_TRANSFORMS_H_ - diff --git a/Demos/NativeClient/tumbler.cc b/Demos/NativeClient/tumbler.cc deleted file mode 100644 index 1beecd39f..000000000 --- a/Demos/NativeClient/tumbler.cc +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "tumbler.h" - -#include -#include -#include -#include - -#include "cube.h" -#include "opengl_context.h" -#include "scripting_bridge.h" -#include "ppapi/cpp/rect.h" -#include "ppapi/cpp/size.h" -#include "ppapi/cpp/var.h" - -namespace { -const size_t kQuaternionElementCount = 4; -const char* const kArrayStartCharacter = "["; -const char* const kArrayEndCharacter = "]"; -const char* const kArrayDelimiter = ","; - -// Return the value of parameter named |param_name| from |parameters|. If -// |param_name| doesn't exist, then return an empty string. -std::string GetParameterNamed( - const std::string& param_name, - const tumbler::MethodParameter& parameters) { - tumbler::MethodParameter::const_iterator i = - parameters.find(param_name); - if (i == parameters.end()) { - return ""; - } - return i->second; -} - -// Convert the JSON string |array| into a vector of floats. |array| is -// expected to be a string bounded by '[' and ']', and a comma-delimited list -// of numbers. Any errors result in the return of an empty array. -std::vector CreateArrayFromJSON(const std::string& json_array) { - std::vector float_array; - size_t array_start_pos = json_array.find_first_of(kArrayStartCharacter); - size_t array_end_pos = json_array.find_last_of(kArrayEndCharacter); - if (array_start_pos == std::string::npos || - array_end_pos == std::string::npos) - return float_array; // Malformed JSON: missing '[' or ']'. - // Pull out the array elements. - size_t token_pos = array_start_pos + 1; - while (token_pos < array_end_pos) { - float_array.push_back(strtof(json_array.data() + token_pos, NULL)); - size_t delim_pos = json_array.find_first_of(kArrayDelimiter, token_pos); - if (delim_pos == std::string::npos) - break; - token_pos = delim_pos + 1; - } - return float_array; -} -} // namespace - -namespace tumbler { - -Tumbler::Tumbler(PP_Instance instance) - : pp::Instance(instance), - cube_(NULL) { -} - -Tumbler::~Tumbler() { - // Destroy the cube view while GL context is current. - opengl_context_->MakeContextCurrent(this); - delete cube_; -} - -bool Tumbler::Init(uint32_t /* argc */, - const char* /* argn */[], - const char* /* argv */[]) { - // Add all the methods to the scripting bridge. - ScriptingBridge::SharedMethodCallbackExecutor set_orientation_method( - new tumbler::MethodCallback( - this, &Tumbler::SetCameraOrientation)); - scripting_bridge_.AddMethodNamed("setCameraOrientation", - set_orientation_method); - return true; -} - -void Tumbler::HandleMessage(const pp::Var& message) { - if (!message.is_string()) - return; - scripting_bridge_.InvokeMethod(message.AsString()); -} - -void Tumbler::DidChangeView(const pp::Rect& position, const pp::Rect& clip) { - int cube_width = cube_ ? cube_->width() : 0; - int cube_height = cube_ ? cube_->height() : 0; - if (position.size().width() == cube_width && - position.size().height() == cube_height) - return; // Size didn't change, no need to update anything. - - if (opengl_context_ == NULL) - opengl_context_.reset(new OpenGLContext(this)); - opengl_context_->InvalidateContext(this); - if (!opengl_context_->MakeContextCurrent(this)) - return; - if (cube_ == NULL) { - cube_ = new Cube(opengl_context_); - cube_->PrepareOpenGL(); - } - cube_->Resize(position.size().width(), position.size().height()); - DrawSelf(); -} - -void Tumbler::DrawSelf() { - if (cube_ == NULL || opengl_context_ == NULL) - return; - opengl_context_->MakeContextCurrent(this); - cube_->Draw(); - opengl_context_->FlushContext(); -} - -void Tumbler::SetCameraOrientation( - const tumbler::ScriptingBridge& bridge, - const tumbler::MethodParameter& parameters) { - // |parameters| is expected to contain one object named "orientation", whose - // value is a JSON string that represents an array of four floats. - if (parameters.size() != 1 || cube_ == NULL) - return; - std::string orientation_desc = GetParameterNamed("orientation", parameters); - std::vector orientation = CreateArrayFromJSON(orientation_desc); - if (orientation.size() != kQuaternionElementCount) { - return; - } - cube_->SetOrientation(orientation); - DrawSelf(); -} -} // namespace tumbler - diff --git a/Demos/NativeClient/tumbler.h b/Demos/NativeClient/tumbler.h deleted file mode 100644 index e29d3535d..000000000 --- a/Demos/NativeClient/tumbler.h +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef EXAMPLES_TUMBLER_TUMBLER_H_ -#define EXAMPLES_TUMBLER_TUMBLER_H_ - -#include -#include -#include - -#include "cube.h" -#include "opengl_context.h" -#include "opengl_context_ptrs.h" -#include "scripting_bridge.h" -#include "ppapi/cpp/instance.h" - -namespace tumbler { - -class Tumbler : public pp::Instance { - public: - explicit Tumbler(PP_Instance instance); - - // The dtor makes the 3D context current before deleting the cube view, then - // destroys the 3D context both in the module and in the browser. - virtual ~Tumbler(); - - // Called by the browser when the NaCl module is loaded and all ready to go. - virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); - - // Called whenever the in-browser window changes size. - virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip); - - // Called by the browser to handle the postMessage() call in Javascript. - virtual void HandleMessage(const pp::Var& message); - - // Bind and publish the module's methods to JavaScript. - void InitializeMethods(ScriptingBridge* bridge); - - // Set the camera orientation to the quaternion in |args[0]|. |args| must - // have length at least 1; the first element is expeted to be an Array - // object containing 4 floating point number elements (the quaternion). - // This method is bound to the JavaScript "setCameraOrientation" method and - // is called like this: - // module.setCameraOrientation([0.0, 1.0, 0.0, 0.0]); - void SetCameraOrientation( - const tumbler::ScriptingBridge& bridge, - const tumbler::MethodParameter& parameters); - - // Called to draw the contents of the module's browser area. - void DrawSelf(); - - private: - // Browser connectivity and scripting support. - ScriptingBridge scripting_bridge_; - - SharedOpenGLContext opengl_context_; - // Wouldn't it be awesome if we had boost::scoped_ptr<>? - Cube* cube_; -}; - -} // namespace tumbler - -#endif // EXAMPLES_TUMBLER_TUMBLER_H_ diff --git a/Demos/NativeClient/tumbler_module.cc b/Demos/NativeClient/tumbler_module.cc deleted file mode 100644 index e58d73e46..000000000 --- a/Demos/NativeClient/tumbler_module.cc +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2011 The Native Client Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "tumbler.h" -#include "ppapi/cpp/instance.h" -#include "ppapi/cpp/module.h" -#include "ppapi/gles2/gl2ext_ppapi.h" - -/// The Module class. The browser calls the CreateInstance() method to create -/// an instance of your NaCl module on the web page. The browser creates a new -/// instance for each tag with type="application/x-nacl". -class TumberModule : public pp::Module { - public: - TumberModule() : pp::Module() {} - virtual ~TumberModule() { - glTerminatePPAPI(); - } - - /// Called by the browser when the module is first loaded and ready to run. - /// This is called once per module, not once per instance of the module on - /// the page. - virtual bool Init() { - return glInitializePPAPI(get_browser_interface()) == GL_TRUE; - } - - /// Create and return a Tumbler instance object. - /// @param[in] instance The browser-side instance. - /// @return the plugin-side instance. - virtual pp::Instance* CreateInstance(PP_Instance instance) { - return new tumbler::Tumbler(instance); - } -}; - -namespace pp { -/// Factory function called by the browser when the module is first loaded. -/// The browser keeps a singleton of this module. It calls the -/// CreateInstance() method on the object you return to make instances. There -/// is one instance per tag on the page. This is the main binding -/// point for your NaCl module with the browser. -Module* CreateModule() { - return new TumberModule(); -} -} // namespace pp - diff --git a/Demos/OpenGL/CMakeLists.txt b/Demos/OpenGL/CMakeLists.txt deleted file mode 100644 index 721ec4e99..000000000 --- a/Demos/OpenGL/CMakeLists.txt +++ /dev/null @@ -1,68 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - - -# You shouldn't have to modify anything below this line -######################################################## - - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/Extras/ConvexHull -${GLUT_INCLUDE_DIR} -) - - -ADD_LIBRARY(OpenGLSupport - GLDebugFont.cpp - GLDebugFont.h - GL_DialogDynamicsWorld.cpp - GL_DialogDynamicsWorld.h - GL_DialogWindow.cpp - GL_DialogWindow.h - GL_ShapeDrawer.cpp - GL_ShapeDrawer.h - GL_Simplex1to4.cpp - GL_Simplex1to4.h - GLDebugDrawer.cpp - GLDebugDrawer.h - - RenderTexture.cpp - RenderTexture.h - DemoApplication.cpp - DemoApplication.h - - GlutDemoApplication.cpp - GlutDemoApplication.h - GlutStuff.cpp - GlutStuff.h - - stb_image.cpp - stb_image.h - - Win32DemoApplication.cpp - Win32DemoApplication.h -) - - -IF (BUILD_SHARED_LIBS) - TARGET_LINK_LIBRARIES(OpenGLSupport BulletDynamics BulletCollision ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}) -ENDIF (BUILD_SHARED_LIBS) - -#INSTALL of other files requires CMake 2.6 -IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) - IF(INSTALL_EXTRA_LIBS) - IF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS OpenGLSupport DESTINATION .) - ELSE (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - INSTALL(TARGETS OpenGLSupport DESTINATION lib) - INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h") - ENDIF (APPLE AND BUILD_SHARED_LIBS AND FRAMEWORK) - ENDIF (INSTALL_EXTRA_LIBS) -ENDIF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 2.5) diff --git a/Demos/OpenGL/CommandLineArguments.h b/Demos/OpenGL/CommandLineArguments.h deleted file mode 100644 index e24ad99b6..000000000 --- a/Demos/OpenGL/CommandLineArguments.h +++ /dev/null @@ -1,112 +0,0 @@ -/****************************************************************************** - * Copyright 2010 Duane Merrill - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * For more information, see our Google Code project site: - * http://code.google.com/p/back40computing/ - * - * Thanks! - ******************************************************************************/ - -#ifndef COMMAND_LINE_ARGS_H -#define COMMAND_LINE_ARGS_H - -/****************************************************************************** - * Command-line parsing - ******************************************************************************/ -#include -#include -#include -#include -class CommandLineArguments -{ -protected: - - std::map pairs; - -public: - - // Constructor - CommandLineArguments(int argc, char **argv) - { - using namespace std; - - for (int i = 1; i < argc; i++) - { - string arg = argv[i]; - - if ((arg[0] != '-') || (arg[1] != '-')) { - continue; - } - - string::size_type pos; - string key, val; - if ((pos = arg.find( '=')) == string::npos) { - key = string(arg, 2, arg.length() - 2); - val = ""; - } else { - key = string(arg, 2, pos - 2); - val = string(arg, pos + 1, arg.length() - 1); - } - pairs[key] = val; - } - } - - bool CheckCmdLineFlag(const char* arg_name) - { - using namespace std; - map::iterator itr; - if ((itr = pairs.find(arg_name)) != pairs.end()) { - return true; - } - return false; - } - - template - void GetCmdLineArgument(const char *arg_name, T &val); - - int ParsedArgc() - { - return pairs.size(); - } -}; - -template -void CommandLineArguments::GetCmdLineArgument(const char *arg_name, T &val) -{ - using namespace std; - map::iterator itr; - if ((itr = pairs.find(arg_name)) != pairs.end()) { - istringstream strstream(itr->second); - strstream >> val; - } -} - -template <> -void CommandLineArguments::GetCmdLineArgument(const char* arg_name, char* &val) -{ - using namespace std; - map::iterator itr; - if ((itr = pairs.find(arg_name)) != pairs.end()) { - - string s = itr->second; - val = (char*) malloc(sizeof(char) * (s.length() + 1)); - strcpy(val, s.c_str()); - - } else { - val = NULL; - } -} - -#endif //COMMAND_LINE_ARGS_H diff --git a/Demos/OpenGL/DebugCastResult.h b/Demos/OpenGL/DebugCastResult.h deleted file mode 100644 index ee476bf9f..000000000 --- a/Demos/OpenGL/DebugCastResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef DEBUG_CAST_RESULT_H -#define DEBUG_CAST_RESULT_H - -#include "BulletCollision/NarrowPhaseCollision/btConvexCast.h" -#include "LinearMath/btTransform.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" -#ifdef WIN32 -#include -#endif -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#else -#include -#endif -struct btDebugCastResult : public btConvexCast::CastResult -{ - - btTransform m_fromTrans; - const btPolyhedralConvexShape* m_shape; - btVector3 m_linVel; - btVector3 m_angVel; - GL_ShapeDrawer* m_shapeDrawer; - - btDebugCastResult(const btTransform& fromTrans,const btPolyhedralConvexShape* shape, - const btVector3& linVel,const btVector3& angVel,GL_ShapeDrawer* drawer) - :m_fromTrans(fromTrans), - m_shape(shape), - m_linVel(linVel), - m_angVel(angVel), - m_shapeDrawer(drawer) - { - } - - virtual void drawCoordSystem(const btTransform& tr) - { - btScalar m[16]; - tr.getOpenGLMatrix(m); - glPushMatrix(); - btglLoadMatrix(m); - glBegin(GL_LINES); - btglColor3(1, 0, 0); - btglVertex3(0, 0, 0); - btglVertex3(1, 0, 0); - btglColor3(0, 1, 0); - btglVertex3(0, 0, 0); - btglVertex3(0, 1, 0); - btglColor3(0, 0, 1); - btglVertex3(0, 0, 0); - btglVertex3(0, 0, 1); - glEnd(); - glPopMatrix(); - } - - virtual void DebugDraw(btScalar fraction) - { - btVector3 worldBoundsMin(-1000,-1000,-1000); - btVector3 worldBoundsMax(1000,1000,1000); - - - ATTRIBUTE_ALIGNED16(btScalar) m[16]; - btTransform hitTrans; - btTransformUtil::integrateTransform(m_fromTrans,m_linVel,m_angVel,fraction,hitTrans); - hitTrans.getOpenGLMatrix(m); - if (m_shapeDrawer) - m_shapeDrawer->drawOpenGL(m,m_shape,btVector3(1,0,0),btIDebugDraw::DBG_NoDebug,worldBoundsMin,worldBoundsMax); - } -}; - - -#endif //DEBUG_CAST_RESULT_H diff --git a/Demos/OpenGL/DemoApplication.cpp b/Demos/OpenGL/DemoApplication.cpp deleted file mode 100644 index 317166ed2..000000000 --- a/Demos/OpenGL/DemoApplication.cpp +++ /dev/null @@ -1,1464 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#include "DemoApplication.h" -#include "LinearMath/btIDebugDraw.h" -#include "BulletDynamics/Dynamics/btDynamicsWorld.h" - -#include "BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h"//picking -#include "BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h"//picking - -#include "BulletCollision/CollisionShapes/btCollisionShape.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/CollisionShapes/btSphereShape.h" -#include "BulletCollision/CollisionShapes/btCompoundShape.h" -#include "BulletCollision/CollisionShapes/btUniformScalingShape.h" -#include "BulletDynamics/ConstraintSolver/btConstraintSolver.h" -#include "GL_ShapeDrawer.h" -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btDefaultMotionState.h" -#include "LinearMath/btSerializer.h" -#include "GLDebugFont.h" - - -extern bool gDisableDeactivation; -int numObjects = 0; -const int maxNumObjects = 16384; -btTransform startTransforms[maxNumObjects]; -btCollisionShape* gShapePtr[maxNumObjects];//1 rigidbody has 1 shape (no re-use of shapes) -#define SHOW_NUM_DEEP_PENETRATIONS 1 - -extern int gNumClampedCcdMotions; - -#ifdef SHOW_NUM_DEEP_PENETRATIONS -extern int gNumDeepPenetrationChecks; - -extern int gNumSplitImpulseRecoveries; -extern int gNumGjkChecks; -extern int gNumAlignedAllocs; -extern int gNumAlignedFree; -extern int gTotalBytesAlignedAllocs; - -#endif // - - -DemoApplication::DemoApplication() -//see btIDebugDraw.h for modes -: -m_dynamicsWorld(0), -m_pickConstraint(0), -m_shootBoxShape(0), -m_cameraDistance(15.0), -m_debugMode(0), -m_ele(20.f), -m_azi(0.f), -m_cameraPosition(0.f,0.f,0.f), -m_cameraTargetPosition(0.f,0.f,0.f), -m_mouseOldX(0), -m_mouseOldY(0), -m_mouseButtons(0), -m_modifierKeys(0), -m_scaleBottom(0.5f), -m_scaleFactor(2.f), -m_cameraUp(0,1,0), -m_forwardAxis(2), -m_zoomStepSize(0.4), -m_glutScreenWidth(0), -m_glutScreenHeight(0), -m_frustumZNear(1.f), -m_frustumZFar(10000.f), -m_ortho(0), -m_ShootBoxInitialSpeed(40.f), -m_stepping(true), -m_singleStep(false), -m_idle(false), - -m_enableshadows(false), -m_sundirection(btVector3(1,-2,1)*1000), -m_defaultContactProcessingThreshold(BT_LARGE_FLOAT) -{ -#ifndef BT_NO_PROFILE - m_profileIterator = CProfileManager::Get_Iterator(); -#endif //BT_NO_PROFILE - - m_shapeDrawer = new GL_ShapeDrawer (); - m_shapeDrawer->enableTexture(true); - m_enableshadows = false; -} - - - -DemoApplication::~DemoApplication() -{ -#ifndef BT_NO_PROFILE - CProfileManager::Release_Iterator(m_profileIterator); -#endif //BT_NO_PROFILE - - if (m_shootBoxShape) - delete m_shootBoxShape; - - if (m_shapeDrawer) - delete m_shapeDrawer; - - //GLDebugResetFont(0,0); -} - - -void DemoApplication::overrideGLShapeDrawer (GL_ShapeDrawer* shapeDrawer) -{ - shapeDrawer->enableTexture (m_shapeDrawer->hasTextureEnabled()); - delete m_shapeDrawer; - m_shapeDrawer = shapeDrawer; -} - -void DemoApplication::myinit(void) -{ - - GLfloat light_ambient[] = { btScalar(0.2), btScalar(0.2), btScalar(0.2), btScalar(1.0) }; - GLfloat light_diffuse[] = { btScalar(1.0), btScalar(1.0), btScalar(1.0), btScalar(1.0) }; - GLfloat light_specular[] = { btScalar(1.0), btScalar(1.0), btScalar(1.0), btScalar(1.0 )}; - /* light_position is NOT default value */ - GLfloat light_position0[] = { btScalar(1.0), btScalar(10.0), btScalar(1.0), btScalar(0.0 )}; - GLfloat light_position1[] = { btScalar(-1.0), btScalar(-10.0), btScalar(-1.0), btScalar(0.0) }; - - glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient); - glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); - glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); - glLightfv(GL_LIGHT0, GL_POSITION, light_position0); - - glLightfv(GL_LIGHT1, GL_AMBIENT, light_ambient); - glLightfv(GL_LIGHT1, GL_DIFFUSE, light_diffuse); - glLightfv(GL_LIGHT1, GL_SPECULAR, light_specular); - glLightfv(GL_LIGHT1, GL_POSITION, light_position1); - - glEnable(GL_LIGHTING); - glEnable(GL_LIGHT0); - glEnable(GL_LIGHT1); - - - glShadeModel(GL_SMOOTH); - glEnable(GL_DEPTH_TEST); - glDepthFunc(GL_LESS); - - glClearColor(btScalar(0.7),btScalar(0.7),btScalar(0.7),btScalar(0)); - - // glEnable(GL_CULL_FACE); - // glCullFace(GL_BACK); -} - - -void DemoApplication::setCameraDistance(float dist) -{ - m_cameraDistance = dist; -} - -float DemoApplication::getCameraDistance() -{ - return m_cameraDistance; -} - - - -void DemoApplication::toggleIdle() { - if (m_idle) { - m_idle = false; - } - else { - m_idle = true; - } -} - -void bCreateDiagonalMatrix(GLfloat value, GLfloat result[4][4]) -{ - for (int i=0;i<4;i++) - { - for (int j=0;j<4;j++) - { - if (i==j) - { - result[i][j] = value; - } else - { - result[i][j] = 0.f; - } - } - } -} - -void bCreateOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar, GLfloat result[4][4]) -{ - bCreateDiagonalMatrix(1.f,result); - - result[0][0] = 2.f / (right - left); - result[1][1] = 2.f / (top - bottom); - result[2][2] = - 2.f / (zFar - zNear); - result[3][0] = - (right + left) / (right - left); - result[3][1] = - (top + bottom) / (top - bottom); - result[3][2] = - (zFar + zNear) / (zFar - zNear); -} - -void bCreateLookAt(const btVector3& eye, const btVector3& center,const btVector3& up, GLfloat result[16]) -{ - btVector3 f = (center - eye).normalized(); - btVector3 u = up.normalized(); - btVector3 s = (f.cross(u)).normalized(); - u = s.cross(f); - - result[0*4+0] = s.x(); - result[1*4+0] = s.y(); - result[2*4+0] = s.z(); - - result[0*4+1] = u.x(); - result[1*4+1] = u.y(); - result[2*4+1] = u.z(); - - result[0*4+2] =-f.x(); - result[1*4+2] =-f.y(); - result[2*4+2] =-f.z(); - - result[0*4+3] = 0.f; - result[1*4+3] = 0.f; - result[2*4+3] = 0.f; - - result[3*4+0] = -s.dot(eye); - result[3*4+1] = -u.dot(eye); - result[3*4+2] = f.dot(eye); - result[3*4+3] = 1.f; -} - - -void DemoApplication::updateCamera() { - - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - btScalar rele = m_ele * btScalar(0.01745329251994329547);// rads per deg - btScalar razi = m_azi * btScalar(0.01745329251994329547);// rads per deg - - - btQuaternion rot(m_cameraUp,razi); - - - btVector3 eyePos(0,0,0); - eyePos[m_forwardAxis] = -m_cameraDistance; - - btVector3 forward(eyePos[0],eyePos[1],eyePos[2]); - if (forward.length2() < SIMD_EPSILON) - { - forward.setValue(1.f,0.f,0.f); - } - btVector3 right = m_cameraUp.cross(forward); - btQuaternion roll(right,-rele); - - eyePos = btMatrix3x3(rot) * btMatrix3x3(roll) * eyePos; - - m_cameraPosition[0] = eyePos.getX(); - m_cameraPosition[1] = eyePos.getY(); - m_cameraPosition[2] = eyePos.getZ(); - m_cameraPosition += m_cameraTargetPosition; - - if (m_glutScreenWidth == 0 && m_glutScreenHeight == 0) - return; - - btScalar aspect; - btVector3 extents; - - aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - extents.setValue(aspect * 1.0f, 1.0f,0); - - - if (m_ortho) - { - // reset matrix - glLoadIdentity(); - - - extents *= m_cameraDistance; - btVector3 lower = m_cameraTargetPosition - extents; - btVector3 upper = m_cameraTargetPosition + extents; - //gluOrtho2D(lower.x, upper.x, lower.y, upper.y); - glOrtho(lower.getX(), upper.getX(), lower.getY(), upper.getY(),-1000,1000); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - //glTranslatef(100,210,0); - } else - { -// glFrustum (-aspect, aspect, -1.0, 1.0, 1.0, 10000.0); - glFrustum (-aspect * m_frustumZNear, aspect * m_frustumZNear, -m_frustumZNear, m_frustumZNear, m_frustumZNear, m_frustumZFar); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - GLfloat resultMat[16]; - bCreateLookAt(m_cameraPosition,m_cameraTargetPosition, m_cameraUp, resultMat); - glMultMatrixf(resultMat); - } - -} - - - -const float STEPSIZE = 5; - -void DemoApplication::stepLeft() -{ - m_azi -= STEPSIZE; if (m_azi < 0) m_azi += 360; updateCamera(); -} -void DemoApplication::stepRight() -{ - m_azi += STEPSIZE; if (m_azi >= 360) m_azi -= 360; updateCamera(); -} -void DemoApplication::stepFront() -{ - m_ele += STEPSIZE; if (m_ele >= 360) m_ele -= 360; updateCamera(); -} -void DemoApplication::stepBack() -{ - m_ele -= STEPSIZE; if (m_ele < 0) m_ele += 360; updateCamera(); -} -void DemoApplication::zoomIn() -{ - m_cameraDistance -= btScalar(m_zoomStepSize); updateCamera(); - if (m_cameraDistance < btScalar(0.1)) - m_cameraDistance = btScalar(0.1); - -} -void DemoApplication::zoomOut() -{ - m_cameraDistance += btScalar(m_zoomStepSize); updateCamera(); - -} - - - - - - - - - - -void DemoApplication::reshape(int w, int h) -{ - GLDebugResetFont(w,h); - - m_glutScreenWidth = w; - m_glutScreenHeight = h; - - glViewport(0, 0, w, h); - updateCamera(); -} - - - -void DemoApplication::keyboardCallback(unsigned char key, int x, int y) -{ - (void)x; - (void)y; - - m_lastKey = 0; - -#ifndef BT_NO_PROFILE - if (key >= 0x31 && key <= 0x39) - { - int child = key-0x31; - m_profileIterator->Enter_Child(child); - } - if (key==0x30) - { - m_profileIterator->Enter_Parent(); - } -#endif //BT_NO_PROFILE - - switch (key) - { - case 8: - { - int numObj = getDynamicsWorld()->getNumCollisionObjects(); - if (numObj) - { - btCollisionObject* obj = getDynamicsWorld()->getCollisionObjectArray()[numObj-1]; - - getDynamicsWorld()->removeCollisionObject(obj); - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - delete obj; - - - } - break; - } - case 'q' : -#ifdef BT_USE_FREEGLUT - //return from glutMainLoop(), detect memory leaks etc. - glutLeaveMainLoop(); -#else - exit(0); -#endif - break; - - case 'l' : stepLeft(); break; - case 'r' : stepRight(); break; - case 'f' : stepFront(); break; - case 'b' : stepBack(); break; - case 'z' : zoomIn(); break; - case 'x' : zoomOut(); break; - case 'i' : toggleIdle(); break; - case 'g' : m_enableshadows=!m_enableshadows;break; - case 'u' : m_shapeDrawer->enableTexture(!m_shapeDrawer->enableTexture(false));break; - case 'h': - if (m_debugMode & btIDebugDraw::DBG_NoHelpText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_NoHelpText); - else - m_debugMode |= btIDebugDraw::DBG_NoHelpText; - break; - - case 'w': - if (m_debugMode & btIDebugDraw::DBG_DrawWireframe) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawWireframe); - else - m_debugMode |= btIDebugDraw::DBG_DrawWireframe; - break; - - case 'p': - if (m_debugMode & btIDebugDraw::DBG_ProfileTimings) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_ProfileTimings); - else - m_debugMode |= btIDebugDraw::DBG_ProfileTimings; - break; - - case '\\': - { - int maxSerializeBufferSize = 1024*1024*5; - btDefaultSerializer* serializer = new btDefaultSerializer(maxSerializeBufferSize); - //serializer->setSerializationFlags(BT_SERIALIZE_NO_DUPLICATE_ASSERT); - m_dynamicsWorld->serialize(serializer); - FILE* f2 = fopen("testFile.bullet","wb"); - fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1,f2); - fclose(f2); - delete serializer; - break; - - } - - case 'm': - if (m_debugMode & btIDebugDraw::DBG_EnableSatComparison) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_EnableSatComparison); - else - m_debugMode |= btIDebugDraw::DBG_EnableSatComparison; - break; - - case 'n': - if (m_debugMode & btIDebugDraw::DBG_DisableBulletLCP) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DisableBulletLCP); - else - m_debugMode |= btIDebugDraw::DBG_DisableBulletLCP; - break; - case 'N': - if (m_debugMode & btIDebugDraw::DBG_DrawNormals) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawNormals); - else - m_debugMode |= btIDebugDraw::DBG_DrawNormals; - break; - - case 't' : - if (m_debugMode & btIDebugDraw::DBG_DrawText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawText); - else - m_debugMode |= btIDebugDraw::DBG_DrawText; - break; - case 'y': - if (m_debugMode & btIDebugDraw::DBG_DrawFeaturesText) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawFeaturesText); - else - m_debugMode |= btIDebugDraw::DBG_DrawFeaturesText; - break; - case 'a': - if (m_debugMode & btIDebugDraw::DBG_DrawAabb) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawAabb); - else - m_debugMode |= btIDebugDraw::DBG_DrawAabb; - break; - case 'c' : - if (m_debugMode & btIDebugDraw::DBG_DrawContactPoints) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawContactPoints); - else - m_debugMode |= btIDebugDraw::DBG_DrawContactPoints; - break; - case 'C' : - if (m_debugMode & btIDebugDraw::DBG_DrawConstraints) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawConstraints); - else - m_debugMode |= btIDebugDraw::DBG_DrawConstraints; - break; - case 'L' : - if (m_debugMode & btIDebugDraw::DBG_DrawConstraintLimits) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_DrawConstraintLimits); - else - m_debugMode |= btIDebugDraw::DBG_DrawConstraintLimits; - break; - - case 'd' : - if (m_debugMode & btIDebugDraw::DBG_NoDeactivation) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_NoDeactivation); - else - m_debugMode |= btIDebugDraw::DBG_NoDeactivation; - if (m_debugMode & btIDebugDraw::DBG_NoDeactivation) - { - gDisableDeactivation = true; - } else - { - gDisableDeactivation = false; - } - break; - - - - - case 'o' : - { - m_ortho = !m_ortho;//m_stepping = !m_stepping; - break; - } - case 's' : clientMoveAndDisplay(); break; - // case ' ' : newRandom(); break; - case ' ': - clientResetScene(); - break; - case '1': - { - if (m_debugMode & btIDebugDraw::DBG_EnableCCD) - m_debugMode = m_debugMode & (~btIDebugDraw::DBG_EnableCCD); - else - m_debugMode |= btIDebugDraw::DBG_EnableCCD; - break; - } - - case '.': - { - shootBox(getRayTo(x,y));//getCameraTargetPosition()); - break; - } - - case '+': - { - m_ShootBoxInitialSpeed += 10.f; - break; - } - case '-': - { - m_ShootBoxInitialSpeed -= 10.f; - break; - } - - default: - // std::cout << "unused key : " << key << std::endl; - break; - } - - if (getDynamicsWorld() && getDynamicsWorld()->getDebugDrawer()) - getDynamicsWorld()->getDebugDrawer()->setDebugMode(m_debugMode); - - - -} - -void DemoApplication::setDebugMode(int mode) -{ - m_debugMode = mode; - if (getDynamicsWorld() && getDynamicsWorld()->getDebugDrawer()) - getDynamicsWorld()->getDebugDrawer()->setDebugMode(mode); -} - - - - - - -void DemoApplication::moveAndDisplay() -{ - if (!m_idle) - clientMoveAndDisplay(); - else - displayCallback(); -} - - - - -void DemoApplication::displayCallback() -{ -} - -#define NUM_SPHERES_ON_DIAGONAL 9 - -void DemoApplication::setShootBoxShape () -{ - if (!m_shootBoxShape) - { - btBoxShape* box = new btBoxShape(btVector3(0.5,0.5,0.5)); - // box->initializePolyhedralFeatures(); - m_shootBoxShape = box; - } -} - -void DemoApplication::shootBox(const btVector3& destination) -{ - - if (m_dynamicsWorld) - { - float mass = 1.f; - btTransform startTransform; - startTransform.setIdentity(); - btVector3 camPos = getCameraPosition(); - startTransform.setOrigin(camPos); - - setShootBoxShape (); - - btRigidBody* body = this->localCreateRigidBody(mass, startTransform,m_shootBoxShape); - body->setLinearFactor(btVector3(1,1,1)); - //body->setRestitution(1); - - btVector3 linVel(destination[0]-camPos[0],destination[1]-camPos[1],destination[2]-camPos[2]); - linVel.normalize(); - linVel*=m_ShootBoxInitialSpeed; - - body->getWorldTransform().setOrigin(camPos); - body->getWorldTransform().setRotation(btQuaternion(0,0,0,1)); - body->setLinearVelocity(linVel); - body->setAngularVelocity(btVector3(0,0,0)); - body->setCcdMotionThreshold(0.5); - body->setCcdSweptSphereRadius(0.4f);//value should be smaller (embedded) than the half extends of the box (see ::setShootBoxShape) -// printf("shootBox uid=%d\n", body->getBroadphaseHandle()->getUid()); -// printf("camPos=%f,%f,%f\n",camPos.getX(),camPos.getY(),camPos.getZ()); -// printf("destination=%f,%f,%f\n",destination.getX(),destination.getY(),destination.getZ()); - - } -} - - -int gPickingConstraintId = 0; -btVector3 gOldPickingPos; -btVector3 gHitPos(-1,-1,-1); -btScalar gOldPickingDist = 0.f; -btRigidBody* pickedBody = 0;//for deactivation state - - -btVector3 DemoApplication::getRayTo(int x,int y) -{ - - - - if (m_ortho) - { - - btScalar aspect; - btVector3 extents; - aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - extents.setValue(aspect * 1.0f, 1.0f,0); - - extents *= m_cameraDistance; - btVector3 lower = m_cameraTargetPosition - extents; - btVector3 upper = m_cameraTargetPosition + extents; - - btScalar u = x / btScalar(m_glutScreenWidth); - btScalar v = (m_glutScreenHeight - y) / btScalar(m_glutScreenHeight); - - btVector3 p(0,0,0); - p.setValue((1.0f - u) * lower.getX() + u * upper.getX(),(1.0f - v) * lower.getY() + v * upper.getY(),m_cameraTargetPosition.getZ()); - return p; - } - - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = btScalar(2.0) * btAtan(tanFov); - - btVector3 rayFrom = getCameraPosition(); - btVector3 rayForward = (getCameraTargetPosition()-getCameraPosition()); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - - btVector3 rightOffset; - btVector3 vertical = m_cameraUp; - - btVector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - btScalar aspect; - - aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - - hor*=aspect; - - - btVector3 rayToCenter = rayFrom + rayForward; - btVector3 dHor = hor * 1.f/float(m_glutScreenWidth); - btVector3 dVert = vertical * 1.f/float(m_glutScreenHeight); - - - btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += btScalar(x) * dHor; - rayTo -= btScalar(y) * dVert; - return rayTo; -} - -btScalar mousePickClamping = 30.f; - - -void DemoApplication::mouseFunc(int button, int state, int x, int y) -{ - if (state == 0) - { - m_mouseButtons |= 1<rayTest(m_cameraPosition,rayTo,rayCallback); - if (rayCallback.hasHit()) - { - - btRigidBody* body = btRigidBody::upcast(rayCallback.m_collisionObject); - if (body) - { - body->setActivationState(ACTIVE_TAG); - btVector3 impulse = rayTo; - impulse.normalize(); - float impulseStrength = 10.f; - impulse *= impulseStrength; - btVector3 relPos = rayCallback.m_hitPointWorld - body->getCenterOfMassPosition(); - body->applyImpulse(impulse,relPos); - } - } - } -#endif - - - - } else - { - - } - break; - } - case 0: - { - if (state==0) - { - - - //add a point to point constraint for picking - if (m_dynamicsWorld) - { - - btVector3 rayFrom; - if (m_ortho) - { - rayFrom = rayTo; - rayFrom.setZ(-100.f); - } else - { - rayFrom = m_cameraPosition; - } - - btCollisionWorld::ClosestRayResultCallback rayCallback(rayFrom,rayTo); - m_dynamicsWorld->rayTest(rayFrom,rayTo,rayCallback); - if (rayCallback.hasHit()) - { - - btVector3 pickPos = rayCallback.m_hitPointWorld; - - pickObject(pickPos, rayCallback.m_collisionObject); - - gOldPickingPos = rayTo; - gHitPos = pickPos; - - gOldPickingDist = (pickPos-rayFrom).length(); - } - } - - } else - { - removePickingConstraint(); - } - - break; - - } - default: - { - } - } - -} - -void DemoApplication::pickObject(const btVector3& pickPos, const btCollisionObject* hitObj) -{ - - btRigidBody* body = (btRigidBody*)btRigidBody::upcast(hitObj); - if (body) - { - //other exclusions? - if (!(body->isStaticObject() || body->isKinematicObject())) - { - pickedBody = body; - pickedBody->setActivationState(DISABLE_DEACTIVATION); - - - //printf("pickPos=%f,%f,%f\n",pickPos.getX(),pickPos.getY(),pickPos.getZ()); - - - btVector3 localPivot = body->getCenterOfMassTransform().inverse() * pickPos; - - if ((m_modifierKeys& BT_ACTIVE_SHIFT)!=0) - { - btTransform tr; - tr.setIdentity(); - tr.setOrigin(localPivot); - btGeneric6DofConstraint* dof6 = new btGeneric6DofConstraint(*body, tr,false); - dof6->setLinearLowerLimit(btVector3(0,0,0)); - dof6->setLinearUpperLimit(btVector3(0,0,0)); - dof6->setAngularLowerLimit(btVector3(0,0,0)); - dof6->setAngularUpperLimit(btVector3(0,0,0)); - - m_dynamicsWorld->addConstraint(dof6,true); - m_pickConstraint = dof6; - - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,0); - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,1); - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,2); - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,3); - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,4); - dof6->setParam(BT_CONSTRAINT_STOP_CFM,0.8,5); - - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,0); - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,1); - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,2); - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,3); - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,4); - dof6->setParam(BT_CONSTRAINT_STOP_ERP,0.1,5); - } else - { - btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*body,localPivot); - m_dynamicsWorld->addConstraint(p2p,true); - m_pickConstraint = p2p; - p2p->m_setting.m_impulseClamp = mousePickClamping; - //very weak constraint for picking - p2p->m_setting.m_tau = 0.001f; - /* - p2p->setParam(BT_CONSTRAINT_CFM,0.8,0); - p2p->setParam(BT_CONSTRAINT_CFM,0.8,1); - p2p->setParam(BT_CONSTRAINT_CFM,0.8,2); - p2p->setParam(BT_CONSTRAINT_ERP,0.1,0); - p2p->setParam(BT_CONSTRAINT_ERP,0.1,1); - p2p->setParam(BT_CONSTRAINT_ERP,0.1,2); - */ - - - } - - //save mouse position for dragging - - } - } - -} - -void DemoApplication::removePickingConstraint() -{ - if (m_pickConstraint && m_dynamicsWorld) - { - m_dynamicsWorld->removeConstraint(m_pickConstraint); - delete m_pickConstraint; - //printf("removed constraint %i",gPickingConstraintId); - m_pickConstraint = 0; - pickedBody->forceActivationState(ACTIVE_TAG); - pickedBody->setDeactivationTime( 0.f ); - pickedBody = 0; - } -} - -void DemoApplication::mouseMotionFunc(int x,int y) -{ - - if (m_pickConstraint) - { - //move the constraint pivot - - if (m_pickConstraint->getConstraintType() == D6_CONSTRAINT_TYPE) - { - btGeneric6DofConstraint* pickCon = static_cast(m_pickConstraint); - if (pickCon) - { - //keep it at the same picking distance - - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; - btVector3 oldPivotInB = pickCon->getFrameOffsetA().getOrigin(); - - btVector3 newPivotB; - if (m_ortho) - { - newPivotB = oldPivotInB; - newPivotB.setX(newRayTo.getX()); - newPivotB.setY(newRayTo.getY()); - } else - { - rayFrom = m_cameraPosition; - btVector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= gOldPickingDist; - - newPivotB = rayFrom + dir; - } - pickCon->getFrameOffsetA().setOrigin(newPivotB); - } - - } else - { - btPoint2PointConstraint* pickCon = static_cast(m_pickConstraint); - if (pickCon) - { - //keep it at the same picking distance - - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; - btVector3 oldPivotInB = pickCon->getPivotInB(); - btVector3 newPivotB; - if (m_ortho) - { - newPivotB = oldPivotInB; - newPivotB.setX(newRayTo.getX()); - newPivotB.setY(newRayTo.getY()); - } else - { - rayFrom = m_cameraPosition; - btVector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= gOldPickingDist; - - newPivotB = rayFrom + dir; - } - pickCon->setPivotB(newPivotB); - } - } - } - - float dx, dy; - dx = btScalar(x) - m_mouseOldX; - dy = btScalar(y) - m_mouseOldY; - - - ///only if ALT key is pressed (Maya style) - if (m_modifierKeys& BT_ACTIVE_ALT) - { - if(m_mouseButtons & 2) - { - btVector3 hor = getRayTo(0,0)-getRayTo(1,0); - btVector3 vert = getRayTo(0,0)-getRayTo(0,1); - btScalar multiplierX = btScalar(0.001); - btScalar multiplierY = btScalar(0.001); - if (m_ortho) - { - multiplierX = 1; - multiplierY = 1; - } - - - m_cameraTargetPosition += hor* dx * multiplierX; - m_cameraTargetPosition += vert* dy * multiplierY; - } - - if(m_mouseButtons & (2 << 2) && m_mouseButtons & 1) - { - } - else if(m_mouseButtons & 1) - { - m_azi += dx * btScalar(0.2); - m_azi = fmodf(m_azi, btScalar(360.f)); - m_ele += dy * btScalar(0.2); - m_ele = fmodf(m_ele, btScalar(180.f)); - } - else if(m_mouseButtons & 4) - { - m_cameraDistance -= dy * btScalar(0.02f); - if (m_cameraDistancegetShapeType() != INVALID_SHAPE_PROXYTYPE)); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - -#define USE_MOTIONSTATE 1 -#ifdef USE_MOTIONSTATE - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - - btRigidBody::btRigidBodyConstructionInfo cInfo(mass,myMotionState,shape,localInertia); - - btRigidBody* body = new btRigidBody(cInfo); - body->setContactProcessingThreshold(m_defaultContactProcessingThreshold); - -#else - btRigidBody* body = new btRigidBody(mass,0,shape,localInertia); - body->setWorldTransform(startTransform); -#endif// - - m_dynamicsWorld->addRigidBody(body); - - return body; -} - -//See http://www.lighthouse3d.com/opengl/glut/index.php?bmpfontortho -void DemoApplication::setOrthographicProjection() -{ - - // switch to projection mode - glMatrixMode(GL_PROJECTION); - - // save previous matrix which contains the - //settings for the perspective projection - glPushMatrix(); - // reset matrix - glLoadIdentity(); - // set a 2D orthographic projection - glOrtho(0, m_glutScreenWidth, 0, m_glutScreenHeight,-1000,1000); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - // invert the y axis, down is positive - glScalef(1, -1, 1); - // mover the origin from the bottom left corner - // to the upper left corner - glTranslatef(btScalar(0), btScalar(-m_glutScreenHeight), btScalar(0)); - -} - -void DemoApplication::resetPerspectiveProjection() -{ - - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glMatrixMode(GL_MODELVIEW); - updateCamera(); -} - - - - -extern CProfileIterator * m_profileIterator; - -void DemoApplication::displayProfileString(int xOffset,int yStart,char* message) -{ - glRasterPos3f(btScalar(xOffset),btScalar(yStart),btScalar(0)); - GLDebugDrawString(xOffset,yStart,message); -} - - -void DemoApplication::showProfileInfo(int& xOffset,int& yStart, int yIncr) -{ -#ifndef BT_NO_PROFILE - - static double time_since_reset = 0.f; - if (!m_idle) - { - time_since_reset = CProfileManager::Get_Time_Since_Reset(); - } - - - { - //recompute profiling data, and store profile strings - - char blockTime[128]; - - double totalTime = 0; - - int frames_since_reset = CProfileManager::Get_Frame_Count_Since_Reset(); - - m_profileIterator->First(); - - double parent_time = m_profileIterator->Is_Root() ? time_since_reset : m_profileIterator->Get_Current_Parent_Total_Time(); - - { - sprintf(blockTime,"--- Profiling: %s (total running time: %.3f ms) ---", m_profileIterator->Get_Current_Parent_Name(), parent_time ); - displayProfileString(xOffset,yStart,blockTime); - yStart += yIncr; - sprintf(blockTime,"press (1,2...) to display child timings, or 0 for parent" ); - displayProfileString(xOffset,yStart,blockTime); - yStart += yIncr; - - } - - - double accumulated_time = 0.f; - - for (int i = 0; !m_profileIterator->Is_Done(); m_profileIterator->Next()) - { - double current_total_time = m_profileIterator->Get_Current_Total_Time(); - accumulated_time += current_total_time; - double fraction = parent_time > SIMD_EPSILON ? (current_total_time / parent_time) * 100 : 0.f; - - sprintf(blockTime,"%d -- %s (%.2f %%) :: %.3f ms / frame (%d calls)", - ++i, m_profileIterator->Get_Current_Name(), fraction, - (current_total_time / (double)frames_since_reset),m_profileIterator->Get_Current_Total_Calls()); - displayProfileString(xOffset,yStart,blockTime); - yStart += yIncr; - totalTime += current_total_time; - } - - sprintf(blockTime,"%s (%.3f %%) :: %.3f ms", "Unaccounted", - // (min(0, time_since_reset - totalTime) / time_since_reset) * 100); - parent_time > SIMD_EPSILON ? ((parent_time - accumulated_time) / parent_time) * 100 : 0.f, parent_time - accumulated_time); - - displayProfileString(xOffset,yStart,blockTime); - yStart += yIncr; - - - - sprintf(blockTime,"-------------------------------------------------"); - displayProfileString(xOffset,yStart,blockTime); - yStart += yIncr; - - } -#endif//BT_NO_PROFILE - - - - -} - - -// -void DemoApplication::renderscene(int pass) -{ - btScalar m[16]; - btMatrix3x3 rot;rot.setIdentity(); - const int numObjects=m_dynamicsWorld->getNumCollisionObjects(); - btVector3 wireColor(1,0,0); - for(int i=0;igetCollisionObjectArray()[i]; - btRigidBody* body=btRigidBody::upcast(colObj); - if(body&&body->getMotionState()) - { - btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState(); - myMotionState->m_graphicsWorldTrans.getOpenGLMatrix(m); - rot=myMotionState->m_graphicsWorldTrans.getBasis(); - } - else - { - colObj->getWorldTransform().getOpenGLMatrix(m); - rot=colObj->getWorldTransform().getBasis(); - } - btVector3 wireColor(1.f,1.0f,0.5f); //wants deactivation - if(i&1) wireColor=btVector3(0.f,0.0f,1.f); - ///color differently for active, sleeping, wantsdeactivation states - if (colObj->getActivationState() == 1) //active - { - if (i & 1) - { - wireColor += btVector3 (1.f,0.f,0.f); - } - else - { - wireColor += btVector3 (.5f,0.f,0.f); - } - } - if(colObj->getActivationState()==2) //ISLAND_SLEEPING - { - if(i&1) - { - wireColor += btVector3 (0.f,1.f, 0.f); - } - else - { - wireColor += btVector3 (0.f,0.5f,0.f); - } - } - - btVector3 aabbMin(0,0,0),aabbMax(0,0,0); - //m_dynamicsWorld->getBroadphase()->getBroadphaseAabb(aabbMin,aabbMax); - - aabbMin-=btVector3(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); - aabbMax+=btVector3(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); -// printf("aabbMin=(%f,%f,%f)\n",aabbMin.getX(),aabbMin.getY(),aabbMin.getZ()); -// printf("aabbMax=(%f,%f,%f)\n",aabbMax.getX(),aabbMax.getY(),aabbMax.getZ()); -// m_dynamicsWorld->getDebugDrawer()->drawAabb(aabbMin,aabbMax,btVector3(1,1,1)); - - - if (!(getDebugMode()& btIDebugDraw::DBG_DrawWireframe)) - { - switch(pass) - { - case 0: m_shapeDrawer->drawOpenGL(m,colObj->getCollisionShape(),wireColor,getDebugMode(),aabbMin,aabbMax);break; - case 1: m_shapeDrawer->drawShadow(m,m_sundirection*rot,colObj->getCollisionShape(),aabbMin,aabbMax);break; - case 2: m_shapeDrawer->drawOpenGL(m,colObj->getCollisionShape(),wireColor*btScalar(0.3),0,aabbMin,aabbMax);break; - } - } - } -} - -// -void DemoApplication::renderme() -{ - myinit(); - - updateCamera(); - - if (m_dynamicsWorld) - { - if(m_enableshadows) - { - glClear(GL_STENCIL_BUFFER_BIT); - glEnable(GL_CULL_FACE); - renderscene(0); - - glDisable(GL_LIGHTING); - glDepthMask(GL_FALSE); - glDepthFunc(GL_LEQUAL); - glEnable(GL_STENCIL_TEST); - glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE); - glStencilFunc(GL_ALWAYS,1,0xFFFFFFFFL); - glFrontFace(GL_CCW); - glStencilOp(GL_KEEP,GL_KEEP,GL_INCR); - renderscene(1); - glFrontFace(GL_CW); - glStencilOp(GL_KEEP,GL_KEEP,GL_DECR); - renderscene(1); - glFrontFace(GL_CCW); - - glPolygonMode(GL_FRONT,GL_FILL); - glPolygonMode(GL_BACK,GL_FILL); - glShadeModel(GL_SMOOTH); - glEnable(GL_DEPTH_TEST); - glDepthFunc(GL_LESS); - glEnable(GL_LIGHTING); - glDepthMask(GL_TRUE); - glCullFace(GL_BACK); - glFrontFace(GL_CCW); - glEnable(GL_CULL_FACE); - glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE); - - glDepthFunc(GL_LEQUAL); - glStencilFunc( GL_NOTEQUAL, 0, 0xFFFFFFFFL ); - glStencilOp( GL_KEEP, GL_KEEP, GL_KEEP ); - glDisable(GL_LIGHTING); - renderscene(2); - glEnable(GL_LIGHTING); - glDepthFunc(GL_LESS); - glDisable(GL_STENCIL_TEST); - glDisable(GL_CULL_FACE); - } - else - { - glDisable(GL_CULL_FACE); - renderscene(0); - } - - int xOffset = 10; - int yStart = 20; - int yIncr = 20; - - - glDisable(GL_LIGHTING); - glColor3f(0, 0, 0); - - if ((m_debugMode & btIDebugDraw::DBG_NoHelpText)==0) - { - setOrthographicProjection(); - - showProfileInfo(xOffset,yStart,yIncr); - -#ifdef USE_QUICKPROF - - - if ( getDebugMode() & btIDebugDraw::DBG_ProfileTimings) - { - static int counter = 0; - counter++; - std::map::iterator iter; - for (iter = btProfiler::mProfileBlocks.begin(); iter != btProfiler::mProfileBlocks.end(); ++iter) - { - char blockTime[128]; - sprintf(blockTime, "%s: %lf",&((*iter).first[0]),btProfiler::getBlockTime((*iter).first, btProfiler::BLOCK_CYCLE_SECONDS));//BLOCK_TOTAL_PERCENT)); - glRasterPos3f(xOffset,yStart,0); - GLDebugDrawString(BMF_GetFont(BMF_kHelvetica10),blockTime); - yStart += yIncr; - - } - - } -#endif //USE_QUICKPROF - - - - - resetPerspectiveProjection(); - } - - glDisable(GL_LIGHTING); - - - } - - updateCamera(); - -} - -#include "BulletCollision/BroadphaseCollision/btAxisSweep3.h" - - -void DemoApplication::clientResetScene() -{ - removePickingConstraint(); - -#ifdef SHOW_NUM_DEEP_PENETRATIONS - gNumDeepPenetrationChecks = 0; - gNumGjkChecks = 0; -#endif //SHOW_NUM_DEEP_PENETRATIONS - - gNumClampedCcdMotions = 0; - int numObjects = 0; - int i; - - if (m_dynamicsWorld) - { - int numConstraints = m_dynamicsWorld->getNumConstraints(); - for (i=0;igetConstraint(0)->setEnabled(true); - } - numObjects = m_dynamicsWorld->getNumCollisionObjects(); - - ///create a copy of the array, not a reference! - btCollisionObjectArray copyArray = m_dynamicsWorld->getCollisionObjectArray(); - - - - - for (i=0;igetMotionState()) - { - btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState(); - myMotionState->m_graphicsWorldTrans = myMotionState->m_startWorldTrans; - body->setCenterOfMassTransform( myMotionState->m_graphicsWorldTrans ); - colObj->setInterpolationWorldTransform( myMotionState->m_startWorldTrans ); - colObj->forceActivationState(ACTIVE_TAG); - colObj->activate(); - colObj->setDeactivationTime(0); - //colObj->setActivationState(WANTS_DEACTIVATION); - } - //removed cached contact points (this is not necessary if all objects have been removed from the dynamics world) - if (m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()) - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(colObj->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - - btRigidBody* body = btRigidBody::upcast(colObj); - if (body && !body->isStaticObject()) - { - btRigidBody::upcast(colObj)->setLinearVelocity(btVector3(0,0,0)); - btRigidBody::upcast(colObj)->setAngularVelocity(btVector3(0,0,0)); - } - } - - } - - ///reset some internal cached data in the broadphase - m_dynamicsWorld->getBroadphase()->resetPool(getDynamicsWorld()->getDispatcher()); - m_dynamicsWorld->getConstraintSolver()->reset(); - - } - -} diff --git a/Demos/OpenGL/DemoApplication.h b/Demos/OpenGL/DemoApplication.h deleted file mode 100644 index acbcc80e7..000000000 --- a/Demos/OpenGL/DemoApplication.h +++ /dev/null @@ -1,272 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef DEMO_APPLICATION_H -#define DEMO_APPLICATION_H - - -#include "GlutStuff.h" -#include "GL_ShapeDrawer.h" - -#include -#include -#include - - -#include "LinearMath/btVector3.h" -#include "LinearMath/btMatrix3x3.h" -#include "LinearMath/btTransform.h" -#include "LinearMath/btQuickprof.h" -#include "LinearMath/btAlignedObjectArray.h" - -class btCollisionShape; -class btDynamicsWorld; -class btRigidBody; -class btTypedConstraint; - - - -class DemoApplication -{ -protected: - void displayProfileString(int xOffset,int yStart,char* message); - class CProfileIterator* m_profileIterator; - - protected: -#ifdef USE_BT_CLOCK - btClock m_clock; -#endif //USE_BT_CLOCK - - ///this is the most important class - btDynamicsWorld* m_dynamicsWorld; - - ///constraint for mouse picking - btTypedConstraint* m_pickConstraint; - - virtual void removePickingConstraint(); - - virtual void pickObject(const btVector3& pickPos, const class btCollisionObject* hitObj); - - - btCollisionShape* m_shootBoxShape; - - float m_cameraDistance; - int m_debugMode; - - float m_ele; - float m_azi; - btVector3 m_cameraPosition; - btVector3 m_cameraTargetPosition;//look at - - int m_mouseOldX; - int m_mouseOldY; - int m_mouseButtons; -public: - int m_modifierKeys; -protected: - - float m_scaleBottom; - float m_scaleFactor; - btVector3 m_cameraUp; - int m_forwardAxis; - float m_zoomStepSize; - - int m_glutScreenWidth; - int m_glutScreenHeight; - - float m_frustumZNear; - float m_frustumZFar; - - int m_ortho; - - float m_ShootBoxInitialSpeed; - - bool m_stepping; - bool m_singleStep; - bool m_idle; - int m_lastKey; - - void showProfileInfo(int& xOffset,int& yStart, int yIncr); - void renderscene(int pass); - - GL_ShapeDrawer* m_shapeDrawer; - bool m_enableshadows; - btVector3 m_sundirection; - btScalar m_defaultContactProcessingThreshold; - -public: - - DemoApplication(); - - virtual ~DemoApplication(); - - void setDynamicsWorld(btDynamicsWorld* world) - { - m_dynamicsWorld=world; - } - - - btDynamicsWorld* getDynamicsWorld() - { - return m_dynamicsWorld; - } - - virtual void initPhysics() = 0; - - virtual void setDrawClusters(bool drawClusters) - { - - } - - void overrideGLShapeDrawer (GL_ShapeDrawer* shapeDrawer); - - void setOrthographicProjection(); - void resetPerspectiveProjection(); - - bool setTexturing(bool enable) { return(m_shapeDrawer->enableTexture(enable)); } - bool setShadows(bool enable) { bool p=m_enableshadows;m_enableshadows=enable;return(p); } - bool getTexturing() const - { - return m_shapeDrawer->hasTextureEnabled(); - } - bool getShadows() const - { - return m_enableshadows; - } - - - int getDebugMode() - { - return m_debugMode ; - } - - void setDebugMode(int mode); - - void setAzi(float azi) - { - m_azi = azi; - } - - void setEle(float ele) - { - m_ele = ele; - } - - void setCameraUp(const btVector3& camUp) - { - m_cameraUp = camUp; - } - void setCameraForwardAxis(int axis) - { - m_forwardAxis = axis; - } - - virtual void myinit(); - - void toggleIdle(); - - virtual void updateCamera(); - - btVector3 getCameraPosition() - { - return m_cameraPosition; - } - btVector3 getCameraTargetPosition() - { - return m_cameraTargetPosition; - } - - btScalar getDeltaTimeMicroseconds() - { -#ifdef USE_BT_CLOCK - btScalar dt = (btScalar)m_clock.getTimeMicroseconds(); - m_clock.reset(); - return dt; -#else - return btScalar(16666.); -#endif - } - void setFrustumZPlanes(float zNear, float zFar) - { - m_frustumZNear = zNear; - m_frustumZFar = zFar; - } - - ///glut callbacks - - float getCameraDistance(); - void setCameraDistance(float dist); - void moveAndDisplay(); - - virtual void clientMoveAndDisplay() = 0; - - virtual void clientResetScene(); - - ///Demo functions - virtual void setShootBoxShape (); - virtual void shootBox(const btVector3& destination); - - - btVector3 getRayTo(int x,int y); - - btRigidBody* localCreateRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape); - - ///callback methods by glut - - virtual void keyboardCallback(unsigned char key, int x, int y); - - virtual void keyboardUpCallback(unsigned char key, int x, int y) {} - - virtual void specialKeyboard(int key, int x, int y){} - - virtual void specialKeyboardUp(int key, int x, int y){} - - virtual void reshape(int w, int h); - - virtual void mouseFunc(int button, int state, int x, int y); - - virtual void mouseMotionFunc(int x,int y); - - virtual void displayCallback(); - - virtual void renderme(); - - virtual void swapBuffers() = 0; - - virtual void updateModifierKeys() = 0; - - void stepLeft(); - void stepRight(); - void stepFront(); - void stepBack(); - void zoomIn(); - void zoomOut(); - - bool isIdle() const - { - return m_idle; - } - - void setIdle(bool idle) - { - m_idle = idle; - } - - -}; - -#endif //DEMO_APPLICATION_H - - diff --git a/Demos/OpenGL/GLDebugDrawer.cpp b/Demos/OpenGL/GLDebugDrawer.cpp deleted file mode 100644 index bddd135be..000000000 --- a/Demos/OpenGL/GLDebugDrawer.cpp +++ /dev/null @@ -1,130 +0,0 @@ - -#include "GLDebugDrawer.h" -#include "GLDebugFont.h" -#include "GlutStuff.h" - - - -#include //printf debugging -GLDebugDrawer::GLDebugDrawer() -:m_debugMode(0) -{ - -} - -GLDebugDrawer::~GLDebugDrawer() -{ -} - -void GLDebugDrawer::drawLine(const btVector3& from,const btVector3& to,const btVector3& fromColor, const btVector3& toColor) -{ - glBegin(GL_LINES); - glColor3f(fromColor.getX(), fromColor.getY(), fromColor.getZ()); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glColor3f(toColor.getX(), toColor.getY(), toColor.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - glEnd(); -} - -void GLDebugDrawer::drawLine(const btVector3& from,const btVector3& to,const btVector3& color) -{ - drawLine(from,to,color,color); -} - -void GLDebugDrawer::drawSphere (const btVector3& p, btScalar radius, const btVector3& color) -{ - glColor4f (color.getX(), color.getY(), color.getZ(), btScalar(1.0f)); - glPushMatrix (); - glTranslatef (p.getX(), p.getY(), p.getZ()); - - int lats = 5; - int longs = 5; - - int i, j; - for(i = 0; i <= lats; i++) { - btScalar lat0 = SIMD_PI * (-btScalar(0.5) + (btScalar) (i - 1) / lats); - btScalar z0 = radius*sin(lat0); - btScalar zr0 = radius*cos(lat0); - - btScalar lat1 = SIMD_PI * (-btScalar(0.5) + (btScalar) i / lats); - btScalar z1 = radius*sin(lat1); - btScalar zr1 = radius*cos(lat1); - - glBegin(GL_QUAD_STRIP); - for(j = 0; j <= longs; j++) { - btScalar lng = 2 * SIMD_PI * (btScalar) (j - 1) / longs; - btScalar x = cos(lng); - btScalar y = sin(lng); - - glNormal3f(x * zr0, y * zr0, z0); - glVertex3f(x * zr0, y * zr0, z0); - glNormal3f(x * zr1, y * zr1, z1); - glVertex3f(x * zr1, y * zr1, z1); - } - glEnd(); - } - - glPopMatrix(); -} - - - -void GLDebugDrawer::drawTriangle(const btVector3& a,const btVector3& b,const btVector3& c,const btVector3& color,btScalar alpha) -{ -// if (m_debugMode > 0) - { - const btVector3 n=btCross(b-a,c-a).normalized(); - glBegin(GL_TRIANGLES); - glColor4f(color.getX(), color.getY(), color.getZ(),alpha); - glNormal3d(n.getX(),n.getY(),n.getZ()); - glVertex3d(a.getX(),a.getY(),a.getZ()); - glVertex3d(b.getX(),b.getY(),b.getZ()); - glVertex3d(c.getX(),c.getY(),c.getZ()); - glEnd(); - } -} - -void GLDebugDrawer::setDebugMode(int debugMode) -{ - m_debugMode = debugMode; - -} - -void GLDebugDrawer::draw3dText(const btVector3& location,const char* textString) -{ - glRasterPos3f(location.x(), location.y(), location.z()); - //BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),textString); -} - -void GLDebugDrawer::reportErrorWarning(const char* warningString) -{ - printf("%s\n",warningString); -} - -void GLDebugDrawer::drawContactPoint(const btVector3& pointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color) -{ - - { - btVector3 to=pointOnB+normalOnB*1;//distance; - const btVector3&from = pointOnB; - glColor4f(color.getX(), color.getY(), color.getZ(),1.f); - //glColor4f(0,0,0,1.f); - glBegin(GL_LINES); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - glEnd(); - - -// glRasterPos3f(from.x(), from.y(), from.z()); -// char buf[12]; -// sprintf(buf," %d",lifeTime); - //BMF_DrawString(BMF_GetFont(BMF_kHelvetica10),buf); - - - } -} - - - - - diff --git a/Demos/OpenGL/GLDebugDrawer.h b/Demos/OpenGL/GLDebugDrawer.h deleted file mode 100644 index 6ac987d0b..000000000 --- a/Demos/OpenGL/GLDebugDrawer.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef GL_DEBUG_DRAWER_H -#define GL_DEBUG_DRAWER_H - -#include "LinearMath/btIDebugDraw.h" - - - -class GLDebugDrawer : public btIDebugDraw -{ - int m_debugMode; - -public: - - GLDebugDrawer(); - virtual ~GLDebugDrawer(); - - virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& fromColor, const btVector3& toColor); - - virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color); - - virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color); - - virtual void drawTriangle(const btVector3& a,const btVector3& b,const btVector3& c,const btVector3& color,btScalar alpha); - - virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color); - - virtual void reportErrorWarning(const char* warningString); - - virtual void draw3dText(const btVector3& location,const char* textString); - - virtual void setDebugMode(int debugMode); - - virtual int getDebugMode() const { return m_debugMode;} - -}; - -#endif//GL_DEBUG_DRAWER_H diff --git a/Demos/OpenGL/GLDebugFont.cpp b/Demos/OpenGL/GLDebugFont.cpp deleted file mode 100644 index a54e957a9..000000000 --- a/Demos/OpenGL/GLDebugFont.cpp +++ /dev/null @@ -1,1014 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GLDebugFont.h" -#ifdef DONT_USE_GLUT -#include "OpenGLWindow/OpenGLInclude.h" -#else -#ifdef _WIN32//for glut.h -#include -#endif - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#if (defined (TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || (defined (TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR) -#import -#define glOrtho glOrthof -#else -#include -#include -#include -#endif -#else - - - -#ifdef _WINDOWS -#include -#include -#include -#else -#include -#include -#endif -#endif -#endif -#include -#include //for memset - -extern unsigned char sFontData[]; -static bool sTexturesInitialized = false; - -static GLuint sTexture = -1; -static int sScreenWidth = -1; -static int sScreenHeight = -1; - - -void GLDebugResetFont(int screenWidth,int screenHeight) -{ - - if (screenWidth==0 && screenHeight==0) - { - sScreenWidth = screenWidth; - sScreenHeight = screenHeight; - - if (sTexturesInitialized) - { - glDeleteTextures(1, &sTexture); - glBindTexture(GL_TEXTURE_2D,0); - sTexturesInitialized = false; - } - return; - } - if ((sScreenWidth == screenWidth) && (sScreenHeight == screenHeight)) - return; - - sScreenWidth = screenWidth; - sScreenHeight = screenHeight; - - if (!sTexturesInitialized) - { - sTexturesInitialized = true; - glGenTextures(1, &sTexture); - glBindTexture(GL_TEXTURE_2D, sTexture); - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); - glTexImage2D(GL_TEXTURE_2D, 0, 3, 256 , 256 , 0, GL_RGB, GL_UNSIGNED_BYTE, &sFontData[0]); - } - -// printf("generating font at resolution %d,%d\n",screenWidth,screenHeight); - -} - -#define USE_ARRAYS 1 - -void GLDebugDrawStringInternal(int x,int y,const char* string, const btVector3& rgb) -{ - GLDebugDrawStringInternal(x,y,string,rgb,true,10); -} - -void GLDebugDrawStringInternal(int x,int y,const char* string, const btVector3& rgb, bool enableBlend, int spacing) -{ - - if (!sTexturesInitialized) - { - GLDebugResetFont(sScreenWidth,sScreenHeight); - } - if (strlen(string)) - { - - glColor4f(rgb.getX(),rgb.getY(),rgb.getZ(),1.f); - float cx; - float cy; - - glMatrixMode(GL_TEXTURE); - glLoadIdentity(); - - glDisable(GL_TEXTURE_GEN_S); - glDisable(GL_TEXTURE_GEN_T); - glDisable(GL_TEXTURE_GEN_R); - - glEnable(GL_TEXTURE_2D); - glBlendFunc(GL_SRC_ALPHA,GL_ONE); - glDepthFunc (GL_LEQUAL); - - if (enableBlend) - { - glEnable(GL_BLEND); - } else - { - glDisable(GL_BLEND); - } - glEnable (GL_DEPTH_TEST); - glBindTexture(GL_TEXTURE_2D, sTexture); - glDisable(GL_DEPTH_TEST); - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - glLoadIdentity(); - - glOrtho(0,sScreenWidth,0,sScreenHeight,-1,1); - - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); - glTranslatef(btScalar(x),btScalar(sScreenHeight - y),btScalar(0)); - -#if USE_ARRAYS - - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_NORMAL_ARRAY); - glEnableClientState(GL_VERTEX_ARRAY); - glEnableClientState (GL_TEXTURE_COORD_ARRAY); -#endif - - GLfloat verts[] ={ - 0.0f, 1.0f, 0.0f, - -1.0f, -1.0f, 0.0f, - 1.0f, -1.0f, 0.0f, - 0.f,0.f,0.f - }; - - GLfloat uv_texcoords[] = { - 0,0, - 0,0, - 0,0, - 0,0 - }; - verts[0] = 0; verts[1] = 0; verts[2] = 0; - verts[3] = 16-1; verts[4] = 0; verts[5] = 0; - verts[6] = 16-1; verts[7] = 16-1; verts[8] = 0; - verts[9] = 0; verts[10] = 16-1; verts[11] = 0; - - for (int i=0;i=0) - { - cx=float(ch%16) * btScalar(1./16.f); - cy=float(ch/16) * btScalar(1./16.f); - - uv_texcoords[0] = cx; uv_texcoords[1] = btScalar(1-cy-1./16.f); - uv_texcoords[2] = btScalar(cx+1./16.f); uv_texcoords[3] = btScalar(1-cy-1./16.f); - uv_texcoords[4] = btScalar(cx+1./16.f); uv_texcoords[5] = btScalar(1-cy); - uv_texcoords[6] = cx; uv_texcoords[7] = btScalar(1-cy); -#if USE_ARRAYS - glTexCoordPointer(2,GL_FLOAT,0,uv_texcoords); - glVertexPointer(3, GL_FLOAT, 0, verts); - glDrawArrays(GL_TRIANGLE_FAN, 0, 4); -#else - glBegin(GL_QUADS); - glTexCoord2f(cx,1-cy-1./16.f); - - glVertex2i(0,0); - glTexCoord2f(cx+1./16.f,1-cy-1./16.f); - - glVertex2i(16 - 1,0); - glTexCoord2f(cx+1./16.f,1-cy); - - glVertex2i(16 - 1,16 -1); - glTexCoord2f(cx,1-cy); - - glVertex2i(0,16 -1); - glEnd(); -#endif - - glTranslatef(spacing,0,0); - } - } - - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); -#if 1 - glEnable(GL_DEPTH_TEST); - glBlendFunc(GL_SRC_ALPHA,GL_ONE); - glDepthFunc (GL_LEQUAL); - glDisable(GL_BLEND); - glDisable(GL_TEXTURE_2D); - - glMatrixMode(GL_TEXTURE); - glLoadIdentity(); - glScalef(btScalar(0.025),btScalar(0.025),btScalar(0.025)); -#endif - glMatrixMode(GL_MODELVIEW); -#if USE_ARRAYS - glDisableClientState(GL_VERTEX_ARRAY); - glDisableClientState (GL_TEXTURE_COORD_ARRAY); -#endif - //glDisable(GL_TEXTURE_2D); - } -} - -void GLDebugDrawString(int x,int y,const char* string) -{ - - btVector3 rgb(1,1,1); - GLDebugDrawStringInternal(x,y,string,rgb); -} - - -unsigned char sFontData[] = -{ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,213,213,213,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,2,2,2,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213, - 213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,213,213,213,255,255,255,255,255,255,255,255,255,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,178,178,178,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,0,0,0,0,0,0,0,0,0,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,178,178,178,255,255,255,255,255,255,255,255,255,145,145,145,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, - 255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70, - 70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,70,70, - 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,255,255,255,213,213,213,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,255,255,255,246,246,246,178,178,178,246,246,246,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37, - 37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213, - 213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,255,255,255,103,103,103,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, - 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,103,103,103,246,246,246,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,70,70,70,255,255,255,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,70,70,70,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,255,255,255,37,37,37,0,0,0,145,145,145,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255, - 255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,37,37,37,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,70,70,70,0,0,0,103,103,103,255,255, - 255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,255,255,255,255,255, - 255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,246,246, - 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, - 255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,178,178,178,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178, - 178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,145,145,145,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,145,145,145,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2, - 2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103, - 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255, - 255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178, - 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, - 37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246, - 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103, - 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103, - 103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, - 246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,103,103,103,178,178,178,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,2,2,2,37,37,37,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,255,255,255,103,103,103,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,178,178,178,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,246,246,246,0,0,0,0,0,0,246,246,246,70,70, - 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,2,2,2,2,2,2,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,178,178,178,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,145,145,145,255,255,255,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,178,178,178,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,103,103,103,178,178,178,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,103,103,103,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,70,70,70,103,103,103,246,246,246,0,0,0,213,213,213,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,246,246, - 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, - 255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,103,103,103,103,103,103,145,145,145,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178,178,178,103,103,103,178,178,178,255,255,255,145,145,145,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213, - 213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246, - 246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,255,255,255,178,178,178,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,178,178,178,255,255,255,37,37,37,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,70,70,70,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255, - 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246, - 246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, - 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,213,213,213,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,37,37,37,255,255,255,255,255,255,70,70,70,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,178,178,178,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,178,178,178,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,178,178,178,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37, - 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,145,145,145,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246, - 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, - 255,255,145,145,145,103,103,103,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,246,246,246,2,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,103,103,103,178,178,178,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37, - 37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,2,2,2,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,103,103, - 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,103,103,103,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2, - 2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,255,255,255,2,2,2,246,246,246,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,145,145,145,103,103, - 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103, - 103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,103,103,103,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,145,145,145,2,2,2,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213, - 213,213,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,255,255,255,255,255,255,2,2,2,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,255,255,255,37,37,37,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255, - 255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255, - 255,255,103,103,103,103,103,103,0,0,0,70,70,70,103,103,103,255,255,255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,213,213,213,255,255,255,145,145,145,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,145,145,145,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,103,103,103,213,213,213,255,255,255,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, - 255,255,255,255,255,255,255,255,2,2,2,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255, - 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,103,103,103,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255, - 255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,103,103,103,213,213,213,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,70,70,70,0,0,0,37,37,37,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,103,103,103,0,0,0,2,2,2,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,145,145,145,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,246,246,246,255,255,255,2,2,2,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,178,178,178,103,103,103,255,255,255,213,213,213,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,2,2,2,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,246,246,246,255,255,255,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,213,213,213,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,178,178,178,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,246,246,246,255,255,255,178,178,178,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,70,70,70,255,255,255,70,70,70,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,145,145,145,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, - 246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,246,246,246,103,103,103,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,213,213,213,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145, - 145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37, - 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,2,2,2,103,103,103,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213, - 213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,103,103,103,255,255,255,246,246,246,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,255,255,255,246,246, - 246,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,0,0,0,255,255,255,255,255,255,145,145,145,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,255,255,255,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,70,70,70,0,0,0,103,103,103,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255, - 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255, - 255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213, - 213,213,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,246,246,246,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,37,37,37,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,213,213,213,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,178,178,178,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, - 246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145, - 145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, - 37,37,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,213,213,213,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,213,213,213,103,103,103,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,246,246,246,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,178,178,178,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,246,246,246,213,213,213,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178, - 178,178,0,0,0,0,0,0,213,213,213,213,213,213,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,178,178,178,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103, - 103,103,255,255,255,178,178,178,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,246,246,246,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,2,2,2,178,178,178,255,255,255,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,213,213,213,37,37,37,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,255,255,255,37,37, - 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,145,145,145,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255, - 255,255,255,255,255,145,145,145,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,70,70,70,2,2,2,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, - 255,255,0,0,0,255,255,255,2,2,2,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255, - 255,255,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,2,2,2,255,255,255,145,145,145,70,70, - 70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70, - 70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255, - 255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, - 37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0, - 0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,213,213,213,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,2,2,2,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,2,2,2,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,2,2,2,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,103,103,103,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,213,213,213,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,145,145,145,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,103,103,103,255,255,255,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, - 37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,37,37,37,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,70,70,70,0,0,0,2,2,2,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, - 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0, - 0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,159,159,159,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255, - 255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0, - 0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103, - 103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2, - 2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255, - 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145, - 145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255, - 255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178, - 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,70,70,70,0,0,0,2,2,2,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,2,2,2,0,0,0,70,70,70,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,70,70,70,0,0,0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,145,145,145,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,70,70,70,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,37,37,37,246,246,246,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,37,37,37,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,213,213,213,0,0,0,145,145,145,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,0,0,0,255,255,255,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,246,246,246,0,0,0,255,255,255,0,0,0,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,103,103,103,246,246,246,255,255,255,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178, - 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,37,37,37,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,70,70,70,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255, - 255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,213,213,213,255,255,255,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,70,70,70,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,37,37,37,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, - 37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,37,37,37,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, - 255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213, - 213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,37,37,37,70,70,70,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,246,246,246,2,2,2,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,70,70,70,255,255,255,246,246,246,178,178,178,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,246,246,246,2,2,2,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,145,145,145,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,178,178,178,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,246,246,246,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,246,246,246,103,103,103,103,103,103,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,145,145,145,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, - 255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,0,0,0,255,255,255,213,213,213,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,255,255,255,0,0,0,255,255,255,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,103,103,103,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,246,246,246,255,255,255,178,178,178,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37, - 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255, - 255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,103,103,103,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,37,37,37,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,178,178,178,255,255,255,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,178,178, - 178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,246,246,246,246,246,246,246,246,246,246,246,246,246,246, - 246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,37,37, - 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,103,103,103,0,0,0,70,70,70,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,178,178,178,178,178,178,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,255,255,255,0,0,0,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,246,246,246,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,213,213,213,178,178,178,255,255,255,70,70,70,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,103,103,103,255,255,255,2,2,2,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,2,2,2,103,103,103,213,213,213,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,178,178,178,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,145,145,145,103,103,103,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,70,70,70,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,178,178,178,255,255,255,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,103,103,103,255,255, - 255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246, - 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,246,246,246,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,246,246,246,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,70,70,70,103,103,103,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,37,37,37,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, - 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,246,246,246,246,246,246,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,145,145,145,246,246,246,246,246,246,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178, - 178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,2,2,2,0,0,0,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, - 246,246,37,37,37,0,0,0,37,37,37,246,246,246,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,255,255,255,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,70,70,70,246,246,246,37,37,37,246,246,246,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,103,103,103,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,213,213,213,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,255,255,255,103,103,103,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,37,37,37,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,2,2,2,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,255,255,255,246,246,246,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,255,255, - 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,246,246,246,103,103,103,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255, - 255,255,145,145,145,255,255,255,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,145,145,145,178,178, - 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0, - 0,0,0,0,0,255,255,255,255,255,255,145,145,145,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,2,2,2,0,0,0,70,70, - 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,2,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0, - 0,0,0,0,0,103,103,103,103,103,103,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,2,2,2,70,70,70,70,70, - 70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,178,178,178,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,2,2,2,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,103, - 103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178, - 178,178,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -}; diff --git a/Demos/OpenGL/GLDebugFont.h b/Demos/OpenGL/GLDebugFont.h deleted file mode 100644 index bf2c2575d..000000000 --- a/Demos/OpenGL/GLDebugFont.h +++ /dev/null @@ -1,29 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#ifndef BT_DEBUG_FONT_H -#define BT_DEBUG_FONT_H - -#include "LinearMath/btVector3.h" - - -void GLDebugDrawStringInternal(int x,int y,const char* string,const btVector3& rgb, bool enableBlend, int spacing); -void GLDebugDrawStringInternal(int x,int y,const char* string,const btVector3& rgb); -void GLDebugDrawString(int x,int y,const char* string); -void GLDebugResetFont(int screenWidth,int screenHeight); - -#endif //BT_DEBUG_FONT_H - diff --git a/Demos/OpenGL/GL_DialogDynamicsWorld.cpp b/Demos/OpenGL/GL_DialogDynamicsWorld.cpp deleted file mode 100644 index 08948d273..000000000 --- a/Demos/OpenGL/GL_DialogDynamicsWorld.cpp +++ /dev/null @@ -1,761 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#include "GL_DialogDynamicsWorld.h" -#include "GL_DialogWindow.h" -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h" -#include "BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h" -#include "BulletCollision/CollisionShapes/btBox2dShape.h" -#include "BulletCollision/CollisionShapes/btConvex2dShape.h" -#include "BulletCollision/NarrowPhaseCollision/btMinkowskiPenetrationDepthSolver.h" - -GL_DialogDynamicsWorld::GL_DialogDynamicsWorld() -{ - m_upperBorder = 0; - m_lowerBorder =0; - - m_pickConstraint = 0; - m_screenWidth = 0; - m_screenHeight = 0; - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_broadphase = new btDbvtBroadphase(); - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_constraintSolver,m_collisionConfiguration); - m_dynamicsWorld ->getSolverInfo().m_splitImpulse = true; - //m_dynamicsWorld->setGravity(btVector3(0,10,0)); - m_dynamicsWorld->setGravity(btVector3(0,0,0)); - - m_simplexSolver = new btVoronoiSimplexSolver(); - m_pdSolver = new btMinkowskiPenetrationDepthSolver(); - - btConvex2dConvex2dAlgorithm::CreateFunc* convexAlgo2d = new btConvex2dConvex2dAlgorithm::CreateFunc(m_simplexSolver,m_pdSolver); - - m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,new btBox2dBox2dCollisionAlgorithm::CreateFunc()); - - ///enable boarders, to avoid 'loosing' menus -#if 1 - btTransform tr; - tr.setIdentity(); - - { - btStaticPlaneShape* plane = new btStaticPlaneShape(btVector3(0,1,0),0); - m_upperBorder = new btCollisionObject(); - tr.setOrigin(btVector3(0,-BT_LARGE_FLOAT,0)); - m_upperBorder->setWorldTransform(tr); - m_upperBorder->setCollisionShape(plane); - m_dynamicsWorld->addCollisionObject(m_upperBorder); - } - - { - btStaticPlaneShape* plane = new btStaticPlaneShape(btVector3(0,-1,0),0); - m_lowerBorder = new btCollisionObject(); - - tr.setIdentity(); - tr.setOrigin(btVector3(0,BT_LARGE_FLOAT,0)); - m_lowerBorder->setWorldTransform(tr); - m_lowerBorder->setCollisionShape(plane); - m_dynamicsWorld->addCollisionObject(m_lowerBorder); - } - { - btStaticPlaneShape* plane = new btStaticPlaneShape(btVector3(1,0,0),0); - m_leftBorder = new btCollisionObject(); - tr.setIdentity(); - tr.setOrigin(btVector3(-BT_LARGE_FLOAT,0,0)); - m_leftBorder->setWorldTransform(tr); - m_leftBorder->setCollisionShape(plane); - m_dynamicsWorld->addCollisionObject(m_leftBorder); - } - { - btStaticPlaneShape* plane = new btStaticPlaneShape(btVector3(-1,0,0),0); - m_rightBorder = new btCollisionObject(); - tr.setIdentity(); - tr.setOrigin(btVector3(BT_LARGE_FLOAT,0,0)); - m_rightBorder->setWorldTransform(tr); - m_rightBorder->setCollisionShape(plane); - m_dynamicsWorld->addCollisionObject(m_rightBorder); - } -#endif - -} - -GL_DialogDynamicsWorld::~GL_DialogDynamicsWorld() -{ - delete m_dynamicsWorld; - delete m_dispatcher; - delete m_constraintSolver; - delete m_broadphase; - delete m_collisionConfiguration; -} - -void GL_DialogDynamicsWorld::setScreenSize(int width, int height) -{ - - - int i; - - for ( i=0;igetCollisionObjectArray().size();i++) - { - btCollisionObject* colObj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(colObj); - if (body) - { - m_dynamicsWorld->removeRigidBody(body); - btVector3 newPos = colObj->getWorldTransform().getOrigin() + btVector3(btScalar(m_screenWidth/2.),btScalar(m_screenHeight/2),btScalar(0))-btVector3(btScalar(width/2.),btScalar(height/2.),btScalar(0)); - colObj->getWorldTransform().setOrigin(newPos); - m_dynamicsWorld->addRigidBody(body); - } else - { - m_dynamicsWorld->removeCollisionObject(colObj); - btVector3 newPos = colObj->getWorldTransform().getOrigin() + btVector3(btScalar(m_screenWidth/2.),btScalar(m_screenHeight/2.),btScalar(0))-btVector3(btScalar(width/2.),btScalar(height/2.),btScalar(0)); - colObj->getWorldTransform().setOrigin(newPos); - m_dynamicsWorld->addCollisionObject(colObj); - } - } - - for ( i=0;isetScreenSize(width,height); - } - if (width && height) - { - if (m_upperBorder) - { - m_dynamicsWorld->removeCollisionObject(m_upperBorder); - - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(btScalar(0),btScalar(-height/2.),btScalar(0.))); - m_upperBorder->setWorldTransform(tr); - m_dynamicsWorld->addCollisionObject(m_upperBorder); - } - - if (m_lowerBorder) - { - m_dynamicsWorld->removeCollisionObject(m_lowerBorder); - - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(btScalar(0),btScalar(height/2.),btScalar(0))); - m_lowerBorder->setWorldTransform(tr); - m_dynamicsWorld->addCollisionObject(m_lowerBorder); - } - if (m_leftBorder) - { - m_dynamicsWorld->removeCollisionObject(m_leftBorder); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(btScalar(-width/2.),btScalar(0),btScalar(0))); - m_leftBorder->setWorldTransform(tr); - m_dynamicsWorld->addCollisionObject(m_leftBorder); - } - if (m_rightBorder) - { - m_dynamicsWorld->removeCollisionObject(m_rightBorder); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(btScalar(width/2.),btScalar(0),btScalar(0))); - m_rightBorder->setWorldTransform(tr); - m_dynamicsWorld->addCollisionObject(m_rightBorder); - - } - - } - - - m_screenWidth = width; - m_screenHeight = height; -} - -GL_DialogWindow* GL_DialogDynamicsWorld::createDialog(int horPos,int vertPos,int dialogWidth,int dialogHeight, const char* dialogTitle ) -{ - btBox2dShape* boxShape = new btBox2dShape(btVector3(dialogWidth/2.f,dialogHeight/2.f,0.4f)); - btScalar mass = 100.f; - btVector3 localInertia; - boxShape->calculateLocalInertia(mass,localInertia); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,0,boxShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - btTransform trans; - trans.setIdentity(); -// trans.setOrigin(btVector3(btScalar(horPos-m_screenWidth/2+dialogWidth/2), btScalar(vertPos+m_screenHeight/2.+dialogHeight/2),btScalar(0.))); - trans.setOrigin(btVector3(btScalar(horPos-m_screenWidth/2+dialogWidth/2), btScalar(vertPos-m_screenHeight/2.+dialogHeight/2),btScalar(0.))); - - - - body->setWorldTransform(trans); - body->setDamping(0.999f,0.99f); - - //body->setActivationState(ISLAND_SLEEPING); - body->setLinearFactor(btVector3(1,1,0)); - //body->setAngularFactor(btVector3(0,0,1)); - body->setAngularFactor(btVector3(0,0,0)); - - GL_DialogWindow* dialogWindow = new GL_DialogWindow(horPos,vertPos,dialogWidth,dialogHeight,body,dialogTitle); - m_dialogs.push_back(dialogWindow); - m_dynamicsWorld->addRigidBody(body); - - return dialogWindow; - -} - -GL_SliderControl* GL_DialogDynamicsWorld::createSlider(GL_DialogWindow* dialog, const char* sliderText, btScalar initialFraction) -{ - btBox2dShape* boxShape = new btBox2dShape(btVector3(6.f,6.f,0.4f)); - btScalar mass = .1f; - btVector3 localInertia; - boxShape->calculateLocalInertia(mass,localInertia); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,0,boxShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - btTransform trans; - trans.setIdentity(); - int sliderX = dialog->getDialogHorPos() - m_screenWidth/2 + dialog->getDialogWidth()/2; -// int sliderY = dialog->getDialogVertPos() + m_screenHeight/2 + dialog->getDialogHeight()/2 + dialog->getNumControls()*20; - int sliderY = dialog->getDialogVertPos() - m_screenHeight/2 + dialog->getDialogHeight()/2 + dialog->getNumControls()*20; - trans.setOrigin(btVector3((btScalar)sliderX, (btScalar)sliderY,(btScalar)-0.2f)); - - body->setWorldTransform(trans); - //body->setDamping(0.999,0.99); - - //body->setActivationState(ISLAND_SLEEPING); - body->setLinearFactor(btVector3(1,1,0)); - //body->setAngularFactor(btVector3(0,0,1)); - body->setAngularFactor(btVector3(0,0,0)); - - m_dynamicsWorld->addRigidBody(body); - body->setCollisionFlags(body->getFlags()|btCollisionObject::CF_NO_CONTACT_RESPONSE); - - btRigidBody* dialogBody = btRigidBody::upcast(dialog->getCollisionObject()); - btAssert(dialogBody); - - - - btTransform frameInA; - frameInA.setIdentity(); - int offsX = -dialog->getDialogWidth()/2 + 16; - int offsY = -dialog->getDialogHeight()/2 + dialog->getNumControls()*20 + 36; - btVector3 offset(btVector3((btScalar)offsX, (btScalar)offsY, (btScalar)0.2f)); - frameInA.setOrigin(offset); - - - btTransform frameInB; - frameInB.setIdentity(); - //frameInB.setOrigin(-offset/2); - -// btScalar lowerLimit = 80.f; -// btScalar upperLimit = 170.f; - btScalar lowerLimit = 141.f; - btScalar upperLimit = 227.f; - - btScalar actualLimit = lowerLimit+initialFraction*(upperLimit-lowerLimit); - - -#if 0 - bool useFrameA = false; - - btGeneric6DofConstraint* constraint = new btGeneric6DofConstraint(*dialogBody,*body,frameInA,frameInB,useFrameA); - m_dynamicsWorld->addConstraint(constraint,true); - constraint->setLimit(0,lowerLimit,upperLimit); -#else - btSliderConstraint* sliderConstraint = new btSliderConstraint(*dialogBody,*body,frameInA,frameInB,true);//useFrameA); - sliderConstraint->setLowerLinLimit(actualLimit); - sliderConstraint->setUpperLinLimit(actualLimit); - m_dynamicsWorld->addConstraint(sliderConstraint,true); - -#endif - - - GL_SliderControl* slider = new GL_SliderControl(sliderText, body,dialog,lowerLimit,upperLimit, sliderConstraint); - body->setUserPointer(slider); - dialog->addControl(slider); - - slider->m_fraction = initialFraction; - - return slider; -} - - - -GL_ToggleControl* GL_DialogDynamicsWorld::createToggle(GL_DialogWindow* dialog, const char* toggleText) -{ - - - btBox2dShape* boxShape = new btBox2dShape(btVector3(6.f,6.f,0.4f)); - btScalar mass = 0.1f; - btVector3 localInertia; - boxShape->calculateLocalInertia(mass,localInertia); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,0,boxShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - btTransform trans; - trans.setIdentity(); - - int toggleX = dialog->getDialogHorPos() - m_screenWidth/2 + dialog->getDialogWidth()/2; -// int toggleY = dialog->getDialogVertPos() + m_screenHeight/2 + dialog->getDialogHeight()/2 + dialog->getNumControls()*20; - int toggleY = dialog->getDialogVertPos() - m_screenHeight/2 + dialog->getDialogHeight()/2 + dialog->getNumControls()*20; - trans.setOrigin(btVector3((btScalar)toggleX, (btScalar)toggleY,(btScalar) -0.2f)); - - body->setWorldTransform(trans); - body->setDamping(0.999f,0.99f); - - //body->setActivationState(ISLAND_SLEEPING); - body->setLinearFactor(btVector3(1,1,0)); - //body->setAngularFactor(btVector3(0,0,1)); - body->setAngularFactor(btVector3(0,0,0)); - - m_dynamicsWorld->addRigidBody(body); - body->setCollisionFlags(body->getFlags()|btCollisionObject::CF_NO_CONTACT_RESPONSE); - - btRigidBody* dialogBody = btRigidBody::upcast(dialog->getCollisionObject()); - btAssert(dialogBody); - - - - btTransform frameInA; - frameInA.setIdentity(); - btVector3 offset(btVector3(+dialog->getDialogWidth()/2.f-32.f,-dialog->getDialogHeight()/2.f+dialog->getNumControls()*20.f+36.f,0.2f)); - frameInA.setOrigin(offset); - - - btTransform frameInB; - frameInB.setIdentity(); - //frameInB.setOrigin(-offset/2); - bool useFrameA = true; - - btGeneric6DofConstraint* constraint = new btGeneric6DofConstraint(*dialogBody,*body,frameInA,frameInB,useFrameA); - m_dynamicsWorld->addConstraint(constraint,true); - - - GL_ToggleControl* toggle = new GL_ToggleControl(toggleText, body,dialog); - body->setUserPointer(toggle); - dialog->addControl(toggle); - return toggle; -} - -void GL_DialogDynamicsWorld::draw(btScalar timeStep) -{ - if (timeStep) - { - m_dynamicsWorld->stepSimulation(timeStep); - } - - for (int i=0;idraw(timeStep); - } -} - -static btRigidBody* pickedBody = 0;//for deactivation state -static btScalar mousePickClamping = 111130.f; - -//static int gPickingConstraintId = 0; -static btVector3 gOldPickingPos; -static btVector3 gHitPos(-1,-1,-1); - -static btScalar gOldPickingDist = 0.f; - -bool GL_DialogDynamicsWorld::mouseFunc(int button, int state, int x, int y) -{ - if (state == 0) - { - m_mouseButtons |= 1<rayTest(m_cameraPosition,rayTo,rayCallback); - if (rayCallback.hasHit()) - { - - btRigidBody* body = btRigidBody::upcast(rayCallback.m_collisionObject); - if (body) - { - body->setActivationState(ACTIVE_TAG); - btVector3 impulse = rayTo; - impulse.normalize(); - float impulseStrength = 10.f; - impulse *= impulseStrength; - btVector3 relPos = rayCallback.m_hitPointWorld - body->getCenterOfMassPosition(); - body->applyImpulse(impulse,relPos); - } - } - } -#endif - - - - } else - { - - } - break; - } - - case 0: - { - if (state==0) - { - - - //add a point to point constraint for picking - if (m_dynamicsWorld) - { - - btVector3 rayFrom; - if (1)//m_ortho) - { - rayFrom = rayTo; - rayFrom.setZ(-100.f); - } - //else - //{ - // rayFrom = m_cameraPosition; - //} - - btCollisionWorld::ClosestRayResultCallback rayCallback(rayFrom,rayTo); - m_dynamicsWorld->rayTest(rayFrom,rayTo,rayCallback); - if (rayCallback.hasHit()) - { - - - btScalar maxPickingClamp = mousePickClamping; - - btRigidBody* body = (btRigidBody*)btRigidBody::upcast(rayCallback.m_collisionObject); - if (body) - { - bool doPick = true; - if (body->getUserPointer()) - { - ///deal with controls in a special way - GL_DialogControl* ctrl = (GL_DialogControl*)body->getUserPointer(); - - switch(ctrl->getType()) - { - case GL_TOGGLE_CONTROL: - { - GL_ToggleControl* toggle = (GL_ToggleControl*) ctrl; - toggle->m_active = !toggle->m_active; - doPick = false; - break; - } - case GL_SLIDER_CONTROL: - { - GL_SliderControl* slider = (GL_SliderControl*) ctrl; - btTypedConstraint* constraint = slider->getConstraint(); - if (constraint->getConstraintType() == SLIDER_CONSTRAINT_TYPE) - { - btSliderConstraint* sliderConstraint = (btSliderConstraint*) constraint; - sliderConstraint->setLowerLinLimit(slider->getLowerLimit()); - sliderConstraint->setUpperLinLimit(slider->getUpperLimit()); - } - maxPickingClamp = 100; - } - default: - { - } - }; - - }; - - if (doPick) - { - //other exclusions? - if (!(body->isStaticObject() || body->isKinematicObject())) - { - pickedBody = body; - pickedBody->setActivationState(DISABLE_DEACTIVATION); - - - - btVector3 pickPos = rayCallback.m_hitPointWorld; - //printf("pickPos=%f,%f,%f\n",pickPos.getX(),pickPos.getY(),pickPos.getZ()); - - - btVector3 localPivot = body->getCenterOfMassTransform().inverse() * pickPos; - - btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*body,localPivot); - p2p->m_setting.m_impulseClamp = maxPickingClamp; - - m_dynamicsWorld->addConstraint(p2p); - m_pickConstraint = p2p; - - //save mouse position for dragging - gOldPickingPos = rayTo; - gHitPos = pickPos; - - gOldPickingDist = (pickPos-rayFrom).length(); - - //very weak constraint for picking - p2p->m_setting.m_tau = 0.1f; - } - } - return true; - } - } - } - - } else - { - - if (m_pickConstraint && m_dynamicsWorld) - { - m_dynamicsWorld->removeConstraint(m_pickConstraint); - delete m_pickConstraint; - //printf("removed constraint %i",gPickingConstraintId); - m_pickConstraint = 0; - pickedBody->forceActivationState(ACTIVE_TAG); - pickedBody->setDeactivationTime( 0.f ); - - - if (pickedBody->getUserPointer()) - { - ///deal with controls in a special way - GL_DialogControl* ctrl = (GL_DialogControl*)pickedBody->getUserPointer(); - if (ctrl->getType()==GL_SLIDER_CONTROL) - { - GL_SliderControl* sliderControl = (GL_SliderControl*) ctrl; - - btSliderConstraint* slider = 0; - btTypedConstraint* constraint = sliderControl->getConstraint(); - if (constraint->getConstraintType() == SLIDER_CONSTRAINT_TYPE) - { - slider = (btSliderConstraint*)constraint; - } - if (slider) - { - btScalar linDepth = slider->getLinearPos(); - btScalar lowLim = slider->getLowerLinLimit(); - btScalar hiLim = slider->getUpperLinLimit(); - slider->setPoweredLinMotor(false); - if(linDepth <= lowLim) - { - slider->setLowerLinLimit(lowLim); - slider->setUpperLinLimit(lowLim); - } - else if(linDepth > hiLim) - { - slider->setLowerLinLimit(hiLim); - slider->setUpperLinLimit(hiLim); - } - else - { - slider->setLowerLinLimit(linDepth); - slider->setUpperLinLimit(linDepth); - } - } - } - - } - - pickedBody = 0; - - } - - - - } - - break; - - } - - default: - { - } - } - - return false; - -} - - - -btVector3 GL_DialogDynamicsWorld::getRayTo(int x,int y) -{ - float cameraDistance = m_screenHeight/2.f;//m_screenWidth/2;//1.f; - btVector3 cameraTargetPosition(0,0,0); - btVector3 cameraUp(0,-1,0); - - if (1)//_ortho) - { - - btScalar aspect; - btVector3 extents; - if (m_screenWidth> m_screenHeight) - { - - aspect = m_screenWidth / (btScalar)m_screenHeight; - extents.setValue(aspect * 1.0f, 1.0f,0); - } else - { - cameraDistance = m_screenWidth/2.f; - aspect = m_screenHeight / (btScalar)m_screenWidth; - extents.setValue(1.0f, aspect*1.f,0); - } - - - - extents *= cameraDistance; - btVector3 lower = cameraTargetPosition - extents; - btVector3 upper = cameraTargetPosition + extents; - - btScalar u = x / btScalar(m_screenWidth); - btScalar v = (m_screenHeight - y) / btScalar(m_screenHeight); - - btVector3 p(0,0,0); - p.setValue( - (1.0f - u) * lower.getX() + u * upper.getX(), - -((1.0f - v) * lower.getY() + v * upper.getY()), - cameraTargetPosition.getZ()); - return p; - } - - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = 2 * atanf (tanFov); - - btVector3 cameraPosition(0,0,-100); - btVector3 rayFrom = cameraPosition; - btVector3 rayForward = (cameraTargetPosition-cameraPosition); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - - btVector3 rightOffset; - btVector3 vertical = cameraUp; - - btVector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - btScalar aspect; - - if (m_screenWidth > m_screenHeight) - { - aspect = m_screenWidth / (btScalar)m_screenHeight; - - hor*=aspect; - } else - { - aspect = m_screenHeight / (btScalar)m_screenWidth; - vertical*=aspect; - } - - - btVector3 rayToCenter = rayFrom + rayForward; - btVector3 dHor = hor * 1.f/float(m_screenWidth); - btVector3 dVert = vertical * 1.f/float(m_screenHeight); - - - btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += btScalar(x) * dHor; - rayTo -= btScalar(y) * dVert; - //rayTo += y * dVert; - - return rayTo; -} - - - -void GL_DialogDynamicsWorld::mouseMotionFunc(int x,int y) -{ - - if (m_pickConstraint) - { - //move the constraint pivot - btPoint2PointConstraint* p2p = static_cast(m_pickConstraint); - if (p2p) - { - //keep it at the same picking distance - - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; - btVector3 oldPivotInB = p2p->getPivotInB(); - btVector3 newPivotB; - if (1)//_ortho) - { - newPivotB = oldPivotInB; - newPivotB.setX(newRayTo.getX()); - newPivotB.setY(newRayTo.getY()); - } else - { - //rayFrom = m_cameraPosition; - // btVector3 dir = newRayTo-rayFrom; - // dir.normalize(); - // dir *= gOldPickingDist; - - // newPivotB = rayFrom + dir; - } - - - - p2p->setPivotB(newPivotB); - } - - } - - btScalar dx, dy; - dx = btScalar(x) - m_mouseOldX; - dy = btScalar(y) - m_mouseOldY; - - - - - m_mouseOldX = x; - m_mouseOldY = y; -// updateCamera(); - - -} - - diff --git a/Demos/OpenGL/GL_DialogDynamicsWorld.h b/Demos/OpenGL/GL_DialogDynamicsWorld.h deleted file mode 100644 index 8292ae48a..000000000 --- a/Demos/OpenGL/GL_DialogDynamicsWorld.h +++ /dev/null @@ -1,91 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#ifndef GL_DIALOG_DYNAMICS_WORLD_H -#define GL_DIALOG_DYNAMICS_WORLD_H - -class btDiscreteDynamicsWorld; -class GL_DialogWindow; -class btDefaultCollisionConfiguration; -struct btDbvtBroadphase; -class btSequentialImpulseConstraintSolver; -class btCollisionDispatcher; -class btVoronoiSimplexSolver; -class btMinkowskiPenetrationDepthSolver; -class btCollisionObject; -class btTypedConstraint; -struct GL_ToggleControl; -struct GL_SliderControl; - - -#include "LinearMath/btAlignedObjectArray.h" -#include "LinearMath/btVector3.h" - -class GL_DialogDynamicsWorld -{ - - btDefaultCollisionConfiguration* m_collisionConfiguration; - btDbvtBroadphase* m_broadphase; - btSequentialImpulseConstraintSolver* m_constraintSolver; - btCollisionDispatcher* m_dispatcher; - btVoronoiSimplexSolver* m_simplexSolver; - btMinkowskiPenetrationDepthSolver* m_pdSolver; - - btDiscreteDynamicsWorld* m_dynamicsWorld; - - btCollisionObject* m_lowerBorder; - btCollisionObject* m_upperBorder; - btCollisionObject* m_leftBorder; - btCollisionObject* m_rightBorder; - - btAlignedObjectArray m_dialogs; - - int m_screenWidth; - int m_screenHeight; - - - ///for picking - int m_mouseOldX; - int m_mouseOldY; - int m_mouseButtons; - ///constraint for mouse picking - btTypedConstraint* m_pickConstraint; - - btVector3 getRayTo(int x,int y); - -public: - - GL_DialogDynamicsWorld(); - - virtual ~GL_DialogDynamicsWorld(); - - virtual void setScreenSize(int width, int height); - - virtual GL_DialogWindow* createDialog(int horPos,int vertPos,int dialogWidth,int dialogHeight, const char* dialogTitle ); - - GL_ToggleControl* createToggle(GL_DialogWindow* dialog, const char* toggleText); - - GL_SliderControl* createSlider(GL_DialogWindow* dialog, const char* sliderText, btScalar initialFraction = btScalar(0.5f)); - - virtual void draw(btScalar timeStep); - - virtual bool mouseFunc(int button, int state, int x, int y); - - virtual void mouseMotionFunc(int x,int y); - -}; - -#endif //GL_DIALOG_DYNAMICS_WORLD_H diff --git a/Demos/OpenGL/GL_DialogWindow.cpp b/Demos/OpenGL/GL_DialogWindow.cpp deleted file mode 100644 index b3ecae8fb..000000000 --- a/Demos/OpenGL/GL_DialogWindow.cpp +++ /dev/null @@ -1,358 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "GL_DialogWindow.h" - - - -#include "GLDebugFont.h" -#include "btBulletDynamicsCommon.h" - -#include // for sprintf() - -#define USE_ARRAYS 1 - - -GL_DialogWindow::GL_DialogWindow(int horPos,int vertPos,int dialogWidth,int dialogHeight, btCollisionObject* collisionObject,const char* dialogTitle) -:m_dialogHorPos(horPos), -m_dialogVertPos(vertPos), -m_dialogWidth(dialogWidth), -m_dialogHeight(dialogHeight), -m_screenWidth(0), -m_screenHeight(0), -m_dialogTitle(dialogTitle), -m_MaxClipPlanes(-1), -m_collisionObject(collisionObject) - -{ -} - -void GL_DialogWindow::setScreenSize(int width, int height) -{ - m_screenWidth = width; - m_screenHeight = height; -} -GL_DialogWindow::~GL_DialogWindow() -{ - -} - - - -static void drawLine(int _X0, int _Y0, int _X1, int _Y1, unsigned int _Color0, unsigned int _Color1) -{ - const GLfloat dx = +0.5f; - const GLfloat dy = -0.5f; - - GLfloat vVertices[] = {(GLfloat)_X0+dx,(GLfloat)_Y0+dy,(GLfloat)_X1+dx,(GLfloat)_Y1+dy}; - - bool antiAliased = false; - if( antiAliased ) - glEnable(GL_LINE_SMOOTH); - else - glDisable(GL_LINE_SMOOTH); - glDisable(GL_TEXTURE_2D); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - -#ifdef USE_ARRAYS - glColor4ub(GLubyte(_Color0>>16), GLubyte(_Color0>>8), GLubyte(_Color0), GLubyte(_Color0>>24)); - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_NORMAL_ARRAY); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - glLineWidth(2.0f); - glVertexPointer(2, GL_FLOAT, 0, vVertices); - glEnableClientState(GL_VERTEX_ARRAY); - glDrawArrays(GL_LINES,0,2); -#else - glLineWidth(13.0f); - glBegin(GL_LINES); - glColor4ub(GLubyte(_Color0>>16), GLubyte(_Color0>>8), GLubyte(_Color0), GLubyte(_Color0>>24)); - glVertex2f((GLfloat)_X0+dx, (GLfloat)_Y0+dy); - glColor4ub(GLubyte(_Color1>>16), GLubyte(_Color1>>8), GLubyte(_Color1), GLubyte(_Color1>>24)); - glVertex2f((GLfloat)_X1+dx, (GLfloat)_Y1+dy); - glEnd(); -#endif - glDisable(GL_LINE_SMOOTH); -} - -static void drawRect(int horStart, int vertStart, int horEnd, int vertEnd, unsigned int argbColor00,unsigned int argbColor10,unsigned int argbColor01,unsigned int argbColor11) -{ - float dx = 0; - float dy = 0; - glDisable(GL_TEXTURE_2D); - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); -#ifdef USE_ARRAYS - GLfloat verts[] ={ - 0.0f, 1.0f, 0.0f, - -1.0f, -1.0f, 0.0f, - 1.0f, -1.0f, 0.0f, - 0.f,0.f,0.f - }; - - glColor4ub(GLubyte(argbColor00>>16), GLubyte(argbColor00>>8), GLubyte(argbColor00), GLubyte(argbColor00>>24)); - verts[0] = (GLfloat)horStart+dx; verts[1] = (GLfloat)vertStart+dy; - verts[2] = (GLfloat)horEnd+dx; verts[3] = (GLfloat)vertStart+dy; - verts[4] = (GLfloat)horEnd+dx; verts[5] = (GLfloat)vertEnd+dy; - verts[6] = (GLfloat)horStart+dx; verts[7] = (GLfloat)vertEnd+dy; - - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_NORMAL_ARRAY); - glDisableClientState (GL_TEXTURE_COORD_ARRAY); - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(2, GL_FLOAT, 0, verts); - glDrawArrays(GL_TRIANGLE_FAN, 0, 4); - -#else - glBegin(GL_QUADS); - glColor4ub(GLubyte(argbColor00>>16), GLubyte(argbColor00>>8), GLubyte(argbColor00), GLubyte(argbColor00>>24)); - glVertex2f((GLfloat)horStart+dx, (GLfloat)vertStart+dy); - glColor4ub(GLubyte(argbColor10>>16), GLubyte(argbColor10>>8), GLubyte(argbColor10), GLubyte(argbColor10>>24)); - glVertex2f((GLfloat)horEnd+dx, (GLfloat)vertStart+dy); - glColor4ub(GLubyte(argbColor11>>16), GLubyte(argbColor11>>8), GLubyte(argbColor11), GLubyte(argbColor11>>24)); - glVertex2f((GLfloat)horEnd+dx, (GLfloat)vertEnd+dy); - glColor4ub(GLubyte(argbColor01>>16), GLubyte(argbColor01>>8), GLubyte(argbColor01), GLubyte(argbColor01>>24)); - glVertex2f((GLfloat)horStart+dx, (GLfloat)vertEnd+dy); - glEnd(); -#endif - -} - -void GL_DialogWindow::draw(btScalar deltaTime) -{ - if (!m_screenWidth || !m_screenHeight) - return; - - m_dialogHorPos = int(m_collisionObject->getWorldTransform().getOrigin()[0]+m_screenWidth/2.f-m_dialogWidth/2.f); - - m_dialogVertPos = int(m_collisionObject->getWorldTransform().getOrigin()[1]+m_screenHeight/2.f-m_dialogHeight/2.f); - saveOpenGLState(); - - //drawRect(m_dialogHorPos,m_dialogVertPos,m_dialogHorPos+m_dialogWidth,m_dialogVertPos+m_dialogHeight,0xa6000000); - unsigned int argbColor = 0x86000000; - int charHeight = 16; - int charWidth = 10; - - int titleHeight = charHeight + 2; - - drawRect(m_dialogHorPos,m_dialogVertPos,m_dialogHorPos+m_dialogWidth-1,m_dialogVertPos+titleHeight,argbColor,argbColor,argbColor,argbColor); - //const unsigned int COL0 = 0x50ffffff; - const unsigned int COL0 = 0xffffffff; - const unsigned int COL1 = 0xff1f1f1f; - - drawRect(m_dialogHorPos,m_dialogVertPos,m_dialogHorPos+m_dialogWidth-1,m_dialogVertPos+1,COL0,COL0,COL1,COL1); - - argbColor = 0x864f4f4f; - drawRect(m_dialogHorPos+1,m_dialogVertPos+titleHeight,m_dialogHorPos+m_dialogWidth-1,m_dialogVertPos+m_dialogHeight,argbColor,argbColor,argbColor,argbColor); - - - int y = m_dialogVertPos+charHeight+1; - glLineWidth(3); - drawLine(m_dialogHorPos, y, m_dialogHorPos+m_dialogWidth-1, y, 0x80afafaf,0x80afafaf); - - - - unsigned int clight = 0x5FFFFFFF; // bar contour - drawLine(m_dialogHorPos, m_dialogVertPos, m_dialogHorPos, m_dialogVertPos+m_dialogHeight, clight,clight); - drawLine(m_dialogHorPos, m_dialogVertPos, m_dialogHorPos+m_dialogWidth, m_dialogVertPos, clight,clight); - drawLine(m_dialogHorPos+m_dialogWidth, m_dialogVertPos, m_dialogHorPos+m_dialogWidth, m_dialogVertPos+m_dialogHeight, clight,clight); - drawLine(m_dialogHorPos, m_dialogVertPos+m_dialogHeight, m_dialogHorPos+m_dialogWidth, m_dialogVertPos+m_dialogHeight, clight,clight); - int dshad = 3; // bar shadows - - unsigned int cshad = (((0x40000000>>24)/2)<<24) & 0xFF000000; - drawRect(m_dialogHorPos, m_dialogVertPos+m_dialogHeight, m_dialogHorPos+dshad, m_dialogVertPos+m_dialogHeight+dshad, 0, cshad, 0, 0); - drawRect(m_dialogHorPos+dshad+1, m_dialogVertPos+m_dialogHeight, m_dialogHorPos+m_dialogWidth-1, m_dialogVertPos+m_dialogHeight+dshad, cshad, cshad, 0, 0); - drawRect(m_dialogHorPos+m_dialogWidth, m_dialogVertPos+m_dialogHeight, m_dialogHorPos+m_dialogWidth+dshad, m_dialogVertPos+m_dialogHeight+dshad, cshad, 0, 0, 0); - drawRect(m_dialogHorPos+m_dialogWidth, m_dialogVertPos, m_dialogHorPos+m_dialogWidth+dshad, m_dialogVertPos+dshad, 0, 0, cshad, 0); - drawRect(m_dialogHorPos+m_dialogWidth, m_dialogVertPos+dshad+1, m_dialogHorPos+m_dialogWidth+dshad, m_dialogVertPos+m_dialogHeight-1, cshad, 0, cshad, 0); - - int yInc = 16; - int curHorPos = m_dialogHorPos+5; - int curVertPos = m_dialogVertPos; - curVertPos += yInc; - - GLDebugDrawString(m_dialogHorPos+m_dialogWidth/2-((int(strlen(m_dialogTitle)/2))*charWidth),m_dialogVertPos+yInc ,m_dialogTitle); - curVertPos += 20; - - - for (int i=0;idraw(curHorPos,curVertPos,deltaTime); - } - - restoreOpenGLState(); -} - - -void GL_DialogWindow::saveOpenGLState() -{ -#if 0 - glPushAttrib(GL_ALL_ATTRIB_BITS); - glPushClientAttrib(GL_CLIENT_ALL_ATTRIB_BITS); -#endif - - glMatrixMode(GL_TEXTURE); - glPushMatrix(); - glLoadIdentity(); - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - GLint Vp[4]; - glGetIntegerv(GL_VIEWPORT, Vp); - - if( m_screenWidth>0 && m_screenHeight>0 ) - { - Vp[0] = 0; - Vp[1] = 0; - Vp[2] = m_screenWidth-1; - Vp[3] = m_screenHeight-1; - glViewport(Vp[0], Vp[1], Vp[2], Vp[3]); - } - glLoadIdentity(); - glOrtho(Vp[0], Vp[0]+Vp[2], Vp[1]+Vp[3], Vp[1], -1, 1); - glGetIntegerv(GL_VIEWPORT, m_ViewportInit); - glGetFloatv(GL_PROJECTION_MATRIX, m_ProjMatrixInit); - - glGetFloatv(GL_LINE_WIDTH, &m_PrevLineWidth); - // glDisable(GL_POLYGON_STIPPLE); - glLineWidth(1); - - glDisable(GL_LINE_SMOOTH); -// glDisable(GL_LINE_STIPPLE); - glDisable(GL_CULL_FACE); - glDisable(GL_DEPTH_TEST); - glDisable(GL_LIGHTING); - glEnable(GL_BLEND); - - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &m_PrevTexEnv); - glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); - glDisable(GL_TEXTURE_2D); - -} - -void GL_DialogWindow::restoreOpenGLState() -{ - glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, m_PrevTexEnv); - glLineWidth(m_PrevLineWidth); - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); - glMatrixMode(GL_TEXTURE); - glPopMatrix(); - glPopClientAttrib(); - glPopAttrib(); - -} - - -void GL_TextControl::draw(int& parentHorPos,int& parentVertPos,btScalar deltaTime) -{ - for (int i=0;igetWorldTransform().getOrigin()[0]+m_parentWindow->getScreenWidth()/2); - int controlVertPos = int(m_toggleBody->getWorldTransform().getOrigin()[1]+m_parentWindow->getScreenHeight()/2); - - int parentHorPos = controlHorPos-8; - int parentVertPos = controlVertPos-8; - - unsigned int grey = 0xff6f6f6f; - - drawRect(parentHorPos, parentVertPos, parentHorPos+16, parentVertPos+16, grey, grey, grey, grey); - - int borderSize = 2; - unsigned int white = 0xffefefef; - drawRect(parentHorPos+borderSize, parentVertPos+borderSize, parentHorPos+16-borderSize, parentVertPos+16-borderSize, white,white,white,white); - - - if (m_active) - { - //unsigned int red = 0xff8f0000; - // unsigned int white = 0xff8f0000; - unsigned int black = 0xff1f1f1f; - borderSize = 4; - drawRect(parentHorPos+borderSize, parentVertPos+borderSize, parentHorPos+16-borderSize, parentVertPos+16-borderSize, black,black,black,black); - } - - btVector3 rgb(1,1,1); - - GLDebugDrawStringInternal(parentHorPos2,parentVertPos+16,m_toggleText,rgb); - parentVertPos2+=20; - -} - -void GL_SliderControl::draw(int& parentHorPos2,int& parentVertPos2,btScalar deltaTime) -{ - - int controlHorPos = int(m_sliderBody->getWorldTransform().getOrigin()[0]+m_parentWindow->getScreenWidth()/2); - int controlVertPos = int(m_sliderBody->getWorldTransform().getOrigin()[1]+m_parentWindow->getScreenHeight()/2); - - int parentHorPos = controlHorPos-8; - int parentVertPos = controlVertPos-8; - - unsigned int grey = 0xff6f6f6f; - int borderSize = 2; - unsigned int white = 0xffefefef; - int sliderPosS = parentHorPos2+150+borderSize; - int sliderPosE = parentHorPos2+m_parentWindow->getDialogWidth()-40-borderSize; - int sliderPos = controlHorPos; - if(sliderPos < sliderPosS) sliderPos = sliderPosS; - if(sliderPos > sliderPosE) sliderPos = sliderPosE; -// drawRect(parentHorPos2+80+borderSize, parentVertPos2+borderSize, parentHorPos2+m_parentWindow->getDialogWidth()-16-borderSize, parentVertPos2+2-borderSize, white,white,white,white); - drawRect( sliderPosS, - parentVertPos2+borderSize, - sliderPosE, - parentVertPos2+2-borderSize, - white,white,white,white); - - drawRect(parentHorPos, parentVertPos, parentHorPos+16, parentVertPos+16, grey, grey, grey, grey); - - - - drawRect(parentHorPos+borderSize, parentVertPos+borderSize, parentHorPos+16-borderSize, parentVertPos+16-borderSize, white,white,white,white); - - - - btVector3 rgb(1,1,1); - -// btSliderConstraint* pSlider = (btSliderConstraint*)m_constraint; -// btScalar currPos = pSlider->getLinearPos(); -// if(currPos < pSlider->getLowerLinLimit()) currPos = pSlider->getLowerLinLimit(); -// if(currPos > pSlider->getUpperLinLimit()) currPos = pSlider->getUpperLinLimit(); -// m_fraction = (currPos - pSlider->getLowerLinLimit()) / (pSlider->getUpperLinLimit() - pSlider->getLowerLinLimit()); - m_fraction = (btScalar)(sliderPos - sliderPosS) / (btScalar)(sliderPosE - sliderPosS); - - char tmpBuf[256]; - sprintf(tmpBuf, "%s %3d%%", m_sliderText, (int)(m_fraction * 100.f)); - -// GLDebugDrawStringInternal(parentHorPos2,parentVertPos2+8,m_sliderText,rgb); - GLDebugDrawStringInternal(parentHorPos2,parentVertPos2+8, tmpBuf, rgb); - parentVertPos2+=20; - -} diff --git a/Demos/OpenGL/GL_DialogWindow.h b/Demos/OpenGL/GL_DialogWindow.h deleted file mode 100644 index 75cb04e75..000000000 --- a/Demos/OpenGL/GL_DialogWindow.h +++ /dev/null @@ -1,285 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef GL_DIALOG_WINDOW_H -#define GL_DIALOG_WINDOW_H - -class btCollisionObject; - - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#if (defined (TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || (defined (TARGET_IPHONE_SIMULATOR) && TARGET_IPHONE_SIMULATOR) -#import -#define glOrtho glOrthof -#else -#include -#include -#include -#endif -#else - - -#ifdef _WIN32 -#include -#include -#include -#else -#include -#include -#endif -#endif - - -#include "LinearMath/btScalar.h" -#include "LinearMath/btAlignedObjectArray.h" -class btTypedConstraint; - -class GL_DialogWindow; - -enum GL_DIALOG_CONTROL_TYPES -{ - GL_TEXT_CONTROL=1, - GL_TOGGLE_CONTROL, - GL_SLIDER_CONTROL, - GL_CONTROL_MAX_TYPE -}; - -class GL_DialogControl -{ -protected: - int m_type; - -public: - - virtual ~GL_DialogControl() - { - } - virtual void draw(int& parentHorPos,int& parentVertPos,btScalar deltaTime)=0; - - int getType() const - { - return m_type; - } -}; - -struct GL_TextControl : public GL_DialogControl -{ -public: - - btAlignedObjectArray m_textLines; - - GL_TextControl() - { - m_type = GL_TEXT_CONTROL; - } - - virtual ~GL_TextControl() {} - - virtual void draw(int& parentHorPos,int& parentVertPos,btScalar deltaTime); -}; - - -struct GL_ToggleControl : public GL_DialogControl -{ - btCollisionObject* m_toggleBody; - GL_DialogWindow* m_parentWindow; - - const char* m_toggleText; - -public: - - bool m_active; - - - GL_ToggleControl(const char* toggleText,btCollisionObject* toggleBody, GL_DialogWindow* parentWindow) - :m_toggleBody(toggleBody), - m_parentWindow(parentWindow), - m_toggleText(toggleText), - m_active(false) - { - m_type = GL_TOGGLE_CONTROL; - } - - virtual void draw(int& parentHorPos,int& parentVertPos,btScalar deltaTime); -}; - -struct GL_SliderControl : public GL_DialogControl -{ - btCollisionObject* m_sliderBody; - GL_DialogWindow* m_parentWindow; - btScalar m_lowerLimit; - btScalar m_upperLimit; - btTypedConstraint* m_constraint; - btScalar m_fraction; - - const char* m_sliderText; -public: - - GL_SliderControl(const char* sliderText,btCollisionObject* sliderBody, GL_DialogWindow* parentWindow, btScalar lowerLimit,btScalar upperLimit,btTypedConstraint* constaint) - :m_sliderBody(sliderBody), - m_parentWindow(parentWindow), - m_lowerLimit(lowerLimit), - m_upperLimit(upperLimit), - m_constraint(constaint), - m_sliderText(sliderText) - { - m_type = GL_SLIDER_CONTROL; - } - - virtual void draw(int& parentHorPos,int& parentVertPos,btScalar deltaTime); - - btScalar btGetFraction() { return m_fraction; } - - btScalar getLowerLimit() - { - return m_lowerLimit; - } - btScalar getUpperLimit() - { - return m_upperLimit; - } - btTypedConstraint* getConstraint() - { - return m_constraint; - } -}; - -///Very basic OpenGL Graphical Userinterface Window with text, toggle, slider control -class GL_DialogWindow -{ - - int m_dialogHorPos; - int m_dialogVertPos; - int m_dialogWidth; - int m_dialogHeight; - - int m_screenWidth; - int m_screenHeight; - - const char* m_dialogTitle; - - //saved OpenGL settings - GLfloat m_PrevLineWidth; - GLint m_PrevTexEnv; - GLint m_PrevPolygonMode[2]; - GLint m_MaxClipPlanes; - GLint m_PrevTexture; - GLint m_PrevArrayBufferARB; - GLint m_PrevElementArrayBufferARB; - GLboolean m_PrevVertexProgramARB; - GLboolean m_PrevFragmentProgramARB; - GLuint m_PrevProgramObjectARB; - GLboolean m_PrevTexture3D; - GLboolean m_PrevActiveTexture1D[32]; - GLboolean m_PrevActiveTexture2D[32]; - GLboolean m_PrevActiveTexture3D[32]; - GLint m_PrevActiveTextureARB; - bool m_SupportTexRect; - GLboolean m_PrevTexRectARB; - GLint m_PrevBlendEquation; - GLint m_PrevBlendEquationRGB; - GLint m_PrevBlendEquationAlpha; - GLint m_PrevBlendSrcRGB; - GLint m_PrevBlendDstRGB; - GLint m_PrevBlendSrcAlpha; - GLint m_PrevBlendDstAlpha; - GLint m_ViewportInit[4]; - GLfloat m_ProjMatrixInit[16]; - - btCollisionObject* m_collisionObject; - - btAlignedObjectArray m_controls; - -protected: - - - void saveOpenGLState(); - void restoreOpenGLState(); - -// void drawLine(int _X0, int _Y0, int _X1, int _Y1, unsigned int _Color0, unsigned int _Color1, bool antiAliased); -// void drawRect(int horStart, int vertStart, int horEnd, int vertEnd, unsigned int argbColor00,unsigned int argbColor10,unsigned int argbColor01,unsigned int argbColor11); - -public: - - - GL_DialogWindow(int horPos,int vertPos,int dialogWidth,int dialogHeight,btCollisionObject* colObject, const char* dialogTitle); - - virtual ~GL_DialogWindow(); - - void draw(btScalar deltaTime); - - void setScreenSize(int width, int height); - - void setStartPosition(int dialogHorPos,int dialogVertPos); - - void addControl(GL_DialogControl* control) - { - m_controls.push_back(control); - } - - void removeControl(GL_DialogControl* control) - { - m_controls.remove(control); - } - - btCollisionObject* getCollisionObject() - { - return m_collisionObject; - } - - int getDialogHorPos() const - { - return m_dialogHorPos; - } - int getDialogVertPos() const - { - return m_dialogVertPos; - } - int getDialogWidth() const - { - return m_dialogWidth; - } - - int getDialogHeight() const - { - return m_dialogHeight; - } - int getScreenWidth() const - { - return m_screenWidth; - } - int getScreenHeight() const - { - return m_screenHeight; - } - - int getNumControls() const - { - return m_controls.size(); - } - - const GL_DialogControl* getControl(int index) const - { - return m_controls[index]; - } - GL_DialogControl* getControl(int index) - { - return m_controls[index]; - } -}; - -#endif //GL_DIALOG_WINDOW_H diff --git a/Demos/OpenGL/GL_Simplex1to4.cpp b/Demos/OpenGL/GL_Simplex1to4.cpp deleted file mode 100644 index 440f41d01..000000000 --- a/Demos/OpenGL/GL_Simplex1to4.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#include "GL_Simplex1to4.h" -#include "BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h" -#include "GL_ShapeDrawer.h" -#ifdef _WIN32 -#include -#endif - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#else -#include -#endif -#include "GlutStuff.h" -#include "LinearMath/btTransform.h" - -GL_Simplex1to4::GL_Simplex1to4() -:m_simplexSolver(0) -{ -} - -GL_Simplex1to4::~GL_Simplex1to4() -{ -} - -/// -/// Debugging method calcClosest calculates the closest point to the origin, using m_simplexSolver -/// -void GL_Simplex1to4::calcClosest(btScalar* m) -{ - btTransform tr; - tr.setFromOpenGLMatrix(m); - - - - GL_ShapeDrawer::drawCoordSystem(); - - if (m_simplexSolver) - { - m_simplexSolver->reset(); - bool res; - - btVector3 v; - - for (int i=0;iaddVertex(v,v,btVector3(0.f,0.f,0.f)); - res = m_simplexSolver->closest(v); - } - - //draw v? - glDisable(GL_LIGHTING); - glBegin(GL_LINES); - btglColor3(1.f, 0.f, 0.f); - btglVertex3(0.f, 0.f, 0.f); - btglVertex3(v.x(),v.y(),v.z()); - glEnd(); - - glEnable(GL_LIGHTING); - - - } - -} diff --git a/Demos/OpenGL/GL_Simplex1to4.h b/Demos/OpenGL/GL_Simplex1to4.h deleted file mode 100644 index e256aab82..000000000 --- a/Demos/OpenGL/GL_Simplex1to4.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef GL_SIMPLEX_1TO4_H -#define GL_SIMPLEX_1TO4_H - -#include "BulletCollision/CollisionShapes/btTetrahedronShape.h" - -#include "BulletCollision/NarrowPhaseCollision/btSimplexSolverInterface.h" - -///GL_Simplex1to4 is a class to debug a Simplex Solver with 1 to 4 points. -///Can be used by GJK. -class GL_Simplex1to4 : public btBU_Simplex1to4 -{ - btSimplexSolverInterface* m_simplexSolver; - - public: - - GL_Simplex1to4(); - virtual ~GL_Simplex1to4(); - - void calcClosest(btScalar* m); - - void setSimplexSolver(btSimplexSolverInterface* simplexSolver) { - m_simplexSolver = simplexSolver; - } - -}; - -#endif //GL_SIMPLEX_1TO4_H diff --git a/Demos/OpenGL/GlutDemoApplication.cpp b/Demos/OpenGL/GlutDemoApplication.cpp deleted file mode 100644 index 0ceaede76..000000000 --- a/Demos/OpenGL/GlutDemoApplication.cpp +++ /dev/null @@ -1,87 +0,0 @@ - -#ifndef _WINDOWS - -#include "GlutDemoApplication.h" - -#include "GlutStuff.h" - -#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h" -#include "BulletDynamics/Dynamics/btRigidBody.h" - -void GlutDemoApplication::updateModifierKeys() -{ - m_modifierKeys = 0; - if (glutGetModifiers() & GLUT_ACTIVE_ALT) - m_modifierKeys |= BT_ACTIVE_ALT; - - if (glutGetModifiers() & GLUT_ACTIVE_CTRL) - m_modifierKeys |= BT_ACTIVE_CTRL; - - if (glutGetModifiers() & GLUT_ACTIVE_SHIFT) - m_modifierKeys |= BT_ACTIVE_SHIFT; -} - -void GlutDemoApplication::specialKeyboard(int key, int x, int y) -{ - (void)x; - (void)y; - - switch (key) - { - case GLUT_KEY_F1: - { - - break; - } - - case GLUT_KEY_F2: - { - - break; - } - - - case GLUT_KEY_END: - { - int numObj = getDynamicsWorld()->getNumCollisionObjects(); - if (numObj) - { - btCollisionObject* obj = getDynamicsWorld()->getCollisionObjectArray()[numObj-1]; - - getDynamicsWorld()->removeCollisionObject(obj); - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - delete obj; - - - } - break; - } - case GLUT_KEY_LEFT : stepLeft(); break; - case GLUT_KEY_RIGHT : stepRight(); break; - case GLUT_KEY_UP : stepFront(); break; - case GLUT_KEY_DOWN : stepBack(); break; - case GLUT_KEY_PAGE_UP : zoomIn(); break; - case GLUT_KEY_PAGE_DOWN : zoomOut(); break; - case GLUT_KEY_HOME : toggleIdle(); break; - default: - // std::cout << "unused (special) key : " << key << std::endl; - break; - } - - glutPostRedisplay(); - -} - -void GlutDemoApplication::swapBuffers() -{ - glutSwapBuffers(); - -} - -#endif //_WINDOWS - - diff --git a/Demos/OpenGL/GlutDemoApplication.h b/Demos/OpenGL/GlutDemoApplication.h deleted file mode 100644 index 9d3a72178..000000000 --- a/Demos/OpenGL/GlutDemoApplication.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#ifndef GLUT_DEMO_APPLICATION_H -#define GLUT_DEMO_APPLICATION_H - -#include "DemoApplication.h" - -ATTRIBUTE_ALIGNED16(class) GlutDemoApplication : public DemoApplication -{ -public: - - BT_DECLARE_ALIGNED_ALLOCATOR(); - - void specialKeyboard(int key, int x, int y); - - virtual void swapBuffers(); - - virtual void updateModifierKeys(); - -}; -#endif //GLUT_DEMO_APPLICATION_H - diff --git a/Demos/OpenGL/GlutStuff.cpp b/Demos/OpenGL/GlutStuff.cpp deleted file mode 100644 index 397303b16..000000000 --- a/Demos/OpenGL/GlutStuff.cpp +++ /dev/null @@ -1,134 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef DONT_USE_GLUT - -#include "DemoApplication.h" - -#if !defined(_WIN32) && !defined(__APPLE__) -//assume linux workaround -//#include -#endif - -//glut is C code, this global gDemoApplication links glut to the C++ demo -static DemoApplication* gDemoApplication = 0; - - -#include "GlutStuff.h" - -static void glutKeyboardCallback(unsigned char key, int x, int y) -{ - gDemoApplication->keyboardCallback(key,x,y); -} - -static void glutKeyboardUpCallback(unsigned char key, int x, int y) -{ - gDemoApplication->keyboardUpCallback(key,x,y); -} - -static void glutSpecialKeyboardCallback(int key, int x, int y) -{ - gDemoApplication->specialKeyboard(key,x,y); -} - -static void glutSpecialKeyboardUpCallback(int key, int x, int y) -{ - gDemoApplication->specialKeyboardUp(key,x,y); -} - - -static void glutReshapeCallback(int w, int h) -{ - gDemoApplication->reshape(w,h); -} - -static void glutMoveAndDisplayCallback() -{ - gDemoApplication->moveAndDisplay(); -} - -static void glutMouseFuncCallback(int button, int state, int x, int y) -{ - gDemoApplication->mouseFunc(button,state,x,y); -} - - -static void glutMotionFuncCallback(int x,int y) -{ - gDemoApplication->mouseMotionFunc(x,y); -} - - -static void glutDisplayCallback(void) -{ - gDemoApplication->displayCallback(); -} - -//#include - -int glutmain(int argc, char **argv,int width,int height,const char* title,DemoApplication* demoApp) { - - gDemoApplication = demoApp; - -#if !defined(_WIN32) && !defined(__APPLE__) -//Access pthreads as a workaround for a bug in Linux/Ubuntu -//See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642 - -// int i=pthread_getconcurrency(); - // printf("pthread_getconcurrency()=%d\n",i); -#endif - - glutInit(&argc, argv); - glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL); - glutInitWindowPosition(width/2, height/2); - glutInitWindowSize(width, height); - glutCreateWindow(title); -#ifdef BT_USE_FREEGLUT - glutSetOption (GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS); -#endif - - gDemoApplication->myinit(); - - glutKeyboardFunc(glutKeyboardCallback); - glutKeyboardUpFunc(glutKeyboardUpCallback); - glutSpecialFunc(glutSpecialKeyboardCallback); - glutSpecialUpFunc(glutSpecialKeyboardUpCallback); - - glutReshapeFunc(glutReshapeCallback); - //createMenu(); - glutIdleFunc(glutMoveAndDisplayCallback); - glutMouseFunc(glutMouseFuncCallback); - glutPassiveMotionFunc(glutMotionFuncCallback); - glutMotionFunc(glutMotionFuncCallback); - glutDisplayFunc( glutDisplayCallback ); - - glutMoveAndDisplayCallback(); - -//enable vsync to avoid tearing on Apple (todo: for Windows) - -#if defined(__APPLE__) && !defined (VMDMESA) -int swap_interval = 1; -CGLContextObj cgl_context = CGLGetCurrentContext(); -CGLSetParameter(cgl_context, kCGLCPSwapInterval, &swap_interval); -#endif - - - - glutMainLoop(); - return 0; -} - - -#endif //DONT_USE_GLUT diff --git a/Demos/OpenGL/GlutStuff.h b/Demos/OpenGL/GlutStuff.h deleted file mode 100644 index 68b840c06..000000000 --- a/Demos/OpenGL/GlutStuff.h +++ /dev/null @@ -1,94 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef GLUT_STUFF_H -#define GLUT_STUFF_H - -#ifdef DONT_USE_GLUT -#include "OpenGLWindow/OpenGLInclude.h" -#define BT_ACTIVE_ALT 8192 -#define BT_ACTIVE_SHIFT 8193 -#define BT_ACTIVE_CTRL 8194 -#else //DONT_USE_GLUT - -//think different -#if defined(__APPLE__) && !defined (VMDMESA) -#include -#include -#include -#include -#else//(__APPLE__) && !defined (VMDMESA) - - -#ifdef _WINDOWS - #include - #include - #include -#else //_WINDOWS - -#ifdef _WIN32 - #include -#endif//_WIN32 -#include -#include - -#endif//_WINDOWS -#endif //(__APPLE__) && !defined (VMDMESA) - -#ifdef _WINDOWS - #define BT_ACTIVE_ALT VK_LMENU - #define BT_ACTIVE_SHIFT VK_LSHIFT - #define BT_ACTIVE_CTRL VK_LCONTROL -#else //_WINDOWS - #define BT_KEY_K 'k' - #define BT_KEY_LEFT GLUT_KEY_LEFT - #define BT_KEY_RIGHT GLUT_KEY_RIGHT - #define BT_KEY_UP GLUT_KEY_UP - #define BT_KEY_DOWN GLUT_KEY_DOWN - #define BT_KEY_F1 GLUT_KEY_F1 - #define BT_KEY_F2 GLUT_KEY_F2 - #define BT_KEY_F3 GLUT_KEY_F3 - #define BT_KEY_F4 GLUT_KEY_F4 - #define BT_KEY_F5 GLUT_KEY_F5 - #define BT_KEY_PAGEUP GLUT_KEY_PAGE_UP - #define BT_KEY_PAGEDOWN GLUT_KEY_PAGE_DOWN - #define BT_KEY_END GLUT_KEY_END - #define BT_KEY_HOME GLUT_KEY_HOME - #define BT_ACTIVE_ALT GLUT_ACTIVE_ALT - #define BT_ACTIVE_CTRL GLUT_ACTIVE_ALT - #define BT_ACTIVE_SHIFT GLUT_ACTIVE_SHIFT -#endif -#if BT_USE_FREEGLUT -#include "GL/freeglut_ext.h" //to be able to return from glutMainLoop() -#endif -#endif // DONT_USE_GLUT - - -class DemoApplication; - -int glutmain(int argc, char **argv,int width,int height,const char* title,DemoApplication* demoApp); - -#if defined(BT_USE_DOUBLE_PRECISION) -#define btglLoadMatrix glLoadMatrixd -#define btglMultMatrix glMultMatrixd -#define btglColor3 glColor3d -#define btglVertex3 glVertex3d -#else -#define btglLoadMatrix glLoadMatrixf -#define btglMultMatrix glMultMatrixf -#define btglColor3 glColor3f -#define btglVertex3 glVertex3d -#endif - -#endif //GLUT_STUFF_H diff --git a/Demos/OpenGL/Makefile.am b/Demos/OpenGL/Makefile.am deleted file mode 100644 index 11eeed4d5..000000000 --- a/Demos/OpenGL/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -noinst_LIBRARIES = libbulletopenglsupport.a - -libbulletopenglsupport_a_SOURCES = \ - DemoApplication.cpp GLDebugDrawer.h GL_Simplex1to4.cpp \ - GLDebugFont.cpp GLDebugFont.h GlutDemoApplication.cpp GlutDemoApplication.h \ - GlutStuff.h \ - DemoApplication.h GL_ShapeDrawer.cpp \ - GL_Simplex1to4.h RenderTexture.cpp \ - DebugCastResult.h GLDebugDrawer.cpp \ - GL_ShapeDrawer.h GlutStuff.cpp RenderTexture.h - -INCLUDES=-I../../src diff --git a/Demos/OpenGL/RenderTexture.cpp b/Demos/OpenGL/RenderTexture.cpp deleted file mode 100644 index 2c8b88b82..000000000 --- a/Demos/OpenGL/RenderTexture.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "RenderTexture.h" -#include - - -renderTexture::renderTexture(int width,int height) -:m_height(height),m_width(width) -{ - m_buffer = new unsigned char[m_width*m_height*4]; - - //clear screen - memset(m_buffer,0,m_width*m_height*4); - - //clear screen version 2 - for (int x=0;x>=1; - y++; - } - x++; - } - //xx+=16; - xx+=10; - } -} - -renderTexture::~renderTexture() -{ - delete [] m_buffer; -} - - - diff --git a/Demos/OpenGL/RenderTexture.h b/Demos/OpenGL/RenderTexture.h deleted file mode 100644 index 1153018a1..000000000 --- a/Demos/OpenGL/RenderTexture.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef RENDER_TEXTURE_H -#define RENDER_TEXTURE_H - -#include "LinearMath/btVector3.h" -#include "GLDebugFont.h" - -/// -///renderTexture provides a software-render context (setpixel/printf) -/// -class renderTexture -{ - int m_height; - int m_width; - unsigned char* m_buffer; - -public: - - renderTexture(int width,int height); - ~renderTexture(); - - ///rgba input is in range [0..1] for each component - inline void setPixel(int x,int y,const btVector4& rgba) - { - btAssert(x>=0); - btAssert(y>=0); - btAssert(x -#include - - -#include "DemoApplication.h" - -#include "GLDebugDrawer.h" -#include "GLDebugFont.h" - -#include "BulletDynamics/Dynamics/btDynamicsWorld.h" - -/// This Win32AppMain is shared code between all demos. -/// The actual demo, derived from DemoApplication is created using 'createDemo', in a separate .cpp file -DemoApplication* gDemoApplication = 0; -DemoApplication* createDemo(); - - -// Function Declarations - -LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); -void EnableOpenGL(HWND hWnd, HDC * hDC, HGLRC * hRC); -void DisableOpenGL(HWND hWnd, HDC hDC, HGLRC hRC); -static bool sOpenGLInitialized = false; -static int sWidth = 0; -static int sHeight =0; -static int quitRequest = 0; - -// WinMain - - -#ifdef USE_AMD_OPENCL - - - -#include "btOpenCLUtils.h" - -#include - -cl_context g_cxMainContext; -cl_device_id g_cdDevice; -cl_command_queue g_cqCommandQue; - - -// Returns true if OpenCL is initialized properly, false otherwise. -bool initCL( void* glCtx, void* glDC ) -{ - const char* vendorSDK = btOpenCLUtils::getSdkVendorName(); - printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK); - - int ciErrNum = 0; - -#ifdef BT_USE_CLEW - ciErrNum = clewInit( "OpenCL.dll" ); - if ( ciErrNum != CLEW_SUCCESS ) { - return false; - } -#endif - -#if defined(CL_PLATFORM_MINI_CL) - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#elif defined(CL_PLATFORM_AMD) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#elif defined(CL_PLATFORM_NVIDIA) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#else - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#endif - - g_cxMainContext = btOpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - int numDev = btOpenCLUtils::getNumDevices(g_cxMainContext); - if (!numDev) - return false; - - g_cdDevice = btOpenCLUtils::getDevice(g_cxMainContext,0); - - btOpenCLDeviceInfo clInfo; - btOpenCLUtils::getDeviceInfo(g_cdDevice,clInfo); - btOpenCLUtils::printDeviceInfo(g_cdDevice); - - // create a command-queue - g_cqCommandQue = clCreateCommandQueue(g_cxMainContext, g_cdDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - return true; -} - -#endif //#ifdef USE_AMD_OPENCL - - - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - LPSTR lpCmdLine, int iCmdShow) -{ - WNDCLASS wc; - HWND hWnd; - HDC hDC; - HGLRC hRC; - MSG msg; - BOOL quit = FALSE; - float theta = 0.0f; - - gDemoApplication = createDemo(); - -#ifdef USE_AMD_OPENCL - - bool initialized = initCL(0,0); - btAssert(initialized); -#endif //USE_AMD_OPENCL - - // register window class - wc.style = CS_OWNDC; - wc.lpfnWndProc = WndProc; - wc.cbClsExtra = 0; - wc.cbWndExtra = 0; - wc.hInstance = hInstance; - wc.hIcon = LoadIcon( NULL, IDI_APPLICATION ); - wc.hCursor = LoadCursor( NULL, IDC_ARROW ); - wc.hbrBackground = (HBRUSH)GetStockObject( BLACK_BRUSH ); - wc.lpszMenuName = NULL; - wc.lpszClassName = "BulletPhysics"; - RegisterClass( &wc ); - - // create main window - hWnd = CreateWindow( - "BulletPhysics", "Bullet Physics Sample. http://bulletphysics.org", - WS_CAPTION | WS_VISIBLE | WS_OVERLAPPEDWINDOW, -// 0, 0, 640, 480, - 0, 0, 1024, 768, - NULL, NULL, hInstance, NULL ); - - // enable OpenGL for the window - EnableOpenGL( hWnd, &hDC, &hRC ); - - - GLDebugDrawer debugDraw; - gDemoApplication->myinit(); - //gDemoApplication->reshape(1024, 768); - gDemoApplication->initPhysics(); - if (gDemoApplication->getDynamicsWorld()) - gDemoApplication->getDynamicsWorld()->setDebugDrawer(&debugDraw); - - gDemoApplication->reshape(sWidth,sHeight); - - // program main loop - while ( !quit ) - { - - // check for messages - if ( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) - { - - // handle or dispatch messages - if ( msg.message == WM_QUIT ) - { - quit = TRUE; - } - else - { - TranslateMessage( &msg ); - DispatchMessage( &msg ); - } - -// gDemoApplication->displayCallback(); - - - }; - - // OpenGL animation code goes here - - glClearColor( .7f, 0.7f, 0.7f, 1.f ); - - gDemoApplication->moveAndDisplay(); - - - SwapBuffers( hDC ); - - theta += 1.0f; - - - } - - - - // shutdown OpenGL - DisableOpenGL( hWnd, hDC, hRC ); - - // destroy the window explicitly - DestroyWindow( hWnd ); - - delete gDemoApplication; - - return msg.wParam; - -} - -// Window Procedure - -LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) -{ - - - - switch (message) - { - - case WM_SYSKEYDOWN: - { - if (lParam & 1<<29) - { - gDemoApplication->m_modifierKeys = VK_LMENU; - } - break; - } - case WM_SYSKEYUP: - { - if (lParam & 1<<29) - { - gDemoApplication->m_modifierKeys = VK_LMENU; - } else - { - gDemoApplication->m_modifierKeys = 0; - } - - break; - } - - - case WM_SIZE: // Size Action Has Taken Place - - switch (wParam) // Evaluate Size Action - { - case SIZE_MINIMIZED: // Was Window Minimized? - return 0; // Return - - case SIZE_MAXIMIZED: // Was Window Maximized? - sWidth = LOWORD (lParam); - sHeight = HIWORD (lParam); - if (sOpenGLInitialized) - { - gDemoApplication->reshape(sWidth,sHeight); - } - return 0; // Return - - case SIZE_RESTORED: // Was Window Restored? - sWidth = LOWORD (lParam); - sHeight = HIWORD (lParam); - if (sOpenGLInitialized) - { - gDemoApplication->reshape(sWidth,sHeight); - } - return 0; // Return - } - break; - - case WM_CREATE: - return 0; - - case WM_MBUTTONUP: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(1,1,xPos,yPos); - break; - } - case WM_MBUTTONDOWN: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(1,0,xPos,yPos); - break; - } - - case WM_LBUTTONUP: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(0,1,xPos,yPos); - break; - } - case 0x020A://WM_MOUSEWHEEL: - { - - int zDelta = (short)HIWORD(wParam); - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - if (zDelta>0) - gDemoApplication->zoomIn(); - else - gDemoApplication->zoomOut(); - break; - } - - case WM_MOUSEMOVE: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseMotionFunc(xPos,yPos); - break; - } - case WM_RBUTTONUP: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(2,1,xPos,yPos); - break; - } - case WM_RBUTTONDOWN: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(2,0,xPos,yPos); - break; - } - case WM_LBUTTONDOWN: - { - int xPos = LOWORD(lParam); - int yPos = HIWORD(lParam); - gDemoApplication->mouseFunc(0,0,xPos,yPos); - break; - } -/*#define WM_LBUTTONUP 0x0202 -#define WM_LBUTTONDBLCLK 0x0203 -#define WM_RBUTTONDOWN 0x0204 -#define WM_RBUTTONUP 0x0205 -#define WM_RBUTTONDBLCLK 0x0206 -#define WM_MBUTTONDOWN 0x0207 -#define WM_MBUTTONUP 0x0208 -#define WM_MBUTTONDBLCLK 0x0209 -*/ - - - - case WM_CLOSE: - PostQuitMessage( 0 ); - return 0; - - case WM_DESTROY: - return 0; - - case WM_KEYUP: - switch ( wParam ) - { - - case VK_PRIOR: - case VK_NEXT: - case VK_END: - case VK_HOME: - case VK_LEFT: - case VK_UP: - case VK_RIGHT: - case VK_DOWN: - { - if (gDemoApplication) - gDemoApplication->specialKeyboardUp(wParam,0,0); - return 0; - } - default: - { - gDemoApplication->keyboardUpCallback(tolower(wParam),0,0); - } - return DefWindowProc( hWnd, message, wParam, lParam ); - } - - case WM_KEYDOWN: - printf("bla\n"); - switch ( wParam ) - { - case VK_CONTROL: - case VK_PRIOR: - case VK_NEXT: - case VK_END: - case VK_HOME: - case VK_LEFT: - case VK_UP: - case VK_RIGHT: - case VK_DOWN: - { - if (gDemoApplication) - gDemoApplication->specialKeyboard(wParam,0,0); - break; - } - - case ' ': - { - if (gDemoApplication) - gDemoApplication->clientResetScene(); - break; - } - case 'Q': - case VK_ESCAPE: - { - quitRequest = 1; - PostQuitMessage(0); - } - return 0; - - } - return 0; - - case WM_CHAR: - if (!quitRequest) - gDemoApplication->keyboardCallback(wParam,0,0); - break; - - default: - return DefWindowProc( hWnd, message, wParam, lParam ); - - } - return 0; -} - -// Enable OpenGL - -void EnableOpenGL(HWND hWnd, HDC * hDC, HGLRC * hRC) -{ - PIXELFORMATDESCRIPTOR pfd; - int format; - - // get the device context (DC) - *hDC = GetDC( hWnd ); - - // set the pixel format for the DC - ZeroMemory( &pfd, sizeof( pfd ) ); - pfd.nSize = sizeof( pfd ); - pfd.nVersion = 1; - pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; - pfd.iPixelType = PFD_TYPE_RGBA; - pfd.cColorBits = 24; - pfd.cDepthBits = 16; - pfd.cStencilBits = 1; - pfd.iLayerType = PFD_MAIN_PLANE; - format = ChoosePixelFormat( *hDC, &pfd ); - SetPixelFormat( *hDC, format, &pfd ); - - // create and enable the render context (RC) - *hRC = wglCreateContext( *hDC ); - wglMakeCurrent( *hDC, *hRC ); - sOpenGLInitialized = true; - - -} - -// Disable OpenGL - -void DisableOpenGL(HWND hWnd, HDC hDC, HGLRC hRC) -{ - sOpenGLInitialized = false; - - wglMakeCurrent( NULL, NULL ); - wglDeleteContext( hRC ); - ReleaseDC( hWnd, hDC ); -} - -#endif //_WINDOWS diff --git a/Demos/OpenGL/Win32DemoApplication.cpp b/Demos/OpenGL/Win32DemoApplication.cpp deleted file mode 100644 index f959cbf4f..000000000 --- a/Demos/OpenGL/Win32DemoApplication.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifdef _WINDOWS - -#include "Win32DemoApplication.h" - - - - -#if 0 -void Win32DemoApplication::renderme() -{ -} -void Win32DemoApplication::setTexturing(bool useTexture) -{ -} - -void Win32DemoApplication::setShadows(bool useShadows) -{ -} - -void Win32DemoApplication::setCameraDistance(float camDist) -{ -} -void Win32DemoApplication::clientResetScene() -{ - -} -#endif - -void Win32DemoApplication::updateModifierKeys() -{ - //not yet -} - - - -void Win32DemoApplication::specialKeyboard(int key, int x, int y) -{ - (void)x; - (void)y; - - switch (key) - { - case VK_LEFT : stepLeft(); break; - case VK_RIGHT : stepRight(); break; - case VK_UP : stepFront(); break; - case VK_DOWN : stepBack(); break; - -// case GLUT_KEY_PAGE_UP : zoomIn(); break; -// case GLUT_KEY_PAGE_DOWN : zoomOut(); break; -// case GLUT_KEY_HOME : toggleIdle(); break; - - default: - // std::cout << "unused (special) key : " << key << std::endl; - break; - } - -} - -void Win32DemoApplication::swapBuffers() -{ -} - -#endif - diff --git a/Demos/OpenGL/Win32DemoApplication.h b/Demos/OpenGL/Win32DemoApplication.h deleted file mode 100644 index af3eec90e..000000000 --- a/Demos/OpenGL/Win32DemoApplication.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -#ifndef WIN32_DEMO_APPLICATION_H -#define WIN32_DEMO_APPLICATION_H - - -#include "DemoApplication.h" - -ATTRIBUTE_ALIGNED16(class) Win32DemoApplication : public DemoApplication -{ -protected: - - -public: - - BT_DECLARE_ALIGNED_ALLOCATOR(); - - virtual void swapBuffers(); - - void specialKeyboard(int key, int x, int y); - - virtual void updateModifierKeys(); - - -}; - -#endif //WIN32_DEMO_APPLICATION_H \ No newline at end of file diff --git a/Demos/OpenGL/premake4.lua b/Demos/OpenGL/premake4.lua deleted file mode 100644 index a1c15e70e..000000000 --- a/Demos/OpenGL/premake4.lua +++ /dev/null @@ -1,18 +0,0 @@ - project "OpenGLSupport" - - kind "StaticLib" - targetdir "../../lib" - includedirs { - ".", - "../../src" - } - configuration {"Windows"} - includedirs { - "../Glut" - } - configuration{} - - files { - "**.cpp", - "**.h" - } diff --git a/Demos/OpenPL_Demo/CApi.cpp b/Demos/OpenPL_Demo/CApi.cpp deleted file mode 100644 index 171c7700b..000000000 --- a/Demos/OpenPL_Demo/CApi.cpp +++ /dev/null @@ -1,159 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/* - Draft high-level generic physics C-API. For low-level access, use the physics SDK native API's. - Work in progress, functionality will be added on demand. - - If possible, use the richer Bullet C++ API, by including -*/ - -#include "Bullet-C-Api.h" -#include "btBulletDynamicsCommon.h" - -/* - Create and Delete a Physics SDK -*/ - -plPhysicsSdkHandle plNewBulletSdk() -{ - return 0; -} - -void plDeletePhysicsSdk(plPhysicsSdkHandle physicsSdk) -{ - -} - -/* Dynamics World */ -plDynamicsWorldHandle plCreateDynamicsWorld(plPhysicsSdkHandle physicsSdk) -{ - return (plDynamicsWorldHandle) new btDiscreteDynamicsWorld; -} -void plDeleteDynamicsWorld(plDynamicsWorldHandle world) -{ - btDynamicsWorld* dynamicsWorld = reinterpret_cast< btDynamicsWorld* >(world); - delete dynamicsWorld; -} - -void plStepSimulation(plDynamicsWorldHandle world, plReal timeStep) -{ - btDynamicsWorld* dynamicsWorld = reinterpret_cast< btDynamicsWorld* >(world); - assert(dynamicsWorld); - dynamicsWorld->stepSimulation(timeStep); -} - -void plAddRigidBody(plDynamicsWorldHandle world, plRigidBodyHandle object) -{ - btDynamicsWorld* dynamicsWorld = reinterpret_cast< btDynamicsWorld* >(world); - assert(dynamicsWorld); - btRigidBody* body = reinterpret_cast< btRigidBody* >(object); - assert(body); - - dynamicsWorld->addRigidBody(body); -} - -void plRemoveRigidBody(plDynamicsWorldHandle world, plRigidBodyHandle object) -{ - btDynamicsWorld* dynamicsWorld = reinterpret_cast< btDynamicsWorld* >(world); - assert(dynamicsWorld); - btRigidBody* body = reinterpret_cast< btRigidBody* >(object); - assert(body); - - dynamicsWorld->removeRigidBody(body); -} - -/* Rigid Body */ - -plRigidBodyHandle plCreateRigidBody( void* user_data, float mass, plCollisionShapeHandle cshape ) -{ - btTransform trans; - trans.setIdentity(); - btVector3 localInertia; - btCollisionShape* shape = reinterpret_cast( cshape); - assert(shape); - shape->calculateLocalInertia(mass,localInertia); - btRigidBody* body = new btRigidBody(mass, trans,shape,localInertia); - body->m_userObjectPointer = user_data; - return (plRigidBodyHandle) body; -} - -void plDeleteRigidBody(plRigidBodyHandle cbody) -{ - btRigidBody* body = reinterpret_cast< btRigidBody* >(cbody); - assert(body); - delete body; -} - - -/* Collision Shape definition */ - -plCollisionShapeHandle plNewSphereShape(plReal radius) -{ - return (plCollisionShapeHandle) new btSphereShape(radius); - -} - -plCollisionShapeHandle plNewBoxShape(plReal x, plReal y, plReal z) -{ - return (plCollisionShapeHandle) new btBoxShape(btVector3(x,y,z)); -} - -plCollisionShapeHandle plNewCapsuleShape(plReal radius, plReal height) -{ - //capsule is convex hull of 2 spheres, so use btMultiSphereShape - btVector3 inertiaHalfExtents(radius,height,radius); - const int numSpheres = 2; - btVector3 positions[numSpheres] = {btVector3(0,height,0),btVector3(0,-height,0)}; - btScalar radi[numSpheres] = {radius,radius}; - return (plCollisionShapeHandle) new btMultiSphereShape(inertiaHalfExtents,positions,radi,numSpheres); -} -plCollisionShapeHandle plNewConeShape(plReal radius, plReal height) -{ - return (plCollisionShapeHandle) new btConeShape(radius,height); -} - -plCollisionShapeHandle plNewCylinderShape(plReal radius, plReal height) -{ - return (plCollisionShapeHandle) new btCylinderShape(btVector3(radius,height,radius)); -} - -void plDeleteShape(plCollisionShapeHandle cshape) -{ - btCollisionShape* shape = reinterpret_cast( cshape); - assert(shape); - delete shape; -} -void plSetScaling(plCollisionShapeHandle cshape, plVector3 cscaling) -{ - btCollisionShape* shape = reinterpret_cast( cshape); - assert(shape); - btVector3 scaling(cscaling[0],cscaling[1],cscaling[2]); - shape->setLocalScaling(scaling); -} - - - -void plSetPosition(plRigidBodyHandle object, const plVector3 position) -{ -} -void plSetOrientation(plRigidBodyHandle object, const plQuaternion orientation) -{ -} - - -//plRigidBodyHandle plRayCast(plDynamicsWorldHandle world, const plVector3 rayStart, const plVector3 rayEnd, plVector3 hitpoint, plVector3 normal); - -// extern plRigidBodyHandle plObjectCast(plDynamicsWorldHandle world, const plVector3 rayStart, const plVector3 rayEnd, plVector3 hitpoint, plVector3 normal); diff --git a/Demos/OpenPL_Demo/OpenPL_Demo.c b/Demos/OpenPL_Demo/OpenPL_Demo.c deleted file mode 100644 index cef1f76ae..000000000 --- a/Demos/OpenPL_Demo/OpenPL_Demo.c +++ /dev/null @@ -1,44 +0,0 @@ - -#include "Bullet-C-Api.h" - - -int main() -{ - float timeStep = 1.f/60.f; - - /* initialize */ - plPhysicsSdkHandle sdk = plNewBulletSdk(); - - plDynamicsWorldHandle world = plCreateDynamicsWorld(sdk); - - - float radius = 1.f; - plCollisionShapeHandle collisionShape = plNewSphereShape(radius); - - void* user_data = 0;/* can point to a graphics object */ - - float mass = 1.f; - - plRigidBodyHandle body = plCreateRigidBody(user_data, mass, collisionShape ); - - plAddRigidBody(world, body); - - - - plStepSimulation(world,0.1f); - - /* cleanup */ - - plRemoveRigidBody(world, body); - - - plDeleteRigidBody(body); - - plDeleteShape( collisionShape); - - plDeleteDynamicsWorld( world); - - plDeletePhysicsSdk(sdk); - - return 0; -} \ No newline at end of file diff --git a/Demos/RagdollDemo/CMakeLists.txt b/Demos/RagdollDemo/CMakeLists.txt deleted file mode 100644 index 286c0542c..000000000 --- a/Demos/RagdollDemo/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppRagdollDemo - RagdollDemo.cpp - main.cpp -) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppRagdollDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppRagdollDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppRagdollDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/RagdollDemo/RagdollDemo.cpp b/Demos/RagdollDemo/RagdollDemo.cpp deleted file mode 100644 index 0ec12df1d..000000000 --- a/Demos/RagdollDemo/RagdollDemo.cpp +++ /dev/null @@ -1,507 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Ragdoll Demo -Copyright (c) 2007 Starbreeze Studios - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. - -Written by: Marten Svanfeldt -*/ - -#define CONSTRAINT_DEBUG_SIZE 0.2f - - -#include "btBulletDynamicsCommon.h" -#include "GlutStuff.h" -#include "GL_ShapeDrawer.h" - -#include "LinearMath/btIDebugDraw.h" - -#include "GLDebugDrawer.h" -#include "RagdollDemo.h" - - -// Enrico: Shouldn't these three variables be real constants and not defines? - -#ifndef M_PI -#define M_PI 3.14159265358979323846 -#endif - -#ifndef M_PI_2 -#define M_PI_2 1.57079632679489661923 -#endif - -#ifndef M_PI_4 -#define M_PI_4 0.785398163397448309616 -#endif - -class RagDoll -{ - enum - { - BODYPART_PELVIS = 0, - BODYPART_SPINE, - BODYPART_HEAD, - - BODYPART_LEFT_UPPER_LEG, - BODYPART_LEFT_LOWER_LEG, - - BODYPART_RIGHT_UPPER_LEG, - BODYPART_RIGHT_LOWER_LEG, - - BODYPART_LEFT_UPPER_ARM, - BODYPART_LEFT_LOWER_ARM, - - BODYPART_RIGHT_UPPER_ARM, - BODYPART_RIGHT_LOWER_ARM, - - BODYPART_COUNT - }; - - enum - { - JOINT_PELVIS_SPINE = 0, - JOINT_SPINE_HEAD, - - JOINT_LEFT_HIP, - JOINT_LEFT_KNEE, - - JOINT_RIGHT_HIP, - JOINT_RIGHT_KNEE, - - JOINT_LEFT_SHOULDER, - JOINT_LEFT_ELBOW, - - JOINT_RIGHT_SHOULDER, - JOINT_RIGHT_ELBOW, - - JOINT_COUNT - }; - - btDynamicsWorld* m_ownerWorld; - btCollisionShape* m_shapes[BODYPART_COUNT]; - btRigidBody* m_bodies[BODYPART_COUNT]; - btTypedConstraint* m_joints[JOINT_COUNT]; - - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape) - { - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,shape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - m_ownerWorld->addRigidBody(body); - - return body; - } - -public: - RagDoll (btDynamicsWorld* ownerWorld, const btVector3& positionOffset) - : m_ownerWorld (ownerWorld) - { - // Setup the geometry - m_shapes[BODYPART_PELVIS] = new btCapsuleShape(btScalar(0.15), btScalar(0.20)); - m_shapes[BODYPART_SPINE] = new btCapsuleShape(btScalar(0.15), btScalar(0.28)); - m_shapes[BODYPART_HEAD] = new btCapsuleShape(btScalar(0.10), btScalar(0.05)); - m_shapes[BODYPART_LEFT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_LEFT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_RIGHT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_RIGHT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_LEFT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_LEFT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - m_shapes[BODYPART_RIGHT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_RIGHT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - - // Setup all the rigid bodies - btTransform offset; offset.setIdentity(); - offset.setOrigin(positionOffset); - - btTransform transform; - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.), btScalar(0.))); - m_bodies[BODYPART_PELVIS] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.2), btScalar(0.))); - m_bodies[BODYPART_SPINE] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.6), btScalar(0.))); - m_bodies[BODYPART_HEAD] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_LEFT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_LEFT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_RIGHT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_RIGHT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); - - // Setup some damping on the m_bodies - for (int i = 0; i < BODYPART_COUNT; ++i) - { - m_bodies[i]->setDamping(0.05, 0.85); - m_bodies[i]->setDeactivationTime(0.8); - m_bodies[i]->setSleepingThresholds(1.6, 2.5); - } - - // Now setup the constraints - btHingeConstraint* hingeC; - btConeTwistConstraint* coneC; - - btTransform localA, localB; - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.15), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_SPINE], localA, localB); - hingeC->setLimit(btScalar(-M_PI_4), btScalar(M_PI_2)); - m_joints[JOINT_PELVIS_SPINE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_PELVIS_SPINE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI_2); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.30), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_HEAD], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, M_PI_2); - m_joints[JOINT_SPINE_HEAD] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_SPINE_HEAD], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,-M_PI_4*5); localA.setOrigin(btVector3(btScalar(-0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,-M_PI_4*5); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_LEFT_UPPER_LEG], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, 0); - m_joints[JOINT_LEFT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_LEG], *m_bodies[BODYPART_LEFT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_LEFT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI_4); localA.setOrigin(btVector3(btScalar(0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_4); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_RIGHT_UPPER_LEG], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, 0); - m_joints[JOINT_RIGHT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_LEG], *m_bodies[BODYPART_RIGHT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_RIGHT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI); localA.setOrigin(btVector3(btScalar(-0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_LEFT_UPPER_ARM], localA, localB); - coneC->setLimit(M_PI_2, M_PI_2, 0); - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_joints[JOINT_LEFT_SHOULDER] = coneC; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_ARM], *m_bodies[BODYPART_LEFT_LOWER_ARM], localA, localB); -// hingeC->setLimit(btScalar(-M_PI_2), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_LEFT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_ELBOW], true); - - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,0); localA.setOrigin(btVector3(btScalar(0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_RIGHT_UPPER_ARM], localA, localB); - coneC->setLimit(M_PI_2, M_PI_2, 0); - m_joints[JOINT_RIGHT_SHOULDER] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_ARM], *m_bodies[BODYPART_RIGHT_LOWER_ARM], localA, localB); -// hingeC->setLimit(btScalar(-M_PI_2), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_RIGHT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_ELBOW], true); - } - - virtual ~RagDoll () - { - int i; - - // Remove all constraints - for ( i = 0; i < JOINT_COUNT; ++i) - { - m_ownerWorld->removeConstraint(m_joints[i]); - delete m_joints[i]; m_joints[i] = 0; - } - - // Remove all bodies and shapes - for ( i = 0; i < BODYPART_COUNT; ++i) - { - m_ownerWorld->removeRigidBody(m_bodies[i]); - - delete m_bodies[i]->getMotionState(); - - delete m_bodies[i]; m_bodies[i] = 0; - delete m_shapes[i]; m_shapes[i] = 0; - } - } -}; - - - - -void RagdollDemo::initPhysics() -{ - // Setup the basic world - - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(5.)); - - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - btVector3 worldAabbMin(-10000,-10000,-10000); - btVector3 worldAabbMax(10000,10000,10000); - m_broadphase = new btAxisSweep3 (worldAabbMin, worldAabbMax); - - m_solver = new btSequentialImpulseConstraintSolver; - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - //m_dynamicsWorld->getDispatchInfo().m_useConvexConservativeDistanceUtil = true; - //m_dynamicsWorld->getDispatchInfo().m_convexConservativeDistanceThreshold = 0.01f; - - - - // Setup a big ground box - { - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(200.),btScalar(10.),btScalar(200.))); - m_collisionShapes.push_back(groundShape); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-10,0)); - -#define CREATE_GROUND_COLLISION_OBJECT 1 -#ifdef CREATE_GROUND_COLLISION_OBJECT - btCollisionObject* fixedGround = new btCollisionObject(); - fixedGround->setCollisionShape(groundShape); - fixedGround->setWorldTransform(groundTransform); - m_dynamicsWorld->addCollisionObject(fixedGround); -#else - localCreateRigidBody(btScalar(0.),groundTransform,groundShape); -#endif //CREATE_GROUND_COLLISION_OBJECT - - } - - // Spawn one ragdoll - btVector3 startOffset(1,0.5,0); - spawnRagdoll(startOffset); - startOffset.setValue(-1,0.5,0); - spawnRagdoll(startOffset); - - clientResetScene(); -} - -void RagdollDemo::spawnRagdoll(const btVector3& startOffset) -{ - RagDoll* ragDoll = new RagDoll (m_dynamicsWorld, startOffset); - m_ragdolls.push_back(ragDoll); -} - -void RagdollDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - float minFPS = 1000000.f/60.f; - if (ms > minFPS) - ms = minFPS; - - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - - } - - renderme(); - - glFlush(); - - glutSwapBuffers(); -} - -void RagdollDemo::displayCallback() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - glutSwapBuffers(); -} - -void RagdollDemo::keyboardCallback(unsigned char key, int x, int y) -{ - switch (key) - { - case 'e': - { - btVector3 startOffset(0,2,0); - spawnRagdoll(startOffset); - break; - } - default: - DemoApplication::keyboardCallback(key, x, y); - } - - -} - - - -void RagdollDemo::exitPhysics() -{ - - int i; - - for (i=0;igetNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_ragdolls; - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - -public: - void initPhysics(); - - void exitPhysics(); - - virtual ~RagdollDemo() - { - exitPhysics(); - } - - void spawnRagdoll(const btVector3& startOffset); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - static DemoApplication* Create() - { - RagdollDemo* demo = new RagdollDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - -}; - - -#endif diff --git a/Demos/RagdollDemo/main.cpp b/Demos/RagdollDemo/main.cpp deleted file mode 100644 index 0cbf63b9f..000000000 --- a/Demos/RagdollDemo/main.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2008 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "RagdollDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char* argv[]) -{ - RagdollDemo demoApp; - - demoApp.initPhysics(); - demoApp.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",&demoApp); -} diff --git a/Demos/RaytestDemo/CMakeLists.txt b/Demos/RaytestDemo/CMakeLists.txt deleted file mode 100644 index 8dfeef10a..000000000 --- a/Demos/RaytestDemo/CMakeLists.txt +++ /dev/null @@ -1,70 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppRaytestDemo - main.cpp - RaytestDemo.cpp - RaytestDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppRaytestDemo - main.cpp - RaytestDemo.cpp - RaytestDemo.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppRaytestDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32RaytestDemo.cpp - RaytestDemo.cpp - RaytestDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppRaytestDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/RaytestDemo/Makefile.am b/Demos/RaytestDemo/Makefile.am deleted file mode 100644 index 05546162b..000000000 --- a/Demos/RaytestDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=BasicDemo - -BasicDemo_SOURCES=BasicDemo.cpp BasicDemo.h main.cpp -BasicDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -BasicDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/RaytestDemo/RaytestDemo.h b/Demos/RaytestDemo/RaytestDemo.h deleted file mode 100644 index 85d65b4f0..000000000 --- a/Demos/RaytestDemo/RaytestDemo.h +++ /dev/null @@ -1,82 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BT_RAYTEST_DEMO_H -#define BT_RAYTEST_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; - -///RaytestDemo shows how to use the btCollisionWorld::rayTest feature - -class RaytestDemo : public PlatformDemoApplication -{ - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - public: - - RaytestDemo() - { - } - virtual ~RaytestDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - void castRays(); - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - RaytestDemo* demo = new RaytestDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BT_RAYTEST_DEMO_H - diff --git a/Demos/RaytestDemo/main.cpp b/Demos/RaytestDemo/main.cpp deleted file mode 100644 index 87e003277..000000000 --- a/Demos/RaytestDemo/main.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "RaytestDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - - - - -int main(int argc,char** argv) -{ - - RaytestDemo ccdDemo; - ccdDemo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/Raytracer/CMakeLists.txt b/Demos/Raytracer/CMakeLists.txt deleted file mode 100644 index 2f3b6a991..000000000 --- a/Demos/Raytracer/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppRaytracer - Raytracer.cpp - main.cpp -) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppRaytracer PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppRaytracer PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppRaytracer PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/Raytracer/Raytracer.cpp b/Demos/Raytracer/Raytracer.cpp deleted file mode 100644 index 97810a1ff..000000000 --- a/Demos/Raytracer/Raytracer.cpp +++ /dev/null @@ -1,627 +0,0 @@ -/* -* Copyright (c) 2005 Erwin Coumans -* -* Permission to use, copy, modify, distribute and sell this software -* and its documentation for any purpose is hereby granted without fee, -* provided that the above copyright notice appear in all copies. -* Erwin Coumans makes no representations about the suitability -* of this software for any purpose. -* It is provided "as is" without express or implied warranty. -*/ - - - -#include "BulletCollision/CollisionDispatch/btCollisionWorld.h" - -/* -Raytracer uses the Convex rayCast to visualize the Collision Shapes/Minkowski Sum. -Very basic raytracer, rendering into a texture. -*/ - -///Low level demo, doesn't include btBulletCollisionCommon.h - -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" -#include "GL_ShapeDrawer.h" -#include "GLDebugDrawer.h" - -#include "Raytracer.h" -#include "GlutStuff.h" - - -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h" -#include "BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h" -#include "BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h" - -#include "BulletCollision/CollisionShapes/btSphereShape.h" -#include "BulletCollision/CollisionShapes/btMultiSphereShape.h" - -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "LinearMath/btAabbUtil2.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" -#include "BulletCollision/CollisionShapes/btCompoundShape.h" - - -#include "BulletCollision/CollisionShapes/btTetrahedronShape.h" -#include "BulletCollision/CollisionShapes/btConeShape.h" -#include "BulletCollision/CollisionShapes/btCylinderShape.h" -#include "BulletCollision/CollisionShapes/btMinkowskiSumShape.h" - -#include "BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h" -#include "BulletCollision/BroadphaseCollision/btAxisSweep3.h" - -#include "RenderTexture.h" - - - -static btVoronoiSimplexSolver simplexSolver; - -static float yaw=0.f,pitch=0.f,roll=0.f; -static const int maxNumObjects = 4; -static const int numObjects = 3; - - -static btConvexShape* shapePtr[maxNumObjects]; -static btTransform transforms[maxNumObjects]; - -renderTexture* raytracePicture = 0; - -//this applies to the raytracer virtual screen/image buffer -static int screenWidth = 128;//256; -//float aspectRatio = (3.f/4.f); -static int screenHeight = 64;//256;//screenWidth * aspectRatio; -GLuint glTextureId; - -btConeShape myCone(1,1); -btSphereShape mysphere(1); -btBoxShape mybox(btVector3(1,1,1)); - -btCollisionWorld* m_collisionWorld = 0; - - - -/// -/// -/// - -void Raytracer::initPhysics() -{ - m_ele = 0; - - raytracePicture = new renderTexture(screenWidth,screenHeight); - myCone.setMargin(0.2f); - - //choose shape - shapePtr[0] = &myCone; - shapePtr[1] = &mysphere; - shapePtr[2] = &mybox; - - for (int i=0;isetCollisionShape(shapePtr[s]); - obj->setWorldTransform(transforms[s]); - m_collisionWorld->addCollisionObject(obj); - } - - -} - -Raytracer::~Raytracer() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_collisionWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_collisionWorld->getCollisionObjectArray()[i]; - m_collisionWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision world - delete m_collisionWorld; - - //delete broadphase - delete m_overlappingPairCache; - - //delete dispatcher - delete m_dispatcher; - - delete m_collisionConfiguration; - - delete raytracePicture; - raytracePicture=0; -} - -//to be implemented by the demo - -void Raytracer::clientMoveAndDisplay() -{ - displayCallback(); -} - - - - - - -bool Raytracer::worldRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint) -{ - - struct AllRayResultCallback : public btCollisionWorld::RayResultCallback - { - AllRayResultCallback(const btVector3& rayFromWorld,const btVector3& rayToWorld) - :m_rayFromWorld(rayFromWorld), - m_rayToWorld(rayToWorld) - { - } - - btVector3 m_rayFromWorld;//used to calculate hitPointWorld from hitFraction - btVector3 m_rayToWorld; - - btVector3 m_hitNormalWorld; - btVector3 m_hitPointWorld; - - virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult& rayResult,bool normalInWorldSpace) - { - -//caller already does the filter on the m_closestHitFraction - btAssert(rayResult.m_hitFraction <= m_closestHitFraction); - - m_closestHitFraction = rayResult.m_hitFraction; - - m_collisionObject = rayResult.m_collisionObject; - if (normalInWorldSpace) - { - m_hitNormalWorld = rayResult.m_hitNormalLocal; - } else - { - ///need to transform normal into worldspace - m_hitNormalWorld = m_collisionObject->getWorldTransform().getBasis()*rayResult.m_hitNormalLocal; - } - m_hitPointWorld.setInterpolate3(m_rayFromWorld,m_rayToWorld,rayResult.m_hitFraction); - return 1.f; - } - }; - - - AllRayResultCallback resultCallback(rayFrom,rayTo); -// btCollisionWorld::ClosestRayResultCallback resultCallback(rayFrom,rayTo); - m_collisionWorld->rayTest(rayFrom,rayTo,resultCallback); - if (resultCallback.hasHit()) - { - worldNormal = resultCallback.m_hitNormalWorld; - return true; - } - return false; -} - - -bool Raytracer::singleObjectRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint) -{ - -// btScalar closestHitResults = 1.f; - - btCollisionWorld::ClosestRayResultCallback resultCallback(rayFrom,rayTo); - - bool hasHit = false; - btConvexCast::CastResult rayResult; - btSphereShape pointShape(0.0f); - btTransform rayFromTrans; - btTransform rayToTrans; - - rayFromTrans.setIdentity(); - rayFromTrans.setOrigin(rayFrom); - rayToTrans.setIdentity(); - rayToTrans.setOrigin(rayTo); - - for (int s=0;sgetAabb(transforms[s],aabbMin,aabbMax); - btScalar hitLambda = 1.f; - btVector3 hitNormal; - btCollisionObject tmpObj; - tmpObj.setWorldTransform(transforms[s]); - - - if (btRayAabb(rayFrom,rayTo,aabbMin,aabbMax,hitLambda,hitNormal)) - { - //reset previous result - - btCollisionWorld::rayTestSingle(rayFromTrans,rayToTrans, &tmpObj, shapePtr[s], transforms[s], resultCallback); - if (resultCallback.hasHit()) - { - //float fog = 1.f - 0.1f * rayResult.m_fraction; - resultCallback.m_hitNormalWorld.normalize();//.m_normal.normalize(); - worldNormal = resultCallback.m_hitNormalWorld; - //worldNormal = transforms[s].getBasis() *rayResult.m_normal; - worldNormal.normalize(); - hasHit = true; - } - } - } - - return hasHit; -} - - -bool Raytracer::lowlevelRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint) -{ - - btScalar closestHitResults = 1.f; - - bool hasHit = false; - btConvexCast::CastResult rayResult; - btSphereShape pointShape(0.0f); - btTransform rayFromTrans; - btTransform rayToTrans; - - rayFromTrans.setIdentity(); - rayFromTrans.setOrigin(rayFrom); - rayToTrans.setIdentity(); - rayToTrans.setOrigin(rayTo); - - for (int s=0;sgetAabb(transforms[s],aabbMin,aabbMax); - btScalar hitLambda = 1.f; - btVector3 hitNormal; - btCollisionObject tmpObj; - tmpObj.setWorldTransform(transforms[s]); - - - if (btRayAabb(rayFrom,rayTo,aabbMin,aabbMax,hitLambda,hitNormal)) - { - //reset previous result - - //choose the continuous collision detection method - btSubsimplexConvexCast convexCaster(&pointShape,shapePtr[s],&simplexSolver); - //btGjkConvexCast convexCaster(&pointShape,shapePtr[s],&simplexSolver); - //btContinuousConvexCollision convexCaster(&pointShape,shapePtr[s],&simplexSolver,0); - - if (convexCaster.calcTimeOfImpact(rayFromTrans,rayToTrans,transforms[s],transforms[s],rayResult)) - { - if (rayResult.m_fraction < closestHitResults) - { - closestHitResults = rayResult.m_fraction; - - worldNormal = transforms[s].getBasis() *rayResult.m_normal; - worldNormal.normalize(); - hasHit = true; - } - } - } - } - - return hasHit; - -} - - -void Raytracer::displayCallback() -{ - - updateCamera(); - - for (int i=0;isetPixel(x,y,rgba); - } - } - -#if 1 - btVector3 rayTo; - btTransform colObjWorldTransform; - colObjWorldTransform.setIdentity(); - - int mode = 0; - - for (x=0;xsetPixel(x,y,rgba); - } else - { - // btVector4 rgba = raytracePicture->getPixel(x,y); - } - if (!rgba.length2()) - { - raytracePicture->setPixel(x,y,btVector4(1,1,1,1)); - } - } - } -#endif - -extern unsigned char sFontData[]; - if (0) - { - - const char* text="ABC abc 123 !@#"; - int x=0; - for (int cc = 0;ccsetPixel(x,y,rgba); - raytracePicture->addPixel(x,y,rgba); - } - y++; - } - x++; - } - } - } - - - //raytracePicture->grapicalPrintf("CCD RAYTRACER",sFontData); - char buffer[256]; - sprintf(buffer,"%d rays",screenWidth*screenHeight*numObjects); - //sprintf(buffer,"Toggle",screenWidth*screenHeight*numObjects); - //sprintf(buffer,"TEST",screenWidth*screenHeight*numObjects); - //raytracePicture->grapicalPrintf(buffer,sFontData,0,10);//&BMF_font_helv10,0,10); - raytracePicture->grapicalPrintf(buffer,sFontData,0,0);//&BMF_font_helv10,0,10); - - - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - glLoadIdentity(); - glFrustum(-1.0,1.0,-1.0,1.0,3,2020.0); - - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); // reset The Modelview Matrix - glTranslatef(0.0f,0.0f,-3.1f); // Move Into The Screen 5 Units - - - - glEnable(GL_TEXTURE_2D); - glBindTexture(GL_TEXTURE_2D,glTextureId ); - - const unsigned char *ptr = raytracePicture->getBuffer(); - glTexImage2D(GL_TEXTURE_2D, - 0, - GL_RGBA, - raytracePicture->getWidth(),raytracePicture->getHeight(), - 0, - GL_RGBA, - GL_UNSIGNED_BYTE, - ptr); - - - glEnable (GL_BLEND); - glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glColor4f (1,1,1,1); // alpha=0.5=half visible - - glBegin(GL_QUADS); - glTexCoord2f(0.0f, 0.0f); - glVertex2f(-1,1); - glTexCoord2f(1.0f, 0.0f); - glVertex2f(1,1); - glTexCoord2f(1.0f, 1.0f); - glVertex2f(1,-1); - glTexCoord2f(0.0f, 1.0f); - glVertex2f(-1,-1); - glEnd(); - - - - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glMatrixMode(GL_MODELVIEW); - - - glDisable(GL_TEXTURE_2D); - glDisable(GL_DEPTH_TEST); - - GL_ShapeDrawer::drawCoordSystem(); - - - - { - for (int i=0;igetAabb(transforms[i],aabbMin,aabbMax); - } - } - - glPushMatrix(); - - - - - glPopMatrix(); - - pitch += 0.005f; - yaw += 0.01f; - m_azi += 1.f; - - glFlush(); - glutSwapBuffers(); -} - diff --git a/Demos/Raytracer/Raytracer.h b/Demos/Raytracer/Raytracer.h deleted file mode 100644 index a8ff33f7f..000000000 --- a/Demos/Raytracer/Raytracer.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef RAYTRACER_H -#define RAYTRACER_H - -#include "GlutDemoApplication.h" - -class btDefaultCollisionConfiguration; -class btCollisionDispatcher; -class btAxisSweep3; -class btCollisionWorld; - -///Raytracer shows the inner working of the ray casting, using ray tracing rendering into a texture. -class Raytracer : public GlutDemoApplication -{ - - btDefaultCollisionConfiguration* m_collisionConfiguration; - btCollisionDispatcher* m_dispatcher; - btAxisSweep3* m_overlappingPairCache; - btCollisionWorld* m_collisionWorld; - bool m_initialized; - - public: - - void initPhysics(); - - virtual ~Raytracer(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - ///worldRaytest performs a ray versus all objects in a collision world, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool worldRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - ///singleObjectRaytest performs a ray versus one collision shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool singleObjectRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - ///lowlevelRaytest performs a ray versus convex shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool lowlevelRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - static DemoApplication* Create() - { - Raytracer* demo = new Raytracer(); - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -#endif //RAYTRACER_H - - diff --git a/Demos/Raytracer/RaytracerSetup.h b/Demos/Raytracer/RaytracerSetup.h deleted file mode 100644 index b7683d410..000000000 --- a/Demos/Raytracer/RaytracerSetup.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef RAYTRACER_SETUP_H -#define RAYTRACER_SETUP_H - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct RaytracerPhysicsSetup : public CommonPhysicsSetup -{ - - struct RaytracerInternalData* m_internalData; - - RaytracerPhysicsSetup(); - - virtual ~RaytracerPhysicsSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void exitPhysics(); - - virtual void stepSimulation(float deltaTime); - - virtual void debugDraw(int debugDrawFlags); - - virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual void removePickingConstraint(); - - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge); - - ///worldRaytest performs a ray versus all objects in a collision world, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool worldRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - ///singleObjectRaytest performs a ray versus one collision shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool singleObjectRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - ///lowlevelRaytest performs a ray versus convex shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) - bool lowlevelRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); - - -}; - -#endif //RAYTRACER_SETUP_H diff --git a/Demos/Raytracer/main.cpp b/Demos/Raytracer/main.cpp deleted file mode 100644 index dd515294c..000000000 --- a/Demos/Raytracer/main.cpp +++ /dev/null @@ -1,16 +0,0 @@ - -#include "Raytracer.h" -#include "GlutStuff.h" - - -int main(int argc,char** argv) -{ - Raytracer* raytraceDemo = new Raytracer(); - - raytraceDemo->initPhysics(); - - raytraceDemo->setCameraDistance(6.f); - - return glutmain(argc, argv,640,640,"Bullet GJK Implicit Shape Raytracer Demo",raytraceDemo); -} - diff --git a/Demos/RollingFrictionDemo/CMakeLists.txt b/Demos/RollingFrictionDemo/CMakeLists.txt deleted file mode 100644 index 9753cd0df..000000000 --- a/Demos/RollingFrictionDemo/CMakeLists.txt +++ /dev/null @@ -1,70 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppRollingFrictionDemo - main.cpp - RollingFrictionDemo.cpp - RollingFrictionDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppRollingFrictionDemo - main.cpp - RollingFrictionDemo.cpp - RollingFrictionDemo.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppRollingFrictionDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32RollingFrictionDemo.cpp - RollingFrictionDemo.cpp - RollingFrictionDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppRollingFrictionDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppRollingFrictionDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppRollingFrictionDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/RollingFrictionDemo/Makefile.am b/Demos/RollingFrictionDemo/Makefile.am deleted file mode 100644 index 05546162b..000000000 --- a/Demos/RollingFrictionDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=BasicDemo - -BasicDemo_SOURCES=BasicDemo.cpp BasicDemo.h main.cpp -BasicDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -BasicDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/RollingFrictionDemo/RollingFrictionDemo.cpp b/Demos/RollingFrictionDemo/RollingFrictionDemo.cpp deleted file mode 100644 index 37d11c600..000000000 --- a/Demos/RollingFrictionDemo/RollingFrictionDemo.cpp +++ /dev/null @@ -1,291 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "RollingFrictionDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" -#include "GLDebugDrawer.h" -static GLDebugDrawer sDebugDraw; -#include //printf debugging - - -void RollingFrictionDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void RollingFrictionDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - - - - -void RollingFrictionDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(SCALING*26.)); - - ///collision configuration contains default setup for memory, collision setup - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - //m_collisionConfiguration->setConvexConvexMultipointIterations(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - m_broadphase = new btDbvtBroadphase(); - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - m_dynamicsWorld->setDebugDrawer(&sDebugDraw); -// m_dynamicsWorld->getSolverInfo().m_singleAxisRollingFrictionThreshold = 0.f;//faster but lower quality - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - { - - ///create a few basic rigid bodies - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(20.),btScalar(50.),btScalar(10.))); - - // btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - groundTransform.setRotation(btQuaternion(btVector3(0,0,1),SIMD_PI*0.03)); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - body->setFriction(1); - body->setRollingFriction(1); - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - - { - - ///create a few basic rigid bodies - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(100.),btScalar(50.),btScalar(100.))); - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-54,0)); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - body->setFriction(1); - body->setRollingFriction(1); - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance -#define NUM_SHAPES 10 - btCollisionShape* colShapes[NUM_SHAPES] = { - new btSphereShape(btScalar(1.)), - new btCapsuleShape(0.5,1), - new btCapsuleShapeX(0.5,1), - new btCapsuleShapeZ(0.5,1), - new btConeShape(0.5,1), - new btConeShapeX(0.5,1), - new btConeShapeZ(0.5,1), - new btCylinderShape(btVector3(0.5,1,0.5)), - new btCylinderShapeX(btVector3(1,0.5,0.5)), - new btCylinderShapeZ(btVector3(0.5,0.5,1)), - }; - for (int i=0;icalculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,colShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - body->setFriction(1.f); - body->setRollingFriction(.3); - body->setAnisotropicFriction(colShape->getAnisotropicRollingFrictionDirection(),btCollisionObject::CF_ANISOTROPIC_ROLLING_FRICTION); - - - m_dynamicsWorld->addRigidBody(body); - } - } - } - } - } - - -} -void RollingFrictionDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void RollingFrictionDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - public: - - RollingFrictionDemo() - { - } - virtual ~RollingFrictionDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - RollingFrictionDemo* demo = new RollingFrictionDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //_ROLLING_FRICTION_DEMO_H - diff --git a/Demos/RollingFrictionDemo/Win32RollingFrictionDemo.cpp b/Demos/RollingFrictionDemo/Win32RollingFrictionDemo.cpp deleted file mode 100644 index 0439c817f..000000000 --- a/Demos/RollingFrictionDemo/Win32RollingFrictionDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "RollingFrictionDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new RollingFrictionDemo(); -} - -#endif diff --git a/Demos/SerializeDemo/AMD/CMakeLists.txt b/Demos/SerializeDemo/AMD/CMakeLists.txt deleted file mode 100644 index d6807022f..000000000 --- a/Demos/SerializeDemo/AMD/CMakeLists.txt +++ /dev/null @@ -1,140 +0,0 @@ - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter -${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL -${AMD_OPENCL_INCLUDES} -) - -ADD_DEFINITIONS(-DDESERIALIZE_SOFT_BODIES) -ADD_DEFINITIONS(-DUSE_AMD_OPENCL) -ADD_DEFINITIONS(-DCL_PLATFORM_AMD) - -IF(WIN32) -ADD_DEFINITIONS(-DGLEW_STATIC) -ENDIF(WIN32) - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport - BulletWorldImporter - BulletSoftBody - BulletDynamics - BulletCollision - BulletFileLoader - LinearMath - BulletSoftBodySolvers_OpenCL_AMD - BulletMultiThreaded - ${GLUT_glut_LIBRARY} - ${OPENGL_gl_LIBRARY} - ${OPENGL_glu_LIBRARY} - ${CMAK_GLEW_LIBRARY} - ${CMAKE_ATISTREAMSDK_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppSerializeDemo_AMD - ../main.cpp - ../SerializeDemo.cpp - ../SerializeDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.h - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLInclude.h - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/clew.c - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/clew.h - - ) - ELSE() - ADD_EXECUTABLE(AppSerializeDemo_AMD - ../main.cpp - ../SerializeDemo.cpp - ../SerializeDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.h - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLInclude.h - - ) - ENDIF() - -ELSE (USE_GLUT) - - LINK_LIBRARIES( - OpenGLSupport - BulletWorldImporter - BulletSoftBody - BulletDynamics - BulletCollision - BulletFileLoader - LinearMath - BulletSoftBodySolvers_OpenCL_AMD - BulletMultiThreaded - ${OPENGL_gl_LIBRARY} - ${OPENGL_glu_LIBRARY} - ${CMAKE_GLEW_LIBRARY} - ${CMAKE_ATISTREAMSDK_LIBRARY} - ) - - ADD_EXECUTABLE(AppSerializeDemo_AMD - WIN32 - ../../OpenGL/Win32AppMain.cpp - ../Win32SerializeDemo.cpp - ../SerializeDemo.cpp - ../SerializeDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLUtils.h - ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SharedOpenCL/btOpenCLInclude.h - ) -ENDIF (USE_GLUT) - -IF(WIN32) -IF (CMAKE_CL_64) - IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( TARGET AppSerializeDemo_AMD POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/glut64.dll ${CMAKE_CURRENT_BINARY_DIR} ) - ENDIF() -ELSE(CMAKE_CL_64) - IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES) - ADD_CUSTOM_COMMAND( TARGET AppSerializeDemo_AMD POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/GLUT32.DLL ${CMAKE_CURRENT_BINARY_DIR}) - ENDIF() -ENDIF(CMAKE_CL_64) -ENDIF(WIN32) - - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES AND NOT INTERNAL_UPDATE_SERIALIZATION_STRUCTURES) - ADD_CUSTOM_COMMAND( - TARGET AppSerializeDemo_AMD - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SerializeDemo/testFileCloth.bullet ${CMAKE_CURRENT_BINARY_DIR}/testFile.bullet - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/ApplyForces.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/ApplyForces.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/ComputeBounds.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/ComputeBounds.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/Integrate.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/Integrate.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/OutputToVertexArray.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/OutputToVertexArray.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/PrepareLinks.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/PrepareLinks.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/SolveCollisionsAndUpdateVelocities.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/SolveCollisionsAndUpdateVelocities.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/SolveCollisionsAndUpdateVelocitiesSIMDBatched.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/SolveCollisionsAndUpdateVelocitiesSIMDBatched.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/SolvePositions.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/SolvePositions.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/SolvePositionsSIMDBatched.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/SolvePositionsSIMDBatched.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdateConstants.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdateConstants.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdateFixedVertexPositions.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdateFixedVertexPositions.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdateNodes.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdateNodes.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdateNormals.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdateNormals.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdatePositions.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdatePositions.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdatePositionsFromVelocities.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/UpdatePositionsFromVelocities.cl - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/VSolveLinks.cl ${CMAKE_CURRENT_BINARY_DIR}/OpenCLC10/VSolveLinks.cl - - ) -ENDIF () - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppSerializeDemo_AMD PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppSerializeDemo_AMD PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppSerializeDemo_AMD PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos/SerializeDemo/AMD/premake4.lua b/Demos/SerializeDemo/AMD/premake4.lua deleted file mode 100644 index a3a52a3b7..000000000 --- a/Demos/SerializeDemo/AMD/premake4.lua +++ /dev/null @@ -1,65 +0,0 @@ - - hasCL = findOpenCL_AMD() - - if (hasCL) then - - project "AppOpenCLClothDemo_AMD" - - defines { "USE_AMD_OPENCL","CL_PLATFORM_AMD"} - - initOpenCL_AMD() - - language "C++" - - kind "ConsoleApp" - targetdir "../../.." - - libdirs {"../../../Glut"} - - links { - "LinearMath", - "BulletCollision", - "BulletDynamics", - "BulletSoftBody", - "BulletSoftBodySolvers_OpenCL_AMD", - "opengl32" - } - - configuration "x64" - links { - "glut64", - "glew64s" - } - configuration "x32" - links { - "glut32", - "glew32s" - } - - configuration{} - - - includedirs { - "../../../src", - "../../../Glut", - "../../SharedOpenCL", - "../../OpenGL" - } - - files { - "../cl_cloth_demo.cpp", - "../../SharedOpenCL/btOclUtils.h", - "../../SharedOpenCL/btOclCommon.h", - "../../SharedOpenCL/btOclUtils.cpp", - "../../SharedOpenCL/btOclCommon.cpp", - "../../OpenGL/GLDebugDrawer.cpp", - "../../OpenGL/stb_image.cpp", - "../../OpenGL/stb_image.h", - "../gl_win.cpp", - "../clstuff.cpp", - "../clstuff.h", - "../gl_win.h", - "../cloth.h" - } - - end \ No newline at end of file diff --git a/Demos/SerializeDemo/CMakeLists.txt b/Demos/SerializeDemo/CMakeLists.txt deleted file mode 100644 index 9cf57df25..000000000 --- a/Demos/SerializeDemo/CMakeLists.txt +++ /dev/null @@ -1,80 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -IF(BUILD_AMD_OPENCL_DEMOS AND BUILD_MULTITHREADING) - SUBDIRS(AMD) -ENDIF() - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletFileLoader -${BULLET_PHYSICS_SOURCE_DIR}/Extras/Serialize/BulletWorldImporter -${GLUT_INCLUDE_DIR} - -) - -ADD_DEFINITIONS(-DDESERIALIZE_SOFT_BODIES) - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppSerializeDemo - main.cpp - SerializeDemo.cpp - SerializeDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppSerializeDemo - main.cpp - SerializeDemo.cpp - SerializeDemo.h - ) - ENDIF() - -ELSE (USE_GLUT) - - LINK_LIBRARIES( - OpenGLSupport BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletFileLoader LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - ADD_EXECUTABLE(AppSerializeDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32SerializeDemo.cpp - SerializeDemo.cpp - SerializeDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ENDIF (USE_GLUT) - -IF (NOT INTERNAL_CREATE_DISTRIBUTABLE_MSVC_PROJECTFILES AND NOT INTERNAL_UPDATE_SERIALIZATION_STRUCTURES) - ADD_CUSTOM_COMMAND( - TARGET AppSerializeDemo - POST_BUILD - COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${BULLET_PHYSICS_SOURCE_DIR}/Demos/SerializeDemo/testFile.bullet ${CMAKE_CURRENT_BINARY_DIR}/testFile.bullet - ) -ENDIF () - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppSerializeDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppSerializeDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppSerializeDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - - diff --git a/Demos/SerializeDemo/SerializeDemo.cpp b/Demos/SerializeDemo/SerializeDemo.cpp deleted file mode 100644 index d6deddf78..000000000 --- a/Demos/SerializeDemo/SerializeDemo.cpp +++ /dev/null @@ -1,969 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#define TEST_SERIALIZATION 1 -//#undef DESERIALIZE_SOFT_BODIES - -#ifdef BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES -#define CREATE_NEW_BULLETFILE 1 -#endif //BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "SerializeDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" -#ifdef TEST_SERIALIZATION -#include "LinearMath/btSerializer.h" -#include "btBulletFile.h" -#include "btBulletWorldImporter.h" -#endif //TEST_SERIALIZATION - -#include "BulletCollision/Gimpact/btGImpactCollisionAlgorithm.h" -#include //printf debugging - - - -#ifdef DESERIALIZE_SOFT_BODIES -#include "BulletSoftBody/btSoftBodySolvers.h" - - -#ifdef USE_AMD_OPENCL - #include - #include - #include "../SharedOpenCL/btOpenCLUtils.h" - - extern cl_context g_cxMainContext; - extern cl_device_id g_cdDevice; - extern cl_command_queue g_cqCommandQue; -#endif - -btSoftBodySolver* fSoftBodySolver=0; - -#include "BulletSoftBody/btSoftBodyHelpers.h" -#include "BulletSoftBody/btSoftRigidDynamicsWorld.h" -#include "BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h" -#endif - -void SerializeDemo::keyboardCallback(unsigned char key, int x, int y) -{ - btAlignedObjectArray bodies; - if (key == 'g') - { - int numManifolds = getDynamicsWorld()->getDispatcher()->getNumManifolds(); - - for (int i=0;igetDispatcher()->getManifoldByIndexInternal(i); - if (!manifold->getNumContacts()) - continue; - - btScalar minDist = 1e30f; - int minIndex = -1; - for (int v=0;vgetNumContacts();v++) - { - if (minDist >manifold->getContactPoint(v).getDistance()) - { - minDist = manifold->getContactPoint(v).getDistance(); - minIndex = v; - } - } - if (minDist>0.) - continue; - - btCollisionObject* colObj0 = (btCollisionObject*)manifold->getBody0(); - btCollisionObject* colObj1 = (btCollisionObject*)manifold->getBody1(); - // int tag0 = (colObj0)->getIslandTag(); - // int tag1 = (colObj1)->getIslandTag(); - btRigidBody* body0 = btRigidBody::upcast(colObj0); - btRigidBody* body1 = btRigidBody::upcast(colObj1); - if (bodies.findLinearSearch(body0)==bodies.size()) - bodies.push_back(body0); - if (bodies.findLinearSearch(body1)==bodies.size()) - bodies.push_back(body1); - - if (body0 && body1) - { - if (!colObj0->isStaticOrKinematicObject() && !colObj1->isStaticOrKinematicObject()) - { - if (body0->checkCollideWithOverride(body1)) - { - { - btTransform trA,trB; - trA.setIdentity(); - trB.setIdentity(); - btVector3 contactPosWorld = manifold->getContactPoint(minIndex).m_positionWorldOnA; - btTransform globalFrame; - globalFrame.setIdentity(); - globalFrame.setOrigin(contactPosWorld); - - trA = body0->getWorldTransform().inverse()*globalFrame; - trB = body1->getWorldTransform().inverse()*globalFrame; - - btGeneric6DofConstraint* dof6 = new btGeneric6DofConstraint(*body0,*body1,trA,trB,true); - dof6->setOverrideNumSolverIterations(100); - - dof6->setBreakingImpulseThreshold(35); - - for (int i=0;i<6;i++) - dof6->setLimit(i,0,0); - getDynamicsWorld()->addConstraint(dof6,true); - - } - } - } - } - - } - - for (int i=0;iremoveRigidBody(bodies[i]); - getDynamicsWorld()->addRigidBody(bodies[i]); - } - }else - { - PlatformDemoApplication::keyboardCallback(key,x,y); - } -} - - -void SerializeDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - - -#ifdef DESERIALIZE_SOFT_BODIES - if (fSoftBodySolver) - fSoftBodySolver->copyBackToSoftBodies(); -#endif - - m_dynamicsWorld->debugDrawWorld(); - -#ifdef DESERIALIZE_SOFT_BODIES - if (m_dynamicsWorld->getWorldType()==BT_SOFT_RIGID_DYNAMICS_WORLD) - { - //optional but useful: debug drawing - btSoftRigidDynamicsWorld* softWorld = (btSoftRigidDynamicsWorld*)m_dynamicsWorld; - - for ( int i=0;igetSoftBodyArray().size();i++) - { - btSoftBody* psb=(btSoftBody*)softWorld->getSoftBodyArray()[i]; - if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe))) - { - btSoftBodyHelpers::DrawFrame(psb,softWorld->getDebugDrawer()); - btSoftBodyHelpers::Draw(psb,softWorld->getDebugDrawer(),softWorld->getDrawFlags()); - } - } - } -#endif //DESERIALIZE_SOFT_BODIES - - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} -#ifdef USE_AMD_OPENCL - -///the CachingCLFuncs class will try to create/load precompiled binary programs, instead of the slow on-line compilation of programs -class CachingCLFuncs : public CLFunctions -{ - cl_device_id m_device; - - public: - - CachingCLFuncs (cl_command_queue cqCommandQue, cl_context cxMainContext, cl_device_id device) - :CLFunctions(cqCommandQue,cxMainContext), - m_device(device) - { - } - - virtual cl_kernel compileCLKernelFromString( const char* kernelSource, const char* kernelName, const char* additionalMacros, const char* srcFileNameForCaching) - { - - cl_int pErrNum; - cl_program prog; - - prog = btOpenCLUtils::compileCLProgramFromFile( m_cxMainContext,m_device, &pErrNum,additionalMacros ,srcFileNameForCaching); - if (!prog) - { - printf("Using embedded kernel source instead:\n"); - prog = btOpenCLUtils::compileCLProgramFromString( m_cxMainContext,m_device, kernelSource, &pErrNum,additionalMacros); - } - - return btOpenCLUtils::compileCLKernelFromString( m_cxMainContext,m_device, kernelSource, kernelName, &pErrNum, prog,additionalMacros); - } - -}; -#endif - - -void SerializeDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - if (m_dynamicsWorld->getWorldType()==BT_SOFT_RIGID_DYNAMICS_WORLD) - { -#ifdef DESERIALIZE_SOFT_BODIES - - //optional but useful: debug drawing - btSoftRigidDynamicsWorld* softWorld = (btSoftRigidDynamicsWorld*)m_dynamicsWorld; - - for ( int i=0;igetSoftBodyArray().size();i++) - { - btSoftBody* psb=(btSoftBody*)softWorld->getSoftBodyArray()[i]; - if (softWorld->getDebugDrawer() && !(softWorld->getDebugDrawer()->getDebugMode() & (btIDebugDraw::DBG_DrawWireframe))) - { - btSoftBodyHelpers::DrawFrame(psb,softWorld->getDebugDrawer()); - btSoftBodyHelpers::Draw(psb,softWorld->getDebugDrawer(),softWorld->getDrawFlags()); - } - } -#endif //DESERIALIZE_SOFT_BODIES - } - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - -enum SolverType -{ - kSolverAccelerationOpenCL_CPU = 1, - kSolverAccelerationOpenCL_GPU = 2, - kSolverAccelerationNone = 3 -}; - - -void SerializeDemo::setupEmptyDynamicsWorld() -{ - ///collision configuration contains default setup for memory, collision setup - //m_collisionConfiguration = new btDefaultCollisionConfiguration(); -#ifdef DESERIALIZE_SOFT_BODIES - m_collisionConfiguration = new btSoftBodyRigidBodyCollisionConfiguration(); -#else - m_collisionConfiguration = new btDefaultCollisionConfiguration(); -#endif //DESERIALIZE_SOFT_BODIES - - //m_collisionConfiguration->setConvexConvexMultipointIterations(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - btGImpactCollisionAlgorithm::registerAlgorithm(m_dispatcher); - - m_broadphase = new btDbvtBroadphase(); - - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - -#ifdef DESERIALIZE_SOFT_BODIES - - - - #ifdef USE_AMD_OPENCL - - int solverAccel = kSolverAccelerationOpenCL_GPU; - - if ( 1 ) { - switch (solverAccel) - { - case kSolverAccelerationOpenCL_GPU: - { - btOpenCLSoftBodySolverSIMDAware* softSolv= new btOpenCLSoftBodySolverSIMDAware( g_cqCommandQue, g_cxMainContext ); - //btOpenCLSoftBodySolver* softSolv= new btOpenCLSoftBodySolver( g_cqCommandQue, g_cxMainContext); - fSoftBodySolver = softSolv; - - CLFunctions* funcs = new CachingCLFuncs(g_cqCommandQue, g_cxMainContext,g_cdDevice); - softSolv->setCLFunctions(funcs); - - - break; - } - case kSolverAccelerationOpenCL_CPU: - { - //fSoftBodySolver = new btCPUSoftBodySolver(); - break; - }; - case kSolverAccelerationNone: - default: - { - fSoftBodySolver = NULL; - } - }; - } - else - { - if ( solverAccel != kSolverAccelerationNone ) - { - } - else - { - } - fSoftBodySolver = NULL; - } -#else - - fSoftBodySolver = NULL; -#endif - - btSoftRigidDynamicsWorld* world = new btSoftRigidDynamicsWorld(m_dispatcher, m_broadphase, m_solver, - m_collisionConfiguration, fSoftBodySolver); - m_dynamicsWorld = world; - - - //world->setDrawFlags(world->getDrawFlags()^fDrawFlags::Clusters); -#else - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - //m_dynamicsWorld ->getSolverInfo().m_solverMode|=SOLVER_RANDMIZE_ORDER; - //m_dynamicsWorld->getDispatchInfo().m_enableSatConvex = true; - //m_dynamicsWorld->getSolverInfo().m_splitImpulse=true; -#endif //DESERIALIZE_SOFT_BODIES - - //btGImpactCollisionAlgorithm::registerAlgorithm((btCollisionDispatcher*)m_dynamicsWorld->getDispatcher()); - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - -} - - -#ifdef DESERIALIZE_SOFT_BODIES -#include "BulletSoftBody/btSoftBodyData.h" -class MySoftBulletWorldImporter : public btBulletWorldImporter -{ - - btSoftRigidDynamicsWorld* m_softRigidWorld; - - btHashMap m_materialMap; - - btHashMap m_clusterBodyMap; - btHashMap m_softBodyMap; - - - -public: - - MySoftBulletWorldImporter(btSoftRigidDynamicsWorld* world) - :btBulletWorldImporter(world), - m_softRigidWorld(world) - { - - } - - virtual ~MySoftBulletWorldImporter() - { - - } - - virtual bool convertAllObjects( bParse::btBulletFile* bulletFile2) - { - bool result = btBulletWorldImporter::convertAllObjects(bulletFile2); - int i; - //now the soft bodies - for (i=0;im_softBodies.size();i++) - { - if (bulletFile2->getFlags() & bParse::FD_DOUBLE_PRECISION) - { - btAssert(0); //not yet - //btSoftBodyFloatData* softBodyData = (btSoftBodyFloatData*)bulletFile2->m_softBodies[i]; - } else - { - btSoftBodyFloatData* softBodyData = (btSoftBodyFloatData*)bulletFile2->m_softBodies[i]; - int i; - int numNodes = softBodyData->m_numNodes; - - - btSoftBody* psb=new btSoftBody(&m_softRigidWorld->getWorldInfo()); - m_softBodyMap.insert(softBodyData,psb); - - //materials - for (i=0;im_numMaterials;i++) - { - SoftBodyMaterialData* matData = softBodyData->m_materials[i]; - btSoftBody::Material** matPtr = m_materialMap.find(matData); - btSoftBody::Material* mat = 0; - if (matPtr&& *matPtr) - { - mat = *matPtr; - } else - { - mat = psb->appendMaterial(); - mat->m_flags = matData->m_flags; - mat->m_kAST = matData->m_angularStiffness; - mat->m_kLST = matData->m_linearStiffness; - mat->m_kVST = matData->m_volumeStiffness; - m_materialMap.insert(matData,mat); - } - } - - - - - for (i=0;im_nodes[i]; - btVector3 position; - position.deSerializeFloat(nodeData.m_position); - btScalar mass = nodeData.m_inverseMass? 1./nodeData.m_inverseMass : 0.f; - psb->appendNode(position,mass); - btSoftBody::Node* node = &psb->m_nodes[psb->m_nodes.size()-1]; - node->m_area = nodeData.m_area; - node->m_battach = nodeData.m_attach; - node->m_f.deSerializeFloat(nodeData.m_accumulatedForce); - node->m_im = nodeData.m_inverseMass; - - btSoftBody::Material** matPtr = m_materialMap.find(nodeData.m_material); - if (matPtr && *matPtr) - { - node->m_material = *matPtr; - } else - { - printf("no mat?\n"); - } - - node->m_n.deSerializeFloat(nodeData.m_normal); - node->m_q = node->m_x; - node->m_v.deSerializeFloat(nodeData.m_velocity); - - } - - for (i=0;im_numLinks;i++) - { - SoftBodyLinkData& linkData = softBodyData->m_links[i]; - btSoftBody::Material** matPtr = m_materialMap.find(linkData.m_material); - if (matPtr && *matPtr) - { - psb->appendLink(linkData.m_nodeIndices[0],linkData.m_nodeIndices[1],*matPtr); - } else - { - psb->appendLink(linkData.m_nodeIndices[0],linkData.m_nodeIndices[1]); - } - btSoftBody::Link* link = &psb->m_links[psb->m_links.size()-1]; - link->m_bbending = linkData.m_bbending; - link->m_rl = linkData.m_restLength; - } - - for (i=0;im_numFaces;i++) - { - SoftBodyFaceData& faceData = softBodyData->m_faces[i]; - btSoftBody::Material** matPtr = m_materialMap.find(faceData.m_material); - if (matPtr && *matPtr) - { - psb->appendFace(faceData.m_nodeIndices[0],faceData.m_nodeIndices[1],faceData.m_nodeIndices[2],*matPtr); - } else - { - psb->appendFace(faceData.m_nodeIndices[0],faceData.m_nodeIndices[1],faceData.m_nodeIndices[2]); - } - btSoftBody::Face* face = &psb->m_faces[psb->m_faces.size()-1]; - face->m_normal.deSerializeFloat(faceData.m_normal); - face->m_ra = faceData.m_restArea; - } - - - - //anchors - for (i=0;im_numAnchors;i++) - { - btCollisionObject** colAptr = m_bodyMap.find(softBodyData->m_anchors[i].m_rigidBody); - if (colAptr && *colAptr) - { - btRigidBody* body = btRigidBody::upcast(*colAptr); - if (body) - { - bool disableCollision = false; - btVector3 localPivot; - localPivot.deSerializeFloat(softBodyData->m_anchors[i].m_localFrame); - psb->appendAnchor(softBodyData->m_anchors[i].m_nodeIndex,body,localPivot, disableCollision); - } - } - } - - if (softBodyData->m_pose) - { - psb->m_pose.m_aqq.deSerializeFloat( softBodyData->m_pose->m_aqq); - psb->m_pose.m_bframe = (softBodyData->m_pose->m_bframe!=0); - psb->m_pose.m_bvolume = (softBodyData->m_pose->m_bvolume!=0); - psb->m_pose.m_com.deSerializeFloat(softBodyData->m_pose->m_com); - - psb->m_pose.m_pos.resize(softBodyData->m_pose->m_numPositions); - for (i=0;im_pose->m_numPositions;i++) - { - psb->m_pose.m_pos[i].deSerializeFloat(softBodyData->m_pose->m_positions[i]); - } - psb->m_pose.m_rot.deSerializeFloat(softBodyData->m_pose->m_rot); - psb->m_pose.m_scl.deSerializeFloat(softBodyData->m_pose->m_scale); - psb->m_pose.m_wgh.resize(softBodyData->m_pose->m_numWeigts); - for (i=0;im_pose->m_numWeigts;i++) - { - psb->m_pose.m_wgh[i] = softBodyData->m_pose->m_weights[i]; - } - psb->m_pose.m_volume = softBodyData->m_pose->m_restVolume; - } - -#if 1 - psb->m_cfg.piterations=softBodyData->m_config.m_positionIterations; - psb->m_cfg.diterations=softBodyData->m_config.m_driftIterations; - psb->m_cfg.citerations=softBodyData->m_config.m_clusterIterations; - psb->m_cfg.viterations=softBodyData->m_config.m_velocityIterations; - - //psb->setTotalMass(0.1); - psb->m_cfg.aeromodel = (btSoftBody::eAeroModel::_)softBodyData->m_config.m_aeroModel; - psb->m_cfg.kLF = softBodyData->m_config.m_lift; - psb->m_cfg.kDG = softBodyData->m_config.m_drag; - psb->m_cfg.kMT = softBodyData->m_config.m_poseMatch; - psb->m_cfg.collisions = softBodyData->m_config.m_collisionFlags; - psb->m_cfg.kDF = 1.f;//softBodyData->m_config.m_dynamicFriction; - psb->m_cfg.kDP = softBodyData->m_config.m_damping; - psb->m_cfg.kPR = softBodyData->m_config.m_pressure; - psb->m_cfg.kVC = softBodyData->m_config.m_volume; - psb->m_cfg.kAHR = softBodyData->m_config.m_anchorHardness; - psb->m_cfg.kKHR = softBodyData->m_config.m_kineticContactHardness; - psb->m_cfg.kSHR = softBodyData->m_config.m_softContactHardness; - psb->m_cfg.kSRHR_CL = softBodyData->m_config.m_softRigidClusterHardness; - psb->m_cfg.kSKHR_CL = softBodyData->m_config.m_softKineticClusterHardness; - psb->m_cfg.kSSHR_CL = softBodyData->m_config.m_softSoftClusterHardness; -#endif - -// pm->m_kLST = 1; - -#if 1 - //clusters - if (softBodyData->m_numClusters) - { - m_clusterBodyMap.insert(softBodyData->m_clusters,psb); - int j; - psb->m_clusters.resize(softBodyData->m_numClusters); - for (i=0;im_numClusters;i++) - { - psb->m_clusters[i] = new(btAlignedAlloc(sizeof(btSoftBody::Cluster),16)) btSoftBody::Cluster(); - psb->m_clusters[i]->m_adamping = softBodyData->m_clusters[i].m_adamping; - psb->m_clusters[i]->m_av.deSerializeFloat(softBodyData->m_clusters[i].m_av); - psb->m_clusters[i]->m_clusterIndex = softBodyData->m_clusters[i].m_clusterIndex; - psb->m_clusters[i]->m_collide = (softBodyData->m_clusters[i].m_collide!=0); - psb->m_clusters[i]->m_com.deSerializeFloat(softBodyData->m_clusters[i].m_com); - psb->m_clusters[i]->m_containsAnchor = (softBodyData->m_clusters[i].m_containsAnchor!=0); - psb->m_clusters[i]->m_dimpulses[0].deSerializeFloat(softBodyData->m_clusters[i].m_dimpulses[0]); - psb->m_clusters[i]->m_dimpulses[1].deSerializeFloat(softBodyData->m_clusters[i].m_dimpulses[1]); - - psb->m_clusters[i]->m_framerefs.resize(softBodyData->m_clusters[i].m_numFrameRefs); - for (j=0;jm_clusters[i].m_numFrameRefs;j++) - { - psb->m_clusters[i]->m_framerefs[j].deSerializeFloat(softBodyData->m_clusters[i].m_framerefs[j]); - } - psb->m_clusters[i]->m_nodes.resize(softBodyData->m_clusters[i].m_numNodes); - for (j=0;jm_clusters[i].m_numNodes;j++) - { - int nodeIndex = softBodyData->m_clusters[i].m_nodeIndices[j]; - psb->m_clusters[i]->m_nodes[j] = &psb->m_nodes[nodeIndex]; - } - - psb->m_clusters[i]->m_masses.resize(softBodyData->m_clusters[i].m_numMasses); - for (j=0;jm_clusters[i].m_numMasses;j++) - { - psb->m_clusters[i]->m_masses[j] = softBodyData->m_clusters[i].m_masses[j]; - } - psb->m_clusters[i]->m_framexform.deSerializeFloat(softBodyData->m_clusters[i].m_framexform); - psb->m_clusters[i]->m_idmass = softBodyData->m_clusters[i].m_idmass; - psb->m_clusters[i]->m_imass = softBodyData->m_clusters[i].m_imass; - psb->m_clusters[i]->m_invwi.deSerializeFloat(softBodyData->m_clusters[i].m_invwi); - psb->m_clusters[i]->m_ldamping = softBodyData->m_clusters[i].m_ldamping; - psb->m_clusters[i]->m_locii.deSerializeFloat(softBodyData->m_clusters[i].m_locii); - psb->m_clusters[i]->m_lv.deSerializeFloat(softBodyData->m_clusters[i].m_lv); - psb->m_clusters[i]->m_matching = softBodyData->m_clusters[i].m_matching; - psb->m_clusters[i]->m_maxSelfCollisionImpulse = 0;//softBodyData->m_clusters[i].m_maxSelfCollisionImpulse; - psb->m_clusters[i]->m_ndamping = softBodyData->m_clusters[i].m_ndamping; - psb->m_clusters[i]->m_ndimpulses = softBodyData->m_clusters[i].m_ndimpulses; - psb->m_clusters[i]->m_nvimpulses = softBodyData->m_clusters[i].m_nvimpulses; - psb->m_clusters[i]->m_selfCollisionImpulseFactor = softBodyData->m_clusters[i].m_selfCollisionImpulseFactor; - psb->m_clusters[i]->m_vimpulses[0].deSerializeFloat(softBodyData->m_clusters[i].m_vimpulses[0]); - psb->m_clusters[i]->m_vimpulses[1].deSerializeFloat(softBodyData->m_clusters[i].m_vimpulses[1]); - - } - //psb->initializeClusters(); - //psb->updateClusters(); - - } -#else - - psb->m_cfg.piterations = 2; - psb->m_cfg.collisions = btSoftBody::fCollision::CL_SS+ btSoftBody::fCollision::CL_RS; - //psb->setTotalMass(50,true); - //psb->generateClusters(64); - //psb->m_cfg.kDF=1; - psb->generateClusters(8); - - -#endif // - - - - psb->updateConstants(); - m_softRigidWorld->getWorldInfo().m_dispatcher = m_softRigidWorld->getDispatcher(); - - m_softRigidWorld->addSoftBody(psb); - - - } - } - - - //now the soft body joints - for (i=0;im_softBodies.size();i++) - { - if (bulletFile2->getFlags() & bParse::FD_DOUBLE_PRECISION) - { - btAssert(0); //not yet - //btSoftBodyFloatData* softBodyData = (btSoftBodyFloatData*)bulletFile2->m_softBodies[i]; - } else - { - btSoftBodyFloatData* softBodyData = (btSoftBodyFloatData*)bulletFile2->m_softBodies[i]; - btSoftBody** sbp = m_softBodyMap.find(softBodyData); - if (sbp && *sbp) - { - btSoftBody* sb = *sbp; - for (int i=0;im_numJoints;i++) - { - btSoftBodyJointData* sbjoint = &softBodyData->m_joints[i]; - - - btSoftBody::Body bdyB; - - btSoftBody* sbB = 0; - btTransform transA; - transA.setIdentity(); - transA = sb->m_clusters[0]->m_framexform; - - btCollisionObject** colBptr = m_bodyMap.find(sbjoint->m_bodyB); - if (colBptr && *colBptr) - { - btRigidBody* rbB = btRigidBody::upcast(*colBptr); - if (rbB) - { - bdyB = rbB; - } else - { - bdyB = *colBptr; - } - } - - - btSoftBody** bodyBptr = m_clusterBodyMap.find(sbjoint->m_bodyB); - if (bodyBptr && *bodyBptr ) - { - sbB = *bodyBptr; - bdyB = sbB->m_clusters[0]; - } - - - if (sbjoint->m_jointType==btSoftBody::Joint::eType::Linear) - { - btSoftBody::LJoint::Specs specs; - specs.cfm = sbjoint->m_cfm; - specs.erp = sbjoint->m_erp; - specs.split = sbjoint->m_split; - btVector3 relA; - relA.deSerializeFloat(sbjoint->m_refs[0]); - specs.position = transA*relA; - sb->appendLinearJoint(specs,sb->m_clusters[0],bdyB); - } - - if (sbjoint->m_jointType==btSoftBody::Joint::eType::Angular) - { - btSoftBody::AJoint::Specs specs; - specs.cfm = sbjoint->m_cfm; - specs.erp = sbjoint->m_erp; - specs.split = sbjoint->m_split; - btVector3 relA; - relA.deSerializeFloat(sbjoint->m_refs[0]); - specs.axis = transA.getBasis()*relA; - sb->appendAngularJoint(specs,sb->m_clusters[0],bdyB); - } - } - } - - } - } - - return result; - - } -}; -#endif //DESERIALIZE_SOFT_BODIES - -SerializeDemo::SerializeDemo() -:m_verboseMode(0), -m_fileName("testFile.bullet") -{ - m_idle=true; - -} -SerializeDemo::~SerializeDemo() -{ - m_fileLoader->deleteAllData(); - delete m_fileLoader; - exitPhysics(); -} - -void SerializeDemo::initPhysics() -{ - setTexturing(true); - setShadows(false);//true); - - setCameraDistance(btScalar(SCALING*30.)); - - setupEmptyDynamicsWorld(); - -#ifdef DESERIALIZE_SOFT_BODIES - m_fileLoader = new MySoftBulletWorldImporter((btSoftRigidDynamicsWorld*)m_dynamicsWorld); -#else - m_fileLoader = new btBulletWorldImporter(m_dynamicsWorld); -#endif //DESERIALIZE_SOFT_BODIES - - m_fileLoader->setVerboseMode(m_verboseMode); - - const char* filename = "testFile.bullet"; - - const char* prefix[]={"./","../","../../","../../../","../../../../", "SerializeDemo/", "Demos/SerializeDemo/", - "../Demos/SerializeDemo/","../../Demos/SerializeDemo/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - bool fileFound = false; - - for (int i=0;iloadFile(relativeFileName, "testFileSwappedEndianness.bullet")) -// if (!m_fileLoader->loadFile("../SoftDemo/testFile.bullet")) - { - ///create a few basic rigid bodies and save them to testFile.bullet - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); - // btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - btCollisionObject* groundObject = 0; - - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - groundObject = body; - } - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - int numSpheres = 2; - btVector3 positions[2] = {btVector3(0.1f,0.2f,0.3f),btVector3(0.4f,0.5f,0.6f)}; - btScalar radii[2] = {0.3f,0.4f}; - - btMultiSphereShape* colShape = new btMultiSphereShape(positions,radii,numSpheres); - - //btCollisionShape* colShape = new btCapsuleShapeZ(SCALING*1,SCALING*1); - //btCollisionShape* colShape = new btCylinderShapeZ(btVector3(SCALING*1,SCALING*1,SCALING*1)); - //btCollisionShape* colShape = new btBoxShape(btVector3(SCALING*1,SCALING*1,SCALING*1)); - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - float start_x = START_POS_X - ARRAY_SIZE_X/2; - float start_y = START_POS_Y; - float start_z = START_POS_Z - ARRAY_SIZE_Z/2; - - for (int k=0;kaddRigidBody(body); - //body->setActivationState(ISLAND_SLEEPING); - } - } - } - } - - int maxSerializeBufferSize = 1024*1024*5; - - btDefaultSerializer* serializer = new btDefaultSerializer(maxSerializeBufferSize); - - static const char* groundName = "GroundName"; - serializer->registerNameForPointer(groundObject, groundName); - - for (int i=0;iregisterNameForPointer(m_collisionShapes[i],name); - } - - btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*(btRigidBody*)getDynamicsWorld()->getCollisionObjectArray()[2],btVector3(0,1,0)); - m_dynamicsWorld->addConstraint(p2p); - - const char* name = "constraintje"; - serializer->registerNameForPointer(p2p,name); - - m_dynamicsWorld->serialize(serializer); -#if 1 - FILE* f2 = fopen("testFile.bullet","wb"); - fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1,f2); - fclose(f2); -#endif - - } - - //clientResetScene(); - -} - - -void SerializeDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - //removed/delete constraints - int i; - for (i=m_dynamicsWorld->getNumConstraints()-1; i>=0 ;i--) - { - btTypedConstraint* constraint = m_dynamicsWorld->getConstraint(i); - m_dynamicsWorld->removeConstraint(constraint); - delete constraint; - } - - //remove the rigidbodies from the dynamics world and delete them - - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - class btBulletWorldImporter* m_fileLoader; - const char* m_fileName; - int m_verboseMode; - - public: - - SerializeDemo(); - virtual ~SerializeDemo(); - - void initPhysics(); - - void setupEmptyDynamicsWorld(); - - void exitPhysics(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - void setFileName(const char* name) - { - m_fileName = name; - } - const char* getFileName() const - { - return m_fileName; - } - - void setVerboseMode(int mode) - { - m_verboseMode = mode; - } - int getVerboseMode() const - { - return m_verboseMode; - } - - static DemoApplication* Create() - { - SerializeDemo* demo = new SerializeDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //SERIALIZE_DEMO_H - diff --git a/Demos/SerializeDemo/SerializeSetup.h b/Demos/SerializeDemo/SerializeSetup.h deleted file mode 100644 index 843135540..000000000 --- a/Demos/SerializeDemo/SerializeSetup.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef SERIALIZE_SETUP_H -#define SERIALIZE_SETUP_H -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -class SerializeSetup : public CommonRigidBodySetup -{ -public: - SerializeSetup(); - virtual ~SerializeSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - virtual void stepSimulation(float deltaTime); -}; - -#endif //SERIALIZE_SETUP_H diff --git a/Demos/SerializeDemo/Win32SerializeDemo.cpp b/Demos/SerializeDemo/Win32SerializeDemo.cpp deleted file mode 100644 index 0cf13e86b..000000000 --- a/Demos/SerializeDemo/Win32SerializeDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2010 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "SerializeDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new SerializeDemo(); -} - -#endif diff --git a/Demos/SerializeDemo/main.cpp b/Demos/SerializeDemo/main.cpp deleted file mode 100644 index 87b88f8f0..000000000 --- a/Demos/SerializeDemo/main.cpp +++ /dev/null @@ -1,134 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "SerializeDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" -#include "btBulletFile.h" -#include "CommandLineArguments.h" - - -#ifdef USE_AMD_OPENCL - - - -#include "btOpenCLUtils.h" - -#include - -cl_context g_cxMainContext; -cl_device_id g_cdDevice; -cl_command_queue g_cqCommandQue; - - -// Returns true if OpenCL is initialized properly, false otherwise. -bool initCL( void* glCtx, void* glDC ) -{ - const char* vendorSDK = btOpenCLUtils::getSdkVendorName(); - printf("This program was compiled using the %s OpenCL SDK\n",vendorSDK); - - int ciErrNum = 0; - -#ifdef BT_USE_CLEW - ciErrNum = clewInit( "OpenCL.dll" ); - if ( ciErrNum != CLEW_SUCCESS ) { - return false; - } -#endif - -#if defined(CL_PLATFORM_MINI_CL) - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#elif defined(CL_PLATFORM_AMD) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#elif defined(CL_PLATFORM_NVIDIA) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#else - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#endif - - g_cxMainContext = btOpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - int numDev = btOpenCLUtils::getNumDevices(g_cxMainContext); - if (!numDev) - return false; - - g_cdDevice = btOpenCLUtils::getDevice(g_cxMainContext,0); - - btOpenCLDeviceInfo clInfo; - btOpenCLUtils::getDeviceInfo(g_cdDevice,clInfo); - btOpenCLUtils::printDeviceInfo(g_cdDevice); - - // create a command-queue - g_cqCommandQue = clCreateCommandQueue(g_cxMainContext, g_cdDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - return true; -} - -#endif //#ifdef USE_AMD_OPENCL - - -int main(int argc,char** argv) -{ - CommandLineArguments arg(argc,argv); - char* filename=0; - arg.GetCmdLineArgument("filename", filename); - bool dumpXml = arg.CheckCmdLineFlag("dump_xml"); - if (!dumpXml && !filename) - { - printf("There are some optional commandline arguments for this demo:\n"); - printf("Load another .bullet file instead of testFile.bullet:\n"); - printf("--filename=testfile.bullet\n"); - printf("Dump the imported .bullet file to XML\n"); - printf("--dump_xml\n"); - - } - - - - GLDebugDrawer gDebugDrawer; -#ifdef USE_AMD_OPENCL - - bool initialized = initCL(0,0); - btAssert(initialized); -#endif //USE_AMD_OPENCL - - - SerializeDemo serializeDemo; - - int mode = 0; - if (dumpXml) - mode |=bParse::FD_VERBOSE_EXPORT_XML; - if (filename) - serializeDemo.setFileName(filename); - serializeDemo.setVerboseMode(mode); - - serializeDemo.initPhysics(); - serializeDemo.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - -#ifdef CHECK_MEMORY_LEAKS - serializeDemo.exitPhysics(); -#else - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.org",&serializeDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/SerializeDemo/testFile.bullet b/Demos/SerializeDemo/testFile.bullet deleted file mode 100644 index d535938f0..000000000 Binary files a/Demos/SerializeDemo/testFile.bullet and /dev/null differ diff --git a/Demos/SerializeDemo/testFileCloth.bullet b/Demos/SerializeDemo/testFileCloth.bullet deleted file mode 100644 index 7dd84b68a..000000000 Binary files a/Demos/SerializeDemo/testFileCloth.bullet and /dev/null differ diff --git a/Demos/SimplexDemo/CMakeLists.txt b/Demos/SimplexDemo/CMakeLists.txt deleted file mode 100644 index d6ce31d1a..000000000 --- a/Demos/SimplexDemo/CMakeLists.txt +++ /dev/null @@ -1,33 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppSimplexDemo - SimplexDemo.cpp -) - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppSimplexDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppSimplexDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppSimplexDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/SimplexDemo/SimplexDemo.cpp b/Demos/SimplexDemo/SimplexDemo.cpp deleted file mode 100644 index f804c73d9..000000000 --- a/Demos/SimplexDemo/SimplexDemo.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/* - SimplexDemo demonstrated the working of the subdistance algorithm as used in GJK. - It draws the simplex, and calculates the closest vector from simplex to the origin -*/ - -#include "GL_Simplex1to4.h" -#include "LinearMath/btQuaternion.h" -#include "LinearMath/btTransform.h" -#include "GL_ShapeDrawer.h" - -#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" -#include "SimplexDemo.h" -#include "GlutStuff.h" - -btVoronoiSimplexSolver simplexSolver; - - - -float yaw=0.f,pitch=0.f,roll=0.f; -const int maxNumObjects = 4; -const int numObjects = 1; -int screenWidth = 640; -int screenHeight = 480; -/// simplex contains the vertices, and some extra code to draw and debug -GL_Simplex1to4 simplex; - - -btPolyhedralConvexShape* shapePtr[maxNumObjects]; - - -/// -/// -/// -int main(int argc,char** argv) -{ - - SimplexDemo* demo = new SimplexDemo(); - - demo->initPhysics(); - - return glutmain(argc, argv,screenWidth,screenHeight,"SimplexDemo",demo); -} - -//to be implemented by the demo - -void SimplexDemo::clientMoveAndDisplay() -{ - - displayCallback(); -} - - - -void SimplexDemo::displayCallback() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - glDisable(GL_LIGHTING); - - GL_ShapeDrawer::drawCoordSystem(); - - btScalar m[16]; - int i; - - btVector3 worldBoundsMin(-1000,-1000,-1000); - btVector3 worldBoundsMax(1000,1000,1000); - - for (i=0;idrawOpenGL(m,shapePtr[i],btVector3(1,1,1),getDebugMode(),worldBoundsMin,worldBoundsMax); - - /// calculate closest point from simplex to the origin, and draw this vector - simplex.calcClosest(m); - - } - pitch += 0.005f; - yaw += 0.01f; - - glFlush(); - glutSwapBuffers(); -} - -void SimplexDemo::initPhysics() -{ - - simplex.setSimplexSolver(&simplexSolver); - - simplex.addVertex(btVector3(-2,0,-2)); - simplex.addVertex(btVector3(2,0,-2)); - simplex.addVertex(btVector3(0,0,2)); - simplex.addVertex(btVector3(0,2,0)); - - shapePtr[0] = &simplex; - - btTransform tr; - tr.setIdentity(); -} - - diff --git a/Demos/SimplexDemo/SimplexDemo.h b/Demos/SimplexDemo/SimplexDemo.h deleted file mode 100644 index 72f620039..000000000 --- a/Demos/SimplexDemo/SimplexDemo.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef SIMPLEX_DEMO_H -#define SIMPLEX_DEMO_H - -#include "GlutDemoApplication.h" - -///SimplexDemo shows the working of the sub-distance algorithm, used inside GJK -class SimplexDemo : public GlutDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - -}; - -#endif //SIMPLEX_DEMO_H - - diff --git a/Demos/SliderConstraintDemo/CMakeLists.txt b/Demos/SliderConstraintDemo/CMakeLists.txt deleted file mode 100644 index d8b40c60c..000000000 --- a/Demos/SliderConstraintDemo/CMakeLists.txt +++ /dev/null @@ -1,36 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( -OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppSliderConstraintDemo - SliderConstraintDemo.cpp - main.cpp -) - - - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppSliderConstraintDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppSliderConstraintDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppSliderConstraintDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/SliderConstraintDemo/SliderConstraintDemo.cpp b/Demos/SliderConstraintDemo/SliderConstraintDemo.cpp deleted file mode 100644 index 12fe4e56d..000000000 --- a/Demos/SliderConstraintDemo/SliderConstraintDemo.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/* -Added by Roman Ponomarev (rponom@gmail.com) -April 04, 2008 - -Added support for ODE sover -April 24, 2008 -*/ - - - - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" - -#include "GLDebugDrawer.h" - - -#include //printf debugging - -#include "SliderConstraintDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - - - -#define SLIDER_DEMO_USE_ODE_SOLVER 0 -#define SLIDER_DEMO_USE_6DOF 0 - -#define CUBE_HALF_EXTENTS 1.f - -#define SLIDER_ENABLE_ALL_DEMOS 1 - - - -// A couple of sliders -#if SLIDER_DEMO_USE_6DOF - static btGeneric6DofConstraint *spSlider1, *spSlider2; -#else - static btSliderConstraint *spSlider1, *spSlider2; -#endif - -static btPoint2PointConstraint* spP2PConst; -//static btHingeConstraint* spHingeConst; - - - -static void draw_axes(const btRigidBody& rb, const btTransform& frame) -{ - glBegin(GL_LINES); - // draw world transform - btVector3 from = rb.getWorldTransform().getOrigin(); - btVector3 to = from + rb.getWorldTransform().getBasis() * btVector3(5,0,0); - // X in red - glColor3f(255.0F, 0.0F, 0.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - to = from + rb.getWorldTransform().getBasis() * btVector3(0,5,0); - // Y in green - glColor3f(0.0F, 255.0F, 0.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - to = from + rb.getWorldTransform().getBasis() * btVector3(0,0,5); - // Z in blue - glColor3f(0.0F, 0.0F, 255.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - // draw slider frame - btTransform calc_frame = rb.getWorldTransform() * frame; - from = calc_frame.getOrigin(); - to = from + calc_frame.getBasis() * btVector3(10,0,0); - // X in red - glColor3f(255.0F, 0.0F, 0.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - to = from + calc_frame.getBasis() * btVector3(0,10,0); - // Y in green - glColor3f(0.0F, 255.0F, 0.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - to = from + calc_frame.getBasis() * btVector3(0,0,10); - // Z in blue - glColor3f(0.0F, 0.0F, 255.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - glEnd(); -} // draw_axes() - - - -#if SLIDER_DEMO_USE_6DOF -static void drawSlider(btGeneric6DofConstraint* pSlider) -{ - draw_axes(pSlider->getRigidBodyA(), pSlider->getFrameOffsetA()); - draw_axes(pSlider->getRigidBodyB(), pSlider->getFrameOffsetB()); -} // drawSlider() -#else -static void drawSlider(btSliderConstraint* pSlider) -{ - draw_axes(pSlider->getRigidBodyA(), pSlider->getFrameOffsetA()); - draw_axes(pSlider->getRigidBodyB(), pSlider->getFrameOffsetB()); - // draw limits in white - btVector3 from(pSlider->getLowerLinLimit(), 0, 0); - btVector3 to(pSlider->getUpperLinLimit(), 0, 0); - btTransform trans; - if(pSlider->getUseLinearReferenceFrameA()) - { - trans = pSlider->getRigidBodyA().getWorldTransform() * pSlider->getFrameOffsetA(); - } - else - { - trans = pSlider->getRigidBodyB().getWorldTransform() * pSlider->getFrameOffsetB(); - } - from = trans * from; - to = trans * to; - glBegin(GL_LINES); - glColor3f(255.0F, 255.0F, 255.0F); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - glEnd(); -} // drawSlider() -#endif - - - -void SliderConstraintDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - setCameraDistance(26.f); - - // init world - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - m_overlappingPairCache = new btAxisSweep3(worldMin,worldMax); - -#if SLIDER_DEMO_USE_ODE_SOLVER - m_constraintSolver = new btOdeQuickstepConstraintSolver(); -#else - m_constraintSolver = new btSequentialImpulseConstraintSolver(); -#endif - - btDiscreteDynamicsWorld* wp = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_constraintSolver,m_collisionConfiguration); - // wp->getSolverInfo().m_numIterations = 20; // default is 10 - m_dynamicsWorld = wp; -// wp->getSolverInfo().m_erp = 0.8; - - // add floor - //btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); - m_collisionShapes.push_back(groundShape); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-76,0)); - btRigidBody* groundBody; - groundBody = localCreateRigidBody(0, groundTransform, groundShape); - - // add box shape (will be reused for all bodies) - btCollisionShape* shape = new btBoxShape(btVector3(CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS)); - m_collisionShapes.push_back(shape); - // mass of dymamic bodies - btScalar mass = btScalar(1.); - - // add dynamic rigid body A1 - btTransform trans; - trans.setIdentity(); - btVector3 worldPos(-20,0,0); - trans.setOrigin(worldPos); - btTransform frameInA, frameInB; - frameInA = btTransform::getIdentity(); - frameInB = btTransform::getIdentity(); - -#if SLIDER_ENABLE_ALL_DEMOS - btRigidBody* pRbA1 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbA1 = localCreateRigidBody(0.f, trans, shape); - pRbA1->setActivationState(DISABLE_DEACTIVATION); - - // add dynamic rigid body B1 - worldPos.setValue(-30,0,0); - trans.setOrigin(worldPos); - btRigidBody* pRbB1 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbB1 = localCreateRigidBody(0.f, trans, shape); - pRbB1->setActivationState(DISABLE_DEACTIVATION); - - // create slider constraint between A1 and B1 and add it to world - -#if SLIDER_DEMO_USE_6DOF - spSlider1 = new btGeneric6DofConstraint(*pRbA1, *pRbB1, frameInA, frameInB, true); - btVector3 lowerSliderLimit = btVector3(-20,0,0); - btVector3 hiSliderLimit = btVector3(-10,0,0); -// btVector3 lowerSliderLimit = btVector3(-20,-5,-5); -// btVector3 hiSliderLimit = btVector3(-10,5,5); - spSlider1->setLinearLowerLimit(lowerSliderLimit); - spSlider1->setLinearUpperLimit(hiSliderLimit); - spSlider1->setAngularLowerLimit(btVector3(0,0,0)); - spSlider1->setAngularUpperLimit(btVector3(0,0,0)); -#else - spSlider1 = new btSliderConstraint(*pRbA1, *pRbB1, frameInA, frameInB, true); -// spSlider1 = new btSliderConstraint(*pRbA1, *pRbB1, frameInA, frameInB, false); - spSlider1->setLowerLinLimit(-15.0F); - spSlider1->setUpperLinLimit(-5.0F); -// spSlider1->setLowerLinLimit(5.0F); -// spSlider1->setUpperLinLimit(15.0F); -// spSlider1->setLowerLinLimit(-10.0F); -// spSlider1->setUpperLinLimit(-10.0F); - - spSlider1->setLowerAngLimit(-SIMD_PI / 3.0F); - spSlider1->setUpperAngLimit( SIMD_PI / 3.0F); -#endif - - m_dynamicsWorld->addConstraint(spSlider1, true); - spSlider1->setDbgDrawSize(btScalar(5.f)); -#endif - -#if SLIDER_ENABLE_ALL_DEMOS - // add kinematic rigid body A2 -// worldPos.setValue(20,4,0); - worldPos.setValue(5,-20,0); - trans.setOrigin(worldPos); - btRigidBody* pRbA2 = localCreateRigidBody(0., trans, shape); -// btRigidBody* pRbA2 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbA2 = localCreateRigidBody(mass * 10000, trans, shape); - pRbA2->setActivationState(DISABLE_DEACTIVATION); - - // add dynamic rigid body B2 -// worldPos.setValue(-20,4,0); - worldPos.setValue(-5,-20,0); - trans.setOrigin(worldPos); -// btRigidBody* pRbB2 = localCreateRigidBody(0., trans, shape); - btRigidBody* pRbB2 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbB2 = localCreateRigidBody(mass * 10000, trans, shape); - pRbB2->setActivationState(DISABLE_DEACTIVATION); - -// frameInA.getBasis().setEulerZYX(1.f, 1.f, 1.f); -// frameInB.getBasis().setEulerZYX(1.f, 1.f, 1.f); -// frameInA.getBasis().setEulerZYX(1.f, 1.f, 1.f); -// frameInB.getBasis().setEulerZYX(1.f, 1.f, 1.f); - - -// frameInA.setOrigin(btVector3(-20., 5., 0)); -// frameInB.setOrigin(btVector3( 20., 5., 0)); - frameInA.setOrigin(btVector3(-5., 20., 0)); - frameInB.setOrigin(btVector3( 5., 20., 0)); - - - // create slider constraint between A2 and B2 and add it to world -#if SLIDER_DEMO_USE_6DOF - spSlider2 = new btGeneric6DofConstraint(*pRbA2, *pRbB2, frameInA, frameInB, true); - spSlider2->setLinearLowerLimit(lowerSliderLimit); - spSlider2->setLinearUpperLimit(hiSliderLimit); - spSlider2->setAngularLowerLimit(btVector3(0,0,0)); - spSlider2->setAngularUpperLimit(btVector3(0,0,0)); -#else - spSlider2 = new btSliderConstraint(*pRbA2, *pRbB2, frameInA, frameInB, true); -// spSlider2 = new btSliderConstraint(*pRbA2, *pRbB2, frameInA, frameInB, false); -// spSlider2->setLowerLinLimit(0.0F); -// spSlider2->setUpperLinLimit(0.0F); - spSlider2->setLowerLinLimit(-2.0F); - spSlider2->setUpperLinLimit(2.0F); -// spSlider2->setLowerLinLimit(5.0F); -// spSlider2->setUpperLinLimit(25.0F); -// spSlider2->setUpperLinLimit(-5.0F); -// spSlider2->setUpperLinLimit(-9.99F); - - -// spSlider2->setLowerAngLimit(SIMD_PI / 2.0F); -// spSlider2->setUpperAngLimit(-SIMD_PI / 2.0F); - - // spSlider2->setLowerAngLimit(-SIMD_PI / 2.0F); -// spSlider2->setUpperAngLimit(SIMD_PI / 2.0F); - -// spSlider2->setLowerAngLimit(-SIMD_PI); -// spSlider2->setUpperAngLimit(SIMD_PI *0.8F); - - -// spSlider2->setLowerAngLimit(-0.01F); -// spSlider2->setUpperAngLimit(0.01F); - spSlider2->setLowerAngLimit(-1.570796326F * 0.5f); - spSlider2->setUpperAngLimit(1.570796326F * 0.5f); -// spSlider2->setLowerAngLimit(1.F); -// spSlider2->setUpperAngLimit(-1.F); - - -// spSlider2->setDampingLimLin(0.5f); - -#if 0 - // add motors - spSlider2->setPoweredLinMotor(true); - spSlider2->setMaxLinMotorForce(0.1); - spSlider2->setTargetLinMotorVelocity(-5.0); - - spSlider2->setPoweredAngMotor(true); -// spSlider2->setMaxAngMotorForce(0.01); - spSlider2->setMaxAngMotorForce(10.0); - spSlider2->setTargetAngMotorVelocity(1.0); - - // change default damping and restitution - - spSlider2->setDampingDirLin(0.005F); - spSlider2->setRestitutionLimLin(1.1F); -#endif - - // various ODE tests -// spSlider2->setDampingLimLin(0.1F); // linear bounce factor for ODE == 1.0 - DampingLimLin; -// spSlider2->setDampingLimAng(0.1F); // angular bounce factor for ODE == 1.0 - DampingLimAng; -// spSlider2->setSoftnessOrthoAng(0.1); -// spSlider2->setSoftnessOrthoLin(0.1); -// spSlider2->setSoftnessLimLin(0.1); -// spSlider2->setSoftnessLimAng(0.1); -#endif - m_dynamicsWorld->addConstraint(spSlider2, true); - spSlider2->setDbgDrawSize(btScalar(5.f)); -#endif - -#if SLIDER_ENABLE_ALL_DEMOS -{ - // add dynamic rigid body A1 - trans.setIdentity(); - worldPos.setValue(20,0,0); - trans.setOrigin(worldPos); - btRigidBody* pRbA3 = localCreateRigidBody(0.0F, trans, shape); - pRbA3->setActivationState(DISABLE_DEACTIVATION); - - // add dynamic rigid body B1 - worldPos.setValue(25,0,0); - trans.setOrigin(worldPos); - btRigidBody* pRbB3 = localCreateRigidBody(mass, trans, shape); - pRbB3->setActivationState(DISABLE_DEACTIVATION); - - btVector3 pivA( 2.5, 0., 0.); - btVector3 pivB(-2.5, 0., 0.); - spP2PConst = new btPoint2PointConstraint(*pRbA3, *pRbB3, pivA, pivB); - m_dynamicsWorld->addConstraint(spP2PConst, true); - spP2PConst->setDbgDrawSize(btScalar(5.f)); - -} -#endif - -#if 0 // SLIDER_ENABLE_ALL_DEMOS - // add dynamic rigid body A4 - trans.setIdentity(); - worldPos.setValue(20,10,0); - trans.setOrigin(worldPos); - btRigidBody* pRbA4 = localCreateRigidBody(0.0F, trans, shape); - pRbA4->setActivationState(DISABLE_DEACTIVATION); - - // add dynamic rigid body B1 - worldPos.setValue(27,10,0); - trans.setOrigin(worldPos); - btRigidBody* pRbB4 = localCreateRigidBody(mass, trans, shape); - pRbB1->setActivationState(DISABLE_DEACTIVATION); - - - btVector3 pivA( 2., 0., 0.); - btVector3 pivB(-5., 0., 0.); - btVector3 axisA(0., 0., 1.); - btVector3 axisB(0., 0., 1.); - - spHingeConst = new btHingeConstraint(*pRbA4, *pRbB4, pivA, pivB, axisA, axisB); -// spHingeConst->setLimit(-1.57, 1.57); - spHingeConst->setLimit(1.57, -1.57); - spHingeConst->enableAngularMotor(true, 10.0, 0.19); - - m_dynamicsWorld->addConstraint(spHingeConst, true); - spHingeConst->setDbgDrawSize(btScalar(5.f)); - -#endif - -} // SliderConstraintDemo::initPhysics() - - - -SliderConstraintDemo::~SliderConstraintDemo() -{ - //cleanup in the reverse order of creation/initialization - int i; - //removed/delete constraints - for (i=m_dynamicsWorld->getNumConstraints()-1; i>=0 ;i--) - { - btTypedConstraint* constraint = m_dynamicsWorld->getConstraint(i); - m_dynamicsWorld->removeConstraint(constraint); - delete constraint; - } - //remove the rigidbodies from the dynamics world and delete them - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - //delete collision shapes - for (int j=0;jstepSimulation(dt,maxSimSubSteps); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - bool verbose = false; - if (verbose) - { - if (!numSimSteps) - printf("Interpolated transforms\n"); - else - { - if (numSimSteps > maxSimSubSteps) - { - //detect dropping frames - printf("Dropped (%i) simulation steps out of %i\n",numSimSteps - maxSimSubSteps,numSimSteps); - } else - { - printf("Simulated (%i) steps\n",numSimSteps); - } - } - } - renderme(); -// drawSlider(spSlider1); -// drawSlider(spSlider2); - glFlush(); - glutSwapBuffers(); -} // SliderConstraintDemo::clientMoveAndDisplay() - - - -void SliderConstraintDemo::displayCallback(void) -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - if(m_dynamicsWorld) - { - m_dynamicsWorld->debugDrawWorld(); - } -// drawSlider(spSlider1); -// drawSlider(spSlider2); - renderme(); - glFlush(); - glutSwapBuffers(); -} // SliderConstraintDemo::displayCallback() - - -void SliderConstraintDemo::keyboardCallback(unsigned char key, int x, int y) -{ - (void)x; - (void)y; - switch (key) - { - case 'O' : - { - bool offectOnOff; - offectOnOff = spSlider1->getUseFrameOffset(); - offectOnOff = !offectOnOff; - spSlider1->setUseFrameOffset(offectOnOff); - printf("Slider1 %s frame offset\n", offectOnOff ? "uses" : "does not use"); - offectOnOff = spSlider2->getUseFrameOffset(); - offectOnOff = !offectOnOff; - spSlider2->setUseFrameOffset(offectOnOff); - printf("Slider2 %s frame offset\n", offectOnOff ? "uses" : "does not use"); - } - break; - default : - { - DemoApplication::keyboardCallback(key, x, y); - } - break; - } -} - diff --git a/Demos/SliderConstraintDemo/SliderConstraintDemo.h b/Demos/SliderConstraintDemo/SliderConstraintDemo.h deleted file mode 100644 index f709ef22b..000000000 --- a/Demos/SliderConstraintDemo/SliderConstraintDemo.h +++ /dev/null @@ -1,73 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - - -#ifndef SLIDER_CONSTRAINT_DEMO_H -#define SLIDER_CONSTRAINT_DEMO_H - - - -#include "btBulletDynamicsCommon.h" -#include "BulletDynamics/ConstraintSolver/btSliderConstraint.h" -#include "GlutDemoApplication.h" - - - - -/// SliderConstraintDemo shows how to create a slider constraint -class SliderConstraintDemo : public GlutDemoApplication -{ - //keep track of variables to delete memory at the end - btAlignedObjectArray m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - public: - - virtual ~SliderConstraintDemo(); - - void initPhysics(); - - void initModel(); - - void drawSliders(); - void drawSliderConstraint(btSliderConstraint* constraint); - - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - static DemoApplication* Create() - { - SliderConstraintDemo* demo = new SliderConstraintDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } - - virtual void keyboardCallback(unsigned char key, int x, int y); - -}; - -#endif //SLIDER_CONSTRAINT_DEMO_H - diff --git a/Demos/SliderConstraintDemo/main.cpp b/Demos/SliderConstraintDemo/main.cpp deleted file mode 100644 index c6775a7df..000000000 --- a/Demos/SliderConstraintDemo/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* -Added by Roman Ponomarev (rponom@gmail.com) -April 04, 2008 -*/ -#include "SliderConstraintDemo.h" -#include "GlutStuff.h" - -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - SliderConstraintDemo* sliderConstraintDemo = new SliderConstraintDemo(); - - sliderConstraintDemo->initPhysics(); - sliderConstraintDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - sliderConstraintDemo->setDebugMode(btIDebugDraw::DBG_DrawConstraints+btIDebugDraw::DBG_DrawConstraintLimits); - - - return glutmain(argc, argv,640,480,"Slider Constraint Demo. http://www.continuousphysics.com/Bullet/phpBB2/", sliderConstraintDemo); -} - diff --git a/Demos/SoftDemo/AMD/premake4.lua b/Demos/SoftDemo/AMD/premake4.lua deleted file mode 100644 index b0868b4f5..000000000 --- a/Demos/SoftDemo/AMD/premake4.lua +++ /dev/null @@ -1,59 +0,0 @@ - - hasCL = findOpenCL_AMD() - - if (hasCL) then - - project "AppSoftBodyDemo_AMD" - - defines { "USE_AMD_OPENCL","CL_PLATFORM_AMD"} - - initOpenCL_AMD() - - language "C++" - - kind "ConsoleApp" - targetdir "../../.." - - libdirs {"../../../Glut"} - - links { - "LinearMath", - "BulletCollision", - "BulletDynamics", - "BulletSoftBody", - "BulletSoftBodySolvers_OpenCL_AMD", - "OpenGLSupport", - "opengl32" - } - - configuration "x64" - links { - "glut64", - "glew64s" - } - configuration "x32" - links { - "glut32", - "glew32s" - } - - configuration{} - - - includedirs { - "../../SharedOpenCL", - "../../../src", - "../../../Glut", - "../../OpenGL" - } - - files { - "../SoftDemo.cpp", - "../SoftDemo.h", - "../main.cpp", - "../../SharedOpenCL/btOpenCLUtils.cpp", - "../../SharedOpenCL/btOpenCLUtils.h", - "../../SharedOpenCL/btOpenCLInclude.h" - } - - end \ No newline at end of file diff --git a/Demos/SoftDemo/CMakeLists.txt b/Demos/SoftDemo/CMakeLists.txt deleted file mode 100644 index 7fe2edc8f..000000000 --- a/Demos/SoftDemo/CMakeLists.txt +++ /dev/null @@ -1,49 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - - -# You shouldn't have to modify anything below this line -######################################################## - -IF (USE_GLUT) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${GLUT_INCLUDE_DIR} - ) - - LINK_LIBRARIES( - OpenGLSupport BulletSoftBody BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - IF (WIN32) - ADD_EXECUTABLE(AppSoftBodyDemo - main.cpp - SoftDemo.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - ELSE() - ADD_EXECUTABLE(AppSoftBodyDemo - main.cpp - SoftDemo.cpp - - ) - ENDIF() - - - -ELSE(USE_GLUT) - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppSoftBodyDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppSoftBodyDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppSoftBodyDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/SoftDemo/Makefile.am b/Demos/SoftDemo/Makefile.am deleted file mode 100644 index ede95b818..000000000 --- a/Demos/SoftDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=SoftDemo - -SoftDemo_SOURCES=SoftDemo.cpp SoftDemo.h main.cpp -SoftDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -SoftDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/SoftDemo/SoftDemo.h b/Demos/SoftDemo/SoftDemo.h deleted file mode 100644 index eace7bea2..000000000 --- a/Demos/SoftDemo/SoftDemo.h +++ /dev/null @@ -1,197 +0,0 @@ - -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///btSoftBody implementation by Nathanael Presson - -#ifndef SOFT_DEMO_H -#define SOFT_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif -#include "LinearMath/btAlignedObjectArray.h" -#include "BulletSoftBody/btSoftBody.h" - - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; - -///collisions between two btSoftBody's -class btSoftSoftCollisionAlgorithm; - -///collisions between a btSoftBody and a btRigidBody -class btSoftRididCollisionAlgorithm; -class btSoftRigidDynamicsWorld; - - -///CcdPhysicsDemo shows basic stacking using Bullet physics, and allows toggle of Ccd (using key '1') -class SoftDemo : public PlatformDemoApplication -{ -public: - - btAlignedObjectArray m_SoftSoftCollisionAlgorithms; - - btAlignedObjectArray m_SoftRigidCollisionAlgorithms; - - btSoftBodyWorldInfo m_softBodyWorldInfo; - - - - bool m_autocam; - bool m_cutting; - bool m_raycast; - btScalar m_animtime; - btClock m_clock; - int m_lastmousepos[2]; - btVector3 m_impact; - btSoftBody::sRayCast m_results; - btSoftBody::Node* m_node; - btVector3 m_goal; - bool m_drag; - - - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - - btConstraintSolver* m_solver; - - btCollisionAlgorithmCreateFunc* m_boxBoxCF; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - -public: - - void initPhysics(); - - void exitPhysics(); - - SoftDemo() : m_drag(false) - { - setTexturing(true); - setShadows(true); - } - virtual ~SoftDemo() - { - exitPhysics(); - } - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - void createStack( btCollisionShape* boxShape, float halfCubeSize, int size, float zPos ); - - static DemoApplication* Create() - { - SoftDemo* demo = new SoftDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - virtual void setDrawClusters(bool drawClusters); - - virtual const btSoftRigidDynamicsWorld* getSoftDynamicsWorld() const - { - ///just make it a btSoftRigidDynamicsWorld please - ///or we will add type checking - return (btSoftRigidDynamicsWorld*) m_dynamicsWorld; - } - - virtual btSoftRigidDynamicsWorld* getSoftDynamicsWorld() - { - ///just make it a btSoftRigidDynamicsWorld please - ///or we will add type checking - return (btSoftRigidDynamicsWorld*) m_dynamicsWorld; - } - - // - void clientResetScene(); - void renderme(); - void keyboardCallback(unsigned char key, int x, int y); - void mouseFunc(int button, int state, int x, int y); - void mouseMotionFunc(int x,int y); - -}; - -#define MACRO_SOFT_DEMO(a) class SoftDemo##a : public SoftDemo\ -{\ -public:\ - static DemoApplication* Create()\ - {\ - SoftDemo* demo = new SoftDemo##a;\ - extern int current_demo;\ - current_demo=a;\ - demo->myinit();\ - demo->initPhysics();\ - return demo;\ - }\ -}; - - -MACRO_SOFT_DEMO(0) //Init_Cloth -MACRO_SOFT_DEMO(1) //Init_Pressure -MACRO_SOFT_DEMO(2)//Init_Volume -MACRO_SOFT_DEMO(3)//Init_Ropes -MACRO_SOFT_DEMO(4)//Init_Ropes_Attach -MACRO_SOFT_DEMO(5)//Init_ClothAttach -MACRO_SOFT_DEMO(6)//Init_Sticks -MACRO_SOFT_DEMO(7)//Init_Collide -MACRO_SOFT_DEMO(8)//Init_Collide2 -MACRO_SOFT_DEMO(9)//Init_Collide3 -MACRO_SOFT_DEMO(10)//Init_Impact -MACRO_SOFT_DEMO(11)//Init_Aero -MACRO_SOFT_DEMO(12)//Init_Friction -MACRO_SOFT_DEMO(13)//Init_Torus -MACRO_SOFT_DEMO(14)//Init_TorusMatch -MACRO_SOFT_DEMO(15)//Init_Bunny -MACRO_SOFT_DEMO(16)//Init_BunnyMatch -MACRO_SOFT_DEMO(17)//Init_Cutting1 -MACRO_SOFT_DEMO(18)//Init_ClusterDeform -MACRO_SOFT_DEMO(19)//Init_ClusterCollide1 -MACRO_SOFT_DEMO(20)//Init_ClusterCollide2 -MACRO_SOFT_DEMO(21)//Init_ClusterSocket -MACRO_SOFT_DEMO(22)//Init_ClusterHinge -MACRO_SOFT_DEMO(23)//Init_ClusterCombine -MACRO_SOFT_DEMO(24)//Init_ClusterCar -MACRO_SOFT_DEMO(25)//Init_ClusterRobot -MACRO_SOFT_DEMO(26)//Init_ClusterStackSoft -MACRO_SOFT_DEMO(27)//Init_ClusterStackMixed -MACRO_SOFT_DEMO(28)//Init_TetraCube -MACRO_SOFT_DEMO(29)//Init_TetraBunny - - -#endif //CCD_PHYSICS_DEMO_H - - - - - diff --git a/Demos/SoftDemo/main.cpp b/Demos/SoftDemo/main.cpp deleted file mode 100644 index 3408ae3d6..000000000 --- a/Demos/SoftDemo/main.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "SoftDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" - -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - SoftDemo* softDemo = new SoftDemo(); - - softDemo->initPhysics(); - softDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - - glutmain(argc, argv,1024,768,"Bullet Physics Demo. http://bulletphysics.com",softDemo); - - delete softDemo; - return 0; - -} diff --git a/Demos/TerrainDemo/Makefile.am b/Demos/TerrainDemo/Makefile.am deleted file mode 100644 index 3dbfb1093..000000000 --- a/Demos/TerrainDemo/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ - -noinst_PROGRAMS=TerrainDemo - -TerrainDemo_SOURCES=TerrainDemo.cpp TerrainDemo.h main.cpp -TerrainDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -TerrainDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/TerrainDemo/TerrainDemo.cpp b/Demos/TerrainDemo/TerrainDemo.cpp deleted file mode 100644 index cc32b689f..000000000 --- a/Demos/TerrainDemo/TerrainDemo.cpp +++ /dev/null @@ -1,921 +0,0 @@ - -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006,2008 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "TerrainDemo.h" // always include our own header first! - -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" - -#include "GLDebugDrawer.h" - -#include "GL_ShapeDrawer.h" - -#include "GlutStuff.h" -#include "GLDebugFont.h" - - - -// constants ------------------------------------------------------------------- -static const float s_gravity = 9.8; // 9.8 m/s^2 - -static const int s_gridSize = 64 + 1; // must be (2^N) + 1 -static const float s_gridSpacing = 5.0; - -static const float s_gridHeightScale = 0.2; - -// the singularity at the center of the radial model means we need a lot of -// finely-spaced time steps to get the physics right. -// These numbers are probably too aggressive for a real game! -static const int s_requestedHz = 180; -static const float s_engineTimeStep = 1.0 / s_requestedHz; - -// delta phase: radians per second -static const float s_deltaPhase = 0.25 * 2.0 * SIMD_PI; - -// what type of terrain is generated? -enum eTerrainModel { - eRadial = 1, // deterministic - eFractal = 2 // random -}; - - -typedef unsigned char byte_t; - - - -//////////////////////////////////////////////////////////////////////////////// -// -// static helper methods -// -// Only used within this file (helpers and terrain generation, etc) -// -//////////////////////////////////////////////////////////////////////////////// - -static const char * -getTerrainTypeName -( -eTerrainModel model -) -{ - switch (model) { - case eRadial: - return "Radial"; - - case eFractal: - return "Fractal"; - - default: - btAssert(!"bad terrain model type"); - } - - return NULL; -} - - - -static const char * -getDataTypeName -( -PHY_ScalarType type -) -{ - switch (type) { - case PHY_UCHAR: - return "UnsignedChar"; - - case PHY_SHORT: - return "Short"; - - case PHY_FLOAT: - return "Float"; - - default: - btAssert(!"bad heightfield data type"); - } - - return NULL; -} - - - -static const char * -getUpAxisName -( -int axis -) -{ - switch (axis) { - case 0: - return "X"; - - case 1: - return "Y"; - - case 2: - return "Z"; - - default: - btAssert(!"bad up axis"); - } - - return NULL; -} - - - -static btVector3 -getUpVector -( -int upAxis, -btScalar regularValue, -btScalar upValue -) -{ - btAssert(upAxis >= 0 && upAxis <= 2 && "bad up axis"); - - btVector3 v(regularValue, regularValue, regularValue); - v[upAxis] = upValue; - - return v; -} - - - -// TODO: it would probably cleaner to have a struct per data type, so -// you could lookup byte sizes, conversion functions, etc. -static int getByteSize -( -PHY_ScalarType type -) -{ - int size = 0; - - switch (type) { - case PHY_FLOAT: - size = sizeof(float); - break; - - case PHY_UCHAR: - size = sizeof(unsigned char); - break; - - case PHY_SHORT: - size = sizeof(short); - break; - - default: - btAssert(!"Bad heightfield data type"); - } - - return size; -} - - - -static float -convertToFloat -( -const byte_t * p, -PHY_ScalarType type -) -{ - btAssert(p); - - switch (type) { - case PHY_FLOAT: - { - float * pf = (float *) p; - return *pf; - } - - case PHY_UCHAR: - { - unsigned char * pu = (unsigned char *) p; - return ((*pu) * s_gridHeightScale); - } - - case PHY_SHORT: - { - short * ps = (short *) p; - return ((*ps) * s_gridHeightScale); - } - - default: - btAssert(!"bad type"); - } - - return 0; -} - - - -static float -getGridHeight -( -byte_t * grid, -int i, -int j, -PHY_ScalarType type -) -{ - btAssert(grid); - btAssert(i >= 0 && i < s_gridSize); - btAssert(j >= 0 && j < s_gridSize); - - int bpe = getByteSize(type); - btAssert(bpe > 0 && "bad bytes per element"); - - int idx = (j * s_gridSize) + i; - long offset = ((long) bpe) * idx; - - byte_t * p = grid + offset; - - return convertToFloat(p, type); -} - - - -static void -convertFromFloat -( -byte_t * p, -float value, -PHY_ScalarType type -) -{ - btAssert(p && "null"); - - switch (type) { - case PHY_FLOAT: - { - float * pf = (float *) p; - *pf = value; - } - break; - - case PHY_UCHAR: - { - unsigned char * pu = (unsigned char *) p; - *pu = (unsigned char) (value / s_gridHeightScale); - } - break; - - case PHY_SHORT: - { - short * ps = (short *) p; - *ps = (short) (value / s_gridHeightScale); - } - break; - - default: - btAssert(!"bad type"); - } -} - - - -// creates a radially-varying heightfield -static void -setRadial -( -byte_t * grid, -int bytesPerElement, -PHY_ScalarType type, -float phase = 0.0 -) -{ - btAssert(grid); - btAssert(bytesPerElement > 0); - - // min/max - float period = 0.5 / s_gridSpacing; - float floor = 0.0; - float min_r = 3.0 * sqrt(s_gridSpacing); - float magnitude = 50.0 * sqrt(s_gridSpacing); - - // pick a base_phase such that phase = 0 results in max height - // (this way, if you create a heightfield with phase = 0, - // you can rely on the min/max heights that result) - float base_phase = (0.5 * SIMD_PI) - (period * min_r); - phase += base_phase; - - // center of grid - float cx = 0.5 * s_gridSize * s_gridSpacing; - float cy = cx; // assume square grid - byte_t * p = grid; - for (int i = 0; i < s_gridSize; ++i) { - float x = i * s_gridSpacing; - for (int j = 0; j < s_gridSize; ++j) { - float y = j * s_gridSpacing; - - float dx = x - cx; - float dy = y - cy; - - float r = sqrt((dx * dx) + (dy * dy)); - - float z = period; - if (r < min_r) { - r = min_r; - } - z = (1.0 / r) * sin(period * r + phase); - if (z > period) { - z = period; - } else if (z < -period) { - z = -period; - } - z = floor + magnitude * z; - - convertFromFloat(p, z, type); - p += bytesPerElement; - } - } -} - - - -static float -randomHeight -( -int step -) -{ - return (0.33 * s_gridSpacing * s_gridSize * step * (rand() - (0.5 * RAND_MAX))) / (1.0 * RAND_MAX * s_gridSize); -} - - - -static void -dumpGrid -( -const byte_t * grid, -int bytesPerElement, -PHY_ScalarType type, -int max -) -{ - //std::cerr << "Grid:\n"; - - char buffer[32]; - - for (int j = 0; j < max; ++j) { - for (int i = 0; i < max; ++i) { - long offset = j * s_gridSize + i; - float z = convertToFloat(grid + offset * bytesPerElement, type); - sprintf(buffer, "%6.2f", z); - //std::cerr << " " << buffer; - } - //std::cerr << "\n"; - } -} - - - -static void -updateHeight -( -byte_t * p, -float new_val, -PHY_ScalarType type -) -{ - float old_val = convertToFloat(p, type); - if (!old_val) { - convertFromFloat(p, new_val, type); - } -} - - - -// creates a random, fractal heightfield -static void -setFractal -( -byte_t * grid, -int bytesPerElement, -PHY_ScalarType type, -int step -) -{ - btAssert(grid); - btAssert(bytesPerElement > 0); - btAssert(step > 0); - btAssert(step < s_gridSize); - - int newStep = step / 2; -// std::cerr << "Computing grid with step = " << step << ": before\n"; -// dumpGrid(grid, bytesPerElement, type, step + 1); - - // special case: starting (must set four corners) - if (s_gridSize - 1 == step) { - // pick a non-zero (possibly negative) base elevation for testing - float base = randomHeight(step / 2); - - convertFromFloat(grid, base, type); - convertFromFloat(grid + step * bytesPerElement, base, type); - convertFromFloat(grid + step * s_gridSize * bytesPerElement, base, type); - convertFromFloat(grid + (step * s_gridSize + step) * bytesPerElement, base, type); - } - - // determine elevation of each corner - float c00 = convertToFloat(grid, type); - float c01 = convertToFloat(grid + step * bytesPerElement, type); - float c10 = convertToFloat(grid + (step * s_gridSize) * bytesPerElement, type); - float c11 = convertToFloat(grid + (step * s_gridSize + step) * bytesPerElement, type); - - // set top middle - updateHeight(grid + newStep * bytesPerElement, 0.5 * (c00 + c01) + randomHeight(step), type); - - // set left middle - updateHeight(grid + (newStep * s_gridSize) * bytesPerElement, 0.5 * (c00 + c10) + randomHeight(step), type); - - // set right middle - updateHeight(grid + (newStep * s_gridSize + step) * bytesPerElement, 0.5 * (c01 + c11) + randomHeight(step), type); - - // set bottom middle - updateHeight(grid + (step * s_gridSize + newStep) * bytesPerElement, 0.5 * (c10 + c11) + randomHeight(step), type); - - // set middle - updateHeight(grid + (newStep * s_gridSize + newStep) * bytesPerElement, 0.25 * (c00 + c01 + c10 + c11) + randomHeight(step), type); - -// std::cerr << "Computing grid with step = " << step << ": after\n"; -// dumpGrid(grid, bytesPerElement, type, step + 1); - - // terminate? - if (newStep < 2) { - return; - } - - // recurse - setFractal(grid, bytesPerElement, type, newStep); - setFractal(grid + newStep * bytesPerElement, bytesPerElement, type, newStep); - setFractal(grid + (newStep * s_gridSize) * bytesPerElement, bytesPerElement, type, newStep); - setFractal(grid + ((newStep * s_gridSize) + newStep) * bytesPerElement, bytesPerElement, type, newStep); -} - - - -static byte_t * -getRawHeightfieldData -( -eTerrainModel model, -PHY_ScalarType type, -btScalar& minHeight, -btScalar& maxHeight -) -{ -// std::cerr << "\nRegenerating terrain\n"; -// std::cerr << " model = " << model << "\n"; -// std::cerr << " type = " << type << "\n"; - - long nElements = ((long) s_gridSize) * s_gridSize; -// std::cerr << " nElements = " << nElements << "\n"; - - int bytesPerElement = getByteSize(type); -// std::cerr << " bytesPerElement = " << bytesPerElement << "\n"; - btAssert(bytesPerElement > 0 && "bad bytes per element"); - - long nBytes = nElements * bytesPerElement; -// std::cerr << " nBytes = " << nBytes << "\n"; - byte_t * raw = new byte_t[nBytes]; - btAssert(raw && "out of memory"); - - // reseed randomization every 30 seconds -// srand(time(NULL) / 30); - - // populate based on model - switch (model) { - case eRadial: - setRadial(raw, bytesPerElement, type); - break; - - case eFractal: - for (int i = 0; i < nBytes; i++) - { - raw[i] = 0; - } - setFractal(raw, bytesPerElement, type, s_gridSize - 1); - break; - - default: - btAssert(!"bad model type"); - } - - if (0) { - // inside if(0) so it keeps compiling but isn't - // exercised and doesn't cause warnings -// std::cerr << "final grid:\n"; - dumpGrid(raw, bytesPerElement, type, s_gridSize - 1); - } - - // find min/max - for (int i = 0; i < s_gridSize; ++i) { - for (int j = 0; j < s_gridSize; ++j) { - float z = getGridHeight(raw, i, j, type); -// std::cerr << "i=" << i << ", j=" << j << ": z=" << z << "\n"; - - // update min/max - if (!i && !j) { - minHeight = z; - maxHeight = z; - } else { - if (z < minHeight) { - minHeight = z; - } - if (z > maxHeight) { - maxHeight = z; - } - } - } - } - - if (maxHeight < -minHeight) { - maxHeight = -minHeight; - } - if (minHeight > -maxHeight) { - minHeight = -maxHeight; - } - -// std::cerr << " minHeight = " << minHeight << "\n"; -// std::cerr << " maxHeight = " << maxHeight << "\n"; - - return raw; -} - - - -//////////////////////////////////////////////////////////////////////////////// -// -// TerrainDemo class -// -//////////////////////////////////////////////////////////////////////////////// - -/// class that demonstrates the btHeightfieldTerrainShape object -class TerrainDemo : public GlutDemoApplication { -public: - // constructor, destructor --------------------------------------------- - TerrainDemo(void); - ~TerrainDemo(void); - - virtual void initPhysics() {} - - // public class methods ------------------------------------------------ - void initialize(void); - - // DemoApplication class interface methods ----------------------------- - void clientMoveAndDisplay(void); - void keyboardCallback(unsigned char key, int x, int y); - void renderme(void); - -private: - // private helper methods ---------------------------------------------- - void resetPhysics(void); - void clearWorld(void); - - // private data members ------------------------------------------------ - btDefaultCollisionConfiguration * m_collisionConfiguration; - btCollisionDispatcher * m_dispatcher; - btAxisSweep3 * m_overlappingPairCache; - btSequentialImpulseConstraintSolver * m_constraintSolver; - btAlignedObjectArray m_collisionShapes; - int m_upAxis; - PHY_ScalarType m_type; - eTerrainModel m_model; - byte_t * m_rawHeightfieldData; - btScalar m_minHeight; - btScalar m_maxHeight; - float m_phase; // for dynamics - bool m_isDynamic; -}; - - - -TerrainDemo::TerrainDemo(void) -: -m_collisionConfiguration(NULL), -m_dispatcher(NULL), -m_overlappingPairCache(NULL), -m_constraintSolver(NULL), -m_upAxis(1), -m_type(PHY_FLOAT), -m_model(eFractal), -m_rawHeightfieldData(NULL), -m_phase(0.0), -m_isDynamic(true) -{ -} - - - -TerrainDemo::~TerrainDemo(void) -{ - clearWorld(); - - //delete dynamics world - delete m_dynamicsWorld; - - //delete solver - delete m_constraintSolver; - - //delete broadphase - delete m_overlappingPairCache; - - //delete dispatcher - delete m_dispatcher; - - delete m_collisionConfiguration; - -} - - - -//////////////////////////////////////////////////////////////////////////////// -// -// TerrainDemo -- public class methods -// -//////////////////////////////////////////////////////////////////////////////// - -/// one-time class and physics initialization -void TerrainDemo::initialize(void) -{ -// std::cerr << "initializing...\n"; - - // set up basic state - m_upAxis = 1; // start with Y-axis as "up" - m_type = PHY_FLOAT; - m_model = eRadial;//eFractal; - m_isDynamic = true; - - // set up the physics world - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - btVector3 worldMin(-1000,-1000,-1000); - btVector3 worldMax(1000,1000,1000); - m_overlappingPairCache = new btAxisSweep3(worldMin,worldMax); - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_constraintSolver,m_collisionConfiguration); - - // initialize axis- or type-dependent physics from here - this->resetPhysics(); -} - - - -//////////////////////////////////////////////////////////////////////////////// -// -// TerrainDemo -- DemoApplication class interface methods -// -//////////////////////////////////////////////////////////////////////////////// - -void TerrainDemo::clientMoveAndDisplay(void) -{ - // elapsed time - float us = getDeltaTimeMicroseconds(); - float seconds = 1.0e-6 * us; - - // we'll carefully iterate through each time step so we can update - // the dynamic model if necessary - long nStepsPerIteration = 1; - while (seconds > 1.0e-6) { - float dt = nStepsPerIteration * s_engineTimeStep; - if (dt > seconds) { - dt = seconds; - } - seconds -= dt; - // std::cerr << " Stepping through " << dt << " seconds\n"; - - // if dynamic and radial, go ahead and update the field - if (m_rawHeightfieldData && m_isDynamic && eRadial == m_model) { - m_phase += s_deltaPhase * dt; - if (m_phase > 2.0 * SIMD_PI) { - m_phase -= 2.0 * SIMD_PI; - } - int bpe = getByteSize(m_type); - btAssert(bpe > 0 && "Bad bytes per element"); - setRadial(m_rawHeightfieldData, bpe, m_type, m_phase); - } - - if (m_dynamicsWorld) { - m_dynamicsWorld->stepSimulation(dt, - nStepsPerIteration + 1, s_engineTimeStep); - } - } - - // okay, render - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - renderme(); - glFlush(); - glutSwapBuffers(); -} - - -static PHY_ScalarType nextType (PHY_ScalarType type) -{ - switch (type) - { - case PHY_FLOAT: - return PHY_SHORT; - break; - case PHY_SHORT: - return PHY_UCHAR; - break; - case PHY_UCHAR: - return PHY_FLOAT; - break; - } - btAssert (0); - return PHY_FLOAT; -} - -void TerrainDemo::keyboardCallback(unsigned char key, int x, int y) { - - if (',' == key) { - // increment model - m_model = (eFractal == m_model) ? eRadial : eFractal; - this->resetPhysics(); - } - if ('/' == key) { - // increment type - m_type = nextType(m_type); - this->resetPhysics(); - } - if ('\\' == key) { - // increment axis - m_upAxis++; - if (m_upAxis > 2) { - m_upAxis = 0; - } - this->resetPhysics(); - } - if ('[' == key) { - // toggle dynamics - m_isDynamic = !m_isDynamic; - } - - // let demo base class handle! - DemoApplication::keyboardCallback(key, x, y); -} - - - -static void doPrint(int x,int& y,int dy,const char * text) -{ - GLDebugDrawString(x,y, text); - y += dy; -} - - - -/// override the default display just so we can overlay a bit more text -void TerrainDemo::renderme(void) -{ - // give base class a shot - DemoApplication::renderme(); - - // overlay any debug information - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - // switch to orthographic - setOrthographicProjection(); - - // we'll draw on the right top of the screen - const int lineWidth = 200; - const int lineHeight = 16; - char buffer[256]; - - int xStart = m_glutScreenWidth - lineWidth; - int yStart = lineHeight; - - sprintf(buffer, "Terrain Type: %s", getTerrainTypeName(m_model)); - doPrint(xStart, yStart, lineHeight, buffer); - doPrint(xStart, yStart, lineHeight, "Press ',' to cycle terrain types"); - doPrint(xStart, yStart, lineHeight, ""); - - sprintf(buffer, "Data Type: %s", getDataTypeName(m_type)); - doPrint(xStart, yStart, lineHeight, buffer); - doPrint(xStart, yStart, lineHeight, "Press '/' to cycle data types"); - doPrint(xStart, yStart, lineHeight, ""); - - sprintf(buffer, "'up' axis: %s", getUpAxisName(m_upAxis)); - doPrint(xStart, yStart, lineHeight, buffer); - doPrint(xStart, yStart, lineHeight, "Press '\\' to cycle 'up' axes"); - doPrint(xStart, yStart, lineHeight, ""); - - if (eRadial == m_model) { - sprintf(buffer, "Dynamic: %s", m_isDynamic ? "yes" : "no"); - doPrint(xStart, yStart, lineHeight, buffer); - doPrint(xStart, yStart, lineHeight, "Press '[' to toggle dynamics"); - } -} - - - -//////////////////////////////////////////////////////////////////////////////// -// -// TerrainDemo -- private helper methods -// -//////////////////////////////////////////////////////////////////////////////// - -/// called whenever key terrain attribute is changed -void TerrainDemo::resetPhysics(void) -{ - // remove old heightfield - clearWorld(); - - // reset gravity to point in appropriate direction - m_dynamicsWorld->setGravity(getUpVector(m_upAxis, 0.0, -s_gravity)); - - // get new heightfield of appropriate type - m_rawHeightfieldData = - getRawHeightfieldData(m_model, m_type, m_minHeight, m_maxHeight); - btAssert(m_rawHeightfieldData && "failed to create raw heightfield"); - - bool flipQuadEdges = false; - btHeightfieldTerrainShape * heightfieldShape = - new btHeightfieldTerrainShape(s_gridSize, s_gridSize, - m_rawHeightfieldData, - s_gridHeightScale, - m_minHeight, m_maxHeight, - m_upAxis, m_type, flipQuadEdges); - btAssert(heightfieldShape && "null heightfield"); - - // scale the shape - btVector3 localScaling = getUpVector(m_upAxis, s_gridSpacing, 1.0); - heightfieldShape->setLocalScaling(localScaling); - - // stash this shape away - m_collisionShapes.push_back(heightfieldShape); - - // set origin to middle of heightfield - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(0,-20,0)); - - // create ground object - float mass = 0.0; - localCreateRigidBody(mass, tr, heightfieldShape); -} - - -/// removes all objects and shapes from the world -void TerrainDemo::clearWorld(void) -{ - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;jinitialize(); - - return demo; -} - diff --git a/Demos/TerrainDemo/main.cpp b/Demos/TerrainDemo/main.cpp deleted file mode 100644 index 6510f24f2..000000000 --- a/Demos/TerrainDemo/main.cpp +++ /dev/null @@ -1,14 +0,0 @@ - -#include "TerrainDemo.h" -#include "GlutStuff.h" - -int main(int argc,char** argv) -{ - DemoApplication * demo = btCreateTerrainDemo(); - btAssert(demo && "failed to create terrain demo object"); - - return glutmain(argc, argv, 800, 600, - "Terrain Demo. http://www.continuousphysics.com/Bullet/phpBB2/", - demo); -} - diff --git a/Demos/ThreadingDemo/CMakeLists.txt b/Demos/ThreadingDemo/CMakeLists.txt deleted file mode 100644 index 7ecd933f3..000000000 --- a/Demos/ThreadingDemo/CMakeLists.txt +++ /dev/null @@ -1,48 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -#currently this demo has only been tested under Windows 32bit -#IF (WIN32) - -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ../OpenGL - ${VECTOR_MATH_INCLUDE} -) - -LINK_LIBRARIES( -BulletMultiThreaded BulletDynamics BulletCollision LinearMath -) - -IF (WIN32) -ADD_EXECUTABLE(AppThreadingDemo - main.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppThreadingDemo - main.cpp - ) -ENDIF() - -IF (UNIX) - TARGET_LINK_LIBRARIES(AppThreadingDemo pthread) -ENDIF(UNIX) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppThreadingDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - -#ENDIF(WIN32) diff --git a/Demos/ThreadingDemo/main.cpp b/Demos/ThreadingDemo/main.cpp deleted file mode 100644 index 17fbd1b09..000000000 --- a/Demos/ThreadingDemo/main.cpp +++ /dev/null @@ -1,185 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2010 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/// ThreadingDemo shows how to use the cross platform thread support interface. -/// You can start threads and perform a blocking wait for completion -/// Under Windows it uses Win32 Threads. On Mac and Linux it uses pthreads. On PlayStation 3 Cell SPU it uses SPURS. - -/// June 2010 -/// New: critical section/barriers and non-blocking pollingn for completion, currently Windows only - -void SampleThreadFunc(void* userPtr,void* lsMemory); -void* SamplelsMemoryFunc(); - -#include -#include "BulletMultiThreaded/PlatformDefinitions.h" - -#ifdef USE_PTHREADS -//#ifdef __APPLE__ -#include "BulletMultiThreaded/PosixThreadSupport.h" - -btThreadSupportInterface* createThreadSupport(int numThreads) -{ - PosixThreadSupport::ThreadConstructionInfo constructionInfo("testThreads", - SampleThreadFunc, - SamplelsMemoryFunc, - numThreads); - btThreadSupportInterface* threadSupport = new PosixThreadSupport(constructionInfo); - - return threadSupport; - -} - - -#elif defined( _WIN32) -#include "BulletMultiThreaded/Win32ThreadSupport.h" - -btThreadSupportInterface* createThreadSupport(int numThreads) -{ - Win32ThreadSupport::Win32ThreadConstructionInfo threadConstructionInfo("testThreads",SampleThreadFunc,SamplelsMemoryFunc,numThreads); - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(threadConstructionInfo); - return threadSupport; - -} - -#endif - - -struct SampleArgs -{ - SampleArgs() - :m_fakeWork(1) - { - } - btCriticalSection* m_cs; - float m_fakeWork; -}; - -struct SampleThreadLocalStorage -{ - int threadId; -}; - - -void SampleThreadFunc(void* userPtr,void* lsMemory) -{ - printf("thread started\n"); - - SampleThreadLocalStorage* localStorage = (SampleThreadLocalStorage*) lsMemory; - - SampleArgs* args = (SampleArgs*) userPtr; - int workLeft = true; - while (workLeft) - { - args->m_cs->lock(); - int count = args->m_cs->getSharedParam(0); - args->m_cs->setSharedParam(0,count-1); - args->m_cs->unlock(); - if (count>0) - { - printf("thread %d processed number %d\n",localStorage->threadId, count); - } - //do some fake work - for (int i=0;i<1000000;i++) - args->m_fakeWork = btScalar(1.21)*args->m_fakeWork; - workLeft = count>0; - } - printf("finished\n"); - //do nothing -} - - -void* SamplelsMemoryFunc() -{ - //don't create local store memory, just return 0 - return new SampleThreadLocalStorage; -} - - - - - - - - - - -int main(int argc,char** argv) -{ - int numThreads = 8; - - btThreadSupportInterface* threadSupport = createThreadSupport(numThreads); - - - threadSupport->startSPU(); - - for (int i=0;igetNumTasks();i++) - { - SampleThreadLocalStorage* storage = (SampleThreadLocalStorage*)threadSupport->getThreadLocalMemory(i); - btAssert(storage); - storage->threadId = i; - } - - - SampleArgs args; - args.m_cs = threadSupport->createCriticalSection(); - args.m_cs->setSharedParam(0,100); - - - unsigned int arg0,arg1; - int i; - for (i=0;isendRequest(1, (ppu_address_t) &args, i); - } - - bool blockingWait =true; - if (blockingWait) - { - for (i=0;iwaitForResponse(&arg0,&arg1); - printf("finished waiting for response: %d %d\n", arg0,arg1); - } - } else - { -#if _WIN32 - int numActiveThreads = numThreads; - while (numActiveThreads) - { - if (((Win32ThreadSupport*)threadSupport)->isTaskCompleted(&arg0,&arg1,0)) - { - numActiveThreads--; - printf("numActiveThreads = %d\n",numActiveThreads); - - } else - { - printf("polling\n"); - } - }; -#else - btAssert(0); - printf("non-blocking wait is not supported on this platform\n"); - exit(0); -#endif - } - -printf("stopping threads\n"); - - delete threadSupport; - printf("Press ENTER to quit\n"); - getchar(); - return 0; -} diff --git a/Demos/UserCollisionAlgorithm/CMakeLists.txt b/Demos/UserCollisionAlgorithm/CMakeLists.txt deleted file mode 100644 index 087835d6a..000000000 --- a/Demos/UserCollisionAlgorithm/CMakeLists.txt +++ /dev/null @@ -1,40 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - ADD_EXECUTABLE(AppUserCollisionAlgorithm - UserCollisionAlgorithm.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppUserCollisionAlgorithm - UserCollisionAlgorithm.cpp - ) -ENDIF() - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppUserCollisionAlgorithm PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.cpp b/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.cpp deleted file mode 100644 index 5d094f2e4..000000000 --- a/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.cpp +++ /dev/null @@ -1,175 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" -#include "UserCollisionAlgorithm.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" - -//The user defined collision algorithm -#include "BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.h" - -GLDebugDrawer debugDrawer; - -static const int NUM_VERTICES = 5; -static const int NUM_TRIANGLES=4; - -btVector3 gVertices[NUM_VERTICES]; -int gIndices[NUM_TRIANGLES*3]; -const float TRIANGLE_SIZE=10.f; - - -///User can override this material combiner by implementing gContactAddedCallback and setting body0->m_collisionFlags |= btCollisionObject::customMaterialCallback; -inline btScalar calculateCombinedFriction(float friction0,float friction1) -{ - btScalar friction = friction0 * friction1; - - const btScalar MAX_FRICTION = 10.f; - if (friction < -MAX_FRICTION) - friction = -MAX_FRICTION; - if (friction > MAX_FRICTION) - friction = MAX_FRICTION; - return friction; - -} - -inline btScalar calculateCombinedRestitution(float restitution0,float restitution1) -{ - return restitution0 * restitution1; -} - - - - - - -int main(int argc,char** argv) -{ - - UserCollisionAlgorithm* userCollisionAlgorithm = new UserCollisionAlgorithm; - userCollisionAlgorithm->initPhysics(); - userCollisionAlgorithm->setCameraDistance(30.f); - - return glutmain(argc, argv,640,480,"Static Concave Mesh Demo",userCollisionAlgorithm); -} - -void UserCollisionAlgorithm::initPhysics() -{ - #define TRISIZE 5.f - - - const int NUM_VERTS_X = 50; - const int NUM_VERTS_Y = 50; - const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - - btVector3* gVertices = new btVector3[totalVerts]; - - int i; - for ( i=0;iaddTriangle(gVertices[j*NUM_VERTS_X+i],gVertices[j*NUM_VERTS_X+i+1],gVertices[(j+1)*NUM_VERTS_X+i+1]); - trimesh->addTriangle(gVertices[j*NUM_VERTS_X+i],gVertices[(j+1)*NUM_VERTS_X+i+1],gVertices[(j+1)*NUM_VERTS_X+i]); - } - } - - delete[] gVertices; - - bool useQuantizedBvhTree = true; - btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh,useQuantizedBvhTree); - - //ConstraintSolver* solver = new btSequentialImpulseConstraintSolver; - btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration(); - btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration); - - btVector3 maxAabb(10000,10000,10000); - btBroadphaseInterface* broadphase = new btAxisSweep3(-maxAabb,maxAabb);//SimpleBroadphase(); - dispatcher->registerCollisionCreateFunc(GIMPACT_SHAPE_PROXYTYPE,GIMPACT_SHAPE_PROXYTYPE,new btSphereSphereCollisionAlgorithm::CreateFunc); - - btConstraintSolver* constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,broadphase,constraintSolver,collisionConfiguration); - - float mass = 0.f; - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,-2,0)); - - btRigidBody* staticBody= localCreateRigidBody(mass, startTransform,trimeshShape); - //enable custom material callback - staticBody->setCollisionFlags(staticBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK); - - { - for (int i=0;i<10;i++) - { - btCollisionShape* sphereShape = new btSphereShape(1); - startTransform.setOrigin(btVector3(1,2*i,1)); - //btRigidBody* body = localCreateRigidBody(1, startTransform,sphereShape); - localCreateRigidBody(1, startTransform,sphereShape); - } - } - - - - m_dynamicsWorld->setDebugDrawer(&debugDrawer); -} - -void UserCollisionAlgorithm::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - glutSwapBuffers(); - -} - - - - - - -void UserCollisionAlgorithm::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - glFlush(); - glutSwapBuffers(); -} - - diff --git a/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.h b/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.h deleted file mode 100644 index acfa37c09..000000000 --- a/Demos/UserCollisionAlgorithm/UserCollisionAlgorithm.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef USER_COLLISION_ALGORITHM_DEMO_H -#define USER_COLLISION_ALGORITHM_DEMO_H - -#include "GlutDemoApplication.h" - -///UserCollisionAlgorithmDemo shows how to register and use your own collision algorithm for a certain shape pair type -class UserCollisionAlgorithm : public GlutDemoApplication -{ - public: - - void initPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - - - -}; - -#endif //USER_COLLISION_ALGORITHM_DEMO_H - diff --git a/Demos/VehicleDemo/CMakeLists.txt b/Demos/VehicleDemo/CMakeLists.txt deleted file mode 100644 index 5cb862e20..000000000 --- a/Demos/VehicleDemo/CMakeLists.txt +++ /dev/null @@ -1,34 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - - -# You shouldn't have to modify anything below this line -######################################################## - - - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - -LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -ADD_EXECUTABLE(AppVehicleDemo - heightfield128x128.cpp - VehicleDemo.cpp - main.cpp -) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppVehicleDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppVehicleDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppVehicleDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/VehicleDemo/Makefile.am b/Demos/VehicleDemo/Makefile.am deleted file mode 100644 index 4a260785b..000000000 --- a/Demos/VehicleDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=VehicleDemo - -VehicleDemo_SOURCES=VehicleDemo.cpp VehicleDemo.h heightfield128x128.cpp main.cpp -VehicleDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -VehicleDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/VehicleDemo/VehicleDemo.cpp b/Demos/VehicleDemo/VehicleDemo.cpp deleted file mode 100644 index e48a50204..000000000 --- a/Demos/VehicleDemo/VehicleDemo.cpp +++ /dev/null @@ -1,683 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/// September 2006: VehicleDemo is work in progress, this file is mostly just a placeholder -/// This VehicleDemo file is very early in development, please check it later -/// One todo is a basic engine model: -/// A function that maps user input (throttle) into torque/force applied on the wheels -/// with gears etc. -#include "btBulletDynamicsCommon.h" -#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" -extern char MyHeightfield[]; -// -// By default, Bullet Vehicle uses Y as up axis. -// You can override the up axis, for example Z-axis up. Enable this define to see how to: -//#define FORCE_ZAXIS_UP 1 -// - -#ifdef FORCE_ZAXIS_UP - int rightIndex = 0; - int upIndex = 2; - int forwardIndex = 1; - btVector3 wheelDirectionCS0(0,0,-1); - btVector3 wheelAxleCS(1,0,0); -#else - int rightIndex = 0; - int upIndex = 1; - int forwardIndex = 2; - btVector3 wheelDirectionCS0(0,-1,0); - btVector3 wheelAxleCS(-1,0,0); -#endif - -#include "GLDebugDrawer.h" -#include //printf debugging - -#include "GL_ShapeDrawer.h" - -#include "GlutStuff.h" -#include "VehicleDemo.h" - -const int maxProxies = 32766; -const int maxOverlap = 65535; - -///btRaycastVehicle is the interface for the constraint that implements the raycast vehicle -///notice that for higher-quality slow-moving vehicles, another approach might be better -///implementing explicit hinged-wheel constraints with cylinder collision, rather then raycasts -float gEngineForce = 0.f; -float gBreakingForce = 0.f; - -float maxEngineForce = 1000.f;//this should be engine/velocity dependent -float maxBreakingForce = 100.f; - -float gVehicleSteering = 0.f; -float steeringIncrement = 0.04f; -float steeringClamp = 0.3f; -float wheelRadius = 0.5f; -float wheelWidth = 0.4f; -float wheelFriction = 1000;//BT_LARGE_FLOAT; -float suspensionStiffness = 20.f; -float suspensionDamping = 2.3f; -float suspensionCompression = 4.4f; -float rollInfluence = 0.1f;//1.0f; - - -btScalar suspensionRestLength(0.6); - -#define CUBE_HALF_EXTENTS 1 - - - -//////////////////////////////////// - - - - -VehicleDemo::VehicleDemo() -: -m_carChassis(0), -m_indexVertexArrays(0), -m_vertices(0), -m_cameraHeight(4.f), -m_minCameraDistance(3.f), -m_maxCameraDistance(10.f) -{ - m_vehicle = 0; - m_wheelShape = 0; - m_cameraPosition = btVector3(30,30,30); -} - -VehicleDemo::~VehicleDemo() -{ - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;jsetGravity(btVector3(0,0,-10)); -#endif - - //m_dynamicsWorld->setGravity(btVector3(0,0,0)); -btTransform tr; -tr.setIdentity(); - -//either use heightfield or triangle mesh -//#define USE_TRIMESH_GROUND 1 -#ifdef USE_TRIMESH_GROUND - int i; - -const float TRIANGLE_SIZE=20.f; - - //create a triangle-mesh ground - int vertStride = sizeof(btVector3); - int indexStride = 3*sizeof(int); - - const int NUM_VERTS_X = 20; - const int NUM_VERTS_Y = 20; - const int totalVerts = NUM_VERTS_X*NUM_VERTS_Y; - - const int totalTriangles = 2*(NUM_VERTS_X-1)*(NUM_VERTS_Y-1); - - m_vertices = new btVector3[totalVerts]; - int* gIndices = new int[totalTriangles*3]; - - - - for ( i=0;igetAabb(btTransform::getIdentity(),mmin,mmax); - - groundShape = heightFieldShape; - - heightFieldShape->setUseDiamondSubdivision(true); - - btVector3 localScaling(100,1,100); - localScaling[upIndex]=1.f; - groundShape->setLocalScaling(localScaling); - - //tr.setOrigin(btVector3(0,9940,0)); - tr.setOrigin(btVector3(0,49.4,0)); - -#endif // - - m_collisionShapes.push_back(groundShape); - - //create ground object - localCreateRigidBody(0,tr,groundShape); - tr.setOrigin(btVector3(0,0,0));//-64.5f,0)); - -#ifdef FORCE_ZAXIS_UP -// indexRightAxis = 0; -// indexUpAxis = 2; -// indexForwardAxis = 1; - btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,2.f, 0.5f)); - btCompoundShape* compound = new btCompoundShape(); - btTransform localTrans; - localTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - localTrans.setOrigin(btVector3(0,0,1)); -#else - btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,0.5f,2.f)); - m_collisionShapes.push_back(chassisShape); - - btCompoundShape* compound = new btCompoundShape(); - m_collisionShapes.push_back(compound); - btTransform localTrans; - localTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - localTrans.setOrigin(btVector3(0,1,0)); -#endif - - compound->addChildShape(localTrans,chassisShape); - - tr.setOrigin(btVector3(0,0.f,0)); - - m_carChassis = localCreateRigidBody(800,tr,compound);//chassisShape); - //m_carChassis->setDamping(0.2,0.2); - - m_wheelShape = new btCylinderShapeX(btVector3(wheelWidth,wheelRadius,wheelRadius)); - - clientResetScene(); - - /// create vehicle - { - - m_vehicleRayCaster = new btDefaultVehicleRaycaster(m_dynamicsWorld); - m_vehicle = new btRaycastVehicle(m_tuning,m_carChassis,m_vehicleRayCaster); - - ///never deactivate the vehicle - m_carChassis->setActivationState(DISABLE_DEACTIVATION); - - m_dynamicsWorld->addVehicle(m_vehicle); - - float connectionHeight = 1.2f; - - - bool isFrontWheel=true; - - //choose coordinate system - m_vehicle->setCoordinateSystem(rightIndex,upIndex,forwardIndex); - -#ifdef FORCE_ZAXIS_UP - btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else - btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif - - m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif - - m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif //FORCE_ZAXIS_UP - isFrontWheel = false; - m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else - connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif - m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); - - for (int i=0;igetNumWheels();i++) - { - btWheelInfo& wheel = m_vehicle->getWheelInfo(i); - wheel.m_suspensionStiffness = suspensionStiffness; - wheel.m_wheelsDampingRelaxation = suspensionDamping; - wheel.m_wheelsDampingCompression = suspensionCompression; - wheel.m_frictionSlip = wheelFriction; - wheel.m_rollInfluence = rollInfluence; - } - } - - - setCameraDistance(26.f); - -} - - -//to be implemented by the demo -void VehicleDemo::renderme() -{ - - updateCamera(); - - btScalar m[16]; - int i; - - - btVector3 wheelColor(1,0,0); - - btVector3 worldBoundsMin,worldBoundsMax; - getDynamicsWorld()->getBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); - - - - for (i=0;igetNumWheels();i++) - { - //synchronize the wheels with the (interpolated) chassis worldtransform - m_vehicle->updateWheelTransform(i,true); - //draw wheels (cylinders) - m_vehicle->getWheelInfo(i).m_worldTransform.getOpenGLMatrix(m); - m_shapeDrawer->drawOpenGL(m,m_wheelShape,wheelColor,getDebugMode(),worldBoundsMin,worldBoundsMax); - } - - - DemoApplication::renderme(); - -} - -void VehicleDemo::clientMoveAndDisplay() -{ - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - - { - int wheelIndex = 2; - m_vehicle->applyEngineForce(gEngineForce,wheelIndex); - m_vehicle->setBrake(gBreakingForce,wheelIndex); - wheelIndex = 3; - m_vehicle->applyEngineForce(gEngineForce,wheelIndex); - m_vehicle->setBrake(gBreakingForce,wheelIndex); - - - wheelIndex = 0; - m_vehicle->setSteeringValue(gVehicleSteering,wheelIndex); - wheelIndex = 1; - m_vehicle->setSteeringValue(gVehicleSteering,wheelIndex); - - } - - - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - if (m_dynamicsWorld) - { - //during idle mode, just run 1 simulation step maximum - int maxSimSubSteps = m_idle ? 1 : 2; - if (m_idle) - dt = 1.0/420.f; - - int numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps); - - -//#define VERBOSE_FEEDBACK -#ifdef VERBOSE_FEEDBACK - if (!numSimSteps) - printf("Interpolated transforms\n"); - else - { - if (numSimSteps > maxSimSubSteps) - { - //detect dropping frames - printf("Dropped (%i) simulation steps out of %i\n",numSimSteps - maxSimSubSteps,numSimSteps); - } else - { - printf("Simulated (%i) steps\n",numSimSteps); - } - } -#endif //VERBOSE_FEEDBACK - - } - - - - - - - -#ifdef USE_QUICKPROF - btProfiler::beginBlock("render"); -#endif //USE_QUICKPROF - - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - -#ifdef USE_QUICKPROF - btProfiler::endBlock("render"); -#endif - - - glFlush(); - glutSwapBuffers(); - -} - - - -void VehicleDemo::displayCallback(void) -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - -//optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - glutSwapBuffers(); -} - - - -void VehicleDemo::clientResetScene() -{ - gVehicleSteering = 0.f; - m_carChassis->setCenterOfMassTransform(btTransform::getIdentity()); - m_carChassis->setLinearVelocity(btVector3(0,0,0)); - m_carChassis->setAngularVelocity(btVector3(0,0,0)); - m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(m_carChassis->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); - if (m_vehicle) - { - m_vehicle->resetSuspension(); - for (int i=0;igetNumWheels();i++) - { - //synchronize the wheels with the (interpolated) chassis worldtransform - m_vehicle->updateWheelTransform(i,true); - } - } - -} - - - -void VehicleDemo::specialKeyboardUp(int key, int x, int y) -{ - switch (key) - { - case GLUT_KEY_UP : - { - gEngineForce = 0.f; - break; - } - case GLUT_KEY_DOWN : - { - gBreakingForce = 0.f; - break; - } - default: - DemoApplication::specialKeyboardUp(key,x,y); - break; - } - -} - - -void VehicleDemo::specialKeyboard(int key, int x, int y) -{ - -// printf("key = %i x=%i y=%i\n",key,x,y); - - switch (key) - { - case GLUT_KEY_LEFT : - { - gVehicleSteering += steeringIncrement; - if ( gVehicleSteering > steeringClamp) - gVehicleSteering = steeringClamp; - - break; - } - case GLUT_KEY_RIGHT : - { - gVehicleSteering -= steeringIncrement; - if ( gVehicleSteering < -steeringClamp) - gVehicleSteering = -steeringClamp; - - break; - } - case GLUT_KEY_UP : - { - gEngineForce = maxEngineForce; - gBreakingForce = 0.f; - break; - } - case GLUT_KEY_DOWN : - { - gBreakingForce = maxBreakingForce; - gEngineForce = 0.f; - break; - } - default: - DemoApplication::specialKeyboard(key,x,y); - break; - } - -// glutPostRedisplay(); - - -} - - - -void VehicleDemo::updateCamera() -{ - -//#define DISABLE_CAMERA 1 -#ifdef DISABLE_CAMERA - DemoApplication::updateCamera(); - return; -#endif //DISABLE_CAMERA - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - - btTransform chassisWorldTrans; - - //look at the vehicle - m_carChassis->getMotionState()->getWorldTransform(chassisWorldTrans); - m_cameraTargetPosition = chassisWorldTrans.getOrigin(); - - //interpolate the camera height -#ifdef FORCE_ZAXIS_UP - m_cameraPosition[2] = (15.0*m_cameraPosition[2] + m_cameraTargetPosition[2] + m_cameraHeight)/16.0; -#else - m_cameraPosition[1] = (15.0*m_cameraPosition[1] + m_cameraTargetPosition[1] + m_cameraHeight)/16.0; -#endif - - btVector3 camToObject = m_cameraTargetPosition - m_cameraPosition; - - //keep distance between min and max distance - float cameraDistance = camToObject.length(); - float correctionFactor = 0.f; - if (cameraDistance < m_minCameraDistance) - { - correctionFactor = 0.15*(m_minCameraDistance-cameraDistance)/cameraDistance; - } - if (cameraDistance > m_maxCameraDistance) - { - correctionFactor = 0.15*(m_maxCameraDistance-cameraDistance)/cameraDistance; - } - m_cameraPosition -= correctionFactor*camToObject; - - btScalar aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - glFrustum (-aspect, aspect, -1.0, 1.0, 1.0, 10000.0); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - gluLookAt(m_cameraPosition[0],m_cameraPosition[1],m_cameraPosition[2], - m_cameraTargetPosition[0],m_cameraTargetPosition[1], m_cameraTargetPosition[2], - m_cameraUp.getX(),m_cameraUp.getY(),m_cameraUp.getZ()); - - - -} - diff --git a/Demos/VehicleDemo/VehicleDemo.h b/Demos/VehicleDemo/VehicleDemo.h deleted file mode 100644 index 4a05c8fcf..000000000 --- a/Demos/VehicleDemo/VehicleDemo.h +++ /dev/null @@ -1,91 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef VEHICLE_DEMO_H -#define VEHICLE_DEMO_H - -class btVehicleTuning; -struct btVehicleRaycaster; -class btCollisionShape; - -#include "BulletDynamics/Vehicle/btRaycastVehicle.h" - -#include "GlutDemoApplication.h" - -///VehicleDemo shows how to setup and use the built-in raycast vehicle -class VehicleDemo : public GlutDemoApplication -{ - public: - - btRigidBody* m_carChassis; - - btAlignedObjectArray m_collisionShapes; - - class btBroadphaseInterface* m_overlappingPairCache; - - class btCollisionDispatcher* m_dispatcher; - - class btConstraintSolver* m_constraintSolver; - - class btDefaultCollisionConfiguration* m_collisionConfiguration; - - class btTriangleIndexVertexArray* m_indexVertexArrays; - - btVector3* m_vertices; - - - btRaycastVehicle::btVehicleTuning m_tuning; - btVehicleRaycaster* m_vehicleRayCaster; - btRaycastVehicle* m_vehicle; - btCollisionShape* m_wheelShape; - - float m_cameraHeight; - - float m_minCameraDistance; - float m_maxCameraDistance; - - - VehicleDemo(); - - virtual ~VehicleDemo(); - - virtual void clientMoveAndDisplay(); - - virtual void clientResetScene(); - - virtual void displayCallback(); - - ///a very basic camera following the vehicle - virtual void updateCamera(); - - virtual void specialKeyboard(int key, int x, int y); - - virtual void specialKeyboardUp(int key, int x, int y); - - void renderme(); - - void initPhysics(); - - static DemoApplication* Create() - { - VehicleDemo* demo = new VehicleDemo(); - demo->myinit(); - demo->initPhysics(); - return demo; - } -}; - -#endif //VEHICLE_DEMO_H - - diff --git a/Demos/VehicleDemo/heightfield128x128.cpp b/Demos/VehicleDemo/heightfield128x128.cpp deleted file mode 100644 index 46d2bab76..000000000 --- a/Demos/VehicleDemo/heightfield128x128.cpp +++ /dev/null @@ -1,1641 +0,0 @@ -char MyHeightfield[]={char(136),char(125),char(117),char(93),char(79),char(89),char(81),char(67),char(61),char(49), -char(48),char(52),char(63),char(75),char(78),char(88),char(111),char(126),char(130),char(116), -char(109),char(113),char(118),char(142),char(161),char(185),char(198),char(198),char(197),char(204), -char(200),char(191),char(190),char(181),char(166),char(144),char(117),char(96),char(86),char(95), -char(99),char(86),char(59),char(52),char(49),char(48),char(50),char(50),char(51),char(56), -char(67),char(70),char(73),char(79),char(91),char(103),char(111),char(125),char(132),char(139), -char(163),char(185),char(198),char(207),char(207),char(191),char(169),char(151),char(134),char(114), -char(96),char(93),char(93),char(89),char(93),char(93),char(81),char(68),char(61),char(53), -char(43),char(33),char(28),char(34),char(43),char(53),char(70),char(69),char(61),char(57), -char(54),char(56),char(65),char(65),char(75),char(93),char(105),char(114),char(110),char(124), -char(147),char(157),char(174),char(186),char(198),char(210),char(229),char(233),char(242),char(251), -char(250),char(239),char(229),char(220),char(204),char(181),char(158),char(156),char(158),char(165), -char(159),char(158),char(156),char(143),char(127),char(118),char(121),char(124),char(133),char(130), -char(119),char(101),char(89),char(83),char(83),char(69),char(58),char(44),char(45),char(54), -char(64),char(73),char(70),char(80),char(102),char(121),char(121),char(105),char(102),char(106), -char(114),char(142),char(156),char(174),char(197),char(204),char(201),char(197),char(190),char(187), -char(187),char(178),char(159),char(131),char(105),char(92),char(84),char(99),char(101),char(83), -char(56),char(45),char(37),char(35),char(38),char(37),char(46),char(60),char(71),char(73), -char(72),char(71),char(76),char(98),char(112),char(135),char(150),char(156),char(169),char(184), -char(194),char(202),char(216),char(209),char(187),char(172),char(155),char(126),char(100),char(93), -char(91),char(94),char(99),char(96),char(85),char(78),char(71),char(61),char(56),char(45), -char(37),char(42),char(51),char(63),char(74),char(75),char(72),char(59),char(47),char(50), -char(55),char(56),char(66),char(77),char(86),char(92),char(108),char(124),char(140),char(147), -char(162),char(181),char(193),char(208),char(227),char(233),char(241),char(246),char(241),char(230), -char(218),char(206),char(192),char(169),char(149),char(147),char(141),char(144),char(143),char(153), -char(149),char(137),char(129),char(119),char(126),char(118),char(150),char(136),char(122),char(119), -char(116),char(98),char(94),char(82),char(66),char(54),char(54),char(59),char(69),char(71), -char(82),char(94),char(110),char(114),char(116),char(110),char(106),char(106),char(121),char(141), -char(143),char(156),char(178),char(195),char(196),char(187),char(185),char(188),char(188),char(171), -char(146),char(120),char(99),char(82),char(82),char(98),char(104),char(89),char(65),char(46), -char(35),char(28),char(29),char(37),char(43),char(54),char(70),char(72),char(65),char(62), -char(71),char(94),char(115),char(131),char(151),char(170),char(177),char(183),char(193),char(207), -char(222),char(219),char(203),char(185),char(167),char(142),char(118),char(113),char(116),char(116), -char(115),char(104),char(92),char(90),char(84),char(76),char(67),char(59),char(52),char(57), -char(68),char(73),char(82),char(83),char(70),char(62),char(53),char(50),char(52),char(52), -char(57),char(58),char(63),char(74),char(101),char(120),char(134),char(143),char(160),char(175), -char(197),char(210),char(224),char(230),char(230),char(227),char(227),char(224),char(216),char(204), -char(187),char(173),char(156),char(150),char(141),char(141),char(141),char(146),char(138),char(138), -char(121),char(116),char(130),char(117),char(178),char(156),char(141),char(143),char(139),char(120), -char(105),char(89),char(79),char(67),char(63),char(75),char(79),char(82),char(109),char(129), -char(129),char(124),char(120),char(128),char(127),char(122),char(131),char(139),char(146),char(158), -char(167),char(181),char(188),char(190),char(185),char(178),char(174),char(164),char(142),char(108), -char(87),char(74),char(83),char(108),char(106),char(87),char(66),char(47),char(35),char(28), -char(30),char(39),char(44),char(49),char(54),char(50),char(45),char(54),char(67),char(86), -char(108),char(124),char(148),char(172),char(186),char(197),char(202),char(209),char(220),char(220), -char(202),char(176),char(161),char(152),char(145),char(139),char(144),char(145),char(128),char(111), -char(104),char(108),char(111),char(99),char(81),char(71),char(59),char(56),char(63),char(70), -char(82),char(79),char(68),char(61),char(50),char(50),char(56),char(52),char(42),char(42), -char(58),char(76),char(103),char(116),char(125),char(144),char(164),char(178),char(197),char(202), -char(213),char(219),char(223),char(213),char(211),char(209),char(204),char(193),char(176),char(169), -char(171),char(166),char(153),char(143),char(134),char(138),char(131),char(138),char(124),char(120), -char(135),char(132),char(200),char(179),char(162),char(160),char(155),char(135),char(107),char(94), -char(85),char(77),char(78),char(95),char(107),char(109),char(125),char(139),char(145),char(140), -char(132),char(140),char(145),char(141),char(143),char(141),char(141),char(146),char(150),char(161), -char(172),char(183),char(177),char(171),char(169),char(157),char(136),char(106),char(85),char(76), -char(80),char(98),char(96),char(84),char(62),char(37),char(29),char(28),char(32),char(37), -char(40),char(40),char(39),char(40),char(44),char(53),char(68),char(80),char(92),char(113), -char(147),char(175),char(192),char(204),char(208),char(213),char(215),char(210),char(188),char(164), -char(158),char(163),char(167),char(161),char(155),char(154),char(149),char(139),char(129),char(125), -char(128),char(113),char(84),char(70),char(56),char(46),char(48),char(60),char(72),char(71), -char(61),char(52),char(47),char(46),char(49),char(48),char(37),char(38),char(54),char(82), -char(109),char(111),char(121),char(142),char(159),char(171),char(187),char(191),char(207),char(217), -char(213),char(196),char(185),char(193),char(192),char(186),char(183),char(180),char(185),char(184), -char(161),char(146),char(150),char(156),char(148),char(145),char(138),char(140),char(140),char(142), -char(230),char(208),char(192),char(182),char(171),char(142),char(126),char(118),char(110),char(104), -char(99),char(107),char(115),char(125),char(134),char(142),char(147),char(139),char(143),char(154), -char(155),char(153),char(147),char(145),char(142),char(131),char(120),char(131),char(138),char(144), -char(148),char(147),char(152),char(149),char(123),char(100),char(81),char(74),char(85),char(90), -char(91),char(82),char(59),char(41),char(29),char(29),char(36),char(40),char(43),char(45), -char(41),char(40),char(44),char(58),char(74),char(79),char(93),char(115),char(144),char(165), -char(178),char(195),char(206),char(206),char(207),char(206),char(182),char(165),char(165),char(167), -char(172),char(177),char(172),char(163),char(158),char(162),char(164),char(153),char(149),char(127), -char(89),char(73),char(58),char(47),char(46),char(54),char(59),char(55),char(54),char(51), -char(49),char(45),char(48),char(45),char(43),char(48),char(56),char(80),char(100),char(97), -char(108),char(136),char(160),char(177),char(186),char(194),char(195),char(199),char(195),char(183), -char(178),char(187),char(186),char(179),char(183),char(179),char(188),char(187),char(170),char(162), -char(164),char(161),char(163),char(159),char(161),char(160),char(144),char(139),char(248),char(231), -char(213),char(200),char(188),char(170),char(157),char(156),char(149),char(138),char(132),char(127), -char(132),char(142),char(150),char(151),char(149),char(146),char(147),char(159),char(149),char(143), -char(138),char(136),char(138),char(125),char(105),char(95),char(102),char(113),char(124),char(124), -char(124),char(132),char(119),char(99),char(81),char(71),char(82),char(88),char(82),char(72), -char(64),char(47),char(38),char(40),char(39),char(41),char(43),char(45),char(44),char(37), -char(40),char(56),char(73),char(84),char(100),char(112),char(131),char(154),char(168),char(185), -char(201),char(210),char(211),char(204),char(188),char(175),char(170),char(171),char(182),char(195), -char(196),char(183),char(168),char(169),char(179),char(172),char(160),char(133),char(97),char(68), -char(51),char(48),char(47),char(46),char(42),char(44),char(52),char(52),char(53),char(54), -char(56),char(57),char(58),char(66),char(65),char(76),char(93),char(95),char(104),char(124), -char(154),char(181),char(188),char(188),char(190),char(185),char(180),char(173),char(172),char(172), -char(171),char(171),char(163),char(170),char(180),char(188),char(180),char(175),char(171),char(166), -char(173),char(186),char(188),char(172),char(155),char(131),char(248),char(240),char(234),char(217), -char(207),char(193),char(177),char(178),char(178),char(168),char(157),char(159),char(160),char(153), -char(147),char(143),char(143),char(148),char(149),char(156),char(146),char(137),char(131),char(122), -char(119),char(107),char(87),char(84),char(89),char(100),char(116),char(113),char(110),char(107), -char(101),char(94),char(75),char(65),char(67),char(67),char(58),char(52),char(52),char(50), -char(52),char(51),char(46),char(46),char(44),char(45),char(44),char(42),char(46),char(54), -char(70),char(81),char(89),char(109),char(128),char(143),char(161),char(187),char(205),char(211), -char(215),char(210),char(198),char(188),char(176),char(173),char(186),char(198),char(201),char(196), -char(185),char(183),char(180),char(162),char(148),char(136),char(108),char(73),char(50),char(41), -char(41),char(44),char(37),char(33),char(46),char(52),char(55),char(52),char(57),char(59), -char(64),char(76),char(82),char(82),char(93),char(103),char(105),char(127),char(159),char(173), -char(181),char(183),char(187),char(179),char(162),char(151),char(153),char(153),char(149),char(164), -char(161),char(164),char(180),char(187),char(182),char(178),char(175),char(177),char(181),char(193), -char(204),char(191),char(172),char(140),char(242),char(238),char(235),char(224),char(220),char(207), -char(197),char(196),char(192),char(188),char(182),char(173),char(166),char(153),char(145),char(133), -char(126),char(125),char(132),char(135),char(129),char(114),char(115),char(107),char(104),char(100), -char(82),char(72),char(75),char(83),char(107),char(116),char(105),char(87),char(82),char(80), -char(68),char(57),char(47),char(45),char(41),char(39),char(39),char(41),char(46),char(50), -char(47),char(47),char(49),char(56),char(58),char(55),char(52),char(56),char(65),char(82), -char(94),char(109),char(122),char(138),char(167),char(195),char(211),char(212),char(215),char(207), -char(197),char(191),char(181),char(176),char(193),char(203),char(200),char(197),char(193),char(189), -char(183),char(162),char(144),char(128),char(109),char(78),char(51),char(41),char(40),char(39), -char(32),char(28),char(35),char(41),char(47),char(51),char(63),char(68),char(75),char(77), -char(79),char(77),char(90),char(106),char(115),char(126),char(145),char(164),char(174),char(181), -char(187),char(171),char(155),char(142),char(136),char(127),char(133),char(148),char(154),char(164), -char(175),char(181),char(185),char(180),char(181),char(181),char(185),char(200),char(210),char(201), -char(180),char(148),char(242),char(236),char(235),char(229),char(222),char(215),char(205),char(205), -char(202),char(205),char(206),char(196),char(176),char(156),char(142),char(132),char(114),char(97), -char(109),char(119),char(118),char(104),char(92),char(95),char(98),char(86),char(66),char(58), -char(60),char(70),char(87),char(97),char(81),char(65),char(62),char(59),char(54),char(44), -char(43),char(39),char(34),char(31),char(31),char(34),char(40),char(45),char(44),char(44), -char(48),char(58),char(70),char(64),char(62),char(65),char(71),char(79),char(93),char(111), -char(128),char(145),char(173),char(194),char(207),char(215),char(209),char(204),char(201),char(193), -char(180),char(182),char(199),char(208),char(201),char(195),char(190),char(183),char(175),char(159), -char(139),char(125),char(106),char(80),char(59),char(44),char(37),char(33),char(30),char(27), -char(27),char(32),char(43),char(58),char(65),char(76),char(76),char(75),char(79),char(85), -char(94),char(107),char(114),char(114),char(135),char(143),char(159),char(170),char(174),char(169), -char(158),char(143),char(121),char(115),char(126),char(149),char(161),char(180),char(186),char(190), -char(181),char(186),char(190),char(191),char(203),char(211),char(220),char(212),char(192),char(162), -char(244),char(244),char(244),char(239),char(229),char(218),char(209),char(215),char(215),char(208), -char(215),char(207),char(188),char(166),char(151),char(132),char(109),char(88),char(88),char(100), -char(103),char(94),char(81),char(91),char(82),char(62),char(54),char(51),char(50),char(57), -char(67),char(69),char(54),char(42),char(43),char(42),char(43),char(41),char(40),char(35), -char(34),char(33),char(28),char(31),char(35),char(35),char(39),char(45),char(53),char(62), -char(73),char(79),char(78),char(72),char(66),char(71),char(81),char(106),char(135),char(158), -char(173),char(188),char(196),char(205),char(204),char(202),char(202),char(188),char(180),char(184), -char(198),char(206),char(200),char(202),char(200),char(190),char(170),char(144),char(130),char(121), -char(105),char(77),char(54),char(40),char(35),char(35),char(32),char(28),char(25),char(29), -char(43),char(60),char(66),char(70),char(74),char(82),char(87),char(90),char(102),char(107), -char(104),char(108),char(114),char(121),char(139),char(165),char(168),char(162),char(152),char(141), -char(124),char(120),char(126),char(147),char(169),char(180),char(185),char(191),char(180),char(181), -char(193),char(201),char(209),char(218),char(226),char(217),char(192),char(165),char(247),char(248), -char(248),char(248),char(239),char(225),char(220),char(219),char(220),char(215),char(221),char(212), -char(189),char(170),char(154),char(122),char(97),char(84),char(85),char(90),char(94),char(93), -char(77),char(81),char(70),char(48),char(42),char(38),char(36),char(41),char(46),char(47), -char(38),char(35),char(33),char(36),char(41),char(41),char(35),char(35),char(32),char(31), -char(29),char(33),char(36),char(38),char(45),char(52),char(53),char(63),char(74),char(84), -char(91),char(80),char(62),char(63),char(78),char(102),char(131),char(153),char(168),char(183), -char(193),char(202),char(193),char(183),char(181),char(177),char(173),char(176),char(191),char(199), -char(192),char(197),char(203),char(193),char(175),char(142),char(122),char(117),char(99),char(67), -char(43),char(35),char(36),char(36),char(31),char(26),char(26),char(33),char(37),char(52), -char(67),char(71),char(70),char(70),char(79),char(96),char(107),char(109),char(103),char(100), -char(100),char(117),char(131),char(151),char(161),char(148),char(135),char(134),char(128),char(133), -char(139),char(151),char(171),char(180),char(184),char(187),char(186),char(193),char(193),char(207), -char(213),char(218),char(216),char(207),char(187),char(175),char(251),char(251),char(250),char(252), -char(251),char(238),char(231),char(228),char(224),char(224),char(222),char(204),char(178),char(159), -char(147),char(121),char(104),char(87),char(82),char(79),char(82),char(77),char(58),char(55), -char(54),char(40),char(34),char(30),char(28),char(34),char(36),char(31),char(33),char(38), -char(34),char(31),char(33),char(35),char(30),char(32),char(31),char(29),char(29),char(37), -char(47),char(49),char(51),char(56),char(57),char(68),char(78),char(81),char(84),char(76), -char(65),char(62),char(65),char(87),char(111),char(134),char(153),char(164),char(174),char(184), -char(178),char(178),char(178),char(166),char(161),char(164),char(175),char(181),char(173),char(176), -char(183),char(181),char(166),char(133),char(113),char(105),char(87),char(63),char(43),char(36), -char(37),char(35),char(35),char(30),char(27),char(36),char(41),char(46),char(63),char(72), -char(69),char(70),char(78),char(101),char(104),char(102),char(102),char(101),char(98),char(115), -char(136),char(141),char(148),char(145),char(131),char(133),char(135),char(143),char(155),char(152), -char(170),char(183),char(188),char(185),char(196),char(207),char(207),char(211),char(209),char(211), -char(208),char(204),char(188),char(179),char(252),char(255),char(253),char(253),char(252),char(247), -char(246),char(241),char(235),char(229),char(218),char(196),char(167),char(153),char(143),char(128), -char(105),char(87),char(77),char(79),char(73),char(65),char(46),char(38),char(36),char(31), -char(24),char(24),char(19),char(18),char(22),char(24),char(25),char(27),char(29),char(32), -char(31),char(27),char(23),char(23),char(24),char(29),char(38),char(45),char(52),char(57), -char(63),char(62),char(67),char(86),char(98),char(90),char(80),char(69),char(61),char(60), -char(66),char(90),char(116),char(133),char(148),char(161),char(171),char(167),char(159),char(166), -char(174),char(169),char(166),char(170),char(173),char(169),char(164),char(165),char(169),char(173), -char(159),char(138),char(115),char(101),char(82),char(63),char(46),char(38),char(33),char(31), -char(30),char(28),char(26),char(35),char(47),char(55),char(59),char(70),char(73),char(76), -char(85),char(93),char(101),char(99),char(104),char(112),char(108),char(115),char(122),char(131), -char(127),char(124),char(117),char(126),char(135),char(141),char(151),char(163),char(167),char(173), -char(171),char(179),char(190),char(214),char(217),char(212),char(206),char(201),char(195),char(194), -char(193),char(176),char(247),char(250),char(254),char(251),char(249),char(251),char(254),char(248), -char(238),char(228),char(216),char(187),char(169),char(153),char(147),char(137),char(106),char(79), -char(63),char(66),char(60),char(49),char(39),char(31),char(24),char(19),char(13),char(13), -char(10),char(8),char(11),char(16),char(19),char(21),char(27),char(30),char(27),char(20), -char(18),char(18),char(23),char(31),char(38),char(45),char(52),char(59),char(67),char(70), -char(81),char(99),char(105),char(100),char(85),char(74),char(69),char(67),char(83),char(103), -char(115),char(126),char(136),char(155),char(170),char(160),char(145),char(157),char(179),char(184), -char(180),char(180),char(179),char(173),char(173),char(169),char(165),char(165),char(157),char(141), -char(119),char(102),char(85),char(69),char(49),char(36),char(27),char(25),char(23),char(29), -char(33),char(35),char(47),char(60),char(62),char(65),char(71),char(79),char(94),char(97), -char(103),char(104),char(107),char(109),char(112),char(120),char(122),char(127),char(124),char(114), -char(111),char(117),char(127),char(137),char(147),char(165),char(172),char(164),char(162),char(173), -char(190),char(209),char(220),char(215),char(206),char(193),char(177),char(172),char(176),char(174), -char(236),char(245),char(249),char(246),char(243),char(247),char(252),char(246),char(236),char(216), -char(203),char(183),char(165),char(154),char(153),char(147),char(113),char(79),char(59),char(50), -char(48),char(42),char(35),char(23),char(14),char(11),char(6),char(6),char(3),char(2), -char(4),char(10),char(15),char(20),char(25),char(25),char(17),char(15),char(19),char(24), -char(22),char(25),char(32),char(40),char(50),char(63),char(71),char(80),char(95),char(110), -char(111),char(105),char(95),char(88),char(90),char(93),char(110),char(118),char(114),char(120), -char(128),char(143),char(158),char(160),char(155),char(173),char(204),char(214),char(209),char(201), -char(195),char(191),char(187),char(176),char(158),char(150),char(147),char(135),char(114),char(107), -char(93),char(76),char(57),char(35),char(22),char(21),char(21),char(25),char(35),char(40), -char(46),char(58),char(64),char(66),char(73),char(85),char(91),char(94),char(113),char(115), -char(109),char(105),char(112),char(119),char(122),char(126),char(125),char(118),char(111),char(116), -char(126),char(133),char(146),char(159),char(168),char(168),char(171),char(178),char(194),char(212), -char(220),char(208),char(199),char(186),char(175),char(157),char(156),char(163),char(227),char(241), -char(244),char(241),char(234),char(242),char(246),char(244),char(229),char(207),char(197),char(181), -char(166),char(155),char(152),char(133),char(109),char(71),char(48),char(42),char(35),char(31), -char(28),char(15),char(7),char(9),char(6),char(4),char(3),char(2),char(4),char(8), -char(14),char(17),char(19),char(19),char(17),char(17),char(20),char(25),char(27),char(26), -char(35),char(43),char(54),char(68),char(73),char(82),char(99),char(105),char(105),char(100), -char(94),char(98),char(103),char(113),char(122),char(118),char(120),char(129),char(134),char(147), -char(159),char(161),char(164),char(188),char(216),char(228),char(230),char(226),char(218),char(213), -char(207),char(201),char(179),char(150),char(142),char(137),char(121),char(105),char(93),char(82), -char(69),char(45),char(23),char(18),char(23),char(29),char(35),char(44),char(57),char(67), -char(74),char(74),char(76),char(84),char(86),char(90),char(109),char(112),char(112),char(116), -char(126),char(127),char(121),char(121),char(120),char(114),char(106),char(105),char(114),char(125), -char(138),char(155),char(165),char(175),char(167),char(175),char(195),char(206),char(213),char(207), -char(192),char(168),char(155),char(135),char(133),char(138),char(205),char(228),char(234),char(230), -char(224),char(229),char(230),char(223),char(209),char(203),char(192),char(180),char(164),char(152), -char(147),char(126),char(94),char(67),char(50),char(33),char(25),char(21),char(19),char(13), -char(7),char(7),char(6),char(3),char(2),char(2),char(3),char(6),char(8),char(13), -char(15),char(19),char(20),char(19),char(20),char(27),char(35),char(35),char(40),char(43), -char(48),char(55),char(65),char(82),char(97),char(99),char(92),char(94),char(99),char(110), -char(122),char(138),char(143),char(141),char(146),char(157),char(148),char(147),char(158),char(168), -char(183),char(202),char(223),char(232),char(233),char(235),char(236),char(229),char(223),char(214), -char(189),char(156),char(140),char(131),char(120),char(108),char(96),char(82),char(74),char(54), -char(30),char(23),char(27),char(32),char(43),char(49),char(60),char(75),char(86),char(85), -char(78),char(77),char(80),char(87),char(98),char(103),char(110),char(126),char(130),char(127), -char(123),char(123),char(124),char(121),char(113),char(106),char(105),char(112),char(121),char(141), -char(153),char(169),char(172),char(186),char(199),char(206),char(212),char(207),char(182),char(157), -char(142),char(135),char(126),char(116),char(189),char(205),char(215),char(217),char(218),char(206), -char(209),char(202),char(195),char(193),char(186),char(174),char(165),char(153),char(133),char(118), -char(93),char(68),char(43),char(26),char(19),char(15),char(12),char(9),char(8),char(6), -char(7),char(3),char(2),char(1),char(3),char(4),char(4),char(7),char(10),char(13), -char(15),char(22),char(25),char(29),char(44),char(46),char(42),char(44),char(41),char(48), -char(64),char(80),char(95),char(99),char(99),char(99),char(100),char(115),char(137),char(148), -char(156),char(165),char(168),char(176),char(176),char(157),char(151),char(171),char(194),char(207), -char(224),char(232),char(232),char(237),char(234),char(229),char(221),char(204),char(181),char(154), -char(144),char(141),char(129),char(111),char(98),char(89),char(76),char(55),char(33),char(27), -char(29),char(34),char(49),char(57),char(64),char(78),char(82),char(86),char(80),char(69), -char(67),char(68),char(76),char(84),char(94),char(106),char(123),char(124),char(127),char(123), -char(124),char(125),char(109),char(101),char(102),char(109),char(110),char(122),char(146),char(159), -char(178),char(191),char(189),char(196),char(203),char(186),char(162),char(151),char(140),char(128), -char(124),char(106),char(175),char(181),char(190),char(196),char(207),char(195),char(195),char(190), -char(182),char(182),char(184),char(173),char(155),char(140),char(123),char(112),char(97),char(68), -char(38),char(24),char(13),char(8),char(5),char(5),char(5),char(5),char(6),char(3), -char(2),char(2),char(3),char(3),char(3),char(4),char(7),char(10),char(13),char(19), -char(26),char(33),char(50),char(56),char(46),char(38),char(36),char(49),char(65),char(72), -char(88),char(98),char(110),char(115),char(110),char(121),char(147),char(165),char(166),char(170), -char(177),char(180),char(184),char(177),char(167),char(180),char(200),char(210),char(221),char(229), -char(230),char(232),char(224),char(218),char(211),char(187),char(163),char(141),char(133),char(141), -char(134),char(113),char(90),char(79),char(74),char(54),char(32),char(26),char(27),char(32), -char(46),char(57),char(59),char(62),char(64),char(71),char(70),char(59),char(55),char(58), -char(68),char(76),char(84),char(91),char(107),char(112),char(110),char(112),char(115),char(117), -char(110),char(100),char(93),char(99),char(106),char(108),char(126),char(148),char(176),char(182), -char(175),char(178),char(174),char(161),char(142),char(126),char(119),char(116),char(111),char(104), -char(162),char(161),char(174),char(176),char(188),char(186),char(176),char(172),char(172),char(163), -char(170),char(161),char(141),char(124),char(118),char(113),char(101),char(71),char(42),char(21), -char(13),char(8),char(6),char(5),char(4),char(5),char(5),char(3),char(2),char(3), -char(2),char(4),char(4),char(4),char(7),char(8),char(10),char(15),char(23),char(38), -char(56),char(59),char(49),char(44),char(47),char(59),char(74),char(80),char(91),char(106), -char(113),char(112),char(116),char(129),char(149),char(167),char(169),char(170),char(170),char(175), -char(182),char(175),char(171),char(183),char(197),char(204),char(213),char(222),char(222),char(222), -char(225),char(218),char(203),char(176),char(154),char(142),char(136),char(141),char(136),char(114), -char(87),char(72),char(68),char(55),char(38),char(31),char(31),char(35),char(46),char(55), -char(56),char(59),char(61),char(64),char(66),char(62),char(54),char(53),char(56),char(68), -char(73),char(74),char(89),char(91),char(100),char(113),char(112),char(102),char(104),char(100), -char(94),char(102),char(96),char(95),char(105),char(128),char(155),char(160),char(164),char(159), -char(141),char(130),char(127),char(116),char(105),char(107),char(111),char(112),char(140),char(139), -char(150),char(155),char(159),char(164),char(156),char(153),char(149),char(133),char(142),char(135), -char(118),char(99),char(94),char(90),char(77),char(59),char(35),char(19),char(11),char(9), -char(4),char(4),char(4),char(6),char(5),char(3),char(4),char(5),char(5),char(6), -char(7),char(6),char(5),char(5),char(8),char(13),char(23),char(37),char(52),char(58), -char(57),char(55),char(57),char(63),char(79),char(93),char(96),char(102),char(110),char(113), -char(125),char(142),char(159),char(176),char(183),char(178),char(173),char(174),char(169),char(169), -char(175),char(184),char(196),char(210),char(217),char(219),char(219),char(218),char(218),char(210), -char(191),char(171),char(154),char(147),char(145),char(133),char(126),char(109),char(86),char(76), -char(70),char(57),char(46),char(45),char(49),char(54),char(62),char(63),char(67),char(70), -char(68),char(68),char(76),char(75),char(69),char(63),char(55),char(58),char(64),char(66), -char(78),char(82),char(87),char(97),char(96),char(101),char(109),char(107),char(94),char(98), -char(90),char(88),char(89),char(112),char(138),char(145),char(149),char(137),char(118),char(117), -char(112),char(106),char(103),char(105),char(124),char(120),char(133),char(128),char(129),char(133), -char(141),char(138),char(134),char(132),char(122),char(109),char(97),char(98),char(97),char(84), -char(74),char(69),char(61),char(57),char(35),char(20),char(11),char(7),char(6),char(7), -char(8),char(8),char(8),char(7),char(9),char(9),char(10),char(10),char(12),char(13), -char(10),char(8),char(9),char(13),char(20),char(29),char(40),char(52),char(60),char(55), -char(60),char(68),char(80),char(97),char(97),char(99),char(109),char(117),char(135),char(151), -char(170),char(188),char(193),char(191),char(187),char(167),char(156),char(161),char(171),char(184), -char(202),char(211),char(209),char(215),char(218),char(218),char(209),char(195),char(182),char(173), -char(160),char(152),char(146),char(132),char(125),char(114),char(100),char(83),char(65),char(56), -char(57),char(59),char(62),char(71),char(74),char(74),char(74),char(75),char(71),char(70), -char(81),char(83),char(80),char(68),char(57),char(63),char(67),char(71),char(65),char(73), -char(83),char(93),char(96),char(106),char(111),char(95),char(85),char(82),char(77),char(82), -char(86),char(97),char(116),char(133),char(146),char(127),char(116),char(112),char(101),char(102), -char(106),char(117),char(120),char(119),char(126),char(121),char(120),char(120),char(125),char(124), -char(118),char(115),char(104),char(86),char(76),char(78),char(80),char(73),char(65),char(63), -char(61),char(57),char(36),char(23),char(18),char(13),char(8),char(9),char(12),char(15), -char(15),char(14),char(17),char(16),char(17),char(19),char(23),char(28),char(18),char(13), -char(14),char(13),char(19),char(25),char(34),char(54),char(66),char(61),char(65),char(75), -char(82),char(89),char(94),char(103),char(113),char(120),char(133),char(151),char(177),char(195), -char(202),char(206),char(196),char(170),char(160),char(163),char(171),char(192),char(206),char(206), -char(204),char(207),char(216),char(220),char(205),char(191),char(179),char(172),char(166),char(157), -char(145),char(124),char(112),char(116),char(110),char(83),char(65),char(56),char(59),char(68), -char(77),char(84),char(89),char(94),char(92),char(84),char(84),char(85),char(91),char(91), -char(90),char(77),char(61),char(68),char(76),char(79),char(75),char(86),char(95),char(97), -char(94),char(98),char(90),char(81),char(69),char(67),char(73),char(77),char(79),char(78), -char(90),char(117),char(135),char(119),char(104),char(103),char(100),char(100),char(110),char(112), -char(108),char(113),char(119),char(112),char(113),char(116),char(123),char(121),char(112),char(106), -char(92),char(75),char(70),char(65),char(63),char(58),char(53),char(57),char(59),char(54), -char(36),char(26),char(22),char(19),char(11),char(11),char(15),char(25),char(29),char(30), -char(29),char(30),char(28),char(31),char(37),char(36),char(24),char(19),char(16),char(15), -char(21),char(28),char(41),char(51),char(57),char(63),char(74),char(84),char(89),char(86), -char(88),char(94),char(101),char(110),char(129),char(160),char(188),char(196),char(204),char(214), -char(210),char(191),char(178),char(171),char(176),char(196),char(206),char(208),char(205),char(204), -char(219),char(224),char(213),char(193),char(174),char(157),char(149),char(143),char(133),char(117), -char(108),char(110),char(111),char(89),char(68),char(54),char(52),char(65),char(79),char(92), -char(103),char(107),char(104),char(99),char(93),char(99),char(106),char(111),char(105),char(89), -char(68),char(68),char(78),char(84),char(90),char(94),char(95),char(95),char(81),char(75), -char(72),char(70),char(60),char(59),char(65),char(74),char(78),char(74),char(92),char(106), -char(114),char(105),char(93),char(99),char(106),char(106),char(112),char(106),char(97),char(105), -char(107),char(104),char(101),char(109),char(120),char(115),char(117),char(106),char(82),char(66), -char(66),char(61),char(53),char(45),char(44),char(46),char(56),char(62),char(44),char(33), -char(28),char(21),char(18),char(18),char(23),char(35),char(45),char(50),char(47),char(42), -char(43),char(45),char(49),char(48),char(36),char(28),char(22),char(23),char(24),char(34), -char(46),char(48),char(51),char(65),char(75),char(78),char(80),char(75),char(79),char(89), -char(93),char(103),char(130),char(161),char(187),char(194),char(208),char(225),char(224),char(211), -char(199),char(179),char(172),char(186),char(196),char(202),char(209),char(212),char(214),char(214), -char(207),char(194),char(178),char(153),char(147),char(148),char(135),char(113),char(105),char(109), -char(102),char(93),char(79),char(63),char(58),char(72),char(87),char(100),char(114),char(118), -char(117),char(109),char(107),char(113),char(111),char(108),char(107),char(88),char(74),char(79), -char(85),char(87),char(97),char(91),char(85),char(91),char(74),char(70),char(67),char(62), -char(58),char(58),char(61),char(73),char(69),char(71),char(88),char(101),char(113),char(110), -char(104),char(113),char(109),char(110),char(116),char(114),char(102),char(99),char(91),char(88), -char(84),char(89),char(101),char(108),char(110),char(105),char(80),char(71),char(60),char(57), -char(49),char(42),char(44),char(42),char(51),char(56),char(55),char(43),char(31),char(27), -char(29),char(30),char(37),char(50),char(60),char(59),char(53),char(50),char(51),char(52), -char(57),char(56),char(49),char(41),char(35),char(33),char(33),char(44),char(50),char(48), -char(54),char(67),char(79),char(78),char(69),char(63),char(65),char(76),char(81),char(92), -char(118),char(151),char(176),char(188),char(203),char(220),char(224),char(217),char(210),char(191), -char(174),char(173),char(186),char(195),char(203),char(213),char(208),char(204),char(198),char(194), -char(187),char(171),char(154),char(146),char(132),char(112),char(111),char(115),char(106),char(93), -char(81),char(72),char(75),char(98),char(115),char(122),char(131),char(132),char(138),char(134), -char(126),char(120),char(119),char(118),char(109),char(94),char(82),char(88),char(90),char(94), -char(96),char(82),char(79),char(79),char(74),char(71),char(64),char(53),char(54),char(60), -char(63),char(69),char(59),char(64),char(82),char(93),char(109),char(115),char(117),char(117), -char(115),char(107),char(115),char(114),char(113),char(107),char(62),char(65),char(69),char(70), -char(86),char(98),char(109),char(98),char(78),char(66),char(58),char(56),char(49),char(41), -char(42),char(49),char(52),char(54),char(62),char(57),char(43),char(43),char(46),char(45), -char(50),char(68),char(68),char(57),char(54),char(52),char(50),char(52),char(58),char(57), -char(56),char(55),char(50),char(46),char(45),char(51),char(57),char(56),char(63),char(77), -char(88),char(80),char(62),char(57),char(63),char(66),char(71),char(90),char(117),char(145), -char(167),char(178),char(189),char(205),char(215),char(216),char(209),char(194),char(178),char(173), -char(181),char(188),char(200),char(206),char(196),char(192),char(197),char(194),char(187),char(175), -char(155),char(143),char(134),char(117),char(111),char(114),char(106),char(94),char(83),char(86), -char(98),char(116),char(139),char(147),char(142),char(141),char(147),char(150),char(144),char(135), -char(130),char(130),char(125),char(103),char(93),char(91),char(92),char(102),char(99),char(91), -char(89),char(82),char(80),char(79),char(69),char(60),char(66),char(69),char(67),char(69), -char(59),char(70),char(86),char(91),char(94),char(106),char(120),char(126),char(122),char(105), -char(105),char(106),char(105),char(105),char(42),char(50),char(58),char(69),char(78),char(83), -char(93),char(91),char(79),char(68),char(61),char(52),char(49),char(45),char(44),char(55), -char(64),char(63),char(67),char(66),char(59),char(63),char(70),char(64),char(64),char(73), -char(71),char(65),char(59),char(48),char(40),char(50),char(61),char(65),char(74),char(76), -char(62),char(49),char(51),char(59),char(69),char(78),char(84),char(93),char(92),char(81), -char(63),char(54),char(59),char(61),char(60),char(82),char(117),char(144),char(163),char(175), -char(183),char(195),char(201),char(198),char(198),char(200),char(191),char(183),char(183),char(188), -char(194),char(197),char(193),char(194),char(193),char(185),char(182),char(173),char(160),char(149), -char(141),char(121),char(105),char(102),char(100),char(91),char(85),char(101),char(130),char(143), -char(158),char(157),char(144),char(142),char(148),char(156),char(154),char(148),char(144),char(148), -char(138),char(105),char(100),char(98),char(95),char(109),char(114),char(112),char(109),char(97), -char(93),char(91),char(82),char(74),char(84),char(84),char(84),char(87),char(76),char(84), -char(88),char(96),char(87),char(97),char(112),char(115),char(118),char(112),char(114),char(111), -char(99),char(95),char(29),char(39),char(50),char(59),char(74),char(85),char(92),char(87), -char(82),char(73),char(72),char(66),char(66),char(63),char(56),char(68),char(77),char(79), -char(80),char(78),char(82),char(78),char(81),char(81),char(83),char(72),char(70),char(67), -char(62),char(49),char(41),char(45),char(59),char(77),char(85),char(79),char(64),char(58), -char(64),char(73),char(86),char(88),char(88),char(93),char(86),char(76),char(61),char(52), -char(52),char(51),char(53),char(78),char(113),char(141),char(159),char(172),char(175),char(185), -char(188),char(176),char(177),char(184),char(187),char(186),char(185),char(188),char(192),char(196), -char(196),char(198),char(190),char(176),char(173),char(168),char(161),char(160),char(157),char(136), -char(121),char(111),char(107),char(101),char(103),char(121),char(154),char(172),char(174),char(166), -char(156),char(145),char(143),char(153),char(156),char(152),char(155),char(155),char(139),char(118), -char(119),char(119),char(116),char(120),char(131),char(136),char(126),char(115),char(97),char(98), -char(94),char(92),char(101),char(93),char(98),char(102),char(95),char(91),char(90),char(97), -char(84),char(92),char(102),char(110),char(123),char(120),char(111),char(107),char(93),char(81), -char(28),char(40),char(53),char(58),char(70),char(86),char(87),char(83),char(82),char(78), -char(83),char(79),char(77),char(68),char(67),char(74),char(83),char(83),char(81),char(79), -char(87),char(85),char(91),char(90),char(90),char(81),char(75),char(71),char(70),char(68), -char(56),char(51),char(64),char(81),char(80),char(79),char(74),char(69),char(79),char(86), -char(93),char(90),char(96),char(92),char(81),char(65),char(54),char(50),char(48),char(46), -char(48),char(71),char(105),char(134),char(150),char(159),char(166),char(174),char(169),char(155), -char(146),char(158),char(180),char(187),char(185),char(183),char(183),char(188),char(193),char(192), -char(178),char(170),char(176),char(181),char(180),char(178),char(165),char(151),char(141),char(131), -char(125),char(123),char(124),char(142),char(173),char(186),char(182),char(179),char(171),char(161), -char(155),char(156),char(157),char(162),char(167),char(161),char(146),char(139),char(128),char(131), -char(136),char(141),char(153),char(151),char(136),char(129),char(113),char(110),char(107),char(104), -char(95),char(91),char(102),char(102),char(98),char(87),char(81),char(92),char(98),char(105), -char(102),char(104),char(110),char(104),char(97),char(95),char(90),char(77),char(36),char(43), -char(56),char(66),char(67),char(77),char(87),char(91),char(84),char(83),char(87),char(83), -char(76),char(69),char(74),char(82),char(86),char(81),char(85),char(87),char(93),char(97), -char(107),char(97),char(86),char(88),char(85),char(82),char(81),char(82),char(74),char(65), -char(74),char(85),char(82),char(79),char(78),char(78),char(86),char(88),char(92),char(89), -char(94),char(98),char(84),char(64),char(51),char(51),char(50),char(50),char(59),char(78), -char(105),char(125),char(134),char(144),char(153),char(152),char(146),char(136),char(128),char(142), -char(164),char(174),char(175),char(171),char(171),char(181),char(184),char(177),char(175),char(174), -char(177),char(181),char(184),char(181),char(167),char(157),char(150),char(148),char(149),char(149), -char(153),char(162),char(184),char(201),char(202),char(198),char(187),char(181),char(160),char(154), -char(163),char(172),char(167),char(156),char(149),char(140),char(126),char(130),char(140),char(154), -char(161),char(163),char(152),char(139),char(123),char(126),char(120),char(107),char(90),char(94), -char(104),char(102),char(94),char(88),char(87),char(99),char(119),char(112),char(96),char(96), -char(93),char(89),char(84),char(80),char(85),char(81),char(50),char(55),char(63),char(69), -char(74),char(85),char(92),char(91),char(87),char(92),char(96),char(96),char(90),char(78), -char(78),char(86),char(95),char(93),char(96),char(99),char(101),char(105),char(109),char(95), -char(95),char(103),char(106),char(105),char(105),char(96),char(95),char(88),char(87),char(93), -char(94),char(88),char(87),char(90),char(96),char(96),char(95),char(94),char(89),char(88), -char(85),char(79),char(69),char(70),char(66),char(61),char(75),char(90),char(105),char(117), -char(120),char(125),char(125),char(121),char(123),char(130),char(130),char(137),char(154),char(165), -char(166),char(162),char(167),char(176),char(177),char(174),char(176),char(176),char(172),char(171), -char(176),char(170),char(161),char(156),char(152),char(153),char(163),char(169),char(171),char(175), -char(189),char(209),char(219),char(226),char(217),char(202),char(174),char(152),char(147),char(155), -char(153),char(135),char(128),char(125),char(125),char(140),char(143),char(146),char(155),char(165), -char(160),char(156),char(140),char(132),char(130),char(122),char(109),char(112),char(104),char(94), -char(94),char(102),char(111),char(116),char(139),char(130),char(104),char(91),char(80),char(80), -char(78),char(78),char(85),char(80),char(63),char(68),char(73),char(79),char(93),char(101), -char(96),char(97),char(101),char(102),char(106),char(106),char(104),char(90),char(76),char(79), -char(93),char(107),char(109),char(111),char(108),char(106),char(103),char(107),char(116),char(121), -char(127),char(133),char(134),char(126),char(120),char(103),char(96),char(98),char(102),char(98), -char(95),char(99),char(101),char(99),char(93),char(89),char(74),char(71),char(73),char(75), -char(75),char(80),char(77),char(67),char(74),char(94),char(105),char(107),char(105),char(108), -char(105),char(102),char(112),char(128),char(131),char(133),char(141),char(150),char(155),char(152), -char(152),char(163),char(171),char(171),char(169),char(160),char(154),char(158),char(162),char(160), -char(157),char(154),char(155),char(159),char(163),char(177),char(190),char(196),char(203),char(216), -char(228),char(234),char(232),char(214),char(193),char(164),char(149),char(144),char(142),char(127), -char(118),char(128),char(135),char(142),char(139),char(138),char(156),char(171),char(178),char(185), -char(169),char(160),char(153),char(144),char(124),char(113),char(103),char(94),char(103),char(114), -char(118),char(121),char(141),char(141),char(119),char(93),char(73),char(69),char(76),char(89), -char(82),char(82),char(72),char(72),char(83),char(91),char(105),char(112),char(102),char(113), -char(117),char(110),char(116),char(109),char(110),char(99),char(82),char(74),char(89),char(106), -char(113),char(114),char(115),char(108),char(102),char(118),char(138),char(144),char(142),char(147), -char(150),char(152),char(142),char(128),char(111),char(101),char(102),char(106),char(99),char(95), -char(98),char(88),char(74),char(65),char(56),char(54),char(54),char(60),char(69),char(70), -char(72),char(71),char(80),char(94),char(93),char(89),char(94),char(100),char(97),char(98), -char(116),char(133),char(131),char(117),char(113),char(123),char(138),char(138),char(139),char(150), -char(163),char(167),char(160),char(151),char(150),char(149),char(143),char(147),char(156),char(162), -char(155),char(156),char(165),char(186),char(204),char(213),char(215),char(224),char(238),char(241), -char(235),char(221),char(202),char(173),char(154),char(140),char(134),char(120),char(116),char(139), -char(149),char(148),char(140),char(150),char(164),char(176),char(193),char(197),char(186),char(178), -char(172),char(164),char(140),char(123),char(112),char(103),char(101),char(111),char(113),char(113), -char(120),char(129),char(124),char(109),char(88),char(84),char(96),char(99),char(81),char(77), -char(84),char(86),char(89),char(94),char(110),char(120),char(117),char(128),char(133),char(132), -char(125),char(112),char(108),char(99),char(82),char(80),char(96),char(110),char(107),char(107), -char(114),char(113),char(112),char(125),char(143),char(144),char(145),char(152),char(160),char(162), -char(160),char(155),char(134),char(115),char(106),char(103),char(103),char(101),char(91),char(75), -char(59),char(47),char(40),char(37),char(37),char(43),char(52),char(57),char(65),char(72), -char(78),char(88),char(87),char(72),char(72),char(82),char(88),char(99),char(113),char(125), -char(121),char(101),char(92),char(102),char(117),char(130),char(138),char(143),char(153),char(155), -char(151),char(151),char(148),char(140),char(133),char(139),char(152),char(161),char(155),char(159), -char(173),char(191),char(213),char(224),char(227),char(235),char(243),char(244),char(238),char(225), -char(208),char(183),char(163),char(144),char(135),char(124),char(126),char(145),char(156),char(157), -char(160),char(157),char(162),char(169),char(192),char(195),char(187),char(182),char(176),char(171), -char(159),char(129),char(115),char(105),char(91),char(95),char(98),char(103),char(108),char(114), -char(128),char(131),char(116),char(112),char(113),char(103),char(86),char(81),char(95),char(100), -char(104),char(113),char(117),char(127),char(134),char(143),char(149),char(155),char(139),char(131), -char(117),char(106),char(88),char(80),char(86),char(101),char(102),char(108),char(109),char(116), -char(117),char(126),char(136),char(139),char(144),char(145),char(159),char(171),char(175),char(164), -char(150),char(134),char(111),char(92),char(93),char(101),char(97),char(82),char(63),char(49), -char(37),char(28),char(28),char(32),char(41),char(48),char(60),char(66),char(63),char(63), -char(68),char(64),char(56),char(62),char(74),char(91),char(110),char(113),char(107),char(92), -char(82),char(91),char(103),char(118),char(132),char(137),char(137),char(137),char(145),char(146), -char(144),char(134),char(128),char(142),char(150),char(150),char(155),char(159),char(176),char(201), -char(222),char(230),char(229),char(234),char(245),char(243),char(242),char(233),char(213),char(193), -char(167),char(142),char(136),char(137),char(147),char(159),char(162),char(166),char(174),char(167), -char(167),char(172),char(183),char(188),char(187),char(189),char(184),char(175),char(166),char(133), -char(108),char(100),char(88),char(75),char(82),char(83),char(93),char(115),char(133),char(133), -char(123),char(117),char(126),char(110),char(106),char(102),char(102),char(107),char(122),char(129), -char(130),char(139),char(140),char(138),char(144),char(157),char(150),char(149),char(131),char(117), -char(103),char(83),char(74),char(82),char(87),char(92),char(97),char(107),char(108),char(107), -char(119),char(124),char(138),char(147),char(162),char(175),char(186),char(177),char(159),char(143), -char(119),char(106),char(102),char(107),char(104),char(87),char(69),char(56),char(44),char(34), -char(30),char(34),char(39),char(39),char(45),char(51),char(48),char(48),char(54),char(56), -char(52),char(57),char(66),char(82),char(96),char(97),char(96),char(91),char(82),char(81), -char(95),char(119),char(140),char(148),char(138),char(142),char(153),char(150),char(147),char(135), -char(121),char(126),char(137),char(143),char(157),char(166),char(172),char(196),char(214),char(219), -char(220),char(231),char(244),char(248),char(241),char(231),char(202),char(184),char(165),char(143), -char(132),char(134),char(151),char(165),char(169),char(171),char(172),char(168),char(170),char(177), -char(182),char(191),char(197),char(196),char(190),char(181),char(166),char(143),char(124),char(109), -char(100),char(83),char(74),char(70),char(85),char(109),char(130),char(128),char(125),char(124), -char(124),char(119),char(121),char(120),char(92),char(104),char(129),char(135),char(141),char(149), -char(138),char(136),char(140),char(150),char(158),char(155),char(137),char(113),char(108),char(93), -char(77),char(65),char(70),char(71),char(81),char(88),char(92),char(93),char(107),char(116), -char(129),char(149),char(169),char(184),char(198),char(189),char(171),char(154),char(138),char(125), -char(113),char(106),char(99),char(83),char(70),char(67),char(49),char(35),char(34),char(34), -char(32),char(34),char(36),char(43),char(49),char(46),char(52),char(56),char(54),char(48), -char(52),char(67),char(78),char(82),char(82),char(81),char(80),char(79),char(90),char(114), -char(136),char(149),char(148),char(153),char(164),char(159),char(143),char(126),char(110),char(106), -char(118),char(143),char(158),char(159),char(163),char(181),char(203),char(213),char(215),char(227), -char(241),char(247),char(237),char(221),char(204),char(189),char(169),char(149),char(140),char(138), -char(153),char(169),char(172),char(164),char(160),char(169),char(175),char(180),char(185),char(187), -char(196),char(196),char(199),char(198),char(183),char(165),char(144),char(127),char(109),char(92), -char(78),char(78),char(94),char(110),char(127),char(129),char(123),char(127),char(123),char(124), -char(125),char(137),char(84),char(94),char(123),char(137),char(141),char(146),char(147),char(149), -char(150),char(156),char(161),char(144),char(122),char(111),char(114),char(101),char(85),char(73), -char(65),char(61),char(70),char(77),char(79),char(84),char(103),char(117),char(135),char(154), -char(179),char(194),char(199),char(197),char(188),char(172),char(160),char(146),char(124),char(110), -char(98),char(82),char(76),char(72),char(54),char(34),char(31),char(32),char(27),char(30), -char(31),char(36),char(43),char(45),char(52),char(55),char(53),char(49),char(48),char(54), -char(59),char(64),char(63),char(64),char(69),char(72),char(87),char(110),char(131),char(147), -char(150),char(156),char(165),char(159),char(136),char(119),char(113),char(103),char(112),char(139), -char(151),char(153),char(162),char(178),char(197),char(211),char(220),char(230),char(239),char(242), -char(232),char(210),char(201),char(195),char(184),char(166),char(165),char(161),char(164),char(180), -char(174),char(159),char(156),char(171),char(178),char(175),char(179),char(184),char(197),char(198), -char(199),char(201),char(189),char(170),char(146),char(133),char(119),char(92),char(82),char(83), -char(96),char(114),char(124),char(136),char(131),char(126),char(121),char(130),char(143),char(150), -char(96),char(101),char(122),char(143),char(154),char(164),char(175),char(171),char(158),char(155), -char(153),char(134),char(122),char(121),char(110),char(109),char(96),char(79),char(70),char(67), -char(73),char(74),char(74),char(80),char(96),char(124),char(151),char(166),char(187),char(198), -char(201),char(208),char(205),char(197),char(180),char(156),char(128),char(115),char(99),char(85), -char(84),char(76),char(60),char(44),char(36),char(34),char(29),char(29),char(28),char(29), -char(35),char(44),char(49),char(48),char(52),char(59),char(59),char(54),char(58),char(59), -char(57),char(59),char(60),char(63),char(82),char(104),char(119),char(138),char(150),char(155), -char(160),char(152),char(124),char(106),char(105),char(106),char(112),char(127),char(141),char(151), -char(164),char(176),char(185),char(202),char(217),char(228),char(236),char(232),char(229),char(215), -char(201),char(196),char(192),char(180),char(179),char(173),char(170),char(177),char(169),char(157), -char(159),char(162),char(169),char(169),char(168),char(182),char(195),char(192),char(190),char(188), -char(175),char(157),char(144),char(135),char(116),char(98),char(88),char(81),char(93),char(110), -char(120),char(133),char(142),char(128),char(124),char(143),char(159),char(158),char(110),char(112), -char(124),char(156),char(169),char(182),char(193),char(178),char(161),char(153),char(146),char(135), -char(132),char(135),char(117),char(104),char(97),char(81),char(87),char(87),char(93),char(82), -char(78),char(84),char(98),char(127),char(150),char(170),char(191),char(202),char(207),char(210), -char(213),char(202),char(177),char(147),char(127),char(109),char(93),char(84),char(78),char(76), -char(65),char(55),char(45),char(36),char(30),char(27),char(24),char(27),char(36),char(43), -char(40),char(39),char(48),char(64),char(64),char(56),char(60),char(61),char(60),char(56), -char(52),char(63),char(86),char(99),char(113),char(140),char(160),char(161),char(157),char(144), -char(117),char(99),char(98),char(106),char(114),char(122),char(137),char(154),char(166),char(170), -char(178),char(195),char(212),char(220),char(226),char(229),char(228),char(223),char(207),char(193), -char(189),char(183),char(176),char(176),char(169),char(163),char(155),char(145),char(148),char(149), -char(157),char(167),char(165),char(167),char(171),char(171),char(171),char(166),char(155),char(146), -char(140),char(137),char(115),char(103),char(96),char(90),char(97),char(100),char(103),char(117), -char(139),char(135),char(133),char(141),char(151),char(158),char(133),char(136),char(142),char(164), -char(176),char(186),char(188),char(183),char(170),char(160),char(147),char(149),char(155),char(147), -char(137),char(118),char(101),char(93),char(100),char(103),char(111),char(96),char(91),char(98), -char(114),char(142),char(155),char(169),char(190),char(198),char(201),char(203),char(202),char(193), -char(174),char(144),char(126),char(107),char(100),char(92),char(83),char(77),char(73),char(56), -char(47),char(39),char(32),char(26),char(21),char(25),char(33),char(36),char(35),char(33), -char(38),char(57),char(67),char(71),char(74),char(72),char(66),char(57),char(55),char(66), -char(87),char(102),char(121),char(146),char(158),char(150),char(142),char(137),char(126),char(113), -char(106),char(108),char(119),char(133),char(143),char(158),char(169),char(170),char(179),char(197), -char(215),char(220),char(226),char(230),char(228),char(218),char(205),char(187),char(180),char(173), -char(168),char(171),char(163),char(147),char(132),char(123),char(126),char(136),char(145),char(157), -char(156),char(149),char(150),char(145),char(145),char(137),char(131),char(131),char(128),char(124), -char(106),char(98),char(95),char(89),char(84),char(86),char(91),char(108),char(121),char(126), -char(131),char(134),char(133),char(148),char(153),char(158),char(156),char(165),char(176),char(180), -char(174),char(180),char(180),char(170),char(160),char(165),char(178),char(171),char(159),char(147), -char(126),char(124),char(119),char(118),char(120),char(113),char(110),char(119),char(132),char(147), -char(155),char(169),char(186),char(190),char(197),char(201),char(199),char(190),char(170),char(144), -char(130),char(116),char(107),char(106),char(92),char(82),char(74),char(60),char(49),char(46), -char(37),char(33),char(26),char(24),char(29),char(32),char(32),char(31),char(38),char(55), -char(72),char(81),char(86),char(84),char(79),char(70),char(59),char(66),char(86),char(102), -char(118),char(134),char(141),char(135),char(130),char(130),char(128),char(123),char(120),char(116), -char(127),char(147),char(158),char(173),char(181),char(182),char(186),char(201),char(218),char(221), -char(223),char(226),char(225),char(220),char(203),char(186),char(177),char(167),char(159),char(161), -char(150),char(126),char(114),char(109),char(114),char(122),char(138),char(151),char(149),char(150), -char(140),char(134),char(133),char(128),char(133),char(138),char(134),char(113),char(96),char(89), -char(85),char(68),char(65),char(73),char(83),char(95),char(109),char(109),char(120),char(122), -char(120),char(128),char(163),char(161),char(156),char(164),char(172),char(172),char(178),char(182), -char(185),char(182),char(176),char(182),char(193),char(185),char(180),char(171),char(162),char(156), -char(145),char(137),char(135),char(137),char(139),char(151),char(148),char(151),char(160),char(173), -char(184),char(189),char(201),char(206),char(196),char(182),char(165),char(144),char(133),char(127), -char(121),char(118),char(95),char(78),char(70),char(60),char(57),char(56),char(50),char(43), -char(33),char(30),char(33),char(35),char(32),char(31),char(39),char(57),char(75),char(83), -char(85),char(78),char(77),char(76),char(69),char(77),char(90),char(96),char(107),char(114), -char(124),char(127),char(130),char(131),char(131),char(132),char(129),char(121),char(130),char(154), -char(169),char(182),char(187),char(190),char(194),char(193),char(199),char(203),char(210),char(218), -char(223),char(226),char(215),char(200),char(181),char(169),char(159),char(146),char(130),char(116), -char(106),char(106),char(118),char(125),char(140),char(149),char(155),char(152),char(142),char(145), -char(145),char(136),char(138),char(146),char(136),char(106),char(94),char(78),char(69),char(56), -char(54),char(60),char(72),char(80),char(96),char(102),char(102),char(103),char(109),char(114), -char(173),char(167),char(159),char(164),char(172),char(174),char(181),char(183),char(174),char(174), -char(176),char(186),char(188),char(176),char(180),char(180),char(173),char(166),char(161),char(155), -char(154),char(161),char(161),char(170),char(164),char(167),char(185),char(191),char(192),char(198), -char(204),char(205),char(198),char(182),char(176),char(164),char(157),char(148),char(137),char(125), -char(110),char(96),char(79),char(70),char(71),char(66),char(63),char(54),char(39),char(38), -char(44),char(42),char(37),char(36),char(42),char(56),char(69),char(80),char(78),char(68), -char(66),char(72),char(80),char(88),char(92),char(95),char(101),char(108),char(122),char(127), -char(133),char(136),char(140),char(142),char(125),char(115),char(124),char(147),char(163),char(169), -char(175),char(184),char(190),char(189),char(187),char(189),char(196),char(202),char(210),char(216), -char(216),char(207),char(185),char(171),char(162),char(140),char(122),char(112),char(107),char(108), -char(120),char(132),char(143),char(152),char(165),char(153),char(147),char(152),char(157),char(149), -char(140),char(137),char(124),char(96),char(84),char(74),char(57),char(53),char(53),char(59), -char(73),char(78),char(88),char(95),char(89),char(85),char(90),char(92),char(189),char(178), -char(162),char(160),char(157),char(165),char(169),char(167),char(162),char(160),char(165),char(170), -char(172),char(162),char(165),char(174),char(176),char(177),char(168),char(165),char(169),char(178), -char(184),char(185),char(184),char(188),char(206),char(203),char(198),char(207),char(202),char(203), -char(200),char(191),char(195),char(191),char(183),char(164),char(144),char(125),char(123),char(118), -char(93),char(84),char(82),char(74),char(63),char(57),char(46),char(46),char(50),char(43), -char(38),char(37),char(39),char(50),char(60),char(68),char(63),char(57),char(56),char(71), -char(89),char(101),char(103),char(101),char(104),char(109),char(123),char(135),char(138),char(141), -char(143),char(137),char(116),char(104),char(113),char(135),char(148),char(153),char(161),char(179), -char(190),char(191),char(185),char(182),char(183),char(188),char(197),char(206),char(213),char(203), -char(178),char(159),char(155),char(136),char(118),char(102),char(102),char(106),char(119),char(136), -char(141),char(148),char(161),char(150),char(148),char(152),char(150),char(150),char(136),char(126), -char(114),char(97),char(77),char(68),char(56),char(56),char(56),char(59),char(69),char(71), -char(78),char(85),char(80),char(76),char(73),char(80),char(192),char(181),char(162),char(150), -char(147),char(145),char(153),char(150),char(151),char(150),char(152),char(154),char(158),char(151), -char(156),char(163),char(169),char(174),char(168),char(163),char(172),char(184),char(203),char(205), -char(203),char(205),char(213),char(215),char(209),char(214),char(204),char(200),char(199),char(198), -char(203),char(206),char(196),char(173),char(146),char(125),char(123),char(115),char(99),char(86), -char(76),char(69),char(57),char(53),char(54),char(56),char(53),char(44),char(41),char(38), -char(40),char(45),char(52),char(57),char(55),char(52),char(55),char(72),char(93),char(104), -char(104),char(107),char(110),char(113),char(126),char(138),char(140),char(142),char(140),char(127), -char(114),char(108),char(116),char(137),char(149),char(153),char(154),char(173),char(189),char(191), -char(177),char(172),char(178),char(177),char(180),char(187),char(193),char(182),char(161),char(150), -char(145),char(138),char(122),char(102),char(99),char(111),char(126),char(135),char(135),char(134), -char(149),char(150),char(151),char(155),char(148),char(137),char(124),char(109),char(104),char(101), -char(83),char(67),char(56),char(58),char(61),char(62),char(60),char(63),char(62),char(64), -char(69),char(67),char(63),char(70),char(189),char(177),char(165),char(150),char(140),char(136), -char(138),char(136),char(140),char(134),char(131),char(143),char(149),char(148),char(156),char(159), -char(156),char(162),char(168),char(167),char(171),char(195),char(214),char(213),char(209),char(207), -char(213),char(223),char(220),char(217),char(206),char(206),char(204),char(207),char(211),char(212), -char(200),char(177),char(143),char(120),char(109),char(101),char(92),char(79),char(60),char(55), -char(49),char(49),char(57),char(63),char(54),char(46),char(43),char(41),char(41),char(42), -char(44),char(46),char(48),char(48),char(57),char(75),char(90),char(96),char(96),char(102), -char(109),char(118),char(127),char(131),char(134),char(129),char(122),char(117),char(120),char(123), -char(125),char(144),char(164),char(163),char(157),char(166),char(184),char(185),char(177),char(178), -char(180),char(174),char(166),char(168),char(167),char(164),char(155),char(151),char(151),char(151), -char(135),char(119),char(113),char(122),char(134),char(137),char(131),char(134),char(142),char(146), -char(149),char(154),char(144),char(120),char(112),char(95),char(88),char(98),char(89),char(73), -char(58),char(59),char(64),char(64),char(58),char(60),char(58),char(59),char(66),char(68), -char(63),char(60),char(189),char(174),char(168),char(154),char(138),char(126),char(117),char(122), -char(132),char(131),char(126),char(129),char(135),char(148),char(159),char(155),char(164),char(169), -char(177),char(182),char(189),char(211),char(219),char(218),char(215),char(207),char(208),char(220), -char(229),char(231),char(220),char(217),char(216),char(210),char(213),char(214),char(201),char(172), -char(141),char(121),char(104),char(89),char(74),char(65),char(59),char(51),char(47),char(50), -char(62),char(64),char(54),char(46),char(42),char(39),char(38),char(36),char(37),char(42), -char(46),char(50),char(62),char(83),char(96),char(100),char(99),char(101),char(114),char(123), -char(120),char(118),char(122),char(119),char(117),char(120),char(129),char(131),char(134),char(154), -char(173),char(177),char(180),char(180),char(189),char(193),char(187),char(184),char(185),char(178), -char(166),char(157),char(152),char(155),char(160),char(162),char(160),char(151),char(142),char(138), -char(130),char(131),char(143),char(147),char(142),char(141),char(139),char(135),char(137),char(137), -char(123),char(103),char(100),char(94),char(87),char(90),char(85),char(76),char(62),char(63), -char(62),char(67),char(68),char(69),char(69),char(66),char(64),char(65),char(65),char(57), -char(176),char(168),char(166),char(157),char(148),char(128),char(113),char(113),char(123),char(127), -char(121),char(121),char(126),char(152),char(164),char(167),char(182),char(190),char(196),char(202), -char(208),char(222),char(231),char(230),char(225),char(220),char(219),char(226),char(237),char(242), -char(234),char(225),char(217),char(209),char(214),char(204),char(184),char(153),char(133),char(118), -char(100),char(81),char(64),char(56),char(52),char(45),char(45),char(56),char(62),char(59), -char(52),char(44),char(40),char(37),char(33),char(32),char(39),char(47),char(56),char(67), -char(84),char(105),char(117),char(112),char(109),char(113),char(124),char(135),char(126),char(114), -char(112),char(112),char(116),char(122),char(137),char(143),char(145),char(168),char(191),char(194), -char(202),char(206),char(204),char(200),char(190),char(178),char(175),char(175),char(169),char(152), -char(150),char(153),char(158),char(168),char(164),char(147),char(144),char(146),char(144),char(150), -char(166),char(159),char(155),char(145),char(135),char(130),char(133),char(122),char(107),char(88), -char(73),char(84),char(86),char(88),char(79),char(74),char(63),char(68),char(66),char(75), -char(77),char(78),char(79),char(77),char(67),char(63),char(61),char(57),char(170),char(166), -char(165),char(163),char(156),char(131),char(120),char(115),char(125),char(129),char(120),char(121), -char(128),char(156),char(168),char(180),char(193),char(200),char(209),char(213),char(216),char(227), -char(231),char(236),char(238),char(236),char(236),char(241),char(245),char(243),char(236),char(226), -char(220),char(212),char(204),char(187),char(169),char(152),char(133),char(121),char(99),char(71), -char(57),char(47),char(40),char(35),char(40),char(55),char(66),char(58),char(49),char(44), -char(38),char(36),char(35),char(40),char(48),char(56),char(71),char(86),char(107),char(127), -char(134),char(130),char(127),char(127),char(129),char(139),char(130),char(111),char(101),char(102), -char(111),char(126),char(145),char(153),char(157),char(179),char(201),char(206),char(211),char(218), -char(215),char(204),char(193),char(180),char(170),char(169),char(167),char(153),char(149),char(155), -char(159),char(166),char(163),char(154),char(159),char(161),char(157),char(168),char(174),char(168), -char(167),char(148),char(131),char(123),char(120),char(103),char(87),char(69),char(58),char(68), -char(80),char(85),char(81),char(77),char(70),char(69),char(69),char(79),char(83),char(83), -char(88),char(86),char(78),char(71),char(67),char(69),char(181),char(180),char(176),char(173), -char(160),char(131),char(121),char(124),char(132),char(136),char(136),char(138),char(145),char(166), -char(173),char(187),char(201),char(207),char(213),char(216),char(225),char(233),char(232),char(241), -char(247),char(244),char(243),char(247),char(243),char(235),char(229),char(221),char(220),char(216), -char(202),char(176),char(161),char(153),char(134),char(122),char(98),char(61),char(46),char(42), -char(37),char(38),char(38),char(50),char(66),char(61),char(53),char(51),char(47),char(43), -char(42),char(49),char(58),char(70),char(87),char(103),char(122),char(137),char(144),char(152), -char(154),char(148),char(140),char(134),char(130),char(118),char(103),char(101),char(117),char(135), -char(145),char(155),char(168),char(189),char(208),char(217),char(215),char(213),char(206),char(196), -char(189),char(188),char(177),char(166),char(161),char(149),char(145),char(161),char(165),char(167), -char(175),char(178),char(172),char(171),char(175),char(183),char(173),char(162),char(164),char(151), -char(134),char(118),char(107),char(93),char(79),char(62),char(57),char(60),char(73),char(78), -char(85),char(86),char(82),char(75),char(67),char(75),char(86),char(91),char(94),char(88), -char(77),char(79),char(76),char(84),char(191),char(198),char(195),char(183),char(167),char(145), -char(124),char(124),char(137),char(145),char(148),char(154),char(154),char(167),char(175),char(193), -char(208),char(217),char(215),char(215),char(226),char(239),char(240),char(244),char(249),char(246), -char(239),char(242),char(239),char(225),char(220),char(218),char(223),char(222),char(206),char(175), -char(151),char(140),char(121),char(102),char(84),char(62),char(50),char(47),char(41),char(41), -char(38),char(50),char(68),char(70),char(59),char(59),char(59),char(55),char(49),char(55), -char(66),char(79),char(100),char(125),char(145),char(157),char(160),char(169),char(174),char(166), -char(150),char(134),char(126),char(120),char(110),char(109),char(124),char(135),char(139),char(150), -char(168),char(193),char(216),char(222),char(214),char(205),char(193),char(182),char(182),char(187), -char(184),char(175),char(168),char(156),char(154),char(166),char(171),char(177),char(188),char(186), -char(178),char(174),char(185),char(187),char(174),char(155),char(148),char(152),char(138),char(120), -char(98),char(88),char(86),char(74),char(67),char(68),char(71),char(80),char(90),char(85), -char(85),char(90),char(80),char(76),char(83),char(93),char(94),char(80),char(68),char(75), -char(78),char(88),char(185),char(200),char(200),char(194),char(179),char(166),char(137),char(133), -char(139),char(144),char(148),char(148),char(148),char(155),char(171),char(190),char(205),char(217), -char(218),char(217),char(225),char(241),char(239),char(239),char(245),char(244),char(233),char(236), -char(232),char(217),char(215),char(213),char(219),char(217),char(199),char(178),char(150),char(135), -char(115),char(87),char(71),char(59),char(54),char(51),char(45),char(40),char(39),char(55), -char(76),char(77),char(59),char(52),char(56),char(62),char(58),char(61),char(73),char(86), -char(108),char(142),char(167),char(180),char(181),char(184),char(190),char(178),char(161),char(151), -char(138),char(132),char(121),char(113),char(114),char(124),char(131),char(137),char(150),char(174), -char(199),char(212),char(209),char(201),char(182),char(173),char(175),char(176),char(189),char(192), -char(187),char(173),char(174),char(187),char(190),char(192),char(188),char(177),char(173),char(169), -char(176),char(183),char(173),char(157),char(150),char(148),char(139),char(119),char(94),char(83), -char(82),char(82),char(77),char(75),char(86),char(93),char(91),char(84),char(90),char(102), -char(101),char(90),char(87),char(89),char(88),char(76),char(69),char(76),char(82),char(88), -char(170),char(183),char(195),char(198),char(190),char(176),char(153),char(144),char(137),char(135), -char(136),char(135),char(145),char(154),char(171),char(184),char(199),char(215),char(229),char(230), -char(233),char(241),char(240),char(239),char(241),char(236),char(222),char(220),char(218),char(204), -char(203),char(200),char(203),char(204),char(191),char(173),char(147),char(118),char(92),char(71), -char(61),char(55),char(55),char(50),char(46),char(43),char(45),char(58),char(78),char(78), -char(61),char(51),char(54),char(62),char(61),char(62),char(78),char(96),char(120),char(154), -char(177),char(192),char(199),char(200),char(195),char(180),char(167),char(155),char(149),char(139), -char(127),char(118),char(108),char(111),char(117),char(123),char(130),char(145),char(170),char(192), -char(197),char(195),char(183),char(173),char(170),char(177),char(188),char(196),char(199),char(194), -char(200),char(207),char(210),char(208),char(188),char(165),char(157),char(153),char(156),char(167), -char(170),char(164),char(153),char(135),char(125),char(109),char(95),char(81),char(76),char(81), -char(91),char(94),char(104),char(105),char(102),char(98),char(103),char(110),char(118),char(104), -char(90),char(85),char(84),char(81),char(79),char(85),char(89),char(90),char(173),char(175), -char(180),char(185),char(181),char(170),char(158),char(144),char(133),char(128),char(127),char(130), -char(148),char(168),char(176),char(186),char(205),char(225),char(240),char(245),char(245),char(246), -char(245),char(240),char(236),char(228),char(215),char(209),char(206),char(193),char(188),char(188), -char(194),char(199),char(185),char(162),char(129),char(90),char(71),char(58),char(53),char(51), -char(53),char(48),char(48),char(48),char(50),char(62),char(79),char(81),char(76),char(68), -char(65),char(66),char(68),char(74),char(94),char(117),char(135),char(156),char(176),char(196), -char(202),char(197),char(183),char(169),char(154),char(140),char(139),char(134),char(124),char(118), -char(115),char(113),char(114),char(120),char(128),char(130),char(149),char(175),char(186),char(192), -char(192),char(181),char(176),char(184),char(191),char(200),char(203),char(208),char(210),char(209), -char(213),char(210),char(186),char(164),char(152),char(140),char(144),char(153),char(163),char(162), -char(143),char(126),char(108),char(92),char(89),char(82),char(75),char(79),char(99),char(112), -char(109),char(104),char(110),char(113),char(114),char(123),char(121),char(104),char(89),char(88), -char(89),char(84),char(89),char(92),char(96),char(100),char(195),char(186),char(174),char(168), -char(162),char(157),char(152),char(139),char(126),char(117),char(124),char(130),char(151),char(171), -char(175),char(189),char(206),char(231),char(244),char(247),char(246),char(244),char(246),char(240), -char(231),char(218),char(211),char(206),char(198),char(191),char(184),char(186),char(197),char(197), -char(173),char(146),char(107),char(74),char(60),char(53),char(45),char(41),char(39),char(38), -char(45),char(54),char(61),char(69),char(79),char(86),char(87),char(79),char(79),char(83), -char(89),char(95),char(117),char(139),char(146),char(153),char(172),char(192),char(196),char(182), -char(168),char(157),char(144),char(137),char(132),char(125),char(123),char(120),char(121),char(117), -char(110),char(114),char(128),char(129),char(133),char(153),char(179),char(190),char(189),char(181), -char(180),char(191),char(192),char(197),char(197),char(203),char(204),char(200),char(199),char(195), -char(181),char(170),char(162),char(143),char(140),char(144),char(150),char(147),char(137),char(121), -char(101),char(82),char(86),char(86),char(80),char(83),char(106),char(119),char(110),char(102), -char(110),char(119),char(124),char(129),char(124),char(108),char(94),char(97),char(90),char(82), -char(86),char(88),char(106),char(111),char(206),char(195),char(182),char(162),char(147),char(147), -char(145),char(131),char(121),char(111),char(115),char(129),char(153),char(169),char(177),char(189), -char(207),char(227),char(239),char(242),char(240),char(239),char(243),char(234),char(221),char(202), -char(201),char(197),char(187),char(188),char(187),char(191),char(193),char(190),char(158),char(120), -char(88),char(68),char(48),char(43),char(37),char(33),char(27),char(31),char(43),char(64), -char(74),char(76),char(84),char(91),char(93),char(89),char(89),char(93),char(105),char(114), -char(135),char(156),char(162),char(162),char(170),char(184),char(195),char(183),char(167),char(158), -char(147),char(135),char(127),char(118),char(114),char(116),char(120),char(119),char(114),char(114), -char(125),char(131),char(126),char(136),char(162),char(172),char(176),char(179),char(180),char(185), -char(183),char(180),char(185),char(187),char(190),char(189),char(185),char(176),char(170),char(167), -char(159),char(147),char(136),char(128),char(130),char(131),char(128),char(111),char(93),char(85), -char(94),char(88),char(90),char(104),char(120),char(126),char(126),char(121),char(119),char(122), -char(128),char(130),char(125),char(117),char(103),char(95),char(80),char(78),char(77),char(85), -char(113),char(112),char(199),char(194),char(183),char(161),char(138),char(133),char(134),char(125), -char(117),char(116),char(117),char(129),char(150),char(169),char(177),char(188),char(208),char(216), -char(225),char(230),char(238),char(240),char(236),char(225),char(211),char(197),char(200),char(199), -char(193),char(190),char(190),char(189),char(185),char(180),char(151),char(107),char(80),char(62), -char(44),char(36),char(29),char(24),char(25),char(36),char(46),char(61),char(76),char(89), -char(98),char(102),char(105),char(106),char(105),char(113),char(129),char(136),char(151),char(170), -char(176),char(175),char(177),char(186),char(196),char(194),char(173),char(156),char(142),char(120), -char(112),char(107),char(107),char(116),char(118),char(118),char(123),char(125),char(130),char(134), -char(124),char(127),char(138),char(144),char(150),char(165),char(176),char(176),char(171),char(157), -char(165),char(171),char(177),char(178),char(166),char(152),char(149),char(154),char(151),char(149), -char(139),char(119),char(110),char(111),char(102),char(93),char(85),char(90),char(99),char(94), -char(100),char(118),char(123),char(129),char(135),char(143),char(137),char(134),char(137),char(142), -char(122),char(110),char(94),char(81),char(71),char(73),char(80),char(87),char(109),char(112), -char(185),char(178),char(173),char(165),char(148),char(128),char(129),char(127),char(125),char(128), -char(131),char(139),char(153),char(160),char(169),char(180),char(194),char(198),char(208),char(221), -char(236),char(243),char(237),char(223),char(207),char(196),char(199),char(203),char(204),char(200), -char(191),char(187),char(179),char(170),char(146),char(110),char(85),char(69),char(52),char(38), -char(25),char(21),char(28),char(41),char(50),char(57),char(74),char(95),char(104),char(103), -char(109),char(118),char(128),char(142),char(148),char(151),char(161),char(173),char(180),char(183), -char(186),char(191),char(196),char(197),char(179),char(150),char(130),char(109),char(93),char(94), -char(105),char(113),char(109),char(104),char(117),char(127),char(129),char(132),char(123),char(117), -char(119),char(123),char(135),char(151),char(167),char(166),char(151),char(139),char(145),char(158), -char(168),char(170),char(151),char(132),char(134),char(145),char(152),char(152),char(141),char(128), -char(115),char(99),char(82),char(82),char(93),char(103),char(108),char(104),char(101),char(109), -char(120),char(138),char(143),char(153),char(141),char(131),char(127),char(135),char(116),char(93), -char(74),char(68),char(67),char(73),char(85),char(95),char(112),char(106),char(162),char(149), -char(152),char(157),char(161),char(137),char(140),char(137),char(137),char(137),char(135),char(144), -char(159),char(158),char(163),char(175),char(177),char(180),char(193),char(213),char(226),char(238), -char(235),char(219),char(198),char(190),char(189),char(195),char(200),char(198),char(191),char(188), -char(177),char(164),char(145),char(118),char(99),char(86),char(69),char(47),char(30),char(26), -char(31),char(43),char(49),char(56),char(70),char(85),char(95),char(103),char(109),char(119), -char(134),char(150),char(159),char(161),char(166),char(170),char(173),char(174),char(177),char(179), -char(184),char(191),char(179),char(151),char(126),char(105),char(82),char(80),char(93),char(100), -char(92),char(83),char(95),char(112),char(114),char(116),char(111),char(108),char(112),char(119), -char(134),char(140),char(144),char(140),char(126),char(128),char(138),char(148),char(157),char(161), -char(152),char(128),char(128),char(142),char(148),char(146),char(142),char(138),char(127),char(105), -char(84),char(88),char(105),char(113),char(115),char(110),char(101),char(96),char(116),char(138), -char(147),char(146),char(138),char(115),char(104),char(109),char(100),char(75),char(60),char(66), -char(72),char(76),char(83),char(102),char(115),char(103),char(136),char(129),char(131),char(137), -char(153),char(147),char(148),char(143),char(142),char(138),char(133),char(134),char(149),char(150), -char(154),char(169),char(171),char(176),char(187),char(204),char(216),char(226),char(223),char(207), -char(190),char(185),char(185),char(179),char(186),char(195),char(192),char(189),char(184),char(167), -char(145),char(127),char(117),char(97),char(77),char(50),char(35),char(35),char(40),char(46), -char(49),char(57),char(67),char(83),char(97),char(108),char(119),char(124),char(128),char(145), -char(159),char(156),char(160),char(167),char(166),char(166),char(165),char(162),char(171),char(180), -char(168),char(148),char(124),char(97),char(73),char(67),char(78),char(84),char(76),char(66), -char(76),char(95),char(107),char(109),char(103),char(100),char(110),char(117),char(119),char(117), -char(114),char(112),char(109),char(115),char(128),char(140),char(149),char(155),char(154),char(131), -char(130),char(139),char(140),char(145),char(151),char(145),char(129),char(112),char(99),char(99), -char(111),char(113),char(108),char(108),char(110),char(98),char(106),char(123),char(135),char(134), -char(138),char(112),char(96),char(93),char(79),char(56),char(51),char(62),char(68),char(74), -char(91),char(109),char(119),char(114),char(111),char(117),char(126),char(134),char(139),char(144), -char(147),char(144),char(143),char(136),char(125),char(125),char(139),char(140),char(149),char(159), -char(163),char(171),char(184),char(199),char(212),char(218),char(220),char(209),char(198),char(189), -char(187),char(177),char(177),char(195),char(191),char(186),char(178),char(162),char(138),char(125), -char(117),char(106),char(89),char(56),char(41),char(41),char(49),char(50),char(55),char(63), -char(67),char(84),char(100),char(106),char(121),char(130),char(136),char(148),char(154),char(147), -char(152),char(155),char(155),char(163),char(170),char(168),char(171),char(172),char(157),char(141), -char(113),char(80),char(60),char(57),char(60),char(61),char(57),char(49),char(62),char(89), -char(107),char(107),char(103),char(101),char(104),char(101),char(99),char(96),char(93),char(89), -char(93),char(104),char(115),char(126),char(129),char(135),char(141),char(129),char(126),char(126), -char(127),char(135),char(139),char(134),char(124),char(112),char(107),char(99),char(102),char(108), -char(104),char(106),char(119),char(119),char(111),char(114),char(122),char(125),char(122),char(108), -char(94),char(81),char(66),char(56),char(52),char(53),char(56),char(68),char(90),char(113), -char(125),char(124),char(93),char(101),char(127),char(142),char(136),char(140),char(142),char(141), -char(141),char(125),char(109),char(112),char(124),char(133),char(142),char(146),char(149),char(154), -char(167),char(184),char(202),char(214),char(210),char(208),char(203),char(195),char(185),char(182), -char(184),char(191),char(186),char(179),char(167),char(149),char(132),char(125),char(117),char(116), -char(104),char(74),char(51),char(46),char(57),char(60),char(62),char(70),char(76),char(83), -char(97),char(102),char(119),char(135),char(143),char(151),char(150),char(144),char(147),char(150), -char(149),char(165),char(180),char(182),char(174),char(166),char(153),char(133),char(97),char(61), -char(46),char(47),char(49),char(50),char(49),char(46),char(57),char(83),char(98),char(102), -char(98),char(92),char(82),char(79),char(87),char(88),char(80),char(73),char(75),char(91), -char(106),char(100),char(99),char(103),char(113),char(120),char(118),char(115),char(117),char(116), -char(116),char(116),char(117),char(112),char(101),char(89),char(87),char(101),char(101),char(115), -char(129),char(132),char(127),char(119),char(119),char(116),char(111),char(105),char(93),char(73), -char(74),char(70),char(65),char(56),char(54),char(70),char(95),char(114),char(127),char(123), -char(86),char(87),char(114),char(139),char(145),char(139),char(134),char(130),char(129),char(110), -char(92),char(96),char(108),char(120),char(132),char(144),char(147),char(153),char(157),char(172), -char(186),char(194),char(186),char(191),char(195),char(186),char(166),char(169),char(180),char(176), -char(175),char(167),char(155),char(139),char(134),char(132),char(129),char(129),char(110),char(88), -char(63),char(54),char(62),char(65),char(65),char(74),char(87),char(93),char(101),char(110), -char(129),char(142),char(144),char(145),char(141),char(139),char(139),char(147),char(155),char(172), -char(182),char(183),char(176),char(162),char(152),char(128),char(92),char(62),char(48),char(48), -char(53),char(53),char(51),char(52),char(58),char(64),char(78),char(90),char(88),char(81), -char(70),char(72),char(78),char(78),char(71),char(65),char(60),char(71),char(87),char(84), -char(80),char(83),char(96),char(112),char(114),char(108),char(104),char(103),char(97),char(100), -char(109),char(107),char(90),char(84),char(89),char(98),char(100),char(122),char(133),char(141), -char(140),char(133),char(129),char(116),char(115),char(110),char(97),char(83),char(88),char(81), -char(77),char(67),char(59),char(78),char(108),char(115),char(115),char(116),char(77),char(80), -char(104),char(136),char(145),char(135),char(125),char(113),char(103),char(87),char(75),char(83), -char(95),char(117),char(135),char(149),char(145),char(151),char(155),char(158),char(156),char(161), -char(167),char(175),char(176),char(168),char(145),char(144),char(152),char(154),char(154),char(149), -char(137),char(131),char(135),char(140),char(148),char(143),char(114),char(93),char(73),char(62), -char(61),char(63),char(64),char(75),char(91),char(109),char(115),char(120),char(135),char(145), -char(147),char(146),char(142),char(138),char(134),char(140),char(153),char(169),char(180),char(183), -char(177),char(161),char(145),char(113),char(84),char(70),char(61),char(58),char(58),char(55), -char(50),char(48),char(47),char(48),char(60),char(71),char(77),char(81),char(71),char(67), -char(65),char(58),char(51),char(54),char(53),char(58),char(64),char(66),char(64),char(67), -char(80),char(92),char(94),char(91),char(87),char(87),char(76),char(76),char(90),char(102), -char(98),char(101),char(108),char(109),char(112),char(129),char(139),char(159),char(159),char(154), -char(148),char(130),char(119),char(111),char(104),char(95),char(90),char(86),char(82),char(76), -char(69),char(86),char(101),char(103),char(98),char(105),char(72),char(84),char(108),char(129), -char(139),char(138),char(126),char(102),char(78),char(64),char(63),char(67),char(85),char(116), -char(132),char(134),char(139),char(144),char(146),char(132),char(132),char(143),char(154),char(155), -char(149),char(144),char(125),char(119),char(120),char(132),char(131),char(135),char(129),char(123), -char(131),char(143),char(149),char(139),char(117),char(92),char(73),char(68),char(65),char(63), -char(73),char(86),char(100),char(112),char(117),char(120),char(123),char(133),char(143),char(141), -char(137),char(137),char(137),char(139),char(146),char(157),char(174),char(184),char(176),char(156), -char(128),char(96),char(81),char(76),char(68),char(66),char(62),char(56),char(49),char(43), -char(45),char(46),char(49),char(55),char(62),char(62),char(56),char(52),char(51),char(45), -char(33),char(35),char(41),char(46),char(47),char(46),char(52),char(56),char(57),char(64), -char(67),char(74),char(84),char(83),char(74),char(71),char(87),char(107),char(115),char(120), -char(129),char(131),char(134),char(152),char(160),char(170),char(175),char(173),char(161),char(147), -char(129),char(124),char(124),char(119),char(101),char(92),char(84),char(80),char(76),char(85), -char(89),char(90),char(92),char(100),char(66),char(83),char(100),char(111),char(132),char(141), -char(131),char(107),char(79),char(58),char(61),char(69),char(86),char(110),char(125),char(124), -char(135),char(138),char(132),char(123),char(129),char(138),char(138),char(136),char(133),char(123), -char(109),char(100),char(99),char(103),char(107),char(120),char(113),char(109),char(112),char(124), -char(133),char(130),char(119),char(98),char(80),char(76),char(73),char(71),char(83),char(94), -char(102),char(101),char(109),char(122),char(118),char(121),char(130),char(129),char(129),char(137), -char(135),char(132),char(140),char(151),char(166),char(175),char(166),char(144),char(118),char(98), -char(88),char(79),char(67),char(70),char(65),char(57),char(54),char(50),char(52),char(48), -char(42),char(42),char(43),char(38),char(36),char(36),char(36),char(34),char(25),char(20), -char(23),char(28),char(30),char(32),char(42),char(53),char(48),char(47),char(52),char(66), -char(86),char(90),char(86),char(85),char(101),char(114),char(124),char(129),char(141),char(148), -char(153),char(169),char(175),char(174),char(187),char(184),char(168),char(155),char(143),char(137), -char(140),char(136),char(111),char(96),char(82),char(73),char(71),char(73),char(80),char(90), -char(93),char(100),char(63),char(76),char(86),char(99),char(121),char(126),char(124),char(112), -char(92),char(74),char(65),char(75),char(88),char(109),char(125),char(132),char(132),char(125), -char(126),char(133),char(131),char(132),char(131),char(128),char(127),char(116),char(101),char(88), -char(81),char(80),char(85),char(94),char(90),char(86),char(89),char(99),char(119),char(128), -char(125),char(109),char(96),char(89),char(84),char(86),char(91),char(92),char(96),char(93), -char(97),char(113),char(123),char(118),char(117),char(116),char(117),char(125),char(125),char(128), -char(135),char(138),char(151),char(159),char(154),char(137),char(118),char(105),char(88),char(77), -char(71),char(68),char(62),char(57),char(62),char(60),char(54),char(48),char(37),char(31), -char(28),char(27),char(26),char(24),char(23),char(25),char(22),char(14),char(14),char(19), -char(20),char(26),char(35),char(46),char(47),char(39),char(45),char(63),char(84),char(90), -char(93),char(95),char(109),char(127),char(135),char(138),char(144),char(155),char(169),char(180), -char(179),char(181),char(189),char(185),char(170),char(150),char(139),char(128),char(128),char(129), -char(105),char(86),char(71),char(68),char(64),char(64),char(73),char(89),char(93),char(96), -char(61),char(74),char(85),char(97),char(110),char(102),char(107),char(103),char(100),char(85), -char(67),char(72),char(82),char(99),char(117),char(131),char(131),char(121),char(131),char(141), -char(140),char(132),char(133),char(130),char(117),char(104),char(88),char(79),char(68),char(69), -char(72),char(71),char(75),char(76),char(80),char(83),char(97),char(115),char(125),char(114), -char(107),char(106),char(100),char(100),char(107),char(105),char(103),char(99),char(94),char(101), -char(121),char(119),char(109),char(99),char(92),char(105),char(118),char(127),char(131),char(124), -char(131),char(146),char(142),char(127),char(113),char(104),char(87),char(75),char(74),char(75), -char(72),char(64),char(69),char(66),char(56),char(47),char(39),char(30),char(23),char(20), -char(19),char(17),char(17),char(23),char(22),char(17),char(17),char(20),char(23),char(27), -char(32),char(39),char(43),char(36),char(42),char(67),char(88),char(92),char(96),char(106), -char(116),char(141),char(146),char(151),char(152),char(165),char(187),char(195),char(188),char(190), -char(185),char(180),char(167),char(141),char(125),char(112),char(106),char(109),char(94),char(70), -char(63),char(60),char(56),char(59),char(68),char(84),char(89),char(97),char(59),char(70), -char(86),char(97),char(97),char(87),char(92),char(100),char(99),char(84),char(76),char(70), -char(77),char(89),char(110),char(124),char(127),char(129),char(140),char(148),char(142),char(131), -char(127),char(122),char(104),char(88),char(76),char(75),char(73),char(73),char(66),char(60), -char(67),char(73),char(76),char(79),char(83),char(93),char(110),char(117),char(117),char(119), -char(115),char(116),char(124),char(126),char(116),char(107),char(102),char(105),char(117),char(120), -char(109),char(93),char(86),char(101),char(119),char(122),char(121),char(120),char(127),char(138), -char(133),char(117),char(104),char(97),char(87),char(80),char(80),char(86),char(90),char(82), -char(77),char(71),char(53),char(44),char(40),char(33),char(25),char(19),char(15),char(18), -char(21),char(24),char(23),char(20),char(21),char(26),char(28),char(26),char(30),char(38), -char(43),char(44),char(52),char(70),char(85),char(94),char(99),char(111),char(124),char(140), -char(145),char(157),char(158),char(172),char(194),char(202),char(197),char(190),char(178),char(172), -char(158),char(138),char(123),char(111),char(103),char(96),char(90),char(72),char(62),char(55), -char(52),char(62),char(73),char(83),char(89),char(98),char(58),char(65),char(79),char(91), -char(83),char(84),char(85),char(92),char(94),char(91),char(89),char(79),char(86),char(90), -char(111),char(124),char(129),char(140),char(138),char(143),char(137),char(126),char(117),char(111), -char(98),char(77),char(65),char(69),char(80),char(79),char(61),char(56),char(64),char(70), -char(72),char(74),char(72),char(76),char(89),char(110),char(121),char(122),char(121),char(127), -char(128),char(128),char(123),char(111),char(102),char(103),char(111),char(120),char(120),char(112), -char(106),char(116),char(125),char(126),char(124),char(120),char(116),char(115),char(115),char(110), -char(96),char(90),char(89),char(89),char(92),char(92),char(93),char(87),char(75),char(72), -char(55),char(40),char(35),char(33),char(27),char(20),char(18),char(23),char(25),char(27), -char(28),char(26),char(27),char(31),char(37),char(33),char(33),char(39),char(45),char(47), -char(58),char(66),char(77),char(90),char(97),char(104),char(118),char(118),char(126),char(149), -char(163),char(184),char(198),char(197),char(195),char(183),char(172),char(174),char(154),char(131), -char(115),char(107),char(103),char(88),char(87),char(75),char(68),char(60),char(55),char(68), -char(75),char(80),char(93),char(98),char(62),char(71),char(71),char(75),char(71),char(77), -char(77),char(78),char(91),char(96),char(97),char(97),char(99),char(96),char(115),char(135), -char(141),char(141),char(142),char(144),char(142),char(125),char(116),char(104),char(93),char(77), -char(62),char(67),char(75),char(72),char(63),char(55),char(61),char(67),char(61),char(59), -char(57),char(66),char(80),char(101),char(123),char(138),char(143),char(139),char(135),char(127), -char(122),char(112),char(102),char(103),char(118),char(135),char(140),char(138),char(137),char(136), -char(137),char(128),char(124),char(116),char(102),char(94),char(95),char(99),char(95),char(86), -char(88),char(94),char(99),char(99),char(92),char(84),char(75),char(70),char(56),char(39), -char(31),char(34),char(34),char(27),char(24),char(28),char(31),char(34),char(37),char(37), -char(40),char(42),char(47),char(45),char(42),char(43),char(48),char(48),char(60),char(68), -char(78),char(91),char(98),char(100),char(102),char(94),char(115),char(137),char(154),char(185), -char(194),char(187),char(182),char(175),char(175),char(174),char(152),char(125),char(104),char(89), -char(87),char(85),char(84),char(79),char(76),char(74),char(69),char(73),char(76),char(84), -char(94),char(111),char(65),char(74),char(67),char(62),char(61),char(62),char(67),char(75), -char(90),char(100),char(99),char(104),char(104),char(99),char(121),char(144),char(146),char(141), -char(148),char(156),char(149),char(125),char(122),char(107),char(91),char(83),char(74),char(70), -char(67),char(63),char(62),char(57),char(58),char(63),char(54),char(52),char(59),char(67), -char(86),char(107),char(127),char(155),char(169),char(160),char(148),char(138),char(125),char(117), -char(109),char(115),char(138),char(156),char(161),char(159),char(157),char(152),char(146),char(127), -char(112),char(109),char(97),char(84),char(83),char(87),char(91),char(90),char(91),char(98), -char(98),char(100),char(99),char(89),char(81),char(71),char(56),char(42),char(39),char(46), -char(43),char(34),char(32),char(33),char(40),char(42),char(43),char(46),char(51),char(50), -char(48),char(47),char(49),char(55),char(62),char(64),char(70),char(81),char(93),char(102), -char(105),char(98),char(89),char(94),char(108),char(120),char(126),char(156),char(178),char(184), -char(178),char(169),char(168),char(159),char(137),char(121),char(97),char(77),char(73),char(84), -char(89),char(86),char(77),char(83),char(81),char(76),char(79),char(82),char(100),char(126), -char(65),char(71),char(67),char(63),char(60),char(59),char(70),char(83),char(98),char(106), -char(105),char(105),char(100),char(106),char(129),char(148),char(153),char(154),char(158),char(160), -char(149),char(127),char(123),char(118),char(105),char(94),char(89),char(77),char(68),char(62), -char(59),char(55),char(49),char(51),char(47),char(48),char(58),char(73),char(95),char(111), -char(127),char(151),char(165),char(162),char(156),char(150),char(133),char(121),char(117),char(120), -char(144),char(166),char(173),char(170),char(161),char(151),char(141),char(130),char(115),char(105), -char(89),char(76),char(73),char(78),char(90),char(98),char(104),char(114),char(113),char(107), -char(105),char(103),char(95),char(83),char(72),char(59),char(56),char(59),char(52),char(48), -char(46),char(40),char(44),char(54),char(51),char(54),char(56),char(52),char(48),char(50), -char(56),char(68),char(76),char(78),char(80),char(98),char(109),char(109),char(109),char(106), -char(97),char(106),char(105),char(103),char(106),char(128),char(157),char(173),char(177),char(166), -char(158),char(144),char(132),char(122),char(99),char(80),char(79),char(80),char(80),char(75), -char(71),char(75),char(75),char(71),char(74),char(80),char(110),char(129),char(71),char(69), -char(67),char(60),char(59),char(72),char(86),char(95),char(98),char(100),char(109),char(103), -char(91),char(104),char(119),char(142),char(154),char(155),char(164),char(156),char(147),char(130), -char(117),char(121),char(124),char(114),char(105),char(88),char(76),char(64),char(55),char(44), -char(39),char(38),char(36),char(39),char(55),char(78),char(96),char(108),char(123),char(146), -char(156),char(152),char(144),char(143),char(137),char(124),char(116),char(128),char(150),char(174), -char(187),char(180),char(164),char(141),char(132),char(130),char(117),char(100),char(89),char(79), -char(75),char(78),char(86),char(97),char(110),char(122),char(128),char(124),char(115),char(112), -char(112),char(103),char(86),char(76),char(79),char(75),char(72),char(69),char(61),char(50), -char(44),char(51),char(52),char(57),char(63),char(62),char(58),char(63),char(65),char(70), -char(72),char(72),char(83),char(113),char(125),char(110),char(110),char(120),char(122),char(123), -char(116),char(107),char(107),char(123),char(144),char(162),char(168),char(157),char(149),char(137), -char(128),char(113),char(104),char(89),char(82),char(78),char(74),char(68),char(71),char(71), -char(72),char(63),char(60),char(74),char(107),char(128),char(67),char(62),char(63),char(62), -char(71),char(90),char(95),char(97),char(99),char(108),char(109),char(97),char(82),char(91), -char(95),char(121),char(138),char(145),char(155),char(154),char(146),char(128),char(119),char(125), -char(126),char(114),char(105),char(95),char(78),char(61),char(47),char(37),char(33),char(29), -char(30),char(32),char(50),char(79),char(102),char(111),char(118),char(137),char(142),char(135), -char(127),char(134),char(141),char(128),char(122),char(140),char(161),char(179),char(191),char(183), -char(160),char(136),char(125),char(121),char(107),char(92),char(88),char(86),char(85),char(82), -char(89),char(98),char(109),char(123),char(132),char(137),char(133),char(125),char(125),char(115), -char(97),char(89),char(95),char(92),char(87),char(85),char(78),char(62),char(49),char(49), -char(52),char(59),char(72),char(80),char(75),char(76),char(70),char(69),char(68),char(74), -char(91),char(120),char(133),char(125),char(119),char(132),char(133),char(122),char(122),char(121), -char(119),char(117),char(136),char(152),char(157),char(151),char(149),char(134),char(119),char(109), -char(108),char(98),char(80),char(79),char(78),char(82),char(80),char(77),char(73),char(59), -char(53),char(70),char(104),char(121),char(59),char(58),char(61),char(71),char(86),char(97), -char(99),char(101),char(108),char(113),char(100),char(87),char(77),char(78),char(80),char(99), -char(125),char(148),char(154),char(161),char(155),char(133),char(134),char(130),char(118),char(108), -char(101),char(88),char(64),char(56),char(47),char(43),char(32),char(24),char(26),char(30), -char(45),char(71),char(101),char(109),char(110),char(126),char(132),char(130),char(131),char(139), -char(144),char(135),char(131),char(146),char(164),char(183),char(188),char(175),char(156),char(145), -char(133),char(126),char(116),char(95),char(87),char(92),char(95),char(90),char(96),char(108), -char(123),char(135),char(142),char(145),char(144),char(142),char(134),char(121),char(114),char(107), -char(104),char(103),char(101),char(95),char(87),char(76),char(63),char(60),char(68),char(78), -char(83),char(94),char(96),char(87),char(82),char(77),char(80),char(94),char(104),char(118), -char(129),char(134),char(134),char(140),char(137),char(122),char(121),char(130),char(125),char(114), -char(122),char(133),char(141),char(148),char(145),char(138),char(129),char(120),char(114),char(104), -char(91),char(84),char(89),char(88),char(84),char(79),char(75),char(67),char(60),char(76), -char(101),char(109),char(52),char(53),char(64),char(66),char(82),char(88),char(91),char(103), -char(104),char(100),char(91),char(82),char(81),char(83),char(85),char(96),char(120),char(145), -char(154),char(167),char(161),char(143),char(143),char(136),char(122),char(111),char(101),char(79), -char(57),char(46),char(41),char(40),char(31),char(22),char(24),char(37),char(54),char(76), -char(93),char(96),char(103),char(117),char(133),char(146),char(155),char(156),char(155),char(146), -char(137),char(154),char(175),char(190),char(185),char(170),char(161),char(161),char(153),char(146), -char(135),char(115),char(107),char(109),char(107),char(100),char(105),char(117),char(131),char(148), -char(152),char(145),char(143),char(142),char(132),char(128),char(133),char(130),char(118),char(113), -char(111),char(97),char(82),char(74),char(63),char(68),char(86),char(99),char(99),char(107), -char(114),char(103),char(103),char(100),char(99),char(111),char(117),char(119),char(127),char(137), -char(139),char(140),char(138),char(126),char(117),char(118),char(111),char(111),char(113),char(118), -char(130),char(141),char(138),char(141),char(144),char(133),char(120),char(111),char(109),char(95), -char(94),char(84),char(78),char(81),char(81),char(81),char(83),char(86),char(95),char(100), -char(52),char(54),char(59),char(58),char(66),char(71),char(82),char(89),char(81),char(79), -char(84),char(88),char(86),char(86),char(92),char(107),char(125),char(136),char(149),char(153), -char(145),char(143),char(147),char(140),char(128),char(109),char(92),char(73),char(51),char(40), -char(38),char(33),char(28),char(26),char(31),char(46),char(70),char(88),char(99),char(100), -char(99),char(108),char(134),char(157),char(174),char(170),char(159),char(154),char(151),char(160), -char(181),char(194),char(184),char(164),char(162),char(167),char(166),char(157),char(143),char(138), -char(127),char(122),char(125),char(124),char(124),char(130),char(140),char(151),char(150),char(146), -char(144),char(136),char(127),char(134),char(142),char(143),char(136),char(127),char(112),char(96), -char(77),char(65),char(61),char(68),char(94),char(115),char(121),char(124),char(121),char(111), -char(118),char(119),char(117),char(120),char(123),char(118),char(115),char(128),char(129),char(130), -char(133),char(121),char(104),char(95),char(93),char(101),char(103),char(113),char(125),char(133), -char(134),char(139),char(149),char(140),char(133),char(129),char(129),char(115),char(99),char(85), -char(87),char(91),char(93),char(98),char(101),char(100),char(94),char(95),char(48),char(51), -char(49),char(43),char(46),char(48),char(58),char(62),char(56),char(63),char(78),char(93), -char(91),char(86),char(103),char(121),char(131),char(134),char(138),char(133),char(122),char(129), -char(133),char(129),char(121),char(109),char(90),char(76),char(55),char(42),char(34),char(31), -char(32),char(33),char(41),char(52),char(73),char(86),char(102),char(107),char(108),char(115), -char(135),char(159),char(181),char(179),char(159),char(158),char(159),char(162),char(182),char(195), -char(182),char(162),char(163),char(171),char(167),char(156),char(147),char(150),char(144),char(137), -char(135),char(131),char(131),char(137),char(145),char(155),char(155),char(146),char(146),char(141), -char(133),char(138),char(141),char(146),char(147),char(137),char(120),char(108),char(91),char(76), -char(75),char(82),char(102),char(121),char(138),char(146),char(135),char(133),char(134),char(134), -char(132),char(121),char(119),char(115),char(105),char(118),char(117),char(121),char(120),char(104), -char(92),char(87),char(89),char(97),char(104),char(111),char(122),char(129),char(132),char(133), -char(142),char(147),char(148),char(156),char(152),char(130),char(103),char(101),char(102),char(102), -char(107),char(103),char(107),char(111),char(97),char(92),char(50),char(45),char(39),char(30), -char(30),char(33),char(35),char(41),char(47),char(57),char(74),char(89),char(100),char(100), -char(116),char(128),char(136),char(134),char(124),char(110),char(100),char(99),char(105),char(107), -char(102),char(108),char(101),char(86),char(66),char(44),char(36),char(32),char(36),char(39), -char(41),char(48),char(60),char(73),char(89),char(100),char(119),char(129),char(135),char(155), -char(175),char(177),char(164),char(159),char(162),char(173),char(179),char(181),char(173),char(170), -char(171),char(169),char(162),char(158),char(159),char(159),char(157),char(148),char(135),char(134), -char(139),char(141),char(151),char(165),char(164),char(151),char(151),char(151),char(141),char(138), -char(138),char(146),char(155),char(145),char(134),char(125),char(116),char(103),char(99),char(108), -char(119),char(131),char(148),char(161),char(161),char(161),char(165),char(155),char(139),char(128), -char(121),char(118),char(113),char(111),char(107),char(111),char(107),char(91),char(80),char(82), -char(85),char(100),char(107),char(114),char(120),char(129),char(131),char(135),char(136),char(145), -char(158),char(170),char(165),char(141),char(119),char(119),char(115),char(110),char(114),char(110), -char(108),char(107),char(89),char(91),char(53),char(42),char(33),char(25),char(27),char(33), -char(31),char(39),char(56),char(67),char(77),char(87),char(107),char(118),char(124),char(121), -char(126),char(124),char(112),char(97),char(89),char(85),char(90),char(93),char(97),char(107), -char(110),char(90),char(64),char(50),char(51),char(41),char(38),char(45),char(45),char(51), -char(54),char(60),char(76),char(98),char(121),char(137),char(137),char(152),char(160),char(157), -char(160),char(163),char(174),char(178),char(166),char(166),char(171),char(171),char(167),char(157), -char(156),char(163),char(165),char(164),char(162),char(149),char(142),char(148),char(156),char(157), -char(164),char(165),char(162),char(163),char(166),char(164),char(155),char(150),char(153),char(163), -char(166),char(155),char(147),char(144),char(137),char(120),char(114),char(117),char(131),char(150), -char(163),char(165),char(179),char(187),char(190),char(175),char(155),char(146),char(134),char(122), -char(114),char(111),char(112),char(109),char(100),char(92),char(78),char(78),char(80),char(93), -char(99),char(110),char(114),char(121),char(128),char(141),char(139),char(141),char(155),char(168), -char(165),char(146),char(131),char(134),char(139),char(126),char(123),char(130),char(120),char(110), -char(93),char(92),char(44),char(35),char(33),char(29),char(30),char(33),char(32),char(42), -char(56),char(68),char(78),char(87),char(100),char(115),char(118),char(106),char(100),char(103), -char(105),char(95),char(81),char(81),char(88),char(95),char(101),char(109),char(109),char(81), -char(60),char(51),char(55),char(49),char(48),char(55),char(56),char(54),char(51),char(57), -char(74),char(93),char(114),char(133),char(139),char(151),char(147),char(144),char(157),char(166), -char(175),char(171),char(159),char(155),char(164),char(165),char(157),char(145),char(145),char(149), -char(145),char(149),char(159),char(160),char(159),char(164),char(173),char(173),char(172),char(167), -char(165),char(176),char(181),char(171),char(163),char(162),char(166),char(172),char(171),char(169), -char(167),char(163),char(154),char(140),char(125),char(127),char(141),char(157),char(172),char(180), -char(189),char(197),char(194),char(182),char(168),char(157),char(148),char(136),char(121),char(116), -char(114),char(110),char(103),char(102),char(96),char(92),char(90),char(94),char(109),char(119), -char(119),char(122),char(131),char(137),char(123),char(129),char(142),char(157),char(165),char(151), -char(143),char(151),char(156),char(140),char(130),char(138),char(124),char(109),char(100),char(90), -char(50),char(36),char(33),char(33),char(35),char(36),char(35),char(43),char(52),char(69), -char(83),char(86),char(90),char(97),char(101),char(93),char(75),char(81),char(86),char(86), -char(81),char(72),char(75),char(95),char(105),char(104),char(94),char(74),char(60),char(55), -char(55),char(54),char(52),char(53),char(55),char(52),char(49),char(59),char(73),char(88), -char(105),char(124),char(137),char(138),char(134),char(137),char(145),char(154),char(156),char(154), -char(155),char(152),char(152),char(150),char(146),char(145),char(141),char(144),char(140),char(143), -char(154),char(163),char(170),char(175),char(178),char(181),char(177),char(169),char(169),char(175), -char(173),char(164),char(162),char(162),char(166),char(172),char(171),char(174),char(174),char(168), -char(161),char(149),char(141),char(144),char(158),char(166),char(181),char(188),char(190),char(201), -char(198),char(185),char(172),char(159),char(149),char(138),char(119),char(113),char(114),char(107), -char(97),char(98),char(111),char(106),char(98),char(104),char(127),char(137),char(132),char(131), -char(132),char(125),char(113),char(119),char(134),char(146),char(157),char(156),char(152),char(157), -char(154),char(140),char(132),char(132),char(119),char(106),char(111),char(106),char(63),char(50), -char(36),char(33),char(34),char(33),char(33),char(43),char(49),char(68),char(79),char(84), -char(80),char(81),char(81),char(75),char(60),char(62),char(61),char(67),char(73),char(70), -char(69),char(84),char(94),char(85),char(83),char(78),char(67),char(58),char(51),char(49), -char(46),char(45),char(45),char(46),char(52),char(64),char(74),char(88),char(107),char(123), -char(124),char(124),char(122),char(123),char(127),char(130),char(137),char(146),char(149),char(142), -char(138),char(139),char(147),char(152),char(144),char(145),char(152),char(150),char(148),char(153), -char(167),char(174),char(176),char(183),char(179),char(169),char(165),char(158),char(150),char(152), -char(161),char(161),char(164),char(167),char(166),char(168),char(173),char(179),char(173),char(158), -char(152),char(160),char(171),char(171),char(179),char(181),char(186),char(198),char(196),char(183), -char(170),char(159),char(137),char(123),char(112),char(104),char(113),char(107),char(98),char(98), -char(117),char(121),char(110),char(114),char(131),char(145),char(145),char(137),char(130),char(116), -char(116),char(116),char(125),char(134),char(142),char(148),char(150),char(157),char(153),char(144), -char(134),char(132),char(125),char(124),char(131),char(126),char(69),char(55),char(36),char(34), -char(34),char(29),char(29),char(36),char(44),char(64),char(73),char(73),char(66),char(66), -char(68),char(61),char(55),char(53),char(54),char(58),char(65),char(74),char(78),char(73), -char(74),char(70),char(77),char(74),char(71),char(58),char(41),char(42),char(42),char(37), -char(38),char(47),char(55),char(62),char(69),char(93),char(116),char(127),char(128),char(135), -char(132),char(128),char(131),char(126),char(123),char(133),char(139),char(132),char(124),char(135), -char(158),char(166),char(153),char(147),char(154),char(150),char(143),char(149),char(166),char(172), -char(170),char(170),char(171),char(166),char(156),char(149),char(135),char(130),char(140),char(150), -char(150),char(153),char(162),char(167),char(176),char(186),char(187),char(170),char(155),char(161), -char(171),char(170),char(169),char(178),char(189),char(192),char(187),char(176),char(158),char(146), -char(127),char(118),char(109),char(96),char(97),char(101),char(97),char(104),char(115),char(123), -char(121),char(126),char(140),char(151),char(152),char(152),char(137),char(113),char(110),char(111), -char(119),char(127),char(132),char(136),char(141),char(154),char(159),char(153),char(142),char(141), -char(140),char(148),char(148),char(135),char(69),char(52),char(39),char(42),char(40),char(31), -char(27),char(33),char(38),char(54),char(60),char(57),char(49),char(46),char(51),char(48), -char(47),char(42),char(46),char(47),char(54),char(61),char(73),char(70),char(67),char(63), -char(68),char(74),char(74),char(65),char(44),char(43),char(43),char(39),char(39),char(43), -char(51),char(55),char(65),char(93),char(116),char(128),char(141),char(155),char(153),char(145), -char(140),char(135),char(130),char(124),char(118),char(120),char(121),char(131),char(151),char(164), -char(167),char(153),char(146),char(143),char(138),char(150),char(165),char(169),char(167),char(163), -char(165),char(164),char(151),char(144),char(128),char(122),char(136),char(151),char(149),char(150), -char(162),char(166),char(173),char(191),char(197),char(178),char(160),char(158),char(168),char(168), -char(167),char(177),char(184),char(185),char(184),char(172),char(158),char(143),char(124),char(112), -char(100),char(89),char(86),char(96),char(91),char(103),char(114),char(125),char(134),char(135), -char(142),char(146),char(149),char(154),char(131),char(105),char(103),char(105),char(111),char(117), -char(128),char(131),char(139),char(158),char(171),char(163),char(158),char(150),char(156),char(159), -char(152),char(139),char(71),char(61),char(55),char(51),char(46),char(41),char(36),char(35), -char(39),char(40),char(45),char(45),char(38),char(38),char(39),char(38),char(39),char(35), -char(40),char(42),char(47),char(48),char(63),char(65),char(65),char(64),char(64),char(70), -char(70),char(63),char(50),char(42),char(43),char(38),char(38),char(41),char(48),char(56), -char(72),char(97),char(114),char(129),char(147),char(156),char(158),char(151),char(145),char(141), -char(131),char(118),char(114),char(117),char(124),char(138),char(148),char(156),char(157),char(143), -char(136),char(140),char(147),char(151),char(157),char(165),char(167),char(162),char(161),char(160), -char(152),char(143),char(132),char(130),char(143),char(151),char(153),char(162),char(172),char(167), -char(170),char(185),char(192),char(180),char(166),char(163),char(165),char(170),char(168),char(173), -char(179),char(185),char(182),char(163),char(154),char(141),char(126),char(106),char(92),char(84), -char(84),char(91),char(92),char(99),char(110),char(126),char(138),char(145),char(149),char(143), -char(139),char(137),char(121),char(100),char(90),char(90),char(94),char(98),char(112),char(133), -char(142),char(155),char(173),char(176),char(181),char(181),char(174),char(165),char(158),char(147), -char(83),char(79),char(75),char(61),char(49),char(47),char(43),char(35),char(39),char(40), -char(39),char(36),char(31),char(29),char(30),char(29),char(35),char(33),char(34),char(41), -char(45),char(47),char(58),char(62),char(60),char(63),char(61),char(63),char(65),char(61), -char(53),char(44),char(44),char(43),char(43),char(50),char(62),char(75),char(88),char(107), -char(122),char(134),char(141),char(143),char(143),char(134),char(133),char(133),char(121),char(117), -char(124),char(128),char(136),char(145),char(144),char(146),char(140),char(127),char(130),char(148), -char(162),char(154),char(146),char(156),char(162),char(159),char(156),char(156),char(157),char(153), -char(143),char(139),char(146),char(156),char(169),char(180),char(182),char(168),char(169),char(182), -char(191),char(192),char(183),char(183),char(187),char(182),char(180),char(184),char(186),char(190), -char(184),char(158),char(148),char(135),char(117),char(99),char(87),char(83),char(77),char(80), -char(92),char(102),char(112),char(134),char(149),char(155),char(158),char(146),char(130),char(117), -char(108),char(100),char(86),char(84),char(87),char(84),char(96),char(118),char(138),char(147), -char(165),char(180),char(192),char(203),char(187),char(180),char(173),char(166),char(98),char(90), -char(89),char(69),char(51),char(46),char(44),char(42),char(41),char(43),char(39),char(31), -char(27),char(22),char(20),char(22),char(26),char(25),char(27),char(38),char(46),char(48), -char(53),char(55),char(53),char(61),char(67),char(69),char(61),char(63),char(57),char(51), -char(53),char(59),char(67),char(77),char(92),char(98),char(109),char(123),char(128),char(140), -char(141),char(131),char(118),char(109),char(114),char(121),char(112),char(109),char(116),char(127), -char(137),char(139),char(132),char(131),char(133),char(134),char(143),char(159),char(170),char(159), -char(152),char(162),char(165),char(160),char(158),char(167),char(169),char(160),char(151),char(149), -char(155),char(168),char(178),char(187),char(186),char(176),char(177),char(185),char(194),char(205), -char(207),char(203),char(202),char(195),char(192),char(192),char(199),char(199),char(196),char(175), -char(158),char(142),char(125),char(110),char(100),char(94),char(82),char(79),char(88),char(101), -char(115),char(142),char(153),char(161),char(163),char(146),char(125),char(107),char(98),char(90), -char(83),char(81),char(84),char(89),char(86),char(106),char(128),char(140),char(151),char(167), -char(186),char(198),char(197),char(191),char(189),char(184),char(105),char(90),char(90),char(73), -char(53),char(48),char(44),char(42),char(38),char(38),char(35),char(31),char(26),char(22), -char(16),char(17),char(22),char(21),char(25),char(33),char(40),char(44),char(46),char(42), -char(45),char(59),char(79),char(82),char(80),char(85),char(78),char(76),char(70),char(79), -char(93),char(103),char(118),char(120),char(127),char(130),char(134),char(144),char(149),char(135), -char(117),char(107),char(112),char(113),char(108),char(106),char(109),char(119),char(121),char(114), -char(111),char(112),char(120),char(133),char(147),char(162),char(173),char(164),char(154),char(162), -char(172),char(171),char(175),char(171),char(159),char(148),char(145),char(145),char(153),char(172), -char(183),char(187),char(187),char(191),char(190),char(191),char(206),char(216),char(220),char(212), -char(200),char(196),char(200),char(196),char(202),char(201),char(205),char(195),char(176),char(154), -char(135),char(118),char(105),char(100),char(100),char(86),char(92),char(101),char(118),char(137), -char(150),char(163),char(160),char(143),char(123),char(104),char(95),char(88),char(79),char(80), -char(81),char(90),char(93),char(109),char(122),char(136),char(146),char(159),char(184),char(197), -char(200),char(196),char(203),char(197),char(97),char(77),char(77),char(68),char(60),char(51), -char(44),char(35),char(32),char(28),char(25),char(23),char(19),char(19),char(17),char(15), -char(17),char(20),char(24),char(30),char(35),char(37),char(33),char(30),char(33),char(51), -char(82),char(95),char(95),char(95),char(97),char(98),char(99),char(109),char(120),char(126), -char(134),char(135),char(135),char(137),char(135),char(141),char(150),char(140),char(120),char(111), -char(122),char(121),char(112),char(103),char(100),char(105),char(108),char(99),char(93),char(95), -char(105),char(126),char(138),char(149),char(164),char(165),char(155),char(154),char(164),char(174), -char(177),char(166),char(156),char(153),char(155),char(152),char(156),char(173),char(186),char(192), -char(193),char(201),char(207),char(213),char(229),char(229),char(228),char(221),char(210),char(202), -char(203),char(198),char(199),char(208),char(208),char(204),char(192),char(174),char(143),char(123), -char(110),char(105),char(105),char(96),char(91),char(90),char(102),char(127),char(141),char(150), -char(139),char(127),char(110),char(94),char(92),char(81),char(75),char(78),char(87),char(92), -char(106),char(117),char(128),char(137),char(152),char(162),char(181),char(193),char(199),char(200), -char(204),char(200),char(81),char(70),char(65),char(60),char(57),char(47),char(35),char(30), -char(25),char(19),char(15),char(15),char(14),char(13),char(13),char(14),char(12),char(19), -char(24),char(28),char(31),char(27),char(23),char(25),char(31),char(46),char(77),char(90), -char(86),char(87),char(99),char(108),char(127),char(144),char(149),char(147),char(149),char(145), -char(141),char(145),char(141),char(148),char(150),char(140),char(126),char(121),char(123),char(129), -char(117),char(101),char(91),char(90),char(93),char(94),char(91),char(91),char(106),char(120), -char(127),char(143),char(157),char(164),char(157),char(144),char(148),char(164),char(163),char(161), -char(161),char(156),char(159),char(158),char(160),char(171),char(184),char(192),char(199),char(211), -char(220),char(231),char(241),char(234),char(232),char(228),char(222),char(221),char(210),char(204), -char(206),char(211),char(205),char(195),char(187),char(174),char(149),char(129),char(115),char(111), -char(100),char(95),char(83),char(78),char(93),char(110),char(118),char(124),char(117),char(110), -char(98),char(84),char(77),char(68),char(65),char(78),char(90),char(99),char(121),char(129), -char(131),char(143),char(153),char(159),char(167),char(171),char(185),char(192),char(187),char(183), -char(73),char(59),char(50),char(43),char(42),char(35),char(26),char(23),char(17),char(14), -char(11),char(9),char(9),char(7),char(8),char(9),char(10),char(16),char(23),char(27), -char(26),char(20),char(18),char(26),char(29),char(44),char(71),char(79),char(76),char(84), -char(106),char(128),char(155),char(173),char(167),char(155),char(148),char(145),char(147),char(150), -char(149),char(157),char(162),char(153),char(134),char(129),char(130),char(136),char(127),char(118), -char(104),char(88),char(81),char(82),char(86),char(89),char(105),char(119),char(123),char(135), -char(144),char(147),char(141),char(130),char(137),char(159),char(163),char(157),char(157),char(149), -char(146),char(153),char(164),char(179),char(191),char(199),char(205),char(214),char(218),char(226), -char(233),char(226),char(226),char(229),char(230),char(233),char(221),char(210),char(208),char(208), -char(202),char(186),char(179),char(166),char(142),char(117),char(108),char(105),char(98),char(90), -char(77),char(69),char(77),char(82),char(94),char(97),char(95),char(98),char(100),char(91), -char(79),char(73),char(69),char(78),char(93),char(113),char(128),char(140),char(136),char(148), -char(160),char(164),char(158),char(150),char(158),char(177),char(171),char(164),char(70),char(53), -char(46),char(35),char(27),char(23),char(23),char(20),char(15),char(10),char(7),char(4), -char(4),char(3),char(5),char(6),char(7),char(13),char(20),char(26),char(27),char(23), -char(23),char(33),char(40),char(50),char(65),char(74),char(81),char(96),char(129),char(162), -char(185),char(201),char(190),char(177),char(168),char(158),char(152),char(147),char(152),char(159), -char(169),char(166),char(144),char(136),char(143),char(145),char(139),char(129),char(119),char(100), -char(81),char(78),char(77),char(82),char(101),char(114),char(121),char(124),char(134),char(143), -char(137),char(121),char(122),char(150),char(168),char(159),char(148),char(144),char(140),char(146), -char(161),char(179),char(193),char(200),char(200),char(206),char(214),char(220),char(218),char(215), -char(217),char(228),char(238),char(237),char(224),char(213),char(204),char(205),char(202),char(189), -char(174),char(158),char(135),char(113),char(103),char(93),char(86),char(84),char(74),char(60), -char(61),char(72),char(78),char(75),char(77),char(77),char(91),char(95),char(84),char(80), -char(76),char(80),char(99),char(115),char(139),char(149),char(143),char(156),char(159),char(162), -char(158),char(150),char(152),char(158),char(159),char(162),char(62),char(46),char(39),char(25), -char(17),char(15),char(16),char(17),char(15),char(8),char(5),char(2),char(2),char(3), -char(3),char(6),char(7),char(12),char(16),char(24),char(26),char(24),char(34),char(43), -char(54),char(62),char(70),char(79),char(88),char(112),char(154),char(183),char(200),char(218), -char(219),char(207),char(195),char(188),char(172),char(159),char(160),char(166),char(174),char(171), -char(157),char(155),char(162),char(153),char(142),char(131),char(127),char(114),char(95),char(84), -char(74),char(71),char(82),char(95),char(104),char(110),char(119),char(130),char(131),char(126), -char(122),char(137),char(159),char(154),char(139),char(138),char(136),char(144),char(162),char(178), -char(188),char(190),char(189),char(189),char(194),char(199),char(203),char(209),char(216),char(225), -char(235),char(231),char(218),char(205),char(193),char(184),char(180),char(175),char(161),char(147), -char(125),char(106),char(98),char(91),char(79),char(72),char(69),char(57),char(54),char(61), -char(63),char(66),char(63),char(61),char(70),char(81),char(79),char(81),char(81),char(86), -char(108),char(119),char(139),char(151),char(157),char(162),char(167),char(164),char(171),char(161), -char(150),char(143),char(150),char(151),char(55),char(45),char(34),char(22),char(14),char(11), -char(12),char(14),char(11),char(7),char(5),char(2),char(2),char(2),char(3),char(5), -char(6),char(11),char(16),char(22),char(21),char(26),char(44),char(52),char(62),char(76), -char(77),char(90),char(108),char(137),char(166),char(195),char(212),char(228),char(230),char(218), -char(207),char(203),char(191),char(180),char(173),char(169),char(177),char(183),char(179),char(172), -char(166),char(152),char(143),char(136),char(125),char(118),char(105),char(85),char(77),char(72), -char(65),char(68),char(84),char(101),char(106),char(109),char(112),char(120),char(118),char(128), -char(146),char(144),char(133),char(125),char(132),char(142),char(163),char(178),char(183),char(185), -char(186),char(183),char(182),char(184),char(191),char(201),char(212),char(219),char(221),char(215), -char(199),char(187),char(174),char(159),char(150),char(150),char(141),char(127),char(101),char(83), -char(78),char(77),char(65),char(61),char(63),char(60),char(62),char(54),char(53),char(55), -char(55),char(51),char(50),char(64),char(75),char(78),char(88),char(97),char(110),char(127), -char(143),char(157),char(166),char(177),char(176),char(176),char(179),char(163),char(149),char(143), -char(147),char(149),char(43),char(37),char(26),char(20),char(17),char(14),char(13),char(13), -char(10),char(5),char(3),char(2),char(2),char(3),char(4),char(3),char(5),char(8), -char(14),char(18),char(23),char(33),char(49),char(57),char(65),char(74),char(81),char(97), -char(130),char(157),char(175),char(196),char(212),char(223),char(224),char(211),char(211),char(208), -char(199),char(198),char(191),char(185),char(195),char(201),char(196),char(181),char(160),char(153), -char(151),char(132),char(119),char(112),char(97),char(87),char(80),char(74),char(65),char(57), -char(65),char(81),char(87),char(81),char(81),char(92),char(92),char(100),char(113),char(122), -char(116),char(107),char(118),char(138),char(160),char(173),char(181),char(180),char(184),char(184), -char(177),char(175),char(178),char(184),char(198),char(204),char(188),char(181),char(170),char(154), -char(150),char(140),char(128),char(120),char(118),char(105),char(80),char(63),char(62),char(60), -char(62),char(61),char(64),char(64),char(69),char(58),char(51),char(49),char(46),char(43), -char(46),char(56),char(67),char(77),char(85),char(98),char(119),char(136),char(147),char(161), -char(174),char(179),char(176),char(173),char(177),char(169),char(158),char(152),char(155),char(159), -char(38),char(32),char(23),char(18),char(15),char(13),char(13),char(13),char(10),char(4), -char(2),char(2),char(2),char(3),char(5),char(6),char(5),char(6),char(11),char(19), -char(30),char(44),char(55),char(64),char(73),char(72),char(85),char(106),char(130),char(161), -char(184),char(198),char(201),char(211),char(220),char(216),char(214),char(213),char(203),char(202), -char(205),char(211),char(220),char(219),char(210),char(187),char(165),char(159),char(146),char(121), -char(102),char(106),char(99),char(81),char(73),char(71),char(62),char(54),char(62),char(72), -char(69),char(64),char(65),char(69),char(70),char(77),char(91),char(98),char(93),char(90), -char(105),char(132),char(163),char(179),char(178),char(176),char(182),char(178),char(163),char(156), -char(155),char(160),char(173),char(171),char(155),char(150),char(139),char(131),char(133),char(126), -char(119),char(105),char(89),char(72),char(58),char(49),char(52),char(51),char(65),char(74), -char(69),char(66),char(69),char(63),char(55),char(54),char(49),char(47),char(42),char(49), -char(62),char(73),char(87),char(95),char(119),char(135),char(145),char(153),char(166),char(171), -char(168),char(166),char(172),char(173),char(166),char(165),char(175),char(177),char(39),char(26), -char(22),char(17),char(12),char(10),char(10),char(8),char(6),char(4),char(3),char(3), -char(2),char(4),char(6),char(10),char(11),char(12),char(17),char(23),char(32),char(40), -char(49),char(66),char(81),char(82),char(87),char(103),char(125),char(154),char(183),char(202), -char(204),char(211),char(220),char(227),char(226),char(224),char(215),char(215),char(213),char(220), -char(232),char(223),char(212),char(191),char(166),char(154),char(140),char(120),char(102),char(104), -char(96),char(78),char(69),char(63),char(58),char(56),char(63),char(66),char(65),char(60), -char(58),char(52),char(49),char(55),char(63),char(66),char(75),char(80),char(90),char(120), -char(156),char(178),char(185),char(187),char(185),char(177),char(169),char(155),char(144),char(147), -char(153),char(142),char(135),char(127),char(112),char(110),char(117),char(111),char(105),char(101), -char(83),char(67),char(55),char(44),char(43),char(51),char(62),char(69),char(75),char(76), -char(72),char(62),char(60),char(59),char(50),char(47),char(43),char(43),char(61),char(81), -char(91),char(102),char(117),char(136),char(147),char(157),char(158),char(167),char(169),char(166), -char(164),char(172),char(170),char(174),char(178),char(186),char(45),char(29),char(18),char(14), -char(11),char(9),char(7),char(5),char(6),char(6),char(5),char(4),char(3),char(6), -char(9),char(15),char(21),char(22),char(27),char(32),char(34),char(38),char(47),char(64), -char(87),char(100),char(104),char(108),char(125),char(148),char(184),char(204),char(208),char(212), -char(219),char(238),char(239),char(236),char(235),char(232),char(228),char(231),char(227),char(217), -char(211),char(196),char(172),char(153),char(141),char(129),char(113),char(109),char(101),char(88), -char(76),char(67),char(58),char(54),char(56),char(61),char(62),char(60),char(52),char(42), -char(36),char(39),char(39),char(38),char(49),char(68),char(87),char(111),char(143),char(165), -char(182),char(188),char(177),char(167),char(163),char(149),char(138),char(127),char(122),char(114), -char(111),char(100),char(88),char(86),char(87),char(85),char(88),char(90),char(83),char(72), -char(59),char(44),char(44),char(53),char(53),char(58),char(76),char(89),char(81),char(67), -char(65),char(63),char(53),char(50),char(48),char(45),char(68),char(90),char(98),char(107), -char(133),char(145),char(157),char(167),char(166),char(160),char(164),char(171),char(171),char(175), -char(178),char(176),char(179),char(184),char(54),char(34),char(23),char(15),char(13),char(9), -char(4),char(5),char(8),char(8),char(10),char(9),char(7),char(11),char(15),char(19), -char(23),char(28),char(30),char(29),char(36),char(42),char(51),char(73),char(87),char(102), -char(120),char(123),char(124),char(144),char(174),char(192),char(200),char(210),char(224),char(237), -char(239),char(241),char(241),char(236),char(235),char(233),char(223),char(218),char(214),char(199), -char(181),char(166),char(150),char(137),char(127),char(123),char(119),char(101),char(79),char(63), -char(50),char(46),char(50),char(54),char(55),char(53),char(42),char(30),char(26),char(28), -char(26),char(27),char(36),char(55),char(82),char(108),char(129),char(143),char(159),char(169), -char(163),char(157),char(148),char(134),char(120),char(107),char(91),char(87),char(93),char(86), -char(78),char(72),char(63),char(63),char(67),char(64),char(63),char(63),char(49),char(41), -char(39),char(46),char(51),char(56),char(69),char(86),char(83),char(67),char(65),char(57), -char(51),char(45),char(46),char(51),char(71),char(96),char(114),char(120),char(145),char(157), -char(169),char(180),char(186),char(174),char(174),char(175),char(175),char(188),char(189),char(178), -char(181),char(177),char(69),char(50),char(38),char(26),char(18),char(11),char(6),char(7), -char(9),char(9),char(13),char(13),char(15),char(18),char(19),char(20),char(23),char(31), -char(30),char(32),char(36),char(48),char(59),char(71),char(86),char(105),char(125),char(126), -char(135),char(147),char(159),char(171),char(189),char(198),char(219),char(234),char(242),char(245), -char(243),char(241),char(238),char(231),char(225),char(220),char(215),char(205),char(187),char(165), -char(151),char(141),char(138),char(129),char(114),char(98),char(80),char(68),char(55),char(46), -char(44),char(42),char(42),char(41),char(35),char(27),char(24),char(24),char(22),char(20), -char(28),char(43),char(66),char(85),char(101),char(122),char(139),char(148),char(139),char(134), -char(131),char(117),char(102),char(90),char(73),char(65),char(73),char(75),char(63),char(52), -char(48),char(55),char(61),char(57),char(54),char(55),char(42),char(33),char(36),char(40), -char(45),char(57),char(77),char(94),char(86),char(73),char(59),char(44),char(39),char(36), -char(44),char(57),char(84),char(117),char(135),char(145),char(162),char(167),char(178),char(188), -char(203),char(196),char(181),char(172),char(170),char(187),char(184),char(179),char(187),char(186), -char(84),char(63),char(44),char(30),char(25),char(17),char(15),char(14),char(14),char(14), -char(18),char(21),char(22),char(28),char(26),char(24),char(29),char(36),char(43),char(46), -char(50),char(63),char(77),char(81),char(94),char(118),char(122),char(132),char(146),char(156), -char(159),char(170),char(181),char(196),char(218),char(236),char(241),char(244),char(240),char(237), -char(233),char(224),char(219),char(212),char(211),char(204),char(186),char(162),char(148),char(140), -char(135),char(127),char(111),char(99),char(86),char(67),char(48),char(41),char(44),char(42), -char(39),char(33),char(24),char(20),char(19),char(18),char(14),char(14),char(22),char(31), -char(45),char(57),char(77),char(103),char(118),char(128),char(122),char(106),char(100),char(104), -char(97),char(75),char(63),char(60),char(61),char(63),char(54),char(44),char(38),char(43), -char(49),char(52),char(53),char(43),char(31),char(27),char(32),char(40),char(48),char(57), -char(78),char(93),char(85),char(72),char(56),char(43),char(37),char(37),char(40),char(54), -char(95),char(123),char(144),char(166),char(175),char(185),char(192),char(197),char(206),char(206), -char(198),char(182),char(173),char(188),char(189),char(190),char(184),char(196),char(83),char(69), -char(49),char(33),char(29),char(22),char(25),char(24),char(19),char(17),char(19),char(22), -char(25),char(31),char(30),char(34),char(45),char(58),char(63),char(67),char(67),char(71), -char(88),char(93),char(101),char(115),char(129),char(142),char(162),char(179),char(180),char(184), -char(193),char(205),char(225),char(241),char(238),char(239),char(231),char(227),char(229),char(223), -char(212),char(209),char(204),char(194),char(184),char(168),char(151),char(136),char(132),char(124), -char(113),char(95),char(76),char(60),char(47),char(45),char(46),char(44),char(43),char(32), -char(17),char(16),char(14),char(11),char(9),char(8),char(13),char(18),char(25),char(37), -char(60),char(79),char(97),char(115),char(105),char(88),char(84),char(90),char(89),char(77), -char(65),char(63),char(59),char(48),char(41),char(39),char(35),char(38),char(46),char(50), -char(46),char(35),char(29),char(27),char(31),char(41),char(49),char(60),char(69),char(78), -char(76),char(64),char(52),char(43),char(40),char(41),char(43),char(58),char(90),char(115), -char(142),char(171),char(185),char(187),char(190),char(196),char(200),char(204),char(204),char(194), -char(186),char(199),char(202),char(199),char(192),char(200),char(81),char(66),char(46),char(39), -char(35),char(26),char(27),char(27),char(21),char(19),char(22),char(22),char(25),char(32), -char(42),char(51),char(69),char(82),char(83),char(80),char(80),char(80),char(85),char(100), -char(112),char(120),char(129),char(152),char(180),char(193),char(190),char(192),char(198),char(210), -char(228),char(240),char(242),char(238),char(230),char(225),char(219),char(218),char(212),char(202), -char(200),char(197),char(185),char(170),char(151),char(131),char(124),char(112),char(102),char(81), -char(61),char(52),char(43),char(39),char(41),char(45),char(44),char(32),char(20),char(12), -char(7),char(5),char(5),char(4),char(7),char(13),char(19),char(23),char(39),char(56), -char(74),char(91),char(91),char(80),char(74),char(76),char(75),char(70),char(68),char(71), -char(58),char(41),char(34),char(37),char(41),char(45),char(52),char(45),char(37),char(32), -char(29),char(33),char(36),char(43),char(45),char(50),char(61),char(69),char(63),char(55), -char(48),char(45),char(44),char(44),char(44),char(61),char(83),char(110),char(144),char(169), -char(181),char(185),char(184),char(191),char(196),char(206),char(204),char(193),char(198),char(207), -char(202),char(200),char(200),char(209),char(79),char(65),char(52),char(48),char(43),char(35), -char(35),char(32),char(28),char(25),char(25),char(31),char(39),char(47),char(55),char(68), -char(89),char(98),char(97),char(94),char(98),char(103),char(104),char(117),char(127),char(137), -char(142),char(161),char(183),char(187),char(184),char(193),char(200),char(215),char(235),char(244), -char(239),char(227),char(215),char(211),char(207),char(211),char(215),char(203),char(196),char(196), -char(183),char(167),char(145),char(131),char(124),char(101),char(86),char(71),char(52),char(45), -char(41),char(37),char(36),char(44),char(45),char(33),char(22),char(11),char(4),char(2), -char(2),char(3),char(3),char(7),char(11),char(17),char(24),char(35),char(52),char(67), -char(71),char(67),char(64),char(57),char(56),char(55),char(62),char(67),char(63),char(57), -char(48),char(43),char(41),char(41),char(44),char(42),char(35),char(28),char(24),char(28), -char(31),char(33),char(37),char(48),char(51),char(60),char(59),char(49),char(43),char(43), -char(43),char(53),char(61),char(81),char(98),char(122),char(146),char(164),char(167),char(176), -char(182),char(199),char(202),char(209),char(200),char(193),char(202),char(211),char(207),char(204), -char(207),char(217),char(77),char(73),char(65),char(55),char(53),char(47),char(42),char(34), -char(30),char(31),char(36),char(41),char(48),char(62),char(83),char(90),char(99),char(98), -char(99),char(108),char(125),char(128),char(129),char(131),char(133),char(143),char(158),char(169), -char(169),char(171),char(180),char(194),char(209),char(226),char(232),char(239),char(234),char(221), -char(197),char(184),char(184),char(197),char(200),char(191),char(189),char(193),char(186),char(169), -char(151),char(137),char(124),char(97),char(85),char(69),char(48),char(41),char(43),char(40), -char(32),char(35),char(36),char(31),char(19),char(8),char(2),char(1),char(1),char(1), -char(1),char(3),char(6),char(12),char(18),char(24),char(35),char(48),char(51),char(48), -char(43),char(44),char(50),char(52),char(65),char(76),char(71),char(63),char(49),char(40), -char(39),char(39),char(39),char(37),char(34),char(27),char(23),char(24),char(23),char(27), -char(35),char(50),char(52),char(47),char(50),char(47),char(43),char(40),char(42),char(61), -char(72),char(88),char(104),char(130),char(153),char(169),char(161),char(169),char(189),char(201), -char(197),char(202),char(204),char(205),char(206),char(200),char(202),char(202),char(206),char(203), -char(77),char(80),char(75),char(62),char(60),char(49),char(51),char(43),char(35),char(42), -char(41),char(50),char(62),char(84),char(99),char(104),char(105),char(110),char(109),char(120), -char(137),char(139),char(138),char(144),char(137),char(146),char(165),char(168),char(157),char(155), -char(166),char(185),char(202),char(216),char(221),char(223),char(217),char(209),char(190),char(169), -char(163),char(168),char(169),char(171),char(169),char(174),char(178),char(167),char(157),char(134), -char(106),char(96),char(87),char(74),char(55),char(43),char(42),char(42),char(34),char(28), -char(26),char(22),char(15),char(7),char(3),char(1),char(0),char(0),char(0),char(1), -char(4),char(8),char(14),char(19),char(25),char(35),char(42),char(37),char(31),char(38), -char(51),char(62),char(66),char(71),char(72),char(58),char(43),char(35),char(32),char(34), -char(34),char(32),char(28),char(21),char(22),char(22),char(21),char(28),char(35),char(47), -char(52),char(52),char(55),char(53),char(50),char(46),char(49),char(57),char(67),char(75), -char(98),char(119),char(138),char(163),char(171),char(181),char(192),char(194),char(187),char(202), -char(204),char(203),char(192),char(185),char(196),char(201),char(198),char(185),char(86),char(94), -char(87),char(75),char(68),char(65),char(69),char(61),char(47),char(47),char(50),char(62), -char(78),char(96),char(104),char(101),char(105),char(111),char(107),char(122),char(136),char(140), -char(151),char(157),char(151),char(154),char(162),char(157),char(147),char(145),char(158),char(174), -char(191),char(212),char(216),char(208),char(198),char(184),char(180),char(165),char(150),char(143), -char(144),char(143),char(141),char(141),char(148),char(154),char(153),char(132),char(104),char(94), -char(88),char(79),char(66),char(45),char(34),char(32),char(30),char(23),char(18),char(14), -char(12),char(7),char(2),char(0),char(0),char(0),char(0),char(1),char(5),char(9), -char(12),char(16),char(21),char(29),char(36),char(35),char(31),char(38),char(47),char(54), -char(57),char(53),char(57),char(49),char(37),char(31),char(27),char(29),char(27),char(23), -char(20),char(19),char(21),char(22),char(20),char(26),char(35),char(41),char(56),char(62), -char(61),char(53),char(52),char(59),char(56),char(50),char(52),char(65),char(88),char(102), -char(123),char(151),char(173),char(188),char(187),char(189),char(189),char(198),char(203),char(189), -char(178),char(173),char(189),char(188),char(177),char(175),char(100),char(112),char(105),char(94), -char(80),char(83),char(87),char(71),char(58),char(56),char(64),char(69),char(83),char(100), -char(110),char(108),char(109),char(119),char(117),char(118),char(131),char(148),char(167),char(166), -char(162),char(156),char(157),char(155),char(143),char(145),char(150),char(154),char(177),char(192), -char(196),char(198),char(185),char(170),char(165),char(152),char(136),char(124),char(124),char(122), -char(123),char(127),char(136),char(143),char(133),char(121),char(97),char(78),char(79),char(82), -char(73),char(51),char(37),char(34),char(30),char(21),char(15),char(9),char(6),char(3), -char(2),char(0),char(0),char(0),char(0),char(0),char(3),char(7),char(10),char(15), -char(18),char(21),char(24),char(24),char(26),char(31),char(38),char(42),char(48),char(43), -char(44),char(41),char(37),char(31),char(25),char(26),char(26),char(27),char(22),char(23), -char(28),char(27),char(28),char(36),char(49),char(51),char(57),char(66),char(76),char(74), -char(67),char(64),char(54),char(55),char(67),char(75),char(84),char(82),char(104),char(135), -char(157),char(170),char(170),char(171),char(179),char(185),char(192),char(181),char(167),char(165), -char(176),char(186),char(178),char(176),char(102),char(108),char(111),char(109),char(96),char(103), -char(101),char(82),char(66),char(72),char(77),char(88),char(96),char(106),char(106),char(109), -char(111),char(117),char(126),char(124),char(137),char(161),char(174),char(174),char(156),char(149), -char(152),char(152),char(149),char(145),char(145),char(153),char(167),char(181),char(191),char(196), -char(182),char(159),char(149),char(147),char(145),char(137),char(128),char(125),char(124),char(126), -char(131),char(132),char(120),char(103),char(84),char(71),char(73),char(74),char(65),char(50), -char(41),char(35),char(28),char(20),char(15),char(9),char(4),char(2),char(1),char(0), -char(0),char(0),char(0),char(0),char(2),char(6),char(9),char(10),char(10),char(12), -char(14),char(18),char(19),char(24),char(32),char(36),char(35),char(32),char(31),char(34), -char(33),char(30),char(26),char(26),char(26),char(29),char(33),char(37),char(40),char(35), -char(32),char(40),char(50),char(61),char(66),char(68),char(75),char(78),char(72),char(61), -char(59),char(61),char(77),char(83),char(87),char(77),char(91),char(119),char(127),char(141), -char(153),char(162),char(168),char(163),char(177),char(189),char(172),char(168),char(177),char(182), -char(174),char(166),char(105),char(113),char(121),char(121),char(118),char(120),char(112),char(96), -char(91),char(88),char(86),char(91),char(103),char(109),char(107),char(109),char(117),char(122), -char(137),char(133),char(140),char(162),char(174),char(169),char(159),char(152),char(155),char(166), -char(164),char(160),char(163),char(167),char(168),char(176),char(183),char(187),char(175),char(157), -char(150),char(150),char(149),char(141),char(135),char(123),char(126),char(130),char(129),char(136), -char(121),char(94),char(76),char(61),char(58),char(58),char(54),char(50),char(41),char(32), -char(25),char(24),char(18),char(11),char(7),char(4),char(2),char(0),char(0),char(0), -char(0),char(0),char(0),char(2),char(5),char(5),char(4),char(6),char(9),char(13), -char(16),char(21),char(28),char(30),char(25),char(22),char(26),char(29),char(29),char(27), -char(26),char(26),char(25),char(32),char(40),char(42),char(49),char(44),char(39),char(39), -char(53),char(68),char(76),char(72),char(68),char(70),char(63),char(62),char(54),char(65), -char(78),char(87),char(94),char(83),char(88),char(107),char(115),char(129),char(144),char(152), -char(152),char(152),char(165),char(183),char(179),char(173),char(178),char(180),char(171),char(158), -char(117),char(122),char(121),char(121),char(124),char(127),char(129),char(127),char(121),char(102), -char(94),char(88),char(103),char(107),char(105),char(108),char(120),char(127),char(132),char(134), -char(145),char(163),char(171),char(170),char(159),char(161),char(163),char(175),char(173),char(175), -char(180),char(177),char(177),char(177),char(179),char(179),char(170),char(153),char(150),char(146), -char(147),char(138),char(135),char(129),char(125),char(133),char(135),char(134),char(126),char(107), -char(85),char(58),char(47),char(49),char(48),char(47),char(38),char(27),char(22),char(23), -char(21),char(15),char(10),char(6),char(3),char(1),char(0),char(0),char(0),char(0), -char(0),char(1),char(1),char(1),char(3),char(3),char(6),char(10),char(14),char(20), -char(23),char(23),char(19),char(17),char(19),char(19),char(20),char(26),char(26),char(25), -char(24),char(31),char(37),char(48),char(56),char(53),char(55),char(59),char(61),char(76), -char(76),char(70),char(65),char(68),char(64),char(65),char(63),char(76),char(88),char(95), -char(99),char(93),char(93),char(105),char(126),char(136),char(140),char(133),char(147),char(155), -char(158),char(176),char(173),char(177),char(180),char(179),char(172),char(162),char(117),char(126), -char(119),char(118),char(123),char(124),char(138),char(144),char(125),char(103),char(98),char(95), -char(104),char(105),char(103),char(110),char(113),char(123),char(134),char(138),char(147),char(164), -char(171),char(165),char(159),char(164),char(172),char(184),char(183),char(181),char(180),char(179), -char(171),char(169),char(171),char(169),char(157),char(152),char(157),char(166),char(168),char(157), -char(143),char(138),char(141),char(149),char(157),char(147),char(131),char(107),char(82),char(58), -char(42),char(43),char(50),char(51),char(37),char(28),char(26),char(23),char(20),char(16), -char(12),char(6),char(3),char(1),char(1),char(0),char(0),char(0),char(0),char(0), -char(0),char(2),char(2),char(4),char(8),char(12),char(13),char(14),char(17),char(19), -char(18),char(16),char(16),char(16),char(18),char(21),char(28),char(29),char(26),char(31), -char(38),char(48),char(57),char(62),char(69),char(80),char(79),char(85),char(84),char(76), -char(63),char(65),char(66),char(72),char(75),char(86),char(102),char(107),char(103),char(99), -char(100),char(110),char(136),char(137),char(135),char(134),char(153),char(153),char(159),char(177), -char(175),char(183),char(188),char(190),char(186),char(177),char(105),char(114),char(103),char(107), -char(116),char(123),char(141),char(138),char(122),char(113),char(110),char(103),char(115),char(125), -char(122),char(127),char(130),char(135),char(148),char(149),char(151),char(161),char(167),char(160), -char(158),char(156),char(167),char(180),char(180),char(183),char(179),char(176),char(170),char(166), -char(164),char(164),char(154),char(161),char(165),char(178),char(183),char(170),char(155),char(150), -char(143),char(150),char(156),char(154),char(140),char(113),char(85),char(69),char(51),char(48), -char(60),char(65),char(49),char(37),char(35),char(27),char(18),char(11),char(7),char(5), -char(4),char(3),char(3),char(1),char(0),char(0),char(0),char(0),char(2),char(2), -char(2),char(3),char(6),char(10),char(10),char(10),char(12),char(14),char(16),char(15), -char(13),char(16),char(17),char(20),char(24),char(26),char(28),char(34),char(41),char(45), -char(58),char(64),char(71),char(86),char(93),char(91),char(89),char(83),char(67),char(74), -char(76),char(73),char(78),char(86),char(96),char(109),char(105),char(103),char(107),char(112), -char(124),char(130),char(124),char(132),char(157),char(157),char(166),char(184),char(182),char(188), -char(196),char(196),char(191),char(183),char(97),char(93),char(83),char(88),char(112),char(122), -char(127),char(128),char(128),char(119),char(110),char(116),char(142),char(149),char(152),char(156), -char(155),char(166),char(170),char(171),char(173),char(171),char(175),char(165),char(152),char(150), -char(160),char(171),char(178),char(188),char(186),char(184),char(182),char(178),char(173),char(162), -char(147),char(153),char(165),char(185),char(185),char(179),char(181),char(174),char(159),char(150), -char(154),char(150),char(137),char(114),char(92),char(74),char(58),char(60),char(72),char(78), -char(64),char(44),char(34),char(30),char(17),char(9),char(6),char(5),char(4),char(4), -char(4),char(4),char(2),char(2),char(3),char(3),char(4),char(3),char(3),char(5), -char(6),char(6),char(7),char(7),char(9),char(11),char(14),char(13),char(13),char(14), -char(17),char(19),char(21),char(23),char(29),char(35),char(39),char(45),char(44),char(53), -char(65),char(74),char(87),char(89),char(85),char(77),char(74),char(84),char(87),char(82), -char(81),char(85),char(93),char(105),char(110),char(104),char(109),char(112),char(112),char(121), -char(122),char(135),char(151),char(163),char(171),char(178),char(178),char(180),char(189),char(193), -char(195),char(185),char(84),char(69),char(66),char(79),char(100),char(103),char(110),char(119), -char(121),char(121),char(113),char(127),char(152),char(160),char(164),char(166),char(166),char(176), -char(180),char(188),char(190),char(187),char(183),char(173),char(154),char(160),char(163),char(169), -char(188),char(196),char(192),char(196),char(193),char(195),char(177),char(159),char(152),char(154), -char(160),char(175),char(191),char(196),char(194),char(186),char(177),char(161),char(153),char(150), -char(137),char(115),char(97),char(80),char(64),char(64),char(73),char(73),char(61),char(41), -char(32),char(32),char(23),char(13),char(8),char(4),char(3),char(4),char(6),char(7), -char(6),char(5),char(6),char(7),char(5),char(5),char(7),char(8),char(9),char(8), -char(8),char(7),char(7),char(8),char(9),char(10),char(10),char(11),char(12),char(16), -char(19),char(21),char(27),char(34),char(37),char(40),char(40),char(49),char(60),char(61), -char(63),char(69),char(70),char(76),char(77),char(86),char(86),char(82),char(82),char(78), -char(85),char(100),char(106),char(103),char(100),char(103),char(111),char(126),char(129),char(137), -char(147),char(159),char(167),char(170),char(158),char(156),char(169),char(187),char(186),char(173), -char(77),char(59),char(54),char(60),char(75),char(81),char(91),char(96),char(108),char(121), -char(121),char(139),char(156),char(162),char(165),char(172),char(171),char(180),char(184),char(187), -char(198),char(193),char(179),char(164),char(163),char(172),char(170),char(174),char(184),char(203), -char(204),char(205),char(205),char(197),char(177),char(166),char(165),char(164),char(159),char(166), -char(182),char(193),char(195),char(188),char(176),char(166),char(147),char(132),char(127),char(117), -char(105),char(93),char(76),char(69),char(74),char(72),char(59),char(39),char(28),char(26), -char(22),char(14),char(9),char(5),char(4),char(5),char(8),char(10),char(10),char(9), -char(11),char(12),char(9),char(9),char(10),char(14),char(15),char(13),char(12),char(11), -char(8),char(5),char(5),char(4),char(6),char(10),char(13),char(18),char(18),char(18), -char(24),char(33),char(37),char(32),char(34),char(44),char(49),char(52),char(59),char(64), -char(66),char(79),char(83),char(91),char(89),char(71),char(64),char(62),char(63),char(79), -char(89),char(95),char(105),char(108),char(113),char(127),char(122),char(137),char(148),char(152), -char(149),char(150),char(143),char(150),char(166),char(172),char(171),char(157),char(80),char(63), -char(58),char(57),char(60),char(65),char(68),char(80),char(91),char(110),char(125),char(145), -char(150),char(161),char(168),char(160),char(170),char(179),char(183),char(183),char(185),char(173), -char(169),char(169),char(173),char(179),char(182),char(183),char(192),char(203),char(202),char(204), -char(203),char(191),char(182),char(170),char(169),char(180),char(180),char(175),char(180),char(191), -char(199),char(198),char(190),char(176),char(159),char(146),char(139),char(133),char(114),char(110), -char(102),char(87),char(77),char(66),char(58),char(44),char(29),char(20),char(14),char(10), -char(7),char(5),char(4),char(6),char(10),char(15),char(18),char(17),char(18),char(19), -char(19),char(19),char(17),char(21),char(23),char(21),char(21),char(20),char(12),char(7), -char(6),char(5),char(7),char(9),char(17),char(22),char(20),char(29),char(32),char(40), -char(43),char(33),char(35),char(41),char(47),char(52),char(56),char(57),char(69),char(77), -char(78),char(83),char(83),char(70),char(65),char(65),char(68),char(84),char(97),char(92), -char(101),char(116),char(117),char(125),char(128),char(139),char(146),char(146),char(138),char(134), -char(134),char(137),char(151),char(160),char(166),char(151),char(88),char(69),char(64),char(62), -char(61),char(61),char(59),char(62),char(78),char(99),char(120),char(137),char(141),char(158), -char(166),char(162),char(166),char(176),char(175),char(174),char(167),char(160),char(169),char(174), -char(173),char(179),char(185),char(191),char(196),char(190),char(194),char(191),char(188),char(176), -char(170),char(167),char(178),char(189),char(188),char(179),char(180),char(195),char(201),char(206), -char(203),char(196),char(182),char(163),char(153),char(142),char(127),char(126),char(119),char(104), -char(88),char(78),char(69),char(52),char(35),char(23),char(16),char(11),char(7),char(4), -char(7),char(13),char(18),char(24),char(24),char(27),char(30),char(30),char(29),char(29), -char(26),char(27),char(27),char(25),char(30),char(30),char(20),char(13),char(9),char(9), -char(10),char(12),char(24),char(31),char(29),char(37),char(41),char(49),char(53),char(46), -char(45),char(50),char(52),char(66),char(63),char(62),char(75),char(76),char(80),char(78), -char(74),char(75),char(76),char(79),char(84),char(95),char(110),char(100),char(102),char(115), -char(120),char(126),char(122),char(127),char(140),char(128),char(118),char(122),char(125),char(124), -char(136),char(153),char(149),char(149),char(81),char(70),char(67),char(64),char(65),char(64), -char(64),char(60),char(73),char(94),char(120),char(135),char(144),char(155),char(165),char(166), -char(167),char(163),char(168),char(170),char(168),char(160),char(167),char(180),char(180),char(182), -char(184),char(186),char(192),char(189),char(189),char(187),char(181),char(171),char(169),char(166), -char(180),char(189),char(187),char(180),char(182),char(194),char(199),char(211),char(217),char(204), -char(186),char(174),char(159),char(145),char(141),char(136),char(129),char(118),char(103),char(86), -char(77),char(66),char(47),char(32),char(22),char(14),char(9),char(8),char(10),char(18), -char(28),char(31),char(39),char(45),char(45),char(44),char(38),char(32),char(29),char(29), -char(30),char(30),char(37),char(37),char(29),char(19),char(10),char(10),char(11),char(16), -char(26),char(31),char(37),char(43),char(45),char(49),char(60),char(59),char(58),char(61), -char(72),char(86),char(84),char(79),char(85),char(90),char(85),char(81),char(79),char(76), -char(85),char(92),char(93),char(98),char(108),char(107),char(109),char(119),char(126),char(120), -char(114),char(124),char(130),char(113),char(109),char(116),char(120),char(124),char(123),char(132), -char(132),char(134),char(67),char(64),char(58),char(56),char(63),char(74),char(77),char(74), -char(71),char(81),char(111),char(133),char(149),char(160),char(165),char(158),char(154),char(146), -char(154),char(158),char(166),char(162),char(156),char(162),char(166),char(170),char(167),char(169), -char(188),char(187),char(181),char(180),char(173),char(172),char(181),char(171),char(169),char(185), -char(183),char(170),char(172),char(186),char(198),char(213),char(220),char(212),char(195),char(189), -char(171),char(152),char(156),char(157),char(145),char(135),char(126),char(112),char(96),char(78), -char(59),char(39),char(26),char(18),char(14),char(17),char(21),char(28),char(41),char(51), -char(63),char(70),char(66),char(55),char(40),char(35),char(36),char(39),char(36),char(34), -char(38),char(37),char(29),char(22),char(15),char(12),char(14),char(19),char(25),char(32), -char(40),char(48),char(51),char(52),char(56),char(67),char(80),char(89),char(89),char(93), -char(92),char(93),char(97),char(108),char(98),char(86),char(83),char(83),char(94),char(104), -char(102),char(100),char(108),char(114),char(122),char(134),char(137),char(125),char(116),char(113), -char(112),char(101),char(105),char(124),char(129),char(132),char(132),char(125),char(123),char(120), -char(58),char(66),char(59),char(55),char(62),char(87),char(91),char(85),char(85),char(89), -char(107),char(128),char(144),char(160),char(163),char(165),char(159),char(151),char(146),char(144), -char(156),char(152),char(140),char(141),char(152),char(155),char(145),char(157),char(175),char(180), -char(164),char(162),char(164),char(166),char(172),char(162),char(162),char(176),char(179),char(174), -char(171),char(175),char(189),char(213),char(227),char(219),char(197),char(190),char(186),char(181), -char(179),char(175),char(158),char(139),char(132),char(125),char(116),char(100),char(75),char(55), -char(45),char(35),char(29),char(30),char(35),char(41),char(50),char(63),char(81),char(89), -char(77),char(60),char(44),char(36),char(38),char(37),char(32),char(37),char(40),char(34), -char(26),char(24),char(17),char(16),char(21),char(21),char(29),char(34),char(38),char(45), -char(57),char(57),char(64),char(83),char(93),char(108),char(108),char(101),char(101),char(100), -char(112),char(123),char(116),char(107),char(100),char(103),char(106),char(101),char(101),char(103), -char(113),char(125),char(140),char(158),char(152),char(137),char(126),char(114),char(110),char(110), -char(108),char(114),char(113),char(128),char(134),char(126),char(124),char(114),char(58),char(61), -char(62),char(61),char(69),char(84),char(99),char(97),char(96),char(108),char(114),char(129), -char(150),char(150),char(160),char(168),char(170),char(160),char(153),char(144),char(146),char(144), -char(133),char(128),char(130),char(122),char(114),char(135),char(162),char(165),char(150),char(155), -char(161),char(154),char(152),char(144),char(143),char(153),char(154),char(152),char(156),char(164), -char(178),char(206),char(221),char(216),char(203),char(201),char(206),char(205),char(199),char(198), -char(180),char(158),char(150),char(145),char(131),char(115),char(98),char(77),char(61),char(46), -char(41),char(44),char(51),char(62),char(66),char(69),char(84),char(94),char(86),char(69), -char(54),char(40),char(38),char(37),char(33),char(39),char(44),char(33),char(21),char(19), -char(19),char(22),char(28),char(32),char(35),char(36),char(36),char(38),char(55),char(66), -char(82),char(94),char(101),char(117),char(120),char(114),char(117),char(123),char(136),char(137), -char(131),char(129),char(122),char(117),char(109),char(102),char(107),char(121),char(124),char(137), -char(149),char(158),char(164),char(147),char(138),char(118),char(105),char(107),char(110),char(108), -char(104),char(110),char(122),char(123),char(110),char(108),char(51),char(55),char(58),char(69), -char(80),char(91),char(106),char(114),char(119),char(131),char(130),char(142),char(160),char(162), -char(165),char(166),char(168),char(162),char(154),char(143),char(138),char(134),char(122),char(103), -char(100),char(96),char(89),char(107),char(131),char(139),char(141),char(146),char(154),char(150), -char(142),char(129),char(122),char(128),char(132),char(126),char(129),char(153),char(175),char(191), -char(200),char(202),char(205),char(211),char(215),char(213),char(215),char(217),char(202),char(180), -char(166),char(158),char(144),char(131),char(119),char(93),char(69),char(50),char(48),char(60), -char(76),char(85),char(85),char(89),char(103),char(107),char(98),char(79),char(60),char(47), -char(44),char(41),char(41),char(44),char(39),char(28),char(17),char(15),char(18),char(28), -char(34),char(37),char(40),char(38),char(36),char(44),char(55),char(75),char(94),char(101), -char(111),char(118),char(122),char(121),char(127),char(137),char(151),char(156),char(147),char(138), -char(131),char(124),char(112),char(104),char(111),char(123),char(134),char(139),char(144),char(157), -char(169),char(147),char(138),char(121),char(97),char(100),char(104),char(104),char(106),char(113), -char(116),char(116),char(99),char(102), - -}; \ No newline at end of file diff --git a/Demos/VehicleDemo/main.cpp b/Demos/VehicleDemo/main.cpp deleted file mode 100644 index 0bc51c218..000000000 --- a/Demos/VehicleDemo/main.cpp +++ /dev/null @@ -1,18 +0,0 @@ - -#include "VehicleDemo.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -#include "btBulletDynamicsCommon.h" -GLDebugDrawer gDebugDrawer; - -int main(int argc,char** argv) -{ - - VehicleDemo* vehicleDemo = new VehicleDemo; - - vehicleDemo->initPhysics(); - vehicleDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); - - return glutmain(argc, argv,640,480,"Bullet Vehicle Demo. http://www.continuousphysics.com/Bullet/phpBB2/", vehicleDemo); -} - diff --git a/Demos/VoronoiFractureDemo/CMakeLists.txt b/Demos/VoronoiFractureDemo/CMakeLists.txt deleted file mode 100644 index 2abff4ece..000000000 --- a/Demos/VoronoiFractureDemo/CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -../OpenGL -${GLUT_INCLUDE_DIR} -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppVoronoiFractureDemo - main.cpp - VoronoiFractureDemo.cpp - VoronoiFractureDemo.h - btConvexConvexMprAlgorithm.cpp - btConvexConvexMprAlgorithm.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppVoronoiFractureDemo - main.cpp - VoronoiFractureDemo.cpp - VoronoiFractureDemo.h - btConvexConvexMprAlgorithm.cpp - btConvexConvexMprAlgorithm.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppVoronoiFractureDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32VoronoiFractureDemo.cpp - VoronoiFractureDemo.cpp - VoronoiFractureDemo.h - btConvexConvexMprAlgorithm.cpp - btConvexConvexMprAlgorithm.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppVoronoiFractureDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppVoronoiFractureDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppVoronoiFractureDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/VoronoiFractureDemo/Makefile.am b/Demos/VoronoiFractureDemo/Makefile.am deleted file mode 100644 index 05546162b..000000000 --- a/Demos/VoronoiFractureDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=BasicDemo - -BasicDemo_SOURCES=BasicDemo.cpp BasicDemo.h main.cpp -BasicDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -BasicDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos/VoronoiFractureDemo/VoronoiFractureDemo.h b/Demos/VoronoiFractureDemo/VoronoiFractureDemo.h deleted file mode 100644 index 3c36819be..000000000 --- a/Demos/VoronoiFractureDemo/VoronoiFractureDemo.h +++ /dev/null @@ -1,99 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ -#ifndef BASIC_DEMO_H -#define BASIC_DEMO_H - -#ifdef _WINDOWS -#include "Win32DemoApplication.h" -#define PlatformDemoApplication Win32DemoApplication -#else -#include "GlutDemoApplication.h" -#define PlatformDemoApplication GlutDemoApplication -#endif - -#include "LinearMath/btAlignedObjectArray.h" -#include "LinearMath/btConvexHullComputer.h" -#include "LinearMath/btQuaternion.h" -#include -#include - -class btBroadphaseInterface; -class btCollisionShape; -class btOverlappingPairCache; -class btCollisionDispatcher; -class btConstraintSolver; -struct btCollisionAlgorithmCreateFunc; -class btDefaultCollisionConfiguration; - -///VoronoiFractureDemo is good starting point for learning the code base and porting. - -class VoronoiFractureDemo : public PlatformDemoApplication -{ - //keep the collision shapes, for deletion/cleanup - btAlignedObjectArray m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - btClock m_perfmTimer; - - public: - - VoronoiFractureDemo() - { - srand((unsigned)time(NULL)); // Seed it... - } - virtual ~VoronoiFractureDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void renderme(); - - void getVerticesInsidePlanes(const btAlignedObjectArray& planes, btAlignedObjectArray& verticesOut, std::set& planeIndicesOut); - void voronoiBBShatter(const btAlignedObjectArray& points, const btVector3& bbmin, const btVector3& bbmax, const btQuaternion& bbq, const btVector3& bbt, btScalar matDensity); - void voronoiConvexHullShatter(const btAlignedObjectArray& points, const btAlignedObjectArray& verts, const btQuaternion& bbq, const btVector3& bbt, btScalar matDensity); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - virtual void keyboardCallback(unsigned char key, int x, int y); - - void attachFixedConstraints(); - - - static DemoApplication* Create() - { - VoronoiFractureDemo* demo = new VoronoiFractureDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BASIC_DEMO_H - diff --git a/Demos/VoronoiFractureDemo/Win32VoronoiFractureDemo.cpp b/Demos/VoronoiFractureDemo/Win32VoronoiFractureDemo.cpp deleted file mode 100644 index 064534ed7..000000000 --- a/Demos/VoronoiFractureDemo/Win32VoronoiFractureDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "VoronoiFractureDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new VoronoiFractureDemo(); -} - -#endif diff --git a/Demos/VoronoiFractureDemo/main.cpp b/Demos/VoronoiFractureDemo/main.cpp deleted file mode 100644 index 9da8fe59e..000000000 --- a/Demos/VoronoiFractureDemo/main.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "VoronoiFractureDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - - - - -int main(int argc,char** argv) -{ - - - VoronoiFractureDemo ccdDemo; - ccdDemo.initPhysics(); - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos/premake4.lua b/Demos/premake4.lua deleted file mode 100644 index cf4bf0b8d..000000000 --- a/Demos/premake4.lua +++ /dev/null @@ -1,104 +0,0 @@ - - - -function createDemos( demos, incdirs, linknames) - for _, name in ipairs(demos) do - - project ( "App_" .. name ) - - kind "ConsoleApp" - targetdir ".." - - configuration {} - - includedirs {incdirs} - links { - linknames - } - - configuration { "Windows" } - defines { "GLEW_STATIC"} - links { "opengl32","glu32","winmm"} - includedirs{ "Glut" } - libdirs {"Glut"} - files { "../build3/bullet.rc" } - - configuration {"Windows", "x32"} - links {"glew32s","glut32"} - configuration {"Windows", "x64"} - links {"glew64s", "glut64"} - - - configuration {"MacOSX"} - --print "hello" - linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" } - - configuration {"not Windows", "not MacOSX"} - links {"GL","GLU","glut","pthread"} - configuration{} - - - files { - "./" .. name .. "/*.cpp" , - "./" .. name .. "/*.h" - } - end -end - --- "CharacterDemo", fixme: it includes BspDemo files - - local localdemos = { - "BasicDemo", - "Box2dDemo", - "BspDemo", - "CcdPhysicsDemo", - "CollisionDemo", - "CollisionInterfaceDemo", - "ConcaveConvexcastDemo", - "ConcaveDemo", - "ConcaveRaycastDemo", - "ConstraintDemo", - "ContinuousConvexCollision", - "ConvexHullDistance", - "DynamicControlDemo", - "EPAPenDepthDemo", - "ForkLiftDemo", - "FeatherstoneMultiBodyDemo", - "FractureDemo", - "GenericJointDemo", - "GimpactTestDemo", - "GjkConvexCastDemo", - "GyroscopicDemo", - "InternalEdgeDemo", - "MovingConcaveDemo", - "MultiMaterialDemo", - "RagdollDemo", - "Raytracer", - "RaytestDemo", - "RollingFrictionDemo", - "SimplexDemo", - "SliderConstraintDemo", - "TerrainDemo", - "UserCollisionAlgorithm", - "VehicleDemo", - "VoronoiFractureDemo" - } - --- the following demos require custom include or link settings - - createDemos({"HelloWorld"},{"../src"},{"BulletDynamics","BulletCollision","LinearMath"}) - - createDemos(localdemos,{"../src","OpenGL","../btgui",},{"OpenGLSupport","BulletDynamics", "BulletCollision", "LinearMath"}) - - createDemos({"ConvexDecompositionDemo"},{"../Extras/HACD","../Extras/ConvexDecomposition","../src","OpenGL"},{"OpenGLSupport","BulletDynamics", "BulletCollision", "LinearMath","HACD","ConvexDecomposition"}) - - createDemos({"SoftDemo"},{"../src","OpenGL"}, {"OpenGLSupport","BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"}) - - createDemos({"SerializeDemo"},{"../Extras/Serialize/BulletFileLoader","../Extras/Serialize/BulletWorldImporter","../src","OpenGL","../btgui"},{"OpenGLSupport","BulletWorldImporter", "BulletFileLoader", "BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"}) - -createDemos({"BulletXmlImportDemo"},{"../Extras/Serialize/BulletFileLoader","../Extras/Serialize/BulletXmlWorldImporter", "../Extras/Serialize/BulletWorldImporter","../src","OpenGL","btgui"},{"OpenGLSupport","BulletXmlWorldImporter","BulletWorldImporter", "BulletFileLoader", "BulletSoftBody", "BulletDynamics", "BulletCollision", "LinearMath"}) - - -include "OpenGL" - - diff --git a/Demos3/AllBullet2Demos/BulletDemoEntries.h b/Demos3/AllBullet2Demos/BulletDemoEntries.h deleted file mode 100644 index c7198ae55..000000000 --- a/Demos3/AllBullet2Demos/BulletDemoEntries.h +++ /dev/null @@ -1,178 +0,0 @@ - -#ifndef BULLET_DEMO_ENTRIES_H -#define BULLET_DEMO_ENTRIES_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "../bullet2/BasicDemo/BasicDemo.h" - -#include "../bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h" - -#include "../bullet2/BasicDemo/HingeDemo.h" -#include "../bullet2/BasicDemo/HingeDemo.h" - -#include "../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h" -#include "../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h" -#include "../bullet2/ConstraintDemo/Dof6Spring2Setup.h" -#include "../bullet2/RagdollDemo/RagdollDemo.h" -#include "../bullet2/LuaDemo/LuaPhysicsSetup.h" -#include "../bullet2/ChainDemo/ChainDemo.h" -#include "../../Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h" -#include "../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.h" -#include "../../Demos/GyroscopicDemo/GyroscopicSetup.h" -#include "../bullet2/ConstraintDemo/ConstraintPhysicsSetup.h" -#include "../ImportURDFDemo/ImportURDFSetup.h" -#include "../ImportObjDemo/ImportObjSetup.h" -#include "../ImportSTLDemo/ImportSTLSetup.h" -#include "../ImportColladaDemo/ImportColladaSetup.h" -#include "../Demos/Raytracer/RaytracerSetup.h" -#include "../../Demos/SerializeDemo/SerializeSetup.h" -#include "../bullet2/MultiBodyDemo/TestJointTorqueSetup.h" -#include "../bullet2/MultiBodyDemo/MultiBodyVehicle.h" - -#include "../bullet2/CollisionDetection/SupportFuncDemo.h" -#include "../bullet2/BasicConcepts/CoordinateSystemDemo.h" - -#include "../../Demos3/FiniteElementMethod/FiniteElementDemo.h" -//#include "../../Demos3/bullet2/SoftDemo/SoftDemo.h" -#include "../Geometry/SphereCreation.h" -#include "../Geometry/DistributePoints.h" -#include "../Geometry/RenderInstancingDemo.h" - -#define MYCREATEFUNC(func) \ -static BulletDemoInterface* func##CreateFunc(CommonGraphicsApp* app)\ -{\ - CommonPhysicsSetup* physicsSetup = new func##Setup();\ - return new BasicDemo(app, physicsSetup);\ -} - -#define MYCREATEFUNC2(func,setup) \ -static BulletDemoInterface* func(CommonGraphicsApp* app)\ -{\ - CommonPhysicsSetup* physicsSetup = new setup(app);\ - return new BasicDemo(app, physicsSetup);\ -} - -MYCREATEFUNC(TestJointTorque); -MYCREATEFUNC(MultiBodyVehicle); -MYCREATEFUNC2(LuaDemoCreateFunc,LuaPhysicsSetup); -MYCREATEFUNC(Serialize); -MYCREATEFUNC(CcdPhysics); -MYCREATEFUNC(Gyroscopic); -MYCREATEFUNC(ForkLiftPhysics); -MYCREATEFUNC(KinematicObject); -MYCREATEFUNC(ConstraintPhysics); -MYCREATEFUNC(Dof6Spring2); -MYCREATEFUNC(ImportUrdf); -MYCREATEFUNC2(ImportObjCreateFunc,ImportObjSetup); -MYCREATEFUNC2(ImportSTLCreateFunc,ImportSTLSetup); -MYCREATEFUNC(CoordinateFrameDemoPhysics); - -MYCREATEFUNC(RaytracerPhysics); -//Bullet2RigidBodyDemo - - -static BulletDemoInterface* MyImportColladaCreateFunc(CommonGraphicsApp* app) -{ - CommonPhysicsSetup* physicsSetup = new ImportColladaSetup(app); - return new BasicDemo(app, physicsSetup); -} - - - - -struct BulletDemoEntry -{ - int m_menuLevel; - const char* m_name; - BulletDemoInterface::CreateFunc* m_createFunc; -}; - - -static BulletDemoEntry allDemos[]= -{ - - {0,"Basic Concepts",0}, - {1,"Basis Frame", &CoordinateSystemDemo::CreateFunc}, - {1,"SupportFunc", &MySupportFuncDemo::CreateFunc}, - - {0,"API Demos", 0}, - {1,"Raytracer",RaytracerPhysicsCreateFunc}, - {1,"BasicDemo",BasicDemo::MyCreateFunc}, - {1,"ForkLift",ForkLiftPhysicsCreateFunc}, - { 1, "CcdDemo", CcdPhysicsCreateFunc }, - { 1, "Gyroscopic", GyroscopicCreateFunc }, - { 1, "Kinematic", KinematicObjectCreateFunc }, - { 1, "HingeMotor", ConstraintPhysicsCreateFunc }, - {1,"6DofSpring2", Dof6Spring2CreateFunc}, - { 1, "LuaDemo",LuaDemoCreateFunc}, - - {0,"File Formats", 0}, - - { 1, ".bullet",SerializeCreateFunc}, - { 1, "Wavefront Obj", ImportObjCreateFunc}, - { 1, "URDF", ImportUrdfCreateFunc }, - { 1, "STL", ImportSTLCreateFunc}, - { 1, "COLLADA", MyImportColladaCreateFunc}, - {0,"Experiments", 0}, - {1, "Finite Element Demo", FiniteElementDemo::CreateFunc}, - {1,"SphereCreation", &SphereCreation::CreateFunc}, - {1,"DistributePoints", &DistributePoints::CreateFunc}, - {1,"Coordinate Frames", CoordinateFrameDemoPhysicsCreateFunc}, - {1,"Instanced Rendering", &RenderInstancingDemo::CreateFunc}, -// {0,"Soft Body", 0}, - -// {1,"Cloth1", SoftDemo::CreateFunc}, -/* {1,"ChainDemo",ChainDemo::MyCreateFunc}, -// {0, "Stress tests", 0 }, - - {1,"SIHingeDemo",HingeDemo::SICreateFunc}, - {1,"PGSHingeDemo",HingeDemo::PGSCreateFunc}, - {1,"DantzigHingeDemo",HingeDemo::DantzigCreateFunc}, - {1,"LemkeHingeDemo",HingeDemo::LemkeCreateFunc}, - {1,"InertiaHingeDemo",HingeDemo::InertiaCreateFunc}, - {1,"ABMHingeDemo",HingeDemo::FeatherstoneCreateFunc}, - - {1,"Ragdoll",RagDollDemo::MyCreateFunc}, - */ - { 0, "Multibody" ,0}, - {1,"MultiBody1",FeatherstoneDemo1::MyCreateFunc}, -// {"MultiBody2",FeatherstoneDemo2::MyCreateFunc}, - {1,"MultiDofDemo",MultiDofDemo::MyCreateFunc}, - {1,"TestJointTorque",TestJointTorqueCreateFunc}, - {1,"MultiBodyVehicle", MultiBodyVehicleCreateFunc}, - - -}; - -#include - - -static void saveCurrentDemoEntry(int currentEntry,const char* startFileName) -{ - FILE* f = fopen(startFileName,"w"); - if (f) - { - fprintf(f,"%d\n",currentEntry); - fclose(f); - } -}; - -static int loadCurrentDemoEntry(const char* startFileName) -{ - int currentEntry= 0; - FILE* f = fopen(startFileName,"r"); - if (f) - { - int result; - result = fscanf(f,"%d",¤tEntry); - if (result) - { - return currentEntry; - } - fclose(f); - } - return 0; -}; - -#endif//BULLET_DEMO_ENTRIES_H - diff --git a/Demos3/AllBullet2Demos/CMakeLists.txt b/Demos3/AllBullet2Demos/CMakeLists.txt deleted file mode 100644 index 5e3a7c5b9..000000000 --- a/Demos3/AllBullet2Demos/CMakeLists.txt +++ /dev/null @@ -1,131 +0,0 @@ - - -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ${BULLET_PHYSICS_SOURCE_DIR}/btgui - ${BULLET_PHYSICS_SOURCE_DIR}/btgui/lua-5.2.3/src - ${BULLET_PHYSICS_SOURCE_DIR}/Demos3/FiniteElementMethod -) - -SET(App_AllBullet2Demos_SRCS - main.cpp - BulletDemoEntries.h - ../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp - ../../Demos/BasicDemo/BasicDemoPhysicsSetup.h - ../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp - ../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.h - ../../Demos/Raytracer/RaytracerSetup.cpp - ../../Demos/Raytracer/RaytracerSetup.h - ../../Demos/GyroscopicDemo/GyroscopicSetup.cpp - ../../Demos/GyroscopicDemo/GyroscopicSetup.h - ../../Demos/ForkLiftDemo/ForkLiftPhysicsSetup.cpp - ../../Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h - ../../Demos/SerializeDemo/SerializeSetup.cpp - ../../Extras/Serialize/BulletFileLoader/bChunk.cpp - ../../Extras/Serialize/BulletFileLoader/bDNA.cpp - ../../Extras/Serialize/BulletFileLoader/bFile.cpp - ../../Extras/Serialize/BulletFileLoader/btBulletFile.cpp - ../../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp - ../../Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp - ../bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp - ../bullet2/MultiBodyDemo/MultiBodyVehicle.cpp - ../bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp - ../bullet2/ConstraintDemo/ConstraintPhysicsSetup.h - ../bullet2/ConstraintDemo/Dof6Spring2Setup.cpp - ../bullet2/ConstraintDemo/Dof6Spring2Setup.h - ../bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.cpp - ../bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h - ../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp - ../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h - ../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp - ../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h - ../bullet2/BasicDemo/BasicDemo.cpp - ../bullet2/BasicDemo/BasicDemo.h -# ../bullet2/SoftDemo/SoftDemo.cpp -# the next few demos are not converted to 'newer' structure yet -# target is to convert all Bullet 2 demos in new structure but need to settle down on features -# ../bullet2/BasicDemo/HingeDemo.cpp -# ../bullet2/BasicDemo/HingeDemo.h -# ../bullet2/ChainDemo/ChainDemo.cpp -# ../bullet2/ChainDemo/ChainDemo.h -# ../bullet2/RagdollDemo/RagdollDemo.cpp -# ../bullet2/RagdollDemo/RagdollDemo.h - ../bullet2/LuaDemo/LuaPhysicsSetup.cpp - ../bullet2/LuaDemo/LuaPhysicsSetup.h - ../ImportURDFDemo/URDF2Bullet.cpp - ../ImportURDFDemo/ImportURDFSetup.cpp - ../ImportURDFDemo/ImportURDFSetup.h - ../ImportObjDemo/ImportObjSetup.cpp - ../ImportObjDemo/LoadMeshFromObj.cpp - ../ImportObjDemo/LoadMeshFromObj.h - ../ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp - ../ImportColladaDemo/ImportColladaSetup.cpp - ../ImportColladaDemo/LoadMeshFromCollada.cpp - ../ImportSTLDemo/ImportSTLSetup.cpp - ../Wavefront/tiny_obj_loader.cpp - ../Wavefront/tiny_obj_loader.h - ../FiniteElementMethod/FiniteElementDemo.cpp - ../../btgui/Bullet3AppSupport/b3Clock.cpp - ../../btgui/Bullet3AppSupport/b3Clock.h - ../../btgui/urdf/urdfdom/urdf_parser/src/pose.cpp - ../../btgui/urdf/urdfdom/urdf_parser/src/model.cpp - ../../btgui/urdf/urdfdom/urdf_parser/src/link.cpp - ../../btgui/urdf/urdfdom/urdf_parser/src/joint.cpp - ../../btgui/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h - ../../btgui/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h - ../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h - ../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h - ../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h - ../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h - ../../btgui/tinyxml/tinystr.cpp - ../../btgui/tinyxml/tinyxml.cpp - ../../btgui/tinyxml/tinyxmlerror.cpp - ../../btgui/tinyxml/tinyxmlparser.cpp - ../../btgui/urdf/boost_replacement/lexical_cast.h - ../../btgui/urdf/boost_replacement/shared_ptr.h - ../../btgui/urdf/boost_replacement/printf_console.cpp - ../../btgui/urdf/boost_replacement/printf_console.h - ../../btgui/urdf/boost_replacement/string_split.cpp - ../../btgui/urdf/boost_replacement/string_split.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc -) - -LINK_LIBRARIES( - Bullet3AppSupport lua-5.2.3 Bullet3Common BulletSoftBody BulletDynamics BulletCollision LinearMath OpenGLWindow gwen ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - -IF (WIN32) - SET(App_AllBullet2Demos_SRCS ${App_AllBullet2Demos_SRCS} ${App_AllBullet2Demos_Common_SRCS}) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/btgui/OpenGLWindow/GlewWindows - ) - ADD_DEFINITIONS(-DGLEW_STATIC) -ELSE(WIN32) - IF(APPLE) - find_library(COCOA NAMES Cocoa) - MESSAGE(${COCOA}) - link_libraries(${COCOA}) - ELSE(APPLE) - ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") - ADD_DEFINITIONS("-DGLEW_STATIC") - ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/btgui/OpenGLWindow/GlewWindows - ) - LINK_LIBRARIES( pthread dl) - ENDIF(APPLE) -ENDIF(WIN32) - - - - -ADD_EXECUTABLE(App_AllBullet2Demos - ${App_AllBullet2Demos_SRCS} -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(App_AllBullet2Demos PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos3/AllBullet2Demos/premake4.lua b/Demos3/AllBullet2Demos/premake4.lua deleted file mode 100644 index 4626235b5..000000000 --- a/Demos3/AllBullet2Demos/premake4.lua +++ /dev/null @@ -1,131 +0,0 @@ - - project "App_AllBullet2Demos" - - language "C++" - - kind "ConsoleApp" - - includedirs { - ".", - "../../src", - "../../btgui", - "../../btgui/lua-5.2.3/src", - "../../Demos3/FiniteElementMethod" - } - - - links{"Bullet3AppSupport","gwen", "OpenGL_Window","BulletDynamics","BulletCollision","LinearMath","Bullet3Common","lua-5.2.3"} - initOpenGL() - initGlew() - - if _OPTIONS["midi"] then - if os.is("Windows") then - files {"../../btgui/MidiTest/RtMidi.cpp"} - links {"winmm"} - defines {"__WINDOWS_MM__", "WIN32","B3_USE_MIDI"} - end - - if os.is("Linux") then - defines {"__LINUX_ALSA__"} - links {"asound","pthread"} - end - - if os.is("MacOSX") then - files {"../../btgui/MidiTest/RtMidi.cpp"} - links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"} - defines {"__MACOSX_CORE__","B3_USE_MIDI"} - end - end - - files { - "**.cpp", - "**.h", - "../bullet2/LuaDemo/LuaPhysicsSetup.cpp", - "../bullet2/LuaDemo/LuaPhysicsSetup.h", - "../bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp", - "../bullet2/MultiBodyDemo/TestJointTorqueSetup.h", - "../bullet2/MultiBodyDemo/MultiBodyVehicle.cpp", - "../bullet2/MultiBodyDemo/MultiBodyVehicle.h", - "../bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.cpp", - "../bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h", --- "../DifferentialGearDemo/DifferentialGearSetup.cpp", --- "../DifferentialGearDemo/DifferentialGearSetup.h", - "../FiniteElementMethod/FiniteElementDemo.cpp", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h", - "../../Demos/ForkLiftDemo/ForkLiftPhysicsSetup.cpp", - "../../Demos/ForkLiftDemo/ForkLiftPhysicsSetup.h", - "../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp", - "../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.h", - "../../Demos/Raytracer/RaytracerSetup.cpp", - "../../Demos/Raytracer/RaytracerSetup.h", - "../../Demos/GyroscopicDemo/GyroscopicSetup.cpp", - "../../Demos/GyroscopicDemo/GyroscopicSetup.h", - "../../Demos/SerializeDemo/SerializeSetup.cpp", - "../../Extras/Serialize/BulletFileLoader/bChunk.cpp", - "../../Extras/Serialize/BulletFileLoader/bDNA.cpp", - "../../Extras/Serialize/BulletFileLoader/bFile.cpp", - "../../Extras/Serialize/BulletFileLoader/btBulletFile.cpp", - "../../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp", - "../../Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp", - "../bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp", - "../bullet2/ConstraintDemo/ConstraintPhysicsSetup.h", - "../bullet2/ConstraintDemo/Dof6Spring2Setup.cpp", - "../bullet2/ConstraintDemo/Dof6Spring2Setup.h", --- "../bullet2/SoftDemo/SoftDemo.cpp", - "../ImportColladaDemo/LoadMeshFromCollada.cpp", - "../ImportColladaDemo/ImportColladaSetup.cpp", - "../ImportURDFDemo/URDF2Bullet.cpp", - "../ImportURDFDemo/ImportURDFSetup.cpp", - "../ImportObjDemo/ImportObjSetup.cpp", - "../ImportObjDemo/LoadMeshFromObj.cpp", - "../ImportObjDemo/LoadMeshFromObj.h", - "../ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp", - "../ImportSTLDemo/ImportSTLSetup.cpp", - "../Wavefront/tiny_obj_loader.cpp", - "../Wavefront/tiny_obj_loader.h", - "../../btgui/urdf/urdfdom/urdf_parser/src/pose.cpp", - "../../btgui/urdf/urdfdom/urdf_parser/src/model.cpp", - "../../btgui/urdf/urdfdom/urdf_parser/src/link.cpp", - "../../btgui/urdf/urdfdom/urdf_parser/src/joint.cpp", - "../../btgui/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h", - "../../btgui/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h", - "../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h", - "../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h", - "../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h", - "../../btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h", - "../../btgui/tinyxml/tinystr.cpp", - "../../btgui/tinyxml/tinyxml.cpp", - "../../btgui/tinyxml/tinyxmlerror.cpp", - "../../btgui/tinyxml/tinyxmlparser.cpp", - "../../btgui/urdf/boost_replacement/lexical_cast.h", - "../../btgui/urdf/boost_replacement/shared_ptr.h", - "../../btgui/urdf/boost_replacement/printf_console.cpp", - "../../btgui/urdf/boost_replacement/printf_console.h", - "../../btgui/urdf/boost_replacement/string_split.cpp", - "../../btgui/urdf/boost_replacement/string_split.h", - "../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp", - "../bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h", - "../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp", - "../bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h", - "../bullet2/BasicDemo/BasicDemo.cpp", - "../bullet2/BasicDemo/BasicDemo.h", --- "../bullet2/BasicDemo/HingeDemo.cpp", --- "../bullet2/BasicDemo/HingeDemo.h", --- "../bullet2/ChainDemo/ChainDemo.cpp", --- "../bullet2/ChainDemo/ChainDemo.h", - --- "../bullet2/RagdollDemo/RagdollDemo.cpp", --- "../bullet2/RagdollDemo/RagdollDemo.h", --- "../bullet2/LuaDemo/LuaDemo.cpp", --- "../bullet2/LuaDemo/LuaDemo.h", - - - } - -if os.is("Linux") then - initX11() -end -if os.is("MacOSX") then - links{"Cocoa.framework"} -end diff --git a/Demos3/BasicDemo/BasicDemo.cpp b/Demos3/BasicDemo/BasicDemo.cpp deleted file mode 100644 index 425506520..000000000 --- a/Demos3/BasicDemo/BasicDemo.cpp +++ /dev/null @@ -1,242 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "BasicDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" - -#include //printf debugging -#include "GLDebugDrawer.h" - -static GLDebugDrawer gDebugDraw; - - -void BasicDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void BasicDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - - - - - -void BasicDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(SCALING*50.)); - - ///collision configuration contains default setup for memory, collision setup - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - //m_collisionConfiguration->setConvexConvexMultipointIterations(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - - m_broadphase = new btDbvtBroadphase(); - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - m_dynamicsWorld->setDebugDrawer(&gDebugDraw); - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - ///create a few basic rigid bodies - btBoxShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); - //groundShape->initializePolyhedralFeatures(); -// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - - m_collisionShapes.push_back(groundShape); - - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btBoxShape* colShape = new btBoxShape(btVector3(SCALING*1,SCALING*1,SCALING*1)); - //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - float start_x = START_POS_X - ARRAY_SIZE_X/2; - float start_y = START_POS_Y; - float start_z = START_POS_Z - ARRAY_SIZE_Z/2; - - for (int k=0;kaddRigidBody(body); - } - } - } - } - - -} -void BasicDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - - -void BasicDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - public: - - BasicDemo() - { - } - virtual ~BasicDemo() - { - exitPhysics(); - } - void initPhysics(); - - void exitPhysics(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - BasicDemo* demo = new BasicDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //BASIC_DEMO_H - diff --git a/Demos3/BasicDemo/CMakeLists.txt b/Demos3/BasicDemo/CMakeLists.txt deleted file mode 100644 index 6a7646e36..000000000 --- a/Demos3/BasicDemo/CMakeLists.txt +++ /dev/null @@ -1,69 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -${BULLET_PHYSICS_SOURCE_DIR}/ObsoleteDemos/OpenGL -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppBasicDemo - main.cpp - BasicDemo.cpp - BasicDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppBasicDemo - main.cpp - BasicDemo.cpp - BasicDemo.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppBasicDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32BasicDemo.cpp - BasicDemo.cpp - BasicDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos3/BasicDemo/Makefile.am b/Demos3/BasicDemo/Makefile.am deleted file mode 100644 index 05546162b..000000000 --- a/Demos3/BasicDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=BasicDemo - -BasicDemo_SOURCES=BasicDemo.cpp BasicDemo.h main.cpp -BasicDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -BasicDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos3/BasicDemo/main.cpp b/Demos3/BasicDemo/main.cpp deleted file mode 100644 index d666630a8..000000000 --- a/Demos3/BasicDemo/main.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BasicDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - - -int main(int argc,char** argv) -{ - - BasicDemo ccdDemo; - ccdDemo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos3/BasicDemoConsole/main.cpp b/Demos3/BasicDemoConsole/main.cpp deleted file mode 100644 index b54118527..000000000 --- a/Demos3/BasicDemoConsole/main.cpp +++ /dev/null @@ -1,14 +0,0 @@ - -#include -#include "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" - -int main(int argc, char* argv[]) -{ - BasicDemoPhysicsSetup physicsSetup; - GraphicsPhysicsBridge br; - physicsSetup.initPhysics(br); - physicsSetup.stepSimulation(1./60.); - physicsSetup.exitPhysics(); - - printf("hello\n"); -} \ No newline at end of file diff --git a/Demos3/BasicDemoConsole/premake4.lua b/Demos3/BasicDemoConsole/premake4.lua deleted file mode 100644 index 13b66fd6c..000000000 --- a/Demos3/BasicDemoConsole/premake4.lua +++ /dev/null @@ -1,26 +0,0 @@ -project "App_BasicDemoConsole" - - kind "ConsoleApp" - targetdir "../../bin" - - includedirs {"../../src","../../btgui"} - configuration { "Windows" } --- links { "opengl32","glu32","gdi32","winmm", "user32" } - files { "../../build3/bullet.rc" } --- configuration {"MacOSX"} - --print "hello" - -- linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" } --- configuration {"not Windows", "not MacOSX"} --- links {"GL","GLU","glut"} - configuration{} - - links { - "BulletDynamics", "BulletCollision", "LinearMath" - } - - files { - "*.cpp" , - "*.h", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" - } diff --git a/Demos3/BasicDemoCustomOpenGL2/main.cpp b/Demos3/BasicDemoCustomOpenGL2/main.cpp deleted file mode 100644 index 90ddcd5e0..000000000 --- a/Demos3/BasicDemoCustomOpenGL2/main.cpp +++ /dev/null @@ -1,256 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2014 Erwin Coumans http://bulletphysics.org - -//This file is Copyright (c) 2014 Google Inc. - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///This main.cpp replaces glut by Bullet 3 own platform management for OpenGL and input devices - -#include -#include "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" - - -#ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" -#else - -#include "GL/glew.h" -#ifdef _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" -#else -//let's cross the fingers it is Linux/X11 -#include "OpenGLWindow/X11OpenGLWindow.h" -#endif //_WIN32 -#endif//__APPLE__ - -#include "../../Demos/OpenGL/DemoApplication.h" -#include "../../Demos/OpenGL/GLDebugDrawer.h" - -int sWidth = 800; -int sHeight = 600; -DemoApplication* gApp = 0; -bool isShiftPressed = false; -bool isCtrlPressed = false; -bool isAltPressed = false; - -/* -todo: add wheel callback -typedef void (*b3WheelCallback)(float deltax, float deltay); -*/ - -void MyKeyboardCallback(int orgKeycode, int state) -{ - int keycode = orgKeycode; - - if (gApp) - { - - switch (orgKeycode) - { - case B3G_SHIFT: - { - isShiftPressed = (state==1); - break; - } - case B3G_ALT: - { - isAltPressed = (state==1); - break; - } - case B3G_CONTROL: - { - isCtrlPressed = (state==1); - break; - } - default: - { - } - }; - - if (state) - { - gApp->keyboardCallback(keycode,0,0); - } else - { - gApp->keyboardUpCallback(keycode,0,0); - } - } -} -void MyMouseMoveCallback( float x, float y) -{ - if (gApp) - { - //printf("mouseMotionFunc %f,%f\n",x,y); - gApp->mouseMotionFunc(x,y); - } -} - -void MyMouseButtonCallback(int button, int state, float x, float y) -{ - if (gApp) - { - //printf("mouseFunc %d,%d, %f,%f\n",button,state,x,y); - gApp->mouseFunc(button,1-state,x,y); - } -} - -void MyResizeCallback(float width, float height) -{ - sWidth = width; - sHeight = height; - if (gApp) - { - gApp->reshape(width,height); - } -} - -int main(int argc, char* argv[]) -{ - - b3gDefaultOpenGLWindow* window = new b3gDefaultOpenGLWindow(); - //window->setKeyboardCallback(keyCallback); - b3gWindowConstructionInfo wci; - wci.m_openglVersion = 2; - wci.m_width = sWidth; - wci.m_height = sHeight; - // wci.m_resizeCallback = MyResizeCallback; - - window->createWindow(wci); - window->setResizeCallback(MyResizeCallback); - window->setMouseButtonCallback(MyMouseButtonCallback); - - window->setMouseMoveCallback(MyMouseMoveCallback); - window->setKeyboardCallback(MyKeyboardCallback); - -// window->setWindowTitle("render test"); - - int majorGlVersion, minorGlVersion; - - if (!sscanf((const char*)glGetString(GL_VERSION), "%d.%d", &majorGlVersion, &minorGlVersion)==2) - { - printf("Exit: Error cannot extract OpenGL version from GL_VERSION string\n"); - exit(0); - } - if (majorGlVersion>=3 && wci.m_openglVersion>=3) - { - // float retinaScale = 1.f; - -#ifndef __APPLE__ -#ifndef _WIN32 - //we need glewExperimental on Linux - glewExperimental = GL_TRUE; -#endif // _WIN32 - glewInit(); -#endif - - //we need to call glGetError twice, because of some Ubuntu/Intel/OpenGL issue - - glGetError(); - glGetError(); - - btAssert(glGetError()==GL_NO_ERROR); - - - //retinaScale = window->getRetinaScale(); - - //primRenderer = new GLPrimitiveRenderer(sWidth,sHeight); - //sth_stash* font = initFont(primRenderer ); - //gwenRenderer = new GwenOpenGL3CoreRenderer(primRenderer,font,sWidth,sHeight,retinaScale); - - } else - { - //OpenGL 2.x - /*gwenRenderer = new Gwen::Renderer::OpenGL_DebugFont(); - skin.SetRender( gwenRenderer ); - - pCanvas = new Gwen::Controls::Canvas( &skin ); - pCanvas->SetSize( sWidth, sHeight); - pCanvas->SetDrawBackground( true ); - pCanvas->SetBackgroundColor( Gwen::Color( 150, 170, 170, 255 ) ); - */ - - } - - -// glClearColor(0.2,0.2,0.2,1); - - - - BasicDemoPhysicsSetup physicsSetup; - GraphicsPhysicsBridge br; - physicsSetup.initPhysics(br); - - - struct MyAppie : public DemoApplication - { - virtual void initPhysics() - { - } - virtual void clientMoveAndDisplay() - { - } - virtual void swapBuffers() - { - } - virtual void updateModifierKeys() - { - m_modifierKeys = 0; - if (isAltPressed) - m_modifierKeys |= BT_ACTIVE_ALT; - - if (isCtrlPressed) - m_modifierKeys |= BT_ACTIVE_CTRL; - - if (isShiftPressed) - m_modifierKeys |= BT_ACTIVE_SHIFT; - - } - - }; - - { - MyAppie appie; - appie.setDynamicsWorld(physicsSetup.m_dynamicsWorld); - appie.reshape(sWidth,sHeight); - appie.setShadows(true); - gApp = &appie; - GLDebugDrawer draw; - physicsSetup.m_dynamicsWorld->setDebugDrawer(&draw); - btClock timer; - unsigned long prevTime = timer.getTimeMicroseconds(); - - do - { - unsigned long curTime = timer.getTimeMicroseconds(); - if (!appie.isIdle()) - { - physicsSetup.stepSimulation((curTime-prevTime)*(1./1000000.)); - } - prevTime = curTime; - window->startRendering(); - br.syncPhysicsToGraphics(physicsSetup.m_dynamicsWorld); - appie.renderme(); - physicsSetup.m_dynamicsWorld->debugDrawWorld(); - window->endRendering(); - - } while (!window->requestedExit()); - } - window->closeWindow(); - delete window; - - physicsSetup.exitPhysics(); - - - printf("hello\n"); -} diff --git a/Demos3/BasicDemoCustomOpenGL2/premake4.lua b/Demos3/BasicDemoCustomOpenGL2/premake4.lua deleted file mode 100644 index c37918dc5..000000000 --- a/Demos3/BasicDemoCustomOpenGL2/premake4.lua +++ /dev/null @@ -1,39 +0,0 @@ -project "App_BasicDemoCustomOpenGL2" - - kind "ConsoleApp" - targetdir "../../bin" - - includedirs { - "../../src", - "../../btgui" - } - - defines { "DONT_USE_GLUT", "USE_OPENGL2"} - - initOpenGL() - initGlew() - - links { - "OpenGL_Window","BulletDynamics", "BulletCollision", "LinearMath" - } - - files { - "*.cpp" , - "*.h", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp", - "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h", - "../../Demos/OpenGL/DemoApplication.cpp", - "../../Demos/OpenGL/DemoApplication.h", - "../../Demos/OpenGL/GL_ShapeDrawer.cpp", - "../../Demos/OpenGL/GL_ShapeDrawer.h", - "../../Demos/OpenGL/GL_ShapeDrawer.cpp", - "../../Demos/OpenGL/GLDebugDrawer.cpp", - "../../Demos/OpenGL/GLDebugDrawer.h", - "../../Demos/OpenGL/GLDebugFont.cpp", - "../../Demos/OpenGL/GLDebugFont.h" - } -if os.is("Linux") then initX11() end - -if os.is("MacOSX") then - links{"Cocoa.framework"} -end diff --git a/Demos3/BasicGpuDemo/BasicGpuDemo.cpp b/Demos3/BasicGpuDemo/BasicGpuDemo.cpp deleted file mode 100644 index 1dbf3567e..000000000 --- a/Demos3/BasicGpuDemo/BasicGpuDemo.cpp +++ /dev/null @@ -1,437 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - - -///create 125 (5x5x5) dynamic object -#define ARRAY_SIZE_X 20 -#define ARRAY_SIZE_Y 20 -#define ARRAY_SIZE_Z 20 - -//maximum number of objects (and allow user to shoot additional boxes) -#define MAX_PROXIES (ARRAY_SIZE_X*ARRAY_SIZE_Y*ARRAY_SIZE_Z + 1024) - -///scaling of the objects (0.1 = 20 centimeter boxes ) -#define SCALING 1. -#define START_POS_X -5 -#define START_POS_Y -5 -#define START_POS_Z -3 - -#include "BasicGpuDemo.h" -#include "GlutStuff.h" -///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. -#include "btBulletDynamicsCommon.h" -#include "b3GpuDynamicsWorld.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" - - - -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" - - -#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h" - - - -#include //printf debugging -#include "GLDebugDrawer.h" - -static GLDebugDrawer gDebugDraw; - - -void BasicGpuDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) - { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - } - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void BasicGpuDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -} - -struct btInternalData -{ - cl_context m_clContext; - cl_device_id m_clDevice; - cl_command_queue m_clQueue; - const char* m_clDeviceName; - bool m_clInitialized; - - btInternalData() - { - m_clContext = 0; - m_clDevice = 0; - m_clQueue = 0; - m_clDeviceName = 0; - m_clInitialized =false; - } -}; - -void BasicGpuDemo::initCL(int preferredDeviceIndex, int preferredPlatformIndex) -{ - void* glCtx=0; - void* glDC = 0; - - - - int ciErrNum = 0; - //#ifdef CL_PLATFORM_INTEL - //cl_device_type deviceType = CL_DEVICE_TYPE_ALL; - //#else - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; - //#endif - - cl_platform_id platformId; - - // if (useInterop) - // { - // m_data->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - // } else - { - m_clData->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, 0,0,preferredDeviceIndex, preferredPlatformIndex,&platformId); - b3OpenCLUtils::printPlatformInfo(platformId); - } - - - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - int numDev = b3OpenCLUtils::getNumDevices(m_clData->m_clContext); - - if (numDev>0) - { - m_clData->m_clDevice= b3OpenCLUtils::getDevice(m_clData->m_clContext,0); - m_clData->m_clQueue = clCreateCommandQueue(m_clData->m_clContext, m_clData->m_clDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - b3OpenCLUtils::printDeviceInfo(m_clData->m_clDevice); - b3OpenCLDeviceInfo info; - b3OpenCLUtils::getDeviceInfo(m_clData->m_clDevice,&info); - m_clData->m_clDeviceName = info.m_deviceName; - m_clData->m_clInitialized = true; - - } - -} - -void BasicGpuDemo::exitCL() -{ - -} - -BasicGpuDemo::BasicGpuDemo() -{ - m_np=0; - m_bp=0; - m_clData = new btInternalData; - setCameraDistance(btScalar(SCALING*60.)); - this->setAzi(45); - this->setEle(45); - -} - -BasicGpuDemo::~BasicGpuDemo() -{ - exitPhysics(); - exitCL(); - delete m_clData; -} - - -extern bool gUseLargeBatches; - -void BasicGpuDemo::initPhysics() -{ - gUseLargeBatches = true;//for testing, this option is faster on NVIDIA GPUs - //use the Bullet 2.x btQuickprof for profiling of Bullet 3.x - b3SetCustomEnterProfileZoneFunc(CProfileManager::Start_Profile); - b3SetCustomLeaveProfileZoneFunc(CProfileManager::Stop_Profile); - - setTexturing(true); - setShadows(false);//too slow with many objects - - - ///collision configuration contains default setup for memory, collision setup - m_collisionConfiguration = 0; - //m_collisionConfiguration->setConvexConvexMultipointIterations(); - - ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) - m_dispatcher = 0; - - m_broadphase = 0; - - ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) - - m_solver = 0; - - initCL(-1,-1); - - - if (!m_clData->m_clInitialized) - { - printf("Error: cannot initialize OpenCL\n"); - exit(0); - } - - b3Config config; - m_np = new b3GpuNarrowPhase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue,config); - m_bp = new b3GpuSapBroadphase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - - b3DynamicBvhBroadphase* broadphaseDbvt = new b3DynamicBvhBroadphase(config.m_maxConvexBodies); - - m_rbp = new b3GpuRigidBodyPipeline(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue, m_np, m_bp,broadphaseDbvt,config); - - m_dynamicsWorld = new b3GpuDynamicsWorld(m_bp,m_np,m_rbp); - - m_dynamicsWorld->setDebugDrawer(&gDebugDraw); - - m_dynamicsWorld->setGravity(btVector3(0,-10,0)); - - - createObjects(); -} - -void BasicGpuDemo::createObjects() -{ - ///create a few basic rigid bodies - btBoxShape* groundShape = new btBoxShape(btVector3(btScalar(150.),btScalar(50.),btScalar(150.))); - //groundShape->initializePolyhedralFeatures(); -// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); - - m_collisionShapes.push_back(groundShape); - if (0) - { - btTransform tr; - tr.setIdentity(); - btVector3 faraway(-1e30,-1e30,-1e30); - - tr.setOrigin(faraway); - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(tr); - btSphereShape* dummyShape = new btSphereShape(0.f); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,dummyShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - - - } - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - //btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,0,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - body->setWorldTransform(groundTransform); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - - btBoxShape* colShape = new btBoxShape(btVector3(SCALING*1,SCALING*1,SCALING*1)); - //btCollisionShape* colShape = new btSphereShape(btScalar(SCALING*1.f)); - m_collisionShapes.push_back(colShape); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - colShape->calculateLocalInertia(mass,localInertia); - - float start_x = START_POS_X - ARRAY_SIZE_X/2; - float start_y = START_POS_Y; - float start_z = START_POS_Z - ARRAY_SIZE_Z/2; - - for (int k=0;ksetWorldTransform(startTransform); - - - m_dynamicsWorld->addRigidBody(body); - } - } - } - } - - - - - m_np->writeAllBodiesToGpu(); - m_bp->writeAabbsToGpu(); - m_rbp->writeAllInstancesToGpu(); - -} -void BasicGpuDemo::clientResetScene() -{ - /* - exitPhysics(); - initPhysics(); - */ - - - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj );//reset will take care of this - delete obj; - } - - //delete collision shapes - for (int j=0;jreset(); - - createObjects(); -} - - -void BasicGpuDemo::exitPhysics() -{ - - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;j m_collisionShapes; - - btBroadphaseInterface* m_broadphase; - - btCollisionDispatcher* m_dispatcher; - - btConstraintSolver* m_solver; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - - class b3GpuNarrowPhase* m_np; - class b3GpuSapBroadphase* m_bp; - class b3GpuRigidBodyPipeline* m_rbp; - - - - struct btInternalData* m_clData; - - void initCL(int d, int p); - void exitCL(); - - public: - - BasicGpuDemo(); - virtual ~BasicGpuDemo(); - - void initPhysics(); - - void exitPhysics(); - - void createObjects(); - - virtual void clientMoveAndDisplay(); - - virtual void displayCallback(); - virtual void clientResetScene(); - - static DemoApplication* Create() - { - BasicGpuDemo* demo = new BasicGpuDemo; - demo->myinit(); - demo->initPhysics(); - return demo; - } - - -}; - -#endif //GPU_BASIC_DEMO_H - diff --git a/Demos3/BasicGpuDemo/CMakeLists.txt b/Demos3/BasicGpuDemo/CMakeLists.txt deleted file mode 100644 index d17e7696a..000000000 --- a/Demos3/BasicGpuDemo/CMakeLists.txt +++ /dev/null @@ -1,69 +0,0 @@ -# This is basically the overall name of the project in Visual Studio this is the name of the Solution File - - -# For every executable you have with a main method you should have an add_executable line below. -# For every add executable line you should list every .cpp and .h file you have associated with that executable. - - -# This is the variable for Windows. I use this to define the root of my directory structure. -SET(GLUT_ROOT ${BULLET_PHYSICS_SOURCE_DIR}/Glut) - -# You shouldn't have to modify anything below this line -######################################################## - -INCLUDE_DIRECTORIES( -${BULLET_PHYSICS_SOURCE_DIR}/src -${BULLET_PHYSICS_SOURCE_DIR}/ObsoleteDemos/OpenGL -) - - - -IF (USE_GLUT) - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${GLUT_glut_LIBRARY} ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - -IF (WIN32) -ADD_EXECUTABLE(AppBasicDemo - main.cpp - BasicDemo.cpp - BasicDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) -ELSE() - ADD_EXECUTABLE(AppBasicDemo - main.cpp - BasicDemo.cpp - BasicDemo.h - ) -ENDIF() - - - - -ELSE (USE_GLUT) - - - - LINK_LIBRARIES( - OpenGLSupport BulletDynamics BulletCollision LinearMath ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} - ) - - - ADD_EXECUTABLE(AppBasicDemo - WIN32 - ../OpenGL/Win32AppMain.cpp - Win32BasicDemo.cpp - BasicDemo.cpp - BasicDemo.h - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc - ) - - -ENDIF (USE_GLUT) - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppBasicDemo PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos3/BasicGpuDemo/Makefile.am b/Demos3/BasicGpuDemo/Makefile.am deleted file mode 100644 index 05546162b..000000000 --- a/Demos3/BasicGpuDemo/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_PROGRAMS=BasicDemo - -BasicDemo_SOURCES=BasicDemo.cpp BasicDemo.h main.cpp -BasicDemo_CXXFLAGS=-I@top_builddir@/src -I@top_builddir@/Demos/OpenGL $(CXXFLAGS) -BasicDemo_LDADD=-L../OpenGL -lbulletopenglsupport -L../../src -lBulletDynamics -lBulletCollision -lLinearMath @opengl_LIBS@ diff --git a/Demos3/BasicGpuDemo/Win32BasicDemo.cpp b/Demos3/BasicGpuDemo/Win32BasicDemo.cpp deleted file mode 100644 index 72f92a15f..000000000 --- a/Demos3/BasicGpuDemo/Win32BasicDemo.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef _WINDOWS -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BasicDemo.h" - -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new BasicDemo(); -} - -#endif diff --git a/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.cpp b/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.cpp deleted file mode 100644 index faeb09f97..000000000 --- a/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.cpp +++ /dev/null @@ -1,710 +0,0 @@ -#include "b3GpuDynamicsWorld.h" -#include "BulletDynamics/Dynamics/btRigidBody.h" - -//#include "../../../opencl/gpu_rigidbody_pipeline2/CLPhysicsDemo.h" -//#include "../../../opencl/gpu_rigidbody_pipeline/b3GpuNarrowPhaseAndSolver.h" -#include "BulletCollision/CollisionShapes/btPolyhedralConvexShape.h" -#include "BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h" -#include "BulletCollision/CollisionShapes/btCompoundShape.h" -#include "BulletCollision/CollisionShapes/btSphereShape.h" -#include "BulletCollision/CollisionShapes/btStaticPlaneShape.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletDynamics/ConstraintSolver/btPoint2PointConstraint.h" -#include "BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.h" - -#include "LinearMath/btQuickprof.h" -//#include "Bullet3Common/b3Logging.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3Dynamics/ConstraintSolver/b3Point2PointConstraint.h" -#include "Bullet3Dynamics/ConstraintSolver/b3Generic6DofConstraint.h" - -#include "Bullet3Collision/NarrowPhaseCollision/b3RigidBodyCL.h" - - -#ifdef _WIN32 - #include -#endif - - -//#if (BT_BULLET_VERSION >= 282) -//#define BT_USE_BODY_UPDATE_REVISION -//#endif - - -b3GpuDynamicsWorld::b3GpuDynamicsWorld(class b3GpuSapBroadphase* bp,class b3GpuNarrowPhase* np, class b3GpuRigidBodyPipeline* rigidBodyPipeline) - :btDynamicsWorld(0,0,0), - m_gravity(0,-10,0), -m_cpuGpuSync(true), -m_bp(bp), -m_np(np), -m_rigidBodyPipeline(rigidBodyPipeline), -m_localTime(0.f), -m_staticBody(0) -{ - btConvexHullShape* nullShape = new btConvexHullShape(); - m_staticBody = new btRigidBody(0,0,nullShape); - addRigidBody(m_staticBody,0,0); -} - -b3GpuDynamicsWorld::~b3GpuDynamicsWorld() -{ - -} - - -#include - -int b3GpuDynamicsWorld::stepSimulation( btScalar timeStepUnused, int maxSubStepsUnused, btScalar fixedTimeStep) -{ - ///Don't use more than 1 simulation step, it destroys the performance having to copy the data between CPU and GPU multiple times per frame - ///Please use the CPU version in btDiscreteDynamicsWorld if you don't like this - - - CProfileManager::Reset(); - - BT_PROFILE("stepSimulation"); - - { - BT_PROFILE("sync constraints CPU"); - //todo: determine what data has changed, or perform copy on GPU? - for (int i=0;igetUserConstraintPtr(); - if (c) - { - switch (constraint->getConstraintType()) - { - case POINT2POINT_CONSTRAINT_TYPE: - { - btPoint2PointConstraint* p2 = (btPoint2PointConstraint*) constraint; - b3Point2PointConstraint* p3 = (b3Point2PointConstraint*) c; - p3->setPivotA((const b3Vector3&)p2->getPivotInA()); - p3->setPivotB((const b3Vector3&)p2->getPivotInB()); - p3->m_setting.m_damping = p2->m_setting.m_damping; - p3->m_setting.m_impulseClamp = p2->m_setting.m_impulseClamp; - p3->m_setting.m_tau = p2->m_setting.m_tau; - - break; - }; - - case D6_CONSTRAINT_TYPE: - { - btGeneric6DofConstraint* dof2 = (btGeneric6DofConstraint*) constraint; - b3Generic6DofConstraint* dof3 = (b3Generic6DofConstraint*) c; - const b3RigidBodyData* bodiesCL = m_np->getBodiesCpu(); - - b3Transform frameInA = (b3Transform&) dof2->getFrameOffsetA(); - b3Transform frameInB = (b3Transform&) dof2->getFrameOffsetB(); - dof3->setFrames(frameInA,frameInB,bodiesCL); - break; - } - - default: - { - } - }; - } - } - } - - // detect any change (very simple) - { - B3_PROFILE("body update revision detection (CPU)"); -#ifdef BT_USE_BODY_UPDATE_REVISION - b3Assert(m_bodyUpdateRevisions.size() == m_collisionObjects.size()); - b3Assert(m_np->getNumRigidBodies() == m_bodyUpdateRevisions.size()); -#endif //BT_USE_BODY_UPDATE_REVISION - - b3RigidBodyData* bodiesCL = (b3RigidBodyData*)m_np->getBodiesCpu(); - for (int i=0;im_collisionObjects.size();i++) - { - if (i>=m_np->getNumRigidBodies()) - { - b3Error("bodiesCL out-of-range\n"); - continue; - } - -#ifdef BT_USE_BODY_UPDATE_REVISION - if (m_bodyUpdateRevisions[i] != m_collisionObjects[i]->getUpdateRevisionInternal()) -#endif//BT_USE_BODY_UPDATE_REVISION - { - m_cpuGpuSync = true; - -#ifdef BT_USE_BODY_UPDATE_REVISION - m_bodyUpdateRevisions[i] = m_collisionObjects[i]->getUpdateRevisionInternal(); -#endif - - - btRigidBody* body = btRigidBody::upcast(m_collisionObjects[i]); - if (body) - { - b3Vector3 pos = (const b3Vector3&)m_collisionObjects[i]->getWorldTransform().getOrigin(); - btQuaternion orn2 = m_collisionObjects[i]->getWorldTransform().getRotation(); - b3Quaternion orn(orn2[0],orn2[1],orn2[2],orn2[3]); - body->integrateVelocities(fixedTimeStep); - m_np->setObjectTransformCpu(&pos[0],&orn[0],i); - b3Vector3 linVel = (const b3Vector3&)body->getLinearVelocity(); - b3Vector3 angVel = (const b3Vector3&)body->getAngularVelocity(); - m_np->setObjectVelocityCpu(&linVel[0],&angVel[0],i); - - - } - - } - } - } - - - - - if (m_cpuGpuSync) - { - BT_PROFILE("cpuGpuSync"); - m_cpuGpuSync = false; - m_np->writeAllBodiesToGpu(); - m_bp->writeAabbsToGpu(); - m_rigidBodyPipeline->writeAllInstancesToGpu(); - } - - - - //internalSingleStepSimulation(fixedTimeStep); - // dispatch preTick callback - if(0 != m_internalPreTickCallback) - { - BT_PROFILE("internalPreTickCallback"); - (*m_internalPreTickCallback)(this, fixedTimeStep); - } - - { - BT_PROFILE("m_rigidBodyPipeline->stepSimulation"); - m_rigidBodyPipeline->stepSimulation(fixedTimeStep); - } - - { - BT_PROFILE("readbackBodiesToCpu"); - //now copy info back to rigid bodies.... - m_np->readbackAllBodiesToCpu(); - } - - { - BT_PROFILE("scatter transforms into rigidbody (CPU)"); - - const b3RigidBodyData* bodiesCL = m_np->getBodiesCpu(); - - for (int i=0;im_collisionObjects.size();i++) - { - btVector3 pos; - btQuaternion orn; - if (m_np->getObjectTransformFromCpu(&pos[0],&orn[0],i)) - { - btTransform newTrans; - newTrans.setOrigin(pos); - newTrans.setRotation(orn); - - btCollisionObject* colObj = this->m_collisionObjects[i]; - colObj->setWorldTransform(newTrans); - - btRigidBody* body = btRigidBody::upcast(m_collisionObjects[i]); - if (body) - { - body->setLinearVelocity((btVector3&)bodiesCL[i].m_linVel); - body->setAngularVelocity((btVector3&)bodiesCL[i].m_angVel); - } - } - - -#ifdef BT_USE_BODY_UPDATE_REVISION - //ignore this revision update - m_bodyUpdateRevisions[i] = m_collisionObjects[i]->getUpdateRevisionInternal(); -#endif //BT_USE_BODY_UPDATE_REVISION - - } - - { - BT_PROFILE("synchronizeMotionStates"); - synchronizeMotionStates(); - } - } - - { - B3_PROFILE("clearForces"); - clearForces(); - } - -#ifndef BT_NO_PROFILE - CProfileManager::Increment_Frame_Counter(); -// CProfileManager::dumpAll(); -#endif //BT_NO_PROFILE - - - return 1; -} - - -void b3GpuDynamicsWorld::clearForces() -{ - ///@todo: iterate over awake simulation islands! - for ( int i=0;iclearForces(); - } -} - -void b3GpuDynamicsWorld::setGravity(const btVector3& gravity) -{ - m_gravity = gravity; - m_rigidBodyPipeline->setGravity(gravity); -} - -int b3GpuDynamicsWorld::findOrRegisterCollisionShape(const btCollisionShape* colShape) -{ - int index = m_uniqueShapes.findLinearSearch(colShape); - if (index==m_uniqueShapes.size()) - { - if (colShape->isPolyhedral()) - { - m_uniqueShapes.push_back(colShape); - - btPolyhedralConvexShape* convex = (btPolyhedralConvexShape*)colShape; - int numVertices=convex->getNumVertices(); - - int strideInBytes=sizeof(btVector3); - btAlignedObjectArray tmpVertices; - tmpVertices.resize(numVertices); - for (int i=0;igetVertex(i,tmpVertices[i]); - const float scaling[4]={1,1,1,1}; - //bool noHeightField=true; - - //int gpuShapeIndex = m_np->registerConvexHullShape(&tmpVertices[0].getX(), strideInBytes, numVertices, scaling); - const float* verts = numVertices? &tmpVertices[0].getX() : 0; - - int gpuShapeIndex = m_np->registerConvexHullShape(verts,strideInBytes, numVertices, scaling); - m_uniqueShapeMapping.push_back(gpuShapeIndex); - } else - { - if (colShape->getShapeType()==TRIANGLE_MESH_SHAPE_PROXYTYPE) - { - m_uniqueShapes.push_back(colShape); - - btBvhTriangleMeshShape* trimesh = (btBvhTriangleMeshShape*) colShape; - btStridingMeshInterface* meshInterface = trimesh->getMeshInterface(); - b3AlignedObjectArray vertices; - b3AlignedObjectArray indices; - - btVector3 trimeshScaling(1,1,1); - for (int partId=0;partIdgetNumSubParts();partId++) - { - - const unsigned char *vertexbase = 0; - int numverts = 0; - PHY_ScalarType type = PHY_INTEGER; - int stride = 0; - const unsigned char *indexbase = 0; - int indexstride = 0; - int numfaces = 0; - PHY_ScalarType indicestype = PHY_INTEGER; - //PHY_ScalarType indexType=0; - - b3Vector3 triangleVerts[3]; - meshInterface->getLockedReadOnlyVertexIndexBase(&vertexbase,numverts, type,stride,&indexbase,indexstride,numfaces,indicestype,partId); - btVector3 aabbMin,aabbMax; - - for (int triangleIndex = 0 ; triangleIndex < numfaces;triangleIndex++) - { - unsigned int* gfxbase = (unsigned int*)(indexbase+triangleIndex*indexstride); - - for (int j=2;j>=0;j--) - { - - int graphicsindex = indicestype==PHY_SHORT?((unsigned short*)gfxbase)[j]:gfxbase[j]; - if (type == PHY_FLOAT) - { - float* graphicsbase = (float*)(vertexbase+graphicsindex*stride); - triangleVerts[j] = b3MakeVector3( - graphicsbase[0]*trimeshScaling.getX(), - graphicsbase[1]*trimeshScaling.getY(), - graphicsbase[2]*trimeshScaling.getZ()); - } - else - { - double* graphicsbase = (double*)(vertexbase+graphicsindex*stride); - triangleVerts[j] = b3MakeVector3( btScalar(graphicsbase[0]*trimeshScaling.getX()), - btScalar(graphicsbase[1]*trimeshScaling.getY()), - btScalar(graphicsbase[2]*trimeshScaling.getZ())); - } - } - vertices.push_back(triangleVerts[0]); - vertices.push_back(triangleVerts[1]); - vertices.push_back(triangleVerts[2]); - indices.push_back(indices.size()); - indices.push_back(indices.size()); - indices.push_back(indices.size()); - } - } - //GraphicsShape* gfxShape = 0;//b3BulletDataExtractor::createGraphicsShapeFromWavefrontObj(objData); - - //GraphicsShape* gfxShape = b3BulletDataExtractor::createGraphicsShapeFromConvexHull(&sUnitSpherePoints[0],MY_UNITSPHERE_POINTS); - float meshScaling[4] = {1,1,1,1}; - //int shapeIndex = renderer.registerShape(gfxShape->m_vertices,gfxShape->m_numvertices,gfxShape->m_indices,gfxShape->m_numIndices); - //float groundPos[4] = {0,0,0,0}; - - //renderer.registerGraphicsInstance(shapeIndex,groundPos,rotOrn,color,meshScaling); - if (vertices.size() && indices.size()) - { - int gpuShapeIndex = m_np->registerConcaveMesh(&vertices,&indices, meshScaling); - m_uniqueShapeMapping.push_back(gpuShapeIndex); - } else - { - printf("Error: no vertices in mesh in b3GpuDynamicsWorld::addRigidBody\n"); - index = -1; - b3Assert(0); - } - - - } else - { - if (colShape->getShapeType()==COMPOUND_SHAPE_PROXYTYPE) - { - - btCompoundShape* compound = (btCompoundShape*) colShape; - b3AlignedObjectArray childShapes; - - for (int i=0;igetNumChildShapes();i++) - { - //for now, only support polyhedral child shapes - b3Assert(compound->getChildShape(i)->isPolyhedral()); - b3GpuChildShape child; - child.m_shapeIndex = findOrRegisterCollisionShape(compound->getChildShape(i)); - btVector3 pos = compound->getChildTransform(i).getOrigin(); - btQuaternion orn = compound->getChildTransform(i).getRotation(); - for (int v=0;v<4;v++) - { - child.m_childPosition[v] = pos[v]; - child.m_childOrientation[v] = orn[v]; - } - childShapes.push_back(child); - } - index = m_uniqueShapes.size(); - m_uniqueShapes.push_back(colShape); - - int gpuShapeIndex = m_np->registerCompoundShape(&childShapes); - m_uniqueShapeMapping.push_back(gpuShapeIndex); - - - - - /*printf("Error: unsupported compound type (%d) in b3GpuDynamicsWorld::addRigidBody\n",colShape->getShapeType()); - index = -1; - b3Assert(0); - */ - } else - { - if (colShape->getShapeType()==SPHERE_SHAPE_PROXYTYPE) - { - m_uniqueShapes.push_back(colShape); - btSphereShape* sphere = (btSphereShape*)colShape; - - int gpuShapeIndex = m_np->registerSphereShape(sphere->getRadius()); - m_uniqueShapeMapping.push_back(gpuShapeIndex); - } else - { - if (colShape->getShapeType()==STATIC_PLANE_PROXYTYPE) - { - m_uniqueShapes.push_back(colShape); - btStaticPlaneShape* plane = (btStaticPlaneShape*)colShape; - - int gpuShapeIndex = m_np->registerPlaneShape((b3Vector3&)plane->getPlaneNormal(),plane->getPlaneConstant()); - m_uniqueShapeMapping.push_back(gpuShapeIndex); - } else - { - printf("Error: unsupported shape type (%d) in b3GpuDynamicsWorld::addRigidBody\n",colShape->getShapeType()); - index = -1; - b3Assert(0); - } - } - } - } - } - - } - - return index; -} - -void b3GpuDynamicsWorld::addRigidBody(btRigidBody* body) -{ - m_cpuGpuSync = true; - //body->setMotionState(0); - - - int index = findOrRegisterCollisionShape(body->getCollisionShape()); - - if (index>=0) - { - int gpuShapeIndex= m_uniqueShapeMapping[index]; - float mass = body->getInvMass() ? 1.f/body->getInvMass() : 0.f; - btVector3 pos = body->getWorldTransform().getOrigin(); - btQuaternion orn = body->getWorldTransform().getRotation(); - - int bodyIndex = m_rigidBodyPipeline->registerPhysicsInstance(mass,&pos.getX(),&orn.getX(),gpuShapeIndex,m_collisionObjects.size(),false); - - body->setUserIndex(bodyIndex); - - m_collisionObjects.push_back(body); - m_bodyUpdateRevisions.push_back(-1); - } -} - -void b3GpuDynamicsWorld::removeRigidBody(btRigidBody* colObj) -{ - m_cpuGpuSync = true; - btDynamicsWorld::removeCollisionObject(colObj); - m_bodyUpdateRevisions.resize(this->m_collisionObjects.size()); - for (int i=0;igetUserIndex(); - - if (getNumCollisionObjects()==0) - { - m_uniqueShapes.resize(0); - m_uniqueShapeMapping.resize(0); - m_np->reset(); - m_bp->reset(); - m_rigidBodyPipeline->reset(); -#ifdef BT_USE_BODY_UPDATE_REVISION - m_bodyUpdateRevisions.resize(0); -#endif //BT_USE_BODY_UPDATE_REVISION - } - -} - - -void b3GpuDynamicsWorld::reset() -{ - m_staticBody = 0; - - if (m_collisionObjects.size()) - b3Warning("m_collisionObjects should be empty before calling b3GpuDynamicsWorld::reset"); - m_collisionObjects.clear(); - if (m_bodyUpdateRevisions.size()) - b3Warning("world (m_bodyUpdateRevisions) should be empty before calling b3GpuDynamicsWorld::reset"); - m_bodyUpdateRevisions.clear(); - - if (m_constraints.size()) - b3Warning("m_constraints should be empty before calling b3GpuDynamicsWorld::reset"); - m_constraints.clear(); - - - m_uniqueShapes.resize(0); - m_uniqueShapeMapping.resize(0); - m_np->reset(); - m_bp->reset(); - m_rigidBodyPipeline->reset(); -#ifdef BT_USE_BODY_UPDATE_REVISION - m_bodyUpdateRevisions.resize(0); -#endif - - btConvexHullShape* nullShape = new btConvexHullShape(); - m_staticBody = new btRigidBody(0,0,nullShape); - addRigidBody(m_staticBody,0,0); -} - -void b3GpuDynamicsWorld::removeCollisionObject(btCollisionObject* colObj) -{ - m_cpuGpuSync = true; - btDynamicsWorld::removeCollisionObject(colObj); - m_bodyUpdateRevisions.resize(this->m_collisionObjects.size()); - for (int i=0;i rays; - b3RayInfo ray; - ray.m_from = (const b3Vector3&)rayFromWorld; - ray.m_to = (const b3Vector3&)rayToWorld; - rays.push_back(ray); - - b3AlignedObjectArray hitResults; - b3RayHit hit; - hit.m_hitFraction = 1.f; - - hitResults.push_back(hit); - - m_rigidBodyPipeline->castRays(rays,hitResults); - b3Printf("hit = %f\n", hitResults[0].m_hitFraction); - if (hitResults[0].m_hitFraction<1.f) - { - b3Assert(hitResults[0].m_hitBody >=0); - b3Assert(hitResults[0].m_hitBody < m_collisionObjects.size()); - b3Vector3 hitNormalLocal = hitResults[0].m_hitNormal; - btCollisionObject* colObj = m_collisionObjects[hitResults[0].m_hitBody]; - LocalRayResult rayResult(colObj,0,(btVector3&)hitNormalLocal,hitResults[0].m_hitFraction); - rayResult.m_hitFraction = hitResults[0].m_hitFraction; - - resultCallback.addSingleResult(rayResult,true); - } - - -} - -void b3GpuDynamicsWorld::synchronizeMotionStates() -{ - //iterate over all collision objects - for ( int i=0;igetMotionState() && !body->isStaticOrKinematicObject()) - { - //we need to call the update at least once, even for sleeping objects - //otherwise the 'graphics' transform never updates properly - const btTransform& centerOfMassWorldTrans = body->getWorldTransform(); - body->getMotionState()->setWorldTransform(centerOfMassWorldTrans); - } -} - -void b3GpuDynamicsWorld::debugDrawWorld() -{ - BT_PROFILE("debugDrawWorld"); - - btCollisionWorld::debugDrawWorld(); -} - -void b3GpuDynamicsWorld::addConstraint(btTypedConstraint* constraint, bool disableCollisionsBetweenLinkedBodies) -{ - constraint->setUserConstraintPtr(0); - - m_constraints.push_back(constraint); - - switch (constraint->getConstraintType()) - { - case POINT2POINT_CONSTRAINT_TYPE: - { - btPoint2PointConstraint* p = (btPoint2PointConstraint*) constraint; - int rbA = p->getRigidBodyA().getUserIndex(); - int rbB = p->getRigidBodyB().getUserIndex(); - btVector3 pivotInB = p->getPivotInB(); - if (rbB<=0) - { - pivotInB = p->getRigidBodyA().getWorldTransform()*p->getPivotInA(); - rbB = m_staticBody->getUserIndex(); - } - if (rbA>=0 && rbB>=0) - { - b3Point2PointConstraint* p2p = new b3Point2PointConstraint(rbA,rbB, (const b3Vector3&)p->getPivotInA(),(const b3Vector3&)pivotInB); - p2p->setBreakingImpulseThreshold(p->getBreakingImpulseThreshold()); - constraint->setUserConstraintPtr(p2p); - m_rigidBodyPipeline->addConstraint(p2p); - } else - { - b3Error("invalid body index in addConstraint,b3Point2PointConstraint\n"); - } - break; - } - case D6_CONSTRAINT_TYPE: - { - btGeneric6DofConstraint* dof2 = (btGeneric6DofConstraint*) constraint; - const b3RigidBodyData* bodiesCL = m_np->getBodiesCpu(); - - int rbA = dof2->getRigidBodyA().getUserIndex(); - int rbB = dof2->getRigidBodyB().getUserIndex(); - - btTransform frameInA = dof2->getFrameOffsetB(); - btTransform frameInB = dof2->getFrameOffsetB(); - - if (rbA<=0) - { - frameInA = dof2->getRigidBodyB().getWorldTransform()*dof2->getFrameOffsetB(); - rbA = m_staticBody->getUserIndex(); - } - - if (rbB<=0) - { - frameInB = dof2->getRigidBodyA().getWorldTransform()*dof2->getFrameOffsetA(); - rbB = m_staticBody->getUserIndex(); - } - if (rbA>=0 && rbB>=0) - { - b3Generic6DofConstraint* dof3 = new b3Generic6DofConstraint(rbA,rbB,(b3Transform&)frameInA,(b3Transform&)frameInB,false,bodiesCL);//(();//(rbA,rbB, (const b3Vector3&)p->getPivotInA(),(const b3Vector3&)pivotInB); - { - btVector3 limit(0,0,0); - dof2->getLinearLowerLimit(limit); - dof3->setLinearLowerLimit((const b3Vector3&)limit); - - dof2->setLinearUpperLimit(limit); - dof3->setLinearUpperLimit((const b3Vector3&)limit); - - dof2->setAngularLowerLimit(limit); - dof3->setAngularLowerLimit((const b3Vector3&)limit); - - dof2->setAngularUpperLimit(limit); - dof3->setAngularUpperLimit((const b3Vector3&)limit); - /* for (int i=0;i<6;i++) - { - dof3->setParam(BT_CONSTRAINT_STOP_CFM,dof2->getParam(BT_CONSTRAINT_STOP_CFM,i),i); - dof3->setParam(BT_CONSTRAINT_STOP_ERP,dof2->getParam(BT_CONSTRAINT_STOP_ERP,i),i); - } - */ - dof3->setBreakingImpulseThreshold(dof2->getBreakingImpulseThreshold()); - } -// p2p->setBreakingImpulseThreshold(p->getBreakingImpulseThreshold()); - constraint->setUserConstraintPtr(dof3); - m_rigidBodyPipeline->addConstraint(dof3); - } else - { - b3Error("invalid body index in addConstraint, btGeneric6DofConstraint.\n"); - } - -// b3Generic6DofConstraint - break; - } - default: - b3Warning("Warning: b3GpuDynamicsWorld::addConstraint with unsupported constraint type\n"); - }; - - -} - -void b3GpuDynamicsWorld::removeConstraint(btTypedConstraint* constraint) -{ - b3TypedConstraint* c = (b3TypedConstraint*) constraint->getUserConstraintPtr(); - - if (c) - { - this->m_rigidBodyPipeline->removeConstraint(c); - delete c; - } - m_constraints.remove(constraint); -} - diff --git a/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.h b/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.h deleted file mode 100644 index 03a4a3386..000000000 --- a/Demos3/BasicGpuDemo/b3GpuDynamicsWorld.h +++ /dev/null @@ -1,113 +0,0 @@ -#ifndef B3_GPU_DYNAMICS_WORLD_H -#define B3_GPU_DYNAMICS_WORLD_H - -#include "LinearMath/btVector3.h" - -class btRigidBody; -class btCollisionObject; -struct b3GpuInternalData;//use this struct to avoid 'leaking' all OpenCL headers into clients code base -class CLPhysicsDemo; -class btActionInterface; -class btTypedConstraint; - -#include "LinearMath/btAlignedObjectArray.h" -#include "BulletDynamics/Dynamics/btDynamicsWorld.h" -#include "Bullet3Common/b3Logging.h" - - -class b3GpuDynamicsWorld : public btDynamicsWorld -{ - - btAlignedObjectArray m_uniqueShapes; - btAlignedObjectArray m_uniqueShapeMapping; - btAlignedObjectArray m_constraints; - btAlignedObjectArray m_bodyUpdateRevisions; - class b3GpuRigidBodyPipeline* m_rigidBodyPipeline; - class b3GpuNarrowPhase* m_np; - class b3GpuSapBroadphase* m_bp; - - - btVector3 m_gravity; - bool m_cpuGpuSync; - float m_localTime; - class btRigidBody* m_staticBody;//used for picking and Bullet 2.x compatibility. In Bullet 3.x all constraints have explicitly 2 bodies. - int findOrRegisterCollisionShape(const btCollisionShape* colShape); - - - -public: - b3GpuDynamicsWorld(class b3GpuSapBroadphase* bp,class b3GpuNarrowPhase* np, class b3GpuRigidBodyPipeline* rigidBodyPipeline); - - virtual ~b3GpuDynamicsWorld(); - - virtual int stepSimulation( btScalar timeStep,int maxSubSteps=1, btScalar fixedTimeStep=btScalar(1.)/btScalar(60.)); - - virtual void synchronizeMotionStates(); - - - void debugDrawWorld(); - - void setGravity(const btVector3& gravity); - - void addRigidBody(btRigidBody* body); - - void removeCollisionObject(btCollisionObject* colObj); - - virtual void removeRigidBody(btRigidBody* body); - - virtual void addConstraint(btTypedConstraint* constraint, bool disableCollisionsBetweenLinkedBodies=false); - - virtual void removeConstraint(btTypedConstraint* constraint); - void rayTest(const btVector3& rayFromWorld, const btVector3& rayToWorld, RayResultCallback& resultCallback) const; - - btAlignedObjectArray& getCollisionObjectArray(); - - const btAlignedObjectArray& getCollisionObjectArray() const; - - - btVector3 getGravity () const - { - return m_gravity; - } - - virtual void addRigidBody(btRigidBody* body, short group, short mask) - { - addRigidBody(body); - } - - virtual void addAction(btActionInterface* action) - { - btAssert(0); - } - - virtual void removeAction(btActionInterface* action) - { - btAssert(0); - } - - virtual void setConstraintSolver(btConstraintSolver* solver) - { - btAssert(0); - } - - virtual btConstraintSolver* getConstraintSolver() - { - btAssert(0); - return 0; - } - - - virtual void clearForces(); - - virtual btDynamicsWorldType getWorldType() const - { - return BT_GPU_DYNAMICS_WORLD; - } - - ///this can be useful to synchronize a single rigid body -> graphics object - void synchronizeSingleMotionState(btRigidBody* body); - - void reset(); -}; - -#endif //B3_GPU_DYNAMICS_WORLD_H diff --git a/Demos3/BasicGpuDemo/main.cpp b/Demos3/BasicGpuDemo/main.cpp deleted file mode 100644 index 7559a36a7..000000000 --- a/Demos3/BasicGpuDemo/main.cpp +++ /dev/null @@ -1,39 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "BasicGpuDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" - - - -int main(int argc,char** argv) -{ - - BasicGpuDemo ccdDemo; - ccdDemo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&ccdDemo); -#endif - - //default glut doesn't return from mainloop - return 0; -} - diff --git a/Demos3/CMakeLists.txt b/Demos3/CMakeLists.txt deleted file mode 100644 index 21d271b99..000000000 --- a/Demos3/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -if (OPENGL_FOUND) -if (BUILD_OPENGL3_DEMOS) - SUBDIRS( AllBullet2Demos GpuDemos SimpleOpenGL3 ) -endif(BUILD_OPENGL3_DEMOS) -endif(OPENGL_FOUND) diff --git a/Demos3/CpuDemos/CpuDemo.h b/Demos3/CpuDemos/CpuDemo.h deleted file mode 100644 index e0637f7fd..000000000 --- a/Demos3/CpuDemos/CpuDemo.h +++ /dev/null @@ -1,59 +0,0 @@ - -#ifndef CPU_DEMO_H -#define CPU_DEMO_H - -struct GLInstancingRenderer; -struct GwenUserInterface; - -struct CpuDemo -{ - - struct ConstructionInfo - { - bool m_useInstancedCollisionShapes; - GLInstancingRenderer* m_instancingRenderer; - struct GLPrimitiveRenderer* m_primRenderer; - - class b3gWindowInterface* m_window; - class GwenUserInterface* m_gui; - - ConstructionInfo() - :m_useInstancedCollisionShapes(true), - m_instancingRenderer(0), - m_window(0), - m_gui(0) - { - } - }; - - - virtual void initPhysics(const ConstructionInfo& ci)=0; - - virtual void exitPhysics()=0; - - virtual void renderScene()=0; - - virtual void clientMoveAndDisplay()=0; - - - virtual const char* getName() { - return ""; - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - - typedef class CpuDemo* (CreateFunc)(); -}; - -#endif //CPU_DEMO_H - diff --git a/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.cpp b/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.cpp deleted file mode 100644 index 208c9131a..000000000 --- a/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.cpp +++ /dev/null @@ -1,469 +0,0 @@ -#include "CpuSoftBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" - - -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" - -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "CpuSoftBodyDemoInternalData.h" -#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h" -#include "stb_image/stb_image.h" -#include "CpuSoftClothDemoInternalData.h" - -#include "ExplicitEuler.h" -#include "PositionBasedDynamics.h" - -static b3KeyboardCallback oldCallback = 0; -extern bool gReset; - -float clothWidth = 4; -float clothHeight= 4; - -int width = 64; -int height = 64; - -int numPoints = width*height; -float clothMass = 100.f; - - - -CpuSoftBodyDemo::CpuSoftBodyDemo() -:m_instancingRenderer(0), -m_window(0) -{ - m_data = new CpuSoftBodyDemoInternalData; -} -CpuSoftBodyDemo::~CpuSoftBodyDemo() -{ - - delete m_data; -} - - - - - - - -static void PairKeyboardCallback(int key, int state) -{ - if (key=='R' && state) - { - gReset = true; - } - - //b3DefaultKeyboardCallback(key,state); - oldCallback(key,state); -} - -void CpuSoftBodyDemo::setupScene(const ConstructionInfo& ci) -{ - -} - -void CpuSoftBodyDemo::initPhysics(const ConstructionInfo& ci) -{ - - GLint err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - if (ci.m_window) - { - m_window = ci.m_window; - oldCallback = ci.m_window->getKeyboardCallback(); - ci.m_window->setKeyboardCallback(PairKeyboardCallback); - - } - - m_instancingRenderer = ci.m_instancingRenderer; - - - - setupScene(ci); - - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - - - m_instancingRenderer->writeTransforms(); - -} - -void CpuSoftBodyDemo::exitPhysics() -{ - - m_window->setKeyboardCallback(oldCallback); - -} - - -#include "Bullet3Common/shared/b3Float4.h" - -struct GraphicsVertex -{ - float pos[4]; - float normal[3]; - float texcoord[2]; -}; - - - -void CpuSoftClothDemo::renderScene() -{ - //wireframe - bool wireframe=false; - if (wireframe) - { - m_instancingRenderer->init(); - m_instancingRenderer->updateCamera(); - m_instancingRenderer->drawLine(b3MakeVector3(0,0,0),b3MakeVector3(1,0,0),b3MakeVector3(1,0,0,1),1); - m_instancingRenderer->drawLine(b3MakeVector3(0,0,0),b3MakeVector3(0,1,0),b3MakeVector3(0,1,0,1),1); - m_instancingRenderer->drawLine(b3MakeVector3(0,0,0),b3MakeVector3(0,0,1),b3MakeVector3(0,0,1,1),1); - - float color[4]={1,0,0,1}; - m_instancingRenderer->drawPoints(m_data->m_clothVertices,color,numPoints,sizeof(GraphicsVertex),2); - } else - { - m_instancingRenderer->renderScene(); - } - -} -void CpuSoftBodyDemo::renderScene() -{ - m_instancingRenderer->renderScene(); -} - -void CpuSoftBodyDemo::clientMoveAndDisplay() -{ - GLint err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - - -} - - -void CpuSoftClothDemo::clientMoveAndDisplay() -{ - if (m_data->m_clothShapeIndex>=0 && m_data->m_clothVertices) - { - - float deltaTime = 1./100.;//1./60.f; - //float deltaTime = 1./60.f; - - //write positions - int vertexStride =sizeof(GraphicsVertex);//9 * sizeof(float); - - int method = 1; - switch (method) - { - case 0: - ExplicitEuler::solveConstraints(m_clothData, (char*)m_data->m_clothVertices, vertexStride, deltaTime); - break; - case 1: - PositionBasedDynamics::solveConstraints(m_clothData, (char*)m_data->m_clothVertices, vertexStride, deltaTime); - break; - default: - b3Error("unknown method for CpuSoftClothDemo::solveConstraints"); - }; - - //read positions - - m_instancingRenderer->updateShape(m_data->m_clothShapeIndex,m_data->m_clothVertices); - } -} - -CpuSoftClothDemo::CpuSoftClothDemo() -{ - m_clothData = new CpuSoftClothDemoInternalData(); - -} -CpuSoftClothDemo::~CpuSoftClothDemo() -{ - delete m_clothData; -} - - -unsigned char* CpuSoftClothDemo::loadImage(const char* fileName, int& width, int& height, int& n) -{ - unsigned char *data = stbi_load(fileName, &width, &height, &n, 0); - if (data) - { - GLubyte* image=new GLubyte[512*256*4]; - for(int y=0;y<256;++y) - { - const int t=y>>4; - GLubyte* pi=image+y*512*3; - for(int x=0;x<512;++x) - { - const int s=x>>5; - const GLubyte b=180; - GLubyte c=b+((s+t&1)&1)*(255-b); - pi[0]=pi[1]=pi[2]=c;pi+=3; - } - } - - { - - for (int i=0;iregisterShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - b3Vector3 position = b3MakeVector3(0,-50,0);//((j+1)&1)+i*2.2,1+j*2.,((j+1)&1)+k*2.2); - b3Quaternion orn(0,0,0,1); - b3Vector4 scaling=b3MakeVector4(100,1,100,1); - float color[4]={0.8,0.8,0.8,1}; - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - - } - - - GraphicsVertex* cpu_buffer = new GraphicsVertex[width*height]; - memset(cpu_buffer, 0, width*height*sizeof(GraphicsVertex)); - - - int numVertices = 0; - // Initial test data for rendering - for(int y = 0; y < height; y++) - { - for(int x = 0; x < width; x++) - { - float posX = (x/((float)(width-1)))*(clothWidth); - float posZ = ((y-height/2.f)/((float)(height-1)))*(clothHeight); - - cpu_buffer[y*width+x].pos[0] = 0; - cpu_buffer[y*width+x].pos[1] = -posX; - cpu_buffer[y*width+x].pos[2] = posZ; - cpu_buffer[y*width+x].pos[3] = 0.f; - - cpu_buffer[y*width+x].normal[0] = 1; - cpu_buffer[y*width+x].normal[1] = 0; - cpu_buffer[y*width+x].normal[2] = 0; - cpu_buffer[y*width+x].texcoord[0] = 1*x/((float)(width-1)); - cpu_buffer[y*width+x].texcoord[1] = (1.f-4*y/((float)(height-1))); - numVertices++; - } - } - - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - int numIndices = 0; - - // Generate and fill index array for rendering - int* indices = new int[width*3*2+2 + height*width*3*2]; - - for(int y = 0; y < height-1; y++) - { - for(int x = 0; x < width-1; x++) - { - // *3 indices/triangle, *2 triangles/quad - int baseIndex = (x + y*(width-1))*3*2; - indices[baseIndex] = x + y*width; - indices[baseIndex+1] = x+1 + y*width; - indices[baseIndex+2] = x+width + y*width; - - - indices[baseIndex+3] = x + 1 + y*width; - indices[baseIndex+4] = x+(width+1) + y*width; - indices[baseIndex+5] = x+width + y*width; - numIndices+=6; - - } - } - - - int num_barrel_vertices = sizeof(barrel_vertices)/(9*sizeof(float)); - int num_barrel_indices = sizeof(barrel_indices)/sizeof(int); - - int textureIndex = -1; - { - int width,height,n; - FILE* f = fopen("test.tst","wb"); - fclose(f); - const char* filename = "data/bullet_logo.png"; - const unsigned char* image=0; - - const char* prefix[]={"./","../","../../","../../../","../../../../"}; - int numprefix = sizeof(prefix)/sizeof(const char*); - - for (int i=0;!image && iregisterTexture(image,width,height); - } - } -// int shapeIndex = ci.m_instancingRenderer->registerShape(barrel_vertices,num_barrel_vertices,barrel_indices,num_barrel_indices); - - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - m_data->m_clothVertices = &cpu_buffer[0].pos[0]; - - int shapeIndex = ci.m_instancingRenderer->registerShape(&cpu_buffer[0].pos[0],numVertices,indices,numIndices,B3_GL_TRIANGLES,textureIndex); - m_data->m_clothShapeIndex = shapeIndex; - - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - - float pos[4] = {0,0,0,0}; - float orn[4] = {0,0,0,1}; - float color[4] = {1,1,1,1}; - float scaling[4] = {10,10,10,1}; - - ci.m_instancingRenderer->registerGraphicsInstance(shapeIndex,pos,orn,color,scaling); - ci.m_instancingRenderer->setCameraDistance(24); - ci.m_instancingRenderer->setCameraTargetPosition(pos); - - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - - - int numParticles = width*height; - - m_clothData->m_forces.resize(numParticles); - m_clothData->m_velocities.resize(numParticles); - m_clothData->m_particleMasses.resize(numParticles); - - - - for(int y = 0; y < height; y++) - { - for(int x = 0; x < width; x++) - { - float mass = clothMass/numParticles; - if (x==0 && y==(height-1)) - mass=0.f; - if (x==0 && y==0) - mass=0.f; - int index = x+width*y; - - m_clothData->m_particleMasses[index] = mass; - } - } - - - ClothMaterial mat; - mat.m_stiffness = 0.5; - mat.m_damping = -0.25; - - m_clothData->m_materials.push_back(mat); - - - //add springs - for (int x=0;xm_springs.push_back(spring); - - } - } - - for (int x=0;xm_springs.push_back(spring); - } - } - - for (int x=0;xm_springs.push_back(spring); - } - - { - ClothSpring spring; - int indexA = x+1+y*width; - int indexB = (x)+(y+1)*width; - spring.m_particleIndexA = indexA; - spring.m_particleIndexB = indexB; - spring.m_material = 0; - const b3Vector3& posA = (const b3Vector3&) cpu_buffer[indexA].pos; - const b3Vector3& posB = (const b3Vector3&) cpu_buffer[indexB].pos; - spring.m_restLength = (posA-posB).length(); - m_clothData->m_springs.push_back(spring); - } - - } - } - - -} \ No newline at end of file diff --git a/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.h b/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.h deleted file mode 100644 index 0fe89f137..000000000 --- a/Demos3/CpuDemos/deformable/CpuSoftBodyDemo.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef CPU_SOFT_BODY_DEMO_H -#define CPU_SOFT_BODY_DEMO_H - -#include "../CpuDemo.h" - -class CpuSoftBodyDemo : public CpuDemo -{ -protected: - class GLInstancingRenderer* m_instancingRenderer; - class b3gWindowInterface* m_window; - - struct CpuSoftBodyDemoInternalData* m_data; - -public: - - CpuSoftBodyDemo(); - virtual ~CpuSoftBodyDemo(); - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void destroyScene(){}; - - virtual void exitPhysics(); - - virtual const char* getName() - { - return "CPUSOFT"; - } - static CpuDemo* MyCreateFunc() - { - CpuDemo* demo = new CpuSoftBodyDemo; - return demo; - } - - virtual void renderScene(); - - - - virtual void clientMoveAndDisplay(); - - -}; - -class CpuSoftClothDemo : public CpuSoftBodyDemo -{ -protected: - - struct CpuSoftClothDemoInternalData* m_clothData; - -public: - CpuSoftClothDemo(); - virtual ~CpuSoftClothDemo(); - - unsigned char* loadImage(const char* fileName, int& width, int& height, int& n); - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void renderScene(); - - virtual const char* getName() - { - return "CpuSoftCloth"; - } - - - virtual void clientMoveAndDisplay(); - - static CpuDemo* MyCreateFunc() - { - CpuDemo* demo = new CpuSoftClothDemo; - return demo; - } - -}; - -#endif //CPU_SOFT_BODY_DEMO_H - diff --git a/Demos3/CpuDemos/deformable/CpuSoftBodyDemoInternalData.h b/Demos3/CpuDemos/deformable/CpuSoftBodyDemoInternalData.h deleted file mode 100644 index a3ac757a0..000000000 --- a/Demos3/CpuDemos/deformable/CpuSoftBodyDemoInternalData.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef CPU_SOFTBODY_INTERNAL_DATA_H -#define CPU_SOFTBODY_INTERNAL_DATA_H - -//#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" - -#include "Bullet3Common/b3Vector3.h" - -struct CpuSoftBodyDemoInternalData -{ - int m_clothShapeIndex; - float* m_clothVertices; - - CpuSoftBodyDemoInternalData() - : m_clothShapeIndex(-1), - m_clothVertices(0) - { - } -}; - -#endif//CPU_SOFTBODY_INTERNAL_DATA_H - diff --git a/Demos3/CpuDemos/deformable/CpuSoftClothDemoInternalData.h b/Demos3/CpuDemos/deformable/CpuSoftClothDemoInternalData.h deleted file mode 100644 index 3b1400bbd..000000000 --- a/Demos3/CpuDemos/deformable/CpuSoftClothDemoInternalData.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef CPU_SOFTCLOTH_INTERNAL_DATA_H -#define CPU_SOFTCLOTH_INTERNAL_DATA_H - -#include "Bullet3Common/b3AlignedObjectArray.h" -#include "Bullet3Common/b3Vector3.h" - -struct ClothSpring -{ - int m_particleIndexA; - int m_particleIndexB; - float m_restLength; - int m_material; -}; - -struct ClothMaterial -{ - float m_stiffness; - float m_damping; -}; - -struct CpuSoftClothDemoInternalData -{ - b3AlignedObjectArray m_springs; - b3AlignedObjectArray m_materials; - b3AlignedObjectArray m_velocities; - b3AlignedObjectArray m_forces; - b3AlignedObjectArray m_particleMasses; -}; - -#endif //CPU_SOFTCLOTH_INTERNAL_DATA_H - diff --git a/Demos3/CpuDemos/deformable/ExplicitEuler.cpp b/Demos3/CpuDemos/deformable/ExplicitEuler.cpp deleted file mode 100644 index cab093921..000000000 --- a/Demos3/CpuDemos/deformable/ExplicitEuler.cpp +++ /dev/null @@ -1,105 +0,0 @@ -#include "ExplicitEuler.h" - -#include "CpuSoftClothDemoInternalData.h" - - - - - -void ExplicitEuler::computeGravityForces(struct CpuSoftClothDemoInternalData* clothData, char* vertexPositions, int vertexStride, float dt) -{ - - B3_PROFILE("computeForces"); - int numPoints = clothData->m_particleMasses.size(); - - b3Vector3 gravityAcceleration = b3MakeVector3(0,-9.8,0); - //f=m*a - for (int i=0;im_particleMasses[i]; - - b3Vector3 particleMassVec = b3MakeVector3(particleMass,particleMass,particleMass,0); - clothData->m_forces[i] = gravityAcceleration*particleMass; - } - } - -} - -void ExplicitEuler::computeSpringForces(struct CpuSoftClothDemoInternalData* clothData, char* vertexPositions, int vertexStride, float dt) -{ - - //add spring forces - for(int i=0;im_springs.size();i++) - { - - int indexA = clothData->m_springs[i].m_particleIndexA; - int indexB = clothData->m_springs[i].m_particleIndexB; - float restLength = clothData->m_springs[i].m_restLength; - const ClothMaterial& mat = clothData->m_materials[clothData->m_springs[i].m_material]; - - const b3Vector3& posA = (const b3Vector3&)vertexPositions[indexA*vertexStride]; - const b3Vector3& posB = (const b3Vector3&)vertexPositions[indexB*vertexStride]; - const b3Vector3& velA = clothData->m_velocities[indexA]; - const b3Vector3& velB = clothData->m_velocities[indexB]; - - b3Vector3 deltaP = posA-posB; - b3Vector3 deltaV = velA-velB; - float dist = deltaP.length(); - b3Vector3 deltaPNormalized = deltaP/dist; - - float spring = -mat.m_stiffness * (dist-restLength)*100000; - float damper = mat.m_damping * b3Dot(deltaV,deltaPNormalized)*100; - - b3Vector3 springForce = (spring+damper)*deltaPNormalized; - float particleMassA = clothData->m_particleMasses[indexA]; - float particleMassB = clothData->m_particleMasses[indexB]; - - //if (springForce.length()) - { - if (particleMassA) - { - clothData->m_forces[indexA] += springForce*particleMassA; - } - - if (particleMassB) - { - clothData->m_forces[indexB] -= springForce*particleMassB; - } - } - } -} -void ExplicitEuler::integrateExplicitEuler(struct CpuSoftClothDemoInternalData* clothData, char* vertexPositions, int vertexStride,float deltaTime) -{ - B3_PROFILE("integrateEuler"); - b3Vector3 deltaTimeVec = b3MakeVector3(deltaTime,deltaTime,deltaTime,0); - - int numPoints = clothData->m_particleMasses.size(); - - for (int i=0;im_particleMasses[i]; - if (mass) - { - - - - b3Vector3 dv = (clothData->m_forces[i]/mass)*deltaTimeVec; - clothData->m_velocities[i]+= dv; - clothData->m_velocities[i]*=0.999; - - b3Vector3& pos = (b3Vector3&)vertexPositions[i*vertexStride]; - - pos += clothData->m_velocities[i]*deltaTimeVec; - } - } - -} - -void ExplicitEuler::solveConstraints(struct CpuSoftClothDemoInternalData* data, char* vertexPositions, int vertexStride,float deltaTime) -{ - computeGravityForces(data,vertexPositions,vertexStride,deltaTime); - computeSpringForces(data,vertexPositions,vertexStride,deltaTime); - - integrateExplicitEuler(data,vertexPositions,vertexStride,deltaTime); -} \ No newline at end of file diff --git a/Demos3/CpuDemos/deformable/ExplicitEuler.h b/Demos3/CpuDemos/deformable/ExplicitEuler.h deleted file mode 100644 index 631320993..000000000 --- a/Demos3/CpuDemos/deformable/ExplicitEuler.h +++ /dev/null @@ -1,16 +0,0 @@ - -#ifndef EXPLICIT_EULER_H -#define EXPLICIT_EULER_H - -struct ExplicitEuler -{ - static void computeGravityForces(struct CpuSoftClothDemoInternalData* clothData, char* vtx, int vertexStride, float dt); - static void computeSpringForces(struct CpuSoftClothDemoInternalData* clothData, char* vertexPositions, int vertexStride, float dt); - - static void integrateExplicitEuler(struct CpuSoftClothDemoInternalData* clothData, char* vtx, int vertexStride,float dt); - - static void solveConstraints(struct CpuSoftClothDemoInternalData* clothData, char* vtx, int vertexStride,float dt); - -}; - -#endif //EXPLICIT_EULER_H \ No newline at end of file diff --git a/Demos3/CpuDemos/deformable/PositionBasedDynamics.cpp b/Demos3/CpuDemos/deformable/PositionBasedDynamics.cpp deleted file mode 100644 index 84dea8eb6..000000000 --- a/Demos3/CpuDemos/deformable/PositionBasedDynamics.cpp +++ /dev/null @@ -1,72 +0,0 @@ - -#include "PositionBasedDynamics.h" -#include "CpuSoftClothDemoInternalData.h" -#include "ExplicitEuler.h" - -void PositionBasedDynamics::solveLinks(struct CpuSoftClothDemoInternalData* clothData, char* vertexPositions, int vertexStride,float dt) -{ - float kst = 1.f; - float kLST = 1.f;//0.8f; - float damping = 0.999; - int numPoints = clothData->m_particleMasses.size(); - - b3AlignedObjectArray startPositions; - - startPositions.resize(numPoints); - for (int i=0;im_springs.size();i++) - { - ClothSpring& link=clothData->m_springs[i]; - //if(l.m_c0>0)//avoid links between two particles with mass==0 - { - - float invMassA = clothData->m_particleMasses[link.m_particleIndexA]? 1.f/clothData->m_particleMasses[link.m_particleIndexA] : 0.f; - float invMassB = clothData->m_particleMasses[link.m_particleIndexB]? 1.f/clothData->m_particleMasses[link.m_particleIndexB] : 0.f; - - float m_c0 = (invMassA+invMassB)*kLST; - float m_c1 = link.m_restLength*link.m_restLength; - - b3Vector3& posA = (b3Vector3&)vertexPositions[link.m_particleIndexA*vertexStride]; - b3Vector3& posB = (b3Vector3&)vertexPositions[link.m_particleIndexB*vertexStride]; - - const b3Vector3 del=posB-posA; - const float len=del.length2(); - if (m_c1+len > B3_EPSILON) - { - const float k=((m_c1-len)/(m_c0*(m_c1+len)))*kst; - posA-=del*(k*invMassA); - posB+=del*(k*invMassB); - } - } - } - - - - //adjust velocity - for (int i=0;im_velocities[i]+=(diff/dt); - clothData->m_velocities[i]*=damping; - } -} - -void PositionBasedDynamics::solveConstraints(struct CpuSoftClothDemoInternalData* clothData, char* vtx, int vertexStride,float dt) -{ - B3_PROFILE("computeGravityForces"); - ExplicitEuler::computeGravityForces(clothData,vtx,vertexStride,dt); - ExplicitEuler::integrateExplicitEuler(clothData,vtx,vertexStride,dt); - - int numIter=10; - for (int i=0;i //for GetLocalTime/GetSystemTime -#else -#include //gettimeofday -#endif - -#ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" -#elif defined _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" -#elif defined __linux -#include "OpenGLWindow/X11OpenGLWindow.h" -#endif - - - -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "OpenGLWindow/GLInstancingRenderer.h" - -#include -#include -#include "OpenGLWindow/fontstash.h" -#include "OpenGLWindow/opengl_fontstashcallbacks.h" -#include "gwenUserInterface.h" - -#include "../btgui/Bullet3AppSupport/b3Quickprof.h" -#include "../btgui/OpenGLWindow/GLRenderToTexture.h" - -bool exportFrame=false; -bool exportMovie = false; -int frameIndex = 0; -GLRenderToTexture* renderTexture =0; - -int g_OpenGLWidth=1024; -int g_OpenGLHeight = 768; -bool dump_timings = false; -int maxFrameCount = 102; -extern char OpenSansData[]; - -static void MyResizeCallback( float width, float height) -{ - g_OpenGLWidth = width; - g_OpenGLHeight = height; -} - -b3gWindowInterface* window=0; -GwenUserInterface* gui = 0; - -bool gPause = false; -bool gDrawGui = true; -bool gStep = false; -bool gReset = false; - -enum -{ - MYPAUSE=1, - MYPROFILE=2, - MYRESET, -}; - -enum -{ - MYCOMBOBOX1 = 1, -}; - -#include "CpuDemo.h" - -struct EmptyDemo : public CpuDemo -{ - virtual const char* getName() { - return "EmptyDemo"; - } - - virtual void initPhysics(const ConstructionInfo& ci) - { - } - - virtual void exitPhysics() - { - } - - virtual void renderScene() - { - } - - virtual void clientMoveAndDisplay() - { - } - - static CpuDemo* MyCreateFunc() - { - CpuDemo* demo = new EmptyDemo; - return demo; - } - - -}; -#include "rendering/RenderDemo.h" -#include "rigidbody/RigidBodyDemo.h" -#include "deformable/CpuSoftBodyDemo.h" - - -b3AlignedObjectArray demoNames; -int selectedDemo = 0; -CpuDemo::CreateFunc* allDemos[]= -{ - CpuSoftClothDemo::MyCreateFunc, - RigidBodyDemo::MyCreateFunc, - RenderDemo::MyCreateFunc, - EmptyDemo::MyCreateFunc, -}; - - -void MyComboBoxCallback(int comboId, const char* item) -{ - int numDemos = demoNames.size(); - for (int i=0;imouseMoveCallback(x,y); - if (!handled) - { - if (sDemo) - handled = sDemo->mouseMoveCallback(x,y); - if (!handled) - b3DefaultMouseMoveCallback(x,y); - } - } -} -static void MyMouseButtonCallback(int button, int state, float x, float y) -{ - if (gui) - { - bool handled = gui->mouseButtonCallback(button,state,x,y); - if (!handled) - { - //try picking first - if (sDemo) - handled = sDemo->mouseButtonCallback(button,state,x,y); - - if (!handled) - b3DefaultMouseButtonCallback(button,state,x,y); - } - } -} - -extern bool useShadowMap; -bool useWireFrame = false; - -void MyKeyboardCallback(int key, int state) -{ - - if (key=='w' && state) - { - useWireFrame = !useWireFrame; - if (useWireFrame) - { - glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ); - } else - { - glPolygonMode( GL_FRONT_AND_BACK, GL_FILL ); - } - } - if (key=='s' && state) - { - useShadowMap=!useShadowMap; - } - if (key=='g' && state) - { - gDrawGui = !gDrawGui; - } - - if (key==B3G_ESCAPE && window) - { - window->setRequestExit(); - } - if (key==B3G_F2) - { - if (state) - exportMovie = !exportMovie; - } - if (key==B3G_F1) - { - if (state) - exportFrame = true; - } - if (sDemo) - sDemo->keyboardCallback(key,state); - - b3DefaultKeyboardCallback(key,state); -} - - - - - - - int droidRegular=0;//, droidItalic, droidBold, droidJapanese, dejavu; - -sth_stash* stash=0; -OpenGL2RenderCallbacks* renderCallbacks = 0; - -void exitFont() -{ - sth_delete(stash); - stash=0; - - delete renderCallbacks; - renderCallbacks=0; -} -sth_stash* initFont(GLPrimitiveRenderer* primRender) -{ - GLint err; - - struct sth_stash* stash = 0; - int datasize; - - float sx,sy,dx,dy,lh; - GLuint texture; - - renderCallbacks = new OpenGL2RenderCallbacks(primRender); - - stash = sth_create(512,512,renderCallbacks);//256,256);//,1024);//512,512); - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (!stash) - { - fprintf(stderr, "Could not create stash.\n"); - return 0; - } -#ifdef LOAD_FONT_FROM_FILE - unsigned char* data=0; - const char* fontPaths[]={ - "./", - "../../bin/", - "../bin/", - "bin/" - }; - - int numPaths=sizeof(fontPaths)/sizeof(char*); - - // Load the first truetype font from memory (just because we can). - - FILE* fp = 0; - const char* fontPath ="./"; - char fullFontFileName[1024]; - - for (int i=0;i] [--benchmark] [--maxFrameCount=][--dump_timings] [--disable_opencl] [--cl_device=] [--cl_platform=] [--disable_cached_cl_kernels] [--load_cl_kernels_from_disk] [--x_dim=] [--y_dim=] [--z_dim=] [--x_gap=] [--y_gap=] [--z_gap=] [--use_concave_mesh] [--pair_benchmark_file=] [--new_batching] [--no_instanced_collision_shapes]\n"); -}; - - -void DumpSimulationTime(FILE* f) -{ - b3ProfileIterator* profileIterator = b3ProfileManager::Get_Iterator(); - - profileIterator->First(); - if (profileIterator->Is_Done()) - return; - - float accumulated_time=0,parent_time = profileIterator->Is_Root() ? b3ProfileManager::Get_Time_Since_Reset() : profileIterator->Get_Current_Parent_Total_Time(); - int i; - int frames_since_reset = b3ProfileManager::Get_Frame_Count_Since_Reset(); - - //fprintf(f,"%.3f,", parent_time ); - float totalTime = 0.f; - - - - static bool headersOnce = true; - - if (headersOnce) - { - headersOnce = false; - fprintf(f,"root,"); - - for (i = 0; !profileIterator->Is_Done(); i++,profileIterator->Next()) - { - float current_total_time = profileIterator->Get_Current_Total_Time(); - accumulated_time += current_total_time; - float fraction = parent_time > B3_EPSILON ? (current_total_time / parent_time) * 100 : 0.f; - const char* name = profileIterator->Get_Current_Name(); - fprintf(f,"%s,",name); - } - fprintf(f,"\n"); - } - - - fprintf(f,"%.3f,",parent_time); - profileIterator->First(); - for (i = 0; !profileIterator->Is_Done(); i++,profileIterator->Next()) - { - float current_total_time = profileIterator->Get_Current_Total_Time(); - accumulated_time += current_total_time; - float fraction = parent_time > B3_EPSILON ? (current_total_time / parent_time) * 100 : 0.f; - const char* name = profileIterator->Get_Current_Name(); - //if (!strcmp(name,"stepSimulation")) - { - fprintf(f,"%.3f,",current_total_time); - } - totalTime += current_total_time; - //recurse into children - } - - fprintf(f,"\n"); - - - b3ProfileManager::Release_Iterator(profileIterator); - - -} -///extern const char* g_deviceName; -const char* g_deviceName = "blaat"; - -#include "Bullet3Common/b3Vector3.h" - -FILE* defaultOutput = stdout; - -void myprintf(const char* msg) -{ - fprintf(defaultOutput,msg); -} - - - - - -//#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "OpenGLWindow/stb_image_write.h" -void writeTextureToPng(int textureWidth, int textureHeight, const char* fileName) -{ - int numComponents = 4; - //glPixelStorei(GL_PACK_ALIGNMENT,1); - GLuint err=glGetError(); - assert(err==GL_NO_ERROR); - glReadBuffer(GL_BACK);//COLOR_ATTACHMENT0); - err=glGetError(); - assert(err==GL_NO_ERROR); - float* orgPixels = (float*)malloc(textureWidth*textureHeight*numComponents*4); - glReadPixels(0,0,textureWidth, textureHeight, GL_RGBA, GL_FLOAT, orgPixels); - //it is useful to have the actual float values for debugging purposes - - //convert float->char - char* pixels = (char*)malloc(textureWidth*textureHeight*numComponents); - err=glGetError(); - assert(err==GL_NO_ERROR); - - for (int j=0;jcreateWindow(wci); - window->setResizeCallback(MyResizeCallback); - window->setMouseMoveCallback(MyMouseMoveCallback); - window->setMouseButtonCallback(MyMouseButtonCallback); - window->setKeyboardCallback(MyKeyboardCallback); - - window->setWindowTitle("Bullet 3.x GPU Rigid Body http://bulletphysics.org"); - - - -#ifndef __APPLE__ - glewInit(); -#endif - - gui = new GwenUserInterface(); - - b3Printf("started GwenUserInterface\n"); - - - GLPrimitiveRenderer prim(g_OpenGLWidth,g_OpenGLHeight); - - stash = initFont(&prim); - - - if (gui) - { - gui->init(g_OpenGLWidth,g_OpenGLHeight,stash,window->getRetinaScale()); - - b3Printf("init fonts\n"); - - - gui->setToggleButtonCallback(MyButtonCallback); - - gui->registerToggleButton(MYPAUSE,"Pause"); - gui->registerToggleButton(MYPROFILE,"Profile"); - gui->registerToggleButton(MYRESET,"Reset"); - - int numItems = sizeof(allDemos)/sizeof(CpuDemo::CreateFunc*); - demoNames.clear(); - for (int i=0;igetName()); - delete demo; - } - - gui->registerComboBox(MYCOMBOBOX1,numItems,&demoNames[0]); - gui->setComboBoxCallback(MyComboBoxCallback); - } - - - - do - { - bool syncOnly = false; - gReset = false; - - - - - static bool once=true; - - - //glClearColor(0.3f, 0.3f, 0.3f, 1.0f); - glClearColor(1,1,1,1); - glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); - - window->setWheelCallback(b3DefaultWheelCallback); - - - - - { - CpuDemo* demo = allDemos[selectedDemo](); - sDemo = demo; -// demo->myinit(); - bool useGpu = false; - - - int maxObjectCapacity=1024*1024;//128*1024; - int maxShapeCapacityInBytes=10*1024*1024; - - //maxObjectCapacity = b3Max(maxObjectCapacity,ci.arraySizeX*ci.arraySizeX*ci.arraySizeX+10); - - - CpuDemo::ConstructionInfo ci; - ci.m_instancingRenderer = new GLInstancingRenderer(maxObjectCapacity,maxShapeCapacityInBytes); - ci.m_window = window; - ci.m_gui = gui; - ci.m_instancingRenderer->init(); - ci.m_instancingRenderer->resize(g_OpenGLWidth,g_OpenGLHeight); - ci.m_instancingRenderer->InitShaders(); - ci.m_primRenderer = &prim; - - -// render.init(); - - - { - demo->initPhysics(ci); - } - - - - - - - - FILE* csvFile = 0; - FILE* detailsFile = 0; - - if (benchmark) - { - gPause = false; - char prefixFileName[1024]; - char csvFileName[1024]; - char detailsFileName[1024]; - - - - //todo: move this time stuff into the Platform/Window class -#ifdef _WIN32 - SYSTEMTIME time; - GetLocalTime(&time); - char buf[1024]; - DWORD dwCompNameLen = 1024; - if (0 != GetComputerName(buf, &dwCompNameLen)) - { - printf("%s", buf); - } else - { - printf("unknown", buf); - } - - sprintf(prefixFileName,"%s_%s_%s_date_%d-%d-%d_time_%d-%d-%d","CPU",buf,demoNames[selectedDemo],time.wDay,time.wMonth,time.wYear,time.wHour,time.wMinute,time.wSecond); - -#else - timeval now; - gettimeofday(&now,0); - - struct tm* ptm; - ptm = localtime (&now.tv_sec); - char buf[1024]; -#ifdef __APPLE__ - sprintf(buf,"MacOSX"); -#else - sprintf(buf,"Unix"); -#endif - sprintf(prefixFileName,"%s_%s_%s_%d_%d_%d_date_%d-%d-%d_time_%d-%d-%d",info.m_deviceName,buf,demoNames[selectedDemo],ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ, - ptm->tm_mday, - ptm->tm_mon+1, - ptm->tm_year+1900, - ptm->tm_hour, - ptm->tm_min, - ptm->tm_sec); - -#endif - - sprintf(csvFileName,"%s.csv",prefixFileName); - sprintf(detailsFileName,"%s.txt",prefixFileName); - printf("Open csv file %s and details file %s\n", csvFileName,detailsFileName); - - //GetSystemTime(&time2); - - csvFile=fopen(csvFileName,"w"); - detailsFile = fopen(detailsFileName,"w"); - if (detailsFile) - defaultOutput = detailsFile; - - //if (f) - // fprintf(f,"%s (%dx%dx%d=%d),\n", g_deviceName,ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ,ci.arraySizeX*ci.arraySizeY*ci.arraySizeZ); - } - - - - - do - { - - - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - - if (exportFrame || exportMovie) - { - - if (!renderTexture) - { - renderTexture = new GLRenderToTexture(); - GLuint renderTextureId; - glGenTextures(1, &renderTextureId); - - // "Bind" the newly created texture : all future texture functions will modify this texture - glBindTexture(GL_TEXTURE_2D, renderTextureId); - - // Give an empty image to OpenGL ( the last "0" ) - //glTexImage2D(GL_TEXTURE_2D, 0,GL_RGB, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_UNSIGNED_BYTE, 0); - //glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA32F, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_FLOAT, 0); - glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA32F, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_FLOAT, 0); - - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); - //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - - renderTexture->init(g_OpenGLWidth,g_OpenGLHeight,renderTextureId, RENDERTEXTURE_COLOR); - } - - bool result = renderTexture->enable(); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - b3ProfileManager::Reset(); - b3ProfileManager::Increment_Frame_Counter(); - -// render.reshape(g_OpenGLWidth,g_OpenGLHeight); - ci.m_instancingRenderer->resize(g_OpenGLWidth,g_OpenGLHeight); - prim.setScreenSize(g_OpenGLWidth,g_OpenGLHeight); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - window->startRendering(); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT);//|GL_STENCIL_BUFFER_BIT); - glEnable(GL_DEPTH_TEST); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (!gPause) - { - B3_PROFILE("clientMoveAndDisplay"); - - demo->clientMoveAndDisplay(); - } - else - { - - } - - { - B3_PROFILE("renderScene"); - demo->renderScene(); - } - err = glGetError(); - assert(err==GL_NO_ERROR); - - - /*if (demo->getDynamicsWorld() && demo->getDynamicsWorld()->getNumCollisionObjects()) - { - B3_PROFILE("renderPhysicsWorld"); - b3AlignedObjectArray arr = demo->getDynamicsWorld()->getCollisionObjectArray(); - b3CollisionObject** colObjArray = &arr[0]; - - render.renderPhysicsWorld(demo->getDynamicsWorld()->getNumCollisionObjects(),colObjArray, syncOnly); - syncOnly = true; - - } - */ - - - if (exportFrame || exportMovie) - { - - char fileName[1024]; - sprintf(fileName,"screenShot%d.png",frameIndex++); - writeTextureToPng(g_OpenGLWidth,g_OpenGLHeight,fileName); - exportFrame = false; - renderTexture->disable(); - } - - - { - B3_PROFILE("gui->draw"); - if (gui && gDrawGui) - gui->draw(g_OpenGLWidth,g_OpenGLHeight); - } - err = glGetError(); - assert(err==GL_NO_ERROR); - - - { - B3_PROFILE("window->endRendering"); - window->endRendering(); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - { - B3_PROFILE("glFinish"); - } - - - - if (dump_timings) - { - b3ProfileManager::dumpAll(stdout); - } - - if (csvFile) - { - static int frameCount=0; - - if (frameCount>0) - { - DumpSimulationTime(csvFile); - if (detailsFile) - { - fprintf(detailsFile,"\n==================================\nFrame %d:\n", frameCount); - b3ProfileManager::dumpAll(detailsFile); - } - } - - if (frameCount>=maxFrameCount) - window->setRequestExit(); - frameCount++; - } - - - if (gStep) - gPause=true; - - } while (!window->requestedExit() && !gReset); - - - demo->exitPhysics(); - b3ProfileManager::CleanupMemory(); - delete ci.m_instancingRenderer; - - delete demo; - sDemo = 0; - - if (detailsFile) - { - fclose(detailsFile); - detailsFile=0; - } - if (csvFile) - { - fclose(csvFile); - csvFile=0; - } - } - - - - } while (gReset); - - - if (gui) - gui->setComboBoxCallback(0); - - { - - - - delete gui; - gui=0; - - exitFont(); - - - window->closeWindow(); - delete window; - window = 0; - - } - - return 0; -} diff --git a/Demos3/CpuDemos/premake4.lua b/Demos3/CpuDemos/premake4.lua deleted file mode 100644 index 1c26293a6..000000000 --- a/Demos3/CpuDemos/premake4.lua +++ /dev/null @@ -1,81 +0,0 @@ - - -project ("App_Bullet3_CPU_Demos") - -language "C++" - -kind "ConsoleApp" -targetdir "../../bin" - - -initOpenGL() -initGlew() - -includedirs { - "..", - "../../src", - "../../btgui" -} - -links { - "gwen", - "Bullet2FileLoader", - "Bullet3Dynamics", - "Bullet3Collision", - "Bullet3Geometry", - "Bullet3Common", -} - -files { - "**.cpp", - "**.h", - - "../Wavefront/tiny_obj_loader.cpp", - "../Wavefront/tiny_obj_loader.h", - - "../../btgui/OpenGLWindow/GLInstancingRenderer.cpp", - "../../btgui/OpenGLWindow/GLInstancingRenderer.h", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.cpp", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.h", - "../../btgui/OpenGLWindow/LoadShader.cpp", - "../../btgui/OpenGLWindow/LoadShader.h", - "../../btgui/OpenGLWindow/TwFonts.cpp", - "../../btgui/OpenGLWindow/TwFonts.h", - "../../btgui/OpenGLWindow/GLRenderToTexture.cpp", - "../../btgui/OpenGLWindow/GLRenderToTexture.h", - "../../btgui/OpenGLWindow/fontstash.cpp", - "../../btgui/OpenGLWindow/fontstash.h", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.h", - "../../btgui/OpenGLWindow/OpenSans.cpp", - "../../btgui/stb_image/stb_image.cpp", - "../../btgui/stb_image/stb_image.h", - "../../btgui/Bullet3AppSupport/b3Quickprof.cpp", - "../../btgui/Bullet3AppSupport/b3Quickprof.h", - "../../btgui/Bullet3AppSupport/b3Clock.cpp", - "../../btgui/Bullet3AppSupport/b3Clock.h", -} - -if os.is("Windows") then - files{ - "../../btgui/OpenGLWindow/Win32OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/Win32OpenGLWindow.h", - "../../btgui/OpenGLWindow/Win32Window.cpp", - "../../btgui/OpenGLWindow/Win32Window.h", - } -end -if os.is("Linux") then - links{"X11"} - files { - "../../btgui/OpenGLWindow/X11OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/X11OpenGLWindows.h" - } -end -if os.is("MacOSX") then - links {"Cocoa.framework"} - files { - "../../btgui/OpenGLWindow/MacOpenGLWindow.h", - "../../btgui/OpenGLWindow/MacOpenGLWindow.mm", - } -end - diff --git a/Demos3/CpuDemos/rendering/RenderDemo.cpp b/Demos3/CpuDemos/rendering/RenderDemo.cpp deleted file mode 100644 index e28fa93b6..000000000 --- a/Demos3/CpuDemos/rendering/RenderDemo.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "RenderDemo.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/ShapeData.h" -#include "Bullet3Common/b3Quaternion.h" - - -static b3Vector4 colors[4] = -{ - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), -}; - - -void RenderDemo::initPhysics(const ConstructionInfo& ci) -{ - m_instancingRenderer = ci.m_instancingRenderer; - m_instancingRenderer ->setCameraDistance(10); - float target[4]={0,0,0,0}; - m_instancingRenderer->setCameraTargetPosition(target); - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - b3Vector3 position = b3MakeVector3(0,0,0);//((j+1)&1)+i*2.2,1+j*2.,((j+1)&1)+k*2.2); - b3Quaternion orn(0,0,0,1); - - static int curColor=0; - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - - ci.m_instancingRenderer->writeTransforms(); - - -} - -void RenderDemo::exitPhysics() -{ -} - -void RenderDemo::renderScene() -{ - m_instancingRenderer->renderScene(); -} - -void RenderDemo::clientMoveAndDisplay() -{ -} diff --git a/Demos3/CpuDemos/rendering/RenderDemo.h b/Demos3/CpuDemos/rendering/RenderDemo.h deleted file mode 100644 index 066ddfde5..000000000 --- a/Demos3/CpuDemos/rendering/RenderDemo.h +++ /dev/null @@ -1,36 +0,0 @@ - -#include "../CpuDemo.h" - -struct RenderDemo : public CpuDemo -{ - GLInstancingRenderer* m_instancingRenderer; - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void exitPhysics(); - - virtual void renderScene(); - - virtual void clientMoveAndDisplay(); - virtual const char* getName() { - return "RenderDemo"; - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - - static CpuDemo* MyCreateFunc() - { - CpuDemo* demo = new RenderDemo; - return demo; - } -}; \ No newline at end of file diff --git a/Demos3/CpuDemos/rigidbody/RigidBodyDemo.cpp b/Demos3/CpuDemos/rigidbody/RigidBodyDemo.cpp deleted file mode 100644 index d158d325d..000000000 --- a/Demos3/CpuDemos/rigidbody/RigidBodyDemo.cpp +++ /dev/null @@ -1,150 +0,0 @@ -#include "RigidBodyDemo.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/ShapeData.h" -#include "Bullet3Common/b3Quaternion.h" - -#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3CpuNarrowPhase.h" -#include "Bullet3Dynamics/b3CpuRigidBodyPipeline.h" -#include "Bullet3Dynamics/shared/b3IntegrateTransforms.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" - - -static b3Vector4 colors[4] = -{ - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), -}; - - - -void RigidBodyDemo::initPhysics(const ConstructionInfo& ci) -{ - m_instancingRenderer = ci.m_instancingRenderer; - - int x_dim=1; - int y_dim=2; - int z_dim=1; - - int aabbCapacity = x_dim*y_dim*z_dim+10; - - b3Config config; - - m_bp = new b3DynamicBvhBroadphase(aabbCapacity); - m_np = new b3CpuNarrowPhase(config); - m_rb = new b3CpuRigidBodyPipeline(m_np,m_bp, config); - - - - - - m_instancingRenderer ->setCameraDistance(100); - float target[4]={0,0,0,0}; - m_instancingRenderer->setCameraTargetPosition(target); - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - - - - - - - { - static int curColor=0; - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - - b3Vector3 position = b3MakeVector3(0,0,0);//((j+1)&1)+i*2.2,1+j*2.,((j+1)&1)+k*2.2); - b3Quaternion orn(0,0,0,1); - b3Vector4 scaling=b3MakeVector4(100,1,100,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - float mass=0.f; - int collidableIndex = m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int bodyIndex = m_rb->getNumBodies(); - - - int userData=-1; - int rbid = m_rb->registerPhysicsInstance(mass, position, orn, collidableIndex, userData); - } - - ci.m_instancingRenderer->writeTransforms(); - - { - - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - int collidableIndex = m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - for (int x=0;xregisterGraphicsInstance(shapeId,position,orn,color,scaling); - float mass=1.f; - - int userData=-1; - int bodyIndex = m_rb->getNumBodies(); - int rbid = m_rb->registerPhysicsInstance(mass, position, orn, collidableIndex, userData); - - } - } - } - } - - - printf("num objects = %d\n",m_rb->getNumBodies()); - - -} - -void RigidBodyDemo::exitPhysics() -{ - delete m_rb; - m_rb=0; - delete m_np; - m_np=0; - delete m_bp; - m_bp=0; -} - -void RigidBodyDemo::renderScene() -{ - { - B3_PROFILE("writeSingleInstanceTransformToCPU"); - const b3RigidBodyData* bodies = m_rb->getBodyBuffer(); - //sync transforms - int numBodies = m_rb->getNumBodies(); - for (int i=0;iwriteSingleInstanceTransformToCPU(&bodies[i].m_pos.x,bodies[i].m_quat,i); - } - } - { - B3_PROFILE("writeTransforms"); - m_instancingRenderer->writeTransforms(); - } - { - B3_PROFILE("renderScene"); - m_instancingRenderer->renderScene(); - } -} - -void RigidBodyDemo::clientMoveAndDisplay() -{ - m_rb->stepSimulation(1.f/60.f); -} diff --git a/Demos3/CpuDemos/rigidbody/RigidBodyDemo.h b/Demos3/CpuDemos/rigidbody/RigidBodyDemo.h deleted file mode 100644 index 7b138c08d..000000000 --- a/Demos3/CpuDemos/rigidbody/RigidBodyDemo.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef B3_RIGID_BODY_DEMO_H -#define B3_RIGID_BODY_DEMO_H - -#include "../CpuDemo.h" - -struct RigidBodyDemo : public CpuDemo -{ - - struct b3DynamicBvhBroadphase* m_bp; - class b3CpuNarrowPhase* m_np; - - struct b3CpuRigidBodyPipeline* m_rb; - - GLInstancingRenderer* m_instancingRenderer; - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void exitPhysics(); - - virtual void renderScene(); - - virtual void clientMoveAndDisplay(); - virtual const char* getName() { - return "RigidBodyDemo"; - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - - static CpuDemo* MyCreateFunc() - { - CpuDemo* demo = new RigidBodyDemo; - return demo; - } -}; -#endif //B3_RIGID_BODY_DEMO_H - diff --git a/Demos3/FiniteElementMethod/FiniteElementDemo.cpp b/Demos3/FiniteElementMethod/FiniteElementDemo.cpp deleted file mode 100644 index 05360ed86..000000000 --- a/Demos3/FiniteElementMethod/FiniteElementDemo.cpp +++ /dev/null @@ -1,381 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2011-2014 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///the Finite Element Method is extracted from the OpenTissue library, -///under the zlib license: http://www.opentissue.org/mediawiki/index.php/Main_Page - - -#include "FiniteElementDemo.h" -#include "OpenGLWindow/CommonRenderInterface.h" -#include "LinearMath/btQuaternion.h" -//#include "OpenGLWindow/ShapeData.h" - -#include "MyFemMesh.h" -#include -#include -#include -#include "LinearMath/btAlignedObjectArray.h" -#include "Bullet3AppSupport/CommonParameterInterface.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" - -//typedef OpenTissue::math::BasicMathTypes math_types; -typedef OpenTissue::math::BasicMathTypes math_types; -typedef OpenTissue::fem::Mesh mesh_type; -typedef math_types::vector3_type vector3_type; -typedef math_types::real_type real_type; - - -static int fixedNodes = 1; - -struct FiniteElementDemoInternalData -{ - mesh_type m_mesh1; - - bool m_stiffness_warp_on; ///< Boolean value indicating whether stiffness warping is turned on or off. - - bool m_collideGroundPlane; - - bool m_fixNodes; - - real_type m_gravity; - - btScalar m_young;// = 500000; - btScalar m_poisson;// = 0.33; - real_type m_density;// = 1000; - - //--- infinite m_c_yield plasticity settings means that plasticity is turned off - real_type m_c_yield;// = .04; //--- should be less than maximum expected elastic strain in order to see effect (works as a minimum). - real_type m_c_creep;// = .20; //--- controls how fast the plasticity effect occurs (it is a rate-like control). - real_type m_c_max;// = 0.2; //--- This is maximum allowed plasticity strain (works as a maximum). - double m_damp; - int m_tetrahedralMeshRenderIndex; - - FiniteElementDemoInternalData() - { - m_stiffness_warp_on= true; - m_collideGroundPlane = true; - m_fixNodes = fixedNodes==1; - fixedNodes=1-fixedNodes; - m_gravity = 9.81; - m_young = 500000;//47863;//100000; - m_poisson = 0.33; - - m_density = 1054.00;//1000; - //--- infinite m_c_yield plasticity settings means that plasticity is turned off - m_c_yield = 0;//0.03;//.04; //--- should be less than maximum expected elastic strain in order to see effect (works as a minimum). - m_c_creep = 0;//0.20;//.20; //--- controls how fast the plasticity effect occurs (it is a rate-like control). - m_c_max = 1e30f;//0.2; //--- This is maximum allowed plasticity strain (works as a maximum). - m_damp=0.2f; - m_tetrahedralMeshRenderIndex=-1; - } - -}; - -FiniteElementDemo::FiniteElementDemo(CommonGraphicsApp* app) -:m_app(app), -m_x(0), -m_y(0), -m_z(0) -{ - m_app->setUpAxis(2); - m_data = new FiniteElementDemoInternalData; - - -} -FiniteElementDemo::~FiniteElementDemo() -{ - delete m_data; - m_app->m_renderer->enableBlend(false); - m_app->m_renderer->removeAllInstances(); -} - - - -void FiniteElementDemo::initPhysics() -{ - { - - OpenTissue::t4mesh::generate_blocks(10,3,3,0.1,0.1,0.1,m_data->m_mesh1); - - for (int n=0;nm_mesh1.m_nodes.size();n++) - { - m_data->m_mesh1.m_nodes[n].m_coord(m_app->getUpAxis())+=.5f; - m_data->m_mesh1.m_nodes[n].m_model_coord = m_data->m_mesh1.m_nodes[n].m_coord; - - } - OpenTissue::fem::init(m_data->m_mesh1,double(m_data->m_young),double(m_data->m_poisson),m_data->m_density,m_data->m_c_yield,m_data->m_c_creep,m_data->m_c_max); - - - - } - - { - - SliderParams slider("Young",&m_data->m_young); -// slider.m_showValues = false; - slider.m_minVal=50000; - slider.m_maxVal=1000000; - m_app->m_parameterInterface->registerSliderFloatParameter(slider); - } - - { - - SliderParams slider("Poisson",&m_data->m_poisson); - // slider.m_showValues = false; - slider.m_minVal=0.01; - slider.m_maxVal=0.49; - m_app->m_parameterInterface->registerSliderFloatParameter(slider); - } - - { - - - - - int strideInBytes = 9*sizeof(float); - int numVertices =m_data->m_mesh1.m_nodes.size(); - - btAlignedObjectArray verts; - verts.resize(numVertices); - for (int n=0;nm_mesh1.m_nodes.size();n++) - { - verts[n].xyzw[0] = m_data->m_mesh1.m_nodes[n].m_coord(0); - verts[n].xyzw[1] = m_data->m_mesh1.m_nodes[n].m_coord(1); - verts[n].xyzw[2] = m_data->m_mesh1.m_nodes[n].m_coord(2); - verts[n].xyzw[3] = 1; - verts[n].normal[0] = 0; - verts[n].normal[1] = 1; - verts[n].normal[2] = 0; - verts[n].uv[0] = 0.5; - verts[n].uv[1] = 0.4; - - } - btAlignedObjectArray indices; - for (int t=0;tm_mesh1.m_tetrahedra.size();t++) - { - int index0 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[0]; - int index1 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[1]; - int index2 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[2]; - int index3 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[3]; - indices.push_back(index0); indices.push_back(index1); indices.push_back(index2); - indices.push_back(index2); indices.push_back(index1); indices.push_back(index3); - indices.push_back(index1); indices.push_back(index0); indices.push_back(index3); - indices.push_back(index0); indices.push_back(index2); indices.push_back(index3); - - } - - m_data->m_tetrahedralMeshRenderIndex = m_app->m_renderer->registerShape(&verts[0].xyzw[0],verts.size(),&indices[0],indices.size()); - - float pos[4] = {0,0,0,1}; - float orn[4] = {0,0,0,1}; - float color[4] = {0,1,1,1}; - float scaling[4] = {1,1,1,1}; - m_app->m_renderer->registerGraphicsInstance(m_data->m_tetrahedralMeshRenderIndex,pos,orn,color,scaling); - } - - { - //ground shape - btVector3 cubeHalfExtents(10,10,10); - cubeHalfExtents[m_app->getUpAxis()] = 0.01; - int cubeIn = m_app->registerCubeShape(cubeHalfExtents[0],cubeHalfExtents[1],cubeHalfExtents[2]); - - float pos[4] = {0,0,0,1}; - pos[m_app->getUpAxis()]=-0.02; - float orn[4] = {0,0,0,1}; - float color[4] = {0,1,1,1}; - float scaling[4] = {1,1,1,1}; - m_app->m_renderer->registerGraphicsInstance(cubeIn,pos,orn,color,scaling); - - - } - m_app->m_renderer->writeTransforms(); -} -void FiniteElementDemo::exitPhysics() -{ - -} -void FiniteElementDemo::stepSimulation(float deltaTime) -{ - m_x+=0.01f; - m_y+=0.01f; - m_z+=0.01f; - double dt = 1./60.;//double (deltaTime); - double poisson =m_data->m_poisson; - OpenTissue::fem::init(m_data->m_mesh1,double(m_data->m_young),poisson,m_data->m_density,m_data->m_c_yield,m_data->m_c_creep,m_data->m_c_max); - - - for (int n=0;nm_mesh1.m_nodes.size();n++) - { - - - if (m_data->m_fixNodes) - { - if (m_data->m_mesh1.m_nodes[n].m_model_coord(0) < 0.01) - { - m_data->m_mesh1.m_nodes[n].m_fixed = true; - } - } else - { - if (m_data->m_mesh1.m_nodes[n].m_model_coord(0) < 0.01) - { - m_data->m_mesh1.m_nodes[n].m_fixed = false; - } - } - if (m_data->m_collideGroundPlane && m_data->m_mesh1.m_nodes[n].m_coord(m_app->getUpAxis())<0.f) - { - float depth = -m_data->m_mesh1.m_nodes[n].m_coord(m_app->getUpAxis()); - if (depth>0.1) - depth=0.1; - - m_data->m_mesh1.m_nodes[n].m_f_external(m_app->getUpAxis()) = depth*1000; - - if (m_data->m_mesh1.m_nodes[n].m_velocity(m_app->getUpAxis()) < 0.f) - { - m_data->m_mesh1.m_nodes[n].m_velocity(m_app->getUpAxis())=0.f; - } - - int frictionAxisA=0; - int frictionAxisB=2; - if (m_app->getUpAxis()==1) - { - frictionAxisA=0; - frictionAxisB=2; - } else - { - frictionAxisA=0; - frictionAxisB=1; - } - m_data->m_mesh1.m_nodes[n].m_velocity(frictionAxisA)=0.f; - m_data->m_mesh1.m_nodes[n].m_velocity(frictionAxisB)=0.f; - - } else - { - vector3_type gravity = vector3_type(0.0, 0.0 , 0.0); - gravity(m_app->getUpAxis()) = -(m_data->m_mesh1.m_nodes[n].m_mass * m_data->m_gravity); - m_data->m_mesh1.m_nodes[n].m_f_external =gravity; - } - //m_data->m_mesh1.m_nodes[n].m_velocity.clear(); - } - - OpenTissue::fem::simulate(m_data->m_mesh1,dt,m_data->m_stiffness_warp_on,m_data->m_damp);//,0.1,20,20);//,1.0,20,20); - -} -void FiniteElementDemo::renderScene() -{ - { - int strideInBytes = 9*sizeof(float); - int numVertices =m_data->m_mesh1.m_nodes.size(); - - btAlignedObjectArray verts; - verts.resize(numVertices); - for (int n=0;nm_mesh1.m_nodes.size();n++) - { - verts[n].xyzw[0] = m_data->m_mesh1.m_nodes[n].m_coord(0); - verts[n].xyzw[1] = m_data->m_mesh1.m_nodes[n].m_coord(1); - verts[n].xyzw[2] = m_data->m_mesh1.m_nodes[n].m_coord(2); - verts[n].xyzw[3] = 1; - verts[n].normal[0] = 0; - verts[n].normal[1] = 1; - verts[n].normal[2] = 0; - verts[n].uv[0] = 0.5; - verts[n].uv[1] = 0.4; - - } - btAlignedObjectArray indices; - for (int t=0;tm_mesh1.m_tetrahedra.size();t++) - { - int index0 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[0]; - int index1 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[1]; - int index2 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[2]; - int index3 =m_data->m_mesh1.m_tetrahedra[t].m_nodes[3]; - indices.push_back(index0); indices.push_back(index1); indices.push_back(index2); - indices.push_back(index2); indices.push_back(index1); indices.push_back(index3); - indices.push_back(index1); indices.push_back(index0); indices.push_back(index3); - indices.push_back(index0); indices.push_back(index2); indices.push_back(index3); - - } - - m_app->m_renderer->updateShape(m_data->m_tetrahedralMeshRenderIndex,&verts[0].xyzw[0]); - - } - m_app->m_renderer->renderScene(); -} - -void FiniteElementDemo::physicsDebugDraw(int debugDrawFlags) -{ - { - btAlignedObjectArray m_linePoints; - btAlignedObjectArray m_lineIndices; - - //geometry::Tetrahedron tet; - for (int t=0;tm_mesh1.m_tetrahedra.size();t++) - { - vector3_type v0d = m_data->m_mesh1.m_nodes[m_data->m_mesh1.m_tetrahedra[t].m_nodes[0]].m_coord; - vector3_type v1d = m_data->m_mesh1.m_nodes[m_data->m_mesh1.m_tetrahedra[t].m_nodes[1]].m_coord; - vector3_type v2d = m_data->m_mesh1.m_nodes[m_data->m_mesh1.m_tetrahedra[t].m_nodes[2]].m_coord; - vector3_type v3d = m_data->m_mesh1.m_nodes[m_data->m_mesh1.m_tetrahedra[t].m_nodes[3]].m_coord; - btVector3 v0(v0d(0),v0d(1),v0d(2)); - btVector3 v1(v1d(0),v1d(1),v1d(2)); - btVector3 v2(v2d(0),v2d(1),v2d(2)); - btVector3 v3(v3d(0),v3d(1),v3d(2)); - btVector3FloatData vf0,vf1,vf2,vf3; - v0.serializeFloat(vf0); - v1.serializeFloat(vf1); - v2.serializeFloat(vf2); - v3.serializeFloat(vf3); - unsigned int baseIndex = m_linePoints.size(); - m_linePoints.push_back(vf0); - m_linePoints.push_back(vf1); - m_linePoints.push_back(vf2); - m_linePoints.push_back(vf3); - m_lineIndices.push_back(baseIndex+0); - m_lineIndices.push_back(baseIndex+1); - m_lineIndices.push_back(baseIndex+0); - m_lineIndices.push_back(baseIndex+2); - m_lineIndices.push_back(baseIndex+0); - m_lineIndices.push_back(baseIndex+3); - - m_lineIndices.push_back(baseIndex+1); - m_lineIndices.push_back(baseIndex+2); - m_lineIndices.push_back(baseIndex+2); - m_lineIndices.push_back(baseIndex+3); - m_lineIndices.push_back(baseIndex+1); - m_lineIndices.push_back(baseIndex+3); - } - - float debugColor[4]={0,0,0.4,1}; - m_app->m_renderer->drawLines(&m_linePoints[0].m_floats[0],debugColor, - m_linePoints.size(),sizeof(btVector3FloatData), - &m_lineIndices[0], - m_lineIndices.size(), - 1); - - - }; - -} -bool FiniteElementDemo::mouseMoveCallback(float x,float y) -{ - return false; -} -bool FiniteElementDemo::mouseButtonCallback(int button, int state, float x, float y) -{ - return false; -} -bool FiniteElementDemo::keyboardCallback(int key, int state) -{ - return false; -} - diff --git a/Demos3/FiniteElementMethod/FiniteElementDemo.h b/Demos3/FiniteElementMethod/FiniteElementDemo.h deleted file mode 100644 index 59ab3fb19..000000000 --- a/Demos3/FiniteElementMethod/FiniteElementDemo.h +++ /dev/null @@ -1,59 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2011-2014 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///the Finite Element Method is extracted from the OpenTissue library, -///under the zlib license: http://www.opentissue.org/mediawiki/index.php/Main_Page - - -#ifndef FINITE_ELEMENT_DEMO_H -#define FINITE_ELEMENT_DEMO_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" - - -///quick demo showing the right-handed coordinate system and positive rotations around each axis -class FiniteElementDemo : public BulletDemoInterface -{ - CommonGraphicsApp* m_app; - float m_x; - float m_y; - float m_z; - - struct FiniteElementDemoInternalData* m_data; -public: - - FiniteElementDemo(CommonGraphicsApp* app); - - virtual ~FiniteElementDemo(); - - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new FiniteElementDemo(app); - } - - virtual void initPhysics(); - virtual void exitPhysics(); - virtual void stepSimulation(float deltaTime); - virtual void renderScene(); - - - virtual void physicsDebugDraw(int debugDrawFlags); - virtual bool mouseMoveCallback(float x,float y); - virtual bool mouseButtonCallback(int button, int state, float x, float y); - virtual bool keyboardCallback(int key, int state); -}; -#endif //FINITE_ELEMENT_DEMO_H - diff --git a/Demos3/FiniteElementMethod/MyFemMesh.h b/Demos3/FiniteElementMethod/MyFemMesh.h deleted file mode 100644 index ee05d6398..000000000 --- a/Demos3/FiniteElementMethod/MyFemMesh.h +++ /dev/null @@ -1,214 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2011-2014 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -///the Finite Element Method is extracted from the OpenTissue library, -///under the zlib license: http://www.opentissue.org/mediawiki/index.php/Main_Page - - -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -//#include -#include -#include -#include - -namespace OpenTissue -{ - namespace fem - { - - template - class Mesh -/* : public OpenTissue::t4mesh::T4Mesh< - math_types - , OpenTissue::fem::detail::NodeTraits - , OpenTissue::fem::detail::TetrahedronTraits - > - */ - { - public: - - - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - class MyNodeType - { - public: - - MyNodeType() - :m_fixed(false) - { - - } - - typedef typename std::map matrix_container; - - typedef typename matrix_container::iterator matrix_iterator; - - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - - vector3_type m_coord; ///< Default Coordinate of tetramesh node. - vector3_type m_model_coord; - vector3_type m_f_external; - vector3_type m_velocity; - real_type m_mass; - bool m_fixed; - // Needed by the ConjugateGradient method - vector3_type m_update; - vector3_type m_prev; - vector3_type m_residual; - matrix_container m_K_row; ///< Currently stored in a map container, key correspond to column and mapped value to 3-by-3 sub block. - matrix_container m_A_row; - - vector3_type m_f0; - vector3_type m_b; - matrix_iterator Kbegin() { return m_K_row.begin(); } - matrix_iterator Kend() { return m_K_row.end(); } - matrix_iterator Abegin() { return m_A_row.begin(); } - matrix_iterator Aend() { return m_A_row.end(); } - - matrix3x3_type & K(int const & column_idx) { return m_K_row[column_idx]; } - matrix3x3_type & A(int const & column_idx) { return m_A_row[column_idx]; } - - int m_idx; - int idx() const { - return m_idx; - } - - - - }; - - class MyTetrahedronType - { - public: - - typedef typename math_types::matrix3x3_type matrix3x3_type; - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - - real_type m_young; - real_type m_poisson; - real_type m_density; - int m_nodes[4]; - - - Mesh* m_owner; - - matrix3x3_type m_Ke[4][4]; ///< Stiffness element matrix - matrix3x3_type m_Re; ///< Rotational warp of tetrahedron. - real_type m_V; ///< Volume of tetrahedron - - vector3_type m_e10; ///< edge from p0 to p1 - vector3_type m_e20; ///< edge from p0 to p2 - vector3_type m_e30; ///< edge from p0 to p3 - - //--- Stuff used exclusive by plastic effects - - vector3_type m_B[4]; ///< placeholders for Jacobian of shapefunctions: B = SN. - vector3_type m_D; ///< Elasticity Matrix in vector from - real_type m_plastic[6]; ///< Plastic strain tensor. - real_type m_yield; - real_type m_creep; - real_type m_max; - - MyNodeType* node(int i) - { - return &m_owner->m_nodes[m_nodes[i]]; - } - - MyNodeType* i() - { - return &m_owner->m_nodes[m_nodes[0]]; - } - MyNodeType* j() - { - return &m_owner->m_nodes[m_nodes[1]]; - } - - MyNodeType* k() - { - return &m_owner->m_nodes[m_nodes[2]]; - } - MyNodeType* m() - { - return &m_owner->m_nodes[m_nodes[3]]; - } - - MyTetrahedronType(int bla, int bla2) - { - - } - - }; - - - typedef std::vector< MyNodeType> node_container; - typedef std::vector< MyTetrahedronType > tetrahedra_container; - typedef MyNodeType node_type; - - public: - - node_container m_nodes; ///< Internal node storage. - - void insert(int a,int b,int c,int d) - { - MyTetrahedronType t(1,1); - t.m_owner = this; - t.m_nodes[0] = a; - t.m_nodes[1] = b; - t.m_nodes[2] = c; - t.m_nodes[3] = d; - m_tetrahedra.push_back(t); - - - } - void insert() - { - MyNodeType n; - n.m_idx = m_nodes.size(); - m_nodes.push_back(n); - - } - void clear() - { - m_nodes.clear(); - m_tetrahedra.clear(); - - } - - tetrahedra_container m_tetrahedra; ///< Internal tetrahedra storage. - - - }; - - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/collision/collision_geometry_interface.h b/Demos3/FiniteElementMethod/OpenTissue/collision/collision_geometry_interface.h deleted file mode 100644 index 23bca36d0..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/collision/collision_geometry_interface.h +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef OPENTISSUE_COLLISION_COLLISION_GEOMETRY_INTERFACE_H -#define OPENTISSUE_COLLISION_COLLISION_GEOMETRY_INTERFACE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace collision - { - - - /** - * Collision Geometry Interface. - * The purpose of this class is to create a common interface for - * collision geometries. - * - * The interface should make it easier to integrate geometry types into - * a collision detection engine. In particular it should help make multiple - * dispatching easier (the class_id interface) and it should support basic - * functionality for computing bounding boxes (compute_collision_aabb method) - * - * - */ - template< typename math_types > - class GeometryInterface - : virtual public OpenTissue::utility::ClassIDInterface - { - public: - - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - public: - - /** - * Compute Bounding Box. - * This method computes an axis aligned bounding - * box (AABB) that encloses the geometry. - * - * @param r The position of the model frame (i.e the coordinate frame the geometry lives in). - * @param R The orientation of the model frame (i.e the coordinate frame the geometry lives in). - * @param min_coord Upon return holds the minimum corner of the box. - * @param max_coord Upon return holds the maximum corner of the box. - * - */ - virtual void compute_collision_aabb( - vector3_type const & r - , matrix3x3_type const & R - , vector3_type & min_coord - , vector3_type & max_coord - ) const = 0; - - }; - - } // namespace collision - -} // namespace OpenTissue - -// OPENTISSUE_COLLISION_COLLISION_GEOMETRY_INTERFACE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/configuration.h b/Demos3/FiniteElementMethod/OpenTissue/configuration.h deleted file mode 100644 index 39ed8cfd5..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/configuration.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef OPENTISSUE_CONFIGURATIOM_H -#define OPENTISSUE_CONFIGURATIOM_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#if (_MSC_VER >= 1200) -# pragma once -# pragma warning(default: 56 61 62 191 263 264 265 287 289 296 347 529 686) -# pragma warning(disable: 503) -#endif - -#ifdef WIN32 -# define WIN32_LEAN_AND_MEAN -# define _USE_MATH_DEFINES -# define NOMINMAX -# include -# undef WIN32_LEAN_AND_MEAN -# undef NOMINMAX -#endif - - -/** - * OpenTissue Version - */ -#define OPENTISSUE_VERSION 0.994 -#define OPENTISSUE_VERSION_MAJOR 0 -#define OPENTISSUE_VERSION_MINOR 994 - -#include - -/** - * OpenTissue Path. - * This is the path where OpenTissue was copied onto ones - * system. It can be used to locate shader programs or data resources. - */ -std::string const opentissue_path = "F:/develop/opentissue/sandbox/"; - -/** - * OpenTissue Version String. - * This string value can be used by end users for compatibility testing. - */ -std::string const opentissue_version = "0.994"; - - -//OPENTISSUE_CONFIGURATIOM_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_aof.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_aof.h deleted file mode 100644 index e8bd0fc97..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_aof.h +++ /dev/null @@ -1,366 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AOF_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AOF_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - -#include -#include -#include -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - namespace detail - { - - /** - * Compute Average Outward Flux at designated nodal position of a signed distance grid. - * - * - * @param phi The signed distance grid. - * @param i The i'th index of the node. - * @param j The j'th index of the node. - * @param k The k'th index of the node. - * @param scale Default value is 0.5, this determines the scale on which the flux is computed. 0.5 correponds to ``voxel-based''. - * - * @return The flux value. - */ - template - inline typename grid_type::value_type - compute_aof_value( - grid_type const & phi - , size_t const & i - , size_t const & j - , size_t const & k - , double scale = 0.5 - ) - { - using std::min; - using std::sqrt; - - typedef typename grid_type::iterator iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::value_type value_type; - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - - real_type dx = phi.dx()*scale; - real_type dy = phi.dy()*scale; - real_type dz = phi.dz()*scale; - - vector3_type n[26]; - vector3_type dp[26]; - - dp[0] = vector3_type( dx, 0, 0); - dp[1] = vector3_type(-dx, 0, 0); - dp[2] = vector3_type( 0, dy, 0); - dp[3] = vector3_type( 0,-dy, 0); - dp[4] = vector3_type( 0, 0, dz); - dp[5] = vector3_type( 0, 0,-dz); - dp[6] = vector3_type( dx, dy, dz); - dp[7] = vector3_type( dx, dy,-dz); - dp[8] = vector3_type( dx,-dy, dz); - dp[9] = vector3_type( dx,-dy,-dz); - dp[10] = vector3_type(-dx, dy, dz); - dp[11] = vector3_type(-dx, dy,-dz); - dp[12] = vector3_type(-dx,-dy, dz); - dp[13] = vector3_type(-dx,-dy,-dz); - dp[14] = vector3_type( dx, dy, 0); - dp[15] = vector3_type( dx,-dy, 0); - dp[16] = vector3_type(-dx, dy, 0); - dp[17] = vector3_type(-dx,-dy, 0); - dp[18] = vector3_type( dx, 0, dz); - dp[19] = vector3_type( dx, 0,-dz); - dp[20] = vector3_type(-dx, 0, dz); - dp[21] = vector3_type(-dx, 0,-dz); - dp[22] = vector3_type( 0, dy, dz); - dp[23] = vector3_type( 0, dy,-dz); - dp[24] = vector3_type( 0,-dy, dz); - dp[25] = vector3_type( 0,-dy,-dz); - for(size_t cnt=0;cnt<26u;++cnt) - n[cnt] = unit(dp[cnt]); - - vector3_type p; - idx2coord(phi,i,j,k,p); - real_type flux = real_type(); - for(size_t cnt=0;cnt<26u;++cnt) - { - vector3_type q = p + dp[cnt]; - vector3_type g = gradient_at_point(phi,q); - flux += unit(g)*n[cnt]; - } - flux /= 26.0; - return static_cast(flux); - } - - } //namespace detail - - - /** - * Average Outward Flux. - * - * @param phi A the distance grid. - * @param F A grid containing the values of the average outward flux. - */ - template - inline void aof( - grid_type const & phi - , grid_type & F - ) - { - using std::min; - using std::sqrt; - - typedef typename grid_type::iterator iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::value_type value_type; - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - - value_type const unused = phi.unused(); - size_t const & I = phi.I(); - size_t const & J = phi.J(); - size_t const & K = phi.K(); - F.create(phi.min_coord(),phi.max_coord(),I,J,K); - - real_type dx = phi.dx()*0.5; - real_type dy = phi.dy()*0.5; - real_type dz = phi.dz()*0.5; - //real_type rho = sqrt(dx*dx+dy*dy+dz*dz); - vector3_type n[26]; - vector3_type dp[26]; - dp[0] = vector3_type( dx, 0, 0); - dp[1] = vector3_type(-dx, 0, 0); - dp[2] = vector3_type( 0, dy, 0); - dp[3] = vector3_type( 0,-dy, 0); - dp[4] = vector3_type( 0, 0, dz); - dp[5] = vector3_type( 0, 0,-dz); - dp[6] = vector3_type( dx, dy, dz); - dp[7] = vector3_type( dx, dy,-dz); - dp[8] = vector3_type( dx,-dy, dz); - dp[9] = vector3_type( dx,-dy,-dz); - dp[10] = vector3_type(-dx, dy, dz); - dp[11] = vector3_type(-dx, dy,-dz); - dp[12] = vector3_type(-dx,-dy, dz); - dp[13] = vector3_type(-dx,-dy,-dz); - dp[14] = vector3_type( dx, dy, 0); - dp[15] = vector3_type( dx,-dy, 0); - dp[16] = vector3_type(-dx, dy, 0); - dp[17] = vector3_type(-dx,-dy, 0); - dp[18] = vector3_type( dx, 0, dz); - dp[19] = vector3_type( dx, 0,-dz); - dp[20] = vector3_type(-dx, 0, dz); - dp[21] = vector3_type(-dx, 0,-dz); - dp[22] = vector3_type( 0, dy, dz); - dp[23] = vector3_type( 0, dy,-dz); - dp[24] = vector3_type( 0,-dy, dz); - dp[25] = vector3_type( 0,-dy,-dz); - for(size_t i=0;i<26u;++i) - n[i] = unit(dp[i]); - //n[0] = unit(vector3_type( 1, 0, 0)); - //n[1] = unit(vector3_type(-1, 0, 0)); - //n[2] = unit(vector3_type( 0, 1, 0)); - //n[3] = unit(vector3_type( 0,-1, 0)); - //n[4] = unit(vector3_type( 0, 0, 1)); - //n[5] = unit(vector3_type( 0, 0,-1)); - //n[6] = unit(vector3_type( 1, 1, 1)); - //n[7] = unit(vector3_type( 1, 1,-1)); - //n[8] = unit(vector3_type( 1,-1, 1)); - //n[9] = unit(vector3_type( 1,-1,-1)); - //n[10] = unit(vector3_type(-1, 1, 1)); - //n[11] = unit(vector3_type(-1, 1,-1)); - //n[12] = unit(vector3_type(-1,-1, 1)); - //n[13] = unit(vector3_type(-1,-1,-1)); - //n[14] = unit(vector3_type( 1, 1, 0)); - //n[15] = unit(vector3_type( 1,-1, 0)); - //n[16] = unit(vector3_type(-1, 1, 0)); - //n[17] = unit(vector3_type(-1,-1, 0)); - //n[18] = unit(vector3_type( 1, 0, 1)); - //n[19] = unit(vector3_type( 1, 0,-1)); - //n[20] = unit(vector3_type(-1, 0, 1)); - //n[21] = unit(vector3_type(-1, 0,-1)); - //n[22] = unit(vector3_type( 0, 1, 1)); - //n[23] = unit(vector3_type( 0, 1,-1)); - //n[24] = unit(vector3_type( 0,-1, 1)); - //n[25] = unit(vector3_type( 0,-1,-1)); - //for(size_t i=0;i<26u;++i) - // dp[i] = n[i]*rho; - iterator f = F.begin(); - const_index_iterator v = phi.begin(); - const_index_iterator vend = phi.end(); - for(;v!=vend;++v,++f) - { - if((*v)==unused) - { - (*f) = value_type(); //--- should default to zero!!! - continue; - } - size_t i = v.i(); - size_t j = v.j(); - size_t k = v.k(); - vector3_type p; - idx2coord(phi,i,j,k,p); - real_type flux = real_type(); - for(size_t i=0;i<26u;++i) - { - vector3_type q = p + dp[i]; - vector3_type g = gradient_at_point(phi,q); - flux += unit(g)*n[i]; - } - flux /= 26.0; - (*f) = static_cast(flux); - } - - //vector3_type n_mpp = unit(vector3_type( -1, 1, 1)); - //vector3_type n_mp0 = unit(vector3_type( -1, 1, 0)); - //vector3_type n_mpm = unit(vector3_type( -1, 1, -1)); - //vector3_type n_m0p = unit(vector3_type( -1, 0, 1)); - //vector3_type n_m00 = unit(vector3_type( -1, 0, 0)); - //vector3_type n_m0m = unit(vector3_type( -1, 0, -1)); - //vector3_type n_mmp = unit(vector3_type( -1, -1, 1)); - //vector3_type n_mm0 = unit(vector3_type( -1, -1, 0)); - //vector3_type n_mmm = unit(vector3_type( -1, -1, -1)); - //vector3_type n_0pp = unit(vector3_type( 0, 1, 1)); - //vector3_type n_0p0 = unit(vector3_type( 0, 1, 0)); - //vector3_type n_0pm = unit(vector3_type( 0, 1, -1)); - //vector3_type n_00p = unit(vector3_type( 0, 0, 1)); - //vector3_type n_000 = unit(vector3_type( 0, 0, 0)); - //vector3_type n_00m = unit(vector3_type( 0, 0, -1)); - //vector3_type n_0mp = unit(vector3_type( 0, -1, 1)); - //vector3_type n_0m0 = unit(vector3_type( 0, -1, 0)); - //vector3_type n_0mm = unit(vector3_type( 0, -1, -1)); - //vector3_type n_ppp = unit(vector3_type( 1, 1, 1)); - //vector3_type n_pp0 = unit(vector3_type( 1, 1, 0)); - //vector3_type n_ppm = unit(vector3_type( 1, 1, -1)); - //vector3_type n_p0p = unit(vector3_type( 1, 0, 1)); - //vector3_type n_p00 = unit(vector3_type( 1, 0, 0)); - //vector3_type n_p0m = unit(vector3_type( 1, 0, -1)); - //vector3_type n_pmp = unit(vector3_type( 1, -1, 1)); - //vector3_type n_pm0 = unit(vector3_type( 1, -1, 0)); - //vector3_type n_pmm = unit(vector3_type( 1, -1, -1)); - //vector3_type g_mpp; - //vector3_type g_mp0; - //vector3_type g_mpm; - //vector3_type g_m0p; - //vector3_type g_m00; - //vector3_type g_m0m; - //vector3_type g_mmp; - //vector3_type g_mm0; - //vector3_type g_mmm; - //vector3_type g_0pp; - //vector3_type g_0p0; - //vector3_type g_0pm; - //vector3_type g_00p; - //vector3_type g_000; - //vector3_type g_00m; - //vector3_type g_0mp; - //vector3_type g_0m0; - //vector3_type g_0mm; - //vector3_type g_ppp; - //vector3_type g_pp0; - //vector3_type g_ppm; - //vector3_type g_p0p; - //vector3_type g_p00; - //vector3_type g_p0m; - //vector3_type g_pmp; - //vector3_type g_pm0; - //vector3_type g_pmm; - //iterator f = F.begin(); - //const_index_iterator v = phi.begin(); - //const_index_iterator vend = phi.end(); - //for(;v!=vend;++v,++f) - //{ - // if((*v)==unused) - // { - // (*f) = value_type(); //--- should default to zero!!! - // continue; - // } - // size_t i = v.i(); - // size_t j = v.j(); - // size_t k = v.k(); - // size_t im1 = ( i ) ? i - 1 : 0; - // size_t jm1 = ( j ) ? j - 1 : 0; - // size_t km1 = ( k ) ? k - 1 : 0; - // size_t ip1 = min( i + 1u, I - 1u ); - // size_t jp1 = min( j + 1u, J - 1u ); - // size_t kp1 = min( k + 1u, K - 1u ); - // gradient(phi, im1, jp1, kp1, g_mpp ); - // gradient(phi, im1, jp1, k, g_mp0 ); - // gradient(phi, im1, jp1, km1, g_mpm ); - // gradient(phi, im1, j, kp1, g_m0p ); - // gradient(phi, im1, j, k, g_m00 ); - // gradient(phi, im1, j, km1, g_m0m ); - // gradient(phi, im1, jm1, kp1, g_mmp ); - // gradient(phi, im1, jm1, k, g_mm0 ); - // gradient(phi, im1, jm1, km1, g_mmm ); - // gradient(phi, i, jp1, kp1, g_0pp ); - // gradient(phi, i, jp1, k, g_0p0 ); - // gradient(phi, i, jp1, km1, g_0pm ); - // gradient(phi, i, j, kp1, g_00p ); - // gradient(phi, i, j, k, g_000 ); - // gradient(phi, i, j, km1, g_00m ); - // gradient(phi, i, jm1, kp1, g_0mp ); - // gradient(phi, i, jm1, k, g_0m0 ); - // gradient(phi, i, jm1, km1, g_0mm ); - // gradient(phi, ip1, jp1, kp1, g_ppp ); - // gradient(phi, ip1, jp1, k, g_pp0 ); - // gradient(phi, ip1, jp1, km1, g_ppm ); - // gradient(phi, ip1, j, kp1, g_p0p ); - // gradient(phi, ip1, j, k, g_p00 ); - // gradient(phi, ip1, j, km1, g_p0m ); - // gradient(phi, ip1, jm1, kp1, g_pmp ); - // gradient(phi, ip1, jm1, k, g_pm0 ); - // gradient(phi, ip1, jm1, km1, g_pmm ); - // real_type flux = real_type(); - // flux += unit(g_mpp) * n_mpp; - // flux += unit(g_mp0) * n_mp0; - // flux += unit(g_mpm) * n_mpm; - // flux += unit(g_m0p) * n_m0p; - // flux += unit(g_m00) * n_m00; - // flux += unit(g_m0m) * n_m0m; - // flux += unit(g_mmp) * n_mmp; - // flux += unit(g_mm0) * n_mm0; - // flux += unit(g_mmm) * n_mmm; - // flux += unit(g_0pp) * n_0pp; - // flux += unit(g_0p0) * n_0p0; - // flux += unit(g_0pm) * n_0pm; - // flux += unit(g_00p) * n_00p; - // flux += unit(g_000) * n_000; - // flux += unit(g_00m) * n_00m; - // flux += unit(g_0mp) * n_0mp; - // flux += unit(g_0m0) * n_0m0; - // flux += unit(g_0mm) * n_0mm; - // flux += unit(g_ppp) * n_ppp; - // flux += unit(g_pp0) * n_pp0; - // flux += unit(g_ppm) * n_ppm; - // flux += unit(g_p0p) * n_p0p; - // flux += unit(g_p00) * n_p00; - // flux += unit(g_p0m) * n_p0m; - // flux += unit(g_pmp) * n_pmp; - // flux += unit(g_pm0) * n_pm0; - // flux += unit(g_pmm) * n_pmm; - // flux /= 26.0; - // (*f) = static_cast(flux); - //} - - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AOF_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_approximate_gaussian_filter.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_approximate_gaussian_filter.h deleted file mode 100644 index d246f8ebd..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_approximate_gaussian_filter.h +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_APPROXIMATE_GAUSSIAN_FILTER_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_APPROXIMATE_GAUSSIAN_FILTER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Fast convolution by an approximate "integer" guassian filter. - * This just applies several box_filter's (boxsize=size and order times), - * and is only efficient for low orders. - * If size is even, the order must also be even for the resulting image to lay on the same grid - * (else translated 0.5 voxel towards (0,0,0) ). - * @param src Source grid to be convolved. - * @param order Order of filter. Corresponds to the number of times the boxfilter is applied. - * @param size Size of filter. - * @param dst Upon return, contains the filtered grid. - */ - template - inline void approximate_gaussian_filter(grid_type const& src, size_t order, size_t size, grid_type& dst) - { - typedef typename grid_type::index_vector index_vector; - dst=src; - for(size_t i=0; i0 && (i%2) && !(size%2)) - { - std::cout << "--calling translate()" << std::endl; - translate(dst, index_vector(1,1,1), dst); - } - } - } - - /** - * Approximate Gaussian filter with compensation on image borders. - * Attenuation on border regions is compensated. - * This is equivalent to Gaussian filtering using only filter coefficients - * that are inside the "shape" being considered. - * @param src Source grid to be convolved. - * @param order Order of filter. Corresponds to the number of times the boxfilter is applied. - * @param size Size of filter. - * @param dst Upon return, contains the filtered grid. - */ - template - inline void approximate_gaussian_filter_border_correct(grid_type const& src, size_t order, size_t size, grid_type &dst) - { - grid_type lowFreq=src; - - // apply filter in normal fashion - approximate_gaussian_filter(lowFreq, order, size, lowFreq); - - // compensate for border regions in filtering - // FIXME: refactor this! - /* { - Image3Df smask(src.Size()); - smask.Fill(1); - approximate_gaussian_filter(smask,order,size,smask); - for(typename grid_type::index_iterator p=lowFreq.begin(); p!=lowFreq.end(); ++p) - { - if(smask(p.Pos())) - { - *p/=smask(p.Pos()); - } - } - }*/ - dst=lowFreq; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_APPROXIMATE_GAUSSIAN_FILTER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_average.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_average.h deleted file mode 100644 index f2d21207e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_average.h +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AVERAGE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AVERAGE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - template < typename grid_type > - inline void average( grid_type & phi ) - { - using std::min; - - typedef typename grid_type::index_iterator iterator; - typedef typename grid_type::value_type value_type; - - grid_type tmp = phi; - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - - iterator pend = phi.end(); - iterator p = phi.begin(); - iterator t = tmp.begin(); - - for(;p!=pend;++p,++t) - { - size_t i = p.i(); - size_t j = p.j(); - size_t k = p.k(); - - static size_t idx[27]; - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - idx[0] = ( kp1 * J + jp1 ) * I + im1; - idx[1] = ( k * J + jp1 ) * I + im1; - idx[2] = ( km1 * J + jp1 ) * I + im1; - idx[3] = ( kp1 * J + j ) * I + im1; - idx[4] = ( k * J + j ) * I + im1; - idx[5] = ( km1 * J + j ) * I + im1; - idx[6] = ( kp1 * J + jm1 ) * I + im1; - idx[7] = ( k * J + jm1 ) * I + im1; - idx[8] = ( km1 * J + jm1 ) * I + im1; - idx[9] = ( kp1 * J + jp1 ) * I + i; - idx[10] = ( k * J + jp1 ) * I + i; - idx[11] = ( km1 * J + jp1 ) * I + i; - idx[12] = ( kp1 * J + j ) * I + i; - idx[13] = ( k * J + j ) * I + i; - idx[14] = ( km1 * J + j ) * I + i; - idx[15] = ( kp1 * J + jm1 ) * I + i; - idx[16] = ( k * J + jm1 ) * I + i; - idx[17] = ( km1 * J + jm1 ) * I + i; - idx[18] = ( kp1 * J + jp1 ) * I + ip1; - idx[19] = ( k * J + jp1 ) * I + ip1; - idx[20] = ( km1 * J + jp1 ) * I + ip1; - idx[21] = ( kp1 * J + j ) * I + ip1; - idx[22] = ( k * J + j ) * I + ip1; - idx[23] = ( km1 * J + j ) * I + ip1; - idx[24] = ( kp1 * J + jm1 ) * I + ip1; - idx[25] = ( k * J + jm1 ) * I + ip1; - idx[26] = ( km1 * J + jm1 ) * I + ip1; - value_type avg = value_type(); //--- default constructed zero by standard!!! - for(size_t i=0;i<27u;++i) - avg += phi(idx[i]); - avg /= value_type(25); - *t = avg; - } - phi = tmp; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_AVERAGE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_bisection_line_search.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_bisection_line_search.h deleted file mode 100644 index 870dba7ff..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_bisection_line_search.h +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_BISECTION_LINE_SEARCH_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_BISECTION_LINE_SEARCH_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Grid Bisection Line Search - * - * @param q_a - * @param q_b - * @param phi - * @param maximize If true the bisection method tries to find the maximimum value between q_a and q_b otherwise it tries to find the minimum value. - * - * @return The point that maximizes the value of phi on the line between q_a and q_b. - */ - template - inline vector3_type bisection_line_search(vector3_type q_a, vector3_type q_b, grid_type & phi, bool maximize = true) - { - using std::fabs; - typedef typename vector3_type::value_type real_type; - - real_type const precision = 10e-5;//OpenTissue::math::working_precision(100); - real_type const too_small_interval = sqr_length(q_b-q_a)*0.0001; //--- 1/100'th of distance! - vector3_type n = unit(gradient_at_point(phi,q_a)); - vector3_type r; - - - real_type const sign = maximize? 1.0 : -1.0; - - - bool forever = true; - do - { - vector3_type q_c = (q_a + q_b)*.5; - if( sqr_length(q_a - q_b) < too_small_interval ) - { - r = q_c; - break; - } - vector3_type dir = unit(gradient_at_point(phi,q_c)); - real_type n_dot_dir = inner_prod(n , dir)*sign; - if(fabs(n_dot_dir) < precision) - { - r = q_c; - break; - } - if(n_dot_dir > 0) - { - q_a = q_c; - } - if(n_dot_dir < 0) - { - q_b = q_c; - } - } - while (forever); - return r; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_BISECTION_LINE_SEARCH_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_blockify.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_blockify.h deleted file mode 100644 index 4122a72ba..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_blockify.h +++ /dev/null @@ -1,139 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_BLOCKIFY_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_BLOCKIFY_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - -#include -#include -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Level Set Blockifier. - * This function takes a level set grid and re-initializes it into - * small cubic blocks (-1 inside and +1 outside). - * - * @param phi The level set grid. - */ - template - inline void blockify(grid_type & phi) - { - typedef typename grid_type::value_type value_type; - typedef typename grid_type::index_iterator iterator; - - value_type unused = phi.unused(); - value_type inside = value_type(-1.0); - value_type outside = value_type( 1.0); - - size_t offset = 7u; - size_t spacing = 11u; - size_t block = offset + spacing; - iterator begin = phi.begin(); - iterator end = phi.end(); - iterator p; - for(p=begin;p!=end;++p) - { - if(*p==unused) - continue; - - bool inside_i = ((p.i() % block)>offset); - bool inside_j = ((p.j() % block)>offset); - bool inside_k = ((p.k() % block)>offset); - if(inside_i && inside_j && inside_k) - *p = inside; - else - *p = outside; - } - } - - /** Initialize a grid with a pattern of boxes of width offset. - * - * @param phi The grid to initialize. - * @param inside Value to fill inside blocks - * @param outside Value to fill outside blocks - * @param offset The offset from the borders. - * @param spacing The width, height, depth and half the spacing of boxes. - */ - template - inline void blockify(grid_type & phi, value_type inside, value_type outside, size_t offset, size_t spacing) - { - typedef typename grid_type::value_type internal_type; - typedef typename grid_type::index_iterator iterator; - - internal_type unused = phi.unused(); - internal_type inside_ = (internal_type)( inside ); - internal_type outside_ = (internal_type)( outside ); - - size_t block = offset + spacing; - iterator begin = phi.begin(); - iterator end = phi.end(); - iterator p; - for(p=begin;p!=end;++p) - { - if(*p==unused) - continue; - - bool inside_i = ((p.i() % block)>offset); - bool inside_j = ((p.j() % block)>offset); - bool inside_k = ((p.k() % block)>offset); - if(inside_i && inside_j && inside_k) - *p = inside_; - else - *p = outside_; - } - } - - /** Initialize a slice of a grid with a pattern of boxes of width offset. - * - * @param phi The grid to initialize. - * @param inside Value to fill inside blocks - * @param outside Value to fill outside blocks - * @param offset The offset from the borders. - * @param spacing The width, height, and half the spacing of boxes. - * @param slice The slice in z-depth that needs to be filled - */ - template - inline void blockify(grid_type & phi, value_type inside, value_type outside, size_t offset, size_t spacing, size_t slice) - { - typedef typename grid_type::value_type internal_type; - typedef typename grid_type::index_iterator iterator; - - internal_type unused = phi.unused(); - internal_type inside_ = (internal_type)( inside ); - internal_type outside_ = (internal_type)( outside ); - - size_t block = offset + spacing; - iterator begin = phi.begin(); - iterator end = phi.end(); - iterator p; - for(p=begin;p!=end;++p) - { - if (p.k()!=slice) - continue; - if(*p==unused) - continue; - bool inside_i = ((p.i() % block)>offset); - bool inside_j = ((p.j() % block)>offset); - if(inside_i && inside_j) - *p = inside_; - else - *p = outside_; - } - } - - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_BLOCKIFY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_closing.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_closing.h deleted file mode 100644 index 9305249ac..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_closing.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CLOSING_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CLOSING_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Closing Operation. - * - * @param phi Input level set. - * @param radius Radius of spherical structural element. - * @param dt Time-step to use in update. - * @param psi Output levelset. Note if input is a signed distance map then output may not be a signed distance map, thus you may need to redistance output levelset. - */ - template< - typename grid_type_in - , typename real_type - , typename grid_type_out - > - inline void closing( - grid_type_in const & phi - , real_type const & radius - , real_type const & dt - , grid_type_out & psi - ) - { - erosion(phi,radius,dt,psi); - dilation(psi,radius,dt,psi); - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CLOSING_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_compute_sign_function.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_compute_sign_function.h deleted file mode 100644 index a559fe93e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_compute_sign_function.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COMPUTE_SIGN_FUNCTION_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COMPUTE_SIGN_FUNCTION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - template < typename grid_type > - inline void compute_sign_function( grid_type const & phi, grid_type & S0 ) - { - using std::sqrt; - - typedef typename grid_type::value_type real_type; - typedef typename grid_type::const_index_iterator const_iterator; - typedef typename grid_type::index_iterator iterator; - - S0.create(phi.min_coord(),phi.max_coord(),phi.I(),phi.J(),phi.K()); - // yellowbook p67. - - real_type delta = phi.dx()*phi.dx() + phi.dy()*phi.dy() + phi.dz()*phi.dz(); - const_iterator begin = phi.begin(); - const_iterator end = phi.end(); - - for ( const_iterator idx = begin;idx!=end;++idx) - { - size_t i = idx.i(); - size_t j = idx.j(); - size_t k = idx.k(); - real_type c = phi( i,j,k ); - S0( i,j,k ) = c / ( sqrt( c * c + delta ) );//---TODO: Verify this formula!!! - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COMPUTE_SIGN_FUNCTION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_coord2idx.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_coord2idx.h deleted file mode 100644 index 0b269ae05..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_coord2idx.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COORD_TO_IDX_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COORD_TO_IDX_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Coordinate 2 Voxel Indices. - * This method computes the indices (i,j,k) of - * the voxel containing the specified point. - * - * The voxel index of the voxel containing the points is equal to index - * of the grid node of the containing voxel with lowest coordinates - * (ie. lower-left-back grid node). - * - * @param grid The grid. - * @param point The point. - * @param i Upon return this parameter contains the index of the voxel along the I-axe. - * @param j Upon return this parameter contains the index of the voxel along the J-axe. - * @param k Upon return this parameter contains the index of the voxel along the K-axe. - */ - template - inline void coord2idx( grid_type const & grid, vector3_type const & point, size_t & i, size_t & j, size_t & k ) - { - using std::floor; - - typedef typename vector3_type::value_type real_type; - - real_type const & dx = grid.dx(); - real_type const & dy = grid.dy(); - real_type const & dz = grid.dz(); - real_type const & mx = grid.min_coord( 0 ); - real_type const & my = grid.min_coord( 1 ); - real_type const & mz = grid.min_coord( 2 ); - - real_type xval = ( point( 0 ) - mx ) / dx; - i = static_cast( floor( xval ) ); - if ( ( xval - i ) > .5 ) - ++i; - real_type yval = ( point( 1 ) - my ) / dy; - j = static_cast( floor( yval ) ); - if ( ( yval - j ) > .5 ) - ++j; - real_type zval = ( point( 2 ) - mz ) / dz; - k = static_cast( floor( zval ) ); - if ( ( zval - k ) > .5 ) - ++k; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_COORD_TO_IDX_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_crop.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_crop.h deleted file mode 100644 index 8ffaba834..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_crop.h +++ /dev/null @@ -1,116 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_CROP_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_CROP_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Crop grid to bounding box that do not include treshold. - * Can be used to automatically crop emptyness from scanned data. - * @param M Original grid to be cropped. - * @param m Destination grid. - * @param treshold Maximum value that needs to be cropped. - * @return Upon return the destination grid m contains the cropped grid. - */ - template < typename grid_type > - inline void crop(grid_type const & M, grid_type & m, typename grid_type::value_type const & treshold) - { - using std::min; - using std::max; - - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - - typedef OpenTissue::math::Vector3 index_vector; - - index_vector min_idx( M.I(), M.J(), M.K() ); - index_vector max_idx( 0, 0, 0 ); - - for(size_t k=0; k treshold ) - { - min_idx = min( min_idx, index_vector(i,j,k) ); - max_idx = max( max_idx, index_vector(i,j,k) ); - } - } - index_vector new_dim = (max_idx - min_idx) + index_vector(1); - - vector3_type min_coord,max_coord; - idx2coord(M, min_idx(0), min_idx(1), min_idx(2),min_coord); - idx2coord(M, max_idx(0), max_idx(1), max_idx(2),max_coord); - - m.create( min_coord, max_coord, new_dim(0), new_dim(1), new_dim(2) ); - - size_t i_offset = min_idx(0); - size_t j_offset = min_idx(1); - size_t k_offset = min_idx(2); - for(size_t k=0; k - inline void crop( - grid_type const & M - , grid_type & m - , size_t min_i - , size_t min_j - , size_t min_k - , size_t max_i - , size_t max_j - , size_t max_k - ) - { - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename grid_type::index_iterator index_iterator; - - vector3_type min_coord,max_coord; - idx2coord(M, min_i, min_j, min_k, min_coord); - idx2coord(M, max_i, max_j, max_k, max_coord); - m.create( min_coord, max_coord, max_i-min_i+1, max_j-min_j+1, max_k-min_k+1 ); - - for(size_t k=0; k - -#include - -namespace OpenTissue -{ -namespace grid -{ - - /** - * Calculate curvature flow. - * - * WARNING: Unexpected behavior if input and output level sets are the same. - * - * - * @param phi Input level set. - * @param mu Mean Curvature coefficient. - * @param dt Time-step to use in update. - * @param psi Output levelset. Note if input is a signed distance map - * then output may not be a signed distance map, thus - * you may need to redistance output levelset. - */ - template< - typename grid_type - , typename real_type - > - inline void curvature_flow( - grid_type const & phi - , real_type const & mu - , real_type const & dt - , grid_type & psi - ) - { - using std::min; - using std::max; - using std::sqrt; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - - assert(mu>0 || !"curvature_flow(): curvature coefficient must be positive"); - assert(dt>0 || !"curvature_flow(): time-step must be positive"); - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - real_type dx = static_cast ( phi.dx() ); - real_type dy = static_cast ( phi.dy() ); - real_type dz = static_cast ( phi.dz() ); - real_type m_inv_dx2 = static_cast ( 1.0 / (dx*dx) ); - real_type m_inv_dy2 = static_cast ( 1.0 / (dy*dy) ); - real_type m_inv_dz2 = static_cast ( 1.0 / (dz*dz) ); - real_type m_inv_4dxy = static_cast ( 0.25 / (dx*dy) ); - real_type m_inv_4dxz = static_cast ( 0.25 / (dx*dz) ); - real_type m_inv_4dyz = static_cast ( 0.25 / (dy*dz) ); - - real_type min_delta = static_cast (min(dx,min(dy,dz) )); - - real_type kappa_limit = static_cast ( 1.0 / ( max(dx, max(dy,dz) ) ) ); - - value_type zero = static_cast(0.0); - grid_type F = phi; //--- speed function - - if(&psi != &phi) - psi = phi; - - iterator fbegin = F.begin(); - index_iterator sbegin = psi.begin(); - index_iterator send = psi.end(); - - real_type threshold = static_cast(10e-15); //--- small number used to avoid division by zero!!! - - real_type time = static_cast(0.0); - while (time < dt) - { - value_type max_F = zero; //--- maximum speed, used to setup CFL condition - iterator f = fbegin; - index_iterator s = sbegin; - for(;s!=send; ++s,++f) - { - size_t i = s.i(); - size_t j = s.j(); - size_t k = s.k(); - - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1, I - 1 ); - size_t jp1 = min( j + 1, J - 1 ); - size_t kp1 = min( k + 1, K - 1 ); - - size_t idx_000 = ( k * J + j ) * I + i; - size_t idx_m00 = ( k * J + j ) * I + im1; - size_t idx_p00 = ( k * J + j ) * I + ip1; - size_t idx_0m0 = ( k * J + jm1 ) * I + i; - size_t idx_0p0 = ( k * J + jp1 ) * I + i; - size_t idx_00m = ( km1 * J + j ) * I + i; - size_t idx_00p = ( kp1 * J + j ) * I + i; - size_t idx_pp0 = ( k * J + jp1 ) * I + ip1; - size_t idx_mp0 = ( k * J + jp1 ) * I + im1; - size_t idx_pm0 = ( k * J + jm1 ) * I + ip1; - size_t idx_mm0 = ( k * J + jm1 ) * I + im1; - size_t idx_p0p = ( kp1 * J + j ) * I + ip1; - size_t idx_m0p = ( kp1 * J + j ) * I + im1; - size_t idx_p0m = ( km1 * J + j ) * I + ip1; - size_t idx_m0m = ( km1 * J + j ) * I + im1; - size_t idx_0pp = ( kp1 * J + jp1 ) * I + i; - size_t idx_0pm = ( km1 * J + jp1 ) * I + i; - size_t idx_0mp = ( kp1 * J + jm1 ) * I + i; - size_t idx_0mm = ( km1 * J + jm1 ) * I + i; - - real_type d000 = 2.0 * psi( idx_000 ); - real_type dp00 = psi( idx_p00 ); - real_type dm00 = psi( idx_m00 ); - real_type d0p0 = psi( idx_0p0 ); - real_type d0m0 = psi( idx_0m0 ); - real_type d00p = psi( idx_00p ); - real_type d00m = psi( idx_00m ); - real_type dpp0 = psi( idx_pp0 ); - real_type dmp0 = psi( idx_mp0 ); - real_type dpm0 = psi( idx_pm0 ); - real_type dmm0 = psi( idx_mm0 ); - real_type dp0p = psi( idx_p0p ); - real_type dm0p = psi( idx_m0p ); - real_type dp0m = psi( idx_p0m ); - real_type dm0m = psi( idx_m0m ); - real_type d0pp = psi( idx_0pp ); - real_type d0pm = psi( idx_0pm ); - real_type d0mp = psi( idx_0mp ); - real_type d0mm = psi( idx_0mm ); - //---- Hessian matrix is defines as - // - // | d/(dx*dx) d(/(dx*dy) d/(dx*dz) | - // H = | d/(dy*dx) d(/(dy*dy) d/(dy*dz) | phi - // | d/(dz*dx) d(/(dz*dy) d/(dz*dz) | - // - // - //--- Following is a central diff approximation - real_type psi_x = (dp00 - dm00) * m_inv_dx2; - real_type psi_y = (d0p0 - d0m0) * m_inv_dy2; - real_type psi_z = (d00p - d00m) * m_inv_dz2; - real_type psi_xx = ( dp00 + dm00 - d000 ) * m_inv_dx2; - real_type psi_yy = ( d0p0 + d0m0 - d000 ) * m_inv_dy2; - real_type psi_zz = ( d00p + d00m - d000 ) * m_inv_dz2; - real_type psi_xy = ( dpp0 - dmp0 - dpm0 + dmm0 ) * m_inv_4dxy; - real_type psi_xz = ( dp0p - dm0p - dp0m + dm0m ) * m_inv_4dxz; - real_type psi_yz = ( d0pp - d0pm - d0mp + d0mm ) * m_inv_4dyz; - real_type norm_grad_psi = sqrt( (psi_x*psi_x) + (psi_y*psi_y) + (psi_z*psi_z) ); - real_type kappa = - ( - (psi_x*psi_x)*psi_yy - + (psi_x*psi_x)*psi_zz - + (psi_y*psi_y)*psi_xx - + (psi_y*psi_y)*psi_zz - + (psi_z*psi_z)*psi_xx - + (psi_z*psi_z)*psi_yy - - 2*(psi_x*psi_y)*psi_xy - - 2*(psi_x*psi_z)*psi_xz - - 2*(psi_y*psi_z)*psi_yz - ) - / - (norm_grad_psi*norm_grad_psi*norm_grad_psi + threshold ); - - kappa = max( kappa, -kappa_limit ); - kappa = min( kappa, kappa_limit ); - - *f = static_cast(mu * kappa); - max_F = max(max_F, std::fabs(*f)); - } - real_type time_left = max( dt - time, 0.0 ); - if(time_left <= 0) - return; - - value_type time_step = static_cast( min( time_left, min_delta / (max_F) ) ); - - std::cout << "\tcurvature_flow() : timestep = " << time_step << std::endl; - - for(s=sbegin, f=fbegin;s!=send;++s,++f) - (*s) = (*s) + time_step * (*f); - time += time_step; - } - } - -} // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_CURVATURE_FLOW_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_dilation.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_dilation.h deleted file mode 100644 index 8ce3ad10f..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_dilation.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DILATION_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DILATION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Dilate level set. - * - * @param phi Input level set. - * @param radius Radius of spherical structural element. - * @param dt Time-step to use in update. - * @param psi Output levelset. Note if input is a signed distance map then output may not be a signed distance map, thus you may need to redistance output levelset. - */ - template< - typename grid_type_in - , typename real_type - , typename grid_type_out - > - inline void dilation( - grid_type_in const & phi - , real_type const & radius - , real_type const & dt - , grid_type_out & psi - ) - { - typedef typename grid_type_in::value_type input_type; - typedef typename grid_type_out::value_type output_type; - typedef typename grid_type_in::const_index_iterator input_iterator; - - assert(radius>0 || !"dilation(): radius must be positive"); - assert(dt>0 || !"dilation(): time-step must be positive"); - - input_iterator input_begin = phi.begin(); - input_iterator input_end = phi.end(); - input_iterator input; - input_type unused = phi.unused(); - for(input=input_begin;input!=input_end;++input) - if(*input!=unused) - psi(input.get_index()) = *input - dt*radius; - } - - } // namespace grid - -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DILATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_div_grad.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_div_grad.h deleted file mode 100644 index b4e671c67..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_div_grad.h +++ /dev/null @@ -1,167 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DIV_GRAD_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DIV_GRAD_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Div-Grad. - * Computes the divergence of the gradient of a specified field. Ie. the flux of the gradient field! - * - * @param phi A the grid. - * @param M A grid containing the values of the divergence of the gradient field of phi. - */ - template - inline void div_grad( - grid_type const & phi - , grid_type & M - ) - { - using std::min; - - typedef OpenTissue::math::Vector3< typename grid_type::value_type> vector3_type; - - typedef typename grid_type::iterator iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::value_type value_type; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t const & I = phi.I(); - size_t const & J = phi.J(); - size_t const & K = phi.K(); - M.create(phi.min_coord(),phi.max_coord(),I,J,K); - static value_type unused = phi.unused(); - - vector3_type /*g000,*/gp00,gm00,g0p0,g0m0,g00p,g00m; - vector3_type gppp,gppm,gpmp,gpmm,gmpp,gmpm,gmmp,gmmm; - vector3_type gpp0, gpm0, gmp0, gmm0, gp0p, gp0m, gm0p, gm0m, g0pp, g0pm, g0mp, g0mm; - - static vector3_type np00 = unit(vector3_type( 1, 0, 0)); - static vector3_type nm00 = unit(vector3_type(-1, 0, 0)); - static vector3_type n0p0 = unit(vector3_type( 0, 1, 0)); - static vector3_type n0m0 = unit(vector3_type( 0,-1, 0)); - static vector3_type n00p = unit(vector3_type( 0, 0, 1)); - static vector3_type n00m = unit(vector3_type( 0, 0,-1)); - static vector3_type nppp = unit(vector3_type( 1, 1, 1)); - static vector3_type nppm = unit(vector3_type( 1, 1,-1)); - static vector3_type npmp = unit(vector3_type( 1,-1, 1)); - static vector3_type npmm = unit(vector3_type( 1,-1,-1)); - static vector3_type nmpp = unit(vector3_type(-1, 1, 1)); - static vector3_type nmpm = unit(vector3_type(-1, 1,-1)); - static vector3_type nmmp = unit(vector3_type(-1,-1, 1)); - static vector3_type nmmm = unit(vector3_type(-1,-1,-1)); - static vector3_type npp0 = unit(vector3_type( 1, 1, 0)); - static vector3_type npm0 = unit(vector3_type( 1,-1, 0)); - static vector3_type nmp0 = unit(vector3_type(-1, 1, 0)); - static vector3_type nmm0 = unit(vector3_type(-1,-1, 0)); - static vector3_type np0p = unit(vector3_type( 1, 0, 1)); - static vector3_type np0m = unit(vector3_type( 1, 0,-1)); - static vector3_type nm0p = unit(vector3_type(-1, 0, 1)); - static vector3_type nm0m = unit(vector3_type(-1, 0,-1)); - static vector3_type n0pp = unit(vector3_type( 0, 1, 1)); - static vector3_type n0pm = unit(vector3_type( 0, 1,-1)); - static vector3_type n0mp = unit(vector3_type( 0,-1, 1)); - static vector3_type n0mm = unit(vector3_type( 0,-1,-1)); - - - iterator m = M.begin(); - const_index_iterator pbegin = phi.begin(); - const_index_iterator pend = phi.end(); - const_index_iterator p = pbegin; - for(;p!=pend;++p,++m) - { - if((*p)==unused) - { - *m = value_type(); //--- should default to zero!!! - continue; - } - - size_t i = p.i(); - size_t j = p.j(); - size_t k = p.k(); - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - - gradient(phi, ip1, j, k, gp00); - gradient(phi, im1, j, k, gm00); - gradient(phi, i, jp1, k, g0p0); - gradient(phi, i, jm1, k, g0m0); - gradient(phi, i, j, kp1, g00p); - gradient(phi, i, j, km1, g00m); - gradient(phi, ip1, jp1, k, gpp0); - gradient(phi, ip1, jm1, k, gpm0); - gradient(phi, im1, jp1, k, gmp0); - gradient(phi, im1, jm1, k, gmm0); - gradient(phi, ip1, j, kp1, gp0p); - gradient(phi, ip1, j, km1, gp0m); - gradient(phi, im1, j, kp1, gm0p); - gradient(phi, im1, j, km1, gm0m); - gradient(phi, i, jp1, kp1, g0pp); - gradient(phi, i, jp1, km1, g0pm); - gradient(phi, i, jm1, kp1, g0mp); - gradient(phi, i, jm1, km1, g0mm); - gradient(phi, ip1, jp1, kp1, gppp); - gradient(phi, ip1, jp1, km1, gppm); - gradient(phi, ip1, jm1, kp1, gpmp); - gradient(phi, ip1, jm1, km1, gpmm); - gradient(phi, im1, jp1, kp1, gmpp); - gradient(phi, im1, jp1, km1, gmpm); - gradient(phi, ip1, jm1, kp1, gmmp); - gradient(phi, im1, jm1, km1, gmmm); - - real_type flux = real_type(); //--- should default to zero!!! - flux += gp00 * np00; - flux += gm00 * nm00; - flux += g0p0 * n0p0; - flux += g0m0 * n0m0; - flux += g00p * n00p; - flux += g00m * n00m; - flux += gpp0 * npp0; - flux += gpm0 * npm0; - flux += gmp0 * nmp0; - flux += gmm0 * nmm0; - flux += gp0p * np0p; - flux += gp0m * np0m; - flux += gm0p * nm0p; - flux += gm0m * nm0m; - flux += g0pp * n0pp; - flux += g0pm * n0pm; - flux += g0mp * n0mp; - flux += g0mm * n0mm; - flux += gppp * nppp; - flux += gppm * nppm; - flux += gpmp * npmp; - flux += gpmm * npmm; - flux += gmpp * nmpp; - flux += gmpm * nmpm; - flux += gmmp * nmmp; - flux += gmmm * nmmm; - - (*m) = static_cast(flux); - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_DIV_GRAD_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_enclosing_indices.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_enclosing_indices.h deleted file mode 100644 index f94073ded..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_enclosing_indices.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_ENCLOSING_INDICES_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_ENCLOSING_INDICES_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Get Enclosing Indices. - * Finds enclosing node indices for a given point. - * Assumes that the point is strictly inside the volume. - * - * @param grid The grid. - * @param point Vector with coordinates of the point. - * @param i0 Upon return, this parameter contains the i-index of the lower-left-back node. - * @param j0 Upon return, this parameter contains the j-index of the lower-left-back node. - * @param k0 Upon return, this parameter contains the k-index of the lower-left-back node. - * @param i1 Upon return, this parameter contains the i-index of the upper-right-front node. - * @param j1 Upon return, this parameter contains the j-index of the upper-right-front node. - * @param k1 Upon return, this parameter contains the k-index of the upper-right-front node. - */ - template - inline void enclosing_indices( - grid_type const & grid - , vector3_type const & point - , size_t& i0 - , size_t& j0 - , size_t& k0 - , size_t& i1 - , size_t& j1 - , size_t& k1 - ) - { - using std::max; - using std::min; - using std::floor; - - typedef typename vector3_type::value_type real_type; - - real_type const & dx = grid.dx(); - real_type const & dy = grid.dy(); - real_type const & dz = grid.dz(); - size_t const & I = grid.I(); - size_t const & J = grid.J(); - size_t const & K = grid.K(); - - vector3_type range = grid.max_coord() - grid.min_coord(); - vector3_type diff = point - grid.min_coord(); - - diff = min( max(diff, vector3_type( real_type() ) ) , range); - - diff(0) /= dx; - diff(1) /= dy; - diff(2) /= dz; - - i0 = static_cast( floor( diff(0) ) ); - j0 = static_cast( floor( diff(1) ) ); - k0 = static_cast( floor( diff(2) ) ); - i1 = ( i0 + 1 ) % I; - j1 = ( j0 + 1 ) % J; - k1 = ( k0 + 1 ) % K; - - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_ENCLOSING_INDICES_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_erosion.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_erosion.h deleted file mode 100644 index ce270382c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_erosion.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EROSION_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EROSION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Erode level set. - * - * @param phi Input level set. - * @param radius Radius of spherical structural element. - * @param dt Time-step to use in update. - * @param psi Output levelset. Note if input is a signed distance map then output may not be a signed distance map, thus you may need to redistance output levelset. - */ - template< - typename grid_type_in - , typename real_type - , typename grid_type_out - > - inline void erosion( - grid_type_in const & phi - , real_type const & radius - , real_type const & dt - , grid_type_out & psi - ) - { - typedef typename grid_type_in::value_type input_type; - typedef typename grid_type_out::value_type output_type; - typedef typename grid_type_in::const_index_iterator input_iterator; - - assert(radius>0 || !"erosion(): radius must be positive"); - assert(dt>0 || !"erosion(): time-step must be positive"); - - input_iterator input_begin = phi.begin(); - input_iterator input_end = phi.end(); - input_iterator input; - input_type unused = phi.unused(); - for(input=input_begin;input!=input_end;++input) - if(*input!=unused) - psi(input.get_index()) = *input + dt*radius; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EROSION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_extrapolation.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_extrapolation.h deleted file mode 100644 index 65d3c9210..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_extrapolation.h +++ /dev/null @@ -1,136 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EXTRAPOLATION_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EXTRAPOLATION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * - * @param max_iterations The maximum number of iterations allowed to do extrapolation. - * @param stead_threshold The threshold value used to test for steady state. - */ - template < typename grid_type > - inline void extrapolation( - grid_type & S - , grid_type const & phi - , size_t max_iterations = 10 - // , double steady_threshold = 0.05 - ) - { - using std::min; - using std::max; - using std::fabs; - - typedef OpenTissue::math::Vector3< typename grid_type::value_type> vector3_type; - - typedef typename grid_type::iterator iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::value_type value_type; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - Gradient gradient; - - size_t I = S.I(); - size_t J = S.J(); - size_t K = S.K(); - - real_type dx = S.dx(); - real_type dy = S.dy(); - real_type dz = S.dz(); - - value_type zero = static_cast(0.0); - - grid_type F = S; //--- speed function - grid_type sign_phi; //--- sign function - compute_sign_function(phi,sign_phi); - - iterator fbegin = F.begin(); - index_iterator sbegin = S.begin(); - index_iterator send = S.end(); - - size_t iteration = 0; - bool steady_state = false; - - while (!steady_state) - { - value_type max_F = zero; //--- maximum speed, used to setup CFL condition - const_index_iterator p = phi.begin(); - iterator s_phi = sign_phi.begin(); - iterator f = fbegin; - index_iterator s = sbegin; - for(;s!=send; ++s,++f,++s_phi,++p) - { - size_t i = s.i(); - size_t j = s.j(); - size_t k = s.k(); - - vector3_type n = gradient(p); - - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - size_t idx = ( k * J + j ) * I + i; - size_t idx_im1 = ( k * J + j ) * I + im1; - size_t idx_ip1 = ( k * J + j ) * I + ip1; - size_t idx_jm1 = ( k * J + jm1 ) * I + i; - size_t idx_jp1 = ( k * J + jp1 ) * I + i; - size_t idx_km1 = ( km1 * J + j ) * I + i; - size_t idx_kp1 = ( kp1 * J + j ) * I + i; - value_type s_idx = S(idx); - value_type s_idx_im1 = S(idx_im1); - value_type s_idx_ip1 = S(idx_ip1); - value_type s_idx_jm1 = S(idx_jm1); - value_type s_idx_jp1 = S(idx_jp1); - value_type s_idx_km1 = S(idx_km1); - value_type s_idx_kp1 = S(idx_kp1); - value_type Spx = (s_idx_ip1 - s_idx )/ dx; - value_type Spy = (s_idx_jp1 - s_idx )/ dy; - value_type Spz = (s_idx_kp1 - s_idx )/ dz; - value_type Smx = (s_idx - s_idx_im1)/ dx; - value_type Smy = (s_idx - s_idx_jm1)/ dy; - value_type Smz = (s_idx - s_idx_km1)/ dz; - - *f = max( (*s_phi)*n(0) , zero)*Smx - + min( (*s_phi)*n(0) , zero)*Spx - + max( (*s_phi)*n(1) , zero)*Smy - + min( (*s_phi)*n(1) , zero)*Spy - + max( (*s_phi)*n(2) , zero)*Smz - + min( (*s_phi)*n(2) , zero)*Spz; - - max_F = max(max_F, fabs(*f)); - } - value_type time_step = static_cast( 1.0 / (max_F + 1.0) ); - for(s=sbegin, f=fbegin;s!=send;++s,++f) - (*s) = (*s) - time_step * (*f); - ++iteration; - if(iteration> max_iterations) - steady_state = true; - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_EXTRAPOLATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_fast_blur.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_fast_blur.h deleted file mode 100644 index 9acdec8de..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_fast_blur.h +++ /dev/null @@ -1,292 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_FAST_BLUR_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_FAST_BLUR_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - // The idea is to represent the blurred image as f(x,s) in terms of position - // x and scale s. Gaussian blurring is accomplished by using the input image - // I(x,s0) as the initial image (of scale s0 > 0) for the partial differential - // equation - // s*df/ds = s^2*Laplacian(f) - // where the Laplacian operator is - // Laplacian = (d/dx)^2, dimension 1 - // Laplacian = (d/dx)^2+(d/dy)^2, dimension 2 - // Laplacian = (d/dx)^2+(d/dy)^2+(d/dz)^2, dimension 3 - // - // The term s*df/ds is approximated by - // s*df(x,s)/ds = (f(x,b*s)-f(x,s))/ln(b) - // for b > 1, but close to 1, where ln(b) is the natural logarithm of b. If - // you take the limit of the right-hand side as b approaches 1, you get the - // left-hand side. - // - // The term s^2*((d/dx)^2)f is approximated by - // s^2*((d/dx)^2)f = (f(x+h*s,s)-2*f(x,s)+f(x-h*s,s))/h^2 - // for h > 0, but close to zero. - // - // Equating the approximations for the left-hand side and the right-hand side - // of the partial differential equation leads to the numerical method used in - // this code. - // - // For iterative application of these functions, the caller is responsible - // for constructing a geometric sequence of scales, - // s0, s1 = s0*b, s2 = s1*b = s0*b^2, ... - // where the base b satisfies 1 < b < exp(0.5*d) where d is the dimension of - // the image. The upper bound on b guarantees stability of the finite - // difference method used to approximate the partial differential equation. - // The method assumes a pixel size of h = 1. - // - // - // Sample usage: - // - // const int iterations = ; - // double scale = 1.0, log_base = 0.125, base = exp(0.125); - // grid_type tmp(); // Same dimensions as image! - // for (int i = 0; i < iterations; ++i, scale *= base) - // { - // fast_blur(image, tmp, scale, log_base); - // ; - // } - - //---------------------------------------------------------------------------- - - namespace detail - { - template - inline void fast_blur ( grid_type & image, grid_type & tmp, double si, double sj, double sk, double log_base) - { - using std::min; - using std::ceil; - using std::floor; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t I = image.I(); - size_t J = image.J(); - size_t K = image.K(); - - index_iterator s = image.begin(); - index_iterator s_end = image.end(); - iterator t = tmp.begin(); - for( ; s != s_end; ++s, ++t) - { - size_t i = s.i(); - size_t j = s.j(); - size_t k = s.k(); - - double dip = i + si; - double dim = i - si; - int ip = static_cast( floor(dip) ); - int im = static_cast( ceil(dim) ); - - double djp = j + sj; - double djm = j - sj; - int jp = static_cast( floor(djp) ); - int jm = static_cast( ceil(djm) ); - - double dkp = k + sk; - double dkm = k - sk; - int kp = static_cast( floor(dkp) ); - int km = static_cast( ceil(dkm) ); - - im = ( i ) ? im : 0; - jm = ( j ) ? jm : 0; - km = ( k ) ? km : 0; - ip = min( ip, I - 1 ); - jp = min( jp, J - 1 ); - kp = min( kp, K - 1 ); - - //size_t idx = ( k * J + j ) * I + i; - size_t idx_im = ( k * J + j ) * I + im; - size_t idx_ip = ( k * J + j ) * I + ip; - size_t idx_jm = ( k * J + jm ) * I + i; - size_t idx_jp = ( k * J + jp ) * I + i; - size_t idx_km = ( km * J + j ) * I + i; - size_t idx_kp = ( kp * J + j ) * I + i; - - real_type v000 = *s; - real_type vm00 = image(idx_im); - real_type vp00 = image(idx_ip); - real_type v0m0 = image(idx_jm); - real_type v0p0 = image(idx_jp); - real_type v00m = image(idx_km); - real_type v00p = image(idx_kp); - - // i portion of second central difference - double isum = -2.0*v000 + vp00 + vm00; - if ( ip < I-1 ) // not on boundary, interpolate linearly - { - real_type vpp00 = image( (k*J+j)*I+(ip+1) ); - isum += (dip-ip)*( vpp00 - vp00 ); - } - if ( im > 0 ) // not on boundary, interpolate linearly - { - real_type vmm00 = image( (k*J+j)*I+(im-1) ); - isum += (dim-im)*( vm00 - vmm00 ); - } - - // j portion of second central difference - double jsum = -2.0*v000 + v0p0 + v0m0; - if ( jp < J-1 ) // not on boundary, interpolate linearly - { - real_type v0pp0 = image( (k*J+(jp+1))*I+i ); - jsum += (djp-jp)*( v0pp0 - v0p0 ); - } - if ( jm > 0 ) // not on boundary, interpolate linearly - { - real_type v0mm0 = image( (k*J+(jm-1))*I+i ); - jsum += (djm-jm)*( v0m0 - v0mm0 ); - } - - // k portion of second central difference - double ksum = -2.0*v000 + v00p + v00m; - if ( kp < K-1 ) // use boundary value - { - real_type v00pp = image( ((kp+1)*J+j)*I+i ); - ksum += (dkp-kp)*( v00pp - v00p ); - } - if ( km > 0 ) // use boundary value - { - real_type v00mm = image( ((km-1)*J+j)*I+i ); - ksum += (dkm-km)*( v00m - v00mm ); - } - - *t = static_cast(v000 + log_base*(isum+jsum+ksum)); - } - - image = tmp; - } - - // for (k = 0; k < K; ++k) - // { - // double dkp = k + sk; - // double dkm = k - sk; - // int kp = static_cast( floor(dkp) ); - // int km = static_cast( ceil(dkm) ); - // - // for (j = 0; j < J; ++j) - // { - // double djp = j + sj; - // double djm = j - sj; - // int jp = static_cast( floor(djp) ); - // int jm = static_cast( ceil(djm) ); - // - // for (i = 0; i < I; ++i) - // { - // double dip = i + si; - // double dim = i - si; - // int ip = static_cast( floor(dip) ); - // int im = static_cast( ceil(dim) ); - // - // // i portion of second central difference - // double isum = -2.0*image(i,j,k); - // if ( ip >= I-1 ) // use boundary value - // { - // isum += image(I-1,j,k); - // } - // else // linearly interpolate - // { - // isum += image(ip,j,k)+(dip-ip)*(image(ip+1,j,k)-image(ip,j,k)); - // } - // - // if ( im <= 0 ) // use boundary value - // { - // isum += image(0,j,k); - // } - // else // linearly interpolate - // { - // isum += image(im,j,k)+(dim-im)*(image(im,j,k)-image(im-1,j,k)); - // } - // - // // j portion of second central difference - // double jsum = -2.0*image(i,j,k); - // if ( jp >= J-1 ) // use boundary value - // { - // jsum += image(i,J-1,k); - // } - // else // linearly interpolate - // { - // jsum += image(i,jp,k)+(djp-jp)*(image(i,jp+1,k)-image(i,jp,k)); - // } - // - // if ( jm <= 0 ) // use boundary value - // { - // jsum += image(i,0,k); - // } - // else // linearly interpolate - // { - // jsum += image(i,jm,k)+(djm-jm)*(image(i,jm,k)-image(i,jm-1,k)); - // } - // - // // k portion of second central difference - // double ksum = -2.0*image(i,j,k); - // if ( kp >= K-1 ) // use boundary value - // { - // ksum += image(i,j,K-1); - // } - // else // linearly interpolate - // { - // ksum += image(i,j,kp)+(dkp-kp)*(image(i,j,kp+1)-image(i,j,kp)); - // } - // - // if ( km <= 0 ) // use boundary value - // { - // ksum += image(i,j,0); - // } - // else // linearly interpolate - // { - // ksum += image(i,j,km)+(dkm-km)*(image(i,j,km)-image(i,j,km-1)); - // } - // - // tmp(i,j,k) = static_cast(image(i,j,k) + log_base*(isum+jsum+ksum)); - // } - // } - // } - - // for (k = 0; k < K; ++k) - // { - // for (j = 0; j < J; ++j) - // { - // for (i = 0; i < I; ++i) - // image(i,j,k) = tmp(i,j,k); - // } - // } - - } // namespace detail - - template - inline void fast_blur ( grid_type & image, double sx, double sy, double sz, double log_base, size_t iterations) - { - using std::exp; - - double base = exp(log_base); - grid_type tmp(image); - for( size_t i=0; i - inline void fast_blur ( grid_type & image, double s, double log_base, size_t iterations) - { - fast_blur(image, s, s, s, log_base, iterations); - } - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_FAST_BLUR_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient.h deleted file mode 100644 index 10c2140d3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient.h +++ /dev/null @@ -1,171 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - - template - inline void gradient( - grid_type const & grid - , size_t i - , size_t j - , size_t k - , vector3_type & gradient - ) - { - using std::min; - - typedef typename grid_type::value_type value_type; - typedef typename vector3_type::value_type real_type; - - static value_type const unused = grid.unused(); - - size_t const & I = grid.I(); - size_t const & J = grid.J(); - size_t const & K = grid.K(); - - size_t im1 = 0, jm1 = 0, km1 = 0; - if ( i>0 ) - im1 = i - 1; - if ( j>0 ) - jm1 = j - 1; - if ( k>0 ) - km1 = k - 1; - - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - - size_t idx = ( k * J + j ) * I + i; - size_t idx_im1 = ( k * J + j ) * I + im1; - size_t idx_ip1 = ( k * J + j ) * I + ip1; - size_t idx_jm1 = ( k * J + jm1 ) * I + i; - size_t idx_jp1 = ( k * J + jp1 ) * I + i; - size_t idx_km1 = ( km1 * J + j ) * I + i; - size_t idx_kp1 = ( kp1 * J + j ) * I + i; - - //--- Return Unused-vector if any of the values in the map is unused. - gradient = vector3_type(unused,unused,unused); - - value_type s_idx = grid( idx ); - if ( s_idx == unused ) - return; - - value_type s_im1 = grid( idx_im1 ); - if ( s_im1 == unused ) - return; - - value_type s_ip1 = grid( idx_ip1 ); - if ( s_ip1 == unused ) - return; - - value_type s_jm1 = grid( idx_jm1 ); - if ( s_jm1 == unused ) - return; - - value_type s_jp1 = grid( idx_jp1 ); - if ( s_jp1 == unused ) - return; - - value_type s_km1 = grid( idx_km1 ); - if ( s_km1 == unused ) - return; - - value_type s_kp1 = grid( idx_kp1 ); - if ( s_kp1 == unused ) - return; - - real_type r_idx = static_cast( s_idx ); - real_type r_im1 = static_cast( s_im1 ); - real_type r_ip1 = static_cast( s_ip1 ); - real_type r_jm1 = static_cast( s_jm1 ); - real_type r_jp1 = static_cast( s_jp1 ); - real_type r_km1 = static_cast( s_km1 ); - real_type r_kp1 = static_cast( s_kp1 ); - - if ( i == 0 ) - { - gradient( 0 ) = ( r_ip1 - r_idx ); - gradient( 0 ) /= grid.dx(); - } - else if ( i == ( grid.I() - 1 ) ) - { - gradient( 0 ) = ( r_idx - r_im1 ); - gradient( 0 ) /= grid.dx(); - } - else - { - gradient( 0 ) = ( r_ip1 - r_im1 ); - gradient( 0 ) /= ( 2 * grid.dx() ); - } - if ( j == 0 ) - { - gradient( 1 ) = ( r_jp1 - r_idx ); - gradient( 1 ) /= grid.dy(); - } - else if ( j == ( grid.J() - 1 ) ) - { - gradient( 1 ) = ( r_idx - r_jm1 ); - gradient( 1 ) /= grid.dy(); - } - else - { - gradient( 1 ) = ( r_jp1 - r_jm1 ); - gradient( 1 ) /= ( 2 * grid.dy() ); - } - - if ( k == 0 ) - { - gradient( 2 ) = ( r_kp1 - r_idx ); - gradient( 2 ) /= grid.dz(); - } - else if ( k == ( grid.K() - 1 ) ) - { - gradient( 2 ) = ( r_idx - r_km1 ); - gradient( 2 ) /= grid.dz(); - } - else - { - gradient( 2 ) = ( r_kp1 - r_km1 ); - gradient( 2 ) /= ( 2 * grid.dz() ); - } - } - - template - inline void gradient (grid_iterator const & iter, vector3_type & gradient ) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - grid_type const & grid = iter.get_grid(); - gradient(grid, i, j, k, gradient); - } - - template - inline typename grid_iterator::math_types::vector3_type gradient (grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::vector3_type vector3_type; - - vector3_type gradient; - - gradient(iter, gradient); - return gradient; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_at_point.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_at_point.h deleted file mode 100644 index 990f8b8ce..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_at_point.h +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_AT_POINT_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_AT_POINT_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - template - inline vector3_type gradient_at_point (grid_type const & grid, vector3_type const & point ) - { - typedef typename grid_type::value_type value_type; - - const static value_type infty = grid.infinity(); - const static value_type unused = grid.unused(); - - size_t i0, j0, k0, i1, j1, k1; - enclosing_indices(grid, point, i0, j0, k0, i1, j1, k1 ); - - vector3_type g000,g001,g010,g011,g100,g101,g110,g111; - gradient( grid, i0, j0, k0, g000 ); - gradient( grid, i1, j0, k0, g001 ); - gradient( grid, i0, j1, k0, g010 ); - gradient( grid, i1, j1, k0, g011 ); - gradient( grid, i0, j0, k1, g100 ); - gradient( grid, i1, j0, k1, g101 ); - gradient( grid, i0, j1, k1, g110 ); - gradient( grid, i1, j1, k1, g111 ); - - if ( g000( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g001( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g010( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g011( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g100( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g101( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g110( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - if ( g111( 0 ) == unused ) - return vector3_type( infty, infty, infty ); - - typename vector3_type::value_type s = ( point(0) - ( i0*grid.dx() + grid.min_coord(0) ) ) / grid.dx(); - typename vector3_type::value_type t = ( point(1) - ( j0*grid.dy() + grid.min_coord(1) ) ) / grid.dy(); - typename vector3_type::value_type u = ( point(2) - ( k0*grid.dz() + grid.min_coord(2) ) ) / grid.dz(); - - return OpenTissue::math::trillinear(g000, g001, g010, g011, g100, g101, g110, g111, s, t, u ) ; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_GRADIENT_AT_POINT_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_magnitude.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_magnitude.h deleted file mode 100644 index ce1633c6b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_gradient_magnitude.h +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRADIENT_MAGNITUDE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRADIENT_MAGNITUDE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - template - inline void gradient_magnitude( - grid_type const & grid - , size_t i - , size_t j - , size_t k - , real_type & grad_mag - ) - { - using std::sqrt; - - typedef OpenTissue::math::Vector3 vector3_type; - vector3_type g; - gradient(map,i,j,k,g); - grad_mag = sqrt(g*g); - } - - template - inline void gradient_magnitude (grid_iterator const & iter, real_type & grad_mag ) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - - grid_type const & grid = iter.get_grid(); - - gradient_magnitude(grid, i, j, k, grad_mag); - } - - template - inline typename grid_iterator::math_types::real_type gradient_magnitude( grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::real_type real_type; - - real_type grad_mag; - - gradient_magnitude(iter, grad_mag); - - return grad_mag; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRADIENT_MAGNITUDE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_hessian.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_hessian.h deleted file mode 100644 index a5ecd0f4d..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_hessian.h +++ /dev/null @@ -1,156 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_HESSIAN_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_HESSIAN_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - - template - inline void hessian( - grid_type const & grid - , size_t i - , size_t j - , size_t k - , matrix3x3_type & H - ) - { - using std::min; - - typedef typename matrix3x3_type::value_type real_type; - - static grid_type * old_grid = 0; - static real_type m_inv_dx2 = 0; ///< Pre-computed value of 1./grid.dx()*grid.dx() - static real_type m_inv_dy2 = 0; ///< Pre-computed value of 1./grid.dy()*grid.dy() - static real_type m_inv_dz2 = 0; ///< Pre-computed value of 1./grid.dz()*grid.dz() - static real_type m_inv_4dxy = 0; ///< Pre-computed value of 1./4*grid.dx()*grid.dy() - static real_type m_inv_4dxz = 0; ///< Pre-computed value of 1./4*grid.dx()*grid.dz() - static real_type m_inv_4dyz = 0; ///< Pre-computed value of 1./4*grid.dy()*grid.dz() - - if(old_grid!=&grid) - { - old_grid = const_cast(&grid); - m_inv_dx2 = 1.0 / grid.dx() * grid.dx(); - m_inv_dy2 = 1.0 / grid.dy() * grid.dy(); - m_inv_dz2 = 1.0 / grid.dz() * grid.dz(); - m_inv_4dxy = 0.25 / grid.dx() * grid.dy(); - m_inv_4dxz = 0.25 / grid.dx() * grid.dz(); - m_inv_4dyz = 0.25 / grid.dy() * grid.dz(); - } - - size_t I = grid.I(); - size_t J = grid.J(); - size_t K = grid.K(); - - size_t im1 = 0, jm1 = 0, km1 = 0; - if ( i ) - im1 = i - 1; - if ( j ) - jm1 = j - 1; - if ( k ) - km1 = k - 1; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - - size_t idx_000 = ( k * J + j ) * I + i; - size_t idx_m00 = ( k * J + j ) * I + im1; - size_t idx_p00 = ( k * J + j ) * I + ip1; - size_t idx_0m0 = ( k * J + jm1 ) * I + i; - size_t idx_0p0 = ( k * J + jp1 ) * I + i; - size_t idx_00m = ( km1 * J + j ) * I + i; - size_t idx_00p = ( kp1 * J + j ) * I + i; - - real_type d000 = 2.0 * grid( idx_000 ); - real_type dp00 = grid( idx_p00 ); - real_type dm00 = grid( idx_m00 ); - real_type d0p0 = grid( idx_0p0 ); - real_type d0m0 = grid( idx_0m0 ); - real_type d00p = grid( idx_00p ); - real_type d00m = grid( idx_00m ); - - size_t idx_pp0 = ( k * J + jp1 ) * I + ip1; - size_t idx_mp0 = ( k * J + jp1 ) * I + im1; - size_t idx_pm0 = ( k * J + jm1 ) * I + ip1; - size_t idx_mm0 = ( k * J + jm1 ) * I + im1; - size_t idx_p0p = ( kp1 * J + j ) * I + ip1; - size_t idx_m0p = ( kp1 * J + j ) * I + im1; - - real_type dpp0 = grid( idx_pp0 ); - real_type dmp0 = grid( idx_mp0 ); - real_type dpm0 = grid( idx_pm0 ); - real_type dmm0 = grid( idx_mm0 ); - real_type dp0p = grid( idx_p0p ); - real_type dm0p = grid( idx_m0p ); - - size_t idx_p0m = ( km1 * J + j ) * I + ip1; - size_t idx_m0m = ( km1 * J + j ) * I + im1; - size_t idx_0pp = ( kp1 * J + jp1 ) * I + i; - size_t idx_0pm = ( km1 * J + jp1 ) * I + i; - size_t idx_0mp = ( kp1 * J + jm1 ) * I + i; - size_t idx_0mm = ( km1 * J + jm1 ) * I + i; - - real_type dp0m = grid( idx_p0m ); - real_type dm0m = grid( idx_m0m ); - real_type d0pp = grid( idx_0pp ); - real_type d0pm = grid( idx_0pm ); - real_type d0mp = grid( idx_0mp ); - real_type d0mm = grid( idx_0mm ); - //---- Hessian matrix is defines as - // - // | d/(dx*dx) d(/(dx*dy) d/(dx*dz) | - // H = | d/(dy*dx) d(/(dy*dy) d/(dy*dz) | phi - // | d/(dz*dx) d(/(dz*dy) d/(dz*dz) | - // - // - //--- Following is a central diff approximation - H( 0, 0 ) = ( dp00 + dm00 - d000 ) * m_inv_dx2; - H( 1, 1 ) = ( d0p0 + d0m0 - d000 ) * m_inv_dy2; - H( 2, 2 ) = ( d00p + d00m - d000 ) * m_inv_dz2; - H( 1, 0 ) = H( 0, 1 ) = ( dpp0 - dmp0 - dpm0 + dmm0 ) * m_inv_4dxy; - H( 0, 2 ) = H( 2, 0 ) = ( dp0p - dm0p - dp0m + dm0m ) * m_inv_4dxz; - H( 1, 2 ) = H( 2, 1 ) = ( d0pp - d0pm - d0mp + d0mm ) * m_inv_4dyz; - } - - template - inline void hessian (grid_iterator const & iter, matrix3x3_type & H ) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - - grid_type const & grid = iter.get_grid(); - - hessian(grid, i, j, k, H); - } - - - template - inline OpenTissue::math::Matrix3x3< typename grid_iterator::math_types::real_type > - hessian (grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::real_type real_type; - typedef OpenTissue::math::Matrix3x3< real_type > matrix3x3_type; - - matrix3x3_type H; - - hessian(iter, H); - - return H; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_HESSIAN_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_idx2coord.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_idx2coord.h deleted file mode 100644 index d36a636b2..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_idx2coord.h +++ /dev/null @@ -1,92 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IDX_TO_COORD_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IDX_TO_COORD_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Index To Coordinate Conversion. - * This method computes the coordinates of the voxel with indices (i,j,k) - * - * @param map The grid. - * @param i The index of the voxel along the I-axe. - * @param j The index of the voxel along the J-axe. - * @param k The index of the voxel along the K-axe. - * @param point Upon return this parameter contains the coordinates. - */ - template - inline void idx2coord( grid_type const & grid, size_t i, size_t j, size_t k, vector3_type & point ) - { - typedef typename vector3_type::value_type real_type; - assert(i - inline void idx2coord (grid_iterator const & iter, vector3_type & point ) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - - grid_type const & grid = iter.get_grid(); - - idx2coord(grid, i, j, k, point); - } - - /** - * Index To Coordinate Conversion. - * This method computes the coordinates of the voxel with indices (i,j,k) - * - * @param iter An iterator to the voxel. - * @return Holds the coordinates. - */ - template - inline typename grid_iterator::math_types::vector3_type idx2coord (grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::vector3_type vector3_type; - - vector3_type point; - - idx2coord(iter, point); - - return point; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IDX_TO_COORD_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_ignore_region.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_ignore_region.h deleted file mode 100644 index 886f25618..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_ignore_region.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IGNORE_REGION_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IGNORE_REGION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Tag used to specify inside region of a level set (phi<0) - */ - struct inside_region_tag {}; - - /** - * Tag used to specify outside region of a level set (phi>0) - */ - struct outside_region_tag {}; - - - /** - * Mask out inside region. - * This function masks out the inside region of level set - * function by assigning the unused value to all phi<0. - * - * @param phi The level set grid. - */ - template - inline void ignore_region(grid_type & phi, inside_region_tag const & /*region*/) - { - typedef typename grid_type::value_type value_type; - typedef typename grid_type::index_iterator iterator; - - value_type unused = phi.unused(); - iterator end = phi.end(); - iterator p = phi.begin(); - for(;p!=end;++p) - if(*p < 0 ) - *p = unused; - } - - /** - * Mask out outside region. - * This function masks out the inside region of level set - * function by assigning the unused value to all phi>0. - * - * @param phi The level set grid. - */ - template - inline void ignore_region(grid_type & phi, outside_region_tag const & /*region*/) - { - typedef typename grid_type::value_type value_type; - typedef typename grid_type::index_iterator iterator; - - value_type unused = phi.unused(); - iterator end = phi.end(); - iterator p = phi.begin(); - for(;p!=end;++p) - if(*p > 0 ) - *p = unused; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IGNORE_REGION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_is_point_inside.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_is_point_inside.h deleted file mode 100644 index b5af27619..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_is_point_inside.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IS_POINT_INSIDE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IS_POINT_INSIDE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Point Inclusion Test. - * - * Checks if a given points is strictly inside the grid. - * Notice if point lies on boundary of grid, then - * it is not consider to be inside the grid. - * - * @param point Vector with coordinates for a point. - * @return True if point is strictly inside. False otherwise. - */ - template - inline bool is_point_inside( grid_type const & grid, vector3_type const & point ) - { - for ( size_t i = 0u;i < 3u;++i ) - { - if ( point( i ) <= grid.min_coord( i ) ) - return false; - if ( point( i ) >= grid.max_coord( i ) ) - return false; - } - return true; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IS_POINT_INSIDE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_iterators.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_iterators.h deleted file mode 100644 index 2be1178d1..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_iterators.h +++ /dev/null @@ -1,346 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_ITERATORS_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_ITERATORS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - namespace detail - { - - //! basic iterator for walking through the WHOLE container - template - class Iterator - : public std::iterator< std::random_access_iterator_tag, typename grid_type_::value_type > - { - public: - - typedef grid_type_ grid_type; - typedef typename grid_type::math_types math_types; - - private: - - typedef OpenTissue::grid::detail::Iterator self_type; - - protected: - - typedef typename grid_type::index_vector index_vector; - grid_type * m_grid; - pointer_type m_pos; - - public: - - - grid_type & get_grid() { return *m_grid; } - grid_type const & get_grid() const { return *m_grid; } - - pointer_type const & get_pointer() const { return m_pos; } - pointer_type & get_pointer() { return m_pos; } - - public: - - Iterator() - : m_grid( 0 ) - , m_pos( 0 ) - {} - - Iterator( grid_type * grid, pointer_type pos ) - : m_grid( grid ) - , m_pos( pos ) - {} - - reference_type operator*() - { - return * m_pos; - } - - self_type operator++( int ) - { - self_type tmp = *this; - m_pos++; - return tmp; - } - - self_type &operator++() - { - m_pos++; - return *this; - } - - void operator+=( size_t m ) - { - m_pos += m; - } - - self_type operator+ ( size_t m ) - { - self_type tmp = *this; - tmp.m_pos += m; - return tmp; - } - - self_type operator- ( size_t m ) - { - self_type tmp = *this; - tmp.m_pos -= m; - return tmp; - } - - self_type operator--( int ) - { - self_type tmp = *this; - m_pos--; - return tmp; - } - - self_type &operator--() - { - m_pos--; - return *this; - } - - void operator-=( size_t m ) { m_pos -= m; } - int operator- ( self_type const & other ) const { return m_pos -other.m_pos; } - bool operator< ( self_type const & other ) const { return m_pos < other.m_pos; } - bool operator<=( self_type const & other ) const { return m_pos <= other.m_pos; } - bool operator> ( self_type const & other ) const { return m_pos > other.m_pos; } - bool operator>=( self_type const & other ) const { return m_pos >= other.m_pos; } - - // TODO: henrikd 2005-06-27 - confirm these! - index_vector compute_index() const - { - int offset = m_pos - m_grid->data(); - index_vector res; - res(2) = offset / ( m_grid->J() * m_grid->I() ); - offset = offset % ( m_grid->J() * m_grid->I() ); - res(1) = offset / m_grid->I(); - res(0) = offset % m_grid->I(); - return res; - } - - void operator+=( index_vector const & idx ) - { - m_pos += idx(0) + m_grid->I() * idx(1) + m_grid->I() * m_grid->J() * idx(2); - } - - self_type const & operator=( index_vector const & idx ) - { - m_pos = m_grid->data() + idx(0) + m_grid->I() * idx(1) + m_grid->I() * m_grid->J() * idx(2); - return *this; - } - - bool operator!=( self_type const & other ) - { - return m_pos != other.m_pos; - } - - bool operator==( self_type const & other ) - { - return m_pos == other.m_pos; - } - }; - - - //! iterator that keeps track of i,j,k position - /*! for walking through the WHOLE container */ - template - class IndexIterator - : public OpenTissue::grid::detail::Iterator - { - public: - - typedef typename grid_type::math_types math_types; - - protected: - - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::index_vector3_type index_vector; - - private: - - typedef OpenTissue::grid::detail::Iterator base_type; - typedef OpenTissue::grid::detail::IndexIterator self_type; - - // TODO: Use index_vector directly when vector is implemented as it should be! - size_t m_i; - size_t m_j; - size_t m_k; - - static size_t const m_out_of_bounds = 0u - 1u; - - void update_indices() - { - index_vector v = this->compute_index(); - m_i = v(0); - m_j = v(1); - m_k = v(2); - } - - public: - - IndexIterator() - : base_type() - , m_i(0) - , m_j(0) - , m_k(0) - {} - - IndexIterator( base_type const& other ) - : base_type( other ) - { - operator=( other ); - } - - IndexIterator( grid_type * grid, pointer_type pos ) - : base_type( grid, pos ) - { - // optionally move ijk if m_pos is not at begining of m_grid - if ( this->m_pos != this->m_grid->data() ) - { - base_type::operator=( base_type( this->m_grid, this->m_pos ).compute_index() ); - } - } - - public: - - size_t const& i() const { return m_i; } - size_t const& j() const { return m_j; } - size_t const& k() const { return m_k; } - - index_vector get_index() const - { - return index_vector( m_i, m_j, m_k ); - } - - vector3_type get_coord() const - { - return vector3_type( - m_i * this->m_grid->dx() + this->m_grid->min_coord( 0 ) - , m_j * this->m_grid->dy() + this->m_grid->min_coord( 1 ) - , m_k * this->m_grid->dz() + this->m_grid->min_coord( 2 ) - ); - } - - public: - - self_type operator++( int ) - { - self_type tmp = *this; - ++( *this ); - return tmp; - } - - self_type &operator++() - { - ++this->m_pos; - ++m_i; - if ( m_i >= this->m_grid->I() ) - { - m_i = 0u; - ++m_j; - if ( m_j >= this->m_grid->J() ) - { - m_j = 0u; - ++m_k; - } - } - return *this; - } - - self_type operator--( int ) - { - self_type tmp = *this; - --( *this ); - return tmp; - } - - self_type &operator--() - { - --this->m_pos; - --m_i; - if ( m_i == m_out_of_bounds ) - { - m_i = this->m_grid->I() - 1; - --m_j; - if ( m_j == m_out_of_bounds ) - { - m_j = this->m_grid->J() - 1; - --m_k; - } - } - return *this; - } - - // jump to new location - self_type const & operator=( index_vector const& idx ) - { - m_i = idx(0); - m_j = idx(1); - m_k = idx(2); - this->m_pos = &( *this->m_grid ) ( idx ); - return *this; - } - - void operator+=( size_t m ) - { - this->m_pos += m; - update_indices(); - } - - void operator-=( size_t m ) - { - this->m_pos -= m; - update_indices(); - } - - self_type operator+ ( size_t m ) - { - self_type tmp = *this; - tmp.m_pos += m; - tmp.update_indices(); - return tmp; - } - - self_type operator- ( size_t m ) - { - self_type tmp = *this; - tmp.m_pos -= m; - tmp.update_indices(); - return tmp; - } - - self_type const & operator= ( base_type const & other ) - { - this->m_grid = const_cast( &( other.get_grid() ) ); - this->m_pos = other.get_pointer(); - if ( this->m_pos == this->m_grid->data() ) - { - m_i = 0u; - m_j = 0u; - m_k = 0u; - } - else - { - update_indices(); - } - return *this; - } - - }; - - } // namespace detail - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_ITERATORS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_junctions.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_junctions.h deleted file mode 100644 index 42af31836..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_junctions.h +++ /dev/null @@ -1,532 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_JUNCTIONS_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_JUNCTIONS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include // Needed for BasicMathTypes - -#include -#include -#include -#include -#include - -#include - -#include -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - namespace detail - { - - template - class JunctionCandidate - { - public: - - typedef math_types_ math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - - public: - - vector3_type m_center; //--- Estimated center of the largest enclosing sphere. - real_type m_radius; //--- Upper estimate of the radius of the largest enclosed sphere located at the junction point. - size_t m_cnt_boundary; //--- number of boundary that the largest enclosed sphere touches. - - public: - - JunctionCandidate(vector3_type const & center, real_type const & radius) - : m_center(center) - , m_radius(radius) - , m_cnt_boundary() - { - assert(m_radius>0 || !"JunctionCandidate(): Non-positive radius"); - } - }; - - - - template - class JunctionCollisionPolicy - { - public: - - typedef typename junction_candiate_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - typedef face_type data_type; - typedef junction_candiate_type query_type; - typedef bool result_container; - typedef OpenTissue::spatial_hashing::PrimeNumberHashFunction hash_function; - - typedef OpenTissue::spatial_hashing::Grid< vector3_type, OpenTissue::math::Vector3, data_type, hash_function> hash_grid; - - public: - - vector3_type min_coord(face_type const & face) const - { - vector3_type coord; - mesh::compute_face_minimum_coord(face,coord); - return coord; - } - - vector3_type max_coord(face_type const & face) const - { - vector3_type coord; - mesh::compute_face_maximum_coord(face,coord); - return coord; - } - - vector3_type min_coord(junction_candiate_type const & candidate) const - { - return vector3_type( - candidate.m_center(0) - candidate.m_radius - , candidate.m_center(1) - candidate.m_radius - , candidate.m_center(2) - candidate.m_radius - ); - } - - vector3_type max_coord(junction_candiate_type const & candidate) const - { - return vector3_type( - candidate.m_center(0) + candidate.m_radius - , candidate.m_center(1) + candidate.m_radius - , candidate.m_center(2) + candidate.m_radius - ); - } - - void reset(result_container & /*results*/) { } - - void report(data_type const & data, query_type const & query,result_container & /*results*/) - { - face_type * face = const_cast(&data); - junction_candiate_type * candidate = const_cast(&query); - - if(candidate->m_cnt_boundary >= 4) - return; - - - OpenTissue::geometry::Triangle triangle; - triangle.set( face ); - - typedef OpenTissue::math::BasicMathTypes< real_type, size_t> math_types; - OpenTissue::geometry::Sphere sphere(candidate->m_center,candidate->m_radius); - - if(OpenTissue::intersect::sphere_triangle(sphere,triangle)) - { - ++(candidate->m_cnt_boundary); - } - - } - }; - - }// namespace detail - - - - /** - * Detect MREP junctions. - * - * KE 2006-02-15: This is work in progress, please ignore it! - * - * @param aof A the aof grid. - * @param F A grid containing non-zero values for junctions. - */ - template - inline void junctions( - grid_type const & aof - , grid_type & phi - , mesh_type /*const*/ & mesh - , point_container & points - ) - { - using std::fabs; - using std::min; - using std::max; - using std::sqrt; - - typedef typename point_container::value_type vector3_type; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::value_type value_type; - typedef typename grid_type::const_iterator const_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename mesh_type::face_type face_type; - - - //--- vorticity w = grad cross grad(phi) Is this any good???? - // - // d gz d gy - // wx = ------ - ------ - // dy dz - // - // d gx d gz - // wy = ------ - ------ - // dz dx - // - // d gy d gx - // wy = ------ - ------ - // dx dy - // - - - - - //{ - //------------------------------------------------------- - //--- Thining based detection, sucks!!! ---------------- - //------------------------------------------------------- - //size_t I = phi.I(); - //size_t J = phi.J(); - //size_t K = phi.K(); - //value_type s[27]; - //grid_type tmp = aof; - //{ - // index_iterator t = tmp.begin(); - // const_index_iterator a = aof.begin(); - // const_index_iterator end = aof.end(); - // for(;a!=end;++a,++t) - // { - // (*t) = 0; - // size_t i = a.i(); - // size_t j = a.j(); - // size_t k = a.k(); - // if( (*a) > 0) - // (*t) = detail::compute_aof_value(phi,i,j,k,0.1); - // if( (*t) < 1e-5) - // { - // (*t) = 0; - // continue; - // } - // if( phi(i,j,k) > 0) - // { - // (*t) = 0; - // continue; - // } - // } - //} - //{ - // phi = tmp; - // index_iterator t = phi.begin(); - // index_iterator a = tmp.begin(); - // index_iterator end = tmp.end(); - // for(;a!=end;++a,++t) - // { - // size_t i = a.i(); - // size_t j = a.j(); - // size_t k = a.k(); - // if( (*a) < 1e-5) - // continue; - // size_t im1 = ( i ) ? i - 1 : 0; - // size_t jm1 = ( j ) ? j - 1 : 0; - // size_t km1 = ( k ) ? k - 1 : 0; - // size_t ip1 = min( i + 1u, I - 1u ); - // size_t jp1 = min( j + 1u, J - 1u ); - // size_t kp1 = min( k + 1u, K - 1u ); - // s[0] = tmp( im1, jm1, km1); - // s[1] = tmp( im1, jm1, k); - // s[2] = tmp( im1, jm1, kp1); - // s[3] = tmp( im1, j, km1); - // s[4] = tmp( im1, j, k); - // s[5] = tmp( im1, j, kp1); - // s[6] = tmp( im1, jp1, km1); - // s[7] = tmp( im1, jp1, k); - // s[8] = tmp( im1, jp1, kp1); - // s[9] = tmp( i, jm1, km1); - // s[10] = tmp( i, jm1, k); - // s[11] = tmp( i, jm1, kp1); - // s[12] = tmp( i, j, km1); - // s[13] = tmp( i, j, k); - // s[14] = tmp( i, j, kp1); - // s[15] = tmp( i, jp1, km1); - // s[16] = tmp( i, jp1, k); - // s[17] = tmp( i, jp1, kp1); - // s[18] = tmp( ip1, jm1, km1); - // s[19] = tmp( ip1, jm1, k); - // s[20] = tmp( ip1, jm1, kp1); - // s[21] = tmp( ip1, j, km1); - // s[22] = tmp( ip1, j, k); - // s[23] = tmp( ip1, j, kp1); - // s[24] = tmp( ip1, jp1, km1); - // s[25] = tmp( ip1, jp1, k); - // s[26] = tmp( ip1, jp1, kp1); - // bool has_zero_neighbor = false; - // bool has_larger_neighbor = false; - // bool is_maxima = true; - // for(size_t i=0u;i<27u;++i) - // { - // if(s[i]<=0) - // has_zero_neighbor = true; - // if(s[i]>s[13]) - // has_larger_neighbor = true; - // if(i!=13 && s[13]< s[i]) - // is_maxima = false; - // } - // if(!is_maxima && has_larger_neighbor && has_zero_neighbor)//--- thining - // { - // (*t) = 0; - // continue; - // } - // vector3_type p; - // idx2coord(aof, i, j, k, p); - // points.push_back(p); - // } - //} - - - - - //------------------------------------------------------- - //--- Angle based detection, sucks!!! ------------------- - //------------------------------------------------------- - //vector3_type g[27]; - //vector3_type p[27]; - //value_type s[27]; - //vector3_type d[27]; - //vector3_type q[27]; - //size_t I = phi.I(); - //size_t J = phi.J(); - //size_t K = phi.K(); - // const_index_iterator a = aof.begin(); - // const_index_iterator end = aof.end(); - // for(;a!=end;++a,++t) - // { - // size_t i = a.i(); - // size_t j = a.j(); - // size_t k = a.k(); - // if( (*a) < 1e-5) || phi(i,j,k) > 0) - // { - // continue; - // } - //size_t im1 = ( i ) ? i - 1 : 0; - //size_t jm1 = ( j ) ? j - 1 : 0; - //size_t km1 = ( k ) ? k - 1 : 0; - //size_t ip1 = min( i + 1u, I - 1u ); - //size_t jp1 = min( j + 1u, J - 1u ); - //size_t kp1 = min( k + 1u, K - 1u ); - //grid_gradient(phi, im1, jm1, km1, g[0]); - //grid_gradient(phi, im1, jm1, k, g[1]); - //grid_gradient(phi, im1, jm1, kp1, g[2]); - //grid_gradient(phi, im1, j, km1, g[3]); - //grid_gradient(phi, im1, j, k, g[4]); - //grid_gradient(phi, im1, j, kp1, g[5]); - //grid_gradient(phi, im1, jp1, km1, g[6]); - //grid_gradient(phi, im1, jp1, k, g[7]); - //grid_gradient(phi, im1, jp1, kp1, g[8]); - //grid_gradient(phi, i, jm1, km1, g[9]); - //grid_gradient(phi, i, jm1, k, g[10]); - //grid_gradient(phi, i, jm1, kp1, g[11]); - //grid_gradient(phi, i, j, km1, g[12]); - //grid_gradient(phi, i, j, k, g[13]); - //grid_gradient(phi, i, j, kp1, g[14]); - //grid_gradient(phi, i, jp1, km1, g[15]); - //grid_gradient(phi, i, jp1, k, g[16]); - //grid_gradient(phi, i, jp1, kp1, g[17]); - //grid_gradient(phi, ip1, jm1, km1, g[18]); - //grid_gradient(phi, ip1, jm1, k, g[19]); - //grid_gradient(phi, ip1, jm1, kp1, g[20]); - //grid_gradient(phi, ip1, j, km1, g[21]); - //grid_gradient(phi, ip1, j, k, g[22]); - //grid_gradient(phi, ip1, j, kp1, g[23]); - //grid_gradient(phi, ip1, jp1, km1, g[24]); - //grid_gradient(phi, ip1, jp1, k, g[25]); - //grid_gradient(phi, ip1, jp1, kp1, g[26]); - //grid_idx2coord(phi, im1, jm1, km1, p[0]); - //grid_idx2coord(phi, im1, jm1, k, p[1]); - //grid_idx2coord(phi, im1, jm1, kp1, p[2]); - //grid_idx2coord(phi, im1, j, km1, p[3]); - //grid_idx2coord(phi, im1, j, k, p[4]); - //grid_idx2coord(phi, im1, j, kp1, p[5]); - //grid_idx2coord(phi, im1, jp1, km1, p[6]); - //grid_idx2coord(phi, im1, jp1, k, p[7]); - //grid_idx2coord(phi, im1, jp1, kp1, p[8]); - //grid_idx2coord(phi, i, jm1, km1, p[9]); - //grid_idx2coord(phi, i, jm1, k, p[10]); - //grid_idx2coord(phi, i, jm1, kp1, p[11]); - //grid_idx2coord(phi, i, j, km1, p[12]); - //grid_idx2coord(phi, i, j, k, p[13]); - //grid_idx2coord(phi, i, j, kp1, p[14]); - //grid_idx2coord(phi, i, jp1, km1, p[15]); - //grid_idx2coord(phi, i, jp1, k, p[16]); - //grid_idx2coord(phi, i, jp1, kp1, p[17]); - //grid_idx2coord(phi, ip1, jm1, km1, p[18]); - //grid_idx2coord(phi, ip1, jm1, k, p[19]); - //grid_idx2coord(phi, ip1, jm1, kp1, p[20]); - //grid_idx2coord(phi, ip1, j, km1, p[21]); - //grid_idx2coord(phi, ip1, j, k, p[22]); - //grid_idx2coord(phi, ip1, j, kp1, p[23]); - //grid_idx2coord(phi, ip1, jp1, km1, p[24]); - //grid_idx2coord(phi, ip1, jp1, k, p[25]); - //grid_idx2coord(phi, ip1, jp1, kp1, p[26]); - //s[0] = phi( im1, jm1, km1); - //s[1] = phi( im1, jm1, k); - //s[2] = phi( im1, jm1, kp1); - //s[3] = phi( im1, j, km1); - //s[4] = phi( im1, j, k); - //s[5] = phi( im1, j, kp1); - //s[6] = phi( im1, jp1, km1); - //s[7] = phi( im1, jp1, k); - //s[8] = phi( im1, jp1, kp1); - //s[9] = phi( i, jm1, km1); - //s[10] = phi( i, jm1, k); - //s[11] = phi( i, jm1, kp1); - //s[12] = phi( i, j, km1); - //s[13] = phi( i, j, k); - //s[14] = phi( i, j, kp1); - //s[15] = phi( i, jp1, km1); - //s[16] = phi( i, jp1, k); - //s[17] = phi( i, jp1, kp1); - //s[18] = phi( ip1, jm1, km1); - //s[19] = phi( ip1, jm1, k); - //s[20] = phi( ip1, jm1, kp1); - //s[21] = phi( ip1, j, km1); - //s[22] = phi( ip1, j, k); - //s[23] = phi( ip1, j, kp1); - //s[24] = phi( ip1, jp1, km1); - //s[25] = phi( ip1, jp1, k); - //s[26] = phi( ip1, jp1, kp1); - //for(size_t i=0u;i<27u;++i) - //{ - // q[i] = p[i] - g[i]*s[i]; - // d[i] = q[i] - p[i]; - //} - //bool is_junction = false; - //real_type min_cos_theta = 100000.0; - //real_type max_cos_theta = 0.0; - //for(size_t i=0u;i<27u;++i) - //{ - // if(i==13) - // continue; - // for(size_t j=i+1;j<27u;++j) - // { - // if(j==13) - // continue; - // real_type cos_theta = fabs( g[i] * g[j] ); - // cos_theta = max(0.0, min(cos_theta, 1.0)); - // min_cos_theta = min(cos_theta,min_cos_theta); - // max_cos_theta = max(cos_theta,max_cos_theta); - // } - //} - //std::cout << min_cos_theta << " " << max_cos_theta << std::endl; - //if(min_cos_theta >0.01 && min_cos_theta< 0.99) - // is_junction = true; - //if(is_junction) - //points.push_back(p[13]); - // } - //------------------------------------------------------- - //------------------------------------------------------- - //------------------------------------------------------- - - std::cout << "junctions(): junction candiates = " << points.size() << std::endl; - } - - - template - inline void junctions2( - grid_type const & aof - , grid_type const & phi - , mesh_type /*const*/ & mesh - , point_container & points - ) - { - //--- For each point in the clamped AOF take a sphere with radius - //--- equal to the distance value plus some small threshold (voxel size!), test - //--- the sphere for intersection with the mesh-faces - //--- - //--- If at least four intersection points are found, then the AOF point is a potential junction... no! Think of a pyramid - //--- - //--- At least four points is necessary but not a sufficient condition... - //--- - //--- For each intersection take a vector from the AOF point to the face intersection point, if all such vectors - //--- contrain the sphere then we have a junction point. That is the vectors must span the entire R^3 (to remove - //--- 3DOF of translation motion of the sphere along the mrep). - //--- - //--- Do we need sub-pixel precision of AOF points?...... - //--- - //--- - //--- - //--- culver : exact polyhedra - //--- foskey : theta-SMA - //--- hoffmann: voronoi-region/distance map - //--- - //--- - //--- - //--- - - using std::fabs; - using std::min; - using std::sqrt; - - typedef typename point_container::value_type vector3_type; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::const_iterator const_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - - typedef typename grid_type::math_types math_types; - typedef typename mesh_type::face_type face_type; - typedef detail::JunctionCandidate candidate_type; - - typedef std::list candidate_container; - typedef detail::JunctionCollisionPolicy collision_policy; - typedef AABBDataQuery< typename collision_policy::hash_grid, collision_policy > query_algorithm; - - bool results = false; - query_algorithm query; - candidate_container candidates; - - { - real_type dx = phi.dx()*0.5; - real_type dy = phi.dy()*0.5; - real_type dz = phi.dz()*0.5; - real_type rho = sqrt(dx*dx+dy*dy+dz*dz)*.5; - - const_iterator p = phi.begin(); - const_index_iterator a = aof.begin(); - const_index_iterator end = aof.end(); - for(;a!=end;++a,++p) - { - if( (*a) < 1e-5 || (*p) >= 0) - continue; - vector3_type center; - idx2coord(a,center); - real_type radius = fabs( *p ); - candidate_type candidate(center,radius + rho); - candidates.push_back(candidate); - } - } - - query.init(candidates.begin(),candidates.end()); - query(mesh.face_begin(), mesh.face_end(), candidates.begin(), candidates.end(), results, typename query_algorithm::all_tag() ); - - size_t cnt = 0; - for(typename candidate_container::iterator c = candidates.begin(); c!=candidates.end();++c) - { - if(c->m_cnt_boundary >= 4) - { - points.push_back(c->m_center ); - ++cnt; - } - } - std::cout << "junctions2(): junction candiates = " << cnt << std::endl; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_JUNCTIONS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_local_minima.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_local_minima.h deleted file mode 100644 index 99b921011..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_local_minima.h +++ /dev/null @@ -1,160 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LOCAL_MINIMA_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LOCAL_MINIMA_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - namespace detail - { - /** - * Test if a specified node is a strict local minima. - * - * @param i - * @param j - * @param k - * @param phi - * - * @return True if node i,j,k is a local minima, otherwise false. - */ - template < typename grid_type > - inline bool is_local_minima( - size_t i - , size_t j - , size_t k - , grid_type const & phi - ) - { - using std::min; - static size_t idx[27]; - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - idx[0] = ( kp1 * J + jp1 ) * I + im1; - idx[1] = ( k * J + jp1 ) * I + im1; - idx[2] = ( km1 * J + jp1 ) * I + im1; - idx[3] = ( kp1 * J + j ) * I + im1; - idx[4] = ( k * J + j ) * I + im1; - idx[5] = ( km1 * J + j ) * I + im1; - idx[6] = ( kp1 * J + jm1 ) * I + im1; - idx[7] = ( k * J + jm1 ) * I + im1; - idx[8] = ( km1 * J + jm1 ) * I + im1; - idx[9] = ( kp1 * J + jp1 ) * I + i; - idx[10] = ( k * J + jp1 ) * I + i; - idx[11] = ( km1 * J + jp1 ) * I + i; - idx[12] = ( kp1 * J + j ) * I + i; - idx[13] = ( k * J + j ) * I + i; - idx[14] = ( km1 * J + j ) * I + i; - idx[15] = ( kp1 * J + jm1 ) * I + i; - idx[16] = ( k * J + jm1 ) * I + i; - idx[17] = ( km1 * J + jm1 ) * I + i; - idx[18] = ( kp1 * J + jp1 ) * I + ip1; - idx[19] = ( k * J + jp1 ) * I + ip1; - idx[20] = ( km1 * J + jp1 ) * I + ip1; - idx[21] = ( kp1 * J + j ) * I + ip1; - idx[22] = ( k * J + j ) * I + ip1; - idx[23] = ( km1 * J + j ) * I + ip1; - idx[24] = ( kp1 * J + jm1 ) * I + ip1; - idx[25] = ( k * J + jm1 ) * I + ip1; - idx[26] = ( km1 * J + jm1 ) * I + ip1; - - for(size_t i=0;i<27u;++i) - if( phi(idx[13]) > phi(idx[i]) ) - return false; - return true; - } - - } // namespace detail - - - /** - * Extract local minima nodes. - * Note that local minima may exist at non-nodal locations. This function - * only considers nodal positions. Thus if you are looking for local minima - * at sub-pixel accuracy, then you need another approach. - * - * @param phi The map from where local minima nodes should be extracted from. - * @param points Upon return this container contains all the coordinates of all nodes that where local minima. - */ - template < typename grid_type,typename point_container > - inline void local_minima_as_points( - grid_type const & phi - , point_container & points - ) - { - typedef typename point_container::value_type vector3_type; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::value_type value_type; - - const_index_iterator pend = phi.end(); - const_index_iterator p = phi.begin(); - for(;p!=pend;++p) - { - if(detail::is_local_minima(p.i(),p.j(),p.k(),phi)) - { - vector3_type point; - idx2coord(phi,p.i(),p.j(),p.k(),point); - points.push_back(point); - } - } - } - - /** - * Extract Local Minima as Points. - * - * @param phi - * @param mask A mask that can be used to mask-out nodes in phi, which is not - * of interest. Positive values correspond to nodes that are allowed - * to be classified as local minima. - * @param points - */ - template < typename grid_type,typename point_container > - inline void local_minima_as_points( - grid_type const & phi - , grid_type const & mask - , point_container & points - ) - { - typedef typename point_container::value_type vector3_type; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::value_type value_type; - const_index_iterator end = phi.end(); - const_index_iterator p = phi.begin(); - const_index_iterator m = mask.begin(); - for(;p!=end;++p,++m) - { - if( (*m) <= 0 ) - continue; - if(detail::is_local_minima(p.i(),p.j(),p.k(),phi)) - { - vector3_type point; - idx2coord(phi,p.i(),p.j(),p.k(),point); - points.push_back(point); - } - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_LOCAL_MINIMA_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_mean_curvature.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_mean_curvature.h deleted file mode 100644 index ec9e2cf51..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_mean_curvature.h +++ /dev/null @@ -1,94 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_MEAN_CURVATURE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_MEAN_CURVATURE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - template - inline void mean_curvature( - grid_type const & grid - , size_t i - , size_t j - , size_t k - , real_type & K - ) - { - using std::min; - using std::max; - using std::pow; - - typedef OpenTissue::math::Vector3 vector3_type; - typedef OpenTissue::math::Matrix3x3 matrix3x3_type; - - real_type limit_K = boost::numeric_cast( 1. / min( grid.dx(), min( grid.dy(), grid.dz() ) ) ); - - vector3_type g; - matrix3x3_type H; - - gradient( grid, i, j, k, g ); - hessian( grid, i, j, k, H ); - real_type h = g * g; - - //--- Test whether the gradient was zero, if so we simply imagine it has norm one, a better - //--- solution would proberly be to pick a random node and compute the curvature information - //--- herein (this is suggest by Oscher and Fedkiw). - if ( h == 0 ) - h = 1; - //--- Compute Mean curvature, defined as: kappa = \nabla \cdot (\nabla \phi / \norm{\nabla \phi} ) - const static real_type exponent = boost::numeric_cast( 3. / 2. ); - K = ( 1.0 / pow( h, exponent ) ) * ( - g( 0 ) * g( 0 ) * ( H( 1, 1 ) + H( 2, 2 ) ) - 2. * g( 1 ) * g( 2 ) * H( 1, 2 ) + - g( 1 ) * g( 1 ) * ( H( 0, 0 ) + H( 2, 2 ) ) - 2. * g( 0 ) * g( 2 ) * H( 0, 2 ) + - g( 2 ) * g( 2 ) * ( H( 0, 0 ) + H( 1, 1 ) ) - 2. * g( 0 ) * g( 1 ) * H( 0, 1 ) - ); - //--- Clamp Curvature, it does not make sense if we compute - //--- a curvature value that can not be representated with the - //--- current map resolution. - K = min( K, limit_K ); - K = max( K, -limit_K ); - } - - template - inline void mean_curvature (grid_iterator const & iter, real_type & K) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - - grid_type const & grid = iter.get_grid(); - mean_curvature(grid, i, j, k, K); - } - - template - inline typename grid_iterator::math_types::real_type mean_curvature( grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::real_type real_type; - - real_type K; - mean_curvature(iter, K); - - return K; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_MEAN_CURVATURE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_metamorphosis.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_metamorphosis.h deleted file mode 100644 index f64300830..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_metamorphosis.h +++ /dev/null @@ -1,239 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_METAMORPHOSIS_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_METAMORPHOSIS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Auxilliary function used by metamorphosis(). - * - * This function compute the normal velocity flow. - * - * - * - * @param phi The current surface - * @param gamma The inside-outside function of target surface - * @param F Upon return contains the normal velocity flow field. - */ - template< - typename grid_type - > - inline void metamorphosis_speed_function( - grid_type const & phi - , grid_type const & gamma - , grid_type & F - ) - { - using std::min; - using std::max; - using std::sqrt; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - real_type dx = phi.dx(); - real_type dy = phi.dy(); - real_type dz = phi.dz(); - - const_index_iterator end = phi.end(); - const_index_iterator u = phi.begin(); - index_iterator f = F.begin(); - const_index_iterator g = gamma.begin(); - - for(;u!=end; ++u,++g,++f) - { - size_t i = u.i(); - size_t j = u.j(); - size_t k = u.k(); - - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - size_t idx = ( k * J + j ) * I + i; - size_t idx_im1 = ( k * J + j ) * I + im1; - size_t idx_ip1 = ( k * J + j ) * I + ip1; - size_t idx_jm1 = ( k * J + jm1 ) * I + i; - size_t idx_jp1 = ( k * J + jp1 ) * I + i; - size_t idx_km1 = ( km1 * J + j ) * I + i; - size_t idx_kp1 = ( kp1 * J + j ) * I + i; - real_type u_idx = phi(idx); - real_type u_idx_im1 = phi(idx_im1); - real_type u_idx_ip1 = phi(idx_ip1); - real_type u_idx_jm1 = phi(idx_jm1); - real_type u_idx_jp1 = phi(idx_jp1); - real_type u_idx_km1 = phi(idx_km1); - real_type u_idx_kp1 = phi(idx_kp1); - - real_type Upx = (u_idx_ip1 - u_idx )/ dx; - real_type Upy = (u_idx_jp1 - u_idx )/ dy; - real_type Upz = (u_idx_kp1 - u_idx )/ dz; - real_type Umx = (u_idx - u_idx_im1)/ dx; - real_type Umy = (u_idx - u_idx_jm1)/ dy; - real_type Umz = (u_idx - u_idx_km1)/ dz; - - real_type Upx_min = min( Upx, 0.0); - real_type Upx_max = max( Upx, 0.0); - real_type Umx_min = min( Umx, 0.0); - real_type Umx_max = max( Umx, 0.0); - - real_type Upy_min = min( Upy, 0.0); - real_type Upy_max = max( Upy, 0.0); - real_type Umy_min = min( Umy, 0.0); - real_type Umy_max = max( Umy, 0.0); - - real_type Upz_min = min( Upz, 0.0); - real_type Upz_max = max( Upz, 0.0); - real_type Umz_min = min( Umz, 0.0); - real_type Umz_max = max( Umz, 0.0); - - if(-(*g)>=0) - *f = (*g)*sqrt( - Upx_min*Upx_min - + Umx_max*Umx_max - + Upy_min*Upy_min - + Umy_max*Umy_max - + Upz_min*Upz_min - + Umz_max*Umz_max - ); - else - *f = (*g)*sqrt( - Upx_max*Upx_max - + Umx_min*Umx_min - + Upy_max*Upy_max - + Umy_min*Umy_min - + Upz_max*Upz_max - + Umz_min*Umz_min - ); - } - //std::cout << "metamorphosis_speed_function(): done..." << std::endl; - } - - - /** - * Solid Shape Metamorphosis. - * - * Solve the PDE: - * - * \frac{\partial \phi(x) }{ \partial t} = | \nabla \phi(x)| \gamma(x) - * - * where \gamma usually is an inside-outside function of the target - * object. Usually the signed distance map of the target is used as - * \gamma. That is - * - * \gamma (x) = \phi_target (x) - * - * It could be defined more genrally as - * - * \gamma (x) = f ( \phi_target (x) ) - * - * where the function f is used to control the speed of the moving - * interface of phi. - * - * - * The process is controlled by the user by defining the initial overlapping - * regions of source and target. - * - * - * The final metamorphosis strategy is - * - * \frac{\partial \phi(x) }{ \partial t} = | \nabla \phi(x)| \gamma( T(x,alpha) ) - * - * Given the coordinate transform: - * - * y = T(x,alpha) - * - * where x is a point in source and y is corresponding point in - * target, and 0 \leq alpha \leq 1 is a parameterization such that - * - * T(x,0) = x - * T(x,1) = y - * - * The transform T is for instance useful for alignment of the objects. - * - * - * The flow is implemented using a upwind (Godonov) scheme. Currently - * implementation do not support the T-transform. The user do have the - * option of applying an f-function outside the function, since only - * the gamma-field is surplied to this function. - * - * - * @param phi Input/output level set. - * @param gamma The inside/outside function of the target object. - * @param dt The time-step size. - */ - template< - typename grid_type - > - inline void metamorphosis( - grid_type & phi - , grid_type const & gamma - , typename grid_type::math_types::real_type const & dt - ) - { - typedef typename grid_type::value_type value_type; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - using std::min; - using std::max; - using std::fabs; - - real_type dx = phi.dx(); - real_type dy = phi.dy(); - real_type dz = phi.dz(); - - grid_type F = phi; - - real_type min_delta = min ( dx, min( dy, dz)); - assert(min_delta>0 || !"metamorphosis(): minimum spacing was non-positive!"); - real_type max_gamma = max ( fabs( max(gamma)), fabs( min(gamma) ) ); - assert(max_gamma>0 || !"metamorphosis(): maximum absolute speed was non-positive!"); - real_type time = static_cast(0.0); - - while (time < dt) - { - metamorphosis_speed_function(phi,gamma,F); - - real_type time_step = min( dt, min_delta / (3.0*max_gamma) ); - assert(time_step>0 || !"metamorphosis(): time_step was non-positive!"); - std::cout << "\ttime step = " << time_step << std::endl; - - index_iterator end = phi.end(); - index_iterator u = phi.begin(); - index_iterator f = F.begin(); - for(;u!=end; ++u,++f) - (*u) = (*u) + time_step *(*f); - - time += time_step; - } - std::cout << "metamorphosis(): done..." << std::endl; - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_METAMORPHOSIS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_opening.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_opening.h deleted file mode 100644 index 720ff90e8..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_opening.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_OPENING_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_OPENING_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Opening Operation. - * - * @param phi Input level set. - * @param radius Radius of spherical structural element. - * @param dt Time-step to use in update. - * @param psi Output levelset. Note if input is a signed distance map then output may not be a signed distance map, thus you may need to redistance output levelset. - */ - template< - typename grid_type_in - , typename real_type - , typename grid_type_out - > - inline void opening( - grid_type_in const & phi - , real_type const & radius - , real_type const & dt - , grid_type_out & psi - ) - { - dilation(phi,radius,dt,psi); - erosion(psi,radius,dt,psi); - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_OPENING_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_poisson_solver.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_poisson_solver.h deleted file mode 100644 index 6cc9edae4..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_poisson_solver.h +++ /dev/null @@ -1,177 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_POISSON_SOLVER_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_POISSON_SOLVER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Gauss-Seidel Poisson Solver with Pure Von Neuman Boundary Conditions. - * - * Theory: Given the PDE - * - * \nabla^2 \phi = W - * - * Solve for phi. Writing out we have - * - * \frac{\partial^2}{\partial x^2} phi + \frac{\partial^2}{\partial y^2} phi + \frac{\partial^2}{\partial z^2} phi = W - * - * Using central diff approximation leads to - * - * a_2 ( phi_{i+1,j,k} + phi_{i-1,j,k} ) + a_1( phi_{i,j+1,k} + phi_{i,j-1,k} ) + a_0( phi_{i,j,k+1} + phi_{i,j,k-1} ) - a_3 W - * phi_{i,j,k} = -------------------------------------------------------------------------------------------------------------------------------- - * 2 a_4 - * - * where - * - * a_0 = (dx*dx*dy*dy) - * a_1 = (dx*dx*dz*dz) - * a_2 = (dy*dy*dz*dz) - * a_3 = (dx*dx*dy*dy*dz*dz) - * a_4 = a_0 + a_1 + a_2 - * - * In case dx=dy=dz this simplifies to - * - * phi_{i+1,j,k} + phi_{i-1,j,k} + phi_{i,j+1,k} + phi_{i,j-1,k} + phi_{i,j,k+1} + phi_{i,j,k-1} - dx*dx W - * phi_{i,j,k} = ---------------------------------------------------------------------------------------------------------- - * 8 - * - * The solver uses pure Neumann bondary conditions. i.e.: - * - * \nabla phi = 0 - * - * on any boundary. This means that values outside boundary are copied from - * nearest boundary voxel => claming out-of-bound indices onto boundary. - * - * @param phi Contains initial guess for solution, and upon - * return contains the solution. - * @param b The right hand side of the poisson equation. - * @param max_iterations The maximum number of iterations allowed. Default is 30 iterations. - */ - template < typename grid_type > - inline void poisson_solver( - grid_type & phi - , grid_type const & W - , size_t max_iterations = 10 - ) - { - using std::min; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::const_iterator const_iterator; - typedef typename grid_type::index_iterator index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - real_type dx = phi.dx(); - real_type dy = phi.dy(); - real_type dz = phi.dz(); - - if(dx!=dy || dx!=dz || dy!=dz) - { - //std::cout << "poisson_solver(): non-uniform grid" << std::endl; - - real_type a0 = dx*dx*dy*dy; - real_type a1 = dx*dx*dz*dz; - real_type a2 = dy*dy*dz*dz; - real_type a3 = dx*dx*dy*dy*dz*dz; - real_type a4 = 1.0/(2*(a0 + a1 + a2)); - - for(size_t iteration=0;iteration - -#include - -#include -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - namespace detail - { - class FullRedistance - { - protected: - - template < typename grid_type > - typename grid_type::value_type compute_speed( - grid_type const & phi - , grid_type const & S0 - , grid_type & speed - ) - { - using std::min; - using std::max; - using std::sqrt; - using std::fabs; - - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::const_iterator const_iterator; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::value_type real_type; - - assert(phi.I()==S0.I() || !"compute_speed(): incompatible grid dimensions"); - assert(phi.J()==S0.J() || !"compute_speed(): incompatible grid dimensions"); - assert(phi.K()==S0.K() || !"compute_speed(): incompatible grid dimensions"); - assert(phi.min_coord()==S0.min_coord() || !"compute_speed(): incompatible grid side lengths"); - assert(phi.max_coord()==S0.max_coord() || !"compute_speed(): incompatible grid side lengths"); - - speed.create(phi.min_coord(),phi.max_coord(),phi.I(),phi.J(),phi.K()); - - real_type inv_dx = static_cast ( 1.0 / phi.dx()); - real_type inv_dy = static_cast ( 1.0 / phi.dy()); - real_type inv_dz = static_cast ( 1.0 / phi.dz()); - - real_type inv_dx2 = inv_dx*inv_dx; - real_type inv_dy2 = inv_dx*inv_dy; - real_type inv_dz2 = inv_dx*inv_dz; - - real_type cfl_condition = real_type(0.0); - real_type zero = static_cast(0.0); - - iterator f = speed.begin(); - const_index_iterator p = phi.begin(); - const_index_iterator end = phi.end(); - const_iterator s0 = S0.begin(); - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - - for ( ; p != end; ++p, ++f,++s0) - { - size_t i = p.i(); - size_t j = p.j(); - size_t k = p.k(); - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1, I - 1 ); - size_t jp1 = min( j + 1, J - 1 ); - size_t kp1 = min( k + 1, K - 1 ); - size_t idx_000 = ( k * J + j ) * I + i; - size_t idx_m00 = ( k * J + j ) * I + im1; - size_t idx_p00 = ( k * J + j ) * I + ip1; - size_t idx_0m0 = ( k * J + jm1 ) * I + i; - size_t idx_0p0 = ( k * J + jp1 ) * I + i; - size_t idx_00m = ( km1 * J + j ) * I + i; - size_t idx_00p = ( kp1 * J + j ) * I + i; - real_type d000 = phi( idx_000 ); - real_type dp00 = phi( idx_p00 ); - real_type dm00 = phi( idx_m00 ); - real_type d0p0 = phi( idx_0p0 ); - real_type d0m0 = phi( idx_0m0 ); - real_type d00p = phi( idx_00p ); - real_type d00m = phi( idx_00m ); - assert( is_finite( d000 ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dp00 ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dm00 ) || !"compute_speed(): NaN encountered"); - assert( is_finite( d0p0 ) || !"compute_speed(): NaN encountered"); - assert( is_finite( d0m0 ) || !"compute_speed(): NaN encountered"); - assert( is_finite( d00p ) || !"compute_speed(): NaN encountered"); - assert( is_finite( d00m ) || !"compute_speed(): NaN encountered"); - real_type dxp = (dp00 - d000)*inv_dx; - real_type dxm = (d000 - dm00)*inv_dx; - real_type dyp = (d0p0 - d000)*inv_dy; - real_type dym = (d000 - d0m0)*inv_dy; - real_type dzp = (d00p - d000)*inv_dz; - real_type dzm = (d000 - d00m)*inv_dz; - assert( is_finite( dxp ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dxm ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dyp ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dym ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dzp ) || !"compute_speed(): NaN encountered"); - assert( is_finite( dzm ) || !"compute_speed(): NaN encountered"); - real_type dxp_max = max( dxp, zero ); - real_type dxm_max = max( dxm, zero ); - real_type dyp_max = max( dyp, zero ); - real_type dym_max = max( dym, zero ); - real_type dzp_max = max( dzp, zero ); - real_type dzm_max = max( dzm, zero ); - real_type dxp_min = min( dxp, zero ); - real_type dxm_min = min( dxm, zero ); - real_type dyp_min = min( dyp, zero ); - real_type dym_min = min( dym, zero ); - real_type dzp_min = min( dzp, zero ); - real_type dzm_min = min( dzm, zero ); - real_type dxp_max_2 = dxp_max * dxp_max; - real_type dxm_max_2 = dxm_max * dxm_max; - real_type dyp_max_2 = dyp_max * dyp_max; - real_type dym_max_2 = dym_max * dym_max; - real_type dzp_max_2 = dzp_max * dzp_max; - real_type dzm_max_2 = dzm_max * dzm_max; - real_type dxp_min_2 = dxp_min * dxp_min; - real_type dxm_min_2 = dxm_min * dxm_min; - real_type dyp_min_2 = dyp_min * dyp_min; - real_type dym_min_2 = dym_min * dym_min; - real_type dzp_min_2 = dzp_min * dzp_min; - real_type dzm_min_2 = dzm_min * dzm_min; - // yellowbook p58 - real_type phi_x_2_p = max( dxm_max_2, dxp_min_2 ); - real_type phi_x_2_m = max( dxm_min_2, dxp_max_2 ); - real_type phi_y_2_p = max( dym_max_2, dyp_min_2 ); - real_type phi_y_2_m = max( dym_min_2, dyp_max_2 ); - real_type phi_z_2_p = max( dzm_max_2, dzp_min_2 ); - real_type phi_z_2_m = max( dzm_min_2, dzp_max_2 ); - // peng99 eq40 - real_type norm_grad_phi_p = sqrt( phi_x_2_p + phi_y_2_p + phi_z_2_p ); - real_type norm_grad_phi_m = sqrt( phi_x_2_m + phi_y_2_m + phi_z_2_m ); - // Godunov scheme (yellowbook p58 eq6.3 and 6.4) - if ( (*s0) > 0 ) - { - (*f) = (*s0) * ( norm_grad_phi_p - 1.0 ); - } - else if ( (*s0) < 0 ) - { - (*f) = (*s0) * ( norm_grad_phi_m - 1.0 ); - } - else - { - (*f) = 0; - } - real_type phi_x = fabs((dp00 - dm00)*inv_dx*.5); - real_type phi_y = fabs((d0p0 - d0m0)*inv_dy*.5); - real_type phi_z = fabs((d00p - d00m)*inv_dz*.5); - real_type norm_grad_phi = sqrt(phi_x*phi_x + phi_y*phi_y + phi_z*phi_z); - - real_type tmp = fabs( (*s0)*phi_x*inv_dx2/norm_grad_phi + (*s0)*phi_y*inv_dy2/norm_grad_phi + (*s0)*phi_z*inv_dz2/norm_grad_phi ); - cfl_condition = max( cfl_condition, tmp ); - } - return 1.0/cfl_condition; - } - - template < typename grid_type , typename real_type > - real_type update( - grid_type const & phi - , grid_type const & speed - , real_type const & time_step - , grid_type & psi - , real_type const & gamma = 10e30 - ) - { - typedef typename grid_type::const_index_iterator const_iterator; - typedef typename grid_type::iterator iterator; - - assert(phi.I()==psi.I() || !"update(): incompatible grid dimensions"); - assert(phi.J()==psi.J() || !"update(): incompatible grid dimensions"); - assert(phi.K()==psi.K() || !"update(): incompatible grid dimensions"); - assert(phi.min_coord()==psi.min_coord() || !"update(): incompatible grid side lengths"); - assert(phi.max_coord()==psi.max_coord() || !"update(): incompatible grid side lengths"); - assert(time_step>0 || !"update(): time-step must be positive"); - - real_type steady = real_type(0.0); - const_iterator i = phi.begin(); - const_iterator f = speed.begin(); - iterator o = psi.begin(); - const_iterator end = phi.end(); - for ( ; i!=end;++i, ++o, ++f) - { - real_type diff = time_step * (*f); - (*o) = (*i) - diff; - diff = std::fabs(diff); - if ( (*o) < gamma && steady < diff ) - steady = diff; - } - return steady; - } - - public: - - /** - * Signed Distance Map Reinitialization. - * - * Brute-force implementation of the reinitialization of the distance function. - * The following Hamilton-Jacobi equation is solved: - * d_tau + S(d) * ( |grad phi| - 1 ) = 0 - * d(x,0) = d_0(x) = phi(x,t) - * to steady state, with S(d) approximated by: - * s = d / ( sqrt( d^2 + |Dd|^2 * delta_x^2) ) - * - * Calculates gradient magnitude of phi using upwind-scheme. - * Performs PDE update using forward Euler time discretization. - * - * @param phi Input level set that should be redistanced into a signed distance grid. - * @param psi Output level set. That is the redistaned phi. - * @param max_iterations The maximum number of iterations allowed to do re-initialization. - * @param stead_threshold The threshold value used to test for steady state. - */ - template < typename grid_type > - void operator()( - grid_type const & phi - , grid_type & psi - , size_t max_iterations = 10 - , double steady_threshold = 0.05 - ) - { - using std::min; - using std::max; - - typedef typename grid_type::value_type real_type; - - assert(phi.I()==psi.I() || !"operator(): incompatible grid dimensions"); - assert(phi.J()==psi.J() || !"operator(): incompatible grid dimensions"); - assert(phi.K()==psi.K() || !"operator(): incompatible grid dimensions"); - assert(phi.min_coord()==psi.min_coord() || !"operator(): incompatible grid side lengths"); - assert(phi.max_coord()==psi.max_coord() || !"operator(): incompatible grid side lengths"); - - static grid_type S0; // TODO: Hmm, these temporaries take up a lot of space!!! - static grid_type speed; - - compute_sign_function(phi,S0); - - real_type alpha = static_cast ( 0.9 ); //--- CFL number - //real_type min_delta = static_cast ( (min( phi.dx(), min( phi.dy(), phi.dz() ) ) ) ); - real_type max_delta = static_cast ( (max( phi.dx(), max( phi.dy(), phi.dz() ) ) ) ); - - grid_type * phi_in = const_cast(&phi); - grid_type * phi_out = ψ - - real_type gamma = static_cast( max_delta * max_iterations ); - real_type steady = static_cast(0.0); - - for(size_t iterations=0;iterations 0 || !"resample(): j scale factor must be positive"); - assert(factor_k > 0 || !"resample(): k scale factor must be positive"); - - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - typedef typename grid_type::index_iterator index_iterator; - - // TODO: Add gaussian smoothing with a standard deviation corresponding to factor_n. - //grid_type S = M; - //grid_gaussian_convolution(M,S,factor_i/2.0,factor_j/2.0,factor_k/2.0); - - m.create( - M.min_coord(), M.max_coord() - , static_cast( floor(M.I()/factor_i) ) - , static_cast( floor(M.J()/factor_j) ) - , static_cast( floor(M.K()/factor_k) ) - ); - - vector3_type point; - for( index_iterator iter = m.begin(); iter != m.end(); ++iter ) - { - idx2coord( iter,point ); - (*iter) = value_at_point( M, point ); - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_RESAMPLE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_second_derivative.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_second_derivative.h deleted file mode 100644 index f12efab6a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_second_derivative.h +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SECOND_DERIVATVE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SECOND_DERIVATVE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include // Needed for vector3. -#include // Needed for matrix3x3. - -namespace OpenTissue -{ - namespace grid - { - - template - inline void second_derivative( - grid_type const & grid - , size_t i - , size_t j - , size_t k - , real_type & derivative - ) - { - using std::fabs; - - typedef OpenTissue::math::Vector3 vector3_type; - typedef OpenTissue::math::Matrix3x3 matrix3x3_type; - - static vector3_type g; - static matrix3x3_type H; - - - real_type const too_small = 10e-7; - - gradient(grid, i, j, k, g ); - - real_type tmp = g*g; - if(fabs(tmp) < too_small) - { - derivative = 0.0; - return; - } - - hessian(grid, i, j, k, H); - derivative = (1.0)/(tmp)* (g * (H *g)); - } - - template - inline void second_derivative (grid_iterator const & iter, real_type & derivative) - { - typedef typename grid_iterator::grid_type grid_type; - - size_t i = iter.i(); - size_t j = iter.j(); - size_t k = iter.k(); - - grid_type const & grid = iter.get_grid(); - second_derivative(grid, i, j, k, derivative); - } - - template - inline typename grid_iterator::math_types::real_type - second_derivative( grid_iterator const & iter ) - { - typedef typename grid_iterator::math_types::real_type real_type; - - real_type derivative; - - second_derivative(iter, derivative); - - return derivative; - } - - } // namespace grid - -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SECOND_DERIVATVE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_split2slices.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_split2slices.h deleted file mode 100644 index cc70222c7..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_split2slices.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SPLIT2SLICES_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SPLIT2SLICES_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Split a 3D grid into multiple 2D grids along some major axis. - * - * @param grid The grid that should be split inot slices. - * @param slices Upon return this container holds grids corresponding to all the slices. - * @param axis The axis to split along. - */ - template - inline void split2slices(grid_type & grid, grid_container & slices, size_t axis = 2) - { - typename grid_type::math_types math_types; - typename math_types::vector3_type vector3_type; - - assert( axis==2 || !"split2slices(): Only splits along k-axis is currently supported"); - - slices.clear(); - - if (axis != 2) - return; - - vector3_type min_coord = grid.min_coord(); - vector3_type max_coord = grid.max_coord(); - min_coord(2) = 0; - max_coord(2) = 0; - for (size_t z = 0; z < grid.K(); ++z) - { - - grid_type slice; - slice.create(min_coord, max_coord, grid.I(), grid.J(), 2); - for (size_t y = 0; y < grid.J(); ++y) - for (size_t x = 0; x < grid.I(); ++x) - { - slice(x, y, 0) = grid(x, y, z); - slice(x, y, 1) = grid(x, y, z); // HACKING!!! - } - slices.push_back(slice); - } - } - - } // namespace grid - -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_SPLIT2SLICES_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_strict_local_minima.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_strict_local_minima.h deleted file mode 100644 index 2a7651e18..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_strict_local_minima.h +++ /dev/null @@ -1,160 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_STRICT_GRID_LOCAL_MINIMA_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_STRICT_GRID_LOCAL_MINIMA_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - - namespace detail - { - - /** - * Test if a specified node is a strict local minima. - * - * @param i - * @param j - * @param k - * @param phi - * - * @return True if node i,j,k is a local minima, otherwise false. - */ - template < typename grid_type > - inline bool is_strict_local_minima( - size_t i - , size_t j - , size_t k - , grid_type const & phi - ) - { - using std::min; - static size_t idx[27]; - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - idx[0] = ( kp1 * J + jp1 ) * I + im1; - idx[1] = ( k * J + jp1 ) * I + im1; - idx[2] = ( km1 * J + jp1 ) * I + im1; - idx[3] = ( kp1 * J + j ) * I + im1; - idx[4] = ( k * J + j ) * I + im1; - idx[5] = ( km1 * J + j ) * I + im1; - idx[6] = ( kp1 * J + jm1 ) * I + im1; - idx[7] = ( k * J + jm1 ) * I + im1; - idx[8] = ( km1 * J + jm1 ) * I + im1; - idx[9] = ( kp1 * J + jp1 ) * I + i; - idx[10] = ( k * J + jp1 ) * I + i; - idx[11] = ( km1 * J + jp1 ) * I + i; - idx[12] = ( kp1 * J + j ) * I + i; - idx[13] = ( k * J + j ) * I + i; - idx[14] = ( km1 * J + j ) * I + i; - idx[15] = ( kp1 * J + jm1 ) * I + i; - idx[16] = ( k * J + jm1 ) * I + i; - idx[17] = ( km1 * J + jm1 ) * I + i; - idx[18] = ( kp1 * J + jp1 ) * I + ip1; - idx[19] = ( k * J + jp1 ) * I + ip1; - idx[20] = ( km1 * J + jp1 ) * I + ip1; - idx[21] = ( kp1 * J + j ) * I + ip1; - idx[22] = ( k * J + j ) * I + ip1; - idx[23] = ( km1 * J + j ) * I + ip1; - idx[24] = ( kp1 * J + jm1 ) * I + ip1; - idx[25] = ( k * J + jm1 ) * I + ip1; - idx[26] = ( km1 * J + jm1 ) * I + ip1; - for(size_t i=0;i<27u;++i) - if( phi(idx[13]) >= phi(idx[i]) ) - return false; - return true; - } - - } // namespace detail - - /** - * Extract local minima nodes. - * Note that local minima may exist at non-nodal locations. This function - * only considers nodal positions. Thus if you are looking for local minima - * at sub-pixel accuracy, then you need another approach. - * - * @param phi The map from where local minima nodes should be extracted from. - * @param points Upon return this container contains all the coordinates of all nodes that where local minima. - */ - template < typename grid_type,typename point_container > - inline void strict_local_minima_as_points( - grid_type const & phi - , point_container & points - ) - { - typedef typename point_container::value_type vector3_type; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::value_type value_type; - - const_index_iterator pend = phi.end(); - const_index_iterator p = phi.begin(); - for(;p!=pend;++p) - { - if(detail::is_strict_local_minima(p.i(),p.j(),p.k(),phi)) - { - vector3_type point; - idx2coord(phi,p.i(),p.j(),p.k(),point); - points.push_back(point); - } - } - } - - /** - * Extract Strict Local Minima as Points. - * - * @param phi - * @param mask A mask that can be used to mask-out nodes in phi, which is not - * of interest. Positive values correspond to nodes that are allowed - * to be classified as local minima. - * @param points - */ - template < typename grid_type,typename point_container > - inline void strict_local_minima_as_points( - grid_type const & phi - , grid_type const & mask - , point_container & points - ) - { - typedef typename point_container::value_type vector3_type; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename vector3_type::value_type real_type; - typedef typename grid_type::value_type value_type; - const_index_iterator end = phi.end(); - const_index_iterator p = phi.begin(); - const_index_iterator m = mask.begin(); - for(;p!=end;++p,++m) - { - if( (*m) <= 0 ) - continue; - if(detail::is_strict_local_minima(p.i(),p.j(),p.k(),phi)) - { - vector3_type point; - idx2coord(phi,p.i(),p.j(),p.k(),point); - points.push_back(point); - } - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_STRICT_GRID_LOCAL_MINIMA_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_translate.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_translate.h deleted file mode 100644 index ef49febd3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_translate.h +++ /dev/null @@ -1,87 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_TRANSLATE_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_TRANSLATE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include // for abs() - -namespace OpenTissue -{ - namespace grid - { - /** - * Translate a grid by an integer vector and wrap around at border. - * - * Behavior is un-expected if input and output grid is the same.... - * TODO: make it work for zero-trans and negative trans. - * - * @param src Source grid to be translated. - * @param v translation vector. - * @param dst Upon return, contains the translated grid. - */ - template - inline void translate(grid_type const& src, vector3_int_type const& v, grid_type & dst) - { - assert( v(0)>0 && !"translate(): Only works for positive translations for now"); - assert( v(1)>0 && !"translate(): Only works for positive translations for now"); - assert( v(2)>0 && !"translate(): Only works for positive translations for now"); - - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::vector3_type vector3_type; - - // make sure translation is >0 - vector3_int_type t=v; - //if( t(0)<0 ) - // t(0) += src.I()*(1+abs(t(0)/src.I())); - //if( t(1)<0 ) - // t(1) += src.J()*(1+abs(t(1)/src.J())); - //if( t(2)<0 ) - // t(2) += src.K()*(1+abs(t(2)/src.K())); - - // Save last block of data - grid_type tmp; - tmp.create(vector3_type(0,0,0), vector3_type(1,1,1), t(0), t(1), t(2)); - size_t ti = src.I()-t(0); - size_t tj = src.J()-t(1); - size_t tk = src.K()-t(2); - size_t lk=0; - size_t lj=0; - size_t li=0; - for (size_t gk=tk; gk p( src.end() ), end( src.begin() ); - //for(p; p!=end; ++p) - //{ - // dst( (p.base().i()+t(0))%src.I(), (p.base().j()+t(1))%src.J(), (p.base().k()+t(2))%src.K() ) = *p; - //} - for(const_index_iterator p=src.end()-1; p!=src.begin()-1; --p) - { - dst( (p.i()+t(0))%src.I(), (p.j()+t(1))%src.J(), (p.k()+t(2))%src.K() ) = *p; - } - // copy over the stored values - for (size_t k=0; k - -#include //--- needed for gradient_func and value_func - -namespace OpenTissue -{ - namespace grid - { - - /** - * Uniform Point Sampling of Grid. - * - * @param phi The (signed distance grid) level set grid. - * @param points Upon return this container containts the random points. - * @param sub_Sample Optimal argument, allows one to control the density of points. - */ - template - inline void uniform_point_sampling( - grid_type const & phi - , vector3_container & points - , size_t sub_sample = 2u - ) - { - typedef typename vector3_container::value_type vector3_type; - typedef typename vector3_type::value_type real_type; - - points.clear(); - - real_type min_x = phi.min_coord(0); - real_type min_y = phi.min_coord(1); - real_type min_z = phi.min_coord(2); - - real_type max_x = phi.max_coord(0); - real_type max_y = phi.max_coord(1); - real_type max_z = phi.max_coord(2); - - real_type dx = phi.dx()*sub_sample; - real_type dy = phi.dy()*sub_sample; - real_type dz = phi.dz()*sub_sample; - - for ( real_type x = (min_x+dx); x < (max_x-dx); x += dx ) - for ( real_type y = (min_y+dy); y < (max_y-dy); y += dy ) - for ( real_type z = (min_z+dz); z < (max_z-dz); z += dz ) - { - points.push_back( vector3_type( x, y, z ) ); - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UNIFORM_POINT_SAMPLING_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient.h deleted file mode 100644 index e7c97c5ed..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient.h +++ /dev/null @@ -1,107 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Compute Upwind Gradient at Specified Node location. - * - * @param phi A the map in which we want to know the gradient. - * @param F A map containing the values of the speed function. - * @param i The i'th index of the node at which we want to compute the gradient. - * @param j The j'th index of the node at which we want to compute the gradient. - * @param k The k'th index of the node at which we want to compute the gradient. - * @param gradient Upon completion contains the upwind gradient - */ - template - inline void upwind_gradient( - grid_type const & phi - , grid_type const & F - , size_t i - , size_t j - , size_t k - , vector3_type & gradient - ) - { - using std::min; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - real_type inv_dx = 1.0/phi.dx(); - real_type inv_dy = 1.0/phi.dy(); - real_type inv_dz = 1.0/phi.dz(); - real_type inv_2dx = 0.5/phi.dx(); - real_type inv_2dy = 0.5/phi.dy(); - real_type inv_2dz = 0.5/phi.dz(); - - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - size_t i000 = ( k * J + j ) * I + i; - size_t im00 = ( k * J + j ) * I + im1; - size_t ip00 = ( k * J + j ) * I + ip1; - size_t i0m0 = ( k * J + jm1 ) * I + i; - size_t i0p0 = ( k * J + jp1 ) * I + i; - size_t i00m = ( km1 * J + j ) * I + i; - size_t i00p = ( kp1 * J + j ) * I + i; - real_type f = F(i000); - real_type v000 = phi(i000); - real_type vp00 = phi(ip00); - real_type vm00 = phi(im00); - real_type v0p0 = phi(i0p0); - real_type v0m0 = phi(i0m0); - real_type v00p = phi(i00p); - real_type v00m = phi(i00m); - // phi^t+1 = phi_t + dt*F - // F > 0 use forward diffs - // F < 0 use backward diffs - real_type nx = 0; - real_type ny = 0; - real_type nz = 0; - if(f>0) - { - nx = (vp00 - v000 ) * inv_dx; - ny = (v0p0 - v000 ) * inv_dy; - nz = (v00p - v000 ) * inv_dz; - } - else if(f<0) - { - nx = (v000 - vm00) * inv_dx; - ny = (v000 - v0m0) * inv_dy; - nz = (v000 - v00m) * inv_dz; - } - else - { - nx = (vp00 - vm00) * inv_2dx; - ny = (v0p0 - v0m0) * inv_2dy; - nz = (v00p - v00m) * inv_2dz; - } - gradient = vector3_type(nx,ny,nz); - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient_field.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient_field.h deleted file mode 100644 index 27157934c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_upwind_gradient_field.h +++ /dev/null @@ -1,115 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_FIELD_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_FIELD_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace grid - { - - /** - * Picks upwind direction of gradient according to the speed function (F). - */ - template < typename grid_type > - inline void upwind_gradient_field( - grid_type const & phi - , grid_type const & F - , grid_type & Nx - , grid_type & Ny - , grid_type & Nz - ) - { - using std::min; - - typedef OpenTissue::math::Vector3< typename grid_type::value_type> vector3_type; - - typedef typename grid_type::value_type value_type; - typedef typename grid_type::iterator iterator; - typedef typename grid_type::const_iterator const_iterator; - typedef typename grid_type::const_index_iterator const_index_iterator; - typedef typename grid_type::math_types math_types; - typedef typename math_types::real_type real_type; - - size_t I = phi.I(); - size_t J = phi.J(); - size_t K = phi.K(); - real_type inv_dx = 1.0/phi.dx(); - real_type inv_dy = 1.0/phi.dy(); - real_type inv_dz = 1.0/phi.dz(); - - real_type inv_2dx = 0.5/phi.dx(); - real_type inv_2dy = 0.5/phi.dy(); - real_type inv_2dz = 0.5/phi.dz(); - - iterator nx = Nx.begin(); - iterator ny = Ny.begin(); - iterator nz = Nz.begin(); - const_iterator f = F.begin(); - const_index_iterator pbegin = phi.begin(); - const_index_iterator pend = phi.end(); - const_index_iterator p = pbegin; - - for(;p!=pend; ++f,++p,++nx,++ny,++nz) - { - size_t i = p.i(); - size_t j = p.j(); - size_t k = p.k(); - - size_t im1 = ( i ) ? i - 1 : 0; - size_t jm1 = ( j ) ? j - 1 : 0; - size_t km1 = ( k ) ? k - 1 : 0; - size_t ip1 = min( i + 1u, I - 1u ); - size_t jp1 = min( j + 1u, J - 1u ); - size_t kp1 = min( k + 1u, K - 1u ); - size_t i000 = ( k * J + j ) * I + i; - size_t im00 = ( k * J + j ) * I + im1; - size_t ip00 = ( k * J + j ) * I + ip1; - size_t i0m0 = ( k * J + jm1 ) * I + i; - size_t i0p0 = ( k * J + jp1 ) * I + i; - size_t i00m = ( km1 * J + j ) * I + i; - size_t i00p = ( kp1 * J + j ) * I + i; - real_type v000 = phi(i000); - real_type vp00 = phi(ip00); - real_type vm00 = phi(im00); - real_type v0p0 = phi(i0p0); - real_type v0m0 = phi(i0m0); - real_type v00p = phi(i00p); - real_type v00m = phi(i00m); - // phi^t+1 = phi_t + dt*F - // F > 0 use forward diffs - // F < 0 use backward diffs - if((*f)>0) - { - *nx = (vp00 - v000 ) * inv_dx; - *ny = (v0p0 - v000 ) * inv_dy; - *nz = (v00p - v000 ) * inv_dz; - } - else if((*f)<0) - { - *nx = (v000 - vm00) * inv_dx; - *ny = (v000 - v0m0) * inv_dy; - *nz = (v000 - v00m) * inv_dz; - } - else - { - *nx = (vp00 - vm00) * inv_2dx; - *ny = (v0p0 - v0m0) * inv_2dy; - *nz = (v00p - v00m) * inv_2dz; - } - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_UPWIND_GRADIENT_FIELD_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_value_at_point.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_value_at_point.h deleted file mode 100644 index 97e88e12e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_value_at_point.h +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VALUE_AT_POINT_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VALUE_AT_POINT_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * - * - * Warning this method do not test whether the point lies inside the grid. If the point is - * outside the behavior is undefined. - */ - template - inline typename grid_type::value_type value_at_point(grid_type const & grid, vector3_type const & point ) - { - typedef typename grid_type::value_type value_type; - typedef typename vector3_type::value_type real_type; - - //const static value_type infty = grid.infinity(); - const static value_type unused = grid.unused(); - const static value_type zero = value_type(); //--- by standard default constructed is zero!!! - - size_t i0, j0, k0, i1, j1, k1; - enclosing_indices( grid, point, i0, j0, k0, i1, j1, k1 ); - - value_type d000 = grid( i0, j0, k0 ); - value_type d001 = grid( i1, j0, k0 ); - value_type d010 = grid( i0, j1, k0 ); - value_type d011 = grid( i1, j1, k0 ); - value_type d100 = grid( i0, j0, k1 ); - value_type d101 = grid( i1, j0, k1 ); - value_type d110 = grid( i0, j1, k1 ); - value_type d111 = grid( i1, j1, k1 ); - - size_t cnt_unused = 0; - -#define MAGIC(val) \ - if ( (val) == unused) { \ - (val) = zero; \ - ++cnt_unused; \ - } - MAGIC( d000 ); - MAGIC( d001 ); - MAGIC( d010 ); - MAGIC( d011 ); - MAGIC( d100 ); - MAGIC( d101 ); - MAGIC( d110 ); - MAGIC( d111 ); -#undef MAGIC - - if ( cnt_unused == 8 ) - return unused; - - real_type s = ( point(0) - ( i0*grid.dx() + grid.min_coord(0) ) ) / grid.dx(); - real_type t = ( point(1) - ( j0*grid.dy() + grid.min_coord(1) ) ) / grid.dy(); - real_type u = ( point(2) - ( k0*grid.dz() + grid.min_coord(2) ) ) / grid.dz(); - return OpenTissue::math::trillinear( d000, d001, d010, d011, d100, d101, d110, d111, s, t, u ); - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VALUE_AT_POINT_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_voxel_plane_clip.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_voxel_plane_clip.h deleted file mode 100644 index 97daa9c21..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/grid/util/grid_voxel_plane_clip.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VOXEL_PLANE_CLIP_H -#define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VOXEL_PLANE_CLIP_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace grid - { - /** - * Clip a voxelgrid against a plane. - * @param voxels Input voxel grid. - * @param plane Plane to clip against. - * @param below Upon return, contains grid of all voxels below plane. - * @param above Upon return, contains grid of all voxels above plane. - */ - template < typename grid_type, typename plane_type > - inline void voxel_plane_clip( - grid_type const& voxels - , plane_type const& plane - , grid_type & below - , grid_type & above - ) - { - typedef typename grid_type::value_type value_type; - typedef typename grid_type::const_index_iterator const_index_iterator; - - const_index_iterator voxel; - for ( voxel=voxels.begin(); voxel!=voxels.end(); ++voxel ) - { - if ( plane.signed_distance( voxel.get_coord() ) >= 0 ) - { - above( voxel.get_index() ) = voxels( voxel.get_index() ); - below( voxel.get_index() ) = value_type(0); - } - else - { - below( voxel.get_index() ) = voxels( voxel.get_index() ); - above( voxel.get_index() ) = value_type(0); - } - } - } - - } // namespace grid -} // namespace OpenTissue - -// OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_VOXEL_PLANE_CLIP_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_core_access.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_core_access.h deleted file mode 100644 index ddb111a87..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_core_access.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_CORE_ACCESS_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_CORE_ACCESS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace t4mesh - { - class t4mesh_core_access - { - public: - - template< typename feature_type, typename index_type> - static void set_index(feature_type & f, index_type idx) - { - f.set_index(idx); - } - - template< typename feature_type, typename mesh_type> - static void set_owner(feature_type & f, mesh_type * owner) - { - f.set_owner(owner); - } - - template< typename tetrahedron_type, typename index_type> - static void set_node0(tetrahedron_type & tetrahedron, index_type idx) - { - tetrahedron.set_node0(idx); - } - - template< typename tetrahedron_type, typename index_type> - static void set_node1(tetrahedron_type & tetrahedron, index_type idx) - { - tetrahedron.set_node1(idx); - } - - template< typename tetrahedron_type, typename index_type> - static void set_node2(tetrahedron_type & tetrahedron, index_type idx) - { - tetrahedron.set_node2(idx); - } - - template< typename tetrahedron_type, typename index_type> - static void set_node3(tetrahedron_type & tetrahedron, index_type idx) - { - tetrahedron.set_node3(idx); - } - - template< typename node_type, typename index_type> - static void tetrahedra_push_back(node_type & node, index_type idx) - { - node.tetrahedra_push_back(idx); - } - - template< typename node_type, typename index_type> - static void tetrahedra_remove(node_type & node, index_type idx) - { - node.tetrahedra_remove(idx); - } - - }; - - } // namespace trimesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_CORE_ACCESS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_point_container.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_point_container.h deleted file mode 100644 index 6cb8cef66..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_point_container.h +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_DEFAULT_POINT_CONTAINER_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_DEFAULT_POINT_CONTAINER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - /** - * Default Point Container. - * This utility class can be used to make the coordniates of the nodes in - * a tetrahedra mesh appear as a point container, i.e. as though the coordinates - * are stored as - * - * std::vector coordinates; - * - * and accesses as - * - * coordinates[node->idx()] - * - * instead of - * - * node->m_coord - * - * Many algoritms in OpenTissue have been implemented in such a way that they - * do not rely on nodes to have a m_coord member. Instead coordinates are passed - * as point containers. This utility make it convenient to use these algorithms - * on nodes where coordinates are stored in m_coord member. - * - */ - template - struct default_point_container - { - typedef M mesh_type; - typedef typename mesh_type::math_types math_types; - typedef typename math_types::vector3_type value_type; - - mesh_type * m_mesh; - - default_point_container(mesh_type * mesh) : m_mesh(mesh) {} - - value_type & operator[] (unsigned int const & idx) - { - return m_mesh->node(idx)->m_coord; - } - - value_type const & operator[] (unsigned int const & idx)const - { - return m_mesh->node(idx)->m_coord; - } - - void clear(){} - size_t size() const {return m_mesh->size_nodes();} - void resize(size_t){} - }; - - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_DEFAULT_POINT_CONTAINER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_traits.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_traits.h deleted file mode 100644 index a47ffff00..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_default_traits.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_DEFAULT_TRAITS_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_DEFAULT_TRAITS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - template - class DefaultNodeTraits - { - public: - - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::real_type real_type; - - vector3_type m_coord; ///< Default Coordinate of tetramesh node. - }; - - class DefaultTetrahedronTraits { }; - - class DefaultT4EdgeTraits { }; - - class DefaultT4FaceTraits { }; - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_DEFAULT_TRAITS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4boundary_faces.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4boundary_faces.h deleted file mode 100644 index dee6b33d3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4boundary_faces.h +++ /dev/null @@ -1,153 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4BOUNDARY_FACES_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4BOUNDARY_FACES_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - /** - * t4mesh Face. - */ - template - class T4Face : public F - { - public: - - typedef M mesh_type; - typedef F face_traits; - typedef T4Face face_type; - typedef typename mesh_type::index_type index_type; - - protected: - - index_type m_idx0; ///< First node index. - index_type m_idx1; ///< Second node index. - index_type m_idx2; ///< Third node index. - - public: - - T4Face() - : m_idx0(-1) - , m_idx1(-1) - , m_idx2(-1) - {} - - T4Face(index_type const & index0, index_type const & index1, index_type const & index2) - : m_idx0(index0) - , m_idx1(index1) - , m_idx2(index2) - {} - - public: - - const index_type & idx0() const { return m_idx0; } - const index_type & idx1() const { return m_idx1; } - const index_type & idx2() const { return m_idx2; } - - }; - - /** - * Tetrahedra Mesh Boundary Faces. - * Note that if subsequent changes are made to the t4mesh are not reflected in - * the faces stored in this class. Meaning that a new face-queury - * must be initiated everytime the t4mesh changes its topology. - * - * Example of usage: - * - * typedef t4mesh<...> MyMeshType; - * MyMeshType mymesh; - * ... - * class MyFaceTraits : public DefaultFaceTraits - * { - * public: - * Color m_color; - * ... - * }; - * typedef T4BoundaryFaces MyBoundaryFaces; - * MyBoundaryFaces bounday(mymesh); - * for(MyBoundaryFaces::face_iterator face=boundary.begin();face!=boundary.end();++face) - * { - * face->m_color = Color::white; - * std::cout << face->idx0() << std::endl; - * } - */ - template - class T4BoundaryFaces - { - public: - - typedef M mesh_type; - typedef F face_traits; - typedef T4Face face_type; - typedef std::list face_container; - typedef typename face_container::iterator face_iterator; - typedef typename face_container::const_iterator const_face_iterator; - - protected: - - face_container m_faces; ///< Container of extrated boundary faces. - - public: - - face_iterator begin() { return m_faces.begin(); } - face_iterator end() { return m_faces.end(); } - const_face_iterator begin() const { return m_faces.begin(); } - const_face_iterator end() const { return m_faces.end(); } - - public: - - /** - * Default Constructor. - * Constructs an empty set of boundary faces. - */ - T4BoundaryFaces() - : m_faces() - {} - - /** - * Specialezed Constructor - * Traverses the tetrahedral mesh, and extracts all boundary faces. A boundary - * face is a face that only have one neighboring tetrahedron. A face inside - * the tetrahedral mesh will have exactly two neighboring tetrahedra. - * - * Face node indices are given in CCW order. - * - * @param mesh The tetrahedral mesh from which boundary - * faces are extracted. - */ - T4BoundaryFaces(mesh_type & mesh) - : m_faces() - { - typename mesh_type::tetrahedron_iterator tetrahedron; - for( tetrahedron = mesh.tetrahedron_begin(); tetrahedron != mesh.tetrahedron_end(); ++tetrahedron) - { - if(tetrahedron->jkm()==mesh.tetrahedron_end()) - m_faces.push_back(face_type(tetrahedron->j()->idx(),tetrahedron->k()->idx(),tetrahedron->m()->idx())); - if(tetrahedron->ijm()==mesh.tetrahedron_end()) - m_faces.push_back(face_type(tetrahedron->i()->idx(),tetrahedron->j()->idx(),tetrahedron->m()->idx())); - if(tetrahedron->kim()==mesh.tetrahedron_end()) - m_faces.push_back(face_type(tetrahedron->k()->idx(),tetrahedron->i()->idx(),tetrahedron->m()->idx())); - if(tetrahedron->ikj()==mesh.tetrahedron_end()) - m_faces.push_back(face_type(tetrahedron->i()->idx(),tetrahedron->k()->idx(),tetrahedron->j()->idx())); - } - } - - }; - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4BOUNDARY_FACES_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4edges.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4edges.h deleted file mode 100644 index caed6272a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4edges.h +++ /dev/null @@ -1,219 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4EDGES_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4EDGES_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - /** - * t4mesh Edge. - * An edge is uniquely defined by the indices of its two end nodes. - * The order of indices do not matter. - */ - template - class T4Edge : public E - { - public: - - typedef M mesh_type; - typedef E edge_traits; - typedef T4Edge edge_type; - typedef typename mesh_type::index_type index_type; - - protected: - - index_type m_idxA; ///< Index to first node. - index_type m_idxB; ///< Index to second node. - - public: - - T4Edge() - : m_idxA(-1) - , m_idxB(-1) - {} - - T4Edge(index_type const & indexA, index_type const & indexB) - : m_idxA(indexA) - , m_idxB(indexB) - {} - - public: - - index_type const & idxA() const { return m_idxA; } - index_type const & idxB() const { return m_idxB; } - - bool operator==(edge_type const & edge) const - { - if(m_idxA==edge.idxA() && m_idxB==edge.idxB()) - return true; - if(m_idxB==edge.idxA() && m_idxA==edge.idxB()) - return true; - return false; - } - - bool operator!=(edge_type const & edge)const{ return !((*this)==edge); } - - }; - - /** - * Tetrahedra Mesh Edges. - * Edges are not represented explicitly in a t4mesh, only nodes and tetrahedra - * are representated. Thus this class extracts all unique edges from a t4mesh, by - * traversing it and generating explicit edges. - * - * Note that if subsequent changes are made to the t4mesh, the edge changes are - * not reflected by the edges stored in this class. Meaning that a new edge-queury - * must be initiated everytime the t4mesh changes its topology. - * - */ - template - class T4Edges - { - public: - - typedef M mesh_type; - typedef E edge_traits; - typedef T4Edge edge_type; - typedef typename mesh_type::index_type index_type; - typedef std::list edge_container; - typedef typename edge_container::iterator edge_iterator; - typedef typename edge_container::const_iterator const_edge_iterator; - - protected: - - typedef enum{white,grey,black} color_type; - typedef std::vector color_container; - typedef typename mesh_type::node_type node_type; - typedef typename node_type::tetrahedron_circulator tetrahedron_type; - typedef std::list work_queue; - - protected: - - edge_container m_edges; - - public: - - edge_iterator begin() { return m_edges.begin(); } - edge_iterator end() { return m_edges.end(); } - const_edge_iterator begin() const { return m_edges.begin(); } - const_edge_iterator end() const { return m_edges.end(); } - - - protected: - - /** - * Internally used functor, needed for visiting neighboring - * nodes and extracting un-seen edges. - */ - struct VisitT4Edge - { - void visit( - index_type & idxA - , index_type & idxB - , work_queue & work - , color_container & colors - , edge_container & edges - , mesh_type & mesh - ) - { - if(idxA==idxB)//--- self-loop, ignore it - return; - - //std::cout << "\tvisting:" <swap(where,last); - } - - this->unlink(last); - //--- This might be a bit stupid, it would - //--- proberly be better to keep track of last unused - //--- entry and only resize vector when there is no - //--- more space - m_tetrahedra.pop_back(); - return where; - } - - protected: - - protected: - - - }; - - } // namespace detail - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4MESH_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4node.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4node.h deleted file mode 100644 index 7ca712985..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4node.h +++ /dev/null @@ -1,138 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4NODE_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4NODE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - template< typename mesh_type_> - class T4Node : public mesh_type_::node_traits - { - public: - - typedef mesh_type_ mesh_type; - typedef typename mesh_type::node_type node_type; - typedef typename mesh_type::tetrahedron_type tetrahedron_type; - typedef typename mesh_type::index_type index_type; - typedef std::list tetrahedra_index_container; - typedef typename tetrahedra_index_container::iterator tetrahedra_idx_iterator; - - protected: - - index_type m_idx; ///< Global index of node - mesh_type * m_owner; ///< Pointer to mesh which the node belongs to. - tetrahedra_index_container m_tetrahedra; ///< Indices of tetrahedra this node is part of. - - private: - - friend class t4mesh_core_access; - - void set_index(index_type idx) { m_idx = idx; } - void set_owner(mesh_type * owner) { m_owner = owner; } - void tetrahedra_push_back(index_type idx) { m_tetrahedra.push_back(idx); } - void tetrahedra_remove(index_type idx) { m_tetrahedra.remove(idx); } - - public: - - class tetrahedron_circulator - { - private: - - node_type * m_node; ///< A pointer to the node - tetrahedra_idx_iterator m_it; ///< An ``local'' iterator to the tetrahedron index, indicating current tetrahedron of this iterator. - - public: - - tetrahedron_circulator() - : m_node( 0 ) - , m_it( 0 ) - {} - - tetrahedron_circulator( node_type * node, tetrahedra_idx_iterator pos) - : m_node( node ) - , m_it( pos ) - { - assert(m_node || !"tetrahedron_circulator() : node was null"); - assert(m_node->m_owner || !"tetrahedron_circulator(..) : owner was null"); - } - - bool operator== ( tetrahedron_circulator const & other ) const - { - return ( m_node == other.m_node && m_it == other.m_it ); - } - - bool operator!= ( tetrahedron_circulator const & other ) const - { - return !( *this == other); - } - - tetrahedron_type & operator*() - { - assert(m_node || !"tetrahedron_circulator::* : node was null"); - assert(m_node->m_owner || !"tetrahedron_circulator::* : owner was null"); - return *(m_node->m_owner->tetrahedron(*m_it)); - } - - tetrahedron_type * operator->() - { - assert(m_node || !"tetrahedron_circulator::-> : node was null"); - assert(m_node->m_owner || !"tetrahedron_circulator::-> : owner was null"); - return &(*(m_node->m_owner->tetrahedron(*m_it))); - } - - tetrahedron_circulator & operator++() - { - assert(m_node || !"tetrahedron_circulator::++ : node was null"); - assert(m_node->m_owner || !"tetrahedron_circulator::++ : owner was null"); - ++m_it; - return *this; - } - - }; - - tetrahedron_circulator begin() { return tetrahedron_circulator( this, m_tetrahedra.begin() ); } - tetrahedron_circulator end() { return tetrahedron_circulator( this, m_tetrahedra.end() ); } - - /** - * Get Number of Tetrahedra. - * - * @return The number of tetrahedra that this node is part of. If - * zero it means the node is an isolated node. - */ - size_t size_tetrahedra() const { return m_tetrahedra.size(); } - - bool isolated() const { return m_tetrahedra.empty(); } - - public: - - T4Node() - : m_idx( mesh_type::undefined() ) - , m_owner(0) - , m_tetrahedra() - {} - - public: - - index_type idx() const { return m_idx; } - mesh_type * owner() { return m_owner; } - mesh_type const * owner() const { return m_owner; } - - }; - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4NODE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4tetrahedron.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4tetrahedron.h deleted file mode 100644 index 8f81b3d9e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/t4mesh_t4tetrahedron.h +++ /dev/null @@ -1,105 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_T4TETRAHEDRON_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_T4TETRAHEDRON_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace t4mesh - { - - template< typename mesh_type_> - class T4Tetrahedron : public mesh_type_::tetrahedron_traits - { - public: - typedef mesh_type_ mesh_type; - typedef typename mesh_type::node_type node_type; - typedef typename mesh_type::tetrahedron_type tetrahedron_type; - typedef typename mesh_type::index_type index_type; - - index_type m_idx; ///< Global index of tetrahedron - mesh_type * m_owner; ///< Pointer to mesh which the node belongs to. - index_type m_nodes[4]; ///< Global index of node i,j,k and m - - private: - - friend class t4mesh_core_access; - - void set_index(index_type idx) { m_idx = idx; } - void set_owner(mesh_type * owner) { m_owner = owner; } - void set_node0(index_type idx) { m_nodes[0] = idx; } - void set_node1(index_type idx) { m_nodes[1] = idx; } - void set_node2(index_type idx) { m_nodes[2] = idx; } - void set_node3(index_type idx) { m_nodes[3] = idx; } - - public: -#ifdef TODO_ERWIN - T4Tetrahedron() - : m_idx( mesh_type::undefined() ) - , m_owner(0) - { - this->m_nodes.assign( mesh_type::undefined() ); - } -#endif - - public: - - node_type* node(index_type idx) - { - return &m_owner->m_nodes[m_nodes[idx]]; - } - - const node_type* node(index_type idx) const - { - return &m_owner->m_nodes[m_nodes[idx]]; - } - - node_type* i() - { - return node(0); - } - node_type* j() - { - return node(1); - } - node_type* k() - { - return node(2); - } - node_type* m() - { - return node(3); - } - - - index_type idx() const { return m_idx; } - - index_type node_idx(index_type const & local_idx) const - { - assert(0<=local_idx); - assert(local_idx<=3); - - return m_nodes[local_idx]; - } - - - mesh_type * owner() { return m_owner; } - mesh_type const * owner() const { return m_owner; } - - - - }; - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_T4TETRAHEDRON_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_block_generator.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_block_generator.h deleted file mode 100644 index f5c28ab39..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_block_generator.h +++ /dev/null @@ -1,114 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_BLOCK_GENERATOR_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_BLOCK_GENERATOR_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - -namespace OpenTissue -{ - namespace t4mesh - { - - - /** - * t4mesh Block Generator. - * - * @param I The number of blocks along x axis. - * @param J The number of blocks along y axis. - * @param K The number of blocks along z axis. - * @param block_width The edgelength of the blocks along x-axis. - * @param block_height The edgelength of the blocks along x-axis. - * @param block_depth The edgelength of the blocks along x-axis. - * @param mesh A generic t4mesh, which upon return holds the generated mesh. - */ - template < typename real_type, typename t4mesh_type > - void generate_blocks( - unsigned int const & I - , unsigned int const & J - , unsigned int const & K - , real_type const & block_width - , real_type const & block_height - , real_type const & block_depth - , t4mesh_type & mesh - ) - { - - mesh.clear(); - - unsigned int numVertices = (I + 1) * (J + 1) * (K + 1); - for (unsigned int i=0; i - - -#include - -namespace OpenTissue -{ - - namespace t4mesh - { - - namespace mesh_coupling - { - - template - class collision_policy - { - public: - - typedef typename surface_mesh::vertex_type vertex_type; - typedef typename volume_mesh::tetrahedron_type tetrahedron_type; - - typedef double real_type; - typedef math::Vector3 point_type; - - typedef vertex_type* data_type; - typedef tetrahedron_type query_type; - - typedef OpenTissue::spatial_hashing::GridHashFunction hash_function; - typedef OpenTissue::spatial_hashing::Grid< point_type, math::Vector3, data_type, hash_function> hash_grid; - - class result_type - { - public: - vertex_type * m_data; - tetrahedron_type * m_query; - real_type m_w0; - real_type m_w1; - real_type m_w2; - real_type m_w3; - }; - - typedef std::list result_container; - - public: - - point_type position(data_type const & data) const - { - return data->m_coord; - } - - point_type min_coord(query_type const & query) const - { - using std::min; - - point_type & p0 = query.i()->m_coord; - point_type & p1 = query.j()->m_coord; - point_type & p2 = query.k()->m_coord; - point_type & p3 = query.m()->m_coord; - return min( p0, min( p1 , min( p2, p3) ) ); - } - - point_type max_coord(query_type const & query) const - { - using std::max; - - point_type & p0 = query.i()->m_coord; - point_type & p1 = query.j()->m_coord; - point_type & p2 = query.k()->m_coord; - point_type & p3 = query.m()->m_coord; - return max( p0, max( p1 , max( p2, p3) ) ); - } - - void reset(result_container & results) { results.clear(); }; - void report(data_type const & data, query_type const & query,result_container & results) - { - //--- First we do a quick rejection test. If the vertex is allready reported then simply ignore it!!! - if(data->m_tag == 1) - return; - - point_type & pi = query.i()->m_coord; - point_type & pj = query.j()->m_coord; - point_type & pk = query.k()->m_coord; - point_type & pm = query.m()->m_coord; - point_type & p = data->m_coord; - - real_type delta = 10e-5; - real_type lower = - delta; - real_type upper = 1.+ delta; - result_type result; - OpenTissue::geometry::barycentric_algebraic(pi,pj,pk,pm,p,result.m_w0,result.m_w1,result.m_w2,result.m_w3); - if( - (result.m_w0>lower)&&(result.m_w0lower)&&(result.m_w1lower)&&(result.m_w2lower)&&(result.m_w3m_tag = 1; - result.m_data = const_cast( data ); - result.m_query = const_cast( &query ); - results.push_back( result ); - return; - } - } - }; - - /** - * Bind Mesh Surface to t4mesh. - * - * - * @param M A surface mesh that should be bound to a volume mesh. - * @param V A T4Mesh it is implicitly assumed that node traits have a - * real_type and vector3_type (these are defined in the - * default node traits). - */ - template - void bind_surface (surface_mesh & M,volume_mesh & V,point_container & barycentric,index_container & bind_indices) - { - - //--- - //--- The main idea behind mesh coupling is to create a multiresolution for the - //--- animataion. The idea is to separate the visual geometry from the geometry - //--- used to compute the dynamics. This allows one to use highly detailed visual - //--- representation of objects, while using a computational low cost coarse volume - //--- mesh for the computing the dynamcis. - //--- - //--- A technique for doing this is callled mesh coupling or cartoon meshing. Below - //--- we describe how it is used together with tetrahedral meshes. It is however a - //--- general approach and can be used with other types of geometries, FFD lattices - //--- are probably anohter very common example on mesh coupling. - //--- - //--- When using Mesh Coulping the first step is to bind the vertices of the surface - //--- mesh to the tetrahedral elements of the volume mesh. - //--- - //--- Here we use a spatial hashing algorithm to find vertex tetrahedron pairs, where - //--- the vertex is embedded inside the tetrahedron. The actual test is done by first - //--- computing the barycentric coordinates of the vertex with respect to a tetrahedron - //--- in question. - //--- - //--- If each barycentric coordinate is greather than equal to zero and less than equal - //--- to one then the vertex is embedded in the tetrahedron. In pratice we need to apply - //--- treshold testing to counter numerical precision problems. It may therefor happen - //--- that vertices lying close to a face of a tetrahedron gets reported twice. Once of - //--- the tetrahedron embedding it and once for the neighboring tetetrahedron. The same - //--- happens if the vertex lies exactly on a face. - //--- - //--- Therefore, we firstdo a quick rejection test. If the vertex is allready reported - //--- then simply ignore it!!! - //--- - //--- Before rendering each frame, we must update the vertex positions to reflect the - //--- underlying deformation of the tetrahedral mesh. This is done using the barycentric - //--- coordinates, such that the new vertex position is given by - //--- - //--- c = w0 p0 + w1 p1 + w2 p2 + w3 p3 - //--- - //--- Where p0, p1 ,p2, and p3 are the nodal coordinates of the tetrahedron which - //--- the vertex was bounded to. - //--- - //--- If stiffness warping is used, the element rotation, Re, can be - //--- used to update the undeformed vertex normal, n0, into the deformed - //--- vertex normal, n, by, - //--- - //--- n = Re n0 - //--- - //--- Often a tetrahedra mesh is used with a conservative coverage of the surface mesh. - //--- That means one is guaranteed that all vertices of the surface mesh are embedded - //--- inside one unique tetrahedron. However, mesh coupling can be used in cases where - //--- one only have a partial coverage. The solution is to bind a vertex to the - //--- closest tetrahedron. Eventhough the vertex lies outside the tetrahedra mesh, the - //--- barycentric coordinates extend the deformation of the tetrahedra mesh beyond - //--- its surface. - //--- - typedef collision_policy policy; - typedef OpenTissue::spatial_hashing::PointDataQuery point_query_type; - typename policy::result_container results; - point_query_type point_query; - point_query.auto_init_settings(V.tetrahedron_begin(),V.tetrahedron_end()); - //--- perform query - mesh::clear_vertex_tags(M); - - std::vector vertex_ptr_container(M.size_vertices()); - unsigned int i = 0; - for(typename surface_mesh::vertex_iterator v= M.vertex_begin();v!=M.vertex_end();++v,++i) - { - vertex_ptr_container[i] = &(*v); - } - - point_query( - vertex_ptr_container.begin() - , vertex_ptr_container.end() - , V.tetrahedron_begin() - , V.tetrahedron_end() - , results - , typename point_query_type::all_tag() - ); - - unsigned int size = static_cast( results.size() ); - barycentric.resize(size); - bind_indices.resize(size); - typename policy::result_container::iterator Rbegin = results.begin(); - typename policy::result_container::iterator Rend = results.end(); - for(typename policy::result_container::iterator R = Rbegin;R!=Rend;++R) - { - unsigned int i = static_cast( R->m_data->get_handle().get_idx() ); - - barycentric[i](0) = R->m_w1; - barycentric[i](1) = R->m_w2; - barycentric[i](2) = R->m_w3; - bind_indices[i] = R->m_query->idx(); - } - }; - - /** - * Update Surface Mesh. - * - * - * @param M A surface mesh that is bound to a volume mesh. - * @param V The volume mesh that the surface is bound to. It - * is implicitly assumed that the node traits define - * a real_type and vector3_type ((these are defined in - * the default node traits). - * @param barycentric - * @param bind_info - */ - template - void update_surface ( - surface_mesh & M, - volume_mesh & V, - point_container const & barycentric, - index_container const & bind_info - ) - { - typename surface_mesh::vertex_iterator begin = M.vertex_begin(); - typename surface_mesh::vertex_iterator end = M.vertex_end(); - - typedef typename volume_mesh::tetrahedron_iterator tetrahedron_iterator; - typedef typename volume_mesh::node_type node_type; - typedef typename node_type::real_type real_type; - typedef typename node_type::vector3_type vector3_type; - - for( typename surface_mesh::vertex_iterator v = begin; v!=end; ++v) - { - unsigned int i = static_cast( v->get_handle().get_idx() ); - tetrahedron_iterator T = V.tetrahedron( bind_info[i] ); - - real_type w1 = barycentric[i](0); - real_type w2 = barycentric[i](1); - real_type w3 = barycentric[i](2); - real_type w0 = 1 - w1 - w2 - w3; - - vector3_type & p0 = T->i()->m_coord; - vector3_type & p1 = T->j()->m_coord; - vector3_type & p2 = T->k()->m_coord; - vector3_type & p3 = T->m()->m_coord; - v->m_coord = p0*w0 + p1*w1 + p2*w2 + p3*w3; - - } - }; - - } // namespace mesh_coupling - - } // namespace t4mesh - -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_MESH_COUPLING_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_remove_redundant_nodes.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_remove_redundant_nodes.h deleted file mode 100644 index e69de29bb..000000000 diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_constrained_delaunay_tetrahedralization.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_constrained_delaunay_tetrahedralization.h deleted file mode 100644 index 681840702..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_constrained_delaunay_tetrahedralization.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_CONSTRAINED_DELAUNAY_TRIANGULATION_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_CONSTRAINED_DELAUNAY_TRIANGULATION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace t4mesh - { - namespace tetgen - { - - /** - * Constrained Delaunay Tetrahedralization Routine. - * - uses TetGen to create the resulting tetrahedal mesh - * - * @param polymesh A poly mesh, which holds a closed two-manifold. - * @param t4mesh A generic t4mesh, which upon return holds the generated tetrahedal mesh. - * - * @return if succesfull then the return value is true otherwise it is false. - */ - template - inline bool constrained_delaunay_tetrahedralization(const polymesh_type& polymesh, t4mesh_type & t4mesh) - { - OpenTissue::t4mesh::mesh_lofter_settings config; - - config.m_intermediate_file = "tmp"; - config.m_quality_ratio = 0.0; - config.m_maximum_volume = 0.0; - config.m_quiet_output = true; - - return OpenTissue::t4mesh::mesh_lofter(t4mesh, polymesh, config); - } - - } // namespace tetgen - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_CONSTRAINED_DELAUNAY_TRIANGULATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_mesh_lofter.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_mesh_lofter.h deleted file mode 100644 index 36bc1a5ae..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_mesh_lofter.h +++ /dev/null @@ -1,128 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_MESH_LOFTER_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_MESH_LOFTER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include -#include - -#include -#include -#include -#include - - -namespace OpenTissue -{ - namespace t4mesh - { - - struct mesh_lofter_settings - { - mesh_lofter_settings() - : m_quality_ratio(2./*std::sqrt(2.)*/) - , m_maximum_volume(0.) - , m_intermediate_file("") - , m_quiet_output(false) - , m_verify_input(false) - {} - double m_quality_ratio; ///< quality t4mesh is issued if > 0. A minimum radius-edge ratio may be specifyed (default 2.0). - double m_maximum_volume; ///< max volume constraints on t4mesh if > 0. - std::string m_intermediate_file; ///< use intermediate files to/fro tetget if name specified. - bool m_quiet_output; ///< keep output spam as silent as possible, great for RELEASE. - bool m_verify_input; ///< DEBUG: detects plc intersections, i.e. verify "bad" input mesh. - }; - - - /** - * t4mesh_mesh_lofter. - * - uses tetgen to loft/extrude a closed two-manifold polymesh to a generic tetrahedal mesh - * - * @param polymesh A poly mesh, which holds a closed two-manifold. - * @param t4mesh A generic t4mesh, which upon return holds the generated tetrahedal mesh. - * @param settings The settings/configuration for TetGen, can be omitted to use the default settings. - * - */ - // TODO: Implement work-in-mem solution, thus avoid using intermediate files [MKC] - template - bool mesh_lofter(t4mesh_type& t4mesh, const polymesh_type& polymesh, const mesh_lofter_settings & settings = mesh_lofter_settings()) - { - // local functions are no go in C++, thus we need to wrap them in a local class, tsk! - class local_aux - { - public: - static bool error(const std::string& text) - { - using std::operator<<; - std::cerr << "ERROR [t4mesh_mesh_lofter]:\n- " << text << std::endl; - return false; - } - }; - - // convenient pointer to use with TetGen - char* tmp_file = settings.m_intermediate_file.size()>0?const_cast(settings.m_intermediate_file.c_str()):NULL; - - // "no tmp file" won't work check - if (!tmp_file) - return local_aux::error("current version only supports using intermediate files"); - - if (!is_manifold(polymesh)) - return local_aux::error("polymesh is not a two-manifold"); - - if (tmp_file) - if (!tetgen_write(settings.m_intermediate_file+".poly", polymesh)) - return local_aux::error("mesh_tetgen_write failed in writing the polymesh file: '"+settings.m_intermediate_file+".poly'"); - - std::stringstream tmp; - tmp << "p"; // piecewise linear complex (always) - if (settings.m_verify_input) - tmp << "d"; - else { - if (settings.m_quality_ratio > 0) - tmp << "q" << settings.m_quality_ratio; // quality - if (settings.m_maximum_volume > 0) - tmp << "a" << settings.m_maximum_volume; // max volume - if (settings.m_quiet_output) - tmp << "Q"; // keep quiet :) - } - std::string txt = tmp.str().c_str(); - tetgenbehavior config; - // MKC: setting vars in tetgenbehavior explicitly is too complicated, and requires a deeper knowledge of the system :( - if (!config.parse_commandline(const_cast(txt.c_str()))) // parsing a "cmd" line will set the correct vars and their dependecies. - return local_aux::error("TetGen parse_commandline failed: '"+txt+"'"); - - tetgenio in, out; - if (tmp_file) - if (!in.load_poly(tmp_file)) - return local_aux::error("TetGen load_poly failed: '"+settings.m_intermediate_file+"'"); - - // let TetGen do some magic :) - tetrahedralize(&config, &in, &out); - - if (out.numberoftetrahedra < 1) - return local_aux::error("TetGen tetrahedralize failed: no tetrahedra generated!"); - - if (tmp_file) { - out.save_elements(tmp_file); - out.save_nodes(tmp_file); - - if (!tetgen_read(settings.m_intermediate_file, t4mesh)) - return local_aux::error("t4mesh_tetgen_read failed in reading the data: '"+settings.m_intermediate_file+"'"); - } - - return true; - } - - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_MESH_LOFTER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_quality_tetrahedralization.h b/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_quality_tetrahedralization.h deleted file mode 100644 index 5f05ab450..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/containers/t4mesh/util/t4mesh_tetgen_quality_tetrahedralization.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H -#define OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace t4mesh - { - namespace tetgen - { - - /** - * Quality Tetrahedralization Routine. - * - uses TetGen to create the resulting tetrahedal mesh - * - * @param polymesh A poly mesh, which holds a closed two-manifold. - * @param t4mesh A generic t4mesh, which upon return holds the generated tetrahedal mesh. - * - * @return if succesfull then the return value is true otherwise it is false. - */ - template - inline bool quality_tetrahedralization(const polymesh_type& polymesh, t4mesh_type & t4mesh) - { - OpenTissue::t4mesh::mesh_lofter_settings config; - - config.m_intermediate_file = "tmp"; - config.m_quality_ratio = 2.0; - config.m_maximum_volume = 0.0; - config.m_quiet_output = true; - - return OpenTissue::t4mesh::mesh_lofter(t4mesh, polymesh, config); - } - - } // namespace tetgen - } // namespace t4mesh -} // namespace OpenTissue - -//OPENTISSUE_CORE_CONTAINERS_T4MESH_UTIL_T4MESH_TETGEN_QUALITY_TETRAHEDRALIZATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_aabb.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_aabb.h deleted file mode 100644 index 77a042fe4..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_aabb.h +++ /dev/null @@ -1,368 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_AABB_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_AABB_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -#include -#include - - -namespace OpenTissue -{ - - namespace geometry - { - - /** - * Axed Aligned Bounding Box (AABB). - */ - template< typename math_types_ > - class AABB - : public VolumeShape< math_types_ > - , public OpenTissue::utility::ClassID< AABB > - { - public: - - typedef math_types_ math_types; - typedef typename math_types::value_traits value_traits; - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - typedef typename math_types::quaternion_type quaternion_type; - - public: - - vector3_type m_min; ///< Coordinates of minimum corner. - vector3_type m_max; ///< Coordinates of maximum corner. - - public: - - size_t const class_id() const { return OpenTissue::utility::ClassID >::class_id(); } - - AABB() - { - m_min.clear(); - m_max.clear(); - } - - explicit AABB( - real_type const & xmin - , real_type const & ymin - , real_type const & zmin - , real_type const & xmax - , real_type const & ymax - , real_type const & zmax - ) - { - set(xmin,ymin,zmin,xmax,ymax,zmax); - } - - explicit AABB( vector3_type const & pmin_v, vector3_type const & pmax_v) { set(pmin_v,pmax_v); } - - virtual ~AABB() {} - - public: - - void compute_surface_points(std::vector & points) const - { - vector3_type dia; - dia = m_max - m_min; - - vector3_type p000 = m_min; - vector3_type p001 = m_min + vector3_type( dia[0], value_traits::zero(), value_traits::zero()); - vector3_type p010 = m_min + vector3_type(value_traits::zero(), dia[1], value_traits::zero()); - vector3_type p011 = m_min + vector3_type( dia[0], dia[1], value_traits::zero()); - vector3_type p100 = m_min + vector3_type(value_traits::zero(), value_traits::zero(), dia[2]); - vector3_type p101 = m_min + vector3_type( dia[0], value_traits::zero(), dia[2]); - vector3_type p110 = m_min + vector3_type(value_traits::zero(), dia[1], dia[2]); - vector3_type p111 = m_min + vector3_type( dia[0], dia[1], dia[2]); - - points.push_back(p000); - points.push_back(p001); - points.push_back(p010); - points.push_back(p011); - points.push_back(p100); - points.push_back(p101); - points.push_back(p110); - points.push_back(p111); - } - - vector3_type center() const { return vector3_type( (m_max+m_min)/value_traits::two() ); } - - public: - /** - * Assingment Method. - * Assigns the size of the specified AABB to this AABB. - * - * @param other_aabb Another AABB - */ - void set(AABB const & other_aabb) - { - this->m_min = other_aabb.m_min; - this->m_max = other_aabb.m_max; - } - - void set( vector3_type const & pmin_v, vector3_type const & pmax_v) - { - assert(pmin_v[0] <= pmax_v[0] || !"AABB.set(): minimum must be less than or equal to maximum"); - assert(pmin_v[1] <= pmax_v[1] || !"AABB.set(): minimum must be less than or equal to maximum"); - assert(pmin_v[2] <= pmax_v[2] || !"AABB.set(): minimum must be less than or equal to maximum"); - m_min = pmin_v; - m_max = pmax_v; - } - - /** - * Set AABB box. - * - * @param xmin - * @param ymin - * @param zmin - * @param xmax - * @param ymax - * @param zmax - */ - void set( - real_type const & xmin - , real_type const & ymin - , real_type const & zmin - , real_type const & xmax - , real_type const & ymax - , real_type const & zmax - ) - { - assert(xmin<=xmax || !"AABB.set(): minimum must be less than or equal to maximum"); - assert(ymin<=ymax || !"AABB.set(): minimum must be less than or equal to maximum"); - assert(zmin<=zmax || !"AABB.set(): minimum must be less than or equal to maximum"); - m_min = vector3_type(xmin,ymin,zmin); - m_max = vector3_type(xmax,ymax,zmax); - } - - /** - * Set AABB box. - * - * @param xmin - * @param ymin - * @param zmin - * @param width - * @param height - * @param depth - */ - void extent( - real_type const & xmin - , real_type const & ymin - , real_type const & zmin - , real_type const & width - , real_type const & height - , real_type const & depth - ) - { - assert(width>=0 || !"AABB.extent(): width must be non-negative"); - assert(height>=0 || !"AABB.extent(): height must be non-negative"); - assert(depth>=0 || !"AABB.extent(): depth must be non-negative"); - m_min = vector3_type(xmin,ymin,zmin); - m_max = vector3_type(xmin+width,ymin+height,zmin+depth); - } - - public: - - real_type const & x() const { return m_min[0]; } - real_type const & y() const { return m_min[1]; } - real_type const & z() const { return m_min[2]; } - real_type w() const { return m_max[0] - m_min[0]; } - real_type h() const { return m_max[1] - m_min[1]; } - real_type d() const { return m_max[2] - m_min[2]; } - - vector3_type & min() { return m_min; } - vector3_type & max() { return m_max; } - vector3_type const & min() const { return m_min; } - vector3_type const & max() const { return m_max; } - - /** - * Update Bounding Box - * This method updates the size of the AABB such that it encloses the - * given nodes. - * - * @param n0 - * @param n1 - * @param n2 - */ - void update(vector3_type const & n0,vector3_type const & n1, vector3_type const & n2) - { - using std::min; - using std::max; - - m_min[0] = min(n2[0],min(n1[0],n0[0])); - m_min[1] = min(n2[1],min(n1[1],n0[1])); - m_min[2] = min(n2[2],min(n1[2],n0[2])); - m_max[0] = max(n2[0],max(n1[0],n0[0])); - m_max[1] = max(n2[1],max(n1[1],n0[1])); - m_max[2] = max(n2[2],max(n1[2],n0[2])); - } - - /** - * Update Bounding Box - * This method updates the size of the AABB such that it encloses the - * given nodes. - * - * @param n0 - * @param n1 - * @param n2 - * @param n3 - */ - void update(vector3_type const & n0,vector3_type const & n1,vector3_type const & n2, vector3_type const & n3) - { - using std::min; - using std::max; - - m_min[0] = min(n3[0],min(n2[0],min(n1[0],n0[0]))); - m_min[1] = min(n3[1],min(n2[1],min(n1[1],n0[1]))); - m_min[2] = min(n3[2],min(n2[2],min(n1[2],n0[2]))); - m_max[0] = max(n3[0],max(n2[0],max(n1[0],n0[0]))); - m_max[1] = max(n3[1],max(n2[1],max(n1[1],n0[1]))); - m_max[2] = max(n3[2],max(n2[2],max(n1[2],n0[2]))); - } - - /** - * Update Box. - * This method updates the size of the AABB such that it encloses - * the given AABBs. - * - * @param A - * @param B - */ - void update(AABB const & A,AABB const & B) - { - using std::min; - using std::max; - - m_min[0] = min(A.m_min[0],B.m_min[0]); - m_min[1] = min(A.m_min[1],B.m_min[1]); - m_min[2] = min(A.m_min[2],B.m_min[2]); - m_max[0] = max(A.m_max[0],B.m_max[0]); - m_max[1] = max(A.m_max[1],B.m_max[1]); - m_max[2] = max(A.m_max[2],B.m_max[2]); - } - - /** - * Get Volume. - * - * @return The current value of the volume of the AABB. - */ - real_type volume() const - { - vector3_type vd = m_max-m_min; - return vd[0]*vd[1]*vd[2]; - } - - real_type area() const - { - vector3_type vd = m_max-m_min; - return 2*vd[0]*vd[1] + 2*vd[0]*vd[2] + 2*vd[2]*vd[1]; - } - - real_type diameter() const - { - vector3_type vd = m_max-m_min; - return length(vd); - } - - void translate(vector3_type const & T) - { - m_max += T; - m_min += T; - } - - void rotate(matrix3x3_type const & /*R*/) { } - - void scale(real_type const & s) - { - assert(s>=value_traits::zero() || !"AABB::scale: s must be non-negative"); - vector3_type c = center(); - m_min -= c; - m_max -= c; - m_min *= s; - m_max *= s; - m_min += c; - m_max += c; - } - - vector3_type get_support_point(vector3_type const & v) const - { - vector3_type dir = unit(v); - vector3_type ext = (m_max - m_min)/2.; - vector3_type c = center(); - vector3_type p(0,0,0); - - real_type sign = value_traits::zero(); - real_type tst = ext[0] * dir[0]; - if(tst>0) - sign = value_traits::one(); - else if(tst<0) - sign = -value_traits::one(); - else //(tst==0) - sign = value_traits::zero(); - p[0] += sign * ext[0]; - - tst = ext[1] * dir[1]; - if(tst>0) - sign = value_traits::one(); - else if(tst<0) - sign = -value_traits::one(); - else //(tst==0) - sign = value_traits::zero(); - p[1] += sign * ext[1]; - - tst = ext[2] * dir[2]; - if(tst>0) - sign = value_traits::one(); - else if(tst<0) - sign = -value_traits::one(); - else //(tst==0) - sign = value_traits::zero(); - p[2] += sign * ext[2]; - p += c; - return p; - } - - - - /** - * Compute Bounding Box. - * This method computes an axis aligned bounding - * box (AABB) that encloses the geometry. - * - * @param r The position of the model frame (i.e the coordinate frame the geometry lives in). - * @param R The orientation of the model frame (i.e the coordinate frame the geometry lives in). - * @param min_coord Upon return holds the minimum corner of the box. - * @param max_coord Upon return holds the maximum corner of the box. - * - */ - void compute_collision_aabb( - vector3_type const & r - , matrix3x3_type const & /*R*/ - , vector3_type & min_coord - , vector3_type & max_coord - ) const - { - min_coord = r + this->min(); - max_coord = r + this->max(); - } - - - }; - - } // namespace geometry - -} // namespace OpenTissue - -//OPENTISSUE_CORE_GEOMETRY_GEOMETRY_AABB_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_barycentric.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_barycentric.h deleted file mode 100644 index b4717bba8..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_barycentric.h +++ /dev/null @@ -1,394 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_BARYCENTRIC_H -#define OPENTISSUE_CORE_GEOMETRY_BARYCENTRIC_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -#include -#include - -namespace OpenTissue -{ - namespace geometry - { - - /* - * Compute Barycentric Coordinates. - * This method computes the barycentric coodinates for a point x3 of an edge - * given by the points x1 and x2. - * - * The barycentric coordinates w1 and w2 are defined such - * that x3' = w1*x1 + w2*x2, is the point on the line closest to x3. - * - * if 0 <= w1,w2 <= 1 then the point lies inside or on the perimeter of the triangle. - * - * @warning This method uses a geometric approach to compute the barycentric coordinates. - * - * @param x1 The first point of the edge. - * @param x2 The second point of the edge. - * @param x3 The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - */ - template - inline void barycentric_geometric( - V const & x1 - , V const & x2 - , V const & x3 - , typename V::value_type & w1 - , typename V::value_type & w2 - ) - { - using std::sqrt; - - typedef typename V::value_type T; - typedef typename V::value_traits value_traits; - - V const u = x2-x1; - T const uu = dot(u,u); - - assert( is_number(uu) || !"barycentric_geometric(): NaN encountered"); - assert( uu > value_traits::zero() || !"barycentric_geometric(): Degenerate edge encountered"); - - // Project x3 onto edge running from x1 to x2. - V const q = (dot(u, x3-x1)/ uu )*u + x1; - V const a = q - x2; - //V const b = q-x1; - T const aa = dot(a,a); - - assert( is_number(aa) || !"barycentric_geometric(): NaN encountered"); - - //T const bb = dot(b,b); - w1 = sqrt( aa / uu ); - w2 = value_traits::one() - w1; // sqrt( bb / uu ); - - assert( is_number(w1) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w2) || !"barycentric_geometric(): NaN encountered"); - - assert( w1 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w1 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - } - - /* - * Compute Barycentric Coordinates. - * This method computes the barycentric coodinates for a point x4 of a triangle - * given by the points x1,x2, and x3 (in counter clockwise order). - * - * The barycentric coordinates w1,w2, and w3 are defined such - * that x4' = w1*x1 + w2*x2 + w3*x3, is the point in plane of the - * triangle closest to x4. - * - * if 0 <= w1,w2,w3 <= 1 then the point lies inside or on the perimeter of the triangle. - * - * @warning This method uses a geometric approach to compute the barycentric coordinates. - * - * @param x1 The first point of the triangle. - * @param x2 The second point of the triangle. - * @param x3 The third point of the triangle. - * @param x4 The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - * @param w3 Upon return this parameter contains the value of the third barycentric coordinate. - */ - template - inline void barycentric_geometric( - V const & x1 - , V const & x2 - , V const & x3 - , V const & x4 - , typename V::value_type & w1 - , typename V::value_type & w2 - , typename V::value_type & w3 - ) - { - using std::sqrt; - - typedef typename V::value_type T; - typedef typename V::value_traits value_traits; - - V const n = cross( x1-x3, x2-x3); - T const nn = dot(n,n); - - assert( is_number(nn) || !"barycentric_geometric(): NaN encountered"); - assert( nn > value_traits::zero() || !"barycentric_geometric(): Degenerate triangle encountered"); - - V const q = x4 - ( dot(n, x4 - x1)*n / nn ); - V const a = cross( x2-q, x3-q); - V const b = cross( x1-q, x3-q); - //V const c = cross( x1-q, x2-q); - - T const aa = dot(a,a); - T const bb = dot(b,b); - //T const cc = dot(c,c); - - assert( is_number(aa) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(bb) || !"barycentric_geometric(): NaN encountered"); - //assert( is_number(cc) || !"barycentric_geometric(): NaN encountered"); - - w1 = sqrt( aa / nn ); - w2 = sqrt( bb / nn ); - w3 = value_traits::one() - w1 - w2; // sqrt( cc / nn ); - - assert( is_number(w1) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w2) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w3) || !"barycentric_geometric(): NaN encountered"); - - assert( w1 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w1 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w3 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w3 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - } - - /* - * Compute Barycentric Coordinates. - * This method computes the barycentric coodinates for a point p of a tetrahedron - * given by the points x1,x2,x3, x4 (in right-hand order). - * - * @warning This method uses a geometric approach to compute the barycentric coordinates. - * - * @param x1 The first point of the triangle. - * @param x2 The second point of the triangle. - * @param x3 The third point of the triangle. - * @param x4 The fourth point of the triangle. - * @param p The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - * @param w3 Upon return this parameter contains the value of the third barycentric coordinate. - * @param w4 Upon return this parameter contains the value of the fourth barycentric coordinate. - */ - template - inline void barycentric_geometric( - V const & x1 - , V const & x2 - , V const & x3 - , V const & x4 - , V const & p - , typename V::value_type & w1 - , typename V::value_type & w2 - , typename V::value_type & w3 - , typename V::value_type & w4 - ) - { - using std::fabs; - - typedef typename V::value_type T; - typedef typename V::value_traits value_traits; - - T const V6 = fabs( dot( (x1-x4), cross( x2-x4, x3-x4 ) ) ); - - assert( is_number(V6) || !"barycentric_geometric(): NaN encountered"); - assert( V6 > value_traits::zero() || !"barycentric_geometric(): Degenerate tetrahedron encountered"); - - w1 = fabs( dot( (x2-p), cross( (x3-p), (x4-p) ) ) ) / V6; - w2 = fabs( dot( (x1-p), cross( (x3-p), (x4-p) ) ) ) / V6; - w3 = fabs( dot( (x1-p), cross( (x2-p), (x4-p) ) ) ) / V6; - //w4 = fabs( dot( (x1-p), cross( (x2-p), (x3-p) ) ) ); - w4 = value_traits::one() - w1 -w2 - w3; - - assert( is_number(w1) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w2) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w3) || !"barycentric_geometric(): NaN encountered"); - assert( is_number(w4) || !"barycentric_geometric(): NaN encountered"); - - assert( w1 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w1 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w2 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w3 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w3 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w4 >= value_traits::zero() || !"barycentric_geometric(): Illegal coordinate encountered"); - assert( w4 <= value_traits::one() || !"barycentric_geometric(): Illegal coordinate encountered"); - } - - /* - * Compute Barycentric Coordinates. - * This method computes the barycentric coodinates for a point p of a triangle - * given by the points x1,x2, and x3 (in counter clockwise order). - * - * The barycentric coordinates w1, w2, and w3 are defined such - * that p' = w1*x1 + w2*x2 + w3*x3, is the point in plane of the - * triangle closest to p. - * - * if 0 <= w1,w2,w3 <= 1 then the point lies inside or on the perimeter of the triangle. - * - * @warning This method uses a algebraic approach to compute the barycentric coordinates. - * - * @param x1 The first point of the triangle. - * @param x2 The second point of the triangle. - * @param x3 The third point of the triangle. - * @param p The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - * @param w3 Upon return this parameter contains the value of the third barycentric coordinate. - */ - template - inline void barycentric_algebraic( - V const & x1 - , V const & x2 - , V const & x3 - , V const & p - , typename V::value_type & w1 - , typename V::value_type & w2 - , typename V::value_type & w3 - ) - { - typedef typename V::value_type T; - typedef math::ValueTraits value_traits; - - //--- We compute barycentric coordinates, w1,w2,w3, of p, that is we solve the linear system - //--- - //--- |(x1-x3).(x1-x3) (x1-x3).(x2-x3)| |w1| |(x1-x3).(p-x3)| - //--- |(x1-x3).(x2-x3) (x2-x3).(x2-x3)| |w2| = |(x2-x3).(p-x3)| - //--- w1 + w2 + w3 = 1 - //--- - V x13 = x1-x3; - V x23 = x2-x3; - V x43 = p-x3; - - //--- - //--- We introduce the shorthand notation - //--- - //--- |a11 a12| |w1| |b1| - //--- |a12 a22| |w2| = |b2| - //--- - //--- Isolating w2 from the second equation yields - //--- - //--- w2 = (b2 - a12 w1)/a22 - //--- = b2/a22 - (a12/a22)w1 - //--- - //--- And substituting into the first gives - //--- - //--- a11 w1 + a12 ((b2 - a12 w1)/a22) = b1 - //--- a11 w1 + (a12/a22)*b2 - a12*(a12/a22)*w1 = b1 - //--- (a11 - a12*(a12/a22))*w1 = b1 - (a12/a22)*b2 - //--- - //--- Letting f = a12/a22 (to minimize computations by collecting common subterms) and - //--- - //--- m = (a11 - a12*f) - //--- n = b1 - f*b2 - //--- - //--- we have - //--- - //--- w1 = n/m - //--- w2 = b2/a22 - f*w1 - //--- w3 = 1 - w1 - w2 - //--- - //--- Since we always have a11>0 and a22>0 a solution will always exist - //--- regardless of the value of a12,b1 and b2 - //--- - - T a11 = dot(x13 , x13); - T a12 = dot(x13 , x23); - T a22 = dot(x23 , x23); - T b1 = dot(x13 , x43); - T b2 = dot(x23 , x43); - - assert( is_number(a11) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(a12) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(a22) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(b1) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(b2) || !"barycentric_algebraic(): NaN encountered"); - - assert( a22 < value_traits::zero() || a22>value_traits::zero() || !"barycentric_algebraic(): Degenerate triangle encountered"); - - T f = a12/a22; - T m = (a11 - a12*f); - T n = b1-(b2*f); - - assert( is_number(f) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(m) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(n) || !"barycentric_algebraic(): NaN encountered"); - - assert( m < value_traits::zero() || m > value_traits::zero() || !"barycentric_algebraic(): potential division by zero"); - - w1 = n/m; - w2 = b2/a22 - f*w1; - w3 = value_traits::one() - w1 - w2; - - assert( is_number(w1) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(w2) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(w3) || !"barycentric_algebraic(): NaN encountered"); - } - - /* - * Compute Barycentric Coordinates. - * This method computes the barycentric coodinates for a point p of a tetrahedron - * given by the points x1,x2,x3, p (in right-hand order). - * - * @warning This method uses a algebraic approach to compute the barycentric coordinates. - * - * @param x1 The first point of the triangle. - * @param x2 The second point of the triangle. - * @param x3 The third point of the triangle. - * @param x4 The fourth point of the triangle. - * @param p The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - * @param w3 Upon return this parameter contains the value of the third barycentric coordinate. - * @param w4 Upon return this parameter contains the value of the fourth barycentric coordinate. - */ - template - inline void barycentric_algebraic( - V const & x1 - , V const & x2 - , V const & x3 - , V const & x4 - , V const & p - , typename V::value_type & w1 - , typename V::value_type & w2 - , typename V::value_type & w3 - , typename V::value_type & w4 - ) - { - typedef typename V::value_type T; - typedef math::ValueTraits value_traits; - typedef math::Matrix3x3 M; // 2008-08-01 kenny: This is rather bad, it makes this function hardwired to our own matrix3x3 type! - - M P; - - P(0,0) = x1(0) - x4(0); - P(1,0) = x1(1) - x4(1); - P(2,0) = x1(2) - x4(2); - - P(0,1) = x2(0) - x4(0); - P(1,1) = x2(1) - x4(1); - P(2,1) = x2(2) - x4(2); - - P(0,2) = x3(0) - x4(0); - P(1,2) = x3(1) - x4(1); - P(2,2) = x3(2) - x4(2); - - P = math::inverse(P); // 2008-08-01 kenny: This is very specific for our OT library, it should probably be a policy? - - V w = P * V(p-x4); - - w1 = w(0); - w2 = w(1); - w3 = w(2); - w4 = value_traits::one() - w1 - w2 - w3; - - assert( is_number(w1) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(w2) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(w3) || !"barycentric_algebraic(): NaN encountered"); - assert( is_number(w4) || !"barycentric_algebraic(): NaN encountered"); - - } - - } // namespace geometry -} // namespace OpenTissue - -// OPENTISSUE_CORE_GEOMETRY_BARYCENTRIC_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_base_shape.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_base_shape.h deleted file mode 100644 index 8d1b08cc4..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_base_shape.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_BASE_SHAPE_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_BASE_SHAPE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include - - -namespace OpenTissue -{ - - namespace geometry - { - - /** - * BaseShape Template Class - * If you implement a new geometry type then you should derive your geometry class from the BaseShape class - * - * @tparam math_types standard math types containing at least the real, vector3 and matrix3x3 types. - **/ - template< typename math_types > - class BaseShape - : public OpenTissue::collision::GeometryInterface< math_types > - { - public: - - virtual ~BaseShape() {} - - public: - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - -// 2007-07-24 kenny: generic design problem with compute_surface_points -// 2007-09-11 micky: I agree, it's not possible to have a pure abstract interface and letting the user decide his choice of point container. -// 2007-09-11 micky: compute_surface_points and get_support_point should be removed from this interface. Both functions belong to some collision interface. -// 2007-09-18 kenny: I partial agree... get_support_point is used by GJK (exclusively as I recall?) However, compute_surface_points is used by some of the geometry utils. Fitting tools and such. - - // TODO 2007-02-06 kenny: Yikes what if end-user wants to use std::list or some homebrewed container type? It is a bit ugly that the container type is hardwired into the abstract base class:-( Could we make something like a pure virtual template class? - virtual void compute_surface_points( std::vector & points) const = 0; - virtual vector3_type get_support_point(vector3_type const & v) const = 0; - - virtual void translate(vector3_type const & T) = 0; - virtual void rotate(matrix3x3_type const & R) = 0; - virtual void scale(real_type const & s) = 0; - - }; - - } // namespace geometry - -} // namespace OpenTissue - -//OPENTISSUE_CORE_GEOMETRY_GEOMETRY_BASE_SHAPE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_compute_tetrahedron_aabb.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_compute_tetrahedron_aabb.h deleted file mode 100644 index 615213656..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_compute_tetrahedron_aabb.h +++ /dev/null @@ -1,103 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_COMPUTE_TETRAHEDRON_AABB_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_COMPUTE_TETRAHEDRON_AABB_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace geometry - { - /** - * Compute AABB of Tetrahedron. - * - * - * @param p0 The position of a corner of the tetrahedron. - * @param p1 The position of a corner of the tetrahedron. - * @param p2 The position of a corner of the tetrahedron. - * @param p3 The position of a corner of the tetrahedron. - * @param min_coord Upon return holds the minimum coordinate corner of the AABB. - * @param max_coord Upon return holds the maximum coordinate corner of the AABB. - */ - template - void compute_tetrahedron_aabb( - vector3_type const & p0 - , vector3_type const & p1 - , vector3_type const & p2 - , vector3_type const & p3 - , vector3_type & min_coord - , vector3_type & max_coord - ) - { - using std::min; - - min_coord = min(p0, p1); - min_coord = min(min_coord, p2); - min_coord = min(min_coord, p3); - - max_coord = max(p0, p1); - max_coord = max(max_coord, p2); - max_coord = max(max_coord, p3); - } - - /** - * Compute Tetrahedron AABB. - * - * This function computes a tight fitting axis aligned bounding box around the specified tetrahedron. - * - * @param tetrahedron The specified tetrahedron. - * @param min_coord Upon return holds the minimum coordinate corner of the AABB. - * @param max_coord Upon return holds the maximum coordinate corner of the AABB. - */ - template - void compute_tetrahedron_aabb( - tetrahedron_type const & tetrahedron - , vector3_type & min_coord - , vector3_type & max_coord - ) - { - compute_tetrahedron_aabb(tetrahedron.p0(),tetrahedron.p1(),tetrahedron.p2(),tetrahedron.p3(),min_coord,max_coord); - } - - /** - * Compute Tetrahedron AABB. - * - * This function computes a tight fitting axis aligned bounding box around the specified tetrahedron. - * - * @param tetrahedron The specified tetrahedron. - * @param aabb Upon return holds the computed AABB. - */ - template - void compute_tetrahedron_aabb(tetrahedron_type const & tetrahedron,aabb_type & aabb) - { - compute_tetrahedron_aabb(tetrahedron.p0(),tetrahedron.p1(),tetrahedron.p2(),tetrahedron.p3(),aabb.min(),aabb.max()); - } - - /** - * Compute Tetrahedron AABB. - * - * This function computes a tight fitting axis aligned bounding box around the specified tetrahedron. - * - * @param tetrahedron The specified tetrahedron. - * @return The computed AABB. - */ - template - geometry::AABB compute_tetrahedron_aabb(tetrahedron_type const & tetrahedron) - { - geometry::AABB aabb; - compute_tetrahedron_aabb(tetrahedron,aabb); - return aabb; - } - - } //End of namespace geometry -} //End of namespace OpenTissue - -// OPENTISSUE_CORE_GEOMETRY_GEOMETRY_COMPUTE_TETRAHEDRON_AABB_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron.h deleted file mode 100644 index fd00cd0c1..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron.h +++ /dev/null @@ -1,272 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -#include -#include -#include - -#include -#include -#include - - -namespace OpenTissue -{ - - namespace geometry - { - - template< typename math_types_ > - class Tetrahedron - : public VolumeShape< math_types_ > - , public OpenTissue::utility::ClassID< OpenTissue::geometry::Tetrahedron > - { - public: - - typedef math_types_ math_types; - typedef typename math_types::value_traits value_traits; - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - typedef typename math_types::quaternion_type quaternion_type; - - protected: - - vector3_type m_p0; ///< Tetrahedron vertex number 1 - vector3_type m_p1; ///< Tetrahedron vertex number 2 - vector3_type m_p2; ///< Tetrahedron vertex number 3 - vector3_type m_p3; ///< Tetrahedron vertex number 4 - - public: - - size_t const class_id() const { return OpenTissue::utility::ClassID >::class_id(); } - - Tetrahedron() - { - m_p0.clear(); - m_p1.clear(); - m_p2.clear(); - m_p3.clear(); - } - - virtual ~Tetrahedron() {} - - Tetrahedron(Tetrahedron const & tetrahedron_) { set(tetrahedron_); } - - Tetrahedron( vector3_type const & p0, vector3_type const & p1, vector3_type const & p2, vector3_type const & p3) - { - set(p0,p1,p2,p3); - } - - Tetrahedron const & operator=(Tetrahedron const & tetrahedron_) - { - set(tetrahedron_); - return *this; - } - - void set(Tetrahedron const & t) - { - m_p0 = t.m_p0; - m_p1 = t.m_p1; - m_p2 = t.m_p2; - m_p3 = t.m_p3; - } - - void set(vector3_type const & p0, vector3_type const & p1, vector3_type const & p2, vector3_type const & p3) - { - m_p0 = p0; - m_p1 = p1; - m_p2 = p2; - m_p3 = p3; - } - - real_type area() const - { - vector3_type u,v,uXv; - real_type A = value_traits::zero(); - - u = m_p1-m_p0; - v = m_p2-m_p0; - uXv = (u % v); - A += length(uXv); - - u = m_p0-m_p3; - v = m_p1-m_p3; - uXv = (u % v); - A += length(uXv); - - u = m_p1-m_p3; - v = m_p2-m_p3; - uXv = (u % v); - A += length(uXv); - - u = m_p2-m_p3; - v = m_p0-m_p3; - uXv = (u % v); - A += length(uXv); - - return A/value_traits::two(); - } - - void compute_surface_points(std::vector & points) const - { - points.push_back(m_p0); - points.push_back(m_p1); - points.push_back(m_p2); - points.push_back(m_p3); - } - - vector3_type & p0() { return m_p0; }; - vector3_type & p1() { return m_p1; }; - vector3_type & p2() { return m_p2; }; - vector3_type & p3() { return m_p3; }; - vector3_type const & p0() const { return m_p0; }; - vector3_type const & p1() const { return m_p1; }; - vector3_type const & p2() const { return m_p2; }; - vector3_type const & p3() const { return m_p3; }; - - vector3_type center() const { return vector3_type( (m_p0+m_p1+m_p2+m_p3)/4. ); }; - - /** - * Compute Barycentric Coordinates. - * - * @param p The point for which the barycentric coordinates should be computed. - * @param w1 Upon return this parameter contains the value of the first barycentric coordinate. - * @param w2 Upon return this parameter contains the value of the second barycentric coordinate. - * @param w3 Upon return this parameter contains the value of the third barycentric coordinate. - * @param w4 Upon return this parameter contains the value of the fourth barycentric coordinate. - */ - void barycentric(vector3_type const & p,real_type & w1,real_type & w2,real_type & w3,real_type & w4) const - { - OpenTissue::geometry::barycentric_algebraic(m_p0,m_p1,m_p2,m_p3,p,w1,w2,w3,w4); - } - - real_type diameter() const - { - using std::max; - using std::sqrt; - - vector3_type x30 = m_p3 - m_p0; - vector3_type x20 = m_p2 - m_p0; - vector3_type x10 = m_p1 - m_p0; - real_type d = max( max(x30*x30, x20*x20), x10*x10); - return sqrt(d); - } - - vector3_type get_support_point(vector3_type const & v) const - { - vector3_type p; - real_type tst = -FLT_MAX;//math::detail::lowest(); - real_type tmp = v * m_p0; - if (tmp>tst) - { - tst = tmp; - p = m_p0; - } - tmp = v * m_p1; - if (tmp>tst) - { - tst = tmp; - p = m_p1; - } - tmp = v *m_p2; - if (tmp>tst) - { - tst = tmp; - p = m_p2; - } - tmp = v * m_p3; - if (tmp>tst) - { - tst = tmp; - p = m_p3; - } - return p; - } - - void translate(vector3_type const & T) - { - m_p0 += T; - m_p1 += T; - m_p2 += T; - m_p3 += T; - } - - void rotate(matrix3x3_type const & R) - { - vector3_type c = center(); - m_p0 = (R*(m_p0 - c)) + c; - m_p1 = (R*(m_p1 - c)) + c; - m_p2 = (R*(m_p2 - c)) + c; - m_p3 = (R*(m_p3 - c)) + c; - } - - void scale(real_type const & s) - { - vector3_type c = center(); - m_p0 = s*(m_p0 - c) + c; - m_p1 = s*(m_p1 - c) + c; - m_p2 = s*(m_p2 - c) + c; - m_p3 = s*(m_p3 - c) + c; - } - - real_type volume() const - { - /* - ** From Zienkiewicz & Taylor p.637 - ** V = 1/6*det( 1 x0 y0 z0; 1 x1 y1 z1; 1 x2 y2 z2; 1 x3 y3 z3) - ** where x0 = n0->i; y0 = n0[1]; ... - ** Calculated by Mathematica ;-) - */ - return (m_p0[2]*m_p1[1]*m_p2[0] - m_p0[1]*m_p1[2]*m_p2[0] - m_p0[2]*m_p1[0]*m_p2[1] - + m_p0[0]*m_p1[2]*m_p2[1] + m_p0[1]*m_p1[0]*m_p2[2] - m_p0[0]*m_p1[1]*m_p2[2] - - m_p0[2]*m_p1[1]*m_p3[0] + m_p0[1]*m_p1[2]*m_p3[0] + m_p0[2]*m_p2[1]*m_p3[0] - - m_p1[2]*m_p2[1]*m_p3[0] - m_p0[1]*m_p2[2]*m_p3[0] + m_p1[1]*m_p2[2]*m_p3[0] - + m_p0[2]*m_p1[0]*m_p3[1] - m_p0[0]*m_p1[2]*m_p3[1] - m_p0[2]*m_p2[0]*m_p3[1] - + m_p1[2]*m_p2[0]*m_p3[1] + m_p0[0]*m_p2[2]*m_p3[1] - m_p1[0]*m_p2[2]*m_p3[1] - - m_p0[1]*m_p1[0]*m_p3[2] + m_p0[0]*m_p1[1]*m_p3[2] + m_p0[1]*m_p2[0]*m_p3[2] - - m_p1[1]*m_p2[0]*m_p3[2] - m_p0[0]*m_p2[1]*m_p3[2] + m_p1[0]*m_p2[1]*m_p3[2])/6.; - } - - - /** - * Compute Bounding Box. - * This method computes an axis aligned bounding - * box (AABB) that encloses the geometry. - * - * @param r The position of the model frame (i.e the coordinate frame the geometry lives in). - * @param R The orientation of the model frame (i.e the coordinate frame the geometry lives in). - * @param min_coord Upon return holds the minimum corner of the box. - * @param max_coord Upon return holds the maximum corner of the box. - * - */ - void compute_collision_aabb( - vector3_type const & r - , matrix3x3_type const & R - , vector3_type & min_coord - , vector3_type & max_coord - ) const - { - compute_tetrahedron_aabb( *this, min_coord, max_coord ); - } - - - }; - - } // namespace geometry - -} // namespace OpenTissue - -// OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_slicer.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_slicer.h deleted file mode 100644 index cd7930dc0..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_slicer.h +++ /dev/null @@ -1,157 +0,0 @@ -#ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_SLICER_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_SLICER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - -namespace OpenTissue -{ - namespace geometry - { - - - template - class TetrahedronSlicer - { - public: - - typedef vector3_type_ vector3_type; - typedef typename vector3_type::value_type real_type; - - - vector3_type m_nodes[4]; ///< Nodes of tetrahedron - int m_edges[6][2]; ///< Edge topology of tetrahedron - ///< m_edges[i][0] index of the first node of the i'th edge - ///< m_edges[i][1] index of the second node of the i'th edge - - vector3_type m_intersections[4]; ///< Intersection points of slice and tetrahedron. - vector3_type m_triangle1[3]; ///< Vertices of first triangle in slice. - vector3_type m_triangle2[3]; ///< Vertices of second trinagle in slice. - - public: - - TetrahedronSlicer( - vector3_type const & p0 - , vector3_type const & p1 - , vector3_type const & p2 - , vector3_type const & p3 - ) - { - m_nodes[0] = p0; - m_nodes[1] = p1; - m_nodes[2] = p2; - m_nodes[3] = p3; - - // - // Node indices and edge labels: - // - // 3 - // + - // / \ - // / \ - // / . \ - // / \ - // / \ - // / . \ - // / \ - // / \ - // / . \ - // C F E - // / \ - // / . \ - // / \ - // / . \ - // / 2+ \ - // / . . \ - // / . B D. \ - // / . . \ - // +------------------A------------------+ - //0 1 - // - // - m_edges[ 0 ][ 0 ] = 0; // A - m_edges[ 0 ][ 1 ] = 1; - m_edges[ 1 ][ 0 ] = 0; // B - m_edges[ 1 ][ 1 ] = 2; - m_edges[ 2 ][ 0 ] = 0; // C - m_edges[ 2 ][ 1 ] = 3; - m_edges[ 3 ][ 0 ] = 1; // D - m_edges[ 3 ][ 1 ] = 2; - m_edges[ 4 ][ 0 ] = 1; // E - m_edges[ 4 ][ 1 ] = 3; - m_edges[ 5 ][ 0 ] = 2; // F - m_edges[ 5 ][ 1 ] = 3; - - }; - - protected: - - template - void compute_slice(plane_type const & plane) - { - //--- Loop over all edges and find those that cross the plane - int count = 0; - for(int i=0;i<6;++i) - { - vector3_type & a = m_nodes[m_edges[i][0]]; - vector3_type & b = m_nodes[m_edges[i][1]]; - real_type dst_a = plane.signed_distance(a); - real_type dst_b = plane.signed_distance(b); - if ( (dst_a*dst_b<0) || (dst_a==0 && dst_b>0) || (dst_b==0 && dst_a>0)) - { - //--- Compute coordinates of the plane intersections - vector3_type & a = m_nodes[m_edges[ i ][0]]; - vector3_type & b = m_nodes[m_edges[ i ][1]]; - m_intersections[count++] = plane.get_intersection(a,b); - } - } - assert(count==3 || count==4); //--no other possibilities? - - //--- Order plane intersections to a a CCW polygon (as seen from positive side of plane) - vector3_type & n = plane.n(); - vector3_type e10 = m_intersections[1] - m_intersections[0]; - vector3_type e21 = m_intersections[2] - m_intersections[1]; - if(n*(e10%e20)<0) - { - m_triangle1[0] = m_intersections[0]; - m_triangle1[1] = m_intersections[2]; - m_triangle1[2] = m_intersections[1]; - } - else - { - m_triangle1[0] = m_intersections[0]; - m_triangle1[1] = m_intersections[1]; - m_triangle1[2] = m_intersections[2]; - } - if ( count == 4 ) - { - for(int i=0;i<3;++i) - { - int next = (i+1)%3; - int prev = i; - vector3_type e = m_triangle1[next] - m_triangle1[prev]; - vector3_type h = m_intersections[4] - m_triangle1[prev]; - if(n*(h%e)>0) - { - m_triangle2[0] = m_triangle1[prev]; - m_triangle2[1] = m_intersections[4]; - m_triangle2[2] = m_triangle1[next]; - break; - } - } - } - }; - - }; - - } // namespace geometry -} // namespace OpenTissue - -//OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_SLICER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_z_slicer.h b/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_z_slicer.h deleted file mode 100644 index 3b9a07721..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/geometry/geometry_tetrahedron_z_slicer.h +++ /dev/null @@ -1,165 +0,0 @@ - #ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_Z_SLICER_H -#define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_TETRAHEDRON_Z_SLICER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace geometry - { - /** - * Specialized Tetrahedron Slicer. - * Cut a tetrahedron with a specified z-plane and returns the - * sliced tetrahedron. - * - * This code was originally implemented by Andreas Bæentzen, IMM (jab@imm.dtu.dk). - * - */ - template - class ZTetrahedronSlicer - { - public: - - typedef vector3_type_ vector3_type; - typedef typename vector3_type::value_type real_type; - - protected: - - vector3_type m_p[4]; ///< Nodes of tetrahedron. - - public: - - ZTetrahedronSlicer( - vector3_type const & p0 - , vector3_type const & p1 - , vector3_type const & p2 - , vector3_type const & p3 - ) - { - m_p[0] = p0; - m_p[1] = p1; - m_p[2] = p2; - m_p[3] = p3; - - //--- Primitive bubble sort - ensures that tetrahedron vertices - //--- are sorted according to z value. - while(swap(0,1)||swap(1,2)||swap(2,3)); - }; - - protected: - - /** - * Swap the order of two nodes if their z-value allows it. - * - * @param i A node index. - * @param j A node index. - * - * @return true if swapped otherwise false. - */ - bool swap(int i,int j) - { - if(m_p[j](2)< m_p[i](2)) - { - vector3_type tmp = m_p[j]; - m_p[j] = m_p[i]; - m_p[i] = tmp; - return true; - } - return false; - }; - - /** - * Computes intersection point of edge going from node i towards node j - * - * @param z The z value, indicating the z-plane aginst which the edge is tested. - * @param i The node index of the starting node (got lowest z-value). - * @param j The node index of the ending node (got highest z-value). - * @param p Upon return this argument holds the intersection point. - */ - void intersect(real_type const & z, int i, int j, vector3_type & p) const - { - p = m_p[i]; - vector3_type dir = m_p[j] - m_p[i]; - real_type s = (z-m_p[i](2))/(m_p[j](2)-m_p[i](2)); - p += s * dir; - }; - - public: - - /** - * Compute Intersection Slice of Tetrahedron and Z-plane. - * - * @param z The z-plane to slice against. - * @param slice Upon return holds the intersection points of the sliced tetrahedron. - * - * @return The number of vertices in the sliced tetrahedron. - */ - unsigned int intersect(real_type const & z, vector3_type slice[4]) const - { - if( z < m_p[0](2) || z > m_p[3](2) ) - return 0; - if( z m_p[0](2)) - // { - // if(z < m_p[3](2)) - // { - // intersect(z,0,3,slice[cnt++]); - // if(z - -#include - - -namespace OpenTissue -{ - namespace geometry - { - /** - * VolumeShape Template Class. - * If you implement a new volumetric geometry then you should derive your new class from the VolumeShape class . - * - * @tparam math_types standard math types containing at least the real, vector3 and matrix3x3 types. - **/ - template - class VolumeShape - : public BaseShape< math_types > - { - public: - - virtual ~VolumeShape() {} - - public: - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - /** - * Get Center Position. - * - * @return The center point of the volume shape, in most cases this would be the mean point. - */ - virtual vector3_type center() const = 0; - - /** - * Get Volume. - * - * @return The actual volume of the shape. - */ - virtual real_type volume() const = 0; - - /** - * Get Area. - * - * @return The actual surface area of the volume. - */ - virtual real_type area() const = 0; - - /** - * Get Diameter. - * - * - * @return A measure of the diameter of the shape. Not all shapes have a well-defined - * diameter in such cases the measure would simply be a measure of the longst - * extent of the shape. - */ - virtual real_type diameter() const = 0; - - }; - - } // namespace geometry - -} // namespace OpenTissue - -//OPENTISSUE_CORE_GEOMETRY_GEOMETRY_VOLUME_SHAPE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_basic_types.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_basic_types.h deleted file mode 100644 index c6286de98..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_basic_types.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_BASIC_TYPES_H -#define OPENTISSUE_CORE_MATH_MATH_BASIC_TYPES_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include -#include -#include -#include - -namespace OpenTissue -{ - namespace math - { - - // TODO add doxygen documentation explaining rationale behind this typebinder class. Why have we made it, and for what purpose? Also give example usages - template< typename real_type_ - , typename index_type_ - > - class BasicMathTypes - { - public: - - typedef real_type_ real_type; - typedef index_type_ index_type; - typedef Vector3 vector3_type; - typedef Quaternion quaternion_type; - typedef DualQuaternion dual_quaternion_type; - typedef Matrix3x3 matrix3x3_type; - typedef CoordSys coordsys_type; - - typedef Vector3 index_vector3_type; - typedef ValueTraits value_traits; - }; - - - // TODO add doxygen comments explaining what this type is useful for - typedef BasicMathTypes default_math_types; - - } // namespace math -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_BASIC_TYPES_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_compute_contiguous_angle_interval.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_compute_contiguous_angle_interval.h deleted file mode 100644 index 311f8c255..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_compute_contiguous_angle_interval.h +++ /dev/null @@ -1,139 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_COMPUTE_CONTIGUOUS_ANGLE_INTERVAL_H -#define OPENTISSUE_CORE_MATH_COMPUTE_CONTIGUOUS_ANGLE_INTERVAL_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -#include -#include -#include -#include - -namespace OpenTissue -{ - namespace math - { - - /** - * Compute Contiguous Angle Interval. - * This function tries to find a contiguous interval of angle values. As - * input it takes a sequence of angle values. From this sequence the - * function tries to compute the starting and ending angle (in terms - * of counter-clock-wise rotation order) of a contiguous interval. - * interval containing all the angles. - * - * One could interact with the function as follows - * - * std::vector angles; - * - * ... fill angles with values ... - * - * double min_val, max_val; - * compute_contiguous_angle_interval( angles.begin(), angles.end(), min_val, max_val ); - * - * The resulting minimum and maximum values yields the starting and ending points - * of the contiguous interval. The periodicity of rotation angles is used to adjust - * the end-points of the interval to always be positive values. - * - * The supplied angles can be given in any sort of interval as long as - * the width of the interval is no longer than 2 pi ( one full rotation). Typically - * one would supply values from either -pi..pi or 0..2pi intervals. - * - * @param begin An iterator to the first angle value - * @param end An iterator to one past the last angle value - * @param theta_min Upon return this value holds the starting value of the contiguous angle interval. - * @param theta_max Upon return this value holds the ending value of the contiguous angle interval. - */ - template - inline void compute_contiguous_angle_interval( - iterator_type const & begin - , iterator_type const & end - , typename iterator_type::value_type & theta_min - , typename iterator_type::value_type & theta_max ) - { - //using std::cos; - //using std::sin; - //using std::sqrt; - //using std::atan2; - - typedef typename iterator_type::value_type T; - typedef OpenTissue::math::ValueTraits value_traits; - - - T const two_pi = value_traits::pi()*value_traits::two(); - - // Determine the number of samples - size_t const N = std::distance( begin, end); - - // Make a copy of the samples and sort them in ascending order - std::vector storage; - storage.resize( N ); - std::copy( begin, end, storage.begin() ); - std::sort( storage.begin(), storage.end() ); - - // Find the two theta values with the largest gap inbetween. That - // is the largest angle difference as measured in a counter-clock-wise manner. - T max_delta_theta = value_traits::zero(); - size_t max_i = N; - - for(size_t i = 0u;i max_delta_theta) - { - max_i = i; - max_delta_theta = delta_theta; - theta_min = theta_j; - theta_max = theta_i; - } - } - - //// Compute the mean angle by converting angles to points on - //// the unit-circle and calculating the mean point. - //T mx = value_traits::zero(); - //T my = value_traits::zero(); - //for(iterator_type theta = begin; theta != end; ++ theta) - //{ - // T const c = cos( *theta ); - // T const s = sin( *theta ); - // mx += c; - // my += s; - //} - - //T norm = sqrt( mx*mx + my*my); - //assert( is_number(norm) || !"compute_contiguous_angle_interval(): NaN encountered"); - - //if(norm<= value_traits::zero()) - // throw std::logic_error("insufficient angle samples to determine a mean angle"); - - //mx /= norm; - //my /= norm; - - //assert( is_number(mx) || !"compute_contiguous_angle_interval(): NaN encountered"); - //assert( is_number(my) || !"compute_contiguous_angle_interval(): NaN encountered"); - - while(theta_min < value_traits::zero()) - theta_min += two_pi; - - while(theta_max < theta_min) - theta_max += two_pi; - - assert( theta_min <= theta_max || !"compute_contiguous_angle_interval(): invalid interval"); - } - - - } // namespace math -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_COMPUTE_CONTIGUOUS_ANGLE_INTERVAL_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_constants.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_constants.h deleted file mode 100644 index 59b1363aa..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_constants.h +++ /dev/null @@ -1,209 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_CONSTANTS_H -#define OPENTISSUE_CORE_MATH_MATH_CONSTANTS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -//#include -#include - - -namespace OpenTissue -{ - - namespace math - { - - // constant: 0 (zero) - namespace detail - { - - template - inline T zero(); - - template <> - inline float zero() { return 0.0f; } - - template <> - inline double zero() { return 0.0; } - - template <> - inline int zero() { return 0; } - - template <> - inline long unsigned int zero() { return 0; } - - template <> - inline unsigned int zero() { return 0u; } - - } // namespace detail - - - // constant: 1 (one) - namespace detail - { - - template - inline T one(); - - template <> - inline float one() { return 1.0f; } - - template <> - inline double one() { return 1.0; } - - template <> - inline int one() { return 1; } - - template <> - inline unsigned int one() { return 1u; } - - } // namespace detail - - - // constant: 2 (two) - namespace detail - { - - template - inline T two(); - - template <> - inline float two() { return 2.0f; } - - template <> - inline double two() { return 2.0; } - - template <> - inline int two() { return 2; } - - template <> - inline unsigned int two() { return 2u; } - - } // namespace detail - - - // constant: 3 (three) - namespace detail - { - - template - inline T three(); - - template <> - inline float three() { return 3.0f; } - - template <> - inline double three() { return 3.0; } - - template <> - inline int three() { return 3; } - - template <> - inline unsigned int three() { return 3u; } - - } // namespace detail - - - // constant: 4 (four) - namespace detail - { - - template - inline T four(); - - template <> - inline float four() { return 4.0f; } - - template <> - inline double four() { return 4.0; } - - template <> - inline int four() { return 4; } - - template <> - inline unsigned int four() { return 4u; } - - } // namespace detail - - - // constant: 8 (eight) - namespace detail - { - - template - inline T eight(); - - template <> - inline float eight() { return 8.0f; } - - template <> - inline double eight() { return 8.0; } - - template <> - inline int eight() { return 8; } - - template <> - inline unsigned int eight() { return 8u; } - - } // namespace detail - - - // constant: ½ (half) - namespace detail - { - - template - inline T half(); - - template <> - inline float half() { return 0.5f; } - - template <> - inline double half() { return 0.5; } - - } // namespace detail - - - // constant: pi and fractions of pi - namespace detail - { - - template - inline T pi() { return (T)(M_PI); } - - template - inline T pi_half() { return (T)(M_PI_2); } - - template - inline T pi_quarter() { return (T)(M_PI_4); } - - } // namespace detail - - - // constant: specials - namespace detail - { - - - // one degree in radians - template - inline T degree() { return (T)(0.017453292519943295769236907684886); } - - // one radian in degrees - template - inline T radian() { return (T)(57.295779513082320876798154814105); } - - } - - } // namespace math - -} // namespace OpenTissue - -// #define OPENTISSUE_CORE_MATH_MATH_CONSTANTS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_coordsys.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_coordsys.h deleted file mode 100644 index ce71c34d1..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_coordsys.h +++ /dev/null @@ -1,320 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_COORDSYS_H -#define OPENTISSUE_CORE_MATH_MATH_COORDSYS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include -#include - -#include - -namespace OpenTissue -{ - - namespace math - { - - /** - * A Coordinate System. - * - * Remeber, this represents a transform that brings you from a local frame - * into a global frame, that is: - * - * BF -> WCS - */ - template< - typename value_type_ - //, typename value_traits_ = ValueTraits - > - class CoordSys - { - protected: - - typedef typename OpenTissue::math::ValueTraits value_traits_ ; // TODO value_traits_ should be parameterized as a class template parameter. - - public: - - typedef value_traits_ value_traits; ///< Convenience typedef to make value traits accessible for all template functions using Vector3 types. - typedef value_type_ value_type; ///< Typedef is required for compliance with many other libraries and data containers! - - typedef Vector3 vector3_type; - typedef Quaternion quaternion_type; - typedef Matrix3x3 matrix3x3_type; - typedef Quaternion rotation_type; ///< typedef to make interface for different coordsystypes the same - - protected: - - vector3_type m_T; ///< The Position. - quaternion_type m_Q; ///< The orientation in Quaternion form. - - public: - - vector3_type & T() { return m_T; } - vector3_type const & T() const { return m_T; } - quaternion_type & Q() { return m_Q; } - quaternion_type const & Q() const { return m_Q; } - - public: - - CoordSys() - : m_T(value_traits::zero(),value_traits::zero(),value_traits::zero()) - , m_Q(value_traits::one(),value_traits::zero(),value_traits::zero(),value_traits::zero()) - {} - - explicit CoordSys(vector3_type const & T_val, quaternion_type const & Q_val) - { - m_T = T_val; - m_Q = unit(Q_val); - } - - explicit CoordSys(vector3_type const & T_val, matrix3x3_type const & R_val) - { - m_T = T_val; - m_Q = R_val; - } - - CoordSys & operator=(CoordSys const & C) - { - m_T = C.m_T; - m_Q = C.m_Q; - return *this; - } - - public: - - // TODO: Comparing floats with == or != is not safe NOTE T might not be a float type it could be anything? This suggest that we need some kind of metaprogramming technique to deal with this problem? - bool operator==(CoordSys const & C) const { return m_T == C.m_T && m_Q==C.m_Q; } - - public: - - void identity() - { - m_T.clear(); - m_Q.identity(); - } - - /** - * This method assumes that the point is in this coordinate system. - * In other words this method maps local points into non local - * points: - * - * BF -> WCS - * - * Let p be the point and let f designate the function of this - * method then we have - * - * [p]_WCS = f(p) - * - */ - void xform_point(vector3_type & p) const { p = m_Q.rotate(p) + m_T; } - - /** - * This method assumes that the vector is in this - * coordinate system. That is it maps the vector - * from BF into WCS. - */ - void xform_vector(vector3_type & v) const { v = m_Q.rotate(v); } - - /** - * Transform Matrix. - * - * @param O A reference to a rotation matrix, which should be transformed. - */ - void xform_matrix(matrix3x3_type & O) const - { - O = matrix3x3_type(m_Q) * O; - } - - /** - * Transform Coordinate System. - * This method transforms the specified coordinate - * system by this coordinate transform. - * - * That is: - * - * Tnew = Tx Rx Told - * Rnew = Rx Rold - * - * @param X The transform by which the current - * transform should be changed with.. - */ - CoordSys operator*(CoordSys const & X1) const - { - return CoordSys( m_Q.rotate(X1.T()) + m_T , unit( prod( m_Q , X1.Q()) ) ); - } - - public: - - bool is_equal(CoordSys const & C, value_type const & accuracy) const - { - return m_T.is_equal(C.m_T,accuracy) && m_Q.is_equal(C.m_Q,accuracy); - } - - }; // class CoordSys - - - - /** - * Coordinate Transformation Product. - * This function should be used to concatenate coordinate transformations. - * In terms of homogeneous coordinates L and R corresponds to the matrices. - * - * L = | R_l T_l | - * | 0 1 | - * - * R = | R_r T_r | - * | 0 1 | - * - * This function computes the equivalent of the product - * - * X = L R - * - * = | R_l T_l | | R_r T_r | - * | 0 1 | | 0 1 | - * - * = | R_l R_r R_l T_r + T_l | - * | 0 1 | - * - * @param L The left coordinate transformation - * @param R The right coordinate transformation - * - * @return The coordinate transformation corresponding to the product L*R. - */ - template - inline CoordSys prod(CoordSys const & L, CoordSys const & R) - { - return CoordSys( L.Q().rotate( R.T() ) + L.T() , unit( prod( L.Q() , R.Q()) ) ); - } - - /** - * Inverse Transform. - * - * If we have - * - * BF -> WCS - * - * Then we want to find - * - * WCS -> BF - * - */ - template - inline CoordSys inverse(CoordSys const & X) - { - //--- - //--- p' = R p + T - //--- - //--- => - //--- - //--- p = R^{-1} p' + R^{-1}(-T) - //--- - return CoordSys( conj(X.Q()).rotate(-X.T()) , conj(X.Q()) ); - } - - /** - * Model Update Transform. - * This method computes the necessary transform needed in - * order to transform coordinates from one local frame - * into another local frame. This utility is useful when - * one wants to do model updates instead of world updates. - * - * In mathematical terms we have two transforms: - * - * C1 : H -> G - * C2 : F -> G - * - * And we want to find - * - * C3 : H -> F - * - * This transform is computed and assigned to this coordinate - * system. - */ - template - inline CoordSys model_update(CoordSys const & A, CoordSys const & B) - { - return model_update(A.T(),A.Q(),B.T(),B.Q()); - } - - /** - * Model Update Transform. - * This method computes the necessary transform needed in - * order to transform coordinates from one local frame - * into another local frame. This utility is useful when - * one wants to do model updates instead of world updates. - * - * In mathematical terms we have two transforms: - * - * C1 : H -> G - * C2 : F -> G - * - * And we want to find - * - * C3 : H -> F - * - * This transform is computed and assigned to this coordinate - * system. - * - * Very important: Note that this method finds the transform A -> B. - */ - template - inline CoordSys model_update(Vector3 const & TA, Quaternion const & QA, Vector3 const & TB, Quaternion const & QB) - { - //--- - //--- p' = RA p + TA (*1) from A->WCS - //--- - //--- p = RB^T (p' - TB) (*2) from WCS-B - //--- - //--- Insert (*1) into (*2) A -> B - //--- - //--- p = RB^T ( RA p + TA - TB) - //--- = RB^T RA p + RB^T (TA - TB) - //--- So - //--- R = RB^T RA - //--- T = RB^T (TA - TB) - //--- - Quaternion q; - if(QA==QB) - { - q.identity(); - } - else - { - q = unit( prod( conj(QB), QA) ); - } - return CoordSys( conj(QB).rotate(TA - TB), q); - } - - template - inline std::ostream & operator<< (std::ostream & o, CoordSys const & C) - { - o << "[" << C.T() << "," << C.Q() << "]"; - return o; - } - - template - inline std::istream & operator>>(std::istream & i, CoordSys & C) - { - char dummy; - i >> dummy; - i >> C.T(); - i >> dummy; - i >> C.Q(); - i >> dummy; - return i; - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_COORDSYS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_covariance.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_covariance.h deleted file mode 100644 index 45a4dd2bd..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_covariance.h +++ /dev/null @@ -1,84 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_COVARIANCE_H -#define OPENTISSUE_CORE_MATH_MATH_COVARIANCE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - - namespace math - { - - /** - * - * @param mean Resulting mean point. - * @param C Resulting covariance matrix. - */ - template< typename vector3_iterator, typename vector3_type, typename matrix3x3_type> - inline void - covariance( - vector3_iterator begin, vector3_iterator end - , vector3_type & mean, matrix3x3_type & C - ) - { - typedef typename vector3_type::value_traits value_traits; - - unsigned int N = 0; - - mean.clear(); - - for(vector3_iterator v = begin;v!=end;++v,++N) - mean += (*v); - mean /= N; - - C.clear(); - for(vector3_iterator v = begin;v!=end;++v,++N) - { - C(0,0) += ((*v)(0) - mean(0))*((*v)(0) - mean(0)); - C(1,1) += ((*v)(1) - mean(1))*((*v)(1) - mean(1)); - C(2,2) += ((*v)(2) - mean(2))*((*v)(2) - mean(2)); - C(0,1) += ((*v)(0) - mean(0))*((*v)(1) - mean(1)); - C(0,2) += ((*v)(0) - mean(0))*((*v)(2) - mean(2)); - C(1,2) += ((*v)(1) - mean(1))*((*v)(2) - mean(2)); - } - C(1,0) = C(0,1); - C(2,0) = C(0,2); - C(2,1) = C(1,2); - C /= N; - } - - /** - * - * - * @param mean Resulting mean point. - * @param C Resulting covariance matrix. - */ - template - inline void - covariance_union( - vector3_type const & mean1, matrix3x3_type const & C1 - , vector3_type const & mean2, matrix3x3_type const & C2 - , vector3_type & mean, matrix3x3_type & C - ) - { - typedef typename vector3_type::value_traits value_traits; - - mean = (mean1 + mean2)/value_traits::two(); - matrix3x3_type KK = outer_prod(mean,mean); - matrix3x3_type NN = outer_prod(mean1,mean1); - matrix3x3_type MM = outer_prod(mean2,mean2); - C = ((C1 + NN + C2 + MM)/value_traits::two() - KK) ; - } - - } // namespace math - -} // namespace OpenTissue - -// OPENTISSUE_CORE_MATH_MATH_COVARIANCE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_dual_quaternion.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_dual_quaternion.h deleted file mode 100644 index ca811117b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_dual_quaternion.h +++ /dev/null @@ -1,198 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_DUAL_QUATERNION_H -#define OPENTISSUE_CORE_MATH_MATH_DUAL_QUATERNION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2010 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include - -#include - -// 2010-07-16 Kenny : code review, where is the unit tests? - -namespace OpenTissue -{ - - namespace math - { - - // 2010-07-16 Kenny: code review, why do you keep uncommented code around? - // 2010-07-16 perb: I have keept this as I thought this was the direction OpenTissue was going, - // considering that it is in both the vector3 and quaternion class - // I thought it was a preparation to get rid of the next TODO... - template < - typename value_type_ - //, typename value_traits_ = ValueTraits - > - class DualQuaternion - { - protected: - - // 2010-07-16 Kenny: code review, the TODO comment seems unneeded? - // 2010-07-16 perb - typedef typename OpenTissue::math::ValueTraits value_traits_ ; // TODO value_traits_ should be parameterized as a class template parameter. - - public: - - typedef value_traits_ value_traits; ///< Convience typedef to make value traits accesible for all template functions using Vector3 types. - typedef value_type_ value_type; ///< Typedef is required for compliance with many other libraries and data containers! - typedef size_t index_type; - typedef Vector3 vector3_type; - typedef Quaternion quaternion_type; - - protected: - - quaternion_type m_real; ///< The real part of this dual quaternion. This represents the rotation when used as a rigid motion. - quaternion_type m_dual; ///< The dual part of this dual quaternion. This represents the displacement when used as a rigid motion. - - public: - - quaternion_type & r() { return m_real; } - quaternion_type const & r() const { return m_real; } - - quaternion_type & d() { return m_dual; } - quaternion_type const & d() const { return m_dual; } - - public: - - DualQuaternion() - : m_real( quaternion_type( value_traits::one(), value_traits::zero(), value_traits::zero(), value_traits::zero() ) ) - , m_dual( quaternion_type( value_traits::zero(), value_traits::zero(), value_traits::zero(), value_traits::zero() ) ) - {} - - /** - * This constructs a dual quaternion representing the transformation of the given vector - * - * @param v Vector describing a translation - * - * @return A dual quaternion describing the translation given - */ - DualQuaternion( vector3_type const & v ) - : m_real( quaternion_type( value_traits::one(), value_traits::zero(), value_traits::zero(), value_traits::zero() ) ) - , m_dual( quaternion_type( value_traits::one(), v[0] / value_traits::two(), v[1] / value_traits::two(), v[2] / value_traits::two() ) ) - {} - - /** - * This constructs a unit dual quaternion describing a rotation and a translation - * - * @param rotation A unit quaternion describing a rotation - * @param translation A vector describing a translation - * - * @return A unit dual quaternion describing the rotation and translation given - */ - DualQuaternion( quaternion_type const & rotation, vector3_type const & translation ) - : m_real( rotation ) - , m_dual( prod( quaternion_type( value_traits::zero(), translation[0], translation[1], translation[2] ), rotation) / value_traits::two() ) - {} - - DualQuaternion( DualQuaternion< value_type > const & d ) { *this = d; } - - DualQuaternion( quaternion_type const & s_val, quaternion_type const & d_val ) - : m_real( s_val ) - , m_dual( d_val ) - {} - - ~DualQuaternion() - {} - - DualQuaternion & operator=( DualQuaternion const & cpy ) - { - m_real = cpy.m_real; - m_dual = cpy.m_dual; - - return *this; - } - - DualQuaternion & operator+= ( DualQuaternion const & qd ) - { - // 2010-07-16 Kenny: code review, safe guard for self assignment? if (this!=&qd)??? - // 2010-07-16 perb: I am not sure why this would be a problem. - // 2010-07-16 kenny: Argh, sorry, I read the code too fast, I read it as an assignment operator. - m_real += qd.r(); - m_dual += qd.d(); - - return *this; - } - - public: - - friend std::ostream & operator<< ( std::ostream & o, DualQuaternion< value_type > const & d ) - { - o << "[" << d.r() << "," << d.d() << "]"; - - return o; - } - - friend std::istream & operator>>( std::istream & i, DualQuaternion< value_type > & d ) - { - char dummy; - - i >> dummy; - i >> d.r(); - i >> dummy; - i >> d.d(); - i >> dummy; - - return i; - } - }; // class DualQuaternion - - - ////////////////////////////////////////////////////////////////////////// - /// Declaration of DualQuaternion non-member functions - ////////////////////////////////////////////////////////////////////////// - - template < typename T, typename T2 > - inline DualQuaternion operator*( DualQuaternion const& dq, T2 const& v ) { return DualQuaternion< T >( dq.r() * v, dq.d() * v ); } - - template < typename T2, typename T > - inline DualQuaternion operator*( T2 const& v, DualQuaternion const& dq ) { return DualQuaternion< T >( dq.r() * v, dq.d() * v ); } - - template < typename T, typename T2 > - inline DualQuaternion operator/( DualQuaternion const& dq, T2 const& v ) { return DualQuaternion< T >( dq.r() / v, dq.d() / v ); } - - template < typename T > - inline DualQuaternion< T > operator-( DualQuaternion< T > q ) { return DualQuaternion< T >( -q.r(), -q.d() ); } - - - /** - * Dual conjugate. This is the conjugate that considers the dual quaternion as a dual number with quaternion elements. - * - * @warning There are two different types. The quaternion conjugate and the dual conjugate. - */ - template< typename T > - inline DualQuaternion< T > conj_dual( DualQuaternion< T > const & dq ) - { - return DualQuaternion< T >( dq.r(), -dq.d() ); - } - - /** - * Quaternion conjugate. This is the conjugate that considers the dual quaternion as a quaternion with dual number elements. - * - * @warning There are two different types. The quaternion conjugate and the dual conjugate. - */ - template< typename T > - inline DualQuaternion< T > conj_quaternion( DualQuaternion< T > const & dq ) - { - return DualQuaternion< T >( conj( dq.r() ), conj( dq.d() ) ); - } - - template< typename T > - inline DualQuaternion< T > prod( DualQuaternion< T > const & q, DualQuaternion< T > const & p ) - { - return DualQuaternion< T >( prod( q.r(), p.r() ), prod( q.r(), p.d() ) + prod( q.d(), p.r() ) ); - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_DUAL_QUATERNION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_eigen_system_decomposition.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_eigen_system_decomposition.h deleted file mode 100644 index 70bdf4108..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_eigen_system_decomposition.h +++ /dev/null @@ -1,173 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_EIGEN_SYSTEM_DECOMPOSITION_H -#define OPENTISSUE_CORE_MATH_MATH_EIGEN_SYSTEM_DECOMPOSITION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include // for sqrt() and fabs - -namespace OpenTissue -{ - - namespace math - { - /** - * Eigen System Decomposition. - * - * @param A Matrix to find eigenvectors and eigenvalues of. - * @param V Upon return the columns of this matrix contains the - * eigenvectors. IMPORTANT: V may not form a right-handed - * coordinate system (ie. V might not be a rotation matrix). If - * a rotation matrix is needed one should compute the determinant - * of V and flip the sign of one of V's columns in case the - * determinant is negative. That is: - * - * if(det(V)<0) { V(0,0) =- V(0,0); V(1,0) =- V(1,0); V(2,0) =- V(2,0); } - * - * - * @param diag Upon return this vector contains the - * eigenvalues, such that entry 0 correpsonds to - * eigenvector 0 and so on. - */ - template - inline void eigen(matrix3x3_type const & A,matrix3x3_type & V,vector3_type & diag) - { - typedef typename vector3_type::value_type real_type; - typedef typename vector3_type::value_traits value_traits; - - using std::sqrt; - using std::fabs; - - vector3_type sub_diag; - - sub_diag.clear(); - diag.clear(); - - V = A; - - real_type const & fM00 = V(0,0); - real_type fM01 = V(0,1); - real_type fM02 = V(0,2); - real_type const & fM11 = V(1,1); - real_type const & fM12 = V(1,2); - real_type const & fM22 = V(2,2); - - diag(0) = fM00; - sub_diag(2) = value_traits::zero(); - if ( fM02 != value_traits::zero() ) - { - real_type fLength = sqrt(fM01*fM01+fM02*fM02); - real_type fInvLength = (value_traits::one())/fLength; - fM01 *= fInvLength; - fM02 *= fInvLength; - real_type fQ = (value_traits::two())*fM01*fM12+fM02*(fM22-fM11); - diag(1) = fM11+fM02*fQ; - diag(2) = fM22-fM02*fQ; - sub_diag(0) = fLength; - sub_diag(1) = fM12-fM01*fQ; - V(0,0) = value_traits::one(); - V(0,1) = value_traits::zero(); - V(0,2) = value_traits::zero(); - V(1,0) = value_traits::zero(); - V(1,1) = fM01; - V(1,2) = fM02; - V(2,0) = value_traits::zero(); - V(2,1) = fM02; - V(2,2) = -fM01; - } - else - { - diag(1) = fM11; - diag(2) = fM22; - sub_diag(0) = fM01; - sub_diag(1) = fM12; - V(0,0) = value_traits::one(); - V(0,1) = value_traits::zero(); - V(0,2) = value_traits::zero(); - V(1,0) = value_traits::zero(); - V(1,1) = value_traits::one(); - V(1,2) = value_traits::zero(); - V(2,0) = value_traits::zero(); - V(2,1) = value_traits::zero(); - V(2,2) = value_traits::one(); - } - - const int max_iterations = 32; - const int dim = 3; - for (int i0 = 0; i0 < dim; ++i0) - { - int i1; - for (i1 = 0; i1 < max_iterations; ++i1) - { - int i2; - for (i2 = i0; i2 <= dim-2; ++i2) - { - real_type fTmp = fabs(diag(i2)) + fabs(diag(i2+1)); - if ( fabs(sub_diag(i2)) + fTmp == fTmp ) - break; - } - if ( i2 == i0 ) - break; - real_type fG = (diag(i0+1) - diag(i0))/(value_traits::two()* sub_diag(i0)); - real_type fR = sqrt(fG*fG+value_traits::one()); - if ( fG < value_traits::zero() ) - fG = diag(i2)-diag(i0)+sub_diag(i0)/(fG-fR); - else - fG = diag(i2)-diag(i0)+sub_diag(i0)/(fG+fR); - - real_type fSin = value_traits::one(); - real_type fCos = value_traits::one(); - real_type fP = value_traits::zero(); - - for (int i3 = i2-1; i3 >= i0; --i3) - { - real_type fF = fSin*sub_diag(i3); - real_type fB = fCos*sub_diag(i3); - if ( fabs(fF) >= fabs(fG) ) - { - fCos = fG/fF; - fR = sqrt(fCos*fCos+value_traits::one()); - sub_diag(i3+1) = fF*fR; - fSin = value_traits::one()/fR; - fCos *= fSin; - } - else - { - fSin = fF/fG; - fR = sqrt(fSin*fSin+value_traits::one()); - sub_diag(i3+1) = fG*fR; - fCos = value_traits::one()/fR; - fSin *= fCos; - } - fG = diag(i3+1)-fP; - fR = (diag(i3)-fG)*fSin+value_traits::two()*fB*fCos; - fP = fSin*fR; - diag(i3+1) = fG+fP; - fG = fCos*fR-fB; - for (int i4 = 0; i4 < dim; ++i4) - { - fF = V(i4,i3+1); - V(i4,i3+1) = fSin*V(i4,i3)+fCos*fF; - V(i4,i3) = fCos*V(i4,i3)-fSin*fF; - } - } - diag(i0) -= fP; - sub_diag(i0) = fG; - sub_diag(i2) = value_traits::zero(); - } - if ( i1 == max_iterations ) - break; - } - } - - } // namespace math - -} // namespace OpenTissue - -// OPENTISSUE_CORE_MATH_MATH_EIGEN_SYSTEM_DECOMPOSITION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_functions.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_functions.h deleted file mode 100644 index 04f19736a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_functions.h +++ /dev/null @@ -1,158 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_FUNCTIONS_H -#define OPENTISSUE_CORE_MATH_MATH_FUNCTIONS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - - - -namespace OpenTissue -{ - - /** - * The following functions are defined below: - * - clamp (and the variations: clamp_min, clamp_max, clamp_zero_one) - * - fac (faculty) - * - sgn (sign function) - * - sinc - */ - namespace math - { - - /** - * clamp function to clamp a value to be in the interval (min_value; max_value). - * - * @param value The value to be clamped. - * @param min_value The minimum allowed value. - * @param max_value The maximum allowed value (ohhh, really?). - * @return The clamped value. If value already is in (min_value; max_value) no clamping is performed. - */ - template - inline T clamp(T const & value, T const & min_value, T const & max_value) - { - assert(min_value <= max_value || !"max_value cannot be less than min_value"); - using std::min; - using std::max; - - return T(min(max_value, max(min_value, value))); - } - - - /** - * clamp function to clamp a value never to be less than min_value. - * - * @param value The value to be clamped. - * @param min_value The minimum allowed value. - * @return The clamped value if value is less than min_value, otherwise the original value is returned. - */ - template - inline T clamp_min(T const & value, T const & min_value) - { - using std::max; - return clamp(value, min_value, max(value, min_value)); - } - - - /** - * clamp function to clamp a value never to be greater than max_value. - * - * @param value The value to be clamped. - * @param max_value The maximum allowed value. - * @return The clamped value if value is greater than max_value, otherwise the original value is returned. - */ - template - inline T clamp_max(T const & value, T const & max_value) - { - using std::min; - return clamp(value, min(value, max_value), max_value); - } - - - /** - * clamp function to easily clamp a value between 0 and 1. - * note: this function is mostly usable for T = some real type. - * - * @param value The value to be clamped. - * @return The clamped value. If value already is in (0; 1) no clamping is performed. - */ - template - inline T clamp_zero_one(T const & value) - { - return clamp(value, detail::zero(), detail::one()); - } - - - template - inline T fac(unsigned long n) - { - // TODO what about implicit type conversions? This could have been done more elegangtly using partial specialization - unsigned long val = 1; - for(; n > 0; val *= n--); - return T(val); - } - - - template - inline T sgn(T const & val) - { - static T const zero = detail::zero(); - static T const one = detail::one(); - return val > zero ? one : val < zero ? -one : zero; - } - - - /** - * Compute Sinc Function. - * The implementation of this method was greatly inspired by the - * one in Open Dynamics Engine v. 0.039 - * - * This method returns sin(x)/x. this has a singularity at 0 so special - * handling is needed for small arguments. - * - * @param x - * @return The value of sin(x)/x - */ - template - inline T sinc(T & x) - { - using std::fabs; - using std::sin; - - static T const tiny = (T)(1.0e-4); - static T const factor = (T)(0.166666666666666666667); - - //--- if |x| < 1e-4 then use a taylor series expansion. this two term expansion - //--- is actually accurate to one LS bit within this range if double precision - //--- is being used - so don't worry! - return (fabs(x) < tiny) ? (detail::one() - x*x*factor) : (sin(x)/x); - } - - - // use this to convert radians into degrees - template - inline T to_degrees(T const & radians) - { - return radians*detail::radian(); - } - - - // use this to convert degrees into radians - template - inline T to_radians(T const & degrees) - { - return degrees*detail::degree(); - } - - } // namespace math - -} // namespace OpenTissue - -// #define OPENTISSUE_CORE_MATH_MATH_FUNCTIONS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_invert4x4.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_invert4x4.h deleted file mode 100644 index 0e738399f..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_invert4x4.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_INVERT4x4_H -#define OPENTISSUE_CORE_MATH_MATH_INVERT4x4_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - -namespace OpenTissue -{ - - namespace math - { - - template - inline void invert4x4(real_type M[4][4]) - { - real_type a00 = M[0][0]; real_type a01 = M[0][1]; real_type a02 = M[0][2]; real_type a03 = M[0][3]; - real_type a10 = M[1][0]; real_type a11 = M[1][1]; real_type a12 = M[1][2]; real_type a13 = M[1][3]; - real_type a20 = M[2][0]; real_type a21 = M[2][1]; real_type a22 = M[2][2]; real_type a23 = M[2][3]; - real_type a30 = M[3][0]; real_type a31 = M[3][1]; real_type a32 = M[3][2]; real_type a33 = M[3][3]; - - M[0][0] = a11*a22*a33 - a11*a23*a32 - a21*a12*a33 + a21*a13*a32 + a31*a12*a23 - a31*a13*a22; - M[0][1] = - a01*a22*a33 + a01*a23*a32 + a21*a02*a33 - a21*a03*a32 - a31*a02*a23 + a31*a03*a22; - M[0][2] = a01*a12*a33 - a01*a13*a32 - a11*a02*a33 + a11*a03*a32 + a31*a02*a13 - a31*a03*a12; - M[0][3] = - a01*a12*a23 + a01*a13*a22 + a11*a02*a23 - a11*a03*a22 - a21*a02*a13 + a21*a03*a12; - M[1][0] = - a10*a22*a33 + a10*a23*a32 + a20*a12*a33 - a20*a13*a32 - a30*a12*a23 + a30*a13*a22; - M[1][1] = a00*a22*a33 - a00*a23*a32 - a20*a02*a33 + a20*a03*a32 + a30*a02*a23 - a30*a03*a22; - M[1][2] = - a00*a12*a33 + a00*a13*a32 + a10*a02*a33 - a10*a03*a32 - a30*a02*a13 + a30*a03*a12; - M[1][3] = a00*a12*a23 - a00*a13*a22 - a10*a02*a23 + a10*a03*a22 + a20*a02*a13 - a20*a03*a12; - M[2][0] = a10*a21*a33 - a10*a23*a31 - a20*a11*a33 + a20*a13*a31 + a30*a11*a23 - a30*a13*a21; - M[2][1] = - a00*a21*a33 + a00*a23*a31 + a20*a01*a33 - a20*a03*a31 - a30*a01*a23 + a30*a03*a21; - M[2][2] = a00*a11*a33 - a00*a13*a31 - a10*a01*a33 + a10*a03*a31 + a30*a01*a13 - a30*a03*a11; - M[2][3] = - a00*a11*a23 + a00*a13*a21 + a10*a01*a23 - a10*a03*a21 - a20*a01*a13 + a20*a03*a11; - M[3][0] = - a10*a21*a32 + a10*a22*a31 + a20*a11*a32 - a20*a12*a31 - a30*a11*a22 + a30*a12*a21; - M[3][1] = a00*a21*a32 - a00*a22*a31 - a20*a01*a32 + a20*a02*a31 + a30*a01*a22 - a30*a02*a21; - M[3][2] = - a00*a11*a32 + a00*a12*a31 + a10*a01*a32 - a10*a02*a31 - a30*a01*a12 + a30*a02*a11; - M[3][3] = a00*a11*a22 - a00*a12*a21 - a10*a01*a22 + a10*a02*a21 + a20*a01*a12 - a20*a02*a11; - //real_type D = - // ( - // a00*a11*a22*a33 - a00*a11*a23*a32 - a00*a21*a12*a33 + a00*a21*a13*a32 + a00*a31*a12*a23 - a00*a31*a13*a22 - // - a10*a01*a22*a33 + a10*a01*a23*a32 + a10*a21*a02*a33 - a10*a21*a03*a32 - a10*a31*a02*a23 + a10*a31*a03*a22 - // + a20*a01*a12*a33 - a20*a01*a13*a32 - a20*a11*a02*a33 + a20*a11*a03*a32 + a20*a31*a02*a13 - a20*a31*a03*a12 - // - a30*a01*a12*a23 + a30*a01*a13*a22 + a30*a11*a02*a23 - a30*a11*a03*a22 - a30*a21*a02*a13 + a30*a21*a03*a12 - // ); - real_type D = a00*M[0][0] + a10*M[0][1] + a20*M[0][2] + a30*M[0][3]; - if(D) - { - M[0][0] /=D; M[0][1] /=D; M[0][2] /=D; M[0][3] /=D; - M[1][0] /=D; M[1][1] /=D; M[1][2] /=D; M[1][3] /=D; - M[2][0] /=D; M[2][1] /=D; M[2][2] /=D; M[2][3] /=D; - M[3][0] /=D; M[3][1] /=D; M[3][2] /=D; M[3][3] /=D; - } - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_INVERT4x4_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_finite.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_finite.h deleted file mode 100644 index b245f6f9c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_finite.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_IS_FINITE_H -#define OPENTISSUE_CORE_MATH_IS_FINITE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#ifdef WIN32 -#include -#endif - -namespace OpenTissue -{ - namespace math - { - -#ifdef WIN32 -#define is_finite(val) (_finite(val)!=0) ///< Is finite number test -#else -#define is_finite(val) (finite(val)!=0) ///< Is finite number test -#endif - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_IS_FINITE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_number.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_number.h deleted file mode 100644 index 40e315803..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_is_number.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_IS_NUMBER_H -#define OPENTISSUE_CORE_MATH_IS_NUMBER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#ifdef WIN32 -#include -#else -#include -#endif - -namespace OpenTissue -{ - namespace math - { - -#ifdef WIN32 -#define is_number(val) (_isnan(val)==0) ///< Is a number test -#else -#if (__APPLE__) -#define is_number(val) (std::isnan(val)==0) ///< Is a number test -#else -#define is_number(val) (isnan(val)==0) ///< Is a number test -#endif -#endif - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_IS_NUMBER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_matrix3x3.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_matrix3x3.h deleted file mode 100644 index aa811024d..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_matrix3x3.h +++ /dev/null @@ -1,788 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_MATRIX3X3_H -#define OPENTISSUE_CORE_MATH_MATH_MATRIX3X3_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -#include -#include -#include - - -namespace OpenTissue -{ - - namespace math - { - - template class Quaternion; - - template< - typename value_type_ - //, typename value_traits_ = ValueTraits - > - class Matrix3x3 - { - protected: - - typedef typename math::ValueTraits value_traits_ ; // TODO value_traits_ should be parameterized as a class template parameter. - - public: - - typedef value_traits_ value_traits; ///< Convience typedef to make value traits accesible for all template functions using Vector3 types. - typedef value_type_ value_type; ///< Typedef is required for compliance with many other libraries and data containers! - typedef Vector3 vector3_type; // TODO should Vector3 type be template parameterized? - typedef Quaternion quaternion_type; - typedef size_t index_type; // TODO should the index type be template parameterized? - - protected: - - // TODO 2007-02-19 KE: Refactor this stuff into an array - vector3_type m_row0; ///< The 1st row of the matrix - vector3_type m_row1; ///< The 2nd row of the matrix - vector3_type m_row2; ///< The 3rd row of the matrix - - public: - - Matrix3x3() - : m_row0(value_traits::zero() ,value_traits::zero() ,value_traits::zero() ) - , m_row1(value_traits::zero() ,value_traits::zero() ,value_traits::zero() ) - , m_row2(value_traits::zero() ,value_traits::zero() ,value_traits::zero() ) - {} - - ~Matrix3x3(){} - - explicit Matrix3x3( - value_type const & m00 , value_type const & m01 , value_type const & m02 - , value_type const & m10 , value_type const & m11 , value_type const & m12 - , value_type const & m20 , value_type const & m21 , value_type const & m22 - ) - : m_row0(m00,m01,m02) - , m_row1(m10,m11,m12) - , m_row2(m20,m21,m22) - {} - - - explicit Matrix3x3(vector3_type const & row0, vector3_type const & row1, vector3_type const & row2) - : m_row0(row0) - , m_row1(row1) - , m_row2(row2) - {} - - explicit Matrix3x3(quaternion_type const & q) { *this = q; } - - Matrix3x3(Matrix3x3 const & M) - : m_row0(M.m_row0) - , m_row1(M.m_row1) - , m_row2(M.m_row2) - {} - - public: - - value_type & operator()(index_type i, index_type j) - { - assert( ( i>=0 && i<3 ) || !"Matrix3x3::(i,j) i must be in range [0..2]"); - assert( ( j>=0 && j<3 ) || !"Matrix3x3::(i,j) j must be in range [0..2]"); - return (*(&m_row0+i))(j); - } - - value_type const & operator()(index_type i, index_type j) const - { - assert( ( i>=0 && i<3 ) || !"Matrix3x3::(i,j) i must be in range [0..2]"); - assert( ( j>=0 && j<3 ) || !"Matrix3x3::(i,j) j must be in range [0..2]"); - return (*(&m_row0+i))(j); - } - - vector3_type & operator[](index_type i) - { - assert( ( i>=0 && i<3 ) || !"Matrix3x3::(i,j) i must be in range [0..2]"); - return *(&m_row0+i); - } - - vector3_type const & operator[](index_type i) const - { - assert( ( i>=0 && i<3 ) || !"Matrix3x3::(i,j) i must be in range [0..2]"); - return *(&m_row0+i); - } - - Matrix3x3 & operator=( Matrix3x3 const & cpy ) - { - m_row0=cpy.m_row0; - m_row1=cpy.m_row1; - m_row2=cpy.m_row2; - return *this; - } - - // TODO: Comparing floats with == or != is not safe NOTE T might not be a float type it could be anything? This suggest that we need some kinf of metaprogramming technique to deal with ths problem? - bool operator==(Matrix3x3 const & cmp ) const - { - return (m_row0==cmp.m_row0) && (m_row1==cmp.m_row1) && (m_row2==cmp.m_row2); - } - - bool operator!=( Matrix3x3 const & cmp ) const - { - return !(*this==cmp); - } - - Matrix3x3 operator+ ( Matrix3x3 const & m ) const { return Matrix3x3( m_row0+m.m_row0, m_row1+m.m_row1, m_row2+m.m_row2); } - Matrix3x3 operator- ( Matrix3x3 const & m ) const { return Matrix3x3( m_row0-m.m_row0, m_row1-m.m_row1, m_row2-m.m_row2); } - Matrix3x3 & operator+= ( Matrix3x3 const & m ) { m_row0+=m.m_row0; m_row1+=m.m_row1; m_row2+=m.m_row2; return *this; } - Matrix3x3 & operator-= ( Matrix3x3 const & m ) { m_row0-=m.m_row0; m_row1-=m.m_row1; m_row2-=m.m_row2; return *this; } - Matrix3x3 & operator*= ( value_type const & s ) {m_row0*=s;m_row1*=s;m_row2*=s;return *this;} - - Matrix3x3 & operator/= ( value_type const & s ) - { - assert(s || !"Matrix3x3/=(): division by zero"); - m_row0/=s; - m_row1/=s; - m_row2/=s; - return *this; - } - - vector3_type operator*(vector3_type const &v) const { return vector3_type(m_row0*v, m_row1*v, m_row2*v); } - Matrix3x3 operator-() const { return Matrix3x3(-m_row0,-m_row1,-m_row2); } - - size_t size1() const { return 3u; } - size_t size2() const { return 3u; } - - /** - * Assigns this quaternion to a matrix. - * This method performs a conversion of a quaternion that represents a rotation into the correponding rotationmatrix. - * - * @param q A reference to a quaternion. This is the quaternion that represents a rotation. - */ - Matrix3x3 & operator=(quaternion_type const & q) - { - m_row0(0) = value_traits::one() - value_traits::two() * ( (q.v()(1)*q.v()(1)) + (q.v()(2)*q.v()(2))); - m_row1(1) = value_traits::one() - value_traits::two() * ( (q.v()(0)*q.v()(0)) + (q.v()(2)*q.v()(2))); - m_row2(2) = value_traits::one() - value_traits::two() * ( (q.v()(1)*q.v()(1)) + (q.v()(0)*q.v()(0))); - m_row1(0) = value_traits::two() * ( (q.v()(0)*q.v()(1)) + (q.s()*q.v()(2))); - m_row0(1) = value_traits::two() * ( (q.v()(0)*q.v()(1)) - (q.s()*q.v()(2))); - m_row2(0) = value_traits::two() * (-(q.s()*q.v()(1)) + (q.v()(0)*q.v()(2))); - m_row0(2) = value_traits::two() * ( (q.s()*q.v()(1)) + (q.v()(0)*q.v()(2))); - m_row2(1) = value_traits::two() * ( (q.v()(2)*q.v()(1)) + (q.s()*q.v()(0))); - m_row1(2) = value_traits::two() * ( (q.v()(2)*q.v()(1)) - (q.s()*q.v()(0))); - return *this; - } - - void clear() - { - m_row0.clear(); - m_row1.clear(); - m_row2.clear(); - } - - public: - - friend Matrix3x3 fabs(Matrix3x3 const & A) - { - using std::fabs; - - return Matrix3x3( - fabs(A(0,0)), fabs(A(0,1)), fabs(A(0,2)), - fabs(A(1,0)), fabs(A(1,1)), fabs(A(1,2)), - fabs(A(2,0)), fabs(A(2,1)), fabs(A(2,2)) - ); - } - - public: - - vector3_type column(index_type i) const - { - assert((i>=0 && i<3) || !"Matrix3x3::column(): index must be in range [0..2]"); - - return vector3_type(m_row0(i), m_row1(i), m_row2(i)); - } - - void set_column(index_type i, vector3_type const & column) - { - assert((i>=0 && i<3) || !"Matrix3x3::set_column(): index must be in range [0..2]"); - - m_row0(i) = column(0); - m_row1(i) = column(1); - m_row2(i) = column(2); - } - - vector3_type & row(index_type i) { return (*this)[i]; } - vector3_type const & row(index_type i) const { return (*this)[i]; } - - }; // class Matrix3x3 - - - template - inline Matrix3x3 operator*( Matrix3x3 const & m, T const &s ) - { - return Matrix3x3(m.row(0)*s, m.row(1)*s, m.row(2)*s); - } - - template - inline Matrix3x3 operator*( T const & s, Matrix3x3 const & m ) - { - return Matrix3x3(m.row(0)*s, m.row(1)*s, m.row(2)*s); - } - - template - inline Matrix3x3 operator/( Matrix3x3 const & m, T const & s ) - { - return Matrix3x3(m.row(0)/s, m.row(1)/s, m.row(2)/s); - } - - template - inline Matrix3x3 operator/( T const & s, Matrix3x3 const & m ) - { - return Matrix3x3(m.row(0)/s, m.row(1)/s, m.row(2)/s); - } - - template - inline Matrix3x3 operator*(Matrix3x3 const & A,Matrix3x3 const & B) - { - typedef typename Matrix3x3::value_traits value_traits; - Matrix3x3 C; - - for (int c=0; c<3; ++c) - for (int r=0; r<3; ++r){ - C(r,c) = value_traits::zero(); - for(int i=0; i<3; ++i){ - C(r,c) += A(r,i) * B(i,c); - } - } - return C; - } - - /** - * Creates a rotation matrix. - * This method returns a rotation matrix around the x-axe. It - * assumes that post-multiplication by colum vectors is used. - * - * @param radians The rotation angle in radians. - */ - template - inline Matrix3x3 Rx(T const & radians) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::cos; - using std::sin; - - T cosinus = (T)( cos(radians) ); - T sinus = (T)( sin(radians) ); - - return Matrix3x3( - value_traits::one(), value_traits::zero(), value_traits::zero(), - value_traits::zero(), cosinus, -sinus, - value_traits::zero(), sinus, cosinus - ); - } - - /** - * Creates a rotation matrix. - * This method returns a rotation matrix around the y-axe. It - * assumes that post-multiplication by colum vectors is used. - * - * @param radians The rotation angle in radians. - */ - template - inline Matrix3x3 Ry(T const & radians) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::cos; - using std::sin; - - T cosinus = (T)( cos(radians) ); - T sinus = (T)( sin(radians) ); - return Matrix3x3( - cosinus, value_traits::zero(), sinus, - value_traits::zero(), value_traits::one(), value_traits::zero(), - -sinus, value_traits::zero(), cosinus - ); - } - - /** - * Creates a rotation matrix. - * This method returns a rotation matrix around the z-axe. It assumes that post-multiplication by colum vectors is used. - * - * @param radians The rotation angle in radians. - */ - template - inline Matrix3x3 Rz(T const & radians) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::cos; - using std::sin; - - T cosinus = (T)( cos(radians) ); - T sinus = (T)( sin(radians) ); - - return Matrix3x3( - cosinus, -sinus, value_traits::zero(), - sinus, cosinus, value_traits::zero(), - value_traits::zero(), value_traits::zero(), value_traits::one() - ); - } - - /** - * Creates a rotation matrix. - * This method returns a general rotation matrix around a specified axe. It assumes that post-multiplication by colum vectors is used. - * - * @param radians The rotation angle in radians. - * @param axe A vector. This is the rotation axe. - */ - template - inline Matrix3x3 Ru(T const & radians, Vector3 const & axis) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::cos; - using std::sin; - - T cosinus = (T)( cos(radians) ); - T sinus = (T)( sin(radians) ); - Vector3 u = unit(axis); - - //Foley p.227 (5.76) - return Matrix3x3( - u(0)*u(0) + cosinus*(value_traits::one() - u(0)*u(0)), u(0)*u(1)*(value_traits::one()-cosinus) - sinus*u(2), u(0)*u(2)*(value_traits::one()-cosinus) + sinus*u(1), - u(0)*u(1)*(value_traits::one()-cosinus) + sinus*u(2), u(1)*u(1) + cosinus*(value_traits::one() - u(1)*u(1)), u(1)*u(2)*(value_traits::one()-cosinus) - sinus*u(0), - u(0)*u(2)*(value_traits::one()-cosinus) - sinus*u(1), u(1)*u(2)*(value_traits::one()-cosinus) + sinus*u(0), u(2)*u(2) + cosinus*(value_traits::one() - u(2)*u(2)) - ); - } - - /** - * Direction of Flight (DoF) - * - * @param k The desired direction of flight. - */ - template - inline Matrix3x3 z_dof(Vector3 const & k) - { - Vector3 i,j; - orthonormal_vectors(i,j,unit(k)); - return Matrix3x3( - i(0) , j(0), k(0) - , i(1) , j(1), k(1) - , i(2) , j(2), k(2) - ); - } - - template - inline bool is_orthonormal(Matrix3x3 const & M,T const & threshold) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(threshold>=value_traits::zero() || !"is_orthonormal(): threshold must be non-negative"); - - T dot01 = M.m_row0*M.m_row1; - T dot02 = M.m_row0*M.m_row2; - T dot12 = M.m_row1*M.m_row2; - if(fabs(dot01)>threshold) return false; - if(fabs(dot02)>threshold) return false; - if(fabs(dot12)>threshold) return false; - T dot00 = M.m_row0*M.m_row0; - T dot11 = M.m_row1*M.m_row1; - T dot22 = M.m_row2*M.m_row2; - if((dot00-value_traits::one())>threshold) return false; - if((dot11-value_traits::one())>threshold) return false; - if((dot22-value_traits::one())>threshold) return false; - return true; - } - - template - inline bool is_orthonormal(Matrix3x3 const & M) - { - typedef typename Matrix3x3::value_traits value_traits; - - return is_orthonormal(M, value_traits::zero()); - } - - template - inline bool is_zero(Matrix3x3 M, T const & threshold) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(threshold>=value_traits::zero() || !"is_zero(): threshold must be non-negative"); - - if(fabs(M(0,0))>threshold) return false; - if(fabs(M(0,1))>threshold) return false; - if(fabs(M(0,2))>threshold) return false; - if(fabs(M(1,0))>threshold) return false; - if(fabs(M(1,1))>threshold) return false; - if(fabs(M(1,2))>threshold) return false; - if(fabs(M(2,0))>threshold) return false; - if(fabs(M(2,1))>threshold) return false; - if(fabs(M(2,2))>threshold) return false; - return true; - } - - template - inline bool is_zero(Matrix3x3 const & M) - { - typedef typename Matrix3x3::value_traits value_traits; - - return is_zero(M, value_traits::zero()); - } - - template - inline bool is_symmetric(Matrix3x3 M, T const & threshold) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(threshold>=value_traits::zero() || !"is_symmetric(): threshold must be non-negative"); - - if(fabs(M(0,1)-M(1,0))>threshold) return false; - if(fabs(M(0,2)-M(2,0))>threshold) return false; - if(fabs(M(1,2)-M(2,1))>threshold) return false; - return true; - } - - template - inline bool is_symmetric(Matrix3x3 const & M) - { - typedef typename Matrix3x3::value_traits value_traits; - - return is_symmetric(M, value_traits::zero()); - } - - template - inline bool is_diagonal(Matrix3x3 M, T const & threshold) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(threshold>=value_traits::zero() || !"is_diagonal(): threshold must be non-negative"); - - if(fabs(M(0,1))>threshold) return false; - if(fabs(M(0,2))>threshold) return false; - if(fabs(M(1,0))>threshold) return false; - if(fabs(M(1,2))>threshold) return false; - if(fabs(M(2,0))>threshold) return false; - if(fabs(M(2,1))>threshold) return false; - return true; - } - - template - inline bool is_diagonal(Matrix3x3 const & M) - { - typedef typename Matrix3x3::value_traits value_traits; - - return is_diagonal(M, value_traits::zero()); - } - - template - inline bool is_identity(Matrix3x3 M, T const & threshold) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(threshold>=value_traits::zero() || !"is_identity(): threshold must be non-negative"); - - if(fabs(M(0,0)-value_traits::one())>threshold) return false; - if(fabs(M(0,1))>threshold) return false; - if(fabs(M(0,2))>threshold) return false; - if(fabs(M(1,0))>threshold) return false; - if(fabs(M(1,1)-value_traits::one())>threshold) return false; - if(fabs(M(1,2))>threshold) return false; - if(fabs(M(2,0))>threshold) return false; - if(fabs(M(2,1))>threshold) return false; - if(fabs(M(2,2)-value_traits::one())>threshold) return false; - return true; - } - - template - inline bool is_identity(Matrix3x3 const & M) - { - typedef typename Matrix3x3::value_traits value_traits; - - return is_identity(M, value_traits::zero()); - } - - template - inline Matrix3x3 outer_prod( Vector3 const & v1, Vector3 const & v2 ) - { - return Matrix3x3( - ( v1( 0 ) * v2( 0 ) ), ( v1( 0 ) * v2( 1 ) ), ( v1( 0 ) * v2( 2 ) ), - ( v1( 1 ) * v2( 0 ) ), ( v1( 1 ) * v2( 1 ) ), ( v1( 1 ) * v2( 2 ) ), - ( v1( 2 ) * v2( 0 ) ), ( v1( 2 ) * v2( 1 ) ), ( v1( 2 ) * v2( 2 ) ) - ); - } - - template - inline Matrix3x3 ortonormalize(Matrix3x3 const & A) - { - typedef typename Matrix3x3::vector3_type vector3_type; - - vector3_type row0(A(0,0),A(0,1),A(0,2)); - vector3_type row1(A(1,0),A(1,1),A(1,2)); - vector3_type row2(A(2,0),A(2,1),A(2,2)); - - T const l0 = length(row0); - if(l0) row0 /= l0; - - row1 -= row0 * dot(row0 , row1); - T const l1 = length(row1); - if(l1) row1 /= l1; - - row2 = cross( row0 , row1); - - return Matrix3x3( - row0(0), row0(1), row0(2), - row1(0), row1(1), row1(2), - row2(0), row2(1), row2(2) - ); - } - - template - inline Matrix3x3 trans(Matrix3x3 const & M) - { - return Matrix3x3( - M(0,0), M(1,0), M(2,0), - M(0,1), M(1,1), M(2,1), - M(0,2), M(1,2), M(2,2) - ); - } - - - template - inline Matrix3x3 diag(T const & d0,T const & d1,T const & d2 ) - { - typedef typename Matrix3x3::value_traits value_traits; - - return Matrix3x3( - d0, value_traits::zero(), value_traits::zero(), - value_traits::zero(), d1, value_traits::zero(), - value_traits::zero(), value_traits::zero(), d2 - ); - } - - template - inline Matrix3x3 diag(Vector3 const & d) { return diag( d(0), d(1), d(2)); } - - template - inline Matrix3x3 diag(T const & d ) { return diag(d,d,d); } - - template - inline Matrix3x3 inverse(Matrix3x3 const & A) - { - typedef typename Matrix3x3::value_traits value_traits; - - //From messer p.283 we know - // - // -1 1 - // A = ----- adj A - // det A - // - // i+j - // ij-cofactor of A = -1 det A - // ij - // - // i,j entry of the adjoint. - // i+j - // adjoint A = ji-cofactor = A = -1 det A - // ij ji - // - // As it can be seen the only numerical error - // in these calculations is from the resolution - // of the scalars. So it is a very accurate method. - // - Matrix3x3 adj; - adj(0,0) = A(1,1)*A(2,2) - A(2,1)*A(1,2); - adj(1,1) = A(0,0)*A(2,2) - A(2,0)*A(0,2); - adj(2,2) = A(0,0)*A(1,1) - A(1,0)*A(0,1); - adj(0,1) = A(1,0)*A(2,2) - A(2,0)*A(1,2); - adj(0,2) = A(1,0)*A(2,1) - A(2,0)*A(1,1); - adj(1,0) = A(0,1)*A(2,2) - A(2,1)*A(0,2); - adj(1,2) = A(0,0)*A(2,1) - A(2,0)*A(0,1); - adj(2,0) = A(0,1)*A(1,2) - A(1,1)*A(0,2); - adj(2,1) = A(0,0)*A(1,2) - A(1,0)*A(0,2); - T det = A(0,0)*adj(0,0) - A(0,1)*adj(0,1) + A(0,2)*adj(0,2); - if(det) - { - adj(0,1) = -adj(0,1); - adj(1,0) = -adj(1,0); - adj(1,2) = -adj(1,2); - adj(2,1) = -adj(2,1); - return trans(adj)/det; - } - - return diag(value_traits::one()); - } - - template - inline T max_value(Matrix3x3 const & A) - { - using std::max; - - return max(A(0,0), max( A(0,1), max( A(0,2), max ( A(1,0), max ( A(1,1), max ( A(1,2), max (A(2,0), max ( A(2,1) , A(2,2) ) ) ) ) ) ) ) ); - } - - template - inline T min_value(Matrix3x3 const & A) - { - using std::min; - - return min(A(0,0), min( A(0,1), min( A(0,2), min ( A(1,0), min ( A(1,1), min ( A(1,2), min (A(2,0), min ( A(2,1) , A(2,2) ) ) ) ) ) ) ) ); - } - - template - inline T det(Matrix3x3 const & A) - { - return A(0,0)*(A(1,1)*A(2,2) - A(2,1)*A(1,2)) - A(0,1)*(A(1,0)*A(2,2) - A(2,0)*A(1,2)) + A(0,2)*(A(1,0)*A(2,1) - A(2,0)*A(1,1)); - } - - template - inline T trace(Matrix3x3 const & A) - { - return (A(0,0) + A(1,1) + A(2,2)); - } - - template - inline T norm_1(Matrix3x3 const & A) - { - using std::fabs; - using std::max; - - T r0 = fabs(A(0,0)) + fabs(A(0,1)) + fabs(A(0,2)); - T r1 = fabs(A(1,0)) + fabs(A(1,1)) + fabs(A(1,2)); - T r2 = fabs(A(2,0)) + fabs(A(2,1)) + fabs(A(2,2)); - - return max ( r0, max( r1, r2 ) ); - } - - template - inline T norm_2(Matrix3x3 const & A) - { - using std::fabs; - using std::max; - using std::sqrt; - - Matrix3x3 V; - typename Matrix3x3::vector3_type d; - math::eigen(A,V,d); - - T lambda = max( fabs(d(0)), max( fabs(d(1)) , fabs(d(2)) )); - return sqrt( lambda ); - } - - template - inline T norm_inf(Matrix3x3 const & A) - { - using std::fabs; - using std::max; - - T c0 = fabs(A(0,0)) + fabs(A(1,0)) + fabs(A(2,0)); - T c1 = fabs(A(0,1)) + fabs(A(1,1)) + fabs(A(2,1)); - T c2 = fabs(A(0,2)) + fabs(A(1,2)) + fabs(A(2,2)); - return max ( c0, max( c1, c2 ) ); - } - - template - inline Matrix3x3 truncate(Matrix3x3 const & A,T const & epsilon) - { - typedef typename Matrix3x3::value_traits value_traits; - - using std::fabs; - - assert(epsilon>value_traits::zero() || !"truncate(Matrix3x3,epsilon): epsilon must be positive"); - - return Matrix3x3( - fabs(A(0,0)) - inline Matrix3x3 star(Vector3 const & v) - { - typedef typename Matrix3x3::value_traits value_traits; - - //--- Changes a cross-product into a matrix multiplication. - //--- Rewrites the component of a vector3_type cross-product as a matrix. - //--- a x b = a*b = ba* - return Matrix3x3( - value_traits::zero(), -v(2), v(1), - v(2), value_traits::zero(), -v(0), - -v(1), v(0), value_traits::zero() - ); - } - - template - inline std::ostream & operator<< (std::ostream & o,Matrix3x3 const & A) - { - o << "[" << A(0,0) - << "," << A(0,1) - << "," << A(0,2) - << ";" << A(1,0) - << "," << A(1,1) - << "," << A(1,2) - << ";" << A(2,0) - << "," << A(2,1) - << "," << A(2,2) - << "]"; - return o; - } - - template - inline std::istream & operator>>(std::istream & i,Matrix3x3 & A) - { - char dummy; - i >> dummy; - i >> A(0,0); - i >> dummy; - i >> A(0,1); - i >> dummy; - i >> A(0,2); - i >> dummy; - i >> A(1,0); - i >> dummy; - i >> A(1,1); - i >> dummy; - i >> A(1,2); - i >> dummy; - i >> A(2,0); - i >> dummy; - i >> A(2,1); - i >> dummy; - i >> A(2,2); - i >> dummy; - return i; - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_MATRIX3X3_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_polar_decomposition.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_polar_decomposition.h deleted file mode 100644 index 4cec1a7cd..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_polar_decomposition.h +++ /dev/null @@ -1,149 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_POLAR_DECOMPOSITION_H -#define OPENTISSUE_CORE_MATH_MATH_POLAR_DECOMPOSITION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -#include - - -namespace OpenTissue -{ - - namespace math - { - - // TODO: [micky] don't introduce yet another sub namespace to avoid name clashing. - // Rename the function 'eigen' instead!! - namespace polar_decomposition - { - /* - * Polar Decomposition of matrix A (as described by Etzmuss et. al in ``A Fast Finite Solution for Cloth Modelling'') - * - * A = R S - * - * Where R is a special orthogonal matrix (R*R^T = I and det(R)=1) - * - * S^2 = A^T A - * - * let d be vector of eigenvalues and let v_0,v_1, and v_2 be corresponding eigenvectors of (A^T A), then - * - * S = sqrt(d_0) v_0 * v_0^T + ... + sqrt(d_2) v_2 * v_2^T - * - * Now compute - * - * R = A * S^-1 - * - * - * @return If the decompostion is succesfull then the return value is true otherwise it is false. - */ - template - inline bool eigen(matrix3x3_type const & A,matrix3x3_type & R,matrix3x3_type & S) - { - using std::sqrt; - - // A = U D V^T // A is square so: thin SVD = SVD - // A = (U V^T) (V D V^T) - // = R S - // - //Notice S is symmetric R should be orthonormal? - // - // proof of - // S = sqrt( A^T A ) - // - // start by - // - // S * S = A^T A - // V D V^T V D V^T = V D U^T U D V^T - // V D D V^T = V D D V^T - //Assume - //A = R S - //pre-multiply and use assumption then - // A^T A = A^T R S - // A^T A = S^T S = S S - // last step used S is symmetric - typedef typename matrix3x3_type::vector3_type vector3_type; - typedef typename matrix3x3_type::value_traits value_traits; - matrix3x3_type V; - vector3_type d; - matrix3x3_type S2 = trans(A)*A; - eigen(S2,V,d); - - //--- Test if all eigenvalues are positive - if( d(0) <= value_traits::zero() || d(1) <= value_traits::zero() || d(2) <= value_traits::zero() ) - return false; - - vector3_type v0 = vector3_type( V(0,0), V(1,0), V(2,0) ); - vector3_type v1 = vector3_type( V(0,1), V(1,1), V(2,1) ); - vector3_type v2 = vector3_type( V(0,2), V(1,2), V(2,2) ); - S = outer_prod(v0,v0)* sqrt(d(0)) + outer_prod(v1,v1)* sqrt(d(1)) + outer_prod(v2,v2)* sqrt(d(2)); - R = A * inverse(S); - return true; - } - - /** - * This method is rather bad, it is iterative and there is no way of telling how good the solution is. thus we recommend the eigen method for polar decomposition. - * - * Polar Decomposition as described by Shoemake and Duff in ``Matrix Animation and Polar Decomposition'' - * - * A = R S - * - * Where R is a special orthogonal matrix (R*R^T = I and det(R)=1) - * - * Set R_0 = A - * Do - * R_{i+1} = 1/2( R_i + R^{-T}_i ) - * Until R_{i+1}-R_i = 0 - * - * - * @return If a solution was found within the specified threshold value then the return value is true otherwise it is false. - */ - template - inline bool newton(matrix3x3_type const & A, matrix3x3_type & R,unsigned int max_iterations, typename matrix3x3_type::value_type const & threshold) - { - typedef typename matrix3x3_type::value_traits value_traits; - typedef typename matrix3x3_type::value_type real_type; - - assert(max_iterations>0 || !"polar_decompostion::newton() max_iterations must be positive"); - assert(threshold>value_traits::zero() || !"polar_decomposition::newton(): theshold must be positive"); - - matrix3x3_type Q[2]; - int cur = 0, next = 1; - Q[cur] = A; - - bool within_threshold = false; - - for(unsigned int iteration=0;iteration< max_iterations;++iteration) - { - Q[next] = ( Q[cur] + trans(inverse(Q[cur])) )*.5; - real_type test = max_value ( Q[next] - Q[cur] ); - if( test < threshold ) - { - within_threshold = true; - break; - } - cur = (cur + 1)%2; - next = (next + 1)%2; - } - R = Q[next]; - return within_threshold; - } - - }// namespace polar_decomposition - - }// namespace math - -}// namespace OpenTissue - -// OPENTISSUE_CORE_MATH_MATH_POLAR_DECOMPOSITION_H -#endif - diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_power2.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_power2.h deleted file mode 100644 index 533a80cce..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_power2.h +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_POWER2_H -#define OPENTISSUE_CORE_MATH_MATH_POWER2_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - - namespace math - { - - /** - * This method test whether there exist some positive integer, n, such that - * - * 2^n == val - * - * In which case it returns true otherwise it returns false. - */ - template< class T> - inline bool is_power2( T val ) - { - T next = 1u; - for ( unsigned int i = 0u; i < 32u; ++i ) - { - if ( val == next ) - return true; - next = next << 1u; - } - return false; - } - - /** - * This function finds the smallest positive integer, n, such that - * - * val <= 2^n - * - * and returns the value 2^n. - */ - template - inline T upper_power2( T val ) - { - T next = 1u; - for ( unsigned int i = 0u; i < 32u; ++i ) - { - if ( next >= val ) - return next; - next = next << 1u; - } - return 0u; - } - - /** - * This function finds the largest positive integer, n, such that - * - * 2^n <= val - * - * and returns the value 2^n. - */ - template - inline T lower_power2( T val ) - { - T next = 1u << 31u; - for ( unsigned int i = 0u; i < 32u; ++i ) - { - if ( next <= val ) - return next; - next = next >> 1u; - } - return 0u; - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_POWER2_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_precision.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_precision.h deleted file mode 100644 index 5fc3cfab9..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_precision.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_PRECISION_H -#define OPENTISSUE_CORE_MATH_MATH_PRECISION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include // for std::numeric_limits::epsilon() - - -namespace OpenTissue -{ - - namespace math - { - template - inline T machine_precision() - { - return std::numeric_limits::epsilon(); - } - - template - inline T working_precision() - { - return std::numeric_limits::epsilon()*10; - } - - template - inline T working_precision(unsigned int scale_factor) - { - return std::numeric_limits::epsilon()*scale_factor; - } - - } -} - -//OPENTISSUE_CORE_MATH_MATH_PRECISION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_prime_numbers.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_prime_numbers.h deleted file mode 100644 index 4b975d89a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_prime_numbers.h +++ /dev/null @@ -1,209 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_PRIME_NUMBERS_H -#define OPENTISSUE_CORE_MATH_MATH_PRIME_NUMBERS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include //--- for floor and sqrt - - -namespace OpenTissue -{ - - namespace math - { - - - namespace detail - { - - /** - * Used exclusively by the Miller-Rabin algorithm. It - * is essential the same as modular exponentiation a - * raised to n-1 modulo n. - * - * This "version" is specialized to test for notrivial - * square roots of 1. - */ - inline bool withness(int a,int n) - { - int ndec = n-1;int d = 1; int k = ndec; - if(k!=0) - { - int c=0; - while((k&0x80000000)==0) - k<<=1;c++; - while(c<32) - { - int x =d; - d=(d*d)%n; - if((d==1)&&(x!=1)&&(x!=ndec)) - return true;//--- Notrival square root of 1 was discovered. - if((k&0x80000000)!=0) - d=(d*a)%n; - k<<=1;c++; - } - } - if(d!=1) - return true; - return false; - } - - }//namespace detail - - - /** - * Prime Test. - * This method tests if the specified integer is a prime. - * - * Do Always find a correct solution, but is - * very slow for large numbers. - * - * Runs in time 2^(beta/2) where beta is the - * number of bits of n. - * - * @param n The number to test. - * @return If n was prime then the return value is - * true otherwise it is false. - */ - inline bool trial_division(int n) - { - using std::sqrt; - using std::floor; - - double sqrN = sqrt(static_cast(n)); - int j = static_cast( floor(sqrN) ); - for(int i=2;i<=j;++i) - { - if((n%i)==0) - return false; - } - return true; - } - - /** - * Modular Exponentiation. - * Computes a raised to the power of b modular n - */ - inline int modular_exponentiation(int a,int b,int n) - { - int d = 1; - while(b!=0) - { - if((b&1)!=0) - d=(d*a)%n; - a = (a*a)%n; - b>>=1; - } - return d; - } - - /** - * Prime Test. - * This method tests if the specified integer is a prime. - * - * Extremely fast, does not allways find - * a correct solution. However it fails - * rarely and it only makes error of one - * type. - * - * Some base-2 pseudo primes are 341, 561,645 and 1105. - * - * @param n The number to test. - * @return If n was prime then the return value is - * true otherwise it is false. - */ - inline bool pseudo_prime(int n) - { - if((n==1)||(n==2))//--- trivial cases - return true; - if(modular_exponentiation(2,n-1,n)!=1) - return false;//--- definitely not a prime, i.e. composite - return true;//--- possible prime or a base-2 pseudoprime - } - - - /** - * Closest Prime Search. - * This method tries to find the closest - * prime number to n. - * - * @param n The seed number from where the - * search should be done from. - * @return The closest prime number to n. - */ - inline int prime_search(int n) - { - int l = n; - if((l%2)==0) - l--; - for(;l>1;l=l-2) - { - // if(trial_division(l)) - // if(pseudo_prime(l)) - if(miller_rabin(l,4)) - break; - } - int o = n; - if((o%2)==0) - o++; - int max_val = detail::highest(); - for(;o - -#include -#include -#include -#include - -#include -#include - - -namespace OpenTissue -{ - - namespace math - { - - template< - typename value_type_ - //, typename value_traits_ = ValueTraits - > - class Quaternion - { - protected: - - typedef typename OpenTissue::math::ValueTraits value_traits_ ; // TODO value_traits_ should be parameterized as a class template parameter. - - public: - - typedef value_traits_ value_traits; ///< Convenience typedef to make value traits accessible for all template functions using Vector3 types. - typedef value_type_ value_type; ///< Typedef is required for compliance with many other libraries and data containers! - typedef Vector3 vector3_type; // TODO should Vector3 type be template parameterized? - typedef Matrix3x3 matrix3x3_type; - typedef size_t index_type; // TODO should the index type be template parameterized? - - protected: - - value_type m_s; ///< The real part. - vector3_type m_v; ///< The R3 part or imaginary part. - - public: - - value_type & s() { return m_s; } - value_type const & s() const { return m_s; } - - vector3_type & v() { return m_v; } - vector3_type const & v() const { return m_v; } - - public: - - Quaternion() - : m_s(value_traits::one()) - , m_v(value_traits::zero(),value_traits::zero(),value_traits::zero()) - {} - - ~Quaternion(){} - - Quaternion(Quaternion const & q) { *this = q; } - - explicit Quaternion(matrix3x3_type const & M){ *this = M; } - - explicit Quaternion(value_type const & s_val, value_type const & x, value_type const & y, value_type const & z) - : m_s(s_val) - , m_v(x,y,z) - { } - - explicit Quaternion(value_type const & s_val, vector3_type const & v_val) - : m_s(s_val) - , m_v(v_val) - { } - - Quaternion & operator=(Quaternion const & cpy) - { - m_s = cpy.m_s; - m_v = cpy.m_v; - return *this; - } - - /** - * Assignment operator. - * This method is a little special. Quaternions can be used to represent rotations, so can matrices. - * This method transforms a rotation matrix into a Quaternion and then it assigns it to this Quaternion. - * In short this method converts matrices into quaternions. - * - * @param M A reference to a matrix. This matrix should be a rotation matrix. That is an orthogonal matrix. - */ - Quaternion & operator=(matrix3x3_type const & M) - { - using std::sqrt; - - value_type const & M00 = M(0,0); - value_type const & M01 = M(0,1); - value_type const & M02 = M(0,2); - value_type const & M10 = M(1,0); - value_type const & M11 = M(1,1); - value_type const & M12 = M(1,2); - value_type const & M20 = M(2,0); - value_type const & M21 = M(2,1); - value_type const & M22 = M(2,2); - - value_type tr = M00 + M11 + M22; - value_type r; - - value_type const half = value_traits::one()/value_traits::two(); - - if(tr>=value_traits::zero()) - { - r = sqrt(tr + value_traits::one()); - m_s = half*r; - r = half/r; - m_v[0] = (M21 - M12) * r; - m_v[1] = (M02 - M20) * r; - m_v[2] = (M10 - M01) * r; - } - else - { - int i = 0; - if(M11>M00) - i = 1; - if(M22>M(i,i)) - i = 2; - switch(i) - { - case 0: - r = sqrt((M00 - (M11+M22)) + value_traits::one()); - m_v[0] = half*r; - r = half/r; - m_v[1] = (M01 + M10) * r; - m_v[2] = (M20 + M02) * r; - m_s = (M21 - M12) * r; - break; - case 1: - r = sqrt((M11 - (M22+M00)) + value_traits::one()); - m_v[1] = half*r; - r = half/r; - m_v[2] = (M12 + M21)*r; - m_v[0] = (M01 + M10)*r; - m_s = (M02 - M20)*r; - break; - case 2: - r = sqrt((M22 - (M00+M11)) + value_traits::one()); - m_v[2] = half*r; - r = half/r; - m_v[0] = (M20 + M02) * r; - m_v[1] = (M12 + M21) * r; - m_s = (M10 - M01) * r; - break; - }; - } - return *this; - } - - public: - - // TODO: Comparing floats with == or != is not safe NOTE value_type might not be a float type it could be anything? This suggest that we need some kind of metaprogramming technique to deal with this problem? - bool operator==(Quaternion const & cmp) const { return m_s==cmp.m_s && m_v==cmp.m_v; } - bool operator!=(Quaternion const & cmp) const { return !(*this==cmp); } - - public: - - Quaternion & operator+= (Quaternion const & q ) - { - m_s += q.m_s; - m_v += q.m_v; - return *this; - } - - Quaternion & operator-= (Quaternion const & q ) - { - m_s -= q.m_s; - m_v -= q.m_v; - return *this; - } - - Quaternion operator+ ( Quaternion const &q ) const { return Quaternion(m_s + q.m_s, m_v + q.m_v); } - Quaternion operator- ( Quaternion const &q ) const { return Quaternion(m_s - q.m_s, m_v - q.m_v); } - - Quaternion & operator*=(value_type const &s_val ) - { - m_s *= s_val; - m_v *= s_val; - return *this; - } - - Quaternion & operator/=( value_type const &s_val ) - { - assert(s_val || !"Quaternion::operator/=(): division by zero"); - m_s /= s_val; - m_v /= s_val; - return *this; - } - - Quaternion operator-() const { return Quaternion(-m_s,-m_v); } - - value_type operator*(Quaternion const &q) const { return m_s*q.m_s + m_v*q.m_v; } - - /** - * Multiplication of quaternions. - * This method multiplies two quaternions with each other - * and assigns the result to this Quaternion. - * - * @param b The second Quaternion. - */ - Quaternion operator%(Quaternion const & b) - { - return Quaternion( m_s*b.s() - dot(m_v , b.v()), cross(m_v , b.v()) + b.v()*m_s + m_v*b.s() ); - } - - /** - * Quaternion Vector Multiplication. - * - * @param v A Quaternion as a vector, i.e. zero scalar value. - */ - Quaternion operator%(vector3_type const & v_val) - { - return Quaternion( - dot( m_v() , v_val) , cross(m_v , v_val) + v_val*m_s ); - } - - public: - - /** - * Assigns the quaternion to the identity rotation. - * This is a commonly used constant. It corresponds to the identity matrix. - */ - void identity() - { - m_s = value_traits::one(); - m_v.clear(); - } - - /** - * This method constructs a unit Quaternion which represents the specified rotation around the x-axis. - * - * @param rad The rotation angle in radians around the axis. - */ - void Rx(value_type const & rad) - { - using std::cos; - using std::sin; - - value_type teta = rad/value_traits::two(); - value_type cteta = (value_type)( cos(teta) ); - value_type steta = (value_type)( sin(teta) ); - - m_s = cteta; - m_v(0) = steta; - m_v(1) = value_traits::zero(); - m_v(2) = value_traits::zero(); - } - - /** - * This method constructs a unit Quaternion which represents the specified rotation around the y-axis. - * - * @param rad The rotation angle in radians around the axis. - */ - void Ry(value_type const & rad) - { - using std::cos; - using std::sin; - - value_type teta = rad/value_traits::two(); - value_type cteta = (value_type)( cos(teta) ); - value_type steta = (value_type)( sin(teta) ); - - m_s = cteta; - m_v(0) = value_traits::zero(); - m_v(1) = steta; - m_v(2) = value_traits::zero(); - } - - /** - * This method constructs a unit Quaternion which represents the specified rotation around the z-axis. - * - * @param rad The rotation angle in radians around the axis. - */ - void Rz(value_type const & rad) - { - using std::cos; - using std::sin; - - value_type teta = rad/value_traits::two(); - value_type cteta = (value_type)( cos(teta) ); - value_type steta = (value_type)( sin(teta) ); - - m_s = cteta; - m_v(0) = value_traits::zero(); - m_v(1) = value_traits::zero(); - m_v(2) = steta; - } - - /** - * Rotate Vector by Quaternion. - * - * computes r' = q*r*conj(q) - */ - vector3_type rotate(vector3_type const & r) const { return ((*this) % r % conj(*this)).v(); } - - public: - - /** - * Equality comparison with an error bound. - * The test is exactly the same as with the method without error bound the only difference - * is that the corresponding terms of the quaternions are said to be equal if they do not - * differ by more than the error bound value. - * - * @param q A reference to a Quaternion. This is the - * Quaternion to compare with. - * @param threshold A reference to the acceptable error bound. - * - * @return The test result. The return value is one if - * the quaternions are equal otherwise the return - * value is zero. - */ - bool is_equal(Quaternion const & q,value_type const & threshold) const - { - using std::fabs; - - assert( threshold>=value_traits::zero() || !"is_equal(): threshold must be non-negative"); - - return fabs(m_s-q.m_s) - inline Vector3 rotate(Quaternion const & q, Vector3 const & r) - { - return prod( prod(q , r) , conj(q)).v(); - } - - template - inline Quaternion prod(Quaternion const & a, Quaternion const & b) - { - return Quaternion( a.s()*b.s() - dot(a.v() , b.v()), cross(a.v() , b.v()) + b.v()*a.s() + a.v()*b.s() ); - } - - template - inline Quaternion prod(Quaternion const & a, Vector3 const & b) - { - return Quaternion( - dot(a.v() , b), cross(a.v() , b) + b*a.s() ); - } - - template - inline Quaternion prod(Vector3 const & a, Quaternion const & b) - { - return Quaternion( - dot(a , b.v()), cross(a , b.v()) + a*b.s() ); - } - - template - inline Quaternion operator%(Quaternion const & a, Quaternion const & b) { return prod(a,b); } - template - inline Quaternion operator%(Quaternion const & a, Vector3 const & b) { return prod(a,b); } - template - inline Quaternion operator%(Vector3 const & a, Quaternion const & b) { return prod(a,b); } - template - inline Quaternion operator*( const Quaternion &q, const T2 &s_val ) { return Quaternion( q.s()*s_val, q.v()*s_val); } - template - inline Quaternion operator*( const T2 &s_val, const Quaternion &q ) { return Quaternion( q.s()*s_val, q.v()*s_val); } - template - inline Quaternion operator/( const Quaternion &q, const T2 &s_val ) { return Quaternion( q.s()/s_val, q.v()/s_val); } - template - inline Quaternion operator/( const T2 &s_val, const Quaternion &q ) { return Quaternion( q.s()/s_val, q.v()/s_val); } - - template - inline T const length(Quaternion const & q) - { - using std::sqrt; - return sqrt( q*q ); - } - - template - inline Quaternion unit(Quaternion const & q) - { - typedef typename Quaternion::value_traits value_traits; - - using std::sqrt; - using std::fabs; - - T l = length(q); - - if(fabs(l) > value_traits::zero()) - return Quaternion (q.s()/l,q.v()/l); - return Quaternion (value_traits::zero(),value_traits::zero(),value_traits::zero(),value_traits::zero()); - } - - template - inline Quaternion normalize(Quaternion const & q) { return unit(q); } - - /** - * Natural Logarithm - * Returns the Quaternion equal to the natural logarithm of - * the specified Quaternion. - * - * @param q A reference to an unit quaternion. - * @return - */ - template - inline Quaternion log(Quaternion const & q) - { - typedef typename Quaternion::value_traits value_traits; - - using std::acos; - using std::sin; - - if(q.s()==value_traits::one() && is_zero(q.v())) - return Quaternion(value_traits::zero(),value_traits::zero(),value_traits::zero(),value_traits::zero()); - - T teta = (T)( acos(q.s()) ); - T st = (T)( sin(teta) ); - return Quaternion( value_traits::zero(), q.v()*(teta/st) ); - } - - /** - * Orthogonal Quaternion. - * This method sets this Quaternion to an orthogonal Quaternion - * of the specified Quaternion. In other words the resulting - * angle between the specified Quaternion and this Quaternion - * is pi/2. - */ - template - inline Quaternion hat(Quaternion const & q) - { - return Quaternion( q.v()(2), - q.v()(1) , q.v()(0), -q.s()); - } - - /** - * Exponent - * Sets the Quaternion equal to the exponent of - * the specified Quaternion. - * - * @param q A reference to a pure Quaternion (zero - * T part). - */ - template - inline Quaternion exp(Quaternion const & q) - { - using std::sqrt; - using std::cos; - using std::sin; - - //--- teta^2 x^2 + teta^2 y^2 +teta^2 z^2 = - //--- teta^2 (x^2 + y^2 + z^2) = teta^2 - T teta = (T)( sqrt(q.v() *q.v()) ); - T ct = (T)( cos(teta) ); - T st = (T)( sin(teta) ); - - return Quaternion(ct,q.v()*st); - } - - /** - * QLERP - Linear Interpolation of Quaterions. - * - * @param A Quaternion A - * @param B Quaternion B - * @param w The weight - * - * @return The resulting Quaternion, (1-w)A+w B. Note the resulting - * Quaternion may not be a unit quaternion even though A and B are - * unit quaternions. If a unit Quaternion is needed write - * unit(qlerp(A,B,w)). - * - * -Added by spreak for the SBS algorithm, see OpenTissue/kinematics/skinning/SBS - */ - template - // TODO why not simply call this function lerp? - inline Quaternion qlerp(Quaternion const & A,Quaternion const & B,T const & w) - { - typedef typename Quaternion::value_traits value_traits; - - assert(w>=value_traits::zero() || !"qlerp(): w must not be less than 0"); - assert(w<=value_traits::one() || !"qlerp(): w must not be larger than 1"); - T mw = value_traits::one() - w; - return ((mw * A) + (w * B)); - } - - /** - * Spherical Linear Interpolation of Quaternions. - * - * @param A - * @param B - * @param w The weight - * - * @return The resulting Quaternion. - */ - template - inline Quaternion slerp(Quaternion const & A,Quaternion const & B,T const & w) - { - typedef typename Quaternion::value_traits value_traits; - - using std::acos; - using std::sin; - - assert(w>=value_traits::zero() || !"slerp(): w must not be less than 0"); - assert(w<=value_traits::one() || !"slerp(): w must not be larger than 1"); - - T q_tiny = (T)( 10e-7 ); // TODO prober constant type conversion? - - T norm = A*B; - - bool flip = false; - if( norm < value_traits::zero() ) - { - norm = -norm; - flip = true; - } - T weight = w; - T inv_weight; - if(value_traits::one() - norm < q_tiny) - { - inv_weight = value_traits::one() - weight; - } - else - { - T theta = (T)( acos(norm) ); - T s_val = (T)( value_traits::one() / sin(theta) ); - inv_weight = (T)( sin((value_traits::one() - weight) * theta) * s_val ); - weight = (T)( sin(weight * theta) * s_val ); - } - if(flip) - { - weight = -weight; - } - return ( inv_weight * A + weight * B); - } - - /** - * "Cubical" Spherical Interpolation. - * In popular terms this corresponds to a cubic spline in - * ordinary 3D space. However it is really a series of - * spherical linear interpolations, which defines a - * cubic on the unit Quaternion sphere. - * - * @param q0 - * @param q1 - * @param q2 - * @param q3 - * @param u - * - * @return - */ - template - inline Quaternion squad( - Quaternion const & q0 - , Quaternion const & q1 - , Quaternion const & q2 - , Quaternion const & q3 - , T const & u - ) - { - typedef typename Quaternion::value_traits value_traits; - - assert(u>=value_traits::zero() || !"squad(): u must not be less than 0"); - assert(u<=value_traits::one() || !"squad(): u must not be larger than 1"); - - T u2 = value_traits::two() *u*(value_traits::one() -u); - return slerp( slerp(q0,q3,u), slerp(q1,q2,u), u2); - } - - /** - * Quaternion Conjugate. - */ - template - inline Quaternion conj(Quaternion const & q) - { - return Quaternion(q.s(),-q.v()); - } - - - /** - * Get Axis Angle Representation. - * This function converts a unit-quaternion into the - * equivalent angle-axis representation. - * - * @param Q The quaternion - * @param axis Upon return this argument holds value of the equivalent rotation axis. - * @param theta Upon return this argument holds value of the equivalent rotation angle. - */ - template - inline void get_axis_angle(Quaternion const & Q,Vector3 & axis, T & theta) - { - using std::atan2; - - typedef typename Quaternion::value_traits value_traits; - typedef Vector3 V; - - // - // By definition a unit quaternion Q can be written as - // - // Q = [s,v] = [cos(theta/2), n sin(theta/2)] - // - // where n is a unit vector. This is the same as a rotation of - // theta radian around the axis n. - // - // - // Rotations are difficult to work with for several reasons. - // - // Firstly both Q and -Q represent the same rotation. This is - // easily proven, rotate a arbitrary vector r by Q then we have - // - // r^\prime = Q r Q^* - // - // Now rotate the same vector by -Q - // - // r^\prime = (-Q) r (-Q)^* = Q r Q^* - // - // because -Q = [-s,-v] and (-Q)^* = [-s , v] = - [s,-v]^* = - Q^*. - // - // Thus the quaternion representation of a single rotation is not unique. - // - // Secondly the rotation it self is not well-posed. A rotation of theta - // radians around the unit axis n could equally well be done as a rotation - // of -theta radians around the negative unit axis n. - // - // This is seen by straightforward substitution - // - // [ cos(-theta/2), sin(-theta/2) (-n) ] = [ cos(theta/2), sin(theta/2) n ] - // - // Thus we get the same quaternion regardless of whether we - // use (+theta,+n) or (-theta,-n). - // - // - // From the Quaternion we see that - // - // \frac{v}{\norm{v}} = \frac{ sin(theta/2) n }{| sin(theta/2) | } = sign(sin(theta/2)) n - // - // Thus we can easily get the rotation axis. However, we can not immediately - // determine the positive rotation axis direction. The problem boils down to the - // fact that we can not see the sign of the sinus-factor. - // - // Let us proceed by setting - // - // x = cos(theta/2) = s - // y = | sin(theta/2) | = \norm{v} - // - // Then we basically have two possibilities for finding theta - // - // theta_1 = 2 atan2( y, x) equivalent to sign(sin(theta/2)) = 1 - // - // or - // - // theta_2 = 2 atan2( -y, x) equivalent to sign(sin(theta/2)) = -1 - // - // If theta_1 is the solution we have - // - // n = \frac{v}{\norm{v}} - // - // If theta_2 is the solution we must have - // - // n = - \frac{v}{\norm{v}} - // - // Observe that we always have theta_2 = 2 pi - theta_1. Therefore theta_1 < theta_2. - // - // Let us imagine that we always choose $theta_1$ as the solution then - // the corresponding quaternion for that solution would be - // - // - // Q_1 = [cos(theta_1/2), sin(theta_1/2) \frac{v}{\norm{v}}] - // = [s , \norm{v} \frac{v}{\norm{v}}] - // = Q - // - // Now if we choose theta_2 as the solution we would have - // - // Q_2 = [cos(theta_2/2), sin(theta_2/2) -\frac{v}{\norm{v}}] - // = [s , -\norm{v} -\frac{v}{\norm{v}}] - // = [s , \norm{v} \frac{v}{\norm{v}}] - // = Q - // - // Thus we observe that regardless of which solution we pick we always have Q = Q_1 = Q_2. - // - // At this point one may be confused. However, it should be clear that theta_2 is equivalent - // to the theta_1 rotation. The difference is simply that theta_2 corresponds to flipping the - // rotation axis of the theta_1 case. - // - T const ct2 = Q.s(); //--- cos(theta/2) - T const st2 = length( Q.v() ); //--- |sin(theta/2)| - - theta = value_traits::two()* atan2(st2,ct2); - - assert( st2 >= value_traits::zero() || !"get_axis_angle(): |sin(theta/2)| must be non-negative"); - assert( theta >= value_traits::zero() || !"get_axis_angle(): theta must be non-negative"); - assert( is_number(theta) || !"get_axis_angle(): NaN encountered"); - - axis = st2 > value_traits::zero() ? Q.v() / st2 : V(value_traits::zero(), value_traits::zero(), value_traits::zero()); - } - - /** - * Get Rotation Angle wrt. an Axis. - * Think of it as if you have a fixated body A so only body B is allowed to move. - * - * Let BF_B' indicate the initial orientation of body B's body frame - * and BF_B the current orientation, now BF_A should be thought of as - * being immovable ie. constant. - * - * Q_initial : BF_A -> BF_B' - * Q_cur : BF_A -> BF_B - * - * Now we must have the relation - * - * Q_rel Q_initial = Q_cur - * - * From which we deduce - * - * Q_rel = Q_cur conj(Q_initial) - * - * And we see that - * - * Q_rel : BF_B' -> BF_B - * - * That is how much the body frame of body B have rotated (measured - * with respect to the fixed body frame A). - * - * - * @param Q_rel Rotation from initial orientation of B to current orientation of B. - * @param axis The rotation axis in the body frame of body B. - * - * @return The angle in radians. - */ - template - inline T get_angle(Quaternion const & Q_rel,Vector3 const & axis) - { - typedef typename Quaternion::value_traits value_traits; - - using std::atan2; - - //--- The angle between the two bodies is extracted from the Quaternion Q_rel - //--- - //--- [s,v] = [ cos(theta/2) , sin(theta/2) * u ] - //--- - //--- where s is a value_type and v is a 3-vector. u is a unit length axis and - //--- theta is a rotation along that axis. - //--- - //--- we can get theta/2 by: - //--- - //--- theta/2 = atan2 ( sin(theta/2) , cos(theta/2) ) - //--- - //--- but we can not get sin(theta/2) directly, only its absolute value: - //--- - //--- |v| = |sin(theta/2)| * |u| = |sin(theta/2)| - //--- - //--- using this value will have a strange effect. - //--- - //--- Recall that there are two Quaternion representations of a given - //--- rotation, q and -q. - //--- - //--- Typically as a body rotates along the axis it will go through a - //--- complete cycle using one representation and then the next cycle - //--- will use the other representation. - //--- - //--- This corresponds to u pointing in the direction of the joint axis and - //--- then in the opposite direction. The result is that theta - //--- will appear to go "backwards" every other cycle. - //--- - //--- Here is a fix: if u points "away" from the direction of the joint - //--- axis (i.e. more than 90 degrees) then use -q instead of q. This - //--- represents the same rotation, but results in the cos(theta/2) value - //--- being sign inverted. - T ct2 = Q_rel.s(); //--- cos(theta/2) - T st2 = length( Q_rel.v() ); //--- |sin(theta/2)| - T theta = value_traits::zero(); - - //--- Remember that Q_rel : BF_B' -> BF_B, so we need the axis in body B's local frame - if( Q_rel.v() * axis >= value_traits::zero()) - { - //--- u points in direction of axis. - //std::cout << "u points in direction of axis" << std::endl; - theta = value_traits::two()* atan2(st2,ct2); - } - else - { - //--- u points in opposite direction. - //std::cout << "u points in opposite direction" << std::endl; - theta = value_traits::two() * atan2(st2,-ct2); - } - //--- The angle we get will be between 0..2*pi, but we want - //--- to return angles between -pi..pi - if (theta > value_traits::pi()) - theta -= value_traits::two()*value_traits::pi(); - - //--- The angle we've just extracted has the wrong sign (Why???). - theta = -theta; - // - // Say we have a rotation, R, relating the coordinates of two frames X and Y, now - // let the coordinates of the vector v be given in frame X as - // - // [v]_X - // - // And in frame Y as - // - // [v]_Y - // - // Now R is defined such that - // - // R [v]_X = [v]_Y - // - // That is it changes the coordinates of v from X to Y. - // - // This is pretty straightforward, but there is some subtlety in it, say - // frame Y is rotated theta radians around the z-axis, then the rotation - // matrix relating the coordinates is the opposite rotation. - // - // What we want to measure is how much the frame axis have rotated, but - // what we are given is a rotation transforming coordinates, therefore - // we need to flip the sign of the extracted angle!!! - return theta; - } - - template - inline std::ostream & operator<< (std::ostream & o,Quaternion const & q) - { - o << "[" << q.s() << "," << q.v()(0) << "," << q.v()(1) << "," << q.v()(2) << "]"; - return o; - } - - template - inline std::istream & operator>>(std::istream & i,Quaternion & q) - { - char dummy; - - i >> dummy; - i >> q.s(); - i >> dummy; - i >> q.v()(0); - i >> dummy; - i >> q.v()(1); - i >> dummy; - i >> q.v()(2); - i >> dummy; - - return i; - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_QUATERNION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_value_traits.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_value_traits.h deleted file mode 100644 index a09def20c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_value_traits.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_VALUE_TRAITS_H -#define OPENTISSUE_CORE_MATH_MATH_VALUE_TRAITS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - - -namespace OpenTissue -{ - - namespace math - { - - template - class ValueTraits - { - public: - - static T zero() { return detail::zero(); } - static T one() { return detail::one(); } - static T two() { return detail::two(); } - static T three() { return detail::three(); } - static T four() { return detail::four(); } - static T eight() { return detail::eight(); } - static T half() { return detail::half(); } - static T pi() { return detail::pi(); } - static T pi_2() { return detail::pi_half(); } - static T pi_half() { return detail::pi_half(); } - static T pi_quarter(){ return detail::pi_quarter();} - static T pi_4() { return detail::pi_quarter();} - static T degree() { return detail::degree(); } - static T radian() { return detail::radian(); } - - }; - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_VALUE_TRAITS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_vector3.h b/Demos3/FiniteElementMethod/OpenTissue/core/math/math_vector3.h deleted file mode 100644 index 661ff659b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/core/math/math_vector3.h +++ /dev/null @@ -1,577 +0,0 @@ -#ifndef OPENTISSUE_CORE_MATH_MATH_VECTORX3_H -#define OPENTISSUE_CORE_MATH_MATH_VECTORX3_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - - - -#include -#include -#include - -// TODO 2007-06-05 hod - Could not get this to work on linux. -// Might have somthing to do with http://gcc.gnu.org/faq.html#friend -//#include -#include - - -namespace OpenTissue -{ - - namespace math - { - - template < - typename value_type_ - //, typename value_traits_ = ValueTraits - > - class Vector3 - { - protected: - - typedef typename OpenTissue::math::ValueTraits value_traits_ ; // TODO value_traits_ should be parameterized as a class template parameter. - - public: - - typedef value_traits_ value_traits; ///< Convience typedef to make value traits accesible for all template functions using Vector3 types. - typedef value_type_ value_type; ///< Typedef is required for compliance with many other libraries and data containers! - typedef size_t index_type; // TODO should the index type be template parameterized? - - private: - - // TODO 2007-02-17 KE: Refactor this stuff into an array - - value_type x; ///< The first coordinate of this vector. - value_type y; ///< The second coordinate of this vector. - value_type z; ///< The third coordinate of this vector. - - public: - - - Vector3() - : x( value_traits::zero() ) - , y( value_traits::zero() ) - , z( value_traits::zero() ) - {} - - Vector3( Vector3 const & v ) - : x(v(0)) - , y(v(1)) - , z(v(2)) - {} - - explicit Vector3( value_type const& val ) - : x( val ) - , y( val ) - , z( val ) - {} - - template - Vector3( T1 const & x_val, T2 const & y_val, T3 const & z_val ) - : x( (value_type)(x_val) ) - , y( (value_type)(y_val) ) - , z( (value_type)(z_val) ) - {} - - ~Vector3() - {} - - Vector3 & operator=(Vector3 const & cpy) - { - x=cpy(0); - y=cpy(1); - z=cpy(2); - return *this; - } - - public: - - void clear() { x = y = z = value_traits::zero(); } - - size_t size() const { return 3u;} - - public: - - value_type & operator() ( index_type index ) - { - assert( (index>=0 && index<3) || !"vecto3():index should be in range [0..2]"); - return *((&x) + index); - } - - value_type const & operator() ( index_type index ) const - { - assert( (index>=0 && index<3) || !"vecto3():index should be in range [0..2]"); - return *((&x) + index); - } - - value_type & operator[] ( index_type index ) - { - assert( (index>=0 && index<3) || !"vecto3[]:index should be in range [0..2]"); - return *((&x) + index); - } - - value_type const & operator[] ( index_type index ) const - { - assert( (index>=0 && index<3) || !"vecto3[]:index should be in range [0..2]"); - return *((&x) + index); - } - - public: - - bool operator< (Vector3 const & v) const - { - if ( x < v(0) ) return true; - if ( x > v(0) ) return false; - if ( y < v(1) ) return true; - if ( y > v(1) ) return false; - return z < v(2); - } - - bool operator> (Vector3 const & v) const - { - if ( x > v(0) ) return true; - if ( x < v(0) ) return false; - if ( y > v(1) ) return true; - if ( y < v(1) ) return false; - return z > v(2); - } - - // TODO: Comparing floats with == or != is not safe NOTE value_type might not be a float type it could be anything? This suggest that we need some kinf of metaprogramming technique to deal with ths problem? - bool operator==(Vector3 const & cmp) const { return x==cmp.x && y==cmp.y && z==cmp.z; } - bool operator!=(Vector3 const & cmp) const { return x!=cmp.x || y!=cmp.y || z!=cmp.z; } - - public: - - Vector3 & operator+= ( Vector3 const & v ) - { - x += v(0); - y += v(1); - z += v(2); - return *this; - } - - Vector3 & operator-= ( Vector3 const & v ) - { - x -= v(0); - y -= v(1); - z -= v(2); - return *this; - } - - Vector3 & operator*=( value_type const & s ) - { - x *= s; - y *= s; - z *= s; - return *this; - } - - Vector3 & operator/=( value_type const & s ) - { - assert(s || !"Vector3::/=(): division by zero"); - x /= s; - y /= s; - z /= s; - return *this; - } - - Vector3 operator+ ( Vector3 const & v ) const { return Vector3( x+v(0), y+v(1), z+v(2)); } - Vector3 operator- ( Vector3 const & v ) const { return Vector3( x-v(0), y-v(1), z-v(2)); } - Vector3 operator- ( ) const { return Vector3(-x,-y,-z); } - Vector3 operator% ( Vector3 const & v ) const { return Vector3(y*v(2)-v(1)*z, v(0)*z-x*v(2), x*v(1)-v(0)*y); } - value_type operator* ( Vector3 const & v ) const { return x*v(0) + y*v(1) + z*v(2); } - bool operator<=( Vector3 const & v ) const { return x <= v(0) && y <= v(1) && z <= v(2); } - bool operator>=( Vector3 const & v ) const { return x >= v(0) && y >= v(1) && z >= v(2); } - - public: - - friend Vector3 fabs( Vector3 const & v ) - { - using std::fabs; - return Vector3 ( - (value_type)( fabs( v(0) ) ) - , (value_type)( fabs( v(1) ) ) - , (value_type)( fabs( v(2) ) ) - ); - } - - friend Vector3 min( Vector3 const & A, Vector3 const & B ) - { - using std::min; - return Vector3( min( A(0), B(0) ), min( A(1), B(1) ), min( A(2), B(2) ) ); - } - - friend Vector3 max( Vector3 const & A, Vector3 const & B ) - { - using std::max; - return Vector3( max( A(0), B(0) ), max( A(1), B(1) ), max( A(2), B(2) ) ); - } - - friend Vector3 floor(Vector3 const & v) - { - using std::floor; - return Vector3( - (value_type)( floor(v(0)) ) - , (value_type)( floor(v(1)) ) - , (value_type)( floor(v(2)) ) - ); - } - - friend Vector3 ceil(Vector3 const & v) - { - using std::ceil; - return Vector3( - (value_type)( ceil(v(0)) ) - , (value_type)( ceil(v(1)) ) - , (value_type)( ceil(v(2)) ) - ); - } - - friend std::ostream & operator<< (std::ostream & o,Vector3 const & v) - { - o << "["; - o << v(0); - o << ","; - o << v(1); - o << "," << v(2) << "]"; - return o; - } - - friend std::istream & operator>>(std::istream & i,Vector3 & v) - { - char dummy; - i >> dummy; - i >> v(0); - i >> dummy; - i >> v(1); - i >> dummy; - i >> v(2); - i >> dummy; - return i; - } - public: - - // TODO 2007-02-17 KE: Kill this it should be handled with comparator traits in operator== and operator!= - bool is_equal(Vector3 const & v, value_type const & threshold) const - { - using std::fabs; - return fabs(x-v.x)<=threshold && fabs(y-v.y)<=threshold && fabs(z-v.z)<=threshold; - } - - }; // class Vector3 - - - ////////////////////////////////////////////////////////////////////////// - /// Declaration of vector3 non-member functions - ////////////////////////////////////////////////////////////////////////// - - template - inline Vector3 round(Vector3 const & v) - { - using std::floor; - - static T const half = detail::half(); - - return Vector3 ( - floor( v(0) + half ) - , floor( v(1) + half ) - , floor( v(2) + half ) - ); - } - - template - inline typename Vector3::index_type min_index(Vector3 const & v) - { - return v(0) <= v(1) && v(0) < v(2) ? 0 : v(1) <= v(0) && v(1) < v(2) ? 1 : 2; - } - - template - inline typename Vector3::index_type max_index(Vector3 const & v) - { - return v(2) >= v(0) && v(2) >= v(1) ? 2 : v(1) >= v(0) && v(1) > v(2) ? 1 : 0; - } - - template - inline typename Vector3::index_type mid_index(Vector3 const & v) - { - typename Vector3::index_type test = min_index(v) + max_index(v); - return test == 2 ? 1 : test == 1 ? 2 : 0; - } - - template - inline T min_value(Vector3 const & v) - { - using std::min; - return min(v(0),min(v(1),v(2))); - } - - template - inline T max_value(Vector3 const & v) - { - using std::max; - return max(v(0),max(v(1),v(2))); - } - - template - inline T mid_value(Vector3 const & v) - { - return v(mid_index(v)); - } - - template - inline bool is_zero(Vector3 const & v, T const & threshold) - { - using std::fabs; - return fabs(v(0))<=threshold && fabs(v(1))<=threshold && fabs(v(2))<=threshold; - } - - template - inline bool is_zero(Vector3 const & v) - { - typedef typename Vector3::value_traits value_traits; - return is_zero(v,value_traits::zero()); - } - - - - - template - inline Vector3 cross( Vector3 const & a, Vector3 const & b ) - { - return Vector3( a[1] * b[2] - b[1] * a[2], -a[0] * b[2] + b[0] * a[2], a[0] * b[1] - b[0] * a[1] ); - } - - template - inline T dot( Vector3 const & a, Vector3 const & b ) { return a(0)*b(0) + a(1)*b(1) + a(2)*b(2); } - - template - inline T inner_prod( Vector3 const & a, Vector3 const & b ) { return dot(a,b); } - - template - inline T length(Vector3 const & v) - { - using std::sqrt; - return (T)( sqrt( dot(v,v) ) ); - } - - template - inline T sqr_length(Vector3 const & v) { return (T)(v*v); } - - template - inline T norm(Vector3 const & v) { return length(v); } - - template - inline T norm_1(Vector3 const & v) - { - using std::fabs; - using std::max; - return max( fabs(v(0)), max( fabs(v(1)), fabs(v(2)) ) ); - } - - template - inline T distance(Vector3 const & a, Vector3 const & b) - { - return length(b-a); - } - - template - inline T sqr_distance(Vector3 const & a, Vector3 const & b) - { - return sqr_length(b-a); - } - - template - inline Vector3 sgn( Vector3 const & v ) - { - using OpenTissue::math::sgn; - return Vector3(sgn(v(0)), sgn(v(1)), sgn(v(2))); - } - - template - inline Vector3 unit( Vector3 const & v ) - { - typedef typename Vector3::value_traits value_traits; - - - using std::sqrt; - T const l = length(v); - if (l <= value_traits::zero()) - { - return Vector3( value_traits::zero() ); - } - T const inv = value_traits::one()/l; - return Vector3( inv*v(0), inv*v(1), inv*v(2) ); - } - - template - inline Vector3 normalize( Vector3 const & v ) { return unit(v); } - - template - inline void truncate(Vector3 & v, T const & precision_value) - { - typedef typename Vector3::value_traits value_traits; - - v(0) = ((v(0)>-precision_value)&&(v(0)-precision_value)&&(v(1)-precision_value)&&(v(2) - inline void truncate(Vector3 & v) - { - typedef typename Vector3::value_traits value_traits; - - truncate( v, value_traits::zero() ); - } - - /** - * Get Orthogonal Vector. - * - * @param v Any vector - * - * @return A vector orthogonal to v. - */ - template - inline Vector3 orthogonal(Vector3 const & v) - { - typedef typename Vector3::value_traits value_traits; - - using std::fabs; - - //--- Find a vector not collinear with v, we simply pick the - //--- y-axis direction as our prefered direction, afterwards - //--- we test if this was a good choice if not we pick the - //--- x-axis direction - Vector3 tmp; - if (fabs(v(1)) > fabs(v(0))) - tmp = Vector3(value_traits::one(),value_traits::zero(),value_traits::zero()); - else - tmp = Vector3(value_traits::zero(),value_traits::zero(),value_traits::one()); - //--- Now we find an orthogonal vector by using - //--- the cross product - return cross(v,tmp); - } - - template - inline Vector3 operator*( Vector3 const& v, T2 const& s ) { return Vector3( v(0)*s, v(1)*s, v(2)*s ); } - - template - inline Vector3 operator*( T2 const& s, Vector3 const& v ) { return Vector3( v(0)*s, v(1)*s, v(2)*s ); } - - template - inline Vector3 operator/( Vector3 const& v, T2 const& s ) { return Vector3( v(0)/s, v(1)/s, v(2)/s ); } - - /** - * Compute Orthonormal Vectors. - * Compute unit vectors of a right handed coordinate frame, given initial z-axis (k-vector). - * - * @param i Upon return contains a orthogonal vector to j and k - * @param j Upon return contains a orthogonal vector to i and k - * @param k A given direction for the last vector, assumed to be a unit-vector. - */ - template - inline void orthonormal_vectors( vector3_type & i, vector3_type & j, vector3_type const & k ) - { - typedef typename vector3_type::value_traits value_traits; - - using std::fabs; - vector3_type m_abs_k = fabs( k); - - if ( m_abs_k( 0 ) > m_abs_k( 1 ) ) - { - if ( m_abs_k( 0 ) > m_abs_k( 2 ) ) - i = vector3_type( value_traits::zero(), value_traits::one(), value_traits::zero() ); - else - i = vector3_type( value_traits::one(), value_traits::zero(), value_traits::zero() ); - } - else - { - if ( m_abs_k( 1 ) > m_abs_k( 2 ) ) - i = vector3_type( value_traits::zero(), value_traits::zero(), value_traits::one() ); - else - i = vector3_type( value_traits::one(), value_traits::zero(), value_traits::zero() ); - } - j = unit( cross(k,i) ); - i = cross(j,k); - } - - /** - * Get increasing order of vector elements as a permutation array. - * - * Note this template function generalizes to any size of vectors - * (not just 3-dimensional ones). - * - * @param v The vector to be examined. - * @param pi Upon return this container contains the permuation - * order, v(pi[0]) is smallest element of v, v(pi[1]) the - * next smallest and so on. - */ - template - inline void get_increasing_order( vector_type const & v, permutation_container & pi ) - { - unsigned int n = v.size(); - - for(unsigned int i=0u;i 0u;--j ) - { - if ( v( pi[ j ] ) < v( pi[ j - 1 ] ) ) - { - unsigned int tmp = pi[ j - 1 ]; - pi[ j - 1 ] = pi[ j ]; - pi[ j ] = tmp; - } - } - } - } - - - namespace detail - { - - template - inline Vector3 const & axis_x() - { - static Vector3 const xa(one(), zero(), zero()); - return xa; - } - - - template - inline Vector3 const & axis_y() - { - static Vector3 const ya(zero(), one(), zero()); - return ya; - } - - - template - inline Vector3 const & axis_z() - { - static Vector3 const za(zero(), zero(), one()); - return za; - } - - } - - } // namespace math - -} // namespace OpenTissue - -//OPENTISSUE_CORE_MATH_MATH_VECTORX3_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem.h deleted file mode 100644 index d91785e2b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -//#include -#include -#include - -//OPENTISSUE_DYNAMICS_FEM_FEM_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_add_plasticity_force.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_add_plasticity_force.h deleted file mode 100644 index 12097a692..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_add_plasticity_force.h +++ /dev/null @@ -1,221 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_ADD_PLASTICITY_FORCE_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_ADD_PLASTICITY_FORCE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include -#include //std::min -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - - template - void add_plasticity_force_single1(tetrahedron_type& tet, real_type const & dt) - { - - using std::min; - using std::sqrt; - - typedef typename tetrahedron_type::vector3_type vector3_type; - - - assert(tet.m_yield>=0 || !"add_plasticity_force(): yield must be non-negative"); - assert(tet.m_creep>=0 || !"add_plasticity_force(): creep must be non-negative"); - assert(tet.m_creep<=(1.0/dt) || !"add_plasticity_force(): creep must be less that reciprocal time-step"); - assert(tet.m_max>=0 || !"add_plasticity_force(): max must be non-negative"); - - //--- Storage for total and elastic strains (plastic strains are stored in the tetrahedra) - real_type e_total[6]; - real_type e_elastic[6]; - - for(int i=0;i<6;++i) - e_elastic[i] = e_total[i] = 0; - - //--- Compute total strain: e_total = Be (Re^{-1} x - x0) - for(unsigned int j=0;j<4;++j) - { - vector3_type & x_j = tet.node(j)->m_coord; - vector3_type & x0_j = tet.node(j)->m_model_coord; - - vector3_type tmp = (trans(tet.m_Re)*x_j) - x0_j; - real_type bj = tet.m_B[j](0); - real_type cj = tet.m_B[j](1); - real_type dj = tet.m_B[j](2); - e_total[0] += bj*tmp(0); - e_total[1] += cj*tmp(1); - e_total[2] += dj*tmp(2); - e_total[3] += cj*tmp(0) + bj*tmp(1); - e_total[4] += dj*tmp(0) + bj*tmp(2); - e_total[5] += dj*tmp(1) + cj*tmp(2); - } - - //--- Compute elastic strain - for(int i=0;i<6;++i) - e_elastic[i] = e_total[i] - tet.m_plastic[i]; - - //--- if elastic strain exceeds c_yield then it is added to plastic strain by c_creep - real_type norm_elastic = 0; - for(int i=0;i<6;++i) - norm_elastic += e_elastic[i]*e_elastic[i]; - norm_elastic = sqrt(norm_elastic); - //max_elastic = max(max_elastic,norm_elastic); - - if(norm_elastic > tet.m_yield) - { - real_type amount = dt*min(tet.m_creep,(1.0/dt)); //--- make sure creep do not exceed 1/dt - for(int i=0;i<6;++i) - tet.m_plastic[i] += amount*e_elastic[i]; - } - - //--- if plastic strain exceeds c_max then it is clamped to maximum magnitude - real_type norm_plastic = 0; - for(int i=0;i<6;++i) - norm_plastic += tet.m_plastic[i]*tet.m_plastic[i]; - norm_plastic = sqrt(norm_plastic); - //max_plastic = max(max_plastic,norm_plastic); - - if(norm_plastic > tet.m_max) - { - real_type scale = tet.m_max/norm_plastic; - for(int i=0;i<6;++i) - tet.m_plastic[i] *= scale; - } - //--- Compute plastic forces: f_plastic = Re Pe e_plastic; where Pe = Ve Be^T E - for(unsigned int j=0;j<4;++j) - { - real_type * plastic = tet.m_plastic; - real_type bj = tet.m_B[j](0); - real_type cj = tet.m_B[j](1); - real_type dj = tet.m_B[j](2); - real_type E0 = tet.m_D(0); - real_type E1 = tet.m_D(1); - real_type E2 = tet.m_D(2); - vector3_type f; - - //--- - //--- - //--- Recall the structure of the B and E matrices - //--- - //--- | bj 0 0 | | E0 E1 E1 | - //--- B_j = | 0 cj 0 | | E1 E0 E0 | - //--- | 0 0 dj | E = | E1 E1 E0 | - //--- | cj bj 0 | | E2 | - //--- | dj 0 bj | | E2 | - //--- | 0 dj cj | | E2 | - //--- - //--- This implyies that the product B_j^T E is - //--- - //--- | bj E0 bj E1 bj E1 cj E2 dj E2 0 | - //--- | cj E1 cj E0 cj E1 bj E2 0 dj E2 | - //--- | dj E1 dj E1 dj E0 0 bj E2 cj E2 | - //--- - //--- Notice that eventhough this is a 3X6 matrix with 18-3=15 nonzero elements - //--- it actually only contains 9 different value. - //--- - //--- In fact these values could be precomputed and stored in each tetrahedron. - //--- Furthermore they could be pre-multiplied by the volume of the tetrahedron - //--- to yield the matrix, - //--- - //--- P_j = Ve B_j^T E - //--- - //--- The plastic force that should be subtracted from node j is then computed - //--- in each iteration as - //--- - //--- f_j = Re P_j e_plastic - //--- - //--- - real_type bjE0 = bj*E0; - real_type bjE1 = bj*E1; - real_type bjE2 = bj*E2; - real_type cjE0 = cj*E0; - real_type cjE1 = cj*E1; - real_type cjE2 = cj*E2; - real_type djE0 = dj*E0; - real_type djE1 = dj*E1; - real_type djE2 = dj*E2; - - f(0) = bjE0*plastic[0] + bjE1*plastic[1] + bjE1*plastic[2] + cjE2*plastic[3] + djE2*plastic[4]; - f(1) = cjE1*plastic[0] + cjE0*plastic[1] + cjE1*plastic[2] + bjE2*plastic[3] + + djE2*plastic[5]; - f(2) = djE1*plastic[0] + djE1*plastic[1] + djE0*plastic[2] + bjE2*plastic[4] + cjE2*plastic[5]; - - f *= tet.m_V; - tet.node(j)->m_f_external += tet.m_Re*f; - } - } - /** - * Add plasticity forces. - * - * @param begin Iterator to first tetrahedron. - * @param end Iterator to one past last tetrahedron. - * @param dt Simulation time step - * - */ - template < typename tetrahedron_iterator,typename real_type > - inline void add_plasticity_force2( - tetrahedron_iterator begin - , tetrahedron_iterator end - , real_type const & dt - ) - { - //typedef typename tetrahedron_iterator::value_type::matrix3x3_type matrix3x3_type; - - //real_type max_elastic = 0; - //real_type max_plastic = 0; - - assert(dt>0 || !"add_plasticity_force(): time-step must be positive"); - //--- - //--- The total strain is given by - //--- - //--- e_total = Be u - //--- - //--- Where u is the nodal displacement, ie u = x - x0. Applying - //--- the idea of stiffness warping we have - //--- - //--- e_total = Be ( Re^{-1} x - x0) - //--- - //--- where R_e is the rotational deformation of the e'th - //--- tetrahedral element. - //--- - //--- The elastic strain is given as the total strain minus the plastic strain - //--- - //--- e_elastic = e_total - e_plastic - //--- - //--- e_plastic is initial initialized to zero. Plastic strain causes plastic forces in the material - //--- - //--- f_plastic = Re Ke u_plastic - //--- - //--- Using e_plastic = Be u_plastic - //--- - //--- f_plastic = Re Ke Be^{-1} e_plastic - //--- f_plastic = Re (Ve Be^T E Be ) Be^{-1} e_plastic - //--- f_plastic = Re (Ve Be^T E) e_plastic - //--- - //--- Introducing the plasticity matrix Pe = (Ve Be^T E) we have - //--- - //--- f_plastic = Re Pe e_plastic - //--- - - for (tetrahedron_iterator T = begin; T != end; ++T) - { - add_plasticity_force_single(T,dt); - - } - //std::cout << "max elastic = " << max_elastic << std::endl; - //std::cout << "max plastic = " << max_plastic << std::endl; - - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_ADD_PLASTICITY_FORCE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_clear_stiffness_assembly.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_clear_stiffness_assembly.h deleted file mode 100644 index c0cce081f..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_clear_stiffness_assembly.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_CLEAR_STIFFNESS_ASSEMBLY_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_CLEAR_STIFFNESS_ASSEMBLY_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * - * @param begin - * @param end - */ - template < typename node_type > - inline void clear_stiffness_assembly_single(node_type* node) - { - typedef typename node_type::matrix_iterator matrix_iterator; - node->m_f0.clear(); - for (matrix_iterator Kij = node->Kbegin() ; Kij != node->Kend(); ++Kij ) - Kij->second.clear(); - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_CLEAR_STIFFNESS_ASSEMBLY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_b.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_b.h deleted file mode 100644 index bf7c01d82..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_b.h +++ /dev/null @@ -1,403 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_B_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_B_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * Calculate B-matrices (derivatives of shape functions N, i.e B = SN). - * - * @param e10 Given the four corner points p0,p1,p2, and p3. This is p1-p0. - * @param e20 Given the four corner points p0,p1,p2, and p3. This is p2-p0. - * @param e30 Given the four corner points p0,p1,p2, and p3. This is p3-p0. - * @param volume The volume of the tetrahedron. - * @param B Upon return this array of 4 B-vectors contains the computed values. - */ - template - inline void compute_B( - vector3_type const& e10, - vector3_type const& e20, - vector3_type const& e30, - real_type volume, - vector3_type * B - ) - { - // - // In summary we want to calculate - // - // B = S N - // - // where - // - // B = [ B0 B1 B2 B3 ], N = [ N0 N1 N2 N3 ] - // - // Here S is the operational matrix given by - // - - - // | d/dx 0 0 | - // | 0 d/dy 0 | - // | 0 0 d/dz | - // S = | d/dy d/dx 0 | - // | d/dz 0 d/dx | - // | 0 d/dz d/dy | - // - - - // N_i's are called the shape functions and they are used to interpolate values. For - // 3D linear elastostatics these can be written as - // - // - - - // | w_i 0 0 | - // N_i = | 0 w_i 0 | - // | 0 0 w_i | - // - - - // - // The w_i's are functions in the coordinates x,y, and z and will be derived - // shortly below of here. - // - // The matrix B_i is given by: - // - // | b_i 0 0 | - // | 0 c_i 0 | - // B_i = | 0 0 d_i | - // | c_i b_i 0 | - // | d_i 0 b_i | - // | 0 d_i c_i | - // - // The entries are stored as - // - // B[i] = [ b_i c_i d_i ] - // - // In the following we go into details of deriving formulas for the interpolating - // functions N_i. From these formulas it follows how to compute the derivatives. - // Finally we show a clever way of implementing the computaitons. - // - // Using a linear polynomial for interpolating a u(x,y,z)-value at a given - // position x,y,z inside the tetrahedron - // - // u(x,y,z) = a_0 + a_1 x + a_2 y + a_3 z = P^T A - // - // where the a's are the polynomial coefficients (to be determed) and - // - // | 1 | | a0 | - // P = | x | , and A = | a1 | - // | y | | a2 | - // | z | | a3 | - // - // Say we know the u-values, u0(x0,y0,z0),...,u3(x3,y2,z3), at the four tetrahedron corner - // points, P0^T [x0 y0 z0],...,P3^T=[x3 y3 z3], then we can set up the linear system - // - // | u0 | | 1 x0 y0 z0 | | a0 | - // | u1 | = | 1 x1 y1 z1 | | a1 | = C A - // | u2 | | 1 x2 y2 z2 | | a2 | - // | u3 | | 1 x3 y3 z3 | | a3 | - // - // The C matrix is invertible (as long as the four points are in general postion, meaning - // that no point can be written as a linear combination of any of the three other points), - // so we can solve the polynomial coefficients by - // - // | u0 | - // A = C^-1 | u1 | - // | u2 | - // | u3 | - // Substitution into the polynomial interpolation formula yields - // - // | u0 | - // u(x,y,z) = P^T A = P^T C^{-1} | u1 | (*1) - // | u2 | - // | u3 | - // - // Denoting the i'th column of, P^T C^{-1}, by N_i we have u(x,y,z) = sum_i N_i u_i - // - // - // Let us now try to look at the bary-centric coordinates, w0,...,w1 of (x,y,z), these - // can also be used for interpolation - // - // | u0 | |u0| - // u(z,y,z) = w0 u0 + w1 u1 + w2 u2 + w3 u3 = [w0 w1 w2 w3] | u1 | = W^T |u1| - // | u2 | |u2| - // | u3 | |u3| - // - // From the coordinates of the four points and the condition 1 = w0 + w1 + w2 + w3 we can set - // up the linear system - // - // | 1 | | 1 1 1 1 | | w0 | - // | x | = | x0 x1 x2 x3 | | w1 | - // | y | | y0 y1 y2 y3 | | w2 | - // | z | | z0 z1 z2 z3 | | w3 | - // - // - // P = Q W - // - // Since the four points are in general postion, Q is invertible and we can solve for W - // - // W = Q^{-1} P - // - // Insertion into the barycentric interpolation formula yields - // - // |u0| |u0| |u0| - // u(x,y,z) = W^T |u1| = ( Q^{-1} P )^T |u1| = P^T Q^{-T} |u1| (*2) - // |u2| |u2| |u2| - // |u3| |u3| |u3| - // - // Comparision with the polynomial interpolation derivation we see that C = Q^T, furthermore - // we notice that w_i = N_i. So (not very surprinsingly) bary-centric interpolation is really - // just linear polynomial interpolation. - // - // Notice that for the volume, V, of the tetrahedron we have the relation: 6 V = det( C ) = det ( Q^T ) - // - // When computing the stiffness matrix we are interested in derivatives of the N_i's with - // respect to the x,y and z coordinates. - // - // - // From (*1) and (*2) we see (recall we use zero-indexing) - // - // d N_i - // ----- = C^{-1}_{1,i} = Q^{-T}_{1,i} (*3a) - // d x - // - // d N_i - // ----- = C^{-1}_{2,i} = Q^{-T}_{2,i} (*3b) - // d y - // - // d N_i - // ----- = C^{-1}_{3,i} = Q^{-T}_{3,i} (*3c) - // d z - // - // Instead of actually computing the inverse of the 4x4 C or Q matrices a computational - // more efficient solution can be derived, which only requires us to solve for a 3x3 system. - // - // By Cramers rule we have - // - // (-1)^{i+j} det( C_ji) - // C^{-1}_{i,j} = ---------------------- - // det(C) - // - // where det(C_ji) is the determinant of C with the j'th row and i'th column removed. - // - // Now defined - // - // e10 = P1 - P0 - // e20 = P2 - P0 - // e30 = P3 - P0 - // - // and the matrix E - // - // | e10^T | | (x1-x0) (y1-y0) (z1-z0) | - // E = | e20^T | = | (x2-x0) (y2-y0) (z2-z0) | - // | e30^T | | (x3-x0) (y3-y0) (z3-z0) | - // - // Then - // - // det(C) = det(E) and C^{-1}_{i+1,j+1} = E^{-1}_{i,j} (*4) - // - // This can shown by straightforward computation, immediately is is verified that - // - // {-1}^((i+1)+(j+1)) = {-1}^(i+j) - // - // So we have to show - // - // det( C_(i+1,j+1)) det( E_(ij)) - // --------------------- = -------------- - // det(C) det(E) - // - // assume det(C)= det(E) (left for reader as exercise:-) then inorder to prove - // second half of (*4) we have to show - // - // det( C_(i+1,j+1)) = det( E_(ij)) - // - // A total of 9 cases exist, for here we will show a single case and leave - // the remaining cases for the reader, use i=1 and j= 0, implying - // - // det( C_(12)) = det( E_(01)) - // - // So - // - - - // | 1 x0 z0 | - - - // det | 1 x2 z2 | = det | (x2-x0) (z2-z0)| - // | 1 x3 z3 | | (x3-x0) (z3-z0)| - // - - - - - // - // Which is trivially true. So we have - // - // | . ... | | . ... | - // C^{-1} = | . E^{-1} | ; Q^{-T} = | . E^{-T} | - // - // As can be seen from (*3) we do not have all the values needed since - // the first columns of C^{-1} and Q^{-T} are missing. To remedy this problem we can use - // the condition of the bary-centric coordinates - // - // w0 = 1 - w1 - w2 - w3 - // - // Taking the derivate wrt. x,y, and z yields - // - // d N_0 - // ----- = 1 - E^{-1}_01 - E^{-1}_02 - E^{-1}_03 (*5a) - // d x - // - // d N_0 - // ----- = 1 - E^{-1}_11 - E^{-1}_12 - E^{-1}_13 (*5b) - // d y - // - // d N_0 - // ----- = 1 - E^{-1}_21 - E^{-1}_22 - E^{-1}_23 (*5c) - // d z - // - // - // and for i>0 we have - // - // d N_i - // ----- = E^{-1}_0i (*6a) - // d x - // - // d N_i - // ----- = E^{-1}_1i (*6b) - // d y - // - // - // d N_i - // ----- = E^{-1}_2i (*6c) - // d z - // - // The notation b_i = d N_i / dx, c_i = d N_i / dy, and d_i = d N_i / dz is used. Furthermore - // all the derivatives are returned as four B-vectors, where - // - // B[i] = [ b_i c_i d_i] - // - // - // - // The above may seem as a mathematical trick, so let us try to derive our - // equations a litlle differently, but before doing so we must first develop - // some equations for the volume of a tetrahedron. - // - // | e10^T | - // 6 V = det(E) = | e20^T | = e10 \cdot (e20 \times e30) - // | e30^T | - // - // where e10 = p1-p0, e20 = p2-p0 and so on. - // In general given the right-hand order i,j,k, and m of the nodes we - // write vol(i,j,k,m) = eji \cdot (eki \times emi) / 6 - // - // Barycentric coordinates are infact the volume weighted weights coresponding to - // the four tetrahedra lying inside the tetrahedron and having apex at the - // point p=[x,y,z]^T and bases equal to the 4 triangular faces of the enclosing - // tetrahedron. To realize this we will examine bary-centric coordinates - // in the 2D case, that is the case of the Triangle. In 2D area corresponds - // to the volume, so given a trianle and a point p inside it - // - // + 2 - // /| - // / | - // / | - // / | - // / + p| - // / | - // / | - // 0 +-------+ 1 - // - // Let the area weighted weights be defined as - // - // w_0 = area(1,2,p) / area(0,1,2) - // w_1 = area(0,P,2) / area(0,1,2) = area(2,0,P) / area(0,1,2) - // w_2 = area(0,1,p) / area(0,1,2) - // - // It is intuitive to see that if p moves towards the i'th corner point then - // the nominator of w_i goes towards area(0,1,2). This means that w_i -> 1 - // while w_j ->0 for j\neq i. - // - // Having introduced the barycentric coordinates as the area weighted weights - // it is quite intuitive to see that we also must have - // - // 1 = \sum_i w_i - // - // In 3D the barycentric coordinates are the volume weighted weights. That is - // given the right handed order 0,1,2 and 3 of the corner points, we have by - // analogy to the 2D case - // - // vol(0,1,2,p) - // w_3 = ------------ = (p-p0) \codt ( e10 \times \e20 ) / 6V - // V - // - // vol(0,1,3,p) - // w_2 = ------------ = (p-p0) \codt ( e10 \times \e30 ) / 6V - // V - // - // vol(0,2,3,p) - // w_1 = ------------ = (p-p0) \codt ( e20 \times \e30 ) / 6V - // V - // - // vol(1,3,2,p) - // w_0 = ------------ = (p-p0) \codt ( e31 \times \e21 ) / 6V - // V - // - // But since we allready know w_3, w_2 and w_1 it is faster to compute w_0 as - // - // w_0 = 1 - w_1 - w_2 - w_3 - // - // Recal from previous that we seek the derivatives of w_i's wrt. the coordinaes when - // we compute the B functions. Let us write the [x y z] coordinates as [x_0 x_1 x_2] then - // - // d w_3 - // ------- = ( e10 \times \e20 )_{x_j} / 6V - // d x_j - // - // That is the j'th coordinate of the cross product divided by 6 times the volume. Similar for - // - // d w_2 - // ------- = ( e10 \times \e30 )_{x_j} / 6V - // d x_j - // - // d w_1 - // ------- = ( e20 \times \e30 )_{x_j} / 6V - // d x_j - // - // and finally - // - // d w_0 d w_i - // ------- = 1 - sum_i>0 ------- - // d x_j d x_j - // - // Our formulas may seem differnt from those in (*6), however - // - // d w_k - // ------- = ( eji \times \emi )_{x_j} / 6V = E_{-1}_{k,j} - // d x_j - // - // That is the adjoint of E_(j,k) is given by ( eji \times \emi )_{x_j} / 6. - // - // - // - - real_type div6V = 1/(6.0*volume); - - B[1](0) = (e20(2) * e30(1) - e20(1) * e30(2)) * div6V; // b0 = -det(E_11), (where E_ij is the submatrix of E with row i and column j removed) - B[2](0) = (e10(1) * e30(2) - e10(2) * e30(1)) * div6V; // b1 = det(E_12) - B[3](0) = (e10(2) * e20(1) - e10(1) * e20(2)) * div6V; // b2 = -det(E_13) - B[0](0) = -B[1](0) - B[2](0) - B[3](0); // b3 = -b0 - b1 - b2 - - B[1](1) = (e20(0) * e30(2) - e20(2) * e30(0)) * div6V; // c0 = det(E_21) - B[2](1) = (e10(2) * e30(0) - e10(0) * e30(2)) * div6V; // c1 = -det(E_22) - B[3](1) = (e10(0) * e20(2) - e10(2) * e20(0)) * div6V; // c2 = det(E_23) - B[0](1) = -B[1](1) - B[2](1) - B[3](1); // c3 = -c0 - c1 - c2 - - B[1](2) = (e20(1) * e30(0) - e20(0) * e30(1)) * div6V; // d0 = -det(E_31) - B[2](2) = (e10(0) * e30(1) - e10(1) * e30(0)) * div6V; // d1 = det(E_32) - B[3](2) = (e10(1) * e20(0) - e10(0) * e20(1)) * div6V; // d2 = -det(E_33) - B[0](2) = -B[1](2) - B[2](2) - B[3](2); // d3 = -d0 - d1 - d2 - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_B_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_isotropic_elasticity.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_isotropic_elasticity.h deleted file mode 100644 index 555f68ca7..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_isotropic_elasticity.h +++ /dev/null @@ -1,121 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_ISOTROPIC_ELASTICITY_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_ISOTROPIC_ELASTICITY_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Compute Isotropic Elasticity Matrix. - * - * @param young Young Modulus. - * @param poisson Poisson ratio. - * @param D Upon return holds the elasticity matrix in vector form D = [D0,D1,D2] - */ - template - inline void compute_isotropic_elasticity_vector( - real_type const & young - , real_type const & poisson - , vector3_type & D - ) - { - assert(young>0 || !"compute_isotropic_elasticity_vector(): Young modulus must be positive"); - assert(poisson>0 || !"compute_isotropic_elasticity_vector(): Poisson ratio must be positive"); - assert(poisson<0.5 || !"compute_isotropic_elasticity_vector(): Poisson ratio must be less than a half"); - - // The isotropic Elasticity matrix D is given by - // - - - - - // | 1-nu nu nu 0 0 0 | | D0 D1 D1 0 0 0 | - // young | nu 1-nu nu 0 0 0 | | D1 D0 D1 0 0 0 | - // ------------- | nu nu 1-nu 0 0 0 | | D1 D1 D0 0 0 0 | - // (1+nu)(1-2nu) | 0 0 0 (1-2nu)/2 0 0 | = | 0 0 0 D2 0 0 | - // | 0 0 0 0 (1-2nu)/2 0 | | 0 0 0 0 D2 0 | - // | 0 0 0 0 0 (1-2nu)/2 | | 0 0 0 0 0 D2 | - // - - - - - - real_type poisson2 = 2.0*poisson; - real_type scale = young / ((1.0 + poisson) * (1.0 - poisson2)); - D(0) = (1.0 - poisson) * scale; - D(1) = poisson * scale; - D(2) = young / (2.0 + poisson2); - } - - /** - * Compute Elasticy Matrix. - * - * @param young Youngs modulus (stiffness) - * @param poisson Poissons ratio (compressability) - * @param D Upon return holds the isotropoc linear elasticity matrix. - */ - template - inline void compute_isotropic_elasticity_matix( - real_type const & young - , real_type const & poisson - , matrix_type & D - ) - { - assert(young>0 || !"compute_isotropic_elasticity_matix(): Young modulus must be positive"); - assert(poisson>0 || !"compute_isotropic_elasticity_matix(): Poisson ratio must be positive"); - assert(poisson<0.5 || !"compute_isotropic_elasticity_matix(): Poisson ratio must be less than a half"); - assert(D.size1()==6 || !"compute_isotropic_elasticity_matix(): D-matrix did not have 6 rows"); - assert(D.size2()==6 || !"compute_isotropic_elasticity_matix(): D-matrix did not have 6 columns"); - - typedef typename matrix_type::value_type value_type; - - value_type lambda = (poisson*young)/(( 1+poisson )*( 1- (2*poisson) )); //--- Lame modulus - value_type mu = young/(2*(1+poisson)); //--- Shear Modulus - value_type tmp = lambda+(2*mu); - - D(0,0) = tmp; D(0,1) = lambda; D(0,2) = lambda; D(0,3) = 0; D(0,4) = 0; D(0,5) = 0; - D(1,0) = lambda; D(1,1) = tmp; D(1,2) = lambda; D(1,3) = 0; D(1,4) = 0; D(1,5) = 0; - D(2,0) = lambda; D(2,1) = lambda; D(2,2) = tmp; D(2,3) = 0; D(2,4) = 0; D(2,5) = 0; - D(3,0) = 0; D(3,1) = 0; D(3,2) = 0; D(3,3) = mu; D(3,4) = 0; D(3,4) = 0; - D(4,0) = 0; D(4,1) = 0; D(4,2) = 0; D(4,3) = 0; D(4,4) = mu; D(4,5) = 0; - D(5,0) = 0; D(5,1) = 0; D(5,2) = 0; D(5,3) = 0; D(5,4) = 0; D(5,5) = mu; - } - - /** - * Alternative representation of isotropic elasticity matrix. - * - * - * @param young Youngs modulus (stiffness) - * @param poisson Poissons ratio (compressability) - * @param D00 - * @param D01 - * @param D33 - * - */ - template - inline void compute_isotropic_elasticity_vector( - real_type const & young - , real_type const & poisson - , real_type & D00 - , real_type & D01 - , real_type & D33 - ) - { - assert(young>0 || !"compute_isotropic_elasticity_vector(): Young modulus must be positive"); - assert(poisson>0 || !"compute_isotropic_elasticity_vector(): Poisson ratio must be positive"); - assert(poisson<0.5 || !"compute_isotropic_elasticity_vector(): Poisson ratio must be less than a half"); - - D01 = (poisson*young)/(( 1 + poisson )*( 1- (2*poisson) )); //--- Lame modulus - D33 = young/(2*(1+poisson)); //--- Shear Modulus - D00 = D01+(2*D33); - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_ISOTROPIC_ELASTICITY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_ke.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_ke.h deleted file mode 100644 index a5f742af0..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_ke.h +++ /dev/null @@ -1,299 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_KE_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_KE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Compute Stiffness matrix of tetrahedral element. - * - * @param p0 - * @param p1 - * @param p2 - * @param p3 - * @param E Youngs modulus. - * @param nu Poisson ratio. - * @param Ke Upon return contains the computed stiffness values. - */ - template - inline void compute_Ke( - vector3_type const & p0, - vector3_type const & p1, - vector3_type const & p2, - vector3_type const & p3, - real_type const & E, - real_type const & nu, - matrix3x3_type Ke[4][4] - ) - { - using std::fabs; - - real_type d = p0(0); - real_type d4 = p0(1); - real_type d8 = p0(2); - real_type d1 = p1(0) - d; - real_type d5 = p1(1) - d4; - real_type d9 = p1(2) - d8; - real_type d2 = p2(0) - d; - real_type d6 = p2(1) - d4; - real_type d10 = p2(2) - d8; - real_type d3 = p3(0) - d; - real_type d7 = p3(1) - d4; - real_type d11 = p3(2) - d8; - real_type d12 = (d1 * d6 * d11 + d2 * d7 * d9 + d3 * d5 * d10) - d1 * d7 * d10 - d2 * d5 * d11 - d3 * d6 * d9; - real_type d13 = 1.0 / d12; - real_type d14 = fabs(d12 / 6.0); - vector3_type B[4]; - B[0].clear(); - B[1].clear(); - B[2].clear(); - B[3].clear(); - B[1](0) = (d10 * d7 - d6 * d11) * d13; - B[2](0) = (d5 * d11 - d9 * d7) * d13; - B[3](0) = (d9 * d6 - d5 * d10) * d13; - B[0](0) = -B[1](0) - B[2](0) - B[3](0); - B[1](1) = (d2 * d11 - d10 * d3) * d13; - B[2](1) = (d9 * d3 - d1 * d11) * d13; - B[3](1) = (d1 * d10 - d9 * d2) * d13; - B[0](1) = -B[1](1) - B[2](1) - B[3](1); - B[1](2) = (d6 * d3 - d2 * d7) * d13; - B[2](2) = (d1 * d7 - d5 * d3) * d13; - B[3](2) = (d5 * d2 - d1 * d6) * d13; - B[0](2) = -B[1](2) - B[2](2) - B[3](2); - real_type d15 = E / (1.0 + nu) / (1.0 - 2 * nu); - real_type d16 = (1.0 - nu) * d15; - real_type d17 = nu * d15; - real_type d18 = E / 2 / (1.0 + nu); - for(int i = 0; i < 4; ++i) - { - for(int j = 0; j < 4; ++j) - { - real_type d19 = B[i](0); - real_type d20 = B[i](1); - real_type d21 = B[i](2); - real_type d22 = B[j](0); - real_type d23 = B[j](1); - real_type d24 = B[j](2); - Ke[i][j](0,0) = d16 * d19 * d22 + d18 * (d20 * d23 + d21 * d24); - Ke[i][j](0,1) = d17 * d19 * d23 + d18 * (d20 * d22); - Ke[i][j](0,2) = d17 * d19 * d24 + d18 * (d21 * d22); - Ke[i][j](1,0) = d17 * d20 * d22 + d18 * (d19 * d23); - Ke[i][j](1,1) = d16 * d20 * d23 + d18 * (d19 * d22 + d21 * d24); - Ke[i][j](1,2) = d17 * d20 * d24 + d18 * (d21 * d23); - Ke[i][j](2,0) = d17 * d21 * d22 + d18 * (d19 * d24); - Ke[i][j](2,1) = d17 * d21 * d23 + d18 * (d20 * d24); - Ke[i][j](2,2) = d16 * d21 * d24 + d18 * (d20 * d23 + d19 * d22); - Ke[i][j] *= d14; - } - } - } - - /** - * Compute Stiffness matrix of tetrahedral element. - * - */ - template - inline void compute_Ke( - vector3_type * B, - vector3_type const& D, - real_type const & volume, - matrix3x3_type Ke[4][4] - ) - { - for (unsigned int i=0; i<4; ++i) - for (unsigned int j=i; j<4; ++j) - compute_Ke_ij( B[i], D, B[j], volume, Ke[i][j] ); - - for (unsigned int i=1; i<4; ++i) - for (unsigned int j=0; j - inline void compute_Ke_ij( - vector3_type const& Bi, - vector3_type const& D, - vector3_type const& Bj, - real_type const & volume, - matrix3x3_type & Ke_ij - ) - { - assert(Ke_ij.size1() == 3 || !"compute_Ke_ij(): Incompatible dimension"); - assert(Ke_ij.size2() == 3 || !"compute_Ke_ij(): Incompatible dimension"); - - // - // Calculate Ke_ij = Bi^T D Bj V - // - // The matrix Bi is given by: - // - // | bi 0 0 | - // | 0 ci 0 | - // Bi = | 0 0 di | - // | ci bi 0 | - // | di 0 bi | - // | 0 di ci | - // - // Similar for Bj. The elasticity matrix D is given by - // - // - // - - - - - // | 1-nu nu nu 0 0 0 | | D0 D1 D1 0 0 0 | - // young | nu 1-nu nu 0 0 0 | | D1 D0 D1 0 0 0 | - // D= ------------- | nu nu 1-nu 0 0 0 | | D1 D1 D0 0 0 0 | - // (1+nu)(1-2nu) | 0 0 0 (1-2nu)/2 0 0 | = | 0 0 0 D2 0 0 | - // | 0 0 0 0 (1-2nu)/2 0 | | 0 0 0 0 D2 0 | - // | 0 0 0 0 0 (1-2nu)/2 | | 0 0 0 0 0 D2 | - // - - - - - // - // - // We have something like - // - // Bi^T D Bj - // - // These matrices have a particular pattern, especially the B-matrices: - // - // - // |x 0 0|T - // |0 x 0| - // |0 0 x| - // | x 0 0 x 0 x| |x x 0| - // | 0 x 0 x x 0| = |0 x x| Bk(i,j)^T = Bk(j,i) - // | 0 0 x 0 x x| |x 0 x| - // - // And the product has the pattern - // - // - // | x x x 0 0 0 | |x 0 0| - // | x x x 0 0 0 | |0 x 0| - // | x x x 0 0 0 | |0 0 x| - // | x 0 0 x 0 x| | 0 0 0 x 0 0 | |x x 0| - // | 0 x 0 x x 0| | 0 0 0 0 x 0 | |0 x x| - // | 0 0 x 0 x x| | 0 0 0 0 0 x | |x 0 x| - // - // - // If we compute T = Bi^T E, then we get a matrix with pattern - // - // | x x x x 0 x| - // | x x x x x 0| - // | x x x 0 x x| - // - // Now computing Kij = T Bj, - // - // |x 0 0 | - // |0 x 0 | - // |0 0 x | - // |x x x | | x x x x 0 x| |x x 0 | - // |x x x | = | x x x x x 0| |0 x x | - // |x x x | | x x x 0 x x| |x 0 x | - // - // - // and exploiting that for isotropic materials we have, - // - // D(0,0) = D(1,1) = D(2,2) = D0 - // D(0,1) = D(1,2) = D(0,2) = D(1,0) = D(2,1) = D(2,0) = D1 - // D(3,3) = D(4,4) = D(5,5) = D2 - // - // Finally we do not need to store the B-matrices, observe that since - // - // b(0) = invC(1,0); b(1) = invC(1,1); b(2) = invC(1,2); b(3) = invC(1,3); - // c(0) = invC(2,0); c(1) = invC(2,1); c(2) = invC(2,2); c(3) = invC(2,3); - // d(0) = invC(3,0); d(1) = invC(3,1); d(2) = invC(3,2); d(3) = invC(3,3); - // - // and - // - // | bi 0 0 | - // | 0 ci 0 | - // Bi = | 0 0 di | - // | ci bi 0 | - // | 0 di ci | - // | di 0 bi | - // - // therefore - // - // | invC(1,i) 0 0 | - // | 0 invC(2,i) 0 | - // Bi = | 0 0 invC(3,i) | - // | invC(2,i) invC(1,i) 0 | - // | 0 invC(3,i) invC(2,i) | - // | invC(3,i) 0 invC(1,i) | - // - // Putting it all together and using matlab, we have, - // - //syms bi ci di real - //Bi = [ bi 0 0 ; 0 ci 0 ; 0 0 di ; ci bi 0 ; 0 di ci ; di 0 bi ] - //syms bj cj dj real - //Bj = [ bj 0 0 ; 0 cj 0 ; 0 0 dj ; cj bj 0 ; 0 dj cj ; dj 0 bj ] - //syms G H J real - //D = [ G H H 0 0 0; H G H 0 0 0; H H G 0 0 0; 0 0 0 J 0 0; 0 0 0 0 J 0; 0 0 0 0 0 J] - //T = Bi'*E - //Kij = T*Bj - //syms invC1i invC2i invC3i real; - //Kij = subs(Kij,bi,invC1i); - //Kij = subs(Kij,ci,invC2i); - //Kij = subs(Kij,di,invC3i); - //syms invC1j invC2j invC3j real; - //Kij = subs(Kij,bj,invC1j); - //Kij = subs(Kij,cj,invC2j); - //Kij = subs(Kij,dj,invC3j); - //Kij = collect(Kij,G) - //Kij = collect(Kij,H) - //Kij = collect(Kij,J) - // - // which yields - // - // - - - // | D0 bi bj + D2 (ci cj + di dj) D1 bi cj + D2 ci bj D1 bi dj + D2 di bj | - // Ke_ij = V | D1 ci bj + D2 bi cj D0 ci cj + D2 (bi bj + di dj) D1 ci dj + D2 di cj | - // | D1 di bj + D2 bi dj D1 di cj + D2 ci dj D0 di dj + D2 (bi bj + ci cj) | - // - - - real_type bi = Bi(0); - real_type ci = Bi(1); - real_type di = Bi(2); - - real_type bj = Bj(0); - real_type cj = Bj(1); - real_type dj = Bj(2); - - real_type D0 = D(0)*volume; - real_type D1 = D(1)*volume; - real_type D2 = D(2)*volume; - - Ke_ij(0,0) = D0 * bi * bj + D2 * (ci * cj + di * dj); - Ke_ij(0,1) = D1 * bi * cj + D2 * (ci * bj); - Ke_ij(0,2) = D1 * bi * dj + D2 * (di * bj); - - Ke_ij(1,0) = D1 * ci * bj + D2 * (bi * cj); - Ke_ij(1,1) = D0 * ci * cj + D2 * (bi * bj + di * dj); - Ke_ij(1,2) = D1 * ci * dj + D2 * (di * cj); - - Ke_ij(2,0) = D1 * di * bj + D2 * (bi * dj); - Ke_ij(2,1) = D1 * di * cj + D2 * (ci * dj); - Ke_ij(2,2) = D0 * di * dj + D2 * (ci * cj + bi * bj); - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_KE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_mass.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_mass.h deleted file mode 100644 index 1ff3cbd2e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_mass.h +++ /dev/null @@ -1,175 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_MASS_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_MASS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * Compute Mass. - * - * Note: Volume should have been computed prior to invoking this - * function. Thus make sure that initialize_stiffness_elements have - * been invoked prior to this function. - * - * @param mesh - */ - template - inline void compute_mass(fem_mesh & mesh) - { - typedef typename fem_mesh::real_type real_type; - - //--- - //--- A mass matrix is a discrete representation of a continuous mass distribution. - //--- To compute our mass matrix for a tetrahedral element with linear shape - //--- functions we need the formula (pp. 266 in Cook) - //--- - //--- a!b!c!d! - //--- \int_V N_1^a N_2^b N_3^c N_4^d dV = 6V -------------------------- (**) - //--- (3 + a + b +c + d)! - //--- - //--- A consistent element mass matrix (pp. 376 Cook) is defined as - //--- - //--- m = \int_V \rho N^T N dV (***) - //--- - //--- This equation can be derived from work balance, the details of which is unimportant - //--- here (look Cook pp. 375-376 for details). - //--- Assumping \rho is constant over each tetrahedral element and using the linear shape - //--- functions the above definition (***) results in - //--- - //--- |N_1| - //--- m = \rho \int_V |N_2| |N_1 N_2 N_3 N_4| dV - //--- |N_3| - //--- |N_4| - //--- - //--- |(N_1 N_1) (N_1 N_2) (N_1 N_3) (N_1 N_4)| - //--- m = \rho \int_V |(N_2 N_1) (N_2 N_2) (N_2 N_3) (N_2 N_4)| dV - //--- |(N_3 N_1) (N_3 N_2) (N_3 N_3) (N_3 N_4)| - //--- |(N_4 N_1) (N_4 N_2) (N_4 N_3) (N_4 N_4)| - //--- - //--- by (**) - //--- - //--- | 2 1 1 1| - //--- m = \rho V/20 | 1 2 1 1| (****) - //--- | 1 1 2 1| - //--- | 1 1 1 2| - //--- - //--- V - //--- m_ij = \rho --- (1+delta_ij) - //--- 20 - //--- - //--- in 3D this means that for the tetrahedral element - //--- - //--- | 2 2 2 1 1 1 1 1 1 1 1 1 | - //--- | 2 2 2 1 1 1 1 1 1 1 1 1 | - //--- | 2 2 2 1 1 1 1 1 1 1 1 1 | - //--- | | - //--- | 1 1 1 2 2 2 1 1 1 1 1 1 | - //--- | 1 1 1 2 2 2 1 1 1 1 1 1 | - //--- V | 1 1 1 2 2 2 1 1 1 1 1 1 | - //--- Me = \rho --- | | - //--- 20 | 1 1 1 1 1 1 2 2 2 1 1 1 | - //--- | 1 1 1 1 1 1 2 2 2 1 1 1 | - //--- | 1 1 1 1 1 1 2 2 2 1 1 1 | - //--- | | - //--- | 1 1 1 1 1 1 1 1 1 2 2 2 | - //--- | 1 1 1 1 1 1 1 1 1 2 2 2 | - //--- | 1 1 1 1 1 1 1 1 1 2 2 2 | - //--- - //--- Notice that in order to obtain the global/system mass matrix an assembly similar to the - //--- stiffnees matrix assembly must be carried out. Further, the global M matrix will - //--- have the same sub-block pattern as the global K matrix. - //--- - //--- A consistent mass matrix is often not used in computer graphics. Instead and - //--- ad-hoc approach named ``lumped'' mass matrix is applied. - //--- The lumped mass matrix is obtained by placing particle masses at the nodes. - //--- This corresponds to shifting all the masses in the rows of (****) onto the - //--- diagonal. In 3D this yields the element mass matrix - //--- - //--- | 1 0 0 0 0 0 0 0 0 0 0 0 | - //--- | 0 1 0 0 0 0 0 0 0 0 0 0 | - //--- | 0 0 1 0 0 0 0 0 0 0 0 0 | - //--- | | - //--- | 0 0 0 1 0 0 0 0 0 0 0 0 | - //--- | 0 0 0 0 1 0 0 0 0 0 0 0 | - //--- V | 0 0 0 0 0 1 0 0 0 0 0 0 | - //--- Me = \rho --- | | - //--- 4 | 0 0 0 0 0 0 1 0 0 0 0 0 | - //--- | 0 0 0 0 0 0 0 1 0 0 0 0 | - //--- | 0 0 0 0 0 0 0 0 1 0 0 0 | - //--- | | - //--- | 0 0 0 0 0 0 0 0 0 1 0 0 | - //--- | 0 0 0 0 0 0 0 0 0 0 1 0 | - //--- | 0 0 0 0 0 0 0 0 0 0 0 1 | - //--- - //--- Thus a lumped mass matrix is diagonal whereas a consistent mass matrix - //--- is not. Observe that the global mass matrix would also diagonal and the - //--- assembly is simplified to an iteration over all tetrahedra, while - //--- incementing the nodal mass by one fourth of the tetrahedral mass. - //--- - //--- for each node n - //--- mass(n) = 0 - //--- next n - //--- for each tetrahedron e - //--- mass(n_i) += \rho_e Ve / 4 - //--- mass(n_j) += \rho_e Ve / 4 - //--- mass(n_k) += \rho_e Ve / 4 - //--- mass(n_m) += \rho_e Ve / 4 - //--- next e - //--- - //--- where n_i,n_j,n_k and n_m are the four nodes of the e'th tetrahedron. - //--- - //--- The advantage of lumping is less storage and higher performace. On the downside - //--- lumping introduces a discontinouty in the displacement field. - //--- - //--- Obrien.shen state that the errors in lumping is negligeble for small-size course - //--- meshes used in computer graphics. However, for finer meshes the errors becomes - //--- noticeable. - //--- - //--- There do exist other approaches for computing mass matrices, even mehtods which - //--- combine other methods. We refer the interested reader to Cook for more details. Here - //--- we have limited our selfes to the two most common methods. - //--- - //--- It is worthwhile to notice that under the reasonable assumptions that V and \rho are - //--- positive for all elements both the element mass matrices and the global mass matrices - //--- are symmetric positive definite matrices. - - for (int n=0;n::max(); - else - mesh.m_nodes[n].m_mass = 0; - } - - for (int t=0;tm_mass += amount; - mesh.m_tetrahedra[t].j()->m_mass += amount; - mesh.m_tetrahedra[t].k()->m_mass += amount; - mesh.m_tetrahedra[t].m()->m_mass += amount; - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_MASS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_volume.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_volume.h deleted file mode 100644 index 6b673774a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_compute_volume.h +++ /dev/null @@ -1,93 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_VOLUME_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_VOLUME_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Compute volume of tetrahedron. - * - * @param e10 edge vector from p0 to p1, i.e. e10 = p1-p0. - * @param e20 edge vector from p0 to p2, i.e. e20 = p2-p0. - * @param e30 edge vector from p0 to p3, i.e. e30 = p3-p0. - * - * @return The signed volume of the tetrahedra with nodes p0,p1,p2 and p3. - */ - template - inline typename vector3_type::value_type compute_volume(vector3_type const& e10, vector3_type const& e20, vector3_type const& e30) - { - typedef typename vector3_type::value_type real_type; - // Calculate the volume given by: - // | 1 1 1 1 | - // | e1x e2x e3x | | p0x p1x p2x p3x | - // 6V = | e1 \cdot (e2 x e3) | = | e1y e2y e3y | = 6V | p0y p1y p2y p3y | - // | e1z e2z e3z | | p0z p1z p2z p3z | - // - real_type sixV = e10*(e20 % e30); - return sixV / 6.0; - } - - /** - * Compute Tetrahedron Volume - * - * @param p0 - * @param p1 - * @param p2 - * @param p3 - * - * @return The signed volume of the tetrahedra with nodes p0,p1,p2 and p3. - */ - template - inline typename vector3_type::value_type compute_volume(vector3_type const & p0,vector3_type const & p1,vector3_type const & p2,vector3_type const & p3) - { - typedef typename vector3_type::value_type real_type; - - real_type d = p0(0); - real_type d4 = p0(1); - real_type d8 = p0(2); - real_type d1 = p1(0) - d; - real_type d5 = p1(1) - d4; - real_type d9 = p1(2) - d8; - real_type d2 = p2(0) - d; - real_type d6 = p2(1) - d4; - real_type d10 = p2(2) - d8; - real_type d3 = p3(0) - d; - real_type d7 = p3(1) - d4; - real_type d11 = p3(2) - d8; - real_type d12 = (d1 * d6 * d11 + d2 * d7 * d9 + d3 * d5 * d10) - d1 * d7 * d10 - d2 * d5 * d11 - d3 * d6 * d9; - return d12 / 6.0; - /* - ** From Zienkiewicz & Taylor p.637 - ** V = 1/6*det( 1 x0 y0 z0; 1 x1 y1 z1; 1 x2 y2 z2; 1 x3 y3 z3) - ** where x0 = n0->i; y0 = n0(1); ... - ** Calculated by Mathematica ;-) - */ - /* - return (p0(2)*p1(1)*p2(0) - p0(1)*p1(2)*p2(0) - p0(2)*p1(0)*p2(1) - + p0(0)*p1(2)*p2(1) + p0(1)*p1(0)*p2(2) - p0(0)*p1(1)*p2(2) - - p0(2)*p1(1)*p3(0) + p0(1)*p1(2)*p3(0) + p0(2)*p2(1)*p3(0) - - p1(2)*p2(1)*p3(0) - p0(1)*p2(2)*p3(0) + p1(1)*p2(2)*p3(0) - + p0(2)*p1(0)*p3(1) - p0(0)*p1(2)*p3(1) - p0(2)*p2(0)*p3(1) - + p1(2)*p2(0)*p3(1) + p0(0)*p2(2)*p3(1) - p1(0)*p2(2)*p3(1) - - p0(1)*p1(0)*p3(2) + p0(0)*p1(1)*p3(2) + p0(1)*p2(0)*p3(2) - - p1(1)*p2(0)*p3(2) - p0(0)*p2(1)*p3(2) + p1(0)*p2(1)*p3(2))/6.; - */ - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_COMPUTE_VOLUME_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_conjugate_gradients.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_conjugate_gradients.h deleted file mode 100644 index 684a927f3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_conjugate_gradients.h +++ /dev/null @@ -1,141 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_CONJUGATE_GRADIENTS_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_CONJUGATE_GRADIENTS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#define n_i (&mesh.m_nodes[n]) -#define n_j (&mesh.m_nodes[j]) - - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Conjugate Gradient Solver. - * This solver has been hard-wired for a WarpT4Mesh to solve the equation - * - * A v = b - * - */ - template < typename fem_mesh > - inline void conjugate_gradients( - fem_mesh & mesh - , unsigned int min_iterations - , unsigned int max_iterations - ) - { - using std::fabs; - - typedef typename fem_mesh::real_type real_type; - typedef typename fem_mesh::vector3_type vector3_type; - typedef typename fem_mesh::matrix3x3_type matrix3x3_type; - typedef typename fem_mesh::node_type::matrix_iterator matrix_iterator; - - - real_type tiny = 1e-010; // TODO: Should be user controllable - real_type tolerence = 0.001; // TODO: Should be user controllable - - //--- r = b - A v - //--- p = r - for(int n=0;nm_fixed) - continue; - - n_i->m_residual = n_i->m_b; - - matrix_iterator Abegin = n_i->Abegin(); - matrix_iterator Aend = n_i->Aend(); - for (matrix_iterator A = Abegin; A != Aend;++A) - { - unsigned int j = A->first; - matrix3x3_type & A_ij = A->second; - vector3_type & v_j = n_j->m_velocity; - - n_i->m_residual -= A_ij * v_j; - } - n_i->m_prev = n_i->m_residual; - } - - for(unsigned int iteration = 0; iteration < max_iterations; ++iteration) - { - real_type d = 0.0; - real_type d2 = 0.0; - - //--- u = A p - //--- d = r*r - //--- d2 = p*u - - for(int n=0;nm_fixed) - continue; - - n_i->m_update.clear(); - - matrix_iterator Abegin = n_i->Abegin(); - matrix_iterator Aend = n_i->Aend(); - for (matrix_iterator A = Abegin; A != Aend;++A) - { - - unsigned int j = A->first; - matrix3x3_type & A_ij = A->second; - - n_i->m_update += A_ij * n_j->m_prev; - - } - d += n_i->m_residual * n_i->m_residual; - d2 += n_i->m_prev * n_i->m_update; - } - - if(fabs(d2) < tiny) - d2 = tiny; - - real_type d3 = d / d2; - real_type d1 = 0.0; - //--- v += p * d3 - //--- r -= u * d3 - //--- d1 = r*r - - for(int n=0;nm_fixed) - continue; - n_i->m_velocity += n_i->m_prev * d3; - n_i->m_residual -= n_i->m_update * d3; - d1 += n_i->m_residual * n_i->m_residual; - } - if(iteration >= min_iterations && d1 < tolerence) - break; - - if(fabs(d) < tiny) - d = tiny; - - real_type d4 = d1 / d; - //--- p = r + d4 * p - for(int n=0;nm_fixed) - continue; - n_i->m_prev = n_i->m_residual + n_i->m_prev * d4; - } - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_CONJUGATE_GRADIENTS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_dynamics_assembly.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_dynamics_assembly.h deleted file mode 100644 index da09007a0..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_dynamics_assembly.h +++ /dev/null @@ -1,104 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_DYNAMICS_ASSEMBLY_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_DYNAMICS_ASSEMBLY_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#define n_i (&mesh.m_nodes[n]) -#define n_j (&mesh.m_nodes[j]) - - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Setup dynamic equation. - * This is the equation of motion given as: - * - * - * A v^{i+1} = b - * - * - * where - * - - * A = M + \delta t C + \delta t^2 K - * b = M v^i - \delta t (K x^i + f_0 + f_plas - f_ext) - * - * In this implementation, the following holds: - * - * M is a diagonal matrix with diagonal elements given by m_mass. - * C is a diagonal matrix given by massCoef*M, which is Raleigh damping with stiffness coefficient zero. - * - * Also plastic forces, f_plas, is ignored. - * - * @param dt The time step, \delta t, which is about to be taken. - * @param mass_damping Coefficient for mass damping in the Raleigh damping equation. - * The coefficient \alpha in C = \alpha M + \beta K. In this implementation \beta = 0. - * - * - * - * - */ - template < typename fem_mesh, typename real_type > - inline void dynamics_assembly( - fem_mesh & mesh, - real_type const & mass_damping, - real_type const & dt - ) - { - typedef typename fem_mesh::vector3_type vector3_type; - typedef typename fem_mesh::matrix3x3_type matrix3x3_type; - typedef typename fem_mesh::node_type::matrix_iterator matrix_iterator; - - for (int n = 0;nidx(); - vector3_type & b_i = n_i->m_b; - real_type & m_i = n_i->m_mass; - - b_i.clear(); - - matrix_iterator Kbegin = n_i->Kbegin(); - matrix_iterator Kend = n_i->Kend(); - for (matrix_iterator K = Kbegin; K != Kend;++K) - { - unsigned int j = K->first; - matrix3x3_type & K_ij = K->second; - vector3_type & x_j = n_j->m_coord; - matrix3x3_type & A_ij = n_i->A(j); - - A_ij = K_ij * (dt*dt); - b_i -= K_ij * x_j; - if (i == j) - { - real_type c_i = mass_damping*m_i; - real_type tmp = m_i + dt*c_i; - A_ij(0,0) += tmp; A_ij(1,1) += tmp; A_ij(2,2) += tmp; - } - } - b_i -= n_i->m_f0; - b_i += n_i->m_f_external; - b_i *= dt; - b_i += n_i->m_velocity * m_i; - } - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_DYNAMICS_ASSEMBLY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_init.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_init.h deleted file mode 100644 index 1d984e1d3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_init.h +++ /dev/null @@ -1,84 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_INIT_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_INIT_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace OpenTissue -{ - namespace fem - { - /** - * Initialize Data Structres. - * Should be invoked at start-up before any calls to animate_warping. - * - * This function assumes that mesh geometry have been set up prior - * to invokation (i.e. both world coord and orignial coord are initlized - * and the same). - * - * This method initialized the model with the same material parameters. End - * user could write his or her own initilization method replacing - * the steps where young modules, poisson ratio and densities are - * assigned to the model. - * - * @param mesh - * @param young Young Moduls, a value of 500000 seems work quite well. - * @param poisson Poisson ration, a value of 0.33 seems work quite well. - * @param density Mass density, a value of 1000 seems to work quite well. - * @param c_yield Plastic yield. - * @param c_creep Plastic creep. - * @param c_max Plastic max. - */ - template < typename fem_mesh,typename real_type > - inline void init( - fem_mesh & mesh, - real_type const & young, - real_type const & poisson, - real_type const & density, - real_type const & c_yield, - real_type const & c_creep, - real_type const & c_max - ) - { - assert(poisson>=0 || !"uniform_poisson() : Poisson ratio must be non-negative"); - assert(poisson<=0.5 || !"uniform_poisson() : Poisson ratio must not be larger than a half"); - assert(density>0 || !"uniform_density(): density must be positive"); - - //--- Assign material parameters - for (int t=0;t - -#include -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Initialize plasticity material parameters. - * - * Note: Initialize_stiffness_elements must have been invoked prior - * to calling this function. - * - * @param begin Iterator to first tetrahedron. - * @param end Iterator to one past last tetrahedron. - * @param c_yield Plastic yield. - * @param c_creep Plastic creep. - * @param c_max Plastic max. - */ - template < typename tetrahedron_type,typename real_type > - inline void initialize_plastic_single( - tetrahedron_type* T - , real_type const & c_yield - , real_type const & c_creep - , real_type const & c_max - ) - { - assert(c_yield>=0 || !"initialize_plastic(): yield must be non-negative"); - assert(c_creep>=0 || !"initialize_plastic(): creep must be non-negative"); - assert(c_max>=0 || !"initialize_plastic(): max must be non-negative"); - - T->m_yield = c_yield; - T->m_creep = c_creep; - T->m_max = c_max; - for(int i=0;i<6;++i) - T->m_plastic[i] = 0; - - compute_B(T->m_e10, T->m_e20, T->m_e30, T->m_V, T->m_B); - compute_isotropic_elasticity_vector (T->m_young, T->m_poisson, T->m_D); - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_INITIALIZE_PLASTIC_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_initialize_stiffness_elements.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_initialize_stiffness_elements.h deleted file mode 100644 index c3507c62b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_initialize_stiffness_elements.h +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_INITIALIZE_STIFFNESS_ELEMENTS_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_INITIALIZE_STIFFNESS_ELEMENTS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * - * - * NOTE: Material parameters (young modulus and poisson ratio) must have - * been set prior to invoking this function. - * - * @param begin - * @param end - */ - template < typename tetrahedron_type > - inline void initialize_stiffness_elements_single(tetrahedron_type* T) - { - { - T->m_e10 = T->j()->m_model_coord - T->i()->m_model_coord; - T->m_e20 = T->k()->m_model_coord - T->i()->m_model_coord; - T->m_e30 = T->m()->m_model_coord - T->i()->m_model_coord; - - T->m_V = compute_volume(T->m_e10, T->m_e20, T->m_e30); - - //T->m_V = compute_volume( - // T->i()->m_model_coord, - // T->j()->m_model_coord, - // T->k()->m_model_coord, - // T->m()->m_model_coord - // ); - - assert(T->m_V>0 || !"initialize_stiffness_elements(): Element with negative volume is encountered! Maybe you got a bad mesh?"); - - T->m_Re = math::diag(1.0); - - //compute_Ke(T->m_B, T->m_D, T->m_V, T->m_Ke); - compute_Ke( - T->node(0)->m_model_coord, - T->node(1)->m_model_coord, - T->node(2)->m_model_coord, - T->node(3)->m_model_coord, - T->m_young, T->m_poisson, - T->m_Ke - ); - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_INITIALIZE_STIFFNESS_ELEMENTS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_mesh.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_mesh.h deleted file mode 100644 index 5025f6533..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_mesh.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include - -namespace OpenTissue -{ - namespace fem - { - - template - class Mesh - : public OpenTissue::t4mesh::T4Mesh< - math_types - , OpenTissue::fem::detail::NodeTraits - , OpenTissue::fem::detail::TetrahedronTraits - > - { - public: - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - }; - - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_MESH_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_node_traits.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_node_traits.h deleted file mode 100644 index 3129e5c63..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_node_traits.h +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_NODE_TRAITS_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_NODE_TRAITS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - template - class NodeTraits - { - public: - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - typedef typename std::map matrix_container; - typedef typename matrix_container::iterator matrix_iterator; - - public: - - NodeTraits(int i,int j) - { - } - matrix_container m_K_row; ///< Currently stored in a map container, key correspond to column and mapped value to 3-by-3 sub block. - matrix_container m_A_row; - vector3_type m_f0; - vector3_type m_b; - - bool m_fixed; ///< If the node is in-moveable this flag is set to true otherwise it is false. - - vector3_type m_model_coord; - vector3_type m_coord; ///< World coord - - vector3_type m_velocity; - real_type m_mass; - vector3_type m_f_external; - - // Needed by the ConjugateGradient method - vector3_type m_update; - vector3_type m_prev; - vector3_type m_residual; - - public: - - matrix_iterator Kbegin() - { - return m_K_row.begin(); - } - matrix_iterator Kend() { return m_K_row.end(); } - matrix_iterator Abegin() { return m_A_row.begin(); } - matrix_iterator Aend() { return m_A_row.end(); } - - matrix3x3_type & K(int const & column_idx) { - return m_K_row[column_idx]; - } - matrix3x3_type & A(int const & column_idx) { return m_A_row[column_idx]; } - - public: - - NodeTraits() - : m_fixed(false) - { - } - - }; - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_NODE_TRAITS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_position_update.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_position_update.h deleted file mode 100644 index 7765886d6..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_position_update.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_POSITION_UPDATE_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_POSITION_UPDATE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Position Update. - * - * Note: Velocities must have been computed prior to invoking this function. - * @param mesh - * @param dt - */ - template < typename fem_mesh, typename real_type > - inline void position_update(fem_mesh & mesh, real_type const & dt) - { - for (int n=0;n - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * - */ - template - inline void reset_orientation_single(tetrahedron_type* T) - { - T->m_Re = math::diag(1.0); - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_RESET_ORIENTATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_simulate.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_simulate.h deleted file mode 100644 index 15314d366..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_simulate.h +++ /dev/null @@ -1,131 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_SIMULATE_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_SIMULATE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -namespace OpenTissue -{ - namespace fem - { - /** - * Simulate. - * Note external forces must have been computed prior to invocation. - * - * The dynamic equation has the following form (where u=x-x_0, and x' is derivative wrt. time) - * - * M x'' + Cx' + K (x-x_0) = f_ext - * - * This can be transformed to a system of 2x3n equations of first order derivative: - * - * x' = v - * M v' = - C v - K (x-x_0) + f_ext - * - * The semi-implicit Euler scheme approximates the above with: - * - * x^(i+1) = x^i + \delta t * v^(i+1) - * M v^(i+1) = M v^i + \delta t ( - C v^(i+1) - K ( x^i - x_0 ) + f^i_ext - * - * This is solved using implicit integration. - * - * @param mesh - * @param time_step - * @param use_stiffness_warping - */ - template < typename fem_mesh, typename real_type > - inline void simulate( - fem_mesh & mesh - , real_type const & time_step - , bool use_stiffness_warping, - real_type mass_damping = 2.0, - unsigned int min_iterations=20, - unsigned int max_iterations=20 - ) - { - // Some theory: - // - // - // Implicit discretization of - // - // M d^2x/dt^2 + C dx/dt + K (x-x0) = f_ext - // - // Evaluate at (i+1), and use d^2x/dt^2 = (v^{i+1} - v^i)/timestep and dx/dt = v^{i+1} - // - // M (v^{i+1} - v^i)/timestep + C v^{i+1} + K (x^{i+1}-x0) = f_ext - // - // and x^{i+1} = x^i + v^{i+1}*timestep - // - // M (v^{i+1} - v^i)/timestep + C v^{i+1} + K ( (x^i + v^{i+1}*timestep) -x0) = f_ext - // - // M (v^{i+1} - v^i)/timestep + C v^{i+1} + K*x^i + timestep*K*v^{i+1} - K x0 = f_ext - // - // M v^{i+1} - M v^i + timestep*C v^{i+1} + timestep*timestep*K*v^{i+1} = timestep * (f_ext - K*x^i + K x0) - // - // (M + timestep*C + timestep*timestep*K) v^{i+1} = M v^i + timestep * (f_ext - K*x^i + K x0) - // - // let f0 = -K x0 - // - // (M + timestep*C + timestep*timestep*K) v^{i+1} = M v^i + timestep * (f_ext - K*x^i -f0) - // - // (M + timestep*C + timestep*timestep*K) v^{i+1} = M v^i - timestep * (K*x^i + f0 - f_ext) - // - // so we need to solve A v^{i+1} = b for v^{i+1}, where - // - // A = (M + timestep*C + timestep*timestep*K) - // b = M v^i - timestep * (K*x^i + f0 - f_ext) - // - // afterwards we do a position update - // - // x^{i+1} = x^i + v^{i+1}*timestep - // - // Notice that a fully implicit scheme requres K^{i+1}, however for linear elastic materials K is constant. - - for (int n=0;n - -#define p_i (&T->m_owner->m_nodes[T->m_nodes[i]]) -#define p_j (&T->m_owner->m_nodes[T->m_nodes[j]]) - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Stiffness Matrix Assembly. - * Observe that prior to invocations of this method the rotations of all tetrahedra - * must have been setted. Also all stiffness assembly data should have been cleared - * prior to invocations by using the clear_stiffness_assembly method. - * - * - * From linear elastostatics we have - * - * K u = f - * - * where u is vertex displacements and f is the resulting nodal forces and K is the stiffness matrix. - * Using u = x - x0, where x is current position and x0 original position we have - * - * K (x - x0) = f - * K x - K x0 = f - * - * Introducing f0 = - K x0 as the force offset vectors we have - * - * f = K x + f0 - * - * The idea of stiffness warping is to rotate the x-position back into the - * original coordinate system in which K were original computed, then compute - * nodal forces in this frame and finally rotate teh nodal forces back to - * the current frame. - * - * Let R denote the current orientation, then R^{-1} rotates back to the - * orignal frame which means we have - * - * f = R K ( R^{-1} x - x0 ) - * f = R K R^{-1} x - R K x0 - * - * So with stiffness warping we have to compute - * - * K' = R K R^{-1} - * f0' = - R K x0 - * - * For n nodes the system stiffness matrix K' is a 3n X 3n symmetric and sparse matrix. - * It would be insane to actual allocated such a matrix instead the matrix is - * stored inside the nodes of the volume mesh. - * - * Each node stores a row of K' and the correspond entries of the f0' vector. - * - * That is the i'th node stores all non-zero 3-by-3 sub-block of the i'th row - * of the stiffness matrix and it also stores the i'th 3-dimensional subvector of f0 - * - * K' f0' - * j - * - . - - - - * | . | | | - * | . | | | - * i-> |......X....| |x| - * | . | | | - * | . | | | - * - . - - - - * - * - * Let M denote the set of all tetrahedral elements then the assembly - * of the warped stiffness matrix can be written as - * - * K'_ij = sum Re Ke_ij Re^T - * e \in M - * and - * i, j \in e - * - * And the assembly of the force offset vector - * - * f0'_i = sum - Re Ke_ij x0_j - * e \in M - * and - * i, j \in e - * - * - * Notice that this can be optimized if node i as a meber of the e'th element - * then the contribution to the above summation can be written as (recal - * the indices j,k and m denote the three ofther nodes of e): - * - * -Re Ke_ii x0_i - Re Ke_ij x0_j -Re Ke_im x0_m - Re Ke_ik x0_k - * -Re ( Ke_ii x0_i + Ke_ij x0_j + Ke_im x0_m + Ke_ik x0_k) - * - * which saves us a few matrix multiplications and we then finally have - * - * f0'_i = sum -Re ( Ke_ii x0_i + Ke_ij x0_j + Ke_im x0_m + Ke_ik x0_k) - * e \in M - * and - * i \in e - * - * Assuming that f0'_i is initially cleared to zero for all i. This result in the - * implementation strategy: - * - * for each element e do - * for each node i of e do - * tmp = 0 - * for each node j of e do - * tmp += Ke_ij * xo_j - * next j - * f0'_i -= Re*tmp - * next i - * next e - * - * Also the stiffness matrix can be optimized slightly by exploiting the symmetry property. - * The symmetry indicates that it is sufficient to only compute the upper triangular and - * diagonal parts. The lower triangular parts can be found simply be taking the transpose - * of the upper triangular parts. - * - * So the e'th tetrahedral element contributes with - * - * K'_ij += Re Ke_ij Re^{T} - * K'_ji += Re Ke_ji Re^{T} = ( Re Ke_ij Re^{T} )^T - * - * because Ke_ji = Ke_ij^T. Assuming that all K'_ij is initially cleared to zero this results - * in the implementation strategy: - * - * for each element e do - * for each node i of e do - * for each node j of e do - * if i >= j then - * tmp = Re Ke_ij Re^{T} - * K'_ij += tmp - * if j > i then - * K'_ji += trans(tmp) - * end if - * end if - * next j - * next i - * next e - * - * The two implementation strategies can now be combined into one, which - * is what we have implemented below. - * - * Note that if Re is initially set to the identity matrix, then the stiffness - * warping reduces to the traditional assembly of stiffness matrix (as it is - * used in linear elastostatics). - * - * - * If the i'th node is set to be fixed, this actually corresponds to - * letting K'_ii = identity and letting K'_ij and K'_ji be zero for all j not - * equal to i. This is known as a Direchlet boundary condition. However, we do - * not this during our assembly. Instead we assemble the K' matrix as though - * there were no fixed nodes. Later on when we use the K' matrix in computations - * such as K' x, we simply test whether x_j is fixed when it is multilpied by - * the j'th column of K' i.e. K'_*j. If so we simply do nothing!!! This is - * computatonally more tracjktable and it also allow us to more easily turn - * nodes fixed and un-fixed dynamically during animation. - * - * - * - * - * - * @param begin - * @param end - * - */ - template - inline void stiffness_assembly_single1(tetrahedron_type* T) - { - typedef typename tetrahedron_type::real_type real_type; - typedef typename tetrahedron_type::vector3_type vector3_type; - typedef typename tetrahedron_type::matrix3x3_type matrix3x3_type; - - { - matrix3x3_type & Re = T->m_Re; - for (int i = 0; i < 4; ++i) - { - vector3_type f; - f.clear(); - for (int j = 0; j < 4; ++j) - { - matrix3x3_type & Ke_ij = T->m_Ke[i][j]; - vector3_type & x0_j = p_j->m_model_coord; - - f += Ke_ij * x0_j; - if (j >= i) - { - - matrix3x3_type tmp = Re * Ke_ij * trans(Re); - - p_i->K(p_j->idx()) += tmp; - if (j > i) - p_j->K(p_i->idx()) += trans(tmp); - } - } - - p_i->m_f0 -= Re*f; - - } - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_STIFFNESS_ASSEMBLY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_tetrahedron_traits.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_tetrahedron_traits.h deleted file mode 100644 index 72382fd13..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_tetrahedron_traits.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_DEFORMATION_FEM_STIFFNESSWARPING_H -#define OPENTISSUE_DYNAMICS_DEFORMATION_FEM_STIFFNESSWARPING_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - template - class TetrahedronTraits - { - public: - - typedef typename math_types::real_type real_type; - typedef typename math_types::vector3_type vector3_type; - typedef typename math_types::matrix3x3_type matrix3x3_type; - - public: - - real_type m_young; - real_type m_poisson; - real_type m_density; - - matrix3x3_type m_Ke[4][4]; ///< Stiffness element matrix - matrix3x3_type m_Re; ///< Rotational warp of tetrahedron. - real_type m_V; ///< Volume of tetrahedron - - vector3_type m_e10; ///< edge from p0 to p1 - vector3_type m_e20; ///< edge from p0 to p2 - vector3_type m_e30; ///< edge from p0 to p3 - - //--- Stuff used exclusive by plastic effects - - vector3_type m_B[4]; ///< placeholders for Jacobian of shapefunctions: B = SN. - vector3_type m_D; ///< Elasticity Matrix in vector from - real_type m_plastic[6]; ///< Plastic strain tensor. - real_type m_yield; - real_type m_creep; - real_type m_max; - }; - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_DEFORMATION_FEM_STIFFNESSWARPING_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_density.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_density.h deleted file mode 100644 index e648056d4..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_density.h +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_DENSITY_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_DENSITY_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - /** - * Set Uniform Density. - * - * @param begin - * @param end - * @param density - */ - template - inline void uniform_density(tetrahedron_iterator const & begin, tetrahedron_iterator const & end,real_type const & density) - { - assert(density>0 || !"uniform_density(): density must be positive"); - for (tetrahedron_iterator T = begin;T!=end;++T) - T->m_density = density; - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_DENSITY_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_poisson.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_poisson.h deleted file mode 100644 index 204d9cdd8..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_poisson.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_POISSON_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_POISSON_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * - * @param begin - * @param end - * @param poisson - */ - template - inline void uniform_poisson( - tetrahedron_iterator const & begin - , tetrahedron_iterator const & end - , real_type const & poisson - ) - { - assert(poisson>=0 || !"uniform_poisson() : Poisson ratio must be non-negative"); - assert(poisson<=0.5 || !"uniform_poisson() : Poisson ratio must not be larger than a half"); - - for (tetrahedron_iterator T = begin;T!=end;++T) - T->m_poisson = poisson; - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_POISSON_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_young.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_young.h deleted file mode 100644 index 84ff51f1c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_uniform_young.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * - * @param begin - * @param end - * @param young - */ - template - inline void uniform_young( - tetrahedron_iterator const & begin - , tetrahedron_iterator const & end - ,real_type const & young - ) - { - assert(young>=0 || !"uniform_young(): Young modulus must not be negative"); - - for (tetrahedron_iterator T = begin;T!=end;++T) - T->m_young = young; - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_UNIFORM_YOUNG_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_update_orientation.h b/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_update_orientation.h deleted file mode 100644 index 3717133ed..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/dynamics/fem/fem_update_orientation.h +++ /dev/null @@ -1,222 +0,0 @@ -#ifndef OPENTISSUE_DYNAMICS_FEM_FEM_UPDATE_ORIENTATION_H -#define OPENTISSUE_DYNAMICS_FEM_FEM_UPDATE_ORIENTATION_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace fem - { - namespace detail - { - - /** - * - */ - template - inline void update_orientation_single(tetrahedron_type* T) - { - typedef typename tetrahedron_type::real_type real_type; - typedef typename tetrahedron_type::vector3_type vector3_type; - typedef typename tetrahedron_type::matrix3x3_type matrix3x3_type; - - { - real_type div6V = 1.0 / T->m_V*6.0; - //--- The derivation in the orignal paper on stiffness warping were stated as - //--- - //--- | n1^T | - //--- N = | n2^T | : WCS -> U - //--- | n3^T | - //--- - //--- | n1'^T | - //--- N' = | n2'^T | : WCS -> D - //--- | n3'^T | - //--- - //--- From which we have - //--- - //--- R = N' N^T - //--- - //--- This is valid under the assumption that the n-vectors form a orthonormal basis. In that - //--- paper the n-vectors were determined using a heuristic approach. Besides - //--- the rotation were computed on a per vertex basis not on a per-tetrahedron - //--- bases as we have outline above. - //--- - //--- - //--- Later Muller et. al. used barycentric coordinates to find the transform. We - //--- will here go into details on this method. Let the deformed corners be q0, q1, - //--- q2, and q3 and the undeformed corners p0, p1, p2,and p3. Looking at some - //--- point p = [x y z 1]^T inside the undeformed tetrahedron this can be written - //--- - //--- | w0 | - //--- p = | p0 p1 p2 p3 | | w1 | = P w (*1) - //--- | 1 1 1 1 | | w2 | - //--- | w3 | - //--- - //--- The same point in the deformed tetrahedron has the same barycentric coordinates - //--- which mean - //--- - //--- | w0 | - //--- q = | q0 q1 q2 q3 | | w1 | = Q w (*2) - //--- | 1 1 1 1 | | w2 | - //--- | w3 | - //--- - //--- We can now use (*1) to solve for w and insert this into (*2), this yields - //--- - //--- q = Q P^{-1} p - //--- - //--- The matirx Q P^{-1} transforms p into q. Due to P and Q having their fourth rows - //--- equal to 1 it can be shown that this matrix have the block structure - //--- - //--- Q P^{-1} = | R t | (*3) - //--- | 0^T 1 | - //--- - //--- Which we recognize as a transformation matrix of homegeneous coordinates. The t vector - //--- gives the translation, the R matrix includes, scaling, shearing and rotation. - //--- - //--- We thus need to extract the rotational information from this R matrix. In their - //--- paper Mueller et. al. suggest using Polar Decompostions (cite Shoemake and Duff; Etzmuss). - //--- However, a simpler although more imprecise approach would simply be to apply a Grahram-Schimdt - //--- orthonormalization to transform R into an orthonormal matrix. This seems to work quite well - //--- in practice. We have not observed any visual difference in using polar decomposition or - //--- orthonormalization. - //--- - //--- Now for some optimizations. Since we are only interested in the R part of (*3) we can - //--- compute this more efficiently exploiting the fact that barycentric coordinates sum - //--- up to one. If we substitute w0 = 1 - w1 - w2 - w3 in (*1) and (*2) we can throw away - //--- the fourth rows since they simply state 1=1, which is trivially true. - //--- - //--- | 1-w1-w2-w3 | - //--- p = | p0 p1 p2 p3 | | w1 | - //--- | w2 | - //--- | w3 | - //--- - //--- Which is - //--- - //--- | 1 | - //--- p = | p0 (p1-p0) (p2-p0) (p3-p0) | | w1 | - //--- | w2 | - //--- | w3 | - //--- - //--- We can move the first column over on the left hand side - //--- - //--- | w1 | - //--- (p-p0) = | (p1-p0) (p2-p0) (p3-p0) | | w2 | - //--- | w3 | - //--- - //--- Introducing e10 = p1-p0, e20 = p2-p0, e30 = p3-p0, and E = [e10 e20 e30 ] we have - //--- - //--- w1 - //--- (p-p0) = E w2 (*5) - //--- w3 - //--- - //--- Similar for *(2) we have - //--- - //--- w1 - //--- (q-q0) = E' w2 (*6) - //--- w3 - //--- - //--- Where E' = [e10' e20' e3'] and e10' = q1-q0, e20' = q2-q0, e30' = q3-q0. Now - //--- inverting (*5) and insertion into (*6) yields - //--- - //--- (q-q0) = E' E^{-1} (p-p0) - //--- - //--- By comparison with (*3) we see that - //--- - //--- R = E' E^{-1} - //--- - //--- Using Cramers rule the inverse of E can be written as - //--- - //--- | (e2 x e3)^T | - //--- E^{-1} = 1/6V | (e3 x e1)^T | - //--- | (e1 x e2)^T | - //--- - //--- This can easily be confirmed by straigthforward computation - //--- - //--- | e1 \cdot (e2 x e3) e2 \cdot (e2 x e3) e3 \cdot (e2 x e3) | - //--- E^{-1} E = 1/6v | e1 \cdot (e3 x e1) e2 \cdot (e3 x e1) e3 \cdot (e3 x e1) | - //--- | e1 \cdot (e1 x e2) e2 \cdot (e1 x e2) e3 \cdot (e1 x e2) | - //--- - //--- | 6V 0 0 | - //--- = 1/6V | 0 6V 0 | = I - //--- | 0 0 6V | - //--- - //--- Using the notation - //--- - //--- n1 = e2 x e3 / 6V - //--- n2 = e3 x e1 / 6V - //--- n3 = e1 x e2 / 6V - //--- - //--- we write - //--- - //--- | n1^T | - //--- E^{-1} = | n2^T | - //--- | n3^T | - //--- - //--- And we end up with - //--- - //--- | n1^T | - //--- R = [e10' e20' e30'] | n2^T | - //--- | n3^T | - //--- - //--- Observe that E' is very in-expensive to compute and all non-primed quantities (n1, n2, n3) can - //--- be precomputed and stored on a per tetrahedron basis if there is enough memory available. Even - //--- in case where memory is not available n1, n2 and n3 are quite cheap to compute. - //--- - - real_type e1x = T->m_e10(0); - real_type e1y = T->m_e10(1); - real_type e1z = T->m_e10(2); - real_type e2x = T->m_e20(0); - real_type e2y = T->m_e20(1); - real_type e2z = T->m_e20(2); - real_type e3x = T->m_e30(0); - real_type e3y = T->m_e30(1); - real_type e3z = T->m_e30(2); - real_type n1x = (e2y * e3z - e3y * e2z) * div6V; - real_type n1y = (e3x * e2z - e2x * e3z) * div6V; - real_type n1z = (e2x * e3y - e3x * e2y) * div6V; - real_type n2x = (e1z * e3y - e1y * e3z) * div6V; - real_type n2y = (e1x * e3z - e1z * e3x) * div6V; - real_type n2z = (e1y * e3x - e1x * e3y) * div6V; - real_type n3x = (e1y * e2z - e1z * e2y) * div6V; - real_type n3y = (e1z * e2x - e1x * e2z) * div6V; - real_type n3z = (e1x * e2y - e1y * e2x) * div6V; - const vector3_type & p0 = T->m_owner->m_nodes[T->m_nodes[0]].m_coord; - const vector3_type & p1 = T->m_owner->m_nodes[T->m_nodes[1]].m_coord; - const vector3_type & p2 = T->m_owner->m_nodes[T->m_nodes[2]].m_coord; - const vector3_type & p3 = T->m_owner->m_nodes[T->m_nodes[3]].m_coord; - - e1x = p1(0) - p0(0); - e1y = p1(1) - p0(1); - e1z = p1(2) - p0(2); - e2x = p2(0) - p0(0); - e2y = p2(1) - p0(1); - e2z = p2(2) - p0(2); - e3x = p3(0) - p0(0); - e3y = p3(1) - p0(1); - e3z = p3(2) - p0(2); - T->m_Re(0,0) = e1x * n1x + e2x * n2x + e3x * n3x; T->m_Re(0,1) = e1x * n1y + e2x * n2y + e3x * n3y; T->m_Re(0,2) = e1x * n1z + e2x * n2z + e3x * n3z; - T->m_Re(1,0) = e1y * n1x + e2y * n2x + e3y * n3x; T->m_Re(1,1) = e1y * n1y + e2y * n2y + e3y * n3y; T->m_Re(1,2) = e1y * n1z + e2y * n2z + e3y * n3z; - T->m_Re(2,0) = e1z * n1x + e2z * n2x + e3z * n3x; T->m_Re(2,1) = e1z * n1y + e2z * n2y + e3z * n3y; T->m_Re(2,2) = e1z * n1z + e2z * n2z + e3z * n3z; - - T->m_Re = ortonormalize(T->m_Re); - - //matrix3x3_type M = T->m_Re,S; - //OpenTissue::PolarDecomposition3x3 decomp; - //decomp.eigen(M, T->m_Re, S);//--- Etzmuss-style - //decomp.newton(M, T->m_Re );//--- Shoemake-Duff-style - } - } - - } // namespace detail - } // namespace fem -} // namespace OpenTissue - -//OPENTISSUE_DYNAMICS_FEM_FEM_UPDATE_ORIENTATION_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_class_id.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_class_id.h deleted file mode 100644 index e3f868bee..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_class_id.h +++ /dev/null @@ -1,162 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_CLASS_ID_H -#define OPENTISSUE_UTILITY_UTILITY_CLASS_ID_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace utility - { - - /** @internal ID Generator class. - * This class encapsulates the generation of unique IDs as used by ClassID. - * - * @warning - * This class should never be used directly. - */ - class BaseIDGenerator - { - - template < class T > - friend class ClassID; - - private: - - BaseIDGenerator(); // Disable default constructor - - /** ID generation method - * - * @return - * An increasing unique ID. - */ - static size_t const generate_id() - { - static size_t id = 0; - return id++; - } - - }; - - - /** The Class ID interface. - */ - class ClassIDInterface - { - public: - - /** Destructor - */ - virtual ~ClassIDInterface(){} - - /** Query the class ID. - * - * @return - * The object's class ID - */ - virtual size_t const class_id() const = 0; - }; - - - - /** - * CRTP Implementation of the ClassIDInterface. - * - * Usage: - * To enable class IDs for a custom class, simply inherite this class giving - * itself as the template argument. - * - * Example: - * \code - * class SomeClass: - * public ClassID - * { ... }; - * \endcode - * - * @tparam T - * The deriving class - */ - template < class T > - class ClassID - : virtual public ClassIDInterface - { - public: - - /** - * Query the object ID. - * - * @return - * The object ID - */ - static size_t const id() - { - static size_t my_id = BaseIDGenerator::generate_id(); - return my_id; - } - - /** - */ - virtual size_t const class_id() const - { - return id(); - } - }; - - /** Helper class for solving ambiguousity between class IDs. - * This class enables inheritance from another class, which already have a class ID. - * - * Problem: - * \code - * class SomeBase: - * public ClassID - * { ... }; - * class SomeClass: - * public SomeBase - * , public ClassID - * { ... }; // Error: id() and class_id() will be ambiguous - * \endcode - * - * Solution: - * \code - * class SomeClass: - * public ClassIDCompositor - * { ... }; - * \endcode - * - * @tparam Base - * Some base class, which will also be inherited - * @tparam Self - * The deriving class - */ - template < class Base, class Self > - class ClassIDCompositor - : public Base - , public ClassID - { - public: - - /** - */ - static size_t const id() - { - return ClassID::id(); - } - - /** - */ - virtual size_t const class_id() const - { - return ClassID::id(); - } - }; - - } // namespace utility -} // namespace OpenTissue -// OPENTISSUE_UTILITY_UTILITY_CLASS_ID_H -#endif - diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_empty_traits.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_empty_traits.h deleted file mode 100644 index bc0c4506a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_empty_traits.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_EMPTY_TRAITS_H -#define OPENTISSUE_UTILITY_UTILITY_EMPTY_TRAITS_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// - -namespace OpenTissue -{ - namespace utility - { - /** - * Empty Traits Class. - * This is basically an empty class it usage - * is intended as a default argument for the - * many algorithms and data structures where - * the default traits is simply the ``empty'' - * traits. - * - */ - class EmptyTraits { }; - - } -} - -// OPENTISSUE_UTILITY_UTILITY_EMPTY_TRAITS_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_fps_counter.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_fps_counter.h deleted file mode 100644 index 29a8caa1b..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_fps_counter.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_FPS_COUNTER_H -#define OPENTISSUE_UTILITY_UTILITY_FPS_COUNTER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace utility - { - /* - * Frame Per Second (FPS) Counter - */ - template - class FPSCounter - { - public: - FPSCounter() - : m_fps(0) - , m_fpscnt(0) - , m_time(0.) - { - m_hrc.start(); - } - - /* - * /return the last known fps - */ - unsigned long operator()() const - { - return m_fps; - - } - - /* - * /return true if 1 sec has passed - */ - bool frame() - { - m_hrc.stop(); - m_time += m_hrc(); - m_fpscnt++; - if (m_time >= 1.) { - // m_time -= 1.; - m_time = 0.; - m_fps = m_fpscnt; - m_fpscnt = 0; - } - m_hrc.start(); - return 0 == m_fpscnt; - } - - private: - - Timer m_hrc; - unsigned long m_fps; - unsigned long m_fpscnt; - double m_time; - }; - - } //End of namespace utility - -} //End of namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_FPS_COUNTER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_environment_variable.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_environment_variable.h deleted file mode 100644 index 3159fe267..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_environment_variable.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_GET_ENVIRONMENT_VARIABLE_H -#define OPENTISSUE_UTILITY_UTILITY_GET_ENVIRONMENT_VARIABLE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -#include //--- For getenv -#include -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * Retrieve Value of Environment Variable. - * If environment variable can not be found then a std::logic_error warning is thrown. - * - * @param A string containing the name of the environment - * variable. Example: "OPENTISSUE". - * @return A string containing the value. - */ - inline std::string get_environment_variable(std::string const & name) - { - char * value = getenv( name.c_str() ); - if(value) - return std::string( value ); - throw std::logic_error("get_environment_variable(): the specified environment variable was not set"); - } - - } // namespace utility - -} // namespace OpenTissue - -//OPENTISSUE_UTILITY_UTILITY_GET_ENVIRONMENT_VARIABLE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_system_memory_info.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_system_memory_info.h deleted file mode 100644 index 41609942e..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_get_system_memory_info.h +++ /dev/null @@ -1,108 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_GET_SYSTEM_MEMORY_INFO_H -#define OPENTISSUE_UTILITY_UTILITY_GET_SYSTEM_MEMORY_INFO_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#ifdef WIN32 -# define NOMINMAX -# define WIN32_LEAN_AND_MEAN -# include -# undef WIN32_LEAN_AND_MEAN -# undef NOMINMAX -#endif - -namespace OpenTissue -{ - namespace utility - { - -#ifdef WIN32 - - double get_memory_usage() - { - typedef double real_type; - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - real_type memory_usage = statex.dwMemoryLoad; - return memory_usage; - } - - unsigned int get_total_physical_memory_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int total_physical_memory_in_bytes = statex.ullTotalPhys; - return total_physical_memory_in_bytes; - } - - unsigned int get_free_physical_memory_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int free_physical_memory_in_bytes = statex.ullAvailPhys; - return free_physical_memory_in_bytes; - } - - unsigned int get_total_page_file_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int total_page_file_in_bytes = statex.ullTotalPageFile; - return total_page_file_in_bytes; - } - - unsigned int get_free_page_file_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int free_page_file_in_bytes = statex.ullAvailPageFile; - return free_page_file_in_bytes; - } - - unsigned int get_total_virtual_memory_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int total_virtual_memory = statex.ullTotalVirtual; - return total_virtual_memory; - } - - unsigned int get_free_virtual_memory_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int free_virtual_memory_in_bytes = statex.ullAvailVirtual; - return free_virtual_memory; - } - - unsigned int get_free_extended_memory_in_bytes() - { - MEMORYSTATUSEX statex; - statex.dwLength = sizeof (statex); - GlobalMemoryStatusEx (&statex); - unsigned int free_extended_memory_in_bytes = statex.ullAvailExtendedVirtual; - return free_extended_memory_in_bytes; - } - - -#endif - - } //End of namespace utility - -} //End of namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_GET_SYSTEM_MEMORY_INFO_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_greater_ptr.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_greater_ptr.h deleted file mode 100644 index 9b7c6c405..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_greater_ptr.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H -#define OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H -// -// OpenTissue, A toolbox for physical based simulation and animation. -// Copyright (C) 2007 Department of Computer Science, University of Copenhagen -// -#include - -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * Greater Than Test. - * This is used for doing a greater than test on data - * structures containing pointers to data and not instances. - */ - template - struct greater_ptr - : public std::binary_function - { - bool operator()(const T& x, const T& y) const { return (*x)>(*y); } - }; - - } //End of namespace utility - -} //End of namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_GREATER_PTR_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_identifier.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_identifier.h deleted file mode 100644 index b1ebbc75a..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_identifier.h +++ /dev/null @@ -1,100 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_IDENTIFIER_H -#define OPENTISSUE_UTILITY_UTILITY_IDENTIFIER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * Identifier Class. - * This is an utility class that is supposed to make it easier to create - * new objects with unique identifiers. The idea is to simply inherit the - * new object class from the identifier class. - * - * At construction-time the class tries to generate a new unique - * identifier. Hereafter it is the users responsibility not to mess - * up the id-name string. However, end-users can always be sure that - * the index value provided by the identifier class is unique. - */ - class Identifier - { - protected: - - std::string m_ID; ///< An Identifier string. - size_t m_index; ///< Unique object index. - - public: - - Identifier() - { - generate_new_index(); - m_ID = "ID" + m_index; - } - - virtual ~Identifier(){} - - public: - - Identifier(Identifier const & id) - { - m_ID = id.m_ID; - m_index = id.m_index; - } - - Identifier & operator=(Identifier const & id) - { - m_ID = id.m_ID; - m_index = id.m_index; - return *this; - } - - bool operator==(Identifier const & id) const { return (m_index == id.m_index); } - - bool operator!=(Identifier const & id) const { return !(*this == id); } - - public: - - void set_id(std::string const & id) { m_ID = id; } - - std::string const & get_id() const { return m_ID; } - - size_t get_index() const {return m_index; } - - protected: - - /** - * Static Member Not Initialized in Header Trick (smnih) - * - * This way we avoid having a - * - * static size_t m_next_idx - * - * member variable which must be initialized in a - * source file. - */ - void generate_new_index() - { - static size_t next_index = 0; - m_index = next_index; - ++next_index; - } - - }; - - } // namespace utility - -} // namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_IDENTIFIER_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_less_ptr.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_less_ptr.h deleted file mode 100644 index eab2753b9..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_less_ptr.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H -#define OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H -// -// OpenTissue, A toolbox for physical based simulation and animation. -// Copyright (C) 2007 Department of Computer Science, University of Copenhagen -// -#include - -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * Less Than Test. - * This is used for doing a less than test on data - * structures containing pointers to data and not instances. - */ - template - struct less_ptr - : public std::binary_function - { - bool operator()(const T& x, const T& y) const { return (*x)<(*y); } - }; - - } //End of namespace utility - -} //End of namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_material.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_material.h deleted file mode 100644 index b1ad90852..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_material.h +++ /dev/null @@ -1,108 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_MATERIAL_H -#define OPENTISSUE_UTILITY_UTILITY_MATERIAL_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * A Material. - * This class encapsulates openGL material parameters. - */ - class Material - { - protected: - - float m_ambient[ 4 ]; ///< The ambient color rgba. - float m_diffuse[ 4 ]; ///< The diffuse color rgba. - float m_specular[ 4 ]; ///< The specular color rgba. - float m_shininess; ///< The shininess of this material 0..180. - - public: - - Material() - : m_shininess(128) - { - set_default(); - } - - void ambient( float const & red, float const & green, float const & blue, float const & alpha = 1.0f ) - { - m_ambient[ 0 ] = red; - m_ambient[ 1 ] = green; - m_ambient[ 2 ] = blue; - m_ambient[ 3 ] = alpha; - } - - void diffuse( float const & red, float const & green, float const & blue, float const & alpha = 1.0f ) - { - m_diffuse[ 0 ] = red; - m_diffuse[ 1 ] = green; - m_diffuse[ 2 ] = blue; - m_diffuse[ 3 ] = alpha; - } - - void specular( float const & red, float const & green, float const & blue, float const & alpha = 1.0f ) - { - m_specular[ 0 ] = red; - m_specular[ 1 ] = green; - m_specular[ 2 ] = blue; - m_specular[ 3 ] = alpha; - } - - void shininess( float const & value ) - { - m_shininess = value; - } - - /* - void use() - { - if ( glIsEnabled( GL_COLOR_MATERIAL ) || !glIsEnabled( GL_LIGHTING ) ) - { - glColor4f( m_diffuse[ 0 ], m_diffuse[ 1 ], m_diffuse[ 2 ], m_diffuse[ 3 ] ); - } - else - { - glMaterialfv( GL_FRONT_AND_BACK, GL_AMBIENT, m_ambient ); - glMaterialfv( GL_FRONT_AND_BACK, GL_DIFFUSE, m_diffuse ); - glMaterialfv( GL_FRONT_AND_BACK, GL_SPECULAR, m_specular ); - glMaterialfv( GL_FRONT_AND_BACK, GL_SHININESS, &m_shininess ); - } - } - */ - - void set_default() - { - m_ambient[ 0 ] = 0.1f; - m_ambient[ 1 ] = 0.1f; - m_ambient[ 2 ] = 0.0f; - m_ambient[ 3 ] = 1.0f; - m_diffuse[ 0 ] = 0.6f; - m_diffuse[ 1 ] = 0.6f; - m_diffuse[ 2 ] = 0.1f; - m_diffuse[ 3 ] = 1.0f; - m_specular[ 0 ] = 1.0f; - m_specular[ 1 ] = 1.0f; - m_specular[ 2 ] = 0.75f; - m_specular[ 3 ] = 1.0f; - m_shininess = 128; - } - - }; - - } // namespace utility - -} // namespace OpenTissue - -//OPENTISSUE_UTILITY_UTILITY_MATERIAL_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_pop_boost_filter.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_pop_boost_filter.h deleted file mode 100644 index 74df18a09..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_pop_boost_filter.h +++ /dev/null @@ -1,10 +0,0 @@ -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#if (_MSC_VER >= 1200) -# pragma warning(pop) -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_push_boost_filter.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_push_boost_filter.h deleted file mode 100644 index ba9a26e42..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_push_boost_filter.h +++ /dev/null @@ -1,23 +0,0 @@ -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#if (_MSC_VER >= 1200) -# pragma warning(push) -//# pragma warning(disable: 99) // 'identifier' : type name first seen using 'objecttype1' now seen using 'objecttype2' -//# pragma warning(disable: 100) // 'identifier' : unreferenced formal parameter -//# pragma warning(disable: 127) // conditional expression is constant -//# pragma warning(disable: 217) // 'operator' : member template functions cannot be used for copy-assignment or copy-construction -# pragma warning(disable: 265) // 'class' : class has virtual functions, but destructor is not virtual -//# pragma warning(disable: 267) // 'var' : conversion from 'size_t' to 'type', possible loss of data -//# pragma warning(disable: 347) // behavior change: 'function template' is called instead of 'function' -//# pragma warning(disable: 390) // ';' : empty controlled statement found; is this the intent? -//# pragma warning(disable: 503) // 'identifier' : decorated name length exceeded, name was truncated -//# pragma warning(disable: 511) // 'class' : copy constructor could not be generated -//# pragma warning(disable: 512) // 'class' : assignment operator could not be generated -//# pragma warning(disable: 701) // Potentially uninitialized local variable 'name' used -//# pragma warning(disable: 4355) // 'this' : used in base member initializer list -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_qhull.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_qhull.h deleted file mode 100644 index f48f343a3..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_qhull.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_QHULL_H -#define OPENTISSUE_UTILITY_UTILITY_QHULL_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - - ////////////////////////////////////////////////////////////////// - // - // This is a bit tricky, I cant just include qhull_a.h as - // QHull advices, because MVC complains about math.h which - // is included "indirectly by qhull_a.h - // - // Hopefully furture releases of QHull will allow me to - // just write: - // - // extern "C" - // { - // #include - // } - // -#if defined(__cplusplus) - extern "C" - { -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if defined(__cplusplus) - } -#endif - -//OPENTISSUE_UTILITY_UTILITY_QHULL_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_runtime_type.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_runtime_type.h deleted file mode 100644 index 7dfe41c2c..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_runtime_type.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_RUNTIME_TYPE_H -#define OPENTISSUE_UTILITY_UTILITY_RUNTIME_TYPE_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -namespace OpenTissue -{ - namespace utility - { - /** - * Runtime type. - * great for passing non-integral values as template arguments. - */ - template < typename Type > - struct RuntimeType - { - typedef Type type; - RuntimeType(){} - RuntimeType(const RuntimeType& rhs):m_value(rhs.m_value){} - RuntimeType& operator = (const type& rhs) {m_value=rhs; return *this;} - operator const type& () const {return m_value;} - protected: - type m_value; - }; - - } // namespace utility - -} // namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_RUNTIME_TYPE_H -#endif diff --git a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_timer.h b/Demos3/FiniteElementMethod/OpenTissue/utility/utility_timer.h deleted file mode 100644 index 69b07c1cc..000000000 --- a/Demos3/FiniteElementMethod/OpenTissue/utility/utility_timer.h +++ /dev/null @@ -1,102 +0,0 @@ -#ifndef OPENTISSUE_UTILITY_UTILITY_TIMER_H -#define OPENTISSUE_UTILITY_UTILITY_TIMER_H -// -// OpenTissue Template Library -// - A generic toolbox for physics-based modeling and simulation. -// Copyright (C) 2008 Department of Computer Science, University of Copenhagen. -// -// OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php -// -#include - -#ifdef WIN32 -# define NOMINMAX -# define WIN32_LEAN_AND_MEAN -# include -# undef WIN32_LEAN_AND_MEAN -# undef NOMINMAX -#else -# include -#endif - -#include - -namespace OpenTissue -{ - namespace utility - { - - /** - * High Resoultion Timer. - * Based on http://www-106.ibm.com/developerworks/library/l-rt1/ - * - * RunTime: High-performance programming techniques on Linux and Windows 2000 - * Setting up timing routines - * by - * Edward G. Bradford (egb@us.ibm.com) - * Senior Programmer, IBM - * 01 Apr 2001 - * - * Example usage (We recommand doubles): - * - * Timer timer; - * - * timer.start() - * ... - * timer.stop() - * std::cout << "It took " << timer() << " seconds to do it" << std::endl; - */ - template - class Timer - { -#ifdef WIN32 - private: - LARGE_INTEGER m_start; ///< - LARGE_INTEGER m_end; ///< - LARGE_INTEGER m_freq; ///< - bool m_first; ///< - public: - Timer():m_first(true){} - public: - void start() - { - if(m_first) - { - QueryPerformanceFrequency(&m_freq); - m_first = false; - } - QueryPerformanceCounter(&m_start); - } - void stop() - { - QueryPerformanceCounter(&m_end); - } - real_type operator()()const - { - real_type end = static_cast(m_end.QuadPart); - real_type start = static_cast(m_start.QuadPart); - real_type freq = static_cast(m_freq.QuadPart); - return (end - start)/ freq; - } -#else - private: - struct timeval m_start; ///< - struct timeval m_end; ///< - struct timezone m_tz; ///< - public: - void start() { gettimeofday(&m_start, &m_tz); } - void stop() { gettimeofday(&m_end,&m_tz); } - real_type operator()()const - { - real_type t1 = static_cast(m_start.tv_sec) + static_cast(m_start.tv_usec)/(1000*1000); - real_type t2 = static_cast(m_end.tv_sec) + static_cast(m_end.tv_usec)/(1000*1000); - return t2-t1; - } -#endif - }; - - } //End of namespace utility -} //End of namespace OpenTissue - -// OPENTISSUE_UTILITY_UTILITY_TIMER_H -#endif diff --git a/Demos3/Geometry/DistributePoints.h b/Demos3/Geometry/DistributePoints.h deleted file mode 100644 index 23213468c..000000000 --- a/Demos3/Geometry/DistributePoints.h +++ /dev/null @@ -1,308 +0,0 @@ -#ifndef DISTRIBUTE_POINTS_H -#define DISTRIBUTE_POINTS_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletCollision/CollisionShapes/btConvexPolyhedron.h" -#include "btBulletDynamicsCommon.h" - -inline btScalar randRange(btScalar minRange, btScalar maxRange) -{ - return (rand() / (btScalar(RAND_MAX) + btScalar(1.0))) * (maxRange - minRange) + minRange; -} - -void myCallback(btBroadphasePair& collisionPair, btCollisionDispatcher& dispatcher, const btDispatcherInfo& dispatchInfo) -{ - if (1) - { - btCollisionObject* colObj0 = (btCollisionObject*)collisionPair.m_pProxy0->m_clientObject; - btCollisionObject* colObj1 = (btCollisionObject*)collisionPair.m_pProxy1->m_clientObject; - btRigidBody* body0 = btRigidBody::upcast(colObj0); - btRigidBody* body1 = btRigidBody::upcast(colObj1); - if (body0 && body1) - { - btVector3 vec = body1->getWorldTransform().getOrigin()-body0->getWorldTransform().getOrigin(); - - vec.safeNormalize(); - //add a small 'random' direction to avoid getting stuck in a plane - //vec += 0.00001*btVector3(randRange(0,1),randRange(0,1),randRange(0,1)); - //magnitude: 1./vec.length1(); - btScalar l = vec.length(); - btScalar mag = 1.1/(l*l*l); - - body0->applyImpulse(-mag*vec,btVector3(0,0,0)); - body1->applyImpulse(mag*vec,btVector3(0,0,0)); - - } - - } else - { - btCollisionDispatcher::defaultNearCallback(collisionPair,dispatcher,dispatchInfo); - } -} - -class DistributePoints : public BulletDemoInterface -{ - CommonGraphicsApp* m_app; - float m_x; - float m_y; - - btDefaultCollisionConfiguration* m_collisionConfiguration; - btCollisionDispatcher* m_dispatcher; - btDiscreteDynamicsWorld* m_dynamicsWorld; - btDbvtBroadphase* m_broadphase; - btSequentialImpulseConstraintSolver* m_solver; - -public: - - DistributePoints(CommonGraphicsApp* app) - :m_app(app), - m_x(0), - m_y(0) - { - m_app->setUpAxis(1); - m_collisionConfiguration = new btDefaultCollisionConfiguration(); - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - m_broadphase = new btDbvtBroadphase(); - btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; - m_solver = sol; - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher, m_broadphase, m_solver, m_collisionConfiguration); - m_dispatcher->setNearCallback(myCallback); - - - } - virtual ~DistributePoints() - { - delete m_dynamicsWorld; - delete m_solver; - delete m_broadphase; - delete m_dispatcher; - delete m_collisionConfiguration; - } - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new DistributePoints(app); - } - - inline btScalar randRange(btScalar minRange, btScalar maxRange) - { - return (rand() / (btScalar(RAND_MAX) + btScalar(1.0))) * (maxRange - minRange) + minRange; - } - - virtual void initPhysics() - { - //create spheres, attached with point to point constraint - //use a collision callback, apply forces - - - btScalar radius = 0.01; - btSphereShape* sphere = new btSphereShape(1); - int sphereId = m_app->registerGraphicsSphereShape(radius,false); - - for (int i=0;i<256;i++) - { - - btScalar mass =1.f; - btVector3 localInertia; - sphere->calculateLocalInertia(mass,localInertia); - btRigidBody::btRigidBodyConstructionInfo ci(mass,0,sphere,localInertia); - ci.m_startWorldTransform.setIdentity(); - btVector3 center(randRange(-1,1),randRange(-1,1),randRange(-1,1)); - center.normalize(); - ci.m_startWorldTransform.setOrigin(center); - btRigidBody* body = new btRigidBody(ci); - const btVector3& pos = body->getWorldTransform().getOrigin(); - btQuaternion orn = body->getWorldTransform().getRotation(); - btVector4 color(1,0,0,1); - btVector3 scaling(radius,radius,radius); - - int instanceId = m_app->m_renderer->registerGraphicsInstance(sphereId,pos,orn,color,scaling); - body->setUserIndex(instanceId); - m_dynamicsWorld->addRigidBody(body); - btVector3 pivotInA = -body->getWorldTransform().getOrigin(); - btVector3 pivotInB(0,0,0); - // btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*body, btTypedConstraint::getFixedBody(),pivotInA,pivotInB); - // m_dynamicsWorld->addConstraint(p2p); - body->setActivationState(DISABLE_DEACTIVATION); - } - m_dynamicsWorld->setGravity(btVector3(0,0,0)); - - m_app->m_renderer->writeTransforms(); - - - } - virtual void exitPhysics() - { - - } - - - virtual void stepSimulation(float deltaTime) - { - m_dynamicsWorld->stepSimulation(1./60.,0); - for (int i=0;igetNumCollisionObjects();i++) - { - btRigidBody* body = btRigidBody::upcast(m_dynamicsWorld->getCollisionObjectArray()[i]); - if (body && body->getUserIndex()>=0) - { - btTransform pos = body->getWorldTransform(); - pos.setOrigin(pos.getOrigin().normalized()); - body->setWorldTransform(pos); - body->setAngularVelocity(btVector3(0,0,0)); - body->setLinearVelocity(btVector3(0,0,0)); - - } - } - - - - } - virtual void renderScene() - { - //sync transforms - for (int i=0;igetNumCollisionObjects();i++) - { - btRigidBody* body = btRigidBody::upcast(m_dynamicsWorld->getCollisionObjectArray()[i]); - if (body && body->getUserIndex()>=0) - { - const btVector3& pos = body->getWorldTransform().getOrigin(); - btQuaternion orn = body->getWorldTransform().getRotation(); - - m_app->m_renderer->writeSingleInstanceTransformToCPU(pos,orn,body->getUserIndex()); - } - } - - - - m_app->m_renderer->writeTransforms(); - - m_app->m_renderer->renderScene(); - - - } - virtual void physicsDebugDraw(int debugDrawFlags) - { - - int lineWidth = 1; - int pointSize = 2; - - btAlignedObjectArray m_vertices; - for (int i=0;igetNumCollisionObjects();i++) - { - btRigidBody* body = btRigidBody::upcast(m_dynamicsWorld->getCollisionObjectArray()[i]); - if (body && body->getUserIndex()>=0) - { - btTransform pos = body->getWorldTransform(); - m_vertices.push_back(pos.getOrigin()); - } - } - - btConvexHullShape* m_convexHull = new btConvexHullShape(&m_vertices[0].x(),m_vertices.size(),sizeof(btVector3)); - m_convexHull->initializePolyhedralFeatures(); - const btConvexPolyhedron* poly = m_convexHull->getConvexPolyhedron(); - - btScalar averageEdgeLength = 0.f; - btScalar numLengths=0; - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - btVector4 color0(0,0,1,1); - btVector4 color1(0,0,1,1); - btVector4 color2(0,0,1,1); - - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - - btVector3 v0 = poly->m_vertices[index0]; - btVector3 v1 = poly->m_vertices[index1]; - btVector3 v2 = poly->m_vertices[index2]; - btVector3 e0 = v1-v0; - btVector3 e1 = v2-v1; - btVector3 e2 = v0-v2; - btScalar e0Length = e0.length(); - btScalar e1Length = e1.length(); - btScalar e2Length = e2.length(); - averageEdgeLength+=e0Length; - averageEdgeLength+=e1Length; - averageEdgeLength+=e2Length; - numLengths+=3; - } - } - averageEdgeLength/=numLengths; - btScalar maxLengthDiff = 0.f; - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - btVector4 color0(0,0,1,1); - btVector4 color1(0,0,1,1); - btVector4 color2(0,0,1,1); - - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - - btVector3 v0 = poly->m_vertices[index0]; - btVector3 v1 = poly->m_vertices[index1]; - btVector3 v2 = poly->m_vertices[index2]; - btVector3 e0 = v1-v0; - btVector3 e1 = v2-v1; - btVector3 e2 = v0-v2; - btScalar e0LengthDiff = btFabs(averageEdgeLength-e0.length()); - btScalar e1LengthDiff = btFabs(averageEdgeLength-e1.length()); - btScalar e2LengthDiff = btFabs(averageEdgeLength-e2.length()); - - btSetMax(maxLengthDiff,e0LengthDiff); - btSetMax(maxLengthDiff,e1LengthDiff); - btSetMax(maxLengthDiff,e2LengthDiff); - - m_app->m_renderer->drawLine(&v0.x(), - &v1.x(), - color0,lineWidth); - m_app->m_renderer->drawLine(&v1.x(), - &v2.x(), - color1,lineWidth); - m_app->m_renderer->drawLine(&v2.x(), - &v0.x(), - color2,lineWidth); - - } - //printf("maxEdgeLength=%f\n",maxEdgeLength); - } - for (int i=0;im_vertices.size();i++) - { - btVector4 color(1,0,0,1); - - m_app->m_renderer->drawPoint(poly->m_vertices[i],color,pointSize); - - } - - delete m_convexHull; - - char msg[1024]; - btScalar targetDist = 2.0f*sqrtf(4.0f/(btScalar)m_vertices.size()); - sprintf(msg,"average Edge Length = %f, maxLengthDiff = %f",averageEdgeLength,maxLengthDiff); - b3Printf(msg); - - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - -}; -#endif //DISTRIBUTE_POINTS_H - diff --git a/Demos3/Geometry/SphereCreation.h b/Demos3/Geometry/SphereCreation.h deleted file mode 100644 index bb832cecb..000000000 --- a/Demos3/Geometry/SphereCreation.h +++ /dev/null @@ -1,345 +0,0 @@ -#ifndef SPHERE_CREATION_H -#define SPHERE_CREATION_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" -#include "BulletCollision/CollisionShapes/btConvexHullShape.h" -#include "BulletCollision/CollisionShapes/btConvexPolyhedron.h" - - -class SphereCreation : public BulletDemoInterface -{ - CommonGraphicsApp* m_app; - float m_x; - float m_y; - - btAlignedObjectArray m_vertices; - btConvexHullShape* m_convexHull; - -public: - - SphereCreation(CommonGraphicsApp* app) - :m_app(app), - m_x(0), - m_y(0) - { - m_app->setUpAxis(1); - m_app->m_renderer->writeTransforms(); - } - virtual ~SphereCreation() - { - } - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new SphereCreation(app); - } - - inline btScalar randRange(btScalar minRange, btScalar maxRange) - { - return (rand() / (btScalar(RAND_MAX) + btScalar(1.0))) * (maxRange - minRange) + minRange; - } - - virtual void initPhysics() - { - srand(0); - //create random vertices - int numVerts = 256; - for (int i=0;iinitializePolyhedralFeatures(); - - } - virtual void exitPhysics() - { - //dump vertices - - printf("indices:\n"); - const btConvexPolyhedron* poly = m_convexHull->getConvexPolyhedron(); - for (int i=0;im_vertices.size();i++) - { - printf("%f,%f,%f,%f,%f,%f,%f,%f,%f,\n",poly->m_vertices[i].x(), - poly->m_vertices[i].y(), - poly->m_vertices[i].z(), - 1.f, - poly->m_vertices[i].x(), - poly->m_vertices[i].y(), - poly->m_vertices[i].z(), - 0.5f,0.5f); - } - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - printf("%d,%d,%d,\n",index0,index1,index2); - } - } -} - void distributeVerticesOnSphere(int iterations,btScalar relaxation) - { - btScalar previousAverage=0; - - btScalar averageDist = 0; - btScalar previousAverageError = 0.0f; - btScalar maxError = -1e30f; - btScalar averageError = 0.f; - - ///bring closest the closest neighbor of each vertex closer to the 'average' neighbor distance - for (int i=0;i=0) - { - btVector3 vec = m_vertices[closestOther]-m_vertices[v]; - vec.safeNormalize(); - if (previousAverage) - { - averageError+=btFabs(errorDist); - m_vertices[v] -= vec*previousAverageError*relaxation; - m_vertices[closestOther] += vec*previousAverageError*relaxation; - m_vertices[v].normalize(); - m_vertices[closestOther].normalize(); - } - } - - } - averageDist /= btScalar(m_vertices.size()); - averageError /= btScalar(m_vertices.size()); - previousAverageError = averageError; - previousAverage = averageDist; - } - char msg[1024]; - btScalar targetDist = 2.0f*sqrtf(4.0f/(btScalar)m_vertices.size()); - sprintf(msg,"averageDist = %f, previousAverageError = %f, maxError = %f, target = %f\n",averageDist,previousAverageError,maxError,targetDist); - b3Printf(msg); - } - virtual void stepSimulation(float deltaTime) - { - m_x+=0.01f; - m_y+=0.02f; - //bringVerticesTogether(); - - } - virtual void renderScene() - { - m_app->m_renderer->renderScene(); - - } - virtual void physicsDebugDraw(int debugDrawFlags) - { - int lineWidth = 1; - int pointSize = 2; - - distributeVerticesOnSphere(12,0.2f); - - delete m_convexHull; - m_convexHull = new btConvexHullShape(&m_vertices[0].x(),m_vertices.size(),sizeof(btVector3)); - m_convexHull->initializePolyhedralFeatures(); - const btConvexPolyhedron* poly = m_convexHull->getConvexPolyhedron(); - - if (m_vertices.size() != poly->m_vertices.size()) - { - printf("Warning: m_vertices.size()=%d and poly->m_vertices.size()=%d\n", m_vertices.size(), - poly->m_vertices.size()); - return; - } else - { - for (int i=0;im_vertices[i]; - } - } - - btScalar maxEdgeLength = -1e30f; - btScalar averageEdgeLength=0.f; - btScalar numLengts = 0; - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - btVector4 color0(0,0,1,1); - btVector4 color1(0,0,1,1); - btVector4 color2(0,0,1,1); - - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - - btVector3 v0 = poly->m_vertices[index0]; - btVector3 v1 = poly->m_vertices[index1]; - btVector3 v2 = poly->m_vertices[index2]; - btVector3 e0 = v1-v0; - btVector3 e1 = v2-v1; - btVector3 e2 = v0-v2; - btScalar e0Length = e0.length(); - btScalar e1Length = e1.length(); - btScalar e2Length = e2.length(); - averageEdgeLength+= e0Length; - averageEdgeLength+= e1Length; - averageEdgeLength+= e2Length; - numLengts+=3.f; - - } - } - - averageEdgeLength/=numLengts; - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - btVector4 color0(0,0,1,1); - btVector4 color1(0,0,1,1); - btVector4 color2(0,0,1,1); - - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - - btVector3 v0 = m_vertices[index0]; - btVector3 v1 = m_vertices[index1]; - btVector3 v2 = m_vertices[index2]; - btVector3 e0 = v1-v0; - btVector3 e1 = v2-v1; - btVector3 e2 = v0-v2; - btScalar e0Length = e0.length(); - btScalar e1Length = e1.length(); - btScalar e2Length = e2.length(); - btScalar scaling = -0.01;//-0.01f;//0;//-0.02f; - if (e0Length>maxEdgeLength) - maxEdgeLength = e0Length; - { - btScalar errorLength = averageEdgeLength-e0Length; - m_vertices[index0] += e0.normalized()*errorLength*scaling; - m_vertices[index1] -= e0.normalized()*errorLength*scaling; - m_vertices[index0].normalize(); - m_vertices[index1].normalize(); - color0.setValue(1,0,0,1); - //shift vertices - - } - if (e1Length>maxEdgeLength) - maxEdgeLength = e1Length; - - { - btScalar errorLength = averageEdgeLength-e1Length; - m_vertices[index1] += e1.normalized()*errorLength*scaling; - m_vertices[index2] -= e1.normalized()*errorLength*scaling; - m_vertices[index1].normalize(); - m_vertices[index2].normalize(); - - color1.setValue(1,0,0,1); - - } - if (e2Length>maxEdgeLength) - maxEdgeLength = e2Length; - { - btScalar errorLength = averageEdgeLength-e2Length; - m_vertices[index2] += e2.normalized()*errorLength*scaling; - m_vertices[index0] -= e2.normalized()*errorLength*scaling; - color2.setValue(1,0,0,1); - - m_vertices[index2].normalize(); - m_vertices[index0].normalize(); - } - } - } - - for (int p=0;pm_faces.size();p++) - { - for (int f=2;fm_faces[p].m_indices.size();f++) - { - btVector4 color0(0,0,1,1); - btVector4 color1(0,0,1,1); - btVector4 color2(0,0,1,1); - - int index0=poly->m_faces[p].m_indices[f-2]; - int index1=poly->m_faces[p].m_indices[f-1]; - int index2=poly->m_faces[p].m_indices[f]; - - btVector3 v0 = m_vertices[index0]; - btVector3 v1 = m_vertices[index1]; - btVector3 v2 = m_vertices[index2]; - m_app->m_renderer->drawLine(&v0.x(), - &v1.x(), - color0,lineWidth); - m_app->m_renderer->drawLine(&v1.x(), - &v2.x(), - color1,lineWidth); - m_app->m_renderer->drawLine(&v2.x(), - &v0.x(), - color2,lineWidth); - - } - //printf("maxEdgeLength=%f\n",maxEdgeLength); - } - for (int i=0;im_renderer->drawPoint(m_vertices[i],color,pointSize); - - } - - - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - -}; -#endif //SPHERE_CREATION_H - diff --git a/Demos3/GpuDemos/CMakeLists.txt b/Demos3/GpuDemos/CMakeLists.txt deleted file mode 100644 index 3dd1ec183..000000000 --- a/Demos3/GpuDemos/CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ - -ADD_DEFINITIONS(-DB3_USE_CLEW) - -INCLUDE_DIRECTORIES( - .. - ${BULLET_PHYSICS_SOURCE_DIR}/src - ${BULLET_PHYSICS_SOURCE_DIR}/btgui -) - - -SET(App_Bullet3_OpenCL_Demos_SRCS - ../../src/clew/clew.c - GpuDemo.cpp - main_opengl3core.cpp - ParticleDemo.cpp - broadphase/PairBench.cpp - constraints/ConstraintsDemo.cpp - raytrace/RaytracedShadowDemo.cpp - rigidbody/Bullet2FileDemo.cpp - rigidbody/BulletDataExtractor.cpp - rigidbody/ConcaveScene.cpp - rigidbody/GpuCompoundScene.cpp - rigidbody/GpuConvexScene.cpp - rigidbody/GpuRigidBodyDemo.cpp - rigidbody/GpuSphereScene.cpp - shadows/ShadowMapDemo.cpp - softbody/GpuSoftBodyDemo.cpp - ../Wavefront/tiny_obj_loader.cpp - ../../btgui/stb_image/stb_image.cpp - ../../btgui/Bullet3AppSupport/b3Quickprof.cpp - ../../btgui/Bullet3AppSupport/b3Clock.cpp - ../../btgui/Bullet3AppSupport/gwenUserInterface.cpp - ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc -) - -LINK_LIBRARIES( - Bullet2FileLoader Bullet3OpenCL_clew Bullet3Dynamics Bullet3Collision Bullet3Geometry Bullet3Common OpenGLWindow gwen ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} -) - - -IF (WIN32) - SET(App_Bullet3_OpenCL_Demos_SRCS ${App_Bullet3_OpenCL_Demos_SRCS} ${App_Bullet3_OpenCL_Demos_Common_SRCS} ../../btgui/OpenGLWindow/GlewWindows/glew.c) - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/btgui/OpenGLWindow/GlewWindows - ) - ADD_DEFINITIONS(-DGLEW_STATIC) -ELSE(WIN32) - IF(APPLE) - find_library(COCOA NAMES Cocoa) - MESSAGE(${COCOA}) - link_libraries(${COCOA}) - ELSE(APPLE) - SET(App_Bullet3_OpenCL_Demos_SRCS ${App_Bullet3_OpenCL_Demos_SRCS} ${App_Bullet3_OpenCL_Demos_Common_SRCS} ../../btgui/OpenGLWindow/GlewWindows/glew.c) - - INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/btgui/OpenGLWindow/GlewWindows - ) - ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") - ADD_DEFINITIONS("-DGLEW_STATIC") - ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") - - LINK_LIBRARIES( X11 pthread dl) - ENDIF(APPLE) -ENDIF(WIN32) - - -ADD_EXECUTABLE(App_Bullet3_OpenCL_Demos - ${App_Bullet3_OpenCL_Demos_SRCS} -) - - -IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(App_Bullet3_OpenCL_Demos PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(App_Bullet3_OpenCL_Demos PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(App_Bullet3_OpenCL_Demos PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") -ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/Demos3/GpuDemos/GpuDemo.cpp b/Demos3/GpuDemos/GpuDemo.cpp deleted file mode 100644 index e931f699e..000000000 --- a/Demos3/GpuDemos/GpuDemo.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include "GpuDemo.h" -#include "GpuDemoInternalData.h" -#include "Bullet3Common/b3Scalar.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/OpenGLInclude.h" -bool gAllowCpuOpenCL = false; -#include "stb_image/stb_image.h" -GpuDemo::GpuDemo() -:m_clData(0) -{ - m_clData = new GpuDemoInternalData(); -} - -GpuDemo::~GpuDemo() -{ - if (m_clData) - { - b3Assert(m_clData->m_clInitialized==false); - - delete m_clData; - } -} - -void GpuDemo::exitCL() -{ - if (m_clData->m_clInitialized) - { - clReleaseCommandQueue(m_clData->m_clQueue); - clReleaseContext(m_clData->m_clContext); - m_clData->m_clInitialized = false; - } - -} - - - -void GpuDemo::initCL(int preferredDeviceIndex, int preferredPlatformIndex) -{ - void* glCtx=0; - void* glDC = 0; - - - - int ciErrNum = 0; - - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; - if (gAllowCpuOpenCL) - deviceType = CL_DEVICE_TYPE_ALL; - - - - // if (useInterop) - // { - // m_data->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - // } else - { - m_clData->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, 0,0,preferredDeviceIndex, preferredPlatformIndex,&m_clData->m_platformId); - } - - - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - int numDev = b3OpenCLUtils::getNumDevices(m_clData->m_clContext); - - if (numDev>0) - { - m_clData->m_clDevice= b3OpenCLUtils::getDevice(m_clData->m_clContext,0); - m_clData->m_clQueue = clCreateCommandQueue(m_clData->m_clContext, m_clData->m_clDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - - b3OpenCLDeviceInfo info; - b3OpenCLUtils::getDeviceInfo(m_clData->m_clDevice,&info); - m_clData->m_clDeviceName = info.m_deviceName; - m_clData->m_clInitialized = true; - - } - -} - -GpuDemoInternalData* GpuDemo::getInternalData() -{ - return m_clData; -} - -int GpuDemo::registerGraphicsSphereShape(const ConstructionInfo& ci, float radius, bool usePointSprites, int largeSphereThreshold, int mediumSphereThreshold) -{ - - int strideInBytes = 9*sizeof(float); - - int graphicsShapeIndex = -1; - - if (radius>=largeSphereThreshold) - { - int numVertices = sizeof(detailed_sphere_vertices)/strideInBytes; - int numIndices = sizeof(detailed_sphere_indices)/sizeof(int); - graphicsShapeIndex = ci.m_instancingRenderer->registerShape(&detailed_sphere_vertices[0],numVertices,detailed_sphere_indices,numIndices); - } else - { - - if (usePointSprites) - { - int numVertices = sizeof(point_sphere_vertices)/strideInBytes; - int numIndices = sizeof(point_sphere_indices)/sizeof(int); - graphicsShapeIndex = ci.m_instancingRenderer->registerShape(&point_sphere_vertices[0],numVertices,point_sphere_indices,numIndices,B3_GL_POINTS); - } else - { - if (radius>=mediumSphereThreshold) - { - int numVertices = sizeof(medium_sphere_vertices)/strideInBytes; - int numIndices = sizeof(medium_sphere_indices)/sizeof(int); - graphicsShapeIndex = ci.m_instancingRenderer->registerShape(&medium_sphere_vertices[0],numVertices,medium_sphere_indices,numIndices); - } else - { - int numVertices = sizeof(low_sphere_vertices)/strideInBytes; - int numIndices = sizeof(low_sphere_indices)/sizeof(int); - graphicsShapeIndex = ci.m_instancingRenderer->registerShape(&low_sphere_vertices[0],numVertices,low_sphere_indices,numIndices); - } - } - } - return graphicsShapeIndex; -} - - -unsigned char* GpuDemo::loadImage(const char* fileName, int& width, int& height, int& n) -{ - unsigned char *data = stbi_load(fileName, &width, &height, &n, 0); - return data; -} diff --git a/Demos3/GpuDemos/GpuDemo.h b/Demos3/GpuDemos/GpuDemo.h deleted file mode 100644 index 8970d639e..000000000 --- a/Demos3/GpuDemos/GpuDemo.h +++ /dev/null @@ -1,100 +0,0 @@ -#ifndef GPU_DEMO_H -#define GPU_DEMO_H -class GLInstancingRenderer; -class GLPrimitiveRenderer; - - - - -class GpuDemo -{ -protected: - - struct GpuDemoInternalData* m_clData; - - - virtual void initCL(int preferredDeviceIndex, int preferredPlatformIndex); - virtual void exitCL(); -public: - - typedef class GpuDemo* (CreateFunc)(); - - struct ConstructionInfo - { - bool useOpenCL; - int preferredOpenCLPlatformIndex; - int preferredOpenCLDeviceIndex; - int arraySizeX; - int arraySizeY; - int arraySizeZ; - bool m_useConcaveMesh; - float gapX; - float gapY; - float gapZ; - bool m_useInstancedCollisionShapes; - GLInstancingRenderer* m_instancingRenderer; - GLPrimitiveRenderer* m_primRenderer; - - class b3gWindowInterface* m_window; - class GwenUserInterface* m_gui; - - ConstructionInfo() - :useOpenCL(true), - preferredOpenCLPlatformIndex(-1), - preferredOpenCLDeviceIndex(-1), - #ifdef __APPLE__ - arraySizeX(10), - arraySizeY(10), - arraySizeZ(10), - #else - - arraySizeX(30), - arraySizeY(30), - arraySizeZ(30), -#endif - m_useConcaveMesh(false), - gapX(16.3), - gapY(6.3), - gapZ(16.3), - m_useInstancedCollisionShapes(true), - m_instancingRenderer(0), - m_window(0), - m_gui(0) - { - } - }; - - GpuDemo(); - virtual ~GpuDemo(); - - virtual const char* getName()=0; - - virtual void initPhysics(const ConstructionInfo& ci)=0; - - virtual void exitPhysics()=0; - - virtual void renderScene()=0; - - virtual void clientMoveAndDisplay()=0; - - unsigned char* loadImage(const char* fileName, int& width, int& height, int& n); - - int registerGraphicsSphereShape(const ConstructionInfo& ci, float radius, bool usePointSprites=true, int largeSphereThreshold=100, int mediumSphereThreshold=10); - - struct GpuDemoInternalData* getInternalData(); - - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } -}; - -#endif diff --git a/Demos3/GpuDemos/ParticleDemo.cpp b/Demos3/GpuDemos/ParticleDemo.cpp deleted file mode 100644 index ca14a8752..000000000 --- a/Demos3/GpuDemos/ParticleDemo.cpp +++ /dev/null @@ -1,464 +0,0 @@ -#include "ParticleDemo.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/ShapeData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" - -#define MSTRINGIFY(A) #A -static const char* particleKernelsString = -#include "ParticleKernels.cl" - -#define INTEROPKERNEL_SRC_PATH "demo/gpudemo/ParticleKernels.cl" -#include "Bullet3Common/b3Vector3.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -//#include "../../opencl/primitives/AdlPrimitives/Math/Math.h" -//#include "../../opencl/broadphase_benchmark/b3GridBroadphaseCL.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "GpuDemoInternalData.h" -#include "Bullet3Common/b3Random.h" - - -//1000000 particles -//#define NUM_PARTICLES_X 100 -//#define NUM_PARTICLES_Y 100 -//#define NUM_PARTICLES_Z 100 - -//512k particles -//#define NUM_PARTICLES_X 80 -//#define NUM_PARTICLES_Y 80 -//#define NUM_PARTICLES_Z 80 - -//256k particles -#define NUM_PARTICLES_X 60 -#define NUM_PARTICLES_Y 60 -#define NUM_PARTICLES_Z 60 - -//27k particles -//#define NUM_PARTICLES_X 30 -//#define NUM_PARTICLES_Y 30 -//#define NUM_PARTICLES_Z 30 - - - -B3_ATTRIBUTE_ALIGNED16(struct) b3SimParams -{ - B3_DECLARE_ALIGNED_ALLOCATOR(); - b3Vector3 m_gravity; - float m_worldMin[4]; - float m_worldMax[4]; - - float m_particleRad; - float m_globalDamping; - float m_boundaryDamping; - float m_collisionDamping; - - float m_spring; - float m_shear; - float m_attraction; - float m_dummy; - - - b3SimParams() - { - m_gravity.setValue(0,-.3,0.f); - m_particleRad = 0.01f; - m_globalDamping = 1.0f; - m_boundaryDamping = -0.99f; - m_collisionDamping = 0.025f;//0.02f; - m_spring = 0.5f; - m_shear = 0.1f; - m_attraction = 0.001f; - m_worldMin[0] = -1.f; - m_worldMin[1] = -2*m_particleRad; - m_worldMin[2] =-1.f; - - m_worldMax[0] = 5.f; - m_worldMax[1] = 5.f; - m_worldMax[2] = 5.f; - - } -}; - -struct ParticleInternalData -{ - - cl_kernel m_updatePositionsKernel; - cl_kernel m_updatePositionsKernel2; - - cl_kernel m_updateAabbsKernel; - - cl_kernel m_collideParticlesKernel; - - b3GpuSapBroadphase* m_broadphaseGPU; - - - cl_mem m_clPositionBuffer; - - b3AlignedObjectArray m_velocitiesCPU; - b3OpenCLArray* m_velocitiesGPU; - - b3AlignedObjectArray m_simParamCPU; - b3OpenCLArray* m_simParamGPU; - - - - ParticleInternalData() - : - m_clPositionBuffer(0), - m_velocitiesGPU(0), - m_simParamGPU(0), - m_updatePositionsKernel(0), - m_updatePositionsKernel2(0), - m_updateAabbsKernel(0), - m_collideParticlesKernel(0) - { - m_simParamCPU.resize(1); - } - - -}; - - -ParticleDemo::ParticleDemo() -:m_instancingRenderer(0) -{ - m_data = new ParticleInternalData; -} - -ParticleDemo::~ParticleDemo() -{ - exitCL(); - - delete m_data; - -} - -void ParticleDemo::exitCL() -{ - if (m_clData->m_clInitialized) - { - clReleaseKernel(m_data->m_updatePositionsKernel); - clReleaseKernel(m_data->m_updatePositionsKernel2); - clReleaseKernel(m_data->m_updateAabbsKernel); - clReleaseKernel(m_data->m_collideParticlesKernel); - } - - GpuDemo::exitCL(); -} - -void ParticleDemo::initCL(int preferredDeviceIndex, int preferredPlatformIndex) -{ - GpuDemo::initCL(preferredDeviceIndex,preferredPlatformIndex); -} - - -void ParticleDemo::setupScene(const ConstructionInfo& ci) -{ - - initCL(ci.preferredOpenCLDeviceIndex,ci.preferredOpenCLPlatformIndex); - - int numParticles = NUM_PARTICLES_X*NUM_PARTICLES_Y*NUM_PARTICLES_Z; - - - int maxObjects = NUM_PARTICLES_X*NUM_PARTICLES_Y*NUM_PARTICLES_Z+1024; - - int maxPairsSmallProxy = 32; - float radius = m_data->m_simParamCPU[0].m_particleRad; - - m_data->m_broadphaseGPU = new b3GpuSapBroadphase(m_clData->m_clContext ,m_clData->m_clDevice,m_clData->m_clQueue);//overlappingPairCache,b3Vector3(4.f, 4.f, 4.f), 128, 128, 128,maxObjects, maxObjects, maxPairsSmallProxy, 100.f, 128, - - /*m_data->m_broadphaseGPU = new b3GridBroadphaseCl(overlappingPairCache,b3Vector3(radius,radius,radius), 128, 128, 128, - maxObjects, maxObjects, maxPairsSmallProxy, 100.f, 128, - m_clData->m_clContext ,m_clData->m_clDevice,m_clData->m_clQueue); - */ - - m_data->m_velocitiesGPU = new b3OpenCLArray(m_clData->m_clContext,m_clData->m_clQueue,numParticles); - m_data->m_velocitiesCPU.resize(numParticles); - for (int i=0;im_velocitiesCPU[i].setValue(0,0,0); - } - m_data->m_velocitiesGPU->copyFromHost(m_data->m_velocitiesCPU); - - m_data->m_simParamGPU = new b3OpenCLArray(m_clData->m_clContext,m_clData->m_clQueue,1,false); - m_data->m_simParamGPU->copyFromHost(m_data->m_simParamCPU); - - cl_int pErrNum; - - cl_program prog = b3OpenCLUtils::compileCLProgramFromString(m_clData->m_clContext,m_clData->m_clDevice,particleKernelsString,0,"",INTEROPKERNEL_SRC_PATH,true); - m_data->m_updatePositionsKernel = b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext, m_clData->m_clDevice,particleKernelsString, "updatePositionsKernel" ,&pErrNum,prog); - oclCHECKERROR(pErrNum, CL_SUCCESS); - m_data->m_updatePositionsKernel2 = b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext, m_clData->m_clDevice,particleKernelsString, "integrateMotionKernel" ,&pErrNum,prog); - oclCHECKERROR(pErrNum, CL_SUCCESS); - - m_data->m_updateAabbsKernel= b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext, m_clData->m_clDevice,particleKernelsString, "updateAabbsKernel" ,&pErrNum,prog); - oclCHECKERROR(pErrNum, CL_SUCCESS); - - m_data->m_collideParticlesKernel = b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext, m_clData->m_clDevice,particleKernelsString, "collideParticlesKernel" ,&pErrNum,prog); - oclCHECKERROR(pErrNum, CL_SUCCESS); - - m_instancingRenderer = ci.m_instancingRenderer; - - int strideInBytes = 9*sizeof(float); - bool pointSprite = true; - int shapeId =-1; - - if (pointSprite) - { - int numVertices = sizeof(point_sphere_vertices)/strideInBytes; - int numIndices = sizeof(point_sphere_indices)/sizeof(int); - shapeId = m_instancingRenderer->registerShape(&point_sphere_vertices[0],numVertices,point_sphere_indices,numIndices,B3_GL_POINTS); - } else - { - int numVertices = sizeof(low_sphere_vertices)/strideInBytes; - int numIndices = sizeof(low_sphere_indices)/sizeof(int); - shapeId = m_instancingRenderer->registerShape(&low_sphere_vertices[0],numVertices,low_sphere_indices,numIndices); - } - - float position[4] = {0,0,0,0}; - float quaternion[4] = {0,0,0,1}; - - float scaling[4] = {radius,radius,radius,1}; - - int userIndex = 0; - - int totalParticles = NUM_PARTICLES_X*NUM_PARTICLES_Y*NUM_PARTICLES_Z; - - int curColor = 0; - b3Vector4 colors[4] = - { - b3MakeVector4(1,1,1,1), - b3MakeVector4(1,1,0.3,1), - b3MakeVector4(0.3,1,1,1), - b3MakeVector4(0.3,0.3,1,1), - }; - - - { - srand(1234); - float angle = b3RandRange(-B3_PI, B3_PI); - for (int ii=0;iim_simParamCPU[0].m_particleRad; - position[0] = arg*b3Cos(arg + angle); - position[1] = 3.0f + arg; - position[2] = arg*b3Sin(arg + angle); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - - - int id = m_instancingRenderer->registerGraphicsInstance(shapeId,position,quaternion,color,scaling); - - - int collidableIndex = userIndex; - b3Vector3 aabbMin,aabbMax; - b3Vector3 particleRadius=b3MakeVector3(rad,rad,rad); - - aabbMin = b3MakeVector3(position[0],position[1],position[2])-particleRadius; - aabbMax = b3MakeVector3(position[0],position[1],position[2])+particleRadius; - //m_data->m_broadphaseGPU->createProxy(aabbMin,aabbMax,collidableIndex,1,1); - userIndex++; - angle += b3RandRange(-(float)B3_PI, (float)B3_PI); - } - } - - - m_data->m_broadphaseGPU->writeAabbsToGpu(); - - //float camPos[4]={1.5,0.5,2.5,0}; - float camPos[4]={0,0.5,0,0}; - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(4); - m_instancingRenderer->writeTransforms(); - -} - -void ParticleDemo::initPhysics(const ConstructionInfo& ci) -{ - setupScene(ci); -} - -void ParticleDemo::exitPhysics() -{ -} - -void ParticleDemo::renderScene() -{ - - if (m_instancingRenderer) - { - m_instancingRenderer->renderScene(); - } - -} - - -void ParticleDemo::clientMoveAndDisplay() -{ - int numParticles = NUM_PARTICLES_X*NUM_PARTICLES_Y*NUM_PARTICLES_Z; - GLuint vbo = m_instancingRenderer->getInternalData()->m_vbo; - glBindBuffer(GL_ARRAY_BUFFER, vbo); - glFlush(); - - int posArraySize = numParticles*sizeof(float)*4; - - cl_bool blocking= CL_TRUE; - char* hostPtr= (char*)glMapBufferRange( GL_ARRAY_BUFFER,m_instancingRenderer->getMaxShapeCapacity(),posArraySize, GL_MAP_WRITE_BIT|GL_MAP_READ_BIT );//GL_READ_WRITE);//GL_WRITE_ONLY - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - glFinish(); - - - -#if 1 - - - - //do some stuff using the OpenCL buffer - - bool useCpu = false; - if (useCpu) - { - - - float* posBuffer = (float*)hostPtr; - - for (int i=0;im_clPositionBuffer) - { - m_data->m_clPositionBuffer = clCreateBuffer(m_clData->m_clContext, CL_MEM_READ_WRITE, - posArraySize, 0, &ciErrNum); - - clFinish(m_clData->m_clQueue); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - ciErrNum = clEnqueueWriteBuffer ( m_clData->m_clQueue,m_data->m_clPositionBuffer, - blocking,0,posArraySize,hostPtr,0,0,0 - ); - clFinish(m_clData->m_clQueue); - } - - - - - - - if (0) - { - b3BufferInfoCL bInfo[] = { - b3BufferInfoCL( m_data->m_velocitiesGPU->getBufferCL(), true ), - b3BufferInfoCL( m_data->m_clPositionBuffer) - }; - - b3LauncherCL launcher(m_clData->m_clQueue, m_data->m_updatePositionsKernel,"m_updatePositionsKernel" ); - - launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) ); - launcher.setConst( numParticles); - - launcher.launch1D( numParticles); - clFinish(m_clData->m_clQueue); - - } - - - if (1) - { - b3BufferInfoCL bInfo[] = { - b3BufferInfoCL( m_data->m_clPositionBuffer), - b3BufferInfoCL( m_data->m_velocitiesGPU->getBufferCL() ), - b3BufferInfoCL( m_data->m_simParamGPU->getBufferCL(),true) - }; - - b3LauncherCL launcher(m_clData->m_clQueue, m_data->m_updatePositionsKernel2 ,"m_updatePositionsKernel2"); - - launcher.setConst( numParticles); - launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) ); - float timeStep = 1.f/60.f; - launcher.setConst( timeStep); - - launcher.launch1D( numParticles); - clFinish(m_clData->m_clQueue); - - } - - if (0) - { - b3BufferInfoCL bInfo[] = { - b3BufferInfoCL( m_data->m_clPositionBuffer), - b3BufferInfoCL( m_data->m_broadphaseGPU->getAabbBufferWS()), - }; - - b3LauncherCL launcher(m_clData->m_clQueue, m_data->m_updateAabbsKernel,"m_updateAabbsKernel" ); - launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) ); - launcher.setConst( m_data->m_simParamCPU[0].m_particleRad); - launcher.setConst( numParticles); - - launcher.launch1D( numParticles); - clFinish(m_clData->m_clQueue); - } - - //broadphase - int numPairsGPU=0; - cl_mem pairsGPU = 0; - - { - //m_data->m_broadphaseGPU->calculateOverlappingPairs(64*numParticles); - pairsGPU = m_data->m_broadphaseGPU->getOverlappingPairBuffer(); - numPairsGPU = m_data->m_broadphaseGPU->getNumOverlap(); - } - - if (numPairsGPU) - { - b3BufferInfoCL bInfo[] = { - b3BufferInfoCL( m_data->m_clPositionBuffer), - b3BufferInfoCL( m_data->m_velocitiesGPU->getBufferCL() ), - b3BufferInfoCL( m_data->m_broadphaseGPU->getOverlappingPairBuffer(),true), - }; - - b3LauncherCL launcher(m_clData->m_clQueue, m_data->m_collideParticlesKernel,"m_collideParticlesKernel"); - launcher.setBuffers( bInfo, sizeof(bInfo)/sizeof(b3BufferInfoCL) ); - launcher.setConst( numPairsGPU); - launcher.launch1D( numPairsGPU); - clFinish(m_clData->m_clQueue); - - //__kernel void collideParticlesKernel( __global float4* pPos, __global float4* pVel, __global int2* pairs, const int numPairs) - } - - - if (1) - { - ciErrNum = clEnqueueReadBuffer ( m_clData->m_clQueue, - m_data->m_clPositionBuffer, - blocking, - 0, - posArraySize, - hostPtr,0,0,0); - - //clReleaseMemObject(clBuffer); - clFinish(m_clData->m_clQueue); - - - } - } - -#endif - - glUnmapBuffer( GL_ARRAY_BUFFER); - glFlush(); - - - -} diff --git a/Demos3/GpuDemos/ParticleDemo.h b/Demos3/GpuDemos/ParticleDemo.h deleted file mode 100644 index 228101c79..000000000 --- a/Demos3/GpuDemos/ParticleDemo.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef PARTICLE_DEMO_H -#define PARTICLE_DEMO_H - -#include "GpuDemo.h" -struct GLInstancingRenderer; - -class ParticleDemo : public GpuDemo -{ -public: - - - protected: - struct ParticleInternalData* m_data; - - GLInstancingRenderer* m_instancingRenderer; - - virtual void initCL(int preferredDeviceIndex, int preferredPlatformIndex); - virtual void exitCL(); - -public: - - ParticleDemo(); - - virtual ~ParticleDemo(); - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void exitPhysics(); - - virtual const char* getName() - { - return "ParticleDemo"; - } - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ParticleDemo; - return demo; - } - - - - virtual void renderScene(); - - virtual void clientMoveAndDisplay(); -}; - -#endif //PARTICLE_DEMO_H diff --git a/Demos3/GpuDemos/ParticleKernels.cl b/Demos3/GpuDemos/ParticleKernels.cl deleted file mode 100644 index c3a32d541..000000000 --- a/Demos3/GpuDemos/ParticleKernels.cl +++ /dev/null @@ -1,148 +0,0 @@ -MSTRINGIFY( - - -typedef struct -{ - float4 m_gravity; - float4 m_worldMin; - float4 m_worldMax; - - float m_particleRad; - float m_globalDamping; - float m_boundaryDamping; - float m_collisionDamping; - - float m_spring; - float m_shear; - float m_attraction; - float m_dummy; -} btSimParams; - - -__kernel void updatePositionsKernel( __global float4* linearVelocities, __global float4* positions,const int numNodes) -{ - int nodeID = get_global_id(0); - float timeStep = 0.0166666; - - float BT_GPU_ANGULAR_MOTION_THRESHOLD = (0.25f * 3.14159254); - - if( nodeID < numNodes ) - { - positions[nodeID] += linearVelocities[nodeID]*timeStep; - } -} - - - -__kernel void integrateMotionKernel( int numParticles, - __global float4* pPos, - __global float4* pVel, - __global const btSimParams* simParams, - float timeStep ) -{ - int index = get_global_id(0); - if(index >= numParticles) - { - return; - } - float4 pos = pPos[index]; - float4 vel = pVel[index]; - pos.w = 1.0f; - vel.w = 0.0f; - // apply gravity - float4 gravity = simParams[0].m_gravity; - float particleRad = simParams[0].m_particleRad; - float globalDamping = simParams[0].m_globalDamping; - float boundaryDamping = simParams[0].m_boundaryDamping; - - vel += gravity * timeStep; - vel *= globalDamping; - // integrate position - pos += vel * timeStep; - // collide with world boundaries - float4 worldMin = simParams[0].m_worldMin; - float4 worldMax = simParams[0].m_worldMax; - - /* - if(pos.x < (worldMin.x + 2*particleRad)) - { - pos.x = worldMin.x + 2*particleRad; - vel.x *= boundaryDamping; - } - if(pos.x > (worldMax.x - 2*particleRad)) - { - pos.x = worldMax.x - 2*particleRad; - vel.x *= boundaryDamping; - } - */ - if(pos.y < (worldMin.y + 2*particleRad)) - { - pos.y = worldMin.y + 2*particleRad; - vel.y *= boundaryDamping; - } - /* - if(pos.y > (worldMax.y - 2*particleRad)) - { - pos.y = worldMax.y - 2*particleRad; - vel.y *= boundaryDamping; - } - if(pos.z < (worldMin.z + 2*particleRad)) - { - pos.z = worldMin.z + 2*particleRad; - vel.z *= boundaryDamping; - } - if(pos.z > (worldMax.z - 2*particleRad)) - { - pos.z = worldMax.z - 2*particleRad; - vel.z *= boundaryDamping; - } - */ - // write back position and velocity - pPos[index] = pos; - pVel[index] = vel; -} - -typedef struct -{ - float fx; - float fy; - float fz; - int uw; -} btAABBCL; - -__kernel void collideParticlesKernel( __global float4* pPos, __global float4* pVel, __global int2* pairs, const int numPairs) -{ - int index = get_global_id(0); - if (indexm_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - - int index=0; - createStaticEnvironment(ci); - - index+=createDynamicsObjects(ci); - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); -// m_data->m_rigidBodyPipeline->setGravity(b3Vector3(4,-10,0)); - float camPos[4]={ci.arraySizeX,0.5*ci.arraySizeY*ci.gapY,ci.arraySizeZ,0}; - //float camPos[4]={1,12.5,1.5,0}; - - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(180); - - m_instancingRenderer->setCameraPitch(200);//90); - m_instancingRenderer->updateCamera(); - - char msg[1024]; - int numInstances = index; - sprintf(msg,"Num objects = %d",numInstances); - if (ci.m_gui) - ci.m_gui->setStatusBarMessage(msg,true); -} - -void GpuConstraintsDemo::destroyScene() -{ - delete m_raycaster; - m_raycaster = 0; -} - -int GpuConstraintsDemo::createDynamicsObjects(const ConstructionInfo& ci) -{ -/* int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(barrel_vertices)/strideInBytes; - int numIndices = sizeof(barrel_indices)/sizeof(int); - return createDynamicsObjects2(ci,barrel_vertices,numVertices,barrel_indices,numIndices); - */ - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - return createDynamicsObjects2(ci,cube_vertices,numVertices,cube_indices,numIndices); - -} - - - -int GpuConstraintsDemo::createDynamicsObjects2(const ConstructionInfo& ci, const float* vertices, int numVertices, const int* indices, int numIndices) -{ - int strideInBytes = 9*sizeof(float); - - int shapeId = ci.m_instancingRenderer->registerShape(&vertices[0],numVertices,indices,numIndices); - int group=1; - int mask=1; - int index=0; - - - - - - { - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - int curColor = 0; - float scaling[4] = {1,1,1,1}; - int insta = 0; - - b3ConvexUtility* utilPtr = new b3ConvexUtility(); - - { - b3AlignedObjectArray verts; - - unsigned char* vts = (unsigned char*) vertices; - for (int i=0;iinitializePolyhedralFeatures(&verts[0],verts.size(),merge); - } - } - - int colIndex=-1; - if (ci.m_useInstancedCollisionShapes) - colIndex = m_data->m_np->registerConvexHullShape(utilPtr); - - int constraintType=0; - for (int i=0;im_np->registerConvexHullShape(&vertices[0],strideInBytes,numVertices, scaling); - if (!ci.m_useInstancedCollisionShapes) - colIndex = m_data->m_np->registerConvexHullShape(utilPtr); - - float mass = 1.f; - if (j==0 || j==ci.arraySizeY-1) - { - mass=0.f; - } - //b3Vector3 position((j&1)+i*2.2,1+j*2.,(j&1)+k*2.2); - //b3Vector3 position((-ci.arraySizeX/2*ci.gapX)+i*ci.gapX,1+j*2.,(-ci.arraySizeZ/2*ci.gapZ)+k*ci.gapZ); - b3Vector3 position=b3MakeVector3(-ci.arraySizeX/2*2+1+j*2., - 10+i*ci.gapY, - (-ci.arraySizeZ/2*ci.gapZ)+k*ci.gapZ); - - b3Quaternion orn(0,0,0,1); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - bool useGpu = false; - b3TypedConstraint* c = 0; - - if (prevBody>=0) - { - switch (constraintType) - { - case 0: - { - ///enable next line to force CPU constraint solving - //c = new b3Point2PointConstraint(pid,prevBody,b3Vector3(-1.1,0,0),b3Vector3(1.1,0,0)); - float breakingThreshold=44; -// c->setBreakingImpulseThreshold(breakingThreshold); - b3Vector3 pivotInA=b3MakeVector3(-1.1,0,0); - b3Vector3 pivotInB=b3MakeVector3(1.1,0,0); - int cid = m_data->m_rigidBodyPipeline->createPoint2PointConstraint(pid,prevBody,pivotInA,pivotInB,breakingThreshold); - break; - } - case 1: - { - - b3Vector3 pivotInA=b3MakeVector3(-1.05,0,0); - b3Vector3 pivotInB=b3MakeVector3(1.05,0,0); - - b3Transform frameInA,frameInB; - frameInA.setIdentity(); - frameInB.setIdentity(); - frameInA.setOrigin(pivotInA); - frameInB.setOrigin(pivotInB); - b3Quaternion relTargetAB = frameInA.getRotation()*frameInB.getRotation().inverse(); - - //c = new b3FixedConstraint(pid,prevBody,frameInA,frameInB); - float breakingThreshold = 45;//37.f; - //c->setBreakingImpulseThreshold(37.1); - int cid = m_data->m_rigidBodyPipeline->createFixedConstraint(pid,prevBody,pivotInA,pivotInB,relTargetAB,breakingThreshold); - - - - break; - } - case 2: - { - /* - b3Transform frameInA,frameInB; - frameInA.setIdentity(); - frameInB.setIdentity(); - frameInA.setOrigin(b3Vector3(0,-1.1,0)); - frameInB.setOrigin(b3Vector3(0,1.1,0)); - - b3Generic6DofConstraint* dof6 = new b3Generic6DofConstraint(pid,prevBody,frameInA,frameInB,false,m_data->m_np->getBodiesCpu()); - for (int i=0;i<6;i++) - dof6->setLimit(i,0,0); - c=dof6; - */ - break; - } - default: - { - - b3Assert(0); - } - }; - if (c) - { - m_data->m_rigidBodyPipeline->addConstraint(c); - } - - - } - - - prevBody = pid; - - index++; - } - } - } - delete utilPtr; - } - return index; -} - - -void GpuConstraintsDemo::createStaticEnvironment(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - - - { - b3Vector4 scaling=b3MakeVector4(400,400,400,1); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,-405,0); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); - - } -} diff --git a/Demos3/GpuDemos/constraints/ConstraintsDemo.h b/Demos3/GpuDemos/constraints/ConstraintsDemo.h deleted file mode 100644 index 8a8892e84..000000000 --- a/Demos3/GpuDemos/constraints/ConstraintsDemo.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef B3_GPU_CONSTRAINTS_DEMO_H -#define B3_GPU_CONSTRAINTS_DEMO_H - -#include "../rigidbody/GpuRigidBodyDemo.h" -#include "Bullet3Common/b3AlignedObjectArray.h" - - -class GpuConstraintsDemo : public GpuRigidBodyDemo -{ -protected: - class GLPrimitiveRenderer* m_primRenderer; - - class b3GpuRaycast* m_raycaster; - -public: - - GpuConstraintsDemo() :m_primRenderer(0), m_raycaster(0) - { - } - virtual ~GpuConstraintsDemo(){} - virtual const char* getName() - { - return "GpuConstraints"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuConstraintsDemo; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void destroyScene(); - - virtual int createDynamicsObjects(const ConstructionInfo& ci); - - virtual int createDynamicsObjects2(const ConstructionInfo& ci,const float* vertices, int numVertices, const int* indices,int numIndices); - - virtual void createStaticEnvironment(const ConstructionInfo& ci); - -}; - - - -#endif //B3_GPU_CONSTRAINTS_DEMO_H diff --git a/Demos3/GpuDemos/main_opengl3core.cpp b/Demos3/GpuDemos/main_opengl3core.cpp deleted file mode 100644 index fcd620ae3..000000000 --- a/Demos3/GpuDemos/main_opengl3core.cpp +++ /dev/null @@ -1,1169 +0,0 @@ - -//#include "GpuDemo.h" - -#ifdef _WIN32 -#include //for GetLocalTime/GetSystemTime -#else -#include //gettimeofday -#endif - -#ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" -#elif defined _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" -#elif defined __linux -#include "OpenGLWindow/X11OpenGLWindow.h" -#endif - -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "GpuDemoInternalData.h" - -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GwenOpenGL3CoreRenderer.h" -//#include "b3GpuDynamicsWorld.h" -#include -#include -#include "OpenGLWindow/fontstash.h" -#include "OpenGLWindow/opengl_fontstashcallbacks.h" -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "ParticleDemo.h" -#include "broadphase/PairBench.h" -#include "rigidbody/GpuRigidBodyDemo.h" -#include "rigidbody/ConcaveScene.h" -#include "rigidbody/GpuConvexScene.h" -#include "rigidbody/GpuCompoundScene.h" -#include "rigidbody/GpuSphereScene.h" -#include "rigidbody/Bullet2FileDemo.h" -#include "softbody/GpuSoftBodyDemo.h" -#include "../btgui/Bullet3AppSupport/b3Quickprof.h" - -#include "../btgui/OpenGLWindow/GLRenderToTexture.h" -#include "raytrace/RaytracedShadowDemo.h" -//#include "shadows/ShadowMapDemo.h" -#include "constraints/ConstraintsDemo.h" - -bool exportFrame=false; -bool exportMovie = false; -int frameIndex = 0; -GLRenderToTexture* renderTexture =0; -//#include "BroadphaseBenchmark.h" - -int g_OpenGLWidth=1024; -int g_OpenGLHeight = 768; -bool dump_timings = false; -int maxFrameCount = 102; -extern char OpenSansData[]; -extern char* gPairBenchFileName; -extern int shadowMapWidth; -extern int shadowMapHeight; -extern bool gDebugLauncherCL; -extern bool gAllowCpuOpenCL; -extern bool gUseLargeBatches; - -extern bool gDebugForceLoadingFromSource; -extern bool gDebugSkipLoadingBinary; -extern bool useShadowMap; -extern float shadowMapWorldSize; -extern bool gUseJacobi; -extern bool useUniformGrid; - -extern bool gUseDbvt; -extern bool gDumpContactStats; -extern bool gCalcWorldSpaceAabbOnCpu; -extern bool gUseCalculateOverlappingPairsHost; -extern bool gIntegrateOnCpu; -extern bool gConvertConstraintOnCpu; - - -static const char* sStartFileName = "bullet3StartDemo.txt"; - -static void saveCurrentDemoEntry(int currentEntry,const char* startFileName) -{ - FILE* f = fopen(startFileName,"w"); - if (f) - { - fprintf(f,"%d\n",currentEntry); - fclose(f); - } -}; - -static int loadCurrentDemoEntry(const char* startFileName) -{ - int currentEntry= 0; - FILE* f = fopen(startFileName,"r"); - if (f) - { - int bytesScanned; - bytesScanned = fscanf(f,"%d",¤tEntry); - fclose(f); - } - return currentEntry; -}; - -static void MyResizeCallback( float width, float height) -{ - g_OpenGLWidth = width; - g_OpenGLHeight = height; -} - -b3gWindowInterface* window=0; -GwenUserInterface* gui = 0; -bool gPause = false; -bool gDrawGui = true; -bool gStep = false; -bool gReset = false; - -enum -{ - MYPAUSE=1, - MYPROFILE=2, - MYRESET, -}; - -enum -{ - MYCOMBOBOX1 = 1, -}; - -b3AlignedObjectArray demoNames; -int selectedDemo = 1; -GpuDemo::CreateFunc* allDemos[]= -{ - //ConcaveCompound2Scene::MyCreateFunc, - - - - - //ConcaveSphereScene::MyCreateFunc, - - - -// ConcaveSphereScene::MyCreateFunc, - - - ConcaveScene::MyCreateFunc, - - - GpuBoxPlaneScene::MyCreateFunc, - GpuConstraintsDemo::MyCreateFunc, - //GpuConvexPlaneScene::MyCreateFunc, - - GpuConvexScene::MyCreateFunc, - - GpuCompoundScene::MyCreateFunc, - GpuCompoundPlaneScene::MyCreateFunc, - - GpuSphereScene::MyCreateFunc, - - - - - ConcaveSphereScene::MyCreateFunc, - - ConcaveCompoundScene::MyCreateFunc, - - - - //GpuTetraScene::MyCreateFunc, - - //GpuSoftClothDemo::MyCreateFunc, - - Bullet2FileDemo::MyCreateFunc, - - - PairBench::MyCreateFunc, - - GpuRaytraceScene::MyCreateFunc, - - //ShadowMapDemo::MyCreateFunc, - - //GpuRigidBodyDemo::MyCreateFunc, - - //BroadphaseBenchmark::CreateFunc, - //GpuBoxDemo::CreateFunc, - - - - ParticleDemo::MyCreateFunc, - - - - //GpuCompoundDemo::CreateFunc, - //EmptyDemo::CreateFunc, -}; - - -void MyComboBoxCallback(int comboId, const char* item) -{ - int numDemos = demoNames.size(); - for (int i=0;imouseMoveCallback(x,y); - if (!handled) - { - if (sDemo) - handled = sDemo->mouseMoveCallback(x,y); - if (!handled) - b3DefaultMouseMoveCallback(x,y); - } - } -} -static void MyMouseButtonCallback(int button, int state, float x, float y) -{ - if (gui) - { - bool handled = gui->mouseButtonCallback(button,state,x,y); - if (!handled) - { - //try picking first - if (sDemo) - handled = sDemo->mouseButtonCallback(button,state,x,y); - - if (!handled) - b3DefaultMouseButtonCallback(button,state,x,y); - } - } -} - -extern bool useShadowMap; -static bool wireframe=false; -void MyKeyboardCallback(int key, int state) -{ - if (key=='w' && state) - { - wireframe=!wireframe; - if (wireframe) - { - glPolygonMode( GL_FRONT_AND_BACK, GL_LINE ); - } else - { - glPolygonMode( GL_FRONT_AND_BACK, GL_FILL ); - } - } - - if (key=='s' && state) - { - useShadowMap=!useShadowMap; - } - if (key=='g' && state) - { - gDrawGui = !gDrawGui; - } - - if (key==B3G_ESCAPE && window) - { - window->setRequestExit(); - } - if (key==B3G_F2) - { - if (state) - exportMovie = !exportMovie; - } - if (key==B3G_F1) - { - if (state) - exportFrame = true; - } - if (sDemo) - sDemo->keyboardCallback(key,state); - - b3DefaultKeyboardCallback(key,state); -} - - - -bool enableExperimentalCpuConcaveCollision=false; - - - - - int droidRegular=0;//, droidItalic, droidBold, droidJapanese, dejavu; - -sth_stash* stash=0; -OpenGL2RenderCallbacks* renderCallbacks = 0; - -void exitFont() -{ - sth_delete(stash); - stash=0; - - delete renderCallbacks; - renderCallbacks=0; -} -sth_stash* initFont(GLPrimitiveRenderer* primRender) -{ - GLint err; - - struct sth_stash* stash = 0; - int datasize; - - float sx,sy,dx,dy,lh; - GLuint texture; - - renderCallbacks = new OpenGL2RenderCallbacks(primRender); - - stash = sth_create(512,512,renderCallbacks);//256,256);//,1024);//512,512); - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (!stash) - { - fprintf(stderr, "Could not create stash.\n"); - return 0; - } -#ifdef LOAD_FONT_FROM_FILE - unsigned char* data=0; - const char* fontPaths[]={ - "./", - "../../bin/", - "../bin/", - "bin/" - }; - - int numPaths=sizeof(fontPaths)/sizeof(char*); - - // Load the first truetype font from memory (just because we can). - - FILE* fp = 0; - const char* fontPath ="./"; - char fullFontFileName[1024]; - - for (int i=0;i] [--benchmark] [--maxFrameCount=][--dump_timings] [--disable_opencl] [--cl_device=] [--cl_platform=] [--disable_cached_cl_kernels] [--load_cl_kernels_from_disk] [--x_dim=] [--y_dim=] [--z_dim=] [--x_gap=] [--y_gap=] [--z_gap=] [--use_concave_mesh] [--pair_benchmark_file=] [--new_batching] [--no_instanced_collision_shapes]\n"); - printf("[--disable_shadowmap] [--shadowmap_size=int] [--shadowmap_resolution=] [--use_jacobi] [--use_uniform_grid]\n"); -}; - - -void DumpSimulationTime(FILE* f) -{ - b3ProfileIterator* profileIterator = b3ProfileManager::Get_Iterator(); - - profileIterator->First(); - if (profileIterator->Is_Done()) - return; - - float accumulated_time=0,parent_time = profileIterator->Is_Root() ? b3ProfileManager::Get_Time_Since_Reset() : profileIterator->Get_Current_Parent_Total_Time(); - int i; - int frames_since_reset = b3ProfileManager::Get_Frame_Count_Since_Reset(); - - //fprintf(f,"%.3f,", parent_time ); - float totalTime = 0.f; - - - - static bool headersOnce = true; - - if (headersOnce) - { - headersOnce = false; - fprintf(f,"root,"); - - for (i = 0; !profileIterator->Is_Done(); i++,profileIterator->Next()) - { - float current_total_time = profileIterator->Get_Current_Total_Time(); - accumulated_time += current_total_time; - float fraction = parent_time > B3_EPSILON ? (current_total_time / parent_time) * 100 : 0.f; - const char* name = profileIterator->Get_Current_Name(); - fprintf(f,"%s,",name); - } - fprintf(f,"\n"); - } - - - fprintf(f,"%.3f,",parent_time); - profileIterator->First(); - for (i = 0; !profileIterator->Is_Done(); i++,profileIterator->Next()) - { - float current_total_time = profileIterator->Get_Current_Total_Time(); - accumulated_time += current_total_time; - float fraction = parent_time > B3_EPSILON ? (current_total_time / parent_time) * 100 : 0.f; - const char* name = profileIterator->Get_Current_Name(); - //if (!strcmp(name,"stepSimulation")) - { - fprintf(f,"%.3f,",current_total_time); - } - totalTime += current_total_time; - //recurse into children - } - - fprintf(f,"\n"); - - - b3ProfileManager::Release_Iterator(profileIterator); - - -} -///extern const char* g_deviceName; -const char* g_deviceName = "blaat"; -extern bool useNewBatchingKernel; -#include "Bullet3Common/b3Vector3.h" - -FILE* defaultOutput = stdout; - -void myprintf(const char* msg) -{ - fprintf(defaultOutput,"%s",msg); -} - - - - - -//#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "OpenGLWindow/stb_image_write.h" -void writeTextureToPng(int textureWidth, int textureHeight, const char* fileName) -{ - int numComponents = 4; - //glPixelStorei(GL_PACK_ALIGNMENT,1); - GLuint err=glGetError(); - assert(err==GL_NO_ERROR); - glReadBuffer(GL_BACK);//COLOR_ATTACHMENT0); - err=glGetError(); - assert(err==GL_NO_ERROR); - float* orgPixels = (float*)malloc(textureWidth*textureHeight*numComponents*4); - glReadPixels(0,0,textureWidth, textureHeight, GL_RGBA, GL_FLOAT, orgPixels); - //it is useful to have the actual float values for debugging purposes - - //convert float->char - char* pixels = (char*)malloc(textureWidth*textureHeight*numComponents); - err=glGetError(); - assert(err==GL_NO_ERROR); - - for (int j=0;jcreateWindow(wci); - window->setResizeCallback(MyResizeCallback); - window->setMouseMoveCallback(MyMouseMoveCallback); - window->setMouseButtonCallback(MyMouseButtonCallback); - window->setKeyboardCallback(MyKeyboardCallback); - - window->setWindowTitle("Bullet 3.x GPU Rigid Body http://bulletphysics.org"); - printf("-----------------------------------------------------\n"); - - - - -#ifndef __APPLE__ - glewInit(); -#endif - - gui = new GwenUserInterface(); - - printf("started GwenUserInterface"); - - - GLPrimitiveRenderer prim(g_OpenGLWidth,g_OpenGLHeight); - - stash = initFont(&prim); - - - if (gui) - { - Gwen::Renderer::Base* gwenRenderer = new GwenOpenGL3CoreRenderer(&prim,stash, g_OpenGLWidth,g_OpenGLHeight,window->getRetinaScale()); - - - gui->init(g_OpenGLWidth,g_OpenGLHeight,gwenRenderer,window->getRetinaScale()); - - printf("init fonts"); - - - gui->setToggleButtonCallback(MyButtonCallback); - - gui->registerToggleButton(MYPAUSE,"Pause"); - gui->registerToggleButton(MYPROFILE,"Profile"); - gui->registerToggleButton(MYRESET,"Reset"); - - int numItems = sizeof(allDemos)/sizeof(ParticleDemo::CreateFunc*); - demoNames.clear(); - for (int i=0;igetName()); - delete demo; - } - - gui->registerComboBox(MYCOMBOBOX1,numItems,&demoNames[0],selectedDemo); - gui->setComboBoxCallback(MyComboBoxCallback); - } - - - - do - { - bool syncOnly = false; - gReset = false; - - { - GLint err; - glEnable(GL_BLEND); - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glDisable(GL_DEPTH_TEST); - err = glGetError(); - b3Assert(err==GL_NO_ERROR); - window->startRendering(); - glClearColor(1,1,1,1); - glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT);//|GL_STENCIL_BUFFER_BIT); - glEnable(GL_DEPTH_TEST); - - sth_begin_draw(stash); - //sth_draw_text(stash, droidRegular,12.f, dx, dy-50, "How does this OpenGL True Type font look? ", &dx,width,height); - int spacing = 0;//g_OpenGLHeight; - float sx,sy,dx,dy,lh; - sx = 0; - sy = g_OpenGLHeight; - dx = sx; dy = sy; - //if (1) - const char* msg[] = {"Please wait, initializing the OpenCL demo", - "Please make sure to run the demo on a high-end discrete GPU with OpenCL support", - "The first time it can take a bit longer to compile the OpenCL kernels.", - "Check the console if it takes longer than 1 minute or if a demos has issues.", - "Please share the full commandline output when reporting issues:", - "App_Bullet3_OpenCL_Demos_* >> error.log", - - "", - "", -#ifdef _DEBUG - "Some of the demos load a large .obj file,", - "please use an optimized build of this app for faster parsing", - - "", - "", -#endif - "You can press F1 to create a single screenshot,", - "or press F2 toggle screenshot (useful to create movies)", - "", - "", - "There are various command-line options such as --benchmark", - "See http://github.com/erwincoumans/bullet3 for more information" - }; - int fontSize = 68; - - int nummsg = sizeof(msg)/sizeof(const char*); - for (int i=0;iendRendering(); - } - - - - static bool once=true; - - - //glClearColor(0.3f, 0.3f, 0.3f, 1.0f); - glClearColor(1,1,1,1); - glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); - - window->setWheelCallback(b3DefaultWheelCallback); - - - - - { - GpuDemo* demo = allDemos[selectedDemo](); - sDemo = demo; -// demo->myinit(); - bool useGpu = false; - - - //int maxObjectCapacity=128*1024; - int maxObjectCapacity=1024*1024; - maxObjectCapacity = b3Max(maxObjectCapacity,ci.arraySizeX*ci.arraySizeX*ci.arraySizeX+10); - - { - ci.m_instancingRenderer = new GLInstancingRenderer(maxObjectCapacity);//render.getInstancingRenderer(); - ci.m_window = window; - ci.m_gui = gui; - ci.m_instancingRenderer->init(); - ci.m_instancingRenderer->resize(g_OpenGLWidth,g_OpenGLHeight); - ci.m_instancingRenderer->InitShaders(); - ci.m_primRenderer = &prim; -// render.init(); - } - - { - demo->initPhysics(ci); - } - - - - - - printf("-----------------------------------------------------\n"); - - FILE* csvFile = 0; - FILE* detailsFile = 0; - - if (benchmark) - { - - char prefixFileName[1024]; - char csvFileName[1024]; - char detailsFileName[1024]; - - b3OpenCLDeviceInfo info; - b3OpenCLUtils::getDeviceInfo(demo->getInternalData()->m_clDevice,&info); - - //todo: move this time stuff into the Platform/Window class -#ifdef _WIN32 - SYSTEMTIME time; - GetLocalTime(&time); - char buf[1024]; - DWORD dwCompNameLen = 1024; - if (0 != GetComputerName(buf, &dwCompNameLen)) - { - printf("%s", buf); - } else - { - printf("unknown", buf); - } - - sprintf(prefixFileName,"%s_%s_%s_%d_%d_%d_date_%d-%d-%d_time_%d-%d-%d",info.m_deviceName,buf,demoNames[selectedDemo],ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ,time.wDay,time.wMonth,time.wYear,time.wHour,time.wMinute,time.wSecond); - -#else - timeval now; - gettimeofday(&now,0); - - struct tm* ptm; - ptm = localtime (&now.tv_sec); - char buf[1024]; -#ifdef __APPLE__ - sprintf(buf,"MacOSX"); -#else - sprintf(buf,"Unix"); -#endif - sprintf(prefixFileName,"%s_%s_%s_%d_%d_%d_date_%d-%d-%d_time_%d-%d-%d",info.m_deviceName,buf,demoNames[selectedDemo],ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ, - ptm->tm_mday, - ptm->tm_mon+1, - ptm->tm_year+1900, - ptm->tm_hour, - ptm->tm_min, - ptm->tm_sec); - -#endif - - sprintf(csvFileName,"%s.csv",prefixFileName); - sprintf(detailsFileName,"%s.txt",prefixFileName); - printf("Open csv file %s and details file %s\n", csvFileName,detailsFileName); - - //GetSystemTime(&time2); - - csvFile=fopen(csvFileName,"w"); - detailsFile = fopen(detailsFileName,"w"); - if (detailsFile) - defaultOutput = detailsFile; - - //if (f) - // fprintf(f,"%s (%dx%dx%d=%d),\n", g_deviceName,ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ,ci.arraySizeX*ci.arraySizeY*ci.arraySizeZ); - } - - - fprintf(defaultOutput,"Demo settings:\n"); - fprintf(defaultOutput," SelectedDemo=%d, demoname = %s\n", selectedDemo, demo->getName()); - fprintf(defaultOutput," x_dim=%d, y_dim=%d, z_dim=%d\n",ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ); - fprintf(defaultOutput," x_gap=%f, y_gap=%f, z_gap=%f\n",ci.gapX,ci.gapY,ci.gapZ); - fprintf(defaultOutput,"\nOpenCL settings:\n"); - fprintf(defaultOutput," Preferred cl_device index %d\n", ci.preferredOpenCLDeviceIndex); - fprintf(defaultOutput," Preferred cl_platform index%d\n", ci.preferredOpenCLPlatformIndex); - fprintf(defaultOutput,"\n"); - - if (demo->getInternalData()->m_platformId) - { - b3OpenCLUtils::printPlatformInfo( demo->getInternalData()->m_platformId); - fprintf(defaultOutput,"\n"); - b3OpenCLUtils::printDeviceInfo( demo->getInternalData()->m_clDevice); - fprintf(defaultOutput,"\n"); - } - do - { - - - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - - if (exportFrame || exportMovie) - { - - if (!renderTexture) - { - renderTexture = new GLRenderToTexture(); - GLuint renderTextureId; - glGenTextures(1, &renderTextureId); - - // "Bind" the newly created texture : all future texture functions will modify this texture - glBindTexture(GL_TEXTURE_2D, renderTextureId); - - // Give an empty image to OpenGL ( the last "0" ) - //glTexImage2D(GL_TEXTURE_2D, 0,GL_RGB, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_UNSIGNED_BYTE, 0); - //glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA32F, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_FLOAT, 0); - glTexImage2D(GL_TEXTURE_2D, 0,GL_RGBA32F, g_OpenGLWidth,g_OpenGLHeight, 0,GL_RGBA, GL_FLOAT, 0); - - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); - //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - - renderTexture->init(g_OpenGLWidth,g_OpenGLHeight,renderTextureId, RENDERTEXTURE_COLOR); - } - - bool result = renderTexture->enable(); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - b3ProfileManager::Reset(); - b3ProfileManager::Increment_Frame_Counter(); - -// render.reshape(g_OpenGLWidth,g_OpenGLHeight); - ci.m_instancingRenderer->resize(g_OpenGLWidth,g_OpenGLHeight); - prim.setScreenSize(g_OpenGLWidth,g_OpenGLHeight); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - window->startRendering(); - ci.m_instancingRenderer->updateCamera(); - err = glGetError(); - assert(err==GL_NO_ERROR); - - glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT);//|GL_STENCIL_BUFFER_BIT); - glEnable(GL_DEPTH_TEST); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (!gPause) - { - B3_PROFILE("clientMoveAndDisplay"); - - demo->clientMoveAndDisplay(); - } - else - { - - } - - { - B3_PROFILE("renderScene"); - demo->renderScene(); - } - err = glGetError(); - assert(err==GL_NO_ERROR); - - - /*if (demo->getDynamicsWorld() && demo->getDynamicsWorld()->getNumCollisionObjects()) - { - B3_PROFILE("renderPhysicsWorld"); - b3AlignedObjectArray arr = demo->getDynamicsWorld()->getCollisionObjectArray(); - b3CollisionObject** colObjArray = &arr[0]; - - render.renderPhysicsWorld(demo->getDynamicsWorld()->getNumCollisionObjects(),colObjArray, syncOnly); - syncOnly = true; - - } - */ - - - if (exportFrame || exportMovie) - { - - char fileName[1024]; - sprintf(fileName,"screenShot%d.png",frameIndex++); - writeTextureToPng(g_OpenGLWidth,g_OpenGLHeight,fileName); - exportFrame = false; - renderTexture->disable(); - } - - - { - B3_PROFILE("gui->draw"); - if (gui && gDrawGui) - gui->draw(g_OpenGLWidth,g_OpenGLHeight); - } - err = glGetError(); - assert(err==GL_NO_ERROR); - - - { - B3_PROFILE("window->endRendering"); - window->endRendering(); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - { - B3_PROFILE("glFinish"); - } - - - - if (dump_timings) - { - b3ProfileManager::dumpAll(stdout); - } - - if (csvFile) - { - static int frameCount=0; - - if (frameCount>0) - { - DumpSimulationTime(csvFile); - if (detailsFile) - { - fprintf(detailsFile,"\n==================================\nFrame %d:\n", frameCount); - b3ProfileManager::dumpAll(detailsFile); - } - } - - if (frameCount>=maxFrameCount) - window->setRequestExit(); - frameCount++; - } - - - if (gStep) - gPause=true; - - } while (!window->requestedExit() && !gReset); - - - demo->exitPhysics(); - b3ProfileManager::CleanupMemory(); - delete ci.m_instancingRenderer; - - delete demo; - sDemo = 0; - - if (detailsFile) - { - fclose(detailsFile); - detailsFile=0; - } - if (csvFile) - { - fclose(csvFile); - csvFile=0; - } - } - - - - } while (gReset); - - - if (gui) - gui->setComboBoxCallback(0); - - { - - - - delete gui; - gui=0; - - exitFont(); - - - window->closeWindow(); - delete window; - window = 0; - - } - - return 0; -} diff --git a/Demos3/GpuDemos/premake4.lua b/Demos3/GpuDemos/premake4.lua deleted file mode 100644 index 87c492cc2..000000000 --- a/Demos3/GpuDemos/premake4.lua +++ /dev/null @@ -1,111 +0,0 @@ -function createProject(vendor) - - hasCL = findOpenCL(vendor) - - if (hasCL) then - - project ("App_Bullet3_OpenCL_Demos_" .. vendor) - - initOpenCL(vendor) - - language "C++" - - kind "ConsoleApp" - targetdir "../../bin" - - - initOpenGL() - initGlew() - - includedirs { - "..", - "../../src", - "../../btgui" - } - - links { - "Bullet3AppSupport", - "gwen", - "Bullet2FileLoader", - "Bullet3OpenCL_" .. vendor, - "Bullet3Dynamics", - "Bullet3Collision", - "Bullet3Geometry", - "Bullet3Common", - - } - - files { - "**.cpp", - "**.h", - - "../Wavefront/tiny_obj_loader.cpp", - "../Wavefront/tiny_obj_loader.h", - - - "../../btgui/OpenGLWindow/GLInstancingRenderer.cpp", - "../../btgui/OpenGLWindow/GLInstancingRenderer.h", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.cpp", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.h", - "../../btgui/OpenGLWindow/LoadShader.cpp", - "../../btgui/OpenGLWindow/LoadShader.h", - "../../btgui/OpenGLWindow/TwFonts.cpp", - "../../btgui/OpenGLWindow/TwFonts.h", - "../../btgui/OpenGLWindow/GLRenderToTexture.cpp", - "../../btgui/OpenGLWindow/GLRenderToTexture.h", - "../../btgui/OpenGLWindow/fontstash.cpp", - "../../btgui/OpenGLWindow/fontstash.h", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.h", - "../../btgui/OpenGLWindow/OpenSans.cpp", - "../../btgui/stb_image/stb_image.cpp", - "../../btgui/stb_image/stb_image.h", - } - - if _OPTIONS["midi"] then - if os.is("Windows") then - files {"../../btgui/MidiTest/RtMidi.cpp"} - links {"winmm"} - defines {"__WINDOWS_MM__", "WIN32","B3_USE_MIDI"} - end - - if os.is("Linux") then - end - - if os.is("MacOSX") then - files {"../../btgui/MidiTest/RtMidi.cpp"} - links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"} - defines {"__MACOSX_CORE__","B3_USE_MIDI"} - end - end - - if os.is("Windows") then - files{ - "../../btgui/OpenGLWindow/Win32OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/Win32OpenGLWindow.h", - "../../btgui/OpenGLWindow/Win32Window.cpp", - "../../btgui/OpenGLWindow/Win32Window.h", - } - end - if os.is("Linux") then - initX11() - files { - "../../btgui/OpenGLWindow/X11OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/X11OpenGLWindows.h" - } - end - if os.is("MacOSX") then - links {"Cocoa.framework"} - files { - "../../btgui/OpenGLWindow/MacOpenGLWindow.h", - "../../btgui/OpenGLWindow/MacOpenGLWindow.mm", - } - end - end -end - -createProject("clew") -createProject("Apple") -createProject("AMD") -createProject("Intel") -createProject("NVIDIA") diff --git a/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.cpp b/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.cpp deleted file mode 100644 index 9446a1571..000000000 --- a/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.cpp +++ /dev/null @@ -1,449 +0,0 @@ - -#include "RaytracedShadowDemo.h" - - - - -#include "OpenGLWindow/ShapeData.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "../rigidbody/GpuRigidBodyDemoInternalData.h" -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "Bullet3Dynamics/ConstraintSolver/b3Point2PointConstraint.h" -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "Bullet3OpenCL/Raycast/b3GpuRaycast.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3ConvexUtility.h" - -#include "OpenGLWindow/GLRenderToTexture.h" - - - -struct GpuRaytraceInternalData -{ - GLuint* m_texId; - unsigned char* m_texels; - int textureWidth; - int textureHeight; - struct GLRenderToTexture* m_renderToTexture; - -}; -#include - -GpuRaytraceScene::GpuRaytraceScene() -{ - - m_raytraceData = new GpuRaytraceInternalData; - m_raytraceData->m_renderToTexture = 0;//new GLRenderToTexture(); - - m_raytraceData->m_texId = new GLuint; - m_raytraceData->textureWidth = 512;//1024;//1024; - m_raytraceData->textureHeight = 512;//1024; - - //create new texture - glGenTextures(1, m_raytraceData->m_texId); - GLenum err = glGetError(); - assert(err==GL_NO_ERROR); - - - - glBindTexture(GL_TEXTURE_2D, *m_raytraceData->m_texId); - m_raytraceData->m_texels = (unsigned char*)malloc(m_raytraceData->textureWidth*m_raytraceData->textureHeight*3); - memset(m_raytraceData->m_texels,0,m_raytraceData->textureWidth*m_raytraceData->textureHeight*3); - for (int i=0;itextureWidth;i++) - { - for (int y=0;ytextureHeight;y++) - { - int color = 0; - if (ytextureHeight-1 && (y>0) && (i>0 && itextureWidth-1)) - color = 255; - - m_raytraceData->m_texels[(i+m_raytraceData->textureWidth*y)*3+0] = color; - m_raytraceData->m_texels[(i+m_raytraceData->textureWidth*y)*3+1] = color; - m_raytraceData->m_texels[(i+m_raytraceData->textureWidth*y)*3+2] = color; - } - } - - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, m_raytraceData->textureWidth, m_raytraceData->textureHeight, 0, GL_RGB, GL_UNSIGNED_BYTE, m_raytraceData->m_texels); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - err = glGetError(); - assert(err==GL_NO_ERROR); - -} -GpuRaytraceScene::~GpuRaytraceScene() -{ - glDeleteTextures(1,m_raytraceData->m_texId); - delete[] m_raytraceData->m_texels; - delete m_raytraceData->m_renderToTexture; - delete m_raytraceData->m_texId; - delete m_raytraceData; -} - - - -int GpuRaytraceScene::createDynamicsObjects(const ConstructionInfo& ci2) -{ - //m_raytraceData->m_renderToTexture->init(ci2.m_instancingRenderer->getScreenWidth(),ci2.m_instancingRenderer->getScreenHeight()); - ConstructionInfo ci = ci2; - ci.arraySizeX = 2; - ci.arraySizeY = 50; - ci.arraySizeZ = 2; - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - return createDynamicsObjects2(ci,cube_vertices,numVertices,cube_indices,numIndices); - - float radius=1.f; - int colIndex = m_data->m_np->registerSphereShape(radius);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int shapeId = registerGraphicsSphereShape(ci,radius,false); - - int group=1; - int mask=1; - int index=0; - - { - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - int curColor = 0; - float scaling[4] = {1,1,1,1}; - int prevBody = -1; - int insta = 0; - - - //int colIndex = m_data->m_np->registerSphereShape(1); - for (int i=0;i<1;i++) - //for (int i=0;iregisterGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - - if (prevBody>=0) - { - //b3Point2PointConstraint* p2p = new b3Point2PointConstraint(pid,prevBody,b3Vector3(0,-1.1,0),b3Vector3(0,1.1,0)); -// m_data->m_rigidBodyPipeline->addConstraint(p2p);//,false); - } - prevBody = pid; - - index++; - } - } - } - } - return index; - -} - - -//create primary rays - -void GpuRaytraceScene::renderScene() -{ - - renderScene2(); - return; - //m_raytraceData->m_renderToTexture->enable(); - m_instancingRenderer->renderScene(); - //m_raytraceData->m_renderToTexture->disable(); -} - -void GpuRaytraceScene::renderScene2() -{ - //If using the BVH to accelerate raycasting, the AABBs need to be updated or else they will - //not match the actual rigid body positions after integration. The result is that rigid bodies - //are not drawn or appear clipped, especially if they are moving quickly. - m_data->m_rigidBodyPipeline->setupGpuAabbsFull(); - -// GpuBoxPlaneScene::renderScene(); -// return; - B3_PROFILE("raytrace"); - - //raytrace into the texels - { - B3_PROFILE("update camera"); - m_instancingRenderer->updateCamera(); - } - //generate primary rays - - { - B3_PROFILE("readbackAllBodiesToCpu"); - m_data->m_np->readbackAllBodiesToCpu(); - } - - - { - B3_PROFILE("Generate primary rays"); - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float farPlane = 1000.f; - - float tanFov = (top-bottom)*0.5f / nearPlane; - float screenWidth = m_instancingRenderer->getScreenWidth(); - float screenHeight = m_instancingRenderer->getScreenHeight(); - - float fov = 2. * atanf (tanFov); - float aspect = screenWidth / screenHeight; - - b3Vector3 rayFrom, camTarget; - m_instancingRenderer->getCameraPosition(rayFrom); - m_instancingRenderer->getCameraTargetPosition(camTarget); - b3Vector3 rayForward = camTarget-rayFrom; - rayForward.normalize(); - - rayForward*= farPlane; - - b3Vector3 rightOffset; - b3Vector3 vertical=b3MakeVector3(0.f,1.f,0.f); - b3Vector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - hor *= aspect*2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - b3Vector3 rayToCenter = rayFrom + rayForward; - float texWidth = m_raytraceData->textureWidth; - float texHeight = m_raytraceData->textureHeight; - - - float widthFactor = (screenWidth/texWidth); - float heightFactor = (screenHeight/texHeight); - - //should be screenwidth/height - - b3Vector3 dHor = hor * 1./float(screenWidth); - b3Vector3 dVert = vertical * 1./float(screenHeight); - - b3Transform rayFromTrans; - rayFromTrans.setIdentity(); - rayFromTrans.setOrigin(rayFrom); - - b3Transform rayFromLocal; - b3Transform rayToLocal; - - - - - - //create primary rays - primaryRays.resize(m_raytraceData->textureWidth*m_raytraceData->textureHeight); - - b3Vector3 rayTo; - b3RayInfo ray; - - { - for (int x=0;xtextureWidth;x++) - { - for (int y=0;ytextureHeight;y++) - { - - rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += x * dHor*widthFactor; - rayTo -= y * dVert*heightFactor; - - ray.m_from = rayFrom; - ray.m_to = rayTo; - primaryRays[x+m_raytraceData->textureWidth*y] = ray; - } - } - } - } - - b3AlignedObjectArray hits; - { - B3_PROFILE("hits.resize"); - hits.resize(primaryRays.size()); - } - if (1) - { - B3_PROFILE("init hits"); - for (int i=0;icastRaysHost(primaryRays, hits, this->m_data->m_np->getNumRigidBodies(), m_data->m_np->getBodiesCpu(), m_data->m_np->getNumCollidablesGpu(), m_data->m_np->getCollidablesCpu(),m_data->m_np->getInternalData()); - m_raycaster->castRays(primaryRays, hits, this->m_data->m_np->getNumRigidBodies(), m_data->m_np->getBodiesCpu(), m_data->m_np->getNumCollidablesGpu(), m_data->m_np->getCollidablesCpu(), m_data->m_np->getInternalData(), m_data->m_bp); - } - - - b3AlignedObjectArray shadowRays; - { - B3_PROFILE("shadowRays.resize"); - shadowRays.resize(primaryRays.size()); - } - b3AlignedObjectArray shadowHits; - { - B3_PROFILE("shadowHits.resize"); - shadowHits.resize(hits.size()); - } - - { - B3_PROFILE("init shadow rays"); - for (int i=0;icastRaysHost(primaryRays, hits, this->m_data->m_np->getNumRigidBodies(), m_data->m_np->getBodiesCpu(), m_data->m_np->getNumCollidablesGpu(), m_data->m_np->getCollidablesCpu()); - m_raycaster->castRays(shadowRays, shadowHits, this->m_data->m_np->getNumRigidBodies(), m_data->m_np->getBodiesCpu(), m_data->m_np->getNumCollidablesGpu(), m_data->m_np->getCollidablesCpu(), m_data->m_np->getInternalData(), m_data->m_bp); - } - - { - B3_PROFILE("write texels"); - - for (int i=0;i0.f) - { - if (shadowHits[i].m_hitFraction<1.f) - { - dotje = -1.f; - } - } - - if (dotje>0.f) - { - m_raytraceData->m_texels[(i)*3+0] = 128+128.f*hits[i].m_hitNormal.x; - m_raytraceData->m_texels[(i)*3+1] = 128+128.f*hits[i].m_hitNormal.y; - m_raytraceData->m_texels[(i)*3+2] = 128+128.f*hits[i].m_hitNormal.z; - - if (hits[i].m_hitBody==0) - { - m_raytraceData->m_texels[(i)*3+0] = 255; - m_raytraceData->m_texels[(i)*3+1] = 255; - m_raytraceData->m_texels[(i)*3+2] = 255; - } else - { - } - } else - { - if (dotje == -1.f) - { - m_raytraceData->m_texels[(i)*3+0] = 0; - m_raytraceData->m_texels[(i)*3+1] = 0; - m_raytraceData->m_texels[(i)*3+2] = 255; - } else - { - m_raytraceData->m_texels[(i)*3+0] = 255; - m_raytraceData->m_texels[(i)*3+1] = 0; - m_raytraceData->m_texels[(i)*3+2] = 0; - } - } - } else - { - m_raytraceData->m_texels[(i)*3+0] = 128; - m_raytraceData->m_texels[(i)*3+1] = 128; - m_raytraceData->m_texels[(i)*3+2] = 192; - } - } - } - GLint err; - - { - B3_PROFILE("get error"); - err = glGetError(); - assert(err==GL_NO_ERROR); - glActiveTexture(GL_TEXTURE0); - } - { - B3_PROFILE("glTexImage2D"); - glBindTexture(GL_TEXTURE_2D, *m_raytraceData->m_texId); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, m_raytraceData->textureWidth, m_raytraceData->textureHeight, 0, GL_RGB, GL_UNSIGNED_BYTE, m_raytraceData->m_texels); - } - - { - B3_PROFILE("glGetError"); - err = glGetError(); - assert(err==GL_NO_ERROR); - } - b3Assert(m_primRenderer); - float color[4] = {1,1,1,1}; - //float rect[4] = {0,0,m_raytraceData->textureWidth,m_raytraceData->textureHeight}; - float rect[4] = {0,0,m_instancingRenderer->getScreenWidth(),m_instancingRenderer->getScreenHeight()}; - float u[2] = {0,1}; - float v[2] = {0,1}; - int useRGBA = 1; - { - B3_PROFILE("drawTexturedRect"); - m_primRenderer->drawTexturedRect(rect[0],rect[1],rect[2],rect[3],color,u[0],v[0],u[1],v[1], useRGBA); - } - { - B3_PROFILE("glGetError"); - err = glGetError(); - assert(err==GL_NO_ERROR); - } -} diff --git a/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.h b/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.h deleted file mode 100644 index da39c5028..000000000 --- a/Demos3/GpuDemos/raytrace/RaytracedShadowDemo.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef RAYTRACED_SHADOW_DEMO_H -#define RAYTRACED_SHADOW_DEMO_H - -#include "../rigidbody/GpuConvexScene.h" - -class GpuRaytraceScene : public GpuBoxPlaneScene -{ -protected: - b3AlignedObjectArray primaryRays; - - struct GpuRaytraceInternalData* m_raytraceData; - -public: - GpuRaytraceScene(); - virtual ~GpuRaytraceScene(); - virtual const char* getName() - { - return "GPURaytrace"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuRaytraceScene; - return demo; - } - - virtual int createDynamicsObjects(const ConstructionInfo& ci); - - void renderScene(); - void renderScene2(); -}; - -#endif //RAYTRACED_SHADOW_DEMO_H diff --git a/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.cpp b/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.cpp deleted file mode 100644 index b5ce2503f..000000000 --- a/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.cpp +++ /dev/null @@ -1,43 +0,0 @@ - -#include "Bullet2FileDemo.h" -#include "BulletDataExtractor.h" -#include "GpuRigidBodyDemoInternalData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" - -Bullet2FileDemo::Bullet2FileDemo() -{ - m_loader = 0; -} -Bullet2FileDemo::~Bullet2FileDemo() -{ - delete m_loader; -} - -void Bullet2FileDemo::setupScene(const ConstructionInfo& ci) -{ - b3Assert(ci.m_instancingRenderer); - //const char* fileName="data/testFile.bullet"; - const char* fileName="data/testFileFracture.bullet"; - FILE* f = 0; - - const char* prefix[]={"./","../","../../","../../../","../../../../"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - - for (int i=0;!f && im_np,*m_data->m_rigidBodyPipeline,relativeFileName); - } -// m_loader = new b3BulletDataExtractor(*ci.m_instancingRenderer,*m_data->m_np,*m_data->m_rigidBodyPipeline); -// m_loader->convertAllObjects(bulletFile); - - b3Vector3 pos=b3MakeVector3(-20,10,0); - ci.m_instancingRenderer->setCameraTargetPosition(pos); - ci.m_instancingRenderer->setCameraDistance(10); -} diff --git a/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.h b/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.h deleted file mode 100644 index 0efe6c95f..000000000 --- a/Demos3/GpuDemos/rigidbody/Bullet2FileDemo.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef BULLET2_FILE_DEMO_H -#define BULLET2_FILE_DEMO_H - - - -#include "GpuRigidBodyDemo.h" - -class Bullet2FileDemo : public GpuRigidBodyDemo -{ - class b3BulletDataExtractor* m_loader; - -public: - - Bullet2FileDemo(); - virtual ~Bullet2FileDemo(); - virtual const char* getName() - { - return "Bullet2File"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new Bullet2FileDemo; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - -}; - -#endif//BULLET2_FILE_DEMO_H - diff --git a/Demos3/GpuDemos/rigidbody/BulletDataExtractor.cpp b/Demos3/GpuDemos/rigidbody/BulletDataExtractor.cpp deleted file mode 100644 index 7ba6d6161..000000000 --- a/Demos3/GpuDemos/rigidbody/BulletDataExtractor.cpp +++ /dev/null @@ -1,644 +0,0 @@ -int NUM_OBJECTS_X = 20; -int NUM_OBJECTS_Y = 20; -int NUM_OBJECTS_Z = 20; - - - -float X_GAP = 2.3f; -float Y_GAP = 2.f; -float Z_GAP = 2.3f; - -#include "BulletDataExtractor.h" -#include "Bullet3Serialize/Bullet2FileLoader/b3BulletFile.h" -bool keepStaticObjects = true; -extern bool enableExperimentalCpuConcaveCollision; - -#include - -#include "OpenGLWindow/OpenGLInclude.h" - - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "Bullet3Common/b3Matrix3x3.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3ConvexUtility.h" -#include "OpenGLWindow/ShapeData.h" - -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" - -///work-in-progress -///This ReadBulletSample is kept as simple as possible without dependencies to the Bullet SDK. -///It can be used to load .bullet data for other physics SDKs -///For a more complete example how to load and convert Bullet data using the Bullet SDK check out -///the Bullet/Demos/SerializeDemo and Bullet/Serialize/BulletWorldImporter - - -//using namespace Bullet; - -struct GraphicsVertex -{ - float xyzw[4]; - float normal[3]; - float uv[2]; -}; -struct GraphicsShape -{ - const float* m_vertices; - int m_numvertices; - const int* m_indices; - int m_numIndices; - float m_scaling[4]; -}; - -struct InstanceGroup -{ - Bullet3SerializeBullet2::b3CollisionShapeData* m_shape; - int m_collisionShapeIndex; - - b3AlignedObjectArray m_rigidBodies; -}; - - -void createScene( GLInstancingRenderer& renderer,b3GpuNarrowPhase& np, b3GpuRigidBodyPipeline& rbWorld, const char* fileName) -{ - //const char* fileName="../../bin/convex-trimesh.bullet"; - //const char* fileName="../../bin/1000 convex.bullet"; - //const char* fileName="../../bin/1000 stack.bullet"; - //const char* fileName="../../bin/3000 fall.bullet"; - - - //const char* fileName="../../bin/testFile.bullet"; - - - - FILE* f = fopen(fileName,"rb"); - if (f) - { - fclose(f); - - bool verboseDumpAllTypes = false; - - bParse::b3BulletFile* bulletFile2 = new bParse::b3BulletFile(fileName); - - bool ok = (bulletFile2->getFlags()& bParse::FD_OK)!=0; - - if (ok) - bulletFile2->parse(verboseDumpAllTypes); - else - { - printf("Error loading file %s.\n",fileName); - exit(0); - } - ok = (bulletFile2->getFlags()& bParse::FD_OK)!=0; - - if (!(bulletFile2->getFlags() & bParse::FD_DOUBLE_PRECISION)) - { - if (!ok) - { - printf("Error parsing file %s.\n",fileName); - exit(0); - } - - if (verboseDumpAllTypes) - { - bulletFile2->dumpChunks(bulletFile2->getFileDNA()); - } - - - b3BulletDataExtractor extractor(renderer,np,rbWorld); - - extractor.convertAllObjects(bulletFile2); - delete bulletFile2; - return; - - } else - { - printf("Error: double precision .bullet files not supported in this demo\n"); - } - - delete bulletFile2; - } else - { - printf("Warning: cannot find file %s, using programmatically created scene instead.\n",fileName); - } -} - - - -enum LocalBroadphaseNativeTypes -{ - // polyhedral convex shapes - BOX_SHAPE_PROXYTYPE, - TRIANGLE_SHAPE_PROXYTYPE, - TETRAHEDRAL_SHAPE_PROXYTYPE, - CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE, - CONVEX_HULL_SHAPE_PROXYTYPE, - CONVEX_POINT_CLOUD_SHAPE_PROXYTYPE, - CUSTOM_POLYHEDRAL_SHAPE_TYPE, -//implicit convex shapes -IMPLICIT_CONVEX_SHAPES_START_HERE, - SPHERE_SHAPE_PROXYTYPE, - MULTI_SPHERE_SHAPE_PROXYTYPE, - CAPSULE_SHAPE_PROXYTYPE, - CONE_SHAPE_PROXYTYPE, - CONVEX_SHAPE_PROXYTYPE, - CYLINDER_SHAPE_PROXYTYPE, - UNIFORM_SCALING_SHAPE_PROXYTYPE, - MINKOWSKI_SUM_SHAPE_PROXYTYPE, - MINKOWSKI_DIFFERENCE_SHAPE_PROXYTYPE, - BOX_2D_SHAPE_PROXYTYPE, - CONVEX_2D_SHAPE_PROXYTYPE, - CUSTOM_CONVEX_SHAPE_TYPE, -//concave shapes -CONCAVE_SHAPES_START_HERE, - //keep all the convex shapetype below here, for the check IsConvexShape in broadphase proxy! - TRIANGLE_MESH_SHAPE_PROXYTYPE, - SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE, - ///used for demo integration FAST/Swift collision library and Bullet - FAST_CONCAVE_MESH_PROXYTYPE, - //terrain - TERRAIN_SHAPE_PROXYTYPE, -///Used for GIMPACT Trimesh integration - GIMPACT_SHAPE_PROXYTYPE, -///Multimaterial mesh - MULTIMATERIAL_TRIANGLE_MESH_PROXYTYPE, - - EMPTY_SHAPE_PROXYTYPE, - STATIC_PLANE_PROXYTYPE, - CUSTOM_CONCAVE_SHAPE_TYPE, -CONCAVE_SHAPES_END_HERE, - - COMPOUND_SHAPE_PROXYTYPE, - - SOFTBODY_SHAPE_PROXYTYPE, - HFFLUID_SHAPE_PROXYTYPE, - HFFLUID_BUOYANT_CONVEX_SHAPE_PROXYTYPE, - INVALID_SHAPE_PROXYTYPE, - - MAX_BROADPHASE_COLLISION_TYPES - -}; - -b3BulletDataExtractor::b3BulletDataExtractor(GLInstancingRenderer& renderer, b3GpuNarrowPhase& np, b3GpuRigidBodyPipeline& rbWorld) - :m_renderer(renderer), m_np(np), m_rbPipeline(rbWorld) -{ -} - -b3BulletDataExtractor::~b3BulletDataExtractor() -{ -} - - - -void b3BulletDataExtractor::convertAllObjects(bParse::b3BulletFile* bulletFile2) -{ - int i; - - for (i=0;im_collisionShapes.size();i++) - { - Bullet3SerializeBullet2::b3CollisionShapeData* shapeData = (Bullet3SerializeBullet2::b3CollisionShapeData*)bulletFile2->m_collisionShapes[i]; - if (shapeData->m_name) - printf("converting shape %s\n", shapeData->m_name); - int shapeIndex = convertCollisionShape(shapeData); - //valid conversion? - if (shapeIndex>=0) - { - InstanceGroup* group = new InstanceGroup; - group->m_shape = shapeData; - group->m_collisionShapeIndex = shapeIndex; - m_instanceGroups.push_back(group); - - } - } - - for (i=0;im_rigidBodies.size();i++) - { - - Bullet3SerializeBullet2::b3RigidBodyFloatData* colObjData = (Bullet3SerializeBullet2::b3RigidBodyFloatData*)bulletFile2->m_rigidBodies[i]; - Bullet3SerializeBullet2::b3CollisionShapeData* shapeData = (Bullet3SerializeBullet2::b3CollisionShapeData*)colObjData->m_collisionObjectData.m_collisionShape; - for (int j=0;jm_shape == shapeData) - { - m_instanceGroups[j]->m_rigidBodies.push_back(bulletFile2->m_rigidBodies[i]); - } - } - } - - //now register all objects in order - for (int i=0;im_rigidBodies.size()>0) - { - - m_renderer.registerShape(m_graphicsShapes[i]->m_vertices,m_graphicsShapes[i]->m_numvertices,m_graphicsShapes[i]->m_indices,m_graphicsShapes[i]->m_numIndices); - - for (int j=0;jm_rigidBodies.size();j++) - { - Bullet3SerializeBullet2::b3RigidBodyFloatData* colObjData = (Bullet3SerializeBullet2::b3RigidBodyFloatData*)m_instanceGroups[i]->m_rigidBodies[j]; - - b3Matrix3x3 mat; - mat.deSerializeFloat((const b3Matrix3x3FloatData&)colObjData->m_collisionObjectData.m_worldTransform.m_basis); - b3Quaternion orn; - mat.getRotation(orn); - float quaternion[4] = {orn[0],orn[1],orn[2],orn[3]}; - float pos[4] = {colObjData->m_collisionObjectData.m_worldTransform.m_origin.m_floats[0], - colObjData->m_collisionObjectData.m_worldTransform.m_origin.m_floats[1], - colObjData->m_collisionObjectData.m_worldTransform.m_origin.m_floats[2], - 0.f}; - float color[4] = {0,0,0,1}; - float mass = 0.f; - if (colObjData->m_inverseMass==0.f) - { - color[1] = 1; - } else - { - mass = 1.f/colObjData->m_inverseMass; - color[2] = 1; - } - if (keepStaticObjects || colObjData->m_inverseMass!=0.f) - { - - m_rbPipeline.registerPhysicsInstance(mass,pos,quaternion,m_instanceGroups[i]->m_collisionShapeIndex,0,true); - m_renderer.registerGraphicsInstance(m_instanceGroups[i]->m_collisionShapeIndex,pos,quaternion,color,m_graphicsShapes[i]->m_scaling); - } - - - - } - } - } - - for (i=0;im_collisionObjects.size();i++) - { - - } - - - - m_rbPipeline.writeAllInstancesToGpu(); -} - - - -int b3BulletDataExtractor::convertCollisionShape( Bullet3SerializeBullet2::b3CollisionShapeData* shapeData ) -{ - int shapeIndex = -1; - - switch (shapeData->m_shapeType) - { - case STATIC_PLANE_PROXYTYPE: - { - Bullet3SerializeBullet2::b3StaticPlaneShapeData* planeData = (Bullet3SerializeBullet2::b3StaticPlaneShapeData*)shapeData; - shapeIndex = createPlaneShape(planeData->m_planeNormal,planeData->m_planeConstant, planeData->m_localScaling); - break; - } - - case CYLINDER_SHAPE_PROXYTYPE: - case CAPSULE_SHAPE_PROXYTYPE: - case BOX_SHAPE_PROXYTYPE: - case SPHERE_SHAPE_PROXYTYPE: - case MULTI_SPHERE_SHAPE_PROXYTYPE: - case CONVEX_HULL_SHAPE_PROXYTYPE: - { - Bullet3SerializeBullet2::b3ConvexInternalShapeData* bsd = (Bullet3SerializeBullet2::b3ConvexInternalShapeData*)shapeData; - - switch (shapeData->m_shapeType) - { - case BOX_SHAPE_PROXYTYPE: - { - shapeIndex = createBoxShape(bsd->m_implicitShapeDimensions, bsd->m_localScaling,bsd->m_collisionMargin); - break; - } - case SPHERE_SHAPE_PROXYTYPE: - { - shapeIndex = createSphereShape(bsd->m_implicitShapeDimensions.m_floats[0],bsd->m_localScaling, bsd->m_collisionMargin); - break; - } - case CONVEX_HULL_SHAPE_PROXYTYPE: - { - Bullet3SerializeBullet2::b3ConvexHullShapeData* convexData = (Bullet3SerializeBullet2::b3ConvexHullShapeData*)bsd; - int numPoints = convexData->m_numUnscaledPoints; - b3Vector3 localScaling; - localScaling.deSerializeFloat((b3Vector3FloatData&)bsd->m_localScaling); - b3AlignedObjectArray tmpPoints; - int i; - if (convexData->m_unscaledPointsFloatPtr) - { - for ( i=0;im_unscaledPointsFloatPtr[i].m_floats[0], - convexData->m_unscaledPointsFloatPtr[i].m_floats[1], - convexData->m_unscaledPointsFloatPtr[i].m_floats[2]);//convexData->m_unscaledPointsFloatPtr[i].m_floats[3]); - - tmpPoints.push_back(pt*localScaling); - } - } - float unitScaling[4] = {1,1,1,1}; - - - int strideInBytes = sizeof(b3Vector3); - strideInBytes = 4*sizeof(float); - int noHeightField = 1; - shapeIndex = m_np.registerConvexHullShape(&tmpPoints[0].m_floats[0],strideInBytes, numPoints,&unitScaling[0]); - - printf("createConvexHull with %d vertices\n",numPoints); - - GraphicsShape* gfxShape = createGraphicsShapeFromConvexHull(&tmpPoints[0],tmpPoints.size()); - m_graphicsShapes.push_back(gfxShape); - - return shapeIndex; - break; - } -#if 0 - case CAPSULE_SHAPE_PROXYTYPE: - { - b3CapsuleShapeData* capData = (b3CapsuleShapeData*)shapeData; - switch (capData->m_upAxis) - { - case 0: - { - shape = createCapsuleShapeX(implicitShapeDimensions.getY(),2*implicitShapeDimensions.getX()); - break; - } - case 1: - { - shape = createCapsuleShapeY(implicitShapeDimensions.getX(),2*implicitShapeDimensions.getY()); - break; - } - case 2: - { - shape = createCapsuleShapeZ(implicitShapeDimensions.getX(),2*implicitShapeDimensions.getZ()); - break; - } - default: - { - printf("error: wrong up axis for b3CapsuleShape\n"); - } - - }; - - break; - } - case CYLINDER_SHAPE_PROXYTYPE: - { - b3CylinderShapeData* cylData = (b3CylinderShapeData*) shapeData; - b3Vector3 halfExtents = implicitShapeDimensions+margin; - switch (cylData->m_upAxis) - { - case 0: - { - shape = createCylinderShapeX(halfExtents.getY(),halfExtents.getX()); - break; - } - case 1: - { - shape = createCylinderShapeY(halfExtents.getX(),halfExtents.getY()); - break; - } - case 2: - { - shape = createCylinderShapeZ(halfExtents.getX(),halfExtents.getZ()); - break; - } - default: - { - printf("unknown Cylinder up axis\n"); - } - - }; - - - - break; - } - case MULTI_SPHERE_SHAPE_PROXYTYPE: - { - b3MultiSphereShapeData* mss = (b3MultiSphereShapeData*)bsd; - int numSpheres = mss->m_localPositionArraySize; - int i; - for ( i=0;im_localPositionArrayPtr[i].m_pos); - radii[i] = mss->m_localPositionArrayPtr[i].m_radius; - } - shape = new b3MultiSphereShape(&tmpPos[0],&radii[0],numSpheres); - break; - } - -#endif - - default: - { - printf("error: cannot create shape type (%d)\n",shapeData->m_shapeType); - } - } - - break; - } - - case TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - Bullet3SerializeBullet2::b3TriangleMeshShapeData* trimesh = (Bullet3SerializeBullet2::b3TriangleMeshShapeData*)shapeData; - printf("numparts = %d\n",trimesh->m_meshInterface.m_numMeshParts); - if (trimesh->m_meshInterface.m_numMeshParts) - { - for (int i=0;im_meshInterface.m_numMeshParts;i++) - { - Bullet3SerializeBullet2::b3MeshPartData& dat = trimesh->m_meshInterface.m_meshPartsPtr[i]; - printf("numtris = %d, numverts = %d\n", dat.m_numTriangles,dat.m_numVertices);//,dat.m_vertices3f,dat.m_3indices16 - printf("scaling = %f,%f,%f\n", trimesh->m_meshInterface.m_scaling.m_floats[0],trimesh->m_meshInterface.m_scaling.m_floats[1],trimesh->m_meshInterface.m_scaling.m_floats[2]); - // dat. - //dat. - - } - - ///trimesh->m_meshInterface.m_meshPartsPtr - //trimesh->m_meshInterface.m_scaling - } - //trimesh->m_meshInterface - //b3TriangleIndexVertexArray* meshInterface = createMeshInterface(trimesh->m_meshInterface); - - - //scaling - //b3Vector3 scaling; scaling.deSerializeFloat(trimesh->m_meshInterface.m_scaling); - //meshInterface->setScaling(scaling); - - //printf("trimesh->m_collisionMargin=%f\n",trimesh->m_collisionMargin); - break; - } - -#if 0 - case COMPOUND_SHAPE_PROXYTYPE: - { - b3CompoundShapeData* compoundData = (b3CompoundShapeData*)shapeData; - b3CompoundShape* compoundShape = createCompoundShape(); - - - b3AlignedObjectArray childShapes; - for (int i=0;im_numChildShapes;i++) - { - b3CollisionShape* childShape = convertCollisionShape(compoundData->m_childShapePtr[i].m_childShape); - if (childShape) - { - b3Transform localTransform; - localTransform.deSerializeFloat(compoundData->m_childShapePtr[i].m_transform); - compoundShape->addChildShape(localTransform,childShape); - } else - { - printf("error: couldn't create childShape for compoundShape\n"); - } - - } - shape = compoundShape; - - break; - } - - case GIMPACT_SHAPE_PROXYTYPE: - { - b3GImpactMeshShapeData* gimpactData = (b3GImpactMeshShapeData*) shapeData; - if (gimpactData->m_gimpactSubType == CONST_GIMPACT_TRIMESH_SHAPE) - { - b3TriangleIndexVertexArray* meshInterface = createMeshInterface(gimpactData->m_meshInterface); - b3GImpactMeshShape* gimpactShape = createGimpactShape(meshInterface); - b3Vector3 localScaling; - localScaling.deSerializeFloat(gimpactData->m_localScaling); - gimpactShape->setLocalScaling(localScaling); - gimpactShape->setMargin(b3Scalar(gimpactData->m_collisionMargin)); - gimpactShape->updateBound(); - shape = gimpactShape; - } else - { - printf("unsupported gimpact sub type\n"); - } - break; - } - case SOFTBODY_SHAPE_PROXYTYPE: - { - return 0; - } -#endif - default: - { - printf("unsupported shape type (%d)\n",shapeData->m_shapeType); - } - } - - return shapeIndex; - -} - -int b3BulletDataExtractor::createBoxShape( const Bullet3SerializeBullet2::b3Vector3FloatData& halfDimensions, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling, float collisionMargin) -{ - float cubeScaling[4] = { - halfDimensions.m_floats[0]*localScaling.m_floats[0]+collisionMargin, - halfDimensions.m_floats[1]*localScaling.m_floats[1]+collisionMargin, - halfDimensions.m_floats[2]*localScaling.m_floats[2]+collisionMargin, - 1}; - int strideInBytes = sizeof(float)*9; - int noHeightField = 1; - int cubeCollisionShapeIndex = m_np.registerConvexHullShape(&cube_vertices[0],strideInBytes, sizeof(cube_vertices)/strideInBytes,&cubeScaling[0]); - - { - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - - GraphicsShape* gfxShape = new GraphicsShape; - gfxShape->m_vertices = cube_vertices; - gfxShape->m_numvertices = numVertices; - gfxShape->m_indices = cube_indices; - gfxShape->m_numIndices = numIndices; - for (int i=0;i<4;i++) - gfxShape->m_scaling[i] = cubeScaling[i]; - m_graphicsShapes.push_back(gfxShape); - } - - printf("createBoxShape with half extents %f,%f,%f\n",cubeScaling[0], cubeScaling[1],cubeScaling[2]); - //halfDimensions * localScaling - return cubeCollisionShapeIndex; -} - -int b3BulletDataExtractor::createSphereShape( float radius, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling, float collisionMargin) -{ - printf("createSphereShape with radius %f\n",radius); - return -1; -} - - -int b3BulletDataExtractor::createPlaneShape( const Bullet3SerializeBullet2::b3Vector3FloatData& planeNormal, float planeConstant, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling) -{ - printf("createPlaneShape with normal %f,%f,%f and planeConstant %f\n",planeNormal.m_floats[0], planeNormal.m_floats[1],planeNormal.m_floats[2],planeConstant); - return -1; -} - - - - - -GraphicsShape* b3BulletDataExtractor::createGraphicsShapeFromConvexHull(const b3Vector3* tmpPoints, int numPoints) -{ - b3ConvexUtility* utilPtr = new b3ConvexUtility(); - bool merge = true; - utilPtr->initializePolyhedralFeatures(tmpPoints,numPoints,merge); - - b3AlignedObjectArray* vertices = new b3AlignedObjectArray; - { - int numVertices = utilPtr->m_vertices.size(); - int numIndices = 0; - b3AlignedObjectArray* indicesPtr = new b3AlignedObjectArray; - for (int f=0;fm_faces.size();f++) - { - const b3MyFace& face = utilPtr->m_faces[f]; - b3Vector3 normal=b3MakeVector3(face.m_plane[0],face.m_plane[1],face.m_plane[2]); - if (face.m_indices.size()>2) - { - - GraphicsVertex vtx; - const b3Vector3& orgVertex = utilPtr->m_vertices[face.m_indices[0]]; - vtx.xyzw[0] = orgVertex[0];vtx.xyzw[1] = orgVertex[1];vtx.xyzw[2] = orgVertex[2];vtx.xyzw[3] = 0.f; - vtx.normal[0] = normal[0];vtx.normal[1] = normal[1];vtx.normal[2] = normal[2]; - vtx.uv[0] = 0.5f;vtx.uv[1] = 0.5f; - int newvtxindex0 = vertices->size(); - vertices->push_back(vtx); - - for (int j=1;jpush_back(newvtxindex0); - { - GraphicsVertex vtx; - const b3Vector3& orgVertex = utilPtr->m_vertices[face.m_indices[j]]; - vtx.xyzw[0] = orgVertex[0];vtx.xyzw[1] = orgVertex[1];vtx.xyzw[2] = orgVertex[2];vtx.xyzw[3] = 0.f; - vtx.normal[0] = normal[0];vtx.normal[1] = normal[1];vtx.normal[2] = normal[2]; - vtx.uv[0] = 0.5f;vtx.uv[1] = 0.5f; - int newvtxindexj = vertices->size(); - vertices->push_back(vtx); - indicesPtr->push_back(newvtxindexj); - } - - { - GraphicsVertex vtx; - const b3Vector3& orgVertex = utilPtr->m_vertices[face.m_indices[j+1]]; - vtx.xyzw[0] = orgVertex[0];vtx.xyzw[1] = orgVertex[1];vtx.xyzw[2] = orgVertex[2];vtx.xyzw[3] = 0.f; - vtx.normal[0] = normal[0];vtx.normal[1] = normal[1];vtx.normal[2] = normal[2]; - vtx.uv[0] = 0.5f;vtx.uv[1] = 0.5f; - int newvtxindexj1 = vertices->size(); - vertices->push_back(vtx); - indicesPtr->push_back(newvtxindexj1); - } - } - } - } - - - GraphicsShape* gfxShape = new GraphicsShape; - gfxShape->m_vertices = &vertices->at(0).xyzw[0]; - gfxShape->m_numvertices = vertices->size(); - gfxShape->m_indices = &indicesPtr->at(0); - gfxShape->m_numIndices = indicesPtr->size(); - for (int i=0;i<4;i++) - gfxShape->m_scaling[i] = 1;//bake the scaling into the vertices - return gfxShape; - } -} diff --git a/Demos3/GpuDemos/rigidbody/BulletDataExtractor.h b/Demos3/GpuDemos/rigidbody/BulletDataExtractor.h deleted file mode 100644 index 3ffde6b91..000000000 --- a/Demos3/GpuDemos/rigidbody/BulletDataExtractor.h +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef BULLET_DATA_EXTRACTOR_H -#define BULLET_DATA_EXTRACTOR_H - - -#include "Bullet3Serialize/Bullet2FileLoader/autogenerated/bullet2.h" -#include "Bullet3Common/b3AlignedObjectArray.h" -#include "Bullet3Common/b3Vector3.h" - -class GLInstancingRenderer; -class b3GpuRigidBodyPipeline; -class b3GpuNarrowPhase; - -void createScene(GLInstancingRenderer& renderer,b3GpuNarrowPhase& np, b3GpuRigidBodyPipeline& rbWorld, const char* fileName); - -namespace bParse -{ - class b3BulletFile; -}; - -class b3BulletDataExtractor -{ - GLInstancingRenderer& m_renderer; - b3GpuNarrowPhase& m_np; - b3GpuRigidBodyPipeline& m_rbPipeline; - - public: - - b3AlignedObjectArray m_instanceGroups; - b3AlignedObjectArray m_graphicsShapes; - - b3BulletDataExtractor(GLInstancingRenderer& renderer, b3GpuNarrowPhase& np, b3GpuRigidBodyPipeline& rbPipeline); - - virtual ~b3BulletDataExtractor(); - - virtual void convertAllObjects(bParse::b3BulletFile* bulletFile); - - //return -1 for invalid - virtual int convertCollisionShape( Bullet3SerializeBullet2::b3CollisionShapeData* shapeData ); - - virtual int createPlaneShape( const Bullet3SerializeBullet2::b3Vector3FloatData& planeNormal, float planeConstant, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling); - - virtual int createBoxShape( const Bullet3SerializeBullet2::b3Vector3FloatData& halfDimensions, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling, float collisionMargin); - - virtual int createSphereShape( float radius, const Bullet3SerializeBullet2::b3Vector3FloatData& localScaling, float collisionMargin); - - static GraphicsShape* createGraphicsShapeFromConvexHull(const b3Vector3* tmpPoints, int numPoints); - static GraphicsShape* createGraphicsShapeFromWavefrontObj(class objLoader* obj); - -}; - - - -#endif //BULLET_DATA_EXTRACTOR_H \ No newline at end of file diff --git a/Demos3/GpuDemos/rigidbody/ConcaveScene.cpp b/Demos3/GpuDemos/rigidbody/ConcaveScene.cpp deleted file mode 100644 index 1abb93b8a..000000000 --- a/Demos3/GpuDemos/rigidbody/ConcaveScene.cpp +++ /dev/null @@ -1,758 +0,0 @@ -#include "ConcaveScene.h" -#include "GpuRigidBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuRigidBodyDemoInternalData.h" -#include"../../Wavefront/tiny_obj_loader.h" -#include "Bullet3Common/b3Transform.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3ConvexUtility.h" - -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" -#define CONCAVE_GAPX 14 -#define CONCAVE_GAPY 5 -#define CONCAVE_GAPZ 14 - -GLInstanceGraphicsShape* createGraphicsShapeFromWavefrontObj(std::vector& shapes) -{ - - b3AlignedObjectArray* vertices = new b3AlignedObjectArray; - { -// int numVertices = obj->vertexCount; - // int numIndices = 0; - b3AlignedObjectArray* indicesPtr = new b3AlignedObjectArray; - - for (int s=0;ssize(); - - - indicesPtr->push_back(vtxBaseIndex); - indicesPtr->push_back(vtxBaseIndex+1); - indicesPtr->push_back(vtxBaseIndex+2); - - GLInstanceVertex vtx0; - vtx0.xyzw[0] = shape.mesh.positions[shape.mesh.indices[f]*3+0]; - vtx0.xyzw[1] = shape.mesh.positions[shape.mesh.indices[f]*3+1]; - vtx0.xyzw[2] = shape.mesh.positions[shape.mesh.indices[f]*3+2]; - vtx0.xyzw[3] = 0.f; - - vtx0.uv[0] = 0.5f;//shape.mesh.positions[shape.mesh.indices[f]*3+2];? - vtx0.uv[1] = 0.5f; - - GLInstanceVertex vtx1; - vtx1.xyzw[0] = shape.mesh.positions[shape.mesh.indices[f+1]*3+0]; - vtx1.xyzw[1] = shape.mesh.positions[shape.mesh.indices[f+1]*3+1]; - vtx1.xyzw[2] = shape.mesh.positions[shape.mesh.indices[f+1]*3+2]; - vtx1.xyzw[3]= 0.f; - vtx1.uv[0] = 0.5f;//obj->textureList[face->vertex_index[1]]->e[0]; - vtx1.uv[1] = 0.5f;//obj->textureList[face->vertex_index[1]]->e[1]; - - GLInstanceVertex vtx2; - vtx2.xyzw[0] = shape.mesh.positions[shape.mesh.indices[f+2]*3+0]; - vtx2.xyzw[1] = shape.mesh.positions[shape.mesh.indices[f+2]*3+1]; - vtx2.xyzw[2] = shape.mesh.positions[shape.mesh.indices[f+2]*3+2]; - vtx2.xyzw[3] = 0.f; - vtx2.uv[0] = 0.5f; - vtx2.uv[1] = 0.5f; - - - b3Vector3 v0=b3MakeVector3(vtx0.xyzw[0],vtx0.xyzw[1],vtx0.xyzw[2]); - b3Vector3 v1=b3MakeVector3(vtx1.xyzw[0],vtx1.xyzw[1],vtx1.xyzw[2]); - b3Vector3 v2=b3MakeVector3(vtx2.xyzw[0],vtx2.xyzw[1],vtx2.xyzw[2]); - - normal = (v1-v0).cross(v2-v0); - normal.normalize(); - vtx0.normal[0] = normal[0]; - vtx0.normal[1] = normal[1]; - vtx0.normal[2] = normal[2]; - vtx1.normal[0] = normal[0]; - vtx1.normal[1] = normal[1]; - vtx1.normal[2] = normal[2]; - vtx2.normal[0] = normal[0]; - vtx2.normal[1] = normal[1]; - vtx2.normal[2] = normal[2]; - vertices->push_back(vtx0); - vertices->push_back(vtx1); - vertices->push_back(vtx2); - } - } - } - - - GLInstanceGraphicsShape* gfxShape = new GLInstanceGraphicsShape; - gfxShape->m_vertices = vertices; - gfxShape->m_numvertices = vertices->size(); - gfxShape->m_indices = indicesPtr; - gfxShape->m_numIndices = indicesPtr->size(); - for (int i=0;i<4;i++) - gfxShape->m_scaling[i] = 1;//bake the scaling into the vertices - return gfxShape; - } -} - - -void ConcaveScene::createConcaveMesh(const ConstructionInfo& ci, const char* fileName, const b3Vector3& shift, const b3Vector3& scaling) -{ - - - - - char relativeFileName[1024]; - const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int prefixIndex=-1; - { - - int numPrefixes = sizeof(prefix)/sizeof(char*); - - for (int i=0;i shapes; - std::string err = tinyobj::LoadObj(shapes, relativeFileName, prefix[prefixIndex]); - - GLInstanceGraphicsShape* shape = createGraphicsShapeFromWavefrontObj(shapes); - - - b3AlignedObjectArray verts; - for (int i=0;im_numvertices;i++) - { - for (int j=0;j<3;j++) - shape->m_vertices->at(i).xyzw[j] += shift[j]; - - b3Vector3 vtx=b3MakeVector3(shape->m_vertices->at(i).xyzw[0], - shape->m_vertices->at(i).xyzw[1], - shape->m_vertices->at(i).xyzw[2]); - verts.push_back(vtx*scaling); - } - - int colIndex = m_data->m_np->registerConcaveMesh(&verts,shape->m_indices,b3MakeVector3(1,1,1)); - - { - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - - int shapeId = ci.m_instancingRenderer->registerShape(&shape->m_vertices->at(0).xyzw[0], shape->m_numvertices, &shape->m_indices->at(0), shape->m_numIndices); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0.3,0.3,1,1.f);//0.5);//1.f - - - { - float mass = 0.f; - b3Vector3 position=b3MakeVector3(0,0,0); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - index++; - } - - - - delete shape->m_indices; - delete shape->m_vertices; - delete shape; - - } - } - - - -} - -void ConcaveScene::setupScene(const ConstructionInfo& ci) -{ - - if (1) - { - - //char* fileName = "slopedPlane100.obj"; - //char* fileName = "plane100.obj"; -// char* fileName = "plane100.obj"; - - //char* fileName = "teddy.obj";//"plane.obj"; -// char* fileName = "sponza_closed.obj";//"plane.obj"; - //char* fileName = "leoTest1.obj"; - const char* fileName = "samurai_monastry.obj"; -// char* fileName = "teddy2_VHACD_CHs.obj"; - - b3Vector3 shift1=b3MakeVector3(0,0,0);//0,230,80);//150,-100,-120); - - b3Vector4 scaling=b3MakeVector4(10,10,10,1); - - // createConcaveMesh(ci,"plane100.obj",shift1,scaling); - //createConcaveMesh(ci,"plane100.obj",shift,scaling); - - // b3Vector3 shift2(0,0,0);//0,230,80);//150,-100,-120); - // createConcaveMesh(ci,"teddy.obj",shift2,scaling); - - // b3Vector3 shift3(130,-150,-75);//0,230,80);//150,-100,-120); - // createConcaveMesh(ci,"leoTest1.obj",shift3,scaling); - createConcaveMesh(ci,fileName,shift1,scaling); - - } else - { - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - { - b3Vector4 scaling=b3MakeVector4(400,1.,400,1); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,-2,0); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); - - } - } - - createDynamicObjects(ci); - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - - float camPos[4]={0,0,0,0};//65.5,4.5,65.5,0}; - //float camPos[4]={1,12.5,1.5,0}; - m_instancingRenderer->setCameraPitch(45); - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(355); - char msg[1024]; - int numInstances = m_data->m_rigidBodyPipeline->getNumBodies(); - sprintf(msg,"Num objects = %d",numInstances); - if (ci.m_gui) - ci.m_gui->setStatusBarMessage(msg,true); - -} - -void ConcaveScene::createDynamicObjects(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - - - int index=0; - - - if (1) - { - int curColor = 0; - b3Vector4 colors[4] = - { - b3MakeVector4(1,1,1,1), - b3MakeVector4(1,1,0.3,1), - b3MakeVector4(0.3,1,1,1), - b3MakeVector4(0.3,0.3,1,1), - }; - - - b3ConvexUtility* utilPtr = new b3ConvexUtility(); - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - - { - b3AlignedObjectArray verts; - - unsigned char* vts = (unsigned char*) cube_vertices; - for (int i=0;iinitializePolyhedralFeatures(&verts[0],verts.size(),merge); - } - } - -// int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - - int colIndex=-1; - if (ci.m_useInstancedCollisionShapes) - colIndex = m_data->m_np->registerConvexHullShape(utilPtr); - - for (int i=0;im_np->registerConvexHullShape(utilPtr); - - float mass = 1; - - //b3Vector3 position(-2*ci.gapX+i*ci.gapX,25+j*ci.gapY,-2*ci.gapZ+k*ci.gapZ); - b3Vector3 position=b3MakeVector3(-(ci.arraySizeX/2)*CONCAVE_GAPX+i*CONCAVE_GAPX, - 23+j*CONCAVE_GAPY, - -(ci.arraySizeZ/2)*CONCAVE_GAPZ+k*CONCAVE_GAPZ); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - } - } - } - } - -} - -void ConcaveCompoundScene::setupScene(const ConstructionInfo& ci) -{ - ConcaveScene::setupScene(ci); - - float camPos[4]={0,50,0,0};//65.5,4.5,65.5,0}; - //float camPos[4]={1,12.5,1.5,0}; - m_instancingRenderer->setCameraPitch(45); - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(40); - - -} - -void ConcaveCompound2Scene::createDynamicObjects(const ConstructionInfo& ci) -{ - - const char* fileName = "teddy2_VHACD_CHs.obj"; - //char* fileName = "cube_offset.obj"; - - - b3Vector3 shift=b3MakeVector3(0,0,0);//0,230,80);//150,-100,-120); - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int prefixIndex=-1; - - char relativeFileName[1024]; - { - - int numPrefixes = sizeof(prefix)/sizeof(char*); - - for (int i=0;i shapes; - std::string err = tinyobj::LoadObj(shapes, relativeFileName, prefix[prefixIndex]); - - - if (shapes.size()>0) - { - - - int strideInBytes = 9*sizeof(float); - - b3AlignedObjectArray vertexArray; - b3AlignedObjectArray indexArray; - - - - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - int colIndex = 0; - - b3AlignedObjectArray vertices; - int stride2 = sizeof(GLInstanceVertex); - b3Assert(stride2 == strideInBytes); - - { - - - b3AlignedObjectArray childShapes; - - int numChildShapes = shapes.size(); - - for (int i=0;i tmpVertices; - //add transformed graphics vertices and indices - b3Vector3 myScaling=b3MakeVector3(50,50,50);//300,300,300); - for (int v=0;vm_np->registerConvexHullShape(&tmpVertices[0].xyzw[0],strideInBytes,numVertices, scaling); - child.m_shapeIndex = childColIndex; - childShapes.push_back(child); - colIndex = childColIndex; - } - colIndex= m_data->m_np->registerCompoundShape(&childShapes); - - } - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&vertexArray[0].xyzw[0],vertexArray.size(),&indexArray[0],indexArray.size()); - - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,0,1,1), - b3MakeVector4(0,1,1,1), - }; - - int curColor = 0; - for (int i=0;i<1;i++)//ci.arraySizeX;i++) - { - for (int j=0;j<4;j++) - { - // for (int k=0;kregisterGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - } - } - } - - } - -} - -void ConcaveCompoundScene::createDynamicObjects(const ConstructionInfo& ci) -{ - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - - b3AlignedObjectArray vertexArray; - b3AlignedObjectArray indexArray; - - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - float scaling[4] = {1,1,1,1}; - int colIndex = 0; - - GLInstanceVertex* cubeVerts = (GLInstanceVertex*)&cube_vertices[0]; - int stride2 = sizeof(GLInstanceVertex); - b3Assert(stride2 == strideInBytes); - - { - int childColIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - - -b3Vector3 childPositions[3] = { - b3MakeVector3(0,-2,0), - b3MakeVector3(0,0,0), - b3MakeVector3(0,0,2) - }; - - b3AlignedObjectArray childShapes; - int numChildShapes = 3; - for (int i=0;im_np->registerCompoundShape(&childShapes); - - } - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&vertexArray[0].xyzw[0],vertexArray.size(),&indexArray[0],indexArray.size()); - - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,0,1,1), - b3MakeVector4(0,1,1,1), - }; - - int curColor = 0; - for (int i=0;iregisterGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - } - } - } -} - - -void ConcaveSphereScene::setupScene(const ConstructionInfo& ci) -{ - ConcaveScene::setupScene(ci); - - float camPos[4]={0,50,0,0};//65.5,4.5,65.5,0}; - //float camPos[4]={1,12.5,1.5,0}; - m_instancingRenderer->setCameraPitch(45); - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(40); - - -} - -void ConcaveSphereScene::createDynamicObjects(const ConstructionInfo& ci) -{ - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - int index=0; - int curColor = 0; - float radius = 1; - //int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int colIndex = m_data->m_np->registerSphereShape(radius);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int prevGraphicsShapeIndex = registerGraphicsSphereShape(ci,radius,false); - - for (int i=0;iregisterGraphicsInstance(prevGraphicsShapeIndex,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - } - } - } -} diff --git a/Demos3/GpuDemos/rigidbody/ConcaveScene.h b/Demos3/GpuDemos/rigidbody/ConcaveScene.h deleted file mode 100644 index 79e87e422..000000000 --- a/Demos3/GpuDemos/rigidbody/ConcaveScene.h +++ /dev/null @@ -1,101 +0,0 @@ -#ifndef CONCAVE_SCENE_H -#define CONCAVE_SCENE_H - -#include "GpuRigidBodyDemo.h" -#include "Bullet3Common/b3Vector3.h" - -class ConcaveScene : public GpuRigidBodyDemo -{ -public: - - ConcaveScene(){} - virtual ~ConcaveScene(){} - virtual const char* getName() - { - return "BoxTrimesh"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ConcaveScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void createDynamicObjects(const ConstructionInfo& ci); - - virtual void createConcaveMesh(const ConstructionInfo& ci, const char* fileName, const b3Vector3& shift, const b3Vector3& scaling); - -}; - - -class ConcaveSphereScene : public ConcaveScene -{ -public: - - ConcaveSphereScene(){} - virtual ~ConcaveSphereScene(){} - virtual const char* getName() - { - return "SphereTrimesh"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ConcaveSphereScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void createDynamicObjects(const ConstructionInfo& ci); - -}; - - -class ConcaveCompoundScene : public ConcaveScene -{ -public: - - ConcaveCompoundScene(){} - virtual ~ConcaveCompoundScene(){} - virtual const char* getName() - { - return "CompoundConcave"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ConcaveCompoundScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void createDynamicObjects(const ConstructionInfo& ci); - -}; - - -class ConcaveCompound2Scene : public ConcaveCompoundScene -{ -public: - - ConcaveCompound2Scene(){} - virtual ~ConcaveCompound2Scene(){} - virtual const char* getName() - { - return "GRBConcave2Compound"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ConcaveCompound2Scene; - return demo; - } - virtual void createDynamicObjects(const ConstructionInfo& ci); -}; - - -#endif //CONCAVE_SCENE_H diff --git a/Demos3/GpuDemos/rigidbody/GpuCompoundScene.cpp b/Demos3/GpuDemos/rigidbody/GpuCompoundScene.cpp deleted file mode 100644 index a7a9c88ed..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuCompoundScene.cpp +++ /dev/null @@ -1,273 +0,0 @@ -#include "GpuCompoundScene.h" -#include "GpuRigidBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuRigidBodyDemoInternalData.h" -#include "Bullet3Common/b3Transform.h" - -#include "OpenGLWindow/GLInstanceGraphicsShape.h" - -#define NUM_COMPOUND_CHILDREN_X 4 -#define NUM_COMPOUND_CHILDREN_Y 4 -#define NUM_COMPOUND_CHILDREN_Z 4 - - - -void GpuCompoundScene::setupScene(const ConstructionInfo& ci) -{ - - createStaticEnvironment(ci); - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - float scaling[4] = {1,1,1,1}; - - GLInstanceVertex* cubeVerts = (GLInstanceVertex*)&cube_vertices[0]; - int stride2 = sizeof(GLInstanceVertex); - b3Assert(stride2 == strideInBytes); - int index=0; - int colIndex = -1; - b3AlignedObjectArray vertexArray; - b3AlignedObjectArray indexArray; - { - int childColIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - - -/* b3Vector3 childPositions[3] = { - b3Vector3(0,-2,0), - b3Vector3(0,0,0), - b3Vector3(0,0,2) - }; - */ - - - b3AlignedObjectArray childShapes; - - for (int x=0;xm_np->registerCompoundShape(&childShapes); - - } - - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&vertexArray[0].xyzw[0],vertexArray.size(),&indexArray[0],indexArray.size()); - - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,0,1,1), - b3MakeVector4(0,1,1,1), - }; - - int curColor = 0; - for (int i=0;iregisterGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - } - } - } - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - - - float camPos[4]={0,0,0};//65.5,4.5,65.5,0}; - //float camPos[4]={1,12.5,1.5,0}; - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(320); - -} - - - - - - -void GpuCompoundScene::createStaticEnvironment(const ConstructionInfo& ci) -{ - - int strideInBytes = 9*sizeof(float); - - - - - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - int colIndex = 0; - - { - if (1) - { - float radius = 41; - int prevGraphicsShapeIndex = -1; - { - - - - if (radius>=100) - { - int numVertices = sizeof(detailed_sphere_vertices)/strideInBytes; - int numIndices = sizeof(detailed_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&detailed_sphere_vertices[0],numVertices,detailed_sphere_indices,numIndices); - } else - { - bool usePointSprites = false; - if (usePointSprites) - { - int numVertices = sizeof(point_sphere_vertices)/strideInBytes; - int numIndices = sizeof(point_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&point_sphere_vertices[0],numVertices,point_sphere_indices,numIndices,B3_GL_POINTS); - } else - { - if (radius>=10) - { - int numVertices = sizeof(medium_sphere_vertices)/strideInBytes; - int numIndices = sizeof(medium_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&medium_sphere_vertices[0],numVertices,medium_sphere_indices,numIndices); - } else - { - int numVertices = sizeof(low_sphere_vertices)/strideInBytes; - int numIndices = sizeof(low_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&low_sphere_vertices[0],numVertices,low_sphere_indices,numIndices); - } - } - } - - } - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - int curColor = 1; - - //int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int colIndex = m_data->m_np->registerSphereShape(radius);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - float mass = 0.f; - - //b3Vector3 position((j&1)+i*2.2,1+j*2.,(j&1)+k*2.2); - b3Vector3 position=b3MakeVector3(0,-41,0); - - - b3Quaternion orn(0,0,0,1); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - b3Vector4 scaling=b3MakeVector4(radius,radius,radius,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(prevGraphicsShapeIndex,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - index++; - - - } - } -} - -void GpuCompoundPlaneScene::createStaticEnvironment(const ConstructionInfo& ci) -{ - - int index=0; - b3Vector3 normal=b3MakeVector3(0,1,0); - float constant=0.f; - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - - b3Vector4 scaling=b3MakeVector4(400,1.,400,1); - - //int colIndex = m_data->m_np->registerPlaneShape(normal,constant);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,0,0); - b3Quaternion orn(0,0,0,1); - // b3Quaternion orn(b3Vector3(1,0,0),0.3); - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); -} \ No newline at end of file diff --git a/Demos3/GpuDemos/rigidbody/GpuCompoundScene.h b/Demos3/GpuDemos/rigidbody/GpuCompoundScene.h deleted file mode 100644 index de3f9e171..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuCompoundScene.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef GPU_COMPOUND_SCENE_H -#define GPU_COMPOUND_SCENE_H - -#include "GpuRigidBodyDemo.h" - -class GpuCompoundScene : public GpuRigidBodyDemo -{ -public: - - GpuCompoundScene(){} - virtual ~GpuCompoundScene(){} - virtual const char* getName() - { - return "CompoundOnSphere"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuCompoundScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void createStaticEnvironment(const ConstructionInfo& ci); - -}; - - -class GpuCompoundPlaneScene : public GpuCompoundScene -{ -public: - - GpuCompoundPlaneScene(){} - virtual ~GpuCompoundPlaneScene(){} - virtual const char* getName() - { - return "CompoundOnPlane"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuCompoundPlaneScene; - return demo; - } - - virtual void createStaticEnvironment(const ConstructionInfo& ci); - -}; -#endif //GPU_COMPOUND_SCENE_H diff --git a/Demos3/GpuDemos/rigidbody/GpuConvexScene.cpp b/Demos3/GpuDemos/rigidbody/GpuConvexScene.cpp deleted file mode 100644 index 10c334d3f..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuConvexScene.cpp +++ /dev/null @@ -1,546 +0,0 @@ -#include "GpuConvexScene.h" -#include "GpuRigidBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuRigidBodyDemoInternalData.h" -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "Bullet3Dynamics/ConstraintSolver/b3Point2PointConstraint.h" -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "Bullet3OpenCL/Raycast/b3GpuRaycast.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3ConvexUtility.h" -#include "Bullet3Dynamics/ConstraintSolver/b3FixedConstraint.h" - -#include "OpenGLWindow/GLRenderToTexture.h" - -b3Vector4 colors[4] = -{ - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), -}; - -void GpuConvexScene::setupScene(const ConstructionInfo& ci) -{ - m_primRenderer = ci.m_primRenderer; - - m_raycaster = new b3GpuRaycast(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - - int index=0; - createStaticEnvironment(ci); - - index+=createDynamicsObjects(ci); - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - - float camPos[4]={0,0,0,0};//ci.arraySizeX,ci.arraySizeY/2,ci.arraySizeZ,0}; - //float camPos[4]={1,12.5,1.5,0}; - - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(150); - //m_instancingRenderer->setCameraYaw(85); - m_instancingRenderer->setCameraYaw(30); - m_instancingRenderer->setCameraPitch(225); - - - m_instancingRenderer->updateCamera(); - - char msg[1024]; - int numInstances = index; - sprintf(msg,"Num objects = %d",numInstances); - if (ci.m_gui) - ci.m_gui->setStatusBarMessage(msg,true); -} - -void GpuConvexScene::destroyScene() -{ - delete m_raycaster; - m_raycaster = 0; -} - -int GpuConvexScene::createDynamicsObjects(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - /*int numVertices = sizeof(barrel_vertices)/strideInBytes; - int numIndices = sizeof(barrel_indices)/sizeof(int); - return createDynamicsObjects2(ci,barrel_vertices,numVertices,barrel_indices,numIndices); - */ - - int numVertices = sizeof(tetra_vertices)/strideInBytes; - int numIndices = sizeof(tetra_indices)/sizeof(int); - return createDynamicsObjects2(ci,tetra_vertices,numVertices,tetra_indices,numIndices); - -} - -int GpuBoxPlaneScene::createDynamicsObjects(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - return createDynamicsObjects2(ci,cube_vertices_textured,numVertices,cube_indices,numIndices); -} - - -int GpuConvexScene::createDynamicsObjects2(const ConstructionInfo& ci, const float* vertices, int numVertices, const int* indices, int numIndices) -{ - int strideInBytes = 9*sizeof(float); - int textureIndex = -1; - if (0) - { - int width,height,n; - - const char* filename = "data/cube.png"; - const unsigned char* image=0; - - const char* prefix[]={"./","../","../../","../../../","../../../../"}; - int numprefix = sizeof(prefix)/sizeof(const char*); - - for (int i=0;!image && iregisterTexture(image,width,height); - } - } - - int shapeId = ci.m_instancingRenderer->registerShape(&vertices[0],numVertices,indices,numIndices,B3_GL_TRIANGLES,textureIndex); - int group=1; - int mask=1; - int index=0; - - - - - - { - - - int curColor = 0; - float scaling[4] = {1,1,1,1}; - int prevBody = -1; - int insta = 0; - - b3ConvexUtility* utilPtr = new b3ConvexUtility(); - - { - b3AlignedObjectArray verts; - - unsigned char* vts = (unsigned char*) vertices; - for (int i=0;iinitializePolyhedralFeatures(&verts[0],verts.size(),merge); - } - } - - int colIndex=-1; - if (ci.m_useInstancedCollisionShapes) - colIndex = m_data->m_np->registerConvexHullShape(utilPtr); - - //int colIndex = m_data->m_np->registerSphereShape(1); - for (int i=0;im_np->registerConvexHullShape(&vertices[0],strideInBytes,numVertices, scaling); - if (!ci.m_useInstancedCollisionShapes) - colIndex = m_data->m_np->registerConvexHullShape(utilPtr); - - float mass = 1.f; - if (j==0)//ci.arraySizeY-1) - { - //mass=0.f; - } - b3Vector3 position = b3MakeVector3(((j+1)&1)+i*2.2,1+j*2.,((j+1)&1)+k*2.2); - //b3Vector3 position = b3MakeVector3(i*2,1+j*2,k*2); - //b3Vector3 position=b3MakeVector3(1,0.9,1); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - b3Vector4 scalin=b3MakeVector4(1,1,1,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index,false); - - - if (prevBody>=0) - { - //b3Point2PointConstraint* p2p = new b3Point2PointConstraint(pid,prevBody,b3Vector3(0,-1.1,0),b3Vector3(0,1.1,0)); -// m_data->m_rigidBodyPipeline->addConstraint(p2p);//,false); - } - prevBody = pid; - - index++; - } - } - } - delete utilPtr; - } - return index; -} - - -void GpuConvexScene::createStaticEnvironment(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - - - { - b3Vector4 scaling=b3MakeVector4(400,400,400,1); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,-400,0); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); - - } -} - -void GpuConvexPlaneScene::createStaticEnvironment(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - - - { - b3Vector4 scaling=b3MakeVector4(400,400,400,1); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,-400,0); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); - - } - -} - -/* -void GpuConvexPlaneScene::createStaticEnvironment(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int group=1; - int mask=1; - int index=0; - - - { - b3Vector4 scaling=b3MakeVector4(100,0.001,100,1); - - - //int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 normal=b3MakeVector3(0,1,0); - float constant=0.f; - int colIndex = m_data->m_np->registerPlaneShape(normal,constant);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,0,0); - - - - b3Quaternion orn(0,0,0,1); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0.f,position,orn,colIndex,index,false); - - } - -} -*/ - - - - -struct TetraBunny -{ -#include "bunny.inl" -}; - -struct TetraCube -{ -#include "cube.inl" -}; - - - - -static int nextLine(const char* buffer) -{ - int numBytesRead=0; - - while (*buffer != '\n') - { - buffer++; - numBytesRead++; - } - - - if (buffer[0]==0x0a) - { - buffer++; - numBytesRead++; - } - return numBytesRead; -} - -static float mytetra_vertices[] = -{ - -1.f, 0, -1.f, 0.5f, 0, 1,0, 0,0, - -1.f, 0, 1.f, 0.5f, 0, 1,0, 1,0, - 1.f, 0, 1.f, 0.5f, 0, 1,0, 1,1, - 1.f, 0, -1.f, 0.5f, 0, 1,0, 0,1 -}; - -static int mytetra_indices[]= -{ - 0,1,2, - 3,1,2,3,2,0, - 3,0,1 -}; - - -/* Create from TetGen .ele, .face, .node data */ -void GpuTetraScene::createFromTetGenData(const char* ele, - const char* node, - const ConstructionInfo& ci) -{ - b3Scalar scaling(10); - - b3AlignedObjectArray pos; - int nnode=0; - int ndims=0; - int nattrb=0; - int hasbounds=0; - int result = sscanf(node,"%d %d %d %d",&nnode,&ndims,&nattrb,&hasbounds); - result = sscanf(node,"%d %d %d %d",&nnode,&ndims,&nattrb,&hasbounds); - node += nextLine(node); - - //b3AlignedObjectArray rigidBodyPositions; - //b3AlignedObjectArray rigidBodyIds; - - pos.resize(nnode); - for(int i=0;i>index; - // sn>>x;sn>>y;sn>>z; - node += nextLine(node); - - //for(int j=0;j>a; - - //if(hasbounds) - // sn>>bound; - - pos[index].setX(b3Scalar(x)*scaling); - pos[index].setY(b3Scalar(y)*scaling); - pos[index].setZ(b3Scalar(z)*scaling); - } - - - if(ele&&ele[0]) - { - int ntetra=0; - int ncorner=0; - int neattrb=0; - sscanf(ele,"%d %d %d",&ntetra,&ncorner,&neattrb); - ele += nextLine(ele); - - //se>>ntetra;se>>ncorner;se>>neattrb; - for(int i=0;i>index; - //se>>ni[0];se>>ni[1];se>>ni[2];se>>ni[3]; - sscanf(ele,"%d %d %d %d %d",&index,&ni[0],&ni[1],&ni[2],&ni[3]); - ele+=nextLine(ele); - - b3Vector3 average=b3MakeVector3(0,0,0); - - for (int v=0;v<4;v++) - { - average+=pos[ni[v]]; - } - average/=4; - - for (int v=0;v<4;v++) - { - b3Vector3 shiftedPos = pos[ni[v]]-average; - mytetra_vertices[0+v*9] = shiftedPos.getX(); - mytetra_vertices[1+v*9] = shiftedPos.getY(); - mytetra_vertices[2+v*9] = shiftedPos.getZ(); - } - //todo: subtract average - - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(mytetra_vertices)/strideInBytes; - int numIndices = sizeof(mytetra_indices)/sizeof(int); - int shapeId = ci.m_instancingRenderer->registerShape(&mytetra_vertices[0],numVertices,mytetra_indices,numIndices); - int group=1; - int mask=1; - - - - { - b3Vector4 scaling=b3MakeVector4(1,1,1,1); - int colIndex = m_data->m_np->registerConvexHullShape(&mytetra_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 position=b3MakeVector3(0,150,0); -// position+=average;//*1.2;//*2; - position+=average*1.2;//*2; - //rigidBodyPositions.push_back(position); - b3Quaternion orn(0,0,0,1); - - static int curColor=0; - b3Vector4 color = colors[curColor++]; - curColor&=3; - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(1.f,position,orn,colIndex,0,false); - //rigidBodyIds.push_back(pid); - - } - - - - //for(int j=0;j>a; - //psb->appendTetra(ni[0],ni[1],ni[2],ni[3]); - - } - // printf("Nodes: %u\r\n",psb->m_nodes.size()); - // printf("Links: %u\r\n",psb->m_links.size()); - // printf("Faces: %u\r\n",psb->m_faces.size()); - // printf("Tetras: %u\r\n",psb->m_tetras.size()); - - } - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - m_data->m_np->writeAllBodiesToGpu(); - m_data->m_bp->writeAabbsToGpu(); - m_data->m_rigidBodyPipeline->setupGpuAabbsFull(); - m_data->m_bp->calculateOverlappingPairs(m_data->m_config.m_maxBroadphasePairs); - - int numPairs = m_data->m_bp->getNumOverlap(); - cl_mem pairs = m_data->m_bp->getOverlappingPairBuffer(); - b3OpenCLArray clPairs(m_clData->m_clContext,m_clData->m_clQueue); - clPairs.setFromOpenCLBuffer(pairs,numPairs); - b3AlignedObjectArray allPairs; - clPairs.copyToHost(allPairs); - - for (int p=0;pm_np->getObjectTransformFromCpu(posA,ornA,bodyIndexA); - m_data->m_np->getObjectTransformFromCpu(posB,ornB,bodyIndexB); - - b3Vector3 pivotWorld = (posA+posB)*0.5f; - b3Transform transA,transB; - transA.setIdentity(); - transA.setOrigin(posA); - transA.setRotation(ornA); - transB.setIdentity(); - transB.setOrigin(posB); - transB.setRotation(ornB); - b3Vector3 pivotInA = transA.inverse()*pivotWorld; - b3Vector3 pivotInB = transB.inverse()*pivotWorld; - - b3Transform frameInA,frameInB; - frameInA.setIdentity(); - frameInB.setIdentity(); - frameInA.setOrigin(pivotInA); - frameInB.setOrigin(pivotInB); - b3Quaternion relTargetAB = frameInA.getRotation()*frameInB.getRotation().inverse(); - - //c = new b3FixedConstraint(pid,prevBody,frameInA,frameInB); - float breakingThreshold = 45;//37.f; - //c->setBreakingImpulseThreshold(37.1); - bool useGPU = true; - if (useGPU) - { - int cid = m_data->m_rigidBodyPipeline->createFixedConstraint(bodyIndexA,bodyIndexB,pivotInA,pivotInB,relTargetAB,breakingThreshold); - } else - { - b3FixedConstraint* c = new b3FixedConstraint(bodyIndexA,bodyIndexB,frameInA,frameInB); - c->setBreakingImpulseThreshold(breakingThreshold); - m_data->m_rigidBodyPipeline->addConstraint(c); - } - - - } - - printf("numPairs = %d\n",numPairs); - -} - - -int GpuTetraScene::createDynamicsObjects(const ConstructionInfo& ci) -{ - - //createFromTetGenData(TetraCube::getElements(),TetraCube::getNodes(),ci); - createFromTetGenData(TetraBunny::getElements(),TetraBunny::getNodes(),ci); - - return 0; -} diff --git a/Demos3/GpuDemos/rigidbody/GpuConvexScene.h b/Demos3/GpuDemos/rigidbody/GpuConvexScene.h deleted file mode 100644 index be5b187df..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuConvexScene.h +++ /dev/null @@ -1,114 +0,0 @@ -#ifndef GPU_CONVEX_SCENE_H -#define GPU_CONVEX_SCENE_H - -#include "GpuRigidBodyDemo.h" -#include "Bullet3Common/b3AlignedObjectArray.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3RaycastInfo.h" - -class GpuConvexScene : public GpuRigidBodyDemo -{ -protected: - class GLPrimitiveRenderer* m_primRenderer; - - class b3GpuRaycast* m_raycaster; - -public: - - GpuConvexScene() :m_primRenderer(0), m_raycaster(0) - { - } - virtual ~GpuConvexScene(){} - virtual const char* getName() - { - return "Tetrahedra"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuConvexScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void destroyScene(); - - virtual int createDynamicsObjects(const ConstructionInfo& ci); - - virtual int createDynamicsObjects2(const ConstructionInfo& ci,const float* vertices, int numVertices, const int* indices,int numIndices); - - virtual void createStaticEnvironment(const ConstructionInfo& ci); - -}; - - -class GpuConvexPlaneScene : public GpuConvexScene -{ -public: - - GpuConvexPlaneScene(){} - virtual ~GpuConvexPlaneScene(){} - virtual const char* getName() - { - return "ConvexOnPlane"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuConvexPlaneScene; - return demo; - } - - virtual void createStaticEnvironment(const ConstructionInfo& ci); - -}; - - -class GpuBoxPlaneScene : public GpuConvexPlaneScene -{ -public: - - GpuBoxPlaneScene(){} - virtual ~GpuBoxPlaneScene(){} - virtual const char* getName() - { - return "BoxBox"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuBoxPlaneScene; - return demo; - } - - virtual int createDynamicsObjects(const ConstructionInfo& ci); - - -}; - -class GpuTetraScene : public GpuConvexScene -{ - -protected: -void createFromTetGenData(const char* ele, - const char* node, - const ConstructionInfo& ci); - -public: - virtual const char* getName() - { - return "TetraBreakable"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuTetraScene; - return demo; - } - - virtual int createDynamicsObjects(const ConstructionInfo& ci); - -}; - - -#endif //GPU_CONVEX_SCENE_H diff --git a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp b/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp deleted file mode 100644 index d5e44db10..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.cpp +++ /dev/null @@ -1,503 +0,0 @@ -#include "GpuRigidBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuGridBroadphase.h" - -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuRigidBodyDemoInternalData.h" -#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h" -#include "Bullet3Collision/NarrowPhaseCollision/shared/b3RigidBodyData.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhaseInternalData.h" - -#include "OpenGLWindow/GLPrimitiveRenderer.h" - -static b3KeyboardCallback oldCallback = 0; -extern bool gReset; -bool useUniformGrid = false; -bool convertOnCpu = false; -static bool sShowShadowMap = true; -#define MSTRINGIFY(A) #A - -static const char* s_rigidBodyKernelString = MSTRINGIFY( - -typedef struct -{ - float4 m_pos; - float4 m_quat; - float4 m_linVel; - float4 m_angVel; - unsigned int m_collidableIdx; - float m_invMass; - float m_restituitionCoeff; - float m_frictionCoeff; -} Body; - -__kernel void - copyTransformsToVBOKernel( __global Body* gBodies, __global float4* posOrnColor, const int numNodes) -{ - int nodeID = get_global_id(0); - if( nodeID < numNodes ) - { - posOrnColor[nodeID] = (float4) (gBodies[nodeID].m_pos.xyz,1.0); - posOrnColor[nodeID + numNodes] = gBodies[nodeID].m_quat; - } -} -); - - - - - -GpuRigidBodyDemo::GpuRigidBodyDemo() -:m_instancingRenderer(0), -m_window(0) -{ - m_data = new GpuRigidBodyDemoInternalData; -} -GpuRigidBodyDemo::~GpuRigidBodyDemo() -{ - - delete m_data; -} - - - - - - - -static void PairKeyboardCallback(int key, int state) -{ - if (key=='R' && state) - { - gReset = true; - } - - //b3DefaultKeyboardCallback(key,state); - oldCallback(key,state); -} - -void GpuRigidBodyDemo::setupScene(const ConstructionInfo& ci) -{ - -} - -void GpuRigidBodyDemo::initPhysics(const ConstructionInfo& ci) -{ - - if (ci.m_window) - { - m_window = ci.m_window; - oldCallback = ci.m_window->getKeyboardCallback(); - ci.m_window->setKeyboardCallback(PairKeyboardCallback); - - } - - m_instancingRenderer = ci.m_instancingRenderer; - m_primRenderer = ci.m_primRenderer; - initCL(ci.preferredOpenCLDeviceIndex,ci.preferredOpenCLPlatformIndex); - - if (m_clData->m_clContext) - { - int errNum=0; - - cl_program rbProg=0; - m_data->m_copyTransformsToVBOKernel = b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext,m_clData->m_clDevice,s_rigidBodyKernelString,"copyTransformsToVBOKernel",&errNum,rbProg); - - m_data->m_config.m_maxConvexBodies = b3Max(m_data->m_config.m_maxConvexBodies,ci.arraySizeX*ci.arraySizeY*ci.arraySizeZ+10); - m_data->m_config.m_maxConvexShapes = m_data->m_config.m_maxConvexBodies; - int maxPairsPerBody = 16; - m_data->m_config.m_maxBroadphasePairs = maxPairsPerBody*m_data->m_config.m_maxConvexBodies; - m_data->m_config.m_maxContactCapacity = m_data->m_config.m_maxBroadphasePairs; - - - b3GpuNarrowPhase* np = new b3GpuNarrowPhase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue,m_data->m_config); - b3GpuBroadphaseInterface* bp =0; - - if (useUniformGrid) - { - bp = new b3GpuGridBroadphase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - } else - { - bp = new b3GpuSapBroadphase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - } - m_data->m_np = np; - m_data->m_bp = bp; - m_data->m_broadphaseDbvt = new b3DynamicBvhBroadphase(m_data->m_config.m_maxConvexBodies); - - m_data->m_rigidBodyPipeline = new b3GpuRigidBodyPipeline(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue, np, bp,m_data->m_broadphaseDbvt,m_data->m_config); - - - setupScene(ci); - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - np->writeAllBodiesToGpu(); - bp->writeAabbsToGpu(); - - } - - - - m_instancingRenderer->writeTransforms(); - - - -} - -void GpuRigidBodyDemo::exitPhysics() -{ - destroyScene(); - - delete m_data->m_instancePosOrnColor; - delete m_data->m_rigidBodyPipeline; - delete m_data->m_broadphaseDbvt; - - m_window->setKeyboardCallback(oldCallback); - - delete m_data->m_np; - m_data->m_np = 0; - delete m_data->m_bp; - m_data->m_bp = 0; - - exitCL(); -} - - -void GpuRigidBodyDemo::renderScene() -{ - m_instancingRenderer->renderScene(); - if (sShowShadowMap) - { - glDisable(GL_DEPTH_TEST); - - float borderColor[4]={0,0,0,1}; - m_primRenderer->drawRect(9,29,191,211,borderColor); - float color[4]={1,1,1,1}; - //m_shadowData->m_instancingRenderer->renderScene(); - m_instancingRenderer->enableShadowMap(); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_NONE ); - // glTexParameteri( GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE, GL_LUMINANCE ); - m_primRenderer->drawTexturedRect(10,30,190,210,color,0,0,1,1,true); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); - glEnable(GL_DEPTH_TEST); - - } - -} - -void GpuRigidBodyDemo::clientMoveAndDisplay() -{ - bool animate=true; - int numObjects= m_data->m_rigidBodyPipeline->getNumBodies(); - //printf("numObjects=%d\n",numObjects); - if (numObjects > m_instancingRenderer->getInstanceCapacity()) - { - static bool once = true; - if (once) - { - once=false; - b3Assert(0); - b3Error("m_instancingRenderer out-of-memory\n"); - } - numObjects = m_instancingRenderer->getInstanceCapacity(); - } - - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - b3Vector4* positions = 0; - if (animate && numObjects) - { - B3_PROFILE("gl2cl"); - - if (!m_data->m_instancePosOrnColor) - { - GLuint vbo = m_instancingRenderer->getInternalData()->m_vbo; - int arraySizeInBytes = numObjects * (3)*sizeof(b3Vector4); - glBindBuffer(GL_ARRAY_BUFFER, vbo); - cl_bool blocking= CL_TRUE; - positions= (b3Vector4*)glMapBufferRange( GL_ARRAY_BUFFER,m_instancingRenderer->getMaxShapeCapacity(),arraySizeInBytes, GL_MAP_READ_BIT );//GL_READ_WRITE);//GL_WRITE_ONLY - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - m_data->m_instancePosOrnColor = new b3OpenCLArray(m_clData->m_clContext,m_clData->m_clQueue); - m_data->m_instancePosOrnColor->resize(3*numObjects); - m_data->m_instancePosOrnColor->copyFromHostPointer(positions,3*numObjects,0); - glUnmapBuffer( GL_ARRAY_BUFFER); - err = glGetError(); - assert(err==GL_NO_ERROR); - } - } - - { - B3_PROFILE("stepSimulation"); - m_data->m_rigidBodyPipeline->stepSimulation(1./60.f); - - } - - if (numObjects) - { - if (convertOnCpu) - { - b3GpuNarrowPhaseInternalData* npData = m_data->m_np->getInternalData(); - npData->m_bodyBufferGPU->copyToHost(*npData->m_bodyBufferCPU); - - b3AlignedObjectArray vboCPU; - m_data->m_instancePosOrnColor->copyToHost(vboCPU); - - for (int i=0;im_bodyBufferCPU->at(i).m_pos; - b3Quat orn = npData->m_bodyBufferCPU->at(i).m_quat; - pos.w = 1.f; - vboCPU[i] = pos; - vboCPU[i + numObjects] = (b3Vector4&)orn; - } - m_data->m_instancePosOrnColor->copyFromHost(vboCPU); - - } else - { - B3_PROFILE("cl2gl_convert"); - int ciErrNum = 0; - cl_mem bodies = m_data->m_rigidBodyPipeline->getBodyBuffer(); - b3LauncherCL launch(m_clData->m_clQueue,m_data->m_copyTransformsToVBOKernel,"m_copyTransformsToVBOKernel"); - launch.setBuffer(bodies); - launch.setBuffer(m_data->m_instancePosOrnColor->getBufferCL()); - launch.setConst(numObjects); - launch.launch1D(numObjects); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - } - } - - if (animate && numObjects) - { - B3_PROFILE("cl2gl_upload"); - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - GLuint vbo = m_instancingRenderer->getInternalData()->m_vbo; - - int arraySizeInBytes = numObjects * (3)*sizeof(b3Vector4); - - glBindBuffer(GL_ARRAY_BUFFER, vbo); - cl_bool blocking= CL_TRUE; - positions= (b3Vector4*)glMapBufferRange( GL_ARRAY_BUFFER,m_instancingRenderer->getMaxShapeCapacity(),arraySizeInBytes, GL_MAP_WRITE_BIT );//GL_READ_WRITE);//GL_WRITE_ONLY - err = glGetError(); - assert(err==GL_NO_ERROR); - m_data->m_instancePosOrnColor->copyToHostPointer(positions,3*numObjects,0); - glUnmapBuffer( GL_ARRAY_BUFFER); - err = glGetError(); - assert(err==GL_NO_ERROR); - } - -} - -b3Vector3 GpuRigidBodyDemo::getRayTo(int x,int y) -{ - if (!m_instancingRenderer) - return b3MakeVector3(0,0,0); - - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = b3Scalar(2.0) * b3Atan(tanFov); - - b3Vector3 camPos,camTarget; - m_instancingRenderer->getCameraPosition(camPos); - m_instancingRenderer->getCameraTargetPosition(camTarget); - - b3Vector3 rayFrom = camPos; - b3Vector3 rayForward = (camTarget-camPos); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - - b3Vector3 rightOffset; - b3Vector3 m_cameraUp=b3MakeVector3(0,1,0); - b3Vector3 vertical = m_cameraUp; - - b3Vector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - b3Scalar aspect; - float width = m_instancingRenderer->getScreenWidth(); - float height = m_instancingRenderer->getScreenHeight(); - - aspect = width / height; - - hor*=aspect; - - - b3Vector3 rayToCenter = rayFrom + rayForward; - b3Vector3 dHor = hor * 1.f/width; - b3Vector3 dVert = vertical * 1.f/height; - - - b3Vector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += b3Scalar(x) * dHor; - rayTo -= b3Scalar(y) * dVert; - return rayTo; -} - -bool GpuRigidBodyDemo::keyboardCallback(int key, int state) -{ - - if (m_data) - { - if (key==B3G_ALT ) - { - m_data->m_altPressed = state; - } - if (key==B3G_CONTROL ) - { - m_data->m_controlPressed = state; - } - } - return false; -} - -bool GpuRigidBodyDemo::mouseMoveCallback(float x,float y) -{ - if (m_data->m_altPressed!=0 || m_data->m_controlPressed!=0) - return false; - - if (m_data->m_pickBody>=0 && m_data->m_pickConstraint>=0) - { - m_data->m_rigidBodyPipeline->removeConstraintByUid(m_data->m_pickConstraint); - b3Vector3 newRayTo = getRayTo(x,y); - b3Vector3 rayFrom; - b3Vector3 oldPivotInB = m_data->m_pickPivotInB; - b3Vector3 newPivotB; - m_instancingRenderer->getCameraPosition(rayFrom); - b3Vector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= m_data->m_pickDistance; - newPivotB = rayFrom + dir; - m_data->m_pickPivotInB = newPivotB; - m_data->m_rigidBodyPipeline->copyConstraintsToHost(); - m_data->m_pickConstraint = m_data->m_rigidBodyPipeline->createPoint2PointConstraint(m_data->m_pickBody,m_data->m_pickFixedBody,m_data->m_pickPivotInA,m_data->m_pickPivotInB,1e30); - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - return true; - } - return false; -} -bool GpuRigidBodyDemo::mouseButtonCallback(int button, int state, float x, float y) -{ - - if (state==1) - { - if(button==0 && (m_data->m_altPressed==0 && m_data->m_controlPressed==0)) - { - b3AlignedObjectArray rays; - b3AlignedObjectArray hitResults; - b3Vector3 camPos; - m_instancingRenderer->getCameraPosition(camPos); - - b3RayInfo ray; - ray.m_from = camPos; - ray.m_to = getRayTo(x,y); - rays.push_back(ray); - b3RayHit hit; - hit.m_hitFraction = 1.f; - hitResults.push_back(hit); - m_data->m_rigidBodyPipeline->castRays(rays,hitResults); - if (hitResults[0].m_hitFraction<1.f) - { - - int hitBodyA = hitResults[0].m_hitBody; - if (m_data->m_np->getBodiesCpu()[hitBodyA].m_invMass) - { - //printf("hit!\n"); - m_data->m_np->readbackAllBodiesToCpu(); - m_data->m_pickBody = hitBodyA; - - - - - //pivotInA - b3Vector3 pivotInB; - pivotInB.setInterpolate3(ray.m_from,ray.m_to,hitResults[0].m_hitFraction); - b3Vector3 posA; - b3Quaternion ornA; - m_data->m_np->getObjectTransformFromCpu(posA,ornA,hitBodyA); - b3Transform tr; - tr.setOrigin(posA); - tr.setRotation(ornA); - b3Vector3 pivotInA = tr.inverse()*pivotInB; - if (m_data->m_pickFixedBody<0) - { - b3Vector3 pos=b3MakeVector3(0,0,0); - b3Quaternion orn(0,0,0,1); - int fixedSphere = m_data->m_np->registerConvexHullShape(0,0,0,0);//>registerSphereShape(0.1); - m_data->m_pickFixedBody = m_data->m_rigidBodyPipeline->registerPhysicsInstance(0,pos,orn,fixedSphere,0,false); - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - m_data->m_bp->writeAabbsToGpu(); - - if (m_data->m_pickGraphicsShapeIndex<0) - { - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(point_sphere_vertices)/strideInBytes; - int numIndices = sizeof(point_sphere_indices)/sizeof(int); - m_data->m_pickGraphicsShapeIndex = m_instancingRenderer->registerShape(&point_sphere_vertices[0],numVertices,point_sphere_indices,numIndices,B3_GL_POINTS); - - float color[4] ={1,0,0,1}; - float scaling[4]={1,1,1,1}; - - m_data->m_pickGraphicsShapeInstance = m_instancingRenderer->registerGraphicsInstance(m_data->m_pickGraphicsShapeIndex,pivotInB,orn,color,scaling); - m_instancingRenderer->writeTransforms(); - delete m_data->m_instancePosOrnColor; - m_data->m_instancePosOrnColor=0; - } else - { - m_instancingRenderer->writeSingleInstanceTransformToCPU(pivotInB,orn,m_data->m_pickGraphicsShapeInstance); - m_instancingRenderer->writeSingleInstanceTransformToGPU(pivotInB,orn,m_data->m_pickGraphicsShapeInstance); - m_data->m_np->setObjectTransformCpu(pos,orn,m_data->m_pickFixedBody); - } - - } - pivotInB.w = 0.f; - m_data->m_pickPivotInA = pivotInA; - m_data->m_pickPivotInB = pivotInB; - m_data->m_rigidBodyPipeline->copyConstraintsToHost(); - m_data->m_pickConstraint = m_data->m_rigidBodyPipeline->createPoint2PointConstraint(hitBodyA,m_data->m_pickFixedBody,pivotInA,pivotInB,1e30);//hitResults[0].m_hitResult0 - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - m_data->m_np->writeAllBodiesToGpu(); - m_data->m_pickDistance = (pivotInB-camPos).length(); - - return true; - } - } - } - } else - { - if (button==0) - { - if (m_data->m_pickConstraint>=0) - { - m_data->m_rigidBodyPipeline->removeConstraintByUid(m_data->m_pickConstraint); - m_data->m_pickConstraint=-1; - } - } - } - - //printf("button=%d, state=%d\n",button,state); - return false; -} diff --git a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.h b/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.h deleted file mode 100644 index 698fb4c17..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemo.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef GPU_RIGID_BODY_DEMO_H -#define GPU_RIGID_BODY_DEMO_H - -#include "../GpuDemo.h" -#include "Bullet3Common/b3Vector3.h" - -class GpuRigidBodyDemo : public GpuDemo -{ -protected: - class GLInstancingRenderer* m_instancingRenderer; - class GLPrimitiveRenderer* m_primRenderer; - class b3gWindowInterface* m_window; - - struct GpuRigidBodyDemoInternalData* m_data; - -public: - - GpuRigidBodyDemo(); - virtual ~GpuRigidBodyDemo(); - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void destroyScene(){}; - - virtual void exitPhysics(); - - virtual const char* getName() - { - return "GRBD"; - } - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuRigidBodyDemo; - return demo; - } - - virtual void renderScene(); - - virtual void clientMoveAndDisplay(); - - //for picking - b3Vector3 getRayTo(int x,int y); - virtual bool mouseMoveCallback(float x,float y); - virtual bool mouseButtonCallback(int button, int state, float x, float y); - virtual bool keyboardCallback(int key, int state); -}; - -#endif //GPU_RIGID_BODY_DEMO_H - diff --git a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemoInternalData.h b/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemoInternalData.h deleted file mode 100644 index 9147a5080..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuRigidBodyDemoInternalData.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef GPU_RIGIDBODY_INTERNAL_DATA_H -#define GPU_RIGIDBODY_INTERNAL_DATA_H - -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3OpenCLArray.h" -#include "Bullet3Common/b3Vector3.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" - -struct GpuRigidBodyDemoInternalData -{ - - cl_kernel m_copyTransformsToVBOKernel; - - b3OpenCLArray* m_instancePosOrnColor; - - class b3GpuRigidBodyPipeline* m_rigidBodyPipeline; - - class b3GpuNarrowPhase* m_np; - class b3GpuBroadphaseInterface* m_bp; - class b3DynamicBvhBroadphase* m_broadphaseDbvt; - - b3Vector3 m_pickPivotInA; - b3Vector3 m_pickPivotInB; - float m_pickDistance; - int m_pickBody; - int m_pickConstraint; - - int m_altPressed; - int m_controlPressed; - - int m_pickFixedBody; - int m_pickGraphicsShapeIndex; - int m_pickGraphicsShapeInstance; - b3Config m_config; - - GpuRigidBodyDemoInternalData() - :m_instancePosOrnColor(0), - m_copyTransformsToVBOKernel(0), m_rigidBodyPipeline(0), - m_np(0), - m_bp(0), - m_broadphaseDbvt(0), - m_pickConstraint(-1), - m_pickFixedBody(-1), - m_pickGraphicsShapeIndex(-1), - m_pickGraphicsShapeInstance(-1), - m_pickBody(-1), - m_altPressed(0), - m_controlPressed(0) - - { - } -}; - -#endif//GPU_RIGIDBODY_INTERNAL_DATA_H - diff --git a/Demos3/GpuDemos/rigidbody/GpuSphereScene.cpp b/Demos3/GpuDemos/rigidbody/GpuSphereScene.cpp deleted file mode 100644 index b3f0f4629..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuSphereScene.cpp +++ /dev/null @@ -1,204 +0,0 @@ -#include "GpuSphereScene.h" -#include "GpuRigidBodyDemo.h" -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuRigidBodyDemoInternalData.h" -#include "Bullet3AppSupport/gwenUserInterface.h" - - - - -void GpuSphereScene::setupScene(const ConstructionInfo& ci) -{ - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - int group=1; - int mask=1; - int index=0; - bool writeInstanceToGpu = false; - - if (0) - { - float radius = 60; - int prevGraphicsShapeIndex = -1; - { - - - - if (1)//radius>=100) - { - int numVertices = sizeof(detailed_sphere_vertices)/strideInBytes; - int numIndices = sizeof(detailed_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&detailed_sphere_vertices[0],numVertices,detailed_sphere_indices,numIndices); - } else - { - bool usePointSprites = false; - if (usePointSprites) - { - int numVertices = sizeof(point_sphere_vertices)/strideInBytes; - int numIndices = sizeof(point_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&point_sphere_vertices[0],numVertices,point_sphere_indices,numIndices,B3_GL_POINTS); - } else - { - if (radius>=10) - { - int numVertices = sizeof(medium_sphere_vertices)/strideInBytes; - int numIndices = sizeof(medium_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&medium_sphere_vertices[0],numVertices,medium_sphere_indices,numIndices); - } else - { - int numVertices = sizeof(low_sphere_vertices)/strideInBytes; - int numIndices = sizeof(low_sphere_indices)/sizeof(int); - prevGraphicsShapeIndex = ci.m_instancingRenderer->registerShape(&low_sphere_vertices[0],numVertices,low_sphere_indices,numIndices); - } - } - } - - } - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - int curColor = 0; - - //int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int colIndex = m_data->m_np->registerSphereShape(radius);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - float mass = 0.f; - - //b3Vector3 position((j&1)+i*2.2,1+j*2.,(j&1)+k*2.2); - b3Vector3 position=b3MakeVector3(0,0,0); - - b3Quaternion orn(0,0,0,1); - - b3Vector4 color = colors[curColor]; - curColor++; - curColor&=3; - b3Vector4 scaling=b3MakeVector4(radius,radius,radius,1); - int id = ci.m_instancingRenderer->registerGraphicsInstance(prevGraphicsShapeIndex,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index, writeInstanceToGpu); - - index++; - - - } - - - - - - - - - - b3Vector4 colors[4] = - { - b3MakeVector4(1,0,0,1), - b3MakeVector4(0,1,0,1), - b3MakeVector4(0,1,1,1), - b3MakeVector4(1,1,0,1), - }; - - - - - - - - - - int curColor = 0; - float radius = 61; - //int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int colIndex = m_data->m_np->registerSphereShape(radius);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - int prevGraphicsShapeIndex = registerGraphicsSphereShape(ci,radius,false); - - //for (int i=0;iregisterGraphicsInstance(prevGraphicsShapeIndex,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(mass,position,orn,colIndex,index, writeInstanceToGpu); - - index++; - } - } - } - - - if (1) - { - int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - b3Vector4 scaling=b3MakeVector4(0.5,0.5,0.5,1);//1,1,1,1);//0.1,0.1,0.1,1); - int colIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector3 normal=b3MakeVector3(0,-1,0); - float constant=2; - - - for (int j=-10;j<10;j++) - for (int i=-10;i<10;i++) - for (int k=0;k<30;k++) - //int i=0;int j=0; - { - //int colIndex = m_data->m_np->registerPlaneShape(normal,constant);//>registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling); - b3Vector4 position=b3MakeVector4(2*i,70+k*2,2*j+8,0); - //b3Quaternion orn(0,0,0,1); - b3Quaternion orn(b3MakeVector3(1,0,0),0.3); - - b3Vector4 color=b3MakeVector4(0,0,1,1); - - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - int pid = m_data->m_rigidBodyPipeline->registerPhysicsInstance(1.f,position,orn,colIndex,index,false); - - index++; - } - } - - if (!writeInstanceToGpu) - { - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - } - - float camPos[4]={ci.arraySizeX,ci.arraySizeY/2,ci.arraySizeZ,0}; - //float camPos[4]={1,12.5,1.5,0}; - m_instancingRenderer->setCameraTargetPosition(camPos); - m_instancingRenderer->setCameraDistance(130); - - - char msg[1024]; - int numInstances = index; - sprintf(msg,"Num objects = %d",numInstances); - ci.m_gui->setStatusBarMessage(msg,true); -} diff --git a/Demos3/GpuDemos/rigidbody/GpuSphereScene.h b/Demos3/GpuDemos/rigidbody/GpuSphereScene.h deleted file mode 100644 index b3fcfbae1..000000000 --- a/Demos3/GpuDemos/rigidbody/GpuSphereScene.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef GPU_SPHERE_SCENE_H -#define GPU_SPHERE_SCENE_H - -#include "GpuRigidBodyDemo.h" - -class GpuSphereScene : public GpuRigidBodyDemo -{ -public: - - GpuSphereScene(){} - virtual ~GpuSphereScene(){} - virtual const char* getName() - { - return "BoxOnSphere"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuSphereScene; - return demo; - } - - virtual void setupScene(const ConstructionInfo& ci); - -}; - -#endif //GPU_SPHERE_SCENE_H diff --git a/Demos3/GpuDemos/rigidbody/bunny.inl b/Demos3/GpuDemos/rigidbody/bunny.inl deleted file mode 100644 index fbdbfd3fb..000000000 --- a/Demos3/GpuDemos/rigidbody/bunny.inl +++ /dev/null @@ -1,4 +0,0 @@ -static const char* getNodes() { return( -"454 3 0 0\n"" 0 -2.0063499999999999 0.79804200000000003 0.373554\n"" 1 -2.1011299999999999 0.90212400000000004 -0.88661400000000001\n"" 2 -1.4052100000000001 2.0628700000000002 -1.0458400000000001\n"" 3 -1.2015499999999999 1.7112400000000001 0.56249400000000005\n"" 4 0.02112 2.8512499999999998 -0.95618999999999998\n"" 5 0.011136 2.5152199999999998 0.59149200000000002\n"" 6 -1.51681 0.56199600000000005 1.42523\n"" 7 -0.977406 1.4278999999999999 1.24143\n"" 8 0.0051900000000000002 1.9088499999999999 1.41222\n"" 9 -2.4877400000000001 0.98449799999999998 -1.6695199999999999\n"" 10 -1.57328 2.1440000000000001 -1.7594799999999999\n"" 11 0.027768000000000001 2.8961600000000001 -2.0317599999999998\n"" 12 -2.4129700000000001 0.80116799999999999 -2.6594799999999998\n"" 13 -1.46269 1.9456500000000001 -2.6205799999999999\n"" 14 0.031758000000000002 2.6255500000000001 -2.7499899999999999\n"" 15 -2.0392999999999999 -0.24690000000000001 -4.0092699999999999\n"" 16 -1.4902899999999999 1.53495 -3.7649599999999999\n"" 17 0.037566000000000002 2.2566199999999998 -3.78904\n"" 18 -1.29721 -0.760656 -5.3216200000000002\n"" 19 -1.0264500000000001 0.069264000000000006 -5.2883199999999997\n"" 20 -1.0864400000000001 0.58933800000000003 -4.8886700000000003\n"" 21 -0.71934600000000004 1.3127200000000001 -4.5609200000000003\n"" 22 -0.47337000000000001 1.6606799999999999 -4.4356900000000001\n"" 23 0.040806000000000002 1.86575 -4.4139699999999999\n"" 24 -1.01305 0.61432200000000003 -5.5222899999999999\n"" 25 -0.62443199999999999 1.0636699999999999 -5.7151800000000001\n"" 26 -0.77822400000000003 1.2710900000000001 -5.0200699999999996\n"" 27 -0.59924999999999995 1.8655900000000001 -4.7962899999999999\n"" 28 0.043422000000000002 2.1701199999999998 -4.7666300000000001\n"" 29 -0.467478 1.5525199999999999 -5.5298400000000001\n"" 30 0.047742 1.6934499999999999 -5.5900800000000004\n"" 31 -1.5133300000000001 -3.3024100000000001 -3.3468599999999999\n"" 32 -1.6057999999999999 -3.6205099999999999 -3.9312499999999999\n"" 33 -2.6810299999999998 -0.71110200000000001 -2.7969499999999998\n"" 34 -2.7569300000000001 -0.55810199999999999 -1.86805\n"" 35 -2.2238699999999998 -0.60064799999999996 -0.95672400000000002\n"" 36 -2.2319 -0.55194600000000005 -0.066264000000000003\n"" 37 -1.97367 -0.58961399999999997 0.53195400000000004\n"" 38 -1.6947099999999999 -0.11317199999999999 1.8690100000000001\n"" 39 -2.11442 -0.78804600000000002 0.86941199999999996\n"" 40 -2.1847599999999998 -1.2017899999999999 1.2143299999999999\n"" 41 -1.7037899999999999 -1.3912100000000001 0.142008\n"" 42 -1.79366 -0.93130800000000002 2.2183000000000002\n"" 43 -1.7627200000000001 -0.73113600000000001 2.51458\n"" 44 -1.74098 -1.74478 0.64694399999999996\n"" 45 -1.5849899999999999 -1.6370899999999999 0.218082\n"" 46 -1.3714 -2.2354400000000001 1.7418499999999999\n"" 47 -1.14259 -1.7219800000000001 2.5314999999999999\n"" 48 -1.1462300000000001 -1.44584 3.04271\n"" 49 -1.72363 -1.65859 -0.39266400000000001\n"" 50 -1.7740499999999999 -1.6849099999999999 -1.0451999999999999\n"" 51 -2.3972199999999999 -1.87879 -2.2570000000000001\n"" 52 -2.3559999999999999 -2.9314900000000002 -2.5649600000000001\n"" 53 -1.9900100000000001 -3.4211100000000001 -2.7963200000000001\n"" 54 -1.69374 -3.7088399999999999 -3.53532\n"" 55 -2.2454299999999998 -3.5692900000000001 -1.9397899999999999\n"" 56 -2.2864300000000002 -3.77834 -2.10466\n"" 57 -2.2926700000000002 -3.7443599999999999 -1.3294600000000001\n"" 58 -1.6362099999999999 -3.39913 1.55494\n"" 59 -1.5402100000000001 -3.9804400000000002 1.7164699999999999\n"" 60 -1.6856899999999999 -2.5701499999999999 0.33473999999999998\n"" 61 -1.1098399999999999 -3.0533600000000001 1.9575899999999999\n"" 62 -1.6798299999999999 -3.1615099999999998 2.3719100000000002\n"" 63 -1.6955899999999999 -3.9803600000000001 2.4744700000000002\n"" 64 -1.1299699999999999 -2.8505600000000002 2.5077199999999999\n"" 65 -1.5803 -3.9803799999999998 2.79962\n"" 66 -1.2543800000000001 -3.9803600000000001 3.05606\n"" 67 -0.012264000000000001 -1.91774 3.31847\n"" 68 -0.0075960000000000003 -2.22756 2.4797799999999999\n"" 69 -1.3185199999999999 -2.03857 -0.24552599999999999\n"" 70 -1.54192 -1.6950700000000001 -0.038094000000000003\n"" 71 -1.6302399999999999 -1.5652900000000001 0.010584\n"" 72 -0.54714600000000002 -2.5150999999999999 -0.27547199999999999\n"" 73 -0.68966400000000005 -2.5785100000000001 -0.74843400000000004\n"" 74 -0.68381999999999998 -2.29792 -1.13124\n"" 75 -1.45807 -2.78965 -1.4571000000000001\n"" 76 -1.88889 -3.03241 -1.94861\n"" 77 0.016643999999999999 -2.6251600000000002 -1.5766\n"" 78 -0.43575000000000003 -2.5064899999999999 -1.32864\n"" 79 -0.96067199999999997 -2.8615900000000001 -1.7606999999999999\n"" 80 0.023154000000000001 -2.7205499999999998 -2.6635\n"" 81 -0.72217799999999999 -3.4893999999999998 -2.6321300000000001\n"" 82 -0.54899399999999998 -3.50515 -1.7670699999999999\n"" 83 -0.69881400000000005 -3.59917 -1.12985\n"" 84 -1.2481899999999999 -3.0818400000000001 -0.807894\n"" 85 -1.41449 -3.6600999999999999 -0.24563399999999999\n"" 86 -2.0695000000000001 -3.7349199999999998 -0.51227999999999996\n"" 87 -2.0184099999999998 -3.1911800000000001 -1.27379\n"" 88 0.011766 -2.7572999999999999 -0.81328199999999995\n"" 89 -0.34977599999999998 -2.5832199999999998 -0.26063999999999998\n"" 90 0.0082679999999999993 -2.6970700000000001 -0.226572\n"" 91 -0.78081 -3.0613299999999999 0.47486400000000001\n"" 92 0.000852 -2.8652899999999999 0.942384\n"" 93 -0.68570399999999998 -2.7192400000000001 1.8263799999999999\n"" 94 -0.003552 -2.6613500000000001 1.71241\n"" 95 -0.33728999999999998 -3.98041 1.95644\n"" 96 -0.15748799999999999 -3.4080599999999999 1.63991\n"" 97 -0.295566 -3.1863800000000002 2.3391199999999999\n"" 98 -0.76257600000000003 -3.9803899999999999 2.8759000000000001\n"" 99 -0.350304 -3.98041 2.2373500000000002\n"" 100 -1.8237699999999999 0.32519399999999998 3.7555299999999998\n"" 101 -1.6115600000000001 1.16042 3.0165999999999999\n"" 102 -1.6629499999999999 0.75673800000000002 2.6597300000000001\n"" 103 -1.72563 -0.034332000000000001 3.1910599999999998\n"" 104 -1.3883799999999999 -0.72773399999999999 3.5243199999999999\n"" 105 -1.52085 -0.490782 4.53925\n"" 106 -1.1709799999999999 -0.82781400000000005 4.3680700000000003\n"" 107 -1.00604 -0.939438 3.6563300000000001\n"" 108 -0.875502 -1.01417 4.1856\n"" 109 -0.46665600000000002 -1.28548 3.7355200000000002\n"" 110 -0.46123799999999998 -1.28983 4.17781\n"" 111 -0.014045999999999999 -1.3988100000000001 3.7371500000000002\n"" 112 -0.016379999999999999 -1.2811600000000001 4.1475999999999997\n"" 113 -0.018815999999999999 -1.15577 4.57639\n"" 114 -0.336816 -1.20733 4.58284\n"" 115 -0.68753399999999998 -0.99715200000000004 4.6243400000000001\n"" 116 -0.93086999999999998 -0.77779200000000004 4.7504299999999997\n"" 117 -1.1016699999999999 -0.35222999999999999 5.0820699999999999\n"" 118 -0.99337200000000003 0.01188 5.0003200000000003\n"" 119 -1.3205 0.11948400000000001 4.6136100000000004\n"" 120 -1.5343800000000001 0.54183599999999998 4.0246899999999997\n"" 121 -1.53356 0.68299799999999999 3.9803299999999999\n"" 122 -1.3582799999999999 1.27593 3.7064400000000002\n"" 123 -0.020202000000000001 -1.17205 4.7980799999999997\n"" 124 -0.17845800000000001 -1.26305 4.9630799999999997\n"" 125 -0.022908000000000001 -1.1687000000000001 5.2418199999999997\n"" 126 -0.024695999999999999 -0.94744200000000001 5.5876099999999997\n"" 127 -0.18768000000000001 -1.1073299999999999 5.3368599999999997\n"" 128 -0.35931000000000002 -1.10669 5.0479799999999999\n"" 129 -0.811998 -0.98599199999999998 5.2691999999999997\n"" 130 -0.51344400000000001 -1.02569 5.55328\n"" 131 -0.98299800000000004 -0.56501999999999997 5.3826799999999997\n"" 132 -0.83066399999999996 -0.62549999999999994 5.6758499999999996\n"" 133 -0.50098200000000004 -0.50960399999999995 5.8776400000000004\n"" 134 -0.026598 -0.87985199999999997 5.9152300000000002\n"" 135 -0.90429000000000004 0.19589999999999999 5.3046699999999998\n"" 136 -0.81535199999999997 -0.21312 5.6727299999999996\n"" 137 -0.42367199999999999 0.22109400000000001 5.8544\n"" 138 -0.026748000000000001 -0.25515599999999999 6.0940200000000004\n"" 139 -0.025493999999999999 0.276252 6.0194400000000003\n"" 140 -0.521814 0.79934400000000005 5.6858000000000004\n"" 141 -0.023238000000000002 0.96962999999999999 5.8229899999999999\n"" 142 -0.75326400000000004 0.84007200000000004 5.5060700000000002\n"" 143 -0.75390599999999997 1.5014799999999999 5.1456099999999996\n"" 144 -0.018762000000000001 1.70442 5.2732200000000002\n"" 145 -0.955044 0.75435600000000003 5.3332699999999997\n"" 146 -1.10284 1.1818200000000001 5.0668800000000003\n"" 147 -0.95933999999999997 1.7504200000000001 4.3948799999999997\n"" 148 -1.1969700000000001 1.2433799999999999 4.6791799999999997\n"" 149 -1.23709 0.98764799999999997 4.1595399999999998\n"" 150 -1.1178900000000001 0.96413400000000005 4.9031599999999997\n"" 151 -1.15696 1.00024 4.6936299999999997\n"" 152 -1.05067 0.66004799999999997 5.1637300000000002\n"" 153 -0.96613199999999999 0.34451999999999999 5.1306700000000003\n"" 154 -1.0339100000000001 0.21693000000000001 4.8971299999999998\n"" 155 -1.14191 0.38449800000000001 4.5636299999999999\n"" 156 -1.1704300000000001 0.77507400000000004 4.3866199999999997\n"" 157 -1.2187600000000001 2.4617200000000001 4.0832199999999998\n"" 158 -1.30006 1.85564 3.8536299999999999\n"" 159 -1.44909 1.8689100000000001 3.5269900000000001\n"" 160 -0.013254 2.19998 4.49648\n"" 161 -0.52937999999999996 2.3775900000000001 4.0718100000000002\n"" 162 -1.02088 0.65710199999999996 5.0446999999999997\n"" 163 -0.96312600000000004 0.40659600000000001 4.9839000000000002\n"" 164 -1.08928 0.83882999999999996 4.8728800000000003\n"" 165 -1.08297 0.89140799999999998 4.6565200000000004\n"" 166 -1.0815300000000001 0.77475000000000005 4.4651500000000004\n"" 167 -1.1177900000000001 0.46984799999999999 4.6161099999999999\n"" 168 -1.00573 0.363234 4.8400499999999997\n"" 169 -1.1392599999999999 0.61656 4.8154899999999996\n"" 170 -0.65003999999999995 2.7326800000000002 3.9430399999999999\n"" 171 -1.4495100000000001 3.1655500000000001 4.0157800000000003\n"" 172 -1.59406 3.0802 3.8075600000000001\n"" 173 -1.21844 2.8713000000000002 3.48916\n"" 174 -1.60063 3.85398 3.6123699999999999\n"" 175 -1.3017700000000001 3.3890799999999999 3.2126100000000002\n"" 176 -1.21326 3.1529699999999998 2.8556599999999999\n"" 177 -1.16333 2.80755 3.12364\n"" 178 -1.5950200000000001 4.5435999999999996 3.0055999999999998\n"" 179 -1.44184 3.9206400000000001 2.77929\n"" 180 -1.8554299999999999 4.6612099999999996 1.82836\n"" 181 -1.62605 4.09856 2.2921100000000001\n"" 182 -1.8726700000000001 4.0265899999999997 1.7201200000000001\n"" 183 -1.6127499999999999 3.7460499999999999 2.2633899999999998\n"" 184 -1.81474 3.2039800000000001 2.1617299999999999\n"" 185 -1.5819399999999999 3.1758600000000001 2.4753799999999999\n"" 186 -1.69387 2.4910000000000001 2.6859999999999999\n"" 187 -1.4352100000000001 2.6525799999999999 2.9736199999999999\n"" 188 -1.32026 3.4141599999999999 2.6752600000000002\n"" 189 -0.0075779999999999997 2.3737900000000001 3.6121699999999999\n"" 190 -0.34406999999999999 2.6552099999999998 3.4333399999999998\n"" 191 -0.53356199999999998 3.0379999999999998 3.1746400000000001\n"" 192 -0.75442799999999999 3.2104599999999999 3.6774800000000001\n"" 193 -0.75750600000000001 3.4630200000000002 2.8989500000000001\n"" 194 -0.89756400000000003 3.6691199999999999 3.34639\n"" 195 -0.979128 3.96475 2.9464800000000002\n"" 196 -1.0348900000000001 3.9803199999999999 2.4925000000000002\n"" 197 -0.96278399999999997 3.5502600000000002 2.2239499999999999\n"" 198 -0.93867 3.2183799999999998 2.2698100000000001\n"" 199 -0.81897600000000004 2.66615 2.5513599999999999\n"" 200 -0.573384 2.24261 2.8419500000000002\n"" 201 -0.62487599999999999 1.89547 2.9886200000000001\n"" 202 -0.0029759999999999999 2.3051599999999999 2.8429000000000002\n"" 203 -0.001098 1.7866200000000001 2.4089200000000002\n"" 204 -0.77425200000000005 1.62087 2.60697\n"" 205 0.00059999999999999995 1.63778 2.09483\n"" 206 -0.67835999999999996 1.4218999999999999 2.31332\n"" 207 0.043560000000000001 0.097865999999999995 -5.3003799999999996\n"" 208 0.047190000000000003 0.73262400000000005 -5.7368199999999998\n"" 209 -0.197052 0.69169199999999997 -5.7195099999999996\n"" 210 -0.53469 0.65069399999999999 -5.7019000000000002\n"" 211 -0.28464 0.088373999999999994 -5.2965400000000002\n"" 212 -0.62674799999999997 0.078822000000000003 -5.2924199999999999\n"" 213 -0.51863400000000004 -3.5091999999999999 -3.6500599999999999\n"" 214 -0.69015599999999999 -3.9756300000000002 -2.62039\n"" 215 -0.43009799999999998 -3.9922300000000002 -3.6383100000000002\n"" 216 -1.5472999999999999 -3.9922900000000001 -3.9483100000000002\n"" 217 -1.6352500000000001 -3.9922900000000001 -3.5523799999999999\n"" 218 -2.2279300000000002 -3.9922900000000001 -2.1217199999999998\n"" 219 -2.2341700000000002 -3.9922900000000001 -1.3465199999999999\n"" 220 -2.0110000000000001 -3.9922800000000001 -0.47173799999999999\n"" 221 -1.35599 -3.9922499999999999 -0.23388600000000001\n"" 222 -0.64031400000000005 -3.9922399999999998 -1.1181099999999999\n"" 223 -0.49049399999999999 -3.9922300000000002 -1.75532\n"" 224 0.041658000000000001 -0.54903000000000002 -5.1501200000000003\n"" 225 0.036701999999999999 -1.68591 -4.6197999999999997\n"" 226 0.026970000000000001 -3.01416 -3.3587899999999999\n"" 227 -1.1918299999999999 -1.81281 -5.0749000000000004\n"" 228 -1.4243699999999999 -3.2552599999999998 -3.5231300000000001\n"" 229 -1.62001 -1.67693 -4.0191699999999999\n"" 230 -0.80728200000000006 -0.71911199999999997 -5.7540199999999997\n"" 231 -0.31252799999999997 -0.73477800000000004 -5.6672900000000004\n"" 232 -0.74677800000000005 -1.76105 -5.3974000000000002\n"" 233 -0.28569600000000001 -1.73786 -5.2757500000000004\n"" 234 -1.0115700000000001 -3.1747899999999998 -3.9295900000000001\n"" 235 -0.59875800000000001 -3.0943100000000001 -3.8752399999999998\n"" 236 -1.1170100000000001 -3.6316899999999999 -4.3481399999999999\n"" 237 -0.67781999999999998 -3.49858 -4.2448100000000002\n"" 238 -0.64891200000000004 -3.9922499999999999 -4.2024499999999998\n"" 239 -1.0981099999999999 -3.99227 -4.3057800000000004\n"" 240 -2.0971700000000002 -2.0067499999999998 -3.0719099999999999\n"" 241 -0.84709199999999996 -2.6262300000000001 -4.7891599999999999\n"" 242 -1.2760199999999999 -2.6923499999999998 -4.4246800000000004\n"" 243 -1.56667 -2.4896699999999998 -3.6830099999999999\n"" 244 -0.46418399999999999 -2.5888800000000001 -4.6686800000000002\n"" 245 0.031043999999999999 -2.55166 -3.9095499999999999\n"" 246 0.535416 -2.5903900000000002 -4.66256\n"" 247 1.6260399999999999 -2.4944899999999999 -3.6634600000000002\n"" 248 1.34389 -2.6962999999999999 -4.4086400000000001\n"" 249 0.91964999999999997 -2.6288999999999998 -4.7783499999999997\n"" 250 2.1504799999999999 -2.0131700000000001 -3.04589\n"" 251 1.1606000000000001 -3.9956800000000001 -4.2919499999999999\n"" 252 0.71017799999999998 -3.9943 -4.1941300000000004\n"" 253 0.74109000000000003 -3.5007199999999998 -4.2361199999999997\n"" 254 1.1811100000000001 -3.6351599999999999 -4.3340699999999996\n"" 255 0.65872799999999998 -3.0962100000000001 -3.86754\n"" 256 1.0719399999999999 -3.17794 -3.91682\n"" 257 0.36694199999999999 -1.7388399999999999 -5.2717599999999996\n"" 258 0.82940400000000003 -1.7634300000000001 -5.3877499999999996\n"" 259 0.40159800000000001 -0.73585800000000001 -5.6629199999999997\n"" 260 0.89742599999999995 -0.72168600000000005 -5.7435799999999997\n"" 261 1.6859299999999999 -1.6819299999999999 -3.99892\n"" 262 1.47949 -3.2596500000000002 -3.5053399999999999\n"" 263 1.2703199999999999 -1.8165199999999999 -5.0598200000000002\n"" 264 0.52179600000000004 -3.99376 -1.74912\n"" 265 0.66380399999999995 -3.9942099999999998 -1.1101300000000001\n"" 266 1.36859 -3.9963700000000002 -0.21720600000000001\n"" 267 2.0264600000000002 -3.99838 -0.44701800000000003\n"" 268 2.2603300000000002 -3.9990800000000002 -1.319\n"" 269 2.2635900000000002 -3.9990800000000002 -2.09422\n"" 270 1.6884699999999999 -3.9973000000000001 -3.5320200000000002\n"" 271 1.60538 -3.9970400000000001 -3.9289999999999998\n"" 272 0.48447000000000001 -3.9936099999999999 -3.6327099999999999\n"" 273 0.73209599999999997 -3.9777800000000001 -2.6116799999999998\n"" 274 0.57460199999999995 -3.51085 -3.64337\n"" 275 0.71366399999999997 0.076794000000000001 -5.2842099999999999\n"" 276 0.37166399999999999 0.087384000000000003 -5.2925199999999997\n"" 277 0.62834999999999996 0.64893599999999996 -5.6947799999999997\n"" 278 0.291078 0.69095399999999996 -5.71652\n"" 279 0.676176 1.4198599999999999 2.3216199999999998\n"" 280 0.76906200000000002 1.6185400000000001 2.6164299999999998\n"" 281 0.61585800000000002 1.8935999999999999 2.9962200000000001\n"" 282 0.56720999999999999 2.2408899999999998 2.8489399999999998\n"" 283 0.81762000000000001 2.6636799999999998 2.5613700000000001\n"" 284 0.94242599999999999 3.2155399999999998 2.2813300000000001\n"" 285 0.96809999999999996 3.5473400000000002 2.2357800000000001\n"" 286 1.0382100000000001 3.9771899999999998 2.5051899999999998\n"" 287 0.97684800000000005 3.9617900000000001 2.9584600000000001\n"" 288 0.88949999999999996 3.66642 3.3573300000000001\n"" 289 0.75431400000000004 3.4607399999999999 2.90821\n"" 290 0.74093399999999998 3.2081900000000001 3.6866400000000001\n"" 291 0.52572600000000003 3.0364 3.18113\n"" 292 0.331926 2.6541899999999998 3.4374899999999999\n"" 293 1.31962 3.4101699999999999 2.69143\n"" 294 1.42859 2.64825 2.9911699999999999\n"" 295 1.6902699999999999 2.4858899999999999 2.7067299999999999\n"" 296 1.583 3.1710799999999999 2.4947599999999999\n"" 297 1.8197000000000001 3.1984900000000001 2.1839900000000001\n"" 298 1.61812 3.7411699999999999 2.2831700000000001\n"" 299 1.8855299999999999 4.0209200000000003 1.7431399999999999\n"" 300 1.6321399999999999 4.0936399999999997 2.3120599999999998\n"" 301 1.8688800000000001 4.6555900000000001 1.8511599999999999\n"" 302 1.44143 3.91628 2.7969499999999998\n"" 303 1.59371 4.53878 3.0251199999999998\n"" 304 1.15537 2.8040500000000002 3.1378300000000001\n"" 305 1.20963 3.1493099999999998 2.8704999999999998\n"" 306 1.2944599999999999 3.3851599999999999 3.2284999999999999\n"" 307 1.5898099999999999 3.8491599999999999 3.6318999999999999\n"" 308 1.2061900000000001 2.8676400000000002 3.5040100000000001\n"" 309 1.5785199999999999 3.0754000000000001 3.8269899999999999\n"" 310 1.4316899999999999 3.1612 4.0334199999999996\n"" 311 0.63185400000000003 2.7307399999999999 3.9508899999999998\n"" 312 1.1039600000000001 0.61316999999999999 4.8292299999999999\n"" 313 0.96937799999999996 0.36025200000000002 4.85215\n"" 314 1.08449 0.46652399999999999 4.6295999999999999\n"" 315 1.05101 0.77152799999999999 4.4782099999999998\n"" 316 1.0504500000000001 0.88817999999999997 4.6695799999999998\n"" 317 1.0539499999999999 0.83559000000000005 4.8860000000000001\n"" 318 0.92514600000000002 0.40374599999999999 4.9954700000000001\n"" 319 0.982908 0.65407800000000005 5.0569800000000003\n"" 320 0.50856000000000001 2.37602 4.0781700000000001\n"" 321 1.43333 1.86456 3.5446499999999999\n"" 322 1.2802800000000001 1.85175 3.8694299999999999\n"" 323 1.198 2.4580700000000002 4.09802\n"" 324 1.14086 0.77158199999999999 4.4007800000000001\n"" 325 1.109 0.38109599999999999 4.5774100000000004\n"" 326 0.99641999999999997 0.213864 4.9095700000000004\n"" 327 0.92616600000000004 0.34165800000000002 5.1422499999999998\n"" 328 1.01125 0.65693400000000002 5.1763500000000002\n"" 329 1.12432 0.99678599999999995 4.7075899999999997\n"" 330 1.08257 0.96081000000000005 4.9166299999999996\n"" 331 1.2109399999999999 0.98394599999999999 4.1745400000000004\n"" 332 1.1652400000000001 1.2398100000000001 4.6936499999999999\n"" 333 0.93262800000000001 1.74756 4.4064699999999997\n"" 334 1.0661799999999999 1.1785399999999999 5.0801600000000002\n"" 335 0.91383000000000003 0.75153599999999998 5.3447199999999997\n"" 336 0.71727600000000002 1.49926 5.1546200000000004\n"" 337 0.71021400000000001 0.83785799999999999 5.5150399999999999\n"" 338 0.47645999999999999 0.79783800000000005 5.69191\n"" 339 0.37451400000000001 0.219888 5.85928\n"" 340 0.76708200000000004 -0.21551400000000001 5.6824199999999996\n"" 341 0.86174399999999995 0.19323599999999999 5.31548\n"" 342 0.44932800000000001 -0.51103799999999999 5.8834600000000004\n"" 343 0.78110400000000002 -0.62793600000000005 5.6857199999999999\n"" 344 0.93720599999999998 -0.56791800000000003 5.3944400000000003\n"" 345 0.464196 -1.0271600000000001 5.5592699999999997\n"" 346 0.76633200000000001 -0.98837399999999997 5.2788599999999999\n"" 347 0.31602000000000002 -1.10771 5.0521099999999999\n"" 348 0.14086199999999999 -1.1078300000000001 5.33887\n"" 349 0.13575599999999999 -1.26352 4.9649999999999999\n"" 350 1.33853 1.27186 3.72296\n"" 351 1.5086599999999999 0.67840199999999995 3.9989599999999998\n"" 352 1.50851 0.53724000000000005 4.0433199999999996\n"" 353 1.28616 0.115548 4.6295700000000002\n"" 354 0.95399400000000001 0.00894 5.0122400000000003\n"" 355 1.0601799999999999 -0.35549399999999998 5.0953099999999996\n"" 356 0.89217599999999997 -0.78054599999999996 4.76159\n"" 357 0.64973999999999998 -0.99916799999999995 4.63253\n"" 358 0.29892000000000002 -1.2082900000000001 4.5867199999999997\n"" 359 0.42804599999999998 -1.2911699999999999 4.1832500000000001\n"" 360 0.438888 -1.28685 3.7410600000000001\n"" 361 0.84301199999999998 -1.01677 4.1961199999999996\n"" 362 0.980244 -0.942438 3.6684999999999999\n"" 363 1.1368 -0.83130000000000004 4.3822000000000001\n"" 364 1.48556 -0.49532399999999999 4.5576600000000003\n"" 365 1.3648100000000001 -0.73189199999999999 3.5411800000000002\n"" 366 1.70821 -0.039516000000000003 3.2120799999999998\n"" 367 1.65445 0.751722 2.6800600000000001\n"" 368 1.5999000000000001 1.1555599999999999 3.03626\n"" 369 1.8005199999999999 0.31972200000000001 3.77772\n"" 370 0.3327 -3.9836100000000001 2.2503899999999999\n"" 371 0.737124 -3.9848300000000001 2.8939400000000002\n"" 372 0.27911999999999998 -3.1894300000000002 2.3515100000000002\n"" 373 0.14894399999999999 -3.4106999999999998 1.6506400000000001\n"" 374 0.32312999999999997 -3.98359 1.9693400000000001\n"" 375 0.67697399999999996 -2.7212900000000002 1.83473\n"" 376 0.78759000000000001 -3.0636999999999999 0.48447600000000002\n"" 377 0.36704399999999998 -2.5842999999999998 -0.25625999999999999\n"" 378 2.0461100000000001 -3.1973199999999999 -1.2488999999999999\n"" 379 2.08623 -3.7412000000000001 -0.48683399999999999\n"" 380 1.42824 -3.66439 -0.22822200000000001\n"" 381 1.27058 -3.0856400000000002 -0.79246799999999995\n"" 382 0.72363 -3.6013099999999998 -1.12114\n"" 383 0.58191000000000004 -3.5068600000000001 -1.76014\n"" 384 0.76572600000000002 -3.4916499999999999 -2.6230199999999999\n"" 385 0.99541199999999996 -2.8645499999999999 -1.7487200000000001\n"" 386 0.46632000000000001 -2.5078499999999999 -1.32311\n"" 387 1.9253499999999999 -3.0381800000000001 -1.9252400000000001\n"" 388 1.4892799999999999 -2.7940999999999998 -1.4390499999999999\n"" 389 0.712584 -2.30003 -1.1226799999999999\n"" 390 0.71289599999999997 -2.5806399999999998 -0.739842\n"" 391 0.56478600000000001 -2.5167799999999998 -0.26866200000000001\n"" 392 1.64716 -1.5702400000000001 0.03066\n"" 393 1.55905 -1.6997500000000001 -0.019109999999999999\n"" 394 1.33717 -2.0425900000000001 -0.22925999999999999\n"" 395 1.2266699999999999 -3.9862799999999998 3.08012\n"" 396 1.55572 -3.9872800000000002 2.82769\n"" 397 1.1124099999999999 -2.8561200000000002 2.5303100000000001\n"" 398 1.6749799999999999 -3.9876200000000002 2.5039699999999998\n"" 399 1.6629400000000001 -3.16873 2.4012500000000001\n"" 400 1.0984100000000001 -3.0588700000000002 1.97997\n"" 401 1.6955899999999999 -2.5752600000000001 0.35545199999999999\n"" 402 1.5288999999999999 -3.98725 1.7441199999999999\n"" 403 1.62862 -3.4062399999999999 1.5838000000000001\n"" 404 2.3193700000000002 -3.7513299999999998 -1.30122\n"" 405 2.3225199999999999 -3.7852999999999999 -2.0764399999999998\n"" 406 2.2801300000000002 -3.57613 -1.9120699999999999\n"" 407 1.7476100000000001 -3.7140399999999998 -3.51424\n"" 408 2.0356800000000002 -3.42719 -2.7716799999999999\n"" 409 2.4002699999999999 -2.9386700000000001 -2.5358399999999999\n"" 410 2.4409000000000001 -1.88609 -2.2273800000000001\n"" 411 1.8035300000000001 -1.69031 -1.02329\n"" 412 1.7452000000000001 -1.6638200000000001 -0.37142999999999998\n"" 413 1.1264099999999999 -1.4492700000000001 3.0566200000000001\n"" 414 1.12819 -1.7254100000000001 2.5453999999999999\n"" 415 1.3651199999999999 -2.2395700000000001 1.75861\n"" 416 1.5991599999999999 -1.6418999999999999 0.23758199999999999\n"" 417 1.7495499999999999 -1.7500599999999999 0.66831600000000002\n"" 418 1.7514799999999999 -0.73644600000000005 2.5360999999999998\n"" 419 1.7854399999999999 -0.93671400000000005 2.2402099999999998\n"" 420 1.7196199999999999 -1.39639 0.16297200000000001\n"" 421 2.18798 -1.2083900000000001 1.2411000000000001\n"" 422 2.1231300000000002 -0.79444800000000004 0.89536800000000005\n"" 423 1.6932499999999999 -0.11829000000000001 1.8897600000000001\n"" 424 1.98712 -0.59559600000000001 0.55620599999999998\n"" 425 2.25278 -0.55871999999999999 -0.038802000000000003\n"" 426 2.2555000000000001 -0.60741599999999996 -0.92929200000000001\n"" 427 2.7998099999999999 -0.566496 -1.8340099999999999\n"" 428 2.7348300000000001 -0.71928599999999998 -2.7637900000000002\n"" 429 1.66479 -3.6254499999999998 -3.9112300000000002\n"" 430 1.56613 -3.3070599999999999 -3.3279999999999998\n"" 431 0.56176199999999998 1.5509599999999999 -5.5235300000000001\n"" 432 0.68548799999999999 1.86365 -4.7884200000000003\n"" 433 0.86539200000000005 1.2685999999999999 -5.0100100000000003\n"" 434 0.71949600000000002 1.0616399999999999 -5.70695\n"" 435 1.1043700000000001 0.611124 -5.5093199999999998\n"" 436 0.55458600000000002 1.65913 -4.4293899999999997\n"" 437 0.80102399999999996 1.3104199999999999 -4.5516100000000002\n"" 438 1.1699200000000001 0.58592999999999995 -4.87486\n"" 439 1.1132500000000001 0.066030000000000005 -5.2752100000000004\n"" 440 1.3818900000000001 -0.76470000000000005 -5.3052099999999998\n"" 441 1.5628299999999999 1.53034 -3.74627\n"" 442 2.1093999999999999 -0.253164 -3.98386\n"" 443 1.5224500000000001 1.9411400000000001 -2.6023000000000001\n"" 444 2.4696699999999998 0.793794 -2.6295799999999998\n"" 445 1.6230800000000001 2.1391800000000001 -1.7399\n"" 446 2.53288 0.97691399999999995 -1.6387799999999999\n"" 447 0.988344 1.4249400000000001 1.2534700000000001\n"" 448 1.52284 0.55740000000000001 1.44384\n"" 449 1.2216499999999999 1.7075800000000001 0.57733800000000002\n"" 450 1.44604 2.0585599999999999 -1.0283800000000001\n"" 451 2.13646 0.89572799999999997 -0.86065800000000003\n"" 452 2.0259399999999999 0.79195199999999999 0.39824399999999999\n"" 453 -0.42761063083709772 1.6952470543869633 2.5510779406671853\n""# Generated by tetgen -YY bunny.smesh \n"); } -static const char* getElements() { return( -"1374 4 0\n"" 0 395 372 399 371\n"" 1 96 46 93 44\n"" 2 135 140 137 163\n"" 3 318 326 354 313\n"" 4 133 127 128 126\n"" 5 76 83 55 218\n"" 6 193 188 198 176\n"" 7 450 443 451 1\n"" 8 437 442 438 441\n"" 9 160 336 320 144\n"" 10 79 50 51 75\n"" 11 408 378 387 273\n"" 12 94 38 47 68\n"" 13 323 308 322 311\n"" 14 339 135 163 341\n"" 15 152 135 153 145\n"" 16 333 166 160 147\n"" 17 348 346 347 342\n"" 18 446 426 451 444\n"" 19 46 92 94 93\n"" 20 208 21 26 207\n"" 21 38 360 48 413\n"" 22 229 80 243 245\n"" 23 241 229 227 242\n"" 24 34 50 35 51\n"" 25 9 33 35 34\n"" 26 103 122 121 206\n"" 27 257 260 259 440\n"" 28 142 318 163 144\n"" 29 446 443 444 451\n"" 30 272 251 252 274\n"" 31 193 199 176 198\n"" 32 165 149 147 166\n"" 33 447 3 8 449\n"" 34 29 208 209 30\n"" 35 300 285 286 299\n"" 36 100 104 119 105\n"" 37 39 44 40 41\n"" 38 315 318 313 316\n"" 39 422 417 421 419\n"" 40 382 273 264 383\n"" 41 145 143 150 146\n"" 42 406 268 405 404\n"" 43 427 411 426 428\n"" 44 323 290 308 311\n"" 45 232 18 230 227\n"" 46 243 79 80 240\n"" 47 391 412 390 389\n"" 48 360 423 107 362\n"" 49 389 71 393 392\n"" 50 142 162 163 145\n"" 51 245 247 261 80\n"" 52 376 373 375 92\n"" 53 324 352 325 362\n"" 54 119 104 106 105\n"" 55 165 149 166 151\n"" 56 428 389 411 442\n"" 57 366 351 331 352\n"" 58 166 318 316 163\n"" 59 368 281 280 350\n"" 60 315 168 313 166\n"" 61 417 422 423 419\n"" 62 279 203 205 453\n"" 63 80 243 245 226\n"" 64 416 41 420 45\n"" 65 319 330 317 335\n"" 66 15 442 225 224\n"" 67 116 131 117 129\n"" 68 335 318 337 319\n"" 69 188 197 193 198\n"" 70 326 314 325 313\n"" 71 313 315 314 325\n"" 72 451 3 449 450\n"" 73 451 449 452 450\n"" 74 299 286 300 301\n"" 75 450 1 3 2\n"" 76 107 103 120 149\n"" 77 76 82 81 79\n"" 78 81 83 218 214\n"" 79 14 10 2 11\n"" 80 22 436 437 23\n"" 81 318 144 316 163\n"" 82 420 426 425 412\n"" 83 450 14 11 445\n"" 84 262 254 429 274\n"" 85 443 442 441 444\n"" 86 356 353 364 363\n"" 87 102 122 206 101\n"" 88 315 168 325 313\n"" 89 281 331 280 350\n"" 90 107 155 120 104\n"" 91 443 426 444 451\n"" 92 123 118 354 113\n"" 93 84 220 86 83\n"" 94 268 406 405 269\n"" 95 287 293 289 286\n"" 96 17 16 443 13\n"" 97 315 168 166 325\n"" 98 283 296 297 284\n"" 99 333 144 336 160\n"" 100 450 13 1 2\n"" 101 414 423 418 419\n"" 102 331 352 324 362\n"" 103 144 315 333 316\n"" 104 21 442 16 15\n"" 105 45 72 91 69\n"" 106 437 208 21 433\n"" 107 288 310 290 306\n"" 108 213 217 214 31\n"" 109 335 327 328 341\n"" 110 109 67 48 111\n"" 111 316 314 315 312\n"" 112 45 60 91 44\n"" 113 128 118 115 116\n"" 114 423 45 38 448\n"" 115 155 362 166 325\n"" 116 130 136 132 133\n"" 117 92 72 89 91\n"" 118 145 143 142 150\n"" 119 153 140 163 142\n"" 120 317 313 312 319\n"" 121 347 118 126 354\n"" 122 148 165 147 143\n"" 123 170 157 171 173\n"" 124 78 50 74 240\n"" 125 381 273 385 378\n"" 126 337 330 335 317\n"" 127 267 273 379 268\n"" 128 80 247 261 250\n"" 129 80 225 261 245\n"" 130 80 442 261 225\n"" 131 211 24 212 20\n"" 132 398 395 399 371\n"" 133 390 389 377 391\n"" 134 308 292 290 291\n"" 135 176 191 177 199\n"" 136 318 166 313 163\n"" 137 23 16 436 17\n"" 138 354 353 325 326\n"" 139 423 362 366 279\n"" 140 415 400 375 403\n"" 141 217 239 216 213\n"" 142 377 89 88 90\n"" 143 10 12 13 9\n"" 144 155 325 113 112\n"" 145 151 164 165 150\n"" 146 113 118 128 123\n"" 147 95 97 99 96\n"" 148 449 3 8 5\n"" 149 61 99 97 64\n"" 150 223 83 222 82\n"" 151 37 38 6 39\n"" 152 0 7 6 37\n"" 153 385 430 247 250\n"" 154 108 109 110 107\n"" 155 415 401 417 403\n"" 156 102 121 122 101\n"" 157 120 107 149 156\n"" 158 104 100 119 120\n"" 159 3 4 2 5\n"" 160 207 21 224 437\n"" 161 270 273 408 430\n"" 162 80 247 226 245\n"" 163 80 228 81 243\n"" 164 43 107 48 38\n"" 165 354 340 344 341\n"" 166 312 316 313 317\n"" 167 435 275 277 439\n"" 168 27 30 29 28\n"" 169 52 76 31 240\n"" 170 338 339 163 318\n"" 171 47 43 42 48\n"" 172 61 96 59 58\n"" 173 428 389 442 261\n"" 174 194 171 192 174\n"" 175 318 339 341 338\n"" 176 417 422 416 423\n"" 177 123 124 125 128\n"" 178 113 108 115 155\n"" 179 300 285 299 298\n"" 180 320 160 189 333\n"" 181 443 35 1 13\n"" 182 96 46 44 61\n"" 183 316 314 313 315\n"" 184 119 107 155 106\n"" 185 357 325 356 361\n"" 186 224 15 21 20\n"" 187 319 336 337 317\n"" 188 306 287 307 302\n"" 189 143 141 140 144\n"" 190 366 423 279 367\n"" 191 74 73 88 89\n"" 192 447 7 8 3\n"" 193 449 8 447 5\n"" 194 436 21 22 437\n"" 195 92 72 91 45\n"" 196 153 140 142 135\n"" 197 206 121 103 149\n"" 198 35 69 389 71\n"" 199 165 168 167 166\n"" 200 12 1 13 9\n"" 201 361 112 113 325\n"" 202 195 175 193 194\n"" 203 292 304 322 321\n"" 204 337 336 144 338\n"" 205 399 372 400 371\n"" 206 332 336 334 333\n"" 207 111 68 67 48\n"" 208 389 391 393 72\n"" 209 196 179 188 195\n"" 210 104 119 155 120\n"" 211 168 166 325 155\n"" 212 112 108 113 155\n"" 213 449 425 451 452\n"" 214 220 214 83 221\n"" 215 261 246 245 225\n"" 216 93 44 46 92\n"" 217 80 255 226 247\n"" 218 384 262 247 430\n"" 219 336 144 319 337\n"" 220 144 315 316 166\n"" 221 332 336 333 316\n"" 222 175 191 194 192\n"" 223 362 353 325 363\n"" 224 110 113 115 114\n"" 225 400 370 374 402\n"" 226 319 337 335 317\n"" 227 430 262 247 248\n"" 228 324 362 315 331\n"" 229 80 228 235 81\n"" 230 347 342 126 348\n"" 231 295 283 296 297\n"" 232 306 304 305 308\n"" 233 356 353 325 354\n"" 234 21 23 437 433\n"" 235 195 174 194 178\n"" 236 192 175 177 173\n"" 237 302 287 303 286\n"" 238 208 211 26 209\n"" 239 118 128 115 113\n"" 240 351 366 369 352\n"" 241 342 344 340 343\n"" 242 118 347 123 354\n"" 243 354 168 163 313\n"" 244 356 325 363 361\n"" 245 282 321 294 304\n"" 246 268 379 267 404\n"" 247 296 305 284 283\n"" 248 290 304 308 291\n"" 249 316 318 313 319\n"" 250 143 160 147 161\n"" 251 149 201 122 147\n"" 252 38 448 45 6\n"" 253 92 415 417 94\n"" 254 225 224 261 440\n"" 255 198 185 184 186\n"" 256 7 205 447 8\n"" 257 368 351 350 367\n"" 258 74 13 12 35\n"" 259 190 147 161 158\n"" 260 270 429 262 407\n"" 261 3 4 450 2\n"" 262 15 443 442 16\n"" 263 193 188 195 196\n"" 264 342 347 340 344\n"" 265 391 393 45 416\n"" 266 92 415 94 375\n"" 267 61 60 91 58\n"" 268 60 72 69 91\n"" 269 289 283 305 291\n"" 270 96 44 93 92\n"" 271 324 362 325 315\n"" 272 13 2 14 10\n"" 273 62 63 61 64\n"" 274 144 166 160 315\n"" 275 417 423 416 94\n"" 276 449 4 450 3\n"" 277 450 13 443 1\n"" 278 352 364 365 369\n"" 279 7 448 205 6\n"" 280 225 440 261 263\n"" 281 116 155 119 118\n"" 282 2 4 450 11\n"" 283 416 377 92 89\n"" 284 376 403 415 375\n"" 285 417 376 415 92\n"" 286 416 377 89 391\n"" 287 249 262 246 256\n"" 288 336 317 316 330\n"" 289 47 43 48 38\n"" 290 354 168 313 113\n"" 291 115 168 118 113\n"" 292 34 50 51 33\n"" 293 166 169 167 165\n"" 294 319 316 317 313\n"" 295 318 144 337 319\n"" 296 354 325 313 326\n"" 297 30 436 433 431\n"" 298 289 283 291 284\n"" 299 58 91 96 59\n"" 300 185 182 183 197\n"" 301 224 438 276 437\n"" 302 15 442 80 225\n"" 303 111 110 112 109\n"" 304 52 76 240 51\n"" 305 208 26 30 29\n"" 306 7 449 3 447\n"" 307 296 294 283 295\n"" 308 306 291 289 305\n"" 309 338 140 141 144\n"" 310 331 352 351 324\n"" 311 322 281 333 320\n"" 312 83 81 76 82\n"" 313 384 262 274 255\n"" 314 60 45 91 69\n"" 315 15 20 19 16\n"" 316 197 188 193 196\n"" 317 80 229 225 245\n"" 318 18 233 227 232\n"" 319 344 345 343 342\n"" 320 417 414 94 415\n"" 321 443 16 441 442\n"" 322 177 199 187 176\n"" 323 149 206 121 453\n"" 324 350 279 331 280\n"" 325 181 188 196 179\n"" 326 102 121 101 103\n"" 327 347 357 354 356\n"" 328 338 327 318 337\n"" 329 337 330 334 335\n"" 330 319 336 317 316\n"" 331 193 175 188 176\n"" 332 164 143 162 165\n"" 333 120 104 100 103\n"" 334 376 416 92 417\n"" 335 113 325 155 168\n"" 336 416 376 92 391\n"" 337 420 45 41 393\n"" 338 249 262 248 246\n"" 339 147 189 161 160\n"" 340 18 231 224 233\n"" 341 71 45 70 41\n"" 342 126 341 135 339\n"" 343 21 23 22 437\n"" 344 148 165 143 151\n"" 345 337 327 318 335\n"" 346 354 318 313 163\n"" 347 115 118 155 116\n"" 348 341 340 338 339\n"" 349 166 168 313 163\n"" 350 166 318 313 315\n"" 351 48 68 67 47\n"" 352 150 162 145 152\n"" 353 140 339 137 163\n"" 354 199 185 187 176\n"" 355 333 144 316 336\n"" 356 338 327 337 341\n"" 357 389 70 72 393\n"" 358 331 366 350 351\n"" 359 94 45 92 44\n"" 360 9 33 12 35\n"" 361 126 139 137 138\n"" 362 321 295 282 294\n"" 363 135 140 136 137\n"" 364 153 162 163 152\n"" 365 325 362 363 361\n"" 366 80 235 226 81\n"" 367 74 377 89 88\n"" 368 13 14 450 443\n"" 369 157 172 158 171\n"" 370 450 443 14 445\n"" 371 155 107 120 156\n"" 372 135 339 163 137\n"" 373 365 325 352 362\n"" 374 153 140 135 163\n"" 375 448 206 205 6\n"" 376 137 141 139 339\n"" 377 103 107 120 104\n"" 378 448 425 447 452\n"" 379 165 162 168 163\n"" 380 76 83 79 87\n"" 381 420 45 393 416\n"" 382 334 329 330 336\n"" 383 89 45 92 416\n"" 384 181 195 179 196\n"" 385 420 448 41 416\n"" 386 438 277 435 275\n"" 387 400 399 402 403\n"" 388 304 296 283 305\n"" 389 170 158 190 161\n"" 390 387 386 388 250\n"" 391 54 218 217 53\n"" 392 311 304 308 322\n"" 393 149 281 201 189\n"" 394 211 24 209 212\n"" 395 166 333 149 147\n"" 396 426 424 420 425\n"" 397 394 376 401 416\n"" 398 147 159 122 158\n"" 399 202 203 201 453\n"" 400 280 203 279 453\n"" 401 135 126 339 137\n"" 402 449 4 3 5\n"" 403 14 2 450 11\n"" 404 126 125 127 347\n"" 405 423 413 38 414\n"" 406 185 198 188 176\n"" 407 144 163 142 162\n"" 408 201 122 204 453\n"" 409 447 425 451 449\n"" 410 290 289 306 291\n"" 411 35 69 71 49\n"" 412 207 224 211 231\n"" 413 135 154 163 118\n"" 414 126 118 341 354\n"" 415 191 175 194 193\n"" 416 436 16 437 17\n"" 417 420 422 416 421\n"" 418 135 142 153 145\n"" 419 15 443 16 13\n"" 420 440 275 259 224\n"" 421 416 421 422 417\n"" 422 442 275 440 224\n"" 423 347 340 354 126\n"" 424 254 256 253 274\n"" 425 34 50 33 35\n"" 426 176 191 175 177\n"" 427 433 278 434 277\n"" 428 175 191 192 177\n"" 429 101 206 102 204\n"" 430 132 135 136 130\n"" 431 49 35 50 36\n"" 432 353 356 325 363\n"" 433 435 277 433 434\n"" 434 224 275 276 438\n"" 435 212 230 18 19\n"" 436 143 150 148 151\n"" 437 235 228 243 234\n"" 438 29 22 26 30\n"" 439 125 347 349 123\n"" 440 237 234 235 236\n"" 441 144 336 319 316\n"" 442 165 316 166 144\n"" 443 142 318 338 163\n"" 444 137 141 140 139\n"" 445 447 279 205 448\n"" 446 106 116 108 155\n"" 447 217 238 239 215\n"" 448 16 17 443 441\n"" 449 407 262 270 430\n"" 450 88 74 389 77\n"" 451 78 79 80 81\n"" 452 126 138 134 342\n"" 453 165 150 143 151\n"" 454 409 430 387 250\n"" 455 128 118 116 131\n"" 456 339 126 340 342\n"" 457 173 192 171 170\n"" 458 400 376 403 373\n"" 459 15 18 212 224\n"" 460 37 49 36 35\n"" 461 81 82 83 214\n"" 462 173 157 171 172\n"" 463 220 214 219 83\n"" 464 114 113 128 123\n"" 465 366 423 367 418\n"" 466 379 273 378 406\n"" 467 30 436 23 433\n"" 468 23 432 28 436\n"" 469 147 144 160 143\n"" 470 79 243 31 240\n"" 471 33 74 50 240\n"" 472 342 348 345 126\n"" 473 94 416 417 92\n"" 474 416 377 391 92\n"" 475 147 158 149 157\n"" 476 273 274 384 430\n"" 477 203 281 201 453\n"" 478 243 235 245 226\n"" 479 18 229 227 225\n"" 480 45 72 69 70\n"" 481 189 149 147 201\n"" 482 175 195 193 188\n"" 483 362 107 155 166\n"" 484 185 199 198 176\n"" 485 331 166 333 149\n"" 486 31 76 81 79\n"" 487 323 290 310 308\n"" 488 43 107 104 48\n"" 489 436 16 21 437\n"" 490 368 279 350 280\n"" 491 424 416 423 448\n"" 492 150 142 164 143\n"" 493 258 248 246 249\n"" 494 381 383 385 273\n"" 495 73 49 72 74\n"" 496 117 106 119 116\n"" 497 74 377 88 389\n"" 498 408 273 387 384\n"" 499 191 170 173 190\n"" 500 199 177 200 191\n"" 501 13 80 74 12\n"" 502 130 135 128 131\n"" 503 92 90 89 377\n"" 504 84 219 83 86\n"" 505 408 378 273 406\n"" 506 386 384 80 385\n"" 507 392 426 389 420\n"" 508 80 79 243 81\n"" 509 158 177 173 190\n"" 510 377 72 89 391\n"" 511 394 376 416 391\n"" 512 442 224 440 261\n"" 513 130 131 129 132\n"" 514 95 63 61 59\n"" 515 252 274 253 272\n"" 516 273 274 272 384\n"" 517 225 263 246 257\n"" 518 76 52 31 53\n"" 519 243 79 31 81\n"" 520 448 420 424 416\n"" 521 347 358 349 123\n"" 522 138 137 126 133\n"" 523 368 279 367 350\n"" 524 38 360 413 423\n"" 525 165 168 166 163\n"" 526 207 211 26 208\n"" 527 54 217 32 228\n"" 528 125 347 348 349\n"" 529 118 347 128 123\n"" 530 423 94 45 416\n"" 531 250 389 428 261\n"" 532 119 116 118 117\n"" 533 358 113 347 357\n"" 534 168 164 165 169\n"" 535 242 235 243 234\n"" 536 354 318 341 327\n"" 537 226 247 255 245\n"" 538 377 72 389 74\n"" 539 168 354 163 118\n"" 540 163 316 166 165\n"" 541 145 163 142 153\n"" 542 262 80 247 255\n"" 543 281 304 292 321\n"" 544 12 1 9 35\n"" 545 392 426 420 412\n"" 546 51 79 76 240\n"" 547 274 270 273 272\n"" 548 270 274 273 430\n"" 549 329 331 332 324\n"" 550 325 313 168 113\n"" 551 306 304 308 290\n"" 552 71 35 49 41\n"" 553 348 346 342 345\n"" 554 270 262 274 430\n"" 555 353 363 365 364\n"" 556 29 22 30 27\n"" 557 447 425 424 451\n"" 558 53 31 217 54\n"" 559 194 171 175 192\n"" 560 29 25 209 210\n"" 561 123 358 349 113\n"" 562 80 385 384 247\n"" 563 204 202 201 453\n"" 564 259 225 440 224\n"" 565 128 347 125 123\n"" 566 111 68 48 413\n"" 567 48 68 47 414\n"" 568 415 68 414 94\n"" 569 437 208 207 21\n"" 570 424 1 3 451\n"" 571 447 452 449 448\n"" 572 389 390 377 88\n"" 573 158 170 190 173\n"" 574 169 165 168 167\n"" 575 155 154 119 118\n"" 576 115 168 155 118\n"" 577 354 168 113 118\n"" 578 147 201 161 189\n"" 579 115 168 113 155\n"" 580 168 166 155 167\n"" 581 259 225 257 440\n"" 582 263 247 261 246\n"" 583 281 279 201 453\n"" 584 128 135 136 126\n"" 585 275 260 439 440\n"" 586 66 63 65 64\n"" 587 277 438 276 275\n"" 588 163 339 341 318\n"" 589 325 314 324 315\n"" 590 338 327 341 318\n"" 591 319 327 328 335\n"" 592 391 45 89 416\n"" 593 203 281 280 202\n"" 594 362 423 206 279\n"" 595 239 237 213 238\n"" 596 362 353 365 325\n"" 597 80 235 243 226\n"" 598 80 228 243 235\n"" 599 15 21 20 16\n"" 600 31 214 81 53\n"" 601 227 244 233 225\n"" 602 442 21 224 15\n"" 603 284 293 298 285\n"" 604 233 18 227 225\n"" 605 18 233 224 225\n"" 606 205 203 204 453\n"" 607 163 154 168 118\n"" 608 208 21 433 26\n"" 609 443 389 442 444\n"" 610 27 23 30 28\n"" 611 54 218 56 217\n"" 612 391 412 389 393\n"" 613 9 13 10 1\n"" 614 61 44 96 91\n"" 615 316 314 312 313\n"" 616 416 376 401 417\n"" 617 116 108 155 115\n"" 618 106 107 155 108\n"" 619 442 389 411 426\n"" 620 164 142 162 143\n"" 621 321 294 322 295\n"" 622 144 165 143 147\n"" 623 357 325 313 354\n"" 624 389 35 41 426\n"" 625 448 7 205 447\n"" 626 227 244 229 241\n"" 627 206 38 103 102\n"" 628 206 448 205 279\n"" 629 10 4 2 11\n"" 630 246 256 245 255\n"" 631 37 49 35 41\n"" 632 128 127 124 125\n"" 633 126 138 133 134\n"" 634 312 318 319 313\n"" 635 81 235 226 213\n"" 636 213 228 235 234\n"" 637 228 81 243 31\n"" 638 81 228 235 213\n"" 639 317 336 337 330\n"" 640 330 336 337 334\n"" 641 316 330 317 329\n"" 642 319 330 335 328\n"" 643 231 18 232 233\n"" 644 18 231 232 230\n"" 645 17 437 436 441\n"" 646 287 307 302 303\n"" 647 287 306 307 288\n"" 648 303 288 287 307\n"" 649 323 320 333 311\n"" 650 393 420 416 392\n"" 651 79 51 76 75\n"" 652 336 329 316 332\n"" 653 213 236 234 237\n"" 654 76 31 81 53\n"" 655 45 72 391 89\n"" 656 31 76 79 240\n"" 657 395 372 397 399\n"" 658 393 45 41 70\n"" 659 45 416 94 92\n"" 660 211 21 224 207\n"" 661 376 417 415 401\n"" 662 262 254 274 256\n"" 663 320 304 292 311\n"" 664 1 10 9 2\n"" 665 162 165 168 164\n"" 666 385 247 80 250\n"" 667 371 400 370 372\n"" 668 384 247 385 430\n"" 669 128 130 131 129\n"" 670 443 13 442 80\n"" 671 284 293 289 305\n"" 672 448 206 6 423\n"" 673 360 107 109 362\n"" 674 112 360 359 111\n"" 675 287 305 306 289\n"" 676 362 325 112 361\n"" 677 362 166 325 315\n"" 678 437 17 16 441\n"" 679 438 277 276 433\n"" 680 200 189 190 201\n"" 681 416 422 424 423\n"" 682 320 292 281 189\n"" 683 110 108 113 112\n"" 684 108 110 113 115\n"" 685 144 318 316 319\n"" 686 250 386 389 80\n"" 687 166 318 315 316\n"" 688 63 62 59 58\n"" 689 319 327 335 318\n"" 690 337 327 335 341\n"" 691 1 450 3 451\n"" 692 239 237 236 213\n"" 693 21 442 437 16\n"" 694 450 443 445 451\n"" 695 14 13 450 2\n"" 696 39 44 42 40\n"" 697 363 357 356 361\n"" 698 350 366 367 351\n"" 699 331 366 362 279\n"" 700 368 366 369 351\n"" 701 47 43 38 42\n"" 702 140 339 163 338\n"" 703 289 285 293 284\n"" 704 339 141 338 140\n"" 705 137 141 339 140\n"" 706 234 216 213 32\n"" 707 273 408 430 384\n"" 708 273 270 408 269\n"" 709 84 220 83 85\n"" 710 158 170 157 161\n"" 711 255 262 274 256\n"" 712 304 282 283 294\n"" 713 83 218 219 87\n"" 714 377 72 74 89\n"" 715 206 205 204 453\n"" 716 446 443 451 445\n"" 717 304 292 322 320\n"" 718 155 362 112 107\n"" 719 292 283 304 282\n"" 720 443 1 426 451\n"" 721 149 362 166 107\n"" 722 272 271 274 270\n"" 723 306 287 289 288\n"" 724 366 331 350 279\n"" 725 331 366 352 362\n"" 726 61 95 96 97\n"" 727 224 442 275 438\n"" 728 273 387 384 385\n"" 729 262 271 429 270\n"" 730 185 182 197 184\n"" 731 153 162 145 163\n"" 732 74 443 35 426\n"" 733 41 389 426 420\n"" 734 40 47 46 44\n"" 735 262 246 247 248\n"" 736 1 37 3 0\n"" 737 433 432 431 436\n"" 738 23 432 436 30\n"" 739 67 360 413 111\n"" 740 109 360 112 111\n"" 741 361 360 112 362\n"" 742 246 258 249 257\n"" 743 87 218 219 55\n"" 744 151 149 166 156\n"" 745 165 149 151 148\n"" 746 149 165 147 148\n"" 747 155 154 118 168\n"" 748 217 214 218 215\n"" 749 31 214 53 217\n"" 750 291 304 283 305\n"" 751 23 16 22 436\n"" 752 143 162 165 144\n"" 753 103 102 100 101\n"" 754 195 175 179 188\n"" 755 182 196 197 180\n"" 756 400 376 375 403\n"" 757 149 281 189 331\n"" 758 146 143 150 148\n"" 759 150 146 152 145\n"" 760 168 162 164 169\n"" 761 262 384 274 430\n"" 762 54 218 53 56\n"" 763 125 127 347 128\n"" 764 304 306 291 290\n"" 765 262 80 384 247\n"" 766 153 162 152 145\n"" 767 150 162 152 164\n"" 768 168 162 169 163\n"" 769 262 80 255 384\n"" 770 38 68 414 47\n"" 771 423 206 38 107\n"" 772 46 68 94 47\n"" 773 385 430 250 387\n"" 774 413 68 48 414\n"" 775 46 68 93 94\n"" 776 41 416 448 45\n"" 777 111 68 413 67\n"" 778 77 88 74 73\n"" 779 393 41 420 392\n"" 780 274 256 253 255\n"" 781 26 23 433 30\n"" 782 218 217 53 214\n"" 783 231 212 18 224\n"" 784 446 426 444 427\n"" 785 113 114 128 115\n"" 786 128 114 123 124\n"" 787 285 289 293 286\n"" 788 301 285 299 286\n"" 789 300 285 298 286\n"" 790 297 285 298 299\n"" 791 26 23 30 22\n"" 792 44 38 94 45\n"" 793 187 158 159 177\n"" 794 218 76 81 53\n"" 795 162 143 142 144\n"" 796 397 373 400 372\n"" 797 164 142 145 162\n"" 798 128 135 126 118\n"" 799 289 283 284 305\n"" 800 282 189 281 292\n"" 801 200 186 187 199\n"" 802 21 24 211 20\n"" 803 11 13 14 10\n"" 804 2 13 1 10\n"" 805 72 377 389 391\n"" 806 74 72 73 89\n"" 807 92 72 45 89\n"" 808 413 366 418 362\n"" 809 281 304 282 292\n"" 810 429 251 274 254\n"" 811 438 439 275 435\n"" 812 37 424 1 3\n"" 813 202 189 201 281\n"" 814 333 189 320 281\n"" 815 94 38 68 423\n"" 816 389 261 250 80\n"" 817 242 241 235 234\n"" 818 364 366 365 369\n"" 819 302 305 306 287\n"" 820 362 366 352 365\n"" 821 350 366 279 367\n"" 822 368 366 351 367\n"" 823 191 176 175 193\n"" 824 173 191 177 192\n"" 825 103 121 101 100\n"" 826 176 191 199 193\n"" 827 191 177 200 190\n"" 828 275 442 439 438\n"" 829 275 442 440 439\n"" 830 224 442 225 261\n"" 831 442 224 437 438\n"" 832 258 246 263 257\n"" 833 386 384 385 383\n"" 834 149 333 331 189\n"" 835 318 326 327 354\n"" 836 207 437 224 276\n"" 837 56 76 218 53\n"" 838 350 333 322 281\n"" 839 37 38 45 6\n"" 840 232 244 227 241\n"" 841 423 206 6 38\n"" 842 411 386 250 410\n"" 843 224 229 18 225\n"" 844 6 423 38 448\n"" 845 218 57 219 55\n"" 846 68 423 38 414\n"" 847 377 376 391 92\n"" 848 415 376 375 92\n"" 849 103 121 100 120\n"" 850 101 121 122 100\n"" 851 102 121 103 122\n"" 852 7 206 6 205\n"" 853 38 206 6 102\n"" 854 107 38 103 206\n"" 855 448 206 423 279\n"" 856 298 305 284 296\n"" 857 30 432 436 431\n"" 858 23 432 30 28\n"" 859 119 107 104 155\n"" 860 142 337 318 144\n"" 861 107 103 43 104\n"" 862 426 424 425 451\n"" 863 107 156 155 166\n"" 864 119 107 106 104\n"" 865 156 107 149 166\n"" 866 103 107 43 38\n"" 867 103 122 206 102\n"" 868 448 41 45 37\n"" 869 423 416 45 448\n"" 870 81 228 213 31\n"" 871 217 239 213 215\n"" 872 403 376 415 401\n"" 873 443 74 80 389\n"" 874 135 163 341 118\n"" 875 133 126 136 137\n"" 876 228 216 213 217\n"" 877 447 451 7 449\n"" 878 71 41 393 392\n"" 879 282 321 304 281\n"" 880 95 63 99 61\n"" 881 185 197 183 188\n"" 882 433 23 437 436\n"" 883 212 24 210 19\n"" 884 257 260 440 258\n"" 885 184 197 185 198\n"" 886 175 178 195 179\n"" 887 61 60 58 44\n"" 888 362 363 361 365\n"" 889 447 451 424 7\n"" 890 132 135 130 131\n"" 891 61 91 96 58\n"" 892 385 430 387 384\n"" 893 127 133 130 126\n"" 894 80 274 226 255\n"" 895 80 274 255 384\n"" 896 219 87 86 84\n"" 897 275 259 224 276\n"" 898 18 229 15 227\n"" 899 320 304 311 322\n"" 900 23 21 26 433\n"" 901 109 38 48 107\n"" 902 342 139 126 138\n"" 903 21 23 26 22\n"" 904 426 428 444 427\n"" 905 331 166 362 315\n"" 906 122 206 204 453\n"" 907 12 1 35 13\n"" 908 189 331 281 333\n"" 909 35 9 34 1\n"" 910 426 412 389 411\n"" 911 287 305 289 293\n"" 912 320 160 333 336\n"" 913 0 35 37 36\n"" 914 262 255 247 256\n"" 915 353 352 325 324\n"" 916 336 329 330 316\n"" 917 275 260 440 259\n"" 918 16 442 437 441\n"" 919 380 378 273 381\n"" 920 7 424 447 448\n"" 921 400 376 373 375\n"" 922 222 223 214 83\n"" 923 30 22 23 27\n"" 924 262 271 274 429\n"" 925 45 44 37 41\n"" 926 380 265 382 273\n"" 927 149 333 189 147\n"" 928 242 245 229 243\n"" 929 131 135 128 118\n"" 930 245 256 247 255\n"" 931 391 412 393 394\n"" 932 99 61 97 95\n"" 933 281 203 280 453\n"" 934 350 333 331 322\n"" 935 41 71 393 70\n"" 936 398 400 399 402\n"" 937 323 309 308 310\n"" 938 37 3 0 7\n"" 939 72 393 45 391\n"" 940 408 270 430 407\n"" 941 40 47 44 42\n"" 942 298 305 293 284\n"" 943 250 385 386 80\n"" 944 266 379 273 380\n"" 945 191 170 192 173\n"" 946 364 354 356 355\n"" 947 200 186 159 187\n"" 948 159 147 190 158\n"" 949 229 244 225 245\n"" 950 427 250 411 428\n"" 951 342 347 126 340\n"" 952 13 80 12 15\n"" 953 342 346 347 344\n"" 954 268 273 379 406\n"" 955 352 365 366 369\n"" 956 78 50 240 51\n"" 957 322 321 304 294\n"" 958 183 180 196 182\n"" 959 266 379 267 273\n"" 960 58 59 60 91\n"" 961 405 273 269 406\n"" 962 84 220 85 86\n"" 963 81 82 214 223\n"" 964 21 24 26 211\n"" 965 87 219 86 57\n"" 966 442 411 428 426\n"" 967 35 443 1 426\n"" 968 47 44 94 46\n"" 969 357 325 113 313\n"" 970 313 357 354 113\n"" 971 31 217 228 213\n"" 972 99 61 66 64\n"" 973 144 166 147 160\n"" 974 298 284 285 297\n"" 975 398 400 371 399\n"" 976 51 78 50 79\n"" 977 298 284 297 296\n"" 978 7 451 3 449\n"" 979 281 279 280 331\n"" 980 158 177 190 159\n"" 981 117 106 105 119\n"" 982 278 276 277 433\n"" 983 200 122 201 177\n"" 984 72 35 389 74\n"" 985 54 228 31 217\n"" 986 379 406 378 404\n"" 987 347 127 126 128\n"" 988 109 362 112 360\n"" 989 126 339 340 341\n"" 990 142 338 140 163\n"" 991 38 44 47 42\n"" 992 150 142 145 164\n"" 993 426 424 451 420\n"" 994 431 208 433 30\n"" 995 437 207 433 276\n"" 996 135 154 153 163\n"" 997 163 341 354 318\n"" 998 443 13 74 35\n"" 999 143 142 144 140\n"" 1000 320 322 323 333\n"" 1001 122 147 158 149\n"" 1002 112 359 361 113\n"" 1003 359 112 361 360\n"" 1004 149 121 201 453\n"" 1005 361 358 113 359\n"" 1006 361 113 357 325\n"" 1007 113 359 358 112\n"" 1008 409 388 410 250\n"" 1009 71 69 389 70\n"" 1010 430 409 387 408\n"" 1011 32 217 216 228\n"" 1012 400 374 372 373\n"" 1013 419 422 423 421\n"" 1014 51 78 79 240\n"" 1015 387 386 250 385\n"" 1016 48 360 109 111\n"" 1017 438 277 433 435\n"" 1018 316 331 329 315\n"" 1019 74 50 49 35\n"" 1020 302 305 287 293\n"" 1021 287 293 286 302\n"" 1022 258 440 257 263\n"" 1023 188 183 181 196\n"" 1024 1 426 41 35\n"" 1025 236 216 213 234\n"" 1026 292 283 291 304\n"" 1027 381 383 273 382\n"" 1028 50 15 33 35\n"" 1029 79 240 78 80\n"" 1030 177 122 201 190\n"" 1031 307 308 309 310\n"" 1032 229 240 33 243\n"" 1033 200 187 177 199\n"" 1034 31 214 213 81\n"" 1035 128 133 126 136\n"" 1036 37 424 448 41\n"" 1037 263 247 246 248\n"" 1038 444 389 442 426\n"" 1039 423 417 414 94\n"" 1040 177 190 191 173\n"" 1041 417 419 415 421\n"" 1042 300 293 302 286\n"" 1043 442 13 15 80\n"" 1044 121 103 149 120\n"" 1045 136 126 135 137\n"" 1046 201 122 121 149\n"" 1047 331 316 333 315\n"" 1048 18 19 15 212\n"" 1049 38 45 423 94\n"" 1050 113 347 354 123\n"" 1051 273 405 269 408\n"" 1052 26 208 30 433\n"" 1053 431 208 278 433\n"" 1054 429 251 271 274\n"" 1055 109 38 360 48\n"" 1056 400 398 371 370\n"" 1057 174 173 175 171\n"" 1058 149 362 107 206\n"" 1059 245 242 229 244\n"" 1060 417 423 414 419\n"" 1061 185 199 186 198\n"" 1062 158 170 173 157\n"" 1063 177 122 190 159\n"" 1064 308 292 311 290\n"" 1065 380 378 379 273\n"" 1066 218 81 214 53\n"" 1067 232 244 233 227\n"" 1068 72 49 35 74\n"" 1069 235 245 226 244\n"" 1070 234 243 242 228\n"" 1071 316 331 332 329\n"" 1072 451 41 424 1\n"" 1073 362 353 363 365\n"" 1074 224 20 21 211\n"" 1075 258 248 263 246\n"" 1076 393 389 392 412\n"" 1077 212 15 224 20\n"" 1078 342 346 344 345\n"" 1079 229 74 240 80\n"" 1080 302 301 300 286\n"" 1081 203 202 204 453\n"" 1082 216 234 236 32\n"" 1083 386 388 410 411\n"" 1084 144 163 165 316\n"" 1085 347 344 346 356\n"" 1086 21 442 224 437\n"" 1087 190 122 201 147\n"" 1088 6 424 7 448\n"" 1089 269 270 408 407\n"" 1090 126 125 347 348\n"" 1091 37 44 45 38\n"" 1092 393 72 45 70\n"" 1093 413 423 418 414\n"" 1094 31 32 54 53\n"" 1095 29 22 27 26\n"" 1096 403 376 401 402\n"" 1097 83 220 221 85\n"" 1098 433 207 278 276\n"" 1099 218 57 55 56\n"" 1100 155 116 119 106\n"" 1101 173 175 171 192\n"" 1102 244 225 245 233\n"" 1103 158 173 172 157\n"" 1104 281 203 201 202\n"" 1105 344 354 356 347\n"" 1106 315 144 333 160\n"" 1107 392 426 412 389\n"" 1108 87 83 79 84\n"" 1109 347 358 357 349\n"" 1110 342 139 339 126\n"" 1111 126 341 340 354\n"" 1112 37 424 3 7\n"" 1113 210 29 25 26\n"" 1114 261 389 442 80\n"" 1115 107 112 155 108\n"" 1116 389 250 428 411\n"" 1117 80 12 15 74\n"" 1118 380 265 273 266\n"" 1119 190 122 147 159\n"" 1120 142 338 144 140\n"" 1121 109 362 107 112\n"" 1122 362 423 366 418\n"" 1123 97 66 98 64\n"" 1124 300 293 286 298\n"" 1125 130 136 133 128\n"" 1126 389 77 80 386\n"" 1127 142 337 338 318\n"" 1128 56 76 55 218\n"" 1129 214 82 83 223\n"" 1130 246 261 263 225\n"" 1131 35 12 15 33\n"" 1132 420 1 451 426\n"" 1133 63 99 61 66\n"" 1134 96 44 92 91\n"" 1135 219 214 218 83\n"" 1136 323 308 309 322\n"" 1137 224 229 225 15\n"" 1138 38 413 48 414\n"" 1139 281 149 279 331\n"" 1140 183 188 197 196\n"" 1141 180 195 181 196\n"" 1142 50 15 35 74\n"" 1143 113 347 357 354\n"" 1144 331 166 315 333\n"" 1145 19 15 212 20\n"" 1146 69 389 70 72\n"" 1147 216 236 213 239\n"" 1148 6 424 448 37\n"" 1149 74 229 33 15\n"" 1150 185 199 187 186\n"" 1151 71 389 41 392\n"" 1152 195 174 175 194\n"" 1153 398 400 402 370\n"" 1154 282 283 294 295\n"" 1155 244 227 229 225\n"" 1156 308 310 306 290\n"" 1157 288 310 306 307\n"" 1158 307 308 310 306\n"" 1159 251 274 254 252\n"" 1160 55 219 87 57\n"" 1161 64 63 65 62\n"" 1162 15 13 16 12\n"" 1163 190 201 189 161\n"" 1164 316 331 333 332\n"" 1165 329 331 324 315\n"" 1166 364 354 353 356\n"" 1167 166 144 147 165\n"" 1168 334 329 336 332\n"" 1169 420 422 424 416\n"" 1170 350 333 281 331\n"" 1171 322 292 321 281\n"" 1172 209 24 210 212\n"" 1173 424 37 1 41\n"" 1174 269 407 408 405\n"" 1175 429 430 407 408\n"" 1176 15 443 13 442\n"" 1177 214 221 222 83\n"" 1178 13 17 16 14\n"" 1179 333 166 315 160\n"" 1180 224 20 211 212\n"" 1181 122 201 121 453\n"" 1182 246 247 245 256\n"" 1183 391 393 416 394\n"" 1184 37 44 38 39\n"" 1185 344 354 355 356\n"" 1186 189 147 333 160\n"" 1187 437 208 433 207\n"" 1188 181 195 178 179\n"" 1189 403 376 402 373\n"" 1190 183 180 181 196\n"" 1191 433 276 438 437\n"" 1192 380 273 382 381\n"" 1193 209 24 26 210\n"" 1194 379 406 404 268\n"" 1195 7 451 424 3\n"" 1196 400 402 373 403\n"" 1197 21 207 211 26\n"" 1198 451 41 1 420\n"" 1199 201 149 279 281\n"" 1200 347 344 354 340\n"" 1201 419 417 415 414\n"" 1202 344 345 346 343\n"" 1203 79 83 76 82\n"" 1204 128 133 130 127\n"" 1205 6 424 37 7\n"" 1206 190 147 201 161\n"" 1207 87 218 55 83\n"" 1208 39 44 41 37\n"" 1209 245 242 235 243\n"" 1210 389 41 392 420\n"" 1211 24 212 20 19\n"" 1212 451 41 420 424\n"" 1213 78 75 50 79\n"" 1214 440 257 263 225\n"" 1215 81 83 76 218\n"" 1216 385 378 387 381\n"" 1217 430 387 384 408\n"" 1218 329 315 324 316\n"" 1219 281 280 279 453\n"" 1220 279 205 206 453\n"" 1221 253 254 274 252\n"" 1222 325 357 356 354\n"" 1223 443 17 13 14\n"" 1224 322 292 281 320\n"" 1225 399 372 397 400\n"" 1226 56 76 53 55\n"" 1227 212 231 18 230\n"" 1228 24 26 211 209\n"" 1229 420 1 426 41\n"" 1230 182 196 183 197\n"" 1231 229 74 80 15\n"" 1232 118 347 126 128\n"" 1233 180 195 178 181\n"" 1234 361 358 357 113\n"" 1235 239 213 215 238\n"" 1236 224 229 15 18\n"" 1237 423 68 94 414\n"" 1238 6 45 37 448\n"" 1239 48 360 111 413\n"" 1240 302 301 286 303\n"" 1241 35 41 1 37\n"" 1242 431 278 434 433\n"" 1243 145 164 162 150\n"" 1244 174 173 171 172\n"" 1245 423 279 367 448\n"" 1246 362 423 107 206\n"" 1247 272 271 251 274\n"" 1248 273 385 378 387\n"" 1249 200 122 177 159\n"" 1250 452 425 447 449\n"" 1251 210 29 26 209\n"" 1252 130 135 136 128\n"" 1253 234 213 237 235\n"" 1254 216 54 217 32\n"" 1255 402 373 376 374\n"" 1256 164 143 165 150\n"" 1257 427 250 410 411\n"" 1258 386 388 250 410\n"" 1259 96 61 59 95\n"" 1260 159 200 187 177\n"" 1261 389 443 442 80\n"" 1262 398 395 396 399\n"" 1263 87 83 55 76\n"" 1264 389 77 74 80\n"" 1265 229 15 80 225\n"" 1266 207 433 278 208\n"" 1267 96 59 91 95\n"" 1268 341 126 135 118\n"" 1269 62 61 59 58\n"" 1270 206 149 279 453\n"" 1271 400 370 372 374\n"" 1272 389 35 426 74\n"" 1273 360 423 362 413\n"" 1274 54 228 32 31\n"" 1275 109 38 107 360\n"" 1276 87 83 84 219\n"" 1277 72 35 69 389\n"" 1278 246 262 247 256\n"" 1279 352 364 353 365\n"" 1280 268 273 406 269\n"" 1281 443 74 13 80\n"" 1282 242 244 241 229\n"" 1283 149 279 362 206\n"" 1284 99 64 66 97\n"" 1285 376 373 92 374\n"" 1286 26 29 25 27\n"" 1287 32 213 228 216\n"" 1288 118 163 341 354\n"" 1289 161 158 147 157\n"" 1290 61 60 44 91\n"" 1291 292 308 304 291\n"" 1292 163 144 165 162\n"" 1293 407 262 430 429\n"" 1294 63 62 61 59\n"" 1295 153 163 154 168\n"" 1296 350 281 322 321\n"" 1297 262 271 270 274\n"" 1298 442 426 428 444\n"" 1299 38 44 42 39\n"" 1300 80 240 229 243\n"" 1301 194 171 174 175\n"" 1302 155 362 325 112\n"" 1303 306 304 291 305\n"" 1304 77 78 74 80\n"" 1305 80 74 240 78\n"" 1306 38 44 94 47\n"" 1307 273 405 408 406\n"" 1308 293 298 285 286\n"" 1309 88 389 390 77\n"" 1310 311 304 292 308\n"" 1311 99 66 98 97\n"" 1312 26 210 24 25\n"" 1313 259 224 276 207\n"" 1314 61 62 64 58\n"" 1315 244 242 235 245\n"" 1316 244 241 235 242\n"" 1317 63 61 64 66\n"" 1318 149 201 279 453\n"" 1319 206 122 121 453\n"" 1320 413 366 362 365\n"" 1321 409 388 250 387\n"" 1322 423 362 413 418\n"" 1323 38 414 48 47\n"" 1324 38 360 423 107\n"" 1325 290 289 288 306\n"" 1326 333 322 323 331\n"" 1327 389 443 74 426\n"" 1328 35 71 389 41\n"" 1329 279 149 362 331\n"" 1330 74 12 15 35\n"" 1331 424 423 422 448\n"" 1332 190 201 177 200\n"" 1333 365 325 353 352\n"" 1334 385 383 384 273\n"" 1335 331 322 321 350\n"" 1336 71 70 389 393\n"" 1337 126 139 339 137\n"" 1338 44 45 92 91\n"" 1339 72 49 69 35\n"" 1340 175 178 174 195\n"" 1341 247 246 245 261\n"" 1342 41 424 448 420\n"" 1343 46 92 44 94\n"" 1344 402 400 373 374\n"" 1345 198 197 185 188\n"" 1346 304 296 294 283\n"" 1347 116 131 129 128\n"" 1348 50 15 74 33\n"" 1349 110 108 112 109\n"" 1350 448 425 424 447\n"" 1351 166 331 362 149\n"" 1352 206 149 103 107\n"" 1353 209 26 208 29\n"" 1354 211 231 224 212\n"" 1355 33 50 51 240\n"" 1356 32 213 234 228\n"" 1357 444 389 426 443\n"" 1358 107 112 108 109\n"" 1359 217 213 214 215\n"" 1360 16 22 436 21\n"" 1361 142 337 144 338\n"" 1362 323 311 322 320\n"" 1363 411 386 389 250\n"" 1364 265 273 264 382\n"" 1365 211 230 231 212\n"" 1366 295 296 294 297\n"" 1367 0 35 1 37\n"" 1368 229 74 33 240\n"" 1369 131 118 116 117\n"" 1370 122 204 101 201\n"" 1371 206 122 204 101\n"" 1372 83 220 86 219\n"" 1373 113 358 347 123\n""# Generated by tetgen -YY bunny.smesh \n"); } diff --git a/Demos3/GpuDemos/rigidbody/cube.inl b/Demos3/GpuDemos/rigidbody/cube.inl deleted file mode 100644 index 7015a23e6..000000000 --- a/Demos3/GpuDemos/rigidbody/cube.inl +++ /dev/null @@ -1,4 +0,0 @@ -static const char* getNodes() { return( -"400 3 0 0\n"" 0 1 1 -1\n"" 1 1 -1 -1\n"" 2 -1 -1 -1\n"" 3 1 1 1\n"" 4 -1 -1 1\n"" 5 -1 1 -1\n"" 6 1 -1 1\n"" 7 -1 1 1\n"" 8 -1 -1 -0.000116\n"" 9 0.00039500000000000006 -1 1\n"" 10 1 -1 -0.00065799999999999995\n"" 11 1 0.00061700000000000004 -1\n"" 12 0.00098999999999999999 1 -1\n"" 13 -1 1 0.00045400000000000008\n"" 14 0.00052800000000008396 1 1\n"" 15 1 1 -0.00038699999999991519\n"" 16 -1 -5.9999999999504894e-006 1\n"" 17 -1 0.00021000000000004349 -1\n"" 18 1 0.00067400000000006344 1\n"" 19 1.0863393114549872e-007 3.0682525964387253e-008 1\n"" 20 0.00097299999999989062 -1 -1\n"" 21 -1.4065544284846965e-008 1 5.0429866114086973e-008\n"" 22 1 -7.0792689266241382e-008 -4.4728299621228391e-008\n"" 23 8.4069120565846353e-008 3.8392827594879719e-007 -1\n"" 24 1 0.49980668112692161 -0.4996917965899465\n"" 25 1 0.50006700000000004 -1\n"" 26 1 1 -0.50034809999999996\n"" 27 1 1 0.50025040000000009\n"" 28 0.50020930000000008 1 1\n"" 29 -1 0.50010129999999997 1\n"" 30 -0.49958379999999991 1 1\n"" 31 -1 9.2038384777827427e-008 -1.100605984127867e-008\n"" 32 -0.5001201999999999 -1 1\n"" 33 1.0486788869007099e-007 -1 -3.3620911388254626e-008\n"" 34 -1 -1 0.50008699999999995\n"" 35 1 -0.50010220000000005 -1\n"" 36 1 -1 -0.49985400000000002\n"" 37 1 -0.4996526 1\n"" 38 1 -1 0.49990490000000004\n"" 39 -0.49930649999999999 1 -1\n"" 40 -1 1 -0.50002420000000003\n"" 41 1 -0.24974260000000004 -0.50015432157969908\n"" 42 0.50015422769290296 -0.24974260000000001 -1\n"" 43 0.50009680402228707 1 0.24993170000000009\n"" 44 1 0.50009675187018254 0.24993170000000009\n"" 45 0.24987467313200107 0.24987468273492527 -0.24987454967853764\n"" 46 0.50006970000000006 1 -1\n"" 47 -1 1 0.50062509999999982\n"" 48 -0.24952789999999991 1 0.50013191885453001\n"" 49 -0.24952789999999991 0.50013187836130635 1\n"" 50 -1 -0.50000239999999996 -1\n"" 51 -0.49917350000000005 -1 -1\n"" 52 -1 -0.37500110896930483 0.49999770999384097\n"" 53 -0.49999768418870116 -0.37500109958532857 1\n"" 54 0.50016842960649455 -0.24948929999999997 1\n"" 55 1 -0.24948929999999997 0.50016837821653382\n"" 56 -1 0.50011355427218929 -0.24978510000000004\n"" 57 -0.50011349993113807 1 -0.24978510000000009\n"" 58 0.49983560886453382 -1 -0.25025600000000003\n"" 59 1 -0.24959280000000006 -1\n"" 60 0.46861653427920624 0.31279234072878337 -1\n"" 61 0.46874721181012263 1 -0.31263609558485356\n"" 62 1 1 0.24986720000000007\n"" 63 1 0.50004500000000007 1\n"" 64 0.41666006216462159 0.41668749191836219 1\n"" 65 1 0.62492318088559184 0.62497446433589154\n"" 66 0.62493687874554793 1 0.62494713479954256\n"" 67 -0.32510780807963724 -0.32510780489834346 -0.32510793388507692\n"" 68 1 0.12495484505171366 -0.3748231366627352\n"" 69 -0.24915825000000003 0.50024732783000192 -1\n"" 70 1 0.74957571448653726 -0.74971600694021778\n"" 71 0.64874656072370729 1 -0.64882932411306993\n"" 72 0.6488668035834122 0.64886599996407779 -1\n"" 73 -1 0.41673079803079871 0.41664307505523179\n"" 74 -0.62468209179782908 1 0.62494186195929313\n"" 75 -0.62476903429567798 0.62489835940819183 1\n"" 76 -1 0.75020764999999989 1\n"" 77 0.12520010648567331 0.45856412436943739 0.37477910185628149\n"" 78 -0.24942439999999994 1 1\n"" 79 -0.37474797737976173 1 0.74996984889996166\n"" 80 -0.3748348177892612 0.74992638728967431 1\n"" 81 -1 -1 -0.49994339999999993\n"" 82 -0.50002894420427402 -1 0.24998549999999997\n"" 83 -1 -0.50045000000000006 1\n"" 84 -0.015617775048046156 -0.5000062299955631 1\n"" 85 -0.062520154989433377 -1 0.50002475010607028\n"" 86 0.50024029999999997 -1 1\n"" 87 1 -0.24929619999999997 1\n"" 88 0.37505270907528421 -0.3750526949043349 0.12522791934472338\n"" 89 -1 0.5001348000000001 -1\n"" 90 -1 1 -0.24999450000000001\n"" 91 1 -0.62477132796083668 -0.25025600000000003\n"" 92 0.50052129999999995 -1 -1\n"" 93 1 0.018238422269637886 -0.6785517711937521\n"" 94 0.750039598406532 -0.12448790000000004 -1\n"" 95 0.32367160517680327 0.022514689090561368 -0.65701963759824777\n"" 96 0.32369468988306127 0.65698780035674154 -0.022395524628340657\n"" 97 1 1 -0.25020424999999996\n"" 98 1 0.62501462613012171 -0.12492844204372336\n"" 99 0.16205966081319645 0.60689608104137205 -1\n"" 100 0.23307615322925276 1 -0.65509826790501591\n"" 101 0.6349049175761754 0.105723024682608 1\n"" 102 1 0.18290638148392097 0.59627500837254621\n"" 103 0.67708420758319754 0.67702605426027662 1\n"" 104 1 0.7498625000000001 1\n"" 105 0.75029925000000008 1 1\n"" 106 0.75006454389022692 1 0.37500606926950353\n"" 107 1 0.7500645207487896 0.37502882687227923\n"" 108 -0.39273716375981493 0.28664398202145958 -0.051638660454459806\n"" 109 -0.41671246738153483 -0.41657507574696978 -1\n"" 110 -0.24910025000000008 -1 -0.50024283860374685\n"" 111 -1 -0.50000177258228129 0.01562108247952367\n"" 112 -1 0.062713405747402015 -0.49998686350971472\n"" 113 -0.21672667787876426 1 -0.60296047487967241\n"" 114 1 0.7499052299192317 -0.37495181123207261\n"" 115 0.74540338978064358 1 -0.37527617499999999\n"" 116 0.52159008257288741 0.55923294709068649 -0.50062662770660094\n"" 117 0.75009235000000007 1 -1\n"" 118 -0.52928249862025711 0.10679011696853863 1\n"" 119 -1 0.034077217919757319 0.58381620432891879\n"" 120 -1 0.7383278941763165 0.25053954999999994\n"" 121 -0.70891631291249579 1 0.25053954999999989\n"" 122 -0.46050965421976553 0.49218708190674731 0.49218708126315491\n"" 123 -1 0.68039176952095026 0.65291562053589947\n"" 124 0.10567541850782136 0.6349221513724419 1\n"" 125 0.18288602711749127 1 0.59629803533945958\n"" 126 0.54298856425431818 0.54298737875163716 0.56762073808494473\n"" 127 -0.67702799351191578 -0.67732215502802495 -1\n"" 128 -0.74942264999999997 -1 -1\n"" 129 -1 -1 -0.74980449999999998\n"" 130 -1 -0.49218854513728494 -0.49218946358719012\n"" 131 -0.42414945787750447 -1 0.62500198796368489\n"" 132 -0.34611026252144428 -0.35284219355707647 0.34611025416343177\n"" 133 -1 -0.25018009999999996 1\n"" 134 1 -0.62478846817134759 0.62485153607962096\n"" 135 0.46873640237350567 -1 0.46875741869756882\n"" 136 0.62487945516234578 -0.62473271086601501 1\n"" 137 1 -1 0.75017445000000005\n"" 138 0.74996116568713633 -0.37481680473944939 1\n"" 139 1 -0.37487247538331225 0.74993327711783697\n"" 140 0.52037384429375466 0.13732055395658338 0.20134643019667742\n"" 141 0.15110486348630267 -0.58850137906978839 -0.32248691722782763\n"" 142 0.18460607304185575 -0.25601325165021294 0.59072519783751942\n"" 143 0.58280144730296801 -0.1236683742487249 -0.25429890766156527\n"" 144 -0.62459780071323356 0.62480472798869868 -1\n"" 145 -1 0.62491663124728913 -0.6248890159372763\n"" 146 -0.62484746422599169 1 -0.62502715932999464\n"" 147 -0.7093663193037405 1 -0.043380902757278066\n"" 148 -1 0.70881555044570888 -0.042280622034258974\n"" 149 1 -1 -0.25034290000000009\n"" 150 1 -0.40640338795560693 0.10958986646960317\n"" 151 0.62965348921187414 -1 0.11553823232370244\n"" 152 0.62491481284490769 -0.62481034920526324 -1\n"" 153 0.62518044398996542 -1 -0.62501367730297908\n"" 154 1 -0.63771354537448766 -0.63764519345816328\n"" 155 1 0.31875234539841601 -0.74994017167142224\n"" 156 1 0.25014510000000001 -1\n"" 157 0.74289722234692146 0.382058894292784 -1\n"" 158 0.32367160517680327 0.022514689090561313 -1\n"" 159 -0.16523027793533418 0.12134647368575949 -0.52708319267772263\n"" 160 0.66127538009577513 0.12758426427554953 -1\n"" 161 0.66190311587317174 -0.14472935797430672 -0.63288146125613987\n"" 162 0.32369468988306133 1 -0.022395524628340657\n"" 163 0.66678290425073372 1 -0.041514421404229618\n"" 164 0.25040265000000006 1 -1\n"" 165 0.0399620660587649 1 -0.35479393735090492\n"" 166 0.39507172571995386 0.7484116421252891 -1\n"" 167 1 -0.072369672334633761 0.72403943393322545\n"" 168 1 0.25022030000000006 1\n"" 169 -1 0.34715093732334323 0.069506853183406409\n"" 170 0.004224600474193374 -0.00030510666109673235 0.14430736392114327\n"" 171 -0.094962845556292308 0.5834952204256858 0.029410273259612763\n"" 172 -0.37516021595805987 -1 -0.12532788579913123\n"" 173 -0.24910025000000008 -0.73780528173239301 -1\n"" 174 -0.24899625000000003 -1 -1\n"" 175 -1 -0.68752594294730018 0.32233197415569781\n"" 176 -0.63898818329694262 -0.019780155017187176 -0.25640753531059018\n"" 177 -0.24918545000000003 1 -1\n"" 178 -0.090115044090208485 0.73312064098608642 -1\n"" 179 0.70087100707296945 0.7030864101348856 -0.70306291837965817\n"" 180 0.43929348327839085 1 -0.54468859277252801\n"" 181 0.24904127574612012 0.39074020564473289 -0.70186910867307939\n"" 182 1 0.37487410261969639 -0.24965440370335262\n"" 183 -1 0.25002235 1\n"" 184 -1 0.3834446703544917 0.71903607815447956\n"" 185 -0.1156880925075553 0.64434016438489528 0.64434017606689242\n"" 186 -0.49172745225271947 1 0.39835250767529351\n"" 187 -0.49767862299671706 0.38046779215689319 1\n"" 188 -0.71839703681869116 0.71780974657570373 0.44934935063382636\n"" 189 -0.51344827724776054 0.71469177745101886 0.71472798522876002\n"" 190 -0.23617534848477656 0.19448005635194549 1\n"" 191 0.10846459384596518 0.30820266021358389 1\n"" 192 0.25057285000000007 1 1\n"" 193 0.017230183845622971 1 0.32091029596366771\n"" 194 0.73101248242769623 0.7310147155780512 0.70877874225568527\n"" 195 0.31697048198150773 0.74665075980915008 0.4006579958540028\n"" 196 0.22826577744747956 0.47891948624469016 0.71004422740180217\n"" 197 1 0.41190390341165745 0.48757967789479273\n"" 198 0.39445308838583859 1 0.75656358081536812\n"" 199 0.37539107500000007 0.73916688955610543 1\n"" 200 1 0.37513265000000007 0.77169890914285255\n"" 201 0.73942011355234571 0.37513265000000007 1\n"" 202 0.63994038137069154 0.63994036678159205 0.2035446667438317\n"" 203 -0.46370016318896046 -0.62998103084618617 -0.61483850042635191\n"" 204 -1 -0.21786745446900305 -0.71882640763337879\n"" 205 -0.7381625142245487 -0.24989619999999996 -1\n"" 206 -1 -0.68409919087038817 -0.74320185410965045\n"" 207 -0.32233403971208485 -0.68753538843092254 1\n"" 208 -0.24999429999999997 -1 1\n"" 209 -1 -0.68747379665002328 0.68733786195201785\n"" 210 -1 -1 0.74993719999999997\n"" 211 -0.68734034505209507 -0.68746383783523624 1\n"" 212 0.012621642749083783 -0.62121055252239044 0.25549907282899653\n"" 213 -0.6302385799280833 -0.18856073836207951 0.63023858315073289\n"" 214 -1 -0.24375245663389172 0.20780956095073669\n"" 215 0.27457426263537876 -0.71671644193112283 1\n"" 216 0.25031765 -1 0.74826556642116959\n"" 217 0.67415846717387884 -1 0.72313083855082583\n"" 218 0.62503542334105555 -0.31221159888129457 0.62503541050290967\n"" 219 0.5971993096065894 0.14306806366195202 0.59872066564664705\n"" 220 1 0.017233350071975677 0.32090429254255515\n"" 221 0.26312362546126472 0.33468192363906535 0.084065768486193945\n"" 222 0.32197792152690552 -1 0.018797337932729474\n"" 223 0.18800195544968995 -1 -0.56289551925444881\n"" 224 0.57038729142869704 -0.57307887210152808 -0.20881754066389768\n"" 225 -0.0086896099297664228 -0.40801963637004723 -1\n"" 226 0.18460607304185569 -0.25601325165021294 1\n"" 227 -0.20780680948491165 -0.24375608761730455 1\n"" 228 0.16210795897650465 -0.16280891134401318 -0.30907215240469521\n"" 229 1 -0.26636148213032163 -0.17942676839456378\n"" 230 0.56446572384612781 0.1973176117738667 -0.43724659666019622\n"" 231 0.68853374013319157 -0.17744483013216472 0.09783510961497599\n"" 232 -1 0.25009230000000005 -1\n"" 233 -0.44245798368554617 0.091797696559903857 -1\n"" 234 -0.37472098690918887 0.74987909210814685 -1\n"" 235 -1 0.75000438735900432 -0.37495636858710685\n"" 236 -0.74996704638216471 1 -0.37508384505925174\n"" 237 -1 0.74990679999999998 -1\n"" 238 -0.54712707263607874 0.54712707774677038 -0.44245689687343565\n"" 239 -0.74990204999999999 1 -1\n"" 240 -0.72822316548562926 0.72874031845750664 0.1036085388532241\n"" 241 1 -0.71873547817891748 0.28112338497214717\n"" 242 1 -1 0.24972335000000001\n"" 243 0.75048264999999992 -1 -1\n"" 244 0.74989614566839657 -1 -0.37495931701899499\n"" 245 0.32778297288621805 -0.39528027615360428 -0.64821309452322518\n"" 246 1 -0.38051416654716286 -0.74727639147947866\n"" 247 0.75568696149005932 -0.39170758577960507 -1\n"" 248 0.67082477453227773 0.69774082076774491 -0.21670307025395311\n"" 249 0.25644629494787752 0.72897062001391455 -0.35498913750943906\n"" 250 -0.66044139980269567 0.12332997433814857 0.28570391360731856\n"" 251 -0.20800059812674501 0.28777064045558248 0.28593682199556314\n"" 252 0.29133599196527848 -0.095788071590640317 0.30648986161740821\n"" 253 -0.19340828105680374 -0.0068671095901119807 -0.17510149752792639\n"" 254 -0.21084753812463372 1 -0.20339622724796672\n"" 255 -0.098922382084248209 0.356624117376247 -0.256263439404529\n"" 256 -1 -0.74213790787259271 -0.24206983063972595\n"" 257 -0.72511478181115718 -1 -0.25002969999999997\n"" 258 -0.1250383368944159 -1 -0.24987830054645518\n"" 259 -0.5432409326212666 -0.58336779772250913 -0.0060938376146522089\n"" 260 -1 -1 0.25020549999999997\n"" 261 -0.69517902037783963 -1 0.48465629903462193\n"" 262 -1 0.19801494027267907 -0.22908951271298833\n"" 263 -1 -0.21170789004360985 -0.2804810168349573\n"" 264 0.12431896494966958 0.19380761445281547 -0.51506516411314296\n"" 265 0.016877018602808991 0.32057899216794972 -1\n"" 266 0.31815206866103007 0.69886802178230512 -0.69773364246572678\n"" 267 1 0.29452437620263039 0.03597223402760958\n"" 268 -0.23854616157962166 0.70039865549364788 0.32382827237146705\n"" 269 -0.072417036863037423 1 0.7240118059209224\n"" 270 -0.65715846697692126 0.26022065746019457 0.6943166148678479\n"" 271 0.032006652383344852 0.12877070459954792 0.60754383991332461\n"" 272 0.70679839053632465 0.35784100137989416 0.35408213575434944\n"" 273 1 0.75583880296190964 0.10796710954834202\n"" 274 -0.066417091587110066 -0.67493516441615642 -0.64835749920354258\n"" 275 -0.66000110931003353 -0.29732769674682547 -0.5356675566159671\n"" 276 -1 -0.7460956789293286 -0.49597432811515113\n"" 277 -0.63537062135554268 -1 -0.62487395000000001\n"" 278 -0.072189529852730625 -0.75207129129950046 1\n"" 279 -0.12479964999999998 -1 0.76180792382505302\n"" 280 -0.64633703603487636 -0.58450521092750218 0.50482020379778969\n"" 281 -0.19793040641595078 -1 0.22917284009874619\n"" 282 0.36430902573049584 -0.60319992435881997 0.46610302519244695\n"" 283 -0.014560432971481855 -0.28974170434477692 0.31899501601243035\n"" 284 -0.16677858939457951 -0.59736466720530357 0.62746423626615599\n"" 285 -0.70838149553417962 -0.14588171485233958 1\n"" 286 -1 -0.20773576611374234 0.72382280144202749\n"" 287 0.65401865792186442 -0.65865126715652123 0.6540215253821221\n"" 288 0.76868552550191671 -0.1162896631221611 1\n"" 289 0.39236022879703553 0.3070079448900544 0.42979647060190596\n"" 290 0.3368388593683827 0.015623435483033674 1\n"" 291 0.19283437348027005 -1 0.30983198636425424\n"" 292 0.23987671409711908 -0.66618838122351409 0.0008945936534150746\n"" 293 0.42213117252176491 -0.74712687995942406 -0.48458654817973601\n"" 294 1 -0.66026812967233972 0.017464640590841476\n"" 295 0.76163529643898698 -1 -0.11209435873849422\n"" 296 0.71607191560259942 -0.37037315933178871 -0.41086960011962592\n"" 297 -0.21716346053460103 -0.19947717862659675 -1\n"" 298 -0.066700914192858729 -0.25756978212559839 -0.62896708724727191\n"" 299 0.32965714090299714 -0.016623876027232615 -0.04345086208713933\n"" 300 0.3771146741942551 -0.33750921003054202 -0.17865283786030017\n"" 301 0.68867680851486557 0.35765454098697025 -0.68521532739244984\n"" 302 0.68683764447685003 -0.49596319168560488 0.30085803648362652\n"" 303 0.7090270874729655 -0.090415723473831255 0.40719961870896915\n"" 304 -0.71897798523587353 0.032300798531047246 -1\n"" 305 -0.78106895850102998 0.78106955040650416 -1\n"" 306 -1 1 -0.75022459999999991\n"" 307 -0.6917164744917017 0.69170418541265011 -0.69178840942223951\n"" 308 -0.44874465612278081 0.23033846865992608 -0.37975265656437374\n"" 309 -0.42791646676676653 1 -0.48213646482850109\n"" 310 -0.50093773209802361 0.36943796178744326 -1\n"" 311 -0.27376979380830829 0.64426231976101334 -0.66489790575084351\n"" 312 -1 0.35637030336560244 -0.50592472907968644\n"" 313 -0.67546025565396317 0.47435524682845248 -0.12755140965778172\n"" 314 1 -1 -0.74991180000000002\n"" 315 1 -0.75028080000000008 -1\n"" 316 0.75389683099717963 -0.68868788457723729 -0.44203141186583489\n"" 317 0.30599251534318156 -0.52261127269823027 -1\n"" 318 0.40047237565428867 -0.18178393484624253 -0.46933497457143036\n"" 319 0.59482353914036401 0.38624515090984007 -0.049897636224658731\n"" 320 -1 0.12332997433814856 0.2857039136073185\n"" 321 -1 -0.14689524813441618 0.42688908174824769\n"" 322 -0.66262979736993932 -0.22367581355790006 0.28652907305244368\n"" 323 -0.73506511384989526 0.43296210769478211 0.23284828493726362\n"" 324 -0.35917397776062404 -0.0011820981956873755 0.46134022362807492\n"" 325 -0.46329592253134338 -0.04321417701540118 0.047101266600350966\n"" 326 -0.27019578023748486 0.66094639539627242 -0.2626201492532621\n"" 327 -0.034393111593928383 0.28261880242562187 0.033764464745287937\n"" 328 0.18250360638285329 -1 -0.25535398043003921\n"" 329 -0.3030416241215706 -0.68638401151842854 -0.29392180366815041\n"" 330 -0.20024923856661142 -0.43390131265744347 0.010814269493628442\n"" 331 -0.70928533124789683 -1 0.043514240508664342\n"" 332 -0.66723744746271052 -0.6603325322519602 -0.32775579384930814\n"" 333 -0.75004930000000003 -1 1\n"" 334 -0.19527119007052851 0.17101403421852743 -1\n"" 335 0.035377884590221398 0.72616811699961958 0.38837547693302749\n"" 336 -0.3958963327893722 1 0.076655950240576198\n"" 337 -1 0.21457329427678187 0.47543850615348943\n"" 338 -0.7309823244201562 0.04824246580043276 0.53867561355267524\n"" 339 0.31731660817460328 0.019726050398274825 0.58867762989660533\n"" 340 -0.23374781763549932 0.32728908975345111 0.68606341552187544\n"" 341 -0.05707064185106852 -1 -0.71659883209883557\n"" 342 0.025895325626349025 -1 -0.41197380535174077\n"" 343 -0.63238580600180661 -0.3446250983839011 -0.21239475499198135\n"" 344 -1 -0.44899498782248648 -0.76904522126668295\n"" 345 -0.47299161220497166 -0.16458691872110107 -1\n"" 346 -0.71473237282422963 -0.73570249654826969 -0.71737349776128545\n"" 347 -0.74042724546706096 -1 0.74043153378626769\n"" 348 -0.75006482996996637 -0.43746254158362985 1\n"" 349 -1 -0.45163184813329721 0.75853196322407168\n"" 350 -0.50484417551448635 -0.72312317896459377 0.74770602252103513\n"" 351 -0.40758966352762416 -0.67845102844514626 0.2869272680702189\n"" 352 0.34674400209661604 -0.46348651949776365 1\n"" 353 -0.064367666161959269 -0.33637242545568102 0.74735946563471645\n"" 354 0.092602515587840606 -0.73476755239921543 0.53136369836931496\n"" 355 0.7405253302829875 -1 0.37931276242110001\n"" 356 0.72074474478028516 -0.071123657589263783 0.72858260191381197\n"" 357 -0.37493998320650845 -0.13123609584112483 -0.59370675998889832\n"" 358 -0.038352185780633007 -0.36921106178200458 -0.36036098843849301\n"" 359 -0.21058188105209746 -0.51336343843000509 -1\n"" 360 0.48755585676167218 -0.72413212665883209 0.19600157800093837\n"" 361 0.72678157399644117 -0.45646629587434373 0.011780680786240783\n"" 362 1 -0.2170765504241112 0.26033741814256661\n"" 363 -0.74541512030390267 -0.021189991595686748 -0.68170217165320612\n"" 364 -0.37387254482300358 0.32527982613660117 -0.69267828171913437\n"" 365 0.014913421017989981 0.548850834537849 -0.51262186425268497\n"" 366 -0.74537069514237131 0.2884463439624349 -1\n"" 367 -1 0.37511355000000007 -0.76842458715696027\n"" 368 -0.68532657097754035 0.18056419100293586 -0.02075972921423834\n"" 369 0.78133395148913365 -1 -0.78126287896225588\n"" 370 0.78115294817471781 -0.78112807555219699 -1\n"" 371 0.59082087507768066 -0.57000731366339108 -0.68829605397498683\n"" 372 0.062122976656860403 -0.70293283755163305 -1\n"" 373 0.71559274300689513 0.42281759201802555 -0.31813908171117911\n"" 374 0.7564597747876356 0.13217713297538497 -0.16417576007580004\n"" 375 0.40814884545639363 0.4915141193769953 -0.2436752542444009\n"" 376 -0.75696767061236314 -0.5164837362163468 0.21622587965261447\n"" 377 -0.452391830423859 0.55519361636450704 0.12429201972918034\n"" 378 -0.43481019055019038 -0.12925317405502307 1\n"" 379 -0.24742795067222612 -0.11366422696012682 0.2223275751188645\n"" 380 -0.006677616808027087 -0.21615237698969206 -0.065426614396930594\n"" 381 -0.062406752747729527 -0.70182414510247981 -0.087999792237402064\n"" 382 0.10306104864954116 0.76464771966531997 0.11700653142882178\n"" 383 0.27486783995540093 -0.12812237061584772 0.79536259891875982\n"" 384 -0.74059417471417499 -0.15757730258109431 0.00074049988054281091\n"" 385 -0.64002796579304344 -0.45394506207193958 -1\n"" 386 -0.42239397063762912 -0.42048979870740139 0.69490811148992537\n"" 387 -0.17195299402586212 -0.76346805360446235 0.40560748360163079\n"" 388 0.37676760090127209 -0.4417530820461561 0.70978247252690463\n"" 389 -0.20593363392839478 -0.044483242006169432 0.7439953909431003\n"" 390 -0.31521564832256066 -0.39420460209868968 -0.72065547292536469\n"" 391 -0.07315504595340451 0.34077703680706245 -0.71267230392230696\n"" 392 -0.0052948425242513517 1 -0.74523404665783877\n"" 393 -0.70127839101164502 0.30537699044254324 -0.64148488859352526\n"" 394 0.25061214999999992 -1 -1\n"" 395 0.40565131063307963 -0.76032995286218041 -1\n"" 396 0.38398614307047785 -1 -0.75304567260853106\n"" 397 0.23839244367761547 -0.68688896416028877 -0.73641430830181331\n"" 398 0.76674691103343318 0.57740125411814403 -0.50231823898754502\n"" 399 0.14110565781161721 -0.59279131304323562 0.77705687354697894\n""# Generated by tetgen -a0.01 cube.smesh \n"); } -static const char* getElements() { return( -"1580 4 0\n"" 0 120 148 13 240\n"" 1 77 251 185 268\n"" 2 126 194 66 198\n"" 3 297 298 159 357\n"" 4 13 148 147 240\n"" 5 219 272 102 303\n"" 6 134 137 37 136\n"" 7 302 360 88 361\n"" 8 23 264 95 391\n"" 9 307 311 238 364\n"" 10 57 309 254 326\n"" 11 345 357 233 363\n"" 12 176 343 325 384\n"" 13 275 332 67 343\n"" 14 141 245 228 318\n"" 15 108 368 323 377\n"" 16 7 47 74 123\n"" 17 73 188 184 270\n"" 18 56 235 148 313\n"" 19 46 72 117 179\n"" 20 66 105 28 194\n"" 21 205 275 204 344\n"" 22 66 194 28 198\n"" 23 96 221 45 375\n"" 24 93 160 94 161\n"" 25 225 317 245 397\n"" 26 121 186 74 188\n"" 27 213 280 52 322\n"" 28 52 322 280 376\n"" 29 96 195 77 221\n"" 30 8 257 256 331\n"" 31 358 380 330 381\n"" 32 99 181 166 266\n"" 33 120 123 73 188\n"" 34 122 189 187 340\n"" 35 141 292 224 300\n"" 36 313 326 240 377\n"" 37 203 274 173 390\n"" 38 140 299 221 319\n"" 39 44 197 107 272\n"" 40 171 326 108 377\n"" 41 71 166 46 179\n"" 42 69 364 334 391\n"" 43 26 114 97 115\n"" 44 228 253 159 358\n"" 45 221 272 202 289\n"" 46 123 184 73 188\n"" 47 22 220 140 231\n"" 48 250 324 322 325\n"" 49 270 324 213 338\n"" 50 147 240 57 336\n"" 51 69 265 178 391\n"" 52 100 249 165 365\n"" 53 296 316 224 371\n"" 54 74 188 186 189\n"" 55 21 171 165 249\n"" 56 23 297 225 298\n"" 57 191 196 64 290\n"" 58 87 139 138 288\n"" 59 126 198 196 199\n"" 60 223 328 141 342\n"" 61 293 371 153 396\n"" 62 238 308 108 313\n"" 63 49 187 80 189\n"" 64 143 300 224 361\n"" 65 111 256 130 343\n"" 66 62 107 106 273\n"" 67 64 196 126 219\n"" 68 314 154 315 369\n"" 69 50 205 204 344\n"" 70 0 70 26 71\n"" 71 95 158 23 265\n"" 72 37 138 87 139\n"" 73 125 193 43 195\n"" 74 56 312 238 313\n"" 75 257 259 172 332\n"" 76 25 70 0 72\n"" 77 141 300 228 358\n"" 78 32 207 208 350\n"" 79 101 201 200 219\n"" 80 13 147 121 240\n"" 81 67 275 176 357\n"" 82 116 249 180 266\n"" 83 197 219 200 272\n"" 84 152 247 42 371\n"" 85 95 158 60 160\n"" 86 45 230 116 375\n"" 87 88 282 142 283\n"" 88 96 162 61 249\n"" 89 209 280 211 350\n"" 90 84 353 226 399\n"" 91 33 258 172 381\n"" 92 118 285 213 378\n"" 93 196 271 77 289\n"" 94 282 287 218 388\n"" 95 196 198 125 199\n"" 96 74 7 76 30\n"" 97 95 230 181 264\n"" 98 297 359 225 390\n"" 99 280 347 261 350\n"" 100 253 299 170 380\n"" 101 125 269 193 335\n"" 102 245 293 224 300\n"" 103 41 143 68 161\n"" 104 58 295 244 316\n"" 105 83 348 211 349\n"" 106 75 29 76 123\n"" 107 171 249 96 255\n"" 108 124 196 125 199\n"" 109 61 248 96 249\n"" 110 221 255 45 327\n"" 111 254 326 171 336\n"" 112 194 198 126 199\n"" 113 208 278 9 279\n"" 114 94 93 11 160\n"" 115 275 357 345 363\n"" 116 127 173 109 203\n"" 117 134 139 55 218\n"" 118 45 255 253 327\n"" 119 154 35 315 370\n"" 120 283 284 142 353\n"" 121 186 336 268 377\n"" 122 59 93 11 94\n"" 123 110 203 51 277\n"" 124 59 246 94 247\n"" 125 116 248 61 249\n"" 126 41 229 143 296\n"" 127 91 154 36 316\n"" 128 71 179 116 180\n"" 129 45 299 221 327\n"" 130 319 373 182 374\n"" 131 64 219 101 290\n"" 132 116 301 179 398\n"" 133 122 323 188 377\n"" 134 182 373 68 374\n"" 135 97 115 114 248\n"" 136 60 158 95 181\n"" 137 185 268 48 335\n"" 138 66 125 43 195\n"" 139 86 215 136 287\n"" 140 106 202 163 273\n"" 141 43 106 66 195\n"" 142 271 324 283 389\n"" 143 95 158 42 245\n"" 144 186 188 122 189\n"" 145 25 179 157 301\n"" 146 173 274 110 341\n"" 147 136 138 37 287\n"" 148 244 293 58 316\n"" 149 107 197 65 272\n"" 150 42 160 158 161\n"" 151 28 105 103 194\n"" 152 200 201 126 219\n"" 153 147 235 90 236\n"" 154 224 292 141 293\n"" 155 220 272 140 303\n"" 156 4 209 83 211\n"" 157 207 278 208 279\n"" 158 296 300 143 318\n"" 159 226 352 84 399\n"" 160 104 65 63 194\n"" 161 212 282 88 283\n"" 162 255 308 238 364\n"" 163 150 229 91 361\n"" 164 43 163 106 202\n"" 165 126 219 196 289\n"" 166 48 185 79 189\n"" 167 257 329 110 332\n"" 168 170 299 252 380\n"" 169 30 74 75 76\n"" 170 30 79 78 80\n"" 171 39 234 146 307\n"" 172 218 252 142 339\n"" 173 185 251 77 340\n"" 174 102 200 197 219\n"" 175 49 189 185 340\n"" 176 213 348 286 349\n"" 177 133 286 285 348\n"" 178 65 197 126 272\n"" 179 187 189 49 340\n"" 180 213 285 53 378\n"" 181 63 194 65 200\n"" 182 131 279 85 387\n"" 183 120 169 148 323\n"" 184 197 200 126 272\n"" 185 46 166 72 179\n"" 186 15 248 98 273\n"" 187 98 114 24 373\n"" 188 46 180 100 266\n"" 189 22 231 140 374\n"" 190 171 335 77 382\n"" 191 27 106 62 107\n"" 192 255 264 159 391\n"" 193 132 325 322 379\n"" 194 240 323 313 377\n"" 195 155 160 93 301\n"" 196 221 299 170 327\n"" 197 158 160 95 161\n"" 198 79 80 30 189\n"" 199 178 365 311 391\n"" 200 16 285 133 286\n"" 201 249 255 171 365\n"" 202 188 270 73 323\n"" 203 162 165 61 249\n"" 204 107 126 65 194\n"" 205 155 156 93 160\n"" 206 219 303 102 356\n"" 207 259 330 132 351\n"" 208 224 293 141 300\n"" 209 77 271 170 289\n"" 210 231 252 140 299\n"" 211 147 240 148 313\n"" 212 152 370 153 395\n"" 213 154 246 35 247\n"" 214 291 354 212 387\n"" 215 211 348 280 349\n"" 216 144 234 39 307\n"" 217 212 292 33 381\n"" 218 133 348 83 349\n"" 219 119 337 270 338\n"" 220 120 188 73 323\n"" 221 211 280 209 349\n"" 222 209 211 333 347\n"" 223 251 325 108 379\n"" 224 236 238 146 309\n"" 225 274 329 110 342\n"" 226 39 305 144 307\n"" 227 144 305 89 307\n"" 228 96 249 248 375\n"" 229 113 178 177 392\n"" 230 91 294 224 295\n"" 231 94 160 42 161\n"" 232 165 171 21 326\n"" 233 170 324 251 379\n"" 234 211 347 209 350\n"" 235 116 179 115 398\n"" 236 214 263 31 384\n"" 237 70 117 71 0\n"" 238 43 195 96 202\n"" 239 90 235 40 236\n"" 240 134 136 37 287\n"" 241 67 253 159 357\n"" 242 33 328 258 381\n"" 243 71 116 115 180\n"" 244 55 241 134 302\n"" 245 155 301 24 398\n"" 246 275 345 205 363\n"" 247 52 209 175 280\n"" 248 287 302 241 355\n"" 249 79 185 48 269\n"" 250 45 181 116 230\n"" 251 68 182 24 373\n"" 252 106 126 66 195\n"" 253 170 299 253 327\n"" 254 228 298 245 358\n"" 255 275 357 67 390\n"" 256 126 195 77 196\n"" 257 176 275 67 343\n"" 258 17 363 232 367\n"" 259 248 249 116 375\n"" 260 251 324 250 325\n"" 261 122 251 185 340\n"" 262 238 311 309 326\n"" 263 157 160 155 301\n"" 264 60 181 99 265\n"" 265 98 248 114 373\n"" 266 34 261 209 347\n"" 267 132 330 212 351\n"" 268 245 274 141 358\n"" 269 190 191 19 271\n"" 270 236 238 57 313\n"" 271 105 104 103 194\n"" 272 94 246 161 247\n"" 273 35 246 59 247\n"" 274 140 319 267 374\n"" 275 212 281 33 291\n"" 276 117 71 46 179\n"" 277 70 117 72 179\n"" 278 159 253 228 264\n"" 279 80 185 49 189\n"" 280 209 333 4 210\n"" 281 2 128 127 206\n"" 282 100 164 46 166\n"" 283 74 76 7 123\n"" 284 80 187 75 189\n"" 285 103 194 63 201\n"" 286 171 326 249 365\n"" 287 136 6 137 37\n"" 288 216 291 85 354\n"" 289 47 120 13 121\n"" 290 101 288 54 356\n"" 291 130 263 111 343\n"" 292 168 200 101 201\n"" 293 68 143 41 229\n"" 294 282 291 135 354\n"" 295 49 191 190 340\n"" 296 184 189 75 270\n"" 297 202 272 126 289\n"" 298 218 356 339 383\n"" 299 352 388 215 399\n"" 300 124 192 125 269\n"" 301 70 117 0 72\n"" 302 136 218 138 287\n"" 303 108 255 171 327\n"" 304 223 293 153 396\n"" 305 25 156 155 157\n"" 306 115 116 61 180\n"" 307 320 321 250 338\n"" 308 60 166 99 181\n"" 309 228 245 141 358\n"" 310 127 346 203 385\n"" 311 96 249 171 382\n"" 312 219 272 140 289\n"" 313 112 275 204 363\n"" 314 126 197 65 200\n"" 315 270 337 250 338\n"" 316 42 158 95 161\n"" 317 183 187 118 270\n"" 318 212 283 132 284\n"" 319 204 275 205 363\n"" 320 165 180 61 249\n"" 321 67 275 203 332\n"" 322 14 185 80 269\n"" 323 224 296 91 316\n"" 324 209 261 175 280\n"" 325 290 339 219 383\n"" 326 193 269 48 335\n"" 327 106 195 43 202\n"" 328 176 357 275 363\n"" 329 77 251 170 271\n"" 330 44 267 220 272\n"" 331 75 189 187 270\n"" 332 65 194 126 200\n"" 333 68 267 182 374\n"" 334 125 195 66 198\n"" 335 17 204 50 205\n"" 336 250 325 322 384\n"" 337 66 195 126 198\n"" 338 79 185 80 189\n"" 339 159 298 67 357\n"" 340 218 302 88 303\n"" 341 78 80 79 269\n"" 342 77 221 170 327\n"" 343 90 147 13 148\n"" 344 319 373 230 375\n"" 345 126 200 194 201\n"" 346 143 161 41 296\n"" 347 297 357 345 390\n"" 348 126 195 106 202\n"" 349 64 196 124 199\n"" 350 209 333 211 4\n"" 351 44 202 107 273\n"" 352 195 196 125 335\n"" 353 284 353 84 399\n"" 354 125 196 195 198\n"" 355 64 126 103 201\n"" 356 63 200 168 201\n"" 357 278 279 207 284\n"" 358 175 209 34 261\n"" 359 224 294 91 361\n"" 360 274 298 225 390\n"" 361 258 329 172 381\n"" 362 293 316 153 371\n"" 363 37 139 134 287\n"" 364 200 219 126 272\n"" 365 110 277 257 332\n"" 366 158 225 42 245\n"" 367 191 271 190 340\n"" 368 6 86 136 217\n"" 369 96 163 43 202\n"" 370 41 246 154 296\n"" 371 2 127 50 206\n"" 372 120 240 188 323\n"" 373 171 268 77 335\n"" 374 257 277 276 332\n"" 375 308 313 238 393\n"" 376 98 248 202 273\n"" 377 167 303 55 356\n"" 378 136 137 6 217\n"" 379 88 283 252 380\n"" 380 188 323 240 377\n"" 381 140 272 267 319\n"" 382 121 188 120 240\n"" 383 323 368 313 377\n"" 384 172 258 110 329\n"" 385 192 198 28 199\n"" 386 284 354 85 387\n"" 387 155 157 156 160\n"" 388 143 230 45 299\n"" 389 173 341 20 372\n"" 390 248 319 96 375\n"" 391 242 241 151 355\n"" 392 30 80 75 189\n"" 393 51 173 127 203\n"" 394 81 256 8 257\n"" 395 187 270 122 340\n"" 396 38 241 242 355\n"" 397 141 293 245 300\n"" 398 93 156 11 160\n"" 399 88 252 218 303\n"" 400 29 123 75 184\n"" 401 159 334 297 357\n"" 402 206 344 130 346\n"" 403 185 269 125 335\n"" 404 151 294 10 295\n"" 405 105 66 27 194\n"" 406 150 302 55 362\n"" 407 261 280 209 347\n"" 408 312 367 145 393\n"" 409 194 200 63 201\n"" 410 176 275 112 363\n"" 411 334 357 159 364\n"" 412 231 302 88 361\n"" 413 57 238 236 309\n"" 414 88 300 292 380\n"" 415 192 124 125 199\n"" 416 148 240 120 323\n"" 417 126 194 103 201\n"" 418 259 331 82 351\n"" 419 119 184 183 270\n"" 420 150 241 55 302\n"" 421 126 272 219 289\n"" 422 230 301 116 373\n"" 423 123 188 74 189\n"" 424 74 186 79 189\n"" 425 92 369 243 370\n"" 426 131 280 261 350\n"" 427 143 299 228 300\n"" 428 220 303 231 362\n"" 429 277 332 203 346\n"" 430 256 257 81 276\n"" 431 154 314 36 369\n"" 432 100 180 165 249\n"" 433 149 294 91 295\n"" 434 274 329 141 358\n"" 435 126 201 64 219\n"" 436 64 201 101 219\n"" 437 207 211 53 350\n"" 438 283 330 132 379\n"" 439 243 369 1 370\n"" 440 24 373 114 398\n"" 441 143 230 161 318\n"" 442 161 296 245 371\n"" 443 110 257 172 329\n"" 444 96 162 43 163\n"" 445 248 373 319 375\n"" 446 171 221 77 327\n"" 447 21 254 171 336\n"" 448 306 5 239 305\n"" 449 197 220 102 272\n"" 450 82 281 172 351\n"" 451 113 146 39 234\n"" 452 143 229 68 374\n"" 453 68 93 41 161\n"" 454 172 351 281 381\n"" 455 112 204 17 363\n"" 456 124 191 185 196\n"" 457 215 216 9 278\n"" 458 19 383 353 389\n"" 459 185 189 122 340\n"" 460 137 38 287 134\n"" 461 122 270 250 324\n"" 462 126 202 107 272\n"" 463 70 71 117 179\n"" 464 84 227 226 353\n"" 465 109 173 390 203\n"" 466 13 121 120 240\n"" 467 53 285 213 348\n"" 468 228 358 300 380\n"" 469 14 80 78 269\n"" 470 55 302 218 303\n"" 471 285 286 213 348\n"" 472 107 202 106 273\n"" 473 307 367 366 393\n"" 474 147 148 90 235\n"" 475 94 161 42 247\n"" 476 276 332 277 346\n"" 477 141 293 223 397\n"" 478 51 203 127 346\n"" 479 22 229 150 231\n"" 480 163 202 96 248\n"" 481 48 269 185 335\n"" 482 162 163 96 248\n"" 483 141 274 245 397\n"" 484 115 163 61 248\n"" 485 147 236 57 313\n"" 486 158 181 60 265\n"" 487 311 365 364 391\n"" 488 193 195 125 335\n"" 489 125 185 124 269\n"" 490 224 296 245 300\n"" 491 49 185 124 191\n"" 492 132 280 213 322\n"" 493 96 202 195 221\n"" 494 233 357 334 364\n"" 495 99 166 164 266\n"" 496 245 293 141 397\n"" 497 36 244 149 316\n"" 498 74 79 30 189\n"" 499 30 75 74 189\n"" 500 12 178 99 392\n"" 501 322 325 259 384\n"" 502 195 196 126 198\n"" 503 57 313 238 326\n"" 504 48 268 186 336\n"" 505 91 296 154 316\n"" 506 14 192 124 269\n"" 507 259 332 111 343\n"" 508 238 311 255 364\n"" 509 45 230 95 264\n"" 510 140 252 221 299\n"" 511 176 262 112 263\n"" 512 32 211 207 350\n"" 513 261 376 351 82\n"" 514 19 227 190 389\n"" 515 2 129 128 206\n"" 516 102 220 167 303\n"" 517 181 249 116 266\n"" 518 170 271 251 324\n"" 519 186 188 121 240\n"" 520 213 321 286 338\n"" 521 124 185 14 269\n"" 522 91 295 224 316\n"" 523 143 299 231 374\n"" 524 159 364 255 391\n"" 525 310 334 69 364\n"" 526 170 283 271 379\n"" 527 229 231 143 361\n"" 528 241 287 134 302\n"" 529 70 72 25 179\n"" 530 72 157 25 179\n"" 531 26 71 70 179\n"" 532 70 114 26 179\n"" 533 287 388 282 399\n"" 534 68 229 22 374\n"" 535 61 180 116 249\n"" 536 115 116 71 179\n"" 537 143 296 229 361\n"" 538 142 354 282 399\n"" 539 25 155 70 179\n"" 540 139 288 167 356\n"" 541 114 115 26 179\n"" 542 26 115 71 179\n"" 543 116 180 179 266\n"" 544 164 166 100 266\n"" 545 100 166 46 266\n"" 546 171 255 221 327\n"" 547 132 330 325 379\n"" 548 140 289 252 339\n"" 549 24 182 98 373\n"" 550 180 249 100 266\n"" 551 320 321 214 322\n"" 552 213 285 270 338\n"" 553 214 321 52 322\n"" 554 122 188 186 268\n"" 555 271 289 196 339\n"" 556 108 251 250 325\n"" 557 153 293 244 316\n"" 558 43 193 162 382\n"" 559 80 124 49 185\n"" 560 159 67 358 253\n"" 561 142 282 212 283\n"" 562 14 124 80 185\n"" 563 110 174 173 341\n"" 564 187 189 122 270\n"" 565 252 299 88 380\n"" 566 55 218 139 356\n"" 567 227 378 190 389\n"" 568 33 292 222 328\n"" 569 47 121 74 188\n"" 570 74 123 47 188\n"" 571 120 121 47 188\n"" 572 47 123 120 188\n"" 573 55 303 218 356\n"" 574 167 288 18 356\n"" 575 58 224 151 295\n"" 576 18 167 87 288\n"" 577 116 230 181 301\n"" 578 161 246 41 296\n"" 579 91 244 149 295\n"" 580 33 281 212 381\n"" 581 23 225 158 245\n"" 582 79 186 48 189\n"" 583 75 184 123 189\n"" 584 74 75 76 189\n"" 585 75 123 76 189\n"" 586 76 123 74 189\n"" 587 67 357 298 390\n"" 588 124 185 125 196\n"" 589 186 240 121 336\n"" 590 64 191 124 196\n"" 591 209 210 34 347\n"" 592 80 185 79 269\n"" 593 63 103 104 194\n"" 594 27 107 65 194\n"" 595 9 278 216 279\n"" 596 66 126 106 194\n"" 597 104 27 65 194\n"" 598 66 106 27 194\n"" 599 106 107 27 194\n"" 600 27 3 105 194\n"" 601 105 3 104 194\n"" 602 104 3 27 194\n"" 603 77 335 195 382\n"" 604 136 217 86 287\n"" 605 226 290 54 383\n"" 606 290 356 54 383\n"" 607 218 339 142 383\n"" 608 21 268 193 336\n"" 609 193 268 48 336\n"" 610 171 268 21 336\n"" 611 103 194 126 199\n"" 612 28 198 194 199\n"" 613 125 198 192 199\n"" 614 28 194 103 199\n"" 615 106 163 62 273\n"" 616 98 202 44 273\n"" 617 221 252 170 299\n"" 618 141 300 245 318\n"" 619 185 196 77 335\n"" 620 244 295 91 316\n"" 621 62 163 15 273\n"" 622 231 299 143 300\n"" 623 317 371 245 397\n"" 624 126 196 64 199\n"" 625 103 126 64 199\n"" 626 93 94 59 246\n"" 627 127 344 206 346\n"" 628 224 292 222 360\n"" 629 225 359 274 390\n"" 630 221 319 45 375\n"" 631 25 157 155 301\n"" 632 19 271 191 290\n"" 633 110 341 274 342\n"" 634 163 248 15 273\n"" 635 132 283 212 330\n"" 636 119 321 320 338\n"" 637 186 189 122 268\n"" 638 106 194 126 202\n"" 639 126 194 107 202\n"" 640 107 194 106 202\n"" 641 141 358 329 381\n"" 642 88 302 282 360\n"" 643 263 275 176 343\n"" 644 173 203 110 274\n"" 645 260 175 34 261\n"" 646 250 270 122 323\n"" 647 21 165 162 249\n"" 648 193 335 268 382\n"" 649 130 332 275 343\n"" 650 204 275 130 344\n"" 651 51 110 174 203\n"" 652 110 173 174 203\n"" 653 174 173 51 203\n"" 654 70 155 24 398\n"" 655 177 113 39 234\n"" 656 218 252 88 282\n"" 657 352 383 54 388\n"" 658 112 263 204 275\n"" 659 54 352 226 383\n"" 660 134 287 241 355\n"" 661 238 307 146 309\n"" 662 224 295 58 316\n"" 663 325 343 259 384\n"" 664 259 329 67 330\n"" 665 88 292 224 360\n"" 666 9 215 86 216\n"" 667 221 299 45 319\n"" 668 245 296 161 318\n"" 669 136 134 137 287\n"" 670 83 211 209 349\n"" 671 132 324 283 379\n"" 672 84 284 207 353\n"" 673 138 139 37 287\n"" 674 140 252 231 303\n"" 675 219 289 140 339\n"" 676 181 230 45 264\n"" 677 228 300 299 380\n"" 678 85 279 216 354\n"" 679 169 320 250 323\n"" 680 68 230 143 374\n"" 681 207 227 84 353\n"" 682 240 313 57 326\n"" 683 49 190 187 340\n"" 684 286 348 133 349\n"" 685 52 280 213 349\n"" 686 263 343 176 384\n"" 687 51 277 203 346\n"" 688 220 267 140 272\n"" 689 137 217 136 287\n"" 690 203 329 274 390\n"" 691 31 320 250 368\n"" 692 224 316 293 371\n"" 693 231 252 88 303\n"" 694 252 271 170 283\n"" 695 253 358 228 380\n"" 696 256 276 130 332\n"" 697 19 353 227 389\n"" 698 219 339 303 356\n"" 699 170 252 221 289\n"" 700 142 271 252 283\n"" 701 209 347 280 350\n"" 702 142 252 88 283\n"" 703 251 324 271 340\n"" 704 95 264 181 391\n"" 705 171 251 77 268\n"" 706 98 319 248 373\n"" 707 331 351 259 376\n"" 708 41 154 91 296\n"" 709 10 241 151 242\n"" 710 330 380 292 381\n"" 711 132 284 283 353\n"" 712 140 272 221 289\n"" 713 126 196 77 289\n"" 714 152 371 317 395\n"" 715 36 149 91 316\n"" 716 108 253 176 308\n"" 717 255 365 264 391\n"" 718 202 248 163 273\n"" 719 224 300 88 361\n"" 720 65 126 107 272\n"" 721 67 159 358 298\n"" 722 88 300 231 361\n"" 723 153 223 58 293\n"" 724 146 238 236 307\n"" 725 202 248 98 319\n"" 726 141 328 292 381\n"" 727 42 161 95 245\n"" 728 176 253 108 325\n"" 729 10 294 149 295\n"" 730 155 179 25 301\n"" 731 68 161 143 230\n"" 732 264 365 181 391\n"" 733 225 274 245 298\n"" 734 225 245 23 298\n"" 735 41 161 93 246\n"" 736 97 163 115 248\n"" 737 93 161 94 246\n"" 738 45 255 96 375\n"" 739 212 291 282 354\n"" 740 148 313 323 169\n"" 741 224 292 88 300\n"" 742 142 283 212 354\n"" 743 61 162 96 248\n"" 744 97 114 98 248\n"" 745 185 189 48 268\n"" 746 205 345 275 385\n"" 747 48 268 193 335\n"" 748 24 155 68 301\n"" 749 60 160 157 301\n"" 750 159 357 308 364\n"" 751 297 345 109 390\n"" 752 61 163 162 248\n"" 753 61 116 115 248\n"" 754 230 299 143 374\n"" 755 140 267 22 374\n"" 756 102 303 167 356\n"" 757 134 287 218 302\n"" 758 218 282 88 302\n"" 759 93 161 68 230\n"" 760 357 363 308 364\n"" 761 224 295 294 361\n"" 762 153 244 36 316\n"" 763 303 339 218 356\n"" 764 294 302 150 361\n"" 765 153 371 152 395\n"" 766 57 326 254 336\n"" 767 48 189 186 268\n"" 768 238 308 255 326\n"" 769 214 322 52 376\n"" 770 132 322 259 376\n"" 771 111 331 259 376\n"" 772 121 240 147 336\n"" 773 253 379 330 380\n"" 774 223 274 141 397\n"" 775 176 308 262 313\n"" 776 31 262 176 263\n"" 777 334 364 159 391\n"" 778 255 311 238 326\n"" 779 110 274 203 329\n"" 780 315 369 154 370\n"" 781 146 234 113 311\n"" 782 363 366 232 367\n"" 783 159 298 228 358\n"" 784 292 328 33 381\n"" 785 68 301 230 373\n"" 786 271 340 324 389\n"" 787 176 263 112 275\n"" 788 1 369 315 370\n"" 789 159 308 255 364\n"" 790 253 255 159 308\n"" 791 262 312 56 313\n"" 792 19 290 226 383\n"" 793 84 352 215 399\n"" 794 23 158 95 245\n"" 795 145 235 56 238\n"" 796 132 322 213 324\n"" 797 77 268 185 335\n"" 798 175 214 52 376\n"" 799 108 255 253 308\n"" 800 56 238 235 313\n"" 801 111 175 8 331\n"" 802 52 286 213 321\n"" 803 149 244 91 316\n"" 804 237 5 306 305\n"" 805 165 326 113 365\n"" 806 58 293 224 316\n"" 807 204 263 130 275\n"" 808 222 292 58 328\n"" 809 175 261 260 331\n"" 810 45 253 228 299\n"" 811 250 321 320 322\n"" 812 102 272 220 303\n"" 813 182 267 98 319\n"" 814 170 379 253 380\n"" 815 151 241 10 294\n"" 816 52 321 213 322\n"" 817 215 278 84 399\n"" 818 282 354 216 399\n"" 819 22 267 68 374\n"" 820 230 373 319 374\n"" 821 97 98 15 248\n"" 822 274 341 223 342\n"" 823 15 163 97 248\n"" 824 153 316 36 369\n"" 825 132 351 212 387\n"" 826 185 251 122 268\n"" 827 122 189 185 268\n"" 828 250 324 270 338\n"" 829 233 345 297 357\n"" 830 129 277 128 346\n"" 831 165 249 171 326\n"" 832 122 268 251 377\n"" 833 259 329 172 332\n"" 834 255 364 311 365\n"" 835 140 220 22 267\n"" 836 142 282 218 388\n"" 837 108 326 313 377\n"" 838 221 252 140 289\n"" 839 77 196 195 335\n"" 840 251 271 77 340\n"" 841 250 251 122 324\n"" 842 238 309 57 326\n"" 843 227 386 378 389\n"" 844 171 255 108 326\n"" 845 256 259 111 331\n"" 846 178 365 266 392\n"" 847 178 311 69 391\n"" 848 102 219 197 272\n"" 849 172 259 257 331\n"" 850 258 342 329 381\n"" 851 143 296 224 300\n"" 852 88 299 231 300\n"" 853 182 319 98 373\n"" 854 44 220 197 272\n"" 855 107 202 44 272\n"" 856 333 210 209 347\n"" 857 299 300 88 380\n"" 858 67 253 176 325\n"" 859 212 354 284 387\n"" 860 203 110 332 277\n"" 861 171 251 108 327\n"" 862 96 221 171 255\n"" 863 45 221 96 255\n"" 864 58 293 223 328\n"" 865 148 235 147 313\n"" 866 36 316 154 369\n"" 867 92 395 394 396\n"" 868 132 351 280 376\n"" 869 253 299 45 327\n"" 870 233 334 310 364\n"" 871 195 335 193 382\n"" 872 193 268 21 382\n"" 873 223 293 141 328\n"" 874 292 293 58 328\n"" 875 38 137 287 217\n"" 876 315 1 314 369\n"" 877 141 274 223 342\n"" 878 188 268 122 377\n"" 879 141 293 292 328\n"" 880 235 236 147 313\n"" 881 235 238 236 313\n"" 882 57 240 147 313\n"" 883 88 282 212 292\n"" 884 23 297 159 334\n"" 885 259 325 132 330\n"" 886 23 334 159 391\n"" 887 283 324 132 389\n"" 888 205 345 304 363\n"" 889 253 325 67 330\n"" 890 43 162 96 382\n"" 891 257 331 259 332\n"" 892 256 331 257 332\n"" 893 172 329 257 332\n"" 894 54 356 218 383\n"" 895 259 331 256 332\n"" 896 208 131 32 350\n"" 897 280 348 213 349\n"" 898 118 270 213 285\n"" 899 16 270 118 285\n"" 900 253 308 159 357\n"" 901 81 276 257 277\n"" 902 228 253 45 264\n"" 903 31 262 169 368\n"" 904 262 313 169 368\n"" 905 108 313 308 368\n"" 906 159 255 253 264\n"" 907 253 255 45 264\n"" 908 95 181 158 265\n"" 909 45 264 255 365\n"" 910 113 311 178 392\n"" 911 177 178 12 392\n"" 912 100 365 165 392\n"" 913 369 370 92 395\n"" 914 72 179 166 266\n"" 915 150 294 241 302\n"" 916 134 218 55 302\n"" 917 166 179 71 266\n"" 918 179 180 71 266\n"" 919 46 166 71 266\n"" 920 71 180 46 266\n"" 921 308 364 363 393\n"" 922 238 313 312 393\n"" 923 238 364 308 393\n"" 924 366 367 363 393\n"" 925 218 287 282 302\n"" 926 72 166 60 266\n"" 927 166 181 60 266\n"" 928 116 373 301 398\n"" 929 225 372 317 397\n"" 930 226 388 352 399\n"" 931 145 238 56 312\n"" 932 176 325 108 368\n"" 933 152 35 154 370\n"" 934 108 327 251 379\n"" 935 135 291 216 354\n"" 936 283 324 271 379\n"" 937 213 324 322 338\n"" 938 284 351 132 387\n"" 939 321 322 250 338\n"" 940 73 323 270 337\n"" 941 270 323 250 337\n"" 942 286 321 119 338\n"" 943 250 323 320 337\n"" 944 320 323 73 337\n"" 945 213 322 321 338\n"" 946 122 189 188 270\n"" 947 183 184 29 270\n"" 948 29 187 183 270\n"" 949 16 183 118 270\n"" 950 119 183 16 270\n"" 951 252 271 142 339\n"" 952 196 289 219 339\n"" 953 69 311 310 364\n"" 954 185 191 49 340\n"" 955 29 184 75 270\n"" 956 75 187 29 270\n"" 957 184 188 123 270\n"" 958 188 189 123 270\n"" 959 123 189 184 270\n"" 960 255 308 108 326\n"" 961 108 308 238 326\n"" 962 245 298 274 358\n"" 963 111 332 256 343\n"" 964 53 227 207 386\n"" 965 58 244 153 293\n"" 966 91 296 224 361\n"" 967 268 336 171 377\n"" 968 162 249 96 382\n"" 969 141 329 274 342\n"" 970 259 322 132 325\n"" 971 213 348 280 386\n"" 972 130 275 263 343\n"" 973 161 230 95 318\n"" 974 95 230 45 318\n"" 975 228 298 95 318\n"" 976 302 303 55 362\n"" 977 45 230 143 318\n"" 978 95 245 161 318\n"" 979 77 251 171 327\n"" 980 233 363 357 364\n"" 981 213 280 132 386\n"" 982 173 109 390 359\n"" 983 159 297 23 298\n"" 984 213 286 52 349\n"" 985 108 251 171 377\n"" 986 209 280 52 349\n"" 987 252 289 271 339\n"" 988 84 278 207 284\n"" 989 142 252 218 282\n"" 990 88 252 142 282\n"" 991 190 271 19 389\n"" 992 257 276 256 332\n"" 993 251 268 171 377\n"" 994 122 270 188 323\n"" 995 138 218 139 287\n"" 996 226 383 352 388\n"" 997 73 169 120 323\n"" 998 73 320 169 323\n"" 999 324 325 251 379\n"" 1000 364 365 255 391\n"" 1001 228 300 141 318\n"" 1002 224 296 143 361\n"" 1003 87 167 139 288\n"" 1004 297 334 233 357\n"" 1005 85 284 279 354\n"" 1006 122 324 251 340\n"" 1007 170 221 77 289\n"" 1008 170 271 252 289\n"" 1009 77 195 126 289\n"" 1010 167 220 55 303\n"" 1011 139 218 134 287\n"" 1012 216 217 135 287\n"" 1013 135 282 216 287\n"" 1014 245 300 296 318\n"" 1015 58 292 224 293\n"" 1016 171 249 21 382\n"" 1017 172 259 82 351\n"" 1018 131 284 279 387\n"" 1019 134 241 38 355\n"" 1020 18 288 101 356\n"" 1021 38 287 134 355\n"" 1022 139 167 55 356\n"" 1023 139 218 138 356\n"" 1024 142 383 271 389\n"" 1025 216 282 135 354\n"" 1026 353 383 142 389\n"" 1027 271 283 142 389\n"" 1028 131 350 284 387\n"" 1029 274 358 298 390\n"" 1030 86 216 215 287\n"" 1031 86 217 216 287\n"" 1032 195 202 126 289\n"" 1033 195 221 202 289\n"" 1034 77 221 195 289\n"" 1035 140 272 219 303\n"" 1036 33 291 222 292\n"" 1037 212 291 33 292\n"" 1038 229 296 91 361\n"" 1039 140 231 220 303\n"" 1040 145 307 238 393\n"" 1041 222 224 58 292\n"" 1042 270 324 122 340\n"" 1043 96 319 221 375\n"" 1044 216 278 215 399\n"" 1045 274 341 173 372\n"" 1046 88 252 231 299\n"" 1047 216 279 278 399\n"" 1048 115 248 116 398\n"" 1049 274 359 225 372\n"" 1050 153 395 92 396\n"" 1051 245 298 228 318\n"" 1052 95 298 245 318\n"" 1053 143 300 228 318\n"" 1054 231 303 302 362\n"" 1055 91 229 41 296\n"" 1056 293 396 223 397\n"" 1057 249 255 45 375\n"" 1058 42 245 225 317\n"" 1059 304 345 233 363\n"" 1060 55 303 220 362\n"" 1061 231 302 150 362\n"" 1062 216 354 279 399\n"" 1063 361 224 151 360\n"" 1064 282 388 142 399\n"" 1065 96 255 249 375\n"" 1066 151 222 135 360\n"" 1067 222 292 291 360\n"" 1068 159 264 23 391\n"" 1069 127 206 128 346\n"" 1070 95 265 23 391\n"" 1071 69 334 265 391\n"" 1072 159 264 228 298\n"" 1073 228 264 95 298\n"" 1074 23 245 95 298\n"" 1075 282 292 88 360\n"" 1076 67 330 329 358\n"" 1077 23 264 159 298\n"" 1078 95 264 23 298\n"" 1079 229 231 22 374\n"" 1080 60 157 72 301\n"" 1081 157 179 72 301\n"" 1082 116 266 179 301\n"" 1083 95 160 60 301\n"" 1084 60 266 181 301\n"" 1085 181 266 116 301\n"" 1086 60 181 95 301\n"" 1087 181 230 95 301\n"" 1088 160 161 93 301\n"" 1089 161 230 93 301\n"" 1090 68 155 93 301\n"" 1091 93 230 68 301\n"" 1092 179 266 72 301\n"" 1093 72 266 60 301\n"" 1094 95 161 160 301\n"" 1095 95 230 161 301\n"" 1096 308 357 176 363\n"" 1097 255 326 171 365\n"" 1098 91 294 150 361\n"" 1099 294 360 302 361\n"" 1100 231 300 143 361\n"" 1101 88 302 231 303\n"" 1102 245 371 293 397\n"" 1103 146 236 40 307\n"" 1104 236 238 235 307\n"" 1105 235 238 145 307\n"" 1106 110 203 332 329\n"" 1107 177 234 178 311\n"" 1108 113 234 177 311\n"" 1109 169 262 56 313\n"" 1110 148 169 56 313\n"" 1111 89 237 145 307\n"" 1112 89 305 237 307\n"" 1113 306 40 145 307\n"" 1114 146 40 306 307\n"" 1115 237 306 145 307\n"" 1116 237 305 306 307\n"" 1117 306 239 146 307\n"" 1118 305 239 306 307\n"" 1119 146 239 39 307\n"" 1120 239 305 39 307\n"" 1121 40 235 145 307\n"" 1122 40 236 235 307\n"" 1123 177 178 113 311\n"" 1124 253 255 108 327\n"" 1125 307 309 238 311\n"" 1126 178 234 69 311\n"" 1127 170 251 77 327\n"" 1128 271 324 170 379\n"" 1129 146 307 234 311\n"" 1130 181 266 99 365\n"" 1131 69 234 144 311\n"" 1132 234 307 144 311\n"" 1133 228 299 253 380\n"" 1134 100 266 249 365\n"" 1135 178 266 99 392\n"" 1136 99 266 178 365\n"" 1137 113 365 311 392\n"" 1138 99 266 164 392\n"" 1139 108 308 176 368\n"" 1140 313 323 169 368\n"" 1141 45 255 249 365\n"" 1142 232 363 304 366\n"" 1143 308 313 176 368\n"" 1144 146 309 307 311\n"" 1145 113 309 146 311\n"" 1146 52 280 175 376\n"" 1147 144 310 69 311\n"" 1148 115 179 114 398\n"" 1149 114 248 115 398\n"" 1150 176 262 31 368\n"" 1151 212 284 132 387\n"" 1152 89 366 144 367\n"" 1153 153 370 369 395\n"" 1154 153 369 92 395\n"" 1155 301 373 24 398\n"" 1156 53 350 348 386\n"" 1157 108 325 250 368\n"" 1158 371 395 153 396\n"" 1159 24 301 68 373\n"" 1160 70 179 155 398\n"" 1161 161 296 143 318\n"" 1162 95 264 228 318\n"" 1163 228 264 45 318\n"" 1164 45 264 95 318\n"" 1165 45 299 228 318\n"" 1166 228 299 143 318\n"" 1167 143 299 45 318\n"" 1168 68 373 230 374\n"" 1169 267 319 182 374\n"" 1170 259 351 132 376\n"" 1171 202 272 221 319\n"" 1172 221 272 140 319\n"" 1173 202 221 96 319\n"" 1174 96 248 202 319\n"" 1175 116 373 248 375\n"" 1176 44 202 98 319\n"" 1177 98 267 44 319\n"" 1178 267 272 44 319\n"" 1179 44 272 202 319\n"" 1180 230 373 116 375\n"" 1181 143 231 229 374\n"" 1182 116 249 181 375\n"" 1183 45 319 230 375\n"" 1184 116 181 45 375\n"" 1185 175 331 111 376\n"" 1186 280 322 132 376\n"" 1187 171 336 326 377\n"" 1188 261 347 131 350\n"" 1189 131 347 32 350\n"" 1190 128 206 129 346\n"" 1191 238 313 108 326\n"" 1192 171 254 21 326\n"" 1193 329 358 330 381\n"" 1194 251 327 170 379\n"" 1195 325 330 253 379\n"" 1196 172 281 33 381\n"" 1197 212 282 142 354\n"" 1198 110 329 258 342\n"" 1199 205 344 50 385\n"" 1200 376 261 351 280\n"" 1201 173 174 20 341\n"" 1202 322 324 132 379\n"" 1203 322 325 324 379\n"" 1204 298 358 67 390\n"" 1205 67 329 203 390\n"" 1206 21 254 165 326\n"" 1207 184 270 119 337\n"" 1208 142 284 283 354\n"" 1209 73 270 184 337\n"" 1210 218 303 252 339\n"" 1211 250 323 108 368\n"" 1212 245 274 225 397\n"" 1213 165 254 113 326\n"" 1214 275 344 205 385\n"" 1215 254 309 113 326\n"" 1216 309 311 113 326\n"" 1217 96 221 77 382\n"" 1218 249 326 165 365\n"" 1219 125 196 185 335\n"" 1220 224 245 371 293\n"" 1221 203 329 67 332\n"" 1222 50 206 127 344\n"" 1223 162 193 21 382\n"" 1224 8 256 111 331\n"" 1225 82 259 172 331\n"" 1226 245 224 371 296\n"" 1227 260 8 175 331\n"" 1228 250 368 325 384\n"" 1229 219 356 290 383\n"" 1230 96 195 43 382\n"" 1231 271 339 290 383\n"" 1232 212 330 292 381\n"" 1233 265 334 23 391\n"" 1234 329 330 259 381\n"" 1235 329 342 141 381\n"" 1236 77 221 171 382\n"" 1237 43 195 193 382\n"" 1238 292 380 141 381\n"" 1239 141 380 358 381\n"" 1240 111 259 256 332\n"" 1241 135 355 151 360\n"" 1242 130 344 275 346\n"" 1243 206 276 129 346\n"" 1244 207 350 53 386\n"" 1245 128 277 51 346\n"" 1246 51 127 128 346\n"" 1247 353 386 227 389\n"" 1248 271 290 19 383\n"" 1249 339 356 219 383\n"" 1250 322 324 250 338\n"" 1251 250 337 320 338\n"" 1252 320 337 119 338\n"" 1253 119 270 16 338\n"" 1254 270 285 16 338\n"" 1255 213 286 285 338\n"" 1256 285 286 16 338\n"" 1257 16 286 119 338\n"" 1258 343 376 259 384\n"" 1259 250 320 31 384\n"" 1260 252 303 140 339\n"" 1261 140 303 219 339\n"" 1262 191 271 196 339\n"" 1263 191 290 271 339\n"" 1264 196 290 191 339\n"" 1265 196 219 64 339\n"" 1266 219 290 64 339\n"" 1267 64 290 196 339\n"" 1268 31 368 250 384\n"" 1269 31 263 176 384\n"" 1270 322 376 214 384\n"" 1271 185 196 191 340\n"" 1272 196 271 191 340\n"" 1273 203 275 67 390\n"" 1274 345 357 275 390\n"" 1275 77 196 185 340\n"" 1276 77 271 196 340\n"" 1277 187 190 118 340\n"" 1278 118 270 187 340\n"" 1279 256 332 130 343\n"" 1280 67 325 176 343\n"" 1281 67 329 259 343\n"" 1282 67 332 329 343\n"" 1283 329 332 259 343\n"" 1284 298 357 297 390\n"" 1285 227 353 207 386\n"" 1286 344 346 127 385\n"" 1287 203 346 275 385\n"" 1288 348 350 280 386\n"" 1289 67 330 325 343\n"" 1290 325 330 259 343\n"" 1291 259 330 67 343\n"" 1292 284 350 207 386\n"" 1293 280 350 284 386\n"" 1294 207 353 284 386\n"" 1295 130 276 206 346\n"" 1296 130 332 276 346\n"" 1297 129 276 81 346\n"" 1298 276 277 81 346\n"" 1299 81 277 129 346\n"" 1300 203 332 275 346\n"" 1301 275 332 130 346\n"" 1302 53 348 213 386\n"" 1303 284 353 132 386\n"" 1304 280 348 211 350\n"" 1305 211 348 53 350\n"" 1306 85 281 131 387\n"" 1307 207 284 279 350\n"" 1308 279 284 131 350\n"" 1309 207 279 208 350\n"" 1310 208 279 131 350\n"" 1311 333 211 32 350\n"" 1312 333 347 211 350\n"" 1313 32 347 333 350\n"" 1314 350 351 284 387\n"" 1315 85 291 281 387\n"" 1316 281 381 351 387\n"" 1317 240 336 186 377\n"" 1318 313 368 108 377\n"" 1319 21 268 171 382\n"" 1320 171 221 96 382\n"" 1321 268 335 171 382\n"" 1322 218 287 136 388\n"" 1323 54 383 218 388\n"" 1324 218 383 142 388\n"" 1325 142 383 226 388\n"" 1326 82 261 131 351\n"" 1327 261 280 131 351\n"" 1328 284 350 280 351\n"" 1329 280 350 131 351\n"" 1330 226 227 19 353\n"" 1331 85 354 291 387\n"" 1332 131 351 350 387\n"" 1333 150 231 229 361\n"" 1334 88 360 224 361\n"" 1335 279 284 85 387\n"" 1336 281 291 212 387\n"" 1337 135 287 217 355\n"" 1338 150 302 231 361\n"" 1339 217 287 38 355\n"" 1340 283 284 212 354\n"" 1341 132 353 283 389\n"" 1342 118 340 190 389\n"" 1343 190 340 271 389\n"" 1344 271 383 19 389\n"" 1345 138 288 139 356\n"" 1346 176 368 31 384\n"" 1347 102 167 168 356\n"" 1348 101 219 200 356\n"" 1349 200 219 102 356\n"" 1350 167 18 168 356\n"" 1351 168 18 101 356\n"" 1352 101 290 219 356\n"" 1353 54 290 101 356\n"" 1354 138 218 54 356\n"" 1355 54 288 138 356\n"" 1356 259 376 322 384\n"" 1357 325 368 176 384\n"" 1358 168 200 102 356\n"" 1359 101 200 168 356\n"" 1360 176 253 67 357\n"" 1361 176 308 253 357\n"" 1362 307 310 144 364\n"" 1363 266 365 100 392\n"" 1364 135 291 282 360\n"" 1365 222 291 135 360\n"" 1366 282 291 212 360\n"" 1367 291 292 212 360\n"" 1368 212 292 282 360\n"" 1369 58 222 151 360\n"" 1370 58 224 222 360\n"" 1371 151 224 58 360\n"" 1372 22 231 150 362\n"" 1373 220 231 22 362\n"" 1374 241 294 151 360\n"" 1375 241 302 294 360\n"" 1376 282 302 287 360\n"" 1377 302 355 287 360\n"" 1378 282 287 135 360\n"" 1379 287 355 135 360\n"" 1380 241 355 302 360\n"" 1381 151 355 241 360\n"" 1382 294 295 151 361\n"" 1383 151 360 294 361\n"" 1384 204 205 17 363\n"" 1385 205 304 17 363\n"" 1386 132 324 213 386\n"" 1387 17 304 232 363\n"" 1388 250 320 169 368\n"" 1389 113 326 311 365\n"" 1390 274 372 225 397\n"" 1391 238 312 145 393\n"" 1392 372 395 317 397\n"" 1393 144 307 89 367\n"" 1394 89 307 145 367\n"" 1395 181 264 45 365\n"" 1396 249 266 181 365\n"" 1397 311 326 255 365\n"" 1398 310 311 144 364\n"" 1399 144 311 307 364\n"" 1400 176 313 262 368\n"" 1401 169 320 31 368\n"" 1402 144 366 307 367\n"" 1403 169 323 250 368\n"" 1404 232 366 89 367\n"" 1405 112 363 17 367\n"" 1406 275 346 344 385\n"" 1407 317 395 371 397\n"" 1408 145 367 307 393\n"" 1409 363 364 233 393\n"" 1410 363 367 112 393\n"" 1411 164 266 100 392\n"" 1412 307 364 238 393\n"" 1413 112 367 312 393\n"" 1414 165 365 113 392\n"" 1415 311 365 178 392\n"" 1416 12 99 164 392\n"" 1417 173 359 274 372\n"" 1418 248 373 116 398\n"" 1419 245 317 42 371\n"" 1420 42 317 152 371\n"" 1421 161 245 42 371\n"" 1422 42 247 161 371\n"" 1423 161 247 246 371\n"" 1424 246 296 161 371\n"" 1425 154 296 246 371\n"" 1426 154 316 296 371\n"" 1427 246 247 154 371\n"" 1428 152 154 35 371\n"" 1429 154 247 35 371\n"" 1430 35 247 152 371\n"" 1431 152 370 154 371\n"" 1432 114 373 248 398\n"" 1433 179 301 155 398\n"" 1434 114 179 70 398\n"" 1435 24 114 70 398\n"" 1436 153 370 152 371\n"" 1437 154 369 316 371\n"" 1438 154 370 369 371\n"" 1439 316 369 153 371\n"" 1440 369 370 153 371\n"" 1441 215 388 287 399\n"" 1442 278 284 84 399\n"" 1443 231 299 140 374\n"" 1444 299 319 140 374\n"" 1445 45 299 230 374\n"" 1446 45 319 299 374\n"" 1447 230 319 45 374\n"" 1448 45 365 249 375\n"" 1449 249 365 181 375\n"" 1450 181 365 45 375\n"" 1451 311 364 69 391\n"" 1452 259 343 111 376\n"" 1453 111 214 175 376\n"" 1454 175 280 261 376\n"" 1455 224 361 151 295\n"" 1456 82 351 331 376\n"" 1457 127 203 109 385\n"" 1458 50 344 127 385\n"" 1459 82 331 261 376\n"" 1460 261 331 175 376\n"" 1461 250 251 108 377\n"" 1462 108 323 250 377\n"" 1463 122 251 250 377\n"" 1464 250 323 122 377\n"" 1465 188 240 186 377\n"" 1466 186 268 188 377\n"" 1467 240 326 57 377\n"" 1468 326 336 57 377\n"" 1469 57 336 240 377\n"" 1470 108 325 253 379\n"" 1471 170 327 253 379\n"" 1472 253 327 108 379\n"" 1473 252 283 170 380\n"" 1474 212 283 88 380\n"" 1475 212 330 283 380\n"" 1476 330 379 283 380\n"" 1477 283 379 170 380\n"" 1478 253 330 67 380\n"" 1479 330 358 67 380\n"" 1480 67 358 253 380\n"" 1481 21 249 162 382\n"" 1482 300 358 141 380\n"" 1483 292 300 141 380\n"" 1484 77 195 96 382\n"" 1485 88 292 212 380\n"" 1486 292 330 212 380\n"" 1487 330 351 259 381\n"" 1488 172 329 259 381\n"" 1489 259 351 172 381\n"" 1490 212 351 330 381\n"" 1491 141 342 328 381\n"" 1492 328 342 258 381\n"" 1493 142 353 226 383\n"" 1494 226 353 19 383\n"" 1495 142 339 271 383\n"" 1496 274 359 173 390\n"" 1497 225 298 297 390\n"" 1498 31 320 214 384\n"" 1499 250 322 320 384\n"" 1500 320 322 214 384\n"" 1501 111 376 343 384\n"" 1502 214 376 111 384\n"" 1503 111 263 214 384\n"" 1504 111 343 263 384\n"" 1505 53 378 227 386\n"" 1506 213 378 53 386\n"" 1507 203 385 275 390\n"" 1508 132 351 284 386\n"" 1509 284 351 280 386\n"" 1510 280 351 132 386\n"" 1511 109 385 203 390\n"" 1512 109 359 297 390\n"" 1513 351 381 212 387\n"" 1514 212 381 281 387\n"" 1515 131 281 82 387\n"" 1516 281 351 82 387\n"" 1517 82 351 131 387\n"" 1518 313 148 323 240\n"" 1519 136 287 215 388\n"" 1520 215 352 136 388\n"" 1521 136 352 54 388\n"" 1522 54 138 136 388\n"" 1523 54 218 138 388\n"" 1524 138 218 136 388\n"" 1525 283 353 142 389\n"" 1526 190 378 118 389\n"" 1527 324 340 270 389\n"" 1528 270 340 118 389\n"" 1529 378 386 213 389\n"" 1530 213 386 324 389\n"" 1531 132 386 353 389\n"" 1532 324 386 132 389\n"" 1533 118 378 213 389\n"" 1534 213 270 118 389\n"" 1535 213 324 270 389\n"" 1536 275 385 345 390\n"" 1537 345 385 109 390\n"" 1538 67 358 329 390\n"" 1539 329 358 274 390\n"" 1540 181 265 95 391\n"" 1541 99 265 181 391\n"" 1542 181 365 99 391\n"" 1543 178 265 99 391\n"" 1544 99 365 178 391\n"" 1545 233 364 310 393\n"" 1546 310 366 233 393\n"" 1547 304 363 233 393\n"" 1548 304 366 363 393\n"" 1549 233 366 304 393\n"" 1550 310 364 307 393\n"" 1551 308 363 176 393\n"" 1552 176 363 112 393\n"" 1553 312 313 262 393\n"" 1554 262 313 308 393\n"" 1555 144 310 307 393\n"" 1556 144 366 310 393\n"" 1557 307 366 144 393\n"" 1558 262 308 176 393\n"" 1559 112 262 176 393\n"" 1560 112 312 262 393\n"" 1561 223 341 274 397\n"" 1562 341 372 274 397\n"" 1563 223 396 341 397\n"" 1564 394 395 372 397\n"" 1565 394 396 395 397\n"" 1566 395 396 371 397\n"" 1567 371 396 293 397\n"" 1568 341 396 394 397\n"" 1569 341 394 20 397\n"" 1570 394 372 20 397\n"" 1571 20 372 341 397\n"" 1572 279 284 278 399\n"" 1573 279 354 284 399\n"" 1574 216 287 282 399\n"" 1575 215 287 216 399\n"" 1576 142 353 284 399\n"" 1577 284 354 142 399\n"" 1578 226 353 142 399\n"" 1579 142 388 226 399\n""# Generated by tetgen -a0.01 cube.smesh \n"); } diff --git a/Demos3/GpuDemos/shadows/ShadowMapDemo.cpp b/Demos3/GpuDemos/shadows/ShadowMapDemo.cpp deleted file mode 100644 index c831ed5d0..000000000 --- a/Demos3/GpuDemos/shadows/ShadowMapDemo.cpp +++ /dev/null @@ -1,310 +0,0 @@ -#if 0 -#include "ShadowMapDemo.h" -#include "ShadowMapDemoInternalData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLPrimitiveRenderer.h" - -#include "OpenGLWindow/ShapeData.h" -#include "Bullet3Common/b3Quaternion.h" -#include - -ShadowMapDemo::ShadowMapDemo() -{ - m_shadowData = new ShadowMapDemoInternalData; -} - -ShadowMapDemo::~ShadowMapDemo() -{ - delete m_shadowData; -} - - -void ShadowMapDemo::initPhysics(const ConstructionInfo& ci) -{ - m_shadowData->m_instancingRenderer = ci.m_instancingRenderer; - m_shadowData->m_primitiveRenderer = ci.m_primRenderer; - - float pos[4]={0,3,0,0}; - float orn[4]={0,0,0,1}; - float color[4]={1,0,0,1}; - float scaling[4]={1,1,1,1}; - if (1) - { - ///create a sphere - int sphereShape = registerGraphicsSphereShape(ci,0.1,false); - ci.m_instancingRenderer->registerGraphicsInstance(sphereShape,pos,orn,color,scaling); - } - if (1) - { - //create a cube - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_vertices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - int boxShape = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - pos[1]=0.f; - scaling[0]=scaling[2]=50.f; - color[0]=1.f; - color[1]=1.f; - color[2]=1.f; - color[3]=1.f; - ci.m_instancingRenderer->registerGraphicsInstance(boxShape ,pos,orn,color,scaling); - } - - b3Vector3 shift(0,0,0); - if (0) - { - b3Vector3 scaling(1,1,1); - const char* filename="data/room_thickwalls.obj"; - this->createConcaveMesh(ci,filename,shift,scaling); - } - - { - b3Vector3 camPos(0, 2,5); - m_shadowData->m_instancingRenderer->setCameraTargetPosition(camPos); - m_shadowData->m_instancingRenderer->setCameraPitch(0); - m_shadowData->m_instancingRenderer->setCameraYaw(0); - - m_shadowData->m_instancingRenderer->setCameraDistance(15); - } - //m_shadowData->m_instancingRenderer->setCameraYaw(55); - ci.m_instancingRenderer->writeTransforms(); -} - -void ShadowMapDemo::exitPhysics() -{ -} - - -void ShadowMapDemo::clientMoveAndDisplay() -{ -} - -#include"../../Wavefront/objLoader.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" - -static GLInstanceGraphicsShape* createGraphicsShapeFromWavefrontObj(objLoader* obj) -{ - b3AlignedObjectArray* vertices = new b3AlignedObjectArray; - { -// int numVertices = obj->vertexCount; - // int numIndices = 0; - b3AlignedObjectArray* indicesPtr = new b3AlignedObjectArray; - /* - for (int v=0;vvertexCount;v++) - { - vtx.xyzw[0] = obj->vertexList[v]->e[0]; - vtx.xyzw[1] = obj->vertexList[v]->e[1]; - vtx.xyzw[2] = obj->vertexList[v]->e[2]; - b3Vector3 n(vtx.xyzw[0],vtx.xyzw[1],vtx.xyzw[2]); - if (n.length2()>B3_EPSILON) - { - n.normalize(); - vtx.normal[0] = n[0]; - vtx.normal[1] = n[1]; - vtx.normal[2] = n[2]; - - } else - { - vtx.normal[0] = 0; //todo - vtx.normal[1] = 1; - vtx.normal[2] = 0; - } - vtx.uv[0] = 0.5f;vtx.uv[1] = 0.5f; //todo - vertices->push_back(vtx); - } - */ - - for (int f=0;ffaceCount;f++) - { - obj_face* face = obj->faceList[f]; - //b3Vector3 normal(face.m_plane[0],face.m_plane[1],face.m_plane[2]); - if (face->vertex_count>=3) - { - b3Vector3 normal(0,1,0); - int vtxBaseIndex = vertices->size(); - - if (face->vertex_count<=4) - { - indicesPtr->push_back(vtxBaseIndex); - indicesPtr->push_back(vtxBaseIndex+1); - indicesPtr->push_back(vtxBaseIndex+2); - - GLInstanceVertex vtx0; - vtx0.xyzw[0] = obj->vertexList[face->vertex_index[0]]->e[0]; - vtx0.xyzw[1] = obj->vertexList[face->vertex_index[0]]->e[1]; - vtx0.xyzw[2] = obj->vertexList[face->vertex_index[0]]->e[2]; - vtx0.xyzw[3] = 0.f;//obj->vertexList[face->vertex_index[0]]->e[2]; - - vtx0.uv[0] = 0.5f;//obj->textureList[face->vertex_index[0]]->e[0]; - vtx0.uv[1] = 0.5f;//obj->textureList[face->vertex_index[0]]->e[1]; - - GLInstanceVertex vtx1; - vtx1.xyzw[0] = obj->vertexList[face->vertex_index[1]]->e[0]; - vtx1.xyzw[1] = obj->vertexList[face->vertex_index[1]]->e[1]; - vtx1.xyzw[2] = obj->vertexList[face->vertex_index[1]]->e[2]; - vtx1.xyzw[3]= 0.f; - vtx1.uv[0] = 0.5f;//obj->textureList[face->vertex_index[1]]->e[0]; - vtx1.uv[1] = 0.5f;//obj->textureList[face->vertex_index[1]]->e[1]; - - GLInstanceVertex vtx2; - vtx2.xyzw[0] = obj->vertexList[face->vertex_index[2]]->e[0]; - vtx2.xyzw[1] = obj->vertexList[face->vertex_index[2]]->e[1]; - vtx2.xyzw[2] = obj->vertexList[face->vertex_index[2]]->e[2]; - vtx2.xyzw[3] = 0.f; - vtx2.uv[0] = 0.5f;obj->textureList[face->vertex_index[2]]->e[0]; - vtx2.uv[1] = 0.5f;obj->textureList[face->vertex_index[2]]->e[1]; - - - b3Vector3 v0(vtx0.xyzw[0],vtx0.xyzw[1],vtx0.xyzw[2]); - b3Vector3 v1(vtx1.xyzw[0],vtx1.xyzw[1],vtx1.xyzw[2]); - b3Vector3 v2(vtx2.xyzw[0],vtx2.xyzw[1],vtx2.xyzw[2]); - - normal = (v1-v0).cross(v2-v0); - normal.normalize(); - vtx0.normal[0] = normal[0]; - vtx0.normal[1] = normal[1]; - vtx0.normal[2] = normal[2]; - vtx1.normal[0] = normal[0]; - vtx1.normal[1] = normal[1]; - vtx1.normal[2] = normal[2]; - vtx2.normal[0] = normal[0]; - vtx2.normal[1] = normal[1]; - vtx2.normal[2] = normal[2]; - vertices->push_back(vtx0); - vertices->push_back(vtx1); - vertices->push_back(vtx2); - } - if (face->vertex_count==4) - { - - indicesPtr->push_back(vtxBaseIndex); - indicesPtr->push_back(vtxBaseIndex+1); - indicesPtr->push_back(vtxBaseIndex+2); - indicesPtr->push_back(vtxBaseIndex+3); -// - GLInstanceVertex vtx3; - vtx3.xyzw[0] = obj->vertexList[face->vertex_index[3]]->e[0]; - vtx3.xyzw[1] = obj->vertexList[face->vertex_index[3]]->e[1]; - vtx3.xyzw[2] = obj->vertexList[face->vertex_index[3]]->e[2]; - vtx3.uv[0] = 0.5; - vtx3.uv[1] = 0.5; - - vtx3.normal[0] = normal[0]; - vtx3.normal[1] = normal[1]; - vtx3.normal[2] = normal[2]; - - vertices->push_back(vtx3); - - } - } - } - - - GLInstanceGraphicsShape* gfxShape = new GLInstanceGraphicsShape; - gfxShape->m_vertices = vertices; - gfxShape->m_numvertices = vertices->size(); - gfxShape->m_indices = indicesPtr; - gfxShape->m_numIndices = indicesPtr->size(); - for (int i=0;i<4;i++) - gfxShape->m_scaling[i] = 1;//bake the scaling into the vertices - return gfxShape; - } -} - - -void ShadowMapDemo::createConcaveMesh(const ConstructionInfo& ci, const char* fileName, const b3Vector3& shift, const b3Vector3& scaling) -{ - objLoader* objData = new objLoader(); - - FILE* f = 0; - - char relativeFileName[1024]; - { - const char* prefix[]={"./","../","../../","../../../","../../../../"}; - int numPrefixes = sizeof(prefix)/sizeof(char*); - - for (int i=0;iload(relativeFileName); - int index=10; - - { - GLInstanceGraphicsShape* shape = createGraphicsShapeFromWavefrontObj(objData); - - - b3AlignedObjectArray verts; - for (int i=0;im_numvertices;i++) - { - for (int j=0;j<3;j++) - shape->m_vertices->at(i).xyzw[j] += shift[j]; - - b3Vector3 vtx(shape->m_vertices->at(i).xyzw[0], - shape->m_vertices->at(i).xyzw[1], - shape->m_vertices->at(i).xyzw[2]); - verts.push_back(vtx*scaling); - } - - - { - int strideInBytes = 9*sizeof(float); - int numVertices = sizeof(cube_vertices)/strideInBytes; - int numIndices = sizeof(cube_indices)/sizeof(int); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - //int shapeId = ci.m_instancingRenderer->registerShape(&cube_vertices[0],numVertices,cube_indices,numIndices); - - - int shapeId = ci.m_instancingRenderer->registerShape(&shape->m_vertices->at(0).xyzw[0], shape->m_numvertices, &shape->m_indices->at(0), shape->m_numIndices); - b3Quaternion orn(0,0,0,1); - - b3Vector4 color(0.3,0.3,1,1.f);//0.5);//1.f - - - { - float mass = 0.f; - b3Vector3 position(0,0,0); - int id = ci.m_instancingRenderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - index++; - } - } - } - delete objData; -} - - - - -void ShadowMapDemo::renderScene() -{ - float color[4]={1,1,1,1}; - m_shadowData->m_instancingRenderer->renderScene(); - - m_shadowData->m_instancingRenderer->enableShadowMap(); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_NONE ); -// glTexParameteri( GL_TEXTURE_2D, GL_DEPTH_TEXTURE_MODE, GL_LUMINANCE ); - m_shadowData->m_primitiveRenderer->drawTexturedRect(10,10,90,90,color,0,0,1,1,true); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); - - -} -#endif - - diff --git a/Demos3/GpuDemos/shadows/ShadowMapDemo.h b/Demos3/GpuDemos/shadows/ShadowMapDemo.h deleted file mode 100644 index 891005625..000000000 --- a/Demos3/GpuDemos/shadows/ShadowMapDemo.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef SHADOW_MAP_DEMO_H -#define SHADOW_MAP_DEMO_H - -#include "../GpuDemo.h" -#include "Bullet3Common/b3Vector3.h" - -class ShadowMapDemo : public GpuDemo -{ - struct ShadowMapDemoInternalData* m_shadowData; - -public: - - ShadowMapDemo(); - virtual ~ShadowMapDemo(); - - virtual const char* getName() - { - return "ShadowMapDemo"; - } - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void exitPhysics(); - - virtual void renderScene(); - - void createConcaveMesh(const ConstructionInfo& ci, const char* fileName, const b3Vector3& shift, const b3Vector3& scaling); - - - virtual void clientMoveAndDisplay(); - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new ShadowMapDemo; - return demo; - } - -}; - -#endif //SHADOW_MAP_DEMO_H diff --git a/Demos3/GpuDemos/shadows/ShadowMapDemoInternalData.h b/Demos3/GpuDemos/shadows/ShadowMapDemoInternalData.h deleted file mode 100644 index d019bcb3b..000000000 --- a/Demos3/GpuDemos/shadows/ShadowMapDemoInternalData.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef SHADOW_MAP_INTERNAL_DATA_H -#define SHADOW_MAP_INTERNAL_DATA_H - - -struct ShadowMapDemoInternalData -{ - class GLInstancingRenderer* m_instancingRenderer; - class GLPrimitiveRenderer* m_primitiveRenderer; - -}; - -#endif //SHADOW_MAP_INTERNAL_DATA_H - diff --git a/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.cpp b/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.cpp deleted file mode 100644 index 3eb54ceaf..000000000 --- a/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.cpp +++ /dev/null @@ -1,419 +0,0 @@ - -#include "GpuSoftBodyDemo.h" -#define USE_BARREL_VERTICES -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" -#include "../GpuDemoInternalData.h" -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "Bullet3OpenCL/RigidBody/b3GpuRigidBodyPipeline.h" -#include "Bullet3OpenCL/RigidBody/b3GpuNarrowPhase.h" -#include "Bullet3Collision/NarrowPhaseCollision/b3Config.h" -#include "GpuSoftBodyDemoInternalData.h" -#include "Bullet3Collision/BroadPhaseCollision/b3DynamicBvhBroadphase.h" - - -static b3KeyboardCallback oldCallback = 0; -extern bool gReset; - -#define MSTRINGIFY(A) #A - -static const char* s_rigidBodyKernelString = MSTRINGIFY( - -typedef struct -{ - float4 m_pos; - float4 m_quat; - float4 m_linVel; - float4 m_angVel; - unsigned int m_collidableIdx; - float m_invMass; - float m_restituitionCoeff; - float m_frictionCoeff; -} Body; - -__kernel void - copyTransformsToVBOKernel( __global Body* gBodies, __global float4* posOrnColor, const int numNodes) -{ - int nodeID = get_global_id(0); - if( nodeID < numNodes ) - { - posOrnColor[nodeID] = (float4) (gBodies[nodeID].m_pos.xyz,1.0); - posOrnColor[nodeID + numNodes] = gBodies[nodeID].m_quat; - } -} -); - - - - - -GpuSoftBodyDemo::GpuSoftBodyDemo() -:m_instancingRenderer(0), -m_window(0) -{ - m_data = new GpuSoftBodyDemoInternalData; -} -GpuSoftBodyDemo::~GpuSoftBodyDemo() -{ - - delete m_data; -} - - - - - - - -static void PairKeyboardCallback(int key, int state) -{ - if (key=='R' && state) - { - gReset = true; - } - - //b3DefaultKeyboardCallback(key,state); - oldCallback(key,state); -} - -void GpuSoftBodyDemo::setupScene(const ConstructionInfo& ci) -{ - -} - -void GpuSoftBodyDemo::initPhysics(const ConstructionInfo& ci) -{ - - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - if (ci.m_window) - { - m_window = ci.m_window; - oldCallback = ci.m_window->getKeyboardCallback(); - ci.m_window->setKeyboardCallback(PairKeyboardCallback); - - } - - m_instancingRenderer = ci.m_instancingRenderer; - - initCL(ci.preferredOpenCLDeviceIndex,ci.preferredOpenCLPlatformIndex); - - if (m_clData->m_clContext) - { - int errNum=0; - - cl_program rbProg=0; - m_data->m_copyTransformsToVBOKernel = b3OpenCLUtils::compileCLKernelFromString(m_clData->m_clContext,m_clData->m_clDevice,s_rigidBodyKernelString,"copyTransformsToVBOKernel",&errNum,rbProg); - - b3Config config; - b3GpuNarrowPhase* np = new b3GpuNarrowPhase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue,config); - b3GpuSapBroadphase* bp = new b3GpuSapBroadphase(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); - m_data->m_np = np; - m_data->m_bp = bp; - b3DynamicBvhBroadphase* broadphaseDbvt = new b3DynamicBvhBroadphase(config.m_maxConvexBodies); - - m_data->m_rigidBodyPipeline = new b3GpuRigidBodyPipeline(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue, np, bp,broadphaseDbvt,config); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - - setupScene(ci); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - m_data->m_rigidBodyPipeline->writeAllInstancesToGpu(); - np->writeAllBodiesToGpu(); - bp->writeAabbsToGpu(); - - } - - - m_instancingRenderer->writeTransforms(); - - - -} - -void GpuSoftBodyDemo::exitPhysics() -{ - delete m_data->m_instancePosOrnColor; - delete m_data->m_rigidBodyPipeline; - - m_window->setKeyboardCallback(oldCallback); - - delete m_data->m_np; - m_data->m_np = 0; - delete m_data->m_bp; - m_data->m_bp = 0; - - exitCL(); -} - - - -struct GraphicsVertex -{ - float pos[4]; - float normal[3]; - float texcoord[2]; -}; - -void GpuSoftClothDemo::renderScene() -{ - if (m_data->m_clothShapeIndex>=0 && m_data->m_clothVertices) - { - GraphicsVertex* cpu_buffer = (GraphicsVertex*)m_data->m_clothVertices; - int width = 256; - int height=256; - static float shift = 0.f; - shift+=0.01; - if (shift>B3_2_PI) - shift-=B3_2_PI; - - int numVertices = 0; - // Initial test data for rendering - for(int y = 0; y < height; y++) - { - for(int x = 0; x < width; x++) - { - - double coord = b3Sin(x/5.0+shift)*0.01; - //coord = sin(y/); - - cpu_buffer[y*width+x].pos[0] = (x/((float)(width-1)))*1; - cpu_buffer[y*width+x].pos[1] = coord; - cpu_buffer[y*width+x].pos[2] = (y/((float)(height-1)))*1; - cpu_buffer[y*width+x].pos[3] = 0.f; - - cpu_buffer[y*width+x].normal[0] = 1; - cpu_buffer[y*width+x].normal[1] = 0; - cpu_buffer[y*width+x].normal[2] = 0; - cpu_buffer[y*width+x].texcoord[0] = 1*x/((float)(width-1)); - cpu_buffer[y*width+x].texcoord[1] = (1.f-4*y/((float)(height-1))); - numVertices++; - } - } - - m_instancingRenderer->updateShape(m_data->m_clothShapeIndex,m_data->m_clothVertices); - } - m_instancingRenderer->renderScene(); - -} -void GpuSoftBodyDemo::renderScene() -{ - m_instancingRenderer->renderScene(); -} - -void GpuSoftBodyDemo::clientMoveAndDisplay() -{ - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - bool animate=true; - int numObjects= m_data->m_rigidBodyPipeline->getNumBodies(); -//m_instancingRenderer->getInternalData()->m_totalNumInstances; - b3Vector4* positions = 0; - if (animate && numObjects) - { - B3_PROFILE("gl2cl"); - - if (!m_data->m_instancePosOrnColor) - { - GLuint vbo = m_instancingRenderer->getInternalData()->m_vbo; - int arraySizeInBytes = numObjects * (3)*sizeof(b3Vector4); - glBindBuffer(GL_ARRAY_BUFFER, vbo); - cl_bool blocking= CL_TRUE; - positions= (b3Vector4*)glMapBufferRange( GL_ARRAY_BUFFER,m_instancingRenderer->getMaxShapeCapacity(),arraySizeInBytes, GL_MAP_READ_BIT );//GL_READ_WRITE);//GL_WRITE_ONLY - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - m_data->m_instancePosOrnColor = new b3OpenCLArray(m_clData->m_clContext,m_clData->m_clQueue); - m_data->m_instancePosOrnColor->resize(3*numObjects); - m_data->m_instancePosOrnColor->copyFromHostPointer(positions,3*numObjects,0); - glUnmapBuffer( GL_ARRAY_BUFFER); - err = glGetError(); - assert(err==GL_NO_ERROR); - } - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - { - B3_PROFILE("stepSimulation"); - m_data->m_rigidBodyPipeline->stepSimulation(1./60.f); - } - - if (numObjects) - { - B3_PROFILE("cl2gl_convert"); - int ciErrNum = 0; - cl_mem bodies = m_data->m_rigidBodyPipeline->getBodyBuffer(); - b3LauncherCL launch(m_clData->m_clQueue,m_data->m_copyTransformsToVBOKernel,"m_copyTransformsToVBOKernel"); - launch.setBuffer(bodies); - launch.setBuffer(m_data->m_instancePosOrnColor->getBufferCL()); - launch.setConst(numObjects); - launch.launch1D(numObjects); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (animate && numObjects) - { - B3_PROFILE("cl2gl_upload"); - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - GLuint vbo = m_instancingRenderer->getInternalData()->m_vbo; - int arraySizeInBytes = numObjects * (3)*sizeof(b3Vector4); - glBindBuffer(GL_ARRAY_BUFFER, vbo); - cl_bool blocking= CL_TRUE; - positions= (b3Vector4*)glMapBufferRange( GL_ARRAY_BUFFER,m_instancingRenderer->getMaxShapeCapacity(),arraySizeInBytes, GL_MAP_WRITE_BIT );//GL_READ_WRITE);//GL_WRITE_ONLY - err = glGetError(); - assert(err==GL_NO_ERROR); - m_data->m_instancePosOrnColor->copyToHostPointer(positions,3*numObjects,0); - glUnmapBuffer( GL_ARRAY_BUFFER); - err = glGetError(); - assert(err==GL_NO_ERROR); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - -} - - -GpuSoftClothDemo::GpuSoftClothDemo() -{ -} -GpuSoftClothDemo::~GpuSoftClothDemo() -{ -} - - - -void GpuSoftClothDemo::setupScene(const ConstructionInfo& ci) -{ - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - - int width = 256; - int height = 256; - - GraphicsVertex* cpu_buffer = new GraphicsVertex[width*height]; - memset(cpu_buffer, 0, width*height*sizeof(GraphicsVertex)); - - - int numVertices = 0; - // Initial test data for rendering - for(int y = 0; y < height; y++) - { - for(int x = 0; x < width; x++) - { - double coord = b3Sin(x/5.0)*0.01; - //coord = sin(y/); - - cpu_buffer[y*width+x].pos[0] = (x/((float)(width-1)))*1; - cpu_buffer[y*width+x].pos[1] = coord; - cpu_buffer[y*width+x].pos[2] = (y/((float)(height-1)))*1; - cpu_buffer[y*width+x].pos[3] = 0.f; - - cpu_buffer[y*width+x].normal[0] = 1; - cpu_buffer[y*width+x].normal[1] = 0; - cpu_buffer[y*width+x].normal[2] = 0; - cpu_buffer[y*width+x].texcoord[0] = 1*x/((float)(width-1)); - cpu_buffer[y*width+x].texcoord[1] = (1.f-4*y/((float)(height-1))); - numVertices++; - } - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - int numIndices = 0; - - // Generate and fill index array for rendering - int* indices = new int[width*3*2+2 + height*width*3*2]; - - for(int y = 0; y < height-1; y++) - { - for(int x = 0; x < width-1; x++) - { - // *3 indices/triangle, *2 triangles/quad - int baseIndex = (x + y*(width-1))*3*2; - indices[baseIndex] = x + y*width; - indices[baseIndex+1] = x+1 + y*width; - indices[baseIndex+2] = x+width + y*width; - - - indices[baseIndex+3] = x + 1 + y*width; - indices[baseIndex+4] = x+(width+1) + y*width; - indices[baseIndex+5] = x+width + y*width; - numIndices++; - } - } - - - int num_barrel_vertices = sizeof(barrel_vertices)/(9*sizeof(float)); - int num_barrel_indices = sizeof(barrel_indices)/sizeof(int); - - int textureIndex = -1; - { - int width,height,n; - - const char* filename = "data/bullet_logo.png"; - const unsigned char* image=0; - - const char* prefix[]={"./","../","../../","../../../","../../../../"}; - int numprefix = sizeof(prefix)/sizeof(const char*); - - for (int i=0;!image && iregisterTexture(image,width,height); - } - } -// int shapeIndex = ci.m_instancingRenderer->registerShape(barrel_vertices,num_barrel_vertices,barrel_indices,num_barrel_indices); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - m_data->m_clothVertices = &cpu_buffer[0].pos[0]; - - int shapeIndex = ci.m_instancingRenderer->registerShape(&cpu_buffer[0].pos[0],numVertices,indices,numIndices,B3_GL_TRIANGLES,textureIndex); - m_data->m_clothShapeIndex = shapeIndex; - - err = glGetError(); - assert(err==GL_NO_ERROR); - - - float pos[4] = {0,0,0,0}; - float orn[4] = {0,0,0,1}; - float color[4] = {1,1,1,1}; - float scaling[4] = {10,10,10,1}; - - ci.m_instancingRenderer->registerGraphicsInstance(shapeIndex,pos,orn,color,scaling); - ci.m_instancingRenderer->setCameraDistance(4); - ci.m_instancingRenderer->setCameraTargetPosition(pos); - - err = glGetError(); - assert(err==GL_NO_ERROR); - -} diff --git a/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.h b/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.h deleted file mode 100644 index 4d26c39c5..000000000 --- a/Demos3/GpuDemos/softbody/GpuSoftBodyDemo.h +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef GPU_SOFT_BODY_DEMO_H -#define GPU_SOFT_BODY_DEMO_H - -#include "../GpuDemo.h" - -class GpuSoftBodyDemo : public GpuDemo -{ -protected: - class GLInstancingRenderer* m_instancingRenderer; - class b3gWindowInterface* m_window; - - struct GpuSoftBodyDemoInternalData* m_data; - -public: - - GpuSoftBodyDemo(); - virtual ~GpuSoftBodyDemo(); - - virtual void initPhysics(const ConstructionInfo& ci); - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void destroyScene(){}; - - virtual void exitPhysics(); - - virtual const char* getName() - { - return "GPUSOFT"; - } - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuSoftBodyDemo; - return demo; - } - - virtual void renderScene(); - - virtual void clientMoveAndDisplay(); - - -}; - -class GpuSoftClothDemo : public GpuSoftBodyDemo -{ - - public: - GpuSoftClothDemo(); - virtual ~GpuSoftClothDemo(); - - - virtual void setupScene(const ConstructionInfo& ci); - - virtual void renderScene(); - - virtual const char* getName() - { - return "GpuSoftCloth"; - } - - static GpuDemo* MyCreateFunc() - { - GpuDemo* demo = new GpuSoftClothDemo; - return demo; - } - -}; - -#endif //GPU_SOFT_BODY_DEMO_H - diff --git a/Demos3/GpuDemos/softbody/GpuSoftBodyDemoInternalData.h b/Demos3/GpuDemos/softbody/GpuSoftBodyDemoInternalData.h deleted file mode 100644 index a5cc563b6..000000000 --- a/Demos3/GpuDemos/softbody/GpuSoftBodyDemoInternalData.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef GPU_SOFTBODY_INTERNAL_DATA_H -#define GPU_SOFTBODY_INTERNAL_DATA_H - -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "Bullet3OpenCL/ParallelPrimitives/b3OpenCLArray.h" -#include "Bullet3Common/b3Vector3.h" - -struct GpuSoftBodyDemoInternalData -{ - - cl_kernel m_copyTransformsToVBOKernel; - - b3OpenCLArray* m_instancePosOrnColor; - - class b3GpuRigidBodyPipeline* m_rigidBodyPipeline; - - class b3GpuNarrowPhase* m_np; - class b3GpuSapBroadphase* m_bp; - int m_clothShapeIndex; - float* m_clothVertices; - - GpuSoftBodyDemoInternalData() - :m_instancePosOrnColor(0), - m_copyTransformsToVBOKernel(0), m_rigidBodyPipeline(0), - m_np(0), - m_bp(0), - m_clothShapeIndex(-1), - m_clothVertices(0) - { - } -}; - -#endif//GPU_SOFTBODY_INTERNAL_DATA_H - diff --git a/Demos3/GpuGuiInitialize/main.cpp b/Demos3/GpuGuiInitialize/main.cpp deleted file mode 100644 index 30a4c7289..000000000 --- a/Demos3/GpuGuiInitialize/main.cpp +++ /dev/null @@ -1,547 +0,0 @@ - - -#ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" -#elif defined _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" -#elif defined __linux -#include "OpenGLWindow/X11OpenGLWindow.h" -#endif - -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -//#include "OpenGL3CoreRenderer.h" -//#include "b3GpuDynamicsWorld.h" -#include -#include -#include "OpenGLWindow/fontstash.h" -#include "OpenGLWindow/opengl_fontstashcallbacks.h" - -#include "OpenGLWindow/GwenOpenGL3CoreRenderer.h" -#include "../btgui/Bullet3AppSupport/b3Quickprof.h" - -#include "Gwen/Gwen.h" -#include "Gwen/Controls/Button.h" -#include "Gwen/Skins/Simple.h" -#include "Gwen/Renderers/OpenGL_DebugFont.h" -#include "Gwen/Controls/MenuStrip.h" -#include "Gwen/Controls/WindowControl.h" -#include "Gwen/Controls/ListBox.h" -#include "Gwen/Controls/VerticalSlider.h" -#include "Gwen/Controls/HorizontalSlider.h" -#include "Gwen/Controls/GroupBox.h" -#include "Gwen/Controls/CheckBox.h" -#include "Gwen/Controls/TreeControl.h" - -b3gDefaultOpenGLWindow* window=0; - -GLPrimitiveRenderer* primRenderer = 0; -GwenOpenGL3CoreRenderer* pRenderer = 0; - -Gwen::Skin::Simple skin; -Gwen::Controls::Canvas* pCanvas =0; -class MyProfileWindow* prof = 0; - -int sGlutScreenWidth = 640; -int sGlutScreenHeight = 480; -int sLastmousepos[2] = {0,0}; - -#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" - -cl_context g_cxMainContext; -cl_command_queue g_cqCommandQue; - - - -int droidRegular=0;//, droidItalic, droidBold, droidJapanese, dejavu; -extern char OpenSansData[]; -sth_stash* stash=0; - -sth_stash* initFont(GLPrimitiveRenderer* primRender) -{ - GLint err; - - struct sth_stash* stash = 0; - int datasize; - - float sx,sy,dx,dy,lh; - GLuint texture; - - OpenGL2RenderCallbacks* renderCallbacks = new OpenGL2RenderCallbacks(primRender); - - stash = sth_create(512,512,renderCallbacks);//256,256);//,1024);//512,512); - err = glGetError(); - assert(err==GL_NO_ERROR); - - if (!stash) - { - fprintf(stderr, "Could not create stash.\n"); - return 0; - } - char* data2 = OpenSansData; - unsigned char* data = (unsigned char*) data2; - if (!(droidRegular = sth_add_font_from_memory(stash, data))) - { - b3Error("error!\n"); - } - - err = glGetError(); - assert(err==GL_NO_ERROR); - - return stash; -} - - - -class MyProfileWindow : public Gwen::Controls::WindowControl -{ - // Gwen::Controls::TabControl* m_TabControl; - Gwen::Controls::ListBox* m_TextOutput; - unsigned int m_iFrames; - float m_fLastSecond; - - Gwen::Controls::TreeNode* m_node; - Gwen::Controls::TreeControl* m_ctrl; - -protected: - - void onButtonA( Gwen::Controls::Base* pControl ) - { - // OpenTissue::glut::toggleIdle(); - } - - void SliderMoved(Gwen::Controls::Base* pControl ) - { - Gwen::Controls::Slider* pSlider = (Gwen::Controls::Slider*)pControl; - //this->m_app->scaleYoungModulus(pSlider->GetValue()); - // printf("Slider Value: %.2f", pSlider->GetValue() ); - } - - - void OnCheckChangedStiffnessWarping (Gwen::Controls::Base* pControl) - { - Gwen::Controls::CheckBox* labeled = (Gwen::Controls::CheckBox* )pControl; - bool checked = labeled->IsChecked(); - //m_app->m_stiffness_warp_on = checked; - } -public: - - void MenuItemSelect(Gwen::Controls::Base* pControl) - { - if (Hidden()) - { - SetHidden(false); - } else - { - SetHidden(true); - } - } - - - MyProfileWindow ( Gwen::Controls::Base* pParent) - : Gwen::Controls::WindowControl( pParent ) - { - - SetTitle( L"OpenCL info" ); - - SetSize( 550, 350 ); - this->SetPos(0,40); - -// this->Dock( Gwen::Pos::Bottom); - - - - { - m_ctrl = new Gwen::Controls::TreeControl( this ); - - int numPlatforms = b3OpenCLUtils::getNumPlatforms(); - for (int i=0;iAddNode(txt); - int numDev = b3OpenCLUtils::getNumDevices(context); - for (int j=0;jAddNode( txt ); - - cl_device_id device = b3OpenCLUtils::getDevice(context,j); - b3OpenCLDeviceInfo info; - b3OpenCLUtils::getDeviceInfo(device,&info); - - Gwen::Controls::TreeNode* node; - Gwen::UnicodeString strIn; - - - switch (info.m_deviceType) - { - case CL_DEVICE_TYPE_CPU: - { - txt = Gwen::Utility::Format( L"CL_DEVICE_TYPE_CPU"); - node = deviceNode->AddNode( txt ); - break; - } - case CL_DEVICE_TYPE_GPU: - { - txt = Gwen::Utility::Format( L"CL_DEVICE_TYPE_GPU"); - node = deviceNode->AddNode( txt ); - break; - } - case CL_DEVICE_TYPE_ACCELERATOR: - { - txt = Gwen::Utility::Format( L"CL_DEVICE_TYPE_ACCELERATOR"); - node = deviceNode->AddNode( txt ); - break; - } - - - default: - { - txt = Gwen::Utility::Format( L"Unknown device type"); - node = deviceNode->AddNode( txt ); - } - } - - strIn = Gwen::Utility::StringToUnicode(info.m_deviceName); - txt = Gwen::Utility::Format( L"CL_DEVICE_NAME: ")+strIn; - node = deviceNode->AddNode( txt ); - - strIn = Gwen::Utility::StringToUnicode(info.m_deviceVendor); - txt = Gwen::Utility::Format( L"CL_DEVICE_VENDOR: ")+strIn; - node = deviceNode->AddNode( txt ); - - strIn = Gwen::Utility::StringToUnicode(info.m_driverVersion); - txt = Gwen::Utility::Format( L"CL_DRIVER_VERSION: ")+strIn; - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_COMPUTE_UNITS:%u",info.m_computeUnits); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS:%u",info.m_workitemDims); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_WORK_ITEM_SIZES:%u / %u / %u",info.m_workItemSize[0], info.m_workItemSize[1], info.m_workItemSize[2]); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_WORK_GROUP_SIZE:%u",info.m_workgroupSize); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_CLOCK_FREQUENCY:%u MHz",info.m_clockFrequency); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_ADDRESS_BITS:%u",info.m_addressBits); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_MEM_ALLOC_SIZE:%u MByte",(unsigned int)(info.m_maxMemAllocSize/ (1024 * 1024))); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_GLOBAL_MEM_SIZE:%u MByte",(unsigned int)(info.m_globalMemSize/ (1024 * 1024))); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_ERROR_CORRECTION_SUPPORT:%s",info.m_errorCorrectionSupport== CL_TRUE ? L"yes" : L"no"); - node = deviceNode->AddNode( txt ); - - - txt = Gwen::Utility::Format( L"CL_DEVICE_LOCAL_MEM_TYPE:%s",info.m_localMemType == 1 ? L"local" : L"global"); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_LOCAL_MEM_SIZE:%u KByte",(unsigned int)(info.m_localMemSize / 1024)); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE:%u KByte",(unsigned int)(info.m_constantBufferSize / 1024)); - node = deviceNode->AddNode( txt ); - - if( info.m_queueProperties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE ) - { - txt = Gwen::Utility::Format( L"CL_DEVICE_QUEUE_PROPERTIES:\tCL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE"); - node = deviceNode->AddNode( txt ); - } - if( info.m_queueProperties & CL_QUEUE_PROFILING_ENABLE ) - { - txt = Gwen::Utility::Format( L"CL_DEVICE_QUEUE_PROPERTIES:\tCL_QUEUE_PROFILING_ENABLE"); - node = deviceNode->AddNode( txt ); - } - - txt = Gwen::Utility::Format( L"CL_DEVICE_IMAGE_SUPPORT:%u",info.m_imageSupport); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_READ_IMAGE_ARGS:%u",info.m_maxReadImageArgs); - node = deviceNode->AddNode( txt ); - - - txt = Gwen::Utility::Format( L"CL_DEVICE_MAX_WRITE_IMAGE_ARGS:%u",info.m_maxWriteImageArgs); - node = deviceNode->AddNode( txt ); - - txt = Gwen::Utility::Format( L"CL_DEVICE_EXTENSIONS"); - Gwen::Controls::TreeNode* extensionNode = deviceNode->AddNode( txt ); - - if (info.m_deviceExtensions) - { - Gwen::Utility::Strings::List outbits; - - Gwen::String str(info.m_deviceExtensions); - - Gwen::String sep(" "); - Gwen::Utility::Strings::Split(str,sep, outbits); - - - - for (int k=0;kAddNode( txt ); - } - } - } - } -/* - - - - printf("\n CL_DEVICE_IMAGE "); - printf("\t2D_MAX_WIDTH %u\n", info.m_image2dMaxWidth); - printf("\t2D_MAX_HEIGHT %u\n", info.m_image2dMaxHeight); - printf("\t3D_MAX_WIDTH %u\n", info.m_image3dMaxWidth); - printf("\t3D_MAX_HEIGHT %u\n", info.m_image3dMaxHeight); - printf("\t3D_MAX_DEPTH %u\n", info.m_image3dMaxDepth); - - printf(" CL_DEVICE_PREFERRED_VECTOR_WIDTH_"); - printf("CHAR %u, SHORT %u, INT %u,LONG %u, FLOAT %u, DOUBLE %u\n\n\n", - info.m_vecWidthChar, info.m_vecWidthShort, info.m_vecWidthInt, info.m_vecWidthLong,info.m_vecWidthFloat, info.m_vecWidthDouble); -*/ - - } - } - - m_ctrl->ExpandAll(); - m_ctrl->SetBounds( this->GetInnerBounds().x,this->GetInnerBounds().y,this->GetInnerBounds().w,this->GetInnerBounds().h); - } - - } - - - - void UpdateText() - { - static bool update=true; - m_ctrl->SetBounds(0,0,this->GetInnerBounds().w,this->GetInnerBounds().h); - } - -}; - - -struct MyTestMenuBar : public Gwen::Controls::MenuStrip -{ - MyProfileWindow* m_profileWindow; - - void MenuItemSelect(Gwen::Controls::Base* pControl) - { - } - - MyTestMenuBar(Gwen::Controls::Base* pParent, MyProfileWindow* prof) - :Gwen::Controls::MenuStrip(pParent), - m_profileWindow(prof) - { - { - Gwen::Controls::MenuItem* pRoot = AddItem( L"File" ); - - pRoot = AddItem( L"View" ); - pRoot->GetMenu()->AddItem( L"Platforms",prof,(Gwen::Event::Handler::Function)&MyProfileWindow::MenuItemSelect); - - } - } - -}; - - -float retinaScale = 1.f; - -void setupGUI(int width, int height) -{ - - primRenderer = new GLPrimitiveRenderer(width,height); - stash = initFont(primRenderer); - pRenderer = new GwenOpenGL3CoreRenderer(primRenderer,stash,width,height,retinaScale); - - - - skin.SetRender( pRenderer ); - - pCanvas = new Gwen::Controls::Canvas( &skin ); - pCanvas->SetSize( width,height); - pCanvas->SetDrawBackground( false); - pCanvas->SetBackgroundColor( Gwen::Color( 150, 170, 170, 255 ) ); - - //MyWindow* window = new MyWindow(pCanvas); - prof = new MyProfileWindow(pCanvas); - prof->UpdateText(); - - MyTestMenuBar* menubar = new MyTestMenuBar(pCanvas, prof); - - - -} - - - -static void MyResizeCallback(float w, float h) -{ - sGlutScreenWidth = w; - sGlutScreenHeight = h; - if (pRenderer) - pRenderer->resize(w,h); - if (primRenderer) - primRenderer->setScreenSize(w,h); - if (pCanvas) - { - pCanvas->SetSize(w,h); - } -} - - - -static void MouseButtonCallback(int button, int state, float x, float y) -{ - if (pCanvas) - { - bool handled = false; - if (pCanvas) - { - handled = pCanvas->InputMouseMoved(x,y,x, y); - - if (button>=0) - { - handled = pCanvas->InputMouseButton(button,state); - if (handled) - { - //if (!state) - // return false; - } - } - } - - if (handled) - { - sLastmousepos[0] = x; - sLastmousepos[1] = y; - } else - { - b3DefaultMouseButtonCallback(button,state,x,y); - } - } - -} - - -static void MouseMoveCallback(float x,float y) -{ - - bool handled = false; - - static int m_lastmousepos[2] = {0,0}; - static bool isInitialized = false; - if (pCanvas) - { - if (!isInitialized) - { - isInitialized = true; - m_lastmousepos[0] = x+1; - m_lastmousepos[1] = y+1; - } - handled = pCanvas->InputMouseMoved(x,y,m_lastmousepos[0],m_lastmousepos[1]); - } -} - - - - -int main(int argc, char* argv[]) -{ - - window = new b3gDefaultOpenGLWindow(); - - b3gWindowConstructionInfo wci(sGlutScreenWidth,sGlutScreenHeight); - - window->createWindow(wci); - window->setResizeCallback(MyResizeCallback); - window->setMouseMoveCallback(MouseMoveCallback); - window->setMouseButtonCallback(MouseButtonCallback); - //window->setKeyboardCallback(MyKeyboardCallback); - - window->setWindowTitle("Bullet 3.x GPU Rigid Body http://bulletphysics.org"); - printf("-----------------------------------------------------\n"); - - -#ifndef __APPLE__ - glewInit(); -#endif - - - setupGUI(sGlutScreenWidth,sGlutScreenHeight); - - do - { - b3ProfileManager::Reset(); - b3ProfileManager::Increment_Frame_Counter(); - - - window->startRendering(); - - glClearColor(0.6,0.6,0.6,1); - glClear(GL_COLOR_BUFFER_BIT| GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); - glEnable(GL_DEPTH_TEST); - - - - // demo->clientMoveAndDisplay(); - - //saveOpenGLState(sGlutScreenWidth,sGlutScreenHeight); - - { - B3_PROFILE("gui->draw"); - //gui->draw(g_OpenGLWidth,g_OpenGLHeight); - - { - B3_PROFILE("UpdateText"); - if (prof) - prof->UpdateText(); - } - { - B3_PROFILE("RenderCanvas"); - pCanvas->RenderCanvas(); - } - - //restoreOpenGLState(); - } - { - B3_PROFILE("window->endRendering"); - window->endRendering(); - } - - - - - b3ProfileManager::dumpAll(); - - - - } while (!window->requestedExit()); - - - - - return 0; -} diff --git a/Demos3/GpuGuiInitialize/premake4.lua b/Demos3/GpuGuiInitialize/premake4.lua deleted file mode 100644 index 61a09a3ab..000000000 --- a/Demos3/GpuGuiInitialize/premake4.lua +++ /dev/null @@ -1,92 +0,0 @@ -function createProject(vendor) - - hasCL = findOpenCL(vendor) - - if (hasCL) then - - project ("OpenCL_GUI_Intialize_" .. vendor) - - initOpenCL(vendor) - - language "C++" - - kind "ConsoleApp" - targetdir "../../bin" - - includedirs { - "..", - "../../opencl", - "../../btgui", - "../../src", - } - - links { - "gwen" - } - - initOpenGL() - initGlew() - - files { - "main.cpp", - "../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.cpp", - "../../src/Bullet3OpenCL/Initialize/b3OpenCLUtils.h", - "../../btgui/OpenGLWindow/GLInstancingRenderer.cpp", - "../../btgui/OpenGLWindow/GLInstancingRenderer.h", - "../../btgui/OpenGLWindow/GLRenderToTexture.cpp", - "../../btgui/OpenGLWindow/GLRenderToTexture.h", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.h", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.cpp", - "../../btgui/OpenGLWindow/LoadShader.cpp", - "../../btgui/OpenGLWindow/LoadShader.h", - "../../btgui/OpenGLWindow/TwFonts.cpp", - "../../btgui/OpenGLWindow/TwFonts.h", - "../../btgui/OpenGLWindow/GwenOpenGL3CoreRenderer.h", - "../../btgui/OpenGLWindow/OpenSans.cpp", - "../../btgui/OpenGLWindow/fontstash.cpp", - "../../btgui/OpenGLWindow/fontstash.h", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.h", - "../../src/Bullet3Geometry/b3ConvexHullComputer.cpp", - "../../src/Bullet3Geometry/b3ConvexHullComputer.h", - "../../src/Bullet3Common/b3AlignedAllocator.cpp", - "../../src/Bullet3Common/b3Logging.cpp", - "../../src/Bullet3Common/b3Logging.h", - "../../btgui/Bullet3AppSupport/b3Quickprof.cpp", - "../../btgui/Bullet3AppSupport/b3Quickprof.h", - "../../btgui/Bullet3AppSupport/b3Clock.cpp", - "../../btgui/Bullet3AppSupport/b3Clock.h", - - } - - if os.is("Windows") then - files{ - "../../btgui/OpenGLWindow/Win32OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/Win32OpenGLWindow.h", - "../../btgui/OpenGLWindow/Win32Window.cpp", - "../../btgui/OpenGLWindow/Win32Window.h", - } - end - if os.is("Linux") then - links {"X11","pthread"} - files { - "../../btgui/OpenGLWindow/X11OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/X11OpenGLWindows.h" - } - end - if os.is("MacOSX") then - links {"Cocoa.framework"} - files { - "../../btgui/OpenGLWindow/MacOpenGLWindow.h", - "../../btgui/OpenGLWindow/MacOpenGLWindow.mm", - } - end - - end -end - -createProject("clew") -createProject("Apple") -createProject("AMD") -createProject("Intel") -createProject("NVIDIA") diff --git a/Demos3/ImplicitCloth/main.cpp b/Demos3/ImplicitCloth/main.cpp deleted file mode 100644 index e51062816..000000000 --- a/Demos3/ImplicitCloth/main.cpp +++ /dev/null @@ -1,87 +0,0 @@ -#include "stan/vecmath.h" -#include "stan/Cloth.h" -#include "Bullet3Common/b3Vector3.h" -#include "../../btgui/OpenGLWindow/SimpleOpenGL3App.h" - -Cloth* cloth = 0; - -int numX = 60, numY=60; -const size_t total_points = (numX)*(numY); - -void drawCloth(class GLInstancingRenderer* renderer) -{ - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - - err = glGetError(); - assert(err==GL_NO_ERROR); - - b3AlignedObjectArray indices; - - for (int i=0;isprings.count;i++) - { - indices.push_back(cloth->springs[i].a); - indices.push_back(cloth->springs[i].b); - } - float lineColor[4]={0.4,0.4,1.0,1}; - renderer->drawLines(&cloth->X[0].x,lineColor,total_points,sizeof(float3),&indices[0],indices.size(),1); - err = glGetError(); - assert(err==GL_NO_ERROR); - float pointColor[4]={1,0.4,0.4,1}; - - glDisable(GL_DEPTH_TEST); - renderer->drawPoints(&cloth->X[0].x,pointColor,total_points,sizeof(float3),3); - glEnable(GL_DEPTH_TEST); - - err = glGetError(); - assert(err==GL_NO_ERROR); - - -} - -int main(int argc, char* argv[]) -{ - float size=10; - cloth = ClothCreate(numX,numY,size); - - float dt = 1./120.f; - - SimpleOpenGL3App* app = new SimpleOpenGL3App("title",1024,768); - app->m_instancingRenderer->setCameraDistance(13); - app->m_instancingRenderer->setCameraPitch(0); - app->m_instancingRenderer->setCameraTargetPosition(b3MakeVector3(0,0,0)); - - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - - do - { - GLint err = glGetError(); - assert(err==GL_NO_ERROR); - app->m_instancingRenderer->init(); - app->m_instancingRenderer->updateCamera(); - - app->drawGrid(); - app->drawText("Cloth simulation using implicit integration, by Stan Melax",10,10); - cloth->Simulate(dt); - cloth->cloth_gravity.y = -9.8;//-9.8;//-9.8;//-9.8;//0;//-9.8;//0;//-9.8;//0;//-9.8; - cloth->cloth_gravity.z =-9.8;//0;//-9.8;//0;//-9.8; - - cloth->spring_struct=10000000.0f; - cloth->spring_shear=10000000.0f; - - //cloth->spring_struct=1000000.0f; - //cloth->spring_shear=1000000.0f; - - cloth->spring_damp = 0;//100; - - drawCloth(app->m_instancingRenderer); - - app->swapBuffer(); - } while (!app->m_window->requestedExit()); - - delete cloth; - delete app; - return 0; -} diff --git a/Demos3/ImplicitCloth/premake4.lua b/Demos3/ImplicitCloth/premake4.lua deleted file mode 100644 index 93be4a3af..000000000 --- a/Demos3/ImplicitCloth/premake4.lua +++ /dev/null @@ -1,72 +0,0 @@ - - project "App_ImplicitCloth" - - language "C++" - - kind "ConsoleApp" - targetdir "../../bin" - - includedirs { - ".", - "../../src", - "../../btgui" - } - - initOpenGL() - initGlew() - - --links{"gwen"} - - files { - "**.cpp", - "**.h", - "../../btgui/OpenGLWindow/SimpleOpenGL3App.cpp", - "../../btgui/OpenGLWindow/SimpleOpenGL3App.h", - "../../btgui/OpenGLWindow/TwFonts.cpp", - "../../btgui/OpenGLWindow/TwFonts.h", - "../../btgui/OpenGLWindow/LoadShader.cpp", - "../../btgui/OpenGLWindow/LoadShader.h", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.cpp", - "../../btgui/OpenGLWindow/GLPrimitiveRenderer.h", - "../../btgui/OpenGLWindow/GwenOpenGL3CoreRenderer.h", - "../../btgui/OpenGLWindow/GLInstancingRenderer.cpp", - "../../btgui/OpenGLWindow/GLInstancingRenderer.h", - "../../btgui/OpenGLWindow/GLRenderToTexture.cpp", - "../../btgui/OpenGLWindow/GLRenderToTexture.h", - "../../btgui/OpenGLWindow/TwFonts.cpp", - "../../btgui/OpenGLWindow/TwFonts.h", - "../../btgui/OpenGLWindow/OpenSans.cpp", - "../../btgui/OpenGLWindow/fontstash.cpp", - "../../btgui/OpenGLWindow/fontstash.h", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp", - "../../btgui/OpenGLWindow/opengl_fontstashcallbacks.h", - "../../src/Bullet3Common/**.cpp", - "../../src/Bullet3Common/**.h", - "../../btgui/Bullet3AppSupport/b3Clock.cpp", - "../../btgui/Bullet3AppSupport/b3Clock.h" - - } - -if os.is("Windows") then - files { - "../../btgui/OpenGLWindow/Win32OpenGLWindow.cpp", - "../../btgui/OpenGLWindow/Win32OpenGLWindow.h", - "../../btgui/OpenGLWindow/Win32Window.cpp", - "../../btgui/OpenGLWindow/Win32Window.h", - } - end - if os.is("Linux") then - links ("X11") - files{ - "../../btgui/OpenGLWindow/X11OpenGLWindow.h", - "../../btgui/OpenGLWindow/X11OpenGLWindow.cpp" - } - links{"pthread"} - end - if os.is("MacOSX") then - links{"Cocoa.framework"} - files{ - "../../btgui/OpenGLWindow/MacOpenGLWindow.mm", - "../../btgui/OpenGLWindow/MacOpenGLWindow.h", - } - end diff --git a/Demos3/ImportObjDemo/ImportObjSetup.cpp b/Demos3/ImportObjDemo/ImportObjSetup.cpp deleted file mode 100644 index 51f7f9d2b..000000000 --- a/Demos3/ImportObjDemo/ImportObjSetup.cpp +++ /dev/null @@ -1,123 +0,0 @@ -#include "ImportObjSetup.h" -#include -#include "OpenGLWindow/GLInstancingRenderer.h" -#include"../Wavefront/tiny_obj_loader.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" -#include "btBulletDynamicsCommon.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "Wavefront2GLInstanceGraphicsShape.h" - -ImportObjSetup::ImportObjSetup(CommonGraphicsApp* app) -:m_app(app) -{ - -} - -ImportObjSetup::~ImportObjSetup() -{ - -} - - - - - - - -void ImportObjSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - gfxBridge.setUpAxis(2); - this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe); - const char* fileName = "samurai_monastry.obj"; - char relativeFileName[1024]; - const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int prefixIndex=-1; - { - - int numPrefixes = sizeof(prefix)/sizeof(char*); - - for (int i=0;i shapes; - std::string err = tinyobj::LoadObj(shapes, relativeFileName, prefix[prefixIndex]); - - GLInstanceGraphicsShape* gfxShape = btgCreateGraphicsShapeFromWavefrontObj(shapes); - - btTransform trans; - trans.setIdentity(); - trans.setRotation(btQuaternion(btVector3(1,0,0),SIMD_HALF_PI)); - - btVector3 position = trans.getOrigin(); - btQuaternion orn = trans.getRotation(); - - btVector3 color(0,0,1); - - int shapeId = m_app->m_renderer->registerShape(&gfxShape->m_vertices->at(0).xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); - - - //int id = - m_app->m_renderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - - /* - - btTriangleMesh* trimeshData = new btTriangleMesh(); - - for (int i=0;im_numvertices;i++) - { - for (int j=0;j<3;j++) - gfxShape->m_vertices->at(i).xyzw[j] += shift[j]; - } - - for (int i=0;im_numIndices;i+=3) - { - int index0 = gfxShape->m_indices->at(i); - int index1 = gfxShape->m_indices->at(i+1); - int index2 = gfxShape->m_indices->at(i+2); - - btVector3 v0(gfxShape->m_vertices->at(index0).xyzw[0], - gfxShape->m_vertices->at(index0).xyzw[1], - gfxShape->m_vertices->at(index0).xyzw[2]); - btVector3 v1(gfxShape->m_vertices->at(index1).xyzw[0], - gfxShape->m_vertices->at(index1).xyzw[1], - gfxShape->m_vertices->at(index1).xyzw[2]); - btVector3 v2(gfxShape->m_vertices->at(index2).xyzw[0], - gfxShape->m_vertices->at(index2).xyzw[1], - gfxShape->m_vertices->at(index2).xyzw[2]); - - trimeshData->addTriangle(v0,v1,v2); - } - - //btConvexHullShape* convexShape = new btConvexHullShape(&verts[0].x(),verts.size(),sizeof(btVector3)); - btBvhTriangleMeshShape* shape = new btBvhTriangleMeshShape(trimeshData,true);//meshInterface); - - btTransform startTrans;startTrans.setIdentity(); - btRigidBody* body = this->createRigidBody(0,startTrans,shape); - //gfxBridge.createCollisionShapeGraphicsObject(shape); - btVector3 color(0,0,1); - */ - //gfxBridge.createRigidBodyGraphicsObject(body,color); - } -} diff --git a/Demos3/ImportObjDemo/ImportObjSetup.h b/Demos3/ImportObjDemo/ImportObjSetup.h deleted file mode 100644 index 3a88523b7..000000000 --- a/Demos3/ImportObjDemo/ImportObjSetup.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef IMPORT_OBJ_SETUP_H -#define IMPORT_OBJ_SETUP_H - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -class ImportObjSetup : public CommonRigidBodySetup -{ - struct CommonGraphicsApp* m_app; -public: - ImportObjSetup(CommonGraphicsApp* app); - virtual ~ImportObjSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); -}; - -#endif //IMPORT_OBJ_SETUP_H diff --git a/Demos3/ImportSTLDemo/ImportSTLSetup.cpp b/Demos3/ImportSTLDemo/ImportSTLSetup.cpp deleted file mode 100644 index 37a1a1373..000000000 --- a/Demos3/ImportSTLDemo/ImportSTLSetup.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include "ImportSTLSetup.h" -#include -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" -#include "btBulletDynamicsCommon.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "LoadMeshFromSTL.h" - -ImportSTLSetup::ImportSTLSetup(CommonGraphicsApp* app) -:m_app(app) -{ - -} - -ImportSTLSetup::~ImportSTLSetup() -{ - -} - - - -void ImportSTLSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - gfxBridge.setUpAxis(2); - this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe); - - const char* fileName = "l_finger_tip.stl"; - char relativeFileName[1024]; - const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int prefixIndex=-1; - { - - int numPrefixes = sizeof(prefix)/sizeof(char*); - - for (int i=0;im_renderer->registerShape(&gfxShape->m_vertices->at(0).xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); - - - // int id = - m_app->m_renderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); - - /* - - btTriangleMesh* trimeshData = new btTriangleMesh(); - - for (int i=0;im_numvertices;i++) - { - for (int j=0;j<3;j++) - gfxShape->m_vertices->at(i).xyzw[j] += shift[j]; - } - - for (int i=0;im_numIndices;i+=3) - { - int index0 = gfxShape->m_indices->at(i); - int index1 = gfxShape->m_indices->at(i+1); - int index2 = gfxShape->m_indices->at(i+2); - - btVector3 v0(gfxShape->m_vertices->at(index0).xyzw[0], - gfxShape->m_vertices->at(index0).xyzw[1], - gfxShape->m_vertices->at(index0).xyzw[2]); - btVector3 v1(gfxShape->m_vertices->at(index1).xyzw[0], - gfxShape->m_vertices->at(index1).xyzw[1], - gfxShape->m_vertices->at(index1).xyzw[2]); - btVector3 v2(gfxShape->m_vertices->at(index2).xyzw[0], - gfxShape->m_vertices->at(index2).xyzw[1], - gfxShape->m_vertices->at(index2).xyzw[2]); - - trimeshData->addTriangle(v0,v1,v2); - } - - //btConvexHullShape* convexShape = new btConvexHullShape(&verts[0].x(),verts.size(),sizeof(btVector3)); - btBvhTriangleMeshShape* shape = new btBvhTriangleMeshShape(trimeshData,true);//meshInterface); - - btTransform startTrans;startTrans.setIdentity(); - btRigidBody* body = this->createRigidBody(0,startTrans,shape); - //gfxBridge.createCollisionShapeGraphicsObject(shape); - btVector3 color(0,0,1); - */ - //gfxBridge.createRigidBodyGraphicsObject(body,color); - } -} diff --git a/Demos3/ImportSTLDemo/ImportSTLSetup.h b/Demos3/ImportSTLDemo/ImportSTLSetup.h deleted file mode 100644 index 40c9c2bdf..000000000 --- a/Demos3/ImportSTLDemo/ImportSTLSetup.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef IMPORT_STL_SETUP_H -#define IMPORT_STL_SETUP_H - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -class ImportSTLSetup : public CommonRigidBodySetup -{ - struct CommonGraphicsApp* m_app; -public: - ImportSTLSetup(CommonGraphicsApp* app); - virtual ~ImportSTLSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); -}; - -#endif //IMPORT_OBJ_SETUP_H diff --git a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp b/Demos3/ImportURDFDemo/ImportURDFSetup.cpp deleted file mode 100644 index a777bee40..000000000 --- a/Demos3/ImportURDFDemo/ImportURDFSetup.cpp +++ /dev/null @@ -1,1661 +0,0 @@ - -#include "ImportURDFSetup.h" -#include "BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.h" -#include "Bullet3Common/b3FileUtils.h" -#include "../ImportObjDemo/LoadMeshFromObj.h" -#include "../ImportSTLDemo/LoadMeshFromSTL.h" -#include "../ImportColladaDemo/LoadMeshFromCollada.h" -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "Bullet3Common/b3FileUtils.h" -#include "BulletCollision/CollisionShapes/btShapeHull.h"//to create a tesselation of a generic btConvexShape -#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" - -static int bodyCollisionFilterGroup=btBroadphaseProxy::CharacterFilter; -static int bodyCollisionFilterMask=btBroadphaseProxy::AllFilter&(~btBroadphaseProxy::CharacterFilter); -static bool enableConstraints = true;//false; -#include "URDF2Bullet.h" - -#include "urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h" - -#include "urdf_samples.h" - -//#include "BulletCollision/CollisionShapes/btCylinderShape.h" -//#define USE_BARREL_VERTICES -//#include "OpenGLWindow/ShapeData.h" - -#include -#include -using namespace urdf; - -void convertURDFToVisualShape(const Visual* visual, const char* pathPrefix, const btTransform& visualTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut); -btCollisionShape* convertURDFToCollisionShape(const Collision* visual, const char* pathPrefix); - -class MyURDF2Bullet : public URDF2Bullet -{ - my_shared_ptr m_robot; - std::vector > m_links; - GraphicsPhysicsBridge& m_gfxBridge; - mutable btMultiBody* m_bulletMultiBody; - -public: - - mutable btAlignedObjectArray m_urdf2mbLink; - mutable btAlignedObjectArray m_mb2urdfLink; - - - MyURDF2Bullet(my_shared_ptr robot,GraphicsPhysicsBridge& gfxBridge) - :m_robot(robot), - m_gfxBridge(gfxBridge), - m_bulletMultiBody(0) - { - m_robot->getLinks(m_links); - - //initialize the 'index' of each link - for (int i=0;im_link_index = i; - } - - m_urdf2mbLink.resize(m_links.size(),-2); - m_mb2urdfLink.resize(m_links.size(),-2); - } - - virtual int getRootLinkIndex() const - { - if (m_links.size()) - { - int rootLinkIndex = m_robot->getRoot()->m_link_index; - // btAssert(m_links[0]->m_link_index == rootLinkIndex); - return rootLinkIndex; - } - return -1; - }; - - virtual void getLinkChildIndices(int linkIndex, btAlignedObjectArray& childLinkIndices) const - { - childLinkIndices.resize(0); - int numChildren = m_links[linkIndex]->child_links.size(); - - for (int i=0;ichild_links[i]->m_link_index; - childLinkIndices.push_back(childIndex); - } - } - virtual std::string getLinkName(int linkIndex) const - { - std::string n = m_links[linkIndex]->name; - return n; - } - - virtual std::string getJointName(int linkIndex) const - { - return m_links[linkIndex]->parent_joint->name; - } - - virtual void getMassAndInertia(int linkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const - { - if ((*m_links[linkIndex]).inertial) - { - mass = (*m_links[linkIndex]).inertial->mass; - localInertiaDiagonal.setValue((*m_links[linkIndex]).inertial->ixx,(*m_links[linkIndex]).inertial->iyy,(*m_links[linkIndex]).inertial->izz); - inertialFrame.setOrigin(btVector3((*m_links[linkIndex]).inertial->origin.position.x,(*m_links[linkIndex]).inertial->origin.position.y,(*m_links[linkIndex]).inertial->origin.position.z)); - inertialFrame.setRotation(btQuaternion((*m_links[linkIndex]).inertial->origin.rotation.x,(*m_links[linkIndex]).inertial->origin.rotation.y,(*m_links[linkIndex]).inertial->origin.rotation.z,(*m_links[linkIndex]).inertial->origin.rotation.w)); - } else - { - mass = 1.f; - localInertiaDiagonal.setValue(1,1,1); - inertialFrame.setIdentity(); - } - } - - virtual bool getJointInfo(int urdfLinkIndex, btTransform& parent2joint, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit) const - { - jointLowerLimit = 0.f; - jointUpperLimit = 0.f; - - if ((*m_links[urdfLinkIndex]).parent_joint) - { - my_shared_ptr pj =(*m_links[urdfLinkIndex]).parent_joint; - - const urdf::Vector3 pos = pj->parent_to_joint_origin_transform.position; - const urdf::Rotation orn = pj->parent_to_joint_origin_transform.rotation; - - jointAxisInJointSpace.setValue(pj->axis.x,pj->axis.y,pj->axis.z); - parent2joint.setOrigin(btVector3(pos.x,pos.y,pos.z)); - parent2joint.setRotation(btQuaternion(orn.x,orn.y,orn.z,orn.w)); - - switch (pj->type) - { - case Joint::REVOLUTE: - jointType = URDF2Bullet::RevoluteJoint; - break; - case Joint::FIXED: - jointType = URDF2Bullet::FixedJoint; - break; - case Joint::PRISMATIC: - jointType = URDF2Bullet::PrismaticJoint; - break; - case Joint::PLANAR: - jointType = URDF2Bullet::PlanarJoint; - break; - case Joint::CONTINUOUS: - jointType = URDF2Bullet::ContinuousJoint; - break; - default: - { - printf("Error: unknown joint type %d\n", pj->type); - btAssert(0); - } - - }; - - if (pj->limits) - { - jointLowerLimit = pj->limits.get()->lower; - jointUpperLimit = pj->limits.get()->upper; - } - return true; - } else - { - parent2joint.setIdentity(); - return false; - } - } - - virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& inertialFrame) const - { - btAlignedObjectArray vertices; - btAlignedObjectArray indices; - btTransform startTrans; startTrans.setIdentity(); - int graphicsIndex = -1; - - for (int v = 0; v < (int)m_links[linkIndex]->visual_array.size(); v++) - { - const Visual* vis = m_links[linkIndex]->visual_array[v].get(); - btVector3 childPos(vis->origin.position.x, vis->origin.position.y, vis->origin.position.z); - btQuaternion childOrn(vis->origin.rotation.x, vis->origin.rotation.y, vis->origin.rotation.z, vis->origin.rotation.w); - btTransform childTrans; - childTrans.setOrigin(childPos); - childTrans.setRotation(childOrn); - - convertURDFToVisualShape(vis, pathPrefix, inertialFrame.inverse()*childTrans, vertices, indices); - - } - - if (vertices.size() && indices.size()) - { - graphicsIndex = m_gfxBridge.registerGraphicsShape(&vertices[0].xyzw[0], vertices.size(), &indices[0], indices.size()); - } - - return graphicsIndex; - - } - - virtual class btCompoundShape* convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const - { - - btCompoundShape* compoundShape = new btCompoundShape(); - compoundShape->setMargin(0.001); - - for (int v=0;v<(int)m_links[linkIndex]->collision_array.size();v++) - { - const Collision* col = m_links[linkIndex]->collision_array[v].get(); - btCollisionShape* childShape = convertURDFToCollisionShape(col ,pathPrefix); - - if (childShape) - { - btVector3 childPos(col->origin.position.x, col->origin.position.y, col->origin.position.z); - btQuaternion childOrn(col->origin.rotation.x, col->origin.rotation.y, col->origin.rotation.z, col->origin.rotation.w); - btTransform childTrans; - childTrans.setOrigin(childPos); - childTrans.setRotation(childOrn); - compoundShape->addChildShape(localInertiaFrame.inverse()*childTrans,childShape); - - } - } - - return compoundShape; - } - - virtual class btMultiBody* allocateMultiBody(int /* urdfLinkIndex */, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep, bool multiDof) const - { - m_bulletMultiBody = new btMultiBody(totalNumJoints,mass,localInertiaDiagonal,isFixedBase,canSleep,multiDof); - return m_bulletMultiBody; - } - - virtual class btRigidBody* allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape) const - { - btRigidBody::btRigidBodyConstructionInfo rbci(mass, 0, colShape, localInertiaDiagonal); - rbci.m_startWorldTransform = initialWorldTrans; - btRigidBody* body = new btRigidBody(rbci); - return body; - } - - virtual class btMultiBodyLinkCollider* allocateMultiBodyLinkCollider(int /*urdfLinkIndex*/, int mbLinkIndex, btMultiBody* multiBody) const - { - btMultiBodyLinkCollider* mbCol= new btMultiBodyLinkCollider(multiBody, mbLinkIndex); - return mbCol; - } - - - virtual class btGeneric6DofSpring2Constraint* allocateGeneric6DofSpring2Constraint(int urdfLinkIndex, btRigidBody& rbA /*parent*/, btRigidBody& rbB, const btTransform& offsetInA, const btTransform& offsetInB, int rotateOrder) const - { - btGeneric6DofSpring2Constraint* c = new btGeneric6DofSpring2Constraint(rbA,rbB,offsetInA, offsetInB, (RotateOrder)rotateOrder); - return c; - } - - virtual void addLinkMapping(int urdfLinkIndex, int mbLinkIndex) const - { - m_urdf2mbLink[urdfLinkIndex] = mbLinkIndex; - m_mb2urdfLink[mbLinkIndex] = urdfLinkIndex; - } - - virtual void createRigidBodyGraphicsInstance(int linkIndex, btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) const - { - - m_gfxBridge.createRigidBodyGraphicsObject(body, colorRgba); - } - - virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* colObj, const btVector3& colorRgba) const - { - m_gfxBridge.createCollisionObjectGraphicsObject(colObj,colorRgba); - } - - btMultiBody* getBulletMultiBody() - { - return m_bulletMultiBody; - } - -}; - - - -btAlignedObjectArray gFileNameArray; - - -#define MAX_NUM_MOTORS 1024 - -struct ImportUrdfInternalData -{ - ImportUrdfInternalData() - :m_numMotors(0) - { - } - - btScalar m_motorTargetVelocities[MAX_NUM_MOTORS]; - btMultiBodyJointMotor* m_jointMotors [MAX_NUM_MOTORS]; - int m_numMotors; -}; - - -ImportUrdfSetup::ImportUrdfSetup() -{ - static int count = 0; - gFileNameArray.clear(); - gFileNameArray.push_back("r2d2.urdf"); - - m_data = new ImportUrdfInternalData; - - //load additional urdf file names from file - - FILE* f = fopen("urdf_files.txt","r"); - if (f) - { - int result; - //warning: we don't avoid string buffer overflow in this basic example in fscanf - char fileName[1024]; - do - { - result = fscanf(f,"%s",fileName); - if (result==1) - { - gFileNameArray.push_back(fileName); - } - } while (result==1); - - fclose(f); - } - - int numFileNames = gFileNameArray.size(); - - if (count>=numFileNames) - { - count=0; - } - sprintf(m_fileName,gFileNameArray[count++].c_str()); -} - -ImportUrdfSetup::~ImportUrdfSetup() -{ - delete m_data; -} - -static btVector4 colors[4] = -{ - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), -}; - - -btVector3 selectColor() -{ - - static int curColor = 0; - btVector4 color = colors[curColor]; - curColor++; - curColor&=3; - return color; -} - -void ImportUrdfSetup::setFileName(const char* urdfFileName) -{ - memcpy(m_fileName,urdfFileName,strlen(urdfFileName)+1); -} - - - - - -void printTree(my_shared_ptr link,int level = 0) -{ - level+=2; - int count = 0; - for (std::vector >::const_iterator child = link->child_links.begin(); child != link->child_links.end(); child++) - { - if (*child) - { - for(int j=0;jname << std::endl; - // first grandchild - printTree(*child,level); - } - else - { - for(int j=0;jname << " has a null child!" << *child << std::endl; - } - } - -} - - -struct URDF_LinkInformation -{ - const Link* m_thisLink; - int m_linkIndex; - //int m_parentIndex; - - btTransform m_localInertialFrame; - //btTransform m_localVisualFrame; - btTransform m_bodyWorldTransform; - btVector3 m_localInertiaDiagonal; - btScalar m_mass; - - btCollisionShape* m_collisionShape; - btRigidBody* m_bulletRigidBody; - - URDF_LinkInformation() - :m_thisLink(0), - m_linkIndex(-2), - //m_parentIndex(-2), - m_collisionShape(0), - m_bulletRigidBody(0) - { - - } - virtual ~URDF_LinkInformation() - { - printf("~\n"); - } -}; - -struct URDF_JointInformation -{ - -}; - - -struct URDF2BulletMappings -{ - btHashMap m_link2rigidbody; - btAlignedObjectArray m_linkMasses; - - bool m_createMultiBody; - int m_totalNumJoints; - btMultiBody* m_bulletMultiBody; - - btAlignedObjectArray m_urdfLinkIndices2BulletLinkIndices; - URDF2BulletMappings() - :m_createMultiBody(false), - m_totalNumJoints(0), - m_bulletMultiBody(0) - { - } - -}; -enum MyFileType -{ - FILE_STL=1, - FILE_COLLADA=2, - FILE_OBJ=3, -}; - - - -void convertURDFToVisualShape(const Visual* visual, const char* pathPrefix, const btTransform& visualTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut) -{ - - - GLInstanceGraphicsShape* glmesh = 0; - - btConvexShape* convexColShape = 0; - - switch (visual->geometry->type) - { - case Geometry::CYLINDER: - { - printf("processing a cylinder\n"); - urdf::Cylinder* cyl = (urdf::Cylinder*)visual->geometry.get(); - btAlignedObjectArray vertices; - - //int numVerts = sizeof(barrel_vertices)/(9*sizeof(float)); - int numSteps = 32; - for (int i = 0; iradius*btSin(SIMD_2_PI*(float(i) / numSteps)), cyl->radius*btCos(SIMD_2_PI*(float(i) / numSteps)), cyl->length / 2.); - vertices.push_back(vert); - vert[2] = -cyl->length / 2.; - vertices.push_back(vert); - } - - btConvexHullShape* cylZShape = new btConvexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); - cylZShape->setMargin(0.001); - convexColShape = cylZShape; - break; - } - case Geometry::BOX: - { - printf("processing a box\n"); - urdf::Box* box = (urdf::Box*)visual->geometry.get(); - btVector3 extents(box->dim.x, box->dim.y, box->dim.z); - btBoxShape* boxShape = new btBoxShape(extents*0.5f); - //btConvexShape* boxShape = new btConeShapeX(extents[2]*0.5,extents[0]*0.5); - convexColShape = boxShape; - convexColShape->setMargin(0.001); - break; - } - case Geometry::SPHERE: - { - printf("processing a sphere\n"); - urdf::Sphere* sphere = (urdf::Sphere*)visual->geometry.get(); - btScalar radius = sphere->radius; - btSphereShape* sphereShape = new btSphereShape(radius); - convexColShape = sphereShape; - convexColShape->setMargin(0.001); - break; - - break; - } - case Geometry::MESH: - { - if (visual->name.length()) - { - printf("visual->name=%s\n", visual->name.c_str()); - } - if (visual->geometry) - { - const urdf::Mesh* mesh = (const urdf::Mesh*) visual->geometry.get(); - if (mesh->filename.length()) - { - const char* filename = mesh->filename.c_str(); - printf("mesh->filename=%s\n", filename); - char fullPath[1024]; - int fileType = 0; - sprintf(fullPath, "%s%s", pathPrefix, filename); - b3FileUtils::toLower(fullPath); - if (strstr(fullPath, ".dae")) - { - fileType = FILE_COLLADA; - } - if (strstr(fullPath, ".stl")) - { - fileType = FILE_STL; - } - if (strstr(fullPath,".obj")) - { - fileType = FILE_OBJ; - } - - - sprintf(fullPath, "%s%s", pathPrefix, filename); - FILE* f = fopen(fullPath, "rb"); - if (f) - { - fclose(f); - - - - switch (fileType) - { - case FILE_OBJ: - { - glmesh = LoadMeshFromObj(fullPath,pathPrefix); - break; - } - - case FILE_STL: - { - glmesh = LoadMeshFromSTL(fullPath); - break; - } - case FILE_COLLADA: - { - - btAlignedObjectArray visualShapes; - btAlignedObjectArray visualShapeInstances; - btTransform upAxisTrans; upAxisTrans.setIdentity(); - float unitMeterScaling = 1; - int upAxis = 2; - - LoadMeshFromCollada(fullPath, - visualShapes, - visualShapeInstances, - upAxisTrans, - unitMeterScaling, - upAxis); - - glmesh = new GLInstanceGraphicsShape; - int index = 0; - glmesh->m_indices = new b3AlignedObjectArray(); - glmesh->m_vertices = new b3AlignedObjectArray(); - - for (int i = 0; im_shapeIndex]; - - b3AlignedObjectArray verts; - verts.resize(gfxShape->m_vertices->size()); - - int baseIndex = glmesh->m_vertices->size(); - - for (int i = 0; im_vertices->size(); i++) - { - verts[i].normal[0] = gfxShape->m_vertices->at(i).normal[0]; - verts[i].normal[1] = gfxShape->m_vertices->at(i).normal[1]; - verts[i].normal[2] = gfxShape->m_vertices->at(i).normal[2]; - verts[i].uv[0] = gfxShape->m_vertices->at(i).uv[0]; - verts[i].uv[1] = gfxShape->m_vertices->at(i).uv[1]; - verts[i].xyzw[0] = gfxShape->m_vertices->at(i).xyzw[0]; - verts[i].xyzw[1] = gfxShape->m_vertices->at(i).xyzw[1]; - verts[i].xyzw[2] = gfxShape->m_vertices->at(i).xyzw[2]; - verts[i].xyzw[3] = gfxShape->m_vertices->at(i).xyzw[3]; - - } - - int curNumIndices = glmesh->m_indices->size(); - int additionalIndices = gfxShape->m_indices->size(); - glmesh->m_indices->resize(curNumIndices + additionalIndices); - for (int k = 0; km_indices->at(curNumIndices + k) = gfxShape->m_indices->at(k) + baseIndex; - } - - //compensate upAxisTrans and unitMeterScaling here - btMatrix4x4 upAxisMat; - upAxisMat.setIdentity(); -// upAxisMat.setPureRotation(upAxisTrans.getRotation()); - btMatrix4x4 unitMeterScalingMat; - unitMeterScalingMat.setPureScaling(btVector3(unitMeterScaling, unitMeterScaling, unitMeterScaling)); - btMatrix4x4 worldMat = unitMeterScalingMat*upAxisMat*instance->m_worldTransform; - //btMatrix4x4 worldMat = instance->m_worldTransform; - int curNumVertices = glmesh->m_vertices->size(); - int additionalVertices = verts.size(); - glmesh->m_vertices->reserve(curNumVertices + additionalVertices); - - for (int v = 0; vm_vertices->push_back(verts[v]); - } - } - glmesh->m_numIndices = glmesh->m_indices->size(); - glmesh->m_numvertices = glmesh->m_vertices->size(); - //glmesh = LoadMeshFromCollada(fullPath); - - break; - } - default: - { - printf("Error: unsupported file type for Visual mesh: %s\n", fullPath); - btAssert(0); - } - } - - - if (glmesh && (glmesh->m_numvertices>0)) - { - } - else - { - printf("issue extracting mesh from COLLADA/STL file %s\n", fullPath); - } - - } - else - { - printf("mesh geometry not found %s\n", fullPath); - } - - - } - } - - - break; - } - default: - { - printf("Error: unknown visual geometry type\n"); - } - } - - //if we have a convex, tesselate into localVertices/localIndices - if (convexColShape) - { - btShapeHull* hull = new btShapeHull(convexColShape); - hull->buildHull(0.0); - { - // int strideInBytes = 9*sizeof(float); - int numVertices = hull->numVertices(); - int numIndices = hull->numIndices(); - - - glmesh = new GLInstanceGraphicsShape; - int index = 0; - glmesh->m_indices = new b3AlignedObjectArray(); - glmesh->m_vertices = new b3AlignedObjectArray(); - - - for (int i = 0; i < numVertices; i++) - { - GLInstanceVertex vtx; - btVector3 pos = hull->getVertexPointer()[i]; - vtx.xyzw[0] = pos.x(); - vtx.xyzw[1] = pos.y(); - vtx.xyzw[2] = pos.z(); - vtx.xyzw[3] = 1.f; - pos.normalize(); - vtx.normal[0] = pos.x(); - vtx.normal[1] = pos.y(); - vtx.normal[2] = pos.z(); - vtx.uv[0] = 0.5f; - vtx.uv[1] = 0.5f; - glmesh->m_vertices->push_back(vtx); - } - - btAlignedObjectArray indices; - for (int i = 0; i < numIndices; i++) - { - glmesh->m_indices->push_back(hull->getIndexPointer()[i]); - } - - glmesh->m_numvertices = glmesh->m_vertices->size(); - glmesh->m_numIndices = glmesh->m_indices->size(); - } - delete convexColShape; - convexColShape = 0; - - } - - if (glmesh && glmesh->m_numIndices>0 && glmesh->m_numvertices >0) - { - - int baseIndex = verticesOut.size(); - - - - for (int i = 0; i < glmesh->m_indices->size(); i++) - { - indicesOut.push_back(glmesh->m_indices->at(i) + baseIndex); - } - - for (int i = 0; i < glmesh->m_vertices->size(); i++) - { - GLInstanceVertex& v = glmesh->m_vertices->at(i); - btVector3 vert(v.xyzw[0],v.xyzw[1],v.xyzw[2]); - btVector3 vt = visualTransform*vert; - v.xyzw[0] = vt[0]; - v.xyzw[1] = vt[1]; - v.xyzw[2] = vt[2]; - btVector3 triNormal(v.normal[0],v.normal[1],v.normal[2]); - triNormal = visualTransform.getBasis()*triNormal; - v.normal[0] = triNormal[0]; - v.normal[1] = triNormal[1]; - v.normal[2] = triNormal[2]; - verticesOut.push_back(v); - } - } -} - -btCollisionShape* convertURDFToCollisionShape(const Collision* visual, const char* pathPrefix) -{ - btCollisionShape* shape = 0; - - switch (visual->geometry->type) - { - case Geometry::CYLINDER: - { - printf("processing a cylinder\n"); - urdf::Cylinder* cyl = (urdf::Cylinder*)visual->geometry.get(); - - btAlignedObjectArray vertices; - //int numVerts = sizeof(barrel_vertices)/(9*sizeof(float)); - int numSteps = 32; - for (int i=0;iradius*btSin(SIMD_2_PI*(float(i)/numSteps)),cyl->radius*btCos(SIMD_2_PI*(float(i)/numSteps)),cyl->length/2.); - vertices.push_back(vert); - vert[2] = -cyl->length/2.; - vertices.push_back(vert); - - } - btConvexHullShape* cylZShape = new btConvexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); - cylZShape->setMargin(0.001); - cylZShape->initializePolyhedralFeatures(); - //btConvexShape* cylZShape = new btConeShapeZ(cyl->radius,cyl->length);//(vexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); - - //btVector3 halfExtents(cyl->radius,cyl->radius,cyl->length/2.); - //btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents); - - - shape = cylZShape; - break; - } - case Geometry::BOX: - { - printf("processing a box\n"); - urdf::Box* box = (urdf::Box*)visual->geometry.get(); - btVector3 extents(box->dim.x,box->dim.y,box->dim.z); - btBoxShape* boxShape = new btBoxShape(extents*0.5f); - //btConvexShape* boxShape = new btConeShapeX(extents[2]*0.5,extents[0]*0.5); - shape = boxShape; - shape ->setMargin(0.001); - break; - } - case Geometry::SPHERE: - { - printf("processing a sphere\n"); - urdf::Sphere* sphere = (urdf::Sphere*)visual->geometry.get(); - btScalar radius = sphere->radius; - btSphereShape* sphereShape = new btSphereShape(radius); - shape = sphereShape; - shape ->setMargin(0.001); - break; - - break; - } - case Geometry::MESH: - { - if (visual->name.length()) - { - printf("visual->name=%s\n",visual->name.c_str()); - } - if (visual->geometry) - { - const urdf::Mesh* mesh = (const urdf::Mesh*) visual->geometry.get(); - if (mesh->filename.length()) - { - const char* filename = mesh->filename.c_str(); - printf("mesh->filename=%s\n",filename); - char fullPath[1024]; - int fileType = 0; - sprintf(fullPath,"%s%s",pathPrefix,filename); - b3FileUtils::toLower(fullPath); - if (strstr(fullPath,".dae")) - { - fileType = FILE_COLLADA; - } - if (strstr(fullPath,".stl")) - { - fileType = FILE_STL; - } - if (strstr(fullPath,".obj")) - { - fileType = FILE_OBJ; - } - - sprintf(fullPath,"%s%s",pathPrefix,filename); - FILE* f = fopen(fullPath,"rb"); - if (f) - { - fclose(f); - GLInstanceGraphicsShape* glmesh = 0; - - - switch (fileType) - { - case FILE_OBJ: - { - glmesh = LoadMeshFromObj(fullPath,pathPrefix); - break; - } - case FILE_STL: - { - glmesh = LoadMeshFromSTL(fullPath); - break; - } - case FILE_COLLADA: - { - - btAlignedObjectArray visualShapes; - btAlignedObjectArray visualShapeInstances; - btTransform upAxisTrans;upAxisTrans.setIdentity(); - float unitMeterScaling=1; - int upAxis = 2; - LoadMeshFromCollada(fullPath, - visualShapes, - visualShapeInstances, - upAxisTrans, - unitMeterScaling, - upAxis ); - - glmesh = new GLInstanceGraphicsShape; - int index = 0; - glmesh->m_indices = new b3AlignedObjectArray(); - glmesh->m_vertices = new b3AlignedObjectArray(); - - for (int i=0;im_shapeIndex]; - - b3AlignedObjectArray verts; - verts.resize(gfxShape->m_vertices->size()); - - int baseIndex = glmesh->m_vertices->size(); - - for (int i=0;im_vertices->size();i++) - { - verts[i].normal[0] = gfxShape->m_vertices->at(i).normal[0]; - verts[i].normal[1] = gfxShape->m_vertices->at(i).normal[1]; - verts[i].normal[2] = gfxShape->m_vertices->at(i).normal[2]; - verts[i].uv[0] = gfxShape->m_vertices->at(i).uv[0]; - verts[i].uv[1] = gfxShape->m_vertices->at(i).uv[1]; - verts[i].xyzw[0] = gfxShape->m_vertices->at(i).xyzw[0]; - verts[i].xyzw[1] = gfxShape->m_vertices->at(i).xyzw[1]; - verts[i].xyzw[2] = gfxShape->m_vertices->at(i).xyzw[2]; - verts[i].xyzw[3] = gfxShape->m_vertices->at(i).xyzw[3]; - - } - - int curNumIndices = glmesh->m_indices->size(); - int additionalIndices = gfxShape->m_indices->size(); - glmesh->m_indices->resize(curNumIndices+additionalIndices); - for (int k=0;km_indices->at(curNumIndices+k)=gfxShape->m_indices->at(k)+baseIndex; - } - - //compensate upAxisTrans and unitMeterScaling here - btMatrix4x4 upAxisMat; - upAxisMat.setPureRotation(upAxisTrans.getRotation()); - btMatrix4x4 unitMeterScalingMat; - unitMeterScalingMat.setPureScaling(btVector3(unitMeterScaling,unitMeterScaling,unitMeterScaling)); - btMatrix4x4 worldMat = unitMeterScalingMat*instance->m_worldTransform*upAxisMat; - //btMatrix4x4 worldMat = instance->m_worldTransform; - int curNumVertices = glmesh->m_vertices->size(); - int additionalVertices = verts.size(); - glmesh->m_vertices->reserve(curNumVertices+additionalVertices); - - for(int v=0;vm_vertices->push_back(verts[v]); - } - } - glmesh->m_numIndices = glmesh->m_indices->size(); - glmesh->m_numvertices = glmesh->m_vertices->size(); - //glmesh = LoadMeshFromCollada(fullPath); - - break; - } - default: - { - printf("Unsupported file type in Collision: %s\n",fullPath); - btAssert(0); - } - } - - - if (glmesh && (glmesh->m_numvertices>0)) - { - printf("extracted %d verticed from STL file %s\n", glmesh->m_numvertices,fullPath); - //int shapeId = m_glApp->m_instancingRenderer->registerShape(&gvertices[0].pos[0],gvertices.size(),&indices[0],indices.size()); - //convex->setUserIndex(shapeId); - btAlignedObjectArray convertedVerts; - convertedVerts.reserve(glmesh->m_numvertices); - for (int i=0;im_numvertices;i++) - { - convertedVerts.push_back(btVector3(glmesh->m_vertices->at(i).xyzw[0],glmesh->m_vertices->at(i).xyzw[1],glmesh->m_vertices->at(i).xyzw[2])); - } - //btConvexHullShape* cylZShape = new btConvexHullShape(&glmesh->m_vertices->at(0).xyzw[0], glmesh->m_numvertices, sizeof(GLInstanceVertex)); - btConvexHullShape* cylZShape = new btConvexHullShape(&convertedVerts[0].getX(), convertedVerts.size(), sizeof(btVector3)); - //cylZShape->initializePolyhedralFeatures(); - //btVector3 halfExtents(cyl->radius,cyl->radius,cyl->length/2.); - //btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents); - cylZShape->setMargin(0.001); - shape = cylZShape; - } else - { - printf("issue extracting mesh from STL file %s\n", fullPath); - } - - } else - { - printf("mesh geometry not found %s\n",fullPath); - } - - - } - } - - - break; - } - default: - { - printf("Error: unknown visual geometry type\n"); - } - } - return shape; -} -void URDFvisual2BulletCollisionShape(my_shared_ptr link, GraphicsPhysicsBridge& gfxBridge, const btTransform& parentTransformInWorldSpace, btMultiBodyDynamicsWorld* world1, URDF2BulletMappings& mappings, const char* pathPrefix) -{ - //btCollisionShape* shape = 0; - - btTransform linkTransformInWorldSpace; - linkTransformInWorldSpace.setIdentity(); - - btScalar mass = 0; - btTransform inertialFrame; - inertialFrame.setIdentity(); - const Link* parentLink = (*link).getParent(); - URDF_LinkInformation* pp = 0; - - int linkIndex = mappings.m_linkMasses.size();//assuming root == 0, child links use contiguous numbering > 0 - - btVector3 localInertiaDiagonal(0,0,0); - - int parentIndex = -1; - - - if (parentLink) - { - parentIndex = mappings.m_urdfLinkIndices2BulletLinkIndices[parentLink->m_link_index]; - - btAssert(parentIndex>=0); - } - - { - URDF_LinkInformation** ppRigidBody = mappings.m_link2rigidbody.find(parentLink); - if (ppRigidBody) - { - pp = (*ppRigidBody); - btTransform tr = pp->m_bodyWorldTransform; - printf("rigidbody origin (COM) of link(%s) parent(%s): %f,%f,%f\n",(*link).name.c_str(), parentLink->name.c_str(), tr.getOrigin().x(), tr.getOrigin().y(), tr.getOrigin().z()); - } - } - - mappings.m_urdfLinkIndices2BulletLinkIndices[(*link).m_link_index] = linkIndex; - - if ((*link).inertial) - { - mass = (*link).inertial->mass; - localInertiaDiagonal.setValue((*link).inertial->ixx,(*link).inertial->iyy,(*link).inertial->izz); - inertialFrame.setOrigin(btVector3((*link).inertial->origin.position.x,(*link).inertial->origin.position.y,(*link).inertial->origin.position.z)); - inertialFrame.setRotation(btQuaternion((*link).inertial->origin.rotation.x,(*link).inertial->origin.rotation.y,(*link).inertial->origin.rotation.z,(*link).inertial->origin.rotation.w)); - } - - - btTransform parent2joint; - parent2joint.setIdentity(); - - if ((*link).parent_joint) - { - - const urdf::Vector3 pos = (*link).parent_joint->parent_to_joint_origin_transform.position; - const urdf::Rotation orn = (*link).parent_joint->parent_to_joint_origin_transform.rotation; - - parent2joint.setOrigin(btVector3(pos.x,pos.y,pos.z)); - parent2joint.setRotation(btQuaternion(orn.x,orn.y,orn.z,orn.w)); - linkTransformInWorldSpace =parentTransformInWorldSpace*parent2joint; - } else - { - linkTransformInWorldSpace = parentTransformInWorldSpace; - - - - } - - - { - printf("converting visuals of link %s", link->name.c_str()); - - - - { - - - - btAlignedObjectArray vertices; - btAlignedObjectArray indices; - btTransform startTrans; startTrans.setIdentity(); - int graphicsIndex = -1; - - for (int v = 0; v < (int)link->visual_array.size(); v++) - { - const Visual* vis = link->visual_array[v].get(); - btVector3 childPos(vis->origin.position.x, vis->origin.position.y, vis->origin.position.z); - btQuaternion childOrn(vis->origin.rotation.x, vis->origin.rotation.y, vis->origin.rotation.z, vis->origin.rotation.w); - btTransform childTrans; - childTrans.setOrigin(childPos); - childTrans.setRotation(childOrn); - - convertURDFToVisualShape(vis, pathPrefix, inertialFrame.inverse()*childTrans, vertices, indices); - - } - - if (vertices.size() && indices.size()) - { - graphicsIndex = gfxBridge.registerGraphicsShape(&vertices[0].xyzw[0], vertices.size(), &indices[0], indices.size()); - } - - - - btCompoundShape* compoundShape = new btCompoundShape(); - compoundShape->setMargin(0.001); - for (int v=0;v<(int)link->collision_array.size();v++) - { - const Collision* col = link->collision_array[v].get(); - btCollisionShape* childShape = convertURDFToCollisionShape(col ,pathPrefix); - if (childShape) - { - btVector3 childPos(col->origin.position.x, col->origin.position.y, col->origin.position.z); - btQuaternion childOrn(col->origin.rotation.x, col->origin.rotation.y, col->origin.rotation.z, col->origin.rotation.w); - btTransform childTrans; - childTrans.setOrigin(childPos); - childTrans.setRotation(childOrn); - compoundShape->addChildShape(inertialFrame.inverse()*childTrans,childShape); - - } - } - - - - - - if (compoundShape) - { - - - btVector3 color = selectColor(); - /* if (visual->material.get()) - { - color.setValue(visual->material->color.r,visual->material->color.g,visual->material->color.b);//,visual->material->color.a); - } - */ - //btVector3 localInertiaDiagonal(0, 0, 0); - //if (mass) - //{ - // shape->calculateLocalInertia(mass, localInertiaDiagonal); - //} - - - //btTransform visualFrameInWorldSpace = linkTransformInWorldSpace*visual_frame; - btTransform inertialFrameInWorldSpace = linkTransformInWorldSpace*inertialFrame; - URDF_LinkInformation* linkInfo = new URDF_LinkInformation; - - if (!mappings.m_createMultiBody) - { - btRigidBody::btRigidBodyConstructionInfo rbci(mass, 0, compoundShape, localInertiaDiagonal); - rbci.m_startWorldTransform = inertialFrameInWorldSpace; - linkInfo->m_bodyWorldTransform = inertialFrameInWorldSpace;//visualFrameInWorldSpace - //rbci.m_startWorldTransform = inertialFrameInWorldSpace;//linkCenterOfMass; - btRigidBody* body = new btRigidBody(rbci); - world1->addRigidBody(body, bodyCollisionFilterGroup, bodyCollisionFilterMask); - - compoundShape->setUserIndex(graphicsIndex); - - gfxBridge.createRigidBodyGraphicsObject(body, color); - linkInfo->m_bulletRigidBody = body; - } else - { - if (mappings.m_bulletMultiBody==0) - { - bool multiDof = true; - bool canSleep = false; - bool isFixedBase = (mass==0);//todo: figure out when base is fixed - int totalNumJoints = mappings.m_totalNumJoints; - mappings.m_bulletMultiBody = new btMultiBody(totalNumJoints,mass, localInertiaDiagonal, isFixedBase, canSleep, multiDof); - } - - } - - - linkInfo->m_collisionShape = compoundShape; - linkInfo->m_localInertiaDiagonal = localInertiaDiagonal; - linkInfo->m_mass = mass; - //linkInfo->m_localVisualFrame =visual_frame; - linkInfo->m_localInertialFrame =inertialFrame; - linkInfo->m_thisLink = link.get(); - const Link* p = link.get(); - mappings.m_link2rigidbody.insert(p, linkInfo); - - //create a joint if necessary - if ((*link).parent_joint && pp) - { - btAssert(pp); - - - - const Joint* pj = (*link).parent_joint.get(); - btTransform offsetInA,offsetInB; - static bool once = true; - - offsetInA.setIdentity(); - static bool toggle=false; - - //offsetInA = pp->m_localVisualFrame.inverse()*parent2joint; - offsetInA = pp->m_localInertialFrame.inverse()*parent2joint; - - offsetInB.setIdentity(); - //offsetInB = visual_frame.inverse(); - offsetInB = inertialFrame.inverse(); - - - bool disableParentCollision = true; - btVector3 jointAxis(pj->axis.x,pj->axis.y,pj->axis.z); - switch (pj->type) - { - case Joint::FIXED: - { - if (mappings.m_createMultiBody) - { - //todo: adjust the center of mass transform and pivot axis properly - - printf("Fixed joint (btMultiBody)\n"); - //btVector3 dVec = quatRotate(parentComToThisCom.getRotation(),offsetInB.inverse().getOrigin()); - btQuaternion rot = offsetInA.inverse().getRotation();//parent2joint.inverse().getRotation(); - //toggle=!toggle; - //mappings.m_bulletMultiBody->setupFixed(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - // rot, parent2joint.getOrigin(), btVector3(0,0,0),disableParentCollision); - mappings.m_bulletMultiBody->setupFixed(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - rot*offsetInB.getRotation(), offsetInA.getOrigin(),-offsetInB.getOrigin(),disableParentCollision); - - /* - mappings.m_bulletMultiBody->setupRevolute(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - parent2joint.inverse().getRotation(), jointAxis, offsetInA.getOrigin(),//parent2joint.getOrigin(), - -offsetInB.getOrigin(), - disableParentCollision); - */ - - btMatrix3x3 rm(rot); - btScalar y,p,r; - rm.getEulerZYX(y,p,r); - //parent2joint.inverse().getRotation(), offsetInA.getOrigin(), -offsetInB.getOrigin(), disableParentCollision); - //linkInfo->m_localVisualFrame.setIdentity(); - printf("y=%f,p=%f,r=%f\n", y,p,r); - - - - } else - { - printf("Fixed joint\n"); - - btMatrix3x3 rm(offsetInA.getBasis()); - btScalar y,p,r; - rm.getEulerZYX(y,p,r); - //parent2joint.inverse().getRotation(), offsetInA.getOrigin(), -offsetInB.getOrigin(), disableParentCollision); - //linkInfo->m_localVisualFrame.setIdentity(); - printf("y=%f,p=%f,r=%f\n", y,p,r); - - btGeneric6DofSpring2Constraint* dof6 = new btGeneric6DofSpring2Constraint(*pp->m_bulletRigidBody, *linkInfo->m_bulletRigidBody, offsetInA, offsetInB); - // btVector3 bulletAxis(pj->axis.x,pj->axis.y,pj->axis.z); - dof6->setLinearLowerLimit(btVector3(0,0,0)); - dof6->setLinearUpperLimit(btVector3(0,0,0)); - - dof6->setAngularLowerLimit(btVector3(0,0,0)); - dof6->setAngularUpperLimit(btVector3(0,0,0)); - - if (enableConstraints) - world1->addConstraint(dof6,true); - - // btFixedConstraint* fixed = new btFixedConstraint(*parentBody, *body,offsetInA,offsetInB); - // world->addConstraint(fixed,true); - } - break; - } - case Joint::CONTINUOUS: - case Joint::REVOLUTE: - { - if (mappings.m_createMultiBody) - { - //todo: adjust the center of mass transform and pivot axis properly - /*mappings.m_bulletMultiBody->setupRevolute( - linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - - parent2joint.inverse().getRotation(), jointAxis, parent2joint.getOrigin(), - btVector3(0,0,0),//offsetInB.getOrigin(), - disableParentCollision); - */ - - - mappings.m_bulletMultiBody->setupRevolute(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - //parent2joint.inverse().getRotation(), jointAxis, offsetInA.getOrigin(),//parent2joint.getOrigin(), - offsetInA.inverse().getRotation()*offsetInB.getRotation(), quatRotate(offsetInB.inverse().getRotation(),jointAxis), offsetInA.getOrigin(),//parent2joint.getOrigin(), - - -offsetInB.getOrigin(), - disableParentCollision); - //linkInfo->m_localVisualFrame.setIdentity(); - - } else - { - //only handle principle axis at the moment, - //@todo(erwincoumans) orient the constraint for non-principal axis - btVector3 axis(pj->axis.x,pj->axis.y,pj->axis.z); - int principleAxis = axis.closestAxis(); - switch (principleAxis) - { - case 0: - { - btGeneric6DofSpring2Constraint* dof6 = new btGeneric6DofSpring2Constraint(*pp->m_bulletRigidBody, *linkInfo->m_bulletRigidBody, offsetInA, offsetInB,RO_ZYX); - dof6->setLinearLowerLimit(btVector3(0,0,0)); - dof6->setLinearUpperLimit(btVector3(0,0,0)); - - dof6->setAngularUpperLimit(btVector3(-1,0,0)); - dof6->setAngularLowerLimit(btVector3(1,0,0)); - - if (enableConstraints) - world1->addConstraint(dof6,true); - break; - } - case 1: - { - btGeneric6DofSpring2Constraint* dof6 = new btGeneric6DofSpring2Constraint(*pp->m_bulletRigidBody, *linkInfo->m_bulletRigidBody, offsetInA, offsetInB,RO_XZY); - dof6->setLinearLowerLimit(btVector3(0,0,0)); - dof6->setLinearUpperLimit(btVector3(0,0,0)); - - dof6->setAngularUpperLimit(btVector3(0,-1,0)); - dof6->setAngularLowerLimit(btVector3(0,1,0)); - - if (enableConstraints) - world1->addConstraint(dof6,true); - break; - } - case 2: - default: - { - btGeneric6DofSpring2Constraint* dof6 = new btGeneric6DofSpring2Constraint(*pp->m_bulletRigidBody, *linkInfo->m_bulletRigidBody, offsetInA, offsetInB,RO_XYZ); - dof6->setLinearLowerLimit(btVector3(0,0,0)); - dof6->setLinearUpperLimit(btVector3(0,0,0)); - - dof6->setAngularUpperLimit(btVector3(0,0,-1)); - dof6->setAngularLowerLimit(btVector3(0,0,0)); - - if (enableConstraints) - world1->addConstraint(dof6,true); - } - }; - printf("Revolute/Continuous joint\n"); - } - break; - } - case Joint::PRISMATIC: - { - if (mappings.m_createMultiBody) - { - //mappings.m_bulletMultiBody->setupPrismatic(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - // parent2joint.inverse().getRotation(),jointAxis,parent2joint.getOrigin(),disableParentCollision); - - //mappings.m_bulletMultiBody->setupPrismatic(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - // parent2joint.inverse().getRotation(),jointAxis,parent2joint.getOrigin(),disableParentCollision); - - mappings.m_bulletMultiBody->setupPrismatic(linkIndex - 1, mass, localInertiaDiagonal, parentIndex - 1, - offsetInA.inverse().getRotation()*offsetInB.getRotation(), quatRotate(offsetInB.inverse().getRotation(),jointAxis), offsetInA.getOrigin(),//parent2joint.getOrigin(), - -offsetInB.getOrigin(), - disableParentCollision); - - - - } else - { - - btGeneric6DofSpring2Constraint* dof6 = new btGeneric6DofSpring2Constraint(*pp->m_bulletRigidBody, *linkInfo->m_bulletRigidBody, offsetInA, offsetInB); - //todo(erwincoumans) for now, we only support principle axis along X, Y or Z - btVector3 axis(pj->axis.x,pj->axis.y,pj->axis.z); - int principleAxis = axis.closestAxis(); - switch (principleAxis) - { - case 0: - { - dof6->setLinearLowerLimit(btVector3(pj->limits->lower,0,0)); - dof6->setLinearUpperLimit(btVector3(pj->limits->upper,0,0)); - break; - } - case 1: - { - dof6->setLinearLowerLimit(btVector3(0,pj->limits->lower,0)); - dof6->setLinearUpperLimit(btVector3(0,pj->limits->upper,0)); - break; - } - case 2: - default: - { - dof6->setLinearLowerLimit(btVector3(0,0,pj->limits->lower)); - dof6->setLinearUpperLimit(btVector3(0,0,pj->limits->upper)); - } - }; - - dof6->setAngularLowerLimit(btVector3(0,0,0)); - dof6->setAngularUpperLimit(btVector3(0,0,0)); - if (enableConstraints) - world1->addConstraint(dof6,true); - - printf("Prismatic\n"); - } - break; - } - default: - { - printf("Error: unsupported joint type in URDF (%d)\n", pj->type); - } - } - - } - - if (mappings.m_createMultiBody) - { - if (compoundShape->getNumChildShapes()>0) - { - btMultiBodyLinkCollider* col= new btMultiBodyLinkCollider(mappings.m_bulletMultiBody, linkIndex-1); - - //btCompoundShape* comp = new btCompoundShape(); - //comp->addChildShape(linkInfo->m_localVisualFrame,shape); - - compoundShape->setUserIndex(graphicsIndex); - - col->setCollisionShape(compoundShape); - - btTransform tr; - tr.setIdentity(); - tr = linkTransformInWorldSpace; - //if we don't set the initial pose of the btCollisionObject, the simulator will do this - //when syncing the btMultiBody link transforms to the btMultiBodyLinkCollider - - //tr.setOrigin(local_origin[0]); - //tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - - bool isDynamic = true; - short collisionFilterGroup = isDynamic? short(btBroadphaseProxy::DefaultFilter) : short(btBroadphaseProxy::StaticFilter); - short collisionFilterMask = isDynamic? short(btBroadphaseProxy::AllFilter) : short(btBroadphaseProxy::AllFilter ^ btBroadphaseProxy::StaticFilter); - - world1->addCollisionObject(col,collisionFilterGroup,collisionFilterMask); - - btVector3 color = selectColor();//(0.0,0.0,0.5); - - gfxBridge.createCollisionObjectGraphicsObject(col,color); - btScalar friction = 0.5f; - - col->setFriction(friction); - - if (parentIndex>=0) - { - mappings.m_bulletMultiBody->getLink(linkIndex-1).m_collider=col; - } else - { - mappings.m_bulletMultiBody->setBaseCollider(col); - } - } - } - - //mappings.m_linkLocalDiagonalInertiaTensors.push_back(localInertiaDiagonal); - //mappings.m_linkLocalInertiaTransforms.push_back(localInertialTransform); - } - - - } - } - - mappings.m_linkMasses.push_back(mass); - - for (std::vector >::const_iterator child = link->child_links.begin(); child != link->child_links.end(); child++) - { - if (*child) - { - URDFvisual2BulletCollisionShape(*child,gfxBridge, linkTransformInWorldSpace, world1,mappings,pathPrefix); - - } - else - { - std::cout << "root link: " << link->name << " has a null child!" << *child << std::endl; - } - } - - - - -} - - -void ImportUrdfSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - - int upAxis = 2; - gfxBridge.setUpAxis(2); - - this->createEmptyDynamicsWorld(); - //m_dynamicsWorld->getSolverInfo().m_numIterations = 100; - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode( - btIDebugDraw::DBG_DrawConstraints - +btIDebugDraw::DBG_DrawContactPoints - +btIDebugDraw::DBG_DrawAabb - );//+btIDebugDraw::DBG_DrawConstraintLimits); - - - btVector3 gravity(0,0,0); - gravity[upAxis]=-9.8; - - m_dynamicsWorld->setGravity(gravity); - //int argc=0; - char relativeFileName[1024]; - - b3FileUtils fu; - printf("m_fileName=%s\n", m_fileName); - bool fileFound = fu.findFile(m_fileName, relativeFileName, 1024); - - - - std::string xml_string; - char pathPrefix[1024]; - pathPrefix[0] = 0; - - if (!fileFound){ - std::cerr << "URDF file not found, using a dummy test URDF" << std::endl; - xml_string = std::string(urdf_char); - - } else - { - - int maxPathLen = 1024; - fu.extractPath(relativeFileName,pathPrefix,maxPathLen); - - - std::fstream xml_file(relativeFileName, std::fstream::in); - while ( xml_file.good() ) - { - std::string line; - std::getline( xml_file, line); - xml_string += (line + "\n"); - } - xml_file.close(); - } - - my_shared_ptr robot = parseURDF(xml_string); - if (!robot){ - std::cerr << "ERROR: Model Parsing the xml failed" << std::endl; - return ; - } - std::cout << "robot name is: " << robot->getName() << std::endl; - - // get info from parser - std::cout << "---------- Successfully Parsed XML ---------------" << std::endl; - // get root link - my_shared_ptr root_link=robot->getRoot(); - if (!root_link) return ; - - std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " child(ren)" << std::endl; - - // print entire tree - printTree(root_link); - printf("now using new interface\n"); - std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " child(ren)" << std::endl; - - //now print the tree using the new interface - MyURDF2Bullet u2b(robot,gfxBridge); - printTree(u2b, 0,0); - - btTransform identityTrans; - identityTrans.setIdentity(); - - int numJoints = (*robot).m_numJoints; - - static bool useFeatherstone = true; - bool useUrdfInterfaceClass = true; - - { - URDF2BulletMappings mappings; - - btMultiBody* mb = 0; - - if (!useUrdfInterfaceClass) - { - mappings.m_createMultiBody = useFeatherstone; - mappings.m_totalNumJoints = numJoints; - mappings.m_urdfLinkIndices2BulletLinkIndices.resize(numJoints+1,-2);//root and child links (=1+numJoints) - URDFvisual2BulletCollisionShape(root_link, gfxBridge, identityTrans,m_dynamicsWorld,mappings,pathPrefix); - mb = mappings.m_bulletMultiBody; - if (useFeatherstone) - { - mb->setHasSelfCollision(false); - mb->finalizeMultiDof(); - m_dynamicsWorld->addMultiBody(mb); - } - } else - { - - - //todo: move these internal API called inside the 'ConvertURDF2Bullet' call, hidden from the user - int rootLinkIndex = u2b.getRootLinkIndex(); - printf("urdf root link index = %d\n",rootLinkIndex); - ConvertURDF2Bullet(u2b,identityTrans,m_dynamicsWorld,useFeatherstone,pathPrefix); - mb = u2b.getBulletMultiBody(); - - if (useFeatherstone) - { - mb->setHasSelfCollision(false); - mb->finalizeMultiDof(); - m_dynamicsWorld->addMultiBody(mb); - - - //create motors for each joint - - for (int i=0;igetNumLinks();i++) - { - int mbLinkIndex = i; - if (mb->getLink(mbLinkIndex).m_jointType==btMultibodyLink::eRevolute) - { - if (m_data->m_numMotorsm_motorTargetVelocities[m_data->m_numMotors]; - *motorVel = 0.f; - SliderParams slider(motorName,motorVel); - slider.m_minVal=-4; - slider.m_maxVal=4; - gfxBridge.getParameterInterface()->registerSliderFloatParameter(slider); - float maxMotorImpulse = 0.1f; - btMultiBodyJointMotor* motor = new btMultiBodyJointMotor(mb,mbLinkIndex,0,0,maxMotorImpulse); - m_data->m_jointMotors[m_data->m_numMotors]=motor; - m_dynamicsWorld->addMultiBodyConstraint(motor); - m_data->m_numMotors++; - } - } - - } - } - } - - } - - //the btMultiBody support is work-in-progress :-) - - //useFeatherstone = !useFeatherstone; - printf("numJoints/DOFS = %d\n", numJoints); - - bool createGround=true; - if (createGround) - { - btVector3 groundHalfExtents(20,20,20); - groundHalfExtents[upAxis]=1.f; - btBoxShape* box = new btBoxShape(groundHalfExtents); - box->initializePolyhedralFeatures(); - - gfxBridge.createCollisionShapeGraphicsObject(box); - btTransform start; start.setIdentity(); - btVector3 groundOrigin(0,0,0); - groundOrigin[upAxis]=-2;//.5; - start.setOrigin(groundOrigin); - btRigidBody* body = createRigidBody(0,start,box); - //m_dynamicsWorld->removeRigidBody(body); - // m_dynamicsWorld->addRigidBody(body,2,1); - btVector3 color(0.5,0.5,0.5); - gfxBridge.createRigidBodyGraphicsObject(body,color); - } - - ///this extra stepSimulation call makes sure that all the btMultibody transforms are properly propagates. - m_dynamicsWorld->stepSimulation(1. / 240., 0);// 1., 10, 1. / 240.); -} - -void ImportUrdfSetup::stepSimulation(float deltaTime) -{ - if (m_dynamicsWorld) - { - for (int i=0;im_numMotors;i++) - { - m_data->m_jointMotors[i]->setVelocityTarget(m_data->m_motorTargetVelocities[i]); - } - - //the maximal coordinates/iterative MLCP solver requires a smallish timestep to converge - m_dynamicsWorld->stepSimulation(deltaTime,10,1./240.); - } -} diff --git a/Demos3/ImportURDFDemo/ImportURDFSetup.h b/Demos3/ImportURDFDemo/ImportURDFSetup.h deleted file mode 100644 index 093079bbb..000000000 --- a/Demos3/ImportURDFDemo/ImportURDFSetup.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef IMPORT_URDF_SETUP_H -#define IMPORT_URDF_SETUP_H - - -#include "Bullet3AppSupport/CommonMultiBodySetup.h" - -class ImportUrdfSetup : public CommonMultiBodySetup -{ - char m_fileName[1024]; - - struct ImportUrdfInternalData* m_data; - -public: - ImportUrdfSetup(); - virtual ~ImportUrdfSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - virtual void stepSimulation(float deltaTime); - - void setFileName(const char* urdfFileName); -}; - -#endif //IMPORT_URDF_SETUP_H diff --git a/Demos3/ImportURDFDemo/URDF2Bullet.h b/Demos3/ImportURDFDemo/URDF2Bullet.h deleted file mode 100644 index 2d2a17747..000000000 --- a/Demos3/ImportURDFDemo/URDF2Bullet.h +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef _URDF2BULLET_H -#define _URDF2BULLET_H -#include "LinearMath/btAlignedObjectArray.h" -#include "LinearMath/btTransform.h" -#include -class btVector3; -class btTransform; -class btMultiBodyDynamicsWorld; -class btTransform; - -class URDF2Bullet -{ - -public: - - enum { - RevoluteJoint=1, - PrismaticJoint, - ContinuousJoint, - FloatingJoint, - PlanarJoint, - FixedJoint, - }; - - ///return >=0 for the root link index, -1 if there is no root link - virtual int getRootLinkIndex() const = 0; - - ///pure virtual interfaces, precondition is a valid linkIndex (you can assert/terminate if the linkIndex is out of range) - virtual std::string getLinkName(int linkIndex) const =0; - - virtual std::string getJointName(int linkIndex) const = 0; - - //fill mass and inertial data. If inertial data is missing, please initialize mass, inertia to sensitive values, and inertialFrame to identity. - virtual void getMassAndInertia(int urdfLinkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const =0; - - ///fill an array of child link indices for this link, btAlignedObjectArray behaves like a std::vector so just use push_back and resize(0) if needed - virtual void getLinkChildIndices(int urdfLinkIndex, btAlignedObjectArray& childLinkIndices) const =0; - - virtual bool getJointInfo(int urdfLinkIndex, btTransform& parent2joint, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit) const =0; - - virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertialFrame) const=0; - - ///create Bullet collision shapes from URDF 'Collision' objects, specified in inertial frame of the link. - virtual class btCompoundShape* convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const = 0; - - virtual void createRigidBodyGraphicsInstance(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) const = 0; - - ///optionally create some graphical representation from a collision object, usually for visual debugging purposes. - virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* col, const btVector3& colorRgba) const = 0; - - virtual class btMultiBody* allocateMultiBody(int urdfLinkIndex, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep, bool multiDof) const =0; - - virtual class btRigidBody* allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape) const = 0; - - virtual class btGeneric6DofSpring2Constraint* allocateGeneric6DofSpring2Constraint(int urdfLinkIndex, btRigidBody& rbA /*parent*/, btRigidBody& rbB, const btTransform& offsetInA, const btTransform& offsetInB, int rotateOrder=0) const = 0; - - virtual class btMultiBodyLinkCollider* allocateMultiBodyLinkCollider(int urdfLinkIndex, int mbLinkIndex, btMultiBody* body) const = 0; - - virtual void addLinkMapping(int urdfLinkIndex, int mbLinkIndex) const = 0; -}; - - -void printTree(const URDF2Bullet& u2b, int linkIndex, int identationLevel=0); - - - -void ConvertURDF2Bullet(const URDF2Bullet& u2b, const btTransform& rootTransformInWorldSpace, btMultiBodyDynamicsWorld* world,bool createMultiBody, const char* pathPrefix); - - -#endif //_URDF2BULLET_H - diff --git a/Demos3/bullet2/BasicDemo/BasicDemo.cpp b/Demos3/bullet2/BasicDemo/BasicDemo.cpp deleted file mode 100644 index 2de7f2c77..000000000 --- a/Demos3/bullet2/BasicDemo/BasicDemo.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "BasicDemo.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btVector3.h" - -#include "BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.h" - - - - -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 - -static const float scaling=0.35f; - -BasicDemo::BasicDemo(CommonGraphicsApp* app, CommonPhysicsSetup* physicsSetup) -:Bullet2RigidBodyDemo(app,physicsSetup) -{ -} - -BasicDemo::~BasicDemo() -{ -} - -void BasicDemo::createGround(int cubeShapeId) -{ -} - - - diff --git a/Demos3/bullet2/BasicDemo/BasicDemo.h b/Demos3/bullet2/BasicDemo/BasicDemo.h deleted file mode 100644 index 4a9fe45e8..000000000 --- a/Demos3/bullet2/BasicDemo/BasicDemo.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef BASIC_DEMO_H -#define BASIC_DEMO_H - -#include "LinearMath/btVector3.h" -#include "Bullet3AppSupport/Bullet2RigidBodyDemo.h" - -#include "../../../Demos/BasicDemo/BasicDemoPhysicsSetup.h" - - - - -class BasicDemo : public Bullet2RigidBodyDemo -{ - - - -public: - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - CommonPhysicsSetup* physicsSetup = new BasicDemoPhysicsSetup(); - return new BasicDemo(app, physicsSetup); - } - - BasicDemo(CommonGraphicsApp* app, CommonPhysicsSetup* physicsSetup); - virtual ~BasicDemo(); - - void createGround(int cubeShapeId); - -}; - - -#endif //BASIC_DEMO_H diff --git a/Demos3/bullet2/BasicDemo/HingeDemo.cpp b/Demos3/bullet2/BasicDemo/HingeDemo.cpp deleted file mode 100644 index 57f2950d3..000000000 --- a/Demos3/bullet2/BasicDemo/HingeDemo.cpp +++ /dev/null @@ -1,492 +0,0 @@ - -#include "HingeDemo.h" - -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "MyDebugDrawer.h" - -#include "btBulletDynamicsCommon.h" - -#include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" -#include "BulletDynamics/MLCPSolvers/btLemkeSolver.h" -#include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" -#include "BulletDynamics/MLCPSolvers/btMLCPSolver.h" - -#include "BulletDynamics/Featherstone/btMultiBody.h" -#include "BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h" -#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "BulletDynamics/Featherstone/btMultiBodyLink.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" -#include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "BulletCollision/CollisionShapes/btShapeHull.h" - -static float scaling = 1.f; -static float friction = 1.f; - -struct GraphicsVertex -{ - float pos[4]; - float normal[3]; - float texcoord[2]; -}; - -static btVector4 colors[4] = -{ - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), -}; - - -HingeDemo::HingeDemo(SimpleOpenGL3App* app, HINGE_CREATION_METHOD hingeMethod) - :BasicDemo(app), - m_hingeMethod(hingeMethod) -{ -} - -struct btMultiBodySettings2 -{ - btMultiBodySettings2() - { - m_numLinks = 0; - m_basePosition.setZero(); - m_isFixedBase = true; - m_usePrismatic = false; - m_canSleep = true; - m_createConstraints = false; - m_disableParentCollision = false; - } - int m_numLinks; - btVector3 m_basePosition; - bool m_isFixedBase; - bool m_usePrismatic; - bool m_canSleep; - bool m_createConstraints; - bool m_disableParentCollision; -}; - - -btMultiBody* HingeDemo::createFeatherstoneHinge(class btMultiBodyDynamicsWorld* world, const btMultiBodySettings2& settings) -{ - int curColor=0; - - - int cubeShapeId = m_glApp->registerCubeShape(); - - int n_links = settings.m_numLinks; - float mass = 1; - btVector3 inertia; - btVector3 halfExtents(1,1,1); - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - box->calculateLocalInertia(mass,inertia); - - bool isMultiDof = false; - btMultiBody * bod = new btMultiBody(n_links, mass, inertia, settings.m_isFixedBase, settings.m_canSleep, isMultiDof); -// bod->setHasSelfCollision(false); - - //btQuaternion orn(btVector3(0,0,1),-0.25*SIMD_HALF_PI);//0,0,0,1); - btQuaternion orn(0,0,0,1); - bod->setBasePos(settings.m_basePosition); - bod->setWorldToBaseRot(orn); - btVector3 vel(0,0,0); - bod->setBaseVel(vel); - - { - - btVector3 joint_axis_hinge(0,1,0); - btVector3 joint_axis_prismatic(2,0,2); - btQuaternion parent_to_child = orn.inverse(); - btVector3 joint_axis_child_prismatic = quatRotate(parent_to_child ,joint_axis_prismatic); - btVector3 joint_axis_child_hinge = quatRotate(parent_to_child , joint_axis_hinge); - - int this_link_num = -1; - int link_num_counter = 0; - - - - btVector3 pos = btVector3 (0,0,0);//.0500002)*scaling; - - btVector3 joint_axis_position = btVector3 (1,0,1);//-2)*scaling; - - for (int i=0;i0) -// initial_joint_angle = -0.06f; - - const int child_link_num = link_num_counter++; - - - - if (settings.m_usePrismatic)// && i==(n_links-1)) - { - bod->setupPrismatic(child_link_num, mass, inertia, this_link_num, - parent_to_child, joint_axis_child_prismatic, quatRotate(parent_to_child , pos),settings.m_disableParentCollision); - - } else - { - bod->setupRevolute(child_link_num, mass, inertia, this_link_num,parent_to_child, joint_axis_child_hinge, - joint_axis_position,quatRotate(parent_to_child , (pos - joint_axis_position)),settings.m_disableParentCollision); - } - bod->setJointPos(child_link_num, initial_joint_angle); - this_link_num = i; -#if 0 - if (0)//!useGroundShape && i==4) - { - btVector3 pivotInAworld(0,20,46); - btVector3 pivotInAlocal = bod->worldPosToLocal(i, pivotInAworld); - btVector3 pivotInBworld = pivotInAworld; - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(bod,i,&btTypedConstraint::getFixedBody(),pivotInAlocal,pivotInBworld); - world->addMultiBodyConstraint(p2p); - } - //add some constraint limit - if (settings.m_usePrismatic) - { - // btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,n_links-1,2,3); - - if (settings.m_createConstraints) - { - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } else - { - if (settings.m_createConstraints) - { - if (1) - { - btMultiBodyJointMotor* con = new btMultiBodyJointMotor(bod,i,0,0,500000); - world->addMultiBodyConstraint(con); - } - - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } -#endif - - } - } - - //add a collider for the base - { - - btAlignedObjectArray world_to_local; - world_to_local.resize(n_links+1); - - btAlignedObjectArray local_origin; - local_origin.resize(n_links+1); - world_to_local[0] = bod->getWorldToBaseRot(); - local_origin[0] = bod->getBasePos(); - //float halfExtents[3]={7.5,0.05,4.5}; - - { - - float pos[4]={local_origin[0].x(),local_origin[0].y(),local_origin[0].z(),1}; - float quat[4]={-world_to_local[0].x(),-world_to_local[0].y(),-world_to_local[0].z(),world_to_local[0].w()}; - - - if (0) - { - - btMultiBodyLinkCollider* col= new btMultiBodyLinkCollider(bod,-1); - - col->setCollisionShape(box); - - btTransform tr; - tr.setIdentity(); - tr.setOrigin(local_origin[0]); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - - btVector4 color = colors[curColor++]; - curColor&=3; - - int index = m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),color,halfExtents*scaling); - col->setUserIndex(index); - - - - - world->addCollisionObject(col,short(btBroadphaseProxy::DefaultFilter),short(btBroadphaseProxy::AllFilter)); - col->setFriction(friction); - bod->setBaseCollider(col); - - } - } - - - for (int i=0;igetNumLinks();i++) - { - const int parent = bod->getParent(i); - world_to_local[i+1] = bod->getParentToLocalRot(i) * world_to_local[parent+1]; - local_origin[i+1] = local_origin[parent+1] + (quatRotate(world_to_local[i+1].inverse() , bod->getRVector(i))); - } - - - for (int i=0;igetNumLinks();i++) - { - - btVector3 posr = local_origin[i+1]; - float pos[4]={posr.x(),posr.y(),posr.z(),1}; - - float quat[4]={-world_to_local[i+1].x(),-world_to_local[i+1].y(),-world_to_local[i+1].z(),world_to_local[i+1].w()}; - - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - btMultiBodyLinkCollider* col = new btMultiBodyLinkCollider(bod,i); - - col->setCollisionShape(box); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(posr); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - col->setFriction(friction); - - - btVector4 color = colors[curColor++]; - curColor&=3; - - int index = m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),color,halfExtents*scaling); - col->setUserIndex(index); - - - - world->addCollisionObject(col,short(btBroadphaseProxy::DefaultFilter),short(btBroadphaseProxy::AllFilter)); - - bod->getLink(i).m_collider=col; - //app->drawBox(halfExtents, pos,quat); - } - - } - world->addMultiBody(bod); - - return bod; -} - -void HingeDemo::initPhysics() -{ - m_config = new btDefaultCollisionConfiguration; - m_dispatcher = new btCollisionDispatcher(m_config); - m_bp = new btDbvtBroadphase(); - - - switch (m_hingeMethod) - { - case FEATHERSTONE_HINGE: - { - btMultiBodyConstraintSolver* solver = new btMultiBodyConstraintSolver(); - btMultiBodyDynamicsWorld* world = new btMultiBodyDynamicsWorld(m_dispatcher,m_bp,solver,m_config); - m_dynamicsWorld = world; - btMultiBodySettings2 settings; - settings.m_basePosition.setValue(0,0,0); - settings.m_numLinks = 1; - btMultiBody* multibody = createFeatherstoneHinge(world, settings); - - break; - } - case DANTZIG_HINGE: - { - btDantzigSolver* mlcp = new btDantzigSolver(); - m_solver = new btMLCPSolver(mlcp); - break; - } - case LEMKE_HINGE: - { - btLemkeSolver* mlcp = new btLemkeSolver(); - m_solver = new btMLCPSolver(mlcp); - - break; - } - - case PGS_HINGE: - { - btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; - m_solver = new btMLCPSolver(mlcp); - break; - } - case SI_HINGE: - { - m_solver = new btSequentialImpulseConstraintSolver(); - break; - } - case INERTIA_HINGE: - { - m_solver = new btSequentialImpulseConstraintSolver(); - break; - } - default: - { - - } - } - - int cubeShapeId = m_glApp->registerCubeShape(); - - - if (m_hingeMethod!=FEATHERSTONE_HINGE) - { - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_bp,m_solver,m_config); - - - - m_dynamicsWorld->setDebugDrawer(new MyDebugDrawer(m_glApp)); - - - - - if (1) - { - btVector4 color(0,1,0,1); - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,0,0)); - - //startTransform.setRotation(btQuaternion(btVector3(0,1,0),0.2*SIMD_HALF_PI)); - btVector3 halfExtents(1,1,1); - int index = m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,startTransform.getOrigin(),startTransform.getRotation(),color,halfExtents); - btBoxShape* box1 = new btBoxShape(halfExtents); - btCompoundShape* box = new btCompoundShape(); - btTransform shiftTrans;shiftTrans.setIdentity(); - btVector3 centerOfMassShift(0,0,0);//1.5,1.5,1.5); - - if (m_hingeMethod==INERTIA_HINGE) - { - centerOfMassShift.setValue(-1,1,-1); - } - - shiftTrans.setOrigin(centerOfMassShift); - // shiftTrans.setRotation(btQuaternion(btVector3(0,1,0),0.2*SIMD_HALF_PI)); - box->addChildShape(shiftTrans,box1); - - float mass = 1.f; - btVector3 localInertia; - box->calculateLocalInertia(mass,localInertia); - - if (m_hingeMethod==INERTIA_HINGE) - { - //localInertia[0] = 0; - //localInertia[1] = 0; - } - - btDefaultMotionState* motionState = new btDefaultMotionState(); - startTransform.setOrigin(-centerOfMassShift); - - motionState->m_centerOfMassOffset = shiftTrans; - motionState->setWorldTransform(startTransform); - - btRigidBody* body = new btRigidBody(mass,motionState,box,localInertia); - body->setUserIndex(index); - m_dynamicsWorld->addRigidBody(body); - m_dynamicsWorld->getSolverInfo().m_splitImpulse = false;//true; - // m_dynamicsWorld->getSolverInfo().m_erp2 = 1; - // m_dynamicsWorld->getSolverInfo().m_erp = 1; - m_dynamicsWorld->getSolverInfo().m_numIterations = 10; - - if (m_hingeMethod!=INERTIA_HINGE) - { - btVector3 pivotInA(1,0,1); - btVector3 axisInA(0,1,0); - btHingeConstraint* hinge = new btHingeConstraint(*body,pivotInA,axisInA); - hinge->setOverrideNumSolverIterations(10); - m_dynamicsWorld->addConstraint(hinge); - } else - { - body->setLinearFactor(btVector3(0,0,0)); - - btVector3 ax = btVector3(0,1,0); - - body->setAngularFactor(ax); - - } - } - - - } - - - if (1) - { - btVector4 color(0,0,1,1); - btTransform startTransform; - startTransform.setIdentity(); - startTransform.setOrigin(btVector3(0,2,0)); - btVector3 halfExtents(1,1,1); - int index = m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,startTransform.getOrigin(),startTransform.getRotation(),color,halfExtents); - btBoxShape* box = new btBoxShape(halfExtents); - - float mass = 1.f; - btVector3 localInertia; - box->calculateLocalInertia(mass,localInertia); - btRigidBody* body = new btRigidBody(mass,0,box,localInertia); - body->getMotionState(); - body->setWorldTransform(startTransform); - body->setUserIndex(index); - body->setAngularVelocity(btVector3(0,1,0)); - body->setActivationState(DISABLE_DEACTIVATION); - m_dynamicsWorld->addRigidBody(body); - } - - - m_glApp->m_instancingRenderer->writeTransforms(); -} - - -void HingeDemo::renderScene() -{ -// m_glApp->drawGrid(); -// m_glApp->drawText("test",10,10); - //sync graphics -> physics world transforms - - { - - for (int i=0;igetNumCollisionObjects();i++) - { - btRigidBody* body = btRigidBody::upcast(m_dynamicsWorld->getCollisionObjectArray()[i]); - const btDefaultMotionState* state = (btDefaultMotionState*)(body ? body->getMotionState() : 0); - - if (state) - { - btTransform tr = state->m_graphicsWorldTrans; - - btVector3 pos = tr.getOrigin(); - btQuaternion orn = tr.getRotation(); - m_glApp->m_instancingRenderer->writeSingleInstanceTransformToCPU(pos,orn,i); - - } else - { - btVector3 pos = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getOrigin(); - btQuaternion orn = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getRotation(); - m_glApp->m_instancingRenderer->writeSingleInstanceTransformToCPU(pos,orn,i); - } - } - m_glApp->m_instancingRenderer->writeTransforms(); - } - - - static bool debugRender = false; - { - m_dynamicsWorld->debugDrawWorld(); - } - debugRender = !debugRender ; - { - m_glApp->m_instancingRenderer->renderScene(); - } - -// if (debugRender) - -// else - -} - -void HingeDemo::exitPhysics() -{ - Bullet2RigidBodyDemo::exitPhysics(); - -} \ No newline at end of file diff --git a/Demos3/bullet2/BasicDemo/HingeDemo.h b/Demos3/bullet2/BasicDemo/HingeDemo.h deleted file mode 100644 index 3f9f43906..000000000 --- a/Demos3/bullet2/BasicDemo/HingeDemo.h +++ /dev/null @@ -1,63 +0,0 @@ - -#ifndef HINGE_DEMO_H -#define HINGE_DEMO_H - -#include "BasicDemo.h" - -enum HINGE_CREATION_METHOD -{ - FEATHERSTONE_HINGE=1, - DANTZIG_HINGE, - LEMKE_HINGE, - PGS_HINGE, - SI_HINGE, - INERTIA_HINGE -}; - -class HingeDemo : public BasicDemo -{ - int m_hingeMethod; - -public: - static BulletDemoInterface* FeatherstoneCreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, FEATHERSTONE_HINGE); - } - static BulletDemoInterface* DantzigCreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, DANTZIG_HINGE); - } - static BulletDemoInterface* LemkeCreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, LEMKE_HINGE); - } - static BulletDemoInterface* PGSCreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, PGS_HINGE); - } - - static BulletDemoInterface* SICreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, SI_HINGE); - } - - - static BulletDemoInterface* InertiaCreateFunc(CommonGraphicsApp* app) - { - return new HingeDemo(app, INERTIA_HINGE); - } - - HingeDemo(CommonGraphicsApp* app, HINGE_CREATION_METHOD hingeMethod); - - class btMultiBody* createFeatherstoneHinge(class btMultiBodyDynamicsWorld* world, const struct btMultiBodySettings2& settings); - - - virtual void initPhysics(); - virtual void exitPhysics(); - - virtual void renderScene(); - -}; - -#endif //HINGE_DEMO_H - diff --git a/Demos3/bullet2/ChainDemo/ChainDemo.cpp b/Demos3/bullet2/ChainDemo/ChainDemo.cpp deleted file mode 100644 index 71032cb7c..000000000 --- a/Demos3/bullet2/ChainDemo/ChainDemo.cpp +++ /dev/null @@ -1,201 +0,0 @@ -#include "ChainDemo.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btVector3.h" - -#include "BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.h" -#include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" -#include "BulletDynamics/MLCPSolvers/btLemkeSolver.h" -#include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" -#include "BulletDynamics/MLCPSolvers/btMLCPSolver.h" - - -#define NUM_SPHERES 10 - -static const float scaling=0.35f; - -ChainDemo::ChainDemo(SimpleOpenGL3App* app) -:Bullet2RigidBodyDemo(app) -{ -} - -ChainDemo::~ChainDemo() -{ -} - -void ChainDemo::createGround(int cubeShapeId) -{ - { - btVector4 color(0.3,0.3,1,1); - btVector4 halfExtents(50,1,50,1); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-5,0)); - m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,groundTransform.getOrigin(),groundTransform.getRotation(),color,halfExtents); - btBoxShape* groundShape = new btBoxShape(btVector3(btScalar(halfExtents[0]),btScalar(halfExtents[1]),btScalar(halfExtents[2]))); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - body->setActivationState(DISABLE_DEACTIVATION); - } - } -} -void ChainDemo::initPhysics() -{ -// Bullet2RigidBodyDemo::initPhysics(); - - m_config = new btDefaultCollisionConfiguration; - m_dispatcher = new btCollisionDispatcher(m_config); - m_bp = new btDbvtBroadphase(); - //m_solver = new btNNCGConstraintSolver(); - m_solver = new btSequentialImpulseConstraintSolver(); -// btDantzigSolver* mlcp = new btDantzigSolver(); - //btLemkeSolver* mlcp = new btLemkeSolver(); - //m_solver = new btMLCPSolver(mlcp); -// m_solver = new btSequentialImpulseConstraintSolver(); - //btMultiBodyConstraintSolver* solver = new btMultiBodyConstraintSolver(); - //m_solver = solver; - - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_bp,m_solver,m_config); - m_dynamicsWorld->getSolverInfo().m_numIterations = 1000; - m_dynamicsWorld->getSolverInfo().m_splitImpulse = false; - - int curColor=0; - //create ground - btScalar radius=scaling; - int unitCubeShapeId = m_glApp->registerCubeShape(); - - float pos[]={0,0,0}; - float orn[]={0,0,0,1}; - - - //eateGround(unitCubeShapeId); - - int sphereShapeId = m_glApp->registerGraphicsSphereShape(radius,false); - - { - btVector4 halfExtents(scaling,scaling,scaling,1); - btVector4 colors[4] = - { - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), - }; - - - - btTransform startTransform; - startTransform.setIdentity(); - - - btCollisionShape* colShape = new btSphereShape(scaling); - - btScalar largeMass[]={1000,10,100,1000}; - for (int i=0;i<1;i++) - { - - btAlignedObjectArray bodies; - for (int k=0;kcalculateLocalInertia(mass,localInertia); - - btVector4 color = colors[curColor]; - - startTransform.setOrigin(btVector3( - btScalar(7.5+-i*5), - btScalar(6.*scaling+2.0*scaling*k), - btScalar(0))); - - m_glApp->m_instancingRenderer->registerGraphicsInstance(sphereShapeId,startTransform.getOrigin(),startTransform.getRotation(),color,halfExtents); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,colShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - bodies.push_back(body); - body->setActivationState(DISABLE_DEACTIVATION); - - m_dynamicsWorld->addRigidBody(body); - } - - //add constraints - btVector3 pivotInA(0,radius,0); - btVector3 pivotInB(0,-radius,0); - for (int k=0;kaddConstraint(p2p,true); - } - } - } - - m_glApp->m_instancingRenderer->writeTransforms(); -} -void ChainDemo::exitPhysics() -{ - - Bullet2RigidBodyDemo::exitPhysics(); -} -void ChainDemo::renderScene() -{ - //sync graphics -> physics world transforms - { - for (int i=0;igetNumCollisionObjects();i++) - { - btVector3 pos = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getOrigin(); - btQuaternion orn = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getRotation(); - m_glApp->m_instancingRenderer->writeSingleInstanceTransformToCPU(pos,orn,i); - } - m_glApp->m_instancingRenderer->writeTransforms(); - } - - m_glApp->m_instancingRenderer->renderScene(); -} - - -void ChainDemo::stepSimulation(float dt) -{ - m_dynamicsWorld->stepSimulation(dt,10,1./240.); - //m_dynamicsWorld->stepSimulation(dt,10,1./60.); -} - - - diff --git a/Demos3/bullet2/ChainDemo/ChainDemo.h b/Demos3/bullet2/ChainDemo/ChainDemo.h deleted file mode 100644 index 03f2d44ef..000000000 --- a/Demos3/bullet2/ChainDemo/ChainDemo.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef CHAIN_DEMO_H -#define CHAIN_DEMO_H - -#include "LinearMath/btVector3.h" -#include "Bullet3AppSupport/Bullet2RigidBodyDemo.h" - - - -class ChainDemo : public Bullet2RigidBodyDemo -{ - -public: - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - return new ChainDemo(app); - } - - ChainDemo(CommonGraphicsApp* app); - virtual ~ChainDemo(); - - void createGround(int cubeShapeId); - - virtual void initPhysics(); - virtual void exitPhysics(); - virtual void renderScene(); - virtual void stepSimulation(float dt); -}; - - -#endif //CHAIN_DEMO_H diff --git a/Demos3/bullet2/CollisionDetection/SupportFuncDemo.h b/Demos3/bullet2/CollisionDetection/SupportFuncDemo.h deleted file mode 100644 index d6e5f0354..000000000 --- a/Demos3/bullet2/CollisionDetection/SupportFuncDemo.h +++ /dev/null @@ -1,115 +0,0 @@ -#ifndef SUPPORT_FUNC_DEMO_H -#define SUPPORT_FUNC_DEMO_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" -#include "BulletCollision/CollisionShapes/btSphereShape.h" - - -///quick demo showing the support map function (localGetSupportingVertex) -class MySupportFuncDemo : public BulletDemoInterface -{ - CommonGraphicsApp* m_app; - btSphereShape* m_sphere; - float m_x; - float m_y; - - -public: - - MySupportFuncDemo(CommonGraphicsApp* app) - :m_app(app), - m_x(0), - m_y(0) - { - m_app->setUpAxis(1); - m_sphere = new btSphereShape(1); - { - int boxId = m_app->registerCubeShape(10,0.1,10); - btVector3 pos(0,-2,0); - btQuaternion orn(0,0,0,1); - btVector4 color(0.3,0.3,0.3,1); - - btVector3 scaling(1,1,1); - m_app->m_renderer->registerGraphicsInstance(boxId,pos,orn,color,scaling); - } - - { - int sphereId = m_app->registerGraphicsSphereShape(1,false,0,0); - btVector3 pos(0,0,0); - btQuaternion orn(0,0,0,1); - btVector4 color(0,1,0,0.6); - - btVector3 scaling(1,1,1); - m_app->m_renderer->registerGraphicsInstance(sphereId,pos,orn,color,scaling); - } - m_app->m_renderer->writeTransforms(); - m_app->m_renderer->enableBlend(true); - } - virtual ~MySupportFuncDemo() - { - m_app->m_renderer->enableBlend(false); - delete m_sphere; - } - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new MySupportFuncDemo(app); - } - - virtual void initPhysics() - { - } - virtual void exitPhysics() - { - - } - virtual void stepSimulation(float deltaTime) - { - m_x+=0.01f; - m_y+=0.02f; - - } - virtual void renderScene() - { - m_app->m_renderer->renderScene(); - - } - virtual void physicsDebugDraw(int debugDrawFlags) - { - int width=3; - btVector3 from(0,0,0); - btVector3 to(10.*btSin(m_x),10.*btCos(m_x),10.*btSin(m_y)); - - - { - btVector3 color(1,0,0); - m_app->m_renderer->drawLine(from,to,color,width); - } - btVector3 dir(to-from); - btVector3 sup = m_sphere->btConvexInternalShape::localGetSupportingVertex(dir); - btVector3 orth0,orth1; - btPlaneSpace1(dir,orth0,orth1); - btVector3 color(0,0,1); - orth0.normalize(); - orth1.normalize(); - - m_app->m_renderer->drawLine(sup,sup+orth0*0.4,color,3); - m_app->m_renderer->drawLine(sup,sup+orth1*0.4,color,3); - - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } - -}; -#endif //SUPPORT_FUNC_DEMO - diff --git a/Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.h b/Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.h deleted file mode 100644 index ec1267622..000000000 --- a/Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef CONSTAINT_PHYSICS_SETUP_H -#define CONSTAINT_PHYSICS_SETUP_H - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct ConstraintPhysicsSetup : public CommonRigidBodySetup -{ - ConstraintPhysicsSetup(); - virtual ~ConstraintPhysicsSetup(); - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void stepSimulation(float deltaTime); - -}; - -#endif //CONSTAINT_PHYSICS_SETUP_H diff --git a/Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.h b/Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.h deleted file mode 100644 index 00980c500..000000000 --- a/Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H -#define GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct Dof6Spring2Setup : public CommonRigidBodySetup -{ - struct Dof6Spring2SetupInternalData* m_data; - - Dof6Spring2Setup(); - virtual ~Dof6Spring2Setup(); - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void stepSimulation(float deltaTime); - - void animate(); -}; - -#endif //GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H diff --git a/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.cpp b/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.cpp deleted file mode 100644 index 48693b90a..000000000 --- a/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.cpp +++ /dev/null @@ -1,91 +0,0 @@ - - -#include "CoordinateFrameDemoPhysicsSetup.h" -#include "btBulletDynamicsCommon.h" -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Z 5 - - -bool showRigidBodyCenterOfMass = true; - -void CoordinateFrameDemoPhysicsSetup::debugDraw() -{ - /* - for (int i=0;igetCollisionObjectArray().size();i++) - { - const btCollisionObject* colObj = m_dynamicsWorld->getCollisionObjectArray()[i]; - if (showRigidBodyCenterOfMass) - { - m_dynamicsWorld->getDebugDrawer()->drawTransform(colObj->getWorldTransform(),1); - } - } - */ - - m_dynamicsWorld->debugDrawWorld(); -} - -void CoordinateFrameDemoPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - createEmptyDynamicsWorld(); - m_dynamicsWorld->setGravity(btVector3(0,0,0)); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe+btIDebugDraw::DBG_DrawContactPoints); - - m_dynamicsWorld->getDebugDrawer()->setDebugMode(m_dynamicsWorld->getDebugDrawer()->getDebugMode() + btIDebugDraw::DBG_DrawFrames); - - btScalar sqr2 = btSqrt(2); - btVector3 tetraVerts[] = { - btVector3(1.f, 0.f, -1/sqr2), - btVector3(-1.f, 0.f, -1/sqr2), - btVector3(0, 1.f, 1/sqr2), - btVector3(0, -1.f, 1/sqr2), - }; - - - - { - //create a few dynamic rigidbodies - // Re-using the same collision is better for memory usage and performance - btCompoundShape* hull = new btCompoundShape(); - btConvexHullShape* childHull = new btConvexHullShape(&tetraVerts[0].getX(),sizeof(tetraVerts)/sizeof(btVector3),sizeof(btVector3)); - - childHull->initializePolyhedralFeatures(); - btTransform childTrans; - childTrans.setIdentity(); - childTrans.setOrigin(btVector3(2,0,0)); - hull->addChildShape(childTrans,childHull); - gfxBridge.createCollisionShapeGraphicsObject(hull); - m_collisionShapes.push_back(hull); - - /// Create Dynamic Objects - btTransform startTransform; - startTransform.setIdentity(); - - btScalar mass(1.f); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - hull->calculateLocalInertia(mass,localInertia); - - - startTransform.setOrigin(btVector3(0,0,0)); - - btRigidBody* body = createRigidBody(mass,startTransform,hull); - gfxBridge.createRigidBodyGraphicsObject(body, btVector3(1, 1, 0)); - } - -} - - - - - - - - - - diff --git a/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h b/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h deleted file mode 100644 index 2e13e5232..000000000 --- a/Demos3/bullet2/CoordinateFrameDemo/CoordinateFrameDemoPhysicsSetup.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef COORDINATE_FRAME_DEMO_PHYSICS_SETUP_H -#define COORDINATE_FRAME_DEMO_PHYSICS_SETUP_H - -class btRigidBody; -class btCollisionShape; -class btBroadphaseInterface; -class btConstraintSolver; -class btCollisionDispatcher; -class btDefaultCollisionConfiguration; -class btDiscreteDynamicsWorld; -class btTransform; -class btVector3; -class btBoxShape; -#include "LinearMath/btVector3.h" - -#include "LinearMath/btAlignedObjectArray.h" - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -struct CoordinateFrameDemoPhysicsSetup : public CommonRigidBodySetup -{ - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - virtual void debugDraw(); -}; - -#endif //COORDINATE_FRAME_DEMO_PHYSICS_SETUP_H diff --git a/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp b/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp deleted file mode 100644 index f2b9b0625..000000000 --- a/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.cpp +++ /dev/null @@ -1,1040 +0,0 @@ - - -#define ARRAY_SIZE_X 5 -#define ARRAY_SIZE_Y 5 -#define ARRAY_SIZE_Z 5 -static float scaling = 1.f; -static float friction = 1.; - -#include "BulletMultiBodyDemos.h" - - -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "Bullet3Common/b3Vector3.h" -#include "assert.h" -#include - -#include "btBulletDynamicsCommon.h" - -#include "BulletDynamics/Featherstone/btMultiBody.h" -#include "BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h" -#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "BulletDynamics/Featherstone/btMultiBodyLink.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" -#include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" - -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "BulletCollision/CollisionShapes/btShapeHull.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" - -#define CONSTRAINT_DEBUG_SIZE 0.2f -static bool prevCanSleep = false; - - -static btVector4 colors[4] = -{ - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), -}; - - - -Bullet2MultiBodyDemo::Bullet2MultiBodyDemo(CommonGraphicsApp* app) -:m_glApp(app), -m_pickedBody(0), -m_pickedConstraint(0), -m_pickingMultiBodyPoint2Point(0) - -{ - app->setUpAxis(1); - m_collisionConfiguration = 0; - m_dispatcher = 0; - m_broadphase = 0; - m_solver = 0; - m_dynamicsWorld = 0; -} -void Bullet2MultiBodyDemo::initPhysics() -{ - m_collisionConfiguration = new btDefaultCollisionConfiguration; - m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - m_broadphase = new btDbvtBroadphase(); - m_solver = new btMultiBodyConstraintSolver(); - m_dynamicsWorld = new btMultiBodyDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); -} - -void Bullet2MultiBodyDemo::exitPhysics() -{ - delete m_dynamicsWorld; - m_dynamicsWorld=0; - delete m_solver; - m_solver=0; - delete m_broadphase; - m_broadphase=0; - delete m_dispatcher; - m_dispatcher=0; - delete m_collisionConfiguration; - m_collisionConfiguration=0; -} - -Bullet2MultiBodyDemo::~Bullet2MultiBodyDemo() -{ - btAssert(m_collisionConfiguration == 0); - btAssert(m_dispatcher == 0); - btAssert(m_broadphase == 0); - btAssert(m_solver == 0); - btAssert(m_dynamicsWorld == 0); -} - - - -btVector3 Bullet2MultiBodyDemo::getRayTo(int x,int y) -{ - if (!m_glApp->m_renderer) - { - btAssert(0); - return btVector3(0,0,0); - } - - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = b3Scalar(2.0) * b3Atan(tanFov); - - btVector3 camPos,camTarget; - m_glApp->m_renderer->getCameraPosition(camPos); - m_glApp->m_renderer->getCameraTargetPosition(camTarget); - - btVector3 rayFrom = camPos; - btVector3 rayForward = (camTarget-camPos); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - - btVector3 rightOffset; - btVector3 m_cameraUp=btVector3(0,1,0); - btVector3 vertical = m_cameraUp; - - btVector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - b3Scalar aspect; - float width = m_glApp->m_renderer->getScreenWidth(); - float height = m_glApp->m_renderer->getScreenHeight(); - - aspect = width / height; - - hor*=aspect; - - - btVector3 rayToCenter = rayFrom + rayForward; - btVector3 dHor = hor * 1.f/width; - btVector3 dVert = vertical * 1.f/height; - - - btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += btScalar(x) * dHor; - rayTo -= btScalar(y) * dVert; - return rayTo; -} - - -bool Bullet2MultiBodyDemo::mouseMoveCallback(float x,float y) -{ -// if (m_data->m_altPressed!=0 || m_data->m_controlPressed!=0) -// return false; - - if (m_pickedBody && m_pickedConstraint) - { - btPoint2PointConstraint* pickCon = static_cast(m_pickedConstraint); - if (pickCon) - { - //keep it at the same picking distance - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; -// btVector3 oldPivotInB = pickCon->getPivotInB(); - btVector3 newPivotB; - m_glApp->m_renderer->getCameraPosition(rayFrom); - btVector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= m_oldPickingDist; - - newPivotB = rayFrom + dir; - pickCon->setPivotB(newPivotB); - } - } - if (m_pickingMultiBodyPoint2Point) - { - //keep it at the same picking distance - - btVector3 newRayTo = getRayTo(x,y); - btVector3 rayFrom; - // btVector3 oldPivotInB = m_pickingMultiBodyPoint2Point->getPivotInB(); - btVector3 newPivotB; - btVector3 camPos; - m_glApp->m_renderer->getCameraPosition(camPos); - rayFrom = camPos; - btVector3 dir = newRayTo-rayFrom; - dir.normalize(); - dir *= m_oldPickingDist; - - newPivotB = rayFrom + dir; - - m_pickingMultiBodyPoint2Point->setPivotInB(newPivotB); - } - - return false; -} -bool Bullet2MultiBodyDemo::mouseButtonCallback(int button, int state, float x, float y) -{ - - if (state==1) - { - if(button==0)// && (m_data->m_altPressed==0 && m_data->m_controlPressed==0)) - { - btVector3 camPos; - m_glApp->m_renderer->getCameraPosition(camPos); - - btVector3 rayFrom = camPos; - btVector3 rayTo = getRayTo(x,y); - - btCollisionWorld::ClosestRayResultCallback rayCallback(rayFrom,rayTo); - m_dynamicsWorld->rayTest(rayFrom,rayTo,rayCallback); - if (rayCallback.hasHit()) - { - - btVector3 pickPos = rayCallback.m_hitPointWorld; - btRigidBody* body = (btRigidBody*)btRigidBody::upcast(rayCallback.m_collisionObject); - if (body) - { - //other exclusions? - if (!(body->isStaticObject() || body->isKinematicObject())) - { - m_pickedBody = body; - m_pickedBody->setActivationState(DISABLE_DEACTIVATION); - //printf("pickPos=%f,%f,%f\n",pickPos.getX(),pickPos.getY(),pickPos.getZ()); - btVector3 localPivot = body->getCenterOfMassTransform().inverse() * pickPos; - btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*body,localPivot); - m_dynamicsWorld->addConstraint(p2p,true); - m_pickedConstraint = p2p; - btScalar mousePickClamping = 10.f; - p2p->m_setting.m_impulseClamp = mousePickClamping; - //very weak constraint for picking - p2p->m_setting.m_tau = 0.001f; - } - } else - { - btMultiBodyLinkCollider* multiCol = (btMultiBodyLinkCollider*)btMultiBodyLinkCollider::upcast(rayCallback.m_collisionObject); - if (multiCol && multiCol->m_multiBody) - { - - prevCanSleep = multiCol->m_multiBody->getCanSleep(); - multiCol->m_multiBody->setCanSleep(false); - - btVector3 pivotInA = multiCol->m_multiBody->worldPosToLocal(multiCol->m_link, pickPos); - - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(multiCol->m_multiBody,multiCol->m_link,0,pivotInA,pickPos); - //if you add too much energy to the system, causing high angular velocities, simulation 'explodes' - //see also http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=4&t=949 - //so we try to avoid it by clamping the maximum impulse (force) that the mouse pick can apply - //it is not satisfying, hopefully we find a better solution (higher order integrator, using joint friction using a zero-velocity target motor with limited force etc?) - - p2p->setMaxAppliedImpulse(2*scaling); - - btMultiBodyDynamicsWorld* world = (btMultiBodyDynamicsWorld*) m_dynamicsWorld; - world->addMultiBodyConstraint(p2p); - m_pickingMultiBodyPoint2Point =p2p; - } - } - - -// pickObject(pickPos, rayCallback.m_collisionObject); - m_oldPickingPos = rayTo; - m_hitPos = pickPos; - m_oldPickingDist = (pickPos-rayFrom).length(); -// printf("hit !\n"); - //add p2p - } - - } - } else - { - if (button==0) - { - if (m_pickedConstraint) - { - m_dynamicsWorld->removeConstraint(m_pickedConstraint); - delete m_pickedConstraint; - m_pickedConstraint=0; - m_pickedBody = 0; - } - - if (m_pickingMultiBodyPoint2Point) - { - m_pickingMultiBodyPoint2Point->getMultiBodyA()->setCanSleep(prevCanSleep); - btMultiBodyDynamicsWorld* world = (btMultiBodyDynamicsWorld*) m_dynamicsWorld; - world->removeMultiBodyConstraint(m_pickingMultiBodyPoint2Point); - delete m_pickingMultiBodyPoint2Point; - m_pickingMultiBodyPoint2Point = 0; - } - //remove p2p - } - } - - //printf("button=%d, state=%d\n",button,state); - return false; -} - - - - - - - - - - - - - -FeatherstoneDemo1::FeatherstoneDemo1(CommonGraphicsApp* app) -:Bullet2MultiBodyDemo(app) -{ -} -FeatherstoneDemo1::~FeatherstoneDemo1() -{ -} - - - -btMultiBody* FeatherstoneDemo1::createFeatherstoneMultiBody(class btMultiBodyDynamicsWorld* world, const btMultiBodySettings& settings) -{ - int curColor=0; - - - int cubeShapeId = m_glApp->registerCubeShape(1,1,1); - - int n_links = settings.m_numLinks; - float mass = 13.5*scaling; - btVector3 inertia = btVector3 (91,344,253)*scaling*scaling; - - - bool isMultiDof = false; - btMultiBody * bod = new btMultiBody(n_links, mass, inertia, settings.m_isFixedBase, settings.m_canSleep, isMultiDof); -// bod->setHasSelfCollision(false); - - //btQuaternion orn(btVector3(0,0,1),-0.25*SIMD_HALF_PI);//0,0,0,1); - btQuaternion orn(0,0,0,1); - bod->setBasePos(settings.m_basePosition); - bod->setWorldToBaseRot(orn); - btVector3 vel(0,0,0); - bod->setBaseVel(vel); - - { - - btVector3 joint_axis_hinge(1,0,0); - btVector3 joint_axis_prismatic(0,0,1); - btQuaternion parent_to_child = orn.inverse(); - btVector3 joint_axis_child_prismatic = quatRotate(parent_to_child ,joint_axis_prismatic); - btVector3 joint_axis_child_hinge = quatRotate(parent_to_child , joint_axis_hinge); - - int this_link_num = -1; - int link_num_counter = 0; - - - - btVector3 pos = btVector3 (0,0,9.0500002)*scaling; - - btVector3 joint_axis_position = btVector3 (0,0,4.5250001)*scaling; - - for (int i=0;i0) - initial_joint_angle = -0.06f; - - const int child_link_num = link_num_counter++; - - - - if (settings.m_usePrismatic)// && i==(n_links-1)) - { - bod->setupPrismatic(child_link_num, mass, inertia, this_link_num, - parent_to_child, joint_axis_child_prismatic, quatRotate(parent_to_child , pos),btVector3(0,0,0),settings.m_disableParentCollision); - - } else - { - bod->setupRevolute(child_link_num, mass, inertia, this_link_num,parent_to_child, joint_axis_child_hinge, - joint_axis_position,quatRotate(parent_to_child , (pos - joint_axis_position)),settings.m_disableParentCollision); - } - bod->setJointPos(child_link_num, initial_joint_angle); - this_link_num = i; - - if (0)//!useGroundShape && i==4) - { - btVector3 pivotInAworld(0,20,46); - btVector3 pivotInAlocal = bod->worldPosToLocal(i, pivotInAworld); - btVector3 pivotInBworld = pivotInAworld; - btMultiBodyPoint2Point* p2p = new btMultiBodyPoint2Point(bod,i,&btTypedConstraint::getFixedBody(),pivotInAlocal,pivotInBworld); - world->addMultiBodyConstraint(p2p); - } - //add some constraint limit - if (settings.m_usePrismatic) - { - // btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,n_links-1,2,3); - - if (settings.m_createConstraints) - { - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } else - { - if (settings.m_createConstraints) - { - if (1) - { - btMultiBodyJointMotor* con = new btMultiBodyJointMotor(bod,i,0,0,500000); - world->addMultiBodyConstraint(con); - } - - btMultiBodyConstraint* con = new btMultiBodyJointLimitConstraint(bod,i,-1,1); - world->addMultiBodyConstraint(con); - } - - } - } - } - - //add a collider for the base - { - - btAlignedObjectArray world_to_local; - world_to_local.resize(n_links+1); - - btAlignedObjectArray local_origin; - local_origin.resize(n_links+1); - world_to_local[0] = bod->getWorldToBaseRot(); - local_origin[0] = bod->getBasePos(); - //float halfExtents[3]={7.5,0.05,4.5}; - btVector4 halfExtents(7.5,0.45,4.5,1); - { - - // float pos[4]={local_origin[0].x(),local_origin[0].y(),local_origin[0].z(),1}; - float quat[4]={-world_to_local[0].x(),-world_to_local[0].y(),-world_to_local[0].z(),world_to_local[0].w()}; - - - if (1) - { - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - btMultiBodyLinkCollider* col= new btMultiBodyLinkCollider(bod,-1); - - col->setCollisionShape(box); - - btTransform tr; - tr.setIdentity(); - tr.setOrigin(local_origin[0]); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - - btVector4 color = colors[curColor++]; - curColor&=3; - - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),color,halfExtents); - col->setUserIndex(index); - - - - - world->addCollisionObject(col,short(btBroadphaseProxy::DefaultFilter),short(btBroadphaseProxy::AllFilter)); - col->setFriction(friction); - bod->setBaseCollider(col); - - } - } - - - for (int i=0;igetNumLinks();i++) - { - const int parent = bod->getParent(i); - world_to_local[i+1] = bod->getParentToLocalRot(i) * world_to_local[parent+1]; - local_origin[i+1] = local_origin[parent+1] + (quatRotate(world_to_local[i+1].inverse() , bod->getRVector(i))); - } - - - for (int i=0;igetNumLinks();i++) - { - - btVector3 posr = local_origin[i+1]; - //float pos[4]={posr.x(),posr.y(),posr.z(),1}; - - float quat[4]={-world_to_local[i+1].x(),-world_to_local[i+1].y(),-world_to_local[i+1].z(),world_to_local[i+1].w()}; - - btCollisionShape* box = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])*scaling); - btMultiBodyLinkCollider* col = new btMultiBodyLinkCollider(bod,i); - - col->setCollisionShape(box); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(posr); - tr.setRotation(btQuaternion(quat[0],quat[1],quat[2],quat[3])); - col->setWorldTransform(tr); - col->setFriction(friction); - - - btVector4 color = colors[curColor++]; - curColor&=3; - - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),color,halfExtents); - col->setUserIndex(index); - - - - world->addCollisionObject(col,short(btBroadphaseProxy::DefaultFilter),short(btBroadphaseProxy::AllFilter)); - - bod->getLink(i).m_collider=col; - //app->drawBox(halfExtents, pos,quat); - } - - } - world->addMultiBody(bod); - - return bod; -} - -void FeatherstoneDemo1::addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBodyDynamicsWorld *pWorld, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents) -{ -} -void FeatherstoneDemo1::addBoxes_testMultiDof() -{ -} - -void FeatherstoneDemo1::createGround() -{ - //create ground - int cubeShapeId = m_glApp->registerCubeShape(1,1,1); - //float pos[]={0,0,0}; - //float orn[]={0,0,0,1}; - - - { - btVector4 color(0.3,0.3,1,1); - btVector4 halfExtents(50,50,50,1); - btTransform groundTransform; - groundTransform.setIdentity(); - groundTransform.setOrigin(btVector3(0,-50,0)); - btBoxShape* groundShape = new btBoxShape(btVector3(btScalar(halfExtents[0]),btScalar(halfExtents[1]),btScalar(halfExtents[2]))); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: - { - btScalar mass(0.); - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - btVector3 localInertia(0,0,0); - if (isDynamic) - groundShape->calculateLocalInertia(mass,localInertia); - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,groundTransform.getOrigin(),groundTransform.getRotation(),color,halfExtents); - body ->setUserIndex(index); - - //add the body to the dynamics world - m_dynamicsWorld->addRigidBody(body); - } - } -} - -void FeatherstoneDemo1::initPhysics() -{ - - Bullet2MultiBodyDemo::initPhysics(); - - createGround(); - - btMultiBodySettings settings; - settings.m_isFixedBase = false; - settings.m_basePosition.setValue(0,10,0); - settings.m_numLinks = 10; - //btMultiBody* mb = - createFeatherstoneMultiBody(m_dynamicsWorld,settings); - - - m_glApp->m_renderer->writeTransforms(); -} - - - -void FeatherstoneDemo1::exitPhysics() -{ - Bullet2MultiBodyDemo::exitPhysics(); -} - -void FeatherstoneDemo1::renderScene() -{ - //sync graphics -> physics world transforms - { - for (int i=0;igetNumCollisionObjects();i++) - { - btCollisionObject* col = m_dynamicsWorld->getCollisionObjectArray()[i]; - - btVector3 pos = col->getWorldTransform().getOrigin(); - btQuaternion orn = col->getWorldTransform().getRotation(); - int index = col->getUserIndex(); - if (index>=0) - { - m_glApp->m_renderer->writeSingleInstanceTransformToCPU(pos,orn,index); - } - } - m_glApp->m_renderer->writeTransforms(); - } - - m_glApp->m_renderer->renderScene(); -} - -void FeatherstoneDemo1::physicsDebugDraw(int debugDrawFlags) -{ - if (m_dynamicsWorld) - { - if (m_dynamicsWorld->getDebugDrawer()) - m_dynamicsWorld->getDebugDrawer()->setDebugMode(debugDrawFlags); - m_dynamicsWorld->debugDrawWorld(); - } -} - -void FeatherstoneDemo1::stepSimulation(float deltaTime) -{ - m_dynamicsWorld->stepSimulation(deltaTime);//,0); -// CProfileManager::dumpAll(); - /* - for (int i=0;igetDispatcher()->getNumManifolds();i++) - { - btPersistentManifold* contact = m_dynamicsWorld->getDispatcher()->getManifoldByIndexInternal(i); - for (int c=0;cgetNumContacts();c++) - { - btManifoldPoint& pt = contact->getContactPoint(c); - btScalar dist = pt.getDistance(); - if (dist< contact->getContactProcessingThreshold()) - { - printf("normalImpulse[%d.%d] = %f\n",i,c,pt.m_appliedImpulse); - - } else - { - printf("?\n"); - } - } - } - */ -} - - - -FeatherstoneDemo2::FeatherstoneDemo2(CommonGraphicsApp* app) -:FeatherstoneDemo1(app) -{ -} - -FeatherstoneDemo2::~FeatherstoneDemo2() -{ -} - - - -class RagDoll2 -{ - enum - { - BODYPART_PELVIS = 0, - BODYPART_SPINE, - BODYPART_HEAD, - - BODYPART_LEFT_UPPER_LEG, - BODYPART_LEFT_LOWER_LEG, - - BODYPART_RIGHT_UPPER_LEG, - BODYPART_RIGHT_LOWER_LEG, - - BODYPART_LEFT_UPPER_ARM, - BODYPART_LEFT_LOWER_ARM, - - BODYPART_RIGHT_UPPER_ARM, - BODYPART_RIGHT_LOWER_ARM, - - BODYPART_COUNT - }; - - enum - { - JOINT_PELVIS_SPINE = 0, - JOINT_SPINE_HEAD, - - JOINT_LEFT_HIP, - JOINT_LEFT_KNEE, - - JOINT_RIGHT_HIP, - JOINT_RIGHT_KNEE, - - JOINT_LEFT_SHOULDER, - JOINT_LEFT_ELBOW, - - JOINT_RIGHT_SHOULDER, - JOINT_RIGHT_ELBOW, - - JOINT_COUNT - }; - - btDynamicsWorld* m_ownerWorld; - btConvexShape* m_shapes[BODYPART_COUNT]; - btRigidBody* m_bodies[BODYPART_COUNT]; - btTypedConstraint* m_joints[JOINT_COUNT]; - SimpleOpenGL3App* m_app;//used to create graphics shapes - - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btConvexShape* shape, const btVector3& color=btVector3(1,0,0) ) - { - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,shape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - m_ownerWorld->addRigidBody(body); - - - btVector3 scaling(1,1,1); - - btShapeHull* hull = new btShapeHull(shape); - hull->buildHull(0.01); - - { - // int strideInBytes = 9*sizeof(float); - int numVertices = hull->numVertices(); - int numIndices =hull->numIndices(); - - btAlignedObjectArray gvertices; - - for (int i=0;igetVertexPointer()[i]; - vtx.xyzw[0] = pos.x(); - vtx.xyzw[1] = pos.y(); - vtx.xyzw[2] = pos.z(); - vtx.xyzw[3] = 1.f; - pos.normalize(); - vtx.normal[0] =pos.x(); - vtx.normal[1] =pos.y(); - vtx.normal[2] =pos.z(); - vtx.uv[0] = 0.5f; - vtx.uv[1] = 0.5f; - gvertices.push_back(vtx); - } - - btAlignedObjectArray indices; - for (int i=0;igetIndexPointer()[i]); - - int shapeId = m_app->m_instancingRenderer->registerShape(&gvertices[0].xyzw[0],numVertices,&indices[0],numIndices); - - int index = m_app->m_instancingRenderer->registerGraphicsInstance(shapeId,body->getWorldTransform().getOrigin(),body->getWorldTransform().getRotation(),color,scaling); - body ->setUserIndex(index); - } - delete hull; - - - - return body; - } - -public: - RagDoll2 (btDynamicsWorld* ownerWorld, const btVector3& positionOffset,SimpleOpenGL3App* app) - : m_ownerWorld (ownerWorld), - m_app(app) - { - - // Setup the geometry - m_shapes[BODYPART_PELVIS] = new btCapsuleShape(btScalar(0.15), btScalar(0.20)); - m_shapes[BODYPART_SPINE] = new btCapsuleShape(btScalar(0.15), btScalar(0.28)); - m_shapes[BODYPART_HEAD] = new btCapsuleShape(btScalar(0.10), btScalar(0.05)); - m_shapes[BODYPART_LEFT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_LEFT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_RIGHT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_RIGHT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_LEFT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_LEFT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - m_shapes[BODYPART_RIGHT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_RIGHT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - - - // Setup all the rigid bodies - btTransform offset; offset.setIdentity(); - offset.setOrigin(positionOffset); - - btTransform transform; - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.), btScalar(0.))); - //m_bodies[BODYPART_PELVIS] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS], btVector3(0,1,0)); - - // btMultiBody * bod = new btMultiBody(n_links, mass, inertia, settings.m_isFixedBase, settings.m_canSleep); - int n_links = 0; - float mass = 1.f; - btVector3 localInertia; - m_shapes[BODYPART_PELVIS]->calculateLocalInertia(mass,localInertia); - - bool isFixedBase = true; - bool canSleep = true; - bool isMultiDof = false; - btMultiBody * bod = new btMultiBody(n_links, mass, localInertia, isFixedBase, canSleep, isMultiDof); - - btTransform tr; - tr = offset*transform; - - - bod->setBasePos(tr.getOrigin()); - bod->setWorldToBaseRot(tr.getRotation()); - btVector3 vel(0,0,0); - bod->setBaseVel(vel); - -#if 0 - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.2), btScalar(0.))); - m_bodies[BODYPART_SPINE] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE],btVector3(0,0,1)); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.6), btScalar(0.))); - m_bodies[BODYPART_HEAD] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_LEFT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_LEFT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_RIGHT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_RIGHT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); - - // Setup some damping on the m_bodies - for (int i = 0; i < BODYPART_COUNT; ++i) - { - m_bodies[i]->setDamping(0.05, 0.85); - m_bodies[i]->setDeactivationTime(0.8); - m_bodies[i]->setSleepingThresholds(1.6, 2.5); - } -#endif -#if 0 - // Now setup the constraints - btHingeConstraint* hingeC; - btConeTwistConstraint* coneC; - - btTransform localA, localB; - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.15), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_SPINE], localA, localB); - hingeC->setLimit(btScalar(-M_PI_4), btScalar(M_PI_2)); - m_joints[JOINT_PELVIS_SPINE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_PELVIS_SPINE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI_2); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.30), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_HEAD], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, M_PI_2); - m_joints[JOINT_SPINE_HEAD] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_SPINE_HEAD], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,-M_PI_4*5); localA.setOrigin(btVector3(btScalar(-0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,-M_PI_4*5); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_LEFT_UPPER_LEG], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, 0); - m_joints[JOINT_LEFT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_LEG], *m_bodies[BODYPART_LEFT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_LEFT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI_4); localA.setOrigin(btVector3(btScalar(0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_4); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_RIGHT_UPPER_LEG], localA, localB); - coneC->setLimit(M_PI_4, M_PI_4, 0); - m_joints[JOINT_RIGHT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_LEG], *m_bodies[BODYPART_RIGHT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_RIGHT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,M_PI); localA.setOrigin(btVector3(btScalar(-0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_LEFT_UPPER_ARM], localA, localB); - coneC->setLimit(M_PI_2, M_PI_2, 0); - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_joints[JOINT_LEFT_SHOULDER] = coneC; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_ARM], *m_bodies[BODYPART_LEFT_LOWER_ARM], localA, localB); - // hingeC->setLimit(btScalar(-M_PI_2), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_LEFT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_ELBOW], true); - - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,0); localA.setOrigin(btVector3(btScalar(0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,M_PI_2); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_RIGHT_UPPER_ARM], localA, localB); - coneC->setLimit(M_PI_2, M_PI_2, 0); - m_joints[JOINT_RIGHT_SHOULDER] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,M_PI_2,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,M_PI_2,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_ARM], *m_bodies[BODYPART_RIGHT_LOWER_ARM], localA, localB); - // hingeC->setLimit(btScalar(-M_PI_2), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(M_PI_2)); - m_joints[JOINT_RIGHT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_ELBOW], true); -#endif - - } - - virtual ~RagDoll2 () - { - //int i; - /* - // Remove all constraints - for ( i = 0; i < JOINT_COUNT; ++i) - { - m_ownerWorld->removeConstraint(m_joints[i]); - delete m_joints[i]; m_joints[i] = 0; - } - */ - /* - // Remove all bodies and shapes - for ( i = 0; i < BODYPART_COUNT; ++i) - { - m_ownerWorld->removeRigidBody(m_bodies[i]); - - delete m_bodies[i]->getMotionState(); - - delete m_bodies[i]; m_bodies[i] = 0; - delete m_shapes[i]; m_shapes[i] = 0; - } - */ - } -}; - - - -void FeatherstoneDemo2::initPhysics() -{ - Bullet2MultiBodyDemo::initPhysics(); - - createGround(); - -/* btMultiBodySettings settings; - settings.m_isFixedBase = false; - settings.m_basePosition.setValue(0,20,0); - settings.m_numLinks = 3; - settings.m_usePrismatic = true; - btMultiBody* mb = createFeatherstoneMultiBody(m_dynamicsWorld,settings); -*/ -// btVector3 offset(0,2,0); - //RagDoll2* doll = new RagDoll2(m_dynamicsWorld,offset,m_glApp); - - - m_glApp->m_renderer->writeTransforms(); -} - - - - - - diff --git a/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h b/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h deleted file mode 100644 index eb3a6aba7..000000000 --- a/Demos3/bullet2/FeatherstoneMultiBodyDemo/BulletMultiBodyDemos.h +++ /dev/null @@ -1,117 +0,0 @@ - -#ifndef BULLET_MULTI_BODY_DEMOS_H -#define BULLET_MULTI_BODY_DEMOS_H - -#include "LinearMath/btVector3.h" - -#include "Bullet3AppSupport/BulletDemoInterface.h" - -#include "LinearMath/btAlignedObjectArray.h" - -struct btMultiBodySettings -{ - btMultiBodySettings() - { - m_numLinks = 0; - m_basePosition.setZero(); - m_isFixedBase = true; - m_usePrismatic = false; - m_canSleep = true; - m_createConstraints = false; - m_disableParentCollision = false; - } - int m_numLinks; - btVector3 m_basePosition; - bool m_isFixedBase; - bool m_usePrismatic; - bool m_canSleep; - bool m_createConstraints; - bool m_disableParentCollision; -}; - -class Bullet2MultiBodyDemo : public BulletDemoInterface -{ -protected: - - CommonGraphicsApp* m_glApp; - - class btRigidBody* m_pickedBody; - class btTypedConstraint* m_pickedConstraint; - btVector3 m_oldPickingPos; - btVector3 m_hitPos; - btScalar m_oldPickingDist; - - class btMultiBodyPoint2Point* m_pickingMultiBodyPoint2Point; - - class btMultiBodyDynamicsWorld* m_dynamicsWorld; - class btCollisionDispatcher* m_dispatcher; - class btBroadphaseInterface* m_broadphase; - class btCollisionConfiguration* m_collisionConfiguration; - class btMultiBodyConstraintSolver* m_solver; - - btAlignedObjectArray m_collisionShapes; - //btAlignedObjectArray m_linkColliders; - -public: - Bullet2MultiBodyDemo(CommonGraphicsApp* app); - virtual void initPhysics(); - virtual void exitPhysics(); - virtual ~Bullet2MultiBodyDemo(); - btVector3 getRayTo(int x,int y); - virtual bool mouseMoveCallback(float x,float y); - virtual bool mouseButtonCallback(int button, int state, float x, float y); - virtual bool keyboardCallback(int key, int state) - { - return false; - } -}; - -class FeatherstoneDemo1 : public Bullet2MultiBodyDemo -{ - -public: - - FeatherstoneDemo1(CommonGraphicsApp* app); - virtual ~FeatherstoneDemo1(); - - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - return new FeatherstoneDemo1(app); - } - - class btMultiBody* createFeatherstoneMultiBody(class btMultiBodyDynamicsWorld* world, const btMultiBodySettings& settings); - - void addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBodyDynamicsWorld *pWorld, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents); - void addBoxes_testMultiDof(); - - void createGround(); - virtual void initPhysics(); - virtual void exitPhysics(); - virtual void renderScene(); - virtual void physicsDebugDraw(int debugDrawFlags); - - virtual void stepSimulation(float deltaTime); -}; - - -class FeatherstoneDemo2 : public FeatherstoneDemo1 -{ - -public: - - FeatherstoneDemo2(CommonGraphicsApp* app); - virtual ~FeatherstoneDemo2(); - - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - return new FeatherstoneDemo2(app); - } - - virtual void initPhysics(); -}; - - -#endif //BULLET_MULTI_BODY_DEMOS_H - diff --git a/Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h b/Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h deleted file mode 100644 index 24ece22e7..000000000 --- a/Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.h +++ /dev/null @@ -1,34 +0,0 @@ - -#ifndef MULTI_DOF_DEMO_H -#define MULTI_DOF_DEMO_H - -#include "BulletMultiBodyDemos.h" - -class MultiDofDemo : public FeatherstoneDemo1 -{ - -public: - - MultiDofDemo(CommonGraphicsApp* app); - virtual ~MultiDofDemo(); - - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - return new MultiDofDemo(app); - } - - virtual void initPhysics(); - - virtual void stepSimulation(float deltaTime); - - - btMultiBody* createFeatherstoneMultiBody_testMultiDof(class btMultiBodyDynamicsWorld* world, int numLinks, const btVector3& basePosition, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents, bool spherical = false, bool floating = false); - void addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBodyDynamicsWorld *pWorld, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents); - void addBoxes_testMultiDof(); - - -}; - -#endif //MULTI_DOF_DEMO_H - diff --git a/Demos3/bullet2/LuaDemo/LuaDemo.cpp b/Demos3/bullet2/LuaDemo/LuaDemo.cpp deleted file mode 100644 index 584542796..000000000 --- a/Demos3/bullet2/LuaDemo/LuaDemo.cpp +++ /dev/null @@ -1,499 +0,0 @@ -#include "LuaDemo.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btVector3.h" -#include - -#include "BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.h" - -extern "C" { - #include "lua.h" - #include "lualib.h" -#include "lauxlib.h" -} - - -char* sLuaFileName = "init_physics.lua"; - -static const float scaling=0.35f; -static LuaDemo* sLuaDemo = 0; - -static btVector4 colors[4] = -{ - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), -}; - -//todo: allow to create solver, broadphase, multiple worlds etc. -static int createDefaultDynamicsWorld(lua_State *L) -{ - sLuaDemo->m_config = new btDefaultCollisionConfiguration; - sLuaDemo->m_dispatcher = new btCollisionDispatcher(sLuaDemo->m_config); - sLuaDemo->m_bp = new btDbvtBroadphase(); - sLuaDemo->m_solver = new btNNCGConstraintSolver(); - sLuaDemo->m_dynamicsWorld = new btDiscreteDynamicsWorld(sLuaDemo->m_dispatcher,sLuaDemo->m_bp,sLuaDemo->m_solver,sLuaDemo->m_config); - lua_pushlightuserdata (L, sLuaDemo->m_dynamicsWorld); - return 1; -} - - -static int deleteDynamicsWorld(lua_State *L) -{ - return 0; -} - -ATTRIBUTE_ALIGNED16(struct) CustomShapeData -{ - btVector3 m_localScaling; - int m_shapeIndex; - - -}; - - -ATTRIBUTE_ALIGNED16(struct) CustomRigidBodyData -{ - int m_graphicsInstanceIndex; -}; - -static int createCubeShape(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==4) - { - btVector3 halfExtents(1,1,1); - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to createCubeShape should be world"; - return 0; - } - //expect userdata = sLuaDemo->m_dynamicsWorld - halfExtents = btVector3(lua_tonumber(L,2),lua_tonumber(L,3),lua_tonumber(L,4)); - btCollisionShape* colShape = new btBoxShape(halfExtents); - - CustomShapeData* shapeData = new CustomShapeData(); - shapeData->m_shapeIndex = sLuaDemo->m_glApp->registerCubeShape(); - shapeData->m_localScaling = halfExtents; - - colShape->setUserPointer(shapeData); - lua_pushlightuserdata (L, colShape); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createCubeShape, expected 4 (world,halfExtentsX,halfExtentsY,halfExtentsX) but got " << argc; - } - return 0; -} - -static int createSphereShape(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==2) - { - btVector3 halfExtents(1,1,1); - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to createSphereShape should be world"; - return 0; - } - //expect userdata = sLuaDemo->m_dynamicsWorld - btScalar radius = lua_tonumber(L,2); - btCollisionShape* colShape = new btSphereShape(radius); - - CustomShapeData* shapeData = new CustomShapeData(); - shapeData->m_shapeIndex = sLuaDemo->m_glApp->registerGraphicsSphereShape(radius,false,100,0.5); - shapeData->m_localScaling = halfExtents; - - colShape->setUserPointer(shapeData); - lua_pushlightuserdata (L, colShape); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createSphereShape, expected 2 (world,radius) but got " << argc; - } - return 0; -} - -int luaL_returnlen(lua_State* L, int index) -{ - lua_len(L, index); - int len = lua_tointeger(L,-1); - lua_pop(L, 1); - return len; -} - -btVector3 getLuaVectorArg(lua_State* L, int index) -{ - btVector3 pos(0,0,0); - - int sz = luaL_returnlen(L, index); // get size of table - { - lua_rawgeti(L, index, 1); // push t[i] - pos[0] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 2); // push t[i] - pos[1] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 3); // push t[i] - pos[2] = lua_tonumber(L,-1); - lua_pop(L, 1); - } - return pos; -} - -btQuaternion getLuaQuaternionArg(lua_State* L, int index) -{ - btQuaternion orn(0,0,0,1); - - int sz = luaL_returnlen(L, index); // get size of table - { - lua_rawgeti(L, index, 1); // push t[i] - orn[0] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 2); // push t[i] - orn[1] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 3); // push t[i] - orn[2] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 4); // push t[i] - orn[3] = lua_tonumber(L,-1); - lua_pop(L, 1); - } - return orn; -} - - - - -static int createRigidBody (lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==5) - { - - btTransform startTransform; - startTransform.setIdentity(); - - - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to b3CreateRigidbody should be world"; - return 0; - } - btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*) lua_touserdata(L,1); - if (world != sLuaDemo->m_dynamicsWorld) - { - std::cerr << "error: first argument expected to be a world"; - return 0; - } - - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument to b3CreateRigidbody should be world"; - return 0; - } - - btScalar mass = lua_tonumber(L,3); - - luaL_checktype(L,4, LUA_TTABLE); - - btVector3 pos = getLuaVectorArg(L,4); - - btQuaternion orn = getLuaQuaternionArg(L,5); - - btCollisionShape* colShape = (btCollisionShape* )lua_touserdata(L,2); - //expect userdata = sLuaDemo->m_dynamicsWorld - - btVector3 inertia(0,0,0); - if (mass) - { - colShape->calculateLocalInertia(mass,inertia); - } - - - - btRigidBody* body = new btRigidBody(mass,0,colShape,inertia); - body->getWorldTransform().setOrigin(pos); - body->getWorldTransform().setRotation(orn); - - - CustomShapeData* shapeData = (CustomShapeData*)colShape->getUserPointer(); - if (shapeData) - { - CustomRigidBodyData* rbd = new CustomRigidBodyData; - static int curColor = 0; - btVector4 color = colors[curColor]; - curColor++; - curColor&=3; - - CustomShapeData* shapeData = (CustomShapeData*)body->getCollisionShape()->getUserPointer(); - if (shapeData) - { - - rbd ->m_graphicsInstanceIndex = sLuaDemo->m_glApp->m_instancingRenderer->registerGraphicsInstance(shapeData->m_shapeIndex,startTransform.getOrigin(),startTransform.getRotation(),color,shapeData->m_localScaling); - body->setUserPointer(rbd); - } - } - - world->addRigidBody(body); - lua_pushlightuserdata (L, body); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createRigidBody, expected 5 (world,shape,mass,pos,orn) but got " << argc; - } - return 0; -} - -static int setBodyPosition(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==3) - { - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument needs to be a world"; - return 0; - } - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument needs to be a body"; - return 0; - } - btRigidBody* body = (btRigidBody*)lua_touserdata(L,2); - btVector3 pos = getLuaVectorArg(L,3); - - btTransform& tr = body ->getWorldTransform(); - tr.setOrigin(pos); - body->setWorldTransform(tr); - } else - { - std::cerr << "error: setBodyPosition expects 6 arguments like setBodyPosition(world,body,0,1,0)"; - } - return 0; -} - -static int setBodyOrientation(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==3) - { - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument needs to be a world"; - return 0; - } - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument needs to be a body"; - return 0; - } - btRigidBody* body = (btRigidBody*)lua_touserdata(L,2); - btQuaternion orn = getLuaQuaternionArg(L,3); - btTransform& tr = body ->getWorldTransform(); - tr.setRotation(orn); - body->setWorldTransform(tr); - } else - { - std::cerr << "error: setBodyOrientation expects 3 arguments like setBodyOrientation(world,body,orn)"; - } - return 0; -} - -//b3CreateConvexShape(world, points) - -//b3CreateHingeConstraint(world,bodyA,bodyB,...) - - - - - -LuaDemo::LuaDemo(SimpleOpenGL3App* app) -:Bullet2RigidBodyDemo(app) -{ - sLuaDemo = this; -} - -LuaDemo::~LuaDemo() -{ - sLuaDemo = 0; -} - -static void report_errors(lua_State *L, int status) -{ - if ( status!=0 ) { - std::cerr << "-- " << lua_tostring(L, -1) << std::endl; - lua_pop(L, 1); // remove error message - } -} - - -void LuaDemo::initPhysics() -{ - - - const char* prefix[]={"./","./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - FILE* f=0; - int result = 0; - - for (int i=0;!f && iregisterCubeShape(); - float pos[]={0,0,0}; - float orn[]={0,0,0,1}; - - - - - { - float halfExtents[]={scaling,scaling,scaling,1}; - btVector4 colors[4] = - { - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), - }; - - - - btTransform startTransform; - startTransform.setIdentity(); - btScalar mass = 1.f; - btVector3 localInertia; - btBoxShape* colShape = new btBoxShape(btVector3(halfExtents[0],halfExtents[1],halfExtents[2])); - colShape ->calculateLocalInertia(mass,localInertia); - - for (int k=0;k<3;k++) - { - for (int i=0;i<3;i++) - { - for(int j = 0;j<3;j++) - { - - btVector4 color = colors[curColor]; - curColor++; - curColor&=3; - startTransform.setOrigin(btVector3( - btScalar(2.0*scaling*i), - btScalar(2.*scaling+2.0*scaling*k), - btScalar(2.0*scaling*j))); - - m_glApp->m_instancingRenderer->registerGraphicsInstance(cubeShapeId,startTransform.getOrigin(),startTransform.getRotation(),color,halfExtents); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,colShape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - - m_dynamicsWorld->addRigidBody(body); - } - } - } - } -#endif - - m_glApp->m_instancingRenderer->writeTransforms(); -} -void LuaDemo::exitPhysics() -{ - //todo: delete bodies, shapes, constraints - - if (m_dynamicsWorld) - { - delete m_dynamicsWorld; - m_dynamicsWorld=0; - delete m_solver; - m_solver=0; - delete m_bp; - m_bp=0; - delete m_dispatcher; - m_dispatcher=0; - delete m_config; - m_config=0; - } -} -void LuaDemo::renderScene() -{ - //sync graphics -> physics world transforms - if (m_dynamicsWorld) - { - for (int i=0;igetNumCollisionObjects();i++) - { - btVector3 pos = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getOrigin(); - btQuaternion orn = m_dynamicsWorld->getCollisionObjectArray()[i]->getWorldTransform().getRotation(); - if (m_dynamicsWorld->getCollisionObjectArray()[i]->getUserPointer()) - { - CustomRigidBodyData* rbd = (CustomRigidBodyData*)m_dynamicsWorld->getCollisionObjectArray()[i]->getUserPointer(); - - - m_glApp->m_instancingRenderer->writeSingleInstanceTransformToCPU(pos,orn,rbd->m_graphicsInstanceIndex); - } - } - m_glApp->m_instancingRenderer->writeTransforms(); - } - - m_glApp->m_instancingRenderer->renderScene(); -} - - -void LuaDemo::stepSimulation(float dt) -{ - if (m_dynamicsWorld) - m_dynamicsWorld->stepSimulation(dt); -} - - - diff --git a/Demos3/bullet2/LuaDemo/LuaDemo.h b/Demos3/bullet2/LuaDemo/LuaDemo.h deleted file mode 100644 index f3f03d096..000000000 --- a/Demos3/bullet2/LuaDemo/LuaDemo.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef LUA_DEMO_H -#define LUA_DEMO_H - -#include "LinearMath/btVector3.h" -#include "../BasicDemo/Bullet2RigidBodyDemo.h" - - -//We use a struct instead of class, to make it easier to interface with Lua -struct LuaDemo : public Bullet2RigidBodyDemo -{ - -public: - - static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app) - { - return new LuaDemo(app); - } - - LuaDemo(SimpleOpenGL3App* app); - virtual ~LuaDemo(); - - virtual void initPhysics(); - virtual void exitPhysics(); - virtual void renderScene(); - virtual void stepSimulation(float dt); -}; - - -#endif //BASIC_DEMO_H diff --git a/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.cpp b/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.cpp deleted file mode 100644 index 5b3a756e6..000000000 --- a/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.cpp +++ /dev/null @@ -1,474 +0,0 @@ -#include "LuaPhysicsSetup.h" - -#include "OpenGLWindow/SimpleOpenGL3App.h"//?? -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btVector3.h" -#include - -#include "BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.h" - -extern "C" { - #include "lua.h" - #include "lualib.h" -#include "lauxlib.h" -} - - -const char* sLuaFileName = "init_physics.lua"; - -static const float scaling=0.35f; -static LuaPhysicsSetup* sLuaDemo = 0; - -static btVector4 colors[4] = -{ - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), -}; - -LuaPhysicsSetup::LuaPhysicsSetup(struct CommonGraphicsApp* app) -:m_glApp(app), -m_config(0), -m_dispatcher(0), -m_bp(0), -m_solver(0), -m_dynamicsWorld(0) -{ - app->setUpAxis(1); - sLuaDemo = this; -} - -LuaPhysicsSetup::~LuaPhysicsSetup() -{ - sLuaDemo = 0; -} - - - -//todo: allow to create solver, broadphase, multiple worlds etc. -static int gCreateDefaultDynamicsWorld(lua_State *L) -{ - sLuaDemo->m_config = new btDefaultCollisionConfiguration; - sLuaDemo->m_dispatcher = new btCollisionDispatcher(sLuaDemo->m_config); - sLuaDemo->m_bp = new btDbvtBroadphase(); - sLuaDemo->m_solver = new btNNCGConstraintSolver(); - sLuaDemo->m_dynamicsWorld = new btDiscreteDynamicsWorld(sLuaDemo->m_dispatcher,sLuaDemo->m_bp,sLuaDemo->m_solver,sLuaDemo->m_config); - lua_pushlightuserdata (L, sLuaDemo->m_dynamicsWorld); - return 1; -} - - -static int gDeleteDynamicsWorld(lua_State *L) -{ - return 0; -} - -ATTRIBUTE_ALIGNED16(struct) CustomShapeData -{ - btVector3 m_localScaling; - int m_shapeIndex; - - -}; - - -ATTRIBUTE_ALIGNED16(struct) CustomRigidBodyData -{ - int m_graphicsInstanceIndex; -}; - -static int gCreateCubeShape(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==4) - { - btVector3 halfExtents(1,1,1); - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to createCubeShape should be world"; - return 0; - } - //expect userdata = sLuaDemo->m_dynamicsWorld - halfExtents = btVector3(lua_tonumber(L,2),lua_tonumber(L,3),lua_tonumber(L,4)); - btCollisionShape* colShape = new btBoxShape(halfExtents); - - CustomShapeData* shapeData = new CustomShapeData(); - shapeData->m_shapeIndex = sLuaDemo->m_glApp->registerCubeShape(1,1,1); - shapeData->m_localScaling = halfExtents; - - colShape->setUserPointer(shapeData); - lua_pushlightuserdata (L, colShape); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createCubeShape, expected 4 (world,halfExtentsX,halfExtentsY,halfExtentsX) but got " << argc; - } - return 0; -} - -static int gCreateSphereShape(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==2) - { - btVector3 halfExtents(1,1,1); - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to createSphereShape should be world"; - return 0; - } - //expect userdata = sLuaDemo->m_dynamicsWorld - btScalar radius = lua_tonumber(L,2); - btCollisionShape* colShape = new btSphereShape(radius); - - CustomShapeData* shapeData = new CustomShapeData(); - shapeData->m_shapeIndex = sLuaDemo->m_glApp->registerGraphicsSphereShape(radius,false,100,0.5); - shapeData->m_localScaling = halfExtents; - - colShape->setUserPointer(shapeData); - lua_pushlightuserdata (L, colShape); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createSphereShape, expected 2 (world,radius) but got " << argc; - } - return 0; -} - -int luaL_returnlen(lua_State* L, int index) -{ - lua_len(L, index); - int len = lua_tointeger(L,-1); - lua_pop(L, 1); - return len; -} - -btVector3 getLuaVectorArg(lua_State* L, int index) -{ - btVector3 pos(0,0,0); - - int sz = luaL_returnlen(L, index); // get size of table - { - lua_rawgeti(L, index, 1); // push t[i] - pos[0] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 2); // push t[i] - pos[1] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 3); // push t[i] - pos[2] = lua_tonumber(L,-1); - lua_pop(L, 1); - } - return pos; -} - -btQuaternion getLuaQuaternionArg(lua_State* L, int index) -{ - btQuaternion orn(0,0,0,1); - - int sz = luaL_returnlen(L, index); // get size of table - { - lua_rawgeti(L, index, 1); // push t[i] - orn[0] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 2); // push t[i] - orn[1] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 3); // push t[i] - orn[2] = lua_tonumber(L,-1); - lua_pop(L, 1); - lua_rawgeti(L, index, 4); // push t[i] - orn[3] = lua_tonumber(L,-1); - lua_pop(L, 1); - } - return orn; -} - - - - -static int gCreateRigidBody (lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==5) - { - - btTransform startTransform; - startTransform.setIdentity(); - - - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument to b3CreateRigidbody should be world"; - return 0; - } - btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*) lua_touserdata(L,1); - if (world != sLuaDemo->m_dynamicsWorld) - { - std::cerr << "error: first argument expected to be a world"; - return 0; - } - - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument to b3CreateRigidbody should be world"; - return 0; - } - - btScalar mass = lua_tonumber(L,3); - - luaL_checktype(L,4, LUA_TTABLE); - - btVector3 pos = getLuaVectorArg(L,4); - - btQuaternion orn = getLuaQuaternionArg(L,5); - - btCollisionShape* colShape = (btCollisionShape* )lua_touserdata(L,2); - //expect userdata = sLuaDemo->m_dynamicsWorld - - btVector3 inertia(0,0,0); - if (mass) - { - colShape->calculateLocalInertia(mass,inertia); - } - - - - btRigidBody* body = new btRigidBody(mass,0,colShape,inertia); - body->getWorldTransform().setOrigin(pos); - body->getWorldTransform().setRotation(orn); - - - CustomShapeData* shapeData = (CustomShapeData*)colShape->getUserPointer(); - if (shapeData) - { - CustomRigidBodyData* rbd = new CustomRigidBodyData; - static int curColor = 0; - btVector4 color = colors[curColor]; - curColor++; - curColor&=3; - - CustomShapeData* shapeData = (CustomShapeData*)body->getCollisionShape()->getUserPointer(); - if (shapeData) - { - - rbd ->m_graphicsInstanceIndex = sLuaDemo->m_glApp->m_renderer->registerGraphicsInstance(shapeData->m_shapeIndex,startTransform.getOrigin(),startTransform.getRotation(),color,shapeData->m_localScaling); - body->setUserIndex(rbd->m_graphicsInstanceIndex); - } - } - - world->addRigidBody(body); - lua_pushlightuserdata (L, body); - return 1; - } else - { - std::cerr << "Error: invalid number of arguments to createRigidBody, expected 5 (world,shape,mass,pos,orn) but got " << argc; - } - return 0; -} - -static int gSetBodyPosition(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==3) - { - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument needs to be a world"; - return 0; - } - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument needs to be a body"; - return 0; - } - btRigidBody* body = (btRigidBody*)lua_touserdata(L,2); - btVector3 pos = getLuaVectorArg(L,3); - - btTransform& tr = body ->getWorldTransform(); - tr.setOrigin(pos); - body->setWorldTransform(tr); - } else - { - std::cerr << "error: setBodyPosition expects 6 arguments like setBodyPosition(world,body,0,1,0)"; - } - return 0; -} - -static int gSetBodyOrientation(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==3) - { - if (!lua_isuserdata(L,1)) - { - std::cerr << "error: first argument needs to be a world"; - return 0; - } - if (!lua_isuserdata(L,2)) - { - std::cerr << "error: second argument needs to be a body"; - return 0; - } - btRigidBody* body = (btRigidBody*)lua_touserdata(L,2); - btQuaternion orn = getLuaQuaternionArg(L,3); - btTransform& tr = body ->getWorldTransform(); - tr.setRotation(orn); - body->setWorldTransform(tr); - } else - { - std::cerr << "error: setBodyOrientation expects 3 arguments like setBodyOrientation(world,body,orn)"; - } - return 0; -} - -//b3CreateConvexShape(world, points) - -//b3CreateHingeConstraint(world,bodyA,bodyB,...) - -static void report_errors(lua_State *L, int status) -{ - if ( status!=0 ) { - std::cerr << "-- " << lua_tostring(L, -1) << std::endl; - lua_pop(L, 1); // remove error message - } -} - - - -void LuaPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - const char* prefix[]={"./","./data/","../data/","../../data/","../../../data/","../../../../data/"}; - int numPrefixes = sizeof(prefix)/sizeof(const char*); - char relativeFileName[1024]; - FILE* f=0; - int result = 0; - - for (int i=0;!f && im_renderer->writeTransforms(); -} - - -void LuaPhysicsSetup::exitPhysics() -{ - delete m_dynamicsWorld; - m_dynamicsWorld=0; - delete m_dispatcher; - m_dispatcher=0; - delete m_bp; - m_bp=0; - delete m_config; - m_config=0; -} - -void LuaPhysicsSetup::stepSimulation(float deltaTime) -{ - if (m_dynamicsWorld) - m_dynamicsWorld->stepSimulation(deltaTime); - -} - -void LuaPhysicsSetup::debugDraw(int debugDrawFlags) -{ - if (m_dynamicsWorld) - { - if (m_dynamicsWorld->getDebugDrawer()) - { - m_dynamicsWorld->getDebugDrawer()->setDebugMode(debugDrawFlags); - } - m_dynamicsWorld->debugDrawWorld(); - } - -} - -bool LuaPhysicsSetup::pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) -{ -//btAssert(0); -return false; -} -bool LuaPhysicsSetup::movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) -{ -//btAssert(0); -return false; - -} -void LuaPhysicsSetup::removePickingConstraint() -{ -//btAssert(0); - -} - -void LuaPhysicsSetup::syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) -{ - int numCollisionObjects = m_dynamicsWorld->getNumCollisionObjects(); - for (int i = 0; igetCollisionObjectArray()[i]; - btVector3 pos = colObj->getWorldTransform().getOrigin(); - btQuaternion orn = colObj->getWorldTransform().getRotation(); - int index = colObj->getUserIndex(); - if (index >= 0) - { - m_glApp->m_renderer->writeSingleInstanceTransformToCPU(pos, orn, index); - } - } - m_glApp->m_renderer->writeTransforms(); -} - -btRigidBody* LuaPhysicsSetup::createRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape, const btVector4& color) -{ -btAssert(0); -return 0; - -} - -btBoxShape* LuaPhysicsSetup::createBoxShape(const btVector3& halfExtents) -{ -btAssert(0); -return 0; -} diff --git a/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.h b/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.h deleted file mode 100644 index 6bf152d1d..000000000 --- a/Demos3/bullet2/LuaDemo/LuaPhysicsSetup.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef _LUA_PHYSICS_SETUP_H -#define _LUA_PHYSICS_SETUP_H - -#include "Bullet3AppSupport/CommonPhysicsSetup.h" - -//we don't derive from CommonRigidBodySetup because we -//create and own our own dynamics world (one or more) -//at run-time -struct LuaPhysicsSetup : public CommonPhysicsSetup -{ - - LuaPhysicsSetup(struct CommonGraphicsApp* app); - virtual ~LuaPhysicsSetup(); - - class btDefaultCollisionConfiguration* m_config; - class btCollisionDispatcher* m_dispatcher; - class btDbvtBroadphase* m_bp; - class btNNCGConstraintSolver* m_solver; - class btDiscreteDynamicsWorld* m_dynamicsWorld; - struct CommonGraphicsApp* m_glApp; - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void exitPhysics(); - - virtual void stepSimulation(float deltaTime); - - virtual void debugDraw(int debugDrawFlags); - - virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld); - virtual void removePickingConstraint(); - - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge); - - virtual btRigidBody* createRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape, const btVector4& color=btVector4(1,0,0,1)); - - virtual btBoxShape* createBoxShape(const btVector3& halfExtents); - -}; - - -#endif //_LUA_PHYSICS_SETUP_H diff --git a/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.cpp b/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.cpp deleted file mode 100644 index 7cb6eb744..000000000 --- a/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.cpp +++ /dev/null @@ -1,234 +0,0 @@ -//test addJointTorque -#include "MultiBodyVehicle.h" - -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "BulletDynamics/Featherstone/btMultiBody.h" -#include "BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h" -#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" -#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -#include "BulletDynamics/Featherstone/btMultiBodyLink.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h" -#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" -#include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" -#include "BulletCollision/CollisionShapes/btBoxShape.h" - -btScalar gVehicleBaseMass = 100.f; -btScalar gVehicleWheelMass = 5.f; -float friction = 1.f; -btVector3 gVehicleBaseHalfExtents(1, 0.1, 2); -btVector3 gVehicleWheelHalfExtents(0.2, 0.2, 0.2); - -btVector3 gVehicleWheelOffset(0, 0, 0.5); -btVector3 wheelAttachmentPosInWorld[4] = { - btVector3(1, 0, 2.), - btVector3(-1, 0, 2.), - btVector3(1, 0, -2.), - btVector3(-1, 0, -2.) -}; - - -MultiBodyVehicleSetup::MultiBodyVehicleSetup() -{ -} - -MultiBodyVehicleSetup::~MultiBodyVehicleSetup() -{ - -} - - - -class btMultiBody* MultiBodyVehicleSetup::createMultiBodyVehicle() -{ - class btMultiBodyDynamicsWorld* world = m_dynamicsWorld; - int numWheels = 4; - - int totalLinks = numWheels;//number of body parts (links) (in)directly attached to the base, NOT including the base/root itself - - btCollisionShape* chassis = new btBoxShape(gVehicleBaseHalfExtents);//CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS)); - m_collisionShapes.push_back(chassis); - btCollisionShape* wheel = new btCylinderShapeX(gVehicleWheelHalfExtents);//CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS)); - m_collisionShapes.push_back(wheel); - - - btVector3 baseLocalInertia(0, 0, 0); - chassis->calculateLocalInertia(gVehicleBaseMass, baseLocalInertia); - - bool multiDof = false; - bool isFixedBase = false; - bool canSleep = false; - - btMultiBody * bod = new btMultiBody(totalLinks, gVehicleBaseMass, baseLocalInertia, isFixedBase, canSleep);// , multiDof); - bod->setHasSelfCollision(false); - - btQuaternion baseOrn(0, 0, 0, 1); - btVector3 basePos(0, 0, 0); - bod->setBasePos(basePos); - - bod->setWorldToBaseRot(baseOrn); - btVector3 vel(0, 0, 0); - bod->setBaseVel(vel); - - { - - - - - int linkNum = 0; - - - btVector3 wheelJointAxisWorld(1, 0, 0); - btQuaternion parent_to_child = baseOrn.inverse();//?? - for (int j = 0; j < numWheels; j++, linkNum++) - { - int parent_link_num = -1; - - float initial_joint_angle = 0.0; - - btVector3 localWheelInertia(0, 0, 0); - wheel->calculateLocalInertia(gVehicleWheelMass, localWheelInertia); - bool disableParentCollision = true; - btVector3 pivotToChildCOM(0, 0, 0.25); - btVector3 pivotToWheelCOM(0, 0, 0); - { - bod->setupRevolute(linkNum, gVehicleWheelMass, localWheelInertia, parent_link_num, parent_to_child, wheelJointAxisWorld, - wheelAttachmentPosInWorld[j], pivotToWheelCOM, disableParentCollision); - } - bod->setJointPos(linkNum, initial_joint_angle); - - if (j<2) -{ - btMultiBodyJointMotor* con = new btMultiBodyJointMotor(bod, linkNum, 1., 50); - world->addMultiBodyConstraint(con); -} - } - - - } - - //add a collider for the base - { - - btAlignedObjectArray world_to_local; - world_to_local.resize(totalLinks + 1); - - btAlignedObjectArray local_origin; - local_origin.resize(totalLinks + 1); - world_to_local[0] = bod->getWorldToBaseRot(); - local_origin[0] = bod->getBasePos(); - { - - float pos[4] = { local_origin[0].x(), local_origin[0].y(), local_origin[0].z(), 1 }; - float quat[4] = { -world_to_local[0].x(), -world_to_local[0].y(), -world_to_local[0].z(), world_to_local[0].w() }; - - - if (1) - { - - btMultiBodyLinkCollider* col = new btMultiBodyLinkCollider(bod, -1); - col->setCollisionShape(chassis); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(local_origin[0]); - tr.setRotation(btQuaternion(quat[0], quat[1], quat[2], quat[3])); - col->setWorldTransform(tr); - world->addCollisionObject(col, btBroadphaseProxy::DefaultFilter, btBroadphaseProxy::AllFilter);// 2, 1 + 2); - col->setFriction(friction); - bod->setBaseCollider(col); - } - } - - //initialize local coordinate frames, relative to parent - for (int i = 0; igetNumLinks(); i++) - { - const int parent = bod->getParent(i); - world_to_local[i + 1] = bod->getParentToLocalRot(i) * world_to_local[parent + 1]; - local_origin[i + 1] = local_origin[parent + 1] + (quatRotate(world_to_local[i + 1].inverse(), bod->getRVector(i))); - } - - int linkIndex = 0; - - - - for (int j = 0; jsetCollisionShape(wheel); - btTransform tr; - tr.setIdentity(); - tr.setOrigin(posr); - tr.setRotation(btQuaternion(quat[0], quat[1], quat[2], quat[3])); - col->setWorldTransform(tr); - col->setFriction(friction); - world->addCollisionObject(col, btBroadphaseProxy::DefaultFilter, btBroadphaseProxy::AllFilter);// 2, 1 + 2); - bod->getLink(linkIndex).m_collider = col; - } - } - - - world->addMultiBody(bod); -// world->setGravity(btVector3(0,0,0)); - - return bod; -} - - -void MultiBodyVehicleSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) -{ - int upAxis = 1; - - btVector4 colors[4] = - { - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - btVector4(1,1,0,1), - }; - int curColor = 0; - - - - gfxBridge.setUpAxis(upAxis); - - this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode( - //btIDebugDraw::DBG_DrawConstraints - +btIDebugDraw::DBG_DrawWireframe - +btIDebugDraw::DBG_DrawContactPoints - +btIDebugDraw::DBG_DrawAabb - );//+btIDebugDraw::DBG_DrawConstraintLimits); - - - createMultiBodyVehicle(); - - if (1) - { - btVector3 groundHalfExtents(20,20,20); - groundHalfExtents[upAxis]=1.f; - btBoxShape* box = new btBoxShape(groundHalfExtents); - box->initializePolyhedralFeatures(); - - - btTransform start; start.setIdentity(); - btVector3 groundOrigin(0,0,0); - groundOrigin[upAxis]=-1.5; - start.setOrigin(groundOrigin); - btRigidBody* body = createRigidBody(0,start,box); - - } - - gfxBridge.autogenerateGraphicsObjects(m_dynamicsWorld); -} - -void MultiBodyVehicleSetup::stepSimulation(float deltaTime) -{ - m_dynamicsWorld->stepSimulation(deltaTime); -} - diff --git a/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.h b/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.h deleted file mode 100644 index 115160c68..000000000 --- a/Demos3/bullet2/MultiBodyDemo/MultiBodyVehicle.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef TEST_MULTIBODY_VEHICLE_SETUP_H -#define TEST_MULTIBODY_VEHICLE_SETUP_H - -#include "Bullet3AppSupport/CommonMultiBodySetup.h" - -struct MultiBodyVehicleSetup : public CommonMultiBodySetup -{ - btMultiBody* m_multiBody; - -public: - - MultiBodyVehicleSetup(); - virtual ~MultiBodyVehicleSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void stepSimulation(float deltaTime); - - class btMultiBody* createMultiBodyVehicle(); - - -}; -#endif //TEST_MULTIBODY_VEHICLE_SETUP_H - diff --git a/Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.h b/Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.h deleted file mode 100644 index 23a635d80..000000000 --- a/Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef TEST_JOINT_TORQUE_SETUP_H -#define TEST_JOINT_TORQUE_SETUP_H - -#include "Bullet3AppSupport/CommonMultiBodySetup.h" - -struct TestJointTorqueSetup : public CommonMultiBodySetup -{ - btMultiBody* m_multiBody; - -public: - - TestJointTorqueSetup(); - virtual ~TestJointTorqueSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); - - virtual void stepSimulation(float deltaTime); - -}; -#endif //TEST_JOINT_TORQUE_SETUP_H - diff --git a/Demos3/bullet2/RagdollDemo/RagdollDemo.cpp b/Demos3/bullet2/RagdollDemo/RagdollDemo.cpp deleted file mode 100644 index 155d84dd4..000000000 --- a/Demos3/bullet2/RagdollDemo/RagdollDemo.cpp +++ /dev/null @@ -1,366 +0,0 @@ -#include "btBulletDynamicsCommon.h" -#include "RagdollDemo.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "BulletCollision/CollisionShapes/btShapeHull.h" - -#define CONSTRAINT_DEBUG_SIZE 0.2f - -struct GraphicsVertex -{ - float pos[4]; - float normal[3]; - float texcoord[2]; -}; - -class RagDoll -{ - enum - { - BODYPART_PELVIS = 0, - BODYPART_SPINE, - BODYPART_HEAD, - - BODYPART_LEFT_UPPER_LEG, - BODYPART_LEFT_LOWER_LEG, - - BODYPART_RIGHT_UPPER_LEG, - BODYPART_RIGHT_LOWER_LEG, - - BODYPART_LEFT_UPPER_ARM, - BODYPART_LEFT_LOWER_ARM, - - BODYPART_RIGHT_UPPER_ARM, - BODYPART_RIGHT_LOWER_ARM, - - BODYPART_COUNT - }; - - enum - { - JOINT_PELVIS_SPINE = 0, - JOINT_SPINE_HEAD, - - JOINT_LEFT_HIP, - JOINT_LEFT_KNEE, - - JOINT_RIGHT_HIP, - JOINT_RIGHT_KNEE, - - JOINT_LEFT_SHOULDER, - JOINT_LEFT_ELBOW, - - JOINT_RIGHT_SHOULDER, - JOINT_RIGHT_ELBOW, - - JOINT_COUNT - }; - - btDynamicsWorld* m_ownerWorld; - btConvexShape* m_shapes[BODYPART_COUNT]; - btRigidBody* m_bodies[BODYPART_COUNT]; - btTypedConstraint* m_joints[JOINT_COUNT]; - SimpleOpenGL3App* m_app;//used to create graphics shapes - - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btConvexShape* shape) - { - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); - - btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,shape,localInertia); - btRigidBody* body = new btRigidBody(rbInfo); - - m_ownerWorld->addRigidBody(body); - - btVector3 color(1,0,0); - btVector3 scaling(1,1,1); - - btShapeHull* hull = new btShapeHull(shape); - hull->buildHull(0.01); - - { - int strideInBytes = 9*sizeof(float); - int numVertices = hull->numVertices(); - int numIndices =hull->numIndices(); - - btAlignedObjectArray gvertices; - - for (int i=0;igetVertexPointer()[i]; - vtx.pos[0] = pos.x(); - vtx.pos[1] = pos.y(); - vtx.pos[2] = pos.z(); - vtx.pos[3] = 1.f; - pos.normalize(); - vtx.normal[0] =pos.x(); - vtx.normal[1] =pos.y(); - vtx.normal[2] =pos.z(); - vtx.texcoord[0] = 0.5f; - vtx.texcoord[1] = 0.5f; - gvertices.push_back(vtx); - } - - btAlignedObjectArray indices; - for (int i=0;igetIndexPointer()[i]); - - int shapeId = m_app->m_instancingRenderer->registerShape(&gvertices[0].pos[0],numVertices,&indices[0],numIndices); - - m_app->m_instancingRenderer->registerGraphicsInstance(shapeId,body->getWorldTransform().getOrigin(),body->getWorldTransform().getRotation(),color,scaling); - - } - delete hull; - - - - return body; - } - -public: - RagDoll (btDynamicsWorld* ownerWorld, const btVector3& positionOffset,SimpleOpenGL3App* app) - : m_ownerWorld (ownerWorld), - m_app(app) - { - // Setup the geometry - m_shapes[BODYPART_PELVIS] = new btCapsuleShape(btScalar(0.15), btScalar(0.20)); - m_shapes[BODYPART_SPINE] = new btCapsuleShape(btScalar(0.15), btScalar(0.28)); - m_shapes[BODYPART_HEAD] = new btCapsuleShape(btScalar(0.10), btScalar(0.05)); - m_shapes[BODYPART_LEFT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_LEFT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_RIGHT_UPPER_LEG] = new btCapsuleShape(btScalar(0.07), btScalar(0.45)); - m_shapes[BODYPART_RIGHT_LOWER_LEG] = new btCapsuleShape(btScalar(0.05), btScalar(0.37)); - m_shapes[BODYPART_LEFT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_LEFT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - m_shapes[BODYPART_RIGHT_UPPER_ARM] = new btCapsuleShape(btScalar(0.05), btScalar(0.33)); - m_shapes[BODYPART_RIGHT_LOWER_ARM] = new btCapsuleShape(btScalar(0.04), btScalar(0.25)); - - // Setup all the rigid bodies - btTransform offset; offset.setIdentity(); - offset.setOrigin(positionOffset); - - btTransform transform; - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.), btScalar(0.))); - m_bodies[BODYPART_PELVIS] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.2), btScalar(0.))); - m_bodies[BODYPART_SPINE] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.), btScalar(1.6), btScalar(0.))); - m_bodies[BODYPART_HEAD] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_LEFT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_LEFT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_RIGHT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_RIGHT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); - m_bodies[BODYPART_LEFT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(-0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); - m_bodies[BODYPART_LEFT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.35), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-SIMD_HALF_PI); - m_bodies[BODYPART_RIGHT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); - - transform.setIdentity(); - transform.setOrigin(btVector3(btScalar(0.7), btScalar(1.45), btScalar(0.))); - transform.getBasis().setEulerZYX(0,0,-SIMD_HALF_PI); - m_bodies[BODYPART_RIGHT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); - - // Setup some damping on the m_bodies - for (int i = 0; i < BODYPART_COUNT; ++i) - { - m_bodies[i]->setDamping(0.05, 0.85); - m_bodies[i]->setDeactivationTime(0.8); - m_bodies[i]->setSleepingThresholds(1.6, 2.5); - } - - // Now setup the constraints - btHingeConstraint* hingeC; - btConeTwistConstraint* coneC; - - btTransform localA, localB; - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.15), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_SPINE], localA, localB); - hingeC->setLimit(btScalar(-0.5f*SIMD_HALF_PI), btScalar(SIMD_HALF_PI)); - m_joints[JOINT_PELVIS_SPINE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_PELVIS_SPINE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.30), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_HEAD], localA, localB); - coneC->setLimit(0.5f*SIMD_HALF_PI, 0.5f*SIMD_HALF_PI, SIMD_HALF_PI); - m_joints[JOINT_SPINE_HEAD] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_SPINE_HEAD], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,-0.5f*SIMD_HALF_PI*5); localA.setOrigin(btVector3(btScalar(-0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,-0.5f*SIMD_HALF_PI*5); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_LEFT_UPPER_LEG], localA, localB); - coneC->setLimit(0.5f*SIMD_HALF_PI, 0.5f*SIMD_HALF_PI, 0); - m_joints[JOINT_LEFT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_LEG], *m_bodies[BODYPART_LEFT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(SIMD_HALF_PI)); - m_joints[JOINT_LEFT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,0.5f*SIMD_HALF_PI); localA.setOrigin(btVector3(btScalar(0.18), btScalar(-0.10), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,0.5f*SIMD_HALF_PI); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.225), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_PELVIS], *m_bodies[BODYPART_RIGHT_UPPER_LEG], localA, localB); - coneC->setLimit(0.5f*SIMD_HALF_PI, 0.5f*SIMD_HALF_PI, 0); - m_joints[JOINT_RIGHT_HIP] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_HIP], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(-0.225), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(0.185), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_LEG], *m_bodies[BODYPART_RIGHT_LOWER_LEG], localA, localB); - hingeC->setLimit(btScalar(0), btScalar(SIMD_HALF_PI)); - m_joints[JOINT_RIGHT_KNEE] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_KNEE], true); - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,SIMD_PI); localA.setOrigin(btVector3(btScalar(-0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_LEFT_UPPER_ARM], localA, localB); - coneC->setLimit(SIMD_HALF_PI, SIMD_HALF_PI, 0); - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_joints[JOINT_LEFT_SHOULDER] = coneC; - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_LEFT_UPPER_ARM], *m_bodies[BODYPART_LEFT_LOWER_ARM], localA, localB); -// hingeC->setLimit(btScalar(-SIMD_HALF_PI), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(SIMD_HALF_PI)); - m_joints[JOINT_LEFT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_LEFT_ELBOW], true); - - - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,0,0); localA.setOrigin(btVector3(btScalar(0.2), btScalar(0.15), btScalar(0.))); - localB.getBasis().setEulerZYX(0,0,SIMD_HALF_PI); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.18), btScalar(0.))); - coneC = new btConeTwistConstraint(*m_bodies[BODYPART_SPINE], *m_bodies[BODYPART_RIGHT_UPPER_ARM], localA, localB); - coneC->setLimit(SIMD_HALF_PI, SIMD_HALF_PI, 0); - m_joints[JOINT_RIGHT_SHOULDER] = coneC; - coneC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_SHOULDER], true); - - localA.setIdentity(); localB.setIdentity(); - localA.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localA.setOrigin(btVector3(btScalar(0.), btScalar(0.18), btScalar(0.))); - localB.getBasis().setEulerZYX(0,SIMD_HALF_PI,0); localB.setOrigin(btVector3(btScalar(0.), btScalar(-0.14), btScalar(0.))); - hingeC = new btHingeConstraint(*m_bodies[BODYPART_RIGHT_UPPER_ARM], *m_bodies[BODYPART_RIGHT_LOWER_ARM], localA, localB); -// hingeC->setLimit(btScalar(-SIMD_HALF_PI), btScalar(0)); - hingeC->setLimit(btScalar(0), btScalar(SIMD_HALF_PI)); - m_joints[JOINT_RIGHT_ELBOW] = hingeC; - hingeC->setDbgDrawSize(CONSTRAINT_DEBUG_SIZE); - - m_ownerWorld->addConstraint(m_joints[JOINT_RIGHT_ELBOW], true); - } - - virtual ~RagDoll () - { - int i; - - // Remove all constraints - for ( i = 0; i < JOINT_COUNT; ++i) - { - m_ownerWorld->removeConstraint(m_joints[i]); - delete m_joints[i]; m_joints[i] = 0; - } - - // Remove all bodies and shapes - for ( i = 0; i < BODYPART_COUNT; ++i) - { - m_ownerWorld->removeRigidBody(m_bodies[i]); - - delete m_bodies[i]->getMotionState(); - - delete m_bodies[i]; m_bodies[i] = 0; - delete m_shapes[i]; m_shapes[i] = 0; - } - } -}; - - - - - -void RagDollDemo::initPhysics() -{ - Bullet2RigidBodyDemo::initPhysics(); - int cubeShapeId = m_glApp->registerCubeShape(); - - createGround(cubeShapeId); - - btVector3 offset(0,3,0); - - RagDoll* doll = new RagDoll(this->m_dynamicsWorld,offset,m_glApp); - offset.setValue(0,6,0); - doll = new RagDoll(this->m_dynamicsWorld,offset,m_glApp); - - m_glApp->m_instancingRenderer->writeTransforms(); - -} - - - diff --git a/Demos3/bullet2/RagdollDemo/RagdollDemo.h b/Demos3/bullet2/RagdollDemo/RagdollDemo.h deleted file mode 100644 index 6f5325ece..000000000 --- a/Demos3/bullet2/RagdollDemo/RagdollDemo.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef RAGDOLL_DEMO_H -#define RAGDOLL_DEMO_H - - -#include "Bullet3AppSupport/CommonRigidBodySetup.h" -#include "../BasicDemo/BasicDemo.h" - -struct BulletDemoInterface; -struct CommonGraphicsApp; - -class RagDollSetup : public CommonRigidBodySetup -{ -public: - - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - CommonPhysicsSetup* physicsSetup = new RagDollSetup(); - return new BasicDemo(app, physicsSetup); - - } - - void initPhysics(GraphicsPhysicsBridge& gfxBridge); - -}; - -#endif //RAGDOLL_DEMO_H - diff --git a/Demos3/premake4.lua b/Demos3/premake4.lua deleted file mode 100644 index 087ad9ac0..000000000 --- a/Demos3/premake4.lua +++ /dev/null @@ -1,139 +0,0 @@ - - - -function createDemos( demos, incdirs, linknames) - for _, name in ipairs(demos) do - - project ( "App_" .. name ) - - kind "ConsoleApp" - targetdir ".." - - includedirs {incdirs} - - configuration { "Windows" } - defines { "GLEW_STATIC"} - links { "opengl32","glu32","gdi32","winmm", "user32" } - includedirs{ "../ObsoleteDemos/Glut" } - libdirs {"../ObsoleteDemos/Glut"} - files { "../build3/bullet.rc" } - - configuration {"Windows", "x32"} - links {"glew32s","glut32"} - configuration {"Windows", "x64"} - links {"glew64s", "glut64"} - - configuration {"MacOSX"} - --print "hello" - linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" } - - configuration {"not Windows", "not MacOSX"} - links {"GL","GLU","glut"} - configuration{} - - links { - linknames - } - - files { - "./" .. name .. "/*.cpp" , - "./" .. name .. "/*.h" - } - end -end - - -function createGpuDemos( demos, incdirs, linknames, vendor) - - hasCL = findOpenCL(vendor) - - if (hasCL) then - - for _, name in ipairs(demos) do - - project ( "App_" .. name .. "_" .. vendor) - - initOpenCL(vendor) - - kind "ConsoleApp" - targetdir "../bin" - - links {"Bullet3OpenCL_" .. vendor } - - includedirs {incdirs} - - configuration { "Windows" } - defines { "GLEW_STATIC"} - links { "opengl32" ,"glu32","gdi32","winmm", "user32"} - includedirs{ "../ObsoleteDemos/Glut" } - libdirs {"../ObsoleteDemos/Glut"} - files { "../build3/bullet.rc" } - - configuration {"Windows", "x32"} - links {"glew32s","glut32"} - configuration {"Windows", "x64"} - links {"glew64s", "glut64"} - - configuration {"MacOSX"} - --print "hello" - linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" } - - configuration {"not Windows", "not MacOSX"} - links {"GL","GLU","glut"} - configuration{} - - links { - linknames - } - - files { - "./" .. name .. "/*.cpp" , - "./" .. name .. "/*.h" - } - end - end -end - --- "CharacterDemo", fixme: it includes BspDemo files - - local localdemos = { - "BasicDemo", - } - - local localgpudemos = { - "BasicGpuDemo", - } - --- the following demos require custom include or link settings - --- createDemos({"HelloWorld"},{"../src"},{"BulletDynamics","BulletCollision","LinearMath"}) - - createDemos(localdemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport","BulletDynamics", "BulletCollision", "LinearMath"}) - createGpuDemos(localgpudemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport", - "Bullet3Dynamics","Bullet3Collision","Bullet3Geometry","Bullet3Common", - "BulletDynamics", "BulletCollision", "LinearMath"}, - "NVIDIA") - -createGpuDemos(localgpudemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport", - "Bullet3Dynamics","Bullet3Collision","Bullet3Geometry","Bullet3Common", - "BulletDynamics", "BulletCollision", "LinearMath"}, - "clew") - -createGpuDemos(localgpudemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport", - "Bullet3Dynamics","Bullet3Collision","Bullet3Geometry","Bullet3Common", - "BulletDynamics", "BulletCollision", "LinearMath"}, - "AMD") - -createGpuDemos(localgpudemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport", - "Bullet3Dynamics","Bullet3Collision","Bullet3Geometry","Bullet3Common", - "BulletDynamics", "BulletCollision", "LinearMath"}, - "Intel") - -createGpuDemos(localgpudemos,{"../src","../ObsoleteDemos/OpenGL"},{"OpenGLSupport", - "Bullet3Dynamics","Bullet3Collision","Bullet3Geometry","Bullet3Common", - "BulletDynamics", "BulletCollision", "LinearMath"}, - "Apple") - -include "../ObsoleteDemos/OpenGL" - - diff --git a/btgui/MultiThreading/b3ThreadSupportInterface.cpp b/LICENSE.txt similarity index 81% rename from btgui/MultiThreading/b3ThreadSupportInterface.cpp rename to LICENSE.txt index 430242113..319c84e34 100644 --- a/btgui/MultiThreading/b3ThreadSupportInterface.cpp +++ b/LICENSE.txt @@ -1,22 +1,15 @@ -/* + +The files in this repository are licensed under the zlib license, except for the files under 'Extras' and examples/ThirdPartyLibs. + Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com +http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. -*/ - -#include "b3ThreadSupportInterface.h" - -b3ThreadSupportInterface::~b3ThreadSupportInterface() -{ - -} - diff --git a/README.md b/README.md index fa7785387..02063ec79 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,12 @@ You can still use svn or svn externals using the github git repository: use svn A C++ compiler for C++ 2003. The library is tested on Windows, Linux, Mac OSX, iOS, Android, but should likely work on any platform with C++ compiler. -SOme optional demos require OpenGL 2 or OpenGL 3, there are some non-graphical demos and unit tests too. +Some optional demos require OpenGL 2 or OpenGL 3, there are some non-graphical demos and unit tests too. + +## Contributors and Coding Style information + +https://docs.google.com/document/d/1u9vyzPtrVoVhYqQOGNWUgjRbfwfCdIts_NzmvgiJ144/edit + ## Requirements for Bullet 3 diff --git a/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.cpp b/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.cpp deleted file mode 100644 index 33d25ed03..000000000 --- a/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.cpp +++ /dev/null @@ -1,444 +0,0 @@ -#include "Bullet2RigidBodyDemo.h" -#include "btBulletDynamicsCommon.h" - -#include "OpenGLWindow/CommonGraphicsApp.h" -#include "OpenGLWindow/CommonRenderInterface.h" -#include "Bullet3Common/b3Scalar.h" - -#include "BulletCollision/CollisionShapes/btShapeHull.h"//to create a tesselation of a generic btConvexShape -#include "MyDebugDrawer.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" - -static btVector4 sColors[4] = -{ - btVector4(0.3,0.3,1,1), - btVector4(1,0,0,1), - btVector4(0,1,0,1), - btVector4(0,1,1,1), - //btVector4(1,1,0,1), -}; - - - -struct MyGraphicsPhysicsBridge : public GraphicsPhysicsBridge -{ - CommonGraphicsApp* m_glApp; - MyDebugDrawer* m_debugDraw; - int m_curColor; - - MyGraphicsPhysicsBridge(CommonGraphicsApp* glApp) - :m_glApp(glApp), m_debugDraw(0), m_curColor(0) - { - } - - virtual struct CommonRenderInterface* getRenderInterface() - { - return m_glApp->m_renderer; - } - - virtual void createRigidBodyGraphicsObject(btRigidBody* body, const btVector3& color) - { - createCollisionObjectGraphicsObject(body,color); - } - virtual void createCollisionObjectGraphicsObject(btCollisionObject* body, const btVector3& color) - { - btCollisionShape* shape = body->getCollisionShape(); - btTransform startTransform = body->getWorldTransform(); - int graphicsShapeId = shape->getUserIndex(); - if (graphicsShapeId>=0) - { - // btAssert(graphicsShapeId >= 0); - btVector3 localScaling = shape->getLocalScaling(); - int graphicsInstanceId = m_glApp->m_renderer->registerGraphicsInstance(graphicsShapeId, startTransform.getOrigin(), startTransform.getRotation(), color, localScaling); - body->setUserIndex(graphicsInstanceId); - } - } - - virtual int registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices) - { - int shapeId = m_glApp->m_renderer->registerShape(vertices, numvertices,indices,numIndices); - return shapeId; - } - - virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) - { - return m_glApp->m_renderer->registerGraphicsInstance(shapeIndex,position,quaternion,color,scaling); - } - - virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape, const btTransform& parentTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut) - { - //todo: support all collision shape types - switch (collisionShape->getShapeType()) - { - case STATIC_PLANE_PROXYTYPE: - { - //draw a box, oriented along the plane normal - const btStaticPlaneShape* staticPlaneShape = static_cast(collisionShape); - btScalar planeConst = staticPlaneShape->getPlaneConstant(); - const btVector3& planeNormal = staticPlaneShape->getPlaneNormal(); - btVector3 planeOrigin = planeNormal * planeConst; - btVector3 vec0,vec1; - btPlaneSpace1(planeNormal,vec0,vec1); - btScalar vecLen = 100.f; - btVector3 verts[4]; - - verts[0] = planeOrigin + vec0*vecLen + vec1*vecLen; - verts[1] = planeOrigin - vec0*vecLen + vec1*vecLen; - verts[2] = planeOrigin - vec0*vecLen - vec1*vecLen; - verts[3] = planeOrigin + vec0*vecLen - vec1*vecLen; - - int startIndex = verticesOut.size(); - indicesOut.push_back(startIndex+0); - indicesOut.push_back(startIndex+1); - indicesOut.push_back(startIndex+2); - indicesOut.push_back(startIndex+0); - indicesOut.push_back(startIndex+2); - indicesOut.push_back(startIndex+3); - - btVector3 triNormal = parentTransform.getBasis()*planeNormal; - - - for (int i=0;i<4;i++) - { - GLInstanceVertex vtx; - btVector3 pos =parentTransform*verts[i]; - vtx.xyzw[0] = pos.x(); - vtx.xyzw[1] = pos.y(); - vtx.xyzw[2] = pos.z(); - vtx.xyzw[3] = 0.f; - - vtx.normal[0] =triNormal.x(); - vtx.normal[1] =triNormal.y(); - vtx.normal[2] =triNormal.z(); - - vtx.uv[0] = 0.5f; - vtx.uv[1] = 0.5f; - verticesOut.push_back(vtx); - } - break; - } - case TRIANGLE_MESH_SHAPE_PROXYTYPE: - { - btAssert(0); - break; - } - default: - { - if (collisionShape->isConvex()) - { - btConvexShape* convex = (btConvexShape*)collisionShape; - { - btShapeHull* hull = new btShapeHull(convex); - hull->buildHull(0.0); - - { - //int strideInBytes = 9*sizeof(float); - //int numVertices = hull->numVertices(); - //int numIndices =hull->numIndices(); - - for (int t=0;tnumTriangles();t++) - { - - btVector3 triNormal; - - int index0 = hull->getIndexPointer()[t*3+0]; - int index1 = hull->getIndexPointer()[t*3+1]; - int index2 = hull->getIndexPointer()[t*3+2]; - btVector3 pos0 =parentTransform*hull->getVertexPointer()[index0]; - btVector3 pos1 =parentTransform*hull->getVertexPointer()[index1]; - btVector3 pos2 =parentTransform*hull->getVertexPointer()[index2]; - triNormal = (pos1-pos0).cross(pos2-pos0); - triNormal.normalize(); - - for (int v=0;v<3;v++) - { - int index = hull->getIndexPointer()[t*3+v]; - GLInstanceVertex vtx; - btVector3 pos =parentTransform*hull->getVertexPointer()[index]; - vtx.xyzw[0] = pos.x(); - vtx.xyzw[1] = pos.y(); - vtx.xyzw[2] = pos.z(); - vtx.xyzw[3] = 0.f; - - vtx.normal[0] =triNormal.x(); - vtx.normal[1] =triNormal.y(); - vtx.normal[2] =triNormal.z(); - - vtx.uv[0] = 0.5f; - vtx.uv[1] = 0.5f; - - indicesOut.push_back(verticesOut.size()); - verticesOut.push_back(vtx); - } - } - } - } - } else - { - if (collisionShape->isCompound()) - { - btCompoundShape* compound = (btCompoundShape*) collisionShape; - for (int i=0;igetNumChildShapes();i++) - { - - btTransform childWorldTrans = parentTransform * compound->getChildTransform(i); - createCollisionShapeGraphicsObject(compound->getChildShape(i),childWorldTrans,verticesOut,indicesOut); - } - } else - { - btAssert(0); - } - - } - } - }; - } - - virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape) - { - //already has a graphics object? - if (collisionShape->getUserIndex()>=0) - return; - - btAlignedObjectArray vertices; - btAlignedObjectArray indices; - btTransform startTrans;startTrans.setIdentity(); - - createCollisionShapeGraphicsObject(collisionShape,startTrans,vertices,indices); - - if (vertices.size() && indices.size()) - { - int shapeId = m_glApp->m_renderer->registerShape(&vertices[0].xyzw[0],vertices.size(),&indices[0],indices.size()); - collisionShape->setUserIndex(shapeId); - } - - } - virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld) - { - int numCollisionObjects = rbWorld->getNumCollisionObjects(); - for (int i = 0; igetCollisionObjectArray()[i]; - btVector3 pos = colObj->getWorldTransform().getOrigin(); - btQuaternion orn = colObj->getWorldTransform().getRotation(); - int index = colObj->getUserIndex(); - if (index >= 0) - { - m_glApp->m_renderer->writeSingleInstanceTransformToCPU(pos, orn, index); - } - } - m_glApp->m_renderer->writeTransforms(); - } - - virtual void createPhysicsDebugDrawer(btDiscreteDynamicsWorld* rbWorld) - { - btAssert(rbWorld); - m_debugDraw = new MyDebugDrawer(m_glApp); - rbWorld->setDebugDrawer(m_debugDraw ); - - - m_debugDraw->setDebugMode( - btIDebugDraw::DBG_DrawWireframe - +btIDebugDraw::DBG_DrawAabb - //btIDebugDraw::DBG_DrawContactPoints - ); - - } - - virtual struct Common2dCanvasInterface* get2dCanvasInterface() - { - return m_glApp->m_2dCanvasInterface; - } - virtual CommonParameterInterface* getParameterInterface() - { - return m_glApp->m_parameterInterface; - } - - virtual void setUpAxis(int axis) - { - m_glApp->setUpAxis(axis); - } - - - btVector3 selectColor() - { - btVector4 color = sColors[m_curColor]; - m_curColor++; - m_curColor&=3; - return color; - } - - virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) - { - for (int i=0;igetNumCollisionObjects();i++) - { - btCollisionObject* colObj = rbWorld->getCollisionObjectArray()[i]; - //btRigidBody* body = btRigidBody::upcast(colObj); - //does this also work for btMultiBody/btMultiBodyLinkCollider? - createCollisionShapeGraphicsObject(colObj->getCollisionShape()); - btVector3 color= selectColor(); - createCollisionObjectGraphicsObject(colObj,color); - - } - } - - virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size) - { - btAssert(m_glApp); - m_glApp->drawText3D(txt,posX,posY,posZ,size); - } -}; - -Bullet2RigidBodyDemo::Bullet2RigidBodyDemo(CommonGraphicsApp* app, CommonPhysicsSetup* physicsSetup) - : m_physicsSetup(physicsSetup), - m_controlPressed(false), - m_altPressed(false), - m_glApp(app) -{ - -} -void Bullet2RigidBodyDemo::initPhysics() -{ - MyGraphicsPhysicsBridge glBridge(m_glApp); - glBridge.setUpAxis(1); - m_physicsSetup->initPhysics(glBridge); - m_glApp->m_renderer->writeTransforms(); - -} - -void Bullet2RigidBodyDemo::exitPhysics() -{ - - m_physicsSetup->exitPhysics(); - -} - -void Bullet2RigidBodyDemo::stepSimulation(float deltaTime) -{ - m_physicsSetup->stepSimulation(deltaTime); - -} - -void Bullet2RigidBodyDemo::renderScene() -{ - //sync graphics -> physics world transforms - - MyGraphicsPhysicsBridge glBridge(m_glApp); - m_physicsSetup->syncPhysicsToGraphics(glBridge); - m_glApp->m_renderer->renderScene(); - - m_physicsSetup->renderScene(glBridge); - -} - -void Bullet2RigidBodyDemo::physicsDebugDraw(int debugDrawFlags) -{ - m_physicsSetup->debugDraw(debugDrawFlags); -} - -Bullet2RigidBodyDemo::~Bullet2RigidBodyDemo() -{ -} - -btVector3 Bullet2RigidBodyDemo::getRayTo(int x,int y) -{ - if (!m_glApp->m_renderer) - { - btAssert(0); - return btVector3(0,0,0); - } - - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = b3Scalar(2.0) * b3Atan(tanFov); - - btVector3 camPos,camTarget; - m_glApp->m_renderer->getCameraPosition(camPos); - m_glApp->m_renderer->getCameraTargetPosition(camTarget); - - btVector3 rayFrom = camPos; - btVector3 rayForward = (camTarget-camPos); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - - btVector3 rightOffset; - btVector3 cameraUp=btVector3(0,0,0); - cameraUp[m_glApp->getUpAxis()]=1; - - btVector3 vertical = cameraUp; - - btVector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - b3Scalar aspect; - float width = m_glApp->m_renderer->getScreenWidth(); - float height = m_glApp->m_renderer->getScreenHeight(); - - aspect = width / height; - - hor*=aspect; - - - btVector3 rayToCenter = rayFrom + rayForward; - btVector3 dHor = hor * 1.f/width; - btVector3 dVert = vertical * 1.f/height; - - - btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += btScalar(x) * dHor; - rayTo -= btScalar(y) * dVert; - return rayTo; -} - - -bool Bullet2RigidBodyDemo::mouseMoveCallback(float x,float y) -{ - btVector3 rayTo = getRayTo(x, y); - btVector3 rayFrom; - m_glApp->m_renderer->getCameraPosition(rayFrom); - m_physicsSetup->movePickedBody(rayFrom,rayTo); - - return false; -} - -bool Bullet2RigidBodyDemo::mouseButtonCallback(int button, int state, float x, float y) -{ - - if (state==1) - { - if(button==0 && (!m_altPressed && !m_controlPressed)) - { - btVector3 camPos; - m_glApp->m_renderer->getCameraPosition(camPos); - - btVector3 rayFrom = camPos; - btVector3 rayTo = getRayTo(x,y); - - m_physicsSetup->pickBody(rayFrom, rayTo); - - - } - } else - { - if (button==0) - { - m_physicsSetup->removePickingConstraint(); - //remove p2p - } - } - - //printf("button=%d, state=%d\n",button,state); - return false; -} diff --git a/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.h b/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.h deleted file mode 100644 index 5c881c33c..000000000 --- a/btgui/Bullet3AppSupport/Bullet2RigidBodyDemo.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef BULLET2_RIGIDBODY_DEMO_H -#define BULLET2_RIGIDBODY_DEMO_H - -#include "LinearMath/btVector3.h" - -#include "BulletDemoInterface.h" -#include "OpenGLWindow/b3gWindowInterface.h" -#include "CommonPhysicsSetup.h" - - -class Bullet2RigidBodyDemo : public BulletDemoInterface -{ - CommonPhysicsSetup* m_physicsSetup; - -public: - - bool m_controlPressed; - bool m_altPressed; - -public: - - struct CommonGraphicsApp* m_glApp; - - Bullet2RigidBodyDemo(CommonGraphicsApp* app, CommonPhysicsSetup* physicsSetup); - virtual void initPhysics(); - virtual void exitPhysics(); - virtual void renderScene(); - virtual void physicsDebugDraw(int debugDrawFlags); - virtual void stepSimulation(float dt); - virtual CommonPhysicsSetup* getPhysicsSetup() - { - return m_physicsSetup; - } - - virtual ~Bullet2RigidBodyDemo(); - btVector3 getRayTo(int x,int y); - virtual bool mouseMoveCallback(float x,float y); - virtual bool mouseButtonCallback(int button, int state, float x, float y); - virtual bool keyboardCallback(int key, int state) - { - if (key==B3G_CONTROL) - { - m_controlPressed = (state==1); - } - if (key==B3G_ALT) - { - m_altPressed = (state==1); - } - return false; - } - - -}; - -#endif //BULLET2_RIGIDBODY_DEMO_H diff --git a/btgui/Bullet3AppSupport/BulletDemoInterface.h b/btgui/Bullet3AppSupport/BulletDemoInterface.h deleted file mode 100644 index 41e6169c9..000000000 --- a/btgui/Bullet3AppSupport/BulletDemoInterface.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef DEMO_INTERFACE_H -#define DEMO_INTERFACE_H - -struct CommonGraphicsApp; - - -class BulletDemoInterface -{ -public: - - typedef class BulletDemoInterface* (CreateFunc)(CommonGraphicsApp* app); - - virtual ~BulletDemoInterface() - { - } - - virtual void initPhysics()=0; - virtual void exitPhysics()=0; - virtual void stepSimulation(float deltaTime)=0; - virtual void renderScene()=0; - virtual void physicsDebugDraw(int debugFlags)=0;//for now we reuse the flags in Bullet/src/LinearMath/btIDebugDraw.h - virtual bool mouseMoveCallback(float x,float y)=0; - virtual bool mouseButtonCallback(int button, int state, float x, float y)=0; - virtual bool keyboardCallback(int key, int state)=0; - -}; - -class EmptyBulletDemo : public BulletDemoInterface -{ -public: - static BulletDemoInterface* MyCreateFunc(CommonGraphicsApp* app) - { - return new EmptyBulletDemo(); - } - - virtual void initPhysics() - { - } - virtual void exitPhysics() - { - } - virtual void stepSimulation(float deltaTime) - { - } - virtual void renderScene() - { - } - virtual void physicsDebugDraw(int debugFlags) - { - } - virtual bool mouseMoveCallback(float x,float y) - { - return false; - } - virtual bool mouseButtonCallback(int button, int state, float x, float y) - { - return false; - } - virtual bool keyboardCallback(int key, int state) - { - return false; - } -}; - - -#endif //DEMO_INTERFACE_H - diff --git a/btgui/Bullet3AppSupport/CMakeLists.txt b/btgui/Bullet3AppSupport/CMakeLists.txt deleted file mode 100644 index da529f22a..000000000 --- a/btgui/Bullet3AppSupport/CMakeLists.txt +++ /dev/null @@ -1,29 +0,0 @@ - -INCLUDE_DIRECTORIES( - ${BULLET_PHYSICS_SOURCE_DIR}/src - ${BULLET_PHYSICS_SOURCE_DIR}/btgui -) - -FILE(GLOB Bullet3AppSupport_HDRS "*.h" ) -FILE(GLOB Bullet3AppSupport_SRCS "*.cpp" ) - -IF (WIN32) - ADD_DEFINITIONS(-DGLEW_STATIC) -ENDIF(WIN32) -IF(NOT WIN32 AND NOT APPLE) - ADD_DEFINITIONS(-DGLEW_STATIC) - ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") - ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") -ENDIF() - -ADD_LIBRARY(Bullet3AppSupport ${Bullet3AppSupport_SRCS} ${Bullet3AppSupport_HDRS}) -if (UNIX AND NOT APPLE) - target_link_libraries(Bullet3AppSupport X11) -elseif (APPLE) - target_link_libraries(Bullet3AppSupport ${COCOA_LIBRARY}) -endif () - -if (BUILD_SHARED_LIBS) - target_link_libraries(Bullet3AppSupport gwen OpenGLWindow ${OPENGL_gl_LIBRARY} BulletCollision LinearMath Bullet3Common) -endif() - diff --git a/btgui/Bullet3AppSupport/CommonPhysicsSetup.h b/btgui/Bullet3AppSupport/CommonPhysicsSetup.h deleted file mode 100644 index 616e352de..000000000 --- a/btgui/Bullet3AppSupport/CommonPhysicsSetup.h +++ /dev/null @@ -1,102 +0,0 @@ - -#ifndef COMMON_PHYSICS_SETUP_H -#define COMMON_PHYSICS_SETUP_H - -class btRigidBody; -class btCollisionObject; -class btBoxShape; -class btTransform; -class btCollisionShape; -#include "LinearMath/btVector3.h" -#include "CommonParameterInterface.h" - -class btDiscreteDynamicsWorld; - -///The Bullet 2 GraphicsPhysicsBridge let's the graphics engine create graphics representation and synchronize -struct GraphicsPhysicsBridge -{ - virtual ~GraphicsPhysicsBridge() {} - - virtual void createRigidBodyGraphicsObject(btRigidBody* body,const btVector3& color) - { - } - - virtual void createCollisionObjectGraphicsObject(btCollisionObject* obj,const btVector3& color) - { - } - virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape) - { - } - virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld) - { - } - virtual void createPhysicsDebugDrawer( btDiscreteDynamicsWorld* rbWorld) - { - } - - virtual int registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices) { return -1; }//, int primitiveType = B3_GL_TRIANGLES, int textureIndex = -1); - - virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) { return -1;} - - virtual struct Common2dCanvasInterface* get2dCanvasInterface() - { - return 0; - } - - virtual CommonParameterInterface* getParameterInterface() - { - return 0; - } - - virtual struct CommonRenderInterface* getRenderInterface() - { - return 0; - } - virtual void setUpAxis(int axis) - { - } - - virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) - { - } - - virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size) - { - - } -}; - -///Bullet 2 specific physics setup, that allows to share code between old and new demo frameworks -struct CommonPhysicsSetup -{ -public: - - virtual ~CommonPhysicsSetup() {} - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge) = 0; - - virtual void exitPhysics()=0; - - virtual void stepSimulation(float deltaTime)=0; - - virtual void debugDraw(int debugDrawFlags)=0; - - virtual void renderScene(GraphicsPhysicsBridge& gfxBridge){}; - - virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) = 0; - virtual bool movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld)=0; - virtual void removePickingConstraint() = 0; - - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) = 0; -/* - virtual btRigidBody* createRigidBody(float mass, const btTransform& startTransform,btCollisionShape* shape, const btVector4& color=btVector4(1,0,0,1))=0; - - virtual btBoxShape* createBoxShape(const btVector3& halfExtents)=0; - */ -}; - - - -#endif //COMMON_PHYSICS_SETUP_H - - diff --git a/btgui/Bullet3AppSupport/MyDebugDrawer.h b/btgui/Bullet3AppSupport/MyDebugDrawer.h deleted file mode 100644 index ee9b3a04d..000000000 --- a/btgui/Bullet3AppSupport/MyDebugDrawer.h +++ /dev/null @@ -1,109 +0,0 @@ -#ifndef MY_DEBUG_DRAWER_H -#define MY_DEBUG_DRAWER_H - -#include "LinearMath/btIDebugDraw.h" -#include "LinearMath/btAlignedObjectArray.h" -#include "OpenGLWindow/CommonGraphicsApp.h" - -#define BT_LINE_BATCH_SIZE 512 - -struct MyDebugVec3 -{ - MyDebugVec3(const btVector3& org) - :x(org.x()), - y(org.y()), - z(org.z()) - { - } - - float x; - float y; - float z; -}; -class MyDebugDrawer : public btIDebugDraw -{ - CommonGraphicsApp* m_glApp; - int m_debugMode; - - btAlignedObjectArray m_linePoints; - btAlignedObjectArray m_lineIndices; - btVector3 m_currentLineColor; - -public: - - MyDebugDrawer(CommonGraphicsApp* app) - : m_glApp(app) - ,m_debugMode(btIDebugDraw::DBG_DrawWireframe|btIDebugDraw::DBG_DrawAabb), - m_currentLineColor(-1,-1,-1) - { - - } - virtual void drawLine(const btVector3& from1,const btVector3& to1,const btVector3& color1) - { - //float from[4] = {from1[0],from1[1],from1[2],from1[3]}; - //float to[4] = {to1[0],to1[1],to1[2],to1[3]}; - //float color[4] = {color1[0],color1[1],color1[2],color1[3]}; - //m_glApp->m_instancingRenderer->drawLine(from,to,color); - if (m_currentLineColor!=color1 || m_linePoints.size() >= BT_LINE_BATCH_SIZE) - { - flushLines(); - m_currentLineColor = color1; - } - MyDebugVec3 from(from1); - MyDebugVec3 to(to1); - - m_linePoints.push_back(from); - m_linePoints.push_back(to); - - m_lineIndices.push_back(m_lineIndices.size()); - m_lineIndices.push_back(m_lineIndices.size()); - - } - - virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color) - { - drawLine(PointOnB,PointOnB+normalOnB,color); - } - - - virtual void reportErrorWarning(const char* warningString) - { - } - - virtual void draw3dText(const btVector3& location,const char* textString) - { - } - - virtual void setDebugMode(int debugMode) - { - m_debugMode = debugMode; - } - - virtual int getDebugMode() const - { - return m_debugMode; - } - - virtual void flushLines() - { - int sz = m_linePoints.size(); - if (sz) - { - float debugColor[4]; - debugColor[0] = m_currentLineColor.x(); - debugColor[1] = m_currentLineColor.y(); - debugColor[2] = m_currentLineColor.z(); - debugColor[3] = 1.f; - m_glApp->m_renderer->drawLines(&m_linePoints[0].x,debugColor, - m_linePoints.size(),sizeof(MyDebugVec3), - &m_lineIndices[0], - m_lineIndices.size(), - 1); - m_linePoints.clear(); - m_lineIndices.clear(); - } - } - -}; - -#endif //MY_DEBUG_DRAWER_H diff --git a/btgui/Bullet3AppSupport/premake4.lua b/btgui/Bullet3AppSupport/premake4.lua deleted file mode 100644 index b8752a165..000000000 --- a/btgui/Bullet3AppSupport/premake4.lua +++ /dev/null @@ -1,26 +0,0 @@ - - project "Bullet3AppSupport" - - language "C++" - - kind "StaticLib" - - initOpenGL() - initGlew() - - includedirs { - "..", - "../../src", - } - - --links { - --} - - files { - "*.cpp", - "*.h", - } - - if os.is("Linux") then - initX11() - end diff --git a/btgui/CMakeLists.txt b/btgui/CMakeLists.txt deleted file mode 100644 index be213d89f..000000000 --- a/btgui/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -if (OPENGL_FOUND) -SUBDIRS( Bullet3AppSupport Gwen OpenGLWindow lua-5.2.3) -endif(OPENGL_FOUND) diff --git a/btgui/FontFiles/DroidSansJapanese.ttf b/btgui/FontFiles/DroidSansJapanese.ttf deleted file mode 100644 index 412fa3de0..000000000 Binary files a/btgui/FontFiles/DroidSansJapanese.ttf and /dev/null differ diff --git a/btgui/FontFiles/DroidSerif-Bold.ttf b/btgui/FontFiles/DroidSerif-Bold.ttf deleted file mode 100644 index 838d25588..000000000 Binary files a/btgui/FontFiles/DroidSerif-Bold.ttf and /dev/null differ diff --git a/btgui/FontFiles/DroidSerif-Italic.ttf b/btgui/FontFiles/DroidSerif-Italic.ttf deleted file mode 100644 index 2972809da..000000000 Binary files a/btgui/FontFiles/DroidSerif-Italic.ttf and /dev/null differ diff --git a/btgui/FontFiles/DroidSerif-Regular.ttf b/btgui/FontFiles/DroidSerif-Regular.ttf deleted file mode 100644 index 5b4fe815d..000000000 Binary files a/btgui/FontFiles/DroidSerif-Regular.ttf and /dev/null differ diff --git a/btgui/GwenOpenGLTest/premake4.lua b/btgui/GwenOpenGLTest/premake4.lua deleted file mode 100644 index 076fea3de..000000000 --- a/btgui/GwenOpenGLTest/premake4.lua +++ /dev/null @@ -1,68 +0,0 @@ - - project "Test_Gwen_OpenGL" - - kind "ConsoleApp" - flags {"Unicode"} - - defines { "GWEN_COMPILE_STATIC" , "_HAS_EXCEPTIONS=0", "_STATIC_CPPLIB" } - defines { "DONT_USE_GLUT"} - - targetdir "../../bin" - - includedirs - { - - "..", - ".", - } - - initOpenGL() - initGlew() - - links { - "gwen", - } - - - files { - "../OpenGLWindow/OpenSans.cpp", - "../OpenGLWindow/TwFonts.cpp", - "../OpenGLWindow/TwFonts.h", - "../OpenGLWindow/LoadShader.cpp", - "../OpenGLWindow/LoadShader.h", - "../OpenGLWindow/GLPrimitiveRenderer.cpp", - "../OpenGLWindow/GLPrimitiveRenderer.h", - "../OpenGLWindow/GwenOpenGL3CoreRenderer.h", - "../OpenGLWindow/fontstash.cpp", - "../OpenGLWindow/fontstash.h", - "../OpenGLWindow/opengl_fontstashcallbacks.cpp", - "../OpenGLWindow/opengl_fontstashcallbacks.h", - "../Bullet3AppSupport/b3Clock.cpp", - "../Bullet3AppSupport/b3Clock.h", - "**.cpp", - "**.h", - } - if os.is("Windows") then - files { - "../OpenGLWindow/Win32OpenGLWindow.cpp", - "../OpenGLWindow/Win32OpenGLWindow.h", - "../OpenGLWindow/Win32Window.cpp", - "../OpenGLWindow/Win32Window.h", - } - end - if os.is("Linux") then - initX11() - files{ - "../OpenGLWindow/X11OpenGLWindow.h", - "../OpenGLWindow/X11OpenGLWindow.cpp" - } - links{"pthread"} - end - if os.is("MacOSX") then - links{"Cocoa.framework"} -print("hello!") - files{ - "../OpenGLWindow/MacOpenGLWindow.mm", - "../OpenGLWindow/MacOpenGLWindow.h", - } - end diff --git a/btgui/MidiTest/LICENSE.txt b/btgui/MidiTest/LICENSE.txt deleted file mode 100644 index 5b85f871c..000000000 --- a/btgui/MidiTest/LICENSE.txt +++ /dev/null @@ -1,29 +0,0 @@ - RtMidi WWW site: http://music.mcgill.ca/~gary/rtmidi/ - - RtMidi: realtime MIDI i/o C++ classes - Copyright (c) 2003-2012 Gary P. Scavone - - 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 above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - Any person wishing to distribute modifications to the Software is - asked to send the modifications to the original developer so that - they can be incorporated into the canonical version. This is, - however, not a binding provision of this license. - - 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. -*/ \ No newline at end of file diff --git a/btgui/MidiTest/RtError.h b/btgui/MidiTest/RtError.h deleted file mode 100644 index a64f43430..000000000 --- a/btgui/MidiTest/RtError.h +++ /dev/null @@ -1,60 +0,0 @@ -/************************************************************************/ -/*! \class RtError - \brief Exception handling class for RtAudio & RtMidi. - - The RtError class is quite simple but it does allow errors to be - "caught" by RtError::Type. See the RtAudio and RtMidi - documentation to know which methods can throw an RtError. - -*/ -/************************************************************************/ - -#ifndef RTERROR_H -#define RTERROR_H - -#include -#include -#include - -class RtError : public std::exception -{ - public: - //! Defined RtError types. - enum Type { - WARNING, /*!< A non-critical error. */ - DEBUG_WARNING, /*!< A non-critical error which might be useful for debugging. */ - UNSPECIFIED, /*!< The default, unspecified error type. */ - NO_DEVICES_FOUND, /*!< No devices found on system. */ - INVALID_DEVICE, /*!< An invalid device ID was specified. */ - MEMORY_ERROR, /*!< An error occured during memory allocation. */ - INVALID_PARAMETER, /*!< An invalid parameter was specified to a function. */ - INVALID_USE, /*!< The function was called incorrectly. */ - DRIVER_ERROR, /*!< A system driver error occured. */ - SYSTEM_ERROR, /*!< A system error occured. */ - THREAD_ERROR /*!< A thread error occured. */ - }; - - //! The constructor. - RtError( const std::string& message, Type type = RtError::UNSPECIFIED ) throw() : message_(message), type_(type) {} - - //! The destructor. - virtual ~RtError( void ) throw() {} - - //! Prints thrown error message to stderr. - virtual void printMessage( void ) const throw() { std::cerr << '\n' << message_ << "\n\n"; } - - //! Returns the thrown error message type. - virtual const Type& getType(void) const throw() { return type_; } - - //! Returns the thrown error message string. - virtual const std::string& getMessage(void) const throw() { return message_; } - - //! Returns the thrown error message as a c-style string. - virtual const char* what( void ) const throw() { return message_.c_str(); } - - protected: - std::string message_; - Type type_; -}; - -#endif diff --git a/btgui/MidiTest/RtMidi.cpp b/btgui/MidiTest/RtMidi.cpp deleted file mode 100644 index 0789d4d66..000000000 --- a/btgui/MidiTest/RtMidi.cpp +++ /dev/null @@ -1,3803 +0,0 @@ -/**********************************************************************/ -/*! \class RtMidi - \brief An abstract base class for realtime MIDI input/output. - - This class implements some common functionality for the realtime - MIDI input/output subclasses RtMidiIn and RtMidiOut. - - RtMidi WWW site: http://music.mcgill.ca/~gary/rtmidi/ - - RtMidi: realtime MIDI i/o C++ classes - Copyright (c) 2003-2012 Gary P. Scavone - - 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 above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - Any person wishing to distribute modifications to the Software is - asked to send the modifications to the original developer so that - they can be incorporated into the canonical version. This is, - however, not a binding provision of this license. - - 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. -*/ -/**********************************************************************/ - -// RtMidi: Version 2.0.1 - -#include "RtMidi.h" -#include -#include //exit - -//*********************************************************************// -// RtMidi Definitions -//*********************************************************************// - -void RtMidi :: getCompiledApi( std::vector &apis ) -{ - apis.clear(); - - // The order here will control the order of RtMidi's API search in - // the constructor. -#if defined(__MACOSX_CORE__) - apis.push_back( MACOSX_CORE ); -#endif -#if defined(__LINUX_ALSA__) - apis.push_back( LINUX_ALSA ); -#endif -#if defined(__UNIX_JACK__) - apis.push_back( UNIX_JACK ); -#endif -#if defined(__WINDOWS_MM__) - apis.push_back( WINDOWS_MM ); -#endif -#if defined(__WINDOWS_KS__) - apis.push_back( WINDOWS_KS ); -#endif -#if defined(__RTMIDI_DUMMY__) - apis.push_back( RTMIDI_DUMMY ); -#endif - -} - -void RtMidi :: error( RtError::Type type, std::string errorString ) -{ - if (type == RtError::WARNING) { - std::cerr << '\n' << errorString << "\n\n"; - } - else if (type == RtError::DEBUG_WARNING) { -#if defined(__RTMIDI_DEBUG__) - std::cerr << '\n' << errorString << "\n\n"; -#endif - } - else { - std::cerr << '\n' << errorString << "\n\n"; - exit(0); - } -} - -//*********************************************************************// -// RtMidiIn Definitions -//*********************************************************************// - -void RtMidiIn :: openMidiApi( RtMidi::Api api, const std::string clientName, unsigned int queueSizeLimit ) -{ - if ( rtapi_ ) - delete rtapi_; - rtapi_ = 0; - -#if defined(__UNIX_JACK__) - if ( api == UNIX_JACK ) - rtapi_ = new MidiInJack( clientName, queueSizeLimit ); -#endif -#if defined(__LINUX_ALSA__) - if ( api == LINUX_ALSA ) - rtapi_ = new MidiInAlsa( clientName, queueSizeLimit ); -#endif -#if defined(__WINDOWS_MM__) - if ( api == WINDOWS_MM ) - rtapi_ = new MidiInWinMM( clientName, queueSizeLimit ); -#endif -#if defined(__WINDOWS_KS__) - if ( api == WINDOWS_KS ) - rtapi_ = new MidiInWinKS( clientName, queueSizeLimit ); -#endif -#if defined(__MACOSX_CORE__) - if ( api == MACOSX_CORE ) - rtapi_ = new MidiInCore( clientName, queueSizeLimit ); -#endif -#if defined(__RTMIDI_DUMMY__) - if ( api == RTMIDI_DUMMY ) - rtapi_ = new MidiInDummy( clientName, queueSizeLimit ); -#endif -} - -RtMidiIn :: RtMidiIn( RtMidi::Api api, const std::string clientName, unsigned int queueSizeLimit ) -{ - rtapi_ = 0; - - if ( api != UNSPECIFIED ) { - // Attempt to open the specified API. - openMidiApi( api, clientName, queueSizeLimit ); - if ( rtapi_ ) return; - - // No compiled support for specified API value. Issue a debug - // warning and continue as if no API was specified. - RtMidi::error( RtError::WARNING, "RtMidiIn: no compiled support for specified API argument!" ); - } - - // Iterate through the compiled APIs and return as soon as we find - // one with at least one port or we reach the end of the list. - std::vector< RtMidi::Api > apis; - getCompiledApi( apis ); - for ( unsigned int i=0; igetPortCount() ) break; - } - - if ( rtapi_ ) return; - - // It should not be possible to get here because the preprocessor - // definition __RTMIDI_DUMMY__ is automatically defined if no - // API-specific definitions are passed to the compiler. But just in - // case something weird happens, we'll print out an error message. - RtMidi::error( RtError::WARNING, "RtMidiIn: no compiled API support found ... critical error!!" ); -} - -RtMidiIn :: ~RtMidiIn() -{ - delete rtapi_; -} - - -//*********************************************************************// -// RtMidiOut Definitions -//*********************************************************************// - -void RtMidiOut :: openMidiApi( RtMidi::Api api, const std::string clientName ) -{ - if ( rtapi_ ) - delete rtapi_; - rtapi_ = 0; - -#if defined(__UNIX_JACK__) - if ( api == UNIX_JACK ) - rtapi_ = new MidiOutJack( clientName ); -#endif -#if defined(__LINUX_ALSA__) - if ( api == LINUX_ALSA ) - rtapi_ = new MidiOutAlsa( clientName ); -#endif -#if defined(__WINDOWS_MM__) - if ( api == WINDOWS_MM ) - rtapi_ = new MidiOutWinMM( clientName ); -#endif -#if defined(__WINDOWS_KS__) - if ( api == WINDOWS_KS ) - rtapi_ = new MidiOutWinKS( clientName ); -#endif -#if defined(__MACOSX_CORE__) - if ( api == MACOSX_CORE ) - rtapi_ = new MidiOutCore( clientName ); -#endif -#if defined(__RTMIDI_DUMMY__) - if ( api == RTMIDI_DUMMY ) - rtapi_ = new MidiOutDummy( clientName ); -#endif -} - -RtMidiOut :: RtMidiOut( RtMidi::Api api, const std::string clientName ) -{ - rtapi_ = 0; - - if ( api != UNSPECIFIED ) { - // Attempt to open the specified API. - openMidiApi( api, clientName ); - if ( rtapi_ ) return; - - // No compiled support for specified API value. Issue a debug - // warning and continue as if no API was specified. - RtMidi::error( RtError::WARNING, "RtMidiOut: no compiled support for specified API argument!" ); - } - - // Iterate through the compiled APIs and return as soon as we find - // one with at least one port or we reach the end of the list. - std::vector< RtMidi::Api > apis; - getCompiledApi( apis ); - for ( unsigned int i=0; igetPortCount() ) break; - } - - if ( rtapi_ ) return; - - // It should not be possible to get here because the preprocessor - // definition __RTMIDI_DUMMY__ is automatically defined if no - // API-specific definitions are passed to the compiler. But just in - // case something weird happens, we'll print out an error message. - RtMidi::error( RtError::WARNING, "RtMidiOut: no compiled API support found ... critical error!!" ); -} - -RtMidiOut :: ~RtMidiOut() -{ - delete rtapi_; -} - -//*********************************************************************// -// Common MidiInApi Definitions -//*********************************************************************// - -MidiInApi :: MidiInApi( unsigned int queueSizeLimit ) - : apiData_( 0 ), connected_( false ) -{ - // Allocate the MIDI queue. - inputData_.queue.ringSize = queueSizeLimit; - if ( inputData_.queue.ringSize > 0 ) - inputData_.queue.ring = new MidiMessage[ inputData_.queue.ringSize ]; -} - -MidiInApi :: ~MidiInApi( void ) -{ - // Delete the MIDI queue. - if ( inputData_.queue.ringSize > 0 ) delete [] inputData_.queue.ring; -} - -void MidiInApi :: setCallback( RtMidiIn::RtMidiCallback callback, void *userData ) -{ - if ( inputData_.usingCallback ) { - errorString_ = "MidiInApi::setCallback: a callback function is already set!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - if ( !callback ) { - errorString_ = "RtMidiIn::setCallback: callback function value is invalid!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - inputData_.userCallback = (void *) callback; - inputData_.userData = userData; - inputData_.usingCallback = true; -} - -void MidiInApi :: cancelCallback() -{ - if ( !inputData_.usingCallback ) { - errorString_ = "RtMidiIn::cancelCallback: no callback function was set!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - inputData_.userCallback = 0; - inputData_.userData = 0; - inputData_.usingCallback = false; -} - -void MidiInApi :: ignoreTypes( bool midiSysex, bool midiTime, bool midiSense ) -{ - inputData_.ignoreFlags = 0; - if ( midiSysex ) inputData_.ignoreFlags = 0x01; - if ( midiTime ) inputData_.ignoreFlags |= 0x02; - if ( midiSense ) inputData_.ignoreFlags |= 0x04; -} - -double MidiInApi :: getMessage( std::vector *message ) -{ - message->clear(); - - if ( inputData_.usingCallback ) { - errorString_ = "RtMidiIn::getNextMessage: a user callback is currently set for this port."; - RtMidi::error( RtError::WARNING, errorString_ ); - return 0.0; - } - - if ( inputData_.queue.size == 0 ) return 0.0; - - // Copy queued message to the vector pointer argument and then "pop" it. - std::vector *bytes = &(inputData_.queue.ring[inputData_.queue.front].bytes); - message->assign( bytes->begin(), bytes->end() ); - double deltaTime = inputData_.queue.ring[inputData_.queue.front].timeStamp; - inputData_.queue.size--; - inputData_.queue.front++; - if ( inputData_.queue.front == inputData_.queue.ringSize ) - inputData_.queue.front = 0; - - return deltaTime; -} - -//*********************************************************************// -// Common MidiOutApi Definitions -//*********************************************************************// - -MidiOutApi :: MidiOutApi( void ) - : apiData_( 0 ), connected_( false ) -{ -} - -MidiOutApi :: ~MidiOutApi( void ) -{ -} - -// *************************************************** // -// -// OS/API-specific methods. -// -// *************************************************** // - -#if defined(__MACOSX_CORE__) - -// The CoreMIDI API is based on the use of a callback function for -// MIDI input. We convert the system specific time stamps to delta -// time values. - -// OS-X CoreMIDI header files. -#include -#include -#include - -// A structure to hold variables related to the CoreMIDI API -// implementation. -struct CoreMidiData { - MIDIClientRef client; - MIDIPortRef port; - MIDIEndpointRef endpoint; - MIDIEndpointRef destinationId; - unsigned long long lastTime; - MIDISysexSendRequest sysexreq; -}; - -//*********************************************************************// -// API: OS-X -// Class Definitions: MidiInCore -//*********************************************************************// - -void midiInputCallback( const MIDIPacketList *list, void *procRef, void *srcRef ) -{ - MidiInApi::RtMidiInData *data = static_cast (procRef); - CoreMidiData *apiData = static_cast (data->apiData); - - unsigned char status; - unsigned short nBytes, iByte, size; - unsigned long long time; - - bool& continueSysex = data->continueSysex; - MidiInApi::MidiMessage& message = data->message; - - const MIDIPacket *packet = &list->packet[0]; - for ( unsigned int i=0; inumPackets; ++i ) { - - // My interpretation of the CoreMIDI documentation: all message - // types, except sysex, are complete within a packet and there may - // be several of them in a single packet. Sysex messages can be - // broken across multiple packets and PacketLists but are bundled - // alone within each packet (these packets do not contain other - // message types). If sysex messages are split across multiple - // MIDIPacketLists, they must be handled by multiple calls to this - // function. - - nBytes = packet->length; - if ( nBytes == 0 ) continue; - - // Calculate time stamp. - - if ( data->firstMessage ) { - message.timeStamp = 0.0; - data->firstMessage = false; - } - else { - time = packet->timeStamp; - if ( time == 0 ) { // this happens when receiving asynchronous sysex messages - time = AudioGetCurrentHostTime(); - } - time -= apiData->lastTime; - time = AudioConvertHostTimeToNanos( time ); - if ( !continueSysex ) - message.timeStamp = time * 0.000000001; - } - apiData->lastTime = packet->timeStamp; - if ( apiData->lastTime == 0 ) { // this happens when receiving asynchronous sysex messages - apiData->lastTime = AudioGetCurrentHostTime(); - } - //std::cout << "TimeStamp = " << packet->timeStamp << std::endl; - - iByte = 0; - if ( continueSysex ) { - // We have a continuing, segmented sysex message. - if ( !( data->ignoreFlags & 0x01 ) ) { - // If we're not ignoring sysex messages, copy the entire packet. - for ( unsigned int j=0; jdata[j] ); - } - continueSysex = packet->data[nBytes-1] != 0xF7; - - if ( !continueSysex ) { - // If not a continuing sysex message, invoke the user callback function or queue the message. - if ( data->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) data->userCallback; - callback( message.timeStamp, &message.bytes, data->userData ); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( data->queue.size < data->queue.ringSize ) { - data->queue.ring[data->queue.back++] = message; - if ( data->queue.back == data->queue.ringSize ) - data->queue.back = 0; - data->queue.size++; - } - else - std::cerr << "\nMidiInCore: message queue limit reached!!\n\n"; - } - message.bytes.clear(); - } - } - else { - while ( iByte < nBytes ) { - size = 0; - // We are expecting that the next byte in the packet is a status byte. - status = packet->data[iByte]; - if ( !(status & 0x80) ) break; - // Determine the number of bytes in the MIDI message. - if ( status < 0xC0 ) size = 3; - else if ( status < 0xE0 ) size = 2; - else if ( status < 0xF0 ) size = 3; - else if ( status == 0xF0 ) { - // A MIDI sysex - if ( data->ignoreFlags & 0x01 ) { - size = 0; - iByte = nBytes; - } - else size = nBytes - iByte; - continueSysex = packet->data[nBytes-1] != 0xF7; - } - else if ( status == 0xF1 ) { - // A MIDI time code message - if ( data->ignoreFlags & 0x02 ) { - size = 0; - iByte += 2; - } - else size = 2; - } - else if ( status == 0xF2 ) size = 3; - else if ( status == 0xF3 ) size = 2; - else if ( status == 0xF8 && ( data->ignoreFlags & 0x02 ) ) { - // A MIDI timing tick message and we're ignoring it. - size = 0; - iByte += 1; - } - else if ( status == 0xFE && ( data->ignoreFlags & 0x04 ) ) { - // A MIDI active sensing message and we're ignoring it. - size = 0; - iByte += 1; - } - else size = 1; - - // Copy the MIDI data to our vector. - if ( size ) { - message.bytes.assign( &packet->data[iByte], &packet->data[iByte+size] ); - if ( !continueSysex ) { - // If not a continuing sysex message, invoke the user callback function or queue the message. - if ( data->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) data->userCallback; - callback( message.timeStamp, &message.bytes, data->userData ); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( data->queue.size < data->queue.ringSize ) { - data->queue.ring[data->queue.back++] = message; - if ( data->queue.back == data->queue.ringSize ) - data->queue.back = 0; - data->queue.size++; - } - else - std::cerr << "\nMidiInCore: message queue limit reached!!\n\n"; - } - message.bytes.clear(); - } - iByte += size; - } - } - } - packet = MIDIPacketNext(packet); - } -} - -MidiInCore :: MidiInCore( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) -{ - initialize( clientName ); -} - -MidiInCore :: ~MidiInCore( void ) -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - CoreMidiData *data = static_cast (apiData_); - MIDIClientDispose( data->client ); - if ( data->endpoint ) MIDIEndpointDispose( data->endpoint ); - delete data; -} - -void MidiInCore :: initialize( const std::string& clientName ) -{ - // Set up our client. - MIDIClientRef client; - OSStatus result = MIDIClientCreate( CFStringCreateWithCString( NULL, clientName.c_str(), kCFStringEncodingASCII ), NULL, NULL, &client ); - if ( result != noErr ) { - errorString_ = "MidiInCore::initialize: error creating OS-X MIDI client object."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - CoreMidiData *data = (CoreMidiData *) new CoreMidiData; - data->client = client; - data->endpoint = 0; - apiData_ = (void *) data; - inputData_.apiData = (void *) data; -} - -void MidiInCore :: openPort( unsigned int portNumber, const std::string portName ) -{ - if ( connected_ ) { - errorString_ = "MidiInCore::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nSrc = MIDIGetNumberOfSources(); - if (nSrc < 1) { - errorString_ = "MidiInCore::openPort: no MIDI input sources found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - std::ostringstream ost; - if ( portNumber >= nSrc ) { - ost << "MidiInCore::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - MIDIPortRef port; - CoreMidiData *data = static_cast (apiData_); - OSStatus result = MIDIInputPortCreate( data->client, - CFStringCreateWithCString( NULL, portName.c_str(), kCFStringEncodingASCII ), - midiInputCallback, (void *)&inputData_, &port ); - if ( result != noErr ) { - MIDIClientDispose( data->client ); - errorString_ = "MidiInCore::openPort: error creating OS-X MIDI input port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Get the desired input source identifier. - MIDIEndpointRef endpoint = MIDIGetSource( portNumber ); - if ( endpoint == 0 ) { - MIDIPortDispose( port ); - MIDIClientDispose( data->client ); - errorString_ = "MidiInCore::openPort: error getting MIDI input source reference."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Make the connection. - result = MIDIPortConnectSource( port, endpoint, NULL ); - if ( result != noErr ) { - MIDIPortDispose( port ); - MIDIClientDispose( data->client ); - errorString_ = "MidiInCore::openPort: error connecting OS-X MIDI input port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific port information. - data->port = port; - - connected_ = true; -} - -void MidiInCore :: openVirtualPort( const std::string portName ) -{ - CoreMidiData *data = static_cast (apiData_); - - // Create a virtual MIDI input destination. - MIDIEndpointRef endpoint; - OSStatus result = MIDIDestinationCreate( data->client, - CFStringCreateWithCString( NULL, portName.c_str(), kCFStringEncodingASCII ), - midiInputCallback, (void *)&inputData_, &endpoint ); - if ( result != noErr ) { - errorString_ = "MidiInCore::openVirtualPort: error creating virtual OS-X MIDI destination."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - data->endpoint = endpoint; -} - -void MidiInCore :: closePort( void ) -{ - if ( connected_ ) { - CoreMidiData *data = static_cast (apiData_); - MIDIPortDispose( data->port ); - connected_ = false; - } -} - -unsigned int MidiInCore :: getPortCount() -{ - return MIDIGetNumberOfSources(); -} - -// This function was submitted by Douglas Casey Tucker and apparently -// derived largely from PortMidi. -CFStringRef EndpointName( MIDIEndpointRef endpoint, bool isExternal ) -{ - CFMutableStringRef result = CFStringCreateMutable( NULL, 0 ); - CFStringRef str; - - // Begin with the endpoint's name. - str = NULL; - MIDIObjectGetStringProperty( endpoint, kMIDIPropertyName, &str ); - if ( str != NULL ) { - CFStringAppend( result, str ); - CFRelease( str ); - } - - MIDIEntityRef entity = NULL; - MIDIEndpointGetEntity( endpoint, &entity ); - if ( entity == 0 ) - // probably virtual - return result; - - if ( CFStringGetLength( result ) == 0 ) { - // endpoint name has zero length -- try the entity - str = NULL; - MIDIObjectGetStringProperty( entity, kMIDIPropertyName, &str ); - if ( str != NULL ) { - CFStringAppend( result, str ); - CFRelease( str ); - } - } - // now consider the device's name - MIDIDeviceRef device = 0; - MIDIEntityGetDevice( entity, &device ); - if ( device == 0 ) - return result; - - str = NULL; - MIDIObjectGetStringProperty( device, kMIDIPropertyName, &str ); - if ( CFStringGetLength( result ) == 0 ) { - CFRelease( result ); - return str; - } - if ( str != NULL ) { - // if an external device has only one entity, throw away - // the endpoint name and just use the device name - if ( isExternal && MIDIDeviceGetNumberOfEntities( device ) < 2 ) { - CFRelease( result ); - return str; - } else { - if ( CFStringGetLength( str ) == 0 ) { - CFRelease( str ); - return result; - } - // does the entity name already start with the device name? - // (some drivers do this though they shouldn't) - // if so, do not prepend - if ( CFStringCompareWithOptions( result, /* endpoint name */ - str /* device name */, - CFRangeMake(0, CFStringGetLength( str ) ), 0 ) != kCFCompareEqualTo ) { - // prepend the device name to the entity name - if ( CFStringGetLength( result ) > 0 ) - CFStringInsert( result, 0, CFSTR(" ") ); - CFStringInsert( result, 0, str ); - } - CFRelease( str ); - } - } - return result; -} - -// This function was submitted by Douglas Casey Tucker and apparently -// derived largely from PortMidi. -static CFStringRef ConnectedEndpointName( MIDIEndpointRef endpoint ) -{ - CFMutableStringRef result = CFStringCreateMutable( NULL, 0 ); - CFStringRef str; - OSStatus err; - int i; - - // Does the endpoint have connections? - CFDataRef connections = NULL; - int nConnected = 0; - bool anyStrings = false; - err = MIDIObjectGetDataProperty( endpoint, kMIDIPropertyConnectionUniqueID, &connections ); - if ( connections != NULL ) { - // It has connections, follow them - // Concatenate the names of all connected devices - nConnected = CFDataGetLength( connections ) / sizeof(MIDIUniqueID); - if ( nConnected ) { - const SInt32 *pid = (const SInt32 *)(CFDataGetBytePtr(connections)); - for ( i=0; i= MIDIGetNumberOfSources() ) { - ost << "MidiInCore::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - return stringName; - } - - portRef = MIDIGetSource( portNumber ); - nameRef = ConnectedEndpointName(portRef); - CFStringGetCString( nameRef, name, sizeof(name), 0); - CFRelease( nameRef ); - - return stringName = name; -} - -//*********************************************************************// -// API: OS-X -// Class Definitions: MidiOutCore -//*********************************************************************// - -MidiOutCore :: MidiOutCore( const std::string clientName ) : MidiOutApi() -{ - initialize( clientName ); -} - -MidiOutCore :: ~MidiOutCore( void ) -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - CoreMidiData *data = static_cast (apiData_); - MIDIClientDispose( data->client ); - if ( data->endpoint ) MIDIEndpointDispose( data->endpoint ); - delete data; -} - -void MidiOutCore :: initialize( const std::string& clientName ) -{ - // Set up our client. - MIDIClientRef client; - OSStatus result = MIDIClientCreate( CFStringCreateWithCString( NULL, clientName.c_str(), kCFStringEncodingASCII ), NULL, NULL, &client ); - if ( result != noErr ) { - errorString_ = "MidiOutCore::initialize: error creating OS-X MIDI client object."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - CoreMidiData *data = (CoreMidiData *) new CoreMidiData; - data->client = client; - data->endpoint = 0; - apiData_ = (void *) data; -} - -unsigned int MidiOutCore :: getPortCount() -{ - return MIDIGetNumberOfDestinations(); -} - -std::string MidiOutCore :: getPortName( unsigned int portNumber ) -{ - CFStringRef nameRef; - MIDIEndpointRef portRef; - std::ostringstream ost; - char name[128]; - - std::string stringName; - if ( portNumber >= MIDIGetNumberOfDestinations() ) { - ost << "MidiOutCore::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - return stringName; - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - portRef = MIDIGetDestination( portNumber ); - nameRef = ConnectedEndpointName(portRef); - CFStringGetCString( nameRef, name, sizeof(name), 0); - CFRelease( nameRef ); - - return stringName = name; -} - -void MidiOutCore :: openPort( unsigned int portNumber, const std::string portName ) -{ - if ( connected_ ) { - errorString_ = "MidiOutCore::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nDest = MIDIGetNumberOfDestinations(); - if (nDest < 1) { - errorString_ = "MidiOutCore::openPort: no MIDI output destinations found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - std::ostringstream ost; - if ( portNumber >= nDest ) { - ost << "MidiOutCore::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - MIDIPortRef port; - CoreMidiData *data = static_cast (apiData_); - OSStatus result = MIDIOutputPortCreate( data->client, - CFStringCreateWithCString( NULL, portName.c_str(), kCFStringEncodingASCII ), - &port ); - if ( result != noErr ) { - MIDIClientDispose( data->client ); - errorString_ = "MidiOutCore::openPort: error creating OS-X MIDI output port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Get the desired output port identifier. - MIDIEndpointRef destination = MIDIGetDestination( portNumber ); - if ( destination == 0 ) { - MIDIPortDispose( port ); - MIDIClientDispose( data->client ); - errorString_ = "MidiOutCore::openPort: error getting MIDI output destination reference."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - data->port = port; - data->destinationId = destination; - connected_ = true; -} - -void MidiOutCore :: closePort( void ) -{ - if ( connected_ ) { - CoreMidiData *data = static_cast (apiData_); - MIDIPortDispose( data->port ); - connected_ = false; - } -} - -void MidiOutCore :: openVirtualPort( std::string portName ) -{ - CoreMidiData *data = static_cast (apiData_); - - if ( data->endpoint ) { - errorString_ = "MidiOutCore::openVirtualPort: a virtual output port already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - // Create a virtual MIDI output source. - MIDIEndpointRef endpoint; - OSStatus result = MIDISourceCreate( data->client, - CFStringCreateWithCString( NULL, portName.c_str(), kCFStringEncodingASCII ), - &endpoint ); - if ( result != noErr ) { - errorString_ = "MidiOutCore::initialize: error creating OS-X virtual MIDI source."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - data->endpoint = endpoint; -} - -char *sysexBuffer = 0; - -void sysexCompletionProc( MIDISysexSendRequest * sreq ) -{ - //std::cout << "Completed SysEx send\n"; - delete sysexBuffer; - sysexBuffer = 0; -} - -void MidiOutCore :: sendMessage( std::vector *message ) -{ - // We use the MIDISendSysex() function to asynchronously send sysex - // messages. Otherwise, we use a single CoreMidi MIDIPacket. - unsigned int nBytes = message->size(); - if ( nBytes == 0 ) { - errorString_ = "MidiOutCore::sendMessage: no data in message argument!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - // unsigned int packetBytes, bytesLeft = nBytes; - // unsigned int messageIndex = 0; - MIDITimeStamp timeStamp = AudioGetCurrentHostTime(); - CoreMidiData *data = static_cast (apiData_); - OSStatus result; - - if ( message->at(0) == 0xF0 ) { - - while ( sysexBuffer != 0 ) usleep( 1000 ); // sleep 1 ms - - sysexBuffer = new char[nBytes]; - if ( sysexBuffer == NULL ) { - errorString_ = "MidiOutCore::sendMessage: error allocating sysex message memory!"; - RtMidi::error( RtError::MEMORY_ERROR, errorString_ ); - } - - // Copy data to buffer. - for ( unsigned int i=0; iat(i); - - data->sysexreq.destination = data->destinationId; - data->sysexreq.data = (Byte *)sysexBuffer; - data->sysexreq.bytesToSend = nBytes; - data->sysexreq.complete = 0; - data->sysexreq.completionProc = sysexCompletionProc; - data->sysexreq.completionRefCon = &(data->sysexreq); - - result = MIDISendSysex( &(data->sysexreq) ); - if ( result != noErr ) { - errorString_ = "MidiOutCore::sendMessage: error sending MIDI to virtual destinations."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - return; - } - else if ( nBytes > 3 ) { - errorString_ = "MidiOutCore::sendMessage: message format problem ... not sysex but > 3 bytes?"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - MIDIPacketList packetList; - MIDIPacket *packet = MIDIPacketListInit( &packetList ); - packet = MIDIPacketListAdd( &packetList, sizeof(packetList), packet, timeStamp, nBytes, (const Byte *) &message->at( 0 ) ); - if ( !packet ) { - errorString_ = "MidiOutCore::sendMessage: could not allocate packet list"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Send to any destinations that may have connected to us. - if ( data->endpoint ) { - result = MIDIReceived( data->endpoint, &packetList ); - if ( result != noErr ) { - errorString_ = "MidiOutCore::sendMessage: error sending MIDI to virtual destinations."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - } - - // And send to an explicit destination port if we're connected. - if ( connected_ ) { - result = MIDISend( data->port, data->destinationId, &packetList ); - if ( result != noErr ) { - errorString_ = "MidiOutCore::sendMessage: error sending MIDI message to port."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - } - -} - -#endif // __MACOSX_CORE__ - - -//*********************************************************************// -// API: LINUX ALSA SEQUENCER -//*********************************************************************// - -// API information found at: -// - http://www.alsa-project.org/documentation.php#Library - -#if defined(__LINUX_ALSA__) - -// The ALSA Sequencer API is based on the use of a callback function for -// MIDI input. -// -// Thanks to Pedro Lopez-Cabanillas for help with the ALSA sequencer -// time stamps and other assorted fixes!!! - -// If you don't need timestamping for incoming MIDI events, define the -// preprocessor definition AVOID_TIMESTAMPING to save resources -// associated with the ALSA sequencer queues. - -#include -#include - -// ALSA header file. -#include - -// Global sequencer instance created when first In/Out object is -// created, then destroyed when last In/Out is deleted. -static snd_seq_t *s_seq = NULL; - -// Variable to keep track of how many ports are open. -static unsigned int s_numPorts = 0; - -// The client name to use when creating the sequencer, which is -// currently set on the first call to createSequencer. -static std::string s_clientName = "RtMidi Client"; - -// A structure to hold variables related to the ALSA API -// implementation. -struct AlsaMidiData { - snd_seq_t *seq; - unsigned int portNum; - int vport; - snd_seq_port_subscribe_t *subscription; - snd_midi_event_t *coder; - unsigned int bufferSize; - unsigned char *buffer; - pthread_t thread; - pthread_t dummy_thread_id; - unsigned long long lastTime; - int queue_id; // an input queue is needed to get timestamped events - int trigger_fds[2]; -}; - -#define PORT_TYPE( pinfo, bits ) ((snd_seq_port_info_get_capability(pinfo) & (bits)) == (bits)) - -snd_seq_t* createSequencer( const std::string& clientName ) -{ - // Set up the ALSA sequencer client. - if ( s_seq == NULL ) { - int result = snd_seq_open(&s_seq, "default", SND_SEQ_OPEN_DUPLEX, SND_SEQ_NONBLOCK); - if ( result < 0 ) { - s_seq = NULL; - } - else { - // Set client name, use current name if given string is empty. - if ( clientName != "" ) { - s_clientName = clientName; - } - snd_seq_set_client_name( s_seq, s_clientName.c_str() ); - } - } - - // Increment port count. - s_numPorts++; - - return s_seq; -} - -void freeSequencer ( void ) -{ - s_numPorts--; - if ( s_numPorts == 0 && s_seq != NULL ) { - snd_seq_close( s_seq ); - s_seq = NULL; - } -} - -//*********************************************************************// -// API: LINUX ALSA -// Class Definitions: MidiInAlsa -//*********************************************************************// - -extern "C" void *alsaMidiHandler( void *ptr ) -{ - MidiInApi::RtMidiInData *data = static_cast (ptr); - AlsaMidiData *apiData = static_cast (data->apiData); - - long nBytes; - unsigned long long time, lastTime; - bool continueSysex = false; - bool doDecode = false; - MidiInApi::MidiMessage message; - int poll_fd_count; - struct pollfd *poll_fds; - - snd_seq_event_t *ev; - int result; - apiData->bufferSize = 32; - result = snd_midi_event_new( 0, &apiData->coder ); - if ( result < 0 ) { - data->doInput = false; - std::cerr << "\nMidiInAlsa::alsaMidiHandler: error initializing MIDI event parser!\n\n"; - return 0; - } - unsigned char *buffer = (unsigned char *) malloc( apiData->bufferSize ); - if ( buffer == NULL ) { - data->doInput = false; - snd_midi_event_free( apiData->coder ); - apiData->coder = 0; - std::cerr << "\nMidiInAlsa::alsaMidiHandler: error initializing buffer memory!\n\n"; - return 0; - } - snd_midi_event_init( apiData->coder ); - snd_midi_event_no_status( apiData->coder, 1 ); // suppress running status messages - - poll_fd_count = snd_seq_poll_descriptors_count( apiData->seq, POLLIN ) + 1; - poll_fds = (struct pollfd*)alloca( poll_fd_count * sizeof( struct pollfd )); - snd_seq_poll_descriptors( apiData->seq, poll_fds + 1, poll_fd_count - 1, POLLIN ); - poll_fds[0].fd = apiData->trigger_fds[0]; - poll_fds[0].events = POLLIN; - - while ( data->doInput ) { - - if ( snd_seq_event_input_pending( apiData->seq, 1 ) == 0 ) { - // No data pending - if ( poll( poll_fds, poll_fd_count, -1) >= 0 ) { - if ( poll_fds[0].revents & POLLIN ) { - bool dummy; - int res = read( poll_fds[0].fd, &dummy, sizeof(dummy) ); - (void) res; - } - } - continue; - } - - // If here, there should be data. - result = snd_seq_event_input( apiData->seq, &ev ); - if ( result == -ENOSPC ) { - std::cerr << "\nMidiInAlsa::alsaMidiHandler: MIDI input buffer overrun!\n\n"; - continue; - } - else if ( result <= 0 ) { - std::cerr << "MidiInAlsa::alsaMidiHandler: unknown MIDI input error!\n"; - continue; - } - - // This is a bit weird, but we now have to decode an ALSA MIDI - // event (back) into MIDI bytes. We'll ignore non-MIDI types. - if ( !continueSysex ) message.bytes.clear(); - - doDecode = false; - switch ( ev->type ) { - - case SND_SEQ_EVENT_PORT_SUBSCRIBED: -#if defined(__RTMIDI_DEBUG__) - std::cout << "MidiInAlsa::alsaMidiHandler: port connection made!\n"; -#endif - break; - - case SND_SEQ_EVENT_PORT_UNSUBSCRIBED: -#if defined(__RTMIDI_DEBUG__) - std::cerr << "MidiInAlsa::alsaMidiHandler: port connection has closed!\n"; - std::cout << "sender = " << (int) ev->data.connect.sender.client << ":" - << (int) ev->data.connect.sender.port - << ", dest = " << (int) ev->data.connect.dest.client << ":" - << (int) ev->data.connect.dest.port - << std::endl; -#endif - break; - - case SND_SEQ_EVENT_QFRAME: // MIDI time code - if ( !( data->ignoreFlags & 0x02 ) ) doDecode = true; - break; - - case SND_SEQ_EVENT_TICK: // MIDI timing tick - if ( !( data->ignoreFlags & 0x02 ) ) doDecode = true; - break; - - case SND_SEQ_EVENT_SENSING: // Active sensing - if ( !( data->ignoreFlags & 0x04 ) ) doDecode = true; - break; - - case SND_SEQ_EVENT_SYSEX: - if ( (data->ignoreFlags & 0x01) ) break; - if ( ev->data.ext.len > apiData->bufferSize ) { - apiData->bufferSize = ev->data.ext.len; - free( buffer ); - buffer = (unsigned char *) malloc( apiData->bufferSize ); - if ( buffer == NULL ) { - data->doInput = false; - std::cerr << "\nMidiInAlsa::alsaMidiHandler: error resizing buffer memory!\n\n"; - break; - } - } - - default: - doDecode = true; - } - - if ( doDecode ) { - - nBytes = snd_midi_event_decode( apiData->coder, buffer, apiData->bufferSize, ev ); - if ( nBytes > 0 ) { - // The ALSA sequencer has a maximum buffer size for MIDI sysex - // events of 256 bytes. If a device sends sysex messages larger - // than this, they are segmented into 256 byte chunks. So, - // we'll watch for this and concatenate sysex chunks into a - // single sysex message if necessary. - if ( !continueSysex ) - message.bytes.assign( buffer, &buffer[nBytes] ); - else - message.bytes.insert( message.bytes.end(), buffer, &buffer[nBytes] ); - - continueSysex = ( ( ev->type == SND_SEQ_EVENT_SYSEX ) && ( message.bytes.back() != 0xF7 ) ); - if ( !continueSysex ) { - - // Calculate the time stamp: - message.timeStamp = 0.0; - - // Method 1: Use the system time. - //(void)gettimeofday(&tv, (struct timezone *)NULL); - //time = (tv.tv_sec * 1000000) + tv.tv_usec; - - // Method 2: Use the ALSA sequencer event time data. - // (thanks to Pedro Lopez-Cabanillas!). - time = ( ev->time.time.tv_sec * 1000000 ) + ( ev->time.time.tv_nsec/1000 ); - lastTime = time; - time -= apiData->lastTime; - apiData->lastTime = lastTime; - if ( data->firstMessage == true ) - data->firstMessage = false; - else - message.timeStamp = time * 0.000001; - } - else { -#if defined(__RTMIDI_DEBUG__) - std::cerr << "\nMidiInAlsa::alsaMidiHandler: event parsing error or not a MIDI event!\n\n"; -#endif - } - } - } - - snd_seq_free_event( ev ); - if ( message.bytes.size() == 0 || continueSysex ) continue; - - if ( data->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) data->userCallback; - callback( message.timeStamp, &message.bytes, data->userData ); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( data->queue.size < data->queue.ringSize ) { - data->queue.ring[data->queue.back++] = message; - if ( data->queue.back == data->queue.ringSize ) - data->queue.back = 0; - data->queue.size++; - } - else - std::cerr << "\nMidiInAlsa: message queue limit reached!!\n\n"; - } - } - - if ( buffer ) free( buffer ); - snd_midi_event_free( apiData->coder ); - apiData->coder = 0; - apiData->thread = apiData->dummy_thread_id; - return 0; -} - -MidiInAlsa :: MidiInAlsa( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) -{ - initialize( clientName ); -} - -MidiInAlsa :: ~MidiInAlsa() -{ - // Close a connection if it exists. - closePort(); - - // Shutdown the input thread. - AlsaMidiData *data = static_cast (apiData_); - if ( inputData_.doInput ) { - inputData_.doInput = false; - int res = write( data->trigger_fds[1], &inputData_.doInput, sizeof(inputData_.doInput) ); - (void) res; - if ( !pthread_equal(data->thread, data->dummy_thread_id) ) - pthread_join( data->thread, NULL ); - } - - // Cleanup. - close ( data->trigger_fds[0] ); - close ( data->trigger_fds[1] ); - if ( data->vport >= 0 ) snd_seq_delete_port( data->seq, data->vport ); -#ifndef AVOID_TIMESTAMPING - snd_seq_free_queue( data->seq, data->queue_id ); -#endif - freeSequencer(); - delete data; -} - -void MidiInAlsa :: initialize( const std::string& clientName ) -{ - snd_seq_t* seq = createSequencer( clientName ); - if ( seq == NULL ) { - s_seq = NULL; - errorString_ = "MidiInAlsa::initialize: error creating ALSA sequencer client object."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - AlsaMidiData *data = (AlsaMidiData *) new AlsaMidiData; - data->seq = seq; - data->portNum = -1; - data->vport = -1; - data->subscription = 0; - data->dummy_thread_id = pthread_self(); - data->thread = data->dummy_thread_id; - data->trigger_fds[0] = -1; - data->trigger_fds[1] = -1; - apiData_ = (void *) data; - inputData_.apiData = (void *) data; - - if ( pipe(data->trigger_fds) == -1 ) { - errorString_ = "MidiInAlsa::initialize: error creating pipe objects."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Create the input queue -#ifndef AVOID_TIMESTAMPING - data->queue_id = snd_seq_alloc_named_queue(s_seq, "RtMidi Queue"); - // Set arbitrary tempo (mm=100) and resolution (240) - snd_seq_queue_tempo_t *qtempo; - snd_seq_queue_tempo_alloca(&qtempo); - snd_seq_queue_tempo_set_tempo(qtempo, 600000); - snd_seq_queue_tempo_set_ppq(qtempo, 240); - snd_seq_set_queue_tempo(data->seq, data->queue_id, qtempo); - snd_seq_drain_output(data->seq); -#endif -} - -// This function is used to count or get the pinfo structure for a given port number. -unsigned int portInfo( snd_seq_t *seq, snd_seq_port_info_t *pinfo, unsigned int type, int portNumber ) -{ - snd_seq_client_info_t *cinfo; - int client; - int count = 0; - snd_seq_client_info_alloca( &cinfo ); - - snd_seq_client_info_set_client( cinfo, -1 ); - while ( snd_seq_query_next_client( seq, cinfo ) >= 0 ) { - client = snd_seq_client_info_get_client( cinfo ); - if ( client == 0 ) continue; - // Reset query info - snd_seq_port_info_set_client( pinfo, client ); - snd_seq_port_info_set_port( pinfo, -1 ); - while ( snd_seq_query_next_port( seq, pinfo ) >= 0 ) { - unsigned int atyp = snd_seq_port_info_get_type( pinfo ); - if ( ( atyp & SND_SEQ_PORT_TYPE_MIDI_GENERIC ) == 0 ) continue; - unsigned int caps = snd_seq_port_info_get_capability( pinfo ); - if ( ( caps & type ) != type ) continue; - if ( count == portNumber ) return 1; - ++count; - } - } - - // If a negative portNumber was used, return the port count. - if ( portNumber < 0 ) return count; - return 0; -} - -unsigned int MidiInAlsa :: getPortCount() -{ - snd_seq_port_info_t *pinfo; - snd_seq_port_info_alloca( &pinfo ); - - AlsaMidiData *data = static_cast (apiData_); - return portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, -1 ); -} - -std::string MidiInAlsa :: getPortName( unsigned int portNumber ) -{ - snd_seq_client_info_t *cinfo; - snd_seq_port_info_t *pinfo; - snd_seq_client_info_alloca( &cinfo ); - snd_seq_port_info_alloca( &pinfo ); - - std::string stringName; - AlsaMidiData *data = static_cast (apiData_); - if ( portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, (int) portNumber ) ) { - int cnum = snd_seq_port_info_get_client( pinfo ); - snd_seq_get_any_client_info( data->seq, cnum, cinfo ); - std::ostringstream os; - os << snd_seq_client_info_get_name( cinfo ); - os << " "; // GO: These lines added to make sure devices are listed - os << snd_seq_port_info_get_client( pinfo ); // GO: with full portnames added to ensure individual device names - os << ":"; - os << snd_seq_port_info_get_port( pinfo ); - stringName = os.str(); - return stringName; - } - - // If we get here, we didn't find a match. - errorString_ = "MidiInAlsa::getPortName: error looking for port name!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return stringName; - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); -} - -void MidiInAlsa :: openPort( unsigned int portNumber, const std::string portName ) -{ - if ( connected_ ) { - errorString_ = "MidiInAlsa::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nSrc = this->getPortCount(); - if (nSrc < 1) { - errorString_ = "MidiInAlsa::openPort: no MIDI input sources found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - snd_seq_port_info_t *pinfo; - snd_seq_port_info_alloca( &pinfo ); - std::ostringstream ost; - AlsaMidiData *data = static_cast (apiData_); - if ( portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, (int) portNumber ) == 0 ) { - ost << "MidiInAlsa::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - - snd_seq_addr_t sender, receiver; - sender.client = snd_seq_port_info_get_client( pinfo ); - sender.port = snd_seq_port_info_get_port( pinfo ); - receiver.client = snd_seq_client_id( data->seq ); - if ( data->vport < 0 ) { - snd_seq_port_info_set_client( pinfo, 0 ); - snd_seq_port_info_set_port( pinfo, 0 ); - snd_seq_port_info_set_capability( pinfo, - SND_SEQ_PORT_CAP_WRITE | - SND_SEQ_PORT_CAP_SUBS_WRITE ); - snd_seq_port_info_set_type( pinfo, - SND_SEQ_PORT_TYPE_MIDI_GENERIC | - SND_SEQ_PORT_TYPE_APPLICATION ); - snd_seq_port_info_set_midi_channels(pinfo, 16); -#ifndef AVOID_TIMESTAMPING - snd_seq_port_info_set_timestamping(pinfo, 1); - snd_seq_port_info_set_timestamp_real(pinfo, 1); - snd_seq_port_info_set_timestamp_queue(pinfo, data->queue_id); -#endif - snd_seq_port_info_set_name(pinfo, portName.c_str() ); - data->vport = snd_seq_create_port(data->seq, pinfo); - - if ( data->vport < 0 ) { - errorString_ = "MidiInAlsa::openPort: ALSA error creating input port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - receiver.port = data->vport; - - if ( !data->subscription ) { - // Make subscription - if (snd_seq_port_subscribe_malloc( &data->subscription ) < 0) { - errorString_ = "MidiInAlsa::openPort: ALSA error allocation port subscription."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - snd_seq_port_subscribe_set_sender(data->subscription, &sender); - snd_seq_port_subscribe_set_dest(data->subscription, &receiver); - if ( snd_seq_subscribe_port(data->seq, data->subscription) ) { - snd_seq_port_subscribe_free( data->subscription ); - data->subscription = 0; - errorString_ = "MidiInAlsa::openPort: ALSA error making port connection."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - if ( inputData_.doInput == false ) { - // Start the input queue -#ifndef AVOID_TIMESTAMPING - snd_seq_start_queue( data->seq, data->queue_id, NULL ); - snd_seq_drain_output( data->seq ); -#endif - // Start our MIDI input thread. - pthread_attr_t attr; - pthread_attr_init(&attr); - pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); - pthread_attr_setschedpolicy(&attr, SCHED_OTHER); - - inputData_.doInput = true; - int err = pthread_create(&data->thread, &attr, alsaMidiHandler, &inputData_); - pthread_attr_destroy(&attr); - if ( err ) { - snd_seq_unsubscribe_port( data->seq, data->subscription ); - snd_seq_port_subscribe_free( data->subscription ); - data->subscription = 0; - inputData_.doInput = false; - errorString_ = "MidiInAlsa::openPort: error starting MIDI input thread!"; - RtMidi::error( RtError::THREAD_ERROR, errorString_ ); - } - } - - connected_ = true; -} - -void MidiInAlsa :: openVirtualPort( std::string portName ) -{ - AlsaMidiData *data = static_cast (apiData_); - if ( data->vport < 0 ) { - snd_seq_port_info_t *pinfo; - snd_seq_port_info_alloca( &pinfo ); - snd_seq_port_info_set_capability( pinfo, - SND_SEQ_PORT_CAP_WRITE | - SND_SEQ_PORT_CAP_SUBS_WRITE ); - snd_seq_port_info_set_type( pinfo, - SND_SEQ_PORT_TYPE_MIDI_GENERIC | - SND_SEQ_PORT_TYPE_APPLICATION ); - snd_seq_port_info_set_midi_channels(pinfo, 16); -#ifndef AVOID_TIMESTAMPING - snd_seq_port_info_set_timestamping(pinfo, 1); - snd_seq_port_info_set_timestamp_real(pinfo, 1); - snd_seq_port_info_set_timestamp_queue(pinfo, data->queue_id); -#endif - snd_seq_port_info_set_name(pinfo, portName.c_str()); - data->vport = snd_seq_create_port(data->seq, pinfo); - - if ( data->vport < 0 ) { - errorString_ = "MidiInAlsa::openVirtualPort: ALSA error creating virtual port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - if ( inputData_.doInput == false ) { - // Wait for old thread to stop, if still running - if ( !pthread_equal(data->thread, data->dummy_thread_id) ) - pthread_join( data->thread, NULL ); - - // Start the input queue -#ifndef AVOID_TIMESTAMPING - snd_seq_start_queue( data->seq, data->queue_id, NULL ); - snd_seq_drain_output( data->seq ); -#endif - // Start our MIDI input thread. - pthread_attr_t attr; - pthread_attr_init(&attr); - pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); - pthread_attr_setschedpolicy(&attr, SCHED_OTHER); - - inputData_.doInput = true; - int err = pthread_create(&data->thread, &attr, alsaMidiHandler, &inputData_); - pthread_attr_destroy(&attr); - if ( err ) { - if ( data->subscription ) { - snd_seq_unsubscribe_port( data->seq, data->subscription ); - snd_seq_port_subscribe_free( data->subscription ); - data->subscription = 0; - } - inputData_.doInput = false; - errorString_ = "MidiInAlsa::openPort: error starting MIDI input thread!"; - RtMidi::error( RtError::THREAD_ERROR, errorString_ ); - } - } -} - -void MidiInAlsa :: closePort( void ) -{ - AlsaMidiData *data = static_cast (apiData_); - - if ( connected_ ) { - if ( data->subscription ) { - snd_seq_unsubscribe_port( data->seq, data->subscription ); - snd_seq_port_subscribe_free( data->subscription ); - data->subscription = 0; - } - // Stop the input queue -#ifndef AVOID_TIMESTAMPING - snd_seq_stop_queue( data->seq, data->queue_id, NULL ); - snd_seq_drain_output( data->seq ); -#endif - connected_ = false; - } - - // Stop thread to avoid triggering the callback, while the port is intended to be closed - if ( inputData_.doInput ) { - inputData_.doInput = false; - int res = write( data->trigger_fds[1], &inputData_.doInput, sizeof(inputData_.doInput) ); - (void) res; - if ( !pthread_equal(data->thread, data->dummy_thread_id) ) - pthread_join( data->thread, NULL ); - } -} - -//*********************************************************************// -// API: LINUX ALSA -// Class Definitions: MidiOutAlsa -//*********************************************************************// - -MidiOutAlsa :: MidiOutAlsa( const std::string clientName ) : MidiOutApi() -{ - initialize( clientName ); -} - -MidiOutAlsa :: ~MidiOutAlsa() -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - AlsaMidiData *data = static_cast (apiData_); - if ( data->vport >= 0 ) snd_seq_delete_port( data->seq, data->vport ); - if ( data->coder ) snd_midi_event_free( data->coder ); - if ( data->buffer ) free( data->buffer ); - freeSequencer(); - delete data; -} - -void MidiOutAlsa :: initialize( const std::string& clientName ) -{ - snd_seq_t* seq = createSequencer( clientName ); - if ( seq == NULL ) { - s_seq = NULL; - errorString_ = "MidiOutAlsa::initialize: error creating ALSA sequencer client object."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Save our api-specific connection information. - AlsaMidiData *data = (AlsaMidiData *) new AlsaMidiData; - data->seq = seq; - data->portNum = -1; - data->vport = -1; - data->bufferSize = 32; - data->coder = 0; - data->buffer = 0; - int result = snd_midi_event_new( data->bufferSize, &data->coder ); - if ( result < 0 ) { - delete data; - errorString_ = "MidiOutAlsa::initialize: error initializing MIDI event parser!\n\n"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - data->buffer = (unsigned char *) malloc( data->bufferSize ); - if ( data->buffer == NULL ) { - delete data; - errorString_ = "MidiOutAlsa::initialize: error allocating buffer memory!\n\n"; - RtMidi::error( RtError::MEMORY_ERROR, errorString_ ); - } - snd_midi_event_init( data->coder ); - apiData_ = (void *) data; -} - -unsigned int MidiOutAlsa :: getPortCount() -{ - snd_seq_port_info_t *pinfo; - snd_seq_port_info_alloca( &pinfo ); - - AlsaMidiData *data = static_cast (apiData_); - return portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE, -1 ); -} - -std::string MidiOutAlsa :: getPortName( unsigned int portNumber ) -{ - snd_seq_client_info_t *cinfo; - snd_seq_port_info_t *pinfo; - snd_seq_client_info_alloca( &cinfo ); - snd_seq_port_info_alloca( &pinfo ); - - std::string stringName; - AlsaMidiData *data = static_cast (apiData_); - if ( portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE, (int) portNumber ) ) { - int cnum = snd_seq_port_info_get_client(pinfo); - snd_seq_get_any_client_info( data->seq, cnum, cinfo ); - std::ostringstream os; - os << snd_seq_client_info_get_name(cinfo); - os << ":"; - os << snd_seq_port_info_get_port(pinfo); - stringName = os.str(); - return stringName; - } - - // If we get here, we didn't find a match. - errorString_ = "MidiOutAlsa::getPortName: error looking for port name!"; - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - RtMidi::error( RtError::WARNING, errorString_ ); - return stringName; -} - -void MidiOutAlsa :: openPort( unsigned int portNumber, const std::string portName ) -{ - if ( connected_ ) { - errorString_ = "MidiOutAlsa::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nSrc = this->getPortCount(); - if (nSrc < 1) { - errorString_ = "MidiOutAlsa::openPort: no MIDI output sources found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - snd_seq_port_info_t *pinfo; - snd_seq_port_info_alloca( &pinfo ); - std::ostringstream ost; - AlsaMidiData *data = static_cast (apiData_); - if ( portInfo( data->seq, pinfo, SND_SEQ_PORT_CAP_WRITE|SND_SEQ_PORT_CAP_SUBS_WRITE, (int) portNumber ) == 0 ) { - ost << "MidiOutAlsa::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - snd_seq_addr_t sender, receiver; - receiver.client = snd_seq_port_info_get_client( pinfo ); - receiver.port = snd_seq_port_info_get_port( pinfo ); - sender.client = snd_seq_client_id( data->seq ); - - if ( data->vport < 0 ) { - data->vport = snd_seq_create_simple_port( data->seq, portName.c_str(), - SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, - SND_SEQ_PORT_TYPE_MIDI_GENERIC|SND_SEQ_PORT_TYPE_APPLICATION ); - if ( data->vport < 0 ) { - errorString_ = "MidiOutAlsa::openPort: ALSA error creating output port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - sender.port = data->vport; - - // Make subscription - if (snd_seq_port_subscribe_malloc( &data->subscription ) < 0) { - snd_seq_port_subscribe_free( data->subscription ); - errorString_ = "MidiOutAlsa::openPort: error allocation port subscribtion."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - snd_seq_port_subscribe_set_sender(data->subscription, &sender); - snd_seq_port_subscribe_set_dest(data->subscription, &receiver); - snd_seq_port_subscribe_set_time_update(data->subscription, 1); - snd_seq_port_subscribe_set_time_real(data->subscription, 1); - if ( snd_seq_subscribe_port(data->seq, data->subscription) ) { - snd_seq_port_subscribe_free( data->subscription ); - errorString_ = "MidiOutAlsa::openPort: ALSA error making port connection."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - connected_ = true; -} - -void MidiOutAlsa :: closePort( void ) -{ - if ( connected_ ) { - AlsaMidiData *data = static_cast (apiData_); - snd_seq_unsubscribe_port( data->seq, data->subscription ); - snd_seq_port_subscribe_free( data->subscription ); - connected_ = false; - } -} - -void MidiOutAlsa :: openVirtualPort( std::string portName ) -{ - AlsaMidiData *data = static_cast (apiData_); - if ( data->vport < 0 ) { - data->vport = snd_seq_create_simple_port( data->seq, portName.c_str(), - SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, - SND_SEQ_PORT_TYPE_MIDI_GENERIC|SND_SEQ_PORT_TYPE_APPLICATION ); - - if ( data->vport < 0 ) { - errorString_ = "MidiOutAlsa::openVirtualPort: ALSA error creating virtual port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } -} - -void MidiOutAlsa :: sendMessage( std::vector *message ) -{ - int result; - AlsaMidiData *data = static_cast (apiData_); - unsigned int nBytes = message->size(); - if ( nBytes > data->bufferSize ) { - data->bufferSize = nBytes; - result = snd_midi_event_resize_buffer ( data->coder, nBytes); - if ( result != 0 ) { - errorString_ = "MidiOutAlsa::sendMessage: ALSA error resizing MIDI event buffer."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - free (data->buffer); - data->buffer = (unsigned char *) malloc( data->bufferSize ); - if ( data->buffer == NULL ) { - errorString_ = "MidiOutAlsa::initialize: error allocating buffer memory!\n\n"; - RtMidi::error( RtError::MEMORY_ERROR, errorString_ ); - } - } - - snd_seq_event_t ev; - snd_seq_ev_clear(&ev); - snd_seq_ev_set_source(&ev, data->vport); - snd_seq_ev_set_subs(&ev); - snd_seq_ev_set_direct(&ev); - for ( unsigned int i=0; ibuffer[i] = message->at(i); - result = snd_midi_event_encode( data->coder, data->buffer, (long)nBytes, &ev ); - if ( result < (int)nBytes ) { - errorString_ = "MidiOutAlsa::sendMessage: event parsing error!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - // Send the event. - result = snd_seq_event_output(data->seq, &ev); - if ( result < 0 ) { - errorString_ = "MidiOutAlsa::sendMessage: error sending MIDI message to port."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - snd_seq_drain_output(data->seq); -} - -#endif // __LINUX_ALSA__ - - -//*********************************************************************// -// API: Windows Multimedia Library (MM) -//*********************************************************************// - -// API information deciphered from: -// - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_midi_reference.asp - -// Thanks to Jean-Baptiste Berruchon for the sysex code. - -#if defined(__WINDOWS_MM__) - -// The Windows MM API is based on the use of a callback function for -// MIDI input. We convert the system specific time stamps to delta -// time values. - -// Windows MM MIDI header files. -#include -#include - -#define RT_SYSEX_BUFFER_SIZE 1024 -#define RT_SYSEX_BUFFER_COUNT 4 - -// A structure to hold variables related to the CoreMIDI API -// implementation. -struct WinMidiData { - HMIDIIN inHandle; // Handle to Midi Input Device - HMIDIOUT outHandle; // Handle to Midi Output Device - DWORD lastTime; - MidiInApi::MidiMessage message; - LPMIDIHDR sysexBuffer[RT_SYSEX_BUFFER_COUNT]; -}; - -//*********************************************************************// -// API: Windows MM -// Class Definitions: MidiInWinMM -//*********************************************************************// - -static void CALLBACK midiInputCallback( HMIDIIN hmin, - UINT inputStatus, - DWORD_PTR instancePtr, - DWORD_PTR midiMessage, - DWORD timestamp ) -{ - if ( inputStatus != MIM_DATA && inputStatus != MIM_LONGDATA && inputStatus != MIM_LONGERROR ) return; - - //MidiInApi::RtMidiInData *data = static_cast (instancePtr); - MidiInApi::RtMidiInData *data = (MidiInApi::RtMidiInData *)instancePtr; - WinMidiData *apiData = static_cast (data->apiData); - - // Calculate time stamp. - if ( data->firstMessage == true ) { - apiData->message.timeStamp = 0.0; - data->firstMessage = false; - } - else apiData->message.timeStamp = (double) ( timestamp - apiData->lastTime ) * 0.001; - apiData->lastTime = timestamp; - - if ( inputStatus == MIM_DATA ) { // Channel or system message - - // Make sure the first byte is a status byte. - unsigned char status = (unsigned char) (midiMessage & 0x000000FF); - if ( !(status & 0x80) ) return; - - // Determine the number of bytes in the MIDI message. - unsigned short nBytes = 1; - if ( status < 0xC0 ) nBytes = 3; - else if ( status < 0xE0 ) nBytes = 2; - else if ( status < 0xF0 ) nBytes = 3; - else if ( status == 0xF1 ) { - if ( data->ignoreFlags & 0x02 ) return; - else nBytes = 2; - } - else if ( status == 0xF2 ) nBytes = 3; - else if ( status == 0xF3 ) nBytes = 2; - else if ( status == 0xF8 && (data->ignoreFlags & 0x02) ) { - // A MIDI timing tick message and we're ignoring it. - return; - } - else if ( status == 0xFE && (data->ignoreFlags & 0x04) ) { - // A MIDI active sensing message and we're ignoring it. - return; - } - - // Copy bytes to our MIDI message. - unsigned char *ptr = (unsigned char *) &midiMessage; - for ( int i=0; imessage.bytes.push_back( *ptr++ ); - } - else { // Sysex message ( MIM_LONGDATA or MIM_LONGERROR ) - MIDIHDR *sysex = ( MIDIHDR *) midiMessage; - if ( !( data->ignoreFlags & 0x01 ) && inputStatus != MIM_LONGERROR ) { - // Sysex message and we're not ignoring it - for ( int i=0; i<(int)sysex->dwBytesRecorded; ++i ) - apiData->message.bytes.push_back( sysex->lpData[i] ); - } - - // The WinMM API requires that the sysex buffer be requeued after - // input of each sysex message. Even if we are ignoring sysex - // messages, we still need to requeue the buffer in case the user - // decides to not ignore sysex messages in the future. However, - // it seems that WinMM calls this function with an empty sysex - // buffer when an application closes and in this case, we should - // avoid requeueing it, else the computer suddenly reboots after - // one or two minutes. - if ( apiData->sysexBuffer[sysex->dwUser]->dwBytesRecorded > 0 ) { - //if ( sysex->dwBytesRecorded > 0 ) { - MMRESULT result = midiInAddBuffer( apiData->inHandle, apiData->sysexBuffer[sysex->dwUser], sizeof(MIDIHDR) ); - if ( result != MMSYSERR_NOERROR ) - std::cerr << "\nRtMidiIn::midiInputCallback: error sending sysex to Midi device!!\n\n"; - - if ( data->ignoreFlags & 0x01 ) return; - } - else return; - } - - if ( data->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) data->userCallback; - callback( apiData->message.timeStamp, &apiData->message.bytes, data->userData ); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( data->queue.size < data->queue.ringSize ) { - data->queue.ring[data->queue.back++] = apiData->message; - if ( data->queue.back == data->queue.ringSize ) - data->queue.back = 0; - data->queue.size++; - } - else - std::cerr << "\nRtMidiIn: message queue limit reached!!\n\n"; - } - - // Clear the vector for the next input message. - apiData->message.bytes.clear(); -} - -MidiInWinMM :: MidiInWinMM( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) -{ - initialize( clientName ); -} - -MidiInWinMM :: ~MidiInWinMM() -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - WinMidiData *data = static_cast (apiData_); - delete data; -} - -void MidiInWinMM :: initialize( const std::string& /*clientName*/ ) -{ - // We'll issue a warning here if no devices are available but not - // throw an error since the user can plugin something later. - unsigned int nDevices = midiInGetNumDevs(); - if ( nDevices == 0 ) { - errorString_ = "MidiInWinMM::initialize: no MIDI input devices currently available."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - - // Save our api-specific connection information. - WinMidiData *data = (WinMidiData *) new WinMidiData; - apiData_ = (void *) data; - inputData_.apiData = (void *) data; - data->message.bytes.clear(); // needs to be empty for first input message -} - -void MidiInWinMM :: openPort( unsigned int portNumber, const std::string /*portName*/ ) -{ - if ( connected_ ) { - errorString_ = "MidiInWinMM::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nDevices = midiInGetNumDevs(); - if (nDevices == 0) { - errorString_ = "MidiInWinMM::openPort: no MIDI input sources found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - std::ostringstream ost; - if ( portNumber >= nDevices ) { - ost << "MidiInWinMM::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - WinMidiData *data = static_cast (apiData_); - MMRESULT result = midiInOpen( &data->inHandle, - portNumber, - (DWORD_PTR)&midiInputCallback, - (DWORD_PTR)&inputData_, - CALLBACK_FUNCTION ); - if ( result != MMSYSERR_NOERROR ) { - errorString_ = "MidiInWinMM::openPort: error creating Windows MM MIDI input port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Allocate and init the sysex buffers. - for ( int i=0; isysexBuffer[i] = (MIDIHDR*) new char[ sizeof(MIDIHDR) ]; - data->sysexBuffer[i]->lpData = new char[ RT_SYSEX_BUFFER_SIZE ]; - data->sysexBuffer[i]->dwBufferLength = RT_SYSEX_BUFFER_SIZE; - data->sysexBuffer[i]->dwUser = i; // We use the dwUser parameter as buffer indicator - data->sysexBuffer[i]->dwFlags = 0; - - result = midiInPrepareHeader( data->inHandle, data->sysexBuffer[i], sizeof(MIDIHDR) ); - if ( result != MMSYSERR_NOERROR ) { - midiInClose( data->inHandle ); - errorString_ = "MidiInWinMM::openPort: error starting Windows MM MIDI input port (PrepareHeader)."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Register the buffer. - result = midiInAddBuffer( data->inHandle, data->sysexBuffer[i], sizeof(MIDIHDR) ); - if ( result != MMSYSERR_NOERROR ) { - midiInClose( data->inHandle ); - errorString_ = "MidiInWinMM::openPort: error starting Windows MM MIDI input port (AddBuffer)."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - result = midiInStart( data->inHandle ); - if ( result != MMSYSERR_NOERROR ) { - midiInClose( data->inHandle ); - errorString_ = "MidiInWinMM::openPort: error starting Windows MM MIDI input port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - connected_ = true; -} - -void MidiInWinMM :: openVirtualPort( std::string portName ) -{ - // This function cannot be implemented for the Windows MM MIDI API. - errorString_ = "MidiInWinMM::openVirtualPort: cannot be implemented in Windows MM MIDI API!"; - RtMidi::error( RtError::WARNING, errorString_ ); -} - -void MidiInWinMM :: closePort( void ) -{ - if ( connected_ ) { - WinMidiData *data = static_cast (apiData_); - midiInReset( data->inHandle ); - midiInStop( data->inHandle ); - - for ( int i=0; iinHandle, data->sysexBuffer[i], sizeof(MIDIHDR)); - delete [] data->sysexBuffer[i]->lpData; - delete [] data->sysexBuffer[i]; - if ( result != MMSYSERR_NOERROR ) { - midiInClose( data->inHandle ); - errorString_ = "MidiInWinMM::openPort: error closing Windows MM MIDI input port (midiInUnprepareHeader)."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } - - midiInClose( data->inHandle ); - connected_ = false; - } -} - -unsigned int MidiInWinMM :: getPortCount() -{ - return midiInGetNumDevs(); -} - -std::string MidiInWinMM :: getPortName( unsigned int portNumber ) -{ - std::string stringName; - unsigned int nDevices = midiInGetNumDevs(); - if ( portNumber >= nDevices ) { - std::ostringstream ost; - ost << "MidiInWinMM::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - RtMidi::error( RtError::WARNING, errorString_ ); - return stringName; - } - - MIDIINCAPS deviceCaps; - midiInGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIINCAPS)); - -#if defined( UNICODE ) || defined( _UNICODE ) - int length = WideCharToMultiByte(CP_UTF8, 0, deviceCaps.szPname, -1, NULL, 0, NULL, NULL); - stringName.assign( length, 0 ); - length = WideCharToMultiByte(CP_UTF8, 0, deviceCaps.szPname, wcslen(deviceCaps.szPname), &stringName[0], length, NULL, NULL); -#else - stringName = std::string( deviceCaps.szPname ); -#endif - - // Next lines added to add the portNumber to the name so that - // the device's names are sure to be listed with individual names - // even when they have the same brand name - std::ostringstream os; - os << " "; - os << portNumber; - stringName += os.str(); - - return stringName; -} - -//*********************************************************************// -// API: Windows MM -// Class Definitions: MidiOutWinMM -//*********************************************************************// - -MidiOutWinMM :: MidiOutWinMM( const std::string clientName ) : MidiOutApi() -{ - initialize( clientName ); -} - -MidiOutWinMM :: ~MidiOutWinMM() -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - WinMidiData *data = static_cast (apiData_); - delete data; -} - -void MidiOutWinMM :: initialize( const std::string& /*clientName*/ ) -{ - // We'll issue a warning here if no devices are available but not - // throw an error since the user can plug something in later. - unsigned int nDevices = midiOutGetNumDevs(); - if ( nDevices == 0 ) { - errorString_ = "MidiOutWinMM::initialize: no MIDI output devices currently available."; - RtMidi::error( RtError::WARNING, errorString_ ); - } - - // Save our api-specific connection information. - WinMidiData *data = (WinMidiData *) new WinMidiData; - apiData_ = (void *) data; -} - -unsigned int MidiOutWinMM :: getPortCount() -{ - return midiOutGetNumDevs(); -} - -std::string MidiOutWinMM :: getPortName( unsigned int portNumber ) -{ - std::string stringName; - unsigned int nDevices = midiOutGetNumDevs(); - if ( portNumber >= nDevices ) { - std::ostringstream ost; - ost << "MidiOutWinMM::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - //RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - RtMidi::error( RtError::WARNING, errorString_ ); - return stringName; - } - - MIDIOUTCAPS deviceCaps; - midiOutGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIOUTCAPS)); - -#if defined( UNICODE ) || defined( _UNICODE ) - int length = WideCharToMultiByte(CP_UTF8, 0, deviceCaps.szPname, -1, NULL, 0, NULL, NULL); - stringName.assign( length, 0 ); - length = WideCharToMultiByte(CP_UTF8, 0, deviceCaps.szPname, wcslen(deviceCaps.szPname), &stringName[0], length, NULL, NULL); -#else - stringName = std::string( deviceCaps.szPname ); -#endif - - return stringName; -} - -void MidiOutWinMM :: openPort( unsigned int portNumber, const std::string /*portName*/ ) -{ - if ( connected_ ) { - errorString_ = "MidiOutWinMM::openPort: a valid connection already exists!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - unsigned int nDevices = midiOutGetNumDevs(); - if (nDevices < 1) { - errorString_ = "MidiOutWinMM::openPort: no MIDI output destinations found!"; - RtMidi::error( RtError::NO_DEVICES_FOUND, errorString_ ); - } - - std::ostringstream ost; - if ( portNumber >= nDevices ) { - ost << "MidiOutWinMM::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::INVALID_PARAMETER, errorString_ ); - } - - WinMidiData *data = static_cast (apiData_); - MMRESULT result = midiOutOpen( &data->outHandle, - portNumber, - (DWORD)NULL, - (DWORD)NULL, - CALLBACK_NULL ); - if ( result != MMSYSERR_NOERROR ) { - errorString_ = "MidiOutWinMM::openPort: error creating Windows MM MIDI output port."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - connected_ = true; -} - -void MidiOutWinMM :: closePort( void ) -{ - if ( connected_ ) { - WinMidiData *data = static_cast (apiData_); - midiOutReset( data->outHandle ); - midiOutClose( data->outHandle ); - connected_ = false; - } -} - -void MidiOutWinMM :: openVirtualPort( std::string portName ) -{ - // This function cannot be implemented for the Windows MM MIDI API. - errorString_ = "MidiOutWinMM::openVirtualPort: cannot be implemented in Windows MM MIDI API!"; - RtMidi::error( RtError::WARNING, errorString_ ); -} - -void MidiOutWinMM :: sendMessage( std::vector *message ) -{ - unsigned int nBytes = static_cast(message->size()); - if ( nBytes == 0 ) { - errorString_ = "MidiOutWinMM::sendMessage: message argument is empty!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - MMRESULT result; - WinMidiData *data = static_cast (apiData_); - if ( message->at(0) == 0xF0 ) { // Sysex message - - // Allocate buffer for sysex data. - char *buffer = (char *) malloc( nBytes ); - if ( buffer == NULL ) { - errorString_ = "MidiOutWinMM::sendMessage: error allocating sysex message memory!"; - RtMidi::error( RtError::MEMORY_ERROR, errorString_ ); - } - - // Copy data to buffer. - for ( unsigned int i=0; iat(i); - - // Create and prepare MIDIHDR structure. - MIDIHDR sysex; - sysex.lpData = (LPSTR) buffer; - sysex.dwBufferLength = nBytes; - sysex.dwFlags = 0; - result = midiOutPrepareHeader( data->outHandle, &sysex, sizeof(MIDIHDR) ); - if ( result != MMSYSERR_NOERROR ) { - free( buffer ); - errorString_ = "MidiOutWinMM::sendMessage: error preparing sysex header."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Send the message. - result = midiOutLongMsg( data->outHandle, &sysex, sizeof(MIDIHDR) ); - if ( result != MMSYSERR_NOERROR ) { - free( buffer ); - errorString_ = "MidiOutWinMM::sendMessage: error sending sysex message."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Unprepare the buffer and MIDIHDR. - while ( MIDIERR_STILLPLAYING == midiOutUnprepareHeader( data->outHandle, &sysex, sizeof (MIDIHDR) ) ) Sleep( 1 ); - free( buffer ); - - } - else { // Channel or system message. - - // Make sure the message size isn't too big. - if ( nBytes > 3 ) { - errorString_ = "MidiOutWinMM::sendMessage: message size is greater than 3 bytes (and not sysex)!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return; - } - - // Pack MIDI bytes into double word. - DWORD packet; - unsigned char *ptr = (unsigned char *) &packet; - for ( unsigned int i=0; iat(i); - ++ptr; - } - - // Send the message immediately. - result = midiOutShortMsg( data->outHandle, packet ); - if ( result != MMSYSERR_NOERROR ) { - errorString_ = "MidiOutWinMM::sendMessage: error sending MIDI message."; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - } -} - -#endif // __WINDOWS_MM__ - -// *********************************************************************// -// API: WINDOWS Kernel Streaming -// -// Written by Sebastien Alaiwan, 2012. -// -// NOTE BY GARY: much of the KS-specific code below probably should go in a separate file. -// -// *********************************************************************// - -#if defined(__WINDOWS_KS__) - -#include -#include -#include -#include -#include -#include -#include -#include - -#include "ks.h" -#include "ksmedia.h" - -#define INSTANTIATE_GUID(a) GUID const a = { STATIC_ ## a } - -INSTANTIATE_GUID(GUID_NULL); -INSTANTIATE_GUID(KSPROPSETID_Pin); -INSTANTIATE_GUID(KSPROPSETID_Connection); -INSTANTIATE_GUID(KSPROPSETID_Topology); -INSTANTIATE_GUID(KSINTERFACESETID_Standard); -INSTANTIATE_GUID(KSMEDIUMSETID_Standard); -INSTANTIATE_GUID(KSDATAFORMAT_TYPE_MUSIC); -INSTANTIATE_GUID(KSDATAFORMAT_SUBTYPE_MIDI); -INSTANTIATE_GUID(KSDATAFORMAT_SPECIFIER_NONE); - -#undef INSTANTIATE_GUID - -typedef std::basic_string tstring; - -inline bool IsValid(HANDLE handle) -{ - return handle != NULL && handle != INVALID_HANDLE_VALUE; -} - -class ComException : public std::runtime_error -{ -private: - static std::string MakeString(std::string const& s, HRESULT hr) - { - std::stringstream ss; - ss << "(error 0x" << std::hex << hr << ")"; - return s + ss.str(); - } - -public: - ComException(std::string const& s, HRESULT hr) : - std::runtime_error(MakeString(s, hr)) - { - } -}; - -template -class CKsEnumFilters -{ -public: - ~CKsEnumFilters() - { - DestroyLists(); - } - - void EnumFilters(GUID const* categories, size_t numCategories) - { - DestroyLists(); - - if (categories == 0) - { - printf ("Error: CKsEnumFilters: invalid argument\n"); - assert(0); - } - // Get a handle to the device set specified by the guid - HDEVINFO hDevInfo = ::SetupDiGetClassDevs(&categories[0], NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE); - if (!IsValid(hDevInfo)) - { - printf ("Error: CKsEnumFilters: no devices found"); - assert (0); - } - - // Loop through members of the set and get details for each - for (int iClassMember=0;;iClassMember++) { - { - SP_DEVICE_INTERFACE_DATA DID; - DID.cbSize = sizeof(DID); - DID.Reserved = 0; - - bool fRes = ::SetupDiEnumDeviceInterfaces(hDevInfo, NULL, &categories[0], iClassMember, &DID); - if (!fRes) - break; - - // Get filter friendly name - HKEY hRegKey = ::SetupDiOpenDeviceInterfaceRegKey(hDevInfo, &DID, 0, KEY_READ); - if (hRegKey == INVALID_HANDLE_VALUE) - { - assert(0); - printf "CKsEnumFilters: interface has no registry\n"); - } - char friendlyName[256]; - DWORD dwSize = sizeof friendlyName; - LONG lval = ::RegQueryValueEx(hRegKey, TEXT("FriendlyName"), NULL, NULL, (LPBYTE)friendlyName, &dwSize); - ::RegCloseKey(hRegKey); - if (lval != ERROR_SUCCESS) - { - assert(0); - printf ("CKsEnumFilters: interface has no friendly name"); - } - // Get details for the device registered in this class - DWORD const cbItfDetails = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA) + MAX_PATH * sizeof(WCHAR); - std::vector buffer(cbItfDetails); - - SP_DEVICE_INTERFACE_DETAIL_DATA* pDevInterfaceDetails = reinterpret_cast(&buffer[0]); - pDevInterfaceDetails->cbSize = sizeof(*pDevInterfaceDetails); - - SP_DEVINFO_DATA DevInfoData; - DevInfoData.cbSize = sizeof(DevInfoData); - DevInfoData.Reserved = 0; - - fRes = ::SetupDiGetDeviceInterfaceDetail(hDevInfo, &DID, pDevInterfaceDetails, cbItfDetails, NULL, &DevInfoData); - if (!fRes) - { - printf("CKsEnumFilters: could not get interface details"); - assert(0); - } - // check additional category guids which may (or may not) have been supplied - for (size_t i=1; i < numCategories; ++i) { - SP_DEVICE_INTERFACE_DATA DIDAlias; - DIDAlias.cbSize = sizeof(DIDAlias); - DIDAlias.Reserved = 0; - - fRes = ::SetupDiGetDeviceInterfaceAlias(hDevInfo, &DID, &categories[i], &DIDAlias); - if (!fRes) - { - printf("CKsEnumFilters: could not get interface alias"); - assert(0); - } - // Check if the this interface alias is enabled. - if (!DIDAlias.Flags || (DIDAlias.Flags & SPINT_REMOVED)) - { - printf("CKsEnumFilters: interface alias is not enabled"); - assert(0); - } - } - - std::auto_ptr pFilter(new TFilterType(pDevInterfaceDetails->DevicePath, friendlyName)); - - pFilter->Instantiate(); - pFilter->FindMidiPins(); - pFilter->Validate(); - - m_Filters.push_back(pFilter.release()); - } - } - - ::SetupDiDestroyDeviceInfoList(hDevInfo); - } - -private: - void DestroyLists() - { - for (size_t i=0;i < m_Filters.size();++i) - delete m_Filters[i]; - m_Filters.clear(); - } - -public: - // TODO: make this private. - std::vector m_Filters; -}; - -class CKsObject -{ -public: - CKsObject(HANDLE handle) : m_handle(handle) - { - } - -protected: - HANDLE m_handle; - - void SetProperty(REFGUID guidPropertySet, ULONG nProperty, void* pvValue, ULONG cbValue) - { - KSPROPERTY ksProperty; - memset(&ksProperty, 0, sizeof ksProperty); - ksProperty.Set = guidPropertySet; - ksProperty.Id = nProperty; - ksProperty.Flags = KSPROPERTY_TYPE_SET; - - HRESULT hr = DeviceIoControlKsProperty(ksProperty, pvValue, cbValue); - if (FAILED(hr)) - { - printf("CKsObject::SetProperty: could not set property"); - exit(0); - } - } - -private: - - HRESULT DeviceIoControlKsProperty(KSPROPERTY& ksProperty, void* pvValue, ULONG cbValue) - { - ULONG ulReturned; - return ::DeviceIoControl( - m_handle, - IOCTL_KS_PROPERTY, - &ksProperty, - sizeof(ksProperty), - pvValue, - cbValue, - &ulReturned, - NULL); - } -}; - -class CKsPin; - -class CKsFilter : public CKsObject -{ - friend class CKsPin; - -public: - CKsFilter(tstring const& name, std::string const& sFriendlyName); - virtual ~CKsFilter(); - - virtual void Instantiate(); - - template - T GetPinProperty(ULONG nPinId, ULONG nProperty) - { - ULONG ulReturned = 0; - T value; - - KSP_PIN ksPProp; - ksPProp.Property.Set = KSPROPSETID_Pin; - ksPProp.Property.Id = nProperty; - ksPProp.Property.Flags = KSPROPERTY_TYPE_GET; - ksPProp.PinId = nPinId; - ksPProp.Reserved = 0; - - HRESULT hr = ::DeviceIoControl( - m_handle, - IOCTL_KS_PROPERTY, - &ksPProp, - sizeof(KSP_PIN), - &value, - sizeof(value), - &ulReturned, - NULL); - if (FAILED(hr)) - { - printf("CKsFilter::GetPinProperty: failed to retrieve property"); - exit(0); - } - - return value; - } - - void GetPinPropertyMulti(ULONG nPinId, REFGUID guidPropertySet, ULONG nProperty, PKSMULTIPLE_ITEM* ppKsMultipleItem) - { - HRESULT hr; - - KSP_PIN ksPProp; - ksPProp.Property.Set = guidPropertySet; - ksPProp.Property.Id = nProperty; - ksPProp.Property.Flags = KSPROPERTY_TYPE_GET; - ksPProp.PinId = nPinId; - ksPProp.Reserved = 0; - - ULONG cbMultipleItem = 0; - hr = ::DeviceIoControl(m_handle, - IOCTL_KS_PROPERTY, - &ksPProp.Property, - sizeof(KSP_PIN), - NULL, - 0, - &cbMultipleItem, - NULL); - if (FAILED(hr)) - { - printf("CKsFilter::GetPinPropertyMulti: cannot get property"); - exit(0); - } - - *ppKsMultipleItem = (PKSMULTIPLE_ITEM) new BYTE[cbMultipleItem]; - - ULONG ulReturned = 0; - hr = ::DeviceIoControl( - m_handle, - IOCTL_KS_PROPERTY, - &ksPProp, - sizeof(KSP_PIN), - (PVOID)*ppKsMultipleItem, - cbMultipleItem, - &ulReturned, - NULL); - if (FAILED(hr)) - { - printf("CKsFilter::GetPinPropertyMulti: cannot get property"); - exit(0); - } - } - - std::string const& GetFriendlyName() const - { - return m_sFriendlyName; - } - -protected: - - std::vector m_Pins; // this list owns the pins. - - std::vector m_RenderPins; - std::vector m_CapturePins; - -private: - std::string const m_sFriendlyName; // friendly name eg "Virus TI Synth" - tstring const m_sName; // Filter path, eg "\\?\usb#vid_133e&pid_0815...\vtimidi02" -}; - -class CKsPin : public CKsObject -{ -public: - CKsPin(CKsFilter* pFilter, ULONG nId); - virtual ~CKsPin(); - - virtual void Instantiate(); - - void ClosePin(); - - void SetState(KSSTATE ksState); - - void WriteData(KSSTREAM_HEADER* pKSSTREAM_HEADER, OVERLAPPED* pOVERLAPPED); - void ReadData(KSSTREAM_HEADER* pKSSTREAM_HEADER, OVERLAPPED* pOVERLAPPED); - - KSPIN_DATAFLOW GetDataFlow() const - { - return m_DataFlow; - } - - bool IsSink() const - { - return m_Communication == KSPIN_COMMUNICATION_SINK - || m_Communication == KSPIN_COMMUNICATION_BOTH; - } - - -protected: - PKSPIN_CONNECT m_pKsPinConnect; // creation parameters of pin - CKsFilter* const m_pFilter; - - ULONG m_cInterfaces; - PKSIDENTIFIER m_pInterfaces; - PKSMULTIPLE_ITEM m_pmiInterfaces; - - ULONG m_cMediums; - PKSIDENTIFIER m_pMediums; - PKSMULTIPLE_ITEM m_pmiMediums; - - ULONG m_cDataRanges; - PKSDATARANGE m_pDataRanges; - PKSMULTIPLE_ITEM m_pmiDataRanges; - - KSPIN_DATAFLOW m_DataFlow; - KSPIN_COMMUNICATION m_Communication; -}; - -CKsFilter::CKsFilter(tstring const& sName, std::string const& sFriendlyName) : - CKsObject(INVALID_HANDLE_VALUE), - m_sFriendlyName(sFriendlyName), - m_sName(sName) -{ - if (sName.empty()) - { - printf("CKsFilter::CKsFilter: name can't be empty"); - assert(0); - } -} - -CKsFilter::~CKsFilter() -{ - for (size_t i=0;i < m_Pins.size();++i) - delete m_Pins[i]; - - if (IsValid(m_handle)) - ::CloseHandle(m_handle); -} - -void CKsFilter::Instantiate() -{ - m_handle = CreateFile( - m_sName.c_str(), - GENERIC_READ | GENERIC_WRITE, - 0, - NULL, - OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, - NULL); - - if (!IsValid(m_handle)) - { - DWORD const dwError = GetLastError(); - throw ComException("CKsFilter::Instantiate: can't open driver", HRESULT_FROM_WIN32(dwError)); - } -} - -CKsPin::CKsPin(CKsFilter* pFilter, ULONG PinId) : - CKsObject(INVALID_HANDLE_VALUE), - m_pKsPinConnect(NULL), - m_pFilter(pFilter) -{ - m_Communication = m_pFilter->GetPinProperty(PinId, KSPROPERTY_PIN_COMMUNICATION); - m_DataFlow = m_pFilter->GetPinProperty(PinId, KSPROPERTY_PIN_DATAFLOW); - - // Interfaces - m_pFilter->GetPinPropertyMulti( - PinId, - KSPROPSETID_Pin, - KSPROPERTY_PIN_INTERFACES, - &m_pmiInterfaces); - - m_cInterfaces = m_pmiInterfaces->Count; - m_pInterfaces = (PKSPIN_INTERFACE)(m_pmiInterfaces + 1); - - // Mediums - m_pFilter->GetPinPropertyMulti( - PinId, - KSPROPSETID_Pin, - KSPROPERTY_PIN_MEDIUMS, - &m_pmiMediums); - - m_cMediums = m_pmiMediums->Count; - m_pMediums = (PKSPIN_MEDIUM)(m_pmiMediums + 1); - - // Data ranges - m_pFilter->GetPinPropertyMulti( - PinId, - KSPROPSETID_Pin, - KSPROPERTY_PIN_DATARANGES, - &m_pmiDataRanges); - - m_cDataRanges = m_pmiDataRanges->Count; - m_pDataRanges = (PKSDATARANGE)(m_pmiDataRanges + 1); -} - -CKsPin::~CKsPin() -{ - ClosePin(); - - delete[] (BYTE*)m_pKsPinConnect; - delete[] (BYTE*)m_pmiDataRanges; - delete[] (BYTE*)m_pmiInterfaces; - delete[] (BYTE*)m_pmiMediums; -} - -void CKsPin::ClosePin() -{ - if (IsValid(m_handle)) { - SetState(KSSTATE_STOP); - ::CloseHandle(m_handle); - } - m_handle = INVALID_HANDLE_VALUE; -} - -void CKsPin::SetState(KSSTATE ksState) -{ - SetProperty(KSPROPSETID_Connection, KSPROPERTY_CONNECTION_STATE, &ksState, sizeof(ksState)); -} - -void CKsPin::Instantiate() -{ - if (!m_pKsPinConnect) - { - printf("CKsPin::Instanciate: abstract pin"); - assert(0); - } - DWORD const dwResult = KsCreatePin(m_pFilter->m_handle, m_pKsPinConnect, GENERIC_WRITE | GENERIC_READ, &m_handle); - if (dwResult != ERROR_SUCCESS) - throw ComException("CKsMidiCapFilter::CreateRenderPin: Pin instanciation failed", HRESULT_FROM_WIN32(dwResult)); -} - -void CKsPin::WriteData(KSSTREAM_HEADER* pKSSTREAM_HEADER, OVERLAPPED* pOVERLAPPED) -{ - DWORD cbWritten; - BOOL fRes = ::DeviceIoControl( - m_handle, - IOCTL_KS_WRITE_STREAM, - NULL, - 0, - pKSSTREAM_HEADER, - pKSSTREAM_HEADER->Size, - &cbWritten, - pOVERLAPPED); - if (!fRes) { - DWORD const dwError = GetLastError(); - if (dwError != ERROR_IO_PENDING) - throw ComException("CKsPin::WriteData: DeviceIoControl failed", HRESULT_FROM_WIN32(dwError)); - } -} - -void CKsPin::ReadData(KSSTREAM_HEADER* pKSSTREAM_HEADER, OVERLAPPED* pOVERLAPPED) -{ - DWORD cbReturned; - BOOL fRes = ::DeviceIoControl( - m_handle, - IOCTL_KS_READ_STREAM, - NULL, - 0, - pKSSTREAM_HEADER, - pKSSTREAM_HEADER->Size, - &cbReturned, - pOVERLAPPED); - if (!fRes) { - DWORD const dwError = GetLastError(); - if (dwError != ERROR_IO_PENDING) - throw ComException("CKsPin::ReadData: DeviceIoControl failed", HRESULT_FROM_WIN32(dwError)); - } -} - -class CKsMidiFilter : public CKsFilter -{ -public: - void FindMidiPins(); - -protected: - CKsMidiFilter(tstring const& sPath, std::string const& sFriendlyName); -}; - -class CKsMidiPin : public CKsPin -{ -public: - CKsMidiPin(CKsFilter* pFilter, ULONG nId); -}; - -class CKsMidiRenFilter : public CKsMidiFilter -{ -public: - CKsMidiRenFilter(tstring const& sPath, std::string const& sFriendlyName); - CKsMidiPin* CreateRenderPin(); - - void Validate() - { - if (m_RenderPins.empty()) - { - printf("Could not find a MIDI render pin"); - assert(0); - } - } -}; - -class CKsMidiCapFilter : public CKsMidiFilter -{ -public: - CKsMidiCapFilter(tstring const& sPath, std::string const& sFriendlyName); - CKsMidiPin* CreateCapturePin(); - - void Validate() - { - if (m_CapturePins.empty()) - { - assert(0); - printf("Could not find a MIDI capture pin"); - } - } -}; - -CKsMidiFilter::CKsMidiFilter(tstring const& sPath, std::string const& sFriendlyName) : - CKsFilter(sPath, sFriendlyName) -{ -} - -void CKsMidiFilter::FindMidiPins() -{ - ULONG numPins = GetPinProperty(0, KSPROPERTY_PIN_CTYPES); - - for (ULONG iPin = 0; iPin < numPins; ++iPin) { - { - KSPIN_COMMUNICATION com = GetPinProperty(iPin, KSPROPERTY_PIN_COMMUNICATION); - if (com != KSPIN_COMMUNICATION_SINK && com != KSPIN_COMMUNICATION_BOTH) - { - printf("Unknown pin communication value"); - assert(0); - } - - m_Pins.push_back(new CKsMidiPin(this, iPin)); - } - - } - - m_RenderPins.clear(); - m_CapturePins.clear(); - - for (size_t i = 0; i < m_Pins.size(); ++i) { - CKsPin* const pPin = m_Pins[i]; - - if (pPin->IsSink()) { - if (pPin->GetDataFlow() == KSPIN_DATAFLOW_IN) - m_RenderPins.push_back(pPin); - else - m_CapturePins.push_back(pPin); - } - } - - if (m_RenderPins.empty() && m_CapturePins.empty()) - { - printf("No valid pins found on the filter."); - assert(0); - - } -} - -CKsMidiRenFilter::CKsMidiRenFilter(tstring const& sPath, std::string const& sFriendlyName) : - CKsMidiFilter(sPath, sFriendlyName) -{ -} - -CKsMidiPin* CKsMidiRenFilter::CreateRenderPin() -{ - if (m_RenderPins.empty()) - { - printf("Could not find a MIDI render pin"); - assert(0); - } - - CKsMidiPin* pPin = (CKsMidiPin*)m_RenderPins[0]; - pPin->Instantiate(); - return pPin; -} - -CKsMidiCapFilter::CKsMidiCapFilter(tstring const& sPath, std::string const& sFriendlyName) : - CKsMidiFilter(sPath, sFriendlyName) -{ -} - -CKsMidiPin* CKsMidiCapFilter::CreateCapturePin() -{ - if (m_CapturePins.empty()) - { - printf("Could not find a MIDI capture pin"); - assert(0); - } - CKsMidiPin* pPin = (CKsMidiPin*)m_CapturePins[0]; - pPin->Instantiate(); - return pPin; -} - -CKsMidiPin::CKsMidiPin(CKsFilter* pFilter, ULONG nId) : - CKsPin(pFilter, nId) -{ - DWORD const cbPinCreateSize = sizeof(KSPIN_CONNECT) + sizeof(KSDATAFORMAT); - m_pKsPinConnect = (PKSPIN_CONNECT) new BYTE[cbPinCreateSize]; - - m_pKsPinConnect->Interface.Set = KSINTERFACESETID_Standard; - m_pKsPinConnect->Interface.Id = KSINTERFACE_STANDARD_STREAMING; - m_pKsPinConnect->Interface.Flags = 0; - m_pKsPinConnect->Medium.Set = KSMEDIUMSETID_Standard; - m_pKsPinConnect->Medium.Id = KSMEDIUM_TYPE_ANYINSTANCE; - m_pKsPinConnect->Medium.Flags = 0; - m_pKsPinConnect->PinId = nId; - m_pKsPinConnect->PinToHandle = NULL; - m_pKsPinConnect->Priority.PriorityClass = KSPRIORITY_NORMAL; - m_pKsPinConnect->Priority.PrioritySubClass = 1; - - // point m_pDataFormat to just after the pConnect struct - KSDATAFORMAT* m_pDataFormat = (KSDATAFORMAT*)(m_pKsPinConnect + 1); - m_pDataFormat->FormatSize = sizeof(KSDATAFORMAT); - m_pDataFormat->Flags = 0; - m_pDataFormat->SampleSize = 0; - m_pDataFormat->Reserved = 0; - m_pDataFormat->MajorFormat = GUID(KSDATAFORMAT_TYPE_MUSIC); - m_pDataFormat->SubFormat = GUID(KSDATAFORMAT_SUBTYPE_MIDI); - m_pDataFormat->Specifier = GUID(KSDATAFORMAT_SPECIFIER_NONE); - - bool hasStdStreamingInterface = false; - bool hasStdStreamingMedium = false; - - for ( ULONG i = 0; i < m_cInterfaces; i++ ) { - if (m_pInterfaces[i].Set == KSINTERFACESETID_Standard - && m_pInterfaces[i].Id == KSINTERFACE_STANDARD_STREAMING) - hasStdStreamingInterface = true; - } - - for (ULONG i = 0; i < m_cMediums; i++) { - if (m_pMediums[i].Set == KSMEDIUMSETID_Standard - && m_pMediums[i].Id == KSMEDIUM_STANDARD_DEVIO) - hasStdStreamingMedium = true; - } - - if (!hasStdStreamingInterface) // No standard streaming interfaces on the pin - { - printf("CKsMidiPin::CKsMidiPin: no standard streaming interface"); - assert(0); - } - - if (!hasStdStreamingMedium) // No standard streaming mediums on the pin - { - printf("CKsMidiPin::CKsMidiPin: no standard streaming medium") - assert(0); - }; - - bool hasMidiDataRange = false; - - BYTE const* pDataRangePtr = reinterpret_cast(m_pDataRanges); - - for (ULONG i = 0; i < m_cDataRanges; ++i) { - KSDATARANGE const* pDataRange = reinterpret_cast(pDataRangePtr); - - if (pDataRange->SubFormat == KSDATAFORMAT_SUBTYPE_MIDI) { - hasMidiDataRange = true; - break; - } - - pDataRangePtr += pDataRange->FormatSize; - } - - if (!hasMidiDataRange) // No MIDI dataranges on the pin - { - printf("CKsMidiPin::CKsMidiPin: no MIDI datarange"); - assert(0); - } -} - - -struct WindowsKsData -{ - WindowsKsData() : m_pPin(NULL), m_Buffer(1024), m_hInputThread(NULL) - { - memset(&overlapped, 0, sizeof(OVERLAPPED)); - m_hExitEvent = ::CreateEvent(NULL, FALSE, FALSE, NULL); - overlapped.hEvent = ::CreateEvent(NULL, FALSE, FALSE, NULL); - m_hInputThread = NULL; - } - - ~WindowsKsData() - { - ::CloseHandle(overlapped.hEvent); - ::CloseHandle(m_hExitEvent); - } - - OVERLAPPED overlapped; - CKsPin* m_pPin; - std::vector m_Buffer; - std::auto_ptr > m_pCaptureEnum; - std::auto_ptr > m_pRenderEnum; - HANDLE m_hInputThread; - HANDLE m_hExitEvent; -}; - -// *********************************************************************// -// API: WINDOWS Kernel Streaming -// Class Definitions: MidiInWinKS -// *********************************************************************// - -DWORD WINAPI midiKsInputThread(VOID* pUser) -{ - MidiInApi::RtMidiInData* data = static_cast(pUser); - WindowsKsData* apiData = static_cast(data->apiData); - - HANDLE hEvents[] = { apiData->overlapped.hEvent, apiData->m_hExitEvent }; - - while ( true ) { - KSSTREAM_HEADER packet; - memset(&packet, 0, sizeof packet); - packet.Size = sizeof(KSSTREAM_HEADER); - packet.PresentationTime.Time = 0; - packet.PresentationTime.Numerator = 1; - packet.PresentationTime.Denominator = 1; - packet.Data = &apiData->m_Buffer[0]; - packet.DataUsed = 0; - packet.FrameExtent = apiData->m_Buffer.size(); - apiData->m_pPin->ReadData(&packet, &apiData->overlapped); - - DWORD dwRet = ::WaitForMultipleObjects(2, hEvents, FALSE, INFINITE); - - if ( dwRet == WAIT_OBJECT_0 ) { - // parse packet - unsigned char* pData = (unsigned char*)packet.Data; - unsigned int iOffset = 0; - - while ( iOffset < packet.DataUsed ) { - KSMUSICFORMAT* pMusic = (KSMUSICFORMAT*)&pData[iOffset]; - iOffset += sizeof(KSMUSICFORMAT); - - MidiInApi::MidiMessage message; - message.timeStamp = 0; - for(size_t i=0;i < pMusic->ByteCount;++i) - message.bytes.push_back(pData[iOffset+i]); - - if ( data->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback)data->userCallback; - callback(message.timeStamp, &message.bytes, data->userData); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( data->queue.size < data->queue.ringSize ) { - data->queue.ring[data->queue.back++] = message; - if(data->queue.back == data->queue.ringSize) - data->queue.back = 0; - data->queue.size++; - } - else - std::cerr << "\nRtMidiIn: message queue limit reached!!\n\n"; - } - - iOffset += pMusic->ByteCount; - - // re-align on 32 bits - if ( iOffset % 4 != 0 ) - iOffset += (4 - iOffset % 4); - } - } - else - break; - } - return 0; -} - -MidiInWinKS :: MidiInWinKS( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) -{ - initialize( clientName ); -} - -void MidiInWinKS :: initialize( const std::string& clientName ) -{ - WindowsKsData* data = new WindowsKsData; - apiData_ = (void*)data; - inputData_.apiData = data; - - GUID const aguidEnumCats[] = - { - { STATIC_KSCATEGORY_AUDIO }, { STATIC_KSCATEGORY_CAPTURE } - }; - data->m_pCaptureEnum.reset(new CKsEnumFilters ); - data->m_pCaptureEnum->EnumFilters(aguidEnumCats, 2); -} - -MidiInWinKS :: ~MidiInWinKS() -{ - WindowsKsData* data = static_cast(apiData_); - { - if ( data->m_pPin ) - closePort(); - } - - delete data; -} - -void MidiInWinKS :: openPort( unsigned int portNumber, const std::string portName ) -{ - WindowsKsData* data = static_cast(apiData_); - - if ( portNumber < 0 || portNumber >= data->m_pCaptureEnum->m_Filters.size() ) { - std::stringstream ost; - ost << "MidiInWinKS::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - CKsMidiCapFilter* pFilter = data->m_pCaptureEnum->m_Filters[portNumber]; - data->m_pPin = pFilter->CreateCapturePin(); - - if ( data->m_pPin == NULL ) { - std::stringstream ost; - ost << "MidiInWinKS::openPort: KS error opening port (could not create pin)"; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - data->m_pPin->SetState(KSSTATE_RUN); - - DWORD threadId; - data->m_hInputThread = ::CreateThread(NULL, 0, &midiKsInputThread, &inputData_, 0, &threadId); - if ( data->m_hInputThread == NULL ) { - std::stringstream ost; - ost << "MidiInWinKS::initialize: Could not create input thread : Windows error " << GetLastError() << std::endl;; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - connected_ = true; -} - -void MidiInWinKS :: openVirtualPort( const std::string portName ) -{ - // This function cannot be implemented for the Windows KS MIDI API. - errorString_ = "MidiInWinKS::openVirtualPort: cannot be implemented in Windows KS MIDI API!"; - RtMidi::error( RtError::WARNING, errorString_ ); -} - -unsigned int MidiInWinKS :: getPortCount() -{ - WindowsKsData* data = static_cast(apiData_); - return (unsigned int)data->m_pCaptureEnum->m_Filters.size(); -} - -std::string MidiInWinKS :: getPortName(unsigned int portNumber) -{ - WindowsKsData* data = static_cast(apiData_); - - if(portNumber < 0 || portNumber >= data->m_pCaptureEnum->m_Filters.size()) { - std::stringstream ost; - ost << "MidiInWinKS::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - CKsMidiCapFilter* pFilter = data->m_pCaptureEnum->m_Filters[portNumber]; - return pFilter->GetFriendlyName(); -} - -void MidiInWinKS :: closePort() -{ - WindowsKsData* data = static_cast(apiData_); - connected_ = false; - - if(data->m_hInputThread) { - ::SignalObjectAndWait(data->m_hExitEvent, data->m_hInputThread, INFINITE, FALSE); - ::CloseHandle(data->m_hInputThread); - } - - if(data->m_pPin) { - data->m_pPin->SetState(KSSTATE_PAUSE); - data->m_pPin->SetState(KSSTATE_STOP); - data->m_pPin->ClosePin(); - data->m_pPin = NULL; - } -} - -// *********************************************************************// -// API: WINDOWS Kernel Streaming -// Class Definitions: MidiOutWinKS -// *********************************************************************// - -MidiOutWinKS :: MidiOutWinKS( const std::string clientName ) : MidiOutApi() -{ - initialize( clientName ); -} - -void MidiOutWinKS :: initialize( const std::string& clientName ) -{ - WindowsKsData* data = new WindowsKsData; - - data->m_pPin = NULL; - data->m_pRenderEnum.reset(new CKsEnumFilters ); - GUID const aguidEnumCats[] = - { - { STATIC_KSCATEGORY_AUDIO }, { STATIC_KSCATEGORY_RENDER } - }; - data->m_pRenderEnum->EnumFilters(aguidEnumCats, 2); - - apiData_ = (void*)data; -} - -MidiOutWinKS :: ~MidiOutWinKS() -{ - // Close a connection if it exists. - closePort(); - - // Cleanup. - WindowsKsData* data = static_cast(apiData_); - delete data; -} - -void MidiOutWinKS :: openPort( unsigned int portNumber, const std::string portName ) -{ - WindowsKsData* data = static_cast(apiData_); - - if(portNumber < 0 || portNumber >= data->m_pRenderEnum->m_Filters.size()) { - std::stringstream ost; - ost << "MidiOutWinKS::openPort: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - CKsMidiRenFilter* pFilter = data->m_pRenderEnum->m_Filters[portNumber]; - data->m_pPin = pFilter->CreateRenderPin(); - - if(data->m_pPin == NULL) { - std::stringstream ost; - ost << "MidiOutWinKS::openPort: KS error opening port (could not create pin)"; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - data->m_pPin->SetState(KSSTATE_RUN); - connected_ = true; -} - -void MidiOutWinKS :: openVirtualPort( const std::string portName ) -{ - // This function cannot be implemented for the Windows KS MIDI API. - errorString_ = "MidiOutWinKS::openVirtualPort: cannot be implemented in Windows KS MIDI API!"; - RtMidi::error( RtError::WARNING, errorString_ ); -} - -unsigned int MidiOutWinKS :: getPortCount() -{ - WindowsKsData* data = static_cast(apiData_); - - return (unsigned int)data->m_pRenderEnum->m_Filters.size(); -} - -std::string MidiOutWinKS :: getPortName( unsigned int portNumber ) -{ - WindowsKsData* data = static_cast(apiData_); - - if ( portNumber < 0 || portNumber >= data->m_pRenderEnum->m_Filters.size() ) { - std::stringstream ost; - ost << "MidiOutWinKS::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - CKsMidiRenFilter* pFilter = data->m_pRenderEnum->m_Filters[portNumber]; - return pFilter->GetFriendlyName(); -} - -void MidiOutWinKS :: closePort() -{ - WindowsKsData* data = static_cast(apiData_); - connected_ = false; - - if ( data->m_pPin ) { - data->m_pPin->SetState(KSSTATE_PAUSE); - data->m_pPin->SetState(KSSTATE_STOP); - data->m_pPin->ClosePin(); - data->m_pPin = NULL; - } -} - -void MidiOutWinKS :: sendMessage(std::vector* pMessage) -{ - std::vector const& msg = *pMessage; - WindowsKsData* data = static_cast(apiData_); - size_t iNumMidiBytes = msg.size(); - size_t pos = 0; - - // write header - KSMUSICFORMAT* pKsMusicFormat = reinterpret_cast(&data->m_Buffer[pos]); - pKsMusicFormat->TimeDeltaMs = 0; - pKsMusicFormat->ByteCount = iNumMidiBytes; - pos += sizeof(KSMUSICFORMAT); - - // write MIDI bytes - if ( pos + iNumMidiBytes > data->m_Buffer.size() ) { - std::stringstream ost; - ost << "KsMidiInput::Write: MIDI buffer too small. Required " << pos + iNumMidiBytes << " bytes, only has " << data->m_Buffer.size(); - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - if ( data->m_pPin == NULL ) { - std::stringstream ost; - ost << "MidiOutWinKS::sendMessage: port is not open"; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - - memcpy(&data->m_Buffer[pos], &msg[0], iNumMidiBytes); - pos += iNumMidiBytes; - - KSSTREAM_HEADER packet; - memset(&packet, 0, sizeof packet); - packet.Size = sizeof(packet); - packet.PresentationTime.Time = 0; - packet.PresentationTime.Numerator = 1; - packet.PresentationTime.Denominator = 1; - packet.Data = const_cast(&data->m_Buffer[0]); - packet.DataUsed = ((pos+3)/4)*4; - packet.FrameExtent = data->m_Buffer.size(); - - data->m_pPin->WriteData(&packet, NULL); -} - -#endif // __WINDOWS_KS__ - -//*********************************************************************// -// API: UNIX JACK -// -// Written primarily by Alexander Svetalkin, with updates for delta -// time by Gary Scavone, April 2011. -// -// *********************************************************************// - -#if defined(__UNIX_JACK__) - -// JACK header files -#include -#include -#include - -#define JACK_RINGBUFFER_SIZE 16384 // Default size for ringbuffer - -struct JackMidiData { - jack_client_t *client; - jack_port_t *port; - jack_ringbuffer_t *buffSize; - jack_ringbuffer_t *buffMessage; - jack_time_t lastTime; - MidiInApi :: RtMidiInData *rtMidiIn; - }; - -//*********************************************************************// -// API: JACK -// Class Definitions: MidiInJack -//*********************************************************************// - -int jackProcessIn( jack_nframes_t nframes, void *arg ) -{ - JackMidiData *jData = (JackMidiData *) arg; - MidiInApi :: RtMidiInData *rtData = jData->rtMidiIn; - jack_midi_event_t event; - jack_time_t long long time; - - // Is port created? - if ( jData->port == NULL ) return 0; - void *buff = jack_port_get_buffer( jData->port, nframes ); - - // We have midi events in buffer - int evCount = jack_midi_get_event_count( buff ); - if ( evCount > 0 ) { - MidiInApi::MidiMessage message; - message.bytes.clear(); - - jack_midi_event_get( &event, buff, 0 ); - - for (unsigned int i = 0; i < event.size; i++ ) - message.bytes.push_back( event.buffer[i] ); - - // Compute the delta time. - time = jack_get_time(); - if ( rtData->firstMessage == true ) - rtData->firstMessage = false; - else - message.timeStamp = ( time - jData->lastTime ) * 0.000001; - - jData->lastTime = time; - - if ( !rtData->continueSysex ) { - if ( rtData->usingCallback ) { - RtMidiIn::RtMidiCallback callback = (RtMidiIn::RtMidiCallback) rtData->userCallback; - callback( message.timeStamp, &message.bytes, rtData->userData ); - } - else { - // As long as we haven't reached our queue size limit, push the message. - if ( rtData->queue.size < rtData->queue.ringSize ) { - rtData->queue.ring[rtData->queue.back++] = message; - if ( rtData->queue.back == rtData->queue.ringSize ) - rtData->queue.back = 0; - rtData->queue.size++; - } - else - std::cerr << "\nMidiInJack: message queue limit reached!!\n\n"; - } - } - } - - return 0; -} - -MidiInJack :: MidiInJack( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) -{ - initialize( clientName ); -} - -void MidiInJack :: initialize( const std::string& clientName ) -{ - JackMidiData *data = new JackMidiData; - apiData_ = (void *) data; - - // Initialize JACK client - if (( data->client = jack_client_open( clientName.c_str(), JackNullOption, NULL )) == 0) { - errorString_ = "MidiInJack::initialize: JACK server not running?"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - return; - } - - data->rtMidiIn = &inputData_; - data->port = NULL; - - jack_set_process_callback( data->client, jackProcessIn, data ); - jack_activate( data->client ); -} - -MidiInJack :: ~MidiInJack() -{ - JackMidiData *data = static_cast (apiData_); - closePort(); - - jack_client_close( data->client ); -} - -void MidiInJack :: openPort( unsigned int portNumber, const std::string portName ) -{ - JackMidiData *data = static_cast (apiData_); - - // Creating new port - if ( data->port == NULL) - data->port = jack_port_register( data->client, portName.c_str(), - JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0 ); - - if ( data->port == NULL) { - errorString_ = "MidiInJack::openVirtualPort: JACK error creating virtual port"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Connecting to the output - std::string name = getPortName( portNumber ); - jack_connect( data->client, name.c_str(), jack_port_name( data->port ) ); -} - -void MidiInJack :: openVirtualPort( const std::string portName ) -{ - JackMidiData *data = static_cast (apiData_); - - if ( data->port == NULL ) - data->port = jack_port_register( data->client, portName.c_str(), - JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0 ); - - if ( data->port == NULL ) { - errorString_ = "MidiInJack::openVirtualPort: JACK error creating virtual port"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } -} - -unsigned int MidiInJack :: getPortCount() -{ - int count = 0; - JackMidiData *data = static_cast (apiData_); - - // List of available ports - const char **ports = jack_get_ports( data->client, NULL, JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput ); - - if ( ports == NULL ) return 0; - while ( ports[count] != NULL ) - count++; - - free( ports ); - - return count; -} - -std::string MidiInJack :: getPortName( unsigned int portNumber ) -{ - JackMidiData *data = static_cast (apiData_); - std::ostringstream ost; - std::string retStr(""); - - // List of available ports - const char **ports = jack_get_ports( data->client, NULL, - JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput ); - - // Check port validity - if ( ports == NULL ) { - errorString_ = "MidiInJack::getPortName: no ports available!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return retStr; - } - - if ( ports[portNumber] == NULL ) { - ost << "MidiInJack::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - else retStr.assign( ports[portNumber] ); - - free( ports ); - - return retStr; -} - -void MidiInJack :: closePort() -{ - JackMidiData *data = static_cast (apiData_); - - if ( data->port == NULL ) return; - jack_port_unregister( data->client, data->port ); - data->port = NULL; -} - -//*********************************************************************// -// API: JACK -// Class Definitions: MidiOutJack -//*********************************************************************// - -// Jack process callback -int jackProcessOut( jack_nframes_t nframes, void *arg ) -{ - JackMidiData *data = (JackMidiData *) arg; - jack_midi_data_t *midiData; - int space; - - // Is port created? - if ( data->port == NULL ) return 0; - - void *buff = jack_port_get_buffer( data->port, nframes ); - jack_midi_clear_buffer( buff ); - - while ( jack_ringbuffer_read_space( data->buffSize ) > 0 ) { - jack_ringbuffer_read( data->buffSize, (char *) &space, (size_t) sizeof(space) ); - midiData = jack_midi_event_reserve( buff, 0, space ); - - jack_ringbuffer_read( data->buffMessage, (char *) midiData, (size_t) space ); - } - - return 0; -} - -MidiOutJack :: MidiOutJack( const std::string clientName ) : MidiOutApi() -{ - initialize( clientName ); -} - -void MidiOutJack :: initialize( const std::string& clientName ) -{ - JackMidiData *data = new JackMidiData; - - data->port = NULL; - - // Initialize JACK client - if (( data->client = jack_client_open( clientName.c_str(), JackNullOption, NULL )) == 0) { - errorString_ = "MidiOutJack::initialize: JACK server not running?"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - return; - } - - jack_set_process_callback( data->client, jackProcessOut, data ); - data->buffSize = jack_ringbuffer_create( JACK_RINGBUFFER_SIZE ); - data->buffMessage = jack_ringbuffer_create( JACK_RINGBUFFER_SIZE ); - jack_activate( data->client ); - - apiData_ = (void *) data; -} - -MidiOutJack :: ~MidiOutJack() -{ - JackMidiData *data = static_cast (apiData_); - closePort(); - - // Cleanup - jack_client_close( data->client ); - jack_ringbuffer_free( data->buffSize ); - jack_ringbuffer_free( data->buffMessage ); - - delete data; -} - -void MidiOutJack :: openPort( unsigned int portNumber, const std::string portName ) -{ - JackMidiData *data = static_cast (apiData_); - - // Creating new port - if ( data->port == NULL ) - data->port = jack_port_register( data->client, portName.c_str(), - JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0 ); - - if ( data->port == NULL ) { - errorString_ = "MidiOutJack::openVirtualPort: JACK error creating virtual port"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } - - // Connecting to the output - std::string name = getPortName( portNumber ); - jack_connect( data->client, jack_port_name( data->port ), name.c_str() ); -} - -void MidiOutJack :: openVirtualPort( const std::string portName ) -{ - JackMidiData *data = static_cast (apiData_); - - if ( data->port == NULL ) - data->port = jack_port_register( data->client, portName.c_str(), - JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput, 0 ); - - if ( data->port == NULL ) { - errorString_ = "MidiOutJack::openVirtualPort: JACK error creating virtual port"; - RtMidi::error( RtError::DRIVER_ERROR, errorString_ ); - } -} - -unsigned int MidiOutJack :: getPortCount() -{ - int count = 0; - JackMidiData *data = static_cast (apiData_); - - // List of available ports - const char **ports = jack_get_ports( data->client, NULL, - JACK_DEFAULT_MIDI_TYPE, JackPortIsInput ); - - if ( ports == NULL ) return 0; - while ( ports[count] != NULL ) - count++; - - free( ports ); - - return count; -} - -std::string MidiOutJack :: getPortName( unsigned int portNumber ) -{ - JackMidiData *data = static_cast (apiData_); - std::ostringstream ost; - std::string retStr(""); - - // List of available ports - const char **ports = jack_get_ports( data->client, NULL, - JACK_DEFAULT_MIDI_TYPE, JackPortIsInput ); - - // Check port validity - if ( ports == NULL) { - errorString_ = "MidiOutJack::getPortName: no ports available!"; - RtMidi::error( RtError::WARNING, errorString_ ); - return retStr; - } - - if ( ports[portNumber] == NULL) { - ost << "MidiOutJack::getPortName: the 'portNumber' argument (" << portNumber << ") is invalid."; - errorString_ = ost.str(); - RtMidi::error( RtError::WARNING, errorString_ ); - } - else retStr.assign( ports[portNumber] ); - - free( ports ); - - return retStr; -} - -void MidiOutJack :: closePort() -{ - JackMidiData *data = static_cast (apiData_); - - if ( data->port == NULL ) return; - jack_port_unregister( data->client, data->port ); - data->port = NULL; -} - -void MidiOutJack :: sendMessage( std::vector *message ) -{ - int nBytes = message->size(); - JackMidiData *data = static_cast (apiData_); - - // Write full message to buffer - jack_ringbuffer_write( data->buffMessage, ( const char * ) &( *message )[0], - message->size() ); - jack_ringbuffer_write( data->buffSize, ( char * ) &nBytes, sizeof( nBytes ) ); -} - -#endif // __UNIX_JACK__ diff --git a/btgui/MidiTest/RtMidi.h b/btgui/MidiTest/RtMidi.h deleted file mode 100644 index 878c129d6..000000000 --- a/btgui/MidiTest/RtMidi.h +++ /dev/null @@ -1,675 +0,0 @@ -/**********************************************************************/ -/*! \class RtMidi - \brief An abstract base class for realtime MIDI input/output. - - This class implements some common functionality for the realtime - MIDI input/output subclasses RtMidiIn and RtMidiOut. - - RtMidi WWW site: http://music.mcgill.ca/~gary/rtmidi/ - - RtMidi: realtime MIDI i/o C++ classes - Copyright (c) 2003-2012 Gary P. Scavone - - 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 above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - Any person wishing to distribute modifications to the Software is - asked to send the modifications to the original developer so that - they can be incorporated into the canonical version. This is, - however, not a binding provision of this license. - - 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. -*/ -/**********************************************************************/ - -/*! - \file RtMidi.h - */ - -// RtMidi: Version 2.0.1 - -#ifndef RTMIDI_H -#define RTMIDI_H - -#include "RtError.h" -#include -#include - -class RtMidi -{ - public: - - //! MIDI API specifier arguments. - enum Api { - UNSPECIFIED, /*!< Search for a working compiled API. */ - MACOSX_CORE, /*!< Macintosh OS-X Core Midi API. */ - LINUX_ALSA, /*!< The Advanced Linux Sound Architecture API. */ - UNIX_JACK, /*!< The Jack Low-Latency MIDI Server API. */ - WINDOWS_MM, /*!< The Microsoft Multimedia MIDI API. */ - WINDOWS_KS, /*!< The Microsoft Kernel Streaming MIDI API. */ - RTMIDI_DUMMY /*!< A compilable but non-functional API. */ - }; - - //! A static function to determine the available compiled MIDI APIs. - /*! - The values returned in the std::vector can be compared against - the enumerated list values. Note that there can be more than one - API compiled for certain operating systems. - */ - static void getCompiledApi( std::vector &apis ); - - //! Pure virtual openPort() function. - virtual void openPort( unsigned int portNumber = 0, const std::string portName = std::string( "RtMidi" ) ) = 0; - - //! Pure virtual openVirtualPort() function. - virtual void openVirtualPort( const std::string portName = std::string( "RtMidi" ) ) = 0; - - //! Pure virtual getPortCount() function. - virtual unsigned int getPortCount() = 0; - - //! Pure virtual getPortName() function. - virtual std::string getPortName( unsigned int portNumber = 0 ) = 0; - - //! Pure virtual closePort() function. - virtual void closePort( void ) = 0; - - //! A basic error reporting function for RtMidi classes. - static void error( RtError::Type type, std::string errorString ); - - protected: - - RtMidi() {}; - virtual ~RtMidi() {}; -}; - -/**********************************************************************/ -/*! \class RtMidiIn - \brief A realtime MIDI input class. - - This class provides a common, platform-independent API for - realtime MIDI input. It allows access to a single MIDI input - port. Incoming MIDI messages are either saved to a queue for - retrieval using the getMessage() function or immediately passed to - a user-specified callback function. Create multiple instances of - this class to connect to more than one MIDI device at the same - time. With the OS-X and Linux ALSA MIDI APIs, it is also possible - to open a virtual input port to which other MIDI software clients - can connect. - - by Gary P. Scavone, 2003-2012. -*/ -/**********************************************************************/ - -// **************************************************************** // -// -// RtMidiIn and RtMidiOut class declarations. -// -// RtMidiIn / RtMidiOut are "controllers" used to select an available -// MIDI input or output interface. They present common APIs for the -// user to call but all functionality is implemented by the classes -// MidiInApi, MidiOutApi and their subclasses. RtMidiIn and RtMidiOut -// each create an instance of a MidiInApi or MidiOutApi subclass based -// on the user's API choice. If no choice is made, they attempt to -// make a "logical" API selection. -// -// **************************************************************** // - -class MidiInApi; -class MidiOutApi; - -class RtMidiIn : public RtMidi -{ - public: - - //! User callback function type definition. - typedef void (*RtMidiCallback)( double timeStamp, std::vector *message, void *userData); - - //! Default constructor that allows an optional api, client name and queue size. - /*! - An assert will be fired if a MIDI system initialization - error occurs. The queue size defines the maximum number of - messages that can be held in the MIDI queue (when not using a - callback function). If the queue size limit is reached, - incoming messages will be ignored. - - If no API argument is specified and multiple API support has been - compiled, the default order of use is JACK, ALSA (Linux) and CORE, - Jack (OS-X). - */ - RtMidiIn( RtMidi::Api api=UNSPECIFIED, - const std::string clientName = std::string( "RtMidi Input Client"), - unsigned int queueSizeLimit = 100 ); - - //! If a MIDI connection is still open, it will be closed by the destructor. - ~RtMidiIn ( void ); - - //! Returns the MIDI API specifier for the current instance of RtMidiIn. - RtMidi::Api getCurrentApi( void ); - - //! Open a MIDI input connection. - /*! - An optional port number greater than 0 can be specified. - Otherwise, the default or first port found is opened. - */ - void openPort( unsigned int portNumber = 0, const std::string portName = std::string( "RtMidi Input" ) ); - - //! Create a virtual input port, with optional name, to allow software connections (OS X and ALSA only). - /*! - This function creates a virtual MIDI input port to which other - software applications can connect. This type of functionality - is currently only supported by the Macintosh OS-X and Linux ALSA - APIs (the function does nothing for the other APIs). - */ - void openVirtualPort( const std::string portName = std::string( "RtMidi Input" ) ); - - //! Set a callback function to be invoked for incoming MIDI messages. - /*! - The callback function will be called whenever an incoming MIDI - message is received. While not absolutely necessary, it is best - to set the callback function before opening a MIDI port to avoid - leaving some messages in the queue. - */ - void setCallback( RtMidiCallback callback, void *userData = 0 ); - - //! Cancel use of the current callback function (if one exists). - /*! - Subsequent incoming MIDI messages will be written to the queue - and can be retrieved with the \e getMessage function. - */ - void cancelCallback(); - - //! Close an open MIDI connection (if one exists). - void closePort( void ); - - //! Return the number of available MIDI input ports. - unsigned int getPortCount(); - - //! Return a string identifier for the specified MIDI input port number. - /*! - An empty string is returned if an invalid port specifier is provided. - */ - std::string getPortName( unsigned int portNumber = 0 ); - - //! Specify whether certain MIDI message types should be queued or ignored during input. - /*! - o By default, MIDI timing and active sensing messages are ignored - during message input because of their relative high data rates. - MIDI sysex messages are ignored by default as well. Variable - values of "true" imply that the respective message type will be - ignored. - */ - void ignoreTypes( bool midiSysex = true, bool midiTime = true, bool midiSense = true ); - - //! Fill the user-provided vector with the data bytes for the next available MIDI message in the input queue and return the event delta-time in seconds. - /*! - This function returns immediately whether a new message is - available or not. A valid message is indicated by a non-zero - vector size. An assert is fired if an error occurs during - message retrieval or an input connection was not previously - established. - */ - double getMessage( std::vector *message ); - - protected: - void openMidiApi( RtMidi::Api api, const std::string clientName, unsigned int queueSizeLimit ); - MidiInApi *rtapi_; - -}; - -/**********************************************************************/ -/*! \class RtMidiOut - \brief A realtime MIDI output class. - - This class provides a common, platform-independent API for MIDI - output. It allows one to probe available MIDI output ports, to - connect to one such port, and to send MIDI bytes immediately over - the connection. Create multiple instances of this class to - connect to more than one MIDI device at the same time. With the - OS-X and Linux ALSA MIDI APIs, it is also possible to open a - virtual port to which other MIDI software clients can connect. - - by Gary P. Scavone, 2003-2012. -*/ -/**********************************************************************/ - -class RtMidiOut : public RtMidi -{ - public: - - //! Default constructor that allows an optional client name. - /*! - An exception will be thrown if a MIDI system initialization error occurs. - - If no API argument is specified and multiple API support has been - compiled, the default order of use is JACK, ALSA (Linux) and CORE, - Jack (OS-X). - */ - RtMidiOut( RtMidi::Api api=UNSPECIFIED, - const std::string clientName = std::string( "RtMidi Output Client") ); - - //! The destructor closes any open MIDI connections. - ~RtMidiOut( void ); - - //! Returns the MIDI API specifier for the current instance of RtMidiOut. - RtMidi::Api getCurrentApi( void ); - - //! Open a MIDI output connection. - /*! - An optional port number greater than 0 can be specified. - Otherwise, the default or first port found is opened. An - exception is thrown if an error occurs while attempting to make - the port connection. - */ - void openPort( unsigned int portNumber = 0, const std::string portName = std::string( "RtMidi Output" ) ); - - //! Close an open MIDI connection (if one exists). - void closePort( void ); - - //! Create a virtual output port, with optional name, to allow software connections (OS X and ALSA only). - /*! - This function creates a virtual MIDI output port to which other - software applications can connect. This type of functionality - is currently only supported by the Macintosh OS-X and Linux ALSA - APIs (the function does nothing with the other APIs). An - exception is thrown if an error occurs while attempting to create - the virtual port. - */ - void openVirtualPort( const std::string portName = std::string( "RtMidi Output" ) ); - - //! Return the number of available MIDI output ports. - unsigned int getPortCount( void ); - - //! Return a string identifier for the specified MIDI port type and number. - /*! - An empty string is returned if an invalid port specifier is provided. - */ - std::string getPortName( unsigned int portNumber = 0 ); - - //! Immediately send a single message out an open MIDI output port. - /*! - An exception is thrown if an error occurs during output or an - output connection was not previously established. - */ - void sendMessage( std::vector *message ); - - protected: - void openMidiApi( RtMidi::Api api, const std::string clientName ); - MidiOutApi *rtapi_; -}; - - -// **************************************************************** // -// -// MidiInApi / MidiOutApi class declarations. -// -// Subclasses of MidiInApi and MidiOutApi contain all API- and -// OS-specific code necessary to fully implement the RtMidi API. -// -// Note that MidiInApi and MidiOutApi are abstract base classes and -// cannot be explicitly instantiated. RtMidiIn and RtMidiOut will -// create instances of a MidiInApi or MidiOutApi subclass. -// -// **************************************************************** // - -class MidiInApi -{ - public: - - MidiInApi( unsigned int queueSizeLimit ); - virtual ~MidiInApi( void ); - virtual RtMidi::Api getCurrentApi( void ) = 0; - virtual void openPort( unsigned int portNumber, const std::string portName ) = 0; - virtual void openVirtualPort( const std::string portName ) = 0; - virtual void closePort( void ) = 0; - void setCallback( RtMidiIn::RtMidiCallback callback, void *userData ); - void cancelCallback( void ); - virtual unsigned int getPortCount( void ) = 0; - virtual std::string getPortName( unsigned int portNumber ) = 0; - virtual void ignoreTypes( bool midiSysex, bool midiTime, bool midiSense ); - double getMessage( std::vector *message ); - - // A MIDI structure used internally by the class to store incoming - // messages. Each message represents one and only one MIDI message. - struct MidiMessage { - std::vector bytes; - double timeStamp; - - // Default constructor. - MidiMessage() - :bytes(0), timeStamp(0.0) {} - }; - - struct MidiQueue { - unsigned int front; - unsigned int back; - unsigned int size; - unsigned int ringSize; - MidiMessage *ring; - - // Default constructor. - MidiQueue() - :front(0), back(0), size(0), ringSize(0) {} - }; - - // The RtMidiInData structure is used to pass private class data to - // the MIDI input handling function or thread. - struct RtMidiInData { - MidiQueue queue; - MidiMessage message; - unsigned char ignoreFlags; - bool doInput; - bool firstMessage; - void *apiData; - bool usingCallback; - void *userCallback; - void *userData; - bool continueSysex; - - // Default constructor. - RtMidiInData() - : ignoreFlags(7), doInput(false), firstMessage(true), - apiData(0), usingCallback(false), userCallback(0), userData(0), - continueSysex(false) {} - }; - - protected: - virtual void initialize( const std::string& clientName ) = 0; - RtMidiInData inputData_; - - void *apiData_; - bool connected_; - std::string errorString_; -}; - -class MidiOutApi -{ - public: - - MidiOutApi( void ); - virtual ~MidiOutApi( void ); - virtual RtMidi::Api getCurrentApi( void ) = 0; - virtual void openPort( unsigned int portNumber, const std::string portName ) = 0; - virtual void openVirtualPort( const std::string portName ) = 0; - virtual void closePort( void ) = 0; - virtual unsigned int getPortCount( void ) = 0; - virtual std::string getPortName( unsigned int portNumber ) = 0; - virtual void sendMessage( std::vector *message ) = 0; - - protected: - virtual void initialize( const std::string& clientName ) = 0; - - void *apiData_; - bool connected_; - std::string errorString_; -}; - -// **************************************************************** // -// -// Inline RtMidiIn and RtMidiOut definitions. -// -// **************************************************************** // - -inline RtMidi::Api RtMidiIn :: getCurrentApi( void ) { return rtapi_->getCurrentApi(); } -inline void RtMidiIn :: openPort( unsigned int portNumber, const std::string portName ) { return rtapi_->openPort( portNumber, portName ); } -inline void RtMidiIn :: openVirtualPort( const std::string portName ) { return rtapi_->openVirtualPort( portName ); } -inline void RtMidiIn :: closePort( void ) { return rtapi_->closePort(); } -inline void RtMidiIn :: setCallback( RtMidiCallback callback, void *userData ) { return rtapi_->setCallback( callback, userData ); } -inline void RtMidiIn :: cancelCallback( void ) { return rtapi_->cancelCallback(); } -inline unsigned int RtMidiIn :: getPortCount( void ) { return rtapi_->getPortCount(); } -inline std::string RtMidiIn :: getPortName( unsigned int portNumber ) { return rtapi_->getPortName( portNumber ); } -inline void RtMidiIn :: ignoreTypes( bool midiSysex, bool midiTime, bool midiSense ) { return rtapi_->ignoreTypes( midiSysex, midiTime, midiSense ); } -inline double RtMidiIn :: getMessage( std::vector *message ) { return rtapi_->getMessage( message ); } - -inline RtMidi::Api RtMidiOut :: getCurrentApi( void ) { return rtapi_->getCurrentApi(); } -inline void RtMidiOut :: openPort( unsigned int portNumber, const std::string portName ) { return rtapi_->openPort( portNumber, portName ); } -inline void RtMidiOut :: openVirtualPort( const std::string portName ) { return rtapi_->openVirtualPort( portName ); } -inline void RtMidiOut :: closePort( void ) { return rtapi_->closePort(); } -inline unsigned int RtMidiOut :: getPortCount( void ) { return rtapi_->getPortCount(); } -inline std::string RtMidiOut :: getPortName( unsigned int portNumber ) { return rtapi_->getPortName( portNumber ); } -inline void RtMidiOut :: sendMessage( std::vector *message ) { return rtapi_->sendMessage( message ); } - -// **************************************************************** // -// -// MidiInApi and MidiOutApi subclass prototypes. -// -// **************************************************************** // - -#if !defined(__LINUX_ALSA__) && !defined(__UNIX_JACK__) && !defined(__MACOSX_CORE__) && !defined(__WINDOWS_MM__) && !defined(__WINDOWS_KS__) - #define __RTMIDI_DUMMY__ -#endif - -#if defined(__MACOSX_CORE__) - -class MidiInCore: public MidiInApi -{ - public: - MidiInCore( const std::string clientName, unsigned int queueSizeLimit ); - ~MidiInCore( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::MACOSX_CORE; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - - protected: - void initialize( const std::string& clientName ); -}; - -class MidiOutCore: public MidiOutApi -{ - public: - MidiOutCore( const std::string clientName ); - ~MidiOutCore( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::MACOSX_CORE; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - void sendMessage( std::vector *message ); - - protected: - void initialize( const std::string& clientName ); -}; - -#endif - -#if defined(__UNIX_JACK__) - -class MidiInJack: public MidiInApi -{ - public: - MidiInJack( const std::string clientName, unsigned int queueSizeLimit ); - ~MidiInJack( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::UNIX_JACK; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - - protected: - void initialize( const std::string& clientName ); -}; - -class MidiOutJack: public MidiOutApi -{ - public: - MidiOutJack( const std::string clientName ); - ~MidiOutJack( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::UNIX_JACK; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - void sendMessage( std::vector *message ); - - protected: - void initialize( const std::string& clientName ); -}; - -#endif - -#if defined(__LINUX_ALSA__) - -class MidiInAlsa: public MidiInApi -{ - public: - MidiInAlsa( const std::string clientName, unsigned int queueSizeLimit ); - ~MidiInAlsa( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::LINUX_ALSA; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - - protected: - void initialize( const std::string& clientName ); -}; - -class MidiOutAlsa: public MidiOutApi -{ - public: - MidiOutAlsa( const std::string clientName ); - ~MidiOutAlsa( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::LINUX_ALSA; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - void sendMessage( std::vector *message ); - - protected: - void initialize( const std::string& clientName ); -}; - -#endif - -#if defined(__WINDOWS_MM__) - -class MidiInWinMM: public MidiInApi -{ - public: - MidiInWinMM( const std::string clientName, unsigned int queueSizeLimit ); - ~MidiInWinMM( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::WINDOWS_MM; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - - protected: - void initialize( const std::string& clientName ); -}; - -class MidiOutWinMM: public MidiOutApi -{ - public: - MidiOutWinMM( const std::string clientName ); - ~MidiOutWinMM( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::WINDOWS_MM; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - void sendMessage( std::vector *message ); - - protected: - void initialize( const std::string& clientName ); -}; - -#endif - -#if defined(__WINDOWS_KS__) - -class MidiInWinKS: public MidiInApi -{ - public: - MidiInWinKS( const std::string clientName, unsigned int queueSizeLimit ); - ~MidiInWinKS( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::WINDOWS_KS; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - - protected: - void initialize( const std::string& clientName ); -}; - -class MidiOutWinKS: public MidiOutApi -{ - public: - MidiOutWinKS( const std::string clientName ); - ~MidiOutWinKS( void ); - RtMidi::Api getCurrentApi( void ) { return RtMidi::WINDOWS_KS; }; - void openPort( unsigned int portNumber, const std::string portName ); - void openVirtualPort( const std::string portName ); - void closePort( void ); - unsigned int getPortCount( void ); - std::string getPortName( unsigned int portNumber ); - void sendMessage( std::vector *message ); - - protected: - void initialize( const std::string& clientName ); -}; - -#endif - -#if defined(__RTMIDI_DUMMY__) - -class MidiInDummy: public MidiInApi -{ - public: - MidiInDummy( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) { errorString_ = "MidiInDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); }; - RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; }; - void openPort( unsigned int portNumber, const std::string portName ) {}; - void openVirtualPort( const std::string portName ) {}; - void closePort( void ) {}; - unsigned int getPortCount( void ) { return 0; }; - std::string getPortName( unsigned int portNumber ) { return ""; }; - - protected: - void initialize( const std::string& clientName ) {}; -}; - -class MidiOutDummy: public MidiOutApi -{ - public: - MidiOutDummy( const std::string clientName ) { errorString_ = "MidiOutDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); }; - RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; }; - void openPort( unsigned int portNumber, const std::string portName ) {}; - void openVirtualPort( const std::string portName ) {}; - void closePort( void ) {}; - unsigned int getPortCount( void ) { return 0; }; - std::string getPortName( unsigned int portNumber ) { return ""; }; - void sendMessage( std::vector *message ) {}; - - protected: - void initialize( const std::string& clientName ) {}; -}; - -#endif - -#endif diff --git a/btgui/MidiTest/cmidiin.cpp b/btgui/MidiTest/cmidiin.cpp deleted file mode 100644 index 9de7ab83c..000000000 --- a/btgui/MidiTest/cmidiin.cpp +++ /dev/null @@ -1,112 +0,0 @@ -//*****************************************// -// cmidiin.cpp -// by Gary Scavone, 2003-2004. -// -// Simple program to test MIDI input and -// use of a user callback function. -// -//*****************************************// - -#include -#include -#include "RtMidi.h" - -void usage( void ) { - // Error function in case of incorrect command-line - // argument specifications. - std::cout << "\nuseage: cmidiin \n"; - std::cout << " where port = the device to use (default = 0).\n\n"; - exit( 0 ); -} - -void mycallback( double deltatime, std::vector< unsigned char > *message, void *userData ) -{ - unsigned int nBytes = message->size(); - for ( unsigned int i=0; i 0 ) - std::cout << "stamp = " << deltatime << std::endl; -} - -// This function should be embedded in a try/catch block in case of -// an exception. It offers the user a choice of MIDI ports to open. -// It returns false if there are no ports available. -bool chooseMidiPort( RtMidiIn *rtmidi ); - -int main( int argc, char *argv[] ) -{ - RtMidiIn *midiin = 0; - - // Minimal command-line check. - if ( argc > 2 ) usage(); - - - // RtMidiIn constructor - midiin = new RtMidiIn(); - - // Call function to select port. - if ( chooseMidiPort( midiin ) == false ) goto cleanup; - - // Set our callback function. This should be done immediately after - // opening the port to avoid having incoming messages written to the - // queue instead of sent to the callback function. - midiin->setCallback( &mycallback ); - - // Don't ignore sysex, timing, or active sensing messages. - midiin->ignoreTypes( false, false, false ); - - std::cout << "\nReading MIDI input ... press to quit.\n"; - char input; - std::cin.get(input); - std::cin.get(input); - - - - cleanup: - - delete midiin; - - return 0; -} - -bool chooseMidiPort( RtMidiIn *rtmidi ) -{ - /* - - std::cout << "\nWould you like to open a virtual input port? [y/N] "; - - std::string keyHit; - std::getline( std::cin, keyHit ); - if ( keyHit == "y" ) { - rtmidi->openVirtualPort(); - return true; - } - */ - - std::string portName; - unsigned int i = 0, nPorts = rtmidi->getPortCount(); - if ( nPorts == 0 ) { - std::cout << "No input ports available!" << std::endl; - return false; - } - - if ( nPorts == 1 ) { - std::cout << "\nOpening " << rtmidi->getPortName() << std::endl; - } - else { - for ( i=0; igetPortName(i); - std::cout << " Input port #" << i << ": " << portName << '\n'; - } - - do { - std::cout << "\nChoose a port number: "; - std::cin >> i; - } while ( i >= nPorts ); - } - -// std::getline( std::cin, keyHit ); // used to clear out stdin - rtmidi->openPort( i ); - - return true; -} diff --git a/btgui/MidiTest/premake4.lua b/btgui/MidiTest/premake4.lua deleted file mode 100644 index e09468e6a..000000000 --- a/btgui/MidiTest/premake4.lua +++ /dev/null @@ -1,37 +0,0 @@ - - project "rtMidiTest" - - kind "ConsoleApp" - --- defines { } - - targetdir "../../bin" - - includedirs - { - ".", - } - - --- links { } - - - files { - "**.cpp", - "**.h" - } - if os.is("Windows") then - links {"winmm"} - defines {"__WINDOWS_MM__", "WIN32"} - end - - if os.is("Linux") then - defines {"__LINUX_ALSA__"} - links {"asound","pthread"} - end - - if os.is("MacOSX") then - links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"} - defines {"__MACOSX_CORE__"} - print ("hi!") - end diff --git a/btgui/MultiThreading/b3PosixThreadSupport.cpp b/btgui/MultiThreading/b3PosixThreadSupport.cpp deleted file mode 100644 index 705e297ce..000000000 --- a/btgui/MultiThreading/b3PosixThreadSupport.cpp +++ /dev/null @@ -1,436 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include -#include "b3PosixThreadSupport.h" -#include -#include - - -#define checkPThreadFunction(returnValue) \ - if(0 != returnValue) { \ - printf("PThread problem at line %i in file %s: %i %d\n", __LINE__, __FILE__, returnValue, errno); \ - } - -// The number of threads should be equal to the number of available cores -// Todo: each worker should be linked to a single core, using SetThreadIdealProcessor. - - -b3PosixThreadSupport::b3PosixThreadSupport(ThreadConstructionInfo& threadConstructionInfo) -{ - startThreads(threadConstructionInfo); -} - -// cleanup/shutdown Libspe2 -b3PosixThreadSupport::~b3PosixThreadSupport() -{ - stopThreads(); -} - -#if (defined (__APPLE__)) -#define NAMED_SEMAPHORES -#endif - -// this semaphore will signal, if and how many threads are finished with their work -static sem_t* mainSemaphore=0; - -static sem_t* createSem(const char* baseName) -{ - static int semCount = 0; -#ifdef NAMED_SEMAPHORES - /// Named semaphore begin - char name[32]; - snprintf(name, 32, "/%s-%d-%4.4d", baseName, getpid(), semCount++); - sem_t* tempSem = sem_open(name, O_CREAT, 0600, 0); - - if (tempSem != reinterpret_cast(SEM_FAILED)) - { -// printf("Created \"%s\" Semaphore %p\n", name, tempSem); - } - else - { - //printf("Error creating Semaphore %d\n", errno); - exit(-1); - } - /// Named semaphore end -#else - sem_t* tempSem = new sem_t; - checkPThreadFunction(sem_init(tempSem, 0, 0)); -#endif - return tempSem; -} - -static void destroySem(sem_t* semaphore) -{ -#ifdef NAMED_SEMAPHORES - checkPThreadFunction(sem_close(semaphore)); -#else - checkPThreadFunction(sem_destroy(semaphore)); - delete semaphore; -#endif -} - -static void *threadFunction(void *argument) -{ - - b3PosixThreadSupport::b3ThreadStatus* status = (b3PosixThreadSupport::b3ThreadStatus*)argument; - - - while (1) - { - checkPThreadFunction(sem_wait(status->startSemaphore)); - - void* userPtr = status->m_userPtr; - - if (userPtr) - { - b3Assert(status->m_status); - status->m_userThreadFunc(userPtr,status->m_lsMemory); - status->m_status = 2; - checkPThreadFunction(sem_post(mainSemaphore)); - status->threadUsed++; - } else { - //exit Thread - status->m_status = 3; - checkPThreadFunction(sem_post(mainSemaphore)); - printf("Thread with taskId %i exiting\n",status->m_taskId); - break; - } - - } - - printf("Thread TERMINATED\n"); - return 0; - -} - -///send messages to SPUs -void b3PosixThreadSupport::sendRequest(int uiCommand, void* uiArgument0, int taskId) -{ - /// gMidphaseSPU.sendRequest(CMD_GATHER_AND_PROCESS_PAIRLIST, (int) &taskDesc); - - ///we should spawn an SPU task here, and in 'waitForResponse' it should wait for response of the (one of) the first tasks that finished - - - - switch (uiCommand) - { - case B3_THREAD_SCHEDULE_TASK: - { - b3ThreadStatus& spuStatus = m_activeThreadStatus[taskId]; - b3Assert(taskId >= 0); - b3Assert(taskId < m_activeThreadStatus.size()); - - spuStatus.m_commandId = uiCommand; - spuStatus.m_status = 1; - spuStatus.m_userPtr = (void*)uiArgument0; - - // fire event to start new task - checkPThreadFunction(sem_post(spuStatus.startSemaphore)); - break; - } - default: - { - ///not implemented - b3Assert(0); - } - - }; - - -} - -///non-blocking test if a task is completed. First implement all versions, and then enable this API -bool b3PosixThreadSupport::isTaskCompleted(int *puiArgument0, int *puiArgument1, int timeOutInMilliseconds) -{ - - b3Assert(m_activeThreadStatus.size()); - - // wait for any of the threads to finish - int result = sem_trywait(mainSemaphore); - if (result==0) - { - // get at least one thread which has finished - size_t last = -1; - - for(size_t t=0; t < size_t(m_activeThreadStatus.size()); ++t) { - if(2 == m_activeThreadStatus[t].m_status) { - last = t; - break; - } - } - - b3ThreadStatus& spuStatus = m_activeThreadStatus[last]; - - b3Assert(spuStatus.m_status > 1); - spuStatus.m_status = 0; - - // need to find an active spu - b3Assert(last >= 0); - - *puiArgument0 = spuStatus.m_taskId; - *puiArgument1 = spuStatus.m_status; - return true; - } - return false; -} - - -///check for messages from SPUs -void b3PosixThreadSupport::waitForResponse( int *puiArgument0, int *puiArgument1) -{ - ///We should wait for (one of) the first tasks to finish (or other SPU messages), and report its response - - ///A possible response can be 'yes, SPU handled it', or 'no, please do a PPU fallback' - - - b3Assert(m_activeThreadStatus.size()); - - // wait for any of the threads to finish - checkPThreadFunction(sem_wait(mainSemaphore)); - - // get at least one thread which has finished - size_t last = -1; - - for(size_t t=0; t < size_t(m_activeThreadStatus.size()); ++t) { - if(2 == m_activeThreadStatus[t].m_status) { - last = t; - break; - } - } - - b3ThreadStatus& spuStatus = m_activeThreadStatus[last]; - - b3Assert(spuStatus.m_status > 1); - spuStatus.m_status = 0; - - // need to find an active spu - b3Assert(last >= 0); - - *puiArgument0 = spuStatus.m_taskId; - *puiArgument1 = spuStatus.m_status; -} - - - -void b3PosixThreadSupport::startThreads(ThreadConstructionInfo& threadConstructionInfo) -{ - printf("%s creating %i threads.\n", __FUNCTION__, threadConstructionInfo.m_numThreads); - m_activeThreadStatus.resize(threadConstructionInfo.m_numThreads); - - mainSemaphore = createSem("main"); - //checkPThreadFunction(sem_wait(mainSemaphore)); - - for (int i=0;i < threadConstructionInfo.m_numThreads;i++) - { - printf("starting thread %d\n",i); - - b3ThreadStatus& spuStatus = m_activeThreadStatus[i]; - - spuStatus.startSemaphore = createSem("threadLocal"); - - checkPThreadFunction(pthread_create(&spuStatus.thread, NULL, &threadFunction, (void*)&spuStatus)); - - spuStatus.m_userPtr=0; - - spuStatus.m_taskId = i; - spuStatus.m_commandId = 0; - spuStatus.m_status = 0; - spuStatus.m_lsMemory = threadConstructionInfo.m_lsMemoryFunc(); - spuStatus.m_userThreadFunc = threadConstructionInfo.m_userThreadFunc; - spuStatus.threadUsed = 0; - - printf("started thread %d \n",i); - - } - -} - - - -///tell the task scheduler we are done with the SPU tasks -void b3PosixThreadSupport::stopThreads() -{ - for(size_t t=0; t < size_t(m_activeThreadStatus.size()); ++t) - { - b3ThreadStatus& spuStatus = m_activeThreadStatus[t]; - printf("%s: Thread %i used: %ld\n", __FUNCTION__, int(t), spuStatus.threadUsed); - - spuStatus.m_userPtr = 0; - checkPThreadFunction(sem_post(spuStatus.startSemaphore)); - checkPThreadFunction(sem_wait(mainSemaphore)); - - printf("destroy semaphore\n"); - destroySem(spuStatus.startSemaphore); - printf("semaphore destroyed\n"); - checkPThreadFunction(pthread_join(spuStatus.thread,0)); - - } - printf("destroy main semaphore\n"); - destroySem(mainSemaphore); - printf("main semaphore destroyed\n"); - m_activeThreadStatus.clear(); -} - -class b3PosixCriticalSection : public b3CriticalSection -{ - pthread_mutex_t m_mutex; - -public: - b3PosixCriticalSection() - { - pthread_mutex_init(&m_mutex, NULL); - } - virtual ~b3PosixCriticalSection() - { - pthread_mutex_destroy(&m_mutex); - } - - B3_ATTRIBUTE_ALIGNED16(unsigned int mCommonBuff[32]); - - virtual unsigned int getSharedParam(int i) - { - return mCommonBuff[i]; - } - virtual void setSharedParam(int i,unsigned int p) - { - mCommonBuff[i] = p; - } - - virtual void lock() - { - pthread_mutex_lock(&m_mutex); - } - virtual void unlock() - { - pthread_mutex_unlock(&m_mutex); - } -}; - - -#if defined(_POSIX_BARRIERS) && (_POSIX_BARRIERS - 20012L) >= 0 -/* OK to use barriers on this platform */ -class b3PosixBarrier : public b3Barrier -{ - pthread_barrier_t m_barr; - int m_numThreads; -public: - b3PosixBarrier() - :m_numThreads(0) { } - virtual ~b3PosixBarrier() { - pthread_barrier_destroy(&m_barr); - } - - virtual void sync() - { - int rc = pthread_barrier_wait(&m_barr); - if(rc != 0 && rc != PTHREAD_BARRIER_SERIAL_THREAD) - { - printf("Could not wait on barrier\n"); - exit(-1); - } - } - virtual void setMaxCount(int numThreads) - { - int result = pthread_barrier_init(&m_barr, NULL, numThreads); - m_numThreads = numThreads; - b3Assert(result==0); - } - virtual int getMaxCount() - { - return m_numThreads; - } -}; -#else -/* Not OK to use barriers on this platform - insert alternate code here */ -class b3PosixBarrier : public b3Barrier -{ - pthread_mutex_t m_mutex; - pthread_cond_t m_cond; - - int m_numThreads; - int m_called; - -public: - b3PosixBarrier() - :m_numThreads(0) - { - } - virtual ~b3PosixBarrier() - { - if (m_numThreads>0) - { - pthread_mutex_destroy(&m_mutex); - pthread_cond_destroy(&m_cond); - } - } - - virtual void sync() - { - pthread_mutex_lock(&m_mutex); - m_called++; - if (m_called == m_numThreads) { - m_called = 0; - pthread_cond_broadcast(&m_cond); - } else { - pthread_cond_wait(&m_cond,&m_mutex); - } - pthread_mutex_unlock(&m_mutex); - - } - virtual void setMaxCount(int numThreads) - { - if (m_numThreads>0) - { - pthread_mutex_destroy(&m_mutex); - pthread_cond_destroy(&m_cond); - } - m_called = 0; - pthread_mutex_init(&m_mutex,NULL); - pthread_cond_init(&m_cond,NULL); - m_numThreads = numThreads; - } - virtual int getMaxCount() - { - return m_numThreads; - } -}; - -#endif//_POSIX_BARRIERS - - - -b3Barrier* b3PosixThreadSupport::createBarrier() -{ - b3PosixBarrier* barrier = new b3PosixBarrier(); - barrier->setMaxCount(getNumTasks()); - return barrier; -} - -b3CriticalSection* b3PosixThreadSupport::createCriticalSection() -{ - return new b3PosixCriticalSection(); -} - -void b3PosixThreadSupport::deleteBarrier(b3Barrier* barrier) -{ - delete barrier; -} - -void b3PosixThreadSupport::deleteCriticalSection(b3CriticalSection* cs) -{ - delete cs; -} - diff --git a/btgui/MultiThreading/b3PosixThreadSupport.h b/btgui/MultiThreading/b3PosixThreadSupport.h deleted file mode 100644 index 17dde8d60..000000000 --- a/btgui/MultiThreading/b3PosixThreadSupport.h +++ /dev/null @@ -1,144 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef B3_POSIX_THREAD_SUPPORT_H -#define B3_POSIX_THREAD_SUPPORT_H - - -#include "Bullet3Common/b3Scalar.h" - - -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 600 //for definition of pthread_barrier_t, see http://pages.cs.wisc.edu/~travitch/pthreads_primer.html -#endif //_XOPEN_SOURCE -#include -#include - - - -#include "Bullet3Common/b3AlignedObjectArray.h" - -#include "b3ThreadSupportInterface.h" - - -typedef void (*b3PosixThreadFunc)(void* userPtr,void* lsMemory); -typedef void* (*b3PosixlsMemorySetupFunc)(); - -// b3PosixThreadSupport helps to initialize/shutdown libspe2, start/stop SPU tasks and communication -class b3PosixThreadSupport : public b3ThreadSupportInterface -{ -public: - typedef enum sStatus { - STATUS_BUSY, - STATUS_READY, - STATUS_FINISHED - } Status; - - // placeholder, until libspe2 support is there - struct b3ThreadStatus - { - int m_taskId; - int m_commandId; - int m_status; - - b3PosixThreadFunc m_userThreadFunc; - void* m_userPtr; //for taskDesc etc - void* m_lsMemory; //initialized using PosixLocalStoreMemorySetupFunc - - pthread_t thread; - sem_t* startSemaphore; - - unsigned long threadUsed; - }; -private: - - b3AlignedObjectArray m_activeThreadStatus; -public: - ///Setup and initialize SPU/CELL/Libspe2 - - - - struct ThreadConstructionInfo - { - ThreadConstructionInfo(const char* uniqueName, - b3PosixThreadFunc userThreadFunc, - b3PosixlsMemorySetupFunc lsMemoryFunc, - int numThreads=1, - int threadStackSize=65535 - ) - :m_uniqueName(uniqueName), - m_userThreadFunc(userThreadFunc), - m_lsMemoryFunc(lsMemoryFunc), - m_numThreads(numThreads), - m_threadStackSize(threadStackSize) - { - - } - - const char* m_uniqueName; - b3PosixThreadFunc m_userThreadFunc; - b3PosixlsMemorySetupFunc m_lsMemoryFunc; - int m_numThreads; - int m_threadStackSize; - - }; - - b3PosixThreadSupport(ThreadConstructionInfo& threadConstructionInfo); - -///cleanup/shutdown Libspe2 - virtual ~b3PosixThreadSupport(); - - void startThreads(ThreadConstructionInfo& threadInfo); - - - virtual void sendRequest(int uiCommand, void* uiArgument0, int uiArgument1); - - virtual void waitForResponse(int *puiArgument0, int *puiArgument1); - - -///tell the task scheduler we are done with the SPU tasks - virtual void stopThreads(); - - virtual void setNumTasks(int numTasks) {} - - virtual int getNumTasks() const - { - return m_activeThreadStatus.size(); - } - - ///non-blocking test if a task is completed. First implement all versions, and then enable this API - virtual bool isTaskCompleted(int *puiArgument0, int *puiArgument1, int timeOutInMilliseconds); - - - virtual b3Barrier* createBarrier(); - - virtual b3CriticalSection* createCriticalSection(); - - virtual void deleteBarrier(b3Barrier* barrier); - - virtual void deleteCriticalSection(b3CriticalSection* criticalSection); - - - virtual void* getThreadLocalMemory(int taskId) - { - return m_activeThreadStatus[taskId].m_lsMemory; - } - -}; - - -#endif // B3_POSIX_THREAD_SUPPORT_H - - diff --git a/btgui/MultiThreading/b3ThreadSupportInterface.h b/btgui/MultiThreading/b3ThreadSupportInterface.h deleted file mode 100644 index d53209abd..000000000 --- a/btgui/MultiThreading/b3ThreadSupportInterface.h +++ /dev/null @@ -1,90 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#ifndef B3_THREAD_SUPPORT_INTERFACE_H -#define B3_THREAD_SUPPORT_INTERFACE_H - -enum -{ - B3_THREAD_SCHEDULE_TASK=1, -}; - -#include "Bullet3Common/b3Scalar.h" //for B3_ATTRIBUTE_ALIGNED16 -//#include "PlatformDefinitions.h" -//#include "PpuAddressSpace.h" - -class b3Barrier { -public: - b3Barrier() {} - virtual ~b3Barrier() {} - - virtual void sync() = 0; - virtual void setMaxCount(int n) = 0; - virtual int getMaxCount() = 0; -}; - -class b3CriticalSection { -public: - b3CriticalSection() {} - virtual ~b3CriticalSection() {} - - B3_ATTRIBUTE_ALIGNED16(unsigned int mCommonBuff[32]); - - virtual unsigned int getSharedParam(int i) = 0; - virtual void setSharedParam(int i,unsigned int p) = 0; - - virtual void lock() = 0; - virtual void unlock() = 0; -}; - - -class b3ThreadSupportInterface -{ -public: - - virtual ~b3ThreadSupportInterface(); - - - virtual void sendRequest(int uiCommand, void* uiArgument0, int uiArgument1) =0; - - - virtual void waitForResponse(int *puiArgument0, int *puiArgument1) =0; - - - ///non-blocking test if a task is completed. First implement all versions, and then enable this API - virtual bool isTaskCompleted(int *puiArgument0, int *puiArgument1, int timeOutInMilliseconds)=0; - - - virtual void stopThreads()=0; - - ///tell the task scheduler to use no more than numTasks tasks - virtual void setNumTasks(int numTasks)=0; - - virtual int getNumTasks() const = 0; - - virtual b3Barrier* createBarrier() = 0; - - virtual b3CriticalSection* createCriticalSection() = 0; - - virtual void deleteBarrier(b3Barrier* barrier)=0; - - virtual void deleteCriticalSection(b3CriticalSection* criticalSection)=0; - - virtual void* getThreadLocalMemory(int taskId) { return 0; } - -}; - -#endif //B3_THREAD_SUPPORT_INTERFACE_H - diff --git a/btgui/MultiThreading/b3Win32ThreadSupport.cpp b/btgui/MultiThreading/b3Win32ThreadSupport.cpp deleted file mode 100644 index 7eae9b1a3..000000000 --- a/btgui/MultiThreading/b3Win32ThreadSupport.cpp +++ /dev/null @@ -1,454 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "b3Win32ThreadSupport.h" - - -#include - - - - -///The number of threads should be equal to the number of available cores -///@todo: each worker should be linked to a single core, using SetThreadIdealProcessor. - -///b3Win32ThreadSupport helps to initialize/shutdown libspe2, start/stop SPU tasks and communication -///Setup and initialize SPU/CELL/Libspe2 -b3Win32ThreadSupport::b3Win32ThreadSupport(const Win32ThreadConstructionInfo & threadConstructionInfo) -{ - m_maxNumTasks = threadConstructionInfo.m_numThreads; - startThreads(threadConstructionInfo); -} - -///cleanup/shutdown Libspe2 -b3Win32ThreadSupport::~b3Win32ThreadSupport() -{ - stopThreads(); -} - - - - -#include - -DWORD WINAPI Thread_no_1( LPVOID lpParam ) -{ - - b3Win32ThreadSupport::b3ThreadStatus* status = (b3Win32ThreadSupport::b3ThreadStatus*)lpParam; - - - while (1) - { - WaitForSingleObject(status->m_eventStartHandle,INFINITE); - - void* userPtr = status->m_userPtr; - - if (userPtr) - { - b3Assert(status->m_status); - status->m_userThreadFunc(userPtr,status->m_lsMemory); - status->m_status = 2; - SetEvent(status->m_eventCompletetHandle); - } else - { - //exit Thread - status->m_status = 3; - printf("Thread with taskId %i with handle %p exiting\n",status->m_taskId, status->m_threadHandle); - SetEvent(status->m_eventCompletetHandle); - break; - } - - } - - printf("Thread TERMINATED\n"); - return 0; - -} - -///send messages to SPUs -void b3Win32ThreadSupport::sendRequest(int uiCommand, void* uiArgument0, int taskId) -{ - /// gMidphaseSPU.sendRequest(CMD_GATHER_AND_PROCESS_PAIRLIST, (void*) &taskDesc); - - ///we should spawn an SPU task here, and in 'waitForResponse' it should wait for response of the (one of) the first tasks that finished - - - - switch (uiCommand) - { - case B3_THREAD_SCHEDULE_TASK: - { - - -//#define SINGLE_THREADED 1 -#ifdef SINGLE_THREADED - - b3ThreadStatus& threadStatus = m_activeThreadStatus[0]; - threadStatus.m_userPtr=(void*)uiArgument0; - threadStatus.m_userThreadFunc(threadStatus.m_userPtr,threadStatus.m_lsMemory); - HANDLE handle =0; -#else - - - b3ThreadStatus& threadStatus = m_activeThreadStatus[taskId]; - b3Assert(taskId>=0); - b3Assert(int(taskId) 1); - threadStatus.m_status = 0; - - ///need to find an active spu - b3Assert(last>=0); - -#else - last=0; - b3ThreadStatus& threadStatus = m_activeThreadStatus[last]; -#endif //SINGLE_THREADED - - - - *puiArgument0 = threadStatus.m_taskId; - *puiArgument1 = threadStatus.m_status; - - -} - - -///check for messages from SPUs -bool b3Win32ThreadSupport::isTaskCompleted(int *puiArgument0, int *puiArgument1, int timeOutInMilliseconds) -{ - ///We should wait for (one of) the first tasks to finish (or other SPU messages), and report its response - - ///A possible response can be 'yes, SPU handled it', or 'no, please do a PPU fallback' - - - b3Assert(m_activeThreadStatus.size()); - - int last = -1; -#ifndef SINGLE_THREADED - DWORD res = WaitForMultipleObjects(m_completeHandles.size(), &m_completeHandles[0], FALSE, timeOutInMilliseconds); - - if ((res != STATUS_TIMEOUT) && (res != WAIT_FAILED)) - { - - b3Assert(res != WAIT_FAILED); - last = res - WAIT_OBJECT_0; - - b3ThreadStatus& threadStatus = m_activeThreadStatus[last]; - b3Assert(threadStatus.m_threadHandle); - b3Assert(threadStatus.m_eventCompletetHandle); - - //WaitForSingleObject(threadStatus.m_eventCompletetHandle, INFINITE); - b3Assert(threadStatus.m_status > 1); - threadStatus.m_status = 0; - - ///need to find an active spu - b3Assert(last>=0); - - #else - last=0; - b3ThreadStatus& threadStatus = m_activeThreadStatus[last]; - #endif //SINGLE_THREADED - - - - *puiArgument0 = threadStatus.m_taskId; - *puiArgument1 = threadStatus.m_status; - - return true; - } - - return false; -} - - -void b3Win32ThreadSupport::startThreads(const Win32ThreadConstructionInfo& threadConstructionInfo) -{ - - m_activeThreadStatus.resize(threadConstructionInfo.m_numThreads); - m_completeHandles.resize(threadConstructionInfo.m_numThreads); - - m_maxNumTasks = threadConstructionInfo.m_numThreads; - - for (int i=0;i0) - { - WaitForSingleObject(threadStatus.m_eventCompletetHandle, INFINITE); - } - - - threadStatus.m_userPtr = 0; - SetEvent(threadStatus.m_eventStartHandle); - WaitForSingleObject(threadStatus.m_eventCompletetHandle, INFINITE); - - CloseHandle(threadStatus.m_eventCompletetHandle); - CloseHandle(threadStatus.m_eventStartHandle); - CloseHandle(threadStatus.m_threadHandle); - - } - - m_activeThreadStatus.clear(); - m_completeHandles.clear(); - -} - - - -class b3Win32Barrier : public b3Barrier -{ -private: - CRITICAL_SECTION mExternalCriticalSection; - CRITICAL_SECTION mLocalCriticalSection; - HANDLE mRunEvent,mNotifyEvent; - int mCounter,mEnableCounter; - int mMaxCount; - -public: - b3Win32Barrier() - { - mCounter = 0; - mMaxCount = 1; - mEnableCounter = 0; - InitializeCriticalSection(&mExternalCriticalSection); - InitializeCriticalSection(&mLocalCriticalSection); - mRunEvent = CreateEvent(NULL,TRUE,FALSE,NULL); - mNotifyEvent = CreateEvent(NULL,TRUE,FALSE,NULL); - } - - virtual ~b3Win32Barrier() - { - DeleteCriticalSection(&mExternalCriticalSection); - DeleteCriticalSection(&mLocalCriticalSection); - CloseHandle(mRunEvent); - CloseHandle(mNotifyEvent); - } - - void sync() - { - int eventId; - - EnterCriticalSection(&mExternalCriticalSection); - - //PFX_PRINTF("enter taskId %d count %d stage %d phase %d mEnableCounter %d\n",taskId,mCounter,debug&0xff,debug>>16,mEnableCounter); - - if(mEnableCounter > 0) { - ResetEvent(mNotifyEvent); - LeaveCriticalSection(&mExternalCriticalSection); - WaitForSingleObject(mNotifyEvent,INFINITE); - EnterCriticalSection(&mExternalCriticalSection); - } - - eventId = mCounter; - mCounter++; - - if(eventId == mMaxCount-1) { - SetEvent(mRunEvent); - - mEnableCounter = mCounter-1; - mCounter = 0; - } - else { - ResetEvent(mRunEvent); - LeaveCriticalSection(&mExternalCriticalSection); - WaitForSingleObject(mRunEvent,INFINITE); - EnterCriticalSection(&mExternalCriticalSection); - mEnableCounter--; - } - - if(mEnableCounter == 0) { - SetEvent(mNotifyEvent); - } - - //PFX_PRINTF("leave taskId %d count %d stage %d phase %d mEnableCounter %d\n",taskId,mCounter,debug&0xff,debug>>16,mEnableCounter); - - LeaveCriticalSection(&mExternalCriticalSection); - } - - virtual void setMaxCount(int n) {mMaxCount = n;} - virtual int getMaxCount() {return mMaxCount;} -}; - -class b3Win32CriticalSection : public b3CriticalSection -{ -private: - CRITICAL_SECTION mCriticalSection; - -public: - b3Win32CriticalSection() - { - InitializeCriticalSection(&mCriticalSection); - } - - ~b3Win32CriticalSection() - { - DeleteCriticalSection(&mCriticalSection); - } - - unsigned int getSharedParam(int i) - { - b3Assert(i>=0&&i<31); - return mCommonBuff[i+1]; - } - - void setSharedParam(int i,unsigned int p) - { - b3Assert(i>=0&&i<31); - mCommonBuff[i+1] = p; - } - - void lock() - { - EnterCriticalSection(&mCriticalSection); - mCommonBuff[0] = 1; - } - - void unlock() - { - mCommonBuff[0] = 0; - LeaveCriticalSection(&mCriticalSection); - } -}; - - -b3Barrier* b3Win32ThreadSupport::createBarrier() -{ - unsigned char* mem = (unsigned char*)b3AlignedAlloc(sizeof(b3Win32Barrier),16); - b3Win32Barrier* barrier = new(mem) b3Win32Barrier(); - barrier->setMaxCount(getNumTasks()); - return barrier; -} - -b3CriticalSection* b3Win32ThreadSupport::createCriticalSection() -{ - unsigned char* mem = (unsigned char*) b3AlignedAlloc(sizeof(b3Win32CriticalSection),16); - b3Win32CriticalSection* cs = new(mem) b3Win32CriticalSection(); - return cs; -} - -void b3Win32ThreadSupport::deleteBarrier(b3Barrier* barrier) -{ - barrier->~b3Barrier(); - b3AlignedFree(barrier); -} - -void b3Win32ThreadSupport::deleteCriticalSection(b3CriticalSection* criticalSection) -{ - criticalSection->~b3CriticalSection(); - b3AlignedFree(criticalSection); -} - - - - - diff --git a/btgui/MultiThreading/b3Win32ThreadSupport.h b/btgui/MultiThreading/b3Win32ThreadSupport.h deleted file mode 100644 index 41cd96e3b..000000000 --- a/btgui/MultiThreading/b3Win32ThreadSupport.h +++ /dev/null @@ -1,139 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://bulletphysics.com - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -#include "Bullet3Common/b3Scalar.h" - - -#ifndef BT_WIN32_THREAD_SUPPORT_H -#define BT_WIN32_THREAD_SUPPORT_H - -#include "Bullet3Common/b3AlignedObjectArray.h" - -#include "b3ThreadSupportInterface.h" - - -typedef void (*b3Win32ThreadFunc)(void* userPtr,void* lsMemory); -typedef void* (*b3Win32lsMemorySetupFunc)(); - - -///b3Win32ThreadSupport helps to initialize/shutdown libspe2, start/stop SPU tasks and communication -class b3Win32ThreadSupport : public b3ThreadSupportInterface -{ -public: - ///placeholder, until libspe2 support is there - struct b3ThreadStatus - { - int m_taskId; - int m_commandId; - int m_status; - - b3Win32ThreadFunc m_userThreadFunc; - void* m_userPtr; //for taskDesc etc - void* m_lsMemory; //initialized using Win32LocalStoreMemorySetupFunc - - void* m_threadHandle; //this one is calling 'Win32ThreadFunc' - - void* m_eventStartHandle; - char m_eventStartHandleName[32]; - - void* m_eventCompletetHandle; - char m_eventCompletetHandleName[32]; - - - }; -private: - - b3AlignedObjectArray m_activeThreadStatus; - b3AlignedObjectArray m_completeHandles; - - int m_maxNumTasks; -public: - ///Setup and initialize SPU/CELL/Libspe2 - - struct Win32ThreadConstructionInfo - { - Win32ThreadConstructionInfo(const char* uniqueName, - b3Win32ThreadFunc userThreadFunc, - b3Win32lsMemorySetupFunc lsMemoryFunc, - int numThreads=1, - int threadStackSize=65535 - ) - :m_uniqueName(uniqueName), - m_userThreadFunc(userThreadFunc), - m_lsMemoryFunc(lsMemoryFunc), - m_numThreads(numThreads), - m_threadStackSize(threadStackSize) - { - - } - - const char* m_uniqueName; - b3Win32ThreadFunc m_userThreadFunc; - b3Win32lsMemorySetupFunc m_lsMemoryFunc; - int m_numThreads; - int m_threadStackSize; - - }; - - - - b3Win32ThreadSupport(const Win32ThreadConstructionInfo& threadConstructionInfo); - -///cleanup/shutdown Libspe2 - virtual ~b3Win32ThreadSupport(); - - void startThreads(const Win32ThreadConstructionInfo& threadInfo); - - -///send messages to SPUs - virtual void sendRequest(int uiCommand, void* uiArgument0, int uiArgument1); - -///check for messages from SPUs - virtual void waitForResponse(int *puiArgument0, int *puiArgument1); - - virtual bool isTaskCompleted(int *puiArgument0, int *puiArgument1, int timeOutInMilliseconds); - -///start the spus (can be called at the beginning of each frame, to make sure that the right SPU program is loaded) - virtual void startThreads(); - -///tell the task scheduler we are done with the SPU tasks - virtual void stopThreads(); - - virtual void setNumTasks(int numTasks) - { - m_maxNumTasks = numTasks; - } - - virtual int getNumTasks() const - { - return m_maxNumTasks; - } - - virtual void* getThreadLocalMemory(int taskId) - { - return m_activeThreadStatus[taskId].m_lsMemory; - } - virtual b3Barrier* createBarrier(); - - virtual b3CriticalSection* createCriticalSection(); - - virtual void deleteBarrier(b3Barrier* barrier); - - virtual void deleteCriticalSection(b3CriticalSection* criticalSection); -}; - -#endif //BT_WIN32_THREAD_SUPPORT_H - - diff --git a/btgui/MultiThreading/main.cpp b/btgui/MultiThreading/main.cpp deleted file mode 100644 index 88d0d11be..000000000 --- a/btgui/MultiThreading/main.cpp +++ /dev/null @@ -1,177 +0,0 @@ -/* -Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2010 Erwin Coumans http://bulletphysics.org - -This software is provided 'as-is', without any express or implied warranty. -In no event will the authors be held liable for any damages arising from the use of this software. -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it freely, -subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. -3. This notice may not be removed or altered from any source distribution. -*/ - -/// ThreadingDemo shows how to use the cross platform thread support interface. -/// You can start threads and perform a blocking wait for completion -/// Under Windows it uses Win32 Threads. On Mac and Linux it uses pthreads. On PlayStation 3 Cell SPU it uses SPURS. - -/// June 2010 -/// New: critical section/barriers and non-blocking pollingn for completion, currently Windows only - -void SampleThreadFunc(void* userPtr,void* lsMemory); -void* SamplelsMemoryFunc(); - -#include -//#include "BulletMultiThreaded/PlatformDefinitions.h" - -#ifndef _WIN32 -#include "b3PosixThreadSupport.h" - -b3ThreadSupportInterface* createThreadSupport(int numThreads) -{ - b3PosixThreadSupport::ThreadConstructionInfo constructionInfo("testThreads", - SampleThreadFunc, - SamplelsMemoryFunc, - numThreads); - b3ThreadSupportInterface* threadSupport = new b3PosixThreadSupport(constructionInfo); - - return threadSupport; - -} - - -#elif defined( _WIN32) -#include "b3Win32ThreadSupport.h" - -b3ThreadSupportInterface* createThreadSupport(int numThreads) -{ - b3Win32ThreadSupport::Win32ThreadConstructionInfo threadConstructionInfo("testThreads",SampleThreadFunc,SamplelsMemoryFunc,numThreads); - b3Win32ThreadSupport* threadSupport = new b3Win32ThreadSupport(threadConstructionInfo); - return threadSupport; - -} -#endif - - - -struct SampleArgs -{ - SampleArgs() - :m_fakeWork(1) - { - } - b3CriticalSection* m_cs; - float m_fakeWork; -}; - -struct SampleThreadLocalStorage -{ - int threadId; -}; - - -void SampleThreadFunc(void* userPtr,void* lsMemory) -{ - printf("thread started\n"); - - SampleThreadLocalStorage* localStorage = (SampleThreadLocalStorage*) lsMemory; - - SampleArgs* args = (SampleArgs*) userPtr; - int workLeft = true; - while (workLeft) - { - args->m_cs->lock(); - int count = args->m_cs->getSharedParam(0); - args->m_cs->setSharedParam(0,count-1); - args->m_cs->unlock(); - if (count>0) - { - printf("thread %d processed number %d\n",localStorage->threadId, count); - } - //do some fake work - for (int i=0;i<1000000;i++) - args->m_fakeWork = b3Scalar(1.21)*args->m_fakeWork; - workLeft = count>0; - } - printf("finished\n"); - //do nothing -} - - -void* SamplelsMemoryFunc() -{ - //don't create local store memory, just return 0 - return new SampleThreadLocalStorage; -} - - - - - - - - - - -int main(int argc,char** argv) -{ - int numThreads = 8; - - b3ThreadSupportInterface* threadSupport = createThreadSupport(numThreads); - - - - for (int i=0;igetNumTasks();i++) - { - SampleThreadLocalStorage* storage = (SampleThreadLocalStorage*)threadSupport->getThreadLocalMemory(i); - b3Assert(storage); - storage->threadId = i; - } - - - SampleArgs args; - args.m_cs = threadSupport->createCriticalSection(); - args.m_cs->setSharedParam(0,100); - - - int arg0,arg1; - int i; - for (i=0;isendRequest(B3_THREAD_SCHEDULE_TASK, (void*) &args, i); - } - - bool blockingWait =false; - if (blockingWait) - { - for (i=0;iwaitForResponse(&arg0,&arg1); - printf("finished waiting for response: %d %d\n", arg0,arg1); - } - } else - { - int numActiveThreads = numThreads; - while (numActiveThreads) - { - if (threadSupport->isTaskCompleted(&arg0,&arg1,0)) - { - numActiveThreads--; - printf("numActiveThreads = %d\n",numActiveThreads); - - } else - { -// printf("polling.."); - } - }; - } - -printf("stopping threads\n"); - - delete threadSupport; - printf("Press ENTER to quit\n"); - getchar(); - return 0; -} diff --git a/btgui/MultiThreading/premake4.lua b/btgui/MultiThreading/premake4.lua deleted file mode 100644 index 5ed0339b5..000000000 --- a/btgui/MultiThreading/premake4.lua +++ /dev/null @@ -1,52 +0,0 @@ - - project "App_ThreadingTest" - - kind "ConsoleApp" - --- defines { } - - targetdir "../../bin" - - includedirs - { - ".","../../src" - } - - - links { "Bullet3Common" } - - - files { - "b3ThreadSupportInterface.cpp", - "main.cpp", - "b3ThreadSupportInterface.h" - } - if os.is("Windows") then - - files { - "b3Win32ThreadSupport.cpp", - "b3Win32ThreadSupport.h" - } - --links {"winmm"} - --defines {"__WINDOWS_MM__", "WIN32"} - end - - if os.is("Linux") then - files { - "b3PosixThreadSupport.cpp", - "b3PosixThreadSupport.h" - } - - links {"pthread"} - end - - if os.is("MacOSX") then - files { - "b3PosixThreadSupport.cpp", - "b3PosixThreadSupport.h" - } - - links {"pthread"} - --links{"CoreAudio.framework", "coreMIDI.framework", "Cocoa.framework"} - --defines {"__MACOSX_CORE__"} - end diff --git a/btgui/OpenGLWindow/CommonGraphicsApp.h b/btgui/OpenGLWindow/CommonGraphicsApp.h deleted file mode 100644 index 4a722c31d..000000000 --- a/btgui/OpenGLWindow/CommonGraphicsApp.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef COMMON_GRAPHICS_APP_H -#define COMMON_GRAPHICS_APP_H - -struct DrawGridData -{ - int gridSize; - float upOffset; - int upAxis; - float gridColor[4]; - - DrawGridData() - :gridSize(10), - upOffset(0.001f), - upAxis(1) - { - gridColor[0] = 0.6f; - gridColor[1] = 0.6f; - gridColor[2] = 0.6f; - gridColor[3] = 1.f; - } -}; - -struct CommonGraphicsApp -{ - CommonGraphicsApp() - :m_window(0), - m_renderer(0), - m_parameterInterface(0), - m_2dCanvasInterface(0) - { - } - virtual ~CommonGraphicsApp() - { - } - - class b3gWindowInterface* m_window; - struct CommonRenderInterface* m_renderer; - struct CommonParameterInterface* m_parameterInterface; - struct Common2dCanvasInterface* m_2dCanvasInterface; - - virtual void drawGrid(DrawGridData data=DrawGridData()) = 0; - virtual void setUpAxis(int axis) = 0; - virtual int getUpAxis() const = 0; - - virtual void swapBuffer() = 0; - virtual void drawText( const char* txt, int posX, int posY) = 0; - virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size)=0; - virtual int registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ)=0; - virtual int registerGraphicsSphereShape(float radius, bool usePointSprites=true, int largeSphereThreshold=100, int mediumSphereThreshold=10)=0; - virtual void registerGrid(int xres, int yres, float color0[4], float color1[4])=0; -}; - - -#endif //COMMON_GRAPHICS_APP_H diff --git a/btgui/OpenGLWindow/OpenSans.cpp b/btgui/OpenGLWindow/OpenSans.cpp deleted file mode 100644 index a0f685f6d..000000000 --- a/btgui/OpenGLWindow/OpenSans.cpp +++ /dev/null @@ -1,21738 +0,0 @@ -char OpenSansData[]={char(0),char(1),char(0),char(0),char(0),char(19),char(1),char(0),char(0),char(4), -char(0),char(48),char(68),char(83),char(73),char(71),char(158),char(18),char(68),char(29), -char(0),char(3),char(59),char(156),char(0),char(0),char(21),char(116),char(71),char(68), -char(69),char(70),char(0),char(38),char(3),char(175),char(0),char(3),char(55),char(124), -char(0),char(0),char(0),char(30),char(71),char(80),char(79),char(83),char(11),char(55), -char(15),char(55),char(0),char(3),char(55),char(156),char(0),char(0),char(0),char(56), -char(71),char(83),char(85),char(66),char(14),char(43),char(61),char(183),char(0),char(3), -char(55),char(212),char(0),char(0),char(3),char(198),char(79),char(83),char(47),char(50), -char(161),char(62),char(158),char(201),char(0),char(0),char(1),char(184),char(0),char(0), -char(0),char(96),char(99),char(109),char(97),char(112),char(41),char(171),char(47),char(104), -char(0),char(0),char(16),char(180),char(0),char(0),char(4),char(26),char(99),char(118), -char(116),char(32),char(15),char(77),char(24),char(164),char(0),char(0),char(29),char(144), -char(0),char(0),char(0),char(162),char(102),char(112),char(103),char(109),char(126),char(97), -char(182),char(17),char(0),char(0),char(20),char(208),char(0),char(0),char(7),char(180), -char(103),char(97),char(115),char(112),char(0),char(21),char(0),char(35),char(0),char(3), -char(55),char(108),char(0),char(0),char(0),char(16),char(103),char(108),char(121),char(102), -char(116),char(56),char(153),char(75),char(0),char(0),char(37),char(140),char(0),char(1), -char(47),char(180),char(104),char(101),char(97),char(100),char(247),char(118),char(226),char(166), -char(0),char(0),char(1),char(60),char(0),char(0),char(0),char(54),char(104),char(104), -char(101),char(97),char(13),char(204),char(9),char(115),char(0),char(0),char(1),char(116), -char(0),char(0),char(0),char(36),char(104),char(109),char(116),char(120),char(232),char(53), -char(60),char(221),char(0),char(0),char(2),char(24),char(0),char(0),char(14),char(154), -char(107),char(101),char(114),char(110),char(84),char(43),char(9),char(126),char(0),char(1), -char(85),char(64),char(0),char(1),char(182),char(54),char(108),char(111),char(99),char(97), -char(41),char(20),char(220),char(241),char(0),char(0),char(30),char(52),char(0),char(0), -char(7),char(86),char(109),char(97),char(120),char(112),char(5),char(67),char(2),char(10), -char(0),char(0),char(1),char(152),char(0),char(0),char(0),char(32),char(110),char(97), -char(109),char(101),char(115),char(176),char(136),char(133),char(0),char(3),char(11),char(120), -char(0),char(0),char(5),char(199),char(112),char(111),char(115),char(116),char(2),char(67), -char(239),char(108),char(0),char(3),char(17),char(64),char(0),char(0),char(38),char(43), -char(112),char(114),char(101),char(112),char(67),char(183),char(150),char(164),char(0),char(0), -char(28),char(132),char(0),char(0),char(1),char(9),char(0),char(1),char(0),char(0), -char(0),char(1),char(25),char(154),char(33),char(199),char(245),char(95),char(95),char(15), -char(60),char(245),char(0),char(9),char(8),char(0),char(0),char(0),char(0),char(0), -char(201),char(53),char(49),char(139),char(0),char(0),char(0),char(0),char(201),char(232), -char(76),char(76),char(251),char(154),char(253),char(213),char(9),char(162),char(8),char(98), -char(0),char(0),char(0),char(9),char(0),char(2),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(1),char(0),char(0),char(8),char(141),char(253),char(168), -char(0),char(0),char(9),char(172),char(251),char(154),char(254),char(123),char(9),char(162), -char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(3),char(163),char(0),char(1), -char(0),char(0),char(3),char(170),char(0),char(138),char(0),char(22),char(0),char(86), -char(0),char(5),char(0),char(2),char(0),char(16),char(0),char(47),char(0),char(92), -char(0),char(0),char(1),char(14),char(0),char(248),char(0),char(3),char(0),char(1), -char(0),char(3),char(4),char(182),char(1),char(144),char(0),char(5),char(0),char(8), -char(5),char(154),char(5),char(51),char(0),char(0),char(1),char(31),char(5),char(154), -char(5),char(51),char(0),char(0),char(3),char(209),char(0),char(102),char(1),char(241), -char(8),char(2),char(2),char(11),char(6),char(6),char(3),char(5),char(4),char(2), -char(2),char(4),char(224),char(0),char(2),char(239),char(64),char(0),char(32),char(91), -char(0),char(0),char(0),char(40),char(0),char(0),char(0),char(0),char(49),char(65), -char(83),char(67),char(0),char(64),char(0),char(32),char(255),char(253),char(6),char(31), -char(254),char(20),char(0),char(132),char(8),char(141),char(2),char(88),char(32),char(0), -char(1),char(159),char(0),char(0),char(0),char(0),char(4),char(72),char(5),char(182), -char(0),char(0),char(0),char(32),char(0),char(3),char(4),char(205),char(0),char(193), -char(0),char(0),char(0),char(0),char(4),char(20),char(0),char(0),char(2),char(20), -char(0),char(0),char(2),char(35),char(0),char(152),char(3),char(53),char(0),char(133), -char(5),char(43),char(0),char(51),char(4),char(147),char(0),char(131),char(6),char(150), -char(0),char(104),char(5),char(215),char(0),char(113),char(1),char(197),char(0),char(133), -char(2),char(94),char(0),char(82),char(2),char(94),char(0),char(61),char(4),char(106), -char(0),char(86),char(4),char(147),char(0),char(104),char(1),char(246),char(0),char(63), -char(2),char(147),char(0),char(84),char(2),char(33),char(0),char(152),char(2),char(240), -char(0),char(20),char(4),char(147),char(0),char(102),char(4),char(147),char(0),char(188), -char(4),char(147),char(0),char(100),char(4),char(147),char(0),char(94),char(4),char(147), -char(0),char(43),char(4),char(147),char(0),char(133),char(4),char(147),char(0),char(117), -char(4),char(147),char(0),char(94),char(4),char(147),char(0),char(104),char(4),char(147), -char(0),char(106),char(2),char(33),char(0),char(152),char(2),char(33),char(0),char(63), -char(4),char(147),char(0),char(104),char(4),char(147),char(0),char(119),char(4),char(147), -char(0),char(104),char(3),char(111),char(0),char(27),char(7),char(49),char(0),char(121), -char(5),char(16),char(0),char(0),char(5),char(47),char(0),char(201),char(5),char(12), -char(0),char(125),char(5),char(213),char(0),char(201),char(4),char(115),char(0),char(201), -char(4),char(33),char(0),char(201),char(5),char(211),char(0),char(125),char(5),char(231), -char(0),char(201),char(2),char(170),char(0),char(84),char(2),char(35),char(255),char(96), -char(4),char(233),char(0),char(201),char(4),char(39),char(0),char(201),char(7),char(57), -char(0),char(201),char(6),char(8),char(0),char(201),char(6),char(59),char(0),char(125), -char(4),char(209),char(0),char(201),char(6),char(59),char(0),char(125),char(4),char(242), -char(0),char(201),char(4),char(100),char(0),char(106),char(4),char(109),char(0),char(18), -char(5),char(211),char(0),char(186),char(4),char(195),char(0),char(0),char(7),char(104), -char(0),char(27),char(4),char(158),char(0),char(8),char(4),char(123),char(0),char(0), -char(4),char(145),char(0),char(82),char(2),char(162),char(0),char(166),char(2),char(240), -char(0),char(23),char(2),char(162),char(0),char(51),char(4),char(86),char(0),char(49), -char(3),char(150),char(255),char(252),char(4),char(158),char(1),char(137),char(4),char(115), -char(0),char(94),char(4),char(231),char(0),char(176),char(3),char(207),char(0),char(115), -char(4),char(231),char(0),char(115),char(4),char(125),char(0),char(115),char(2),char(182), -char(0),char(29),char(4),char(98),char(0),char(39),char(4),char(233),char(0),char(176), -char(2),char(6),char(0),char(162),char(2),char(6),char(255),char(145),char(4),char(51), -char(0),char(176),char(2),char(6),char(0),char(176),char(7),char(113),char(0),char(176), -char(4),char(233),char(0),char(176),char(4),char(213),char(0),char(115),char(4),char(231), -char(0),char(176),char(4),char(231),char(0),char(115),char(3),char(68),char(0),char(176), -char(3),char(209),char(0),char(106),char(2),char(211),char(0),char(31),char(4),char(233), -char(0),char(164),char(4),char(2),char(0),char(0),char(6),char(57),char(0),char(23), -char(4),char(49),char(0),char(39),char(4),char(8),char(0),char(2),char(3),char(190), -char(0),char(82),char(3),char(8),char(0),char(61),char(4),char(104),char(1),char(238), -char(3),char(8),char(0),char(72),char(4),char(147),char(0),char(104),char(2),char(20), -char(0),char(0),char(2),char(35),char(0),char(152),char(4),char(147),char(0),char(190), -char(4),char(147),char(0),char(63),char(4),char(147),char(0),char(123),char(4),char(147), -char(0),char(31),char(4),char(104),char(1),char(238),char(4),char(33),char(0),char(123), -char(4),char(158),char(1),char(53),char(6),char(168),char(0),char(100),char(2),char(213), -char(0),char(70),char(3),char(250),char(0),char(82),char(4),char(147),char(0),char(104), -char(2),char(147),char(0),char(84),char(6),char(168),char(0),char(100),char(4),char(0), -char(255),char(250),char(3),char(109),char(0),char(127),char(4),char(147),char(0),char(104), -char(2),char(199),char(0),char(49),char(2),char(199),char(0),char(33),char(4),char(158), -char(1),char(137),char(4),char(244),char(0),char(176),char(5),char(61),char(0),char(113), -char(2),char(33),char(0),char(152),char(1),char(209),char(0),char(37),char(2),char(199), -char(0),char(76),char(3),char(0),char(0),char(66),char(3),char(250),char(0),char(80), -char(6),char(61),char(0),char(75),char(6),char(61),char(0),char(46),char(6),char(61), -char(0),char(26),char(3),char(111),char(0),char(51),char(5),char(16),char(0),char(0), -char(5),char(16),char(0),char(0),char(5),char(16),char(0),char(0),char(5),char(16), -char(0),char(0),char(5),char(16),char(0),char(0),char(5),char(16),char(0),char(0), -char(6),char(252),char(255),char(254),char(5),char(12),char(0),char(125),char(4),char(115), -char(0),char(201),char(4),char(115),char(0),char(201),char(4),char(115),char(0),char(201), -char(4),char(115),char(0),char(201),char(2),char(170),char(0),char(60),char(2),char(170), -char(0),char(84),char(2),char(170),char(255),char(255),char(2),char(170),char(0),char(60), -char(5),char(199),char(0),char(47),char(6),char(8),char(0),char(201),char(6),char(59), -char(0),char(125),char(6),char(59),char(0),char(125),char(6),char(59),char(0),char(125), -char(6),char(59),char(0),char(125),char(6),char(59),char(0),char(125),char(4),char(147), -char(0),char(133),char(6),char(59),char(0),char(125),char(5),char(211),char(0),char(186), -char(5),char(211),char(0),char(186),char(5),char(211),char(0),char(186),char(5),char(211), -char(0),char(186),char(4),char(123),char(0),char(0),char(4),char(227),char(0),char(201), -char(4),char(250),char(0),char(176),char(4),char(115),char(0),char(94),char(4),char(115), -char(0),char(94),char(4),char(115),char(0),char(94),char(4),char(115),char(0),char(94), -char(4),char(115),char(0),char(94),char(4),char(115),char(0),char(94),char(6),char(221), -char(0),char(94),char(3),char(207),char(0),char(115),char(4),char(125),char(0),char(115), -char(4),char(125),char(0),char(115),char(4),char(125),char(0),char(115),char(4),char(125), -char(0),char(115),char(2),char(6),char(255),char(218),char(2),char(6),char(0),char(169), -char(2),char(6),char(255),char(179),char(2),char(6),char(255),char(236),char(4),char(197), -char(0),char(113),char(4),char(233),char(0),char(176),char(4),char(213),char(0),char(115), -char(4),char(213),char(0),char(115),char(4),char(213),char(0),char(115),char(4),char(213), -char(0),char(115),char(4),char(213),char(0),char(115),char(4),char(147),char(0),char(104), -char(4),char(213),char(0),char(115),char(4),char(233),char(0),char(164),char(4),char(233), -char(0),char(164),char(4),char(233),char(0),char(164),char(4),char(233),char(0),char(164), -char(4),char(8),char(0),char(2),char(4),char(231),char(0),char(176),char(4),char(8), -char(0),char(2),char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94), -char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94),char(5),char(16), -char(0),char(0),char(4),char(115),char(0),char(94),char(5),char(12),char(0),char(125), -char(3),char(207),char(0),char(115),char(5),char(12),char(0),char(125),char(3),char(207), -char(0),char(115),char(5),char(12),char(0),char(125),char(3),char(207),char(0),char(115), -char(5),char(12),char(0),char(125),char(3),char(207),char(0),char(115),char(5),char(213), -char(0),char(201),char(4),char(231),char(0),char(115),char(5),char(199),char(0),char(47), -char(4),char(231),char(0),char(115),char(4),char(115),char(0),char(201),char(4),char(125), -char(0),char(115),char(4),char(115),char(0),char(201),char(4),char(125),char(0),char(115), -char(4),char(115),char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115), -char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115),char(0),char(201), -char(4),char(125),char(0),char(115),char(5),char(211),char(0),char(125),char(4),char(98), -char(0),char(39),char(5),char(211),char(0),char(125),char(4),char(98),char(0),char(39), -char(5),char(211),char(0),char(125),char(4),char(98),char(0),char(39),char(5),char(211), -char(0),char(125),char(4),char(98),char(0),char(39),char(5),char(231),char(0),char(201), -char(4),char(233),char(0),char(176),char(5),char(231),char(0),char(0),char(4),char(233), -char(0),char(20),char(2),char(170),char(255),char(226),char(2),char(6),char(255),char(144), -char(2),char(170),char(0),char(42),char(2),char(6),char(255),char(218),char(2),char(170), -char(0),char(30),char(2),char(6),char(255),char(204),char(2),char(170),char(0),char(84), -char(2),char(6),char(0),char(53),char(2),char(170),char(0),char(84),char(2),char(6), -char(0),char(176),char(4),char(205),char(0),char(84),char(4),char(12),char(0),char(162), -char(2),char(35),char(255),char(96),char(2),char(6),char(255),char(145),char(4),char(233), -char(0),char(201),char(4),char(51),char(0),char(176),char(4),char(37),char(0),char(176), -char(4),char(39),char(0),char(201),char(2),char(6),char(0),char(163),char(4),char(39), -char(0),char(201),char(2),char(6),char(0),char(89),char(4),char(39),char(0),char(201), -char(2),char(6),char(0),char(176),char(4),char(39),char(0),char(201),char(2),char(131), -char(0),char(176),char(4),char(47),char(0),char(29),char(2),char(23),char(255),char(252), -char(6),char(8),char(0),char(201),char(4),char(233),char(0),char(176),char(6),char(8), -char(0),char(201),char(4),char(233),char(0),char(176),char(6),char(8),char(0),char(201), -char(4),char(233),char(0),char(176),char(5),char(115),char(0),char(1),char(6),char(8), -char(0),char(201),char(4),char(233),char(0),char(176),char(6),char(59),char(0),char(125), -char(4),char(213),char(0),char(115),char(6),char(59),char(0),char(125),char(4),char(213), -char(0),char(115),char(6),char(59),char(0),char(125),char(4),char(213),char(0),char(115), -char(7),char(98),char(0),char(125),char(7),char(137),char(0),char(113),char(4),char(242), -char(0),char(201),char(3),char(68),char(0),char(176),char(4),char(242),char(0),char(201), -char(3),char(68),char(0),char(96),char(4),char(242),char(0),char(201),char(3),char(68), -char(0),char(130),char(4),char(100),char(0),char(106),char(3),char(209),char(0),char(106), -char(4),char(100),char(0),char(106),char(3),char(209),char(0),char(106),char(4),char(100), -char(0),char(106),char(3),char(209),char(0),char(106),char(4),char(100),char(0),char(106), -char(3),char(209),char(0),char(106),char(4),char(109),char(0),char(18),char(2),char(211), -char(0),char(31),char(4),char(109),char(0),char(18),char(2),char(211),char(0),char(31), -char(4),char(109),char(0),char(18),char(2),char(211),char(0),char(31),char(5),char(211), -char(0),char(186),char(4),char(233),char(0),char(164),char(5),char(211),char(0),char(186), -char(4),char(233),char(0),char(164),char(5),char(211),char(0),char(186),char(4),char(233), -char(0),char(164),char(5),char(211),char(0),char(186),char(4),char(233),char(0),char(164), -char(5),char(211),char(0),char(186),char(4),char(233),char(0),char(164),char(5),char(211), -char(0),char(186),char(4),char(233),char(0),char(164),char(7),char(104),char(0),char(27), -char(6),char(57),char(0),char(23),char(4),char(123),char(0),char(0),char(4),char(8), -char(0),char(2),char(4),char(123),char(0),char(0),char(4),char(145),char(0),char(82), -char(3),char(190),char(0),char(82),char(4),char(145),char(0),char(82),char(3),char(190), -char(0),char(82),char(4),char(145),char(0),char(82),char(3),char(190),char(0),char(82), -char(2),char(143),char(0),char(176),char(4),char(158),char(0),char(195),char(5),char(20), -char(0),char(0),char(4),char(115),char(0),char(94),char(6),char(252),char(255),char(254), -char(6),char(221),char(0),char(94),char(6),char(59),char(0),char(125),char(4),char(213), -char(0),char(115),char(4),char(100),char(0),char(106),char(3),char(209),char(0),char(106), -char(4),char(188),char(1),char(12),char(4),char(188),char(1),char(12),char(4),char(178), -char(1),char(45),char(4),char(188),char(1),char(37),char(2),char(6),char(0),char(162), -char(4),char(158),char(1),char(111),char(1),char(147),char(0),char(37),char(4),char(188), -char(1),char(8),char(4),char(158),char(0),char(231),char(4),char(158),char(1),char(252), -char(4),char(158),char(1),char(27),char(5),char(16),char(0),char(0),char(2),char(33), -char(0),char(152),char(4),char(242),char(255),char(212),char(6),char(125),char(255),char(212), -char(3),char(152),char(255),char(228),char(6),char(129),char(255),char(228),char(5),char(133), -char(255),char(212),char(6),char(129),char(255),char(228),char(2),char(182),char(255),char(233), -char(5),char(16),char(0),char(0),char(5),char(47),char(0),char(201),char(4),char(41), -char(0),char(201),char(4),char(147),char(0),char(39),char(4),char(115),char(0),char(201), -char(4),char(145),char(0),char(82),char(5),char(231),char(0),char(201),char(6),char(59), -char(0),char(125),char(2),char(170),char(0),char(84),char(4),char(233),char(0),char(201), -char(4),char(211),char(0),char(0),char(7),char(57),char(0),char(201),char(6),char(8), -char(0),char(201),char(4),char(109),char(0),char(72),char(6),char(59),char(0),char(125), -char(5),char(213),char(0),char(201),char(4),char(209),char(0),char(201),char(4),char(137), -char(0),char(74),char(4),char(109),char(0),char(18),char(4),char(123),char(0),char(0), -char(6),char(98),char(0),char(106),char(4),char(158),char(0),char(8),char(6),char(94), -char(0),char(109),char(6),char(66),char(0),char(80),char(2),char(170),char(0),char(60), -char(4),char(123),char(0),char(0),char(4),char(227),char(0),char(115),char(3),char(205), -char(0),char(90),char(4),char(233),char(0),char(176),char(2),char(182),char(0),char(168), -char(4),char(223),char(0),char(164),char(4),char(227),char(0),char(115),char(5),char(6), -char(0),char(176),char(4),char(25),char(0),char(10),char(4),char(164),char(0),char(113), -char(3),char(205),char(0),char(90),char(3),char(221),char(0),char(115),char(4),char(233), -char(0),char(176),char(4),char(188),char(0),char(115),char(2),char(182),char(0),char(168), -char(4),char(37),char(0),char(176),char(4),char(70),char(255),char(242),char(4),char(244), -char(0),char(176),char(4),char(86),char(0),char(0),char(3),char(205),char(0),char(113), -char(4),char(213),char(0),char(115),char(5),char(51),char(0),char(25),char(4),char(213), -char(0),char(166),char(3),char(219),char(0),char(115),char(4),char(231),char(0),char(115), -char(3),char(201),char(0),char(18),char(4),char(223),char(0),char(164),char(5),char(190), -char(0),char(115),char(4),char(94),char(255),char(236),char(6),char(6),char(0),char(164), -char(6),char(47),char(0),char(115),char(2),char(182),char(0),char(9),char(4),char(223), -char(0),char(164),char(4),char(213),char(0),char(115),char(4),char(223),char(0),char(164), -char(6),char(47),char(0),char(115),char(4),char(115),char(0),char(201),char(5),char(223), -char(0),char(18),char(4),char(41),char(0),char(201),char(5),char(29),char(0),char(125), -char(4),char(100),char(0),char(106),char(2),char(170),char(0),char(84),char(2),char(170), -char(0),char(60),char(2),char(35),char(255),char(96),char(7),char(111),char(0),char(0), -char(7),char(160),char(0),char(201),char(5),char(223),char(0),char(18),char(4),char(229), -char(0),char(201),char(4),char(248),char(0),char(27),char(5),char(213),char(0),char(201), -char(5),char(16),char(0),char(0),char(4),char(231),char(0),char(201),char(5),char(47), -char(0),char(201),char(4),char(41),char(0),char(201),char(5),char(119),char(0),char(14), -char(4),char(115),char(0),char(201),char(6),char(193),char(0),char(2),char(4),char(166), -char(0),char(74),char(6),char(25),char(0),char(203),char(6),char(25),char(0),char(203), -char(4),char(229),char(0),char(201),char(5),char(162),char(0),char(0),char(7),char(57), -char(0),char(201),char(5),char(231),char(0),char(201),char(6),char(59),char(0),char(125), -char(5),char(213),char(0),char(201),char(4),char(209),char(0),char(201),char(5),char(12), -char(0),char(125),char(4),char(109),char(0),char(18),char(4),char(248),char(0),char(27), -char(6),char(98),char(0),char(106),char(4),char(158),char(0),char(8),char(5),char(229), -char(0),char(201),char(5),char(143),char(0),char(170),char(8),char(66),char(0),char(201), -char(8),char(68),char(0),char(201),char(5),char(129),char(0),char(18),char(6),char(211), -char(0),char(201),char(5),char(37),char(0),char(201),char(5),char(10),char(0),char(61), -char(8),char(102),char(0),char(201),char(5),char(23),char(0),char(51),char(4),char(115), -char(0),char(94),char(4),char(197),char(0),char(119),char(4),char(141),char(0),char(176), -char(3),char(109),char(0),char(176),char(4),char(147),char(0),char(41),char(4),char(125), -char(0),char(115),char(5),char(227),char(0),char(4),char(3),char(221),char(0),char(68), -char(5),char(18),char(0),char(176),char(5),char(18),char(0),char(176),char(4),char(39), -char(0),char(176),char(4),char(145),char(0),char(16),char(5),char(225),char(0),char(176), -char(5),char(18),char(0),char(176),char(4),char(213),char(0),char(115),char(4),char(248), -char(0),char(176),char(4),char(231),char(0),char(176),char(3),char(207),char(0),char(115), -char(3),char(188),char(0),char(41),char(4),char(8),char(0),char(2),char(5),char(184), -char(0),char(113),char(4),char(49),char(0),char(39),char(5),char(2),char(0),char(176), -char(4),char(221),char(0),char(156),char(7),char(31),char(0),char(176),char(7),char(45), -char(0),char(176),char(5),char(143),char(0),char(41),char(6),char(41),char(0),char(176), -char(4),char(188),char(0),char(176),char(3),char(240),char(0),char(57),char(6),char(166), -char(0),char(176),char(4),char(113),char(0),char(37),char(4),char(125),char(0),char(115), -char(4),char(233),char(0),char(20),char(3),char(109),char(0),char(176),char(3),char(240), -char(0),char(115),char(3),char(209),char(0),char(106),char(2),char(6),char(0),char(162), -char(2),char(6),char(255),char(236),char(2),char(6),char(255),char(145),char(6),char(178), -char(0),char(16),char(7),char(23),char(0),char(176),char(4),char(233),char(0),char(20), -char(4),char(39),char(0),char(176),char(4),char(8),char(0),char(2),char(4),char(248), -char(0),char(176),char(4),char(55),char(0),char(201),char(3),char(109),char(0),char(176), -char(7),char(104),char(0),char(27),char(6),char(57),char(0),char(23),char(7),char(104), -char(0),char(27),char(6),char(57),char(0),char(23),char(7),char(104),char(0),char(27), -char(6),char(57),char(0),char(23),char(4),char(123),char(0),char(0),char(4),char(8), -char(0),char(2),char(4),char(0),char(0),char(82),char(8),char(0),char(0),char(82), -char(8),char(0),char(0),char(82),char(3),char(74),char(255),char(252),char(1),char(92), -char(0),char(25),char(1),char(92),char(0),char(25),char(1),char(246),char(0),char(63), -char(1),char(92),char(0),char(25),char(2),char(205),char(0),char(25),char(2),char(205), -char(0),char(25),char(3),char(61),char(0),char(25),char(4),char(4),char(0),char(123), -char(4),char(20),char(0),char(123),char(3),char(2),char(0),char(164),char(6),char(70), -char(0),char(152),char(9),char(158),char(0),char(100),char(1),char(197),char(0),char(133), -char(3),char(37),char(0),char(133),char(2),char(111),char(0),char(82),char(2),char(111), -char(0),char(80),char(3),char(227),char(0),char(152),char(1),char(10),char(254),char(121), -char(3),char(39),char(0),char(109),char(4),char(147),char(0),char(98),char(4),char(147), -char(0),char(68),char(6),char(27),char(0),char(154),char(4),char(184),char(0),char(63), -char(6),char(152),char(0),char(141),char(4),char(41),char(0),char(119),char(8),char(39), -char(0),char(201),char(6),char(53),char(0),char(37),char(6),char(66),char(0),char(80), -char(4),char(244),char(0),char(102),char(6),char(61),char(0),char(71),char(6),char(61), -char(0),char(32),char(6),char(61),char(0),char(71),char(6),char(61),char(0),char(106), -char(4),char(166),char(0),char(102),char(4),char(147),char(0),char(39),char(5),char(233), -char(0),char(201),char(5),char(12),char(0),char(76),char(4),char(147),char(0),char(104), -char(4),char(100),char(0),char(37),char(5),char(164),char(0),char(119),char(3),char(18), -char(0),char(12),char(4),char(147),char(0),char(98),char(4),char(147),char(0),char(104), -char(4),char(147),char(0),char(104),char(4),char(147),char(0),char(104),char(4),char(170), -char(0),char(111),char(4),char(188),char(0),char(29),char(4),char(188),char(0),char(29), -char(4),char(158),char(0),char(219),char(2),char(6),char(255),char(145),char(4),char(0), -char(1),char(137),char(4),char(0),char(1),char(113),char(4),char(0),char(1),char(129), -char(2),char(199),char(0),char(39),char(2),char(199),char(0),char(20),char(2),char(199), -char(0),char(59),char(2),char(199),char(0),char(41),char(2),char(199),char(0),char(57), -char(2),char(199),char(0),char(51),char(2),char(199),char(0),char(35),char(4),char(0), -char(0),char(0),char(8),char(0),char(0),char(0),char(4),char(0),char(0),char(0), -char(8),char(0),char(0),char(0),char(2),char(170),char(0),char(0),char(2),char(0), -char(0),char(0),char(1),char(86),char(0),char(0),char(4),char(121),char(0),char(0), -char(2),char(33),char(0),char(0),char(1),char(154),char(0),char(0),char(0),char(205), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(8),char(0),char(0),char(84),char(8),char(0),char(0),char(84),char(2),char(6), -char(255),char(145),char(1),char(92),char(0),char(25),char(4),char(250),char(0),char(10), -char(4),char(133),char(0),char(0),char(6),char(184),char(0),char(18),char(7),char(57), -char(0),char(201),char(7),char(113),char(0),char(176),char(5),char(16),char(0),char(0), -char(4),char(115),char(0),char(94),char(6),char(82),char(254),char(223),char(2),char(170), -char(0),char(117),char(3),char(51),char(0),char(152),char(7),char(117),char(0),char(29), -char(7),char(117),char(0),char(29),char(6),char(61),char(0),char(125),char(4),char(223), -char(0),char(115),char(6),char(37),char(0),char(186),char(5),char(82),char(0),char(164), -char(0),char(0),char(252),char(83),char(0),char(0),char(253),char(13),char(0),char(0), -char(252),char(25),char(0),char(0),char(253),char(8),char(0),char(0),char(253),char(59), -char(4),char(115),char(0),char(201),char(6),char(25),char(0),char(203),char(4),char(125), -char(0),char(115),char(5),char(18),char(0),char(176),char(8),char(23),char(0),char(133), -char(6),char(141),char(0),char(0),char(5),char(102),char(0),char(23),char(5),char(14), -char(0),char(23),char(7),char(90),char(0),char(201),char(5),char(227),char(0),char(176), -char(5),char(109),char(0),char(0),char(4),char(131),char(0),char(10),char(7),char(94), -char(0),char(201),char(6),char(33),char(0),char(176),char(5),char(197),char(0),char(20), -char(5),char(35),char(0),char(12),char(7),char(203),char(0),char(201),char(6),char(197), -char(0),char(176),char(4),char(168),char(0),char(63),char(3),char(221),char(0),char(25), -char(6),char(94),char(0),char(109),char(6),char(6),char(0),char(164),char(6),char(61), -char(0),char(125),char(4),char(213),char(0),char(115),char(5),char(2),char(0),char(0), -char(4),char(12),char(0),char(0),char(5),char(2),char(0),char(0),char(4),char(12), -char(0),char(0),char(9),char(172),char(0),char(125),char(8),char(125),char(0),char(115), -char(6),char(141),char(0),char(125),char(5),char(66),char(0),char(115),char(7),char(254), -char(0),char(125),char(6),char(119),char(0),char(115),char(7),char(223),char(0),char(94), -char(6),char(141),char(0),char(0),char(5),char(29),char(0),char(125),char(3),char(231), -char(0),char(115),char(4),char(223),char(0),char(106),char(4),char(117),char(0),char(203), -char(4),char(158),char(0),char(248),char(4),char(158),char(1),char(223),char(4),char(158), -char(1),char(225),char(7),char(233),char(0),char(41),char(7),char(166),char(0),char(41), -char(6),char(41),char(0),char(201),char(5),char(37),char(0),char(176),char(4),char(231), -char(0),char(47),char(4),char(188),char(0),char(20),char(4),char(227),char(0),char(201), -char(4),char(231),char(0),char(176),char(4),char(55),char(0),char(47),char(3),char(109), -char(0),char(18),char(5),char(35),char(0),char(201),char(4),char(51),char(0),char(176), -char(7),char(31),char(0),char(2),char(6),char(61),char(0),char(4),char(4),char(166), -char(0),char(74),char(3),char(221),char(0),char(68),char(5),char(74),char(0),char(201), -char(4),char(92),char(0),char(176),char(4),char(233),char(0),char(201),char(4),char(68), -char(0),char(176),char(4),char(233),char(0),char(47),char(4),char(35),char(0),char(20), -char(5),char(131),char(0),char(16),char(4),char(236),char(0),char(41),char(5),char(248), -char(0),char(201),char(5),char(47),char(0),char(176),char(6),char(129),char(0),char(201), -char(5),char(227),char(0),char(176),char(8),char(137),char(0),char(201),char(6),char(236), -char(0),char(176),char(6),char(59),char(0),char(125),char(5),char(31),char(0),char(115), -char(5),char(12),char(0),char(125),char(3),char(207),char(0),char(115),char(4),char(109), -char(0),char(16),char(3),char(188),char(0),char(41),char(4),char(123),char(0),char(0), -char(4),char(2),char(0),char(0),char(4),char(123),char(0),char(0),char(4),char(2), -char(0),char(0),char(4),char(244),char(0),char(8),char(4),char(86),char(0),char(39), -char(6),char(215),char(0),char(16),char(5),char(188),char(0),char(41),char(5),char(137), -char(0),char(170),char(4),char(223),char(0),char(156),char(5),char(143),char(0),char(170), -char(4),char(205),char(0),char(156),char(5),char(143),char(0),char(201),char(4),char(174), -char(0),char(176),char(6),char(180),char(0),char(61),char(5),char(70),char(0),char(51), -char(6),char(180),char(0),char(61),char(5),char(70),char(0),char(51),char(2),char(170), -char(0),char(84),char(6),char(193),char(0),char(2),char(5),char(227),char(0),char(4), -char(5),char(131),char(0),char(201),char(4),char(100),char(0),char(176),char(5),char(166), -char(0),char(0),char(4),char(147),char(0),char(16),char(5),char(209),char(0),char(201), -char(4),char(238),char(0),char(176),char(5),char(246),char(0),char(201),char(5),char(57), -char(0),char(176),char(5),char(143),char(0),char(170),char(4),char(221),char(0),char(156), -char(7),char(59),char(0),char(201),char(5),char(227),char(0),char(176),char(2),char(170), -char(0),char(84),char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94), -char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94),char(6),char(252), -char(255),char(254),char(6),char(221),char(0),char(94),char(4),char(115),char(0),char(201), -char(4),char(125),char(0),char(115),char(5),char(215),char(0),char(117),char(4),char(121), -char(0),char(102),char(5),char(215),char(0),char(117),char(4),char(121),char(0),char(102), -char(6),char(193),char(0),char(2),char(5),char(227),char(0),char(4),char(4),char(166), -char(0),char(74),char(3),char(221),char(0),char(68),char(4),char(170),char(0),char(74), -char(3),char(233),char(0),char(27),char(6),char(25),char(0),char(203),char(5),char(18), -char(0),char(176),char(6),char(25),char(0),char(203),char(5),char(18),char(0),char(176), -char(6),char(59),char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(61), -char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(61),char(0),char(125), -char(4),char(213),char(0),char(115),char(5),char(10),char(0),char(61),char(3),char(240), -char(0),char(57),char(4),char(248),char(0),char(27),char(4),char(8),char(0),char(2), -char(4),char(248),char(0),char(27),char(4),char(8),char(0),char(2),char(4),char(248), -char(0),char(27),char(4),char(8),char(0),char(2),char(5),char(143),char(0),char(170), -char(4),char(221),char(0),char(156),char(4),char(55),char(0),char(201),char(3),char(109), -char(0),char(176),char(6),char(211),char(0),char(201),char(6),char(41),char(0),char(176), -char(4),char(55),char(0),char(47),char(3),char(109),char(0),char(18),char(4),char(248), -char(0),char(8),char(4),char(82),char(0),char(39),char(4),char(158),char(0),char(6), -char(4),char(49),char(0),char(39),char(4),char(231),char(0),char(131),char(4),char(231), -char(0),char(115),char(7),char(49),char(0),char(131),char(7),char(43),char(0),char(115), -char(7),char(59),char(0),char(78),char(6),char(106),char(0),char(80),char(5),char(0), -char(0),char(78),char(4),char(47),char(0),char(80),char(7),char(217),char(0),char(0), -char(6),char(207),char(0),char(16),char(8),char(25),char(0),char(201),char(7),char(78), -char(0),char(176),char(6),char(12),char(0),char(125),char(5),char(31),char(0),char(115), -char(5),char(174),char(0),char(16),char(5),char(45),char(0),char(41),char(4),char(170), -char(0),char(111),char(3),char(205),char(0),char(90),char(5),char(154),char(0),char(0), -char(4),char(145),char(0),char(16),char(5),char(16),char(0),char(0),char(4),char(115), -char(0),char(94),char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94), -char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94),char(5),char(16), -char(0),char(0),char(4),char(115),char(0),char(45),char(5),char(16),char(0),char(0), -char(4),char(115),char(0),char(94),char(5),char(16),char(0),char(0),char(4),char(115), -char(0),char(94),char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94), -char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94),char(5),char(16), -char(0),char(0),char(4),char(115),char(0),char(94),char(5),char(16),char(0),char(0), -char(4),char(115),char(0),char(94),char(5),char(16),char(0),char(0),char(4),char(115), -char(0),char(94),char(5),char(16),char(0),char(0),char(4),char(115),char(0),char(94), -char(4),char(115),char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115), -char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115),char(0),char(201), -char(4),char(125),char(0),char(115),char(4),char(115),char(0),char(201),char(4),char(125), -char(0),char(115),char(4),char(115),char(0),char(93),char(4),char(125),char(0),char(74), -char(4),char(115),char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115), -char(0),char(201),char(4),char(125),char(0),char(115),char(4),char(115),char(0),char(201), -char(4),char(125),char(0),char(115),char(2),char(170),char(0),char(84),char(2),char(6), -char(0),char(123),char(2),char(170),char(0),char(84),char(2),char(6),char(0),char(157), -char(6),char(59),char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(59), -char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(59),char(0),char(125), -char(4),char(213),char(0),char(115),char(6),char(59),char(0),char(125),char(4),char(213), -char(0),char(97),char(6),char(59),char(0),char(125),char(4),char(213),char(0),char(115), -char(6),char(59),char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(59), -char(0),char(125),char(4),char(213),char(0),char(115),char(6),char(61),char(0),char(125), -char(4),char(223),char(0),char(115),char(6),char(61),char(0),char(125),char(4),char(223), -char(0),char(115),char(6),char(61),char(0),char(125),char(4),char(223),char(0),char(115), -char(6),char(61),char(0),char(125),char(4),char(223),char(0),char(115),char(6),char(61), -char(0),char(125),char(4),char(223),char(0),char(115),char(5),char(211),char(0),char(186), -char(4),char(233),char(0),char(164),char(5),char(211),char(0),char(186),char(4),char(233), -char(0),char(164),char(6),char(37),char(0),char(186),char(5),char(82),char(0),char(164), -char(6),char(37),char(0),char(186),char(5),char(82),char(0),char(164),char(6),char(37), -char(0),char(186),char(5),char(82),char(0),char(164),char(6),char(37),char(0),char(186), -char(5),char(82),char(0),char(164),char(6),char(37),char(0),char(186),char(5),char(82), -char(0),char(164),char(4),char(123),char(0),char(0),char(4),char(8),char(0),char(2), -char(4),char(123),char(0),char(0),char(4),char(8),char(0),char(2),char(4),char(123), -char(0),char(0),char(4),char(8),char(0),char(2),char(4),char(231),char(0),char(115), -char(0),char(0),char(251),char(229),char(0),char(0),char(252),char(113),char(0),char(0), -char(251),char(154),char(0),char(0),char(252),char(113),char(0),char(0),char(252),char(104), -char(0),char(0),char(252),char(121),char(0),char(0),char(252),char(121),char(0),char(0), -char(252),char(121),char(0),char(0),char(252),char(104),char(1),char(164),char(0),char(49), -char(1),char(164),char(0),char(25),char(1),char(164),char(0),char(25),char(3),char(45), -char(0),char(52),char(4),char(137),char(0),char(115),char(2),char(244),char(0),char(45), -char(4),char(20),char(0),char(41),char(4),char(147),char(0),char(94),char(4),char(143), -char(0),char(23),char(4),char(147),char(0),char(133),char(4),char(147),char(0),char(117), -char(4),char(147),char(0),char(94),char(4),char(147),char(0),char(104),char(4),char(147), -char(0),char(106),char(5),char(109),char(0),char(29),char(6),char(90),char(0),char(92), -char(4),char(109),char(0),char(18),char(2),char(211),char(0),char(31),char(4),char(231), -char(0),char(113),char(4),char(231),char(0),char(113),char(4),char(231),char(0),char(113), -char(4),char(231),char(0),char(113),char(4),char(231),char(0),char(113),char(2),char(59), -char(0),char(201),char(2),char(59),char(0),char(5),char(2),char(59),char(0),char(179), -char(2),char(59),char(255),char(199),char(2),char(59),char(0),char(5),char(2),char(59), -char(255),char(171),char(2),char(59),char(255),char(243),char(2),char(59),char(255),char(231), -char(2),char(59),char(0),char(86),char(2),char(59),char(0),char(187),char(4),char(94), -char(0),char(201),char(2),char(229),char(255),char(228),char(2),char(59),char(0),char(201), -char(0),char(5),char(0),char(201),char(0),char(5),char(0),char(201),char(0),char(201), -char(0),char(153),char(0),char(184),char(0),char(0),char(0),char(0),char(0),char(1), -char(0),char(3),char(0),char(1),char(0),char(0),char(0),char(12),char(0),char(4), -char(4),char(14),char(0),char(0),char(0),char(176),char(0),char(128),char(0),char(6), -char(0),char(48),char(0),char(72),char(0),char(73),char(0),char(126),char(0),char(203), -char(0),char(207),char(1),char(39),char(1),char(50),char(1),char(97),char(1),char(127), -char(1),char(146),char(1),char(161),char(1),char(176),char(1),char(240),char(1),char(255), -char(2),char(27),char(2),char(55),char(2),char(188),char(2),char(199),char(2),char(201), -char(2),char(221),char(2),char(243),char(3),char(1),char(3),char(3),char(3),char(9), -char(3),char(15),char(3),char(35),char(3),char(138),char(3),char(140),char(3),char(161), -char(3),char(170),char(3),char(206),char(3),char(210),char(3),char(214),char(4),char(13), -char(4),char(79),char(4),char(95),char(4),char(134),char(4),char(145),char(4),char(191), -char(4),char(207),char(5),char(19),char(30),char(1),char(30),char(63),char(30),char(133), -char(30),char(199),char(30),char(202),char(30),char(241),char(30),char(249),char(31),char(77), -char(32),char(11),char(32),char(21),char(32),char(30),char(32),char(34),char(32),char(38), -char(32),char(48),char(32),char(51),char(32),char(58),char(32),char(60),char(32),char(68), -char(32),char(112),char(32),char(121),char(32),char(127),char(32),char(164),char(32),char(167), -char(32),char(172),char(33),char(5),char(33),char(19),char(33),char(22),char(33),char(32), -char(33),char(34),char(33),char(38),char(33),char(46),char(33),char(94),char(34),char(2), -char(34),char(6),char(34),char(15),char(34),char(18),char(34),char(26),char(34),char(30), -char(34),char(43),char(34),char(72),char(34),char(96),char(34),char(101),char(37),char(202), -char(251),char(4),char(254),char(255),char(255),char(253),char(255),char(255),char(0),char(0), -char(0),char(32),char(0),char(73),char(0),char(74),char(0),char(160),char(0),char(204), -char(0),char(208),char(1),char(40),char(1),char(51),char(1),char(98),char(1),char(146), -char(1),char(160),char(1),char(175),char(1),char(240),char(1),char(250),char(2),char(24), -char(2),char(55),char(2),char(188),char(2),char(198),char(2),char(201),char(2),char(216), -char(2),char(243),char(3),char(0),char(3),char(3),char(3),char(9),char(3),char(15), -char(3),char(35),char(3),char(132),char(3),char(140),char(3),char(142),char(3),char(163), -char(3),char(171),char(3),char(209),char(3),char(214),char(4),char(0),char(4),char(14), -char(4),char(80),char(4),char(96),char(4),char(136),char(4),char(146),char(4),char(192), -char(4),char(208),char(30),char(0),char(30),char(62),char(30),char(128),char(30),char(160), -char(30),char(200),char(30),char(203),char(30),char(242),char(31),char(77),char(32),char(0), -char(32),char(19),char(32),char(23),char(32),char(32),char(32),char(38),char(32),char(48), -char(32),char(50),char(32),char(57),char(32),char(60),char(32),char(68),char(32),char(112), -char(32),char(116),char(32),char(127),char(32),char(163),char(32),char(167),char(32),char(171), -char(33),char(5),char(33),char(19),char(33),char(22),char(33),char(32),char(33),char(34), -char(33),char(38),char(33),char(46),char(33),char(91),char(34),char(2),char(34),char(6), -char(34),char(15),char(34),char(17),char(34),char(26),char(34),char(30),char(34),char(43), -char(34),char(72),char(34),char(96),char(34),char(100),char(37),char(202),char(251),char(0), -char(254),char(255),char(255),char(252),char(255),char(255),char(255),char(227),char(0),char(0), -char(255),char(227),char(255),char(194),char(0),char(0),char(255),char(194),char(0),char(0), -char(255),char(194),char(0),char(0),char(255),char(176),char(0),char(191),char(0),char(178), -char(0),char(97),char(255),char(73),char(0),char(0),char(0),char(0),char(255),char(150), -char(254),char(133),char(254),char(132),char(254),char(118),char(255),char(104),char(255),char(99), -char(255),char(98),char(255),char(93),char(0),char(103),char(255),char(68),char(0),char(0), -char(253),char(207),char(0),char(0),char(0),char(0),char(253),char(205),char(254),char(130), -char(254),char(127),char(0),char(0),char(253),char(154),char(0),char(0),char(254),char(12), -char(0),char(0),char(254),char(9),char(0),char(0),char(254),char(9),char(228),char(88), -char(228),char(24),char(227),char(122),char(228),char(125),char(0),char(0),char(228),char(125), -char(0),char(0),char(227),char(13),char(226),char(66),char(225),char(239),char(225),char(238), -char(225),char(237),char(225),char(234),char(225),char(225),char(225),char(224),char(225),char(219), -char(225),char(218),char(225),char(211),char(225),char(203),char(225),char(200),char(225),char(153), -char(225),char(118),char(225),char(116),char(0),char(0),char(225),char(24),char(225),char(11), -char(225),char(9),char(226),char(110),char(224),char(254),char(224),char(251),char(224),char(244), -char(224),char(200),char(224),char(37),char(224),char(34),char(224),char(26),char(224),char(25), -char(224),char(18),char(224),char(15),char(224),char(3),char(223),char(231),char(223),char(208), -char(223),char(205),char(220),char(105),char(0),char(0),char(3),char(79),char(2),char(83), -char(0),char(1),char(0),char(0),char(0),char(174),char(0),char(0),char(0),char(0), -char(0),char(170),char(0),char(0),char(0),char(174),char(0),char(0),char(0),char(192), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(240),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(224),char(0),char(0),char(0),char(234), -char(1),char(16),char(0),char(0),char(0),char(0),char(0),char(0),char(1),char(24), -char(0),char(0),char(1),char(48),char(0),char(0),char(1),char(76),char(0),char(0), -char(1),char(92),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(1),char(112),char(0),char(0),char(1),char(114),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(1),char(96),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(1),char(60),char(0),char(0),char(0),char(0),char(0),char(0),char(3),char(150), -char(3),char(151),char(3),char(152),char(3),char(153),char(3),char(154),char(3),char(155), -char(0),char(235),char(3),char(156),char(0),char(237),char(3),char(157),char(0),char(239), -char(3),char(158),char(0),char(241),char(3),char(159),char(0),char(243),char(3),char(160), -char(3),char(143),char(3),char(144),char(1),char(38),char(1),char(39),char(1),char(40), -char(1),char(41),char(1),char(42),char(1),char(43),char(1),char(44),char(1),char(45), -char(1),char(46),char(1),char(47),char(1),char(48),char(1),char(49),char(1),char(50), -char(1),char(51),char(1),char(52),char(1),char(53),char(1),char(54),char(1),char(55), -char(1),char(56),char(1),char(57),char(1),char(58),char(1),char(59),char(1),char(60), -char(1),char(61),char(1),char(62),char(1),char(63),char(1),char(64),char(1),char(65), -char(1),char(73),char(1),char(74),char(1),char(36),char(1),char(37),char(1),char(84), -char(1),char(85),char(1),char(86),char(1),char(87),char(1),char(88),char(1),char(89), -char(3),char(161),char(1),char(92),char(1),char(93),char(1),char(94),char(1),char(95), -char(1),char(96),char(1),char(97),char(1),char(98),char(1),char(99),char(1),char(100), -char(1),char(101),char(1),char(102),char(3),char(162),char(1),char(104),char(1),char(105), -char(1),char(106),char(1),char(107),char(1),char(108),char(1),char(109),char(1),char(110), -char(1),char(111),char(1),char(112),char(1),char(113),char(1),char(114),char(1),char(115), -char(1),char(116),char(1),char(117),char(1),char(118),char(3),char(163),char(2),char(104), -char(1),char(156),char(1),char(157),char(1),char(158),char(1),char(159),char(1),char(160), -char(3),char(164),char(3),char(165),char(1),char(163),char(1),char(164),char(1),char(165), -char(1),char(166),char(1),char(167),char(2),char(105),char(2),char(106),char(1),char(234), -char(1),char(235),char(1),char(236),char(1),char(237),char(1),char(238),char(1),char(239), -char(1),char(240),char(1),char(241),char(1),char(242),char(1),char(243),char(1),char(244), -char(1),char(245),char(2),char(107),char(1),char(246),char(1),char(247),char(2),char(147), -char(2),char(148),char(2),char(149),char(2),char(150),char(2),char(151),char(2),char(152), -char(2),char(153),char(2),char(154),char(1),char(248),char(1),char(249),char(3),char(166), -char(2),char(202),char(2),char(203),char(2),char(204),char(2),char(205),char(2),char(206), -char(2),char(207),char(2),char(208),char(2),char(209),char(2),char(210),char(2),char(211), -char(2),char(212),char(2),char(213),char(2),char(214),char(2),char(215),char(3),char(167), -char(3),char(168),char(3),char(70),char(3),char(169),char(2),char(0),char(2),char(1), -char(3),char(111),char(3),char(112),char(3),char(113),char(3),char(114),char(3),char(115), -char(3),char(116),char(3),char(117),char(2),char(28),char(3),char(141),char(2),char(52), -char(2),char(53),char(2),char(93),char(2),char(94),char(0),char(0),char(64),char(71), -char(91),char(90),char(89),char(88),char(85),char(84),char(83),char(82),char(81),char(80), -char(79),char(78),char(77),char(76),char(75),char(74),char(73),char(72),char(71),char(70), -char(69),char(68),char(67),char(66),char(65),char(64),char(63),char(62),char(61),char(60), -char(59),char(58),char(57),char(56),char(55),char(54),char(53),char(49),char(48),char(47), -char(46),char(45),char(44),char(40),char(39),char(38),char(37),char(36),char(35),char(34), -char(33),char(31),char(24),char(20),char(17),char(16),char(15),char(14),char(13),char(11), -char(10),char(9),char(8),char(7),char(6),char(5),char(4),char(3),char(2),char(1), -char(0),char(44),char(32),char(176),char(1),char(96),char(69),char(176),char(3),char(37), -char(32),char(17),char(70),char(97),char(35),char(69),char(35),char(97),char(72),char(45), -char(44),char(32),char(69),char(24),char(104),char(68),char(45),char(44),char(69),char(35), -char(70),char(96),char(176),char(32),char(97),char(32),char(176),char(70),char(96),char(176), -char(4),char(38),char(35),char(72),char(72),char(45),char(44),char(69),char(35),char(70), -char(35),char(97),char(176),char(32),char(96),char(32),char(176),char(38),char(97),char(176), -char(32),char(97),char(176),char(4),char(38),char(35),char(72),char(72),char(45),char(44), -char(69),char(35),char(70),char(96),char(176),char(64),char(97),char(32),char(176),char(102), -char(96),char(176),char(4),char(38),char(35),char(72),char(72),char(45),char(44),char(69), -char(35),char(70),char(35),char(97),char(176),char(64),char(96),char(32),char(176),char(38), -char(97),char(176),char(64),char(97),char(176),char(4),char(38),char(35),char(72),char(72), -char(45),char(44),char(1),char(16),char(32),char(60),char(0),char(60),char(45),char(44), -char(32),char(69),char(35),char(32),char(176),char(205),char(68),char(35),char(32),char(184), -char(1),char(90),char(81),char(88),char(35),char(32),char(176),char(141),char(68),char(35), -char(89),char(32),char(176),char(237),char(81),char(88),char(35),char(32),char(176),char(77), -char(68),char(35),char(89),char(32),char(176),char(4),char(38),char(81),char(88),char(35), -char(32),char(176),char(13),char(68),char(35),char(89),char(33),char(33),char(45),char(44), -char(32),char(32),char(69),char(24),char(104),char(68),char(32),char(176),char(1),char(96), -char(32),char(69),char(176),char(70),char(118),char(104),char(138),char(69),char(96),char(68), -char(45),char(44),char(1),char(177),char(11),char(10),char(67),char(35),char(67),char(101), -char(10),char(45),char(44),char(0),char(177),char(10),char(11),char(67),char(35),char(67), -char(11),char(45),char(44),char(0),char(176),char(40),char(35),char(112),char(177),char(1), -char(40),char(62),char(1),char(176),char(40),char(35),char(112),char(177),char(2),char(40), -char(69),char(58),char(177),char(2),char(0),char(8),char(13),char(45),char(44),char(32), -char(69),char(176),char(3),char(37),char(69),char(97),char(100),char(176),char(80),char(81), -char(88),char(69),char(68),char(27),char(33),char(33),char(89),char(45),char(44),char(73), -char(176),char(14),char(35),char(68),char(45),char(44),char(32),char(69),char(176),char(0), -char(67),char(96),char(68),char(45),char(44),char(1),char(176),char(6),char(67),char(176), -char(7),char(67),char(101),char(10),char(45),char(44),char(32),char(105),char(176),char(64), -char(97),char(176),char(0),char(139),char(32),char(177),char(44),char(192),char(138),char(140), -char(184),char(16),char(0),char(98),char(96),char(43),char(12),char(100),char(35),char(100), -char(97),char(92),char(88),char(176),char(3),char(97),char(89),char(45),char(44),char(138), -char(3),char(69),char(138),char(138),char(135),char(176),char(17),char(43),char(176),char(41), -char(35),char(68),char(176),char(41),char(122),char(228),char(24),char(45),char(44),char(69), -char(101),char(176),char(44),char(35),char(68),char(69),char(176),char(43),char(35),char(68), -char(45),char(44),char(75),char(82),char(88),char(69),char(68),char(27),char(33),char(33), -char(89),char(45),char(44),char(75),char(81),char(88),char(69),char(68),char(27),char(33), -char(33),char(89),char(45),char(44),char(1),char(176),char(5),char(37),char(16),char(35), -char(32),char(138),char(245),char(0),char(176),char(1),char(96),char(35),char(237),char(236), -char(45),char(44),char(1),char(176),char(5),char(37),char(16),char(35),char(32),char(138), -char(245),char(0),char(176),char(1),char(97),char(35),char(237),char(236),char(45),char(44), -char(1),char(176),char(6),char(37),char(16),char(245),char(0),char(237),char(236),char(45), -char(44),char(176),char(2),char(67),char(176),char(1),char(82),char(88),char(33),char(33), -char(33),char(33),char(33),char(27),char(70),char(35),char(70),char(96),char(138),char(138), -char(70),char(35),char(32),char(70),char(138),char(96),char(138),char(97),char(184),char(255), -char(128),char(98),char(35),char(32),char(16),char(35),char(138),char(177),char(12),char(12), -char(138),char(112),char(69),char(96),char(32),char(176),char(0),char(80),char(88),char(176), -char(1),char(97),char(184),char(255),char(186),char(139),char(27),char(176),char(70),char(140), -char(89),char(176),char(16),char(96),char(104),char(1),char(58),char(89),char(45),char(44), -char(32),char(69),char(176),char(3),char(37),char(70),char(82),char(75),char(176),char(19), -char(81),char(91),char(88),char(176),char(2),char(37),char(70),char(32),char(104),char(97), -char(176),char(3),char(37),char(176),char(3),char(37),char(63),char(35),char(33),char(56), -char(27),char(33),char(17),char(89),char(45),char(44),char(32),char(69),char(176),char(3), -char(37),char(70),char(80),char(88),char(176),char(2),char(37),char(70),char(32),char(104), -char(97),char(176),char(3),char(37),char(176),char(3),char(37),char(63),char(35),char(33), -char(56),char(27),char(33),char(17),char(89),char(45),char(44),char(0),char(176),char(7), -char(67),char(176),char(6),char(67),char(11),char(45),char(44),char(33),char(33),char(12), -char(100),char(35),char(100),char(139),char(184),char(64),char(0),char(98),char(45),char(44), -char(33),char(176),char(128),char(81),char(88),char(12),char(100),char(35),char(100),char(139), -char(184),char(32),char(0),char(98),char(27),char(178),char(0),char(64),char(47),char(43), -char(89),char(176),char(2),char(96),char(45),char(44),char(33),char(176),char(192),char(81), -char(88),char(12),char(100),char(35),char(100),char(139),char(184),char(21),char(85),char(98), -char(27),char(178),char(0),char(128),char(47),char(43),char(89),char(176),char(2),char(96), -char(45),char(44),char(12),char(100),char(35),char(100),char(139),char(184),char(64),char(0), -char(98),char(96),char(35),char(33),char(45),char(44),char(75),char(83),char(88),char(138), -char(176),char(4),char(37),char(73),char(100),char(35),char(69),char(105),char(176),char(64), -char(139),char(97),char(176),char(128),char(98),char(176),char(32),char(97),char(106),char(176), -char(14),char(35),char(68),char(35),char(16),char(176),char(14),char(246),char(27),char(33), -char(35),char(138),char(18),char(17),char(32),char(57),char(47),char(89),char(45),char(44), -char(75),char(83),char(88),char(32),char(176),char(3),char(37),char(73),char(100),char(105), -char(32),char(176),char(5),char(38),char(176),char(6),char(37),char(73),char(100),char(35), -char(97),char(176),char(128),char(98),char(176),char(32),char(97),char(106),char(176),char(14), -char(35),char(68),char(176),char(4),char(38),char(16),char(176),char(14),char(246),char(138), -char(16),char(176),char(14),char(35),char(68),char(176),char(14),char(246),char(176),char(14), -char(35),char(68),char(176),char(14),char(237),char(27),char(138),char(176),char(4),char(38), -char(17),char(18),char(32),char(57),char(35),char(32),char(57),char(47),char(47),char(89), -char(45),char(44),char(69),char(35),char(69),char(96),char(35),char(69),char(96),char(35), -char(69),char(96),char(35),char(118),char(104),char(24),char(176),char(128),char(98),char(32), -char(45),char(44),char(176),char(72),char(43),char(45),char(44),char(32),char(69),char(176), -char(0),char(84),char(88),char(176),char(64),char(68),char(32),char(69),char(176),char(64), -char(97),char(68),char(27),char(33),char(33),char(89),char(45),char(44),char(69),char(177), -char(48),char(47),char(69),char(35),char(69),char(97),char(96),char(176),char(1),char(96), -char(105),char(68),char(45),char(44),char(75),char(81),char(88),char(176),char(47),char(35), -char(112),char(176),char(20),char(35),char(66),char(27),char(33),char(33),char(89),char(45), -char(44),char(75),char(81),char(88),char(32),char(176),char(3),char(37),char(69),char(105), -char(83),char(88),char(68),char(27),char(33),char(33),char(89),char(27),char(33),char(33), -char(89),char(45),char(44),char(69),char(176),char(20),char(67),char(176),char(0),char(96), -char(99),char(176),char(1),char(96),char(105),char(68),char(45),char(44),char(176),char(47), -char(69),char(68),char(45),char(44),char(69),char(35),char(32),char(69),char(138),char(96), -char(68),char(45),char(44),char(69),char(35),char(69),char(96),char(68),char(45),char(44), -char(75),char(35),char(81),char(88),char(185),char(0),char(51),char(255),char(224),char(177), -char(52),char(32),char(27),char(179),char(51),char(0),char(52),char(0),char(89),char(68), -char(68),char(45),char(44),char(176),char(22),char(67),char(88),char(176),char(3),char(38), -char(69),char(138),char(88),char(100),char(102),char(176),char(31),char(96),char(27),char(100), -char(176),char(32),char(96),char(102),char(32),char(88),char(27),char(33),char(176),char(64), -char(89),char(176),char(1),char(97),char(89),char(35),char(88),char(101),char(89),char(176), -char(41),char(35),char(68),char(35),char(16),char(176),char(41),char(224),char(27),char(33), -char(33),char(33),char(33),char(33),char(89),char(45),char(44),char(176),char(2),char(67), -char(84),char(88),char(75),char(83),char(35),char(75),char(81),char(90),char(88),char(56), -char(27),char(33),char(33),char(89),char(27),char(33),char(33),char(33),char(33),char(89), -char(45),char(44),char(176),char(22),char(67),char(88),char(176),char(4),char(37),char(69), -char(100),char(176),char(32),char(96),char(102),char(32),char(88),char(27),char(33),char(176), -char(64),char(89),char(176),char(1),char(97),char(35),char(88),char(27),char(101),char(89), -char(176),char(41),char(35),char(68),char(176),char(5),char(37),char(176),char(8),char(37), -char(8),char(32),char(88),char(2),char(27),char(3),char(89),char(176),char(4),char(37), -char(16),char(176),char(5),char(37),char(32),char(70),char(176),char(4),char(37),char(35), -char(66),char(60),char(176),char(4),char(37),char(176),char(7),char(37),char(8),char(176), -char(7),char(37),char(16),char(176),char(6),char(37),char(32),char(70),char(176),char(4), -char(37),char(176),char(1),char(96),char(35),char(66),char(60),char(32),char(88),char(1), -char(27),char(0),char(89),char(176),char(4),char(37),char(16),char(176),char(5),char(37), -char(176),char(41),char(224),char(176),char(41),char(32),char(69),char(101),char(68),char(176), -char(7),char(37),char(16),char(176),char(6),char(37),char(176),char(41),char(224),char(176), -char(5),char(37),char(176),char(8),char(37),char(8),char(32),char(88),char(2),char(27), -char(3),char(89),char(176),char(5),char(37),char(176),char(3),char(37),char(67),char(72), -char(176),char(4),char(37),char(176),char(7),char(37),char(8),char(176),char(6),char(37), -char(176),char(3),char(37),char(176),char(1),char(96),char(67),char(72),char(27),char(33), -char(89),char(33),char(33),char(33),char(33),char(33),char(33),char(33),char(45),char(44), -char(2),char(176),char(4),char(37),char(32),char(32),char(70),char(176),char(4),char(37), -char(35),char(66),char(176),char(5),char(37),char(8),char(176),char(3),char(37),char(69), -char(72),char(33),char(33),char(33),char(33),char(45),char(44),char(2),char(176),char(3), -char(37),char(32),char(176),char(4),char(37),char(8),char(176),char(2),char(37),char(67), -char(72),char(33),char(33),char(33),char(45),char(44),char(69),char(35),char(32),char(69), -char(24),char(32),char(176),char(0),char(80),char(32),char(88),char(35),char(101),char(35), -char(89),char(35),char(104),char(32),char(176),char(64),char(80),char(88),char(33),char(176), -char(64),char(89),char(35),char(88),char(101),char(89),char(138),char(96),char(68),char(45), -char(44),char(75),char(83),char(35),char(75),char(81),char(90),char(88),char(32),char(69), -char(138),char(96),char(68),char(27),char(33),char(33),char(89),char(45),char(44),char(75), -char(84),char(88),char(32),char(69),char(138),char(96),char(68),char(27),char(33),char(33), -char(89),char(45),char(44),char(75),char(83),char(35),char(75),char(81),char(90),char(88), -char(56),char(27),char(33),char(33),char(89),char(45),char(44),char(176),char(0),char(33), -char(75),char(84),char(88),char(56),char(27),char(33),char(33),char(89),char(45),char(44), -char(176),char(2),char(67),char(84),char(88),char(176),char(70),char(43),char(27),char(33), -char(33),char(33),char(33),char(89),char(45),char(44),char(176),char(2),char(67),char(84), -char(88),char(176),char(71),char(43),char(27),char(33),char(33),char(33),char(89),char(45), -char(44),char(176),char(2),char(67),char(84),char(88),char(176),char(72),char(43),char(27), -char(33),char(33),char(33),char(33),char(89),char(45),char(44),char(176),char(2),char(67), -char(84),char(88),char(176),char(73),char(43),char(27),char(33),char(33),char(33),char(89), -char(45),char(44),char(32),char(138),char(8),char(35),char(75),char(83),char(138),char(75), -char(81),char(90),char(88),char(35),char(56),char(27),char(33),char(33),char(89),char(45), -char(44),char(0),char(176),char(2),char(37),char(73),char(176),char(0),char(83),char(88), -char(32),char(176),char(64),char(56),char(17),char(27),char(33),char(89),char(45),char(44), -char(1),char(70),char(35),char(70),char(96),char(35),char(70),char(97),char(35),char(32), -char(16),char(32),char(70),char(138),char(97),char(184),char(255),char(128),char(98),char(138), -char(177),char(64),char(64),char(138),char(112),char(69),char(96),char(104),char(58),char(45), -char(44),char(32),char(138),char(35),char(73),char(100),char(138),char(35),char(83),char(88), -char(60),char(27),char(33),char(89),char(45),char(44),char(75),char(82),char(88),char(125), -char(27),char(122),char(89),char(45),char(44),char(176),char(18),char(0),char(75),char(1), -char(75),char(84),char(66),char(45),char(44),char(177),char(2),char(0),char(66),char(177), -char(35),char(1),char(136),char(81),char(177),char(64),char(1),char(136),char(83),char(90), -char(88),char(185),char(16),char(0),char(0),char(32),char(136),char(84),char(88),char(178), -char(2),char(1),char(2),char(67),char(96),char(66),char(89),char(177),char(36),char(1), -char(136),char(81),char(88),char(185),char(32),char(0),char(0),char(64),char(136),char(84), -char(88),char(178),char(2),char(2),char(2),char(67),char(96),char(66),char(177),char(36), -char(1),char(136),char(84),char(88),char(178),char(2),char(32),char(2),char(67),char(96), -char(66),char(0),char(75),char(1),char(75),char(82),char(88),char(178),char(2),char(8), -char(2),char(67),char(96),char(66),char(89),char(27),char(185),char(64),char(0),char(0), -char(128),char(136),char(84),char(88),char(178),char(2),char(4),char(2),char(67),char(96), -char(66),char(89),char(185),char(64),char(0),char(0),char(128),char(99),char(184),char(1), -char(0),char(136),char(84),char(88),char(178),char(2),char(8),char(2),char(67),char(96), -char(66),char(89),char(185),char(64),char(0),char(1),char(0),char(99),char(184),char(2), -char(0),char(136),char(84),char(88),char(178),char(2),char(16),char(2),char(67),char(96), -char(66),char(89),char(177),char(38),char(1),char(136),char(81),char(88),char(185),char(64), -char(0),char(2),char(0),char(99),char(184),char(4),char(0),char(136),char(84),char(88), -char(178),char(2),char(64),char(2),char(67),char(96),char(66),char(89),char(185),char(64), -char(0),char(4),char(0),char(99),char(184),char(8),char(0),char(136),char(84),char(88), -char(178),char(2),char(128),char(2),char(67),char(96),char(66),char(89),char(89),char(89), -char(89),char(89),char(89),char(177),char(0),char(2),char(67),char(84),char(88),char(64), -char(10),char(5),char(64),char(8),char(64),char(9),char(64),char(12),char(2),char(13), -char(2),char(27),char(177),char(1),char(2),char(67),char(84),char(88),char(178),char(5), -char(64),char(8),char(186),char(1),char(0),char(0),char(9),char(1),char(0),char(179), -char(12),char(1),char(13),char(1),char(27),char(177),char(128),char(2),char(67),char(82), -char(88),char(178),char(5),char(64),char(8),char(184),char(1),char(128),char(177),char(9), -char(64),char(27),char(178),char(5),char(64),char(8),char(186),char(1),char(128),char(0), -char(9),char(1),char(64),char(89),char(185),char(64),char(0),char(0),char(128),char(136), -char(85),char(185),char(64),char(0),char(2),char(0),char(99),char(184),char(4),char(0), -char(136),char(85),char(90),char(88),char(179),char(12),char(0),char(13),char(1),char(27), -char(179),char(12),char(0),char(13),char(1),char(89),char(89),char(89),char(66),char(66), -char(66),char(66),char(66),char(45),char(44),char(69),char(24),char(104),char(35),char(75), -char(81),char(88),char(35),char(32),char(69),char(32),char(100),char(176),char(64),char(80), -char(88),char(124),char(89),char(104),char(138),char(96),char(89),char(68),char(45),char(44), -char(176),char(0),char(22),char(176),char(2),char(37),char(176),char(2),char(37),char(1), -char(176),char(1),char(35),char(62),char(0),char(176),char(2),char(35),char(62),char(177), -char(1),char(2),char(6),char(12),char(176),char(10),char(35),char(101),char(66),char(176), -char(11),char(35),char(66),char(1),char(176),char(1),char(35),char(63),char(0),char(176), -char(2),char(35),char(63),char(177),char(1),char(2),char(6),char(12),char(176),char(6), -char(35),char(101),char(66),char(176),char(7),char(35),char(66),char(176),char(1),char(22), -char(1),char(45),char(44),char(176),char(128),char(176),char(2),char(67),char(80),char(176), -char(1),char(176),char(2),char(67),char(84),char(91),char(88),char(33),char(35),char(16), -char(176),char(32),char(26),char(201),char(27),char(138),char(16),char(237),char(89),char(45), -char(44),char(176),char(89),char(43),char(45),char(44),char(138),char(16),char(229),char(45), -char(64),char(153),char(9),char(33),char(72),char(32),char(85),char(32),char(1),char(30), -char(85),char(31),char(72),char(3),char(85),char(31),char(30),char(1),char(15),char(30), -char(63),char(30),char(175),char(30),char(3),char(77),char(75),char(38),char(31),char(76), -char(75),char(51),char(31),char(75),char(70),char(37),char(31),char(38),char(52),char(16), -char(85),char(37),char(51),char(36),char(85),char(25),char(19),char(255),char(31),char(7), -char(4),char(255),char(31),char(6),char(3),char(255),char(31),char(74),char(73),char(51), -char(31),char(73),char(70),char(37),char(31),char(19),char(51),char(18),char(85),char(5), -char(1),char(3),char(85),char(4),char(51),char(3),char(85),char(31),char(3),char(1), -char(15),char(3),char(63),char(3),char(175),char(3),char(3),char(71),char(70),char(25), -char(31),char(235),char(70),char(1),char(35),char(51),char(34),char(85),char(28),char(51), -char(27),char(85),char(22),char(51),char(21),char(85),char(17),char(1),char(15),char(85), -char(16),char(51),char(15),char(85),char(15),char(15),char(79),char(15),char(2),char(31), -char(15),char(207),char(15),char(2),char(15),char(15),char(255),char(15),char(2),char(6), -char(2),char(1),char(0),char(85),char(1),char(51),char(0),char(85),char(111),char(0), -char(127),char(0),char(175),char(0),char(239),char(0),char(4),char(16),char(0),char(1), -char(128),char(22),char(1),char(5),char(1),char(184),char(1),char(144),char(177),char(84), -char(83),char(43),char(43),char(75),char(184),char(7),char(255),char(82),char(75),char(176), -char(9),char(80),char(91),char(176),char(1),char(136),char(176),char(37),char(83),char(176), -char(1),char(136),char(176),char(64),char(81),char(90),char(176),char(6),char(136),char(176), -char(0),char(85),char(90),char(91),char(88),char(177),char(1),char(1),char(142),char(89), -char(133),char(141),char(141),char(0),char(66),char(29),char(75),char(176),char(50),char(83), -char(88),char(176),char(32),char(29),char(89),char(75),char(176),char(100),char(83),char(88), -char(176),char(16),char(29),char(177),char(22),char(0),char(66),char(89),char(115),char(115), -char(43),char(43),char(94),char(115),char(116),char(117),char(43),char(43),char(43),char(43), -char(43),char(116),char(43),char(115),char(116),char(43),char(43),char(43),char(43),char(43), -char(43),char(43),char(43),char(43),char(43),char(43),char(43),char(43),char(115),char(116), -char(43),char(43),char(43),char(24),char(94),char(0),char(0),char(0),char(6),char(20), -char(0),char(23),char(0),char(78),char(5),char(182),char(0),char(23),char(0),char(117), -char(5),char(182),char(5),char(205),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(4),char(72), -char(0),char(20),char(0),char(145),char(0),char(0),char(255),char(236),char(0),char(0), -char(0),char(0),char(255),char(236),char(0),char(0),char(0),char(0),char(255),char(236), -char(0),char(0),char(254),char(20),char(255),char(236),char(0),char(0),char(5),char(182), -char(0),char(19),char(252),char(148),char(255),char(237),char(254),char(133),char(255),char(234), -char(254),char(169),char(255),char(236),char(0),char(24),char(254),char(188),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(8),char(0),char(0),char(0),char(0),char(0),char(0),char(139), -char(0),char(129),char(0),char(221),char(0),char(152),char(0),char(143),char(0),char(142), -char(0),char(153),char(0),char(136),char(0),char(129),char(1),char(15),char(0),char(138), -char(0),char(0),char(0),char(0),char(0),char(31),char(0),char(31),char(0),char(31), -char(0),char(31),char(0),char(81),char(0),char(119),char(0),char(255),char(1),char(123), -char(1),char(236),char(2),char(106),char(2),char(131),char(2),char(174),char(2),char(217), -char(3),char(21),char(3),char(65),char(3),char(95),char(3),char(116),char(3),char(150), -char(3),char(175),char(3),char(241),char(4),char(26),char(4),char(91),char(4),char(185), -char(4),char(251),char(5),char(70),char(5),char(163),char(5),char(197),char(6),char(52), -char(6),char(145),char(6),char(199),char(6),char(251),char(7),char(27),char(7),char(68), -char(7),char(100),char(7),char(187),char(8),char(65),char(8),char(128),char(8),char(219), -char(9),char(25),char(9),char(85),char(9),char(138),char(9),char(184),char(10),char(8), -char(10),char(57),char(10),char(108),char(10),char(148),char(10),char(195),char(10),char(225), -char(11),char(31),char(11),char(86),char(11),char(156),char(11),char(217),char(12),char(44), -char(12),char(121),char(12),char(204),char(12),char(240),char(13),char(36),char(13),char(75), -char(13),char(143),char(13),char(191),char(13),char(230),char(14),char(18),char(14),char(54), -char(14),char(79),char(14),char(114),char(14),char(147),char(14),char(169),char(14),char(200), -char(15),char(36),char(15),char(121),char(15),char(180),char(16),char(7),char(16),char(84), -char(16),char(148),char(17),char(40),char(17),char(102),char(17),char(148),char(17),char(210), -char(18),char(16),char(18),char(39),char(18),char(127),char(18),char(185),char(18),char(250), -char(19),char(79),char(19),char(163),char(19),char(214),char(20),char(40),char(20),char(104), -char(20),char(165),char(20),char(204),char(21),char(23),char(21),char(71),char(21),char(128), -char(21),char(172),char(21),char(238),char(22),char(6),char(22),char(75),char(22),char(133), -char(22),char(133),char(22),char(182),char(23),char(1),char(23),char(83),char(23),char(161), -char(23),char(245),char(24),char(26),char(24),char(149),char(24),char(203),char(25),char(71), -char(25),char(148),char(25),char(207),char(25),char(237),char(25),char(245),char(26),char(127), -char(26),char(149),char(26),char(205),char(26),char(217),char(27),char(19),char(27),char(99), -char(27),char(130),char(27),char(193),char(27),char(241),char(28),char(19),char(28),char(69), -char(28),char(108),char(28),char(165),char(28),char(221),char(28),char(243),char(29),char(8), -char(29),char(30),char(29),char(123),char(29),char(140),char(29),char(157),char(29),char(174), -char(29),char(191),char(29),char(209),char(29),char(221),char(30),char(43),char(30),char(55), -char(30),char(72),char(30),char(89),char(30),char(106),char(30),char(124),char(30),char(141), -char(30),char(158),char(30),char(175),char(30),char(193),char(31),char(25),char(31),char(42), -char(31),char(59),char(31),char(76),char(31),char(93),char(31),char(110),char(31),char(128), -char(31),char(174),char(32),char(25),char(32),char(42),char(32),char(59),char(32),char(76), -char(32),char(94),char(32),char(111),char(32),char(177),char(33),char(24),char(33),char(40), -char(33),char(56),char(33),char(72),char(33),char(88),char(33),char(105),char(33),char(122), -char(34),char(5),char(34),char(17),char(34),char(33),char(34),char(49),char(34),char(65), -char(34),char(82),char(34),char(99),char(34),char(116),char(34),char(133),char(34),char(151), -char(34),char(255),char(35),char(15),char(35),char(31),char(35),char(47),char(35),char(63), -char(35),char(79),char(35),char(96),char(35),char(166),char(36),char(12),char(36),char(28), -char(36),char(44),char(36),char(60),char(36),char(77),char(36),char(93),char(36),char(180), -char(36),char(197),char(36),char(214),char(36),char(230),char(36),char(247),char(37),char(7), -char(37),char(19),char(37),char(31),char(37),char(48),char(37),char(64),char(37),char(81), -char(37),char(97),char(37),char(114),char(37),char(131),char(37),char(148),char(37),char(164), -char(37),char(181),char(37),char(198),char(37),char(206),char(38),char(58),char(38),char(75), -char(38),char(91),char(38),char(108),char(38),char(124),char(38),char(141),char(38),char(158), -char(38),char(170),char(38),char(182),char(38),char(199),char(38),char(215),char(38),char(232), -char(38),char(248),char(39),char(9),char(39),char(25),char(39),char(42),char(39),char(59), -char(39),char(71),char(39),char(87),char(39),char(104),char(39),char(121),char(39),char(201), -char(40),char(34),char(40),char(51),char(40),char(68),char(40),char(85),char(40),char(102), -char(40),char(119),char(40),char(136),char(40),char(147),char(40),char(158),char(40),char(175), -char(40),char(198),char(40),char(210),char(40),char(222),char(40),char(239),char(41),char(0), -char(41),char(12),char(41),char(23),char(41),char(76),char(41),char(93),char(41),char(110), -char(41),char(121),char(41),char(133),char(41),char(150),char(41),char(166),char(41),char(178), -char(41),char(190),char(41),char(248),char(42),char(45),char(42),char(62),char(42),char(78), -char(42),char(90),char(42),char(101),char(42),char(118),char(42),char(134),char(42),char(151), -char(42),char(222),char(43),char(39),char(43),char(56),char(43),char(72),char(43),char(89), -char(43),char(105),char(43),char(123),char(43),char(140),char(43),char(239),char(44),char(105), -char(44),char(122),char(44),char(138),char(44),char(149),char(44),char(161),char(44),char(178), -char(44),char(195),char(44),char(212),char(44),char(228),char(44),char(245),char(45),char(5), -char(45),char(17),char(45),char(29),char(45),char(46),char(45),char(62),char(45),char(73), -char(45),char(84),char(45),char(101),char(45),char(117),char(45),char(178),char(46),char(4), -char(46),char(21),char(46),char(37),char(46),char(54),char(46),char(70),char(46),char(87), -char(46),char(103),char(46),char(121),char(46),char(138),char(46),char(156),char(46),char(173), -char(46),char(185),char(46),char(197),char(46),char(214),char(46),char(231),char(46),char(248), -char(47),char(8),char(47),char(26),char(47),char(43),char(47),char(59),char(47),char(76), -char(47),char(93),char(47),char(110),char(47),char(126),char(47),char(165),char(47),char(248), -char(48),char(119),char(49),char(22),char(49),char(39),char(49),char(56),char(49),char(73), -char(49),char(89),char(49),char(100),char(49),char(111),char(49),char(152),char(49),char(193), -char(49),char(215),char(49),char(255),char(50),char(31),char(50),char(84),char(50),char(123), -char(50),char(180),char(50),char(230),char(51),char(5),char(51),char(78),char(51),char(95), -char(51),char(103),char(51),char(120),char(51),char(138),char(51),char(156),char(51),char(173), -char(51),char(191),char(51),char(208),char(51),char(227),char(51),char(235),char(51),char(243), -char(52),char(18),char(52),char(26),char(52),char(34),char(52),char(42),char(52),char(50), -char(52),char(139),char(52),char(147),char(52),char(155),char(52),char(193),char(52),char(201), -char(52),char(209),char(53),char(6),char(53),char(14),char(53),char(50),char(53),char(58), -char(53),char(113),char(53),char(121),char(53),char(129),char(53),char(232),char(53),char(240), -char(54),char(60),char(54),char(144),char(54),char(162),char(54),char(180),char(54),char(196), -char(54),char(212),char(54),char(228),char(54),char(245),char(55),char(7),char(55),char(107), -char(55),char(208),char(56),char(6),char(56),char(103),char(56),char(197),char(57),char(18), -char(57),char(76),char(57),char(166),char(57),char(210),char(57),char(218),char(58),char(44), -char(58),char(52),char(58),char(95),char(58),char(202),char(58),char(210),char(59),char(16), -char(59),char(92),char(59),char(168),char(59),char(237),char(60),char(37),char(60),char(93), -char(60),char(186),char(61),char(16),char(61),char(95),char(61),char(185),char(61),char(203), -char(61),char(220),char(61),char(236),char(61),char(252),char(62),char(13),char(62),char(31), -char(62),char(111),char(62),char(128),char(62),char(202),char(62),char(210),char(62),char(218), -char(62),char(236),char(62),char(244),char(63),char(83),char(63),char(166),char(63),char(229), -char(63),char(246),char(64),char(7),char(64),char(55),char(64),char(63),char(64),char(134), -char(64),char(142),char(64),char(150),char(64),char(223),char(64),char(231),char(65),char(44), -char(65),char(137),char(65),char(193),char(65),char(210),char(66),char(1),char(66),char(60), -char(66),char(68),char(66),char(76),char(66),char(84),char(66),char(92),char(66),char(100), -char(66),char(108),char(66),char(116),char(66),char(179),char(66),char(187),char(66),char(195), -char(66),char(244),char(67),char(43),char(67),char(91),char(67),char(149),char(67),char(219), -char(68),char(35),char(68),char(97),char(68),char(175),char(69),char(15),char(69),char(86), -char(69),char(94),char(69),char(186),char(70),char(21),char(70),char(52),char(70),char(124), -char(70),char(132),char(70),char(202),char(71),char(35),char(71),char(91),char(71),char(107), -char(71),char(155),char(71),char(209),char(72),char(20),char(72),char(73),char(72),char(81), -char(72),char(117),char(72),char(125),char(72),char(133),char(72),char(170),char(72),char(178), -char(73),char(19),char(73),char(27),char(73),char(76),char(73),char(131),char(73),char(180), -char(73),char(239),char(74),char(52),char(74),char(125),char(74),char(184),char(75),char(8), -char(75),char(101),char(75),char(169),char(75),char(186),char(76),char(37),char(76),char(53), -char(76),char(131),char(76),char(139),char(76),char(147),char(76),char(165),char(76),char(173), -char(77),char(6),char(77),char(88),char(77),char(96),char(77),char(112),char(77),char(128), -char(77),char(177),char(77),char(214),char(77),char(253),char(78),char(14),char(78),char(30), -char(78),char(47),char(78),char(64),char(78),char(82),char(78),char(100),char(78),char(117), -char(78),char(134),char(78),char(155),char(78),char(176),char(78),char(184),char(78),char(218), -char(78),char(247),char(79),char(21),char(79),char(29),char(79),char(58),char(79),char(105), -char(79),char(154),char(79),char(180),char(79),char(242),char(80),char(90),char(80),char(122), -char(80),char(138),char(81),char(36),char(81),char(44),char(81),char(52),char(81),char(87), -char(81),char(123),char(81),char(135),char(81),char(160),char(81),char(211),char(82),char(24), -char(82),char(134),char(82),char(248),char(83),char(110),char(83),char(212),char(84),char(44), -char(84),char(160),char(84),char(244),char(84),char(252),char(85),char(75),char(85),char(98), -char(85),char(121),char(85),char(144),char(85),char(167),char(86),char(10),char(86),char(62), -char(86),char(99),char(86),char(151),char(86),char(174),char(86),char(210),char(87),char(50), -char(87),char(98),char(87),char(227),char(88),char(44),char(88),char(62),char(88),char(80), -char(88),char(125),char(88),char(137),char(88),char(149),char(88),char(188),char(88),char(227), -char(89),char(2),char(89),char(33),char(89),char(64),char(89),char(117),char(89),char(183), -char(89),char(252),char(90),char(77),char(90),char(110),char(90),char(211),char(91),char(39), -char(91),char(39),char(91),char(39),char(91),char(39),char(91),char(39),char(91),char(39), -char(91),char(39),char(91),char(39),char(91),char(39),char(91),char(39),char(91),char(39), -char(91),char(39),char(91),char(39),char(91),char(39),char(92),char(113),char(92),char(204), -char(92),char(221),char(92),char(229),char(93),char(108),char(93),char(167),char(94),char(11), -char(94),char(28),char(94),char(45),char(94),char(57),char(94),char(69),char(94),char(87), -char(94),char(140),char(94),char(195),char(94),char(211),char(94),char(227),char(95),char(64), -char(95),char(151),char(95),char(224),char(96),char(49),char(96),char(58),char(96),char(67), -char(96),char(76),char(96),char(122),char(96),char(153),char(96),char(170),char(96),char(187), -char(96),char(203),char(96),char(219),char(97),char(78),char(97),char(153),char(97),char(237), -char(98),char(59),char(98),char(155),char(98),char(254),char(99),char(63),char(99),char(128), -char(99),char(214),char(100),char(44),char(100),char(143),char(100),char(244),char(101),char(105), -char(101),char(224),char(102),char(140),char(103),char(48),char(103),char(56),char(103),char(64), -char(103),char(157),char(103),char(246),char(104),char(47),char(104),char(103),char(104),char(121), -char(104),char(139),char(105),char(1),char(105),char(13),char(105),char(128),char(105),char(243), -char(106),char(157),char(107),char(59),char(107),char(209),char(108),char(58),char(108),char(125), -char(108),char(191),char(109),char(3),char(109),char(51),char(109),char(96),char(109),char(134), -char(109),char(172),char(110),char(144),char(111),char(27),char(111),char(129),char(111),char(223), -char(112),char(49),char(112),char(130),char(112),char(215),char(113),char(67),char(113),char(123), -char(113),char(180),char(114),char(6),char(114),char(85),char(114),char(168),char(114),char(251), -char(115),char(7),char(115),char(19),char(115),char(80),char(115),char(140),char(115),char(205), -char(116),char(16),char(116),char(88),char(116),char(172),char(116),char(230),char(117),char(30), -char(117),char(93),char(117),char(162),char(117),char(221),char(118),char(29),char(118),char(115), -char(118),char(198),char(119),char(66),char(119),char(185),char(119),char(197),char(119),char(209), -char(120),char(2),char(120),char(52),char(120),char(60),char(120),char(111),char(120),char(173), -char(120),char(241),char(121),char(48),char(121),char(113),char(121),char(174),char(121),char(236), -char(122),char(48),char(122),char(115),char(122),char(191),char(123),char(11),char(123),char(67), -char(123),char(122),char(123),char(232),char(124),char(75),char(124),char(193),char(125),char(45), -char(125),char(53),char(125),char(70),char(125),char(87),char(125),char(172),char(125),char(252), -char(126),char(68),char(126),char(135),char(126),char(204),char(127),char(21),char(127),char(85), -char(127),char(150),char(127),char(218),char(128),char(30),char(128),char(111),char(128),char(189), -char(128),char(197),char(128),char(214),char(128),char(230),char(128),char(248),char(129),char(9), -char(129),char(17),char(129),char(25),char(129),char(42),char(129),char(58),char(129),char(139), -char(129),char(218),char(129),char(236),char(129),char(253),char(130),char(15),char(130),char(33), -char(130),char(51),char(130),char(68),char(130),char(144),char(130),char(218),char(130),char(235), -char(130),char(251),char(131),char(13),char(131),char(30),char(131),char(48),char(131),char(65), -char(131),char(73),char(131),char(81),char(131),char(99),char(131),char(116),char(131),char(134), -char(131),char(151),char(131),char(168),char(131),char(184),char(131),char(202),char(131),char(219), -char(131),char(237),char(131),char(254),char(132),char(16),char(132),char(33),char(132),char(76), -char(132),char(119),char(132),char(137),char(132),char(155),char(132),char(167),char(132),char(178), -char(132),char(190),char(132),char(202),char(133),char(16),char(133),char(86),char(133),char(148), -char(133),char(156),char(133),char(246),char(134),char(100),char(134),char(201),char(135),char(39), -char(135),char(129),char(135),char(212),char(136),char(43),char(136),char(121),char(136),char(196), -char(137),char(19),char(137),char(102),char(137),char(176),char(137),char(239),char(138),char(45), -char(138),char(138),char(138),char(146),char(138),char(158),char(138),char(170),char(138),char(182), -char(138),char(194),char(138),char(211),char(138),char(228),char(138),char(246),char(139),char(8), -char(139),char(26),char(139),char(44),char(139),char(62),char(139),char(80),char(139),char(98), -char(139),char(116),char(139),char(137),char(139),char(157),char(139),char(175),char(139),char(193), -char(139),char(211),char(139),char(229),char(139),char(247),char(140),char(9),char(140),char(27), -char(140),char(45),char(140),char(66),char(140),char(86),char(140),char(98),char(140),char(110), -char(140),char(127),char(140),char(144),char(140),char(161),char(140),char(177),char(140),char(195), -char(140),char(213),char(140),char(231),char(140),char(249),char(141),char(11),char(141),char(29), -char(141),char(47),char(141),char(65),char(141),char(86),char(141),char(106),char(141),char(123), -char(141),char(140),char(141),char(152),char(141),char(164),char(141),char(176),char(141),char(188), -char(141),char(205),char(141),char(222),char(141),char(240),char(142),char(2),char(142),char(20), -char(142),char(38),char(142),char(56),char(142),char(74),char(142),char(92),char(142),char(110), -char(142),char(131),char(142),char(151),char(142),char(168),char(142),char(184),char(142),char(201), -char(142),char(217),char(142),char(234),char(142),char(251),char(143),char(12),char(143),char(28), -char(143),char(40),char(143),char(52),char(143),char(64),char(143),char(76),char(143),char(93), -char(143),char(110),char(143),char(127),char(143),char(143),char(143),char(160),char(143),char(176), -char(143),char(193),char(143),char(210),char(143),char(227),char(143),char(243),char(143),char(255), -char(144),char(11),char(144),char(23),char(144),char(35),char(144),char(52),char(144),char(69), -char(144),char(86),char(144),char(102),char(144),char(114),char(144),char(166),char(144),char(225), -char(145),char(29),char(145),char(106),char(145),char(194),char(145),char(250),char(146),char(50), -char(146),char(123),char(146),char(205),char(146),char(245),char(147),char(24),char(147),char(59), -char(147),char(68),char(147),char(131),char(147),char(173),char(147),char(238),char(148),char(78), -char(148),char(147),char(148),char(222),char(148),char(230),char(149),char(9),char(149),char(17), -char(149),char(110),char(149),char(122),char(149),char(246),char(150),char(2),char(150),char(14), -char(150),char(113),char(150),char(129),char(150),char(145),char(150),char(162),char(150),char(178), -char(150),char(199),char(150),char(216),char(150),char(233),char(150),char(250),char(151),char(12), -char(151),char(29),char(151),char(46),char(151),char(63),char(151),char(74),char(151),char(91), -char(151),char(103),char(151),char(121),char(151),char(129),char(151),char(147),char(151),char(155), -char(151),char(173),char(151),char(181),char(151),char(189),char(151),char(206),char(151),char(218), -char(0),char(0),char(0),char(2),char(0),char(193),char(0),char(0),char(4),char(10), -char(5),char(182),char(0),char(3),char(0),char(7),char(0),char(21),char(183),char(4), -char(3),char(5),char(2),char(4),char(3),char(7),char(0),char(0),char(47),char(50), -char(47),char(51),char(1),char(47),char(51),char(47),char(51),char(49),char(48),char(19), -char(33),char(17),char(33),char(55),char(33),char(17),char(33),char(193),char(3),char(73), -char(252),char(183),char(104),char(2),char(121),char(253),char(135),char(5),char(182),char(250), -char(74),char(104),char(4),char(230),char(0),char(2),char(0),char(152),char(255),char(227), -char(1),char(137),char(5),char(182),char(0),char(3),char(0),char(14),char(0),char(43), -char(64),char(20),char(3),char(9),char(9),char(2),char(4),char(4),char(15),char(16), -char(1),char(1),char(12),char(2),char(12),char(6),char(79),char(89),char(12),char(22), -char(2),char(3),char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(17),char(18),char(1),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(1),char(35),char(3),char(51),char(3),char(52),char(51), -char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(1),char(70), -char(105),char(51),char(207),char(225),char(120),char(58),char(63),char(64),char(57),char(52), -char(68),char(1),char(147),char(4),char(35),char(250),char(180),char(136),char(70),char(66), -char(64),char(71),char(63),char(0),char(0),char(2),char(0),char(133),char(3),char(166), -char(2),char(176),char(5),char(182),char(0),char(3),char(0),char(7),char(0),char(31), -char(64),char(13),char(0),char(3),char(7),char(4),char(3),char(4),char(8),char(9), -char(6),char(2),char(7),char(3),char(3),char(0),char(63),char(51),char(205),char(50), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(3),char(35),char(3),char(33),char(3),char(35),char(3),char(1), -char(63),char(40),char(105),char(41),char(2),char(43),char(41),char(104),char(41),char(5), -char(182),char(253),char(240),char(2),char(16),char(253),char(240),char(2),char(16),char(0), -char(0),char(2),char(0),char(51),char(0),char(0),char(4),char(246),char(5),char(182), -char(0),char(27),char(0),char(31),char(0),char(153),char(64),char(85),char(8),char(31), -char(28),char(21),char(4),char(20),char(9),char(17),char(12),char(12),char(9),char(18), -char(15),char(14),char(11),char(4),char(10),char(19),char(19),char(20),char(22),char(29), -char(30),char(7),char(4),char(6),char(23),char(4),char(1),char(0),char(25),char(4), -char(24),char(5),char(5),char(6),char(20),char(6),char(10),char(33),char(3),char(26), -char(23),char(3),char(24),char(10),char(24),char(32),char(33),char(8),char(4),char(12), -char(13),char(12),char(78),char(89),char(28),char(1),char(13),char(31),char(0),char(16), -char(17),char(16),char(78),char(89),char(25),char(21),char(17),char(79),char(13),char(1), -char(79),char(17),char(1),char(13),char(17),char(13),char(17),char(5),char(23),char(19), -char(3),char(10),char(5),char(0),char(47),char(51),char(63),char(51),char(18),char(57), -char(57),char(47),char(47),char(93),char(93),char(17),char(51),char(51),char(43),char(17), -char(0),char(51),char(51),char(17),char(51),char(51),char(43),char(17),char(0),char(51), -char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(23),char(51),char(17), -char(18),char(57),char(57),char(17),char(51),char(17),char(18),char(23),char(57),char(17), -char(18),char(23),char(57),char(17),char(51),char(17),char(18),char(23),char(57),char(50), -char(50),char(17),char(51),char(17),char(18),char(23),char(57),char(49),char(48),char(1), -char(3),char(33),char(21),char(33),char(3),char(35),char(19),char(33),char(3),char(35), -char(19),char(33),char(53),char(33),char(19),char(33),char(53),char(33),char(19),char(51), -char(3),char(33),char(19),char(51),char(3),char(33),char(21),char(1),char(33),char(19), -char(33),char(3),char(213),char(66),char(1),char(27),char(254),char(205),char(84),char(137), -char(84),char(254),char(209),char(82),char(136),char(80),char(254),char(250),char(1),char(31), -char(68),char(254),char(235),char(1),char(43),char(82),char(139),char(82),char(1),char(49), -char(84),char(134),char(84),char(1),char(8),char(252),char(229),char(1),char(47),char(66), -char(254),char(209),char(3),char(131),char(254),char(172),char(129),char(254),char(82),char(1), -char(174),char(254),char(82),char(1),char(174),char(129),char(1),char(84),char(127),char(1), -char(180),char(254),char(76),char(1),char(180),char(254),char(76),char(127),char(254),char(172), -char(1),char(84),char(0),char(3),char(0),char(131),char(255),char(137),char(4),char(12), -char(6),char(18),char(0),char(32),char(0),char(38),char(0),char(45),char(0),char(102), -char(64),char(53),char(39),char(17),char(37),char(29),char(23),char(4),char(4),char(42), -char(20),char(13),char(5),char(33),char(0),char(0),char(25),char(5),char(17),char(9), -char(5),char(46),char(47),char(37),char(13),char(6),char(13),char(77),char(89),char(3), -char(6),char(36),char(14),char(42),char(14),char(76),char(89),char(29),char(42),char(43), -char(28),char(20),char(28),char(77),char(89),char(23),char(42),char(20),char(6),char(20), -char(6),char(20),char(5),char(22),char(5),char(0),char(47),char(47),char(18),char(57), -char(57),char(47),char(47),char(18),char(57),char(50),char(43),char(17),char(0),char(51), -char(17),char(51),char(43),char(17),char(0),char(51),char(17),char(51),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(51),char(51),char(51),char(17),char(51),char(51),char(51),char(17),char(51), -char(49),char(48),char(1),char(20),char(6),char(7),char(21),char(35),char(53),char(34), -char(38),char(39),char(53),char(22),char(22),char(51),char(17),char(38),char(38),char(53), -char(52),char(54),char(55),char(53),char(51),char(21),char(22),char(23),char(7),char(38), -char(39),char(17),char(30),char(2),char(7),char(52),char(38),char(39),char(17),char(54), -char(1),char(20),char(22),char(23),char(17),char(6),char(6),char(4),char(12),char(204), -char(183),char(129),char(112),char(210),char(67),char(83),char(217),char(89),char(205),char(165), -char(203),char(167),char(129),char(184),char(171),char(52),char(149),char(154),char(157),char(156), -char(74),char(170),char(89),char(128),char(217),char(253),char(221),char(90),char(111),char(99), -char(102),char(1),char(193),char(136),char(177),char(23),char(232),char(223),char(35),char(31), -char(156),char(37),char(47),char(1),char(184),char(65),char(172),char(136),char(131),char(168), -char(18),char(182),char(180),char(5),char(69),char(131),char(59),char(11),char(254),char(78), -char(50),char(95),char(123),char(101),char(72),char(89),char(44),char(254),char(123),char(30), -char(3),char(7),char(76),char(92),char(41),char(1),char(131),char(16),char(93),char(0), -char(0),char(5),char(0),char(104),char(255),char(236),char(6),char(45),char(5),char(203), -char(0),char(9),char(0),char(21),char(0),char(33),char(0),char(45),char(0),char(49), -char(0),char(69),char(64),char(36),char(0),char(16),char(5),char(10),char(22),char(40), -char(28),char(34),char(34),char(46),char(40),char(10),char(48),char(16),char(6),char(50), -char(51),char(3),char(13),char(31),char(43),char(13),char(43),char(13),char(43),char(48), -char(49),char(6),char(48),char(24),char(25),char(37),char(25),char(7),char(19),char(7), -char(0),char(63),char(51),char(63),char(51),char(63),char(63),char(18),char(57),char(57), -char(47),char(47),char(17),char(51),char(17),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(19),char(20),char(22),char(51),char(50),char(17),char(16),char(35),char(34), -char(6),char(5),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54), -char(51),char(50),char(22),char(1),char(20),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(6),char(5),char(20),char(6),char(35),char(34), -char(38),char(53),char(52),char(54),char(51),char(50),char(22),char(1),char(1),char(35), -char(1),char(242),char(74),char(83),char(164),char(164),char(83),char(74),char(1),char(202), -char(153),char(148),char(140),char(155),char(149),char(146),char(145),char(156),char(1),char(166), -char(74),char(84),char(84),char(80),char(80),char(84),char(84),char(74),char(1),char(203), -char(153),char(148),char(142),char(153),char(149),char(146),char(142),char(159),char(254),char(254), -char(252),char(213),char(147),char(3),char(43),char(4),char(2),char(170),char(170),char(1), -char(84),char(1),char(82),char(168),char(170),char(228),char(233),char(238),char(223),char(227), -char(230),char(238),char(252),char(219),char(171),char(169),char(167),char(173),char(171),char(165), -char(165),char(171),char(227),char(233),char(238),char(222),char(227),char(230),char(235),char(3), -char(32),char(250),char(74),char(5),char(182),char(0),char(0),char(3),char(0),char(113), -char(255),char(236),char(5),char(211),char(5),char(205),char(0),char(11),char(0),char(21), -char(0),char(53),char(0),char(81),char(64),char(48),char(19),char(22),char(0),char(29), -char(6),char(35),char(42),char(43),char(46),char(43),char(45),char(35),char(14),char(38), -char(25),char(29),char(22),char(9),char(54),char(55),char(51),char(12),char(73),char(89), -char(51),char(19),char(15),char(39),char(45),char(14),char(48),char(5),char(47),char(3), -char(25),char(38),char(3),char(42),char(42),char(32),char(47),char(18),char(32),char(9), -char(74),char(89),char(32),char(4),char(0),char(63),char(43),char(0),char(24),char(63), -char(18),char(57),char(47),char(23),char(57),char(18),char(23),char(57),char(63),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(22),char(23),char(54), -char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(19),char(50),char(55), -char(1),char(14),char(2),char(21),char(20),char(22),char(37),char(52),char(54),char(55), -char(46),char(2),char(53),char(52),char(54),char(51),char(50),char(22),char(21),char(20), -char(6),char(7),char(1),char(54),char(54),char(55),char(51),char(2),char(7),char(1), -char(35),char(39),char(6),char(6),char(35),char(34),char(38),char(1),char(158),char(72), -char(87),char(129),char(101),char(103),char(86),char(89),char(111),char(155),char(241),char(159), -char(254),char(75),char(111),char(92),char(44),char(155),char(254),char(185),char(139),char(180), -char(85),char(61),char(36),char(196),char(175),char(162),char(186),char(136),char(157),char(1), -char(151),char(56),char(67),char(23),char(168),char(68),char(137),char(1),char(43),char(229), -char(185),char(118),char(244),char(150),char(215),char(237),char(4),char(147),char(69),char(125), -char(88),char(75),char(127),char(83),char(77),char(97),char(96),char(251),char(157),char(154), -char(1),char(168),char(68),char(89),char(102),char(65),char(117),char(137),char(250),char(130), -char(200),char(102),char(95),char(98),char(106),char(57),char(150),char(168),char(167),char(149), -char(107),char(181),char(93),char(254),char(121),char(62),char(167),char(99),char(254),char(226), -char(148),char(254),char(221),char(178),char(106),char(92),char(212),char(0),char(0),char(1), -char(0),char(133),char(3),char(166),char(1),char(63),char(5),char(182),char(0),char(3), -char(0),char(20),char(183),char(0),char(3),char(3),char(4),char(5),char(2),char(3), -char(3),char(0),char(63),char(205),char(17),char(18),char(1),char(57),char(17),char(51), -char(49),char(48),char(1),char(3),char(35),char(3),char(1),char(63),char(40),char(105), -char(41),char(5),char(182),char(253),char(240),char(2),char(16),char(0),char(0),char(1), -char(0),char(82),char(254),char(188),char(2),char(33),char(5),char(182),char(0),char(13), -char(0),char(28),char(64),char(12),char(7),char(0),char(10),char(4),char(0),char(4), -char(14),char(15),char(11),char(39),char(3),char(3),char(0),char(63),char(63),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(19),char(16),char(18),char(55),char(51),char(6),char(2),char(21),char(20),char(18), -char(23),char(35),char(38),char(2),char(82),char(155),char(146),char(162),char(144),char(145), -char(148),char(139),char(160),char(147),char(154),char(2),char(49),char(1),char(9),char(1), -char(206),char(174),char(193),char(254),char(50),char(244),char(240),char(254),char(54),char(189), -char(170),char(1),char(198),char(0),char(0),char(1),char(0),char(61),char(254),char(188), -char(2),char(12),char(5),char(182),char(0),char(13),char(0),char(28),char(64),char(12), -char(4),char(10),char(7),char(0),char(10),char(0),char(14),char(15),char(10),char(3), -char(4),char(39),char(0),char(63),char(63),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(2),char(7), -char(35),char(54),char(18),char(53),char(52),char(2),char(39),char(51),char(22),char(18), -char(2),char(12),char(155),char(146),char(160),char(139),char(148),char(145),char(144),char(162), -char(147),char(154),char(2),char(49),char(254),char(249),char(254),char(58),char(168),char(188), -char(1),char(203),char(240),char(244),char(1),char(206),char(193),char(175),char(254),char(49), -char(0),char(1),char(0),char(86),char(2),char(127),char(4),char(14),char(6),char(20), -char(0),char(14),char(0),char(48),char(64),char(27),char(3),char(5),char(4),char(1), -char(7),char(13),char(10),char(9),char(11),char(9),char(15),char(16),char(4),char(10), -char(1),char(13),char(2),char(12),char(12),char(13),char(10),char(7),char(4),char(6), -char(8),char(14),char(0),char(0),char(63),char(196),char(50),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57), -char(49),char(48),char(1),char(3),char(37),char(23),char(5),char(19),char(7),char(3), -char(3),char(39),char(19),char(37),char(55),char(5),char(3),char(2),char(145),char(43), -char(1),char(142),char(26),char(254),char(131),char(248),char(172),char(176),char(160),char(176), -char(242),char(254),char(135),char(29),char(1),char(135),char(43),char(6),char(20),char(254), -char(117),char(111),char(182),char(31),char(254),char(186),char(94),char(1),char(106),char(254), -char(150),char(94),char(1),char(70),char(31),char(182),char(111),char(1),char(139),char(0), -char(0),char(1),char(0),char(104),char(0),char(227),char(4),char(41),char(4),char(195), -char(0),char(11),char(0),char(40),char(64),char(19),char(0),char(4),char(4),char(9), -char(5),char(5),char(12),char(13),char(3),char(7),char(8),char(7),char(80),char(89), -char(0),char(15),char(8),char(1),char(8),char(0),char(47),char(93),char(51),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(57),char(17),char(51),char(51), -char(17),char(51),char(49),char(48),char(1),char(33),char(21),char(33),char(17),char(35), -char(17),char(33),char(53),char(33),char(17),char(51),char(2),char(141),char(1),char(156), -char(254),char(100),char(139),char(254),char(102),char(1),char(154),char(139),char(3),char(23), -char(138),char(254),char(86),char(1),char(170),char(138),char(1),char(172),char(0),char(1), -char(0),char(63),char(254),char(248),char(1),char(109),char(0),char(238),char(0),char(8), -char(0),char(17),char(181),char(5),char(0),char(9),char(10),char(5),char(0),char(0), -char(47),char(205),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(37), -char(23),char(6),char(2),char(7),char(35),char(54),char(18),char(55),char(1),char(94), -char(15),char(26),char(98),char(53),char(125),char(27),char(65),char(13),char(238),char(23), -char(100),char(254),char(247),char(114),char(104),char(1),char(50),char(92),char(0),char(1), -char(0),char(84),char(1),char(217),char(2),char(63),char(2),char(113),char(0),char(3), -char(0),char(17),char(181),char(2),char(0),char(5),char(4),char(0),char(1),char(0), -char(47),char(51),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(19), -char(53),char(33),char(21),char(84),char(1),char(235),char(1),char(217),char(152),char(152), -char(0),char(1),char(0),char(152),char(255),char(227),char(1),char(137),char(0),char(242), -char(0),char(11),char(0),char(24),char(64),char(11),char(6),char(0),char(0),char(12), -char(13),char(9),char(3),char(79),char(89),char(9),char(22),char(0),char(63),char(43), -char(17),char(18),char(1),char(57),char(17),char(51),char(49),char(48),char(55),char(52), -char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38), -char(152),char(61),char(57),char(58),char(65),char(66),char(57),char(51),char(67),char(106), -char(67),char(69),char(69),char(67),char(65),char(70),char(63),char(0),char(0),char(1), -char(0),char(20),char(0),char(0),char(2),char(219),char(5),char(182),char(0),char(3), -char(0),char(19),char(183),char(2),char(0),char(4),char(5),char(3),char(3),char(2), -char(18),char(0),char(63),char(63),char(17),char(18),char(1),char(57),char(57),char(49), -char(48),char(1),char(1),char(35),char(1),char(2),char(219),char(253),char(223),char(166), -char(2),char(33),char(5),char(182),char(250),char(74),char(5),char(182),char(0),char(2), -char(0),char(102),char(255),char(236),char(4),char(45),char(5),char(205),char(0),char(11), -char(0),char(23),char(0),char(40),char(64),char(20),char(18),char(0),char(12),char(6), -char(0),char(6),char(25),char(24),char(9),char(21),char(75),char(89),char(9),char(7), -char(3),char(15),char(75),char(89),char(3),char(25),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(16),char(2),char(35),char(34),char(2), -char(17),char(16),char(18),char(51),char(50),char(18),char(1),char(16),char(18),char(51), -char(50),char(18),char(17),char(16),char(2),char(35),char(34),char(2),char(4),char(45), -char(239),char(246),char(236),char(246),char(238),char(244),char(238),char(247),char(252),char(225), -char(150),char(164),char(166),char(149),char(149),char(166),char(164),char(150),char(2),char(221), -char(254),char(133),char(254),char(138),char(1),char(127),char(1),char(114),char(1),char(126), -char(1),char(114),char(254),char(126),char(254),char(146),char(254),char(193),char(254),char(221), -char(1),char(39),char(1),char(59),char(1),char(59),char(1),char(37),char(254),char(223), -char(0),char(1),char(0),char(188),char(0),char(0),char(2),char(203),char(5),char(182), -char(0),char(10),char(0),char(36),char(64),char(16),char(9),char(0),char(1),char(8), -char(1),char(11),char(12),char(4),char(9),char(7),char(7),char(1),char(9),char(6), -char(1),char(24),char(0),char(63),char(63),char(18),char(57),char(47),char(18),char(57), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(51),char(49),char(48), -char(33),char(35),char(17),char(52),char(55),char(6),char(6),char(7),char(39),char(1), -char(51),char(2),char(203),char(162),char(8),char(21),char(52),char(212),char(88),char(1), -char(131),char(140),char(4),char(18),char(130),char(116),char(21),char(46),char(172),char(114), -char(1),char(43),char(0),char(1),char(0),char(100),char(0),char(0),char(4),char(37), -char(5),char(203),char(0),char(25),char(0),char(43),char(64),char(23),char(24),char(1), -char(7),char(19),char(0),char(19),char(14),char(1),char(4),char(26),char(27),char(16), -char(10),char(75),char(89),char(16),char(7),char(1),char(24),char(76),char(89),char(1), -char(24),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(33), -char(33),char(53),char(1),char(62),char(2),char(53),char(52),char(38),char(35),char(34), -char(6),char(7),char(39),char(54),char(51),char(50),char(22),char(21),char(20),char(2), -char(7),char(1),char(21),char(33),char(4),char(37),char(252),char(63),char(1),char(129), -char(176),char(112),char(56),char(142),char(126),char(91),char(163),char(100),char(88),char(202), -char(238),char(206),char(234),char(156),char(214),char(254),char(192),char(2),char(240),char(143), -char(1),char(131),char(178),char(152),char(144),char(83),char(117),char(137),char(60),char(79), -char(113),char(168),char(211),char(178),char(139),char(254),char(240),char(208),char(254),char(199), -char(8),char(0),char(0),char(1),char(0),char(94),char(255),char(236),char(4),char(27), -char(5),char(203),char(0),char(39),char(0),char(67),char(64),char(36),char(27),char(0), -char(19),char(7),char(7),char(0),char(3),char(22),char(34),char(13),char(6),char(40), -char(41),char(3),char(23),char(22),char(23),char(22),char(75),char(89),char(23),char(23), -char(10),char(37),char(37),char(30),char(75),char(89),char(37),char(7),char(10),char(17), -char(75),char(89),char(10),char(25),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18), -char(0),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(20),char(6),char(7),char(21),char(22),char(22), -char(21),char(20),char(4),char(33),char(34),char(38),char(39),char(53),char(22),char(22), -char(51),char(32),char(17),char(16),char(33),char(35),char(53),char(51),char(50),char(54), -char(53),char(52),char(38),char(35),char(34),char(6),char(7),char(39),char(54),char(54), -char(51),char(50),char(22),char(3),char(238),char(157),char(144),char(176),char(170),char(254), -char(222),char(254),char(245),char(116),char(193),char(91),char(95),char(215),char(96),char(1), -char(123),char(254),char(94),char(144),char(146),char(171),char(200),char(147),char(126),char(96), -char(170),char(109),char(84),char(90),char(235),char(130),char(213),char(236),char(4),char(94), -char(140),char(178),char(30),char(8),char(22),char(180),char(146),char(209),char(225),char(35), -char(44),char(158),char(47),char(49),char(1),char(41),char(1),char(10),char(143),char(151), -char(134),char(107),char(122),char(52),char(70),char(112),char(71),char(81),char(195),char(0), -char(0),char(2),char(0),char(43),char(0),char(0),char(4),char(106),char(5),char(190), -char(0),char(10),char(0),char(18),char(0),char(60),char(64),char(30),char(18),char(5), -char(9),char(2),char(2),char(11),char(7),char(3),char(0),char(3),char(5),char(3), -char(19),char(20),char(1),char(5),char(18),char(5),char(76),char(89),char(9),char(15), -char(7),char(18),char(18),char(3),char(7),char(6),char(3),char(24),char(0),char(63), -char(63),char(18),char(57),char(47),char(18),char(57),char(51),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(35),char(17),char(35), -char(17),char(33),char(53),char(1),char(51),char(17),char(51),char(33),char(17),char(52), -char(55),char(35),char(6),char(7),char(1),char(4),char(106),char(217),char(159),char(253), -char(57),char(2),char(182),char(176),char(217),char(254),char(136),char(10),char(8),char(48), -char(42),char(254),char(55),char(1),char(80),char(254),char(176),char(1),char(80),char(145), -char(3),char(221),char(252),char(41),char(1),char(230),char(143),char(180),char(96),char(63), -char(253),char(118),char(0),char(1),char(0),char(133),char(255),char(236),char(4),char(29), -char(5),char(182),char(0),char(26),char(0),char(58),char(64),char(31),char(15),char(3), -char(25),char(20),char(8),char(20),char(23),char(3),char(4),char(28),char(27),char(0), -char(17),char(75),char(89),char(0),char(0),char(6),char(21),char(21),char(24),char(76), -char(89),char(21),char(6),char(6),char(12),char(75),char(89),char(6),char(25),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(50),char(4),char(21),char(20),char(0), -char(35),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53), -char(16),char(33),char(34),char(7),char(39),char(19),char(33),char(21),char(33),char(3), -char(54),char(2),char(45),char(231),char(1),char(9),char(254),char(223),char(254),char(247), -char(130),char(70),char(208),char(101),char(176),char(195),char(254),char(137),char(95),char(159), -char(86),char(55),char(2),char(215),char(253),char(183),char(37),char(115),char(3),char(125), -char(229),char(199),char(227),char(254),char(254),char(79),char(160),char(45),char(51),char(166), -char(157),char(1),char(50),char(29),char(55),char(2),char(172),char(153),char(254),char(73), -char(23),char(0),char(0),char(2),char(0),char(117),char(255),char(236),char(4),char(47), -char(5),char(203),char(0),char(22),char(0),char(36),char(0),char(68),char(64),char(35), -char(26),char(17),char(11),char(33),char(33),char(0),char(0),char(6),char(17),char(3), -char(38),char(37),char(12),char(11),char(14),char(29),char(77),char(89),char(11),char(14), -char(14),char(20),char(3),char(20),char(23),char(75),char(89),char(20),char(25),char(3), -char(8),char(77),char(89),char(3),char(7),char(0),char(63),char(43),char(0),char(24), -char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(57),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(16),char(0),char(33), -char(50),char(23),char(21),char(38),char(35),char(34),char(2),char(3),char(51),char(54), -char(51),char(50),char(22),char(21),char(20),char(2),char(35),char(34),char(0),char(5), -char(50),char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(6),char(21), -char(20),char(22),char(22),char(117),char(1),char(79),char(1),char(72),char(113),char(65), -char(77),char(99),char(235),char(248),char(12),char(12),char(110),char(238),char(197),char(227), -char(249),char(212),char(227),char(254),char(246),char(1),char(235),char(142),char(157),char(146), -char(145),char(90),char(150),char(89),char(80),char(147),char(2),char(113),char(1),char(175), -char(1),char(171),char(19),char(143),char(25),char(254),char(219),char(254),char(198),char(172), -char(238),char(204),char(228),char(254),char(251),char(1),char(85),char(200),char(179),char(169), -char(145),char(166),char(74),char(130),char(70),char(103),char(178),char(104),char(0),char(1), -char(0),char(94),char(0),char(0),char(4),char(43),char(5),char(182),char(0),char(6), -char(0),char(31),char(64),char(16),char(1),char(5),char(5),char(0),char(2),char(3), -char(7),char(8),char(3),char(2),char(76),char(89),char(3),char(6),char(0),char(24), -char(0),char(63),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(49),char(48),char(33),char(1),char(33),char(53),char(33),char(21),char(1), -char(1),char(29),char(2),char(94),char(252),char(227),char(3),char(205),char(253),char(170), -char(5),char(29),char(153),char(133),char(250),char(207),char(0),char(3),char(0),char(104), -char(255),char(236),char(4),char(41),char(5),char(203),char(0),char(22),char(0),char(34), -char(0),char(46),char(0),char(77),char(64),char(41),char(23),char(15),char(38),char(20), -char(44),char(3),char(29),char(9),char(9),char(3),char(6),char(17),char(20),char(15), -char(6),char(47),char(48),char(6),char(17),char(41),char(32),char(41),char(32),char(75), -char(89),char(41),char(41),char(12),char(0),char(12),char(26),char(77),char(89),char(12), -char(25),char(0),char(35),char(77),char(89),char(0),char(7),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(0),char(57),char(57),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(50),char(22),char(21),char(20),char(6),char(7),char(22),char(22), -char(21),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(37),char(38), -char(38),char(53),char(52),char(54),char(3),char(20),char(22),char(51),char(50),char(54), -char(53),char(52),char(38),char(39),char(6),char(6),char(1),char(34),char(6),char(21), -char(20),char(22),char(23),char(54),char(54),char(53),char(52),char(38),char(2),char(72), -char(200),char(234),char(134),char(147),char(178),char(150),char(254),char(221),char(234),char(252), -char(1),char(50),char(138),char(120),char(235),char(119),char(167),char(151),char(149),char(166), -char(156),char(194),char(149),char(134),char(1),char(58),char(125),char(142),char(118),char(159), -char(143),char(119),char(145),char(5),char(203),char(186),char(164),char(108),char(178),char(73), -char(85),char(187),char(123),char(182),char(217),char(205),char(188),char(251),char(140),char(78), -char(181),char(112),char(159),char(189),char(251),char(166),char(120),char(134),char(140),char(122), -char(97),char(151),char(71),char(64),char(155),char(3),char(103),char(120),char(100),char(92), -char(132),char(66),char(60),char(138),char(92),char(101),char(119),char(0),char(0),char(2), -char(0),char(106),char(255),char(236),char(4),char(37),char(5),char(203),char(0),char(23), -char(0),char(37),char(0),char(65),char(64),char(34),char(27),char(17),char(34),char(10), -char(10),char(0),char(0),char(4),char(17),char(3),char(38),char(39),char(14),char(30), -char(77),char(89),char(11),char(20),char(14),char(14),char(2),char(20),char(20),char(24), -char(75),char(89),char(20),char(7),char(2),char(7),char(77),char(89),char(2),char(25), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0), -char(57),char(24),char(47),char(18),char(57),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(16),char(33),char(34),char(39),char(53),char(22),char(51),char(50),char(18),char(19), -char(35),char(6),char(6),char(35),char(34),char(38),char(53),char(52),char(18),char(51), -char(50),char(22),char(18),char(1),char(34),char(6),char(21),char(20),char(22),char(51), -char(50),char(54),char(54),char(53),char(52),char(38),char(38),char(4),char(37),char(253), -char(104),char(116),char(68),char(80),char(102),char(240),char(245),char(11),char(12),char(55), -char(182),char(114),char(194),char(228),char(255),char(208),char(149),char(223),char(120),char(254), -char(20),char(143),char(156),char(144),char(147),char(91),char(153),char(88),char(82),char(147), -char(3),char(70),char(252),char(166),char(20),char(143),char(26),char(1),char(41),char(1), -char(51),char(83),char(87),char(232),char(208),char(228),char(1),char(8),char(153),char(254), -char(219),char(1),char(48),char(184),char(164),char(144),char(165),char(74),char(128),char(70), -char(105),char(178),char(102),char(0),char(0),char(2),char(0),char(152),char(255),char(227), -char(1),char(137),char(4),char(100),char(0),char(11),char(0),char(21),char(0),char(40), -char(64),char(20),char(16),char(6),char(6),char(12),char(0),char(0),char(22),char(23), -char(14),char(19),char(79),char(89),char(14),char(16),char(9),char(3),char(79),char(89), -char(9),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48), -char(55),char(52),char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(35), -char(34),char(38),char(17),char(52),char(51),char(50),char(21),char(20),char(6),char(35), -char(34),char(38),char(152),char(61),char(57),char(58),char(65),char(66),char(57),char(51), -char(67),char(118),char(123),char(66),char(57),char(51),char(67),char(106),char(67),char(69), -char(69),char(67),char(65),char(70),char(63),char(3),char(187),char(135),char(135),char(65), -char(70),char(63),char(0),char(2),char(0),char(63),char(254),char(248),char(1),char(133), -char(4),char(100),char(0),char(8),char(0),char(18),char(0),char(34),char(64),char(16), -char(1),char(13),char(13),char(5),char(9),char(9),char(20),char(19),char(11),char(16), -char(79),char(89),char(11),char(16),char(5),char(0),char(0),char(47),char(205),char(63), -char(43),char(17),char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51), -char(49),char(48),char(37),char(23),char(6),char(2),char(7),char(35),char(54),char(18), -char(55),char(3),char(52),char(51),char(50),char(21),char(20),char(6),char(35),char(34), -char(38),char(1),char(94),char(15),char(26),char(98),char(53),char(125),char(27),char(65), -char(13),char(21),char(119),char(123),char(66),char(57),char(58),char(61),char(238),char(23), -char(100),char(254),char(247),char(114),char(104),char(1),char(50),char(92),char(2),char(239), -char(135),char(135),char(65),char(70),char(70),char(0),char(0),char(1),char(0),char(104), -char(0),char(242),char(4),char(41),char(4),char(217),char(0),char(6),char(0),char(21), -char(64),char(9),char(4),char(0),char(5),char(1),char(4),char(7),char(8),char(3), -char(0),char(0),char(47),char(47),char(17),char(18),char(1),char(23),char(57),char(49), -char(48),char(37),char(1),char(53),char(1),char(21),char(1),char(1),char(4),char(41), -char(252),char(63),char(3),char(193),char(252),char(242),char(3),char(14),char(242),char(1), -char(166),char(98),char(1),char(223),char(149),char(254),char(141),char(254),char(184),char(0), -char(0),char(2),char(0),char(119),char(1),char(193),char(4),char(25),char(3),char(227), -char(0),char(3),char(0),char(7),char(0),char(42),char(64),char(21),char(7),char(2), -char(4),char(0),char(2),char(0),char(9),char(8),char(4),char(5),char(80),char(89), -char(4),char(1),char(0),char(80),char(89),char(15),char(1),char(1),char(1),char(0), -char(47),char(93),char(43),char(0),char(24),char(47),char(43),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(53), -char(33),char(21),char(1),char(53),char(33),char(21),char(119),char(3),char(162),char(252), -char(94),char(3),char(162),char(3),char(90),char(137),char(137),char(254),char(103),char(137), -char(137),char(0),char(0),char(1),char(0),char(104),char(0),char(242),char(4),char(41), -char(4),char(217),char(0),char(6),char(0),char(21),char(64),char(9),char(5),char(1), -char(2),char(0),char(4),char(7),char(8),char(6),char(3),char(0),char(47),char(47), -char(17),char(18),char(1),char(23),char(57),char(49),char(48),char(19),char(1),char(1), -char(53),char(1),char(21),char(1),char(104),char(3),char(15),char(252),char(241),char(3), -char(193),char(252),char(63),char(1),char(137),char(1),char(70),char(1),char(117),char(149), -char(254),char(33),char(98),char(254),char(90),char(0),char(0),char(2),char(0),char(27), -char(255),char(227),char(3),char(57),char(5),char(203),char(0),char(27),char(0),char(38), -char(0),char(57),char(64),char(29),char(33),char(28),char(27),char(0),char(7),char(19), -char(19),char(0),char(28),char(14),char(4),char(39),char(40),char(0),char(0),char(36), -char(16),char(36),char(30),char(79),char(89),char(36),char(22),char(16),char(10),char(73), -char(89),char(16),char(4),char(0),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(24),char(47),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(53),char(52),char(54),char(55),char(54),char(54),char(53),char(52),char(38),char(35), -char(34),char(6),char(7),char(39),char(54),char(51),char(50),char(22),char(21),char(20), -char(6),char(6),char(7),char(6),char(6),char(21),char(21),char(3),char(52),char(51), -char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(1),char(33), -char(72),char(98),char(136),char(71),char(131),char(123),char(79),char(150),char(97),char(59), -char(189),char(206),char(191),char(212),char(39),char(76),char(126),char(101),char(65),char(178), -char(120),char(58),char(63),char(64),char(57),char(52),char(68),char(1),char(147),char(54), -char(117),char(151),char(84),char(115),char(116),char(82),char(102),char(111),char(37),char(49), -char(135),char(99),char(188),char(171),char(73),char(111),char(99),char(110),char(86),char(114), -char(95),char(33),char(254),char(215),char(136),char(70),char(66),char(64),char(71),char(63), -char(0),char(2),char(0),char(121),char(255),char(70),char(6),char(184),char(5),char(180), -char(0),char(53),char(0),char(63),char(0),char(69),char(64),char(34),char(35),char(46), -char(54),char(14),char(59),char(7),char(20),char(27),char(0),char(0),char(41),char(20), -char(14),char(46),char(5),char(64),char(65),char(24),char(56),char(56),char(4),char(61), -char(8),char(17),char(11),char(17),char(11),char(17),char(43),char(31),char(50),char(3), -char(38),char(43),char(0),char(47),char(51),char(63),char(51),char(18),char(57),char(57), -char(47),char(47),char(18),char(57),char(50),char(51),char(51),char(17),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(6),char(6),char(35), -char(34),char(38),char(39),char(35),char(6),char(6),char(35),char(34),char(38),char(53), -char(52),char(54),char(51),char(50),char(22),char(23),char(3),char(21),char(20),char(51), -char(50),char(54),char(53),char(52),char(2),char(36),char(35),char(34),char(4),char(2), -char(21),char(16),char(0),char(33),char(50),char(55),char(21),char(6),char(35),char(32), -char(0),char(17),char(16),char(18),char(36),char(33),char(50),char(4),char(18),char(1), -char(20),char(51),char(50),char(19),char(19),char(38),char(35),char(34),char(6),char(6), -char(184),char(88),char(160),char(104),char(86),char(118),char(11),char(8),char(40),char(149), -char(102),char(150),char(169),char(236),char(192),char(68),char(172),char(69),char(25),char(133), -char(91),char(114),char(148),char(254),char(239),char(177),char(223),char(254),char(182),char(174), -char(1),char(66),char(1),char(47),char(210),char(226),char(192),char(244),char(254),char(149), -char(254),char(111),char(214),char(1),char(140),char(1),char(0),char(215),char(1),char(79), -char(183),char(251),char(246),char(195),char(207),char(18),char(14),char(72),char(85),char(130), -char(147),char(2),char(217),char(142),char(236),char(130),char(104),char(81),char(87),char(98), -char(205),char(176),char(204),char(255),char(25),char(22),char(254),char(42),char(22),char(178), -char(215),char(172),char(181),char(1),char(16),char(147),char(185),char(254),char(169),char(225), -char(254),char(207),char(254),char(184),char(86),char(133),char(84),char(1),char(143),char(1), -char(102),char(1),char(4),char(1),char(150),char(223),char(181),char(254),char(179),char(254), -char(164),char(254),char(1),char(57),char(1),char(5),char(20),char(180),char(0),char(2), -char(0),char(0),char(0),char(0),char(5),char(16),char(5),char(188),char(0),char(7), -char(0),char(14),char(0),char(57),char(64),char(30),char(2),char(14),char(11),char(8), -char(1),char(5),char(0),char(3),char(0),char(7),char(3),char(4),char(7),char(4), -char(16),char(15),char(14),char(2),char(73),char(89),char(11),char(5),char(14),char(14), -char(4),char(5),char(3),char(0),char(4),char(18),char(0),char(63),char(51),char(63), -char(18),char(57),char(47),char(18),char(57),char(43),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(17),char(18),char(23),char(57),char(49), -char(48),char(33),char(3),char(33),char(3),char(35),char(1),char(51),char(1),char(1), -char(3),char(38),char(39),char(6),char(7),char(3),char(4),char(96),char(182),char(253), -char(182),char(180),char(172),char(2),char(66),char(143),char(2),char(63),char(254),char(101), -char(170),char(33),char(35),char(22),char(41),char(172),char(1),char(209),char(254),char(47), -char(5),char(188),char(250),char(68),char(2),char(106),char(1),char(197),char(86),char(125), -char(96),char(115),char(254),char(59),char(0),char(3),char(0),char(201),char(0),char(0), -char(4),char(190),char(5),char(182),char(0),char(14),char(0),char(23),char(0),char(32), -char(0),char(73),char(64),char(38),char(19),char(4),char(29),char(10),char(15),char(25), -char(25),char(14),char(10),char(4),char(7),char(14),char(4),char(33),char(34),char(8), -char(15),char(24),char(15),char(24),char(74),char(89),char(15),char(15),char(14),char(0), -char(14),char(25),char(74),char(89),char(14),char(18),char(0),char(23),char(74),char(89), -char(0),char(3),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(0),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(19),char(33),char(32),char(4),char(21), -char(20),char(6),char(7),char(21),char(4),char(17),char(20),char(4),char(35),char(33), -char(19),char(33),char(50),char(54),char(53),char(52),char(38),char(35),char(35),char(17), -char(17),char(33),char(50),char(54),char(53),char(52),char(38),char(35),char(201),char(1), -char(157),char(1),char(35),char(1),char(4),char(145),char(139),char(1),char(77),char(254), -char(247),char(238),char(254),char(2),char(170),char(1),char(24),char(180),char(158),char(176), -char(192),char(250),char(1),char(49),char(177),char(179),char(183),char(187),char(5),char(182), -char(174),char(188),char(130),char(169),char(25),char(10),char(57),char(254),char(219),char(196), -char(220),char(3),char(68),char(113),char(134),char(123),char(109),char(253),char(145),char(253), -char(221),char(137),char(146),char(136),char(128),char(0),char(0),char(1),char(0),char(125), -char(255),char(236),char(4),char(207),char(5),char(203),char(0),char(22),char(0),char(38), -char(64),char(20),char(3),char(14),char(20),char(9),char(14),char(3),char(23),char(24), -char(18),char(0),char(73),char(89),char(18),char(4),char(11),char(6),char(73),char(89), -char(11),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(34), -char(0),char(17),char(16),char(0),char(51),char(50),char(55),char(21),char(6),char(35), -char(32),char(0),char(17),char(52),char(18),char(36),char(51),char(50),char(23),char(7), -char(38),char(3),char(59),char(241),char(254),char(233),char(1),char(13),char(249),char(153), -char(196),char(152),char(223),char(254),char(189),char(254),char(161),char(169),char(1),char(63), -char(216),char(230),char(172),char(72),char(166),char(5),char(51),char(254),char(191),char(254), -char(233),char(254),char(225),char(254),char(199),char(55),char(149),char(57),char(1),char(136), -char(1),char(105),char(226),char(1),char(84),char(184),char(84),char(146),char(78),char(0), -char(0),char(2),char(0),char(201),char(0),char(0),char(5),char(88),char(5),char(182), -char(0),char(8),char(0),char(17),char(0),char(40),char(64),char(20),char(14),char(4), -char(9),char(0),char(4),char(0),char(18),char(19),char(5),char(13),char(74),char(89), -char(5),char(3),char(4),char(14),char(74),char(89),char(4),char(18),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(33), -char(33),char(17),char(33),char(32),char(0),char(3),char(16),char(0),char(33),char(35), -char(17),char(51),char(32),char(0),char(5),char(88),char(254),char(119),char(254),char(143), -char(254),char(107),char(1),char(192),char(1),char(85),char(1),char(122),char(180),char(254), -char(225),char(254),char(229),char(247),char(207),char(1),char(48),char(1),char(50),char(2), -char(233),char(254),char(150),char(254),char(129),char(5),char(182),char(254),char(134),char(254), -char(167),char(1),char(30),char(1),char(34),char(251),char(112),char(1),char(43),char(0), -char(0),char(1),char(0),char(201),char(0),char(0),char(3),char(248),char(5),char(182), -char(0),char(11),char(0),char(58),char(64),char(31),char(6),char(10),char(10),char(1), -char(4),char(0),char(8),char(1),char(4),char(12),char(13),char(6),char(9),char(73), -char(89),char(6),char(6),char(1),char(2),char(2),char(5),char(73),char(89),char(2), -char(3),char(1),char(10),char(73),char(89),char(1),char(18),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(33),char(33),char(17),char(33),char(21),char(33),char(17),char(33), -char(21),char(33),char(17),char(33),char(3),char(248),char(252),char(209),char(3),char(47), -char(253),char(123),char(2),char(94),char(253),char(162),char(2),char(133),char(5),char(182), -char(151),char(254),char(41),char(150),char(253),char(230),char(0),char(1),char(0),char(201), -char(0),char(0),char(3),char(248),char(5),char(182),char(0),char(9),char(0),char(50), -char(64),char(26),char(6),char(0),char(0),char(1),char(3),char(8),char(1),char(3), -char(10),char(11),char(6),char(9),char(73),char(89),char(6),char(6),char(1),char(2), -char(2),char(5),char(73),char(89),char(2),char(3),char(1),char(18),char(0),char(63), -char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(33),char(35),char(17),char(33),char(21),char(33),char(17),char(33),char(21),char(33), -char(1),char(115),char(170),char(3),char(47),char(253),char(123),char(2),char(94),char(253), -char(162),char(5),char(182),char(151),char(253),char(233),char(151),char(0),char(0),char(1), -char(0),char(125),char(255),char(236),char(5),char(61),char(5),char(203),char(0),char(27), -char(0),char(58),char(64),char(31),char(20),char(8),char(25),char(2),char(2),char(14), -char(27),char(8),char(4),char(28),char(29),char(0),char(27),char(73),char(89),char(0), -char(0),char(5),char(12),char(12),char(17),char(73),char(89),char(12),char(4),char(5), -char(23),char(73),char(89),char(5),char(19),char(0),char(63),char(43),char(0),char(24), -char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(33),char(17),char(6),char(6),char(35),char(32),char(0),char(17),char(52), -char(18),char(36),char(51),char(50),char(23),char(7),char(38),char(35),char(32),char(0), -char(17),char(16),char(0),char(33),char(50),char(55),char(17),char(33),char(3),char(76), -char(1),char(241),char(116),char(240),char(158),char(254),char(180),char(254),char(142),char(183), -char(1),char(88),char(231),char(234),char(202),char(66),char(198),char(183),char(254),char(245), -char(254),char(212),char(1),char(33),char(1),char(24),char(152),char(145),char(254),char(185), -char(2),char(254),char(253),char(57),char(37),char(38),char(1),char(139),char(1),char(100), -char(228),char(1),char(87),char(181),char(86),char(150),char(84),char(254),char(194),char(254), -char(230),char(254),char(216),char(254),char(206),char(35),char(1),char(194),char(0),char(1), -char(0),char(201),char(0),char(0),char(5),char(31),char(5),char(182),char(0),char(11), -char(0),char(51),char(64),char(25),char(9),char(1),char(1),char(0),char(8),char(4), -char(4),char(5),char(0),char(5),char(13),char(12),char(8),char(3),char(73),char(89), -char(8),char(8),char(5),char(10),char(6),char(3),char(1),char(5),char(18),char(0), -char(63),char(51),char(63),char(51),char(18),char(57),char(47),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(33),char(35),char(17),char(33),char(17),char(35),char(17), -char(51),char(17),char(33),char(17),char(51),char(5),char(31),char(170),char(252),char(254), -char(170),char(170),char(3),char(2),char(170),char(2),char(176),char(253),char(80),char(5), -char(182),char(253),char(146),char(2),char(110),char(0),char(0),char(1),char(0),char(84), -char(0),char(0),char(2),char(86),char(5),char(182),char(0),char(11),char(0),char(55), -char(64),char(28),char(5),char(1),char(10),char(3),char(8),char(0),char(0),char(3), -char(1),char(3),char(12),char(13),char(9),char(4),char(6),char(4),char(74),char(89), -char(6),char(3),char(10),char(3),char(1),char(3),char(74),char(89),char(1),char(18), -char(0),char(63),char(43),char(17),char(0),char(51),char(24),char(63),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(53),char(55),char(17), -char(39),char(53),char(33),char(21),char(7),char(17),char(23),char(2),char(86),char(253), -char(254),char(172),char(172),char(2),char(2),char(172),char(172),char(98),char(35),char(4), -char(170),char(37),char(98),char(98),char(37),char(251),char(86),char(35),char(0),char(1), -char(255),char(96),char(254),char(127),char(1),char(104),char(5),char(182),char(0),char(13), -char(0),char(29),char(64),char(13),char(11),char(8),char(8),char(14),char(15),char(9), -char(3),char(0),char(5),char(73),char(89),char(0),char(34),char(0),char(63),char(43), -char(0),char(24),char(63),char(17),char(18),char(1),char(57),char(17),char(51),char(49), -char(48),char(3),char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(53), -char(17),char(51),char(17),char(20),char(6),char(12),char(94),char(54),char(71),char(77), -char(99),char(103),char(170),char(192),char(254),char(127),char(27),char(145),char(20),char(120), -char(113),char(5),char(182),char(250),char(88),char(190),char(209),char(0),char(0),char(1), -char(0),char(201),char(0),char(0),char(4),char(233),char(5),char(182),char(0),char(11), -char(0),char(42),char(64),char(21),char(8),char(4),char(4),char(5),char(5),char(2), -char(11),char(10),char(0),char(5),char(13),char(12),char(2),char(8),char(5),char(9), -char(6),char(3),char(1),char(5),char(18),char(0),char(63),char(51),char(63),char(51), -char(18),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(33),char(35),char(1),char(7),char(17),char(35), -char(17),char(51),char(17),char(1),char(51),char(1),char(4),char(233),char(200),char(253), -char(235),char(153),char(170),char(170),char(2),char(151),char(201),char(253),char(180),char(2), -char(197),char(136),char(253),char(195),char(5),char(182),char(253),char(43),char(2),char(213), -char(253),char(133),char(0),char(1),char(0),char(201),char(0),char(0),char(3),char(248), -char(5),char(182),char(0),char(5),char(0),char(31),char(64),char(14),char(3),char(0), -char(0),char(4),char(6),char(7),char(1),char(3),char(0),char(3),char(73),char(89), -char(0),char(18),char(0),char(63),char(43),char(0),char(24),char(63),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(49),char(48),char(51),char(17),char(51), -char(17),char(33),char(21),char(201),char(170),char(2),char(133),char(5),char(182),char(250), -char(228),char(154),char(0),char(1),char(0),char(201),char(0),char(0),char(6),char(113), -char(5),char(182),char(0),char(19),char(0),char(50),char(64),char(24),char(8),char(5), -char(5),char(6),char(11),char(14),char(14),char(13),char(6),char(13),char(20),char(21), -char(1),char(10),char(17),char(3),char(6),char(11),char(7),char(3),char(14),char(0), -char(6),char(18),char(0),char(63),char(51),char(51),char(63),char(51),char(18),char(23), -char(57),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(1),char(35),char(22), -char(21),char(17),char(35),char(17),char(33),char(1),char(51),char(1),char(51),char(17), -char(35),char(17),char(52),char(55),char(35),char(1),char(3),char(80),char(254),char(16), -char(8),char(14),char(157),char(1),char(0),char(1),char(207),char(8),char(1),char(211), -char(254),char(170),char(14),char(8),char(254),char(12),char(5),char(16),char(154),char(212), -char(252),char(94),char(5),char(182),char(251),char(74),char(4),char(182),char(250),char(74), -char(3),char(174),char(162),char(190),char(250),char(242),char(0),char(1),char(0),char(201), -char(0),char(0),char(5),char(63),char(5),char(182),char(0),char(16),char(0),char(46), -char(64),char(21),char(9),char(6),char(6),char(7),char(1),char(15),char(15),char(0), -char(7),char(0),char(17),char(18),char(11),char(3),char(7),char(15),char(8),char(3), -char(1),char(7),char(18),char(0),char(63),char(51),char(63),char(51),char(18),char(57), -char(57),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(35),char(1),char(35), -char(22),char(21),char(17),char(35),char(17),char(51),char(1),char(51),char(38),char(2), -char(55),char(17),char(51),char(5),char(63),char(194),char(252),char(225),char(8),char(16), -char(157),char(192),char(3),char(29),char(8),char(2),char(14),char(2),char(159),char(4), -char(203),char(216),char(180),char(252),char(193),char(5),char(182),char(251),char(58),char(27), -char(1),char(37),char(63),char(3),char(71),char(0),char(0),char(2),char(0),char(125), -char(255),char(236),char(5),char(190),char(5),char(205),char(0),char(11),char(0),char(23), -char(0),char(40),char(64),char(20),char(18),char(0),char(12),char(6),char(0),char(6), -char(25),char(24),char(9),char(21),char(73),char(89),char(9),char(4),char(3),char(15), -char(73),char(89),char(3),char(19),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(16),char(0),char(33),char(32),char(0),char(17),char(16), -char(0),char(33),char(32),char(0),char(1),char(16),char(18),char(51),char(50),char(18), -char(17),char(16),char(2),char(35),char(34),char(2),char(5),char(190),char(254),char(157), -char(254),char(196),char(254),char(189),char(254),char(161),char(1),char(96),char(1),char(68), -char(1),char(59),char(1),char(98),char(251),char(115),char(253),char(241),char(243),char(248), -char(247),char(242),char(243),char(253),char(2),char(221),char(254),char(161),char(254),char(110), -char(1),char(139),char(1),char(104),char(1),char(101),char(1),char(137),char(254),char(112), -char(254),char(160),char(254),char(215),char(254),char(205),char(1),char(50),char(1),char(42), -char(1),char(39),char(1),char(49),char(254),char(205),char(0),char(2),char(0),char(201), -char(0),char(0),char(4),char(104),char(5),char(182),char(0),char(9),char(0),char(18), -char(0),char(52),char(64),char(26),char(10),char(5),char(5),char(6),char(14),char(0), -char(6),char(0),char(19),char(20),char(10),char(4),char(74),char(89),char(10),char(10), -char(6),char(7),char(7),char(18),char(74),char(89),char(7),char(3),char(6),char(18), -char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(4),char(33),char(35),char(17), -char(35),char(17),char(33),char(32),char(1),char(51),char(50),char(54),char(53),char(52), -char(38),char(35),char(35),char(4),char(104),char(254),char(209),char(254),char(230),char(172), -char(170),char(1),char(123),char(2),char(36),char(253),char(11),char(153),char(226),char(202), -char(190),char(201),char(190),char(4),char(12),char(222),char(239),char(253),char(193),char(5), -char(182),char(253),char(27),char(146),char(161),char(145),char(142),char(0),char(0),char(2), -char(0),char(125),char(254),char(164),char(5),char(190),char(5),char(205),char(0),char(15), -char(0),char(27),char(0),char(52),char(64),char(27),char(16),char(10),char(22),char(0), -char(0),char(4),char(3),char(10),char(4),char(28),char(29),char(3),char(13),char(7), -char(13),char(25),char(73),char(89),char(13),char(4),char(7),char(19),char(73),char(89), -char(5),char(7),char(19),char(0),char(63),char(198),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(2),char(7), -char(1),char(35),char(1),char(7),char(32),char(0),char(17),char(16),char(0),char(33), -char(32),char(0),char(1),char(16),char(18),char(51),char(50),char(18),char(17),char(16), -char(2),char(35),char(34),char(2),char(5),char(190),char(226),char(206),char(1),char(92), -char(247),char(254),char(227),char(55),char(254),char(189),char(254),char(161),char(1),char(96), -char(1),char(68),char(1),char(59),char(1),char(98),char(251),char(115),char(253),char(241), -char(243),char(248),char(247),char(242),char(243),char(253),char(2),char(221),char(254),char(231), -char(254),char(140),char(66),char(254),char(150),char(1),char(74),char(2),char(1),char(139), -char(1),char(104),char(1),char(101),char(1),char(137),char(254),char(112),char(254),char(160), -char(254),char(215),char(254),char(205),char(1),char(50),char(1),char(42),char(1),char(39), -char(1),char(49),char(254),char(205),char(0),char(2),char(0),char(201),char(0),char(0), -char(4),char(207),char(5),char(182),char(0),char(12),char(0),char(21),char(0),char(72), -char(64),char(37),char(13),char(1),char(1),char(2),char(12),char(9),char(17),char(7), -char(11),char(10),char(10),char(7),char(9),char(2),char(4),char(22),char(23),char(9), -char(13),char(0),char(13),char(0),char(74),char(89),char(13),char(13),char(2),char(3), -char(3),char(21),char(73),char(89),char(3),char(3),char(11),char(2),char(18),char(0), -char(63),char(51),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(17),char(35),char(17),char(33),char(32),char(4),char(21), -char(16),char(5),char(1),char(35),char(1),char(37),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(35),char(1),char(115),char(170),char(1),char(145),char(1), -char(13),char(1),char(1),char(254),char(218),char(1),char(141),char(201),char(254),char(158), -char(254),char(207),char(233),char(180),char(168),char(171),char(189),char(221),char(2),char(96), -char(253),char(160),char(5),char(182),char(206),char(207),char(254),char(222),char(102),char(253), -char(111),char(2),char(96),char(146),char(143),char(143),char(145),char(128),char(0),char(1), -char(0),char(106),char(255),char(236),char(4),char(2),char(5),char(203),char(0),char(36), -char(0),char(52),char(64),char(27),char(30),char(19),char(12),char(0),char(0),char(24), -char(19),char(5),char(4),char(37),char(38),char(12),char(30),char(3),char(22),char(22), -char(27),char(73),char(89),char(22),char(4),char(3),char(9),char(73),char(89),char(3), -char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(4),char(35),char(32),char(39), -char(53),char(22),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(38), -char(39),char(38),char(38),char(53),char(52),char(54),char(51),char(50),char(23),char(7), -char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(22),char(23),char(22), -char(22),char(4),char(2),char(254),char(232),char(240),char(254),char(252),char(140),char(90), -char(212),char(104),char(170),char(172),char(61),char(143),char(146),char(204),char(175),char(254), -char(209),char(218),char(183),char(53),char(181),char(171),char(135),char(152),char(56),char(133), -char(137),char(230),char(173),char(1),char(133),char(193),char(216),char(67),char(164),char(38), -char(44),char(129),char(115),char(76),char(97),char(82),char(52),char(73),char(200),char(161), -char(169),char(200),char(80),char(148),char(76),char(116),char(103),char(76),char(97),char(81), -char(49),char(82),char(188),char(0),char(0),char(1),char(0),char(18),char(0),char(0), -char(4),char(90),char(5),char(182),char(0),char(7),char(0),char(36),char(64),char(18), -char(0),char(1),char(5),char(1),char(3),char(3),char(8),char(9),char(7),char(3), -char(4),char(3),char(73),char(89),char(4),char(3),char(1),char(18),char(0),char(63), -char(63),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(33),char(53),char(33), -char(21),char(33),char(2),char(139),char(170),char(254),char(49),char(4),char(72),char(254), -char(49),char(5),char(31),char(151),char(151),char(0),char(0),char(1),char(0),char(186), -char(255),char(236),char(5),char(25),char(5),char(182),char(0),char(17),char(0),char(37), -char(64),char(17),char(16),char(1),char(10),char(7),char(1),char(7),char(19),char(18), -char(17),char(8),char(3),char(4),char(13),char(73),char(89),char(4),char(19),char(0), -char(63),char(43),char(0),char(24),char(63),char(51),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20), -char(0),char(33),char(32),char(0),char(53),char(17),char(51),char(17),char(20),char(22), -char(51),char(50),char(54),char(53),char(17),char(5),char(25),char(254),char(210),char(254), -char(248),char(254),char(248),char(254),char(223),char(170),char(200),char(194),char(185),char(200), -char(5),char(182),char(252),char(78),char(250),char(254),char(226),char(1),char(32),char(252), -char(3),char(174),char(252),char(70),char(183),char(196),char(197),char(184),char(3),char(184), -char(0),char(1),char(0),char(0),char(0),char(0),char(4),char(195),char(5),char(182), -char(0),char(10),char(0),char(26),char(64),char(11),char(1),char(4),char(12),char(11), -char(8),char(3),char(0),char(4),char(3),char(3),char(18),char(0),char(63),char(63), -char(51),char(18),char(57),char(17),char(18),char(1),char(57),char(57),char(49),char(48), -char(1),char(51),char(1),char(35),char(1),char(51),char(1),char(22),char(23),char(54), -char(55),char(4),char(12),char(183),char(253),char(241),char(168),char(253),char(244),char(180), -char(1),char(80),char(58),char(34),char(36),char(58),char(5),char(182),char(250),char(74), -char(5),char(182),char(252),char(78),char(163),char(154),char(162),char(161),char(0),char(1), -char(0),char(27),char(0),char(0),char(7),char(76),char(5),char(182),char(0),char(25), -char(0),char(36),char(64),char(16),char(25),char(10),char(27),char(26),char(21),char(14), -char(14),char(5),char(9),char(24),char(17),char(10),char(3),char(1),char(9),char(18), -char(0),char(63),char(51),char(63),char(51),char(51),char(18),char(57),char(57),char(17), -char(51),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(33),char(35), -char(1),char(38),char(38),char(39),char(6),char(7),char(1),char(35),char(1),char(51), -char(19),char(22),char(23),char(54),char(55),char(1),char(51),char(1),char(22),char(23), -char(54),char(55),char(19),char(51),char(5),char(197),char(168),char(254),char(217),char(21), -char(52),char(1),char(22),char(48),char(254),char(226),char(168),char(254),char(123),char(180), -char(231),char(48),char(22),char(27),char(53),char(1),char(6),char(180),char(1),char(19), -char(48),char(33),char(19),char(53),char(230),char(180),char(3),char(211),char(65),char(198), -char(20),char(132),char(157),char(252),char(51),char(5),char(182),char(252),char(121),char(190), -char(154),char(183),char(175),char(3),char(121),char(252),char(127),char(155),char(195),char(142), -char(204),char(3),char(133),char(0),char(0),char(1),char(0),char(8),char(0),char(0), -char(4),char(150),char(5),char(182),char(0),char(11),char(0),char(35),char(64),char(18), -char(4),char(6),char(5),char(11),char(10),char(0),char(6),char(13),char(12),char(2), -char(8),char(4),char(9),char(6),char(3),char(1),char(4),char(18),char(0),char(63), -char(51),char(63),char(51),char(18),char(57),char(57),char(17),char(18),char(1),char(23), -char(57),char(49),char(48),char(33),char(35),char(1),char(1),char(35),char(1),char(1), -char(51),char(1),char(1),char(51),char(1),char(4),char(150),char(193),char(254),char(119), -char(254),char(112),char(180),char(1),char(230),char(254),char(59),char(188),char(1),char(107), -char(1),char(110),char(181),char(254),char(59),char(2),char(131),char(253),char(125),char(2), -char(252),char(2),char(186),char(253),char(189),char(2),char(67),char(253),char(76),char(0), -char(0),char(1),char(0),char(0),char(0),char(0),char(4),char(123),char(5),char(182), -char(0),char(8),char(0),char(32),char(64),char(15),char(4),char(5),char(2),char(5), -char(7),char(3),char(9),char(10),char(0),char(5),char(1),char(7),char(3),char(5), -char(18),char(0),char(63),char(63),char(51),char(18),char(57),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(1),char(51),char(1), -char(17),char(35),char(17),char(1),char(51),char(2),char(61),char(1),char(134),char(184), -char(254),char(24),char(172),char(254),char(25),char(186),char(2),char(219),char(2),char(219), -char(252),char(129),char(253),char(201),char(2),char(47),char(3),char(135),char(0),char(1), -char(0),char(82),char(0),char(0),char(4),char(63),char(5),char(182),char(0),char(9), -char(0),char(43),char(64),char(23),char(8),char(1),char(3),char(7),char(0),char(7), -char(4),char(1),char(4),char(10),char(11),char(5),char(4),char(73),char(89),char(5), -char(3),char(1),char(8),char(73),char(89),char(1),char(18),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(53),char(1),char(33), -char(53),char(33),char(21),char(1),char(33),char(4),char(63),char(252),char(19),char(3), -char(8),char(253),char(16),char(3),char(191),char(252),char(248),char(3),char(30),char(133), -char(4),char(152),char(153),char(133),char(251),char(105),char(0),char(1),char(0),char(166), -char(254),char(188),char(2),char(111),char(5),char(182),char(0),char(7),char(0),char(32), -char(64),char(14),char(6),char(1),char(4),char(0),char(1),char(0),char(8),char(9), -char(5),char(2),char(3),char(6),char(1),char(39),char(0),char(63),char(51),char(63), -char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(17),char(33),char(21),char(33),char(17),char(33), -char(2),char(111),char(254),char(55),char(1),char(201),char(254),char(223),char(1),char(33), -char(254),char(188),char(6),char(250),char(141),char(250),char(33),char(0),char(0),char(1), -char(0),char(23),char(0),char(0),char(2),char(221),char(5),char(182),char(0),char(3), -char(0),char(19),char(183),char(3),char(1),char(4),char(5),char(3),char(3),char(2), -char(18),char(0),char(63),char(63),char(17),char(18),char(1),char(57),char(57),char(49), -char(48),char(19),char(1),char(35),char(1),char(186),char(2),char(35),char(166),char(253), -char(224),char(5),char(182),char(250),char(74),char(5),char(182),char(0),char(0),char(1), -char(0),char(51),char(254),char(188),char(1),char(252),char(5),char(182),char(0),char(7), -char(0),char(32),char(64),char(14),char(3),char(0),char(1),char(6),char(0),char(6), -char(8),char(9),char(0),char(7),char(39),char(3),char(4),char(3),char(0),char(63), -char(51),char(63),char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(23),char(33),char(17),char(33),char(53),char(33), -char(17),char(33),char(51),char(1),char(33),char(254),char(223),char(1),char(201),char(254), -char(55),char(182),char(5),char(223),char(141),char(249),char(6),char(0),char(0),char(1), -char(0),char(49),char(2),char(39),char(4),char(35),char(5),char(193),char(0),char(6), -char(0),char(24),char(64),char(9),char(0),char(3),char(7),char(8),char(5),char(2), -char(0),char(4),char(2),char(0),char(47),char(47),char(51),char(18),char(57),char(17), -char(18),char(1),char(57),char(57),char(49),char(48),char(19),char(1),char(51),char(1), -char(35),char(1),char(1),char(49),char(1),char(178),char(99),char(1),char(221),char(152), -char(254),char(140),char(254),char(178),char(2),char(39),char(3),char(154),char(252),char(102), -char(2),char(233),char(253),char(23),char(0),char(1),char(255),char(252),char(254),char(197), -char(3),char(154),char(255),char(72),char(0),char(3),char(0),char(17),char(181),char(0), -char(5),char(1),char(4),char(1),char(2),char(0),char(47),char(51),char(17),char(1), -char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(53),char(33),char(3), -char(154),char(252),char(98),char(3),char(158),char(254),char(197),char(131),char(0),char(1), -char(1),char(137),char(4),char(217),char(3),char(18),char(6),char(33),char(0),char(9), -char(0),char(19),char(182),char(0),char(4),char(11),char(10),char(6),char(128),char(1), -char(0),char(47),char(26),char(205),char(17),char(18),char(1),char(57),char(57),char(49), -char(48),char(1),char(35),char(38),char(38),char(39),char(53),char(51),char(22),char(22), -char(23),char(3),char(18),char(110),char(65),char(178),char(40),char(203),char(32),char(114), -char(44),char(4),char(217),char(52),char(192),char(63),char(21),char(69),char(181),char(53), -char(0),char(2),char(0),char(94),char(255),char(236),char(3),char(205),char(4),char(90), -char(0),char(25),char(0),char(36),char(0),char(71),char(64),char(37),char(34),char(8), -char(11),char(30),char(30),char(25),char(25),char(18),char(8),char(3),char(37),char(38), -char(1),char(2),char(11),char(30),char(71),char(89),char(2),char(11),char(11),char(0), -char(21),char(21),char(15),char(70),char(89),char(21),char(16),char(5),char(26),char(70), -char(89),char(5),char(22),char(0),char(21),char(0),char(63),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(57), -char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(39),char(35), -char(6),char(6),char(35),char(34),char(38),char(53),char(16),char(37),char(55),char(53), -char(52),char(38),char(35),char(34),char(7),char(39),char(54),char(54),char(51),char(50), -char(22),char(21),char(17),char(37),char(50),char(54),char(53),char(53),char(7),char(6), -char(6),char(21),char(20),char(22),char(3),char(82),char(33),char(8),char(82),char(163), -char(122),char(163),char(185),char(2),char(19),char(186),char(111),char(122),char(137),char(173), -char(51),char(81),char(193),char(97),char(196),char(189),char(254),char(14),char(155),char(177), -char(166),char(198),char(175),char(109),char(156),char(103),char(73),char(168),char(155),char(1), -char(76),char(16),char(6),char(68),char(129),char(123),char(84),char(127),char(44),char(50), -char(174),char(192),char(253),char(20),char(117),char(170),char(153),char(99),char(7),char(7), -char(109),char(115),char(90),char(94),char(0),char(2),char(0),char(176),char(255),char(236), -char(4),char(117),char(6),char(20),char(0),char(19),char(0),char(31),char(0),char(68), -char(64),char(34),char(10),char(23),char(23),char(15),char(15),char(12),char(29),char(3), -char(12),char(3),char(32),char(33),char(13),char(0),char(12),char(21),char(18),char(17), -char(10),char(17),char(6),char(0),char(6),char(26),char(70),char(89),char(6),char(22), -char(0),char(20),char(70),char(89),char(0),char(16),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(17),char(51), -char(24),char(63),char(63),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(50), -char(18),char(17),char(16),char(2),char(35),char(34),char(38),char(39),char(35),char(7), -char(35),char(17),char(51),char(17),char(20),char(7),char(51),char(54),char(23),char(34), -char(6),char(21),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38), -char(2),char(174),char(216),char(239),char(241),char(214),char(107),char(177),char(60),char(12), -char(35),char(119),char(166),char(8),char(8),char(116),char(204),char(170),char(150),char(154), -char(170),char(153),char(150),char(150),char(4),char(90),char(254),char(217),char(254),char(242), -char(254),char(242),char(254),char(213),char(79),char(82),char(141),char(6),char(20),char(254), -char(134),char(127),char(101),char(164),char(139),char(195),char(231),char(231),char(199),char(223), -char(209),char(214),char(210),char(0),char(0),char(1),char(0),char(115),char(255),char(236), -char(3),char(139),char(4),char(92),char(0),char(22),char(0),char(38),char(64),char(20), -char(15),char(3),char(3),char(21),char(9),char(3),char(24),char(23),char(6),char(13), -char(70),char(89),char(6),char(16),char(0),char(18),char(70),char(89),char(0),char(22), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(49),char(48),char(5),char(34),char(0),char(17), -char(16),char(0),char(51),char(50),char(22),char(23),char(7),char(38),char(38),char(35), -char(32),char(17),char(20),char(22),char(51),char(50),char(55),char(21),char(6),char(2), -char(102),char(238),char(254),char(251),char(1),char(9),char(245),char(79),char(158),char(45), -char(51),char(55),char(130),char(50),char(254),char(178),char(163),char(160),char(137),char(144), -char(110),char(20),char(1),char(37),char(1),char(12),char(1),char(19),char(1),char(44), -char(34),char(23),char(141),char(22),char(29),char(254),char(86),char(202),char(216),char(59), -char(147),char(57),char(0),char(2),char(0),char(115),char(255),char(236),char(4),char(55), -char(6),char(20),char(0),char(18),char(0),char(31),char(0),char(66),char(64),char(33), -char(29),char(6),char(23),char(0),char(14),char(14),char(17),char(6),char(17),char(32), -char(33),char(18),char(21),char(15),char(0),char(0),char(1),char(1),char(12),char(3), -char(9),char(9),char(26),char(70),char(89),char(9),char(16),char(3),char(19),char(70), -char(89),char(3),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(57),char(17),char(51),char(24),char(63),char(63), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(49),char(48),char(37),char(35),char(6),char(35),char(34),char(2), -char(17),char(16),char(18),char(51),char(50),char(23),char(51),char(39),char(39),char(17), -char(51),char(17),char(35),char(37),char(50),char(54),char(53),char(53),char(52),char(38), -char(35),char(34),char(6),char(21),char(20),char(22),char(3),char(154),char(9),char(115), -char(229),char(215),char(239),char(240),char(214),char(223),char(119),char(13),char(7),char(4), -char(166),char(135),char(254),char(158),char(170),char(153),char(155),char(170),char(146),char(155), -char(154),char(147),char(167),char(1),char(38),char(1),char(15),char(1),char(15),char(1), -char(44),char(162),char(79),char(77),char(1),char(190),char(249),char(236),char(119),char(185), -char(206),char(35),char(233),char(199),char(227),char(207),char(210),char(214),char(0),char(2), -char(0),char(115),char(255),char(236),char(4),char(18),char(4),char(92),char(0),char(19), -char(0),char(26),char(0),char(59),char(64),char(31),char(24),char(10),char(23),char(11), -char(3),char(3),char(17),char(10),char(3),char(28),char(27),char(23),char(11),char(70), -char(89),char(23),char(23),char(0),char(6),char(6),char(20),char(70),char(89),char(6), -char(16),char(0),char(14),char(70),char(89),char(0),char(22),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(5),char(34),char(0),char(17),char(16),char(0),char(51), -char(50),char(18),char(21),char(21),char(33),char(22),char(22),char(51),char(50),char(55), -char(21),char(6),char(6),char(3),char(34),char(6),char(7),char(33),char(52),char(38), -char(2),char(127),char(243),char(254),char(231),char(1),char(5),char(220),char(206),char(240), -char(253),char(13),char(5),char(185),char(168),char(177),char(173),char(88),char(157),char(156), -char(132),char(157),char(14),char(2),char(61),char(140),char(20),char(1),char(40),char(1), -char(7),char(1),char(9),char(1),char(56),char(254),char(241),char(222),char(105),char(193), -char(200),char(74),char(148),char(38),char(33),char(3),char(229),char(172),char(152),char(157), -char(167),char(0),char(0),char(1),char(0),char(29),char(0),char(0),char(3),char(14), -char(6),char(31),char(0),char(20),char(0),char(57),char(64),char(29),char(20),char(12), -char(12),char(19),char(2),char(2),char(7),char(3),char(5),char(3),char(21),char(22), -char(10),char(15),char(70),char(89),char(10),char(0),char(1),char(5),char(7),char(5), -char(70),char(89),char(19),char(7),char(15),char(3),char(21),char(0),char(63),char(63), -char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(51),char(17),char(51),char(51),char(18), -char(57),char(49),char(48),char(1),char(33),char(17),char(35),char(17),char(35),char(53), -char(55),char(53),char(16),char(33),char(50),char(23),char(7),char(38),char(35),char(34), -char(6),char(21),char(21),char(33),char(2),char(158),char(254),char(233),char(166),char(196), -char(196),char(1),char(97),char(87),char(117),char(43),char(96),char(68),char(94),char(90), -char(1),char(23),char(3),char(199),char(252),char(57),char(3),char(199),char(75),char(60), -char(61),char(1),char(148),char(35),char(133),char(31),char(125),char(138),char(71),char(0), -char(0),char(3),char(0),char(39),char(254),char(20),char(4),char(49),char(4),char(92), -char(0),char(42),char(0),char(55),char(0),char(65),char(0),char(110),char(64),char(62), -char(43),char(25),char(56),char(37),char(12),char(31),char(61),char(5),char(49),char(19), -char(1),char(19),char(5),char(2),char(42),char(34),char(28),char(31),char(37),char(25), -char(10),char(66),char(67),char(28),char(15),char(53),char(15),char(53),char(70),char(89), -char(8),char(59),char(71),char(89),char(10),char(34),char(8),char(42),char(15),char(8), -char(15),char(8),char(22),char(42),char(42),char(2),char(71),char(89),char(42),char(15), -char(40),char(63),char(71),char(89),char(40),char(16),char(22),char(46),char(71),char(89), -char(22),char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(47), -char(47),char(17),char(18),char(57),char(57),char(43),char(43),char(17),char(18),char(0), -char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(21), -char(7),char(22),char(22),char(21),char(20),char(6),char(35),char(34),char(39),char(6), -char(21),char(20),char(22),char(51),char(51),char(50),char(22),char(21),char(20),char(4), -char(33),char(34),char(38),char(53),char(52),char(54),char(55),char(38),char(38),char(53), -char(52),char(54),char(55),char(38),char(38),char(53),char(52),char(54),char(51),char(50), -char(23),char(1),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38), -char(35),char(35),char(34),char(6),char(19),char(20),char(22),char(51),char(50),char(53), -char(52),char(35),char(34),char(6),char(4),char(49),char(203),char(28),char(44),char(220), -char(192),char(49),char(43),char(106),char(74),char(90),char(194),char(178),char(191),char(254), -char(220),char(254),char(232),char(215),char(233),char(128),char(116),char(42),char(57),char(64), -char(69),char(85),char(107),char(216),char(198),char(86),char(69),char(254),char(17),char(150), -char(140),char(209),char(201),char(110),char(152),char(199),char(113),char(126),char(90),char(130), -char(116),char(243),char(246),char(117),char(126),char(4),char(72),char(105),char(24),char(35), -char(113),char(71),char(161),char(192),char(8),char(56),char(85),char(45),char(43),char(150), -char(143),char(182),char(191),char(160),char(146),char(100),char(146),char(26),char(19),char(80), -char(53),char(60),char(90),char(42),char(35),char(168),char(108),char(180),char(195),char(20), -char(251),char(0),char(89),char(92),char(125),char(107),char(89),char(69),char(108),char(3), -char(60),char(115),char(118),char(236),char(247),char(126),char(0),char(1),char(0),char(176), -char(0),char(0),char(4),char(68),char(6),char(20),char(0),char(22),char(0),char(51), -char(64),char(25),char(14),char(12),char(8),char(8),char(9),char(0),char(22),char(9), -char(22),char(23),char(24),char(14),char(9),char(18),char(18),char(4),char(70),char(89), -char(18),char(16),char(10),char(0),char(0),char(9),char(21),char(0),char(63),char(51), -char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(49), -char(48),char(33),char(17),char(52),char(38),char(35),char(34),char(6),char(21),char(17), -char(35),char(17),char(51),char(17),char(20),char(7),char(51),char(54),char(54),char(51), -char(50),char(22),char(21),char(17),char(3),char(158),char(122),char(130),char(173),char(159), -char(166),char(166),char(8),char(10),char(49),char(181),char(116),char(201),char(201),char(2), -char(197),char(134),char(132),char(188),char(214),char(253),char(195),char(6),char(20),char(254), -char(41),char(85),char(56),char(79),char(91),char(191),char(208),char(253),char(53),char(0), -char(0),char(2),char(0),char(162),char(0),char(0),char(1),char(102),char(5),char(223), -char(0),char(3),char(0),char(15),char(0),char(35),char(64),char(17),char(10),char(0), -char(0),char(4),char(1),char(1),char(16),char(17),char(13),char(7),char(72),char(89), -char(13),char(2),char(15),char(1),char(21),char(0),char(63),char(63),char(206),char(43), -char(17),char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(33),char(35),char(17),char(51),char(3),char(52),char(54),char(51),char(50), -char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(1),char(86),char(166), -char(166),char(180),char(56),char(42),char(40),char(58),char(58),char(40),char(42),char(56), -char(4),char(72),char(1),char(41),char(57),char(53),char(54),char(56),char(56),char(55), -char(55),char(0),char(0),char(2),char(255),char(145),char(254),char(20),char(1),char(102), -char(5),char(223),char(0),char(12),char(0),char(24),char(0),char(44),char(64),char(22), -char(19),char(11),char(11),char(13),char(8),char(8),char(25),char(26),char(22),char(16), -char(72),char(89),char(22),char(64),char(9),char(15),char(0),char(5),char(70),char(89), -char(0),char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(26),char(206), -char(43),char(17),char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51), -char(49),char(48),char(19),char(34),char(39),char(53),char(22),char(51),char(50),char(54), -char(53),char(17),char(51),char(17),char(16),char(3),char(52),char(54),char(51),char(50), -char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(43),char(95),char(59), -char(69),char(67),char(78),char(73),char(166),char(180),char(56),char(42),char(40),char(58), -char(58),char(40),char(42),char(56),char(254),char(20),char(25),char(135),char(20),char(85), -char(87),char(4),char(252),char(251),char(16),char(254),char(188),char(7),char(93),char(57), -char(53),char(54),char(56),char(56),char(55),char(55),char(0),char(1),char(0),char(176), -char(0),char(0),char(4),char(29),char(6),char(20),char(0),char(16),char(0),char(54), -char(64),char(27),char(16),char(14),char(10),char(10),char(11),char(11),char(8),char(6), -char(4),char(5),char(8),char(4),char(17),char(18),char(12),char(0),char(0),char(16), -char(16),char(8),char(8),char(3),char(7),char(11),char(21),char(3),char(15),char(0), -char(63),char(63),char(51),char(18),char(57),char(47),char(57),char(17),char(51),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(57),char(17),char(51),char(17), -char(51),char(51),char(49),char(48),char(1),char(54),char(55),char(1),char(51),char(1), -char(1),char(35),char(1),char(7),char(17),char(35),char(17),char(51),char(17),char(20), -char(7),char(1),char(84),char(43),char(88),char(1),char(98),char(197),char(254),char(68), -char(1),char(219),char(201),char(254),char(125),char(125),char(164),char(164),char(8),char(2), -char(49),char(61),char(99),char(1),char(119),char(254),char(45),char(253),char(139),char(2), -char(6),char(108),char(254),char(102),char(6),char(20),char(252),char(199),char(55),char(115), -char(0),char(1),char(0),char(176),char(0),char(0),char(1),char(86),char(6),char(20), -char(0),char(3),char(0),char(22),char(64),char(9),char(0),char(1),char(1),char(4), -char(5),char(2),char(0),char(1),char(21),char(0),char(63),char(63),char(17),char(18), -char(1),char(57),char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(51), -char(1),char(86),char(166),char(166),char(6),char(20),char(0),char(1),char(0),char(176), -char(0),char(0),char(6),char(203),char(4),char(92),char(0),char(35),char(0),char(70), -char(64),char(35),char(21),char(17),char(17),char(18),char(8),char(9),char(0),char(35), -char(9),char(18),char(35),char(3),char(36),char(37),char(28),char(22),char(21),char(21), -char(18),char(25),char(4),char(13),char(25),char(13),char(70),char(89),char(31),char(25), -char(16),char(19),char(15),char(9),char(0),char(18),char(21),char(0),char(63),char(51), -char(51),char(63),char(63),char(51),char(43),char(17),char(0),char(51),char(17),char(18), -char(57),char(24),char(47),char(51),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(33),char(17),char(52),char(38),char(35),char(34),char(6),char(21),char(17),char(35), -char(17),char(52),char(38),char(35),char(34),char(6),char(21),char(17),char(35),char(17), -char(51),char(23),char(51),char(54),char(54),char(51),char(32),char(23),char(51),char(54), -char(54),char(51),char(50),char(22),char(21),char(17),char(6),char(37),char(112),char(118), -char(155),char(148),char(166),char(112),char(119),char(156),char(145),char(166),char(135),char(27), -char(8),char(47),char(171),char(106),char(1),char(1),char(79),char(8),char(49),char(186), -char(119),char(186),char(185),char(2),char(201),char(131),char(131),char(178),char(185),char(253), -char(156),char(2),char(201),char(131),char(131),char(187),char(213),char(253),char(193),char(4), -char(72),char(150),char(80),char(90),char(186),char(86),char(100),char(191),char(210),char(253), -char(53),char(0),char(0),char(1),char(0),char(176),char(0),char(0),char(4),char(68), -char(4),char(92),char(0),char(20),char(0),char(49),char(64),char(24),char(0),char(20), -char(12),char(8),char(8),char(9),char(20),char(9),char(22),char(21),char(12),char(9), -char(16),char(16),char(4),char(70),char(89),char(16),char(16),char(10),char(15),char(0), -char(9),char(21),char(0),char(63),char(51),char(63),char(63),char(43),char(17),char(18), -char(0),char(57),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(17),char(52),char(38),char(35), -char(34),char(6),char(21),char(17),char(35),char(17),char(51),char(23),char(51),char(54), -char(54),char(51),char(50),char(22),char(21),char(17),char(3),char(158),char(122),char(130), -char(172),char(160),char(166),char(135),char(27),char(8),char(51),char(184),char(113),char(198), -char(200),char(2),char(197),char(134),char(132),char(186),char(214),char(253),char(193),char(4), -char(72),char(150),char(81),char(89),char(191),char(210),char(253),char(53),char(0),char(2), -char(0),char(115),char(255),char(236),char(4),char(98),char(4),char(92),char(0),char(12), -char(0),char(24),char(0),char(40),char(64),char(20),char(19),char(0),char(13),char(7), -char(0),char(7),char(26),char(25),char(10),char(22),char(70),char(89),char(10),char(16), -char(3),char(16),char(70),char(89),char(3),char(22),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(35),char(34),char(38), -char(2),char(53),char(16),char(0),char(51),char(50),char(0),char(1),char(20),char(22), -char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(4), -char(98),char(254),char(242),char(238),char(147),char(228),char(124),char(1),char(12),char(238), -char(230),char(1),char(15),char(252),char(189),char(168),char(163),char(163),char(169),char(169), -char(165),char(163),char(166),char(2),char(37),char(254),char(244),char(254),char(211),char(138), -char(1),char(2),char(173),char(1),char(12),char(1),char(43),char(254),char(206),char(254), -char(251),char(210),char(220),char(219),char(211),char(209),char(217),char(214),char(0),char(2), -char(0),char(176),char(254),char(20),char(4),char(117),char(4),char(92),char(0),char(20), -char(0),char(33),char(0),char(63),char(64),char(32),char(25),char(11),char(4),char(7), -char(7),char(8),char(31),char(18),char(8),char(18),char(34),char(35),char(4),char(11), -char(0),char(15),char(15),char(21),char(70),char(89),char(15),char(16),char(9),char(15), -char(8),char(27),char(0),char(28),char(70),char(89),char(0),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(63),char(63),char(43),char(17),char(18),char(0), -char(57),char(57),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(51),char(51),char(49),char(48),char(5),char(34),char(38), -char(39),char(35),char(22),char(21),char(17),char(35),char(17),char(51),char(23),char(51), -char(54),char(54),char(51),char(50),char(18),char(17),char(16),char(2),char(3),char(34), -char(6),char(7),char(21),char(20),char(22),char(51),char(50),char(54),char(53),char(52), -char(38),char(2),char(174),char(107),char(177),char(60),char(12),char(12),char(166),char(135), -char(23),char(8),char(64),char(170),char(110),char(218),char(237),char(241),char(238),char(168), -char(150),char(2),char(154),char(170),char(142),char(161),char(161),char(20),char(79),char(82), -char(96),char(86),char(254),char(61),char(6),char(52),char(150),char(90),char(80),char(254), -char(214),char(254),char(243),char(254),char(242),char(254),char(213),char(3),char(227),char(186), -char(203),char(37),char(231),char(199),char(230),char(202),char(205),char(219),char(0),char(2), -char(0),char(115),char(254),char(20),char(4),char(55),char(4),char(92),char(0),char(12), -char(0),char(31),char(0),char(68),char(64),char(34),char(10),char(16),char(29),char(22), -char(3),char(26),char(26),char(25),char(16),char(25),char(32),char(33),char(26),char(27), -char(23),char(15),char(29),char(30),char(30),char(22),char(13),char(19),char(19),char(7), -char(70),char(89),char(19),char(16),char(13),char(0),char(70),char(89),char(13),char(22), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0), -char(57),char(57),char(17),char(51),char(24),char(63),char(63),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(51),char(51),char(17),char(51), -char(49),char(48),char(37),char(50),char(54),char(55),char(53),char(52),char(38),char(35), -char(34),char(6),char(21),char(20),char(22),char(23),char(34),char(2),char(17),char(16), -char(18),char(51),char(50),char(23),char(51),char(55),char(51),char(17),char(35),char(17), -char(52),char(55),char(35),char(6),char(2),char(78),char(166),char(152),char(5),char(156), -char(169),char(146),char(155),char(153),char(125),char(212),char(238),char(240),char(214),char(225), -char(121),char(9),char(24),char(131),char(166),char(11),char(13),char(115),char(119),char(178), -char(211),char(37),char(230),char(202),char(227),char(207),char(207),char(217),char(139),char(1), -char(42),char(1),char(11),char(1),char(13),char(1),char(46),char(170),char(150),char(249), -char(204),char(1),char(213),char(100),char(70),char(167),char(0),char(1),char(0),char(176), -char(0),char(0),char(3),char(39),char(4),char(92),char(0),char(16),char(0),char(42), -char(64),char(20),char(13),char(9),char(9),char(10),char(10),char(2),char(17),char(18), -char(11),char(15),char(13),char(0),char(10),char(21),char(0),char(5),char(70),char(89), -char(0),char(16),char(0),char(63),char(43),char(0),char(24),char(63),char(18),char(57), -char(63),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(50),char(23),char(7),char(38),char(35),char(34),char(6), -char(21),char(17),char(35),char(17),char(51),char(23),char(51),char(54),char(54),char(2), -char(164),char(73),char(58),char(23),char(68),char(52),char(133),char(189),char(166),char(137), -char(19),char(8),char(61),char(172),char(4),char(92),char(12),char(154),char(15),char(216), -char(161),char(253),char(180),char(4),char(72),char(203),char(107),char(116),char(0),char(1), -char(0),char(106),char(255),char(236),char(3),char(115),char(4),char(92),char(0),char(36), -char(0),char(54),char(64),char(28),char(30),char(19),char(12),char(0),char(0),char(24), -char(5),char(19),char(4),char(37),char(38),char(12),char(30),char(3),char(22),char(22), -char(27),char(70),char(89),char(22),char(16),char(6),char(3),char(9),char(70),char(89), -char(3),char(22),char(0),char(63),char(43),char(0),char(24),char(47),char(63),char(43), -char(17),char(18),char(0),char(57),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(6),char(35), -char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53),char(52), -char(38),char(39),char(46),char(2),char(53),char(52),char(54),char(51),char(50),char(23), -char(7),char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(22),char(23), -char(22),char(22),char(3),char(115),char(228),char(206),char(218),char(122),char(79),char(181), -char(84),char(130),char(140),char(111),char(161),char(153),char(129),char(63),char(218),char(190), -char(177),char(169),char(59),char(165),char(134),char(118),char(120),char(45),char(100),char(142), -char(195),char(137),char(1),char(43),char(153),char(166),char(69),char(154),char(40),char(46), -char(83),char(85),char(64),char(91),char(62),char(57),char(85),char(108),char(75),char(134), -char(155),char(72),char(135),char(68),char(74),char(65),char(44),char(62),char(56),char(53), -char(71),char(144),char(0),char(1),char(0),char(31),char(255),char(236),char(2),char(168), -char(5),char(70),char(0),char(22),char(0),char(52),char(64),char(27),char(16),char(20), -char(20),char(9),char(11),char(9),char(18),char(3),char(4),char(24),char(23),char(10), -char(19),char(16),char(19),char(71),char(89),char(14),char(64),char(16),char(15),char(7), -char(0),char(70),char(89),char(7),char(22),char(0),char(63),char(43),char(0),char(24), -char(63),char(26),char(205),char(43),char(17),char(0),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(50), -char(54),char(55),char(21),char(6),char(6),char(35),char(32),char(17),char(17),char(35), -char(53),char(55),char(55),char(51),char(21),char(33),char(21),char(33),char(17),char(20), -char(22),char(2),char(18),char(44),char(82),char(24),char(27),char(105),char(42),char(254), -char(194),char(157),char(157),char(70),char(96),char(1),char(62),char(254),char(194),char(94), -char(117),char(13),char(7),char(127),char(13),char(17),char(1),char(79),char(2),char(140), -char(80),char(69),char(234),char(254),char(129),char(253),char(123),char(99),char(106),char(0), -char(0),char(1),char(0),char(164),char(255),char(236),char(4),char(57),char(4),char(72), -char(0),char(20),char(0),char(52),char(64),char(25),char(1),char(19),char(7),char(12), -char(12),char(10),char(19),char(10),char(21),char(22),char(12),char(13),char(13),char(16), -char(8),char(20),char(15),char(16),char(4),char(70),char(89),char(16),char(22),char(11), -char(21),char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(51),char(18), -char(57),char(17),char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20),char(22), -char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(35),char(39),char(35), -char(6),char(6),char(35),char(34),char(38),char(53),char(17),char(1),char(76),char(122), -char(130),char(172),char(159),char(166),char(137),char(24),char(9),char(51),char(181),char(116), -char(200),char(199),char(4),char(72),char(253),char(57),char(134),char(132),char(188),char(213), -char(2),char(64),char(251),char(184),char(147),char(81),char(86),char(190),char(209),char(2), -char(205),char(0),char(0),char(1),char(0),char(0),char(0),char(0),char(4),char(2), -char(4),char(72),char(0),char(11),char(0),char(24),char(64),char(10),char(1),char(10), -char(12),char(13),char(5),char(9),char(1),char(15),char(0),char(21),char(0),char(63), -char(63),char(51),char(57),char(17),char(18),char(1),char(57),char(57),char(49),char(48), -char(33),char(1),char(51),char(19),char(22),char(23),char(51),char(54),char(18),char(19), -char(51),char(1),char(1),char(160),char(254),char(96),char(178),char(236),char(80),char(14), -char(8),char(11),char(117),char(204),char(178),char(254),char(96),char(4),char(72),char(253), -char(118),char(228),char(68),char(53),char(1),char(77),char(2),char(48),char(251),char(184), -char(0),char(1),char(0),char(23),char(0),char(0),char(6),char(35),char(4),char(72), -char(0),char(28),char(0),char(44),char(64),char(20),char(9),char(27),char(29),char(30), -char(23),char(22),char(14),char(13),char(3),char(4),char(13),char(4),char(8),char(26), -char(18),char(9),char(15),char(0),char(8),char(21),char(0),char(63),char(51),char(63), -char(51),char(51),char(18),char(57),char(57),char(17),char(51),char(17),char(51),char(51), -char(51),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(33),char(3), -char(38),char(39),char(35),char(6),char(7),char(3),char(35),char(1),char(51),char(18), -char(18),char(23),char(51),char(54),char(54),char(55),char(19),char(51),char(19),char(22), -char(23),char(51),char(54),char(54),char(19),char(51),char(1),char(4),char(47),char(201), -char(19),char(52),char(8),char(40),char(30),char(207),char(192),char(254),char(213),char(174), -char(106),char(111),char(8),char(8),char(11),char(49),char(18),char(201),char(180),char(196), -char(56),char(20),char(8),char(4),char(35),char(191),char(172),char(254),char(209),char(2), -char(131),char(59),char(209),char(175),char(95),char(253),char(127),char(4),char(72),char(254), -char(99),char(254),char(80),char(75),char(57),char(181),char(53),char(2),char(117),char(253), -char(139),char(172),char(117),char(36),char(150),char(2),char(220),char(251),char(184),char(0), -char(0),char(1),char(0),char(39),char(0),char(0),char(4),char(8),char(4),char(72), -char(0),char(11),char(0),char(34),char(64),char(17),char(7),char(5),char(6),char(0), -char(1),char(5),char(12),char(13),char(9),char(3),char(1),char(8),char(11),char(21), -char(4),char(1),char(15),char(0),char(63),char(51),char(63),char(51),char(18),char(57), -char(57),char(17),char(18),char(1),char(23),char(57),char(49),char(48),char(1),char(1), -char(51),char(1),char(1),char(51),char(1),char(1),char(35),char(1),char(1),char(35), -char(1),char(184),char(254),char(131),char(189),char(1),char(33),char(1),char(32),char(187), -char(254),char(131),char(1),char(145),char(188),char(254),char(205),char(254),char(202),char(188), -char(2),char(49),char(2),char(23),char(254),char(92),char(1),char(164),char(253),char(233), -char(253),char(207),char(1),char(188),char(254),char(68),char(0),char(1),char(0),char(2), -char(254),char(20),char(4),char(6),char(4),char(72),char(0),char(21),char(0),char(36), -char(64),char(18),char(9),char(15),char(0),char(3),char(22),char(23),char(4),char(13), -char(0),char(13),char(18),char(70),char(89),char(13),char(27),char(8),char(0),char(15), -char(0),char(63),char(50),char(63),char(43),char(17),char(18),char(0),char(57),char(17), -char(18),char(1),char(23),char(57),char(49),char(48),char(19),char(51),char(19),char(22), -char(23),char(51),char(54),char(54),char(19),char(51),char(1),char(6),char(6),char(35), -char(34),char(39),char(53),char(22),char(51),char(50),char(55),char(55),char(2),char(178), -char(240),char(79),char(19),char(8),char(13),char(83),char(230),char(178),char(254),char(41), -char(70),char(187),char(136),char(76),char(74),char(55),char(68),char(171),char(73),char(61), -char(4),char(72),char(253),char(143),char(214),char(95),char(51),char(247),char(2),char(124), -char(251),char(32),char(185),char(155),char(17),char(133),char(12),char(192),char(156),char(0), -char(0),char(1),char(0),char(82),char(0),char(0),char(3),char(109),char(4),char(72), -char(0),char(9),char(0),char(43),char(64),char(23),char(8),char(1),char(3),char(7), -char(0),char(7),char(4),char(1),char(4),char(10),char(11),char(5),char(4),char(71), -char(89),char(5),char(15),char(1),char(8),char(71),char(89),char(1),char(21),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(53), -char(1),char(33),char(53),char(33),char(21),char(1),char(33),char(3),char(109),char(252), -char(229),char(2),char(86),char(253),char(207),char(2),char(231),char(253),char(178),char(2), -char(93),char(113),char(3),char(86),char(129),char(129),char(252),char(186),char(0),char(1), -char(0),char(61),char(254),char(188),char(2),char(193),char(5),char(182),char(0),char(28), -char(0),char(44),char(64),char(21),char(25),char(26),char(26),char(11),char(23),char(0), -char(0),char(15),char(7),char(20),char(3),char(3),char(7),char(11),char(3),char(29), -char(30),char(19),char(3),char(4),char(39),char(0),char(63),char(63),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(20),char(22),char(23), -char(21),char(38),char(38),char(53),char(17),char(52),char(38),char(35),char(53),char(54), -char(54),char(53),char(17),char(52),char(54),char(51),char(21),char(6),char(21),char(17), -char(20),char(7),char(21),char(22),char(21),char(1),char(219),char(117),char(113),char(190), -char(208),char(126),char(120),char(130),char(116),char(216),char(182),char(230),char(223),char(223), -char(12),char(102),char(92),char(2),char(140),char(2),char(170),char(154),char(1),char(47), -char(104),char(89),char(141),char(2),char(92),char(96),char(1),char(50),char(155),char(172), -char(139),char(6),char(193),char(254),char(217),char(215),char(39),char(12),char(39),char(215), -char(0),char(1),char(1),char(238),char(254),char(16),char(2),char(123),char(6),char(20), -char(0),char(3),char(0),char(22),char(64),char(9),char(2),char(3),char(3),char(4), -char(5),char(3),char(27),char(0),char(0),char(0),char(63),char(63),char(17),char(18), -char(1),char(57),char(17),char(51),char(49),char(48),char(1),char(51),char(17),char(35), -char(1),char(238),char(141),char(141),char(6),char(20),char(247),char(252),char(0),char(1), -char(0),char(72),char(254),char(188),char(2),char(203),char(5),char(182),char(0),char(29), -char(0),char(44),char(64),char(21),char(21),char(5),char(10),char(18),char(18),char(2), -char(25),char(0),char(29),char(29),char(14),char(14),char(25),char(5),char(3),char(30), -char(31),char(21),char(39),char(6),char(3),char(0),char(63),char(63),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(38),char(53),char(17), -char(52),char(39),char(53),char(50),char(22),char(21),char(17),char(20),char(22),char(23), -char(21),char(34),char(6),char(21),char(17),char(20),char(6),char(7),char(53),char(54), -char(54),char(53),char(17),char(52),char(54),char(55),char(2),char(10),char(223),char(227), -char(184),char(211),char(118),char(130),char(122),char(126),char(205),char(190),char(111),char(116), -char(110),char(113),char(2),char(63),char(39),char(215),char(1),char(39),char(193),char(6), -char(139),char(174),char(153),char(254),char(206),char(97),char(91),char(2),char(141),char(89), -char(104),char(254),char(209),char(153),char(171),char(2),char(140),char(2),char(92),char(102), -char(1),char(41),char(114),char(120),char(20),char(0),char(0),char(1),char(0),char(104), -char(2),char(80),char(4),char(41),char(3),char(84),char(0),char(23),char(0),char(36), -char(64),char(17),char(3),char(15),char(24),char(25),char(18),char(12),char(80),char(89), -char(3),char(18),char(15),char(6),char(6),char(0),char(80),char(89),char(6),char(0), -char(47),char(43),char(0),char(16),char(24),char(196),char(47),char(196),char(43),char(17), -char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(34),char(6),char(7), -char(53),char(54),char(51),char(50),char(22),char(23),char(22),char(22),char(51),char(50), -char(54),char(55),char(21),char(6),char(35),char(34),char(38),char(39),char(38),char(38), -char(1),char(82),char(53),char(127),char(54),char(100),char(144),char(68),char(113),char(89), -char(66),char(98),char(47),char(54),char(128),char(54),char(102),char(142),char(72),char(126), -char(72),char(75),char(90),char(2),char(201),char(67),char(54),char(151),char(109),char(28), -char(38),char(28),char(27),char(64),char(57),char(150),char(110),char(33),char(32),char(32), -char(24),char(0),char(0),char(2),char(0),char(152),char(254),char(139),char(1),char(137), -char(4),char(94),char(0),char(3),char(0),char(14),char(0),char(43),char(64),char(20), -char(2),char(4),char(4),char(3),char(9),char(9),char(15),char(16),char(0),char(0), -char(3),char(12),char(12),char(6),char(79),char(89),char(12),char(16),char(3),char(34), -char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(17),char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(19),char(51),char(19),char(35),char(19),char(20),char(35),char(34),char(38), -char(53),char(52),char(54),char(51),char(50),char(22),char(219),char(105),char(51),char(207), -char(225),char(121),char(60),char(60),char(63),char(57),char(51),char(70),char(2),char(172), -char(251),char(223),char(5),char(76),char(135),char(71),char(64),char(63),char(72),char(64), -char(0),char(1),char(0),char(190),char(255),char(236),char(3),char(219),char(5),char(203), -char(0),char(27),char(0),char(62),char(64),char(30),char(22),char(8),char(13),char(3), -char(3),char(10),char(4),char(0),char(16),char(16),char(4),char(8),char(3),char(28), -char(29),char(25),char(5),char(2),char(19),char(10),char(13),char(2),char(13),char(2), -char(13),char(4),char(11),char(7),char(4),char(25),char(0),char(63),char(63),char(18), -char(57),char(57),char(47),char(47),char(17),char(51),char(51),char(17),char(51),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(6),char(7),char(21), -char(35),char(53),char(38),char(2),char(53),char(16),char(37),char(53),char(51),char(21), -char(22),char(22),char(23),char(7),char(38),char(35),char(34),char(6),char(21),char(20), -char(22),char(51),char(50),char(55),char(3),char(203),char(105),char(147),char(133),char(203), -char(193),char(1),char(140),char(135),char(75),char(142),char(49),char(49),char(133),char(109), -char(172),char(162),char(159),char(167),char(141),char(142),char(240),char(54),char(6),char(200), -char(206),char(32),char(1),char(17),char(250),char(1),char(252),char(62),char(172),char(164), -char(3),char(33),char(23),char(140),char(51),char(211),char(217),char(212),char(203),char(59), -char(0),char(1),char(0),char(63),char(0),char(0),char(4),char(68),char(5),char(201), -char(0),char(29),char(0),char(72),char(64),char(38),char(24),char(19),char(9),char(13), -char(13),char(26),char(22),char(17),char(2),char(11),char(22),char(19),char(5),char(30), -char(31),char(12),char(24),char(25),char(24),char(78),char(89),char(9),char(25),char(25), -char(19),char(0),char(19),char(16),char(76),char(89),char(19),char(24),char(0),char(5), -char(75),char(89),char(0),char(7),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(51),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(50),char(23),char(7), -char(38),char(35),char(34),char(6),char(21),char(17),char(33),char(21),char(33),char(21), -char(20),char(6),char(7),char(33),char(21),char(33),char(53),char(54),char(53),char(53), -char(35),char(53),char(51),char(17),char(52),char(54),char(2),char(170),char(190),char(170), -char(61),char(154),char(143),char(123),char(125),char(1),char(166),char(254),char(90),char(65), -char(74),char(3),char(27),char(251),char(251),char(205),char(198),char(198),char(224),char(5), -char(201),char(84),char(133),char(77),char(124),char(140),char(254),char(217),char(127),char(221), -char(100),char(136),char(44),char(154),char(141),char(47),char(244),char(223),char(127),char(1), -char(60),char(178),char(205),char(0),char(0),char(2),char(0),char(123),char(1),char(6), -char(4),char(23),char(4),char(160),char(0),char(27),char(0),char(39),char(0),char(32), -char(64),char(13),char(28),char(0),char(34),char(14),char(0),char(14),char(40),char(41), -char(31),char(21),char(21),char(37),char(7),char(0),char(47),char(51),char(51),char(47), -char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(19),char(52),char(55),char(39),char(55),char(23),char(54),char(51), -char(50),char(23),char(55),char(23),char(7),char(22),char(21),char(20),char(7),char(23), -char(7),char(39),char(6),char(35),char(34),char(39),char(7),char(39),char(55),char(38), -char(55),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(34),char(6),char(184),char(74),char(135),char(94),char(135),char(104),char(130),char(127), -char(102),char(137),char(95),char(134),char(74),char(74),char(131),char(92),char(137),char(102), -char(127),char(134),char(100),char(135),char(92),char(133),char(74),char(129),char(157),char(116), -char(116),char(158),char(160),char(114),char(116),char(157),char(2),char(211),char(122),char(107), -char(140),char(92),char(133),char(73),char(73),char(133),char(92),char(138),char(113),char(118), -char(131),char(103),char(135),char(92),char(133),char(71),char(73),char(133),char(92),char(136), -char(107),char(124),char(112),char(160),char(159),char(113),char(114),char(162),char(164),char(0), -char(0),char(1),char(0),char(31),char(0),char(0),char(4),char(113),char(5),char(182), -char(0),char(22),char(0),char(86),char(64),char(46),char(18),char(14),char(7),char(11), -char(11),char(16),char(12),char(5),char(9),char(2),char(9),char(3),char(12),char(20), -char(14),char(21),char(7),char(23),char(24),char(10),char(14),char(14),char(7),char(15), -char(6),char(18),char(18),char(3),char(0),char(19),char(21),char(15),char(19),char(31), -char(19),char(2),char(15),char(19),char(15),char(19),char(12),char(1),char(21),char(6), -char(12),char(24),char(0),char(63),char(63),char(51),char(18),char(57),char(57),char(47), -char(47),char(93),char(17),char(18),char(57),char(50),char(50),char(17),char(51),char(17), -char(51),char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(1),char(51),char(1),char(33),char(21),char(33),char(21),char(33),char(21), -char(33),char(17),char(35),char(17),char(33),char(53),char(33),char(53),char(33),char(53), -char(33),char(1),char(51),char(2),char(72),char(1),char(123),char(174),char(254),char(96), -char(1),char(6),char(254),char(195),char(1),char(61),char(254),char(195),char(164),char(254), -char(196),char(1),char(60),char(254),char(196),char(1),char(0),char(254),char(101),char(178), -char(2),char(223),char(2),char(215),char(252),char(254),char(127),char(170),char(127),char(254), -char(244),char(1),char(12),char(127),char(170),char(127),char(3),char(2),char(0),char(2), -char(1),char(238),char(254),char(16),char(2),char(123),char(6),char(20),char(0),char(3), -char(0),char(7),char(0),char(36),char(64),char(16),char(2),char(6),char(6),char(3), -char(7),char(7),char(8),char(9),char(4),char(3),char(4),char(3),char(7),char(27), -char(0),char(0),char(0),char(63),char(63),char(57),char(57),char(47),char(47),char(17), -char(18),char(1),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48), -char(1),char(51),char(17),char(35),char(17),char(51),char(17),char(35),char(1),char(238), -char(141),char(141),char(141),char(141),char(6),char(20),char(252),char(248),char(254),char(13), -char(252),char(247),char(0),char(2),char(0),char(123),char(255),char(248),char(3),char(150), -char(6),char(29),char(0),char(49),char(0),char(61),char(0),char(67),char(64),char(38), -char(50),char(0),char(19),char(6),char(42),char(30),char(56),char(25),char(25),char(30), -char(12),char(6),char(0),char(35),char(6),char(62),char(63),char(21),char(3),char(59), -char(54),char(28),char(45),char(6),char(33),char(9),char(33),char(39),char(71),char(89), -char(33),char(21),char(9),char(16),char(71),char(89),char(9),char(0),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(23),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(19),char(52),char(54),char(55),char(38), -char(38),char(53),char(52),char(54),char(51),char(50),char(22),char(23),char(7),char(38), -char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(23),char(22),char(22), -char(21),char(20),char(6),char(7),char(22),char(21),char(20),char(6),char(35),char(34), -char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53),char(52),char(38), -char(38),char(39),char(46),char(2),char(55),char(20),char(22),char(23),char(23),char(54), -char(53),char(52),char(38),char(39),char(6),char(6),char(139),char(86),char(78),char(74), -char(84),char(207),char(197),char(94),char(159),char(97),char(53),char(98),char(135),char(76), -char(116),char(116),char(123),char(154),char(186),char(150),char(82),char(74),char(153),char(234), -char(212),char(218),char(128),char(78),char(194),char(82),char(134),char(141),char(48),char(108), -char(115),char(142),char(134),char(66),char(146),char(132),char(167),char(49),char(137),char(147), -char(185),char(68),char(85),char(3),char(41),char(86),char(137),char(37),char(40),char(111), -char(85),char(121),char(139),char(29),char(39),char(131),char(39),char(27),char(59),char(64), -char(60),char(84),char(55),char(68),char(151),char(107),char(90),char(141),char(41),char(81), -char(146),char(140),char(153),char(65),char(148),char(37),char(45),char(76),char(71),char(46), -char(58),char(58),char(43),char(52),char(90),char(114),char(98),char(77),char(105),char(61), -char(19),char(80),char(111),char(83),char(112),char(57),char(19),char(100),char(0),char(2), -char(1),char(53),char(5),char(14),char(3),char(104),char(5),char(211),char(0),char(11), -char(0),char(23),char(0),char(30),char(64),char(12),char(6),char(0),char(12),char(18), -char(0),char(18),char(24),char(25),char(15),char(3),char(21),char(9),char(0),char(47), -char(51),char(205),char(50),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(52),char(54),char(51),char(50),char(22), -char(21),char(20),char(6),char(35),char(34),char(38),char(37),char(52),char(54),char(51), -char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(1),char(53), -char(53),char(37),char(38),char(55),char(55),char(38),char(37),char(53),char(1),char(125), -char(53),char(37),char(37),char(55),char(55),char(37),char(37),char(53),char(5),char(113), -char(52),char(46),char(46),char(52),char(50),char(49),char(49),char(50),char(52),char(46), -char(46),char(52),char(50),char(49),char(49),char(0),char(0),char(3),char(0),char(100), -char(255),char(236),char(6),char(68),char(5),char(203),char(0),char(22),char(0),char(38), -char(0),char(54),char(0),char(70),char(64),char(39),char(39),char(23),char(3),char(15), -char(47),char(31),char(31),char(20),char(9),char(15),char(23),char(5),char(55),char(56), -char(6),char(12),char(0),char(18),char(15),char(12),char(31),char(12),char(2),char(0), -char(18),char(16),char(18),char(2),char(12),char(18),char(12),char(18),char(27),char(43), -char(35),char(19),char(51),char(27),char(4),char(0),char(63),char(51),char(63),char(51), -char(18),char(57),char(57),char(47),char(47),char(93),char(93),char(17),char(51),char(17), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(34),char(6),char(21),char(20),char(22), -char(51),char(50),char(55),char(21),char(6),char(6),char(35),char(34),char(38),char(53), -char(52),char(54),char(51),char(50),char(23),char(7),char(38),char(1),char(52),char(18), -char(36),char(51),char(50),char(4),char(18),char(21),char(20),char(2),char(4),char(35), -char(34),char(36),char(2),char(55),char(20),char(18),char(4),char(51),char(50),char(36), -char(18),char(53),char(52),char(2),char(36),char(35),char(34),char(4),char(2),char(3), -char(125),char(125),char(135),char(127),char(131),char(86),char(125),char(48),char(101),char(70), -char(194),char(208),char(221),char(191),char(128),char(118),char(58),char(108),char(252),char(151), -char(200),char(1),char(94),char(202),char(200),char(1),char(94),char(202),char(194),char(254), -char(162),char(208),char(207),char(254),char(162),char(195),char(105),char(174),char(1),char(45), -char(172),char(174),char(1),char(42),char(175),char(174),char(254),char(215),char(176),char(174), -char(254),char(214),char(175),char(4),char(35),char(174),char(154),char(168),char(162),char(45), -char(124),char(20),char(28),char(241),char(216),char(209),char(246),char(60),char(118),char(51), -char(254),char(184),char(200),char(1),char(94),char(202),char(200),char(254),char(162),char(202), -char(197),char(254),char(166),char(208),char(207),char(1),char(90),char(198),char(173),char(254), -char(211),char(173),char(174),char(1),char(41),char(176),char(174),char(1),char(42),char(175), -char(174),char(254),char(215),char(0),char(0),char(2),char(0),char(70),char(3),char(20), -char(2),char(113),char(5),char(199),char(0),char(22),char(0),char(31),char(0),char(55), -char(64),char(28),char(23),char(6),char(27),char(10),char(1),char(1),char(22),char(22), -char(16),char(6),char(3),char(32),char(33),char(28),char(10),char(10),char(18),char(25), -char(22),char(0),char(3),char(16),char(3),char(2),char(3),char(13),char(18),char(31), -char(0),char(63),char(51),char(212),char(93),char(196),char(51),char(18),char(57),char(47), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(1),char(39),char(6),char(35),char(34), -char(38),char(53),char(52),char(54),char(55),char(55),char(53),char(52),char(35),char(34), -char(7),char(39),char(54),char(51),char(50),char(22),char(21),char(17),char(37),char(20), -char(51),char(50),char(53),char(53),char(7),char(6),char(6),char(2),char(20),char(24), -char(92),char(140),char(95),char(111),char(154),char(165),char(117),char(148),char(100),char(104), -char(43),char(114),char(133),char(130),char(137),char(254),char(80),char(112),char(201),char(98), -char(112),char(103),char(3),char(33),char(84),char(97),char(99),char(102),char(102),char(105), -char(6),char(4),char(39),char(133),char(51),char(96),char(56),char(105),char(121),char(254), -char(60),char(188),char(100),char(180),char(49),char(4),char(4),char(57),char(0),char(2), -char(0),char(82),char(0),char(117),char(3),char(170),char(3),char(190),char(0),char(6), -char(0),char(13),char(0),char(41),char(64),char(19),char(3),char(6),char(10),char(13), -char(2),char(4),char(11),char(9),char(9),char(4),char(13),char(6),char(4),char(14), -char(15),char(12),char(5),char(8),char(1),char(0),char(47),char(51),char(47),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(19),char(1),char(23),char(1),char(1), -char(7),char(1),char(37),char(1),char(23),char(1),char(1),char(7),char(1),char(82), -char(1),char(86),char(119),char(254),char(223),char(1),char(33),char(119),char(254),char(170), -char(1),char(139),char(1),char(88),char(117),char(254),char(225),char(1),char(31),char(117), -char(254),char(168),char(2),char(39),char(1),char(151),char(69),char(254),char(162),char(254), -char(161),char(71),char(1),char(151),char(27),char(1),char(151),char(69),char(254),char(162), -char(254),char(161),char(71),char(1),char(151),char(0),char(0),char(1),char(0),char(104), -char(1),char(8),char(4),char(41),char(3),char(23),char(0),char(5),char(0),char(27), -char(64),char(12),char(2),char(1),char(4),char(1),char(6),char(7),char(5),char(4), -char(80),char(89),char(5),char(2),char(0),char(47),char(47),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(49),char(48),char(1),char(17),char(35), -char(17),char(33),char(53),char(4),char(41),char(137),char(252),char(200),char(3),char(23), -char(253),char(241),char(1),char(133),char(138),char(0),char(255),char(255),char(0),char(84), -char(1),char(217),char(2),char(63),char(2),char(113),char(2),char(6),char(0),char(16), -char(0),char(0),char(0),char(4),char(0),char(100),char(255),char(236),char(6),char(68), -char(5),char(203),char(0),char(8),char(0),char(22),char(0),char(38),char(0),char(54), -char(0),char(93),char(64),char(51),char(39),char(23),char(0),char(17),char(17),char(18), -char(4),char(9),char(47),char(31),char(31),char(13),char(9),char(12),char(18),char(23), -char(6),char(55),char(56),char(12),char(16),char(16),char(0),char(0),char(14),char(19), -char(14),char(18),char(8),char(19),char(15),char(18),char(31),char(18),char(2),char(0), -char(19),char(16),char(19),char(2),char(18),char(19),char(18),char(19),char(27),char(43), -char(35),char(19),char(51),char(27),char(4),char(0),char(63),char(51),char(63),char(51), -char(18),char(57),char(57),char(47),char(47),char(93),char(93),char(17),char(51),char(17), -char(51),char(17),char(18),char(57),char(47),char(51),char(17),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(35),char(5),char(20),char(6),char(7),char(19),char(35), -char(3),char(35),char(17),char(35),char(17),char(33),char(50),char(22),char(1),char(52), -char(18),char(36),char(51),char(50),char(4),char(18),char(21),char(20),char(2),char(4), -char(35),char(34),char(36),char(2),char(55),char(20),char(18),char(4),char(51),char(50), -char(36),char(18),char(53),char(52),char(2),char(36),char(35),char(34),char(4),char(2), -char(2),char(211),char(108),char(80),char(97),char(86),char(93),char(106),char(1),char(178), -char(85),char(77),char(238),char(168),char(207),char(135),char(148),char(1),char(5),char(166), -char(155),char(251),char(223),char(200),char(1),char(94),char(202),char(200),char(1),char(94), -char(202),char(194),char(254),char(162),char(208),char(207),char(254),char(162),char(195),char(105), -char(174),char(1),char(45),char(172),char(174),char(1),char(42),char(175),char(174),char(254), -char(215),char(176),char(174),char(254),char(214),char(175),char(2),char(250),char(83),char(64), -char(75),char(65),char(136),char(80),char(123),char(30),char(254),char(117),char(1),char(98), -char(254),char(158),char(3),char(123),char(130),char(254),char(197),char(200),char(1),char(94), -char(202),char(200),char(254),char(162),char(202),char(197),char(254),char(166),char(208),char(207), -char(1),char(90),char(198),char(173),char(254),char(211),char(173),char(174),char(1),char(41), -char(176),char(174),char(1),char(42),char(175),char(174),char(254),char(215),char(0),char(1), -char(255),char(250),char(6),char(20),char(4),char(6),char(6),char(147),char(0),char(3), -char(0),char(17),char(181),char(0),char(5),char(1),char(4),char(1),char(2),char(0), -char(47),char(51),char(17),char(1),char(51),char(17),char(51),char(49),char(48),char(1), -char(33),char(53),char(33),char(4),char(6),char(251),char(244),char(4),char(12),char(6), -char(20),char(127),char(0),char(2),char(0),char(127),char(3),char(92),char(2),char(238), -char(5),char(203),char(0),char(12),char(0),char(24),char(0),char(33),char(64),char(14), -char(13),char(0),char(19),char(6),char(0),char(6),char(25),char(26),char(16),char(10), -char(192),char(22),char(3),char(4),char(0),char(63),char(51),char(26),char(204),char(50), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(19),char(52),char(54),char(51),char(50),char(22),char(21),char(20),char(6), -char(6),char(35),char(34),char(38),char(55),char(20),char(22),char(51),char(50),char(54), -char(53),char(52),char(38),char(35),char(34),char(6),char(127),char(181),char(130),char(130), -char(182),char(82),char(146),char(84),char(130),char(181),char(115),char(117),char(81),char(80), -char(115),char(113),char(82),char(83),char(115),char(4),char(147),char(130),char(182),char(181), -char(131),char(84),char(143),char(84),char(180),char(131),char(82),char(114),char(113),char(83), -char(84),char(113),char(114),char(0),char(255),char(255),char(0),char(104),char(0),char(1), -char(4),char(41),char(4),char(195),char(2),char(38),char(0),char(14),char(0),char(0), -char(0),char(7),char(2),char(43),char(0),char(0),char(253),char(116),char(0),char(1), -char(0),char(49),char(2),char(74),char(2),char(141),char(5),char(201),char(0),char(24), -char(0),char(35),char(64),char(17),char(7),char(19),char(23),char(1),char(1),char(14), -char(19),char(0),char(4),char(26),char(25),char(10),char(16),char(31),char(23),char(1), -char(32),char(0),char(63),char(51),char(63),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(53), -char(55),char(62),char(2),char(53),char(52),char(38),char(35),char(34),char(6),char(7), -char(39),char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(7),char(7), -char(33),char(2),char(141),char(253),char(164),char(236),char(89),char(82),char(33),char(80), -char(63),char(52),char(98),char(69),char(66),char(131),char(152),char(132),char(147),char(89), -char(147),char(174),char(1),char(184),char(2),char(74),char(104),char(230),char(86),char(97), -char(76),char(54),char(68),char(69),char(38),char(50),char(88),char(111),char(130),char(112), -char(80),char(151),char(138),char(165),char(0),char(1),char(0),char(33),char(2),char(57), -char(2),char(141),char(5),char(201),char(0),char(35),char(0),char(57),char(64),char(34), -char(15),char(5),char(5),char(0),char(3),char(18),char(30),char(10),char(6),char(36), -char(37),char(18),char(93),char(19),char(109),char(19),char(2),char(76),char(19),char(1), -char(11),char(19),char(27),char(19),char(2),char(19),char(19),char(8),char(26),char(33), -char(31),char(13),char(8),char(33),char(0),char(63),char(51),char(63),char(51),char(18), -char(57),char(47),char(93),char(93),char(93),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(49),char(48),char(1),char(20),char(6),char(7),char(22), -char(21),char(20),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50), -char(53),char(52),char(35),char(35),char(53),char(51),char(50),char(54),char(53),char(52), -char(38),char(35),char(34),char(6),char(7),char(39),char(54),char(54),char(51),char(50), -char(22),char(2),char(115),char(82),char(68),char(176),char(184),char(168),char(152),char(116), -char(147),char(123),char(211),char(231),char(117),char(119),char(103),char(99),char(80),char(67), -char(66),char(112),char(56),char(69),char(63),char(140),char(94),char(136),char(157),char(4), -char(231),char(80),char(103),char(23),char(47),char(162),char(128),char(143),char(56),char(123), -char(68),char(162),char(145),char(107),char(79),char(68),char(61),char(68),char(43),char(35), -char(90),char(45),char(54),char(119),char(0),char(1),char(1),char(137),char(4),char(217), -char(3),char(18),char(6),char(33),char(0),char(9),char(0),char(19),char(182),char(9), -char(4),char(10),char(11),char(4),char(128),char(9),char(0),char(47),char(26),char(205), -char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(54),char(54), -char(55),char(51),char(21),char(6),char(6),char(7),char(35),char(1),char(137),char(48), -char(111),char(32),char(202),char(44),char(174),char(64),char(111),char(4),char(242),char(62), -char(176),char(65),char(21),char(65),char(190),char(52),char(0),char(1),char(0),char(176), -char(254),char(20),char(4),char(68),char(4),char(72),char(0),char(22),char(0),char(53), -char(64),char(26),char(5),char(10),char(10),char(8),char(16),char(0),char(19),char(19), -char(20),char(8),char(20),char(24),char(23),char(6),char(21),char(15),char(20),char(27), -char(13),char(2),char(70),char(89),char(13),char(22),char(9),char(21),char(0),char(63), -char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(16),char(51),char(50),char(54),char(53),char(17), -char(51),char(17),char(35),char(39),char(35),char(6),char(35),char(34),char(39),char(35), -char(22),char(21),char(17),char(35),char(17),char(51),char(1),char(86),char(254),char(171), -char(159),char(166),char(136),char(26),char(10),char(111),char(229),char(150),char(88),char(10), -char(10),char(166),char(166),char(1),char(125),char(254),char(250),char(189),char(212),char(2), -char(64),char(251),char(184),char(147),char(167),char(92),char(84),char(160),char(254),char(192), -char(6),char(52),char(0),char(1),char(0),char(113),char(254),char(252),char(4),char(96), -char(6),char(20),char(0),char(15),char(0),char(39),char(64),char(18),char(4),char(5), -char(1),char(0),char(0),char(5),char(11),char(3),char(16),char(17),char(8),char(8), -char(5),char(3),char(15),char(5),char(1),char(5),char(0),char(47),char(51),char(63), -char(51),char(18),char(57),char(47),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(35),char(17),char(35),char(17), -char(35),char(17),char(6),char(35),char(34),char(38),char(53),char(16),char(54),char(51), -char(33),char(4),char(96),char(114),char(213),char(115),char(62),char(84),char(216),char(203), -char(218),char(232),char(2),char(45),char(254),char(252),char(6),char(176),char(249),char(80), -char(3),char(51),char(18),char(250),char(251),char(1),char(4),char(254),char(0),char(1), -char(0),char(152),char(2),char(76),char(1),char(137),char(3),char(90),char(0),char(11), -char(0),char(23),char(64),char(10),char(6),char(0),char(0),char(13),char(12),char(3), -char(9),char(79),char(89),char(3),char(0),char(47),char(43),char(17),char(18),char(1), -char(57),char(17),char(51),char(49),char(48),char(19),char(52),char(54),char(51),char(50), -char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(152),char(62),char(56), -char(58),char(65),char(66),char(57),char(51),char(67),char(2),char(211),char(66),char(69), -char(69),char(66),char(65),char(70),char(63),char(0),char(0),char(1),char(0),char(37), -char(254),char(20),char(1),char(180),char(0),char(0),char(0),char(18),char(0),char(36), -char(64),char(16),char(17),char(14),char(11),char(0),char(0),char(14),char(5),char(3), -char(19),char(20),char(14),char(17),char(17),char(8),char(3),char(16),char(0),char(47), -char(204),char(50),char(57),char(47),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(6),char(35), -char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(53),char(52),char(38), -char(39),char(55),char(51),char(7),char(22),char(1),char(180),char(153),char(150),char(51), -char(45),char(45),char(59),char(79),char(81),char(79),char(109),char(88),char(110),char(55), -char(180),char(254),char(223),char(97),char(106),char(9),char(106),char(8),char(40),char(54), -char(43),char(53),char(17),char(178),char(115),char(39),char(0),char(1),char(0),char(76), -char(2),char(74),char(1),char(225),char(5),char(182),char(0),char(10),char(0),char(32), -char(64),char(14),char(2),char(0),char(3),char(3),char(10),char(12),char(11),char(9), -char(9),char(3),char(32),char(6),char(0),char(30),char(0),char(63),char(50),char(63), -char(57),char(47),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(51), -char(49),char(48),char(1),char(51),char(17),char(35),char(17),char(52),char(55),char(6), -char(6),char(7),char(39),char(1),char(82),char(143),char(133),char(6),char(22),char(54), -char(135),char(67),char(5),char(182),char(252),char(148),char(2),char(67),char(91),char(90), -char(22),char(45),char(95),char(96),char(0),char(2),char(0),char(66),char(3),char(20), -char(2),char(190),char(5),char(199),char(0),char(11),char(0),char(23),char(0),char(37), -char(64),char(18),char(12),char(6),char(18),char(0),char(6),char(0),char(24),char(25), -char(15),char(0),char(3),char(16),char(3),char(2),char(3),char(21),char(9),char(31), -char(0),char(63),char(51),char(196),char(93),char(50),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(6), -char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50),char(22),char(5), -char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(34), -char(6),char(2),char(190),char(171),char(150),char(146),char(169),char(168),char(151),char(152), -char(165),char(253),char(254),char(91),char(104),char(105),char(92),char(92),char(105),char(103), -char(92),char(4),char(111),char(164),char(183),char(186),char(161),char(163),char(181),char(182), -char(162),char(122),char(122),char(122),char(122),char(123),char(118),char(118),char(0),char(2), -char(0),char(80),char(0),char(117),char(3),char(168),char(3),char(190),char(0),char(6), -char(0),char(13),char(0),char(35),char(64),char(17),char(11),char(9),char(4),char(2), -char(0),char(3),char(7),char(2),char(10),char(9),char(6),char(14),char(15),char(12), -char(5),char(8),char(1),char(0),char(47),char(51),char(47),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(1),char(39),char(1),char(1),char(55),char(1),char(5),char(1),char(39),char(1), -char(1),char(55),char(1),char(3),char(168),char(254),char(168),char(117),char(1),char(31), -char(254),char(225),char(117),char(1),char(88),char(254),char(117),char(254),char(168),char(117), -char(1),char(31),char(254),char(225),char(117),char(1),char(88),char(2),char(12),char(254), -char(105),char(71),char(1),char(95),char(1),char(94),char(69),char(254),char(105),char(27), -char(254),char(105),char(71),char(1),char(95),char(1),char(94),char(69),char(254),char(105), -char(255),char(255),char(0),char(75),char(0),char(0),char(5),char(209),char(5),char(182), -char(0),char(39),char(2),char(23),char(2),char(131),char(0),char(0),char(0),char(38), -char(0),char(123),char(255),char(0),char(1),char(7),char(2),char(60),char(3),char(29), -char(253),char(183),char(0),char(9),char(179),char(3),char(2),char(18),char(24),char(0), -char(63),char(53),char(53),char(0),char(255),char(255),char(0),char(46),char(0),char(0), -char(5),char(219),char(5),char(182),char(0),char(39),char(2),char(23),char(2),char(63), -char(0),char(0),char(0),char(38),char(0),char(123),char(226),char(0),char(1),char(7), -char(0),char(116),char(3),char(78),char(253),char(183),char(0),char(7),char(178),char(2), -char(16),char(24),char(0),char(63),char(53),char(0),char(255),char(255),char(0),char(26), -char(0),char(0),char(6),char(33),char(5),char(201),char(0),char(38),char(0),char(117), -char(249),char(0),char(0),char(39),char(2),char(23),char(2),char(223),char(0),char(0), -char(1),char(7),char(2),char(60),char(3),char(109),char(253),char(183),char(0),char(9), -char(179),char(3),char(2),char(43),char(24),char(0),char(63),char(53),char(53),char(0), -char(0),char(2),char(0),char(51),char(254),char(119),char(3),char(84),char(4),char(94), -char(0),char(29),char(0),char(40),char(0),char(65),char(64),char(34),char(8),char(20), -char(30),char(35),char(1),char(28),char(15),char(28),char(35),char(20),char(4),char(41), -char(42),char(0),char(29),char(1),char(12),char(3),char(29),char(29),char(17),char(38), -char(38),char(32),char(79),char(89),char(38),char(16),char(17),char(11),char(73),char(89), -char(17),char(35),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(95),char(94),char(93),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(21),char(20),char(6),char(7),char(14),char(2),char(21),char(20), -char(22),char(51),char(50),char(54),char(55),char(23),char(6),char(35),char(34),char(38), -char(53),char(52),char(62),char(2),char(55),char(54),char(54),char(53),char(53),char(19), -char(20),char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50),char(22), -char(2),char(78),char(75),char(97),char(121),char(61),char(25),char(132),char(122),char(80), -char(150),char(98),char(59),char(197),char(198),char(190),char(216),char(35),char(64),char(89), -char(54),char(101),char(65),char(180),char(121),char(59),char(62),char(66),char(55),char(51), -char(70),char(2),char(172),char(51),char(122),char(148),char(84),char(106),char(75),char(77), -char(56),char(100),char(113),char(38),char(48),char(135),char(96),char(186),char(170),char(70), -char(105),char(89),char(82),char(47),char(88),char(116),char(93),char(31),char(1),char(43), -char(135),char(69),char(66),char(64),char(71),char(64),char(255),char(255),char(0),char(0), -char(0),char(0),char(5),char(16),char(7),char(115),char(2),char(38),char(0),char(36), -char(0),char(0),char(1),char(7),char(0),char(67),char(255),char(194),char(1),char(82), -char(0),char(8),char(179),char(2),char(16),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16),char(7),char(115), -char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7),char(0),char(118), -char(0),char(133),char(1),char(82),char(0),char(8),char(179),char(2),char(24),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(5),char(16),char(7),char(115),char(2),char(38),char(0),char(36),char(0),char(0), -char(1),char(7),char(1),char(75),char(0),char(35),char(1),char(82),char(0),char(8), -char(179),char(2),char(29),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(7),char(47),char(2),char(38), -char(0),char(36),char(0),char(0),char(1),char(7),char(1),char(82),char(0),char(4), -char(1),char(82),char(0),char(8),char(179),char(2),char(24),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16), -char(7),char(37),char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(55),char(1),char(82),char(0),char(10),char(180),char(3), -char(2),char(36),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(7),char(6),char(2),char(38), -char(0),char(36),char(0),char(0),char(0),char(7),char(1),char(80),char(0),char(57), -char(0),char(129),char(0),char(2),char(255),char(254),char(0),char(0),char(6),char(129), -char(5),char(182),char(0),char(15),char(0),char(19),char(0),char(78),char(64),char(44), -char(10),char(14),char(14),char(17),char(1),char(0),char(8),char(12),char(1),char(16), -char(5),char(5),char(21),char(5),char(20),char(9),char(19),char(6),char(19),char(73), -char(89),char(16),char(3),char(73),char(89),char(10),char(13),char(73),char(89),char(16), -char(10),char(16),char(10),char(1),char(6),char(3),char(5),char(18),char(1),char(14), -char(73),char(89),char(1),char(18),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(18),char(57),char(57),char(47),char(47),char(43),char(43),char(43),char(17), -char(0),char(51),char(17),char(1),char(51),char(17),char(18),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(17),char(33), -char(3),char(35),char(1),char(33),char(21),char(33),char(17),char(33),char(21),char(33), -char(17),char(33),char(1),char(33),char(17),char(35),char(6),char(129),char(253),char(18), -char(253),char(254),char(227),char(176),char(2),char(186),char(3),char(201),char(253),char(188), -char(2),char(29),char(253),char(227),char(2),char(68),char(251),char(84),char(1),char(190), -char(118),char(1),char(209),char(254),char(47),char(5),char(182),char(151),char(254),char(41), -char(150),char(253),char(230),char(1),char(210),char(2),char(181),char(0),char(255),char(255), -char(0),char(125),char(254),char(20),char(4),char(207),char(5),char(203),char(2),char(38), -char(0),char(38),char(0),char(0),char(0),char(7),char(0),char(122),char(2),char(2), -char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248), -char(7),char(115),char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7), -char(0),char(67),char(255),char(183),char(1),char(82),char(0),char(8),char(179),char(1), -char(13),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201), -char(0),char(0),char(3),char(248),char(7),char(115),char(2),char(38),char(0),char(40), -char(0),char(0),char(1),char(7),char(0),char(118),char(0),char(63),char(1),char(82), -char(0),char(8),char(179),char(1),char(21),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(115), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(1),char(75), -char(255),char(251),char(1),char(82),char(0),char(8),char(179),char(1),char(26),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(0),char(0), -char(3),char(248),char(7),char(37),char(2),char(38),char(0),char(40),char(0),char(0), -char(1),char(7),char(0),char(106),char(0),char(18),char(1),char(82),char(0),char(10), -char(180),char(2),char(1),char(33),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(60),char(0),char(0),char(2),char(86),char(7),char(115), -char(2),char(38),char(0),char(44),char(0),char(0),char(1),char(7),char(0),char(67), -char(254),char(179),char(1),char(82),char(0),char(8),char(179),char(1),char(13),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(84),char(0),char(0), -char(2),char(115),char(7),char(115),char(2),char(38),char(0),char(44),char(0),char(0), -char(1),char(7),char(0),char(118),char(255),char(97),char(1),char(82),char(0),char(8), -char(179),char(1),char(21),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(255),char(255),char(0),char(0),char(2),char(161),char(7),char(115),char(2),char(38), -char(0),char(44),char(0),char(0),char(1),char(7),char(1),char(75),char(254),char(243), -char(1),char(82),char(0),char(8),char(179),char(1),char(26),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(60),char(0),char(0),char(2),char(111), -char(7),char(37),char(2),char(38),char(0),char(44),char(0),char(0),char(1),char(7), -char(0),char(106),char(255),char(7),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(33),char(5),char(38),char(0),char(43),char(53),char(53),char(0),char(2), -char(0),char(47),char(0),char(0),char(5),char(72),char(5),char(182),char(0),char(12), -char(0),char(23),char(0),char(87),char(64),char(50),char(17),char(21),char(21),char(8), -char(4),char(13),char(0),char(0),char(19),char(4),char(6),char(4),char(24),char(25), -char(20),char(6),char(7),char(6),char(73),char(89),char(17),char(15),char(7),char(63), -char(7),char(175),char(7),char(207),char(7),char(223),char(7),char(5),char(11),char(3), -char(7),char(7),char(4),char(9),char(9),char(16),char(74),char(89),char(9),char(3), -char(4),char(21),char(74),char(89),char(4),char(18),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(95), -char(94),char(93),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(1),char(16),char(0),char(33),char(33),char(17),char(35),char(53),char(51), -char(17),char(33),char(32),char(0),char(3),char(16),char(33),char(35),char(17),char(33), -char(21),char(33),char(17),char(51),char(32),char(5),char(72),char(254),char(119),char(254), -char(143),char(254),char(123),char(154),char(154),char(1),char(178),char(1),char(81),char(1), -char(124),char(181),char(253),char(199),char(231),char(1),char(123),char(254),char(133),char(190), -char(2),char(98),char(2),char(233),char(254),char(150),char(254),char(129),char(2),char(137), -char(150),char(2),char(151),char(254),char(137),char(254),char(164),char(2),char(64),char(253), -char(252),char(150),char(254),char(10),char(255),char(255),char(0),char(201),char(0),char(0), -char(5),char(63),char(7),char(47),char(2),char(38),char(0),char(49),char(0),char(0), -char(1),char(7),char(1),char(82),char(0),char(147),char(1),char(82),char(0),char(8), -char(179),char(1),char(26),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(115),char(2),char(38), -char(0),char(50),char(0),char(0),char(1),char(7),char(0),char(67),char(0),char(121), -char(1),char(82),char(0),char(8),char(179),char(2),char(25),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190), -char(7),char(115),char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7), -char(0),char(118),char(1),char(10),char(1),char(82),char(0),char(8),char(179),char(2), -char(33),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125), -char(255),char(236),char(5),char(190),char(7),char(115),char(2),char(38),char(0),char(50), -char(0),char(0),char(1),char(7),char(1),char(75),char(0),char(180),char(1),char(82), -char(0),char(8),char(179),char(2),char(38),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(47), -char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7),char(1),char(82), -char(0),char(154),char(1),char(82),char(0),char(8),char(179),char(2),char(33),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(5),char(190),char(7),char(37),char(2),char(38),char(0),char(50),char(0),char(0), -char(1),char(7),char(0),char(106),char(0),char(213),char(1),char(82),char(0),char(10), -char(180),char(3),char(2),char(45),char(5),char(38),char(0),char(43),char(53),char(53), -char(0),char(1),char(0),char(133),char(1),char(16),char(4),char(12),char(4),char(152), -char(0),char(11),char(0),char(25),char(64),char(9),char(7),char(9),char(3),char(1), -char(9),char(1),char(12),char(13),char(8),char(0),char(25),char(47),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(23),char(1),char(1),char(7),char(1),char(1),char(39),char(1),char(1),char(55), -char(1),char(3),char(172),char(96),char(254),char(160),char(1),char(94),char(96),char(254), -char(158),char(254),char(164),char(101),char(1),char(94),char(254),char(160),char(100),char(1), -char(97),char(4),char(152),char(99),char(254),char(158),char(254),char(160),char(99),char(1), -char(95),char(254),char(161),char(99),char(1),char(96),char(1),char(96),char(101),char(254), -char(157),char(0),char(0),char(3),char(0),char(125),char(255),char(195),char(5),char(190), -char(5),char(246),char(0),char(19),char(0),char(27),char(0),char(35),char(0),char(78), -char(64),char(44),char(22),char(31),char(23),char(30),char(4),char(28),char(20),char(28), -char(10),char(20),char(0),char(0),char(18),char(15),char(5),char(8),char(10),char(6), -char(36),char(37),char(22),char(30),char(33),char(25),char(13),char(33),char(73),char(89), -char(15),char(18),char(8),char(5),char(4),char(3),char(16),char(13),char(4),char(3), -char(25),char(73),char(89),char(6),char(3),char(19),char(0),char(63),char(198),char(43), -char(0),char(24),char(63),char(198),char(18),char(23),char(57),char(43),char(17),char(18), -char(0),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(18),char(23),char(57),char(49),char(48),char(1),char(16), -char(0),char(33),char(34),char(39),char(7),char(39),char(55),char(38),char(17),char(16), -char(0),char(33),char(50),char(23),char(55),char(23),char(7),char(22),char(3),char(16), -char(39),char(1),char(22),char(51),char(50),char(18),char(1),char(16),char(23),char(1), -char(38),char(35),char(34),char(2),char(5),char(190),char(254),char(157),char(254),char(196), -char(235),char(148),char(101),char(120),char(108),char(178),char(1),char(96),char(1),char(68), -char(209),char(157),char(97),char(120),char(106),char(192),char(180),char(110),char(253),char(96), -char(115),char(176),char(243),char(248),char(252),char(39),char(101),char(2),char(157),char(106), -char(168),char(243),char(253),char(2),char(221),char(254),char(161),char(254),char(110),char(100), -char(141),char(79),char(154),char(198),char(1),char(109),char(1),char(101),char(1),char(137), -char(94),char(135),char(80),char(148),char(202),char(254),char(149),char(1),char(16),char(154), -char(252),char(76),char(82),char(1),char(50),char(1),char(42),char(254),char(250),char(154), -char(3),char(175),char(73),char(254),char(205),char(0),char(255),char(255),char(0),char(186), -char(255),char(236),char(5),char(25),char(7),char(115),char(2),char(38),char(0),char(56), -char(0),char(0),char(1),char(7),char(0),char(67),char(0),char(70),char(1),char(82), -char(0),char(8),char(179),char(1),char(19),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(186),char(255),char(236),char(5),char(25),char(7),char(115), -char(2),char(38),char(0),char(56),char(0),char(0),char(1),char(7),char(0),char(118), -char(0),char(207),char(1),char(82),char(0),char(8),char(179),char(1),char(27),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(186),char(255),char(236), -char(5),char(25),char(7),char(115),char(2),char(38),char(0),char(56),char(0),char(0), -char(1),char(7),char(1),char(75),char(0),char(125),char(1),char(82),char(0),char(8), -char(179),char(1),char(32),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(186),char(255),char(236),char(5),char(25),char(7),char(37),char(2),char(38), -char(0),char(56),char(0),char(0),char(1),char(7),char(0),char(106),char(0),char(152), -char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(39),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(4),char(123),char(7),char(115),char(2),char(38),char(0),char(60),char(0),char(0), -char(1),char(7),char(0),char(118),char(0),char(49),char(1),char(82),char(0),char(8), -char(179),char(1),char(18),char(5),char(38),char(0),char(43),char(53),char(0),char(2), -char(0),char(201),char(0),char(0),char(4),char(121),char(5),char(182),char(0),char(12), -char(0),char(21),char(0),char(54),char(64),char(28),char(13),char(9),char(5),char(5), -char(6),char(17),char(0),char(6),char(0),char(22),char(23),char(13),char(4),char(74), -char(89),char(9),char(21),char(74),char(89),char(13),char(9),char(13),char(9),char(6), -char(7),char(3),char(6),char(18),char(0),char(63),char(63),char(18),char(57),char(57), -char(47),char(47),char(43),char(43),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(1),char(20), -char(4),char(33),char(35),char(17),char(35),char(17),char(51),char(17),char(51),char(32), -char(4),char(1),char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(35), -char(4),char(121),char(254),char(209),char(254),char(225),char(184),char(170),char(170),char(215), -char(1),char(25),char(1),char(22),char(252),char(250),char(168),char(226),char(202),char(190), -char(202),char(204),char(3),char(16),char(227),char(238),char(254),char(193),char(5),char(182), -char(255),char(0),char(207),char(253),char(234),char(143),char(164),char(149),char(138),char(0), -char(0),char(1),char(0),char(176),char(255),char(236),char(4),char(156),char(6),char(31), -char(0),char(48),char(0),char(65),char(64),char(34),char(41),char(42),char(5),char(29), -char(35),char(0),char(23),char(12),char(12),char(0),char(29),char(17),char(42),char(5), -char(49),char(50),char(18),char(18),char(42),char(46),char(46),char(38),char(70),char(89), -char(46),char(0),char(42),char(21),char(15),char(21),char(70),char(89),char(15),char(22), -char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(43),char(17),char(18), -char(0),char(57),char(24),char(47),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(20),char(7),char(6),char(6),char(21),char(20),char(22),char(22),char(23),char(22), -char(22),char(21),char(20),char(6),char(35),char(34),char(39),char(53),char(22),char(22), -char(51),char(50),char(53),char(52),char(38),char(39),char(38),char(38),char(53),char(52), -char(54),char(55),char(54),char(54),char(53),char(52),char(38),char(35),char(32),char(21), -char(17),char(35),char(17),char(52),char(54),char(51),char(50),char(22),char(4),char(25), -char(143),char(88),char(56),char(27),char(71),char(78),char(140),char(102),char(194),char(179), -char(188),char(107),char(63),char(156),char(72),char(215),char(83),char(110),char(127),char(96), -char(69),char(71),char(75),char(64),char(136),char(127),char(254),char(236),char(166),char(220), -char(222),char(206),char(225),char(4),char(242),char(135),char(115),char(70),char(67),char(33), -char(32),char(42),char(57),char(51),char(95),char(157),char(101),char(160),char(171),char(69), -char(154),char(39),char(47),char(182),char(75),char(107),char(70),char(82),char(123),char(84), -char(63),char(106),char(53),char(57),char(90),char(53),char(80),char(85),char(223),char(251), -char(76),char(4),char(178),char(178),char(187),char(157),char(255),char(255),char(0),char(94), -char(255),char(236),char(3),char(205),char(6),char(33),char(2),char(38),char(0),char(68), -char(0),char(0),char(1),char(6),char(0),char(67),char(142),char(0),char(0),char(8), -char(179),char(2),char(38),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(94),char(255),char(236),char(3),char(205),char(6),char(33),char(2),char(38), -char(0),char(68),char(0),char(0),char(1),char(6),char(0),char(118),char(43),char(0), -char(0),char(8),char(179),char(2),char(46),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205),char(6),char(33), -char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(6),char(1),char(75), -char(216),char(0),char(0),char(8),char(179),char(2),char(51),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205), -char(5),char(221),char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(6), -char(1),char(82),char(189),char(0),char(0),char(8),char(179),char(2),char(46),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(94),char(255),char(236), -char(3),char(205),char(5),char(211),char(2),char(38),char(0),char(68),char(0),char(0), -char(1),char(6),char(0),char(106),char(226),char(0),char(0),char(10),char(180),char(3), -char(2),char(58),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(94),char(255),char(236),char(3),char(205),char(6),char(133),char(2),char(38), -char(0),char(68),char(0),char(0),char(1),char(6),char(1),char(80),char(247),char(0), -char(0),char(10),char(180),char(3),char(2),char(40),char(17),char(38),char(0),char(43), -char(53),char(53),char(0),char(3),char(0),char(94),char(255),char(236),char(6),char(115), -char(4),char(92),char(0),char(41),char(0),char(52),char(0),char(59),char(0),char(97), -char(64),char(51),char(42),char(0),char(36),char(17),char(48),char(56),char(25),char(25), -char(4),char(48),char(57),char(24),char(24),char(31),char(48),char(11),char(0),char(5), -char(60),char(61),char(27),char(45),char(39),char(45),char(70),char(89),char(25),char(49), -char(4),char(49),char(71),char(89),char(56),char(36),char(39),char(17),char(4),char(4), -char(14),char(34),char(39),char(22),char(53),char(8),char(14),char(8),char(70),char(89), -char(20),char(14),char(16),char(0),char(63),char(51),char(43),char(17),char(0),char(51), -char(24),char(63),char(51),char(18),char(57),char(47),char(57),char(18),char(57),char(51), -char(43),char(17),char(0),char(51),char(43),char(17),char(0),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51), -char(18),char(57),char(57),char(17),char(51),char(49),char(48),char(19),char(52),char(54), -char(55),char(55),char(53),char(52),char(38),char(35),char(34),char(7),char(39),char(54), -char(54),char(51),char(50),char(22),char(23),char(54),char(54),char(51),char(50),char(18), -char(21),char(21),char(33),char(18),char(33),char(50),char(54),char(55),char(21),char(6), -char(6),char(35),char(32),char(39),char(6),char(6),char(35),char(34),char(38),char(55), -char(20),char(22),char(51),char(50),char(54),char(53),char(53),char(7),char(6),char(6), -char(1),char(34),char(6),char(7),char(33),char(52),char(38),char(94),char(248),char(254), -char(184),char(116),char(119),char(144),char(163),char(52),char(74),char(199),char(98),char(130), -char(165),char(41),char(53),char(171),char(110),char(192),char(232),char(253),char(67),char(8), -char(1),char(58),char(91),char(157),char(84),char(86),char(149),char(101),char(254),char(223), -char(125),char(81),char(197),char(134),char(163),char(185),char(174),char(107),char(88),char(145), -char(168),char(158),char(186),char(164),char(3),char(189),char(121),char(139),char(11),char(2), -char(7),char(128),char(1),char(47),char(161),char(179),char(8),char(6),char(68),char(129), -char(123),char(84),char(127),char(41),char(53),char(87),char(95),char(88),char(96),char(254), -char(245),char(222),char(107),char(254),char(117),char(35),char(39),char(148),char(38),char(33), -char(233),char(127),char(106),char(170),char(151),char(95),char(89),char(169),char(154),char(99), -char(7),char(8),char(109),char(2),char(50),char(166),char(158),char(156),char(168),char(0), -char(255),char(255),char(0),char(115),char(254),char(20),char(3),char(139),char(4),char(92), -char(2),char(38),char(0),char(70),char(0),char(0),char(0),char(7),char(0),char(122), -char(1),char(70),char(0),char(0),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(18),char(6),char(33),char(2),char(38),char(0),char(72),char(0),char(0), -char(1),char(6),char(0),char(67),char(181),char(0),char(0),char(8),char(179),char(2), -char(28),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(18),char(6),char(33),char(2),char(38),char(0),char(72), -char(0),char(0),char(1),char(6),char(0),char(118),char(78),char(0),char(0),char(8), -char(179),char(2),char(36),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(18),char(6),char(33),char(2),char(38), -char(0),char(72),char(0),char(0),char(1),char(6),char(1),char(75),char(247),char(0), -char(0),char(8),char(179),char(2),char(41),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(18),char(5),char(211), -char(2),char(38),char(0),char(72),char(0),char(0),char(1),char(6),char(0),char(106), -char(10),char(0),char(0),char(10),char(180),char(3),char(2),char(48),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(255),char(218),char(0),char(0), -char(1),char(99),char(6),char(33),char(2),char(38),char(0),char(243),char(0),char(0), -char(1),char(7),char(0),char(67),char(254),char(81),char(0),char(0),char(0),char(8), -char(179),char(1),char(5),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(169),char(0),char(0),char(2),char(50),char(6),char(33),char(2),char(38), -char(0),char(243),char(0),char(0),char(1),char(7),char(0),char(118),char(255),char(32), -char(0),char(0),char(0),char(8),char(179),char(1),char(13),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(255),char(179),char(0),char(0),char(2),char(85), -char(6),char(33),char(2),char(38),char(0),char(243),char(0),char(0),char(1),char(7), -char(1),char(75),char(254),char(167),char(0),char(0),char(0),char(8),char(179),char(1), -char(18),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(255),char(236), -char(0),char(0),char(2),char(31),char(5),char(211),char(2),char(38),char(0),char(243), -char(0),char(0),char(1),char(7),char(0),char(106),char(254),char(183),char(0),char(0), -char(0),char(10),char(180),char(2),char(1),char(25),char(17),char(38),char(0),char(43), -char(53),char(53),char(0),char(2),char(0),char(113),char(255),char(236),char(4),char(98), -char(6),char(33),char(0),char(27),char(0),char(38),char(0),char(74),char(64),char(43), -char(33),char(6),char(12),char(28),char(28),char(0),char(0),char(24),char(25),char(22), -char(14),char(17),char(19),char(16),char(6),char(9),char(39),char(40),char(9),char(31), -char(70),char(89),char(11),char(3),char(22),char(17),char(25),char(14),char(15),char(5), -char(20),char(9),char(9),char(3),char(23),char(20),char(1),char(3),char(36),char(70), -char(89),char(3),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(51), -char(18),char(57),char(47),char(18),char(23),char(57),char(18),char(57),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(16),char(0),char(35),char(34),char(0),char(53),char(52), -char(0),char(51),char(50),char(23),char(55),char(38),char(39),char(5),char(39),char(55), -char(38),char(39),char(55),char(22),char(23),char(55),char(23),char(7),char(22),char(18), -char(3),char(52),char(38),char(35),char(32),char(17),char(20),char(22),char(51),char(50), -char(54),char(4),char(98),char(254),char(251),char(247),char(222),char(254),char(233),char(1), -char(7),char(220),char(226),char(100),char(8),char(57),char(205),char(254),char(241),char(73), -char(233),char(92),char(94),char(69),char(156),char(102),char(238),char(76),char(207),char(152), -char(165),char(168),char(180),char(156),char(254),char(175),char(175),char(162),char(175),char(161), -char(2),char(51),char(254),char(231),char(254),char(210),char(1),char(13),char(226),char(230), -char(1),char(6),char(121),char(4),char(214),char(191),char(155),char(108),char(133),char(62), -char(49),char(117),char(73),char(75),char(138),char(107),char(119),char(143),char(254),char(114), -char(254),char(232),char(147),char(170),char(254),char(152),char(167),char(183),char(201),char(0), -char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(68),char(5),char(221), -char(2),char(38),char(0),char(81),char(0),char(0),char(1),char(6),char(1),char(82), -char(14),char(0),char(0),char(8),char(179),char(1),char(30),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98), -char(6),char(33),char(2),char(38),char(0),char(82),char(0),char(0),char(1),char(6), -char(0),char(67),char(212),char(0),char(0),char(8),char(179),char(2),char(26),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(98),char(6),char(33),char(2),char(38),char(0),char(82),char(0),char(0), -char(1),char(6),char(0),char(118),char(86),char(0),char(0),char(8),char(179),char(2), -char(34),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(98),char(6),char(33),char(2),char(38),char(0),char(82), -char(0),char(0),char(1),char(6),char(1),char(75),char(14),char(0),char(0),char(8), -char(179),char(2),char(39),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(98),char(5),char(221),char(2),char(38), -char(0),char(82),char(0),char(0),char(1),char(6),char(1),char(82),char(241),char(0), -char(0),char(8),char(179),char(2),char(34),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98),char(5),char(211), -char(2),char(38),char(0),char(82),char(0),char(0),char(1),char(6),char(0),char(106), -char(27),char(0),char(0),char(10),char(180),char(3),char(2),char(46),char(17),char(38), -char(0),char(43),char(53),char(53),char(0),char(3),char(0),char(104),char(0),char(252), -char(4),char(41),char(4),char(168),char(0),char(3),char(0),char(15),char(0),char(27), -char(0),char(51),char(64),char(24),char(22),char(10),char(10),char(16),char(4),char(2), -char(4),char(1),char(3),char(28),char(29),char(25),char(19),char(19),char(1),char(7), -char(13),char(13),char(1),char(1),char(0),char(80),char(89),char(1),char(0),char(47), -char(43),char(17),char(0),char(51),char(24),char(47),char(51),char(17),char(51),char(47), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(19),char(53),char(33),char(21),char(1),char(52),char(54), -char(51),char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(17), -char(52),char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(35),char(34), -char(38),char(104),char(3),char(193),char(253),char(174),char(59),char(54),char(52),char(58), -char(59),char(51),char(52),char(61),char(59),char(54),char(52),char(58),char(59),char(51), -char(52),char(61),char(2),char(141),char(138),char(138),char(254),char(232),char(60),char(61), -char(63),char(58),char(57),char(64),char(63),char(2),char(244),char(60),char(61),char(63), -char(58),char(57),char(64),char(63),char(0),char(3),char(0),char(115),char(255),char(188), -char(4),char(98),char(4),char(135),char(0),char(19),char(0),char(27),char(0),char(35), -char(0),char(75),char(64),char(41),char(23),char(31),char(28),char(20),char(20),char(10), -char(28),char(0),char(0),char(18),char(15),char(5),char(8),char(10),char(6),char(36), -char(37),char(22),char(30),char(33),char(25),char(13),char(25),char(70),char(89),char(15), -char(18),char(8),char(5),char(4),char(3),char(16),char(13),char(16),char(3),char(33), -char(70),char(89),char(6),char(3),char(22),char(0),char(63),char(198),char(43),char(0), -char(24),char(63),char(198),char(18),char(23),char(57),char(43),char(17),char(18),char(0), -char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(18),char(57),char(57),char(49),char(48),char(1),char(16),char(0), -char(35),char(34),char(39),char(7),char(39),char(55),char(38),char(17),char(16),char(0), -char(51),char(50),char(23),char(55),char(23),char(7),char(22),char(5),char(20),char(23), -char(1),char(38),char(35),char(34),char(6),char(5),char(52),char(39),char(1),char(22), -char(51),char(50),char(54),char(4),char(98),char(254),char(242),char(238),char(154),char(112), -char(84),char(114),char(94),char(129),char(1),char(12),char(238),char(154),char(116),char(84), -char(117),char(97),char(127),char(252),char(189),char(53),char(1),char(209),char(75),char(114), -char(163),char(166),char(2),char(151),char(51),char(254),char(47),char(71),char(113),char(163), -char(169),char(2),char(37),char(254),char(244),char(254),char(211),char(69),char(117),char(78), -char(131),char(152),char(1),char(0),char(1),char(12),char(1),char(43),char(76),char(119), -char(76),char(133),char(152),char(249),char(171),char(102),char(2),char(134),char(53),char(214), -char(212),char(164),char(100),char(253),char(125),char(51),char(219),char(0),char(255),char(255), -char(0),char(164),char(255),char(236),char(4),char(57),char(6),char(33),char(2),char(38), -char(0),char(88),char(0),char(0),char(1),char(6),char(0),char(67),char(196),char(0), -char(0),char(8),char(179),char(1),char(22),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(164),char(255),char(236),char(4),char(57),char(6),char(33), -char(2),char(38),char(0),char(88),char(0),char(0),char(1),char(6),char(0),char(118), -char(113),char(0),char(0),char(8),char(179),char(1),char(30),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236),char(4),char(57), -char(6),char(33),char(2),char(38),char(0),char(88),char(0),char(0),char(1),char(6), -char(1),char(75),char(18),char(0),char(0),char(8),char(179),char(1),char(35),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236), -char(4),char(57),char(5),char(211),char(2),char(38),char(0),char(88),char(0),char(0), -char(1),char(6),char(0),char(106),char(33),char(0),char(0),char(10),char(180),char(2), -char(1),char(42),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(2),char(254),char(20),char(4),char(6),char(6),char(33),char(2),char(38), -char(0),char(92),char(0),char(0),char(1),char(6),char(0),char(118),char(18),char(0), -char(0),char(8),char(179),char(1),char(31),char(17),char(38),char(0),char(43),char(53), -char(0),char(2),char(0),char(176),char(254),char(20),char(4),char(117),char(6),char(20), -char(0),char(22),char(0),char(34),char(0),char(62),char(64),char(31),char(32),char(6), -char(27),char(20),char(16),char(16),char(17),char(6),char(17),char(36),char(35),char(18), -char(0),char(17),char(27),char(12),char(22),char(9),char(3),char(9),char(30),char(70), -char(89),char(9),char(22),char(3),char(23),char(70),char(89),char(3),char(16),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(57),char(24),char(63),char(63),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(54), -char(54),char(51),char(50),char(18),char(17),char(16),char(2),char(35),char(34),char(39), -char(35),char(23),char(22),char(21),char(17),char(35),char(17),char(51),char(17),char(20), -char(7),char(37),char(34),char(6),char(7),char(21),char(20),char(22),char(51),char(32), -char(17),char(52),char(38),char(1),char(88),char(66),char(170),char(106),char(215),char(240), -char(241),char(214),char(222),char(122),char(12),char(4),char(8),char(166),char(166),char(6), -char(1),char(72),char(168),char(152),char(2),char(154),char(170),char(1),char(47),char(148), -char(3),char(180),char(89),char(79),char(254),char(212),char(254),char(245),char(254),char(244), -char(254),char(211),char(161),char(34),char(77),char(63),char(254),char(53),char(8),char(0), -char(254),char(46),char(52),char(90),char(27),char(184),char(201),char(41),char(231),char(199), -char(1),char(176),char(215),char(209),char(255),char(255),char(0),char(2),char(254),char(20), -char(4),char(6),char(5),char(211),char(2),char(38),char(0),char(92),char(0),char(0), -char(1),char(6),char(0),char(106),char(181),char(0),char(0),char(10),char(180),char(2), -char(1),char(43),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(6),char(180),char(2),char(38), -char(0),char(36),char(0),char(0),char(1),char(7),char(1),char(77),char(0),char(63), -char(1),char(82),char(0),char(8),char(179),char(2),char(18),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205), -char(5),char(98),char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(6), -char(1),char(77),char(245),char(0),char(0),char(8),char(179),char(2),char(40),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(5),char(16),char(7),char(55),char(2),char(38),char(0),char(36),char(0),char(0), -char(1),char(7),char(1),char(78),char(0),char(43),char(1),char(82),char(0),char(8), -char(179),char(2),char(15),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(94),char(255),char(236),char(3),char(205),char(5),char(229),char(2),char(38), -char(0),char(68),char(0),char(0),char(1),char(6),char(1),char(78),char(228),char(0), -char(0),char(8),char(179),char(2),char(37),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(0),char(254),char(66),char(5),char(17),char(5),char(188), -char(2),char(38),char(0),char(36),char(0),char(0),char(0),char(7),char(1),char(81), -char(3),char(160),char(0),char(0),char(255),char(255),char(0),char(94),char(254),char(66), -char(4),char(0),char(4),char(90),char(2),char(38),char(0),char(68),char(0),char(0), -char(0),char(7),char(1),char(81),char(2),char(143),char(0),char(0),char(255),char(255), -char(0),char(125),char(255),char(236),char(4),char(207),char(7),char(115),char(2),char(38), -char(0),char(38),char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(8), -char(1),char(82),char(0),char(8),char(179),char(1),char(32),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(3),char(139), -char(6),char(33),char(2),char(38),char(0),char(70),char(0),char(0),char(1),char(6), -char(0),char(118),char(68),char(0),char(0),char(8),char(179),char(1),char(32),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(4),char(207),char(7),char(115),char(2),char(38),char(0),char(38),char(0),char(0), -char(1),char(7),char(1),char(75),char(0),char(172),char(1),char(82),char(0),char(8), -char(179),char(1),char(37),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(3),char(139),char(6),char(33),char(2),char(38), -char(0),char(70),char(0),char(0),char(1),char(6),char(1),char(75),char(212),char(0), -char(0),char(8),char(179),char(1),char(37),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(125),char(255),char(236),char(4),char(207),char(7),char(49), -char(2),char(38),char(0),char(38),char(0),char(0),char(1),char(7),char(1),char(79), -char(2),char(27),char(1),char(82),char(0),char(8),char(179),char(1),char(32),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(3),char(139),char(5),char(223),char(2),char(38),char(0),char(70),char(0),char(0), -char(1),char(7),char(1),char(79),char(1),char(80),char(0),char(0),char(0),char(8), -char(179),char(1),char(32),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(4),char(207),char(7),char(115),char(2),char(38), -char(0),char(38),char(0),char(0),char(1),char(7),char(1),char(76),char(0),char(193), -char(1),char(82),char(0),char(8),char(179),char(1),char(34),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(3),char(161), -char(6),char(33),char(2),char(38),char(0),char(70),char(0),char(0),char(1),char(6), -char(1),char(76),char(243),char(0),char(0),char(8),char(179),char(1),char(34),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(0),char(0), -char(5),char(88),char(7),char(115),char(2),char(38),char(0),char(39),char(0),char(0), -char(1),char(7),char(1),char(76),char(0),char(88),char(1),char(82),char(0),char(8), -char(179),char(2),char(29),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(5),char(129),char(6),char(20),char(2),char(38), -char(0),char(71),char(0),char(0),char(1),char(7),char(2),char(56),char(3),char(12), -char(0),char(0),char(0),char(7),char(178),char(2),char(35),char(0),char(0),char(63), -char(53),char(0),char(255),char(255),char(0),char(47),char(0),char(0),char(5),char(72), -char(5),char(182),char(2),char(6),char(0),char(146),char(0),char(0),char(0),char(2), -char(0),char(115),char(255),char(236),char(4),char(211),char(6),char(20),char(0),char(26), -char(0),char(39),char(0),char(100),char(64),char(55),char(37),char(6),char(18),char(14), -char(0),char(30),char(30),char(21),char(25),char(22),char(25),char(16),char(6),char(4), -char(40),char(41),char(26),char(21),char(24),char(16),char(17),char(16),char(71),char(89), -char(21),char(15),char(17),char(31),char(17),char(47),char(17),char(3),char(9),char(3), -char(17),char(17),char(9),char(19),char(0),char(1),char(12),char(3),char(9),char(9), -char(34),char(70),char(89),char(9),char(16),char(3),char(27),char(70),char(89),char(3), -char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(57),char(24),char(63),char(18),char(57),char(47),char(95),char(94), -char(93),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(51),char(51), -char(17),char(51),char(49),char(48),char(37),char(35),char(6),char(35),char(34),char(2), -char(17),char(16),char(18),char(51),char(50),char(23),char(51),char(38),char(53),char(53), -char(33),char(53),char(33),char(53),char(51),char(21),char(51),char(21),char(35),char(17), -char(35),char(37),char(50),char(54),char(53),char(53),char(52),char(38),char(35),char(34), -char(6),char(21),char(20),char(22),char(3),char(154),char(9),char(115),char(229),char(215), -char(239),char(240),char(214),char(223),char(119),char(13),char(11),char(254),char(64),char(1), -char(192),char(166),char(156),char(156),char(135),char(254),char(158),char(170),char(153),char(155), -char(170),char(146),char(155),char(154),char(147),char(167),char(1),char(38),char(1),char(15), -char(1),char(15),char(1),char(44),char(162),char(83),char(73),char(133),char(129),char(184), -char(184),char(129),char(251),char(37),char(119),char(185),char(206),char(35),char(233),char(199), -char(227),char(207),char(210),char(214),char(255),char(255),char(0),char(201),char(0),char(0), -char(3),char(248),char(6),char(180),char(2),char(38),char(0),char(40),char(0),char(0), -char(1),char(7),char(1),char(77),char(0),char(18),char(1),char(82),char(0),char(8), -char(179),char(1),char(15),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(18),char(5),char(98),char(2),char(38), -char(0),char(72),char(0),char(0),char(1),char(6),char(1),char(77),char(10),char(0), -char(0),char(8),char(179),char(2),char(30),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(55), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(1),char(78), -char(0),char(16),char(1),char(82),char(0),char(8),char(179),char(1),char(12),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(18),char(5),char(229),char(2),char(38),char(0),char(72),char(0),char(0), -char(1),char(6),char(1),char(78),char(251),char(0),char(0),char(8),char(179),char(2), -char(27),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201), -char(0),char(0),char(3),char(248),char(7),char(20),char(2),char(38),char(0),char(40), -char(0),char(0),char(1),char(7),char(1),char(79),char(1),char(111),char(1),char(53), -char(0),char(8),char(179),char(1),char(21),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(18),char(5),char(223), -char(2),char(38),char(0),char(72),char(0),char(0),char(1),char(7),char(1),char(79), -char(1),char(84),char(0),char(0),char(0),char(8),char(179),char(2),char(36),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(254),char(66), -char(3),char(248),char(5),char(182),char(2),char(38),char(0),char(40),char(0),char(0), -char(0),char(7),char(1),char(81),char(2),char(115),char(0),char(0),char(255),char(255), -char(0),char(115),char(254),char(97),char(4),char(18),char(4),char(92),char(2),char(38), -char(0),char(72),char(0),char(0),char(0),char(7),char(1),char(81),char(2),char(102), -char(0),char(31),char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248), -char(7),char(115),char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7), -char(1),char(76),char(0),char(16),char(1),char(82),char(0),char(8),char(179),char(1), -char(23),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(18),char(6),char(33),char(2),char(38),char(0),char(72), -char(0),char(0),char(1),char(6),char(1),char(76),char(251),char(0),char(0),char(8), -char(179),char(2),char(38),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(5),char(61),char(7),char(115),char(2),char(38), -char(0),char(42),char(0),char(0),char(1),char(7),char(1),char(75),char(0),char(233), -char(1),char(82),char(0),char(8),char(179),char(1),char(42),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(39),char(254),char(20),char(4),char(49), -char(6),char(33),char(2),char(38),char(0),char(74),char(0),char(0),char(1),char(6), -char(1),char(75),char(202),char(0),char(0),char(8),char(179),char(3),char(80),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(5),char(61),char(7),char(55),char(2),char(38),char(0),char(42),char(0),char(0), -char(1),char(7),char(1),char(78),char(1),char(0),char(1),char(82),char(0),char(8), -char(179),char(1),char(28),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(39),char(254),char(20),char(4),char(49),char(5),char(229),char(2),char(38), -char(0),char(74),char(0),char(0),char(1),char(6),char(1),char(78),char(206),char(0), -char(0),char(8),char(179),char(3),char(66),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(61),char(7),char(49), -char(2),char(38),char(0),char(42),char(0),char(0),char(1),char(7),char(1),char(79), -char(2),char(100),char(1),char(82),char(0),char(8),char(179),char(1),char(37),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(39),char(254),char(20), -char(4),char(49),char(5),char(223),char(2),char(38),char(0),char(74),char(0),char(0), -char(1),char(7),char(1),char(79),char(1),char(31),char(0),char(0),char(0),char(8), -char(179),char(3),char(75),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(254),char(59),char(5),char(61),char(5),char(203),char(2),char(38), -char(0),char(42),char(0),char(0),char(0),char(7),char(2),char(57),char(1),char(39), -char(0),char(0),char(255),char(255),char(0),char(39),char(254),char(20),char(4),char(49), -char(6),char(33),char(2),char(38),char(0),char(74),char(0),char(0),char(1),char(6), -char(2),char(58),char(68),char(0),char(0),char(8),char(179),char(3),char(70),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(0),char(0), -char(5),char(31),char(7),char(115),char(2),char(38),char(0),char(43),char(0),char(0), -char(1),char(7),char(1),char(75),char(0),char(150),char(1),char(82),char(0),char(8), -char(179),char(1),char(26),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(176),char(0),char(0),char(4),char(68),char(7),char(170),char(2),char(38), -char(0),char(75),char(0),char(0),char(1),char(7),char(1),char(75),char(0),char(31), -char(1),char(137),char(0),char(8),char(179),char(1),char(37),char(2),char(38),char(0), -char(43),char(53),char(0),char(2),char(0),char(0),char(0),char(0),char(5),char(231), -char(5),char(182),char(0),char(19),char(0),char(23),char(0),char(84),char(64),char(44), -char(23),char(3),char(15),char(15),char(0),char(16),char(20),char(4),char(12),char(12), -char(7),char(11),char(8),char(11),char(16),char(18),char(4),char(24),char(25),char(23), -char(14),char(73),char(89),char(22),char(10),char(18),char(19),char(18),char(74),char(89), -char(7),char(3),char(19),char(23),char(19),char(23),char(19),char(1),char(12),char(16), -char(18),char(5),char(1),char(3),char(0),char(63),char(51),char(63),char(51),char(18), -char(57),char(57),char(47),char(47),char(17),char(51),char(51),char(43),char(17),char(0), -char(51),char(51),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(51),char(17),char(51),char(51),char(17),char(51),char(51),char(17),char(51),char(51), -char(49),char(48),char(19),char(53),char(51),char(21),char(33),char(53),char(51),char(21), -char(51),char(21),char(35),char(17),char(35),char(17),char(33),char(17),char(35),char(17), -char(35),char(53),char(1),char(53),char(33),char(21),char(201),char(170),char(3),char(2), -char(170),char(200),char(200),char(170),char(252),char(254),char(170),char(201),char(4),char(117), -char(252),char(254),char(4),char(190),char(248),char(248),char(248),char(248),char(141),char(251), -char(207),char(2),char(176),char(253),char(80),char(4),char(49),char(141),char(254),char(138), -char(233),char(233),char(0),char(1),char(0),char(20),char(0),char(0),char(4),char(68), -char(6),char(20),char(0),char(30),char(0),char(89),char(64),char(50),char(22),char(20), -char(16),char(8),char(8),char(13),char(9),char(0),char(30),char(30),char(18),char(9), -char(11),char(4),char(31),char(32),char(23),char(22),char(26),char(4),char(70),char(89), -char(19),char(11),char(12),char(11),char(71),char(89),char(16),char(12),char(15),char(12), -char(31),char(12),char(47),char(12),char(3),char(22),char(26),char(12),char(12),char(26), -char(22),char(3),char(9),char(14),char(0),char(0),char(9),char(21),char(0),char(63), -char(51),char(63),char(18),char(23),char(57),char(47),char(47),char(47),char(93),char(17), -char(51),char(43),char(17),char(0),char(51),char(43),char(17),char(0),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(51),char(51),char(49),char(48),char(33),char(17),char(52),char(38),char(35), -char(34),char(6),char(21),char(17),char(35),char(17),char(35),char(53),char(51),char(53), -char(51),char(21),char(33),char(21),char(33),char(21),char(20),char(7),char(51),char(54), -char(54),char(51),char(50),char(22),char(21),char(17),char(3),char(158),char(122),char(130), -char(174),char(158),char(166),char(156),char(156),char(166),char(1),char(193),char(254),char(63), -char(8),char(10),char(49),char(181),char(116),char(201),char(201),char(2),char(158),char(134), -char(132),char(186),char(213),char(253),char(231),char(4),char(219),char(127),char(186),char(186), -char(127),char(196),char(84),char(56),char(79),char(91),char(191),char(210),char(253),char(92), -char(255),char(255),char(255),char(226),char(0),char(0),char(2),char(202),char(7),char(47), -char(2),char(38),char(0),char(44),char(0),char(0),char(1),char(7),char(1),char(82), -char(254),char(218),char(1),char(82),char(0),char(8),char(179),char(1),char(21),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(255),char(144),char(0),char(0), -char(2),char(120),char(5),char(221),char(2),char(38),char(0),char(243),char(0),char(0), -char(1),char(7),char(1),char(82),char(254),char(136),char(0),char(0),char(0),char(8), -char(179),char(1),char(13),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(42),char(0),char(0),char(2),char(130),char(6),char(180),char(2),char(38), -char(0),char(44),char(0),char(0),char(1),char(7),char(1),char(77),char(254),char(253), -char(1),char(82),char(0),char(8),char(179),char(1),char(15),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(255),char(218),char(0),char(0),char(2),char(50), -char(5),char(98),char(2),char(38),char(0),char(243),char(0),char(0),char(1),char(7), -char(1),char(77),char(254),char(173),char(0),char(0),char(0),char(8),char(179),char(1), -char(7),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(30), -char(0),char(0),char(2),char(138),char(7),char(55),char(2),char(38),char(0),char(44), -char(0),char(0),char(1),char(7),char(1),char(78),char(254),char(249),char(1),char(82), -char(0),char(8),char(179),char(1),char(12),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(255),char(204),char(0),char(0),char(2),char(56),char(5),char(229), -char(2),char(38),char(0),char(243),char(0),char(0),char(1),char(7),char(1),char(78), -char(254),char(167),char(0),char(0),char(0),char(8),char(179),char(1),char(4),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(84),char(254),char(66), -char(2),char(86),char(5),char(182),char(2),char(38),char(0),char(44),char(0),char(0), -char(0),char(6),char(1),char(81),char(104),char(0),char(255),char(255),char(0),char(53), -char(254),char(66),char(1),char(129),char(5),char(223),char(2),char(38),char(0),char(76), -char(0),char(0),char(0),char(6),char(1),char(81),char(16),char(0),char(255),char(255), -char(0),char(84),char(0),char(0),char(2),char(86),char(7),char(49),char(2),char(38), -char(0),char(44),char(0),char(0),char(1),char(7),char(1),char(79),char(0),char(80), -char(1),char(82),char(0),char(8),char(179),char(1),char(21),char(5),char(38),char(0), -char(43),char(53),char(0),char(1),char(0),char(176),char(0),char(0),char(1),char(86), -char(4),char(72),char(0),char(3),char(0),char(22),char(64),char(9),char(0),char(1), -char(1),char(5),char(4),char(2),char(15),char(1),char(21),char(0),char(63),char(63), -char(17),char(18),char(1),char(57),char(17),char(51),char(49),char(48),char(33),char(35), -char(17),char(51),char(1),char(86),char(166),char(166),char(4),char(72),char(255),char(255), -char(0),char(84),char(254),char(127),char(4),char(16),char(5),char(182),char(0),char(38), -char(0),char(44),char(0),char(0),char(0),char(7),char(0),char(45),char(2),char(168), -char(0),char(0),char(255),char(255),char(0),char(162),char(254),char(20),char(3),char(108), -char(5),char(223),char(0),char(38),char(0),char(76),char(0),char(0),char(0),char(7), -char(0),char(77),char(2),char(6),char(0),char(0),char(255),char(255),char(255),char(96), -char(254),char(127),char(2),char(101),char(7),char(115),char(2),char(38),char(0),char(45), -char(0),char(0),char(1),char(7),char(1),char(75),char(254),char(183),char(1),char(82), -char(0),char(8),char(179),char(1),char(28),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(255),char(145),char(254),char(20),char(2),char(79),char(6),char(33), -char(2),char(38),char(2),char(55),char(0),char(0),char(1),char(7),char(1),char(75), -char(254),char(161),char(0),char(0),char(0),char(8),char(179),char(1),char(27),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(254),char(59), -char(4),char(233),char(5),char(182),char(2),char(38),char(0),char(46),char(0),char(0), -char(0),char(7),char(2),char(57),char(0),char(137),char(0),char(0),char(255),char(255), -char(0),char(176),char(254),char(59),char(4),char(29),char(6),char(20),char(2),char(38), -char(0),char(78),char(0),char(0),char(0),char(6),char(2),char(57),char(43),char(0), -char(0),char(1),char(0),char(176),char(0),char(0),char(4),char(27),char(4),char(70), -char(0),char(13),char(0),char(47),char(64),char(25),char(13),char(11),char(7),char(7), -char(8),char(3),char(1),char(2),char(5),char(8),char(5),char(14),char(15),char(2), -char(13),char(5),char(6),char(4),char(8),char(0),char(9),char(15),char(4),char(8), -char(21),char(0),char(63),char(51),char(63),char(51),char(18),char(23),char(57),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(49), -char(48),char(1),char(51),char(1),char(1),char(35),char(1),char(7),char(17),char(35), -char(17),char(51),char(17),char(20),char(7),char(3),char(47),char(207),char(254),char(98), -char(1),char(187),char(201),char(254),char(151),char(135),char(178),char(178),char(12),char(4), -char(70),char(254),char(30),char(253),char(156),char(1),char(248),char(113),char(254),char(121), -char(4),char(70),char(254),char(229),char(166),char(113),char(255),char(255),char(0),char(201), -char(0),char(0),char(3),char(248),char(7),char(115),char(2),char(38),char(0),char(47), -char(0),char(0),char(1),char(7),char(0),char(118),char(255),char(99),char(1),char(82), -char(0),char(8),char(179),char(1),char(15),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(163),char(0),char(0),char(2),char(44),char(7),char(172), -char(2),char(38),char(0),char(79),char(0),char(0),char(1),char(7),char(0),char(118), -char(255),char(26),char(1),char(139),char(0),char(8),char(179),char(1),char(13),char(2), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(254),char(59), -char(3),char(248),char(5),char(182),char(2),char(38),char(0),char(47),char(0),char(0), -char(0),char(6),char(2),char(57),char(49),char(0),char(255),char(255),char(0),char(89), -char(254),char(59),char(1),char(87),char(6),char(20),char(2),char(38),char(0),char(79), -char(0),char(0),char(0),char(7),char(2),char(57),char(254),char(232),char(0),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(5),char(183), -char(2),char(38),char(0),char(47),char(0),char(0),char(1),char(7),char(2),char(56), -char(1),char(29),char(255),char(163),char(0),char(7),char(178),char(1),char(9),char(3), -char(0),char(63),char(53),char(0),char(255),char(255),char(0),char(176),char(0),char(0), -char(2),char(160),char(6),char(20),char(2),char(38),char(0),char(79),char(0),char(0), -char(1),char(6),char(2),char(56),char(43),char(0),char(0),char(7),char(178),char(1), -char(7),char(0),char(0),char(63),char(53),char(0),char(255),char(255),char(0),char(201), -char(0),char(0),char(3),char(248),char(5),char(182),char(2),char(38),char(0),char(47), -char(0),char(0),char(0),char(7),char(1),char(79),char(2),char(4),char(253),char(103), -char(255),char(255),char(0),char(176),char(0),char(0),char(2),char(168),char(6),char(20), -char(0),char(38),char(0),char(79),char(0),char(0),char(0),char(7),char(1),char(79), -char(1),char(66),char(253),char(56),char(0),char(1),char(0),char(29),char(0),char(0), -char(3),char(248),char(5),char(182),char(0),char(13),char(0),char(61),char(64),char(33), -char(7),char(11),char(11),char(4),char(0),char(12),char(9),char(0),char(3),char(4), -char(15),char(14),char(9),char(7),char(4),char(10),char(3),char(1),char(6),char(8), -char(2),char(8),char(2),char(8),char(0),char(5),char(3),char(0),char(11),char(73), -char(89),char(0),char(18),char(0),char(63),char(43),char(0),char(24),char(63),char(18), -char(57),char(57),char(47),char(47),char(18),char(23),char(57),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(51), -char(17),char(7),char(39),char(55),char(17),char(51),char(17),char(37),char(23),char(5), -char(17),char(33),char(21),char(201),char(105),char(67),char(172),char(170),char(1),char(41), -char(67),char(254),char(148),char(2),char(133),char(1),char(252),char(59),char(114),char(101), -char(3),char(30),char(253),char(70),char(174),char(121),char(211),char(254),char(60),char(154), -char(0),char(1),char(255),char(252),char(0),char(0),char(2),char(39),char(6),char(20), -char(0),char(11),char(0),char(55),char(64),char(28),char(0),char(4),char(4),char(9), -char(5),char(5),char(12),char(2),char(13),char(8),char(12),char(0),char(2),char(9), -char(3),char(8),char(6),char(6),char(1),char(7),char(1),char(7),char(1),char(5), -char(10),char(0),char(5),char(21),char(0),char(63),char(63),char(18),char(57),char(57), -char(47),char(47),char(18),char(23),char(57),char(17),char(1),char(51),char(17),char(51), -char(18),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1), -char(55),char(23),char(7),char(17),char(35),char(17),char(7),char(39),char(55),char(17), -char(51),char(1),char(86),char(137),char(72),char(209),char(166),char(110),char(70),char(180), -char(166),char(3),char(96),char(94),char(112),char(141),char(253),char(63),char(2),char(84), -char(72),char(113),char(119),char(3),char(32),char(0),char(255),char(255),char(0),char(201), -char(0),char(0),char(5),char(63),char(7),char(115),char(2),char(38),char(0),char(49), -char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(2),char(1),char(82), -char(0),char(8),char(179),char(1),char(26),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(68),char(6),char(33), -char(2),char(38),char(0),char(81),char(0),char(0),char(1),char(6),char(0),char(118), -char(121),char(0),char(0),char(8),char(179),char(1),char(30),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(201),char(254),char(59),char(5),char(63), -char(5),char(182),char(2),char(38),char(0),char(49),char(0),char(0),char(0),char(7), -char(2),char(57),char(0),char(205),char(0),char(0),char(255),char(255),char(0),char(176), -char(254),char(59),char(4),char(68),char(4),char(92),char(2),char(38),char(0),char(81), -char(0),char(0),char(0),char(6),char(2),char(57),char(86),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(5),char(63),char(7),char(115),char(2),char(38), -char(0),char(49),char(0),char(0),char(1),char(7),char(1),char(76),char(0),char(166), -char(1),char(82),char(0),char(8),char(179),char(1),char(28),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(68), -char(6),char(33),char(2),char(38),char(0),char(81),char(0),char(0),char(1),char(6), -char(1),char(76),char(31),char(0),char(0),char(8),char(179),char(1),char(32),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(1),char(0),char(0), -char(4),char(203),char(5),char(182),char(0),char(39),char(0),char(81),char(0),char(135), -char(0),char(0),char(1),char(6),char(2),char(7),char(232),char(0),char(0),char(7), -char(178),char(1),char(28),char(3),char(0),char(63),char(53),char(0),char(0),char(1), -char(0),char(201),char(254),char(127),char(5),char(63),char(5),char(182),char(0),char(25), -char(0),char(56),char(64),char(28),char(16),char(13),char(13),char(14),char(8),char(20), -char(20),char(23),char(23),char(2),char(14),char(3),char(26),char(27),char(18),char(10), -char(14),char(21),char(15),char(3),char(14),char(18),char(0),char(5),char(73),char(89), -char(0),char(34),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51), -char(18),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(34), -char(39),char(53),char(22),char(51),char(50),char(54),char(53),char(1),char(35),char(18), -char(21),char(17),char(35),char(17),char(51),char(1),char(51),char(38),char(53),char(17), -char(51),char(17),char(20),char(6),char(3),char(201),char(98),char(54),char(71),char(83), -char(105),char(106),char(252),char(192),char(8),char(16),char(157),char(192),char(3),char(29), -char(8),char(14),char(159),char(193),char(254),char(127),char(27),char(145),char(20),char(122), -char(111),char(4),char(203),char(254),char(248),char(158),char(252),char(219),char(5),char(182), -char(251),char(78),char(149),char(224),char(3),char(61),char(250),char(88),char(195),char(204), -char(0),char(1),char(0),char(176),char(254),char(20),char(4),char(68),char(4),char(92), -char(0),char(29),char(0),char(56),char(64),char(30),char(19),char(15),char(15),char(16), -char(7),char(27),char(27),char(2),char(16),char(3),char(30),char(31),char(23),char(11), -char(70),char(89),char(23),char(16),char(19),char(16),char(17),char(15),char(16),char(21), -char(0),char(5),char(70),char(89),char(0),char(27),char(0),char(63),char(43),char(0), -char(24),char(63),char(63),char(18),char(57),char(63),char(43),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(34),char(39),char(53),char(22),char(51),char(50),char(53),char(17),char(52), -char(38),char(35),char(34),char(6),char(21),char(17),char(35),char(17),char(51),char(23), -char(51),char(54),char(54),char(51),char(50),char(22),char(21),char(17),char(20),char(6), -char(3),char(37),char(86),char(55),char(60),char(62),char(140),char(122),char(130),char(172), -char(160),char(166),char(135),char(27),char(10),char(52),char(180),char(110),char(203),char(199), -char(140),char(254),char(20),char(25),char(135),char(20),char(172),char(3),char(121),char(134), -char(132),char(186),char(214),char(253),char(193),char(4),char(72),char(150),char(82),char(88), -char(191),char(210),char(252),char(141),char(154),char(170),char(255),char(255),char(0),char(125), -char(255),char(236),char(5),char(190),char(6),char(180),char(2),char(38),char(0),char(50), -char(0),char(0),char(1),char(7),char(1),char(77),char(0),char(199),char(1),char(82), -char(0),char(8),char(179),char(2),char(27),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98),char(5),char(98), -char(2),char(38),char(0),char(82),char(0),char(0),char(1),char(6),char(1),char(77), -char(18),char(0),char(0),char(8),char(179),char(2),char(28),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190), -char(7),char(55),char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7), -char(1),char(78),char(0),char(193),char(1),char(82),char(0),char(8),char(179),char(2), -char(24),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(98),char(5),char(229),char(2),char(38),char(0),char(82), -char(0),char(0),char(1),char(6),char(1),char(78),char(14),char(0),char(0),char(8), -char(179),char(2),char(25),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(115),char(2),char(38), -char(0),char(50),char(0),char(0),char(1),char(7),char(1),char(83),char(1),char(20), -char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(43),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(98),char(6),char(33),char(2),char(38),char(0),char(82),char(0),char(0), -char(1),char(6),char(1),char(83),char(90),char(0),char(0),char(10),char(180),char(3), -char(2),char(44),char(17),char(38),char(0),char(43),char(53),char(53),char(0),char(2), -char(0),char(125),char(255),char(236),char(6),char(231),char(5),char(205),char(0),char(20), -char(0),char(31),char(0),char(83),char(64),char(46),char(24),char(6),char(15),char(19), -char(19),char(29),char(0),char(13),char(17),char(29),char(6),char(5),char(32),char(33), -char(15),char(18),char(73),char(89),char(15),char(15),char(0),char(11),char(11),char(14), -char(73),char(89),char(11),char(3),char(9),char(21),char(73),char(89),char(9),char(4), -char(3),char(27),char(73),char(89),char(3),char(18),char(0),char(19),char(73),char(89), -char(0),char(18),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(0), -char(24),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0), -char(57),char(24),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(6), -char(35),char(32),char(0),char(17),char(16),char(0),char(33),char(50),char(23),char(33), -char(21),char(33),char(17),char(33),char(21),char(33),char(17),char(33),char(1),char(34), -char(0),char(17),char(16),char(0),char(51),char(50),char(55),char(17),char(38),char(6), -char(231),char(253),char(0),char(102),char(92),char(254),char(185),char(254),char(159),char(1), -char(92),char(1),char(64),char(102),char(90),char(3),char(14),char(253),char(179),char(2), -char(39),char(253),char(217),char(2),char(77),char(252),char(68),char(249),char(254),char(255), -char(1),char(1),char(247),char(112),char(87),char(87),char(20),char(1),char(137),char(1), -char(106),char(1),char(104),char(1),char(134),char(23),char(151),char(254),char(41),char(150), -char(253),char(230),char(4),char(157),char(254),char(207),char(254),char(217),char(254),char(215), -char(254),char(205),char(33),char(4),char(117),char(30),char(0),char(3),char(0),char(113), -char(255),char(236),char(7),char(31),char(4),char(90),char(0),char(30),char(0),char(42), -char(0),char(49),char(0),char(85),char(64),char(45),char(31),char(8),char(14),char(2), -char(22),char(22),char(37),char(47),char(21),char(21),char(28),char(37),char(8),char(4), -char(50),char(51),char(43),char(40),char(11),char(40),char(70),char(89),char(46),char(22), -char(70),char(89),char(2),char(5),char(14),char(11),char(46),char(46),char(5),char(17), -char(11),char(16),char(24),char(34),char(5),char(34),char(70),char(89),char(0),char(5), -char(22),char(0),char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63), -char(51),char(18),char(57),char(47),char(18),char(57),char(18),char(57),char(43),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(18),char(57),char(57),char(17),char(51),char(49),char(48),char(5), -char(32),char(39),char(6),char(6),char(35),char(34),char(0),char(17),char(16),char(0), -char(51),char(50),char(22),char(23),char(54),char(54),char(51),char(50),char(18),char(21), -char(21),char(33),char(18),char(33),char(50),char(54),char(55),char(21),char(6),char(6), -char(1),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(34),char(6),char(37),char(34),char(6),char(7),char(33),char(52),char(38),char(5), -char(150),char(254),char(219),char(125),char(62),char(209),char(137),char(223),char(254),char(244), -char(1),char(6),char(235),char(131),char(205),char(62),char(58),char(192),char(126),char(201), -char(238),char(253),char(39),char(8),char(1),char(74),char(94),char(161),char(87),char(88), -char(152),char(251),char(33),char(152),char(167),char(163),char(153),char(155),char(165),char(166), -char(149),char(4),char(71),char(127),char(145),char(12),char(2),char(32),char(132),char(20), -char(235),char(116),char(119),char(1),char(49),char(1),char(8),char(1),char(9),char(1), -char(44),char(119),char(114),char(112),char(121),char(254),char(247),char(226),char(105),char(254), -char(119),char(35),char(39),char(148),char(39),char(32),char(2),char(57),char(211),char(219), -char(213),char(209),char(221),char(213),char(216),char(216),char(164),char(158),char(158),char(164), -char(255),char(255),char(0),char(201),char(0),char(0),char(4),char(207),char(7),char(115), -char(2),char(38),char(0),char(53),char(0),char(0),char(1),char(7),char(0),char(118), -char(0),char(121),char(1),char(82),char(0),char(8),char(179),char(2),char(31),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(176),char(0),char(0), -char(3),char(39),char(6),char(33),char(2),char(38),char(0),char(85),char(0),char(0), -char(1),char(6),char(0),char(118),char(220),char(0),char(0),char(8),char(179),char(1), -char(26),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201), -char(254),char(59),char(4),char(207),char(5),char(182),char(2),char(38),char(0),char(53), -char(0),char(0),char(0),char(6),char(2),char(57),char(125),char(0),char(255),char(255), -char(0),char(96),char(254),char(59),char(3),char(39),char(4),char(92),char(2),char(38), -char(0),char(85),char(0),char(0),char(0),char(7),char(2),char(57),char(254),char(239), -char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0),char(4),char(207), -char(7),char(115),char(2),char(38),char(0),char(53),char(0),char(0),char(1),char(7), -char(1),char(76),char(0),char(27),char(1),char(82),char(0),char(8),char(179),char(2), -char(33),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(130), -char(0),char(0),char(3),char(39),char(6),char(33),char(2),char(38),char(0),char(85), -char(0),char(0),char(1),char(7),char(1),char(76),char(255),char(118),char(0),char(0), -char(0),char(8),char(179),char(1),char(28),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(106),char(255),char(236),char(4),char(2),char(7),char(115), -char(2),char(38),char(0),char(54),char(0),char(0),char(1),char(7),char(0),char(118), -char(0),char(80),char(1),char(82),char(0),char(8),char(179),char(1),char(46),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(106),char(255),char(236), -char(3),char(115),char(6),char(33),char(2),char(38),char(0),char(86),char(0),char(0), -char(1),char(6),char(0),char(118),char(234),char(0),char(0),char(8),char(179),char(1), -char(46),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(106), -char(255),char(236),char(4),char(2),char(7),char(115),char(2),char(38),char(0),char(54), -char(0),char(0),char(1),char(7),char(1),char(75),char(255),char(234),char(1),char(82), -char(0),char(8),char(179),char(1),char(51),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(106),char(255),char(236),char(3),char(115),char(6),char(33), -char(2),char(38),char(0),char(86),char(0),char(0),char(1),char(6),char(1),char(75), -char(151),char(0),char(0),char(8),char(179),char(1),char(51),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(106),char(254),char(20),char(4),char(2), -char(5),char(203),char(2),char(38),char(0),char(54),char(0),char(0),char(0),char(7), -char(0),char(122),char(1),char(39),char(0),char(0),char(255),char(255),char(0),char(106), -char(254),char(20),char(3),char(115),char(4),char(92),char(2),char(38),char(0),char(86), -char(0),char(0),char(0),char(7),char(0),char(122),char(0),char(213),char(0),char(0), -char(255),char(255),char(0),char(106),char(255),char(236),char(4),char(2),char(7),char(115), -char(2),char(38),char(0),char(54),char(0),char(0),char(1),char(7),char(1),char(76), -char(255),char(228),char(1),char(82),char(0),char(8),char(179),char(1),char(48),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(106),char(255),char(236), -char(3),char(115),char(6),char(33),char(2),char(38),char(0),char(86),char(0),char(0), -char(1),char(6),char(1),char(76),char(153),char(0),char(0),char(8),char(179),char(1), -char(48),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(18), -char(254),char(59),char(4),char(90),char(5),char(182),char(2),char(38),char(0),char(55), -char(0),char(0),char(0),char(6),char(2),char(57),char(25),char(0),char(255),char(255), -char(0),char(31),char(254),char(59),char(2),char(168),char(5),char(70),char(2),char(38), -char(0),char(87),char(0),char(0),char(0),char(6),char(2),char(57),char(130),char(0), -char(255),char(255),char(0),char(18),char(0),char(0),char(4),char(90),char(7),char(115), -char(2),char(38),char(0),char(55),char(0),char(0),char(1),char(7),char(1),char(76), -char(255),char(220),char(1),char(82),char(0),char(8),char(179),char(1),char(19),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(31),char(255),char(236), -char(2),char(215),char(6),char(20),char(2),char(38),char(0),char(87),char(0),char(0), -char(1),char(6),char(2),char(56),char(98),char(0),char(0),char(7),char(178),char(1), -char(26),char(0),char(0),char(63),char(53),char(0),char(0),char(1),char(0),char(18), -char(0),char(0),char(4),char(90),char(5),char(182),char(0),char(15),char(0),char(63), -char(64),char(33),char(7),char(11),char(11),char(0),char(12),char(4),char(9),char(12), -char(14),char(2),char(5),char(16),char(17),char(10),char(14),char(15),char(14),char(74), -char(89),char(7),char(15),char(15),char(3),char(12),char(18),char(6),char(2),char(3), -char(2),char(73),char(89),char(3),char(3),char(0),char(63),char(43),char(17),char(0), -char(51),char(24),char(63),char(18),char(57),char(47),char(51),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(1),char(17),char(33),char(53),char(33),char(21),char(33), -char(17),char(33),char(21),char(33),char(17),char(35),char(17),char(33),char(53),char(1), -char(225),char(254),char(49),char(4),char(72),char(254),char(49),char(1),char(54),char(254), -char(202),char(170),char(254),char(199),char(3),char(47),char(1),char(240),char(151),char(151), -char(254),char(16),char(141),char(253),char(94),char(2),char(162),char(141),char(0),char(1), -char(0),char(31),char(255),char(236),char(2),char(168),char(5),char(70),char(0),char(28), -char(0),char(76),char(64),char(41),char(23),char(19),char(27),char(27),char(12),char(8), -char(2),char(21),char(25),char(8),char(10),char(14),char(6),char(29),char(30),char(14), -char(22),char(19),char(22),char(71),char(89),char(26),char(10),char(11),char(10),char(71), -char(89),char(23),char(11),char(11),char(6),char(17),char(64),char(19),char(15),char(6), -char(0),char(70),char(89),char(6),char(22),char(0),char(63),char(43),char(0),char(24), -char(63),char(26),char(205),char(18),char(57),char(47),char(51),char(43),char(17),char(0), -char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(51),char(17),char(51),char(51),char(49),char(48),char(37),char(50), -char(55),char(21),char(6),char(6),char(35),char(32),char(17),char(53),char(35),char(53), -char(51),char(17),char(35),char(53),char(55),char(55),char(51),char(21),char(33),char(21), -char(33),char(17),char(33),char(21),char(33),char(21),char(20),char(2),char(23),char(85), -char(60),char(32),char(106),char(42),char(254),char(200),char(141),char(141),char(157),char(157), -char(70),char(96),char(1),char(62),char(254),char(194),char(1),char(45),char(254),char(211), -char(117),char(20),char(127),char(14),char(16),char(1),char(92),char(254),char(129),char(1), -char(0),char(80),char(69),char(234),char(254),char(129),char(255),char(0),char(129),char(244), -char(221),char(0),char(255),char(255),char(0),char(186),char(255),char(236),char(5),char(25), -char(7),char(47),char(2),char(38),char(0),char(56),char(0),char(0),char(1),char(7), -char(1),char(82),char(0),char(111),char(1),char(82),char(0),char(8),char(179),char(1), -char(27),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(164), -char(255),char(236),char(4),char(57),char(5),char(221),char(2),char(38),char(0),char(88), -char(0),char(0),char(1),char(6),char(1),char(82),char(247),char(0),char(0),char(8), -char(179),char(1),char(30),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(186),char(255),char(236),char(5),char(25),char(6),char(180),char(2),char(38), -char(0),char(56),char(0),char(0),char(1),char(7),char(1),char(77),char(0),char(145), -char(1),char(82),char(0),char(8),char(179),char(1),char(21),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236),char(4),char(57), -char(5),char(98),char(2),char(38),char(0),char(88),char(0),char(0),char(1),char(6), -char(1),char(77),char(25),char(0),char(0),char(8),char(179),char(1),char(24),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(186),char(255),char(236), -char(5),char(25),char(7),char(55),char(2),char(38),char(0),char(56),char(0),char(0), -char(1),char(7),char(1),char(78),char(0),char(139),char(1),char(82),char(0),char(8), -char(179),char(1),char(18),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(164),char(255),char(236),char(4),char(57),char(5),char(229),char(2),char(38), -char(0),char(88),char(0),char(0),char(1),char(6),char(1),char(78),char(18),char(0), -char(0),char(8),char(179),char(1),char(21),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(186),char(255),char(236),char(5),char(25),char(7),char(215), -char(2),char(38),char(0),char(56),char(0),char(0),char(1),char(7),char(1),char(80), -char(0),char(156),char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(21), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(164), -char(255),char(236),char(4),char(57),char(6),char(133),char(2),char(38),char(0),char(88), -char(0),char(0),char(1),char(6),char(1),char(80),char(35),char(0),char(0),char(10), -char(180),char(2),char(1),char(24),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(186),char(255),char(236),char(5),char(25),char(7),char(115), -char(2),char(38),char(0),char(56),char(0),char(0),char(1),char(7),char(1),char(83), -char(0),char(225),char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(37), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(164), -char(255),char(236),char(4),char(57),char(6),char(33),char(2),char(38),char(0),char(88), -char(0),char(0),char(1),char(6),char(1),char(83),char(104),char(0),char(0),char(10), -char(180),char(2),char(1),char(40),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(186),char(254),char(66),char(5),char(25),char(5),char(182), -char(2),char(38),char(0),char(56),char(0),char(0),char(0),char(7),char(1),char(81), -char(2),char(33),char(0),char(0),char(255),char(255),char(0),char(164),char(254),char(66), -char(4),char(101),char(4),char(72),char(2),char(38),char(0),char(88),char(0),char(0), -char(0),char(7),char(1),char(81),char(2),char(244),char(0),char(0),char(255),char(255), -char(0),char(27),char(0),char(0),char(7),char(76),char(7),char(115),char(2),char(38), -char(0),char(58),char(0),char(0),char(1),char(7),char(1),char(75),char(1),char(84), -char(1),char(82),char(0),char(8),char(179),char(1),char(40),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(23),char(0),char(0),char(6),char(35), -char(6),char(33),char(2),char(38),char(0),char(90),char(0),char(0),char(1),char(7), -char(1),char(75),char(0),char(193),char(0),char(0),char(0),char(8),char(179),char(1), -char(43),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(0), -char(0),char(0),char(4),char(123),char(7),char(115),char(2),char(38),char(0),char(60), -char(0),char(0),char(1),char(7),char(1),char(75),char(255),char(224),char(1),char(82), -char(0),char(8),char(179),char(1),char(23),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(2),char(254),char(20),char(4),char(6),char(6),char(33), -char(2),char(38),char(0),char(92),char(0),char(0),char(1),char(6),char(1),char(75), -char(173),char(0),char(0),char(8),char(179),char(1),char(36),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0),char(4),char(123), -char(7),char(37),char(2),char(38),char(0),char(60),char(0),char(0),char(1),char(7), -char(0),char(106),char(255),char(241),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(30),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(82),char(0),char(0),char(4),char(63),char(7),char(115),char(2),char(38), -char(0),char(61),char(0),char(0),char(1),char(7),char(0),char(118),char(0),char(66), -char(1),char(82),char(0),char(8),char(179),char(1),char(19),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(82),char(0),char(0),char(3),char(109), -char(6),char(33),char(2),char(38),char(0),char(93),char(0),char(0),char(1),char(6), -char(0),char(118),char(232),char(0),char(0),char(8),char(179),char(1),char(19),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(82),char(0),char(0), -char(4),char(63),char(7),char(49),char(2),char(38),char(0),char(61),char(0),char(0), -char(1),char(7),char(1),char(79),char(1),char(68),char(1),char(82),char(0),char(8), -char(179),char(1),char(19),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(82),char(0),char(0),char(3),char(109),char(5),char(223),char(2),char(38), -char(0),char(93),char(0),char(0),char(1),char(7),char(1),char(79),char(0),char(223), -char(0),char(0),char(0),char(8),char(179),char(1),char(19),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(82),char(0),char(0),char(4),char(63), -char(7),char(115),char(2),char(38),char(0),char(61),char(0),char(0),char(1),char(7), -char(1),char(76),char(255),char(237),char(1),char(82),char(0),char(8),char(179),char(1), -char(21),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(82), -char(0),char(0),char(3),char(109),char(6),char(33),char(2),char(38),char(0),char(93), -char(0),char(0),char(1),char(6),char(1),char(76),char(134),char(0),char(0),char(8), -char(179),char(1),char(21),char(17),char(38),char(0),char(43),char(53),char(0),char(1), -char(0),char(176),char(0),char(0),char(2),char(219),char(6),char(31),char(0),char(12), -char(0),char(29),char(64),char(14),char(0),char(1),char(1),char(13),char(6),char(14), -char(4),char(9),char(70),char(89),char(4),char(0),char(1),char(21),char(0),char(63), -char(63),char(43),char(17),char(1),char(51),char(18),char(57),char(17),char(51),char(49), -char(48),char(33),char(35),char(17),char(16),char(33),char(50),char(23),char(7),char(38), -char(35),char(34),char(6),char(21),char(1),char(86),char(166),char(1),char(103),char(96), -char(100),char(43),char(87),char(73),char(97),char(89),char(4),char(156),char(1),char(131), -char(37),char(133),char(30),char(123),char(122),char(0),char(0),char(1),char(0),char(195), -char(254),char(20),char(4),char(23),char(5),char(203),char(0),char(32),char(0),char(68), -char(64),char(36),char(26),char(30),char(30),char(12),char(8),char(18),char(28),char(8), -char(10),char(2),char(5),char(33),char(34),char(29),char(10),char(12),char(10),char(70), -char(89),char(26),char(12),char(12),char(16),char(0),char(16),char(22),char(70),char(89), -char(16),char(4),char(0),char(5),char(70),char(89),char(0),char(27),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(34), -char(39),char(53),char(22),char(51),char(50),char(54),char(53),char(17),char(35),char(53), -char(55),char(53),char(52),char(54),char(51),char(50),char(23),char(7),char(7),char(38), -char(35),char(34),char(6),char(21),char(21),char(33),char(21),char(33),char(17),char(20), -char(6),char(1),char(72),char(69),char(64),char(70),char(61),char(95),char(77),char(222), -char(222),char(162),char(182),char(85),char(120),char(22),char(21),char(102),char(60),char(98), -char(80),char(1),char(26),char(254),char(234),char(158),char(254),char(20),char(19),char(139), -char(18),char(102),char(113),char(3),char(205),char(75),char(60),char(139),char(195),char(178), -char(43),char(64),char(65),char(32),char(105),char(124),char(149),char(129),char(252),char(55), -char(184),char(175),char(0),char(4),char(0),char(0),char(0),char(0),char(5),char(20), -char(7),char(170),char(0),char(16),char(0),char(24),char(0),char(34),char(0),char(46), -char(0),char(97),char(64),char(52),char(17),char(5),char(4),char(24),char(6),char(20), -char(7),char(4),char(3),char(7),char(8),char(35),char(0),char(41),char(11),char(8), -char(11),char(9),char(34),char(20),char(2),char(0),char(29),char(3),char(9),char(48), -char(47),char(38),char(14),char(44),char(2),char(9),char(24),char(6),char(73),char(89), -char(9),char(20),char(14),char(24),char(34),char(14),char(24),char(24),char(14),char(34), -char(3),char(8),char(28),char(4),char(8),char(18),char(0),char(63),char(51),char(47), -char(18),char(23),char(57),char(47),char(47),char(47),char(17),char(18),char(57),char(57), -char(43),char(17),char(0),char(51),char(51),char(17),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(17),char(18),char(57),char(57),char(17),char(57),char(57),char(49),char(48),char(1), -char(20),char(7),char(1),char(35),char(3),char(33),char(3),char(35),char(1),char(38), -char(53),char(52),char(54),char(51),char(50),char(22),char(19),char(3),char(38),char(39), -char(6),char(6),char(7),char(3),char(19),char(54),char(54),char(55),char(51),char(21), -char(6),char(6),char(7),char(35),char(19),char(52),char(38),char(35),char(34),char(6), -char(21),char(20),char(22),char(51),char(50),char(54),char(3),char(104),char(104),char(2), -char(20),char(174),char(176),char(253),char(158),char(166),char(174),char(2),char(20),char(106), -char(122),char(99),char(100),char(125),char(27),char(178),char(25),char(47),char(14),char(48), -char(9),char(177),char(152),char(49),char(102),char(23),char(203),char(32),char(168),char(66), -char(111),char(211),char(66),char(51),char(51),char(66),char(60),char(57),char(53),char(64), -char(5),char(150),char(133),char(56),char(251),char(39),char(1),char(145),char(254),char(111), -char(4),char(215),char(52),char(136),char(101),char(114),char(117),char(252),char(54),char(1), -char(176),char(58),char(145),char(48),char(135),char(24),char(254),char(84),char(4),char(133), -char(59),char(149),char(42),char(16),char(46),char(161),char(45),char(254),char(245),char(57), -char(60),char(60),char(57),char(55),char(61),char(61),char(0),char(5),char(0),char(94), -char(255),char(236),char(3),char(205),char(7),char(170),char(0),char(9),char(0),char(36), -char(0),char(47),char(0),char(59),char(0),char(71),char(0),char(103),char(64),char(55), -char(45),char(18),char(66),char(54),char(60),char(48),char(41),char(21),char(21),char(11), -char(36),char(36),char(6),char(48),char(0),char(54),char(29),char(18),char(7),char(72), -char(73),char(9),char(9),char(4),char(63),char(57),char(69),char(51),char(17),char(11), -char(12),char(21),char(41),char(71),char(89),char(12),char(21),char(21),char(15),char(32), -char(32),char(25),char(70),char(89),char(32),char(16),char(15),char(37),char(70),char(89), -char(15),char(22),char(10),char(21),char(4),char(0),char(47),char(63),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(57),char(43),char(17),char(0),char(51),char(24),char(63),char(51),char(196),char(50), -char(17),char(57),char(47),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(53),char(54),char(54),char(55),char(33),char(21),char(6),char(6), -char(7),char(1),char(39),char(35),char(6),char(6),char(35),char(34),char(38),char(53), -char(16),char(37),char(55),char(53),char(52),char(38),char(35),char(34),char(6),char(7), -char(39),char(54),char(54),char(51),char(50),char(22),char(21),char(17),char(37),char(50), -char(54),char(53),char(53),char(7),char(6),char(6),char(21),char(20),char(22),char(1), -char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50), -char(22),char(7),char(52),char(38),char(35),char(34),char(6),char(21),char(20),char(22), -char(51),char(50),char(54),char(1),char(215),char(46),char(106),char(22),char(1),char(4), -char(21),char(164),char(128),char(1),char(2),char(33),char(8),char(82),char(163),char(122), -char(163),char(185),char(2),char(25),char(180),char(119),char(133),char(96),char(167),char(71), -char(55),char(84),char(208),char(101),char(209),char(201),char(254),char(14),char(155),char(177), -char(166),char(198),char(175),char(109),char(1),char(170),char(123),char(102),char(101),char(121), -char(121),char(101),char(101),char(124),char(109),char(65),char(51),char(51),char(66),char(60), -char(57),char(52),char(64),char(6),char(217),char(16),char(42),char(120),char(31),char(12), -char(24),char(105),char(68),char(249),char(39),char(156),char(103),char(73),char(168),char(155), -char(1),char(76),char(16),char(6),char(68),char(130),char(122),char(52),char(32),char(127), -char(43),char(51),char(174),char(192),char(253),char(20),char(117),char(170),char(153),char(99), -char(7),char(7),char(109),char(115),char(90),char(94),char(5),char(61),char(98),char(119), -char(116),char(99),char(98),char(115),char(119),char(94),char(56),char(61),char(61),char(56), -char(56),char(61),char(61),char(0),char(255),char(255),char(255),char(254),char(0),char(0), -char(6),char(129),char(7),char(115),char(2),char(38),char(0),char(136),char(0),char(0), -char(1),char(7),char(0),char(118),char(2),char(76),char(1),char(82),char(0),char(8), -char(179),char(2),char(29),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(94),char(255),char(236),char(6),char(115),char(6),char(33),char(2),char(38), -char(0),char(168),char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(133), -char(0),char(0),char(0),char(8),char(179),char(3),char(69),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(195),char(5),char(190), -char(7),char(115),char(2),char(38),char(0),char(154),char(0),char(0),char(1),char(7), -char(0),char(118),char(1),char(25),char(1),char(82),char(0),char(8),char(179),char(3), -char(45),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(188),char(4),char(98),char(6),char(33),char(2),char(38),char(0),char(186), -char(0),char(0),char(1),char(6),char(0),char(118),char(86),char(0),char(0),char(8), -char(179),char(3),char(45),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(106),char(254),char(59),char(4),char(2),char(5),char(203),char(2),char(38), -char(0),char(54),char(0),char(0),char(0),char(6),char(2),char(57),char(6),char(0), -char(255),char(255),char(0),char(106),char(254),char(59),char(3),char(115),char(4),char(92), -char(2),char(38),char(0),char(86),char(0),char(0),char(0),char(6),char(2),char(57), -char(185),char(0),char(0),char(1),char(1),char(12),char(4),char(217),char(3),char(174), -char(6),char(33),char(0),char(14),char(0),char(24),char(64),char(9),char(7),char(0), -char(16),char(15),char(11),char(4),char(128),char(14),char(9),char(0),char(47),char(51), -char(26),char(205),char(50),char(17),char(18),char(1),char(57),char(57),char(49),char(48), -char(1),char(54),char(54),char(55),char(51),char(22),char(22),char(23),char(21),char(35), -char(38),char(39),char(6),char(7),char(35),char(1),char(12),char(127),char(102),char(23), -char(166),char(22),char(109),char(125),char(119),char(88),char(133),char(136),char(83),char(115), -char(4),char(240),char(136),char(128),char(41),char(42),char(133),char(130),char(23),char(55), -char(131),char(134),char(52),char(0),char(0),char(1),char(1),char(12),char(4),char(217), -char(3),char(174),char(6),char(33),char(0),char(14),char(0),char(24),char(64),char(9), -char(6),char(0),char(16),char(15),char(5),char(1),char(128),char(3),char(11),char(0), -char(47),char(51),char(26),char(205),char(50),char(17),char(18),char(1),char(57),char(57), -char(49),char(48),char(1),char(51),char(22),char(23),char(54),char(55),char(51),char(21), -char(7),char(6),char(7),char(35),char(38),char(38),char(39),char(1),char(12),char(115), -char(114),char(105),char(130),char(91),char(119),char(66),char(144),char(46),char(166),char(23), -char(102),char(127),char(6),char(33),char(74),char(115),char(130),char(59),char(25),char(68), -char(148),char(87),char(41),char(126),char(136),char(0),char(0),char(1),char(1),char(45), -char(4),char(217),char(3),char(133),char(5),char(98),char(0),char(3),char(0),char(17), -char(181),char(0),char(1),char(4),char(5),char(0),char(3),char(0),char(47),char(51), -char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(33),char(21), -char(33),char(1),char(45),char(2),char(88),char(253),char(168),char(5),char(98),char(137), -char(0),char(1),char(1),char(37),char(4),char(217),char(3),char(145),char(5),char(229), -char(0),char(14),char(0),char(24),char(64),char(9),char(12),char(3),char(16),char(15), -char(11),char(4),char(128),char(8),char(0),char(0),char(47),char(50),char(26),char(204), -char(50),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(34), -char(38),char(39),char(51),char(30),char(2),char(51),char(50),char(54),char(55),char(51), -char(6),char(6),char(2),char(86),char(140),char(156),char(9),char(104),char(6),char(41), -char(73),char(85),char(101),char(96),char(10),char(104),char(10),char(167),char(4),char(217), -char(137),char(131),char(49),char(56),char(26),char(64),char(67),char(126),char(142),char(0), -char(0),char(1),char(0),char(162),char(5),char(2),char(1),char(102),char(5),char(223), -char(0),char(11),char(0),char(19),char(182),char(6),char(0),char(0),char(12),char(13), -char(3),char(9),char(0),char(47),char(205),char(17),char(18),char(1),char(57),char(17), -char(51),char(49),char(48),char(19),char(52),char(54),char(51),char(50),char(22),char(21), -char(20),char(6),char(35),char(34),char(38),char(162),char(56),char(42),char(40),char(58), -char(58),char(40),char(42),char(56),char(5),char(113),char(57),char(53),char(54),char(56), -char(56),char(55),char(55),char(0),char(0),char(2),char(1),char(111),char(4),char(217), -char(3),char(45),char(6),char(133),char(0),char(11),char(0),char(23),char(0),char(30), -char(64),char(12),char(18),char(6),char(12),char(0),char(6),char(0),char(24),char(25), -char(15),char(9),char(21),char(3),char(0),char(47),char(51),char(204),char(50),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51), -char(50),char(22),char(7),char(52),char(38),char(35),char(34),char(6),char(21),char(20), -char(22),char(51),char(50),char(54),char(3),char(45),char(123),char(102),char(101),char(120), -char(121),char(100),char(101),char(124),char(108),char(66),char(51),char(51),char(66),char(60), -char(57),char(52),char(65),char(5),char(178),char(98),char(119),char(117),char(98),char(98), -char(115),char(119),char(94),char(56),char(61),char(61),char(56),char(56),char(61),char(61), -char(0),char(1),char(0),char(37),char(254),char(66),char(1),char(113),char(0),char(0), -char(0),char(15),char(0),char(24),char(64),char(10),char(0),char(9),char(4),char(13), -char(9),char(3),char(16),char(17),char(2),char(7),char(0),char(47),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(23),char(20), -char(51),char(50),char(55),char(21),char(6),char(35),char(34),char(53),char(52),char(54), -char(55),char(51),char(6),char(6),char(178),char(94),char(42),char(55),char(65),char(60), -char(207),char(86),char(72),char(120),char(68),char(69),char(238),char(94),char(13),char(109), -char(18),char(188),char(70),char(135),char(53),char(66),char(109),char(0),char(0),char(1), -char(1),char(8),char(4),char(217),char(3),char(240),char(5),char(221),char(0),char(23), -char(0),char(36),char(64),char(15),char(9),char(21),char(24),char(25),char(17),char(0), -char(5),char(12),char(0),char(12),char(0),char(12),char(21),char(128),char(9),char(0), -char(47),char(26),char(204),char(57),char(57),char(47),char(47),char(17),char(51),char(17), -char(51),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(34), -char(46),char(2),char(35),char(34),char(6),char(7),char(35),char(54),char(54),char(51), -char(50),char(30),char(2),char(51),char(50),char(54),char(55),char(51),char(6),char(6), -char(3),char(20),char(43),char(82),char(79),char(73),char(34),char(50),char(51),char(14), -char(98),char(13),char(115),char(91),char(46),char(86),char(78),char(72),char(32),char(49), -char(48),char(15),char(99),char(13),char(113),char(4),char(219),char(37),char(45),char(37), -char(60),char(61),char(121),char(137),char(37),char(45),char(37),char(59),char(62),char(121), -char(137),char(0),char(0),char(2),char(0),char(231),char(4),char(217),char(3),char(182), -char(6),char(33),char(0),char(9),char(0),char(19),char(0),char(27),char(64),char(12), -char(14),char(5),char(19),char(9),char(4),char(20),char(21),char(13),char(4),char(128), -char(19),char(9),char(0),char(47),char(51),char(26),char(205),char(50),char(17),char(18), -char(1),char(23),char(57),char(49),char(48),char(19),char(54),char(54),char(55),char(51), -char(21),char(6),char(6),char(7),char(35),char(37),char(54),char(54),char(55),char(51), -char(21),char(6),char(6),char(7),char(35),char(231),char(36),char(110),char(31),char(186), -char(37),char(171),char(58),char(97),char(1),char(101),char(49),char(101),char(26),char(186), -char(37),char(171),char(58),char(96),char(4),char(242),char(48),char(186),char(69),char(21), -char(63),char(196),char(48),char(25),char(68),char(177),char(58),char(21),char(63),char(196), -char(48),char(0),char(0),char(1),char(1),char(252),char(4),char(217),char(3),char(16), -char(6),char(115),char(0),char(9),char(0),char(19),char(182),char(4),char(0),char(11), -char(10),char(4),char(128),char(9),char(0),char(47),char(26),char(205),char(17),char(18), -char(1),char(57),char(57),char(49),char(48),char(1),char(54),char(54),char(55),char(51), -char(21),char(6),char(6),char(7),char(35),char(1),char(252),char(27),char(53),char(12), -char(184),char(18),char(109),char(49),char(100),char(4),char(246),char(72),char(227),char(82), -char(23),char(74),char(237),char(76),char(0),char(3),char(1),char(27),char(5),char(14), -char(3),char(131),char(6),char(180),char(0),char(8),char(0),char(20),char(0),char(32), -char(0),char(43),char(64),char(20),char(15),char(9),char(21),char(27),char(27),char(3), -char(8),char(9),char(4),char(33),char(34),char(24),char(12),char(8),char(12),char(8), -char(12),char(3),char(30),char(18),char(0),char(47),char(51),char(204),char(57),char(57), -char(47),char(47),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(54),char(55),char(51),char(21), -char(6),char(6),char(7),char(35),char(39),char(52),char(54),char(51),char(50),char(22), -char(21),char(20),char(6),char(35),char(34),char(38),char(37),char(52),char(54),char(51), -char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(2),char(0), -char(65),char(31),char(189),char(33),char(121),char(51),char(80),char(229),char(52),char(38), -char(41),char(49),char(55),char(35),char(38),char(52),char(1),char(180),char(52),char(38), -char(41),char(49),char(55),char(35),char(38),char(52),char(5),char(133),char(169),char(134), -char(20),char(67),char(179),char(61),char(4),char(52),char(46),char(52),char(46),char(50), -char(49),char(49),char(50),char(52),char(46),char(52),char(46),char(50),char(49),char(49), -char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16),char(6),char(10), -char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7),char(1),char(84), -char(254),char(32),char(255),char(151),char(0),char(7),char(178),char(2),char(18),char(0), -char(0),char(63),char(53),char(0),char(255),char(255),char(0),char(152),char(2),char(76), -char(1),char(137),char(3),char(90),char(2),char(6),char(0),char(121),char(0),char(0), -char(255),char(255),char(255),char(212),char(0),char(0),char(4),char(117),char(6),char(10), -char(0),char(38),char(0),char(40),char(125),char(0),char(1),char(7),char(1),char(84), -char(253),char(216),char(255),char(151),char(0),char(7),char(178),char(1),char(16),char(0), -char(0),char(63),char(53),char(0),char(255),char(255),char(255),char(212),char(0),char(0), -char(5),char(181),char(6),char(10),char(0),char(39),char(0),char(43),char(0),char(150), -char(0),char(0),char(1),char(7),char(1),char(84),char(253),char(216),char(255),char(151), -char(0),char(7),char(178),char(1),char(16),char(0),char(0),char(63),char(53),char(0), -char(255),char(255),char(255),char(228),char(0),char(0),char(3),char(68),char(6),char(10), -char(0),char(39),char(0),char(44),char(0),char(238),char(0),char(0),char(1),char(7), -char(1),char(84),char(253),char(232),char(255),char(151),char(0),char(7),char(178),char(1), -char(16),char(0),char(0),char(63),char(53),char(0),char(255),char(255),char(255),char(228), -char(255),char(236),char(6),char(2),char(6),char(10),char(0),char(38),char(0),char(50), -char(68),char(0),char(1),char(7),char(1),char(84),char(253),char(232),char(255),char(151), -char(0),char(7),char(178),char(2),char(28),char(0),char(0),char(63),char(53),char(0), -char(255),char(255),char(255),char(212),char(0),char(0),char(5),char(133),char(6),char(10), -char(0),char(39),char(0),char(60),char(1),char(10),char(0),char(0),char(1),char(7), -char(1),char(84),char(253),char(216),char(255),char(151),char(0),char(7),char(178),char(1), -char(13),char(0),char(0),char(63),char(53),char(0),char(255),char(255),char(255),char(228), -char(0),char(0),char(6),char(51),char(6),char(10),char(0),char(38),char(1),char(118), -char(63),char(0),char(1),char(7),char(1),char(84),char(253),char(232),char(255),char(151), -char(0),char(7),char(178),char(1),char(35),char(0),char(0),char(63),char(53),char(0), -char(255),char(255),char(255),char(233),char(255),char(236),char(2),char(147),char(6),char(180), -char(2),char(38),char(1),char(134),char(0),char(0),char(1),char(7),char(1),char(85), -char(254),char(206),char(0),char(0),char(0),char(12),char(181),char(3),char(2),char(1), -char(46),char(17),char(38),char(0),char(43),char(53),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(5),char(188),char(2),char(6), -char(0),char(36),char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0), -char(4),char(190),char(5),char(182),char(2),char(6),char(0),char(37),char(0),char(0), -char(0),char(1),char(0),char(201),char(0),char(0),char(3),char(248),char(5),char(182), -char(0),char(5),char(0),char(29),char(64),char(14),char(3),char(4),char(4),char(0), -char(6),char(7),char(5),char(2),char(73),char(89),char(5),char(3),char(4),char(18), -char(0),char(63),char(63),char(43),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(49),char(48),char(1),char(21),char(33),char(17),char(35),char(17),char(3), -char(248),char(253),char(123),char(170),char(5),char(182),char(153),char(250),char(227),char(5), -char(182),char(0),char(255),char(255),char(0),char(39),char(0),char(0),char(4),char(109), -char(5),char(182),char(2),char(6),char(2),char(40),char(0),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(3),char(248),char(5),char(182),char(2),char(6), -char(0),char(40),char(0),char(0),char(255),char(255),char(0),char(82),char(0),char(0), -char(4),char(63),char(5),char(182),char(2),char(6),char(0),char(61),char(0),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(5),char(31),char(5),char(182), -char(2),char(6),char(0),char(43),char(0),char(0),char(0),char(3),char(0),char(125), -char(255),char(236),char(5),char(190),char(5),char(205),char(0),char(3),char(0),char(15), -char(0),char(27),char(0),char(63),char(64),char(32),char(2),char(3),char(16),char(22), -char(16),char(10),char(22),char(4),char(10),char(4),char(28),char(29),char(0),char(3), -char(73),char(89),char(0),char(0),char(7),char(13),char(13),char(25),char(73),char(89), -char(13),char(4),char(7),char(19),char(73),char(89),char(7),char(19),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17), -char(51),char(17),char(18),char(57),char(57),char(49),char(48),char(1),char(33),char(21), -char(33),char(37),char(16),char(0),char(33),char(32),char(0),char(17),char(16),char(0), -char(33),char(32),char(0),char(1),char(16),char(18),char(51),char(50),char(18),char(17), -char(16),char(2),char(35),char(34),char(2),char(1),char(227),char(2),char(117),char(253), -char(139),char(3),char(219),char(254),char(157),char(254),char(196),char(254),char(189),char(254), -char(161),char(1),char(96),char(1),char(68),char(1),char(59),char(1),char(98),char(251), -char(115),char(250),char(244),char(243),char(248),char(247),char(242),char(245),char(251),char(3), -char(51),char(149),char(63),char(254),char(161),char(254),char(110),char(1),char(139),char(1), -char(104),char(1),char(101),char(1),char(137),char(254),char(112),char(254),char(160),char(254), -char(216),char(254),char(204),char(1),char(48),char(1),char(44),char(1),char(42),char(1), -char(46),char(254),char(206),char(0),char(255),char(255),char(0),char(84),char(0),char(0), -char(2),char(86),char(5),char(182),char(2),char(6),char(0),char(44),char(0),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(4),char(233),char(5),char(182), -char(2),char(6),char(0),char(46),char(0),char(0),char(0),char(1),char(0),char(0), -char(0),char(0),char(4),char(211),char(5),char(182),char(0),char(10),char(0),char(26), -char(64),char(11),char(8),char(0),char(12),char(11),char(4),char(8),char(9),char(3), -char(1),char(8),char(18),char(0),char(63),char(51),char(63),char(18),char(57),char(17), -char(18),char(1),char(57),char(57),char(49),char(48),char(33),char(35),char(1),char(38), -char(39),char(6),char(7),char(1),char(35),char(1),char(51),char(4),char(211),char(182), -char(254),char(182),char(87),char(22),char(33),char(71),char(254),char(184),char(182),char(2), -char(16),char(177),char(3),char(160),char(252),char(90),char(139),char(201),char(252),char(94), -char(5),char(182),char(255),char(255),char(0),char(201),char(0),char(0),char(6),char(113), -char(5),char(182),char(2),char(6),char(0),char(48),char(0),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(5),char(63),char(5),char(182),char(2),char(6), -char(0),char(49),char(0),char(0),char(0),char(3),char(0),char(72),char(0),char(0), -char(4),char(37),char(5),char(182),char(0),char(3),char(0),char(7),char(0),char(11), -char(0),char(52),char(64),char(29),char(10),char(7),char(3),char(2),char(6),char(8), -char(6),char(13),char(12),char(0),char(3),char(73),char(89),char(0),char(0),char(10), -char(4),char(10),char(11),char(73),char(89),char(10),char(18),char(4),char(7),char(73), -char(89),char(4),char(3),char(0),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(1), -char(23),char(57),char(49),char(48),char(19),char(33),char(21),char(33),char(3),char(33), -char(21),char(33),char(1),char(21),char(33),char(53),char(195),char(2),char(231),char(253), -char(25),char(82),char(3),char(139),char(252),char(117),char(3),char(180),char(252),char(35), -char(3),char(72),char(150),char(3),char(4),char(151),char(251),char(121),char(152),char(152), -char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190),char(5),char(205), -char(2),char(6),char(0),char(50),char(0),char(0),char(0),char(1),char(0),char(201), -char(0),char(0),char(5),char(12),char(5),char(182),char(0),char(7),char(0),char(35), -char(64),char(17),char(1),char(0),char(4),char(5),char(0),char(5),char(9),char(8), -char(6),char(3),char(73),char(89),char(6),char(3),char(1),char(5),char(18),char(0), -char(63),char(51),char(63),char(43),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(33),char(17), -char(35),char(17),char(33),char(5),char(12),char(170),char(253),char(17),char(170),char(4), -char(67),char(5),char(31),char(250),char(225),char(5),char(182),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(4),char(104),char(5),char(182),char(2),char(6), -char(0),char(51),char(0),char(0),char(0),char(1),char(0),char(74),char(0),char(0), -char(4),char(92),char(5),char(182),char(0),char(12),char(0),char(53),char(64),char(28), -char(8),char(10),char(10),char(0),char(9),char(2),char(11),char(6),char(3),char(2), -char(0),char(5),char(13),char(14),char(7),char(8),char(4),char(8),char(73),char(89), -char(4),char(3),char(0),char(10),char(73),char(89),char(0),char(18),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(0),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(51),char(53),char(1),char(1),char(53),char(33),char(21),char(33),char(39), -char(1),char(1),char(33),char(21),char(74),char(1),char(225),char(254),char(43),char(3), -char(203),char(253),char(92),char(96),char(1),char(204),char(254),char(31),char(3),char(84), -char(141),char(2),char(111),char(2),char(43),char(143),char(153),char(2),char(253),char(223), -char(253),char(154),char(152),char(0),char(255),char(255),char(0),char(18),char(0),char(0), -char(4),char(90),char(5),char(182),char(2),char(6),char(0),char(55),char(0),char(0), -char(255),char(255),char(0),char(0),char(0),char(0),char(4),char(123),char(5),char(182), -char(2),char(6),char(0),char(60),char(0),char(0),char(0),char(3),char(0),char(106), -char(255),char(236),char(5),char(248),char(5),char(203),char(0),char(25),char(0),char(34), -char(0),char(43),char(0),char(80),char(64),char(41),char(39),char(20),char(26),char(2), -char(13),char(13),char(43),char(25),char(14),char(30),char(7),char(7),char(14),char(20), -char(3),char(44),char(45),char(12),char(16),char(26),char(42),char(16),char(42),char(74), -char(89),char(34),char(36),char(24),char(36),char(74),char(89),char(2),char(24),char(16), -char(24),char(16),char(24),char(14),char(19),char(0),char(4),char(0),char(63),char(63), -char(57),char(57),char(47),char(47),char(17),char(51),char(43),char(17),char(0),char(51), -char(43),char(17),char(0),char(51),char(17),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(51),char(51),char(17),char(51),char(51), -char(17),char(51),char(49),char(48),char(1),char(51),char(21),char(51),char(50),char(22), -char(22),char(21),char(20),char(2),char(4),char(35),char(35),char(21),char(35),char(53), -char(35),char(34),char(36),char(2),char(53),char(52),char(54),char(54),char(51),char(51), -char(19),char(51),char(50),char(54),char(53),char(52),char(38),char(43),char(3),char(34), -char(6),char(21),char(20),char(22),char(51),char(51),char(2),char(219),char(172),char(70), -char(171),char(251),char(133),char(149),char(254),char(253),char(176),char(41),char(172),char(45), -char(176),char(254),char(254),char(146),char(135),char(252),char(171),char(67),char(172),char(25), -char(201),char(223),char(206),char(185),char(58),char(172),char(57),char(182),char(209),char(222), -char(202),char(24),char(5),char(203),char(180),char(136),char(248),char(159),char(166),char(254), -char(253),char(130),char(225),char(225),char(132),char(1),char(4),char(161),char(158),char(248), -char(139),char(252),char(69),char(219),char(195),char(185),char(210),char(212),char(183),char(197), -char(217),char(0),char(255),char(255),char(0),char(8),char(0),char(0),char(4),char(150), -char(5),char(182),char(2),char(6),char(0),char(59),char(0),char(0),char(0),char(1), -char(0),char(109),char(0),char(0),char(5),char(242),char(5),char(182),char(0),char(29), -char(0),char(62),char(64),char(31),char(10),char(7),char(17),char(0),char(0),char(14), -char(1),char(21),char(24),char(24),char(1),char(7),char(3),char(30),char(31),char(29), -char(3),char(13),char(3),char(73),char(89),char(17),char(13),char(13),char(1),char(22), -char(15),char(8),char(3),char(1),char(18),char(0),char(63),char(63),char(51),char(51), -char(18),char(57),char(47),char(51),char(43),char(17),char(0),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(35),char(34),char(38), -char(38),char(53),char(17),char(51),char(17),char(20),char(22),char(51),char(51),char(17), -char(51),char(17),char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(20), -char(6),char(4),char(35),char(35),char(3),char(131),char(170),char(45),char(176),char(255), -char(144),char(174),char(207),char(212),char(27),char(170),char(29),char(211),char(207),char(176), -char(144),char(254),char(253),char(175),char(45),char(1),char(190),char(122),char(247),char(164), -char(1),char(227),char(254),char(33),char(188),char(201),char(3),char(100),char(252),char(156), -char(198),char(187),char(1),char(227),char(254),char(31),char(165),char(247),char(123),char(0), -char(0),char(1),char(0),char(80),char(0),char(0),char(5),char(244),char(5),char(205), -char(0),char(31),char(0),char(57),char(64),char(32),char(3),char(13),char(29),char(19), -char(24),char(19),char(22),char(25),char(7),char(10),char(13),char(8),char(8),char(32), -char(33),char(16),char(0),char(73),char(89),char(16),char(4),char(26),char(22),char(6), -char(9),char(8),char(9),char(73),char(89),char(25),char(8),char(18),char(0),char(63), -char(51),char(43),char(17),char(0),char(51),char(51),char(51),char(24),char(63),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(34),char(2),char(21),char(20),char(18),char(23),char(21),char(33), -char(53),char(33),char(38),char(2),char(53),char(16),char(0),char(33),char(32),char(0), -char(17),char(20),char(2),char(7),char(33),char(21),char(33),char(53),char(54),char(18), -char(53),char(52),char(2),char(3),char(33),char(238),char(250),char(173),char(180),char(253), -char(182),char(1),char(108),char(151),char(160),char(1),char(98),char(1),char(58),char(1), -char(59),char(1),char(98),char(158),char(151),char(1),char(107),char(253),char(182),char(183), -char(169),char(249),char(5),char(53),char(254),char(255),char(253),char(225),char(254),char(179), -char(132),char(133),char(152),char(118),char(1),char(94),char(203),char(1),char(54),char(1), -char(96),char(254),char(165),char(254),char(199),char(207),char(254),char(166),char(120),char(152), -char(133),char(134),char(1),char(78),char(222),char(252),char(1),char(2),char(255),char(255), -char(0),char(60),char(0),char(0),char(2),char(111),char(7),char(37),char(2),char(38), -char(0),char(44),char(0),char(0),char(1),char(7),char(0),char(106),char(255),char(7), -char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(33),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(4),char(123),char(7),char(37),char(2),char(38),char(0),char(60),char(0),char(0), -char(1),char(7),char(0),char(106),char(255),char(239),char(1),char(82),char(0),char(10), -char(180),char(2),char(1),char(30),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(199),char(6),char(115), -char(2),char(38),char(1),char(126),char(0),char(0),char(1),char(6),char(1),char(84), -char(29),char(0),char(0),char(8),char(179),char(2),char(52),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(90),char(255),char(236),char(3),char(135), -char(6),char(115),char(2),char(38),char(1),char(130),char(0),char(0),char(1),char(6), -char(1),char(84),char(200),char(0),char(0),char(8),char(179),char(1),char(47),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(176),char(254),char(20), -char(4),char(68),char(6),char(115),char(2),char(38),char(1),char(132),char(0),char(0), -char(1),char(6),char(1),char(84),char(59),char(0),char(0),char(8),char(179),char(1), -char(30),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(168), -char(255),char(236),char(2),char(147),char(6),char(115),char(2),char(38),char(1),char(134), -char(0),char(0),char(1),char(7),char(1),char(84),char(254),char(196),char(0),char(0), -char(0),char(8),char(179),char(1),char(25),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(164),char(255),char(236),char(4),char(113),char(6),char(180), -char(2),char(38),char(1),char(146),char(0),char(0),char(1),char(6),char(1),char(85), -char(59),char(0),char(0),char(12),char(181),char(3),char(2),char(1),char(52),char(17), -char(38),char(0),char(43),char(53),char(53),char(53),char(0),char(2),char(0),char(115), -char(255),char(236),char(4),char(199),char(4),char(92),char(0),char(11),char(0),char(42), -char(0),char(71),char(64),char(36),char(9),char(15),char(39),char(21),char(4),char(4), -char(29),char(34),char(29),char(15),char(3),char(43),char(44),char(24),char(15),char(39), -char(40),char(40),char(22),char(12),char(18),char(18),char(7),char(70),char(89),char(18), -char(16),char(31),char(0),char(12),char(0),char(70),char(89),char(36),char(12),char(22), -char(0),char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(57),char(17),char(51),char(24),char(63),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(37),char(50),char(54),char(53),char(53),char(52),char(38), -char(35),char(32),char(17),char(20),char(22),char(23),char(34),char(2),char(17),char(16), -char(18),char(51),char(50),char(22),char(23),char(51),char(54),char(55),char(51),char(6), -char(6),char(21),char(17),char(20),char(51),char(50),char(55),char(21),char(6),char(35), -char(34),char(38),char(39),char(35),char(6),char(6),char(2),char(80),char(169),char(150), -char(152),char(169),char(254),char(209),char(147),char(133),char(214),char(238),char(244),char(225), -char(121),char(161),char(54),char(12),char(24),char(41),char(129),char(21),char(28),char(84), -char(29),char(33),char(46),char(65),char(81),char(89),char(18),char(13),char(59),char(167), -char(119),char(195),char(218),char(15),char(229),char(199),char(254),char(80),char(212),char(212), -char(139),char(1),char(41),char(1),char(12),char(1),char(18),char(1),char(41),char(84), -char(84),char(92),char(56),char(66),char(246),char(116),char(254),char(73),char(114),char(10), -char(119),char(26),char(81),char(86),char(86),char(81),char(0),char(2),char(0),char(176), -char(254),char(20),char(4),char(168),char(6),char(31),char(0),char(19),char(0),char(41), -char(0),char(76),char(64),char(40),char(24),char(15),char(15),char(16),char(39),char(3), -char(30),char(8),char(8),char(3),char(5),char(34),char(16),char(5),char(42),char(43), -char(16),char(27),char(35),char(34),char(70),char(89),char(14),char(35),char(14),char(35), -char(11),char(0),char(11),char(27),char(70),char(89),char(11),char(22),char(0),char(20), -char(70),char(89),char(0),char(0),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(47),char(47),char(43), -char(0),char(24),char(63),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(50), -char(22),char(21),char(16),char(5),char(21),char(4),char(17),char(20),char(4),char(35), -char(34),char(38),char(39),char(17),char(35),char(17),char(52),char(54),char(23),char(34), -char(6),char(21),char(17),char(22),char(22),char(51),char(50),char(54),char(53),char(52), -char(38),char(35),char(35),char(53),char(51),char(50),char(54),char(53),char(52),char(38), -char(2),char(147),char(220),char(249),char(254),char(199),char(1),char(121),char(254),char(248), -char(238),char(109),char(160),char(79),char(166),char(253),char(228),char(158),char(157),char(93), -char(161),char(86),char(171),char(173),char(190),char(177),char(112),char(92),char(155),char(162), -char(156),char(6),char(31),char(208),char(183),char(254),char(218),char(51),char(8),char(42), -char(254),char(145),char(209),char(225),char(31),char(38),char(253),char(227),char(6),char(52), -char(225),char(246),char(140),char(172),char(165),char(252),char(137),char(49),char(37),char(150), -char(157),char(157),char(164),char(142),char(147),char(137),char(123),char(133),char(0),char(1), -char(0),char(10),char(254),char(20),char(4),char(14),char(4),char(72),char(0),char(18), -char(0),char(33),char(64),char(16),char(15),char(4),char(1),char(5),char(4),char(19), -char(20),char(10),char(9),char(9),char(1),char(14),char(5),char(15),char(1),char(27), -char(0),char(63),char(63),char(51),char(18),char(57),char(47),char(51),char(17),char(18), -char(1),char(23),char(57),char(49),char(48),char(1),char(35),char(52),char(18),char(55), -char(1),char(51),char(19),char(22),char(23),char(51),char(62),char(2),char(19),char(51), -char(1),char(6),char(2),char(2),char(20),char(180),char(64),char(43),char(254),char(63), -char(172),char(240),char(94),char(19),char(8),char(5),char(41),char(43),char(234),char(172), -char(254),char(107),char(48),char(53),char(254),char(20),char(96),char(1),char(38),char(114), -char(4),char(60),char(253),char(184),char(235),char(103),char(30),char(142),char(129),char(2), -char(109),char(251),char(211),char(124),char(254),char(220),char(0),char(2),char(0),char(113), -char(255),char(236),char(4),char(96),char(6),char(18),char(0),char(30),char(0),char(42), -char(0),char(59),char(64),char(32),char(37),char(28),char(16),char(3),char(31),char(22), -char(22),char(9),char(0),char(3),char(28),char(5),char(43),char(44),char(16),char(0), -char(34),char(3),char(25),char(6),char(25),char(40),char(70),char(89),char(25),char(22), -char(6),char(13),char(70),char(89),char(6),char(0),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(23),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(38),char(38),char(53),char(52),char(54),char(51),char(50),char(22), -char(23),char(7),char(38),char(38),char(35),char(34),char(6),char(21),char(20),char(22), -char(23),char(22),char(22),char(21),char(20),char(0),char(35),char(34),char(36),char(53), -char(52),char(18),char(1),char(52),char(38),char(39),char(6),char(6),char(21),char(20), -char(22),char(51),char(50),char(54),char(2),char(33),char(140),char(116),char(194),char(164), -char(103),char(189),char(126),char(72),char(112),char(159),char(81),char(85),char(97),char(107), -char(167),char(210),char(177),char(254),char(240),char(236),char(227),char(254),char(240),char(226), -char(2),char(97),char(123),char(141),char(206),char(191),char(178),char(147),char(162),char(174), -char(3),char(168),char(78),char(159),char(99),char(130),char(152),char(45),char(63),char(135), -char(62),char(44),char(79),char(66),char(71),char(111),char(91),char(115),char(241),char(164), -char(235),char(254),char(248),char(248),char(210),char(177),char(1),char(5),char(254),char(115), -char(128),char(183),char(74),char(53),char(217),char(160),char(144),char(171),char(186),char(0), -char(0),char(1),char(0),char(90),char(255),char(236),char(3),char(135),char(4),char(92), -char(0),char(37),char(0),char(77),char(64),char(43),char(4),char(16),char(35),char(23), -char(29),char(11),char(1),char(19),char(23),char(16),char(6),char(38),char(39),char(20), -char(37),char(2),char(37),char(2),char(70),char(89),char(15),char(37),char(31),char(37), -char(2),char(11),char(3),char(37),char(37),char(13),char(26),char(26),char(33),char(70), -char(89),char(26),char(16),char(13),char(7),char(70),char(89),char(13),char(22),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(95),char(94),char(93),char(43),char(17),char(18),char(0),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(21),char(35),char(32),char(21),char(20),char(22),char(51),char(50), -char(54),char(55),char(21),char(6),char(35),char(34),char(38),char(53),char(52),char(54), -char(55),char(53),char(38),char(38),char(53),char(52),char(54),char(51),char(50),char(22), -char(23),char(7),char(38),char(38),char(35),char(34),char(21),char(20),char(33),char(2), -char(203),char(148),char(254),char(201),char(147),char(146),char(84),char(166),char(100),char(137), -char(221),char(210),char(241),char(110),char(130),char(98),char(107),char(224),char(192),char(97), -char(165),char(100),char(63),char(94),char(130),char(79),char(250),char(1),char(61),char(2), -char(129),char(141),char(195),char(90),char(98),char(39),char(47),char(148),char(75),char(169), -char(148),char(98),char(131),char(41),char(11),char(28),char(127),char(92),char(133),char(158), -char(33),char(45),char(133),char(42),char(28),char(162),char(172),char(0),char(0),char(1), -char(0),char(115),char(254),char(111),char(3),char(160),char(6),char(20),char(0),char(32), -char(0),char(48),char(64),char(24),char(7),char(25),char(30),char(19),char(19),char(14), -char(14),char(3),char(0),char(25),char(4),char(33),char(34),char(17),char(35),char(30), -char(3),char(0),char(1),char(0),char(70),char(89),char(1),char(0),char(0),char(63), -char(43),char(17),char(0),char(51),char(51),char(24),char(63),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(19),char(53),char(33),char(21),char(6),char(0),char(2),char(21),char(20),char(22), -char(22),char(23),char(22),char(22),char(21),char(20),char(7),char(35),char(54),char(53), -char(52),char(38),char(39),char(38),char(38),char(53),char(52),char(62),char(2),char(55), -char(6),char(33),char(176),char(2),char(240),char(215),char(254),char(224),char(138),char(59), -char(125),char(172),char(149),char(136),char(127),char(166),char(125),char(111),char(143),char(203), -char(188),char(59),char(112),char(201),char(242),char(40),char(254),char(241),char(5),char(135), -char(141),char(129),char(180),char(254),char(189),char(254),char(223),char(166),char(98),char(118), -char(73),char(37),char(31),char(109),char(91),char(149),char(164),char(161),char(107),char(56), -char(61),char(26),char(36),char(219),char(194),char(114),char(208),char(195),char(229),char(218), -char(8),char(0),char(0),char(1),char(0),char(176),char(254),char(20),char(4),char(68), -char(4),char(92),char(0),char(20),char(0),char(47),char(64),char(24),char(0),char(20), -char(12),char(8),char(8),char(9),char(20),char(9),char(22),char(21),char(16),char(4), -char(70),char(89),char(16),char(16),char(12),char(9),char(10),char(15),char(9),char(21), -char(0),char(27),char(0),char(63),char(63),char(63),char(18),char(57),char(63),char(43), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(17),char(52),char(38),char(35),char(34),char(6), -char(21),char(17),char(35),char(17),char(51),char(23),char(51),char(54),char(54),char(51), -char(50),char(22),char(21),char(17),char(3),char(158),char(122),char(130),char(172),char(160), -char(166),char(135),char(27),char(8),char(51),char(184),char(113),char(198),char(200),char(254), -char(20),char(4),char(177),char(134),char(132),char(186),char(214),char(253),char(193),char(4), -char(72),char(150),char(81),char(89),char(191),char(210),char(251),char(73),char(0),char(3), -char(0),char(115),char(255),char(236),char(4),char(74),char(6),char(43),char(0),char(11), -char(0),char(18),char(0),char(25),char(0),char(73),char(64),char(39),char(22),char(16), -char(16),char(6),char(23),char(15),char(15),char(0),char(6),char(0),char(26),char(27), -char(22),char(16),char(70),char(89),char(15),char(22),char(191),char(22),char(2),char(11), -char(3),char(22),char(22),char(3),char(9),char(9),char(19),char(70),char(89),char(9), -char(1),char(3),char(12),char(70),char(89),char(3),char(22),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(95),char(94),char(93),char(43),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(16),char(2),char(35),char(34),char(2),char(17),char(16),char(18),char(51),char(50), -char(18),char(1),char(50),char(18),char(19),char(33),char(18),char(18),char(19),char(34), -char(2),char(3),char(33),char(2),char(2),char(4),char(74),char(244),char(250),char(240), -char(249),char(245),char(244),char(244),char(250),char(254),char(18),char(164),char(156),char(6), -char(253),char(121),char(4),char(150),char(167),char(161),char(150),char(10),char(2),char(133), -char(11),char(152),char(3),char(12),char(254),char(106),char(254),char(118),char(1),char(147), -char(1),char(141),char(1),char(151),char(1),char(136),char(254),char(107),char(251),char(225), -char(1),char(49),char(1),char(51),char(254),char(208),char(254),char(204),char(5),char(41), -char(254),char(225),char(254),char(231),char(1),char(25),char(1),char(31),char(0),char(1), -char(0),char(168),char(255),char(236),char(2),char(147),char(4),char(72),char(0),char(15), -char(0),char(31),char(64),char(14),char(1),char(14),char(7),char(14),char(17),char(16), -char(15),char(15),char(11),char(4),char(70),char(89),char(11),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(49),char(48),char(1),char(17),char(20),char(22),char(51),char(50),char(54), -char(55),char(21),char(6),char(6),char(35),char(34),char(38),char(53),char(17),char(1), -char(78),char(73),char(87),char(37),char(101),char(27),char(31),char(105),char(50),char(160), -char(145),char(4),char(72),char(252),char(250),char(104),char(101),char(13),char(7),char(127), -char(13),char(17),char(168),char(169),char(3),char(11),char(255),char(255),char(0),char(176), -char(0),char(0),char(4),char(27),char(4),char(70),char(2),char(6),char(0),char(250), -char(0),char(0),char(0),char(1),char(255),char(242),char(255),char(236),char(4),char(70), -char(6),char(33),char(0),char(34),char(0),char(51),char(64),char(27),char(8),char(1), -char(21),char(3),char(36),char(0),char(0),char(35),char(24),char(19),char(70),char(89), -char(24),char(22),char(30),char(31),char(31),char(0),char(11),char(11),char(6),char(70), -char(89),char(11),char(1),char(0),char(21),char(0),char(63),char(63),char(43),char(17), -char(18),char(0),char(57),char(17),char(51),char(24),char(63),char(43),char(17),char(1), -char(51),char(17),char(18),char(23),char(57),char(49),char(48),char(35),char(1),char(39), -char(46),char(2),char(35),char(34),char(7),char(53),char(54),char(51),char(50),char(22), -char(22),char(23),char(1),char(22),char(22),char(51),char(50),char(55),char(21),char(6), -char(35),char(34),char(38),char(39),char(3),char(38),char(39),char(35),char(6),char(7), -char(3),char(14),char(1),char(217),char(58),char(30),char(50),char(67),char(49),char(58), -char(57),char(68),char(63),char(91),char(121),char(88),char(54),char(1),char(107),char(19), -char(42),char(35),char(27),char(33),char(48),char(61),char(74),char(83),char(29),char(156), -char(84),char(22),char(9),char(28),char(88),char(254),char(4),char(55),char(162),char(85), -char(70),char(36),char(13),char(133),char(17),char(60),char(130),char(152),char(252),char(12), -char(49),char(51),char(10),char(121),char(24),char(76),char(83),char(1),char(180),char(240), -char(96),char(116),char(209),char(253),char(182),char(0),char(255),char(255),char(0),char(176), -char(254),char(20),char(4),char(68),char(4),char(72),char(2),char(6),char(0),char(119), -char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(0),char(4),char(2), -char(4),char(72),char(0),char(14),char(0),char(28),char(64),char(12),char(9),char(10), -char(10),char(0),char(16),char(15),char(5),char(14),char(21),char(9),char(0),char(15), -char(0),char(63),char(50),char(63),char(57),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(49),char(48),char(17),char(51),char(19),char(22),char(22),char(23), -char(51),char(54),char(18),char(17),char(51),char(16),char(2),char(7),char(35),char(172), -char(219),char(26),char(83),char(16),char(8),char(177),char(159),char(166),char(207),char(225), -char(186),char(4),char(72),char(253),char(178),char(67),char(238),char(62),char(175),char(1), -char(189),char(1),char(81),char(254),char(149),char(254),char(4),char(225),char(0),char(1), -char(0),char(113),char(254),char(111),char(3),char(160),char(6),char(20),char(0),char(49), -char(0),char(73),char(64),char(39),char(4),char(25),char(45),char(31),char(29),char(28), -char(19),char(12),char(12),char(40),char(0),char(28),char(31),char(37),char(25),char(7), -char(50),char(51),char(28),char(48),char(1),char(48),char(1),char(71),char(89),char(48), -char(48),char(16),char(38),char(41),char(37),char(38),char(37),char(70),char(89),char(38), -char(0),char(16),char(35),char(0),char(63),char(63),char(43),char(17),char(0),char(51), -char(17),char(18),char(57),char(24),char(47),char(43),char(17),char(18),char(0),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(35),char(34),char(6),char(21), -char(20),char(30),char(2),char(23),char(22),char(22),char(21),char(20),char(6),char(7), -char(35),char(54),char(54),char(53),char(52),char(38),char(39),char(38),char(38),char(53), -char(52),char(54),char(55),char(53),char(38),char(53),char(52),char(54),char(55),char(6), -char(35),char(35),char(53),char(33),char(21),char(35),char(34),char(6),char(6),char(21), -char(20),char(22),char(51),char(51),char(3),char(86),char(178),char(176),char(213),char(50), -char(95),char(135),char(84),char(142),char(135),char(54),char(67),char(156),char(53),char(66), -char(115),char(143),char(200),char(199),char(158),char(128),char(217),char(139),char(166),char(128), -char(115),char(68),char(2),char(186),char(51),char(130),char(224),char(127),char(167),char(175), -char(170),char(2),char(242),char(178),char(142),char(80),char(98),char(61),char(36),char(18), -char(29),char(110),char(90),char(65),char(149),char(99),char(71),char(147),char(52),char(55), -char(61),char(25),char(34),char(200),char(176),char(140),char(210),char(39),char(12),char(64), -char(217),char(117),char(158),char(50),char(12),char(141),char(131),char(80),char(144),char(95), -char(115),char(108),char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98), -char(4),char(92),char(2),char(6),char(0),char(82),char(0),char(0),char(0),char(1), -char(0),char(25),char(255),char(236),char(4),char(244),char(4),char(72),char(0),char(21), -char(0),char(54),char(64),char(29),char(10),char(11),char(7),char(19),char(16),char(3), -char(19),char(11),char(13),char(5),char(22),char(23),char(18),char(9),char(13),char(15), -char(13),char(70),char(89),char(15),char(15),char(11),char(21),char(5),char(0),char(70), -char(89),char(5),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(63), -char(43),char(17),char(0),char(51),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(50),char(55),char(21), -char(6),char(35),char(34),char(53),char(17),char(33),char(17),char(35),char(17),char(35), -char(53),char(55),char(33),char(21),char(35),char(17),char(20),char(22),char(4),char(125), -char(38),char(48),char(43),char(84),char(219),char(254),char(35),char(166),char(221),char(143), -char(4),char(76),char(213),char(51),char(117),char(18),char(131),char(24),char(253),char(2), -char(209),char(252),char(70),char(3),char(186),char(74),char(68),char(142),char(253),char(60), -char(74),char(55),char(0),char(2),char(0),char(166),char(254),char(20),char(4),char(98), -char(4),char(92),char(0),char(16),char(0),char(28),char(0),char(54),char(64),char(27), -char(21),char(9),char(9),char(10),char(26),char(0),char(10),char(0),char(29),char(30), -char(6),char(3),char(14),char(14),char(17),char(70),char(89),char(14),char(16),char(10), -char(27),char(3),char(23),char(70),char(89),char(3),char(22),char(0),char(63),char(43), -char(0),char(24),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(16),char(0),char(35),char(34),char(39),char(35),char(22), -char(21),char(17),char(35),char(17),char(16),char(18),char(51),char(50),char(18),char(37), -char(34),char(6),char(21),char(17),char(22),char(51),char(50),char(54),char(53),char(52), -char(38),char(4),char(98),char(255),char(0),char(233),char(179),char(120),char(8),char(8), -char(168),char(251),char(234),char(219),char(252),char(254),char(33),char(158),char(151),char(122), -char(183),char(159),char(152),char(144),char(2),char(37),char(254),char(241),char(254),char(214), -char(94),char(61),char(212),char(254),char(219),char(4),char(31),char(1),char(10),char(1), -char(31),char(254),char(209),char(162),char(207),char(209),char(254),char(174),char(102),char(208), -char(222),char(214),char(212),char(0),char(0),char(1),char(0),char(115),char(254),char(111), -char(3),char(162),char(4),char(92),char(0),char(32),char(0),char(46),char(64),char(23), -char(14),char(7),char(0),char(21),char(21),char(7),char(27),char(3),char(34),char(33), -char(4),char(18),char(18),char(24),char(11),char(24),char(30),char(70),char(89),char(24), -char(16),char(11),char(35),char(0),char(63),char(63),char(43),char(17),char(18),char(0), -char(57),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(22),char(22),char(23),char(22), -char(22),char(21),char(20),char(6),char(7),char(35),char(54),char(54),char(53),char(52), -char(38),char(38),char(39),char(38),char(38),char(53),char(16),char(0),char(51),char(50), -char(22),char(23),char(7),char(38),char(35),char(34),char(6),char(1),char(31),char(59), -char(143),char(160),char(148),char(131),char(54),char(67),char(156),char(54),char(67),char(51), -char(110),char(97),char(204),char(195),char(1),char(20),char(248),char(79),char(158),char(54), -char(53),char(130),char(114),char(176),char(170),char(2),char(10),char(135),char(132),char(80), -char(34),char(32),char(107),char(90),char(66),char(152),char(95),char(70),char(148),char(50), -char(40),char(47),char(38),char(18),char(37),char(254),char(219),char(1),char(30),char(1), -char(54),char(33),char(24),char(141),char(51),char(218),char(0),char(2),char(0),char(115), -char(255),char(236),char(4),char(182),char(4),char(72),char(0),char(13),char(0),char(25), -char(0),char(48),char(64),char(25),char(20),char(0),char(14),char(7),char(7),char(12), -char(0),char(11),char(4),char(27),char(26),char(12),char(23),char(9),char(23),char(70), -char(89),char(9),char(15),char(4),char(17),char(70),char(89),char(4),char(22),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(0),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(20),char(6),char(6),char(35),char(34),char(0),char(53),char(16),char(33), -char(33),char(21),char(33),char(22),char(1),char(20),char(22),char(51),char(50),char(54), -char(53),char(16),char(39),char(35),char(34),char(6),char(4),char(96),char(123),char(229), -char(154),char(235),char(254),char(248),char(2),char(80),char(1),char(243),char(254),char(248), -char(178),char(252),char(191),char(170),char(161),char(159),char(171),char(174),char(65),char(222), -char(200),char(1),char(252),char(157),char(241),char(130),char(1),char(32),char(254),char(2), -char(62),char(142),char(167),char(254),char(247),char(194),char(209),char(197),char(182),char(1), -char(14),char(186),char(208),char(0),char(0),char(1),char(0),char(18),char(255),char(231), -char(3),char(147),char(4),char(72),char(0),char(19),char(0),char(44),char(64),char(23), -char(3),char(15),char(0),char(9),char(15),char(17),char(4),char(20),char(21),char(2), -char(17),char(19),char(17),char(70),char(89),char(19),char(15),char(12),char(5),char(70), -char(89),char(12),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(49),char(48),char(1),char(21),char(33),char(17),char(20),char(51),char(50),char(54), -char(55),char(21),char(6),char(6),char(35),char(34),char(38),char(53),char(17),char(33), -char(53),char(55),char(3),char(147),char(254),char(80),char(205),char(47),char(98),char(27), -char(35),char(111),char(48),char(181),char(170),char(254),char(215),char(148),char(4),char(72), -char(142),char(253),char(150),char(223),char(13),char(7),char(125),char(15),char(18),char(170), -char(170),char(2),char(127),char(74),char(68),char(0),char(0),char(1),char(0),char(164), -char(255),char(236),char(4),char(113),char(4),char(72),char(0),char(21),char(0),char(37), -char(64),char(17),char(12),char(19),char(6),char(3),char(19),char(3),char(23),char(22), -char(15),char(4),char(15),char(0),char(9),char(70),char(89),char(0),char(22),char(0), -char(63),char(43),char(0),char(24),char(63),char(51),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(5),char(34),char(38), -char(17),char(17),char(51),char(17),char(20),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(39),char(51),char(22),char(22),char(21),char(16),char(0),char(2), -char(115),char(231),char(232),char(166),char(158),char(153),char(167),char(161),char(28),char(34), -char(166),char(36),char(28),char(254),char(254),char(20),char(250),char(1),char(10),char(2), -char(88),char(253),char(176),char(192),char(195),char(238),char(251),char(130),char(224),char(136), -char(144),char(214),char(140),char(254),char(194),char(254),char(212),char(0),char(0),char(2), -char(0),char(115),char(254),char(20),char(5),char(76),char(4),char(92),char(0),char(24), -char(0),char(34),char(0),char(65),char(64),char(35),char(10),char(4),char(32),char(24), -char(24),char(12),char(0),char(25),char(19),char(19),char(0),char(7),char(4),char(4), -char(35),char(36),char(16),char(28),char(70),char(89),char(16),char(16),char(6),char(15), -char(32),char(12),char(1),char(12),char(70),char(89),char(23),char(1),char(22),char(0), -char(27),char(0),char(63),char(63),char(51),char(43),char(17),char(0),char(51),char(24), -char(63),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(17),char(36),char(0),char(17),char(16),char(55),char(23),char(6),char(6),char(21), -char(16),char(5),char(17),char(52),char(54),char(51),char(50),char(18),char(21),char(20), -char(2),char(6),char(7),char(17),char(1),char(52),char(38),char(35),char(34),char(6), -char(21),char(17),char(54),char(54),char(2),char(131),char(254),char(252),char(254),char(244), -char(207),char(131),char(89),char(81),char(1),char(104),char(166),char(149),char(180),char(218), -char(136),char(248),char(165),char(1),char(121),char(124),char(102),char(73),char(78),char(179), -char(198),char(254),char(20),char(1),char(218),char(11),char(1),char(35),char(1),char(15), -char(1),char(40),char(253),char(90),char(117),char(224),char(124),char(254),char(117),char(35), -char(2),char(108),char(187),char(190),char(254),char(219),char(250),char(178),char(254),char(251), -char(144),char(8),char(254),char(38),char(4),char(39),char(185),char(219),char(120),char(114), -char(253),char(146),char(16),char(236),char(0),char(1),char(255),char(236),char(254),char(20), -char(4),char(80),char(4),char(78),char(0),char(32),char(0),char(57),char(64),char(33), -char(14),char(7),char(8),char(5),char(21),char(24),char(30),char(7),char(34),char(23), -char(33),char(5),char(24),char(8),char(21),char(4),char(6),char(23),char(27),char(17), -char(12),char(70),char(89),char(17),char(27),char(6),char(15),char(0),char(28),char(70), -char(89),char(0),char(15),char(0),char(63),char(43),char(0),char(24),char(63),char(63), -char(43),char(0),char(24),char(63),char(18),char(23),char(57),char(17),char(1),char(51), -char(18),char(23),char(57),char(49),char(48),char(19),char(50),char(22),char(22),char(23), -char(19),char(1),char(51),char(1),char(19),char(22),char(22),char(51),char(50),char(55), -char(21),char(6),char(35),char(34),char(38),char(39),char(3),char(1),char(35),char(1), -char(3),char(38),char(38),char(35),char(34),char(7),char(53),char(54),char(178),char(54), -char(78),char(62),char(44),char(145),char(1),char(62),char(180),char(254),char(84),char(190), -char(48),char(82),char(63),char(45),char(45),char(60),char(59),char(115),char(141),char(59), -char(150),char(254),char(150),char(178),char(1),char(208),char(172),char(38),char(70),char(43), -char(37),char(27),char(49),char(4),char(78),char(43),char(91),char(112),char(254),char(143), -char(2),char(97),char(252),char(252),char(254),char(28),char(122),char(74),char(8),char(129), -char(15),char(118),char(159),char(1),char(131),char(253),char(104),char(3),char(68),char(1), -char(188),char(99),char(80),char(11),char(129),char(17),char(0),char(1),char(0),char(164), -char(254),char(20),char(5),char(135),char(6),char(18),char(0),char(26),char(0),char(61), -char(64),char(31),char(22),char(19),char(1),char(14),char(14),char(25),char(15),char(4), -char(10),char(10),char(15),char(19),char(3),char(27),char(28),char(26),char(0),char(7), -char(20),char(15),char(1),char(25),char(16),char(25),char(70),char(89),char(13),char(16), -char(22),char(15),char(27),char(0),char(63),char(63),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(51),char(63),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(17),char(54),char(54),char(53),char(52),char(38),char(39),char(51), -char(18),char(21),char(16),char(0),char(5),char(17),char(35),char(17),char(36),char(0), -char(17),char(17),char(51),char(17),char(20),char(22),char(23),char(17),char(3),char(90), -char(188),char(203),char(26),char(37),char(166),char(63),char(254),char(227),char(254),char(240), -char(164),char(254),char(248),char(254),char(246),char(166),char(180),char(184),char(6),char(18), -char(250),char(105),char(15),char(231),char(204),char(120),char(235),char(168),char(254),char(240), -char(244),char(254),char(236),char(254),char(206),char(16),char(254),char(38),char(1),char(218), -char(9),char(1),char(34),char(1),char(16),char(2),char(31),char(253),char(219),char(195), -char(218),char(13),char(5),char(153),char(0),char(1),char(0),char(115),char(255),char(236), -char(5),char(188),char(4),char(72),char(0),char(39),char(0),char(61),char(64),char(30), -char(10),char(3),char(38),char(19),char(19),char(16),char(25),char(32),char(32),char(16), -char(3),char(3),char(40),char(41),char(38),char(17),char(17),char(0),char(28),char(6), -char(15),char(22),char(13),char(0),char(13),char(70),char(89),char(35),char(0),char(22), -char(0),char(63),char(50),char(43),char(17),char(0),char(51),char(24),char(63),char(51), -char(18),char(57),char(47),char(57),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(18),char(57),char(17),char(51),char(49),char(48),char(5), -char(34),char(2),char(53),char(52),char(18),char(55),char(51),char(6),char(6),char(21), -char(20),char(22),char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(20), -char(22),char(51),char(50),char(54),char(53),char(52),char(2),char(39),char(51),char(22), -char(18),char(21),char(20),char(2),char(35),char(34),char(39),char(35),char(6),char(1), -char(244),char(182),char(203),char(55),char(68),char(172),char(68),char(57),char(120),char(107), -char(94),char(105),char(161),char(106),char(93),char(107),char(120),char(55),char(69),char(172), -char(65),char(57),char(203),char(182),char(220),char(68),char(9),char(65),char(20),char(1), -char(40),char(254),char(156),char(1),char(1),char(153),char(156),char(255),char(157),char(193), -char(216),char(143),char(125),char(1),char(55),char(254),char(201),char(128),char(140),char(216), -char(193),char(151),char(1),char(4),char(157),char(146),char(254),char(249),char(157),char(252), -char(254),char(214),char(182),char(182),char(255),char(255),char(0),char(9),char(255),char(236), -char(2),char(147),char(5),char(211),char(2),char(38),char(1),char(134),char(0),char(0), -char(1),char(7),char(0),char(106),char(254),char(212),char(0),char(0),char(0),char(10), -char(180),char(2),char(1),char(37),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(164),char(255),char(236),char(4),char(113),char(5),char(211), -char(2),char(38),char(1),char(146),char(0),char(0),char(1),char(6),char(0),char(106), -char(57),char(0),char(0),char(10),char(180),char(2),char(1),char(43),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(98),char(6),char(115),char(2),char(38),char(0),char(82),char(0),char(0), -char(1),char(6),char(1),char(84),char(33),char(0),char(0),char(8),char(179),char(2), -char(34),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(164), -char(255),char(236),char(4),char(113),char(6),char(115),char(2),char(38),char(1),char(146), -char(0),char(0),char(1),char(6),char(1),char(84),char(39),char(0),char(0),char(8), -char(179),char(1),char(31),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(5),char(188),char(6),char(115),char(2),char(38), -char(1),char(150),char(0),char(0),char(1),char(7),char(1),char(84),char(0),char(201), -char(0),char(0),char(0),char(8),char(179),char(1),char(49),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248), -char(7),char(37),char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(39),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(33),char(5),char(38),char(0),char(43),char(53),char(53),char(0),char(1), -char(0),char(18),char(255),char(236),char(5),char(66),char(5),char(182),char(0),char(29), -char(0),char(70),char(64),char(38),char(22),char(14),char(14),char(15),char(8),char(27), -char(27),char(20),char(2),char(15),char(17),char(5),char(30),char(31),char(22),char(13), -char(73),char(89),char(22),char(22),char(15),char(18),char(21),char(17),char(18),char(17), -char(73),char(89),char(18),char(3),char(15),char(18),char(0),char(5),char(73),char(89), -char(0),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(43), -char(17),char(0),char(51),char(17),char(18),char(57),char(24),char(47),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(5),char(34),char(39),char(53),char(22),char(51),char(50),char(54), -char(53),char(53),char(52),char(38),char(35),char(33),char(17),char(35),char(17),char(33), -char(53),char(33),char(21),char(33),char(17),char(33),char(50),char(22),char(21),char(21), -char(20),char(6),char(3),char(207),char(96),char(54),char(55),char(91),char(101),char(104), -char(131),char(140),char(254),char(131),char(170),char(254),char(176),char(3),char(183),char(254), -char(67),char(1),char(140),char(205),char(221),char(196),char(20),char(22),char(150),char(19), -char(124),char(112),char(131),char(128),char(113),char(253),char(27),char(5),char(31),char(151), -char(151),char(254),char(94),char(191),char(178),char(143),char(190),char(211),char(255),char(255), -char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(115),char(2),char(38), -char(1),char(97),char(0),char(0),char(1),char(7),char(0),char(118),char(0),char(90), -char(1),char(82),char(0),char(8),char(179),char(1),char(15),char(5),char(38),char(0), -char(43),char(53),char(0),char(1),char(0),char(125),char(255),char(236),char(4),char(227), -char(5),char(205),char(0),char(24),char(0),char(56),char(64),char(30),char(6),char(3), -char(17),char(22),char(12),char(5),char(17),char(4),char(25),char(26),char(3),char(6), -char(73),char(89),char(3),char(3),char(14),char(20),char(20),char(0),char(73),char(89), -char(20),char(4),char(14),char(9),char(73),char(89),char(14),char(19),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51), -char(49),char(48),char(1),char(34),char(4),char(7),char(33),char(21),char(33),char(18), -char(0),char(51),char(50),char(55),char(21),char(6),char(35),char(32),char(0),char(17), -char(16),char(0),char(33),char(50),char(23),char(7),char(38),char(3),char(66),char(226), -char(254),char(243),char(30),char(2),char(211),char(253),char(41),char(10),char(1),char(11), -char(249),char(162),char(201),char(161),char(226),char(254),char(180),char(254),char(162),char(1), -char(121),char(1),char(78),char(237),char(178),char(71),char(169),char(5),char(51),char(250), -char(241),char(150),char(254),char(238),char(254),char(227),char(55),char(149),char(57),char(1), -char(132),char(1),char(109),char(1),char(95),char(1),char(145),char(88),char(148),char(82), -char(255),char(255),char(0),char(106),char(255),char(236),char(4),char(2),char(5),char(203), -char(2),char(6),char(0),char(54),char(0),char(0),char(255),char(255),char(0),char(84), -char(0),char(0),char(2),char(86),char(5),char(182),char(2),char(6),char(0),char(44), -char(0),char(0),char(255),char(255),char(0),char(60),char(0),char(0),char(2),char(111), -char(7),char(37),char(2),char(38),char(0),char(44),char(0),char(0),char(1),char(7), -char(0),char(106),char(255),char(7),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(33),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(255),char(96),char(254),char(127),char(1),char(104),char(5),char(182),char(2),char(6), -char(0),char(45),char(0),char(0),char(0),char(2),char(0),char(0),char(255),char(233), -char(7),char(35),char(5),char(182),char(0),char(26),char(0),char(35),char(0),char(71), -char(64),char(38),char(24),char(27),char(27),char(4),char(31),char(0),char(0),char(4), -char(13),char(3),char(36),char(37),char(24),char(35),char(73),char(89),char(24),char(24), -char(11),char(22),char(22),char(6),char(73),char(89),char(22),char(3),char(11),char(16), -char(74),char(89),char(11),char(18),char(4),char(27),char(74),char(89),char(4),char(18), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(20),char(4),char(33),char(33),char(17),char(33),char(2),char(2), -char(6),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(62), -char(2),char(18),char(19),char(33),char(17),char(51),char(32),char(1),char(51),char(50), -char(54),char(53),char(52),char(38),char(35),char(35),char(7),char(35),char(254),char(237), -char(254),char(252),char(254),char(185),char(254),char(147),char(57),char(84),char(80),char(139), -char(107),char(69),char(64),char(50),char(63),char(48),char(65),char(43),char(55),char(68), -char(65),char(2),char(166),char(122),char(2),char(58),char(253),char(76),char(133),char(198), -char(183),char(192),char(220),char(102),char(1),char(170),char(206),char(220),char(5),char(31), -char(254),char(72),char(253),char(246),char(251),char(121),char(25),char(143),char(26),char(62), -char(103),char(250),char(1),char(190),char(1),char(226),char(253),char(144),char(253),char(77), -char(139),char(140),char(138),char(124),char(0),char(2),char(0),char(201),char(0),char(0), -char(7),char(84),char(5),char(182),char(0),char(17),char(0),char(26),char(0),char(74), -char(64),char(38),char(11),char(7),char(7),char(8),char(15),char(18),char(18),char(12), -char(4),char(22),char(0),char(0),char(4),char(8),char(3),char(27),char(28),char(26), -char(6),char(11),char(6),char(73),char(89),char(15),char(11),char(11),char(4),char(13), -char(9),char(3),char(8),char(18),char(4),char(18),char(74),char(89),char(4),char(18), -char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(57), -char(47),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(4),char(33),char(33),char(17), -char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(17),char(51),char(17), -char(51),char(32),char(1),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(35),char(7),char(84),char(254),char(240),char(254),char(251),char(254),char(183),char(253), -char(125),char(170),char(170),char(2),char(131),char(172),char(121),char(2),char(57),char(253), -char(78),char(133),char(196),char(185),char(193),char(219),char(102),char(1),char(170),char(206), -char(220),char(2),char(176),char(253),char(80),char(5),char(182),char(253),char(146),char(2), -char(110),char(253),char(144),char(253),char(77),char(139),char(140),char(137),char(125),char(0), -char(0),char(1),char(0),char(18),char(0),char(0),char(5),char(66),char(5),char(182), -char(0),char(19),char(0),char(58),char(64),char(31),char(0),char(12),char(12),char(13), -char(6),char(5),char(5),char(18),char(13),char(15),char(4),char(20),char(21),char(19), -char(15),char(16),char(15),char(73),char(89),char(0),char(11),char(73),char(89),char(0), -char(0),char(13),char(16),char(3),char(6),char(13),char(18),char(0),char(63),char(51), -char(63),char(18),char(57),char(47),char(43),char(43),char(17),char(0),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(50),char(22),char(21),char(17),char(35),char(17), -char(52),char(38),char(35),char(33),char(17),char(35),char(17),char(33),char(53),char(33), -char(21),char(33),char(2),char(12),char(1),char(144),char(205),char(217),char(170),char(125), -char(140),char(254),char(125),char(170),char(254),char(176),char(3),char(246),char(254),char(4), -char(3),char(125),char(188),char(181),char(253),char(244),char(1),char(246),char(126),char(113), -char(253),char(27),char(5),char(31),char(151),char(151),char(255),char(255),char(0),char(201), -char(0),char(0),char(4),char(229),char(7),char(115),char(2),char(38),char(1),char(180), -char(0),char(0),char(1),char(7),char(0),char(118),char(0),char(162),char(1),char(82), -char(0),char(8),char(179),char(1),char(20),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(27),char(255),char(236),char(4),char(248),char(7),char(94), -char(2),char(38),char(1),char(189),char(0),char(0),char(1),char(7),char(2),char(54), -char(0),char(68),char(1),char(82),char(0),char(8),char(179),char(1),char(23),char(5), -char(38),char(0),char(43),char(53),char(0),char(1),char(0),char(201),char(254),char(131), -char(5),char(12),char(5),char(182),char(0),char(11),char(0),char(48),char(64),char(24), -char(8),char(5),char(2),char(3),char(9),char(0),char(0),char(3),char(5),char(3), -char(12),char(13),char(10),char(6),char(3),char(5),char(8),char(73),char(89),char(1), -char(5),char(18),char(3),char(34),char(0),char(63),char(63),char(51),char(43),char(0), -char(24),char(63),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(17),char(35), -char(17),char(33),char(17),char(51),char(17),char(33),char(17),char(51),char(5),char(12), -char(254),char(47),char(176),char(254),char(62),char(170),char(2),char(239),char(170),char(254), -char(131),char(1),char(125),char(5),char(182),char(250),char(228),char(5),char(28),char(0), -char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16),char(5),char(188), -char(2),char(6),char(0),char(36),char(0),char(0),char(0),char(2),char(0),char(201), -char(0),char(0),char(4),char(125),char(5),char(182),char(0),char(13),char(0),char(22), -char(0),char(61),char(64),char(32),char(18),char(0),char(9),char(14),char(14),char(4), -char(4),char(7),char(0),char(3),char(24),char(23),char(9),char(22),char(73),char(89), -char(9),char(9),char(4),char(5),char(5),char(8),char(73),char(89),char(5),char(3), -char(4),char(14),char(74),char(89),char(4),char(18),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(20),char(4),char(33),char(33),char(17),char(33), -char(21),char(33),char(17),char(51),char(50),char(22),char(22),char(1),char(51),char(50), -char(54),char(53),char(52),char(38),char(35),char(35),char(4),char(125),char(254),char(253), -char(254),char(251),char(254),char(84),char(3),char(94),char(253),char(76),char(227),char(193), -char(242),char(116),char(252),char(246),char(239),char(190),char(173),char(176),char(219),char(207), -char(1),char(170),char(218),char(208),char(5),char(182),char(151),char(254),char(39),char(89), -char(174),char(254),char(84),char(130),char(149),char(142),char(120),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(4),char(190),char(5),char(182),char(2),char(6), -char(0),char(37),char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0), -char(3),char(248),char(5),char(182),char(2),char(6),char(1),char(97),char(0),char(0), -char(0),char(2),char(0),char(14),char(254),char(131),char(5),char(74),char(5),char(182), -char(0),char(13),char(0),char(19),char(0),char(67),char(64),char(36),char(4),char(5), -char(19),char(7),char(16),char(10),char(14),char(12),char(1),char(0),char(0),char(12), -char(10),char(7),char(5),char(5),char(20),char(21),char(10),char(16),char(73),char(89), -char(10),char(3),char(1),char(5),char(34),char(19),char(12),char(6),char(3),char(6), -char(73),char(89),char(3),char(18),char(0),char(63),char(43),char(17),char(0),char(51), -char(51),char(24),char(63),char(51),char(63),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(35),char(17),char(33),char(17),char(35),char(17), -char(51),char(18),char(18),char(19),char(33),char(17),char(51),char(33),char(17),char(33), -char(6),char(2),char(7),char(5),char(74),char(162),char(252),char(8),char(162),char(113), -char(154),char(219),char(12),char(2),char(145),char(185),char(254),char(157),char(254),char(179), -char(18),char(206),char(137),char(254),char(131),char(1),char(125),char(254),char(131),char(2), -char(23),char(1),char(3),char(2),char(230),char(1),char(51),char(250),char(228),char(4), -char(131),char(242),char(253),char(89),char(234),char(0),char(255),char(255),char(0),char(201), -char(0),char(0),char(3),char(248),char(5),char(182),char(2),char(6),char(0),char(40), -char(0),char(0),char(0),char(1),char(0),char(2),char(0),char(0),char(6),char(188), -char(5),char(182),char(0),char(17),char(0),char(60),char(64),char(31),char(6),char(13), -char(13),char(3),char(14),char(10),char(9),char(8),char(1),char(14),char(0),char(17), -char(7),char(18),char(19),char(15),char(12),char(9),char(6),char(3),char(0),char(0), -char(1),char(14),char(11),char(17),char(18),char(7),char(4),char(1),char(3),char(0), -char(63),char(51),char(51),char(63),char(51),char(51),char(18),char(57),char(17),char(51), -char(51),char(51),char(51),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(1),char(51),char(1), -char(17),char(51),char(17),char(1),char(51),char(1),char(1),char(35),char(1),char(17), -char(35),char(17),char(1),char(35),char(2),char(86),char(253),char(193),char(190),char(2), -char(57),char(164),char(2),char(58),char(190),char(253),char(192),char(2),char(82),char(196), -char(253),char(186),char(164),char(253),char(187),char(199),char(2),char(240),char(2),char(198), -char(253),char(60),char(2),char(196),char(253),char(60),char(2),char(196),char(253),char(60), -char(253),char(14),char(2),char(229),char(253),char(27),char(2),char(229),char(253),char(27), -char(0),char(1),char(0),char(74),char(255),char(236),char(4),char(53),char(5),char(203), -char(0),char(40),char(0),char(67),char(64),char(36),char(28),char(0),char(19),char(7), -char(7),char(0),char(3),char(23),char(35),char(12),char(6),char(41),char(42),char(3), -char(24),char(23),char(24),char(23),char(74),char(89),char(24),char(24),char(10),char(38), -char(38),char(31),char(74),char(89),char(38),char(4),char(10),char(16),char(74),char(89), -char(10),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(0),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(20),char(6),char(7),char(21),char(22),char(22),char(21),char(20), -char(4),char(33),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54), -char(53),char(52),char(38),char(35),char(35),char(53),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(6),char(7),char(39),char(54),char(54),char(51), -char(50),char(22),char(4),char(25),char(183),char(161),char(183),char(189),char(254),char(206), -char(254),char(233),char(255),char(163),char(96),char(223),char(103),char(198),char(203),char(225), -char(223),char(218),char(209),char(205),char(225),char(162),char(137),char(110),char(178),char(117), -char(84),char(101),char(251),char(135),char(225),char(255),char(4),char(96),char(144),char(180), -char(24),char(8),char(25),char(180),char(145),char(205),char(229),char(79),char(158),char(46), -char(50),char(150),char(141),char(134),char(138),char(143),char(147),char(132),char(107),char(128), -char(50),char(74),char(114),char(75),char(77),char(197),char(0),char(1),char(0),char(203), -char(0),char(0),char(5),char(82),char(5),char(182),char(0),char(15),char(0),char(52), -char(64),char(24),char(14),char(2),char(2),char(15),char(6),char(9),char(9),char(8), -char(15),char(8),char(16),char(17),char(5),char(4),char(12),char(13),char(4),char(13), -char(9),char(15),char(18),char(6),char(0),char(3),char(0),char(63),char(50),char(63), -char(51),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(19),char(51),char(17),char(20),char(7),char(51),char(1),char(51), -char(17),char(35),char(17),char(52),char(55),char(35),char(1),char(35),char(203),char(159), -char(14),char(8),char(3),char(52),char(186),char(160),char(17),char(9),char(252),char(203), -char(186),char(5),char(182),char(252),char(211),char(225),char(182),char(4),char(196),char(250), -char(74),char(3),char(37),char(201),char(221),char(251),char(53),char(0),char(255),char(255), -char(0),char(203),char(0),char(0),char(5),char(82),char(7),char(94),char(2),char(38), -char(1),char(178),char(0),char(0),char(1),char(7),char(2),char(54),char(0),char(225), -char(1),char(82),char(0),char(8),char(179),char(1),char(16),char(5),char(38),char(0), -char(43),char(53),char(0),char(1),char(0),char(201),char(0),char(0),char(4),char(229), -char(5),char(182),char(0),char(10),char(0),char(45),char(64),char(22),char(7),char(3), -char(3),char(4),char(0),char(9),char(10),char(4),char(4),char(11),char(12),char(10), -char(7),char(2),char(7),char(4),char(8),char(5),char(3),char(1),char(4),char(18), -char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(57),char(17),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(33),char(35),char(1),char(17),char(35),char(17),char(51),char(17),char(1), -char(51),char(1),char(4),char(229),char(206),char(253),char(92),char(170),char(170),char(2), -char(147),char(195),char(253),char(121),char(2),char(229),char(253),char(27),char(5),char(182), -char(253),char(60),char(2),char(196),char(253),char(58),char(0),char(1),char(0),char(0), -char(255),char(231),char(4),char(217),char(5),char(182),char(0),char(19),char(0),char(45), -char(64),char(24),char(3),char(18),char(1),char(0),char(0),char(18),char(10),char(3), -char(20),char(21),char(18),char(3),char(73),char(89),char(18),char(3),char(8),char(13), -char(74),char(89),char(8),char(19),char(1),char(18),char(0),char(63),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(33),char(7), -char(2),char(2),char(6),char(39),char(34),char(39),char(53),char(22),char(51),char(50), -char(54),char(54),char(18),char(19),char(33),char(4),char(217),char(170),char(254),char(37), -char(31),char(61),char(93),char(152),char(126),char(74),char(59),char(54),char(59),char(53), -char(79),char(61),char(93),char(56),char(3),char(18),char(5),char(31),char(240),char(254), -char(33),char(254),char(69),char(174),char(2),char(25),char(143),char(26),char(87),char(215), -char(2),char(89),char(1),char(184),char(255),char(255),char(0),char(201),char(0),char(0), -char(6),char(113),char(5),char(182),char(2),char(6),char(0),char(48),char(0),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(5),char(31),char(5),char(182), -char(2),char(6),char(0),char(43),char(0),char(0),char(255),char(255),char(0),char(125), -char(255),char(236),char(5),char(190),char(5),char(205),char(2),char(6),char(0),char(50), -char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0),char(5),char(12), -char(5),char(182),char(2),char(6),char(1),char(110),char(0),char(0),char(255),char(255), -char(0),char(201),char(0),char(0),char(4),char(104),char(5),char(182),char(2),char(6), -char(0),char(51),char(0),char(0),char(255),char(255),char(0),char(125),char(255),char(236), -char(4),char(207),char(5),char(203),char(2),char(6),char(0),char(38),char(0),char(0), -char(255),char(255),char(0),char(18),char(0),char(0),char(4),char(90),char(5),char(182), -char(2),char(6),char(0),char(55),char(0),char(0),char(0),char(1),char(0),char(27), -char(255),char(236),char(4),char(248),char(5),char(182),char(0),char(22),char(0),char(42), -char(64),char(21),char(18),char(8),char(2),char(9),char(4),char(23),char(24),char(14), -char(13),char(8),char(13),char(0),char(17),char(9),char(3),char(0),char(5),char(73), -char(89),char(0),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(51), -char(18),char(57),char(57),char(17),char(51),char(17),char(18),char(1),char(23),char(57), -char(49),char(48),char(5),char(34),char(39),char(53),char(22),char(51),char(50),char(54), -char(55),char(1),char(51),char(1),char(22),char(23),char(51),char(54),char(55),char(1), -char(51),char(1),char(14),char(2),char(1),char(37),char(111),char(84),char(93),char(96), -char(110),char(133),char(66),char(253),char(199),char(188),char(1),char(176),char(25),char(14), -char(8),char(28),char(11),char(1),char(103),char(180),char(254),char(45),char(84),char(135), -char(169),char(20),char(30),char(166),char(43),char(101),char(139),char(4),char(65),char(252), -char(193),char(49),char(47),char(84),char(22),char(3),char(53),char(251),char(234),char(187), -char(170),char(79),char(255),char(255),char(0),char(106),char(255),char(236),char(5),char(248), -char(5),char(203),char(2),char(6),char(1),char(115),char(0),char(0),char(255),char(255), -char(0),char(8),char(0),char(0),char(4),char(150),char(5),char(182),char(2),char(6), -char(0),char(59),char(0),char(0),char(0),char(1),char(0),char(201),char(254),char(131), -char(5),char(184),char(5),char(182),char(0),char(11),char(0),char(50),char(64),char(25), -char(8),char(5),char(9),char(0),char(3),char(2),char(2),char(0),char(5),char(3), -char(12),char(13),char(10),char(6),char(3),char(0),char(8),char(5),char(8),char(73), -char(89),char(5),char(18),char(3),char(34),char(0),char(63),char(63),char(43),char(17), -char(0),char(51),char(24),char(63),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(51), -char(17),char(35),char(17),char(33),char(17),char(51),char(17),char(33),char(17),char(51), -char(5),char(12),char(172),char(161),char(251),char(178),char(170),char(2),char(239),char(170), -char(154),char(253),char(233),char(1),char(125),char(5),char(182),char(250),char(228),char(5), -char(28),char(0),char(0),char(1),char(0),char(170),char(0),char(0),char(4),char(199), -char(5),char(182),char(0),char(19),char(0),char(45),char(64),char(22),char(11),char(8), -char(17),char(1),char(1),char(0),char(8),char(0),char(20),char(21),char(5),char(14), -char(73),char(89),char(5),char(5),char(1),char(18),char(9),char(3),char(1),char(18), -char(0),char(63),char(63),char(51),char(18),char(57),char(47),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(33),char(35),char(17),char(6),char(6),char(35),char(34),char(38),char(53), -char(17),char(51),char(17),char(20),char(22),char(51),char(50),char(54),char(55),char(17), -char(51),char(4),char(199),char(170),char(149),char(198),char(106),char(207),char(223),char(170), -char(127),char(143),char(97),char(177),char(169),char(170),char(2),char(92),char(53),char(39), -char(190),char(179),char(2),char(69),char(253),char(207),char(121),char(116),char(29),char(55), -char(2),char(202),char(0),char(1),char(0),char(201),char(0),char(0),char(7),char(121), -char(5),char(182),char(0),char(11),char(0),char(49),char(64),char(24),char(4),char(1), -char(8),char(5),char(9),char(0),char(0),char(5),char(1),char(3),char(12),char(13), -char(10),char(6),char(2),char(3),char(8),char(4),char(1),char(4),char(73),char(89), -char(1),char(18),char(0),char(63),char(43),char(17),char(0),char(51),char(24),char(63), -char(51),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(17),char(51),char(17), -char(33),char(17),char(51),char(17),char(33),char(17),char(51),char(7),char(121),char(249), -char(80),char(170),char(2),char(88),char(170),char(2),char(88),char(172),char(5),char(182), -char(250),char(228),char(5),char(28),char(250),char(228),char(5),char(28),char(0),char(1), -char(0),char(201),char(254),char(131),char(8),char(4),char(5),char(182),char(0),char(15), -char(0),char(59),char(64),char(30),char(3),char(0),char(7),char(4),char(8),char(11), -char(14),char(13),char(13),char(11),char(4),char(0),char(4),char(16),char(17),char(14), -char(34),char(9),char(5),char(1),char(3),char(11),char(7),char(3),char(0),char(3), -char(73),char(89),char(0),char(18),char(0),char(63),char(43),char(17),char(0),char(51), -char(51),char(24),char(63),char(51),char(51),char(63),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(51),char(17),char(51),char(17),char(33),char(17),char(51),char(17),char(33), -char(17),char(51),char(17),char(51),char(17),char(35),char(17),char(201),char(170),char(2), -char(71),char(172),char(2),char(72),char(170),char(172),char(162),char(5),char(182),char(250), -char(228),char(5),char(28),char(250),char(228),char(5),char(28),char(250),char(228),char(253), -char(233),char(1),char(125),char(0),char(0),char(2),char(0),char(18),char(0),char(0), -char(5),char(23),char(5),char(182),char(0),char(12),char(0),char(21),char(0),char(61), -char(64),char(32),char(9),char(13),char(13),char(4),char(17),char(0),char(0),char(4), -char(6),char(3),char(22),char(23),char(9),char(21),char(73),char(89),char(9),char(9), -char(4),char(7),char(7),char(6),char(73),char(89),char(7),char(3),char(4),char(13), -char(74),char(89),char(4),char(18),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(20),char(4),char(35),char(33),char(17),char(33),char(53),char(33), -char(17),char(51),char(32),char(4),char(1),char(51),char(50),char(54),char(53),char(52), -char(38),char(35),char(35),char(5),char(23),char(254),char(253),char(249),char(254),char(71), -char(254),char(176),char(1),char(250),char(244),char(1),char(5),char(1),char(18),char(252), -char(245),char(252),char(181),char(169),char(175),char(203),char(224),char(1),char(170),char(206), -char(220),char(5),char(31),char(151),char(253),char(144),char(205),char(254),char(26),char(139), -char(140),char(136),char(126),char(0),char(0),char(3),char(0),char(201),char(0),char(0), -char(6),char(10),char(5),char(182),char(0),char(10),char(0),char(19),char(0),char(23), -char(0),char(63),char(64),char(32),char(3),char(11),char(11),char(0),char(15),char(7), -char(21),char(20),char(20),char(7),char(0),char(3),char(24),char(25),char(21),char(18), -char(3),char(19),char(73),char(89),char(3),char(3),char(0),char(22),char(1),char(3), -char(0),char(11),char(74),char(89),char(0),char(18),char(0),char(63),char(43),char(0), -char(24),char(63),char(51),char(18),char(57),char(47),char(43),char(0),char(24),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(51),char(17),char(51),char(17),char(51), -char(32),char(4),char(21),char(20),char(4),char(35),char(37),char(51),char(50),char(54), -char(53),char(52),char(38),char(35),char(35),char(1),char(35),char(17),char(51),char(201), -char(170),char(239),char(1),char(5),char(1),char(18),char(254),char(253),char(249),char(254), -char(246),char(247),char(181),char(170),char(179),char(200),char(219),char(4),char(151),char(170), -char(170),char(5),char(182),char(253),char(144),char(205),char(207),char(206),char(220),char(145), -char(141),char(140),char(137),char(123),char(253),char(82),char(5),char(182),char(0),char(2), -char(0),char(201),char(0),char(0),char(4),char(186),char(5),char(182),char(0),char(10), -char(0),char(18),char(0),char(50),char(64),char(25),char(7),char(11),char(11),char(4), -char(14),char(0),char(4),char(0),char(19),char(20),char(7),char(18),char(73),char(89), -char(7),char(7),char(4),char(5),char(3),char(4),char(11),char(74),char(89),char(4), -char(18),char(0),char(63),char(43),char(0),char(24),char(63),char(18),char(57),char(47), -char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(4),char(35),char(33),char(17), -char(51),char(17),char(33),char(32),char(4),char(1),char(33),char(32),char(17),char(52), -char(38),char(35),char(33),char(4),char(186),char(254),char(241),char(251),char(254),char(25), -char(170),char(1),char(35),char(1),char(11),char(1),char(25),char(252),char(185),char(1), -char(43),char(1),char(108),char(187),char(206),char(254),char(242),char(1),char(170),char(203), -char(223),char(5),char(182),char(253),char(144),char(211),char(254),char(32),char(1),char(23), -char(135),char(127),char(0),char(1),char(0),char(61),char(255),char(236),char(4),char(137), -char(5),char(203),char(0),char(26),char(0),char(58),char(64),char(31),char(24),char(21), -char(21),char(9),char(9),char(22),char(15),char(3),char(4),char(27),char(28),char(23), -char(22),char(73),char(89),char(23),char(23),char(12),char(5),char(12),char(18),char(73), -char(89),char(12),char(19),char(5),char(0),char(73),char(89),char(5),char(4),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(34),char(7),char(39),char(54),char(51), -char(50),char(4),char(18),char(21),char(16),char(0),char(33),char(34),char(39),char(53), -char(22),char(22),char(51),char(32),char(0),char(19),char(33),char(53),char(33),char(38), -char(0),char(1),char(211),char(172),char(162),char(72),char(172),char(236),char(217),char(1), -char(57),char(162),char(254),char(148),char(254),char(170),char(227),char(156),char(83),char(172), -char(99),char(1),char(15),char(1),char(20),char(8),char(253),char(49),char(2),char(205), -char(22),char(254),char(241),char(5),char(51),char(76),char(144),char(84),char(176),char(254), -char(186),char(221),char(254),char(136),char(254),char(108),char(57),char(149),char(21),char(34), -char(1),char(33),char(1),char(16),char(152),char(229),char(1),char(2),char(0),char(2), -char(0),char(201),char(255),char(236),char(7),char(231),char(5),char(205),char(0),char(18), -char(0),char(30),char(0),char(71),char(64),char(38),char(12),char(8),char(8),char(9), -char(19),char(13),char(6),char(25),char(0),char(0),char(6),char(9),char(3),char(31), -char(32),char(16),char(28),char(73),char(89),char(16),char(4),char(12),char(7),char(73), -char(89),char(12),char(12),char(9),char(10),char(3),char(9),char(18),char(3),char(22), -char(73),char(89),char(3),char(19),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(18),char(57),char(47),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(33),char(32), -char(0),char(3),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(18), -char(0),char(33),char(32),char(0),char(1),char(16),char(18),char(51),char(50),char(18), -char(17),char(16),char(2),char(35),char(34),char(2),char(7),char(231),char(254),char(171), -char(254),char(208),char(254),char(211),char(254),char(171),char(11),char(254),char(158),char(170), -char(170),char(1),char(100),char(23),char(1),char(81),char(1),char(31),char(1),char(51), -char(1),char(86),char(251),char(160),char(238),char(231),char(234),char(237),char(235),char(232), -char(233),char(240),char(2),char(221),char(254),char(158),char(254),char(113),char(1),char(111), -char(1),char(85),char(253),char(80),char(5),char(182),char(253),char(146),char(1),char(55), -char(1),char(78),char(254),char(111),char(254),char(161),char(254),char(216),char(254),char(204), -char(1),char(50),char(1),char(42),char(1),char(42),char(1),char(46),char(254),char(207), -char(0),char(2),char(0),char(51),char(0),char(0),char(4),char(78),char(5),char(182), -char(0),char(13),char(0),char(21),char(0),char(61),char(64),char(32),char(21),char(12), -char(12),char(11),char(18),char(6),char(2),char(6),char(3),char(11),char(4),char(23), -char(22),char(0),char(20),char(74),char(89),char(3),char(9),char(0),char(0),char(2), -char(9),char(9),char(15),char(74),char(89),char(9),char(3),char(12),char(2),char(18), -char(0),char(63),char(51),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(18),char(57),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(1),char(35), -char(1),char(38),char(38),char(53),char(52),char(36),char(33),char(33),char(17),char(35), -char(17),char(17),char(35),char(34),char(6),char(21),char(16),char(33),char(51),char(2), -char(123),char(254),char(129),char(201),char(1),char(154),char(161),char(146),char(1),char(15), -char(1),char(19),char(1),char(146),char(170),char(227),char(183),char(190),char(1),char(123), -char(221),char(2),char(98),char(253),char(158),char(2),char(127),char(51),char(207),char(158), -char(196),char(211),char(250),char(74),char(2),char(98),char(2),char(193),char(126),char(142), -char(254),char(221),char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205), -char(4),char(90),char(2),char(6),char(0),char(68),char(0),char(0),char(0),char(2), -char(0),char(119),char(255),char(236),char(4),char(84),char(6),char(33),char(0),char(23), -char(0),char(34),char(0),char(59),char(64),char(30),char(26),char(18),char(32),char(11), -char(0),char(0),char(6),char(18),char(3),char(36),char(35),char(12),char(11),char(15), -char(28),char(70),char(89),char(11),char(15),char(15),char(21),char(5),char(21),char(24), -char(70),char(89),char(21),char(22),char(5),char(1),char(0),char(63),char(63),char(43), -char(17),char(18),char(0),char(57),char(24),char(47),char(57),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(19),char(16),char(18),char(55),char(36),char(55),char(23), -char(4),char(7),char(6),char(6),char(7),char(51),char(54),char(54),char(51),char(50), -char(18),char(21),char(16),char(0),char(35),char(34),char(0),char(5),char(32),char(17), -char(16),char(33),char(34),char(6),char(6),char(7),char(16),char(18),char(119),char(212), -char(230),char(1),char(30),char(218),char(31),char(254),char(165),char(149),char(145),char(145), -char(7),char(12),char(62),char(196),char(107),char(202),char(226),char(254),char(250),char(234), -char(231),char(254),char(250),char(1),char(252),char(1),char(49),char(254),char(235),char(76), -char(141),char(117),char(32),char(166),char(2),char(145),char(1),char(104),char(1),char(147), -char(50),char(61),char(38),char(146),char(58),char(34),char(33),char(246),char(212),char(84), -char(96),char(254),char(250),char(232),char(254),char(255),char(254),char(223),char(1),char(98), -char(215),char(1),char(133),char(1),char(115),char(63),char(104),char(55),char(254),char(249), -char(254),char(237),char(0),char(3),char(0),char(176),char(0),char(0),char(4),char(76), -char(4),char(72),char(0),char(14),char(0),char(22),char(0),char(31),char(0),char(73), -char(64),char(38),char(28),char(20),char(20),char(11),char(23),char(0),char(15),char(7), -char(7),char(0),char(3),char(11),char(4),char(32),char(33),char(4),char(28),char(19), -char(28),char(19),char(70),char(89),char(28),char(28),char(11),char(12),char(12),char(27), -char(70),char(89),char(12),char(15),char(11),char(20),char(70),char(89),char(11),char(21), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0), -char(57),char(24),char(47),char(43),char(17),char(18),char(0),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(20),char(6),char(7),char(21),char(22),char(22), -char(21),char(20),char(6),char(35),char(33),char(17),char(33),char(32),char(3),char(52), -char(38),char(35),char(33),char(17),char(33),char(32),char(3),char(52),char(38),char(35), -char(33),char(17),char(33),char(50),char(54),char(4),char(41),char(123),char(111),char(140), -char(129),char(225),char(216),char(254),char(29),char(1),char(225),char(1),char(152),char(131), -char(135),char(156),char(254),char(211),char(1),char(49),char(1),char(31),char(31),char(123), -char(125),char(254),char(199),char(1),char(25),char(154),char(126),char(3),char(53),char(107), -char(111),char(19),char(9),char(19),char(126),char(111),char(153),char(166),char(4),char(72), -char(253),char(2),char(89),char(81),char(254),char(151),char(2),char(154),char(80),char(67), -char(254),char(203),char(76),char(0),char(0),char(1),char(0),char(176),char(0),char(0), -char(3),char(68),char(4),char(72),char(0),char(5),char(0),char(29),char(64),char(14), -char(2),char(3),char(0),char(3),char(7),char(6),char(4),char(1),char(70),char(89), -char(4),char(15),char(3),char(21),char(0),char(63),char(63),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(49),char(48),char(1),char(33),char(17), -char(35),char(17),char(33),char(3),char(68),char(254),char(18),char(166),char(2),char(148), -char(3),char(186),char(252),char(70),char(4),char(72),char(0),char(2),char(0),char(41), -char(254),char(133),char(4),char(104),char(4),char(72),char(0),char(13),char(0),char(19), -char(0),char(67),char(64),char(36),char(4),char(5),char(19),char(7),char(16),char(10), -char(14),char(12),char(1),char(0),char(0),char(12),char(10),char(7),char(5),char(5), -char(20),char(21),char(10),char(16),char(71),char(89),char(10),char(15),char(1),char(5), -char(34),char(19),char(12),char(6),char(3),char(6),char(70),char(89),char(3),char(21), -char(0),char(63),char(43),char(17),char(0),char(51),char(51),char(24),char(63),char(51), -char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(35),char(17),char(33),char(17),char(35),char(17),char(51),char(54),char(18),char(19), -char(33),char(17),char(51),char(33),char(17),char(35),char(6),char(2),char(7),char(4), -char(104),char(161),char(253),char(2),char(160),char(86),char(134),char(152),char(3),char(2), -char(43),char(157),char(254),char(195),char(246),char(13),char(145),char(108),char(254),char(133), -char(1),char(123),char(254),char(133),char(2),char(10),char(182),char(1),char(234),char(1), -char(25),char(252),char(71),char(3),char(54),char(222),char(254),char(57),char(145),char(0), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(18),char(4),char(92), -char(2),char(6),char(0),char(72),char(0),char(0),char(0),char(1),char(0),char(4), -char(0),char(0),char(5),char(223),char(4),char(70),char(0),char(17),char(0),char(60), -char(64),char(31),char(2),char(9),char(9),char(17),char(10),char(6),char(4),char(5), -char(10),char(14),char(15),char(13),char(7),char(19),char(18),char(17),char(11),char(8), -char(5),char(2),char(14),char(14),char(13),char(3),char(0),char(15),char(15),char(10), -char(7),char(13),char(21),char(0),char(63),char(51),char(51),char(63),char(51),char(51), -char(18),char(57),char(17),char(51),char(51),char(51),char(51),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48), -char(1),char(51),char(17),char(1),char(51),char(1),char(1),char(35),char(1),char(17), -char(35),char(17),char(1),char(35),char(1),char(1),char(51),char(1),char(2),char(164), -char(153),char(1),char(197),char(182),char(254),char(54),char(1),char(241),char(192),char(254), -char(30),char(153),char(254),char(31),char(191),char(1),char(240),char(254),char(55),char(182), -char(1),char(195),char(4),char(70),char(253),char(237),char(2),char(19),char(253),char(237), -char(253),char(205),char(2),char(43),char(253),char(213),char(2),char(43),char(253),char(213), -char(2),char(51),char(2),char(19),char(253),char(237),char(0),char(1),char(0),char(68), -char(255),char(236),char(3),char(127),char(4),char(92),char(0),char(34),char(0),char(77), -char(64),char(43),char(2),char(13),char(30),char(19),char(19),char(13),char(15),char(33), -char(8),char(24),char(6),char(35),char(36),char(16),char(34),char(33),char(34),char(33), -char(70),char(89),char(15),char(34),char(31),char(34),char(2),char(11),char(3),char(34), -char(34),char(22),char(10),char(22),char(27),char(70),char(89),char(22),char(22),char(10), -char(4),char(70),char(89),char(10),char(16),char(0),char(63),char(43),char(0),char(24), -char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(95),char(94), -char(93),char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(32),char(53), -char(52),char(35),char(34),char(6),char(7),char(39),char(54),char(51),char(50),char(22), -char(21),char(20),char(7),char(21),char(22),char(22),char(21),char(20),char(6),char(35), -char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(53),char(52),char(33), -char(35),char(53),char(1),char(129),char(1),char(55),char(252),char(77),char(126),char(102), -char(59),char(170),char(201),char(189),char(218),char(205),char(126),char(116),char(245),char(216), -char(237),char(129),char(183),char(187),char(144),char(147),char(254),char(201),char(152),char(2), -char(129),char(172),char(162),char(28),char(42),char(135),char(76),char(155),char(134),char(184), -char(57),char(8),char(37),char(137),char(103),char(152),char(169),char(71),char(152),char(86), -char(99),char(93),char(191),char(141),char(0),char(1),char(0),char(176),char(0),char(0), -char(4),char(98),char(4),char(72),char(0),char(13),char(0),char(52),char(64),char(25), -char(8),char(4),char(7),char(7),char(6),char(11),char(3),char(3),char(12),char(6), -char(12),char(15),char(14),char(3),char(10),char(12),char(4),char(13),char(15),char(12), -char(21),char(7),char(21),char(4),char(15),char(0),char(63),char(63),char(63),char(63), -char(17),char(18),char(57),char(57),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48), -char(1),char(17),char(7),char(7),char(1),char(51),char(17),char(35),char(17),char(55), -char(55),char(1),char(35),char(17),char(1),char(76),char(7),char(3),char(2),char(81), -char(207),char(155),char(3),char(5),char(253),char(176),char(207),char(4),char(72),char(253), -char(73),char(182),char(57),char(3),char(166),char(251),char(184),char(2),char(158),char(132), -char(130),char(252),char(92),char(4),char(72),char(0),char(255),char(255),char(0),char(176), -char(0),char(0),char(4),char(98),char(6),char(12),char(2),char(38),char(1),char(210), -char(0),char(0),char(1),char(6),char(2),char(54),char(61),char(0),char(0),char(8), -char(179),char(1),char(14),char(17),char(38),char(0),char(43),char(53),char(0),char(1), -char(0),char(176),char(0),char(0),char(4),char(12),char(4),char(72),char(0),char(10), -char(0),char(45),char(64),char(22),char(10),char(6),char(6),char(7),char(3),char(1), -char(2),char(7),char(4),char(12),char(11),char(2),char(10),char(5),char(10),char(7), -char(0),char(8),char(15),char(4),char(7),char(21),char(0),char(63),char(51),char(63), -char(51),char(18),char(57),char(57),char(17),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(51),char(1), -char(1),char(35),char(1),char(17),char(35),char(17),char(51),char(17),char(3),char(47), -char(182),char(254),char(39),char(2),char(0),char(194),char(254),char(12),char(166),char(166), -char(4),char(72),char(253),char(239),char(253),char(201),char(2),char(43),char(253),char(213), -char(4),char(72),char(253),char(235),char(0),char(1),char(0),char(16),char(255),char(242), -char(3),char(225),char(4),char(72),char(0),char(16),char(0),char(45),char(64),char(24), -char(1),char(0),char(3),char(15),char(10),char(15),char(0),char(3),char(18),char(17), -char(15),char(3),char(70),char(89),char(15),char(15),char(7),char(12),char(71),char(89), -char(7),char(22),char(1),char(21),char(0),char(63),char(63),char(43),char(0),char(24), -char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(49),char(48),char(33),char(35),char(17),char(33),char(2),char(2),char(6), -char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(18),char(19),char(33), -char(3),char(225),char(168),char(254),char(183),char(27),char(96),char(153),char(118),char(54), -char(32),char(22),char(28),char(115),char(136),char(35),char(2),char(129),char(3),char(186), -char(254),char(156),char(254),char(94),char(194),char(12),char(123),char(6),char(1),char(230), -char(1),char(239),char(0),char(1),char(0),char(176),char(0),char(0),char(5),char(47), -char(4),char(70),char(0),char(20),char(0),char(53),char(64),char(25),char(3),char(6), -char(6),char(5),char(18),char(15),char(15),char(16),char(5),char(16),char(22),char(21), -char(7),char(14),char(0),char(14),char(11),char(3),char(17),char(15),char(6),char(16), -char(21),char(11),char(21),char(0),char(63),char(63),char(51),char(63),char(51),char(18), -char(57),char(57),char(17),char(51),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37), -char(55),char(55),char(1),char(51),char(17),char(35),char(17),char(7),char(7),char(1), -char(35),char(1),char(38),char(39),char(17),char(35),char(17),char(51),char(1),char(22), -char(2),char(233),char(31),char(43),char(1),char(41),char(211),char(147),char(20),char(58), -char(254),char(229),char(139),char(254),char(229),char(53),char(20),char(148),char(203),char(1), -char(31),char(43),char(160),char(93),char(118),char(2),char(211),char(251),char(186),char(3), -char(137),char(58),char(153),char(253),char(74),char(2),char(184),char(134),char(75),char(252), -char(119),char(4),char(70),char(253),char(73),char(110),char(0),char(1),char(0),char(176), -char(0),char(0),char(4),char(98),char(4),char(72),char(0),char(11),char(0),char(57), -char(64),char(30),char(2),char(6),char(6),char(5),char(1),char(9),char(9),char(10), -char(5),char(10),char(13),char(12),char(1),char(8),char(70),char(89),char(47),char(1), -char(63),char(1),char(2),char(1),char(1),char(10),char(3),char(11),char(15),char(6), -char(10),char(21),char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(47), -char(93),char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(33), -char(17),char(51),char(17),char(35),char(17),char(33),char(17),char(35),char(17),char(1), -char(86),char(2),char(102),char(166),char(166),char(253),char(154),char(166),char(4),char(72), -char(254),char(53),char(1),char(203),char(251),char(184),char(1),char(238),char(254),char(18), -char(4),char(72),char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98), -char(4),char(92),char(2),char(6),char(0),char(82),char(0),char(0),char(0),char(1), -char(0),char(176),char(0),char(0),char(4),char(72),char(4),char(72),char(0),char(7), -char(0),char(35),char(64),char(17),char(0),char(1),char(5),char(4),char(1),char(4), -char(8),char(9),char(2),char(7),char(70),char(89),char(2),char(15),char(5),char(1), -char(21),char(0),char(63),char(51),char(63),char(43),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(35),char(17), -char(33),char(17),char(35),char(17),char(33),char(1),char(86),char(166),char(3),char(152), -char(168),char(253),char(182),char(4),char(72),char(251),char(184),char(3),char(184),char(0), -char(255),char(255),char(0),char(176),char(254),char(20),char(4),char(117),char(4),char(92), -char(2),char(6),char(0),char(83),char(0),char(0),char(255),char(255),char(0),char(115), -char(255),char(236),char(3),char(139),char(4),char(92),char(2),char(6),char(0),char(70), -char(0),char(0),char(0),char(1),char(0),char(41),char(0),char(0),char(3),char(147), -char(4),char(72),char(0),char(7),char(0),char(36),char(64),char(18),char(2),char(3), -char(0),char(3),char(5),char(3),char(8),char(9),char(1),char(5),char(6),char(5), -char(70),char(89),char(6),char(15),char(3),char(21),char(0),char(63),char(63),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(49),char(48),char(1),char(33),char(17),char(35),char(17),char(33),char(53),char(33), -char(3),char(147),char(254),char(156),char(166),char(254),char(160),char(3),char(106),char(3), -char(186),char(252),char(70),char(3),char(186),char(142),char(255),char(255),char(0),char(2), -char(254),char(20),char(4),char(6),char(4),char(72),char(2),char(6),char(0),char(92), -char(0),char(0),char(0),char(3),char(0),char(113),char(254),char(20),char(5),char(70), -char(6),char(20),char(0),char(17),char(0),char(24),char(0),char(30),char(0),char(76), -char(64),char(39),char(18),char(9),char(28),char(15),char(4),char(4),char(21),char(12), -char(5),char(25),char(0),char(0),char(5),char(9),char(3),char(31),char(32),char(13), -char(0),char(27),char(22),char(12),char(22),char(70),char(89),char(15),char(12),char(16), -char(28),char(21),char(6),char(21),char(70),char(89),char(3),char(6),char(22),char(5), -char(27),char(0),char(63),char(63),char(51),char(43),char(17),char(0),char(51),char(24), -char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(51),char(17), -char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(0),char(7), -char(17),char(35),char(17),char(38),char(0),char(53),char(52),char(0),char(55),char(17), -char(51),char(17),char(22),char(0),char(5),char(20),char(22),char(23),char(17),char(6), -char(6),char(5),char(16),char(37),char(17),char(54),char(54),char(5),char(70),char(254), -char(229),char(254),char(164),char(248),char(254),char(224),char(1),char(31),char(255),char(158), -char(251),char(1),char(30),char(251),char(217),char(176),char(192),char(185),char(183),char(3), -char(123),char(254),char(147),char(190),char(175),char(2),char(37),char(249),char(254),char(217), -char(21),char(254),char(36),char(1),char(220),char(19),char(1),char(46),char(244),char(249), -char(1),char(38),char(20),char(1),char(188),char(254),char(68),char(23),char(254),char(212), -char(240),char(192),char(218),char(18),char(3),char(84),char(17),char(207),char(200),char(1), -char(127),char(39),char(252),char(174),char(19),char(218),char(255),char(255),char(0),char(39), -char(0),char(0),char(4),char(8),char(4),char(72),char(2),char(6),char(0),char(91), -char(0),char(0),char(0),char(1),char(0),char(176),char(254),char(133),char(4),char(221), -char(4),char(72),char(0),char(11),char(0),char(50),char(64),char(25),char(6),char(3), -char(7),char(10),char(1),char(0),char(0),char(10),char(3),char(3),char(12),char(13), -char(8),char(4),char(15),char(10),char(6),char(3),char(6),char(70),char(89),char(3), -char(21),char(1),char(34),char(0),char(63),char(63),char(43),char(17),char(0),char(51), -char(24),char(63),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(35),char(17),char(33), -char(17),char(51),char(17),char(33),char(17),char(51),char(17),char(51),char(4),char(221), -char(166),char(252),char(121),char(166),char(2),char(70),char(166),char(155),char(254),char(133), -char(1),char(123),char(4),char(72),char(252),char(71),char(3),char(185),char(252),char(71), -char(0),char(1),char(0),char(156),char(0),char(0),char(4),char(45),char(4),char(72), -char(0),char(18),char(0),char(45),char(64),char(22),char(6),char(10),char(10),char(9), -char(1),char(17),char(9),char(17),char(20),char(19),char(3),char(14),char(70),char(89), -char(3),char(3),char(10),char(7),char(18),char(15),char(10),char(21),char(0),char(63), -char(63),char(51),char(18),char(57),char(47),char(43),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(17),char(20),char(51),char(50),char(54),char(55),char(17),char(51),char(17),char(35), -char(17),char(6),char(6),char(35),char(34),char(38),char(53),char(17),char(1),char(66), -char(219),char(91),char(166),char(105),char(166),char(166),char(105),char(179),char(113),char(164), -char(186),char(4),char(72),char(254),char(112),char(192),char(56),char(67),char(1),char(213), -char(251),char(184),char(1),char(240),char(72),char(59),char(172),char(147),char(1),char(156), -char(0),char(1),char(0),char(176),char(0),char(0),char(6),char(111),char(4),char(72), -char(0),char(11),char(0),char(49),char(64),char(24),char(8),char(5),char(0),char(9), -char(1),char(4),char(4),char(9),char(5),char(3),char(12),char(13),char(10),char(2), -char(6),char(15),char(0),char(8),char(5),char(8),char(70),char(89),char(5),char(21), -char(0),char(63),char(43),char(17),char(0),char(51),char(24),char(63),char(51),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(37),char(33),char(17),char(51),char(17),char(33),char(17), -char(51),char(17),char(33),char(17),char(51),char(3),char(225),char(1),char(230),char(168), -char(250),char(65),char(166),char(1),char(229),char(166),char(143),char(3),char(185),char(251), -char(184),char(4),char(72),char(252),char(71),char(3),char(185),char(0),char(0),char(1), -char(0),char(176),char(254),char(135),char(7),char(10),char(4),char(70),char(0),char(15), -char(0),char(59),char(64),char(30),char(12),char(9),char(0),char(13),char(1),char(4), -char(7),char(6),char(6),char(4),char(13),char(9),char(4),char(16),char(17),char(14), -char(2),char(10),char(15),char(4),char(0),char(12),char(9),char(12),char(70),char(89), -char(9),char(21),char(7),char(34),char(0),char(63),char(63),char(43),char(17),char(0), -char(51),char(51),char(24),char(63),char(51),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(37),char(33),char(17),char(51),char(17),char(51),char(17),char(35),char(17), -char(33),char(17),char(51),char(17),char(33),char(17),char(51),char(3),char(225),char(1), -char(230),char(166),char(157),char(168),char(250),char(78),char(166),char(1),char(229),char(166), -char(143),char(3),char(183),char(252),char(73),char(253),char(248),char(1),char(121),char(4), -char(70),char(252),char(73),char(3),char(183),char(0),char(0),char(2),char(0),char(41), -char(0),char(0),char(5),char(29),char(4),char(72),char(0),char(12),char(0),char(20), -char(0),char(61),char(64),char(32),char(0),char(18),char(18),char(8),char(13),char(4), -char(4),char(8),char(10),char(3),char(21),char(22),char(0),char(17),char(70),char(89), -char(0),char(0),char(8),char(11),char(11),char(10),char(70),char(89),char(11),char(15), -char(8),char(18),char(70),char(89),char(8),char(21),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(33),char(50),char(22),char(21),char(20),char(6), -char(35),char(33),char(17),char(33),char(53),char(33),char(1),char(52),char(38),char(35), -char(33),char(17),char(33),char(32),char(2),char(45),char(1),char(57),char(224),char(215), -char(223),char(220),char(254),char(37),char(254),char(162),char(2),char(4),char(2),char(76), -char(124),char(157),char(254),char(205),char(1),char(57),char(1),char(19),char(2),char(131), -char(154),char(155),char(166),char(168),char(3),char(186),char(142),char(252),char(252),char(93), -char(83),char(254),char(151),char(0),char(0),char(3),char(0),char(176),char(0),char(0), -char(5),char(121),char(4),char(72),char(0),char(10),char(0),char(14),char(0),char(22), -char(0),char(63),char(64),char(32),char(0),char(16),char(16),char(8),char(4),char(19), -char(12),char(11),char(11),char(19),char(8),char(3),char(23),char(24),char(12),char(21), -char(0),char(15),char(70),char(89),char(0),char(0),char(8),char(13),char(9),char(15), -char(8),char(16),char(70),char(89),char(8),char(21),char(0),char(63),char(43),char(0), -char(24),char(63),char(51),char(18),char(57),char(47),char(43),char(0),char(24),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(50),char(22),char(21), -char(20),char(6),char(35),char(33),char(17),char(51),char(1),char(35),char(17),char(51), -char(1),char(17),char(33),char(32),char(53),char(52),char(38),char(35),char(1),char(86), -char(1),char(43),char(209),char(201),char(213),char(207),char(254),char(57),char(166),char(4), -char(35),char(166),char(166),char(251),char(221),char(1),char(25),char(1),char(8),char(122), -char(147),char(2),char(131),char(155),char(154),char(165),char(169),char(4),char(72),char(251), -char(184),char(4),char(72),char(253),char(172),char(254),char(151),char(185),char(92),char(84), -char(0),char(2),char(0),char(176),char(0),char(0),char(4),char(76),char(4),char(72), -char(0),char(9),char(0),char(18),char(0),char(50),char(64),char(25),char(15),char(3), -char(0),char(11),char(11),char(7),char(3),char(7),char(20),char(19),char(0),char(10), -char(70),char(89),char(0),char(0),char(7),char(8),char(15),char(7),char(11),char(70), -char(89),char(7),char(21),char(0),char(63),char(43),char(0),char(24),char(63),char(18), -char(57),char(47),char(43),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(32),char(17), -char(20),char(6),char(35),char(33),char(17),char(51),char(17),char(17),char(33),char(50), -char(54),char(53),char(52),char(38),char(35),char(1),char(86),char(1),char(82),char(1), -char(164),char(219),char(211),char(254),char(18),char(166),char(1),char(64),char(132),char(140), -char(129),char(148),char(2),char(131),char(254),char(203),char(162),char(172),char(4),char(72), -char(253),char(172),char(254),char(151),char(92),char(93),char(91),char(85),char(0),char(1), -char(0),char(57),char(255),char(236),char(3),char(125),char(4),char(92),char(0),char(26), -char(0),char(68),char(64),char(38),char(12),char(9),char(9),char(24),char(24),char(10), -char(18),char(2),char(4),char(27),char(28),char(11),char(10),char(70),char(89),char(15), -char(11),char(31),char(11),char(2),char(11),char(3),char(11),char(11),char(0),char(21), -char(21),char(15),char(70),char(89),char(21),char(16),char(0),char(6),char(70),char(89), -char(0),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(95),char(94),char(93),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(5),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(55), -char(33),char(53),char(33),char(38),char(38),char(35),char(34),char(7),char(39),char(54), -char(54),char(51),char(32),char(0),char(17),char(16),char(0),char(1),char(86),char(167), -char(118),char(60),char(140),char(91),char(174),char(189),char(10),char(253),char(213),char(2), -char(41),char(16),char(169),char(161),char(103),char(151),char(47),char(55),char(164),char(80), -char(1),char(0),char(1),char(10),char(254),char(223),char(20),char(57),char(147),char(23), -char(36),char(186),char(185),char(141),char(172),char(160),char(54),char(140),char(26),char(35), -char(254),char(219),char(254),char(236),char(254),char(243),char(254),char(214),char(0),char(2), -char(0),char(176),char(255),char(236),char(6),char(51),char(4),char(92),char(0),char(18), -char(0),char(30),char(0),char(81),char(64),char(45),char(12),char(8),char(8),char(9), -char(19),char(13),char(6),char(25),char(0),char(0),char(6),char(9),char(3),char(31), -char(32),char(16),char(28),char(70),char(89),char(16),char(16),char(12),char(7),char(70), -char(89),char(15),char(12),char(31),char(12),char(2),char(11),char(3),char(12),char(12), -char(9),char(10),char(15),char(9),char(21),char(3),char(22),char(70),char(89),char(3), -char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(18),char(57), -char(47),char(95),char(94),char(93),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(35),char(34), -char(2),char(39),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(54), -char(54),char(51),char(50),char(0),char(1),char(20),char(22),char(51),char(50),char(54), -char(53),char(52),char(38),char(35),char(34),char(6),char(6),char(51),char(254),char(255), -char(224),char(213),char(250),char(14),char(254),char(225),char(166),char(166),char(1),char(33), -char(20),char(252),char(207),char(220),char(1),char(1),char(252),char(238),char(146),char(161), -char(158),char(149),char(146),char(161),char(161),char(146),char(2),char(37),char(254),char(243), -char(254),char(212),char(1),char(11),char(247),char(254),char(18),char(4),char(72),char(254), -char(53),char(228),char(251),char(254),char(207),char(254),char(250),char(211),char(219),char(213), -char(217),char(210),char(216),char(216),char(0),char(2),char(0),char(37),char(0),char(0), -char(3),char(193),char(4),char(72),char(0),char(13),char(0),char(20),char(0),char(61), -char(64),char(32),char(17),char(11),char(11),char(10),char(14),char(5),char(1),char(5), -char(2),char(10),char(4),char(22),char(21),char(13),char(16),char(70),char(89),char(2), -char(8),char(13),char(13),char(1),char(8),char(8),char(19),char(70),char(89),char(8), -char(15),char(11),char(1),char(21),char(0),char(63),char(51),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(18),char(57),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(51),char(35),char(1),char(38),char(38),char(53),char(52),char(54),char(51), -char(33),char(17),char(35),char(17),char(33),char(1),char(20),char(33),char(33),char(17), -char(33),char(34),char(231),char(194),char(1),char(59),char(127),char(135),char(202),char(181), -char(1),char(232),char(166),char(254),char(235),char(254),char(246),char(1),char(20),char(1), -char(11),char(254),char(211),char(242),char(1),char(207),char(28),char(161),char(122),char(150), -char(172),char(251),char(184),char(1),char(182),char(1),char(78),char(190),char(1),char(114), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(18),char(5),char(211), -char(2),char(38),char(0),char(72),char(0),char(0),char(1),char(6),char(0),char(106), -char(8),char(0),char(0),char(10),char(180),char(3),char(2),char(48),char(17),char(38), -char(0),char(43),char(53),char(53),char(0),char(1),char(0),char(20),char(254),char(20), -char(4),char(68),char(6),char(20),char(0),char(39),char(0),char(102),char(64),char(58), -char(29),char(27),char(23),char(15),char(15),char(20),char(16),char(7),char(37),char(37), -char(25),char(2),char(16),char(18),char(5),char(40),char(41),char(30),char(29),char(33), -char(11),char(70),char(89),char(26),char(18),char(19),char(18),char(71),char(89),char(23), -char(19),char(15),char(19),char(31),char(19),char(47),char(19),char(3),char(9),char(3), -char(29),char(33),char(19),char(19),char(33),char(29),char(3),char(16),char(21),char(0), -char(16),char(21),char(0),char(5),char(70),char(89),char(0),char(27),char(0),char(63), -char(43),char(0),char(24),char(63),char(63),char(18),char(23),char(57),char(47),char(47), -char(47),char(95),char(94),char(93),char(17),char(51),char(43),char(17),char(0),char(51), -char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(51),char(17),char(51),char(51),char(51),char(49),char(48), -char(1),char(34),char(39),char(53),char(22),char(51),char(50),char(53),char(17),char(52), -char(38),char(35),char(34),char(6),char(21),char(17),char(35),char(17),char(35),char(53), -char(51),char(53),char(51),char(21),char(33),char(21),char(33),char(21),char(20),char(7), -char(51),char(54),char(54),char(51),char(50),char(22),char(21),char(17),char(20),char(6), -char(3),char(47),char(79),char(52),char(58),char(55),char(129),char(122),char(130),char(173), -char(157),char(168),char(156),char(156),char(166),char(1),char(145),char(254),char(111),char(8), -char(10),char(49),char(181),char(116),char(201),char(201),char(137),char(254),char(20),char(25), -char(137),char(20),char(170),char(3),char(82),char(134),char(132),char(188),char(211),char(253), -char(231),char(4),char(219),char(127),char(186),char(186),char(127),char(196),char(84),char(56), -char(79),char(91),char(191),char(210),char(252),char(182),char(156),char(170),char(255),char(255), -char(0),char(176),char(0),char(0),char(3),char(68),char(6),char(33),char(2),char(38), -char(1),char(205),char(0),char(0),char(1),char(6),char(0),char(118),char(241),char(0), -char(0),char(8),char(179),char(1),char(15),char(17),char(38),char(0),char(43),char(53), -char(0),char(1),char(0),char(115),char(255),char(236),char(3),char(170),char(4),char(92), -char(0),char(25),char(0),char(68),char(64),char(38),char(15),char(18),char(18),char(3), -char(9),char(24),char(17),char(3),char(4),char(26),char(27),char(15),char(18),char(70), -char(89),char(15),char(15),char(31),char(15),char(2),char(11),char(3),char(15),char(15), -char(0),char(6),char(6),char(12),char(70),char(89),char(6),char(16),char(0),char(21), -char(70),char(89),char(0),char(22),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(95),char(94),char(93), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(5),char(34),char(0),char(17),char(16),char(0),char(51),char(50), -char(22),char(23),char(7),char(38),char(35),char(34),char(6),char(7),char(33),char(21), -char(33),char(22),char(22),char(51),char(50),char(55),char(21),char(6),char(2),char(121), -char(248),char(254),char(242),char(1),char(19),char(251),char(82),char(158),char(57),char(49), -char(143),char(109),char(164),char(170),char(16),char(2),char(41),char(253),char(213),char(9), -char(170),char(167),char(140),char(151),char(116),char(20),char(1),char(35),char(1),char(16), -char(1),char(19),char(1),char(42),char(32),char(25),char(141),char(51),char(163),char(169), -char(141),char(190),char(181),char(59),char(147),char(57),char(255),char(255),char(0),char(106), -char(255),char(236),char(3),char(115),char(4),char(92),char(2),char(6),char(0),char(86), -char(0),char(0),char(255),char(255),char(0),char(162),char(0),char(0),char(1),char(102), -char(5),char(223),char(2),char(6),char(0),char(76),char(0),char(0),char(255),char(255), -char(255),char(236),char(0),char(0),char(2),char(31),char(5),char(211),char(2),char(38), -char(0),char(243),char(0),char(0),char(1),char(7),char(0),char(106),char(254),char(183), -char(0),char(0),char(0),char(10),char(180),char(2),char(1),char(25),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(255),char(145),char(254),char(20), -char(1),char(102),char(5),char(223),char(2),char(6),char(0),char(77),char(0),char(0), -char(0),char(2),char(0),char(16),char(255),char(242),char(6),char(66),char(4),char(72), -char(0),char(21),char(0),char(29),char(0),char(76),char(64),char(41),char(9),char(20), -char(0),char(27),char(27),char(7),char(22),char(4),char(4),char(7),char(20),char(14), -char(4),char(30),char(31),char(0),char(26),char(70),char(89),char(0),char(0),char(12), -char(20),char(20),char(9),char(70),char(89),char(20),char(15),char(12),char(17),char(71), -char(89),char(12),char(21),char(7),char(27),char(70),char(89),char(7),char(21),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(51),char(50),char(22),char(21),char(16),char(33),char(33), -char(17),char(33),char(2),char(2),char(35),char(34),char(39),char(53),char(22),char(51), -char(50),char(18),char(19),char(33),char(1),char(52),char(38),char(35),char(35),char(17), -char(51),char(32),char(3),char(176),char(244),char(211),char(203),char(254),char(75),char(254), -char(101),char(254),char(254),char(40),char(181),char(171),char(56),char(32),char(22),char(28), -char(115),char(136),char(35),char(2),char(80),char(1),char(236),char(125),char(158),char(231), -char(237),char(1),char(21),char(2),char(131),char(155),char(154),char(254),char(178),char(3), -char(186),char(253),char(250),char(254),char(62),char(12),char(123),char(6),char(1),char(230), -char(1),char(239),char(252),char(252),char(91),char(85),char(254),char(151),char(0),char(2), -char(0),char(176),char(0),char(0),char(6),char(164),char(4),char(70),char(0),char(17), -char(0),char(25),char(0),char(74),char(64),char(38),char(15),char(11),char(11),char(12), -char(1),char(19),char(19),char(16),char(8),char(22),char(5),char(5),char(8),char(12), -char(3),char(26),char(27),char(18),char(10),char(15),char(10),char(70),char(89),char(1), -char(15),char(15),char(8),char(17),char(13),char(15),char(12),char(21),char(8),char(19), -char(70),char(89),char(8),char(21),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(51),char(18),char(57),char(47),char(51),char(43),char(17),char(0),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17), -char(33),char(50),char(22),char(21),char(16),char(33),char(33),char(17),char(33),char(17), -char(35),char(17),char(51),char(17),char(33),char(17),char(19),char(17),char(51),char(32), -char(53),char(52),char(38),char(35),char(4),char(0),char(1),char(0),char(217),char(203), -char(254),char(78),char(254),char(96),char(254),char(10),char(172),char(172),char(1),char(250), -char(166),char(240),char(1),char(20),char(128),char(153),char(4),char(70),char(254),char(59), -char(153),char(154),char(254),char(178),char(1),char(238),char(254),char(18),char(4),char(70), -char(254),char(55),char(1),char(201),char(253),char(174),char(254),char(151),char(185),char(92), -char(84),char(0),char(255),char(255),char(0),char(20),char(0),char(0),char(4),char(68), -char(6),char(20),char(2),char(6),char(0),char(233),char(0),char(0),char(255),char(255), -char(0),char(176),char(0),char(0),char(4),char(12),char(6),char(33),char(2),char(38), -char(1),char(212),char(0),char(0),char(1),char(6),char(0),char(118),char(51),char(0), -char(0),char(8),char(179),char(1),char(20),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(2),char(254),char(20),char(4),char(6),char(6),char(12), -char(2),char(38),char(0),char(92),char(0),char(0),char(1),char(6),char(2),char(54), -char(183),char(0),char(0),char(8),char(179),char(1),char(22),char(17),char(38),char(0), -char(43),char(53),char(0),char(1),char(0),char(176),char(254),char(135),char(4),char(70), -char(4),char(70),char(0),char(11),char(0),char(50),char(64),char(25),char(4),char(1), -char(10),char(11),char(5),char(8),char(8),char(11),char(1),char(3),char(12),char(13), -char(11),char(34),char(6),char(2),char(15),char(9),char(1),char(1),char(4),char(70), -char(89),char(1),char(21),char(0),char(63),char(43),char(17),char(0),char(51),char(24), -char(63),char(51),char(63),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(33),char(17),char(51), -char(17),char(33),char(17),char(51),char(17),char(33),char(17),char(35),char(2),char(47), -char(254),char(129),char(166),char(2),char(74),char(166),char(254),char(143),char(166),char(4), -char(70),char(252),char(73),char(3),char(183),char(251),char(186),char(254),char(135),char(0), -char(0),char(1),char(0),char(201),char(0),char(0),char(4),char(8),char(6),char(227), -char(0),char(7),char(0),char(35),char(64),char(17),char(0),char(3),char(5),char(6), -char(3),char(6),char(9),char(8),char(7),char(4),char(73),char(89),char(1),char(7), -char(3),char(6),char(18),char(0),char(63),char(63),char(198),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(17),char(51),char(17),char(33),char(17),char(35),char(17),char(3),char(102),char(162), -char(253),char(107),char(170),char(5),char(182),char(1),char(45),char(254),char(58),char(250), -char(227),char(5),char(182),char(0),char(0),char(1),char(0),char(176),char(0),char(0), -char(3),char(68),char(5),char(137),char(0),char(7),char(0),char(39),char(64),char(18), -char(5),char(0),char(2),char(3),char(0),char(3),char(9),char(8),char(6),char(4), -char(4),char(1),char(71),char(89),char(4),char(15),char(3),char(21),char(0),char(63), -char(63),char(43),char(0),char(24),char(16),char(198),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(17), -char(35),char(17),char(33),char(17),char(51),char(3),char(68),char(254),char(18),char(166), -char(1),char(238),char(166),char(3),char(199),char(252),char(57),char(4),char(72),char(1), -char(65),char(0),char(255),char(255),char(0),char(27),char(0),char(0),char(7),char(76), -char(7),char(115),char(2),char(38),char(0),char(58),char(0),char(0),char(1),char(7), -char(0),char(67),char(1),char(23),char(1),char(82),char(0),char(8),char(179),char(1), -char(27),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(23), -char(0),char(0),char(6),char(35),char(6),char(33),char(2),char(38),char(0),char(90), -char(0),char(0),char(1),char(6),char(0),char(67),char(115),char(0),char(0),char(8), -char(179),char(1),char(30),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(27),char(0),char(0),char(7),char(76),char(7),char(115),char(2),char(38), -char(0),char(58),char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(176), -char(1),char(82),char(0),char(8),char(179),char(1),char(35),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(23),char(0),char(0),char(6),char(35), -char(6),char(33),char(2),char(38),char(0),char(90),char(0),char(0),char(1),char(7), -char(0),char(118),char(1),char(27),char(0),char(0),char(0),char(8),char(179),char(1), -char(38),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(27), -char(0),char(0),char(7),char(76),char(7),char(37),char(2),char(38),char(0),char(58), -char(0),char(0),char(1),char(7),char(0),char(106),char(1),char(100),char(1),char(82), -char(0),char(10),char(180),char(2),char(1),char(47),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(23),char(0),char(0),char(6),char(35), -char(5),char(211),char(2),char(38),char(0),char(90),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(207),char(0),char(0),char(0),char(10),char(180),char(2), -char(1),char(50),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(4),char(123),char(7),char(115),char(2),char(38), -char(0),char(60),char(0),char(0),char(1),char(7),char(0),char(67),char(255),char(148), -char(1),char(82),char(0),char(8),char(179),char(1),char(10),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(2),char(254),char(20),char(4),char(6), -char(6),char(33),char(2),char(38),char(0),char(92),char(0),char(0),char(1),char(7), -char(0),char(67),char(255),char(97),char(0),char(0),char(0),char(8),char(179),char(1), -char(23),char(17),char(38),char(0),char(43),char(53),char(0),char(1),char(0),char(82), -char(1),char(217),char(3),char(174),char(2),char(113),char(0),char(3),char(0),char(17), -char(181),char(0),char(2),char(4),char(5),char(0),char(1),char(0),char(47),char(51), -char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(19),char(53),char(33), -char(21),char(82),char(3),char(92),char(1),char(217),char(152),char(152),char(0),char(1), -char(0),char(82),char(1),char(217),char(7),char(174),char(2),char(113),char(0),char(3), -char(0),char(17),char(181),char(0),char(2),char(4),char(5),char(0),char(1),char(0), -char(47),char(51),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(19), -char(53),char(33),char(21),char(82),char(7),char(92),char(1),char(217),char(152),char(152), -char(255),char(255),char(0),char(82),char(1),char(217),char(7),char(174),char(2),char(113), -char(2),char(6),char(2),char(3),char(0),char(0),char(0),char(2),char(255),char(252), -char(254),char(49),char(3),char(78),char(255),char(211),char(0),char(3),char(0),char(7), -char(0),char(28),char(64),char(11),char(4),char(0),char(9),char(5),char(1),char(1), -char(8),char(5),char(6),char(2),char(1),char(0),char(47),char(51),char(47),char(51), -char(17),char(1),char(51),char(17),char(51),char(17),char(51),char(50),char(49),char(48), -char(1),char(33),char(53),char(33),char(53),char(33),char(53),char(33),char(3),char(78), -char(252),char(174),char(3),char(82),char(252),char(174),char(3),char(82),char(254),char(49), -char(139),char(140),char(139),char(0),char(0),char(1),char(0),char(25),char(3),char(193), -char(1),char(68),char(5),char(182),char(0),char(7),char(0),char(18),char(182),char(1), -char(5),char(8),char(9),char(0),char(4),char(3),char(0),char(63),char(205),char(17), -char(18),char(1),char(57),char(57),char(49),char(48),char(19),char(39),char(54),char(18), -char(55),char(51),char(6),char(7),char(37),char(12),char(22),char(98),char(56),char(123), -char(66),char(37),char(3),char(193),char(22),char(90),char(1),char(12),char(121),char(254), -char(247),char(0),char(0),char(1),char(0),char(25),char(3),char(193),char(1),char(68), -char(5),char(182),char(0),char(7),char(0),char(18),char(182),char(5),char(1),char(8), -char(9),char(5),char(7),char(3),char(0),char(63),char(198),char(17),char(18),char(1), -char(57),char(57),char(49),char(48),char(1),char(23),char(6),char(2),char(7),char(35), -char(18),char(55),char(1),char(53),char(15),char(26),char(98),char(53),char(122),char(70), -char(32),char(5),char(182),char(22),char(100),char(254),char(247),char(114),char(1),char(29), -char(216),char(0),char(255),char(255),char(0),char(63),char(254),char(248),char(1),char(109), -char(0),char(238),char(2),char(6),char(0),char(15),char(0),char(0),char(0),char(1), -char(0),char(25),char(3),char(193),char(1),char(70),char(5),char(182),char(0),char(7), -char(0),char(18),char(182),char(2),char(6),char(9),char(8),char(3),char(7),char(3), -char(0),char(63),char(205),char(17),char(18),char(1),char(57),char(57),char(49),char(48), -char(19),char(22),char(23),char(35),char(38),char(2),char(39),char(55),char(223),char(37), -char(66),char(123),char(45),char(109),char(24),char(14),char(5),char(182),char(251),char(250), -char(94),char(1),char(28),char(101),char(22),char(0),char(0),char(2),char(0),char(25), -char(3),char(193),char(2),char(180),char(5),char(182),char(0),char(7),char(0),char(15), -char(0),char(26),char(64),char(12),char(4),char(1),char(13),char(9),char(4),char(16), -char(17),char(0),char(8),char(3),char(12),char(3),char(0),char(63),char(51),char(205), -char(50),char(17),char(18),char(1),char(23),char(57),char(49),char(48),char(1),char(39), -char(54),char(19),char(51),char(6),char(2),char(7),char(33),char(39),char(54),char(18), -char(55),char(51),char(6),char(7),char(1),char(150),char(15),char(56),char(122),char(123), -char(30),char(59),char(13),char(253),char(215),char(12),char(22),char(98),char(56),char(123), -char(66),char(37),char(3),char(193),char(22),char(215),char(1),char(8),char(115),char(254), -char(223),char(97),char(22),char(90),char(1),char(12),char(121),char(254),char(247),char(0), -char(0),char(2),char(0),char(25),char(3),char(193),char(2),char(180),char(5),char(182), -char(0),char(7),char(0),char(16),char(0),char(26),char(64),char(12),char(9),char(13), -char(1),char(5),char(4),char(17),char(18),char(13),char(5),char(16),char(7),char(3), -char(0),char(63),char(51),char(198),char(50),char(17),char(18),char(1),char(23),char(57), -char(49),char(48),char(1),char(23),char(6),char(2),char(7),char(35),char(18),char(55), -char(33),char(23),char(6),char(2),char(7),char(35),char(54),char(18),char(55),char(1), -char(53),char(15),char(26),char(98),char(53),char(122),char(70),char(32),char(2),char(39), -char(14),char(24),char(96),char(56),char(125),char(26),char(66),char(13),char(5),char(182), -char(22),char(100),char(254),char(247),char(114),char(1),char(29),char(216),char(22),char(91), -char(254),char(246),char(122),char(100),char(1),char(52),char(93),char(0),char(255),char(255), -char(0),char(25),char(254),char(249),char(2),char(180),char(0),char(238),char(1),char(7), -char(2),char(11),char(0),char(0),char(251),char(56),char(0),char(32),char(183),char(1), -char(0),char(7),char(64),char(13),char(13),char(72),char(7),char(184),char(255),char(192), -char(179),char(12),char(12),char(72),char(7),char(184),char(255),char(192),char(179),char(9), -char(9),char(72),char(7),char(0),char(17),char(43),char(43),char(43),char(53),char(53), -char(0),char(1),char(0),char(123),char(0),char(0),char(3),char(137),char(6),char(20), -char(0),char(11),char(0),char(67),char(64),char(33),char(9),char(2),char(2),char(8), -char(3),char(10),char(1),char(1),char(7),char(4),char(0),char(4),char(3),char(5), -char(4),char(12),char(13),char(0),char(5),char(5),char(11),char(6),char(6),char(7), -char(8),char(0),char(1),char(4),char(4),char(10),char(7),char(3),char(18),char(0), -char(63),char(46),char(51),char(51),char(17),char(51),char(63),char(18),char(57),char(47), -char(51),char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(1),char(37),char(19),char(35),char(19),char(5),char(53),char(5),char(3), -char(51),char(3),char(37),char(3),char(137),char(254),char(160),char(49),char(196),char(49), -char(254),char(180),char(1),char(76),char(49),char(196),char(49),char(1),char(96),char(3), -char(231),char(31),char(251),char(250),char(4),char(6),char(31),char(170),char(30),char(1), -char(161),char(254),char(95),char(30),char(0),char(1),char(0),char(123),char(0),char(0), -char(3),char(154),char(6),char(20),char(0),char(21),char(0),char(117),char(64),char(58), -char(12),char(7),char(21),char(16),char(4),char(4),char(15),char(10),char(5),char(20), -char(17),char(0),char(3),char(3),char(14),char(11),char(9),char(6),char(19),char(1), -char(1),char(6),char(5),char(7),char(4),char(22),char(23),char(1),char(8),char(8), -char(2),char(7),char(3),char(6),char(6),char(0),char(9),char(20),char(11),char(11), -char(17),char(14),char(19),char(12),char(12),char(18),char(9),char(14),char(13),char(7), -char(13),char(7),char(13),char(5),char(15),char(0),char(5),char(18),char(0),char(63), -char(63),char(18),char(57),char(57),char(47),char(47),char(18),char(57),char(57),char(50), -char(50),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(51),char(51), -char(17),char(51),char(51),char(51),char(17),char(51),char(51),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(1),char(37),char(21),char(37),char(19), -char(35),char(19),char(5),char(53),char(5),char(3),char(19),char(5),char(53),char(5), -char(3),char(51),char(3),char(37),char(21),char(37),char(19),char(2),char(57),char(1), -char(97),char(254),char(159),char(49),char(198),char(49),char(254),char(166),char(1),char(90), -char(43),char(43),char(254),char(166),char(1),char(90),char(49),char(198),char(49),char(1), -char(97),char(254),char(159),char(43),char(1),char(231),char(31),char(168),char(29),char(254), -char(133),char(1),char(123),char(29),char(168),char(31),char(1),char(43),char(1),char(27), -char(31),char(168),char(30),char(1),char(124),char(254),char(132),char(30),char(168),char(31), -char(254),char(229),char(0),char(1),char(0),char(164),char(1),char(244),char(2),char(94), -char(3),char(227),char(0),char(11),char(0),char(19),char(182),char(6),char(0),char(0), -char(12),char(13),char(9),char(3),char(0),char(47),char(205),char(17),char(18),char(1), -char(57),char(17),char(51),char(49),char(48),char(19),char(52),char(54),char(51),char(50), -char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(164),char(113),char(108), -char(105),char(116),char(115),char(106),char(107),char(114),char(2),char(236),char(121),char(126), -char(124),char(123),char(119),char(129),char(131),char(0),char(255),char(255),char(0),char(152), -char(255),char(227),char(5),char(174),char(0),char(242),char(0),char(38),char(0),char(17), -char(0),char(0),char(0),char(39),char(0),char(17),char(2),char(18),char(0),char(0), -char(0),char(7),char(0),char(17),char(4),char(37),char(0),char(0),char(0),char(7), -char(0),char(100),char(255),char(236),char(9),char(59),char(5),char(203),char(0),char(9), -char(0),char(20),char(0),char(24),char(0),char(36),char(0),char(47),char(0),char(59), -char(0),char(70),char(0),char(91),char(64),char(48),char(0),char(16),char(5),char(10), -char(48),char(66),char(54),char(60),char(25),char(43),char(31),char(37),char(37),char(43), -char(60),char(21),char(66),char(10),char(23),char(16),char(8),char(71),char(72),char(28), -char(51),char(51),char(40),char(63),char(25),char(3),char(13),char(34),char(57),char(57), -char(45),char(68),char(13),char(68),char(13),char(68),char(23),char(24),char(6),char(23), -char(24),char(7),char(18),char(7),char(0),char(63),char(51),char(63),char(63),char(18), -char(57),char(57),char(47),char(47),char(17),char(51),char(51),char(17),char(51),char(17), -char(51),char(63),char(51),char(51),char(17),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(19),char(20),char(22),char(51),char(50), -char(17),char(16),char(35),char(34),char(6),char(5),char(20),char(6),char(35),char(34), -char(38),char(53),char(16),char(33),char(50),char(22),char(37),char(1),char(35),char(1), -char(1),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(34),char(6),char(5),char(20),char(6),char(35),char(34),char(38),char(53),char(16), -char(33),char(50),char(22),char(5),char(20),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(6),char(5),char(20),char(6),char(35),char(34), -char(38),char(53),char(16),char(33),char(50),char(22),char(236),char(83),char(93),char(180), -char(180),char(93),char(83),char(1),char(237),char(161),char(156),char(149),char(163),char(1), -char(56),char(152),char(165),char(2),char(105),char(252),char(213),char(148),char(3),char(43), -char(2),char(160),char(83),char(93),char(91),char(89),char(89),char(91),char(93),char(83), -char(1),char(237),char(162),char(155),char(148),char(163),char(1),char(55),char(150),char(167), -char(251),char(56),char(81),char(93),char(91),char(89),char(89),char(91),char(93),char(81), -char(1),char(235),char(162),char(155),char(149),char(163),char(1),char(56),char(150),char(167), -char(4),char(2),char(170),char(170),char(1),char(84),char(1),char(82),char(168),char(170), -char(230),char(231),char(238),char(223),char(1),char(201),char(240),char(219),char(250),char(74), -char(5),char(182),char(252),char(2),char(171),char(169),char(167),char(173),char(171),char(165), -char(165),char(171),char(230),char(230),char(239),char(221),char(1),char(201),char(236),char(221), -char(171),char(169),char(167),char(173),char(171),char(165),char(165),char(171),char(230),char(230), -char(238),char(222),char(1),char(201),char(236),char(0),char(255),char(255),char(0),char(133), -char(3),char(166),char(1),char(63),char(5),char(182),char(2),char(6),char(0),char(10), -char(0),char(0),char(255),char(255),char(0),char(133),char(3),char(166),char(2),char(176), -char(5),char(182),char(0),char(6),char(0),char(5),char(0),char(0),char(0),char(1), -char(0),char(82),char(0),char(117),char(2),char(31),char(3),char(190),char(0),char(6), -char(0),char(26),char(64),char(10),char(4),char(2),char(3),char(6),char(2),char(6), -char(8),char(7),char(5),char(1),char(0),char(47),char(47),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(1), -char(23),char(1),char(1),char(7),char(1),char(82),char(1),char(86),char(119),char(254), -char(223),char(1),char(33),char(119),char(254),char(170),char(2),char(39),char(1),char(151), -char(69),char(254),char(162),char(254),char(161),char(71),char(1),char(151),char(0),char(1), -char(0),char(80),char(0),char(117),char(2),char(29),char(3),char(190),char(0),char(6), -char(0),char(26),char(64),char(10),char(3),char(0),char(4),char(2),char(0),char(2), -char(8),char(7),char(5),char(1),char(0),char(47),char(47),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(1), -char(39),char(1),char(1),char(55),char(1),char(2),char(29),char(254),char(168),char(117), -char(1),char(31),char(254),char(225),char(117),char(1),char(88),char(2),char(12),char(254), -char(105),char(71),char(1),char(95),char(1),char(94),char(69),char(254),char(105),char(0), -char(255),char(255),char(0),char(152),char(255),char(227),char(3),char(74),char(5),char(182), -char(0),char(38),char(0),char(4),char(0),char(0),char(0),char(7),char(0),char(4), -char(1),char(193),char(0),char(0),char(0),char(1),char(254),char(121),char(0),char(0), -char(2),char(143),char(5),char(182),char(0),char(3),char(0),char(19),char(183),char(0), -char(5),char(2),char(4),char(3),char(3),char(2),char(18),char(0),char(63),char(63), -char(17),char(1),char(51),char(17),char(51),char(49),char(48),char(1),char(1),char(35), -char(1),char(2),char(143),char(252),char(121),char(143),char(3),char(135),char(5),char(182), -char(250),char(74),char(5),char(182),char(0),char(1),char(0),char(109),char(3),char(33), -char(2),char(195),char(5),char(199),char(0),char(18),char(0),char(38),char(64),char(17), -char(0),char(18),char(12),char(8),char(8),char(9),char(18),char(9),char(20),char(19), -char(4),char(15),char(31),char(0),char(9),char(10),char(31),char(0),char(63),char(205), -char(50),char(63),char(51),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(52),char(38), -char(35),char(34),char(6),char(21),char(17),char(35),char(17),char(51),char(23),char(51), -char(54),char(51),char(32),char(21),char(17),char(2),char(76),char(78),char(80),char(114), -char(91),char(116),char(96),char(14),char(10),char(75),char(145),char(1),char(2),char(3), -char(33),char(1),char(164),char(84),char(71),char(105),char(122),char(254),char(164),char(2), -char(153),char(88),char(101),char(250),char(254),char(84),char(0),char(1),char(0),char(98), -char(0),char(0),char(4),char(35),char(5),char(182),char(0),char(17),char(0),char(75), -char(64),char(40),char(14),char(0),char(4),char(4),char(9),char(5),char(11),char(16), -char(2),char(5),char(7),char(5),char(18),char(19),char(3),char(7),char(8),char(7), -char(78),char(89),char(0),char(8),char(14),char(17),char(76),char(89),char(8),char(14), -char(8),char(14),char(5),char(10),char(10),char(13),char(76),char(89),char(10),char(6), -char(5),char(24),char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57), -char(57),char(24),char(47),char(47),char(43),char(17),char(0),char(51),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51), -char(17),char(51),char(51),char(49),char(48),char(1),char(33),char(21),char(33),char(17), -char(35),char(17),char(35),char(53),char(51),char(17),char(33),char(21),char(33),char(17), -char(33),char(21),char(33),char(1),char(184),char(1),char(52),char(254),char(204),char(166), -char(176),char(176),char(3),char(17),char(253),char(149),char(2),char(68),char(253),char(188), -char(1),char(139),char(129),char(254),char(246),char(1),char(10),char(129),char(4),char(43), -char(151),char(253),char(233),char(151),char(0),char(1),char(0),char(68),char(0),char(0), -char(4),char(72),char(5),char(201),char(0),char(37),char(0),char(112),char(64),char(64), -char(13),char(9),char(17),char(17),char(34),char(30),char(26),char(11),char(15),char(21), -char(2),char(15),char(26),char(28),char(32),char(23),char(7),char(38),char(39),char(16), -char(28),char(29),char(28),char(78),char(89),char(13),char(29),char(12),char(32),char(33), -char(32),char(78),char(89),char(9),char(33),char(15),char(33),char(31),char(33),char(63), -char(33),char(79),char(33),char(4),char(9),char(3),char(29),char(33),char(29),char(33), -char(23),char(0),char(23),char(20),char(76),char(89),char(23),char(24),char(0),char(5), -char(75),char(89),char(0),char(7),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(47),char(47),char(95), -char(94),char(93),char(17),char(51),char(43),char(17),char(0),char(51),char(17),char(51), -char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(51),char(51),char(17),char(51),char(51),char(49),char(48), -char(1),char(50),char(23),char(7),char(38),char(35),char(34),char(6),char(21),char(21), -char(33),char(21),char(33),char(21),char(33),char(21),char(33),char(21),char(20),char(6), -char(7),char(33),char(21),char(33),char(53),char(54),char(53),char(53),char(35),char(53), -char(51),char(53),char(35),char(53),char(51),char(53),char(52),char(54),char(2),char(176), -char(201),char(158),char(60),char(152),char(147),char(122),char(126),char(1),char(164),char(254), -char(92),char(1),char(164),char(254),char(92),char(65),char(74),char(3),char(27),char(251), -char(252),char(206),char(200),char(200),char(200),char(200),char(224),char(5),char(201),char(80), -char(131),char(71),char(135),char(129),char(186),char(129),char(166),char(129),char(33),char(100), -char(136),char(44),char(154),char(141),char(48),char(243),char(35),char(129),char(166),char(129), -char(207),char(178),char(205),char(0),char(0),char(3),char(0),char(154),char(255),char(236), -char(5),char(209),char(5),char(182),char(0),char(22),char(0),char(33),char(0),char(42), -char(0),char(96),char(64),char(55),char(34),char(28),char(28),char(29),char(38),char(23), -char(16),char(20),char(20),char(13),char(9),char(2),char(18),char(9),char(23),char(11), -char(29),char(6),char(43),char(44),char(27),char(34),char(75),char(89),char(16),char(19), -char(78),char(89),char(3),char(27),char(11),char(16),char(14),char(14),char(16),char(11), -char(27),char(3),char(5),char(29),char(30),char(30),char(42),char(75),char(89),char(30), -char(6),char(29),char(24),char(6),char(0),char(77),char(89),char(6),char(25),char(0), -char(63),char(43),char(0),char(24),char(63),char(63),char(43),char(17),char(18),char(0), -char(23),char(57),char(24),char(47),char(47),char(47),char(47),char(47),char(43),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(50), -char(54),char(55),char(21),char(6),char(35),char(34),char(38),char(53),char(17),char(35), -char(53),char(55),char(55),char(51),char(21),char(51),char(21),char(35),char(17),char(20), -char(22),char(1),char(20),char(4),char(33),char(35),char(17),char(35),char(17),char(33), -char(32),char(22),char(1),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(35),char(5),char(78),char(34),char(86),char(11),char(60),char(110),char(109),char(129), -char(157),char(157),char(62),char(98),char(221),char(221),char(52),char(254),char(145),char(254), -char(235),char(254),char(246),char(64),char(165),char(1),char(6),char(1),char(0),char(254), -char(253),char(161),char(52),char(200),char(185),char(172),char(183),char(82),char(117),char(14), -char(4),char(125),char(30),char(136),char(138),char(1),char(207),char(80),char(69),char(191), -char(211),char(129),char(254),char(71),char(77),char(82),char(3),char(151),char(227),char(234), -char(253),char(193),char(5),char(182),char(211),char(253),char(238),char(145),char(162),char(145), -char(142),char(0),char(0),char(1),char(0),char(63),char(255),char(236),char(4),char(137), -char(5),char(203),char(0),char(38),char(0),char(113),char(64),char(63),char(29),char(23), -char(31),char(22),char(22),char(26),char(11),char(2),char(7),char(7),char(26),char(36), -char(17),char(4),char(10),char(26),char(23),char(6),char(39),char(40),char(11),char(23), -char(24),char(23),char(78),char(89),char(8),char(24),char(5),char(29),char(30),char(29), -char(78),char(89),char(2),char(30),char(15),char(30),char(31),char(30),char(47),char(30), -char(3),char(9),char(3),char(24),char(30),char(24),char(30),char(19),char(34),char(34), -char(0),char(76),char(89),char(34),char(7),char(19),char(14),char(76),char(89),char(19), -char(25),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(57),char(24),char(47),char(47),char(95),char(94),char(93),char(17), -char(51),char(43),char(17),char(0),char(51),char(17),char(51),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(32),char(3),char(33),char(21),char(33),char(7),char(21),char(23),char(33),char(21), -char(33),char(22),char(22),char(51),char(50),char(55),char(21),char(6),char(35),char(34), -char(0),char(3),char(35),char(53),char(51),char(39),char(53),char(55),char(35),char(53), -char(51),char(18),char(0),char(51),char(50),char(23),char(7),char(38),char(3),char(27), -char(254),char(193),char(79),char(1),char(254),char(253),char(244),char(2),char(2),char(1), -char(207),char(254),char(65),char(37),char(203),char(170),char(156),char(153),char(146),char(171), -char(237),char(254),char(223),char(46),char(166),char(152),char(2),char(2),char(152),char(164), -char(39),char(1),char(36),char(237),char(201),char(165),char(71),char(166),char(5),char(53), -char(254),char(109),char(129),char(57),char(64),char(45),char(129),char(180),char(197),char(66), -char(150),char(65),char(1),char(13),char(1),char(1),char(129),char(42),char(44),char(80), -char(129),char(1),char(5),char(1),char(36),char(97),char(139),char(86),char(0),char(4), -char(0),char(141),char(255),char(248),char(6),char(10),char(5),char(193),char(0),char(3), -char(0),char(15),char(0),char(23),char(0),char(43),char(0),char(69),char(64),char(36), -char(37),char(27),char(32),char(42),char(16),char(10),char(20),char(4),char(4),char(0), -char(10),char(42),char(2),char(27),char(6),char(44),char(45),char(35),char(30),char(6), -char(18),char(7),char(24),char(22),char(13),char(39),char(24),char(13),char(24),char(13), -char(24),char(2),char(3),char(6),char(2),char(24),char(0),char(63),char(63),char(18), -char(57),char(57),char(47),char(47),char(17),char(51),char(17),char(51),char(63),char(51), -char(63),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(1),char(35), -char(1),char(1),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54), -char(51),char(50),char(22),char(5),char(20),char(51),char(50),char(53),char(52),char(35), -char(34),char(37),char(34),char(38),char(53),char(52),char(54),char(51),char(50),char(23), -char(7),char(38),char(35),char(34),char(21),char(20),char(51),char(50),char(55),char(21), -char(6),char(5),char(31),char(252),char(213),char(148),char(3),char(43),char(1),char(127), -char(169),char(148),char(139),char(170),char(167),char(148),char(141),char(170),char(254),char(21), -char(178),char(176),char(176),char(178),char(253),char(202),char(166),char(182),char(188),char(171), -char(104),char(88),char(33),char(81),char(80),char(224),char(220),char(98),char(90),char(78), -char(5),char(182),char(250),char(74),char(5),char(182),char(251),char(152),char(159),char(183), -char(185),char(157),char(158),char(184),char(186),char(156),char(238),char(238),char(235),char(219), -char(177),char(161),char(168),char(179),char(35),char(103),char(31),char(238),char(235),char(33), -char(101),char(37),char(0),char(2),char(0),char(119),char(255),char(236),char(3),char(156), -char(5),char(203),char(0),char(28),char(0),char(36),char(0),char(61),char(64),char(31), -char(35),char(26),char(26),char(15),char(9),char(29),char(22),char(3),char(22),char(9), -char(12),char(4),char(37),char(38),char(35),char(15),char(13),char(25),char(10),char(5), -char(12),char(19),char(2),char(12),char(2),char(12),char(6),char(31),char(19),char(0), -char(6),char(0),char(47),char(51),char(47),char(51),char(18),char(57),char(57),char(47), -char(47),char(17),char(18),char(23),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(37), -char(50),char(55),char(51),char(6),char(6),char(35),char(34),char(38),char(53),char(53), -char(6),char(7),char(53),char(54),char(55),char(17),char(52),char(54),char(51),char(50), -char(22),char(21),char(20),char(2),char(7),char(17),char(20),char(22),char(19),char(52), -char(35),char(34),char(6),char(21),char(17),char(36),char(2),char(125),char(174),char(18), -char(95),char(8),char(153),char(142),char(150),char(160),char(96),char(96),char(78),char(114), -char(150),char(135),char(117),char(135),char(206),char(175),char(82),char(174),char(127),char(67), -char(62),char(1),char(0),char(111),char(213),char(166),char(178),char(181),char(169),char(243), -char(35),char(22),char(113),char(21),char(38),char(1),char(242),char(138),char(159),char(161), -char(138),char(185),char(254),char(208),char(74),char(254),char(229),char(104),char(123),char(4), -char(43),char(194),char(86),char(108),char(254),char(75),char(137),char(0),char(0),char(4), -char(0),char(201),char(0),char(0),char(7),char(195),char(5),char(182),char(0),char(15), -char(0),char(27),char(0),char(39),char(0),char(43),char(0),char(95),char(64),char(49), -char(9),char(6),char(6),char(7),char(1),char(13),char(13),char(0),char(28),char(22), -char(34),char(16),char(16),char(43),char(40),char(22),char(0),char(7),char(6),char(44), -char(45),char(31),char(19),char(37),char(25),char(11),char(40),char(19),char(3),char(25), -char(8),char(19),char(25),char(19),char(25),char(40),char(8),char(40),char(41),char(74), -char(89),char(40),char(18),char(14),char(8),char(3),char(1),char(7),char(18),char(0), -char(63),char(51),char(63),char(51),char(63),char(43),char(17),char(18),char(0),char(57), -char(57),char(24),char(47),char(47),char(17),char(18),char(57),char(17),char(18),char(57), -char(17),char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(33),char(35),char(1),char(35),char(18),char(21),char(17), -char(35),char(17),char(51),char(1),char(51),char(38),char(53),char(17),char(51),char(1), -char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50), -char(22),char(5),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38), -char(35),char(34),char(6),char(3),char(53),char(33),char(21),char(4),char(199),char(187), -char(253),char(76),char(8),char(16),char(151),char(194),char(2),char(170),char(8),char(14), -char(152),char(2),char(252),char(161),char(147),char(139),char(162),char(161),char(147),char(139), -char(162),char(254),char(34),char(81),char(93),char(91),char(79),char(79),char(91),char(92), -char(82),char(86),char(2),char(0),char(4),char(203),char(254),char(224),char(108),char(252), -char(193),char(5),char(182),char(251),char(58),char(245),char(138),char(3),char(71),char(252), -char(183),char(163),char(184),char(187),char(160),char(163),char(181),char(187),char(157),char(114), -char(118),char(117),char(115),char(115),char(112),char(112),char(253),char(32),char(135),char(135), -char(0),char(2),char(0),char(37),char(2),char(229),char(5),char(133),char(5),char(182), -char(0),char(7),char(0),char(24),char(0),char(79),char(64),char(39),char(0),char(1), -char(15),char(12),char(12),char(13),char(17),char(20),char(20),char(19),char(19),char(13), -char(6),char(1),char(3),char(5),char(25),char(26),char(23),char(22),char(9),char(10), -char(10),char(17),char(14),char(14),char(4),char(7),char(3),char(3),char(4),char(16), -char(8),char(8),char(20),char(13),char(1),char(4),char(3),char(0),char(63),char(196), -char(50),char(50),char(57),char(47),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(51),char(17),char(51),char(51),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(35),char(17),char(35),char(53), -char(33),char(21),char(35),char(1),char(3),char(35),char(23),char(17),char(35),char(17), -char(51),char(19),char(19),char(51),char(17),char(35),char(17),char(55),char(35),char(3), -char(1),char(113),char(123),char(209),char(2),char(31),char(211),char(2),char(88),char(201), -char(8),char(6),char(119),char(187),char(196),char(203),char(180),char(127),char(6),char(8), -char(211),char(2),char(229),char(2),char(103),char(106),char(106),char(253),char(153),char(2), -char(47),char(129),char(254),char(82),char(2),char(209),char(253),char(209),char(2),char(47), -char(253),char(47),char(1),char(164),char(137),char(253),char(211),char(0),char(255),char(255), -char(0),char(80),char(0),char(0),char(5),char(244),char(5),char(205),char(2),char(6), -char(1),char(118),char(0),char(0),char(0),char(2),char(0),char(102),char(255),char(221), -char(4),char(139),char(4),char(72),char(0),char(23),char(0),char(31),char(0),char(52), -char(64),char(26),char(31),char(14),char(14),char(4),char(24),char(12),char(12),char(21), -char(4),char(3),char(32),char(33),char(13),char(20),char(47),char(31),char(63),char(31), -char(2),char(31),char(31),char(17),char(28),char(8),char(17),char(0),char(0),char(47), -char(50),char(47),char(51),char(18),char(57),char(47),char(93),char(57),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(5),char(34),char(38),char(2),char(53),char(52),char(54),char(54), -char(51),char(50),char(22),char(18),char(21),char(33),char(17),char(22),char(22),char(51), -char(50),char(54),char(55),char(23),char(6),char(6),char(19),char(17),char(38),char(38), -char(35),char(34),char(7),char(17),char(2),char(121),char(157),char(241),char(133),char(138), -char(244),char(149),char(152),char(243),char(135),char(252),char(197),char(49),char(166),char(82), -char(131),char(183),char(81),char(72),char(98),char(217),char(147),char(50),char(163),char(88), -char(173),char(122),char(35),char(147),char(1),char(5),char(157),char(171),char(255),char(140), -char(142),char(254),char(253),char(165),char(254),char(156),char(53),char(70),char(105),char(129), -char(41),char(155),char(124),char(2),char(139),char(1),char(21),char(53),char(66),char(117), -char(254),char(233),char(255),char(255),char(0),char(71),char(255),char(236),char(5),char(243), -char(5),char(182),char(0),char(39),char(2),char(23),char(2),char(92),char(0),char(0), -char(0),char(38),char(0),char(123),char(251),char(0),char(1),char(7),char(2),char(64), -char(3),char(96),char(253),char(179),char(0),char(11),char(180),char(4),char(3),char(2), -char(25),char(25),char(0),char(63),char(53),char(53),char(53),char(0),char(255),char(255), -char(0),char(32),char(255),char(236),char(6),char(8),char(5),char(201),char(0),char(39), -char(2),char(23),char(2),char(162),char(0),char(0),char(0),char(39),char(2),char(64), -char(3),char(117),char(253),char(179),char(1),char(6),char(0),char(117),char(255),char(0), -char(0),char(11),char(180),char(1),char(3),char(2),char(14),char(25),char(0),char(63), -char(53),char(53),char(53),char(0),char(255),char(255),char(0),char(71),char(255),char(236), -char(6),char(4),char(5),char(182),char(0),char(39),char(2),char(23),char(2),char(156), -char(0),char(0),char(0),char(38),char(2),char(61),char(12),char(0),char(1),char(7), -char(2),char(64),char(3),char(113),char(253),char(179),char(0),char(11),char(180),char(4), -char(3),char(2),char(44),char(25),char(0),char(63),char(53),char(53),char(53),char(0), -char(255),char(255),char(0),char(106),char(255),char(236),char(6),char(0),char(5),char(182), -char(0),char(39),char(2),char(23),char(2),char(70),char(0),char(0),char(0),char(39), -char(2),char(64),char(3),char(109),char(253),char(179),char(1),char(6),char(2),char(63), -char(49),char(0),char(0),char(11),char(180),char(1),char(3),char(2),char(14),char(25), -char(0),char(63),char(53),char(53),char(53),char(0),char(0),char(2),char(0),char(102), -char(255),char(236),char(4),char(53),char(5),char(199),char(0),char(26),char(0),char(40), -char(0),char(65),char(64),char(34),char(38),char(7),char(31),char(15),char(15),char(0), -char(0),char(20),char(7),char(3),char(41),char(42),char(11),char(34),char(71),char(89), -char(14),char(4),char(11),char(11),char(24),char(4),char(24),char(17),char(70),char(89), -char(24),char(3),char(4),char(27),char(70),char(89),char(4),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(18),char(57),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(2), -char(4),char(35),char(34),char(38),char(53),char(52),char(18),char(54),char(51),char(50), -char(22),char(23),char(55),char(16),char(33),char(34),char(6),char(7),char(53),char(54), -char(54),char(51),char(50),char(18),char(1),char(50),char(54),char(18),char(55),char(38), -char(38),char(35),char(34),char(6),char(6),char(21),char(20),char(22),char(4),char(53), -char(167),char(254),char(236),char(173),char(172),char(187),char(136),char(232),char(151),char(97), -char(146),char(43),char(4),char(254),char(230),char(62),char(144),char(48),char(47),char(155), -char(74),char(210),char(216),char(253),char(162),char(95),char(166),char(120),char(22),char(25), -char(128),char(80),char(101),char(165),char(101),char(101),char(3),char(166),char(254),char(250), -char(254),char(53),char(233),char(201),char(192),char(169),char(1),char(51),char(161),char(93), -char(75),char(90),char(1),char(149),char(44),char(33),char(159),char(23),char(37),char(254), -char(236),char(251),char(198),char(144),char(1),char(3),char(150),char(97),char(108),char(132), -char(250),char(128),char(118),char(130),char(0),char(2),char(0),char(39),char(0),char(0), -char(4),char(109),char(5),char(182),char(0),char(5),char(0),char(12),char(0),char(40), -char(64),char(19),char(9),char(5),char(10),char(4),char(5),char(4),char(14),char(13), -char(6),char(5),char(1),char(5),char(9),char(73),char(89),char(5),char(18),char(1), -char(3),char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(55),char(1),char(51),char(1),char(21),char(33),char(1),char(6),char(7),char(1), -char(33),char(1),char(38),char(39),char(1),char(207),char(166),char(1),char(209),char(251), -char(186),char(2),char(33),char(61),char(40),char(254),char(252),char(2),char(209),char(254), -char(254),char(68),char(104),char(5),char(78),char(250),char(176),char(102),char(4),char(244), -char(225),char(121),char(252),char(254),char(2),char(249),char(202),char(0),char(0),char(1), -char(0),char(201),char(254),char(16),char(5),char(33),char(5),char(182),char(0),char(7), -char(0),char(35),char(64),char(17),char(0),char(7),char(3),char(4),char(7),char(4), -char(9),char(8),char(5),char(2),char(73),char(89),char(5),char(3),char(0),char(4), -char(27),char(0),char(63),char(51),char(63),char(43),char(17),char(18),char(1),char(57), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(33), -char(17),char(35),char(17),char(33),char(17),char(4),char(119),char(252),char(252),char(170), -char(4),char(88),char(254),char(16),char(7),char(13),char(248),char(243),char(7),char(166), -char(248),char(90),char(0),char(1),char(0),char(76),char(254),char(16),char(4),char(221), -char(5),char(182),char(0),char(11),char(0),char(49),char(64),char(26),char(7),char(9), -char(9),char(3),char(0),char(8),char(2),char(10),char(6),char(2),char(0),char(4), -char(12),char(13),char(4),char(7),char(73),char(89),char(4),char(3),char(0),char(9), -char(73),char(89),char(0),char(27),char(0),char(63),char(43),char(0),char(24),char(63), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(19),char(53),char(1),char(1),char(53), -char(33),char(21),char(33),char(1),char(1),char(33),char(21),char(76),char(2),char(119), -char(253),char(153),char(4),char(64),char(252),char(176),char(2),char(67),char(253),char(164), -char(3),char(170),char(254),char(16),char(107),char(3),char(156),char(3),char(51),char(108), -char(151),char(252),char(252),char(252),char(141),char(152),char(0),char(1),char(0),char(104), -char(2),char(141),char(4),char(41),char(3),char(23),char(0),char(3),char(0),char(21), -char(64),char(9),char(2),char(0),char(5),char(4),char(1),char(0),char(80),char(89), -char(1),char(0),char(47),char(43),char(17),char(18),char(1),char(57),char(57),char(49), -char(48),char(19),char(53),char(33),char(21),char(104),char(3),char(193),char(2),char(141), -char(138),char(138),char(0),char(1),char(0),char(37),char(255),char(242),char(4),char(188), -char(6),char(152),char(0),char(8),char(0),char(28),char(64),char(11),char(8),char(10), -char(3),char(9),char(3),char(6),char(4),char(4),char(1),char(8),char(1),char(0), -char(47),char(47),char(18),char(57),char(47),char(57),char(51),char(17),char(1),char(51), -char(17),char(51),char(49),char(48),char(5),char(35),char(1),char(35),char(53),char(33), -char(19),char(1),char(51),char(2),char(111),char(127),char(254),char(233),char(180),char(1), -char(33),char(235),char(2),char(2),char(137),char(14),char(3),char(14),char(135),char(253), -char(84),char(5),char(189),char(0),char(0),char(3),char(0),char(119),char(1),char(147), -char(5),char(45),char(4),char(12),char(0),char(21),char(0),char(33),char(0),char(45), -char(0),char(51),char(64),char(24),char(31),char(12),char(43),char(0),char(0),char(37), -char(25),char(12),char(4),char(46),char(47),char(34),char(28),char(28),char(17),char(6), -char(9),char(19),char(15),char(40),char(22),char(22),char(3),char(9),char(0),char(47), -char(51),char(51),char(17),char(51),char(47),char(51),char(18),char(57),char(57),char(51), -char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(20),char(6),char(35),char(34),char(38),char(39), -char(6),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50), -char(23),char(54),char(51),char(50),char(22),char(1),char(50),char(54),char(55),char(38), -char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(1),char(34),char(6), -char(7),char(22),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(5), -char(45),char(167),char(128),char(93),char(153),char(65),char(60),char(153),char(88),char(131), -char(168),char(168),char(131),char(181),char(122),char(124),char(185),char(133),char(162),char(252), -char(125),char(66),char(109),char(54),char(50),char(109),char(72),char(76),char(100),char(97), -char(2),char(161),char(66),char(109),char(55),char(51),char(110),char(71),char(76),char(100), -char(101),char(2),char(207),char(131),char(185),char(106),char(116),char(104),char(113),char(173), -char(142),char(134),char(179),char(219),char(215),char(175),char(254),char(187),char(91),char(100), -char(97),char(93),char(105),char(87),char(83),char(106),char(1),char(121),char(92),char(98), -char(97),char(94),char(107),char(84),char(85),char(105),char(0),char(1),char(0),char(12), -char(254),char(20),char(2),char(248),char(6),char(20),char(0),char(20),char(0),char(28), -char(64),char(12),char(8),char(18),char(2),char(18),char(13),char(3),char(21),char(22), -char(16),char(11),char(5),char(0),char(0),char(47),char(50),char(47),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(50), -char(23),char(21),char(38),char(35),char(34),char(21),char(17),char(20),char(6),char(35), -char(34),char(39),char(53),char(22),char(51),char(50),char(53),char(17),char(16),char(2), -char(125),char(79),char(44),char(49),char(62),char(176),char(165),char(163),char(74),char(59), -char(61),char(58),char(182),char(6),char(20),char(16),char(137),char(22),char(243),char(250), -char(225),char(176),char(187),char(19),char(135),char(22),char(243),char(5),char(31),char(1), -char(106),char(0),char(0),char(2),char(0),char(98),char(1),char(135),char(4),char(45), -char(4),char(31),char(0),char(23),char(0),char(47),char(0),char(112),char(64),char(64), -char(40),char(15),char(27),char(3),char(15),char(3),char(49),char(48),char(39),char(30), -char(30),char(24),char(80),char(89),char(15),char(30),char(31),char(30),char(47),char(30), -char(3),char(9),char(3),char(30),char(42),char(64),char(42),char(36),char(80),char(89), -char(27),char(42),char(64),char(15),char(6),char(6),char(0),char(80),char(89),char(15), -char(6),char(31),char(6),char(47),char(6),char(3),char(9),char(3),char(6),char(18), -char(64),char(18),char(12),char(80),char(89),char(3),char(0),char(18),char(16),char(18), -char(32),char(18),char(3),char(18),char(0),char(47),char(93),char(196),char(43),char(0), -char(26),char(24),char(16),char(205),char(95),char(94),char(93),char(43),char(0),char(16), -char(24),char(196),char(26),char(222),char(196),char(43),char(0),char(26),char(24),char(16), -char(205),char(95),char(94),char(93),char(43),char(0),char(16),char(24),char(196),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(34),char(6),char(7),char(53),char(54),char(51),char(50),char(22),char(23), -char(22),char(22),char(51),char(50),char(54),char(55),char(21),char(6),char(35),char(34), -char(38),char(39),char(38),char(38),char(3),char(34),char(6),char(7),char(53),char(54), -char(51),char(50),char(22),char(23),char(22),char(22),char(51),char(50),char(54),char(55), -char(21),char(6),char(35),char(34),char(38),char(39),char(38),char(38),char(1),char(80), -char(54),char(127),char(57),char(108),char(148),char(67),char(112),char(88),char(77),char(91), -char(45),char(53),char(128),char(54),char(101),char(153),char(67),char(111),char(88),char(73), -char(91),char(49),char(57),char(128),char(53),char(106),char(150),char(69),char(116),char(82), -char(69),char(95),char(49),char(55),char(129),char(51),char(100),char(154),char(69),char(118), -char(79),char(84),char(85),char(2),char(0),char(64),char(57),char(150),char(110),char(28), -char(37),char(33),char(25),char(66),char(57),char(151),char(109),char(29),char(37),char(30), -char(25),char(1),char(150),char(68),char(53),char(149),char(109),char(32),char(34),char(29), -char(26),char(66),char(55),char(150),char(110),char(32),char(33),char(34),char(24),char(0), -char(0),char(1),char(0),char(104),char(0),char(166),char(4),char(41),char(5),char(2), -char(0),char(19),char(0),char(70),char(64),char(38),char(5),char(1),char(16),char(11), -char(11),char(9),char(10),char(14),char(4),char(0),char(19),char(1),char(8),char(20), -char(21),char(13),char(5),char(6),char(5),char(80),char(89),char(10),char(8),char(15), -char(6),char(1),char(9),char(3),char(6),char(14),char(2),char(1),char(2),char(80), -char(89),char(18),char(17),char(1),char(0),char(47),char(51),char(196),char(43),char(17), -char(0),char(51),char(24),char(47),char(95),char(94),char(93),char(198),char(51),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(33),char(53),char(33),char(19),char(33), -char(53),char(33),char(19),char(23),char(7),char(33),char(21),char(33),char(3),char(33), -char(21),char(33),char(3),char(39),char(1),char(125),char(254),char(235),char(1),char(84), -char(127),char(254),char(45),char(2),char(19),char(135),char(125),char(109),char(1),char(23), -char(254),char(170),char(129),char(1),char(215),char(253),char(233),char(131),char(125),char(1), -char(193),char(137),char(1),char(16),char(137),char(1),char(31),char(57),char(230),char(137), -char(254),char(240),char(137),char(254),char(229),char(55),char(255),char(255),char(0),char(104), -char(0),char(1),char(4),char(41),char(4),char(217),char(2),char(38),char(0),char(31), -char(0),char(0),char(1),char(7),char(2),char(43),char(0),char(0),char(253),char(116), -char(0),char(9),char(179),char(1),char(0),char(7),char(18),char(0),char(63),char(53), -char(53),char(0),char(255),char(255),char(0),char(104),char(0),char(1),char(4),char(41), -char(4),char(217),char(2),char(38),char(0),char(33),char(0),char(0),char(1),char(7), -char(2),char(43),char(0),char(0),char(253),char(116),char(0),char(9),char(179),char(1), -char(0),char(7),char(18),char(0),char(63),char(53),char(53),char(0),char(0),char(2), -char(0),char(111),char(0),char(0),char(4),char(61),char(5),char(195),char(0),char(5), -char(0),char(9),char(0),char(32),char(64),char(13),char(8),char(0),char(6),char(3), -char(0),char(3),char(10),char(11),char(9),char(7),char(2),char(5),char(2),char(0), -char(47),char(47),char(18),char(57),char(57),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(1),char(51),char(1), -char(1),char(35),char(9),char(3),char(111),char(1),char(194),char(72),char(1),char(196), -char(254),char(60),char(72),char(1),char(98),char(254),char(195),char(254),char(195),char(1), -char(61),char(2),char(223),char(2),char(228),char(253),char(28),char(253),char(33),char(2), -char(225),char(2),char(19),char(253),char(237),char(253),char(236),char(0),char(255),char(255), -char(0),char(29),char(0),char(0),char(4),char(28),char(6),char(31),char(0),char(38), -char(0),char(73),char(0),char(0),char(0),char(7),char(0),char(76),char(2),char(182), -char(0),char(0),char(255),char(255),char(0),char(29),char(0),char(0),char(4),char(12), -char(6),char(31),char(0),char(38),char(0),char(73),char(0),char(0),char(0),char(7), -char(0),char(79),char(2),char(182),char(0),char(0),char(0),char(1),char(0),char(219), -char(4),char(217),char(3),char(190),char(6),char(12),char(0),char(13),char(0),char(24), -char(64),char(9),char(11),char(3),char(15),char(14),char(10),char(4),char(128),char(7), -char(0),char(0),char(47),char(50),char(26),char(204),char(50),char(17),char(18),char(1), -char(57),char(57),char(49),char(48),char(1),char(34),char(38),char(39),char(51),char(22), -char(22),char(51),char(50),char(54),char(55),char(51),char(6),char(6),char(2),char(72), -char(185),char(170),char(10),char(156),char(9),char(91),char(113),char(103),char(99),char(11), -char(157),char(12),char(178),char(4),char(217),char(143),char(164),char(104),char(82),char(88), -char(98),char(158),char(149),char(0),char(0),char(1),char(255),char(145),char(254),char(20), -char(1),char(86),char(4),char(72),char(0),char(12),char(0),char(29),char(64),char(13), -char(11),char(8),char(8),char(14),char(13),char(9),char(15),char(0),char(5),char(70), -char(89),char(0),char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(17), -char(18),char(1),char(57),char(17),char(51),char(49),char(48),char(19),char(34),char(39), -char(53),char(22),char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(16), -char(43),char(95),char(59),char(69),char(67),char(78),char(73),char(166),char(254),char(20), -char(25),char(135),char(20),char(85),char(87),char(4),char(252),char(251),char(16),char(254), -char(188),char(0),char(0),char(1),char(1),char(137),char(4),char(205),char(2),char(117), -char(6),char(20),char(0),char(9),char(0),char(19),char(182),char(9),char(4),char(10), -char(11),char(4),char(128),char(9),char(0),char(47),char(26),char(205),char(17),char(18), -char(1),char(57),char(57),char(49),char(48),char(1),char(54),char(54),char(55),char(51), -char(21),char(6),char(6),char(7),char(35),char(1),char(137),char(19),char(39),char(10), -char(168),char(11),char(88),char(47),char(90),char(4),char(229),char(55),char(167),char(81), -char(18),char(51),char(188),char(70),char(0),char(1),char(1),char(113),char(254),char(59), -char(2),char(111),char(255),char(131),char(0),char(9),char(0),char(19),char(182),char(9), -char(4),char(10),char(11),char(9),char(128),char(4),char(0),char(47),char(26),char(205), -char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1),char(54),char(54), -char(55),char(51),char(21),char(6),char(6),char(7),char(35),char(1),char(113),char(28), -char(51),char(7),char(168),char(11),char(98),char(55),char(90),char(254),char(84),char(64), -char(186),char(53),char(18),char(51),char(193),char(66),char(0),char(1),char(1),char(129), -char(4),char(217),char(2),char(127),char(6),char(33),char(0),char(9),char(0),char(19), -char(182),char(9),char(4),char(10),char(11),char(9),char(128),char(4),char(0),char(47), -char(26),char(205),char(17),char(18),char(1),char(57),char(57),char(49),char(48),char(1), -char(6),char(6),char(7),char(35),char(53),char(54),char(54),char(55),char(51),char(2), -char(127),char(29),char(53),char(6),char(166),char(14),char(99),char(49),char(92),char(6), -char(8),char(61),char(193),char(49),char(19),char(61),char(191),char(57),char(0),char(2), -char(0),char(39),char(2),char(57),char(2),char(158),char(5),char(199),char(0),char(11), -char(0),char(21),char(0),char(32),char(64),char(14),char(6),char(12),char(0),char(17), -char(12),char(17),char(23),char(22),char(9),char(19),char(31),char(3),char(14),char(33), -char(0),char(63),char(51),char(63),char(51),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(20),char(22),char(51), -char(50),char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(5),char(16), -char(33),char(34),char(38),char(53),char(16),char(33),char(50),char(22),char(176),char(82), -char(94),char(94),char(86),char(86),char(94),char(94),char(82),char(1),char(238),char(254), -char(196),char(158),char(157),char(1),char(59),char(158),char(158),char(4),char(0),char(168), -char(166),char(165),char(171),char(170),char(164),char(165),char(169),char(254),char(55),char(236), -char(221),char(1),char(197),char(232),char(0),char(2),char(0),char(20),char(2),char(74), -char(2),char(180),char(5),char(188),char(0),char(10),char(0),char(20),char(0),char(60), -char(64),char(31),char(20),char(5),char(11),char(7),char(3),char(3),char(9),char(2), -char(0),char(2),char(5),char(3),char(21),char(22),char(1),char(5),char(5),char(9), -char(15),char(20),char(31),char(20),char(2),char(20),char(20),char(3),char(14),char(7), -char(31),char(3),char(32),char(0),char(63),char(63),char(51),char(18),char(57),char(47), -char(93),char(51),char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(51),char(17),char(51),char(51),char(17),char(51),char(49),char(48), -char(1),char(35),char(21),char(35),char(53),char(33),char(53),char(1),char(51),char(17), -char(51),char(33),char(53),char(52),char(55),char(14),char(3),char(7),char(7),char(2), -char(180),char(125),char(145),char(254),char(110),char(1),char(152),char(139),char(125),char(254), -char(242),char(6),char(5),char(24),char(30),char(30),char(11),char(168),char(3),char(20), -char(202),char(202),char(101),char(2),char(67),char(253),char(205),char(195),char(134),char(75), -char(12),char(39),char(45),char(45),char(17),char(246),char(0),char(1),char(0),char(59), -char(2),char(55),char(2),char(137),char(5),char(170),char(0),char(29),char(0),char(43), -char(64),char(21),char(16),char(3),char(28),char(23),char(9),char(23),char(26),char(3), -char(4),char(31),char(30),char(19),char(0),char(0),char(6),char(27),char(24),char(30), -char(13),char(6),char(33),char(0),char(63),char(51),char(63),char(51),char(18),char(57), -char(47),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(50),char(22),char(21),char(20),char(6),char(35), -char(34),char(38),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(6),char(7),char(39),char(19),char(33),char(21), -char(33),char(7),char(54),char(1),char(72),char(145),char(176),char(170),char(166),char(74), -char(139),char(41),char(56),char(140),char(54),char(95),char(110),char(109),char(102),char(57), -char(76),char(31),char(59),char(33),char(1),char(239),char(254),char(131),char(20),char(62), -char(4),char(104),char(143),char(123),char(140),char(155),char(31),char(23),char(131),char(34), -char(38),char(83),char(89),char(78),char(88),char(17),char(8),char(41),char(1),char(160), -char(104),char(230),char(12),char(0),char(0),char(2),char(0),char(41),char(2),char(57), -char(2),char(162),char(5),char(199),char(0),char(23),char(0),char(35),char(0),char(54), -char(64),char(28),char(27),char(18),char(33),char(11),char(0),char(0),char(6),char(18), -char(3),char(37),char(36),char(30),char(11),char(21),char(0),char(15),char(16),char(15), -char(2),char(15),char(15),char(3),char(24),char(21),char(33),char(8),char(3),char(31), -char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(47),char(93),char(18), -char(57),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51), -char(17),char(51),char(49),char(48),char(19),char(16),char(54),char(51),char(50),char(23), -char(21),char(38),char(35),char(34),char(6),char(7),char(51),char(54),char(54),char(51), -char(50),char(22),char(21),char(20),char(6),char(35),char(34),char(38),char(5),char(50), -char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(21),char(20),char(22), -char(41),char(219),char(219),char(74),char(49),char(52),char(83),char(141),char(150),char(10), -char(8),char(29),char(113),char(85),char(125),char(148),char(166),char(141),char(153),char(173), -char(1),char(68),char(81),char(99),char(88),char(86),char(85),char(112),char(106),char(3), -char(195),char(1),char(5),char(255),char(15),char(114),char(18),char(153),char(166),char(43), -char(59),char(148),char(126),char(144),char(164),char(210),char(99),char(93),char(99),char(79), -char(91),char(90),char(59),char(89),char(124),char(0),char(0),char(1),char(0),char(57), -char(2),char(74),char(2),char(143),char(5),char(182),char(0),char(6),char(0),char(28), -char(64),char(13),char(1),char(5),char(5),char(0),char(2),char(3),char(7),char(8), -char(2),char(3),char(30),char(0),char(32),char(0),char(63),char(63),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(19),char(1), -char(33),char(53),char(33),char(21),char(1),char(162),char(1),char(94),char(254),char(57), -char(2),char(86),char(254),char(160),char(2),char(74),char(2),char(248),char(116),char(94), -char(252),char(242),char(0),char(3),char(0),char(51),char(2),char(57),char(2),char(147), -char(5),char(199),char(0),char(21),char(0),char(34),char(0),char(45),char(0),char(63), -char(64),char(34),char(22),char(13),char(38),char(19),char(43),char(3),char(28),char(7), -char(7),char(3),char(5),char(16),char(19),char(13),char(6),char(46),char(47),char(5), -char(16),char(32),char(32),char(11),char(41),char(27),char(41),char(2),char(41),char(41), -char(25),char(10),char(33),char(35),char(0),char(31),char(0),char(63),char(50),char(63), -char(51),char(57),char(47),char(93),char(51),char(18),char(57),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(50),char(22),char(21),char(20),char(7),char(22), -char(21),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(55), -char(38),char(38),char(53),char(52),char(54),char(3),char(20),char(22),char(51),char(50), -char(54),char(53),char(52),char(38),char(39),char(39),char(6),char(6),char(19),char(34), -char(6),char(21),char(20),char(22),char(23),char(54),char(53),char(52),char(38),char(1), -char(100),char(124),char(151),char(148),char(176),char(165),char(138),char(146),char(159),char(73), -char(85),char(74),char(57),char(157),char(53),char(84),char(86),char(90),char(84),char(93), -char(81),char(28),char(72),char(70),char(172),char(68),char(75),char(68),char(81),char(140), -char(78),char(5),char(199),char(118),char(104),char(130),char(76),char(74),char(158),char(113), -char(137),char(128),char(116),char(69),char(116),char(46),char(46),char(93),char(68),char(102), -char(126),char(253),char(102),char(60),char(73),char(73),char(60),char(63),char(79),char(28), -char(10),char(34),char(84),char(1),char(239),char(60),char(57),char(47),char(71),char(33), -char(54),char(97),char(57),char(60),char(0),char(2),char(0),char(35),char(2),char(57), -char(2),char(156),char(5),char(201),char(0),char(22),char(0),char(34),char(0),char(60), -char(64),char(31),char(26),char(17),char(32),char(10),char(0),char(0),char(5),char(17), -char(3),char(35),char(36),char(29),char(14),char(10),char(11),char(11),char(20),char(15), -char(14),char(31),char(14),char(2),char(14),char(14),char(3),char(23),char(20),char(31), -char(8),char(3),char(33),char(0),char(63),char(51),char(63),char(51),char(18),char(57), -char(47),char(93),char(18),char(57),char(17),char(51),char(17),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48), -char(1),char(16),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(32), -char(19),char(35),char(6),char(6),char(35),char(34),char(38),char(53),char(52),char(54), -char(51),char(50),char(22),char(37),char(34),char(6),char(21),char(20),char(22),char(51), -char(50),char(54),char(53),char(52),char(38),char(2),char(156),char(218),char(212),char(83), -char(49),char(49),char(93),char(1),char(20),char(21),char(10),char(35),char(116),char(65), -char(131),char(153),char(169),char(136),char(152),char(176),char(254),char(184),char(81),char(95), -char(85),char(87),char(84),char(115),char(103),char(4),char(70),char(254),char(242),char(255), -char(15),char(116),char(20),char(1),char(70),char(51),char(52),char(146),char(131),char(136), -char(165),char(202),char(91),char(95),char(87),char(81),char(95),char(85),char(62),char(97), -char(114),char(0),char(0),char(22),char(0),char(84),char(254),char(129),char(7),char(193), -char(5),char(238),char(0),char(5),char(0),char(11),char(0),char(17),char(0),char(23), -char(0),char(27),char(0),char(31),char(0),char(35),char(0),char(39),char(0),char(43), -char(0),char(47),char(0),char(51),char(0),char(55),char(0),char(59),char(0),char(63), -char(0),char(67),char(0),char(71),char(0),char(83),char(0),char(91),char(0),char(107), -char(0),char(116),char(0),char(124),char(0),char(137),char(0),char(248),char(64),char(135), -char(65),char(64),char(61),char(60),char(49),char(48),char(15),char(5),char(0),char(12), -char(84),char(78),char(88),char(72),char(118),char(107),char(112),char(96),char(122),char(103), -char(133),char(134),char(69),char(68),char(41),char(40),char(37),char(36),char(20),char(10), -char(9),char(23),char(23),char(134),char(6),char(18),char(59),char(27),char(127),char(103), -char(96),char(56),char(24),char(55),char(47),char(107),char(52),char(44),char(72),char(35), -char(31),char(32),char(28),char(3),char(17),char(78),char(12),char(25),char(138),char(139), -char(10),char(0),char(42),char(66),char(90),char(81),char(134),char(92),char(116),char(92), -char(41),char(65),char(70),char(62),char(100),char(117),char(117),char(108),char(69),char(61), -char(130),char(125),char(86),char(75),char(107),char(118),char(107),char(38),char(50),char(37), -char(49),char(21),char(13),char(0),char(66),char(1),char(65),char(62),char(92),char(61), -char(108),char(13),char(49),char(50),char(3),char(107),char(12),char(92),char(108),char(107), -char(107),char(108),char(92),char(3),char(1),char(45),char(44),char(29),char(28),char(25), -char(24),char(19),char(18),char(15),char(12),char(57),char(56),char(53),char(52),char(33), -char(32),char(7),char(6),char(4),char(1),char(0),char(47),char(51),char(51),char(51), -char(51),char(51),char(51),char(51),char(51),char(51),char(47),char(51),char(51),char(51), -char(51),char(51),char(51),char(51),char(51),char(51),char(18),char(23),char(57),char(47), -char(47),char(47),char(17),char(18),char(23),char(57),char(17),char(57),char(18),char(57), -char(57),char(17),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(16),char(196),char(50),char(196),char(50),char(17),char(51),char(17), -char(51),char(18),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(16), -char(196),char(196),char(50),char(17),char(51),char(17),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(51),char(51),char(51),char(51),char(51),char(51), -char(51),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(51),char(51),char(51), -char(51),char(51),char(51),char(51),char(49),char(48),char(19),char(17),char(33),char(21), -char(35),char(21),char(37),char(53),char(33),char(17),char(35),char(53),char(1),char(17), -char(51),char(21),char(51),char(21),char(33),char(53),char(51),char(53),char(51),char(17), -char(33),char(53),char(33),char(21),char(33),char(53),char(33),char(21),char(1),char(53), -char(33),char(21),char(1),char(35),char(17),char(51),char(17),char(35),char(17),char(51), -char(1),char(53),char(33),char(21),char(1),char(35),char(17),char(51),char(1),char(53), -char(33),char(21),char(51),char(53),char(33),char(21),char(1),char(35),char(17),char(51), -char(53),char(35),char(17),char(51),char(1),char(35),char(17),char(51),char(5),char(20), -char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51),char(50),char(22), -char(5),char(20),char(51),char(50),char(53),char(52),char(35),char(34),char(37),char(51), -char(50),char(22),char(21),char(20),char(6),char(7),char(21),char(22),char(22),char(21), -char(20),char(6),char(35),char(35),char(19),char(51),char(50),char(54),char(53),char(52), -char(38),char(35),char(35),char(21),char(21),char(51),char(50),char(54),char(53),char(52), -char(35),char(1),char(34),char(39),char(53),char(22),char(51),char(50),char(53),char(17), -char(51),char(17),char(20),char(6),char(84),char(1),char(47),char(192),char(5),char(206), -char(1),char(48),char(109),char(249),char(0),char(111),char(192),char(5),char(14),char(195), -char(109),char(253),char(73),char(1),char(17),char(251),char(225),char(1),char(14),char(254), -char(242),char(1),char(14),char(4),char(183),char(109),char(109),char(109),char(109),char(251), -char(194),char(1),char(16),char(252),char(48),char(111),char(111),char(2),char(192),char(1), -char(16),char(119),char(1),char(17),char(250),char(168),char(111),char(111),char(111),char(111), -char(6),char(254),char(109),char(109),char(251),char(159),char(135),char(127),char(127),char(135), -char(135),char(127),char(126),char(136),char(254),char(115),char(135),char(135),char(135),char(135), -char(1),char(225),char(172),char(109),char(112),char(46),char(44),char(61),char(46),char(109), -char(94),char(207),char(123),char(66),char(46),char(36),char(42),char(47),char(59),char(74), -char(49),char(37),char(90),char(1),char(94),char(52),char(28),char(43),char(25),char(86), -char(125),char(105),char(4),char(190),char(1),char(48),char(111),char(193),char(193),char(111), -char(254),char(208),char(193),char(249),char(2),char(1),char(47),char(194),char(109),char(109), -char(194),char(254),char(209),char(109),char(109),char(109),char(109),char(6),char(254),char(111), -char(111),char(250),char(168),char(1),char(14),char(2),char(2),char(1),char(15),char(250), -char(59),char(109),char(109),char(1),char(166),char(1),char(14),char(4),char(74),char(111), -char(111),char(111),char(111),char(252),char(47),char(1),char(16),char(121),char(1),char(15), -char(253),char(104),char(1),char(16),char(73),char(145),char(156),char(156),char(145),char(146), -char(155),char(154),char(147),char(197),char(197),char(196),char(97),char(67),char(83),char(49), -char(66),char(8),char(8),char(14),char(68),char(53),char(81),char(89),char(1),char(98), -char(34),char(32),char(34),char(29),char(227),char(154),char(43),char(37),char(74),char(254), -char(250),char(10),char(102),char(8),char(86),char(1),char(146),char(254),char(114),char(95), -char(99),char(0),char(0),char(3),char(0),char(84),char(254),char(193),char(7),char(170), -char(6),char(20),char(0),char(3),char(0),char(30),char(0),char(42),char(0),char(46), -char(64),char(25),char(1),char(11),char(23),char(37),char(4),char(30),char(31),char(17), -char(3),char(9),char(43),char(44),char(40),char(30),char(20),char(14),char(34),char(30), -char(14),char(14),char(30),char(34),char(3),char(2),char(0),char(0),char(47),char(47), -char(23),char(57),char(47),char(47),char(47),char(17),char(51),char(17),char(51),char(17), -char(18),char(1),char(23),char(57),char(49),char(48),char(9),char(3),char(5),char(53), -char(52),char(54),char(55),char(54),char(54),char(53),char(52),char(38),char(35),char(34), -char(6),char(7),char(23),char(54),char(51),char(50),char(22),char(21),char(20),char(6), -char(7),char(6),char(6),char(21),char(21),char(3),char(20),char(22),char(51),char(50), -char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(3),char(254),char(3), -char(172),char(252),char(84),char(252),char(86),char(3),char(235),char(44),char(65),char(103), -char(73),char(187),char(165),char(79),char(186),char(71),char(82),char(160),char(90),char(63), -char(62),char(49),char(72),char(84),char(59),char(27),char(71),char(70),char(66),char(73), -char(72),char(67),char(72),char(69),char(6),char(20),char(252),char(86),char(252),char(87), -char(3),char(169),char(251),char(47),char(50),char(65),char(49),char(82),char(126),char(88), -char(135),char(154),char(56),char(42),char(178),char(80),char(58),char(47),char(53),char(75), -char(54),char(68),char(112),char(74),char(59),char(254),char(237),char(63),char(72),char(73), -char(62),char(64),char(73),char(72),char(255),char(255),char(255),char(145),char(254),char(20), -char(2),char(87),char(6),char(33),char(2),char(38),char(2),char(55),char(0),char(0), -char(1),char(7),char(1),char(76),char(254),char(169),char(0),char(0),char(0),char(8), -char(179),char(1),char(24),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(25),char(3),char(193),char(1),char(68),char(5),char(182),char(2),char(6), -char(2),char(7),char(0),char(0),char(0),char(2),char(0),char(10),char(255),char(236), -char(4),char(223),char(6),char(43),char(0),char(45),char(0),char(54),char(0),char(102), -char(64),char(57),char(27),char(7),char(23),char(11),char(52),char(37),char(46),char(31), -char(31),char(43),char(2),char(45),char(2),char(37),char(11),char(7),char(18),char(6), -char(55),char(56),char(20),char(14),char(71),char(89),char(0),char(33),char(46),char(33), -char(71),char(89),char(43),char(46),char(15),char(46),char(31),char(46),char(2),char(9), -char(3),char(20),char(46),char(20),char(46),char(5),char(40),char(40),char(49),char(70), -char(89),char(40),char(1),char(5),char(29),char(70),char(89),char(5),char(22),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(57),char(24),char(47),char(47),char(95),char(94),char(93),char(17),char(51),char(43), -char(17),char(0),char(51),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(22),char(21),char(16),char(0),char(33),char(32),char(17), -char(52),char(55),char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(7), -char(39),char(54),char(51),char(50),char(22),char(21),char(20),char(7),char(6),char(21), -char(20),char(51),char(32),char(17),char(52),char(39),char(38),char(36),char(38),char(53), -char(52),char(54),char(51),char(50),char(0),char(19),char(51),char(21),char(37),char(38), -char(2),char(35),char(34),char(6),char(21),char(20),char(4),char(4),char(86),char(4), -char(254),char(224),char(254),char(253),char(254),char(119),char(16),char(15),char(36),char(32), -char(25),char(54),char(15),char(33),char(83),char(95),char(88),char(93),char(15),char(16), -char(233),char(1),char(119),char(4),char(223),char(254),char(201),char(160),char(182),char(168), -char(208),char(1),char(0),char(42),char(143),char(254),char(199),char(28),char(183),char(123), -char(93),char(97),char(1),char(19),char(3),char(78),char(46),char(65),char(254),char(159), -char(254),char(110),char(1),char(88),char(57),char(123),char(122),char(23),char(47),char(35), -char(15),char(9),char(118),char(39),char(93),char(93),char(35),char(131),char(132),char(58), -char(207),char(2),char(112),char(63),char(44),char(2),char(105),char(188),char(131),char(144), -char(163),char(254),char(205),char(254),char(215),char(129),char(129),char(211),char(1),char(0), -char(95),char(75),char(141),char(154),char(0),char(1),char(0),char(0),char(0),char(0), -char(4),char(123),char(5),char(195),char(0),char(21),char(0),char(40),char(64),char(20), -char(17),char(18),char(7),char(18),char(20),char(3),char(22),char(23),char(0),char(18), -char(20),char(3),char(18),char(18),char(5),char(10),char(74),char(89),char(5),char(4), -char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(18),char(57),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(18), -char(18),char(54),char(54),char(51),char(50),char(23),char(21),char(38),char(35),char(34), -char(14),char(3),char(7),char(17),char(35),char(17),char(1),char(51),char(2),char(57), -char(122),char(141),char(77),char(92),char(58),char(48),char(40),char(26),char(31),char(40), -char(59),char(86),char(124),char(101),char(31),char(172),char(254),char(35),char(186),char(2), -char(205),char(1),char(35),char(1),char(55),char(108),char(48),char(15),char(135),char(6), -char(56),char(161),char(252),char(236),char(85),char(253),char(227),char(2),char(47),char(3), -char(135),char(0),char(0),char(2),char(0),char(18),char(255),char(236),char(6),char(119), -char(4),char(72),char(0),char(20),char(0),char(41),char(0),char(76),char(64),char(39), -char(24),char(3),char(18),char(33),char(33),char(30),char(39),char(13),char(10),char(13), -char(30),char(3),char(6),char(5),char(42),char(43),char(19),char(31),char(31),char(0), -char(8),char(21),char(11),char(6),char(8),char(6),char(70),char(89),char(8),char(15), -char(36),char(27),char(0),char(27),char(70),char(89),char(16),char(0),char(22),char(0), -char(63),char(50),char(43),char(17),char(0),char(51),char(24),char(63),char(43),char(17), -char(0),char(51),char(51),char(17),char(18),char(57),char(24),char(47),char(57),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(18),char(57), -char(17),char(51),char(49),char(48),char(5),char(34),char(38),char(53),char(52),char(19), -char(33),char(53),char(55),char(33),char(21),char(35),char(22),char(21),char(20),char(6), -char(35),char(34),char(39),char(35),char(6),char(1),char(6),char(2),char(21),char(20), -char(22),char(51),char(50),char(54),char(53),char(53),char(51),char(21),char(20),char(22), -char(51),char(50),char(54),char(53),char(52),char(39),char(2),char(41),char(186),char(199), -char(135),char(254),char(227),char(142),char(5),char(215),char(250),char(117),char(200),char(185), -char(221),char(68),char(8),char(68),char(254),char(207),char(63),char(66),char(108),char(117), -char(93),char(108),char(162),char(107),char(93),char(117),char(109),char(111),char(20),char(231), -char(240),char(240),char(1),char(7),char(74),char(68),char(142),char(252),char(251),char(240), -char(231),char(182),char(182),char(3),char(206),char(132),char(254),char(254),char(103),char(174), -char(168),char(143),char(125),char(188),char(188),char(122),char(146),char(169),char(173),char(254), -char(239),char(0),char(255),char(255),char(0),char(201),char(0),char(0),char(6),char(113), -char(7),char(117),char(2),char(38),char(0),char(48),char(0),char(0),char(1),char(7), -char(0),char(118),char(1),char(156),char(1),char(84),char(0),char(8),char(179),char(1), -char(29),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(176), -char(0),char(0),char(6),char(203),char(6),char(33),char(2),char(38),char(0),char(80), -char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(205),char(0),char(0), -char(0),char(8),char(179),char(1),char(45),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(0),char(253),char(213),char(5),char(16),char(5),char(188), -char(2),char(38),char(0),char(36),char(0),char(0),char(0),char(7),char(2),char(91), -char(1),char(53),char(0),char(0),char(255),char(255),char(0),char(94),char(253),char(213), -char(3),char(205),char(4),char(90),char(2),char(38),char(0),char(68),char(0),char(0), -char(0),char(7),char(2),char(91),char(0),char(199),char(0),char(0),char(255),char(255), -char(254),char(223),char(255),char(236),char(5),char(210),char(5),char(205),char(0),char(38), -char(0),char(50),char(20),char(0),char(1),char(7),char(2),char(92),char(254),char(71), -char(0),char(0),char(0),char(9),char(179),char(3),char(2),char(26),char(3),char(0), -char(63),char(53),char(53),char(0),char(0),char(2),char(0),char(117),char(253),char(213), -char(2),char(53),char(255),char(131),char(0),char(11),char(0),char(23),char(0),char(30), -char(64),char(12),char(18),char(6),char(12),char(0),char(6),char(0),char(24),char(25), -char(21),char(3),char(15),char(9),char(0),char(47),char(51),char(204),char(50),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(20),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51), -char(50),char(22),char(7),char(52),char(38),char(35),char(34),char(6),char(21),char(20), -char(22),char(51),char(50),char(54),char(2),char(53),char(125),char(102),char(101),char(120), -char(120),char(101),char(101),char(126),char(110),char(66),char(51),char(51),char(66),char(60), -char(57),char(53),char(64),char(254),char(174),char(97),char(120),char(117),char(98),char(98), -char(117),char(118),char(97),char(57),char(60),char(60),char(57),char(56),char(61),char(61), -char(0),char(2),char(0),char(152),char(4),char(104),char(2),char(207),char(5),char(197), -char(0),char(8),char(0),char(23),char(0),char(30),char(64),char(14),char(14),char(9), -char(3),char(8),char(12),char(19),char(9),char(5),char(24),char(25),char(2),char(11), -char(8),char(21),char(0),char(47),char(196),char(220),char(198),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(54),char(55),char(51), -char(21),char(6),char(6),char(7),char(35),char(37),char(52),char(55),char(21),char(6), -char(21),char(20),char(30),char(2),char(21),char(20),char(35),char(34),char(38),char(1), -char(176),char(70),char(28),char(189),char(41),char(119),char(49),char(78),char(254),char(232), -char(237),char(121),char(31),char(37),char(31),char(93),char(55),char(67),char(4),char(135), -char(181),char(122),char(20),char(78),char(172),char(57),char(118),char(163),char(61),char(72), -char(41),char(53),char(20),char(19),char(16),char(26),char(28),char(74),char(68),char(0), -char(255),char(255),char(0),char(29),char(0),char(0),char(6),char(211),char(6),char(31), -char(0),char(39),char(0),char(73),char(2),char(176),char(0),char(0),char(0),char(38), -char(0),char(73),char(0),char(0),char(0),char(7),char(0),char(76),char(5),char(109), -char(0),char(0),char(255),char(255),char(0),char(29),char(0),char(0),char(6),char(195), -char(6),char(31),char(0),char(39),char(0),char(73),char(2),char(176),char(0),char(0), -char(0),char(38),char(0),char(73),char(0),char(0),char(0),char(7),char(0),char(79), -char(5),char(109),char(0),char(0),char(0),char(2),char(0),char(125),char(255),char(236), -char(6),char(100),char(6),char(20),char(0),char(21),char(0),char(33),char(0),char(60), -char(64),char(31),char(22),char(6),char(15),char(17),char(17),char(28),char(0),char(0), -char(20),char(11),char(6),char(4),char(34),char(35),char(20),char(11),char(3),char(9), -char(9),char(31),char(73),char(89),char(15),char(9),char(4),char(3),char(25),char(73), -char(89),char(3),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(198), -char(43),char(17),char(18),char(0),char(57),char(57),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(16),char(0),char(33),char(32),char(0),char(17),char(16),char(0),char(33), -char(32),char(23),char(62),char(2),char(53),char(51),char(23),char(6),char(6),char(7), -char(22),char(1),char(16),char(18),char(51),char(50),char(18),char(17),char(16),char(2), -char(35),char(34),char(2),char(5),char(188),char(254),char(157),char(254),char(198),char(254), -char(189),char(254),char(161),char(1),char(97),char(1),char(67),char(1),char(69),char(179), -char(50),char(58),char(27),char(182),char(14),char(29),char(131),char(104),char(96),char(251), -char(117),char(250),char(244),char(243),char(246),char(245),char(242),char(243),char(253),char(2), -char(221),char(254),char(158),char(254),char(113),char(1),char(137),char(1),char(106),char(1), -char(104),char(1),char(134),char(215),char(12),char(67),char(102),char(105),char(22),char(155), -char(173),char(39),char(176),char(254),char(254),char(254),char(214),char(254),char(206),char(1), -char(49),char(1),char(43),char(1),char(39),char(1),char(49),char(254),char(209),char(0), -char(0),char(2),char(0),char(115),char(255),char(236),char(5),char(25),char(4),char(240), -char(0),char(22),char(0),char(34),char(0),char(60),char(64),char(31),char(23),char(7), -char(16),char(18),char(18),char(29),char(0),char(0),char(21),char(12),char(7),char(4), -char(35),char(36),char(21),char(12),char(3),char(10),char(10),char(32),char(70),char(89), -char(16),char(10),char(16),char(3),char(26),char(70),char(89),char(3),char(22),char(0), -char(63),char(43),char(0),char(24),char(63),char(198),char(43),char(17),char(18),char(0), -char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(35), -char(34),char(38),char(2),char(53),char(16),char(0),char(51),char(50),char(23),char(62), -char(2),char(53),char(51),char(23),char(6),char(6),char(7),char(22),char(5),char(20), -char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(34),char(6), -char(4),char(98),char(254),char(242),char(238),char(147),char(228),char(124),char(1),char(12), -char(238),char(217),char(137),char(51),char(58),char(26),char(180),char(15),char(31),char(121), -char(102),char(71),char(252),char(189),char(158),char(173),char(175),char(157),char(159),char(175), -char(173),char(156),char(2),char(37),char(254),char(244),char(254),char(211),char(138),char(1), -char(2),char(173),char(1),char(12),char(1),char(43),char(141),char(15),char(65),char(99), -char(110),char(23),char(156),char(175),char(38),char(138),char(185),char(211),char(219),char(219), -char(211),char(210),char(216),char(216),char(0),char(1),char(0),char(186),char(255),char(236), -char(6),char(123),char(6),char(20),char(0),char(27),char(0),char(51),char(64),char(24), -char(5),char(7),char(7),char(1),char(11),char(20),char(17),char(11),char(17),char(29), -char(28),char(10),char(1),char(14),char(27),char(5),char(18),char(3),char(14),char(23), -char(73),char(89),char(14),char(19),char(0),char(63),char(43),char(0),char(24),char(63), -char(198),char(51),char(18),char(57),char(57),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1), -char(21),char(62),char(2),char(53),char(51),char(23),char(6),char(6),char(7),char(17), -char(16),char(0),char(33),char(32),char(0),char(53),char(17),char(51),char(17),char(20), -char(22),char(51),char(50),char(54),char(53),char(17),char(5),char(25),char(58),char(70), -char(31),char(181),char(14),char(33),char(172),char(149),char(254),char(225),char(254),char(248), -char(254),char(244),char(254),char(212),char(170),char(204),char(198),char(184),char(193),char(5), -char(182),char(198),char(8),char(62),char(112),char(110),char(22),char(182),char(184),char(25), -char(253),char(141),char(254),char(254),char(254),char(234),char(1),char(31),char(253),char(3), -char(174),char(252),char(70),char(183),char(196),char(193),char(188),char(3),char(184),char(0), -char(0),char(1),char(0),char(164),char(255),char(236),char(5),char(150),char(4),char(242), -char(0),char(29),char(0),char(68),char(64),char(34),char(1),char(28),char(13),char(15), -char(15),char(19),char(20),char(7),char(7),char(10),char(19),char(28),char(19),char(30), -char(31),char(21),char(22),char(10),char(18),char(22),char(3),char(20),char(13),char(8), -char(29),char(15),char(25),char(4),char(70),char(89),char(25),char(22),char(20),char(21), -char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(51),char(198),char(18), -char(23),char(57),char(17),char(51),char(17),char(18),char(1),char(57),char(57),char(17), -char(51),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(17),char(20),char(22),char(51),char(50),char(54),char(53), -char(17),char(51),char(21),char(54),char(54),char(53),char(51),char(23),char(6),char(6), -char(7),char(17),char(35),char(39),char(35),char(6),char(6),char(35),char(34),char(38), -char(53),char(17),char(1),char(76),char(122),char(130),char(172),char(159),char(166),char(82), -char(74),char(178),char(15),char(32),char(176),char(141),char(137),char(24),char(9),char(52), -char(181),char(111),char(203),char(200),char(4),char(70),char(253),char(59),char(134),char(132), -char(188),char(213),char(2),char(62),char(121),char(11),char(128),char(154),char(23),char(186), -char(191),char(14),char(252),char(172),char(147),char(82),char(85),char(190),char(209),char(2), -char(203),char(0),char(255),char(255),char(252),char(83),char(4),char(217),char(253),char(220), -char(6),char(33),char(0),char(7),char(0),char(67),char(250),char(202),char(0),char(0), -char(255),char(255),char(253),char(13),char(4),char(217),char(254),char(150),char(6),char(33), -char(0),char(7),char(0),char(118),char(251),char(132),char(0),char(0),char(255),char(255), -char(252),char(25),char(4),char(217),char(255),char(1),char(5),char(221),char(0),char(7), -char(1),char(82),char(251),char(17),char(0),char(0),char(0),char(1),char(253),char(8), -char(4),char(184),char(254),char(115),char(6),char(143),char(0),char(17),char(0),char(30), -char(64),char(12),char(2),char(5),char(5),char(13),char(13),char(8),char(0),char(0), -char(19),char(11),char(16),char(4),char(0),char(47),char(204),char(50),char(17),char(1), -char(51),char(17),char(51),char(51),char(18),char(57),char(17),char(51),char(49),char(48), -char(1),char(20),char(7),char(7),char(35),char(39),char(54),char(54),char(53),char(52), -char(38),char(35),char(34),char(7),char(53),char(54),char(51),char(32),char(254),char(115), -char(166),char(10),char(105),char(12),char(86),char(78),char(67),char(73),char(62),char(32), -char(38),char(69),char(1),char(0),char(5),char(215),char(140),char(34),char(113),char(176), -char(14),char(50),char(43),char(43),char(41),char(6),char(100),char(10),char(0),char(1), -char(253),char(59),char(254),char(160),char(254),char(2),char(255),char(125),char(0),char(11), -char(0),char(17),char(181),char(6),char(0),char(0),char(13),char(9),char(3),char(0), -char(47),char(205),char(17),char(1),char(51),char(17),char(51),char(49),char(48),char(5), -char(52),char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(35),char(34), -char(38),char(253),char(59),char(59),char(42),char(40),char(58),char(58),char(40),char(42), -char(59),char(242),char(57),char(54),char(54),char(57),char(55),char(55),char(55),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(115), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(0),char(67), -char(255),char(216),char(1),char(82),char(0),char(8),char(179),char(1),char(13),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(203),char(0),char(0), -char(5),char(82),char(7),char(115),char(2),char(38),char(1),char(178),char(0),char(0), -char(1),char(7),char(0),char(67),char(0),char(104),char(1),char(82),char(0),char(8), -char(179),char(1),char(17),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(18),char(6),char(33),char(2),char(38), -char(0),char(72),char(0),char(0),char(1),char(6),char(0),char(67),char(183),char(0), -char(0),char(8),char(179),char(2),char(28),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(98),char(6),char(33), -char(2),char(38),char(1),char(210),char(0),char(0),char(1),char(6),char(0),char(67), -char(220),char(0),char(0),char(8),char(179),char(1),char(15),char(17),char(38),char(0), -char(43),char(53),char(0),char(1),char(0),char(133),char(255),char(236),char(7),char(145), -char(5),char(201),char(0),char(49),char(0),char(69),char(64),char(36),char(34),char(22), -char(42),char(39),char(47),char(9),char(9),char(4),char(39),char(27),char(22),char(5), -char(50),char(51),char(0),char(31),char(25),char(31),char(73),char(89),char(16),char(40), -char(40),char(19),char(6),char(25),char(4),char(44),char(37),char(19),char(37),char(73), -char(89),char(12),char(19),char(19),char(0),char(63),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(51),char(18),char(57),char(47),char(57),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(34),char(6),char(7),char(39), -char(54),char(51),char(50),char(0),char(17),char(16),char(0),char(35),char(34),char(38), -char(39),char(35),char(6),char(6),char(35),char(32),char(0),char(17),char(16),char(18), -char(51),char(50),char(23),char(7),char(38),char(38),char(35),char(34),char(2),char(17), -char(16),char(18),char(51),char(50),char(55),char(17),char(51),char(17),char(22),char(51), -char(50),char(18),char(17),char(16),char(2),char(5),char(164),char(60),char(94),char(45), -char(69),char(126),char(150),char(228),char(1),char(1),char(254),char(229),char(255),char(108), -char(172),char(83),char(8),char(80),char(169),char(107),char(255),char(0),char(254),char(229), -char(255),char(228),char(153),char(124),char(70),char(45),char(93),char(60),char(147),char(165), -char(207),char(187),char(139),char(102),char(170),char(102),char(142),char(187),char(206),char(165), -char(5),char(47),char(41),char(31),char(146),char(80),char(254),char(136),char(254),char(173), -char(254),char(141),char(254),char(97),char(45),char(51),char(50),char(46),char(1),char(155), -char(1),char(119),char(1),char(83),char(1),char(120),char(80),char(146),char(31),char(41), -char(254),char(215),char(254),char(246),char(254),char(211),char(254),char(178),char(76),char(1), -char(201),char(254),char(55),char(76),char(1),char(75),char(1),char(48),char(1),char(11), -char(1),char(40),char(0),char(1),char(0),char(0),char(0),char(0),char(6),char(29), -char(4),char(72),char(0),char(29),char(0),char(40),char(64),char(22),char(23),char(0), -char(13),char(14),char(5),char(5),char(30),char(31),char(27),char(21),char(13),char(0), -char(18),char(10),char(4),char(4),char(22),char(14),char(5),char(15),char(4),char(21), -char(0),char(63),char(63),char(51),char(51),char(18),char(23),char(57),char(63),char(17), -char(18),char(1),char(23),char(57),char(49),char(48),char(1),char(6),char(6),char(3), -char(35),char(1),char(51),char(19),char(22),char(23),char(51),char(54),char(54),char(19), -char(3),char(51),char(0),char(22),char(23),char(51),char(54),char(18),char(17),char(51), -char(16),char(2),char(7),char(35),char(3),char(38),char(3),char(39),char(10),char(20), -char(179),char(213),char(254),char(127),char(172),char(246),char(32),char(46),char(8),char(19), -char(74),char(142),char(172),char(178),char(1),char(9),char(45),char(10),char(8),char(173), -char(153),char(166),char(195),char(219),char(182),char(125),char(33),char(1),char(201),char(26), -char(51),char(254),char(132),char(4),char(72),char(253),char(73),char(93),char(189),char(53), -char(163),char(1),char(36),char(1),char(213),char(252),char(255),char(144),char(44),char(184), -char(1),char(179),char(1),char(82),char(254),char(150),char(254),char(7),char(229),char(1), -char(90),char(92),char(0),char(2),char(0),char(23),char(0),char(0),char(4),char(252), -char(6),char(20),char(0),char(17),char(0),char(26),char(0),char(76),char(64),char(40), -char(8),char(4),char(18),char(18),char(1),char(15),char(22),char(11),char(11),char(6), -char(15),char(0),char(4),char(27),char(28),char(7),char(17),char(0),char(17),char(73), -char(89),char(4),char(0),char(8),char(26),char(73),char(89),char(0),char(8),char(0), -char(8),char(15),char(2),char(0),char(15),char(18),char(74),char(89),char(15),char(18), -char(0),char(63),char(43),char(0),char(24),char(63),char(18),char(57),char(57),char(47), -char(47),char(43),char(17),char(0),char(51),char(43),char(17),char(0),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(51),char(49),char(48),char(19),char(33),char(17),char(51),char(17),char(33), -char(21),char(33),char(17),char(51),char(32),char(17),char(20),char(4),char(33),char(33), -char(17),char(33),char(1),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(35),char(23),char(1),char(63),char(172),char(1),char(162),char(254),char(94),char(201), -char(2),char(49),char(254),char(247),char(254),char(251),char(254),char(104),char(254),char(193), -char(1),char(235),char(213),char(192),char(181),char(186),char(218),char(182),char(4),char(250), -char(1),char(26),char(254),char(230),char(148),char(254),char(224),char(254),char(100),char(208), -char(218),char(4),char(102),char(252),char(43),char(137),char(144),char(138),char(122),char(0), -char(0),char(2),char(0),char(23),char(0),char(0),char(4),char(156),char(5),char(39), -char(0),char(17),char(0),char(25),char(0),char(71),char(64),char(38),char(4),char(0), -char(19),char(19),char(15),char(11),char(22),char(7),char(7),char(2),char(11),char(13), -char(4),char(26),char(27),char(3),char(13),char(14),char(13),char(70),char(89),char(4), -char(18),char(70),char(89),char(4),char(4),char(11),char(16),char(0),char(14),char(15), -char(11),char(19),char(70),char(89),char(11),char(21),char(0),char(63),char(43),char(0), -char(24),char(63),char(51),char(198),char(18),char(57),char(47),char(43),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(51),char(17),char(51),char(51),char(49),char(48),char(1),char(33),char(21), -char(33),char(17),char(33),char(32),char(17),char(20),char(6),char(35),char(33),char(17), -char(35),char(53),char(51),char(53),char(51),char(17),char(17),char(33),char(32),char(53), -char(52),char(38),char(35),char(1),char(168),char(1),char(88),char(254),char(168),char(1), -char(63),char(1),char(181),char(223),char(220),char(254),char(33),char(235),char(235),char(166), -char(1),char(49),char(1),char(31),char(135),char(156),char(4),char(72),char(140),char(254), -char(197),char(254),char(205),char(166),char(168),char(3),char(188),char(140),char(223),char(252), -char(205),char(254),char(151),char(185),char(92),char(84),char(0),char(1),char(0),char(201), -char(255),char(236),char(7),char(33),char(5),char(203),char(0),char(32),char(0),char(74), -char(64),char(41),char(23),char(19),char(19),char(20),char(6),char(24),char(29),char(12), -char(5),char(24),char(17),char(20),char(6),char(33),char(34),char(27),char(0),char(73), -char(89),char(27),char(4),char(6),char(18),char(23),char(18),char(73),char(89),char(3), -char(23),char(23),char(20),char(21),char(3),char(20),char(18),char(14),char(9),char(73), -char(89),char(14),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(63), -char(18),char(57),char(47),char(51),char(43),char(17),char(0),char(51),char(24),char(63), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(34),char(4),char(7),char(33),char(21), -char(33),char(18),char(0),char(51),char(50),char(55),char(21),char(6),char(35),char(32), -char(0),char(3),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(18), -char(0),char(37),char(50),char(23),char(7),char(38),char(38),char(5),char(143),char(227), -char(254),char(252),char(31),char(2),char(191),char(253),char(61),char(8),char(1),char(9), -char(247),char(154),char(194),char(152),char(222),char(254),char(193),char(254),char(165),char(8), -char(254),char(162),char(170),char(170),char(1),char(100),char(30),char(1),char(113),char(1), -char(48),char(213),char(182),char(72),char(100),char(157),char(5),char(51),char(250),char(241), -char(150),char(254),char(239),char(254),char(226),char(55),char(149),char(57),char(1),char(112), -char(1),char(84),char(253),char(80),char(5),char(182),char(253),char(146),char(1),char(51), -char(1),char(78),char(2),char(92),char(146),char(48),char(38),char(0),char(0),char(1), -char(0),char(176),char(255),char(236),char(5),char(156),char(4),char(92),char(0),char(33), -char(0),char(89),char(64),char(50),char(22),char(25),char(25),char(10),char(3),char(9), -char(5),char(5),char(6),char(16),char(32),char(24),char(3),char(6),char(5),char(34), -char(35),char(13),char(19),char(70),char(89),char(13),char(16),char(25),char(4),char(9), -char(4),char(70),char(89),char(22),char(15),char(9),char(31),char(9),char(2),char(11), -char(3),char(9),char(9),char(6),char(7),char(15),char(6),char(21),char(0),char(28), -char(70),char(89),char(0),char(22),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(18),char(57),char(47),char(95),char(94),char(93),char(51),char(43),char(17), -char(0),char(51),char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(5),char(34),char(0),char(39),char(33),char(17),char(35),char(17),char(51), -char(17),char(33),char(54),char(36),char(51),char(50),char(22),char(23),char(7),char(38), -char(35),char(34),char(6),char(7),char(33),char(21),char(33),char(22),char(22),char(51), -char(50),char(54),char(55),char(21),char(6),char(4),char(119),char(235),char(254),char(244), -char(11),char(254),char(225),char(166),char(166),char(1),char(33),char(24),char(1),char(13), -char(223),char(81),char(154),char(54),char(50),char(138),char(101),char(163),char(167),char(16), -char(2),char(24),char(253),char(230),char(9),char(169),char(164),char(61),char(119),char(98), -char(110),char(20),char(1),char(10),char(248),char(254),char(18),char(4),char(72),char(254), -char(51),char(235),char(246),char(32),char(25),char(141),char(51),char(164),char(170),char(141), -char(188),char(181),char(22),char(37),char(147),char(57),char(0),char(2),char(0),char(0), -char(0),char(0),char(5),char(109),char(5),char(182),char(0),char(11),char(0),char(18), -char(0),char(52),char(64),char(27),char(2),char(3),char(7),char(12),char(3),char(13), -char(10),char(5),char(20),char(19),char(1),char(5),char(12),char(5),char(73),char(89), -char(16),char(8),char(12),char(12),char(7),char(8),char(3),char(11),char(3),char(7), -char(18),char(0),char(63),char(51),char(51),char(63),char(18),char(57),char(47),char(18), -char(57),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(49),char(48),char(1),char(35),char(17),char(35),char(17),char(35), -char(1),char(35),char(1),char(51),char(1),char(35),char(1),char(33),char(39),char(38), -char(39),char(6),char(7),char(3),char(152),char(148),char(156),char(149),char(254),char(223), -char(178),char(2),char(104),char(158),char(2),char(103),char(183),char(253),char(92),char(1), -char(76),char(82),char(56),char(30),char(24),char(64),char(2),char(170),char(253),char(86), -char(2),char(170),char(253),char(86),char(5),char(182),char(250),char(74),char(3),char(63), -char(207),char(144),char(100),char(98),char(164),char(0),char(0),char(2),char(0),char(10), -char(0),char(0),char(4),char(121),char(4),char(72),char(0),char(11),char(0),char(18), -char(0),char(53),char(64),char(28),char(5),char(6),char(10),char(12),char(6),char(13), -char(3),char(1),char(6),char(20),char(19),char(4),char(8),char(12),char(8),char(70), -char(89),char(17),char(11),char(12),char(12),char(10),char(11),char(15),char(6),char(2), -char(10),char(21),char(0),char(63),char(51),char(51),char(63),char(18),char(57),char(47), -char(18),char(57),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(49),char(48),char(1),char(1),char(35),char(3),char(35), -char(17),char(35),char(17),char(35),char(3),char(35),char(1),char(3),char(33),char(38), -char(38),char(39),char(35),char(6),char(2),char(168),char(1),char(209),char(172),char(207), -char(113),char(151),char(115),char(205),char(172),char(1),char(209),char(33),char(1),char(15), -char(43),char(56),char(34),char(9),char(28),char(4),char(72),char(251),char(184),char(1), -char(233),char(254),char(23),char(1),char(233),char(254),char(23),char(4),char(72),char(254), -char(45),char(108),char(138),char(106),char(92),char(0),char(0),char(2),char(0),char(201), -char(0),char(0),char(7),char(94),char(5),char(182),char(0),char(19),char(0),char(26), -char(0),char(70),char(64),char(37),char(14),char(10),char(10),char(11),char(2),char(3), -char(18),char(21),char(3),char(20),char(8),char(7),char(11),char(7),char(27),char(28), -char(5),char(1),char(9),char(14),char(9),char(73),char(89),char(20),char(24),char(12), -char(14),char(14),char(11),char(16),char(12),char(3),char(19),char(7),char(3),char(11), -char(18),char(0),char(63),char(51),char(51),char(51),char(63),char(51),char(18),char(57), -char(47),char(18),char(57),char(51),char(43),char(17),char(0),char(51),char(51),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(35),char(17),char(35),char(17),char(35),char(1),char(35), -char(1),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(1),char(51), -char(1),char(35),char(1),char(33),char(2),char(38),char(39),char(6),char(6),char(5), -char(133),char(143),char(154),char(147),char(254),char(227),char(186),char(1),char(34),char(254), -char(95),char(170),char(170),char(1),char(225),char(1),char(6),char(158),char(2),char(102), -char(188),char(253),char(102),char(1),char(62),char(118),char(28),char(12),char(19),char(35), -char(2),char(176),char(253),char(80),char(2),char(176),char(253),char(80),char(2),char(176), -char(253),char(80),char(5),char(182),char(253),char(146),char(2),char(110),char(250),char(74), -char(3),char(72),char(1),char(53),char(86),char(47),char(67),char(104),char(0),char(2), -char(0),char(176),char(0),char(0),char(6),char(20),char(4),char(72),char(0),char(19), -char(0),char(25),char(0),char(77),char(64),char(43),char(17),char(13),char(13),char(14), -char(5),char(6),char(1),char(25),char(6),char(24),char(11),char(10),char(14),char(7), -char(26),char(27),char(8),char(4),char(12),char(17),char(12),char(70),char(89),char(24), -char(21),char(19),char(47),char(17),char(63),char(17),char(2),char(17),char(17),char(14), -char(19),char(15),char(15),char(15),char(10),char(6),char(2),char(14),char(21),char(0), -char(63),char(51),char(51),char(51),char(63),char(63),char(18),char(57),char(47),char(93), -char(18),char(57),char(51),char(43),char(17),char(0),char(51),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(1),char(35),char(3),char(35),char(17),char(35),char(17),char(35), -char(3),char(35),char(19),char(33),char(17),char(35),char(17),char(51),char(17),char(33), -char(19),char(23),char(35),char(6),char(6),char(7),char(33),char(4),char(70),char(1), -char(206),char(170),char(208),char(113),char(152),char(110),char(209),char(172),char(209),char(254), -char(223),char(166),char(166),char(1),char(94),char(197),char(104),char(8),char(10),char(32), -char(89),char(1),char(12),char(4),char(72),char(251),char(184),char(1),char(238),char(254), -char(18),char(1),char(238),char(254),char(18),char(1),char(238),char(254),char(18),char(4), -char(72),char(254),char(51),char(1),char(205),char(115),char(34),char(95),char(217),char(0), -char(0),char(2),char(0),char(20),char(0),char(0),char(5),char(174),char(5),char(182), -char(0),char(31),char(0),char(34),char(0),char(75),char(64),char(40),char(32),char(1), -char(15),char(16),char(33),char(30),char(30),char(29),char(16),char(2),char(1),char(7), -char(6),char(36),char(35),char(30),char(1),char(33),char(31),char(31),char(33),char(73), -char(89),char(14),char(18),char(29),char(18),char(74),char(89),char(34),char(2),char(29), -char(29),char(24),char(31),char(3),char(16),char(8),char(24),char(18),char(0),char(63), -char(51),char(51),char(63),char(18),char(57),char(47),char(51),char(51),char(43),char(17), -char(0),char(51),char(43),char(17),char(18),char(0),char(57),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(21),char(1),char(30),char(2),char(23),char(19),char(35),char(3), -char(46),char(2),char(35),char(35),char(17),char(35),char(17),char(35),char(34),char(6), -char(6),char(7),char(3),char(35),char(19),char(62),char(2),char(55),char(1),char(53), -char(5),char(33),char(1),char(5),char(41),char(254),char(90),char(118),char(154),char(100), -char(50),char(133),char(174),char(137),char(35),char(68),char(101),char(89),char(27),char(170), -char(26),char(91),char(99),char(65),char(32),char(135),char(185),char(136),char(47),char(99), -char(149),char(118),char(254),char(101),char(3),char(190),char(253),char(10),char(1),char(123), -char(5),char(182),char(133),char(254),char(17),char(6),char(72),char(139),char(164),char(254), -char(59),char(1),char(201),char(111),char(96),char(38),char(253),char(66),char(2),char(190), -char(39),char(95),char(111),char(254),char(55),char(1),char(197),char(159),char(142),char(73), -char(7),char(1),char(239),char(133),char(153),char(254),char(57),char(0),char(0),char(2), -char(0),char(12),char(0),char(0),char(5),char(20),char(4),char(72),char(0),char(32), -char(0),char(35),char(0),char(78),char(64),char(42),char(33),char(1),char(15),char(16), -char(34),char(31),char(24),char(31),char(30),char(16),char(2),char(1),char(7),char(7), -char(37),char(36),char(31),char(1),char(34),char(32),char(32),char(34),char(70),char(89), -char(17),char(14),char(18),char(30),char(18),char(71),char(89),char(35),char(2),char(30), -char(30),char(24),char(32),char(15),char(16),char(8),char(24),char(21),char(0),char(63), -char(51),char(51),char(63),char(18),char(57),char(47),char(51),char(51),char(43),char(17), -char(0),char(51),char(51),char(43),char(17),char(18),char(0),char(57),char(57),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(21),char(1),char(30),char(3),char(19),char(35),char(3), -char(46),char(2),char(35),char(35),char(17),char(35),char(17),char(35),char(34),char(6), -char(6),char(7),char(3),char(35),char(19),char(62),char(3),char(55),char(1),char(53), -char(5),char(33),char(1),char(4),char(139),char(254),char(174),char(87),char(111),char(73), -char(49),char(155),char(172),char(133),char(34),char(58),char(84),char(76),char(10),char(153), -char(11),char(75),char(82),char(56),char(39),char(135),char(170),char(131),char(24),char(48), -char(73),char(110),char(87),char(254),char(177),char(3),char(32),char(253),char(180),char(1), -char(37),char(4),char(72),char(105),char(254),char(160),char(7),char(48),char(80),char(105), -char(254),char(113),char(1),char(80),char(87),char(71),char(28),char(253),char(246),char(2), -char(10),char(26),char(64),char(94),char(254),char(174),char(1),char(80),char(61),char(105), -char(79),char(50),char(8),char(1),char(96),char(105),char(140),char(254),char(193),char(0), -char(0),char(2),char(0),char(201),char(0),char(0),char(7),char(197),char(5),char(182), -char(0),char(36),char(0),char(39),char(0),char(97),char(64),char(53),char(33),char(29), -char(29),char(30),char(38),char(35),char(15),char(16),char(2),char(39),char(37),char(1), -char(7),char(1),char(39),char(16),char(34),char(27),char(35),char(24),char(30),char(9), -char(41),char(40),char(35),char(1),char(36),char(38),char(36),char(38),char(73),char(89), -char(18),char(14),char(28),char(33),char(28),char(73),char(89),char(39),char(2),char(33), -char(33),char(30),char(36),char(3),char(31),char(3),char(24),char(16),char(8),char(30), -char(18),char(0),char(63),char(51),char(51),char(51),char(63),char(63),char(18),char(57), -char(47),char(51),char(51),char(43),char(17),char(0),char(51),char(51),char(43),char(17), -char(18),char(0),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(21),char(1),char(30),char(2),char(23),char(19), -char(35),char(3),char(46),char(2),char(35),char(35),char(17),char(35),char(17),char(35), -char(34),char(6),char(6),char(7),char(3),char(35),char(19),char(54),char(55),char(33), -char(17),char(35),char(17),char(51),char(17),char(33),char(1),char(53),char(5),char(33), -char(1),char(7),char(61),char(254),char(93),char(120),char(153),char(101),char(45),char(136), -char(168),char(138),char(31),char(70),char(105),char(95),char(24),char(172),char(25),char(94), -char(100),char(66),char(33),char(135),char(178),char(135),char(55),char(56),char(254),char(82), -char(170),char(170),char(2),char(215),char(254),char(104),char(3),char(193),char(253),char(10), -char(1),char(123),char(5),char(182),char(133),char(254),char(14),char(6),char(72),char(144), -char(156),char(254),char(59),char(1),char(201),char(104),char(99),char(40),char(253),char(68), -char(2),char(188),char(40),char(95),char(108),char(254),char(55),char(1),char(190),char(184), -char(58),char(253),char(80),char(5),char(182),char(253),char(146),char(1),char(233),char(133), -char(153),char(254),char(55),char(0),char(0),char(2),char(0),char(176),char(0),char(0), -char(6),char(186),char(4),char(72),char(0),char(36),char(0),char(39),char(0),char(103), -char(64),char(58),char(33),char(29),char(29),char(30),char(38),char(35),char(15),char(16), -char(2),char(39),char(37),char(1),char(7),char(1),char(39),char(16),char(34),char(27), -char(35),char(24),char(30),char(9),char(41),char(40),char(35),char(1),char(36),char(38), -char(36),char(38),char(70),char(89),char(18),char(14),char(28),char(33),char(28),char(70), -char(89),char(39),char(2),char(47),char(33),char(63),char(33),char(2),char(33),char(33), -char(30),char(36),char(15),char(31),char(15),char(24),char(16),char(8),char(30),char(21), -char(0),char(63),char(51),char(51),char(51),char(63),char(63),char(18),char(57),char(47), -char(93),char(51),char(51),char(43),char(17),char(0),char(51),char(51),char(43),char(17), -char(18),char(0),char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(21),char(1),char(30),char(3),char(19),char(35), -char(3),char(46),char(2),char(35),char(35),char(17),char(35),char(17),char(35),char(34), -char(6),char(6),char(7),char(3),char(35),char(19),char(54),char(55),char(33),char(17), -char(35),char(17),char(51),char(17),char(33),char(1),char(53),char(5),char(33),char(1), -char(6),char(49),char(254),char(174),char(88),char(111),char(73),char(48),char(155),char(172), -char(133),char(34),char(58),char(86),char(74),char(10),char(154),char(10),char(75),char(84), -char(55),char(38),char(135),char(170),char(131),char(47),char(37),char(254),char(205),char(166), -char(166),char(2),char(53),char(254),char(176),char(3),char(33),char(253),char(180),char(1), -char(37),char(4),char(72),char(105),char(254),char(158),char(7),char(49),char(78),char(105), -char(254),char(114),char(1),char(80),char(86),char(70),char(28),char(253),char(248),char(2), -char(8),char(27),char(63),char(92),char(254),char(174),char(1),char(80),char(120),char(40), -char(254),char(16),char(4),char(72),char(254),char(53),char(1),char(98),char(105),char(140), -char(254),char(199),char(0),char(1),char(0),char(63),char(254),char(78),char(4),char(53), -char(6),char(209),char(0),char(75),char(0),char(132),char(64),char(77),char(0),char(19), -char(33),char(63),char(25),char(70),char(70),char(10),char(63),char(55),char(67),char(60), -char(42),char(28),char(45),char(40),char(19),char(11),char(76),char(77),char(73),char(22), -char(74),char(89),char(73),char(19),char(57),char(52),char(49),char(15),char(46),char(31), -char(46),char(47),char(46),char(3),char(9),char(3),char(46),char(42),char(64),char(67), -char(29),char(28),char(29),char(28),char(74),char(89),char(29),char(29),char(16),char(60), -char(42),char(42),char(36),char(74),char(89),char(42),char(4),char(10),char(9),char(73), -char(89),char(10),char(16),char(16),char(3),char(73),char(89),char(16),char(35),char(12), -char(7),char(73),char(89),char(12),char(34),char(0),char(63),char(43),char(0),char(24), -char(63),char(43),char(0),char(24),char(16),char(198),char(43),char(0),char(24),char(63), -char(43),char(17),char(0),char(51),char(18),char(57),char(24),char(47),char(43),char(17), -char(18),char(0),char(57),char(26),char(24),char(16),char(221),char(95),char(94),char(93), -char(57),char(196),char(50),char(63),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(23),char(20), -char(22),char(51),char(50),char(55),char(54),char(51),char(50),char(23),char(21),char(38), -char(35),char(34),char(7),char(6),char(35),char(34),char(38),char(53),char(52),char(54), -char(55),char(54),char(54),char(53),char(16),char(33),char(35),char(53),char(51),char(50), -char(54),char(53),char(52),char(38),char(35),char(34),char(6),char(7),char(39),char(54), -char(55),char(38),char(39),char(39),char(53),char(51),char(22),char(23),char(54),char(54), -char(51),char(50),char(23),char(21),char(38),char(35),char(34),char(6),char(7),char(22), -char(22),char(21),char(20),char(6),char(7),char(21),char(22),char(22),char(21),char(20), -char(4),char(5),char(6),char(6),char(240),char(87),char(89),char(97),char(120),char(120), -char(70),char(155),char(71),char(80),char(160),char(68),char(105),char(105),char(105),char(179), -char(184),char(217),char(232),char(204),char(181),char(254),char(64),char(218),char(209),char(205), -char(225),char(162),char(137),char(106),char(187),char(110),char(86),char(168),char(190),char(57), -char(117),char(49),char(123),char(92),char(131),char(92),char(131),char(64),char(50),char(48), -char(24),char(43),char(44),char(111),char(48),char(178),char(193),char(191),char(170),char(186), -char(203),char(254),char(229),char(254),char(230),char(138),char(134),char(137),char(55),char(50), -char(7),char(6),char(39),char(166),char(51),char(5),char(5),char(125),char(133),char(126), -char(129),char(9),char(8),char(138),char(141),char(1),char(12),char(143),char(147),char(132), -char(107),char(128),char(55),char(69),char(114),char(114),char(28),char(66),char(121),char(52), -char(27),char(59),char(136),char(115),char(86),char(14),char(113),char(10),char(82),char(71), -char(23),char(189),char(143),char(140),char(184),char(26),char(8),char(24),char(178),char(144), -char(208),char(213),char(9),char(5),char(55),char(0),char(0),char(1),char(0),char(25), -char(254),char(123),char(3),char(127),char(5),char(78),char(0),char(70),char(0),char(131), -char(64),char(78),char(23),char(41),char(54),char(11),char(46),char(16),char(16),char(32), -char(11),char(3),char(14),char(8),char(62),char(50),char(64),char(60),char(41),char(11), -char(71),char(72),char(68),char(62),char(65),char(0),char(5),char(71),char(89),char(0), -char(15),char(65),char(31),char(65),char(47),char(65),char(3),char(9),char(3),char(65), -char(62),char(38),char(26),char(70),char(89),char(35),char(29),char(70),char(89),char(14), -char(51),char(50),char(51),char(50),char(70),char(89),char(38),char(35),char(51),char(51), -char(35),char(38),char(3),char(32),char(62),char(62),char(56),char(70),char(89),char(8), -char(62),char(16),char(32),char(34),char(19),char(44),char(71),char(89),char(19),char(22), -char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(43),char(17), -char(18),char(0),char(23),char(57),char(24),char(47),char(47),char(47),char(43),char(17), -char(18),char(0),char(57),char(43),char(43),char(0),char(24),char(16),char(212),char(95), -char(94),char(93),char(196),char(43),char(17),char(18),char(0),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(50),char(23),char(21),char(38),char(35),char(34),char(6),char(7), -char(22),char(22),char(21),char(20),char(7),char(21),char(22),char(21),char(20),char(6), -char(7),char(14),char(2),char(21),char(20),char(22),char(51),char(50),char(55),char(55), -char(50),char(23),char(21),char(38),char(38),char(35),char(7),char(6),char(35),char(34), -char(38),char(53),char(52),char(54),char(55),char(36),char(53),char(52),char(38),char(35), -char(35),char(53),char(51),char(32),char(53),char(52),char(35),char(34),char(6),char(7), -char(39),char(54),char(55),char(38),char(39),char(53),char(51),char(22),char(23),char(54), -char(54),char(2),char(248),char(51),char(45),char(24),char(41),char(47),char(103),char(45), -char(122),char(140),char(211),char(248),char(242),char(225),char(93),char(109),char(48),char(75), -char(89),char(86),char(122),char(175),char(125),char(39),char(21),char(84),char(55),char(179), -char(130),char(92),char(144),char(159),char(190),char(180),char(1),char(78),char(156),char(159), -char(148),char(119),char(1),char(55),char(252),char(74),char(143),char(88),char(59),char(124), -char(126),char(92),char(103),char(123),char(75),char(140),char(88),char(134),char(5),char(78), -char(15),char(112),char(10),char(79),char(62),char(28),char(138),char(107),char(184),char(57), -char(8),char(71),char(202),char(148),char(168),char(3),char(2),char(23),char(42),char(44), -char(49),char(43),char(5),char(5),char(39),char(143),char(19),char(24),char(5),char(5), -char(119),char(112),char(116),char(125),char(3),char(4),char(190),char(97),char(90),char(141), -char(172),char(162),char(34),char(36),char(135),char(55),char(15),char(117),char(98),char(27), -char(52),char(137),char(110),char(85),char(255),char(255),char(0),char(109),char(0),char(0), -char(5),char(242),char(5),char(182),char(2),char(6),char(1),char(117),char(0),char(0), -char(255),char(255),char(0),char(164),char(254),char(20),char(5),char(135),char(6),char(18), -char(2),char(6),char(1),char(149),char(0),char(0),char(0),char(3),char(0),char(125), -char(255),char(236),char(5),char(190),char(5),char(205),char(0),char(11),char(0),char(18), -char(0),char(25),char(0),char(71),char(64),char(37),char(22),char(16),char(16),char(6), -char(23),char(15),char(15),char(0),char(6),char(0),char(26),char(27),char(22),char(16), -char(73),char(89),char(15),char(22),char(1),char(11),char(3),char(22),char(22),char(3), -char(9),char(9),char(19),char(73),char(89),char(9),char(4),char(3),char(12),char(73), -char(89),char(3),char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(43), -char(17),char(18),char(0),char(57),char(24),char(47),char(95),char(94),char(93),char(43), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(33),char(32), -char(0),char(17),char(16),char(0),char(33),char(32),char(0),char(1),char(50),char(18), -char(19),char(33),char(18),char(18),char(19),char(34),char(2),char(3),char(33),char(38), -char(2),char(5),char(190),char(254),char(157),char(254),char(196),char(254),char(189),char(254), -char(161),char(1),char(96),char(1),char(68),char(1),char(59),char(1),char(98),char(253), -char(97),char(229),char(247),char(13),char(252),char(43),char(13),char(249),char(232),char(224), -char(251),char(19),char(3),char(211),char(17),char(244),char(2),char(221),char(254),char(161), -char(254),char(110),char(1),char(139),char(1),char(104),char(1),char(101),char(1),char(137), -char(254),char(112),char(252),char(68),char(1),char(17),char(1),char(12),char(254),char(245), -char(254),char(238),char(4),char(180),char(254),char(254),char(255),char(0),char(254),char(1), -char(4),char(0),char(0),char(3),char(0),char(115),char(255),char(236),char(4),char(98), -char(4),char(92),char(0),char(12),char(0),char(19),char(0),char(26),char(0),char(73), -char(64),char(39),char(23),char(17),char(17),char(7),char(24),char(16),char(16),char(0), -char(7),char(0),char(27),char(28),char(23),char(17),char(70),char(89),char(15),char(23), -char(31),char(23),char(2),char(11),char(3),char(23),char(23),char(3),char(10),char(10), -char(20),char(70),char(89),char(10),char(16),char(3),char(13),char(70),char(89),char(3), -char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(24),char(47),char(95),char(94),char(93),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(16),char(0),char(35),char(34),char(38),char(2), -char(53),char(16),char(0),char(51),char(50),char(0),char(1),char(50),char(54),char(55), -char(33),char(22),char(22),char(19),char(34),char(6),char(7),char(33),char(38),char(38), -char(4),char(98),char(254),char(242),char(238),char(147),char(228),char(124),char(1),char(12), -char(238),char(230),char(1),char(15),char(254),char(8),char(158),char(164),char(10),char(253), -char(105),char(9),char(160),char(160),char(156),char(158),char(13),char(2),char(147),char(15), -char(161),char(2),char(37),char(254),char(244),char(254),char(211),char(138),char(1),char(2), -char(173),char(1),char(12),char(1),char(43),char(254),char(206),char(253),char(77),char(184), -char(191),char(186),char(189),char(3),char(88),char(173),char(167),char(168),char(172),char(0), -char(0),char(1),char(0),char(0),char(0),char(0),char(5),char(72),char(5),char(195), -char(0),char(21),char(0),char(32),char(64),char(16),char(6),char(22),char(19),char(23), -char(17),char(0),char(74),char(89),char(17),char(4),char(10),char(5),char(6),char(3), -char(5),char(18),char(0),char(63),char(63),char(18),char(57),char(63),char(43),char(17), -char(1),char(51),char(18),char(57),char(49),char(48),char(1),char(34),char(6),char(7), -char(1),char(35),char(1),char(51),char(1),char(22),char(23),char(54),char(55),char(19), -char(62),char(2),char(51),char(50),char(23),char(21),char(38),char(4),char(225),char(59), -char(78),char(57),char(254),char(184),char(197),char(253),char(238),char(180),char(1),char(82), -char(72),char(35),char(32),char(70),char(162),char(59),char(84),char(110),char(89),char(42), -char(79),char(56),char(5),char(55),char(103),char(181),char(251),char(229),char(5),char(182), -char(252),char(86),char(199),char(143),char(144),char(223),char(2),char(6),char(191),char(152), -char(65),char(19),char(141),char(20),char(0),char(1),char(0),char(0),char(0),char(0), -char(4),char(61),char(4),char(82),char(0),char(22),char(0),char(30),char(64),char(15), -char(1),char(23),char(15),char(24),char(13),char(18),char(71),char(89),char(13),char(16), -char(5),char(1),char(15),char(0),char(21),char(0),char(63),char(63),char(57),char(63), -char(43),char(17),char(1),char(51),char(18),char(57),char(49),char(48),char(33),char(1), -char(51),char(19),char(18),char(23),char(51),char(54),char(19),char(19),char(62),char(2), -char(51),char(50),char(23),char(21),char(38),char(35),char(34),char(6),char(7),char(3), -char(1),char(150),char(254),char(106),char(174),char(225),char(100),char(19),char(8),char(23), -char(82),char(96),char(37),char(71),char(91),char(84),char(45),char(30),char(29),char(38), -char(47),char(58),char(28),char(248),char(4),char(72),char(253),char(155),char(254),char(244), -char(100),char(118),char(1),char(11),char(1),char(53),char(122),char(123),char(52),char(10), -char(127),char(8),char(84),char(92),char(252),char(223),char(255),char(255),char(0),char(0), -char(0),char(0),char(5),char(72),char(7),char(115),char(2),char(38),char(2),char(128), -char(0),char(0),char(1),char(7),char(3),char(118),char(4),char(215),char(1),char(82), -char(0),char(10),char(180),char(2),char(1),char(33),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(0),char(0),char(0),char(4),char(61), -char(6),char(33),char(2),char(38),char(2),char(129),char(0),char(0),char(1),char(7), -char(3),char(118),char(4),char(100),char(0),char(0),char(0),char(10),char(180),char(2), -char(1),char(34),char(17),char(38),char(0),char(43),char(53),char(53),char(0),char(3), -char(0),char(125),char(254),char(20),char(9),char(162),char(5),char(205),char(0),char(11), -char(0),char(23),char(0),char(46),char(0),char(68),char(64),char(38),char(12),char(6), -char(18),char(0),char(33),char(46),char(39),char(24),char(0),char(6),char(6),char(47), -char(48),char(37),char(42),char(74),char(89),char(37),char(27),char(29),char(28),char(28), -char(3),char(32),char(24),char(15),char(9),char(21),char(73),char(89),char(9),char(4), -char(3),char(15),char(73),char(89),char(3),char(19),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(0),char(24),char(63),char(51),char(18),char(57),char(17), -char(51),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(33),char(32),char(0), -char(17),char(16),char(0),char(33),char(32),char(0),char(1),char(16),char(18),char(51), -char(50),char(18),char(17),char(16),char(2),char(35),char(34),char(2),char(37),char(51), -char(19),char(22),char(23),char(51),char(54),char(54),char(19),char(51),char(1),char(6), -char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(55), -char(55),char(5),char(84),char(254),char(185),char(254),char(220),char(254),char(215),char(254), -char(189),char(1),char(67),char(1),char(44),char(1),char(35),char(1),char(69),char(251), -char(221),char(223),char(217),char(218),char(221),char(220),char(216),char(218),char(225),char(4), -char(111),char(176),char(246),char(78),char(20),char(8),char(11),char(83),char(228),char(176), -char(254),char(43),char(69),char(188),char(136),char(76),char(74),char(55),char(66),char(94), -char(117),char(35),char(61),char(2),char(221),char(254),char(160),char(254),char(111),char(1), -char(139),char(1),char(104),char(1),char(102),char(1),char(136),char(254),char(112),char(254), -char(160),char(254),char(215),char(254),char(205),char(1),char(49),char(1),char(43),char(1), -char(41),char(1),char(47),char(254),char(210),char(65),char(253),char(139),char(207),char(102), -char(44),char(251),char(2),char(131),char(251),char(32),char(182),char(158),char(17),char(133), -char(12),char(103),char(89),char(156),char(255),char(255),char(0),char(115),char(254),char(20), -char(8),char(123),char(4),char(92),char(0),char(38),char(0),char(82),char(0),char(0), -char(0),char(7),char(0),char(92),char(4),char(117),char(0),char(0),char(0),char(2), -char(0),char(125),char(255),char(135),char(6),char(16),char(6),char(45),char(0),char(19), -char(0),char(40),char(0),char(81),char(64),char(42),char(20),char(10),char(38),char(13), -char(7),char(17),char(34),char(34),char(3),char(28),char(31),char(0),char(0),char(28), -char(7),char(23),char(10),char(5),char(41),char(42),char(36),char(34),char(38),char(13), -char(38),char(73),char(89),char(17),char(15),char(13),char(3),char(28),char(26),char(23), -char(7),char(23),char(73),char(89),char(5),char(3),char(7),char(18),char(0),char(63), -char(51),char(51),char(43),char(17),char(0),char(51),char(51),char(24),char(63),char(51), -char(51),char(43),char(17),char(0),char(51),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(0),char(5),char(6), -char(35),char(34),char(39),char(36),char(0),char(17),char(16),char(0),char(37),char(54), -char(51),char(50),char(23),char(4),char(0),char(1),char(20),char(18),char(23),char(54), -char(54),char(51),char(50),char(23),char(54),char(18),char(53),char(52),char(2),char(39), -char(6),char(35),char(34),char(39),char(6),char(2),char(6),char(16),char(254),char(209), -char(254),char(248),char(26),char(119),char(124),char(20),char(254),char(244),char(254),char(209), -char(1),char(43),char(1),char(16),char(20),char(124),char(121),char(22),char(1),char(12), -char(1),char(45),char(251),char(33),char(202),char(189),char(17),char(73),char(54),char(110), -char(31),char(189),char(202),char(202),char(189),char(31),char(110),char(113),char(31),char(189), -char(202),char(2),char(221),char(254),char(210),char(254),char(115),char(44),char(111),char(111), -char(41),char(1),char(138),char(1),char(54),char(1),char(49),char(1),char(133),char(44), -char(108),char(108),char(44),char(254),char(115),char(254),char(213),char(244),char(254),char(207), -char(41),char(48),char(38),char(86),char(41),char(1),char(49),char(244),char(244),char(1), -char(47),char(39),char(88),char(86),char(39),char(254),char(211),char(0),char(0),char(2), -char(0),char(115),char(255),char(147),char(4),char(207),char(4),char(180),char(0),char(23), -char(0),char(45),char(0),char(80),char(64),char(42),char(24),char(12),char(15),char(9), -char(43),char(27),char(37),char(21),char(3),char(35),char(0),char(0),char(3),char(32), -char(27),char(9),char(12),char(6),char(46),char(47),char(40),char(37),char(43),char(15), -char(43),char(70),char(89),char(21),char(18),char(15),char(16),char(32),char(30),char(27), -char(9),char(27),char(70),char(89),char(6),char(3),char(9),char(21),char(0),char(63), -char(51),char(51),char(43),char(17),char(0),char(51),char(51),char(24),char(63),char(51), -char(51),char(43),char(17),char(0),char(51),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(2),char(7),char(6),char(6), -char(35),char(34),char(38),char(39),char(38),char(2),char(53),char(52),char(18),char(55), -char(54),char(54),char(51),char(50),char(22),char(23),char(22),char(18),char(5),char(20), -char(22),char(23),char(54),char(54),char(51),char(50),char(23),char(54),char(54),char(53), -char(16),char(37),char(6),char(6),char(35),char(34),char(38),char(39),char(6),char(6), -char(4),char(207),char(224),char(204),char(9),char(64),char(56),char(57),char(61),char(9), -char(203),char(229),char(224),char(208),char(8),char(62),char(57),char(56),char(64),char(9), -char(202),char(226),char(252),char(80),char(125),char(137),char(12),char(60),char(53),char(103), -char(24),char(134),char(124),char(254),char(252),char(13),char(61),char(51),char(53),char(60), -char(12),char(137),char(125),char(2),char(37),char(233),char(254),char(223),char(37),char(54), -char(45),char(43),char(56),char(36),char(1),char(38),char(229),char(233),char(1),char(32), -char(36),char(56),char(42),char(43),char(57),char(38),char(254),char(220),char(225),char(177), -char(210),char(31),char(42),char(34),char(74),char(31),char(210),char(175),char(1),char(96), -char(62),char(42),char(32),char(32),char(44),char(31),char(209),char(0),char(0),char(3), -char(0),char(125),char(255),char(236),char(7),char(127),char(8),char(59),char(0),char(21), -char(0),char(69),char(0),char(84),char(0),char(85),char(64),char(46),char(67),char(55), -char(31),char(43),char(43),char(1),char(38),char(70),char(75),char(80),char(72),char(60), -char(12),char(55),char(10),char(85),char(86),char(21),char(2),char(2),char(7),char(7), -char(16),char(12),char(82),char(64),char(72),char(58),char(34),char(64),char(58),char(64), -char(73),char(89),char(40),char(58),char(4),char(28),char(22),char(52),char(22),char(73), -char(89),char(46),char(52),char(19),char(0),char(63),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(16), -char(214),char(26),char(220),char(212),char(205),char(50),char(18),char(57),char(47),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(21),char(35),char(34),char(46),char(2),char(35),char(34),char(6), -char(21),char(21),char(35),char(53),char(52),char(54),char(51),char(50),char(30),char(2), -char(51),char(1),char(50),char(54),char(55),char(22),char(22),char(51),char(50),char(18), -char(17),char(16),char(2),char(35),char(34),char(6),char(7),char(39),char(54),char(51), -char(50),char(0),char(17),char(16),char(0),char(33),char(34),char(38),char(39),char(6), -char(6),char(35),char(32),char(0),char(17),char(16),char(0),char(51),char(50),char(23), -char(7),char(38),char(38),char(35),char(34),char(2),char(17),char(16),char(18),char(1), -char(20),char(7),char(53),char(54),char(53),char(52),char(46),char(2),char(53),char(52), -char(51),char(50),char(22),char(5),char(162),char(17),char(84),char(142),char(120),char(102), -char(43),char(47),char(60),char(125),char(116),char(112),char(58),char(112),char(119),char(133), -char(78),char(253),char(40),char(88),char(171),char(61),char(55),char(171),char(93),char(188), -char(210),char(165),char(147),char(60),char(95),char(43),char(70),char(121),char(154),char(228), -char(1),char(1),char(254),char(224),char(254),char(253),char(104),char(170),char(76),char(75), -char(167),char(110),char(254),char(252),char(254),char(227),char(1),char(1),char(228),char(154), -char(121),char(70),char(43),char(94),char(60),char(148),char(165),char(210),char(2),char(128), -char(237),char(120),char(31),char(36),char(31),char(92),char(56),char(67),char(7),char(199), -char(121),char(36),char(43),char(36),char(52),char(51),char(16),char(28),char(103),char(110), -char(36),char(44),char(36),char(248),char(186),char(66),char(63),char(57),char(72),char(1), -char(78),char(1),char(45),char(1),char(11),char(1),char(40),char(43),char(31),char(146), -char(82),char(254),char(136),char(254),char(173),char(254),char(140),char(254),char(98),char(40), -char(48),char(45),char(43),char(1),char(157),char(1),char(117),char(1),char(85),char(1), -char(118),char(82),char(146),char(31),char(43),char(254),char(217),char(254),char(244),char(254), -char(209),char(254),char(180),char(6),char(104),char(162),char(61),char(72),char(41),char(53), -char(20),char(18),char(17),char(26),char(28),char(73),char(68),char(0),char(0),char(3), -char(0),char(115),char(255),char(236),char(6),char(4),char(7),char(6),char(0),char(42), -char(0),char(63),char(0),char(78),char(0),char(92),char(64),char(51),char(19),char(7), -char(28),char(40),char(40),char(44),char(34),char(64),char(69),char(13),char(74),char(66), -char(54),char(7),char(10),char(79),char(80),char(50),char(58),char(63),char(45),char(45), -char(54),char(76),char(66),char(10),char(64),char(31),char(16),char(10),char(16),char(70), -char(89),char(2),char(23),char(70),char(89),char(2),char(4),char(37),char(10),char(16), -char(26),char(21),char(4),char(21),char(70),char(89),char(0),char(4),char(22),char(0), -char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(51),char(18), -char(57),char(43),char(43),char(17),char(0),char(51),char(26),char(24),char(16),char(222), -char(220),char(212),char(50),char(17),char(51),char(205),char(50),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(5),char(34), -char(39),char(6),char(35),char(34),char(2),char(17),char(16),char(18),char(51),char(50), -char(22),char(23),char(7),char(38),char(35),char(34),char(6),char(21),char(16),char(33), -char(50),char(55),char(22),char(22),char(51),char(32),char(17),char(52),char(38),char(35), -char(34),char(7),char(39),char(54),char(54),char(51),char(50),char(18),char(17),char(16), -char(2),char(3),char(21),char(35),char(34),char(46),char(2),char(35),char(34),char(21), -char(21),char(35),char(53),char(52),char(54),char(51),char(50),char(30),char(2),char(51), -char(5),char(20),char(7),char(53),char(54),char(53),char(52),char(46),char(2),char(53), -char(52),char(51),char(50),char(22),char(4),char(43),char(148),char(94),char(92),char(143), -char(225),char(250),char(207),char(186),char(62),char(119),char(40),char(57),char(89),char(71), -char(116),char(109),char(1),char(49),char(123),char(112),char(62),char(111),char(67),char(1), -char(45),char(110),char(115),char(71),char(89),char(57),char(40),char(119),char(62),char(187), -char(206),char(247),char(81),char(16),char(84),char(143),char(120),char(101),char(43),char(107), -char(125),char(115),char(112),char(58),char(113),char(118),char(131),char(78),char(254),char(240), -char(238),char(119),char(30),char(36),char(30),char(92),char(56),char(67),char(20),char(65), -char(65),char(1),char(35),char(1),char(14),char(1),char(23),char(1),char(40),char(32), -char(25),char(139),char(51),char(214),char(214),char(254),char(94),char(80),char(42),char(38), -char(1),char(162),char(214),char(214),char(51),char(139),char(25),char(32),char(254),char(215), -char(254),char(234),char(254),char(245),char(254),char(218),char(6),char(165),char(120),char(36), -char(42),char(36),char(102),char(17),char(31),char(100),char(111),char(37),char(43),char(37), -char(221),char(161),char(62),char(72),char(40),char(56),char(20),char(17),char(17),char(25), -char(27),char(74),char(68),char(0),char(0),char(2),char(0),char(94),char(255),char(236), -char(7),char(127),char(7),char(4),char(0),char(13),char(0),char(64),char(0),char(95), -char(64),char(52),char(48),char(36),char(57),char(54),char(62),char(23),char(23),char(1), -char(18),char(54),char(41),char(12),char(36),char(7),char(65),char(66),char(14),char(45), -char(39),char(45),char(73),char(89),char(30),char(55),char(55),char(33),char(39),char(5), -char(9),char(9),char(13),char(64),char(9),char(15),char(72),char(13),char(7),char(3), -char(11),char(64),char(20),char(39),char(4),char(59),char(51),char(33),char(51),char(73), -char(89),char(26),char(33),char(19),char(0),char(63),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(51),char(26),char(222),char(50),char(50),char(205),char(43), -char(50),char(17),char(51),char(17),char(18),char(57),char(47),char(57),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(21),char(7),char(35),char(39), -char(35),char(7),char(35),char(39),char(35),char(7),char(35),char(39),char(53),char(1), -char(34),char(6),char(7),char(39),char(54),char(51),char(50),char(18),char(17),char(16), -char(0),char(33),char(34),char(38),char(39),char(35),char(6),char(6),char(35),char(32), -char(0),char(17),char(16),char(0),char(51),char(50),char(23),char(7),char(38),char(38), -char(35),char(34),char(2),char(17),char(16),char(18),char(51),char(50),char(54),char(55), -char(17),char(51),char(17),char(22),char(51),char(50),char(18),char(17),char(16),char(2), -char(5),char(139),char(80),char(32),char(50),char(186),char(49),char(33),char(49),char(188), -char(47),char(33),char(80),char(3),char(67),char(60),char(93),char(45),char(70),char(124), -char(153),char(228),char(255),char(254),char(226),char(254),char(253),char(116),char(172),char(76), -char(9),char(78),char(172),char(112),char(254),char(252),char(254),char(227),char(1),char(1), -char(229),char(150),char(126),char(70),char(45),char(93),char(60),char(147),char(165),char(210), -char(190),char(65),char(130),char(51),char(170),char(102),char(145),char(188),char(212),char(165), -char(7),char(4),char(27),char(172),char(103),char(103),char(103),char(103),char(172),char(27), -char(254),char(43),char(41),char(31),char(146),char(80),char(254),char(136),char(254),char(173), -char(254),char(139),char(254),char(99),char(48),char(48),char(49),char(47),char(1),char(160), -char(1),char(114),char(1),char(85),char(1),char(118),char(80),char(146),char(31),char(41), -char(254),char(215),char(254),char(246),char(254),char(209),char(254),char(180),char(38),char(38), -char(1),char(201),char(254),char(55),char(76),char(1),char(74),char(1),char(49),char(1), -char(11),char(1),char(40),char(0),char(0),char(2),char(0),char(0),char(0),char(0), -char(6),char(29),char(5),char(164),char(0),char(13),char(0),char(42),char(0),char(63), -char(64),char(36),char(36),char(1),char(14),char(26),char(27),char(12),char(18),char(7), -char(43),char(44),char(40),char(21),char(14),char(31),char(22),char(3),char(17),char(18), -char(5),char(9),char(9),char(13),char(64),char(9),char(15),char(72),char(13),char(7), -char(3),char(11),char(35),char(27),char(18),char(15),char(17),char(21),char(0),char(63), -char(63),char(51),char(51),char(222),char(50),char(50),char(205),char(43),char(50),char(17), -char(51),char(17),char(18),char(23),char(57),char(63),char(17),char(18),char(1),char(23), -char(57),char(49),char(48),char(1),char(21),char(7),char(35),char(39),char(35),char(7), -char(35),char(39),char(35),char(7),char(35),char(39),char(53),char(1),char(7),char(3), -char(35),char(1),char(51),char(19),char(22),char(23),char(51),char(54),char(54),char(19), -char(3),char(51),char(0),char(22),char(23),char(51),char(54),char(18),char(17),char(51), -char(16),char(2),char(7),char(35),char(3),char(38),char(4),char(182),char(82),char(30), -char(50),char(188),char(49),char(31),char(49),char(188),char(50),char(30),char(80),char(1), -char(172),char(39),char(170),char(213),char(254),char(127),char(172),char(246),char(39),char(41), -char(8),char(12),char(35),char(186),char(172),char(178),char(1),char(9),char(45),char(10), -char(8),char(173),char(153),char(166),char(195),char(219),char(182),char(125),char(33),char(5), -char(164),char(27),char(172),char(103),char(103),char(103),char(103),char(172),char(27),char(252), -char(37),char(95),char(254),char(150),char(4),char(72),char(253),char(73),char(111),char(171), -char(35),char(81),char(1),char(136),char(1),char(213),char(252),char(255),char(144),char(44), -char(184),char(1),char(179),char(1),char(82),char(254),char(150),char(254),char(7),char(229), -char(1),char(90),char(92),char(0),char(0),char(1),char(0),char(125),char(254),char(20), -char(4),char(227),char(5),char(203),char(0),char(23),char(0),char(45),char(64),char(24), -char(3),char(15),char(9),char(10),char(21),char(10),char(15),char(3),char(24),char(25), -char(19),char(0),char(73),char(89),char(19),char(4),char(12),char(6),char(73),char(89), -char(12),char(19),char(10),char(27),char(0),char(63),char(63),char(43),char(0),char(24), -char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(34),char(0),char(17),char(16),char(0),char(33), -char(50),char(55),char(17),char(35),char(17),char(35),char(32),char(0),char(17),char(52), -char(18),char(36),char(51),char(50),char(23),char(7),char(38),char(3),char(72),char(245), -char(254),char(224),char(1),char(10),char(1),char(2),char(111),char(57),char(170),char(20), -char(254),char(181),char(254),char(159),char(175),char(1),char(72),char(216),char(237),char(170), -char(71),char(171),char(5),char(51),char(254),char(192),char(254),char(232),char(254),char(218), -char(254),char(212),char(23),char(253),char(116),char(1),char(216),char(1),char(132),char(1), -char(109),char(224),char(1),char(86),char(184),char(84),char(146),char(78),char(0),char(1), -char(0),char(115),char(254),char(20),char(3),char(162),char(4),char(92),char(0),char(24), -char(0),char(47),char(64),char(24),char(15),char(3),char(23),char(22),char(9),char(22), -char(3),char(3),char(25),char(26),char(23),char(27),char(6),char(12),char(70),char(89), -char(6),char(16),char(0),char(18),char(70),char(89),char(0),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(0),char(24),char(63),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(5), -char(34),char(0),char(17),char(16),char(0),char(51),char(50),char(22),char(23),char(7), -char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(51),char(50),char(54), -char(55),char(17),char(35),char(17),char(2),char(117),char(254),char(254),char(252),char(1), -char(17),char(251),char(79),char(164),char(48),char(49),char(142),char(104),char(177),char(171), -char(171),char(171),char(53),char(80),char(57),char(166),char(20),char(1),char(31),char(1), -char(18),char(1),char(20),char(1),char(43),char(34),char(23),char(141),char(51),char(205), -char(221),char(220),char(200),char(17),char(26),char(253),char(110),char(1),char(216),char(0), -char(0),char(1),char(0),char(106),char(255),char(252),char(4),char(117),char(5),char(6), -char(0),char(19),char(0),char(47),char(64),char(33),char(4),char(2),char(8),char(3), -char(6),char(0),char(17),char(7),char(10),char(16),char(13),char(18),char(12),char(14), -char(14),char(21),char(20),char(19),char(0),char(3),char(17),char(6),char(15),char(5), -char(16),char(7),char(13),char(10),char(9),char(12),char(11),char(1),char(18),char(0), -char(63),char(205),char(23),char(57),char(17),char(18),char(1),char(23),char(57),char(49), -char(48),char(1),char(3),char(39),char(19),char(37),char(55),char(5),char(19),char(37), -char(55),char(5),char(19),char(23),char(3),char(5),char(7),char(37),char(3),char(5), -char(7),char(2),char(2),char(182),char(121),char(182),char(254),char(225),char(66),char(1), -char(33),char(205),char(254),char(223),char(67),char(1),char(33),char(185),char(118),char(184), -char(1),char(33),char(68),char(254),char(225),char(204),char(1),char(30),char(65),char(1), -char(57),char(254),char(195),char(67),char(1),char(66),char(166),char(115),char(168),char(1), -char(100),char(166),char(117),char(168),char(1),char(61),char(67),char(254),char(192),char(166), -char(115),char(166),char(254),char(158),char(168),char(115),char(0),char(1),char(0),char(203), -char(4),char(145),char(3),char(172),char(5),char(180),char(0),char(19),char(0),char(30), -char(64),char(12),char(0),char(6),char(10),char(16),char(6),char(16),char(20),char(21), -char(3),char(0),char(13),char(9),char(0),char(47),char(51),char(51),char(50),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(6),char(6),char(35),char(34),char(38),char(53),char(52),char(54),char(51), -char(33),char(54),char(54),char(51),char(50),char(22),char(21),char(20),char(6),char(35), -char(1),char(135),char(6),char(42),char(48),char(51),char(41),char(42),char(54),char(1), -char(193),char(6),char(43),char(47),char(51),char(45),char(44),char(54),char(4),char(240), -char(45),char(50),char(50),char(53),char(53),char(41),char(46),char(48),char(49),char(51), -char(56),char(40),char(0),char(1),char(0),char(248),char(4),char(229),char(3),char(219), -char(5),char(215),char(0),char(19),char(0),char(28),char(64),char(11),char(7),char(18), -char(21),char(20),char(0),char(18),char(18),char(12),char(4),char(128),char(9),char(0), -char(47),char(26),char(204),char(50),char(51),char(17),char(51),char(17),char(18),char(1), -char(57),char(57),char(49),char(48),char(1),char(50),char(55),char(54),char(51),char(50), -char(22),char(21),char(21),char(35),char(53),char(52),char(35),char(34),char(14),char(2), -char(35),char(35),char(53),char(1),char(4),char(120),char(150),char(149),char(81),char(111), -char(116),char(125),char(106),char(43),char(102),char(121),char(142),char(84),char(16),char(5), -char(98),char(59),char(58),char(111),char(100),char(31),char(17),char(102),char(36),char(43), -char(36),char(121),char(0),char(1),char(1),char(223),char(4),char(215),char(2),char(205), -char(6),char(53),char(0),char(14),char(0),char(24),char(64),char(10),char(10),char(0), -char(12),char(5),char(0),char(3),char(15),char(16),char(3),char(13),char(0),char(47), -char(204),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48), -char(1),char(52),char(54),char(51),char(50),char(21),char(20),char(14),char(2),char(21), -char(20),char(23),char(21),char(38),char(1),char(223),char(67),char(56),char(92),char(30), -char(36),char(30),char(119),char(238),char(5),char(184),char(56),char(69),char(76),char(27), -char(25),char(16),char(18),char(20),char(54),char(40),char(74),char(64),char(0),char(1), -char(1),char(225),char(4),char(215),char(2),char(207),char(6),char(53),char(0),char(14), -char(0),char(24),char(64),char(10),char(5),char(0),char(0),char(10),char(2),char(3), -char(15),char(16),char(12),char(2),char(0),char(47),char(204),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(20),char(7),char(53), -char(54),char(53),char(52),char(46),char(2),char(53),char(52),char(51),char(50),char(22), -char(2),char(207),char(238),char(119),char(30),char(36),char(30),char(92),char(56),char(67), -char(5),char(184),char(161),char(64),char(74),char(40),char(54),char(20),char(18),char(16), -char(25),char(27),char(76),char(69),char(0),char(8),char(0),char(41),char(254),char(193), -char(7),char(193),char(5),char(145),char(0),char(12),char(0),char(26),char(0),char(40), -char(0),char(54),char(0),char(68),char(0),char(82),char(0),char(95),char(0),char(109), -char(0),char(128),char(64),char(73),char(95),char(40),char(68),char(90),char(34),char(62), -char(12),char(26),char(7),char(20),char(82),char(54),char(109),char(76),char(48),char(103), -char(16),char(110),char(111),char(0),char(7),char(58),char(72),char(72),char(65),char(79), -char(69),char(68),char(62),char(76),char(86),char(99),char(99),char(92),char(106),char(102), -char(95),char(90),char(109),char(30),char(44),char(44),char(37),char(51),char(47),char(34), -char(40),char(3),char(54),char(16),char(23),char(7),char(79),char(76),char(106),char(109), -char(51),char(54),char(23),char(23),char(54),char(51),char(109),char(106),char(76),char(79), -char(7),char(8),char(9),char(13),char(20),char(3),char(9),char(0),char(47),char(51), -char(47),char(51),char(18),char(23),char(57),char(47),char(47),char(47),char(47),char(47), -char(47),char(47),char(47),char(17),char(51),char(17),char(23),char(51),char(17),char(51), -char(51),char(17),char(51),char(17),char(51),char(51),char(51),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(51),char(51),char(17),char(51),char(51),char(17), -char(51),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(49),char(48), -char(1),char(38),char(38),char(35),char(34),char(6),char(7),char(35),char(54),char(51), -char(50),char(22),char(23),char(3),char(38),char(38),char(35),char(34),char(6),char(7), -char(35),char(54),char(54),char(51),char(50),char(22),char(23),char(1),char(38),char(38), -char(35),char(34),char(6),char(7),char(35),char(54),char(54),char(51),char(50),char(22), -char(23),char(33),char(38),char(38),char(35),char(34),char(6),char(7),char(35),char(54), -char(54),char(51),char(50),char(22),char(23),char(1),char(38),char(38),char(35),char(34), -char(6),char(7),char(35),char(54),char(54),char(51),char(50),char(22),char(23),char(33), -char(38),char(38),char(35),char(34),char(6),char(7),char(35),char(54),char(54),char(51), -char(50),char(22),char(23),char(1),char(38),char(38),char(35),char(34),char(6),char(7), -char(35),char(54),char(51),char(50),char(22),char(23),char(33),char(38),char(38),char(35), -char(34),char(6),char(7),char(35),char(54),char(54),char(51),char(50),char(22),char(23), -char(4),char(111),char(5),char(60),char(69),char(78),char(50),char(5),char(75),char(11), -char(197),char(93),char(113),char(7),char(79),char(5),char(60),char(69),char(78),char(50), -char(5),char(75),char(5),char(100),char(103),char(92),char(115),char(6),char(1),char(244), -char(5),char(60),char(68),char(78),char(50),char(5),char(76),char(5),char(101),char(103), -char(92),char(115),char(6),char(251),char(47),char(5),char(60),char(68),char(78),char(50), -char(5),char(76),char(5),char(101),char(103),char(92),char(115),char(6),char(4),char(49), -char(5),char(60),char(68),char(78),char(50),char(5),char(76),char(5),char(101),char(103), -char(92),char(115),char(6),char(251),char(47),char(5),char(60),char(68),char(78),char(50), -char(5),char(76),char(5),char(101),char(103),char(92),char(115),char(6),char(4),char(240), -char(5),char(60),char(68),char(78),char(51),char(5),char(75),char(11),char(198),char(92), -char(115),char(6),char(249),char(190),char(5),char(60),char(68),char(78),char(50),char(5), -char(76),char(5),char(101),char(103),char(92),char(115),char(6),char(4),char(207),char(44), -char(44),char(41),char(47),char(194),char(101),char(93),char(249),char(242),char(44),char(44), -char(41),char(47),char(89),char(105),char(102),char(92),char(1),char(22),char(45),char(43), -char(39),char(49),char(90),char(105),char(102),char(93),char(45),char(43),char(39),char(49), -char(90),char(105),char(102),char(93),char(3),char(219),char(45),char(43),char(39),char(49), -char(90),char(105),char(102),char(93),char(45),char(43),char(39),char(49),char(90),char(105), -char(102),char(93),char(254),char(25),char(44),char(44),char(40),char(48),char(194),char(104), -char(90),char(45),char(43),char(39),char(49),char(90),char(104),char(102),char(92),char(0), -char(0),char(8),char(0),char(41),char(254),char(127),char(7),char(125),char(5),char(211), -char(0),char(7),char(0),char(15),char(0),char(23),char(0),char(31),char(0),char(39), -char(0),char(46),char(0),char(53),char(0),char(62),char(0),char(52),char(64),char(37), -char(21),char(23),char(37),char(32),char(62),char(58),char(5),char(1),char(41),char(44), -char(31),char(28),char(50),char(53),char(9),char(13),char(16),char(63),char(64),char(59), -char(43),char(7),char(46),char(54),char(25),char(21),char(29),char(17),char(47),char(39), -char(15),char(36),char(51),char(14),char(5),char(12),char(5),char(0),char(47),char(47), -char(18),char(23),char(57),char(17),char(18),char(1),char(23),char(57),char(49),char(48), -char(5),char(23),char(6),char(6),char(7),char(35),char(54),char(55),char(3),char(39), -char(54),char(54),char(55),char(51),char(6),char(7),char(1),char(55),char(22),char(22), -char(23),char(21),char(38),char(39),char(5),char(7),char(38),char(38),char(39),char(53), -char(22),char(23),char(1),char(55),char(54),char(54),char(55),char(23),char(6),char(7), -char(1),char(7),char(6),char(7),char(39),char(54),char(55),char(3),char(39),char(38), -char(39),char(55),char(22),char(23),char(1),char(23),char(22),char(22),char(23),char(7), -char(38),char(38),char(39),char(4),char(55),char(11),char(17),char(70),char(36),char(97), -char(53),char(17),char(59),char(11),char(19),char(73),char(31),char(97),char(52),char(18), -char(2),char(35),char(14),char(71),char(200),char(65),char(221),char(129),char(251),char(104), -char(14),char(66),char(191),char(79),char(221),char(129),char(3),char(166),char(2),char(67), -char(190),char(67),char(69),char(177),char(120),char(252),char(234),char(2),char(155),char(169), -char(69),char(177),char(120),char(43),char(17),char(82),char(69),char(67),char(123),char(76), -char(3),char(106),char(17),char(39),char(90),char(22),char(67),char(31),char(130),char(38), -char(35),char(14),char(66),char(191),char(79),char(221),char(129),char(4),char(152),char(14), -char(71),char(200),char(65),char(220),char(130),char(254),char(22),char(11),char(19),char(73), -char(31),char(97),char(53),char(17),char(59),char(11),char(17),char(70),char(36),char(97), -char(53),char(17),char(1),char(170),char(16),char(39),char(88),char(25),char(68),char(110), -char(88),char(252),char(149),char(16),char(89),char(63),char(68),char(110),char(88),char(2), -char(222),char(2),char(140),char(183),char(70),char(198),char(99),char(252),char(233),char(2), -char(69),char(194),char(60),char(70),char(50),char(195),char(52),char(0),char(0),char(2), -char(0),char(201),char(254),char(131),char(6),char(8),char(7),char(94),char(0),char(20), -char(0),char(34),char(0),char(89),char(64),char(47),char(13),char(10),char(12),char(7), -char(14),char(14),char(9),char(19),char(2),char(2),char(20),char(20),char(24),char(32), -char(9),char(10),char(5),char(36),char(35),char(20),char(18),char(6),char(5),char(17), -char(18),char(5),char(18),char(14),char(0),char(14),char(9),char(73),char(89),char(14), -char(18),char(12),char(34),char(31),char(15),char(24),char(1),char(24),char(28),char(21), -char(7),char(0),char(3),char(0),char(63),char(50),char(222),char(50),char(205),char(93), -char(50),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(17), -char(51),char(17),char(51),char(24),char(63),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(19),char(51),char(17),char(20),char(7),char(7),char(51), -char(1),char(51),char(17),char(51),char(3),char(35),char(19),char(35),char(17),char(52), -char(55),char(35),char(1),char(35),char(1),char(34),char(38),char(39),char(51),char(22), -char(22),char(51),char(50),char(54),char(55),char(51),char(6),char(6),char(201),char(161), -char(10),char(4),char(8),char(3),char(52),char(184),char(184),char(143),char(197),char(156), -char(160),char(19),char(9),char(252),char(201),char(186),char(2),char(67),char(186),char(168), -char(10),char(155),char(10),char(93),char(110),char(105),char(99),char(9),char(158),char(12), -char(181),char(5),char(182),char(252),char(209),char(118),char(206),char(83),char(4),char(198), -char(250),char(226),char(253),char(235),char(1),char(125),char(3),char(37),char(175),char(247), -char(251),char(53),char(6),char(43),char(143),char(164),char(108),char(78),char(93),char(93), -char(159),char(148),char(0),char(2),char(0),char(176),char(254),char(135),char(5),char(18), -char(6),char(12),char(0),char(17),char(0),char(31),char(0),char(79),char(64),char(42), -char(10),char(7),char(9),char(4),char(11),char(11),char(6),char(15),char(1),char(1), -char(16),char(16),char(21),char(29),char(6),char(7),char(5),char(33),char(32),char(3), -char(14),char(16),char(17),char(15),char(11),char(6),char(70),char(89),char(11),char(16), -char(21),char(9),char(34),char(28),char(15),char(21),char(1),char(21),char(25),char(18), -char(4),char(15),char(0),char(63),char(222),char(50),char(205),char(93),char(50),char(63), -char(63),char(51),char(43),char(0),char(24),char(63),char(18),char(57),char(57),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20), -char(7),char(1),char(51),char(17),char(51),char(3),char(35),char(19),char(35),char(17), -char(52),char(55),char(1),char(35),char(17),char(37),char(34),char(38),char(39),char(51), -char(22),char(22),char(51),char(50),char(54),char(55),char(51),char(6),char(6),char(1), -char(76),char(10),char(2),char(81),char(207),char(176),char(129),char(172),char(125),char(155), -char(8),char(253),char(174),char(205),char(1),char(236),char(185),char(170),char(10),char(156), -char(7),char(90),char(116),char(103),char(100),char(10),char(157),char(12),char(178),char(4), -char(72),char(253),char(106),char(136),char(136),char(3),char(166),char(252),char(71),char(253), -char(248),char(1),char(121),char(2),char(160),char(158),char(104),char(252),char(90),char(4), -char(72),char(145),char(143),char(164),char(102),char(84),char(90),char(96),char(158),char(149), -char(0),char(2),char(0),char(47),char(0),char(0),char(4),char(125),char(5),char(182), -char(0),char(17),char(0),char(25),char(0),char(77),char(64),char(41),char(8),char(4), -char(18),char(18),char(1),char(15),char(21),char(11),char(11),char(6),char(15),char(17), -char(4),char(26),char(27),char(8),char(25),char(73),char(89),char(7),char(17),char(0), -char(17),char(73),char(89),char(4),char(0),char(8),char(0),char(8),char(0),char(15), -char(2),char(15),char(18),char(74),char(89),char(15),char(18),char(2),char(3),char(0), -char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(47), -char(47),char(17),char(51),char(43),char(17),char(0),char(51),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51), -char(51),char(49),char(48),char(19),char(51),char(53),char(51),char(21),char(33),char(21), -char(33),char(17),char(51),char(32),char(17),char(20),char(4),char(33),char(33),char(17), -char(35),char(1),char(51),char(32),char(17),char(52),char(38),char(35),char(35),char(47), -char(154),char(170),char(1),char(86),char(254),char(170),char(192),char(2),char(74),char(254), -char(236),char(254),char(241),char(254),char(111),char(154),char(1),char(68),char(221),char(1), -char(123),char(184),char(201),char(215),char(4),char(252),char(186),char(186),char(150),char(254), -char(224),char(254),char(100),char(210),char(216),char(4),char(102),char(252),char(43),char(1), -char(25),char(132),char(128),char(0),char(0),char(2),char(0),char(20),char(0),char(0), -char(4),char(76),char(6),char(20),char(0),char(18),char(0),char(26),char(0),char(75), -char(64),char(40),char(4),char(0),char(20),char(20),char(16),char(12),char(23),char(8), -char(8),char(2),char(12),char(14),char(4),char(27),char(28),char(4),char(19),char(70), -char(89),char(3),char(14),char(15),char(14),char(71),char(89),char(0),char(15),char(4), -char(15),char(4),char(15),char(12),char(17),char(0),char(12),char(20),char(70),char(89), -char(12),char(21),char(0),char(63),char(43),char(0),char(24),char(63),char(18),char(57), -char(57),char(47),char(47),char(17),char(51),char(43),char(17),char(0),char(51),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(51),char(49),char(48),char(1),char(33),char(21),char(33),char(17), -char(33),char(50),char(22),char(21),char(20),char(6),char(35),char(33),char(17),char(35), -char(53),char(51),char(53),char(51),char(17),char(17),char(33),char(32),char(53),char(52), -char(38),char(35),char(1),char(86),char(1),char(39),char(254),char(217),char(1),char(64), -char(223),char(215),char(224),char(221),char(254),char(33),char(156),char(156),char(166),char(1), -char(49),char(1),char(31),char(132),char(159),char(5),char(31),char(129),char(253),char(229), -char(154),char(155),char(164),char(170),char(4),char(158),char(129),char(245),char(251),char(224), -char(254),char(151),char(185),char(92),char(84),char(0),char(0),char(2),char(0),char(201), -char(0),char(0),char(4),char(121),char(5),char(182),char(0),char(15),char(0),char(28), -char(0),char(72),char(64),char(41),char(16),char(10),char(10),char(11),char(24),char(0), -char(0),char(4),char(5),char(3),char(22),char(6),char(21),char(19),char(20),char(11), -char(10),char(29),char(30),char(22),char(19),char(28),char(16),char(12),char(28),char(74), -char(89),char(9),char(16),char(74),char(89),char(6),char(3),char(12),char(9),char(9), -char(11),char(12),char(3),char(11),char(18),char(0),char(63),char(63),char(18),char(57), -char(47),char(18),char(57),char(57),char(43),char(43),char(17),char(18),char(0),char(57), -char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(20),char(6),char(7),char(23),char(7), -char(39),char(6),char(35),char(35),char(17),char(35),char(17),char(33),char(32),char(4), -char(1),char(51),char(50),char(55),char(39),char(55),char(23),char(54),char(53),char(52), -char(38),char(35),char(35),char(4),char(121),char(115),char(108),char(120),char(100),char(149), -char(102),char(136),char(184),char(170),char(1),char(137),char(1),char(18),char(1),char(21), -char(252),char(250),char(166),char(87),char(76),char(108),char(108),char(140),char(127),char(194), -char(202),char(200),char(4),char(12),char(127),char(201),char(57),char(157),char(84),char(192), -char(27),char(253),char(193),char(5),char(182),char(215),char(253),char(242),char(10),char(141), -char(82),char(176),char(72),char(178),char(145),char(142),char(0),char(2),char(0),char(176), -char(254),char(20),char(4),char(117),char(4),char(92),char(0),char(24),char(0),char(41), -char(0),char(85),char(64),char(49),char(29),char(11),char(4),char(7),char(7),char(8), -char(39),char(18),char(18),char(21),char(22),char(20),char(37),char(23),char(34),char(36), -char(35),char(8),char(10),char(42),char(43),char(37),char(34),char(25),char(32),char(15), -char(25),char(70),char(89),char(12),char(11),char(11),char(4),char(20),char(23),char(4), -char(0),char(15),char(16),char(9),char(15),char(8),char(27),char(0),char(32),char(70), -char(89),char(0),char(22),char(0),char(63),char(43),char(0),char(24),char(63),char(63), -char(63),char(18),char(23),char(57),char(17),char(51),char(43),char(17),char(18),char(0), -char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(51),char(51),char(49),char(48),char(5),char(34),char(38), -char(39),char(35),char(22),char(21),char(17),char(35),char(17),char(51),char(23),char(51), -char(54),char(54),char(51),char(50),char(18),char(17),char(16),char(7),char(23),char(7), -char(39),char(6),char(3),char(34),char(6),char(7),char(21),char(20),char(22),char(51), -char(50),char(55),char(39),char(55),char(23),char(54),char(53),char(52),char(38),char(2), -char(174),char(107),char(177),char(60),char(12),char(12),char(166),char(135),char(25),char(8), -char(64),char(169),char(109),char(218),char(237),char(183),char(115),char(100),char(131),char(71), -char(109),char(168),char(150),char(2),char(154),char(170),char(47),char(41),char(121),char(106), -char(129),char(101),char(150),char(20),char(79),char(82),char(148),char(34),char(254),char(61), -char(6),char(52),char(150),char(90),char(80),char(254),char(214),char(254),char(243),char(254), -char(174),char(145),char(156),char(80),char(174),char(24),char(3),char(227),char(186),char(203), -char(37),char(231),char(199),char(12),char(158),char(80),char(170),char(103),char(249),char(215), -char(209),char(0),char(0),char(1),char(0),char(47),char(0),char(0),char(4),char(8), -char(5),char(182),char(0),char(13),char(0),char(60),char(64),char(31),char(3),char(7), -char(7),char(12),char(8),char(0),char(5),char(8),char(10),char(4),char(14),char(15), -char(6),char(10),char(11),char(10),char(73),char(89),char(3),char(11),char(11),char(8), -char(13),char(13),char(2),char(73),char(89),char(13),char(3),char(8),char(18),char(0), -char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(51), -char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(21),char(33),char(17), -char(33),char(21),char(33),char(17),char(35),char(17),char(35),char(53),char(51),char(17), -char(4),char(8),char(253),char(107),char(1),char(168),char(254),char(88),char(170),char(154), -char(154),char(5),char(182),char(153),char(254),char(2),char(150),char(253),char(119),char(2), -char(137),char(150),char(2),char(151),char(0),char(1),char(0),char(18),char(0),char(0), -char(3),char(66),char(4),char(72),char(0),char(13),char(0),char(60),char(64),char(31), -char(2),char(6),char(6),char(11),char(7),char(0),char(4),char(7),char(9),char(4), -char(14),char(15),char(5),char(9),char(10),char(9),char(71),char(89),char(2),char(10), -char(10),char(7),char(12),char(12),char(1),char(70),char(89),char(12),char(15),char(7), -char(21),char(0),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(33), -char(17),char(33),char(21),char(33),char(17),char(35),char(17),char(35),char(53),char(51), -char(17),char(33),char(3),char(66),char(254),char(20),char(1),char(90),char(254),char(166), -char(166),char(158),char(158),char(2),char(146),char(3),char(188),char(254),char(168),char(127), -char(254),char(27),char(1),char(229),char(127),char(1),char(228),char(0),char(0),char(1), -char(0),char(201),char(254),char(0),char(4),char(219),char(5),char(182),char(0),char(27), -char(0),char(65),char(64),char(35),char(9),char(3),char(3),char(4),char(25),char(14), -char(14),char(7),char(20),char(4),char(4),char(28),char(29),char(17),char(23),char(73), -char(89),char(17),char(28),char(11),char(0),char(73),char(89),char(11),char(11),char(4), -char(5),char(5),char(8),char(73),char(89),char(5),char(3),char(4),char(18),char(0), -char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(34),char(7), -char(17),char(35),char(17),char(33),char(21),char(33),char(17),char(54),char(51),char(32), -char(0),char(17),char(16),char(0),char(33),char(34),char(38),char(39),char(53),char(22), -char(51),char(32),char(17),char(52),char(0),char(2),char(49),char(100),char(90),char(170), -char(3),char(73),char(253),char(97),char(90),char(121),char(1),char(64),char(1),char(85), -char(254),char(226),char(254),char(253),char(83),char(125),char(70),char(123),char(137),char(1), -char(127),char(255),char(0),char(2),char(143),char(12),char(253),char(125),char(5),char(182), -char(153),char(253),char(252),char(10),char(254),char(173),char(254),char(198),char(254),char(197), -char(254),char(165),char(21),char(28),char(152),char(49),char(1),char(254),char(245),char(1), -char(4),char(0),char(0),char(1),char(0),char(176),char(254),char(10),char(3),char(250), -char(4),char(72),char(0),char(27),char(0),char(65),char(64),char(35),char(8),char(25), -char(20),char(14),char(14),char(15),char(15),char(2),char(18),char(25),char(4),char(29), -char(28),char(22),char(11),char(70),char(89),char(22),char(22),char(15),char(16),char(16), -char(19),char(70),char(89),char(16),char(15),char(15),char(21),char(0),char(5),char(70), -char(89),char(0),char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(1),char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(7),char(17),char(35),char(17),char(33),char(21), -char(33),char(17),char(54),char(51),char(32),char(0),char(17),char(16),char(2),char(2), -char(70),char(145),char(101),char(116),char(123),char(133),char(136),char(178),char(181),char(69), -char(74),char(166),char(2),char(154),char(254),char(12),char(82),char(59),char(1),char(16), -char(1),char(7),char(228),char(254),char(10),char(60),char(149),char(63),char(202),char(215), -char(223),char(208),char(17),char(254),char(37),char(4),char(72),char(142),char(254),char(183), -char(12),char(254),char(229),char(254),char(217),char(254),char(245),char(254),char(218),char(0), -char(0),char(1),char(0),char(2),char(254),char(131),char(6),char(248),char(5),char(182), -char(0),char(21),char(0),char(77),char(64),char(41),char(6),char(17),char(17),char(3), -char(18),char(13),char(12),char(12),char(8),char(9),char(18),char(0),char(1),char(21), -char(7),char(22),char(23),char(18),char(21),char(18),char(19),char(16),char(9),char(6), -char(3),char(0),char(0),char(15),char(1),char(15),char(10),char(73),char(89),char(15), -char(18),char(13),char(34),char(7),char(4),char(1),char(3),char(0),char(63),char(51), -char(51),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(17),char(51), -char(51),char(51),char(51),char(51),char(24),char(63),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(49), -char(48),char(1),char(1),char(51),char(1),char(17),char(51),char(17),char(1),char(51), -char(1),char(1),char(51),char(17),char(35),char(17),char(35),char(1),char(17),char(35), -char(17),char(1),char(35),char(2),char(86),char(253),char(193),char(190),char(2),char(57), -char(164),char(2),char(58),char(190),char(253),char(192),char(1),char(218),char(180),char(162), -char(94),char(253),char(186),char(164),char(253),char(187),char(199),char(2),char(240),char(2), -char(198),char(253),char(60),char(2),char(196),char(253),char(60),char(2),char(196),char(253), -char(60),char(253),char(168),char(253),char(233),char(1),char(125),char(2),char(229),char(253), -char(27),char(2),char(229),char(253),char(27),char(0),char(0),char(1),char(0),char(4), -char(254),char(135),char(6),char(31),char(4),char(72),char(0),char(21),char(0),char(75), -char(64),char(40),char(2),char(13),char(13),char(21),char(14),char(9),char(8),char(8), -char(4),char(5),char(14),char(18),char(19),char(17),char(7),char(22),char(23),char(21), -char(15),char(12),char(5),char(2),char(18),char(18),char(11),char(3),char(0),char(19), -char(15),char(14),char(17),char(21),char(11),char(6),char(70),char(89),char(11),char(21), -char(9),char(34),char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(51), -char(63),char(51),char(51),char(18),char(57),char(17),char(51),char(51),char(51),char(51), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(1),char(51),char(17),char(1),char(51), -char(1),char(1),char(51),char(17),char(35),char(17),char(35),char(1),char(17),char(35), -char(17),char(1),char(35),char(1),char(1),char(51),char(1),char(2),char(164),char(153), -char(1),char(197),char(182),char(254),char(54),char(1),char(112),char(193),char(162),char(94), -char(254),char(30),char(153),char(254),char(31),char(191),char(1),char(240),char(254),char(55), -char(182),char(1),char(195),char(4),char(72),char(253),char(237),char(2),char(19),char(253), -char(237),char(254),char(90),char(253),char(248),char(1),char(121),char(2),char(45),char(253), -char(211),char(2),char(45),char(253),char(211),char(2),char(53),char(2),char(19),char(253), -char(237),char(0),char(255),char(255),char(0),char(74),char(254),char(66),char(4),char(53), -char(5),char(203),char(2),char(38),char(1),char(177),char(0),char(0),char(0),char(7), -char(3),char(127),char(1),char(88),char(0),char(0),char(255),char(255),char(0),char(68), -char(254),char(66),char(3),char(127),char(4),char(92),char(2),char(38),char(1),char(209), -char(0),char(0),char(0),char(7),char(3),char(127),char(1),char(8),char(0),char(0), -char(0),char(1),char(0),char(201),char(254),char(131),char(5),char(43),char(5),char(182), -char(0),char(15),char(0),char(59),char(64),char(32),char(12),char(8),char(8),char(9), -char(3),char(2),char(2),char(14),char(15),char(6),char(9),char(5),char(16),char(17), -char(15),char(12),char(6),char(3),char(5),char(13),char(10),char(3),char(9),char(18), -char(5),char(0),char(73),char(89),char(5),char(18),char(3),char(34),char(0),char(63), -char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(23),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(37),char(51),char(17),char(35),char(17),char(35),char(1), -char(7),char(17),char(35),char(17),char(51),char(17),char(1),char(51),char(1),char(4), -char(127),char(172),char(162),char(102),char(253),char(233),char(153),char(170),char(170),char(2), -char(151),char(201),char(253),char(180),char(154),char(253),char(233),char(1),char(125),char(2), -char(197),char(136),char(253),char(195),char(5),char(182),char(253),char(43),char(2),char(213), -char(253),char(133),char(0),char(1),char(0),char(176),char(254),char(133),char(4),char(61), -char(4),char(72),char(0),char(14),char(0),char(58),char(64),char(31),char(14),char(10), -char(10),char(11),char(6),char(5),char(5),char(1),char(2),char(11),char(4),char(15), -char(16),char(2),char(14),char(9),char(3),char(8),char(0),char(12),char(15),char(11), -char(21),char(8),char(3),char(70),char(89),char(8),char(21),char(6),char(34),char(0), -char(63),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(23), -char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(51),char(1),char(1),char(51),char(17), -char(35),char(17),char(35),char(1),char(17),char(35),char(17),char(51),char(17),char(3), -char(47),char(182),char(254),char(39),char(1),char(127),char(178),char(159),char(84),char(254), -char(12),char(166),char(166),char(4),char(72),char(253),char(239),char(254),char(88),char(253), -char(246),char(1),char(123),char(2),char(43),char(253),char(213),char(4),char(72),char(253), -char(235),char(0),char(0),char(1),char(0),char(201),char(0),char(0),char(4),char(233), -char(5),char(182),char(0),char(18),char(0),char(56),char(64),char(30),char(6),char(2), -char(2),char(3),char(10),char(17),char(17),char(7),char(18),char(14),char(12),char(18), -char(3),char(4),char(19),char(20),char(8),char(10),char(6),char(0),char(16),char(18), -char(6),char(3),char(11),char(4),char(3),char(15),char(3),char(18),char(0),char(63), -char(51),char(63),char(51),char(18),char(23),char(57),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(7),char(17),char(35),char(17),char(51),char(17),char(55), -char(17),char(51),char(21),char(1),char(51),char(1),char(1),char(35),char(1),char(17), -char(35),char(1),char(240),char(125),char(170),char(170),char(125),char(125),char(1),char(155), -char(203),char(253),char(180),char(2),char(98),char(200),char(254),char(76),char(125),char(2), -char(168),char(107),char(253),char(195),char(5),char(182),char(253),char(37),char(139),char(1), -char(93),char(211),char(1),char(198),char(253),char(133),char(252),char(197),char(2),char(92), -char(254),char(207),char(0),char(1),char(0),char(176),char(0),char(0),char(4),char(59), -char(4),char(72),char(0),char(19),char(0),char(58),char(64),char(31),char(6),char(2), -char(2),char(3),char(14),char(10),char(18),char(18),char(7),char(19),char(15),char(12), -char(19),char(3),char(4),char(20),char(21),char(8),char(10),char(6),char(1),char(17), -char(19),char(6),char(3),char(11),char(4),char(15),char(16),char(3),char(21),char(0), -char(63),char(51),char(63),char(51),char(18),char(23),char(57),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(39),char(17),char(35),char(17),char(51), -char(17),char(55),char(17),char(51),char(21),char(1),char(51),char(1),char(21),char(1), -char(35),char(1),char(21),char(35),char(1),char(205),char(119),char(166),char(166),char(119), -char(131),char(1),char(14),char(182),char(254),char(60),char(1),char(235),char(194),char(254), -char(213),char(129),char(1),char(178),char(121),char(253),char(213),char(4),char(72),char(253), -char(235),char(121),char(1),char(74),char(205),char(1),char(31),char(254),char(37),char(107), -char(253),char(254),char(1),char(59),char(221),char(0),char(0),char(1),char(0),char(47), -char(0),char(0),char(4),char(233),char(5),char(182),char(0),char(19),char(0),char(71), -char(64),char(38),char(8),char(4),char(16),char(16),char(1),char(17),char(11),char(14), -char(12),char(10),char(6),char(14),char(17),char(19),char(6),char(20),char(21),char(7), -char(19),char(0),char(19),char(73),char(89),char(4),char(11),char(8),char(14),char(3), -char(17),char(0),char(0),char(2),char(13),char(17),char(18),char(9),char(2),char(3), -char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(47),char(18),char(23), -char(57),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(51),char(17),char(51),char(51),char(49), -char(48),char(19),char(51),char(53),char(51),char(21),char(51),char(21),char(35),char(17), -char(1),char(51),char(1),char(1),char(35),char(1),char(7),char(17),char(35),char(17), -char(35),char(47),char(154),char(170),char(221),char(221),char(2),char(149),char(203),char(253), -char(180),char(2),char(98),char(206),char(253),char(241),char(153),char(170),char(154),char(5), -char(4),char(178),char(178),char(151),char(254),char(110),char(2),char(219),char(253),char(133), -char(252),char(197),char(2),char(197),char(134),char(253),char(193),char(4),char(109),char(0), -char(0),char(1),char(0),char(20),char(0),char(0),char(4),char(27),char(6),char(20), -char(0),char(25),char(0),char(77),char(64),char(43),char(10),char(8),char(4),char(22), -char(22),char(1),char(23),char(18),char(16),char(6),char(17),char(23),char(25),char(6), -char(26),char(27),char(20),char(10),char(15),char(19),char(23),char(21),char(7),char(25), -char(0),char(25),char(71),char(89),char(4),char(15),char(0),char(31),char(0),char(47), -char(0),char(3),char(0),char(0),char(2),char(15),char(15),char(2),char(0),char(0), -char(63),char(63),char(18),char(57),char(47),char(93),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(51),char(18),char(57),char(57),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(51),char(17),char(51),char(51),char(51),char(49), -char(48),char(19),char(51),char(53),char(51),char(21),char(33),char(21),char(33),char(17), -char(7),char(7),char(51),char(55),char(54),char(54),char(1),char(51),char(1),char(1), -char(35),char(1),char(7),char(17),char(35),char(17),char(35),char(20),char(156),char(164), -char(1),char(125),char(254),char(131),char(3),char(3),char(8),char(18),char(55),char(40), -char(1),char(112),char(199),char(254),char(68),char(1),char(217),char(199),char(254),char(125), -char(125),char(164),char(156),char(5),char(90),char(186),char(186),char(127),char(253),char(232), -char(91),char(55),char(24),char(74),char(48),char(1),char(133),char(254),char(45),char(253), -char(139),char(2),char(4),char(106),char(254),char(102),char(4),char(219),char(0),char(1), -char(0),char(16),char(0),char(0),char(5),char(131),char(5),char(182),char(0),char(13), -char(0),char(53),char(64),char(27),char(2),char(10),char(10),char(11),char(5),char(8), -char(6),char(4),char(8),char(11),char(4),char(14),char(15),char(8),char(2),char(0), -char(7),char(11),char(18),char(3),char(3),char(0),char(13),char(73),char(89),char(0), -char(3),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18), -char(57),char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(19),char(33),char(17),char(1),char(51), -char(1),char(1),char(35),char(1),char(7),char(17),char(35),char(17),char(33),char(16), -char(1),char(252),char(2),char(150),char(203),char(253),char(180),char(2),char(98),char(201), -char(253),char(236),char(154),char(170),char(254),char(174),char(5),char(182),char(253),char(37), -char(2),char(219),char(253),char(133),char(252),char(197),char(2),char(197),char(136),char(253), -char(195),char(5),char(29),char(0),char(0),char(1),char(0),char(41),char(0),char(0), -char(4),char(227),char(4),char(72),char(0),char(12),char(0),char(53),char(64),char(27), -char(5),char(1),char(1),char(9),char(9),char(10),char(12),char(10),char(4),char(6), -char(4),char(14),char(13),char(8),char(2),char(0),char(7),char(10),char(21),char(3), -char(15),char(0),char(12),char(70),char(89),char(0),char(15),char(0),char(63),char(43), -char(0),char(24),char(63),char(63),char(51),char(18),char(57),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(19),char(33),char(17),char(1),char(51),char(1),char(1),char(35),char(1), -char(17),char(35),char(17),char(33),char(41),char(2),char(2),char(1),char(219),char(182), -char(254),char(39),char(2),char(0),char(194),char(254),char(10),char(164),char(254),char(162), -char(4),char(72),char(253),char(235),char(2),char(21),char(253),char(237),char(253),char(203), -char(2),char(43),char(253),char(213),char(3),char(188),char(0),char(1),char(0),char(201), -char(254),char(131),char(5),char(193),char(5),char(182),char(0),char(15),char(0),char(68), -char(64),char(36),char(12),char(8),char(8),char(9),char(13),char(5),char(5),char(0), -char(3),char(2),char(2),char(0),char(9),char(3),char(16),char(17),char(12),char(7), -char(73),char(89),char(12),char(12),char(5),char(14),char(10),char(3),char(9),char(18), -char(5),char(0),char(73),char(89),char(5),char(18),char(3),char(34),char(0),char(63), -char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(57),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(51), -char(17),char(35),char(17),char(35),char(17),char(33),char(17),char(35),char(17),char(51), -char(17),char(33),char(17),char(51),char(5),char(31),char(162),char(162),char(170),char(252), -char(254),char(170),char(170),char(3),char(2),char(170),char(154),char(253),char(233),char(1), -char(125),char(2),char(176),char(253),char(80),char(5),char(182),char(253),char(146),char(2), -char(110),char(0),char(0),char(1),char(0),char(176),char(254),char(135),char(4),char(248), -char(4),char(72),char(0),char(15),char(0),char(78),char(64),char(43),char(1),char(13), -char(13),char(14),char(2),char(10),char(10),char(5),char(8),char(7),char(7),char(5), -char(14),char(3),char(16),char(17),char(1),char(12),char(70),char(89),char(15),char(1), -char(31),char(1),char(2),char(11),char(3),char(1),char(1),char(10),char(3),char(15), -char(15),char(14),char(21),char(10),char(5),char(70),char(89),char(10),char(21),char(8), -char(34),char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(63),char(51), -char(18),char(57),char(47),char(95),char(94),char(93),char(43),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(17),char(33),char(17),char(51),char(17), -char(51),char(17),char(35),char(17),char(35),char(17),char(33),char(17),char(35),char(17), -char(1),char(86),char(2),char(102),char(166),char(150),char(166),char(150),char(253),char(154), -char(166),char(4),char(72),char(254),char(53),char(1),char(203),char(252),char(71),char(253), -char(248),char(1),char(121),char(1),char(238),char(254),char(18),char(4),char(72),char(0), -char(0),char(1),char(0),char(201),char(0),char(0),char(6),char(111),char(5),char(182), -char(0),char(13),char(0),char(63),char(64),char(33),char(10),char(6),char(6),char(7), -char(11),char(3),char(3),char(2),char(0),char(2),char(7),char(3),char(14),char(15), -char(10),char(5),char(73),char(89),char(10),char(10),char(7),char(12),char(12),char(1), -char(73),char(89),char(12),char(3),char(8),char(3),char(3),char(7),char(18),char(0), -char(63),char(51),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(17), -char(35),char(17),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(17), -char(33),char(6),char(111),char(254),char(176),char(172),char(253),char(0),char(170),char(170), -char(3),char(0),char(1),char(252),char(5),char(29),char(250),char(227),char(2),char(176), -char(253),char(80),char(5),char(182),char(253),char(146),char(2),char(110),char(0),char(1), -char(0),char(176),char(0),char(0),char(5),char(193),char(4),char(72),char(0),char(13), -char(0),char(73),char(64),char(39),char(1),char(11),char(11),char(12),char(2),char(8), -char(8),char(7),char(4),char(7),char(12),char(3),char(14),char(15),char(13),char(15), -char(1),char(10),char(70),char(89),char(15),char(1),char(31),char(1),char(2),char(11), -char(3),char(1),char(1),char(3),char(8),char(12),char(21),char(3),char(6),char(70), -char(89),char(3),char(15),char(0),char(63),char(43),char(0),char(24),char(63),char(51), -char(18),char(57),char(47),char(95),char(94),char(93),char(43),char(0),char(24),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(33),char(17),char(33), -char(21),char(33),char(17),char(35),char(17),char(33),char(17),char(35),char(17),char(1), -char(86),char(2),char(102),char(2),char(5),char(254),char(161),char(166),char(253),char(154), -char(166),char(4),char(72),char(254),char(53),char(1),char(203),char(140),char(252),char(68), -char(1),char(238),char(254),char(18),char(4),char(72),char(0),char(1),char(0),char(201), -char(254),char(0),char(8),char(29),char(5),char(182),char(0),char(29),char(0),char(71), -char(64),char(38),char(4),char(5),char(8),char(0),char(0),char(1),char(23),char(13), -char(13),char(18),char(1),char(5),char(4),char(30),char(31),char(16),char(21),char(73), -char(89),char(16),char(28),char(10),char(26),char(73),char(89),char(10),char(10),char(5), -char(6),char(6),char(3),char(73),char(89),char(6),char(3),char(1),char(5),char(18), -char(0),char(63),char(51),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(33),char(35),char(17),char(33),char(17),char(35),char(17),char(33),char(17), -char(54),char(51),char(32),char(0),char(17),char(16),char(0),char(33),char(34),char(39), -char(53),char(22),char(51),char(32),char(17),char(52),char(2),char(35),char(34),char(6), -char(7),char(4),char(217),char(170),char(253),char(68),char(170),char(4),char(16),char(68), -char(125),char(1),char(50),char(1),char(81),char(254),char(229),char(254),char(254),char(156), -char(123),char(134),char(127),char(1),char(122),char(230),char(232),char(42),char(127),char(24), -char(5),char(29),char(250),char(227),char(5),char(182),char(253),char(97),char(12),char(254), -char(168),char(254),char(200),char(254),char(199),char(254),char(166),char(49),char(152),char(49), -char(1),char(254),char(242),char(1),char(5),char(7),char(5),char(0),char(0),char(1), -char(0),char(176),char(254),char(10),char(6),char(168),char(4),char(72),char(0),char(28), -char(0),char(71),char(64),char(38),char(17),char(18),char(21),char(13),char(13),char(14), -char(7),char(26),char(26),char(2),char(14),char(18),char(4),char(29),char(30),char(23), -char(10),char(70),char(89),char(23),char(23),char(18),char(19),char(19),char(16),char(70), -char(89),char(19),char(15),char(14),char(18),char(21),char(0),char(5),char(70),char(89), -char(0),char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(51),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(34),char(39),char(53),char(22),char(51),char(50), -char(17),char(52),char(38),char(35),char(34),char(7),char(17),char(35),char(17),char(33), -char(17),char(35),char(17),char(33),char(17),char(54),char(51),char(50),char(0),char(17), -char(16),char(2),char(5),char(23),char(131),char(97),char(109),char(108),char(240),char(166), -char(172),char(67),char(72),char(168),char(253),char(223),char(166),char(3),char(111),char(75), -char(66),char(246),char(1),char(6),char(209),char(254),char(10),char(60),char(149),char(63), -char(1),char(161),char(223),char(208),char(21),char(254),char(41),char(3),char(184),char(252), -char(72),char(4),char(72),char(254),char(39),char(14),char(254),char(215),char(254),char(231), -char(254),char(244),char(254),char(219),char(0),char(2),char(0),char(125),char(255),char(172), -char(5),char(225),char(5),char(205),char(0),char(40),char(0),char(52),char(0),char(80), -char(64),char(44),char(27),char(17),char(47),char(35),char(41),char(0),char(8),char(0), -char(3),char(22),char(32),char(35),char(17),char(7),char(53),char(54),char(38),char(44), -char(74),char(89),char(12),char(50),char(38),char(38),char(14),char(20),char(20),char(25), -char(73),char(89),char(20),char(4),char(10),char(5),char(73),char(89),char(10),char(14), -char(14),char(30),char(73),char(89),char(14),char(19),char(0),char(63),char(43),char(0), -char(24),char(16),char(196),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(24),char(47),char(57),char(57),char(43),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(20),char(2),char(7),char(22),char(51),char(50),char(55),char(21),char(6), -char(35),char(34),char(39),char(6),char(35),char(32),char(0),char(17),char(16),char(0), -char(33),char(50),char(23),char(7),char(38),char(35),char(32),char(17),char(16),char(18), -char(51),char(50),char(55),char(38),char(2),char(53),char(52),char(18),char(51),char(50), -char(18),char(3),char(52),char(38),char(35),char(34),char(6),char(21),char(20),char(22), -char(23),char(54),char(54),char(5),char(184),char(138),char(116),char(66),char(90),char(78), -char(61),char(56),char(91),char(178),char(148),char(102),char(144),char(254),char(202),char(254), -char(161),char(1),char(73),char(1),char(58),char(127),char(92),char(47),char(84),char(90), -char(254),char(51),char(255),char(235),char(54),char(46),char(86),char(92),char(198),char(175), -char(181),char(193),char(176),char(103),char(93),char(94),char(103),char(93),char(83),char(102), -char(115),char(2),char(166),char(181),char(254),char(203),char(86),char(30),char(22),char(153), -char(25),char(100),char(36),char(1),char(137),char(1),char(86),char(1),char(120),char(1), -char(138),char(35),char(145),char(28),char(253),char(158),char(254),char(224),char(254),char(206), -char(10),char(103),char(1),char(28),char(160),char(244),char(1),char(10),char(254),char(246), -char(254),char(254),char(177),char(204),char(201),char(176),char(140),char(254),char(85),char(67), -char(255),char(0),char(0),char(2),char(0),char(115),char(255),char(199),char(4),char(211), -char(4),char(92),char(0),char(10),char(0),char(53),char(0),char(80),char(64),char(44), -char(30),char(19),char(0),char(38),char(6),char(44),char(52),char(44),char(47),char(24), -char(36),char(38),char(19),char(7),char(54),char(55),char(41),char(8),char(71),char(89), -char(13),char(3),char(41),char(41),char(15),char(22),char(22),char(27),char(70),char(89), -char(22),char(16),char(11),char(49),char(70),char(89),char(11),char(15),char(15),char(33), -char(70),char(89),char(15),char(22),char(0),char(63),char(43),char(0),char(24),char(16), -char(196),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(57),char(57),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(20), -char(22),char(23),char(54),char(54),char(53),char(52),char(35),char(34),char(6),char(1), -char(34),char(39),char(6),char(35),char(34),char(38),char(38),char(53),char(16),char(18), -char(51),char(50),char(23),char(7),char(38),char(35),char(34),char(6),char(21),char(20), -char(22),char(51),char(50),char(54),char(55),char(38),char(53),char(52),char(54),char(51), -char(50),char(22),char(21),char(20),char(6),char(7),char(22),char(51),char(50),char(55), -char(21),char(6),char(2),char(238),char(68),char(63),char(68),char(83),char(135),char(72), -char(75),char(1),char(102),char(147),char(130),char(96),char(123),char(149),char(226),char(122), -char(248),char(227),char(91),char(77),char(37),char(54),char(79),char(156),char(145),char(170), -char(164),char(37),char(53),char(6),char(139),char(168),char(151),char(148),char(157),char(107), -char(94),char(52),char(67),char(66),char(49),char(39),char(1),char(242),char(94),char(161), -char(53),char(44),char(158),char(110),char(235),char(125),char(253),char(99),char(77),char(40), -char(139),char(254),char(164),char(1),char(19),char(1),char(48),char(22),char(138),char(19), -char(209),char(231),char(206),char(210),char(9),char(3),char(148),char(225),char(173),char(193), -char(189),char(177),char(125),char(209),char(64),char(26),char(14),char(137),char(14),char(0), -char(255),char(255),char(0),char(125),char(254),char(66),char(4),char(207),char(5),char(203), -char(2),char(38),char(0),char(38),char(0),char(0),char(0),char(7),char(3),char(127), -char(2),char(37),char(0),char(0),char(255),char(255),char(0),char(115),char(254),char(66), -char(3),char(139),char(4),char(92),char(2),char(38),char(0),char(70),char(0),char(0), -char(0),char(7),char(3),char(127),char(1),char(131),char(0),char(0),char(0),char(1), -char(0),char(16),char(254),char(131),char(4),char(90),char(5),char(182),char(0),char(11), -char(0),char(50),char(64),char(27),char(6),char(11),char(8),char(9),char(3),char(9), -char(11),char(1),char(4),char(12),char(13),char(11),char(6),char(73),char(89),char(11), -char(18),char(9),char(34),char(5),char(1),char(2),char(1),char(73),char(89),char(2), -char(3),char(0),char(63),char(43),char(17),char(0),char(51),char(24),char(63),char(63), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(53),char(33),char(21),char(33),char(17),char(51), -char(17),char(35),char(17),char(35),char(1),char(223),char(254),char(49),char(4),char(74), -char(254),char(49),char(162),char(162),char(172),char(5),char(29),char(153),char(153),char(251), -char(125),char(253),char(233),char(1),char(125),char(0),char(0),char(1),char(0),char(41), -char(254),char(135),char(3),char(145),char(4),char(72),char(0),char(11),char(0),char(52), -char(64),char(27),char(6),char(11),char(8),char(9),char(3),char(9),char(11),char(1), -char(4),char(12),char(13),char(9),char(34),char(5),char(1),char(2),char(1),char(70), -char(89),char(2),char(15),char(11),char(6),char(70),char(89),char(11),char(21),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(0),char(51),char(24), -char(63),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(53),char(33),char(21),char(33),char(17),char(51), -char(17),char(35),char(17),char(35),char(1),char(137),char(254),char(160),char(3),char(104), -char(254),char(158),char(150),char(166),char(150),char(3),char(188),char(140),char(140),char(252), -char(211),char(253),char(248),char(1),char(121),char(0),char(255),char(255),char(0),char(0), -char(0),char(0),char(4),char(123),char(5),char(182),char(2),char(6),char(0),char(60), -char(0),char(0),char(0),char(1),char(0),char(0),char(254),char(20),char(4),char(2), -char(4),char(72),char(0),char(13),char(0),char(41),char(64),char(20),char(0),char(1), -char(12),char(1),char(3),char(3),char(14),char(15),char(8),char(7),char(13),char(7), -char(2),char(11),char(3),char(15),char(2),char(21),char(1),char(27),char(0),char(63), -char(63),char(63),char(51),char(18),char(57),char(57),char(17),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(35),char(17), -char(1),char(51),char(19),char(22),char(23),char(51),char(54),char(55),char(19),char(51), -char(1),char(2),char(84),char(166),char(254),char(82),char(172),char(236),char(83),char(19), -char(8),char(33),char(70),char(233),char(172),char(254),char(82),char(254),char(20),char(1), -char(232),char(4),char(76),char(253),char(155),char(222),char(97),char(138),char(181),char(2), -char(101),char(251),char(180),char(0),char(0),char(1),char(0),char(0),char(0),char(0), -char(4),char(123),char(5),char(182),char(0),char(16),char(0),char(58),char(64),char(30), -char(4),char(8),char(8),char(13),char(9),char(2),char(6),char(9),char(11),char(15), -char(5),char(17),char(18),char(7),char(11),char(12),char(11),char(73),char(89),char(4), -char(0),char(15),char(12),char(12),char(9),char(1),char(15),char(3),char(9),char(18), -char(0),char(63),char(63),char(51),char(18),char(57),char(47),char(18),char(57),char(51), -char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(51),char(17),char(51),char(49),char(48),char(1),char(1),char(51),char(1), -char(21),char(33),char(21),char(33),char(17),char(35),char(17),char(33),char(53),char(33), -char(53),char(1),char(51),char(2),char(61),char(1),char(134),char(184),char(254),char(24), -char(1),char(43),char(254),char(213),char(172),char(254),char(211),char(1),char(45),char(254), -char(25),char(186),char(2),char(219),char(2),char(219),char(252),char(129),char(59),char(152), -char(254),char(156),char(1),char(100),char(152),char(51),char(3),char(135),char(0),char(1), -char(0),char(0),char(254),char(20),char(4),char(2),char(4),char(72),char(0),char(19), -char(0),char(60),char(64),char(31),char(17),char(1),char(1),char(6),char(2),char(16), -char(19),char(2),char(4),char(7),char(5),char(20),char(21),char(12),char(11),char(11), -char(5),char(15),char(7),char(15),char(0),char(4),char(5),char(4),char(71),char(89), -char(17),char(5),char(21),char(2),char(27),char(0),char(63),char(63),char(51),char(43), -char(17),char(0),char(51),char(24),char(63),char(51),char(18),char(57),char(17),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17),char(51), -char(49),char(48),char(5),char(17),char(35),char(17),char(33),char(53),char(33),char(1), -char(51),char(19),char(22),char(23),char(51),char(54),char(55),char(19),char(51),char(1), -char(33),char(21),char(2),char(84),char(166),char(254),char(234),char(1),char(20),char(254), -char(84),char(172),char(236),char(83),char(19),char(8),char(33),char(70),char(233),char(172), -char(254),char(84),char(1),char(18),char(129),char(254),char(149),char(1),char(107),char(129), -char(4),char(72),char(253),char(155),char(222),char(97),char(138),char(181),char(2),char(101), -char(251),char(184),char(129),char(0),char(0),char(1),char(0),char(8),char(254),char(131), -char(4),char(213),char(5),char(182),char(0),char(15),char(0),char(55),char(64),char(32), -char(3),char(2),char(2),char(14),char(15),char(12),char(6),char(9),char(10),char(8), -char(8),char(16),char(17),char(12),char(15),char(9),char(6),char(4),char(5),char(13), -char(10),char(3),char(8),char(18),char(5),char(0),char(73),char(89),char(5),char(18), -char(3),char(34),char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(63), -char(51),char(18),char(23),char(57),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(49),char(48),char(37),char(51),char(17),char(35),char(17),char(35),char(1), -char(1),char(35),char(1),char(1),char(51),char(1),char(1),char(51),char(1),char(4), -char(51),char(162),char(162),char(94),char(254),char(119),char(254),char(112),char(180),char(1), -char(230),char(254),char(59),char(188),char(1),char(107),char(1),char(110),char(181),char(254), -char(59),char(154),char(253),char(233),char(1),char(125),char(2),char(131),char(253),char(125), -char(2),char(252),char(2),char(186),char(253),char(189),char(2),char(67),char(253),char(76), -char(0),char(1),char(0),char(39),char(254),char(133),char(4),char(55),char(4),char(72), -char(0),char(15),char(0),char(57),char(64),char(33),char(10),char(9),char(9),char(5), -char(6),char(3),char(13),char(0),char(1),char(15),char(8),char(16),char(17),char(15), -char(21),char(3),char(6),char(0),char(13),char(4),char(12),char(1),char(12),char(7), -char(70),char(89),char(12),char(21),char(10),char(34),char(4),char(1),char(15),char(0), -char(63),char(51),char(63),char(63),char(43),char(17),char(18),char(0),char(23),char(57), -char(24),char(63),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(49), -char(48),char(1),char(1),char(51),char(1),char(1),char(51),char(1),char(1),char(51), -char(17),char(35),char(17),char(35),char(1),char(1),char(35),char(1),char(184),char(254), -char(131),char(189),char(1),char(33),char(1),char(32),char(187),char(254),char(131),char(1), -char(43),char(149),char(166),char(69),char(254),char(205),char(254),char(202),char(188),char(2), -char(49),char(2),char(23),char(254),char(92),char(1),char(164),char(253),char(233),char(254), -char(94),char(253),char(246),char(1),char(123),char(1),char(188),char(254),char(68),char(0), -char(0),char(1),char(0),char(16),char(254),char(131),char(6),char(168),char(5),char(182), -char(0),char(15),char(0),char(64),char(64),char(34),char(12),char(5),char(0),char(13), -char(3),char(2),char(2),char(13),char(10),char(5),char(7),char(5),char(16),char(17), -char(14),char(3),char(11),char(7),char(8),char(7),char(73),char(89),char(8),char(3), -char(0),char(12),char(5),char(12),char(73),char(89),char(5),char(18),char(3),char(34), -char(0),char(63),char(63),char(43),char(17),char(0),char(51),char(24),char(63),char(43), -char(17),char(0),char(51),char(24),char(63),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(51), -char(17),char(35),char(17),char(33),char(17),char(33),char(53),char(33),char(21),char(33), -char(17),char(33),char(17),char(51),char(5),char(254),char(170),char(162),char(251),char(180), -char(254),char(86),char(4),char(47),char(254),char(37),char(2),char(240),char(170),char(154), -char(253),char(233),char(1),char(125),char(5),char(29),char(153),char(153),char(251),char(125), -char(5),char(28),char(0),char(1),char(0),char(41),char(254),char(135),char(5),char(152), -char(4),char(70),char(0),char(15),char(0),char(63),char(64),char(34),char(2),char(11), -char(6),char(3),char(9),char(8),char(8),char(3),char(0),char(11),char(13),char(5), -char(16),char(17),char(1),char(13),char(14),char(13),char(70),char(89),char(14),char(15), -char(6),char(2),char(11),char(2),char(70),char(89),char(11),char(21),char(9),char(34), -char(4),char(15),char(0),char(63),char(63),char(63),char(43),char(17),char(0),char(51), -char(24),char(63),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(33),char(17),char(33),char(17),char(51),char(17),char(51),char(17),char(35),char(17), -char(33),char(17),char(33),char(53),char(33),char(3),char(121),char(254),char(151),char(2), -char(70),char(166),char(156),char(166),char(252),char(120),char(254),char(191),char(3),char(80), -char(3),char(186),char(252),char(213),char(3),char(183),char(252),char(73),char(253),char(248), -char(1),char(121),char(3),char(186),char(140),char(0),char(0),char(1),char(0),char(170), -char(254),char(131),char(5),char(104),char(5),char(182),char(0),char(23),char(0),char(59), -char(64),char(31),char(21),char(0),char(5),char(3),char(2),char(15),char(12),char(2), -char(5),char(12),char(3),char(24),char(25),char(18),char(9),char(73),char(89),char(18), -char(18),char(5),char(22),char(13),char(3),char(5),char(0),char(73),char(89),char(5), -char(18),char(3),char(34),char(0),char(63),char(63),char(43),char(0),char(24),char(63), -char(51),char(18),char(57),char(47),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(37), -char(51),char(17),char(35),char(17),char(35),char(17),char(6),char(6),char(35),char(34), -char(38),char(53),char(17),char(51),char(17),char(20),char(22),char(51),char(50),char(54), -char(55),char(17),char(51),char(4),char(199),char(161),char(161),char(170),char(149),char(198), -char(106),char(207),char(223),char(170),char(127),char(143),char(97),char(177),char(169),char(170), -char(154),char(253),char(233),char(1),char(125),char(2),char(92),char(53),char(39),char(190), -char(179),char(2),char(69),char(253),char(207),char(121),char(116),char(29),char(55),char(2), -char(202),char(0),char(0),char(1),char(0),char(156),char(254),char(133),char(4),char(195), -char(4),char(72),char(0),char(22),char(0),char(59),char(64),char(31),char(1),char(21), -char(9),char(6),char(14),char(12),char(11),char(11),char(14),char(21),char(3),char(23), -char(24),char(3),char(18),char(70),char(89),char(3),char(3),char(14),char(7),char(22), -char(15),char(14),char(9),char(70),char(89),char(14),char(21),char(12),char(34),char(0), -char(63),char(63),char(43),char(0),char(24),char(63),char(51),char(18),char(57),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20),char(51),char(50), -char(54),char(55),char(17),char(51),char(17),char(51),char(17),char(35),char(17),char(35), -char(17),char(6),char(6),char(35),char(34),char(38),char(53),char(17),char(1),char(66), -char(219),char(91),char(166),char(105),char(166),char(150),char(166),char(150),char(105),char(179), -char(113),char(164),char(186),char(4),char(72),char(254),char(112),char(192),char(56),char(67), -char(1),char(213),char(252),char(71),char(253),char(246),char(1),char(123),char(1),char(240), -char(72),char(59),char(172),char(147),char(1),char(156),char(0),char(1),char(0),char(170), -char(0),char(0),char(4),char(199),char(5),char(182),char(0),char(22),char(0),char(74), -char(64),char(38),char(5),char(2),char(11),char(21),char(21),char(8),char(22),char(13), -char(17),char(17),char(16),char(16),char(22),char(2),char(3),char(23),char(24),char(20), -char(0),char(8),char(0),char(73),char(89),char(11),char(8),char(22),char(8),char(9), -char(9),char(8),char(22),char(3),char(3),char(17),char(18),char(14),char(3),char(3), -char(0),char(63),char(51),char(63),char(18),char(23),char(57),char(47),char(47),char(47), -char(17),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(32),char(17),char(17),char(51),char(17), -char(20),char(22),char(51),char(17),char(51),char(17),char(54),char(55),char(17),char(51), -char(17),char(35),char(17),char(6),char(7),char(17),char(35),char(2),char(117),char(254), -char(53),char(170),char(135),char(154),char(125),char(134),char(163),char(172),char(172),char(168), -char(129),char(125),char(2),char(0),char(1),char(113),char(2),char(69),char(253),char(207), -char(119),char(118),char(1),char(92),char(254),char(170),char(13),char(60),char(2),char(207), -char(250),char(74),char(2),char(88),char(65),char(17),char(254),char(207),char(0),char(1), -char(0),char(156),char(0),char(0),char(4),char(29),char(4),char(72),char(0),char(23), -char(0),char(74),char(64),char(38),char(1),char(22),char(6),char(16),char(16),char(3), -char(17),char(8),char(12),char(12),char(11),char(11),char(17),char(22),char(3),char(24), -char(25),char(15),char(19),char(3),char(19),char(70),char(89),char(6),char(3),char(17), -char(3),char(4),char(4),char(3),char(17),char(3),char(12),char(9),char(23),char(15), -char(12),char(21),char(0),char(63),char(63),char(51),char(18),char(23),char(57),char(47), -char(47),char(47),char(17),char(51),char(43),char(17),char(0),char(51),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20),char(23), -char(17),char(51),char(17),char(54),char(55),char(17),char(51),char(17),char(35),char(17), -char(6),char(7),char(21),char(35),char(53),char(35),char(34),char(38),char(53),char(17), -char(1),char(66),char(200),char(119),char(113),char(133),char(166),char(166),char(128),char(118), -char(119),char(22),char(160),char(184),char(4),char(72),char(254),char(112),char(186),char(6), -char(1),char(45),char(254),char(221),char(24),char(89),char(1),char(213),char(251),char(184), -char(1),char(240),char(91),char(26),char(248),char(234),char(170),char(149),char(1),char(156), -char(0),char(1),char(0),char(201),char(0),char(0),char(4),char(229),char(5),char(182), -char(0),char(18),char(0),char(47),char(64),char(23),char(2),char(17),char(17),char(18), -char(9),char(8),char(8),char(18),char(20),char(19),char(4),char(13),char(73),char(89), -char(2),char(18),char(4),char(4),char(9),char(18),char(18),char(0),char(3),char(0), -char(63),char(63),char(51),char(57),char(47),char(18),char(57),char(43),char(17),char(18), -char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(19),char(51),char(17),char(36),char(51),char(50),char(22),char(21),char(17), -char(35),char(17),char(52),char(38),char(35),char(34),char(6),char(7),char(17),char(35), -char(201),char(170),char(1),char(0),char(196),char(207),char(223),char(170),char(127),char(143), -char(107),char(186),char(149),char(170),char(5),char(182),char(253),char(164),char(92),char(191), -char(177),char(253),char(186),char(2),char(49),char(120),char(118),char(34),char(50),char(253), -char(53),char(0),char(0),char(1),char(0),char(176),char(0),char(0),char(4),char(66), -char(4),char(72),char(0),char(18),char(0),char(47),char(64),char(23),char(0),char(18), -char(11),char(7),char(7),char(8),char(18),char(8),char(20),char(19),char(14),char(3), -char(70),char(89),char(11),char(14),char(14),char(8),char(9),char(15),char(0),char(8), -char(21),char(0),char(63),char(51),char(63),char(18),char(57),char(47),char(57),char(43), -char(17),char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(33),char(17),char(52),char(35),char(34),char(6),char(7), -char(17),char(35),char(17),char(51),char(17),char(54),char(54),char(51),char(50),char(22), -char(21),char(17),char(3),char(154),char(217),char(88),char(156),char(119),char(166),char(166), -char(95),char(186),char(114),char(163),char(190),char(1),char(141),char(193),char(49),char(74), -char(254),char(45),char(4),char(72),char(254),char(14),char(69),char(62),char(168),char(151), -char(254),char(102),char(0),char(2),char(0),char(61),char(255),char(236),char(6),char(63), -char(5),char(205),char(0),char(32),char(0),char(39),char(0),char(81),char(64),char(42), -char(5),char(3),char(0),char(36),char(17),char(17),char(8),char(30),char(37),char(16), -char(16),char(24),char(30),char(0),char(4),char(40),char(41),char(17),char(30),char(7), -char(30),char(73),char(89),char(36),char(7),char(2),char(7),char(2),char(27),char(12), -char(27),char(20),char(73),char(89),char(27),char(19),char(12),char(33),char(73),char(89), -char(12),char(4),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(57),char(24),char(47),char(47),char(51),char(43),char(17), -char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(19), -char(52),char(55),char(51),char(6),char(21),char(20),char(51),char(51),char(55),char(18), -char(0),char(33),char(32),char(0),char(17),char(21),char(33),char(18),char(0),char(51), -char(50),char(54),char(55),char(21),char(6),char(6),char(35),char(32),char(0),char(3), -char(34),char(38),char(1),char(34),char(2),char(7),char(33),char(16),char(38),char(61), -char(27),char(145),char(20),char(113),char(34),char(5),char(29),char(1),char(77),char(1), -char(23),char(1),char(41),char(1),char(40),char(251),char(220),char(14),char(1),char(5), -char(247),char(101),char(202),char(141),char(114),char(221),char(130),char(254),char(198),char(254), -char(163),char(19),char(142),char(155),char(3),char(175),char(209),char(240),char(16),char(3), -char(110),char(203),char(3),char(135),char(73),char(54),char(50),char(60),char(103),char(43), -char(1),char(42),char(1),char(71),char(254),char(133),char(254),char(143),char(69),char(254), -char(248),char(254),char(239),char(31),char(43),char(156),char(39),char(30),char(1),char(100), -char(1),char(76),char(118),char(2),char(35),char(254),char(245),char(249),char(1),char(9), -char(251),char(0),char(0),char(2),char(0),char(51),char(255),char(236),char(4),char(221), -char(4),char(90),char(0),char(31),char(0),char(38),char(0),char(76),char(64),char(40), -char(10),char(8),char(5),char(22),char(13),char(36),char(21),char(21),char(29),char(13), -char(3),char(5),char(5),char(39),char(40),char(22),char(3),char(12),char(3),char(70), -char(89),char(35),char(12),char(7),char(12),char(7),char(0),char(17),char(17),char(32), -char(70),char(89),char(17),char(16),char(0),char(25),char(70),char(89),char(0),char(22), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0), -char(57),char(57),char(24),char(47),char(47),char(51),char(43),char(17),char(0),char(51), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(51),char(49),char(48),char(5),char(34),char(0),char(39),char(36),char(53), -char(52),char(55),char(51),char(6),char(21),char(20),char(51),char(51),char(55),char(54), -char(54),char(51),char(50),char(18),char(21),char(21),char(33),char(22),char(22),char(51), -char(50),char(54),char(55),char(21),char(6),char(6),char(3),char(34),char(6),char(7), -char(33),char(52),char(38),char(3),char(74),char(243),char(254),char(236),char(6),char(254), -char(246),char(25),char(141),char(20),char(106),char(21),char(6),char(34),char(250),char(183), -char(207),char(241),char(253),char(12),char(6),char(172),char(173),char(101),char(159),char(98), -char(88),char(157),char(160),char(134),char(151),char(14),char(2),char(61),char(140),char(20), -char(1),char(30),char(252),char(4),char(221),char(69),char(50),char(47),char(59),char(103), -char(35),char(202),char(224),char(254),char(247),char(226),char(105),char(198),char(195),char(32), -char(42),char(148),char(38),char(33),char(3),char(227),char(164),char(158),char(157),char(165), -char(0),char(2),char(0),char(61),char(254),char(131),char(6),char(63),char(5),char(205), -char(0),char(34),char(0),char(41),char(0),char(93),char(64),char(49),char(11),char(9), -char(6),char(38),char(23),char(23),char(14),char(3),char(33),char(34),char(39),char(22), -char(22),char(30),char(34),char(3),char(6),char(5),char(42),char(43),char(34),char(34), -char(32),char(19),char(23),char(3),char(13),char(3),char(73),char(89),char(38),char(13), -char(8),char(13),char(8),char(0),char(18),char(18),char(35),char(73),char(89),char(18), -char(4),char(0),char(26),char(74),char(89),char(0),char(19),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(24), -char(47),char(47),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(5), -char(36),char(0),char(3),char(34),char(38),char(53),char(52),char(55),char(51),char(6), -char(21),char(20),char(51),char(51),char(55),char(18),char(0),char(33),char(32),char(0), -char(17),char(21),char(33),char(18),char(0),char(51),char(50),char(54),char(55),char(21), -char(6),char(7),char(17),char(35),char(19),char(34),char(2),char(7),char(33),char(16), -char(38),char(3),char(160),char(254),char(254),char(254),char(219),char(19),char(142),char(155), -char(27),char(145),char(20),char(113),char(34),char(5),char(29),char(1),char(77),char(1), -char(23),char(1),char(41),char(1),char(40),char(251),char(220),char(14),char(1),char(5), -char(247),char(101),char(202),char(141),char(176),char(235),char(166),char(76),char(209),char(240), -char(16),char(3),char(110),char(203),char(12),char(29),char(1),char(90),char(1),char(49), -char(118),char(117),char(73),char(54),char(50),char(60),char(103),char(43),char(1),char(42), -char(1),char(71),char(254),char(133),char(254),char(143),char(69),char(254),char(248),char(254), -char(239),char(31),char(43),char(156),char(62),char(5),char(254),char(149),char(6),char(178), -char(254),char(245),char(249),char(1),char(9),char(251),char(0),char(2),char(0),char(51), -char(254),char(135),char(4),char(221),char(4),char(90),char(0),char(33),char(0),char(40), -char(0),char(88),char(64),char(47),char(10),char(8),char(5),char(22),char(13),char(32), -char(33),char(38),char(21),char(21),char(29),char(33),char(13),char(3),char(5),char(6), -char(41),char(42),char(33),char(34),char(31),char(22),char(22),char(3),char(12),char(3), -char(70),char(89),char(37),char(12),char(7),char(12),char(7),char(0),char(17),char(17), -char(34),char(70),char(89),char(17),char(16),char(0),char(25),char(70),char(89),char(0), -char(21),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(57),char(24),char(47),char(47),char(51),char(43),char(17),char(0), -char(51),char(24),char(63),char(63),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(51),char(49),char(48), -char(5),char(38),char(2),char(39),char(36),char(53),char(52),char(55),char(51),char(6), -char(21),char(20),char(51),char(51),char(55),char(54),char(54),char(51),char(50),char(18), -char(21),char(21),char(33),char(22),char(22),char(51),char(50),char(54),char(55),char(21), -char(6),char(7),char(17),char(35),char(19),char(34),char(6),char(7),char(33),char(52), -char(38),char(2),char(213),char(191),char(211),char(6),char(254),char(246),char(25),char(141), -char(20),char(106),char(21),char(6),char(34),char(250),char(183),char(207),char(241),char(253), -char(12),char(6),char(172),char(173),char(101),char(159),char(98),char(142),char(165),char(166), -char(68),char(134),char(151),char(14),char(2),char(61),char(140),char(10),char(31),char(1), -char(17),char(224),char(4),char(221),char(69),char(50),char(47),char(59),char(103),char(35), -char(202),char(224),char(254),char(247),char(226),char(105),char(198),char(195),char(32),char(42), -char(148),char(65),char(4),char(254),char(153),char(5),char(72),char(164),char(158),char(157), -char(165),char(0),char(255),char(255),char(0),char(84),char(0),char(0),char(2),char(86), -char(5),char(182),char(2),char(6),char(0),char(44),char(0),char(0),char(255),char(255), -char(0),char(2),char(0),char(0),char(6),char(188),char(7),char(96),char(2),char(38), -char(1),char(176),char(0),char(0),char(1),char(7),char(2),char(54),char(1),char(16), -char(1),char(84),char(0),char(8),char(179),char(1),char(18),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(4),char(0),char(0),char(5),char(223), -char(6),char(12),char(2),char(38),char(1),char(208),char(0),char(0),char(1),char(7), -char(2),char(54),char(0),char(164),char(0),char(0),char(0),char(8),char(179),char(1), -char(18),char(17),char(38),char(0),char(43),char(53),char(0),char(1),char(0),char(201), -char(254),char(0),char(5),char(25),char(5),char(182),char(0),char(28),char(0),char(66), -char(64),char(37),char(7),char(3),char(3),char(4),char(26),char(14),char(14),char(9), -char(10),char(20),char(4),char(5),char(29),char(30),char(17),char(23),char(73),char(89), -char(17),char(28),char(7),char(2),char(73),char(89),char(11),char(0),char(74),char(89), -char(7),char(11),char(11),char(4),char(8),char(5),char(3),char(4),char(18),char(0), -char(63),char(63),char(51),char(18),char(57),char(47),char(57),char(43),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(34),char(7),char(17), -char(35),char(17),char(51),char(17),char(1),char(51),char(1),char(55),char(32),char(0), -char(17),char(16),char(0),char(33),char(34),char(38),char(39),char(53),char(22),char(51), -char(50),char(18),char(53),char(52),char(36),char(2),char(94),char(140),char(95),char(170), -char(170),char(2),char(137),char(205),char(253),char(133),char(26),char(1),char(79),char(1), -char(98),char(254),char(217),char(254),char(245),char(82),char(124),char(70),char(122),char(152), -char(187),char(200),char(254),char(235),char(2),char(123),char(31),char(253),char(164),char(5), -char(182),char(253),char(60),char(2),char(196),char(253),char(84),char(2),char(254),char(187), -char(254),char(207),char(254),char(198),char(254),char(164),char(20),char(29),char(152),char(49), -char(1),char(13),char(241),char(232),char(253),char(0),char(0),char(1),char(0),char(176), -char(254),char(10),char(4),char(33),char(4),char(72),char(0),char(28),char(0),char(66), -char(64),char(37),char(4),char(0),char(0),char(1),char(23),char(10),char(16),char(10), -char(6),char(7),char(1),char(5),char(29),char(30),char(14),char(20),char(70),char(89), -char(14),char(27),char(4),char(28),char(71),char(89),char(7),char(26),char(70),char(89), -char(4),char(7),char(7),char(1),char(5),char(2),char(15),char(1),char(21),char(0), -char(63),char(63),char(51),char(18),char(57),char(47),char(57),char(43),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(33),char(35),char(17),char(51), -char(17),char(1),char(51),char(1),char(4),char(18),char(17),char(20),char(6),char(6), -char(35),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53), -char(52),char(38),char(35),char(34),char(7),char(1),char(84),char(164),char(164),char(1), -char(227),char(183),char(254),char(55),char(1),char(0),char(252),char(110),char(204),char(133), -char(136),char(95),char(46),char(108),char(71),char(135),char(152),char(187),char(190),char(82), -char(92),char(4),char(72),char(253),char(250),char(2),char(6),char(254),char(30),char(4), -char(254),char(228),char(254),char(245),char(177),char(252),char(132),char(60),char(145),char(25), -char(38),char(217),char(200),char(211),char(207),char(24),char(0),char(1),char(0),char(0), -char(254),char(131),char(5),char(145),char(5),char(182),char(0),char(23),char(0),char(57), -char(64),char(31),char(3),char(0),char(5),char(4),char(1),char(1),char(5),char(14), -char(3),char(24),char(25),char(22),char(7),char(73),char(89),char(22),char(3),char(12), -char(17),char(74),char(89),char(12),char(18),char(5),char(0),char(73),char(89),char(5), -char(18),char(3),char(34),char(0),char(63),char(63),char(43),char(0),char(24),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(37),char(51),char(3), -char(35),char(19),char(35),char(17),char(33),char(7),char(2),char(2),char(6),char(39), -char(34),char(39),char(53),char(22),char(51),char(50),char(54),char(54),char(18),char(19), -char(33),char(4),char(217),char(184),char(143),char(197),char(156),char(170),char(254),char(37), -char(31),char(61),char(93),char(152),char(126),char(74),char(59),char(54),char(59),char(53), -char(79),char(61),char(93),char(56),char(3),char(18),char(154),char(253),char(233),char(1), -char(125),char(5),char(31),char(240),char(254),char(33),char(254),char(69),char(174),char(2), -char(25),char(143),char(26),char(87),char(215),char(2),char(89),char(1),char(184),char(0), -char(0),char(1),char(0),char(16),char(254),char(135),char(4),char(143),char(4),char(70), -char(0),char(20),char(0),char(57),char(64),char(31),char(3),char(0),char(5),char(4), -char(1),char(1),char(5),char(13),char(3),char(21),char(22),char(19),char(7),char(70), -char(89),char(19),char(15),char(11),char(16),char(71),char(89),char(11),char(21),char(5), -char(0),char(70),char(89),char(5),char(21),char(3),char(34),char(0),char(63),char(63), -char(43),char(0),char(24),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(49), -char(48),char(37),char(51),char(3),char(35),char(19),char(35),char(17),char(33),char(2), -char(2),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(18), -char(19),char(33),char(3),char(223),char(176),char(129),char(172),char(125),char(166),char(254), -char(181),char(28),char(94),char(152),char(118),char(58),char(28),char(22),char(28),char(113), -char(137),char(34),char(2),char(129),char(143),char(253),char(248),char(1),char(121),char(3), -char(184),char(254),char(152),char(254),char(100),char(192),char(10),char(127),char(6),char(1), -char(217),char(1),char(246),char(0),char(0),char(1),char(0),char(201),char(254),char(0), -char(5),char(31),char(5),char(182),char(0),char(21),char(0),char(61),char(64),char(32), -char(18),char(14),char(14),char(15),char(19),char(11),char(11),char(0),char(0),char(6), -char(15),char(3),char(22),char(23),char(18),char(13),char(73),char(89),char(18),char(18), -char(15),char(20),char(16),char(3),char(15),char(18),char(3),char(9),char(73),char(89), -char(3),char(28),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51), -char(18),char(57),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(37), -char(16),char(0),char(33),char(34),char(38),char(39),char(53),char(22),char(51),char(32), -char(17),char(17),char(33),char(17),char(35),char(17),char(51),char(17),char(33),char(17), -char(51),char(5),char(31),char(254),char(230),char(254),char(251),char(82),char(122),char(77), -char(123),char(135),char(1),char(140),char(252),char(254),char(170),char(170),char(3),char(2), -char(170),char(150),char(254),char(194),char(254),char(168),char(19),char(30),char(150),char(49), -char(1),char(247),char(2),char(35),char(253),char(80),char(5),char(182),char(253),char(146), -char(2),char(110),char(0),char(1),char(0),char(176),char(254),char(10),char(4),char(98), -char(4),char(72),char(0),char(21),char(0),char(71),char(64),char(39),char(15),char(11), -char(11),char(12),char(16),char(8),char(8),char(19),char(19),char(2),char(12),char(3), -char(22),char(23),char(15),char(10),char(70),char(89),char(15),char(15),char(31),char(15), -char(2),char(11),char(3),char(15),char(15),char(12),char(17),char(13),char(15),char(12), -char(21),char(0),char(5),char(70),char(89),char(0),char(27),char(0),char(63),char(43), -char(0),char(24),char(63),char(63),char(51),char(18),char(57),char(47),char(95),char(94), -char(93),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(34),char(39), -char(53),char(22),char(51),char(50),char(54),char(53),char(17),char(33),char(17),char(35), -char(17),char(51),char(17),char(33),char(17),char(51),char(17),char(16),char(2),char(2), -char(211),char(132),char(93),char(111),char(102),char(125),char(118),char(253),char(156),char(166), -char(166),char(2),char(100),char(168),char(207),char(254),char(10),char(58),char(149),char(61), -char(198),char(207),char(1),char(189),char(254),char(18),char(4),char(72),char(254),char(53), -char(1),char(203),char(251),char(235),char(254),char(244),char(254),char(227),char(0),char(1), -char(0),char(201),char(254),char(131),char(5),char(215),char(5),char(182),char(0),char(15), -char(0),char(68),char(64),char(36),char(12),char(8),char(8),char(9),char(13),char(3), -char(0),char(5),char(4),char(1),char(1),char(5),char(9),char(3),char(16),char(17), -char(12),char(7),char(73),char(89),char(12),char(12),char(5),char(14),char(10),char(3), -char(9),char(18),char(5),char(0),char(73),char(89),char(5),char(18),char(3),char(34), -char(0),char(63),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18), -char(57),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(51),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(37),char(51),char(3),char(35),char(19),char(35),char(17),char(33),char(17),char(35), -char(17),char(51),char(17),char(33),char(17),char(51),char(5),char(31),char(184),char(145), -char(197),char(158),char(170),char(252),char(254),char(170),char(170),char(3),char(2),char(170), -char(154),char(253),char(233),char(1),char(125),char(2),char(176),char(253),char(80),char(5), -char(182),char(253),char(146),char(2),char(110),char(0),char(0),char(1),char(0),char(176), -char(254),char(135),char(5),char(18),char(4),char(70),char(0),char(15),char(0),char(68), -char(64),char(36),char(1),char(13),char(13),char(14),char(8),char(5),char(2),char(10), -char(9),char(6),char(6),char(10),char(14),char(3),char(16),char(17),char(1),char(12), -char(70),char(89),char(1),char(1),char(10),char(3),char(15),char(15),char(14),char(21), -char(10),char(5),char(70),char(89),char(10),char(21),char(8),char(34),char(0),char(63), -char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(57),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(51),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17), -char(33),char(17),char(51),char(17),char(51),char(3),char(35),char(19),char(35),char(17), -char(33),char(17),char(35),char(17),char(1),char(86),char(2),char(102),char(166),char(176), -char(129),char(172),char(125),char(166),char(253),char(154),char(166),char(4),char(70),char(254), -char(55),char(1),char(201),char(252),char(73),char(253),char(248),char(1),char(121),char(1), -char(238),char(254),char(18),char(4),char(70),char(0),char(0),char(1),char(0),char(170), -char(254),char(131),char(4),char(199),char(5),char(182),char(0),char(23),char(0),char(61), -char(64),char(32),char(15),char(12),char(2),char(3),char(21),char(5),char(5),char(0), -char(0),char(3),char(12),char(3),char(24),char(25),char(18),char(9),char(73),char(89), -char(18),char(18),char(1),char(22),char(13),char(3),char(3),char(34),char(1),char(4), -char(73),char(89),char(1),char(18),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(51),char(18),char(57),char(47),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(33),char(35),char(17),char(35),char(17),char(51),char(17),char(6),char(6), -char(35),char(34),char(38),char(53),char(17),char(51),char(17),char(20),char(22),char(51), -char(50),char(54),char(55),char(17),char(51),char(4),char(199),char(170),char(162),char(162), -char(149),char(198),char(106),char(207),char(223),char(170),char(127),char(143),char(97),char(177), -char(169),char(170),char(254),char(131),char(2),char(23),char(1),char(194),char(53),char(39), -char(190),char(179),char(2),char(69),char(253),char(207),char(121),char(116),char(29),char(55), -char(2),char(202),char(0),char(1),char(0),char(156),char(254),char(133),char(4),char(45), -char(4),char(72),char(0),char(22),char(0),char(61),char(64),char(32),char(1),char(21), -char(11),char(12),char(6),char(14),char(14),char(9),char(9),char(12),char(21),char(3), -char(23),char(24),char(3),char(18),char(70),char(89),char(3),char(3),char(10),char(7), -char(22),char(15),char(12),char(34),char(10),char(13),char(70),char(89),char(10),char(21), -char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(57), -char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(17),char(20), -char(51),char(50),char(54),char(55),char(17),char(51),char(17),char(35),char(17),char(35), -char(17),char(51),char(17),char(6),char(6),char(35),char(34),char(38),char(53),char(17), -char(1),char(66),char(219),char(91),char(166),char(105),char(166),char(149),char(166),char(149), -char(105),char(179),char(113),char(164),char(186),char(4),char(72),char(254),char(112),char(192), -char(56),char(67),char(1),char(213),char(251),char(184),char(254),char(133),char(2),char(10), -char(1),char(97),char(72),char(59),char(172),char(147),char(1),char(156),char(0),char(1), -char(0),char(201),char(254),char(131),char(7),char(41),char(5),char(182),char(0),char(24), -char(0),char(72),char(64),char(37),char(9),char(6),char(6),char(7),char(17),char(14), -char(12),char(19),char(18),char(15),char(15),char(19),char(7),char(3),char(25),char(26), -char(23),char(22),char(2),char(11),char(2),char(19),char(8),char(19),char(14),char(73), -char(89),char(19),char(18),char(17),char(34),char(12),char(8),char(3),char(0),char(7), -char(18),char(0),char(63),char(51),char(63),char(51),char(63),char(63),char(43),char(17), -char(18),char(0),char(57),char(57),char(17),char(51),char(51),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(51),char(51),char(17),char(51), -char(17),char(51),char(49),char(48),char(33),char(1),char(35),char(23),char(22),char(21), -char(17),char(35),char(17),char(33),char(1),char(51),char(1),char(51),char(17),char(51), -char(3),char(35),char(19),char(35),char(17),char(52),char(55),char(35),char(1),char(3), -char(80),char(254),char(16),char(8),char(7),char(7),char(157),char(1),char(0),char(1), -char(209),char(8),char(1),char(209),char(254),char(184),char(143),char(199),char(158),char(170), -char(14),char(8),char(254),char(12),char(5),char(16),char(127),char(192),char(47),char(252), -char(94),char(5),char(182),char(251),char(74),char(4),char(182),char(250),char(228),char(253), -char(233),char(1),char(125),char(3),char(174),char(132),char(220),char(250),char(242),char(0), -char(0),char(1),char(0),char(176),char(254),char(135),char(5),char(223),char(4),char(70), -char(0),char(24),char(0),char(63),char(64),char(32),char(19),char(20),char(8),char(5), -char(10),char(9),char(6),char(6),char(10),char(20),char(3),char(25),char(26),char(11), -char(18),char(0),char(18),char(15),char(3),char(21),char(15),char(20),char(21),char(10), -char(5),char(70),char(89),char(10),char(15),char(21),char(8),char(34),char(0),char(63), -char(63),char(51),char(43),char(0),char(24),char(63),char(63),char(51),char(18),char(57), -char(57),char(17),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(37),char(55),char(55), -char(1),char(51),char(17),char(51),char(3),char(35),char(19),char(35),char(17),char(7), -char(7),char(1),char(35),char(1),char(38),char(39),char(17),char(35),char(17),char(51), -char(1),char(22),char(2),char(233),char(31),char(43),char(1),char(41),char(211),char(176), -char(129),char(172),char(125),char(147),char(20),char(58),char(254),char(229),char(139),char(254), -char(229),char(53),char(20),char(148),char(203),char(1),char(41),char(45),char(160),char(93), -char(118),char(2),char(211),char(252),char(73),char(253),char(248),char(1),char(121),char(3), -char(137),char(58),char(153),char(253),char(74),char(2),char(184),char(134),char(75),char(252), -char(119),char(4),char(70),char(253),char(45),char(110),char(255),char(255),char(0),char(84), -char(0),char(0),char(2),char(86),char(5),char(182),char(2),char(6),char(0),char(44), -char(0),char(0),char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16), -char(7),char(94),char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7), -char(2),char(54),char(0),char(57),char(1),char(82),char(0),char(8),char(179),char(2), -char(15),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(94), -char(255),char(236),char(3),char(205),char(6),char(12),char(2),char(38),char(0),char(68), -char(0),char(0),char(1),char(6),char(2),char(54),char(232),char(0),char(0),char(8), -char(179),char(2),char(37),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(7),char(37),char(2),char(38), -char(0),char(36),char(0),char(0),char(1),char(7),char(0),char(106),char(0),char(61), -char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(36),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(94),char(255),char(236), -char(3),char(205),char(5),char(211),char(2),char(38),char(0),char(68),char(0),char(0), -char(1),char(6),char(0),char(106),char(243),char(0),char(0),char(10),char(180),char(3), -char(2),char(58),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(255),char(254),char(0),char(0),char(6),char(129),char(5),char(182),char(2),char(6), -char(0),char(136),char(0),char(0),char(255),char(255),char(0),char(94),char(255),char(236), -char(6),char(115),char(4),char(92),char(2),char(6),char(0),char(168),char(0),char(0), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(94), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(2),char(54), -char(0),char(16),char(1),char(82),char(0),char(8),char(179),char(1),char(12),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(18),char(6),char(12),char(2),char(38),char(0),char(72),char(0),char(0), -char(1),char(6),char(2),char(54),char(12),char(0),char(0),char(8),char(179),char(2), -char(27),char(17),char(38),char(0),char(43),char(53),char(0),char(2),char(0),char(117), -char(255),char(236),char(5),char(88),char(5),char(205),char(0),char(18),char(0),char(25), -char(0),char(61),char(64),char(32),char(23),char(14),char(16),char(22),char(22),char(9), -char(9),char(2),char(14),char(3),char(26),char(27),char(15),char(23),char(73),char(89), -char(15),char(15),char(12),char(6),char(12),char(19),char(73),char(89),char(12),char(19), -char(6),char(0),char(73),char(89),char(6),char(4),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(1),char(34),char(7),char(53),char(54),char(54),char(51), -char(32),char(0),char(17),char(16),char(0),char(33),char(32),char(17),char(53),char(33), -char(2),char(0),char(3),char(50),char(18),char(55),char(33),char(16),char(22),char(2), -char(152),char(227),char(226),char(115),char(210),char(134),char(1),char(75),char(1),char(111), -char(254),char(166),char(254),char(203),char(253),char(172),char(4),char(47),char(17),char(254), -char(249),char(195),char(210),char(249),char(16),char(252),char(135),char(204),char(5),char(53), -char(76),char(158),char(38),char(32),char(254),char(113),char(254),char(155),char(254),char(162), -char(254),char(113),char(2),char(235),char(70),char(1),char(10),char(1),char(14),char(251), -char(78),char(1),char(13),char(247),char(254),char(248),char(252),char(0),char(0),char(2), -char(0),char(102),char(255),char(236),char(4),char(6),char(4),char(92),char(0),char(20), -char(0),char(27),char(0),char(59),char(64),char(31),char(25),char(9),char(24),char(11), -char(3),char(3),char(17),char(9),char(3),char(28),char(29),char(10),char(25),char(70), -char(89),char(10),char(10),char(6),char(0),char(6),char(21),char(70),char(89),char(6), -char(22),char(0),char(14),char(70),char(89),char(0),char(16),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(17), -char(51),char(49),char(48),char(1),char(50),char(0),char(17),char(16),char(0),char(35), -char(34),char(2),char(53),char(53),char(33),char(38),char(38),char(35),char(34),char(6), -char(7),char(53),char(54),char(54),char(19),char(50),char(54),char(55),char(33),char(20), -char(22),char(1),char(250),char(245),char(1),char(23),char(254),char(253),char(218),char(208), -char(243),char(2),char(244),char(5),char(179),char(166),char(98),char(165),char(95),char(89), -char(162),char(154),char(133),char(154),char(12),char(253),char(195),char(141),char(4),char(92), -char(254),char(212),char(254),char(251),char(254),char(248),char(254),char(201),char(1),char(12), -char(225),char(105),char(204),char(187),char(33),char(41),char(147),char(40),char(34),char(252), -char(27),char(165),char(156),char(157),char(164),char(0),char(255),char(255),char(0),char(117), -char(255),char(236),char(5),char(88),char(7),char(37),char(2),char(38),char(2),char(225), -char(0),char(0),char(1),char(7),char(0),char(106),char(0),char(147),char(1),char(82), -char(0),char(10),char(180),char(3),char(2),char(47),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(102),char(255),char(236),char(4),char(6), -char(5),char(211),char(2),char(38),char(2),char(226),char(0),char(0),char(1),char(6), -char(0),char(106),char(234),char(0),char(0),char(10),char(180),char(3),char(2),char(49), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(2), -char(0),char(0),char(6),char(188),char(7),char(37),char(2),char(38),char(1),char(176), -char(0),char(0),char(1),char(7),char(0),char(106),char(1),char(16),char(1),char(82), -char(0),char(10),char(180),char(2),char(1),char(39),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(4),char(0),char(0),char(5),char(223), -char(5),char(211),char(2),char(38),char(1),char(208),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(162),char(0),char(0),char(0),char(10),char(180),char(2), -char(1),char(39),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(74),char(255),char(236),char(4),char(53),char(7),char(37),char(2),char(38), -char(1),char(177),char(0),char(0),char(1),char(7),char(0),char(106),char(255),char(243), -char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(62),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(68),char(255),char(236), -char(3),char(127),char(5),char(211),char(2),char(38),char(1),char(209),char(0),char(0), -char(1),char(6),char(0),char(106),char(148),char(0),char(0),char(10),char(180),char(2), -char(1),char(56),char(17),char(38),char(0),char(43),char(53),char(53),char(0),char(1), -char(0),char(74),char(255),char(236),char(4),char(55),char(5),char(182),char(0),char(25), -char(0),char(64),char(64),char(35),char(0),char(19),char(21),char(25),char(15),char(3), -char(3),char(25),char(19),char(22),char(8),char(5),char(26),char(27),char(25),char(22), -char(23),char(22),char(73),char(89),char(0),char(18),char(74),char(89),char(0),char(0), -char(6),char(23),char(3),char(6),char(12),char(74),char(89),char(6),char(19),char(0), -char(63),char(43),char(0),char(24),char(63),char(18),char(57),char(47),char(43),char(43), -char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(4),char(4),char(21), -char(20),char(4),char(33),char(32),char(39),char(53),char(22),char(22),char(51),char(50), -char(54),char(53),char(52),char(38),char(35),char(35),char(53),char(1),char(33),char(53), -char(33),char(21),char(1),char(252),char(1),char(23),char(1),char(36),char(254),char(205), -char(254),char(234),char(254),char(255),char(163),char(96),char(222),char(106),char(199),char(202), -char(225),char(223),char(140),char(1),char(238),char(253),char(78),char(3),char(135),char(3), -char(63),char(9),char(211),char(193),char(206),char(232),char(79),char(158),char(46),char(50), -char(153),char(144),char(134),char(138),char(141),char(1),char(222),char(153),char(139),char(0), -char(0),char(1),char(0),char(27),char(254),char(20),char(3),char(166),char(4),char(72), -char(0),char(25),char(0),char(64),char(64),char(35),char(0),char(19),char(21),char(25), -char(15),char(4),char(4),char(25),char(19),char(22),char(9),char(5),char(26),char(27), -char(25),char(22),char(23),char(22),char(70),char(89),char(0),char(18),char(71),char(89), -char(0),char(0),char(7),char(23),char(15),char(7),char(12),char(70),char(89),char(7), -char(27),char(0),char(63),char(43),char(0),char(24),char(63),char(18),char(57),char(47), -char(43),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(30), -char(2),char(21),char(20),char(0),char(35),char(34),char(39),char(53),char(22),char(51), -char(50),char(54),char(53),char(52),char(38),char(35),char(35),char(53),char(1),char(33), -char(53),char(33),char(21),char(1),char(172),char(149),char(230),char(127),char(254),char(216), -char(239),char(234),char(138),char(183),char(200),char(161),char(197),char(214),char(202),char(121), -char(1),char(197),char(253),char(137),char(3),char(56),char(1),char(207),char(7),char(114), -char(202),char(136),char(222),char(254),char(238),char(70),char(154),char(86),char(190),char(160), -char(164),char(170),char(114),char(1),char(254),char(142),char(123),char(0),char(255),char(255), -char(0),char(203),char(0),char(0),char(5),char(82),char(6),char(180),char(2),char(38), -char(1),char(178),char(0),char(0),char(1),char(7),char(1),char(77),char(0),char(180), -char(1),char(82),char(0),char(8),char(179),char(1),char(19),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(98), -char(5),char(98),char(2),char(38),char(1),char(210),char(0),char(0),char(1),char(6), -char(1),char(77),char(49),char(0),char(0),char(8),char(179),char(1),char(17),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(203),char(0),char(0), -char(5),char(82),char(7),char(37),char(2),char(38),char(1),char(178),char(0),char(0), -char(1),char(7),char(0),char(106),char(0),char(190),char(1),char(82),char(0),char(10), -char(180),char(2),char(1),char(37),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(176),char(0),char(0),char(4),char(98),char(5),char(211), -char(2),char(38),char(1),char(210),char(0),char(0),char(1),char(6),char(0),char(106), -char(61),char(0),char(0),char(10),char(180),char(2),char(1),char(35),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(5),char(190),char(7),char(37),char(2),char(38),char(0),char(50),char(0),char(0), -char(1),char(7),char(0),char(106),char(0),char(209),char(1),char(82),char(0),char(10), -char(180),char(3),char(2),char(45),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98),char(5),char(211), -char(2),char(38),char(0),char(82),char(0),char(0),char(1),char(6),char(0),char(106), -char(29),char(0),char(0),char(10),char(180),char(3),char(2),char(46),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(5),char(190),char(5),char(205),char(2),char(6),char(2),char(126),char(0),char(0), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98),char(4),char(92), -char(2),char(6),char(2),char(127),char(0),char(0),char(255),char(255),char(0),char(125), -char(255),char(236),char(5),char(190),char(7),char(37),char(2),char(38),char(2),char(126), -char(0),char(0),char(1),char(7),char(0),char(106),char(0),char(209),char(1),char(82), -char(0),char(10),char(180),char(4),char(3),char(47),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98), -char(5),char(211),char(2),char(38),char(2),char(127),char(0),char(0),char(1),char(6), -char(0),char(106),char(27),char(0),char(0),char(10),char(180),char(4),char(3),char(48), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(61), -char(255),char(236),char(4),char(137),char(7),char(37),char(2),char(38),char(1),char(199), -char(0),char(0),char(1),char(7),char(0),char(106),char(255),char(237),char(1),char(82), -char(0),char(10),char(180),char(2),char(1),char(48),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(57),char(255),char(236),char(3),char(125), -char(5),char(211),char(2),char(38),char(1),char(231),char(0),char(0),char(1),char(6), -char(0),char(106),char(142),char(0),char(0),char(10),char(180),char(2),char(1),char(48), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(27), -char(255),char(236),char(4),char(248),char(6),char(180),char(2),char(38),char(1),char(189), -char(0),char(0),char(1),char(7),char(1),char(77),char(0),char(47),char(1),char(82), -char(0),char(8),char(179),char(1),char(26),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(2),char(254),char(20),char(4),char(6),char(5),char(98), -char(2),char(38),char(0),char(92),char(0),char(0),char(1),char(6),char(1),char(77), -char(173),char(0),char(0),char(8),char(179),char(1),char(25),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(27),char(255),char(236),char(4),char(248), -char(7),char(37),char(2),char(38),char(1),char(189),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(59),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(44),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(2),char(254),char(20),char(4),char(6),char(5),char(211),char(2),char(38), -char(0),char(92),char(0),char(0),char(1),char(6),char(0),char(106),char(183),char(0), -char(0),char(10),char(180),char(2),char(1),char(43),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(27),char(255),char(236),char(4),char(248), -char(7),char(115),char(2),char(38),char(1),char(189),char(0),char(0),char(1),char(7), -char(1),char(83),char(0),char(141),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(42),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(2),char(254),char(20),char(4),char(6),char(6),char(33),char(2),char(38), -char(0),char(92),char(0),char(0),char(1),char(6),char(1),char(83),char(4),char(0), -char(0),char(10),char(180),char(2),char(1),char(41),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(170),char(0),char(0),char(4),char(199), -char(7),char(37),char(2),char(38),char(1),char(193),char(0),char(0),char(1),char(7), -char(0),char(106),char(0),char(106),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(41),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(156),char(0),char(0),char(4),char(45),char(5),char(211),char(2),char(38), -char(1),char(225),char(0),char(0),char(1),char(6),char(0),char(106),char(23),char(0), -char(0),char(10),char(180),char(2),char(1),char(40),char(17),char(38),char(0),char(43), -char(53),char(53),char(0),char(1),char(0),char(201),char(254),char(131),char(4),char(8), -char(5),char(182),char(0),char(9),char(0),char(45),char(64),char(24),char(4),char(9), -char(6),char(7),char(1),char(7),char(9),char(3),char(10),char(11),char(9),char(4), -char(73),char(89),char(9),char(18),char(7),char(34),char(0),char(3),char(73),char(89), -char(0),char(3),char(0),char(63),char(43),char(0),char(24),char(63),char(63),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49), -char(48),char(19),char(33),char(21),char(33),char(17),char(51),char(17),char(35),char(17), -char(35),char(201),char(3),char(63),char(253),char(107),char(161),char(161),char(170),char(5), -char(182),char(153),char(251),char(125),char(253),char(233),char(1),char(125),char(0),char(1), -char(0),char(176),char(254),char(135),char(3),char(66),char(4),char(70),char(0),char(9), -char(0),char(45),char(64),char(24),char(4),char(9),char(6),char(7),char(1),char(7), -char(9),char(3),char(10),char(11),char(9),char(4),char(70),char(89),char(9),char(21), -char(7),char(34),char(0),char(3),char(70),char(89),char(0),char(15),char(0),char(63), -char(43),char(0),char(24),char(63),char(63),char(43),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(33),char(21), -char(33),char(17),char(51),char(17),char(35),char(17),char(35),char(176),char(2),char(146), -char(254),char(20),char(150),char(166),char(150),char(4),char(70),char(140),char(252),char(213), -char(253),char(248),char(1),char(121),char(255),char(255),char(0),char(201),char(0),char(0), -char(6),char(10),char(7),char(37),char(2),char(38),char(1),char(197),char(0),char(0), -char(1),char(7),char(0),char(106),char(1),char(27),char(1),char(82),char(0),char(10), -char(180),char(4),char(3),char(45),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(176),char(0),char(0),char(5),char(121),char(5),char(211), -char(2),char(38),char(1),char(229),char(0),char(0),char(1),char(7),char(0),char(106), -char(0),char(197),char(0),char(0),char(0),char(10),char(180),char(4),char(3),char(44), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(47), -char(254),char(117),char(4),char(8),char(5),char(182),char(2),char(38),char(2),char(155), -char(0),char(0),char(0),char(7),char(3),char(128),char(0),char(147),char(0),char(0), -char(255),char(255),char(0),char(18),char(254),char(117),char(3),char(66),char(4),char(72), -char(2),char(38),char(2),char(156),char(0),char(0),char(0),char(6),char(3),char(129), -char(117),char(0),char(255),char(255),char(0),char(8),char(254),char(117),char(4),char(201), -char(5),char(182),char(0),char(38),char(0),char(59),char(0),char(0),char(0),char(7), -char(3),char(128),char(3),char(88),char(0),char(0),char(255),char(255),char(0),char(39), -char(254),char(117),char(4),char(52),char(4),char(72),char(0),char(38),char(0),char(91), -char(0),char(0),char(0),char(7),char(3),char(129),char(2),char(195),char(0),char(0), -char(0),char(1),char(0),char(6),char(0),char(0),char(4),char(150),char(5),char(182), -char(0),char(17),char(0),char(59),char(64),char(34),char(15),char(2),char(17),char(1), -char(16),char(13),char(4),char(10),char(7),char(9),char(6),char(11),char(12),char(19), -char(18),char(10),char(17),char(0),char(17),char(73),char(89),char(7),char(13),char(15), -char(4),char(0),char(0),char(2),char(12),char(15),char(18),char(5),char(2),char(3), -char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(47),char(57),char(18), -char(57),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(49),char(48),char(19),char(33),char(1),char(51),char(1),char(1),char(51), -char(1),char(33),char(21),char(33),char(1),char(35),char(1),char(1),char(35),char(1), -char(33),char(127),char(1),char(51),char(254),char(119),char(188),char(1),char(107),char(1), -char(108),char(183),char(254),char(112),char(1),char(60),char(254),char(186),char(1),char(189), -char(193),char(254),char(119),char(254),char(112),char(182),char(1),char(191),char(254),char(186), -char(3),char(84),char(2),char(98),char(253),char(187),char(2),char(69),char(253),char(158), -char(152),char(253),char(68),char(2),char(131),char(253),char(125),char(2),char(188),char(0), -char(0),char(1),char(0),char(39),char(0),char(0),char(4),char(8),char(4),char(72), -char(0),char(17),char(0),char(59),char(64),char(34),char(15),char(2),char(17),char(1), -char(16),char(13),char(4),char(10),char(7),char(9),char(6),char(11),char(12),char(19), -char(18),char(10),char(17),char(0),char(17),char(71),char(89),char(7),char(13),char(15), -char(4),char(0),char(0),char(2),char(12),char(15),char(21),char(5),char(2),char(15), -char(0),char(63),char(51),char(63),char(51),char(18),char(57),char(47),char(57),char(18), -char(57),char(51),char(43),char(17),char(0),char(51),char(17),char(18),char(1),char(23), -char(57),char(49),char(48),char(19),char(33),char(1),char(51),char(1),char(1),char(51), -char(1),char(33),char(21),char(33),char(1),char(35),char(1),char(1),char(35),char(1), -char(33),char(117),char(1),char(18),char(254),char(180),char(189),char(1),char(33),char(1), -char(32),char(187),char(254),char(178),char(1),char(24),char(254),char(226),char(1),char(104), -char(188),char(254),char(205),char(254),char(202),char(188),char(1),char(102),char(254),char(232), -char(2),char(119),char(1),char(209),char(254),char(92),char(1),char(164),char(254),char(47), -char(129),char(254),char(10),char(1),char(188),char(254),char(68),char(1),char(246),char(0), -char(0),char(2),char(0),char(131),char(0),char(0),char(4),char(55),char(5),char(182), -char(0),char(10),char(0),char(19),char(0),char(52),char(64),char(26),char(4),char(19), -char(19),char(7),char(15),char(0),char(7),char(0),char(21),char(20),char(3),char(12), -char(73),char(89),char(3),char(3),char(8),char(5),char(8),char(18),char(74),char(89), -char(8),char(18),char(5),char(3),char(0),char(63),char(63),char(43),char(17),char(18), -char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(1),char(57),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(19),char(52), -char(36),char(33),char(51),char(17),char(51),char(17),char(33),char(32),char(36),char(1), -char(35),char(34),char(6),char(21),char(20),char(22),char(51),char(51),char(131),char(1), -char(36),char(1),char(32),char(198),char(170),char(254),char(99),char(254),char(245),char(254), -char(244),char(3),char(10),char(186),char(222),char(194),char(182),char(203),char(217),char(1), -char(164),char(212),char(206),char(2),char(112),char(250),char(74),char(213),char(1),char(219), -char(124),char(142),char(143),char(132),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(55),char(6),char(20),char(2),char(6),char(0),char(71),char(0),char(0), -char(0),char(2),char(0),char(131),char(255),char(236),char(6),char(119),char(5),char(182), -char(0),char(25),char(0),char(35),char(0),char(70),char(64),char(36),char(30),char(3), -char(24),char(10),char(10),char(7),char(35),char(15),char(18),char(18),char(35),char(3), -char(3),char(36),char(37),char(6),char(27),char(73),char(89),char(24),char(6),char(16), -char(6),char(16),char(0),char(8),char(3),char(12),char(32),char(0),char(32),char(74), -char(89),char(21),char(0),char(19),char(0),char(63),char(50),char(43),char(17),char(0), -char(51),char(24),char(63),char(18),char(57),char(57),char(47),char(47),char(57),char(43), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51), -char(18),char(57),char(17),char(51),char(49),char(48),char(5),char(34),char(38),char(53), -char(52),char(36),char(33),char(51),char(17),char(51),char(17),char(20),char(51),char(50), -char(54),char(53),char(17),char(51),char(17),char(20),char(6),char(35),char(34),char(38), -char(39),char(6),char(19),char(35),char(34),char(6),char(21),char(16),char(33),char(50), -char(54),char(53),char(2),char(78),char(226),char(233),char(1),char(42),char(1),char(34), -char(145),char(170),char(230),char(100),char(121),char(170),char(207),char(184),char(118),char(159), -char(51),char(113),char(41),char(151),char(212),char(194),char(1),char(33),char(127),char(141), -char(18),char(209),char(208),char(217),char(222),char(2),char(112),char(251),char(183),char(236), -char(123),char(110),char(1),char(230),char(254),char(24),char(174),char(206),char(82),char(90), -char(170),char(2),char(192),char(139),char(150),char(254),char(244),char(119),char(112),char(0), -char(0),char(2),char(0),char(115),char(255),char(236),char(6),char(135),char(6),char(20), -char(0),char(34),char(0),char(46),char(0),char(81),char(64),char(41),char(44),char(19), -char(12),char(32),char(32),char(29),char(26),char(38),char(3),char(6),char(6),char(38), -char(19),char(3),char(47),char(48),char(30),char(0),char(13),char(16),char(26),char(22), -char(4),char(4),char(16),char(22),char(22),char(42),char(70),char(89),char(22),char(16), -char(0),char(35),char(16),char(35),char(70),char(89),char(9),char(16),char(22),char(0), -char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(18),char(57),char(18),char(57),char(63), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(51), -char(51),char(18),char(57),char(17),char(51),char(49),char(48),char(37),char(50),char(54), -char(53),char(17),char(51),char(17),char(20),char(6),char(35),char(34),char(38),char(39), -char(35),char(6),char(6),char(35),char(34),char(2),char(17),char(16),char(18),char(51), -char(50),char(22),char(23),char(51),char(38),char(38),char(53),char(17),char(51),char(17), -char(20),char(22),char(33),char(50),char(54),char(53),char(53),char(52),char(38),char(35), -char(32),char(17),char(20),char(22),char(4),char(254),char(118),char(107),char(168),char(200), -char(189),char(129),char(158),char(43),char(8),char(75),char(185),char(129),char(208),char(232), -char(231),char(207),char(106),char(159),char(63),char(12),char(2),char(8),char(166),char(109), -char(253),char(185),char(162),char(146),char(148),char(162),char(254),char(226),char(139),char(119), -char(132),char(136),char(1),char(57),char(254),char(189),char(200),char(197),char(91),char(113), -char(113),char(91),char(1),char(41),char(1),char(12),char(1),char(12),char(1),char(47), -char(77),char(85),char(17),char(112),char(27),char(1),char(190),char(251),char(140),char(160), -char(137),char(185),char(206),char(35),char(231),char(201),char(254),char(78),char(214),char(210), -char(0),char(1),char(0),char(78),char(255),char(236),char(6),char(129),char(5),char(203), -char(0),char(42),char(0),char(75),char(64),char(40),char(6),char(19),char(40),char(25), -char(31),char(34),char(34),char(22),char(25),char(19),char(1),char(13),char(6),char(43), -char(44),char(23),char(2),char(1),char(2),char(1),char(74),char(89),char(2),char(32), -char(2),char(32),char(37),char(16),char(37),char(28),char(73),char(89),char(37),char(19), -char(16),char(9),char(74),char(89),char(16),char(4),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(47), -char(47),char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1), -char(35),char(53),char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(34), -char(6),char(7),char(39),char(54),char(54),char(51),char(50),char(22),char(21),char(20), -char(6),char(7),char(21),char(4),char(19),char(22),char(22),char(51),char(50),char(54), -char(53),char(17),char(51),char(17),char(20),char(6),char(35),char(34),char(38),char(39), -char(38),char(38),char(1),char(174),char(201),char(193),char(192),char(213),char(154),char(128), -char(103),char(177),char(103),char(84),char(93),char(246),char(130),char(214),char(245),char(178), -char(156),char(1),char(98),char(6),char(2),char(108),char(124),char(119),char(112),char(168), -char(210),char(189),char(202),char(208),char(2),char(2),char(205),char(2),char(172),char(143), -char(147),char(132),char(108),char(127),char(55),char(69),char(114),char(72),char(80),char(196), -char(167),char(141),char(183),char(26),char(8),char(51),char(254),char(209),char(150),char(127), -char(121),char(135),char(1),char(205),char(254),char(41),char(198),char(199),char(209),char(200), -char(150),char(145),char(0),char(1),char(0),char(80),char(255),char(236),char(5),char(197), -char(4),char(92),char(0),char(37),char(0),char(75),char(64),char(40),char(18),char(30), -char(10),char(36),char(2),char(5),char(5),char(36),char(30),char(32),char(14),char(24), -char(6),char(38),char(39),char(33),char(15),char(14),char(15),char(14),char(70),char(89), -char(15),char(3),char(15),char(3),char(8),char(27),char(27),char(20),char(70),char(89), -char(27),char(16),char(8),char(0),char(70),char(89),char(8),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57), -char(24),char(47),char(47),char(43),char(17),char(18),char(0),char(57),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(49), -char(48),char(37),char(50),char(17),char(17),char(51),char(17),char(20),char(6),char(35), -char(32),char(3),char(38),char(38),char(35),char(35),char(53),char(51),char(32),char(53), -char(52),char(35),char(34),char(6),char(7),char(39),char(54),char(54),char(51),char(50), -char(22),char(21),char(20),char(7),char(21),char(22),char(22),char(23),char(22),char(4), -char(66),char(221),char(166),char(187),char(196),char(254),char(134),char(16),char(5),char(141), -char(148),char(140),char(111),char(1),char(33),char(242),char(75),char(135),char(77),char(57), -char(85),char(163),char(104),char(184),char(211),char(192),char(99),char(123),char(5),char(9), -char(119),char(1),char(12),char(1),char(57),char(254),char(189),char(202),char(195),char(1), -char(77),char(99),char(88),char(141),char(172),char(162),char(36),char(34),char(135),char(40), -char(36),char(155),char(134),char(184),char(57),char(8),char(20),char(122),char(106),char(211), -char(0),char(1),char(0),char(78),char(254),char(131),char(4),char(209),char(5),char(203), -char(0),char(35),char(0),char(74),char(64),char(40),char(25),char(26),char(30),char(35), -char(33),char(32),char(32),char(22),char(26),char(35),char(4),char(16),char(6),char(36), -char(37),char(26),char(5),char(4),char(5),char(4),char(74),char(89),char(5),char(5), -char(35),char(19),char(35),char(30),char(73),char(89),char(35),char(18),char(33),char(34), -char(19),char(12),char(74),char(89),char(19),char(4),char(0),char(63),char(43),char(0), -char(24),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(52), -char(38),char(35),char(35),char(53),char(51),char(50),char(54),char(53),char(52),char(38), -char(35),char(34),char(6),char(7),char(39),char(54),char(54),char(51),char(50),char(22), -char(21),char(20),char(6),char(7),char(21),char(22),char(22),char(21),char(17),char(51), -char(17),char(35),char(17),char(35),char(3),char(131),char(229),char(226),char(217),char(209), -char(205),char(225),char(164),char(135),char(105),char(195),char(105),char(84),char(97),char(254), -char(132),char(220),char(253),char(189),char(163),char(184),char(195),char(172),char(162),char(172), -char(1),char(156),char(133),char(139),char(143),char(147),char(132),char(107),char(128),char(58), -char(66),char(114),char(74),char(78),char(196),char(167),char(140),char(183),char(25),char(8), -char(25),char(179),char(148),char(254),char(254),char(253),char(233),char(1),char(125),char(0), -char(0),char(1),char(0),char(80),char(254),char(135),char(4),char(16),char(4),char(90), -char(0),char(30),char(0),char(74),char(64),char(40),char(7),char(18),char(25),char(30), -char(28),char(27),char(27),char(21),char(30),char(18),char(3),char(13),char(6),char(32), -char(31),char(21),char(4),char(3),char(4),char(3),char(70),char(89),char(4),char(4), -char(30),char(15),char(30),char(25),char(70),char(89),char(30),char(21),char(28),char(34), -char(15),char(10),char(70),char(89),char(15),char(16),char(0),char(63),char(43),char(0), -char(24),char(63),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(52), -char(33),char(35),char(53),char(51),char(32),char(53),char(52),char(38),char(35),char(34), -char(7),char(39),char(54),char(51),char(50),char(22),char(21),char(20),char(7),char(21), -char(22),char(22),char(21),char(21),char(51),char(17),char(35),char(17),char(35),char(2), -char(213),char(254),char(203),char(150),char(117),char(1),char(57),char(133),char(119),char(153), -char(150),char(61),char(161),char(203),char(191),char(213),char(203),char(126),char(112),char(157), -char(166),char(149),char(1),char(45),char(199),char(141),char(172),char(82),char(80),char(70), -char(135),char(74),char(154),char(135),char(182),char(57),char(11),char(37),char(137),char(102), -char(156),char(253),char(248),char(1),char(121),char(0),char(0),char(1),char(0),char(0), -char(255),char(233),char(7),char(33),char(5),char(182),char(0),char(35),char(0),char(58), -char(64),char(29),char(20),char(35),char(26),char(29),char(29),char(35),char(9),char(3), -char(36),char(37),char(27),char(27),char(7),char(18),char(18),char(1),char(73),char(89), -char(18),char(3),char(23),char(12),char(7),char(12),char(74),char(89),char(32),char(7), -char(19),char(0),char(63),char(51),char(43),char(17),char(0),char(51),char(24),char(63), -char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(17),char(18),char(1), -char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33), -char(7),char(2),char(2),char(6),char(6),char(35),char(34),char(39),char(53),char(22), -char(51),char(50),char(54),char(54),char(18),char(18),char(19),char(33),char(17),char(20), -char(22),char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(20),char(6), -char(35),char(34),char(38),char(53),char(4),char(12),char(254),char(72),char(31),char(43), -char(76),char(83),char(130),char(100),char(69),char(64),char(50),char(63),char(49),char(64), -char(44),char(56),char(74),char(55),char(2),char(239),char(111),char(115),char(112),char(113), -char(168),char(205),char(188),char(196),char(200),char(5),char(31),char(240),char(254),char(174), -char(254),char(68),char(210),char(102),char(25),char(143),char(26),char(62),char(104),char(1), -char(2),char(1),char(233),char(1),char(174),char(251),char(207),char(137),char(121),char(121), -char(135),char(1),char(205),char(254),char(41),char(193),char(204),char(204),char(197),char(0), -char(0),char(1),char(0),char(16),char(255),char(236),char(6),char(41),char(4),char(70), -char(0),char(29),char(0),char(58),char(64),char(29),char(0),char(14),char(5),char(8), -char(8),char(14),char(22),char(3),char(31),char(30),char(6),char(6),char(20),char(28), -char(28),char(16),char(70),char(89),char(28),char(15),char(3),char(25),char(20),char(25), -char(71),char(89),char(11),char(20),char(22),char(0),char(63),char(51),char(43),char(17), -char(0),char(51),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24), -char(47),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(20),char(22),char(51),char(50),char(17),char(17),char(51), -char(17),char(20),char(6),char(35),char(34),char(38),char(53),char(17),char(33),char(2), -char(2),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(18), -char(19),char(33),char(3),char(207),char(104),char(119),char(213),char(166),char(187),char(190), -char(188),char(203),char(254),char(197),char(28),char(94),char(152),char(118),char(58),char(28), -char(22),char(28),char(113),char(137),char(34),char(2),char(113),char(1),char(131),char(137), -char(131),char(1),char(10),char(1),char(59),char(254),char(189),char(202),char(195),char(196), -char(203),char(2),char(61),char(254),char(152),char(254),char(100),char(192),char(10),char(127), -char(6),char(1),char(217),char(1),char(246),char(0),char(0),char(1),char(0),char(201), -char(255),char(236),char(7),char(94),char(5),char(182),char(0),char(25),char(0),char(67), -char(64),char(35),char(23),char(0),char(15),char(6),char(9),char(22),char(18),char(18), -char(19),char(9),char(15),char(19),char(3),char(26),char(27),char(22),char(17),char(73), -char(89),char(22),char(7),char(22),char(7),char(19),char(24),char(20),char(3),char(19), -char(18),char(12),char(3),char(73),char(89),char(12),char(19),char(0),char(63),char(43), -char(0),char(24),char(63),char(63),char(51),char(18),char(57),char(57),char(47),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(1),char(20),char(22), -char(51),char(50),char(54),char(53),char(17),char(51),char(17),char(20),char(6),char(35), -char(34),char(38),char(53),char(17),char(33),char(17),char(35),char(17),char(51),char(17), -char(33),char(17),char(51),char(4),char(246),char(110),char(115),char(112),char(113),char(166), -char(200),char(191),char(195),char(200),char(253),char(39),char(170),char(170),char(2),char(217), -char(170),char(1),char(133),char(137),char(121),char(121),char(135),char(1),char(205),char(254), -char(41),char(191),char(206),char(203),char(198),char(1),char(51),char(253),char(80),char(5), -char(182),char(253),char(146),char(2),char(110),char(0),char(0),char(1),char(0),char(176), -char(255),char(236),char(6),char(168),char(4),char(72),char(0),char(24),char(0),char(77), -char(64),char(42),char(5),char(2),char(19),char(10),char(13),char(1),char(22),char(22), -char(23),char(13),char(19),char(23),char(3),char(25),char(26),char(1),char(21),char(70), -char(89),char(15),char(1),char(31),char(1),char(2),char(11),char(3),char(1),char(11), -char(1),char(11),char(23),char(3),char(24),char(15),char(23),char(21),char(16),char(8), -char(70),char(89),char(16),char(22),char(0),char(63),char(43),char(0),char(24),char(63), -char(63),char(51),char(18),char(57),char(57),char(47),char(47),char(95),char(94),char(93), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(51),char(49),char(48),char(1),char(17),char(33), -char(17),char(51),char(17),char(20),char(22),char(51),char(50),char(17),char(17),char(51), -char(17),char(20),char(6),char(35),char(34),char(38),char(53),char(53),char(33),char(17), -char(35),char(17),char(1),char(86),char(2),char(80),char(166),char(106),char(119),char(213), -char(166),char(187),char(192),char(186),char(205),char(253),char(176),char(166),char(4),char(72), -char(254),char(53),char(1),char(203),char(253),char(61),char(137),char(133),char(1),char(12), -char(1),char(57),char(254),char(189),char(202),char(195),char(198),char(201),char(115),char(254), -char(18),char(4),char(72),char(0),char(0),char(1),char(0),char(125),char(255),char(236), -char(5),char(154),char(5),char(203),char(0),char(28),char(0),char(58),char(64),char(31), -char(22),char(8),char(27),char(2),char(2),char(15),char(28),char(8),char(4),char(29), -char(30),char(0),char(28),char(73),char(89),char(0),char(0),char(5),char(12),char(12), -char(19),char(73),char(89),char(12),char(4),char(5),char(25),char(73),char(89),char(5), -char(19),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18), -char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(33),char(21),char(16), -char(0),char(33),char(32),char(0),char(17),char(52),char(18),char(36),char(51),char(50), -char(22),char(23),char(7),char(38),char(38),char(35),char(32),char(0),char(17),char(16), -char(0),char(51),char(32),char(17),char(33),char(3),char(102),char(2),char(52),char(254), -char(204),char(254),char(201),char(254),char(187),char(254),char(147),char(179),char(1),char(85), -char(234),char(120),char(237),char(83),char(66),char(90),char(214),char(87),char(254),char(245), -char(254),char(222),char(1),char(11),char(247),char(1),char(180),char(254),char(127),char(2), -char(240),char(86),char(254),char(161),char(254),char(177),char(1),char(145),char(1),char(96), -char(229),char(1),char(84),char(181),char(49),char(39),char(148),char(38),char(46),char(254), -char(197),char(254),char(227),char(254),char(227),char(254),char(195),char(1),char(215),char(0), -char(0),char(1),char(0),char(115),char(255),char(236),char(4),char(176),char(4),char(92), -char(0),char(25),char(0),char(58),char(64),char(31),char(18),char(7),char(24),char(2), -char(2),char(12),char(25),char(7),char(4),char(26),char(27),char(0),char(25),char(70), -char(89),char(0),char(0),char(4),char(10),char(10),char(15),char(70),char(89),char(10), -char(16),char(4),char(21),char(70),char(89),char(4),char(22),char(0),char(63),char(43), -char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(21),char(16),char(33),char(32),char(0),char(17), -char(16),char(0),char(33),char(50),char(23),char(7),char(38),char(35),char(34),char(6), -char(21),char(20),char(22),char(51),char(50),char(54),char(53),char(33),char(2),char(178), -char(1),char(254),char(253),char(254),char(254),char(238),char(254),char(215),char(1),char(67), -char(1),char(33),char(212),char(175),char(59),char(168),char(166),char(205),char(229),char(204), -char(197),char(169),char(175),char(254),char(170),char(2),char(63),char(67),char(253),char(240), -char(1),char(39),char(1),char(16),char(1),char(14),char(1),char(43),char(80),char(131), -char(74),char(222),char(210),char(207),char(223),char(160),char(157),char(0),char(0),char(1), -char(0),char(16),char(255),char(236),char(4),char(244),char(5),char(182),char(0),char(20), -char(0),char(57),char(64),char(29),char(5),char(19),char(10),char(13),char(13),char(3), -char(19),char(0),char(4),char(21),char(22),char(11),char(11),char(16),char(1),char(16), -char(8),char(73),char(89),char(16),char(19),char(4),char(0),char(1),char(0),char(73), -char(89),char(1),char(3),char(0),char(63),char(43),char(17),char(0),char(51),char(24), -char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(17),char(18), -char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(19), -char(53),char(33),char(21),char(33),char(17),char(20),char(22),char(51),char(50),char(17), -char(17),char(51),char(17),char(20),char(6),char(35),char(34),char(38),char(53),char(17), -char(16),char(4),char(60),char(254),char(47),char(119),char(114),char(232),char(168),char(211), -char(189),char(198),char(205),char(5),char(29),char(153),char(153),char(252),char(104),char(137), -char(123),char(1),char(0),char(1),char(207),char(254),char(41),char(192),char(205),char(206), -char(195),char(3),char(160),char(0),char(0),char(1),char(0),char(41),char(255),char(236), -char(4),char(135),char(4),char(70),char(0),char(20),char(0),char(54),char(64),char(28), -char(2),char(16),char(7),char(10),char(10),char(0),char(16),char(18),char(4),char(21), -char(22),char(1),char(18),char(19),char(18),char(70),char(89),char(8),char(8),char(13), -char(19),char(15),char(13),char(5),char(70),char(89),char(13),char(22),char(0),char(63), -char(43),char(0),char(24),char(63),char(18),char(57),char(47),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(49),char(48),char(1),char(33),char(17),char(20),char(22),char(51),char(50),char(17), -char(17),char(51),char(17),char(20),char(6),char(35),char(34),char(38),char(53),char(17), -char(33),char(53),char(33),char(3),char(129),char(254),char(166),char(109),char(118),char(215), -char(166),char(189),char(192),char(192),char(201),char(254),char(168),char(3),char(88),char(3), -char(186),char(253),char(201),char(137),char(131),char(1),char(4),char(1),char(65),char(254), -char(189),char(202),char(195),char(203),char(196),char(2),char(63),char(140),char(0),char(1), -char(0),char(111),char(255),char(236),char(4),char(88),char(5),char(203),char(0),char(38), -char(0),char(71),char(64),char(38),char(21),char(32),char(12),char(0),char(36),char(35), -char(5),char(27),char(17),char(35),char(0),char(32),char(6),char(39),char(40),char(35), -char(15),char(18),char(15),char(18),char(74),char(89),char(15),char(15),char(29),char(3), -char(29),char(24),char(74),char(89),char(29),char(19),char(3),char(9),char(74),char(89), -char(3),char(4),char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17), -char(18),char(0),char(57),char(24),char(47),char(43),char(17),char(18),char(0),char(57), -char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51),char(17), -char(51),char(49),char(48),char(19),char(52),char(36),char(51),char(32),char(23),char(7), -char(38),char(38),char(35),char(34),char(6),char(21),char(20),char(22),char(51),char(51), -char(21),char(35),char(34),char(6),char(21),char(20),char(22),char(51),char(50),char(55), -char(21),char(6),char(33),char(32),char(36),char(53),char(52),char(54),char(55),char(53), -char(38),char(38),char(156),char(1),char(8),char(225),char(1),char(2),char(209),char(94), -char(105),char(181),char(101),char(140),char(159),char(209),char(200),char(217),char(213),char(222), -char(232),char(202),char(183),char(233),char(199),char(175),char(254),char(251),char(254),char(244), -char(254),char(219),char(207),char(188),char(170),char(180),char(4),char(92),char(169),char(198), -char(144),char(120),char(68),char(52),char(123),char(114),char(128),char(147),char(141),char(142), -char(138),char(142),char(141),char(92),char(158),char(77),char(220),char(197),char(151),char(192), -char(22),char(8),char(25),char(178),char(255),char(255),char(0),char(90),char(255),char(236), -char(3),char(135),char(4),char(92),char(2),char(6),char(1),char(130),char(0),char(0), -char(255),char(255),char(0),char(0),char(254),char(117),char(5),char(107),char(5),char(182), -char(0),char(38),char(1),char(181),char(0),char(0),char(0),char(7),char(3),char(128), -char(3),char(250),char(0),char(0),char(255),char(255),char(0),char(16),char(254),char(117), -char(4),char(115),char(4),char(72),char(2),char(38),char(1),char(213),char(0),char(0), -char(0),char(7),char(3),char(129),char(3),char(2),char(0),char(0),char(255),char(255), -char(0),char(0),char(254),char(160),char(5),char(16),char(5),char(188),char(2),char(38), -char(0),char(36),char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(233), -char(0),char(0),char(255),char(255),char(0),char(94),char(254),char(160),char(3),char(205), -char(4),char(90),char(2),char(38),char(0),char(68),char(0),char(0),char(0),char(7), -char(2),char(103),char(4),char(121),char(0),char(0),char(255),char(255),char(0),char(0), -char(0),char(0),char(5),char(16),char(7),char(225),char(2),char(38),char(0),char(36), -char(0),char(0),char(1),char(7),char(2),char(102),char(4),char(252),char(1),char(82), -char(0),char(8),char(179),char(2),char(19),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205),char(6),char(143), -char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(7),char(2),char(102), -char(4),char(166),char(0),char(0),char(0),char(8),char(179),char(2),char(41),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(5),char(16),char(7),char(209),char(2),char(38),char(0),char(36),char(0),char(0), -char(1),char(7),char(3),char(119),char(4),char(229),char(1),char(82),char(0),char(10), -char(180),char(3),char(2),char(21),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(94),char(255),char(236),char(4),char(65),char(6),char(127), -char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(7),char(3),char(119), -char(4),char(147),char(0),char(0),char(0),char(10),char(180),char(3),char(2),char(43), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(0), -char(0),char(0),char(5),char(16),char(7),char(209),char(2),char(38),char(0),char(36), -char(0),char(0),char(1),char(7),char(3),char(120),char(4),char(221),char(1),char(82), -char(0),char(10),char(180),char(3),char(2),char(21),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(45),char(255),char(236),char(3),char(205), -char(6),char(127),char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(7), -char(3),char(120),char(4),char(147),char(0),char(0),char(0),char(10),char(180),char(3), -char(2),char(43),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(8),char(74),char(2),char(38), -char(0),char(36),char(0),char(0),char(1),char(7),char(3),char(121),char(4),char(217), -char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(21),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(94),char(255),char(236), -char(4),char(23),char(6),char(248),char(2),char(38),char(0),char(68),char(0),char(0), -char(1),char(7),char(3),char(121),char(4),char(156),char(0),char(0),char(0),char(10), -char(180),char(3),char(2),char(43),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16),char(8),char(98), -char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7),char(3),char(122), -char(4),char(229),char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(45), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(94), -char(255),char(236),char(3),char(205),char(7),char(16),char(2),char(38),char(0),char(68), -char(0),char(0),char(1),char(7),char(3),char(122),char(4),char(145),char(0),char(0), -char(0),char(10),char(180),char(3),char(2),char(67),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(0),char(254),char(160),char(5),char(16), -char(7),char(115),char(2),char(38),char(0),char(36),char(0),char(0),char(0),char(39), -char(2),char(103),char(4),char(233),char(0),char(0),char(1),char(7),char(1),char(75), -char(0),char(43),char(1),char(82),char(0),char(8),char(179),char(3),char(41),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(94),char(254),char(160), -char(3),char(205),char(6),char(33),char(2),char(38),char(0),char(68),char(0),char(0), -char(0),char(39),char(2),char(103),char(4),char(121),char(0),char(0),char(1),char(6), -char(1),char(75),char(212),char(0),char(0),char(8),char(179),char(3),char(62),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(0),char(0),char(0), -char(5),char(16),char(8),char(19),char(2),char(38),char(0),char(36),char(0),char(0), -char(1),char(7),char(3),char(123),char(4),char(236),char(1),char(82),char(0),char(10), -char(180),char(3),char(2),char(23),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205),char(6),char(193), -char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(7),char(3),char(123), -char(4),char(154),char(0),char(0),char(0),char(10),char(180),char(3),char(2),char(45), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(0), -char(0),char(0),char(5),char(16),char(8),char(19),char(2),char(38),char(0),char(36), -char(0),char(0),char(1),char(7),char(3),char(124),char(4),char(233),char(1),char(82), -char(0),char(10),char(180),char(3),char(2),char(23),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(94),char(255),char(236),char(3),char(205), -char(6),char(193),char(2),char(38),char(0),char(68),char(0),char(0),char(1),char(7), -char(3),char(124),char(4),char(152),char(0),char(0),char(0),char(10),char(180),char(3), -char(2),char(45),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(5),char(16),char(8),char(88),char(2),char(38), -char(0),char(36),char(0),char(0),char(1),char(7),char(3),char(125),char(4),char(233), -char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(33),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(94),char(255),char(236), -char(3),char(205),char(7),char(6),char(2),char(38),char(0),char(68),char(0),char(0), -char(1),char(7),char(3),char(125),char(4),char(160),char(0),char(0),char(0),char(10), -char(180),char(3),char(2),char(55),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(0),char(0),char(0),char(5),char(16),char(8),char(94), -char(2),char(38),char(0),char(36),char(0),char(0),char(1),char(7),char(3),char(126), -char(4),char(227),char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(39), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(94), -char(255),char(236),char(3),char(205),char(7),char(12),char(2),char(38),char(0),char(68), -char(0),char(0),char(1),char(7),char(3),char(126),char(4),char(152),char(0),char(0), -char(0),char(10),char(180),char(3),char(2),char(61),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(0),char(254),char(160),char(5),char(16), -char(7),char(73),char(2),char(38),char(0),char(36),char(0),char(0),char(0),char(39), -char(1),char(78),char(0),char(45),char(1),char(100),char(1),char(7),char(2),char(103), -char(4),char(233),char(0),char(0),char(0),char(8),char(179),char(2),char(15),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(94),char(254),char(160), -char(3),char(205),char(5),char(229),char(2),char(38),char(0),char(68),char(0),char(0), -char(0),char(38),char(1),char(78),char(216),char(0),char(1),char(7),char(2),char(103), -char(4),char(121),char(0),char(0),char(0),char(8),char(179),char(2),char(37),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201),char(254),char(160), -char(3),char(248),char(5),char(182),char(2),char(38),char(0),char(40),char(0),char(0), -char(0),char(7),char(2),char(103),char(4),char(193),char(0),char(0),char(255),char(255), -char(0),char(115),char(254),char(160),char(4),char(18),char(4),char(92),char(2),char(38), -char(0),char(72),char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(184), -char(0),char(0),char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248), -char(7),char(225),char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7), -char(2),char(102),char(4),char(209),char(1),char(82),char(0),char(8),char(179),char(1), -char(16),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(18),char(6),char(143),char(2),char(38),char(0),char(72), -char(0),char(0),char(1),char(7),char(2),char(102),char(4),char(201),char(0),char(0), -char(0),char(8),char(179),char(2),char(31),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248),char(7),char(47), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(1),char(82), -char(255),char(228),char(1),char(82),char(0),char(8),char(179),char(1),char(21),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(18),char(5),char(221),char(2),char(38),char(0),char(72),char(0),char(0), -char(1),char(6),char(1),char(82),char(208),char(0),char(0),char(8),char(179),char(2), -char(36),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201), -char(0),char(0),char(4),char(111),char(7),char(209),char(2),char(38),char(0),char(40), -char(0),char(0),char(1),char(7),char(3),char(119),char(4),char(193),char(1),char(82), -char(0),char(10),char(180),char(2),char(1),char(18),char(5),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(92), -char(6),char(127),char(2),char(38),char(0),char(72),char(0),char(0),char(1),char(7), -char(3),char(119),char(4),char(174),char(0),char(0),char(0),char(10),char(180),char(3), -char(2),char(33),char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(93),char(0),char(0),char(3),char(248),char(7),char(209),char(2),char(38), -char(0),char(40),char(0),char(0),char(1),char(7),char(3),char(120),char(4),char(195), -char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(18),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(74),char(255),char(236), -char(4),char(18),char(6),char(127),char(2),char(38),char(0),char(72),char(0),char(0), -char(1),char(7),char(3),char(120),char(4),char(176),char(0),char(0),char(0),char(10), -char(180),char(3),char(2),char(33),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(201),char(0),char(0),char(4),char(57),char(8),char(74), -char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7),char(3),char(121), -char(4),char(190),char(1),char(82),char(0),char(10),char(180),char(2),char(1),char(18), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(115), -char(255),char(236),char(4),char(29),char(6),char(248),char(2),char(38),char(0),char(72), -char(0),char(0),char(1),char(7),char(3),char(121),char(4),char(162),char(0),char(0), -char(0),char(10),char(180),char(3),char(2),char(33),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(201),char(0),char(0),char(3),char(248), -char(8),char(98),char(2),char(38),char(0),char(40),char(0),char(0),char(1),char(7), -char(3),char(122),char(4),char(184),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(42),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(18),char(7),char(16),char(2),char(38), -char(0),char(72),char(0),char(0),char(1),char(7),char(3),char(122),char(4),char(162), -char(0),char(0),char(0),char(10),char(180),char(3),char(2),char(57),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(201),char(254),char(160), -char(3),char(248),char(7),char(115),char(2),char(38),char(0),char(40),char(0),char(0), -char(0),char(39),char(2),char(103),char(4),char(190),char(0),char(0),char(1),char(7), -char(1),char(75),char(0),char(2),char(1),char(82),char(0),char(8),char(179),char(2), -char(37),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115), -char(254),char(160),char(4),char(18),char(6),char(33),char(2),char(38),char(0),char(72), -char(0),char(0),char(0),char(39),char(2),char(103),char(4),char(176),char(0),char(0), -char(1),char(6),char(1),char(75),char(241),char(0),char(0),char(8),char(179),char(3), -char(52),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(84), -char(0),char(0),char(2),char(86),char(7),char(225),char(2),char(38),char(0),char(44), -char(0),char(0),char(1),char(7),char(2),char(102),char(3),char(201),char(1),char(82), -char(0),char(8),char(179),char(1),char(16),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(123),char(0),char(0),char(1),char(230),char(6),char(143), -char(2),char(38),char(0),char(243),char(0),char(0),char(1),char(7),char(2),char(102), -char(3),char(115),char(0),char(0),char(0),char(8),char(179),char(1),char(8),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(84),char(254),char(160), -char(2),char(86),char(5),char(182),char(2),char(38),char(0),char(44),char(0),char(0), -char(0),char(7),char(2),char(103),char(3),char(180),char(0),char(0),char(255),char(255), -char(0),char(157),char(254),char(160),char(1),char(102),char(5),char(223),char(2),char(38), -char(0),char(76),char(0),char(0),char(0),char(7),char(2),char(103),char(3),char(98), -char(0),char(0),char(255),char(255),char(0),char(125),char(254),char(160),char(5),char(190), -char(5),char(205),char(2),char(38),char(0),char(50),char(0),char(0),char(0),char(7), -char(2),char(103),char(5),char(127),char(0),char(0),char(255),char(255),char(0),char(115), -char(254),char(160),char(4),char(98),char(4),char(92),char(2),char(38),char(0),char(82), -char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(201),char(0),char(0), -char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(225), -char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7),char(2),char(102), -char(5),char(143),char(1),char(82),char(0),char(8),char(179),char(2),char(28),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(98),char(6),char(143),char(2),char(38),char(0),char(82),char(0),char(0), -char(1),char(7),char(2),char(102),char(4),char(217),char(0),char(0),char(0),char(8), -char(179),char(2),char(29),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(209),char(2),char(38), -char(0),char(50),char(0),char(0),char(1),char(7),char(3),char(119),char(5),char(125), -char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(30),char(5),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(4),char(117),char(6),char(127),char(2),char(38),char(0),char(82),char(0),char(0), -char(1),char(7),char(3),char(119),char(4),char(199),char(0),char(0),char(0),char(10), -char(180),char(3),char(2),char(31),char(17),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190),char(7),char(209), -char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7),char(3),char(120), -char(5),char(125),char(1),char(82),char(0),char(10),char(180),char(3),char(2),char(30), -char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(97), -char(255),char(236),char(4),char(98),char(6),char(127),char(2),char(38),char(0),char(82), -char(0),char(0),char(1),char(7),char(3),char(120),char(4),char(199),char(0),char(0), -char(0),char(10),char(180),char(3),char(2),char(31),char(17),char(38),char(0),char(43), -char(53),char(53),char(255),char(255),char(0),char(125),char(255),char(236),char(5),char(190), -char(8),char(74),char(2),char(38),char(0),char(50),char(0),char(0),char(1),char(7), -char(3),char(121),char(5),char(123),char(1),char(82),char(0),char(10),char(180),char(3), -char(2),char(30),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(4),char(98),char(6),char(248),char(2),char(38), -char(0),char(82),char(0),char(0),char(1),char(7),char(3),char(121),char(4),char(199), -char(0),char(0),char(0),char(10),char(180),char(3),char(2),char(31),char(17),char(38), -char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(5),char(190),char(8),char(98),char(2),char(38),char(0),char(50),char(0),char(0), -char(1),char(7),char(3),char(122),char(5),char(121),char(1),char(82),char(0),char(10), -char(180),char(3),char(2),char(54),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(115),char(255),char(236),char(4),char(98),char(7),char(16), -char(2),char(38),char(0),char(82),char(0),char(0),char(1),char(7),char(3),char(122), -char(4),char(197),char(0),char(0),char(0),char(10),char(180),char(3),char(2),char(55), -char(17),char(38),char(0),char(43),char(53),char(53),char(255),char(255),char(0),char(125), -char(254),char(160),char(5),char(190),char(7),char(115),char(2),char(38),char(0),char(50), -char(0),char(0),char(0),char(39),char(2),char(103),char(5),char(127),char(0),char(0), -char(1),char(7),char(1),char(75),char(0),char(193),char(1),char(82),char(0),char(8), -char(179),char(3),char(49),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(254),char(160),char(4),char(98),char(6),char(33),char(2),char(38), -char(0),char(82),char(0),char(0),char(0),char(39),char(2),char(103),char(4),char(205), -char(0),char(0),char(1),char(6),char(1),char(75),char(14),char(0),char(0),char(8), -char(179),char(3),char(50),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(6),char(100),char(7),char(115),char(2),char(38), -char(2),char(95),char(0),char(0),char(1),char(7),char(0),char(118),char(1),char(43), -char(1),char(82),char(0),char(8),char(179),char(2),char(43),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(5),char(25), -char(6),char(33),char(2),char(38),char(2),char(96),char(0),char(0),char(1),char(6), -char(0),char(118),char(109),char(0),char(0),char(8),char(179),char(2),char(43),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125),char(255),char(236), -char(6),char(100),char(7),char(115),char(2),char(38),char(2),char(95),char(0),char(0), -char(1),char(7),char(0),char(67),char(0),char(135),char(1),char(82),char(0),char(8), -char(179),char(2),char(35),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(115),char(255),char(236),char(5),char(25),char(6),char(33),char(2),char(38), -char(2),char(96),char(0),char(0),char(1),char(6),char(0),char(67),char(212),char(0), -char(0),char(8),char(179),char(2),char(36),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(125),char(255),char(236),char(6),char(100),char(7),char(225), -char(2),char(38),char(2),char(95),char(0),char(0),char(1),char(7),char(2),char(102), -char(5),char(143),char(1),char(82),char(0),char(8),char(179),char(2),char(38),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236), -char(5),char(25),char(6),char(143),char(2),char(38),char(2),char(96),char(0),char(0), -char(1),char(7),char(2),char(102),char(4),char(217),char(0),char(0),char(0),char(8), -char(179),char(2),char(39),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(125),char(255),char(236),char(6),char(100),char(7),char(47),char(2),char(38), -char(2),char(95),char(0),char(0),char(1),char(7),char(1),char(82),char(0),char(160), -char(1),char(82),char(0),char(8),char(179),char(2),char(43),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(115),char(255),char(236),char(5),char(25), -char(5),char(221),char(2),char(38),char(2),char(96),char(0),char(0),char(1),char(6), -char(1),char(82),char(245),char(0),char(0),char(8),char(179),char(2),char(35),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(125),char(254),char(160), -char(6),char(100),char(6),char(20),char(2),char(38),char(2),char(95),char(0),char(0), -char(0),char(7),char(2),char(103),char(5),char(123),char(0),char(0),char(255),char(255), -char(0),char(115),char(254),char(160),char(5),char(25),char(4),char(240),char(2),char(38), -char(2),char(96),char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(201), -char(0),char(0),char(255),char(255),char(0),char(186),char(254),char(160),char(5),char(25), -char(5),char(182),char(2),char(38),char(0),char(56),char(0),char(0),char(0),char(7), -char(2),char(103),char(5),char(74),char(0),char(0),char(255),char(255),char(0),char(164), -char(254),char(160),char(4),char(57),char(4),char(72),char(2),char(38),char(0),char(88), -char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(184),char(0),char(0), -char(255),char(255),char(0),char(186),char(255),char(236),char(5),char(25),char(7),char(225), -char(2),char(38),char(0),char(56),char(0),char(0),char(1),char(7),char(2),char(102), -char(5),char(84),char(1),char(82),char(0),char(8),char(179),char(1),char(22),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236), -char(4),char(57),char(6),char(143),char(2),char(38),char(0),char(88),char(0),char(0), -char(1),char(7),char(2),char(102),char(4),char(213),char(0),char(0),char(0),char(8), -char(179),char(1),char(25),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(186),char(255),char(236),char(6),char(123),char(7),char(115),char(2),char(38), -char(2),char(97),char(0),char(0),char(1),char(7),char(0),char(118),char(0),char(238), -char(1),char(82),char(0),char(8),char(179),char(1),char(37),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236),char(5),char(150), -char(6),char(33),char(2),char(38),char(2),char(98),char(0),char(0),char(1),char(6), -char(0),char(118),char(121),char(0),char(0),char(8),char(179),char(1),char(38),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(186),char(255),char(236), -char(6),char(123),char(7),char(115),char(2),char(38),char(2),char(97),char(0),char(0), -char(1),char(7),char(0),char(67),char(0),char(90),char(1),char(82),char(0),char(8), -char(179),char(1),char(29),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(164),char(255),char(236),char(5),char(150),char(6),char(33),char(2),char(38), -char(2),char(98),char(0),char(0),char(1),char(6),char(0),char(67),char(187),char(0), -char(0),char(8),char(179),char(1),char(31),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(186),char(255),char(236),char(6),char(123),char(7),char(225), -char(2),char(38),char(2),char(97),char(0),char(0),char(1),char(7),char(2),char(102), -char(5),char(96),char(1),char(82),char(0),char(8),char(179),char(1),char(32),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236), -char(5),char(150),char(6),char(143),char(2),char(38),char(2),char(98),char(0),char(0), -char(1),char(7),char(2),char(102),char(4),char(219),char(0),char(0),char(0),char(8), -char(179),char(1),char(34),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(186),char(255),char(236),char(6),char(123),char(7),char(47),char(2),char(38), -char(2),char(97),char(0),char(0),char(1),char(7),char(1),char(82),char(0),char(127), -char(1),char(82),char(0),char(8),char(179),char(1),char(37),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(164),char(255),char(236),char(5),char(150), -char(5),char(221),char(2),char(38),char(2),char(98),char(0),char(0),char(1),char(6), -char(1),char(82),char(255),char(0),char(0),char(8),char(179),char(1),char(30),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(186),char(254),char(160), -char(6),char(123),char(6),char(20),char(2),char(38),char(2),char(97),char(0),char(0), -char(0),char(7),char(2),char(103),char(5),char(76),char(0),char(0),char(255),char(255), -char(0),char(164),char(254),char(160),char(5),char(150),char(4),char(242),char(2),char(38), -char(2),char(98),char(0),char(0),char(0),char(7),char(2),char(103),char(4),char(178), -char(0),char(0),char(255),char(255),char(0),char(0),char(254),char(160),char(4),char(123), -char(5),char(182),char(2),char(38),char(0),char(60),char(0),char(0),char(0),char(7), -char(2),char(103),char(4),char(156),char(0),char(0),char(255),char(255),char(0),char(2), -char(254),char(20),char(4),char(6),char(4),char(72),char(2),char(38),char(0),char(92), -char(0),char(0),char(0),char(7),char(2),char(103),char(5),char(158),char(255),char(253), -char(255),char(255),char(0),char(0),char(0),char(0),char(4),char(123),char(7),char(225), -char(2),char(38),char(0),char(60),char(0),char(0),char(1),char(7),char(2),char(102), -char(4),char(170),char(1),char(82),char(0),char(8),char(179),char(1),char(13),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(2),char(254),char(20), -char(4),char(6),char(6),char(143),char(2),char(38),char(0),char(92),char(0),char(0), -char(1),char(7),char(2),char(102),char(4),char(106),char(0),char(0),char(0),char(8), -char(179),char(1),char(26),char(17),char(38),char(0),char(43),char(53),char(255),char(255), -char(0),char(0),char(0),char(0),char(4),char(123),char(7),char(47),char(2),char(38), -char(0),char(60),char(0),char(0),char(1),char(7),char(1),char(82),char(255),char(194), -char(1),char(82),char(0),char(8),char(179),char(1),char(18),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(2),char(254),char(20),char(4),char(6), -char(5),char(221),char(2),char(38),char(0),char(92),char(0),char(0),char(1),char(6), -char(1),char(82),char(138),char(0),char(0),char(8),char(179),char(1),char(31),char(17), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(115),char(254),char(197), -char(4),char(211),char(6),char(20),char(2),char(38),char(0),char(211),char(0),char(0), -char(0),char(7),char(0),char(66),char(0),char(180),char(0),char(0),char(0),char(2), -char(251),char(229),char(4),char(217),char(254),char(180),char(6),char(33),char(0),char(9), -char(0),char(19),char(0),char(30),char(64),char(12),char(4),char(10),char(14),char(14), -char(0),char(0),char(21),char(15),char(6),char(128),char(11),char(1),char(0),char(47), -char(51),char(26),char(205),char(50),char(17),char(1),char(51),char(17),char(51),char(18), -char(57),char(57),char(49),char(48),char(1),char(35),char(38),char(38),char(39),char(53), -char(51),char(22),char(22),char(23),char(5),char(35),char(38),char(38),char(39),char(53), -char(51),char(22),char(22),char(23),char(254),char(180),char(96),char(52),char(177),char(37), -char(186),char(28),char(99),char(49),char(254),char(156),char(96),char(56),char(174),char(37), -char(187),char(28),char(99),char(49),char(4),char(217),char(42),char(202),char(63),char(21), -char(61),char(174),char(68),char(25),char(44),char(200),char(63),char(21),char(61),char(174), -char(68),char(0),char(0),char(2),char(252),char(113),char(4),char(217),char(255),char(174), -char(6),char(127),char(0),char(13),char(0),char(21),char(0),char(40),char(64),char(17), -char(21),char(0),char(6),char(17),char(17),char(23),char(3),char(6),char(10),char(21), -char(10),char(21),char(10),char(17),char(192),char(6),char(1),char(0),char(47),char(51), -char(26),char(204),char(57),char(57),char(47),char(47),char(17),char(18),char(57),char(17), -char(1),char(51),char(17),char(51),char(57),char(57),char(49),char(48),char(1),char(35), -char(38),char(39),char(6),char(7),char(35),char(53),char(55),char(54),char(55),char(51), -char(22),char(23),char(39),char(54),char(55),char(51),char(21),char(6),char(7),char(35), -char(254),char(211),char(94),char(112),char(99),char(114),char(97),char(94),char(53),char(112), -char(52),char(176),char(66),char(151),char(80),char(73),char(54),char(172),char(83),char(120), -char(96),char(4),char(217),char(75),char(91),char(101),char(65),char(25),char(60),char(123), -char(77),char(94),char(166),char(194),char(91),char(112),char(21),char(110),char(96),char(0), -char(0),char(2),char(251),char(154),char(4),char(217),char(254),char(215),char(6),char(127), -char(0),char(13),char(0),char(21),char(0),char(42),char(64),char(18),char(6),char(14), -char(17),char(17),char(0),char(0),char(23),char(3),char(6),char(10),char(15),char(10), -char(15),char(10),char(19),char(192),char(6),char(1),char(0),char(47),char(51),char(26), -char(204),char(57),char(57),char(47),char(47),char(17),char(18),char(57),char(17),char(1), -char(51),char(17),char(51),char(18),char(57),char(57),char(49),char(48),char(1),char(35), -char(38),char(39),char(6),char(7),char(35),char(53),char(55),char(54),char(55),char(51), -char(22),char(23),char(37),char(35),char(38),char(39),char(53),char(51),char(22),char(23), -char(254),char(215),char(94),char(97),char(114),char(106),char(105),char(94),char(53),char(112), -char(52),char(176),char(66),char(151),char(253),char(238),char(95),char(120),char(84),char(172), -char(52),char(75),char(4),char(217),char(65),char(101),char(96),char(70),char(23),char(60), -char(123),char(77),char(94),char(166),char(172),char(94),char(112),char(21),char(108),char(97), -char(0),char(2),char(252),char(113),char(4),char(217),char(255),char(123),char(6),char(248), -char(0),char(13),char(0),char(31),char(0),char(52),char(64),char(24),char(16),char(19), -char(0),char(19),char(27),char(3),char(6),char(6),char(22),char(14),char(14),char(33), -char(3),char(10),char(6),char(18),char(10),char(18),char(10),char(25),char(30),char(192), -char(6),char(1),char(0),char(47),char(51),char(26),char(204),char(50),char(57),char(57), -char(47),char(47),char(17),char(18),char(57),char(17),char(1),char(51),char(17),char(51), -char(51),char(18),char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(35), -char(38),char(39),char(6),char(7),char(35),char(53),char(55),char(54),char(55),char(51), -char(22),char(23),char(19),char(20),char(7),char(7),char(35),char(39),char(54),char(54), -char(53),char(52),char(38),char(35),char(34),char(7),char(53),char(54),char(51),char(50), -char(254),char(211),char(94),char(112),char(99),char(114),char(97),char(94),char(53),char(112), -char(52),char(176),char(66),char(151),char(168),char(127),char(6),char(80),char(10),char(57), -char(63),char(57),char(43),char(46),char(26),char(25),char(55),char(195),char(4),char(217), -char(75),char(91),char(101),char(65),char(25),char(60),char(123),char(77),char(94),char(166), -char(1),char(123),char(103),char(29),char(81),char(131),char(9),char(32),char(38),char(37), -char(25),char(6),char(80),char(6),char(0),char(2),char(252),char(104),char(4),char(217), -char(254),char(231),char(7),char(16),char(0),char(23),char(0),char(37),char(0),char(58), -char(64),char(27),char(24),char(30),char(9),char(9),char(21),char(21),char(39),char(27), -char(30),char(34),char(30),char(25),char(17),char(9),char(0),char(5),char(12),char(34), -char(0),char(12),char(12),char(0),char(34),char(3),char(21),char(192),char(25),char(0), -char(47),char(26),char(204),char(23),char(57),char(47),char(47),char(47),char(17),char(51), -char(16),char(196),char(51),char(17),char(51),char(17),char(18),char(57),char(17),char(1), -char(51),char(17),char(51),char(18),char(57),char(57),char(49),char(48),char(1),char(34), -char(46),char(2),char(35),char(34),char(6),char(7),char(35),char(54),char(54),char(51), -char(50),char(30),char(2),char(51),char(50),char(54),char(55),char(51),char(6),char(6), -char(19),char(35),char(38),char(39),char(6),char(7),char(35),char(53),char(55),char(54), -char(55),char(51),char(22),char(23),char(254),char(45),char(37),char(71),char(67),char(63), -char(28),char(40),char(42),char(14),char(91),char(13),char(101),char(75),char(37),char(73), -char(67),char(62),char(27),char(40),char(42),char(12),char(90),char(11),char(99),char(94), -char(94),char(97),char(114),char(106),char(105),char(94),char(53),char(112),char(52),char(176), -char(66),char(151),char(6),char(53),char(30),char(37),char(30),char(49),char(50),char(106), -char(113),char(30),char(36),char(30),char(49),char(49),char(104),char(115),char(254),char(164), -char(65),char(101),char(96),char(70),char(23),char(60),char(123),char(77),char(94),char(166), -char(0),char(2),char(252),char(121),char(4),char(217),char(254),char(199),char(6),char(193), -char(0),char(7),char(0),char(20),char(0),char(36),char(64),char(15),char(7),char(4), -char(10),char(10),char(18),char(18),char(22),char(3),char(64),char(7),char(17),char(10), -char(128),char(14),char(8),char(0),char(47),char(51),char(26),char(221),char(50),char(212), -char(26),char(205),char(17),char(1),char(51),char(17),char(51),char(18),char(57),char(57), -char(49),char(48),char(1),char(54),char(55),char(51),char(21),char(6),char(7),char(35), -char(19),char(32),char(3),char(51),char(22),char(22),char(51),char(50),char(54),char(55), -char(51),char(6),char(6),char(253),char(94),char(80),char(49),char(172),char(86),char(119), -char(96),char(62),char(254),char(236),char(15),char(102),char(9),char(76),char(106),char(98), -char(86),char(8),char(105),char(11),char(149),char(5),char(244),char(104),char(101),char(21), -char(114),char(93),char(254),char(252),char(1),char(4),char(72),char(57),char(65),char(64), -char(120),char(140),char(0),char(2),char(252),char(121),char(4),char(217),char(254),char(199), -char(6),char(193),char(0),char(7),char(0),char(20),char(0),char(36),char(64),char(15), -char(7),char(4),char(10),char(10),char(18),char(18),char(22),char(4),char(64),char(1), -char(17),char(10),char(128),char(14),char(8),char(0),char(47),char(51),char(26),char(221), -char(50),char(212),char(26),char(205),char(17),char(1),char(51),char(17),char(51),char(18), -char(57),char(57),char(49),char(48),char(1),char(35),char(38),char(39),char(53),char(51), -char(22),char(23),char(3),char(32),char(3),char(51),char(22),char(22),char(51),char(50), -char(54),char(55),char(51),char(6),char(6),char(253),char(209),char(94),char(119),char(86), -char(172),char(52),char(75),char(53),char(254),char(236),char(15),char(102),char(9),char(76), -char(106),char(98),char(86),char(8),char(105),char(11),char(149),char(5),char(221),char(93), -char(114),char(21),char(108),char(97),char(254),char(229),char(1),char(4),char(72),char(57), -char(65),char(64),char(120),char(140),char(0),char(2),char(252),char(121),char(4),char(217), -char(254),char(199),char(7),char(6),char(0),char(17),char(0),char(30),char(0),char(46), -char(64),char(21),char(8),char(0),char(0),char(5),char(13),char(3),char(20),char(20), -char(28),char(28),char(32),char(11),char(16),char(4),char(4),char(24),char(24),char(27), -char(20),char(128),char(18),char(0),char(47),char(26),char(205),char(50),char(51),char(17), -char(57),char(47),char(196),char(50),char(17),char(1),char(51),char(17),char(51),char(18), -char(23),char(57),char(17),char(51),char(49),char(48),char(1),char(20),char(7),char(7), -char(35),char(39),char(54),char(54),char(53),char(52),char(38),char(35),char(34),char(7), -char(53),char(54),char(51),char(50),char(3),char(32),char(3),char(51),char(22),char(22), -char(51),char(50),char(54),char(55),char(51),char(6),char(6),char(254),char(49),char(127), -char(6),char(82),char(10),char(57),char(66),char(57),char(44),char(37),char(36),char(22), -char(62),char(192),char(149),char(254),char(236),char(15),char(102),char(9),char(76),char(106), -char(98),char(86),char(8),char(105),char(11),char(149),char(6),char(121),char(100),char(29), -char(41),char(90),char(9),char(32),char(37),char(37),char(26),char(6),char(78),char(8), -char(253),char(211),char(1),char(4),char(72),char(57),char(65),char(64),char(120),char(140), -char(0),char(2),char(252),char(104),char(4),char(217),char(254),char(231),char(7),char(12), -char(0),char(23),char(0),char(36),char(0),char(48),char(64),char(21),char(26),char(34), -char(9),char(9),char(21),char(38),char(5),char(12),char(12),char(30),char(30),char(24), -char(21),char(64),char(17),char(9),char(0),char(33),char(26),char(128),char(24),char(0), -char(47),char(26),char(221),char(50),char(214),char(196),char(51),char(26),char(205),char(17), -char(51),char(17),char(57),char(47),char(51),char(17),char(1),char(51),char(50),char(17), -char(57),char(57),char(49),char(48),char(1),char(34),char(46),char(2),char(35),char(34), -char(6),char(7),char(35),char(54),char(54),char(51),char(50),char(30),char(2),char(51), -char(50),char(54),char(55),char(51),char(6),char(6),char(3),char(32),char(3),char(51), -char(22),char(22),char(51),char(50),char(54),char(55),char(51),char(6),char(6),char(254), -char(45),char(37),char(71),char(67),char(63),char(28),char(40),char(42),char(14),char(91), -char(13),char(100),char(76),char(37),char(73),char(67),char(62),char(27),char(40),char(42), -char(12),char(90),char(11),char(99),char(221),char(254),char(236),char(15),char(102),char(9), -char(76),char(106),char(98),char(86),char(8),char(105),char(11),char(149),char(6),char(51), -char(30),char(36),char(30),char(48),char(50),char(104),char(113),char(30),char(36),char(30), -char(49),char(49),char(103),char(114),char(254),char(166),char(1),char(4),char(72),char(57), -char(65),char(64),char(120),char(140),char(0),char(1),char(0),char(49),char(254),char(66), -char(1),char(109),char(0),char(0),char(0),char(15),char(0),char(26),char(64),char(11), -char(0),char(5),char(5),char(2),char(10),char(3),char(16),char(17),char(13),char(8), -char(3),char(0),char(47),char(204),char(50),char(17),char(18),char(1),char(23),char(57), -char(17),char(51),char(49),char(48),char(23),char(52),char(39),char(51),char(22),char(21), -char(20),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50),char(54), -char(223),char(139),char(123),char(158),char(102),char(99),char(65),char(50),char(32),char(54), -char(37),char(51),char(238),char(103),char(135),char(120),char(132),char(91),char(103),char(16), -char(108),char(10),char(48),char(0),char(0),char(1),char(0),char(25),char(254),char(117), -char(1),char(113),char(0),char(154),char(0),char(11),char(0),char(24),char(64),char(9), -char(10),char(0),char(6),char(0),char(12),char(13),char(8),char(3),char(0),char(0), -char(47),char(204),char(50),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(49),char(48),char(37),char(17),char(16),char(35),char(34),char(39),char(53),char(22), -char(51),char(50),char(53),char(17),char(1),char(113),char(228),char(56),char(60),char(41), -char(61),char(94),char(154),char(254),char(223),char(254),char(252),char(24),char(140),char(19), -char(100),char(1),char(48),char(0),char(0),char(1),char(0),char(25),char(254),char(117), -char(1),char(113),char(0),char(143),char(0),char(11),char(0),char(24),char(64),char(9), -char(10),char(0),char(6),char(0),char(12),char(13),char(8),char(3),char(0),char(0), -char(47),char(204),char(50),char(17),char(18),char(1),char(57),char(57),char(17),char(51), -char(49),char(48),char(37),char(17),char(16),char(35),char(34),char(39),char(53),char(22), -char(51),char(50),char(53),char(17),char(1),char(113),char(228),char(56),char(60),char(41), -char(61),char(94),char(143),char(254),char(234),char(254),char(252),char(24),char(140),char(19), -char(100),char(1),char(37),char(0),char(255),char(255),char(0),char(52),char(0),char(0), -char(2),char(67),char(5),char(182),char(0),char(7),char(0),char(20),char(255),char(120), -char(0),char(0),char(0),char(2),char(0),char(115),char(255),char(236),char(4),char(23), -char(4),char(115),char(0),char(11),char(0),char(23),char(0),char(40),char(64),char(20), -char(12),char(6),char(18),char(0),char(6),char(0),char(24),char(25),char(9),char(21), -char(75),char(89),char(9),char(38),char(3),char(15),char(77),char(89),char(3),char(25), -char(0),char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(1), -char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(16), -char(2),char(35),char(34),char(2),char(17),char(16),char(18),char(51),char(50),char(18), -char(1),char(20),char(22),char(51),char(50),char(54),char(53),char(52),char(38),char(35), -char(34),char(6),char(4),char(23),char(247),char(222),char(217),char(246),char(249),char(218), -char(216),char(249),char(253),char(4),char(155),char(142),char(141),char(158),char(158),char(143), -char(141),char(154),char(2),char(47),char(254),char(245),char(254),char(200),char(1),char(53), -char(1),char(14),char(1),char(15),char(1),char(53),char(254),char(203),char(254),char(241), -char(208),char(232),char(234),char(206),char(204),char(236),char(233),char(0),char(0),char(1), -char(0),char(45),char(0),char(0),char(2),char(55),char(4),char(94),char(0),char(10), -char(0),char(38),char(64),char(17),char(9),char(1),char(1),char(0),char(8),char(0), -char(11),char(12),char(7),char(4),char(7),char(4),char(1),char(9),char(16),char(1), -char(24),char(0),char(63),char(63),char(18),char(57),char(57),char(47),char(47),char(17), -char(18),char(1),char(57),char(57),char(17),char(51),char(17),char(51),char(49),char(48), -char(33),char(35),char(17),char(52),char(55),char(6),char(7),char(7),char(39),char(1), -char(51),char(2),char(55),char(161),char(8),char(67),char(62),char(150),char(90),char(1), -char(127),char(139),char(2),char(49),char(239),char(140),char(67),char(48),char(112),char(114), -char(1),char(35),char(0),char(1),char(0),char(41),char(0),char(0),char(3),char(215), -char(4),char(115),char(0),char(25),char(0),char(44),char(64),char(24),char(7),char(19), -char(0),char(19),char(23),char(14),char(1),char(5),char(26),char(27),char(16),char(10), -char(75),char(89),char(16),char(38),char(24),char(23),char(1),char(23),char(76),char(89), -char(1),char(24),char(0),char(63),char(43),char(17),char(0),char(51),char(24),char(63), -char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(49),char(48), -char(33),char(33),char(53),char(1),char(62),char(2),char(53),char(52),char(38),char(35), -char(34),char(6),char(7),char(39),char(54),char(51),char(50),char(22),char(21),char(20), -char(6),char(7),char(5),char(23),char(33),char(3),char(215),char(252),char(82),char(1), -char(145),char(157),char(113),char(44),char(139),char(119),char(88),char(156),char(92),char(90), -char(192),char(242),char(198),char(218),char(130),char(186),char(254),char(185),char(2),char(2), -char(190),char(133),char(1),char(47),char(119),char(104),char(83),char(65),char(87),char(103), -char(61),char(74),char(109),char(168),char(168),char(150),char(115),char(187),char(128),char(231), -char(6),char(0),char(0),char(1),char(0),char(94),char(254),char(149),char(4),char(27), -char(4),char(116),char(0),char(39),char(0),char(71),char(64),char(38),char(3),char(4), -char(27),char(0),char(19),char(7),char(7),char(0),char(4),char(22),char(34),char(13), -char(6),char(40),char(41),char(4),char(23),char(22),char(23),char(22),char(75),char(89), -char(23),char(23),char(10),char(37),char(37),char(30),char(75),char(89),char(37),char(38), -char(10),char(17),char(75),char(89),char(10),char(37),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(43), -char(17),char(18),char(0),char(57),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(17),char(51),char(17),char(51),char(49),char(48),char(1),char(20),char(6), -char(7),char(21),char(22),char(22),char(21),char(20),char(4),char(33),char(34),char(38), -char(39),char(53),char(22),char(22),char(51),char(32),char(17),char(16),char(33),char(35), -char(53),char(51),char(50),char(54),char(53),char(52),char(38),char(35),char(34),char(6), -char(7),char(39),char(54),char(54),char(51),char(50),char(22),char(3),char(238),char(157), -char(144),char(176),char(170),char(254),char(222),char(254),char(245),char(116),char(193),char(91), -char(95),char(215),char(96),char(1),char(123),char(254),char(94),char(144),char(146),char(171), -char(200),char(147),char(126),char(96),char(170),char(109),char(84),char(90),char(235),char(130), -char(213),char(236),char(3),char(7),char(140),char(178),char(30),char(8),char(22),char(180), -char(146),char(209),char(225),char(35),char(44),char(158),char(47),char(49),char(1),char(41), -char(1),char(10),char(143),char(151),char(134),char(107),char(122),char(52),char(70),char(112), -char(71),char(81),char(195),char(0),char(0),char(2),char(0),char(23),char(254),char(168), -char(4),char(102),char(4),char(94),char(0),char(10),char(0),char(18),char(0),char(66), -char(64),char(33),char(18),char(5),char(9),char(2),char(2),char(11),char(7),char(3), -char(0),char(3),char(5),char(3),char(19),char(20),char(1),char(5),char(18),char(5), -char(77),char(89),char(9),char(18),char(14),char(15),char(15),char(7),char(18),char(18), -char(3),char(7),char(16),char(3),char(36),char(0),char(63),char(63),char(18),char(57), -char(47),char(18),char(57),char(17),char(51),char(17),char(51),char(43),char(17),char(0), -char(51),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(51),char(51), -char(17),char(51),char(17),char(51),char(49),char(48),char(37),char(35),char(17),char(35), -char(17),char(33),char(53),char(1),char(51),char(17),char(51),char(33),char(17),char(52), -char(55),char(35),char(6),char(7),char(1),char(4),char(102),char(217),char(168),char(253), -char(50),char(2),char(190),char(184),char(217),char(254),char(134),char(12),char(10),char(41), -char(68),char(254),char(57),char(27),char(254),char(141),char(1),char(115),char(125),char(3), -char(198),char(252),char(68),char(1),char(92),char(218),char(222),char(86),char(92),char(253), -char(158),char(0),char(0),char(1),char(0),char(133),char(254),char(149),char(4),char(29), -char(4),char(95),char(0),char(26),char(0),char(58),char(64),char(31),char(15),char(3), -char(25),char(20),char(8),char(20),char(23),char(3),char(4),char(28),char(27),char(0), -char(17),char(75),char(89),char(0),char(0),char(6),char(21),char(21),char(24),char(76), -char(89),char(21),char(16),char(6),char(12),char(75),char(89),char(6),char(37),char(0), -char(63),char(43),char(0),char(24),char(63),char(43),char(17),char(18),char(0),char(57), -char(24),char(47),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(49),char(48),char(1),char(50),char(4),char(21),char(20),char(0), -char(35),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53), -char(16),char(33),char(34),char(7),char(39),char(19),char(33),char(21),char(33),char(3), -char(54),char(2),char(45),char(231),char(1),char(9),char(254),char(223),char(254),char(247), -char(130),char(70),char(208),char(101),char(176),char(195),char(254),char(137),char(94),char(160), -char(86),char(55),char(2),char(215),char(253),char(183),char(37),char(115),char(2),char(38), -char(229),char(199),char(227),char(254),char(254),char(79),char(160),char(45),char(51),char(166), -char(157),char(1),char(50),char(29),char(55),char(2),char(172),char(153),char(254),char(73), -char(23),char(0),char(255),char(255),char(0),char(117),char(255),char(236),char(4),char(47), -char(5),char(203),char(2),char(6),char(0),char(25),char(0),char(0),char(0),char(1), -char(0),char(94),char(254),char(169),char(4),char(43),char(4),char(95),char(0),char(6), -char(0),char(31),char(64),char(16),char(1),char(5),char(5),char(0),char(2),char(3), -char(7),char(8),char(3),char(2),char(76),char(89),char(3),char(16),char(0),char(36), -char(0),char(63),char(63),char(43),char(17),char(18),char(1),char(23),char(57),char(17), -char(51),char(49),char(48),char(1),char(1),char(33),char(53),char(33),char(21),char(1), -char(1),char(29),char(2),char(94),char(252),char(227),char(3),char(205),char(253),char(170), -char(254),char(169),char(5),char(29),char(153),char(133),char(250),char(207),char(255),char(255), -char(0),char(104),char(255),char(236),char(4),char(41),char(5),char(203),char(2),char(6), -char(0),char(27),char(0),char(0),char(0),char(2),char(0),char(106),char(254),char(149), -char(4),char(37),char(4),char(116),char(0),char(23),char(0),char(37),char(0),char(65), -char(64),char(34),char(27),char(17),char(34),char(10),char(10),char(0),char(0),char(4), -char(17),char(3),char(38),char(39),char(14),char(30),char(77),char(89),char(10),char(20), -char(14),char(14),char(2),char(20),char(20),char(24),char(75),char(89),char(20),char(38), -char(2),char(7),char(77),char(89),char(2),char(37),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(24),char(47),char(18), -char(57),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17), -char(51),char(17),char(51),char(49),char(48),char(1),char(16),char(33),char(34),char(39), -char(53),char(22),char(51),char(50),char(18),char(19),char(35),char(6),char(6),char(35), -char(34),char(38),char(53),char(52),char(18),char(51),char(50),char(22),char(18),char(1), -char(34),char(6),char(21),char(20),char(22),char(51),char(50),char(54),char(54),char(53), -char(52),char(38),char(38),char(4),char(37),char(253),char(104),char(116),char(68),char(80), -char(102),char(240),char(245),char(11),char(12),char(55),char(182),char(114),char(194),char(228), -char(255),char(208),char(149),char(223),char(120),char(254),char(20),char(143),char(156),char(144), -char(147),char(91),char(153),char(88),char(82),char(147),char(1),char(239),char(252),char(166), -char(20),char(143),char(26),char(1),char(41),char(1),char(51),char(83),char(87),char(232), -char(208),char(228),char(1),char(8),char(153),char(254),char(219),char(1),char(48),char(184), -char(164),char(144),char(165),char(74),char(128),char(70),char(105),char(178),char(102),char(0), -char(255),char(255),char(0),char(29),char(0),char(0),char(5),char(196),char(6),char(31), -char(0),char(39),char(0),char(73),char(2),char(182),char(0),char(0),char(0),char(6), -char(0),char(73),char(0),char(0),char(0),char(2),char(0),char(92),char(2),char(221), -char(5),char(170),char(5),char(193),char(0),char(34),char(0),char(51),char(0),char(90), -char(64),char(46),char(44),char(48),char(48),char(46),char(42),char(38),char(38),char(40), -char(10),char(0),char(28),char(17),char(5),char(17),char(22),char(0),char(40),char(46), -char(6),char(53),char(52),char(43),char(49),char(36),char(3),char(45),char(47),char(45), -char(41),char(47),char(35),char(35),char(40),char(28),char(10),char(20),char(8),char(3), -char(3),char(40),char(41),char(25),char(20),char(20),char(41),char(3),char(0),char(63), -char(51),char(47),char(51),char(16),char(205),char(50),char(47),char(51),char(18),char(57), -char(57),char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(18),char(23), -char(57),char(17),char(18),char(1),char(23),char(57),char(17),char(51),char(17),char(51), -char(17),char(51),char(17),char(51),char(17),char(51),char(17),char(51),char(49),char(48), -char(1),char(20),char(6),char(35),char(34),char(39),char(53),char(22),char(51),char(50), -char(53),char(52),char(38),char(38),char(39),char(38),char(38),char(53),char(52),char(54), -char(51),char(50),char(23),char(7),char(38),char(35),char(34),char(6),char(21),char(20), -char(22),char(22),char(23),char(22),char(22),char(1),char(3),char(35),char(23),char(17), -char(35),char(17),char(51),char(19),char(19),char(51),char(17),char(35),char(17),char(55), -char(35),char(3),char(2),char(72),char(149),char(124),char(145),char(74),char(106),char(119), -char(148),char(23),char(54),char(85),char(120),char(81),char(142),char(110),char(125),char(92), -char(34),char(100),char(83),char(60),char(75),char(18),char(43),char(95),char(129),char(80), -char(1),char(166),char(201),char(8),char(6),char(119),char(188),char(195),char(203),char(180), -char(127),char(6),char(8),char(211),char(3),char(172),char(98),char(109),char(33),char(108), -char(40),char(100),char(33),char(40),char(33),char(31),char(44),char(91),char(76),char(86), -char(105),char(39),char(99),char(37),char(46),char(40),char(29),char(36),char(28),char(36), -char(50),char(90),char(254),char(236),char(2),char(47),char(129),char(254),char(82),char(2), -char(209),char(253),char(209),char(2),char(47),char(253),char(47),char(1),char(164),char(137), -char(253),char(211),char(255),char(255),char(0),char(18),char(254),char(20),char(4),char(90), -char(5),char(182),char(2),char(38),char(0),char(55),char(0),char(0),char(0),char(7), -char(0),char(122),char(1),char(63),char(0),char(0),char(255),char(255),char(0),char(31), -char(254),char(20),char(2),char(168),char(5),char(70),char(2),char(38),char(0),char(87), -char(0),char(0),char(0),char(7),char(0),char(122),char(0),char(197),char(0),char(0), -char(0),char(2),char(0),char(113),char(254),char(20),char(4),char(55),char(4),char(92), -char(0),char(12),char(0),char(42),char(0),char(71),char(64),char(38),char(10),char(21), -char(26),char(3),char(42),char(42),char(30),char(30),char(36),char(21),char(3),char(43), -char(44),char(33),char(39),char(70),char(89),char(36),char(33),char(27),char(28),char(15), -char(26),char(15),char(24),char(18),char(24),char(7),char(70),char(89),char(24),char(16), -char(18),char(0),char(70),char(89),char(18),char(22),char(0),char(63),char(43),char(0), -char(24),char(63),char(43),char(17),char(18),char(0),char(57),char(57),char(24),char(63), -char(63),char(51),char(43),char(17),char(18),char(1),char(23),char(57),char(17),char(51), -char(17),char(51),char(51),char(17),char(51),char(49),char(48),char(37),char(50),char(54), -char(55),char(53),char(52),char(38),char(35),char(34),char(6),char(21),char(20),char(22), -char(5),char(52),char(55),char(35),char(6),char(35),char(34),char(2),char(17),char(16), -char(18),char(51),char(50),char(23),char(51),char(55),char(51),char(17),char(20),char(6), -char(35),char(34),char(39),char(53),char(22),char(22),char(51),char(50),char(54),char(53), -char(2),char(76),char(170),char(151),char(4),char(158),char(171),char(144),char(153),char(151), -char(1),char(219),char(9),char(11),char(112),char(230),char(217),char(239),char(243),char(211), -char(223),char(123),char(11),char(24),char(131),char(236),char(249),char(242),char(149),char(75), -char(210),char(118),char(142),char(165),char(119),char(183),char(202),char(43),char(226),char(204), -char(224),char(208),char(209),char(217),char(107),char(36),char(99),char(167),char(1),char(45), -char(1),char(10),char(1),char(8),char(1),char(49),char(166),char(146),char(251),char(164), -char(236),char(236),char(70),char(158),char(42),char(46),char(169),char(146),char(255),char(255), -char(0),char(113),char(254),char(20),char(4),char(55),char(6),char(33),char(2),char(38), -char(3),char(145),char(0),char(0),char(1),char(6),char(1),char(75),char(6),char(0), -char(0),char(8),char(179),char(2),char(57),char(17),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(113),char(254),char(20),char(4),char(55),char(5),char(229), -char(2),char(38),char(3),char(145),char(0),char(0),char(1),char(6),char(1),char(78), -char(12),char(0),char(0),char(8),char(179),char(2),char(43),char(17),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(113),char(254),char(20),char(4),char(55), -char(5),char(223),char(2),char(38),char(3),char(145),char(0),char(0),char(1),char(7), -char(1),char(79),char(1),char(86),char(0),char(0),char(0),char(8),char(179),char(2), -char(52),char(17),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(113), -char(254),char(20),char(4),char(55),char(6),char(33),char(2),char(38),char(3),char(145), -char(0),char(0),char(1),char(6),char(2),char(58),char(119),char(0),char(0),char(8), -char(179),char(2),char(47),char(17),char(38),char(0),char(43),char(53),char(0),char(1), -char(0),char(201),char(0),char(0),char(1),char(115),char(5),char(182),char(0),char(3), -char(0),char(17),char(182),char(0),char(4),char(5),char(1),char(3),char(0),char(18), -char(0),char(63),char(63),char(17),char(18),char(1),char(57),char(49),char(48),char(51), -char(17),char(51),char(17),char(201),char(170),char(5),char(182),char(250),char(74),char(0), -char(255),char(255),char(0),char(5),char(0),char(0),char(1),char(142),char(7),char(115), -char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7),char(0),char(67), -char(254),char(124),char(1),char(82),char(0),char(8),char(179),char(1),char(5),char(5), -char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(179),char(0),char(0), -char(2),char(60),char(7),char(115),char(2),char(38),char(3),char(150),char(0),char(0), -char(1),char(7),char(0),char(118),char(255),char(42),char(1),char(82),char(0),char(8), -char(179),char(1),char(13),char(5),char(38),char(0),char(43),char(53),char(255),char(255), -char(255),char(199),char(0),char(0),char(2),char(105),char(7),char(115),char(2),char(38), -char(3),char(150),char(0),char(0),char(1),char(7),char(1),char(75),char(254),char(187), -char(1),char(82),char(0),char(8),char(179),char(1),char(18),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(0),char(5),char(0),char(0),char(2),char(56), -char(7),char(37),char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7), -char(0),char(106),char(254),char(208),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(25),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(255),char(171),char(0),char(0),char(2),char(147),char(7),char(47),char(2),char(38), -char(3),char(150),char(0),char(0),char(1),char(7),char(1),char(82),char(254),char(163), -char(1),char(82),char(0),char(8),char(179),char(1),char(13),char(5),char(38),char(0), -char(43),char(53),char(255),char(255),char(255),char(243),char(0),char(0),char(2),char(75), -char(6),char(180),char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7), -char(1),char(77),char(254),char(198),char(1),char(82),char(0),char(8),char(179),char(1), -char(7),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(255),char(231), -char(0),char(0),char(2),char(83),char(7),char(55),char(2),char(38),char(3),char(150), -char(0),char(0),char(1),char(7),char(1),char(78),char(254),char(194),char(1),char(82), -char(0),char(8),char(179),char(1),char(4),char(5),char(38),char(0),char(43),char(53), -char(255),char(255),char(0),char(86),char(254),char(66),char(1),char(162),char(5),char(182), -char(2),char(38),char(3),char(150),char(0),char(0),char(0),char(6),char(1),char(81), -char(49),char(0),char(255),char(255),char(0),char(187),char(0),char(0),char(1),char(127), -char(7),char(49),char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7), -char(1),char(79),char(0),char(25),char(1),char(82),char(0),char(8),char(179),char(1), -char(13),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(201), -char(254),char(127),char(3),char(163),char(5),char(182),char(0),char(38),char(3),char(150), -char(0),char(0),char(0),char(7),char(0),char(45),char(2),char(59),char(0),char(0), -char(255),char(255),char(255),char(228),char(0),char(0),char(2),char(29),char(6),char(10), -char(0),char(39),char(3),char(150),char(0),char(170),char(0),char(0),char(1),char(7), -char(1),char(84),char(253),char(232),char(255),char(151),char(0),char(7),char(178),char(1), -char(8),char(0),char(0),char(63),char(53),char(0),char(255),char(255),char(0),char(201), -char(0),char(0),char(1),char(115),char(5),char(182),char(2),char(6),char(3),char(150), -char(0),char(0),char(255),char(255),char(0),char(5),char(0),char(0),char(2),char(56), -char(7),char(37),char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7), -char(0),char(106),char(254),char(208),char(1),char(82),char(0),char(10),char(180),char(2), -char(1),char(25),char(5),char(38),char(0),char(43),char(53),char(53),char(255),char(255), -char(0),char(201),char(0),char(0),char(1),char(115),char(5),char(182),char(2),char(6), -char(3),char(150),char(0),char(0),char(255),char(255),char(0),char(5),char(0),char(0), -char(2),char(56),char(7),char(37),char(2),char(38),char(3),char(150),char(0),char(0), -char(1),char(7),char(0),char(106),char(254),char(208),char(1),char(82),char(0),char(10), -char(180),char(2),char(1),char(25),char(5),char(38),char(0),char(43),char(53),char(53), -char(255),char(255),char(0),char(201),char(0),char(0),char(1),char(115),char(5),char(182), -char(2),char(6),char(3),char(150),char(0),char(0),char(255),char(255),char(0),char(201), -char(0),char(0),char(1),char(115),char(5),char(182),char(2),char(6),char(3),char(150), -char(0),char(0),char(255),char(255),char(0),char(153),char(0),char(0),char(2),char(4), -char(7),char(225),char(2),char(38),char(3),char(150),char(0),char(0),char(1),char(7), -char(2),char(102),char(3),char(145),char(1),char(82),char(0),char(8),char(179),char(1), -char(8),char(5),char(38),char(0),char(43),char(53),char(255),char(255),char(0),char(184), -char(254),char(160),char(1),char(127),char(5),char(182),char(2),char(38),char(3),char(150), -char(0),char(0),char(0),char(7),char(2),char(103),char(3),char(125),char(0),char(0), -char(0),char(0),char(0),char(1),char(0),char(0),char(182),char(50),char(0),char(1), -char(73),char(6),char(128),char(0),char(0),char(14),char(54),char(36),char(0),char(5), -char(0),char(36),char(255),char(113),char(0),char(5),char(0),char(55),char(0),char(41), -char(0),char(5),char(0),char(57),char(0),char(41),char(0),char(5),char(0),char(58), -char(0),char(41),char(0),char(5),char(0),char(60),char(0),char(20),char(0),char(5), -char(0),char(68),char(255),char(174),char(0),char(5),char(0),char(70),char(255),char(133), -char(0),char(5),char(0),char(71),char(255),char(133),char(0),char(5),char(0),char(72), -char(255),char(133),char(0),char(5),char(0),char(74),char(255),char(195),char(0),char(5), -char(0),char(80),char(255),char(195),char(0),char(5),char(0),char(81),char(255),char(195), -char(0),char(5),char(0),char(82),char(255),char(133),char(0),char(5),char(0),char(83), -char(255),char(195),char(0),char(5),char(0),char(84),char(255),char(133),char(0),char(5), -char(0),char(85),char(255),char(195),char(0),char(5),char(0),char(86),char(255),char(195), -char(0),char(5),char(0),char(88),char(255),char(195),char(0),char(5),char(0),char(130), -char(255),char(113),char(0),char(5),char(0),char(131),char(255),char(113),char(0),char(5), -char(0),char(132),char(255),char(113),char(0),char(5),char(0),char(133),char(255),char(113), -char(0),char(5),char(0),char(134),char(255),char(113),char(0),char(5),char(0),char(135), -char(255),char(113),char(0),char(5),char(0),char(159),char(0),char(20),char(0),char(5), -char(0),char(162),char(255),char(133),char(0),char(5),char(0),char(163),char(255),char(174), -char(0),char(5),char(0),char(164),char(255),char(174),char(0),char(5),char(0),char(165), -char(255),char(174),char(0),char(5),char(0),char(166),char(255),char(174),char(0),char(5), -char(0),char(167),char(255),char(174),char(0),char(5),char(0),char(168),char(255),char(174), -char(0),char(5),char(0),char(169),char(255),char(133),char(0),char(5),char(0),char(170), -char(255),char(133),char(0),char(5),char(0),char(171),char(255),char(133),char(0),char(5), -char(0),char(172),char(255),char(133),char(0),char(5),char(0),char(173),char(255),char(133), -char(0),char(5),char(0),char(180),char(255),char(133),char(0),char(5),char(0),char(181), -char(255),char(133),char(0),char(5),char(0),char(182),char(255),char(133),char(0),char(5), -char(0),char(183),char(255),char(133),char(0),char(5),char(0),char(184),char(255),char(133), -char(0),char(5),char(0),char(186),char(255),char(133),char(0),char(5),char(0),char(187), -char(255),char(195),char(0),char(5),char(0),char(188),char(255),char(195),char(0),char(5), -char(0),char(189),char(255),char(195),char(0),char(5),char(0),char(190),char(255),char(195), -char(0),char(5),char(0),char(194),char(255),char(113),char(0),char(5),char(0),char(195), -char(255),char(174),char(0),char(5),char(0),char(196),char(255),char(113),char(0),char(5), -char(0),char(197),char(255),char(174),char(0),char(5),char(0),char(198),char(255),char(113), -char(0),char(5),char(0),char(199),char(255),char(174),char(0),char(5),char(0),char(201), -char(255),char(133),char(0),char(5),char(0),char(203),char(255),char(133),char(0),char(5), -char(0),char(205),char(255),char(133),char(0),char(5),char(0),char(207),char(255),char(133), -char(0),char(5),char(0),char(209),char(255),char(133),char(0),char(5),char(0),char(211), -char(255),char(133),char(0),char(5),char(0),char(213),char(255),char(133),char(0),char(5), -char(0),char(215),char(255),char(133),char(0),char(5),char(0),char(217),char(255),char(133), -char(0),char(5),char(0),char(219),char(255),char(133),char(0),char(5),char(0),char(221), -char(255),char(133),char(0),char(5),char(0),char(223),char(255),char(195),char(0),char(5), -char(0),char(225),char(255),char(195),char(0),char(5),char(0),char(227),char(255),char(195), -char(0),char(5),char(0),char(229),char(255),char(195),char(0),char(5),char(0),char(250), -char(255),char(195),char(0),char(5),char(1),char(6),char(255),char(195),char(0),char(5), -char(1),char(8),char(255),char(195),char(0),char(5),char(1),char(13),char(255),char(195), -char(0),char(5),char(1),char(15),char(255),char(133),char(0),char(5),char(1),char(17), -char(255),char(133),char(0),char(5),char(1),char(19),char(255),char(133),char(0),char(5), -char(1),char(21),char(255),char(133),char(0),char(5),char(1),char(23),char(255),char(195), -char(0),char(5),char(1),char(25),char(255),char(195),char(0),char(5),char(1),char(29), -char(255),char(195),char(0),char(5),char(1),char(33),char(255),char(195),char(0),char(5), -char(1),char(36),char(0),char(41),char(0),char(5),char(1),char(38),char(0),char(41), -char(0),char(5),char(1),char(43),char(255),char(195),char(0),char(5),char(1),char(45), -char(255),char(195),char(0),char(5),char(1),char(47),char(255),char(195),char(0),char(5), -char(1),char(49),char(255),char(195),char(0),char(5),char(1),char(51),char(255),char(195), -char(0),char(5),char(1),char(53),char(255),char(195),char(0),char(5),char(1),char(54), -char(0),char(41),char(0),char(5),char(1),char(56),char(0),char(20),char(0),char(5), -char(1),char(58),char(0),char(20),char(0),char(5),char(1),char(67),char(255),char(113), -char(0),char(5),char(1),char(68),char(255),char(174),char(0),char(5),char(1),char(70), -char(255),char(174),char(0),char(5),char(1),char(72),char(255),char(133),char(0),char(5), -char(1),char(74),char(255),char(195),char(0),char(5),char(1),char(86),char(255),char(113), -char(0),char(5),char(1),char(95),char(255),char(113),char(0),char(5),char(1),char(98), -char(255),char(113),char(0),char(5),char(1),char(105),char(255),char(113),char(0),char(5), -char(1),char(121),char(255),char(174),char(0),char(5),char(1),char(122),char(255),char(215), -char(0),char(5),char(1),char(123),char(255),char(215),char(0),char(5),char(1),char(126), -char(255),char(174),char(0),char(5),char(1),char(129),char(255),char(195),char(0),char(5), -char(1),char(130),char(255),char(215),char(0),char(5),char(1),char(131),char(255),char(215), -char(0),char(5),char(1),char(132),char(255),char(215),char(0),char(5),char(1),char(135), -char(255),char(215),char(0),char(5),char(1),char(137),char(255),char(215),char(0),char(5), -char(1),char(140),char(255),char(174),char(0),char(5),char(1),char(142),char(255),char(195), -char(0),char(5),char(1),char(143),char(255),char(174),char(0),char(5),char(1),char(144), -char(255),char(174),char(0),char(5),char(1),char(147),char(255),char(174),char(0),char(5), -char(1),char(153),char(255),char(174),char(0),char(5),char(1),char(164),char(255),char(133), -char(0),char(5),char(1),char(170),char(255),char(113),char(0),char(5),char(1),char(174), -char(255),char(133),char(0),char(5),char(1),char(181),char(255),char(133),char(0),char(5), -char(1),char(202),char(255),char(215),char(0),char(5),char(1),char(206),char(255),char(113), -char(0),char(5),char(1),char(207),char(255),char(133),char(0),char(5),char(1),char(213), -char(255),char(113),char(0),char(5),char(1),char(216),char(255),char(133),char(0),char(5), -char(1),char(219),char(255),char(133),char(0),char(5),char(1),char(222),char(255),char(133), -char(0),char(5),char(1),char(234),char(255),char(133),char(0),char(5),char(1),char(237), -char(255),char(133),char(0),char(5),char(1),char(238),char(255),char(195),char(0),char(5), -char(1),char(242),char(255),char(113),char(0),char(5),char(1),char(250),char(0),char(41), -char(0),char(5),char(1),char(252),char(0),char(41),char(0),char(5),char(1),char(254), -char(0),char(41),char(0),char(5),char(2),char(0),char(0),char(20),char(0),char(5), -char(2),char(87),char(255),char(195),char(0),char(5),char(2),char(88),char(255),char(113), -char(0),char(5),char(2),char(89),char(255),char(174),char(0),char(5),char(2),char(96), -char(255),char(133),char(0),char(5),char(2),char(98),char(255),char(195),char(0),char(5), -char(2),char(106),char(255),char(133),char(0),char(5),char(2),char(114),char(255),char(113), -char(0),char(5),char(2),char(115),char(255),char(113),char(0),char(5),char(2),char(125), -char(255),char(236),char(0),char(5),char(2),char(127),char(255),char(133),char(0),char(5), -char(2),char(133),char(255),char(133),char(0),char(5),char(2),char(135),char(255),char(133), -char(0),char(5),char(2),char(137),char(255),char(133),char(0),char(5),char(2),char(141), -char(255),char(133),char(0),char(5),char(2),char(178),char(255),char(133),char(0),char(5), -char(2),char(180),char(255),char(133),char(0),char(5),char(2),char(206),char(255),char(133), -char(0),char(5),char(2),char(207),char(255),char(113),char(0),char(5),char(2),char(217), -char(255),char(113),char(0),char(5),char(2),char(218),char(255),char(215),char(0),char(5), -char(2),char(219),char(255),char(113),char(0),char(5),char(2),char(220),char(255),char(215), -char(0),char(5),char(2),char(221),char(255),char(113),char(0),char(5),char(2),char(222), -char(255),char(215),char(0),char(5),char(2),char(224),char(255),char(133),char(0),char(5), -char(2),char(226),char(255),char(215),char(0),char(5),char(2),char(228),char(255),char(215), -char(0),char(5),char(2),char(240),char(255),char(133),char(0),char(5),char(2),char(242), -char(255),char(133),char(0),char(5),char(2),char(244),char(255),char(133),char(0),char(5), -char(3),char(9),char(255),char(113),char(0),char(5),char(3),char(10),char(255),char(133), -char(0),char(5),char(3),char(11),char(255),char(113),char(0),char(5),char(3),char(12), -char(255),char(133),char(0),char(5),char(3),char(17),char(255),char(133),char(0),char(5), -char(3),char(18),char(255),char(113),char(0),char(5),char(3),char(22),char(255),char(133), -char(0),char(5),char(3),char(26),char(255),char(133),char(0),char(5),char(3),char(27), -char(255),char(133),char(0),char(5),char(3),char(28),char(255),char(113),char(0),char(5), -char(3),char(29),char(255),char(113),char(0),char(5),char(3),char(30),char(255),char(174), -char(0),char(5),char(3),char(31),char(255),char(113),char(0),char(5),char(3),char(32), -char(255),char(174),char(0),char(5),char(3),char(33),char(255),char(113),char(0),char(5), -char(3),char(34),char(255),char(174),char(0),char(5),char(3),char(35),char(255),char(113), -char(0),char(5),char(3),char(37),char(255),char(113),char(0),char(5),char(3),char(38), -char(255),char(174),char(0),char(5),char(3),char(39),char(255),char(113),char(0),char(5), -char(3),char(40),char(255),char(174),char(0),char(5),char(3),char(41),char(255),char(113), -char(0),char(5),char(3),char(42),char(255),char(174),char(0),char(5),char(3),char(43), -char(255),char(113),char(0),char(5),char(3),char(44),char(255),char(174),char(0),char(5), -char(3),char(45),char(255),char(113),char(0),char(5),char(3),char(46),char(255),char(174), -char(0),char(5),char(3),char(47),char(255),char(113),char(0),char(5),char(3),char(48), -char(255),char(174),char(0),char(5),char(3),char(49),char(255),char(113),char(0),char(5), -char(3),char(50),char(255),char(174),char(0),char(5),char(3),char(51),char(255),char(113), -char(0),char(5),char(3),char(52),char(255),char(174),char(0),char(5),char(3),char(54), -char(255),char(133),char(0),char(5),char(3),char(56),char(255),char(133),char(0),char(5), -char(3),char(58),char(255),char(133),char(0),char(5),char(3),char(60),char(255),char(133), -char(0),char(5),char(3),char(64),char(255),char(133),char(0),char(5),char(3),char(66), -char(255),char(133),char(0),char(5),char(3),char(68),char(255),char(133),char(0),char(5), -char(3),char(74),char(255),char(133),char(0),char(5),char(3),char(76),char(255),char(133), -char(0),char(5),char(3),char(78),char(255),char(133),char(0),char(5),char(3),char(82), -char(255),char(133),char(0),char(5),char(3),char(84),char(255),char(133),char(0),char(5), -char(3),char(86),char(255),char(133),char(0),char(5),char(3),char(88),char(255),char(133), -char(0),char(5),char(3),char(90),char(255),char(133),char(0),char(5),char(3),char(92), -char(255),char(133),char(0),char(5),char(3),char(94),char(255),char(133),char(0),char(5), -char(3),char(96),char(255),char(133),char(0),char(5),char(3),char(98),char(255),char(195), -char(0),char(5),char(3),char(100),char(255),char(195),char(0),char(5),char(3),char(102), -char(255),char(195),char(0),char(5),char(3),char(104),char(255),char(195),char(0),char(5), -char(3),char(106),char(255),char(195),char(0),char(5),char(3),char(108),char(255),char(195), -char(0),char(5),char(3),char(110),char(255),char(195),char(0),char(5),char(3),char(111), -char(0),char(20),char(0),char(5),char(3),char(113),char(0),char(20),char(0),char(5), -char(3),char(115),char(0),char(20),char(0),char(5),char(3),char(143),char(0),char(41), -char(0),char(10),char(0),char(36),char(255),char(113),char(0),char(10),char(0),char(55), -char(0),char(41),char(0),char(10),char(0),char(57),char(0),char(41),char(0),char(10), -char(0),char(58),char(0),char(41),char(0),char(10),char(0),char(60),char(0),char(20), -char(0),char(10),char(0),char(68),char(255),char(174),char(0),char(10),char(0),char(70), -char(255),char(133),char(0),char(10),char(0),char(71),char(255),char(133),char(0),char(10), -char(0),char(72),char(255),char(133),char(0),char(10),char(0),char(74),char(255),char(195), -char(0),char(10),char(0),char(80),char(255),char(195),char(0),char(10),char(0),char(81), -char(255),char(195),char(0),char(10),char(0),char(82),char(255),char(133),char(0),char(10), -char(0),char(83),char(255),char(195),char(0),char(10),char(0),char(84),char(255),char(133), -char(0),char(10),char(0),char(85),char(255),char(195),char(0),char(10),char(0),char(86), -char(255),char(195),char(0),char(10),char(0),char(88),char(255),char(195),char(0),char(10), -char(0),char(130),char(255),char(113),char(0),char(10),char(0),char(131),char(255),char(113), -char(0),char(10),char(0),char(132),char(255),char(113),char(0),char(10),char(0),char(133), -char(255),char(113),char(0),char(10),char(0),char(134),char(255),char(113),char(0),char(10), -char(0),char(135),char(255),char(113),char(0),char(10),char(0),char(159),char(0),char(20), -char(0),char(10),char(0),char(162),char(255),char(133),char(0),char(10),char(0),char(163), -char(255),char(174),char(0),char(10),char(0),char(164),char(255),char(174),char(0),char(10), -char(0),char(165),char(255),char(174),char(0),char(10),char(0),char(166),char(255),char(174), -char(0),char(10),char(0),char(167),char(255),char(174),char(0),char(10),char(0),char(168), -char(255),char(174),char(0),char(10),char(0),char(169),char(255),char(133),char(0),char(10), -char(0),char(170),char(255),char(133),char(0),char(10),char(0),char(171),char(255),char(133), -char(0),char(10),char(0),char(172),char(255),char(133),char(0),char(10),char(0),char(173), -char(255),char(133),char(0),char(10),char(0),char(180),char(255),char(133),char(0),char(10), -char(0),char(181),char(255),char(133),char(0),char(10),char(0),char(182),char(255),char(133), -char(0),char(10),char(0),char(183),char(255),char(133),char(0),char(10),char(0),char(184), -char(255),char(133),char(0),char(10),char(0),char(186),char(255),char(133),char(0),char(10), -char(0),char(187),char(255),char(195),char(0),char(10),char(0),char(188),char(255),char(195), -char(0),char(10),char(0),char(189),char(255),char(195),char(0),char(10),char(0),char(190), -char(255),char(195),char(0),char(10),char(0),char(194),char(255),char(113),char(0),char(10), -char(0),char(195),char(255),char(174),char(0),char(10),char(0),char(196),char(255),char(113), -char(0),char(10),char(0),char(197),char(255),char(174),char(0),char(10),char(0),char(198), -char(255),char(113),char(0),char(10),char(0),char(199),char(255),char(174),char(0),char(10), -char(0),char(201),char(255),char(133),char(0),char(10),char(0),char(203),char(255),char(133), -char(0),char(10),char(0),char(205),char(255),char(133),char(0),char(10),char(0),char(207), -char(255),char(133),char(0),char(10),char(0),char(209),char(255),char(133),char(0),char(10), -char(0),char(211),char(255),char(133),char(0),char(10),char(0),char(213),char(255),char(133), -char(0),char(10),char(0),char(215),char(255),char(133),char(0),char(10),char(0),char(217), -char(255),char(133),char(0),char(10),char(0),char(219),char(255),char(133),char(0),char(10), -char(0),char(221),char(255),char(133),char(0),char(10),char(0),char(223),char(255),char(195), -char(0),char(10),char(0),char(225),char(255),char(195),char(0),char(10),char(0),char(227), -char(255),char(195),char(0),char(10),char(0),char(229),char(255),char(195),char(0),char(10), -char(0),char(250),char(255),char(195),char(0),char(10),char(1),char(6),char(255),char(195), -char(0),char(10),char(1),char(8),char(255),char(195),char(0),char(10),char(1),char(13), -char(255),char(195),char(0),char(10),char(1),char(15),char(255),char(133),char(0),char(10), -char(1),char(17),char(255),char(133),char(0),char(10),char(1),char(19),char(255),char(133), -char(0),char(10),char(1),char(21),char(255),char(133),char(0),char(10),char(1),char(23), -char(255),char(195),char(0),char(10),char(1),char(25),char(255),char(195),char(0),char(10), -char(1),char(29),char(255),char(195),char(0),char(10),char(1),char(33),char(255),char(195), -char(0),char(10),char(1),char(36),char(0),char(41),char(0),char(10),char(1),char(38), -char(0),char(41),char(0),char(10),char(1),char(43),char(255),char(195),char(0),char(10), -char(1),char(45),char(255),char(195),char(0),char(10),char(1),char(47),char(255),char(195), -char(0),char(10),char(1),char(49),char(255),char(195),char(0),char(10),char(1),char(51), -char(255),char(195),char(0),char(10),char(1),char(53),char(255),char(195),char(0),char(10), -char(1),char(54),char(0),char(41),char(0),char(10),char(1),char(56),char(0),char(20), -char(0),char(10),char(1),char(58),char(0),char(20),char(0),char(10),char(1),char(67), -char(255),char(113),char(0),char(10),char(1),char(68),char(255),char(174),char(0),char(10), -char(1),char(70),char(255),char(174),char(0),char(10),char(1),char(72),char(255),char(133), -char(0),char(10),char(1),char(74),char(255),char(195),char(0),char(10),char(1),char(86), -char(255),char(113),char(0),char(10),char(1),char(95),char(255),char(113),char(0),char(10), -char(1),char(98),char(255),char(113),char(0),char(10),char(1),char(105),char(255),char(113), -char(0),char(10),char(1),char(121),char(255),char(174),char(0),char(10),char(1),char(122), -char(255),char(215),char(0),char(10),char(1),char(123),char(255),char(215),char(0),char(10), -char(1),char(126),char(255),char(174),char(0),char(10),char(1),char(129),char(255),char(195), -char(0),char(10),char(1),char(130),char(255),char(215),char(0),char(10),char(1),char(131), -char(255),char(215),char(0),char(10),char(1),char(132),char(255),char(215),char(0),char(10), -char(1),char(135),char(255),char(215),char(0),char(10),char(1),char(137),char(255),char(215), -char(0),char(10),char(1),char(140),char(255),char(174),char(0),char(10),char(1),char(142), -char(255),char(195),char(0),char(10),char(1),char(143),char(255),char(174),char(0),char(10), -char(1),char(144),char(255),char(174),char(0),char(10),char(1),char(147),char(255),char(174), -char(0),char(10),char(1),char(153),char(255),char(174),char(0),char(10),char(1),char(164), -char(255),char(133),char(0),char(10),char(1),char(170),char(255),char(113),char(0),char(10), -char(1),char(174),char(255),char(133),char(0),char(10),char(1),char(181),char(255),char(133), -char(0),char(10),char(1),char(202),char(255),char(215),char(0),char(10),char(1),char(206), -char(255),char(113),char(0),char(10),char(1),char(207),char(255),char(133),char(0),char(10), -char(1),char(213),char(255),char(113),char(0),char(10),char(1),char(216),char(255),char(133), -char(0),char(10),char(1),char(219),char(255),char(133),char(0),char(10),char(1),char(222), -char(255),char(133),char(0),char(10),char(1),char(234),char(255),char(133),char(0),char(10), -char(1),char(237),char(255),char(133),char(0),char(10),char(1),char(238),char(255),char(195), -char(0),char(10),char(1),char(242),char(255),char(113),char(0),char(10),char(1),char(250), -char(0),char(41),char(0),char(10),char(1),char(252),char(0),char(41),char(0),char(10), -char(1),char(254),char(0),char(41),char(0),char(10),char(2),char(0),char(0),char(20), -char(0),char(10),char(2),char(87),char(255),char(195),char(0),char(10),char(2),char(88), -char(255),char(113),char(0),char(10),char(2),char(89),char(255),char(174),char(0),char(10), -char(2),char(96),char(255),char(133),char(0),char(10),char(2),char(98),char(255),char(195), -char(0),char(10),char(2),char(106),char(255),char(133),char(0),char(10),char(2),char(114), -char(255),char(113),char(0),char(10),char(2),char(115),char(255),char(113),char(0),char(10), -char(2),char(125),char(255),char(236),char(0),char(10),char(2),char(127),char(255),char(133), -char(0),char(10),char(2),char(133),char(255),char(133),char(0),char(10),char(2),char(135), -char(255),char(133),char(0),char(10),char(2),char(137),char(255),char(133),char(0),char(10), -char(2),char(141),char(255),char(133),char(0),char(10),char(2),char(178),char(255),char(133), -char(0),char(10),char(2),char(180),char(255),char(133),char(0),char(10),char(2),char(206), -char(255),char(133),char(0),char(10),char(2),char(207),char(255),char(113),char(0),char(10), -char(2),char(217),char(255),char(113),char(0),char(10),char(2),char(218),char(255),char(215), -char(0),char(10),char(2),char(219),char(255),char(113),char(0),char(10),char(2),char(220), -char(255),char(215),char(0),char(10),char(2),char(221),char(255),char(113),char(0),char(10), -char(2),char(222),char(255),char(215),char(0),char(10),char(2),char(224),char(255),char(133), -char(0),char(10),char(2),char(226),char(255),char(215),char(0),char(10),char(2),char(228), -char(255),char(215),char(0),char(10),char(2),char(240),char(255),char(133),char(0),char(10), -char(2),char(242),char(255),char(133),char(0),char(10),char(2),char(244),char(255),char(133), -char(0),char(10),char(3),char(9),char(255),char(113),char(0),char(10),char(3),char(10), -char(255),char(133),char(0),char(10),char(3),char(11),char(255),char(113),char(0),char(10), -char(3),char(12),char(255),char(133),char(0),char(10),char(3),char(17),char(255),char(133), -char(0),char(10),char(3),char(18),char(255),char(113),char(0),char(10),char(3),char(22), -char(255),char(133),char(0),char(10),char(3),char(26),char(255),char(133),char(0),char(10), -char(3),char(27),char(255),char(133),char(0),char(10),char(3),char(28),char(255),char(113), -char(0),char(10),char(3),char(29),char(255),char(113),char(0),char(10),char(3),char(30), -char(255),char(174),char(0),char(10),char(3),char(31),char(255),char(113),char(0),char(10), -char(3),char(32),char(255),char(174),char(0),char(10),char(3),char(33),char(255),char(113), -char(0),char(10),char(3),char(34),char(255),char(174),char(0),char(10),char(3),char(35), -char(255),char(113),char(0),char(10),char(3),char(37),char(255),char(113),char(0),char(10), -char(3),char(38),char(255),char(174),char(0),char(10),char(3),char(39),char(255),char(113), -char(0),char(10),char(3),char(40),char(255),char(174),char(0),char(10),char(3),char(41), -char(255),char(113),char(0),char(10),char(3),char(42),char(255),char(174),char(0),char(10), -char(3),char(43),char(255),char(113),char(0),char(10),char(3),char(44),char(255),char(174), -char(0),char(10),char(3),char(45),char(255),char(113),char(0),char(10),char(3),char(46), -char(255),char(174),char(0),char(10),char(3),char(47),char(255),char(113),char(0),char(10), -char(3),char(48),char(255),char(174),char(0),char(10),char(3),char(49),char(255),char(113), -char(0),char(10),char(3),char(50),char(255),char(174),char(0),char(10),char(3),char(51), -char(255),char(113),char(0),char(10),char(3),char(52),char(255),char(174),char(0),char(10), -char(3),char(54),char(255),char(133),char(0),char(10),char(3),char(56),char(255),char(133), -char(0),char(10),char(3),char(58),char(255),char(133),char(0),char(10),char(3),char(60), -char(255),char(133),char(0),char(10),char(3),char(64),char(255),char(133),char(0),char(10), -char(3),char(66),char(255),char(133),char(0),char(10),char(3),char(68),char(255),char(133), -char(0),char(10),char(3),char(74),char(255),char(133),char(0),char(10),char(3),char(76), -char(255),char(133),char(0),char(10),char(3),char(78),char(255),char(133),char(0),char(10), -char(3),char(82),char(255),char(133),char(0),char(10),char(3),char(84),char(255),char(133), -char(0),char(10),char(3),char(86),char(255),char(133),char(0),char(10),char(3),char(88), -char(255),char(133),char(0),char(10),char(3),char(90),char(255),char(133),char(0),char(10), -char(3),char(92),char(255),char(133),char(0),char(10),char(3),char(94),char(255),char(133), -char(0),char(10),char(3),char(96),char(255),char(133),char(0),char(10),char(3),char(98), -char(255),char(195),char(0),char(10),char(3),char(100),char(255),char(195),char(0),char(10), -char(3),char(102),char(255),char(195),char(0),char(10),char(3),char(104),char(255),char(195), -char(0),char(10),char(3),char(106),char(255),char(195),char(0),char(10),char(3),char(108), -char(255),char(195),char(0),char(10),char(3),char(110),char(255),char(195),char(0),char(10), -char(3),char(111),char(0),char(20),char(0),char(10),char(3),char(113),char(0),char(20), -char(0),char(10),char(3),char(115),char(0),char(20),char(0),char(10),char(3),char(143), -char(0),char(41),char(0),char(11),char(0),char(45),char(0),char(184),char(0),char(15), -char(0),char(38),char(255),char(154),char(0),char(15),char(0),char(42),char(255),char(154), -char(0),char(15),char(0),char(50),char(255),char(154),char(0),char(15),char(0),char(52), -char(255),char(154),char(0),char(15),char(0),char(55),char(255),char(113),char(0),char(15), -char(0),char(56),char(255),char(215),char(0),char(15),char(0),char(57),char(255),char(133), -char(0),char(15),char(0),char(58),char(255),char(133),char(0),char(15),char(0),char(60), -char(255),char(133),char(0),char(15),char(0),char(137),char(255),char(154),char(0),char(15), -char(0),char(148),char(255),char(154),char(0),char(15),char(0),char(149),char(255),char(154), -char(0),char(15),char(0),char(150),char(255),char(154),char(0),char(15),char(0),char(151), -char(255),char(154),char(0),char(15),char(0),char(152),char(255),char(154),char(0),char(15), -char(0),char(154),char(255),char(154),char(0),char(15),char(0),char(155),char(255),char(215), -char(0),char(15),char(0),char(156),char(255),char(215),char(0),char(15),char(0),char(157), -char(255),char(215),char(0),char(15),char(0),char(158),char(255),char(215),char(0),char(15), -char(0),char(159),char(255),char(133),char(0),char(15),char(0),char(200),char(255),char(154), -char(0),char(15),char(0),char(202),char(255),char(154),char(0),char(15),char(0),char(204), -char(255),char(154),char(0),char(15),char(0),char(206),char(255),char(154),char(0),char(15), -char(0),char(222),char(255),char(154),char(0),char(15),char(0),char(224),char(255),char(154), -char(0),char(15),char(0),char(226),char(255),char(154),char(0),char(15),char(0),char(228), -char(255),char(154),char(0),char(15),char(1),char(14),char(255),char(154),char(0),char(15), -char(1),char(16),char(255),char(154),char(0),char(15),char(1),char(18),char(255),char(154), -char(0),char(15),char(1),char(20),char(255),char(154),char(0),char(15),char(1),char(36), -char(255),char(113),char(0),char(15),char(1),char(38),char(255),char(113),char(0),char(15), -char(1),char(42),char(255),char(215),char(0),char(15),char(1),char(44),char(255),char(215), -char(0),char(15),char(1),char(46),char(255),char(215),char(0),char(15),char(1),char(48), -char(255),char(215),char(0),char(15),char(1),char(50),char(255),char(215),char(0),char(15), -char(1),char(52),char(255),char(215),char(0),char(15),char(1),char(54),char(255),char(133), -char(0),char(15),char(1),char(56),char(255),char(133),char(0),char(15),char(1),char(58), -char(255),char(133),char(0),char(15),char(1),char(71),char(255),char(154),char(0),char(15), -char(1),char(102),char(255),char(174),char(0),char(15),char(1),char(109),char(255),char(174), -char(0),char(15),char(1),char(113),char(255),char(113),char(0),char(15),char(1),char(114), -char(255),char(133),char(0),char(15),char(1),char(115),char(255),char(154),char(0),char(15), -char(1),char(117),char(255),char(133),char(0),char(15),char(1),char(120),char(255),char(133), -char(0),char(15),char(1),char(133),char(255),char(215),char(0),char(15),char(1),char(157), -char(255),char(113),char(0),char(15),char(1),char(159),char(255),char(154),char(0),char(15), -char(1),char(166),char(255),char(113),char(0),char(15),char(1),char(184),char(255),char(154), -char(0),char(15),char(1),char(187),char(255),char(154),char(0),char(15),char(1),char(188), -char(255),char(113),char(0),char(15),char(1),char(190),char(255),char(174),char(0),char(15), -char(1),char(193),char(255),char(92),char(0),char(15),char(1),char(196),char(255),char(113), -char(0),char(15),char(1),char(220),char(255),char(154),char(0),char(15),char(1),char(225), -char(255),char(133),char(0),char(15),char(1),char(228),char(255),char(154),char(0),char(15), -char(1),char(250),char(255),char(133),char(0),char(15),char(1),char(252),char(255),char(133), -char(0),char(15),char(1),char(254),char(255),char(133),char(0),char(15),char(2),char(0), -char(255),char(133),char(0),char(15),char(2),char(84),char(255),char(133),char(0),char(15), -char(2),char(95),char(255),char(154),char(0),char(15),char(2),char(97),char(255),char(215), -char(0),char(15),char(2),char(108),char(255),char(154),char(0),char(15),char(2),char(124), -char(255),char(92),char(0),char(15),char(2),char(126),char(255),char(154),char(0),char(15), -char(2),char(128),char(255),char(133),char(0),char(15),char(2),char(130),char(255),char(133), -char(0),char(15),char(2),char(132),char(255),char(154),char(0),char(15),char(2),char(134), -char(255),char(154),char(0),char(15),char(2),char(136),char(255),char(154),char(0),char(15), -char(2),char(138),char(255),char(154),char(0),char(15),char(2),char(140),char(255),char(154), -char(0),char(15),char(2),char(169),char(255),char(113),char(0),char(15),char(2),char(170), -char(255),char(154),char(0),char(15),char(2),char(177),char(255),char(154),char(0),char(15), -char(2),char(179),char(255),char(154),char(0),char(15),char(2),char(181),char(255),char(113), -char(0),char(15),char(2),char(182),char(255),char(154),char(0),char(15),char(2),char(183), -char(255),char(133),char(0),char(15),char(2),char(185),char(255),char(133),char(0),char(15), -char(2),char(189),char(255),char(113),char(0),char(15),char(2),char(190),char(255),char(154), -char(0),char(15),char(2),char(191),char(255),char(92),char(0),char(15),char(2),char(192), -char(255),char(133),char(0),char(15),char(2),char(193),char(255),char(92),char(0),char(15), -char(2),char(194),char(255),char(133),char(0),char(15),char(2),char(197),char(255),char(133), -char(0),char(15),char(2),char(199),char(255),char(133),char(0),char(15),char(2),char(212), -char(255),char(92),char(0),char(15),char(2),char(213),char(255),char(133),char(0),char(15), -char(2),char(239),char(255),char(154),char(0),char(15),char(2),char(241),char(255),char(154), -char(0),char(15),char(2),char(243),char(255),char(154),char(0),char(15),char(2),char(253), -char(255),char(92),char(0),char(15),char(2),char(254),char(255),char(133),char(0),char(15), -char(3),char(13),char(255),char(133),char(0),char(15),char(3),char(14),char(255),char(154), -char(0),char(15),char(3),char(15),char(255),char(133),char(0),char(15),char(3),char(16), -char(255),char(154),char(0),char(15),char(3),char(21),char(255),char(154),char(0),char(15), -char(3),char(23),char(255),char(113),char(0),char(15),char(3),char(24),char(255),char(154), -char(0),char(15),char(3),char(73),char(255),char(154),char(0),char(15),char(3),char(75), -char(255),char(154),char(0),char(15),char(3),char(77),char(255),char(154),char(0),char(15), -char(3),char(79),char(255),char(154),char(0),char(15),char(3),char(81),char(255),char(154), -char(0),char(15),char(3),char(83),char(255),char(154),char(0),char(15),char(3),char(85), -char(255),char(154),char(0),char(15),char(3),char(87),char(255),char(154),char(0),char(15), -char(3),char(89),char(255),char(154),char(0),char(15),char(3),char(91),char(255),char(154), -char(0),char(15),char(3),char(93),char(255),char(154),char(0),char(15),char(3),char(95), -char(255),char(154),char(0),char(15),char(3),char(97),char(255),char(215),char(0),char(15), -char(3),char(99),char(255),char(215),char(0),char(15),char(3),char(101),char(255),char(215), -char(0),char(15),char(3),char(103),char(255),char(215),char(0),char(15),char(3),char(105), -char(255),char(215),char(0),char(15),char(3),char(107),char(255),char(215),char(0),char(15), -char(3),char(109),char(255),char(215),char(0),char(15),char(3),char(111),char(255),char(133), -char(0),char(15),char(3),char(113),char(255),char(133),char(0),char(15),char(3),char(115), -char(255),char(133),char(0),char(15),char(3),char(143),char(255),char(113),char(0),char(16), -char(0),char(55),char(255),char(174),char(0),char(16),char(1),char(36),char(255),char(174), -char(0),char(16),char(1),char(38),char(255),char(174),char(0),char(16),char(1),char(113), -char(255),char(174),char(0),char(16),char(1),char(157),char(255),char(174),char(0),char(16), -char(1),char(166),char(255),char(174),char(0),char(16),char(1),char(188),char(255),char(174), -char(0),char(16),char(1),char(196),char(255),char(174),char(0),char(16),char(1),char(220), -char(255),char(215),char(0),char(16),char(1),char(228),char(255),char(215),char(0),char(16), -char(2),char(169),char(255),char(174),char(0),char(16),char(2),char(170),char(255),char(215), -char(0),char(16),char(2),char(181),char(255),char(174),char(0),char(16),char(2),char(182), -char(255),char(215),char(0),char(16),char(2),char(189),char(255),char(174),char(0),char(16), -char(2),char(190),char(255),char(215),char(0),char(16),char(3),char(23),char(255),char(174), -char(0),char(16),char(3),char(24),char(255),char(215),char(0),char(16),char(3),char(143), -char(255),char(174),char(0),char(17),char(0),char(38),char(255),char(154),char(0),char(17), -char(0),char(42),char(255),char(154),char(0),char(17),char(0),char(50),char(255),char(154), -char(0),char(17),char(0),char(52),char(255),char(154),char(0),char(17),char(0),char(55), -char(255),char(113),char(0),char(17),char(0),char(56),char(255),char(215),char(0),char(17), -char(0),char(57),char(255),char(133),char(0),char(17),char(0),char(58),char(255),char(133), -char(0),char(17),char(0),char(60),char(255),char(133),char(0),char(17),char(0),char(137), -char(255),char(154),char(0),char(17),char(0),char(148),char(255),char(154),char(0),char(17), -char(0),char(149),char(255),char(154),char(0),char(17),char(0),char(150),char(255),char(154), -char(0),char(17),char(0),char(151),char(255),char(154),char(0),char(17),char(0),char(152), -char(255),char(154),char(0),char(17),char(0),char(154),char(255),char(154),char(0),char(17), -char(0),char(155),char(255),char(215),char(0),char(17),char(0),char(156),char(255),char(215), -char(0),char(17),char(0),char(157),char(255),char(215),char(0),char(17),char(0),char(158), -char(255),char(215),char(0),char(17),char(0),char(159),char(255),char(133),char(0),char(17), -char(0),char(200),char(255),char(154),char(0),char(17),char(0),char(202),char(255),char(154), -char(0),char(17),char(0),char(204),char(255),char(154),char(0),char(17),char(0),char(206), -char(255),char(154),char(0),char(17),char(0),char(222),char(255),char(154),char(0),char(17), -char(0),char(224),char(255),char(154),char(0),char(17),char(0),char(226),char(255),char(154), -char(0),char(17),char(0),char(228),char(255),char(154),char(0),char(17),char(1),char(14), -char(255),char(154),char(0),char(17),char(1),char(16),char(255),char(154),char(0),char(17), -char(1),char(18),char(255),char(154),char(0),char(17),char(1),char(20),char(255),char(154), -char(0),char(17),char(1),char(36),char(255),char(113),char(0),char(17),char(1),char(38), -char(255),char(113),char(0),char(17),char(1),char(42),char(255),char(215),char(0),char(17), -char(1),char(44),char(255),char(215),char(0),char(17),char(1),char(46),char(255),char(215), -char(0),char(17),char(1),char(48),char(255),char(215),char(0),char(17),char(1),char(50), -char(255),char(215),char(0),char(17),char(1),char(52),char(255),char(215),char(0),char(17), -char(1),char(54),char(255),char(133),char(0),char(17),char(1),char(56),char(255),char(133), -char(0),char(17),char(1),char(58),char(255),char(133),char(0),char(17),char(1),char(71), -char(255),char(154),char(0),char(17),char(1),char(102),char(255),char(174),char(0),char(17), -char(1),char(109),char(255),char(174),char(0),char(17),char(1),char(113),char(255),char(113), -char(0),char(17),char(1),char(114),char(255),char(133),char(0),char(17),char(1),char(115), -char(255),char(154),char(0),char(17),char(1),char(117),char(255),char(133),char(0),char(17), -char(1),char(120),char(255),char(133),char(0),char(17),char(1),char(133),char(255),char(215), -char(0),char(17),char(1),char(157),char(255),char(113),char(0),char(17),char(1),char(159), -char(255),char(154),char(0),char(17),char(1),char(166),char(255),char(113),char(0),char(17), -char(1),char(184),char(255),char(154),char(0),char(17),char(1),char(187),char(255),char(154), -char(0),char(17),char(1),char(188),char(255),char(113),char(0),char(17),char(1),char(190), -char(255),char(174),char(0),char(17),char(1),char(193),char(255),char(92),char(0),char(17), -char(1),char(196),char(255),char(113),char(0),char(17),char(1),char(220),char(255),char(154), -char(0),char(17),char(1),char(225),char(255),char(133),char(0),char(17),char(1),char(228), -char(255),char(154),char(0),char(17),char(1),char(250),char(255),char(133),char(0),char(17), -char(1),char(252),char(255),char(133),char(0),char(17),char(1),char(254),char(255),char(133), -char(0),char(17),char(2),char(0),char(255),char(133),char(0),char(17),char(2),char(84), -char(255),char(133),char(0),char(17),char(2),char(95),char(255),char(154),char(0),char(17), -char(2),char(97),char(255),char(215),char(0),char(17),char(2),char(108),char(255),char(154), -char(0),char(17),char(2),char(124),char(255),char(92),char(0),char(17),char(2),char(126), -char(255),char(154),char(0),char(17),char(2),char(128),char(255),char(133),char(0),char(17), -char(2),char(130),char(255),char(133),char(0),char(17),char(2),char(132),char(255),char(154), -char(0),char(17),char(2),char(134),char(255),char(154),char(0),char(17),char(2),char(136), -char(255),char(154),char(0),char(17),char(2),char(138),char(255),char(154),char(0),char(17), -char(2),char(140),char(255),char(154),char(0),char(17),char(2),char(169),char(255),char(113), -char(0),char(17),char(2),char(170),char(255),char(154),char(0),char(17),char(2),char(177), -char(255),char(154),char(0),char(17),char(2),char(179),char(255),char(154),char(0),char(17), -char(2),char(181),char(255),char(113),char(0),char(17),char(2),char(182),char(255),char(154), -char(0),char(17),char(2),char(183),char(255),char(133),char(0),char(17),char(2),char(185), -char(255),char(133),char(0),char(17),char(2),char(189),char(255),char(113),char(0),char(17), -char(2),char(190),char(255),char(154),char(0),char(17),char(2),char(191),char(255),char(92), -char(0),char(17),char(2),char(192),char(255),char(133),char(0),char(17),char(2),char(193), -char(255),char(92),char(0),char(17),char(2),char(194),char(255),char(133),char(0),char(17), -char(2),char(197),char(255),char(133),char(0),char(17),char(2),char(199),char(255),char(133), -char(0),char(17),char(2),char(212),char(255),char(92),char(0),char(17),char(2),char(213), -char(255),char(133),char(0),char(17),char(2),char(239),char(255),char(154),char(0),char(17), -char(2),char(241),char(255),char(154),char(0),char(17),char(2),char(243),char(255),char(154), -char(0),char(17),char(2),char(253),char(255),char(92),char(0),char(17),char(2),char(254), -char(255),char(133),char(0),char(17),char(3),char(13),char(255),char(133),char(0),char(17), -char(3),char(14),char(255),char(154),char(0),char(17),char(3),char(15),char(255),char(133), -char(0),char(17),char(3),char(16),char(255),char(154),char(0),char(17),char(3),char(21), -char(255),char(154),char(0),char(17),char(3),char(23),char(255),char(113),char(0),char(17), -char(3),char(24),char(255),char(154),char(0),char(17),char(3),char(73),char(255),char(154), -char(0),char(17),char(3),char(75),char(255),char(154),char(0),char(17),char(3),char(77), -char(255),char(154),char(0),char(17),char(3),char(79),char(255),char(154),char(0),char(17), -char(3),char(81),char(255),char(154),char(0),char(17),char(3),char(83),char(255),char(154), -char(0),char(17),char(3),char(85),char(255),char(154),char(0),char(17),char(3),char(87), -char(255),char(154),char(0),char(17),char(3),char(89),char(255),char(154),char(0),char(17), -char(3),char(91),char(255),char(154),char(0),char(17),char(3),char(93),char(255),char(154), -char(0),char(17),char(3),char(95),char(255),char(154),char(0),char(17),char(3),char(97), -char(255),char(215),char(0),char(17),char(3),char(99),char(255),char(215),char(0),char(17), -char(3),char(101),char(255),char(215),char(0),char(17),char(3),char(103),char(255),char(215), -char(0),char(17),char(3),char(105),char(255),char(215),char(0),char(17),char(3),char(107), -char(255),char(215),char(0),char(17),char(3),char(109),char(255),char(215),char(0),char(17), -char(3),char(111),char(255),char(133),char(0),char(17),char(3),char(113),char(255),char(133), -char(0),char(17),char(3),char(115),char(255),char(133),char(0),char(17),char(3),char(143), -char(255),char(113),char(0),char(36),char(0),char(5),char(255),char(113),char(0),char(36), -char(0),char(10),char(255),char(113),char(0),char(36),char(0),char(38),char(255),char(215), -char(0),char(36),char(0),char(42),char(255),char(215),char(0),char(36),char(0),char(45), -char(1),char(10),char(0),char(36),char(0),char(50),char(255),char(215),char(0),char(36), -char(0),char(52),char(255),char(215),char(0),char(36),char(0),char(55),char(255),char(113), -char(0),char(36),char(0),char(57),char(255),char(174),char(0),char(36),char(0),char(58), -char(255),char(174),char(0),char(36),char(0),char(60),char(255),char(133),char(0),char(36), -char(0),char(137),char(255),char(215),char(0),char(36),char(0),char(148),char(255),char(215), -char(0),char(36),char(0),char(149),char(255),char(215),char(0),char(36),char(0),char(150), -char(255),char(215),char(0),char(36),char(0),char(151),char(255),char(215),char(0),char(36), -char(0),char(152),char(255),char(215),char(0),char(36),char(0),char(154),char(255),char(215), -char(0),char(36),char(0),char(159),char(255),char(133),char(0),char(36),char(0),char(200), -char(255),char(215),char(0),char(36),char(0),char(202),char(255),char(215),char(0),char(36), -char(0),char(204),char(255),char(215),char(0),char(36),char(0),char(206),char(255),char(215), -char(0),char(36),char(0),char(222),char(255),char(215),char(0),char(36),char(0),char(224), -char(255),char(215),char(0),char(36),char(0),char(226),char(255),char(215),char(0),char(36), -char(0),char(228),char(255),char(215),char(0),char(36),char(1),char(14),char(255),char(215), -char(0),char(36),char(1),char(16),char(255),char(215),char(0),char(36),char(1),char(18), -char(255),char(215),char(0),char(36),char(1),char(20),char(255),char(215),char(0),char(36), -char(1),char(36),char(255),char(113),char(0),char(36),char(1),char(38),char(255),char(113), -char(0),char(36),char(1),char(54),char(255),char(174),char(0),char(36),char(1),char(56), -char(255),char(133),char(0),char(36),char(1),char(58),char(255),char(133),char(0),char(36), -char(1),char(71),char(255),char(215),char(0),char(36),char(1),char(250),char(255),char(174), -char(0),char(36),char(1),char(252),char(255),char(174),char(0),char(36),char(1),char(254), -char(255),char(174),char(0),char(36),char(2),char(0),char(255),char(133),char(0),char(36), -char(2),char(7),char(255),char(113),char(0),char(36),char(2),char(11),char(255),char(113), -char(0),char(36),char(2),char(95),char(255),char(215),char(0),char(36),char(3),char(73), -char(255),char(215),char(0),char(36),char(3),char(75),char(255),char(215),char(0),char(36), -char(3),char(77),char(255),char(215),char(0),char(36),char(3),char(79),char(255),char(215), -char(0),char(36),char(3),char(81),char(255),char(215),char(0),char(36),char(3),char(83), -char(255),char(215),char(0),char(36),char(3),char(85),char(255),char(215),char(0),char(36), -char(3),char(87),char(255),char(215),char(0),char(36),char(3),char(89),char(255),char(215), -char(0),char(36),char(3),char(91),char(255),char(215),char(0),char(36),char(3),char(93), -char(255),char(215),char(0),char(36),char(3),char(95),char(255),char(215),char(0),char(36), -char(3),char(111),char(255),char(133),char(0),char(36),char(3),char(113),char(255),char(133), -char(0),char(36),char(3),char(115),char(255),char(133),char(0),char(36),char(3),char(143), -char(255),char(113),char(0),char(37),char(0),char(15),char(255),char(174),char(0),char(37), -char(0),char(17),char(255),char(174),char(0),char(37),char(0),char(36),char(255),char(215), -char(0),char(37),char(0),char(55),char(255),char(195),char(0),char(37),char(0),char(57), -char(255),char(236),char(0),char(37),char(0),char(58),char(255),char(236),char(0),char(37), -char(0),char(59),char(255),char(215),char(0),char(37),char(0),char(60),char(255),char(236), -char(0),char(37),char(0),char(61),char(255),char(236),char(0),char(37),char(0),char(130), -char(255),char(215),char(0),char(37),char(0),char(131),char(255),char(215),char(0),char(37), -char(0),char(132),char(255),char(215),char(0),char(37),char(0),char(133),char(255),char(215), -char(0),char(37),char(0),char(134),char(255),char(215),char(0),char(37),char(0),char(135), -char(255),char(215),char(0),char(37),char(0),char(159),char(255),char(236),char(0),char(37), -char(0),char(194),char(255),char(215),char(0),char(37),char(0),char(196),char(255),char(215), -char(0),char(37),char(0),char(198),char(255),char(215),char(0),char(37),char(1),char(36), -char(255),char(195),char(0),char(37),char(1),char(38),char(255),char(195),char(0),char(37), -char(1),char(54),char(255),char(236),char(0),char(37),char(1),char(56),char(255),char(236), -char(0),char(37),char(1),char(58),char(255),char(236),char(0),char(37),char(1),char(59), -char(255),char(236),char(0),char(37),char(1),char(61),char(255),char(236),char(0),char(37), -char(1),char(63),char(255),char(236),char(0),char(37),char(1),char(67),char(255),char(215), -char(0),char(37),char(1),char(160),char(255),char(236),char(0),char(37),char(1),char(250), -char(255),char(236),char(0),char(37),char(1),char(252),char(255),char(236),char(0),char(37), -char(1),char(254),char(255),char(236),char(0),char(37),char(2),char(0),char(255),char(236), -char(0),char(37),char(2),char(8),char(255),char(174),char(0),char(37),char(2),char(12), -char(255),char(174),char(0),char(37),char(2),char(88),char(255),char(215),char(0),char(37), -char(3),char(29),char(255),char(215),char(0),char(37),char(3),char(31),char(255),char(215), -char(0),char(37),char(3),char(33),char(255),char(215),char(0),char(37),char(3),char(35), -char(255),char(215),char(0),char(37),char(3),char(37),char(255),char(215),char(0),char(37), -char(3),char(39),char(255),char(215),char(0),char(37),char(3),char(41),char(255),char(215), -char(0),char(37),char(3),char(43),char(255),char(215),char(0),char(37),char(3),char(45), -char(255),char(215),char(0),char(37),char(3),char(47),char(255),char(215),char(0),char(37), -char(3),char(49),char(255),char(215),char(0),char(37),char(3),char(51),char(255),char(215), -char(0),char(37),char(3),char(111),char(255),char(236),char(0),char(37),char(3),char(113), -char(255),char(236),char(0),char(37),char(3),char(115),char(255),char(236),char(0),char(37), -char(3),char(143),char(255),char(195),char(0),char(38),char(0),char(38),char(255),char(215), -char(0),char(38),char(0),char(42),char(255),char(215),char(0),char(38),char(0),char(50), -char(255),char(215),char(0),char(38),char(0),char(52),char(255),char(215),char(0),char(38), -char(0),char(137),char(255),char(215),char(0),char(38),char(0),char(148),char(255),char(215), -char(0),char(38),char(0),char(149),char(255),char(215),char(0),char(38),char(0),char(150), -char(255),char(215),char(0),char(38),char(0),char(151),char(255),char(215),char(0),char(38), -char(0),char(152),char(255),char(215),char(0),char(38),char(0),char(154),char(255),char(215), -char(0),char(38),char(0),char(200),char(255),char(215),char(0),char(38),char(0),char(202), -char(255),char(215),char(0),char(38),char(0),char(204),char(255),char(215),char(0),char(38), -char(0),char(206),char(255),char(215),char(0),char(38),char(0),char(222),char(255),char(215), -char(0),char(38),char(0),char(224),char(255),char(215),char(0),char(38),char(0),char(226), -char(255),char(215),char(0),char(38),char(0),char(228),char(255),char(215),char(0),char(38), -char(1),char(14),char(255),char(215),char(0),char(38),char(1),char(16),char(255),char(215), -char(0),char(38),char(1),char(18),char(255),char(215),char(0),char(38),char(1),char(20), -char(255),char(215),char(0),char(38),char(1),char(71),char(255),char(215),char(0),char(38), -char(2),char(95),char(255),char(215),char(0),char(38),char(3),char(73),char(255),char(215), -char(0),char(38),char(3),char(75),char(255),char(215),char(0),char(38),char(3),char(77), -char(255),char(215),char(0),char(38),char(3),char(79),char(255),char(215),char(0),char(38), -char(3),char(81),char(255),char(215),char(0),char(38),char(3),char(83),char(255),char(215), -char(0),char(38),char(3),char(85),char(255),char(215),char(0),char(38),char(3),char(87), -char(255),char(215),char(0),char(38),char(3),char(89),char(255),char(215),char(0),char(38), -char(3),char(91),char(255),char(215),char(0),char(38),char(3),char(93),char(255),char(215), -char(0),char(38),char(3),char(95),char(255),char(215),char(0),char(39),char(0),char(15), -char(255),char(174),char(0),char(39),char(0),char(17),char(255),char(174),char(0),char(39), -char(0),char(36),char(255),char(215),char(0),char(39),char(0),char(55),char(255),char(195), -char(0),char(39),char(0),char(57),char(255),char(236),char(0),char(39),char(0),char(58), -char(255),char(236),char(0),char(39),char(0),char(59),char(255),char(215),char(0),char(39), -char(0),char(60),char(255),char(236),char(0),char(39),char(0),char(61),char(255),char(236), -char(0),char(39),char(0),char(130),char(255),char(215),char(0),char(39),char(0),char(131), -char(255),char(215),char(0),char(39),char(0),char(132),char(255),char(215),char(0),char(39), -char(0),char(133),char(255),char(215),char(0),char(39),char(0),char(134),char(255),char(215), -char(0),char(39),char(0),char(135),char(255),char(215),char(0),char(39),char(0),char(159), -char(255),char(236),char(0),char(39),char(0),char(194),char(255),char(215),char(0),char(39), -char(0),char(196),char(255),char(215),char(0),char(39),char(0),char(198),char(255),char(215), -char(0),char(39),char(1),char(36),char(255),char(195),char(0),char(39),char(1),char(38), -char(255),char(195),char(0),char(39),char(1),char(54),char(255),char(236),char(0),char(39), -char(1),char(56),char(255),char(236),char(0),char(39),char(1),char(58),char(255),char(236), -char(0),char(39),char(1),char(59),char(255),char(236),char(0),char(39),char(1),char(61), -char(255),char(236),char(0),char(39),char(1),char(63),char(255),char(236),char(0),char(39), -char(1),char(67),char(255),char(215),char(0),char(39),char(1),char(160),char(255),char(236), -char(0),char(39),char(1),char(250),char(255),char(236),char(0),char(39),char(1),char(252), -char(255),char(236),char(0),char(39),char(1),char(254),char(255),char(236),char(0),char(39), -char(2),char(0),char(255),char(236),char(0),char(39),char(2),char(8),char(255),char(174), -char(0),char(39),char(2),char(12),char(255),char(174),char(0),char(39),char(2),char(88), -char(255),char(215),char(0),char(39),char(3),char(29),char(255),char(215),char(0),char(39), -char(3),char(31),char(255),char(215),char(0),char(39),char(3),char(33),char(255),char(215), -char(0),char(39),char(3),char(35),char(255),char(215),char(0),char(39),char(3),char(37), -char(255),char(215),char(0),char(39),char(3),char(39),char(255),char(215),char(0),char(39), -char(3),char(41),char(255),char(215),char(0),char(39),char(3),char(43),char(255),char(215), -char(0),char(39),char(3),char(45),char(255),char(215),char(0),char(39),char(3),char(47), -char(255),char(215),char(0),char(39),char(3),char(49),char(255),char(215),char(0),char(39), -char(3),char(51),char(255),char(215),char(0),char(39),char(3),char(111),char(255),char(236), -char(0),char(39),char(3),char(113),char(255),char(236),char(0),char(39),char(3),char(115), -char(255),char(236),char(0),char(39),char(3),char(143),char(255),char(195),char(0),char(40), -char(0),char(45),char(0),char(123),char(0),char(41),char(0),char(15),char(255),char(133), -char(0),char(41),char(0),char(17),char(255),char(133),char(0),char(41),char(0),char(34), -char(0),char(41),char(0),char(41),char(0),char(36),char(255),char(215),char(0),char(41), -char(0),char(130),char(255),char(215),char(0),char(41),char(0),char(131),char(255),char(215), -char(0),char(41),char(0),char(132),char(255),char(215),char(0),char(41),char(0),char(133), -char(255),char(215),char(0),char(41),char(0),char(134),char(255),char(215),char(0),char(41), -char(0),char(135),char(255),char(215),char(0),char(41),char(0),char(194),char(255),char(215), -char(0),char(41),char(0),char(196),char(255),char(215),char(0),char(41),char(0),char(198), -char(255),char(215),char(0),char(41),char(1),char(67),char(255),char(215),char(0),char(41), -char(2),char(8),char(255),char(133),char(0),char(41),char(2),char(12),char(255),char(133), -char(0),char(41),char(2),char(88),char(255),char(215),char(0),char(41),char(3),char(29), -char(255),char(215),char(0),char(41),char(3),char(31),char(255),char(215),char(0),char(41), -char(3),char(33),char(255),char(215),char(0),char(41),char(3),char(35),char(255),char(215), -char(0),char(41),char(3),char(37),char(255),char(215),char(0),char(41),char(3),char(39), -char(255),char(215),char(0),char(41),char(3),char(41),char(255),char(215),char(0),char(41), -char(3),char(43),char(255),char(215),char(0),char(41),char(3),char(45),char(255),char(215), -char(0),char(41),char(3),char(47),char(255),char(215),char(0),char(41),char(3),char(49), -char(255),char(215),char(0),char(41),char(3),char(51),char(255),char(215),char(0),char(46), -char(0),char(38),char(255),char(215),char(0),char(46),char(0),char(42),char(255),char(215), -char(0),char(46),char(0),char(50),char(255),char(215),char(0),char(46),char(0),char(52), -char(255),char(215),char(0),char(46),char(0),char(137),char(255),char(215),char(0),char(46), -char(0),char(148),char(255),char(215),char(0),char(46),char(0),char(149),char(255),char(215), -char(0),char(46),char(0),char(150),char(255),char(215),char(0),char(46),char(0),char(151), -char(255),char(215),char(0),char(46),char(0),char(152),char(255),char(215),char(0),char(46), -char(0),char(154),char(255),char(215),char(0),char(46),char(0),char(200),char(255),char(215), -char(0),char(46),char(0),char(202),char(255),char(215),char(0),char(46),char(0),char(204), -char(255),char(215),char(0),char(46),char(0),char(206),char(255),char(215),char(0),char(46), -char(0),char(222),char(255),char(215),char(0),char(46),char(0),char(224),char(255),char(215), -char(0),char(46),char(0),char(226),char(255),char(215),char(0),char(46),char(0),char(228), -char(255),char(215),char(0),char(46),char(1),char(14),char(255),char(215),char(0),char(46), -char(1),char(16),char(255),char(215),char(0),char(46),char(1),char(18),char(255),char(215), -char(0),char(46),char(1),char(20),char(255),char(215),char(0),char(46),char(1),char(71), -char(255),char(215),char(0),char(46),char(2),char(95),char(255),char(215),char(0),char(46), -char(3),char(73),char(255),char(215),char(0),char(46),char(3),char(75),char(255),char(215), -char(0),char(46),char(3),char(77),char(255),char(215),char(0),char(46),char(3),char(79), -char(255),char(215),char(0),char(46),char(3),char(81),char(255),char(215),char(0),char(46), -char(3),char(83),char(255),char(215),char(0),char(46),char(3),char(85),char(255),char(215), -char(0),char(46),char(3),char(87),char(255),char(215),char(0),char(46),char(3),char(89), -char(255),char(215),char(0),char(46),char(3),char(91),char(255),char(215),char(0),char(46), -char(3),char(93),char(255),char(215),char(0),char(46),char(3),char(95),char(255),char(215), -char(0),char(47),char(0),char(5),char(255),char(92),char(0),char(47),char(0),char(10), -char(255),char(92),char(0),char(47),char(0),char(38),char(255),char(215),char(0),char(47), -char(0),char(42),char(255),char(215),char(0),char(47),char(0),char(50),char(255),char(215), -char(0),char(47),char(0),char(52),char(255),char(215),char(0),char(47),char(0),char(55), -char(255),char(215),char(0),char(47),char(0),char(56),char(255),char(236),char(0),char(47), -char(0),char(57),char(255),char(215),char(0),char(47),char(0),char(58),char(255),char(215), -char(0),char(47),char(0),char(60),char(255),char(195),char(0),char(47),char(0),char(137), -char(255),char(215),char(0),char(47),char(0),char(148),char(255),char(215),char(0),char(47), -char(0),char(149),char(255),char(215),char(0),char(47),char(0),char(150),char(255),char(215), -char(0),char(47),char(0),char(151),char(255),char(215),char(0),char(47),char(0),char(152), -char(255),char(215),char(0),char(47),char(0),char(154),char(255),char(215),char(0),char(47), -char(0),char(155),char(255),char(236),char(0),char(47),char(0),char(156),char(255),char(236), -char(0),char(47),char(0),char(157),char(255),char(236),char(0),char(47),char(0),char(158), -char(255),char(236),char(0),char(47),char(0),char(159),char(255),char(195),char(0),char(47), -char(0),char(200),char(255),char(215),char(0),char(47),char(0),char(202),char(255),char(215), -char(0),char(47),char(0),char(204),char(255),char(215),char(0),char(47),char(0),char(206), -char(255),char(215),char(0),char(47),char(0),char(222),char(255),char(215),char(0),char(47), -char(0),char(224),char(255),char(215),char(0),char(47),char(0),char(226),char(255),char(215), -char(0),char(47),char(0),char(228),char(255),char(215),char(0),char(47),char(1),char(14), -char(255),char(215),char(0),char(47),char(1),char(16),char(255),char(215),char(0),char(47), -char(1),char(18),char(255),char(215),char(0),char(47),char(1),char(20),char(255),char(215), -char(0),char(47),char(1),char(36),char(255),char(215),char(0),char(47),char(1),char(38), -char(255),char(215),char(0),char(47),char(1),char(42),char(255),char(236),char(0),char(47), -char(1),char(44),char(255),char(236),char(0),char(47),char(1),char(46),char(255),char(236), -char(0),char(47),char(1),char(48),char(255),char(236),char(0),char(47),char(1),char(50), -char(255),char(236),char(0),char(47),char(1),char(52),char(255),char(236),char(0),char(47), -char(1),char(54),char(255),char(215),char(0),char(47),char(1),char(56),char(255),char(195), -char(0),char(47),char(1),char(58),char(255),char(195),char(0),char(47),char(1),char(71), -char(255),char(215),char(0),char(47),char(1),char(250),char(255),char(215),char(0),char(47), -char(1),char(252),char(255),char(215),char(0),char(47),char(1),char(254),char(255),char(215), -char(0),char(47),char(2),char(0),char(255),char(195),char(0),char(47),char(2),char(7), -char(255),char(92),char(0),char(47),char(2),char(11),char(255),char(92),char(0),char(47), -char(2),char(95),char(255),char(215),char(0),char(47),char(2),char(97),char(255),char(236), -char(0),char(47),char(3),char(73),char(255),char(215),char(0),char(47),char(3),char(75), -char(255),char(215),char(0),char(47),char(3),char(77),char(255),char(215),char(0),char(47), -char(3),char(79),char(255),char(215),char(0),char(47),char(3),char(81),char(255),char(215), -char(0),char(47),char(3),char(83),char(255),char(215),char(0),char(47),char(3),char(85), -char(255),char(215),char(0),char(47),char(3),char(87),char(255),char(215),char(0),char(47), -char(3),char(89),char(255),char(215),char(0),char(47),char(3),char(91),char(255),char(215), -char(0),char(47),char(3),char(93),char(255),char(215),char(0),char(47),char(3),char(95), -char(255),char(215),char(0),char(47),char(3),char(97),char(255),char(236),char(0),char(47), -char(3),char(99),char(255),char(236),char(0),char(47),char(3),char(101),char(255),char(236), -char(0),char(47),char(3),char(103),char(255),char(236),char(0),char(47),char(3),char(105), -char(255),char(236),char(0),char(47),char(3),char(107),char(255),char(236),char(0),char(47), -char(3),char(109),char(255),char(236),char(0),char(47),char(3),char(111),char(255),char(195), -char(0),char(47),char(3),char(113),char(255),char(195),char(0),char(47),char(3),char(115), -char(255),char(195),char(0),char(47),char(3),char(143),char(255),char(215),char(0),char(50), -char(0),char(15),char(255),char(174),char(0),char(50),char(0),char(17),char(255),char(174), -char(0),char(50),char(0),char(36),char(255),char(215),char(0),char(50),char(0),char(55), -char(255),char(195),char(0),char(50),char(0),char(57),char(255),char(236),char(0),char(50), -char(0),char(58),char(255),char(236),char(0),char(50),char(0),char(59),char(255),char(215), -char(0),char(50),char(0),char(60),char(255),char(236),char(0),char(50),char(0),char(61), -char(255),char(236),char(0),char(50),char(0),char(130),char(255),char(215),char(0),char(50), -char(0),char(131),char(255),char(215),char(0),char(50),char(0),char(132),char(255),char(215), -char(0),char(50),char(0),char(133),char(255),char(215),char(0),char(50),char(0),char(134), -char(255),char(215),char(0),char(50),char(0),char(135),char(255),char(215),char(0),char(50), -char(0),char(159),char(255),char(236),char(0),char(50),char(0),char(194),char(255),char(215), -char(0),char(50),char(0),char(196),char(255),char(215),char(0),char(50),char(0),char(198), -char(255),char(215),char(0),char(50),char(1),char(36),char(255),char(195),char(0),char(50), -char(1),char(38),char(255),char(195),char(0),char(50),char(1),char(54),char(255),char(236), -char(0),char(50),char(1),char(56),char(255),char(236),char(0),char(50),char(1),char(58), -char(255),char(236),char(0),char(50),char(1),char(59),char(255),char(236),char(0),char(50), -char(1),char(61),char(255),char(236),char(0),char(50),char(1),char(63),char(255),char(236), -char(0),char(50),char(1),char(67),char(255),char(215),char(0),char(50),char(1),char(160), -char(255),char(236),char(0),char(50),char(1),char(250),char(255),char(236),char(0),char(50), -char(1),char(252),char(255),char(236),char(0),char(50),char(1),char(254),char(255),char(236), -char(0),char(50),char(2),char(0),char(255),char(236),char(0),char(50),char(2),char(8), -char(255),char(174),char(0),char(50),char(2),char(12),char(255),char(174),char(0),char(50), -char(2),char(88),char(255),char(215),char(0),char(50),char(3),char(29),char(255),char(215), -char(0),char(50),char(3),char(31),char(255),char(215),char(0),char(50),char(3),char(33), -char(255),char(215),char(0),char(50),char(3),char(35),char(255),char(215),char(0),char(50), -char(3),char(37),char(255),char(215),char(0),char(50),char(3),char(39),char(255),char(215), -char(0),char(50),char(3),char(41),char(255),char(215),char(0),char(50),char(3),char(43), -char(255),char(215),char(0),char(50),char(3),char(45),char(255),char(215),char(0),char(50), -char(3),char(47),char(255),char(215),char(0),char(50),char(3),char(49),char(255),char(215), -char(0),char(50),char(3),char(51),char(255),char(215),char(0),char(50),char(3),char(111), -char(255),char(236),char(0),char(50),char(3),char(113),char(255),char(236),char(0),char(50), -char(3),char(115),char(255),char(236),char(0),char(50),char(3),char(143),char(255),char(195), -char(0),char(51),char(0),char(15),char(254),char(246),char(0),char(51),char(0),char(17), -char(254),char(246),char(0),char(51),char(0),char(36),char(255),char(154),char(0),char(51), -char(0),char(59),char(255),char(215),char(0),char(51),char(0),char(61),char(255),char(236), -char(0),char(51),char(0),char(130),char(255),char(154),char(0),char(51),char(0),char(131), -char(255),char(154),char(0),char(51),char(0),char(132),char(255),char(154),char(0),char(51), -char(0),char(133),char(255),char(154),char(0),char(51),char(0),char(134),char(255),char(154), -char(0),char(51),char(0),char(135),char(255),char(154),char(0),char(51),char(0),char(194), -char(255),char(154),char(0),char(51),char(0),char(196),char(255),char(154),char(0),char(51), -char(0),char(198),char(255),char(154),char(0),char(51),char(1),char(59),char(255),char(236), -char(0),char(51),char(1),char(61),char(255),char(236),char(0),char(51),char(1),char(63), -char(255),char(236),char(0),char(51),char(1),char(67),char(255),char(154),char(0),char(51), -char(2),char(8),char(254),char(246),char(0),char(51),char(2),char(12),char(254),char(246), -char(0),char(51),char(2),char(88),char(255),char(154),char(0),char(51),char(3),char(29), -char(255),char(154),char(0),char(51),char(3),char(31),char(255),char(154),char(0),char(51), -char(3),char(33),char(255),char(154),char(0),char(51),char(3),char(35),char(255),char(154), -char(0),char(51),char(3),char(37),char(255),char(154),char(0),char(51),char(3),char(39), -char(255),char(154),char(0),char(51),char(3),char(41),char(255),char(154),char(0),char(51), -char(3),char(43),char(255),char(154),char(0),char(51),char(3),char(45),char(255),char(154), -char(0),char(51),char(3),char(47),char(255),char(154),char(0),char(51),char(3),char(49), -char(255),char(154),char(0),char(51),char(3),char(51),char(255),char(154),char(0),char(52), -char(0),char(15),char(255),char(174),char(0),char(52),char(0),char(17),char(255),char(174), -char(0),char(52),char(0),char(36),char(255),char(215),char(0),char(52),char(0),char(55), -char(255),char(195),char(0),char(52),char(0),char(57),char(255),char(236),char(0),char(52), -char(0),char(58),char(255),char(236),char(0),char(52),char(0),char(59),char(255),char(215), -char(0),char(52),char(0),char(60),char(255),char(236),char(0),char(52),char(0),char(61), -char(255),char(236),char(0),char(52),char(0),char(130),char(255),char(215),char(0),char(52), -char(0),char(131),char(255),char(215),char(0),char(52),char(0),char(132),char(255),char(215), -char(0),char(52),char(0),char(133),char(255),char(215),char(0),char(52),char(0),char(134), -char(255),char(215),char(0),char(52),char(0),char(135),char(255),char(215),char(0),char(52), -char(0),char(159),char(255),char(236),char(0),char(52),char(0),char(194),char(255),char(215), -char(0),char(52),char(0),char(196),char(255),char(215),char(0),char(52),char(0),char(198), -char(255),char(215),char(0),char(52),char(1),char(36),char(255),char(195),char(0),char(52), -char(1),char(38),char(255),char(195),char(0),char(52),char(1),char(54),char(255),char(236), -char(0),char(52),char(1),char(56),char(255),char(236),char(0),char(52),char(1),char(58), -char(255),char(236),char(0),char(52),char(1),char(59),char(255),char(236),char(0),char(52), -char(1),char(61),char(255),char(236),char(0),char(52),char(1),char(63),char(255),char(236), -char(0),char(52),char(1),char(67),char(255),char(215),char(0),char(52),char(1),char(160), -char(255),char(236),char(0),char(52),char(1),char(250),char(255),char(236),char(0),char(52), -char(1),char(252),char(255),char(236),char(0),char(52),char(1),char(254),char(255),char(236), -char(0),char(52),char(2),char(0),char(255),char(236),char(0),char(52),char(2),char(8), -char(255),char(174),char(0),char(52),char(2),char(12),char(255),char(174),char(0),char(52), -char(2),char(88),char(255),char(215),char(0),char(52),char(3),char(29),char(255),char(215), -char(0),char(52),char(3),char(31),char(255),char(215),char(0),char(52),char(3),char(33), -char(255),char(215),char(0),char(52),char(3),char(35),char(255),char(215),char(0),char(52), -char(3),char(37),char(255),char(215),char(0),char(52),char(3),char(39),char(255),char(215), -char(0),char(52),char(3),char(41),char(255),char(215),char(0),char(52),char(3),char(43), -char(255),char(215),char(0),char(52),char(3),char(45),char(255),char(215),char(0),char(52), -char(3),char(47),char(255),char(215),char(0),char(52),char(3),char(49),char(255),char(215), -char(0),char(52),char(3),char(51),char(255),char(215),char(0),char(52),char(3),char(111), -char(255),char(236),char(0),char(52),char(3),char(113),char(255),char(236),char(0),char(52), -char(3),char(115),char(255),char(236),char(0),char(52),char(3),char(143),char(255),char(195), -char(0),char(55),char(0),char(15),char(255),char(133),char(0),char(55),char(0),char(16), -char(255),char(174),char(0),char(55),char(0),char(17),char(255),char(133),char(0),char(55), -char(0),char(34),char(0),char(41),char(0),char(55),char(0),char(36),char(255),char(113), -char(0),char(55),char(0),char(38),char(255),char(215),char(0),char(55),char(0),char(42), -char(255),char(215),char(0),char(55),char(0),char(50),char(255),char(215),char(0),char(55), -char(0),char(52),char(255),char(215),char(0),char(55),char(0),char(55),char(0),char(41), -char(0),char(55),char(0),char(68),char(255),char(92),char(0),char(55),char(0),char(70), -char(255),char(113),char(0),char(55),char(0),char(71),char(255),char(113),char(0),char(55), -char(0),char(72),char(255),char(113),char(0),char(55),char(0),char(74),char(255),char(113), -char(0),char(55),char(0),char(80),char(255),char(154),char(0),char(55),char(0),char(81), -char(255),char(154),char(0),char(55),char(0),char(82),char(255),char(113),char(0),char(55), -char(0),char(83),char(255),char(154),char(0),char(55),char(0),char(84),char(255),char(113), -char(0),char(55),char(0),char(85),char(255),char(154),char(0),char(55),char(0),char(86), -char(255),char(133),char(0),char(55),char(0),char(88),char(255),char(154),char(0),char(55), -char(0),char(89),char(255),char(215),char(0),char(55),char(0),char(90),char(255),char(215), -char(0),char(55),char(0),char(91),char(255),char(215),char(0),char(55),char(0),char(92), -char(255),char(215),char(0),char(55),char(0),char(93),char(255),char(174),char(0),char(55), -char(0),char(130),char(255),char(113),char(0),char(55),char(0),char(131),char(255),char(113), -char(0),char(55),char(0),char(132),char(255),char(113),char(0),char(55),char(0),char(133), -char(255),char(113),char(0),char(55),char(0),char(134),char(255),char(113),char(0),char(55), -char(0),char(135),char(255),char(113),char(0),char(55),char(0),char(137),char(255),char(215), -char(0),char(55),char(0),char(148),char(255),char(215),char(0),char(55),char(0),char(149), -char(255),char(215),char(0),char(55),char(0),char(150),char(255),char(215),char(0),char(55), -char(0),char(151),char(255),char(215),char(0),char(55),char(0),char(152),char(255),char(215), -char(0),char(55),char(0),char(154),char(255),char(215),char(0),char(55),char(0),char(162), -char(255),char(113),char(0),char(55),char(0),char(163),char(255),char(92),char(0),char(55), -char(0),char(164),char(255),char(92),char(0),char(55),char(0),char(165),char(255),char(92), -char(0),char(55),char(0),char(166),char(255),char(92),char(0),char(55),char(0),char(167), -char(255),char(92),char(0),char(55),char(0),char(168),char(255),char(92),char(0),char(55), -char(0),char(169),char(255),char(113),char(0),char(55),char(0),char(170),char(255),char(113), -char(0),char(55),char(0),char(171),char(255),char(113),char(0),char(55),char(0),char(172), -char(255),char(113),char(0),char(55),char(0),char(173),char(255),char(113),char(0),char(55), -char(0),char(180),char(255),char(113),char(0),char(55),char(0),char(181),char(255),char(113), -char(0),char(55),char(0),char(182),char(255),char(113),char(0),char(55),char(0),char(183), -char(255),char(113),char(0),char(55),char(0),char(184),char(255),char(113),char(0),char(55), -char(0),char(186),char(255),char(113),char(0),char(55),char(0),char(187),char(255),char(154), -char(0),char(55),char(0),char(188),char(255),char(154),char(0),char(55),char(0),char(189), -char(255),char(154),char(0),char(55),char(0),char(190),char(255),char(154),char(0),char(55), -char(0),char(191),char(255),char(215),char(0),char(55),char(0),char(194),char(255),char(113), -char(0),char(55),char(0),char(195),char(255),char(92),char(0),char(55),char(0),char(196), -char(255),char(113),char(0),char(55),char(0),char(197),char(255),char(92),char(0),char(55), -char(0),char(198),char(255),char(113),char(0),char(55),char(0),char(199),char(255),char(92), -char(0),char(55),char(0),char(200),char(255),char(215),char(0),char(55),char(0),char(201), -char(255),char(113),char(0),char(55),char(0),char(202),char(255),char(215),char(0),char(55), -char(0),char(203),char(255),char(113),char(0),char(55),char(0),char(204),char(255),char(215), -char(0),char(55),char(0),char(205),char(255),char(113),char(0),char(55),char(0),char(206), -char(255),char(215),char(0),char(55),char(0),char(207),char(255),char(113),char(0),char(55), -char(0),char(209),char(255),char(113),char(0),char(55),char(0),char(211),char(255),char(113), -char(0),char(55),char(0),char(213),char(255),char(113),char(0),char(55),char(0),char(215), -char(255),char(113),char(0),char(55),char(0),char(217),char(255),char(113),char(0),char(55), -char(0),char(219),char(255),char(113),char(0),char(55),char(0),char(221),char(255),char(113), -char(0),char(55),char(0),char(222),char(255),char(215),char(0),char(55),char(0),char(223), -char(255),char(113),char(0),char(55),char(0),char(224),char(255),char(215),char(0),char(55), -char(0),char(225),char(255),char(113),char(0),char(55),char(0),char(226),char(255),char(215), -char(0),char(55),char(0),char(227),char(255),char(113),char(0),char(55),char(0),char(228), -char(255),char(215),char(0),char(55),char(0),char(229),char(255),char(113),char(0),char(55), -char(0),char(250),char(255),char(154),char(0),char(55),char(1),char(6),char(255),char(154), -char(0),char(55),char(1),char(8),char(255),char(154),char(0),char(55),char(1),char(13), -char(255),char(154),char(0),char(55),char(1),char(14),char(255),char(215),char(0),char(55), -char(1),char(15),char(255),char(113),char(0),char(55),char(1),char(16),char(255),char(215), -char(0),char(55),char(1),char(17),char(255),char(113),char(0),char(55),char(1),char(18), -char(255),char(215),char(0),char(55),char(1),char(19),char(255),char(113),char(0),char(55), -char(1),char(20),char(255),char(215),char(0),char(55),char(1),char(21),char(255),char(113), -char(0),char(55),char(1),char(23),char(255),char(154),char(0),char(55),char(1),char(25), -char(255),char(154),char(0),char(55),char(1),char(29),char(255),char(133),char(0),char(55), -char(1),char(33),char(255),char(133),char(0),char(55),char(1),char(36),char(0),char(41), -char(0),char(55),char(1),char(38),char(0),char(41),char(0),char(55),char(1),char(43), -char(255),char(154),char(0),char(55),char(1),char(45),char(255),char(154),char(0),char(55), -char(1),char(47),char(255),char(154),char(0),char(55),char(1),char(49),char(255),char(154), -char(0),char(55),char(1),char(51),char(255),char(154),char(0),char(55),char(1),char(53), -char(255),char(154),char(0),char(55),char(1),char(55),char(255),char(215),char(0),char(55), -char(1),char(60),char(255),char(174),char(0),char(55),char(1),char(62),char(255),char(174), -char(0),char(55),char(1),char(64),char(255),char(174),char(0),char(55),char(1),char(67), -char(255),char(113),char(0),char(55),char(1),char(68),char(255),char(92),char(0),char(55), -char(1),char(70),char(255),char(92),char(0),char(55),char(1),char(71),char(255),char(215), -char(0),char(55),char(1),char(72),char(255),char(113),char(0),char(55),char(1),char(74), -char(255),char(133),char(0),char(55),char(1),char(251),char(255),char(215),char(0),char(55), -char(1),char(253),char(255),char(215),char(0),char(55),char(2),char(2),char(255),char(174), -char(0),char(55),char(2),char(3),char(255),char(174),char(0),char(55),char(2),char(4), -char(255),char(174),char(0),char(55),char(2),char(8),char(255),char(133),char(0),char(55), -char(2),char(12),char(255),char(133),char(0),char(55),char(2),char(87),char(255),char(154), -char(0),char(55),char(2),char(88),char(255),char(113),char(0),char(55),char(2),char(89), -char(255),char(92),char(0),char(55),char(2),char(95),char(255),char(215),char(0),char(55), -char(2),char(96),char(255),char(113),char(0),char(55),char(2),char(98),char(255),char(154), -char(0),char(55),char(3),char(29),char(255),char(113),char(0),char(55),char(3),char(30), -char(255),char(92),char(0),char(55),char(3),char(31),char(255),char(113),char(0),char(55), -char(3),char(32),char(255),char(92),char(0),char(55),char(3),char(33),char(255),char(113), -char(0),char(55),char(3),char(34),char(255),char(92),char(0),char(55),char(3),char(35), -char(255),char(113),char(0),char(55),char(3),char(37),char(255),char(113),char(0),char(55), -char(3),char(38),char(255),char(92),char(0),char(55),char(3),char(39),char(255),char(113), -char(0),char(55),char(3),char(40),char(255),char(92),char(0),char(55),char(3),char(41), -char(255),char(113),char(0),char(55),char(3),char(42),char(255),char(92),char(0),char(55), -char(3),char(43),char(255),char(113),char(0),char(55),char(3),char(44),char(255),char(92), -char(0),char(55),char(3),char(45),char(255),char(113),char(0),char(55),char(3),char(46), -char(255),char(92),char(0),char(55),char(3),char(47),char(255),char(113),char(0),char(55), -char(3),char(48),char(255),char(92),char(0),char(55),char(3),char(49),char(255),char(113), -char(0),char(55),char(3),char(50),char(255),char(92),char(0),char(55),char(3),char(51), -char(255),char(113),char(0),char(55),char(3),char(52),char(255),char(92),char(0),char(55), -char(3),char(54),char(255),char(113),char(0),char(55),char(3),char(56),char(255),char(113), -char(0),char(55),char(3),char(58),char(255),char(113),char(0),char(55),char(3),char(60), -char(255),char(113),char(0),char(55),char(3),char(64),char(255),char(113),char(0),char(55), -char(3),char(66),char(255),char(113),char(0),char(55),char(3),char(68),char(255),char(113), -char(0),char(55),char(3),char(73),char(255),char(215),char(0),char(55),char(3),char(74), -char(255),char(113),char(0),char(55),char(3),char(75),char(255),char(215),char(0),char(55), -char(3),char(76),char(255),char(113),char(0),char(55),char(3),char(77),char(255),char(215), -char(0),char(55),char(3),char(78),char(255),char(113),char(0),char(55),char(3),char(79), -char(255),char(215),char(0),char(55),char(3),char(81),char(255),char(215),char(0),char(55), -char(3),char(82),char(255),char(113),char(0),char(55),char(3),char(83),char(255),char(215), -char(0),char(55),char(3),char(84),char(255),char(113),char(0),char(55),char(3),char(85), -char(255),char(215),char(0),char(55),char(3),char(86),char(255),char(113),char(0),char(55), -char(3),char(87),char(255),char(215),char(0),char(55),char(3),char(88),char(255),char(113), -char(0),char(55),char(3),char(89),char(255),char(215),char(0),char(55),char(3),char(90), -char(255),char(113),char(0),char(55),char(3),char(91),char(255),char(215),char(0),char(55), -char(3),char(92),char(255),char(113),char(0),char(55),char(3),char(93),char(255),char(215), -char(0),char(55),char(3),char(94),char(255),char(113),char(0),char(55),char(3),char(95), -char(255),char(215),char(0),char(55),char(3),char(96),char(255),char(113),char(0),char(55), -char(3),char(98),char(255),char(154),char(0),char(55),char(3),char(100),char(255),char(154), -char(0),char(55),char(3),char(102),char(255),char(154),char(0),char(55),char(3),char(104), -char(255),char(154),char(0),char(55),char(3),char(106),char(255),char(154),char(0),char(55), -char(3),char(108),char(255),char(154),char(0),char(55),char(3),char(110),char(255),char(154), -char(0),char(55),char(3),char(112),char(255),char(215),char(0),char(55),char(3),char(143), -char(0),char(41),char(0),char(56),char(0),char(15),char(255),char(215),char(0),char(56), -char(0),char(17),char(255),char(215),char(0),char(56),char(0),char(36),char(255),char(236), -char(0),char(56),char(0),char(130),char(255),char(236),char(0),char(56),char(0),char(131), -char(255),char(236),char(0),char(56),char(0),char(132),char(255),char(236),char(0),char(56), -char(0),char(133),char(255),char(236),char(0),char(56),char(0),char(134),char(255),char(236), -char(0),char(56),char(0),char(135),char(255),char(236),char(0),char(56),char(0),char(194), -char(255),char(236),char(0),char(56),char(0),char(196),char(255),char(236),char(0),char(56), -char(0),char(198),char(255),char(236),char(0),char(56),char(1),char(67),char(255),char(236), -char(0),char(56),char(2),char(8),char(255),char(215),char(0),char(56),char(2),char(12), -char(255),char(215),char(0),char(56),char(2),char(88),char(255),char(236),char(0),char(56), -char(3),char(29),char(255),char(236),char(0),char(56),char(3),char(31),char(255),char(236), -char(0),char(56),char(3),char(33),char(255),char(236),char(0),char(56),char(3),char(35), -char(255),char(236),char(0),char(56),char(3),char(37),char(255),char(236),char(0),char(56), -char(3),char(39),char(255),char(236),char(0),char(56),char(3),char(41),char(255),char(236), -char(0),char(56),char(3),char(43),char(255),char(236),char(0),char(56),char(3),char(45), -char(255),char(236),char(0),char(56),char(3),char(47),char(255),char(236),char(0),char(56), -char(3),char(49),char(255),char(236),char(0),char(56),char(3),char(51),char(255),char(236), -char(0),char(57),char(0),char(15),char(255),char(154),char(0),char(57),char(0),char(17), -char(255),char(154),char(0),char(57),char(0),char(34),char(0),char(41),char(0),char(57), -char(0),char(36),char(255),char(174),char(0),char(57),char(0),char(38),char(255),char(236), -char(0),char(57),char(0),char(42),char(255),char(236),char(0),char(57),char(0),char(50), -char(255),char(236),char(0),char(57),char(0),char(52),char(255),char(236),char(0),char(57), -char(0),char(68),char(255),char(215),char(0),char(57),char(0),char(70),char(255),char(215), -char(0),char(57),char(0),char(71),char(255),char(215),char(0),char(57),char(0),char(72), -char(255),char(215),char(0),char(57),char(0),char(74),char(255),char(236),char(0),char(57), -char(0),char(80),char(255),char(236),char(0),char(57),char(0),char(81),char(255),char(236), -char(0),char(57),char(0),char(82),char(255),char(215),char(0),char(57),char(0),char(83), -char(255),char(236),char(0),char(57),char(0),char(84),char(255),char(215),char(0),char(57), -char(0),char(85),char(255),char(236),char(0),char(57),char(0),char(86),char(255),char(236), -char(0),char(57),char(0),char(88),char(255),char(236),char(0),char(57),char(0),char(130), -char(255),char(174),char(0),char(57),char(0),char(131),char(255),char(174),char(0),char(57), -char(0),char(132),char(255),char(174),char(0),char(57),char(0),char(133),char(255),char(174), -char(0),char(57),char(0),char(134),char(255),char(174),char(0),char(57),char(0),char(135), -char(255),char(174),char(0),char(57),char(0),char(137),char(255),char(236),char(0),char(57), -char(0),char(148),char(255),char(236),char(0),char(57),char(0),char(149),char(255),char(236), -char(0),char(57),char(0),char(150),char(255),char(236),char(0),char(57),char(0),char(151), -char(255),char(236),char(0),char(57),char(0),char(152),char(255),char(236),char(0),char(57), -char(0),char(154),char(255),char(236),char(0),char(57),char(0),char(162),char(255),char(215), -char(0),char(57),char(0),char(163),char(255),char(215),char(0),char(57),char(0),char(164), -char(255),char(215),char(0),char(57),char(0),char(165),char(255),char(215),char(0),char(57), -char(0),char(166),char(255),char(215),char(0),char(57),char(0),char(167),char(255),char(215), -char(0),char(57),char(0),char(168),char(255),char(215),char(0),char(57),char(0),char(169), -char(255),char(215),char(0),char(57),char(0),char(170),char(255),char(215),char(0),char(57), -char(0),char(171),char(255),char(215),char(0),char(57),char(0),char(172),char(255),char(215), -char(0),char(57),char(0),char(173),char(255),char(215),char(0),char(57),char(0),char(180), -char(255),char(215),char(0),char(57),char(0),char(181),char(255),char(215),char(0),char(57), -char(0),char(182),char(255),char(215),char(0),char(57),char(0),char(183),char(255),char(215), -char(0),char(57),char(0),char(184),char(255),char(215),char(0),char(57),char(0),char(186), -char(255),char(215),char(0),char(57),char(0),char(187),char(255),char(236),char(0),char(57), -char(0),char(188),char(255),char(236),char(0),char(57),char(0),char(189),char(255),char(236), -char(0),char(57),char(0),char(190),char(255),char(236),char(0),char(57),char(0),char(194), -char(255),char(174),char(0),char(57),char(0),char(195),char(255),char(215),char(0),char(57), -char(0),char(196),char(255),char(174),char(0),char(57),char(0),char(197),char(255),char(215), -char(0),char(57),char(0),char(198),char(255),char(174),char(0),char(57),char(0),char(199), -char(255),char(215),char(0),char(57),char(0),char(200),char(255),char(236),char(0),char(57), -char(0),char(201),char(255),char(215),char(0),char(57),char(0),char(202),char(255),char(236), -char(0),char(57),char(0),char(203),char(255),char(215),char(0),char(57),char(0),char(204), -char(255),char(236),char(0),char(57),char(0),char(205),char(255),char(215),char(0),char(57), -char(0),char(206),char(255),char(236),char(0),char(57),char(0),char(207),char(255),char(215), -char(0),char(57),char(0),char(209),char(255),char(215),char(0),char(57),char(0),char(211), -char(255),char(215),char(0),char(57),char(0),char(213),char(255),char(215),char(0),char(57), -char(0),char(215),char(255),char(215),char(0),char(57),char(0),char(217),char(255),char(215), -char(0),char(57),char(0),char(219),char(255),char(215),char(0),char(57),char(0),char(221), -char(255),char(215),char(0),char(57),char(0),char(222),char(255),char(236),char(0),char(57), -char(0),char(223),char(255),char(236),char(0),char(57),char(0),char(224),char(255),char(236), -char(0),char(57),char(0),char(225),char(255),char(236),char(0),char(57),char(0),char(226), -char(255),char(236),char(0),char(57),char(0),char(227),char(255),char(236),char(0),char(57), -char(0),char(228),char(255),char(236),char(0),char(57),char(0),char(229),char(255),char(236), -char(0),char(57),char(0),char(250),char(255),char(236),char(0),char(57),char(1),char(6), -char(255),char(236),char(0),char(57),char(1),char(8),char(255),char(236),char(0),char(57), -char(1),char(13),char(255),char(236),char(0),char(57),char(1),char(14),char(255),char(236), -char(0),char(57),char(1),char(15),char(255),char(215),char(0),char(57),char(1),char(16), -char(255),char(236),char(0),char(57),char(1),char(17),char(255),char(215),char(0),char(57), -char(1),char(18),char(255),char(236),char(0),char(57),char(1),char(19),char(255),char(215), -char(0),char(57),char(1),char(20),char(255),char(236),char(0),char(57),char(1),char(21), -char(255),char(215),char(0),char(57),char(1),char(23),char(255),char(236),char(0),char(57), -char(1),char(25),char(255),char(236),char(0),char(57),char(1),char(29),char(255),char(236), -char(0),char(57),char(1),char(33),char(255),char(236),char(0),char(57),char(1),char(43), -char(255),char(236),char(0),char(57),char(1),char(45),char(255),char(236),char(0),char(57), -char(1),char(47),char(255),char(236),char(0),char(57),char(1),char(49),char(255),char(236), -char(0),char(57),char(1),char(51),char(255),char(236),char(0),char(57),char(1),char(53), -char(255),char(236),char(0),char(57),char(1),char(67),char(255),char(174),char(0),char(57), -char(1),char(68),char(255),char(215),char(0),char(57),char(1),char(70),char(255),char(215), -char(0),char(57),char(1),char(71),char(255),char(236),char(0),char(57),char(1),char(72), -char(255),char(215),char(0),char(57),char(1),char(74),char(255),char(236),char(0),char(57), -char(2),char(8),char(255),char(154),char(0),char(57),char(2),char(12),char(255),char(154), -char(0),char(57),char(2),char(87),char(255),char(236),char(0),char(57),char(2),char(88), -char(255),char(174),char(0),char(57),char(2),char(89),char(255),char(215),char(0),char(57), -char(2),char(95),char(255),char(236),char(0),char(57),char(2),char(96),char(255),char(215), -char(0),char(57),char(2),char(98),char(255),char(236),char(0),char(57),char(3),char(29), -char(255),char(174),char(0),char(57),char(3),char(30),char(255),char(215),char(0),char(57), -char(3),char(31),char(255),char(174),char(0),char(57),char(3),char(32),char(255),char(215), -char(0),char(57),char(3),char(33),char(255),char(174),char(0),char(57),char(3),char(34), -char(255),char(215),char(0),char(57),char(3),char(35),char(255),char(174),char(0),char(57), -char(3),char(37),char(255),char(174),char(0),char(57),char(3),char(38),char(255),char(215), -char(0),char(57),char(3),char(39),char(255),char(174),char(0),char(57),char(3),char(40), -char(255),char(215),char(0),char(57),char(3),char(41),char(255),char(174),char(0),char(57), -char(3),char(42),char(255),char(215),char(0),char(57),char(3),char(43),char(255),char(174), -char(0),char(57),char(3),char(44),char(255),char(215),char(0),char(57),char(3),char(45), -char(255),char(174),char(0),char(57),char(3),char(46),char(255),char(215),char(0),char(57), -char(3),char(47),char(255),char(174),char(0),char(57),char(3),char(48),char(255),char(215), -char(0),char(57),char(3),char(49),char(255),char(174),char(0),char(57),char(3),char(50), -char(255),char(215),char(0),char(57),char(3),char(51),char(255),char(174),char(0),char(57), -char(3),char(52),char(255),char(215),char(0),char(57),char(3),char(54),char(255),char(215), -char(0),char(57),char(3),char(56),char(255),char(215),char(0),char(57),char(3),char(58), -char(255),char(215),char(0),char(57),char(3),char(60),char(255),char(215),char(0),char(57), -char(3),char(64),char(255),char(215),char(0),char(57),char(3),char(66),char(255),char(215), -char(0),char(57),char(3),char(68),char(255),char(215),char(0),char(57),char(3),char(73), -char(255),char(236),char(0),char(57),char(3),char(74),char(255),char(215),char(0),char(57), -char(3),char(75),char(255),char(236),char(0),char(57),char(3),char(76),char(255),char(215), -char(0),char(57),char(3),char(77),char(255),char(236),char(0),char(57),char(3),char(78), -char(255),char(215),char(0),char(57),char(3),char(79),char(255),char(236),char(0),char(57), -char(3),char(81),char(255),char(236),char(0),char(57),char(3),char(82),char(255),char(215), -char(0),char(57),char(3),char(83),char(255),char(236),char(0),char(57),char(3),char(84), -char(255),char(215),char(0),char(57),char(3),char(85),char(255),char(236),char(0),char(57), -char(3),char(86),char(255),char(215),char(0),char(57),char(3),char(87),char(255),char(236), -char(0),char(57),char(3),char(88),char(255),char(215),char(0),char(57),char(3),char(89), -char(255),char(236),char(0),char(57),char(3),char(90),char(255),char(215),char(0),char(57), -char(3),char(91),char(255),char(236),char(0),char(57),char(3),char(92),char(255),char(215), -char(0),char(57),char(3),char(93),char(255),char(236),char(0),char(57),char(3),char(94), -char(255),char(215),char(0),char(57),char(3),char(95),char(255),char(236),char(0),char(57), -char(3),char(96),char(255),char(215),char(0),char(57),char(3),char(98),char(255),char(236), -char(0),char(57),char(3),char(100),char(255),char(236),char(0),char(57),char(3),char(102), -char(255),char(236),char(0),char(57),char(3),char(104),char(255),char(236),char(0),char(57), -char(3),char(106),char(255),char(236),char(0),char(57),char(3),char(108),char(255),char(236), -char(0),char(57),char(3),char(110),char(255),char(236),char(0),char(58),char(0),char(15), -char(255),char(154),char(0),char(58),char(0),char(17),char(255),char(154),char(0),char(58), -char(0),char(34),char(0),char(41),char(0),char(58),char(0),char(36),char(255),char(174), -char(0),char(58),char(0),char(38),char(255),char(236),char(0),char(58),char(0),char(42), -char(255),char(236),char(0),char(58),char(0),char(50),char(255),char(236),char(0),char(58), -char(0),char(52),char(255),char(236),char(0),char(58),char(0),char(68),char(255),char(215), -char(0),char(58),char(0),char(70),char(255),char(215),char(0),char(58),char(0),char(71), -char(255),char(215),char(0),char(58),char(0),char(72),char(255),char(215),char(0),char(58), -char(0),char(74),char(255),char(236),char(0),char(58),char(0),char(80),char(255),char(236), -char(0),char(58),char(0),char(81),char(255),char(236),char(0),char(58),char(0),char(82), -char(255),char(215),char(0),char(58),char(0),char(83),char(255),char(236),char(0),char(58), -char(0),char(84),char(255),char(215),char(0),char(58),char(0),char(85),char(255),char(236), -char(0),char(58),char(0),char(86),char(255),char(236),char(0),char(58),char(0),char(88), -char(255),char(236),char(0),char(58),char(0),char(130),char(255),char(174),char(0),char(58), -char(0),char(131),char(255),char(174),char(0),char(58),char(0),char(132),char(255),char(174), -char(0),char(58),char(0),char(133),char(255),char(174),char(0),char(58),char(0),char(134), -char(255),char(174),char(0),char(58),char(0),char(135),char(255),char(174),char(0),char(58), -char(0),char(137),char(255),char(236),char(0),char(58),char(0),char(148),char(255),char(236), -char(0),char(58),char(0),char(149),char(255),char(236),char(0),char(58),char(0),char(150), -char(255),char(236),char(0),char(58),char(0),char(151),char(255),char(236),char(0),char(58), -char(0),char(152),char(255),char(236),char(0),char(58),char(0),char(154),char(255),char(236), -char(0),char(58),char(0),char(162),char(255),char(215),char(0),char(58),char(0),char(163), -char(255),char(215),char(0),char(58),char(0),char(164),char(255),char(215),char(0),char(58), -char(0),char(165),char(255),char(215),char(0),char(58),char(0),char(166),char(255),char(215), -char(0),char(58),char(0),char(167),char(255),char(215),char(0),char(58),char(0),char(168), -char(255),char(215),char(0),char(58),char(0),char(169),char(255),char(215),char(0),char(58), -char(0),char(170),char(255),char(215),char(0),char(58),char(0),char(171),char(255),char(215), -char(0),char(58),char(0),char(172),char(255),char(215),char(0),char(58),char(0),char(173), -char(255),char(215),char(0),char(58),char(0),char(180),char(255),char(215),char(0),char(58), -char(0),char(181),char(255),char(215),char(0),char(58),char(0),char(182),char(255),char(215), -char(0),char(58),char(0),char(183),char(255),char(215),char(0),char(58),char(0),char(184), -char(255),char(215),char(0),char(58),char(0),char(186),char(255),char(215),char(0),char(58), -char(0),char(187),char(255),char(236),char(0),char(58),char(0),char(188),char(255),char(236), -char(0),char(58),char(0),char(189),char(255),char(236),char(0),char(58),char(0),char(190), -char(255),char(236),char(0),char(58),char(0),char(194),char(255),char(174),char(0),char(58), -char(0),char(195),char(255),char(215),char(0),char(58),char(0),char(196),char(255),char(174), -char(0),char(58),char(0),char(197),char(255),char(215),char(0),char(58),char(0),char(198), -char(255),char(174),char(0),char(58),char(0),char(199),char(255),char(215),char(0),char(58), -char(0),char(200),char(255),char(236),char(0),char(58),char(0),char(201),char(255),char(215), -char(0),char(58),char(0),char(202),char(255),char(236),char(0),char(58),char(0),char(203), -char(255),char(215),char(0),char(58),char(0),char(204),char(255),char(236),char(0),char(58), -char(0),char(205),char(255),char(215),char(0),char(58),char(0),char(206),char(255),char(236), -char(0),char(58),char(0),char(207),char(255),char(215),char(0),char(58),char(0),char(209), -char(255),char(215),char(0),char(58),char(0),char(211),char(255),char(215),char(0),char(58), -char(0),char(213),char(255),char(215),char(0),char(58),char(0),char(215),char(255),char(215), -char(0),char(58),char(0),char(217),char(255),char(215),char(0),char(58),char(0),char(219), -char(255),char(215),char(0),char(58),char(0),char(221),char(255),char(215),char(0),char(58), -char(0),char(222),char(255),char(236),char(0),char(58),char(0),char(223),char(255),char(236), -char(0),char(58),char(0),char(224),char(255),char(236),char(0),char(58),char(0),char(225), -char(255),char(236),char(0),char(58),char(0),char(226),char(255),char(236),char(0),char(58), -char(0),char(227),char(255),char(236),char(0),char(58),char(0),char(228),char(255),char(236), -char(0),char(58),char(0),char(229),char(255),char(236),char(0),char(58),char(0),char(250), -char(255),char(236),char(0),char(58),char(1),char(6),char(255),char(236),char(0),char(58), -char(1),char(8),char(255),char(236),char(0),char(58),char(1),char(13),char(255),char(236), -char(0),char(58),char(1),char(14),char(255),char(236),char(0),char(58),char(1),char(15), -char(255),char(215),char(0),char(58),char(1),char(16),char(255),char(236),char(0),char(58), -char(1),char(17),char(255),char(215),char(0),char(58),char(1),char(18),char(255),char(236), -char(0),char(58),char(1),char(19),char(255),char(215),char(0),char(58),char(1),char(20), -char(255),char(236),char(0),char(58),char(1),char(21),char(255),char(215),char(0),char(58), -char(1),char(23),char(255),char(236),char(0),char(58),char(1),char(25),char(255),char(236), -char(0),char(58),char(1),char(29),char(255),char(236),char(0),char(58),char(1),char(33), -char(255),char(236),char(0),char(58),char(1),char(43),char(255),char(236),char(0),char(58), -char(1),char(45),char(255),char(236),char(0),char(58),char(1),char(47),char(255),char(236), -char(0),char(58),char(1),char(49),char(255),char(236),char(0),char(58),char(1),char(51), -char(255),char(236),char(0),char(58),char(1),char(53),char(255),char(236),char(0),char(58), -char(1),char(67),char(255),char(174),char(0),char(58),char(1),char(68),char(255),char(215), -char(0),char(58),char(1),char(70),char(255),char(215),char(0),char(58),char(1),char(71), -char(255),char(236),char(0),char(58),char(1),char(72),char(255),char(215),char(0),char(58), -char(1),char(74),char(255),char(236),char(0),char(58),char(2),char(8),char(255),char(154), -char(0),char(58),char(2),char(12),char(255),char(154),char(0),char(58),char(2),char(87), -char(255),char(236),char(0),char(58),char(2),char(88),char(255),char(174),char(0),char(58), -char(2),char(89),char(255),char(215),char(0),char(58),char(2),char(95),char(255),char(236), -char(0),char(58),char(2),char(96),char(255),char(215),char(0),char(58),char(2),char(98), -char(255),char(236),char(0),char(58),char(3),char(29),char(255),char(174),char(0),char(58), -char(3),char(30),char(255),char(215),char(0),char(58),char(3),char(31),char(255),char(174), -char(0),char(58),char(3),char(32),char(255),char(215),char(0),char(58),char(3),char(33), -char(255),char(174),char(0),char(58),char(3),char(34),char(255),char(215),char(0),char(58), -char(3),char(35),char(255),char(174),char(0),char(58),char(3),char(37),char(255),char(174), -char(0),char(58),char(3),char(38),char(255),char(215),char(0),char(58),char(3),char(39), -char(255),char(174),char(0),char(58),char(3),char(40),char(255),char(215),char(0),char(58), -char(3),char(41),char(255),char(174),char(0),char(58),char(3),char(42),char(255),char(215), -char(0),char(58),char(3),char(43),char(255),char(174),char(0),char(58),char(3),char(44), -char(255),char(215),char(0),char(58),char(3),char(45),char(255),char(174),char(0),char(58), -char(3),char(46),char(255),char(215),char(0),char(58),char(3),char(47),char(255),char(174), -char(0),char(58),char(3),char(48),char(255),char(215),char(0),char(58),char(3),char(49), -char(255),char(174),char(0),char(58),char(3),char(50),char(255),char(215),char(0),char(58), -char(3),char(51),char(255),char(174),char(0),char(58),char(3),char(52),char(255),char(215), -char(0),char(58),char(3),char(54),char(255),char(215),char(0),char(58),char(3),char(56), -char(255),char(215),char(0),char(58),char(3),char(58),char(255),char(215),char(0),char(58), -char(3),char(60),char(255),char(215),char(0),char(58),char(3),char(64),char(255),char(215), -char(0),char(58),char(3),char(66),char(255),char(215),char(0),char(58),char(3),char(68), -char(255),char(215),char(0),char(58),char(3),char(73),char(255),char(236),char(0),char(58), -char(3),char(74),char(255),char(215),char(0),char(58),char(3),char(75),char(255),char(236), -char(0),char(58),char(3),char(76),char(255),char(215),char(0),char(58),char(3),char(77), -char(255),char(236),char(0),char(58),char(3),char(78),char(255),char(215),char(0),char(58), -char(3),char(79),char(255),char(236),char(0),char(58),char(3),char(81),char(255),char(236), -char(0),char(58),char(3),char(82),char(255),char(215),char(0),char(58),char(3),char(83), -char(255),char(236),char(0),char(58),char(3),char(84),char(255),char(215),char(0),char(58), -char(3),char(85),char(255),char(236),char(0),char(58),char(3),char(86),char(255),char(215), -char(0),char(58),char(3),char(87),char(255),char(236),char(0),char(58),char(3),char(88), -char(255),char(215),char(0),char(58),char(3),char(89),char(255),char(236),char(0),char(58), -char(3),char(90),char(255),char(215),char(0),char(58),char(3),char(91),char(255),char(236), -char(0),char(58),char(3),char(92),char(255),char(215),char(0),char(58),char(3),char(93), -char(255),char(236),char(0),char(58),char(3),char(94),char(255),char(215),char(0),char(58), -char(3),char(95),char(255),char(236),char(0),char(58),char(3),char(96),char(255),char(215), -char(0),char(58),char(3),char(98),char(255),char(236),char(0),char(58),char(3),char(100), -char(255),char(236),char(0),char(58),char(3),char(102),char(255),char(236),char(0),char(58), -char(3),char(104),char(255),char(236),char(0),char(58),char(3),char(106),char(255),char(236), -char(0),char(58),char(3),char(108),char(255),char(236),char(0),char(58),char(3),char(110), -char(255),char(236),char(0),char(59),char(0),char(38),char(255),char(215),char(0),char(59), -char(0),char(42),char(255),char(215),char(0),char(59),char(0),char(50),char(255),char(215), -char(0),char(59),char(0),char(52),char(255),char(215),char(0),char(59),char(0),char(137), -char(255),char(215),char(0),char(59),char(0),char(148),char(255),char(215),char(0),char(59), -char(0),char(149),char(255),char(215),char(0),char(59),char(0),char(150),char(255),char(215), -char(0),char(59),char(0),char(151),char(255),char(215),char(0),char(59),char(0),char(152), -char(255),char(215),char(0),char(59),char(0),char(154),char(255),char(215),char(0),char(59), -char(0),char(200),char(255),char(215),char(0),char(59),char(0),char(202),char(255),char(215), -char(0),char(59),char(0),char(204),char(255),char(215),char(0),char(59),char(0),char(206), -char(255),char(215),char(0),char(59),char(0),char(222),char(255),char(215),char(0),char(59), -char(0),char(224),char(255),char(215),char(0),char(59),char(0),char(226),char(255),char(215), -char(0),char(59),char(0),char(228),char(255),char(215),char(0),char(59),char(1),char(14), -char(255),char(215),char(0),char(59),char(1),char(16),char(255),char(215),char(0),char(59), -char(1),char(18),char(255),char(215),char(0),char(59),char(1),char(20),char(255),char(215), -char(0),char(59),char(1),char(71),char(255),char(215),char(0),char(59),char(2),char(95), -char(255),char(215),char(0),char(59),char(3),char(73),char(255),char(215),char(0),char(59), -char(3),char(75),char(255),char(215),char(0),char(59),char(3),char(77),char(255),char(215), -char(0),char(59),char(3),char(79),char(255),char(215),char(0),char(59),char(3),char(81), -char(255),char(215),char(0),char(59),char(3),char(83),char(255),char(215),char(0),char(59), -char(3),char(85),char(255),char(215),char(0),char(59),char(3),char(87),char(255),char(215), -char(0),char(59),char(3),char(89),char(255),char(215),char(0),char(59),char(3),char(91), -char(255),char(215),char(0),char(59),char(3),char(93),char(255),char(215),char(0),char(59), -char(3),char(95),char(255),char(215),char(0),char(60),char(0),char(15),char(255),char(133), -char(0),char(60),char(0),char(17),char(255),char(133),char(0),char(60),char(0),char(34), -char(0),char(41),char(0),char(60),char(0),char(36),char(255),char(133),char(0),char(60), -char(0),char(38),char(255),char(215),char(0),char(60),char(0),char(42),char(255),char(215), -char(0),char(60),char(0),char(50),char(255),char(215),char(0),char(60),char(0),char(52), -char(255),char(215),char(0),char(60),char(0),char(68),char(255),char(154),char(0),char(60), -char(0),char(70),char(255),char(154),char(0),char(60),char(0),char(71),char(255),char(154), -char(0),char(60),char(0),char(72),char(255),char(154),char(0),char(60),char(0),char(74), -char(255),char(215),char(0),char(60),char(0),char(80),char(255),char(195),char(0),char(60), -char(0),char(81),char(255),char(195),char(0),char(60),char(0),char(82),char(255),char(154), -char(0),char(60),char(0),char(83),char(255),char(195),char(0),char(60),char(0),char(84), -char(255),char(154),char(0),char(60),char(0),char(85),char(255),char(195),char(0),char(60), -char(0),char(86),char(255),char(174),char(0),char(60),char(0),char(88),char(255),char(195), -char(0),char(60),char(0),char(93),char(255),char(215),char(0),char(60),char(0),char(130), -char(255),char(133),char(0),char(60),char(0),char(131),char(255),char(133),char(0),char(60), -char(0),char(132),char(255),char(133),char(0),char(60),char(0),char(133),char(255),char(133), -char(0),char(60),char(0),char(134),char(255),char(133),char(0),char(60),char(0),char(135), -char(255),char(133),char(0),char(60),char(0),char(137),char(255),char(215),char(0),char(60), -char(0),char(148),char(255),char(215),char(0),char(60),char(0),char(149),char(255),char(215), -char(0),char(60),char(0),char(150),char(255),char(215),char(0),char(60),char(0),char(151), -char(255),char(215),char(0),char(60),char(0),char(152),char(255),char(215),char(0),char(60), -char(0),char(154),char(255),char(215),char(0),char(60),char(0),char(162),char(255),char(154), -char(0),char(60),char(0),char(163),char(255),char(154),char(0),char(60),char(0),char(164), -char(255),char(154),char(0),char(60),char(0),char(165),char(255),char(154),char(0),char(60), -char(0),char(166),char(255),char(154),char(0),char(60),char(0),char(167),char(255),char(154), -char(0),char(60),char(0),char(168),char(255),char(154),char(0),char(60),char(0),char(169), -char(255),char(154),char(0),char(60),char(0),char(170),char(255),char(154),char(0),char(60), -char(0),char(171),char(255),char(154),char(0),char(60),char(0),char(172),char(255),char(154), -char(0),char(60),char(0),char(173),char(255),char(154),char(0),char(60),char(0),char(180), -char(255),char(154),char(0),char(60),char(0),char(181),char(255),char(154),char(0),char(60), -char(0),char(182),char(255),char(154),char(0),char(60),char(0),char(183),char(255),char(154), -char(0),char(60),char(0),char(184),char(255),char(154),char(0),char(60),char(0),char(186), -char(255),char(154),char(0),char(60),char(0),char(187),char(255),char(195),char(0),char(60), -char(0),char(188),char(255),char(195),char(0),char(60),char(0),char(189),char(255),char(195), -char(0),char(60),char(0),char(190),char(255),char(195),char(0),char(60),char(0),char(194), -char(255),char(133),char(0),char(60),char(0),char(195),char(255),char(154),char(0),char(60), -char(0),char(196),char(255),char(133),char(0),char(60),char(0),char(197),char(255),char(154), -char(0),char(60),char(0),char(198),char(255),char(133),char(0),char(60),char(0),char(199), -char(255),char(154),char(0),char(60),char(0),char(200),char(255),char(215),char(0),char(60), -char(0),char(201),char(255),char(154),char(0),char(60),char(0),char(202),char(255),char(215), -char(0),char(60),char(0),char(203),char(255),char(154),char(0),char(60),char(0),char(204), -char(255),char(215),char(0),char(60),char(0),char(205),char(255),char(154),char(0),char(60), -char(0),char(206),char(255),char(215),char(0),char(60),char(0),char(207),char(255),char(154), -char(0),char(60),char(0),char(209),char(255),char(154),char(0),char(60),char(0),char(211), -char(255),char(154),char(0),char(60),char(0),char(213),char(255),char(154),char(0),char(60), -char(0),char(215),char(255),char(154),char(0),char(60),char(0),char(217),char(255),char(154), -char(0),char(60),char(0),char(219),char(255),char(154),char(0),char(60),char(0),char(221), -char(255),char(154),char(0),char(60),char(0),char(222),char(255),char(215),char(0),char(60), -char(0),char(223),char(255),char(215),char(0),char(60),char(0),char(224),char(255),char(215), -char(0),char(60),char(0),char(225),char(255),char(215),char(0),char(60),char(0),char(226), -char(255),char(215),char(0),char(60),char(0),char(227),char(255),char(215),char(0),char(60), -char(0),char(228),char(255),char(215),char(0),char(60),char(0),char(229),char(255),char(215), -char(0),char(60),char(0),char(250),char(255),char(195),char(0),char(60),char(1),char(6), -char(255),char(195),char(0),char(60),char(1),char(8),char(255),char(195),char(0),char(60), -char(1),char(13),char(255),char(195),char(0),char(60),char(1),char(14),char(255),char(215), -char(0),char(60),char(1),char(15),char(255),char(154),char(0),char(60),char(1),char(16), -char(255),char(215),char(0),char(60),char(1),char(17),char(255),char(154),char(0),char(60), -char(1),char(18),char(255),char(215),char(0),char(60),char(1),char(19),char(255),char(154), -char(0),char(60),char(1),char(20),char(255),char(215),char(0),char(60),char(1),char(21), -char(255),char(154),char(0),char(60),char(1),char(23),char(255),char(195),char(0),char(60), -char(1),char(25),char(255),char(195),char(0),char(60),char(1),char(29),char(255),char(174), -char(0),char(60),char(1),char(33),char(255),char(174),char(0),char(60),char(1),char(43), -char(255),char(195),char(0),char(60),char(1),char(45),char(255),char(195),char(0),char(60), -char(1),char(47),char(255),char(195),char(0),char(60),char(1),char(49),char(255),char(195), -char(0),char(60),char(1),char(51),char(255),char(195),char(0),char(60),char(1),char(53), -char(255),char(195),char(0),char(60),char(1),char(60),char(255),char(215),char(0),char(60), -char(1),char(62),char(255),char(215),char(0),char(60),char(1),char(64),char(255),char(215), -char(0),char(60),char(1),char(67),char(255),char(133),char(0),char(60),char(1),char(68), -char(255),char(154),char(0),char(60),char(1),char(70),char(255),char(154),char(0),char(60), -char(1),char(71),char(255),char(215),char(0),char(60),char(1),char(72),char(255),char(154), -char(0),char(60),char(1),char(74),char(255),char(174),char(0),char(60),char(2),char(8), -char(255),char(133),char(0),char(60),char(2),char(12),char(255),char(133),char(0),char(60), -char(2),char(87),char(255),char(195),char(0),char(60),char(2),char(88),char(255),char(133), -char(0),char(60),char(2),char(89),char(255),char(154),char(0),char(60),char(2),char(95), -char(255),char(215),char(0),char(60),char(2),char(96),char(255),char(154),char(0),char(60), -char(2),char(98),char(255),char(195),char(0),char(60),char(3),char(29),char(255),char(133), -char(0),char(60),char(3),char(30),char(255),char(154),char(0),char(60),char(3),char(31), -char(255),char(133),char(0),char(60),char(3),char(32),char(255),char(154),char(0),char(60), -char(3),char(33),char(255),char(133),char(0),char(60),char(3),char(34),char(255),char(154), -char(0),char(60),char(3),char(35),char(255),char(133),char(0),char(60),char(3),char(37), -char(255),char(133),char(0),char(60),char(3),char(38),char(255),char(154),char(0),char(60), -char(3),char(39),char(255),char(133),char(0),char(60),char(3),char(40),char(255),char(154), -char(0),char(60),char(3),char(41),char(255),char(133),char(0),char(60),char(3),char(42), -char(255),char(154),char(0),char(60),char(3),char(43),char(255),char(133),char(0),char(60), -char(3),char(44),char(255),char(154),char(0),char(60),char(3),char(45),char(255),char(133), -char(0),char(60),char(3),char(46),char(255),char(154),char(0),char(60),char(3),char(47), -char(255),char(133),char(0),char(60),char(3),char(48),char(255),char(154),char(0),char(60), -char(3),char(49),char(255),char(133),char(0),char(60),char(3),char(50),char(255),char(154), -char(0),char(60),char(3),char(51),char(255),char(133),char(0),char(60),char(3),char(52), -char(255),char(154),char(0),char(60),char(3),char(54),char(255),char(154),char(0),char(60), -char(3),char(56),char(255),char(154),char(0),char(60),char(3),char(58),char(255),char(154), -char(0),char(60),char(3),char(60),char(255),char(154),char(0),char(60),char(3),char(64), -char(255),char(154),char(0),char(60),char(3),char(66),char(255),char(154),char(0),char(60), -char(3),char(68),char(255),char(154),char(0),char(60),char(3),char(73),char(255),char(215), -char(0),char(60),char(3),char(74),char(255),char(154),char(0),char(60),char(3),char(75), -char(255),char(215),char(0),char(60),char(3),char(76),char(255),char(154),char(0),char(60), -char(3),char(77),char(255),char(215),char(0),char(60),char(3),char(78),char(255),char(154), -char(0),char(60),char(3),char(79),char(255),char(215),char(0),char(60),char(3),char(81), -char(255),char(215),char(0),char(60),char(3),char(82),char(255),char(154),char(0),char(60), -char(3),char(83),char(255),char(215),char(0),char(60),char(3),char(84),char(255),char(154), -char(0),char(60),char(3),char(85),char(255),char(215),char(0),char(60),char(3),char(86), -char(255),char(154),char(0),char(60),char(3),char(87),char(255),char(215),char(0),char(60), -char(3),char(88),char(255),char(154),char(0),char(60),char(3),char(89),char(255),char(215), -char(0),char(60),char(3),char(90),char(255),char(154),char(0),char(60),char(3),char(91), -char(255),char(215),char(0),char(60),char(3),char(92),char(255),char(154),char(0),char(60), -char(3),char(93),char(255),char(215),char(0),char(60),char(3),char(94),char(255),char(154), -char(0),char(60),char(3),char(95),char(255),char(215),char(0),char(60),char(3),char(96), -char(255),char(154),char(0),char(60),char(3),char(98),char(255),char(195),char(0),char(60), -char(3),char(100),char(255),char(195),char(0),char(60),char(3),char(102),char(255),char(195), -char(0),char(60),char(3),char(104),char(255),char(195),char(0),char(60),char(3),char(106), -char(255),char(195),char(0),char(60),char(3),char(108),char(255),char(195),char(0),char(60), -char(3),char(110),char(255),char(195),char(0),char(61),char(0),char(38),char(255),char(236), -char(0),char(61),char(0),char(42),char(255),char(236),char(0),char(61),char(0),char(50), -char(255),char(236),char(0),char(61),char(0),char(52),char(255),char(236),char(0),char(61), -char(0),char(137),char(255),char(236),char(0),char(61),char(0),char(148),char(255),char(236), -char(0),char(61),char(0),char(149),char(255),char(236),char(0),char(61),char(0),char(150), -char(255),char(236),char(0),char(61),char(0),char(151),char(255),char(236),char(0),char(61), -char(0),char(152),char(255),char(236),char(0),char(61),char(0),char(154),char(255),char(236), -char(0),char(61),char(0),char(200),char(255),char(236),char(0),char(61),char(0),char(202), -char(255),char(236),char(0),char(61),char(0),char(204),char(255),char(236),char(0),char(61), -char(0),char(206),char(255),char(236),char(0),char(61),char(0),char(222),char(255),char(236), -char(0),char(61),char(0),char(224),char(255),char(236),char(0),char(61),char(0),char(226), -char(255),char(236),char(0),char(61),char(0),char(228),char(255),char(236),char(0),char(61), -char(1),char(14),char(255),char(236),char(0),char(61),char(1),char(16),char(255),char(236), -char(0),char(61),char(1),char(18),char(255),char(236),char(0),char(61),char(1),char(20), -char(255),char(236),char(0),char(61),char(1),char(71),char(255),char(236),char(0),char(61), -char(2),char(95),char(255),char(236),char(0),char(61),char(3),char(73),char(255),char(236), -char(0),char(61),char(3),char(75),char(255),char(236),char(0),char(61),char(3),char(77), -char(255),char(236),char(0),char(61),char(3),char(79),char(255),char(236),char(0),char(61), -char(3),char(81),char(255),char(236),char(0),char(61),char(3),char(83),char(255),char(236), -char(0),char(61),char(3),char(85),char(255),char(236),char(0),char(61),char(3),char(87), -char(255),char(236),char(0),char(61),char(3),char(89),char(255),char(236),char(0),char(61), -char(3),char(91),char(255),char(236),char(0),char(61),char(3),char(93),char(255),char(236), -char(0),char(61),char(3),char(95),char(255),char(236),char(0),char(62),char(0),char(45), -char(0),char(184),char(0),char(68),char(0),char(5),char(255),char(236),char(0),char(68), -char(0),char(10),char(255),char(236),char(0),char(68),char(2),char(7),char(255),char(236), -char(0),char(68),char(2),char(11),char(255),char(236),char(0),char(69),char(0),char(5), -char(255),char(236),char(0),char(69),char(0),char(10),char(255),char(236),char(0),char(69), -char(0),char(89),char(255),char(215),char(0),char(69),char(0),char(90),char(255),char(215), -char(0),char(69),char(0),char(91),char(255),char(215),char(0),char(69),char(0),char(92), -char(255),char(215),char(0),char(69),char(0),char(93),char(255),char(236),char(0),char(69), -char(0),char(191),char(255),char(215),char(0),char(69),char(1),char(55),char(255),char(215), -char(0),char(69),char(1),char(60),char(255),char(236),char(0),char(69),char(1),char(62), -char(255),char(236),char(0),char(69),char(1),char(64),char(255),char(236),char(0),char(69), -char(1),char(251),char(255),char(215),char(0),char(69),char(1),char(253),char(255),char(215), -char(0),char(69),char(2),char(7),char(255),char(236),char(0),char(69),char(2),char(11), -char(255),char(236),char(0),char(69),char(3),char(112),char(255),char(215),char(0),char(70), -char(0),char(5),char(0),char(41),char(0),char(70),char(0),char(10),char(0),char(41), -char(0),char(70),char(2),char(7),char(0),char(41),char(0),char(70),char(2),char(11), -char(0),char(41),char(0),char(72),char(0),char(5),char(255),char(236),char(0),char(72), -char(0),char(10),char(255),char(236),char(0),char(72),char(0),char(89),char(255),char(215), -char(0),char(72),char(0),char(90),char(255),char(215),char(0),char(72),char(0),char(91), -char(255),char(215),char(0),char(72),char(0),char(92),char(255),char(215),char(0),char(72), -char(0),char(93),char(255),char(236),char(0),char(72),char(0),char(191),char(255),char(215), -char(0),char(72),char(1),char(55),char(255),char(215),char(0),char(72),char(1),char(60), -char(255),char(236),char(0),char(72),char(1),char(62),char(255),char(236),char(0),char(72), -char(1),char(64),char(255),char(236),char(0),char(72),char(1),char(251),char(255),char(215), -char(0),char(72),char(1),char(253),char(255),char(215),char(0),char(72),char(2),char(7), -char(255),char(236),char(0),char(72),char(2),char(11),char(255),char(236),char(0),char(72), -char(3),char(112),char(255),char(215),char(0),char(73),char(0),char(5),char(0),char(123), -char(0),char(73),char(0),char(10),char(0),char(123),char(0),char(73),char(2),char(7), -char(0),char(123),char(0),char(73),char(2),char(11),char(0),char(123),char(0),char(75), -char(0),char(5),char(255),char(236),char(0),char(75),char(0),char(10),char(255),char(236), -char(0),char(75),char(2),char(7),char(255),char(236),char(0),char(75),char(2),char(11), -char(255),char(236),char(0),char(78),char(0),char(70),char(255),char(215),char(0),char(78), -char(0),char(71),char(255),char(215),char(0),char(78),char(0),char(72),char(255),char(215), -char(0),char(78),char(0),char(82),char(255),char(215),char(0),char(78),char(0),char(84), -char(255),char(215),char(0),char(78),char(0),char(162),char(255),char(215),char(0),char(78), -char(0),char(169),char(255),char(215),char(0),char(78),char(0),char(170),char(255),char(215), -char(0),char(78),char(0),char(171),char(255),char(215),char(0),char(78),char(0),char(172), -char(255),char(215),char(0),char(78),char(0),char(173),char(255),char(215),char(0),char(78), -char(0),char(180),char(255),char(215),char(0),char(78),char(0),char(181),char(255),char(215), -char(0),char(78),char(0),char(182),char(255),char(215),char(0),char(78),char(0),char(183), -char(255),char(215),char(0),char(78),char(0),char(184),char(255),char(215),char(0),char(78), -char(0),char(186),char(255),char(215),char(0),char(78),char(0),char(201),char(255),char(215), -char(0),char(78),char(0),char(203),char(255),char(215),char(0),char(78),char(0),char(205), -char(255),char(215),char(0),char(78),char(0),char(207),char(255),char(215),char(0),char(78), -char(0),char(209),char(255),char(215),char(0),char(78),char(0),char(211),char(255),char(215), -char(0),char(78),char(0),char(213),char(255),char(215),char(0),char(78),char(0),char(215), -char(255),char(215),char(0),char(78),char(0),char(217),char(255),char(215),char(0),char(78), -char(0),char(219),char(255),char(215),char(0),char(78),char(0),char(221),char(255),char(215), -char(0),char(78),char(1),char(15),char(255),char(215),char(0),char(78),char(1),char(17), -char(255),char(215),char(0),char(78),char(1),char(19),char(255),char(215),char(0),char(78), -char(1),char(21),char(255),char(215),char(0),char(78),char(1),char(72),char(255),char(215), -char(0),char(78),char(2),char(96),char(255),char(215),char(0),char(78),char(3),char(54), -char(255),char(215),char(0),char(78),char(3),char(56),char(255),char(215),char(0),char(78), -char(3),char(58),char(255),char(215),char(0),char(78),char(3),char(60),char(255),char(215), -char(0),char(78),char(3),char(64),char(255),char(215),char(0),char(78),char(3),char(66), -char(255),char(215),char(0),char(78),char(3),char(68),char(255),char(215),char(0),char(78), -char(3),char(74),char(255),char(215),char(0),char(78),char(3),char(76),char(255),char(215), -char(0),char(78),char(3),char(78),char(255),char(215),char(0),char(78),char(3),char(82), -char(255),char(215),char(0),char(78),char(3),char(84),char(255),char(215),char(0),char(78), -char(3),char(86),char(255),char(215),char(0),char(78),char(3),char(88),char(255),char(215), -char(0),char(78),char(3),char(90),char(255),char(215),char(0),char(78),char(3),char(92), -char(255),char(215),char(0),char(78),char(3),char(94),char(255),char(215),char(0),char(78), -char(3),char(96),char(255),char(215),char(0),char(80),char(0),char(5),char(255),char(236), -char(0),char(80),char(0),char(10),char(255),char(236),char(0),char(80),char(2),char(7), -char(255),char(236),char(0),char(80),char(2),char(11),char(255),char(236),char(0),char(81), -char(0),char(5),char(255),char(236),char(0),char(81),char(0),char(10),char(255),char(236), -char(0),char(81),char(2),char(7),char(255),char(236),char(0),char(81),char(2),char(11), -char(255),char(236),char(0),char(82),char(0),char(5),char(255),char(236),char(0),char(82), -char(0),char(10),char(255),char(236),char(0),char(82),char(0),char(89),char(255),char(215), -char(0),char(82),char(0),char(90),char(255),char(215),char(0),char(82),char(0),char(91), -char(255),char(215),char(0),char(82),char(0),char(92),char(255),char(215),char(0),char(82), -char(0),char(93),char(255),char(236),char(0),char(82),char(0),char(191),char(255),char(215), -char(0),char(82),char(1),char(55),char(255),char(215),char(0),char(82),char(1),char(60), -char(255),char(236),char(0),char(82),char(1),char(62),char(255),char(236),char(0),char(82), -char(1),char(64),char(255),char(236),char(0),char(82),char(1),char(251),char(255),char(215), -char(0),char(82),char(1),char(253),char(255),char(215),char(0),char(82),char(2),char(7), -char(255),char(236),char(0),char(82),char(2),char(11),char(255),char(236),char(0),char(82), -char(3),char(112),char(255),char(215),char(0),char(83),char(0),char(5),char(255),char(236), -char(0),char(83),char(0),char(10),char(255),char(236),char(0),char(83),char(0),char(89), -char(255),char(215),char(0),char(83),char(0),char(90),char(255),char(215),char(0),char(83), -char(0),char(91),char(255),char(215),char(0),char(83),char(0),char(92),char(255),char(215), -char(0),char(83),char(0),char(93),char(255),char(236),char(0),char(83),char(0),char(191), -char(255),char(215),char(0),char(83),char(1),char(55),char(255),char(215),char(0),char(83), -char(1),char(60),char(255),char(236),char(0),char(83),char(1),char(62),char(255),char(236), -char(0),char(83),char(1),char(64),char(255),char(236),char(0),char(83),char(1),char(251), -char(255),char(215),char(0),char(83),char(1),char(253),char(255),char(215),char(0),char(83), -char(2),char(7),char(255),char(236),char(0),char(83),char(2),char(11),char(255),char(236), -char(0),char(83),char(3),char(112),char(255),char(215),char(0),char(85),char(0),char(5), -char(0),char(82),char(0),char(85),char(0),char(10),char(0),char(82),char(0),char(85), -char(0),char(68),char(255),char(215),char(0),char(85),char(0),char(70),char(255),char(215), -char(0),char(85),char(0),char(71),char(255),char(215),char(0),char(85),char(0),char(72), -char(255),char(215),char(0),char(85),char(0),char(74),char(255),char(236),char(0),char(85), -char(0),char(82),char(255),char(215),char(0),char(85),char(0),char(84),char(255),char(215), -char(0),char(85),char(0),char(162),char(255),char(215),char(0),char(85),char(0),char(163), -char(255),char(215),char(0),char(85),char(0),char(164),char(255),char(215),char(0),char(85), -char(0),char(165),char(255),char(215),char(0),char(85),char(0),char(166),char(255),char(215), -char(0),char(85),char(0),char(167),char(255),char(215),char(0),char(85),char(0),char(168), -char(255),char(215),char(0),char(85),char(0),char(169),char(255),char(215),char(0),char(85), -char(0),char(170),char(255),char(215),char(0),char(85),char(0),char(171),char(255),char(215), -char(0),char(85),char(0),char(172),char(255),char(215),char(0),char(85),char(0),char(173), -char(255),char(215),char(0),char(85),char(0),char(180),char(255),char(215),char(0),char(85), -char(0),char(181),char(255),char(215),char(0),char(85),char(0),char(182),char(255),char(215), -char(0),char(85),char(0),char(183),char(255),char(215),char(0),char(85),char(0),char(184), -char(255),char(215),char(0),char(85),char(0),char(186),char(255),char(215),char(0),char(85), -char(0),char(195),char(255),char(215),char(0),char(85),char(0),char(197),char(255),char(215), -char(0),char(85),char(0),char(199),char(255),char(215),char(0),char(85),char(0),char(201), -char(255),char(215),char(0),char(85),char(0),char(203),char(255),char(215),char(0),char(85), -char(0),char(205),char(255),char(215),char(0),char(85),char(0),char(207),char(255),char(215), -char(0),char(85),char(0),char(209),char(255),char(215),char(0),char(85),char(0),char(211), -char(255),char(215),char(0),char(85),char(0),char(213),char(255),char(215),char(0),char(85), -char(0),char(215),char(255),char(215),char(0),char(85),char(0),char(217),char(255),char(215), -char(0),char(85),char(0),char(219),char(255),char(215),char(0),char(85),char(0),char(221), -char(255),char(215),char(0),char(85),char(0),char(223),char(255),char(236),char(0),char(85), -char(0),char(225),char(255),char(236),char(0),char(85),char(0),char(227),char(255),char(236), -char(0),char(85),char(0),char(229),char(255),char(236),char(0),char(85),char(1),char(15), -char(255),char(215),char(0),char(85),char(1),char(17),char(255),char(215),char(0),char(85), -char(1),char(19),char(255),char(215),char(0),char(85),char(1),char(21),char(255),char(215), -char(0),char(85),char(1),char(68),char(255),char(215),char(0),char(85),char(1),char(70), -char(255),char(215),char(0),char(85),char(1),char(72),char(255),char(215),char(0),char(85), -char(2),char(7),char(0),char(82),char(0),char(85),char(2),char(11),char(0),char(82), -char(0),char(85),char(2),char(89),char(255),char(215),char(0),char(85),char(2),char(96), -char(255),char(215),char(0),char(85),char(3),char(30),char(255),char(215),char(0),char(85), -char(3),char(32),char(255),char(215),char(0),char(85),char(3),char(34),char(255),char(215), -char(0),char(85),char(3),char(38),char(255),char(215),char(0),char(85),char(3),char(40), -char(255),char(215),char(0),char(85),char(3),char(42),char(255),char(215),char(0),char(85), -char(3),char(44),char(255),char(215),char(0),char(85),char(3),char(46),char(255),char(215), -char(0),char(85),char(3),char(48),char(255),char(215),char(0),char(85),char(3),char(50), -char(255),char(215),char(0),char(85),char(3),char(52),char(255),char(215),char(0),char(85), -char(3),char(54),char(255),char(215),char(0),char(85),char(3),char(56),char(255),char(215), -char(0),char(85),char(3),char(58),char(255),char(215),char(0),char(85),char(3),char(60), -char(255),char(215),char(0),char(85),char(3),char(64),char(255),char(215),char(0),char(85), -char(3),char(66),char(255),char(215),char(0),char(85),char(3),char(68),char(255),char(215), -char(0),char(85),char(3),char(74),char(255),char(215),char(0),char(85),char(3),char(76), -char(255),char(215),char(0),char(85),char(3),char(78),char(255),char(215),char(0),char(85), -char(3),char(82),char(255),char(215),char(0),char(85),char(3),char(84),char(255),char(215), -char(0),char(85),char(3),char(86),char(255),char(215),char(0),char(85),char(3),char(88), -char(255),char(215),char(0),char(85),char(3),char(90),char(255),char(215),char(0),char(85), -char(3),char(92),char(255),char(215),char(0),char(85),char(3),char(94),char(255),char(215), -char(0),char(85),char(3),char(96),char(255),char(215),char(0),char(87),char(0),char(5), -char(0),char(41),char(0),char(87),char(0),char(10),char(0),char(41),char(0),char(87), -char(2),char(7),char(0),char(41),char(0),char(87),char(2),char(11),char(0),char(41), -char(0),char(89),char(0),char(5),char(0),char(82),char(0),char(89),char(0),char(10), -char(0),char(82),char(0),char(89),char(0),char(15),char(255),char(174),char(0),char(89), -char(0),char(17),char(255),char(174),char(0),char(89),char(0),char(34),char(0),char(41), -char(0),char(89),char(2),char(7),char(0),char(82),char(0),char(89),char(2),char(8), -char(255),char(174),char(0),char(89),char(2),char(11),char(0),char(82),char(0),char(89), -char(2),char(12),char(255),char(174),char(0),char(90),char(0),char(5),char(0),char(82), -char(0),char(90),char(0),char(10),char(0),char(82),char(0),char(90),char(0),char(15), -char(255),char(174),char(0),char(90),char(0),char(17),char(255),char(174),char(0),char(90), -char(0),char(34),char(0),char(41),char(0),char(90),char(2),char(7),char(0),char(82), -char(0),char(90),char(2),char(8),char(255),char(174),char(0),char(90),char(2),char(11), -char(0),char(82),char(0),char(90),char(2),char(12),char(255),char(174),char(0),char(91), -char(0),char(70),char(255),char(215),char(0),char(91),char(0),char(71),char(255),char(215), -char(0),char(91),char(0),char(72),char(255),char(215),char(0),char(91),char(0),char(82), -char(255),char(215),char(0),char(91),char(0),char(84),char(255),char(215),char(0),char(91), -char(0),char(162),char(255),char(215),char(0),char(91),char(0),char(169),char(255),char(215), -char(0),char(91),char(0),char(170),char(255),char(215),char(0),char(91),char(0),char(171), -char(255),char(215),char(0),char(91),char(0),char(172),char(255),char(215),char(0),char(91), -char(0),char(173),char(255),char(215),char(0),char(91),char(0),char(180),char(255),char(215), -char(0),char(91),char(0),char(181),char(255),char(215),char(0),char(91),char(0),char(182), -char(255),char(215),char(0),char(91),char(0),char(183),char(255),char(215),char(0),char(91), -char(0),char(184),char(255),char(215),char(0),char(91),char(0),char(186),char(255),char(215), -char(0),char(91),char(0),char(201),char(255),char(215),char(0),char(91),char(0),char(203), -char(255),char(215),char(0),char(91),char(0),char(205),char(255),char(215),char(0),char(91), -char(0),char(207),char(255),char(215),char(0),char(91),char(0),char(209),char(255),char(215), -char(0),char(91),char(0),char(211),char(255),char(215),char(0),char(91),char(0),char(213), -char(255),char(215),char(0),char(91),char(0),char(215),char(255),char(215),char(0),char(91), -char(0),char(217),char(255),char(215),char(0),char(91),char(0),char(219),char(255),char(215), -char(0),char(91),char(0),char(221),char(255),char(215),char(0),char(91),char(1),char(15), -char(255),char(215),char(0),char(91),char(1),char(17),char(255),char(215),char(0),char(91), -char(1),char(19),char(255),char(215),char(0),char(91),char(1),char(21),char(255),char(215), -char(0),char(91),char(1),char(72),char(255),char(215),char(0),char(91),char(2),char(96), -char(255),char(215),char(0),char(91),char(3),char(54),char(255),char(215),char(0),char(91), -char(3),char(56),char(255),char(215),char(0),char(91),char(3),char(58),char(255),char(215), -char(0),char(91),char(3),char(60),char(255),char(215),char(0),char(91),char(3),char(64), -char(255),char(215),char(0),char(91),char(3),char(66),char(255),char(215),char(0),char(91), -char(3),char(68),char(255),char(215),char(0),char(91),char(3),char(74),char(255),char(215), -char(0),char(91),char(3),char(76),char(255),char(215),char(0),char(91),char(3),char(78), -char(255),char(215),char(0),char(91),char(3),char(82),char(255),char(215),char(0),char(91), -char(3),char(84),char(255),char(215),char(0),char(91),char(3),char(86),char(255),char(215), -char(0),char(91),char(3),char(88),char(255),char(215),char(0),char(91),char(3),char(90), -char(255),char(215),char(0),char(91),char(3),char(92),char(255),char(215),char(0),char(91), -char(3),char(94),char(255),char(215),char(0),char(91),char(3),char(96),char(255),char(215), -char(0),char(92),char(0),char(5),char(0),char(82),char(0),char(92),char(0),char(10), -char(0),char(82),char(0),char(92),char(0),char(15),char(255),char(174),char(0),char(92), -char(0),char(17),char(255),char(174),char(0),char(92),char(0),char(34),char(0),char(41), -char(0),char(92),char(2),char(7),char(0),char(82),char(0),char(92),char(2),char(8), -char(255),char(174),char(0),char(92),char(2),char(11),char(0),char(82),char(0),char(92), -char(2),char(12),char(255),char(174),char(0),char(94),char(0),char(45),char(0),char(184), -char(0),char(130),char(0),char(5),char(255),char(113),char(0),char(130),char(0),char(10), -char(255),char(113),char(0),char(130),char(0),char(38),char(255),char(215),char(0),char(130), -char(0),char(42),char(255),char(215),char(0),char(130),char(0),char(45),char(1),char(10), -char(0),char(130),char(0),char(50),char(255),char(215),char(0),char(130),char(0),char(52), -char(255),char(215),char(0),char(130),char(0),char(55),char(255),char(113),char(0),char(130), -char(0),char(57),char(255),char(174),char(0),char(130),char(0),char(58),char(255),char(174), -char(0),char(130),char(0),char(60),char(255),char(133),char(0),char(130),char(0),char(137), -char(255),char(215),char(0),char(130),char(0),char(148),char(255),char(215),char(0),char(130), -char(0),char(149),char(255),char(215),char(0),char(130),char(0),char(150),char(255),char(215), -char(0),char(130),char(0),char(151),char(255),char(215),char(0),char(130),char(0),char(152), -char(255),char(215),char(0),char(130),char(0),char(154),char(255),char(215),char(0),char(130), -char(0),char(159),char(255),char(133),char(0),char(130),char(0),char(200),char(255),char(215), -char(0),char(130),char(0),char(202),char(255),char(215),char(0),char(130),char(0),char(204), -char(255),char(215),char(0),char(130),char(0),char(206),char(255),char(215),char(0),char(130), -char(0),char(222),char(255),char(215),char(0),char(130),char(0),char(224),char(255),char(215), -char(0),char(130),char(0),char(226),char(255),char(215),char(0),char(130),char(0),char(228), -char(255),char(215),char(0),char(130),char(1),char(14),char(255),char(215),char(0),char(130), -char(1),char(16),char(255),char(215),char(0),char(130),char(1),char(18),char(255),char(215), -char(0),char(130),char(1),char(20),char(255),char(215),char(0),char(130),char(1),char(36), -char(255),char(113),char(0),char(130),char(1),char(38),char(255),char(113),char(0),char(130), -char(1),char(54),char(255),char(174),char(0),char(130),char(1),char(56),char(255),char(133), -char(0),char(130),char(1),char(58),char(255),char(133),char(0),char(130),char(1),char(71), -char(255),char(215),char(0),char(130),char(1),char(250),char(255),char(174),char(0),char(130), -char(1),char(252),char(255),char(174),char(0),char(130),char(1),char(254),char(255),char(174), -char(0),char(130),char(2),char(0),char(255),char(133),char(0),char(130),char(2),char(7), -char(255),char(113),char(0),char(130),char(2),char(11),char(255),char(113),char(0),char(130), -char(2),char(95),char(255),char(215),char(0),char(130),char(3),char(73),char(255),char(215), -char(0),char(130),char(3),char(75),char(255),char(215),char(0),char(130),char(3),char(77), -char(255),char(215),char(0),char(130),char(3),char(79),char(255),char(215),char(0),char(130), -char(3),char(81),char(255),char(215),char(0),char(130),char(3),char(83),char(255),char(215), -char(0),char(130),char(3),char(85),char(255),char(215),char(0),char(130),char(3),char(87), -char(255),char(215),char(0),char(130),char(3),char(89),char(255),char(215),char(0),char(130), -char(3),char(91),char(255),char(215),char(0),char(130),char(3),char(93),char(255),char(215), -char(0),char(130),char(3),char(95),char(255),char(215),char(0),char(130),char(3),char(111), -char(255),char(133),char(0),char(130),char(3),char(113),char(255),char(133),char(0),char(130), -char(3),char(115),char(255),char(133),char(0),char(130),char(3),char(143),char(255),char(113), -char(0),char(131),char(0),char(5),char(255),char(113),char(0),char(131),char(0),char(10), -char(255),char(113),char(0),char(131),char(0),char(38),char(255),char(215),char(0),char(131), -char(0),char(42),char(255),char(215),char(0),char(131),char(0),char(45),char(1),char(10), -char(0),char(131),char(0),char(50),char(255),char(215),char(0),char(131),char(0),char(52), -char(255),char(215),char(0),char(131),char(0),char(55),char(255),char(113),char(0),char(131), -char(0),char(57),char(255),char(174),char(0),char(131),char(0),char(58),char(255),char(174), -char(0),char(131),char(0),char(60),char(255),char(133),char(0),char(131),char(0),char(137), -char(255),char(215),char(0),char(131),char(0),char(148),char(255),char(215),char(0),char(131), -char(0),char(149),char(255),char(215),char(0),char(131),char(0),char(150),char(255),char(215), -char(0),char(131),char(0),char(151),char(255),char(215),char(0),char(131),char(0),char(152), -char(255),char(215),char(0),char(131),char(0),char(154),char(255),char(215),char(0),char(131), -char(0),char(159),char(255),char(133),char(0),char(131),char(0),char(200),char(255),char(215), -char(0),char(131),char(0),char(202),char(255),char(215),char(0),char(131),char(0),char(204), -char(255),char(215),char(0),char(131),char(0),char(206),char(255),char(215),char(0),char(131), -char(0),char(222),char(255),char(215),char(0),char(131),char(0),char(224),char(255),char(215), -char(0),char(131),char(0),char(226),char(255),char(215),char(0),char(131),char(0),char(228), -char(255),char(215),char(0),char(131),char(1),char(14),char(255),char(215),char(0),char(131), -char(1),char(16),char(255),char(215),char(0),char(131),char(1),char(18),char(255),char(215), -char(0),char(131),char(1),char(20),char(255),char(215),char(0),char(131),char(1),char(36), -char(255),char(113),char(0),char(131),char(1),char(38),char(255),char(113),char(0),char(131), -char(1),char(54),char(255),char(174),char(0),char(131),char(1),char(56),char(255),char(133), -char(0),char(131),char(1),char(58),char(255),char(133),char(0),char(131),char(1),char(71), -char(255),char(215),char(0),char(131),char(1),char(250),char(255),char(174),char(0),char(131), -char(1),char(252),char(255),char(174),char(0),char(131),char(1),char(254),char(255),char(174), -char(0),char(131),char(2),char(0),char(255),char(133),char(0),char(131),char(2),char(7), -char(255),char(113),char(0),char(131),char(2),char(11),char(255),char(113),char(0),char(131), -char(2),char(95),char(255),char(215),char(0),char(131),char(3),char(73),char(255),char(215), -char(0),char(131),char(3),char(75),char(255),char(215),char(0),char(131),char(3),char(77), -char(255),char(215),char(0),char(131),char(3),char(79),char(255),char(215),char(0),char(131), -char(3),char(81),char(255),char(215),char(0),char(131),char(3),char(83),char(255),char(215), -char(0),char(131),char(3),char(85),char(255),char(215),char(0),char(131),char(3),char(87), -char(255),char(215),char(0),char(131),char(3),char(89),char(255),char(215),char(0),char(131), -char(3),char(91),char(255),char(215),char(0),char(131),char(3),char(93),char(255),char(215), -char(0),char(131),char(3),char(95),char(255),char(215),char(0),char(131),char(3),char(111), -char(255),char(133),char(0),char(131),char(3),char(113),char(255),char(133),char(0),char(131), -char(3),char(115),char(255),char(133),char(0),char(131),char(3),char(143),char(255),char(113), -char(0),char(132),char(0),char(5),char(255),char(113),char(0),char(132),char(0),char(10), -char(255),char(113),char(0),char(132),char(0),char(38),char(255),char(215),char(0),char(132), -char(0),char(42),char(255),char(215),char(0),char(132),char(0),char(45),char(1),char(10), -char(0),char(132),char(0),char(50),char(255),char(215),char(0),char(132),char(0),char(52), -char(255),char(215),char(0),char(132),char(0),char(55),char(255),char(113),char(0),char(132), -char(0),char(57),char(255),char(174),char(0),char(132),char(0),char(58),char(255),char(174), -char(0),char(132),char(0),char(60),char(255),char(133),char(0),char(132),char(0),char(137), -char(255),char(215),char(0),char(132),char(0),char(148),char(255),char(215),char(0),char(132), -char(0),char(149),char(255),char(215),char(0),char(132),char(0),char(150),char(255),char(215), -char(0),char(132),char(0),char(151),char(255),char(215),char(0),char(132),char(0),char(152), -char(255),char(215),char(0),char(132),char(0),char(154),char(255),char(215),char(0),char(132), -char(0),char(159),char(255),char(133),char(0),char(132),char(0),char(200),char(255),char(215), -char(0),char(132),char(0),char(202),char(255),char(215),char(0),char(132),char(0),char(204), -char(255),char(215),char(0),char(132),char(0),char(206),char(255),char(215),char(0),char(132), -char(0),char(222),char(255),char(215),char(0),char(132),char(0),char(224),char(255),char(215), -char(0),char(132),char(0),char(226),char(255),char(215),char(0),char(132),char(0),char(228), -char(255),char(215),char(0),char(132),char(1),char(14),char(255),char(215),char(0),char(132), -char(1),char(16),char(255),char(215),char(0),char(132),char(1),char(18),char(255),char(215), -char(0),char(132),char(1),char(20),char(255),char(215),char(0),char(132),char(1),char(36), -char(255),char(113),char(0),char(132),char(1),char(38),char(255),char(113),char(0),char(132), -char(1),char(54),char(255),char(174),char(0),char(132),char(1),char(56),char(255),char(133), -char(0),char(132),char(1),char(58),char(255),char(133),char(0),char(132),char(1),char(71), -char(255),char(215),char(0),char(132),char(1),char(250),char(255),char(174),char(0),char(132), -char(1),char(252),char(255),char(174),char(0),char(132),char(1),char(254),char(255),char(174), -char(0),char(132),char(2),char(0),char(255),char(133),char(0),char(132),char(2),char(7), -char(255),char(113),char(0),char(132),char(2),char(11),char(255),char(113),char(0),char(132), -char(2),char(95),char(255),char(215),char(0),char(132),char(3),char(73),char(255),char(215), -char(0),char(132),char(3),char(75),char(255),char(215),char(0),char(132),char(3),char(77), -char(255),char(215),char(0),char(132),char(3),char(79),char(255),char(215),char(0),char(132), -char(3),char(81),char(255),char(215),char(0),char(132),char(3),char(83),char(255),char(215), -char(0),char(132),char(3),char(85),char(255),char(215),char(0),char(132),char(3),char(87), -char(255),char(215),char(0),char(132),char(3),char(89),char(255),char(215),char(0),char(132), -char(3),char(91),char(255),char(215),char(0),char(132),char(3),char(93),char(255),char(215), -char(0),char(132),char(3),char(95),char(255),char(215),char(0),char(132),char(3),char(111), -char(255),char(133),char(0),char(132),char(3),char(113),char(255),char(133),char(0),char(132), -char(3),char(115),char(255),char(133),char(0),char(132),char(3),char(143),char(255),char(113), -char(0),char(133),char(0),char(5),char(255),char(113),char(0),char(133),char(0),char(10), -char(255),char(113),char(0),char(133),char(0),char(38),char(255),char(215),char(0),char(133), -char(0),char(42),char(255),char(215),char(0),char(133),char(0),char(45),char(1),char(10), -char(0),char(133),char(0),char(50),char(255),char(215),char(0),char(133),char(0),char(52), -char(255),char(215),char(0),char(133),char(0),char(55),char(255),char(113),char(0),char(133), -char(0),char(57),char(255),char(174),char(0),char(133),char(0),char(58),char(255),char(174), -char(0),char(133),char(0),char(60),char(255),char(133),char(0),char(133),char(0),char(137), -char(255),char(215),char(0),char(133),char(0),char(148),char(255),char(215),char(0),char(133), -char(0),char(149),char(255),char(215),char(0),char(133),char(0),char(150),char(255),char(215), -char(0),char(133),char(0),char(151),char(255),char(215),char(0),char(133),char(0),char(152), -char(255),char(215),char(0),char(133),char(0),char(154),char(255),char(215),char(0),char(133), -char(0),char(159),char(255),char(133),char(0),char(133),char(0),char(200),char(255),char(215), -char(0),char(133),char(0),char(202),char(255),char(215),char(0),char(133),char(0),char(204), -char(255),char(215),char(0),char(133),char(0),char(206),char(255),char(215),char(0),char(133), -char(0),char(222),char(255),char(215),char(0),char(133),char(0),char(224),char(255),char(215), -char(0),char(133),char(0),char(226),char(255),char(215),char(0),char(133),char(0),char(228), -char(255),char(215),char(0),char(133),char(1),char(14),char(255),char(215),char(0),char(133), -char(1),char(16),char(255),char(215),char(0),char(133),char(1),char(18),char(255),char(215), -char(0),char(133),char(1),char(20),char(255),char(215),char(0),char(133),char(1),char(36), -char(255),char(113),char(0),char(133),char(1),char(38),char(255),char(113),char(0),char(133), -char(1),char(54),char(255),char(174),char(0),char(133),char(1),char(56),char(255),char(133), -char(0),char(133),char(1),char(58),char(255),char(133),char(0),char(133),char(1),char(71), -char(255),char(215),char(0),char(133),char(1),char(250),char(255),char(174),char(0),char(133), -char(1),char(252),char(255),char(174),char(0),char(133),char(1),char(254),char(255),char(174), -char(0),char(133),char(2),char(0),char(255),char(133),char(0),char(133),char(2),char(7), -char(255),char(113),char(0),char(133),char(2),char(11),char(255),char(113),char(0),char(133), -char(2),char(95),char(255),char(215),char(0),char(133),char(3),char(73),char(255),char(215), -char(0),char(133),char(3),char(75),char(255),char(215),char(0),char(133),char(3),char(77), -char(255),char(215),char(0),char(133),char(3),char(79),char(255),char(215),char(0),char(133), -char(3),char(81),char(255),char(215),char(0),char(133),char(3),char(83),char(255),char(215), -char(0),char(133),char(3),char(85),char(255),char(215),char(0),char(133),char(3),char(87), -char(255),char(215),char(0),char(133),char(3),char(89),char(255),char(215),char(0),char(133), -char(3),char(91),char(255),char(215),char(0),char(133),char(3),char(93),char(255),char(215), -char(0),char(133),char(3),char(95),char(255),char(215),char(0),char(133),char(3),char(111), -char(255),char(133),char(0),char(133),char(3),char(113),char(255),char(133),char(0),char(133), -char(3),char(115),char(255),char(133),char(0),char(133),char(3),char(143),char(255),char(113), -char(0),char(134),char(0),char(5),char(255),char(113),char(0),char(134),char(0),char(10), -char(255),char(113),char(0),char(134),char(0),char(38),char(255),char(215),char(0),char(134), -char(0),char(42),char(255),char(215),char(0),char(134),char(0),char(45),char(1),char(10), -char(0),char(134),char(0),char(50),char(255),char(215),char(0),char(134),char(0),char(52), -char(255),char(215),char(0),char(134),char(0),char(55),char(255),char(113),char(0),char(134), -char(0),char(57),char(255),char(174),char(0),char(134),char(0),char(58),char(255),char(174), -char(0),char(134),char(0),char(60),char(255),char(133),char(0),char(134),char(0),char(137), -char(255),char(215),char(0),char(134),char(0),char(148),char(255),char(215),char(0),char(134), -char(0),char(149),char(255),char(215),char(0),char(134),char(0),char(150),char(255),char(215), -char(0),char(134),char(0),char(151),char(255),char(215),char(0),char(134),char(0),char(152), -char(255),char(215),char(0),char(134),char(0),char(154),char(255),char(215),char(0),char(134), -char(0),char(159),char(255),char(133),char(0),char(134),char(0),char(200),char(255),char(215), -char(0),char(134),char(0),char(202),char(255),char(215),char(0),char(134),char(0),char(204), -char(255),char(215),char(0),char(134),char(0),char(206),char(255),char(215),char(0),char(134), -char(0),char(222),char(255),char(215),char(0),char(134),char(0),char(224),char(255),char(215), -char(0),char(134),char(0),char(226),char(255),char(215),char(0),char(134),char(0),char(228), -char(255),char(215),char(0),char(134),char(1),char(14),char(255),char(215),char(0),char(134), -char(1),char(16),char(255),char(215),char(0),char(134),char(1),char(18),char(255),char(215), -char(0),char(134),char(1),char(20),char(255),char(215),char(0),char(134),char(1),char(36), -char(255),char(113),char(0),char(134),char(1),char(38),char(255),char(113),char(0),char(134), -char(1),char(54),char(255),char(174),char(0),char(134),char(1),char(56),char(255),char(133), -char(0),char(134),char(1),char(58),char(255),char(133),char(0),char(134),char(1),char(71), -char(255),char(215),char(0),char(134),char(1),char(250),char(255),char(174),char(0),char(134), -char(1),char(252),char(255),char(174),char(0),char(134),char(1),char(254),char(255),char(174), -char(0),char(134),char(2),char(0),char(255),char(133),char(0),char(134),char(2),char(7), -char(255),char(113),char(0),char(134),char(2),char(11),char(255),char(113),char(0),char(134), -char(2),char(95),char(255),char(215),char(0),char(134),char(3),char(73),char(255),char(215), -char(0),char(134),char(3),char(75),char(255),char(215),char(0),char(134),char(3),char(77), -char(255),char(215),char(0),char(134),char(3),char(79),char(255),char(215),char(0),char(134), -char(3),char(81),char(255),char(215),char(0),char(134),char(3),char(83),char(255),char(215), -char(0),char(134),char(3),char(85),char(255),char(215),char(0),char(134),char(3),char(87), -char(255),char(215),char(0),char(134),char(3),char(89),char(255),char(215),char(0),char(134), -char(3),char(91),char(255),char(215),char(0),char(134),char(3),char(93),char(255),char(215), -char(0),char(134),char(3),char(95),char(255),char(215),char(0),char(134),char(3),char(111), -char(255),char(133),char(0),char(134),char(3),char(113),char(255),char(133),char(0),char(134), -char(3),char(115),char(255),char(133),char(0),char(134),char(3),char(143),char(255),char(113), -char(0),char(135),char(0),char(5),char(255),char(113),char(0),char(135),char(0),char(10), -char(255),char(113),char(0),char(135),char(0),char(38),char(255),char(215),char(0),char(135), -char(0),char(42),char(255),char(215),char(0),char(135),char(0),char(45),char(1),char(10), -char(0),char(135),char(0),char(50),char(255),char(215),char(0),char(135),char(0),char(52), -char(255),char(215),char(0),char(135),char(0),char(55),char(255),char(113),char(0),char(135), -char(0),char(57),char(255),char(174),char(0),char(135),char(0),char(58),char(255),char(174), -char(0),char(135),char(0),char(60),char(255),char(133),char(0),char(135),char(0),char(137), -char(255),char(215),char(0),char(135),char(0),char(148),char(255),char(215),char(0),char(135), -char(0),char(149),char(255),char(215),char(0),char(135),char(0),char(150),char(255),char(215), -char(0),char(135),char(0),char(151),char(255),char(215),char(0),char(135),char(0),char(152), -char(255),char(215),char(0),char(135),char(0),char(154),char(255),char(215),char(0),char(135), -char(0),char(159),char(255),char(133),char(0),char(135),char(0),char(200),char(255),char(215), -char(0),char(135),char(0),char(202),char(255),char(215),char(0),char(135),char(0),char(204), -char(255),char(215),char(0),char(135),char(0),char(206),char(255),char(215),char(0),char(135), -char(0),char(222),char(255),char(215),char(0),char(135),char(0),char(224),char(255),char(215), -char(0),char(135),char(0),char(226),char(255),char(215),char(0),char(135),char(0),char(228), -char(255),char(215),char(0),char(135),char(1),char(14),char(255),char(215),char(0),char(135), -char(1),char(16),char(255),char(215),char(0),char(135),char(1),char(18),char(255),char(215), -char(0),char(135),char(1),char(20),char(255),char(215),char(0),char(135),char(1),char(36), -char(255),char(113),char(0),char(135),char(1),char(38),char(255),char(113),char(0),char(135), -char(1),char(54),char(255),char(174),char(0),char(135),char(1),char(56),char(255),char(133), -char(0),char(135),char(1),char(58),char(255),char(133),char(0),char(135),char(1),char(71), -char(255),char(215),char(0),char(135),char(1),char(250),char(255),char(174),char(0),char(135), -char(1),char(252),char(255),char(174),char(0),char(135),char(1),char(254),char(255),char(174), -char(0),char(135),char(2),char(0),char(255),char(133),char(0),char(135),char(2),char(7), -char(255),char(113),char(0),char(135),char(2),char(11),char(255),char(113),char(0),char(135), -char(2),char(95),char(255),char(215),char(0),char(135),char(3),char(73),char(255),char(215), -char(0),char(135),char(3),char(75),char(255),char(215),char(0),char(135),char(3),char(77), -char(255),char(215),char(0),char(135),char(3),char(79),char(255),char(215),char(0),char(135), -char(3),char(81),char(255),char(215),char(0),char(135),char(3),char(83),char(255),char(215), -char(0),char(135),char(3),char(85),char(255),char(215),char(0),char(135),char(3),char(87), -char(255),char(215),char(0),char(135),char(3),char(89),char(255),char(215),char(0),char(135), -char(3),char(91),char(255),char(215),char(0),char(135),char(3),char(93),char(255),char(215), -char(0),char(135),char(3),char(95),char(255),char(215),char(0),char(135),char(3),char(111), -char(255),char(133),char(0),char(135),char(3),char(113),char(255),char(133),char(0),char(135), -char(3),char(115),char(255),char(133),char(0),char(135),char(3),char(143),char(255),char(113), -char(0),char(136),char(0),char(45),char(0),char(123),char(0),char(137),char(0),char(38), -char(255),char(215),char(0),char(137),char(0),char(42),char(255),char(215),char(0),char(137), -char(0),char(50),char(255),char(215),char(0),char(137),char(0),char(52),char(255),char(215), -char(0),char(137),char(0),char(137),char(255),char(215),char(0),char(137),char(0),char(148), -char(255),char(215),char(0),char(137),char(0),char(149),char(255),char(215),char(0),char(137), -char(0),char(150),char(255),char(215),char(0),char(137),char(0),char(151),char(255),char(215), -char(0),char(137),char(0),char(152),char(255),char(215),char(0),char(137),char(0),char(154), -char(255),char(215),char(0),char(137),char(0),char(200),char(255),char(215),char(0),char(137), -char(0),char(202),char(255),char(215),char(0),char(137),char(0),char(204),char(255),char(215), -char(0),char(137),char(0),char(206),char(255),char(215),char(0),char(137),char(0),char(222), -char(255),char(215),char(0),char(137),char(0),char(224),char(255),char(215),char(0),char(137), -char(0),char(226),char(255),char(215),char(0),char(137),char(0),char(228),char(255),char(215), -char(0),char(137),char(1),char(14),char(255),char(215),char(0),char(137),char(1),char(16), -char(255),char(215),char(0),char(137),char(1),char(18),char(255),char(215),char(0),char(137), -char(1),char(20),char(255),char(215),char(0),char(137),char(1),char(71),char(255),char(215), -char(0),char(137),char(2),char(95),char(255),char(215),char(0),char(137),char(3),char(73), -char(255),char(215),char(0),char(137),char(3),char(75),char(255),char(215),char(0),char(137), -char(3),char(77),char(255),char(215),char(0),char(137),char(3),char(79),char(255),char(215), -char(0),char(137),char(3),char(81),char(255),char(215),char(0),char(137),char(3),char(83), -char(255),char(215),char(0),char(137),char(3),char(85),char(255),char(215),char(0),char(137), -char(3),char(87),char(255),char(215),char(0),char(137),char(3),char(89),char(255),char(215), -char(0),char(137),char(3),char(91),char(255),char(215),char(0),char(137),char(3),char(93), -char(255),char(215),char(0),char(137),char(3),char(95),char(255),char(215),char(0),char(138), -char(0),char(45),char(0),char(123),char(0),char(139),char(0),char(45),char(0),char(123), -char(0),char(140),char(0),char(45),char(0),char(123),char(0),char(141),char(0),char(45), -char(0),char(123),char(0),char(146),char(0),char(15),char(255),char(174),char(0),char(146), -char(0),char(17),char(255),char(174),char(0),char(146),char(0),char(36),char(255),char(215), -char(0),char(146),char(0),char(55),char(255),char(195),char(0),char(146),char(0),char(57), -char(255),char(236),char(0),char(146),char(0),char(58),char(255),char(236),char(0),char(146), -char(0),char(59),char(255),char(215),char(0),char(146),char(0),char(60),char(255),char(236), -char(0),char(146),char(0),char(61),char(255),char(236),char(0),char(146),char(0),char(130), -char(255),char(215),char(0),char(146),char(0),char(131),char(255),char(215),char(0),char(146), -char(0),char(132),char(255),char(215),char(0),char(146),char(0),char(133),char(255),char(215), -char(0),char(146),char(0),char(134),char(255),char(215),char(0),char(146),char(0),char(135), -char(255),char(215),char(0),char(146),char(0),char(159),char(255),char(236),char(0),char(146), -char(0),char(194),char(255),char(215),char(0),char(146),char(0),char(196),char(255),char(215), -char(0),char(146),char(0),char(198),char(255),char(215),char(0),char(146),char(1),char(36), -char(255),char(195),char(0),char(146),char(1),char(38),char(255),char(195),char(0),char(146), -char(1),char(54),char(255),char(236),char(0),char(146),char(1),char(56),char(255),char(236), -char(0),char(146),char(1),char(58),char(255),char(236),char(0),char(146),char(1),char(59), -char(255),char(236),char(0),char(146),char(1),char(61),char(255),char(236),char(0),char(146), -char(1),char(63),char(255),char(236),char(0),char(146),char(1),char(67),char(255),char(215), -char(0),char(146),char(1),char(160),char(255),char(236),char(0),char(146),char(1),char(250), -char(255),char(236),char(0),char(146),char(1),char(252),char(255),char(236),char(0),char(146), -char(1),char(254),char(255),char(236),char(0),char(146),char(2),char(0),char(255),char(236), -char(0),char(146),char(2),char(8),char(255),char(174),char(0),char(146),char(2),char(12), -char(255),char(174),char(0),char(146),char(2),char(88),char(255),char(215),char(0),char(146), -char(3),char(29),char(255),char(215),char(0),char(146),char(3),char(31),char(255),char(215), -char(0),char(146),char(3),char(33),char(255),char(215),char(0),char(146),char(3),char(35), -char(255),char(215),char(0),char(146),char(3),char(37),char(255),char(215),char(0),char(146), -char(3),char(39),char(255),char(215),char(0),char(146),char(3),char(41),char(255),char(215), -char(0),char(146),char(3),char(43),char(255),char(215),char(0),char(146),char(3),char(45), -char(255),char(215),char(0),char(146),char(3),char(47),char(255),char(215),char(0),char(146), -char(3),char(49),char(255),char(215),char(0),char(146),char(3),char(51),char(255),char(215), -char(0),char(146),char(3),char(111),char(255),char(236),char(0),char(146),char(3),char(113), -char(255),char(236),char(0),char(146),char(3),char(115),char(255),char(236),char(0),char(146), -char(3),char(143),char(255),char(195),char(0),char(148),char(0),char(15),char(255),char(174), -char(0),char(148),char(0),char(17),char(255),char(174),char(0),char(148),char(0),char(36), -char(255),char(215),char(0),char(148),char(0),char(55),char(255),char(195),char(0),char(148), -char(0),char(57),char(255),char(236),char(0),char(148),char(0),char(58),char(255),char(236), -char(0),char(148),char(0),char(59),char(255),char(215),char(0),char(148),char(0),char(60), -char(255),char(236),char(0),char(148),char(0),char(61),char(255),char(236),char(0),char(148), -char(0),char(130),char(255),char(215),char(0),char(148),char(0),char(131),char(255),char(215), -char(0),char(148),char(0),char(132),char(255),char(215),char(0),char(148),char(0),char(133), -char(255),char(215),char(0),char(148),char(0),char(134),char(255),char(215),char(0),char(148), -char(0),char(135),char(255),char(215),char(0),char(148),char(0),char(159),char(255),char(236), -char(0),char(148),char(0),char(194),char(255),char(215),char(0),char(148),char(0),char(196), -char(255),char(215),char(0),char(148),char(0),char(198),char(255),char(215),char(0),char(148), -char(1),char(36),char(255),char(195),char(0),char(148),char(1),char(38),char(255),char(195), -char(0),char(148),char(1),char(54),char(255),char(236),char(0),char(148),char(1),char(56), -char(255),char(236),char(0),char(148),char(1),char(58),char(255),char(236),char(0),char(148), -char(1),char(59),char(255),char(236),char(0),char(148),char(1),char(61),char(255),char(236), -char(0),char(148),char(1),char(63),char(255),char(236),char(0),char(148),char(1),char(67), -char(255),char(215),char(0),char(148),char(1),char(160),char(255),char(236),char(0),char(148), -char(1),char(250),char(255),char(236),char(0),char(148),char(1),char(252),char(255),char(236), -char(0),char(148),char(1),char(254),char(255),char(236),char(0),char(148),char(2),char(0), -char(255),char(236),char(0),char(148),char(2),char(8),char(255),char(174),char(0),char(148), -char(2),char(12),char(255),char(174),char(0),char(148),char(2),char(88),char(255),char(215), -char(0),char(148),char(3),char(29),char(255),char(215),char(0),char(148),char(3),char(31), -char(255),char(215),char(0),char(148),char(3),char(33),char(255),char(215),char(0),char(148), -char(3),char(35),char(255),char(215),char(0),char(148),char(3),char(37),char(255),char(215), -char(0),char(148),char(3),char(39),char(255),char(215),char(0),char(148),char(3),char(41), -char(255),char(215),char(0),char(148),char(3),char(43),char(255),char(215),char(0),char(148), -char(3),char(45),char(255),char(215),char(0),char(148),char(3),char(47),char(255),char(215), -char(0),char(148),char(3),char(49),char(255),char(215),char(0),char(148),char(3),char(51), -char(255),char(215),char(0),char(148),char(3),char(111),char(255),char(236),char(0),char(148), -char(3),char(113),char(255),char(236),char(0),char(148),char(3),char(115),char(255),char(236), -char(0),char(148),char(3),char(143),char(255),char(195),char(0),char(149),char(0),char(15), -char(255),char(174),char(0),char(149),char(0),char(17),char(255),char(174),char(0),char(149), -char(0),char(36),char(255),char(215),char(0),char(149),char(0),char(55),char(255),char(195), -char(0),char(149),char(0),char(57),char(255),char(236),char(0),char(149),char(0),char(58), -char(255),char(236),char(0),char(149),char(0),char(59),char(255),char(215),char(0),char(149), -char(0),char(60),char(255),char(236),char(0),char(149),char(0),char(61),char(255),char(236), -char(0),char(149),char(0),char(130),char(255),char(215),char(0),char(149),char(0),char(131), -char(255),char(215),char(0),char(149),char(0),char(132),char(255),char(215),char(0),char(149), -char(0),char(133),char(255),char(215),char(0),char(149),char(0),char(134),char(255),char(215), -char(0),char(149),char(0),char(135),char(255),char(215),char(0),char(149),char(0),char(159), -char(255),char(236),char(0),char(149),char(0),char(194),char(255),char(215),char(0),char(149), -char(0),char(196),char(255),char(215),char(0),char(149),char(0),char(198),char(255),char(215), -char(0),char(149),char(1),char(36),char(255),char(195),char(0),char(149),char(1),char(38), -char(255),char(195),char(0),char(149),char(1),char(54),char(255),char(236),char(0),char(149), -char(1),char(56),char(255),char(236),char(0),char(149),char(1),char(58),char(255),char(236), -char(0),char(149),char(1),char(59),char(255),char(236),char(0),char(149),char(1),char(61), -char(255),char(236),char(0),char(149),char(1),char(63),char(255),char(236),char(0),char(149), -char(1),char(67),char(255),char(215),char(0),char(149),char(1),char(160),char(255),char(236), -char(0),char(149),char(1),char(250),char(255),char(236),char(0),char(149),char(1),char(252), -char(255),char(236),char(0),char(149),char(1),char(254),char(255),char(236),char(0),char(149), -char(2),char(0),char(255),char(236),char(0),char(149),char(2),char(8),char(255),char(174), -char(0),char(149),char(2),char(12),char(255),char(174),char(0),char(149),char(2),char(88), -char(255),char(215),char(0),char(149),char(3),char(29),char(255),char(215),char(0),char(149), -char(3),char(31),char(255),char(215),char(0),char(149),char(3),char(33),char(255),char(215), -char(0),char(149),char(3),char(35),char(255),char(215),char(0),char(149),char(3),char(37), -char(255),char(215),char(0),char(149),char(3),char(39),char(255),char(215),char(0),char(149), -char(3),char(41),char(255),char(215),char(0),char(149),char(3),char(43),char(255),char(215), -char(0),char(149),char(3),char(45),char(255),char(215),char(0),char(149),char(3),char(47), -char(255),char(215),char(0),char(149),char(3),char(49),char(255),char(215),char(0),char(149), -char(3),char(51),char(255),char(215),char(0),char(149),char(3),char(111),char(255),char(236), -char(0),char(149),char(3),char(113),char(255),char(236),char(0),char(149),char(3),char(115), -char(255),char(236),char(0),char(149),char(3),char(143),char(255),char(195),char(0),char(150), -char(0),char(15),char(255),char(174),char(0),char(150),char(0),char(17),char(255),char(174), -char(0),char(150),char(0),char(36),char(255),char(215),char(0),char(150),char(0),char(55), -char(255),char(195),char(0),char(150),char(0),char(57),char(255),char(236),char(0),char(150), -char(0),char(58),char(255),char(236),char(0),char(150),char(0),char(59),char(255),char(215), -char(0),char(150),char(0),char(60),char(255),char(236),char(0),char(150),char(0),char(61), -char(255),char(236),char(0),char(150),char(0),char(130),char(255),char(215),char(0),char(150), -char(0),char(131),char(255),char(215),char(0),char(150),char(0),char(132),char(255),char(215), -char(0),char(150),char(0),char(133),char(255),char(215),char(0),char(150),char(0),char(134), -char(255),char(215),char(0),char(150),char(0),char(135),char(255),char(215),char(0),char(150), -char(0),char(159),char(255),char(236),char(0),char(150),char(0),char(194),char(255),char(215), -char(0),char(150),char(0),char(196),char(255),char(215),char(0),char(150),char(0),char(198), -char(255),char(215),char(0),char(150),char(1),char(36),char(255),char(195),char(0),char(150), -char(1),char(38),char(255),char(195),char(0),char(150),char(1),char(54),char(255),char(236), -char(0),char(150),char(1),char(56),char(255),char(236),char(0),char(150),char(1),char(58), -char(255),char(236),char(0),char(150),char(1),char(59),char(255),char(236),char(0),char(150), -char(1),char(61),char(255),char(236),char(0),char(150),char(1),char(63),char(255),char(236), -char(0),char(150),char(1),char(67),char(255),char(215),char(0),char(150),char(1),char(160), -char(255),char(236),char(0),char(150),char(1),char(250),char(255),char(236),char(0),char(150), -char(1),char(252),char(255),char(236),char(0),char(150),char(1),char(254),char(255),char(236), -char(0),char(150),char(2),char(0),char(255),char(236),char(0),char(150),char(2),char(8), -char(255),char(174),char(0),char(150),char(2),char(12),char(255),char(174),char(0),char(150), -char(2),char(88),char(255),char(215),char(0),char(150),char(3),char(29),char(255),char(215), -char(0),char(150),char(3),char(31),char(255),char(215),char(0),char(150),char(3),char(33), -char(255),char(215),char(0),char(150),char(3),char(35),char(255),char(215),char(0),char(150), -char(3),char(37),char(255),char(215),char(0),char(150),char(3),char(39),char(255),char(215), -char(0),char(150),char(3),char(41),char(255),char(215),char(0),char(150),char(3),char(43), -char(255),char(215),char(0),char(150),char(3),char(45),char(255),char(215),char(0),char(150), -char(3),char(47),char(255),char(215),char(0),char(150),char(3),char(49),char(255),char(215), -char(0),char(150),char(3),char(51),char(255),char(215),char(0),char(150),char(3),char(111), -char(255),char(236),char(0),char(150),char(3),char(113),char(255),char(236),char(0),char(150), -char(3),char(115),char(255),char(236),char(0),char(150),char(3),char(143),char(255),char(195), -char(0),char(151),char(0),char(15),char(255),char(174),char(0),char(151),char(0),char(17), -char(255),char(174),char(0),char(151),char(0),char(36),char(255),char(215),char(0),char(151), -char(0),char(55),char(255),char(195),char(0),char(151),char(0),char(57),char(255),char(236), -char(0),char(151),char(0),char(58),char(255),char(236),char(0),char(151),char(0),char(59), -char(255),char(215),char(0),char(151),char(0),char(60),char(255),char(236),char(0),char(151), -char(0),char(61),char(255),char(236),char(0),char(151),char(0),char(130),char(255),char(215), -char(0),char(151),char(0),char(131),char(255),char(215),char(0),char(151),char(0),char(132), -char(255),char(215),char(0),char(151),char(0),char(133),char(255),char(215),char(0),char(151), -char(0),char(134),char(255),char(215),char(0),char(151),char(0),char(135),char(255),char(215), -char(0),char(151),char(0),char(159),char(255),char(236),char(0),char(151),char(0),char(194), -char(255),char(215),char(0),char(151),char(0),char(196),char(255),char(215),char(0),char(151), -char(0),char(198),char(255),char(215),char(0),char(151),char(1),char(36),char(255),char(195), -char(0),char(151),char(1),char(38),char(255),char(195),char(0),char(151),char(1),char(54), -char(255),char(236),char(0),char(151),char(1),char(56),char(255),char(236),char(0),char(151), -char(1),char(58),char(255),char(236),char(0),char(151),char(1),char(59),char(255),char(236), -char(0),char(151),char(1),char(61),char(255),char(236),char(0),char(151),char(1),char(63), -char(255),char(236),char(0),char(151),char(1),char(67),char(255),char(215),char(0),char(151), -char(1),char(160),char(255),char(236),char(0),char(151),char(1),char(250),char(255),char(236), -char(0),char(151),char(1),char(252),char(255),char(236),char(0),char(151),char(1),char(254), -char(255),char(236),char(0),char(151),char(2),char(0),char(255),char(236),char(0),char(151), -char(2),char(8),char(255),char(174),char(0),char(151),char(2),char(12),char(255),char(174), -char(0),char(151),char(2),char(88),char(255),char(215),char(0),char(151),char(3),char(29), -char(255),char(215),char(0),char(151),char(3),char(31),char(255),char(215),char(0),char(151), -char(3),char(33),char(255),char(215),char(0),char(151),char(3),char(35),char(255),char(215), -char(0),char(151),char(3),char(37),char(255),char(215),char(0),char(151),char(3),char(39), -char(255),char(215),char(0),char(151),char(3),char(41),char(255),char(215),char(0),char(151), -char(3),char(43),char(255),char(215),char(0),char(151),char(3),char(45),char(255),char(215), -char(0),char(151),char(3),char(47),char(255),char(215),char(0),char(151),char(3),char(49), -char(255),char(215),char(0),char(151),char(3),char(51),char(255),char(215),char(0),char(151), -char(3),char(111),char(255),char(236),char(0),char(151),char(3),char(113),char(255),char(236), -char(0),char(151),char(3),char(115),char(255),char(236),char(0),char(151),char(3),char(143), -char(255),char(195),char(0),char(152),char(0),char(15),char(255),char(174),char(0),char(152), -char(0),char(17),char(255),char(174),char(0),char(152),char(0),char(36),char(255),char(215), -char(0),char(152),char(0),char(55),char(255),char(195),char(0),char(152),char(0),char(57), -char(255),char(236),char(0),char(152),char(0),char(58),char(255),char(236),char(0),char(152), -char(0),char(59),char(255),char(215),char(0),char(152),char(0),char(60),char(255),char(236), -char(0),char(152),char(0),char(61),char(255),char(236),char(0),char(152),char(0),char(130), -char(255),char(215),char(0),char(152),char(0),char(131),char(255),char(215),char(0),char(152), -char(0),char(132),char(255),char(215),char(0),char(152),char(0),char(133),char(255),char(215), -char(0),char(152),char(0),char(134),char(255),char(215),char(0),char(152),char(0),char(135), -char(255),char(215),char(0),char(152),char(0),char(159),char(255),char(236),char(0),char(152), -char(0),char(194),char(255),char(215),char(0),char(152),char(0),char(196),char(255),char(215), -char(0),char(152),char(0),char(198),char(255),char(215),char(0),char(152),char(1),char(36), -char(255),char(195),char(0),char(152),char(1),char(38),char(255),char(195),char(0),char(152), -char(1),char(54),char(255),char(236),char(0),char(152),char(1),char(56),char(255),char(236), -char(0),char(152),char(1),char(58),char(255),char(236),char(0),char(152),char(1),char(59), -char(255),char(236),char(0),char(152),char(1),char(61),char(255),char(236),char(0),char(152), -char(1),char(63),char(255),char(236),char(0),char(152),char(1),char(67),char(255),char(215), -char(0),char(152),char(1),char(160),char(255),char(236),char(0),char(152),char(1),char(250), -char(255),char(236),char(0),char(152),char(1),char(252),char(255),char(236),char(0),char(152), -char(1),char(254),char(255),char(236),char(0),char(152),char(2),char(0),char(255),char(236), -char(0),char(152),char(2),char(8),char(255),char(174),char(0),char(152),char(2),char(12), -char(255),char(174),char(0),char(152),char(2),char(88),char(255),char(215),char(0),char(152), -char(3),char(29),char(255),char(215),char(0),char(152),char(3),char(31),char(255),char(215), -char(0),char(152),char(3),char(33),char(255),char(215),char(0),char(152),char(3),char(35), -char(255),char(215),char(0),char(152),char(3),char(37),char(255),char(215),char(0),char(152), -char(3),char(39),char(255),char(215),char(0),char(152),char(3),char(41),char(255),char(215), -char(0),char(152),char(3),char(43),char(255),char(215),char(0),char(152),char(3),char(45), -char(255),char(215),char(0),char(152),char(3),char(47),char(255),char(215),char(0),char(152), -char(3),char(49),char(255),char(215),char(0),char(152),char(3),char(51),char(255),char(215), -char(0),char(152),char(3),char(111),char(255),char(236),char(0),char(152),char(3),char(113), -char(255),char(236),char(0),char(152),char(3),char(115),char(255),char(236),char(0),char(152), -char(3),char(143),char(255),char(195),char(0),char(154),char(0),char(15),char(255),char(174), -char(0),char(154),char(0),char(17),char(255),char(174),char(0),char(154),char(0),char(36), -char(255),char(215),char(0),char(154),char(0),char(55),char(255),char(195),char(0),char(154), -char(0),char(57),char(255),char(236),char(0),char(154),char(0),char(58),char(255),char(236), -char(0),char(154),char(0),char(59),char(255),char(215),char(0),char(154),char(0),char(60), -char(255),char(236),char(0),char(154),char(0),char(61),char(255),char(236),char(0),char(154), -char(0),char(130),char(255),char(215),char(0),char(154),char(0),char(131),char(255),char(215), -char(0),char(154),char(0),char(132),char(255),char(215),char(0),char(154),char(0),char(133), -char(255),char(215),char(0),char(154),char(0),char(134),char(255),char(215),char(0),char(154), -char(0),char(135),char(255),char(215),char(0),char(154),char(0),char(159),char(255),char(236), -char(0),char(154),char(0),char(194),char(255),char(215),char(0),char(154),char(0),char(196), -char(255),char(215),char(0),char(154),char(0),char(198),char(255),char(215),char(0),char(154), -char(1),char(36),char(255),char(195),char(0),char(154),char(1),char(38),char(255),char(195), -char(0),char(154),char(1),char(54),char(255),char(236),char(0),char(154),char(1),char(56), -char(255),char(236),char(0),char(154),char(1),char(58),char(255),char(236),char(0),char(154), -char(1),char(59),char(255),char(236),char(0),char(154),char(1),char(61),char(255),char(236), -char(0),char(154),char(1),char(63),char(255),char(236),char(0),char(154),char(1),char(67), -char(255),char(215),char(0),char(154),char(1),char(160),char(255),char(236),char(0),char(154), -char(1),char(250),char(255),char(236),char(0),char(154),char(1),char(252),char(255),char(236), -char(0),char(154),char(1),char(254),char(255),char(236),char(0),char(154),char(2),char(0), -char(255),char(236),char(0),char(154),char(2),char(8),char(255),char(174),char(0),char(154), -char(2),char(12),char(255),char(174),char(0),char(154),char(2),char(88),char(255),char(215), -char(0),char(154),char(3),char(29),char(255),char(215),char(0),char(154),char(3),char(31), -char(255),char(215),char(0),char(154),char(3),char(33),char(255),char(215),char(0),char(154), -char(3),char(35),char(255),char(215),char(0),char(154),char(3),char(37),char(255),char(215), -char(0),char(154),char(3),char(39),char(255),char(215),char(0),char(154),char(3),char(41), -char(255),char(215),char(0),char(154),char(3),char(43),char(255),char(215),char(0),char(154), -char(3),char(45),char(255),char(215),char(0),char(154),char(3),char(47),char(255),char(215), -char(0),char(154),char(3),char(49),char(255),char(215),char(0),char(154),char(3),char(51), -char(255),char(215),char(0),char(154),char(3),char(111),char(255),char(236),char(0),char(154), -char(3),char(113),char(255),char(236),char(0),char(154),char(3),char(115),char(255),char(236), -char(0),char(154),char(3),char(143),char(255),char(195),char(0),char(155),char(0),char(15), -char(255),char(215),char(0),char(155),char(0),char(17),char(255),char(215),char(0),char(155), -char(0),char(36),char(255),char(236),char(0),char(155),char(0),char(130),char(255),char(236), -char(0),char(155),char(0),char(131),char(255),char(236),char(0),char(155),char(0),char(132), -char(255),char(236),char(0),char(155),char(0),char(133),char(255),char(236),char(0),char(155), -char(0),char(134),char(255),char(236),char(0),char(155),char(0),char(135),char(255),char(236), -char(0),char(155),char(0),char(194),char(255),char(236),char(0),char(155),char(0),char(196), -char(255),char(236),char(0),char(155),char(0),char(198),char(255),char(236),char(0),char(155), -char(1),char(67),char(255),char(236),char(0),char(155),char(2),char(8),char(255),char(215), -char(0),char(155),char(2),char(12),char(255),char(215),char(0),char(155),char(2),char(88), -char(255),char(236),char(0),char(155),char(3),char(29),char(255),char(236),char(0),char(155), -char(3),char(31),char(255),char(236),char(0),char(155),char(3),char(33),char(255),char(236), -char(0),char(155),char(3),char(35),char(255),char(236),char(0),char(155),char(3),char(37), -char(255),char(236),char(0),char(155),char(3),char(39),char(255),char(236),char(0),char(155), -char(3),char(41),char(255),char(236),char(0),char(155),char(3),char(43),char(255),char(236), -char(0),char(155),char(3),char(45),char(255),char(236),char(0),char(155),char(3),char(47), -char(255),char(236),char(0),char(155),char(3),char(49),char(255),char(236),char(0),char(155), -char(3),char(51),char(255),char(236),char(0),char(156),char(0),char(15),char(255),char(215), -char(0),char(156),char(0),char(17),char(255),char(215),char(0),char(156),char(0),char(36), -char(255),char(236),char(0),char(156),char(0),char(130),char(255),char(236),char(0),char(156), -char(0),char(131),char(255),char(236),char(0),char(156),char(0),char(132),char(255),char(236), -char(0),char(156),char(0),char(133),char(255),char(236),char(0),char(156),char(0),char(134), -char(255),char(236),char(0),char(156),char(0),char(135),char(255),char(236),char(0),char(156), -char(0),char(194),char(255),char(236),char(0),char(156),char(0),char(196),char(255),char(236), -char(0),char(156),char(0),char(198),char(255),char(236),char(0),char(156),char(1),char(67), -char(255),char(236),char(0),char(156),char(2),char(8),char(255),char(215),char(0),char(156), -char(2),char(12),char(255),char(215),char(0),char(156),char(2),char(88),char(255),char(236), -char(0),char(156),char(3),char(29),char(255),char(236),char(0),char(156),char(3),char(31), -char(255),char(236),char(0),char(156),char(3),char(33),char(255),char(236),char(0),char(156), -char(3),char(35),char(255),char(236),char(0),char(156),char(3),char(37),char(255),char(236), -char(0),char(156),char(3),char(39),char(255),char(236),char(0),char(156),char(3),char(41), -char(255),char(236),char(0),char(156),char(3),char(43),char(255),char(236),char(0),char(156), -char(3),char(45),char(255),char(236),char(0),char(156),char(3),char(47),char(255),char(236), -char(0),char(156),char(3),char(49),char(255),char(236),char(0),char(156),char(3),char(51), -char(255),char(236),char(0),char(157),char(0),char(15),char(255),char(215),char(0),char(157), -char(0),char(17),char(255),char(215),char(0),char(157),char(0),char(36),char(255),char(236), -char(0),char(157),char(0),char(130),char(255),char(236),char(0),char(157),char(0),char(131), -char(255),char(236),char(0),char(157),char(0),char(132),char(255),char(236),char(0),char(157), -char(0),char(133),char(255),char(236),char(0),char(157),char(0),char(134),char(255),char(236), -char(0),char(157),char(0),char(135),char(255),char(236),char(0),char(157),char(0),char(194), -char(255),char(236),char(0),char(157),char(0),char(196),char(255),char(236),char(0),char(157), -char(0),char(198),char(255),char(236),char(0),char(157),char(1),char(67),char(255),char(236), -char(0),char(157),char(2),char(8),char(255),char(215),char(0),char(157),char(2),char(12), -char(255),char(215),char(0),char(157),char(2),char(88),char(255),char(236),char(0),char(157), -char(3),char(29),char(255),char(236),char(0),char(157),char(3),char(31),char(255),char(236), -char(0),char(157),char(3),char(33),char(255),char(236),char(0),char(157),char(3),char(35), -char(255),char(236),char(0),char(157),char(3),char(37),char(255),char(236),char(0),char(157), -char(3),char(39),char(255),char(236),char(0),char(157),char(3),char(41),char(255),char(236), -char(0),char(157),char(3),char(43),char(255),char(236),char(0),char(157),char(3),char(45), -char(255),char(236),char(0),char(157),char(3),char(47),char(255),char(236),char(0),char(157), -char(3),char(49),char(255),char(236),char(0),char(157),char(3),char(51),char(255),char(236), -char(0),char(158),char(0),char(15),char(255),char(215),char(0),char(158),char(0),char(17), -char(255),char(215),char(0),char(158),char(0),char(36),char(255),char(236),char(0),char(158), -char(0),char(130),char(255),char(236),char(0),char(158),char(0),char(131),char(255),char(236), -char(0),char(158),char(0),char(132),char(255),char(236),char(0),char(158),char(0),char(133), -char(255),char(236),char(0),char(158),char(0),char(134),char(255),char(236),char(0),char(158), -char(0),char(135),char(255),char(236),char(0),char(158),char(0),char(194),char(255),char(236), -char(0),char(158),char(0),char(196),char(255),char(236),char(0),char(158),char(0),char(198), -char(255),char(236),char(0),char(158),char(1),char(67),char(255),char(236),char(0),char(158), -char(2),char(8),char(255),char(215),char(0),char(158),char(2),char(12),char(255),char(215), -char(0),char(158),char(2),char(88),char(255),char(236),char(0),char(158),char(3),char(29), -char(255),char(236),char(0),char(158),char(3),char(31),char(255),char(236),char(0),char(158), -char(3),char(33),char(255),char(236),char(0),char(158),char(3),char(35),char(255),char(236), -char(0),char(158),char(3),char(37),char(255),char(236),char(0),char(158),char(3),char(39), -char(255),char(236),char(0),char(158),char(3),char(41),char(255),char(236),char(0),char(158), -char(3),char(43),char(255),char(236),char(0),char(158),char(3),char(45),char(255),char(236), -char(0),char(158),char(3),char(47),char(255),char(236),char(0),char(158),char(3),char(49), -char(255),char(236),char(0),char(158),char(3),char(51),char(255),char(236),char(0),char(159), -char(0),char(15),char(255),char(133),char(0),char(159),char(0),char(17),char(255),char(133), -char(0),char(159),char(0),char(34),char(0),char(41),char(0),char(159),char(0),char(36), -char(255),char(133),char(0),char(159),char(0),char(38),char(255),char(215),char(0),char(159), -char(0),char(42),char(255),char(215),char(0),char(159),char(0),char(50),char(255),char(215), -char(0),char(159),char(0),char(52),char(255),char(215),char(0),char(159),char(0),char(68), -char(255),char(154),char(0),char(159),char(0),char(70),char(255),char(154),char(0),char(159), -char(0),char(71),char(255),char(154),char(0),char(159),char(0),char(72),char(255),char(154), -char(0),char(159),char(0),char(74),char(255),char(215),char(0),char(159),char(0),char(80), -char(255),char(195),char(0),char(159),char(0),char(81),char(255),char(195),char(0),char(159), -char(0),char(82),char(255),char(154),char(0),char(159),char(0),char(83),char(255),char(195), -char(0),char(159),char(0),char(84),char(255),char(154),char(0),char(159),char(0),char(85), -char(255),char(195),char(0),char(159),char(0),char(86),char(255),char(174),char(0),char(159), -char(0),char(88),char(255),char(195),char(0),char(159),char(0),char(93),char(255),char(215), -char(0),char(159),char(0),char(130),char(255),char(133),char(0),char(159),char(0),char(131), -char(255),char(133),char(0),char(159),char(0),char(132),char(255),char(133),char(0),char(159), -char(0),char(133),char(255),char(133),char(0),char(159),char(0),char(134),char(255),char(133), -char(0),char(159),char(0),char(135),char(255),char(133),char(0),char(159),char(0),char(137), -char(255),char(215),char(0),char(159),char(0),char(148),char(255),char(215),char(0),char(159), -char(0),char(149),char(255),char(215),char(0),char(159),char(0),char(150),char(255),char(215), -char(0),char(159),char(0),char(151),char(255),char(215),char(0),char(159),char(0),char(152), -char(255),char(215),char(0),char(159),char(0),char(154),char(255),char(215),char(0),char(159), -char(0),char(162),char(255),char(154),char(0),char(159),char(0),char(163),char(255),char(154), -char(0),char(159),char(0),char(164),char(255),char(154),char(0),char(159),char(0),char(165), -char(255),char(154),char(0),char(159),char(0),char(166),char(255),char(154),char(0),char(159), -char(0),char(167),char(255),char(154),char(0),char(159),char(0),char(168),char(255),char(154), -char(0),char(159),char(0),char(169),char(255),char(154),char(0),char(159),char(0),char(170), -char(255),char(154),char(0),char(159),char(0),char(171),char(255),char(154),char(0),char(159), -char(0),char(172),char(255),char(154),char(0),char(159),char(0),char(173),char(255),char(154), -char(0),char(159),char(0),char(180),char(255),char(154),char(0),char(159),char(0),char(181), -char(255),char(154),char(0),char(159),char(0),char(182),char(255),char(154),char(0),char(159), -char(0),char(183),char(255),char(154),char(0),char(159),char(0),char(184),char(255),char(154), -char(0),char(159),char(0),char(186),char(255),char(154),char(0),char(159),char(0),char(187), -char(255),char(195),char(0),char(159),char(0),char(188),char(255),char(195),char(0),char(159), -char(0),char(189),char(255),char(195),char(0),char(159),char(0),char(190),char(255),char(195), -char(0),char(159),char(0),char(194),char(255),char(133),char(0),char(159),char(0),char(195), -char(255),char(154),char(0),char(159),char(0),char(196),char(255),char(133),char(0),char(159), -char(0),char(197),char(255),char(154),char(0),char(159),char(0),char(198),char(255),char(133), -char(0),char(159),char(0),char(199),char(255),char(154),char(0),char(159),char(0),char(200), -char(255),char(215),char(0),char(159),char(0),char(201),char(255),char(154),char(0),char(159), -char(0),char(202),char(255),char(215),char(0),char(159),char(0),char(203),char(255),char(154), -char(0),char(159),char(0),char(204),char(255),char(215),char(0),char(159),char(0),char(205), -char(255),char(154),char(0),char(159),char(0),char(206),char(255),char(215),char(0),char(159), -char(0),char(207),char(255),char(154),char(0),char(159),char(0),char(209),char(255),char(154), -char(0),char(159),char(0),char(211),char(255),char(154),char(0),char(159),char(0),char(213), -char(255),char(154),char(0),char(159),char(0),char(215),char(255),char(154),char(0),char(159), -char(0),char(217),char(255),char(154),char(0),char(159),char(0),char(219),char(255),char(154), -char(0),char(159),char(0),char(221),char(255),char(154),char(0),char(159),char(0),char(222), -char(255),char(215),char(0),char(159),char(0),char(223),char(255),char(215),char(0),char(159), -char(0),char(224),char(255),char(215),char(0),char(159),char(0),char(225),char(255),char(215), -char(0),char(159),char(0),char(226),char(255),char(215),char(0),char(159),char(0),char(227), -char(255),char(215),char(0),char(159),char(0),char(228),char(255),char(215),char(0),char(159), -char(0),char(229),char(255),char(215),char(0),char(159),char(0),char(250),char(255),char(195), -char(0),char(159),char(1),char(6),char(255),char(195),char(0),char(159),char(1),char(8), -char(255),char(195),char(0),char(159),char(1),char(13),char(255),char(195),char(0),char(159), -char(1),char(14),char(255),char(215),char(0),char(159),char(1),char(15),char(255),char(154), -char(0),char(159),char(1),char(16),char(255),char(215),char(0),char(159),char(1),char(17), -char(255),char(154),char(0),char(159),char(1),char(18),char(255),char(215),char(0),char(159), -char(1),char(19),char(255),char(154),char(0),char(159),char(1),char(20),char(255),char(215), -char(0),char(159),char(1),char(21),char(255),char(154),char(0),char(159),char(1),char(23), -char(255),char(195),char(0),char(159),char(1),char(25),char(255),char(195),char(0),char(159), -char(1),char(29),char(255),char(174),char(0),char(159),char(1),char(33),char(255),char(174), -char(0),char(159),char(1),char(43),char(255),char(195),char(0),char(159),char(1),char(45), -char(255),char(195),char(0),char(159),char(1),char(47),char(255),char(195),char(0),char(159), -char(1),char(49),char(255),char(195),char(0),char(159),char(1),char(51),char(255),char(195), -char(0),char(159),char(1),char(53),char(255),char(195),char(0),char(159),char(1),char(60), -char(255),char(215),char(0),char(159),char(1),char(62),char(255),char(215),char(0),char(159), -char(1),char(64),char(255),char(215),char(0),char(159),char(1),char(67),char(255),char(133), -char(0),char(159),char(1),char(68),char(255),char(154),char(0),char(159),char(1),char(70), -char(255),char(154),char(0),char(159),char(1),char(71),char(255),char(215),char(0),char(159), -char(1),char(72),char(255),char(154),char(0),char(159),char(1),char(74),char(255),char(174), -char(0),char(159),char(2),char(8),char(255),char(133),char(0),char(159),char(2),char(12), -char(255),char(133),char(0),char(159),char(2),char(87),char(255),char(195),char(0),char(159), -char(2),char(88),char(255),char(133),char(0),char(159),char(2),char(89),char(255),char(154), -char(0),char(159),char(2),char(95),char(255),char(215),char(0),char(159),char(2),char(96), -char(255),char(154),char(0),char(159),char(2),char(98),char(255),char(195),char(0),char(159), -char(3),char(29),char(255),char(133),char(0),char(159),char(3),char(30),char(255),char(154), -char(0),char(159),char(3),char(31),char(255),char(133),char(0),char(159),char(3),char(32), -char(255),char(154),char(0),char(159),char(3),char(33),char(255),char(133),char(0),char(159), -char(3),char(34),char(255),char(154),char(0),char(159),char(3),char(35),char(255),char(133), -char(0),char(159),char(3),char(37),char(255),char(133),char(0),char(159),char(3),char(38), -char(255),char(154),char(0),char(159),char(3),char(39),char(255),char(133),char(0),char(159), -char(3),char(40),char(255),char(154),char(0),char(159),char(3),char(41),char(255),char(133), -char(0),char(159),char(3),char(42),char(255),char(154),char(0),char(159),char(3),char(43), -char(255),char(133),char(0),char(159),char(3),char(44),char(255),char(154),char(0),char(159), -char(3),char(45),char(255),char(133),char(0),char(159),char(3),char(46),char(255),char(154), -char(0),char(159),char(3),char(47),char(255),char(133),char(0),char(159),char(3),char(48), -char(255),char(154),char(0),char(159),char(3),char(49),char(255),char(133),char(0),char(159), -char(3),char(50),char(255),char(154),char(0),char(159),char(3),char(51),char(255),char(133), -char(0),char(159),char(3),char(52),char(255),char(154),char(0),char(159),char(3),char(54), -char(255),char(154),char(0),char(159),char(3),char(56),char(255),char(154),char(0),char(159), -char(3),char(58),char(255),char(154),char(0),char(159),char(3),char(60),char(255),char(154), -char(0),char(159),char(3),char(64),char(255),char(154),char(0),char(159),char(3),char(66), -char(255),char(154),char(0),char(159),char(3),char(68),char(255),char(154),char(0),char(159), -char(3),char(73),char(255),char(215),char(0),char(159),char(3),char(74),char(255),char(154), -char(0),char(159),char(3),char(75),char(255),char(215),char(0),char(159),char(3),char(76), -char(255),char(154),char(0),char(159),char(3),char(77),char(255),char(215),char(0),char(159), -char(3),char(78),char(255),char(154),char(0),char(159),char(3),char(79),char(255),char(215), -char(0),char(159),char(3),char(81),char(255),char(215),char(0),char(159),char(3),char(82), -char(255),char(154),char(0),char(159),char(3),char(83),char(255),char(215),char(0),char(159), -char(3),char(84),char(255),char(154),char(0),char(159),char(3),char(85),char(255),char(215), -char(0),char(159),char(3),char(86),char(255),char(154),char(0),char(159),char(3),char(87), -char(255),char(215),char(0),char(159),char(3),char(88),char(255),char(154),char(0),char(159), -char(3),char(89),char(255),char(215),char(0),char(159),char(3),char(90),char(255),char(154), -char(0),char(159),char(3),char(91),char(255),char(215),char(0),char(159),char(3),char(92), -char(255),char(154),char(0),char(159),char(3),char(93),char(255),char(215),char(0),char(159), -char(3),char(94),char(255),char(154),char(0),char(159),char(3),char(95),char(255),char(215), -char(0),char(159),char(3),char(96),char(255),char(154),char(0),char(159),char(3),char(98), -char(255),char(195),char(0),char(159),char(3),char(100),char(255),char(195),char(0),char(159), -char(3),char(102),char(255),char(195),char(0),char(159),char(3),char(104),char(255),char(195), -char(0),char(159),char(3),char(106),char(255),char(195),char(0),char(159),char(3),char(108), -char(255),char(195),char(0),char(159),char(3),char(110),char(255),char(195),char(0),char(160), -char(0),char(15),char(254),char(246),char(0),char(160),char(0),char(17),char(254),char(246), -char(0),char(160),char(0),char(36),char(255),char(154),char(0),char(160),char(0),char(59), -char(255),char(215),char(0),char(160),char(0),char(61),char(255),char(236),char(0),char(160), -char(0),char(130),char(255),char(154),char(0),char(160),char(0),char(131),char(255),char(154), -char(0),char(160),char(0),char(132),char(255),char(154),char(0),char(160),char(0),char(133), -char(255),char(154),char(0),char(160),char(0),char(134),char(255),char(154),char(0),char(160), -char(0),char(135),char(255),char(154),char(0),char(160),char(0),char(194),char(255),char(154), -char(0),char(160),char(0),char(196),char(255),char(154),char(0),char(160),char(0),char(198), -char(255),char(154),char(0),char(160),char(1),char(59),char(255),char(236),char(0),char(160), -char(1),char(61),char(255),char(236),char(0),char(160),char(1),char(63),char(255),char(236), -char(0),char(160),char(1),char(67),char(255),char(154),char(0),char(160),char(2),char(8), -char(254),char(246),char(0),char(160),char(2),char(12),char(254),char(246),char(0),char(160), -char(2),char(88),char(255),char(154),char(0),char(160),char(3),char(29),char(255),char(154), -char(0),char(160),char(3),char(31),char(255),char(154),char(0),char(160),char(3),char(33), -char(255),char(154),char(0),char(160),char(3),char(35),char(255),char(154),char(0),char(160), -char(3),char(37),char(255),char(154),char(0),char(160),char(3),char(39),char(255),char(154), -char(0),char(160),char(3),char(41),char(255),char(154),char(0),char(160),char(3),char(43), -char(255),char(154),char(0),char(160),char(3),char(45),char(255),char(154),char(0),char(160), -char(3),char(47),char(255),char(154),char(0),char(160),char(3),char(49),char(255),char(154), -char(0),char(160),char(3),char(51),char(255),char(154),char(0),char(162),char(0),char(5), -char(255),char(236),char(0),char(162),char(0),char(10),char(255),char(236),char(0),char(162), -char(2),char(7),char(255),char(236),char(0),char(162),char(2),char(11),char(255),char(236), -char(0),char(163),char(0),char(5),char(255),char(236),char(0),char(163),char(0),char(10), -char(255),char(236),char(0),char(163),char(2),char(7),char(255),char(236),char(0),char(163), -char(2),char(11),char(255),char(236),char(0),char(164),char(0),char(5),char(255),char(236), -char(0),char(164),char(0),char(10),char(255),char(236),char(0),char(164),char(2),char(7), -char(255),char(236),char(0),char(164),char(2),char(11),char(255),char(236),char(0),char(165), -char(0),char(5),char(255),char(236),char(0),char(165),char(0),char(10),char(255),char(236), -char(0),char(165),char(2),char(7),char(255),char(236),char(0),char(165),char(2),char(11), -char(255),char(236),char(0),char(166),char(0),char(5),char(255),char(236),char(0),char(166), -char(0),char(10),char(255),char(236),char(0),char(166),char(2),char(7),char(255),char(236), -char(0),char(166),char(2),char(11),char(255),char(236),char(0),char(167),char(0),char(5), -char(255),char(236),char(0),char(167),char(0),char(10),char(255),char(236),char(0),char(167), -char(2),char(7),char(255),char(236),char(0),char(167),char(2),char(11),char(255),char(236), -char(0),char(170),char(0),char(5),char(255),char(236),char(0),char(170),char(0),char(10), -char(255),char(236),char(0),char(170),char(0),char(89),char(255),char(215),char(0),char(170), -char(0),char(90),char(255),char(215),char(0),char(170),char(0),char(91),char(255),char(215), -char(0),char(170),char(0),char(92),char(255),char(215),char(0),char(170),char(0),char(93), -char(255),char(236),char(0),char(170),char(0),char(191),char(255),char(215),char(0),char(170), -char(1),char(55),char(255),char(215),char(0),char(170),char(1),char(60),char(255),char(236), -char(0),char(170),char(1),char(62),char(255),char(236),char(0),char(170),char(1),char(64), -char(255),char(236),char(0),char(170),char(1),char(251),char(255),char(215),char(0),char(170), -char(1),char(253),char(255),char(215),char(0),char(170),char(2),char(7),char(255),char(236), -char(0),char(170),char(2),char(11),char(255),char(236),char(0),char(170),char(3),char(112), -char(255),char(215),char(0),char(171),char(0),char(5),char(255),char(236),char(0),char(171), -char(0),char(10),char(255),char(236),char(0),char(171),char(0),char(89),char(255),char(215), -char(0),char(171),char(0),char(90),char(255),char(215),char(0),char(171),char(0),char(91), -char(255),char(215),char(0),char(171),char(0),char(92),char(255),char(215),char(0),char(171), -char(0),char(93),char(255),char(236),char(0),char(171),char(0),char(191),char(255),char(215), -char(0),char(171),char(1),char(55),char(255),char(215),char(0),char(171),char(1),char(60), -char(255),char(236),char(0),char(171),char(1),char(62),char(255),char(236),char(0),char(171), -char(1),char(64),char(255),char(236),char(0),char(171),char(1),char(251),char(255),char(215), -char(0),char(171),char(1),char(253),char(255),char(215),char(0),char(171),char(2),char(7), -char(255),char(236),char(0),char(171),char(2),char(11),char(255),char(236),char(0),char(171), -char(3),char(112),char(255),char(215),char(0),char(172),char(0),char(5),char(255),char(236), -char(0),char(172),char(0),char(10),char(255),char(236),char(0),char(172),char(0),char(89), -char(255),char(215),char(0),char(172),char(0),char(90),char(255),char(215),char(0),char(172), -char(0),char(91),char(255),char(215),char(0),char(172),char(0),char(92),char(255),char(215), -char(0),char(172),char(0),char(93),char(255),char(236),char(0),char(172),char(0),char(191), -char(255),char(215),char(0),char(172),char(1),char(55),char(255),char(215),char(0),char(172), -char(1),char(60),char(255),char(236),char(0),char(172),char(1),char(62),char(255),char(236), -char(0),char(172),char(1),char(64),char(255),char(236),char(0),char(172),char(1),char(251), -char(255),char(215),char(0),char(172),char(1),char(253),char(255),char(215),char(0),char(172), -char(2),char(7),char(255),char(236),char(0),char(172),char(2),char(11),char(255),char(236), -char(0),char(172),char(3),char(112),char(255),char(215),char(0),char(173),char(0),char(5), -char(255),char(236),char(0),char(173),char(0),char(10),char(255),char(236),char(0),char(173), -char(0),char(89),char(255),char(215),char(0),char(173),char(0),char(90),char(255),char(215), -char(0),char(173),char(0),char(91),char(255),char(215),char(0),char(173),char(0),char(92), -char(255),char(215),char(0),char(173),char(0),char(93),char(255),char(236),char(0),char(173), -char(0),char(191),char(255),char(215),char(0),char(173),char(1),char(55),char(255),char(215), -char(0),char(173),char(1),char(60),char(255),char(236),char(0),char(173),char(1),char(62), -char(255),char(236),char(0),char(173),char(1),char(64),char(255),char(236),char(0),char(173), -char(1),char(251),char(255),char(215),char(0),char(173),char(1),char(253),char(255),char(215), -char(0),char(173),char(2),char(7),char(255),char(236),char(0),char(173),char(2),char(11), -char(255),char(236),char(0),char(173),char(3),char(112),char(255),char(215),char(0),char(178), -char(0),char(5),char(255),char(236),char(0),char(178),char(0),char(10),char(255),char(236), -char(0),char(178),char(0),char(89),char(255),char(215),char(0),char(178),char(0),char(90), -char(255),char(215),char(0),char(178),char(0),char(91),char(255),char(215),char(0),char(178), -char(0),char(92),char(255),char(215),char(0),char(178),char(0),char(93),char(255),char(236), -char(0),char(178),char(0),char(191),char(255),char(215),char(0),char(178),char(1),char(55), -char(255),char(215),char(0),char(178),char(1),char(60),char(255),char(236),char(0),char(178), -char(1),char(62),char(255),char(236),char(0),char(178),char(1),char(64),char(255),char(236), -char(0),char(178),char(1),char(251),char(255),char(215),char(0),char(178),char(1),char(253), -char(255),char(215),char(0),char(178),char(2),char(7),char(255),char(236),char(0),char(178), -char(2),char(11),char(255),char(236),char(0),char(178),char(3),char(112),char(255),char(215), -char(0),char(180),char(0),char(5),char(255),char(236),char(0),char(180),char(0),char(10), -char(255),char(236),char(0),char(180),char(0),char(89),char(255),char(215),char(0),char(180), -char(0),char(90),char(255),char(215),char(0),char(180),char(0),char(91),char(255),char(215), -char(0),char(180),char(0),char(92),char(255),char(215),char(0),char(180),char(0),char(93), -char(255),char(236),char(0),char(180),char(0),char(191),char(255),char(215),char(0),char(180), -char(1),char(55),char(255),char(215),char(0),char(180),char(1),char(60),char(255),char(236), -char(0),char(180),char(1),char(62),char(255),char(236),char(0),char(180),char(1),char(64), -char(255),char(236),char(0),char(180),char(1),char(251),char(255),char(215),char(0),char(180), -char(1),char(253),char(255),char(215),char(0),char(180),char(2),char(7),char(255),char(236), -char(0),char(180),char(2),char(11),char(255),char(236),char(0),char(180),char(3),char(112), -char(255),char(215),char(0),char(181),char(0),char(5),char(255),char(236),char(0),char(181), -char(0),char(10),char(255),char(236),char(0),char(181),char(0),char(89),char(255),char(215), -char(0),char(181),char(0),char(90),char(255),char(215),char(0),char(181),char(0),char(91), -char(255),char(215),char(0),char(181),char(0),char(92),char(255),char(215),char(0),char(181), -char(0),char(93),char(255),char(236),char(0),char(181),char(0),char(191),char(255),char(215), -char(0),char(181),char(1),char(55),char(255),char(215),char(0),char(181),char(1),char(60), -char(255),char(236),char(0),char(181),char(1),char(62),char(255),char(236),char(0),char(181), -char(1),char(64),char(255),char(236),char(0),char(181),char(1),char(251),char(255),char(215), -char(0),char(181),char(1),char(253),char(255),char(215),char(0),char(181),char(2),char(7), -char(255),char(236),char(0),char(181),char(2),char(11),char(255),char(236),char(0),char(181), -char(3),char(112),char(255),char(215),char(0),char(182),char(0),char(5),char(255),char(236), -char(0),char(182),char(0),char(10),char(255),char(236),char(0),char(182),char(0),char(89), -char(255),char(215),char(0),char(182),char(0),char(90),char(255),char(215),char(0),char(182), -char(0),char(91),char(255),char(215),char(0),char(182),char(0),char(92),char(255),char(215), -char(0),char(182),char(0),char(93),char(255),char(236),char(0),char(182),char(0),char(191), -char(255),char(215),char(0),char(182),char(1),char(55),char(255),char(215),char(0),char(182), -char(1),char(60),char(255),char(236),char(0),char(182),char(1),char(62),char(255),char(236), -char(0),char(182),char(1),char(64),char(255),char(236),char(0),char(182),char(1),char(251), -char(255),char(215),char(0),char(182),char(1),char(253),char(255),char(215),char(0),char(182), -char(2),char(7),char(255),char(236),char(0),char(182),char(2),char(11),char(255),char(236), -char(0),char(182),char(3),char(112),char(255),char(215),char(0),char(184),char(0),char(5), -char(255),char(215),char(0),char(184),char(0),char(10),char(255),char(215),char(0),char(184), -char(2),char(7),char(255),char(215),char(0),char(184),char(2),char(11),char(255),char(215), -char(0),char(186),char(0),char(5),char(255),char(236),char(0),char(186),char(0),char(10), -char(255),char(236),char(0),char(186),char(0),char(89),char(255),char(215),char(0),char(186), -char(0),char(90),char(255),char(215),char(0),char(186),char(0),char(91),char(255),char(215), -char(0),char(186),char(0),char(92),char(255),char(215),char(0),char(186),char(0),char(93), -char(255),char(236),char(0),char(186),char(0),char(191),char(255),char(215),char(0),char(186), -char(1),char(55),char(255),char(215),char(0),char(186),char(1),char(60),char(255),char(236), -char(0),char(186),char(1),char(62),char(255),char(236),char(0),char(186),char(1),char(64), -char(255),char(236),char(0),char(186),char(1),char(251),char(255),char(215),char(0),char(186), -char(1),char(253),char(255),char(215),char(0),char(186),char(2),char(7),char(255),char(236), -char(0),char(186),char(2),char(11),char(255),char(236),char(0),char(186),char(3),char(112), -char(255),char(215),char(0),char(191),char(0),char(5),char(0),char(82),char(0),char(191), -char(0),char(10),char(0),char(82),char(0),char(191),char(0),char(15),char(255),char(174), -char(0),char(191),char(0),char(17),char(255),char(174),char(0),char(191),char(0),char(34), -char(0),char(41),char(0),char(191),char(2),char(7),char(0),char(82),char(0),char(191), -char(2),char(8),char(255),char(174),char(0),char(191),char(2),char(11),char(0),char(82), -char(0),char(191),char(2),char(12),char(255),char(174),char(0),char(192),char(0),char(5), -char(255),char(236),char(0),char(192),char(0),char(10),char(255),char(236),char(0),char(192), -char(0),char(89),char(255),char(215),char(0),char(192),char(0),char(90),char(255),char(215), -char(0),char(192),char(0),char(91),char(255),char(215),char(0),char(192),char(0),char(92), -char(255),char(215),char(0),char(192),char(0),char(93),char(255),char(236),char(0),char(192), -char(0),char(191),char(255),char(215),char(0),char(192),char(1),char(55),char(255),char(215), -char(0),char(192),char(1),char(60),char(255),char(236),char(0),char(192),char(1),char(62), -char(255),char(236),char(0),char(192),char(1),char(64),char(255),char(236),char(0),char(192), -char(1),char(251),char(255),char(215),char(0),char(192),char(1),char(253),char(255),char(215), -char(0),char(192),char(2),char(7),char(255),char(236),char(0),char(192),char(2),char(11), -char(255),char(236),char(0),char(192),char(3),char(112),char(255),char(215),char(0),char(193), -char(0),char(5),char(0),char(82),char(0),char(193),char(0),char(10),char(0),char(82), -char(0),char(193),char(0),char(15),char(255),char(174),char(0),char(193),char(0),char(17), -char(255),char(174),char(0),char(193),char(0),char(34),char(0),char(41),char(0),char(193), -char(2),char(7),char(0),char(82),char(0),char(193),char(2),char(8),char(255),char(174), -char(0),char(193),char(2),char(11),char(0),char(82),char(0),char(193),char(2),char(12), -char(255),char(174),char(0),char(194),char(0),char(5),char(255),char(113),char(0),char(194), -char(0),char(10),char(255),char(113),char(0),char(194),char(0),char(38),char(255),char(215), -char(0),char(194),char(0),char(42),char(255),char(215),char(0),char(194),char(0),char(45), -char(1),char(10),char(0),char(194),char(0),char(50),char(255),char(215),char(0),char(194), -char(0),char(52),char(255),char(215),char(0),char(194),char(0),char(55),char(255),char(113), -char(0),char(194),char(0),char(57),char(255),char(174),char(0),char(194),char(0),char(58), -char(255),char(174),char(0),char(194),char(0),char(60),char(255),char(133),char(0),char(194), -char(0),char(137),char(255),char(215),char(0),char(194),char(0),char(148),char(255),char(215), -char(0),char(194),char(0),char(149),char(255),char(215),char(0),char(194),char(0),char(150), -char(255),char(215),char(0),char(194),char(0),char(151),char(255),char(215),char(0),char(194), -char(0),char(152),char(255),char(215),char(0),char(194),char(0),char(154),char(255),char(215), -char(0),char(194),char(0),char(159),char(255),char(133),char(0),char(194),char(0),char(200), -char(255),char(215),char(0),char(194),char(0),char(202),char(255),char(215),char(0),char(194), -char(0),char(204),char(255),char(215),char(0),char(194),char(0),char(206),char(255),char(215), -char(0),char(194),char(0),char(222),char(255),char(215),char(0),char(194),char(0),char(224), -char(255),char(215),char(0),char(194),char(0),char(226),char(255),char(215),char(0),char(194), -char(0),char(228),char(255),char(215),char(0),char(194),char(1),char(14),char(255),char(215), -char(0),char(194),char(1),char(16),char(255),char(215),char(0),char(194),char(1),char(18), -char(255),char(215),char(0),char(194),char(1),char(20),char(255),char(215),char(0),char(194), -char(1),char(36),char(255),char(113),char(0),char(194),char(1),char(38),char(255),char(113), -char(0),char(194),char(1),char(54),char(255),char(174),char(0),char(194),char(1),char(56), -char(255),char(133),char(0),char(194),char(1),char(58),char(255),char(133),char(0),char(194), -char(1),char(71),char(255),char(215),char(0),char(194),char(1),char(250),char(255),char(174), -char(0),char(194),char(1),char(252),char(255),char(174),char(0),char(194),char(1),char(254), -char(255),char(174),char(0),char(194),char(2),char(0),char(255),char(133),char(0),char(194), -char(2),char(7),char(255),char(113),char(0),char(194),char(2),char(11),char(255),char(113), -char(0),char(194),char(2),char(95),char(255),char(215),char(0),char(194),char(3),char(73), -char(255),char(215),char(0),char(194),char(3),char(75),char(255),char(215),char(0),char(194), -char(3),char(77),char(255),char(215),char(0),char(194),char(3),char(79),char(255),char(215), -char(0),char(194),char(3),char(81),char(255),char(215),char(0),char(194),char(3),char(83), -char(255),char(215),char(0),char(194),char(3),char(85),char(255),char(215),char(0),char(194), -char(3),char(87),char(255),char(215),char(0),char(194),char(3),char(89),char(255),char(215), -char(0),char(194),char(3),char(91),char(255),char(215),char(0),char(194),char(3),char(93), -char(255),char(215),char(0),char(194),char(3),char(95),char(255),char(215),char(0),char(194), -char(3),char(111),char(255),char(133),char(0),char(194),char(3),char(113),char(255),char(133), -char(0),char(194),char(3),char(115),char(255),char(133),char(0),char(194),char(3),char(143), -char(255),char(113),char(0),char(195),char(0),char(5),char(255),char(236),char(0),char(195), -char(0),char(10),char(255),char(236),char(0),char(195),char(2),char(7),char(255),char(236), -char(0),char(195),char(2),char(11),char(255),char(236),char(0),char(196),char(0),char(5), -char(255),char(113),char(0),char(196),char(0),char(10),char(255),char(113),char(0),char(196), -char(0),char(38),char(255),char(215),char(0),char(196),char(0),char(42),char(255),char(215), -char(0),char(196),char(0),char(45),char(1),char(10),char(0),char(196),char(0),char(50), -char(255),char(215),char(0),char(196),char(0),char(52),char(255),char(215),char(0),char(196), -char(0),char(55),char(255),char(113),char(0),char(196),char(0),char(57),char(255),char(174), -char(0),char(196),char(0),char(58),char(255),char(174),char(0),char(196),char(0),char(60), -char(255),char(133),char(0),char(196),char(0),char(137),char(255),char(215),char(0),char(196), -char(0),char(148),char(255),char(215),char(0),char(196),char(0),char(149),char(255),char(215), -char(0),char(196),char(0),char(150),char(255),char(215),char(0),char(196),char(0),char(151), -char(255),char(215),char(0),char(196),char(0),char(152),char(255),char(215),char(0),char(196), -char(0),char(154),char(255),char(215),char(0),char(196),char(0),char(159),char(255),char(133), -char(0),char(196),char(0),char(200),char(255),char(215),char(0),char(196),char(0),char(202), -char(255),char(215),char(0),char(196),char(0),char(204),char(255),char(215),char(0),char(196), -char(0),char(206),char(255),char(215),char(0),char(196),char(0),char(222),char(255),char(215), -char(0),char(196),char(0),char(224),char(255),char(215),char(0),char(196),char(0),char(226), -char(255),char(215),char(0),char(196),char(0),char(228),char(255),char(215),char(0),char(196), -char(1),char(14),char(255),char(215),char(0),char(196),char(1),char(16),char(255),char(215), -char(0),char(196),char(1),char(18),char(255),char(215),char(0),char(196),char(1),char(20), -char(255),char(215),char(0),char(196),char(1),char(36),char(255),char(113),char(0),char(196), -char(1),char(38),char(255),char(113),char(0),char(196),char(1),char(54),char(255),char(174), -char(0),char(196),char(1),char(56),char(255),char(133),char(0),char(196),char(1),char(58), -char(255),char(133),char(0),char(196),char(1),char(71),char(255),char(215),char(0),char(196), -char(1),char(250),char(255),char(174),char(0),char(196),char(1),char(252),char(255),char(174), -char(0),char(196),char(1),char(254),char(255),char(174),char(0),char(196),char(2),char(0), -char(255),char(133),char(0),char(196),char(2),char(7),char(255),char(113),char(0),char(196), -char(2),char(11),char(255),char(113),char(0),char(196),char(2),char(95),char(255),char(215), -char(0),char(196),char(3),char(73),char(255),char(215),char(0),char(196),char(3),char(75), -char(255),char(215),char(0),char(196),char(3),char(77),char(255),char(215),char(0),char(196), -char(3),char(79),char(255),char(215),char(0),char(196),char(3),char(81),char(255),char(215), -char(0),char(196),char(3),char(83),char(255),char(215),char(0),char(196),char(3),char(85), -char(255),char(215),char(0),char(196),char(3),char(87),char(255),char(215),char(0),char(196), -char(3),char(89),char(255),char(215),char(0),char(196),char(3),char(91),char(255),char(215), -char(0),char(196),char(3),char(93),char(255),char(215),char(0),char(196),char(3),char(95), -char(255),char(215),char(0),char(196),char(3),char(111),char(255),char(133),char(0),char(196), -char(3),char(113),char(255),char(133),char(0),char(196),char(3),char(115),char(255),char(133), -char(0),char(196),char(3),char(143),char(255),char(113),char(0),char(197),char(0),char(5), -char(255),char(236),char(0),char(197),char(0),char(10),char(255),char(236),char(0),char(197), -char(2),char(7),char(255),char(236),char(0),char(197),char(2),char(11),char(255),char(236), -char(0),char(198),char(0),char(5),char(255),char(113),char(0),char(198),char(0),char(10), -char(255),char(113),char(0),char(198),char(0),char(38),char(255),char(215),char(0),char(198), -char(0),char(42),char(255),char(215),char(0),char(198),char(0),char(45),char(1),char(10), -char(0),char(198),char(0),char(50),char(255),char(215),char(0),char(198),char(0),char(52), -char(255),char(215),char(0),char(198),char(0),char(55),char(255),char(113),char(0),char(198), -char(0),char(57),char(255),char(174),char(0),char(198),char(0),char(58),char(255),char(174), -char(0),char(198),char(0),char(60),char(255),char(133),char(0),char(198),char(0),char(137), -char(255),char(215),char(0),char(198),char(0),char(148),char(255),char(215),char(0),char(198), -char(0),char(149),char(255),char(215),char(0),char(198),char(0),char(150),char(255),char(215), -char(0),char(198),char(0),char(151),char(255),char(215),char(0),char(198),char(0),char(152), -char(255),char(215),char(0),char(198),char(0),char(154),char(255),char(215),char(0),char(198), -char(0),char(159),char(255),char(133),char(0),char(198),char(0),char(200),char(255),char(215), -char(0),char(198),char(0),char(202),char(255),char(215),char(0),char(198),char(0),char(204), -char(255),char(215),char(0),char(198),char(0),char(206),char(255),char(215),char(0),char(198), -char(0),char(222),char(255),char(215),char(0),char(198),char(0),char(224),char(255),char(215), -char(0),char(198),char(0),char(226),char(255),char(215),char(0),char(198),char(0),char(228), -char(255),char(215),char(0),char(198),char(1),char(14),char(255),char(215),char(0),char(198), -char(1),char(16),char(255),char(215),char(0),char(198),char(1),char(18),char(255),char(215), -char(0),char(198),char(1),char(20),char(255),char(215),char(0),char(198),char(1),char(36), -char(255),char(113),char(0),char(198),char(1),char(38),char(255),char(113),char(0),char(198), -char(1),char(54),char(255),char(174),char(0),char(198),char(1),char(56),char(255),char(133), -char(0),char(198),char(1),char(58),char(255),char(133),char(0),char(198),char(1),char(71), -char(255),char(215),char(0),char(198),char(1),char(250),char(255),char(174),char(0),char(198), -char(1),char(252),char(255),char(174),char(0),char(198),char(1),char(254),char(255),char(174), -char(0),char(198),char(2),char(0),char(255),char(133),char(0),char(198),char(2),char(7), -char(255),char(113),char(0),char(198),char(2),char(11),char(255),char(113),char(0),char(198), -char(2),char(95),char(255),char(215),char(0),char(198),char(3),char(73),char(255),char(215), -char(0),char(198),char(3),char(75),char(255),char(215),char(0),char(198),char(3),char(77), -char(255),char(215),char(0),char(198),char(3),char(79),char(255),char(215),char(0),char(198), -char(3),char(81),char(255),char(215),char(0),char(198),char(3),char(83),char(255),char(215), -char(0),char(198),char(3),char(85),char(255),char(215),char(0),char(198),char(3),char(87), -char(255),char(215),char(0),char(198),char(3),char(89),char(255),char(215),char(0),char(198), -char(3),char(91),char(255),char(215),char(0),char(198),char(3),char(93),char(255),char(215), -char(0),char(198),char(3),char(95),char(255),char(215),char(0),char(198),char(3),char(111), -char(255),char(133),char(0),char(198),char(3),char(113),char(255),char(133),char(0),char(198), -char(3),char(115),char(255),char(133),char(0),char(198),char(3),char(143),char(255),char(113), -char(0),char(199),char(0),char(5),char(255),char(236),char(0),char(199),char(0),char(10), -char(255),char(236),char(0),char(199),char(2),char(7),char(255),char(236),char(0),char(199), -char(2),char(11),char(255),char(236),char(0),char(200),char(0),char(38),char(255),char(215), -char(0),char(200),char(0),char(42),char(255),char(215),char(0),char(200),char(0),char(50), -char(255),char(215),char(0),char(200),char(0),char(52),char(255),char(215),char(0),char(200), -char(0),char(137),char(255),char(215),char(0),char(200),char(0),char(148),char(255),char(215), -char(0),char(200),char(0),char(149),char(255),char(215),char(0),char(200),char(0),char(150), -char(255),char(215),char(0),char(200),char(0),char(151),char(255),char(215),char(0),char(200), -char(0),char(152),char(255),char(215),char(0),char(200),char(0),char(154),char(255),char(215), -char(0),char(200),char(0),char(200),char(255),char(215),char(0),char(200),char(0),char(202), -char(255),char(215),char(0),char(200),char(0),char(204),char(255),char(215),char(0),char(200), -char(0),char(206),char(255),char(215),char(0),char(200),char(0),char(222),char(255),char(215), -char(0),char(200),char(0),char(224),char(255),char(215),char(0),char(200),char(0),char(226), -char(255),char(215),char(0),char(200),char(0),char(228),char(255),char(215),char(0),char(200), -char(1),char(14),char(255),char(215),char(0),char(200),char(1),char(16),char(255),char(215), -char(0),char(200),char(1),char(18),char(255),char(215),char(0),char(200),char(1),char(20), -char(255),char(215),char(0),char(200),char(1),char(71),char(255),char(215),char(0),char(200), -char(2),char(95),char(255),char(215),char(0),char(200),char(3),char(73),char(255),char(215), -char(0),char(200),char(3),char(75),char(255),char(215),char(0),char(200),char(3),char(77), -char(255),char(215),char(0),char(200),char(3),char(79),char(255),char(215),char(0),char(200), -char(3),char(81),char(255),char(215),char(0),char(200),char(3),char(83),char(255),char(215), -char(0),char(200),char(3),char(85),char(255),char(215),char(0),char(200),char(3),char(87), -char(255),char(215),char(0),char(200),char(3),char(89),char(255),char(215),char(0),char(200), -char(3),char(91),char(255),char(215),char(0),char(200),char(3),char(93),char(255),char(215), -char(0),char(200),char(3),char(95),char(255),char(215),char(0),char(202),char(0),char(38), -char(255),char(215),char(0),char(202),char(0),char(42),char(255),char(215),char(0),char(202), -char(0),char(50),char(255),char(215),char(0),char(202),char(0),char(52),char(255),char(215), -char(0),char(202),char(0),char(137),char(255),char(215),char(0),char(202),char(0),char(148), -char(255),char(215),char(0),char(202),char(0),char(149),char(255),char(215),char(0),char(202), -char(0),char(150),char(255),char(215),char(0),char(202),char(0),char(151),char(255),char(215), -char(0),char(202),char(0),char(152),char(255),char(215),char(0),char(202),char(0),char(154), -char(255),char(215),char(0),char(202),char(0),char(200),char(255),char(215),char(0),char(202), -char(0),char(202),char(255),char(215),char(0),char(202),char(0),char(204),char(255),char(215), -char(0),char(202),char(0),char(206),char(255),char(215),char(0),char(202),char(0),char(222), -char(255),char(215),char(0),char(202),char(0),char(224),char(255),char(215),char(0),char(202), -char(0),char(226),char(255),char(215),char(0),char(202),char(0),char(228),char(255),char(215), -char(0),char(202),char(1),char(14),char(255),char(215),char(0),char(202),char(1),char(16), -char(255),char(215),char(0),char(202),char(1),char(18),char(255),char(215),char(0),char(202), -char(1),char(20),char(255),char(215),char(0),char(202),char(1),char(71),char(255),char(215), -char(0),char(202),char(2),char(95),char(255),char(215),char(0),char(202),char(3),char(73), -char(255),char(215),char(0),char(202),char(3),char(75),char(255),char(215),char(0),char(202), -char(3),char(77),char(255),char(215),char(0),char(202),char(3),char(79),char(255),char(215), -char(0),char(202),char(3),char(81),char(255),char(215),char(0),char(202),char(3),char(83), -char(255),char(215),char(0),char(202),char(3),char(85),char(255),char(215),char(0),char(202), -char(3),char(87),char(255),char(215),char(0),char(202),char(3),char(89),char(255),char(215), -char(0),char(202),char(3),char(91),char(255),char(215),char(0),char(202),char(3),char(93), -char(255),char(215),char(0),char(202),char(3),char(95),char(255),char(215),char(0),char(204), -char(0),char(38),char(255),char(215),char(0),char(204),char(0),char(42),char(255),char(215), -char(0),char(204),char(0),char(50),char(255),char(215),char(0),char(204),char(0),char(52), -char(255),char(215),char(0),char(204),char(0),char(137),char(255),char(215),char(0),char(204), -char(0),char(148),char(255),char(215),char(0),char(204),char(0),char(149),char(255),char(215), -char(0),char(204),char(0),char(150),char(255),char(215),char(0),char(204),char(0),char(151), -char(255),char(215),char(0),char(204),char(0),char(152),char(255),char(215),char(0),char(204), -char(0),char(154),char(255),char(215),char(0),char(204),char(0),char(200),char(255),char(215), -char(0),char(204),char(0),char(202),char(255),char(215),char(0),char(204),char(0),char(204), -char(255),char(215),char(0),char(204),char(0),char(206),char(255),char(215),char(0),char(204), -char(0),char(222),char(255),char(215),char(0),char(204),char(0),char(224),char(255),char(215), -char(0),char(204),char(0),char(226),char(255),char(215),char(0),char(204),char(0),char(228), -char(255),char(215),char(0),char(204),char(1),char(14),char(255),char(215),char(0),char(204), -char(1),char(16),char(255),char(215),char(0),char(204),char(1),char(18),char(255),char(215), -char(0),char(204),char(1),char(20),char(255),char(215),char(0),char(204),char(1),char(71), -char(255),char(215),char(0),char(204),char(2),char(95),char(255),char(215),char(0),char(204), -char(3),char(73),char(255),char(215),char(0),char(204),char(3),char(75),char(255),char(215), -char(0),char(204),char(3),char(77),char(255),char(215),char(0),char(204),char(3),char(79), -char(255),char(215),char(0),char(204),char(3),char(81),char(255),char(215),char(0),char(204), -char(3),char(83),char(255),char(215),char(0),char(204),char(3),char(85),char(255),char(215), -char(0),char(204),char(3),char(87),char(255),char(215),char(0),char(204),char(3),char(89), -char(255),char(215),char(0),char(204),char(3),char(91),char(255),char(215),char(0),char(204), -char(3),char(93),char(255),char(215),char(0),char(204),char(3),char(95),char(255),char(215), -char(0),char(206),char(0),char(38),char(255),char(215),char(0),char(206),char(0),char(42), -char(255),char(215),char(0),char(206),char(0),char(50),char(255),char(215),char(0),char(206), -char(0),char(52),char(255),char(215),char(0),char(206),char(0),char(137),char(255),char(215), -char(0),char(206),char(0),char(148),char(255),char(215),char(0),char(206),char(0),char(149), -char(255),char(215),char(0),char(206),char(0),char(150),char(255),char(215),char(0),char(206), -char(0),char(151),char(255),char(215),char(0),char(206),char(0),char(152),char(255),char(215), -char(0),char(206),char(0),char(154),char(255),char(215),char(0),char(206),char(0),char(200), -char(255),char(215),char(0),char(206),char(0),char(202),char(255),char(215),char(0),char(206), -char(0),char(204),char(255),char(215),char(0),char(206),char(0),char(206),char(255),char(215), -char(0),char(206),char(0),char(222),char(255),char(215),char(0),char(206),char(0),char(224), -char(255),char(215),char(0),char(206),char(0),char(226),char(255),char(215),char(0),char(206), -char(0),char(228),char(255),char(215),char(0),char(206),char(1),char(14),char(255),char(215), -char(0),char(206),char(1),char(16),char(255),char(215),char(0),char(206),char(1),char(18), -char(255),char(215),char(0),char(206),char(1),char(20),char(255),char(215),char(0),char(206), -char(1),char(71),char(255),char(215),char(0),char(206),char(2),char(95),char(255),char(215), -char(0),char(206),char(3),char(73),char(255),char(215),char(0),char(206),char(3),char(75), -char(255),char(215),char(0),char(206),char(3),char(77),char(255),char(215),char(0),char(206), -char(3),char(79),char(255),char(215),char(0),char(206),char(3),char(81),char(255),char(215), -char(0),char(206),char(3),char(83),char(255),char(215),char(0),char(206),char(3),char(85), -char(255),char(215),char(0),char(206),char(3),char(87),char(255),char(215),char(0),char(206), -char(3),char(89),char(255),char(215),char(0),char(206),char(3),char(91),char(255),char(215), -char(0),char(206),char(3),char(93),char(255),char(215),char(0),char(206),char(3),char(95), -char(255),char(215),char(0),char(208),char(0),char(15),char(255),char(174),char(0),char(208), -char(0),char(17),char(255),char(174),char(0),char(208),char(0),char(36),char(255),char(215), -char(0),char(208),char(0),char(55),char(255),char(195),char(0),char(208),char(0),char(57), -char(255),char(236),char(0),char(208),char(0),char(58),char(255),char(236),char(0),char(208), -char(0),char(59),char(255),char(215),char(0),char(208),char(0),char(60),char(255),char(236), -char(0),char(208),char(0),char(61),char(255),char(236),char(0),char(208),char(0),char(130), -char(255),char(215),char(0),char(208),char(0),char(131),char(255),char(215),char(0),char(208), -char(0),char(132),char(255),char(215),char(0),char(208),char(0),char(133),char(255),char(215), -char(0),char(208),char(0),char(134),char(255),char(215),char(0),char(208),char(0),char(135), -char(255),char(215),char(0),char(208),char(0),char(159),char(255),char(236),char(0),char(208), -char(0),char(194),char(255),char(215),char(0),char(208),char(0),char(196),char(255),char(215), -char(0),char(208),char(0),char(198),char(255),char(215),char(0),char(208),char(1),char(36), -char(255),char(195),char(0),char(208),char(1),char(38),char(255),char(195),char(0),char(208), -char(1),char(54),char(255),char(236),char(0),char(208),char(1),char(56),char(255),char(236), -char(0),char(208),char(1),char(58),char(255),char(236),char(0),char(208),char(1),char(59), -char(255),char(236),char(0),char(208),char(1),char(61),char(255),char(236),char(0),char(208), -char(1),char(63),char(255),char(236),char(0),char(208),char(1),char(67),char(255),char(215), -char(0),char(208),char(1),char(160),char(255),char(236),char(0),char(208),char(1),char(250), -char(255),char(236),char(0),char(208),char(1),char(252),char(255),char(236),char(0),char(208), -char(1),char(254),char(255),char(236),char(0),char(208),char(2),char(0),char(255),char(236), -char(0),char(208),char(2),char(8),char(255),char(174),char(0),char(208),char(2),char(12), -char(255),char(174),char(0),char(208),char(2),char(88),char(255),char(215),char(0),char(208), -char(3),char(29),char(255),char(215),char(0),char(208),char(3),char(31),char(255),char(215), -char(0),char(208),char(3),char(33),char(255),char(215),char(0),char(208),char(3),char(35), -char(255),char(215),char(0),char(208),char(3),char(37),char(255),char(215),char(0),char(208), -char(3),char(39),char(255),char(215),char(0),char(208),char(3),char(41),char(255),char(215), -char(0),char(208),char(3),char(43),char(255),char(215),char(0),char(208),char(3),char(45), -char(255),char(215),char(0),char(208),char(3),char(47),char(255),char(215),char(0),char(208), -char(3),char(49),char(255),char(215),char(0),char(208),char(3),char(51),char(255),char(215), -char(0),char(208),char(3),char(111),char(255),char(236),char(0),char(208),char(3),char(113), -char(255),char(236),char(0),char(208),char(3),char(115),char(255),char(236),char(0),char(208), -char(3),char(143),char(255),char(195),char(0),char(209),char(0),char(5),char(0),char(82), -char(0),char(209),char(0),char(10),char(0),char(82),char(0),char(209),char(0),char(12), -char(0),char(143),char(0),char(209),char(0),char(34),char(0),char(164),char(0),char(209), -char(0),char(64),char(0),char(143),char(0),char(209),char(0),char(69),char(0),char(61), -char(0),char(209),char(0),char(75),char(0),char(61),char(0),char(209),char(0),char(78), -char(0),char(61),char(0),char(209),char(0),char(79),char(0),char(61),char(0),char(209), -char(0),char(96),char(0),char(143),char(0),char(209),char(0),char(231),char(0),char(61), -char(0),char(209),char(0),char(233),char(0),char(123),char(0),char(209),char(2),char(7), -char(0),char(82),char(0),char(209),char(2),char(11),char(0),char(82),char(0),char(210), -char(0),char(15),char(255),char(174),char(0),char(210),char(0),char(17),char(255),char(174), -char(0),char(210),char(0),char(36),char(255),char(215),char(0),char(210),char(0),char(55), -char(255),char(195),char(0),char(210),char(0),char(57),char(255),char(236),char(0),char(210), -char(0),char(58),char(255),char(236),char(0),char(210),char(0),char(59),char(255),char(215), -char(0),char(210),char(0),char(60),char(255),char(236),char(0),char(210),char(0),char(61), -char(255),char(236),char(0),char(210),char(0),char(130),char(255),char(215),char(0),char(210), -char(0),char(131),char(255),char(215),char(0),char(210),char(0),char(132),char(255),char(215), -char(0),char(210),char(0),char(133),char(255),char(215),char(0),char(210),char(0),char(134), -char(255),char(215),char(0),char(210),char(0),char(135),char(255),char(215),char(0),char(210), -char(0),char(159),char(255),char(236),char(0),char(210),char(0),char(194),char(255),char(215), -char(0),char(210),char(0),char(196),char(255),char(215),char(0),char(210),char(0),char(198), -char(255),char(215),char(0),char(210),char(1),char(36),char(255),char(195),char(0),char(210), -char(1),char(38),char(255),char(195),char(0),char(210),char(1),char(54),char(255),char(236), -char(0),char(210),char(1),char(56),char(255),char(236),char(0),char(210),char(1),char(58), -char(255),char(236),char(0),char(210),char(1),char(59),char(255),char(236),char(0),char(210), -char(1),char(61),char(255),char(236),char(0),char(210),char(1),char(63),char(255),char(236), -char(0),char(210),char(1),char(67),char(255),char(215),char(0),char(210),char(1),char(160), -char(255),char(236),char(0),char(210),char(1),char(250),char(255),char(236),char(0),char(210), -char(1),char(252),char(255),char(236),char(0),char(210),char(1),char(254),char(255),char(236), -char(0),char(210),char(2),char(0),char(255),char(236),char(0),char(210),char(2),char(8), -char(255),char(174),char(0),char(210),char(2),char(12),char(255),char(174),char(0),char(210), -char(2),char(88),char(255),char(215),char(0),char(210),char(3),char(29),char(255),char(215), -char(0),char(210),char(3),char(31),char(255),char(215),char(0),char(210),char(3),char(33), -char(255),char(215),char(0),char(210),char(3),char(35),char(255),char(215),char(0),char(210), -char(3),char(37),char(255),char(215),char(0),char(210),char(3),char(39),char(255),char(215), -char(0),char(210),char(3),char(41),char(255),char(215),char(0),char(210),char(3),char(43), -char(255),char(215),char(0),char(210),char(3),char(45),char(255),char(215),char(0),char(210), -char(3),char(47),char(255),char(215),char(0),char(210),char(3),char(49),char(255),char(215), -char(0),char(210),char(3),char(51),char(255),char(215),char(0),char(210),char(3),char(111), -char(255),char(236),char(0),char(210),char(3),char(113),char(255),char(236),char(0),char(210), -char(3),char(115),char(255),char(236),char(0),char(210),char(3),char(143),char(255),char(195), -char(0),char(212),char(0),char(45),char(0),char(123),char(0),char(213),char(0),char(5), -char(255),char(236),char(0),char(213),char(0),char(10),char(255),char(236),char(0),char(213), -char(0),char(89),char(255),char(215),char(0),char(213),char(0),char(90),char(255),char(215), -char(0),char(213),char(0),char(91),char(255),char(215),char(0),char(213),char(0),char(92), -char(255),char(215),char(0),char(213),char(0),char(93),char(255),char(236),char(0),char(213), -char(0),char(191),char(255),char(215),char(0),char(213),char(1),char(55),char(255),char(215), -char(0),char(213),char(1),char(60),char(255),char(236),char(0),char(213),char(1),char(62), -char(255),char(236),char(0),char(213),char(1),char(64),char(255),char(236),char(0),char(213), -char(1),char(251),char(255),char(215),char(0),char(213),char(1),char(253),char(255),char(215), -char(0),char(213),char(2),char(7),char(255),char(236),char(0),char(213),char(2),char(11), -char(255),char(236),char(0),char(213),char(3),char(112),char(255),char(215),char(0),char(214), -char(0),char(45),char(0),char(123),char(0),char(215),char(0),char(5),char(255),char(236), -char(0),char(215),char(0),char(10),char(255),char(236),char(0),char(215),char(0),char(89), -char(255),char(215),char(0),char(215),char(0),char(90),char(255),char(215),char(0),char(215), -char(0),char(91),char(255),char(215),char(0),char(215),char(0),char(92),char(255),char(215), -char(0),char(215),char(0),char(93),char(255),char(236),char(0),char(215),char(0),char(191), -char(255),char(215),char(0),char(215),char(1),char(55),char(255),char(215),char(0),char(215), -char(1),char(60),char(255),char(236),char(0),char(215),char(1),char(62),char(255),char(236), -char(0),char(215),char(1),char(64),char(255),char(236),char(0),char(215),char(1),char(251), -char(255),char(215),char(0),char(215),char(1),char(253),char(255),char(215),char(0),char(215), -char(2),char(7),char(255),char(236),char(0),char(215),char(2),char(11),char(255),char(236), -char(0),char(215),char(3),char(112),char(255),char(215),char(0),char(216),char(0),char(45), -char(0),char(123),char(0),char(217),char(0),char(5),char(255),char(236),char(0),char(217), -char(0),char(10),char(255),char(236),char(0),char(217),char(0),char(89),char(255),char(215), -char(0),char(217),char(0),char(90),char(255),char(215),char(0),char(217),char(0),char(91), -char(255),char(215),char(0),char(217),char(0),char(92),char(255),char(215),char(0),char(217), -char(0),char(93),char(255),char(236),char(0),char(217),char(0),char(191),char(255),char(215), -char(0),char(217),char(1),char(55),char(255),char(215),char(0),char(217),char(1),char(60), -char(255),char(236),char(0),char(217),char(1),char(62),char(255),char(236),char(0),char(217), -char(1),char(64),char(255),char(236),char(0),char(217),char(1),char(251),char(255),char(215), -char(0),char(217),char(1),char(253),char(255),char(215),char(0),char(217),char(2),char(7), -char(255),char(236),char(0),char(217),char(2),char(11),char(255),char(236),char(0),char(217), -char(3),char(112),char(255),char(215),char(0),char(218),char(0),char(45),char(0),char(123), -char(0),char(219),char(0),char(5),char(255),char(236),char(0),char(219),char(0),char(10), -char(255),char(236),char(0),char(219),char(0),char(89),char(255),char(215),char(0),char(219), -char(0),char(90),char(255),char(215),char(0),char(219),char(0),char(91),char(255),char(215), -char(0),char(219),char(0),char(92),char(255),char(215),char(0),char(219),char(0),char(93), -char(255),char(236),char(0),char(219),char(0),char(191),char(255),char(215),char(0),char(219), -char(1),char(55),char(255),char(215),char(0),char(219),char(1),char(60),char(255),char(236), -char(0),char(219),char(1),char(62),char(255),char(236),char(0),char(219),char(1),char(64), -char(255),char(236),char(0),char(219),char(1),char(251),char(255),char(215),char(0),char(219), -char(1),char(253),char(255),char(215),char(0),char(219),char(2),char(7),char(255),char(236), -char(0),char(219),char(2),char(11),char(255),char(236),char(0),char(219),char(3),char(112), -char(255),char(215),char(0),char(220),char(0),char(45),char(0),char(123),char(0),char(221), -char(0),char(5),char(255),char(236),char(0),char(221),char(0),char(10),char(255),char(236), -char(0),char(221),char(0),char(89),char(255),char(215),char(0),char(221),char(0),char(90), -char(255),char(215),char(0),char(221),char(0),char(91),char(255),char(215),char(0),char(221), -char(0),char(92),char(255),char(215),char(0),char(221),char(0),char(93),char(255),char(236), -char(0),char(221),char(0),char(191),char(255),char(215),char(0),char(221),char(1),char(55), -char(255),char(215),char(0),char(221),char(1),char(60),char(255),char(236),char(0),char(221), -char(1),char(62),char(255),char(236),char(0),char(221),char(1),char(64),char(255),char(236), -char(0),char(221),char(1),char(251),char(255),char(215),char(0),char(221),char(1),char(253), -char(255),char(215),char(0),char(221),char(2),char(7),char(255),char(236),char(0),char(221), -char(2),char(11),char(255),char(236),char(0),char(221),char(3),char(112),char(255),char(215), -char(0),char(231),char(0),char(5),char(255),char(236),char(0),char(231),char(0),char(10), -char(255),char(236),char(0),char(231),char(2),char(7),char(255),char(236),char(0),char(231), -char(2),char(11),char(255),char(236),char(0),char(248),char(0),char(38),char(255),char(215), -char(0),char(248),char(0),char(42),char(255),char(215),char(0),char(248),char(0),char(50), -char(255),char(215),char(0),char(248),char(0),char(52),char(255),char(215),char(0),char(248), -char(0),char(137),char(255),char(215),char(0),char(248),char(0),char(148),char(255),char(215), -char(0),char(248),char(0),char(149),char(255),char(215),char(0),char(248),char(0),char(150), -char(255),char(215),char(0),char(248),char(0),char(151),char(255),char(215),char(0),char(248), -char(0),char(152),char(255),char(215),char(0),char(248),char(0),char(154),char(255),char(215), -char(0),char(248),char(0),char(200),char(255),char(215),char(0),char(248),char(0),char(202), -char(255),char(215),char(0),char(248),char(0),char(204),char(255),char(215),char(0),char(248), -char(0),char(206),char(255),char(215),char(0),char(248),char(0),char(222),char(255),char(215), -char(0),char(248),char(0),char(224),char(255),char(215),char(0),char(248),char(0),char(226), -char(255),char(215),char(0),char(248),char(0),char(228),char(255),char(215),char(0),char(248), -char(1),char(14),char(255),char(215),char(0),char(248),char(1),char(16),char(255),char(215), -char(0),char(248),char(1),char(18),char(255),char(215),char(0),char(248),char(1),char(20), -char(255),char(215),char(0),char(248),char(1),char(71),char(255),char(215),char(0),char(248), -char(2),char(95),char(255),char(215),char(0),char(248),char(3),char(73),char(255),char(215), -char(0),char(248),char(3),char(75),char(255),char(215),char(0),char(248),char(3),char(77), -char(255),char(215),char(0),char(248),char(3),char(79),char(255),char(215),char(0),char(248), -char(3),char(81),char(255),char(215),char(0),char(248),char(3),char(83),char(255),char(215), -char(0),char(248),char(3),char(85),char(255),char(215),char(0),char(248),char(3),char(87), -char(255),char(215),char(0),char(248),char(3),char(89),char(255),char(215),char(0),char(248), -char(3),char(91),char(255),char(215),char(0),char(248),char(3),char(93),char(255),char(215), -char(0),char(248),char(3),char(95),char(255),char(215),char(0),char(249),char(0),char(70), -char(255),char(215),char(0),char(249),char(0),char(71),char(255),char(215),char(0),char(249), -char(0),char(72),char(255),char(215),char(0),char(249),char(0),char(82),char(255),char(215), -char(0),char(249),char(0),char(84),char(255),char(215),char(0),char(249),char(0),char(162), -char(255),char(215),char(0),char(249),char(0),char(169),char(255),char(215),char(0),char(249), -char(0),char(170),char(255),char(215),char(0),char(249),char(0),char(171),char(255),char(215), -char(0),char(249),char(0),char(172),char(255),char(215),char(0),char(249),char(0),char(173), -char(255),char(215),char(0),char(249),char(0),char(180),char(255),char(215),char(0),char(249), -char(0),char(181),char(255),char(215),char(0),char(249),char(0),char(182),char(255),char(215), -char(0),char(249),char(0),char(183),char(255),char(215),char(0),char(249),char(0),char(184), -char(255),char(215),char(0),char(249),char(0),char(186),char(255),char(215),char(0),char(249), -char(0),char(201),char(255),char(215),char(0),char(249),char(0),char(203),char(255),char(215), -char(0),char(249),char(0),char(205),char(255),char(215),char(0),char(249),char(0),char(207), -char(255),char(215),char(0),char(249),char(0),char(209),char(255),char(215),char(0),char(249), -char(0),char(211),char(255),char(215),char(0),char(249),char(0),char(213),char(255),char(215), -char(0),char(249),char(0),char(215),char(255),char(215),char(0),char(249),char(0),char(217), -char(255),char(215),char(0),char(249),char(0),char(219),char(255),char(215),char(0),char(249), -char(0),char(221),char(255),char(215),char(0),char(249),char(1),char(15),char(255),char(215), -char(0),char(249),char(1),char(17),char(255),char(215),char(0),char(249),char(1),char(19), -char(255),char(215),char(0),char(249),char(1),char(21),char(255),char(215),char(0),char(249), -char(1),char(72),char(255),char(215),char(0),char(249),char(2),char(96),char(255),char(215), -char(0),char(249),char(3),char(54),char(255),char(215),char(0),char(249),char(3),char(56), -char(255),char(215),char(0),char(249),char(3),char(58),char(255),char(215),char(0),char(249), -char(3),char(60),char(255),char(215),char(0),char(249),char(3),char(64),char(255),char(215), -char(0),char(249),char(3),char(66),char(255),char(215),char(0),char(249),char(3),char(68), -char(255),char(215),char(0),char(249),char(3),char(74),char(255),char(215),char(0),char(249), -char(3),char(76),char(255),char(215),char(0),char(249),char(3),char(78),char(255),char(215), -char(0),char(249),char(3),char(82),char(255),char(215),char(0),char(249),char(3),char(84), -char(255),char(215),char(0),char(249),char(3),char(86),char(255),char(215),char(0),char(249), -char(3),char(88),char(255),char(215),char(0),char(249),char(3),char(90),char(255),char(215), -char(0),char(249),char(3),char(92),char(255),char(215),char(0),char(249),char(3),char(94), -char(255),char(215),char(0),char(249),char(3),char(96),char(255),char(215),char(0),char(250), -char(0),char(70),char(255),char(215),char(0),char(250),char(0),char(71),char(255),char(215), -char(0),char(250),char(0),char(72),char(255),char(215),char(0),char(250),char(0),char(82), -char(255),char(215),char(0),char(250),char(0),char(84),char(255),char(215),char(0),char(250), -char(0),char(162),char(255),char(215),char(0),char(250),char(0),char(169),char(255),char(215), -char(0),char(250),char(0),char(170),char(255),char(215),char(0),char(250),char(0),char(171), -char(255),char(215),char(0),char(250),char(0),char(172),char(255),char(215),char(0),char(250), -char(0),char(173),char(255),char(215),char(0),char(250),char(0),char(180),char(255),char(215), -char(0),char(250),char(0),char(181),char(255),char(215),char(0),char(250),char(0),char(182), -char(255),char(215),char(0),char(250),char(0),char(183),char(255),char(215),char(0),char(250), -char(0),char(184),char(255),char(215),char(0),char(250),char(0),char(186),char(255),char(215), -char(0),char(250),char(0),char(201),char(255),char(215),char(0),char(250),char(0),char(203), -char(255),char(215),char(0),char(250),char(0),char(205),char(255),char(215),char(0),char(250), -char(0),char(207),char(255),char(215),char(0),char(250),char(0),char(209),char(255),char(215), -char(0),char(250),char(0),char(211),char(255),char(215),char(0),char(250),char(0),char(213), -char(255),char(215),char(0),char(250),char(0),char(215),char(255),char(215),char(0),char(250), -char(0),char(217),char(255),char(215),char(0),char(250),char(0),char(219),char(255),char(215), -char(0),char(250),char(0),char(221),char(255),char(215),char(0),char(250),char(1),char(15), -char(255),char(215),char(0),char(250),char(1),char(17),char(255),char(215),char(0),char(250), -char(1),char(19),char(255),char(215),char(0),char(250),char(1),char(21),char(255),char(215), -char(0),char(250),char(1),char(72),char(255),char(215),char(0),char(250),char(2),char(96), -char(255),char(215),char(0),char(250),char(3),char(54),char(255),char(215),char(0),char(250), -char(3),char(56),char(255),char(215),char(0),char(250),char(3),char(58),char(255),char(215), -char(0),char(250),char(3),char(60),char(255),char(215),char(0),char(250),char(3),char(64), -char(255),char(215),char(0),char(250),char(3),char(66),char(255),char(215),char(0),char(250), -char(3),char(68),char(255),char(215),char(0),char(250),char(3),char(74),char(255),char(215), -char(0),char(250),char(3),char(76),char(255),char(215),char(0),char(250),char(3),char(78), -char(255),char(215),char(0),char(250),char(3),char(82),char(255),char(215),char(0),char(250), -char(3),char(84),char(255),char(215),char(0),char(250),char(3),char(86),char(255),char(215), -char(0),char(250),char(3),char(88),char(255),char(215),char(0),char(250),char(3),char(90), -char(255),char(215),char(0),char(250),char(3),char(92),char(255),char(215),char(0),char(250), -char(3),char(94),char(255),char(215),char(0),char(250),char(3),char(96),char(255),char(215), -char(0),char(251),char(0),char(5),char(255),char(92),char(0),char(251),char(0),char(10), -char(255),char(92),char(0),char(251),char(0),char(38),char(255),char(215),char(0),char(251), -char(0),char(42),char(255),char(215),char(0),char(251),char(0),char(50),char(255),char(215), -char(0),char(251),char(0),char(52),char(255),char(215),char(0),char(251),char(0),char(55), -char(255),char(215),char(0),char(251),char(0),char(56),char(255),char(236),char(0),char(251), -char(0),char(57),char(255),char(215),char(0),char(251),char(0),char(58),char(255),char(215), -char(0),char(251),char(0),char(60),char(255),char(195),char(0),char(251),char(0),char(137), -char(255),char(215),char(0),char(251),char(0),char(148),char(255),char(215),char(0),char(251), -char(0),char(149),char(255),char(215),char(0),char(251),char(0),char(150),char(255),char(215), -char(0),char(251),char(0),char(151),char(255),char(215),char(0),char(251),char(0),char(152), -char(255),char(215),char(0),char(251),char(0),char(154),char(255),char(215),char(0),char(251), -char(0),char(155),char(255),char(236),char(0),char(251),char(0),char(156),char(255),char(236), -char(0),char(251),char(0),char(157),char(255),char(236),char(0),char(251),char(0),char(158), -char(255),char(236),char(0),char(251),char(0),char(159),char(255),char(195),char(0),char(251), -char(0),char(200),char(255),char(215),char(0),char(251),char(0),char(202),char(255),char(215), -char(0),char(251),char(0),char(204),char(255),char(215),char(0),char(251),char(0),char(206), -char(255),char(215),char(0),char(251),char(0),char(222),char(255),char(215),char(0),char(251), -char(0),char(224),char(255),char(215),char(0),char(251),char(0),char(226),char(255),char(215), -char(0),char(251),char(0),char(228),char(255),char(215),char(0),char(251),char(1),char(14), -char(255),char(215),char(0),char(251),char(1),char(16),char(255),char(215),char(0),char(251), -char(1),char(18),char(255),char(215),char(0),char(251),char(1),char(20),char(255),char(215), -char(0),char(251),char(1),char(36),char(255),char(215),char(0),char(251),char(1),char(38), -char(255),char(215),char(0),char(251),char(1),char(42),char(255),char(236),char(0),char(251), -char(1),char(44),char(255),char(236),char(0),char(251),char(1),char(46),char(255),char(236), -char(0),char(251),char(1),char(48),char(255),char(236),char(0),char(251),char(1),char(50), -char(255),char(236),char(0),char(251),char(1),char(52),char(255),char(236),char(0),char(251), -char(1),char(54),char(255),char(215),char(0),char(251),char(1),char(56),char(255),char(195), -char(0),char(251),char(1),char(58),char(255),char(195),char(0),char(251),char(1),char(71), -char(255),char(215),char(0),char(251),char(1),char(250),char(255),char(215),char(0),char(251), -char(1),char(252),char(255),char(215),char(0),char(251),char(1),char(254),char(255),char(215), -char(0),char(251),char(2),char(0),char(255),char(195),char(0),char(251),char(2),char(7), -char(255),char(92),char(0),char(251),char(2),char(11),char(255),char(92),char(0),char(251), -char(2),char(95),char(255),char(215),char(0),char(251),char(2),char(97),char(255),char(236), -char(0),char(251),char(3),char(73),char(255),char(215),char(0),char(251),char(3),char(75), -char(255),char(215),char(0),char(251),char(3),char(77),char(255),char(215),char(0),char(251), -char(3),char(79),char(255),char(215),char(0),char(251),char(3),char(81),char(255),char(215), -char(0),char(251),char(3),char(83),char(255),char(215),char(0),char(251),char(3),char(85), -char(255),char(215),char(0),char(251),char(3),char(87),char(255),char(215),char(0),char(251), -char(3),char(89),char(255),char(215),char(0),char(251),char(3),char(91),char(255),char(215), -char(0),char(251),char(3),char(93),char(255),char(215),char(0),char(251),char(3),char(95), -char(255),char(215),char(0),char(251),char(3),char(97),char(255),char(236),char(0),char(251), -char(3),char(99),char(255),char(236),char(0),char(251),char(3),char(101),char(255),char(236), -char(0),char(251),char(3),char(103),char(255),char(236),char(0),char(251),char(3),char(105), -char(255),char(236),char(0),char(251),char(3),char(107),char(255),char(236),char(0),char(251), -char(3),char(109),char(255),char(236),char(0),char(251),char(3),char(111),char(255),char(195), -char(0),char(251),char(3),char(113),char(255),char(195),char(0),char(251),char(3),char(115), -char(255),char(195),char(0),char(251),char(3),char(143),char(255),char(215),char(0),char(253), -char(0),char(5),char(255),char(92),char(0),char(253),char(0),char(10),char(255),char(92), -char(0),char(253),char(0),char(38),char(255),char(215),char(0),char(253),char(0),char(42), -char(255),char(215),char(0),char(253),char(0),char(50),char(255),char(215),char(0),char(253), -char(0),char(52),char(255),char(215),char(0),char(253),char(0),char(55),char(255),char(215), -char(0),char(253),char(0),char(56),char(255),char(236),char(0),char(253),char(0),char(57), -char(255),char(215),char(0),char(253),char(0),char(58),char(255),char(215),char(0),char(253), -char(0),char(60),char(255),char(195),char(0),char(253),char(0),char(137),char(255),char(215), -char(0),char(253),char(0),char(148),char(255),char(215),char(0),char(253),char(0),char(149), -char(255),char(215),char(0),char(253),char(0),char(150),char(255),char(215),char(0),char(253), -char(0),char(151),char(255),char(215),char(0),char(253),char(0),char(152),char(255),char(215), -char(0),char(253),char(0),char(154),char(255),char(215),char(0),char(253),char(0),char(155), -char(255),char(236),char(0),char(253),char(0),char(156),char(255),char(236),char(0),char(253), -char(0),char(157),char(255),char(236),char(0),char(253),char(0),char(158),char(255),char(236), -char(0),char(253),char(0),char(159),char(255),char(195),char(0),char(253),char(0),char(200), -char(255),char(215),char(0),char(253),char(0),char(202),char(255),char(215),char(0),char(253), -char(0),char(204),char(255),char(215),char(0),char(253),char(0),char(206),char(255),char(215), -char(0),char(253),char(0),char(222),char(255),char(215),char(0),char(253),char(0),char(224), -char(255),char(215),char(0),char(253),char(0),char(226),char(255),char(215),char(0),char(253), -char(0),char(228),char(255),char(215),char(0),char(253),char(1),char(14),char(255),char(215), -char(0),char(253),char(1),char(16),char(255),char(215),char(0),char(253),char(1),char(18), -char(255),char(215),char(0),char(253),char(1),char(20),char(255),char(215),char(0),char(253), -char(1),char(36),char(255),char(215),char(0),char(253),char(1),char(38),char(255),char(215), -char(0),char(253),char(1),char(42),char(255),char(236),char(0),char(253),char(1),char(44), -char(255),char(236),char(0),char(253),char(1),char(46),char(255),char(236),char(0),char(253), -char(1),char(48),char(255),char(236),char(0),char(253),char(1),char(50),char(255),char(236), -char(0),char(253),char(1),char(52),char(255),char(236),char(0),char(253),char(1),char(54), -char(255),char(215),char(0),char(253),char(1),char(56),char(255),char(195),char(0),char(253), -char(1),char(58),char(255),char(195),char(0),char(253),char(1),char(71),char(255),char(215), -char(0),char(253),char(1),char(250),char(255),char(215),char(0),char(253),char(1),char(252), -char(255),char(215),char(0),char(253),char(1),char(254),char(255),char(215),char(0),char(253), -char(2),char(0),char(255),char(195),char(0),char(253),char(2),char(7),char(255),char(92), -char(0),char(253),char(2),char(11),char(255),char(92),char(0),char(253),char(2),char(95), -char(255),char(215),char(0),char(253),char(2),char(97),char(255),char(236),char(0),char(253), -char(3),char(73),char(255),char(215),char(0),char(253),char(3),char(75),char(255),char(215), -char(0),char(253),char(3),char(77),char(255),char(215),char(0),char(253),char(3),char(79), -char(255),char(215),char(0),char(253),char(3),char(81),char(255),char(215),char(0),char(253), -char(3),char(83),char(255),char(215),char(0),char(253),char(3),char(85),char(255),char(215), -char(0),char(253),char(3),char(87),char(255),char(215),char(0),char(253),char(3),char(89), -char(255),char(215),char(0),char(253),char(3),char(91),char(255),char(215),char(0),char(253), -char(3),char(93),char(255),char(215),char(0),char(253),char(3),char(95),char(255),char(215), -char(0),char(253),char(3),char(97),char(255),char(236),char(0),char(253),char(3),char(99), -char(255),char(236),char(0),char(253),char(3),char(101),char(255),char(236),char(0),char(253), -char(3),char(103),char(255),char(236),char(0),char(253),char(3),char(105),char(255),char(236), -char(0),char(253),char(3),char(107),char(255),char(236),char(0),char(253),char(3),char(109), -char(255),char(236),char(0),char(253),char(3),char(111),char(255),char(195),char(0),char(253), -char(3),char(113),char(255),char(195),char(0),char(253),char(3),char(115),char(255),char(195), -char(0),char(253),char(3),char(143),char(255),char(215),char(0),char(255),char(0),char(5), -char(255),char(92),char(0),char(255),char(0),char(10),char(255),char(92),char(0),char(255), -char(0),char(38),char(255),char(215),char(0),char(255),char(0),char(42),char(255),char(215), -char(0),char(255),char(0),char(50),char(255),char(215),char(0),char(255),char(0),char(52), -char(255),char(215),char(0),char(255),char(0),char(55),char(255),char(215),char(0),char(255), -char(0),char(56),char(255),char(236),char(0),char(255),char(0),char(57),char(255),char(215), -char(0),char(255),char(0),char(58),char(255),char(215),char(0),char(255),char(0),char(60), -char(255),char(195),char(0),char(255),char(0),char(137),char(255),char(215),char(0),char(255), -char(0),char(148),char(255),char(215),char(0),char(255),char(0),char(149),char(255),char(215), -char(0),char(255),char(0),char(150),char(255),char(215),char(0),char(255),char(0),char(151), -char(255),char(215),char(0),char(255),char(0),char(152),char(255),char(215),char(0),char(255), -char(0),char(154),char(255),char(215),char(0),char(255),char(0),char(155),char(255),char(236), -char(0),char(255),char(0),char(156),char(255),char(236),char(0),char(255),char(0),char(157), -char(255),char(236),char(0),char(255),char(0),char(158),char(255),char(236),char(0),char(255), -char(0),char(159),char(255),char(195),char(0),char(255),char(0),char(200),char(255),char(215), -char(0),char(255),char(0),char(202),char(255),char(215),char(0),char(255),char(0),char(204), -char(255),char(215),char(0),char(255),char(0),char(206),char(255),char(215),char(0),char(255), -char(0),char(222),char(255),char(215),char(0),char(255),char(0),char(224),char(255),char(215), -char(0),char(255),char(0),char(226),char(255),char(215),char(0),char(255),char(0),char(228), -char(255),char(215),char(0),char(255),char(1),char(14),char(255),char(215),char(0),char(255), -char(1),char(16),char(255),char(215),char(0),char(255),char(1),char(18),char(255),char(215), -char(0),char(255),char(1),char(20),char(255),char(215),char(0),char(255),char(1),char(36), -char(255),char(215),char(0),char(255),char(1),char(38),char(255),char(215),char(0),char(255), -char(1),char(42),char(255),char(236),char(0),char(255),char(1),char(44),char(255),char(236), -char(0),char(255),char(1),char(46),char(255),char(236),char(0),char(255),char(1),char(48), -char(255),char(236),char(0),char(255),char(1),char(50),char(255),char(236),char(0),char(255), -char(1),char(52),char(255),char(236),char(0),char(255),char(1),char(54),char(255),char(215), -char(0),char(255),char(1),char(56),char(255),char(195),char(0),char(255),char(1),char(58), -char(255),char(195),char(0),char(255),char(1),char(71),char(255),char(215),char(0),char(255), -char(1),char(250),char(255),char(215),char(0),char(255),char(1),char(252),char(255),char(215), -char(0),char(255),char(1),char(254),char(255),char(215),char(0),char(255),char(2),char(0), -char(255),char(195),char(0),char(255),char(2),char(7),char(255),char(92),char(0),char(255), -char(2),char(11),char(255),char(92),char(0),char(255),char(2),char(95),char(255),char(215), -char(0),char(255),char(2),char(97),char(255),char(236),char(0),char(255),char(3),char(73), -char(255),char(215),char(0),char(255),char(3),char(75),char(255),char(215),char(0),char(255), -char(3),char(77),char(255),char(215),char(0),char(255),char(3),char(79),char(255),char(215), -char(0),char(255),char(3),char(81),char(255),char(215),char(0),char(255),char(3),char(83), -char(255),char(215),char(0),char(255),char(3),char(85),char(255),char(215),char(0),char(255), -char(3),char(87),char(255),char(215),char(0),char(255),char(3),char(89),char(255),char(215), -char(0),char(255),char(3),char(91),char(255),char(215),char(0),char(255),char(3),char(93), -char(255),char(215),char(0),char(255),char(3),char(95),char(255),char(215),char(0),char(255), -char(3),char(97),char(255),char(236),char(0),char(255),char(3),char(99),char(255),char(236), -char(0),char(255),char(3),char(101),char(255),char(236),char(0),char(255),char(3),char(103), -char(255),char(236),char(0),char(255),char(3),char(105),char(255),char(236),char(0),char(255), -char(3),char(107),char(255),char(236),char(0),char(255),char(3),char(109),char(255),char(236), -char(0),char(255),char(3),char(111),char(255),char(195),char(0),char(255),char(3),char(113), -char(255),char(195),char(0),char(255),char(3),char(115),char(255),char(195),char(0),char(255), -char(3),char(143),char(255),char(215),char(1),char(0),char(0),char(5),char(0),char(82), -char(1),char(0),char(0),char(10),char(0),char(82),char(1),char(0),char(0),char(12), -char(0),char(143),char(1),char(0),char(0),char(34),char(0),char(143),char(1),char(0), -char(0),char(64),char(0),char(143),char(1),char(0),char(0),char(69),char(0),char(61), -char(1),char(0),char(0),char(75),char(0),char(61),char(1),char(0),char(0),char(78), -char(0),char(61),char(1),char(0),char(0),char(79),char(0),char(61),char(1),char(0), -char(0),char(96),char(0),char(143),char(1),char(0),char(0),char(231),char(0),char(61), -char(1),char(0),char(0),char(233),char(0),char(143),char(1),char(0),char(2),char(7), -char(0),char(82),char(1),char(0),char(2),char(11),char(0),char(82),char(1),char(1), -char(0),char(5),char(255),char(92),char(1),char(1),char(0),char(10),char(255),char(92), -char(1),char(1),char(0),char(38),char(255),char(215),char(1),char(1),char(0),char(42), -char(255),char(215),char(1),char(1),char(0),char(50),char(255),char(215),char(1),char(1), -char(0),char(52),char(255),char(215),char(1),char(1),char(0),char(55),char(255),char(215), -char(1),char(1),char(0),char(56),char(255),char(236),char(1),char(1),char(0),char(57), -char(255),char(215),char(1),char(1),char(0),char(58),char(255),char(215),char(1),char(1), -char(0),char(60),char(255),char(195),char(1),char(1),char(0),char(137),char(255),char(215), -char(1),char(1),char(0),char(148),char(255),char(215),char(1),char(1),char(0),char(149), -char(255),char(215),char(1),char(1),char(0),char(150),char(255),char(215),char(1),char(1), -char(0),char(151),char(255),char(215),char(1),char(1),char(0),char(152),char(255),char(215), -char(1),char(1),char(0),char(154),char(255),char(215),char(1),char(1),char(0),char(155), -char(255),char(236),char(1),char(1),char(0),char(156),char(255),char(236),char(1),char(1), -char(0),char(157),char(255),char(236),char(1),char(1),char(0),char(158),char(255),char(236), -char(1),char(1),char(0),char(159),char(255),char(195),char(1),char(1),char(0),char(200), -char(255),char(215),char(1),char(1),char(0),char(202),char(255),char(215),char(1),char(1), -char(0),char(204),char(255),char(215),char(1),char(1),char(0),char(206),char(255),char(215), -char(1),char(1),char(0),char(222),char(255),char(215),char(1),char(1),char(0),char(224), -char(255),char(215),char(1),char(1),char(0),char(226),char(255),char(215),char(1),char(1), -char(0),char(228),char(255),char(215),char(1),char(1),char(1),char(14),char(255),char(215), -char(1),char(1),char(1),char(16),char(255),char(215),char(1),char(1),char(1),char(18), -char(255),char(215),char(1),char(1),char(1),char(20),char(255),char(215),char(1),char(1), -char(1),char(36),char(255),char(215),char(1),char(1),char(1),char(38),char(255),char(215), -char(1),char(1),char(1),char(42),char(255),char(236),char(1),char(1),char(1),char(44), -char(255),char(236),char(1),char(1),char(1),char(46),char(255),char(236),char(1),char(1), -char(1),char(48),char(255),char(236),char(1),char(1),char(1),char(50),char(255),char(236), -char(1),char(1),char(1),char(52),char(255),char(236),char(1),char(1),char(1),char(54), -char(255),char(215),char(1),char(1),char(1),char(56),char(255),char(195),char(1),char(1), -char(1),char(58),char(255),char(195),char(1),char(1),char(1),char(71),char(255),char(215), -char(1),char(1),char(1),char(250),char(255),char(215),char(1),char(1),char(1),char(252), -char(255),char(215),char(1),char(1),char(1),char(254),char(255),char(215),char(1),char(1), -char(2),char(0),char(255),char(195),char(1),char(1),char(2),char(7),char(255),char(92), -char(1),char(1),char(2),char(11),char(255),char(92),char(1),char(1),char(2),char(95), -char(255),char(215),char(1),char(1),char(2),char(97),char(255),char(236),char(1),char(1), -char(3),char(73),char(255),char(215),char(1),char(1),char(3),char(75),char(255),char(215), -char(1),char(1),char(3),char(77),char(255),char(215),char(1),char(1),char(3),char(79), -char(255),char(215),char(1),char(1),char(3),char(81),char(255),char(215),char(1),char(1), -char(3),char(83),char(255),char(215),char(1),char(1),char(3),char(85),char(255),char(215), -char(1),char(1),char(3),char(87),char(255),char(215),char(1),char(1),char(3),char(89), -char(255),char(215),char(1),char(1),char(3),char(91),char(255),char(215),char(1),char(1), -char(3),char(93),char(255),char(215),char(1),char(1),char(3),char(95),char(255),char(215), -char(1),char(1),char(3),char(97),char(255),char(236),char(1),char(1),char(3),char(99), -char(255),char(236),char(1),char(1),char(3),char(101),char(255),char(236),char(1),char(1), -char(3),char(103),char(255),char(236),char(1),char(1),char(3),char(105),char(255),char(236), -char(1),char(1),char(3),char(107),char(255),char(236),char(1),char(1),char(3),char(109), -char(255),char(236),char(1),char(1),char(3),char(111),char(255),char(195),char(1),char(1), -char(3),char(113),char(255),char(195),char(1),char(1),char(3),char(115),char(255),char(195), -char(1),char(1),char(3),char(143),char(255),char(215),char(1),char(3),char(0),char(5), -char(255),char(92),char(1),char(3),char(0),char(10),char(255),char(92),char(1),char(3), -char(0),char(38),char(255),char(215),char(1),char(3),char(0),char(42),char(255),char(215), -char(1),char(3),char(0),char(50),char(255),char(215),char(1),char(3),char(0),char(52), -char(255),char(215),char(1),char(3),char(0),char(55),char(255),char(215),char(1),char(3), -char(0),char(56),char(255),char(236),char(1),char(3),char(0),char(57),char(255),char(215), -char(1),char(3),char(0),char(58),char(255),char(215),char(1),char(3),char(0),char(60), -char(255),char(195),char(1),char(3),char(0),char(137),char(255),char(215),char(1),char(3), -char(0),char(148),char(255),char(215),char(1),char(3),char(0),char(149),char(255),char(215), -char(1),char(3),char(0),char(150),char(255),char(215),char(1),char(3),char(0),char(151), -char(255),char(215),char(1),char(3),char(0),char(152),char(255),char(215),char(1),char(3), -char(0),char(154),char(255),char(215),char(1),char(3),char(0),char(155),char(255),char(236), -char(1),char(3),char(0),char(156),char(255),char(236),char(1),char(3),char(0),char(157), -char(255),char(236),char(1),char(3),char(0),char(158),char(255),char(236),char(1),char(3), -char(0),char(159),char(255),char(195),char(1),char(3),char(0),char(200),char(255),char(215), -char(1),char(3),char(0),char(202),char(255),char(215),char(1),char(3),char(0),char(204), -char(255),char(215),char(1),char(3),char(0),char(206),char(255),char(215),char(1),char(3), -char(0),char(222),char(255),char(215),char(1),char(3),char(0),char(224),char(255),char(215), -char(1),char(3),char(0),char(226),char(255),char(215),char(1),char(3),char(0),char(228), -char(255),char(215),char(1),char(3),char(1),char(14),char(255),char(215),char(1),char(3), -char(1),char(16),char(255),char(215),char(1),char(3),char(1),char(18),char(255),char(215), -char(1),char(3),char(1),char(20),char(255),char(215),char(1),char(3),char(1),char(36), -char(255),char(215),char(1),char(3),char(1),char(38),char(255),char(215),char(1),char(3), -char(1),char(42),char(255),char(236),char(1),char(3),char(1),char(44),char(255),char(236), -char(1),char(3),char(1),char(46),char(255),char(236),char(1),char(3),char(1),char(48), -char(255),char(236),char(1),char(3),char(1),char(50),char(255),char(236),char(1),char(3), -char(1),char(52),char(255),char(236),char(1),char(3),char(1),char(54),char(255),char(215), -char(1),char(3),char(1),char(56),char(255),char(195),char(1),char(3),char(1),char(58), -char(255),char(195),char(1),char(3),char(1),char(71),char(255),char(215),char(1),char(3), -char(1),char(250),char(255),char(215),char(1),char(3),char(1),char(252),char(255),char(215), -char(1),char(3),char(1),char(254),char(255),char(215),char(1),char(3),char(2),char(0), -char(255),char(195),char(1),char(3),char(2),char(7),char(255),char(92),char(1),char(3), -char(2),char(11),char(255),char(92),char(1),char(3),char(2),char(95),char(255),char(215), -char(1),char(3),char(2),char(97),char(255),char(236),char(1),char(3),char(3),char(73), -char(255),char(215),char(1),char(3),char(3),char(75),char(255),char(215),char(1),char(3), -char(3),char(77),char(255),char(215),char(1),char(3),char(3),char(79),char(255),char(215), -char(1),char(3),char(3),char(81),char(255),char(215),char(1),char(3),char(3),char(83), -char(255),char(215),char(1),char(3),char(3),char(85),char(255),char(215),char(1),char(3), -char(3),char(87),char(255),char(215),char(1),char(3),char(3),char(89),char(255),char(215), -char(1),char(3),char(3),char(91),char(255),char(215),char(1),char(3),char(3),char(93), -char(255),char(215),char(1),char(3),char(3),char(95),char(255),char(215),char(1),char(3), -char(3),char(97),char(255),char(236),char(1),char(3),char(3),char(99),char(255),char(236), -char(1),char(3),char(3),char(101),char(255),char(236),char(1),char(3),char(3),char(103), -char(255),char(236),char(1),char(3),char(3),char(105),char(255),char(236),char(1),char(3), -char(3),char(107),char(255),char(236),char(1),char(3),char(3),char(109),char(255),char(236), -char(1),char(3),char(3),char(111),char(255),char(195),char(1),char(3),char(3),char(113), -char(255),char(195),char(1),char(3),char(3),char(115),char(255),char(195),char(1),char(3), -char(3),char(143),char(255),char(215),char(1),char(8),char(0),char(5),char(255),char(236), -char(1),char(8),char(0),char(10),char(255),char(236),char(1),char(8),char(2),char(7), -char(255),char(236),char(1),char(8),char(2),char(11),char(255),char(236),char(1),char(14), -char(0),char(15),char(255),char(174),char(1),char(14),char(0),char(17),char(255),char(174), -char(1),char(14),char(0),char(36),char(255),char(215),char(1),char(14),char(0),char(55), -char(255),char(195),char(1),char(14),char(0),char(57),char(255),char(236),char(1),char(14), -char(0),char(58),char(255),char(236),char(1),char(14),char(0),char(59),char(255),char(215), -char(1),char(14),char(0),char(60),char(255),char(236),char(1),char(14),char(0),char(61), -char(255),char(236),char(1),char(14),char(0),char(130),char(255),char(215),char(1),char(14), -char(0),char(131),char(255),char(215),char(1),char(14),char(0),char(132),char(255),char(215), -char(1),char(14),char(0),char(133),char(255),char(215),char(1),char(14),char(0),char(134), -char(255),char(215),char(1),char(14),char(0),char(135),char(255),char(215),char(1),char(14), -char(0),char(159),char(255),char(236),char(1),char(14),char(0),char(194),char(255),char(215), -char(1),char(14),char(0),char(196),char(255),char(215),char(1),char(14),char(0),char(198), -char(255),char(215),char(1),char(14),char(1),char(36),char(255),char(195),char(1),char(14), -char(1),char(38),char(255),char(195),char(1),char(14),char(1),char(54),char(255),char(236), -char(1),char(14),char(1),char(56),char(255),char(236),char(1),char(14),char(1),char(58), -char(255),char(236),char(1),char(14),char(1),char(59),char(255),char(236),char(1),char(14), -char(1),char(61),char(255),char(236),char(1),char(14),char(1),char(63),char(255),char(236), -char(1),char(14),char(1),char(67),char(255),char(215),char(1),char(14),char(1),char(160), -char(255),char(236),char(1),char(14),char(1),char(250),char(255),char(236),char(1),char(14), -char(1),char(252),char(255),char(236),char(1),char(14),char(1),char(254),char(255),char(236), -char(1),char(14),char(2),char(0),char(255),char(236),char(1),char(14),char(2),char(8), -char(255),char(174),char(1),char(14),char(2),char(12),char(255),char(174),char(1),char(14), -char(2),char(88),char(255),char(215),char(1),char(14),char(3),char(29),char(255),char(215), -char(1),char(14),char(3),char(31),char(255),char(215),char(1),char(14),char(3),char(33), -char(255),char(215),char(1),char(14),char(3),char(35),char(255),char(215),char(1),char(14), -char(3),char(37),char(255),char(215),char(1),char(14),char(3),char(39),char(255),char(215), -char(1),char(14),char(3),char(41),char(255),char(215),char(1),char(14),char(3),char(43), -char(255),char(215),char(1),char(14),char(3),char(45),char(255),char(215),char(1),char(14), -char(3),char(47),char(255),char(215),char(1),char(14),char(3),char(49),char(255),char(215), -char(1),char(14),char(3),char(51),char(255),char(215),char(1),char(14),char(3),char(111), -char(255),char(236),char(1),char(14),char(3),char(113),char(255),char(236),char(1),char(14), -char(3),char(115),char(255),char(236),char(1),char(14),char(3),char(143),char(255),char(195), -char(1),char(16),char(0),char(15),char(255),char(174),char(1),char(16),char(0),char(17), -char(255),char(174),char(1),char(16),char(0),char(36),char(255),char(215),char(1),char(16), -char(0),char(55),char(255),char(195),char(1),char(16),char(0),char(57),char(255),char(236), -char(1),char(16),char(0),char(58),char(255),char(236),char(1),char(16),char(0),char(59), -char(255),char(215),char(1),char(16),char(0),char(60),char(255),char(236),char(1),char(16), -char(0),char(61),char(255),char(236),char(1),char(16),char(0),char(130),char(255),char(215), -char(1),char(16),char(0),char(131),char(255),char(215),char(1),char(16),char(0),char(132), -char(255),char(215),char(1),char(16),char(0),char(133),char(255),char(215),char(1),char(16), -char(0),char(134),char(255),char(215),char(1),char(16),char(0),char(135),char(255),char(215), -char(1),char(16),char(0),char(159),char(255),char(236),char(1),char(16),char(0),char(194), -char(255),char(215),char(1),char(16),char(0),char(196),char(255),char(215),char(1),char(16), -char(0),char(198),char(255),char(215),char(1),char(16),char(1),char(36),char(255),char(195), -char(1),char(16),char(1),char(38),char(255),char(195),char(1),char(16),char(1),char(54), -char(255),char(236),char(1),char(16),char(1),char(56),char(255),char(236),char(1),char(16), -char(1),char(58),char(255),char(236),char(1),char(16),char(1),char(59),char(255),char(236), -char(1),char(16),char(1),char(61),char(255),char(236),char(1),char(16),char(1),char(63), -char(255),char(236),char(1),char(16),char(1),char(67),char(255),char(215),char(1),char(16), -char(1),char(160),char(255),char(236),char(1),char(16),char(1),char(250),char(255),char(236), -char(1),char(16),char(1),char(252),char(255),char(236),char(1),char(16),char(1),char(254), -char(255),char(236),char(1),char(16),char(2),char(0),char(255),char(236),char(1),char(16), -char(2),char(8),char(255),char(174),char(1),char(16),char(2),char(12),char(255),char(174), -char(1),char(16),char(2),char(88),char(255),char(215),char(1),char(16),char(3),char(29), -char(255),char(215),char(1),char(16),char(3),char(31),char(255),char(215),char(1),char(16), -char(3),char(33),char(255),char(215),char(1),char(16),char(3),char(35),char(255),char(215), -char(1),char(16),char(3),char(37),char(255),char(215),char(1),char(16),char(3),char(39), -char(255),char(215),char(1),char(16),char(3),char(41),char(255),char(215),char(1),char(16), -char(3),char(43),char(255),char(215),char(1),char(16),char(3),char(45),char(255),char(215), -char(1),char(16),char(3),char(47),char(255),char(215),char(1),char(16),char(3),char(49), -char(255),char(215),char(1),char(16),char(3),char(51),char(255),char(215),char(1),char(16), -char(3),char(111),char(255),char(236),char(1),char(16),char(3),char(113),char(255),char(236), -char(1),char(16),char(3),char(115),char(255),char(236),char(1),char(16),char(3),char(143), -char(255),char(195),char(1),char(18),char(0),char(15),char(255),char(174),char(1),char(18), -char(0),char(17),char(255),char(174),char(1),char(18),char(0),char(36),char(255),char(215), -char(1),char(18),char(0),char(55),char(255),char(195),char(1),char(18),char(0),char(57), -char(255),char(236),char(1),char(18),char(0),char(58),char(255),char(236),char(1),char(18), -char(0),char(59),char(255),char(215),char(1),char(18),char(0),char(60),char(255),char(236), -char(1),char(18),char(0),char(61),char(255),char(236),char(1),char(18),char(0),char(130), -char(255),char(215),char(1),char(18),char(0),char(131),char(255),char(215),char(1),char(18), -char(0),char(132),char(255),char(215),char(1),char(18),char(0),char(133),char(255),char(215), -char(1),char(18),char(0),char(134),char(255),char(215),char(1),char(18),char(0),char(135), -char(255),char(215),char(1),char(18),char(0),char(159),char(255),char(236),char(1),char(18), -char(0),char(194),char(255),char(215),char(1),char(18),char(0),char(196),char(255),char(215), -char(1),char(18),char(0),char(198),char(255),char(215),char(1),char(18),char(1),char(36), -char(255),char(195),char(1),char(18),char(1),char(38),char(255),char(195),char(1),char(18), -char(1),char(54),char(255),char(236),char(1),char(18),char(1),char(56),char(255),char(236), -char(1),char(18),char(1),char(58),char(255),char(236),char(1),char(18),char(1),char(59), -char(255),char(236),char(1),char(18),char(1),char(61),char(255),char(236),char(1),char(18), -char(1),char(63),char(255),char(236),char(1),char(18),char(1),char(67),char(255),char(215), -char(1),char(18),char(1),char(160),char(255),char(236),char(1),char(18),char(1),char(250), -char(255),char(236),char(1),char(18),char(1),char(252),char(255),char(236),char(1),char(18), -char(1),char(254),char(255),char(236),char(1),char(18),char(2),char(0),char(255),char(236), -char(1),char(18),char(2),char(8),char(255),char(174),char(1),char(18),char(2),char(12), -char(255),char(174),char(1),char(18),char(2),char(88),char(255),char(215),char(1),char(18), -char(3),char(29),char(255),char(215),char(1),char(18),char(3),char(31),char(255),char(215), -char(1),char(18),char(3),char(33),char(255),char(215),char(1),char(18),char(3),char(35), -char(255),char(215),char(1),char(18),char(3),char(37),char(255),char(215),char(1),char(18), -char(3),char(39),char(255),char(215),char(1),char(18),char(3),char(41),char(255),char(215), -char(1),char(18),char(3),char(43),char(255),char(215),char(1),char(18),char(3),char(45), -char(255),char(215),char(1),char(18),char(3),char(47),char(255),char(215),char(1),char(18), -char(3),char(49),char(255),char(215),char(1),char(18),char(3),char(51),char(255),char(215), -char(1),char(18),char(3),char(111),char(255),char(236),char(1),char(18),char(3),char(113), -char(255),char(236),char(1),char(18),char(3),char(115),char(255),char(236),char(1),char(18), -char(3),char(143),char(255),char(195),char(1),char(20),char(0),char(45),char(0),char(123), -char(1),char(23),char(0),char(5),char(0),char(82),char(1),char(23),char(0),char(10), -char(0),char(82),char(1),char(23),char(0),char(68),char(255),char(215),char(1),char(23), -char(0),char(70),char(255),char(215),char(1),char(23),char(0),char(71),char(255),char(215), -char(1),char(23),char(0),char(72),char(255),char(215),char(1),char(23),char(0),char(74), -char(255),char(236),char(1),char(23),char(0),char(82),char(255),char(215),char(1),char(23), -char(0),char(84),char(255),char(215),char(1),char(23),char(0),char(162),char(255),char(215), -char(1),char(23),char(0),char(163),char(255),char(215),char(1),char(23),char(0),char(164), -char(255),char(215),char(1),char(23),char(0),char(165),char(255),char(215),char(1),char(23), -char(0),char(166),char(255),char(215),char(1),char(23),char(0),char(167),char(255),char(215), -char(1),char(23),char(0),char(168),char(255),char(215),char(1),char(23),char(0),char(169), -char(255),char(215),char(1),char(23),char(0),char(170),char(255),char(215),char(1),char(23), -char(0),char(171),char(255),char(215),char(1),char(23),char(0),char(172),char(255),char(215), -char(1),char(23),char(0),char(173),char(255),char(215),char(1),char(23),char(0),char(180), -char(255),char(215),char(1),char(23),char(0),char(181),char(255),char(215),char(1),char(23), -char(0),char(182),char(255),char(215),char(1),char(23),char(0),char(183),char(255),char(215), -char(1),char(23),char(0),char(184),char(255),char(215),char(1),char(23),char(0),char(186), -char(255),char(215),char(1),char(23),char(0),char(195),char(255),char(215),char(1),char(23), -char(0),char(197),char(255),char(215),char(1),char(23),char(0),char(199),char(255),char(215), -char(1),char(23),char(0),char(201),char(255),char(215),char(1),char(23),char(0),char(203), -char(255),char(215),char(1),char(23),char(0),char(205),char(255),char(215),char(1),char(23), -char(0),char(207),char(255),char(215),char(1),char(23),char(0),char(209),char(255),char(215), -char(1),char(23),char(0),char(211),char(255),char(215),char(1),char(23),char(0),char(213), -char(255),char(215),char(1),char(23),char(0),char(215),char(255),char(215),char(1),char(23), -char(0),char(217),char(255),char(215),char(1),char(23),char(0),char(219),char(255),char(215), -char(1),char(23),char(0),char(221),char(255),char(215),char(1),char(23),char(0),char(223), -char(255),char(236),char(1),char(23),char(0),char(225),char(255),char(236),char(1),char(23), -char(0),char(227),char(255),char(236),char(1),char(23),char(0),char(229),char(255),char(236), -char(1),char(23),char(1),char(15),char(255),char(215),char(1),char(23),char(1),char(17), -char(255),char(215),char(1),char(23),char(1),char(19),char(255),char(215),char(1),char(23), -char(1),char(21),char(255),char(215),char(1),char(23),char(1),char(68),char(255),char(215), -char(1),char(23),char(1),char(70),char(255),char(215),char(1),char(23),char(1),char(72), -char(255),char(215),char(1),char(23),char(2),char(7),char(0),char(82),char(1),char(23), -char(2),char(11),char(0),char(82),char(1),char(23),char(2),char(89),char(255),char(215), -char(1),char(23),char(2),char(96),char(255),char(215),char(1),char(23),char(3),char(30), -char(255),char(215),char(1),char(23),char(3),char(32),char(255),char(215),char(1),char(23), -char(3),char(34),char(255),char(215),char(1),char(23),char(3),char(38),char(255),char(215), -char(1),char(23),char(3),char(40),char(255),char(215),char(1),char(23),char(3),char(42), -char(255),char(215),char(1),char(23),char(3),char(44),char(255),char(215),char(1),char(23), -char(3),char(46),char(255),char(215),char(1),char(23),char(3),char(48),char(255),char(215), -char(1),char(23),char(3),char(50),char(255),char(215),char(1),char(23),char(3),char(52), -char(255),char(215),char(1),char(23),char(3),char(54),char(255),char(215),char(1),char(23), -char(3),char(56),char(255),char(215),char(1),char(23),char(3),char(58),char(255),char(215), -char(1),char(23),char(3),char(60),char(255),char(215),char(1),char(23),char(3),char(64), -char(255),char(215),char(1),char(23),char(3),char(66),char(255),char(215),char(1),char(23), -char(3),char(68),char(255),char(215),char(1),char(23),char(3),char(74),char(255),char(215), -char(1),char(23),char(3),char(76),char(255),char(215),char(1),char(23),char(3),char(78), -char(255),char(215),char(1),char(23),char(3),char(82),char(255),char(215),char(1),char(23), -char(3),char(84),char(255),char(215),char(1),char(23),char(3),char(86),char(255),char(215), -char(1),char(23),char(3),char(88),char(255),char(215),char(1),char(23),char(3),char(90), -char(255),char(215),char(1),char(23),char(3),char(92),char(255),char(215),char(1),char(23), -char(3),char(94),char(255),char(215),char(1),char(23),char(3),char(96),char(255),char(215), -char(1),char(25),char(0),char(5),char(0),char(82),char(1),char(25),char(0),char(10), -char(0),char(82),char(1),char(25),char(0),char(68),char(255),char(215),char(1),char(25), -char(0),char(70),char(255),char(215),char(1),char(25),char(0),char(71),char(255),char(215), -char(1),char(25),char(0),char(72),char(255),char(215),char(1),char(25),char(0),char(74), -char(255),char(236),char(1),char(25),char(0),char(82),char(255),char(215),char(1),char(25), -char(0),char(84),char(255),char(215),char(1),char(25),char(0),char(162),char(255),char(215), -char(1),char(25),char(0),char(163),char(255),char(215),char(1),char(25),char(0),char(164), -char(255),char(215),char(1),char(25),char(0),char(165),char(255),char(215),char(1),char(25), -char(0),char(166),char(255),char(215),char(1),char(25),char(0),char(167),char(255),char(215), -char(1),char(25),char(0),char(168),char(255),char(215),char(1),char(25),char(0),char(169), -char(255),char(215),char(1),char(25),char(0),char(170),char(255),char(215),char(1),char(25), -char(0),char(171),char(255),char(215),char(1),char(25),char(0),char(172),char(255),char(215), -char(1),char(25),char(0),char(173),char(255),char(215),char(1),char(25),char(0),char(180), -char(255),char(215),char(1),char(25),char(0),char(181),char(255),char(215),char(1),char(25), -char(0),char(182),char(255),char(215),char(1),char(25),char(0),char(183),char(255),char(215), -char(1),char(25),char(0),char(184),char(255),char(215),char(1),char(25),char(0),char(186), -char(255),char(215),char(1),char(25),char(0),char(195),char(255),char(215),char(1),char(25), -char(0),char(197),char(255),char(215),char(1),char(25),char(0),char(199),char(255),char(215), -char(1),char(25),char(0),char(201),char(255),char(215),char(1),char(25),char(0),char(203), -char(255),char(215),char(1),char(25),char(0),char(205),char(255),char(215),char(1),char(25), -char(0),char(207),char(255),char(215),char(1),char(25),char(0),char(209),char(255),char(215), -char(1),char(25),char(0),char(211),char(255),char(215),char(1),char(25),char(0),char(213), -char(255),char(215),char(1),char(25),char(0),char(215),char(255),char(215),char(1),char(25), -char(0),char(217),char(255),char(215),char(1),char(25),char(0),char(219),char(255),char(215), -char(1),char(25),char(0),char(221),char(255),char(215),char(1),char(25),char(0),char(223), -char(255),char(236),char(1),char(25),char(0),char(225),char(255),char(236),char(1),char(25), -char(0),char(227),char(255),char(236),char(1),char(25),char(0),char(229),char(255),char(236), -char(1),char(25),char(1),char(15),char(255),char(215),char(1),char(25),char(1),char(17), -char(255),char(215),char(1),char(25),char(1),char(19),char(255),char(215),char(1),char(25), -char(1),char(21),char(255),char(215),char(1),char(25),char(1),char(68),char(255),char(215), -char(1),char(25),char(1),char(70),char(255),char(215),char(1),char(25),char(1),char(72), -char(255),char(215),char(1),char(25),char(2),char(7),char(0),char(82),char(1),char(25), -char(2),char(11),char(0),char(82),char(1),char(25),char(2),char(89),char(255),char(215), -char(1),char(25),char(2),char(96),char(255),char(215),char(1),char(25),char(3),char(30), -char(255),char(215),char(1),char(25),char(3),char(32),char(255),char(215),char(1),char(25), -char(3),char(34),char(255),char(215),char(1),char(25),char(3),char(38),char(255),char(215), -char(1),char(25),char(3),char(40),char(255),char(215),char(1),char(25),char(3),char(42), -char(255),char(215),char(1),char(25),char(3),char(44),char(255),char(215),char(1),char(25), -char(3),char(46),char(255),char(215),char(1),char(25),char(3),char(48),char(255),char(215), -char(1),char(25),char(3),char(50),char(255),char(215),char(1),char(25),char(3),char(52), -char(255),char(215),char(1),char(25),char(3),char(54),char(255),char(215),char(1),char(25), -char(3),char(56),char(255),char(215),char(1),char(25),char(3),char(58),char(255),char(215), -char(1),char(25),char(3),char(60),char(255),char(215),char(1),char(25),char(3),char(64), -char(255),char(215),char(1),char(25),char(3),char(66),char(255),char(215),char(1),char(25), -char(3),char(68),char(255),char(215),char(1),char(25),char(3),char(74),char(255),char(215), -char(1),char(25),char(3),char(76),char(255),char(215),char(1),char(25),char(3),char(78), -char(255),char(215),char(1),char(25),char(3),char(82),char(255),char(215),char(1),char(25), -char(3),char(84),char(255),char(215),char(1),char(25),char(3),char(86),char(255),char(215), -char(1),char(25),char(3),char(88),char(255),char(215),char(1),char(25),char(3),char(90), -char(255),char(215),char(1),char(25),char(3),char(92),char(255),char(215),char(1),char(25), -char(3),char(94),char(255),char(215),char(1),char(25),char(3),char(96),char(255),char(215), -char(1),char(27),char(0),char(5),char(0),char(82),char(1),char(27),char(0),char(10), -char(0),char(82),char(1),char(27),char(0),char(68),char(255),char(215),char(1),char(27), -char(0),char(70),char(255),char(215),char(1),char(27),char(0),char(71),char(255),char(215), -char(1),char(27),char(0),char(72),char(255),char(215),char(1),char(27),char(0),char(74), -char(255),char(236),char(1),char(27),char(0),char(82),char(255),char(215),char(1),char(27), -char(0),char(84),char(255),char(215),char(1),char(27),char(0),char(162),char(255),char(215), -char(1),char(27),char(0),char(163),char(255),char(215),char(1),char(27),char(0),char(164), -char(255),char(215),char(1),char(27),char(0),char(165),char(255),char(215),char(1),char(27), -char(0),char(166),char(255),char(215),char(1),char(27),char(0),char(167),char(255),char(215), -char(1),char(27),char(0),char(168),char(255),char(215),char(1),char(27),char(0),char(169), -char(255),char(215),char(1),char(27),char(0),char(170),char(255),char(215),char(1),char(27), -char(0),char(171),char(255),char(215),char(1),char(27),char(0),char(172),char(255),char(215), -char(1),char(27),char(0),char(173),char(255),char(215),char(1),char(27),char(0),char(180), -char(255),char(215),char(1),char(27),char(0),char(181),char(255),char(215),char(1),char(27), -char(0),char(182),char(255),char(215),char(1),char(27),char(0),char(183),char(255),char(215), -char(1),char(27),char(0),char(184),char(255),char(215),char(1),char(27),char(0),char(186), -char(255),char(215),char(1),char(27),char(0),char(195),char(255),char(215),char(1),char(27), -char(0),char(197),char(255),char(215),char(1),char(27),char(0),char(199),char(255),char(215), -char(1),char(27),char(0),char(201),char(255),char(215),char(1),char(27),char(0),char(203), -char(255),char(215),char(1),char(27),char(0),char(205),char(255),char(215),char(1),char(27), -char(0),char(207),char(255),char(215),char(1),char(27),char(0),char(209),char(255),char(215), -char(1),char(27),char(0),char(211),char(255),char(215),char(1),char(27),char(0),char(213), -char(255),char(215),char(1),char(27),char(0),char(215),char(255),char(215),char(1),char(27), -char(0),char(217),char(255),char(215),char(1),char(27),char(0),char(219),char(255),char(215), -char(1),char(27),char(0),char(221),char(255),char(215),char(1),char(27),char(0),char(223), -char(255),char(236),char(1),char(27),char(0),char(225),char(255),char(236),char(1),char(27), -char(0),char(227),char(255),char(236),char(1),char(27),char(0),char(229),char(255),char(236), -char(1),char(27),char(1),char(15),char(255),char(215),char(1),char(27),char(1),char(17), -char(255),char(215),char(1),char(27),char(1),char(19),char(255),char(215),char(1),char(27), -char(1),char(21),char(255),char(215),char(1),char(27),char(1),char(68),char(255),char(215), -char(1),char(27),char(1),char(70),char(255),char(215),char(1),char(27),char(1),char(72), -char(255),char(215),char(1),char(27),char(2),char(7),char(0),char(82),char(1),char(27), -char(2),char(11),char(0),char(82),char(1),char(27),char(2),char(89),char(255),char(215), -char(1),char(27),char(2),char(96),char(255),char(215),char(1),char(27),char(3),char(30), -char(255),char(215),char(1),char(27),char(3),char(32),char(255),char(215),char(1),char(27), -char(3),char(34),char(255),char(215),char(1),char(27),char(3),char(38),char(255),char(215), -char(1),char(27),char(3),char(40),char(255),char(215),char(1),char(27),char(3),char(42), -char(255),char(215),char(1),char(27),char(3),char(44),char(255),char(215),char(1),char(27), -char(3),char(46),char(255),char(215),char(1),char(27),char(3),char(48),char(255),char(215), -char(1),char(27),char(3),char(50),char(255),char(215),char(1),char(27),char(3),char(52), -char(255),char(215),char(1),char(27),char(3),char(54),char(255),char(215),char(1),char(27), -char(3),char(56),char(255),char(215),char(1),char(27),char(3),char(58),char(255),char(215), -char(1),char(27),char(3),char(60),char(255),char(215),char(1),char(27),char(3),char(64), -char(255),char(215),char(1),char(27),char(3),char(66),char(255),char(215),char(1),char(27), -char(3),char(68),char(255),char(215),char(1),char(27),char(3),char(74),char(255),char(215), -char(1),char(27),char(3),char(76),char(255),char(215),char(1),char(27),char(3),char(78), -char(255),char(215),char(1),char(27),char(3),char(82),char(255),char(215),char(1),char(27), -char(3),char(84),char(255),char(215),char(1),char(27),char(3),char(86),char(255),char(215), -char(1),char(27),char(3),char(88),char(255),char(215),char(1),char(27),char(3),char(90), -char(255),char(215),char(1),char(27),char(3),char(92),char(255),char(215),char(1),char(27), -char(3),char(94),char(255),char(215),char(1),char(27),char(3),char(96),char(255),char(215), -char(1),char(36),char(0),char(15),char(255),char(133),char(1),char(36),char(0),char(16), -char(255),char(174),char(1),char(36),char(0),char(17),char(255),char(133),char(1),char(36), -char(0),char(34),char(0),char(41),char(1),char(36),char(0),char(36),char(255),char(113), -char(1),char(36),char(0),char(38),char(255),char(215),char(1),char(36),char(0),char(42), -char(255),char(215),char(1),char(36),char(0),char(50),char(255),char(215),char(1),char(36), -char(0),char(52),char(255),char(215),char(1),char(36),char(0),char(55),char(0),char(41), -char(1),char(36),char(0),char(68),char(255),char(92),char(1),char(36),char(0),char(70), -char(255),char(113),char(1),char(36),char(0),char(71),char(255),char(113),char(1),char(36), -char(0),char(72),char(255),char(113),char(1),char(36),char(0),char(74),char(255),char(113), -char(1),char(36),char(0),char(80),char(255),char(154),char(1),char(36),char(0),char(81), -char(255),char(154),char(1),char(36),char(0),char(82),char(255),char(113),char(1),char(36), -char(0),char(83),char(255),char(154),char(1),char(36),char(0),char(84),char(255),char(113), -char(1),char(36),char(0),char(85),char(255),char(154),char(1),char(36),char(0),char(86), -char(255),char(133),char(1),char(36),char(0),char(88),char(255),char(154),char(1),char(36), -char(0),char(89),char(255),char(215),char(1),char(36),char(0),char(90),char(255),char(215), -char(1),char(36),char(0),char(91),char(255),char(215),char(1),char(36),char(0),char(92), -char(255),char(215),char(1),char(36),char(0),char(93),char(255),char(174),char(1),char(36), -char(0),char(130),char(255),char(113),char(1),char(36),char(0),char(131),char(255),char(113), -char(1),char(36),char(0),char(132),char(255),char(113),char(1),char(36),char(0),char(133), -char(255),char(113),char(1),char(36),char(0),char(134),char(255),char(113),char(1),char(36), -char(0),char(135),char(255),char(113),char(1),char(36),char(0),char(137),char(255),char(215), -char(1),char(36),char(0),char(148),char(255),char(215),char(1),char(36),char(0),char(149), -char(255),char(215),char(1),char(36),char(0),char(150),char(255),char(215),char(1),char(36), -char(0),char(151),char(255),char(215),char(1),char(36),char(0),char(152),char(255),char(215), -char(1),char(36),char(0),char(154),char(255),char(215),char(1),char(36),char(0),char(162), -char(255),char(113),char(1),char(36),char(0),char(163),char(255),char(92),char(1),char(36), -char(0),char(164),char(255),char(92),char(1),char(36),char(0),char(165),char(255),char(92), -char(1),char(36),char(0),char(166),char(255),char(92),char(1),char(36),char(0),char(167), -char(255),char(92),char(1),char(36),char(0),char(168),char(255),char(92),char(1),char(36), -char(0),char(169),char(255),char(113),char(1),char(36),char(0),char(170),char(255),char(113), -char(1),char(36),char(0),char(171),char(255),char(113),char(1),char(36),char(0),char(172), -char(255),char(113),char(1),char(36),char(0),char(173),char(255),char(113),char(1),char(36), -char(0),char(180),char(255),char(113),char(1),char(36),char(0),char(181),char(255),char(113), -char(1),char(36),char(0),char(182),char(255),char(113),char(1),char(36),char(0),char(183), -char(255),char(113),char(1),char(36),char(0),char(184),char(255),char(113),char(1),char(36), -char(0),char(186),char(255),char(113),char(1),char(36),char(0),char(187),char(255),char(154), -char(1),char(36),char(0),char(188),char(255),char(154),char(1),char(36),char(0),char(189), -char(255),char(154),char(1),char(36),char(0),char(190),char(255),char(154),char(1),char(36), -char(0),char(191),char(255),char(215),char(1),char(36),char(0),char(194),char(255),char(113), -char(1),char(36),char(0),char(195),char(255),char(92),char(1),char(36),char(0),char(196), -char(255),char(113),char(1),char(36),char(0),char(197),char(255),char(92),char(1),char(36), -char(0),char(198),char(255),char(113),char(1),char(36),char(0),char(199),char(255),char(92), -char(1),char(36),char(0),char(200),char(255),char(215),char(1),char(36),char(0),char(201), -char(255),char(113),char(1),char(36),char(0),char(202),char(255),char(215),char(1),char(36), -char(0),char(203),char(255),char(113),char(1),char(36),char(0),char(204),char(255),char(215), -char(1),char(36),char(0),char(205),char(255),char(113),char(1),char(36),char(0),char(206), -char(255),char(215),char(1),char(36),char(0),char(207),char(255),char(113),char(1),char(36), -char(0),char(209),char(255),char(113),char(1),char(36),char(0),char(211),char(255),char(113), -char(1),char(36),char(0),char(213),char(255),char(113),char(1),char(36),char(0),char(215), -char(255),char(113),char(1),char(36),char(0),char(217),char(255),char(113),char(1),char(36), -char(0),char(219),char(255),char(113),char(1),char(36),char(0),char(221),char(255),char(113), -char(1),char(36),char(0),char(222),char(255),char(215),char(1),char(36),char(0),char(223), -char(255),char(113),char(1),char(36),char(0),char(224),char(255),char(215),char(1),char(36), -char(0),char(225),char(255),char(113),char(1),char(36),char(0),char(226),char(255),char(215), -char(1),char(36),char(0),char(227),char(255),char(113),char(1),char(36),char(0),char(228), -char(255),char(215),char(1),char(36),char(0),char(229),char(255),char(113),char(1),char(36), -char(0),char(250),char(255),char(154),char(1),char(36),char(1),char(6),char(255),char(154), -char(1),char(36),char(1),char(8),char(255),char(154),char(1),char(36),char(1),char(13), -char(255),char(154),char(1),char(36),char(1),char(14),char(255),char(215),char(1),char(36), -char(1),char(15),char(255),char(113),char(1),char(36),char(1),char(16),char(255),char(215), -char(1),char(36),char(1),char(17),char(255),char(113),char(1),char(36),char(1),char(18), -char(255),char(215),char(1),char(36),char(1),char(19),char(255),char(113),char(1),char(36), -char(1),char(20),char(255),char(215),char(1),char(36),char(1),char(21),char(255),char(113), -char(1),char(36),char(1),char(23),char(255),char(154),char(1),char(36),char(1),char(25), -char(255),char(154),char(1),char(36),char(1),char(29),char(255),char(133),char(1),char(36), -char(1),char(33),char(255),char(133),char(1),char(36),char(1),char(36),char(0),char(41), -char(1),char(36),char(1),char(38),char(0),char(41),char(1),char(36),char(1),char(43), -char(255),char(154),char(1),char(36),char(1),char(45),char(255),char(154),char(1),char(36), -char(1),char(47),char(255),char(154),char(1),char(36),char(1),char(49),char(255),char(154), -char(1),char(36),char(1),char(51),char(255),char(154),char(1),char(36),char(1),char(53), -char(255),char(154),char(1),char(36),char(1),char(55),char(255),char(215),char(1),char(36), -char(1),char(60),char(255),char(174),char(1),char(36),char(1),char(62),char(255),char(174), -char(1),char(36),char(1),char(64),char(255),char(174),char(1),char(36),char(1),char(67), -char(255),char(113),char(1),char(36),char(1),char(68),char(255),char(92),char(1),char(36), -char(1),char(70),char(255),char(92),char(1),char(36),char(1),char(71),char(255),char(215), -char(1),char(36),char(1),char(72),char(255),char(113),char(1),char(36),char(1),char(74), -char(255),char(133),char(1),char(36),char(1),char(251),char(255),char(215),char(1),char(36), -char(1),char(253),char(255),char(215),char(1),char(36),char(2),char(2),char(255),char(174), -char(1),char(36),char(2),char(3),char(255),char(174),char(1),char(36),char(2),char(4), -char(255),char(174),char(1),char(36),char(2),char(8),char(255),char(133),char(1),char(36), -char(2),char(12),char(255),char(133),char(1),char(36),char(2),char(87),char(255),char(154), -char(1),char(36),char(2),char(88),char(255),char(113),char(1),char(36),char(2),char(89), -char(255),char(92),char(1),char(36),char(2),char(95),char(255),char(215),char(1),char(36), -char(2),char(96),char(255),char(113),char(1),char(36),char(2),char(98),char(255),char(154), -char(1),char(36),char(3),char(29),char(255),char(113),char(1),char(36),char(3),char(30), -char(255),char(92),char(1),char(36),char(3),char(31),char(255),char(113),char(1),char(36), -char(3),char(32),char(255),char(92),char(1),char(36),char(3),char(33),char(255),char(113), -char(1),char(36),char(3),char(34),char(255),char(92),char(1),char(36),char(3),char(35), -char(255),char(113),char(1),char(36),char(3),char(37),char(255),char(113),char(1),char(36), -char(3),char(38),char(255),char(92),char(1),char(36),char(3),char(39),char(255),char(113), -char(1),char(36),char(3),char(40),char(255),char(92),char(1),char(36),char(3),char(41), -char(255),char(113),char(1),char(36),char(3),char(42),char(255),char(92),char(1),char(36), -char(3),char(43),char(255),char(113),char(1),char(36),char(3),char(44),char(255),char(92), -char(1),char(36),char(3),char(45),char(255),char(113),char(1),char(36),char(3),char(46), -char(255),char(92),char(1),char(36),char(3),char(47),char(255),char(113),char(1),char(36), -char(3),char(48),char(255),char(92),char(1),char(36),char(3),char(49),char(255),char(113), -char(1),char(36),char(3),char(50),char(255),char(92),char(1),char(36),char(3),char(51), -char(255),char(113),char(1),char(36),char(3),char(52),char(255),char(92),char(1),char(36), -char(3),char(54),char(255),char(113),char(1),char(36),char(3),char(56),char(255),char(113), -char(1),char(36),char(3),char(58),char(255),char(113),char(1),char(36),char(3),char(60), -char(255),char(113),char(1),char(36),char(3),char(64),char(255),char(113),char(1),char(36), -char(3),char(66),char(255),char(113),char(1),char(36),char(3),char(68),char(255),char(113), -char(1),char(36),char(3),char(73),char(255),char(215),char(1),char(36),char(3),char(74), -char(255),char(113),char(1),char(36),char(3),char(75),char(255),char(215),char(1),char(36), -char(3),char(76),char(255),char(113),char(1),char(36),char(3),char(77),char(255),char(215), -char(1),char(36),char(3),char(78),char(255),char(113),char(1),char(36),char(3),char(79), -char(255),char(215),char(1),char(36),char(3),char(81),char(255),char(215),char(1),char(36), -char(3),char(82),char(255),char(113),char(1),char(36),char(3),char(83),char(255),char(215), -char(1),char(36),char(3),char(84),char(255),char(113),char(1),char(36),char(3),char(85), -char(255),char(215),char(1),char(36),char(3),char(86),char(255),char(113),char(1),char(36), -char(3),char(87),char(255),char(215),char(1),char(36),char(3),char(88),char(255),char(113), -char(1),char(36),char(3),char(89),char(255),char(215),char(1),char(36),char(3),char(90), -char(255),char(113),char(1),char(36),char(3),char(91),char(255),char(215),char(1),char(36), -char(3),char(92),char(255),char(113),char(1),char(36),char(3),char(93),char(255),char(215), -char(1),char(36),char(3),char(94),char(255),char(113),char(1),char(36),char(3),char(95), -char(255),char(215),char(1),char(36),char(3),char(96),char(255),char(113),char(1),char(36), -char(3),char(98),char(255),char(154),char(1),char(36),char(3),char(100),char(255),char(154), -char(1),char(36),char(3),char(102),char(255),char(154),char(1),char(36),char(3),char(104), -char(255),char(154),char(1),char(36),char(3),char(106),char(255),char(154),char(1),char(36), -char(3),char(108),char(255),char(154),char(1),char(36),char(3),char(110),char(255),char(154), -char(1),char(36),char(3),char(112),char(255),char(215),char(1),char(36),char(3),char(143), -char(0),char(41),char(1),char(37),char(0),char(5),char(0),char(41),char(1),char(37), -char(0),char(10),char(0),char(41),char(1),char(37),char(2),char(7),char(0),char(41), -char(1),char(37),char(2),char(11),char(0),char(41),char(1),char(38),char(0),char(15), -char(255),char(133),char(1),char(38),char(0),char(16),char(255),char(174),char(1),char(38), -char(0),char(17),char(255),char(133),char(1),char(38),char(0),char(34),char(0),char(41), -char(1),char(38),char(0),char(36),char(255),char(113),char(1),char(38),char(0),char(38), -char(255),char(215),char(1),char(38),char(0),char(42),char(255),char(215),char(1),char(38), -char(0),char(50),char(255),char(215),char(1),char(38),char(0),char(52),char(255),char(215), -char(1),char(38),char(0),char(55),char(0),char(41),char(1),char(38),char(0),char(68), -char(255),char(92),char(1),char(38),char(0),char(70),char(255),char(113),char(1),char(38), -char(0),char(71),char(255),char(113),char(1),char(38),char(0),char(72),char(255),char(113), -char(1),char(38),char(0),char(74),char(255),char(113),char(1),char(38),char(0),char(80), -char(255),char(154),char(1),char(38),char(0),char(81),char(255),char(154),char(1),char(38), -char(0),char(82),char(255),char(113),char(1),char(38),char(0),char(83),char(255),char(154), -char(1),char(38),char(0),char(84),char(255),char(113),char(1),char(38),char(0),char(85), -char(255),char(154),char(1),char(38),char(0),char(86),char(255),char(133),char(1),char(38), -char(0),char(88),char(255),char(154),char(1),char(38),char(0),char(89),char(255),char(215), -char(1),char(38),char(0),char(90),char(255),char(215),char(1),char(38),char(0),char(91), -char(255),char(215),char(1),char(38),char(0),char(92),char(255),char(215),char(1),char(38), -char(0),char(93),char(255),char(174),char(1),char(38),char(0),char(130),char(255),char(113), -char(1),char(38),char(0),char(131),char(255),char(113),char(1),char(38),char(0),char(132), -char(255),char(113),char(1),char(38),char(0),char(133),char(255),char(113),char(1),char(38), -char(0),char(134),char(255),char(113),char(1),char(38),char(0),char(135),char(255),char(113), -char(1),char(38),char(0),char(137),char(255),char(215),char(1),char(38),char(0),char(148), -char(255),char(215),char(1),char(38),char(0),char(149),char(255),char(215),char(1),char(38), -char(0),char(150),char(255),char(215),char(1),char(38),char(0),char(151),char(255),char(215), -char(1),char(38),char(0),char(152),char(255),char(215),char(1),char(38),char(0),char(154), -char(255),char(215),char(1),char(38),char(0),char(162),char(255),char(113),char(1),char(38), -char(0),char(163),char(255),char(92),char(1),char(38),char(0),char(164),char(255),char(92), -char(1),char(38),char(0),char(165),char(255),char(92),char(1),char(38),char(0),char(166), -char(255),char(92),char(1),char(38),char(0),char(167),char(255),char(92),char(1),char(38), -char(0),char(168),char(255),char(92),char(1),char(38),char(0),char(169),char(255),char(113), -char(1),char(38),char(0),char(170),char(255),char(113),char(1),char(38),char(0),char(171), -char(255),char(113),char(1),char(38),char(0),char(172),char(255),char(113),char(1),char(38), -char(0),char(173),char(255),char(113),char(1),char(38),char(0),char(180),char(255),char(113), -char(1),char(38),char(0),char(181),char(255),char(113),char(1),char(38),char(0),char(182), -char(255),char(113),char(1),char(38),char(0),char(183),char(255),char(113),char(1),char(38), -char(0),char(184),char(255),char(113),char(1),char(38),char(0),char(186),char(255),char(113), -char(1),char(38),char(0),char(187),char(255),char(154),char(1),char(38),char(0),char(188), -char(255),char(154),char(1),char(38),char(0),char(189),char(255),char(154),char(1),char(38), -char(0),char(190),char(255),char(154),char(1),char(38),char(0),char(191),char(255),char(215), -char(1),char(38),char(0),char(194),char(255),char(113),char(1),char(38),char(0),char(195), -char(255),char(92),char(1),char(38),char(0),char(196),char(255),char(113),char(1),char(38), -char(0),char(197),char(255),char(92),char(1),char(38),char(0),char(198),char(255),char(113), -char(1),char(38),char(0),char(199),char(255),char(92),char(1),char(38),char(0),char(200), -char(255),char(215),char(1),char(38),char(0),char(201),char(255),char(113),char(1),char(38), -char(0),char(202),char(255),char(215),char(1),char(38),char(0),char(203),char(255),char(113), -char(1),char(38),char(0),char(204),char(255),char(215),char(1),char(38),char(0),char(205), -char(255),char(113),char(1),char(38),char(0),char(206),char(255),char(215),char(1),char(38), -char(0),char(207),char(255),char(113),char(1),char(38),char(0),char(209),char(255),char(113), -char(1),char(38),char(0),char(211),char(255),char(113),char(1),char(38),char(0),char(213), -char(255),char(113),char(1),char(38),char(0),char(215),char(255),char(113),char(1),char(38), -char(0),char(217),char(255),char(113),char(1),char(38),char(0),char(219),char(255),char(113), -char(1),char(38),char(0),char(221),char(255),char(113),char(1),char(38),char(0),char(222), -char(255),char(215),char(1),char(38),char(0),char(223),char(255),char(113),char(1),char(38), -char(0),char(224),char(255),char(215),char(1),char(38),char(0),char(225),char(255),char(113), -char(1),char(38),char(0),char(226),char(255),char(215),char(1),char(38),char(0),char(227), -char(255),char(113),char(1),char(38),char(0),char(228),char(255),char(215),char(1),char(38), -char(0),char(229),char(255),char(113),char(1),char(38),char(0),char(250),char(255),char(154), -char(1),char(38),char(1),char(6),char(255),char(154),char(1),char(38),char(1),char(8), -char(255),char(154),char(1),char(38),char(1),char(13),char(255),char(154),char(1),char(38), -char(1),char(14),char(255),char(215),char(1),char(38),char(1),char(15),char(255),char(113), -char(1),char(38),char(1),char(16),char(255),char(215),char(1),char(38),char(1),char(17), -char(255),char(113),char(1),char(38),char(1),char(18),char(255),char(215),char(1),char(38), -char(1),char(19),char(255),char(113),char(1),char(38),char(1),char(20),char(255),char(215), -char(1),char(38),char(1),char(21),char(255),char(113),char(1),char(38),char(1),char(23), -char(255),char(154),char(1),char(38),char(1),char(25),char(255),char(154),char(1),char(38), -char(1),char(29),char(255),char(133),char(1),char(38),char(1),char(33),char(255),char(133), -char(1),char(38),char(1),char(36),char(0),char(41),char(1),char(38),char(1),char(38), -char(0),char(41),char(1),char(38),char(1),char(43),char(255),char(154),char(1),char(38), -char(1),char(45),char(255),char(154),char(1),char(38),char(1),char(47),char(255),char(154), -char(1),char(38),char(1),char(49),char(255),char(154),char(1),char(38),char(1),char(51), -char(255),char(154),char(1),char(38),char(1),char(53),char(255),char(154),char(1),char(38), -char(1),char(55),char(255),char(215),char(1),char(38),char(1),char(60),char(255),char(174), -char(1),char(38),char(1),char(62),char(255),char(174),char(1),char(38),char(1),char(64), -char(255),char(174),char(1),char(38),char(1),char(67),char(255),char(113),char(1),char(38), -char(1),char(68),char(255),char(92),char(1),char(38),char(1),char(70),char(255),char(92), -char(1),char(38),char(1),char(71),char(255),char(215),char(1),char(38),char(1),char(72), -char(255),char(113),char(1),char(38),char(1),char(74),char(255),char(133),char(1),char(38), -char(1),char(251),char(255),char(215),char(1),char(38),char(1),char(253),char(255),char(215), -char(1),char(38),char(2),char(2),char(255),char(174),char(1),char(38),char(2),char(3), -char(255),char(174),char(1),char(38),char(2),char(4),char(255),char(174),char(1),char(38), -char(2),char(8),char(255),char(133),char(1),char(38),char(2),char(12),char(255),char(133), -char(1),char(38),char(2),char(87),char(255),char(154),char(1),char(38),char(2),char(88), -char(255),char(113),char(1),char(38),char(2),char(89),char(255),char(92),char(1),char(38), -char(2),char(95),char(255),char(215),char(1),char(38),char(2),char(96),char(255),char(113), -char(1),char(38),char(2),char(98),char(255),char(154),char(1),char(38),char(3),char(29), -char(255),char(113),char(1),char(38),char(3),char(30),char(255),char(92),char(1),char(38), -char(3),char(31),char(255),char(113),char(1),char(38),char(3),char(32),char(255),char(92), -char(1),char(38),char(3),char(33),char(255),char(113),char(1),char(38),char(3),char(34), -char(255),char(92),char(1),char(38),char(3),char(35),char(255),char(113),char(1),char(38), -char(3),char(37),char(255),char(113),char(1),char(38),char(3),char(38),char(255),char(92), -char(1),char(38),char(3),char(39),char(255),char(113),char(1),char(38),char(3),char(40), -char(255),char(92),char(1),char(38),char(3),char(41),char(255),char(113),char(1),char(38), -char(3),char(42),char(255),char(92),char(1),char(38),char(3),char(43),char(255),char(113), -char(1),char(38),char(3),char(44),char(255),char(92),char(1),char(38),char(3),char(45), -char(255),char(113),char(1),char(38),char(3),char(46),char(255),char(92),char(1),char(38), -char(3),char(47),char(255),char(113),char(1),char(38),char(3),char(48),char(255),char(92), -char(1),char(38),char(3),char(49),char(255),char(113),char(1),char(38),char(3),char(50), -char(255),char(92),char(1),char(38),char(3),char(51),char(255),char(113),char(1),char(38), -char(3),char(52),char(255),char(92),char(1),char(38),char(3),char(54),char(255),char(113), -char(1),char(38),char(3),char(56),char(255),char(113),char(1),char(38),char(3),char(58), -char(255),char(113),char(1),char(38),char(3),char(60),char(255),char(113),char(1),char(38), -char(3),char(64),char(255),char(113),char(1),char(38),char(3),char(66),char(255),char(113), -char(1),char(38),char(3),char(68),char(255),char(113),char(1),char(38),char(3),char(73), -char(255),char(215),char(1),char(38),char(3),char(74),char(255),char(113),char(1),char(38), -char(3),char(75),char(255),char(215),char(1),char(38),char(3),char(76),char(255),char(113), -char(1),char(38),char(3),char(77),char(255),char(215),char(1),char(38),char(3),char(78), -char(255),char(113),char(1),char(38),char(3),char(79),char(255),char(215),char(1),char(38), -char(3),char(81),char(255),char(215),char(1),char(38),char(3),char(82),char(255),char(113), -char(1),char(38),char(3),char(83),char(255),char(215),char(1),char(38),char(3),char(84), -char(255),char(113),char(1),char(38),char(3),char(85),char(255),char(215),char(1),char(38), -char(3),char(86),char(255),char(113),char(1),char(38),char(3),char(87),char(255),char(215), -char(1),char(38),char(3),char(88),char(255),char(113),char(1),char(38),char(3),char(89), -char(255),char(215),char(1),char(38),char(3),char(90),char(255),char(113),char(1),char(38), -char(3),char(91),char(255),char(215),char(1),char(38),char(3),char(92),char(255),char(113), -char(1),char(38),char(3),char(93),char(255),char(215),char(1),char(38),char(3),char(94), -char(255),char(113),char(1),char(38),char(3),char(95),char(255),char(215),char(1),char(38), -char(3),char(96),char(255),char(113),char(1),char(38),char(3),char(98),char(255),char(154), -char(1),char(38),char(3),char(100),char(255),char(154),char(1),char(38),char(3),char(102), -char(255),char(154),char(1),char(38),char(3),char(104),char(255),char(154),char(1),char(38), -char(3),char(106),char(255),char(154),char(1),char(38),char(3),char(108),char(255),char(154), -char(1),char(38),char(3),char(110),char(255),char(154),char(1),char(38),char(3),char(112), -char(255),char(215),char(1),char(38),char(3),char(143),char(0),char(41),char(1),char(39), -char(0),char(5),char(0),char(41),char(1),char(39),char(0),char(10),char(0),char(41), -char(1),char(39),char(2),char(7),char(0),char(41),char(1),char(39),char(2),char(11), -char(0),char(41),char(1),char(40),char(0),char(15),char(255),char(133),char(1),char(40), -char(0),char(16),char(255),char(174),char(1),char(40),char(0),char(17),char(255),char(133), -char(1),char(40),char(0),char(34),char(0),char(41),char(1),char(40),char(0),char(36), -char(255),char(113),char(1),char(40),char(0),char(38),char(255),char(215),char(1),char(40), -char(0),char(42),char(255),char(215),char(1),char(40),char(0),char(50),char(255),char(215), -char(1),char(40),char(0),char(52),char(255),char(215),char(1),char(40),char(0),char(55), -char(0),char(41),char(1),char(40),char(0),char(68),char(255),char(92),char(1),char(40), -char(0),char(70),char(255),char(113),char(1),char(40),char(0),char(71),char(255),char(113), -char(1),char(40),char(0),char(72),char(255),char(113),char(1),char(40),char(0),char(74), -char(255),char(113),char(1),char(40),char(0),char(80),char(255),char(154),char(1),char(40), -char(0),char(81),char(255),char(154),char(1),char(40),char(0),char(82),char(255),char(113), -char(1),char(40),char(0),char(83),char(255),char(154),char(1),char(40),char(0),char(84), -char(255),char(113),char(1),char(40),char(0),char(85),char(255),char(154),char(1),char(40), -char(0),char(86),char(255),char(133),char(1),char(40),char(0),char(88),char(255),char(154), -char(1),char(40),char(0),char(89),char(255),char(215),char(1),char(40),char(0),char(90), -char(255),char(215),char(1),char(40),char(0),char(91),char(255),char(215),char(1),char(40), -char(0),char(92),char(255),char(215),char(1),char(40),char(0),char(93),char(255),char(174), -char(1),char(40),char(0),char(130),char(255),char(113),char(1),char(40),char(0),char(131), -char(255),char(113),char(1),char(40),char(0),char(132),char(255),char(113),char(1),char(40), -char(0),char(133),char(255),char(113),char(1),char(40),char(0),char(134),char(255),char(113), -char(1),char(40),char(0),char(135),char(255),char(113),char(1),char(40),char(0),char(137), -char(255),char(215),char(1),char(40),char(0),char(148),char(255),char(215),char(1),char(40), -char(0),char(149),char(255),char(215),char(1),char(40),char(0),char(150),char(255),char(215), -char(1),char(40),char(0),char(151),char(255),char(215),char(1),char(40),char(0),char(152), -char(255),char(215),char(1),char(40),char(0),char(154),char(255),char(215),char(1),char(40), -char(0),char(162),char(255),char(113),char(1),char(40),char(0),char(163),char(255),char(92), -char(1),char(40),char(0),char(164),char(255),char(92),char(1),char(40),char(0),char(165), -char(255),char(92),char(1),char(40),char(0),char(166),char(255),char(92),char(1),char(40), -char(0),char(167),char(255),char(92),char(1),char(40),char(0),char(168),char(255),char(92), -char(1),char(40),char(0),char(169),char(255),char(113),char(1),char(40),char(0),char(170), -char(255),char(113),char(1),char(40),char(0),char(171),char(255),char(113),char(1),char(40), -char(0),char(172),char(255),char(113),char(1),char(40),char(0),char(173),char(255),char(113), -char(1),char(40),char(0),char(180),char(255),char(113),char(1),char(40),char(0),char(181), -char(255),char(113),char(1),char(40),char(0),char(182),char(255),char(113),char(1),char(40), -char(0),char(183),char(255),char(113),char(1),char(40),char(0),char(184),char(255),char(113), -char(1),char(40),char(0),char(186),char(255),char(113),char(1),char(40),char(0),char(187), -char(255),char(154),char(1),char(40),char(0),char(188),char(255),char(154),char(1),char(40), -char(0),char(189),char(255),char(154),char(1),char(40),char(0),char(190),char(255),char(154), -char(1),char(40),char(0),char(191),char(255),char(215),char(1),char(40),char(0),char(194), -char(255),char(113),char(1),char(40),char(0),char(195),char(255),char(92),char(1),char(40), -char(0),char(196),char(255),char(113),char(1),char(40),char(0),char(197),char(255),char(92), -char(1),char(40),char(0),char(198),char(255),char(113),char(1),char(40),char(0),char(199), -char(255),char(92),char(1),char(40),char(0),char(200),char(255),char(215),char(1),char(40), -char(0),char(201),char(255),char(113),char(1),char(40),char(0),char(202),char(255),char(215), -char(1),char(40),char(0),char(203),char(255),char(113),char(1),char(40),char(0),char(204), -char(255),char(215),char(1),char(40),char(0),char(205),char(255),char(113),char(1),char(40), -char(0),char(206),char(255),char(215),char(1),char(40),char(0),char(207),char(255),char(113), -char(1),char(40),char(0),char(209),char(255),char(113),char(1),char(40),char(0),char(211), -char(255),char(113),char(1),char(40),char(0),char(213),char(255),char(113),char(1),char(40), -char(0),char(215),char(255),char(113),char(1),char(40),char(0),char(217),char(255),char(113), -char(1),char(40),char(0),char(219),char(255),char(113),char(1),char(40),char(0),char(221), -char(255),char(113),char(1),char(40),char(0),char(222),char(255),char(215),char(1),char(40), -char(0),char(223),char(255),char(113),char(1),char(40),char(0),char(224),char(255),char(215), -char(1),char(40),char(0),char(225),char(255),char(113),char(1),char(40),char(0),char(226), -char(255),char(215),char(1),char(40),char(0),char(227),char(255),char(113),char(1),char(40), -char(0),char(228),char(255),char(215),char(1),char(40),char(0),char(229),char(255),char(113), -char(1),char(40),char(0),char(250),char(255),char(154),char(1),char(40),char(1),char(6), -char(255),char(154),char(1),char(40),char(1),char(8),char(255),char(154),char(1),char(40), -char(1),char(13),char(255),char(154),char(1),char(40),char(1),char(14),char(255),char(215), -char(1),char(40),char(1),char(15),char(255),char(113),char(1),char(40),char(1),char(16), -char(255),char(215),char(1),char(40),char(1),char(17),char(255),char(113),char(1),char(40), -char(1),char(18),char(255),char(215),char(1),char(40),char(1),char(19),char(255),char(113), -char(1),char(40),char(1),char(20),char(255),char(215),char(1),char(40),char(1),char(21), -char(255),char(113),char(1),char(40),char(1),char(23),char(255),char(154),char(1),char(40), -char(1),char(25),char(255),char(154),char(1),char(40),char(1),char(29),char(255),char(133), -char(1),char(40),char(1),char(33),char(255),char(133),char(1),char(40),char(1),char(36), -char(0),char(41),char(1),char(40),char(1),char(38),char(0),char(41),char(1),char(40), -char(1),char(43),char(255),char(154),char(1),char(40),char(1),char(45),char(255),char(154), -char(1),char(40),char(1),char(47),char(255),char(154),char(1),char(40),char(1),char(49), -char(255),char(154),char(1),char(40),char(1),char(51),char(255),char(154),char(1),char(40), -char(1),char(53),char(255),char(154),char(1),char(40),char(1),char(55),char(255),char(215), -char(1),char(40),char(1),char(60),char(255),char(174),char(1),char(40),char(1),char(62), -char(255),char(174),char(1),char(40),char(1),char(64),char(255),char(174),char(1),char(40), -char(1),char(67),char(255),char(113),char(1),char(40),char(1),char(68),char(255),char(92), -char(1),char(40),char(1),char(70),char(255),char(92),char(1),char(40),char(1),char(71), -char(255),char(215),char(1),char(40),char(1),char(72),char(255),char(113),char(1),char(40), -char(1),char(74),char(255),char(133),char(1),char(40),char(1),char(251),char(255),char(215), -char(1),char(40),char(1),char(253),char(255),char(215),char(1),char(40),char(2),char(2), -char(255),char(174),char(1),char(40),char(2),char(3),char(255),char(174),char(1),char(40), -char(2),char(4),char(255),char(174),char(1),char(40),char(2),char(8),char(255),char(133), -char(1),char(40),char(2),char(12),char(255),char(133),char(1),char(40),char(2),char(87), -char(255),char(154),char(1),char(40),char(2),char(88),char(255),char(113),char(1),char(40), -char(2),char(89),char(255),char(92),char(1),char(40),char(2),char(95),char(255),char(215), -char(1),char(40),char(2),char(96),char(255),char(113),char(1),char(40),char(2),char(98), -char(255),char(154),char(1),char(40),char(3),char(29),char(255),char(113),char(1),char(40), -char(3),char(30),char(255),char(92),char(1),char(40),char(3),char(31),char(255),char(113), -char(1),char(40),char(3),char(32),char(255),char(92),char(1),char(40),char(3),char(33), -char(255),char(113),char(1),char(40),char(3),char(34),char(255),char(92),char(1),char(40), -char(3),char(35),char(255),char(113),char(1),char(40),char(3),char(37),char(255),char(113), -char(1),char(40),char(3),char(38),char(255),char(92),char(1),char(40),char(3),char(39), -char(255),char(113),char(1),char(40),char(3),char(40),char(255),char(92),char(1),char(40), -char(3),char(41),char(255),char(113),char(1),char(40),char(3),char(42),char(255),char(92), -char(1),char(40),char(3),char(43),char(255),char(113),char(1),char(40),char(3),char(44), -char(255),char(92),char(1),char(40),char(3),char(45),char(255),char(113),char(1),char(40), -char(3),char(46),char(255),char(92),char(1),char(40),char(3),char(47),char(255),char(113), -char(1),char(40),char(3),char(48),char(255),char(92),char(1),char(40),char(3),char(49), -char(255),char(113),char(1),char(40),char(3),char(50),char(255),char(92),char(1),char(40), -char(3),char(51),char(255),char(113),char(1),char(40),char(3),char(52),char(255),char(92), -char(1),char(40),char(3),char(54),char(255),char(113),char(1),char(40),char(3),char(56), -char(255),char(113),char(1),char(40),char(3),char(58),char(255),char(113),char(1),char(40), -char(3),char(60),char(255),char(113),char(1),char(40),char(3),char(64),char(255),char(113), -char(1),char(40),char(3),char(66),char(255),char(113),char(1),char(40),char(3),char(68), -char(255),char(113),char(1),char(40),char(3),char(73),char(255),char(215),char(1),char(40), -char(3),char(74),char(255),char(113),char(1),char(40),char(3),char(75),char(255),char(215), -char(1),char(40),char(3),char(76),char(255),char(113),char(1),char(40),char(3),char(77), -char(255),char(215),char(1),char(40),char(3),char(78),char(255),char(113),char(1),char(40), -char(3),char(79),char(255),char(215),char(1),char(40),char(3),char(81),char(255),char(215), -char(1),char(40),char(3),char(82),char(255),char(113),char(1),char(40),char(3),char(83), -char(255),char(215),char(1),char(40),char(3),char(84),char(255),char(113),char(1),char(40), -char(3),char(85),char(255),char(215),char(1),char(40),char(3),char(86),char(255),char(113), -char(1),char(40),char(3),char(87),char(255),char(215),char(1),char(40),char(3),char(88), -char(255),char(113),char(1),char(40),char(3),char(89),char(255),char(215),char(1),char(40), -char(3),char(90),char(255),char(113),char(1),char(40),char(3),char(91),char(255),char(215), -char(1),char(40),char(3),char(92),char(255),char(113),char(1),char(40),char(3),char(93), -char(255),char(215),char(1),char(40),char(3),char(94),char(255),char(113),char(1),char(40), -char(3),char(95),char(255),char(215),char(1),char(40),char(3),char(96),char(255),char(113), -char(1),char(40),char(3),char(98),char(255),char(154),char(1),char(40),char(3),char(100), -char(255),char(154),char(1),char(40),char(3),char(102),char(255),char(154),char(1),char(40), -char(3),char(104),char(255),char(154),char(1),char(40),char(3),char(106),char(255),char(154), -char(1),char(40),char(3),char(108),char(255),char(154),char(1),char(40),char(3),char(110), -char(255),char(154),char(1),char(40),char(3),char(112),char(255),char(215),char(1),char(40), -char(3),char(143),char(0),char(41),char(1),char(42),char(0),char(15),char(255),char(215), -char(1),char(42),char(0),char(17),char(255),char(215),char(1),char(42),char(0),char(36), -char(255),char(236),char(1),char(42),char(0),char(130),char(255),char(236),char(1),char(42), -char(0),char(131),char(255),char(236),char(1),char(42),char(0),char(132),char(255),char(236), -char(1),char(42),char(0),char(133),char(255),char(236),char(1),char(42),char(0),char(134), -char(255),char(236),char(1),char(42),char(0),char(135),char(255),char(236),char(1),char(42), -char(0),char(194),char(255),char(236),char(1),char(42),char(0),char(196),char(255),char(236), -char(1),char(42),char(0),char(198),char(255),char(236),char(1),char(42),char(1),char(67), -char(255),char(236),char(1),char(42),char(2),char(8),char(255),char(215),char(1),char(42), -char(2),char(12),char(255),char(215),char(1),char(42),char(2),char(88),char(255),char(236), -char(1),char(42),char(3),char(29),char(255),char(236),char(1),char(42),char(3),char(31), -char(255),char(236),char(1),char(42),char(3),char(33),char(255),char(236),char(1),char(42), -char(3),char(35),char(255),char(236),char(1),char(42),char(3),char(37),char(255),char(236), -char(1),char(42),char(3),char(39),char(255),char(236),char(1),char(42),char(3),char(41), -char(255),char(236),char(1),char(42),char(3),char(43),char(255),char(236),char(1),char(42), -char(3),char(45),char(255),char(236),char(1),char(42),char(3),char(47),char(255),char(236), -char(1),char(42),char(3),char(49),char(255),char(236),char(1),char(42),char(3),char(51), -char(255),char(236),char(1),char(44),char(0),char(15),char(255),char(215),char(1),char(44), -char(0),char(17),char(255),char(215),char(1),char(44),char(0),char(36),char(255),char(236), -char(1),char(44),char(0),char(130),char(255),char(236),char(1),char(44),char(0),char(131), -char(255),char(236),char(1),char(44),char(0),char(132),char(255),char(236),char(1),char(44), -char(0),char(133),char(255),char(236),char(1),char(44),char(0),char(134),char(255),char(236), -char(1),char(44),char(0),char(135),char(255),char(236),char(1),char(44),char(0),char(194), -char(255),char(236),char(1),char(44),char(0),char(196),char(255),char(236),char(1),char(44), -char(0),char(198),char(255),char(236),char(1),char(44),char(1),char(67),char(255),char(236), -char(1),char(44),char(2),char(8),char(255),char(215),char(1),char(44),char(2),char(12), -char(255),char(215),char(1),char(44),char(2),char(88),char(255),char(236),char(1),char(44), -char(3),char(29),char(255),char(236),char(1),char(44),char(3),char(31),char(255),char(236), -char(1),char(44),char(3),char(33),char(255),char(236),char(1),char(44),char(3),char(35), -char(255),char(236),char(1),char(44),char(3),char(37),char(255),char(236),char(1),char(44), -char(3),char(39),char(255),char(236),char(1),char(44),char(3),char(41),char(255),char(236), -char(1),char(44),char(3),char(43),char(255),char(236),char(1),char(44),char(3),char(45), -char(255),char(236),char(1),char(44),char(3),char(47),char(255),char(236),char(1),char(44), -char(3),char(49),char(255),char(236),char(1),char(44),char(3),char(51),char(255),char(236), -char(1),char(46),char(0),char(15),char(255),char(215),char(1),char(46),char(0),char(17), -char(255),char(215),char(1),char(46),char(0),char(36),char(255),char(236),char(1),char(46), -char(0),char(130),char(255),char(236),char(1),char(46),char(0),char(131),char(255),char(236), -char(1),char(46),char(0),char(132),char(255),char(236),char(1),char(46),char(0),char(133), -char(255),char(236),char(1),char(46),char(0),char(134),char(255),char(236),char(1),char(46), -char(0),char(135),char(255),char(236),char(1),char(46),char(0),char(194),char(255),char(236), -char(1),char(46),char(0),char(196),char(255),char(236),char(1),char(46),char(0),char(198), -char(255),char(236),char(1),char(46),char(1),char(67),char(255),char(236),char(1),char(46), -char(2),char(8),char(255),char(215),char(1),char(46),char(2),char(12),char(255),char(215), -char(1),char(46),char(2),char(88),char(255),char(236),char(1),char(46),char(3),char(29), -char(255),char(236),char(1),char(46),char(3),char(31),char(255),char(236),char(1),char(46), -char(3),char(33),char(255),char(236),char(1),char(46),char(3),char(35),char(255),char(236), -char(1),char(46),char(3),char(37),char(255),char(236),char(1),char(46),char(3),char(39), -char(255),char(236),char(1),char(46),char(3),char(41),char(255),char(236),char(1),char(46), -char(3),char(43),char(255),char(236),char(1),char(46),char(3),char(45),char(255),char(236), -char(1),char(46),char(3),char(47),char(255),char(236),char(1),char(46),char(3),char(49), -char(255),char(236),char(1),char(46),char(3),char(51),char(255),char(236),char(1),char(48), -char(0),char(15),char(255),char(215),char(1),char(48),char(0),char(17),char(255),char(215), -char(1),char(48),char(0),char(36),char(255),char(236),char(1),char(48),char(0),char(130), -char(255),char(236),char(1),char(48),char(0),char(131),char(255),char(236),char(1),char(48), -char(0),char(132),char(255),char(236),char(1),char(48),char(0),char(133),char(255),char(236), -char(1),char(48),char(0),char(134),char(255),char(236),char(1),char(48),char(0),char(135), -char(255),char(236),char(1),char(48),char(0),char(194),char(255),char(236),char(1),char(48), -char(0),char(196),char(255),char(236),char(1),char(48),char(0),char(198),char(255),char(236), -char(1),char(48),char(1),char(67),char(255),char(236),char(1),char(48),char(2),char(8), -char(255),char(215),char(1),char(48),char(2),char(12),char(255),char(215),char(1),char(48), -char(2),char(88),char(255),char(236),char(1),char(48),char(3),char(29),char(255),char(236), -char(1),char(48),char(3),char(31),char(255),char(236),char(1),char(48),char(3),char(33), -char(255),char(236),char(1),char(48),char(3),char(35),char(255),char(236),char(1),char(48), -char(3),char(37),char(255),char(236),char(1),char(48),char(3),char(39),char(255),char(236), -char(1),char(48),char(3),char(41),char(255),char(236),char(1),char(48),char(3),char(43), -char(255),char(236),char(1),char(48),char(3),char(45),char(255),char(236),char(1),char(48), -char(3),char(47),char(255),char(236),char(1),char(48),char(3),char(49),char(255),char(236), -char(1),char(48),char(3),char(51),char(255),char(236),char(1),char(50),char(0),char(15), -char(255),char(215),char(1),char(50),char(0),char(17),char(255),char(215),char(1),char(50), -char(0),char(36),char(255),char(236),char(1),char(50),char(0),char(130),char(255),char(236), -char(1),char(50),char(0),char(131),char(255),char(236),char(1),char(50),char(0),char(132), -char(255),char(236),char(1),char(50),char(0),char(133),char(255),char(236),char(1),char(50), -char(0),char(134),char(255),char(236),char(1),char(50),char(0),char(135),char(255),char(236), -char(1),char(50),char(0),char(194),char(255),char(236),char(1),char(50),char(0),char(196), -char(255),char(236),char(1),char(50),char(0),char(198),char(255),char(236),char(1),char(50), -char(1),char(67),char(255),char(236),char(1),char(50),char(2),char(8),char(255),char(215), -char(1),char(50),char(2),char(12),char(255),char(215),char(1),char(50),char(2),char(88), -char(255),char(236),char(1),char(50),char(3),char(29),char(255),char(236),char(1),char(50), -char(3),char(31),char(255),char(236),char(1),char(50),char(3),char(33),char(255),char(236), -char(1),char(50),char(3),char(35),char(255),char(236),char(1),char(50),char(3),char(37), -char(255),char(236),char(1),char(50),char(3),char(39),char(255),char(236),char(1),char(50), -char(3),char(41),char(255),char(236),char(1),char(50),char(3),char(43),char(255),char(236), -char(1),char(50),char(3),char(45),char(255),char(236),char(1),char(50),char(3),char(47), -char(255),char(236),char(1),char(50),char(3),char(49),char(255),char(236),char(1),char(50), -char(3),char(51),char(255),char(236),char(1),char(52),char(0),char(15),char(255),char(215), -char(1),char(52),char(0),char(17),char(255),char(215),char(1),char(52),char(0),char(36), -char(255),char(236),char(1),char(52),char(0),char(130),char(255),char(236),char(1),char(52), -char(0),char(131),char(255),char(236),char(1),char(52),char(0),char(132),char(255),char(236), -char(1),char(52),char(0),char(133),char(255),char(236),char(1),char(52),char(0),char(134), -char(255),char(236),char(1),char(52),char(0),char(135),char(255),char(236),char(1),char(52), -char(0),char(194),char(255),char(236),char(1),char(52),char(0),char(196),char(255),char(236), -char(1),char(52),char(0),char(198),char(255),char(236),char(1),char(52),char(1),char(67), -char(255),char(236),char(1),char(52),char(2),char(8),char(255),char(215),char(1),char(52), -char(2),char(12),char(255),char(215),char(1),char(52),char(2),char(88),char(255),char(236), -char(1),char(52),char(3),char(29),char(255),char(236),char(1),char(52),char(3),char(31), -char(255),char(236),char(1),char(52),char(3),char(33),char(255),char(236),char(1),char(52), -char(3),char(35),char(255),char(236),char(1),char(52),char(3),char(37),char(255),char(236), -char(1),char(52),char(3),char(39),char(255),char(236),char(1),char(52),char(3),char(41), -char(255),char(236),char(1),char(52),char(3),char(43),char(255),char(236),char(1),char(52), -char(3),char(45),char(255),char(236),char(1),char(52),char(3),char(47),char(255),char(236), -char(1),char(52),char(3),char(49),char(255),char(236),char(1),char(52),char(3),char(51), -char(255),char(236),char(1),char(54),char(0),char(15),char(255),char(154),char(1),char(54), -char(0),char(17),char(255),char(154),char(1),char(54),char(0),char(34),char(0),char(41), -char(1),char(54),char(0),char(36),char(255),char(174),char(1),char(54),char(0),char(38), -char(255),char(236),char(1),char(54),char(0),char(42),char(255),char(236),char(1),char(54), -char(0),char(50),char(255),char(236),char(1),char(54),char(0),char(52),char(255),char(236), -char(1),char(54),char(0),char(68),char(255),char(215),char(1),char(54),char(0),char(70), -char(255),char(215),char(1),char(54),char(0),char(71),char(255),char(215),char(1),char(54), -char(0),char(72),char(255),char(215),char(1),char(54),char(0),char(74),char(255),char(236), -char(1),char(54),char(0),char(80),char(255),char(236),char(1),char(54),char(0),char(81), -char(255),char(236),char(1),char(54),char(0),char(82),char(255),char(215),char(1),char(54), -char(0),char(83),char(255),char(236),char(1),char(54),char(0),char(84),char(255),char(215), -char(1),char(54),char(0),char(85),char(255),char(236),char(1),char(54),char(0),char(86), -char(255),char(236),char(1),char(54),char(0),char(88),char(255),char(236),char(1),char(54), -char(0),char(130),char(255),char(174),char(1),char(54),char(0),char(131),char(255),char(174), -char(1),char(54),char(0),char(132),char(255),char(174),char(1),char(54),char(0),char(133), -char(255),char(174),char(1),char(54),char(0),char(134),char(255),char(174),char(1),char(54), -char(0),char(135),char(255),char(174),char(1),char(54),char(0),char(137),char(255),char(236), -char(1),char(54),char(0),char(148),char(255),char(236),char(1),char(54),char(0),char(149), -char(255),char(236),char(1),char(54),char(0),char(150),char(255),char(236),char(1),char(54), -char(0),char(151),char(255),char(236),char(1),char(54),char(0),char(152),char(255),char(236), -char(1),char(54),char(0),char(154),char(255),char(236),char(1),char(54),char(0),char(162), -char(255),char(215),char(1),char(54),char(0),char(163),char(255),char(215),char(1),char(54), -char(0),char(164),char(255),char(215),char(1),char(54),char(0),char(165),char(255),char(215), -char(1),char(54),char(0),char(166),char(255),char(215),char(1),char(54),char(0),char(167), -char(255),char(215),char(1),char(54),char(0),char(168),char(255),char(215),char(1),char(54), -char(0),char(169),char(255),char(215),char(1),char(54),char(0),char(170),char(255),char(215), -char(1),char(54),char(0),char(171),char(255),char(215),char(1),char(54),char(0),char(172), -char(255),char(215),char(1),char(54),char(0),char(173),char(255),char(215),char(1),char(54), -char(0),char(180),char(255),char(215),char(1),char(54),char(0),char(181),char(255),char(215), -char(1),char(54),char(0),char(182),char(255),char(215),char(1),char(54),char(0),char(183), -char(255),char(215),char(1),char(54),char(0),char(184),char(255),char(215),char(1),char(54), -char(0),char(186),char(255),char(215),char(1),char(54),char(0),char(187),char(255),char(236), -char(1),char(54),char(0),char(188),char(255),char(236),char(1),char(54),char(0),char(189), -char(255),char(236),char(1),char(54),char(0),char(190),char(255),char(236),char(1),char(54), -char(0),char(194),char(255),char(174),char(1),char(54),char(0),char(195),char(255),char(215), -char(1),char(54),char(0),char(196),char(255),char(174),char(1),char(54),char(0),char(197), -char(255),char(215),char(1),char(54),char(0),char(198),char(255),char(174),char(1),char(54), -char(0),char(199),char(255),char(215),char(1),char(54),char(0),char(200),char(255),char(236), -char(1),char(54),char(0),char(201),char(255),char(215),char(1),char(54),char(0),char(202), -char(255),char(236),char(1),char(54),char(0),char(203),char(255),char(215),char(1),char(54), -char(0),char(204),char(255),char(236),char(1),char(54),char(0),char(205),char(255),char(215), -char(1),char(54),char(0),char(206),char(255),char(236),char(1),char(54),char(0),char(207), -char(255),char(215),char(1),char(54),char(0),char(209),char(255),char(215),char(1),char(54), -char(0),char(211),char(255),char(215),char(1),char(54),char(0),char(213),char(255),char(215), -char(1),char(54),char(0),char(215),char(255),char(215),char(1),char(54),char(0),char(217), -char(255),char(215),char(1),char(54),char(0),char(219),char(255),char(215),char(1),char(54), -char(0),char(221),char(255),char(215),char(1),char(54),char(0),char(222),char(255),char(236), -char(1),char(54),char(0),char(223),char(255),char(236),char(1),char(54),char(0),char(224), -char(255),char(236),char(1),char(54),char(0),char(225),char(255),char(236),char(1),char(54), -char(0),char(226),char(255),char(236),char(1),char(54),char(0),char(227),char(255),char(236), -char(1),char(54),char(0),char(228),char(255),char(236),char(1),char(54),char(0),char(229), -char(255),char(236),char(1),char(54),char(0),char(250),char(255),char(236),char(1),char(54), -char(1),char(6),char(255),char(236),char(1),char(54),char(1),char(8),char(255),char(236), -char(1),char(54),char(1),char(13),char(255),char(236),char(1),char(54),char(1),char(14), -char(255),char(236),char(1),char(54),char(1),char(15),char(255),char(215),char(1),char(54), -char(1),char(16),char(255),char(236),char(1),char(54),char(1),char(17),char(255),char(215), -char(1),char(54),char(1),char(18),char(255),char(236),char(1),char(54),char(1),char(19), -char(255),char(215),char(1),char(54),char(1),char(20),char(255),char(236),char(1),char(54), -char(1),char(21),char(255),char(215),char(1),char(54),char(1),char(23),char(255),char(236), -char(1),char(54),char(1),char(25),char(255),char(236),char(1),char(54),char(1),char(29), -char(255),char(236),char(1),char(54),char(1),char(33),char(255),char(236),char(1),char(54), -char(1),char(43),char(255),char(236),char(1),char(54),char(1),char(45),char(255),char(236), -char(1),char(54),char(1),char(47),char(255),char(236),char(1),char(54),char(1),char(49), -char(255),char(236),char(1),char(54),char(1),char(51),char(255),char(236),char(1),char(54), -char(1),char(53),char(255),char(236),char(1),char(54),char(1),char(67),char(255),char(174), -char(1),char(54),char(1),char(68),char(255),char(215),char(1),char(54),char(1),char(70), -char(255),char(215),char(1),char(54),char(1),char(71),char(255),char(236),char(1),char(54), -char(1),char(72),char(255),char(215),char(1),char(54),char(1),char(74),char(255),char(236), -char(1),char(54),char(2),char(8),char(255),char(154),char(1),char(54),char(2),char(12), -char(255),char(154),char(1),char(54),char(2),char(87),char(255),char(236),char(1),char(54), -char(2),char(88),char(255),char(174),char(1),char(54),char(2),char(89),char(255),char(215), -char(1),char(54),char(2),char(95),char(255),char(236),char(1),char(54),char(2),char(96), -char(255),char(215),char(1),char(54),char(2),char(98),char(255),char(236),char(1),char(54), -char(3),char(29),char(255),char(174),char(1),char(54),char(3),char(30),char(255),char(215), -char(1),char(54),char(3),char(31),char(255),char(174),char(1),char(54),char(3),char(32), -char(255),char(215),char(1),char(54),char(3),char(33),char(255),char(174),char(1),char(54), -char(3),char(34),char(255),char(215),char(1),char(54),char(3),char(35),char(255),char(174), -char(1),char(54),char(3),char(37),char(255),char(174),char(1),char(54),char(3),char(38), -char(255),char(215),char(1),char(54),char(3),char(39),char(255),char(174),char(1),char(54), -char(3),char(40),char(255),char(215),char(1),char(54),char(3),char(41),char(255),char(174), -char(1),char(54),char(3),char(42),char(255),char(215),char(1),char(54),char(3),char(43), -char(255),char(174),char(1),char(54),char(3),char(44),char(255),char(215),char(1),char(54), -char(3),char(45),char(255),char(174),char(1),char(54),char(3),char(46),char(255),char(215), -char(1),char(54),char(3),char(47),char(255),char(174),char(1),char(54),char(3),char(48), -char(255),char(215),char(1),char(54),char(3),char(49),char(255),char(174),char(1),char(54), -char(3),char(50),char(255),char(215),char(1),char(54),char(3),char(51),char(255),char(174), -char(1),char(54),char(3),char(52),char(255),char(215),char(1),char(54),char(3),char(54), -char(255),char(215),char(1),char(54),char(3),char(56),char(255),char(215),char(1),char(54), -char(3),char(58),char(255),char(215),char(1),char(54),char(3),char(60),char(255),char(215), -char(1),char(54),char(3),char(64),char(255),char(215),char(1),char(54),char(3),char(66), -char(255),char(215),char(1),char(54),char(3),char(68),char(255),char(215),char(1),char(54), -char(3),char(73),char(255),char(236),char(1),char(54),char(3),char(74),char(255),char(215), -char(1),char(54),char(3),char(75),char(255),char(236),char(1),char(54),char(3),char(76), -char(255),char(215),char(1),char(54),char(3),char(77),char(255),char(236),char(1),char(54), -char(3),char(78),char(255),char(215),char(1),char(54),char(3),char(79),char(255),char(236), -char(1),char(54),char(3),char(81),char(255),char(236),char(1),char(54),char(3),char(82), -char(255),char(215),char(1),char(54),char(3),char(83),char(255),char(236),char(1),char(54), -char(3),char(84),char(255),char(215),char(1),char(54),char(3),char(85),char(255),char(236), -char(1),char(54),char(3),char(86),char(255),char(215),char(1),char(54),char(3),char(87), -char(255),char(236),char(1),char(54),char(3),char(88),char(255),char(215),char(1),char(54), -char(3),char(89),char(255),char(236),char(1),char(54),char(3),char(90),char(255),char(215), -char(1),char(54),char(3),char(91),char(255),char(236),char(1),char(54),char(3),char(92), -char(255),char(215),char(1),char(54),char(3),char(93),char(255),char(236),char(1),char(54), -char(3),char(94),char(255),char(215),char(1),char(54),char(3),char(95),char(255),char(236), -char(1),char(54),char(3),char(96),char(255),char(215),char(1),char(54),char(3),char(98), -char(255),char(236),char(1),char(54),char(3),char(100),char(255),char(236),char(1),char(54), -char(3),char(102),char(255),char(236),char(1),char(54),char(3),char(104),char(255),char(236), -char(1),char(54),char(3),char(106),char(255),char(236),char(1),char(54),char(3),char(108), -char(255),char(236),char(1),char(54),char(3),char(110),char(255),char(236),char(1),char(55), -char(0),char(5),char(0),char(82),char(1),char(55),char(0),char(10),char(0),char(82), -char(1),char(55),char(0),char(15),char(255),char(174),char(1),char(55),char(0),char(17), -char(255),char(174),char(1),char(55),char(0),char(34),char(0),char(41),char(1),char(55), -char(2),char(7),char(0),char(82),char(1),char(55),char(2),char(8),char(255),char(174), -char(1),char(55),char(2),char(11),char(0),char(82),char(1),char(55),char(2),char(12), -char(255),char(174),char(1),char(56),char(0),char(15),char(255),char(133),char(1),char(56), -char(0),char(17),char(255),char(133),char(1),char(56),char(0),char(34),char(0),char(41), -char(1),char(56),char(0),char(36),char(255),char(133),char(1),char(56),char(0),char(38), -char(255),char(215),char(1),char(56),char(0),char(42),char(255),char(215),char(1),char(56), -char(0),char(50),char(255),char(215),char(1),char(56),char(0),char(52),char(255),char(215), -char(1),char(56),char(0),char(68),char(255),char(154),char(1),char(56),char(0),char(70), -char(255),char(154),char(1),char(56),char(0),char(71),char(255),char(154),char(1),char(56), -char(0),char(72),char(255),char(154),char(1),char(56),char(0),char(74),char(255),char(215), -char(1),char(56),char(0),char(80),char(255),char(195),char(1),char(56),char(0),char(81), -char(255),char(195),char(1),char(56),char(0),char(82),char(255),char(154),char(1),char(56), -char(0),char(83),char(255),char(195),char(1),char(56),char(0),char(84),char(255),char(154), -char(1),char(56),char(0),char(85),char(255),char(195),char(1),char(56),char(0),char(86), -char(255),char(174),char(1),char(56),char(0),char(88),char(255),char(195),char(1),char(56), -char(0),char(93),char(255),char(215),char(1),char(56),char(0),char(130),char(255),char(133), -char(1),char(56),char(0),char(131),char(255),char(133),char(1),char(56),char(0),char(132), -char(255),char(133),char(1),char(56),char(0),char(133),char(255),char(133),char(1),char(56), -char(0),char(134),char(255),char(133),char(1),char(56),char(0),char(135),char(255),char(133), -char(1),char(56),char(0),char(137),char(255),char(215),char(1),char(56),char(0),char(148), -char(255),char(215),char(1),char(56),char(0),char(149),char(255),char(215),char(1),char(56), -char(0),char(150),char(255),char(215),char(1),char(56),char(0),char(151),char(255),char(215), -char(1),char(56),char(0),char(152),char(255),char(215),char(1),char(56),char(0),char(154), -char(255),char(215),char(1),char(56),char(0),char(162),char(255),char(154),char(1),char(56), -char(0),char(163),char(255),char(154),char(1),char(56),char(0),char(164),char(255),char(154), -char(1),char(56),char(0),char(165),char(255),char(154),char(1),char(56),char(0),char(166), -char(255),char(154),char(1),char(56),char(0),char(167),char(255),char(154),char(1),char(56), -char(0),char(168),char(255),char(154),char(1),char(56),char(0),char(169),char(255),char(154), -char(1),char(56),char(0),char(170),char(255),char(154),char(1),char(56),char(0),char(171), -char(255),char(154),char(1),char(56),char(0),char(172),char(255),char(154),char(1),char(56), -char(0),char(173),char(255),char(154),char(1),char(56),char(0),char(180),char(255),char(154), -char(1),char(56),char(0),char(181),char(255),char(154),char(1),char(56),char(0),char(182), -char(255),char(154),char(1),char(56),char(0),char(183),char(255),char(154),char(1),char(56), -char(0),char(184),char(255),char(154),char(1),char(56),char(0),char(186),char(255),char(154), -char(1),char(56),char(0),char(187),char(255),char(195),char(1),char(56),char(0),char(188), -char(255),char(195),char(1),char(56),char(0),char(189),char(255),char(195),char(1),char(56), -char(0),char(190),char(255),char(195),char(1),char(56),char(0),char(194),char(255),char(133), -char(1),char(56),char(0),char(195),char(255),char(154),char(1),char(56),char(0),char(196), -char(255),char(133),char(1),char(56),char(0),char(197),char(255),char(154),char(1),char(56), -char(0),char(198),char(255),char(133),char(1),char(56),char(0),char(199),char(255),char(154), -char(1),char(56),char(0),char(200),char(255),char(215),char(1),char(56),char(0),char(201), -char(255),char(154),char(1),char(56),char(0),char(202),char(255),char(215),char(1),char(56), -char(0),char(203),char(255),char(154),char(1),char(56),char(0),char(204),char(255),char(215), -char(1),char(56),char(0),char(205),char(255),char(154),char(1),char(56),char(0),char(206), -char(255),char(215),char(1),char(56),char(0),char(207),char(255),char(154),char(1),char(56), -char(0),char(209),char(255),char(154),char(1),char(56),char(0),char(211),char(255),char(154), -char(1),char(56),char(0),char(213),char(255),char(154),char(1),char(56),char(0),char(215), -char(255),char(154),char(1),char(56),char(0),char(217),char(255),char(154),char(1),char(56), -char(0),char(219),char(255),char(154),char(1),char(56),char(0),char(221),char(255),char(154), -char(1),char(56),char(0),char(222),char(255),char(215),char(1),char(56),char(0),char(223), -char(255),char(215),char(1),char(56),char(0),char(224),char(255),char(215),char(1),char(56), -char(0),char(225),char(255),char(215),char(1),char(56),char(0),char(226),char(255),char(215), -char(1),char(56),char(0),char(227),char(255),char(215),char(1),char(56),char(0),char(228), -char(255),char(215),char(1),char(56),char(0),char(229),char(255),char(215),char(1),char(56), -char(0),char(250),char(255),char(195),char(1),char(56),char(1),char(6),char(255),char(195), -char(1),char(56),char(1),char(8),char(255),char(195),char(1),char(56),char(1),char(13), -char(255),char(195),char(1),char(56),char(1),char(14),char(255),char(215),char(1),char(56), -char(1),char(15),char(255),char(154),char(1),char(56),char(1),char(16),char(255),char(215), -char(1),char(56),char(1),char(17),char(255),char(154),char(1),char(56),char(1),char(18), -char(255),char(215),char(1),char(56),char(1),char(19),char(255),char(154),char(1),char(56), -char(1),char(20),char(255),char(215),char(1),char(56),char(1),char(21),char(255),char(154), -char(1),char(56),char(1),char(23),char(255),char(195),char(1),char(56),char(1),char(25), -char(255),char(195),char(1),char(56),char(1),char(29),char(255),char(174),char(1),char(56), -char(1),char(33),char(255),char(174),char(1),char(56),char(1),char(43),char(255),char(195), -char(1),char(56),char(1),char(45),char(255),char(195),char(1),char(56),char(1),char(47), -char(255),char(195),char(1),char(56),char(1),char(49),char(255),char(195),char(1),char(56), -char(1),char(51),char(255),char(195),char(1),char(56),char(1),char(53),char(255),char(195), -char(1),char(56),char(1),char(60),char(255),char(215),char(1),char(56),char(1),char(62), -char(255),char(215),char(1),char(56),char(1),char(64),char(255),char(215),char(1),char(56), -char(1),char(67),char(255),char(133),char(1),char(56),char(1),char(68),char(255),char(154), -char(1),char(56),char(1),char(70),char(255),char(154),char(1),char(56),char(1),char(71), -char(255),char(215),char(1),char(56),char(1),char(72),char(255),char(154),char(1),char(56), -char(1),char(74),char(255),char(174),char(1),char(56),char(2),char(8),char(255),char(133), -char(1),char(56),char(2),char(12),char(255),char(133),char(1),char(56),char(2),char(87), -char(255),char(195),char(1),char(56),char(2),char(88),char(255),char(133),char(1),char(56), -char(2),char(89),char(255),char(154),char(1),char(56),char(2),char(95),char(255),char(215), -char(1),char(56),char(2),char(96),char(255),char(154),char(1),char(56),char(2),char(98), -char(255),char(195),char(1),char(56),char(3),char(29),char(255),char(133),char(1),char(56), -char(3),char(30),char(255),char(154),char(1),char(56),char(3),char(31),char(255),char(133), -char(1),char(56),char(3),char(32),char(255),char(154),char(1),char(56),char(3),char(33), -char(255),char(133),char(1),char(56),char(3),char(34),char(255),char(154),char(1),char(56), -char(3),char(35),char(255),char(133),char(1),char(56),char(3),char(37),char(255),char(133), -char(1),char(56),char(3),char(38),char(255),char(154),char(1),char(56),char(3),char(39), -char(255),char(133),char(1),char(56),char(3),char(40),char(255),char(154),char(1),char(56), -char(3),char(41),char(255),char(133),char(1),char(56),char(3),char(42),char(255),char(154), -char(1),char(56),char(3),char(43),char(255),char(133),char(1),char(56),char(3),char(44), -char(255),char(154),char(1),char(56),char(3),char(45),char(255),char(133),char(1),char(56), -char(3),char(46),char(255),char(154),char(1),char(56),char(3),char(47),char(255),char(133), -char(1),char(56),char(3),char(48),char(255),char(154),char(1),char(56),char(3),char(49), -char(255),char(133),char(1),char(56),char(3),char(50),char(255),char(154),char(1),char(56), -char(3),char(51),char(255),char(133),char(1),char(56),char(3),char(52),char(255),char(154), -char(1),char(56),char(3),char(54),char(255),char(154),char(1),char(56),char(3),char(56), -char(255),char(154),char(1),char(56),char(3),char(58),char(255),char(154),char(1),char(56), -char(3),char(60),char(255),char(154),char(1),char(56),char(3),char(64),char(255),char(154), -char(1),char(56),char(3),char(66),char(255),char(154),char(1),char(56),char(3),char(68), -char(255),char(154),char(1),char(56),char(3),char(73),char(255),char(215),char(1),char(56), -char(3),char(74),char(255),char(154),char(1),char(56),char(3),char(75),char(255),char(215), -char(1),char(56),char(3),char(76),char(255),char(154),char(1),char(56),char(3),char(77), -char(255),char(215),char(1),char(56),char(3),char(78),char(255),char(154),char(1),char(56), -char(3),char(79),char(255),char(215),char(1),char(56),char(3),char(81),char(255),char(215), -char(1),char(56),char(3),char(82),char(255),char(154),char(1),char(56),char(3),char(83), -char(255),char(215),char(1),char(56),char(3),char(84),char(255),char(154),char(1),char(56), -char(3),char(85),char(255),char(215),char(1),char(56),char(3),char(86),char(255),char(154), -char(1),char(56),char(3),char(87),char(255),char(215),char(1),char(56),char(3),char(88), -char(255),char(154),char(1),char(56),char(3),char(89),char(255),char(215),char(1),char(56), -char(3),char(90),char(255),char(154),char(1),char(56),char(3),char(91),char(255),char(215), -char(1),char(56),char(3),char(92),char(255),char(154),char(1),char(56),char(3),char(93), -char(255),char(215),char(1),char(56),char(3),char(94),char(255),char(154),char(1),char(56), -char(3),char(95),char(255),char(215),char(1),char(56),char(3),char(96),char(255),char(154), -char(1),char(56),char(3),char(98),char(255),char(195),char(1),char(56),char(3),char(100), -char(255),char(195),char(1),char(56),char(3),char(102),char(255),char(195),char(1),char(56), -char(3),char(104),char(255),char(195),char(1),char(56),char(3),char(106),char(255),char(195), -char(1),char(56),char(3),char(108),char(255),char(195),char(1),char(56),char(3),char(110), -char(255),char(195),char(1),char(57),char(0),char(5),char(0),char(82),char(1),char(57), -char(0),char(10),char(0),char(82),char(1),char(57),char(0),char(15),char(255),char(174), -char(1),char(57),char(0),char(17),char(255),char(174),char(1),char(57),char(0),char(34), -char(0),char(41),char(1),char(57),char(2),char(7),char(0),char(82),char(1),char(57), -char(2),char(8),char(255),char(174),char(1),char(57),char(2),char(11),char(0),char(82), -char(1),char(57),char(2),char(12),char(255),char(174),char(1),char(58),char(0),char(15), -char(255),char(133),char(1),char(58),char(0),char(17),char(255),char(133),char(1),char(58), -char(0),char(34),char(0),char(41),char(1),char(58),char(0),char(36),char(255),char(133), -char(1),char(58),char(0),char(38),char(255),char(215),char(1),char(58),char(0),char(42), -char(255),char(215),char(1),char(58),char(0),char(50),char(255),char(215),char(1),char(58), -char(0),char(52),char(255),char(215),char(1),char(58),char(0),char(68),char(255),char(154), -char(1),char(58),char(0),char(70),char(255),char(154),char(1),char(58),char(0),char(71), -char(255),char(154),char(1),char(58),char(0),char(72),char(255),char(154),char(1),char(58), -char(0),char(74),char(255),char(215),char(1),char(58),char(0),char(80),char(255),char(195), -char(1),char(58),char(0),char(81),char(255),char(195),char(1),char(58),char(0),char(82), -char(255),char(154),char(1),char(58),char(0),char(83),char(255),char(195),char(1),char(58), -char(0),char(84),char(255),char(154),char(1),char(58),char(0),char(85),char(255),char(195), -char(1),char(58),char(0),char(86),char(255),char(174),char(1),char(58),char(0),char(88), -char(255),char(195),char(1),char(58),char(0),char(93),char(255),char(215),char(1),char(58), -char(0),char(130),char(255),char(133),char(1),char(58),char(0),char(131),char(255),char(133), -char(1),char(58),char(0),char(132),char(255),char(133),char(1),char(58),char(0),char(133), -char(255),char(133),char(1),char(58),char(0),char(134),char(255),char(133),char(1),char(58), -char(0),char(135),char(255),char(133),char(1),char(58),char(0),char(137),char(255),char(215), -char(1),char(58),char(0),char(148),char(255),char(215),char(1),char(58),char(0),char(149), -char(255),char(215),char(1),char(58),char(0),char(150),char(255),char(215),char(1),char(58), -char(0),char(151),char(255),char(215),char(1),char(58),char(0),char(152),char(255),char(215), -char(1),char(58),char(0),char(154),char(255),char(215),char(1),char(58),char(0),char(162), -char(255),char(154),char(1),char(58),char(0),char(163),char(255),char(154),char(1),char(58), -char(0),char(164),char(255),char(154),char(1),char(58),char(0),char(165),char(255),char(154), -char(1),char(58),char(0),char(166),char(255),char(154),char(1),char(58),char(0),char(167), -char(255),char(154),char(1),char(58),char(0),char(168),char(255),char(154),char(1),char(58), -char(0),char(169),char(255),char(154),char(1),char(58),char(0),char(170),char(255),char(154), -char(1),char(58),char(0),char(171),char(255),char(154),char(1),char(58),char(0),char(172), -char(255),char(154),char(1),char(58),char(0),char(173),char(255),char(154),char(1),char(58), -char(0),char(180),char(255),char(154),char(1),char(58),char(0),char(181),char(255),char(154), -char(1),char(58),char(0),char(182),char(255),char(154),char(1),char(58),char(0),char(183), -char(255),char(154),char(1),char(58),char(0),char(184),char(255),char(154),char(1),char(58), -char(0),char(186),char(255),char(154),char(1),char(58),char(0),char(187),char(255),char(195), -char(1),char(58),char(0),char(188),char(255),char(195),char(1),char(58),char(0),char(189), -char(255),char(195),char(1),char(58),char(0),char(190),char(255),char(195),char(1),char(58), -char(0),char(194),char(255),char(133),char(1),char(58),char(0),char(195),char(255),char(154), -char(1),char(58),char(0),char(196),char(255),char(133),char(1),char(58),char(0),char(197), -char(255),char(154),char(1),char(58),char(0),char(198),char(255),char(133),char(1),char(58), -char(0),char(199),char(255),char(154),char(1),char(58),char(0),char(200),char(255),char(215), -char(1),char(58),char(0),char(201),char(255),char(154),char(1),char(58),char(0),char(202), -char(255),char(215),char(1),char(58),char(0),char(203),char(255),char(154),char(1),char(58), -char(0),char(204),char(255),char(215),char(1),char(58),char(0),char(205),char(255),char(154), -char(1),char(58),char(0),char(206),char(255),char(215),char(1),char(58),char(0),char(207), -char(255),char(154),char(1),char(58),char(0),char(209),char(255),char(154),char(1),char(58), -char(0),char(211),char(255),char(154),char(1),char(58),char(0),char(213),char(255),char(154), -char(1),char(58),char(0),char(215),char(255),char(154),char(1),char(58),char(0),char(217), -char(255),char(154),char(1),char(58),char(0),char(219),char(255),char(154),char(1),char(58), -char(0),char(221),char(255),char(154),char(1),char(58),char(0),char(222),char(255),char(215), -char(1),char(58),char(0),char(223),char(255),char(215),char(1),char(58),char(0),char(224), -char(255),char(215),char(1),char(58),char(0),char(225),char(255),char(215),char(1),char(58), -char(0),char(226),char(255),char(215),char(1),char(58),char(0),char(227),char(255),char(215), -char(1),char(58),char(0),char(228),char(255),char(215),char(1),char(58),char(0),char(229), -char(255),char(215),char(1),char(58),char(0),char(250),char(255),char(195),char(1),char(58), -char(1),char(6),char(255),char(195),char(1),char(58),char(1),char(8),char(255),char(195), -char(1),char(58),char(1),char(13),char(255),char(195),char(1),char(58),char(1),char(14), -char(255),char(215),char(1),char(58),char(1),char(15),char(255),char(154),char(1),char(58), -char(1),char(16),char(255),char(215),char(1),char(58),char(1),char(17),char(255),char(154), -char(1),char(58),char(1),char(18),char(255),char(215),char(1),char(58),char(1),char(19), -char(255),char(154),char(1),char(58),char(1),char(20),char(255),char(215),char(1),char(58), -char(1),char(21),char(255),char(154),char(1),char(58),char(1),char(23),char(255),char(195), -char(1),char(58),char(1),char(25),char(255),char(195),char(1),char(58),char(1),char(29), -char(255),char(174),char(1),char(58),char(1),char(33),char(255),char(174),char(1),char(58), -char(1),char(43),char(255),char(195),char(1),char(58),char(1),char(45),char(255),char(195), -char(1),char(58),char(1),char(47),char(255),char(195),char(1),char(58),char(1),char(49), -char(255),char(195),char(1),char(58),char(1),char(51),char(255),char(195),char(1),char(58), -char(1),char(53),char(255),char(195),char(1),char(58),char(1),char(60),char(255),char(215), -char(1),char(58),char(1),char(62),char(255),char(215),char(1),char(58),char(1),char(64), -char(255),char(215),char(1),char(58),char(1),char(67),char(255),char(133),char(1),char(58), -char(1),char(68),char(255),char(154),char(1),char(58),char(1),char(70),char(255),char(154), -char(1),char(58),char(1),char(71),char(255),char(215),char(1),char(58),char(1),char(72), -char(255),char(154),char(1),char(58),char(1),char(74),char(255),char(174),char(1),char(58), -char(2),char(8),char(255),char(133),char(1),char(58),char(2),char(12),char(255),char(133), -char(1),char(58),char(2),char(87),char(255),char(195),char(1),char(58),char(2),char(88), -char(255),char(133),char(1),char(58),char(2),char(89),char(255),char(154),char(1),char(58), -char(2),char(95),char(255),char(215),char(1),char(58),char(2),char(96),char(255),char(154), -char(1),char(58),char(2),char(98),char(255),char(195),char(1),char(58),char(3),char(29), -char(255),char(133),char(1),char(58),char(3),char(30),char(255),char(154),char(1),char(58), -char(3),char(31),char(255),char(133),char(1),char(58),char(3),char(32),char(255),char(154), -char(1),char(58),char(3),char(33),char(255),char(133),char(1),char(58),char(3),char(34), -char(255),char(154),char(1),char(58),char(3),char(35),char(255),char(133),char(1),char(58), -char(3),char(37),char(255),char(133),char(1),char(58),char(3),char(38),char(255),char(154), -char(1),char(58),char(3),char(39),char(255),char(133),char(1),char(58),char(3),char(40), -char(255),char(154),char(1),char(58),char(3),char(41),char(255),char(133),char(1),char(58), -char(3),char(42),char(255),char(154),char(1),char(58),char(3),char(43),char(255),char(133), -char(1),char(58),char(3),char(44),char(255),char(154),char(1),char(58),char(3),char(45), -char(255),char(133),char(1),char(58),char(3),char(46),char(255),char(154),char(1),char(58), -char(3),char(47),char(255),char(133),char(1),char(58),char(3),char(48),char(255),char(154), -char(1),char(58),char(3),char(49),char(255),char(133),char(1),char(58),char(3),char(50), -char(255),char(154),char(1),char(58),char(3),char(51),char(255),char(133),char(1),char(58), -char(3),char(52),char(255),char(154),char(1),char(58),char(3),char(54),char(255),char(154), -char(1),char(58),char(3),char(56),char(255),char(154),char(1),char(58),char(3),char(58), -char(255),char(154),char(1),char(58),char(3),char(60),char(255),char(154),char(1),char(58), -char(3),char(64),char(255),char(154),char(1),char(58),char(3),char(66),char(255),char(154), -char(1),char(58),char(3),char(68),char(255),char(154),char(1),char(58),char(3),char(73), -char(255),char(215),char(1),char(58),char(3),char(74),char(255),char(154),char(1),char(58), -char(3),char(75),char(255),char(215),char(1),char(58),char(3),char(76),char(255),char(154), -char(1),char(58),char(3),char(77),char(255),char(215),char(1),char(58),char(3),char(78), -char(255),char(154),char(1),char(58),char(3),char(79),char(255),char(215),char(1),char(58), -char(3),char(81),char(255),char(215),char(1),char(58),char(3),char(82),char(255),char(154), -char(1),char(58),char(3),char(83),char(255),char(215),char(1),char(58),char(3),char(84), -char(255),char(154),char(1),char(58),char(3),char(85),char(255),char(215),char(1),char(58), -char(3),char(86),char(255),char(154),char(1),char(58),char(3),char(87),char(255),char(215), -char(1),char(58),char(3),char(88),char(255),char(154),char(1),char(58),char(3),char(89), -char(255),char(215),char(1),char(58),char(3),char(90),char(255),char(154),char(1),char(58), -char(3),char(91),char(255),char(215),char(1),char(58),char(3),char(92),char(255),char(154), -char(1),char(58),char(3),char(93),char(255),char(215),char(1),char(58),char(3),char(94), -char(255),char(154),char(1),char(58),char(3),char(95),char(255),char(215),char(1),char(58), -char(3),char(96),char(255),char(154),char(1),char(58),char(3),char(98),char(255),char(195), -char(1),char(58),char(3),char(100),char(255),char(195),char(1),char(58),char(3),char(102), -char(255),char(195),char(1),char(58),char(3),char(104),char(255),char(195),char(1),char(58), -char(3),char(106),char(255),char(195),char(1),char(58),char(3),char(108),char(255),char(195), -char(1),char(58),char(3),char(110),char(255),char(195),char(1),char(59),char(0),char(38), -char(255),char(236),char(1),char(59),char(0),char(42),char(255),char(236),char(1),char(59), -char(0),char(50),char(255),char(236),char(1),char(59),char(0),char(52),char(255),char(236), -char(1),char(59),char(0),char(137),char(255),char(236),char(1),char(59),char(0),char(148), -char(255),char(236),char(1),char(59),char(0),char(149),char(255),char(236),char(1),char(59), -char(0),char(150),char(255),char(236),char(1),char(59),char(0),char(151),char(255),char(236), -char(1),char(59),char(0),char(152),char(255),char(236),char(1),char(59),char(0),char(154), -char(255),char(236),char(1),char(59),char(0),char(200),char(255),char(236),char(1),char(59), -char(0),char(202),char(255),char(236),char(1),char(59),char(0),char(204),char(255),char(236), -char(1),char(59),char(0),char(206),char(255),char(236),char(1),char(59),char(0),char(222), -char(255),char(236),char(1),char(59),char(0),char(224),char(255),char(236),char(1),char(59), -char(0),char(226),char(255),char(236),char(1),char(59),char(0),char(228),char(255),char(236), -char(1),char(59),char(1),char(14),char(255),char(236),char(1),char(59),char(1),char(16), -char(255),char(236),char(1),char(59),char(1),char(18),char(255),char(236),char(1),char(59), -char(1),char(20),char(255),char(236),char(1),char(59),char(1),char(71),char(255),char(236), -char(1),char(59),char(2),char(95),char(255),char(236),char(1),char(59),char(3),char(73), -char(255),char(236),char(1),char(59),char(3),char(75),char(255),char(236),char(1),char(59), -char(3),char(77),char(255),char(236),char(1),char(59),char(3),char(79),char(255),char(236), -char(1),char(59),char(3),char(81),char(255),char(236),char(1),char(59),char(3),char(83), -char(255),char(236),char(1),char(59),char(3),char(85),char(255),char(236),char(1),char(59), -char(3),char(87),char(255),char(236),char(1),char(59),char(3),char(89),char(255),char(236), -char(1),char(59),char(3),char(91),char(255),char(236),char(1),char(59),char(3),char(93), -char(255),char(236),char(1),char(59),char(3),char(95),char(255),char(236),char(1),char(61), -char(0),char(38),char(255),char(236),char(1),char(61),char(0),char(42),char(255),char(236), -char(1),char(61),char(0),char(50),char(255),char(236),char(1),char(61),char(0),char(52), -char(255),char(236),char(1),char(61),char(0),char(137),char(255),char(236),char(1),char(61), -char(0),char(148),char(255),char(236),char(1),char(61),char(0),char(149),char(255),char(236), -char(1),char(61),char(0),char(150),char(255),char(236),char(1),char(61),char(0),char(151), -char(255),char(236),char(1),char(61),char(0),char(152),char(255),char(236),char(1),char(61), -char(0),char(154),char(255),char(236),char(1),char(61),char(0),char(200),char(255),char(236), -char(1),char(61),char(0),char(202),char(255),char(236),char(1),char(61),char(0),char(204), -char(255),char(236),char(1),char(61),char(0),char(206),char(255),char(236),char(1),char(61), -char(0),char(222),char(255),char(236),char(1),char(61),char(0),char(224),char(255),char(236), -char(1),char(61),char(0),char(226),char(255),char(236),char(1),char(61),char(0),char(228), -char(255),char(236),char(1),char(61),char(1),char(14),char(255),char(236),char(1),char(61), -char(1),char(16),char(255),char(236),char(1),char(61),char(1),char(18),char(255),char(236), -char(1),char(61),char(1),char(20),char(255),char(236),char(1),char(61),char(1),char(71), -char(255),char(236),char(1),char(61),char(2),char(95),char(255),char(236),char(1),char(61), -char(3),char(73),char(255),char(236),char(1),char(61),char(3),char(75),char(255),char(236), -char(1),char(61),char(3),char(77),char(255),char(236),char(1),char(61),char(3),char(79), -char(255),char(236),char(1),char(61),char(3),char(81),char(255),char(236),char(1),char(61), -char(3),char(83),char(255),char(236),char(1),char(61),char(3),char(85),char(255),char(236), -char(1),char(61),char(3),char(87),char(255),char(236),char(1),char(61),char(3),char(89), -char(255),char(236),char(1),char(61),char(3),char(91),char(255),char(236),char(1),char(61), -char(3),char(93),char(255),char(236),char(1),char(61),char(3),char(95),char(255),char(236), -char(1),char(63),char(0),char(38),char(255),char(236),char(1),char(63),char(0),char(42), -char(255),char(236),char(1),char(63),char(0),char(50),char(255),char(236),char(1),char(63), -char(0),char(52),char(255),char(236),char(1),char(63),char(0),char(137),char(255),char(236), -char(1),char(63),char(0),char(148),char(255),char(236),char(1),char(63),char(0),char(149), -char(255),char(236),char(1),char(63),char(0),char(150),char(255),char(236),char(1),char(63), -char(0),char(151),char(255),char(236),char(1),char(63),char(0),char(152),char(255),char(236), -char(1),char(63),char(0),char(154),char(255),char(236),char(1),char(63),char(0),char(200), -char(255),char(236),char(1),char(63),char(0),char(202),char(255),char(236),char(1),char(63), -char(0),char(204),char(255),char(236),char(1),char(63),char(0),char(206),char(255),char(236), -char(1),char(63),char(0),char(222),char(255),char(236),char(1),char(63),char(0),char(224), -char(255),char(236),char(1),char(63),char(0),char(226),char(255),char(236),char(1),char(63), -char(0),char(228),char(255),char(236),char(1),char(63),char(1),char(14),char(255),char(236), -char(1),char(63),char(1),char(16),char(255),char(236),char(1),char(63),char(1),char(18), -char(255),char(236),char(1),char(63),char(1),char(20),char(255),char(236),char(1),char(63), -char(1),char(71),char(255),char(236),char(1),char(63),char(2),char(95),char(255),char(236), -char(1),char(63),char(3),char(73),char(255),char(236),char(1),char(63),char(3),char(75), -char(255),char(236),char(1),char(63),char(3),char(77),char(255),char(236),char(1),char(63), -char(3),char(79),char(255),char(236),char(1),char(63),char(3),char(81),char(255),char(236), -char(1),char(63),char(3),char(83),char(255),char(236),char(1),char(63),char(3),char(85), -char(255),char(236),char(1),char(63),char(3),char(87),char(255),char(236),char(1),char(63), -char(3),char(89),char(255),char(236),char(1),char(63),char(3),char(91),char(255),char(236), -char(1),char(63),char(3),char(93),char(255),char(236),char(1),char(63),char(3),char(95), -char(255),char(236),char(1),char(67),char(0),char(5),char(255),char(113),char(1),char(67), -char(0),char(10),char(255),char(113),char(1),char(67),char(0),char(38),char(255),char(215), -char(1),char(67),char(0),char(42),char(255),char(215),char(1),char(67),char(0),char(45), -char(1),char(10),char(1),char(67),char(0),char(50),char(255),char(215),char(1),char(67), -char(0),char(52),char(255),char(215),char(1),char(67),char(0),char(55),char(255),char(113), -char(1),char(67),char(0),char(57),char(255),char(174),char(1),char(67),char(0),char(58), -char(255),char(174),char(1),char(67),char(0),char(60),char(255),char(133),char(1),char(67), -char(0),char(137),char(255),char(215),char(1),char(67),char(0),char(148),char(255),char(215), -char(1),char(67),char(0),char(149),char(255),char(215),char(1),char(67),char(0),char(150), -char(255),char(215),char(1),char(67),char(0),char(151),char(255),char(215),char(1),char(67), -char(0),char(152),char(255),char(215),char(1),char(67),char(0),char(154),char(255),char(215), -char(1),char(67),char(0),char(159),char(255),char(133),char(1),char(67),char(0),char(200), -char(255),char(215),char(1),char(67),char(0),char(202),char(255),char(215),char(1),char(67), -char(0),char(204),char(255),char(215),char(1),char(67),char(0),char(206),char(255),char(215), -char(1),char(67),char(0),char(222),char(255),char(215),char(1),char(67),char(0),char(224), -char(255),char(215),char(1),char(67),char(0),char(226),char(255),char(215),char(1),char(67), -char(0),char(228),char(255),char(215),char(1),char(67),char(1),char(14),char(255),char(215), -char(1),char(67),char(1),char(16),char(255),char(215),char(1),char(67),char(1),char(18), -char(255),char(215),char(1),char(67),char(1),char(20),char(255),char(215),char(1),char(67), -char(1),char(36),char(255),char(113),char(1),char(67),char(1),char(38),char(255),char(113), -char(1),char(67),char(1),char(54),char(255),char(174),char(1),char(67),char(1),char(56), -char(255),char(133),char(1),char(67),char(1),char(58),char(255),char(133),char(1),char(67), -char(1),char(71),char(255),char(215),char(1),char(67),char(1),char(250),char(255),char(174), -char(1),char(67),char(1),char(252),char(255),char(174),char(1),char(67),char(1),char(254), -char(255),char(174),char(1),char(67),char(2),char(0),char(255),char(133),char(1),char(67), -char(2),char(7),char(255),char(113),char(1),char(67),char(2),char(11),char(255),char(113), -char(1),char(67),char(2),char(95),char(255),char(215),char(1),char(67),char(3),char(73), -char(255),char(215),char(1),char(67),char(3),char(75),char(255),char(215),char(1),char(67), -char(3),char(77),char(255),char(215),char(1),char(67),char(3),char(79),char(255),char(215), -char(1),char(67),char(3),char(81),char(255),char(215),char(1),char(67),char(3),char(83), -char(255),char(215),char(1),char(67),char(3),char(85),char(255),char(215),char(1),char(67), -char(3),char(87),char(255),char(215),char(1),char(67),char(3),char(89),char(255),char(215), -char(1),char(67),char(3),char(91),char(255),char(215),char(1),char(67),char(3),char(93), -char(255),char(215),char(1),char(67),char(3),char(95),char(255),char(215),char(1),char(67), -char(3),char(111),char(255),char(133),char(1),char(67),char(3),char(113),char(255),char(133), -char(1),char(67),char(3),char(115),char(255),char(133),char(1),char(67),char(3),char(143), -char(255),char(113),char(1),char(68),char(0),char(5),char(255),char(236),char(1),char(68), -char(0),char(10),char(255),char(236),char(1),char(68),char(2),char(7),char(255),char(236), -char(1),char(68),char(2),char(11),char(255),char(236),char(1),char(69),char(0),char(45), -char(0),char(123),char(1),char(71),char(0),char(15),char(255),char(174),char(1),char(71), -char(0),char(17),char(255),char(174),char(1),char(71),char(0),char(36),char(255),char(215), -char(1),char(71),char(0),char(55),char(255),char(195),char(1),char(71),char(0),char(57), -char(255),char(236),char(1),char(71),char(0),char(58),char(255),char(236),char(1),char(71), -char(0),char(59),char(255),char(215),char(1),char(71),char(0),char(60),char(255),char(236), -char(1),char(71),char(0),char(61),char(255),char(236),char(1),char(71),char(0),char(130), -char(255),char(215),char(1),char(71),char(0),char(131),char(255),char(215),char(1),char(71), -char(0),char(132),char(255),char(215),char(1),char(71),char(0),char(133),char(255),char(215), -char(1),char(71),char(0),char(134),char(255),char(215),char(1),char(71),char(0),char(135), -char(255),char(215),char(1),char(71),char(0),char(159),char(255),char(236),char(1),char(71), -char(0),char(194),char(255),char(215),char(1),char(71),char(0),char(196),char(255),char(215), -char(1),char(71),char(0),char(198),char(255),char(215),char(1),char(71),char(1),char(36), -char(255),char(195),char(1),char(71),char(1),char(38),char(255),char(195),char(1),char(71), -char(1),char(54),char(255),char(236),char(1),char(71),char(1),char(56),char(255),char(236), -char(1),char(71),char(1),char(58),char(255),char(236),char(1),char(71),char(1),char(59), -char(255),char(236),char(1),char(71),char(1),char(61),char(255),char(236),char(1),char(71), -char(1),char(63),char(255),char(236),char(1),char(71),char(1),char(67),char(255),char(215), -char(1),char(71),char(1),char(160),char(255),char(236),char(1),char(71),char(1),char(250), -char(255),char(236),char(1),char(71),char(1),char(252),char(255),char(236),char(1),char(71), -char(1),char(254),char(255),char(236),char(1),char(71),char(2),char(0),char(255),char(236), -char(1),char(71),char(2),char(8),char(255),char(174),char(1),char(71),char(2),char(12), -char(255),char(174),char(1),char(71),char(2),char(88),char(255),char(215),char(1),char(71), -char(3),char(29),char(255),char(215),char(1),char(71),char(3),char(31),char(255),char(215), -char(1),char(71),char(3),char(33),char(255),char(215),char(1),char(71),char(3),char(35), -char(255),char(215),char(1),char(71),char(3),char(37),char(255),char(215),char(1),char(71), -char(3),char(39),char(255),char(215),char(1),char(71),char(3),char(41),char(255),char(215), -char(1),char(71),char(3),char(43),char(255),char(215),char(1),char(71),char(3),char(45), -char(255),char(215),char(1),char(71),char(3),char(47),char(255),char(215),char(1),char(71), -char(3),char(49),char(255),char(215),char(1),char(71),char(3),char(51),char(255),char(215), -char(1),char(71),char(3),char(111),char(255),char(236),char(1),char(71),char(3),char(113), -char(255),char(236),char(1),char(71),char(3),char(115),char(255),char(236),char(1),char(71), -char(3),char(143),char(255),char(195),char(1),char(86),char(0),char(5),char(255),char(113), -char(1),char(86),char(0),char(10),char(255),char(113),char(1),char(86),char(1),char(102), -char(255),char(215),char(1),char(86),char(1),char(109),char(255),char(215),char(1),char(86), -char(1),char(113),char(255),char(113),char(1),char(86),char(1),char(114),char(255),char(133), -char(1),char(86),char(1),char(115),char(255),char(215),char(1),char(86),char(1),char(117), -char(255),char(174),char(1),char(86),char(1),char(120),char(255),char(133),char(1),char(86), -char(2),char(7),char(255),char(113),char(1),char(86),char(2),char(11),char(255),char(113), -char(1),char(86),char(2),char(84),char(255),char(133),char(1),char(91),char(0),char(15), -char(255),char(174),char(1),char(91),char(0),char(17),char(255),char(174),char(1),char(91), -char(1),char(86),char(255),char(215),char(1),char(91),char(1),char(95),char(255),char(215), -char(1),char(91),char(1),char(98),char(255),char(215),char(1),char(91),char(1),char(100), -char(255),char(236),char(1),char(91),char(1),char(105),char(255),char(215),char(1),char(91), -char(1),char(112),char(255),char(236),char(1),char(91),char(1),char(113),char(255),char(195), -char(1),char(91),char(1),char(114),char(255),char(236),char(1),char(91),char(1),char(116), -char(255),char(215),char(1),char(91),char(1),char(117),char(255),char(236),char(1),char(91), -char(1),char(120),char(255),char(236),char(1),char(91),char(1),char(136),char(255),char(236), -char(1),char(91),char(2),char(8),char(255),char(174),char(1),char(91),char(2),char(12), -char(255),char(174),char(1),char(91),char(2),char(84),char(255),char(236),char(1),char(92), -char(0),char(15),char(255),char(133),char(1),char(92),char(0),char(17),char(255),char(133), -char(1),char(92),char(1),char(86),char(255),char(133),char(1),char(92),char(1),char(95), -char(255),char(133),char(1),char(92),char(1),char(98),char(255),char(133),char(1),char(92), -char(1),char(102),char(255),char(215),char(1),char(92),char(1),char(105),char(255),char(133), -char(1),char(92),char(1),char(109),char(255),char(215),char(1),char(92),char(1),char(115), -char(255),char(195),char(1),char(92),char(1),char(118),char(255),char(236),char(1),char(92), -char(1),char(121),char(255),char(154),char(1),char(92),char(1),char(122),char(255),char(174), -char(1),char(92),char(1),char(123),char(255),char(195),char(1),char(92),char(1),char(124), -char(255),char(195),char(1),char(92),char(1),char(125),char(255),char(195),char(1),char(92), -char(1),char(126),char(255),char(154),char(1),char(92),char(1),char(129),char(255),char(195), -char(1),char(92),char(1),char(130),char(255),char(174),char(1),char(92),char(1),char(132), -char(255),char(195),char(1),char(92),char(1),char(134),char(255),char(195),char(1),char(92), -char(1),char(135),char(255),char(195),char(1),char(92),char(1),char(137),char(255),char(195), -char(1),char(92),char(1),char(140),char(255),char(154),char(1),char(92),char(1),char(142), -char(255),char(154),char(1),char(92),char(1),char(143),char(255),char(154),char(1),char(92), -char(1),char(144),char(255),char(154),char(1),char(92),char(1),char(146),char(255),char(195), -char(1),char(92),char(1),char(147),char(255),char(154),char(1),char(92),char(1),char(149), -char(255),char(195),char(1),char(92),char(1),char(150),char(255),char(195),char(1),char(92), -char(1),char(152),char(255),char(195),char(1),char(92),char(1),char(153),char(255),char(154), -char(1),char(92),char(1),char(154),char(255),char(195),char(1),char(92),char(1),char(155), -char(255),char(195),char(1),char(92),char(2),char(8),char(255),char(133),char(1),char(92), -char(2),char(12),char(255),char(133),char(1),char(92),char(2),char(33),char(255),char(236), -char(1),char(93),char(1),char(113),char(255),char(215),char(1),char(93),char(1),char(114), -char(255),char(236),char(1),char(93),char(1),char(120),char(255),char(236),char(1),char(93), -char(2),char(84),char(255),char(236),char(1),char(94),char(0),char(5),char(255),char(215), -char(1),char(94),char(0),char(10),char(255),char(215),char(1),char(94),char(2),char(7), -char(255),char(215),char(1),char(94),char(2),char(11),char(255),char(215),char(1),char(95), -char(0),char(5),char(255),char(113),char(1),char(95),char(0),char(10),char(255),char(113), -char(1),char(95),char(1),char(102),char(255),char(215),char(1),char(95),char(1),char(109), -char(255),char(215),char(1),char(95),char(1),char(113),char(255),char(113),char(1),char(95), -char(1),char(114),char(255),char(133),char(1),char(95),char(1),char(115),char(255),char(215), -char(1),char(95),char(1),char(117),char(255),char(174),char(1),char(95),char(1),char(120), -char(255),char(133),char(1),char(95),char(2),char(7),char(255),char(113),char(1),char(95), -char(2),char(11),char(255),char(113),char(1),char(95),char(2),char(84),char(255),char(133), -char(1),char(96),char(0),char(15),char(255),char(174),char(1),char(96),char(0),char(17), -char(255),char(174),char(1),char(96),char(1),char(86),char(255),char(215),char(1),char(96), -char(1),char(95),char(255),char(215),char(1),char(96),char(1),char(98),char(255),char(215), -char(1),char(96),char(1),char(105),char(255),char(215),char(1),char(96),char(1),char(116), -char(255),char(215),char(1),char(96),char(2),char(8),char(255),char(174),char(1),char(96), -char(2),char(12),char(255),char(174),char(1),char(97),char(0),char(15),char(255),char(133), -char(1),char(97),char(0),char(16),char(255),char(174),char(1),char(97),char(0),char(17), -char(255),char(133),char(1),char(97),char(1),char(86),char(255),char(92),char(1),char(97), -char(1),char(95),char(255),char(92),char(1),char(97),char(1),char(98),char(255),char(92), -char(1),char(97),char(1),char(102),char(255),char(195),char(1),char(97),char(1),char(105), -char(255),char(92),char(1),char(97),char(1),char(109),char(255),char(195),char(1),char(97), -char(1),char(115),char(255),char(154),char(1),char(97),char(1),char(118),char(255),char(195), -char(1),char(97),char(1),char(121),char(255),char(113),char(1),char(97),char(1),char(122), -char(255),char(154),char(1),char(97),char(1),char(123),char(255),char(154),char(1),char(97), -char(1),char(124),char(255),char(174),char(1),char(97),char(1),char(125),char(255),char(154), -char(1),char(97),char(1),char(126),char(255),char(113),char(1),char(97),char(1),char(128), -char(255),char(215),char(1),char(97),char(1),char(129),char(255),char(195),char(1),char(97), -char(1),char(130),char(255),char(154),char(1),char(97),char(1),char(132),char(255),char(154), -char(1),char(97),char(1),char(134),char(255),char(174),char(1),char(97),char(1),char(135), -char(255),char(154),char(1),char(97),char(1),char(137),char(255),char(154),char(1),char(97), -char(1),char(138),char(255),char(215),char(1),char(97),char(1),char(140),char(255),char(113), -char(1),char(97),char(1),char(142),char(255),char(154),char(1),char(97),char(1),char(143), -char(255),char(113),char(1),char(97),char(1),char(144),char(255),char(113),char(1),char(97), -char(1),char(146),char(255),char(154),char(1),char(97),char(1),char(147),char(255),char(113), -char(1),char(97),char(1),char(148),char(255),char(215),char(1),char(97),char(1),char(149), -char(255),char(154),char(1),char(97),char(1),char(150),char(255),char(154),char(1),char(97), -char(1),char(152),char(255),char(154),char(1),char(97),char(1),char(153),char(255),char(113), -char(1),char(97),char(1),char(154),char(255),char(154),char(1),char(97),char(1),char(155), -char(255),char(154),char(1),char(97),char(2),char(2),char(255),char(174),char(1),char(97), -char(2),char(3),char(255),char(174),char(1),char(97),char(2),char(4),char(255),char(174), -char(1),char(97),char(2),char(8),char(255),char(133),char(1),char(97),char(2),char(12), -char(255),char(133),char(1),char(97),char(2),char(33),char(255),char(195),char(1),char(97), -char(2),char(83),char(255),char(215),char(1),char(98),char(0),char(5),char(255),char(113), -char(1),char(98),char(0),char(10),char(255),char(113),char(1),char(98),char(1),char(102), -char(255),char(215),char(1),char(98),char(1),char(109),char(255),char(215),char(1),char(98), -char(1),char(113),char(255),char(113),char(1),char(98),char(1),char(114),char(255),char(133), -char(1),char(98),char(1),char(115),char(255),char(215),char(1),char(98),char(1),char(117), -char(255),char(174),char(1),char(98),char(1),char(120),char(255),char(133),char(1),char(98), -char(2),char(7),char(255),char(113),char(1),char(98),char(2),char(11),char(255),char(113), -char(1),char(98),char(2),char(84),char(255),char(133),char(1),char(100),char(1),char(102), -char(255),char(236),char(1),char(100),char(1),char(109),char(255),char(236),char(1),char(100), -char(1),char(115),char(255),char(195),char(1),char(102),char(0),char(15),char(255),char(174), -char(1),char(102),char(0),char(17),char(255),char(174),char(1),char(102),char(1),char(86), -char(255),char(215),char(1),char(102),char(1),char(95),char(255),char(215),char(1),char(102), -char(1),char(98),char(255),char(215),char(1),char(102),char(1),char(100),char(255),char(236), -char(1),char(102),char(1),char(105),char(255),char(215),char(1),char(102),char(1),char(112), -char(255),char(236),char(1),char(102),char(1),char(113),char(255),char(195),char(1),char(102), -char(1),char(114),char(255),char(236),char(1),char(102),char(1),char(116),char(255),char(215), -char(1),char(102),char(1),char(117),char(255),char(236),char(1),char(102),char(1),char(120), -char(255),char(236),char(1),char(102),char(1),char(136),char(255),char(236),char(1),char(102), -char(2),char(8),char(255),char(174),char(1),char(102),char(2),char(12),char(255),char(174), -char(1),char(102),char(2),char(84),char(255),char(236),char(1),char(104),char(1),char(102), -char(255),char(215),char(1),char(104),char(1),char(109),char(255),char(215),char(1),char(104), -char(1),char(115),char(255),char(195),char(1),char(104),char(1),char(141),char(255),char(236), -char(1),char(104),char(1),char(145),char(255),char(236),char(1),char(105),char(0),char(5), -char(255),char(113),char(1),char(105),char(0),char(10),char(255),char(113),char(1),char(105), -char(1),char(102),char(255),char(215),char(1),char(105),char(1),char(109),char(255),char(215), -char(1),char(105),char(1),char(113),char(255),char(113),char(1),char(105),char(1),char(114), -char(255),char(133),char(1),char(105),char(1),char(115),char(255),char(215),char(1),char(105), -char(1),char(117),char(255),char(174),char(1),char(105),char(1),char(120),char(255),char(133), -char(1),char(105),char(2),char(7),char(255),char(113),char(1),char(105),char(2),char(11), -char(255),char(113),char(1),char(105),char(2),char(84),char(255),char(133),char(1),char(109), -char(0),char(15),char(255),char(174),char(1),char(109),char(0),char(17),char(255),char(174), -char(1),char(109),char(1),char(86),char(255),char(215),char(1),char(109),char(1),char(95), -char(255),char(215),char(1),char(109),char(1),char(98),char(255),char(215),char(1),char(109), -char(1),char(100),char(255),char(236),char(1),char(109),char(1),char(105),char(255),char(215), -char(1),char(109),char(1),char(112),char(255),char(236),char(1),char(109),char(1),char(113), -char(255),char(195),char(1),char(109),char(1),char(114),char(255),char(236),char(1),char(109), -char(1),char(116),char(255),char(215),char(1),char(109),char(1),char(117),char(255),char(236), -char(1),char(109),char(1),char(120),char(255),char(236),char(1),char(109),char(1),char(136), -char(255),char(236),char(1),char(109),char(2),char(8),char(255),char(174),char(1),char(109), -char(2),char(12),char(255),char(174),char(1),char(109),char(2),char(84),char(255),char(236), -char(1),char(111),char(0),char(15),char(254),char(246),char(1),char(111),char(0),char(17), -char(254),char(246),char(1),char(111),char(1),char(86),char(255),char(154),char(1),char(111), -char(1),char(95),char(255),char(154),char(1),char(111),char(1),char(98),char(255),char(154), -char(1),char(111),char(1),char(100),char(255),char(236),char(1),char(111),char(1),char(105), -char(255),char(154),char(1),char(111),char(1),char(116),char(255),char(215),char(1),char(111), -char(1),char(136),char(255),char(215),char(1),char(111),char(2),char(8),char(254),char(246), -char(1),char(111),char(2),char(12),char(254),char(246),char(1),char(113),char(0),char(15), -char(255),char(133),char(1),char(113),char(0),char(16),char(255),char(174),char(1),char(113), -char(0),char(17),char(255),char(133),char(1),char(113),char(1),char(86),char(255),char(92), -char(1),char(113),char(1),char(95),char(255),char(92),char(1),char(113),char(1),char(98), -char(255),char(92),char(1),char(113),char(1),char(102),char(255),char(195),char(1),char(113), -char(1),char(105),char(255),char(92),char(1),char(113),char(1),char(109),char(255),char(195), -char(1),char(113),char(1),char(115),char(255),char(154),char(1),char(113),char(1),char(118), -char(255),char(195),char(1),char(113),char(1),char(121),char(255),char(113),char(1),char(113), -char(1),char(122),char(255),char(154),char(1),char(113),char(1),char(123),char(255),char(154), -char(1),char(113),char(1),char(124),char(255),char(174),char(1),char(113),char(1),char(125), -char(255),char(154),char(1),char(113),char(1),char(126),char(255),char(113),char(1),char(113), -char(1),char(128),char(255),char(215),char(1),char(113),char(1),char(129),char(255),char(195), -char(1),char(113),char(1),char(130),char(255),char(154),char(1),char(113),char(1),char(132), -char(255),char(154),char(1),char(113),char(1),char(134),char(255),char(174),char(1),char(113), -char(1),char(135),char(255),char(154),char(1),char(113),char(1),char(137),char(255),char(154), -char(1),char(113),char(1),char(138),char(255),char(215),char(1),char(113),char(1),char(140), -char(255),char(113),char(1),char(113),char(1),char(142),char(255),char(154),char(1),char(113), -char(1),char(143),char(255),char(113),char(1),char(113),char(1),char(144),char(255),char(113), -char(1),char(113),char(1),char(146),char(255),char(154),char(1),char(113),char(1),char(147), -char(255),char(113),char(1),char(113),char(1),char(148),char(255),char(215),char(1),char(113), -char(1),char(149),char(255),char(154),char(1),char(113),char(1),char(150),char(255),char(154), -char(1),char(113),char(1),char(152),char(255),char(154),char(1),char(113),char(1),char(153), -char(255),char(113),char(1),char(113),char(1),char(154),char(255),char(154),char(1),char(113), -char(1),char(155),char(255),char(154),char(1),char(113),char(2),char(2),char(255),char(174), -char(1),char(113),char(2),char(3),char(255),char(174),char(1),char(113),char(2),char(4), -char(255),char(174),char(1),char(113),char(2),char(8),char(255),char(133),char(1),char(113), -char(2),char(12),char(255),char(133),char(1),char(113),char(2),char(33),char(255),char(195), -char(1),char(113),char(2),char(83),char(255),char(215),char(1),char(114),char(0),char(15), -char(255),char(133),char(1),char(114),char(0),char(17),char(255),char(133),char(1),char(114), -char(1),char(86),char(255),char(133),char(1),char(114),char(1),char(95),char(255),char(133), -char(1),char(114),char(1),char(98),char(255),char(133),char(1),char(114),char(1),char(102), -char(255),char(215),char(1),char(114),char(1),char(105),char(255),char(133),char(1),char(114), -char(1),char(109),char(255),char(215),char(1),char(114),char(1),char(115),char(255),char(195), -char(1),char(114),char(1),char(118),char(255),char(236),char(1),char(114),char(1),char(121), -char(255),char(154),char(1),char(114),char(1),char(122),char(255),char(174),char(1),char(114), -char(1),char(123),char(255),char(195),char(1),char(114),char(1),char(124),char(255),char(195), -char(1),char(114),char(1),char(125),char(255),char(195),char(1),char(114),char(1),char(126), -char(255),char(154),char(1),char(114),char(1),char(129),char(255),char(195),char(1),char(114), -char(1),char(130),char(255),char(174),char(1),char(114),char(1),char(132),char(255),char(195), -char(1),char(114),char(1),char(134),char(255),char(195),char(1),char(114),char(1),char(135), -char(255),char(195),char(1),char(114),char(1),char(137),char(255),char(195),char(1),char(114), -char(1),char(140),char(255),char(154),char(1),char(114),char(1),char(142),char(255),char(154), -char(1),char(114),char(1),char(143),char(255),char(154),char(1),char(114),char(1),char(144), -char(255),char(154),char(1),char(114),char(1),char(146),char(255),char(195),char(1),char(114), -char(1),char(147),char(255),char(154),char(1),char(114),char(1),char(149),char(255),char(195), -char(1),char(114),char(1),char(150),char(255),char(195),char(1),char(114),char(1),char(152), -char(255),char(195),char(1),char(114),char(1),char(153),char(255),char(154),char(1),char(114), -char(1),char(154),char(255),char(195),char(1),char(114),char(1),char(155),char(255),char(195), -char(1),char(114),char(2),char(8),char(255),char(133),char(1),char(114),char(2),char(12), -char(255),char(133),char(1),char(114),char(2),char(33),char(255),char(236),char(1),char(115), -char(0),char(15),char(255),char(154),char(1),char(115),char(0),char(17),char(255),char(154), -char(1),char(115),char(1),char(86),char(255),char(215),char(1),char(115),char(1),char(95), -char(255),char(215),char(1),char(115),char(1),char(98),char(255),char(215),char(1),char(115), -char(1),char(100),char(255),char(195),char(1),char(115),char(1),char(105),char(255),char(215), -char(1),char(115),char(1),char(112),char(255),char(236),char(1),char(115),char(1),char(113), -char(255),char(174),char(1),char(115),char(1),char(114),char(255),char(195),char(1),char(115), -char(1),char(116),char(255),char(236),char(1),char(115),char(1),char(120),char(255),char(195), -char(1),char(115),char(1),char(136),char(255),char(236),char(1),char(115),char(2),char(8), -char(255),char(154),char(1),char(115),char(2),char(12),char(255),char(154),char(1),char(115), -char(2),char(84),char(255),char(195),char(1),char(116),char(1),char(102),char(255),char(215), -char(1),char(116),char(1),char(109),char(255),char(215),char(1),char(116),char(1),char(115), -char(255),char(195),char(1),char(116),char(1),char(141),char(255),char(236),char(1),char(116), -char(1),char(145),char(255),char(236),char(1),char(117),char(0),char(15),char(255),char(133), -char(1),char(117),char(0),char(17),char(255),char(133),char(1),char(117),char(1),char(86), -char(255),char(174),char(1),char(117),char(1),char(95),char(255),char(174),char(1),char(117), -char(1),char(98),char(255),char(174),char(1),char(117),char(1),char(102),char(255),char(236), -char(1),char(117),char(1),char(105),char(255),char(174),char(1),char(117),char(1),char(109), -char(255),char(236),char(1),char(117),char(2),char(8),char(255),char(133),char(1),char(117), -char(2),char(12),char(255),char(133),char(1),char(118),char(1),char(113),char(255),char(215), -char(1),char(118),char(1),char(114),char(255),char(236),char(1),char(118),char(1),char(120), -char(255),char(236),char(1),char(118),char(2),char(84),char(255),char(236),char(1),char(120), -char(0),char(15),char(255),char(133),char(1),char(120),char(0),char(17),char(255),char(133), -char(1),char(120),char(1),char(86),char(255),char(133),char(1),char(120),char(1),char(95), -char(255),char(133),char(1),char(120),char(1),char(98),char(255),char(133),char(1),char(120), -char(1),char(102),char(255),char(215),char(1),char(120),char(1),char(105),char(255),char(133), -char(1),char(120),char(1),char(109),char(255),char(215),char(1),char(120),char(1),char(115), -char(255),char(195),char(1),char(120),char(1),char(118),char(255),char(236),char(1),char(120), -char(1),char(121),char(255),char(154),char(1),char(120),char(1),char(122),char(255),char(174), -char(1),char(120),char(1),char(123),char(255),char(195),char(1),char(120),char(1),char(124), -char(255),char(195),char(1),char(120),char(1),char(125),char(255),char(195),char(1),char(120), -char(1),char(126),char(255),char(154),char(1),char(120),char(1),char(129),char(255),char(195), -char(1),char(120),char(1),char(130),char(255),char(174),char(1),char(120),char(1),char(132), -char(255),char(195),char(1),char(120),char(1),char(134),char(255),char(195),char(1),char(120), -char(1),char(135),char(255),char(195),char(1),char(120),char(1),char(137),char(255),char(195), -char(1),char(120),char(1),char(140),char(255),char(154),char(1),char(120),char(1),char(142), -char(255),char(154),char(1),char(120),char(1),char(143),char(255),char(154),char(1),char(120), -char(1),char(144),char(255),char(154),char(1),char(120),char(1),char(146),char(255),char(195), -char(1),char(120),char(1),char(147),char(255),char(154),char(1),char(120),char(1),char(149), -char(255),char(195),char(1),char(120),char(1),char(150),char(255),char(195),char(1),char(120), -char(1),char(152),char(255),char(195),char(1),char(120),char(1),char(153),char(255),char(154), -char(1),char(120),char(1),char(154),char(255),char(195),char(1),char(120),char(1),char(155), -char(255),char(195),char(1),char(120),char(2),char(8),char(255),char(133),char(1),char(120), -char(2),char(12),char(255),char(133),char(1),char(120),char(2),char(33),char(255),char(236), -char(1),char(121),char(1),char(136),char(0),char(41),char(1),char(123),char(0),char(5), -char(255),char(236),char(1),char(123),char(0),char(10),char(255),char(236),char(1),char(123), -char(2),char(7),char(255),char(236),char(1),char(123),char(2),char(11),char(255),char(236), -char(1),char(124),char(0),char(5),char(255),char(174),char(1),char(124),char(0),char(10), -char(255),char(174),char(1),char(124),char(1),char(141),char(255),char(236),char(1),char(124), -char(1),char(145),char(255),char(236),char(1),char(124),char(2),char(7),char(255),char(174), -char(1),char(124),char(2),char(11),char(255),char(174),char(1),char(126),char(1),char(136), -char(0),char(41),char(1),char(128),char(0),char(15),char(255),char(174),char(1),char(128), -char(0),char(17),char(255),char(174),char(1),char(128),char(1),char(136),char(255),char(236), -char(1),char(128),char(2),char(8),char(255),char(174),char(1),char(128),char(2),char(12), -char(255),char(174),char(1),char(131),char(0),char(16),char(255),char(154),char(1),char(131), -char(1),char(121),char(255),char(215),char(1),char(131),char(1),char(126),char(255),char(215), -char(1),char(131),char(1),char(129),char(255),char(215),char(1),char(131),char(1),char(140), -char(255),char(215),char(1),char(131),char(1),char(141),char(255),char(215),char(1),char(131), -char(1),char(143),char(255),char(215),char(1),char(131),char(1),char(144),char(255),char(215), -char(1),char(131),char(1),char(145),char(255),char(215),char(1),char(131),char(1),char(147), -char(255),char(215),char(1),char(131),char(1),char(153),char(255),char(215),char(1),char(131), -char(2),char(2),char(255),char(154),char(1),char(131),char(2),char(3),char(255),char(154), -char(1),char(131),char(2),char(4),char(255),char(154),char(1),char(132),char(0),char(5), -char(255),char(236),char(1),char(132),char(0),char(10),char(255),char(236),char(1),char(132), -char(2),char(7),char(255),char(236),char(1),char(132),char(2),char(11),char(255),char(236), -char(1),char(133),char(0),char(15),char(255),char(215),char(1),char(133),char(0),char(17), -char(255),char(215),char(1),char(133),char(2),char(8),char(255),char(215),char(1),char(133), -char(2),char(12),char(255),char(215),char(1),char(134),char(0),char(5),char(255),char(174), -char(1),char(134),char(0),char(10),char(255),char(174),char(1),char(134),char(1),char(141), -char(255),char(236),char(1),char(134),char(1),char(145),char(255),char(236),char(1),char(134), -char(2),char(7),char(255),char(174),char(1),char(134),char(2),char(11),char(255),char(174), -char(1),char(135),char(1),char(121),char(255),char(215),char(1),char(135),char(1),char(126), -char(255),char(215),char(1),char(135),char(1),char(140),char(255),char(215),char(1),char(135), -char(1),char(143),char(255),char(215),char(1),char(135),char(1),char(144),char(255),char(215), -char(1),char(135),char(1),char(147),char(255),char(215),char(1),char(135),char(1),char(153), -char(255),char(215),char(1),char(136),char(0),char(5),char(255),char(133),char(1),char(136), -char(0),char(10),char(255),char(133),char(1),char(136),char(1),char(121),char(255),char(236), -char(1),char(136),char(1),char(126),char(255),char(236),char(1),char(136),char(1),char(128), -char(255),char(215),char(1),char(136),char(1),char(138),char(255),char(215),char(1),char(136), -char(1),char(140),char(255),char(236),char(1),char(136),char(1),char(141),char(255),char(215), -char(1),char(136),char(1),char(143),char(255),char(236),char(1),char(136),char(1),char(144), -char(255),char(236),char(1),char(136),char(1),char(145),char(255),char(215),char(1),char(136), -char(1),char(147),char(255),char(236),char(1),char(136),char(1),char(153),char(255),char(236), -char(1),char(136),char(2),char(7),char(255),char(133),char(1),char(136),char(2),char(11), -char(255),char(133),char(1),char(138),char(0),char(15),char(255),char(174),char(1),char(138), -char(0),char(17),char(255),char(174),char(1),char(138),char(1),char(136),char(255),char(236), -char(1),char(138),char(2),char(8),char(255),char(174),char(1),char(138),char(2),char(12), -char(255),char(174),char(1),char(140),char(0),char(5),char(255),char(236),char(1),char(140), -char(0),char(10),char(255),char(236),char(1),char(140),char(1),char(128),char(255),char(215), -char(1),char(140),char(1),char(138),char(255),char(215),char(1),char(140),char(2),char(7), -char(255),char(236),char(1),char(140),char(2),char(11),char(255),char(236),char(1),char(142), -char(0),char(5),char(255),char(236),char(1),char(142),char(0),char(10),char(255),char(236), -char(1),char(142),char(1),char(128),char(255),char(215),char(1),char(142),char(1),char(138), -char(255),char(215),char(1),char(142),char(2),char(7),char(255),char(236),char(1),char(142), -char(2),char(11),char(255),char(236),char(1),char(144),char(0),char(15),char(255),char(236), -char(1),char(144),char(0),char(17),char(255),char(236),char(1),char(144),char(2),char(8), -char(255),char(236),char(1),char(144),char(2),char(12),char(255),char(236),char(1),char(147), -char(0),char(5),char(255),char(236),char(1),char(147),char(0),char(10),char(255),char(236), -char(1),char(147),char(1),char(128),char(255),char(215),char(1),char(147),char(1),char(138), -char(255),char(215),char(1),char(147),char(2),char(7),char(255),char(236),char(1),char(147), -char(2),char(11),char(255),char(236),char(1),char(148),char(0),char(15),char(255),char(195), -char(1),char(148),char(0),char(16),char(255),char(215),char(1),char(148),char(0),char(17), -char(255),char(195),char(1),char(148),char(1),char(121),char(255),char(215),char(1),char(148), -char(1),char(126),char(255),char(215),char(1),char(148),char(1),char(129),char(255),char(215), -char(1),char(148),char(1),char(140),char(255),char(215),char(1),char(148),char(1),char(143), -char(255),char(215),char(1),char(148),char(1),char(144),char(255),char(215),char(1),char(148), -char(1),char(147),char(255),char(215),char(1),char(148),char(1),char(153),char(255),char(215), -char(1),char(148),char(2),char(2),char(255),char(215),char(1),char(148),char(2),char(3), -char(255),char(215),char(1),char(148),char(2),char(4),char(255),char(215),char(1),char(148), -char(2),char(8),char(255),char(195),char(1),char(148),char(2),char(12),char(255),char(195), -char(1),char(151),char(0),char(5),char(255),char(215),char(1),char(151),char(0),char(10), -char(255),char(215),char(1),char(151),char(2),char(7),char(255),char(215),char(1),char(151), -char(2),char(11),char(255),char(215),char(1),char(153),char(0),char(5),char(255),char(236), -char(1),char(153),char(0),char(10),char(255),char(236),char(1),char(153),char(1),char(128), -char(255),char(215),char(1),char(153),char(1),char(138),char(255),char(215),char(1),char(153), -char(2),char(7),char(255),char(236),char(1),char(153),char(2),char(11),char(255),char(236), -char(1),char(157),char(0),char(5),char(255),char(174),char(1),char(157),char(0),char(10), -char(255),char(174),char(1),char(157),char(1),char(157),char(255),char(133),char(1),char(157), -char(1),char(166),char(255),char(133),char(1),char(157),char(1),char(168),char(255),char(215), -char(1),char(157),char(1),char(188),char(255),char(154),char(1),char(157),char(1),char(189), -char(255),char(215),char(1),char(157),char(1),char(193),char(255),char(154),char(1),char(157), -char(1),char(196),char(255),char(133),char(1),char(157),char(1),char(220),char(255),char(215), -char(1),char(157),char(1),char(221),char(255),char(215),char(1),char(157),char(1),char(225), -char(255),char(215),char(1),char(157),char(1),char(228),char(255),char(215),char(1),char(157), -char(1),char(246),char(255),char(215),char(1),char(157),char(2),char(7),char(255),char(174), -char(1),char(157),char(2),char(11),char(255),char(174),char(1),char(157),char(2),char(110), -char(255),char(174),char(1),char(157),char(2),char(124),char(255),char(154),char(1),char(157), -char(2),char(128),char(255),char(174),char(1),char(157),char(2),char(130),char(255),char(174), -char(1),char(157),char(2),char(151),char(255),char(174),char(1),char(157),char(2),char(155), -char(255),char(174),char(1),char(157),char(2),char(167),char(255),char(174),char(1),char(157), -char(2),char(169),char(255),char(133),char(1),char(157),char(2),char(170),char(255),char(215), -char(1),char(157),char(2),char(181),char(255),char(154),char(1),char(157),char(2),char(182), -char(255),char(215),char(1),char(157),char(2),char(183),char(255),char(154),char(1),char(157), -char(2),char(184),char(255),char(215),char(1),char(157),char(2),char(185),char(255),char(154), -char(1),char(157),char(2),char(186),char(255),char(215),char(1),char(157),char(2),char(189), -char(255),char(133),char(1),char(157),char(2),char(190),char(255),char(215),char(1),char(157), -char(2),char(191),char(255),char(154),char(1),char(157),char(2),char(192),char(255),char(215), -char(1),char(157),char(2),char(193),char(255),char(154),char(1),char(157),char(2),char(194), -char(255),char(215),char(1),char(157),char(2),char(212),char(255),char(154),char(1),char(157), -char(2),char(213),char(255),char(215),char(1),char(157),char(2),char(247),char(255),char(215), -char(1),char(157),char(2),char(248),char(255),char(215),char(1),char(157),char(2),char(249), -char(255),char(215),char(1),char(157),char(2),char(250),char(255),char(215),char(1),char(157), -char(2),char(251),char(255),char(215),char(1),char(157),char(2),char(252),char(255),char(215), -char(1),char(157),char(2),char(253),char(255),char(154),char(1),char(157),char(2),char(254), -char(255),char(215),char(1),char(157),char(3),char(3),char(255),char(174),char(1),char(157), -char(3),char(13),char(255),char(154),char(1),char(157),char(3),char(14),char(255),char(195), -char(1),char(157),char(3),char(15),char(255),char(154),char(1),char(157),char(3),char(16), -char(255),char(195),char(1),char(157),char(3),char(23),char(255),char(133),char(1),char(157), -char(3),char(24),char(255),char(215),char(1),char(158),char(0),char(15),char(255),char(133), -char(1),char(158),char(0),char(16),char(255),char(174),char(1),char(158),char(0),char(17), -char(255),char(133),char(1),char(158),char(1),char(159),char(255),char(215),char(1),char(158), -char(1),char(164),char(255),char(154),char(1),char(158),char(1),char(170),char(255),char(113), -char(1),char(158),char(1),char(174),char(255),char(154),char(1),char(158),char(1),char(181), -char(255),char(154),char(1),char(158),char(1),char(184),char(255),char(215),char(1),char(158), -char(1),char(187),char(255),char(215),char(1),char(158),char(1),char(188),char(0),char(41), -char(1),char(158),char(1),char(190),char(255),char(174),char(1),char(158),char(1),char(204), -char(255),char(154),char(1),char(158),char(1),char(205),char(255),char(154),char(1),char(158), -char(1),char(206),char(255),char(133),char(1),char(158),char(1),char(207),char(255),char(113), -char(1),char(158),char(1),char(208),char(255),char(215),char(1),char(158),char(1),char(209), -char(255),char(215),char(1),char(158),char(1),char(210),char(255),char(154),char(1),char(158), -char(1),char(211),char(255),char(154),char(1),char(158),char(1),char(212),char(255),char(154), -char(1),char(158),char(1),char(213),char(255),char(133),char(1),char(158),char(1),char(214), -char(255),char(154),char(1),char(158),char(1),char(215),char(255),char(154),char(1),char(158), -char(1),char(216),char(255),char(113),char(1),char(158),char(1),char(217),char(255),char(154), -char(1),char(158),char(1),char(218),char(255),char(154),char(1),char(158),char(1),char(219), -char(255),char(113),char(1),char(158),char(1),char(220),char(255),char(174),char(1),char(158), -char(1),char(221),char(255),char(174),char(1),char(158),char(1),char(222),char(255),char(113), -char(1),char(158),char(1),char(223),char(255),char(215),char(1),char(158),char(1),char(224), -char(255),char(154),char(1),char(158),char(1),char(225),char(255),char(154),char(1),char(158), -char(1),char(226),char(255),char(154),char(1),char(158),char(1),char(227),char(255),char(154), -char(1),char(158),char(1),char(228),char(255),char(174),char(1),char(158),char(1),char(229), -char(255),char(154),char(1),char(158),char(1),char(230),char(255),char(154),char(1),char(158), -char(1),char(231),char(255),char(215),char(1),char(158),char(1),char(232),char(255),char(154), -char(1),char(158),char(1),char(233),char(255),char(195),char(1),char(158),char(1),char(234), -char(255),char(113),char(1),char(158),char(1),char(236),char(255),char(154),char(1),char(158), -char(1),char(237),char(255),char(113),char(1),char(158),char(1),char(238),char(255),char(133), -char(1),char(158),char(1),char(242),char(255),char(133),char(1),char(158),char(1),char(243), -char(255),char(154),char(1),char(158),char(1),char(245),char(255),char(154),char(1),char(158), -char(1),char(246),char(255),char(174),char(1),char(158),char(1),char(247),char(255),char(154), -char(1),char(158),char(1),char(249),char(255),char(154),char(1),char(158),char(2),char(2), -char(255),char(174),char(1),char(158),char(2),char(3),char(255),char(174),char(1),char(158), -char(2),char(4),char(255),char(174),char(1),char(158),char(2),char(8),char(255),char(133), -char(1),char(158),char(2),char(12),char(255),char(133),char(1),char(158),char(2),char(106), -char(255),char(113),char(1),char(158),char(2),char(107),char(255),char(154),char(1),char(158), -char(2),char(108),char(255),char(215),char(1),char(158),char(2),char(109),char(255),char(215), -char(1),char(158),char(2),char(113),char(255),char(154),char(1),char(158),char(2),char(114), -char(255),char(113),char(1),char(158),char(2),char(115),char(255),char(133),char(1),char(158), -char(2),char(117),char(255),char(154),char(1),char(158),char(2),char(119),char(255),char(154), -char(1),char(158),char(2),char(121),char(255),char(154),char(1),char(158),char(2),char(125), -char(255),char(154),char(1),char(158),char(2),char(126),char(255),char(215),char(1),char(158), -char(2),char(127),char(255),char(113),char(1),char(158),char(2),char(129),char(255),char(215), -char(1),char(158),char(2),char(131),char(255),char(215),char(1),char(158),char(2),char(132), -char(255),char(215),char(1),char(158),char(2),char(133),char(255),char(113),char(1),char(158), -char(2),char(134),char(255),char(215),char(1),char(158),char(2),char(135),char(255),char(113), -char(1),char(158),char(2),char(136),char(255),char(215),char(1),char(158),char(2),char(137), -char(255),char(113),char(1),char(158),char(2),char(138),char(255),char(215),char(1),char(158), -char(2),char(139),char(255),char(215),char(1),char(158),char(2),char(140),char(255),char(215), -char(1),char(158),char(2),char(141),char(255),char(113),char(1),char(158),char(2),char(150), -char(255),char(154),char(1),char(158),char(2),char(154),char(255),char(154),char(1),char(158), -char(2),char(158),char(255),char(154),char(1),char(158),char(2),char(160),char(255),char(215), -char(1),char(158),char(2),char(162),char(255),char(215),char(1),char(158),char(2),char(164), -char(255),char(154),char(1),char(158),char(2),char(166),char(255),char(154),char(1),char(158), -char(2),char(170),char(255),char(174),char(1),char(158),char(2),char(172),char(255),char(154), -char(1),char(158),char(2),char(174),char(255),char(154),char(1),char(158),char(2),char(176), -char(255),char(154),char(1),char(158),char(2),char(177),char(255),char(215),char(1),char(158), -char(2),char(178),char(255),char(113),char(1),char(158),char(2),char(179),char(255),char(215), -char(1),char(158),char(2),char(180),char(255),char(113),char(1),char(158),char(2),char(181), -char(0),char(41),char(1),char(158),char(2),char(182),char(255),char(174),char(1),char(158), -char(2),char(184),char(255),char(174),char(1),char(158),char(2),char(186),char(255),char(174), -char(1),char(158),char(2),char(188),char(255),char(215),char(1),char(158),char(2),char(190), -char(255),char(174),char(1),char(158),char(2),char(192),char(255),char(154),char(1),char(158), -char(2),char(194),char(255),char(154),char(1),char(158),char(2),char(196),char(255),char(154), -char(1),char(158),char(2),char(197),char(255),char(154),char(1),char(158),char(2),char(198), -char(255),char(113),char(1),char(158),char(2),char(199),char(255),char(154),char(1),char(158), -char(2),char(200),char(255),char(113),char(1),char(158),char(2),char(203),char(255),char(215), -char(1),char(158),char(2),char(205),char(255),char(154),char(1),char(158),char(2),char(206), -char(255),char(154),char(1),char(158),char(2),char(207),char(255),char(133),char(1),char(158), -char(2),char(209),char(255),char(154),char(1),char(158),char(2),char(211),char(255),char(154), -char(1),char(158),char(2),char(213),char(255),char(154),char(1),char(158),char(2),char(215), -char(255),char(154),char(1),char(158),char(2),char(217),char(255),char(113),char(1),char(158), -char(2),char(219),char(255),char(113),char(1),char(158),char(2),char(221),char(255),char(113), -char(1),char(158),char(2),char(224),char(255),char(113),char(1),char(158),char(2),char(230), -char(255),char(215),char(1),char(158),char(2),char(232),char(255),char(215),char(1),char(158), -char(2),char(234),char(255),char(195),char(1),char(158),char(2),char(236),char(255),char(154), -char(1),char(158),char(2),char(238),char(255),char(154),char(1),char(158),char(2),char(239), -char(255),char(215),char(1),char(158),char(2),char(240),char(255),char(113),char(1),char(158), -char(2),char(241),char(255),char(215),char(1),char(158),char(2),char(242),char(255),char(113), -char(1),char(158),char(2),char(243),char(255),char(215),char(1),char(158),char(2),char(244), -char(255),char(113),char(1),char(158),char(2),char(246),char(255),char(215),char(1),char(158), -char(2),char(248),char(255),char(174),char(1),char(158),char(2),char(250),char(255),char(174), -char(1),char(158),char(2),char(252),char(255),char(174),char(1),char(158),char(2),char(254), -char(255),char(154),char(1),char(158),char(3),char(0),char(255),char(154),char(1),char(158), -char(3),char(2),char(255),char(154),char(1),char(158),char(3),char(6),char(255),char(215), -char(1),char(158),char(3),char(8),char(255),char(215),char(1),char(158),char(3),char(9), -char(255),char(113),char(1),char(158),char(3),char(10),char(255),char(113),char(1),char(158), -char(3),char(11),char(255),char(113),char(1),char(158),char(3),char(12),char(255),char(113), -char(1),char(158),char(3),char(14),char(255),char(154),char(1),char(158),char(3),char(16), -char(255),char(154),char(1),char(158),char(3),char(17),char(255),char(154),char(1),char(158), -char(3),char(18),char(255),char(133),char(1),char(158),char(3),char(20),char(255),char(154), -char(1),char(158),char(3),char(21),char(255),char(215),char(1),char(158),char(3),char(22), -char(255),char(113),char(1),char(158),char(3),char(24),char(255),char(174),char(1),char(158), -char(3),char(26),char(255),char(113),char(1),char(158),char(3),char(27),char(255),char(154), -char(1),char(158),char(3),char(28),char(255),char(133),char(1),char(159),char(1),char(159), -char(255),char(215),char(1),char(159),char(1),char(184),char(255),char(215),char(1),char(159), -char(1),char(187),char(255),char(215),char(1),char(159),char(1),char(190),char(255),char(215), -char(1),char(159),char(1),char(225),char(255),char(215),char(1),char(159),char(2),char(108), -char(255),char(215),char(1),char(159),char(2),char(126),char(255),char(215),char(1),char(159), -char(2),char(132),char(255),char(215),char(1),char(159),char(2),char(134),char(255),char(215), -char(1),char(159),char(2),char(136),char(255),char(215),char(1),char(159),char(2),char(138), -char(255),char(215),char(1),char(159),char(2),char(140),char(255),char(215),char(1),char(159), -char(2),char(177),char(255),char(215),char(1),char(159),char(2),char(179),char(255),char(215), -char(1),char(159),char(2),char(192),char(255),char(215),char(1),char(159),char(2),char(194), -char(255),char(215),char(1),char(159),char(2),char(197),char(255),char(215),char(1),char(159), -char(2),char(199),char(255),char(215),char(1),char(159),char(2),char(213),char(255),char(215), -char(1),char(159),char(2),char(239),char(255),char(215),char(1),char(159),char(2),char(241), -char(255),char(215),char(1),char(159),char(2),char(243),char(255),char(215),char(1),char(159), -char(2),char(254),char(255),char(215),char(1),char(159),char(3),char(9),char(255),char(215), -char(1),char(159),char(3),char(11),char(255),char(215),char(1),char(159),char(3),char(14), -char(255),char(215),char(1),char(159),char(3),char(16),char(255),char(215),char(1),char(159), -char(3),char(21),char(255),char(215),char(1),char(160),char(3),char(14),char(255),char(215), -char(1),char(160),char(3),char(16),char(255),char(215),char(1),char(164),char(0),char(5), -char(255),char(174),char(1),char(164),char(0),char(10),char(255),char(174),char(1),char(164), -char(1),char(157),char(255),char(133),char(1),char(164),char(1),char(166),char(255),char(133), -char(1),char(164),char(1),char(168),char(255),char(215),char(1),char(164),char(1),char(188), -char(255),char(154),char(1),char(164),char(1),char(189),char(255),char(215),char(1),char(164), -char(1),char(193),char(255),char(154),char(1),char(164),char(1),char(196),char(255),char(133), -char(1),char(164),char(1),char(220),char(255),char(215),char(1),char(164),char(1),char(221), -char(255),char(215),char(1),char(164),char(1),char(225),char(255),char(215),char(1),char(164), -char(1),char(228),char(255),char(215),char(1),char(164),char(1),char(246),char(255),char(215), -char(1),char(164),char(2),char(7),char(255),char(174),char(1),char(164),char(2),char(11), -char(255),char(174),char(1),char(164),char(2),char(110),char(255),char(174),char(1),char(164), -char(2),char(124),char(255),char(154),char(1),char(164),char(2),char(128),char(255),char(174), -char(1),char(164),char(2),char(130),char(255),char(174),char(1),char(164),char(2),char(151), -char(255),char(174),char(1),char(164),char(2),char(155),char(255),char(174),char(1),char(164), -char(2),char(167),char(255),char(174),char(1),char(164),char(2),char(169),char(255),char(133), -char(1),char(164),char(2),char(170),char(255),char(215),char(1),char(164),char(2),char(181), -char(255),char(154),char(1),char(164),char(2),char(182),char(255),char(215),char(1),char(164), -char(2),char(183),char(255),char(154),char(1),char(164),char(2),char(184),char(255),char(215), -char(1),char(164),char(2),char(185),char(255),char(154),char(1),char(164),char(2),char(186), -char(255),char(215),char(1),char(164),char(2),char(189),char(255),char(133),char(1),char(164), -char(2),char(190),char(255),char(215),char(1),char(164),char(2),char(191),char(255),char(154), -char(1),char(164),char(2),char(192),char(255),char(215),char(1),char(164),char(2),char(193), -char(255),char(154),char(1),char(164),char(2),char(194),char(255),char(215),char(1),char(164), -char(2),char(212),char(255),char(154),char(1),char(164),char(2),char(213),char(255),char(215), -char(1),char(164),char(2),char(247),char(255),char(215),char(1),char(164),char(2),char(248), -char(255),char(215),char(1),char(164),char(2),char(249),char(255),char(215),char(1),char(164), -char(2),char(250),char(255),char(215),char(1),char(164),char(2),char(251),char(255),char(215), -char(1),char(164),char(2),char(252),char(255),char(215),char(1),char(164),char(2),char(253), -char(255),char(154),char(1),char(164),char(2),char(254),char(255),char(215),char(1),char(164), -char(3),char(3),char(255),char(174),char(1),char(164),char(3),char(13),char(255),char(154), -char(1),char(164),char(3),char(14),char(255),char(195),char(1),char(164),char(3),char(15), -char(255),char(154),char(1),char(164),char(3),char(16),char(255),char(195),char(1),char(164), -char(3),char(23),char(255),char(133),char(1),char(164),char(3),char(24),char(255),char(215), -char(1),char(165),char(0),char(5),char(255),char(174),char(1),char(165),char(0),char(10), -char(255),char(174),char(1),char(165),char(1),char(157),char(255),char(133),char(1),char(165), -char(1),char(166),char(255),char(133),char(1),char(165),char(1),char(168),char(255),char(215), -char(1),char(165),char(1),char(188),char(255),char(154),char(1),char(165),char(1),char(189), -char(255),char(215),char(1),char(165),char(1),char(193),char(255),char(154),char(1),char(165), -char(1),char(196),char(255),char(133),char(1),char(165),char(1),char(220),char(255),char(215), -char(1),char(165),char(1),char(221),char(255),char(215),char(1),char(165),char(1),char(225), -char(255),char(215),char(1),char(165),char(1),char(228),char(255),char(215),char(1),char(165), -char(1),char(246),char(255),char(215),char(1),char(165),char(2),char(7),char(255),char(174), -char(1),char(165),char(2),char(11),char(255),char(174),char(1),char(165),char(2),char(110), -char(255),char(174),char(1),char(165),char(2),char(124),char(255),char(154),char(1),char(165), -char(2),char(128),char(255),char(174),char(1),char(165),char(2),char(130),char(255),char(174), -char(1),char(165),char(2),char(151),char(255),char(174),char(1),char(165),char(2),char(155), -char(255),char(174),char(1),char(165),char(2),char(167),char(255),char(174),char(1),char(165), -char(2),char(169),char(255),char(133),char(1),char(165),char(2),char(170),char(255),char(215), -char(1),char(165),char(2),char(181),char(255),char(154),char(1),char(165),char(2),char(182), -char(255),char(215),char(1),char(165),char(2),char(183),char(255),char(154),char(1),char(165), -char(2),char(184),char(255),char(215),char(1),char(165),char(2),char(185),char(255),char(154), -char(1),char(165),char(2),char(186),char(255),char(215),char(1),char(165),char(2),char(189), -char(255),char(133),char(1),char(165),char(2),char(190),char(255),char(215),char(1),char(165), -char(2),char(191),char(255),char(154),char(1),char(165),char(2),char(192),char(255),char(215), -char(1),char(165),char(2),char(193),char(255),char(154),char(1),char(165),char(2),char(194), -char(255),char(215),char(1),char(165),char(2),char(212),char(255),char(154),char(1),char(165), -char(2),char(213),char(255),char(215),char(1),char(165),char(2),char(247),char(255),char(215), -char(1),char(165),char(2),char(248),char(255),char(215),char(1),char(165),char(2),char(249), -char(255),char(215),char(1),char(165),char(2),char(250),char(255),char(215),char(1),char(165), -char(2),char(251),char(255),char(215),char(1),char(165),char(2),char(252),char(255),char(215), -char(1),char(165),char(2),char(253),char(255),char(154),char(1),char(165),char(2),char(254), -char(255),char(215),char(1),char(165),char(3),char(3),char(255),char(174),char(1),char(165), -char(3),char(13),char(255),char(154),char(1),char(165),char(3),char(14),char(255),char(195), -char(1),char(165),char(3),char(15),char(255),char(154),char(1),char(165),char(3),char(16), -char(255),char(195),char(1),char(165),char(3),char(23),char(255),char(133),char(1),char(165), -char(3),char(24),char(255),char(215),char(1),char(166),char(0),char(5),char(255),char(174), -char(1),char(166),char(0),char(10),char(255),char(174),char(1),char(166),char(1),char(157), -char(255),char(133),char(1),char(166),char(1),char(166),char(255),char(133),char(1),char(166), -char(1),char(168),char(255),char(215),char(1),char(166),char(1),char(188),char(255),char(154), -char(1),char(166),char(1),char(189),char(255),char(215),char(1),char(166),char(1),char(193), -char(255),char(154),char(1),char(166),char(1),char(196),char(255),char(133),char(1),char(166), -char(1),char(220),char(255),char(215),char(1),char(166),char(1),char(221),char(255),char(215), -char(1),char(166),char(1),char(225),char(255),char(215),char(1),char(166),char(1),char(228), -char(255),char(215),char(1),char(166),char(1),char(246),char(255),char(215),char(1),char(166), -char(2),char(7),char(255),char(174),char(1),char(166),char(2),char(11),char(255),char(174), -char(1),char(166),char(2),char(110),char(255),char(174),char(1),char(166),char(2),char(124), -char(255),char(154),char(1),char(166),char(2),char(128),char(255),char(174),char(1),char(166), -char(2),char(130),char(255),char(174),char(1),char(166),char(2),char(151),char(255),char(174), -char(1),char(166),char(2),char(155),char(255),char(174),char(1),char(166),char(2),char(167), -char(255),char(174),char(1),char(166),char(2),char(169),char(255),char(133),char(1),char(166), -char(2),char(170),char(255),char(215),char(1),char(166),char(2),char(181),char(255),char(154), -char(1),char(166),char(2),char(182),char(255),char(215),char(1),char(166),char(2),char(183), -char(255),char(154),char(1),char(166),char(2),char(184),char(255),char(215),char(1),char(166), -char(2),char(185),char(255),char(154),char(1),char(166),char(2),char(186),char(255),char(215), -char(1),char(166),char(2),char(189),char(255),char(133),char(1),char(166),char(2),char(190), -char(255),char(215),char(1),char(166),char(2),char(191),char(255),char(154),char(1),char(166), -char(2),char(192),char(255),char(215),char(1),char(166),char(2),char(193),char(255),char(154), -char(1),char(166),char(2),char(194),char(255),char(215),char(1),char(166),char(2),char(212), -char(255),char(154),char(1),char(166),char(2),char(213),char(255),char(215),char(1),char(166), -char(2),char(247),char(255),char(215),char(1),char(166),char(2),char(248),char(255),char(215), -char(1),char(166),char(2),char(249),char(255),char(215),char(1),char(166),char(2),char(250), -char(255),char(215),char(1),char(166),char(2),char(251),char(255),char(215),char(1),char(166), -char(2),char(252),char(255),char(215),char(1),char(166),char(2),char(253),char(255),char(154), -char(1),char(166),char(2),char(254),char(255),char(215),char(1),char(166),char(3),char(3), -char(255),char(174),char(1),char(166),char(3),char(13),char(255),char(154),char(1),char(166), -char(3),char(14),char(255),char(195),char(1),char(166),char(3),char(15),char(255),char(154), -char(1),char(166),char(3),char(16),char(255),char(195),char(1),char(166),char(3),char(23), -char(255),char(133),char(1),char(166),char(3),char(24),char(255),char(215),char(1),char(167), -char(1),char(159),char(255),char(215),char(1),char(167),char(1),char(184),char(255),char(215), -char(1),char(167),char(1),char(187),char(255),char(215),char(1),char(167),char(1),char(190), -char(255),char(215),char(1),char(167),char(1),char(193),char(255),char(215),char(1),char(167), -char(1),char(225),char(255),char(215),char(1),char(167),char(2),char(108),char(255),char(215), -char(1),char(167),char(2),char(124),char(255),char(215),char(1),char(167),char(2),char(126), -char(255),char(215),char(1),char(167),char(2),char(132),char(255),char(215),char(1),char(167), -char(2),char(134),char(255),char(215),char(1),char(167),char(2),char(136),char(255),char(215), -char(1),char(167),char(2),char(138),char(255),char(215),char(1),char(167),char(2),char(140), -char(255),char(215),char(1),char(167),char(2),char(177),char(255),char(215),char(1),char(167), -char(2),char(179),char(255),char(215),char(1),char(167),char(2),char(191),char(255),char(215), -char(1),char(167),char(2),char(192),char(255),char(215),char(1),char(167),char(2),char(193), -char(255),char(215),char(1),char(167),char(2),char(194),char(255),char(215),char(1),char(167), -char(2),char(197),char(255),char(154),char(1),char(167),char(2),char(199),char(255),char(154), -char(1),char(167),char(2),char(212),char(255),char(215),char(1),char(167),char(2),char(213), -char(255),char(215),char(1),char(167),char(2),char(239),char(255),char(215),char(1),char(167), -char(2),char(241),char(255),char(215),char(1),char(167),char(2),char(243),char(255),char(215), -char(1),char(167),char(2),char(253),char(255),char(215),char(1),char(167),char(2),char(254), -char(255),char(215),char(1),char(167),char(3),char(9),char(255),char(215),char(1),char(167), -char(3),char(11),char(255),char(215),char(1),char(167),char(3),char(14),char(255),char(215), -char(1),char(167),char(3),char(16),char(255),char(215),char(1),char(167),char(3),char(21), -char(255),char(215),char(1),char(167),char(3),char(25),char(255),char(236),char(1),char(168), -char(0),char(15),char(255),char(133),char(1),char(168),char(0),char(17),char(255),char(133), -char(1),char(168),char(1),char(159),char(255),char(236),char(1),char(168),char(1),char(164), -char(255),char(154),char(1),char(168),char(1),char(170),char(255),char(113),char(1),char(168), -char(1),char(174),char(255),char(154),char(1),char(168),char(1),char(181),char(255),char(154), -char(1),char(168),char(1),char(184),char(255),char(236),char(1),char(168),char(1),char(187), -char(255),char(236),char(1),char(168),char(1),char(190),char(255),char(195),char(1),char(168), -char(1),char(201),char(255),char(236),char(1),char(168),char(1),char(206),char(255),char(174), -char(1),char(168),char(1),char(207),char(255),char(215),char(1),char(168),char(1),char(213), -char(255),char(174),char(1),char(168),char(1),char(216),char(255),char(215),char(1),char(168), -char(1),char(219),char(255),char(215),char(1),char(168),char(1),char(222),char(255),char(215), -char(1),char(168),char(1),char(225),char(255),char(215),char(1),char(168),char(1),char(234), -char(255),char(215),char(1),char(168),char(1),char(235),char(0),char(102),char(1),char(168), -char(1),char(237),char(255),char(215),char(1),char(168),char(1),char(238),char(255),char(236), -char(1),char(168),char(1),char(242),char(255),char(174),char(1),char(168),char(1),char(244), -char(0),char(102),char(1),char(168),char(2),char(8),char(255),char(133),char(1),char(168), -char(2),char(12),char(255),char(133),char(1),char(168),char(2),char(106),char(255),char(215), -char(1),char(168),char(2),char(108),char(255),char(236),char(1),char(168),char(2),char(114), -char(255),char(113),char(1),char(168),char(2),char(115),char(255),char(174),char(1),char(168), -char(2),char(126),char(255),char(236),char(1),char(168),char(2),char(127),char(255),char(215), -char(1),char(168),char(2),char(132),char(255),char(236),char(1),char(168),char(2),char(133), -char(255),char(215),char(1),char(168),char(2),char(134),char(255),char(236),char(1),char(168), -char(2),char(135),char(255),char(215),char(1),char(168),char(2),char(136),char(255),char(236), -char(1),char(168),char(2),char(137),char(255),char(215),char(1),char(168),char(2),char(138), -char(255),char(236),char(1),char(168),char(2),char(140),char(255),char(236),char(1),char(168), -char(2),char(141),char(255),char(215),char(1),char(168),char(2),char(152),char(0),char(102), -char(1),char(168),char(2),char(168),char(0),char(102),char(1),char(168),char(2),char(177), -char(255),char(236),char(1),char(168),char(2),char(178),char(255),char(215),char(1),char(168), -char(2),char(179),char(255),char(236),char(1),char(168),char(2),char(180),char(255),char(215), -char(1),char(168),char(2),char(192),char(255),char(215),char(1),char(168),char(2),char(194), -char(255),char(215),char(1),char(168),char(2),char(197),char(255),char(215),char(1),char(168), -char(2),char(198),char(255),char(195),char(1),char(168),char(2),char(199),char(255),char(215), -char(1),char(168),char(2),char(200),char(255),char(195),char(1),char(168),char(2),char(206), -char(255),char(154),char(1),char(168),char(2),char(207),char(255),char(174),char(1),char(168), -char(2),char(213),char(255),char(215),char(1),char(168),char(2),char(217),char(255),char(113), -char(1),char(168),char(2),char(219),char(255),char(113),char(1),char(168),char(2),char(221), -char(255),char(113),char(1),char(168),char(2),char(224),char(255),char(215),char(1),char(168), -char(2),char(239),char(255),char(236),char(1),char(168),char(2),char(240),char(255),char(215), -char(1),char(168),char(2),char(241),char(255),char(236),char(1),char(168),char(2),char(242), -char(255),char(215),char(1),char(168),char(2),char(243),char(255),char(236),char(1),char(168), -char(2),char(244),char(255),char(215),char(1),char(168),char(2),char(254),char(255),char(215), -char(1),char(168),char(3),char(9),char(255),char(113),char(1),char(168),char(3),char(10), -char(255),char(215),char(1),char(168),char(3),char(11),char(255),char(113),char(1),char(168), -char(3),char(12),char(255),char(215),char(1),char(168),char(3),char(17),char(255),char(154), -char(1),char(168),char(3),char(18),char(255),char(174),char(1),char(168),char(3),char(21), -char(255),char(236),char(1),char(168),char(3),char(22),char(255),char(215),char(1),char(168), -char(3),char(26),char(255),char(215),char(1),char(168),char(3),char(27),char(255),char(154), -char(1),char(168),char(3),char(28),char(255),char(174),char(1),char(170),char(0),char(5), -char(255),char(113),char(1),char(170),char(0),char(10),char(255),char(113),char(1),char(170), -char(1),char(157),char(255),char(154),char(1),char(170),char(1),char(166),char(255),char(154), -char(1),char(170),char(1),char(188),char(255),char(113),char(1),char(170),char(1),char(190), -char(255),char(215),char(1),char(170),char(1),char(193),char(255),char(154),char(1),char(170), -char(1),char(196),char(255),char(154),char(1),char(170),char(1),char(220),char(255),char(215), -char(1),char(170),char(1),char(225),char(255),char(215),char(1),char(170),char(1),char(228), -char(255),char(215),char(1),char(170),char(2),char(7),char(255),char(113),char(1),char(170), -char(2),char(11),char(255),char(113),char(1),char(170),char(2),char(110),char(255),char(215), -char(1),char(170),char(2),char(124),char(255),char(154),char(1),char(170),char(2),char(128), -char(255),char(174),char(1),char(170),char(2),char(130),char(255),char(174),char(1),char(170), -char(2),char(151),char(255),char(215),char(1),char(170),char(2),char(155),char(255),char(215), -char(1),char(170),char(2),char(167),char(255),char(215),char(1),char(170),char(2),char(169), -char(255),char(154),char(1),char(170),char(2),char(170),char(255),char(215),char(1),char(170), -char(2),char(181),char(255),char(113),char(1),char(170),char(2),char(182),char(255),char(215), -char(1),char(170),char(2),char(183),char(255),char(133),char(1),char(170),char(2),char(185), -char(255),char(133),char(1),char(170),char(2),char(189),char(255),char(154),char(1),char(170), -char(2),char(190),char(255),char(215),char(1),char(170),char(2),char(191),char(255),char(154), -char(1),char(170),char(2),char(192),char(255),char(215),char(1),char(170),char(2),char(193), -char(255),char(154),char(1),char(170),char(2),char(194),char(255),char(215),char(1),char(170), -char(2),char(197),char(255),char(154),char(1),char(170),char(2),char(199),char(255),char(154), -char(1),char(170),char(2),char(212),char(255),char(154),char(1),char(170),char(2),char(213), -char(255),char(215),char(1),char(170),char(2),char(225),char(255),char(215),char(1),char(170), -char(2),char(227),char(255),char(215),char(1),char(170),char(2),char(253),char(255),char(154), -char(1),char(170),char(2),char(254),char(255),char(215),char(1),char(170),char(3),char(3), -char(255),char(215),char(1),char(170),char(3),char(13),char(255),char(113),char(1),char(170), -char(3),char(14),char(255),char(215),char(1),char(170),char(3),char(15),char(255),char(113), -char(1),char(170),char(3),char(16),char(255),char(215),char(1),char(170),char(3),char(23), -char(255),char(154),char(1),char(170),char(3),char(24),char(255),char(215),char(1),char(171), -char(0),char(5),char(255),char(215),char(1),char(171),char(0),char(10),char(255),char(215), -char(1),char(171),char(1),char(170),char(255),char(236),char(1),char(171),char(1),char(193), -char(255),char(215),char(1),char(171),char(2),char(7),char(255),char(215),char(1),char(171), -char(2),char(11),char(255),char(215),char(1),char(171),char(2),char(114),char(255),char(236), -char(1),char(171),char(2),char(124),char(255),char(215),char(1),char(171),char(2),char(191), -char(255),char(215),char(1),char(171),char(2),char(193),char(255),char(215),char(1),char(171), -char(2),char(197),char(255),char(215),char(1),char(171),char(2),char(199),char(255),char(215), -char(1),char(171),char(2),char(212),char(255),char(215),char(1),char(171),char(2),char(217), -char(255),char(236),char(1),char(171),char(2),char(219),char(255),char(236),char(1),char(171), -char(2),char(221),char(255),char(236),char(1),char(171),char(2),char(253),char(255),char(215), -char(1),char(172),char(0),char(15),char(255),char(174),char(1),char(172),char(0),char(17), -char(255),char(174),char(1),char(172),char(2),char(8),char(255),char(174),char(1),char(172), -char(2),char(12),char(255),char(174),char(1),char(172),char(2),char(128),char(255),char(236), -char(1),char(172),char(2),char(130),char(255),char(236),char(1),char(172),char(2),char(183), -char(255),char(236),char(1),char(172),char(2),char(185),char(255),char(236),char(1),char(172), -char(3),char(13),char(255),char(215),char(1),char(172),char(3),char(15),char(255),char(215), -char(1),char(173),char(0),char(15),char(255),char(133),char(1),char(173),char(0),char(16), -char(255),char(174),char(1),char(173),char(0),char(17),char(255),char(133),char(1),char(173), -char(1),char(159),char(255),char(215),char(1),char(173),char(1),char(164),char(255),char(154), -char(1),char(173),char(1),char(170),char(255),char(113),char(1),char(173),char(1),char(174), -char(255),char(154),char(1),char(173),char(1),char(181),char(255),char(154),char(1),char(173), -char(1),char(184),char(255),char(215),char(1),char(173),char(1),char(187),char(255),char(215), -char(1),char(173),char(1),char(188),char(0),char(41),char(1),char(173),char(1),char(190), -char(255),char(174),char(1),char(173),char(1),char(204),char(255),char(154),char(1),char(173), -char(1),char(205),char(255),char(154),char(1),char(173),char(1),char(206),char(255),char(133), -char(1),char(173),char(1),char(207),char(255),char(113),char(1),char(173),char(1),char(208), -char(255),char(215),char(1),char(173),char(1),char(209),char(255),char(215),char(1),char(173), -char(1),char(210),char(255),char(154),char(1),char(173),char(1),char(211),char(255),char(154), -char(1),char(173),char(1),char(212),char(255),char(154),char(1),char(173),char(1),char(213), -char(255),char(133),char(1),char(173),char(1),char(214),char(255),char(154),char(1),char(173), -char(1),char(215),char(255),char(154),char(1),char(173),char(1),char(216),char(255),char(113), -char(1),char(173),char(1),char(217),char(255),char(154),char(1),char(173),char(1),char(218), -char(255),char(154),char(1),char(173),char(1),char(219),char(255),char(113),char(1),char(173), -char(1),char(220),char(255),char(174),char(1),char(173),char(1),char(221),char(255),char(174), -char(1),char(173),char(1),char(222),char(255),char(113),char(1),char(173),char(1),char(223), -char(255),char(215),char(1),char(173),char(1),char(224),char(255),char(154),char(1),char(173), -char(1),char(225),char(255),char(154),char(1),char(173),char(1),char(226),char(255),char(154), -char(1),char(173),char(1),char(227),char(255),char(154),char(1),char(173),char(1),char(228), -char(255),char(174),char(1),char(173),char(1),char(229),char(255),char(154),char(1),char(173), -char(1),char(230),char(255),char(154),char(1),char(173),char(1),char(231),char(255),char(215), -char(1),char(173),char(1),char(232),char(255),char(154),char(1),char(173),char(1),char(233), -char(255),char(195),char(1),char(173),char(1),char(234),char(255),char(113),char(1),char(173), -char(1),char(236),char(255),char(154),char(1),char(173),char(1),char(237),char(255),char(113), -char(1),char(173),char(1),char(238),char(255),char(133),char(1),char(173),char(1),char(242), -char(255),char(133),char(1),char(173),char(1),char(243),char(255),char(154),char(1),char(173), -char(1),char(245),char(255),char(154),char(1),char(173),char(1),char(246),char(255),char(174), -char(1),char(173),char(1),char(247),char(255),char(154),char(1),char(173),char(1),char(249), -char(255),char(154),char(1),char(173),char(2),char(2),char(255),char(174),char(1),char(173), -char(2),char(3),char(255),char(174),char(1),char(173),char(2),char(4),char(255),char(174), -char(1),char(173),char(2),char(8),char(255),char(133),char(1),char(173),char(2),char(12), -char(255),char(133),char(1),char(173),char(2),char(106),char(255),char(113),char(1),char(173), -char(2),char(107),char(255),char(154),char(1),char(173),char(2),char(108),char(255),char(215), -char(1),char(173),char(2),char(109),char(255),char(215),char(1),char(173),char(2),char(113), -char(255),char(154),char(1),char(173),char(2),char(114),char(255),char(113),char(1),char(173), -char(2),char(115),char(255),char(133),char(1),char(173),char(2),char(117),char(255),char(154), -char(1),char(173),char(2),char(119),char(255),char(154),char(1),char(173),char(2),char(121), -char(255),char(154),char(1),char(173),char(2),char(125),char(255),char(154),char(1),char(173), -char(2),char(126),char(255),char(215),char(1),char(173),char(2),char(127),char(255),char(113), -char(1),char(173),char(2),char(129),char(255),char(215),char(1),char(173),char(2),char(131), -char(255),char(215),char(1),char(173),char(2),char(132),char(255),char(215),char(1),char(173), -char(2),char(133),char(255),char(113),char(1),char(173),char(2),char(134),char(255),char(215), -char(1),char(173),char(2),char(135),char(255),char(113),char(1),char(173),char(2),char(136), -char(255),char(215),char(1),char(173),char(2),char(137),char(255),char(113),char(1),char(173), -char(2),char(138),char(255),char(215),char(1),char(173),char(2),char(139),char(255),char(215), -char(1),char(173),char(2),char(140),char(255),char(215),char(1),char(173),char(2),char(141), -char(255),char(113),char(1),char(173),char(2),char(150),char(255),char(154),char(1),char(173), -char(2),char(154),char(255),char(154),char(1),char(173),char(2),char(158),char(255),char(154), -char(1),char(173),char(2),char(160),char(255),char(215),char(1),char(173),char(2),char(162), -char(255),char(215),char(1),char(173),char(2),char(164),char(255),char(154),char(1),char(173), -char(2),char(166),char(255),char(154),char(1),char(173),char(2),char(170),char(255),char(174), -char(1),char(173),char(2),char(172),char(255),char(154),char(1),char(173),char(2),char(174), -char(255),char(154),char(1),char(173),char(2),char(176),char(255),char(154),char(1),char(173), -char(2),char(177),char(255),char(215),char(1),char(173),char(2),char(178),char(255),char(113), -char(1),char(173),char(2),char(179),char(255),char(215),char(1),char(173),char(2),char(180), -char(255),char(113),char(1),char(173),char(2),char(181),char(0),char(41),char(1),char(173), -char(2),char(182),char(255),char(174),char(1),char(173),char(2),char(184),char(255),char(174), -char(1),char(173),char(2),char(186),char(255),char(174),char(1),char(173),char(2),char(188), -char(255),char(215),char(1),char(173),char(2),char(190),char(255),char(174),char(1),char(173), -char(2),char(192),char(255),char(154),char(1),char(173),char(2),char(194),char(255),char(154), -char(1),char(173),char(2),char(196),char(255),char(154),char(1),char(173),char(2),char(197), -char(255),char(154),char(1),char(173),char(2),char(198),char(255),char(113),char(1),char(173), -char(2),char(199),char(255),char(154),char(1),char(173),char(2),char(200),char(255),char(113), -char(1),char(173),char(2),char(203),char(255),char(215),char(1),char(173),char(2),char(205), -char(255),char(154),char(1),char(173),char(2),char(206),char(255),char(154),char(1),char(173), -char(2),char(207),char(255),char(133),char(1),char(173),char(2),char(209),char(255),char(154), -char(1),char(173),char(2),char(211),char(255),char(154),char(1),char(173),char(2),char(213), -char(255),char(154),char(1),char(173),char(2),char(215),char(255),char(154),char(1),char(173), -char(2),char(217),char(255),char(113),char(1),char(173),char(2),char(219),char(255),char(113), -char(1),char(173),char(2),char(221),char(255),char(113),char(1),char(173),char(2),char(224), -char(255),char(113),char(1),char(173),char(2),char(230),char(255),char(215),char(1),char(173), -char(2),char(232),char(255),char(215),char(1),char(173),char(2),char(234),char(255),char(195), -char(1),char(173),char(2),char(236),char(255),char(154),char(1),char(173),char(2),char(238), -char(255),char(154),char(1),char(173),char(2),char(239),char(255),char(215),char(1),char(173), -char(2),char(240),char(255),char(113),char(1),char(173),char(2),char(241),char(255),char(215), -char(1),char(173),char(2),char(242),char(255),char(113),char(1),char(173),char(2),char(243), -char(255),char(215),char(1),char(173),char(2),char(244),char(255),char(113),char(1),char(173), -char(2),char(246),char(255),char(215),char(1),char(173),char(2),char(248),char(255),char(174), -char(1),char(173),char(2),char(250),char(255),char(174),char(1),char(173),char(2),char(252), -char(255),char(174),char(1),char(173),char(2),char(254),char(255),char(154),char(1),char(173), -char(3),char(0),char(255),char(154),char(1),char(173),char(3),char(2),char(255),char(154), -char(1),char(173),char(3),char(6),char(255),char(215),char(1),char(173),char(3),char(8), -char(255),char(215),char(1),char(173),char(3),char(9),char(255),char(113),char(1),char(173), -char(3),char(10),char(255),char(113),char(1),char(173),char(3),char(11),char(255),char(113), -char(1),char(173),char(3),char(12),char(255),char(113),char(1),char(173),char(3),char(14), -char(255),char(154),char(1),char(173),char(3),char(16),char(255),char(154),char(1),char(173), -char(3),char(17),char(255),char(154),char(1),char(173),char(3),char(18),char(255),char(133), -char(1),char(173),char(3),char(20),char(255),char(154),char(1),char(173),char(3),char(21), -char(255),char(215),char(1),char(173),char(3),char(22),char(255),char(113),char(1),char(173), -char(3),char(24),char(255),char(174),char(1),char(173),char(3),char(26),char(255),char(113), -char(1),char(173),char(3),char(27),char(255),char(154),char(1),char(173),char(3),char(28), -char(255),char(133),char(1),char(174),char(1),char(163),char(0),char(225),char(1),char(174), -char(2),char(234),char(0),char(41),char(1),char(174),char(3),char(14),char(255),char(215), -char(1),char(174),char(3),char(16),char(255),char(215),char(1),char(176),char(1),char(159), -char(255),char(215),char(1),char(176),char(1),char(184),char(255),char(215),char(1),char(176), -char(1),char(187),char(255),char(215),char(1),char(176),char(1),char(190),char(255),char(215), -char(1),char(176),char(1),char(193),char(255),char(215),char(1),char(176),char(1),char(225), -char(255),char(215),char(1),char(176),char(2),char(108),char(255),char(215),char(1),char(176), -char(2),char(124),char(255),char(215),char(1),char(176),char(2),char(126),char(255),char(215), -char(1),char(176),char(2),char(132),char(255),char(215),char(1),char(176),char(2),char(134), -char(255),char(215),char(1),char(176),char(2),char(136),char(255),char(215),char(1),char(176), -char(2),char(138),char(255),char(215),char(1),char(176),char(2),char(140),char(255),char(215), -char(1),char(176),char(2),char(177),char(255),char(215),char(1),char(176),char(2),char(179), -char(255),char(215),char(1),char(176),char(2),char(191),char(255),char(215),char(1),char(176), -char(2),char(192),char(255),char(215),char(1),char(176),char(2),char(193),char(255),char(215), -char(1),char(176),char(2),char(194),char(255),char(215),char(1),char(176),char(2),char(197), -char(255),char(154),char(1),char(176),char(2),char(199),char(255),char(154),char(1),char(176), -char(2),char(212),char(255),char(215),char(1),char(176),char(2),char(213),char(255),char(215), -char(1),char(176),char(2),char(239),char(255),char(215),char(1),char(176),char(2),char(241), -char(255),char(215),char(1),char(176),char(2),char(243),char(255),char(215),char(1),char(176), -char(2),char(253),char(255),char(215),char(1),char(176),char(2),char(254),char(255),char(215), -char(1),char(176),char(3),char(9),char(255),char(215),char(1),char(176),char(3),char(11), -char(255),char(215),char(1),char(176),char(3),char(14),char(255),char(215),char(1),char(176), -char(3),char(16),char(255),char(215),char(1),char(176),char(3),char(21),char(255),char(215), -char(1),char(176),char(3),char(25),char(255),char(236),char(1),char(177),char(0),char(15), -char(255),char(174),char(1),char(177),char(0),char(17),char(255),char(174),char(1),char(177), -char(2),char(8),char(255),char(174),char(1),char(177),char(2),char(12),char(255),char(174), -char(1),char(177),char(2),char(128),char(255),char(236),char(1),char(177),char(2),char(130), -char(255),char(236),char(1),char(177),char(2),char(183),char(255),char(236),char(1),char(177), -char(2),char(185),char(255),char(236),char(1),char(177),char(3),char(13),char(255),char(215), -char(1),char(177),char(3),char(15),char(255),char(215),char(1),char(180),char(1),char(159), -char(255),char(215),char(1),char(180),char(1),char(184),char(255),char(215),char(1),char(180), -char(1),char(187),char(255),char(215),char(1),char(180),char(1),char(190),char(255),char(215), -char(1),char(180),char(1),char(193),char(255),char(215),char(1),char(180),char(1),char(225), -char(255),char(215),char(1),char(180),char(2),char(108),char(255),char(215),char(1),char(180), -char(2),char(124),char(255),char(215),char(1),char(180),char(2),char(126),char(255),char(215), -char(1),char(180),char(2),char(132),char(255),char(215),char(1),char(180),char(2),char(134), -char(255),char(215),char(1),char(180),char(2),char(136),char(255),char(215),char(1),char(180), -char(2),char(138),char(255),char(215),char(1),char(180),char(2),char(140),char(255),char(215), -char(1),char(180),char(2),char(177),char(255),char(215),char(1),char(180),char(2),char(179), -char(255),char(215),char(1),char(180),char(2),char(191),char(255),char(215),char(1),char(180), -char(2),char(192),char(255),char(215),char(1),char(180),char(2),char(193),char(255),char(215), -char(1),char(180),char(2),char(194),char(255),char(215),char(1),char(180),char(2),char(197), -char(255),char(154),char(1),char(180),char(2),char(199),char(255),char(154),char(1),char(180), -char(2),char(212),char(255),char(215),char(1),char(180),char(2),char(213),char(255),char(215), -char(1),char(180),char(2),char(239),char(255),char(215),char(1),char(180),char(2),char(241), -char(255),char(215),char(1),char(180),char(2),char(243),char(255),char(215),char(1),char(180), -char(2),char(253),char(255),char(215),char(1),char(180),char(2),char(254),char(255),char(215), -char(1),char(180),char(3),char(9),char(255),char(215),char(1),char(180),char(3),char(11), -char(255),char(215),char(1),char(180),char(3),char(14),char(255),char(215),char(1),char(180), -char(3),char(16),char(255),char(215),char(1),char(180),char(3),char(21),char(255),char(215), -char(1),char(180),char(3),char(25),char(255),char(236),char(1),char(184),char(0),char(15), -char(255),char(174),char(1),char(184),char(0),char(17),char(255),char(174),char(1),char(184), -char(1),char(157),char(255),char(236),char(1),char(184),char(1),char(164),char(255),char(215), -char(1),char(184),char(1),char(166),char(255),char(236),char(1),char(184),char(1),char(168), -char(255),char(215),char(1),char(184),char(1),char(170),char(255),char(215),char(1),char(184), -char(1),char(174),char(255),char(215),char(1),char(184),char(1),char(176),char(255),char(215), -char(1),char(184),char(1),char(177),char(255),char(236),char(1),char(184),char(1),char(181), -char(255),char(215),char(1),char(184),char(1),char(188),char(255),char(195),char(1),char(184), -char(1),char(189),char(255),char(215),char(1),char(184),char(1),char(191),char(255),char(215), -char(1),char(184),char(1),char(193),char(255),char(215),char(1),char(184),char(1),char(196), -char(255),char(236),char(1),char(184),char(1),char(199),char(255),char(236),char(1),char(184), -char(1),char(206),char(255),char(236),char(1),char(184),char(1),char(213),char(255),char(236), -char(1),char(184),char(1),char(242),char(255),char(236),char(1),char(184),char(2),char(8), -char(255),char(174),char(1),char(184),char(2),char(12),char(255),char(174),char(1),char(184), -char(2),char(114),char(255),char(215),char(1),char(184),char(2),char(115),char(255),char(236), -char(1),char(184),char(2),char(122),char(255),char(236),char(1),char(184),char(2),char(124), -char(255),char(215),char(1),char(184),char(2),char(128),char(255),char(236),char(1),char(184), -char(2),char(130),char(255),char(236),char(1),char(184),char(2),char(159),char(255),char(215), -char(1),char(184),char(2),char(161),char(255),char(236),char(1),char(184),char(2),char(169), -char(255),char(236),char(1),char(184),char(2),char(181),char(255),char(195),char(1),char(184), -char(2),char(183),char(255),char(236),char(1),char(184),char(2),char(185),char(255),char(236), -char(1),char(184),char(2),char(187),char(255),char(215),char(1),char(184),char(2),char(189), -char(255),char(236),char(1),char(184),char(2),char(191),char(255),char(215),char(1),char(184), -char(2),char(193),char(255),char(215),char(1),char(184),char(2),char(202),char(255),char(215), -char(1),char(184),char(2),char(206),char(255),char(215),char(1),char(184),char(2),char(207), -char(255),char(236),char(1),char(184),char(2),char(212),char(255),char(215),char(1),char(184), -char(2),char(217),char(255),char(215),char(1),char(184),char(2),char(219),char(255),char(215), -char(1),char(184),char(2),char(221),char(255),char(215),char(1),char(184),char(2),char(229), -char(255),char(215),char(1),char(184),char(2),char(231),char(255),char(236),char(1),char(184), -char(2),char(245),char(255),char(236),char(1),char(184),char(2),char(247),char(255),char(215), -char(1),char(184),char(2),char(249),char(255),char(215),char(1),char(184),char(2),char(251), -char(255),char(215),char(1),char(184),char(2),char(253),char(255),char(215),char(1),char(184), -char(3),char(5),char(255),char(215),char(1),char(184),char(3),char(7),char(255),char(215), -char(1),char(184),char(3),char(13),char(255),char(215),char(1),char(184),char(3),char(15), -char(255),char(215),char(1),char(184),char(3),char(17),char(255),char(215),char(1),char(184), -char(3),char(18),char(255),char(236),char(1),char(184),char(3),char(23),char(255),char(236), -char(1),char(184),char(3),char(27),char(255),char(215),char(1),char(184),char(3),char(28), -char(255),char(236),char(1),char(186),char(0),char(15),char(254),char(246),char(1),char(186), -char(0),char(17),char(254),char(246),char(1),char(186),char(1),char(164),char(255),char(133), -char(1),char(186),char(1),char(170),char(255),char(154),char(1),char(186),char(1),char(174), -char(255),char(133),char(1),char(186),char(1),char(176),char(255),char(215),char(1),char(186), -char(1),char(181),char(255),char(133),char(1),char(186),char(1),char(191),char(255),char(215), -char(1),char(186),char(1),char(206),char(255),char(154),char(1),char(186),char(1),char(213), -char(255),char(154),char(1),char(186),char(1),char(242),char(255),char(154),char(1),char(186), -char(2),char(8),char(254),char(246),char(1),char(186),char(2),char(12),char(254),char(246), -char(1),char(186),char(2),char(114),char(255),char(154),char(1),char(186),char(2),char(115), -char(255),char(154),char(1),char(186),char(2),char(118),char(255),char(236),char(1),char(186), -char(2),char(159),char(255),char(215),char(1),char(186),char(2),char(187),char(255),char(215), -char(1),char(186),char(2),char(202),char(255),char(215),char(1),char(186),char(2),char(206), -char(255),char(133),char(1),char(186),char(2),char(207),char(255),char(154),char(1),char(186), -char(2),char(217),char(255),char(154),char(1),char(186),char(2),char(219),char(255),char(154), -char(1),char(186),char(2),char(221),char(255),char(154),char(1),char(186),char(2),char(229), -char(255),char(215),char(1),char(186),char(3),char(5),char(255),char(215),char(1),char(186), -char(3),char(7),char(255),char(215),char(1),char(186),char(3),char(9),char(255),char(174), -char(1),char(186),char(3),char(11),char(255),char(174),char(1),char(186),char(3),char(17), -char(255),char(133),char(1),char(186),char(3),char(18),char(255),char(154),char(1),char(186), -char(3),char(27),char(255),char(133),char(1),char(186),char(3),char(28),char(255),char(154), -char(1),char(187),char(1),char(159),char(255),char(215),char(1),char(187),char(1),char(184), -char(255),char(215),char(1),char(187),char(1),char(187),char(255),char(215),char(1),char(187), -char(1),char(190),char(255),char(215),char(1),char(187),char(1),char(225),char(255),char(215), -char(1),char(187),char(2),char(108),char(255),char(215),char(1),char(187),char(2),char(126), -char(255),char(215),char(1),char(187),char(2),char(132),char(255),char(215),char(1),char(187), -char(2),char(134),char(255),char(215),char(1),char(187),char(2),char(136),char(255),char(215), -char(1),char(187),char(2),char(138),char(255),char(215),char(1),char(187),char(2),char(140), -char(255),char(215),char(1),char(187),char(2),char(177),char(255),char(215),char(1),char(187), -char(2),char(179),char(255),char(215),char(1),char(187),char(2),char(192),char(255),char(215), -char(1),char(187),char(2),char(194),char(255),char(215),char(1),char(187),char(2),char(197), -char(255),char(215),char(1),char(187),char(2),char(199),char(255),char(215),char(1),char(187), -char(2),char(213),char(255),char(215),char(1),char(187),char(2),char(239),char(255),char(215), -char(1),char(187),char(2),char(241),char(255),char(215),char(1),char(187),char(2),char(243), -char(255),char(215),char(1),char(187),char(2),char(254),char(255),char(215),char(1),char(187), -char(3),char(9),char(255),char(215),char(1),char(187),char(3),char(11),char(255),char(215), -char(1),char(187),char(3),char(14),char(255),char(215),char(1),char(187),char(3),char(16), -char(255),char(215),char(1),char(187),char(3),char(21),char(255),char(215),char(1),char(188), -char(0),char(15),char(255),char(133),char(1),char(188),char(0),char(16),char(255),char(174), -char(1),char(188),char(0),char(17),char(255),char(133),char(1),char(188),char(1),char(159), -char(255),char(215),char(1),char(188),char(1),char(164),char(255),char(154),char(1),char(188), -char(1),char(170),char(255),char(113),char(1),char(188),char(1),char(174),char(255),char(154), -char(1),char(188),char(1),char(181),char(255),char(154),char(1),char(188),char(1),char(184), -char(255),char(215),char(1),char(188),char(1),char(187),char(255),char(215),char(1),char(188), -char(1),char(188),char(0),char(41),char(1),char(188),char(1),char(190),char(255),char(174), -char(1),char(188),char(1),char(204),char(255),char(154),char(1),char(188),char(1),char(205), -char(255),char(154),char(1),char(188),char(1),char(206),char(255),char(133),char(1),char(188), -char(1),char(207),char(255),char(113),char(1),char(188),char(1),char(208),char(255),char(215), -char(1),char(188),char(1),char(209),char(255),char(215),char(1),char(188),char(1),char(210), -char(255),char(154),char(1),char(188),char(1),char(211),char(255),char(154),char(1),char(188), -char(1),char(212),char(255),char(154),char(1),char(188),char(1),char(213),char(255),char(133), -char(1),char(188),char(1),char(214),char(255),char(154),char(1),char(188),char(1),char(215), -char(255),char(154),char(1),char(188),char(1),char(216),char(255),char(113),char(1),char(188), -char(1),char(217),char(255),char(154),char(1),char(188),char(1),char(218),char(255),char(154), -char(1),char(188),char(1),char(219),char(255),char(113),char(1),char(188),char(1),char(220), -char(255),char(174),char(1),char(188),char(1),char(221),char(255),char(174),char(1),char(188), -char(1),char(222),char(255),char(113),char(1),char(188),char(1),char(223),char(255),char(215), -char(1),char(188),char(1),char(224),char(255),char(154),char(1),char(188),char(1),char(225), -char(255),char(154),char(1),char(188),char(1),char(226),char(255),char(154),char(1),char(188), -char(1),char(227),char(255),char(154),char(1),char(188),char(1),char(228),char(255),char(174), -char(1),char(188),char(1),char(229),char(255),char(154),char(1),char(188),char(1),char(230), -char(255),char(154),char(1),char(188),char(1),char(231),char(255),char(215),char(1),char(188), -char(1),char(232),char(255),char(154),char(1),char(188),char(1),char(233),char(255),char(195), -char(1),char(188),char(1),char(234),char(255),char(113),char(1),char(188),char(1),char(236), -char(255),char(154),char(1),char(188),char(1),char(237),char(255),char(113),char(1),char(188), -char(1),char(238),char(255),char(133),char(1),char(188),char(1),char(242),char(255),char(133), -char(1),char(188),char(1),char(243),char(255),char(154),char(1),char(188),char(1),char(245), -char(255),char(154),char(1),char(188),char(1),char(246),char(255),char(174),char(1),char(188), -char(1),char(247),char(255),char(154),char(1),char(188),char(1),char(249),char(255),char(154), -char(1),char(188),char(2),char(2),char(255),char(174),char(1),char(188),char(2),char(3), -char(255),char(174),char(1),char(188),char(2),char(4),char(255),char(174),char(1),char(188), -char(2),char(8),char(255),char(133),char(1),char(188),char(2),char(12),char(255),char(133), -char(1),char(188),char(2),char(106),char(255),char(113),char(1),char(188),char(2),char(107), -char(255),char(154),char(1),char(188),char(2),char(108),char(255),char(215),char(1),char(188), -char(2),char(109),char(255),char(215),char(1),char(188),char(2),char(113),char(255),char(154), -char(1),char(188),char(2),char(114),char(255),char(113),char(1),char(188),char(2),char(115), -char(255),char(133),char(1),char(188),char(2),char(117),char(255),char(154),char(1),char(188), -char(2),char(119),char(255),char(154),char(1),char(188),char(2),char(121),char(255),char(154), -char(1),char(188),char(2),char(125),char(255),char(154),char(1),char(188),char(2),char(126), -char(255),char(215),char(1),char(188),char(2),char(127),char(255),char(113),char(1),char(188), -char(2),char(129),char(255),char(215),char(1),char(188),char(2),char(131),char(255),char(215), -char(1),char(188),char(2),char(132),char(255),char(215),char(1),char(188),char(2),char(133), -char(255),char(113),char(1),char(188),char(2),char(134),char(255),char(215),char(1),char(188), -char(2),char(135),char(255),char(113),char(1),char(188),char(2),char(136),char(255),char(215), -char(1),char(188),char(2),char(137),char(255),char(113),char(1),char(188),char(2),char(138), -char(255),char(215),char(1),char(188),char(2),char(139),char(255),char(215),char(1),char(188), -char(2),char(140),char(255),char(215),char(1),char(188),char(2),char(141),char(255),char(113), -char(1),char(188),char(2),char(150),char(255),char(154),char(1),char(188),char(2),char(154), -char(255),char(154),char(1),char(188),char(2),char(158),char(255),char(154),char(1),char(188), -char(2),char(160),char(255),char(215),char(1),char(188),char(2),char(162),char(255),char(215), -char(1),char(188),char(2),char(164),char(255),char(154),char(1),char(188),char(2),char(166), -char(255),char(154),char(1),char(188),char(2),char(170),char(255),char(174),char(1),char(188), -char(2),char(172),char(255),char(154),char(1),char(188),char(2),char(174),char(255),char(154), -char(1),char(188),char(2),char(176),char(255),char(154),char(1),char(188),char(2),char(177), -char(255),char(215),char(1),char(188),char(2),char(178),char(255),char(113),char(1),char(188), -char(2),char(179),char(255),char(215),char(1),char(188),char(2),char(180),char(255),char(113), -char(1),char(188),char(2),char(181),char(0),char(41),char(1),char(188),char(2),char(182), -char(255),char(174),char(1),char(188),char(2),char(184),char(255),char(174),char(1),char(188), -char(2),char(186),char(255),char(174),char(1),char(188),char(2),char(188),char(255),char(215), -char(1),char(188),char(2),char(190),char(255),char(174),char(1),char(188),char(2),char(192), -char(255),char(154),char(1),char(188),char(2),char(194),char(255),char(154),char(1),char(188), -char(2),char(196),char(255),char(154),char(1),char(188),char(2),char(197),char(255),char(154), -char(1),char(188),char(2),char(198),char(255),char(113),char(1),char(188),char(2),char(199), -char(255),char(154),char(1),char(188),char(2),char(200),char(255),char(113),char(1),char(188), -char(2),char(203),char(255),char(215),char(1),char(188),char(2),char(205),char(255),char(154), -char(1),char(188),char(2),char(206),char(255),char(154),char(1),char(188),char(2),char(207), -char(255),char(133),char(1),char(188),char(2),char(209),char(255),char(154),char(1),char(188), -char(2),char(211),char(255),char(154),char(1),char(188),char(2),char(213),char(255),char(154), -char(1),char(188),char(2),char(215),char(255),char(154),char(1),char(188),char(2),char(217), -char(255),char(113),char(1),char(188),char(2),char(219),char(255),char(113),char(1),char(188), -char(2),char(221),char(255),char(113),char(1),char(188),char(2),char(224),char(255),char(113), -char(1),char(188),char(2),char(230),char(255),char(215),char(1),char(188),char(2),char(232), -char(255),char(215),char(1),char(188),char(2),char(234),char(255),char(195),char(1),char(188), -char(2),char(236),char(255),char(154),char(1),char(188),char(2),char(238),char(255),char(154), -char(1),char(188),char(2),char(239),char(255),char(215),char(1),char(188),char(2),char(240), -char(255),char(113),char(1),char(188),char(2),char(241),char(255),char(215),char(1),char(188), -char(2),char(242),char(255),char(113),char(1),char(188),char(2),char(243),char(255),char(215), -char(1),char(188),char(2),char(244),char(255),char(113),char(1),char(188),char(2),char(246), -char(255),char(215),char(1),char(188),char(2),char(248),char(255),char(174),char(1),char(188), -char(2),char(250),char(255),char(174),char(1),char(188),char(2),char(252),char(255),char(174), -char(1),char(188),char(2),char(254),char(255),char(154),char(1),char(188),char(3),char(0), -char(255),char(154),char(1),char(188),char(3),char(2),char(255),char(154),char(1),char(188), -char(3),char(6),char(255),char(215),char(1),char(188),char(3),char(8),char(255),char(215), -char(1),char(188),char(3),char(9),char(255),char(113),char(1),char(188),char(3),char(10), -char(255),char(113),char(1),char(188),char(3),char(11),char(255),char(113),char(1),char(188), -char(3),char(12),char(255),char(113),char(1),char(188),char(3),char(14),char(255),char(154), -char(1),char(188),char(3),char(16),char(255),char(154),char(1),char(188),char(3),char(17), -char(255),char(154),char(1),char(188),char(3),char(18),char(255),char(133),char(1),char(188), -char(3),char(20),char(255),char(154),char(1),char(188),char(3),char(21),char(255),char(215), -char(1),char(188),char(3),char(22),char(255),char(113),char(1),char(188),char(3),char(24), -char(255),char(174),char(1),char(188),char(3),char(26),char(255),char(113),char(1),char(188), -char(3),char(27),char(255),char(154),char(1),char(188),char(3),char(28),char(255),char(133), -char(1),char(189),char(0),char(15),char(255),char(133),char(1),char(189),char(0),char(17), -char(255),char(133),char(1),char(189),char(1),char(159),char(255),char(236),char(1),char(189), -char(1),char(164),char(255),char(154),char(1),char(189),char(1),char(170),char(255),char(113), -char(1),char(189),char(1),char(174),char(255),char(154),char(1),char(189),char(1),char(181), -char(255),char(154),char(1),char(189),char(1),char(184),char(255),char(236),char(1),char(189), -char(1),char(187),char(255),char(236),char(1),char(189),char(1),char(190),char(255),char(195), -char(1),char(189),char(1),char(201),char(255),char(236),char(1),char(189),char(1),char(206), -char(255),char(174),char(1),char(189),char(1),char(207),char(255),char(215),char(1),char(189), -char(1),char(213),char(255),char(174),char(1),char(189),char(1),char(216),char(255),char(215), -char(1),char(189),char(1),char(219),char(255),char(215),char(1),char(189),char(1),char(222), -char(255),char(215),char(1),char(189),char(1),char(225),char(255),char(215),char(1),char(189), -char(1),char(234),char(255),char(215),char(1),char(189),char(1),char(235),char(0),char(102), -char(1),char(189),char(1),char(237),char(255),char(215),char(1),char(189),char(1),char(238), -char(255),char(236),char(1),char(189),char(1),char(242),char(255),char(174),char(1),char(189), -char(1),char(244),char(0),char(102),char(1),char(189),char(2),char(8),char(255),char(133), -char(1),char(189),char(2),char(12),char(255),char(133),char(1),char(189),char(2),char(106), -char(255),char(215),char(1),char(189),char(2),char(108),char(255),char(236),char(1),char(189), -char(2),char(114),char(255),char(113),char(1),char(189),char(2),char(115),char(255),char(174), -char(1),char(189),char(2),char(126),char(255),char(236),char(1),char(189),char(2),char(127), -char(255),char(215),char(1),char(189),char(2),char(132),char(255),char(236),char(1),char(189), -char(2),char(133),char(255),char(215),char(1),char(189),char(2),char(134),char(255),char(236), -char(1),char(189),char(2),char(135),char(255),char(215),char(1),char(189),char(2),char(136), -char(255),char(236),char(1),char(189),char(2),char(137),char(255),char(215),char(1),char(189), -char(2),char(138),char(255),char(236),char(1),char(189),char(2),char(140),char(255),char(236), -char(1),char(189),char(2),char(141),char(255),char(215),char(1),char(189),char(2),char(152), -char(0),char(102),char(1),char(189),char(2),char(168),char(0),char(102),char(1),char(189), -char(2),char(177),char(255),char(236),char(1),char(189),char(2),char(178),char(255),char(215), -char(1),char(189),char(2),char(179),char(255),char(236),char(1),char(189),char(2),char(180), -char(255),char(215),char(1),char(189),char(2),char(192),char(255),char(215),char(1),char(189), -char(2),char(194),char(255),char(215),char(1),char(189),char(2),char(197),char(255),char(215), -char(1),char(189),char(2),char(198),char(255),char(195),char(1),char(189),char(2),char(199), -char(255),char(215),char(1),char(189),char(2),char(200),char(255),char(195),char(1),char(189), -char(2),char(206),char(255),char(154),char(1),char(189),char(2),char(207),char(255),char(174), -char(1),char(189),char(2),char(213),char(255),char(215),char(1),char(189),char(2),char(217), -char(255),char(113),char(1),char(189),char(2),char(219),char(255),char(113),char(1),char(189), -char(2),char(221),char(255),char(113),char(1),char(189),char(2),char(224),char(255),char(215), -char(1),char(189),char(2),char(239),char(255),char(236),char(1),char(189),char(2),char(240), -char(255),char(215),char(1),char(189),char(2),char(241),char(255),char(236),char(1),char(189), -char(2),char(242),char(255),char(215),char(1),char(189),char(2),char(243),char(255),char(236), -char(1),char(189),char(2),char(244),char(255),char(215),char(1),char(189),char(2),char(254), -char(255),char(215),char(1),char(189),char(3),char(9),char(255),char(113),char(1),char(189), -char(3),char(10),char(255),char(215),char(1),char(189),char(3),char(11),char(255),char(113), -char(1),char(189),char(3),char(12),char(255),char(215),char(1),char(189),char(3),char(17), -char(255),char(154),char(1),char(189),char(3),char(18),char(255),char(174),char(1),char(189), -char(3),char(21),char(255),char(236),char(1),char(189),char(3),char(22),char(255),char(215), -char(1),char(189),char(3),char(26),char(255),char(215),char(1),char(189),char(3),char(27), -char(255),char(154),char(1),char(189),char(3),char(28),char(255),char(174),char(1),char(190), -char(0),char(15),char(255),char(174),char(1),char(190),char(0),char(17),char(255),char(174), -char(1),char(190),char(1),char(157),char(255),char(215),char(1),char(190),char(1),char(164), -char(255),char(215),char(1),char(190),char(1),char(166),char(255),char(215),char(1),char(190), -char(1),char(168),char(255),char(195),char(1),char(190),char(1),char(170),char(255),char(215), -char(1),char(190),char(1),char(174),char(255),char(215),char(1),char(190),char(1),char(176), -char(255),char(215),char(1),char(190),char(1),char(177),char(255),char(215),char(1),char(190), -char(1),char(181),char(255),char(215),char(1),char(190),char(1),char(188),char(255),char(195), -char(1),char(190),char(1),char(189),char(255),char(195),char(1),char(190),char(1),char(191), -char(255),char(215),char(1),char(190),char(1),char(196),char(255),char(215),char(1),char(190), -char(1),char(199),char(255),char(215),char(1),char(190),char(1),char(206),char(255),char(236), -char(1),char(190),char(1),char(213),char(255),char(236),char(1),char(190),char(1),char(242), -char(255),char(236),char(1),char(190),char(2),char(8),char(255),char(174),char(1),char(190), -char(2),char(12),char(255),char(174),char(1),char(190),char(2),char(114),char(255),char(215), -char(1),char(190),char(2),char(115),char(255),char(236),char(1),char(190),char(2),char(122), -char(255),char(215),char(1),char(190),char(2),char(128),char(255),char(236),char(1),char(190), -char(2),char(130),char(255),char(236),char(1),char(190),char(2),char(159),char(255),char(215), -char(1),char(190),char(2),char(161),char(255),char(215),char(1),char(190),char(2),char(169), -char(255),char(215),char(1),char(190),char(2),char(181),char(255),char(195),char(1),char(190), -char(2),char(183),char(255),char(195),char(1),char(190),char(2),char(185),char(255),char(195), -char(1),char(190),char(2),char(187),char(255),char(215),char(1),char(190),char(2),char(189), -char(255),char(215),char(1),char(190),char(2),char(202),char(255),char(215),char(1),char(190), -char(2),char(206),char(255),char(215),char(1),char(190),char(2),char(207),char(255),char(236), -char(1),char(190),char(2),char(217),char(255),char(215),char(1),char(190),char(2),char(219), -char(255),char(215),char(1),char(190),char(2),char(221),char(255),char(215),char(1),char(190), -char(2),char(229),char(255),char(215),char(1),char(190),char(2),char(231),char(255),char(215), -char(1),char(190),char(2),char(245),char(255),char(215),char(1),char(190),char(2),char(247), -char(255),char(195),char(1),char(190),char(2),char(249),char(255),char(195),char(1),char(190), -char(2),char(251),char(255),char(195),char(1),char(190),char(3),char(5),char(255),char(215), -char(1),char(190),char(3),char(7),char(255),char(215),char(1),char(190),char(3),char(13), -char(255),char(215),char(1),char(190),char(3),char(15),char(255),char(215),char(1),char(190), -char(3),char(17),char(255),char(215),char(1),char(190),char(3),char(18),char(255),char(236), -char(1),char(190),char(3),char(23),char(255),char(215),char(1),char(190),char(3),char(27), -char(255),char(215),char(1),char(190),char(3),char(28),char(255),char(236),char(1),char(191), -char(1),char(159),char(255),char(215),char(1),char(191),char(1),char(184),char(255),char(215), -char(1),char(191),char(1),char(187),char(255),char(215),char(1),char(191),char(1),char(190), -char(255),char(215),char(1),char(191),char(1),char(193),char(255),char(215),char(1),char(191), -char(1),char(225),char(255),char(215),char(1),char(191),char(2),char(108),char(255),char(215), -char(1),char(191),char(2),char(124),char(255),char(215),char(1),char(191),char(2),char(126), -char(255),char(215),char(1),char(191),char(2),char(132),char(255),char(215),char(1),char(191), -char(2),char(134),char(255),char(215),char(1),char(191),char(2),char(136),char(255),char(215), -char(1),char(191),char(2),char(138),char(255),char(215),char(1),char(191),char(2),char(140), -char(255),char(215),char(1),char(191),char(2),char(177),char(255),char(215),char(1),char(191), -char(2),char(179),char(255),char(215),char(1),char(191),char(2),char(191),char(255),char(215), -char(1),char(191),char(2),char(192),char(255),char(215),char(1),char(191),char(2),char(193), -char(255),char(215),char(1),char(191),char(2),char(194),char(255),char(215),char(1),char(191), -char(2),char(197),char(255),char(154),char(1),char(191),char(2),char(199),char(255),char(154), -char(1),char(191),char(2),char(212),char(255),char(215),char(1),char(191),char(2),char(213), -char(255),char(215),char(1),char(191),char(2),char(239),char(255),char(215),char(1),char(191), -char(2),char(241),char(255),char(215),char(1),char(191),char(2),char(243),char(255),char(215), -char(1),char(191),char(2),char(253),char(255),char(215),char(1),char(191),char(2),char(254), -char(255),char(215),char(1),char(191),char(3),char(9),char(255),char(215),char(1),char(191), -char(3),char(11),char(255),char(215),char(1),char(191),char(3),char(14),char(255),char(215), -char(1),char(191),char(3),char(16),char(255),char(215),char(1),char(191),char(3),char(21), -char(255),char(215),char(1),char(191),char(3),char(25),char(255),char(236),char(1),char(192), -char(1),char(163),char(0),char(225),char(1),char(192),char(2),char(234),char(0),char(41), -char(1),char(192),char(3),char(14),char(255),char(215),char(1),char(192),char(3),char(16), -char(255),char(215),char(1),char(195),char(1),char(163),char(0),char(225),char(1),char(195), -char(2),char(234),char(0),char(41),char(1),char(195),char(3),char(14),char(255),char(215), -char(1),char(195),char(3),char(16),char(255),char(215),char(1),char(196),char(0),char(5), -char(255),char(174),char(1),char(196),char(0),char(10),char(255),char(174),char(1),char(196), -char(1),char(157),char(255),char(133),char(1),char(196),char(1),char(166),char(255),char(133), -char(1),char(196),char(1),char(168),char(255),char(215),char(1),char(196),char(1),char(188), -char(255),char(154),char(1),char(196),char(1),char(189),char(255),char(215),char(1),char(196), -char(1),char(193),char(255),char(154),char(1),char(196),char(1),char(196),char(255),char(133), -char(1),char(196),char(1),char(220),char(255),char(215),char(1),char(196),char(1),char(221), -char(255),char(215),char(1),char(196),char(1),char(225),char(255),char(215),char(1),char(196), -char(1),char(228),char(255),char(215),char(1),char(196),char(1),char(246),char(255),char(215), -char(1),char(196),char(2),char(7),char(255),char(174),char(1),char(196),char(2),char(11), -char(255),char(174),char(1),char(196),char(2),char(110),char(255),char(174),char(1),char(196), -char(2),char(124),char(255),char(154),char(1),char(196),char(2),char(128),char(255),char(174), -char(1),char(196),char(2),char(130),char(255),char(174),char(1),char(196),char(2),char(151), -char(255),char(174),char(1),char(196),char(2),char(155),char(255),char(174),char(1),char(196), -char(2),char(167),char(255),char(174),char(1),char(196),char(2),char(169),char(255),char(133), -char(1),char(196),char(2),char(170),char(255),char(215),char(1),char(196),char(2),char(181), -char(255),char(154),char(1),char(196),char(2),char(182),char(255),char(215),char(1),char(196), -char(2),char(183),char(255),char(154),char(1),char(196),char(2),char(184),char(255),char(215), -char(1),char(196),char(2),char(185),char(255),char(154),char(1),char(196),char(2),char(186), -char(255),char(215),char(1),char(196),char(2),char(189),char(255),char(133),char(1),char(196), -char(2),char(190),char(255),char(215),char(1),char(196),char(2),char(191),char(255),char(154), -char(1),char(196),char(2),char(192),char(255),char(215),char(1),char(196),char(2),char(193), -char(255),char(154),char(1),char(196),char(2),char(194),char(255),char(215),char(1),char(196), -char(2),char(212),char(255),char(154),char(1),char(196),char(2),char(213),char(255),char(215), -char(1),char(196),char(2),char(247),char(255),char(215),char(1),char(196),char(2),char(248), -char(255),char(215),char(1),char(196),char(2),char(249),char(255),char(215),char(1),char(196), -char(2),char(250),char(255),char(215),char(1),char(196),char(2),char(251),char(255),char(215), -char(1),char(196),char(2),char(252),char(255),char(215),char(1),char(196),char(2),char(253), -char(255),char(154),char(1),char(196),char(2),char(254),char(255),char(215),char(1),char(196), -char(3),char(3),char(255),char(174),char(1),char(196),char(3),char(13),char(255),char(154), -char(1),char(196),char(3),char(14),char(255),char(195),char(1),char(196),char(3),char(15), -char(255),char(154),char(1),char(196),char(3),char(16),char(255),char(195),char(1),char(196), -char(3),char(23),char(255),char(133),char(1),char(196),char(3),char(24),char(255),char(215), -char(1),char(198),char(0),char(5),char(255),char(174),char(1),char(198),char(0),char(10), -char(255),char(174),char(1),char(198),char(1),char(157),char(255),char(133),char(1),char(198), -char(1),char(166),char(255),char(133),char(1),char(198),char(1),char(168),char(255),char(215), -char(1),char(198),char(1),char(188),char(255),char(154),char(1),char(198),char(1),char(189), -char(255),char(215),char(1),char(198),char(1),char(193),char(255),char(154),char(1),char(198), -char(1),char(196),char(255),char(133),char(1),char(198),char(1),char(220),char(255),char(215), -char(1),char(198),char(1),char(221),char(255),char(215),char(1),char(198),char(1),char(225), -char(255),char(215),char(1),char(198),char(1),char(228),char(255),char(215),char(1),char(198), -char(1),char(246),char(255),char(215),char(1),char(198),char(2),char(7),char(255),char(174), -char(1),char(198),char(2),char(11),char(255),char(174),char(1),char(198),char(2),char(110), -char(255),char(174),char(1),char(198),char(2),char(124),char(255),char(154),char(1),char(198), -char(2),char(128),char(255),char(174),char(1),char(198),char(2),char(130),char(255),char(174), -char(1),char(198),char(2),char(151),char(255),char(174),char(1),char(198),char(2),char(155), -char(255),char(174),char(1),char(198),char(2),char(167),char(255),char(174),char(1),char(198), -char(2),char(169),char(255),char(133),char(1),char(198),char(2),char(170),char(255),char(215), -char(1),char(198),char(2),char(181),char(255),char(154),char(1),char(198),char(2),char(182), -char(255),char(215),char(1),char(198),char(2),char(183),char(255),char(154),char(1),char(198), -char(2),char(184),char(255),char(215),char(1),char(198),char(2),char(185),char(255),char(154), -char(1),char(198),char(2),char(186),char(255),char(215),char(1),char(198),char(2),char(189), -char(255),char(133),char(1),char(198),char(2),char(190),char(255),char(215),char(1),char(198), -char(2),char(191),char(255),char(154),char(1),char(198),char(2),char(192),char(255),char(215), -char(1),char(198),char(2),char(193),char(255),char(154),char(1),char(198),char(2),char(194), -char(255),char(215),char(1),char(198),char(2),char(212),char(255),char(154),char(1),char(198), -char(2),char(213),char(255),char(215),char(1),char(198),char(2),char(247),char(255),char(215), -char(1),char(198),char(2),char(248),char(255),char(215),char(1),char(198),char(2),char(249), -char(255),char(215),char(1),char(198),char(2),char(250),char(255),char(215),char(1),char(198), -char(2),char(251),char(255),char(215),char(1),char(198),char(2),char(252),char(255),char(215), -char(1),char(198),char(2),char(253),char(255),char(154),char(1),char(198),char(2),char(254), -char(255),char(215),char(1),char(198),char(3),char(3),char(255),char(174),char(1),char(198), -char(3),char(13),char(255),char(154),char(1),char(198),char(3),char(14),char(255),char(195), -char(1),char(198),char(3),char(15),char(255),char(154),char(1),char(198),char(3),char(16), -char(255),char(195),char(1),char(198),char(3),char(23),char(255),char(133),char(1),char(198), -char(3),char(24),char(255),char(215),char(1),char(199),char(0),char(15),char(255),char(174), -char(1),char(199),char(0),char(17),char(255),char(174),char(1),char(199),char(1),char(157), -char(255),char(236),char(1),char(199),char(1),char(164),char(255),char(215),char(1),char(199), -char(1),char(166),char(255),char(236),char(1),char(199),char(1),char(168),char(255),char(215), -char(1),char(199),char(1),char(170),char(255),char(215),char(1),char(199),char(1),char(174), -char(255),char(215),char(1),char(199),char(1),char(176),char(255),char(215),char(1),char(199), -char(1),char(177),char(255),char(236),char(1),char(199),char(1),char(181),char(255),char(215), -char(1),char(199),char(1),char(188),char(255),char(195),char(1),char(199),char(1),char(189), -char(255),char(215),char(1),char(199),char(1),char(191),char(255),char(215),char(1),char(199), -char(1),char(193),char(255),char(215),char(1),char(199),char(1),char(196),char(255),char(236), -char(1),char(199),char(1),char(199),char(255),char(236),char(1),char(199),char(1),char(206), -char(255),char(236),char(1),char(199),char(1),char(213),char(255),char(236),char(1),char(199), -char(1),char(242),char(255),char(236),char(1),char(199),char(2),char(8),char(255),char(174), -char(1),char(199),char(2),char(12),char(255),char(174),char(1),char(199),char(2),char(114), -char(255),char(215),char(1),char(199),char(2),char(115),char(255),char(236),char(1),char(199), -char(2),char(122),char(255),char(236),char(1),char(199),char(2),char(124),char(255),char(215), -char(1),char(199),char(2),char(128),char(255),char(236),char(1),char(199),char(2),char(130), -char(255),char(236),char(1),char(199),char(2),char(159),char(255),char(215),char(1),char(199), -char(2),char(161),char(255),char(236),char(1),char(199),char(2),char(169),char(255),char(236), -char(1),char(199),char(2),char(181),char(255),char(195),char(1),char(199),char(2),char(183), -char(255),char(236),char(1),char(199),char(2),char(185),char(255),char(236),char(1),char(199), -char(2),char(187),char(255),char(215),char(1),char(199),char(2),char(189),char(255),char(236), -char(1),char(199),char(2),char(191),char(255),char(215),char(1),char(199),char(2),char(193), -char(255),char(215),char(1),char(199),char(2),char(202),char(255),char(215),char(1),char(199), -char(2),char(206),char(255),char(215),char(1),char(199),char(2),char(207),char(255),char(236), -char(1),char(199),char(2),char(212),char(255),char(215),char(1),char(199),char(2),char(217), -char(255),char(215),char(1),char(199),char(2),char(219),char(255),char(215),char(1),char(199), -char(2),char(221),char(255),char(215),char(1),char(199),char(2),char(229),char(255),char(215), -char(1),char(199),char(2),char(231),char(255),char(236),char(1),char(199),char(2),char(245), -char(255),char(236),char(1),char(199),char(2),char(247),char(255),char(215),char(1),char(199), -char(2),char(249),char(255),char(215),char(1),char(199),char(2),char(251),char(255),char(215), -char(1),char(199),char(2),char(253),char(255),char(215),char(1),char(199),char(3),char(5), -char(255),char(215),char(1),char(199),char(3),char(7),char(255),char(215),char(1),char(199), -char(3),char(13),char(255),char(215),char(1),char(199),char(3),char(15),char(255),char(215), -char(1),char(199),char(3),char(17),char(255),char(215),char(1),char(199),char(3),char(18), -char(255),char(236),char(1),char(199),char(3),char(23),char(255),char(236),char(1),char(199), -char(3),char(27),char(255),char(215),char(1),char(199),char(3),char(28),char(255),char(236), -char(1),char(200),char(0),char(15),char(255),char(174),char(1),char(200),char(0),char(17), -char(255),char(174),char(1),char(200),char(1),char(157),char(255),char(236),char(1),char(200), -char(1),char(164),char(255),char(215),char(1),char(200),char(1),char(166),char(255),char(236), -char(1),char(200),char(1),char(168),char(255),char(215),char(1),char(200),char(1),char(170), -char(255),char(215),char(1),char(200),char(1),char(174),char(255),char(215),char(1),char(200), -char(1),char(176),char(255),char(215),char(1),char(200),char(1),char(177),char(255),char(236), -char(1),char(200),char(1),char(181),char(255),char(215),char(1),char(200),char(1),char(188), -char(255),char(195),char(1),char(200),char(1),char(189),char(255),char(215),char(1),char(200), -char(1),char(191),char(255),char(215),char(1),char(200),char(1),char(193),char(255),char(215), -char(1),char(200),char(1),char(196),char(255),char(236),char(1),char(200),char(1),char(199), -char(255),char(236),char(1),char(200),char(1),char(206),char(255),char(236),char(1),char(200), -char(1),char(213),char(255),char(236),char(1),char(200),char(1),char(242),char(255),char(236), -char(1),char(200),char(2),char(8),char(255),char(174),char(1),char(200),char(2),char(12), -char(255),char(174),char(1),char(200),char(2),char(114),char(255),char(215),char(1),char(200), -char(2),char(115),char(255),char(236),char(1),char(200),char(2),char(122),char(255),char(236), -char(1),char(200),char(2),char(124),char(255),char(215),char(1),char(200),char(2),char(128), -char(255),char(236),char(1),char(200),char(2),char(130),char(255),char(236),char(1),char(200), -char(2),char(159),char(255),char(215),char(1),char(200),char(2),char(161),char(255),char(236), -char(1),char(200),char(2),char(169),char(255),char(236),char(1),char(200),char(2),char(181), -char(255),char(195),char(1),char(200),char(2),char(183),char(255),char(236),char(1),char(200), -char(2),char(185),char(255),char(236),char(1),char(200),char(2),char(187),char(255),char(215), -char(1),char(200),char(2),char(189),char(255),char(236),char(1),char(200),char(2),char(191), -char(255),char(215),char(1),char(200),char(2),char(193),char(255),char(215),char(1),char(200), -char(2),char(202),char(255),char(215),char(1),char(200),char(2),char(206),char(255),char(215), -char(1),char(200),char(2),char(207),char(255),char(236),char(1),char(200),char(2),char(212), -char(255),char(215),char(1),char(200),char(2),char(217),char(255),char(215),char(1),char(200), -char(2),char(219),char(255),char(215),char(1),char(200),char(2),char(221),char(255),char(215), -char(1),char(200),char(2),char(229),char(255),char(215),char(1),char(200),char(2),char(231), -char(255),char(236),char(1),char(200),char(2),char(245),char(255),char(236),char(1),char(200), -char(2),char(247),char(255),char(215),char(1),char(200),char(2),char(249),char(255),char(215), -char(1),char(200),char(2),char(251),char(255),char(215),char(1),char(200),char(2),char(253), -char(255),char(215),char(1),char(200),char(3),char(5),char(255),char(215),char(1),char(200), -char(3),char(7),char(255),char(215),char(1),char(200),char(3),char(13),char(255),char(215), -char(1),char(200),char(3),char(15),char(255),char(215),char(1),char(200),char(3),char(17), -char(255),char(215),char(1),char(200),char(3),char(18),char(255),char(236),char(1),char(200), -char(3),char(23),char(255),char(236),char(1),char(200),char(3),char(27),char(255),char(215), -char(1),char(200),char(3),char(28),char(255),char(236),char(1),char(202),char(0),char(5), -char(255),char(236),char(1),char(202),char(0),char(10),char(255),char(236),char(1),char(202), -char(2),char(7),char(255),char(236),char(1),char(202),char(2),char(11),char(255),char(236), -char(1),char(204),char(1),char(233),char(0),char(41),char(1),char(205),char(0),char(15), -char(255),char(154),char(1),char(205),char(0),char(16),char(255),char(215),char(1),char(205), -char(0),char(17),char(255),char(154),char(1),char(205),char(1),char(206),char(255),char(195), -char(1),char(205),char(1),char(207),char(255),char(236),char(1),char(205),char(1),char(213), -char(255),char(195),char(1),char(205),char(1),char(216),char(255),char(236),char(1),char(205), -char(1),char(219),char(255),char(236),char(1),char(205),char(1),char(222),char(255),char(236), -char(1),char(205),char(1),char(234),char(255),char(236),char(1),char(205),char(1),char(237), -char(255),char(236),char(1),char(205),char(1),char(242),char(255),char(195),char(1),char(205), -char(2),char(2),char(255),char(215),char(1),char(205),char(2),char(3),char(255),char(215), -char(1),char(205),char(2),char(4),char(255),char(215),char(1),char(205),char(2),char(8), -char(255),char(154),char(1),char(205),char(2),char(12),char(255),char(154),char(1),char(205), -char(2),char(106),char(255),char(236),char(1),char(205),char(2),char(115),char(255),char(195), -char(1),char(205),char(2),char(127),char(255),char(236),char(1),char(205),char(2),char(133), -char(255),char(236),char(1),char(205),char(2),char(135),char(255),char(236),char(1),char(205), -char(2),char(137),char(255),char(236),char(1),char(205),char(2),char(141),char(255),char(236), -char(1),char(205),char(2),char(178),char(255),char(236),char(1),char(205),char(2),char(180), -char(255),char(236),char(1),char(205),char(2),char(207),char(255),char(195),char(1),char(205), -char(2),char(224),char(255),char(236),char(1),char(205),char(2),char(240),char(255),char(236), -char(1),char(205),char(2),char(242),char(255),char(236),char(1),char(205),char(2),char(244), -char(255),char(236),char(1),char(205),char(3),char(10),char(255),char(236),char(1),char(205), -char(3),char(12),char(255),char(236),char(1),char(205),char(3),char(18),char(255),char(195), -char(1),char(205),char(3),char(22),char(255),char(236),char(1),char(205),char(3),char(26), -char(255),char(236),char(1),char(205),char(3),char(28),char(255),char(195),char(1),char(206), -char(0),char(5),char(255),char(236),char(1),char(206),char(0),char(10),char(255),char(236), -char(1),char(206),char(2),char(7),char(255),char(236),char(1),char(206),char(2),char(11), -char(255),char(236),char(1),char(207),char(0),char(5),char(255),char(236),char(1),char(207), -char(0),char(10),char(255),char(236),char(1),char(207),char(2),char(7),char(255),char(236), -char(1),char(207),char(2),char(11),char(255),char(236),char(1),char(208),char(1),char(207), -char(255),char(215),char(1),char(208),char(1),char(216),char(255),char(215),char(1),char(208), -char(1),char(219),char(255),char(215),char(1),char(208),char(1),char(222),char(255),char(215), -char(1),char(208),char(1),char(225),char(255),char(215),char(1),char(208),char(1),char(234), -char(255),char(215),char(1),char(208),char(1),char(237),char(255),char(215),char(1),char(208), -char(2),char(106),char(255),char(215),char(1),char(208),char(2),char(127),char(255),char(215), -char(1),char(208),char(2),char(133),char(255),char(215),char(1),char(208),char(2),char(135), -char(255),char(215),char(1),char(208),char(2),char(137),char(255),char(215),char(1),char(208), -char(2),char(141),char(255),char(215),char(1),char(208),char(2),char(178),char(255),char(215), -char(1),char(208),char(2),char(180),char(255),char(215),char(1),char(208),char(2),char(192), -char(255),char(215),char(1),char(208),char(2),char(194),char(255),char(215),char(1),char(208), -char(2),char(198),char(255),char(215),char(1),char(208),char(2),char(200),char(255),char(215), -char(1),char(208),char(2),char(213),char(255),char(215),char(1),char(208),char(2),char(224), -char(255),char(215),char(1),char(208),char(2),char(240),char(255),char(215),char(1),char(208), -char(2),char(242),char(255),char(215),char(1),char(208),char(2),char(244),char(255),char(215), -char(1),char(208),char(2),char(254),char(255),char(215),char(1),char(208),char(3),char(10), -char(255),char(215),char(1),char(208),char(3),char(12),char(255),char(215),char(1),char(208), -char(3),char(22),char(255),char(215),char(1),char(208),char(3),char(26),char(255),char(215), -char(1),char(209),char(1),char(233),char(0),char(41),char(1),char(212),char(1),char(207), -char(255),char(215),char(1),char(212),char(1),char(216),char(255),char(215),char(1),char(212), -char(1),char(219),char(255),char(215),char(1),char(212),char(1),char(222),char(255),char(215), -char(1),char(212),char(1),char(225),char(255),char(215),char(1),char(212),char(1),char(234), -char(255),char(215),char(1),char(212),char(1),char(237),char(255),char(215),char(1),char(212), -char(2),char(106),char(255),char(215),char(1),char(212),char(2),char(127),char(255),char(215), -char(1),char(212),char(2),char(133),char(255),char(215),char(1),char(212),char(2),char(135), -char(255),char(215),char(1),char(212),char(2),char(137),char(255),char(215),char(1),char(212), -char(2),char(141),char(255),char(215),char(1),char(212),char(2),char(178),char(255),char(215), -char(1),char(212),char(2),char(180),char(255),char(215),char(1),char(212),char(2),char(192), -char(255),char(215),char(1),char(212),char(2),char(194),char(255),char(215),char(1),char(212), -char(2),char(198),char(255),char(215),char(1),char(212),char(2),char(200),char(255),char(215), -char(1),char(212),char(2),char(213),char(255),char(215),char(1),char(212),char(2),char(224), -char(255),char(215),char(1),char(212),char(2),char(240),char(255),char(215),char(1),char(212), -char(2),char(242),char(255),char(215),char(1),char(212),char(2),char(244),char(255),char(215), -char(1),char(212),char(2),char(254),char(255),char(215),char(1),char(212),char(3),char(10), -char(255),char(215),char(1),char(212),char(3),char(12),char(255),char(215),char(1),char(212), -char(3),char(22),char(255),char(215),char(1),char(212),char(3),char(26),char(255),char(215), -char(1),char(216),char(0),char(5),char(255),char(236),char(1),char(216),char(0),char(10), -char(255),char(236),char(1),char(216),char(1),char(208),char(255),char(215),char(1),char(216), -char(1),char(220),char(255),char(236),char(1),char(216),char(1),char(221),char(255),char(236), -char(1),char(216),char(1),char(223),char(255),char(215),char(1),char(216),char(1),char(225), -char(255),char(236),char(1),char(216),char(1),char(228),char(255),char(236),char(1),char(216), -char(1),char(246),char(255),char(236),char(1),char(216),char(2),char(7),char(255),char(236), -char(1),char(216),char(2),char(11),char(255),char(236),char(1),char(216),char(2),char(160), -char(255),char(215),char(1),char(216),char(2),char(170),char(255),char(236),char(1),char(216), -char(2),char(182),char(255),char(236),char(1),char(216),char(2),char(188),char(255),char(215), -char(1),char(216),char(2),char(190),char(255),char(236),char(1),char(216),char(2),char(192), -char(255),char(236),char(1),char(216),char(2),char(194),char(255),char(236),char(1),char(216), -char(2),char(203),char(255),char(215),char(1),char(216),char(2),char(213),char(255),char(236), -char(1),char(216),char(2),char(230),char(255),char(215),char(1),char(216),char(2),char(248), -char(255),char(236),char(1),char(216),char(2),char(250),char(255),char(236),char(1),char(216), -char(2),char(252),char(255),char(236),char(1),char(216),char(2),char(254),char(255),char(236), -char(1),char(216),char(3),char(6),char(255),char(215),char(1),char(216),char(3),char(8), -char(255),char(215),char(1),char(216),char(3),char(14),char(255),char(236),char(1),char(216), -char(3),char(16),char(255),char(236),char(1),char(216),char(3),char(24),char(255),char(236), -char(1),char(218),char(0),char(5),char(255),char(236),char(1),char(218),char(0),char(10), -char(255),char(236),char(1),char(218),char(1),char(208),char(255),char(215),char(1),char(218), -char(1),char(220),char(255),char(236),char(1),char(218),char(1),char(221),char(255),char(236), -char(1),char(218),char(1),char(223),char(255),char(215),char(1),char(218),char(1),char(225), -char(255),char(236),char(1),char(218),char(1),char(228),char(255),char(236),char(1),char(218), -char(1),char(246),char(255),char(236),char(1),char(218),char(2),char(7),char(255),char(236), -char(1),char(218),char(2),char(11),char(255),char(236),char(1),char(218),char(2),char(160), -char(255),char(215),char(1),char(218),char(2),char(170),char(255),char(236),char(1),char(218), -char(2),char(182),char(255),char(236),char(1),char(218),char(2),char(188),char(255),char(215), -char(1),char(218),char(2),char(190),char(255),char(236),char(1),char(218),char(2),char(192), -char(255),char(236),char(1),char(218),char(2),char(194),char(255),char(236),char(1),char(218), -char(2),char(203),char(255),char(215),char(1),char(218),char(2),char(213),char(255),char(236), -char(1),char(218),char(2),char(230),char(255),char(215),char(1),char(218),char(2),char(248), -char(255),char(236),char(1),char(218),char(2),char(250),char(255),char(236),char(1),char(218), -char(2),char(252),char(255),char(236),char(1),char(218),char(2),char(254),char(255),char(236), -char(1),char(218),char(3),char(6),char(255),char(215),char(1),char(218),char(3),char(8), -char(255),char(215),char(1),char(218),char(3),char(14),char(255),char(236),char(1),char(218), -char(3),char(16),char(255),char(236),char(1),char(218),char(3),char(24),char(255),char(236), -char(1),char(220),char(0),char(15),char(255),char(154),char(1),char(220),char(0),char(16), -char(255),char(215),char(1),char(220),char(0),char(17),char(255),char(154),char(1),char(220), -char(1),char(206),char(255),char(195),char(1),char(220),char(1),char(207),char(255),char(236), -char(1),char(220),char(1),char(213),char(255),char(195),char(1),char(220),char(1),char(216), -char(255),char(236),char(1),char(220),char(1),char(219),char(255),char(236),char(1),char(220), -char(1),char(222),char(255),char(236),char(1),char(220),char(1),char(234),char(255),char(236), -char(1),char(220),char(1),char(237),char(255),char(236),char(1),char(220),char(1),char(242), -char(255),char(195),char(1),char(220),char(2),char(2),char(255),char(215),char(1),char(220), -char(2),char(3),char(255),char(215),char(1),char(220),char(2),char(4),char(255),char(215), -char(1),char(220),char(2),char(8),char(255),char(154),char(1),char(220),char(2),char(12), -char(255),char(154),char(1),char(220),char(2),char(106),char(255),char(236),char(1),char(220), -char(2),char(115),char(255),char(195),char(1),char(220),char(2),char(127),char(255),char(236), -char(1),char(220),char(2),char(133),char(255),char(236),char(1),char(220),char(2),char(135), -char(255),char(236),char(1),char(220),char(2),char(137),char(255),char(236),char(1),char(220), -char(2),char(141),char(255),char(236),char(1),char(220),char(2),char(178),char(255),char(236), -char(1),char(220),char(2),char(180),char(255),char(236),char(1),char(220),char(2),char(207), -char(255),char(195),char(1),char(220),char(2),char(224),char(255),char(236),char(1),char(220), -char(2),char(240),char(255),char(236),char(1),char(220),char(2),char(242),char(255),char(236), -char(1),char(220),char(2),char(244),char(255),char(236),char(1),char(220),char(3),char(10), -char(255),char(236),char(1),char(220),char(3),char(12),char(255),char(236),char(1),char(220), -char(3),char(18),char(255),char(195),char(1),char(220),char(3),char(22),char(255),char(236), -char(1),char(220),char(3),char(26),char(255),char(236),char(1),char(220),char(3),char(28), -char(255),char(195),char(1),char(221),char(0),char(15),char(255),char(174),char(1),char(221), -char(0),char(17),char(255),char(174),char(1),char(221),char(1),char(206),char(255),char(215), -char(1),char(221),char(1),char(213),char(255),char(215),char(1),char(221),char(1),char(242), -char(255),char(215),char(1),char(221),char(2),char(8),char(255),char(174),char(1),char(221), -char(2),char(12),char(255),char(174),char(1),char(221),char(2),char(115),char(255),char(215), -char(1),char(221),char(2),char(207),char(255),char(215),char(1),char(221),char(3),char(18), -char(255),char(215),char(1),char(221),char(3),char(28),char(255),char(215),char(1),char(222), -char(0),char(5),char(255),char(236),char(1),char(222),char(0),char(10),char(255),char(236), -char(1),char(222),char(1),char(208),char(255),char(215),char(1),char(222),char(1),char(220), -char(255),char(236),char(1),char(222),char(1),char(221),char(255),char(236),char(1),char(222), -char(1),char(223),char(255),char(215),char(1),char(222),char(1),char(225),char(255),char(236), -char(1),char(222),char(1),char(228),char(255),char(236),char(1),char(222),char(1),char(246), -char(255),char(236),char(1),char(222),char(2),char(7),char(255),char(236),char(1),char(222), -char(2),char(11),char(255),char(236),char(1),char(222),char(2),char(160),char(255),char(215), -char(1),char(222),char(2),char(170),char(255),char(236),char(1),char(222),char(2),char(182), -char(255),char(236),char(1),char(222),char(2),char(188),char(255),char(215),char(1),char(222), -char(2),char(190),char(255),char(236),char(1),char(222),char(2),char(192),char(255),char(236), -char(1),char(222),char(2),char(194),char(255),char(236),char(1),char(222),char(2),char(203), -char(255),char(215),char(1),char(222),char(2),char(213),char(255),char(236),char(1),char(222), -char(2),char(230),char(255),char(215),char(1),char(222),char(2),char(248),char(255),char(236), -char(1),char(222),char(2),char(250),char(255),char(236),char(1),char(222),char(2),char(252), -char(255),char(236),char(1),char(222),char(2),char(254),char(255),char(236),char(1),char(222), -char(3),char(6),char(255),char(215),char(1),char(222),char(3),char(8),char(255),char(215), -char(1),char(222),char(3),char(14),char(255),char(236),char(1),char(222),char(3),char(16), -char(255),char(236),char(1),char(222),char(3),char(24),char(255),char(236),char(1),char(223), -char(1),char(207),char(255),char(215),char(1),char(223),char(1),char(216),char(255),char(215), -char(1),char(223),char(1),char(219),char(255),char(215),char(1),char(223),char(1),char(222), -char(255),char(215),char(1),char(223),char(1),char(225),char(255),char(215),char(1),char(223), -char(1),char(234),char(255),char(215),char(1),char(223),char(1),char(237),char(255),char(215), -char(1),char(223),char(2),char(106),char(255),char(215),char(1),char(223),char(2),char(127), -char(255),char(215),char(1),char(223),char(2),char(133),char(255),char(215),char(1),char(223), -char(2),char(135),char(255),char(215),char(1),char(223),char(2),char(137),char(255),char(215), -char(1),char(223),char(2),char(141),char(255),char(215),char(1),char(223),char(2),char(178), -char(255),char(215),char(1),char(223),char(2),char(180),char(255),char(215),char(1),char(223), -char(2),char(192),char(255),char(215),char(1),char(223),char(2),char(194),char(255),char(215), -char(1),char(223),char(2),char(198),char(255),char(215),char(1),char(223),char(2),char(200), -char(255),char(215),char(1),char(223),char(2),char(213),char(255),char(215),char(1),char(223), -char(2),char(224),char(255),char(215),char(1),char(223),char(2),char(240),char(255),char(215), -char(1),char(223),char(2),char(242),char(255),char(215),char(1),char(223),char(2),char(244), -char(255),char(215),char(1),char(223),char(2),char(254),char(255),char(215),char(1),char(223), -char(3),char(10),char(255),char(215),char(1),char(223),char(3),char(12),char(255),char(215), -char(1),char(223),char(3),char(22),char(255),char(215),char(1),char(223),char(3),char(26), -char(255),char(215),char(1),char(224),char(0),char(5),char(255),char(236),char(1),char(224), -char(0),char(10),char(255),char(236),char(1),char(224),char(2),char(7),char(255),char(236), -char(1),char(224),char(2),char(11),char(255),char(236),char(1),char(227),char(0),char(5), -char(255),char(236),char(1),char(227),char(0),char(10),char(255),char(236),char(1),char(227), -char(2),char(7),char(255),char(236),char(1),char(227),char(2),char(11),char(255),char(236), -char(1),char(228),char(0),char(5),char(255),char(133),char(1),char(228),char(0),char(10), -char(255),char(133),char(1),char(228),char(1),char(208),char(255),char(215),char(1),char(228), -char(1),char(220),char(255),char(154),char(1),char(228),char(1),char(221),char(255),char(195), -char(1),char(228),char(1),char(223),char(255),char(215),char(1),char(228),char(1),char(225), -char(255),char(174),char(1),char(228),char(1),char(228),char(255),char(154),char(1),char(228), -char(1),char(246),char(255),char(195),char(1),char(228),char(2),char(7),char(255),char(133), -char(1),char(228),char(2),char(11),char(255),char(133),char(1),char(228),char(2),char(109), -char(255),char(215),char(1),char(228),char(2),char(129),char(255),char(215),char(1),char(228), -char(2),char(131),char(255),char(215),char(1),char(228),char(2),char(139),char(255),char(215), -char(1),char(228),char(2),char(160),char(255),char(215),char(1),char(228),char(2),char(170), -char(255),char(154),char(1),char(228),char(2),char(182),char(255),char(154),char(1),char(228), -char(2),char(184),char(255),char(195),char(1),char(228),char(2),char(186),char(255),char(195), -char(1),char(228),char(2),char(188),char(255),char(215),char(1),char(228),char(2),char(190), -char(255),char(154),char(1),char(228),char(2),char(192),char(255),char(174),char(1),char(228), -char(2),char(194),char(255),char(174),char(1),char(228),char(2),char(198),char(255),char(215), -char(1),char(228),char(2),char(200),char(255),char(215),char(1),char(228),char(2),char(203), -char(255),char(215),char(1),char(228),char(2),char(213),char(255),char(174),char(1),char(228), -char(2),char(230),char(255),char(215),char(1),char(228),char(2),char(234),char(255),char(215), -char(1),char(228),char(2),char(248),char(255),char(195),char(1),char(228),char(2),char(250), -char(255),char(195),char(1),char(228),char(2),char(252),char(255),char(195),char(1),char(228), -char(2),char(254),char(255),char(174),char(1),char(228),char(3),char(6),char(255),char(215), -char(1),char(228),char(3),char(8),char(255),char(215),char(1),char(228),char(3),char(14), -char(255),char(154),char(1),char(228),char(3),char(16),char(255),char(154),char(1),char(228), -char(3),char(24),char(255),char(154),char(1),char(230),char(0),char(5),char(255),char(133), -char(1),char(230),char(0),char(10),char(255),char(133),char(1),char(230),char(1),char(208), -char(255),char(215),char(1),char(230),char(1),char(220),char(255),char(154),char(1),char(230), -char(1),char(221),char(255),char(195),char(1),char(230),char(1),char(223),char(255),char(215), -char(1),char(230),char(1),char(225),char(255),char(174),char(1),char(230),char(1),char(228), -char(255),char(154),char(1),char(230),char(1),char(246),char(255),char(195),char(1),char(230), -char(2),char(7),char(255),char(133),char(1),char(230),char(2),char(11),char(255),char(133), -char(1),char(230),char(2),char(109),char(255),char(215),char(1),char(230),char(2),char(129), -char(255),char(215),char(1),char(230),char(2),char(131),char(255),char(215),char(1),char(230), -char(2),char(139),char(255),char(215),char(1),char(230),char(2),char(160),char(255),char(215), -char(1),char(230),char(2),char(170),char(255),char(154),char(1),char(230),char(2),char(182), -char(255),char(154),char(1),char(230),char(2),char(184),char(255),char(195),char(1),char(230), -char(2),char(186),char(255),char(195),char(1),char(230),char(2),char(188),char(255),char(215), -char(1),char(230),char(2),char(190),char(255),char(154),char(1),char(230),char(2),char(192), -char(255),char(174),char(1),char(230),char(2),char(194),char(255),char(174),char(1),char(230), -char(2),char(198),char(255),char(215),char(1),char(230),char(2),char(200),char(255),char(215), -char(1),char(230),char(2),char(203),char(255),char(215),char(1),char(230),char(2),char(213), -char(255),char(174),char(1),char(230),char(2),char(230),char(255),char(215),char(1),char(230), -char(2),char(234),char(255),char(215),char(1),char(230),char(2),char(248),char(255),char(195), -char(1),char(230),char(2),char(250),char(255),char(195),char(1),char(230),char(2),char(252), -char(255),char(195),char(1),char(230),char(2),char(254),char(255),char(174),char(1),char(230), -char(3),char(6),char(255),char(215),char(1),char(230),char(3),char(8),char(255),char(215), -char(1),char(230),char(3),char(14),char(255),char(154),char(1),char(230),char(3),char(16), -char(255),char(154),char(1),char(230),char(3),char(24),char(255),char(154),char(1),char(231), -char(0),char(5),char(255),char(236),char(1),char(231),char(0),char(10),char(255),char(236), -char(1),char(231),char(1),char(208),char(255),char(215),char(1),char(231),char(1),char(220), -char(255),char(236),char(1),char(231),char(1),char(221),char(255),char(236),char(1),char(231), -char(1),char(223),char(255),char(215),char(1),char(231),char(1),char(225),char(255),char(236), -char(1),char(231),char(1),char(228),char(255),char(236),char(1),char(231),char(1),char(246), -char(255),char(236),char(1),char(231),char(2),char(7),char(255),char(236),char(1),char(231), -char(2),char(11),char(255),char(236),char(1),char(231),char(2),char(160),char(255),char(215), -char(1),char(231),char(2),char(170),char(255),char(236),char(1),char(231),char(2),char(182), -char(255),char(236),char(1),char(231),char(2),char(188),char(255),char(215),char(1),char(231), -char(2),char(190),char(255),char(236),char(1),char(231),char(2),char(192),char(255),char(236), -char(1),char(231),char(2),char(194),char(255),char(236),char(1),char(231),char(2),char(203), -char(255),char(215),char(1),char(231),char(2),char(213),char(255),char(236),char(1),char(231), -char(2),char(230),char(255),char(215),char(1),char(231),char(2),char(248),char(255),char(236), -char(1),char(231),char(2),char(250),char(255),char(236),char(1),char(231),char(2),char(252), -char(255),char(236),char(1),char(231),char(2),char(254),char(255),char(236),char(1),char(231), -char(3),char(6),char(255),char(215),char(1),char(231),char(3),char(8),char(255),char(215), -char(1),char(231),char(3),char(14),char(255),char(236),char(1),char(231),char(3),char(16), -char(255),char(236),char(1),char(231),char(3),char(24),char(255),char(236),char(1),char(232), -char(0),char(5),char(255),char(236),char(1),char(232),char(0),char(10),char(255),char(236), -char(1),char(232),char(1),char(208),char(255),char(215),char(1),char(232),char(1),char(220), -char(255),char(236),char(1),char(232),char(1),char(221),char(255),char(236),char(1),char(232), -char(1),char(223),char(255),char(215),char(1),char(232),char(1),char(225),char(255),char(236), -char(1),char(232),char(1),char(228),char(255),char(236),char(1),char(232),char(1),char(246), -char(255),char(236),char(1),char(232),char(2),char(7),char(255),char(236),char(1),char(232), -char(2),char(11),char(255),char(236),char(1),char(232),char(2),char(160),char(255),char(215), -char(1),char(232),char(2),char(170),char(255),char(236),char(1),char(232),char(2),char(182), -char(255),char(236),char(1),char(232),char(2),char(188),char(255),char(215),char(1),char(232), -char(2),char(190),char(255),char(236),char(1),char(232),char(2),char(192),char(255),char(236), -char(1),char(232),char(2),char(194),char(255),char(236),char(1),char(232),char(2),char(203), -char(255),char(215),char(1),char(232),char(2),char(213),char(255),char(236),char(1),char(232), -char(2),char(230),char(255),char(215),char(1),char(232),char(2),char(248),char(255),char(236), -char(1),char(232),char(2),char(250),char(255),char(236),char(1),char(232),char(2),char(252), -char(255),char(236),char(1),char(232),char(2),char(254),char(255),char(236),char(1),char(232), -char(3),char(6),char(255),char(215),char(1),char(232),char(3),char(8),char(255),char(215), -char(1),char(232),char(3),char(14),char(255),char(236),char(1),char(232),char(3),char(16), -char(255),char(236),char(1),char(232),char(3),char(24),char(255),char(236),char(1),char(234), -char(0),char(5),char(255),char(236),char(1),char(234),char(0),char(10),char(255),char(236), -char(1),char(234),char(2),char(7),char(255),char(236),char(1),char(234),char(2),char(11), -char(255),char(236),char(1),char(235),char(0),char(5),char(255),char(236),char(1),char(235), -char(0),char(10),char(255),char(236),char(1),char(235),char(2),char(7),char(255),char(236), -char(1),char(235),char(2),char(11),char(255),char(236),char(1),char(235),char(3),char(14), -char(255),char(215),char(1),char(235),char(3),char(16),char(255),char(215),char(1),char(236), -char(0),char(15),char(255),char(154),char(1),char(236),char(0),char(16),char(255),char(215), -char(1),char(236),char(0),char(17),char(255),char(154),char(1),char(236),char(1),char(206), -char(255),char(195),char(1),char(236),char(1),char(207),char(255),char(236),char(1),char(236), -char(1),char(213),char(255),char(195),char(1),char(236),char(1),char(216),char(255),char(236), -char(1),char(236),char(1),char(219),char(255),char(236),char(1),char(236),char(1),char(222), -char(255),char(236),char(1),char(236),char(1),char(234),char(255),char(236),char(1),char(236), -char(1),char(237),char(255),char(236),char(1),char(236),char(1),char(242),char(255),char(195), -char(1),char(236),char(2),char(2),char(255),char(215),char(1),char(236),char(2),char(3), -char(255),char(215),char(1),char(236),char(2),char(4),char(255),char(215),char(1),char(236), -char(2),char(8),char(255),char(154),char(1),char(236),char(2),char(12),char(255),char(154), -char(1),char(236),char(2),char(106),char(255),char(236),char(1),char(236),char(2),char(115), -char(255),char(195),char(1),char(236),char(2),char(127),char(255),char(236),char(1),char(236), -char(2),char(133),char(255),char(236),char(1),char(236),char(2),char(135),char(255),char(236), -char(1),char(236),char(2),char(137),char(255),char(236),char(1),char(236),char(2),char(141), -char(255),char(236),char(1),char(236),char(2),char(178),char(255),char(236),char(1),char(236), -char(2),char(180),char(255),char(236),char(1),char(236),char(2),char(207),char(255),char(195), -char(1),char(236),char(2),char(224),char(255),char(236),char(1),char(236),char(2),char(240), -char(255),char(236),char(1),char(236),char(2),char(242),char(255),char(236),char(1),char(236), -char(2),char(244),char(255),char(236),char(1),char(236),char(3),char(10),char(255),char(236), -char(1),char(236),char(3),char(12),char(255),char(236),char(1),char(236),char(3),char(18), -char(255),char(195),char(1),char(236),char(3),char(22),char(255),char(236),char(1),char(236), -char(3),char(26),char(255),char(236),char(1),char(236),char(3),char(28),char(255),char(195), -char(1),char(242),char(0),char(5),char(255),char(133),char(1),char(242),char(0),char(10), -char(255),char(133),char(1),char(242),char(1),char(208),char(255),char(215),char(1),char(242), -char(1),char(220),char(255),char(154),char(1),char(242),char(1),char(221),char(255),char(195), -char(1),char(242),char(1),char(223),char(255),char(215),char(1),char(242),char(1),char(225), -char(255),char(174),char(1),char(242),char(1),char(228),char(255),char(154),char(1),char(242), -char(1),char(246),char(255),char(195),char(1),char(242),char(2),char(7),char(255),char(133), -char(1),char(242),char(2),char(11),char(255),char(133),char(1),char(242),char(2),char(109), -char(255),char(215),char(1),char(242),char(2),char(129),char(255),char(215),char(1),char(242), -char(2),char(131),char(255),char(215),char(1),char(242),char(2),char(139),char(255),char(215), -char(1),char(242),char(2),char(160),char(255),char(215),char(1),char(242),char(2),char(170), -char(255),char(154),char(1),char(242),char(2),char(182),char(255),char(154),char(1),char(242), -char(2),char(184),char(255),char(195),char(1),char(242),char(2),char(186),char(255),char(195), -char(1),char(242),char(2),char(188),char(255),char(215),char(1),char(242),char(2),char(190), -char(255),char(154),char(1),char(242),char(2),char(192),char(255),char(174),char(1),char(242), -char(2),char(194),char(255),char(174),char(1),char(242),char(2),char(198),char(255),char(215), -char(1),char(242),char(2),char(200),char(255),char(215),char(1),char(242),char(2),char(203), -char(255),char(215),char(1),char(242),char(2),char(213),char(255),char(174),char(1),char(242), -char(2),char(230),char(255),char(215),char(1),char(242),char(2),char(234),char(255),char(215), -char(1),char(242),char(2),char(248),char(255),char(195),char(1),char(242),char(2),char(250), -char(255),char(195),char(1),char(242),char(2),char(252),char(255),char(195),char(1),char(242), -char(2),char(254),char(255),char(174),char(1),char(242),char(3),char(6),char(255),char(215), -char(1),char(242),char(3),char(8),char(255),char(215),char(1),char(242),char(3),char(14), -char(255),char(154),char(1),char(242),char(3),char(16),char(255),char(154),char(1),char(242), -char(3),char(24),char(255),char(154),char(1),char(243),char(0),char(5),char(255),char(133), -char(1),char(243),char(0),char(10),char(255),char(133),char(1),char(243),char(1),char(208), -char(255),char(215),char(1),char(243),char(1),char(220),char(255),char(154),char(1),char(243), -char(1),char(221),char(255),char(195),char(1),char(243),char(1),char(223),char(255),char(215), -char(1),char(243),char(1),char(225),char(255),char(174),char(1),char(243),char(1),char(228), -char(255),char(154),char(1),char(243),char(1),char(246),char(255),char(195),char(1),char(243), -char(2),char(7),char(255),char(133),char(1),char(243),char(2),char(11),char(255),char(133), -char(1),char(243),char(2),char(109),char(255),char(215),char(1),char(243),char(2),char(129), -char(255),char(215),char(1),char(243),char(2),char(131),char(255),char(215),char(1),char(243), -char(2),char(139),char(255),char(215),char(1),char(243),char(2),char(160),char(255),char(215), -char(1),char(243),char(2),char(170),char(255),char(154),char(1),char(243),char(2),char(182), -char(255),char(154),char(1),char(243),char(2),char(184),char(255),char(195),char(1),char(243), -char(2),char(186),char(255),char(195),char(1),char(243),char(2),char(188),char(255),char(215), -char(1),char(243),char(2),char(190),char(255),char(154),char(1),char(243),char(2),char(192), -char(255),char(174),char(1),char(243),char(2),char(194),char(255),char(174),char(1),char(243), -char(2),char(198),char(255),char(215),char(1),char(243),char(2),char(200),char(255),char(215), -char(1),char(243),char(2),char(203),char(255),char(215),char(1),char(243),char(2),char(213), -char(255),char(174),char(1),char(243),char(2),char(230),char(255),char(215),char(1),char(243), -char(2),char(234),char(255),char(215),char(1),char(243),char(2),char(248),char(255),char(195), -char(1),char(243),char(2),char(250),char(255),char(195),char(1),char(243),char(2),char(252), -char(255),char(195),char(1),char(243),char(2),char(254),char(255),char(174),char(1),char(243), -char(3),char(6),char(255),char(215),char(1),char(243),char(3),char(8),char(255),char(215), -char(1),char(243),char(3),char(14),char(255),char(154),char(1),char(243),char(3),char(16), -char(255),char(154),char(1),char(243),char(3),char(24),char(255),char(154),char(1),char(244), -char(0),char(5),char(255),char(236),char(1),char(244),char(0),char(10),char(255),char(236), -char(1),char(244),char(2),char(7),char(255),char(236),char(1),char(244),char(2),char(11), -char(255),char(236),char(1),char(244),char(3),char(14),char(255),char(215),char(1),char(244), -char(3),char(16),char(255),char(215),char(1),char(245),char(1),char(207),char(255),char(215), -char(1),char(245),char(1),char(216),char(255),char(215),char(1),char(245),char(1),char(219), -char(255),char(215),char(1),char(245),char(1),char(222),char(255),char(215),char(1),char(245), -char(1),char(225),char(255),char(215),char(1),char(245),char(1),char(234),char(255),char(215), -char(1),char(245),char(1),char(237),char(255),char(215),char(1),char(245),char(2),char(106), -char(255),char(215),char(1),char(245),char(2),char(127),char(255),char(215),char(1),char(245), -char(2),char(133),char(255),char(215),char(1),char(245),char(2),char(135),char(255),char(215), -char(1),char(245),char(2),char(137),char(255),char(215),char(1),char(245),char(2),char(141), -char(255),char(215),char(1),char(245),char(2),char(178),char(255),char(215),char(1),char(245), -char(2),char(180),char(255),char(215),char(1),char(245),char(2),char(192),char(255),char(215), -char(1),char(245),char(2),char(194),char(255),char(215),char(1),char(245),char(2),char(198), -char(255),char(215),char(1),char(245),char(2),char(200),char(255),char(215),char(1),char(245), -char(2),char(213),char(255),char(215),char(1),char(245),char(2),char(224),char(255),char(215), -char(1),char(245),char(2),char(240),char(255),char(215),char(1),char(245),char(2),char(242), -char(255),char(215),char(1),char(245),char(2),char(244),char(255),char(215),char(1),char(245), -char(2),char(254),char(255),char(215),char(1),char(245),char(3),char(10),char(255),char(215), -char(1),char(245),char(3),char(12),char(255),char(215),char(1),char(245),char(3),char(22), -char(255),char(215),char(1),char(245),char(3),char(26),char(255),char(215),char(1),char(246), -char(0),char(15),char(255),char(174),char(1),char(246),char(0),char(17),char(255),char(174), -char(1),char(246),char(1),char(206),char(255),char(215),char(1),char(246),char(1),char(213), -char(255),char(215),char(1),char(246),char(1),char(242),char(255),char(215),char(1),char(246), -char(2),char(8),char(255),char(174),char(1),char(246),char(2),char(12),char(255),char(174), -char(1),char(246),char(2),char(115),char(255),char(215),char(1),char(246),char(2),char(207), -char(255),char(215),char(1),char(246),char(3),char(18),char(255),char(215),char(1),char(246), -char(3),char(28),char(255),char(215),char(1),char(248),char(0),char(15),char(255),char(133), -char(1),char(248),char(0),char(16),char(255),char(174),char(1),char(248),char(0),char(17), -char(255),char(133),char(1),char(248),char(1),char(159),char(255),char(215),char(1),char(248), -char(1),char(164),char(255),char(154),char(1),char(248),char(1),char(170),char(255),char(113), -char(1),char(248),char(1),char(174),char(255),char(154),char(1),char(248),char(1),char(181), -char(255),char(154),char(1),char(248),char(1),char(184),char(255),char(215),char(1),char(248), -char(1),char(187),char(255),char(215),char(1),char(248),char(1),char(188),char(0),char(41), -char(1),char(248),char(1),char(190),char(255),char(174),char(1),char(248),char(1),char(204), -char(255),char(154),char(1),char(248),char(1),char(205),char(255),char(154),char(1),char(248), -char(1),char(206),char(255),char(133),char(1),char(248),char(1),char(207),char(255),char(113), -char(1),char(248),char(1),char(208),char(255),char(215),char(1),char(248),char(1),char(209), -char(255),char(215),char(1),char(248),char(1),char(210),char(255),char(154),char(1),char(248), -char(1),char(211),char(255),char(154),char(1),char(248),char(1),char(212),char(255),char(154), -char(1),char(248),char(1),char(213),char(255),char(133),char(1),char(248),char(1),char(214), -char(255),char(154),char(1),char(248),char(1),char(215),char(255),char(154),char(1),char(248), -char(1),char(216),char(255),char(113),char(1),char(248),char(1),char(217),char(255),char(154), -char(1),char(248),char(1),char(218),char(255),char(154),char(1),char(248),char(1),char(219), -char(255),char(113),char(1),char(248),char(1),char(220),char(255),char(174),char(1),char(248), -char(1),char(221),char(255),char(174),char(1),char(248),char(1),char(222),char(255),char(113), -char(1),char(248),char(1),char(223),char(255),char(215),char(1),char(248),char(1),char(224), -char(255),char(154),char(1),char(248),char(1),char(225),char(255),char(154),char(1),char(248), -char(1),char(226),char(255),char(154),char(1),char(248),char(1),char(227),char(255),char(154), -char(1),char(248),char(1),char(228),char(255),char(174),char(1),char(248),char(1),char(229), -char(255),char(154),char(1),char(248),char(1),char(230),char(255),char(154),char(1),char(248), -char(1),char(231),char(255),char(215),char(1),char(248),char(1),char(232),char(255),char(154), -char(1),char(248),char(1),char(233),char(255),char(195),char(1),char(248),char(1),char(234), -char(255),char(113),char(1),char(248),char(1),char(236),char(255),char(154),char(1),char(248), -char(1),char(237),char(255),char(113),char(1),char(248),char(1),char(238),char(255),char(133), -char(1),char(248),char(1),char(242),char(255),char(133),char(1),char(248),char(1),char(243), -char(255),char(154),char(1),char(248),char(1),char(245),char(255),char(154),char(1),char(248), -char(1),char(246),char(255),char(174),char(1),char(248),char(1),char(247),char(255),char(154), -char(1),char(248),char(1),char(249),char(255),char(154),char(1),char(248),char(2),char(2), -char(255),char(174),char(1),char(248),char(2),char(3),char(255),char(174),char(1),char(248), -char(2),char(4),char(255),char(174),char(1),char(248),char(2),char(8),char(255),char(133), -char(1),char(248),char(2),char(12),char(255),char(133),char(1),char(248),char(2),char(106), -char(255),char(113),char(1),char(248),char(2),char(107),char(255),char(154),char(1),char(248), -char(2),char(108),char(255),char(215),char(1),char(248),char(2),char(109),char(255),char(215), -char(1),char(248),char(2),char(113),char(255),char(154),char(1),char(248),char(2),char(114), -char(255),char(113),char(1),char(248),char(2),char(115),char(255),char(133),char(1),char(248), -char(2),char(117),char(255),char(154),char(1),char(248),char(2),char(119),char(255),char(154), -char(1),char(248),char(2),char(121),char(255),char(154),char(1),char(248),char(2),char(125), -char(255),char(154),char(1),char(248),char(2),char(126),char(255),char(215),char(1),char(248), -char(2),char(127),char(255),char(113),char(1),char(248),char(2),char(129),char(255),char(215), -char(1),char(248),char(2),char(131),char(255),char(215),char(1),char(248),char(2),char(132), -char(255),char(215),char(1),char(248),char(2),char(133),char(255),char(113),char(1),char(248), -char(2),char(134),char(255),char(215),char(1),char(248),char(2),char(135),char(255),char(113), -char(1),char(248),char(2),char(136),char(255),char(215),char(1),char(248),char(2),char(137), -char(255),char(113),char(1),char(248),char(2),char(138),char(255),char(215),char(1),char(248), -char(2),char(139),char(255),char(215),char(1),char(248),char(2),char(140),char(255),char(215), -char(1),char(248),char(2),char(141),char(255),char(113),char(1),char(248),char(2),char(150), -char(255),char(154),char(1),char(248),char(2),char(154),char(255),char(154),char(1),char(248), -char(2),char(158),char(255),char(154),char(1),char(248),char(2),char(160),char(255),char(215), -char(1),char(248),char(2),char(162),char(255),char(215),char(1),char(248),char(2),char(164), -char(255),char(154),char(1),char(248),char(2),char(166),char(255),char(154),char(1),char(248), -char(2),char(170),char(255),char(174),char(1),char(248),char(2),char(172),char(255),char(154), -char(1),char(248),char(2),char(174),char(255),char(154),char(1),char(248),char(2),char(176), -char(255),char(154),char(1),char(248),char(2),char(177),char(255),char(215),char(1),char(248), -char(2),char(178),char(255),char(113),char(1),char(248),char(2),char(179),char(255),char(215), -char(1),char(248),char(2),char(180),char(255),char(113),char(1),char(248),char(2),char(181), -char(0),char(41),char(1),char(248),char(2),char(182),char(255),char(174),char(1),char(248), -char(2),char(184),char(255),char(174),char(1),char(248),char(2),char(186),char(255),char(174), -char(1),char(248),char(2),char(188),char(255),char(215),char(1),char(248),char(2),char(190), -char(255),char(174),char(1),char(248),char(2),char(192),char(255),char(154),char(1),char(248), -char(2),char(194),char(255),char(154),char(1),char(248),char(2),char(196),char(255),char(154), -char(1),char(248),char(2),char(197),char(255),char(154),char(1),char(248),char(2),char(198), -char(255),char(113),char(1),char(248),char(2),char(199),char(255),char(154),char(1),char(248), -char(2),char(200),char(255),char(113),char(1),char(248),char(2),char(203),char(255),char(215), -char(1),char(248),char(2),char(205),char(255),char(154),char(1),char(248),char(2),char(206), -char(255),char(154),char(1),char(248),char(2),char(207),char(255),char(133),char(1),char(248), -char(2),char(209),char(255),char(154),char(1),char(248),char(2),char(211),char(255),char(154), -char(1),char(248),char(2),char(213),char(255),char(154),char(1),char(248),char(2),char(215), -char(255),char(154),char(1),char(248),char(2),char(217),char(255),char(113),char(1),char(248), -char(2),char(219),char(255),char(113),char(1),char(248),char(2),char(221),char(255),char(113), -char(1),char(248),char(2),char(224),char(255),char(113),char(1),char(248),char(2),char(230), -char(255),char(215),char(1),char(248),char(2),char(232),char(255),char(215),char(1),char(248), -char(2),char(234),char(255),char(195),char(1),char(248),char(2),char(236),char(255),char(154), -char(1),char(248),char(2),char(238),char(255),char(154),char(1),char(248),char(2),char(239), -char(255),char(215),char(1),char(248),char(2),char(240),char(255),char(113),char(1),char(248), -char(2),char(241),char(255),char(215),char(1),char(248),char(2),char(242),char(255),char(113), -char(1),char(248),char(2),char(243),char(255),char(215),char(1),char(248),char(2),char(244), -char(255),char(113),char(1),char(248),char(2),char(246),char(255),char(215),char(1),char(248), -char(2),char(248),char(255),char(174),char(1),char(248),char(2),char(250),char(255),char(174), -char(1),char(248),char(2),char(252),char(255),char(174),char(1),char(248),char(2),char(254), -char(255),char(154),char(1),char(248),char(3),char(0),char(255),char(154),char(1),char(248), -char(3),char(2),char(255),char(154),char(1),char(248),char(3),char(6),char(255),char(215), -char(1),char(248),char(3),char(8),char(255),char(215),char(1),char(248),char(3),char(9), -char(255),char(113),char(1),char(248),char(3),char(10),char(255),char(113),char(1),char(248), -char(3),char(11),char(255),char(113),char(1),char(248),char(3),char(12),char(255),char(113), -char(1),char(248),char(3),char(14),char(255),char(154),char(1),char(248),char(3),char(16), -char(255),char(154),char(1),char(248),char(3),char(17),char(255),char(154),char(1),char(248), -char(3),char(18),char(255),char(133),char(1),char(248),char(3),char(20),char(255),char(154), -char(1),char(248),char(3),char(21),char(255),char(215),char(1),char(248),char(3),char(22), -char(255),char(113),char(1),char(248),char(3),char(24),char(255),char(174),char(1),char(248), -char(3),char(26),char(255),char(113),char(1),char(248),char(3),char(27),char(255),char(154), -char(1),char(248),char(3),char(28),char(255),char(133),char(1),char(249),char(0),char(15), -char(255),char(154),char(1),char(249),char(0),char(16),char(255),char(215),char(1),char(249), -char(0),char(17),char(255),char(154),char(1),char(249),char(1),char(206),char(255),char(195), -char(1),char(249),char(1),char(207),char(255),char(236),char(1),char(249),char(1),char(213), -char(255),char(195),char(1),char(249),char(1),char(216),char(255),char(236),char(1),char(249), -char(1),char(219),char(255),char(236),char(1),char(249),char(1),char(222),char(255),char(236), -char(1),char(249),char(1),char(234),char(255),char(236),char(1),char(249),char(1),char(237), -char(255),char(236),char(1),char(249),char(1),char(242),char(255),char(195),char(1),char(249), -char(2),char(2),char(255),char(215),char(1),char(249),char(2),char(3),char(255),char(215), -char(1),char(249),char(2),char(4),char(255),char(215),char(1),char(249),char(2),char(8), -char(255),char(154),char(1),char(249),char(2),char(12),char(255),char(154),char(1),char(249), -char(2),char(106),char(255),char(236),char(1),char(249),char(2),char(115),char(255),char(195), -char(1),char(249),char(2),char(127),char(255),char(236),char(1),char(249),char(2),char(133), -char(255),char(236),char(1),char(249),char(2),char(135),char(255),char(236),char(1),char(249), -char(2),char(137),char(255),char(236),char(1),char(249),char(2),char(141),char(255),char(236), -char(1),char(249),char(2),char(178),char(255),char(236),char(1),char(249),char(2),char(180), -char(255),char(236),char(1),char(249),char(2),char(207),char(255),char(195),char(1),char(249), -char(2),char(224),char(255),char(236),char(1),char(249),char(2),char(240),char(255),char(236), -char(1),char(249),char(2),char(242),char(255),char(236),char(1),char(249),char(2),char(244), -char(255),char(236),char(1),char(249),char(3),char(10),char(255),char(236),char(1),char(249), -char(3),char(12),char(255),char(236),char(1),char(249),char(3),char(18),char(255),char(195), -char(1),char(249),char(3),char(22),char(255),char(236),char(1),char(249),char(3),char(26), -char(255),char(236),char(1),char(249),char(3),char(28),char(255),char(195),char(1),char(250), -char(0),char(15),char(255),char(154),char(1),char(250),char(0),char(17),char(255),char(154), -char(1),char(250),char(0),char(34),char(0),char(41),char(1),char(250),char(0),char(36), -char(255),char(174),char(1),char(250),char(0),char(38),char(255),char(236),char(1),char(250), -char(0),char(42),char(255),char(236),char(1),char(250),char(0),char(50),char(255),char(236), -char(1),char(250),char(0),char(52),char(255),char(236),char(1),char(250),char(0),char(68), -char(255),char(215),char(1),char(250),char(0),char(70),char(255),char(215),char(1),char(250), -char(0),char(71),char(255),char(215),char(1),char(250),char(0),char(72),char(255),char(215), -char(1),char(250),char(0),char(74),char(255),char(236),char(1),char(250),char(0),char(80), -char(255),char(236),char(1),char(250),char(0),char(81),char(255),char(236),char(1),char(250), -char(0),char(82),char(255),char(215),char(1),char(250),char(0),char(83),char(255),char(236), -char(1),char(250),char(0),char(84),char(255),char(215),char(1),char(250),char(0),char(85), -char(255),char(236),char(1),char(250),char(0),char(86),char(255),char(236),char(1),char(250), -char(0),char(88),char(255),char(236),char(1),char(250),char(0),char(130),char(255),char(174), -char(1),char(250),char(0),char(131),char(255),char(174),char(1),char(250),char(0),char(132), -char(255),char(174),char(1),char(250),char(0),char(133),char(255),char(174),char(1),char(250), -char(0),char(134),char(255),char(174),char(1),char(250),char(0),char(135),char(255),char(174), -char(1),char(250),char(0),char(137),char(255),char(236),char(1),char(250),char(0),char(148), -char(255),char(236),char(1),char(250),char(0),char(149),char(255),char(236),char(1),char(250), -char(0),char(150),char(255),char(236),char(1),char(250),char(0),char(151),char(255),char(236), -char(1),char(250),char(0),char(152),char(255),char(236),char(1),char(250),char(0),char(154), -char(255),char(236),char(1),char(250),char(0),char(162),char(255),char(215),char(1),char(250), -char(0),char(163),char(255),char(215),char(1),char(250),char(0),char(164),char(255),char(215), -char(1),char(250),char(0),char(165),char(255),char(215),char(1),char(250),char(0),char(166), -char(255),char(215),char(1),char(250),char(0),char(167),char(255),char(215),char(1),char(250), -char(0),char(168),char(255),char(215),char(1),char(250),char(0),char(169),char(255),char(215), -char(1),char(250),char(0),char(170),char(255),char(215),char(1),char(250),char(0),char(171), -char(255),char(215),char(1),char(250),char(0),char(172),char(255),char(215),char(1),char(250), -char(0),char(173),char(255),char(215),char(1),char(250),char(0),char(180),char(255),char(215), -char(1),char(250),char(0),char(181),char(255),char(215),char(1),char(250),char(0),char(182), -char(255),char(215),char(1),char(250),char(0),char(183),char(255),char(215),char(1),char(250), -char(0),char(184),char(255),char(215),char(1),char(250),char(0),char(186),char(255),char(215), -char(1),char(250),char(0),char(187),char(255),char(236),char(1),char(250),char(0),char(188), -char(255),char(236),char(1),char(250),char(0),char(189),char(255),char(236),char(1),char(250), -char(0),char(190),char(255),char(236),char(1),char(250),char(0),char(194),char(255),char(174), -char(1),char(250),char(0),char(195),char(255),char(215),char(1),char(250),char(0),char(196), -char(255),char(174),char(1),char(250),char(0),char(197),char(255),char(215),char(1),char(250), -char(0),char(198),char(255),char(174),char(1),char(250),char(0),char(199),char(255),char(215), -char(1),char(250),char(0),char(200),char(255),char(236),char(1),char(250),char(0),char(201), -char(255),char(215),char(1),char(250),char(0),char(202),char(255),char(236),char(1),char(250), -char(0),char(203),char(255),char(215),char(1),char(250),char(0),char(204),char(255),char(236), -char(1),char(250),char(0),char(205),char(255),char(215),char(1),char(250),char(0),char(206), -char(255),char(236),char(1),char(250),char(0),char(207),char(255),char(215),char(1),char(250), -char(0),char(209),char(255),char(215),char(1),char(250),char(0),char(211),char(255),char(215), -char(1),char(250),char(0),char(213),char(255),char(215),char(1),char(250),char(0),char(215), -char(255),char(215),char(1),char(250),char(0),char(217),char(255),char(215),char(1),char(250), -char(0),char(219),char(255),char(215),char(1),char(250),char(0),char(221),char(255),char(215), -char(1),char(250),char(0),char(222),char(255),char(236),char(1),char(250),char(0),char(223), -char(255),char(236),char(1),char(250),char(0),char(224),char(255),char(236),char(1),char(250), -char(0),char(225),char(255),char(236),char(1),char(250),char(0),char(226),char(255),char(236), -char(1),char(250),char(0),char(227),char(255),char(236),char(1),char(250),char(0),char(228), -char(255),char(236),char(1),char(250),char(0),char(229),char(255),char(236),char(1),char(250), -char(0),char(250),char(255),char(236),char(1),char(250),char(1),char(6),char(255),char(236), -char(1),char(250),char(1),char(8),char(255),char(236),char(1),char(250),char(1),char(13), -char(255),char(236),char(1),char(250),char(1),char(14),char(255),char(236),char(1),char(250), -char(1),char(15),char(255),char(215),char(1),char(250),char(1),char(16),char(255),char(236), -char(1),char(250),char(1),char(17),char(255),char(215),char(1),char(250),char(1),char(18), -char(255),char(236),char(1),char(250),char(1),char(19),char(255),char(215),char(1),char(250), -char(1),char(20),char(255),char(236),char(1),char(250),char(1),char(21),char(255),char(215), -char(1),char(250),char(1),char(23),char(255),char(236),char(1),char(250),char(1),char(25), -char(255),char(236),char(1),char(250),char(1),char(29),char(255),char(236),char(1),char(250), -char(1),char(33),char(255),char(236),char(1),char(250),char(1),char(43),char(255),char(236), -char(1),char(250),char(1),char(45),char(255),char(236),char(1),char(250),char(1),char(47), -char(255),char(236),char(1),char(250),char(1),char(49),char(255),char(236),char(1),char(250), -char(1),char(51),char(255),char(236),char(1),char(250),char(1),char(53),char(255),char(236), -char(1),char(250),char(1),char(67),char(255),char(174),char(1),char(250),char(1),char(68), -char(255),char(215),char(1),char(250),char(1),char(70),char(255),char(215),char(1),char(250), -char(1),char(71),char(255),char(236),char(1),char(250),char(1),char(72),char(255),char(215), -char(1),char(250),char(1),char(74),char(255),char(236),char(1),char(250),char(2),char(8), -char(255),char(154),char(1),char(250),char(2),char(12),char(255),char(154),char(1),char(250), -char(2),char(87),char(255),char(236),char(1),char(250),char(2),char(88),char(255),char(174), -char(1),char(250),char(2),char(89),char(255),char(215),char(1),char(250),char(2),char(95), -char(255),char(236),char(1),char(250),char(2),char(96),char(255),char(215),char(1),char(250), -char(2),char(98),char(255),char(236),char(1),char(250),char(3),char(29),char(255),char(174), -char(1),char(250),char(3),char(30),char(255),char(215),char(1),char(250),char(3),char(31), -char(255),char(174),char(1),char(250),char(3),char(32),char(255),char(215),char(1),char(250), -char(3),char(33),char(255),char(174),char(1),char(250),char(3),char(34),char(255),char(215), -char(1),char(250),char(3),char(35),char(255),char(174),char(1),char(250),char(3),char(37), -char(255),char(174),char(1),char(250),char(3),char(38),char(255),char(215),char(1),char(250), -char(3),char(39),char(255),char(174),char(1),char(250),char(3),char(40),char(255),char(215), -char(1),char(250),char(3),char(41),char(255),char(174),char(1),char(250),char(3),char(42), -char(255),char(215),char(1),char(250),char(3),char(43),char(255),char(174),char(1),char(250), -char(3),char(44),char(255),char(215),char(1),char(250),char(3),char(45),char(255),char(174), -char(1),char(250),char(3),char(46),char(255),char(215),char(1),char(250),char(3),char(47), -char(255),char(174),char(1),char(250),char(3),char(48),char(255),char(215),char(1),char(250), -char(3),char(49),char(255),char(174),char(1),char(250),char(3),char(50),char(255),char(215), -char(1),char(250),char(3),char(51),char(255),char(174),char(1),char(250),char(3),char(52), -char(255),char(215),char(1),char(250),char(3),char(54),char(255),char(215),char(1),char(250), -char(3),char(56),char(255),char(215),char(1),char(250),char(3),char(58),char(255),char(215), -char(1),char(250),char(3),char(60),char(255),char(215),char(1),char(250),char(3),char(64), -char(255),char(215),char(1),char(250),char(3),char(66),char(255),char(215),char(1),char(250), -char(3),char(68),char(255),char(215),char(1),char(250),char(3),char(73),char(255),char(236), -char(1),char(250),char(3),char(74),char(255),char(215),char(1),char(250),char(3),char(75), -char(255),char(236),char(1),char(250),char(3),char(76),char(255),char(215),char(1),char(250), -char(3),char(77),char(255),char(236),char(1),char(250),char(3),char(78),char(255),char(215), -char(1),char(250),char(3),char(79),char(255),char(236),char(1),char(250),char(3),char(81), -char(255),char(236),char(1),char(250),char(3),char(82),char(255),char(215),char(1),char(250), -char(3),char(83),char(255),char(236),char(1),char(250),char(3),char(84),char(255),char(215), -char(1),char(250),char(3),char(85),char(255),char(236),char(1),char(250),char(3),char(86), -char(255),char(215),char(1),char(250),char(3),char(87),char(255),char(236),char(1),char(250), -char(3),char(88),char(255),char(215),char(1),char(250),char(3),char(89),char(255),char(236), -char(1),char(250),char(3),char(90),char(255),char(215),char(1),char(250),char(3),char(91), -char(255),char(236),char(1),char(250),char(3),char(92),char(255),char(215),char(1),char(250), -char(3),char(93),char(255),char(236),char(1),char(250),char(3),char(94),char(255),char(215), -char(1),char(250),char(3),char(95),char(255),char(236),char(1),char(250),char(3),char(96), -char(255),char(215),char(1),char(250),char(3),char(98),char(255),char(236),char(1),char(250), -char(3),char(100),char(255),char(236),char(1),char(250),char(3),char(102),char(255),char(236), -char(1),char(250),char(3),char(104),char(255),char(236),char(1),char(250),char(3),char(106), -char(255),char(236),char(1),char(250),char(3),char(108),char(255),char(236),char(1),char(250), -char(3),char(110),char(255),char(236),char(1),char(251),char(0),char(5),char(0),char(82), -char(1),char(251),char(0),char(10),char(0),char(82),char(1),char(251),char(0),char(15), -char(255),char(174),char(1),char(251),char(0),char(17),char(255),char(174),char(1),char(251), -char(0),char(34),char(0),char(41),char(1),char(251),char(2),char(7),char(0),char(82), -char(1),char(251),char(2),char(8),char(255),char(174),char(1),char(251),char(2),char(11), -char(0),char(82),char(1),char(251),char(2),char(12),char(255),char(174),char(1),char(252), -char(0),char(15),char(255),char(154),char(1),char(252),char(0),char(17),char(255),char(154), -char(1),char(252),char(0),char(34),char(0),char(41),char(1),char(252),char(0),char(36), -char(255),char(174),char(1),char(252),char(0),char(38),char(255),char(236),char(1),char(252), -char(0),char(42),char(255),char(236),char(1),char(252),char(0),char(50),char(255),char(236), -char(1),char(252),char(0),char(52),char(255),char(236),char(1),char(252),char(0),char(68), -char(255),char(215),char(1),char(252),char(0),char(70),char(255),char(215),char(1),char(252), -char(0),char(71),char(255),char(215),char(1),char(252),char(0),char(72),char(255),char(215), -char(1),char(252),char(0),char(74),char(255),char(236),char(1),char(252),char(0),char(80), -char(255),char(236),char(1),char(252),char(0),char(81),char(255),char(236),char(1),char(252), -char(0),char(82),char(255),char(215),char(1),char(252),char(0),char(83),char(255),char(236), -char(1),char(252),char(0),char(84),char(255),char(215),char(1),char(252),char(0),char(85), -char(255),char(236),char(1),char(252),char(0),char(86),char(255),char(236),char(1),char(252), -char(0),char(88),char(255),char(236),char(1),char(252),char(0),char(130),char(255),char(174), -char(1),char(252),char(0),char(131),char(255),char(174),char(1),char(252),char(0),char(132), -char(255),char(174),char(1),char(252),char(0),char(133),char(255),char(174),char(1),char(252), -char(0),char(134),char(255),char(174),char(1),char(252),char(0),char(135),char(255),char(174), -char(1),char(252),char(0),char(137),char(255),char(236),char(1),char(252),char(0),char(148), -char(255),char(236),char(1),char(252),char(0),char(149),char(255),char(236),char(1),char(252), -char(0),char(150),char(255),char(236),char(1),char(252),char(0),char(151),char(255),char(236), -char(1),char(252),char(0),char(152),char(255),char(236),char(1),char(252),char(0),char(154), -char(255),char(236),char(1),char(252),char(0),char(162),char(255),char(215),char(1),char(252), -char(0),char(163),char(255),char(215),char(1),char(252),char(0),char(164),char(255),char(215), -char(1),char(252),char(0),char(165),char(255),char(215),char(1),char(252),char(0),char(166), -char(255),char(215),char(1),char(252),char(0),char(167),char(255),char(215),char(1),char(252), -char(0),char(168),char(255),char(215),char(1),char(252),char(0),char(169),char(255),char(215), -char(1),char(252),char(0),char(170),char(255),char(215),char(1),char(252),char(0),char(171), -char(255),char(215),char(1),char(252),char(0),char(172),char(255),char(215),char(1),char(252), -char(0),char(173),char(255),char(215),char(1),char(252),char(0),char(180),char(255),char(215), -char(1),char(252),char(0),char(181),char(255),char(215),char(1),char(252),char(0),char(182), -char(255),char(215),char(1),char(252),char(0),char(183),char(255),char(215),char(1),char(252), -char(0),char(184),char(255),char(215),char(1),char(252),char(0),char(186),char(255),char(215), -char(1),char(252),char(0),char(187),char(255),char(236),char(1),char(252),char(0),char(188), -char(255),char(236),char(1),char(252),char(0),char(189),char(255),char(236),char(1),char(252), -char(0),char(190),char(255),char(236),char(1),char(252),char(0),char(194),char(255),char(174), -char(1),char(252),char(0),char(195),char(255),char(215),char(1),char(252),char(0),char(196), -char(255),char(174),char(1),char(252),char(0),char(197),char(255),char(215),char(1),char(252), -char(0),char(198),char(255),char(174),char(1),char(252),char(0),char(199),char(255),char(215), -char(1),char(252),char(0),char(200),char(255),char(236),char(1),char(252),char(0),char(201), -char(255),char(215),char(1),char(252),char(0),char(202),char(255),char(236),char(1),char(252), -char(0),char(203),char(255),char(215),char(1),char(252),char(0),char(204),char(255),char(236), -char(1),char(252),char(0),char(205),char(255),char(215),char(1),char(252),char(0),char(206), -char(255),char(236),char(1),char(252),char(0),char(207),char(255),char(215),char(1),char(252), -char(0),char(209),char(255),char(215),char(1),char(252),char(0),char(211),char(255),char(215), -char(1),char(252),char(0),char(213),char(255),char(215),char(1),char(252),char(0),char(215), -char(255),char(215),char(1),char(252),char(0),char(217),char(255),char(215),char(1),char(252), -char(0),char(219),char(255),char(215),char(1),char(252),char(0),char(221),char(255),char(215), -char(1),char(252),char(0),char(222),char(255),char(236),char(1),char(252),char(0),char(223), -char(255),char(236),char(1),char(252),char(0),char(224),char(255),char(236),char(1),char(252), -char(0),char(225),char(255),char(236),char(1),char(252),char(0),char(226),char(255),char(236), -char(1),char(252),char(0),char(227),char(255),char(236),char(1),char(252),char(0),char(228), -char(255),char(236),char(1),char(252),char(0),char(229),char(255),char(236),char(1),char(252), -char(0),char(250),char(255),char(236),char(1),char(252),char(1),char(6),char(255),char(236), -char(1),char(252),char(1),char(8),char(255),char(236),char(1),char(252),char(1),char(13), -char(255),char(236),char(1),char(252),char(1),char(14),char(255),char(236),char(1),char(252), -char(1),char(15),char(255),char(215),char(1),char(252),char(1),char(16),char(255),char(236), -char(1),char(252),char(1),char(17),char(255),char(215),char(1),char(252),char(1),char(18), -char(255),char(236),char(1),char(252),char(1),char(19),char(255),char(215),char(1),char(252), -char(1),char(20),char(255),char(236),char(1),char(252),char(1),char(21),char(255),char(215), -char(1),char(252),char(1),char(23),char(255),char(236),char(1),char(252),char(1),char(25), -char(255),char(236),char(1),char(252),char(1),char(29),char(255),char(236),char(1),char(252), -char(1),char(33),char(255),char(236),char(1),char(252),char(1),char(43),char(255),char(236), -char(1),char(252),char(1),char(45),char(255),char(236),char(1),char(252),char(1),char(47), -char(255),char(236),char(1),char(252),char(1),char(49),char(255),char(236),char(1),char(252), -char(1),char(51),char(255),char(236),char(1),char(252),char(1),char(53),char(255),char(236), -char(1),char(252),char(1),char(67),char(255),char(174),char(1),char(252),char(1),char(68), -char(255),char(215),char(1),char(252),char(1),char(70),char(255),char(215),char(1),char(252), -char(1),char(71),char(255),char(236),char(1),char(252),char(1),char(72),char(255),char(215), -char(1),char(252),char(1),char(74),char(255),char(236),char(1),char(252),char(2),char(8), -char(255),char(154),char(1),char(252),char(2),char(12),char(255),char(154),char(1),char(252), -char(2),char(87),char(255),char(236),char(1),char(252),char(2),char(88),char(255),char(174), -char(1),char(252),char(2),char(89),char(255),char(215),char(1),char(252),char(2),char(95), -char(255),char(236),char(1),char(252),char(2),char(96),char(255),char(215),char(1),char(252), -char(2),char(98),char(255),char(236),char(1),char(252),char(3),char(29),char(255),char(174), -char(1),char(252),char(3),char(30),char(255),char(215),char(1),char(252),char(3),char(31), -char(255),char(174),char(1),char(252),char(3),char(32),char(255),char(215),char(1),char(252), -char(3),char(33),char(255),char(174),char(1),char(252),char(3),char(34),char(255),char(215), -char(1),char(252),char(3),char(35),char(255),char(174),char(1),char(252),char(3),char(37), -char(255),char(174),char(1),char(252),char(3),char(38),char(255),char(215),char(1),char(252), -char(3),char(39),char(255),char(174),char(1),char(252),char(3),char(40),char(255),char(215), -char(1),char(252),char(3),char(41),char(255),char(174),char(1),char(252),char(3),char(42), -char(255),char(215),char(1),char(252),char(3),char(43),char(255),char(174),char(1),char(252), -char(3),char(44),char(255),char(215),char(1),char(252),char(3),char(45),char(255),char(174), -char(1),char(252),char(3),char(46),char(255),char(215),char(1),char(252),char(3),char(47), -char(255),char(174),char(1),char(252),char(3),char(48),char(255),char(215),char(1),char(252), -char(3),char(49),char(255),char(174),char(1),char(252),char(3),char(50),char(255),char(215), -char(1),char(252),char(3),char(51),char(255),char(174),char(1),char(252),char(3),char(52), -char(255),char(215),char(1),char(252),char(3),char(54),char(255),char(215),char(1),char(252), -char(3),char(56),char(255),char(215),char(1),char(252),char(3),char(58),char(255),char(215), -char(1),char(252),char(3),char(60),char(255),char(215),char(1),char(252),char(3),char(64), -char(255),char(215),char(1),char(252),char(3),char(66),char(255),char(215),char(1),char(252), -char(3),char(68),char(255),char(215),char(1),char(252),char(3),char(73),char(255),char(236), -char(1),char(252),char(3),char(74),char(255),char(215),char(1),char(252),char(3),char(75), -char(255),char(236),char(1),char(252),char(3),char(76),char(255),char(215),char(1),char(252), -char(3),char(77),char(255),char(236),char(1),char(252),char(3),char(78),char(255),char(215), -char(1),char(252),char(3),char(79),char(255),char(236),char(1),char(252),char(3),char(81), -char(255),char(236),char(1),char(252),char(3),char(82),char(255),char(215),char(1),char(252), -char(3),char(83),char(255),char(236),char(1),char(252),char(3),char(84),char(255),char(215), -char(1),char(252),char(3),char(85),char(255),char(236),char(1),char(252),char(3),char(86), -char(255),char(215),char(1),char(252),char(3),char(87),char(255),char(236),char(1),char(252), -char(3),char(88),char(255),char(215),char(1),char(252),char(3),char(89),char(255),char(236), -char(1),char(252),char(3),char(90),char(255),char(215),char(1),char(252),char(3),char(91), -char(255),char(236),char(1),char(252),char(3),char(92),char(255),char(215),char(1),char(252), -char(3),char(93),char(255),char(236),char(1),char(252),char(3),char(94),char(255),char(215), -char(1),char(252),char(3),char(95),char(255),char(236),char(1),char(252),char(3),char(96), -char(255),char(215),char(1),char(252),char(3),char(98),char(255),char(236),char(1),char(252), -char(3),char(100),char(255),char(236),char(1),char(252),char(3),char(102),char(255),char(236), -char(1),char(252),char(3),char(104),char(255),char(236),char(1),char(252),char(3),char(106), -char(255),char(236),char(1),char(252),char(3),char(108),char(255),char(236),char(1),char(252), -char(3),char(110),char(255),char(236),char(1),char(253),char(0),char(5),char(0),char(82), -char(1),char(253),char(0),char(10),char(0),char(82),char(1),char(253),char(0),char(15), -char(255),char(174),char(1),char(253),char(0),char(17),char(255),char(174),char(1),char(253), -char(0),char(34),char(0),char(41),char(1),char(253),char(2),char(7),char(0),char(82), -char(1),char(253),char(2),char(8),char(255),char(174),char(1),char(253),char(2),char(11), -char(0),char(82),char(1),char(253),char(2),char(12),char(255),char(174),char(1),char(254), -char(0),char(15),char(255),char(154),char(1),char(254),char(0),char(17),char(255),char(154), -char(1),char(254),char(0),char(34),char(0),char(41),char(1),char(254),char(0),char(36), -char(255),char(174),char(1),char(254),char(0),char(38),char(255),char(236),char(1),char(254), -char(0),char(42),char(255),char(236),char(1),char(254),char(0),char(50),char(255),char(236), -char(1),char(254),char(0),char(52),char(255),char(236),char(1),char(254),char(0),char(68), -char(255),char(215),char(1),char(254),char(0),char(70),char(255),char(215),char(1),char(254), -char(0),char(71),char(255),char(215),char(1),char(254),char(0),char(72),char(255),char(215), -char(1),char(254),char(0),char(74),char(255),char(236),char(1),char(254),char(0),char(80), -char(255),char(236),char(1),char(254),char(0),char(81),char(255),char(236),char(1),char(254), -char(0),char(82),char(255),char(215),char(1),char(254),char(0),char(83),char(255),char(236), -char(1),char(254),char(0),char(84),char(255),char(215),char(1),char(254),char(0),char(85), -char(255),char(236),char(1),char(254),char(0),char(86),char(255),char(236),char(1),char(254), -char(0),char(88),char(255),char(236),char(1),char(254),char(0),char(130),char(255),char(174), -char(1),char(254),char(0),char(131),char(255),char(174),char(1),char(254),char(0),char(132), -char(255),char(174),char(1),char(254),char(0),char(133),char(255),char(174),char(1),char(254), -char(0),char(134),char(255),char(174),char(1),char(254),char(0),char(135),char(255),char(174), -char(1),char(254),char(0),char(137),char(255),char(236),char(1),char(254),char(0),char(148), -char(255),char(236),char(1),char(254),char(0),char(149),char(255),char(236),char(1),char(254), -char(0),char(150),char(255),char(236),char(1),char(254),char(0),char(151),char(255),char(236), -char(1),char(254),char(0),char(152),char(255),char(236),char(1),char(254),char(0),char(154), -char(255),char(236),char(1),char(254),char(0),char(162),char(255),char(215),char(1),char(254), -char(0),char(163),char(255),char(215),char(1),char(254),char(0),char(164),char(255),char(215), -char(1),char(254),char(0),char(165),char(255),char(215),char(1),char(254),char(0),char(166), -char(255),char(215),char(1),char(254),char(0),char(167),char(255),char(215),char(1),char(254), -char(0),char(168),char(255),char(215),char(1),char(254),char(0),char(169),char(255),char(215), -char(1),char(254),char(0),char(170),char(255),char(215),char(1),char(254),char(0),char(171), -char(255),char(215),char(1),char(254),char(0),char(172),char(255),char(215),char(1),char(254), -char(0),char(173),char(255),char(215),char(1),char(254),char(0),char(180),char(255),char(215), -char(1),char(254),char(0),char(181),char(255),char(215),char(1),char(254),char(0),char(182), -char(255),char(215),char(1),char(254),char(0),char(183),char(255),char(215),char(1),char(254), -char(0),char(184),char(255),char(215),char(1),char(254),char(0),char(186),char(255),char(215), -char(1),char(254),char(0),char(187),char(255),char(236),char(1),char(254),char(0),char(188), -char(255),char(236),char(1),char(254),char(0),char(189),char(255),char(236),char(1),char(254), -char(0),char(190),char(255),char(236),char(1),char(254),char(0),char(194),char(255),char(174), -char(1),char(254),char(0),char(195),char(255),char(215),char(1),char(254),char(0),char(196), -char(255),char(174),char(1),char(254),char(0),char(197),char(255),char(215),char(1),char(254), -char(0),char(198),char(255),char(174),char(1),char(254),char(0),char(199),char(255),char(215), -char(1),char(254),char(0),char(200),char(255),char(236),char(1),char(254),char(0),char(201), -char(255),char(215),char(1),char(254),char(0),char(202),char(255),char(236),char(1),char(254), -char(0),char(203),char(255),char(215),char(1),char(254),char(0),char(204),char(255),char(236), -char(1),char(254),char(0),char(205),char(255),char(215),char(1),char(254),char(0),char(206), -char(255),char(236),char(1),char(254),char(0),char(207),char(255),char(215),char(1),char(254), -char(0),char(209),char(255),char(215),char(1),char(254),char(0),char(211),char(255),char(215), -char(1),char(254),char(0),char(213),char(255),char(215),char(1),char(254),char(0),char(215), -char(255),char(215),char(1),char(254),char(0),char(217),char(255),char(215),char(1),char(254), -char(0),char(219),char(255),char(215),char(1),char(254),char(0),char(221),char(255),char(215), -char(1),char(254),char(0),char(222),char(255),char(236),char(1),char(254),char(0),char(223), -char(255),char(236),char(1),char(254),char(0),char(224),char(255),char(236),char(1),char(254), -char(0),char(225),char(255),char(236),char(1),char(254),char(0),char(226),char(255),char(236), -char(1),char(254),char(0),char(227),char(255),char(236),char(1),char(254),char(0),char(228), -char(255),char(236),char(1),char(254),char(0),char(229),char(255),char(236),char(1),char(254), -char(0),char(250),char(255),char(236),char(1),char(254),char(1),char(6),char(255),char(236), -char(1),char(254),char(1),char(8),char(255),char(236),char(1),char(254),char(1),char(13), -char(255),char(236),char(1),char(254),char(1),char(14),char(255),char(236),char(1),char(254), -char(1),char(15),char(255),char(215),char(1),char(254),char(1),char(16),char(255),char(236), -char(1),char(254),char(1),char(17),char(255),char(215),char(1),char(254),char(1),char(18), -char(255),char(236),char(1),char(254),char(1),char(19),char(255),char(215),char(1),char(254), -char(1),char(20),char(255),char(236),char(1),char(254),char(1),char(21),char(255),char(215), -char(1),char(254),char(1),char(23),char(255),char(236),char(1),char(254),char(1),char(25), -char(255),char(236),char(1),char(254),char(1),char(29),char(255),char(236),char(1),char(254), -char(1),char(33),char(255),char(236),char(1),char(254),char(1),char(43),char(255),char(236), -char(1),char(254),char(1),char(45),char(255),char(236),char(1),char(254),char(1),char(47), -char(255),char(236),char(1),char(254),char(1),char(49),char(255),char(236),char(1),char(254), -char(1),char(51),char(255),char(236),char(1),char(254),char(1),char(53),char(255),char(236), -char(1),char(254),char(1),char(67),char(255),char(174),char(1),char(254),char(1),char(68), -char(255),char(215),char(1),char(254),char(1),char(70),char(255),char(215),char(1),char(254), -char(1),char(71),char(255),char(236),char(1),char(254),char(1),char(72),char(255),char(215), -char(1),char(254),char(1),char(74),char(255),char(236),char(1),char(254),char(2),char(8), -char(255),char(154),char(1),char(254),char(2),char(12),char(255),char(154),char(1),char(254), -char(2),char(87),char(255),char(236),char(1),char(254),char(2),char(88),char(255),char(174), -char(1),char(254),char(2),char(89),char(255),char(215),char(1),char(254),char(2),char(95), -char(255),char(236),char(1),char(254),char(2),char(96),char(255),char(215),char(1),char(254), -char(2),char(98),char(255),char(236),char(1),char(254),char(3),char(29),char(255),char(174), -char(1),char(254),char(3),char(30),char(255),char(215),char(1),char(254),char(3),char(31), -char(255),char(174),char(1),char(254),char(3),char(32),char(255),char(215),char(1),char(254), -char(3),char(33),char(255),char(174),char(1),char(254),char(3),char(34),char(255),char(215), -char(1),char(254),char(3),char(35),char(255),char(174),char(1),char(254),char(3),char(37), -char(255),char(174),char(1),char(254),char(3),char(38),char(255),char(215),char(1),char(254), -char(3),char(39),char(255),char(174),char(1),char(254),char(3),char(40),char(255),char(215), -char(1),char(254),char(3),char(41),char(255),char(174),char(1),char(254),char(3),char(42), -char(255),char(215),char(1),char(254),char(3),char(43),char(255),char(174),char(1),char(254), -char(3),char(44),char(255),char(215),char(1),char(254),char(3),char(45),char(255),char(174), -char(1),char(254),char(3),char(46),char(255),char(215),char(1),char(254),char(3),char(47), -char(255),char(174),char(1),char(254),char(3),char(48),char(255),char(215),char(1),char(254), -char(3),char(49),char(255),char(174),char(1),char(254),char(3),char(50),char(255),char(215), -char(1),char(254),char(3),char(51),char(255),char(174),char(1),char(254),char(3),char(52), -char(255),char(215),char(1),char(254),char(3),char(54),char(255),char(215),char(1),char(254), -char(3),char(56),char(255),char(215),char(1),char(254),char(3),char(58),char(255),char(215), -char(1),char(254),char(3),char(60),char(255),char(215),char(1),char(254),char(3),char(64), -char(255),char(215),char(1),char(254),char(3),char(66),char(255),char(215),char(1),char(254), -char(3),char(68),char(255),char(215),char(1),char(254),char(3),char(73),char(255),char(236), -char(1),char(254),char(3),char(74),char(255),char(215),char(1),char(254),char(3),char(75), -char(255),char(236),char(1),char(254),char(3),char(76),char(255),char(215),char(1),char(254), -char(3),char(77),char(255),char(236),char(1),char(254),char(3),char(78),char(255),char(215), -char(1),char(254),char(3),char(79),char(255),char(236),char(1),char(254),char(3),char(81), -char(255),char(236),char(1),char(254),char(3),char(82),char(255),char(215),char(1),char(254), -char(3),char(83),char(255),char(236),char(1),char(254),char(3),char(84),char(255),char(215), -char(1),char(254),char(3),char(85),char(255),char(236),char(1),char(254),char(3),char(86), -char(255),char(215),char(1),char(254),char(3),char(87),char(255),char(236),char(1),char(254), -char(3),char(88),char(255),char(215),char(1),char(254),char(3),char(89),char(255),char(236), -char(1),char(254),char(3),char(90),char(255),char(215),char(1),char(254),char(3),char(91), -char(255),char(236),char(1),char(254),char(3),char(92),char(255),char(215),char(1),char(254), -char(3),char(93),char(255),char(236),char(1),char(254),char(3),char(94),char(255),char(215), -char(1),char(254),char(3),char(95),char(255),char(236),char(1),char(254),char(3),char(96), -char(255),char(215),char(1),char(254),char(3),char(98),char(255),char(236),char(1),char(254), -char(3),char(100),char(255),char(236),char(1),char(254),char(3),char(102),char(255),char(236), -char(1),char(254),char(3),char(104),char(255),char(236),char(1),char(254),char(3),char(106), -char(255),char(236),char(1),char(254),char(3),char(108),char(255),char(236),char(1),char(254), -char(3),char(110),char(255),char(236),char(1),char(255),char(0),char(5),char(0),char(82), -char(1),char(255),char(0),char(10),char(0),char(82),char(1),char(255),char(0),char(15), -char(255),char(174),char(1),char(255),char(0),char(17),char(255),char(174),char(1),char(255), -char(0),char(34),char(0),char(41),char(1),char(255),char(2),char(7),char(0),char(82), -char(1),char(255),char(2),char(8),char(255),char(174),char(1),char(255),char(2),char(11), -char(0),char(82),char(1),char(255),char(2),char(12),char(255),char(174),char(2),char(0), -char(0),char(15),char(255),char(133),char(2),char(0),char(0),char(17),char(255),char(133), -char(2),char(0),char(0),char(34),char(0),char(41),char(2),char(0),char(0),char(36), -char(255),char(133),char(2),char(0),char(0),char(38),char(255),char(215),char(2),char(0), -char(0),char(42),char(255),char(215),char(2),char(0),char(0),char(50),char(255),char(215), -char(2),char(0),char(0),char(52),char(255),char(215),char(2),char(0),char(0),char(68), -char(255),char(154),char(2),char(0),char(0),char(70),char(255),char(154),char(2),char(0), -char(0),char(71),char(255),char(154),char(2),char(0),char(0),char(72),char(255),char(154), -char(2),char(0),char(0),char(74),char(255),char(215),char(2),char(0),char(0),char(80), -char(255),char(195),char(2),char(0),char(0),char(81),char(255),char(195),char(2),char(0), -char(0),char(82),char(255),char(154),char(2),char(0),char(0),char(83),char(255),char(195), -char(2),char(0),char(0),char(84),char(255),char(154),char(2),char(0),char(0),char(85), -char(255),char(195),char(2),char(0),char(0),char(86),char(255),char(174),char(2),char(0), -char(0),char(88),char(255),char(195),char(2),char(0),char(0),char(93),char(255),char(215), -char(2),char(0),char(0),char(130),char(255),char(133),char(2),char(0),char(0),char(131), -char(255),char(133),char(2),char(0),char(0),char(132),char(255),char(133),char(2),char(0), -char(0),char(133),char(255),char(133),char(2),char(0),char(0),char(134),char(255),char(133), -char(2),char(0),char(0),char(135),char(255),char(133),char(2),char(0),char(0),char(137), -char(255),char(215),char(2),char(0),char(0),char(148),char(255),char(215),char(2),char(0), -char(0),char(149),char(255),char(215),char(2),char(0),char(0),char(150),char(255),char(215), -char(2),char(0),char(0),char(151),char(255),char(215),char(2),char(0),char(0),char(152), -char(255),char(215),char(2),char(0),char(0),char(154),char(255),char(215),char(2),char(0), -char(0),char(162),char(255),char(154),char(2),char(0),char(0),char(163),char(255),char(154), -char(2),char(0),char(0),char(164),char(255),char(154),char(2),char(0),char(0),char(165), -char(255),char(154),char(2),char(0),char(0),char(166),char(255),char(154),char(2),char(0), -char(0),char(167),char(255),char(154),char(2),char(0),char(0),char(168),char(255),char(154), -char(2),char(0),char(0),char(169),char(255),char(154),char(2),char(0),char(0),char(170), -char(255),char(154),char(2),char(0),char(0),char(171),char(255),char(154),char(2),char(0), -char(0),char(172),char(255),char(154),char(2),char(0),char(0),char(173),char(255),char(154), -char(2),char(0),char(0),char(180),char(255),char(154),char(2),char(0),char(0),char(181), -char(255),char(154),char(2),char(0),char(0),char(182),char(255),char(154),char(2),char(0), -char(0),char(183),char(255),char(154),char(2),char(0),char(0),char(184),char(255),char(154), -char(2),char(0),char(0),char(186),char(255),char(154),char(2),char(0),char(0),char(187), -char(255),char(195),char(2),char(0),char(0),char(188),char(255),char(195),char(2),char(0), -char(0),char(189),char(255),char(195),char(2),char(0),char(0),char(190),char(255),char(195), -char(2),char(0),char(0),char(194),char(255),char(133),char(2),char(0),char(0),char(195), -char(255),char(154),char(2),char(0),char(0),char(196),char(255),char(133),char(2),char(0), -char(0),char(197),char(255),char(154),char(2),char(0),char(0),char(198),char(255),char(133), -char(2),char(0),char(0),char(199),char(255),char(154),char(2),char(0),char(0),char(200), -char(255),char(215),char(2),char(0),char(0),char(201),char(255),char(154),char(2),char(0), -char(0),char(202),char(255),char(215),char(2),char(0),char(0),char(203),char(255),char(154), -char(2),char(0),char(0),char(204),char(255),char(215),char(2),char(0),char(0),char(205), -char(255),char(154),char(2),char(0),char(0),char(206),char(255),char(215),char(2),char(0), -char(0),char(207),char(255),char(154),char(2),char(0),char(0),char(209),char(255),char(154), -char(2),char(0),char(0),char(211),char(255),char(154),char(2),char(0),char(0),char(213), -char(255),char(154),char(2),char(0),char(0),char(215),char(255),char(154),char(2),char(0), -char(0),char(217),char(255),char(154),char(2),char(0),char(0),char(219),char(255),char(154), -char(2),char(0),char(0),char(221),char(255),char(154),char(2),char(0),char(0),char(222), -char(255),char(215),char(2),char(0),char(0),char(223),char(255),char(215),char(2),char(0), -char(0),char(224),char(255),char(215),char(2),char(0),char(0),char(225),char(255),char(215), -char(2),char(0),char(0),char(226),char(255),char(215),char(2),char(0),char(0),char(227), -char(255),char(215),char(2),char(0),char(0),char(228),char(255),char(215),char(2),char(0), -char(0),char(229),char(255),char(215),char(2),char(0),char(0),char(250),char(255),char(195), -char(2),char(0),char(1),char(6),char(255),char(195),char(2),char(0),char(1),char(8), -char(255),char(195),char(2),char(0),char(1),char(13),char(255),char(195),char(2),char(0), -char(1),char(14),char(255),char(215),char(2),char(0),char(1),char(15),char(255),char(154), -char(2),char(0),char(1),char(16),char(255),char(215),char(2),char(0),char(1),char(17), -char(255),char(154),char(2),char(0),char(1),char(18),char(255),char(215),char(2),char(0), -char(1),char(19),char(255),char(154),char(2),char(0),char(1),char(20),char(255),char(215), -char(2),char(0),char(1),char(21),char(255),char(154),char(2),char(0),char(1),char(23), -char(255),char(195),char(2),char(0),char(1),char(25),char(255),char(195),char(2),char(0), -char(1),char(29),char(255),char(174),char(2),char(0),char(1),char(33),char(255),char(174), -char(2),char(0),char(1),char(43),char(255),char(195),char(2),char(0),char(1),char(45), -char(255),char(195),char(2),char(0),char(1),char(47),char(255),char(195),char(2),char(0), -char(1),char(49),char(255),char(195),char(2),char(0),char(1),char(51),char(255),char(195), -char(2),char(0),char(1),char(53),char(255),char(195),char(2),char(0),char(1),char(60), -char(255),char(215),char(2),char(0),char(1),char(62),char(255),char(215),char(2),char(0), -char(1),char(64),char(255),char(215),char(2),char(0),char(1),char(67),char(255),char(133), -char(2),char(0),char(1),char(68),char(255),char(154),char(2),char(0),char(1),char(70), -char(255),char(154),char(2),char(0),char(1),char(71),char(255),char(215),char(2),char(0), -char(1),char(72),char(255),char(154),char(2),char(0),char(1),char(74),char(255),char(174), -char(2),char(0),char(2),char(8),char(255),char(133),char(2),char(0),char(2),char(12), -char(255),char(133),char(2),char(0),char(2),char(87),char(255),char(195),char(2),char(0), -char(2),char(88),char(255),char(133),char(2),char(0),char(2),char(89),char(255),char(154), -char(2),char(0),char(2),char(95),char(255),char(215),char(2),char(0),char(2),char(96), -char(255),char(154),char(2),char(0),char(2),char(98),char(255),char(195),char(2),char(0), -char(3),char(29),char(255),char(133),char(2),char(0),char(3),char(30),char(255),char(154), -char(2),char(0),char(3),char(31),char(255),char(133),char(2),char(0),char(3),char(32), -char(255),char(154),char(2),char(0),char(3),char(33),char(255),char(133),char(2),char(0), -char(3),char(34),char(255),char(154),char(2),char(0),char(3),char(35),char(255),char(133), -char(2),char(0),char(3),char(37),char(255),char(133),char(2),char(0),char(3),char(38), -char(255),char(154),char(2),char(0),char(3),char(39),char(255),char(133),char(2),char(0), -char(3),char(40),char(255),char(154),char(2),char(0),char(3),char(41),char(255),char(133), -char(2),char(0),char(3),char(42),char(255),char(154),char(2),char(0),char(3),char(43), -char(255),char(133),char(2),char(0),char(3),char(44),char(255),char(154),char(2),char(0), -char(3),char(45),char(255),char(133),char(2),char(0),char(3),char(46),char(255),char(154), -char(2),char(0),char(3),char(47),char(255),char(133),char(2),char(0),char(3),char(48), -char(255),char(154),char(2),char(0),char(3),char(49),char(255),char(133),char(2),char(0), -char(3),char(50),char(255),char(154),char(2),char(0),char(3),char(51),char(255),char(133), -char(2),char(0),char(3),char(52),char(255),char(154),char(2),char(0),char(3),char(54), -char(255),char(154),char(2),char(0),char(3),char(56),char(255),char(154),char(2),char(0), -char(3),char(58),char(255),char(154),char(2),char(0),char(3),char(60),char(255),char(154), -char(2),char(0),char(3),char(64),char(255),char(154),char(2),char(0),char(3),char(66), -char(255),char(154),char(2),char(0),char(3),char(68),char(255),char(154),char(2),char(0), -char(3),char(73),char(255),char(215),char(2),char(0),char(3),char(74),char(255),char(154), -char(2),char(0),char(3),char(75),char(255),char(215),char(2),char(0),char(3),char(76), -char(255),char(154),char(2),char(0),char(3),char(77),char(255),char(215),char(2),char(0), -char(3),char(78),char(255),char(154),char(2),char(0),char(3),char(79),char(255),char(215), -char(2),char(0),char(3),char(81),char(255),char(215),char(2),char(0),char(3),char(82), -char(255),char(154),char(2),char(0),char(3),char(83),char(255),char(215),char(2),char(0), -char(3),char(84),char(255),char(154),char(2),char(0),char(3),char(85),char(255),char(215), -char(2),char(0),char(3),char(86),char(255),char(154),char(2),char(0),char(3),char(87), -char(255),char(215),char(2),char(0),char(3),char(88),char(255),char(154),char(2),char(0), -char(3),char(89),char(255),char(215),char(2),char(0),char(3),char(90),char(255),char(154), -char(2),char(0),char(3),char(91),char(255),char(215),char(2),char(0),char(3),char(92), -char(255),char(154),char(2),char(0),char(3),char(93),char(255),char(215),char(2),char(0), -char(3),char(94),char(255),char(154),char(2),char(0),char(3),char(95),char(255),char(215), -char(2),char(0),char(3),char(96),char(255),char(154),char(2),char(0),char(3),char(98), -char(255),char(195),char(2),char(0),char(3),char(100),char(255),char(195),char(2),char(0), -char(3),char(102),char(255),char(195),char(2),char(0),char(3),char(104),char(255),char(195), -char(2),char(0),char(3),char(106),char(255),char(195),char(2),char(0),char(3),char(108), -char(255),char(195),char(2),char(0),char(3),char(110),char(255),char(195),char(2),char(1), -char(0),char(5),char(0),char(82),char(2),char(1),char(0),char(10),char(0),char(82), -char(2),char(1),char(0),char(15),char(255),char(174),char(2),char(1),char(0),char(17), -char(255),char(174),char(2),char(1),char(0),char(34),char(0),char(41),char(2),char(1), -char(2),char(7),char(0),char(82),char(2),char(1),char(2),char(8),char(255),char(174), -char(2),char(1),char(2),char(11),char(0),char(82),char(2),char(1),char(2),char(12), -char(255),char(174),char(2),char(2),char(0),char(55),char(255),char(174),char(2),char(2), -char(1),char(36),char(255),char(174),char(2),char(2),char(1),char(38),char(255),char(174), -char(2),char(2),char(1),char(113),char(255),char(174),char(2),char(2),char(1),char(157), -char(255),char(174),char(2),char(2),char(1),char(166),char(255),char(174),char(2),char(2), -char(1),char(188),char(255),char(174),char(2),char(2),char(1),char(196),char(255),char(174), -char(2),char(2),char(1),char(220),char(255),char(215),char(2),char(2),char(1),char(228), -char(255),char(215),char(2),char(2),char(2),char(169),char(255),char(174),char(2),char(2), -char(2),char(170),char(255),char(215),char(2),char(2),char(2),char(181),char(255),char(174), -char(2),char(2),char(2),char(182),char(255),char(215),char(2),char(2),char(2),char(189), -char(255),char(174),char(2),char(2),char(2),char(190),char(255),char(215),char(2),char(2), -char(3),char(23),char(255),char(174),char(2),char(2),char(3),char(24),char(255),char(215), -char(2),char(2),char(3),char(143),char(255),char(174),char(2),char(3),char(0),char(55), -char(255),char(174),char(2),char(3),char(1),char(36),char(255),char(174),char(2),char(3), -char(1),char(38),char(255),char(174),char(2),char(3),char(1),char(113),char(255),char(174), -char(2),char(3),char(1),char(157),char(255),char(174),char(2),char(3),char(1),char(166), -char(255),char(174),char(2),char(3),char(1),char(188),char(255),char(174),char(2),char(3), -char(1),char(196),char(255),char(174),char(2),char(3),char(1),char(220),char(255),char(215), -char(2),char(3),char(1),char(228),char(255),char(215),char(2),char(3),char(2),char(169), -char(255),char(174),char(2),char(3),char(2),char(170),char(255),char(215),char(2),char(3), -char(2),char(181),char(255),char(174),char(2),char(3),char(2),char(182),char(255),char(215), -char(2),char(3),char(2),char(189),char(255),char(174),char(2),char(3),char(2),char(190), -char(255),char(215),char(2),char(3),char(3),char(23),char(255),char(174),char(2),char(3), -char(3),char(24),char(255),char(215),char(2),char(3),char(3),char(143),char(255),char(174), -char(2),char(4),char(0),char(55),char(255),char(174),char(2),char(4),char(1),char(36), -char(255),char(174),char(2),char(4),char(1),char(38),char(255),char(174),char(2),char(4), -char(1),char(113),char(255),char(174),char(2),char(4),char(1),char(157),char(255),char(174), -char(2),char(4),char(1),char(166),char(255),char(174),char(2),char(4),char(1),char(188), -char(255),char(174),char(2),char(4),char(1),char(196),char(255),char(174),char(2),char(4), -char(1),char(220),char(255),char(215),char(2),char(4),char(1),char(228),char(255),char(215), -char(2),char(4),char(2),char(169),char(255),char(174),char(2),char(4),char(2),char(170), -char(255),char(215),char(2),char(4),char(2),char(181),char(255),char(174),char(2),char(4), -char(2),char(182),char(255),char(215),char(2),char(4),char(2),char(189),char(255),char(174), -char(2),char(4),char(2),char(190),char(255),char(215),char(2),char(4),char(3),char(23), -char(255),char(174),char(2),char(4),char(3),char(24),char(255),char(215),char(2),char(4), -char(3),char(143),char(255),char(174),char(2),char(6),char(0),char(36),char(255),char(113), -char(2),char(6),char(0),char(55),char(0),char(41),char(2),char(6),char(0),char(57), -char(0),char(41),char(2),char(6),char(0),char(58),char(0),char(41),char(2),char(6), -char(0),char(60),char(0),char(20),char(2),char(6),char(0),char(68),char(255),char(174), -char(2),char(6),char(0),char(70),char(255),char(133),char(2),char(6),char(0),char(71), -char(255),char(133),char(2),char(6),char(0),char(72),char(255),char(133),char(2),char(6), -char(0),char(74),char(255),char(195),char(2),char(6),char(0),char(80),char(255),char(195), -char(2),char(6),char(0),char(81),char(255),char(195),char(2),char(6),char(0),char(82), -char(255),char(133),char(2),char(6),char(0),char(83),char(255),char(195),char(2),char(6), -char(0),char(84),char(255),char(133),char(2),char(6),char(0),char(85),char(255),char(195), -char(2),char(6),char(0),char(86),char(255),char(195),char(2),char(6),char(0),char(88), -char(255),char(195),char(2),char(6),char(0),char(130),char(255),char(113),char(2),char(6), -char(0),char(131),char(255),char(113),char(2),char(6),char(0),char(132),char(255),char(113), -char(2),char(6),char(0),char(133),char(255),char(113),char(2),char(6),char(0),char(134), -char(255),char(113),char(2),char(6),char(0),char(135),char(255),char(113),char(2),char(6), -char(0),char(159),char(0),char(20),char(2),char(6),char(0),char(162),char(255),char(133), -char(2),char(6),char(0),char(163),char(255),char(174),char(2),char(6),char(0),char(164), -char(255),char(174),char(2),char(6),char(0),char(165),char(255),char(174),char(2),char(6), -char(0),char(166),char(255),char(174),char(2),char(6),char(0),char(167),char(255),char(174), -char(2),char(6),char(0),char(168),char(255),char(174),char(2),char(6),char(0),char(169), -char(255),char(133),char(2),char(6),char(0),char(170),char(255),char(133),char(2),char(6), -char(0),char(171),char(255),char(133),char(2),char(6),char(0),char(172),char(255),char(133), -char(2),char(6),char(0),char(173),char(255),char(133),char(2),char(6),char(0),char(180), -char(255),char(133),char(2),char(6),char(0),char(181),char(255),char(133),char(2),char(6), -char(0),char(182),char(255),char(133),char(2),char(6),char(0),char(183),char(255),char(133), -char(2),char(6),char(0),char(184),char(255),char(133),char(2),char(6),char(0),char(186), -char(255),char(133),char(2),char(6),char(0),char(187),char(255),char(195),char(2),char(6), -char(0),char(188),char(255),char(195),char(2),char(6),char(0),char(189),char(255),char(195), -char(2),char(6),char(0),char(190),char(255),char(195),char(2),char(6),char(0),char(194), -char(255),char(113),char(2),char(6),char(0),char(195),char(255),char(174),char(2),char(6), -char(0),char(196),char(255),char(113),char(2),char(6),char(0),char(197),char(255),char(174), -char(2),char(6),char(0),char(198),char(255),char(113),char(2),char(6),char(0),char(199), -char(255),char(174),char(2),char(6),char(0),char(201),char(255),char(133),char(2),char(6), -char(0),char(203),char(255),char(133),char(2),char(6),char(0),char(205),char(255),char(133), -char(2),char(6),char(0),char(207),char(255),char(133),char(2),char(6),char(0),char(209), -char(255),char(133),char(2),char(6),char(0),char(211),char(255),char(133),char(2),char(6), -char(0),char(213),char(255),char(133),char(2),char(6),char(0),char(215),char(255),char(133), -char(2),char(6),char(0),char(217),char(255),char(133),char(2),char(6),char(0),char(219), -char(255),char(133),char(2),char(6),char(0),char(221),char(255),char(133),char(2),char(6), -char(0),char(223),char(255),char(195),char(2),char(6),char(0),char(225),char(255),char(195), -char(2),char(6),char(0),char(227),char(255),char(195),char(2),char(6),char(0),char(229), -char(255),char(195),char(2),char(6),char(0),char(250),char(255),char(195),char(2),char(6), -char(1),char(6),char(255),char(195),char(2),char(6),char(1),char(8),char(255),char(195), -char(2),char(6),char(1),char(13),char(255),char(195),char(2),char(6),char(1),char(15), -char(255),char(133),char(2),char(6),char(1),char(17),char(255),char(133),char(2),char(6), -char(1),char(19),char(255),char(133),char(2),char(6),char(1),char(21),char(255),char(133), -char(2),char(6),char(1),char(23),char(255),char(195),char(2),char(6),char(1),char(25), -char(255),char(195),char(2),char(6),char(1),char(29),char(255),char(195),char(2),char(6), -char(1),char(33),char(255),char(195),char(2),char(6),char(1),char(36),char(0),char(41), -char(2),char(6),char(1),char(38),char(0),char(41),char(2),char(6),char(1),char(43), -char(255),char(195),char(2),char(6),char(1),char(45),char(255),char(195),char(2),char(6), -char(1),char(47),char(255),char(195),char(2),char(6),char(1),char(49),char(255),char(195), -char(2),char(6),char(1),char(51),char(255),char(195),char(2),char(6),char(1),char(53), -char(255),char(195),char(2),char(6),char(1),char(54),char(0),char(41),char(2),char(6), -char(1),char(56),char(0),char(20),char(2),char(6),char(1),char(58),char(0),char(20), -char(2),char(6),char(1),char(67),char(255),char(113),char(2),char(6),char(1),char(68), -char(255),char(174),char(2),char(6),char(1),char(70),char(255),char(174),char(2),char(6), -char(1),char(72),char(255),char(133),char(2),char(6),char(1),char(74),char(255),char(195), -char(2),char(6),char(1),char(86),char(255),char(113),char(2),char(6),char(1),char(95), -char(255),char(113),char(2),char(6),char(1),char(98),char(255),char(113),char(2),char(6), -char(1),char(105),char(255),char(113),char(2),char(6),char(1),char(121),char(255),char(174), -char(2),char(6),char(1),char(122),char(255),char(215),char(2),char(6),char(1),char(123), -char(255),char(215),char(2),char(6),char(1),char(126),char(255),char(174),char(2),char(6), -char(1),char(129),char(255),char(195),char(2),char(6),char(1),char(130),char(255),char(215), -char(2),char(6),char(1),char(131),char(255),char(215),char(2),char(6),char(1),char(132), -char(255),char(215),char(2),char(6),char(1),char(135),char(255),char(215),char(2),char(6), -char(1),char(137),char(255),char(215),char(2),char(6),char(1),char(140),char(255),char(174), -char(2),char(6),char(1),char(142),char(255),char(195),char(2),char(6),char(1),char(143), -char(255),char(174),char(2),char(6),char(1),char(144),char(255),char(174),char(2),char(6), -char(1),char(147),char(255),char(174),char(2),char(6),char(1),char(153),char(255),char(174), -char(2),char(6),char(1),char(164),char(255),char(133),char(2),char(6),char(1),char(170), -char(255),char(113),char(2),char(6),char(1),char(174),char(255),char(133),char(2),char(6), -char(1),char(181),char(255),char(133),char(2),char(6),char(1),char(202),char(255),char(215), -char(2),char(6),char(1),char(206),char(255),char(113),char(2),char(6),char(1),char(207), -char(255),char(133),char(2),char(6),char(1),char(213),char(255),char(113),char(2),char(6), -char(1),char(216),char(255),char(133),char(2),char(6),char(1),char(219),char(255),char(133), -char(2),char(6),char(1),char(222),char(255),char(133),char(2),char(6),char(1),char(234), -char(255),char(133),char(2),char(6),char(1),char(237),char(255),char(133),char(2),char(6), -char(1),char(238),char(255),char(195),char(2),char(6),char(1),char(242),char(255),char(113), -char(2),char(6),char(1),char(250),char(0),char(41),char(2),char(6),char(1),char(252), -char(0),char(41),char(2),char(6),char(1),char(254),char(0),char(41),char(2),char(6), -char(2),char(0),char(0),char(20),char(2),char(6),char(2),char(87),char(255),char(195), -char(2),char(6),char(2),char(88),char(255),char(113),char(2),char(6),char(2),char(89), -char(255),char(174),char(2),char(6),char(2),char(96),char(255),char(133),char(2),char(6), -char(2),char(98),char(255),char(195),char(2),char(6),char(2),char(106),char(255),char(133), -char(2),char(6),char(2),char(114),char(255),char(113),char(2),char(6),char(2),char(115), -char(255),char(113),char(2),char(6),char(2),char(125),char(255),char(236),char(2),char(6), -char(2),char(127),char(255),char(133),char(2),char(6),char(2),char(133),char(255),char(133), -char(2),char(6),char(2),char(135),char(255),char(133),char(2),char(6),char(2),char(137), -char(255),char(133),char(2),char(6),char(2),char(141),char(255),char(133),char(2),char(6), -char(2),char(178),char(255),char(133),char(2),char(6),char(2),char(180),char(255),char(133), -char(2),char(6),char(2),char(206),char(255),char(133),char(2),char(6),char(2),char(207), -char(255),char(113),char(2),char(6),char(2),char(217),char(255),char(113),char(2),char(6), -char(2),char(218),char(255),char(215),char(2),char(6),char(2),char(219),char(255),char(113), -char(2),char(6),char(2),char(220),char(255),char(215),char(2),char(6),char(2),char(221), -char(255),char(113),char(2),char(6),char(2),char(222),char(255),char(215),char(2),char(6), -char(2),char(224),char(255),char(133),char(2),char(6),char(2),char(226),char(255),char(215), -char(2),char(6),char(2),char(228),char(255),char(215),char(2),char(6),char(2),char(240), -char(255),char(133),char(2),char(6),char(2),char(242),char(255),char(133),char(2),char(6), -char(2),char(244),char(255),char(133),char(2),char(6),char(3),char(9),char(255),char(113), -char(2),char(6),char(3),char(10),char(255),char(133),char(2),char(6),char(3),char(11), -char(255),char(113),char(2),char(6),char(3),char(12),char(255),char(133),char(2),char(6), -char(3),char(17),char(255),char(133),char(2),char(6),char(3),char(18),char(255),char(113), -char(2),char(6),char(3),char(22),char(255),char(133),char(2),char(6),char(3),char(26), -char(255),char(133),char(2),char(6),char(3),char(27),char(255),char(133),char(2),char(6), -char(3),char(28),char(255),char(113),char(2),char(6),char(3),char(29),char(255),char(113), -char(2),char(6),char(3),char(30),char(255),char(174),char(2),char(6),char(3),char(31), -char(255),char(113),char(2),char(6),char(3),char(32),char(255),char(174),char(2),char(6), -char(3),char(33),char(255),char(113),char(2),char(6),char(3),char(34),char(255),char(174), -char(2),char(6),char(3),char(35),char(255),char(113),char(2),char(6),char(3),char(37), -char(255),char(113),char(2),char(6),char(3),char(38),char(255),char(174),char(2),char(6), -char(3),char(39),char(255),char(113),char(2),char(6),char(3),char(40),char(255),char(174), -char(2),char(6),char(3),char(41),char(255),char(113),char(2),char(6),char(3),char(42), -char(255),char(174),char(2),char(6),char(3),char(43),char(255),char(113),char(2),char(6), -char(3),char(44),char(255),char(174),char(2),char(6),char(3),char(45),char(255),char(113), -char(2),char(6),char(3),char(46),char(255),char(174),char(2),char(6),char(3),char(47), -char(255),char(113),char(2),char(6),char(3),char(48),char(255),char(174),char(2),char(6), -char(3),char(49),char(255),char(113),char(2),char(6),char(3),char(50),char(255),char(174), -char(2),char(6),char(3),char(51),char(255),char(113),char(2),char(6),char(3),char(52), -char(255),char(174),char(2),char(6),char(3),char(54),char(255),char(133),char(2),char(6), -char(3),char(56),char(255),char(133),char(2),char(6),char(3),char(58),char(255),char(133), -char(2),char(6),char(3),char(60),char(255),char(133),char(2),char(6),char(3),char(64), -char(255),char(133),char(2),char(6),char(3),char(66),char(255),char(133),char(2),char(6), -char(3),char(68),char(255),char(133),char(2),char(6),char(3),char(74),char(255),char(133), -char(2),char(6),char(3),char(76),char(255),char(133),char(2),char(6),char(3),char(78), -char(255),char(133),char(2),char(6),char(3),char(82),char(255),char(133),char(2),char(6), -char(3),char(84),char(255),char(133),char(2),char(6),char(3),char(86),char(255),char(133), -char(2),char(6),char(3),char(88),char(255),char(133),char(2),char(6),char(3),char(90), -char(255),char(133),char(2),char(6),char(3),char(92),char(255),char(133),char(2),char(6), -char(3),char(94),char(255),char(133),char(2),char(6),char(3),char(96),char(255),char(133), -char(2),char(6),char(3),char(98),char(255),char(195),char(2),char(6),char(3),char(100), -char(255),char(195),char(2),char(6),char(3),char(102),char(255),char(195),char(2),char(6), -char(3),char(104),char(255),char(195),char(2),char(6),char(3),char(106),char(255),char(195), -char(2),char(6),char(3),char(108),char(255),char(195),char(2),char(6),char(3),char(110), -char(255),char(195),char(2),char(6),char(3),char(111),char(0),char(20),char(2),char(6), -char(3),char(113),char(0),char(20),char(2),char(6),char(3),char(115),char(0),char(20), -char(2),char(6),char(3),char(143),char(0),char(41),char(2),char(7),char(0),char(36), -char(255),char(113),char(2),char(7),char(0),char(55),char(0),char(41),char(2),char(7), -char(0),char(57),char(0),char(41),char(2),char(7),char(0),char(58),char(0),char(41), -char(2),char(7),char(0),char(60),char(0),char(20),char(2),char(7),char(0),char(68), -char(255),char(174),char(2),char(7),char(0),char(70),char(255),char(133),char(2),char(7), -char(0),char(71),char(255),char(133),char(2),char(7),char(0),char(72),char(255),char(133), -char(2),char(7),char(0),char(74),char(255),char(195),char(2),char(7),char(0),char(80), -char(255),char(195),char(2),char(7),char(0),char(81),char(255),char(195),char(2),char(7), -char(0),char(82),char(255),char(133),char(2),char(7),char(0),char(83),char(255),char(195), -char(2),char(7),char(0),char(84),char(255),char(133),char(2),char(7),char(0),char(85), -char(255),char(195),char(2),char(7),char(0),char(86),char(255),char(195),char(2),char(7), -char(0),char(88),char(255),char(195),char(2),char(7),char(0),char(130),char(255),char(113), -char(2),char(7),char(0),char(131),char(255),char(113),char(2),char(7),char(0),char(132), -char(255),char(113),char(2),char(7),char(0),char(133),char(255),char(113),char(2),char(7), -char(0),char(134),char(255),char(113),char(2),char(7),char(0),char(135),char(255),char(113), -char(2),char(7),char(0),char(159),char(0),char(20),char(2),char(7),char(0),char(162), -char(255),char(133),char(2),char(7),char(0),char(163),char(255),char(174),char(2),char(7), -char(0),char(164),char(255),char(174),char(2),char(7),char(0),char(165),char(255),char(174), -char(2),char(7),char(0),char(166),char(255),char(174),char(2),char(7),char(0),char(167), -char(255),char(174),char(2),char(7),char(0),char(168),char(255),char(174),char(2),char(7), -char(0),char(169),char(255),char(133),char(2),char(7),char(0),char(170),char(255),char(133), -char(2),char(7),char(0),char(171),char(255),char(133),char(2),char(7),char(0),char(172), -char(255),char(133),char(2),char(7),char(0),char(173),char(255),char(133),char(2),char(7), -char(0),char(180),char(255),char(133),char(2),char(7),char(0),char(181),char(255),char(133), -char(2),char(7),char(0),char(182),char(255),char(133),char(2),char(7),char(0),char(183), -char(255),char(133),char(2),char(7),char(0),char(184),char(255),char(133),char(2),char(7), -char(0),char(186),char(255),char(133),char(2),char(7),char(0),char(187),char(255),char(195), -char(2),char(7),char(0),char(188),char(255),char(195),char(2),char(7),char(0),char(189), -char(255),char(195),char(2),char(7),char(0),char(190),char(255),char(195),char(2),char(7), -char(0),char(194),char(255),char(113),char(2),char(7),char(0),char(195),char(255),char(174), -char(2),char(7),char(0),char(196),char(255),char(113),char(2),char(7),char(0),char(197), -char(255),char(174),char(2),char(7),char(0),char(198),char(255),char(113),char(2),char(7), -char(0),char(199),char(255),char(174),char(2),char(7),char(0),char(201),char(255),char(133), -char(2),char(7),char(0),char(203),char(255),char(133),char(2),char(7),char(0),char(205), -char(255),char(133),char(2),char(7),char(0),char(207),char(255),char(133),char(2),char(7), -char(0),char(209),char(255),char(133),char(2),char(7),char(0),char(211),char(255),char(133), -char(2),char(7),char(0),char(213),char(255),char(133),char(2),char(7),char(0),char(215), -char(255),char(133),char(2),char(7),char(0),char(217),char(255),char(133),char(2),char(7), -char(0),char(219),char(255),char(133),char(2),char(7),char(0),char(221),char(255),char(133), -char(2),char(7),char(0),char(223),char(255),char(195),char(2),char(7),char(0),char(225), -char(255),char(195),char(2),char(7),char(0),char(227),char(255),char(195),char(2),char(7), -char(0),char(229),char(255),char(195),char(2),char(7),char(0),char(250),char(255),char(195), -char(2),char(7),char(1),char(6),char(255),char(195),char(2),char(7),char(1),char(8), -char(255),char(195),char(2),char(7),char(1),char(13),char(255),char(195),char(2),char(7), -char(1),char(15),char(255),char(133),char(2),char(7),char(1),char(17),char(255),char(133), -char(2),char(7),char(1),char(19),char(255),char(133),char(2),char(7),char(1),char(21), -char(255),char(133),char(2),char(7),char(1),char(23),char(255),char(195),char(2),char(7), -char(1),char(25),char(255),char(195),char(2),char(7),char(1),char(29),char(255),char(195), -char(2),char(7),char(1),char(33),char(255),char(195),char(2),char(7),char(1),char(36), -char(0),char(41),char(2),char(7),char(1),char(38),char(0),char(41),char(2),char(7), -char(1),char(43),char(255),char(195),char(2),char(7),char(1),char(45),char(255),char(195), -char(2),char(7),char(1),char(47),char(255),char(195),char(2),char(7),char(1),char(49), -char(255),char(195),char(2),char(7),char(1),char(51),char(255),char(195),char(2),char(7), -char(1),char(53),char(255),char(195),char(2),char(7),char(1),char(54),char(0),char(41), -char(2),char(7),char(1),char(56),char(0),char(20),char(2),char(7),char(1),char(58), -char(0),char(20),char(2),char(7),char(1),char(67),char(255),char(113),char(2),char(7), -char(1),char(68),char(255),char(174),char(2),char(7),char(1),char(70),char(255),char(174), -char(2),char(7),char(1),char(72),char(255),char(133),char(2),char(7),char(1),char(74), -char(255),char(195),char(2),char(7),char(1),char(86),char(255),char(113),char(2),char(7), -char(1),char(95),char(255),char(113),char(2),char(7),char(1),char(98),char(255),char(113), -char(2),char(7),char(1),char(105),char(255),char(113),char(2),char(7),char(1),char(121), -char(255),char(174),char(2),char(7),char(1),char(122),char(255),char(215),char(2),char(7), -char(1),char(123),char(255),char(215),char(2),char(7),char(1),char(126),char(255),char(174), -char(2),char(7),char(1),char(129),char(255),char(195),char(2),char(7),char(1),char(130), -char(255),char(215),char(2),char(7),char(1),char(131),char(255),char(215),char(2),char(7), -char(1),char(132),char(255),char(215),char(2),char(7),char(1),char(135),char(255),char(215), -char(2),char(7),char(1),char(137),char(255),char(215),char(2),char(7),char(1),char(140), -char(255),char(174),char(2),char(7),char(1),char(142),char(255),char(195),char(2),char(7), -char(1),char(143),char(255),char(174),char(2),char(7),char(1),char(144),char(255),char(174), -char(2),char(7),char(1),char(147),char(255),char(174),char(2),char(7),char(1),char(153), -char(255),char(174),char(2),char(7),char(1),char(164),char(255),char(133),char(2),char(7), -char(1),char(170),char(255),char(113),char(2),char(7),char(1),char(174),char(255),char(133), -char(2),char(7),char(1),char(181),char(255),char(133),char(2),char(7),char(1),char(202), -char(255),char(215),char(2),char(7),char(1),char(206),char(255),char(113),char(2),char(7), -char(1),char(207),char(255),char(133),char(2),char(7),char(1),char(213),char(255),char(113), -char(2),char(7),char(1),char(216),char(255),char(133),char(2),char(7),char(1),char(219), -char(255),char(133),char(2),char(7),char(1),char(222),char(255),char(133),char(2),char(7), -char(1),char(234),char(255),char(133),char(2),char(7),char(1),char(237),char(255),char(133), -char(2),char(7),char(1),char(238),char(255),char(195),char(2),char(7),char(1),char(242), -char(255),char(113),char(2),char(7),char(1),char(250),char(0),char(41),char(2),char(7), -char(1),char(252),char(0),char(41),char(2),char(7),char(1),char(254),char(0),char(41), -char(2),char(7),char(2),char(0),char(0),char(20),char(2),char(7),char(2),char(87), -char(255),char(195),char(2),char(7),char(2),char(88),char(255),char(113),char(2),char(7), -char(2),char(89),char(255),char(174),char(2),char(7),char(2),char(96),char(255),char(133), -char(2),char(7),char(2),char(98),char(255),char(195),char(2),char(7),char(2),char(106), -char(255),char(133),char(2),char(7),char(2),char(114),char(255),char(113),char(2),char(7), -char(2),char(115),char(255),char(113),char(2),char(7),char(2),char(125),char(255),char(236), -char(2),char(7),char(2),char(127),char(255),char(133),char(2),char(7),char(2),char(133), -char(255),char(133),char(2),char(7),char(2),char(135),char(255),char(133),char(2),char(7), -char(2),char(137),char(255),char(133),char(2),char(7),char(2),char(141),char(255),char(133), -char(2),char(7),char(2),char(178),char(255),char(133),char(2),char(7),char(2),char(180), -char(255),char(133),char(2),char(7),char(2),char(206),char(255),char(133),char(2),char(7), -char(2),char(207),char(255),char(113),char(2),char(7),char(2),char(217),char(255),char(113), -char(2),char(7),char(2),char(218),char(255),char(215),char(2),char(7),char(2),char(219), -char(255),char(113),char(2),char(7),char(2),char(220),char(255),char(215),char(2),char(7), -char(2),char(221),char(255),char(113),char(2),char(7),char(2),char(222),char(255),char(215), -char(2),char(7),char(2),char(224),char(255),char(133),char(2),char(7),char(2),char(226), -char(255),char(215),char(2),char(7),char(2),char(228),char(255),char(215),char(2),char(7), -char(2),char(240),char(255),char(133),char(2),char(7),char(2),char(242),char(255),char(133), -char(2),char(7),char(2),char(244),char(255),char(133),char(2),char(7),char(3),char(9), -char(255),char(113),char(2),char(7),char(3),char(10),char(255),char(133),char(2),char(7), -char(3),char(11),char(255),char(113),char(2),char(7),char(3),char(12),char(255),char(133), -char(2),char(7),char(3),char(17),char(255),char(133),char(2),char(7),char(3),char(18), -char(255),char(113),char(2),char(7),char(3),char(22),char(255),char(133),char(2),char(7), -char(3),char(26),char(255),char(133),char(2),char(7),char(3),char(27),char(255),char(133), -char(2),char(7),char(3),char(28),char(255),char(113),char(2),char(7),char(3),char(29), -char(255),char(113),char(2),char(7),char(3),char(30),char(255),char(174),char(2),char(7), -char(3),char(31),char(255),char(113),char(2),char(7),char(3),char(32),char(255),char(174), -char(2),char(7),char(3),char(33),char(255),char(113),char(2),char(7),char(3),char(34), -char(255),char(174),char(2),char(7),char(3),char(35),char(255),char(113),char(2),char(7), -char(3),char(37),char(255),char(113),char(2),char(7),char(3),char(38),char(255),char(174), -char(2),char(7),char(3),char(39),char(255),char(113),char(2),char(7),char(3),char(40), -char(255),char(174),char(2),char(7),char(3),char(41),char(255),char(113),char(2),char(7), -char(3),char(42),char(255),char(174),char(2),char(7),char(3),char(43),char(255),char(113), -char(2),char(7),char(3),char(44),char(255),char(174),char(2),char(7),char(3),char(45), -char(255),char(113),char(2),char(7),char(3),char(46),char(255),char(174),char(2),char(7), -char(3),char(47),char(255),char(113),char(2),char(7),char(3),char(48),char(255),char(174), -char(2),char(7),char(3),char(49),char(255),char(113),char(2),char(7),char(3),char(50), -char(255),char(174),char(2),char(7),char(3),char(51),char(255),char(113),char(2),char(7), -char(3),char(52),char(255),char(174),char(2),char(7),char(3),char(54),char(255),char(133), -char(2),char(7),char(3),char(56),char(255),char(133),char(2),char(7),char(3),char(58), -char(255),char(133),char(2),char(7),char(3),char(60),char(255),char(133),char(2),char(7), -char(3),char(64),char(255),char(133),char(2),char(7),char(3),char(66),char(255),char(133), -char(2),char(7),char(3),char(68),char(255),char(133),char(2),char(7),char(3),char(74), -char(255),char(133),char(2),char(7),char(3),char(76),char(255),char(133),char(2),char(7), -char(3),char(78),char(255),char(133),char(2),char(7),char(3),char(82),char(255),char(133), -char(2),char(7),char(3),char(84),char(255),char(133),char(2),char(7),char(3),char(86), -char(255),char(133),char(2),char(7),char(3),char(88),char(255),char(133),char(2),char(7), -char(3),char(90),char(255),char(133),char(2),char(7),char(3),char(92),char(255),char(133), -char(2),char(7),char(3),char(94),char(255),char(133),char(2),char(7),char(3),char(96), -char(255),char(133),char(2),char(7),char(3),char(98),char(255),char(195),char(2),char(7), -char(3),char(100),char(255),char(195),char(2),char(7),char(3),char(102),char(255),char(195), -char(2),char(7),char(3),char(104),char(255),char(195),char(2),char(7),char(3),char(106), -char(255),char(195),char(2),char(7),char(3),char(108),char(255),char(195),char(2),char(7), -char(3),char(110),char(255),char(195),char(2),char(7),char(3),char(111),char(0),char(20), -char(2),char(7),char(3),char(113),char(0),char(20),char(2),char(7),char(3),char(115), -char(0),char(20),char(2),char(7),char(3),char(143),char(0),char(41),char(2),char(8), -char(0),char(38),char(255),char(154),char(2),char(8),char(0),char(42),char(255),char(154), -char(2),char(8),char(0),char(50),char(255),char(154),char(2),char(8),char(0),char(52), -char(255),char(154),char(2),char(8),char(0),char(55),char(255),char(113),char(2),char(8), -char(0),char(56),char(255),char(215),char(2),char(8),char(0),char(57),char(255),char(133), -char(2),char(8),char(0),char(58),char(255),char(133),char(2),char(8),char(0),char(60), -char(255),char(133),char(2),char(8),char(0),char(137),char(255),char(154),char(2),char(8), -char(0),char(148),char(255),char(154),char(2),char(8),char(0),char(149),char(255),char(154), -char(2),char(8),char(0),char(150),char(255),char(154),char(2),char(8),char(0),char(151), -char(255),char(154),char(2),char(8),char(0),char(152),char(255),char(154),char(2),char(8), -char(0),char(154),char(255),char(154),char(2),char(8),char(0),char(155),char(255),char(215), -char(2),char(8),char(0),char(156),char(255),char(215),char(2),char(8),char(0),char(157), -char(255),char(215),char(2),char(8),char(0),char(158),char(255),char(215),char(2),char(8), -char(0),char(159),char(255),char(133),char(2),char(8),char(0),char(200),char(255),char(154), -char(2),char(8),char(0),char(202),char(255),char(154),char(2),char(8),char(0),char(204), -char(255),char(154),char(2),char(8),char(0),char(206),char(255),char(154),char(2),char(8), -char(0),char(222),char(255),char(154),char(2),char(8),char(0),char(224),char(255),char(154), -char(2),char(8),char(0),char(226),char(255),char(154),char(2),char(8),char(0),char(228), -char(255),char(154),char(2),char(8),char(1),char(14),char(255),char(154),char(2),char(8), -char(1),char(16),char(255),char(154),char(2),char(8),char(1),char(18),char(255),char(154), -char(2),char(8),char(1),char(20),char(255),char(154),char(2),char(8),char(1),char(36), -char(255),char(113),char(2),char(8),char(1),char(38),char(255),char(113),char(2),char(8), -char(1),char(42),char(255),char(215),char(2),char(8),char(1),char(44),char(255),char(215), -char(2),char(8),char(1),char(46),char(255),char(215),char(2),char(8),char(1),char(48), -char(255),char(215),char(2),char(8),char(1),char(50),char(255),char(215),char(2),char(8), -char(1),char(52),char(255),char(215),char(2),char(8),char(1),char(54),char(255),char(133), -char(2),char(8),char(1),char(56),char(255),char(133),char(2),char(8),char(1),char(58), -char(255),char(133),char(2),char(8),char(1),char(71),char(255),char(154),char(2),char(8), -char(1),char(102),char(255),char(174),char(2),char(8),char(1),char(109),char(255),char(174), -char(2),char(8),char(1),char(113),char(255),char(113),char(2),char(8),char(1),char(114), -char(255),char(133),char(2),char(8),char(1),char(115),char(255),char(154),char(2),char(8), -char(1),char(117),char(255),char(133),char(2),char(8),char(1),char(120),char(255),char(133), -char(2),char(8),char(1),char(133),char(255),char(215),char(2),char(8),char(1),char(157), -char(255),char(113),char(2),char(8),char(1),char(159),char(255),char(154),char(2),char(8), -char(1),char(166),char(255),char(113),char(2),char(8),char(1),char(184),char(255),char(154), -char(2),char(8),char(1),char(187),char(255),char(154),char(2),char(8),char(1),char(188), -char(255),char(113),char(2),char(8),char(1),char(190),char(255),char(174),char(2),char(8), -char(1),char(193),char(255),char(92),char(2),char(8),char(1),char(196),char(255),char(113), -char(2),char(8),char(1),char(220),char(255),char(154),char(2),char(8),char(1),char(225), -char(255),char(133),char(2),char(8),char(1),char(228),char(255),char(154),char(2),char(8), -char(1),char(250),char(255),char(133),char(2),char(8),char(1),char(252),char(255),char(133), -char(2),char(8),char(1),char(254),char(255),char(133),char(2),char(8),char(2),char(0), -char(255),char(133),char(2),char(8),char(2),char(84),char(255),char(133),char(2),char(8), -char(2),char(95),char(255),char(154),char(2),char(8),char(2),char(97),char(255),char(215), -char(2),char(8),char(2),char(108),char(255),char(154),char(2),char(8),char(2),char(124), -char(255),char(92),char(2),char(8),char(2),char(126),char(255),char(154),char(2),char(8), -char(2),char(128),char(255),char(133),char(2),char(8),char(2),char(130),char(255),char(133), -char(2),char(8),char(2),char(132),char(255),char(154),char(2),char(8),char(2),char(134), -char(255),char(154),char(2),char(8),char(2),char(136),char(255),char(154),char(2),char(8), -char(2),char(138),char(255),char(154),char(2),char(8),char(2),char(140),char(255),char(154), -char(2),char(8),char(2),char(169),char(255),char(113),char(2),char(8),char(2),char(170), -char(255),char(154),char(2),char(8),char(2),char(177),char(255),char(154),char(2),char(8), -char(2),char(179),char(255),char(154),char(2),char(8),char(2),char(181),char(255),char(113), -char(2),char(8),char(2),char(182),char(255),char(154),char(2),char(8),char(2),char(183), -char(255),char(133),char(2),char(8),char(2),char(185),char(255),char(133),char(2),char(8), -char(2),char(189),char(255),char(113),char(2),char(8),char(2),char(190),char(255),char(154), -char(2),char(8),char(2),char(191),char(255),char(92),char(2),char(8),char(2),char(192), -char(255),char(133),char(2),char(8),char(2),char(193),char(255),char(92),char(2),char(8), -char(2),char(194),char(255),char(133),char(2),char(8),char(2),char(197),char(255),char(133), -char(2),char(8),char(2),char(199),char(255),char(133),char(2),char(8),char(2),char(212), -char(255),char(92),char(2),char(8),char(2),char(213),char(255),char(133),char(2),char(8), -char(2),char(239),char(255),char(154),char(2),char(8),char(2),char(241),char(255),char(154), -char(2),char(8),char(2),char(243),char(255),char(154),char(2),char(8),char(2),char(253), -char(255),char(92),char(2),char(8),char(2),char(254),char(255),char(133),char(2),char(8), -char(3),char(13),char(255),char(133),char(2),char(8),char(3),char(14),char(255),char(154), -char(2),char(8),char(3),char(15),char(255),char(133),char(2),char(8),char(3),char(16), -char(255),char(154),char(2),char(8),char(3),char(21),char(255),char(154),char(2),char(8), -char(3),char(23),char(255),char(113),char(2),char(8),char(3),char(24),char(255),char(154), -char(2),char(8),char(3),char(73),char(255),char(154),char(2),char(8),char(3),char(75), -char(255),char(154),char(2),char(8),char(3),char(77),char(255),char(154),char(2),char(8), -char(3),char(79),char(255),char(154),char(2),char(8),char(3),char(81),char(255),char(154), -char(2),char(8),char(3),char(83),char(255),char(154),char(2),char(8),char(3),char(85), -char(255),char(154),char(2),char(8),char(3),char(87),char(255),char(154),char(2),char(8), -char(3),char(89),char(255),char(154),char(2),char(8),char(3),char(91),char(255),char(154), -char(2),char(8),char(3),char(93),char(255),char(154),char(2),char(8),char(3),char(95), -char(255),char(154),char(2),char(8),char(3),char(97),char(255),char(215),char(2),char(8), -char(3),char(99),char(255),char(215),char(2),char(8),char(3),char(101),char(255),char(215), -char(2),char(8),char(3),char(103),char(255),char(215),char(2),char(8),char(3),char(105), -char(255),char(215),char(2),char(8),char(3),char(107),char(255),char(215),char(2),char(8), -char(3),char(109),char(255),char(215),char(2),char(8),char(3),char(111),char(255),char(133), -char(2),char(8),char(3),char(113),char(255),char(133),char(2),char(8),char(3),char(115), -char(255),char(133),char(2),char(8),char(3),char(143),char(255),char(113),char(2),char(10), -char(0),char(36),char(255),char(113),char(2),char(10),char(0),char(55),char(0),char(41), -char(2),char(10),char(0),char(57),char(0),char(41),char(2),char(10),char(0),char(58), -char(0),char(41),char(2),char(10),char(0),char(60),char(0),char(20),char(2),char(10), -char(0),char(68),char(255),char(174),char(2),char(10),char(0),char(70),char(255),char(133), -char(2),char(10),char(0),char(71),char(255),char(133),char(2),char(10),char(0),char(72), -char(255),char(133),char(2),char(10),char(0),char(74),char(255),char(195),char(2),char(10), -char(0),char(80),char(255),char(195),char(2),char(10),char(0),char(81),char(255),char(195), -char(2),char(10),char(0),char(82),char(255),char(133),char(2),char(10),char(0),char(83), -char(255),char(195),char(2),char(10),char(0),char(84),char(255),char(133),char(2),char(10), -char(0),char(85),char(255),char(195),char(2),char(10),char(0),char(86),char(255),char(195), -char(2),char(10),char(0),char(88),char(255),char(195),char(2),char(10),char(0),char(130), -char(255),char(113),char(2),char(10),char(0),char(131),char(255),char(113),char(2),char(10), -char(0),char(132),char(255),char(113),char(2),char(10),char(0),char(133),char(255),char(113), -char(2),char(10),char(0),char(134),char(255),char(113),char(2),char(10),char(0),char(135), -char(255),char(113),char(2),char(10),char(0),char(159),char(0),char(20),char(2),char(10), -char(0),char(162),char(255),char(133),char(2),char(10),char(0),char(163),char(255),char(174), -char(2),char(10),char(0),char(164),char(255),char(174),char(2),char(10),char(0),char(165), -char(255),char(174),char(2),char(10),char(0),char(166),char(255),char(174),char(2),char(10), -char(0),char(167),char(255),char(174),char(2),char(10),char(0),char(168),char(255),char(174), -char(2),char(10),char(0),char(169),char(255),char(133),char(2),char(10),char(0),char(170), -char(255),char(133),char(2),char(10),char(0),char(171),char(255),char(133),char(2),char(10), -char(0),char(172),char(255),char(133),char(2),char(10),char(0),char(173),char(255),char(133), -char(2),char(10),char(0),char(180),char(255),char(133),char(2),char(10),char(0),char(181), -char(255),char(133),char(2),char(10),char(0),char(182),char(255),char(133),char(2),char(10), -char(0),char(183),char(255),char(133),char(2),char(10),char(0),char(184),char(255),char(133), -char(2),char(10),char(0),char(186),char(255),char(133),char(2),char(10),char(0),char(187), -char(255),char(195),char(2),char(10),char(0),char(188),char(255),char(195),char(2),char(10), -char(0),char(189),char(255),char(195),char(2),char(10),char(0),char(190),char(255),char(195), -char(2),char(10),char(0),char(194),char(255),char(113),char(2),char(10),char(0),char(195), -char(255),char(174),char(2),char(10),char(0),char(196),char(255),char(113),char(2),char(10), -char(0),char(197),char(255),char(174),char(2),char(10),char(0),char(198),char(255),char(113), -char(2),char(10),char(0),char(199),char(255),char(174),char(2),char(10),char(0),char(201), -char(255),char(133),char(2),char(10),char(0),char(203),char(255),char(133),char(2),char(10), -char(0),char(205),char(255),char(133),char(2),char(10),char(0),char(207),char(255),char(133), -char(2),char(10),char(0),char(209),char(255),char(133),char(2),char(10),char(0),char(211), -char(255),char(133),char(2),char(10),char(0),char(213),char(255),char(133),char(2),char(10), -char(0),char(215),char(255),char(133),char(2),char(10),char(0),char(217),char(255),char(133), -char(2),char(10),char(0),char(219),char(255),char(133),char(2),char(10),char(0),char(221), -char(255),char(133),char(2),char(10),char(0),char(223),char(255),char(195),char(2),char(10), -char(0),char(225),char(255),char(195),char(2),char(10),char(0),char(227),char(255),char(195), -char(2),char(10),char(0),char(229),char(255),char(195),char(2),char(10),char(0),char(250), -char(255),char(195),char(2),char(10),char(1),char(6),char(255),char(195),char(2),char(10), -char(1),char(8),char(255),char(195),char(2),char(10),char(1),char(13),char(255),char(195), -char(2),char(10),char(1),char(15),char(255),char(133),char(2),char(10),char(1),char(17), -char(255),char(133),char(2),char(10),char(1),char(19),char(255),char(133),char(2),char(10), -char(1),char(21),char(255),char(133),char(2),char(10),char(1),char(23),char(255),char(195), -char(2),char(10),char(1),char(25),char(255),char(195),char(2),char(10),char(1),char(29), -char(255),char(195),char(2),char(10),char(1),char(33),char(255),char(195),char(2),char(10), -char(1),char(36),char(0),char(41),char(2),char(10),char(1),char(38),char(0),char(41), -char(2),char(10),char(1),char(43),char(255),char(195),char(2),char(10),char(1),char(45), -char(255),char(195),char(2),char(10),char(1),char(47),char(255),char(195),char(2),char(10), -char(1),char(49),char(255),char(195),char(2),char(10),char(1),char(51),char(255),char(195), -char(2),char(10),char(1),char(53),char(255),char(195),char(2),char(10),char(1),char(54), -char(0),char(41),char(2),char(10),char(1),char(56),char(0),char(20),char(2),char(10), -char(1),char(58),char(0),char(20),char(2),char(10),char(1),char(67),char(255),char(113), -char(2),char(10),char(1),char(68),char(255),char(174),char(2),char(10),char(1),char(70), -char(255),char(174),char(2),char(10),char(1),char(72),char(255),char(133),char(2),char(10), -char(1),char(74),char(255),char(195),char(2),char(10),char(1),char(86),char(255),char(113), -char(2),char(10),char(1),char(95),char(255),char(113),char(2),char(10),char(1),char(98), -char(255),char(113),char(2),char(10),char(1),char(105),char(255),char(113),char(2),char(10), -char(1),char(121),char(255),char(174),char(2),char(10),char(1),char(122),char(255),char(215), -char(2),char(10),char(1),char(123),char(255),char(215),char(2),char(10),char(1),char(126), -char(255),char(174),char(2),char(10),char(1),char(129),char(255),char(195),char(2),char(10), -char(1),char(130),char(255),char(215),char(2),char(10),char(1),char(131),char(255),char(215), -char(2),char(10),char(1),char(132),char(255),char(215),char(2),char(10),char(1),char(135), -char(255),char(215),char(2),char(10),char(1),char(137),char(255),char(215),char(2),char(10), -char(1),char(140),char(255),char(174),char(2),char(10),char(1),char(142),char(255),char(195), -char(2),char(10),char(1),char(143),char(255),char(174),char(2),char(10),char(1),char(144), -char(255),char(174),char(2),char(10),char(1),char(147),char(255),char(174),char(2),char(10), -char(1),char(153),char(255),char(174),char(2),char(10),char(1),char(164),char(255),char(133), -char(2),char(10),char(1),char(170),char(255),char(113),char(2),char(10),char(1),char(174), -char(255),char(133),char(2),char(10),char(1),char(181),char(255),char(133),char(2),char(10), -char(1),char(202),char(255),char(215),char(2),char(10),char(1),char(206),char(255),char(113), -char(2),char(10),char(1),char(207),char(255),char(133),char(2),char(10),char(1),char(213), -char(255),char(113),char(2),char(10),char(1),char(216),char(255),char(133),char(2),char(10), -char(1),char(219),char(255),char(133),char(2),char(10),char(1),char(222),char(255),char(133), -char(2),char(10),char(1),char(234),char(255),char(133),char(2),char(10),char(1),char(237), -char(255),char(133),char(2),char(10),char(1),char(238),char(255),char(195),char(2),char(10), -char(1),char(242),char(255),char(113),char(2),char(10),char(1),char(250),char(0),char(41), -char(2),char(10),char(1),char(252),char(0),char(41),char(2),char(10),char(1),char(254), -char(0),char(41),char(2),char(10),char(2),char(0),char(0),char(20),char(2),char(10), -char(2),char(87),char(255),char(195),char(2),char(10),char(2),char(88),char(255),char(113), -char(2),char(10),char(2),char(89),char(255),char(174),char(2),char(10),char(2),char(96), -char(255),char(133),char(2),char(10),char(2),char(98),char(255),char(195),char(2),char(10), -char(2),char(106),char(255),char(133),char(2),char(10),char(2),char(114),char(255),char(113), -char(2),char(10),char(2),char(115),char(255),char(113),char(2),char(10),char(2),char(125), -char(255),char(236),char(2),char(10),char(2),char(127),char(255),char(133),char(2),char(10), -char(2),char(133),char(255),char(133),char(2),char(10),char(2),char(135),char(255),char(133), -char(2),char(10),char(2),char(137),char(255),char(133),char(2),char(10),char(2),char(141), -char(255),char(133),char(2),char(10),char(2),char(178),char(255),char(133),char(2),char(10), -char(2),char(180),char(255),char(133),char(2),char(10),char(2),char(206),char(255),char(133), -char(2),char(10),char(2),char(207),char(255),char(113),char(2),char(10),char(2),char(217), -char(255),char(113),char(2),char(10),char(2),char(218),char(255),char(215),char(2),char(10), -char(2),char(219),char(255),char(113),char(2),char(10),char(2),char(220),char(255),char(215), -char(2),char(10),char(2),char(221),char(255),char(113),char(2),char(10),char(2),char(222), -char(255),char(215),char(2),char(10),char(2),char(224),char(255),char(133),char(2),char(10), -char(2),char(226),char(255),char(215),char(2),char(10),char(2),char(228),char(255),char(215), -char(2),char(10),char(2),char(240),char(255),char(133),char(2),char(10),char(2),char(242), -char(255),char(133),char(2),char(10),char(2),char(244),char(255),char(133),char(2),char(10), -char(3),char(9),char(255),char(113),char(2),char(10),char(3),char(10),char(255),char(133), -char(2),char(10),char(3),char(11),char(255),char(113),char(2),char(10),char(3),char(12), -char(255),char(133),char(2),char(10),char(3),char(17),char(255),char(133),char(2),char(10), -char(3),char(18),char(255),char(113),char(2),char(10),char(3),char(22),char(255),char(133), -char(2),char(10),char(3),char(26),char(255),char(133),char(2),char(10),char(3),char(27), -char(255),char(133),char(2),char(10),char(3),char(28),char(255),char(113),char(2),char(10), -char(3),char(29),char(255),char(113),char(2),char(10),char(3),char(30),char(255),char(174), -char(2),char(10),char(3),char(31),char(255),char(113),char(2),char(10),char(3),char(32), -char(255),char(174),char(2),char(10),char(3),char(33),char(255),char(113),char(2),char(10), -char(3),char(34),char(255),char(174),char(2),char(10),char(3),char(35),char(255),char(113), -char(2),char(10),char(3),char(37),char(255),char(113),char(2),char(10),char(3),char(38), -char(255),char(174),char(2),char(10),char(3),char(39),char(255),char(113),char(2),char(10), -char(3),char(40),char(255),char(174),char(2),char(10),char(3),char(41),char(255),char(113), -char(2),char(10),char(3),char(42),char(255),char(174),char(2),char(10),char(3),char(43), -char(255),char(113),char(2),char(10),char(3),char(44),char(255),char(174),char(2),char(10), -char(3),char(45),char(255),char(113),char(2),char(10),char(3),char(46),char(255),char(174), -char(2),char(10),char(3),char(47),char(255),char(113),char(2),char(10),char(3),char(48), -char(255),char(174),char(2),char(10),char(3),char(49),char(255),char(113),char(2),char(10), -char(3),char(50),char(255),char(174),char(2),char(10),char(3),char(51),char(255),char(113), -char(2),char(10),char(3),char(52),char(255),char(174),char(2),char(10),char(3),char(54), -char(255),char(133),char(2),char(10),char(3),char(56),char(255),char(133),char(2),char(10), -char(3),char(58),char(255),char(133),char(2),char(10),char(3),char(60),char(255),char(133), -char(2),char(10),char(3),char(64),char(255),char(133),char(2),char(10),char(3),char(66), -char(255),char(133),char(2),char(10),char(3),char(68),char(255),char(133),char(2),char(10), -char(3),char(74),char(255),char(133),char(2),char(10),char(3),char(76),char(255),char(133), -char(2),char(10),char(3),char(78),char(255),char(133),char(2),char(10),char(3),char(82), -char(255),char(133),char(2),char(10),char(3),char(84),char(255),char(133),char(2),char(10), -char(3),char(86),char(255),char(133),char(2),char(10),char(3),char(88),char(255),char(133), -char(2),char(10),char(3),char(90),char(255),char(133),char(2),char(10),char(3),char(92), -char(255),char(133),char(2),char(10),char(3),char(94),char(255),char(133),char(2),char(10), -char(3),char(96),char(255),char(133),char(2),char(10),char(3),char(98),char(255),char(195), -char(2),char(10),char(3),char(100),char(255),char(195),char(2),char(10),char(3),char(102), -char(255),char(195),char(2),char(10),char(3),char(104),char(255),char(195),char(2),char(10), -char(3),char(106),char(255),char(195),char(2),char(10),char(3),char(108),char(255),char(195), -char(2),char(10),char(3),char(110),char(255),char(195),char(2),char(10),char(3),char(111), -char(0),char(20),char(2),char(10),char(3),char(113),char(0),char(20),char(2),char(10), -char(3),char(115),char(0),char(20),char(2),char(10),char(3),char(143),char(0),char(41), -char(2),char(12),char(0),char(38),char(255),char(154),char(2),char(12),char(0),char(42), -char(255),char(154),char(2),char(12),char(0),char(50),char(255),char(154),char(2),char(12), -char(0),char(52),char(255),char(154),char(2),char(12),char(0),char(55),char(255),char(113), -char(2),char(12),char(0),char(56),char(255),char(215),char(2),char(12),char(0),char(57), -char(255),char(133),char(2),char(12),char(0),char(58),char(255),char(133),char(2),char(12), -char(0),char(60),char(255),char(133),char(2),char(12),char(0),char(137),char(255),char(154), -char(2),char(12),char(0),char(148),char(255),char(154),char(2),char(12),char(0),char(149), -char(255),char(154),char(2),char(12),char(0),char(150),char(255),char(154),char(2),char(12), -char(0),char(151),char(255),char(154),char(2),char(12),char(0),char(152),char(255),char(154), -char(2),char(12),char(0),char(154),char(255),char(154),char(2),char(12),char(0),char(155), -char(255),char(215),char(2),char(12),char(0),char(156),char(255),char(215),char(2),char(12), -char(0),char(157),char(255),char(215),char(2),char(12),char(0),char(158),char(255),char(215), -char(2),char(12),char(0),char(159),char(255),char(133),char(2),char(12),char(0),char(200), -char(255),char(154),char(2),char(12),char(0),char(202),char(255),char(154),char(2),char(12), -char(0),char(204),char(255),char(154),char(2),char(12),char(0),char(206),char(255),char(154), -char(2),char(12),char(0),char(222),char(255),char(154),char(2),char(12),char(0),char(224), -char(255),char(154),char(2),char(12),char(0),char(226),char(255),char(154),char(2),char(12), -char(0),char(228),char(255),char(154),char(2),char(12),char(1),char(14),char(255),char(154), -char(2),char(12),char(1),char(16),char(255),char(154),char(2),char(12),char(1),char(18), -char(255),char(154),char(2),char(12),char(1),char(20),char(255),char(154),char(2),char(12), -char(1),char(36),char(255),char(113),char(2),char(12),char(1),char(38),char(255),char(113), -char(2),char(12),char(1),char(42),char(255),char(215),char(2),char(12),char(1),char(44), -char(255),char(215),char(2),char(12),char(1),char(46),char(255),char(215),char(2),char(12), -char(1),char(48),char(255),char(215),char(2),char(12),char(1),char(50),char(255),char(215), -char(2),char(12),char(1),char(52),char(255),char(215),char(2),char(12),char(1),char(54), -char(255),char(133),char(2),char(12),char(1),char(56),char(255),char(133),char(2),char(12), -char(1),char(58),char(255),char(133),char(2),char(12),char(1),char(71),char(255),char(154), -char(2),char(12),char(1),char(102),char(255),char(174),char(2),char(12),char(1),char(109), -char(255),char(174),char(2),char(12),char(1),char(113),char(255),char(113),char(2),char(12), -char(1),char(114),char(255),char(133),char(2),char(12),char(1),char(115),char(255),char(154), -char(2),char(12),char(1),char(117),char(255),char(133),char(2),char(12),char(1),char(120), -char(255),char(133),char(2),char(12),char(1),char(133),char(255),char(215),char(2),char(12), -char(1),char(157),char(255),char(113),char(2),char(12),char(1),char(159),char(255),char(154), -char(2),char(12),char(1),char(166),char(255),char(113),char(2),char(12),char(1),char(184), -char(255),char(154),char(2),char(12),char(1),char(187),char(255),char(154),char(2),char(12), -char(1),char(188),char(255),char(113),char(2),char(12),char(1),char(190),char(255),char(174), -char(2),char(12),char(1),char(193),char(255),char(92),char(2),char(12),char(1),char(196), -char(255),char(113),char(2),char(12),char(1),char(220),char(255),char(154),char(2),char(12), -char(1),char(225),char(255),char(133),char(2),char(12),char(1),char(228),char(255),char(154), -char(2),char(12),char(1),char(250),char(255),char(133),char(2),char(12),char(1),char(252), -char(255),char(133),char(2),char(12),char(1),char(254),char(255),char(133),char(2),char(12), -char(2),char(0),char(255),char(133),char(2),char(12),char(2),char(84),char(255),char(133), -char(2),char(12),char(2),char(95),char(255),char(154),char(2),char(12),char(2),char(97), -char(255),char(215),char(2),char(12),char(2),char(108),char(255),char(154),char(2),char(12), -char(2),char(124),char(255),char(92),char(2),char(12),char(2),char(126),char(255),char(154), -char(2),char(12),char(2),char(128),char(255),char(133),char(2),char(12),char(2),char(130), -char(255),char(133),char(2),char(12),char(2),char(132),char(255),char(154),char(2),char(12), -char(2),char(134),char(255),char(154),char(2),char(12),char(2),char(136),char(255),char(154), -char(2),char(12),char(2),char(138),char(255),char(154),char(2),char(12),char(2),char(140), -char(255),char(154),char(2),char(12),char(2),char(169),char(255),char(113),char(2),char(12), -char(2),char(170),char(255),char(154),char(2),char(12),char(2),char(177),char(255),char(154), -char(2),char(12),char(2),char(179),char(255),char(154),char(2),char(12),char(2),char(181), -char(255),char(113),char(2),char(12),char(2),char(182),char(255),char(154),char(2),char(12), -char(2),char(183),char(255),char(133),char(2),char(12),char(2),char(185),char(255),char(133), -char(2),char(12),char(2),char(189),char(255),char(113),char(2),char(12),char(2),char(190), -char(255),char(154),char(2),char(12),char(2),char(191),char(255),char(92),char(2),char(12), -char(2),char(192),char(255),char(133),char(2),char(12),char(2),char(193),char(255),char(92), -char(2),char(12),char(2),char(194),char(255),char(133),char(2),char(12),char(2),char(197), -char(255),char(133),char(2),char(12),char(2),char(199),char(255),char(133),char(2),char(12), -char(2),char(212),char(255),char(92),char(2),char(12),char(2),char(213),char(255),char(133), -char(2),char(12),char(2),char(239),char(255),char(154),char(2),char(12),char(2),char(241), -char(255),char(154),char(2),char(12),char(2),char(243),char(255),char(154),char(2),char(12), -char(2),char(253),char(255),char(92),char(2),char(12),char(2),char(254),char(255),char(133), -char(2),char(12),char(3),char(13),char(255),char(133),char(2),char(12),char(3),char(14), -char(255),char(154),char(2),char(12),char(3),char(15),char(255),char(133),char(2),char(12), -char(3),char(16),char(255),char(154),char(2),char(12),char(3),char(21),char(255),char(154), -char(2),char(12),char(3),char(23),char(255),char(113),char(2),char(12),char(3),char(24), -char(255),char(154),char(2),char(12),char(3),char(73),char(255),char(154),char(2),char(12), -char(3),char(75),char(255),char(154),char(2),char(12),char(3),char(77),char(255),char(154), -char(2),char(12),char(3),char(79),char(255),char(154),char(2),char(12),char(3),char(81), -char(255),char(154),char(2),char(12),char(3),char(83),char(255),char(154),char(2),char(12), -char(3),char(85),char(255),char(154),char(2),char(12),char(3),char(87),char(255),char(154), -char(2),char(12),char(3),char(89),char(255),char(154),char(2),char(12),char(3),char(91), -char(255),char(154),char(2),char(12),char(3),char(93),char(255),char(154),char(2),char(12), -char(3),char(95),char(255),char(154),char(2),char(12),char(3),char(97),char(255),char(215), -char(2),char(12),char(3),char(99),char(255),char(215),char(2),char(12),char(3),char(101), -char(255),char(215),char(2),char(12),char(3),char(103),char(255),char(215),char(2),char(12), -char(3),char(105),char(255),char(215),char(2),char(12),char(3),char(107),char(255),char(215), -char(2),char(12),char(3),char(109),char(255),char(215),char(2),char(12),char(3),char(111), -char(255),char(133),char(2),char(12),char(3),char(113),char(255),char(133),char(2),char(12), -char(3),char(115),char(255),char(133),char(2),char(12),char(3),char(143),char(255),char(113), -char(2),char(33),char(1),char(113),char(255),char(215),char(2),char(33),char(1),char(114), -char(255),char(236),char(2),char(33),char(1),char(120),char(255),char(236),char(2),char(33), -char(2),char(84),char(255),char(236),char(2),char(83),char(0),char(15),char(255),char(195), -char(2),char(83),char(0),char(17),char(255),char(195),char(2),char(83),char(2),char(8), -char(255),char(195),char(2),char(83),char(2),char(12),char(255),char(195),char(2),char(84), -char(0),char(15),char(255),char(133),char(2),char(84),char(0),char(17),char(255),char(133), -char(2),char(84),char(1),char(86),char(255),char(133),char(2),char(84),char(1),char(95), -char(255),char(133),char(2),char(84),char(1),char(98),char(255),char(133),char(2),char(84), -char(1),char(102),char(255),char(215),char(2),char(84),char(1),char(105),char(255),char(133), -char(2),char(84),char(1),char(109),char(255),char(215),char(2),char(84),char(1),char(115), -char(255),char(195),char(2),char(84),char(1),char(118),char(255),char(236),char(2),char(84), -char(1),char(121),char(255),char(154),char(2),char(84),char(1),char(122),char(255),char(174), -char(2),char(84),char(1),char(123),char(255),char(195),char(2),char(84),char(1),char(124), -char(255),char(195),char(2),char(84),char(1),char(125),char(255),char(195),char(2),char(84), -char(1),char(126),char(255),char(154),char(2),char(84),char(1),char(129),char(255),char(195), -char(2),char(84),char(1),char(130),char(255),char(174),char(2),char(84),char(1),char(132), -char(255),char(195),char(2),char(84),char(1),char(134),char(255),char(195),char(2),char(84), -char(1),char(135),char(255),char(195),char(2),char(84),char(1),char(137),char(255),char(195), -char(2),char(84),char(1),char(140),char(255),char(154),char(2),char(84),char(1),char(142), -char(255),char(154),char(2),char(84),char(1),char(143),char(255),char(154),char(2),char(84), -char(1),char(144),char(255),char(154),char(2),char(84),char(1),char(146),char(255),char(195), -char(2),char(84),char(1),char(147),char(255),char(154),char(2),char(84),char(1),char(149), -char(255),char(195),char(2),char(84),char(1),char(150),char(255),char(195),char(2),char(84), -char(1),char(152),char(255),char(195),char(2),char(84),char(1),char(153),char(255),char(154), -char(2),char(84),char(1),char(154),char(255),char(195),char(2),char(84),char(1),char(155), -char(255),char(195),char(2),char(84),char(2),char(8),char(255),char(133),char(2),char(84), -char(2),char(12),char(255),char(133),char(2),char(84),char(2),char(33),char(255),char(236), -char(2),char(88),char(0),char(5),char(255),char(113),char(2),char(88),char(0),char(10), -char(255),char(113),char(2),char(88),char(0),char(38),char(255),char(215),char(2),char(88), -char(0),char(42),char(255),char(215),char(2),char(88),char(0),char(45),char(1),char(10), -char(2),char(88),char(0),char(50),char(255),char(215),char(2),char(88),char(0),char(52), -char(255),char(215),char(2),char(88),char(0),char(55),char(255),char(113),char(2),char(88), -char(0),char(57),char(255),char(174),char(2),char(88),char(0),char(58),char(255),char(174), -char(2),char(88),char(0),char(60),char(255),char(133),char(2),char(88),char(0),char(137), -char(255),char(215),char(2),char(88),char(0),char(148),char(255),char(215),char(2),char(88), -char(0),char(149),char(255),char(215),char(2),char(88),char(0),char(150),char(255),char(215), -char(2),char(88),char(0),char(151),char(255),char(215),char(2),char(88),char(0),char(152), -char(255),char(215),char(2),char(88),char(0),char(154),char(255),char(215),char(2),char(88), -char(0),char(159),char(255),char(133),char(2),char(88),char(0),char(200),char(255),char(215), -char(2),char(88),char(0),char(202),char(255),char(215),char(2),char(88),char(0),char(204), -char(255),char(215),char(2),char(88),char(0),char(206),char(255),char(215),char(2),char(88), -char(0),char(222),char(255),char(215),char(2),char(88),char(0),char(224),char(255),char(215), -char(2),char(88),char(0),char(226),char(255),char(215),char(2),char(88),char(0),char(228), -char(255),char(215),char(2),char(88),char(1),char(14),char(255),char(215),char(2),char(88), -char(1),char(16),char(255),char(215),char(2),char(88),char(1),char(18),char(255),char(215), -char(2),char(88),char(1),char(20),char(255),char(215),char(2),char(88),char(1),char(36), -char(255),char(113),char(2),char(88),char(1),char(38),char(255),char(113),char(2),char(88), -char(1),char(54),char(255),char(174),char(2),char(88),char(1),char(56),char(255),char(133), -char(2),char(88),char(1),char(58),char(255),char(133),char(2),char(88),char(1),char(71), -char(255),char(215),char(2),char(88),char(1),char(250),char(255),char(174),char(2),char(88), -char(1),char(252),char(255),char(174),char(2),char(88),char(1),char(254),char(255),char(174), -char(2),char(88),char(2),char(0),char(255),char(133),char(2),char(88),char(2),char(7), -char(255),char(113),char(2),char(88),char(2),char(11),char(255),char(113),char(2),char(88), -char(2),char(95),char(255),char(215),char(2),char(88),char(3),char(73),char(255),char(215), -char(2),char(88),char(3),char(75),char(255),char(215),char(2),char(88),char(3),char(77), -char(255),char(215),char(2),char(88),char(3),char(79),char(255),char(215),char(2),char(88), -char(3),char(81),char(255),char(215),char(2),char(88),char(3),char(83),char(255),char(215), -char(2),char(88),char(3),char(85),char(255),char(215),char(2),char(88),char(3),char(87), -char(255),char(215),char(2),char(88),char(3),char(89),char(255),char(215),char(2),char(88), -char(3),char(91),char(255),char(215),char(2),char(88),char(3),char(93),char(255),char(215), -char(2),char(88),char(3),char(95),char(255),char(215),char(2),char(88),char(3),char(111), -char(255),char(133),char(2),char(88),char(3),char(113),char(255),char(133),char(2),char(88), -char(3),char(115),char(255),char(133),char(2),char(88),char(3),char(143),char(255),char(113), -char(2),char(89),char(0),char(5),char(255),char(236),char(2),char(89),char(0),char(10), -char(255),char(236),char(2),char(89),char(2),char(7),char(255),char(236),char(2),char(89), -char(2),char(11),char(255),char(236),char(2),char(90),char(0),char(15),char(255),char(174), -char(2),char(90),char(0),char(17),char(255),char(174),char(2),char(90),char(1),char(86), -char(255),char(215),char(2),char(90),char(1),char(95),char(255),char(215),char(2),char(90), -char(1),char(98),char(255),char(215),char(2),char(90),char(1),char(100),char(255),char(236), -char(2),char(90),char(1),char(105),char(255),char(215),char(2),char(90),char(1),char(112), -char(255),char(236),char(2),char(90),char(1),char(113),char(255),char(195),char(2),char(90), -char(1),char(114),char(255),char(236),char(2),char(90),char(1),char(116),char(255),char(215), -char(2),char(90),char(1),char(117),char(255),char(236),char(2),char(90),char(1),char(120), -char(255),char(236),char(2),char(90),char(1),char(136),char(255),char(236),char(2),char(90), -char(2),char(8),char(255),char(174),char(2),char(90),char(2),char(12),char(255),char(174), -char(2),char(90),char(2),char(84),char(255),char(236),char(2),char(96),char(0),char(73), -char(0),char(82),char(2),char(96),char(0),char(87),char(0),char(82),char(2),char(96), -char(0),char(89),char(0),char(102),char(2),char(96),char(0),char(90),char(0),char(102), -char(2),char(96),char(0),char(91),char(0),char(102),char(2),char(96),char(0),char(92), -char(0),char(102),char(2),char(96),char(0),char(191),char(0),char(102),char(2),char(96), -char(1),char(37),char(0),char(82),char(2),char(96),char(1),char(39),char(0),char(82), -char(2),char(96),char(1),char(55),char(0),char(102),char(2),char(96),char(1),char(251), -char(0),char(102),char(2),char(96),char(1),char(253),char(0),char(102),char(2),char(96), -char(2),char(52),char(0),char(82),char(2),char(96),char(2),char(53),char(0),char(82), -char(2),char(96),char(2),char(93),char(0),char(82),char(2),char(96),char(2),char(94), -char(0),char(82),char(2),char(96),char(3),char(112),char(0),char(102),char(2),char(96), -char(3),char(141),char(0),char(82),char(2),char(96),char(3),char(144),char(0),char(82), -char(2),char(98),char(0),char(73),char(0),char(102),char(2),char(98),char(0),char(87), -char(0),char(102),char(2),char(98),char(0),char(89),char(0),char(102),char(2),char(98), -char(0),char(90),char(0),char(102),char(2),char(98),char(0),char(91),char(0),char(102), -char(2),char(98),char(0),char(92),char(0),char(102),char(2),char(98),char(0),char(191), -char(0),char(102),char(2),char(98),char(1),char(37),char(0),char(102),char(2),char(98), -char(1),char(39),char(0),char(102),char(2),char(98),char(1),char(55),char(0),char(102), -char(2),char(98),char(1),char(251),char(0),char(102),char(2),char(98),char(1),char(253), -char(0),char(102),char(2),char(98),char(2),char(52),char(0),char(102),char(2),char(98), -char(2),char(53),char(0),char(102),char(2),char(98),char(2),char(93),char(0),char(102), -char(2),char(98),char(2),char(94),char(0),char(102),char(2),char(98),char(3),char(112), -char(0),char(102),char(2),char(98),char(3),char(141),char(0),char(102),char(2),char(98), -char(3),char(144),char(0),char(102),char(2),char(106),char(0),char(5),char(255),char(236), -char(2),char(106),char(0),char(10),char(255),char(236),char(2),char(106),char(2),char(7), -char(255),char(236),char(2),char(106),char(2),char(11),char(255),char(236),char(2),char(108), -char(0),char(15),char(255),char(174),char(2),char(108),char(0),char(17),char(255),char(174), -char(2),char(108),char(1),char(157),char(255),char(236),char(2),char(108),char(1),char(164), -char(255),char(215),char(2),char(108),char(1),char(166),char(255),char(236),char(2),char(108), -char(1),char(168),char(255),char(215),char(2),char(108),char(1),char(170),char(255),char(215), -char(2),char(108),char(1),char(174),char(255),char(215),char(2),char(108),char(1),char(176), -char(255),char(215),char(2),char(108),char(1),char(177),char(255),char(236),char(2),char(108), -char(1),char(181),char(255),char(215),char(2),char(108),char(1),char(188),char(255),char(195), -char(2),char(108),char(1),char(189),char(255),char(215),char(2),char(108),char(1),char(191), -char(255),char(215),char(2),char(108),char(1),char(193),char(255),char(215),char(2),char(108), -char(1),char(196),char(255),char(236),char(2),char(108),char(1),char(199),char(255),char(236), -char(2),char(108),char(1),char(206),char(255),char(236),char(2),char(108),char(1),char(213), -char(255),char(236),char(2),char(108),char(1),char(242),char(255),char(236),char(2),char(108), -char(2),char(8),char(255),char(174),char(2),char(108),char(2),char(12),char(255),char(174), -char(2),char(108),char(2),char(114),char(255),char(215),char(2),char(108),char(2),char(115), -char(255),char(236),char(2),char(108),char(2),char(122),char(255),char(236),char(2),char(108), -char(2),char(124),char(255),char(215),char(2),char(108),char(2),char(128),char(255),char(236), -char(2),char(108),char(2),char(130),char(255),char(236),char(2),char(108),char(2),char(159), -char(255),char(215),char(2),char(108),char(2),char(161),char(255),char(236),char(2),char(108), -char(2),char(169),char(255),char(236),char(2),char(108),char(2),char(181),char(255),char(195), -char(2),char(108),char(2),char(183),char(255),char(236),char(2),char(108),char(2),char(185), -char(255),char(236),char(2),char(108),char(2),char(187),char(255),char(215),char(2),char(108), -char(2),char(189),char(255),char(236),char(2),char(108),char(2),char(191),char(255),char(215), -char(2),char(108),char(2),char(193),char(255),char(215),char(2),char(108),char(2),char(202), -char(255),char(215),char(2),char(108),char(2),char(206),char(255),char(215),char(2),char(108), -char(2),char(207),char(255),char(236),char(2),char(108),char(2),char(212),char(255),char(215), -char(2),char(108),char(2),char(217),char(255),char(215),char(2),char(108),char(2),char(219), -char(255),char(215),char(2),char(108),char(2),char(221),char(255),char(215),char(2),char(108), -char(2),char(229),char(255),char(215),char(2),char(108),char(2),char(231),char(255),char(236), -char(2),char(108),char(2),char(245),char(255),char(236),char(2),char(108),char(2),char(247), -char(255),char(215),char(2),char(108),char(2),char(249),char(255),char(215),char(2),char(108), -char(2),char(251),char(255),char(215),char(2),char(108),char(2),char(253),char(255),char(215), -char(2),char(108),char(3),char(5),char(255),char(215),char(2),char(108),char(3),char(7), -char(255),char(215),char(2),char(108),char(3),char(13),char(255),char(215),char(2),char(108), -char(3),char(15),char(255),char(215),char(2),char(108),char(3),char(17),char(255),char(215), -char(2),char(108),char(3),char(18),char(255),char(236),char(2),char(108),char(3),char(23), -char(255),char(236),char(2),char(108),char(3),char(27),char(255),char(215),char(2),char(108), -char(3),char(28),char(255),char(236),char(2),char(109),char(0),char(15),char(255),char(174), -char(2),char(109),char(0),char(17),char(255),char(174),char(2),char(109),char(1),char(206), -char(255),char(215),char(2),char(109),char(1),char(213),char(255),char(215),char(2),char(109), -char(1),char(242),char(255),char(215),char(2),char(109),char(2),char(8),char(255),char(174), -char(2),char(109),char(2),char(12),char(255),char(174),char(2),char(109),char(2),char(115), -char(255),char(215),char(2),char(109),char(2),char(207),char(255),char(215),char(2),char(109), -char(3),char(18),char(255),char(215),char(2),char(109),char(3),char(28),char(255),char(215), -char(2),char(110),char(0),char(5),char(255),char(174),char(2),char(110),char(0),char(10), -char(255),char(174),char(2),char(110),char(1),char(157),char(255),char(215),char(2),char(110), -char(1),char(166),char(255),char(215),char(2),char(110),char(1),char(188),char(255),char(174), -char(2),char(110),char(1),char(193),char(255),char(174),char(2),char(110),char(1),char(196), -char(255),char(215),char(2),char(110),char(1),char(220),char(255),char(215),char(2),char(110), -char(1),char(228),char(255),char(215),char(2),char(110),char(2),char(7),char(255),char(174), -char(2),char(110),char(2),char(11),char(255),char(174),char(2),char(110),char(2),char(124), -char(255),char(174),char(2),char(110),char(2),char(128),char(255),char(195),char(2),char(110), -char(2),char(130),char(255),char(195),char(2),char(110),char(2),char(169),char(255),char(215), -char(2),char(110),char(2),char(170),char(255),char(215),char(2),char(110),char(2),char(181), -char(255),char(174),char(2),char(110),char(2),char(182),char(255),char(215),char(2),char(110), -char(2),char(183),char(255),char(195),char(2),char(110),char(2),char(185),char(255),char(195), -char(2),char(110),char(2),char(189),char(255),char(215),char(2),char(110),char(2),char(190), -char(255),char(215),char(2),char(110),char(2),char(191),char(255),char(174),char(2),char(110), -char(2),char(193),char(255),char(174),char(2),char(110),char(2),char(212),char(255),char(174), -char(2),char(110),char(2),char(253),char(255),char(174),char(2),char(110),char(3),char(13), -char(255),char(154),char(2),char(110),char(3),char(15),char(255),char(154),char(2),char(110), -char(3),char(23),char(255),char(215),char(2),char(110),char(3),char(24),char(255),char(215), -char(2),char(111),char(0),char(5),char(255),char(133),char(2),char(111),char(0),char(10), -char(255),char(133),char(2),char(111),char(1),char(208),char(255),char(215),char(2),char(111), -char(1),char(220),char(255),char(154),char(2),char(111),char(1),char(221),char(255),char(195), -char(2),char(111),char(1),char(223),char(255),char(215),char(2),char(111),char(1),char(225), -char(255),char(174),char(2),char(111),char(1),char(228),char(255),char(154),char(2),char(111), -char(1),char(246),char(255),char(195),char(2),char(111),char(2),char(7),char(255),char(133), -char(2),char(111),char(2),char(11),char(255),char(133),char(2),char(111),char(2),char(109), -char(255),char(215),char(2),char(111),char(2),char(129),char(255),char(215),char(2),char(111), -char(2),char(131),char(255),char(215),char(2),char(111),char(2),char(139),char(255),char(215), -char(2),char(111),char(2),char(160),char(255),char(215),char(2),char(111),char(2),char(170), -char(255),char(154),char(2),char(111),char(2),char(182),char(255),char(154),char(2),char(111), -char(2),char(184),char(255),char(195),char(2),char(111),char(2),char(186),char(255),char(195), -char(2),char(111),char(2),char(188),char(255),char(215),char(2),char(111),char(2),char(190), -char(255),char(154),char(2),char(111),char(2),char(192),char(255),char(174),char(2),char(111), -char(2),char(194),char(255),char(174),char(2),char(111),char(2),char(198),char(255),char(215), -char(2),char(111),char(2),char(200),char(255),char(215),char(2),char(111),char(2),char(203), -char(255),char(215),char(2),char(111),char(2),char(213),char(255),char(174),char(2),char(111), -char(2),char(230),char(255),char(215),char(2),char(111),char(2),char(234),char(255),char(215), -char(2),char(111),char(2),char(248),char(255),char(195),char(2),char(111),char(2),char(250), -char(255),char(195),char(2),char(111),char(2),char(252),char(255),char(195),char(2),char(111), -char(2),char(254),char(255),char(174),char(2),char(111),char(3),char(6),char(255),char(215), -char(2),char(111),char(3),char(8),char(255),char(215),char(2),char(111),char(3),char(14), -char(255),char(154),char(2),char(111),char(3),char(16),char(255),char(154),char(2),char(111), -char(3),char(24),char(255),char(154),char(2),char(112),char(1),char(159),char(255),char(215), -char(2),char(112),char(1),char(184),char(255),char(215),char(2),char(112),char(1),char(187), -char(255),char(215),char(2),char(112),char(1),char(190),char(255),char(215),char(2),char(112), -char(1),char(225),char(255),char(215),char(2),char(112),char(2),char(108),char(255),char(215), -char(2),char(112),char(2),char(126),char(255),char(215),char(2),char(112),char(2),char(132), -char(255),char(215),char(2),char(112),char(2),char(134),char(255),char(215),char(2),char(112), -char(2),char(136),char(255),char(215),char(2),char(112),char(2),char(138),char(255),char(215), -char(2),char(112),char(2),char(140),char(255),char(215),char(2),char(112),char(2),char(177), -char(255),char(215),char(2),char(112),char(2),char(179),char(255),char(215),char(2),char(112), -char(2),char(192),char(255),char(215),char(2),char(112),char(2),char(194),char(255),char(215), -char(2),char(112),char(2),char(197),char(255),char(215),char(2),char(112),char(2),char(199), -char(255),char(215),char(2),char(112),char(2),char(213),char(255),char(215),char(2),char(112), -char(2),char(239),char(255),char(215),char(2),char(112),char(2),char(241),char(255),char(215), -char(2),char(112),char(2),char(243),char(255),char(215),char(2),char(112),char(2),char(254), -char(255),char(215),char(2),char(112),char(3),char(9),char(255),char(215),char(2),char(112), -char(3),char(11),char(255),char(215),char(2),char(112),char(3),char(14),char(255),char(215), -char(2),char(112),char(3),char(16),char(255),char(215),char(2),char(112),char(3),char(21), -char(255),char(215),char(2),char(114),char(0),char(5),char(255),char(113),char(2),char(114), -char(0),char(10),char(255),char(113),char(2),char(114),char(1),char(157),char(255),char(154), -char(2),char(114),char(1),char(166),char(255),char(154),char(2),char(114),char(1),char(188), -char(255),char(113),char(2),char(114),char(1),char(190),char(255),char(215),char(2),char(114), -char(1),char(193),char(255),char(154),char(2),char(114),char(1),char(196),char(255),char(154), -char(2),char(114),char(1),char(220),char(255),char(215),char(2),char(114),char(1),char(225), -char(255),char(215),char(2),char(114),char(1),char(228),char(255),char(215),char(2),char(114), -char(2),char(7),char(255),char(113),char(2),char(114),char(2),char(11),char(255),char(113), -char(2),char(114),char(2),char(110),char(255),char(215),char(2),char(114),char(2),char(124), -char(255),char(154),char(2),char(114),char(2),char(128),char(255),char(174),char(2),char(114), -char(2),char(130),char(255),char(174),char(2),char(114),char(2),char(151),char(255),char(215), -char(2),char(114),char(2),char(155),char(255),char(215),char(2),char(114),char(2),char(167), -char(255),char(215),char(2),char(114),char(2),char(169),char(255),char(154),char(2),char(114), -char(2),char(170),char(255),char(215),char(2),char(114),char(2),char(181),char(255),char(113), -char(2),char(114),char(2),char(182),char(255),char(215),char(2),char(114),char(2),char(183), -char(255),char(133),char(2),char(114),char(2),char(185),char(255),char(133),char(2),char(114), -char(2),char(189),char(255),char(154),char(2),char(114),char(2),char(190),char(255),char(215), -char(2),char(114),char(2),char(191),char(255),char(154),char(2),char(114),char(2),char(192), -char(255),char(215),char(2),char(114),char(2),char(193),char(255),char(154),char(2),char(114), -char(2),char(194),char(255),char(215),char(2),char(114),char(2),char(197),char(255),char(154), -char(2),char(114),char(2),char(199),char(255),char(154),char(2),char(114),char(2),char(212), -char(255),char(154),char(2),char(114),char(2),char(213),char(255),char(215),char(2),char(114), -char(2),char(225),char(255),char(215),char(2),char(114),char(2),char(227),char(255),char(215), -char(2),char(114),char(2),char(253),char(255),char(154),char(2),char(114),char(2),char(254), -char(255),char(215),char(2),char(114),char(3),char(3),char(255),char(215),char(2),char(114), -char(3),char(13),char(255),char(113),char(2),char(114),char(3),char(14),char(255),char(215), -char(2),char(114),char(3),char(15),char(255),char(113),char(2),char(114),char(3),char(16), -char(255),char(215),char(2),char(114),char(3),char(23),char(255),char(154),char(2),char(114), -char(3),char(24),char(255),char(215),char(2),char(115),char(0),char(5),char(255),char(113), -char(2),char(115),char(0),char(10),char(255),char(113),char(2),char(115),char(1),char(207), -char(255),char(215),char(2),char(115),char(1),char(216),char(255),char(215),char(2),char(115), -char(1),char(219),char(255),char(215),char(2),char(115),char(1),char(220),char(255),char(154), -char(2),char(115),char(1),char(221),char(255),char(195),char(2),char(115),char(1),char(222), -char(255),char(215),char(2),char(115),char(1),char(225),char(255),char(195),char(2),char(115), -char(1),char(228),char(255),char(154),char(2),char(115),char(1),char(234),char(255),char(215), -char(2),char(115),char(1),char(237),char(255),char(215),char(2),char(115),char(1),char(246), -char(255),char(195),char(2),char(115),char(2),char(7),char(255),char(113),char(2),char(115), -char(2),char(11),char(255),char(113),char(2),char(115),char(2),char(106),char(255),char(215), -char(2),char(115),char(2),char(109),char(255),char(215),char(2),char(115),char(2),char(125), -char(255),char(236),char(2),char(115),char(2),char(127),char(255),char(215),char(2),char(115), -char(2),char(129),char(255),char(215),char(2),char(115),char(2),char(131),char(255),char(215), -char(2),char(115),char(2),char(133),char(255),char(215),char(2),char(115),char(2),char(135), -char(255),char(215),char(2),char(115),char(2),char(137),char(255),char(215),char(2),char(115), -char(2),char(139),char(255),char(215),char(2),char(115),char(2),char(141),char(255),char(215), -char(2),char(115),char(2),char(170),char(255),char(154),char(2),char(115),char(2),char(178), -char(255),char(215),char(2),char(115),char(2),char(180),char(255),char(215),char(2),char(115), -char(2),char(182),char(255),char(154),char(2),char(115),char(2),char(184),char(255),char(215), -char(2),char(115),char(2),char(186),char(255),char(215),char(2),char(115),char(2),char(190), -char(255),char(154),char(2),char(115),char(2),char(192),char(255),char(195),char(2),char(115), -char(2),char(194),char(255),char(195),char(2),char(115),char(2),char(198),char(255),char(215), -char(2),char(115),char(2),char(200),char(255),char(215),char(2),char(115),char(2),char(213), -char(255),char(195),char(2),char(115),char(2),char(224),char(255),char(215),char(2),char(115), -char(2),char(240),char(255),char(215),char(2),char(115),char(2),char(242),char(255),char(215), -char(2),char(115),char(2),char(244),char(255),char(215),char(2),char(115),char(2),char(248), -char(255),char(195),char(2),char(115),char(2),char(250),char(255),char(195),char(2),char(115), -char(2),char(252),char(255),char(195),char(2),char(115),char(2),char(254),char(255),char(195), -char(2),char(115),char(3),char(10),char(255),char(215),char(2),char(115),char(3),char(12), -char(255),char(215),char(2),char(115),char(3),char(14),char(255),char(133),char(2),char(115), -char(3),char(16),char(255),char(133),char(2),char(115),char(3),char(22),char(255),char(215), -char(2),char(115),char(3),char(24),char(255),char(154),char(2),char(115),char(3),char(26), -char(255),char(215),char(2),char(116),char(0),char(5),char(255),char(113),char(2),char(116), -char(0),char(10),char(255),char(113),char(2),char(116),char(1),char(157),char(255),char(154), -char(2),char(116),char(1),char(166),char(255),char(154),char(2),char(116),char(1),char(188), -char(255),char(113),char(2),char(116),char(1),char(190),char(255),char(215),char(2),char(116), -char(1),char(193),char(255),char(154),char(2),char(116),char(1),char(196),char(255),char(154), -char(2),char(116),char(1),char(220),char(255),char(215),char(2),char(116),char(1),char(225), -char(255),char(215),char(2),char(116),char(1),char(228),char(255),char(215),char(2),char(116), -char(2),char(7),char(255),char(113),char(2),char(116),char(2),char(11),char(255),char(113), -char(2),char(116),char(2),char(110),char(255),char(215),char(2),char(116),char(2),char(124), -char(255),char(154),char(2),char(116),char(2),char(128),char(255),char(174),char(2),char(116), -char(2),char(130),char(255),char(174),char(2),char(116),char(2),char(151),char(255),char(215), -char(2),char(116),char(2),char(155),char(255),char(215),char(2),char(116),char(2),char(167), -char(255),char(215),char(2),char(116),char(2),char(169),char(255),char(154),char(2),char(116), -char(2),char(170),char(255),char(215),char(2),char(116),char(2),char(181),char(255),char(113), -char(2),char(116),char(2),char(182),char(255),char(215),char(2),char(116),char(2),char(183), -char(255),char(133),char(2),char(116),char(2),char(185),char(255),char(133),char(2),char(116), -char(2),char(189),char(255),char(154),char(2),char(116),char(2),char(190),char(255),char(215), -char(2),char(116),char(2),char(191),char(255),char(154),char(2),char(116),char(2),char(192), -char(255),char(215),char(2),char(116),char(2),char(193),char(255),char(154),char(2),char(116), -char(2),char(194),char(255),char(215),char(2),char(116),char(2),char(197),char(255),char(154), -char(2),char(116),char(2),char(199),char(255),char(154),char(2),char(116),char(2),char(212), -char(255),char(154),char(2),char(116),char(2),char(213),char(255),char(215),char(2),char(116), -char(2),char(225),char(255),char(215),char(2),char(116),char(2),char(227),char(255),char(215), -char(2),char(116),char(2),char(253),char(255),char(154),char(2),char(116),char(2),char(254), -char(255),char(215),char(2),char(116),char(3),char(3),char(255),char(215),char(2),char(116), -char(3),char(13),char(255),char(113),char(2),char(116),char(3),char(14),char(255),char(215), -char(2),char(116),char(3),char(15),char(255),char(113),char(2),char(116),char(3),char(16), -char(255),char(215),char(2),char(116),char(3),char(23),char(255),char(154),char(2),char(116), -char(3),char(24),char(255),char(215),char(2),char(117),char(0),char(5),char(255),char(113), -char(2),char(117),char(0),char(10),char(255),char(113),char(2),char(117),char(1),char(207), -char(255),char(215),char(2),char(117),char(1),char(216),char(255),char(215),char(2),char(117), -char(1),char(219),char(255),char(215),char(2),char(117),char(1),char(220),char(255),char(154), -char(2),char(117),char(1),char(221),char(255),char(195),char(2),char(117),char(1),char(222), -char(255),char(215),char(2),char(117),char(1),char(225),char(255),char(195),char(2),char(117), -char(1),char(228),char(255),char(154),char(2),char(117),char(1),char(234),char(255),char(215), -char(2),char(117),char(1),char(237),char(255),char(215),char(2),char(117),char(1),char(246), -char(255),char(195),char(2),char(117),char(2),char(7),char(255),char(113),char(2),char(117), -char(2),char(11),char(255),char(113),char(2),char(117),char(2),char(106),char(255),char(215), -char(2),char(117),char(2),char(109),char(255),char(215),char(2),char(117),char(2),char(125), -char(255),char(236),char(2),char(117),char(2),char(127),char(255),char(215),char(2),char(117), -char(2),char(129),char(255),char(215),char(2),char(117),char(2),char(131),char(255),char(215), -char(2),char(117),char(2),char(133),char(255),char(215),char(2),char(117),char(2),char(135), -char(255),char(215),char(2),char(117),char(2),char(137),char(255),char(215),char(2),char(117), -char(2),char(139),char(255),char(215),char(2),char(117),char(2),char(141),char(255),char(215), -char(2),char(117),char(2),char(170),char(255),char(154),char(2),char(117),char(2),char(178), -char(255),char(215),char(2),char(117),char(2),char(180),char(255),char(215),char(2),char(117), -char(2),char(182),char(255),char(154),char(2),char(117),char(2),char(184),char(255),char(215), -char(2),char(117),char(2),char(186),char(255),char(215),char(2),char(117),char(2),char(190), -char(255),char(154),char(2),char(117),char(2),char(192),char(255),char(195),char(2),char(117), -char(2),char(194),char(255),char(195),char(2),char(117),char(2),char(198),char(255),char(215), -char(2),char(117),char(2),char(200),char(255),char(215),char(2),char(117),char(2),char(213), -char(255),char(195),char(2),char(117),char(2),char(224),char(255),char(215),char(2),char(117), -char(2),char(240),char(255),char(215),char(2),char(117),char(2),char(242),char(255),char(215), -char(2),char(117),char(2),char(244),char(255),char(215),char(2),char(117),char(2),char(248), -char(255),char(195),char(2),char(117),char(2),char(250),char(255),char(195),char(2),char(117), -char(2),char(252),char(255),char(195),char(2),char(117),char(2),char(254),char(255),char(195), -char(2),char(117),char(3),char(10),char(255),char(215),char(2),char(117),char(3),char(12), -char(255),char(215),char(2),char(117),char(3),char(14),char(255),char(133),char(2),char(117), -char(3),char(16),char(255),char(133),char(2),char(117),char(3),char(22),char(255),char(215), -char(2),char(117),char(3),char(24),char(255),char(154),char(2),char(117),char(3),char(26), -char(255),char(215),char(2),char(118),char(3),char(13),char(255),char(236),char(2),char(118), -char(3),char(15),char(255),char(236),char(2),char(120),char(3),char(13),char(255),char(236), -char(2),char(120),char(3),char(15),char(255),char(236),char(2),char(122),char(0),char(15), -char(255),char(174),char(2),char(122),char(0),char(17),char(255),char(174),char(2),char(122), -char(2),char(8),char(255),char(174),char(2),char(122),char(2),char(12),char(255),char(174), -char(2),char(122),char(2),char(128),char(255),char(236),char(2),char(122),char(2),char(130), -char(255),char(236),char(2),char(122),char(2),char(183),char(255),char(236),char(2),char(122), -char(2),char(185),char(255),char(236),char(2),char(122),char(3),char(13),char(255),char(215), -char(2),char(122),char(3),char(15),char(255),char(215),char(2),char(124),char(0),char(15), -char(255),char(113),char(2),char(124),char(0),char(17),char(255),char(113),char(2),char(124), -char(1),char(164),char(255),char(195),char(2),char(124),char(1),char(170),char(255),char(174), -char(2),char(124),char(1),char(174),char(255),char(195),char(2),char(124),char(1),char(181), -char(255),char(195),char(2),char(124),char(1),char(206),char(255),char(215),char(2),char(124), -char(1),char(213),char(255),char(215),char(2),char(124),char(1),char(242),char(255),char(215), -char(2),char(124),char(2),char(8),char(255),char(113),char(2),char(124),char(2),char(12), -char(255),char(113),char(2),char(124),char(2),char(114),char(255),char(174),char(2),char(124), -char(2),char(115),char(255),char(215),char(2),char(124),char(2),char(206),char(255),char(195), -char(2),char(124),char(2),char(207),char(255),char(215),char(2),char(124),char(2),char(217), -char(255),char(174),char(2),char(124),char(2),char(219),char(255),char(174),char(2),char(124), -char(2),char(221),char(255),char(174),char(2),char(124),char(3),char(9),char(255),char(174), -char(2),char(124),char(3),char(11),char(255),char(174),char(2),char(124),char(3),char(17), -char(255),char(195),char(2),char(124),char(3),char(18),char(255),char(215),char(2),char(124), -char(3),char(27),char(255),char(195),char(2),char(124),char(3),char(28),char(255),char(215), -char(2),char(125),char(0),char(5),char(255),char(236),char(2),char(125),char(0),char(10), -char(255),char(236),char(2),char(125),char(1),char(208),char(255),char(215),char(2),char(125), -char(1),char(220),char(255),char(236),char(2),char(125),char(1),char(221),char(255),char(236), -char(2),char(125),char(1),char(223),char(255),char(215),char(2),char(125),char(1),char(225), -char(255),char(236),char(2),char(125),char(1),char(228),char(255),char(236),char(2),char(125), -char(1),char(246),char(255),char(236),char(2),char(125),char(2),char(7),char(255),char(236), -char(2),char(125),char(2),char(11),char(255),char(236),char(2),char(125),char(2),char(160), -char(255),char(215),char(2),char(125),char(2),char(170),char(255),char(236),char(2),char(125), -char(2),char(182),char(255),char(236),char(2),char(125),char(2),char(188),char(255),char(215), -char(2),char(125),char(2),char(190),char(255),char(236),char(2),char(125),char(2),char(192), -char(255),char(236),char(2),char(125),char(2),char(194),char(255),char(236),char(2),char(125), -char(2),char(203),char(255),char(215),char(2),char(125),char(2),char(213),char(255),char(236), -char(2),char(125),char(2),char(230),char(255),char(215),char(2),char(125),char(2),char(248), -char(255),char(236),char(2),char(125),char(2),char(250),char(255),char(236),char(2),char(125), -char(2),char(252),char(255),char(236),char(2),char(125),char(2),char(254),char(255),char(236), -char(2),char(125),char(3),char(6),char(255),char(215),char(2),char(125),char(3),char(8), -char(255),char(215),char(2),char(125),char(3),char(14),char(255),char(236),char(2),char(125), -char(3),char(16),char(255),char(236),char(2),char(125),char(3),char(24),char(255),char(236), -char(2),char(126),char(0),char(15),char(255),char(174),char(2),char(126),char(0),char(17), -char(255),char(174),char(2),char(126),char(1),char(157),char(255),char(236),char(2),char(126), -char(1),char(164),char(255),char(215),char(2),char(126),char(1),char(166),char(255),char(236), -char(2),char(126),char(1),char(168),char(255),char(215),char(2),char(126),char(1),char(170), -char(255),char(215),char(2),char(126),char(1),char(174),char(255),char(215),char(2),char(126), -char(1),char(176),char(255),char(215),char(2),char(126),char(1),char(177),char(255),char(236), -char(2),char(126),char(1),char(181),char(255),char(215),char(2),char(126),char(1),char(188), -char(255),char(195),char(2),char(126),char(1),char(189),char(255),char(215),char(2),char(126), -char(1),char(191),char(255),char(215),char(2),char(126),char(1),char(193),char(255),char(215), -char(2),char(126),char(1),char(196),char(255),char(236),char(2),char(126),char(1),char(199), -char(255),char(236),char(2),char(126),char(1),char(206),char(255),char(236),char(2),char(126), -char(1),char(213),char(255),char(236),char(2),char(126),char(1),char(242),char(255),char(236), -char(2),char(126),char(2),char(8),char(255),char(174),char(2),char(126),char(2),char(12), -char(255),char(174),char(2),char(126),char(2),char(114),char(255),char(215),char(2),char(126), -char(2),char(115),char(255),char(236),char(2),char(126),char(2),char(122),char(255),char(236), -char(2),char(126),char(2),char(124),char(255),char(215),char(2),char(126),char(2),char(128), -char(255),char(236),char(2),char(126),char(2),char(130),char(255),char(236),char(2),char(126), -char(2),char(159),char(255),char(215),char(2),char(126),char(2),char(161),char(255),char(236), -char(2),char(126),char(2),char(169),char(255),char(236),char(2),char(126),char(2),char(181), -char(255),char(195),char(2),char(126),char(2),char(183),char(255),char(236),char(2),char(126), -char(2),char(185),char(255),char(236),char(2),char(126),char(2),char(187),char(255),char(215), -char(2),char(126),char(2),char(189),char(255),char(236),char(2),char(126),char(2),char(191), -char(255),char(215),char(2),char(126),char(2),char(193),char(255),char(215),char(2),char(126), -char(2),char(202),char(255),char(215),char(2),char(126),char(2),char(206),char(255),char(215), -char(2),char(126),char(2),char(207),char(255),char(236),char(2),char(126),char(2),char(212), -char(255),char(215),char(2),char(126),char(2),char(217),char(255),char(215),char(2),char(126), -char(2),char(219),char(255),char(215),char(2),char(126),char(2),char(221),char(255),char(215), -char(2),char(126),char(2),char(229),char(255),char(215),char(2),char(126),char(2),char(231), -char(255),char(236),char(2),char(126),char(2),char(245),char(255),char(236),char(2),char(126), -char(2),char(247),char(255),char(215),char(2),char(126),char(2),char(249),char(255),char(215), -char(2),char(126),char(2),char(251),char(255),char(215),char(2),char(126),char(2),char(253), -char(255),char(215),char(2),char(126),char(3),char(5),char(255),char(215),char(2),char(126), -char(3),char(7),char(255),char(215),char(2),char(126),char(3),char(13),char(255),char(215), -char(2),char(126),char(3),char(15),char(255),char(215),char(2),char(126),char(3),char(17), -char(255),char(215),char(2),char(126),char(3),char(18),char(255),char(236),char(2),char(126), -char(3),char(23),char(255),char(236),char(2),char(126),char(3),char(27),char(255),char(215), -char(2),char(126),char(3),char(28),char(255),char(236),char(2),char(127),char(0),char(5), -char(255),char(236),char(2),char(127),char(0),char(10),char(255),char(236),char(2),char(127), -char(1),char(208),char(255),char(215),char(2),char(127),char(1),char(220),char(255),char(236), -char(2),char(127),char(1),char(221),char(255),char(236),char(2),char(127),char(1),char(223), -char(255),char(215),char(2),char(127),char(1),char(225),char(255),char(236),char(2),char(127), -char(1),char(228),char(255),char(236),char(2),char(127),char(1),char(246),char(255),char(236), -char(2),char(127),char(2),char(7),char(255),char(236),char(2),char(127),char(2),char(11), -char(255),char(236),char(2),char(127),char(2),char(160),char(255),char(215),char(2),char(127), -char(2),char(170),char(255),char(236),char(2),char(127),char(2),char(182),char(255),char(236), -char(2),char(127),char(2),char(188),char(255),char(215),char(2),char(127),char(2),char(190), -char(255),char(236),char(2),char(127),char(2),char(192),char(255),char(236),char(2),char(127), -char(2),char(194),char(255),char(236),char(2),char(127),char(2),char(203),char(255),char(215), -char(2),char(127),char(2),char(213),char(255),char(236),char(2),char(127),char(2),char(230), -char(255),char(215),char(2),char(127),char(2),char(248),char(255),char(236),char(2),char(127), -char(2),char(250),char(255),char(236),char(2),char(127),char(2),char(252),char(255),char(236), -char(2),char(127),char(2),char(254),char(255),char(236),char(2),char(127),char(3),char(6), -char(255),char(215),char(2),char(127),char(3),char(8),char(255),char(215),char(2),char(127), -char(3),char(14),char(255),char(236),char(2),char(127),char(3),char(16),char(255),char(236), -char(2),char(127),char(3),char(24),char(255),char(236),char(2),char(128),char(0),char(15), -char(255),char(133),char(2),char(128),char(0),char(17),char(255),char(133),char(2),char(128), -char(1),char(159),char(255),char(236),char(2),char(128),char(1),char(164),char(255),char(154), -char(2),char(128),char(1),char(170),char(255),char(113),char(2),char(128),char(1),char(174), -char(255),char(154),char(2),char(128),char(1),char(181),char(255),char(154),char(2),char(128), -char(1),char(184),char(255),char(236),char(2),char(128),char(1),char(187),char(255),char(236), -char(2),char(128),char(1),char(190),char(255),char(195),char(2),char(128),char(1),char(201), -char(255),char(236),char(2),char(128),char(1),char(206),char(255),char(174),char(2),char(128), -char(1),char(207),char(255),char(215),char(2),char(128),char(1),char(213),char(255),char(174), -char(2),char(128),char(1),char(216),char(255),char(215),char(2),char(128),char(1),char(219), -char(255),char(215),char(2),char(128),char(1),char(222),char(255),char(215),char(2),char(128), -char(1),char(225),char(255),char(215),char(2),char(128),char(1),char(234),char(255),char(215), -char(2),char(128),char(1),char(235),char(0),char(102),char(2),char(128),char(1),char(237), -char(255),char(215),char(2),char(128),char(1),char(238),char(255),char(236),char(2),char(128), -char(1),char(242),char(255),char(174),char(2),char(128),char(1),char(244),char(0),char(102), -char(2),char(128),char(2),char(8),char(255),char(133),char(2),char(128),char(2),char(12), -char(255),char(133),char(2),char(128),char(2),char(106),char(255),char(215),char(2),char(128), -char(2),char(108),char(255),char(236),char(2),char(128),char(2),char(114),char(255),char(113), -char(2),char(128),char(2),char(115),char(255),char(174),char(2),char(128),char(2),char(126), -char(255),char(236),char(2),char(128),char(2),char(127),char(255),char(215),char(2),char(128), -char(2),char(132),char(255),char(236),char(2),char(128),char(2),char(133),char(255),char(215), -char(2),char(128),char(2),char(134),char(255),char(236),char(2),char(128),char(2),char(135), -char(255),char(215),char(2),char(128),char(2),char(136),char(255),char(236),char(2),char(128), -char(2),char(137),char(255),char(215),char(2),char(128),char(2),char(138),char(255),char(236), -char(2),char(128),char(2),char(140),char(255),char(236),char(2),char(128),char(2),char(141), -char(255),char(215),char(2),char(128),char(2),char(152),char(0),char(102),char(2),char(128), -char(2),char(168),char(0),char(102),char(2),char(128),char(2),char(177),char(255),char(236), -char(2),char(128),char(2),char(178),char(255),char(215),char(2),char(128),char(2),char(179), -char(255),char(236),char(2),char(128),char(2),char(180),char(255),char(215),char(2),char(128), -char(2),char(192),char(255),char(215),char(2),char(128),char(2),char(194),char(255),char(215), -char(2),char(128),char(2),char(197),char(255),char(215),char(2),char(128),char(2),char(198), -char(255),char(195),char(2),char(128),char(2),char(199),char(255),char(215),char(2),char(128), -char(2),char(200),char(255),char(195),char(2),char(128),char(2),char(206),char(255),char(154), -char(2),char(128),char(2),char(207),char(255),char(174),char(2),char(128),char(2),char(213), -char(255),char(215),char(2),char(128),char(2),char(217),char(255),char(113),char(2),char(128), -char(2),char(219),char(255),char(113),char(2),char(128),char(2),char(221),char(255),char(113), -char(2),char(128),char(2),char(224),char(255),char(215),char(2),char(128),char(2),char(239), -char(255),char(236),char(2),char(128),char(2),char(240),char(255),char(215),char(2),char(128), -char(2),char(241),char(255),char(236),char(2),char(128),char(2),char(242),char(255),char(215), -char(2),char(128),char(2),char(243),char(255),char(236),char(2),char(128),char(2),char(244), -char(255),char(215),char(2),char(128),char(2),char(254),char(255),char(215),char(2),char(128), -char(3),char(9),char(255),char(113),char(2),char(128),char(3),char(10),char(255),char(215), -char(2),char(128),char(3),char(11),char(255),char(113),char(2),char(128),char(3),char(12), -char(255),char(215),char(2),char(128),char(3),char(17),char(255),char(154),char(2),char(128), -char(3),char(18),char(255),char(174),char(2),char(128),char(3),char(21),char(255),char(236), -char(2),char(128),char(3),char(22),char(255),char(215),char(2),char(128),char(3),char(26), -char(255),char(215),char(2),char(128),char(3),char(27),char(255),char(154),char(2),char(128), -char(3),char(28),char(255),char(174),char(2),char(129),char(0),char(15),char(255),char(174), -char(2),char(129),char(0),char(17),char(255),char(174),char(2),char(129),char(1),char(206), -char(255),char(215),char(2),char(129),char(1),char(213),char(255),char(215),char(2),char(129), -char(1),char(242),char(255),char(215),char(2),char(129),char(2),char(8),char(255),char(174), -char(2),char(129),char(2),char(12),char(255),char(174),char(2),char(129),char(2),char(115), -char(255),char(215),char(2),char(129),char(2),char(207),char(255),char(215),char(2),char(129), -char(3),char(18),char(255),char(215),char(2),char(129),char(3),char(28),char(255),char(215), -char(2),char(130),char(0),char(15),char(255),char(133),char(2),char(130),char(0),char(17), -char(255),char(133),char(2),char(130),char(1),char(159),char(255),char(236),char(2),char(130), -char(1),char(164),char(255),char(154),char(2),char(130),char(1),char(170),char(255),char(113), -char(2),char(130),char(1),char(174),char(255),char(154),char(2),char(130),char(1),char(181), -char(255),char(154),char(2),char(130),char(1),char(184),char(255),char(236),char(2),char(130), -char(1),char(187),char(255),char(236),char(2),char(130),char(1),char(190),char(255),char(195), -char(2),char(130),char(1),char(201),char(255),char(236),char(2),char(130),char(1),char(206), -char(255),char(174),char(2),char(130),char(1),char(207),char(255),char(215),char(2),char(130), -char(1),char(213),char(255),char(174),char(2),char(130),char(1),char(216),char(255),char(215), -char(2),char(130),char(1),char(219),char(255),char(215),char(2),char(130),char(1),char(222), -char(255),char(215),char(2),char(130),char(1),char(225),char(255),char(215),char(2),char(130), -char(1),char(234),char(255),char(215),char(2),char(130),char(1),char(235),char(0),char(102), -char(2),char(130),char(1),char(237),char(255),char(215),char(2),char(130),char(1),char(238), -char(255),char(236),char(2),char(130),char(1),char(242),char(255),char(174),char(2),char(130), -char(1),char(244),char(0),char(102),char(2),char(130),char(2),char(8),char(255),char(133), -char(2),char(130),char(2),char(12),char(255),char(133),char(2),char(130),char(2),char(106), -char(255),char(215),char(2),char(130),char(2),char(108),char(255),char(236),char(2),char(130), -char(2),char(114),char(255),char(113),char(2),char(130),char(2),char(115),char(255),char(174), -char(2),char(130),char(2),char(126),char(255),char(236),char(2),char(130),char(2),char(127), -char(255),char(215),char(2),char(130),char(2),char(132),char(255),char(236),char(2),char(130), -char(2),char(133),char(255),char(215),char(2),char(130),char(2),char(134),char(255),char(236), -char(2),char(130),char(2),char(135),char(255),char(215),char(2),char(130),char(2),char(136), -char(255),char(236),char(2),char(130),char(2),char(137),char(255),char(215),char(2),char(130), -char(2),char(138),char(255),char(236),char(2),char(130),char(2),char(140),char(255),char(236), -char(2),char(130),char(2),char(141),char(255),char(215),char(2),char(130),char(2),char(152), -char(0),char(102),char(2),char(130),char(2),char(168),char(0),char(102),char(2),char(130), -char(2),char(177),char(255),char(236),char(2),char(130),char(2),char(178),char(255),char(215), -char(2),char(130),char(2),char(179),char(255),char(236),char(2),char(130),char(2),char(180), -char(255),char(215),char(2),char(130),char(2),char(192),char(255),char(215),char(2),char(130), -char(2),char(194),char(255),char(215),char(2),char(130),char(2),char(197),char(255),char(215), -char(2),char(130),char(2),char(198),char(255),char(195),char(2),char(130),char(2),char(199), -char(255),char(215),char(2),char(130),char(2),char(200),char(255),char(195),char(2),char(130), -char(2),char(206),char(255),char(154),char(2),char(130),char(2),char(207),char(255),char(174), -char(2),char(130),char(2),char(213),char(255),char(215),char(2),char(130),char(2),char(217), -char(255),char(113),char(2),char(130),char(2),char(219),char(255),char(113),char(2),char(130), -char(2),char(221),char(255),char(113),char(2),char(130),char(2),char(224),char(255),char(215), -char(2),char(130),char(2),char(239),char(255),char(236),char(2),char(130),char(2),char(240), -char(255),char(215),char(2),char(130),char(2),char(241),char(255),char(236),char(2),char(130), -char(2),char(242),char(255),char(215),char(2),char(130),char(2),char(243),char(255),char(236), -char(2),char(130),char(2),char(244),char(255),char(215),char(2),char(130),char(2),char(254), -char(255),char(215),char(2),char(130),char(3),char(9),char(255),char(113),char(2),char(130), -char(3),char(10),char(255),char(215),char(2),char(130),char(3),char(11),char(255),char(113), -char(2),char(130),char(3),char(12),char(255),char(215),char(2),char(130),char(3),char(17), -char(255),char(154),char(2),char(130),char(3),char(18),char(255),char(174),char(2),char(130), -char(3),char(21),char(255),char(236),char(2),char(130),char(3),char(22),char(255),char(215), -char(2),char(130),char(3),char(26),char(255),char(215),char(2),char(130),char(3),char(27), -char(255),char(154),char(2),char(130),char(3),char(28),char(255),char(174),char(2),char(131), -char(0),char(15),char(255),char(174),char(2),char(131),char(0),char(17),char(255),char(174), -char(2),char(131),char(1),char(206),char(255),char(215),char(2),char(131),char(1),char(213), -char(255),char(215),char(2),char(131),char(1),char(242),char(255),char(215),char(2),char(131), -char(2),char(8),char(255),char(174),char(2),char(131),char(2),char(12),char(255),char(174), -char(2),char(131),char(2),char(115),char(255),char(215),char(2),char(131),char(2),char(207), -char(255),char(215),char(2),char(131),char(3),char(18),char(255),char(215),char(2),char(131), -char(3),char(28),char(255),char(215),char(2),char(132),char(0),char(15),char(255),char(174), -char(2),char(132),char(0),char(17),char(255),char(174),char(2),char(132),char(1),char(206), -char(255),char(215),char(2),char(132),char(1),char(213),char(255),char(215),char(2),char(132), -char(1),char(242),char(255),char(215),char(2),char(132),char(2),char(8),char(255),char(174), -char(2),char(132),char(2),char(12),char(255),char(174),char(2),char(132),char(2),char(115), -char(255),char(215),char(2),char(132),char(2),char(207),char(255),char(215),char(2),char(132), -char(3),char(18),char(255),char(215),char(2),char(132),char(3),char(28),char(255),char(215), -char(2),char(133),char(0),char(15),char(255),char(174),char(2),char(133),char(0),char(17), -char(255),char(174),char(2),char(133),char(1),char(206),char(255),char(215),char(2),char(133), -char(1),char(213),char(255),char(215),char(2),char(133),char(1),char(242),char(255),char(215), -char(2),char(133),char(2),char(8),char(255),char(174),char(2),char(133),char(2),char(12), -char(255),char(174),char(2),char(133),char(2),char(115),char(255),char(215),char(2),char(133), -char(2),char(207),char(255),char(215),char(2),char(133),char(3),char(18),char(255),char(215), -char(2),char(133),char(3),char(28),char(255),char(215),char(2),char(134),char(0),char(15), -char(255),char(174),char(2),char(134),char(0),char(17),char(255),char(174),char(2),char(134), -char(1),char(157),char(255),char(236),char(2),char(134),char(1),char(164),char(255),char(215), -char(2),char(134),char(1),char(166),char(255),char(236),char(2),char(134),char(1),char(168), -char(255),char(215),char(2),char(134),char(1),char(170),char(255),char(215),char(2),char(134), -char(1),char(174),char(255),char(215),char(2),char(134),char(1),char(176),char(255),char(215), -char(2),char(134),char(1),char(177),char(255),char(236),char(2),char(134),char(1),char(181), -char(255),char(215),char(2),char(134),char(1),char(188),char(255),char(195),char(2),char(134), -char(1),char(189),char(255),char(215),char(2),char(134),char(1),char(191),char(255),char(215), -char(2),char(134),char(1),char(193),char(255),char(215),char(2),char(134),char(1),char(196), -char(255),char(236),char(2),char(134),char(1),char(199),char(255),char(236),char(2),char(134), -char(1),char(206),char(255),char(236),char(2),char(134),char(1),char(213),char(255),char(236), -char(2),char(134),char(1),char(242),char(255),char(236),char(2),char(134),char(2),char(8), -char(255),char(174),char(2),char(134),char(2),char(12),char(255),char(174),char(2),char(134), -char(2),char(114),char(255),char(215),char(2),char(134),char(2),char(115),char(255),char(236), -char(2),char(134),char(2),char(122),char(255),char(236),char(2),char(134),char(2),char(124), -char(255),char(215),char(2),char(134),char(2),char(128),char(255),char(236),char(2),char(134), -char(2),char(130),char(255),char(236),char(2),char(134),char(2),char(159),char(255),char(215), -char(2),char(134),char(2),char(161),char(255),char(236),char(2),char(134),char(2),char(169), -char(255),char(236),char(2),char(134),char(2),char(181),char(255),char(195),char(2),char(134), -char(2),char(183),char(255),char(236),char(2),char(134),char(2),char(185),char(255),char(236), -char(2),char(134),char(2),char(187),char(255),char(215),char(2),char(134),char(2),char(189), -char(255),char(236),char(2),char(134),char(2),char(191),char(255),char(215),char(2),char(134), -char(2),char(193),char(255),char(215),char(2),char(134),char(2),char(202),char(255),char(215), -char(2),char(134),char(2),char(206),char(255),char(215),char(2),char(134),char(2),char(207), -char(255),char(236),char(2),char(134),char(2),char(212),char(255),char(215),char(2),char(134), -char(2),char(217),char(255),char(215),char(2),char(134),char(2),char(219),char(255),char(215), -char(2),char(134),char(2),char(221),char(255),char(215),char(2),char(134),char(2),char(229), -char(255),char(215),char(2),char(134),char(2),char(231),char(255),char(236),char(2),char(134), -char(2),char(245),char(255),char(236),char(2),char(134),char(2),char(247),char(255),char(215), -char(2),char(134),char(2),char(249),char(255),char(215),char(2),char(134),char(2),char(251), -char(255),char(215),char(2),char(134),char(2),char(253),char(255),char(215),char(2),char(134), -char(3),char(5),char(255),char(215),char(2),char(134),char(3),char(7),char(255),char(215), -char(2),char(134),char(3),char(13),char(255),char(215),char(2),char(134),char(3),char(15), -char(255),char(215),char(2),char(134),char(3),char(17),char(255),char(215),char(2),char(134), -char(3),char(18),char(255),char(236),char(2),char(134),char(3),char(23),char(255),char(236), -char(2),char(134),char(3),char(27),char(255),char(215),char(2),char(134),char(3),char(28), -char(255),char(236),char(2),char(135),char(0),char(5),char(255),char(236),char(2),char(135), -char(0),char(10),char(255),char(236),char(2),char(135),char(1),char(208),char(255),char(215), -char(2),char(135),char(1),char(220),char(255),char(236),char(2),char(135),char(1),char(221), -char(255),char(236),char(2),char(135),char(1),char(223),char(255),char(215),char(2),char(135), -char(1),char(225),char(255),char(236),char(2),char(135),char(1),char(228),char(255),char(236), -char(2),char(135),char(1),char(246),char(255),char(236),char(2),char(135),char(2),char(7), -char(255),char(236),char(2),char(135),char(2),char(11),char(255),char(236),char(2),char(135), -char(2),char(160),char(255),char(215),char(2),char(135),char(2),char(170),char(255),char(236), -char(2),char(135),char(2),char(182),char(255),char(236),char(2),char(135),char(2),char(188), -char(255),char(215),char(2),char(135),char(2),char(190),char(255),char(236),char(2),char(135), -char(2),char(192),char(255),char(236),char(2),char(135),char(2),char(194),char(255),char(236), -char(2),char(135),char(2),char(203),char(255),char(215),char(2),char(135),char(2),char(213), -char(255),char(236),char(2),char(135),char(2),char(230),char(255),char(215),char(2),char(135), -char(2),char(248),char(255),char(236),char(2),char(135),char(2),char(250),char(255),char(236), -char(2),char(135),char(2),char(252),char(255),char(236),char(2),char(135),char(2),char(254), -char(255),char(236),char(2),char(135),char(3),char(6),char(255),char(215),char(2),char(135), -char(3),char(8),char(255),char(215),char(2),char(135),char(3),char(14),char(255),char(236), -char(2),char(135),char(3),char(16),char(255),char(236),char(2),char(135),char(3),char(24), -char(255),char(236),char(2),char(136),char(0),char(15),char(255),char(174),char(2),char(136), -char(0),char(17),char(255),char(174),char(2),char(136),char(1),char(157),char(255),char(236), -char(2),char(136),char(1),char(164),char(255),char(215),char(2),char(136),char(1),char(166), -char(255),char(236),char(2),char(136),char(1),char(168),char(255),char(215),char(2),char(136), -char(1),char(170),char(255),char(215),char(2),char(136),char(1),char(174),char(255),char(215), -char(2),char(136),char(1),char(176),char(255),char(215),char(2),char(136),char(1),char(177), -char(255),char(236),char(2),char(136),char(1),char(181),char(255),char(215),char(2),char(136), -char(1),char(188),char(255),char(195),char(2),char(136),char(1),char(189),char(255),char(215), -char(2),char(136),char(1),char(191),char(255),char(215),char(2),char(136),char(1),char(193), -char(255),char(215),char(2),char(136),char(1),char(196),char(255),char(236),char(2),char(136), -char(1),char(199),char(255),char(236),char(2),char(136),char(1),char(206),char(255),char(236), -char(2),char(136),char(1),char(213),char(255),char(236),char(2),char(136),char(1),char(242), -char(255),char(236),char(2),char(136),char(2),char(8),char(255),char(174),char(2),char(136), -char(2),char(12),char(255),char(174),char(2),char(136),char(2),char(114),char(255),char(215), -char(2),char(136),char(2),char(115),char(255),char(236),char(2),char(136),char(2),char(122), -char(255),char(236),char(2),char(136),char(2),char(124),char(255),char(215),char(2),char(136), -char(2),char(128),char(255),char(236),char(2),char(136),char(2),char(130),char(255),char(236), -char(2),char(136),char(2),char(159),char(255),char(215),char(2),char(136),char(2),char(161), -char(255),char(236),char(2),char(136),char(2),char(169),char(255),char(236),char(2),char(136), -char(2),char(181),char(255),char(195),char(2),char(136),char(2),char(183),char(255),char(236), -char(2),char(136),char(2),char(185),char(255),char(236),char(2),char(136),char(2),char(187), -char(255),char(215),char(2),char(136),char(2),char(189),char(255),char(236),char(2),char(136), -char(2),char(191),char(255),char(215),char(2),char(136),char(2),char(193),char(255),char(215), -char(2),char(136),char(2),char(202),char(255),char(215),char(2),char(136),char(2),char(206), -char(255),char(215),char(2),char(136),char(2),char(207),char(255),char(236),char(2),char(136), -char(2),char(212),char(255),char(215),char(2),char(136),char(2),char(217),char(255),char(215), -char(2),char(136),char(2),char(219),char(255),char(215),char(2),char(136),char(2),char(221), -char(255),char(215),char(2),char(136),char(2),char(229),char(255),char(215),char(2),char(136), -char(2),char(231),char(255),char(236),char(2),char(136),char(2),char(245),char(255),char(236), -char(2),char(136),char(2),char(247),char(255),char(215),char(2),char(136),char(2),char(249), -char(255),char(215),char(2),char(136),char(2),char(251),char(255),char(215),char(2),char(136), -char(2),char(253),char(255),char(215),char(2),char(136),char(3),char(5),char(255),char(215), -char(2),char(136),char(3),char(7),char(255),char(215),char(2),char(136),char(3),char(13), -char(255),char(215),char(2),char(136),char(3),char(15),char(255),char(215),char(2),char(136), -char(3),char(17),char(255),char(215),char(2),char(136),char(3),char(18),char(255),char(236), -char(2),char(136),char(3),char(23),char(255),char(236),char(2),char(136),char(3),char(27), -char(255),char(215),char(2),char(136),char(3),char(28),char(255),char(236),char(2),char(137), -char(0),char(5),char(255),char(236),char(2),char(137),char(0),char(10),char(255),char(236), -char(2),char(137),char(1),char(208),char(255),char(215),char(2),char(137),char(1),char(220), -char(255),char(236),char(2),char(137),char(1),char(221),char(255),char(236),char(2),char(137), -char(1),char(223),char(255),char(215),char(2),char(137),char(1),char(225),char(255),char(236), -char(2),char(137),char(1),char(228),char(255),char(236),char(2),char(137),char(1),char(246), -char(255),char(236),char(2),char(137),char(2),char(7),char(255),char(236),char(2),char(137), -char(2),char(11),char(255),char(236),char(2),char(137),char(2),char(160),char(255),char(215), -char(2),char(137),char(2),char(170),char(255),char(236),char(2),char(137),char(2),char(182), -char(255),char(236),char(2),char(137),char(2),char(188),char(255),char(215),char(2),char(137), -char(2),char(190),char(255),char(236),char(2),char(137),char(2),char(192),char(255),char(236), -char(2),char(137),char(2),char(194),char(255),char(236),char(2),char(137),char(2),char(203), -char(255),char(215),char(2),char(137),char(2),char(213),char(255),char(236),char(2),char(137), -char(2),char(230),char(255),char(215),char(2),char(137),char(2),char(248),char(255),char(236), -char(2),char(137),char(2),char(250),char(255),char(236),char(2),char(137),char(2),char(252), -char(255),char(236),char(2),char(137),char(2),char(254),char(255),char(236),char(2),char(137), -char(3),char(6),char(255),char(215),char(2),char(137),char(3),char(8),char(255),char(215), -char(2),char(137),char(3),char(14),char(255),char(236),char(2),char(137),char(3),char(16), -char(255),char(236),char(2),char(137),char(3),char(24),char(255),char(236),char(2),char(138), -char(0),char(15),char(255),char(174),char(2),char(138),char(0),char(17),char(255),char(174), -char(2),char(138),char(1),char(157),char(255),char(236),char(2),char(138),char(1),char(164), -char(255),char(215),char(2),char(138),char(1),char(166),char(255),char(236),char(2),char(138), -char(1),char(168),char(255),char(215),char(2),char(138),char(1),char(170),char(255),char(215), -char(2),char(138),char(1),char(174),char(255),char(215),char(2),char(138),char(1),char(176), -char(255),char(215),char(2),char(138),char(1),char(177),char(255),char(236),char(2),char(138), -char(1),char(181),char(255),char(215),char(2),char(138),char(1),char(188),char(255),char(195), -char(2),char(138),char(1),char(189),char(255),char(215),char(2),char(138),char(1),char(191), -char(255),char(215),char(2),char(138),char(1),char(193),char(255),char(215),char(2),char(138), -char(1),char(196),char(255),char(236),char(2),char(138),char(1),char(199),char(255),char(236), -char(2),char(138),char(1),char(206),char(255),char(236),char(2),char(138),char(1),char(213), -char(255),char(236),char(2),char(138),char(1),char(242),char(255),char(236),char(2),char(138), -char(2),char(8),char(255),char(174),char(2),char(138),char(2),char(12),char(255),char(174), -char(2),char(138),char(2),char(114),char(255),char(215),char(2),char(138),char(2),char(115), -char(255),char(236),char(2),char(138),char(2),char(122),char(255),char(236),char(2),char(138), -char(2),char(124),char(255),char(215),char(2),char(138),char(2),char(128),char(255),char(236), -char(2),char(138),char(2),char(130),char(255),char(236),char(2),char(138),char(2),char(159), -char(255),char(215),char(2),char(138),char(2),char(161),char(255),char(236),char(2),char(138), -char(2),char(169),char(255),char(236),char(2),char(138),char(2),char(181),char(255),char(195), -char(2),char(138),char(2),char(183),char(255),char(236),char(2),char(138),char(2),char(185), -char(255),char(236),char(2),char(138),char(2),char(187),char(255),char(215),char(2),char(138), -char(2),char(189),char(255),char(236),char(2),char(138),char(2),char(191),char(255),char(215), -char(2),char(138),char(2),char(193),char(255),char(215),char(2),char(138),char(2),char(202), -char(255),char(215),char(2),char(138),char(2),char(206),char(255),char(215),char(2),char(138), -char(2),char(207),char(255),char(236),char(2),char(138),char(2),char(212),char(255),char(215), -char(2),char(138),char(2),char(217),char(255),char(215),char(2),char(138),char(2),char(219), -char(255),char(215),char(2),char(138),char(2),char(221),char(255),char(215),char(2),char(138), -char(2),char(229),char(255),char(215),char(2),char(138),char(2),char(231),char(255),char(236), -char(2),char(138),char(2),char(245),char(255),char(236),char(2),char(138),char(2),char(247), -char(255),char(215),char(2),char(138),char(2),char(249),char(255),char(215),char(2),char(138), -char(2),char(251),char(255),char(215),char(2),char(138),char(2),char(253),char(255),char(215), -char(2),char(138),char(3),char(5),char(255),char(215),char(2),char(138),char(3),char(7), -char(255),char(215),char(2),char(138),char(3),char(13),char(255),char(215),char(2),char(138), -char(3),char(15),char(255),char(215),char(2),char(138),char(3),char(17),char(255),char(215), -char(2),char(138),char(3),char(18),char(255),char(236),char(2),char(138),char(3),char(23), -char(255),char(236),char(2),char(138),char(3),char(27),char(255),char(215),char(2),char(138), -char(3),char(28),char(255),char(236),char(2),char(139),char(0),char(15),char(255),char(174), -char(2),char(139),char(0),char(17),char(255),char(174),char(2),char(139),char(1),char(206), -char(255),char(215),char(2),char(139),char(1),char(213),char(255),char(215),char(2),char(139), -char(1),char(242),char(255),char(215),char(2),char(139),char(2),char(8),char(255),char(174), -char(2),char(139),char(2),char(12),char(255),char(174),char(2),char(139),char(2),char(115), -char(255),char(215),char(2),char(139),char(2),char(207),char(255),char(215),char(2),char(139), -char(3),char(18),char(255),char(215),char(2),char(139),char(3),char(28),char(255),char(215), -char(2),char(140),char(1),char(159),char(255),char(215),char(2),char(140),char(1),char(184), -char(255),char(215),char(2),char(140),char(1),char(187),char(255),char(215),char(2),char(140), -char(1),char(190),char(255),char(215),char(2),char(140),char(1),char(225),char(255),char(215), -char(2),char(140),char(2),char(108),char(255),char(215),char(2),char(140),char(2),char(126), -char(255),char(215),char(2),char(140),char(2),char(132),char(255),char(215),char(2),char(140), -char(2),char(134),char(255),char(215),char(2),char(140),char(2),char(136),char(255),char(215), -char(2),char(140),char(2),char(138),char(255),char(215),char(2),char(140),char(2),char(140), -char(255),char(215),char(2),char(140),char(2),char(177),char(255),char(215),char(2),char(140), -char(2),char(179),char(255),char(215),char(2),char(140),char(2),char(192),char(255),char(215), -char(2),char(140),char(2),char(194),char(255),char(215),char(2),char(140),char(2),char(197), -char(255),char(215),char(2),char(140),char(2),char(199),char(255),char(215),char(2),char(140), -char(2),char(213),char(255),char(215),char(2),char(140),char(2),char(239),char(255),char(215), -char(2),char(140),char(2),char(241),char(255),char(215),char(2),char(140),char(2),char(243), -char(255),char(215),char(2),char(140),char(2),char(254),char(255),char(215),char(2),char(140), -char(3),char(9),char(255),char(215),char(2),char(140),char(3),char(11),char(255),char(215), -char(2),char(140),char(3),char(14),char(255),char(215),char(2),char(140),char(3),char(16), -char(255),char(215),char(2),char(140),char(3),char(21),char(255),char(215),char(2),char(149), -char(1),char(163),char(0),char(225),char(2),char(149),char(2),char(234),char(0),char(41), -char(2),char(149),char(3),char(14),char(255),char(215),char(2),char(149),char(3),char(16), -char(255),char(215),char(2),char(150),char(0),char(5),char(255),char(236),char(2),char(150), -char(0),char(10),char(255),char(236),char(2),char(150),char(2),char(7),char(255),char(236), -char(2),char(150),char(2),char(11),char(255),char(236),char(2),char(151),char(0),char(5), -char(255),char(174),char(2),char(151),char(0),char(10),char(255),char(174),char(2),char(151), -char(1),char(157),char(255),char(215),char(2),char(151),char(1),char(166),char(255),char(215), -char(2),char(151),char(1),char(188),char(255),char(174),char(2),char(151),char(1),char(193), -char(255),char(174),char(2),char(151),char(1),char(196),char(255),char(215),char(2),char(151), -char(1),char(220),char(255),char(215),char(2),char(151),char(1),char(228),char(255),char(215), -char(2),char(151),char(2),char(7),char(255),char(174),char(2),char(151),char(2),char(11), -char(255),char(174),char(2),char(151),char(2),char(124),char(255),char(174),char(2),char(151), -char(2),char(128),char(255),char(195),char(2),char(151),char(2),char(130),char(255),char(195), -char(2),char(151),char(2),char(169),char(255),char(215),char(2),char(151),char(2),char(170), -char(255),char(215),char(2),char(151),char(2),char(181),char(255),char(174),char(2),char(151), -char(2),char(182),char(255),char(215),char(2),char(151),char(2),char(183),char(255),char(195), -char(2),char(151),char(2),char(185),char(255),char(195),char(2),char(151),char(2),char(189), -char(255),char(215),char(2),char(151),char(2),char(190),char(255),char(215),char(2),char(151), -char(2),char(191),char(255),char(174),char(2),char(151),char(2),char(193),char(255),char(174), -char(2),char(151),char(2),char(212),char(255),char(174),char(2),char(151),char(2),char(253), -char(255),char(174),char(2),char(151),char(3),char(13),char(255),char(154),char(2),char(151), -char(3),char(15),char(255),char(154),char(2),char(151),char(3),char(23),char(255),char(215), -char(2),char(151),char(3),char(24),char(255),char(215),char(2),char(152),char(0),char(5), -char(255),char(133),char(2),char(152),char(0),char(10),char(255),char(133),char(2),char(152), -char(1),char(208),char(255),char(215),char(2),char(152),char(1),char(220),char(255),char(154), -char(2),char(152),char(1),char(221),char(255),char(195),char(2),char(152),char(1),char(223), -char(255),char(215),char(2),char(152),char(1),char(225),char(255),char(174),char(2),char(152), -char(1),char(228),char(255),char(154),char(2),char(152),char(1),char(246),char(255),char(195), -char(2),char(152),char(2),char(7),char(255),char(133),char(2),char(152),char(2),char(11), -char(255),char(133),char(2),char(152),char(2),char(109),char(255),char(215),char(2),char(152), -char(2),char(129),char(255),char(215),char(2),char(152),char(2),char(131),char(255),char(215), -char(2),char(152),char(2),char(139),char(255),char(215),char(2),char(152),char(2),char(160), -char(255),char(215),char(2),char(152),char(2),char(170),char(255),char(154),char(2),char(152), -char(2),char(182),char(255),char(154),char(2),char(152),char(2),char(184),char(255),char(195), -char(2),char(152),char(2),char(186),char(255),char(195),char(2),char(152),char(2),char(188), -char(255),char(215),char(2),char(152),char(2),char(190),char(255),char(154),char(2),char(152), -char(2),char(192),char(255),char(174),char(2),char(152),char(2),char(194),char(255),char(174), -char(2),char(152),char(2),char(198),char(255),char(215),char(2),char(152),char(2),char(200), -char(255),char(215),char(2),char(152),char(2),char(203),char(255),char(215),char(2),char(152), -char(2),char(213),char(255),char(174),char(2),char(152),char(2),char(230),char(255),char(215), -char(2),char(152),char(2),char(234),char(255),char(215),char(2),char(152),char(2),char(248), -char(255),char(195),char(2),char(152),char(2),char(250),char(255),char(195),char(2),char(152), -char(2),char(252),char(255),char(195),char(2),char(152),char(2),char(254),char(255),char(174), -char(2),char(152),char(3),char(6),char(255),char(215),char(2),char(152),char(3),char(8), -char(255),char(215),char(2),char(152),char(3),char(14),char(255),char(154),char(2),char(152), -char(3),char(16),char(255),char(154),char(2),char(152),char(3),char(24),char(255),char(154), -char(2),char(153),char(0),char(15),char(254),char(246),char(2),char(153),char(0),char(17), -char(254),char(246),char(2),char(153),char(1),char(164),char(255),char(133),char(2),char(153), -char(1),char(170),char(255),char(154),char(2),char(153),char(1),char(174),char(255),char(133), -char(2),char(153),char(1),char(176),char(255),char(215),char(2),char(153),char(1),char(181), -char(255),char(133),char(2),char(153),char(1),char(191),char(255),char(215),char(2),char(153), -char(1),char(206),char(255),char(154),char(2),char(153),char(1),char(213),char(255),char(154), -char(2),char(153),char(1),char(242),char(255),char(154),char(2),char(153),char(2),char(8), -char(254),char(246),char(2),char(153),char(2),char(12),char(254),char(246),char(2),char(153), -char(2),char(114),char(255),char(154),char(2),char(153),char(2),char(115),char(255),char(154), -char(2),char(153),char(2),char(118),char(255),char(236),char(2),char(153),char(2),char(159), -char(255),char(215),char(2),char(153),char(2),char(187),char(255),char(215),char(2),char(153), -char(2),char(202),char(255),char(215),char(2),char(153),char(2),char(206),char(255),char(133), -char(2),char(153),char(2),char(207),char(255),char(154),char(2),char(153),char(2),char(217), -char(255),char(154),char(2),char(153),char(2),char(219),char(255),char(154),char(2),char(153), -char(2),char(221),char(255),char(154),char(2),char(153),char(2),char(229),char(255),char(215), -char(2),char(153),char(3),char(5),char(255),char(215),char(2),char(153),char(3),char(7), -char(255),char(215),char(2),char(153),char(3),char(9),char(255),char(174),char(2),char(153), -char(3),char(11),char(255),char(174),char(2),char(153),char(3),char(17),char(255),char(133), -char(2),char(153),char(3),char(18),char(255),char(154),char(2),char(153),char(3),char(27), -char(255),char(133),char(2),char(153),char(3),char(28),char(255),char(154),char(2),char(154), -char(0),char(5),char(255),char(236),char(2),char(154),char(0),char(10),char(255),char(236), -char(2),char(154),char(1),char(208),char(255),char(215),char(2),char(154),char(1),char(220), -char(255),char(236),char(2),char(154),char(1),char(221),char(255),char(236),char(2),char(154), -char(1),char(223),char(255),char(215),char(2),char(154),char(1),char(225),char(255),char(236), -char(2),char(154),char(1),char(228),char(255),char(236),char(2),char(154),char(1),char(246), -char(255),char(236),char(2),char(154),char(2),char(7),char(255),char(236),char(2),char(154), -char(2),char(11),char(255),char(236),char(2),char(154),char(2),char(160),char(255),char(215), -char(2),char(154),char(2),char(170),char(255),char(236),char(2),char(154),char(2),char(182), -char(255),char(236),char(2),char(154),char(2),char(188),char(255),char(215),char(2),char(154), -char(2),char(190),char(255),char(236),char(2),char(154),char(2),char(192),char(255),char(236), -char(2),char(154),char(2),char(194),char(255),char(236),char(2),char(154),char(2),char(203), -char(255),char(215),char(2),char(154),char(2),char(213),char(255),char(236),char(2),char(154), -char(2),char(230),char(255),char(215),char(2),char(154),char(2),char(248),char(255),char(236), -char(2),char(154),char(2),char(250),char(255),char(236),char(2),char(154),char(2),char(252), -char(255),char(236),char(2),char(154),char(2),char(254),char(255),char(236),char(2),char(154), -char(3),char(6),char(255),char(215),char(2),char(154),char(3),char(8),char(255),char(215), -char(2),char(154),char(3),char(14),char(255),char(236),char(2),char(154),char(3),char(16), -char(255),char(236),char(2),char(154),char(3),char(24),char(255),char(236),char(2),char(155), -char(0),char(15),char(255),char(154),char(2),char(155),char(0),char(16),char(255),char(215), -char(2),char(155),char(0),char(17),char(255),char(154),char(2),char(155),char(1),char(157), -char(0),char(41),char(2),char(155),char(1),char(159),char(255),char(215),char(2),char(155), -char(1),char(164),char(255),char(174),char(2),char(155),char(1),char(166),char(0),char(41), -char(2),char(155),char(1),char(170),char(255),char(133),char(2),char(155),char(1),char(174), -char(255),char(174),char(2),char(155),char(1),char(181),char(255),char(174),char(2),char(155), -char(1),char(184),char(255),char(215),char(2),char(155),char(1),char(187),char(255),char(215), -char(2),char(155),char(1),char(188),char(0),char(41),char(2),char(155),char(1),char(190), -char(255),char(195),char(2),char(155),char(1),char(196),char(0),char(41),char(2),char(155), -char(1),char(204),char(255),char(195),char(2),char(155),char(1),char(205),char(255),char(195), -char(2),char(155),char(1),char(206),char(255),char(154),char(2),char(155),char(1),char(207), -char(255),char(174),char(2),char(155),char(1),char(208),char(255),char(215),char(2),char(155), -char(1),char(209),char(255),char(215),char(2),char(155),char(1),char(210),char(255),char(195), -char(2),char(155),char(1),char(211),char(255),char(195),char(2),char(155),char(1),char(212), -char(255),char(195),char(2),char(155),char(1),char(213),char(255),char(154),char(2),char(155), -char(1),char(214),char(255),char(195),char(2),char(155),char(1),char(215),char(255),char(195), -char(2),char(155),char(1),char(216),char(255),char(174),char(2),char(155),char(1),char(217), -char(255),char(195),char(2),char(155),char(1),char(218),char(255),char(195),char(2),char(155), -char(1),char(219),char(255),char(174),char(2),char(155),char(1),char(222),char(255),char(174), -char(2),char(155),char(1),char(223),char(255),char(215),char(2),char(155),char(1),char(224), -char(255),char(195),char(2),char(155),char(1),char(225),char(255),char(154),char(2),char(155), -char(1),char(226),char(255),char(195),char(2),char(155),char(1),char(227),char(255),char(195), -char(2),char(155),char(1),char(229),char(255),char(195),char(2),char(155),char(1),char(230), -char(255),char(195),char(2),char(155),char(1),char(231),char(255),char(215),char(2),char(155), -char(1),char(232),char(255),char(195),char(2),char(155),char(1),char(234),char(255),char(174), -char(2),char(155),char(1),char(235),char(0),char(41),char(2),char(155),char(1),char(236), -char(255),char(195),char(2),char(155),char(1),char(237),char(255),char(174),char(2),char(155), -char(1),char(238),char(255),char(195),char(2),char(155),char(1),char(242),char(255),char(154), -char(2),char(155),char(1),char(243),char(255),char(195),char(2),char(155),char(1),char(244), -char(0),char(41),char(2),char(155),char(1),char(245),char(255),char(195),char(2),char(155), -char(1),char(247),char(255),char(195),char(2),char(155),char(1),char(249),char(255),char(195), -char(2),char(155),char(2),char(2),char(255),char(215),char(2),char(155),char(2),char(3), -char(255),char(215),char(2),char(155),char(2),char(4),char(255),char(215),char(2),char(155), -char(2),char(8),char(255),char(154),char(2),char(155),char(2),char(12),char(255),char(154), -char(2),char(155),char(2),char(106),char(255),char(174),char(2),char(155),char(2),char(107), -char(255),char(195),char(2),char(155),char(2),char(108),char(255),char(215),char(2),char(155), -char(2),char(113),char(255),char(195),char(2),char(155),char(2),char(114),char(255),char(133), -char(2),char(155),char(2),char(115),char(255),char(154),char(2),char(155),char(2),char(117), -char(255),char(195),char(2),char(155),char(2),char(119),char(255),char(215),char(2),char(155), -char(2),char(121),char(255),char(195),char(2),char(155),char(2),char(125),char(255),char(195), -char(2),char(155),char(2),char(126),char(255),char(215),char(2),char(155),char(2),char(127), -char(255),char(174),char(2),char(155),char(2),char(132),char(255),char(215),char(2),char(155), -char(2),char(133),char(255),char(174),char(2),char(155),char(2),char(134),char(255),char(215), -char(2),char(155),char(2),char(135),char(255),char(174),char(2),char(155),char(2),char(136), -char(255),char(215),char(2),char(155),char(2),char(137),char(255),char(174),char(2),char(155), -char(2),char(138),char(255),char(215),char(2),char(155),char(2),char(140),char(255),char(215), -char(2),char(155),char(2),char(141),char(255),char(174),char(2),char(155),char(2),char(150), -char(255),char(195),char(2),char(155),char(2),char(152),char(0),char(41),char(2),char(155), -char(2),char(154),char(255),char(195),char(2),char(155),char(2),char(158),char(255),char(195), -char(2),char(155),char(2),char(160),char(255),char(215),char(2),char(155),char(2),char(162), -char(255),char(215),char(2),char(155),char(2),char(164),char(255),char(195),char(2),char(155), -char(2),char(166),char(255),char(195),char(2),char(155),char(2),char(168),char(0),char(41), -char(2),char(155),char(2),char(169),char(0),char(41),char(2),char(155),char(2),char(172), -char(255),char(195),char(2),char(155),char(2),char(174),char(255),char(195),char(2),char(155), -char(2),char(176),char(255),char(195),char(2),char(155),char(2),char(177),char(255),char(215), -char(2),char(155),char(2),char(178),char(255),char(174),char(2),char(155),char(2),char(179), -char(255),char(215),char(2),char(155),char(2),char(180),char(255),char(174),char(2),char(155), -char(2),char(181),char(0),char(41),char(2),char(155),char(2),char(188),char(255),char(215), -char(2),char(155),char(2),char(189),char(0),char(41),char(2),char(155),char(2),char(192), -char(255),char(154),char(2),char(155),char(2),char(194),char(255),char(154),char(2),char(155), -char(2),char(196),char(255),char(195),char(2),char(155),char(2),char(197),char(255),char(215), -char(2),char(155),char(2),char(198),char(255),char(195),char(2),char(155),char(2),char(199), -char(255),char(215),char(2),char(155),char(2),char(200),char(255),char(195),char(2),char(155), -char(2),char(203),char(255),char(215),char(2),char(155),char(2),char(205),char(255),char(195), -char(2),char(155),char(2),char(206),char(255),char(174),char(2),char(155),char(2),char(207), -char(255),char(154),char(2),char(155),char(2),char(209),char(255),char(195),char(2),char(155), -char(2),char(211),char(255),char(195),char(2),char(155),char(2),char(213),char(255),char(154), -char(2),char(155),char(2),char(215),char(255),char(195),char(2),char(155),char(2),char(217), -char(255),char(133),char(2),char(155),char(2),char(219),char(255),char(133),char(2),char(155), -char(2),char(221),char(255),char(133),char(2),char(155),char(2),char(224),char(255),char(174), -char(2),char(155),char(2),char(230),char(255),char(215),char(2),char(155),char(2),char(232), -char(255),char(215),char(2),char(155),char(2),char(236),char(255),char(195),char(2),char(155), -char(2),char(238),char(255),char(195),char(2),char(155),char(2),char(239),char(255),char(215), -char(2),char(155),char(2),char(240),char(255),char(174),char(2),char(155),char(2),char(241), -char(255),char(215),char(2),char(155),char(2),char(242),char(255),char(174),char(2),char(155), -char(2),char(243),char(255),char(215),char(2),char(155),char(2),char(244),char(255),char(174), -char(2),char(155),char(2),char(246),char(255),char(215),char(2),char(155),char(2),char(254), -char(255),char(154),char(2),char(155),char(3),char(0),char(255),char(195),char(2),char(155), -char(3),char(2),char(255),char(195),char(2),char(155),char(3),char(6),char(255),char(215), -char(2),char(155),char(3),char(8),char(255),char(215),char(2),char(155),char(3),char(9), -char(255),char(154),char(2),char(155),char(3),char(10),char(255),char(174),char(2),char(155), -char(3),char(11),char(255),char(154),char(2),char(155),char(3),char(12),char(255),char(174), -char(2),char(155),char(3),char(14),char(255),char(215),char(2),char(155),char(3),char(16), -char(255),char(215),char(2),char(155),char(3),char(17),char(255),char(174),char(2),char(155), -char(3),char(18),char(255),char(154),char(2),char(155),char(3),char(20),char(255),char(195), -char(2),char(155),char(3),char(21),char(255),char(215),char(2),char(155),char(3),char(22), -char(255),char(174),char(2),char(155),char(3),char(23),char(0),char(41),char(2),char(155), -char(3),char(26),char(255),char(174),char(2),char(155),char(3),char(27),char(255),char(174), -char(2),char(155),char(3),char(28),char(255),char(154),char(2),char(156),char(0),char(15), -char(255),char(195),char(2),char(156),char(0),char(17),char(255),char(195),char(2),char(156), -char(1),char(206),char(255),char(195),char(2),char(156),char(1),char(207),char(255),char(215), -char(2),char(156),char(1),char(213),char(255),char(195),char(2),char(156),char(1),char(216), -char(255),char(215),char(2),char(156),char(1),char(219),char(255),char(215),char(2),char(156), -char(1),char(222),char(255),char(215),char(2),char(156),char(1),char(234),char(255),char(215), -char(2),char(156),char(1),char(237),char(255),char(215),char(2),char(156),char(1),char(242), -char(255),char(195),char(2),char(156),char(2),char(8),char(255),char(195),char(2),char(156), -char(2),char(12),char(255),char(195),char(2),char(156),char(2),char(106),char(255),char(215), -char(2),char(156),char(2),char(115),char(255),char(195),char(2),char(156),char(2),char(127), -char(255),char(215),char(2),char(156),char(2),char(133),char(255),char(215),char(2),char(156), -char(2),char(135),char(255),char(215),char(2),char(156),char(2),char(137),char(255),char(215), -char(2),char(156),char(2),char(141),char(255),char(215),char(2),char(156),char(2),char(178), -char(255),char(215),char(2),char(156),char(2),char(180),char(255),char(215),char(2),char(156), -char(2),char(207),char(255),char(195),char(2),char(156),char(2),char(224),char(255),char(215), -char(2),char(156),char(2),char(240),char(255),char(215),char(2),char(156),char(2),char(242), -char(255),char(215),char(2),char(156),char(2),char(244),char(255),char(215),char(2),char(156), -char(3),char(10),char(255),char(215),char(2),char(156),char(3),char(12),char(255),char(215), -char(2),char(156),char(3),char(18),char(255),char(195),char(2),char(156),char(3),char(22), -char(255),char(215),char(2),char(156),char(3),char(26),char(255),char(215),char(2),char(156), -char(3),char(28),char(255),char(195),char(2),char(157),char(0),char(5),char(255),char(195), -char(2),char(157),char(0),char(10),char(255),char(195),char(2),char(157),char(1),char(157), -char(255),char(195),char(2),char(157),char(1),char(163),char(0),char(102),char(2),char(157), -char(1),char(166),char(255),char(195),char(2),char(157),char(1),char(188),char(255),char(195), -char(2),char(157),char(1),char(193),char(255),char(174),char(2),char(157),char(1),char(196), -char(255),char(195),char(2),char(157),char(1),char(220),char(255),char(215),char(2),char(157), -char(1),char(225),char(255),char(215),char(2),char(157),char(1),char(228),char(255),char(215), -char(2),char(157),char(2),char(7),char(255),char(195),char(2),char(157),char(2),char(11), -char(255),char(195),char(2),char(157),char(2),char(124),char(255),char(174),char(2),char(157), -char(2),char(128),char(255),char(195),char(2),char(157),char(2),char(130),char(255),char(195), -char(2),char(157),char(2),char(169),char(255),char(195),char(2),char(157),char(2),char(170), -char(255),char(215),char(2),char(157),char(2),char(181),char(255),char(195),char(2),char(157), -char(2),char(182),char(255),char(215),char(2),char(157),char(2),char(183),char(255),char(215), -char(2),char(157),char(2),char(185),char(255),char(215),char(2),char(157),char(2),char(189), -char(255),char(195),char(2),char(157),char(2),char(190),char(255),char(215),char(2),char(157), -char(2),char(191),char(255),char(174),char(2),char(157),char(2),char(192),char(255),char(215), -char(2),char(157),char(2),char(193),char(255),char(174),char(2),char(157),char(2),char(194), -char(255),char(215),char(2),char(157),char(2),char(212),char(255),char(174),char(2),char(157), -char(2),char(213),char(255),char(215),char(2),char(157),char(2),char(253),char(255),char(174), -char(2),char(157),char(2),char(254),char(255),char(215),char(2),char(157),char(3),char(13), -char(255),char(215),char(2),char(157),char(3),char(14),char(255),char(195),char(2),char(157), -char(3),char(15),char(255),char(215),char(2),char(157),char(3),char(16),char(255),char(195), -char(2),char(157),char(3),char(23),char(255),char(195),char(2),char(157),char(3),char(24), -char(255),char(215),char(2),char(158),char(0),char(5),char(255),char(195),char(2),char(158), -char(0),char(10),char(255),char(195),char(2),char(158),char(2),char(7),char(255),char(195), -char(2),char(158),char(2),char(11),char(255),char(195),char(2),char(158),char(3),char(14), -char(255),char(215),char(2),char(158),char(3),char(16),char(255),char(215),char(2),char(159), -char(1),char(159),char(255),char(215),char(2),char(159),char(1),char(163),char(0),char(225), -char(2),char(159),char(1),char(184),char(255),char(215),char(2),char(159),char(1),char(187), -char(255),char(215),char(2),char(159),char(1),char(190),char(255),char(195),char(2),char(159), -char(1),char(220),char(255),char(215),char(2),char(159),char(1),char(225),char(255),char(174), -char(2),char(159),char(1),char(228),char(255),char(215),char(2),char(159),char(2),char(108), -char(255),char(215),char(2),char(159),char(2),char(123),char(0),char(61),char(2),char(159), -char(2),char(125),char(255),char(236),char(2),char(159),char(2),char(126),char(255),char(215), -char(2),char(159),char(2),char(132),char(255),char(215),char(2),char(159),char(2),char(134), -char(255),char(215),char(2),char(159),char(2),char(136),char(255),char(215),char(2),char(159), -char(2),char(138),char(255),char(215),char(2),char(159),char(2),char(140),char(255),char(215), -char(2),char(159),char(2),char(170),char(255),char(215),char(2),char(159),char(2),char(177), -char(255),char(215),char(2),char(159),char(2),char(179),char(255),char(215),char(2),char(159), -char(2),char(182),char(255),char(215),char(2),char(159),char(2),char(190),char(255),char(215), -char(2),char(159),char(2),char(192),char(255),char(174),char(2),char(159),char(2),char(194), -char(255),char(174),char(2),char(159),char(2),char(197),char(255),char(195),char(2),char(159), -char(2),char(198),char(255),char(215),char(2),char(159),char(2),char(199),char(255),char(195), -char(2),char(159),char(2),char(200),char(255),char(215),char(2),char(159),char(2),char(213), -char(255),char(174),char(2),char(159),char(2),char(239),char(255),char(215),char(2),char(159), -char(2),char(241),char(255),char(215),char(2),char(159),char(2),char(243),char(255),char(215), -char(2),char(159),char(2),char(254),char(255),char(174),char(2),char(159),char(3),char(14), -char(255),char(215),char(2),char(159),char(3),char(16),char(255),char(215),char(2),char(159), -char(3),char(21),char(255),char(215),char(2),char(159),char(3),char(24),char(255),char(215), -char(2),char(160),char(1),char(207),char(255),char(236),char(2),char(160),char(1),char(216), -char(255),char(236),char(2),char(160),char(1),char(219),char(255),char(236),char(2),char(160), -char(1),char(222),char(255),char(236),char(2),char(160),char(1),char(225),char(255),char(236), -char(2),char(160),char(1),char(234),char(255),char(236),char(2),char(160),char(1),char(237), -char(255),char(236),char(2),char(160),char(2),char(106),char(255),char(236),char(2),char(160), -char(2),char(127),char(255),char(236),char(2),char(160),char(2),char(133),char(255),char(236), -char(2),char(160),char(2),char(135),char(255),char(236),char(2),char(160),char(2),char(137), -char(255),char(236),char(2),char(160),char(2),char(141),char(255),char(236),char(2),char(160), -char(2),char(178),char(255),char(236),char(2),char(160),char(2),char(180),char(255),char(236), -char(2),char(160),char(2),char(192),char(255),char(236),char(2),char(160),char(2),char(194), -char(255),char(236),char(2),char(160),char(2),char(213),char(255),char(236),char(2),char(160), -char(2),char(224),char(255),char(236),char(2),char(160),char(2),char(240),char(255),char(236), -char(2),char(160),char(2),char(242),char(255),char(236),char(2),char(160),char(2),char(244), -char(255),char(236),char(2),char(160),char(2),char(254),char(255),char(236),char(2),char(160), -char(3),char(10),char(255),char(236),char(2),char(160),char(3),char(12),char(255),char(236), -char(2),char(160),char(3),char(14),char(255),char(215),char(2),char(160),char(3),char(16), -char(255),char(215),char(2),char(160),char(3),char(22),char(255),char(236),char(2),char(160), -char(3),char(26),char(255),char(236),char(2),char(161),char(0),char(15),char(255),char(174), -char(2),char(161),char(0),char(17),char(255),char(174),char(2),char(161),char(2),char(8), -char(255),char(174),char(2),char(161),char(2),char(12),char(255),char(174),char(2),char(161), -char(2),char(128),char(255),char(236),char(2),char(161),char(2),char(130),char(255),char(236), -char(2),char(161),char(2),char(183),char(255),char(236),char(2),char(161),char(2),char(185), -char(255),char(236),char(2),char(161),char(3),char(13),char(255),char(215),char(2),char(161), -char(3),char(15),char(255),char(215),char(2),char(162),char(1),char(233),char(0),char(41), -char(2),char(163),char(1),char(159),char(255),char(215),char(2),char(163),char(1),char(163), -char(0),char(225),char(2),char(163),char(1),char(184),char(255),char(215),char(2),char(163), -char(1),char(187),char(255),char(215),char(2),char(163),char(1),char(190),char(255),char(195), -char(2),char(163),char(1),char(220),char(255),char(215),char(2),char(163),char(1),char(225), -char(255),char(174),char(2),char(163),char(1),char(228),char(255),char(215),char(2),char(163), -char(2),char(108),char(255),char(215),char(2),char(163),char(2),char(123),char(0),char(61), -char(2),char(163),char(2),char(125),char(255),char(236),char(2),char(163),char(2),char(126), -char(255),char(215),char(2),char(163),char(2),char(132),char(255),char(215),char(2),char(163), -char(2),char(134),char(255),char(215),char(2),char(163),char(2),char(136),char(255),char(215), -char(2),char(163),char(2),char(138),char(255),char(215),char(2),char(163),char(2),char(140), -char(255),char(215),char(2),char(163),char(2),char(170),char(255),char(215),char(2),char(163), -char(2),char(177),char(255),char(215),char(2),char(163),char(2),char(179),char(255),char(215), -char(2),char(163),char(2),char(182),char(255),char(215),char(2),char(163),char(2),char(190), -char(255),char(215),char(2),char(163),char(2),char(192),char(255),char(174),char(2),char(163), -char(2),char(194),char(255),char(174),char(2),char(163),char(2),char(197),char(255),char(195), -char(2),char(163),char(2),char(198),char(255),char(215),char(2),char(163),char(2),char(199), -char(255),char(195),char(2),char(163),char(2),char(200),char(255),char(215),char(2),char(163), -char(2),char(213),char(255),char(174),char(2),char(163),char(2),char(239),char(255),char(215), -char(2),char(163),char(2),char(241),char(255),char(215),char(2),char(163),char(2),char(243), -char(255),char(215),char(2),char(163),char(2),char(254),char(255),char(174),char(2),char(163), -char(3),char(14),char(255),char(215),char(2),char(163),char(3),char(16),char(255),char(215), -char(2),char(163),char(3),char(21),char(255),char(215),char(2),char(163),char(3),char(24), -char(255),char(215),char(2),char(164),char(1),char(207),char(255),char(236),char(2),char(164), -char(1),char(216),char(255),char(236),char(2),char(164),char(1),char(219),char(255),char(236), -char(2),char(164),char(1),char(222),char(255),char(236),char(2),char(164),char(1),char(225), -char(255),char(236),char(2),char(164),char(1),char(234),char(255),char(236),char(2),char(164), -char(1),char(237),char(255),char(236),char(2),char(164),char(2),char(106),char(255),char(236), -char(2),char(164),char(2),char(127),char(255),char(236),char(2),char(164),char(2),char(133), -char(255),char(236),char(2),char(164),char(2),char(135),char(255),char(236),char(2),char(164), -char(2),char(137),char(255),char(236),char(2),char(164),char(2),char(141),char(255),char(236), -char(2),char(164),char(2),char(178),char(255),char(236),char(2),char(164),char(2),char(180), -char(255),char(236),char(2),char(164),char(2),char(192),char(255),char(236),char(2),char(164), -char(2),char(194),char(255),char(236),char(2),char(164),char(2),char(213),char(255),char(236), -char(2),char(164),char(2),char(224),char(255),char(236),char(2),char(164),char(2),char(240), -char(255),char(236),char(2),char(164),char(2),char(242),char(255),char(236),char(2),char(164), -char(2),char(244),char(255),char(236),char(2),char(164),char(2),char(254),char(255),char(236), -char(2),char(164),char(3),char(10),char(255),char(236),char(2),char(164),char(3),char(12), -char(255),char(236),char(2),char(164),char(3),char(14),char(255),char(215),char(2),char(164), -char(3),char(16),char(255),char(215),char(2),char(164),char(3),char(22),char(255),char(236), -char(2),char(164),char(3),char(26),char(255),char(236),char(2),char(165),char(1),char(159), -char(255),char(215),char(2),char(165),char(1),char(184),char(255),char(215),char(2),char(165), -char(1),char(187),char(255),char(215),char(2),char(165),char(1),char(190),char(255),char(215), -char(2),char(165),char(1),char(193),char(255),char(215),char(2),char(165),char(1),char(225), -char(255),char(215),char(2),char(165),char(2),char(108),char(255),char(215),char(2),char(165), -char(2),char(124),char(255),char(215),char(2),char(165),char(2),char(126),char(255),char(215), -char(2),char(165),char(2),char(132),char(255),char(215),char(2),char(165),char(2),char(134), -char(255),char(215),char(2),char(165),char(2),char(136),char(255),char(215),char(2),char(165), -char(2),char(138),char(255),char(215),char(2),char(165),char(2),char(140),char(255),char(215), -char(2),char(165),char(2),char(177),char(255),char(215),char(2),char(165),char(2),char(179), -char(255),char(215),char(2),char(165),char(2),char(191),char(255),char(215),char(2),char(165), -char(2),char(192),char(255),char(215),char(2),char(165),char(2),char(193),char(255),char(215), -char(2),char(165),char(2),char(194),char(255),char(215),char(2),char(165),char(2),char(197), -char(255),char(154),char(2),char(165),char(2),char(199),char(255),char(154),char(2),char(165), -char(2),char(212),char(255),char(215),char(2),char(165),char(2),char(213),char(255),char(215), -char(2),char(165),char(2),char(239),char(255),char(215),char(2),char(165),char(2),char(241), -char(255),char(215),char(2),char(165),char(2),char(243),char(255),char(215),char(2),char(165), -char(2),char(253),char(255),char(215),char(2),char(165),char(2),char(254),char(255),char(215), -char(2),char(165),char(3),char(9),char(255),char(215),char(2),char(165),char(3),char(11), -char(255),char(215),char(2),char(165),char(3),char(14),char(255),char(215),char(2),char(165), -char(3),char(16),char(255),char(215),char(2),char(165),char(3),char(21),char(255),char(215), -char(2),char(165),char(3),char(25),char(255),char(236),char(2),char(166),char(1),char(207), -char(255),char(215),char(2),char(166),char(1),char(216),char(255),char(215),char(2),char(166), -char(1),char(219),char(255),char(215),char(2),char(166),char(1),char(222),char(255),char(215), -char(2),char(166),char(1),char(225),char(255),char(215),char(2),char(166),char(1),char(234), -char(255),char(215),char(2),char(166),char(1),char(237),char(255),char(215),char(2),char(166), -char(2),char(106),char(255),char(215),char(2),char(166),char(2),char(127),char(255),char(215), -char(2),char(166),char(2),char(133),char(255),char(215),char(2),char(166),char(2),char(135), -char(255),char(215),char(2),char(166),char(2),char(137),char(255),char(215),char(2),char(166), -char(2),char(141),char(255),char(215),char(2),char(166),char(2),char(178),char(255),char(215), -char(2),char(166),char(2),char(180),char(255),char(215),char(2),char(166),char(2),char(192), -char(255),char(215),char(2),char(166),char(2),char(194),char(255),char(215),char(2),char(166), -char(2),char(198),char(255),char(215),char(2),char(166),char(2),char(200),char(255),char(215), -char(2),char(166),char(2),char(213),char(255),char(215),char(2),char(166),char(2),char(224), -char(255),char(215),char(2),char(166),char(2),char(240),char(255),char(215),char(2),char(166), -char(2),char(242),char(255),char(215),char(2),char(166),char(2),char(244),char(255),char(215), -char(2),char(166),char(2),char(254),char(255),char(215),char(2),char(166),char(3),char(10), -char(255),char(215),char(2),char(166),char(3),char(12),char(255),char(215),char(2),char(166), -char(3),char(22),char(255),char(215),char(2),char(166),char(3),char(26),char(255),char(215), -char(2),char(167),char(1),char(159),char(255),char(215),char(2),char(167),char(1),char(184), -char(255),char(215),char(2),char(167),char(1),char(187),char(255),char(215),char(2),char(167), -char(1),char(190),char(255),char(215),char(2),char(167),char(1),char(193),char(255),char(215), -char(2),char(167),char(1),char(225),char(255),char(215),char(2),char(167),char(2),char(108), -char(255),char(215),char(2),char(167),char(2),char(124),char(255),char(215),char(2),char(167), -char(2),char(126),char(255),char(215),char(2),char(167),char(2),char(132),char(255),char(215), -char(2),char(167),char(2),char(134),char(255),char(215),char(2),char(167),char(2),char(136), -char(255),char(215),char(2),char(167),char(2),char(138),char(255),char(215),char(2),char(167), -char(2),char(140),char(255),char(215),char(2),char(167),char(2),char(177),char(255),char(215), -char(2),char(167),char(2),char(179),char(255),char(215),char(2),char(167),char(2),char(191), -char(255),char(215),char(2),char(167),char(2),char(192),char(255),char(215),char(2),char(167), -char(2),char(193),char(255),char(215),char(2),char(167),char(2),char(194),char(255),char(215), -char(2),char(167),char(2),char(197),char(255),char(154),char(2),char(167),char(2),char(199), -char(255),char(154),char(2),char(167),char(2),char(212),char(255),char(215),char(2),char(167), -char(2),char(213),char(255),char(215),char(2),char(167),char(2),char(239),char(255),char(215), -char(2),char(167),char(2),char(241),char(255),char(215),char(2),char(167),char(2),char(243), -char(255),char(215),char(2),char(167),char(2),char(253),char(255),char(215),char(2),char(167), -char(2),char(254),char(255),char(215),char(2),char(167),char(3),char(9),char(255),char(215), -char(2),char(167),char(3),char(11),char(255),char(215),char(2),char(167),char(3),char(14), -char(255),char(215),char(2),char(167),char(3),char(16),char(255),char(215),char(2),char(167), -char(3),char(21),char(255),char(215),char(2),char(167),char(3),char(25),char(255),char(236), -char(2),char(168),char(1),char(207),char(255),char(215),char(2),char(168),char(1),char(216), -char(255),char(215),char(2),char(168),char(1),char(219),char(255),char(215),char(2),char(168), -char(1),char(222),char(255),char(215),char(2),char(168),char(1),char(225),char(255),char(215), -char(2),char(168),char(1),char(234),char(255),char(215),char(2),char(168),char(1),char(237), -char(255),char(215),char(2),char(168),char(2),char(106),char(255),char(215),char(2),char(168), -char(2),char(127),char(255),char(215),char(2),char(168),char(2),char(133),char(255),char(215), -char(2),char(168),char(2),char(135),char(255),char(215),char(2),char(168),char(2),char(137), -char(255),char(215),char(2),char(168),char(2),char(141),char(255),char(215),char(2),char(168), -char(2),char(178),char(255),char(215),char(2),char(168),char(2),char(180),char(255),char(215), -char(2),char(168),char(2),char(192),char(255),char(215),char(2),char(168),char(2),char(194), -char(255),char(215),char(2),char(168),char(2),char(198),char(255),char(215),char(2),char(168), -char(2),char(200),char(255),char(215),char(2),char(168),char(2),char(213),char(255),char(215), -char(2),char(168),char(2),char(224),char(255),char(215),char(2),char(168),char(2),char(240), -char(255),char(215),char(2),char(168),char(2),char(242),char(255),char(215),char(2),char(168), -char(2),char(244),char(255),char(215),char(2),char(168),char(2),char(254),char(255),char(215), -char(2),char(168),char(3),char(10),char(255),char(215),char(2),char(168),char(3),char(12), -char(255),char(215),char(2),char(168),char(3),char(22),char(255),char(215),char(2),char(168), -char(3),char(26),char(255),char(215),char(2),char(169),char(1),char(159),char(255),char(215), -char(2),char(169),char(1),char(184),char(255),char(215),char(2),char(169),char(1),char(187), -char(255),char(215),char(2),char(169),char(1),char(190),char(255),char(215),char(2),char(169), -char(1),char(193),char(255),char(215),char(2),char(169),char(1),char(225),char(255),char(215), -char(2),char(169),char(2),char(108),char(255),char(215),char(2),char(169),char(2),char(124), -char(255),char(215),char(2),char(169),char(2),char(126),char(255),char(215),char(2),char(169), -char(2),char(132),char(255),char(215),char(2),char(169),char(2),char(134),char(255),char(215), -char(2),char(169),char(2),char(136),char(255),char(215),char(2),char(169),char(2),char(138), -char(255),char(215),char(2),char(169),char(2),char(140),char(255),char(215),char(2),char(169), -char(2),char(177),char(255),char(215),char(2),char(169),char(2),char(179),char(255),char(215), -char(2),char(169),char(2),char(191),char(255),char(215),char(2),char(169),char(2),char(192), -char(255),char(215),char(2),char(169),char(2),char(193),char(255),char(215),char(2),char(169), -char(2),char(194),char(255),char(215),char(2),char(169),char(2),char(197),char(255),char(154), -char(2),char(169),char(2),char(199),char(255),char(154),char(2),char(169),char(2),char(212), -char(255),char(215),char(2),char(169),char(2),char(213),char(255),char(215),char(2),char(169), -char(2),char(239),char(255),char(215),char(2),char(169),char(2),char(241),char(255),char(215), -char(2),char(169),char(2),char(243),char(255),char(215),char(2),char(169),char(2),char(253), -char(255),char(215),char(2),char(169),char(2),char(254),char(255),char(215),char(2),char(169), -char(3),char(9),char(255),char(215),char(2),char(169),char(3),char(11),char(255),char(215), -char(2),char(169),char(3),char(14),char(255),char(215),char(2),char(169),char(3),char(16), -char(255),char(215),char(2),char(169),char(3),char(21),char(255),char(215),char(2),char(169), -char(3),char(25),char(255),char(236),char(2),char(170),char(1),char(207),char(255),char(215), -char(2),char(170),char(1),char(216),char(255),char(215),char(2),char(170),char(1),char(219), -char(255),char(215),char(2),char(170),char(1),char(222),char(255),char(215),char(2),char(170), -char(1),char(225),char(255),char(215),char(2),char(170),char(1),char(234),char(255),char(215), -char(2),char(170),char(1),char(237),char(255),char(215),char(2),char(170),char(2),char(106), -char(255),char(215),char(2),char(170),char(2),char(127),char(255),char(215),char(2),char(170), -char(2),char(133),char(255),char(215),char(2),char(170),char(2),char(135),char(255),char(215), -char(2),char(170),char(2),char(137),char(255),char(215),char(2),char(170),char(2),char(141), -char(255),char(215),char(2),char(170),char(2),char(178),char(255),char(215),char(2),char(170), -char(2),char(180),char(255),char(215),char(2),char(170),char(2),char(192),char(255),char(215), -char(2),char(170),char(2),char(194),char(255),char(215),char(2),char(170),char(2),char(198), -char(255),char(215),char(2),char(170),char(2),char(200),char(255),char(215),char(2),char(170), -char(2),char(213),char(255),char(215),char(2),char(170),char(2),char(224),char(255),char(215), -char(2),char(170),char(2),char(240),char(255),char(215),char(2),char(170),char(2),char(242), -char(255),char(215),char(2),char(170),char(2),char(244),char(255),char(215),char(2),char(170), -char(2),char(254),char(255),char(215),char(2),char(170),char(3),char(10),char(255),char(215), -char(2),char(170),char(3),char(12),char(255),char(215),char(2),char(170),char(3),char(22), -char(255),char(215),char(2),char(170),char(3),char(26),char(255),char(215),char(2),char(171), -char(1),char(163),char(0),char(225),char(2),char(171),char(2),char(234),char(0),char(41), -char(2),char(171),char(3),char(14),char(255),char(215),char(2),char(171),char(3),char(16), -char(255),char(215),char(2),char(172),char(0),char(5),char(255),char(236),char(2),char(172), -char(0),char(10),char(255),char(236),char(2),char(172),char(2),char(7),char(255),char(236), -char(2),char(172),char(2),char(11),char(255),char(236),char(2),char(173),char(0),char(15), -char(255),char(154),char(2),char(173),char(0),char(16),char(255),char(215),char(2),char(173), -char(0),char(17),char(255),char(154),char(2),char(173),char(1),char(157),char(0),char(41), -char(2),char(173),char(1),char(159),char(255),char(215),char(2),char(173),char(1),char(164), -char(255),char(174),char(2),char(173),char(1),char(166),char(0),char(41),char(2),char(173), -char(1),char(170),char(255),char(133),char(2),char(173),char(1),char(174),char(255),char(174), -char(2),char(173),char(1),char(181),char(255),char(174),char(2),char(173),char(1),char(184), -char(255),char(215),char(2),char(173),char(1),char(187),char(255),char(215),char(2),char(173), -char(1),char(188),char(0),char(41),char(2),char(173),char(1),char(190),char(255),char(195), -char(2),char(173),char(1),char(196),char(0),char(41),char(2),char(173),char(1),char(204), -char(255),char(195),char(2),char(173),char(1),char(205),char(255),char(195),char(2),char(173), -char(1),char(206),char(255),char(154),char(2),char(173),char(1),char(207),char(255),char(174), -char(2),char(173),char(1),char(208),char(255),char(215),char(2),char(173),char(1),char(209), -char(255),char(215),char(2),char(173),char(1),char(210),char(255),char(195),char(2),char(173), -char(1),char(211),char(255),char(195),char(2),char(173),char(1),char(212),char(255),char(195), -char(2),char(173),char(1),char(213),char(255),char(154),char(2),char(173),char(1),char(214), -char(255),char(195),char(2),char(173),char(1),char(215),char(255),char(195),char(2),char(173), -char(1),char(216),char(255),char(174),char(2),char(173),char(1),char(217),char(255),char(195), -char(2),char(173),char(1),char(218),char(255),char(195),char(2),char(173),char(1),char(219), -char(255),char(174),char(2),char(173),char(1),char(222),char(255),char(174),char(2),char(173), -char(1),char(223),char(255),char(215),char(2),char(173),char(1),char(224),char(255),char(195), -char(2),char(173),char(1),char(225),char(255),char(154),char(2),char(173),char(1),char(226), -char(255),char(195),char(2),char(173),char(1),char(227),char(255),char(195),char(2),char(173), -char(1),char(229),char(255),char(195),char(2),char(173),char(1),char(230),char(255),char(195), -char(2),char(173),char(1),char(231),char(255),char(215),char(2),char(173),char(1),char(232), -char(255),char(195),char(2),char(173),char(1),char(234),char(255),char(174),char(2),char(173), -char(1),char(235),char(0),char(41),char(2),char(173),char(1),char(236),char(255),char(195), -char(2),char(173),char(1),char(237),char(255),char(174),char(2),char(173),char(1),char(238), -char(255),char(195),char(2),char(173),char(1),char(242),char(255),char(154),char(2),char(173), -char(1),char(243),char(255),char(195),char(2),char(173),char(1),char(244),char(0),char(41), -char(2),char(173),char(1),char(245),char(255),char(195),char(2),char(173),char(1),char(247), -char(255),char(195),char(2),char(173),char(1),char(249),char(255),char(195),char(2),char(173), -char(2),char(2),char(255),char(215),char(2),char(173),char(2),char(3),char(255),char(215), -char(2),char(173),char(2),char(4),char(255),char(215),char(2),char(173),char(2),char(8), -char(255),char(154),char(2),char(173),char(2),char(12),char(255),char(154),char(2),char(173), -char(2),char(106),char(255),char(174),char(2),char(173),char(2),char(107),char(255),char(195), -char(2),char(173),char(2),char(108),char(255),char(215),char(2),char(173),char(2),char(113), -char(255),char(195),char(2),char(173),char(2),char(114),char(255),char(133),char(2),char(173), -char(2),char(115),char(255),char(154),char(2),char(173),char(2),char(117),char(255),char(195), -char(2),char(173),char(2),char(119),char(255),char(215),char(2),char(173),char(2),char(121), -char(255),char(195),char(2),char(173),char(2),char(125),char(255),char(195),char(2),char(173), -char(2),char(126),char(255),char(215),char(2),char(173),char(2),char(127),char(255),char(174), -char(2),char(173),char(2),char(132),char(255),char(215),char(2),char(173),char(2),char(133), -char(255),char(174),char(2),char(173),char(2),char(134),char(255),char(215),char(2),char(173), -char(2),char(135),char(255),char(174),char(2),char(173),char(2),char(136),char(255),char(215), -char(2),char(173),char(2),char(137),char(255),char(174),char(2),char(173),char(2),char(138), -char(255),char(215),char(2),char(173),char(2),char(140),char(255),char(215),char(2),char(173), -char(2),char(141),char(255),char(174),char(2),char(173),char(2),char(150),char(255),char(195), -char(2),char(173),char(2),char(152),char(0),char(41),char(2),char(173),char(2),char(154), -char(255),char(195),char(2),char(173),char(2),char(158),char(255),char(195),char(2),char(173), -char(2),char(160),char(255),char(215),char(2),char(173),char(2),char(162),char(255),char(215), -char(2),char(173),char(2),char(164),char(255),char(195),char(2),char(173),char(2),char(166), -char(255),char(195),char(2),char(173),char(2),char(168),char(0),char(41),char(2),char(173), -char(2),char(169),char(0),char(41),char(2),char(173),char(2),char(172),char(255),char(195), -char(2),char(173),char(2),char(174),char(255),char(195),char(2),char(173),char(2),char(176), -char(255),char(195),char(2),char(173),char(2),char(177),char(255),char(215),char(2),char(173), -char(2),char(178),char(255),char(174),char(2),char(173),char(2),char(179),char(255),char(215), -char(2),char(173),char(2),char(180),char(255),char(174),char(2),char(173),char(2),char(181), -char(0),char(41),char(2),char(173),char(2),char(188),char(255),char(215),char(2),char(173), -char(2),char(189),char(0),char(41),char(2),char(173),char(2),char(192),char(255),char(154), -char(2),char(173),char(2),char(194),char(255),char(154),char(2),char(173),char(2),char(196), -char(255),char(195),char(2),char(173),char(2),char(197),char(255),char(215),char(2),char(173), -char(2),char(198),char(255),char(195),char(2),char(173),char(2),char(199),char(255),char(215), -char(2),char(173),char(2),char(200),char(255),char(195),char(2),char(173),char(2),char(203), -char(255),char(215),char(2),char(173),char(2),char(205),char(255),char(195),char(2),char(173), -char(2),char(206),char(255),char(174),char(2),char(173),char(2),char(207),char(255),char(154), -char(2),char(173),char(2),char(209),char(255),char(195),char(2),char(173),char(2),char(211), -char(255),char(195),char(2),char(173),char(2),char(213),char(255),char(154),char(2),char(173), -char(2),char(215),char(255),char(195),char(2),char(173),char(2),char(217),char(255),char(133), -char(2),char(173),char(2),char(219),char(255),char(133),char(2),char(173),char(2),char(221), -char(255),char(133),char(2),char(173),char(2),char(224),char(255),char(174),char(2),char(173), -char(2),char(230),char(255),char(215),char(2),char(173),char(2),char(232),char(255),char(215), -char(2),char(173),char(2),char(236),char(255),char(195),char(2),char(173),char(2),char(238), -char(255),char(195),char(2),char(173),char(2),char(239),char(255),char(215),char(2),char(173), -char(2),char(240),char(255),char(174),char(2),char(173),char(2),char(241),char(255),char(215), -char(2),char(173),char(2),char(242),char(255),char(174),char(2),char(173),char(2),char(243), -char(255),char(215),char(2),char(173),char(2),char(244),char(255),char(174),char(2),char(173), -char(2),char(246),char(255),char(215),char(2),char(173),char(2),char(254),char(255),char(154), -char(2),char(173),char(3),char(0),char(255),char(195),char(2),char(173),char(3),char(2), -char(255),char(195),char(2),char(173),char(3),char(6),char(255),char(215),char(2),char(173), -char(3),char(8),char(255),char(215),char(2),char(173),char(3),char(9),char(255),char(154), -char(2),char(173),char(3),char(10),char(255),char(174),char(2),char(173),char(3),char(11), -char(255),char(154),char(2),char(173),char(3),char(12),char(255),char(174),char(2),char(173), -char(3),char(14),char(255),char(215),char(2),char(173),char(3),char(16),char(255),char(215), -char(2),char(173),char(3),char(17),char(255),char(174),char(2),char(173),char(3),char(18), -char(255),char(154),char(2),char(173),char(3),char(20),char(255),char(195),char(2),char(173), -char(3),char(21),char(255),char(215),char(2),char(173),char(3),char(22),char(255),char(174), -char(2),char(173),char(3),char(23),char(0),char(41),char(2),char(173),char(3),char(26), -char(255),char(174),char(2),char(173),char(3),char(27),char(255),char(174),char(2),char(173), -char(3),char(28),char(255),char(154),char(2),char(174),char(0),char(15),char(255),char(154), -char(2),char(174),char(0),char(16),char(255),char(215),char(2),char(174),char(0),char(17), -char(255),char(154),char(2),char(174),char(1),char(206),char(255),char(195),char(2),char(174), -char(1),char(207),char(255),char(236),char(2),char(174),char(1),char(213),char(255),char(195), -char(2),char(174),char(1),char(216),char(255),char(236),char(2),char(174),char(1),char(219), -char(255),char(236),char(2),char(174),char(1),char(222),char(255),char(236),char(2),char(174), -char(1),char(234),char(255),char(236),char(2),char(174),char(1),char(237),char(255),char(236), -char(2),char(174),char(1),char(242),char(255),char(195),char(2),char(174),char(2),char(2), -char(255),char(215),char(2),char(174),char(2),char(3),char(255),char(215),char(2),char(174), -char(2),char(4),char(255),char(215),char(2),char(174),char(2),char(8),char(255),char(154), -char(2),char(174),char(2),char(12),char(255),char(154),char(2),char(174),char(2),char(106), -char(255),char(236),char(2),char(174),char(2),char(115),char(255),char(195),char(2),char(174), -char(2),char(127),char(255),char(236),char(2),char(174),char(2),char(133),char(255),char(236), -char(2),char(174),char(2),char(135),char(255),char(236),char(2),char(174),char(2),char(137), -char(255),char(236),char(2),char(174),char(2),char(141),char(255),char(236),char(2),char(174), -char(2),char(178),char(255),char(236),char(2),char(174),char(2),char(180),char(255),char(236), -char(2),char(174),char(2),char(207),char(255),char(195),char(2),char(174),char(2),char(224), -char(255),char(236),char(2),char(174),char(2),char(240),char(255),char(236),char(2),char(174), -char(2),char(242),char(255),char(236),char(2),char(174),char(2),char(244),char(255),char(236), -char(2),char(174),char(3),char(10),char(255),char(236),char(2),char(174),char(3),char(12), -char(255),char(236),char(2),char(174),char(3),char(18),char(255),char(195),char(2),char(174), -char(3),char(22),char(255),char(236),char(2),char(174),char(3),char(26),char(255),char(236), -char(2),char(174),char(3),char(28),char(255),char(195),char(2),char(175),char(0),char(5), -char(255),char(92),char(2),char(175),char(0),char(10),char(255),char(92),char(2),char(175), -char(1),char(157),char(255),char(154),char(2),char(175),char(1),char(163),char(0),char(102), -char(2),char(175),char(1),char(166),char(255),char(154),char(2),char(175),char(1),char(188), -char(255),char(72),char(2),char(175),char(1),char(193),char(255),char(133),char(2),char(175), -char(1),char(196),char(255),char(154),char(2),char(175),char(1),char(220),char(255),char(174), -char(2),char(175),char(1),char(225),char(255),char(215),char(2),char(175),char(1),char(228), -char(255),char(174),char(2),char(175),char(2),char(7),char(255),char(92),char(2),char(175), -char(2),char(11),char(255),char(92),char(2),char(175),char(2),char(124),char(255),char(133), -char(2),char(175),char(2),char(128),char(255),char(113),char(2),char(175),char(2),char(130), -char(255),char(113),char(2),char(175),char(2),char(169),char(255),char(154),char(2),char(175), -char(2),char(170),char(255),char(174),char(2),char(175),char(2),char(181),char(255),char(72), -char(2),char(175),char(2),char(182),char(255),char(174),char(2),char(175),char(2),char(183), -char(255),char(154),char(2),char(175),char(2),char(185),char(255),char(154),char(2),char(175), -char(2),char(189),char(255),char(154),char(2),char(175),char(2),char(190),char(255),char(174), -char(2),char(175),char(2),char(191),char(255),char(133),char(2),char(175),char(2),char(192), -char(255),char(215),char(2),char(175),char(2),char(193),char(255),char(133),char(2),char(175), -char(2),char(194),char(255),char(215),char(2),char(175),char(2),char(197),char(255),char(195), -char(2),char(175),char(2),char(198),char(255),char(215),char(2),char(175),char(2),char(199), -char(255),char(195),char(2),char(175),char(2),char(200),char(255),char(215),char(2),char(175), -char(2),char(212),char(255),char(133),char(2),char(175),char(2),char(213),char(255),char(215), -char(2),char(175),char(2),char(253),char(255),char(133),char(2),char(175),char(2),char(254), -char(255),char(215),char(2),char(175),char(3),char(13),char(255),char(72),char(2),char(175), -char(3),char(14),char(255),char(174),char(2),char(175),char(3),char(15),char(255),char(72), -char(2),char(175),char(3),char(16),char(255),char(174),char(2),char(175),char(3),char(23), -char(255),char(154),char(2),char(175),char(3),char(24),char(255),char(174),char(2),char(176), -char(0),char(5),char(255),char(113),char(2),char(176),char(0),char(10),char(255),char(113), -char(2),char(176),char(1),char(220),char(255),char(154),char(2),char(176),char(1),char(225), -char(255),char(215),char(2),char(176),char(1),char(228),char(255),char(154),char(2),char(176), -char(2),char(7),char(255),char(113),char(2),char(176),char(2),char(11),char(255),char(113), -char(2),char(176),char(2),char(109),char(255),char(215),char(2),char(176),char(2),char(129), -char(255),char(215),char(2),char(176),char(2),char(131),char(255),char(215),char(2),char(176), -char(2),char(139),char(255),char(215),char(2),char(176),char(2),char(170),char(255),char(154), -char(2),char(176),char(2),char(182),char(255),char(154),char(2),char(176),char(2),char(184), -char(255),char(215),char(2),char(176),char(2),char(186),char(255),char(215),char(2),char(176), -char(2),char(190),char(255),char(154),char(2),char(176),char(2),char(192),char(255),char(215), -char(2),char(176),char(2),char(194),char(255),char(215),char(2),char(176),char(2),char(198), -char(255),char(215),char(2),char(176),char(2),char(200),char(255),char(215),char(2),char(176), -char(2),char(213),char(255),char(215),char(2),char(176),char(2),char(254),char(255),char(215), -char(2),char(176),char(3),char(14),char(255),char(113),char(2),char(176),char(3),char(16), -char(255),char(113),char(2),char(176),char(3),char(24),char(255),char(154),char(2),char(177), -char(1),char(157),char(255),char(215),char(2),char(177),char(1),char(166),char(255),char(215), -char(2),char(177),char(1),char(188),char(255),char(195),char(2),char(177),char(1),char(196), -char(255),char(215),char(2),char(177),char(2),char(128),char(255),char(236),char(2),char(177), -char(2),char(130),char(255),char(236),char(2),char(177),char(2),char(169),char(255),char(215), -char(2),char(177),char(2),char(181),char(255),char(195),char(2),char(177),char(2),char(183), -char(255),char(236),char(2),char(177),char(2),char(185),char(255),char(236),char(2),char(177), -char(2),char(189),char(255),char(215),char(2),char(177),char(3),char(13),char(255),char(215), -char(2),char(177),char(3),char(15),char(255),char(215),char(2),char(177),char(3),char(23), -char(255),char(215),char(2),char(178),char(0),char(5),char(255),char(236),char(2),char(178), -char(0),char(10),char(255),char(236),char(2),char(178),char(1),char(208),char(255),char(215), -char(2),char(178),char(1),char(220),char(255),char(236),char(2),char(178),char(1),char(221), -char(255),char(236),char(2),char(178),char(1),char(223),char(255),char(215),char(2),char(178), -char(1),char(225),char(255),char(236),char(2),char(178),char(1),char(228),char(255),char(236), -char(2),char(178),char(1),char(246),char(255),char(236),char(2),char(178),char(2),char(7), -char(255),char(236),char(2),char(178),char(2),char(11),char(255),char(236),char(2),char(178), -char(2),char(160),char(255),char(215),char(2),char(178),char(2),char(170),char(255),char(236), -char(2),char(178),char(2),char(182),char(255),char(236),char(2),char(178),char(2),char(188), -char(255),char(215),char(2),char(178),char(2),char(190),char(255),char(236),char(2),char(178), -char(2),char(192),char(255),char(236),char(2),char(178),char(2),char(194),char(255),char(236), -char(2),char(178),char(2),char(203),char(255),char(215),char(2),char(178),char(2),char(213), -char(255),char(236),char(2),char(178),char(2),char(230),char(255),char(215),char(2),char(178), -char(2),char(248),char(255),char(236),char(2),char(178),char(2),char(250),char(255),char(236), -char(2),char(178),char(2),char(252),char(255),char(236),char(2),char(178),char(2),char(254), -char(255),char(236),char(2),char(178),char(3),char(6),char(255),char(215),char(2),char(178), -char(3),char(8),char(255),char(215),char(2),char(178),char(3),char(14),char(255),char(236), -char(2),char(178),char(3),char(16),char(255),char(236),char(2),char(178),char(3),char(24), -char(255),char(236),char(2),char(179),char(1),char(159),char(255),char(215),char(2),char(179), -char(1),char(184),char(255),char(215),char(2),char(179),char(1),char(187),char(255),char(215), -char(2),char(179),char(1),char(190),char(255),char(215),char(2),char(179),char(1),char(225), -char(255),char(215),char(2),char(179),char(2),char(108),char(255),char(215),char(2),char(179), -char(2),char(126),char(255),char(215),char(2),char(179),char(2),char(132),char(255),char(215), -char(2),char(179),char(2),char(134),char(255),char(215),char(2),char(179),char(2),char(136), -char(255),char(215),char(2),char(179),char(2),char(138),char(255),char(215),char(2),char(179), -char(2),char(140),char(255),char(215),char(2),char(179),char(2),char(177),char(255),char(215), -char(2),char(179),char(2),char(179),char(255),char(215),char(2),char(179),char(2),char(192), -char(255),char(215),char(2),char(179),char(2),char(194),char(255),char(215),char(2),char(179), -char(2),char(197),char(255),char(215),char(2),char(179),char(2),char(199),char(255),char(215), -char(2),char(179),char(2),char(213),char(255),char(215),char(2),char(179),char(2),char(239), -char(255),char(215),char(2),char(179),char(2),char(241),char(255),char(215),char(2),char(179), -char(2),char(243),char(255),char(215),char(2),char(179),char(2),char(254),char(255),char(215), -char(2),char(179),char(3),char(9),char(255),char(215),char(2),char(179),char(3),char(11), -char(255),char(215),char(2),char(179),char(3),char(14),char(255),char(215),char(2),char(179), -char(3),char(16),char(255),char(215),char(2),char(179),char(3),char(21),char(255),char(215), -char(2),char(181),char(0),char(15),char(255),char(133),char(2),char(181),char(0),char(16), -char(255),char(174),char(2),char(181),char(0),char(17),char(255),char(133),char(2),char(181), -char(1),char(159),char(255),char(215),char(2),char(181),char(1),char(164),char(255),char(154), -char(2),char(181),char(1),char(170),char(255),char(113),char(2),char(181),char(1),char(174), -char(255),char(154),char(2),char(181),char(1),char(181),char(255),char(154),char(2),char(181), -char(1),char(184),char(255),char(215),char(2),char(181),char(1),char(187),char(255),char(215), -char(2),char(181),char(1),char(188),char(0),char(41),char(2),char(181),char(1),char(190), -char(255),char(174),char(2),char(181),char(1),char(204),char(255),char(154),char(2),char(181), -char(1),char(205),char(255),char(154),char(2),char(181),char(1),char(206),char(255),char(133), -char(2),char(181),char(1),char(207),char(255),char(113),char(2),char(181),char(1),char(208), -char(255),char(215),char(2),char(181),char(1),char(209),char(255),char(215),char(2),char(181), -char(1),char(210),char(255),char(154),char(2),char(181),char(1),char(211),char(255),char(154), -char(2),char(181),char(1),char(212),char(255),char(154),char(2),char(181),char(1),char(213), -char(255),char(133),char(2),char(181),char(1),char(214),char(255),char(154),char(2),char(181), -char(1),char(215),char(255),char(154),char(2),char(181),char(1),char(216),char(255),char(113), -char(2),char(181),char(1),char(217),char(255),char(154),char(2),char(181),char(1),char(218), -char(255),char(154),char(2),char(181),char(1),char(219),char(255),char(113),char(2),char(181), -char(1),char(220),char(255),char(174),char(2),char(181),char(1),char(221),char(255),char(174), -char(2),char(181),char(1),char(222),char(255),char(113),char(2),char(181),char(1),char(223), -char(255),char(215),char(2),char(181),char(1),char(224),char(255),char(154),char(2),char(181), -char(1),char(225),char(255),char(154),char(2),char(181),char(1),char(226),char(255),char(154), -char(2),char(181),char(1),char(227),char(255),char(154),char(2),char(181),char(1),char(228), -char(255),char(174),char(2),char(181),char(1),char(229),char(255),char(154),char(2),char(181), -char(1),char(230),char(255),char(154),char(2),char(181),char(1),char(231),char(255),char(215), -char(2),char(181),char(1),char(232),char(255),char(154),char(2),char(181),char(1),char(233), -char(255),char(195),char(2),char(181),char(1),char(234),char(255),char(113),char(2),char(181), -char(1),char(236),char(255),char(154),char(2),char(181),char(1),char(237),char(255),char(113), -char(2),char(181),char(1),char(238),char(255),char(133),char(2),char(181),char(1),char(242), -char(255),char(133),char(2),char(181),char(1),char(243),char(255),char(154),char(2),char(181), -char(1),char(245),char(255),char(154),char(2),char(181),char(1),char(246),char(255),char(174), -char(2),char(181),char(1),char(247),char(255),char(154),char(2),char(181),char(1),char(249), -char(255),char(154),char(2),char(181),char(2),char(2),char(255),char(174),char(2),char(181), -char(2),char(3),char(255),char(174),char(2),char(181),char(2),char(4),char(255),char(174), -char(2),char(181),char(2),char(8),char(255),char(133),char(2),char(181),char(2),char(12), -char(255),char(133),char(2),char(181),char(2),char(106),char(255),char(113),char(2),char(181), -char(2),char(107),char(255),char(154),char(2),char(181),char(2),char(108),char(255),char(215), -char(2),char(181),char(2),char(109),char(255),char(215),char(2),char(181),char(2),char(113), -char(255),char(154),char(2),char(181),char(2),char(114),char(255),char(113),char(2),char(181), -char(2),char(115),char(255),char(133),char(2),char(181),char(2),char(117),char(255),char(154), -char(2),char(181),char(2),char(119),char(255),char(154),char(2),char(181),char(2),char(121), -char(255),char(154),char(2),char(181),char(2),char(125),char(255),char(154),char(2),char(181), -char(2),char(126),char(255),char(215),char(2),char(181),char(2),char(127),char(255),char(113), -char(2),char(181),char(2),char(129),char(255),char(215),char(2),char(181),char(2),char(131), -char(255),char(215),char(2),char(181),char(2),char(132),char(255),char(215),char(2),char(181), -char(2),char(133),char(255),char(113),char(2),char(181),char(2),char(134),char(255),char(215), -char(2),char(181),char(2),char(135),char(255),char(113),char(2),char(181),char(2),char(136), -char(255),char(215),char(2),char(181),char(2),char(137),char(255),char(113),char(2),char(181), -char(2),char(138),char(255),char(215),char(2),char(181),char(2),char(139),char(255),char(215), -char(2),char(181),char(2),char(140),char(255),char(215),char(2),char(181),char(2),char(141), -char(255),char(113),char(2),char(181),char(2),char(150),char(255),char(154),char(2),char(181), -char(2),char(154),char(255),char(154),char(2),char(181),char(2),char(158),char(255),char(154), -char(2),char(181),char(2),char(160),char(255),char(215),char(2),char(181),char(2),char(162), -char(255),char(215),char(2),char(181),char(2),char(164),char(255),char(154),char(2),char(181), -char(2),char(166),char(255),char(154),char(2),char(181),char(2),char(170),char(255),char(174), -char(2),char(181),char(2),char(172),char(255),char(154),char(2),char(181),char(2),char(174), -char(255),char(154),char(2),char(181),char(2),char(176),char(255),char(154),char(2),char(181), -char(2),char(177),char(255),char(215),char(2),char(181),char(2),char(178),char(255),char(113), -char(2),char(181),char(2),char(179),char(255),char(215),char(2),char(181),char(2),char(180), -char(255),char(113),char(2),char(181),char(2),char(181),char(0),char(41),char(2),char(181), -char(2),char(182),char(255),char(174),char(2),char(181),char(2),char(184),char(255),char(174), -char(2),char(181),char(2),char(186),char(255),char(174),char(2),char(181),char(2),char(188), -char(255),char(215),char(2),char(181),char(2),char(190),char(255),char(174),char(2),char(181), -char(2),char(192),char(255),char(154),char(2),char(181),char(2),char(194),char(255),char(154), -char(2),char(181),char(2),char(196),char(255),char(154),char(2),char(181),char(2),char(197), -char(255),char(154),char(2),char(181),char(2),char(198),char(255),char(113),char(2),char(181), -char(2),char(199),char(255),char(154),char(2),char(181),char(2),char(200),char(255),char(113), -char(2),char(181),char(2),char(203),char(255),char(215),char(2),char(181),char(2),char(205), -char(255),char(154),char(2),char(181),char(2),char(206),char(255),char(154),char(2),char(181), -char(2),char(207),char(255),char(133),char(2),char(181),char(2),char(209),char(255),char(154), -char(2),char(181),char(2),char(211),char(255),char(154),char(2),char(181),char(2),char(213), -char(255),char(154),char(2),char(181),char(2),char(215),char(255),char(154),char(2),char(181), -char(2),char(217),char(255),char(113),char(2),char(181),char(2),char(219),char(255),char(113), -char(2),char(181),char(2),char(221),char(255),char(113),char(2),char(181),char(2),char(224), -char(255),char(113),char(2),char(181),char(2),char(230),char(255),char(215),char(2),char(181), -char(2),char(232),char(255),char(215),char(2),char(181),char(2),char(234),char(255),char(195), -char(2),char(181),char(2),char(236),char(255),char(154),char(2),char(181),char(2),char(238), -char(255),char(154),char(2),char(181),char(2),char(239),char(255),char(215),char(2),char(181), -char(2),char(240),char(255),char(113),char(2),char(181),char(2),char(241),char(255),char(215), -char(2),char(181),char(2),char(242),char(255),char(113),char(2),char(181),char(2),char(243), -char(255),char(215),char(2),char(181),char(2),char(244),char(255),char(113),char(2),char(181), -char(2),char(246),char(255),char(215),char(2),char(181),char(2),char(248),char(255),char(174), -char(2),char(181),char(2),char(250),char(255),char(174),char(2),char(181),char(2),char(252), -char(255),char(174),char(2),char(181),char(2),char(254),char(255),char(154),char(2),char(181), -char(3),char(0),char(255),char(154),char(2),char(181),char(3),char(2),char(255),char(154), -char(2),char(181),char(3),char(6),char(255),char(215),char(2),char(181),char(3),char(8), -char(255),char(215),char(2),char(181),char(3),char(9),char(255),char(113),char(2),char(181), -char(3),char(10),char(255),char(113),char(2),char(181),char(3),char(11),char(255),char(113), -char(2),char(181),char(3),char(12),char(255),char(113),char(2),char(181),char(3),char(14), -char(255),char(154),char(2),char(181),char(3),char(16),char(255),char(154),char(2),char(181), -char(3),char(17),char(255),char(154),char(2),char(181),char(3),char(18),char(255),char(133), -char(2),char(181),char(3),char(20),char(255),char(154),char(2),char(181),char(3),char(21), -char(255),char(215),char(2),char(181),char(3),char(22),char(255),char(113),char(2),char(181), -char(3),char(24),char(255),char(174),char(2),char(181),char(3),char(26),char(255),char(113), -char(2),char(181),char(3),char(27),char(255),char(154),char(2),char(181),char(3),char(28), -char(255),char(133),char(2),char(182),char(0),char(15),char(255),char(154),char(2),char(182), -char(0),char(16),char(255),char(215),char(2),char(182),char(0),char(17),char(255),char(154), -char(2),char(182),char(1),char(206),char(255),char(195),char(2),char(182),char(1),char(207), -char(255),char(236),char(2),char(182),char(1),char(213),char(255),char(195),char(2),char(182), -char(1),char(216),char(255),char(236),char(2),char(182),char(1),char(219),char(255),char(236), -char(2),char(182),char(1),char(222),char(255),char(236),char(2),char(182),char(1),char(234), -char(255),char(236),char(2),char(182),char(1),char(237),char(255),char(236),char(2),char(182), -char(1),char(242),char(255),char(195),char(2),char(182),char(2),char(2),char(255),char(215), -char(2),char(182),char(2),char(3),char(255),char(215),char(2),char(182),char(2),char(4), -char(255),char(215),char(2),char(182),char(2),char(8),char(255),char(154),char(2),char(182), -char(2),char(12),char(255),char(154),char(2),char(182),char(2),char(106),char(255),char(236), -char(2),char(182),char(2),char(115),char(255),char(195),char(2),char(182),char(2),char(127), -char(255),char(236),char(2),char(182),char(2),char(133),char(255),char(236),char(2),char(182), -char(2),char(135),char(255),char(236),char(2),char(182),char(2),char(137),char(255),char(236), -char(2),char(182),char(2),char(141),char(255),char(236),char(2),char(182),char(2),char(178), -char(255),char(236),char(2),char(182),char(2),char(180),char(255),char(236),char(2),char(182), -char(2),char(207),char(255),char(195),char(2),char(182),char(2),char(224),char(255),char(236), -char(2),char(182),char(2),char(240),char(255),char(236),char(2),char(182),char(2),char(242), -char(255),char(236),char(2),char(182),char(2),char(244),char(255),char(236),char(2),char(182), -char(3),char(10),char(255),char(236),char(2),char(182),char(3),char(12),char(255),char(236), -char(2),char(182),char(3),char(18),char(255),char(195),char(2),char(182),char(3),char(22), -char(255),char(236),char(2),char(182),char(3),char(26),char(255),char(236),char(2),char(182), -char(3),char(28),char(255),char(195),char(2),char(183),char(0),char(15),char(255),char(133), -char(2),char(183),char(0),char(17),char(255),char(133),char(2),char(183),char(1),char(159), -char(255),char(215),char(2),char(183),char(1),char(164),char(255),char(174),char(2),char(183), -char(1),char(170),char(255),char(133),char(2),char(183),char(1),char(174),char(255),char(174), -char(2),char(183),char(1),char(181),char(255),char(174),char(2),char(183),char(1),char(184), -char(255),char(215),char(2),char(183),char(1),char(187),char(255),char(215),char(2),char(183), -char(1),char(190),char(255),char(195),char(2),char(183),char(1),char(202),char(255),char(174), -char(2),char(183),char(1),char(204),char(255),char(195),char(2),char(183),char(1),char(205), -char(255),char(195),char(2),char(183),char(1),char(206),char(255),char(154),char(2),char(183), -char(1),char(207),char(255),char(154),char(2),char(183),char(1),char(210),char(255),char(195), -char(2),char(183),char(1),char(211),char(255),char(195),char(2),char(183),char(1),char(212), -char(255),char(195),char(2),char(183),char(1),char(213),char(255),char(154),char(2),char(183), -char(1),char(214),char(255),char(195),char(2),char(183),char(1),char(215),char(255),char(195), -char(2),char(183),char(1),char(216),char(255),char(154),char(2),char(183),char(1),char(217), -char(255),char(195),char(2),char(183),char(1),char(218),char(255),char(195),char(2),char(183), -char(1),char(219),char(255),char(154),char(2),char(183),char(1),char(222),char(255),char(154), -char(2),char(183),char(1),char(224),char(255),char(195),char(2),char(183),char(1),char(225), -char(255),char(174),char(2),char(183),char(1),char(226),char(255),char(195),char(2),char(183), -char(1),char(227),char(255),char(195),char(2),char(183),char(1),char(229),char(255),char(195), -char(2),char(183),char(1),char(230),char(255),char(195),char(2),char(183),char(1),char(232), -char(255),char(195),char(2),char(183),char(1),char(233),char(255),char(215),char(2),char(183), -char(1),char(234),char(255),char(154),char(2),char(183),char(1),char(235),char(0),char(41), -char(2),char(183),char(1),char(236),char(255),char(195),char(2),char(183),char(1),char(237), -char(255),char(154),char(2),char(183),char(1),char(238),char(255),char(174),char(2),char(183), -char(1),char(242),char(255),char(154),char(2),char(183),char(1),char(243),char(255),char(195), -char(2),char(183),char(1),char(244),char(0),char(41),char(2),char(183),char(1),char(245), -char(255),char(195),char(2),char(183),char(1),char(247),char(255),char(195),char(2),char(183), -char(1),char(249),char(255),char(195),char(2),char(183),char(2),char(8),char(255),char(133), -char(2),char(183),char(2),char(12),char(255),char(133),char(2),char(183),char(2),char(106), -char(255),char(154),char(2),char(183),char(2),char(107),char(255),char(195),char(2),char(183), -char(2),char(108),char(255),char(215),char(2),char(183),char(2),char(113),char(255),char(195), -char(2),char(183),char(2),char(114),char(255),char(133),char(2),char(183),char(2),char(115), -char(255),char(154),char(2),char(183),char(2),char(117),char(255),char(195),char(2),char(183), -char(2),char(119),char(255),char(215),char(2),char(183),char(2),char(121),char(255),char(195), -char(2),char(183),char(2),char(125),char(255),char(215),char(2),char(183),char(2),char(126), -char(255),char(215),char(2),char(183),char(2),char(127),char(255),char(154),char(2),char(183), -char(2),char(132),char(255),char(215),char(2),char(183),char(2),char(133),char(255),char(154), -char(2),char(183),char(2),char(134),char(255),char(215),char(2),char(183),char(2),char(135), -char(255),char(154),char(2),char(183),char(2),char(136),char(255),char(215),char(2),char(183), -char(2),char(137),char(255),char(154),char(2),char(183),char(2),char(138),char(255),char(215), -char(2),char(183),char(2),char(140),char(255),char(215),char(2),char(183),char(2),char(141), -char(255),char(154),char(2),char(183),char(2),char(150),char(255),char(195),char(2),char(183), -char(2),char(152),char(0),char(41),char(2),char(183),char(2),char(154),char(255),char(195), -char(2),char(183),char(2),char(158),char(255),char(195),char(2),char(183),char(2),char(164), -char(255),char(195),char(2),char(183),char(2),char(166),char(255),char(195),char(2),char(183), -char(2),char(168),char(0),char(41),char(2),char(183),char(2),char(172),char(255),char(195), -char(2),char(183),char(2),char(174),char(255),char(195),char(2),char(183),char(2),char(176), -char(255),char(195),char(2),char(183),char(2),char(177),char(255),char(215),char(2),char(183), -char(2),char(178),char(255),char(154),char(2),char(183),char(2),char(179),char(255),char(215), -char(2),char(183),char(2),char(180),char(255),char(154),char(2),char(183),char(2),char(192), -char(255),char(174),char(2),char(183),char(2),char(194),char(255),char(174),char(2),char(183), -char(2),char(196),char(255),char(195),char(2),char(183),char(2),char(198),char(255),char(174), -char(2),char(183),char(2),char(200),char(255),char(174),char(2),char(183),char(2),char(205), -char(255),char(195),char(2),char(183),char(2),char(206),char(255),char(174),char(2),char(183), -char(2),char(207),char(255),char(154),char(2),char(183),char(2),char(209),char(255),char(195), -char(2),char(183),char(2),char(211),char(255),char(195),char(2),char(183),char(2),char(213), -char(255),char(174),char(2),char(183),char(2),char(215),char(255),char(195),char(2),char(183), -char(2),char(217),char(255),char(133),char(2),char(183),char(2),char(218),char(255),char(174), -char(2),char(183),char(2),char(219),char(255),char(133),char(2),char(183),char(2),char(220), -char(255),char(174),char(2),char(183),char(2),char(221),char(255),char(133),char(2),char(183), -char(2),char(222),char(255),char(174),char(2),char(183),char(2),char(224),char(255),char(154), -char(2),char(183),char(2),char(225),char(255),char(236),char(2),char(183),char(2),char(226), -char(255),char(174),char(2),char(183),char(2),char(227),char(255),char(236),char(2),char(183), -char(2),char(228),char(255),char(174),char(2),char(183),char(2),char(236),char(255),char(195), -char(2),char(183),char(2),char(238),char(255),char(195),char(2),char(183),char(2),char(239), -char(255),char(215),char(2),char(183),char(2),char(240),char(255),char(154),char(2),char(183), -char(2),char(241),char(255),char(215),char(2),char(183),char(2),char(242),char(255),char(154), -char(2),char(183),char(2),char(243),char(255),char(215),char(2),char(183),char(2),char(244), -char(255),char(154),char(2),char(183),char(2),char(254),char(255),char(174),char(2),char(183), -char(3),char(0),char(255),char(195),char(2),char(183),char(3),char(2),char(255),char(195), -char(2),char(183),char(3),char(9),char(255),char(174),char(2),char(183),char(3),char(10), -char(255),char(154),char(2),char(183),char(3),char(11),char(255),char(174),char(2),char(183), -char(3),char(12),char(255),char(154),char(2),char(183),char(3),char(14),char(255),char(215), -char(2),char(183),char(3),char(16),char(255),char(215),char(2),char(183),char(3),char(17), -char(255),char(174),char(2),char(183),char(3),char(18),char(255),char(154),char(2),char(183), -char(3),char(20),char(255),char(195),char(2),char(183),char(3),char(21),char(255),char(215), -char(2),char(183),char(3),char(22),char(255),char(154),char(2),char(183),char(3),char(25), -char(255),char(236),char(2),char(183),char(3),char(26),char(255),char(154),char(2),char(183), -char(3),char(27),char(255),char(174),char(2),char(183),char(3),char(28),char(255),char(154), -char(2),char(184),char(0),char(15),char(255),char(174),char(2),char(184),char(0),char(17), -char(255),char(174),char(2),char(184),char(1),char(206),char(255),char(236),char(2),char(184), -char(1),char(213),char(255),char(236),char(2),char(184),char(1),char(242),char(255),char(236), -char(2),char(184),char(2),char(8),char(255),char(174),char(2),char(184),char(2),char(12), -char(255),char(174),char(2),char(184),char(2),char(115),char(255),char(236),char(2),char(184), -char(2),char(207),char(255),char(236),char(2),char(184),char(3),char(18),char(255),char(236), -char(2),char(184),char(3),char(28),char(255),char(236),char(2),char(185),char(0),char(15), -char(255),char(133),char(2),char(185),char(0),char(17),char(255),char(133),char(2),char(185), -char(1),char(159),char(255),char(215),char(2),char(185),char(1),char(164),char(255),char(174), -char(2),char(185),char(1),char(170),char(255),char(133),char(2),char(185),char(1),char(174), -char(255),char(174),char(2),char(185),char(1),char(181),char(255),char(174),char(2),char(185), -char(1),char(184),char(255),char(215),char(2),char(185),char(1),char(187),char(255),char(215), -char(2),char(185),char(1),char(190),char(255),char(195),char(2),char(185),char(1),char(202), -char(255),char(174),char(2),char(185),char(1),char(204),char(255),char(195),char(2),char(185), -char(1),char(205),char(255),char(195),char(2),char(185),char(1),char(206),char(255),char(154), -char(2),char(185),char(1),char(207),char(255),char(154),char(2),char(185),char(1),char(210), -char(255),char(195),char(2),char(185),char(1),char(211),char(255),char(195),char(2),char(185), -char(1),char(212),char(255),char(195),char(2),char(185),char(1),char(213),char(255),char(154), -char(2),char(185),char(1),char(214),char(255),char(195),char(2),char(185),char(1),char(215), -char(255),char(195),char(2),char(185),char(1),char(216),char(255),char(154),char(2),char(185), -char(1),char(217),char(255),char(195),char(2),char(185),char(1),char(218),char(255),char(195), -char(2),char(185),char(1),char(219),char(255),char(154),char(2),char(185),char(1),char(222), -char(255),char(154),char(2),char(185),char(1),char(224),char(255),char(195),char(2),char(185), -char(1),char(225),char(255),char(174),char(2),char(185),char(1),char(226),char(255),char(195), -char(2),char(185),char(1),char(227),char(255),char(195),char(2),char(185),char(1),char(229), -char(255),char(195),char(2),char(185),char(1),char(230),char(255),char(195),char(2),char(185), -char(1),char(232),char(255),char(195),char(2),char(185),char(1),char(233),char(255),char(215), -char(2),char(185),char(1),char(234),char(255),char(154),char(2),char(185),char(1),char(235), -char(0),char(41),char(2),char(185),char(1),char(236),char(255),char(195),char(2),char(185), -char(1),char(237),char(255),char(154),char(2),char(185),char(1),char(238),char(255),char(174), -char(2),char(185),char(1),char(242),char(255),char(154),char(2),char(185),char(1),char(243), -char(255),char(195),char(2),char(185),char(1),char(244),char(0),char(41),char(2),char(185), -char(1),char(245),char(255),char(195),char(2),char(185),char(1),char(247),char(255),char(195), -char(2),char(185),char(1),char(249),char(255),char(195),char(2),char(185),char(2),char(8), -char(255),char(133),char(2),char(185),char(2),char(12),char(255),char(133),char(2),char(185), -char(2),char(106),char(255),char(154),char(2),char(185),char(2),char(107),char(255),char(195), -char(2),char(185),char(2),char(108),char(255),char(215),char(2),char(185),char(2),char(113), -char(255),char(195),char(2),char(185),char(2),char(114),char(255),char(133),char(2),char(185), -char(2),char(115),char(255),char(154),char(2),char(185),char(2),char(117),char(255),char(195), -char(2),char(185),char(2),char(119),char(255),char(215),char(2),char(185),char(2),char(121), -char(255),char(195),char(2),char(185),char(2),char(125),char(255),char(215),char(2),char(185), -char(2),char(126),char(255),char(215),char(2),char(185),char(2),char(127),char(255),char(154), -char(2),char(185),char(2),char(132),char(255),char(215),char(2),char(185),char(2),char(133), -char(255),char(154),char(2),char(185),char(2),char(134),char(255),char(215),char(2),char(185), -char(2),char(135),char(255),char(154),char(2),char(185),char(2),char(136),char(255),char(215), -char(2),char(185),char(2),char(137),char(255),char(154),char(2),char(185),char(2),char(138), -char(255),char(215),char(2),char(185),char(2),char(140),char(255),char(215),char(2),char(185), -char(2),char(141),char(255),char(154),char(2),char(185),char(2),char(150),char(255),char(195), -char(2),char(185),char(2),char(152),char(0),char(41),char(2),char(185),char(2),char(154), -char(255),char(195),char(2),char(185),char(2),char(158),char(255),char(195),char(2),char(185), -char(2),char(164),char(255),char(195),char(2),char(185),char(2),char(166),char(255),char(195), -char(2),char(185),char(2),char(168),char(0),char(41),char(2),char(185),char(2),char(172), -char(255),char(195),char(2),char(185),char(2),char(174),char(255),char(195),char(2),char(185), -char(2),char(176),char(255),char(195),char(2),char(185),char(2),char(177),char(255),char(215), -char(2),char(185),char(2),char(178),char(255),char(154),char(2),char(185),char(2),char(179), -char(255),char(215),char(2),char(185),char(2),char(180),char(255),char(154),char(2),char(185), -char(2),char(192),char(255),char(174),char(2),char(185),char(2),char(194),char(255),char(174), -char(2),char(185),char(2),char(196),char(255),char(195),char(2),char(185),char(2),char(198), -char(255),char(174),char(2),char(185),char(2),char(200),char(255),char(174),char(2),char(185), -char(2),char(205),char(255),char(195),char(2),char(185),char(2),char(206),char(255),char(174), -char(2),char(185),char(2),char(207),char(255),char(154),char(2),char(185),char(2),char(209), -char(255),char(195),char(2),char(185),char(2),char(211),char(255),char(195),char(2),char(185), -char(2),char(213),char(255),char(174),char(2),char(185),char(2),char(215),char(255),char(195), -char(2),char(185),char(2),char(217),char(255),char(133),char(2),char(185),char(2),char(218), -char(255),char(174),char(2),char(185),char(2),char(219),char(255),char(133),char(2),char(185), -char(2),char(220),char(255),char(174),char(2),char(185),char(2),char(221),char(255),char(133), -char(2),char(185),char(2),char(222),char(255),char(174),char(2),char(185),char(2),char(224), -char(255),char(154),char(2),char(185),char(2),char(225),char(255),char(236),char(2),char(185), -char(2),char(226),char(255),char(174),char(2),char(185),char(2),char(227),char(255),char(236), -char(2),char(185),char(2),char(228),char(255),char(174),char(2),char(185),char(2),char(236), -char(255),char(195),char(2),char(185),char(2),char(238),char(255),char(195),char(2),char(185), -char(2),char(239),char(255),char(215),char(2),char(185),char(2),char(240),char(255),char(154), -char(2),char(185),char(2),char(241),char(255),char(215),char(2),char(185),char(2),char(242), -char(255),char(154),char(2),char(185),char(2),char(243),char(255),char(215),char(2),char(185), -char(2),char(244),char(255),char(154),char(2),char(185),char(2),char(254),char(255),char(174), -char(2),char(185),char(3),char(0),char(255),char(195),char(2),char(185),char(3),char(2), -char(255),char(195),char(2),char(185),char(3),char(9),char(255),char(174),char(2),char(185), -char(3),char(10),char(255),char(154),char(2),char(185),char(3),char(11),char(255),char(174), -char(2),char(185),char(3),char(12),char(255),char(154),char(2),char(185),char(3),char(14), -char(255),char(215),char(2),char(185),char(3),char(16),char(255),char(215),char(2),char(185), -char(3),char(17),char(255),char(174),char(2),char(185),char(3),char(18),char(255),char(154), -char(2),char(185),char(3),char(20),char(255),char(195),char(2),char(185),char(3),char(21), -char(255),char(215),char(2),char(185),char(3),char(22),char(255),char(154),char(2),char(185), -char(3),char(25),char(255),char(236),char(2),char(185),char(3),char(26),char(255),char(154), -char(2),char(185),char(3),char(27),char(255),char(174),char(2),char(185),char(3),char(28), -char(255),char(154),char(2),char(186),char(0),char(15),char(255),char(174),char(2),char(186), -char(0),char(17),char(255),char(174),char(2),char(186),char(1),char(206),char(255),char(236), -char(2),char(186),char(1),char(213),char(255),char(236),char(2),char(186),char(1),char(242), -char(255),char(236),char(2),char(186),char(2),char(8),char(255),char(174),char(2),char(186), -char(2),char(12),char(255),char(174),char(2),char(186),char(2),char(115),char(255),char(236), -char(2),char(186),char(2),char(207),char(255),char(236),char(2),char(186),char(3),char(18), -char(255),char(236),char(2),char(186),char(3),char(28),char(255),char(236),char(2),char(187), -char(1),char(159),char(255),char(215),char(2),char(187),char(1),char(163),char(0),char(225), -char(2),char(187),char(1),char(184),char(255),char(215),char(2),char(187),char(1),char(187), -char(255),char(215),char(2),char(187),char(1),char(190),char(255),char(195),char(2),char(187), -char(1),char(220),char(255),char(215),char(2),char(187),char(1),char(225),char(255),char(174), -char(2),char(187),char(1),char(228),char(255),char(215),char(2),char(187),char(2),char(108), -char(255),char(215),char(2),char(187),char(2),char(123),char(0),char(61),char(2),char(187), -char(2),char(125),char(255),char(236),char(2),char(187),char(2),char(126),char(255),char(215), -char(2),char(187),char(2),char(132),char(255),char(215),char(2),char(187),char(2),char(134), -char(255),char(215),char(2),char(187),char(2),char(136),char(255),char(215),char(2),char(187), -char(2),char(138),char(255),char(215),char(2),char(187),char(2),char(140),char(255),char(215), -char(2),char(187),char(2),char(170),char(255),char(215),char(2),char(187),char(2),char(177), -char(255),char(215),char(2),char(187),char(2),char(179),char(255),char(215),char(2),char(187), -char(2),char(182),char(255),char(215),char(2),char(187),char(2),char(190),char(255),char(215), -char(2),char(187),char(2),char(192),char(255),char(174),char(2),char(187),char(2),char(194), -char(255),char(174),char(2),char(187),char(2),char(197),char(255),char(195),char(2),char(187), -char(2),char(198),char(255),char(215),char(2),char(187),char(2),char(199),char(255),char(195), -char(2),char(187),char(2),char(200),char(255),char(215),char(2),char(187),char(2),char(213), -char(255),char(174),char(2),char(187),char(2),char(239),char(255),char(215),char(2),char(187), -char(2),char(241),char(255),char(215),char(2),char(187),char(2),char(243),char(255),char(215), -char(2),char(187),char(2),char(254),char(255),char(174),char(2),char(187),char(3),char(14), -char(255),char(215),char(2),char(187),char(3),char(16),char(255),char(215),char(2),char(187), -char(3),char(21),char(255),char(215),char(2),char(187),char(3),char(24),char(255),char(215), -char(2),char(188),char(1),char(207),char(255),char(236),char(2),char(188),char(1),char(216), -char(255),char(236),char(2),char(188),char(1),char(219),char(255),char(236),char(2),char(188), -char(1),char(222),char(255),char(236),char(2),char(188),char(1),char(225),char(255),char(236), -char(2),char(188),char(1),char(234),char(255),char(236),char(2),char(188),char(1),char(237), -char(255),char(236),char(2),char(188),char(2),char(106),char(255),char(236),char(2),char(188), -char(2),char(127),char(255),char(236),char(2),char(188),char(2),char(133),char(255),char(236), -char(2),char(188),char(2),char(135),char(255),char(236),char(2),char(188),char(2),char(137), -char(255),char(236),char(2),char(188),char(2),char(141),char(255),char(236),char(2),char(188), -char(2),char(178),char(255),char(236),char(2),char(188),char(2),char(180),char(255),char(236), -char(2),char(188),char(2),char(192),char(255),char(236),char(2),char(188),char(2),char(194), -char(255),char(236),char(2),char(188),char(2),char(213),char(255),char(236),char(2),char(188), -char(2),char(224),char(255),char(236),char(2),char(188),char(2),char(240),char(255),char(236), -char(2),char(188),char(2),char(242),char(255),char(236),char(2),char(188),char(2),char(244), -char(255),char(236),char(2),char(188),char(2),char(254),char(255),char(236),char(2),char(188), -char(3),char(10),char(255),char(236),char(2),char(188),char(3),char(12),char(255),char(236), -char(2),char(188),char(3),char(14),char(255),char(215),char(2),char(188),char(3),char(16), -char(255),char(215),char(2),char(188),char(3),char(22),char(255),char(236),char(2),char(188), -char(3),char(26),char(255),char(236),char(2),char(189),char(1),char(163),char(0),char(225), -char(2),char(189),char(2),char(234),char(0),char(41),char(2),char(189),char(3),char(14), -char(255),char(215),char(2),char(189),char(3),char(16),char(255),char(215),char(2),char(190), -char(0),char(5),char(255),char(236),char(2),char(190),char(0),char(10),char(255),char(236), -char(2),char(190),char(2),char(7),char(255),char(236),char(2),char(190),char(2),char(11), -char(255),char(236),char(2),char(191),char(1),char(163),char(0),char(225),char(2),char(191), -char(2),char(234),char(0),char(41),char(2),char(191),char(3),char(14),char(255),char(215), -char(2),char(191),char(3),char(16),char(255),char(215),char(2),char(192),char(0),char(5), -char(255),char(236),char(2),char(192),char(0),char(10),char(255),char(236),char(2),char(192), -char(2),char(7),char(255),char(236),char(2),char(192),char(2),char(11),char(255),char(236), -char(2),char(195),char(0),char(5),char(255),char(195),char(2),char(195),char(0),char(10), -char(255),char(195),char(2),char(195),char(1),char(157),char(255),char(215),char(2),char(195), -char(1),char(166),char(255),char(215),char(2),char(195),char(1),char(188),char(255),char(133), -char(2),char(195),char(1),char(193),char(255),char(174),char(2),char(195),char(1),char(196), -char(255),char(215),char(2),char(195),char(1),char(220),char(255),char(215),char(2),char(195), -char(1),char(221),char(255),char(236),char(2),char(195),char(1),char(225),char(255),char(236), -char(2),char(195),char(1),char(228),char(255),char(215),char(2),char(195),char(1),char(246), -char(255),char(236),char(2),char(195),char(2),char(7),char(255),char(195),char(2),char(195), -char(2),char(11),char(255),char(195),char(2),char(195),char(2),char(124),char(255),char(174), -char(2),char(195),char(2),char(128),char(255),char(195),char(2),char(195),char(2),char(130), -char(255),char(195),char(2),char(195),char(2),char(169),char(255),char(215),char(2),char(195), -char(2),char(170),char(255),char(215),char(2),char(195),char(2),char(181),char(255),char(133), -char(2),char(195),char(2),char(182),char(255),char(215),char(2),char(195),char(2),char(183), -char(255),char(154),char(2),char(195),char(2),char(185),char(255),char(154),char(2),char(195), -char(2),char(189),char(255),char(215),char(2),char(195),char(2),char(190),char(255),char(215), -char(2),char(195),char(2),char(191),char(255),char(174),char(2),char(195),char(2),char(192), -char(255),char(236),char(2),char(195),char(2),char(193),char(255),char(174),char(2),char(195), -char(2),char(194),char(255),char(236),char(2),char(195),char(2),char(212),char(255),char(174), -char(2),char(195),char(2),char(213),char(255),char(236),char(2),char(195),char(2),char(248), -char(255),char(236),char(2),char(195),char(2),char(250),char(255),char(236),char(2),char(195), -char(2),char(252),char(255),char(236),char(2),char(195),char(2),char(253),char(255),char(174), -char(2),char(195),char(2),char(254),char(255),char(236),char(2),char(195),char(3),char(13), -char(255),char(174),char(2),char(195),char(3),char(14),char(255),char(215),char(2),char(195), -char(3),char(15),char(255),char(174),char(2),char(195),char(3),char(16),char(255),char(215), -char(2),char(195),char(3),char(23),char(255),char(215),char(2),char(195),char(3),char(24), -char(255),char(215),char(2),char(196),char(0),char(5),char(255),char(154),char(2),char(196), -char(0),char(10),char(255),char(154),char(2),char(196),char(1),char(220),char(255),char(215), -char(2),char(196),char(1),char(221),char(255),char(215),char(2),char(196),char(1),char(228), -char(255),char(215),char(2),char(196),char(1),char(246),char(255),char(215),char(2),char(196), -char(2),char(7),char(255),char(154),char(2),char(196),char(2),char(11),char(255),char(154), -char(2),char(196),char(2),char(170),char(255),char(215),char(2),char(196),char(2),char(182), -char(255),char(215),char(2),char(196),char(2),char(184),char(255),char(215),char(2),char(196), -char(2),char(186),char(255),char(215),char(2),char(196),char(2),char(190),char(255),char(215), -char(2),char(196),char(2),char(248),char(255),char(215),char(2),char(196),char(2),char(250), -char(255),char(215),char(2),char(196),char(2),char(252),char(255),char(215),char(2),char(196), -char(3),char(14),char(255),char(174),char(2),char(196),char(3),char(16),char(255),char(174), -char(2),char(196),char(3),char(24),char(255),char(215),char(2),char(197),char(1),char(188), -char(255),char(215),char(2),char(197),char(2),char(128),char(255),char(236),char(2),char(197), -char(2),char(130),char(255),char(236),char(2),char(197),char(2),char(181),char(255),char(215), -char(2),char(197),char(2),char(183),char(255),char(236),char(2),char(197),char(2),char(185), -char(255),char(236),char(2),char(197),char(3),char(13),char(255),char(236),char(2),char(197), -char(3),char(15),char(255),char(236),char(2),char(198),char(0),char(5),char(255),char(236), -char(2),char(198),char(0),char(10),char(255),char(236),char(2),char(198),char(2),char(7), -char(255),char(236),char(2),char(198),char(2),char(11),char(255),char(236),char(2),char(199), -char(1),char(188),char(255),char(215),char(2),char(199),char(2),char(128),char(255),char(236), -char(2),char(199),char(2),char(130),char(255),char(236),char(2),char(199),char(2),char(181), -char(255),char(215),char(2),char(199),char(2),char(183),char(255),char(236),char(2),char(199), -char(2),char(185),char(255),char(236),char(2),char(199),char(3),char(13),char(255),char(236), -char(2),char(199),char(3),char(15),char(255),char(236),char(2),char(200),char(0),char(5), -char(255),char(236),char(2),char(200),char(0),char(10),char(255),char(236),char(2),char(200), -char(2),char(7),char(255),char(236),char(2),char(200),char(2),char(11),char(255),char(236), -char(2),char(202),char(1),char(159),char(255),char(215),char(2),char(202),char(1),char(184), -char(255),char(215),char(2),char(202),char(1),char(187),char(255),char(215),char(2),char(202), -char(1),char(190),char(255),char(215),char(2),char(202),char(1),char(193),char(255),char(215), -char(2),char(202),char(1),char(225),char(255),char(215),char(2),char(202),char(2),char(108), -char(255),char(215),char(2),char(202),char(2),char(124),char(255),char(215),char(2),char(202), -char(2),char(126),char(255),char(215),char(2),char(202),char(2),char(132),char(255),char(215), -char(2),char(202),char(2),char(134),char(255),char(215),char(2),char(202),char(2),char(136), -char(255),char(215),char(2),char(202),char(2),char(138),char(255),char(215),char(2),char(202), -char(2),char(140),char(255),char(215),char(2),char(202),char(2),char(177),char(255),char(215), -char(2),char(202),char(2),char(179),char(255),char(215),char(2),char(202),char(2),char(191), -char(255),char(215),char(2),char(202),char(2),char(192),char(255),char(215),char(2),char(202), -char(2),char(193),char(255),char(215),char(2),char(202),char(2),char(194),char(255),char(215), -char(2),char(202),char(2),char(197),char(255),char(154),char(2),char(202),char(2),char(199), -char(255),char(154),char(2),char(202),char(2),char(212),char(255),char(215),char(2),char(202), -char(2),char(213),char(255),char(215),char(2),char(202),char(2),char(239),char(255),char(215), -char(2),char(202),char(2),char(241),char(255),char(215),char(2),char(202),char(2),char(243), -char(255),char(215),char(2),char(202),char(2),char(253),char(255),char(215),char(2),char(202), -char(2),char(254),char(255),char(215),char(2),char(202),char(3),char(9),char(255),char(215), -char(2),char(202),char(3),char(11),char(255),char(215),char(2),char(202),char(3),char(14), -char(255),char(215),char(2),char(202),char(3),char(16),char(255),char(215),char(2),char(202), -char(3),char(21),char(255),char(215),char(2),char(202),char(3),char(25),char(255),char(236), -char(2),char(203),char(1),char(207),char(255),char(215),char(2),char(203),char(1),char(216), -char(255),char(215),char(2),char(203),char(1),char(219),char(255),char(215),char(2),char(203), -char(1),char(222),char(255),char(215),char(2),char(203),char(1),char(225),char(255),char(215), -char(2),char(203),char(1),char(234),char(255),char(215),char(2),char(203),char(1),char(237), -char(255),char(215),char(2),char(203),char(2),char(106),char(255),char(215),char(2),char(203), -char(2),char(127),char(255),char(215),char(2),char(203),char(2),char(133),char(255),char(215), -char(2),char(203),char(2),char(135),char(255),char(215),char(2),char(203),char(2),char(137), -char(255),char(215),char(2),char(203),char(2),char(141),char(255),char(215),char(2),char(203), -char(2),char(178),char(255),char(215),char(2),char(203),char(2),char(180),char(255),char(215), -char(2),char(203),char(2),char(192),char(255),char(215),char(2),char(203),char(2),char(194), -char(255),char(215),char(2),char(203),char(2),char(198),char(255),char(215),char(2),char(203), -char(2),char(200),char(255),char(215),char(2),char(203),char(2),char(213),char(255),char(215), -char(2),char(203),char(2),char(224),char(255),char(215),char(2),char(203),char(2),char(240), -char(255),char(215),char(2),char(203),char(2),char(242),char(255),char(215),char(2),char(203), -char(2),char(244),char(255),char(215),char(2),char(203),char(2),char(254),char(255),char(215), -char(2),char(203),char(3),char(10),char(255),char(215),char(2),char(203),char(3),char(12), -char(255),char(215),char(2),char(203),char(3),char(22),char(255),char(215),char(2),char(203), -char(3),char(26),char(255),char(215),char(2),char(204),char(0),char(5),char(255),char(195), -char(2),char(204),char(0),char(10),char(255),char(195),char(2),char(204),char(1),char(163), -char(0),char(102),char(2),char(204),char(1),char(188),char(255),char(215),char(2),char(204), -char(1),char(190),char(255),char(215),char(2),char(204),char(1),char(193),char(255),char(174), -char(2),char(204),char(1),char(220),char(255),char(195),char(2),char(204),char(1),char(225), -char(255),char(215),char(2),char(204),char(1),char(228),char(255),char(195),char(2),char(204), -char(2),char(7),char(255),char(195),char(2),char(204),char(2),char(11),char(255),char(195), -char(2),char(204),char(2),char(109),char(255),char(236),char(2),char(204),char(2),char(124), -char(255),char(174),char(2),char(204),char(2),char(128),char(255),char(215),char(2),char(204), -char(2),char(129),char(255),char(236),char(2),char(204),char(2),char(130),char(255),char(215), -char(2),char(204),char(2),char(131),char(255),char(236),char(2),char(204),char(2),char(139), -char(255),char(236),char(2),char(204),char(2),char(170),char(255),char(195),char(2),char(204), -char(2),char(181),char(255),char(215),char(2),char(204),char(2),char(182),char(255),char(195), -char(2),char(204),char(2),char(183),char(255),char(215),char(2),char(204),char(2),char(184), -char(255),char(236),char(2),char(204),char(2),char(185),char(255),char(215),char(2),char(204), -char(2),char(186),char(255),char(236),char(2),char(204),char(2),char(190),char(255),char(195), -char(2),char(204),char(2),char(191),char(255),char(174),char(2),char(204),char(2),char(192), -char(255),char(215),char(2),char(204),char(2),char(193),char(255),char(174),char(2),char(204), -char(2),char(194),char(255),char(215),char(2),char(204),char(2),char(197),char(255),char(195), -char(2),char(204),char(2),char(198),char(255),char(215),char(2),char(204),char(2),char(199), -char(255),char(195),char(2),char(204),char(2),char(200),char(255),char(215),char(2),char(204), -char(2),char(212),char(255),char(174),char(2),char(204),char(2),char(213),char(255),char(215), -char(2),char(204),char(2),char(253),char(255),char(174),char(2),char(204),char(2),char(254), -char(255),char(215),char(2),char(204),char(3),char(13),char(255),char(215),char(2),char(204), -char(3),char(14),char(255),char(195),char(2),char(204),char(3),char(15),char(255),char(215), -char(2),char(204),char(3),char(16),char(255),char(195),char(2),char(204),char(3),char(24), -char(255),char(195),char(2),char(205),char(1),char(225),char(255),char(215),char(2),char(205), -char(2),char(192),char(255),char(215),char(2),char(205),char(2),char(194),char(255),char(215), -char(2),char(205),char(2),char(213),char(255),char(215),char(2),char(205),char(2),char(254), -char(255),char(215),char(2),char(206),char(1),char(163),char(0),char(225),char(2),char(206), -char(2),char(234),char(0),char(41),char(2),char(206),char(3),char(14),char(255),char(215), -char(2),char(206),char(3),char(16),char(255),char(215),char(2),char(207),char(0),char(5), -char(255),char(236),char(2),char(207),char(0),char(10),char(255),char(236),char(2),char(207), -char(2),char(7),char(255),char(236),char(2),char(207),char(2),char(11),char(255),char(236), -char(2),char(210),char(1),char(163),char(0),char(225),char(2),char(210),char(2),char(234), -char(0),char(41),char(2),char(210),char(3),char(14),char(255),char(215),char(2),char(210), -char(3),char(16),char(255),char(215),char(2),char(211),char(0),char(5),char(255),char(236), -char(2),char(211),char(0),char(10),char(255),char(236),char(2),char(211),char(2),char(7), -char(255),char(236),char(2),char(211),char(2),char(11),char(255),char(236),char(2),char(214), -char(1),char(163),char(0),char(225),char(2),char(214),char(2),char(234),char(0),char(41), -char(2),char(214),char(3),char(14),char(255),char(215),char(2),char(214),char(3),char(16), -char(255),char(215),char(2),char(215),char(0),char(5),char(255),char(236),char(2),char(215), -char(0),char(10),char(255),char(236),char(2),char(215),char(2),char(7),char(255),char(236), -char(2),char(215),char(2),char(11),char(255),char(236),char(2),char(217),char(0),char(5), -char(255),char(113),char(2),char(217),char(0),char(10),char(255),char(113),char(2),char(217), -char(1),char(157),char(255),char(154),char(2),char(217),char(1),char(166),char(255),char(154), -char(2),char(217),char(1),char(188),char(255),char(113),char(2),char(217),char(1),char(190), -char(255),char(215),char(2),char(217),char(1),char(193),char(255),char(154),char(2),char(217), -char(1),char(196),char(255),char(154),char(2),char(217),char(1),char(220),char(255),char(215), -char(2),char(217),char(1),char(225),char(255),char(215),char(2),char(217),char(1),char(228), -char(255),char(215),char(2),char(217),char(2),char(7),char(255),char(113),char(2),char(217), -char(2),char(11),char(255),char(113),char(2),char(217),char(2),char(110),char(255),char(215), -char(2),char(217),char(2),char(124),char(255),char(154),char(2),char(217),char(2),char(128), -char(255),char(174),char(2),char(217),char(2),char(130),char(255),char(174),char(2),char(217), -char(2),char(151),char(255),char(215),char(2),char(217),char(2),char(155),char(255),char(215), -char(2),char(217),char(2),char(167),char(255),char(215),char(2),char(217),char(2),char(169), -char(255),char(154),char(2),char(217),char(2),char(170),char(255),char(215),char(2),char(217), -char(2),char(181),char(255),char(113),char(2),char(217),char(2),char(182),char(255),char(215), -char(2),char(217),char(2),char(183),char(255),char(133),char(2),char(217),char(2),char(185), -char(255),char(133),char(2),char(217),char(2),char(189),char(255),char(154),char(2),char(217), -char(2),char(190),char(255),char(215),char(2),char(217),char(2),char(191),char(255),char(154), -char(2),char(217),char(2),char(192),char(255),char(215),char(2),char(217),char(2),char(193), -char(255),char(154),char(2),char(217),char(2),char(194),char(255),char(215),char(2),char(217), -char(2),char(197),char(255),char(154),char(2),char(217),char(2),char(199),char(255),char(154), -char(2),char(217),char(2),char(212),char(255),char(154),char(2),char(217),char(2),char(213), -char(255),char(215),char(2),char(217),char(2),char(225),char(255),char(215),char(2),char(217), -char(2),char(227),char(255),char(215),char(2),char(217),char(2),char(253),char(255),char(154), -char(2),char(217),char(2),char(254),char(255),char(215),char(2),char(217),char(3),char(3), -char(255),char(215),char(2),char(217),char(3),char(13),char(255),char(113),char(2),char(217), -char(3),char(14),char(255),char(215),char(2),char(217),char(3),char(15),char(255),char(113), -char(2),char(217),char(3),char(16),char(255),char(215),char(2),char(217),char(3),char(23), -char(255),char(154),char(2),char(217),char(3),char(24),char(255),char(215),char(2),char(218), -char(0),char(5),char(255),char(236),char(2),char(218),char(0),char(10),char(255),char(236), -char(2),char(218),char(2),char(7),char(255),char(236),char(2),char(218),char(2),char(11), -char(255),char(236),char(2),char(219),char(0),char(5),char(255),char(113),char(2),char(219), -char(0),char(10),char(255),char(113),char(2),char(219),char(1),char(157),char(255),char(154), -char(2),char(219),char(1),char(166),char(255),char(154),char(2),char(219),char(1),char(188), -char(255),char(113),char(2),char(219),char(1),char(190),char(255),char(215),char(2),char(219), -char(1),char(193),char(255),char(154),char(2),char(219),char(1),char(196),char(255),char(154), -char(2),char(219),char(1),char(220),char(255),char(215),char(2),char(219),char(1),char(225), -char(255),char(215),char(2),char(219),char(1),char(228),char(255),char(215),char(2),char(219), -char(2),char(7),char(255),char(113),char(2),char(219),char(2),char(11),char(255),char(113), -char(2),char(219),char(2),char(110),char(255),char(215),char(2),char(219),char(2),char(124), -char(255),char(154),char(2),char(219),char(2),char(128),char(255),char(174),char(2),char(219), -char(2),char(130),char(255),char(174),char(2),char(219),char(2),char(151),char(255),char(215), -char(2),char(219),char(2),char(155),char(255),char(215),char(2),char(219),char(2),char(167), -char(255),char(215),char(2),char(219),char(2),char(169),char(255),char(154),char(2),char(219), -char(2),char(170),char(255),char(215),char(2),char(219),char(2),char(181),char(255),char(113), -char(2),char(219),char(2),char(182),char(255),char(215),char(2),char(219),char(2),char(183), -char(255),char(133),char(2),char(219),char(2),char(185),char(255),char(133),char(2),char(219), -char(2),char(189),char(255),char(154),char(2),char(219),char(2),char(190),char(255),char(215), -char(2),char(219),char(2),char(191),char(255),char(154),char(2),char(219),char(2),char(192), -char(255),char(215),char(2),char(219),char(2),char(193),char(255),char(154),char(2),char(219), -char(2),char(194),char(255),char(215),char(2),char(219),char(2),char(197),char(255),char(154), -char(2),char(219),char(2),char(199),char(255),char(154),char(2),char(219),char(2),char(212), -char(255),char(154),char(2),char(219),char(2),char(213),char(255),char(215),char(2),char(219), -char(2),char(225),char(255),char(215),char(2),char(219),char(2),char(227),char(255),char(215), -char(2),char(219),char(2),char(253),char(255),char(154),char(2),char(219),char(2),char(254), -char(255),char(215),char(2),char(219),char(3),char(3),char(255),char(215),char(2),char(219), -char(3),char(13),char(255),char(113),char(2),char(219),char(3),char(14),char(255),char(215), -char(2),char(219),char(3),char(15),char(255),char(113),char(2),char(219),char(3),char(16), -char(255),char(215),char(2),char(219),char(3),char(23),char(255),char(154),char(2),char(219), -char(3),char(24),char(255),char(215),char(2),char(220),char(0),char(5),char(255),char(236), -char(2),char(220),char(0),char(10),char(255),char(236),char(2),char(220),char(2),char(7), -char(255),char(236),char(2),char(220),char(2),char(11),char(255),char(236),char(2),char(222), -char(0),char(5),char(255),char(236),char(2),char(222),char(0),char(10),char(255),char(236), -char(2),char(222),char(2),char(7),char(255),char(236),char(2),char(222),char(2),char(11), -char(255),char(236),char(2),char(224),char(0),char(5),char(255),char(236),char(2),char(224), -char(0),char(10),char(255),char(236),char(2),char(224),char(2),char(7),char(255),char(236), -char(2),char(224),char(2),char(11),char(255),char(236),char(2),char(225),char(0),char(15), -char(255),char(174),char(2),char(225),char(0),char(17),char(255),char(174),char(2),char(225), -char(1),char(157),char(255),char(236),char(2),char(225),char(1),char(164),char(255),char(215), -char(2),char(225),char(1),char(166),char(255),char(236),char(2),char(225),char(1),char(168), -char(255),char(215),char(2),char(225),char(1),char(170),char(255),char(215),char(2),char(225), -char(1),char(174),char(255),char(215),char(2),char(225),char(1),char(176),char(255),char(215), -char(2),char(225),char(1),char(177),char(255),char(236),char(2),char(225),char(1),char(181), -char(255),char(215),char(2),char(225),char(1),char(188),char(255),char(195),char(2),char(225), -char(1),char(189),char(255),char(215),char(2),char(225),char(1),char(191),char(255),char(215), -char(2),char(225),char(1),char(193),char(255),char(215),char(2),char(225),char(1),char(196), -char(255),char(236),char(2),char(225),char(1),char(199),char(255),char(236),char(2),char(225), -char(1),char(206),char(255),char(236),char(2),char(225),char(1),char(213),char(255),char(236), -char(2),char(225),char(1),char(242),char(255),char(236),char(2),char(225),char(2),char(8), -char(255),char(174),char(2),char(225),char(2),char(12),char(255),char(174),char(2),char(225), -char(2),char(114),char(255),char(215),char(2),char(225),char(2),char(115),char(255),char(236), -char(2),char(225),char(2),char(122),char(255),char(236),char(2),char(225),char(2),char(124), -char(255),char(215),char(2),char(225),char(2),char(128),char(255),char(236),char(2),char(225), -char(2),char(130),char(255),char(236),char(2),char(225),char(2),char(159),char(255),char(215), -char(2),char(225),char(2),char(161),char(255),char(236),char(2),char(225),char(2),char(169), -char(255),char(236),char(2),char(225),char(2),char(181),char(255),char(195),char(2),char(225), -char(2),char(183),char(255),char(236),char(2),char(225),char(2),char(185),char(255),char(236), -char(2),char(225),char(2),char(187),char(255),char(215),char(2),char(225),char(2),char(189), -char(255),char(236),char(2),char(225),char(2),char(191),char(255),char(215),char(2),char(225), -char(2),char(193),char(255),char(215),char(2),char(225),char(2),char(202),char(255),char(215), -char(2),char(225),char(2),char(206),char(255),char(215),char(2),char(225),char(2),char(207), -char(255),char(236),char(2),char(225),char(2),char(212),char(255),char(215),char(2),char(225), -char(2),char(217),char(255),char(215),char(2),char(225),char(2),char(219),char(255),char(215), -char(2),char(225),char(2),char(221),char(255),char(215),char(2),char(225),char(2),char(229), -char(255),char(215),char(2),char(225),char(2),char(231),char(255),char(236),char(2),char(225), -char(2),char(245),char(255),char(236),char(2),char(225),char(2),char(247),char(255),char(215), -char(2),char(225),char(2),char(249),char(255),char(215),char(2),char(225),char(2),char(251), -char(255),char(215),char(2),char(225),char(2),char(253),char(255),char(215),char(2),char(225), -char(3),char(5),char(255),char(215),char(2),char(225),char(3),char(7),char(255),char(215), -char(2),char(225),char(3),char(13),char(255),char(215),char(2),char(225),char(3),char(15), -char(255),char(215),char(2),char(225),char(3),char(17),char(255),char(215),char(2),char(225), -char(3),char(18),char(255),char(236),char(2),char(225),char(3),char(23),char(255),char(236), -char(2),char(225),char(3),char(27),char(255),char(215),char(2),char(225),char(3),char(28), -char(255),char(236),char(2),char(226),char(0),char(5),char(255),char(236),char(2),char(226), -char(0),char(10),char(255),char(236),char(2),char(226),char(1),char(208),char(255),char(215), -char(2),char(226),char(1),char(220),char(255),char(236),char(2),char(226),char(1),char(221), -char(255),char(236),char(2),char(226),char(1),char(223),char(255),char(215),char(2),char(226), -char(1),char(225),char(255),char(236),char(2),char(226),char(1),char(228),char(255),char(236), -char(2),char(226),char(1),char(246),char(255),char(236),char(2),char(226),char(2),char(7), -char(255),char(236),char(2),char(226),char(2),char(11),char(255),char(236),char(2),char(226), -char(2),char(160),char(255),char(215),char(2),char(226),char(2),char(170),char(255),char(236), -char(2),char(226),char(2),char(182),char(255),char(236),char(2),char(226),char(2),char(188), -char(255),char(215),char(2),char(226),char(2),char(190),char(255),char(236),char(2),char(226), -char(2),char(192),char(255),char(236),char(2),char(226),char(2),char(194),char(255),char(236), -char(2),char(226),char(2),char(203),char(255),char(215),char(2),char(226),char(2),char(213), -char(255),char(236),char(2),char(226),char(2),char(230),char(255),char(215),char(2),char(226), -char(2),char(248),char(255),char(236),char(2),char(226),char(2),char(250),char(255),char(236), -char(2),char(226),char(2),char(252),char(255),char(236),char(2),char(226),char(2),char(254), -char(255),char(236),char(2),char(226),char(3),char(6),char(255),char(215),char(2),char(226), -char(3),char(8),char(255),char(215),char(2),char(226),char(3),char(14),char(255),char(236), -char(2),char(226),char(3),char(16),char(255),char(236),char(2),char(226),char(3),char(24), -char(255),char(236),char(2),char(227),char(0),char(15),char(255),char(174),char(2),char(227), -char(0),char(17),char(255),char(174),char(2),char(227),char(1),char(157),char(255),char(236), -char(2),char(227),char(1),char(164),char(255),char(215),char(2),char(227),char(1),char(166), -char(255),char(236),char(2),char(227),char(1),char(168),char(255),char(215),char(2),char(227), -char(1),char(170),char(255),char(215),char(2),char(227),char(1),char(174),char(255),char(215), -char(2),char(227),char(1),char(176),char(255),char(215),char(2),char(227),char(1),char(177), -char(255),char(236),char(2),char(227),char(1),char(181),char(255),char(215),char(2),char(227), -char(1),char(188),char(255),char(195),char(2),char(227),char(1),char(189),char(255),char(215), -char(2),char(227),char(1),char(191),char(255),char(215),char(2),char(227),char(1),char(193), -char(255),char(215),char(2),char(227),char(1),char(196),char(255),char(236),char(2),char(227), -char(1),char(199),char(255),char(236),char(2),char(227),char(1),char(206),char(255),char(236), -char(2),char(227),char(1),char(213),char(255),char(236),char(2),char(227),char(1),char(242), -char(255),char(236),char(2),char(227),char(2),char(8),char(255),char(174),char(2),char(227), -char(2),char(12),char(255),char(174),char(2),char(227),char(2),char(114),char(255),char(215), -char(2),char(227),char(2),char(115),char(255),char(236),char(2),char(227),char(2),char(122), -char(255),char(236),char(2),char(227),char(2),char(124),char(255),char(215),char(2),char(227), -char(2),char(128),char(255),char(236),char(2),char(227),char(2),char(130),char(255),char(236), -char(2),char(227),char(2),char(159),char(255),char(215),char(2),char(227),char(2),char(161), -char(255),char(236),char(2),char(227),char(2),char(169),char(255),char(236),char(2),char(227), -char(2),char(181),char(255),char(195),char(2),char(227),char(2),char(183),char(255),char(236), -char(2),char(227),char(2),char(185),char(255),char(236),char(2),char(227),char(2),char(187), -char(255),char(215),char(2),char(227),char(2),char(189),char(255),char(236),char(2),char(227), -char(2),char(191),char(255),char(215),char(2),char(227),char(2),char(193),char(255),char(215), -char(2),char(227),char(2),char(202),char(255),char(215),char(2),char(227),char(2),char(206), -char(255),char(215),char(2),char(227),char(2),char(207),char(255),char(236),char(2),char(227), -char(2),char(212),char(255),char(215),char(2),char(227),char(2),char(217),char(255),char(215), -char(2),char(227),char(2),char(219),char(255),char(215),char(2),char(227),char(2),char(221), -char(255),char(215),char(2),char(227),char(2),char(229),char(255),char(215),char(2),char(227), -char(2),char(231),char(255),char(236),char(2),char(227),char(2),char(245),char(255),char(236), -char(2),char(227),char(2),char(247),char(255),char(215),char(2),char(227),char(2),char(249), -char(255),char(215),char(2),char(227),char(2),char(251),char(255),char(215),char(2),char(227), -char(2),char(253),char(255),char(215),char(2),char(227),char(3),char(5),char(255),char(215), -char(2),char(227),char(3),char(7),char(255),char(215),char(2),char(227),char(3),char(13), -char(255),char(215),char(2),char(227),char(3),char(15),char(255),char(215),char(2),char(227), -char(3),char(17),char(255),char(215),char(2),char(227),char(3),char(18),char(255),char(236), -char(2),char(227),char(3),char(23),char(255),char(236),char(2),char(227),char(3),char(27), -char(255),char(215),char(2),char(227),char(3),char(28),char(255),char(236),char(2),char(228), -char(0),char(5),char(255),char(236),char(2),char(228),char(0),char(10),char(255),char(236), -char(2),char(228),char(1),char(208),char(255),char(215),char(2),char(228),char(1),char(220), -char(255),char(236),char(2),char(228),char(1),char(221),char(255),char(236),char(2),char(228), -char(1),char(223),char(255),char(215),char(2),char(228),char(1),char(225),char(255),char(236), -char(2),char(228),char(1),char(228),char(255),char(236),char(2),char(228),char(1),char(246), -char(255),char(236),char(2),char(228),char(2),char(7),char(255),char(236),char(2),char(228), -char(2),char(11),char(255),char(236),char(2),char(228),char(2),char(160),char(255),char(215), -char(2),char(228),char(2),char(170),char(255),char(236),char(2),char(228),char(2),char(182), -char(255),char(236),char(2),char(228),char(2),char(188),char(255),char(215),char(2),char(228), -char(2),char(190),char(255),char(236),char(2),char(228),char(2),char(192),char(255),char(236), -char(2),char(228),char(2),char(194),char(255),char(236),char(2),char(228),char(2),char(203), -char(255),char(215),char(2),char(228),char(2),char(213),char(255),char(236),char(2),char(228), -char(2),char(230),char(255),char(215),char(2),char(228),char(2),char(248),char(255),char(236), -char(2),char(228),char(2),char(250),char(255),char(236),char(2),char(228),char(2),char(252), -char(255),char(236),char(2),char(228),char(2),char(254),char(255),char(236),char(2),char(228), -char(3),char(6),char(255),char(215),char(2),char(228),char(3),char(8),char(255),char(215), -char(2),char(228),char(3),char(14),char(255),char(236),char(2),char(228),char(3),char(16), -char(255),char(236),char(2),char(228),char(3),char(24),char(255),char(236),char(2),char(229), -char(1),char(159),char(255),char(215),char(2),char(229),char(1),char(184),char(255),char(215), -char(2),char(229),char(1),char(187),char(255),char(215),char(2),char(229),char(1),char(190), -char(255),char(215),char(2),char(229),char(1),char(193),char(255),char(215),char(2),char(229), -char(1),char(225),char(255),char(215),char(2),char(229),char(2),char(108),char(255),char(215), -char(2),char(229),char(2),char(124),char(255),char(215),char(2),char(229),char(2),char(126), -char(255),char(215),char(2),char(229),char(2),char(132),char(255),char(215),char(2),char(229), -char(2),char(134),char(255),char(215),char(2),char(229),char(2),char(136),char(255),char(215), -char(2),char(229),char(2),char(138),char(255),char(215),char(2),char(229),char(2),char(140), -char(255),char(215),char(2),char(229),char(2),char(177),char(255),char(215),char(2),char(229), -char(2),char(179),char(255),char(215),char(2),char(229),char(2),char(191),char(255),char(215), -char(2),char(229),char(2),char(192),char(255),char(215),char(2),char(229),char(2),char(193), -char(255),char(215),char(2),char(229),char(2),char(194),char(255),char(215),char(2),char(229), -char(2),char(197),char(255),char(154),char(2),char(229),char(2),char(199),char(255),char(154), -char(2),char(229),char(2),char(212),char(255),char(215),char(2),char(229),char(2),char(213), -char(255),char(215),char(2),char(229),char(2),char(239),char(255),char(215),char(2),char(229), -char(2),char(241),char(255),char(215),char(2),char(229),char(2),char(243),char(255),char(215), -char(2),char(229),char(2),char(253),char(255),char(215),char(2),char(229),char(2),char(254), -char(255),char(215),char(2),char(229),char(3),char(9),char(255),char(215),char(2),char(229), -char(3),char(11),char(255),char(215),char(2),char(229),char(3),char(14),char(255),char(215), -char(2),char(229),char(3),char(16),char(255),char(215),char(2),char(229),char(3),char(21), -char(255),char(215),char(2),char(229),char(3),char(25),char(255),char(236),char(2),char(230), -char(1),char(207),char(255),char(215),char(2),char(230),char(1),char(216),char(255),char(215), -char(2),char(230),char(1),char(219),char(255),char(215),char(2),char(230),char(1),char(222), -char(255),char(215),char(2),char(230),char(1),char(225),char(255),char(215),char(2),char(230), -char(1),char(234),char(255),char(215),char(2),char(230),char(1),char(237),char(255),char(215), -char(2),char(230),char(2),char(106),char(255),char(215),char(2),char(230),char(2),char(127), -char(255),char(215),char(2),char(230),char(2),char(133),char(255),char(215),char(2),char(230), -char(2),char(135),char(255),char(215),char(2),char(230),char(2),char(137),char(255),char(215), -char(2),char(230),char(2),char(141),char(255),char(215),char(2),char(230),char(2),char(178), -char(255),char(215),char(2),char(230),char(2),char(180),char(255),char(215),char(2),char(230), -char(2),char(192),char(255),char(215),char(2),char(230),char(2),char(194),char(255),char(215), -char(2),char(230),char(2),char(198),char(255),char(215),char(2),char(230),char(2),char(200), -char(255),char(215),char(2),char(230),char(2),char(213),char(255),char(215),char(2),char(230), -char(2),char(224),char(255),char(215),char(2),char(230),char(2),char(240),char(255),char(215), -char(2),char(230),char(2),char(242),char(255),char(215),char(2),char(230),char(2),char(244), -char(255),char(215),char(2),char(230),char(2),char(254),char(255),char(215),char(2),char(230), -char(3),char(10),char(255),char(215),char(2),char(230),char(3),char(12),char(255),char(215), -char(2),char(230),char(3),char(22),char(255),char(215),char(2),char(230),char(3),char(26), -char(255),char(215),char(2),char(231),char(0),char(15),char(255),char(174),char(2),char(231), -char(0),char(17),char(255),char(174),char(2),char(231),char(2),char(8),char(255),char(174), -char(2),char(231),char(2),char(12),char(255),char(174),char(2),char(231),char(2),char(128), -char(255),char(236),char(2),char(231),char(2),char(130),char(255),char(236),char(2),char(231), -char(2),char(183),char(255),char(236),char(2),char(231),char(2),char(185),char(255),char(236), -char(2),char(231),char(3),char(13),char(255),char(215),char(2),char(231),char(3),char(15), -char(255),char(215),char(2),char(232),char(1),char(233),char(0),char(41),char(2),char(233), -char(0),char(5),char(255),char(236),char(2),char(233),char(0),char(10),char(255),char(236), -char(2),char(233),char(2),char(7),char(255),char(236),char(2),char(233),char(2),char(11), -char(255),char(236),char(2),char(233),char(3),char(14),char(255),char(215),char(2),char(233), -char(3),char(16),char(255),char(215),char(2),char(239),char(0),char(15),char(255),char(174), -char(2),char(239),char(0),char(17),char(255),char(174),char(2),char(239),char(1),char(157), -char(255),char(236),char(2),char(239),char(1),char(164),char(255),char(215),char(2),char(239), -char(1),char(166),char(255),char(236),char(2),char(239),char(1),char(168),char(255),char(215), -char(2),char(239),char(1),char(170),char(255),char(215),char(2),char(239),char(1),char(174), -char(255),char(215),char(2),char(239),char(1),char(176),char(255),char(215),char(2),char(239), -char(1),char(177),char(255),char(236),char(2),char(239),char(1),char(181),char(255),char(215), -char(2),char(239),char(1),char(188),char(255),char(195),char(2),char(239),char(1),char(189), -char(255),char(215),char(2),char(239),char(1),char(191),char(255),char(215),char(2),char(239), -char(1),char(193),char(255),char(215),char(2),char(239),char(1),char(196),char(255),char(236), -char(2),char(239),char(1),char(199),char(255),char(236),char(2),char(239),char(1),char(206), -char(255),char(236),char(2),char(239),char(1),char(213),char(255),char(236),char(2),char(239), -char(1),char(242),char(255),char(236),char(2),char(239),char(2),char(8),char(255),char(174), -char(2),char(239),char(2),char(12),char(255),char(174),char(2),char(239),char(2),char(114), -char(255),char(215),char(2),char(239),char(2),char(115),char(255),char(236),char(2),char(239), -char(2),char(122),char(255),char(236),char(2),char(239),char(2),char(124),char(255),char(215), -char(2),char(239),char(2),char(128),char(255),char(236),char(2),char(239),char(2),char(130), -char(255),char(236),char(2),char(239),char(2),char(159),char(255),char(215),char(2),char(239), -char(2),char(161),char(255),char(236),char(2),char(239),char(2),char(169),char(255),char(236), -char(2),char(239),char(2),char(181),char(255),char(195),char(2),char(239),char(2),char(183), -char(255),char(236),char(2),char(239),char(2),char(185),char(255),char(236),char(2),char(239), -char(2),char(187),char(255),char(215),char(2),char(239),char(2),char(189),char(255),char(236), -char(2),char(239),char(2),char(191),char(255),char(215),char(2),char(239),char(2),char(193), -char(255),char(215),char(2),char(239),char(2),char(202),char(255),char(215),char(2),char(239), -char(2),char(206),char(255),char(215),char(2),char(239),char(2),char(207),char(255),char(236), -char(2),char(239),char(2),char(212),char(255),char(215),char(2),char(239),char(2),char(217), -char(255),char(215),char(2),char(239),char(2),char(219),char(255),char(215),char(2),char(239), -char(2),char(221),char(255),char(215),char(2),char(239),char(2),char(229),char(255),char(215), -char(2),char(239),char(2),char(231),char(255),char(236),char(2),char(239),char(2),char(245), -char(255),char(236),char(2),char(239),char(2),char(247),char(255),char(215),char(2),char(239), -char(2),char(249),char(255),char(215),char(2),char(239),char(2),char(251),char(255),char(215), -char(2),char(239),char(2),char(253),char(255),char(215),char(2),char(239),char(3),char(5), -char(255),char(215),char(2),char(239),char(3),char(7),char(255),char(215),char(2),char(239), -char(3),char(13),char(255),char(215),char(2),char(239),char(3),char(15),char(255),char(215), -char(2),char(239),char(3),char(17),char(255),char(215),char(2),char(239),char(3),char(18), -char(255),char(236),char(2),char(239),char(3),char(23),char(255),char(236),char(2),char(239), -char(3),char(27),char(255),char(215),char(2),char(239),char(3),char(28),char(255),char(236), -char(2),char(240),char(0),char(5),char(255),char(236),char(2),char(240),char(0),char(10), -char(255),char(236),char(2),char(240),char(1),char(208),char(255),char(215),char(2),char(240), -char(1),char(220),char(255),char(236),char(2),char(240),char(1),char(221),char(255),char(236), -char(2),char(240),char(1),char(223),char(255),char(215),char(2),char(240),char(1),char(225), -char(255),char(236),char(2),char(240),char(1),char(228),char(255),char(236),char(2),char(240), -char(1),char(246),char(255),char(236),char(2),char(240),char(2),char(7),char(255),char(236), -char(2),char(240),char(2),char(11),char(255),char(236),char(2),char(240),char(2),char(160), -char(255),char(215),char(2),char(240),char(2),char(170),char(255),char(236),char(2),char(240), -char(2),char(182),char(255),char(236),char(2),char(240),char(2),char(188),char(255),char(215), -char(2),char(240),char(2),char(190),char(255),char(236),char(2),char(240),char(2),char(192), -char(255),char(236),char(2),char(240),char(2),char(194),char(255),char(236),char(2),char(240), -char(2),char(203),char(255),char(215),char(2),char(240),char(2),char(213),char(255),char(236), -char(2),char(240),char(2),char(230),char(255),char(215),char(2),char(240),char(2),char(248), -char(255),char(236),char(2),char(240),char(2),char(250),char(255),char(236),char(2),char(240), -char(2),char(252),char(255),char(236),char(2),char(240),char(2),char(254),char(255),char(236), -char(2),char(240),char(3),char(6),char(255),char(215),char(2),char(240),char(3),char(8), -char(255),char(215),char(2),char(240),char(3),char(14),char(255),char(236),char(2),char(240), -char(3),char(16),char(255),char(236),char(2),char(240),char(3),char(24),char(255),char(236), -char(2),char(241),char(0),char(15),char(255),char(174),char(2),char(241),char(0),char(17), -char(255),char(174),char(2),char(241),char(1),char(157),char(255),char(236),char(2),char(241), -char(1),char(164),char(255),char(215),char(2),char(241),char(1),char(166),char(255),char(236), -char(2),char(241),char(1),char(168),char(255),char(215),char(2),char(241),char(1),char(170), -char(255),char(215),char(2),char(241),char(1),char(174),char(255),char(215),char(2),char(241), -char(1),char(176),char(255),char(215),char(2),char(241),char(1),char(177),char(255),char(236), -char(2),char(241),char(1),char(181),char(255),char(215),char(2),char(241),char(1),char(188), -char(255),char(195),char(2),char(241),char(1),char(189),char(255),char(215),char(2),char(241), -char(1),char(191),char(255),char(215),char(2),char(241),char(1),char(193),char(255),char(215), -char(2),char(241),char(1),char(196),char(255),char(236),char(2),char(241),char(1),char(199), -char(255),char(236),char(2),char(241),char(1),char(206),char(255),char(236),char(2),char(241), -char(1),char(213),char(255),char(236),char(2),char(241),char(1),char(242),char(255),char(236), -char(2),char(241),char(2),char(8),char(255),char(174),char(2),char(241),char(2),char(12), -char(255),char(174),char(2),char(241),char(2),char(114),char(255),char(215),char(2),char(241), -char(2),char(115),char(255),char(236),char(2),char(241),char(2),char(122),char(255),char(236), -char(2),char(241),char(2),char(124),char(255),char(215),char(2),char(241),char(2),char(128), -char(255),char(236),char(2),char(241),char(2),char(130),char(255),char(236),char(2),char(241), -char(2),char(159),char(255),char(215),char(2),char(241),char(2),char(161),char(255),char(236), -char(2),char(241),char(2),char(169),char(255),char(236),char(2),char(241),char(2),char(181), -char(255),char(195),char(2),char(241),char(2),char(183),char(255),char(236),char(2),char(241), -char(2),char(185),char(255),char(236),char(2),char(241),char(2),char(187),char(255),char(215), -char(2),char(241),char(2),char(189),char(255),char(236),char(2),char(241),char(2),char(191), -char(255),char(215),char(2),char(241),char(2),char(193),char(255),char(215),char(2),char(241), -char(2),char(202),char(255),char(215),char(2),char(241),char(2),char(206),char(255),char(215), -char(2),char(241),char(2),char(207),char(255),char(236),char(2),char(241),char(2),char(212), -char(255),char(215),char(2),char(241),char(2),char(217),char(255),char(215),char(2),char(241), -char(2),char(219),char(255),char(215),char(2),char(241),char(2),char(221),char(255),char(215), -char(2),char(241),char(2),char(229),char(255),char(215),char(2),char(241),char(2),char(231), -char(255),char(236),char(2),char(241),char(2),char(245),char(255),char(236),char(2),char(241), -char(2),char(247),char(255),char(215),char(2),char(241),char(2),char(249),char(255),char(215), -char(2),char(241),char(2),char(251),char(255),char(215),char(2),char(241),char(2),char(253), -char(255),char(215),char(2),char(241),char(3),char(5),char(255),char(215),char(2),char(241), -char(3),char(7),char(255),char(215),char(2),char(241),char(3),char(13),char(255),char(215), -char(2),char(241),char(3),char(15),char(255),char(215),char(2),char(241),char(3),char(17), -char(255),char(215),char(2),char(241),char(3),char(18),char(255),char(236),char(2),char(241), -char(3),char(23),char(255),char(236),char(2),char(241),char(3),char(27),char(255),char(215), -char(2),char(241),char(3),char(28),char(255),char(236),char(2),char(242),char(0),char(5), -char(255),char(236),char(2),char(242),char(0),char(10),char(255),char(236),char(2),char(242), -char(1),char(208),char(255),char(215),char(2),char(242),char(1),char(220),char(255),char(236), -char(2),char(242),char(1),char(221),char(255),char(236),char(2),char(242),char(1),char(223), -char(255),char(215),char(2),char(242),char(1),char(225),char(255),char(236),char(2),char(242), -char(1),char(228),char(255),char(236),char(2),char(242),char(1),char(246),char(255),char(236), -char(2),char(242),char(2),char(7),char(255),char(236),char(2),char(242),char(2),char(11), -char(255),char(236),char(2),char(242),char(2),char(160),char(255),char(215),char(2),char(242), -char(2),char(170),char(255),char(236),char(2),char(242),char(2),char(182),char(255),char(236), -char(2),char(242),char(2),char(188),char(255),char(215),char(2),char(242),char(2),char(190), -char(255),char(236),char(2),char(242),char(2),char(192),char(255),char(236),char(2),char(242), -char(2),char(194),char(255),char(236),char(2),char(242),char(2),char(203),char(255),char(215), -char(2),char(242),char(2),char(213),char(255),char(236),char(2),char(242),char(2),char(230), -char(255),char(215),char(2),char(242),char(2),char(248),char(255),char(236),char(2),char(242), -char(2),char(250),char(255),char(236),char(2),char(242),char(2),char(252),char(255),char(236), -char(2),char(242),char(2),char(254),char(255),char(236),char(2),char(242),char(3),char(6), -char(255),char(215),char(2),char(242),char(3),char(8),char(255),char(215),char(2),char(242), -char(3),char(14),char(255),char(236),char(2),char(242),char(3),char(16),char(255),char(236), -char(2),char(242),char(3),char(24),char(255),char(236),char(2),char(243),char(0),char(15), -char(255),char(174),char(2),char(243),char(0),char(17),char(255),char(174),char(2),char(243), -char(1),char(157),char(255),char(236),char(2),char(243),char(1),char(164),char(255),char(215), -char(2),char(243),char(1),char(166),char(255),char(236),char(2),char(243),char(1),char(168), -char(255),char(215),char(2),char(243),char(1),char(170),char(255),char(215),char(2),char(243), -char(1),char(174),char(255),char(215),char(2),char(243),char(1),char(176),char(255),char(215), -char(2),char(243),char(1),char(177),char(255),char(236),char(2),char(243),char(1),char(181), -char(255),char(215),char(2),char(243),char(1),char(188),char(255),char(195),char(2),char(243), -char(1),char(189),char(255),char(215),char(2),char(243),char(1),char(191),char(255),char(215), -char(2),char(243),char(1),char(193),char(255),char(215),char(2),char(243),char(1),char(196), -char(255),char(236),char(2),char(243),char(1),char(199),char(255),char(236),char(2),char(243), -char(1),char(206),char(255),char(236),char(2),char(243),char(1),char(213),char(255),char(236), -char(2),char(243),char(1),char(242),char(255),char(236),char(2),char(243),char(2),char(8), -char(255),char(174),char(2),char(243),char(2),char(12),char(255),char(174),char(2),char(243), -char(2),char(114),char(255),char(215),char(2),char(243),char(2),char(115),char(255),char(236), -char(2),char(243),char(2),char(122),char(255),char(236),char(2),char(243),char(2),char(124), -char(255),char(215),char(2),char(243),char(2),char(128),char(255),char(236),char(2),char(243), -char(2),char(130),char(255),char(236),char(2),char(243),char(2),char(159),char(255),char(215), -char(2),char(243),char(2),char(161),char(255),char(236),char(2),char(243),char(2),char(169), -char(255),char(236),char(2),char(243),char(2),char(181),char(255),char(195),char(2),char(243), -char(2),char(183),char(255),char(236),char(2),char(243),char(2),char(185),char(255),char(236), -char(2),char(243),char(2),char(187),char(255),char(215),char(2),char(243),char(2),char(189), -char(255),char(236),char(2),char(243),char(2),char(191),char(255),char(215),char(2),char(243), -char(2),char(193),char(255),char(215),char(2),char(243),char(2),char(202),char(255),char(215), -char(2),char(243),char(2),char(206),char(255),char(215),char(2),char(243),char(2),char(207), -char(255),char(236),char(2),char(243),char(2),char(212),char(255),char(215),char(2),char(243), -char(2),char(217),char(255),char(215),char(2),char(243),char(2),char(219),char(255),char(215), -char(2),char(243),char(2),char(221),char(255),char(215),char(2),char(243),char(2),char(229), -char(255),char(215),char(2),char(243),char(2),char(231),char(255),char(236),char(2),char(243), -char(2),char(245),char(255),char(236),char(2),char(243),char(2),char(247),char(255),char(215), -char(2),char(243),char(2),char(249),char(255),char(215),char(2),char(243),char(2),char(251), -char(255),char(215),char(2),char(243),char(2),char(253),char(255),char(215),char(2),char(243), -char(3),char(5),char(255),char(215),char(2),char(243),char(3),char(7),char(255),char(215), -char(2),char(243),char(3),char(13),char(255),char(215),char(2),char(243),char(3),char(15), -char(255),char(215),char(2),char(243),char(3),char(17),char(255),char(215),char(2),char(243), -char(3),char(18),char(255),char(236),char(2),char(243),char(3),char(23),char(255),char(236), -char(2),char(243),char(3),char(27),char(255),char(215),char(2),char(243),char(3),char(28), -char(255),char(236),char(2),char(244),char(0),char(5),char(255),char(236),char(2),char(244), -char(0),char(10),char(255),char(236),char(2),char(244),char(1),char(208),char(255),char(215), -char(2),char(244),char(1),char(220),char(255),char(236),char(2),char(244),char(1),char(221), -char(255),char(236),char(2),char(244),char(1),char(223),char(255),char(215),char(2),char(244), -char(1),char(225),char(255),char(236),char(2),char(244),char(1),char(228),char(255),char(236), -char(2),char(244),char(1),char(246),char(255),char(236),char(2),char(244),char(2),char(7), -char(255),char(236),char(2),char(244),char(2),char(11),char(255),char(236),char(2),char(244), -char(2),char(160),char(255),char(215),char(2),char(244),char(2),char(170),char(255),char(236), -char(2),char(244),char(2),char(182),char(255),char(236),char(2),char(244),char(2),char(188), -char(255),char(215),char(2),char(244),char(2),char(190),char(255),char(236),char(2),char(244), -char(2),char(192),char(255),char(236),char(2),char(244),char(2),char(194),char(255),char(236), -char(2),char(244),char(2),char(203),char(255),char(215),char(2),char(244),char(2),char(213), -char(255),char(236),char(2),char(244),char(2),char(230),char(255),char(215),char(2),char(244), -char(2),char(248),char(255),char(236),char(2),char(244),char(2),char(250),char(255),char(236), -char(2),char(244),char(2),char(252),char(255),char(236),char(2),char(244),char(2),char(254), -char(255),char(236),char(2),char(244),char(3),char(6),char(255),char(215),char(2),char(244), -char(3),char(8),char(255),char(215),char(2),char(244),char(3),char(14),char(255),char(236), -char(2),char(244),char(3),char(16),char(255),char(236),char(2),char(244),char(3),char(24), -char(255),char(236),char(2),char(245),char(0),char(15),char(255),char(174),char(2),char(245), -char(0),char(17),char(255),char(174),char(2),char(245),char(1),char(157),char(255),char(236), -char(2),char(245),char(1),char(164),char(255),char(215),char(2),char(245),char(1),char(166), -char(255),char(236),char(2),char(245),char(1),char(168),char(255),char(215),char(2),char(245), -char(1),char(170),char(255),char(215),char(2),char(245),char(1),char(174),char(255),char(215), -char(2),char(245),char(1),char(176),char(255),char(215),char(2),char(245),char(1),char(177), -char(255),char(236),char(2),char(245),char(1),char(181),char(255),char(215),char(2),char(245), -char(1),char(188),char(255),char(195),char(2),char(245),char(1),char(189),char(255),char(215), -char(2),char(245),char(1),char(191),char(255),char(215),char(2),char(245),char(1),char(193), -char(255),char(215),char(2),char(245),char(1),char(196),char(255),char(236),char(2),char(245), -char(1),char(199),char(255),char(236),char(2),char(245),char(1),char(206),char(255),char(236), -char(2),char(245),char(1),char(213),char(255),char(236),char(2),char(245),char(1),char(242), -char(255),char(236),char(2),char(245),char(2),char(8),char(255),char(174),char(2),char(245), -char(2),char(12),char(255),char(174),char(2),char(245),char(2),char(114),char(255),char(215), -char(2),char(245),char(2),char(115),char(255),char(236),char(2),char(245),char(2),char(122), -char(255),char(236),char(2),char(245),char(2),char(124),char(255),char(215),char(2),char(245), -char(2),char(128),char(255),char(236),char(2),char(245),char(2),char(130),char(255),char(236), -char(2),char(245),char(2),char(159),char(255),char(215),char(2),char(245),char(2),char(161), -char(255),char(236),char(2),char(245),char(2),char(169),char(255),char(236),char(2),char(245), -char(2),char(181),char(255),char(195),char(2),char(245),char(2),char(183),char(255),char(236), -char(2),char(245),char(2),char(185),char(255),char(236),char(2),char(245),char(2),char(187), -char(255),char(215),char(2),char(245),char(2),char(189),char(255),char(236),char(2),char(245), -char(2),char(191),char(255),char(215),char(2),char(245),char(2),char(193),char(255),char(215), -char(2),char(245),char(2),char(202),char(255),char(215),char(2),char(245),char(2),char(206), -char(255),char(215),char(2),char(245),char(2),char(207),char(255),char(236),char(2),char(245), -char(2),char(212),char(255),char(215),char(2),char(245),char(2),char(217),char(255),char(215), -char(2),char(245),char(2),char(219),char(255),char(215),char(2),char(245),char(2),char(221), -char(255),char(215),char(2),char(245),char(2),char(229),char(255),char(215),char(2),char(245), -char(2),char(231),char(255),char(236),char(2),char(245),char(2),char(245),char(255),char(236), -char(2),char(245),char(2),char(247),char(255),char(215),char(2),char(245),char(2),char(249), -char(255),char(215),char(2),char(245),char(2),char(251),char(255),char(215),char(2),char(245), -char(2),char(253),char(255),char(215),char(2),char(245),char(3),char(5),char(255),char(215), -char(2),char(245),char(3),char(7),char(255),char(215),char(2),char(245),char(3),char(13), -char(255),char(215),char(2),char(245),char(3),char(15),char(255),char(215),char(2),char(245), -char(3),char(17),char(255),char(215),char(2),char(245),char(3),char(18),char(255),char(236), -char(2),char(245),char(3),char(23),char(255),char(236),char(2),char(245),char(3),char(27), -char(255),char(215),char(2),char(245),char(3),char(28),char(255),char(236),char(2),char(246), -char(0),char(5),char(255),char(236),char(2),char(246),char(0),char(10),char(255),char(236), -char(2),char(246),char(1),char(208),char(255),char(215),char(2),char(246),char(1),char(220), -char(255),char(236),char(2),char(246),char(1),char(221),char(255),char(236),char(2),char(246), -char(1),char(223),char(255),char(215),char(2),char(246),char(1),char(225),char(255),char(236), -char(2),char(246),char(1),char(228),char(255),char(236),char(2),char(246),char(1),char(246), -char(255),char(236),char(2),char(246),char(2),char(7),char(255),char(236),char(2),char(246), -char(2),char(11),char(255),char(236),char(2),char(246),char(2),char(160),char(255),char(215), -char(2),char(246),char(2),char(170),char(255),char(236),char(2),char(246),char(2),char(182), -char(255),char(236),char(2),char(246),char(2),char(188),char(255),char(215),char(2),char(246), -char(2),char(190),char(255),char(236),char(2),char(246),char(2),char(192),char(255),char(236), -char(2),char(246),char(2),char(194),char(255),char(236),char(2),char(246),char(2),char(203), -char(255),char(215),char(2),char(246),char(2),char(213),char(255),char(236),char(2),char(246), -char(2),char(230),char(255),char(215),char(2),char(246),char(2),char(248),char(255),char(236), -char(2),char(246),char(2),char(250),char(255),char(236),char(2),char(246),char(2),char(252), -char(255),char(236),char(2),char(246),char(2),char(254),char(255),char(236),char(2),char(246), -char(3),char(6),char(255),char(215),char(2),char(246),char(3),char(8),char(255),char(215), -char(2),char(246),char(3),char(14),char(255),char(236),char(2),char(246),char(3),char(16), -char(255),char(236),char(2),char(246),char(3),char(24),char(255),char(236),char(2),char(247), -char(0),char(15),char(255),char(133),char(2),char(247),char(0),char(17),char(255),char(133), -char(2),char(247),char(1),char(159),char(255),char(236),char(2),char(247),char(1),char(164), -char(255),char(154),char(2),char(247),char(1),char(170),char(255),char(113),char(2),char(247), -char(1),char(174),char(255),char(154),char(2),char(247),char(1),char(181),char(255),char(154), -char(2),char(247),char(1),char(184),char(255),char(236),char(2),char(247),char(1),char(187), -char(255),char(236),char(2),char(247),char(1),char(190),char(255),char(195),char(2),char(247), -char(1),char(201),char(255),char(236),char(2),char(247),char(1),char(206),char(255),char(174), -char(2),char(247),char(1),char(207),char(255),char(215),char(2),char(247),char(1),char(213), -char(255),char(174),char(2),char(247),char(1),char(216),char(255),char(215),char(2),char(247), -char(1),char(219),char(255),char(215),char(2),char(247),char(1),char(222),char(255),char(215), -char(2),char(247),char(1),char(225),char(255),char(215),char(2),char(247),char(1),char(234), -char(255),char(215),char(2),char(247),char(1),char(235),char(0),char(102),char(2),char(247), -char(1),char(237),char(255),char(215),char(2),char(247),char(1),char(238),char(255),char(236), -char(2),char(247),char(1),char(242),char(255),char(174),char(2),char(247),char(1),char(244), -char(0),char(102),char(2),char(247),char(2),char(8),char(255),char(133),char(2),char(247), -char(2),char(12),char(255),char(133),char(2),char(247),char(2),char(106),char(255),char(215), -char(2),char(247),char(2),char(108),char(255),char(236),char(2),char(247),char(2),char(114), -char(255),char(113),char(2),char(247),char(2),char(115),char(255),char(174),char(2),char(247), -char(2),char(126),char(255),char(236),char(2),char(247),char(2),char(127),char(255),char(215), -char(2),char(247),char(2),char(132),char(255),char(236),char(2),char(247),char(2),char(133), -char(255),char(215),char(2),char(247),char(2),char(134),char(255),char(236),char(2),char(247), -char(2),char(135),char(255),char(215),char(2),char(247),char(2),char(136),char(255),char(236), -char(2),char(247),char(2),char(137),char(255),char(215),char(2),char(247),char(2),char(138), -char(255),char(236),char(2),char(247),char(2),char(140),char(255),char(236),char(2),char(247), -char(2),char(141),char(255),char(215),char(2),char(247),char(2),char(152),char(0),char(102), -char(2),char(247),char(2),char(168),char(0),char(102),char(2),char(247),char(2),char(177), -char(255),char(236),char(2),char(247),char(2),char(178),char(255),char(215),char(2),char(247), -char(2),char(179),char(255),char(236),char(2),char(247),char(2),char(180),char(255),char(215), -char(2),char(247),char(2),char(192),char(255),char(215),char(2),char(247),char(2),char(194), -char(255),char(215),char(2),char(247),char(2),char(197),char(255),char(215),char(2),char(247), -char(2),char(198),char(255),char(195),char(2),char(247),char(2),char(199),char(255),char(215), -char(2),char(247),char(2),char(200),char(255),char(195),char(2),char(247),char(2),char(206), -char(255),char(154),char(2),char(247),char(2),char(207),char(255),char(174),char(2),char(247), -char(2),char(213),char(255),char(215),char(2),char(247),char(2),char(217),char(255),char(113), -char(2),char(247),char(2),char(219),char(255),char(113),char(2),char(247),char(2),char(221), -char(255),char(113),char(2),char(247),char(2),char(224),char(255),char(215),char(2),char(247), -char(2),char(239),char(255),char(236),char(2),char(247),char(2),char(240),char(255),char(215), -char(2),char(247),char(2),char(241),char(255),char(236),char(2),char(247),char(2),char(242), -char(255),char(215),char(2),char(247),char(2),char(243),char(255),char(236),char(2),char(247), -char(2),char(244),char(255),char(215),char(2),char(247),char(2),char(254),char(255),char(215), -char(2),char(247),char(3),char(9),char(255),char(113),char(2),char(247),char(3),char(10), -char(255),char(215),char(2),char(247),char(3),char(11),char(255),char(113),char(2),char(247), -char(3),char(12),char(255),char(215),char(2),char(247),char(3),char(17),char(255),char(154), -char(2),char(247),char(3),char(18),char(255),char(174),char(2),char(247),char(3),char(21), -char(255),char(236),char(2),char(247),char(3),char(22),char(255),char(215),char(2),char(247), -char(3),char(26),char(255),char(215),char(2),char(247),char(3),char(27),char(255),char(154), -char(2),char(247),char(3),char(28),char(255),char(174),char(2),char(248),char(0),char(15), -char(255),char(174),char(2),char(248),char(0),char(17),char(255),char(174),char(2),char(248), -char(1),char(206),char(255),char(215),char(2),char(248),char(1),char(213),char(255),char(215), -char(2),char(248),char(1),char(242),char(255),char(215),char(2),char(248),char(2),char(8), -char(255),char(174),char(2),char(248),char(2),char(12),char(255),char(174),char(2),char(248), -char(2),char(115),char(255),char(215),char(2),char(248),char(2),char(207),char(255),char(215), -char(2),char(248),char(3),char(18),char(255),char(215),char(2),char(248),char(3),char(28), -char(255),char(215),char(2),char(249),char(0),char(15),char(255),char(133),char(2),char(249), -char(0),char(17),char(255),char(133),char(2),char(249),char(1),char(159),char(255),char(236), -char(2),char(249),char(1),char(164),char(255),char(154),char(2),char(249),char(1),char(170), -char(255),char(113),char(2),char(249),char(1),char(174),char(255),char(154),char(2),char(249), -char(1),char(181),char(255),char(154),char(2),char(249),char(1),char(184),char(255),char(236), -char(2),char(249),char(1),char(187),char(255),char(236),char(2),char(249),char(1),char(190), -char(255),char(195),char(2),char(249),char(1),char(201),char(255),char(236),char(2),char(249), -char(1),char(206),char(255),char(174),char(2),char(249),char(1),char(207),char(255),char(215), -char(2),char(249),char(1),char(213),char(255),char(174),char(2),char(249),char(1),char(216), -char(255),char(215),char(2),char(249),char(1),char(219),char(255),char(215),char(2),char(249), -char(1),char(222),char(255),char(215),char(2),char(249),char(1),char(225),char(255),char(215), -char(2),char(249),char(1),char(234),char(255),char(215),char(2),char(249),char(1),char(235), -char(0),char(102),char(2),char(249),char(1),char(237),char(255),char(215),char(2),char(249), -char(1),char(238),char(255),char(236),char(2),char(249),char(1),char(242),char(255),char(174), -char(2),char(249),char(1),char(244),char(0),char(102),char(2),char(249),char(2),char(8), -char(255),char(133),char(2),char(249),char(2),char(12),char(255),char(133),char(2),char(249), -char(2),char(106),char(255),char(215),char(2),char(249),char(2),char(108),char(255),char(236), -char(2),char(249),char(2),char(114),char(255),char(113),char(2),char(249),char(2),char(115), -char(255),char(174),char(2),char(249),char(2),char(126),char(255),char(236),char(2),char(249), -char(2),char(127),char(255),char(215),char(2),char(249),char(2),char(132),char(255),char(236), -char(2),char(249),char(2),char(133),char(255),char(215),char(2),char(249),char(2),char(134), -char(255),char(236),char(2),char(249),char(2),char(135),char(255),char(215),char(2),char(249), -char(2),char(136),char(255),char(236),char(2),char(249),char(2),char(137),char(255),char(215), -char(2),char(249),char(2),char(138),char(255),char(236),char(2),char(249),char(2),char(140), -char(255),char(236),char(2),char(249),char(2),char(141),char(255),char(215),char(2),char(249), -char(2),char(152),char(0),char(102),char(2),char(249),char(2),char(168),char(0),char(102), -char(2),char(249),char(2),char(177),char(255),char(236),char(2),char(249),char(2),char(178), -char(255),char(215),char(2),char(249),char(2),char(179),char(255),char(236),char(2),char(249), -char(2),char(180),char(255),char(215),char(2),char(249),char(2),char(192),char(255),char(215), -char(2),char(249),char(2),char(194),char(255),char(215),char(2),char(249),char(2),char(197), -char(255),char(215),char(2),char(249),char(2),char(198),char(255),char(195),char(2),char(249), -char(2),char(199),char(255),char(215),char(2),char(249),char(2),char(200),char(255),char(195), -char(2),char(249),char(2),char(206),char(255),char(154),char(2),char(249),char(2),char(207), -char(255),char(174),char(2),char(249),char(2),char(213),char(255),char(215),char(2),char(249), -char(2),char(217),char(255),char(113),char(2),char(249),char(2),char(219),char(255),char(113), -char(2),char(249),char(2),char(221),char(255),char(113),char(2),char(249),char(2),char(224), -char(255),char(215),char(2),char(249),char(2),char(239),char(255),char(236),char(2),char(249), -char(2),char(240),char(255),char(215),char(2),char(249),char(2),char(241),char(255),char(236), -char(2),char(249),char(2),char(242),char(255),char(215),char(2),char(249),char(2),char(243), -char(255),char(236),char(2),char(249),char(2),char(244),char(255),char(215),char(2),char(249), -char(2),char(254),char(255),char(215),char(2),char(249),char(3),char(9),char(255),char(113), -char(2),char(249),char(3),char(10),char(255),char(215),char(2),char(249),char(3),char(11), -char(255),char(113),char(2),char(249),char(3),char(12),char(255),char(215),char(2),char(249), -char(3),char(17),char(255),char(154),char(2),char(249),char(3),char(18),char(255),char(174), -char(2),char(249),char(3),char(21),char(255),char(236),char(2),char(249),char(3),char(22), -char(255),char(215),char(2),char(249),char(3),char(26),char(255),char(215),char(2),char(249), -char(3),char(27),char(255),char(154),char(2),char(249),char(3),char(28),char(255),char(174), -char(2),char(250),char(0),char(15),char(255),char(174),char(2),char(250),char(0),char(17), -char(255),char(174),char(2),char(250),char(1),char(206),char(255),char(215),char(2),char(250), -char(1),char(213),char(255),char(215),char(2),char(250),char(1),char(242),char(255),char(215), -char(2),char(250),char(2),char(8),char(255),char(174),char(2),char(250),char(2),char(12), -char(255),char(174),char(2),char(250),char(2),char(115),char(255),char(215),char(2),char(250), -char(2),char(207),char(255),char(215),char(2),char(250),char(3),char(18),char(255),char(215), -char(2),char(250),char(3),char(28),char(255),char(215),char(2),char(251),char(0),char(15), -char(255),char(133),char(2),char(251),char(0),char(17),char(255),char(133),char(2),char(251), -char(1),char(159),char(255),char(236),char(2),char(251),char(1),char(164),char(255),char(154), -char(2),char(251),char(1),char(170),char(255),char(113),char(2),char(251),char(1),char(174), -char(255),char(154),char(2),char(251),char(1),char(181),char(255),char(154),char(2),char(251), -char(1),char(184),char(255),char(236),char(2),char(251),char(1),char(187),char(255),char(236), -char(2),char(251),char(1),char(190),char(255),char(195),char(2),char(251),char(1),char(201), -char(255),char(236),char(2),char(251),char(1),char(206),char(255),char(174),char(2),char(251), -char(1),char(207),char(255),char(215),char(2),char(251),char(1),char(213),char(255),char(174), -char(2),char(251),char(1),char(216),char(255),char(215),char(2),char(251),char(1),char(219), -char(255),char(215),char(2),char(251),char(1),char(222),char(255),char(215),char(2),char(251), -char(1),char(225),char(255),char(215),char(2),char(251),char(1),char(234),char(255),char(215), -char(2),char(251),char(1),char(235),char(0),char(102),char(2),char(251),char(1),char(237), -char(255),char(215),char(2),char(251),char(1),char(238),char(255),char(236),char(2),char(251), -char(1),char(242),char(255),char(174),char(2),char(251),char(1),char(244),char(0),char(102), -char(2),char(251),char(2),char(8),char(255),char(133),char(2),char(251),char(2),char(12), -char(255),char(133),char(2),char(251),char(2),char(106),char(255),char(215),char(2),char(251), -char(2),char(108),char(255),char(236),char(2),char(251),char(2),char(114),char(255),char(113), -char(2),char(251),char(2),char(115),char(255),char(174),char(2),char(251),char(2),char(126), -char(255),char(236),char(2),char(251),char(2),char(127),char(255),char(215),char(2),char(251), -char(2),char(132),char(255),char(236),char(2),char(251),char(2),char(133),char(255),char(215), -char(2),char(251),char(2),char(134),char(255),char(236),char(2),char(251),char(2),char(135), -char(255),char(215),char(2),char(251),char(2),char(136),char(255),char(236),char(2),char(251), -char(2),char(137),char(255),char(215),char(2),char(251),char(2),char(138),char(255),char(236), -char(2),char(251),char(2),char(140),char(255),char(236),char(2),char(251),char(2),char(141), -char(255),char(215),char(2),char(251),char(2),char(152),char(0),char(102),char(2),char(251), -char(2),char(168),char(0),char(102),char(2),char(251),char(2),char(177),char(255),char(236), -char(2),char(251),char(2),char(178),char(255),char(215),char(2),char(251),char(2),char(179), -char(255),char(236),char(2),char(251),char(2),char(180),char(255),char(215),char(2),char(251), -char(2),char(192),char(255),char(215),char(2),char(251),char(2),char(194),char(255),char(215), -char(2),char(251),char(2),char(197),char(255),char(215),char(2),char(251),char(2),char(198), -char(255),char(195),char(2),char(251),char(2),char(199),char(255),char(215),char(2),char(251), -char(2),char(200),char(255),char(195),char(2),char(251),char(2),char(206),char(255),char(154), -char(2),char(251),char(2),char(207),char(255),char(174),char(2),char(251),char(2),char(213), -char(255),char(215),char(2),char(251),char(2),char(217),char(255),char(113),char(2),char(251), -char(2),char(219),char(255),char(113),char(2),char(251),char(2),char(221),char(255),char(113), -char(2),char(251),char(2),char(224),char(255),char(215),char(2),char(251),char(2),char(239), -char(255),char(236),char(2),char(251),char(2),char(240),char(255),char(215),char(2),char(251), -char(2),char(241),char(255),char(236),char(2),char(251),char(2),char(242),char(255),char(215), -char(2),char(251),char(2),char(243),char(255),char(236),char(2),char(251),char(2),char(244), -char(255),char(215),char(2),char(251),char(2),char(254),char(255),char(215),char(2),char(251), -char(3),char(9),char(255),char(113),char(2),char(251),char(3),char(10),char(255),char(215), -char(2),char(251),char(3),char(11),char(255),char(113),char(2),char(251),char(3),char(12), -char(255),char(215),char(2),char(251),char(3),char(17),char(255),char(154),char(2),char(251), -char(3),char(18),char(255),char(174),char(2),char(251),char(3),char(21),char(255),char(236), -char(2),char(251),char(3),char(22),char(255),char(215),char(2),char(251),char(3),char(26), -char(255),char(215),char(2),char(251),char(3),char(27),char(255),char(154),char(2),char(251), -char(3),char(28),char(255),char(174),char(2),char(252),char(0),char(15),char(255),char(174), -char(2),char(252),char(0),char(17),char(255),char(174),char(2),char(252),char(1),char(206), -char(255),char(215),char(2),char(252),char(1),char(213),char(255),char(215),char(2),char(252), -char(1),char(242),char(255),char(215),char(2),char(252),char(2),char(8),char(255),char(174), -char(2),char(252),char(2),char(12),char(255),char(174),char(2),char(252),char(2),char(115), -char(255),char(215),char(2),char(252),char(2),char(207),char(255),char(215),char(2),char(252), -char(3),char(18),char(255),char(215),char(2),char(252),char(3),char(28),char(255),char(215), -char(2),char(255),char(0),char(15),char(255),char(133),char(2),char(255),char(0),char(16), -char(255),char(174),char(2),char(255),char(0),char(17),char(255),char(133),char(2),char(255), -char(1),char(159),char(255),char(215),char(2),char(255),char(1),char(164),char(255),char(154), -char(2),char(255),char(1),char(170),char(255),char(113),char(2),char(255),char(1),char(174), -char(255),char(154),char(2),char(255),char(1),char(181),char(255),char(154),char(2),char(255), -char(1),char(184),char(255),char(215),char(2),char(255),char(1),char(187),char(255),char(215), -char(2),char(255),char(1),char(188),char(0),char(41),char(2),char(255),char(1),char(190), -char(255),char(174),char(2),char(255),char(1),char(204),char(255),char(154),char(2),char(255), -char(1),char(205),char(255),char(154),char(2),char(255),char(1),char(206),char(255),char(133), -char(2),char(255),char(1),char(207),char(255),char(113),char(2),char(255),char(1),char(208), -char(255),char(215),char(2),char(255),char(1),char(209),char(255),char(215),char(2),char(255), -char(1),char(210),char(255),char(154),char(2),char(255),char(1),char(211),char(255),char(154), -char(2),char(255),char(1),char(212),char(255),char(154),char(2),char(255),char(1),char(213), -char(255),char(133),char(2),char(255),char(1),char(214),char(255),char(154),char(2),char(255), -char(1),char(215),char(255),char(154),char(2),char(255),char(1),char(216),char(255),char(113), -char(2),char(255),char(1),char(217),char(255),char(154),char(2),char(255),char(1),char(218), -char(255),char(154),char(2),char(255),char(1),char(219),char(255),char(113),char(2),char(255), -char(1),char(220),char(255),char(174),char(2),char(255),char(1),char(221),char(255),char(174), -char(2),char(255),char(1),char(222),char(255),char(113),char(2),char(255),char(1),char(223), -char(255),char(215),char(2),char(255),char(1),char(224),char(255),char(154),char(2),char(255), -char(1),char(225),char(255),char(154),char(2),char(255),char(1),char(226),char(255),char(154), -char(2),char(255),char(1),char(227),char(255),char(154),char(2),char(255),char(1),char(228), -char(255),char(174),char(2),char(255),char(1),char(229),char(255),char(154),char(2),char(255), -char(1),char(230),char(255),char(154),char(2),char(255),char(1),char(231),char(255),char(215), -char(2),char(255),char(1),char(232),char(255),char(154),char(2),char(255),char(1),char(233), -char(255),char(195),char(2),char(255),char(1),char(234),char(255),char(113),char(2),char(255), -char(1),char(236),char(255),char(154),char(2),char(255),char(1),char(237),char(255),char(113), -char(2),char(255),char(1),char(238),char(255),char(133),char(2),char(255),char(1),char(242), -char(255),char(133),char(2),char(255),char(1),char(243),char(255),char(154),char(2),char(255), -char(1),char(245),char(255),char(154),char(2),char(255),char(1),char(246),char(255),char(174), -char(2),char(255),char(1),char(247),char(255),char(154),char(2),char(255),char(1),char(249), -char(255),char(154),char(2),char(255),char(2),char(2),char(255),char(174),char(2),char(255), -char(2),char(3),char(255),char(174),char(2),char(255),char(2),char(4),char(255),char(174), -char(2),char(255),char(2),char(8),char(255),char(133),char(2),char(255),char(2),char(12), -char(255),char(133),char(2),char(255),char(2),char(106),char(255),char(113),char(2),char(255), -char(2),char(107),char(255),char(154),char(2),char(255),char(2),char(108),char(255),char(215), -char(2),char(255),char(2),char(109),char(255),char(215),char(2),char(255),char(2),char(113), -char(255),char(154),char(2),char(255),char(2),char(114),char(255),char(113),char(2),char(255), -char(2),char(115),char(255),char(133),char(2),char(255),char(2),char(117),char(255),char(154), -char(2),char(255),char(2),char(119),char(255),char(154),char(2),char(255),char(2),char(121), -char(255),char(154),char(2),char(255),char(2),char(125),char(255),char(154),char(2),char(255), -char(2),char(126),char(255),char(215),char(2),char(255),char(2),char(127),char(255),char(113), -char(2),char(255),char(2),char(129),char(255),char(215),char(2),char(255),char(2),char(131), -char(255),char(215),char(2),char(255),char(2),char(132),char(255),char(215),char(2),char(255), -char(2),char(133),char(255),char(113),char(2),char(255),char(2),char(134),char(255),char(215), -char(2),char(255),char(2),char(135),char(255),char(113),char(2),char(255),char(2),char(136), -char(255),char(215),char(2),char(255),char(2),char(137),char(255),char(113),char(2),char(255), -char(2),char(138),char(255),char(215),char(2),char(255),char(2),char(139),char(255),char(215), -char(2),char(255),char(2),char(140),char(255),char(215),char(2),char(255),char(2),char(141), -char(255),char(113),char(2),char(255),char(2),char(150),char(255),char(154),char(2),char(255), -char(2),char(154),char(255),char(154),char(2),char(255),char(2),char(158),char(255),char(154), -char(2),char(255),char(2),char(160),char(255),char(215),char(2),char(255),char(2),char(162), -char(255),char(215),char(2),char(255),char(2),char(164),char(255),char(154),char(2),char(255), -char(2),char(166),char(255),char(154),char(2),char(255),char(2),char(170),char(255),char(174), -char(2),char(255),char(2),char(172),char(255),char(154),char(2),char(255),char(2),char(174), -char(255),char(154),char(2),char(255),char(2),char(176),char(255),char(154),char(2),char(255), -char(2),char(177),char(255),char(215),char(2),char(255),char(2),char(178),char(255),char(113), -char(2),char(255),char(2),char(179),char(255),char(215),char(2),char(255),char(2),char(180), -char(255),char(113),char(2),char(255),char(2),char(181),char(0),char(41),char(2),char(255), -char(2),char(182),char(255),char(174),char(2),char(255),char(2),char(184),char(255),char(174), -char(2),char(255),char(2),char(186),char(255),char(174),char(2),char(255),char(2),char(188), -char(255),char(215),char(2),char(255),char(2),char(190),char(255),char(174),char(2),char(255), -char(2),char(192),char(255),char(154),char(2),char(255),char(2),char(194),char(255),char(154), -char(2),char(255),char(2),char(196),char(255),char(154),char(2),char(255),char(2),char(197), -char(255),char(154),char(2),char(255),char(2),char(198),char(255),char(113),char(2),char(255), -char(2),char(199),char(255),char(154),char(2),char(255),char(2),char(200),char(255),char(113), -char(2),char(255),char(2),char(203),char(255),char(215),char(2),char(255),char(2),char(205), -char(255),char(154),char(2),char(255),char(2),char(206),char(255),char(154),char(2),char(255), -char(2),char(207),char(255),char(133),char(2),char(255),char(2),char(209),char(255),char(154), -char(2),char(255),char(2),char(211),char(255),char(154),char(2),char(255),char(2),char(213), -char(255),char(154),char(2),char(255),char(2),char(215),char(255),char(154),char(2),char(255), -char(2),char(217),char(255),char(113),char(2),char(255),char(2),char(219),char(255),char(113), -char(2),char(255),char(2),char(221),char(255),char(113),char(2),char(255),char(2),char(224), -char(255),char(113),char(2),char(255),char(2),char(230),char(255),char(215),char(2),char(255), -char(2),char(232),char(255),char(215),char(2),char(255),char(2),char(234),char(255),char(195), -char(2),char(255),char(2),char(236),char(255),char(154),char(2),char(255),char(2),char(238), -char(255),char(154),char(2),char(255),char(2),char(239),char(255),char(215),char(2),char(255), -char(2),char(240),char(255),char(113),char(2),char(255),char(2),char(241),char(255),char(215), -char(2),char(255),char(2),char(242),char(255),char(113),char(2),char(255),char(2),char(243), -char(255),char(215),char(2),char(255),char(2),char(244),char(255),char(113),char(2),char(255), -char(2),char(246),char(255),char(215),char(2),char(255),char(2),char(248),char(255),char(174), -char(2),char(255),char(2),char(250),char(255),char(174),char(2),char(255),char(2),char(252), -char(255),char(174),char(2),char(255),char(2),char(254),char(255),char(154),char(2),char(255), -char(3),char(0),char(255),char(154),char(2),char(255),char(3),char(2),char(255),char(154), -char(2),char(255),char(3),char(6),char(255),char(215),char(2),char(255),char(3),char(8), -char(255),char(215),char(2),char(255),char(3),char(9),char(255),char(113),char(2),char(255), -char(3),char(10),char(255),char(113),char(2),char(255),char(3),char(11),char(255),char(113), -char(2),char(255),char(3),char(12),char(255),char(113),char(2),char(255),char(3),char(14), -char(255),char(154),char(2),char(255),char(3),char(16),char(255),char(154),char(2),char(255), -char(3),char(17),char(255),char(154),char(2),char(255),char(3),char(18),char(255),char(133), -char(2),char(255),char(3),char(20),char(255),char(154),char(2),char(255),char(3),char(21), -char(255),char(215),char(2),char(255),char(3),char(22),char(255),char(113),char(2),char(255), -char(3),char(24),char(255),char(174),char(2),char(255),char(3),char(26),char(255),char(113), -char(2),char(255),char(3),char(27),char(255),char(154),char(2),char(255),char(3),char(28), -char(255),char(133),char(3),char(0),char(0),char(15),char(255),char(154),char(3),char(0), -char(0),char(16),char(255),char(215),char(3),char(0),char(0),char(17),char(255),char(154), -char(3),char(0),char(1),char(206),char(255),char(195),char(3),char(0),char(1),char(207), -char(255),char(236),char(3),char(0),char(1),char(213),char(255),char(195),char(3),char(0), -char(1),char(216),char(255),char(236),char(3),char(0),char(1),char(219),char(255),char(236), -char(3),char(0),char(1),char(222),char(255),char(236),char(3),char(0),char(1),char(234), -char(255),char(236),char(3),char(0),char(1),char(237),char(255),char(236),char(3),char(0), -char(1),char(242),char(255),char(195),char(3),char(0),char(2),char(2),char(255),char(215), -char(3),char(0),char(2),char(3),char(255),char(215),char(3),char(0),char(2),char(4), -char(255),char(215),char(3),char(0),char(2),char(8),char(255),char(154),char(3),char(0), -char(2),char(12),char(255),char(154),char(3),char(0),char(2),char(106),char(255),char(236), -char(3),char(0),char(2),char(115),char(255),char(195),char(3),char(0),char(2),char(127), -char(255),char(236),char(3),char(0),char(2),char(133),char(255),char(236),char(3),char(0), -char(2),char(135),char(255),char(236),char(3),char(0),char(2),char(137),char(255),char(236), -char(3),char(0),char(2),char(141),char(255),char(236),char(3),char(0),char(2),char(178), -char(255),char(236),char(3),char(0),char(2),char(180),char(255),char(236),char(3),char(0), -char(2),char(207),char(255),char(195),char(3),char(0),char(2),char(224),char(255),char(236), -char(3),char(0),char(2),char(240),char(255),char(236),char(3),char(0),char(2),char(242), -char(255),char(236),char(3),char(0),char(2),char(244),char(255),char(236),char(3),char(0), -char(3),char(10),char(255),char(236),char(3),char(0),char(3),char(12),char(255),char(236), -char(3),char(0),char(3),char(18),char(255),char(195),char(3),char(0),char(3),char(22), -char(255),char(236),char(3),char(0),char(3),char(26),char(255),char(236),char(3),char(0), -char(3),char(28),char(255),char(195),char(3),char(3),char(0),char(15),char(255),char(154), -char(3),char(3),char(0),char(16),char(255),char(215),char(3),char(3),char(0),char(17), -char(255),char(154),char(3),char(3),char(1),char(157),char(0),char(41),char(3),char(3), -char(1),char(159),char(255),char(215),char(3),char(3),char(1),char(164),char(255),char(174), -char(3),char(3),char(1),char(166),char(0),char(41),char(3),char(3),char(1),char(170), -char(255),char(133),char(3),char(3),char(1),char(174),char(255),char(174),char(3),char(3), -char(1),char(181),char(255),char(174),char(3),char(3),char(1),char(184),char(255),char(215), -char(3),char(3),char(1),char(187),char(255),char(215),char(3),char(3),char(1),char(188), -char(0),char(41),char(3),char(3),char(1),char(190),char(255),char(195),char(3),char(3), -char(1),char(196),char(0),char(41),char(3),char(3),char(1),char(204),char(255),char(195), -char(3),char(3),char(1),char(205),char(255),char(195),char(3),char(3),char(1),char(206), -char(255),char(154),char(3),char(3),char(1),char(207),char(255),char(174),char(3),char(3), -char(1),char(208),char(255),char(215),char(3),char(3),char(1),char(209),char(255),char(215), -char(3),char(3),char(1),char(210),char(255),char(195),char(3),char(3),char(1),char(211), -char(255),char(195),char(3),char(3),char(1),char(212),char(255),char(195),char(3),char(3), -char(1),char(213),char(255),char(154),char(3),char(3),char(1),char(214),char(255),char(195), -char(3),char(3),char(1),char(215),char(255),char(195),char(3),char(3),char(1),char(216), -char(255),char(174),char(3),char(3),char(1),char(217),char(255),char(195),char(3),char(3), -char(1),char(218),char(255),char(195),char(3),char(3),char(1),char(219),char(255),char(174), -char(3),char(3),char(1),char(222),char(255),char(174),char(3),char(3),char(1),char(223), -char(255),char(215),char(3),char(3),char(1),char(224),char(255),char(195),char(3),char(3), -char(1),char(225),char(255),char(154),char(3),char(3),char(1),char(226),char(255),char(195), -char(3),char(3),char(1),char(227),char(255),char(195),char(3),char(3),char(1),char(229), -char(255),char(195),char(3),char(3),char(1),char(230),char(255),char(195),char(3),char(3), -char(1),char(231),char(255),char(215),char(3),char(3),char(1),char(232),char(255),char(195), -char(3),char(3),char(1),char(234),char(255),char(174),char(3),char(3),char(1),char(235), -char(0),char(41),char(3),char(3),char(1),char(236),char(255),char(195),char(3),char(3), -char(1),char(237),char(255),char(174),char(3),char(3),char(1),char(238),char(255),char(195), -char(3),char(3),char(1),char(242),char(255),char(154),char(3),char(3),char(1),char(243), -char(255),char(195),char(3),char(3),char(1),char(244),char(0),char(41),char(3),char(3), -char(1),char(245),char(255),char(195),char(3),char(3),char(1),char(247),char(255),char(195), -char(3),char(3),char(1),char(249),char(255),char(195),char(3),char(3),char(2),char(2), -char(255),char(215),char(3),char(3),char(2),char(3),char(255),char(215),char(3),char(3), -char(2),char(4),char(255),char(215),char(3),char(3),char(2),char(8),char(255),char(154), -char(3),char(3),char(2),char(12),char(255),char(154),char(3),char(3),char(2),char(106), -char(255),char(174),char(3),char(3),char(2),char(107),char(255),char(195),char(3),char(3), -char(2),char(108),char(255),char(215),char(3),char(3),char(2),char(113),char(255),char(195), -char(3),char(3),char(2),char(114),char(255),char(133),char(3),char(3),char(2),char(115), -char(255),char(154),char(3),char(3),char(2),char(117),char(255),char(195),char(3),char(3), -char(2),char(119),char(255),char(215),char(3),char(3),char(2),char(121),char(255),char(195), -char(3),char(3),char(2),char(125),char(255),char(195),char(3),char(3),char(2),char(126), -char(255),char(215),char(3),char(3),char(2),char(127),char(255),char(174),char(3),char(3), -char(2),char(132),char(255),char(215),char(3),char(3),char(2),char(133),char(255),char(174), -char(3),char(3),char(2),char(134),char(255),char(215),char(3),char(3),char(2),char(135), -char(255),char(174),char(3),char(3),char(2),char(136),char(255),char(215),char(3),char(3), -char(2),char(137),char(255),char(174),char(3),char(3),char(2),char(138),char(255),char(215), -char(3),char(3),char(2),char(140),char(255),char(215),char(3),char(3),char(2),char(141), -char(255),char(174),char(3),char(3),char(2),char(150),char(255),char(195),char(3),char(3), -char(2),char(152),char(0),char(41),char(3),char(3),char(2),char(154),char(255),char(195), -char(3),char(3),char(2),char(158),char(255),char(195),char(3),char(3),char(2),char(160), -char(255),char(215),char(3),char(3),char(2),char(162),char(255),char(215),char(3),char(3), -char(2),char(164),char(255),char(195),char(3),char(3),char(2),char(166),char(255),char(195), -char(3),char(3),char(2),char(168),char(0),char(41),char(3),char(3),char(2),char(169), -char(0),char(41),char(3),char(3),char(2),char(172),char(255),char(195),char(3),char(3), -char(2),char(174),char(255),char(195),char(3),char(3),char(2),char(176),char(255),char(195), -char(3),char(3),char(2),char(177),char(255),char(215),char(3),char(3),char(2),char(178), -char(255),char(174),char(3),char(3),char(2),char(179),char(255),char(215),char(3),char(3), -char(2),char(180),char(255),char(174),char(3),char(3),char(2),char(181),char(0),char(41), -char(3),char(3),char(2),char(188),char(255),char(215),char(3),char(3),char(2),char(189), -char(0),char(41),char(3),char(3),char(2),char(192),char(255),char(154),char(3),char(3), -char(2),char(194),char(255),char(154),char(3),char(3),char(2),char(196),char(255),char(195), -char(3),char(3),char(2),char(197),char(255),char(215),char(3),char(3),char(2),char(198), -char(255),char(195),char(3),char(3),char(2),char(199),char(255),char(215),char(3),char(3), -char(2),char(200),char(255),char(195),char(3),char(3),char(2),char(203),char(255),char(215), -char(3),char(3),char(2),char(205),char(255),char(195),char(3),char(3),char(2),char(206), -char(255),char(174),char(3),char(3),char(2),char(207),char(255),char(154),char(3),char(3), -char(2),char(209),char(255),char(195),char(3),char(3),char(2),char(211),char(255),char(195), -char(3),char(3),char(2),char(213),char(255),char(154),char(3),char(3),char(2),char(215), -char(255),char(195),char(3),char(3),char(2),char(217),char(255),char(133),char(3),char(3), -char(2),char(219),char(255),char(133),char(3),char(3),char(2),char(221),char(255),char(133), -char(3),char(3),char(2),char(224),char(255),char(174),char(3),char(3),char(2),char(230), -char(255),char(215),char(3),char(3),char(2),char(232),char(255),char(215),char(3),char(3), -char(2),char(236),char(255),char(195),char(3),char(3),char(2),char(238),char(255),char(195), -char(3),char(3),char(2),char(239),char(255),char(215),char(3),char(3),char(2),char(240), -char(255),char(174),char(3),char(3),char(2),char(241),char(255),char(215),char(3),char(3), -char(2),char(242),char(255),char(174),char(3),char(3),char(2),char(243),char(255),char(215), -char(3),char(3),char(2),char(244),char(255),char(174),char(3),char(3),char(2),char(246), -char(255),char(215),char(3),char(3),char(2),char(254),char(255),char(154),char(3),char(3), -char(3),char(0),char(255),char(195),char(3),char(3),char(3),char(2),char(255),char(195), -char(3),char(3),char(3),char(6),char(255),char(215),char(3),char(3),char(3),char(8), -char(255),char(215),char(3),char(3),char(3),char(9),char(255),char(154),char(3),char(3), -char(3),char(10),char(255),char(174),char(3),char(3),char(3),char(11),char(255),char(154), -char(3),char(3),char(3),char(12),char(255),char(174),char(3),char(3),char(3),char(14), -char(255),char(215),char(3),char(3),char(3),char(16),char(255),char(215),char(3),char(3), -char(3),char(17),char(255),char(174),char(3),char(3),char(3),char(18),char(255),char(154), -char(3),char(3),char(3),char(20),char(255),char(195),char(3),char(3),char(3),char(21), -char(255),char(215),char(3),char(3),char(3),char(22),char(255),char(174),char(3),char(3), -char(3),char(23),char(0),char(41),char(3),char(3),char(3),char(26),char(255),char(174), -char(3),char(3),char(3),char(27),char(255),char(174),char(3),char(3),char(3),char(28), -char(255),char(154),char(3),char(4),char(0),char(15),char(255),char(195),char(3),char(4), -char(0),char(17),char(255),char(195),char(3),char(4),char(1),char(206),char(255),char(195), -char(3),char(4),char(1),char(207),char(255),char(215),char(3),char(4),char(1),char(213), -char(255),char(195),char(3),char(4),char(1),char(216),char(255),char(215),char(3),char(4), -char(1),char(219),char(255),char(215),char(3),char(4),char(1),char(222),char(255),char(215), -char(3),char(4),char(1),char(234),char(255),char(215),char(3),char(4),char(1),char(237), -char(255),char(215),char(3),char(4),char(1),char(242),char(255),char(195),char(3),char(4), -char(2),char(8),char(255),char(195),char(3),char(4),char(2),char(12),char(255),char(195), -char(3),char(4),char(2),char(106),char(255),char(215),char(3),char(4),char(2),char(115), -char(255),char(195),char(3),char(4),char(2),char(127),char(255),char(215),char(3),char(4), -char(2),char(133),char(255),char(215),char(3),char(4),char(2),char(135),char(255),char(215), -char(3),char(4),char(2),char(137),char(255),char(215),char(3),char(4),char(2),char(141), -char(255),char(215),char(3),char(4),char(2),char(178),char(255),char(215),char(3),char(4), -char(2),char(180),char(255),char(215),char(3),char(4),char(2),char(207),char(255),char(195), -char(3),char(4),char(2),char(224),char(255),char(215),char(3),char(4),char(2),char(240), -char(255),char(215),char(3),char(4),char(2),char(242),char(255),char(215),char(3),char(4), -char(2),char(244),char(255),char(215),char(3),char(4),char(3),char(10),char(255),char(215), -char(3),char(4),char(3),char(12),char(255),char(215),char(3),char(4),char(3),char(18), -char(255),char(195),char(3),char(4),char(3),char(22),char(255),char(215),char(3),char(4), -char(3),char(26),char(255),char(215),char(3),char(4),char(3),char(28),char(255),char(195), -char(3),char(5),char(1),char(159),char(255),char(215),char(3),char(5),char(1),char(163), -char(0),char(225),char(3),char(5),char(1),char(184),char(255),char(215),char(3),char(5), -char(1),char(187),char(255),char(215),char(3),char(5),char(1),char(190),char(255),char(195), -char(3),char(5),char(1),char(220),char(255),char(215),char(3),char(5),char(1),char(225), -char(255),char(174),char(3),char(5),char(1),char(228),char(255),char(215),char(3),char(5), -char(2),char(108),char(255),char(215),char(3),char(5),char(2),char(123),char(0),char(61), -char(3),char(5),char(2),char(125),char(255),char(236),char(3),char(5),char(2),char(126), -char(255),char(215),char(3),char(5),char(2),char(132),char(255),char(215),char(3),char(5), -char(2),char(134),char(255),char(215),char(3),char(5),char(2),char(136),char(255),char(215), -char(3),char(5),char(2),char(138),char(255),char(215),char(3),char(5),char(2),char(140), -char(255),char(215),char(3),char(5),char(2),char(170),char(255),char(215),char(3),char(5), -char(2),char(177),char(255),char(215),char(3),char(5),char(2),char(179),char(255),char(215), -char(3),char(5),char(2),char(182),char(255),char(215),char(3),char(5),char(2),char(190), -char(255),char(215),char(3),char(5),char(2),char(192),char(255),char(174),char(3),char(5), -char(2),char(194),char(255),char(174),char(3),char(5),char(2),char(197),char(255),char(195), -char(3),char(5),char(2),char(198),char(255),char(215),char(3),char(5),char(2),char(199), -char(255),char(195),char(3),char(5),char(2),char(200),char(255),char(215),char(3),char(5), -char(2),char(213),char(255),char(174),char(3),char(5),char(2),char(239),char(255),char(215), -char(3),char(5),char(2),char(241),char(255),char(215),char(3),char(5),char(2),char(243), -char(255),char(215),char(3),char(5),char(2),char(254),char(255),char(174),char(3),char(5), -char(3),char(14),char(255),char(215),char(3),char(5),char(3),char(16),char(255),char(215), -char(3),char(5),char(3),char(21),char(255),char(215),char(3),char(5),char(3),char(24), -char(255),char(215),char(3),char(6),char(1),char(207),char(255),char(236),char(3),char(6), -char(1),char(216),char(255),char(236),char(3),char(6),char(1),char(219),char(255),char(236), -char(3),char(6),char(1),char(222),char(255),char(236),char(3),char(6),char(1),char(225), -char(255),char(236),char(3),char(6),char(1),char(234),char(255),char(236),char(3),char(6), -char(1),char(237),char(255),char(236),char(3),char(6),char(2),char(106),char(255),char(236), -char(3),char(6),char(2),char(127),char(255),char(236),char(3),char(6),char(2),char(133), -char(255),char(236),char(3),char(6),char(2),char(135),char(255),char(236),char(3),char(6), -char(2),char(137),char(255),char(236),char(3),char(6),char(2),char(141),char(255),char(236), -char(3),char(6),char(2),char(178),char(255),char(236),char(3),char(6),char(2),char(180), -char(255),char(236),char(3),char(6),char(2),char(192),char(255),char(236),char(3),char(6), -char(2),char(194),char(255),char(236),char(3),char(6),char(2),char(213),char(255),char(236), -char(3),char(6),char(2),char(224),char(255),char(236),char(3),char(6),char(2),char(240), -char(255),char(236),char(3),char(6),char(2),char(242),char(255),char(236),char(3),char(6), -char(2),char(244),char(255),char(236),char(3),char(6),char(2),char(254),char(255),char(236), -char(3),char(6),char(3),char(10),char(255),char(236),char(3),char(6),char(3),char(12), -char(255),char(236),char(3),char(6),char(3),char(14),char(255),char(215),char(3),char(6), -char(3),char(16),char(255),char(215),char(3),char(6),char(3),char(22),char(255),char(236), -char(3),char(6),char(3),char(26),char(255),char(236),char(3),char(7),char(1),char(159), -char(255),char(215),char(3),char(7),char(1),char(184),char(255),char(215),char(3),char(7), -char(1),char(187),char(255),char(215),char(3),char(7),char(1),char(190),char(255),char(215), -char(3),char(7),char(1),char(193),char(255),char(215),char(3),char(7),char(1),char(225), -char(255),char(215),char(3),char(7),char(2),char(108),char(255),char(215),char(3),char(7), -char(2),char(124),char(255),char(215),char(3),char(7),char(2),char(126),char(255),char(215), -char(3),char(7),char(2),char(132),char(255),char(215),char(3),char(7),char(2),char(134), -char(255),char(215),char(3),char(7),char(2),char(136),char(255),char(215),char(3),char(7), -char(2),char(138),char(255),char(215),char(3),char(7),char(2),char(140),char(255),char(215), -char(3),char(7),char(2),char(177),char(255),char(215),char(3),char(7),char(2),char(179), -char(255),char(215),char(3),char(7),char(2),char(191),char(255),char(215),char(3),char(7), -char(2),char(192),char(255),char(215),char(3),char(7),char(2),char(193),char(255),char(215), -char(3),char(7),char(2),char(194),char(255),char(215),char(3),char(7),char(2),char(197), -char(255),char(154),char(3),char(7),char(2),char(199),char(255),char(154),char(3),char(7), -char(2),char(212),char(255),char(215),char(3),char(7),char(2),char(213),char(255),char(215), -char(3),char(7),char(2),char(239),char(255),char(215),char(3),char(7),char(2),char(241), -char(255),char(215),char(3),char(7),char(2),char(243),char(255),char(215),char(3),char(7), -char(2),char(253),char(255),char(215),char(3),char(7),char(2),char(254),char(255),char(215), -char(3),char(7),char(3),char(9),char(255),char(215),char(3),char(7),char(3),char(11), -char(255),char(215),char(3),char(7),char(3),char(14),char(255),char(215),char(3),char(7), -char(3),char(16),char(255),char(215),char(3),char(7),char(3),char(21),char(255),char(215), -char(3),char(7),char(3),char(25),char(255),char(236),char(3),char(8),char(1),char(207), -char(255),char(236),char(3),char(8),char(1),char(216),char(255),char(236),char(3),char(8), -char(1),char(219),char(255),char(236),char(3),char(8),char(1),char(222),char(255),char(236), -char(3),char(8),char(1),char(225),char(255),char(236),char(3),char(8),char(1),char(234), -char(255),char(236),char(3),char(8),char(1),char(237),char(255),char(236),char(3),char(8), -char(2),char(106),char(255),char(236),char(3),char(8),char(2),char(127),char(255),char(236), -char(3),char(8),char(2),char(133),char(255),char(236),char(3),char(8),char(2),char(135), -char(255),char(236),char(3),char(8),char(2),char(137),char(255),char(236),char(3),char(8), -char(2),char(141),char(255),char(236),char(3),char(8),char(2),char(178),char(255),char(236), -char(3),char(8),char(2),char(180),char(255),char(236),char(3),char(8),char(2),char(192), -char(255),char(236),char(3),char(8),char(2),char(194),char(255),char(236),char(3),char(8), -char(2),char(213),char(255),char(236),char(3),char(8),char(2),char(224),char(255),char(236), -char(3),char(8),char(2),char(240),char(255),char(236),char(3),char(8),char(2),char(242), -char(255),char(236),char(3),char(8),char(2),char(244),char(255),char(236),char(3),char(8), -char(2),char(254),char(255),char(236),char(3),char(8),char(3),char(10),char(255),char(236), -char(3),char(8),char(3),char(12),char(255),char(236),char(3),char(8),char(3),char(14), -char(255),char(215),char(3),char(8),char(3),char(16),char(255),char(215),char(3),char(8), -char(3),char(22),char(255),char(236),char(3),char(8),char(3),char(26),char(255),char(236), -char(3),char(11),char(0),char(5),char(255),char(154),char(3),char(11),char(0),char(10), -char(255),char(154),char(3),char(11),char(1),char(157),char(255),char(174),char(3),char(11), -char(1),char(166),char(255),char(174),char(3),char(11),char(1),char(168),char(255),char(195), -char(3),char(11),char(1),char(170),char(255),char(195),char(3),char(11),char(1),char(176), -char(255),char(195),char(3),char(11),char(1),char(188),char(255),char(113),char(3),char(11), -char(1),char(189),char(255),char(195),char(3),char(11),char(1),char(191),char(255),char(195), -char(3),char(11),char(1),char(193),char(255),char(195),char(3),char(11),char(1),char(196), -char(255),char(174),char(3),char(11),char(1),char(208),char(255),char(215),char(3),char(11), -char(1),char(220),char(255),char(195),char(3),char(11),char(1),char(223),char(255),char(215), -char(3),char(11),char(1),char(225),char(255),char(215),char(3),char(11),char(1),char(228), -char(255),char(195),char(3),char(11),char(2),char(7),char(255),char(154),char(3),char(11), -char(2),char(11),char(255),char(154),char(3),char(11),char(2),char(114),char(255),char(195), -char(3),char(11),char(2),char(118),char(255),char(215),char(3),char(11),char(2),char(124), -char(255),char(195),char(3),char(11),char(2),char(128),char(255),char(195),char(3),char(11), -char(2),char(130),char(255),char(195),char(3),char(11),char(2),char(159),char(255),char(195), -char(3),char(11),char(2),char(160),char(255),char(215),char(3),char(11),char(2),char(169), -char(255),char(174),char(3),char(11),char(2),char(170),char(255),char(195),char(3),char(11), -char(2),char(181),char(255),char(113),char(3),char(11),char(2),char(182),char(255),char(195), -char(3),char(11),char(2),char(183),char(255),char(195),char(3),char(11),char(2),char(185), -char(255),char(195),char(3),char(11),char(2),char(187),char(255),char(195),char(3),char(11), -char(2),char(188),char(255),char(215),char(3),char(11),char(2),char(189),char(255),char(174), -char(3),char(11),char(2),char(190),char(255),char(195),char(3),char(11),char(2),char(191), -char(255),char(195),char(3),char(11),char(2),char(192),char(255),char(215),char(3),char(11), -char(2),char(193),char(255),char(195),char(3),char(11),char(2),char(194),char(255),char(215), -char(3),char(11),char(2),char(202),char(255),char(195),char(3),char(11),char(2),char(203), -char(255),char(215),char(3),char(11),char(2),char(212),char(255),char(195),char(3),char(11), -char(2),char(213),char(255),char(215),char(3),char(11),char(2),char(217),char(255),char(195), -char(3),char(11),char(2),char(219),char(255),char(195),char(3),char(11),char(2),char(221), -char(255),char(195),char(3),char(11),char(2),char(229),char(255),char(195),char(3),char(11), -char(2),char(230),char(255),char(215),char(3),char(11),char(2),char(247),char(255),char(195), -char(3),char(11),char(2),char(249),char(255),char(195),char(3),char(11),char(2),char(251), -char(255),char(195),char(3),char(11),char(2),char(253),char(255),char(195),char(3),char(11), -char(2),char(254),char(255),char(215),char(3),char(11),char(3),char(5),char(255),char(195), -char(3),char(11),char(3),char(6),char(255),char(215),char(3),char(11),char(3),char(7), -char(255),char(195),char(3),char(11),char(3),char(8),char(255),char(215),char(3),char(11), -char(3),char(13),char(255),char(215),char(3),char(11),char(3),char(14),char(255),char(215), -char(3),char(11),char(3),char(15),char(255),char(215),char(3),char(11),char(3),char(16), -char(255),char(215),char(3),char(11),char(3),char(23),char(255),char(174),char(3),char(11), -char(3),char(24),char(255),char(195),char(3),char(12),char(0),char(5),char(255),char(154), -char(3),char(12),char(0),char(10),char(255),char(154),char(3),char(12),char(1),char(208), -char(255),char(215),char(3),char(12),char(1),char(220),char(255),char(195),char(3),char(12), -char(1),char(221),char(255),char(215),char(3),char(12),char(1),char(223),char(255),char(215), -char(3),char(12),char(1),char(225),char(255),char(215),char(3),char(12),char(1),char(228), -char(255),char(195),char(3),char(12),char(1),char(246),char(255),char(215),char(3),char(12), -char(2),char(7),char(255),char(154),char(3),char(12),char(2),char(11),char(255),char(154), -char(3),char(12),char(2),char(160),char(255),char(215),char(3),char(12),char(2),char(170), -char(255),char(195),char(3),char(12),char(2),char(182),char(255),char(195),char(3),char(12), -char(2),char(188),char(255),char(215),char(3),char(12),char(2),char(190),char(255),char(195), -char(3),char(12),char(2),char(192),char(255),char(215),char(3),char(12),char(2),char(194), -char(255),char(215),char(3),char(12),char(2),char(203),char(255),char(215),char(3),char(12), -char(2),char(213),char(255),char(215),char(3),char(12),char(2),char(230),char(255),char(215), -char(3),char(12),char(2),char(248),char(255),char(215),char(3),char(12),char(2),char(250), -char(255),char(215),char(3),char(12),char(2),char(252),char(255),char(215),char(3),char(12), -char(2),char(254),char(255),char(215),char(3),char(12),char(3),char(6),char(255),char(215), -char(3),char(12),char(3),char(8),char(255),char(215),char(3),char(12),char(3),char(14), -char(255),char(154),char(3),char(12),char(3),char(16),char(255),char(154),char(3),char(12), -char(3),char(24),char(255),char(195),char(3),char(13),char(0),char(5),char(255),char(154), -char(3),char(13),char(0),char(10),char(255),char(154),char(3),char(13),char(1),char(157), -char(255),char(174),char(3),char(13),char(1),char(166),char(255),char(174),char(3),char(13), -char(1),char(168),char(255),char(195),char(3),char(13),char(1),char(170),char(255),char(195), -char(3),char(13),char(1),char(176),char(255),char(195),char(3),char(13),char(1),char(188), -char(255),char(113),char(3),char(13),char(1),char(189),char(255),char(195),char(3),char(13), -char(1),char(191),char(255),char(195),char(3),char(13),char(1),char(193),char(255),char(195), -char(3),char(13),char(1),char(196),char(255),char(174),char(3),char(13),char(1),char(208), -char(255),char(215),char(3),char(13),char(1),char(220),char(255),char(195),char(3),char(13), -char(1),char(223),char(255),char(215),char(3),char(13),char(1),char(225),char(255),char(215), -char(3),char(13),char(1),char(228),char(255),char(195),char(3),char(13),char(2),char(7), -char(255),char(154),char(3),char(13),char(2),char(11),char(255),char(154),char(3),char(13), -char(2),char(114),char(255),char(195),char(3),char(13),char(2),char(118),char(255),char(215), -char(3),char(13),char(2),char(124),char(255),char(195),char(3),char(13),char(2),char(128), -char(255),char(195),char(3),char(13),char(2),char(130),char(255),char(195),char(3),char(13), -char(2),char(159),char(255),char(195),char(3),char(13),char(2),char(160),char(255),char(215), -char(3),char(13),char(2),char(169),char(255),char(174),char(3),char(13),char(2),char(170), -char(255),char(195),char(3),char(13),char(2),char(181),char(255),char(113),char(3),char(13), -char(2),char(182),char(255),char(195),char(3),char(13),char(2),char(183),char(255),char(195), -char(3),char(13),char(2),char(185),char(255),char(195),char(3),char(13),char(2),char(187), -char(255),char(195),char(3),char(13),char(2),char(188),char(255),char(215),char(3),char(13), -char(2),char(189),char(255),char(174),char(3),char(13),char(2),char(190),char(255),char(195), -char(3),char(13),char(2),char(191),char(255),char(195),char(3),char(13),char(2),char(192), -char(255),char(215),char(3),char(13),char(2),char(193),char(255),char(195),char(3),char(13), -char(2),char(194),char(255),char(215),char(3),char(13),char(2),char(202),char(255),char(195), -char(3),char(13),char(2),char(203),char(255),char(215),char(3),char(13),char(2),char(212), -char(255),char(195),char(3),char(13),char(2),char(213),char(255),char(215),char(3),char(13), -char(2),char(217),char(255),char(195),char(3),char(13),char(2),char(219),char(255),char(195), -char(3),char(13),char(2),char(221),char(255),char(195),char(3),char(13),char(2),char(229), -char(255),char(195),char(3),char(13),char(2),char(230),char(255),char(215),char(3),char(13), -char(2),char(247),char(255),char(195),char(3),char(13),char(2),char(249),char(255),char(195), -char(3),char(13),char(2),char(251),char(255),char(195),char(3),char(13),char(2),char(253), -char(255),char(195),char(3),char(13),char(2),char(254),char(255),char(215),char(3),char(13), -char(3),char(5),char(255),char(195),char(3),char(13),char(3),char(6),char(255),char(215), -char(3),char(13),char(3),char(7),char(255),char(195),char(3),char(13),char(3),char(8), -char(255),char(215),char(3),char(13),char(3),char(13),char(255),char(215),char(3),char(13), -char(3),char(14),char(255),char(215),char(3),char(13),char(3),char(15),char(255),char(215), -char(3),char(13),char(3),char(16),char(255),char(215),char(3),char(13),char(3),char(23), -char(255),char(174),char(3),char(13),char(3),char(24),char(255),char(195),char(3),char(14), -char(0),char(5),char(255),char(154),char(3),char(14),char(0),char(10),char(255),char(154), -char(3),char(14),char(1),char(208),char(255),char(215),char(3),char(14),char(1),char(220), -char(255),char(195),char(3),char(14),char(1),char(221),char(255),char(215),char(3),char(14), -char(1),char(223),char(255),char(215),char(3),char(14),char(1),char(225),char(255),char(215), -char(3),char(14),char(1),char(228),char(255),char(195),char(3),char(14),char(1),char(246), -char(255),char(215),char(3),char(14),char(2),char(7),char(255),char(154),char(3),char(14), -char(2),char(11),char(255),char(154),char(3),char(14),char(2),char(160),char(255),char(215), -char(3),char(14),char(2),char(170),char(255),char(195),char(3),char(14),char(2),char(182), -char(255),char(195),char(3),char(14),char(2),char(188),char(255),char(215),char(3),char(14), -char(2),char(190),char(255),char(195),char(3),char(14),char(2),char(192),char(255),char(215), -char(3),char(14),char(2),char(194),char(255),char(215),char(3),char(14),char(2),char(203), -char(255),char(215),char(3),char(14),char(2),char(213),char(255),char(215),char(3),char(14), -char(2),char(230),char(255),char(215),char(3),char(14),char(2),char(248),char(255),char(215), -char(3),char(14),char(2),char(250),char(255),char(215),char(3),char(14),char(2),char(252), -char(255),char(215),char(3),char(14),char(2),char(254),char(255),char(215),char(3),char(14), -char(3),char(6),char(255),char(215),char(3),char(14),char(3),char(8),char(255),char(215), -char(3),char(14),char(3),char(14),char(255),char(154),char(3),char(14),char(3),char(16), -char(255),char(154),char(3),char(14),char(3),char(24),char(255),char(195),char(3),char(15), -char(1),char(163),char(0),char(225),char(3),char(15),char(2),char(234),char(0),char(41), -char(3),char(15),char(3),char(14),char(255),char(215),char(3),char(15),char(3),char(16), -char(255),char(215),char(3),char(16),char(0),char(5),char(255),char(236),char(3),char(16), -char(0),char(10),char(255),char(236),char(3),char(16),char(2),char(7),char(255),char(236), -char(3),char(16),char(2),char(11),char(255),char(236),char(3),char(17),char(0),char(5), -char(255),char(154),char(3),char(17),char(0),char(10),char(255),char(154),char(3),char(17), -char(1),char(157),char(255),char(174),char(3),char(17),char(1),char(166),char(255),char(174), -char(3),char(17),char(1),char(168),char(255),char(195),char(3),char(17),char(1),char(170), -char(255),char(195),char(3),char(17),char(1),char(176),char(255),char(195),char(3),char(17), -char(1),char(188),char(255),char(113),char(3),char(17),char(1),char(189),char(255),char(195), -char(3),char(17),char(1),char(191),char(255),char(195),char(3),char(17),char(1),char(193), -char(255),char(195),char(3),char(17),char(1),char(196),char(255),char(174),char(3),char(17), -char(1),char(208),char(255),char(215),char(3),char(17),char(1),char(220),char(255),char(195), -char(3),char(17),char(1),char(223),char(255),char(215),char(3),char(17),char(1),char(225), -char(255),char(215),char(3),char(17),char(1),char(228),char(255),char(195),char(3),char(17), -char(2),char(7),char(255),char(154),char(3),char(17),char(2),char(11),char(255),char(154), -char(3),char(17),char(2),char(114),char(255),char(195),char(3),char(17),char(2),char(118), -char(255),char(215),char(3),char(17),char(2),char(124),char(255),char(195),char(3),char(17), -char(2),char(128),char(255),char(195),char(3),char(17),char(2),char(130),char(255),char(195), -char(3),char(17),char(2),char(159),char(255),char(195),char(3),char(17),char(2),char(160), -char(255),char(215),char(3),char(17),char(2),char(169),char(255),char(174),char(3),char(17), -char(2),char(170),char(255),char(195),char(3),char(17),char(2),char(181),char(255),char(113), -char(3),char(17),char(2),char(182),char(255),char(195),char(3),char(17),char(2),char(183), -char(255),char(195),char(3),char(17),char(2),char(185),char(255),char(195),char(3),char(17), -char(2),char(187),char(255),char(195),char(3),char(17),char(2),char(188),char(255),char(215), -char(3),char(17),char(2),char(189),char(255),char(174),char(3),char(17),char(2),char(190), -char(255),char(195),char(3),char(17),char(2),char(191),char(255),char(195),char(3),char(17), -char(2),char(192),char(255),char(215),char(3),char(17),char(2),char(193),char(255),char(195), -char(3),char(17),char(2),char(194),char(255),char(215),char(3),char(17),char(2),char(202), -char(255),char(195),char(3),char(17),char(2),char(203),char(255),char(215),char(3),char(17), -char(2),char(212),char(255),char(195),char(3),char(17),char(2),char(213),char(255),char(215), -char(3),char(17),char(2),char(217),char(255),char(195),char(3),char(17),char(2),char(219), -char(255),char(195),char(3),char(17),char(2),char(221),char(255),char(195),char(3),char(17), -char(2),char(229),char(255),char(195),char(3),char(17),char(2),char(230),char(255),char(215), -char(3),char(17),char(2),char(247),char(255),char(195),char(3),char(17),char(2),char(249), -char(255),char(195),char(3),char(17),char(2),char(251),char(255),char(195),char(3),char(17), -char(2),char(253),char(255),char(195),char(3),char(17),char(2),char(254),char(255),char(215), -char(3),char(17),char(3),char(5),char(255),char(195),char(3),char(17),char(3),char(6), -char(255),char(215),char(3),char(17),char(3),char(7),char(255),char(195),char(3),char(17), -char(3),char(8),char(255),char(215),char(3),char(17),char(3),char(13),char(255),char(215), -char(3),char(17),char(3),char(14),char(255),char(215),char(3),char(17),char(3),char(15), -char(255),char(215),char(3),char(17),char(3),char(16),char(255),char(215),char(3),char(17), -char(3),char(23),char(255),char(174),char(3),char(17),char(3),char(24),char(255),char(195), -char(3),char(18),char(0),char(5),char(255),char(154),char(3),char(18),char(0),char(10), -char(255),char(154),char(3),char(18),char(1),char(208),char(255),char(215),char(3),char(18), -char(1),char(220),char(255),char(195),char(3),char(18),char(1),char(221),char(255),char(215), -char(3),char(18),char(1),char(223),char(255),char(215),char(3),char(18),char(1),char(225), -char(255),char(215),char(3),char(18),char(1),char(228),char(255),char(195),char(3),char(18), -char(1),char(246),char(255),char(215),char(3),char(18),char(2),char(7),char(255),char(154), -char(3),char(18),char(2),char(11),char(255),char(154),char(3),char(18),char(2),char(160), -char(255),char(215),char(3),char(18),char(2),char(170),char(255),char(195),char(3),char(18), -char(2),char(182),char(255),char(195),char(3),char(18),char(2),char(188),char(255),char(215), -char(3),char(18),char(2),char(190),char(255),char(195),char(3),char(18),char(2),char(192), -char(255),char(215),char(3),char(18),char(2),char(194),char(255),char(215),char(3),char(18), -char(2),char(203),char(255),char(215),char(3),char(18),char(2),char(213),char(255),char(215), -char(3),char(18),char(2),char(230),char(255),char(215),char(3),char(18),char(2),char(248), -char(255),char(215),char(3),char(18),char(2),char(250),char(255),char(215),char(3),char(18), -char(2),char(252),char(255),char(215),char(3),char(18),char(2),char(254),char(255),char(215), -char(3),char(18),char(3),char(6),char(255),char(215),char(3),char(18),char(3),char(8), -char(255),char(215),char(3),char(18),char(3),char(14),char(255),char(154),char(3),char(18), -char(3),char(16),char(255),char(154),char(3),char(18),char(3),char(24),char(255),char(195), -char(3),char(19),char(0),char(5),char(255),char(154),char(3),char(19),char(0),char(10), -char(255),char(154),char(3),char(19),char(1),char(157),char(255),char(174),char(3),char(19), -char(1),char(166),char(255),char(174),char(3),char(19),char(1),char(168),char(255),char(195), -char(3),char(19),char(1),char(170),char(255),char(195),char(3),char(19),char(1),char(176), -char(255),char(195),char(3),char(19),char(1),char(188),char(255),char(113),char(3),char(19), -char(1),char(189),char(255),char(195),char(3),char(19),char(1),char(191),char(255),char(195), -char(3),char(19),char(1),char(193),char(255),char(195),char(3),char(19),char(1),char(196), -char(255),char(174),char(3),char(19),char(1),char(208),char(255),char(215),char(3),char(19), -char(1),char(220),char(255),char(195),char(3),char(19),char(1),char(223),char(255),char(215), -char(3),char(19),char(1),char(225),char(255),char(215),char(3),char(19),char(1),char(228), -char(255),char(195),char(3),char(19),char(2),char(7),char(255),char(154),char(3),char(19), -char(2),char(11),char(255),char(154),char(3),char(19),char(2),char(114),char(255),char(195), -char(3),char(19),char(2),char(118),char(255),char(215),char(3),char(19),char(2),char(124), -char(255),char(195),char(3),char(19),char(2),char(128),char(255),char(195),char(3),char(19), -char(2),char(130),char(255),char(195),char(3),char(19),char(2),char(159),char(255),char(195), -char(3),char(19),char(2),char(160),char(255),char(215),char(3),char(19),char(2),char(169), -char(255),char(174),char(3),char(19),char(2),char(170),char(255),char(195),char(3),char(19), -char(2),char(181),char(255),char(113),char(3),char(19),char(2),char(182),char(255),char(195), -char(3),char(19),char(2),char(183),char(255),char(195),char(3),char(19),char(2),char(185), -char(255),char(195),char(3),char(19),char(2),char(187),char(255),char(195),char(3),char(19), -char(2),char(188),char(255),char(215),char(3),char(19),char(2),char(189),char(255),char(174), -char(3),char(19),char(2),char(190),char(255),char(195),char(3),char(19),char(2),char(191), -char(255),char(195),char(3),char(19),char(2),char(192),char(255),char(215),char(3),char(19), -char(2),char(193),char(255),char(195),char(3),char(19),char(2),char(194),char(255),char(215), -char(3),char(19),char(2),char(202),char(255),char(195),char(3),char(19),char(2),char(203), -char(255),char(215),char(3),char(19),char(2),char(212),char(255),char(195),char(3),char(19), -char(2),char(213),char(255),char(215),char(3),char(19),char(2),char(217),char(255),char(195), -char(3),char(19),char(2),char(219),char(255),char(195),char(3),char(19),char(2),char(221), -char(255),char(195),char(3),char(19),char(2),char(229),char(255),char(195),char(3),char(19), -char(2),char(230),char(255),char(215),char(3),char(19),char(2),char(247),char(255),char(195), -char(3),char(19),char(2),char(249),char(255),char(195),char(3),char(19),char(2),char(251), -char(255),char(195),char(3),char(19),char(2),char(253),char(255),char(195),char(3),char(19), -char(2),char(254),char(255),char(215),char(3),char(19),char(3),char(5),char(255),char(195), -char(3),char(19),char(3),char(6),char(255),char(215),char(3),char(19),char(3),char(7), -char(255),char(195),char(3),char(19),char(3),char(8),char(255),char(215),char(3),char(19), -char(3),char(13),char(255),char(215),char(3),char(19),char(3),char(14),char(255),char(215), -char(3),char(19),char(3),char(15),char(255),char(215),char(3),char(19),char(3),char(16), -char(255),char(215),char(3),char(19),char(3),char(23),char(255),char(174),char(3),char(19), -char(3),char(24),char(255),char(195),char(3),char(20),char(0),char(5),char(255),char(154), -char(3),char(20),char(0),char(10),char(255),char(154),char(3),char(20),char(1),char(208), -char(255),char(215),char(3),char(20),char(1),char(220),char(255),char(195),char(3),char(20), -char(1),char(221),char(255),char(215),char(3),char(20),char(1),char(223),char(255),char(215), -char(3),char(20),char(1),char(225),char(255),char(215),char(3),char(20),char(1),char(228), -char(255),char(195),char(3),char(20),char(1),char(246),char(255),char(215),char(3),char(20), -char(2),char(7),char(255),char(154),char(3),char(20),char(2),char(11),char(255),char(154), -char(3),char(20),char(2),char(160),char(255),char(215),char(3),char(20),char(2),char(170), -char(255),char(195),char(3),char(20),char(2),char(182),char(255),char(195),char(3),char(20), -char(2),char(188),char(255),char(215),char(3),char(20),char(2),char(190),char(255),char(195), -char(3),char(20),char(2),char(192),char(255),char(215),char(3),char(20),char(2),char(194), -char(255),char(215),char(3),char(20),char(2),char(203),char(255),char(215),char(3),char(20), -char(2),char(213),char(255),char(215),char(3),char(20),char(2),char(230),char(255),char(215), -char(3),char(20),char(2),char(248),char(255),char(215),char(3),char(20),char(2),char(250), -char(255),char(215),char(3),char(20),char(2),char(252),char(255),char(215),char(3),char(20), -char(2),char(254),char(255),char(215),char(3),char(20),char(3),char(6),char(255),char(215), -char(3),char(20),char(3),char(8),char(255),char(215),char(3),char(20),char(3),char(14), -char(255),char(154),char(3),char(20),char(3),char(16),char(255),char(154),char(3),char(20), -char(3),char(24),char(255),char(195),char(3),char(21),char(0),char(15),char(255),char(174), -char(3),char(21),char(0),char(17),char(255),char(174),char(3),char(21),char(1),char(170), -char(255),char(236),char(3),char(21),char(1),char(176),char(255),char(215),char(3),char(21), -char(1),char(188),char(255),char(215),char(3),char(21),char(1),char(191),char(255),char(215), -char(3),char(21),char(2),char(8),char(255),char(174),char(3),char(21),char(2),char(12), -char(255),char(174),char(3),char(21),char(2),char(114),char(255),char(236),char(3),char(21), -char(2),char(128),char(255),char(236),char(3),char(21),char(2),char(130),char(255),char(236), -char(3),char(21),char(2),char(159),char(255),char(215),char(3),char(21),char(2),char(181), -char(255),char(215),char(3),char(21),char(2),char(183),char(255),char(236),char(3),char(21), -char(2),char(185),char(255),char(236),char(3),char(21),char(2),char(187),char(255),char(215), -char(3),char(21),char(2),char(202),char(255),char(215),char(3),char(21),char(2),char(217), -char(255),char(236),char(3),char(21),char(2),char(219),char(255),char(236),char(3),char(21), -char(2),char(221),char(255),char(236),char(3),char(21),char(2),char(229),char(255),char(215), -char(3),char(21),char(3),char(5),char(255),char(215),char(3),char(21),char(3),char(7), -char(255),char(215),char(3),char(22),char(0),char(5),char(255),char(215),char(3),char(22), -char(0),char(10),char(255),char(215),char(3),char(22),char(1),char(208),char(255),char(236), -char(3),char(22),char(1),char(221),char(255),char(236),char(3),char(22),char(1),char(223), -char(255),char(236),char(3),char(22),char(1),char(246),char(255),char(236),char(3),char(22), -char(2),char(7),char(255),char(215),char(3),char(22),char(2),char(11),char(255),char(215), -char(3),char(22),char(2),char(160),char(255),char(236),char(3),char(22),char(2),char(188), -char(255),char(236),char(3),char(22),char(2),char(203),char(255),char(236),char(3),char(22), -char(2),char(230),char(255),char(236),char(3),char(22),char(2),char(248),char(255),char(236), -char(3),char(22),char(2),char(250),char(255),char(236),char(3),char(22),char(2),char(252), -char(255),char(236),char(3),char(22),char(3),char(6),char(255),char(236),char(3),char(22), -char(3),char(8),char(255),char(236),char(3),char(22),char(3),char(14),char(255),char(215), -char(3),char(22),char(3),char(16),char(255),char(215),char(3),char(23),char(0),char(5), -char(255),char(174),char(3),char(23),char(0),char(10),char(255),char(174),char(3),char(23), -char(1),char(157),char(255),char(195),char(3),char(23),char(1),char(166),char(255),char(195), -char(3),char(23),char(1),char(170),char(255),char(215),char(3),char(23),char(1),char(176), -char(255),char(215),char(3),char(23),char(1),char(188),char(255),char(195),char(3),char(23), -char(1),char(191),char(255),char(215),char(3),char(23),char(1),char(193),char(255),char(215), -char(3),char(23),char(1),char(196),char(255),char(195),char(3),char(23),char(1),char(220), -char(255),char(215),char(3),char(23),char(1),char(228),char(255),char(215),char(3),char(23), -char(2),char(7),char(255),char(174),char(3),char(23),char(2),char(11),char(255),char(174), -char(3),char(23),char(2),char(114),char(255),char(215),char(3),char(23),char(2),char(124), -char(255),char(215),char(3),char(23),char(2),char(128),char(255),char(215),char(3),char(23), -char(2),char(130),char(255),char(215),char(3),char(23),char(2),char(159),char(255),char(215), -char(3),char(23),char(2),char(169),char(255),char(195),char(3),char(23),char(2),char(170), -char(255),char(215),char(3),char(23),char(2),char(181),char(255),char(195),char(3),char(23), -char(2),char(182),char(255),char(215),char(3),char(23),char(2),char(183),char(255),char(215), -char(3),char(23),char(2),char(185),char(255),char(215),char(3),char(23),char(2),char(187), -char(255),char(215),char(3),char(23),char(2),char(189),char(255),char(195),char(3),char(23), -char(2),char(190),char(255),char(215),char(3),char(23),char(2),char(191),char(255),char(215), -char(3),char(23),char(2),char(193),char(255),char(215),char(3),char(23),char(2),char(202), -char(255),char(215),char(3),char(23),char(2),char(212),char(255),char(215),char(3),char(23), -char(2),char(217),char(255),char(215),char(3),char(23),char(2),char(219),char(255),char(215), -char(3),char(23),char(2),char(221),char(255),char(215),char(3),char(23),char(2),char(229), -char(255),char(215),char(3),char(23),char(2),char(253),char(255),char(215),char(3),char(23), -char(3),char(5),char(255),char(215),char(3),char(23),char(3),char(7),char(255),char(215), -char(3),char(23),char(3),char(13),char(255),char(215),char(3),char(23),char(3),char(15), -char(255),char(215),char(3),char(23),char(3),char(23),char(255),char(195),char(3),char(23), -char(3),char(24),char(255),char(215),char(3),char(24),char(0),char(5),char(255),char(154), -char(3),char(24),char(0),char(10),char(255),char(154),char(3),char(24),char(1),char(208), -char(255),char(215),char(3),char(24),char(1),char(220),char(255),char(195),char(3),char(24), -char(1),char(221),char(255),char(215),char(3),char(24),char(1),char(223),char(255),char(215), -char(3),char(24),char(1),char(225),char(255),char(215),char(3),char(24),char(1),char(228), -char(255),char(195),char(3),char(24),char(1),char(246),char(255),char(215),char(3),char(24), -char(2),char(7),char(255),char(154),char(3),char(24),char(2),char(11),char(255),char(154), -char(3),char(24),char(2),char(160),char(255),char(215),char(3),char(24),char(2),char(170), -char(255),char(195),char(3),char(24),char(2),char(182),char(255),char(195),char(3),char(24), -char(2),char(188),char(255),char(215),char(3),char(24),char(2),char(190),char(255),char(195), -char(3),char(24),char(2),char(192),char(255),char(215),char(3),char(24),char(2),char(194), -char(255),char(215),char(3),char(24),char(2),char(203),char(255),char(215),char(3),char(24), -char(2),char(213),char(255),char(215),char(3),char(24),char(2),char(230),char(255),char(215), -char(3),char(24),char(2),char(248),char(255),char(215),char(3),char(24),char(2),char(250), -char(255),char(215),char(3),char(24),char(2),char(252),char(255),char(215),char(3),char(24), -char(2),char(254),char(255),char(215),char(3),char(24),char(3),char(6),char(255),char(215), -char(3),char(24),char(3),char(8),char(255),char(215),char(3),char(24),char(3),char(14), -char(255),char(154),char(3),char(24),char(3),char(16),char(255),char(154),char(3),char(24), -char(3),char(24),char(255),char(195),char(3),char(25),char(1),char(225),char(255),char(215), -char(3),char(25),char(2),char(192),char(255),char(215),char(3),char(25),char(2),char(194), -char(255),char(215),char(3),char(25),char(2),char(213),char(255),char(215),char(3),char(25), -char(2),char(254),char(255),char(215),char(3),char(27),char(1),char(163),char(0),char(225), -char(3),char(27),char(2),char(234),char(0),char(41),char(3),char(27),char(3),char(14), -char(255),char(215),char(3),char(27),char(3),char(16),char(255),char(215),char(3),char(28), -char(0),char(5),char(255),char(236),char(3),char(28),char(0),char(10),char(255),char(236), -char(3),char(28),char(2),char(7),char(255),char(236),char(3),char(28),char(2),char(11), -char(255),char(236),char(3),char(29),char(0),char(5),char(255),char(113),char(3),char(29), -char(0),char(10),char(255),char(113),char(3),char(29),char(0),char(38),char(255),char(215), -char(3),char(29),char(0),char(42),char(255),char(215),char(3),char(29),char(0),char(45), -char(1),char(10),char(3),char(29),char(0),char(50),char(255),char(215),char(3),char(29), -char(0),char(52),char(255),char(215),char(3),char(29),char(0),char(55),char(255),char(113), -char(3),char(29),char(0),char(57),char(255),char(174),char(3),char(29),char(0),char(58), -char(255),char(174),char(3),char(29),char(0),char(60),char(255),char(133),char(3),char(29), -char(0),char(137),char(255),char(215),char(3),char(29),char(0),char(148),char(255),char(215), -char(3),char(29),char(0),char(149),char(255),char(215),char(3),char(29),char(0),char(150), -char(255),char(215),char(3),char(29),char(0),char(151),char(255),char(215),char(3),char(29), -char(0),char(152),char(255),char(215),char(3),char(29),char(0),char(154),char(255),char(215), -char(3),char(29),char(0),char(159),char(255),char(133),char(3),char(29),char(0),char(200), -char(255),char(215),char(3),char(29),char(0),char(202),char(255),char(215),char(3),char(29), -char(0),char(204),char(255),char(215),char(3),char(29),char(0),char(206),char(255),char(215), -char(3),char(29),char(0),char(222),char(255),char(215),char(3),char(29),char(0),char(224), -char(255),char(215),char(3),char(29),char(0),char(226),char(255),char(215),char(3),char(29), -char(0),char(228),char(255),char(215),char(3),char(29),char(1),char(14),char(255),char(215), -char(3),char(29),char(1),char(16),char(255),char(215),char(3),char(29),char(1),char(18), -char(255),char(215),char(3),char(29),char(1),char(20),char(255),char(215),char(3),char(29), -char(1),char(36),char(255),char(113),char(3),char(29),char(1),char(38),char(255),char(113), -char(3),char(29),char(1),char(54),char(255),char(174),char(3),char(29),char(1),char(56), -char(255),char(133),char(3),char(29),char(1),char(58),char(255),char(133),char(3),char(29), -char(1),char(71),char(255),char(215),char(3),char(29),char(1),char(250),char(255),char(174), -char(3),char(29),char(1),char(252),char(255),char(174),char(3),char(29),char(1),char(254), -char(255),char(174),char(3),char(29),char(2),char(0),char(255),char(133),char(3),char(29), -char(2),char(7),char(255),char(113),char(3),char(29),char(2),char(11),char(255),char(113), -char(3),char(29),char(2),char(95),char(255),char(215),char(3),char(29),char(3),char(73), -char(255),char(215),char(3),char(29),char(3),char(75),char(255),char(215),char(3),char(29), -char(3),char(77),char(255),char(215),char(3),char(29),char(3),char(79),char(255),char(215), -char(3),char(29),char(3),char(81),char(255),char(215),char(3),char(29),char(3),char(83), -char(255),char(215),char(3),char(29),char(3),char(85),char(255),char(215),char(3),char(29), -char(3),char(87),char(255),char(215),char(3),char(29),char(3),char(89),char(255),char(215), -char(3),char(29),char(3),char(91),char(255),char(215),char(3),char(29),char(3),char(93), -char(255),char(215),char(3),char(29),char(3),char(95),char(255),char(215),char(3),char(29), -char(3),char(111),char(255),char(133),char(3),char(29),char(3),char(113),char(255),char(133), -char(3),char(29),char(3),char(115),char(255),char(133),char(3),char(29),char(3),char(143), -char(255),char(113),char(3),char(30),char(0),char(5),char(255),char(236),char(3),char(30), -char(0),char(10),char(255),char(236),char(3),char(30),char(2),char(7),char(255),char(236), -char(3),char(30),char(2),char(11),char(255),char(236),char(3),char(31),char(0),char(5), -char(255),char(113),char(3),char(31),char(0),char(10),char(255),char(113),char(3),char(31), -char(0),char(38),char(255),char(215),char(3),char(31),char(0),char(42),char(255),char(215), -char(3),char(31),char(0),char(45),char(1),char(10),char(3),char(31),char(0),char(50), -char(255),char(215),char(3),char(31),char(0),char(52),char(255),char(215),char(3),char(31), -char(0),char(55),char(255),char(113),char(3),char(31),char(0),char(57),char(255),char(174), -char(3),char(31),char(0),char(58),char(255),char(174),char(3),char(31),char(0),char(60), -char(255),char(133),char(3),char(31),char(0),char(137),char(255),char(215),char(3),char(31), -char(0),char(148),char(255),char(215),char(3),char(31),char(0),char(149),char(255),char(215), -char(3),char(31),char(0),char(150),char(255),char(215),char(3),char(31),char(0),char(151), -char(255),char(215),char(3),char(31),char(0),char(152),char(255),char(215),char(3),char(31), -char(0),char(154),char(255),char(215),char(3),char(31),char(0),char(159),char(255),char(133), -char(3),char(31),char(0),char(200),char(255),char(215),char(3),char(31),char(0),char(202), -char(255),char(215),char(3),char(31),char(0),char(204),char(255),char(215),char(3),char(31), -char(0),char(206),char(255),char(215),char(3),char(31),char(0),char(222),char(255),char(215), -char(3),char(31),char(0),char(224),char(255),char(215),char(3),char(31),char(0),char(226), -char(255),char(215),char(3),char(31),char(0),char(228),char(255),char(215),char(3),char(31), -char(1),char(14),char(255),char(215),char(3),char(31),char(1),char(16),char(255),char(215), -char(3),char(31),char(1),char(18),char(255),char(215),char(3),char(31),char(1),char(20), -char(255),char(215),char(3),char(31),char(1),char(36),char(255),char(113),char(3),char(31), -char(1),char(38),char(255),char(113),char(3),char(31),char(1),char(54),char(255),char(174), -char(3),char(31),char(1),char(56),char(255),char(133),char(3),char(31),char(1),char(58), -char(255),char(133),char(3),char(31),char(1),char(71),char(255),char(215),char(3),char(31), -char(1),char(250),char(255),char(174),char(3),char(31),char(1),char(252),char(255),char(174), -char(3),char(31),char(1),char(254),char(255),char(174),char(3),char(31),char(2),char(0), -char(255),char(133),char(3),char(31),char(2),char(7),char(255),char(113),char(3),char(31), -char(2),char(11),char(255),char(113),char(3),char(31),char(2),char(95),char(255),char(215), -char(3),char(31),char(3),char(73),char(255),char(215),char(3),char(31),char(3),char(75), -char(255),char(215),char(3),char(31),char(3),char(77),char(255),char(215),char(3),char(31), -char(3),char(79),char(255),char(215),char(3),char(31),char(3),char(81),char(255),char(215), -char(3),char(31),char(3),char(83),char(255),char(215),char(3),char(31),char(3),char(85), -char(255),char(215),char(3),char(31),char(3),char(87),char(255),char(215),char(3),char(31), -char(3),char(89),char(255),char(215),char(3),char(31),char(3),char(91),char(255),char(215), -char(3),char(31),char(3),char(93),char(255),char(215),char(3),char(31),char(3),char(95), -char(255),char(215),char(3),char(31),char(3),char(111),char(255),char(133),char(3),char(31), -char(3),char(113),char(255),char(133),char(3),char(31),char(3),char(115),char(255),char(133), -char(3),char(31),char(3),char(143),char(255),char(113),char(3),char(32),char(0),char(5), -char(255),char(236),char(3),char(32),char(0),char(10),char(255),char(236),char(3),char(32), -char(2),char(7),char(255),char(236),char(3),char(32),char(2),char(11),char(255),char(236), -char(3),char(33),char(0),char(5),char(255),char(113),char(3),char(33),char(0),char(10), -char(255),char(113),char(3),char(33),char(0),char(38),char(255),char(215),char(3),char(33), -char(0),char(42),char(255),char(215),char(3),char(33),char(0),char(45),char(1),char(10), -char(3),char(33),char(0),char(50),char(255),char(215),char(3),char(33),char(0),char(52), -char(255),char(215),char(3),char(33),char(0),char(55),char(255),char(113),char(3),char(33), -char(0),char(57),char(255),char(174),char(3),char(33),char(0),char(58),char(255),char(174), -char(3),char(33),char(0),char(60),char(255),char(133),char(3),char(33),char(0),char(137), -char(255),char(215),char(3),char(33),char(0),char(148),char(255),char(215),char(3),char(33), -char(0),char(149),char(255),char(215),char(3),char(33),char(0),char(150),char(255),char(215), -char(3),char(33),char(0),char(151),char(255),char(215),char(3),char(33),char(0),char(152), -char(255),char(215),char(3),char(33),char(0),char(154),char(255),char(215),char(3),char(33), -char(0),char(159),char(255),char(133),char(3),char(33),char(0),char(200),char(255),char(215), -char(3),char(33),char(0),char(202),char(255),char(215),char(3),char(33),char(0),char(204), -char(255),char(215),char(3),char(33),char(0),char(206),char(255),char(215),char(3),char(33), -char(0),char(222),char(255),char(215),char(3),char(33),char(0),char(224),char(255),char(215), -char(3),char(33),char(0),char(226),char(255),char(215),char(3),char(33),char(0),char(228), -char(255),char(215),char(3),char(33),char(1),char(14),char(255),char(215),char(3),char(33), -char(1),char(16),char(255),char(215),char(3),char(33),char(1),char(18),char(255),char(215), -char(3),char(33),char(1),char(20),char(255),char(215),char(3),char(33),char(1),char(36), -char(255),char(113),char(3),char(33),char(1),char(38),char(255),char(113),char(3),char(33), -char(1),char(54),char(255),char(174),char(3),char(33),char(1),char(56),char(255),char(133), -char(3),char(33),char(1),char(58),char(255),char(133),char(3),char(33),char(1),char(71), -char(255),char(215),char(3),char(33),char(1),char(250),char(255),char(174),char(3),char(33), -char(1),char(252),char(255),char(174),char(3),char(33),char(1),char(254),char(255),char(174), -char(3),char(33),char(2),char(0),char(255),char(133),char(3),char(33),char(2),char(7), -char(255),char(113),char(3),char(33),char(2),char(11),char(255),char(113),char(3),char(33), -char(2),char(95),char(255),char(215),char(3),char(33),char(3),char(73),char(255),char(215), -char(3),char(33),char(3),char(75),char(255),char(215),char(3),char(33),char(3),char(77), -char(255),char(215),char(3),char(33),char(3),char(79),char(255),char(215),char(3),char(33), -char(3),char(81),char(255),char(215),char(3),char(33),char(3),char(83),char(255),char(215), -char(3),char(33),char(3),char(85),char(255),char(215),char(3),char(33),char(3),char(87), -char(255),char(215),char(3),char(33),char(3),char(89),char(255),char(215),char(3),char(33), -char(3),char(91),char(255),char(215),char(3),char(33),char(3),char(93),char(255),char(215), -char(3),char(33),char(3),char(95),char(255),char(215),char(3),char(33),char(3),char(111), -char(255),char(133),char(3),char(33),char(3),char(113),char(255),char(133),char(3),char(33), -char(3),char(115),char(255),char(133),char(3),char(33),char(3),char(143),char(255),char(113), -char(3),char(34),char(0),char(5),char(255),char(236),char(3),char(34),char(0),char(10), -char(255),char(236),char(3),char(34),char(2),char(7),char(255),char(236),char(3),char(34), -char(2),char(11),char(255),char(236),char(3),char(35),char(0),char(5),char(255),char(113), -char(3),char(35),char(0),char(10),char(255),char(113),char(3),char(35),char(0),char(38), -char(255),char(215),char(3),char(35),char(0),char(42),char(255),char(215),char(3),char(35), -char(0),char(45),char(1),char(10),char(3),char(35),char(0),char(50),char(255),char(215), -char(3),char(35),char(0),char(52),char(255),char(215),char(3),char(35),char(0),char(55), -char(255),char(113),char(3),char(35),char(0),char(57),char(255),char(174),char(3),char(35), -char(0),char(58),char(255),char(174),char(3),char(35),char(0),char(60),char(255),char(133), -char(3),char(35),char(0),char(137),char(255),char(215),char(3),char(35),char(0),char(148), -char(255),char(215),char(3),char(35),char(0),char(149),char(255),char(215),char(3),char(35), -char(0),char(150),char(255),char(215),char(3),char(35),char(0),char(151),char(255),char(215), -char(3),char(35),char(0),char(152),char(255),char(215),char(3),char(35),char(0),char(154), -char(255),char(215),char(3),char(35),char(0),char(159),char(255),char(133),char(3),char(35), -char(0),char(200),char(255),char(215),char(3),char(35),char(0),char(202),char(255),char(215), -char(3),char(35),char(0),char(204),char(255),char(215),char(3),char(35),char(0),char(206), -char(255),char(215),char(3),char(35),char(0),char(222),char(255),char(215),char(3),char(35), -char(0),char(224),char(255),char(215),char(3),char(35),char(0),char(226),char(255),char(215), -char(3),char(35),char(0),char(228),char(255),char(215),char(3),char(35),char(1),char(14), -char(255),char(215),char(3),char(35),char(1),char(16),char(255),char(215),char(3),char(35), -char(1),char(18),char(255),char(215),char(3),char(35),char(1),char(20),char(255),char(215), -char(3),char(35),char(1),char(36),char(255),char(113),char(3),char(35),char(1),char(38), -char(255),char(113),char(3),char(35),char(1),char(54),char(255),char(174),char(3),char(35), -char(1),char(56),char(255),char(133),char(3),char(35),char(1),char(58),char(255),char(133), -char(3),char(35),char(1),char(71),char(255),char(215),char(3),char(35),char(1),char(250), -char(255),char(174),char(3),char(35),char(1),char(252),char(255),char(174),char(3),char(35), -char(1),char(254),char(255),char(174),char(3),char(35),char(2),char(0),char(255),char(133), -char(3),char(35),char(2),char(7),char(255),char(113),char(3),char(35),char(2),char(11), -char(255),char(113),char(3),char(35),char(2),char(95),char(255),char(215),char(3),char(35), -char(3),char(73),char(255),char(215),char(3),char(35),char(3),char(75),char(255),char(215), -char(3),char(35),char(3),char(77),char(255),char(215),char(3),char(35),char(3),char(79), -char(255),char(215),char(3),char(35),char(3),char(81),char(255),char(215),char(3),char(35), -char(3),char(83),char(255),char(215),char(3),char(35),char(3),char(85),char(255),char(215), -char(3),char(35),char(3),char(87),char(255),char(215),char(3),char(35),char(3),char(89), -char(255),char(215),char(3),char(35),char(3),char(91),char(255),char(215),char(3),char(35), -char(3),char(93),char(255),char(215),char(3),char(35),char(3),char(95),char(255),char(215), -char(3),char(35),char(3),char(111),char(255),char(133),char(3),char(35),char(3),char(113), -char(255),char(133),char(3),char(35),char(3),char(115),char(255),char(133),char(3),char(35), -char(3),char(143),char(255),char(113),char(3),char(36),char(0),char(5),char(255),char(236), -char(3),char(36),char(0),char(10),char(255),char(236),char(3),char(36),char(2),char(7), -char(255),char(236),char(3),char(36),char(2),char(11),char(255),char(236),char(3),char(37), -char(0),char(5),char(255),char(113),char(3),char(37),char(0),char(10),char(255),char(113), -char(3),char(37),char(0),char(38),char(255),char(215),char(3),char(37),char(0),char(42), -char(255),char(215),char(3),char(37),char(0),char(45),char(1),char(10),char(3),char(37), -char(0),char(50),char(255),char(215),char(3),char(37),char(0),char(52),char(255),char(215), -char(3),char(37),char(0),char(55),char(255),char(113),char(3),char(37),char(0),char(57), -char(255),char(174),char(3),char(37),char(0),char(58),char(255),char(174),char(3),char(37), -char(0),char(60),char(255),char(133),char(3),char(37),char(0),char(137),char(255),char(215), -char(3),char(37),char(0),char(148),char(255),char(215),char(3),char(37),char(0),char(149), -char(255),char(215),char(3),char(37),char(0),char(150),char(255),char(215),char(3),char(37), -char(0),char(151),char(255),char(215),char(3),char(37),char(0),char(152),char(255),char(215), -char(3),char(37),char(0),char(154),char(255),char(215),char(3),char(37),char(0),char(159), -char(255),char(133),char(3),char(37),char(0),char(200),char(255),char(215),char(3),char(37), -char(0),char(202),char(255),char(215),char(3),char(37),char(0),char(204),char(255),char(215), -char(3),char(37),char(0),char(206),char(255),char(215),char(3),char(37),char(0),char(222), -char(255),char(215),char(3),char(37),char(0),char(224),char(255),char(215),char(3),char(37), -char(0),char(226),char(255),char(215),char(3),char(37),char(0),char(228),char(255),char(215), -char(3),char(37),char(1),char(14),char(255),char(215),char(3),char(37),char(1),char(16), -char(255),char(215),char(3),char(37),char(1),char(18),char(255),char(215),char(3),char(37), -char(1),char(20),char(255),char(215),char(3),char(37),char(1),char(36),char(255),char(113), -char(3),char(37),char(1),char(38),char(255),char(113),char(3),char(37),char(1),char(54), -char(255),char(174),char(3),char(37),char(1),char(56),char(255),char(133),char(3),char(37), -char(1),char(58),char(255),char(133),char(3),char(37),char(1),char(71),char(255),char(215), -char(3),char(37),char(1),char(250),char(255),char(174),char(3),char(37),char(1),char(252), -char(255),char(174),char(3),char(37),char(1),char(254),char(255),char(174),char(3),char(37), -char(2),char(0),char(255),char(133),char(3),char(37),char(2),char(7),char(255),char(113), -char(3),char(37),char(2),char(11),char(255),char(113),char(3),char(37),char(2),char(95), -char(255),char(215),char(3),char(37),char(3),char(73),char(255),char(215),char(3),char(37), -char(3),char(75),char(255),char(215),char(3),char(37),char(3),char(77),char(255),char(215), -char(3),char(37),char(3),char(79),char(255),char(215),char(3),char(37),char(3),char(81), -char(255),char(215),char(3),char(37),char(3),char(83),char(255),char(215),char(3),char(37), -char(3),char(85),char(255),char(215),char(3),char(37),char(3),char(87),char(255),char(215), -char(3),char(37),char(3),char(89),char(255),char(215),char(3),char(37),char(3),char(91), -char(255),char(215),char(3),char(37),char(3),char(93),char(255),char(215),char(3),char(37), -char(3),char(95),char(255),char(215),char(3),char(37),char(3),char(111),char(255),char(133), -char(3),char(37),char(3),char(113),char(255),char(133),char(3),char(37),char(3),char(115), -char(255),char(133),char(3),char(37),char(3),char(143),char(255),char(113),char(3),char(38), -char(0),char(5),char(255),char(236),char(3),char(38),char(0),char(10),char(255),char(236), -char(3),char(38),char(2),char(7),char(255),char(236),char(3),char(38),char(2),char(11), -char(255),char(236),char(3),char(39),char(0),char(5),char(255),char(113),char(3),char(39), -char(0),char(10),char(255),char(113),char(3),char(39),char(0),char(38),char(255),char(215), -char(3),char(39),char(0),char(42),char(255),char(215),char(3),char(39),char(0),char(45), -char(1),char(10),char(3),char(39),char(0),char(50),char(255),char(215),char(3),char(39), -char(0),char(52),char(255),char(215),char(3),char(39),char(0),char(55),char(255),char(113), -char(3),char(39),char(0),char(57),char(255),char(174),char(3),char(39),char(0),char(58), -char(255),char(174),char(3),char(39),char(0),char(60),char(255),char(133),char(3),char(39), -char(0),char(137),char(255),char(215),char(3),char(39),char(0),char(148),char(255),char(215), -char(3),char(39),char(0),char(149),char(255),char(215),char(3),char(39),char(0),char(150), -char(255),char(215),char(3),char(39),char(0),char(151),char(255),char(215),char(3),char(39), -char(0),char(152),char(255),char(215),char(3),char(39),char(0),char(154),char(255),char(215), -char(3),char(39),char(0),char(159),char(255),char(133),char(3),char(39),char(0),char(200), -char(255),char(215),char(3),char(39),char(0),char(202),char(255),char(215),char(3),char(39), -char(0),char(204),char(255),char(215),char(3),char(39),char(0),char(206),char(255),char(215), -char(3),char(39),char(0),char(222),char(255),char(215),char(3),char(39),char(0),char(224), -char(255),char(215),char(3),char(39),char(0),char(226),char(255),char(215),char(3),char(39), -char(0),char(228),char(255),char(215),char(3),char(39),char(1),char(14),char(255),char(215), -char(3),char(39),char(1),char(16),char(255),char(215),char(3),char(39),char(1),char(18), -char(255),char(215),char(3),char(39),char(1),char(20),char(255),char(215),char(3),char(39), -char(1),char(36),char(255),char(113),char(3),char(39),char(1),char(38),char(255),char(113), -char(3),char(39),char(1),char(54),char(255),char(174),char(3),char(39),char(1),char(56), -char(255),char(133),char(3),char(39),char(1),char(58),char(255),char(133),char(3),char(39), -char(1),char(71),char(255),char(215),char(3),char(39),char(1),char(250),char(255),char(174), -char(3),char(39),char(1),char(252),char(255),char(174),char(3),char(39),char(1),char(254), -char(255),char(174),char(3),char(39),char(2),char(0),char(255),char(133),char(3),char(39), -char(2),char(7),char(255),char(113),char(3),char(39),char(2),char(11),char(255),char(113), -char(3),char(39),char(2),char(95),char(255),char(215),char(3),char(39),char(3),char(73), -char(255),char(215),char(3),char(39),char(3),char(75),char(255),char(215),char(3),char(39), -char(3),char(77),char(255),char(215),char(3),char(39),char(3),char(79),char(255),char(215), -char(3),char(39),char(3),char(81),char(255),char(215),char(3),char(39),char(3),char(83), -char(255),char(215),char(3),char(39),char(3),char(85),char(255),char(215),char(3),char(39), -char(3),char(87),char(255),char(215),char(3),char(39),char(3),char(89),char(255),char(215), -char(3),char(39),char(3),char(91),char(255),char(215),char(3),char(39),char(3),char(93), -char(255),char(215),char(3),char(39),char(3),char(95),char(255),char(215),char(3),char(39), -char(3),char(111),char(255),char(133),char(3),char(39),char(3),char(113),char(255),char(133), -char(3),char(39),char(3),char(115),char(255),char(133),char(3),char(39),char(3),char(143), -char(255),char(113),char(3),char(40),char(0),char(5),char(255),char(236),char(3),char(40), -char(0),char(10),char(255),char(236),char(3),char(40),char(2),char(7),char(255),char(236), -char(3),char(40),char(2),char(11),char(255),char(236),char(3),char(41),char(0),char(5), -char(255),char(113),char(3),char(41),char(0),char(10),char(255),char(113),char(3),char(41), -char(0),char(38),char(255),char(215),char(3),char(41),char(0),char(42),char(255),char(215), -char(3),char(41),char(0),char(45),char(1),char(10),char(3),char(41),char(0),char(50), -char(255),char(215),char(3),char(41),char(0),char(52),char(255),char(215),char(3),char(41), -char(0),char(55),char(255),char(113),char(3),char(41),char(0),char(57),char(255),char(174), -char(3),char(41),char(0),char(58),char(255),char(174),char(3),char(41),char(0),char(60), -char(255),char(133),char(3),char(41),char(0),char(137),char(255),char(215),char(3),char(41), -char(0),char(148),char(255),char(215),char(3),char(41),char(0),char(149),char(255),char(215), -char(3),char(41),char(0),char(150),char(255),char(215),char(3),char(41),char(0),char(151), -char(255),char(215),char(3),char(41),char(0),char(152),char(255),char(215),char(3),char(41), -char(0),char(154),char(255),char(215),char(3),char(41),char(0),char(159),char(255),char(133), -char(3),char(41),char(0),char(200),char(255),char(215),char(3),char(41),char(0),char(202), -char(255),char(215),char(3),char(41),char(0),char(204),char(255),char(215),char(3),char(41), -char(0),char(206),char(255),char(215),char(3),char(41),char(0),char(222),char(255),char(215), -char(3),char(41),char(0),char(224),char(255),char(215),char(3),char(41),char(0),char(226), -char(255),char(215),char(3),char(41),char(0),char(228),char(255),char(215),char(3),char(41), -char(1),char(14),char(255),char(215),char(3),char(41),char(1),char(16),char(255),char(215), -char(3),char(41),char(1),char(18),char(255),char(215),char(3),char(41),char(1),char(20), -char(255),char(215),char(3),char(41),char(1),char(36),char(255),char(113),char(3),char(41), -char(1),char(38),char(255),char(113),char(3),char(41),char(1),char(54),char(255),char(174), -char(3),char(41),char(1),char(56),char(255),char(133),char(3),char(41),char(1),char(58), -char(255),char(133),char(3),char(41),char(1),char(71),char(255),char(215),char(3),char(41), -char(1),char(250),char(255),char(174),char(3),char(41),char(1),char(252),char(255),char(174), -char(3),char(41),char(1),char(254),char(255),char(174),char(3),char(41),char(2),char(0), -char(255),char(133),char(3),char(41),char(2),char(7),char(255),char(113),char(3),char(41), -char(2),char(11),char(255),char(113),char(3),char(41),char(2),char(95),char(255),char(215), -char(3),char(41),char(3),char(73),char(255),char(215),char(3),char(41),char(3),char(75), -char(255),char(215),char(3),char(41),char(3),char(77),char(255),char(215),char(3),char(41), -char(3),char(79),char(255),char(215),char(3),char(41),char(3),char(81),char(255),char(215), -char(3),char(41),char(3),char(83),char(255),char(215),char(3),char(41),char(3),char(85), -char(255),char(215),char(3),char(41),char(3),char(87),char(255),char(215),char(3),char(41), -char(3),char(89),char(255),char(215),char(3),char(41),char(3),char(91),char(255),char(215), -char(3),char(41),char(3),char(93),char(255),char(215),char(3),char(41),char(3),char(95), -char(255),char(215),char(3),char(41),char(3),char(111),char(255),char(133),char(3),char(41), -char(3),char(113),char(255),char(133),char(3),char(41),char(3),char(115),char(255),char(133), -char(3),char(41),char(3),char(143),char(255),char(113),char(3),char(42),char(0),char(5), -char(255),char(236),char(3),char(42),char(0),char(10),char(255),char(236),char(3),char(42), -char(2),char(7),char(255),char(236),char(3),char(42),char(2),char(11),char(255),char(236), -char(3),char(43),char(0),char(5),char(255),char(113),char(3),char(43),char(0),char(10), -char(255),char(113),char(3),char(43),char(0),char(38),char(255),char(215),char(3),char(43), -char(0),char(42),char(255),char(215),char(3),char(43),char(0),char(45),char(1),char(10), -char(3),char(43),char(0),char(50),char(255),char(215),char(3),char(43),char(0),char(52), -char(255),char(215),char(3),char(43),char(0),char(55),char(255),char(113),char(3),char(43), -char(0),char(57),char(255),char(174),char(3),char(43),char(0),char(58),char(255),char(174), -char(3),char(43),char(0),char(60),char(255),char(133),char(3),char(43),char(0),char(137), -char(255),char(215),char(3),char(43),char(0),char(148),char(255),char(215),char(3),char(43), -char(0),char(149),char(255),char(215),char(3),char(43),char(0),char(150),char(255),char(215), -char(3),char(43),char(0),char(151),char(255),char(215),char(3),char(43),char(0),char(152), -char(255),char(215),char(3),char(43),char(0),char(154),char(255),char(215),char(3),char(43), -char(0),char(159),char(255),char(133),char(3),char(43),char(0),char(200),char(255),char(215), -char(3),char(43),char(0),char(202),char(255),char(215),char(3),char(43),char(0),char(204), -char(255),char(215),char(3),char(43),char(0),char(206),char(255),char(215),char(3),char(43), -char(0),char(222),char(255),char(215),char(3),char(43),char(0),char(224),char(255),char(215), -char(3),char(43),char(0),char(226),char(255),char(215),char(3),char(43),char(0),char(228), -char(255),char(215),char(3),char(43),char(1),char(14),char(255),char(215),char(3),char(43), -char(1),char(16),char(255),char(215),char(3),char(43),char(1),char(18),char(255),char(215), -char(3),char(43),char(1),char(20),char(255),char(215),char(3),char(43),char(1),char(36), -char(255),char(113),char(3),char(43),char(1),char(38),char(255),char(113),char(3),char(43), -char(1),char(54),char(255),char(174),char(3),char(43),char(1),char(56),char(255),char(133), -char(3),char(43),char(1),char(58),char(255),char(133),char(3),char(43),char(1),char(71), -char(255),char(215),char(3),char(43),char(1),char(250),char(255),char(174),char(3),char(43), -char(1),char(252),char(255),char(174),char(3),char(43),char(1),char(254),char(255),char(174), -char(3),char(43),char(2),char(0),char(255),char(133),char(3),char(43),char(2),char(7), -char(255),char(113),char(3),char(43),char(2),char(11),char(255),char(113),char(3),char(43), -char(2),char(95),char(255),char(215),char(3),char(43),char(3),char(73),char(255),char(215), -char(3),char(43),char(3),char(75),char(255),char(215),char(3),char(43),char(3),char(77), -char(255),char(215),char(3),char(43),char(3),char(79),char(255),char(215),char(3),char(43), -char(3),char(81),char(255),char(215),char(3),char(43),char(3),char(83),char(255),char(215), -char(3),char(43),char(3),char(85),char(255),char(215),char(3),char(43),char(3),char(87), -char(255),char(215),char(3),char(43),char(3),char(89),char(255),char(215),char(3),char(43), -char(3),char(91),char(255),char(215),char(3),char(43),char(3),char(93),char(255),char(215), -char(3),char(43),char(3),char(95),char(255),char(215),char(3),char(43),char(3),char(111), -char(255),char(133),char(3),char(43),char(3),char(113),char(255),char(133),char(3),char(43), -char(3),char(115),char(255),char(133),char(3),char(43),char(3),char(143),char(255),char(113), -char(3),char(44),char(0),char(5),char(255),char(236),char(3),char(44),char(0),char(10), -char(255),char(236),char(3),char(44),char(2),char(7),char(255),char(236),char(3),char(44), -char(2),char(11),char(255),char(236),char(3),char(45),char(0),char(5),char(255),char(113), -char(3),char(45),char(0),char(10),char(255),char(113),char(3),char(45),char(0),char(38), -char(255),char(215),char(3),char(45),char(0),char(42),char(255),char(215),char(3),char(45), -char(0),char(45),char(1),char(10),char(3),char(45),char(0),char(50),char(255),char(215), -char(3),char(45),char(0),char(52),char(255),char(215),char(3),char(45),char(0),char(55), -char(255),char(113),char(3),char(45),char(0),char(57),char(255),char(174),char(3),char(45), -char(0),char(58),char(255),char(174),char(3),char(45),char(0),char(60),char(255),char(133), -char(3),char(45),char(0),char(137),char(255),char(215),char(3),char(45),char(0),char(148), -char(255),char(215),char(3),char(45),char(0),char(149),char(255),char(215),char(3),char(45), -char(0),char(150),char(255),char(215),char(3),char(45),char(0),char(151),char(255),char(215), -char(3),char(45),char(0),char(152),char(255),char(215),char(3),char(45),char(0),char(154), -char(255),char(215),char(3),char(45),char(0),char(159),char(255),char(133),char(3),char(45), -char(0),char(200),char(255),char(215),char(3),char(45),char(0),char(202),char(255),char(215), -char(3),char(45),char(0),char(204),char(255),char(215),char(3),char(45),char(0),char(206), -char(255),char(215),char(3),char(45),char(0),char(222),char(255),char(215),char(3),char(45), -char(0),char(224),char(255),char(215),char(3),char(45),char(0),char(226),char(255),char(215), -char(3),char(45),char(0),char(228),char(255),char(215),char(3),char(45),char(1),char(14), -char(255),char(215),char(3),char(45),char(1),char(16),char(255),char(215),char(3),char(45), -char(1),char(18),char(255),char(215),char(3),char(45),char(1),char(20),char(255),char(215), -char(3),char(45),char(1),char(36),char(255),char(113),char(3),char(45),char(1),char(38), -char(255),char(113),char(3),char(45),char(1),char(54),char(255),char(174),char(3),char(45), -char(1),char(56),char(255),char(133),char(3),char(45),char(1),char(58),char(255),char(133), -char(3),char(45),char(1),char(71),char(255),char(215),char(3),char(45),char(1),char(250), -char(255),char(174),char(3),char(45),char(1),char(252),char(255),char(174),char(3),char(45), -char(1),char(254),char(255),char(174),char(3),char(45),char(2),char(0),char(255),char(133), -char(3),char(45),char(2),char(7),char(255),char(113),char(3),char(45),char(2),char(11), -char(255),char(113),char(3),char(45),char(2),char(95),char(255),char(215),char(3),char(45), -char(3),char(73),char(255),char(215),char(3),char(45),char(3),char(75),char(255),char(215), -char(3),char(45),char(3),char(77),char(255),char(215),char(3),char(45),char(3),char(79), -char(255),char(215),char(3),char(45),char(3),char(81),char(255),char(215),char(3),char(45), -char(3),char(83),char(255),char(215),char(3),char(45),char(3),char(85),char(255),char(215), -char(3),char(45),char(3),char(87),char(255),char(215),char(3),char(45),char(3),char(89), -char(255),char(215),char(3),char(45),char(3),char(91),char(255),char(215),char(3),char(45), -char(3),char(93),char(255),char(215),char(3),char(45),char(3),char(95),char(255),char(215), -char(3),char(45),char(3),char(111),char(255),char(133),char(3),char(45),char(3),char(113), -char(255),char(133),char(3),char(45),char(3),char(115),char(255),char(133),char(3),char(45), -char(3),char(143),char(255),char(113),char(3),char(46),char(0),char(5),char(255),char(236), -char(3),char(46),char(0),char(10),char(255),char(236),char(3),char(46),char(2),char(7), -char(255),char(236),char(3),char(46),char(2),char(11),char(255),char(236),char(3),char(47), -char(0),char(5),char(255),char(113),char(3),char(47),char(0),char(10),char(255),char(113), -char(3),char(47),char(0),char(38),char(255),char(215),char(3),char(47),char(0),char(42), -char(255),char(215),char(3),char(47),char(0),char(45),char(1),char(10),char(3),char(47), -char(0),char(50),char(255),char(215),char(3),char(47),char(0),char(52),char(255),char(215), -char(3),char(47),char(0),char(55),char(255),char(113),char(3),char(47),char(0),char(57), -char(255),char(174),char(3),char(47),char(0),char(58),char(255),char(174),char(3),char(47), -char(0),char(60),char(255),char(133),char(3),char(47),char(0),char(137),char(255),char(215), -char(3),char(47),char(0),char(148),char(255),char(215),char(3),char(47),char(0),char(149), -char(255),char(215),char(3),char(47),char(0),char(150),char(255),char(215),char(3),char(47), -char(0),char(151),char(255),char(215),char(3),char(47),char(0),char(152),char(255),char(215), -char(3),char(47),char(0),char(154),char(255),char(215),char(3),char(47),char(0),char(159), -char(255),char(133),char(3),char(47),char(0),char(200),char(255),char(215),char(3),char(47), -char(0),char(202),char(255),char(215),char(3),char(47),char(0),char(204),char(255),char(215), -char(3),char(47),char(0),char(206),char(255),char(215),char(3),char(47),char(0),char(222), -char(255),char(215),char(3),char(47),char(0),char(224),char(255),char(215),char(3),char(47), -char(0),char(226),char(255),char(215),char(3),char(47),char(0),char(228),char(255),char(215), -char(3),char(47),char(1),char(14),char(255),char(215),char(3),char(47),char(1),char(16), -char(255),char(215),char(3),char(47),char(1),char(18),char(255),char(215),char(3),char(47), -char(1),char(20),char(255),char(215),char(3),char(47),char(1),char(36),char(255),char(113), -char(3),char(47),char(1),char(38),char(255),char(113),char(3),char(47),char(1),char(54), -char(255),char(174),char(3),char(47),char(1),char(56),char(255),char(133),char(3),char(47), -char(1),char(58),char(255),char(133),char(3),char(47),char(1),char(71),char(255),char(215), -char(3),char(47),char(1),char(250),char(255),char(174),char(3),char(47),char(1),char(252), -char(255),char(174),char(3),char(47),char(1),char(254),char(255),char(174),char(3),char(47), -char(2),char(0),char(255),char(133),char(3),char(47),char(2),char(7),char(255),char(113), -char(3),char(47),char(2),char(11),char(255),char(113),char(3),char(47),char(2),char(95), -char(255),char(215),char(3),char(47),char(3),char(73),char(255),char(215),char(3),char(47), -char(3),char(75),char(255),char(215),char(3),char(47),char(3),char(77),char(255),char(215), -char(3),char(47),char(3),char(79),char(255),char(215),char(3),char(47),char(3),char(81), -char(255),char(215),char(3),char(47),char(3),char(83),char(255),char(215),char(3),char(47), -char(3),char(85),char(255),char(215),char(3),char(47),char(3),char(87),char(255),char(215), -char(3),char(47),char(3),char(89),char(255),char(215),char(3),char(47),char(3),char(91), -char(255),char(215),char(3),char(47),char(3),char(93),char(255),char(215),char(3),char(47), -char(3),char(95),char(255),char(215),char(3),char(47),char(3),char(111),char(255),char(133), -char(3),char(47),char(3),char(113),char(255),char(133),char(3),char(47),char(3),char(115), -char(255),char(133),char(3),char(47),char(3),char(143),char(255),char(113),char(3),char(48), -char(0),char(5),char(255),char(236),char(3),char(48),char(0),char(10),char(255),char(236), -char(3),char(48),char(2),char(7),char(255),char(236),char(3),char(48),char(2),char(11), -char(255),char(236),char(3),char(49),char(0),char(5),char(255),char(113),char(3),char(49), -char(0),char(10),char(255),char(113),char(3),char(49),char(0),char(38),char(255),char(215), -char(3),char(49),char(0),char(42),char(255),char(215),char(3),char(49),char(0),char(45), -char(1),char(10),char(3),char(49),char(0),char(50),char(255),char(215),char(3),char(49), -char(0),char(52),char(255),char(215),char(3),char(49),char(0),char(55),char(255),char(113), -char(3),char(49),char(0),char(57),char(255),char(174),char(3),char(49),char(0),char(58), -char(255),char(174),char(3),char(49),char(0),char(60),char(255),char(133),char(3),char(49), -char(0),char(137),char(255),char(215),char(3),char(49),char(0),char(148),char(255),char(215), -char(3),char(49),char(0),char(149),char(255),char(215),char(3),char(49),char(0),char(150), -char(255),char(215),char(3),char(49),char(0),char(151),char(255),char(215),char(3),char(49), -char(0),char(152),char(255),char(215),char(3),char(49),char(0),char(154),char(255),char(215), -char(3),char(49),char(0),char(159),char(255),char(133),char(3),char(49),char(0),char(200), -char(255),char(215),char(3),char(49),char(0),char(202),char(255),char(215),char(3),char(49), -char(0),char(204),char(255),char(215),char(3),char(49),char(0),char(206),char(255),char(215), -char(3),char(49),char(0),char(222),char(255),char(215),char(3),char(49),char(0),char(224), -char(255),char(215),char(3),char(49),char(0),char(226),char(255),char(215),char(3),char(49), -char(0),char(228),char(255),char(215),char(3),char(49),char(1),char(14),char(255),char(215), -char(3),char(49),char(1),char(16),char(255),char(215),char(3),char(49),char(1),char(18), -char(255),char(215),char(3),char(49),char(1),char(20),char(255),char(215),char(3),char(49), -char(1),char(36),char(255),char(113),char(3),char(49),char(1),char(38),char(255),char(113), -char(3),char(49),char(1),char(54),char(255),char(174),char(3),char(49),char(1),char(56), -char(255),char(133),char(3),char(49),char(1),char(58),char(255),char(133),char(3),char(49), -char(1),char(71),char(255),char(215),char(3),char(49),char(1),char(250),char(255),char(174), -char(3),char(49),char(1),char(252),char(255),char(174),char(3),char(49),char(1),char(254), -char(255),char(174),char(3),char(49),char(2),char(0),char(255),char(133),char(3),char(49), -char(2),char(7),char(255),char(113),char(3),char(49),char(2),char(11),char(255),char(113), -char(3),char(49),char(2),char(95),char(255),char(215),char(3),char(49),char(3),char(73), -char(255),char(215),char(3),char(49),char(3),char(75),char(255),char(215),char(3),char(49), -char(3),char(77),char(255),char(215),char(3),char(49),char(3),char(79),char(255),char(215), -char(3),char(49),char(3),char(81),char(255),char(215),char(3),char(49),char(3),char(83), -char(255),char(215),char(3),char(49),char(3),char(85),char(255),char(215),char(3),char(49), -char(3),char(87),char(255),char(215),char(3),char(49),char(3),char(89),char(255),char(215), -char(3),char(49),char(3),char(91),char(255),char(215),char(3),char(49),char(3),char(93), -char(255),char(215),char(3),char(49),char(3),char(95),char(255),char(215),char(3),char(49), -char(3),char(111),char(255),char(133),char(3),char(49),char(3),char(113),char(255),char(133), -char(3),char(49),char(3),char(115),char(255),char(133),char(3),char(49),char(3),char(143), -char(255),char(113),char(3),char(50),char(0),char(5),char(255),char(236),char(3),char(50), -char(0),char(10),char(255),char(236),char(3),char(50),char(2),char(7),char(255),char(236), -char(3),char(50),char(2),char(11),char(255),char(236),char(3),char(51),char(0),char(5), -char(255),char(113),char(3),char(51),char(0),char(10),char(255),char(113),char(3),char(51), -char(0),char(38),char(255),char(215),char(3),char(51),char(0),char(42),char(255),char(215), -char(3),char(51),char(0),char(45),char(1),char(10),char(3),char(51),char(0),char(50), -char(255),char(215),char(3),char(51),char(0),char(52),char(255),char(215),char(3),char(51), -char(0),char(55),char(255),char(113),char(3),char(51),char(0),char(57),char(255),char(174), -char(3),char(51),char(0),char(58),char(255),char(174),char(3),char(51),char(0),char(60), -char(255),char(133),char(3),char(51),char(0),char(137),char(255),char(215),char(3),char(51), -char(0),char(148),char(255),char(215),char(3),char(51),char(0),char(149),char(255),char(215), -char(3),char(51),char(0),char(150),char(255),char(215),char(3),char(51),char(0),char(151), -char(255),char(215),char(3),char(51),char(0),char(152),char(255),char(215),char(3),char(51), -char(0),char(154),char(255),char(215),char(3),char(51),char(0),char(159),char(255),char(133), -char(3),char(51),char(0),char(200),char(255),char(215),char(3),char(51),char(0),char(202), -char(255),char(215),char(3),char(51),char(0),char(204),char(255),char(215),char(3),char(51), -char(0),char(206),char(255),char(215),char(3),char(51),char(0),char(222),char(255),char(215), -char(3),char(51),char(0),char(224),char(255),char(215),char(3),char(51),char(0),char(226), -char(255),char(215),char(3),char(51),char(0),char(228),char(255),char(215),char(3),char(51), -char(1),char(14),char(255),char(215),char(3),char(51),char(1),char(16),char(255),char(215), -char(3),char(51),char(1),char(18),char(255),char(215),char(3),char(51),char(1),char(20), -char(255),char(215),char(3),char(51),char(1),char(36),char(255),char(113),char(3),char(51), -char(1),char(38),char(255),char(113),char(3),char(51),char(1),char(54),char(255),char(174), -char(3),char(51),char(1),char(56),char(255),char(133),char(3),char(51),char(1),char(58), -char(255),char(133),char(3),char(51),char(1),char(71),char(255),char(215),char(3),char(51), -char(1),char(250),char(255),char(174),char(3),char(51),char(1),char(252),char(255),char(174), -char(3),char(51),char(1),char(254),char(255),char(174),char(3),char(51),char(2),char(0), -char(255),char(133),char(3),char(51),char(2),char(7),char(255),char(113),char(3),char(51), -char(2),char(11),char(255),char(113),char(3),char(51),char(2),char(95),char(255),char(215), -char(3),char(51),char(3),char(73),char(255),char(215),char(3),char(51),char(3),char(75), -char(255),char(215),char(3),char(51),char(3),char(77),char(255),char(215),char(3),char(51), -char(3),char(79),char(255),char(215),char(3),char(51),char(3),char(81),char(255),char(215), -char(3),char(51),char(3),char(83),char(255),char(215),char(3),char(51),char(3),char(85), -char(255),char(215),char(3),char(51),char(3),char(87),char(255),char(215),char(3),char(51), -char(3),char(89),char(255),char(215),char(3),char(51),char(3),char(91),char(255),char(215), -char(3),char(51),char(3),char(93),char(255),char(215),char(3),char(51),char(3),char(95), -char(255),char(215),char(3),char(51),char(3),char(111),char(255),char(133),char(3),char(51), -char(3),char(113),char(255),char(133),char(3),char(51),char(3),char(115),char(255),char(133), -char(3),char(51),char(3),char(143),char(255),char(113),char(3),char(52),char(0),char(5), -char(255),char(236),char(3),char(52),char(0),char(10),char(255),char(236),char(3),char(52), -char(2),char(7),char(255),char(236),char(3),char(52),char(2),char(11),char(255),char(236), -char(3),char(53),char(0),char(45),char(0),char(123),char(3),char(54),char(0),char(5), -char(255),char(236),char(3),char(54),char(0),char(10),char(255),char(236),char(3),char(54), -char(0),char(89),char(255),char(215),char(3),char(54),char(0),char(90),char(255),char(215), -char(3),char(54),char(0),char(91),char(255),char(215),char(3),char(54),char(0),char(92), -char(255),char(215),char(3),char(54),char(0),char(93),char(255),char(236),char(3),char(54), -char(0),char(191),char(255),char(215),char(3),char(54),char(1),char(55),char(255),char(215), -char(3),char(54),char(1),char(60),char(255),char(236),char(3),char(54),char(1),char(62), -char(255),char(236),char(3),char(54),char(1),char(64),char(255),char(236),char(3),char(54), -char(1),char(251),char(255),char(215),char(3),char(54),char(1),char(253),char(255),char(215), -char(3),char(54),char(2),char(7),char(255),char(236),char(3),char(54),char(2),char(11), -char(255),char(236),char(3),char(54),char(3),char(112),char(255),char(215),char(3),char(55), -char(0),char(45),char(0),char(123),char(3),char(56),char(0),char(5),char(255),char(236), -char(3),char(56),char(0),char(10),char(255),char(236),char(3),char(56),char(0),char(89), -char(255),char(215),char(3),char(56),char(0),char(90),char(255),char(215),char(3),char(56), -char(0),char(91),char(255),char(215),char(3),char(56),char(0),char(92),char(255),char(215), -char(3),char(56),char(0),char(93),char(255),char(236),char(3),char(56),char(0),char(191), -char(255),char(215),char(3),char(56),char(1),char(55),char(255),char(215),char(3),char(56), -char(1),char(60),char(255),char(236),char(3),char(56),char(1),char(62),char(255),char(236), -char(3),char(56),char(1),char(64),char(255),char(236),char(3),char(56),char(1),char(251), -char(255),char(215),char(3),char(56),char(1),char(253),char(255),char(215),char(3),char(56), -char(2),char(7),char(255),char(236),char(3),char(56),char(2),char(11),char(255),char(236), -char(3),char(56),char(3),char(112),char(255),char(215),char(3),char(57),char(0),char(45), -char(0),char(123),char(3),char(58),char(0),char(5),char(255),char(236),char(3),char(58), -char(0),char(10),char(255),char(236),char(3),char(58),char(0),char(89),char(255),char(215), -char(3),char(58),char(0),char(90),char(255),char(215),char(3),char(58),char(0),char(91), -char(255),char(215),char(3),char(58),char(0),char(92),char(255),char(215),char(3),char(58), -char(0),char(93),char(255),char(236),char(3),char(58),char(0),char(191),char(255),char(215), -char(3),char(58),char(1),char(55),char(255),char(215),char(3),char(58),char(1),char(60), -char(255),char(236),char(3),char(58),char(1),char(62),char(255),char(236),char(3),char(58), -char(1),char(64),char(255),char(236),char(3),char(58),char(1),char(251),char(255),char(215), -char(3),char(58),char(1),char(253),char(255),char(215),char(3),char(58),char(2),char(7), -char(255),char(236),char(3),char(58),char(2),char(11),char(255),char(236),char(3),char(58), -char(3),char(112),char(255),char(215),char(3),char(59),char(0),char(45),char(0),char(123), -char(3),char(60),char(0),char(5),char(255),char(236),char(3),char(60),char(0),char(10), -char(255),char(236),char(3),char(60),char(0),char(89),char(255),char(215),char(3),char(60), -char(0),char(90),char(255),char(215),char(3),char(60),char(0),char(91),char(255),char(215), -char(3),char(60),char(0),char(92),char(255),char(215),char(3),char(60),char(0),char(93), -char(255),char(236),char(3),char(60),char(0),char(191),char(255),char(215),char(3),char(60), -char(1),char(55),char(255),char(215),char(3),char(60),char(1),char(60),char(255),char(236), -char(3),char(60),char(1),char(62),char(255),char(236),char(3),char(60),char(1),char(64), -char(255),char(236),char(3),char(60),char(1),char(251),char(255),char(215),char(3),char(60), -char(1),char(253),char(255),char(215),char(3),char(60),char(2),char(7),char(255),char(236), -char(3),char(60),char(2),char(11),char(255),char(236),char(3),char(60),char(3),char(112), -char(255),char(215),char(3),char(61),char(0),char(45),char(0),char(123),char(3),char(62), -char(0),char(5),char(255),char(236),char(3),char(62),char(0),char(10),char(255),char(236), -char(3),char(62),char(0),char(89),char(255),char(215),char(3),char(62),char(0),char(90), -char(255),char(215),char(3),char(62),char(0),char(91),char(255),char(215),char(3),char(62), -char(0),char(92),char(255),char(215),char(3),char(62),char(0),char(93),char(255),char(236), -char(3),char(62),char(0),char(191),char(255),char(215),char(3),char(62),char(1),char(55), -char(255),char(215),char(3),char(62),char(1),char(60),char(255),char(236),char(3),char(62), -char(1),char(62),char(255),char(236),char(3),char(62),char(1),char(64),char(255),char(236), -char(3),char(62),char(1),char(251),char(255),char(215),char(3),char(62),char(1),char(253), -char(255),char(215),char(3),char(62),char(2),char(7),char(255),char(236),char(3),char(62), -char(2),char(11),char(255),char(236),char(3),char(62),char(3),char(112),char(255),char(215), -char(3),char(63),char(0),char(45),char(0),char(123),char(3),char(64),char(0),char(5), -char(255),char(236),char(3),char(64),char(0),char(10),char(255),char(236),char(3),char(64), -char(0),char(89),char(255),char(215),char(3),char(64),char(0),char(90),char(255),char(215), -char(3),char(64),char(0),char(91),char(255),char(215),char(3),char(64),char(0),char(92), -char(255),char(215),char(3),char(64),char(0),char(93),char(255),char(236),char(3),char(64), -char(0),char(191),char(255),char(215),char(3),char(64),char(1),char(55),char(255),char(215), -char(3),char(64),char(1),char(60),char(255),char(236),char(3),char(64),char(1),char(62), -char(255),char(236),char(3),char(64),char(1),char(64),char(255),char(236),char(3),char(64), -char(1),char(251),char(255),char(215),char(3),char(64),char(1),char(253),char(255),char(215), -char(3),char(64),char(2),char(7),char(255),char(236),char(3),char(64),char(2),char(11), -char(255),char(236),char(3),char(64),char(3),char(112),char(255),char(215),char(3),char(65), -char(0),char(45),char(0),char(123),char(3),char(66),char(0),char(5),char(255),char(236), -char(3),char(66),char(0),char(10),char(255),char(236),char(3),char(66),char(0),char(89), -char(255),char(215),char(3),char(66),char(0),char(90),char(255),char(215),char(3),char(66), -char(0),char(91),char(255),char(215),char(3),char(66),char(0),char(92),char(255),char(215), -char(3),char(66),char(0),char(93),char(255),char(236),char(3),char(66),char(0),char(191), -char(255),char(215),char(3),char(66),char(1),char(55),char(255),char(215),char(3),char(66), -char(1),char(60),char(255),char(236),char(3),char(66),char(1),char(62),char(255),char(236), -char(3),char(66),char(1),char(64),char(255),char(236),char(3),char(66),char(1),char(251), -char(255),char(215),char(3),char(66),char(1),char(253),char(255),char(215),char(3),char(66), -char(2),char(7),char(255),char(236),char(3),char(66),char(2),char(11),char(255),char(236), -char(3),char(66),char(3),char(112),char(255),char(215),char(3),char(67),char(0),char(45), -char(0),char(123),char(3),char(68),char(0),char(5),char(255),char(236),char(3),char(68), -char(0),char(10),char(255),char(236),char(3),char(68),char(0),char(89),char(255),char(215), -char(3),char(68),char(0),char(90),char(255),char(215),char(3),char(68),char(0),char(91), -char(255),char(215),char(3),char(68),char(0),char(92),char(255),char(215),char(3),char(68), -char(0),char(93),char(255),char(236),char(3),char(68),char(0),char(191),char(255),char(215), -char(3),char(68),char(1),char(55),char(255),char(215),char(3),char(68),char(1),char(60), -char(255),char(236),char(3),char(68),char(1),char(62),char(255),char(236),char(3),char(68), -char(1),char(64),char(255),char(236),char(3),char(68),char(1),char(251),char(255),char(215), -char(3),char(68),char(1),char(253),char(255),char(215),char(3),char(68),char(2),char(7), -char(255),char(236),char(3),char(68),char(2),char(11),char(255),char(236),char(3),char(68), -char(3),char(112),char(255),char(215),char(3),char(73),char(0),char(15),char(255),char(174), -char(3),char(73),char(0),char(17),char(255),char(174),char(3),char(73),char(0),char(36), -char(255),char(215),char(3),char(73),char(0),char(55),char(255),char(195),char(3),char(73), -char(0),char(57),char(255),char(236),char(3),char(73),char(0),char(58),char(255),char(236), -char(3),char(73),char(0),char(59),char(255),char(215),char(3),char(73),char(0),char(60), -char(255),char(236),char(3),char(73),char(0),char(61),char(255),char(236),char(3),char(73), -char(0),char(130),char(255),char(215),char(3),char(73),char(0),char(131),char(255),char(215), -char(3),char(73),char(0),char(132),char(255),char(215),char(3),char(73),char(0),char(133), -char(255),char(215),char(3),char(73),char(0),char(134),char(255),char(215),char(3),char(73), -char(0),char(135),char(255),char(215),char(3),char(73),char(0),char(159),char(255),char(236), -char(3),char(73),char(0),char(194),char(255),char(215),char(3),char(73),char(0),char(196), -char(255),char(215),char(3),char(73),char(0),char(198),char(255),char(215),char(3),char(73), -char(1),char(36),char(255),char(195),char(3),char(73),char(1),char(38),char(255),char(195), -char(3),char(73),char(1),char(54),char(255),char(236),char(3),char(73),char(1),char(56), -char(255),char(236),char(3),char(73),char(1),char(58),char(255),char(236),char(3),char(73), -char(1),char(59),char(255),char(236),char(3),char(73),char(1),char(61),char(255),char(236), -char(3),char(73),char(1),char(63),char(255),char(236),char(3),char(73),char(1),char(67), -char(255),char(215),char(3),char(73),char(1),char(160),char(255),char(236),char(3),char(73), -char(1),char(250),char(255),char(236),char(3),char(73),char(1),char(252),char(255),char(236), -char(3),char(73),char(1),char(254),char(255),char(236),char(3),char(73),char(2),char(0), -char(255),char(236),char(3),char(73),char(2),char(8),char(255),char(174),char(3),char(73), -char(2),char(12),char(255),char(174),char(3),char(73),char(2),char(88),char(255),char(215), -char(3),char(73),char(3),char(29),char(255),char(215),char(3),char(73),char(3),char(31), -char(255),char(215),char(3),char(73),char(3),char(33),char(255),char(215),char(3),char(73), -char(3),char(35),char(255),char(215),char(3),char(73),char(3),char(37),char(255),char(215), -char(3),char(73),char(3),char(39),char(255),char(215),char(3),char(73),char(3),char(41), -char(255),char(215),char(3),char(73),char(3),char(43),char(255),char(215),char(3),char(73), -char(3),char(45),char(255),char(215),char(3),char(73),char(3),char(47),char(255),char(215), -char(3),char(73),char(3),char(49),char(255),char(215),char(3),char(73),char(3),char(51), -char(255),char(215),char(3),char(73),char(3),char(111),char(255),char(236),char(3),char(73), -char(3),char(113),char(255),char(236),char(3),char(73),char(3),char(115),char(255),char(236), -char(3),char(73),char(3),char(143),char(255),char(195),char(3),char(74),char(0),char(5), -char(255),char(236),char(3),char(74),char(0),char(10),char(255),char(236),char(3),char(74), -char(0),char(89),char(255),char(215),char(3),char(74),char(0),char(90),char(255),char(215), -char(3),char(74),char(0),char(91),char(255),char(215),char(3),char(74),char(0),char(92), -char(255),char(215),char(3),char(74),char(0),char(93),char(255),char(236),char(3),char(74), -char(0),char(191),char(255),char(215),char(3),char(74),char(1),char(55),char(255),char(215), -char(3),char(74),char(1),char(60),char(255),char(236),char(3),char(74),char(1),char(62), -char(255),char(236),char(3),char(74),char(1),char(64),char(255),char(236),char(3),char(74), -char(1),char(251),char(255),char(215),char(3),char(74),char(1),char(253),char(255),char(215), -char(3),char(74),char(2),char(7),char(255),char(236),char(3),char(74),char(2),char(11), -char(255),char(236),char(3),char(74),char(3),char(112),char(255),char(215),char(3),char(75), -char(0),char(15),char(255),char(174),char(3),char(75),char(0),char(17),char(255),char(174), -char(3),char(75),char(0),char(36),char(255),char(215),char(3),char(75),char(0),char(55), -char(255),char(195),char(3),char(75),char(0),char(57),char(255),char(236),char(3),char(75), -char(0),char(58),char(255),char(236),char(3),char(75),char(0),char(59),char(255),char(215), -char(3),char(75),char(0),char(60),char(255),char(236),char(3),char(75),char(0),char(61), -char(255),char(236),char(3),char(75),char(0),char(130),char(255),char(215),char(3),char(75), -char(0),char(131),char(255),char(215),char(3),char(75),char(0),char(132),char(255),char(215), -char(3),char(75),char(0),char(133),char(255),char(215),char(3),char(75),char(0),char(134), -char(255),char(215),char(3),char(75),char(0),char(135),char(255),char(215),char(3),char(75), -char(0),char(159),char(255),char(236),char(3),char(75),char(0),char(194),char(255),char(215), -char(3),char(75),char(0),char(196),char(255),char(215),char(3),char(75),char(0),char(198), -char(255),char(215),char(3),char(75),char(1),char(36),char(255),char(195),char(3),char(75), -char(1),char(38),char(255),char(195),char(3),char(75),char(1),char(54),char(255),char(236), -char(3),char(75),char(1),char(56),char(255),char(236),char(3),char(75),char(1),char(58), -char(255),char(236),char(3),char(75),char(1),char(59),char(255),char(236),char(3),char(75), -char(1),char(61),char(255),char(236),char(3),char(75),char(1),char(63),char(255),char(236), -char(3),char(75),char(1),char(67),char(255),char(215),char(3),char(75),char(1),char(160), -char(255),char(236),char(3),char(75),char(1),char(250),char(255),char(236),char(3),char(75), -char(1),char(252),char(255),char(236),char(3),char(75),char(1),char(254),char(255),char(236), -char(3),char(75),char(2),char(0),char(255),char(236),char(3),char(75),char(2),char(8), -char(255),char(174),char(3),char(75),char(2),char(12),char(255),char(174),char(3),char(75), -char(2),char(88),char(255),char(215),char(3),char(75),char(3),char(29),char(255),char(215), -char(3),char(75),char(3),char(31),char(255),char(215),char(3),char(75),char(3),char(33), -char(255),char(215),char(3),char(75),char(3),char(35),char(255),char(215),char(3),char(75), -char(3),char(37),char(255),char(215),char(3),char(75),char(3),char(39),char(255),char(215), -char(3),char(75),char(3),char(41),char(255),char(215),char(3),char(75),char(3),char(43), -char(255),char(215),char(3),char(75),char(3),char(45),char(255),char(215),char(3),char(75), -char(3),char(47),char(255),char(215),char(3),char(75),char(3),char(49),char(255),char(215), -char(3),char(75),char(3),char(51),char(255),char(215),char(3),char(75),char(3),char(111), -char(255),char(236),char(3),char(75),char(3),char(113),char(255),char(236),char(3),char(75), -char(3),char(115),char(255),char(236),char(3),char(75),char(3),char(143),char(255),char(195), -char(3),char(76),char(0),char(5),char(255),char(236),char(3),char(76),char(0),char(10), -char(255),char(236),char(3),char(76),char(0),char(89),char(255),char(215),char(3),char(76), -char(0),char(90),char(255),char(215),char(3),char(76),char(0),char(91),char(255),char(215), -char(3),char(76),char(0),char(92),char(255),char(215),char(3),char(76),char(0),char(93), -char(255),char(236),char(3),char(76),char(0),char(191),char(255),char(215),char(3),char(76), -char(1),char(55),char(255),char(215),char(3),char(76),char(1),char(60),char(255),char(236), -char(3),char(76),char(1),char(62),char(255),char(236),char(3),char(76),char(1),char(64), -char(255),char(236),char(3),char(76),char(1),char(251),char(255),char(215),char(3),char(76), -char(1),char(253),char(255),char(215),char(3),char(76),char(2),char(7),char(255),char(236), -char(3),char(76),char(2),char(11),char(255),char(236),char(3),char(76),char(3),char(112), -char(255),char(215),char(3),char(77),char(0),char(15),char(255),char(174),char(3),char(77), -char(0),char(17),char(255),char(174),char(3),char(77),char(0),char(36),char(255),char(215), -char(3),char(77),char(0),char(55),char(255),char(195),char(3),char(77),char(0),char(57), -char(255),char(236),char(3),char(77),char(0),char(58),char(255),char(236),char(3),char(77), -char(0),char(59),char(255),char(215),char(3),char(77),char(0),char(60),char(255),char(236), -char(3),char(77),char(0),char(61),char(255),char(236),char(3),char(77),char(0),char(130), -char(255),char(215),char(3),char(77),char(0),char(131),char(255),char(215),char(3),char(77), -char(0),char(132),char(255),char(215),char(3),char(77),char(0),char(133),char(255),char(215), -char(3),char(77),char(0),char(134),char(255),char(215),char(3),char(77),char(0),char(135), -char(255),char(215),char(3),char(77),char(0),char(159),char(255),char(236),char(3),char(77), -char(0),char(194),char(255),char(215),char(3),char(77),char(0),char(196),char(255),char(215), -char(3),char(77),char(0),char(198),char(255),char(215),char(3),char(77),char(1),char(36), -char(255),char(195),char(3),char(77),char(1),char(38),char(255),char(195),char(3),char(77), -char(1),char(54),char(255),char(236),char(3),char(77),char(1),char(56),char(255),char(236), -char(3),char(77),char(1),char(58),char(255),char(236),char(3),char(77),char(1),char(59), -char(255),char(236),char(3),char(77),char(1),char(61),char(255),char(236),char(3),char(77), -char(1),char(63),char(255),char(236),char(3),char(77),char(1),char(67),char(255),char(215), -char(3),char(77),char(1),char(160),char(255),char(236),char(3),char(77),char(1),char(250), -char(255),char(236),char(3),char(77),char(1),char(252),char(255),char(236),char(3),char(77), -char(1),char(254),char(255),char(236),char(3),char(77),char(2),char(0),char(255),char(236), -char(3),char(77),char(2),char(8),char(255),char(174),char(3),char(77),char(2),char(12), -char(255),char(174),char(3),char(77),char(2),char(88),char(255),char(215),char(3),char(77), -char(3),char(29),char(255),char(215),char(3),char(77),char(3),char(31),char(255),char(215), -char(3),char(77),char(3),char(33),char(255),char(215),char(3),char(77),char(3),char(35), -char(255),char(215),char(3),char(77),char(3),char(37),char(255),char(215),char(3),char(77), -char(3),char(39),char(255),char(215),char(3),char(77),char(3),char(41),char(255),char(215), -char(3),char(77),char(3),char(43),char(255),char(215),char(3),char(77),char(3),char(45), -char(255),char(215),char(3),char(77),char(3),char(47),char(255),char(215),char(3),char(77), -char(3),char(49),char(255),char(215),char(3),char(77),char(3),char(51),char(255),char(215), -char(3),char(77),char(3),char(111),char(255),char(236),char(3),char(77),char(3),char(113), -char(255),char(236),char(3),char(77),char(3),char(115),char(255),char(236),char(3),char(77), -char(3),char(143),char(255),char(195),char(3),char(79),char(0),char(15),char(255),char(174), -char(3),char(79),char(0),char(17),char(255),char(174),char(3),char(79),char(0),char(36), -char(255),char(215),char(3),char(79),char(0),char(55),char(255),char(195),char(3),char(79), -char(0),char(57),char(255),char(236),char(3),char(79),char(0),char(58),char(255),char(236), -char(3),char(79),char(0),char(59),char(255),char(215),char(3),char(79),char(0),char(60), -char(255),char(236),char(3),char(79),char(0),char(61),char(255),char(236),char(3),char(79), -char(0),char(130),char(255),char(215),char(3),char(79),char(0),char(131),char(255),char(215), -char(3),char(79),char(0),char(132),char(255),char(215),char(3),char(79),char(0),char(133), -char(255),char(215),char(3),char(79),char(0),char(134),char(255),char(215),char(3),char(79), -char(0),char(135),char(255),char(215),char(3),char(79),char(0),char(159),char(255),char(236), -char(3),char(79),char(0),char(194),char(255),char(215),char(3),char(79),char(0),char(196), -char(255),char(215),char(3),char(79),char(0),char(198),char(255),char(215),char(3),char(79), -char(1),char(36),char(255),char(195),char(3),char(79),char(1),char(38),char(255),char(195), -char(3),char(79),char(1),char(54),char(255),char(236),char(3),char(79),char(1),char(56), -char(255),char(236),char(3),char(79),char(1),char(58),char(255),char(236),char(3),char(79), -char(1),char(59),char(255),char(236),char(3),char(79),char(1),char(61),char(255),char(236), -char(3),char(79),char(1),char(63),char(255),char(236),char(3),char(79),char(1),char(67), -char(255),char(215),char(3),char(79),char(1),char(160),char(255),char(236),char(3),char(79), -char(1),char(250),char(255),char(236),char(3),char(79),char(1),char(252),char(255),char(236), -char(3),char(79),char(1),char(254),char(255),char(236),char(3),char(79),char(2),char(0), -char(255),char(236),char(3),char(79),char(2),char(8),char(255),char(174),char(3),char(79), -char(2),char(12),char(255),char(174),char(3),char(79),char(2),char(88),char(255),char(215), -char(3),char(79),char(3),char(29),char(255),char(215),char(3),char(79),char(3),char(31), -char(255),char(215),char(3),char(79),char(3),char(33),char(255),char(215),char(3),char(79), -char(3),char(35),char(255),char(215),char(3),char(79),char(3),char(37),char(255),char(215), -char(3),char(79),char(3),char(39),char(255),char(215),char(3),char(79),char(3),char(41), -char(255),char(215),char(3),char(79),char(3),char(43),char(255),char(215),char(3),char(79), -char(3),char(45),char(255),char(215),char(3),char(79),char(3),char(47),char(255),char(215), -char(3),char(79),char(3),char(49),char(255),char(215),char(3),char(79),char(3),char(51), -char(255),char(215),char(3),char(79),char(3),char(111),char(255),char(236),char(3),char(79), -char(3),char(113),char(255),char(236),char(3),char(79),char(3),char(115),char(255),char(236), -char(3),char(79),char(3),char(143),char(255),char(195),char(3),char(81),char(0),char(15), -char(255),char(174),char(3),char(81),char(0),char(17),char(255),char(174),char(3),char(81), -char(0),char(36),char(255),char(215),char(3),char(81),char(0),char(55),char(255),char(195), -char(3),char(81),char(0),char(57),char(255),char(236),char(3),char(81),char(0),char(58), -char(255),char(236),char(3),char(81),char(0),char(59),char(255),char(215),char(3),char(81), -char(0),char(60),char(255),char(236),char(3),char(81),char(0),char(61),char(255),char(236), -char(3),char(81),char(0),char(130),char(255),char(215),char(3),char(81),char(0),char(131), -char(255),char(215),char(3),char(81),char(0),char(132),char(255),char(215),char(3),char(81), -char(0),char(133),char(255),char(215),char(3),char(81),char(0),char(134),char(255),char(215), -char(3),char(81),char(0),char(135),char(255),char(215),char(3),char(81),char(0),char(159), -char(255),char(236),char(3),char(81),char(0),char(194),char(255),char(215),char(3),char(81), -char(0),char(196),char(255),char(215),char(3),char(81),char(0),char(198),char(255),char(215), -char(3),char(81),char(1),char(36),char(255),char(195),char(3),char(81),char(1),char(38), -char(255),char(195),char(3),char(81),char(1),char(54),char(255),char(236),char(3),char(81), -char(1),char(56),char(255),char(236),char(3),char(81),char(1),char(58),char(255),char(236), -char(3),char(81),char(1),char(59),char(255),char(236),char(3),char(81),char(1),char(61), -char(255),char(236),char(3),char(81),char(1),char(63),char(255),char(236),char(3),char(81), -char(1),char(67),char(255),char(215),char(3),char(81),char(1),char(160),char(255),char(236), -char(3),char(81),char(1),char(250),char(255),char(236),char(3),char(81),char(1),char(252), -char(255),char(236),char(3),char(81),char(1),char(254),char(255),char(236),char(3),char(81), -char(2),char(0),char(255),char(236),char(3),char(81),char(2),char(8),char(255),char(174), -char(3),char(81),char(2),char(12),char(255),char(174),char(3),char(81),char(2),char(88), -char(255),char(215),char(3),char(81),char(3),char(29),char(255),char(215),char(3),char(81), -char(3),char(31),char(255),char(215),char(3),char(81),char(3),char(33),char(255),char(215), -char(3),char(81),char(3),char(35),char(255),char(215),char(3),char(81),char(3),char(37), -char(255),char(215),char(3),char(81),char(3),char(39),char(255),char(215),char(3),char(81), -char(3),char(41),char(255),char(215),char(3),char(81),char(3),char(43),char(255),char(215), -char(3),char(81),char(3),char(45),char(255),char(215),char(3),char(81),char(3),char(47), -char(255),char(215),char(3),char(81),char(3),char(49),char(255),char(215),char(3),char(81), -char(3),char(51),char(255),char(215),char(3),char(81),char(3),char(111),char(255),char(236), -char(3),char(81),char(3),char(113),char(255),char(236),char(3),char(81),char(3),char(115), -char(255),char(236),char(3),char(81),char(3),char(143),char(255),char(195),char(3),char(83), -char(0),char(15),char(255),char(174),char(3),char(83),char(0),char(17),char(255),char(174), -char(3),char(83),char(0),char(36),char(255),char(215),char(3),char(83),char(0),char(55), -char(255),char(195),char(3),char(83),char(0),char(57),char(255),char(236),char(3),char(83), -char(0),char(58),char(255),char(236),char(3),char(83),char(0),char(59),char(255),char(215), -char(3),char(83),char(0),char(60),char(255),char(236),char(3),char(83),char(0),char(61), -char(255),char(236),char(3),char(83),char(0),char(130),char(255),char(215),char(3),char(83), -char(0),char(131),char(255),char(215),char(3),char(83),char(0),char(132),char(255),char(215), -char(3),char(83),char(0),char(133),char(255),char(215),char(3),char(83),char(0),char(134), -char(255),char(215),char(3),char(83),char(0),char(135),char(255),char(215),char(3),char(83), -char(0),char(159),char(255),char(236),char(3),char(83),char(0),char(194),char(255),char(215), -char(3),char(83),char(0),char(196),char(255),char(215),char(3),char(83),char(0),char(198), -char(255),char(215),char(3),char(83),char(1),char(36),char(255),char(195),char(3),char(83), -char(1),char(38),char(255),char(195),char(3),char(83),char(1),char(54),char(255),char(236), -char(3),char(83),char(1),char(56),char(255),char(236),char(3),char(83),char(1),char(58), -char(255),char(236),char(3),char(83),char(1),char(59),char(255),char(236),char(3),char(83), -char(1),char(61),char(255),char(236),char(3),char(83),char(1),char(63),char(255),char(236), -char(3),char(83),char(1),char(67),char(255),char(215),char(3),char(83),char(1),char(160), -char(255),char(236),char(3),char(83),char(1),char(250),char(255),char(236),char(3),char(83), -char(1),char(252),char(255),char(236),char(3),char(83),char(1),char(254),char(255),char(236), -char(3),char(83),char(2),char(0),char(255),char(236),char(3),char(83),char(2),char(8), -char(255),char(174),char(3),char(83),char(2),char(12),char(255),char(174),char(3),char(83), -char(2),char(88),char(255),char(215),char(3),char(83),char(3),char(29),char(255),char(215), -char(3),char(83),char(3),char(31),char(255),char(215),char(3),char(83),char(3),char(33), -char(255),char(215),char(3),char(83),char(3),char(35),char(255),char(215),char(3),char(83), -char(3),char(37),char(255),char(215),char(3),char(83),char(3),char(39),char(255),char(215), -char(3),char(83),char(3),char(41),char(255),char(215),char(3),char(83),char(3),char(43), -char(255),char(215),char(3),char(83),char(3),char(45),char(255),char(215),char(3),char(83), -char(3),char(47),char(255),char(215),char(3),char(83),char(3),char(49),char(255),char(215), -char(3),char(83),char(3),char(51),char(255),char(215),char(3),char(83),char(3),char(111), -char(255),char(236),char(3),char(83),char(3),char(113),char(255),char(236),char(3),char(83), -char(3),char(115),char(255),char(236),char(3),char(83),char(3),char(143),char(255),char(195), -char(3),char(85),char(0),char(15),char(255),char(174),char(3),char(85),char(0),char(17), -char(255),char(174),char(3),char(85),char(0),char(36),char(255),char(215),char(3),char(85), -char(0),char(55),char(255),char(195),char(3),char(85),char(0),char(57),char(255),char(236), -char(3),char(85),char(0),char(58),char(255),char(236),char(3),char(85),char(0),char(59), -char(255),char(215),char(3),char(85),char(0),char(60),char(255),char(236),char(3),char(85), -char(0),char(61),char(255),char(236),char(3),char(85),char(0),char(130),char(255),char(215), -char(3),char(85),char(0),char(131),char(255),char(215),char(3),char(85),char(0),char(132), -char(255),char(215),char(3),char(85),char(0),char(133),char(255),char(215),char(3),char(85), -char(0),char(134),char(255),char(215),char(3),char(85),char(0),char(135),char(255),char(215), -char(3),char(85),char(0),char(159),char(255),char(236),char(3),char(85),char(0),char(194), -char(255),char(215),char(3),char(85),char(0),char(196),char(255),char(215),char(3),char(85), -char(0),char(198),char(255),char(215),char(3),char(85),char(1),char(36),char(255),char(195), -char(3),char(85),char(1),char(38),char(255),char(195),char(3),char(85),char(1),char(54), -char(255),char(236),char(3),char(85),char(1),char(56),char(255),char(236),char(3),char(85), -char(1),char(58),char(255),char(236),char(3),char(85),char(1),char(59),char(255),char(236), -char(3),char(85),char(1),char(61),char(255),char(236),char(3),char(85),char(1),char(63), -char(255),char(236),char(3),char(85),char(1),char(67),char(255),char(215),char(3),char(85), -char(1),char(160),char(255),char(236),char(3),char(85),char(1),char(250),char(255),char(236), -char(3),char(85),char(1),char(252),char(255),char(236),char(3),char(85),char(1),char(254), -char(255),char(236),char(3),char(85),char(2),char(0),char(255),char(236),char(3),char(85), -char(2),char(8),char(255),char(174),char(3),char(85),char(2),char(12),char(255),char(174), -char(3),char(85),char(2),char(88),char(255),char(215),char(3),char(85),char(3),char(29), -char(255),char(215),char(3),char(85),char(3),char(31),char(255),char(215),char(3),char(85), -char(3),char(33),char(255),char(215),char(3),char(85),char(3),char(35),char(255),char(215), -char(3),char(85),char(3),char(37),char(255),char(215),char(3),char(85),char(3),char(39), -char(255),char(215),char(3),char(85),char(3),char(41),char(255),char(215),char(3),char(85), -char(3),char(43),char(255),char(215),char(3),char(85),char(3),char(45),char(255),char(215), -char(3),char(85),char(3),char(47),char(255),char(215),char(3),char(85),char(3),char(49), -char(255),char(215),char(3),char(85),char(3),char(51),char(255),char(215),char(3),char(85), -char(3),char(111),char(255),char(236),char(3),char(85),char(3),char(113),char(255),char(236), -char(3),char(85),char(3),char(115),char(255),char(236),char(3),char(85),char(3),char(143), -char(255),char(195),char(3),char(88),char(0),char(73),char(0),char(82),char(3),char(88), -char(0),char(87),char(0),char(82),char(3),char(88),char(0),char(89),char(0),char(102), -char(3),char(88),char(0),char(90),char(0),char(102),char(3),char(88),char(0),char(91), -char(0),char(102),char(3),char(88),char(0),char(92),char(0),char(102),char(3),char(88), -char(0),char(191),char(0),char(102),char(3),char(88),char(1),char(37),char(0),char(82), -char(3),char(88),char(1),char(39),char(0),char(82),char(3),char(88),char(1),char(55), -char(0),char(102),char(3),char(88),char(1),char(251),char(0),char(102),char(3),char(88), -char(1),char(253),char(0),char(102),char(3),char(88),char(2),char(52),char(0),char(82), -char(3),char(88),char(2),char(53),char(0),char(82),char(3),char(88),char(2),char(93), -char(0),char(82),char(3),char(88),char(2),char(94),char(0),char(82),char(3),char(88), -char(3),char(112),char(0),char(102),char(3),char(88),char(3),char(141),char(0),char(82), -char(3),char(88),char(3),char(144),char(0),char(82),char(3),char(90),char(0),char(73), -char(0),char(82),char(3),char(90),char(0),char(87),char(0),char(82),char(3),char(90), -char(0),char(89),char(0),char(102),char(3),char(90),char(0),char(90),char(0),char(102), -char(3),char(90),char(0),char(91),char(0),char(102),char(3),char(90),char(0),char(92), -char(0),char(102),char(3),char(90),char(0),char(191),char(0),char(102),char(3),char(90), -char(1),char(37),char(0),char(82),char(3),char(90),char(1),char(39),char(0),char(82), -char(3),char(90),char(1),char(55),char(0),char(102),char(3),char(90),char(1),char(251), -char(0),char(102),char(3),char(90),char(1),char(253),char(0),char(102),char(3),char(90), -char(2),char(52),char(0),char(82),char(3),char(90),char(2),char(53),char(0),char(82), -char(3),char(90),char(2),char(93),char(0),char(82),char(3),char(90),char(2),char(94), -char(0),char(82),char(3),char(90),char(3),char(112),char(0),char(102),char(3),char(90), -char(3),char(141),char(0),char(82),char(3),char(90),char(3),char(144),char(0),char(82), -char(3),char(92),char(0),char(73),char(0),char(82),char(3),char(92),char(0),char(87), -char(0),char(82),char(3),char(92),char(0),char(89),char(0),char(102),char(3),char(92), -char(0),char(90),char(0),char(102),char(3),char(92),char(0),char(91),char(0),char(102), -char(3),char(92),char(0),char(92),char(0),char(102),char(3),char(92),char(0),char(191), -char(0),char(102),char(3),char(92),char(1),char(37),char(0),char(82),char(3),char(92), -char(1),char(39),char(0),char(82),char(3),char(92),char(1),char(55),char(0),char(102), -char(3),char(92),char(1),char(251),char(0),char(102),char(3),char(92),char(1),char(253), -char(0),char(102),char(3),char(92),char(2),char(52),char(0),char(82),char(3),char(92), -char(2),char(53),char(0),char(82),char(3),char(92),char(2),char(93),char(0),char(82), -char(3),char(92),char(2),char(94),char(0),char(82),char(3),char(92),char(3),char(112), -char(0),char(102),char(3),char(92),char(3),char(141),char(0),char(82),char(3),char(92), -char(3),char(144),char(0),char(82),char(3),char(94),char(0),char(73),char(0),char(82), -char(3),char(94),char(0),char(87),char(0),char(82),char(3),char(94),char(0),char(89), -char(0),char(102),char(3),char(94),char(0),char(90),char(0),char(102),char(3),char(94), -char(0),char(91),char(0),char(102),char(3),char(94),char(0),char(92),char(0),char(102), -char(3),char(94),char(0),char(191),char(0),char(102),char(3),char(94),char(1),char(37), -char(0),char(82),char(3),char(94),char(1),char(39),char(0),char(82),char(3),char(94), -char(1),char(55),char(0),char(102),char(3),char(94),char(1),char(251),char(0),char(102), -char(3),char(94),char(1),char(253),char(0),char(102),char(3),char(94),char(2),char(52), -char(0),char(82),char(3),char(94),char(2),char(53),char(0),char(82),char(3),char(94), -char(2),char(93),char(0),char(82),char(3),char(94),char(2),char(94),char(0),char(82), -char(3),char(94),char(3),char(112),char(0),char(102),char(3),char(94),char(3),char(141), -char(0),char(82),char(3),char(94),char(3),char(144),char(0),char(82),char(3),char(96), -char(0),char(73),char(0),char(82),char(3),char(96),char(0),char(87),char(0),char(82), -char(3),char(96),char(0),char(89),char(0),char(102),char(3),char(96),char(0),char(90), -char(0),char(102),char(3),char(96),char(0),char(91),char(0),char(102),char(3),char(96), -char(0),char(92),char(0),char(102),char(3),char(96),char(0),char(191),char(0),char(102), -char(3),char(96),char(1),char(37),char(0),char(82),char(3),char(96),char(1),char(39), -char(0),char(82),char(3),char(96),char(1),char(55),char(0),char(102),char(3),char(96), -char(1),char(251),char(0),char(102),char(3),char(96),char(1),char(253),char(0),char(102), -char(3),char(96),char(2),char(52),char(0),char(82),char(3),char(96),char(2),char(53), -char(0),char(82),char(3),char(96),char(2),char(93),char(0),char(82),char(3),char(96), -char(2),char(94),char(0),char(82),char(3),char(96),char(3),char(112),char(0),char(102), -char(3),char(96),char(3),char(141),char(0),char(82),char(3),char(96),char(3),char(144), -char(0),char(82),char(3),char(97),char(0),char(15),char(255),char(215),char(3),char(97), -char(0),char(17),char(255),char(215),char(3),char(97),char(0),char(36),char(255),char(236), -char(3),char(97),char(0),char(130),char(255),char(236),char(3),char(97),char(0),char(131), -char(255),char(236),char(3),char(97),char(0),char(132),char(255),char(236),char(3),char(97), -char(0),char(133),char(255),char(236),char(3),char(97),char(0),char(134),char(255),char(236), -char(3),char(97),char(0),char(135),char(255),char(236),char(3),char(97),char(0),char(194), -char(255),char(236),char(3),char(97),char(0),char(196),char(255),char(236),char(3),char(97), -char(0),char(198),char(255),char(236),char(3),char(97),char(1),char(67),char(255),char(236), -char(3),char(97),char(2),char(8),char(255),char(215),char(3),char(97),char(2),char(12), -char(255),char(215),char(3),char(97),char(2),char(88),char(255),char(236),char(3),char(97), -char(3),char(29),char(255),char(236),char(3),char(97),char(3),char(31),char(255),char(236), -char(3),char(97),char(3),char(33),char(255),char(236),char(3),char(97),char(3),char(35), -char(255),char(236),char(3),char(97),char(3),char(37),char(255),char(236),char(3),char(97), -char(3),char(39),char(255),char(236),char(3),char(97),char(3),char(41),char(255),char(236), -char(3),char(97),char(3),char(43),char(255),char(236),char(3),char(97),char(3),char(45), -char(255),char(236),char(3),char(97),char(3),char(47),char(255),char(236),char(3),char(97), -char(3),char(49),char(255),char(236),char(3),char(97),char(3),char(51),char(255),char(236), -char(3),char(102),char(0),char(73),char(0),char(102),char(3),char(102),char(0),char(87), -char(0),char(102),char(3),char(102),char(0),char(89),char(0),char(102),char(3),char(102), -char(0),char(90),char(0),char(102),char(3),char(102),char(0),char(91),char(0),char(102), -char(3),char(102),char(0),char(92),char(0),char(102),char(3),char(102),char(0),char(191), -char(0),char(102),char(3),char(102),char(1),char(37),char(0),char(102),char(3),char(102), -char(1),char(39),char(0),char(102),char(3),char(102),char(1),char(55),char(0),char(102), -char(3),char(102),char(1),char(251),char(0),char(102),char(3),char(102),char(1),char(253), -char(0),char(102),char(3),char(102),char(2),char(52),char(0),char(102),char(3),char(102), -char(2),char(53),char(0),char(102),char(3),char(102),char(2),char(93),char(0),char(102), -char(3),char(102),char(2),char(94),char(0),char(102),char(3),char(102),char(3),char(112), -char(0),char(102),char(3),char(102),char(3),char(141),char(0),char(102),char(3),char(102), -char(3),char(144),char(0),char(102),char(3),char(104),char(0),char(73),char(0),char(102), -char(3),char(104),char(0),char(87),char(0),char(102),char(3),char(104),char(0),char(89), -char(0),char(102),char(3),char(104),char(0),char(90),char(0),char(102),char(3),char(104), -char(0),char(91),char(0),char(102),char(3),char(104),char(0),char(92),char(0),char(102), -char(3),char(104),char(0),char(191),char(0),char(102),char(3),char(104),char(1),char(37), -char(0),char(102),char(3),char(104),char(1),char(39),char(0),char(102),char(3),char(104), -char(1),char(55),char(0),char(102),char(3),char(104),char(1),char(251),char(0),char(102), -char(3),char(104),char(1),char(253),char(0),char(102),char(3),char(104),char(2),char(52), -char(0),char(102),char(3),char(104),char(2),char(53),char(0),char(102),char(3),char(104), -char(2),char(93),char(0),char(102),char(3),char(104),char(2),char(94),char(0),char(102), -char(3),char(104),char(3),char(112),char(0),char(102),char(3),char(104),char(3),char(141), -char(0),char(102),char(3),char(104),char(3),char(144),char(0),char(102),char(3),char(106), -char(0),char(73),char(0),char(102),char(3),char(106),char(0),char(87),char(0),char(102), -char(3),char(106),char(0),char(89),char(0),char(102),char(3),char(106),char(0),char(90), -char(0),char(102),char(3),char(106),char(0),char(91),char(0),char(102),char(3),char(106), -char(0),char(92),char(0),char(102),char(3),char(106),char(0),char(191),char(0),char(102), -char(3),char(106),char(1),char(37),char(0),char(102),char(3),char(106),char(1),char(39), -char(0),char(102),char(3),char(106),char(1),char(55),char(0),char(102),char(3),char(106), -char(1),char(251),char(0),char(102),char(3),char(106),char(1),char(253),char(0),char(102), -char(3),char(106),char(2),char(52),char(0),char(102),char(3),char(106),char(2),char(53), -char(0),char(102),char(3),char(106),char(2),char(93),char(0),char(102),char(3),char(106), -char(2),char(94),char(0),char(102),char(3),char(106),char(3),char(112),char(0),char(102), -char(3),char(106),char(3),char(141),char(0),char(102),char(3),char(106),char(3),char(144), -char(0),char(102),char(3),char(108),char(0),char(73),char(0),char(102),char(3),char(108), -char(0),char(87),char(0),char(102),char(3),char(108),char(0),char(89),char(0),char(102), -char(3),char(108),char(0),char(90),char(0),char(102),char(3),char(108),char(0),char(91), -char(0),char(102),char(3),char(108),char(0),char(92),char(0),char(102),char(3),char(108), -char(0),char(191),char(0),char(102),char(3),char(108),char(1),char(37),char(0),char(102), -char(3),char(108),char(1),char(39),char(0),char(102),char(3),char(108),char(1),char(55), -char(0),char(102),char(3),char(108),char(1),char(251),char(0),char(102),char(3),char(108), -char(1),char(253),char(0),char(102),char(3),char(108),char(2),char(52),char(0),char(102), -char(3),char(108),char(2),char(53),char(0),char(102),char(3),char(108),char(2),char(93), -char(0),char(102),char(3),char(108),char(2),char(94),char(0),char(102),char(3),char(108), -char(3),char(112),char(0),char(102),char(3),char(108),char(3),char(141),char(0),char(102), -char(3),char(108),char(3),char(144),char(0),char(102),char(3),char(110),char(0),char(73), -char(0),char(102),char(3),char(110),char(0),char(87),char(0),char(102),char(3),char(110), -char(0),char(89),char(0),char(102),char(3),char(110),char(0),char(90),char(0),char(102), -char(3),char(110),char(0),char(91),char(0),char(102),char(3),char(110),char(0),char(92), -char(0),char(102),char(3),char(110),char(0),char(191),char(0),char(102),char(3),char(110), -char(1),char(37),char(0),char(102),char(3),char(110),char(1),char(39),char(0),char(102), -char(3),char(110),char(1),char(55),char(0),char(102),char(3),char(110),char(1),char(251), -char(0),char(102),char(3),char(110),char(1),char(253),char(0),char(102),char(3),char(110), -char(2),char(52),char(0),char(102),char(3),char(110),char(2),char(53),char(0),char(102), -char(3),char(110),char(2),char(93),char(0),char(102),char(3),char(110),char(2),char(94), -char(0),char(102),char(3),char(110),char(3),char(112),char(0),char(102),char(3),char(110), -char(3),char(141),char(0),char(102),char(3),char(110),char(3),char(144),char(0),char(102), -char(3),char(111),char(0),char(15),char(255),char(133),char(3),char(111),char(0),char(17), -char(255),char(133),char(3),char(111),char(0),char(34),char(0),char(41),char(3),char(111), -char(0),char(36),char(255),char(133),char(3),char(111),char(0),char(38),char(255),char(215), -char(3),char(111),char(0),char(42),char(255),char(215),char(3),char(111),char(0),char(50), -char(255),char(215),char(3),char(111),char(0),char(52),char(255),char(215),char(3),char(111), -char(0),char(68),char(255),char(154),char(3),char(111),char(0),char(70),char(255),char(154), -char(3),char(111),char(0),char(71),char(255),char(154),char(3),char(111),char(0),char(72), -char(255),char(154),char(3),char(111),char(0),char(74),char(255),char(215),char(3),char(111), -char(0),char(80),char(255),char(195),char(3),char(111),char(0),char(81),char(255),char(195), -char(3),char(111),char(0),char(82),char(255),char(154),char(3),char(111),char(0),char(83), -char(255),char(195),char(3),char(111),char(0),char(84),char(255),char(154),char(3),char(111), -char(0),char(85),char(255),char(195),char(3),char(111),char(0),char(86),char(255),char(174), -char(3),char(111),char(0),char(88),char(255),char(195),char(3),char(111),char(0),char(93), -char(255),char(215),char(3),char(111),char(0),char(130),char(255),char(133),char(3),char(111), -char(0),char(131),char(255),char(133),char(3),char(111),char(0),char(132),char(255),char(133), -char(3),char(111),char(0),char(133),char(255),char(133),char(3),char(111),char(0),char(134), -char(255),char(133),char(3),char(111),char(0),char(135),char(255),char(133),char(3),char(111), -char(0),char(137),char(255),char(215),char(3),char(111),char(0),char(148),char(255),char(215), -char(3),char(111),char(0),char(149),char(255),char(215),char(3),char(111),char(0),char(150), -char(255),char(215),char(3),char(111),char(0),char(151),char(255),char(215),char(3),char(111), -char(0),char(152),char(255),char(215),char(3),char(111),char(0),char(154),char(255),char(215), -char(3),char(111),char(0),char(162),char(255),char(154),char(3),char(111),char(0),char(163), -char(255),char(154),char(3),char(111),char(0),char(164),char(255),char(154),char(3),char(111), -char(0),char(165),char(255),char(154),char(3),char(111),char(0),char(166),char(255),char(154), -char(3),char(111),char(0),char(167),char(255),char(154),char(3),char(111),char(0),char(168), -char(255),char(154),char(3),char(111),char(0),char(169),char(255),char(154),char(3),char(111), -char(0),char(170),char(255),char(154),char(3),char(111),char(0),char(171),char(255),char(154), -char(3),char(111),char(0),char(172),char(255),char(154),char(3),char(111),char(0),char(173), -char(255),char(154),char(3),char(111),char(0),char(180),char(255),char(154),char(3),char(111), -char(0),char(181),char(255),char(154),char(3),char(111),char(0),char(182),char(255),char(154), -char(3),char(111),char(0),char(183),char(255),char(154),char(3),char(111),char(0),char(184), -char(255),char(154),char(3),char(111),char(0),char(186),char(255),char(154),char(3),char(111), -char(0),char(187),char(255),char(195),char(3),char(111),char(0),char(188),char(255),char(195), -char(3),char(111),char(0),char(189),char(255),char(195),char(3),char(111),char(0),char(190), -char(255),char(195),char(3),char(111),char(0),char(194),char(255),char(133),char(3),char(111), -char(0),char(195),char(255),char(154),char(3),char(111),char(0),char(196),char(255),char(133), -char(3),char(111),char(0),char(197),char(255),char(154),char(3),char(111),char(0),char(198), -char(255),char(133),char(3),char(111),char(0),char(199),char(255),char(154),char(3),char(111), -char(0),char(200),char(255),char(215),char(3),char(111),char(0),char(201),char(255),char(154), -char(3),char(111),char(0),char(202),char(255),char(215),char(3),char(111),char(0),char(203), -char(255),char(154),char(3),char(111),char(0),char(204),char(255),char(215),char(3),char(111), -char(0),char(205),char(255),char(154),char(3),char(111),char(0),char(206),char(255),char(215), -char(3),char(111),char(0),char(207),char(255),char(154),char(3),char(111),char(0),char(209), -char(255),char(154),char(3),char(111),char(0),char(211),char(255),char(154),char(3),char(111), -char(0),char(213),char(255),char(154),char(3),char(111),char(0),char(215),char(255),char(154), -char(3),char(111),char(0),char(217),char(255),char(154),char(3),char(111),char(0),char(219), -char(255),char(154),char(3),char(111),char(0),char(221),char(255),char(154),char(3),char(111), -char(0),char(222),char(255),char(215),char(3),char(111),char(0),char(223),char(255),char(215), -char(3),char(111),char(0),char(224),char(255),char(215),char(3),char(111),char(0),char(225), -char(255),char(215),char(3),char(111),char(0),char(226),char(255),char(215),char(3),char(111), -char(0),char(227),char(255),char(215),char(3),char(111),char(0),char(228),char(255),char(215), -char(3),char(111),char(0),char(229),char(255),char(215),char(3),char(111),char(0),char(250), -char(255),char(195),char(3),char(111),char(1),char(6),char(255),char(195),char(3),char(111), -char(1),char(8),char(255),char(195),char(3),char(111),char(1),char(13),char(255),char(195), -char(3),char(111),char(1),char(14),char(255),char(215),char(3),char(111),char(1),char(15), -char(255),char(154),char(3),char(111),char(1),char(16),char(255),char(215),char(3),char(111), -char(1),char(17),char(255),char(154),char(3),char(111),char(1),char(18),char(255),char(215), -char(3),char(111),char(1),char(19),char(255),char(154),char(3),char(111),char(1),char(20), -char(255),char(215),char(3),char(111),char(1),char(21),char(255),char(154),char(3),char(111), -char(1),char(23),char(255),char(195),char(3),char(111),char(1),char(25),char(255),char(195), -char(3),char(111),char(1),char(29),char(255),char(174),char(3),char(111),char(1),char(33), -char(255),char(174),char(3),char(111),char(1),char(43),char(255),char(195),char(3),char(111), -char(1),char(45),char(255),char(195),char(3),char(111),char(1),char(47),char(255),char(195), -char(3),char(111),char(1),char(49),char(255),char(195),char(3),char(111),char(1),char(51), -char(255),char(195),char(3),char(111),char(1),char(53),char(255),char(195),char(3),char(111), -char(1),char(60),char(255),char(215),char(3),char(111),char(1),char(62),char(255),char(215), -char(3),char(111),char(1),char(64),char(255),char(215),char(3),char(111),char(1),char(67), -char(255),char(133),char(3),char(111),char(1),char(68),char(255),char(154),char(3),char(111), -char(1),char(70),char(255),char(154),char(3),char(111),char(1),char(71),char(255),char(215), -char(3),char(111),char(1),char(72),char(255),char(154),char(3),char(111),char(1),char(74), -char(255),char(174),char(3),char(111),char(2),char(8),char(255),char(133),char(3),char(111), -char(2),char(12),char(255),char(133),char(3),char(111),char(2),char(87),char(255),char(195), -char(3),char(111),char(2),char(88),char(255),char(133),char(3),char(111),char(2),char(89), -char(255),char(154),char(3),char(111),char(2),char(95),char(255),char(215),char(3),char(111), -char(2),char(96),char(255),char(154),char(3),char(111),char(2),char(98),char(255),char(195), -char(3),char(111),char(3),char(29),char(255),char(133),char(3),char(111),char(3),char(30), -char(255),char(154),char(3),char(111),char(3),char(31),char(255),char(133),char(3),char(111), -char(3),char(32),char(255),char(154),char(3),char(111),char(3),char(33),char(255),char(133), -char(3),char(111),char(3),char(34),char(255),char(154),char(3),char(111),char(3),char(35), -char(255),char(133),char(3),char(111),char(3),char(37),char(255),char(133),char(3),char(111), -char(3),char(38),char(255),char(154),char(3),char(111),char(3),char(39),char(255),char(133), -char(3),char(111),char(3),char(40),char(255),char(154),char(3),char(111),char(3),char(41), -char(255),char(133),char(3),char(111),char(3),char(42),char(255),char(154),char(3),char(111), -char(3),char(43),char(255),char(133),char(3),char(111),char(3),char(44),char(255),char(154), -char(3),char(111),char(3),char(45),char(255),char(133),char(3),char(111),char(3),char(46), -char(255),char(154),char(3),char(111),char(3),char(47),char(255),char(133),char(3),char(111), -char(3),char(48),char(255),char(154),char(3),char(111),char(3),char(49),char(255),char(133), -char(3),char(111),char(3),char(50),char(255),char(154),char(3),char(111),char(3),char(51), -char(255),char(133),char(3),char(111),char(3),char(52),char(255),char(154),char(3),char(111), -char(3),char(54),char(255),char(154),char(3),char(111),char(3),char(56),char(255),char(154), -char(3),char(111),char(3),char(58),char(255),char(154),char(3),char(111),char(3),char(60), -char(255),char(154),char(3),char(111),char(3),char(64),char(255),char(154),char(3),char(111), -char(3),char(66),char(255),char(154),char(3),char(111),char(3),char(68),char(255),char(154), -char(3),char(111),char(3),char(73),char(255),char(215),char(3),char(111),char(3),char(74), -char(255),char(154),char(3),char(111),char(3),char(75),char(255),char(215),char(3),char(111), -char(3),char(76),char(255),char(154),char(3),char(111),char(3),char(77),char(255),char(215), -char(3),char(111),char(3),char(78),char(255),char(154),char(3),char(111),char(3),char(79), -char(255),char(215),char(3),char(111),char(3),char(81),char(255),char(215),char(3),char(111), -char(3),char(82),char(255),char(154),char(3),char(111),char(3),char(83),char(255),char(215), -char(3),char(111),char(3),char(84),char(255),char(154),char(3),char(111),char(3),char(85), -char(255),char(215),char(3),char(111),char(3),char(86),char(255),char(154),char(3),char(111), -char(3),char(87),char(255),char(215),char(3),char(111),char(3),char(88),char(255),char(154), -char(3),char(111),char(3),char(89),char(255),char(215),char(3),char(111),char(3),char(90), -char(255),char(154),char(3),char(111),char(3),char(91),char(255),char(215),char(3),char(111), -char(3),char(92),char(255),char(154),char(3),char(111),char(3),char(93),char(255),char(215), -char(3),char(111),char(3),char(94),char(255),char(154),char(3),char(111),char(3),char(95), -char(255),char(215),char(3),char(111),char(3),char(96),char(255),char(154),char(3),char(111), -char(3),char(98),char(255),char(195),char(3),char(111),char(3),char(100),char(255),char(195), -char(3),char(111),char(3),char(102),char(255),char(195),char(3),char(111),char(3),char(104), -char(255),char(195),char(3),char(111),char(3),char(106),char(255),char(195),char(3),char(111), -char(3),char(108),char(255),char(195),char(3),char(111),char(3),char(110),char(255),char(195), -char(3),char(112),char(0),char(5),char(0),char(82),char(3),char(112),char(0),char(10), -char(0),char(82),char(3),char(112),char(0),char(15),char(255),char(174),char(3),char(112), -char(0),char(17),char(255),char(174),char(3),char(112),char(0),char(34),char(0),char(41), -char(3),char(112),char(2),char(7),char(0),char(82),char(3),char(112),char(2),char(8), -char(255),char(174),char(3),char(112),char(2),char(11),char(0),char(82),char(3),char(112), -char(2),char(12),char(255),char(174),char(3),char(113),char(0),char(15),char(255),char(133), -char(3),char(113),char(0),char(17),char(255),char(133),char(3),char(113),char(0),char(34), -char(0),char(41),char(3),char(113),char(0),char(36),char(255),char(133),char(3),char(113), -char(0),char(38),char(255),char(215),char(3),char(113),char(0),char(42),char(255),char(215), -char(3),char(113),char(0),char(50),char(255),char(215),char(3),char(113),char(0),char(52), -char(255),char(215),char(3),char(113),char(0),char(68),char(255),char(154),char(3),char(113), -char(0),char(70),char(255),char(154),char(3),char(113),char(0),char(71),char(255),char(154), -char(3),char(113),char(0),char(72),char(255),char(154),char(3),char(113),char(0),char(74), -char(255),char(215),char(3),char(113),char(0),char(80),char(255),char(195),char(3),char(113), -char(0),char(81),char(255),char(195),char(3),char(113),char(0),char(82),char(255),char(154), -char(3),char(113),char(0),char(83),char(255),char(195),char(3),char(113),char(0),char(84), -char(255),char(154),char(3),char(113),char(0),char(85),char(255),char(195),char(3),char(113), -char(0),char(86),char(255),char(174),char(3),char(113),char(0),char(88),char(255),char(195), -char(3),char(113),char(0),char(93),char(255),char(215),char(3),char(113),char(0),char(130), -char(255),char(133),char(3),char(113),char(0),char(131),char(255),char(133),char(3),char(113), -char(0),char(132),char(255),char(133),char(3),char(113),char(0),char(133),char(255),char(133), -char(3),char(113),char(0),char(134),char(255),char(133),char(3),char(113),char(0),char(135), -char(255),char(133),char(3),char(113),char(0),char(137),char(255),char(215),char(3),char(113), -char(0),char(148),char(255),char(215),char(3),char(113),char(0),char(149),char(255),char(215), -char(3),char(113),char(0),char(150),char(255),char(215),char(3),char(113),char(0),char(151), -char(255),char(215),char(3),char(113),char(0),char(152),char(255),char(215),char(3),char(113), -char(0),char(154),char(255),char(215),char(3),char(113),char(0),char(162),char(255),char(154), -char(3),char(113),char(0),char(163),char(255),char(154),char(3),char(113),char(0),char(164), -char(255),char(154),char(3),char(113),char(0),char(165),char(255),char(154),char(3),char(113), -char(0),char(166),char(255),char(154),char(3),char(113),char(0),char(167),char(255),char(154), -char(3),char(113),char(0),char(168),char(255),char(154),char(3),char(113),char(0),char(169), -char(255),char(154),char(3),char(113),char(0),char(170),char(255),char(154),char(3),char(113), -char(0),char(171),char(255),char(154),char(3),char(113),char(0),char(172),char(255),char(154), -char(3),char(113),char(0),char(173),char(255),char(154),char(3),char(113),char(0),char(180), -char(255),char(154),char(3),char(113),char(0),char(181),char(255),char(154),char(3),char(113), -char(0),char(182),char(255),char(154),char(3),char(113),char(0),char(183),char(255),char(154), -char(3),char(113),char(0),char(184),char(255),char(154),char(3),char(113),char(0),char(186), -char(255),char(154),char(3),char(113),char(0),char(187),char(255),char(195),char(3),char(113), -char(0),char(188),char(255),char(195),char(3),char(113),char(0),char(189),char(255),char(195), -char(3),char(113),char(0),char(190),char(255),char(195),char(3),char(113),char(0),char(194), -char(255),char(133),char(3),char(113),char(0),char(195),char(255),char(154),char(3),char(113), -char(0),char(196),char(255),char(133),char(3),char(113),char(0),char(197),char(255),char(154), -char(3),char(113),char(0),char(198),char(255),char(133),char(3),char(113),char(0),char(199), -char(255),char(154),char(3),char(113),char(0),char(200),char(255),char(215),char(3),char(113), -char(0),char(201),char(255),char(154),char(3),char(113),char(0),char(202),char(255),char(215), -char(3),char(113),char(0),char(203),char(255),char(154),char(3),char(113),char(0),char(204), -char(255),char(215),char(3),char(113),char(0),char(205),char(255),char(154),char(3),char(113), -char(0),char(206),char(255),char(215),char(3),char(113),char(0),char(207),char(255),char(154), -char(3),char(113),char(0),char(209),char(255),char(154),char(3),char(113),char(0),char(211), -char(255),char(154),char(3),char(113),char(0),char(213),char(255),char(154),char(3),char(113), -char(0),char(215),char(255),char(154),char(3),char(113),char(0),char(217),char(255),char(154), -char(3),char(113),char(0),char(219),char(255),char(154),char(3),char(113),char(0),char(221), -char(255),char(154),char(3),char(113),char(0),char(222),char(255),char(215),char(3),char(113), -char(0),char(223),char(255),char(215),char(3),char(113),char(0),char(224),char(255),char(215), -char(3),char(113),char(0),char(225),char(255),char(215),char(3),char(113),char(0),char(226), -char(255),char(215),char(3),char(113),char(0),char(227),char(255),char(215),char(3),char(113), -char(0),char(228),char(255),char(215),char(3),char(113),char(0),char(229),char(255),char(215), -char(3),char(113),char(0),char(250),char(255),char(195),char(3),char(113),char(1),char(6), -char(255),char(195),char(3),char(113),char(1),char(8),char(255),char(195),char(3),char(113), -char(1),char(13),char(255),char(195),char(3),char(113),char(1),char(14),char(255),char(215), -char(3),char(113),char(1),char(15),char(255),char(154),char(3),char(113),char(1),char(16), -char(255),char(215),char(3),char(113),char(1),char(17),char(255),char(154),char(3),char(113), -char(1),char(18),char(255),char(215),char(3),char(113),char(1),char(19),char(255),char(154), -char(3),char(113),char(1),char(20),char(255),char(215),char(3),char(113),char(1),char(21), -char(255),char(154),char(3),char(113),char(1),char(23),char(255),char(195),char(3),char(113), -char(1),char(25),char(255),char(195),char(3),char(113),char(1),char(29),char(255),char(174), -char(3),char(113),char(1),char(33),char(255),char(174),char(3),char(113),char(1),char(43), -char(255),char(195),char(3),char(113),char(1),char(45),char(255),char(195),char(3),char(113), -char(1),char(47),char(255),char(195),char(3),char(113),char(1),char(49),char(255),char(195), -char(3),char(113),char(1),char(51),char(255),char(195),char(3),char(113),char(1),char(53), -char(255),char(195),char(3),char(113),char(1),char(60),char(255),char(215),char(3),char(113), -char(1),char(62),char(255),char(215),char(3),char(113),char(1),char(64),char(255),char(215), -char(3),char(113),char(1),char(67),char(255),char(133),char(3),char(113),char(1),char(68), -char(255),char(154),char(3),char(113),char(1),char(70),char(255),char(154),char(3),char(113), -char(1),char(71),char(255),char(215),char(3),char(113),char(1),char(72),char(255),char(154), -char(3),char(113),char(1),char(74),char(255),char(174),char(3),char(113),char(2),char(8), -char(255),char(133),char(3),char(113),char(2),char(12),char(255),char(133),char(3),char(113), -char(2),char(87),char(255),char(195),char(3),char(113),char(2),char(88),char(255),char(133), -char(3),char(113),char(2),char(89),char(255),char(154),char(3),char(113),char(2),char(95), -char(255),char(215),char(3),char(113),char(2),char(96),char(255),char(154),char(3),char(113), -char(2),char(98),char(255),char(195),char(3),char(113),char(3),char(29),char(255),char(133), -char(3),char(113),char(3),char(30),char(255),char(154),char(3),char(113),char(3),char(31), -char(255),char(133),char(3),char(113),char(3),char(32),char(255),char(154),char(3),char(113), -char(3),char(33),char(255),char(133),char(3),char(113),char(3),char(34),char(255),char(154), -char(3),char(113),char(3),char(35),char(255),char(133),char(3),char(113),char(3),char(37), -char(255),char(133),char(3),char(113),char(3),char(38),char(255),char(154),char(3),char(113), -char(3),char(39),char(255),char(133),char(3),char(113),char(3),char(40),char(255),char(154), -char(3),char(113),char(3),char(41),char(255),char(133),char(3),char(113),char(3),char(42), -char(255),char(154),char(3),char(113),char(3),char(43),char(255),char(133),char(3),char(113), -char(3),char(44),char(255),char(154),char(3),char(113),char(3),char(45),char(255),char(133), -char(3),char(113),char(3),char(46),char(255),char(154),char(3),char(113),char(3),char(47), -char(255),char(133),char(3),char(113),char(3),char(48),char(255),char(154),char(3),char(113), -char(3),char(49),char(255),char(133),char(3),char(113),char(3),char(50),char(255),char(154), -char(3),char(113),char(3),char(51),char(255),char(133),char(3),char(113),char(3),char(52), -char(255),char(154),char(3),char(113),char(3),char(54),char(255),char(154),char(3),char(113), -char(3),char(56),char(255),char(154),char(3),char(113),char(3),char(58),char(255),char(154), -char(3),char(113),char(3),char(60),char(255),char(154),char(3),char(113),char(3),char(64), -char(255),char(154),char(3),char(113),char(3),char(66),char(255),char(154),char(3),char(113), -char(3),char(68),char(255),char(154),char(3),char(113),char(3),char(73),char(255),char(215), -char(3),char(113),char(3),char(74),char(255),char(154),char(3),char(113),char(3),char(75), -char(255),char(215),char(3),char(113),char(3),char(76),char(255),char(154),char(3),char(113), -char(3),char(77),char(255),char(215),char(3),char(113),char(3),char(78),char(255),char(154), -char(3),char(113),char(3),char(79),char(255),char(215),char(3),char(113),char(3),char(81), -char(255),char(215),char(3),char(113),char(3),char(82),char(255),char(154),char(3),char(113), -char(3),char(83),char(255),char(215),char(3),char(113),char(3),char(84),char(255),char(154), -char(3),char(113),char(3),char(85),char(255),char(215),char(3),char(113),char(3),char(86), -char(255),char(154),char(3),char(113),char(3),char(87),char(255),char(215),char(3),char(113), -char(3),char(88),char(255),char(154),char(3),char(113),char(3),char(89),char(255),char(215), -char(3),char(113),char(3),char(90),char(255),char(154),char(3),char(113),char(3),char(91), -char(255),char(215),char(3),char(113),char(3),char(92),char(255),char(154),char(3),char(113), -char(3),char(93),char(255),char(215),char(3),char(113),char(3),char(94),char(255),char(154), -char(3),char(113),char(3),char(95),char(255),char(215),char(3),char(113),char(3),char(96), -char(255),char(154),char(3),char(113),char(3),char(98),char(255),char(195),char(3),char(113), -char(3),char(100),char(255),char(195),char(3),char(113),char(3),char(102),char(255),char(195), -char(3),char(113),char(3),char(104),char(255),char(195),char(3),char(113),char(3),char(106), -char(255),char(195),char(3),char(113),char(3),char(108),char(255),char(195),char(3),char(113), -char(3),char(110),char(255),char(195),char(3),char(114),char(0),char(5),char(0),char(82), -char(3),char(114),char(0),char(10),char(0),char(82),char(3),char(114),char(0),char(15), -char(255),char(174),char(3),char(114),char(0),char(17),char(255),char(174),char(3),char(114), -char(0),char(34),char(0),char(41),char(3),char(114),char(2),char(7),char(0),char(82), -char(3),char(114),char(2),char(8),char(255),char(174),char(3),char(114),char(2),char(11), -char(0),char(82),char(3),char(114),char(2),char(12),char(255),char(174),char(3),char(115), -char(0),char(15),char(255),char(133),char(3),char(115),char(0),char(17),char(255),char(133), -char(3),char(115),char(0),char(34),char(0),char(41),char(3),char(115),char(0),char(36), -char(255),char(133),char(3),char(115),char(0),char(38),char(255),char(215),char(3),char(115), -char(0),char(42),char(255),char(215),char(3),char(115),char(0),char(50),char(255),char(215), -char(3),char(115),char(0),char(52),char(255),char(215),char(3),char(115),char(0),char(68), -char(255),char(154),char(3),char(115),char(0),char(70),char(255),char(154),char(3),char(115), -char(0),char(71),char(255),char(154),char(3),char(115),char(0),char(72),char(255),char(154), -char(3),char(115),char(0),char(74),char(255),char(215),char(3),char(115),char(0),char(80), -char(255),char(195),char(3),char(115),char(0),char(81),char(255),char(195),char(3),char(115), -char(0),char(82),char(255),char(154),char(3),char(115),char(0),char(83),char(255),char(195), -char(3),char(115),char(0),char(84),char(255),char(154),char(3),char(115),char(0),char(85), -char(255),char(195),char(3),char(115),char(0),char(86),char(255),char(174),char(3),char(115), -char(0),char(88),char(255),char(195),char(3),char(115),char(0),char(93),char(255),char(215), -char(3),char(115),char(0),char(130),char(255),char(133),char(3),char(115),char(0),char(131), -char(255),char(133),char(3),char(115),char(0),char(132),char(255),char(133),char(3),char(115), -char(0),char(133),char(255),char(133),char(3),char(115),char(0),char(134),char(255),char(133), -char(3),char(115),char(0),char(135),char(255),char(133),char(3),char(115),char(0),char(137), -char(255),char(215),char(3),char(115),char(0),char(148),char(255),char(215),char(3),char(115), -char(0),char(149),char(255),char(215),char(3),char(115),char(0),char(150),char(255),char(215), -char(3),char(115),char(0),char(151),char(255),char(215),char(3),char(115),char(0),char(152), -char(255),char(215),char(3),char(115),char(0),char(154),char(255),char(215),char(3),char(115), -char(0),char(162),char(255),char(154),char(3),char(115),char(0),char(163),char(255),char(154), -char(3),char(115),char(0),char(164),char(255),char(154),char(3),char(115),char(0),char(165), -char(255),char(154),char(3),char(115),char(0),char(166),char(255),char(154),char(3),char(115), -char(0),char(167),char(255),char(154),char(3),char(115),char(0),char(168),char(255),char(154), -char(3),char(115),char(0),char(169),char(255),char(154),char(3),char(115),char(0),char(170), -char(255),char(154),char(3),char(115),char(0),char(171),char(255),char(154),char(3),char(115), -char(0),char(172),char(255),char(154),char(3),char(115),char(0),char(173),char(255),char(154), -char(3),char(115),char(0),char(180),char(255),char(154),char(3),char(115),char(0),char(181), -char(255),char(154),char(3),char(115),char(0),char(182),char(255),char(154),char(3),char(115), -char(0),char(183),char(255),char(154),char(3),char(115),char(0),char(184),char(255),char(154), -char(3),char(115),char(0),char(186),char(255),char(154),char(3),char(115),char(0),char(187), -char(255),char(195),char(3),char(115),char(0),char(188),char(255),char(195),char(3),char(115), -char(0),char(189),char(255),char(195),char(3),char(115),char(0),char(190),char(255),char(195), -char(3),char(115),char(0),char(194),char(255),char(133),char(3),char(115),char(0),char(195), -char(255),char(154),char(3),char(115),char(0),char(196),char(255),char(133),char(3),char(115), -char(0),char(197),char(255),char(154),char(3),char(115),char(0),char(198),char(255),char(133), -char(3),char(115),char(0),char(199),char(255),char(154),char(3),char(115),char(0),char(200), -char(255),char(215),char(3),char(115),char(0),char(201),char(255),char(154),char(3),char(115), -char(0),char(202),char(255),char(215),char(3),char(115),char(0),char(203),char(255),char(154), -char(3),char(115),char(0),char(204),char(255),char(215),char(3),char(115),char(0),char(205), -char(255),char(154),char(3),char(115),char(0),char(206),char(255),char(215),char(3),char(115), -char(0),char(207),char(255),char(154),char(3),char(115),char(0),char(209),char(255),char(154), -char(3),char(115),char(0),char(211),char(255),char(154),char(3),char(115),char(0),char(213), -char(255),char(154),char(3),char(115),char(0),char(215),char(255),char(154),char(3),char(115), -char(0),char(217),char(255),char(154),char(3),char(115),char(0),char(219),char(255),char(154), -char(3),char(115),char(0),char(221),char(255),char(154),char(3),char(115),char(0),char(222), -char(255),char(215),char(3),char(115),char(0),char(223),char(255),char(215),char(3),char(115), -char(0),char(224),char(255),char(215),char(3),char(115),char(0),char(225),char(255),char(215), -char(3),char(115),char(0),char(226),char(255),char(215),char(3),char(115),char(0),char(227), -char(255),char(215),char(3),char(115),char(0),char(228),char(255),char(215),char(3),char(115), -char(0),char(229),char(255),char(215),char(3),char(115),char(0),char(250),char(255),char(195), -char(3),char(115),char(1),char(6),char(255),char(195),char(3),char(115),char(1),char(8), -char(255),char(195),char(3),char(115),char(1),char(13),char(255),char(195),char(3),char(115), -char(1),char(14),char(255),char(215),char(3),char(115),char(1),char(15),char(255),char(154), -char(3),char(115),char(1),char(16),char(255),char(215),char(3),char(115),char(1),char(17), -char(255),char(154),char(3),char(115),char(1),char(18),char(255),char(215),char(3),char(115), -char(1),char(19),char(255),char(154),char(3),char(115),char(1),char(20),char(255),char(215), -char(3),char(115),char(1),char(21),char(255),char(154),char(3),char(115),char(1),char(23), -char(255),char(195),char(3),char(115),char(1),char(25),char(255),char(195),char(3),char(115), -char(1),char(29),char(255),char(174),char(3),char(115),char(1),char(33),char(255),char(174), -char(3),char(115),char(1),char(43),char(255),char(195),char(3),char(115),char(1),char(45), -char(255),char(195),char(3),char(115),char(1),char(47),char(255),char(195),char(3),char(115), -char(1),char(49),char(255),char(195),char(3),char(115),char(1),char(51),char(255),char(195), -char(3),char(115),char(1),char(53),char(255),char(195),char(3),char(115),char(1),char(60), -char(255),char(215),char(3),char(115),char(1),char(62),char(255),char(215),char(3),char(115), -char(1),char(64),char(255),char(215),char(3),char(115),char(1),char(67),char(255),char(133), -char(3),char(115),char(1),char(68),char(255),char(154),char(3),char(115),char(1),char(70), -char(255),char(154),char(3),char(115),char(1),char(71),char(255),char(215),char(3),char(115), -char(1),char(72),char(255),char(154),char(3),char(115),char(1),char(74),char(255),char(174), -char(3),char(115),char(2),char(8),char(255),char(133),char(3),char(115),char(2),char(12), -char(255),char(133),char(3),char(115),char(2),char(87),char(255),char(195),char(3),char(115), -char(2),char(88),char(255),char(133),char(3),char(115),char(2),char(89),char(255),char(154), -char(3),char(115),char(2),char(95),char(255),char(215),char(3),char(115),char(2),char(96), -char(255),char(154),char(3),char(115),char(2),char(98),char(255),char(195),char(3),char(115), -char(3),char(29),char(255),char(133),char(3),char(115),char(3),char(30),char(255),char(154), -char(3),char(115),char(3),char(31),char(255),char(133),char(3),char(115),char(3),char(32), -char(255),char(154),char(3),char(115),char(3),char(33),char(255),char(133),char(3),char(115), -char(3),char(34),char(255),char(154),char(3),char(115),char(3),char(35),char(255),char(133), -char(3),char(115),char(3),char(37),char(255),char(133),char(3),char(115),char(3),char(38), -char(255),char(154),char(3),char(115),char(3),char(39),char(255),char(133),char(3),char(115), -char(3),char(40),char(255),char(154),char(3),char(115),char(3),char(41),char(255),char(133), -char(3),char(115),char(3),char(42),char(255),char(154),char(3),char(115),char(3),char(43), -char(255),char(133),char(3),char(115),char(3),char(44),char(255),char(154),char(3),char(115), -char(3),char(45),char(255),char(133),char(3),char(115),char(3),char(46),char(255),char(154), -char(3),char(115),char(3),char(47),char(255),char(133),char(3),char(115),char(3),char(48), -char(255),char(154),char(3),char(115),char(3),char(49),char(255),char(133),char(3),char(115), -char(3),char(50),char(255),char(154),char(3),char(115),char(3),char(51),char(255),char(133), -char(3),char(115),char(3),char(52),char(255),char(154),char(3),char(115),char(3),char(54), -char(255),char(154),char(3),char(115),char(3),char(56),char(255),char(154),char(3),char(115), -char(3),char(58),char(255),char(154),char(3),char(115),char(3),char(60),char(255),char(154), -char(3),char(115),char(3),char(64),char(255),char(154),char(3),char(115),char(3),char(66), -char(255),char(154),char(3),char(115),char(3),char(68),char(255),char(154),char(3),char(115), -char(3),char(73),char(255),char(215),char(3),char(115),char(3),char(74),char(255),char(154), -char(3),char(115),char(3),char(75),char(255),char(215),char(3),char(115),char(3),char(76), -char(255),char(154),char(3),char(115),char(3),char(77),char(255),char(215),char(3),char(115), -char(3),char(78),char(255),char(154),char(3),char(115),char(3),char(79),char(255),char(215), -char(3),char(115),char(3),char(81),char(255),char(215),char(3),char(115),char(3),char(82), -char(255),char(154),char(3),char(115),char(3),char(83),char(255),char(215),char(3),char(115), -char(3),char(84),char(255),char(154),char(3),char(115),char(3),char(85),char(255),char(215), -char(3),char(115),char(3),char(86),char(255),char(154),char(3),char(115),char(3),char(87), -char(255),char(215),char(3),char(115),char(3),char(88),char(255),char(154),char(3),char(115), -char(3),char(89),char(255),char(215),char(3),char(115),char(3),char(90),char(255),char(154), -char(3),char(115),char(3),char(91),char(255),char(215),char(3),char(115),char(3),char(92), -char(255),char(154),char(3),char(115),char(3),char(93),char(255),char(215),char(3),char(115), -char(3),char(94),char(255),char(154),char(3),char(115),char(3),char(95),char(255),char(215), -char(3),char(115),char(3),char(96),char(255),char(154),char(3),char(115),char(3),char(98), -char(255),char(195),char(3),char(115),char(3),char(100),char(255),char(195),char(3),char(115), -char(3),char(102),char(255),char(195),char(3),char(115),char(3),char(104),char(255),char(195), -char(3),char(115),char(3),char(106),char(255),char(195),char(3),char(115),char(3),char(108), -char(255),char(195),char(3),char(115),char(3),char(110),char(255),char(195),char(3),char(116), -char(0),char(5),char(0),char(82),char(3),char(116),char(0),char(10),char(0),char(82), -char(3),char(116),char(0),char(15),char(255),char(174),char(3),char(116),char(0),char(17), -char(255),char(174),char(3),char(116),char(0),char(34),char(0),char(41),char(3),char(116), -char(2),char(7),char(0),char(82),char(3),char(116),char(2),char(8),char(255),char(174), -char(3),char(116),char(2),char(11),char(0),char(82),char(3),char(116),char(2),char(12), -char(255),char(174),char(3),char(141),char(0),char(5),char(0),char(123),char(3),char(141), -char(0),char(10),char(0),char(123),char(3),char(141),char(2),char(7),char(0),char(123), -char(3),char(141),char(2),char(11),char(0),char(123),char(3),char(143),char(0),char(15), -char(255),char(133),char(3),char(143),char(0),char(16),char(255),char(174),char(3),char(143), -char(0),char(17),char(255),char(133),char(3),char(143),char(0),char(34),char(0),char(41), -char(3),char(143),char(0),char(36),char(255),char(113),char(3),char(143),char(0),char(38), -char(255),char(215),char(3),char(143),char(0),char(42),char(255),char(215),char(3),char(143), -char(0),char(50),char(255),char(215),char(3),char(143),char(0),char(52),char(255),char(215), -char(3),char(143),char(0),char(55),char(0),char(41),char(3),char(143),char(0),char(68), -char(255),char(92),char(3),char(143),char(0),char(70),char(255),char(113),char(3),char(143), -char(0),char(71),char(255),char(113),char(3),char(143),char(0),char(72),char(255),char(113), -char(3),char(143),char(0),char(74),char(255),char(113),char(3),char(143),char(0),char(80), -char(255),char(154),char(3),char(143),char(0),char(81),char(255),char(154),char(3),char(143), -char(0),char(82),char(255),char(113),char(3),char(143),char(0),char(83),char(255),char(154), -char(3),char(143),char(0),char(84),char(255),char(113),char(3),char(143),char(0),char(85), -char(255),char(154),char(3),char(143),char(0),char(86),char(255),char(133),char(3),char(143), -char(0),char(88),char(255),char(154),char(3),char(143),char(0),char(89),char(255),char(215), -char(3),char(143),char(0),char(90),char(255),char(215),char(3),char(143),char(0),char(91), -char(255),char(215),char(3),char(143),char(0),char(92),char(255),char(215),char(3),char(143), -char(0),char(93),char(255),char(174),char(3),char(143),char(0),char(130),char(255),char(113), -char(3),char(143),char(0),char(131),char(255),char(113),char(3),char(143),char(0),char(132), -char(255),char(113),char(3),char(143),char(0),char(133),char(255),char(113),char(3),char(143), -char(0),char(134),char(255),char(113),char(3),char(143),char(0),char(135),char(255),char(113), -char(3),char(143),char(0),char(137),char(255),char(215),char(3),char(143),char(0),char(148), -char(255),char(215),char(3),char(143),char(0),char(149),char(255),char(215),char(3),char(143), -char(0),char(150),char(255),char(215),char(3),char(143),char(0),char(151),char(255),char(215), -char(3),char(143),char(0),char(152),char(255),char(215),char(3),char(143),char(0),char(154), -char(255),char(215),char(3),char(143),char(0),char(162),char(255),char(113),char(3),char(143), -char(0),char(163),char(255),char(92),char(3),char(143),char(0),char(164),char(255),char(92), -char(3),char(143),char(0),char(165),char(255),char(92),char(3),char(143),char(0),char(166), -char(255),char(92),char(3),char(143),char(0),char(167),char(255),char(92),char(3),char(143), -char(0),char(168),char(255),char(92),char(3),char(143),char(0),char(169),char(255),char(113), -char(3),char(143),char(0),char(170),char(255),char(113),char(3),char(143),char(0),char(171), -char(255),char(113),char(3),char(143),char(0),char(172),char(255),char(113),char(3),char(143), -char(0),char(173),char(255),char(113),char(3),char(143),char(0),char(180),char(255),char(113), -char(3),char(143),char(0),char(181),char(255),char(113),char(3),char(143),char(0),char(182), -char(255),char(113),char(3),char(143),char(0),char(183),char(255),char(113),char(3),char(143), -char(0),char(184),char(255),char(113),char(3),char(143),char(0),char(186),char(255),char(113), -char(3),char(143),char(0),char(187),char(255),char(154),char(3),char(143),char(0),char(188), -char(255),char(154),char(3),char(143),char(0),char(189),char(255),char(154),char(3),char(143), -char(0),char(190),char(255),char(154),char(3),char(143),char(0),char(191),char(255),char(215), -char(3),char(143),char(0),char(194),char(255),char(113),char(3),char(143),char(0),char(195), -char(255),char(92),char(3),char(143),char(0),char(196),char(255),char(113),char(3),char(143), -char(0),char(197),char(255),char(92),char(3),char(143),char(0),char(198),char(255),char(113), -char(3),char(143),char(0),char(199),char(255),char(92),char(3),char(143),char(0),char(200), -char(255),char(215),char(3),char(143),char(0),char(201),char(255),char(113),char(3),char(143), -char(0),char(202),char(255),char(215),char(3),char(143),char(0),char(203),char(255),char(113), -char(3),char(143),char(0),char(204),char(255),char(215),char(3),char(143),char(0),char(205), -char(255),char(113),char(3),char(143),char(0),char(206),char(255),char(215),char(3),char(143), -char(0),char(207),char(255),char(113),char(3),char(143),char(0),char(209),char(255),char(113), -char(3),char(143),char(0),char(211),char(255),char(113),char(3),char(143),char(0),char(213), -char(255),char(113),char(3),char(143),char(0),char(215),char(255),char(113),char(3),char(143), -char(0),char(217),char(255),char(113),char(3),char(143),char(0),char(219),char(255),char(113), -char(3),char(143),char(0),char(221),char(255),char(113),char(3),char(143),char(0),char(222), -char(255),char(215),char(3),char(143),char(0),char(223),char(255),char(113),char(3),char(143), -char(0),char(224),char(255),char(215),char(3),char(143),char(0),char(225),char(255),char(113), -char(3),char(143),char(0),char(226),char(255),char(215),char(3),char(143),char(0),char(227), -char(255),char(113),char(3),char(143),char(0),char(228),char(255),char(215),char(3),char(143), -char(0),char(229),char(255),char(113),char(3),char(143),char(0),char(250),char(255),char(154), -char(3),char(143),char(1),char(6),char(255),char(154),char(3),char(143),char(1),char(8), -char(255),char(154),char(3),char(143),char(1),char(13),char(255),char(154),char(3),char(143), -char(1),char(14),char(255),char(215),char(3),char(143),char(1),char(15),char(255),char(113), -char(3),char(143),char(1),char(16),char(255),char(215),char(3),char(143),char(1),char(17), -char(255),char(113),char(3),char(143),char(1),char(18),char(255),char(215),char(3),char(143), -char(1),char(19),char(255),char(113),char(3),char(143),char(1),char(20),char(255),char(215), -char(3),char(143),char(1),char(21),char(255),char(113),char(3),char(143),char(1),char(23), -char(255),char(154),char(3),char(143),char(1),char(25),char(255),char(154),char(3),char(143), -char(1),char(29),char(255),char(133),char(3),char(143),char(1),char(33),char(255),char(133), -char(3),char(143),char(1),char(36),char(0),char(41),char(3),char(143),char(1),char(38), -char(0),char(41),char(3),char(143),char(1),char(43),char(255),char(154),char(3),char(143), -char(1),char(45),char(255),char(154),char(3),char(143),char(1),char(47),char(255),char(154), -char(3),char(143),char(1),char(49),char(255),char(154),char(3),char(143),char(1),char(51), -char(255),char(154),char(3),char(143),char(1),char(53),char(255),char(154),char(3),char(143), -char(1),char(55),char(255),char(215),char(3),char(143),char(1),char(60),char(255),char(174), -char(3),char(143),char(1),char(62),char(255),char(174),char(3),char(143),char(1),char(64), -char(255),char(174),char(3),char(143),char(1),char(67),char(255),char(113),char(3),char(143), -char(1),char(68),char(255),char(92),char(3),char(143),char(1),char(70),char(255),char(92), -char(3),char(143),char(1),char(71),char(255),char(215),char(3),char(143),char(1),char(72), -char(255),char(113),char(3),char(143),char(1),char(74),char(255),char(133),char(3),char(143), -char(1),char(251),char(255),char(215),char(3),char(143),char(1),char(253),char(255),char(215), -char(3),char(143),char(2),char(2),char(255),char(174),char(3),char(143),char(2),char(3), -char(255),char(174),char(3),char(143),char(2),char(4),char(255),char(174),char(3),char(143), -char(2),char(8),char(255),char(133),char(3),char(143),char(2),char(12),char(255),char(133), -char(3),char(143),char(2),char(87),char(255),char(154),char(3),char(143),char(2),char(88), -char(255),char(113),char(3),char(143),char(2),char(89),char(255),char(92),char(3),char(143), -char(2),char(95),char(255),char(215),char(3),char(143),char(2),char(96),char(255),char(113), -char(3),char(143),char(2),char(98),char(255),char(154),char(3),char(143),char(3),char(29), -char(255),char(113),char(3),char(143),char(3),char(30),char(255),char(92),char(3),char(143), -char(3),char(31),char(255),char(113),char(3),char(143),char(3),char(32),char(255),char(92), -char(3),char(143),char(3),char(33),char(255),char(113),char(3),char(143),char(3),char(34), -char(255),char(92),char(3),char(143),char(3),char(35),char(255),char(113),char(3),char(143), -char(3),char(37),char(255),char(113),char(3),char(143),char(3),char(38),char(255),char(92), -char(3),char(143),char(3),char(39),char(255),char(113),char(3),char(143),char(3),char(40), -char(255),char(92),char(3),char(143),char(3),char(41),char(255),char(113),char(3),char(143), -char(3),char(42),char(255),char(92),char(3),char(143),char(3),char(43),char(255),char(113), -char(3),char(143),char(3),char(44),char(255),char(92),char(3),char(143),char(3),char(45), -char(255),char(113),char(3),char(143),char(3),char(46),char(255),char(92),char(3),char(143), -char(3),char(47),char(255),char(113),char(3),char(143),char(3),char(48),char(255),char(92), -char(3),char(143),char(3),char(49),char(255),char(113),char(3),char(143),char(3),char(50), -char(255),char(92),char(3),char(143),char(3),char(51),char(255),char(113),char(3),char(143), -char(3),char(52),char(255),char(92),char(3),char(143),char(3),char(54),char(255),char(113), -char(3),char(143),char(3),char(56),char(255),char(113),char(3),char(143),char(3),char(58), -char(255),char(113),char(3),char(143),char(3),char(60),char(255),char(113),char(3),char(143), -char(3),char(64),char(255),char(113),char(3),char(143),char(3),char(66),char(255),char(113), -char(3),char(143),char(3),char(68),char(255),char(113),char(3),char(143),char(3),char(73), -char(255),char(215),char(3),char(143),char(3),char(74),char(255),char(113),char(3),char(143), -char(3),char(75),char(255),char(215),char(3),char(143),char(3),char(76),char(255),char(113), -char(3),char(143),char(3),char(77),char(255),char(215),char(3),char(143),char(3),char(78), -char(255),char(113),char(3),char(143),char(3),char(79),char(255),char(215),char(3),char(143), -char(3),char(81),char(255),char(215),char(3),char(143),char(3),char(82),char(255),char(113), -char(3),char(143),char(3),char(83),char(255),char(215),char(3),char(143),char(3),char(84), -char(255),char(113),char(3),char(143),char(3),char(85),char(255),char(215),char(3),char(143), -char(3),char(86),char(255),char(113),char(3),char(143),char(3),char(87),char(255),char(215), -char(3),char(143),char(3),char(88),char(255),char(113),char(3),char(143),char(3),char(89), -char(255),char(215),char(3),char(143),char(3),char(90),char(255),char(113),char(3),char(143), -char(3),char(91),char(255),char(215),char(3),char(143),char(3),char(92),char(255),char(113), -char(3),char(143),char(3),char(93),char(255),char(215),char(3),char(143),char(3),char(94), -char(255),char(113),char(3),char(143),char(3),char(95),char(255),char(215),char(3),char(143), -char(3),char(96),char(255),char(113),char(3),char(143),char(3),char(98),char(255),char(154), -char(3),char(143),char(3),char(100),char(255),char(154),char(3),char(143),char(3),char(102), -char(255),char(154),char(3),char(143),char(3),char(104),char(255),char(154),char(3),char(143), -char(3),char(106),char(255),char(154),char(3),char(143),char(3),char(108),char(255),char(154), -char(3),char(143),char(3),char(110),char(255),char(154),char(3),char(143),char(3),char(112), -char(255),char(215),char(3),char(143),char(3),char(143),char(0),char(41),char(3),char(144), -char(0),char(5),char(0),char(41),char(3),char(144),char(0),char(10),char(0),char(41), -char(3),char(144),char(2),char(7),char(0),char(41),char(3),char(144),char(2),char(11), -char(0),char(41),char(0),char(0),char(0),char(0),char(0),char(26),char(1),char(62), -char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(57), -char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(1), -char(0),char(9),char(0),char(57),char(0),char(1),char(0),char(0),char(0),char(0), -char(0),char(2),char(0),char(7),char(0),char(66),char(0),char(1),char(0),char(0), -char(0),char(0),char(0),char(3),char(0),char(30),char(0),char(73),char(0),char(1), -char(0),char(0),char(0),char(0),char(0),char(4),char(0),char(9),char(0),char(57), -char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(5),char(0),char(12), -char(0),char(103),char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(6), -char(0),char(8),char(0),char(115),char(0),char(1),char(0),char(0),char(0),char(0), -char(0),char(7),char(0),char(82),char(0),char(123),char(0),char(1),char(0),char(0), -char(0),char(0),char(0),char(8),char(0),char(20),char(0),char(205),char(0),char(1), -char(0),char(0),char(0),char(0),char(0),char(11),char(0),char(28),char(0),char(225), -char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(12),char(0),char(46), -char(0),char(253),char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(13), -char(0),char(46),char(1),char(43),char(0),char(1),char(0),char(0),char(0),char(0), -char(0),char(14),char(0),char(42),char(1),char(89),char(0),char(3),char(0),char(1), -char(4),char(9),char(0),char(0),char(0),char(114),char(1),char(131),char(0),char(3), -char(0),char(1),char(4),char(9),char(0),char(1),char(0),char(18),char(1),char(245), -char(0),char(3),char(0),char(1),char(4),char(9),char(0),char(2),char(0),char(14), -char(2),char(7),char(0),char(3),char(0),char(1),char(4),char(9),char(0),char(3), -char(0),char(60),char(2),char(21),char(0),char(3),char(0),char(1),char(4),char(9), -char(0),char(4),char(0),char(18),char(1),char(245),char(0),char(3),char(0),char(1), -char(4),char(9),char(0),char(5),char(0),char(24),char(2),char(81),char(0),char(3), -char(0),char(1),char(4),char(9),char(0),char(6),char(0),char(16),char(2),char(105), -char(0),char(3),char(0),char(1),char(4),char(9),char(0),char(7),char(0),char(164), -char(2),char(121),char(0),char(3),char(0),char(1),char(4),char(9),char(0),char(8), -char(0),char(40),char(3),char(29),char(0),char(3),char(0),char(1),char(4),char(9), -char(0),char(11),char(0),char(56),char(3),char(69),char(0),char(3),char(0),char(1), -char(4),char(9),char(0),char(12),char(0),char(92),char(3),char(125),char(0),char(3), -char(0),char(1),char(4),char(9),char(0),char(13),char(0),char(92),char(3),char(217), -char(0),char(3),char(0),char(1),char(4),char(9),char(0),char(14),char(0),char(84), -char(4),char(53),char(68),char(105),char(103),char(105),char(116),char(105),char(122),char(101), -char(100),char(32),char(100),char(97),char(116),char(97),char(32),char(99),char(111),char(112), -char(121),char(114),char(105),char(103),char(104),char(116),char(32),char(169),char(32),char(50), -char(48),char(49),char(48),char(45),char(50),char(48),char(49),char(49),char(44),char(32), -char(71),char(111),char(111),char(103),char(108),char(101),char(32),char(67),char(111),char(114), -char(112),char(111),char(114),char(97),char(116),char(105),char(111),char(110),char(46),char(79), -char(112),char(101),char(110),char(32),char(83),char(97),char(110),char(115),char(82),char(101), -char(103),char(117),char(108),char(97),char(114),char(65),char(115),char(99),char(101),char(110), -char(100),char(101),char(114),char(32),char(45),char(32),char(79),char(112),char(101),char(110), -char(32),char(83),char(97),char(110),char(115),char(32),char(66),char(117),char(105),char(108), -char(100),char(32),char(49),char(48),char(48),char(86),char(101),char(114),char(115),char(105), -char(111),char(110),char(32),char(49),char(46),char(49),char(48),char(79),char(112),char(101), -char(110),char(83),char(97),char(110),char(115),char(79),char(112),char(101),char(110),char(32), -char(83),char(97),char(110),char(115),char(32),char(105),char(115),char(32),char(97),char(32), -char(116),char(114),char(97),char(100),char(101),char(109),char(97),char(114),char(107),char(32), -char(111),char(102),char(32),char(71),char(111),char(111),char(103),char(108),char(101),char(32), -char(97),char(110),char(100),char(32),char(109),char(97),char(121),char(32),char(98),char(101), -char(32),char(114),char(101),char(103),char(105),char(115),char(116),char(101),char(114),char(101), -char(100),char(32),char(105),char(110),char(32),char(99),char(101),char(114),char(116),char(97), -char(105),char(110),char(32),char(106),char(117),char(114),char(105),char(115),char(100),char(105), -char(99),char(116),char(105),char(111),char(110),char(115),char(46),char(65),char(115),char(99), -char(101),char(110),char(100),char(101),char(114),char(32),char(67),char(111),char(114),char(112), -char(111),char(114),char(97),char(116),char(105),char(111),char(110),char(104),char(116),char(116), -char(112),char(58),char(47),char(47),char(119),char(119),char(119),char(46),char(97),char(115), -char(99),char(101),char(110),char(100),char(101),char(114),char(99),char(111),char(114),char(112), -char(46),char(99),char(111),char(109),char(47),char(104),char(116),char(116),char(112),char(58), -char(47),char(47),char(119),char(119),char(119),char(46),char(97),char(115),char(99),char(101), -char(110),char(100),char(101),char(114),char(99),char(111),char(114),char(112),char(46),char(99), -char(111),char(109),char(47),char(116),char(121),char(112),char(101),char(100),char(101),char(115), -char(105),char(103),char(110),char(101),char(114),char(115),char(46),char(104),char(116),char(109), -char(108),char(76),char(105),char(99),char(101),char(110),char(115),char(101),char(100),char(32), -char(117),char(110),char(100),char(101),char(114),char(32),char(116),char(104),char(101),char(32), -char(65),char(112),char(97),char(99),char(104),char(101),char(32),char(76),char(105),char(99), -char(101),char(110),char(115),char(101),char(44),char(32),char(86),char(101),char(114),char(115), -char(105),char(111),char(110),char(32),char(50),char(46),char(48),char(104),char(116),char(116), -char(112),char(58),char(47),char(47),char(119),char(119),char(119),char(46),char(97),char(112), -char(97),char(99),char(104),char(101),char(46),char(111),char(114),char(103),char(47),char(108), -char(105),char(99),char(101),char(110),char(115),char(101),char(115),char(47),char(76),char(73), -char(67),char(69),char(78),char(83),char(69),char(45),char(50),char(46),char(48),char(0), -char(68),char(0),char(105),char(0),char(103),char(0),char(105),char(0),char(116),char(0), -char(105),char(0),char(122),char(0),char(101),char(0),char(100),char(0),char(32),char(0), -char(100),char(0),char(97),char(0),char(116),char(0),char(97),char(0),char(32),char(0), -char(99),char(0),char(111),char(0),char(112),char(0),char(121),char(0),char(114),char(0), -char(105),char(0),char(103),char(0),char(104),char(0),char(116),char(0),char(32),char(0), -char(169),char(0),char(32),char(0),char(50),char(0),char(48),char(0),char(49),char(0), -char(48),char(0),char(45),char(0),char(50),char(0),char(48),char(0),char(49),char(0), -char(49),char(0),char(44),char(0),char(32),char(0),char(71),char(0),char(111),char(0), -char(111),char(0),char(103),char(0),char(108),char(0),char(101),char(0),char(32),char(0), -char(67),char(0),char(111),char(0),char(114),char(0),char(112),char(0),char(111),char(0), -char(114),char(0),char(97),char(0),char(116),char(0),char(105),char(0),char(111),char(0), -char(110),char(0),char(46),char(0),char(79),char(0),char(112),char(0),char(101),char(0), -char(110),char(0),char(32),char(0),char(83),char(0),char(97),char(0),char(110),char(0), -char(115),char(0),char(82),char(0),char(101),char(0),char(103),char(0),char(117),char(0), -char(108),char(0),char(97),char(0),char(114),char(0),char(65),char(0),char(115),char(0), -char(99),char(0),char(101),char(0),char(110),char(0),char(100),char(0),char(101),char(0), -char(114),char(0),char(32),char(0),char(45),char(0),char(32),char(0),char(79),char(0), -char(112),char(0),char(101),char(0),char(110),char(0),char(32),char(0),char(83),char(0), -char(97),char(0),char(110),char(0),char(115),char(0),char(32),char(0),char(66),char(0), -char(117),char(0),char(105),char(0),char(108),char(0),char(100),char(0),char(32),char(0), -char(49),char(0),char(48),char(0),char(48),char(0),char(86),char(0),char(101),char(0), -char(114),char(0),char(115),char(0),char(105),char(0),char(111),char(0),char(110),char(0), -char(32),char(0),char(49),char(0),char(46),char(0),char(49),char(0),char(48),char(0), -char(79),char(0),char(112),char(0),char(101),char(0),char(110),char(0),char(83),char(0), -char(97),char(0),char(110),char(0),char(115),char(0),char(79),char(0),char(112),char(0), -char(101),char(0),char(110),char(0),char(32),char(0),char(83),char(0),char(97),char(0), -char(110),char(0),char(115),char(0),char(32),char(0),char(105),char(0),char(115),char(0), -char(32),char(0),char(97),char(0),char(32),char(0),char(116),char(0),char(114),char(0), -char(97),char(0),char(100),char(0),char(101),char(0),char(109),char(0),char(97),char(0), -char(114),char(0),char(107),char(0),char(32),char(0),char(111),char(0),char(102),char(0), -char(32),char(0),char(71),char(0),char(111),char(0),char(111),char(0),char(103),char(0), -char(108),char(0),char(101),char(0),char(32),char(0),char(97),char(0),char(110),char(0), -char(100),char(0),char(32),char(0),char(109),char(0),char(97),char(0),char(121),char(0), -char(32),char(0),char(98),char(0),char(101),char(0),char(32),char(0),char(114),char(0), -char(101),char(0),char(103),char(0),char(105),char(0),char(115),char(0),char(116),char(0), -char(101),char(0),char(114),char(0),char(101),char(0),char(100),char(0),char(32),char(0), -char(105),char(0),char(110),char(0),char(32),char(0),char(99),char(0),char(101),char(0), -char(114),char(0),char(116),char(0),char(97),char(0),char(105),char(0),char(110),char(0), -char(32),char(0),char(106),char(0),char(117),char(0),char(114),char(0),char(105),char(0), -char(115),char(0),char(100),char(0),char(105),char(0),char(99),char(0),char(116),char(0), -char(105),char(0),char(111),char(0),char(110),char(0),char(115),char(0),char(46),char(0), -char(65),char(0),char(115),char(0),char(99),char(0),char(101),char(0),char(110),char(0), -char(100),char(0),char(101),char(0),char(114),char(0),char(32),char(0),char(67),char(0), -char(111),char(0),char(114),char(0),char(112),char(0),char(111),char(0),char(114),char(0), -char(97),char(0),char(116),char(0),char(105),char(0),char(111),char(0),char(110),char(0), -char(104),char(0),char(116),char(0),char(116),char(0),char(112),char(0),char(58),char(0), -char(47),char(0),char(47),char(0),char(119),char(0),char(119),char(0),char(119),char(0), -char(46),char(0),char(97),char(0),char(115),char(0),char(99),char(0),char(101),char(0), -char(110),char(0),char(100),char(0),char(101),char(0),char(114),char(0),char(99),char(0), -char(111),char(0),char(114),char(0),char(112),char(0),char(46),char(0),char(99),char(0), -char(111),char(0),char(109),char(0),char(47),char(0),char(104),char(0),char(116),char(0), -char(116),char(0),char(112),char(0),char(58),char(0),char(47),char(0),char(47),char(0), -char(119),char(0),char(119),char(0),char(119),char(0),char(46),char(0),char(97),char(0), -char(115),char(0),char(99),char(0),char(101),char(0),char(110),char(0),char(100),char(0), -char(101),char(0),char(114),char(0),char(99),char(0),char(111),char(0),char(114),char(0), -char(112),char(0),char(46),char(0),char(99),char(0),char(111),char(0),char(109),char(0), -char(47),char(0),char(116),char(0),char(121),char(0),char(112),char(0),char(101),char(0), -char(100),char(0),char(101),char(0),char(115),char(0),char(105),char(0),char(103),char(0), -char(110),char(0),char(101),char(0),char(114),char(0),char(115),char(0),char(46),char(0), -char(104),char(0),char(116),char(0),char(109),char(0),char(108),char(0),char(76),char(0), -char(105),char(0),char(99),char(0),char(101),char(0),char(110),char(0),char(115),char(0), -char(101),char(0),char(100),char(0),char(32),char(0),char(117),char(0),char(110),char(0), -char(100),char(0),char(101),char(0),char(114),char(0),char(32),char(0),char(116),char(0), -char(104),char(0),char(101),char(0),char(32),char(0),char(65),char(0),char(112),char(0), -char(97),char(0),char(99),char(0),char(104),char(0),char(101),char(0),char(32),char(0), -char(76),char(0),char(105),char(0),char(99),char(0),char(101),char(0),char(110),char(0), -char(115),char(0),char(101),char(0),char(44),char(0),char(32),char(0),char(86),char(0), -char(101),char(0),char(114),char(0),char(115),char(0),char(105),char(0),char(111),char(0), -char(110),char(0),char(32),char(0),char(50),char(0),char(46),char(0),char(48),char(0), -char(104),char(0),char(116),char(0),char(116),char(0),char(112),char(0),char(58),char(0), -char(47),char(0),char(47),char(0),char(119),char(0),char(119),char(0),char(119),char(0), -char(46),char(0),char(97),char(0),char(112),char(0),char(97),char(0),char(99),char(0), -char(104),char(0),char(101),char(0),char(46),char(0),char(111),char(0),char(114),char(0), -char(103),char(0),char(47),char(0),char(108),char(0),char(105),char(0),char(99),char(0), -char(101),char(0),char(110),char(0),char(115),char(0),char(101),char(0),char(115),char(0), -char(47),char(0),char(76),char(0),char(73),char(0),char(67),char(0),char(69),char(0), -char(78),char(0),char(83),char(0),char(69),char(0),char(45),char(0),char(50),char(0), -char(46),char(0),char(48),char(0),char(0),char(2),char(0),char(0),char(0),char(0), -char(0),char(0),char(255),char(102),char(0),char(102),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(0),char(0),char(0),char(0),char(0),char(3),char(170),char(1),char(2), -char(1),char(3),char(1),char(4),char(1),char(5),char(1),char(6),char(1),char(7), -char(1),char(8),char(1),char(9),char(1),char(10),char(1),char(11),char(1),char(12), -char(1),char(13),char(1),char(14),char(1),char(15),char(1),char(16),char(1),char(17), -char(1),char(18),char(1),char(19),char(1),char(20),char(1),char(21),char(1),char(22), -char(1),char(23),char(1),char(24),char(1),char(25),char(1),char(26),char(1),char(27), -char(1),char(28),char(1),char(29),char(1),char(30),char(1),char(31),char(1),char(32), -char(1),char(33),char(1),char(34),char(1),char(35),char(1),char(36),char(1),char(37), -char(1),char(38),char(1),char(39),char(1),char(40),char(1),char(41),char(1),char(42), -char(1),char(43),char(1),char(44),char(1),char(45),char(1),char(46),char(1),char(47), -char(1),char(48),char(1),char(49),char(1),char(50),char(1),char(51),char(1),char(52), -char(1),char(53),char(1),char(54),char(1),char(55),char(1),char(56),char(1),char(57), -char(1),char(58),char(1),char(59),char(1),char(60),char(1),char(61),char(1),char(62), -char(1),char(63),char(1),char(64),char(1),char(65),char(1),char(66),char(1),char(67), -char(1),char(68),char(1),char(69),char(1),char(70),char(1),char(71),char(1),char(72), -char(1),char(73),char(1),char(74),char(1),char(75),char(1),char(76),char(1),char(77), -char(1),char(78),char(1),char(79),char(1),char(80),char(1),char(81),char(1),char(82), -char(1),char(83),char(1),char(84),char(1),char(85),char(1),char(86),char(1),char(87), -char(1),char(88),char(1),char(89),char(1),char(90),char(1),char(91),char(1),char(92), -char(1),char(93),char(1),char(94),char(1),char(95),char(1),char(96),char(1),char(97), -char(1),char(98),char(1),char(99),char(1),char(100),char(1),char(101),char(1),char(102), -char(1),char(103),char(1),char(104),char(1),char(105),char(1),char(106),char(1),char(107), -char(1),char(108),char(1),char(109),char(1),char(110),char(1),char(111),char(1),char(112), -char(1),char(113),char(1),char(114),char(1),char(115),char(1),char(116),char(1),char(117), -char(1),char(118),char(1),char(119),char(1),char(120),char(1),char(121),char(1),char(122), -char(1),char(123),char(1),char(124),char(1),char(125),char(1),char(126),char(1),char(127), -char(1),char(128),char(1),char(129),char(1),char(130),char(1),char(131),char(1),char(132), -char(1),char(133),char(1),char(134),char(1),char(135),char(1),char(136),char(1),char(137), -char(1),char(138),char(1),char(139),char(1),char(140),char(1),char(141),char(1),char(142), -char(1),char(143),char(1),char(144),char(1),char(145),char(1),char(146),char(1),char(147), -char(1),char(148),char(1),char(149),char(1),char(150),char(1),char(151),char(1),char(152), -char(1),char(153),char(1),char(154),char(1),char(155),char(1),char(156),char(1),char(157), -char(1),char(158),char(1),char(159),char(1),char(160),char(1),char(161),char(1),char(162), -char(1),char(163),char(1),char(164),char(1),char(165),char(1),char(166),char(1),char(167), -char(1),char(168),char(1),char(169),char(1),char(170),char(1),char(171),char(1),char(172), -char(1),char(173),char(1),char(174),char(1),char(175),char(1),char(176),char(1),char(177), -char(1),char(178),char(1),char(179),char(1),char(180),char(1),char(181),char(1),char(182), -char(1),char(183),char(1),char(184),char(1),char(185),char(1),char(186),char(1),char(187), -char(1),char(188),char(1),char(189),char(1),char(190),char(1),char(191),char(1),char(192), -char(1),char(193),char(1),char(194),char(1),char(195),char(1),char(196),char(1),char(197), -char(1),char(198),char(1),char(199),char(1),char(200),char(1),char(201),char(1),char(202), -char(1),char(203),char(1),char(204),char(1),char(205),char(1),char(206),char(1),char(207), -char(1),char(208),char(1),char(209),char(1),char(210),char(1),char(211),char(1),char(212), -char(1),char(213),char(1),char(214),char(1),char(215),char(1),char(216),char(1),char(217), -char(1),char(218),char(1),char(219),char(1),char(220),char(1),char(221),char(1),char(222), -char(1),char(223),char(1),char(224),char(1),char(225),char(1),char(226),char(1),char(227), -char(1),char(228),char(1),char(229),char(1),char(230),char(1),char(231),char(1),char(232), -char(1),char(233),char(1),char(234),char(1),char(235),char(1),char(236),char(1),char(237), -char(1),char(238),char(1),char(239),char(1),char(240),char(1),char(241),char(1),char(242), -char(1),char(243),char(1),char(244),char(1),char(245),char(1),char(246),char(1),char(247), -char(1),char(248),char(1),char(249),char(1),char(250),char(1),char(251),char(1),char(252), -char(1),char(253),char(1),char(254),char(1),char(255),char(2),char(0),char(2),char(1), -char(2),char(2),char(2),char(3),char(2),char(4),char(2),char(5),char(2),char(6), -char(2),char(7),char(2),char(8),char(2),char(9),char(2),char(10),char(2),char(11), -char(2),char(12),char(2),char(13),char(2),char(14),char(2),char(15),char(2),char(16), -char(2),char(17),char(2),char(18),char(2),char(19),char(2),char(20),char(2),char(21), -char(2),char(22),char(2),char(23),char(2),char(24),char(2),char(25),char(2),char(26), -char(2),char(27),char(2),char(28),char(2),char(29),char(2),char(30),char(2),char(31), -char(2),char(32),char(2),char(33),char(2),char(34),char(2),char(35),char(2),char(36), -char(2),char(37),char(2),char(38),char(2),char(39),char(2),char(40),char(2),char(41), -char(2),char(42),char(2),char(43),char(2),char(44),char(2),char(45),char(2),char(46), -char(2),char(47),char(2),char(48),char(2),char(49),char(2),char(50),char(2),char(51), -char(2),char(52),char(2),char(53),char(2),char(54),char(2),char(55),char(2),char(56), -char(2),char(57),char(2),char(58),char(2),char(59),char(2),char(60),char(2),char(61), -char(2),char(62),char(2),char(63),char(2),char(64),char(2),char(65),char(2),char(66), -char(2),char(67),char(2),char(68),char(2),char(69),char(2),char(70),char(2),char(71), -char(2),char(72),char(2),char(73),char(2),char(74),char(2),char(75),char(2),char(76), -char(2),char(77),char(2),char(78),char(2),char(79),char(2),char(80),char(2),char(81), -char(2),char(82),char(2),char(83),char(2),char(84),char(2),char(85),char(2),char(86), -char(2),char(87),char(2),char(88),char(2),char(89),char(2),char(90),char(2),char(91), -char(2),char(92),char(2),char(93),char(2),char(94),char(2),char(95),char(2),char(96), -char(2),char(97),char(2),char(98),char(2),char(99),char(2),char(100),char(2),char(101), -char(2),char(102),char(2),char(103),char(2),char(104),char(2),char(105),char(2),char(106), -char(2),char(107),char(2),char(108),char(2),char(109),char(2),char(110),char(2),char(111), -char(2),char(112),char(2),char(113),char(2),char(114),char(2),char(115),char(2),char(116), -char(2),char(117),char(2),char(118),char(2),char(119),char(2),char(120),char(2),char(121), -char(2),char(122),char(2),char(123),char(2),char(124),char(2),char(125),char(2),char(126), -char(2),char(127),char(2),char(128),char(2),char(129),char(2),char(130),char(2),char(131), -char(2),char(132),char(2),char(133),char(2),char(134),char(2),char(135),char(2),char(136), -char(2),char(137),char(2),char(138),char(2),char(139),char(2),char(140),char(2),char(141), -char(2),char(142),char(2),char(143),char(2),char(144),char(2),char(145),char(2),char(146), -char(2),char(147),char(2),char(148),char(2),char(149),char(2),char(150),char(2),char(151), -char(2),char(152),char(2),char(153),char(2),char(154),char(2),char(155),char(2),char(156), -char(2),char(157),char(2),char(158),char(2),char(159),char(2),char(160),char(2),char(161), -char(2),char(162),char(2),char(163),char(2),char(164),char(2),char(165),char(2),char(166), -char(2),char(167),char(2),char(168),char(2),char(169),char(2),char(170),char(2),char(171), -char(2),char(172),char(2),char(173),char(2),char(174),char(2),char(175),char(2),char(176), -char(2),char(177),char(2),char(178),char(2),char(179),char(2),char(180),char(2),char(181), -char(2),char(182),char(2),char(183),char(2),char(184),char(2),char(185),char(2),char(186), -char(2),char(187),char(2),char(188),char(2),char(189),char(2),char(190),char(2),char(191), -char(2),char(192),char(2),char(193),char(2),char(194),char(2),char(195),char(2),char(196), -char(2),char(197),char(2),char(198),char(2),char(199),char(2),char(200),char(2),char(201), -char(2),char(202),char(2),char(203),char(2),char(204),char(2),char(205),char(2),char(206), -char(2),char(207),char(2),char(208),char(2),char(209),char(2),char(210),char(2),char(211), -char(2),char(212),char(2),char(213),char(2),char(214),char(2),char(215),char(2),char(216), -char(2),char(217),char(2),char(218),char(2),char(219),char(2),char(220),char(2),char(221), -char(2),char(222),char(2),char(223),char(2),char(224),char(2),char(225),char(2),char(226), -char(2),char(227),char(2),char(228),char(2),char(229),char(2),char(230),char(2),char(231), -char(2),char(232),char(2),char(233),char(2),char(234),char(2),char(235),char(2),char(236), -char(2),char(237),char(2),char(238),char(2),char(239),char(2),char(240),char(2),char(241), -char(2),char(242),char(2),char(243),char(2),char(244),char(2),char(245),char(2),char(246), -char(2),char(247),char(2),char(248),char(2),char(249),char(2),char(250),char(2),char(251), -char(2),char(252),char(2),char(253),char(2),char(254),char(2),char(255),char(3),char(0), -char(3),char(1),char(3),char(2),char(3),char(3),char(3),char(4),char(3),char(5), -char(3),char(6),char(3),char(7),char(3),char(8),char(3),char(9),char(3),char(10), -char(3),char(11),char(3),char(12),char(3),char(13),char(3),char(14),char(3),char(15), -char(3),char(16),char(3),char(17),char(3),char(18),char(3),char(19),char(3),char(20), -char(3),char(21),char(3),char(22),char(3),char(23),char(3),char(24),char(3),char(25), -char(3),char(26),char(3),char(27),char(3),char(28),char(3),char(29),char(3),char(30), -char(3),char(31),char(3),char(32),char(3),char(33),char(3),char(34),char(3),char(35), -char(3),char(36),char(3),char(37),char(3),char(38),char(3),char(39),char(3),char(40), -char(3),char(41),char(3),char(42),char(3),char(43),char(3),char(44),char(3),char(45), -char(3),char(46),char(3),char(47),char(3),char(48),char(3),char(49),char(3),char(50), -char(3),char(51),char(3),char(52),char(3),char(53),char(3),char(54),char(3),char(55), -char(3),char(56),char(3),char(57),char(3),char(58),char(3),char(59),char(3),char(60), -char(3),char(61),char(3),char(62),char(3),char(63),char(3),char(64),char(3),char(65), -char(3),char(66),char(3),char(67),char(3),char(68),char(3),char(69),char(3),char(70), -char(3),char(71),char(3),char(72),char(3),char(73),char(3),char(74),char(3),char(75), -char(3),char(76),char(3),char(77),char(3),char(78),char(3),char(79),char(3),char(80), -char(3),char(81),char(3),char(82),char(3),char(83),char(3),char(84),char(3),char(85), -char(3),char(86),char(3),char(87),char(3),char(88),char(3),char(89),char(3),char(90), -char(3),char(91),char(3),char(92),char(3),char(93),char(3),char(94),char(3),char(95), -char(3),char(96),char(3),char(97),char(3),char(98),char(3),char(99),char(3),char(100), -char(3),char(101),char(3),char(102),char(3),char(103),char(3),char(104),char(3),char(105), -char(3),char(106),char(3),char(107),char(3),char(108),char(3),char(109),char(3),char(110), -char(3),char(111),char(3),char(112),char(3),char(113),char(3),char(114),char(3),char(115), -char(3),char(116),char(3),char(117),char(3),char(118),char(3),char(119),char(3),char(120), -char(3),char(121),char(3),char(122),char(3),char(123),char(3),char(124),char(3),char(125), -char(3),char(126),char(3),char(127),char(3),char(128),char(3),char(129),char(3),char(130), -char(3),char(131),char(3),char(132),char(3),char(133),char(3),char(134),char(3),char(135), -char(3),char(136),char(3),char(137),char(3),char(138),char(3),char(139),char(3),char(140), -char(3),char(141),char(3),char(142),char(3),char(143),char(3),char(144),char(3),char(145), -char(3),char(146),char(3),char(147),char(3),char(148),char(3),char(149),char(3),char(150), -char(3),char(151),char(3),char(152),char(3),char(153),char(3),char(154),char(3),char(155), -char(3),char(156),char(3),char(157),char(3),char(158),char(3),char(159),char(3),char(160), -char(3),char(161),char(3),char(162),char(3),char(163),char(3),char(164),char(3),char(165), -char(3),char(166),char(3),char(167),char(3),char(168),char(3),char(169),char(3),char(170), -char(3),char(171),char(3),char(172),char(3),char(173),char(3),char(174),char(3),char(175), -char(3),char(176),char(3),char(177),char(3),char(178),char(3),char(179),char(3),char(180), -char(3),char(181),char(3),char(182),char(3),char(183),char(3),char(184),char(3),char(185), -char(3),char(186),char(3),char(187),char(3),char(188),char(3),char(189),char(3),char(190), -char(3),char(191),char(3),char(192),char(3),char(193),char(3),char(194),char(3),char(195), -char(3),char(196),char(3),char(197),char(3),char(198),char(3),char(199),char(3),char(200), -char(3),char(201),char(3),char(202),char(3),char(203),char(3),char(204),char(3),char(205), -char(3),char(206),char(3),char(207),char(3),char(208),char(3),char(209),char(3),char(210), -char(3),char(211),char(3),char(212),char(3),char(213),char(3),char(214),char(3),char(215), -char(3),char(216),char(3),char(217),char(3),char(218),char(3),char(219),char(3),char(220), -char(3),char(221),char(3),char(222),char(3),char(223),char(3),char(224),char(3),char(225), -char(3),char(226),char(3),char(227),char(3),char(228),char(3),char(229),char(3),char(230), -char(3),char(231),char(3),char(232),char(3),char(233),char(3),char(234),char(3),char(235), -char(3),char(236),char(3),char(237),char(3),char(238),char(3),char(239),char(3),char(240), -char(3),char(241),char(3),char(242),char(3),char(243),char(3),char(244),char(3),char(245), -char(3),char(246),char(3),char(247),char(3),char(248),char(3),char(249),char(3),char(250), -char(3),char(251),char(3),char(252),char(3),char(253),char(3),char(254),char(3),char(255), -char(4),char(0),char(4),char(1),char(4),char(2),char(4),char(3),char(4),char(4), -char(4),char(5),char(4),char(6),char(4),char(7),char(4),char(8),char(4),char(9), -char(4),char(10),char(4),char(11),char(4),char(12),char(4),char(13),char(4),char(14), -char(4),char(15),char(4),char(16),char(4),char(17),char(4),char(18),char(4),char(19), -char(4),char(20),char(4),char(21),char(4),char(22),char(4),char(23),char(4),char(24), -char(4),char(25),char(4),char(26),char(4),char(27),char(4),char(28),char(4),char(29), -char(4),char(30),char(4),char(31),char(4),char(32),char(4),char(33),char(4),char(34), -char(4),char(35),char(4),char(36),char(4),char(37),char(4),char(38),char(4),char(39), -char(4),char(40),char(4),char(41),char(4),char(42),char(4),char(43),char(4),char(44), -char(4),char(45),char(4),char(46),char(4),char(47),char(4),char(48),char(4),char(49), -char(4),char(50),char(4),char(51),char(4),char(52),char(4),char(53),char(4),char(54), -char(4),char(55),char(4),char(56),char(4),char(57),char(4),char(58),char(4),char(59), -char(4),char(60),char(4),char(61),char(4),char(62),char(4),char(63),char(4),char(64), -char(4),char(65),char(4),char(66),char(4),char(67),char(4),char(68),char(4),char(69), -char(4),char(70),char(4),char(71),char(4),char(72),char(4),char(73),char(4),char(74), -char(4),char(75),char(4),char(76),char(4),char(77),char(4),char(78),char(4),char(79), -char(4),char(80),char(4),char(81),char(4),char(82),char(4),char(83),char(4),char(84), -char(4),char(85),char(4),char(86),char(4),char(87),char(4),char(88),char(4),char(89), -char(4),char(90),char(4),char(91),char(4),char(92),char(4),char(93),char(4),char(94), -char(4),char(95),char(4),char(96),char(4),char(97),char(4),char(98),char(4),char(99), -char(4),char(100),char(4),char(101),char(4),char(102),char(4),char(103),char(4),char(104), -char(4),char(105),char(4),char(106),char(4),char(107),char(4),char(108),char(4),char(109), -char(4),char(110),char(4),char(111),char(4),char(112),char(4),char(113),char(4),char(114), -char(4),char(115),char(4),char(116),char(4),char(117),char(4),char(118),char(4),char(119), -char(4),char(120),char(4),char(121),char(4),char(122),char(4),char(123),char(4),char(124), -char(4),char(125),char(4),char(126),char(4),char(127),char(4),char(128),char(4),char(129), -char(4),char(130),char(4),char(131),char(4),char(132),char(4),char(133),char(4),char(134), -char(4),char(135),char(4),char(136),char(4),char(137),char(4),char(138),char(4),char(139), -char(4),char(140),char(4),char(141),char(4),char(142),char(4),char(143),char(4),char(144), -char(4),char(145),char(4),char(146),char(4),char(147),char(4),char(148),char(4),char(149), -char(4),char(150),char(4),char(151),char(4),char(152),char(4),char(153),char(4),char(154), -char(4),char(155),char(4),char(156),char(4),char(157),char(4),char(158),char(4),char(159), -char(4),char(160),char(4),char(161),char(4),char(162),char(4),char(163),char(4),char(164), -char(4),char(165),char(4),char(166),char(4),char(167),char(4),char(168),char(4),char(169), -char(4),char(170),char(4),char(171),char(7),char(46),char(110),char(111),char(116),char(100), -char(101),char(102),char(4),char(110),char(117),char(108),char(108),char(16),char(110),char(111), -char(110),char(109),char(97),char(114),char(107),char(105),char(110),char(103),char(114),char(101), -char(116),char(117),char(114),char(110),char(5),char(115),char(112),char(97),char(99),char(101), -char(6),char(101),char(120),char(99),char(108),char(97),char(109),char(8),char(113),char(117), -char(111),char(116),char(101),char(100),char(98),char(108),char(10),char(110),char(117),char(109), -char(98),char(101),char(114),char(115),char(105),char(103),char(110),char(6),char(100),char(111), -char(108),char(108),char(97),char(114),char(7),char(112),char(101),char(114),char(99),char(101), -char(110),char(116),char(9),char(97),char(109),char(112),char(101),char(114),char(115),char(97), -char(110),char(100),char(11),char(113),char(117),char(111),char(116),char(101),char(115),char(105), -char(110),char(103),char(108),char(101),char(9),char(112),char(97),char(114),char(101),char(110), -char(108),char(101),char(102),char(116),char(10),char(112),char(97),char(114),char(101),char(110), -char(114),char(105),char(103),char(104),char(116),char(8),char(97),char(115),char(116),char(101), -char(114),char(105),char(115),char(107),char(4),char(112),char(108),char(117),char(115),char(5), -char(99),char(111),char(109),char(109),char(97),char(6),char(104),char(121),char(112),char(104), -char(101),char(110),char(6),char(112),char(101),char(114),char(105),char(111),char(100),char(5), -char(115),char(108),char(97),char(115),char(104),char(4),char(122),char(101),char(114),char(111), -char(3),char(111),char(110),char(101),char(3),char(116),char(119),char(111),char(5),char(116), -char(104),char(114),char(101),char(101),char(4),char(102),char(111),char(117),char(114),char(4), -char(102),char(105),char(118),char(101),char(3),char(115),char(105),char(120),char(5),char(115), -char(101),char(118),char(101),char(110),char(5),char(101),char(105),char(103),char(104),char(116), -char(4),char(110),char(105),char(110),char(101),char(5),char(99),char(111),char(108),char(111), -char(110),char(9),char(115),char(101),char(109),char(105),char(99),char(111),char(108),char(111), -char(110),char(4),char(108),char(101),char(115),char(115),char(5),char(101),char(113),char(117), -char(97),char(108),char(7),char(103),char(114),char(101),char(97),char(116),char(101),char(114), -char(8),char(113),char(117),char(101),char(115),char(116),char(105),char(111),char(110),char(2), -char(97),char(116),char(1),char(65),char(1),char(66),char(1),char(67),char(1),char(68), -char(1),char(69),char(1),char(70),char(1),char(71),char(1),char(72),char(5),char(73), -char(46),char(97),char(108),char(116),char(1),char(74),char(1),char(75),char(1),char(76), -char(1),char(77),char(1),char(78),char(1),char(79),char(1),char(80),char(1),char(81), -char(1),char(82),char(1),char(83),char(1),char(84),char(1),char(85),char(1),char(86), -char(1),char(87),char(1),char(88),char(1),char(89),char(1),char(90),char(11),char(98), -char(114),char(97),char(99),char(107),char(101),char(116),char(108),char(101),char(102),char(116), -char(9),char(98),char(97),char(99),char(107),char(115),char(108),char(97),char(115),char(104), -char(12),char(98),char(114),char(97),char(99),char(107),char(101),char(116),char(114),char(105), -char(103),char(104),char(116),char(11),char(97),char(115),char(99),char(105),char(105),char(99), -char(105),char(114),char(99),char(117),char(109),char(10),char(117),char(110),char(100),char(101), -char(114),char(115),char(99),char(111),char(114),char(101),char(5),char(103),char(114),char(97), -char(118),char(101),char(1),char(97),char(1),char(98),char(1),char(99),char(1),char(100), -char(1),char(101),char(1),char(102),char(1),char(103),char(1),char(104),char(1),char(105), -char(1),char(106),char(1),char(107),char(1),char(108),char(1),char(109),char(1),char(110), -char(1),char(111),char(1),char(112),char(1),char(113),char(1),char(114),char(1),char(115), -char(1),char(116),char(1),char(117),char(1),char(118),char(1),char(119),char(1),char(120), -char(1),char(121),char(1),char(122),char(9),char(98),char(114),char(97),char(99),char(101), -char(108),char(101),char(102),char(116),char(3),char(98),char(97),char(114),char(10),char(98), -char(114),char(97),char(99),char(101),char(114),char(105),char(103),char(104),char(116),char(10), -char(97),char(115),char(99),char(105),char(105),char(116),char(105),char(108),char(100),char(101), -char(16),char(110),char(111),char(110),char(98),char(114),char(101),char(97),char(107),char(105), -char(110),char(103),char(115),char(112),char(97),char(99),char(101),char(10),char(101),char(120), -char(99),char(108),char(97),char(109),char(100),char(111),char(119),char(110),char(4),char(99), -char(101),char(110),char(116),char(8),char(115),char(116),char(101),char(114),char(108),char(105), -char(110),char(103),char(8),char(99),char(117),char(114),char(114),char(101),char(110),char(99), -char(121),char(3),char(121),char(101),char(110),char(9),char(98),char(114),char(111),char(107), -char(101),char(110),char(98),char(97),char(114),char(7),char(115),char(101),char(99),char(116), -char(105),char(111),char(110),char(8),char(100),char(105),char(101),char(114),char(101),char(115), -char(105),char(115),char(9),char(99),char(111),char(112),char(121),char(114),char(105),char(103), -char(104),char(116),char(11),char(111),char(114),char(100),char(102),char(101),char(109),char(105), -char(110),char(105),char(110),char(101),char(13),char(103),char(117),char(105),char(108),char(108), -char(101),char(109),char(111),char(116),char(108),char(101),char(102),char(116),char(10),char(108), -char(111),char(103),char(105),char(99),char(97),char(108),char(110),char(111),char(116),char(7), -char(117),char(110),char(105),char(48),char(48),char(65),char(68),char(10),char(114),char(101), -char(103),char(105),char(115),char(116),char(101),char(114),char(101),char(100),char(9),char(111), -char(118),char(101),char(114),char(115),char(99),char(111),char(114),char(101),char(6),char(100), -char(101),char(103),char(114),char(101),char(101),char(9),char(112),char(108),char(117),char(115), -char(109),char(105),char(110),char(117),char(115),char(11),char(116),char(119),char(111),char(115), -char(117),char(112),char(101),char(114),char(105),char(111),char(114),char(13),char(116),char(104), -char(114),char(101),char(101),char(115),char(117),char(112),char(101),char(114),char(105),char(111), -char(114),char(5),char(97),char(99),char(117),char(116),char(101),char(2),char(109),char(117), -char(9),char(112),char(97),char(114),char(97),char(103),char(114),char(97),char(112),char(104), -char(14),char(112),char(101),char(114),char(105),char(111),char(100),char(99),char(101),char(110), -char(116),char(101),char(114),char(101),char(100),char(7),char(99),char(101),char(100),char(105), -char(108),char(108),char(97),char(11),char(111),char(110),char(101),char(115),char(117),char(112), -char(101),char(114),char(105),char(111),char(114),char(12),char(111),char(114),char(100),char(109), -char(97),char(115),char(99),char(117),char(108),char(105),char(110),char(101),char(14),char(103), -char(117),char(105),char(108),char(108),char(101),char(109),char(111),char(116),char(114),char(105), -char(103),char(104),char(116),char(10),char(111),char(110),char(101),char(113),char(117),char(97), -char(114),char(116),char(101),char(114),char(7),char(111),char(110),char(101),char(104),char(97), -char(108),char(102),char(13),char(116),char(104),char(114),char(101),char(101),char(113),char(117), -char(97),char(114),char(116),char(101),char(114),char(115),char(12),char(113),char(117),char(101), -char(115),char(116),char(105),char(111),char(110),char(100),char(111),char(119),char(110),char(6), -char(65),char(103),char(114),char(97),char(118),char(101),char(6),char(65),char(97),char(99), -char(117),char(116),char(101),char(11),char(65),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(6),char(65),char(116),char(105),char(108), -char(100),char(101),char(9),char(65),char(100),char(105),char(101),char(114),char(101),char(115), -char(105),char(115),char(5),char(65),char(114),char(105),char(110),char(103),char(2),char(65), -char(69),char(8),char(67),char(99),char(101),char(100),char(105),char(108),char(108),char(97), -char(6),char(69),char(103),char(114),char(97),char(118),char(101),char(6),char(69),char(97), -char(99),char(117),char(116),char(101),char(11),char(69),char(99),char(105),char(114),char(99), -char(117),char(109),char(102),char(108),char(101),char(120),char(9),char(69),char(100),char(105), -char(101),char(114),char(101),char(115),char(105),char(115),char(10),char(73),char(103),char(114), -char(97),char(118),char(101),char(46),char(97),char(108),char(116),char(10),char(73),char(97), -char(99),char(117),char(116),char(101),char(46),char(97),char(108),char(116),char(15),char(73), -char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120), -char(46),char(97),char(108),char(116),char(13),char(73),char(100),char(105),char(101),char(114), -char(101),char(115),char(105),char(115),char(46),char(97),char(108),char(116),char(3),char(69), -char(116),char(104),char(6),char(78),char(116),char(105),char(108),char(100),char(101),char(6), -char(79),char(103),char(114),char(97),char(118),char(101),char(6),char(79),char(97),char(99), -char(117),char(116),char(101),char(11),char(79),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(6),char(79),char(116),char(105),char(108), -char(100),char(101),char(9),char(79),char(100),char(105),char(101),char(114),char(101),char(115), -char(105),char(115),char(8),char(109),char(117),char(108),char(116),char(105),char(112),char(108), -char(121),char(6),char(79),char(115),char(108),char(97),char(115),char(104),char(6),char(85), -char(103),char(114),char(97),char(118),char(101),char(6),char(85),char(97),char(99),char(117), -char(116),char(101),char(11),char(85),char(99),char(105),char(114),char(99),char(117),char(109), -char(102),char(108),char(101),char(120),char(9),char(85),char(100),char(105),char(101),char(114), -char(101),char(115),char(105),char(115),char(6),char(89),char(97),char(99),char(117),char(116), -char(101),char(5),char(84),char(104),char(111),char(114),char(110),char(10),char(103),char(101), -char(114),char(109),char(97),char(110),char(100),char(98),char(108),char(115),char(6),char(97), -char(103),char(114),char(97),char(118),char(101),char(6),char(97),char(97),char(99),char(117), -char(116),char(101),char(11),char(97),char(99),char(105),char(114),char(99),char(117),char(109), -char(102),char(108),char(101),char(120),char(6),char(97),char(116),char(105),char(108),char(100), -char(101),char(9),char(97),char(100),char(105),char(101),char(114),char(101),char(115),char(105), -char(115),char(5),char(97),char(114),char(105),char(110),char(103),char(2),char(97),char(101), -char(8),char(99),char(99),char(101),char(100),char(105),char(108),char(108),char(97),char(6), -char(101),char(103),char(114),char(97),char(118),char(101),char(6),char(101),char(97),char(99), -char(117),char(116),char(101),char(11),char(101),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(9),char(101),char(100),char(105),char(101), -char(114),char(101),char(115),char(105),char(115),char(6),char(105),char(103),char(114),char(97), -char(118),char(101),char(6),char(105),char(97),char(99),char(117),char(116),char(101),char(11), -char(105),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101), -char(120),char(9),char(105),char(100),char(105),char(101),char(114),char(101),char(115),char(105), -char(115),char(3),char(101),char(116),char(104),char(6),char(110),char(116),char(105),char(108), -char(100),char(101),char(6),char(111),char(103),char(114),char(97),char(118),char(101),char(6), -char(111),char(97),char(99),char(117),char(116),char(101),char(11),char(111),char(99),char(105), -char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120),char(6),char(111), -char(116),char(105),char(108),char(100),char(101),char(9),char(111),char(100),char(105),char(101), -char(114),char(101),char(115),char(105),char(115),char(6),char(100),char(105),char(118),char(105), -char(100),char(101),char(6),char(111),char(115),char(108),char(97),char(115),char(104),char(6), -char(117),char(103),char(114),char(97),char(118),char(101),char(6),char(117),char(97),char(99), -char(117),char(116),char(101),char(11),char(117),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(9),char(117),char(100),char(105),char(101), -char(114),char(101),char(115),char(105),char(115),char(6),char(121),char(97),char(99),char(117), -char(116),char(101),char(5),char(116),char(104),char(111),char(114),char(110),char(9),char(121), -char(100),char(105),char(101),char(114),char(101),char(115),char(105),char(115),char(7),char(65), -char(109),char(97),char(99),char(114),char(111),char(110),char(7),char(97),char(109),char(97), -char(99),char(114),char(111),char(110),char(6),char(65),char(98),char(114),char(101),char(118), -char(101),char(6),char(97),char(98),char(114),char(101),char(118),char(101),char(7),char(65), -char(111),char(103),char(111),char(110),char(101),char(107),char(7),char(97),char(111),char(103), -char(111),char(110),char(101),char(107),char(6),char(67),char(97),char(99),char(117),char(116), -char(101),char(6),char(99),char(97),char(99),char(117),char(116),char(101),char(11),char(67), -char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120), -char(11),char(99),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108), -char(101),char(120),char(4),char(67),char(100),char(111),char(116),char(4),char(99),char(100), -char(111),char(116),char(6),char(67),char(99),char(97),char(114),char(111),char(110),char(6), -char(99),char(99),char(97),char(114),char(111),char(110),char(6),char(68),char(99),char(97), -char(114),char(111),char(110),char(6),char(100),char(99),char(97),char(114),char(111),char(110), -char(6),char(68),char(99),char(114),char(111),char(97),char(116),char(6),char(100),char(99), -char(114),char(111),char(97),char(116),char(7),char(69),char(109),char(97),char(99),char(114), -char(111),char(110),char(7),char(101),char(109),char(97),char(99),char(114),char(111),char(110), -char(6),char(69),char(98),char(114),char(101),char(118),char(101),char(6),char(101),char(98), -char(114),char(101),char(118),char(101),char(10),char(69),char(100),char(111),char(116),char(97), -char(99),char(99),char(101),char(110),char(116),char(10),char(101),char(100),char(111),char(116), -char(97),char(99),char(99),char(101),char(110),char(116),char(7),char(69),char(111),char(103), -char(111),char(110),char(101),char(107),char(7),char(101),char(111),char(103),char(111),char(110), -char(101),char(107),char(6),char(69),char(99),char(97),char(114),char(111),char(110),char(6), -char(101),char(99),char(97),char(114),char(111),char(110),char(11),char(71),char(99),char(105), -char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120),char(11),char(103), -char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120), -char(6),char(71),char(98),char(114),char(101),char(118),char(101),char(6),char(103),char(98), -char(114),char(101),char(118),char(101),char(4),char(71),char(100),char(111),char(116),char(4), -char(103),char(100),char(111),char(116),char(12),char(71),char(99),char(111),char(109),char(109), -char(97),char(97),char(99),char(99),char(101),char(110),char(116),char(12),char(103),char(99), -char(111),char(109),char(109),char(97),char(97),char(99),char(99),char(101),char(110),char(116), -char(11),char(72),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108), -char(101),char(120),char(11),char(104),char(99),char(105),char(114),char(99),char(117),char(109), -char(102),char(108),char(101),char(120),char(4),char(72),char(98),char(97),char(114),char(4), -char(104),char(98),char(97),char(114),char(10),char(73),char(116),char(105),char(108),char(100), -char(101),char(46),char(97),char(108),char(116),char(6),char(105),char(116),char(105),char(108), -char(100),char(101),char(11),char(73),char(109),char(97),char(99),char(114),char(111),char(110), -char(46),char(97),char(108),char(116),char(7),char(105),char(109),char(97),char(99),char(114), -char(111),char(110),char(10),char(73),char(98),char(114),char(101),char(118),char(101),char(46), -char(97),char(108),char(116),char(6),char(105),char(98),char(114),char(101),char(118),char(101), -char(11),char(73),char(111),char(103),char(111),char(110),char(101),char(107),char(46),char(97), -char(108),char(116),char(7),char(105),char(111),char(103),char(111),char(110),char(101),char(107), -char(14),char(73),char(100),char(111),char(116),char(97),char(99),char(99),char(101),char(110), -char(116),char(46),char(97),char(108),char(116),char(8),char(100),char(111),char(116),char(108), -char(101),char(115),char(115),char(105),char(6),char(73),char(74),char(46),char(97),char(108), -char(116),char(2),char(105),char(106),char(11),char(74),char(99),char(105),char(114),char(99), -char(117),char(109),char(102),char(108),char(101),char(120),char(11),char(106),char(99),char(105), -char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120),char(12),char(75), -char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99),char(101),char(110), -char(116),char(12),char(107),char(99),char(111),char(109),char(109),char(97),char(97),char(99), -char(99),char(101),char(110),char(116),char(12),char(107),char(103),char(114),char(101),char(101), -char(110),char(108),char(97),char(110),char(100),char(105),char(99),char(6),char(76),char(97), -char(99),char(117),char(116),char(101),char(6),char(108),char(97),char(99),char(117),char(116), -char(101),char(12),char(76),char(99),char(111),char(109),char(109),char(97),char(97),char(99), -char(99),char(101),char(110),char(116),char(12),char(108),char(99),char(111),char(109),char(109), -char(97),char(97),char(99),char(99),char(101),char(110),char(116),char(6),char(76),char(99), -char(97),char(114),char(111),char(110),char(6),char(108),char(99),char(97),char(114),char(111), -char(110),char(4),char(76),char(100),char(111),char(116),char(4),char(108),char(100),char(111), -char(116),char(6),char(76),char(115),char(108),char(97),char(115),char(104),char(6),char(108), -char(115),char(108),char(97),char(115),char(104),char(6),char(78),char(97),char(99),char(117), -char(116),char(101),char(6),char(110),char(97),char(99),char(117),char(116),char(101),char(12), -char(78),char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99),char(101), -char(110),char(116),char(12),char(110),char(99),char(111),char(109),char(109),char(97),char(97), -char(99),char(99),char(101),char(110),char(116),char(6),char(78),char(99),char(97),char(114), -char(111),char(110),char(6),char(110),char(99),char(97),char(114),char(111),char(110),char(11), -char(110),char(97),char(112),char(111),char(115),char(116),char(114),char(111),char(112),char(104), -char(101),char(3),char(69),char(110),char(103),char(3),char(101),char(110),char(103),char(7), -char(79),char(109),char(97),char(99),char(114),char(111),char(110),char(7),char(111),char(109), -char(97),char(99),char(114),char(111),char(110),char(6),char(79),char(98),char(114),char(101), -char(118),char(101),char(6),char(111),char(98),char(114),char(101),char(118),char(101),char(13), -char(79),char(104),char(117),char(110),char(103),char(97),char(114),char(117),char(109),char(108), -char(97),char(117),char(116),char(13),char(111),char(104),char(117),char(110),char(103),char(97), -char(114),char(117),char(109),char(108),char(97),char(117),char(116),char(2),char(79),char(69), -char(2),char(111),char(101),char(6),char(82),char(97),char(99),char(117),char(116),char(101), -char(6),char(114),char(97),char(99),char(117),char(116),char(101),char(12),char(82),char(99), -char(111),char(109),char(109),char(97),char(97),char(99),char(99),char(101),char(110),char(116), -char(12),char(114),char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99), -char(101),char(110),char(116),char(6),char(82),char(99),char(97),char(114),char(111),char(110), -char(6),char(114),char(99),char(97),char(114),char(111),char(110),char(6),char(83),char(97), -char(99),char(117),char(116),char(101),char(6),char(115),char(97),char(99),char(117),char(116), -char(101),char(11),char(83),char(99),char(105),char(114),char(99),char(117),char(109),char(102), -char(108),char(101),char(120),char(11),char(115),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(8),char(83),char(99),char(101),char(100), -char(105),char(108),char(108),char(97),char(8),char(115),char(99),char(101),char(100),char(105), -char(108),char(108),char(97),char(6),char(83),char(99),char(97),char(114),char(111),char(110), -char(6),char(115),char(99),char(97),char(114),char(111),char(110),char(12),char(84),char(99), -char(111),char(109),char(109),char(97),char(97),char(99),char(99),char(101),char(110),char(116), -char(12),char(116),char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99), -char(101),char(110),char(116),char(6),char(84),char(99),char(97),char(114),char(111),char(110), -char(6),char(116),char(99),char(97),char(114),char(111),char(110),char(4),char(84),char(98), -char(97),char(114),char(4),char(116),char(98),char(97),char(114),char(6),char(85),char(116), -char(105),char(108),char(100),char(101),char(6),char(117),char(116),char(105),char(108),char(100), -char(101),char(7),char(85),char(109),char(97),char(99),char(114),char(111),char(110),char(7), -char(117),char(109),char(97),char(99),char(114),char(111),char(110),char(6),char(85),char(98), -char(114),char(101),char(118),char(101),char(6),char(117),char(98),char(114),char(101),char(118), -char(101),char(5),char(85),char(114),char(105),char(110),char(103),char(5),char(117),char(114), -char(105),char(110),char(103),char(13),char(85),char(104),char(117),char(110),char(103),char(97), -char(114),char(117),char(109),char(108),char(97),char(117),char(116),char(13),char(117),char(104), -char(117),char(110),char(103),char(97),char(114),char(117),char(109),char(108),char(97),char(117), -char(116),char(7),char(85),char(111),char(103),char(111),char(110),char(101),char(107),char(7), -char(117),char(111),char(103),char(111),char(110),char(101),char(107),char(11),char(87),char(99), -char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101),char(120),char(11), -char(119),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101), -char(120),char(11),char(89),char(99),char(105),char(114),char(99),char(117),char(109),char(102), -char(108),char(101),char(120),char(11),char(121),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(9),char(89),char(100),char(105),char(101), -char(114),char(101),char(115),char(105),char(115),char(6),char(90),char(97),char(99),char(117), -char(116),char(101),char(6),char(122),char(97),char(99),char(117),char(116),char(101),char(10), -char(90),char(100),char(111),char(116),char(97),char(99),char(99),char(101),char(110),char(116), -char(10),char(122),char(100),char(111),char(116),char(97),char(99),char(99),char(101),char(110), -char(116),char(6),char(90),char(99),char(97),char(114),char(111),char(110),char(6),char(122), -char(99),char(97),char(114),char(111),char(110),char(5),char(108),char(111),char(110),char(103), -char(115),char(6),char(102),char(108),char(111),char(114),char(105),char(110),char(10),char(65), -char(114),char(105),char(110),char(103),char(97),char(99),char(117),char(116),char(101),char(10), -char(97),char(114),char(105),char(110),char(103),char(97),char(99),char(117),char(116),char(101), -char(7),char(65),char(69),char(97),char(99),char(117),char(116),char(101),char(7),char(97), -char(101),char(97),char(99),char(117),char(116),char(101),char(11),char(79),char(115),char(108), -char(97),char(115),char(104),char(97),char(99),char(117),char(116),char(101),char(11),char(111), -char(115),char(108),char(97),char(115),char(104),char(97),char(99),char(117),char(116),char(101), -char(12),char(83),char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99), -char(101),char(110),char(116),char(12),char(115),char(99),char(111),char(109),char(109),char(97), -char(97),char(99),char(99),char(101),char(110),char(116),char(10),char(99),char(105),char(114), -char(99),char(117),char(109),char(102),char(108),char(101),char(120),char(5),char(99),char(97), -char(114),char(111),char(110),char(6),char(109),char(97),char(99),char(114),char(111),char(110), -char(5),char(98),char(114),char(101),char(118),char(101),char(9),char(100),char(111),char(116), -char(97),char(99),char(99),char(101),char(110),char(116),char(4),char(114),char(105),char(110), -char(103),char(6),char(111),char(103),char(111),char(110),char(101),char(107),char(5),char(116), -char(105),char(108),char(100),char(101),char(12),char(104),char(117),char(110),char(103),char(97), -char(114),char(117),char(109),char(108),char(97),char(117),char(116),char(5),char(116),char(111), -char(110),char(111),char(115),char(13),char(100),char(105),char(101),char(114),char(101),char(115), -char(105),char(115),char(116),char(111),char(110),char(111),char(115),char(10),char(65),char(108), -char(112),char(104),char(97),char(116),char(111),char(110),char(111),char(115),char(9),char(97), -char(110),char(111),char(116),char(101),char(108),char(101),char(105),char(97),char(12),char(69), -char(112),char(115),char(105),char(108),char(111),char(110),char(116),char(111),char(110),char(111), -char(115),char(8),char(69),char(116),char(97),char(116),char(111),char(110),char(111),char(115), -char(13),char(73),char(111),char(116),char(97),char(116),char(111),char(110),char(111),char(115), -char(46),char(97),char(108),char(116),char(12),char(79),char(109),char(105),char(99),char(114), -char(111),char(110),char(116),char(111),char(110),char(111),char(115),char(12),char(85),char(112), -char(115),char(105),char(108),char(111),char(110),char(116),char(111),char(110),char(111),char(115), -char(10),char(79),char(109),char(101),char(103),char(97),char(116),char(111),char(110),char(111), -char(115),char(17),char(105),char(111),char(116),char(97),char(100),char(105),char(101),char(114), -char(101),char(115),char(105),char(115),char(116),char(111),char(110),char(111),char(115),char(5), -char(65),char(108),char(112),char(104),char(97),char(4),char(66),char(101),char(116),char(97), -char(5),char(71),char(97),char(109),char(109),char(97),char(7),char(117),char(110),char(105), -char(48),char(51),char(57),char(52),char(7),char(69),char(112),char(115),char(105),char(108), -char(111),char(110),char(4),char(90),char(101),char(116),char(97),char(3),char(69),char(116), -char(97),char(5),char(84),char(104),char(101),char(116),char(97),char(8),char(73),char(111), -char(116),char(97),char(46),char(97),char(108),char(116),char(5),char(75),char(97),char(112), -char(112),char(97),char(6),char(76),char(97),char(109),char(98),char(100),char(97),char(2), -char(77),char(117),char(2),char(78),char(117),char(2),char(88),char(105),char(7),char(79), -char(109),char(105),char(99),char(114),char(111),char(110),char(2),char(80),char(105),char(3), -char(82),char(104),char(111),char(5),char(83),char(105),char(103),char(109),char(97),char(3), -char(84),char(97),char(117),char(7),char(85),char(112),char(115),char(105),char(108),char(111), -char(110),char(3),char(80),char(104),char(105),char(3),char(67),char(104),char(105),char(3), -char(80),char(115),char(105),char(7),char(117),char(110),char(105),char(48),char(51),char(65), -char(57),char(16),char(73),char(111),char(116),char(97),char(100),char(105),char(101),char(114), -char(101),char(115),char(105),char(115),char(46),char(97),char(108),char(116),char(15),char(85), -char(112),char(115),char(105),char(108),char(111),char(110),char(100),char(105),char(101),char(114), -char(101),char(115),char(105),char(115),char(10),char(97),char(108),char(112),char(104),char(97), -char(116),char(111),char(110),char(111),char(115),char(12),char(101),char(112),char(115),char(105), -char(108),char(111),char(110),char(116),char(111),char(110),char(111),char(115),char(8),char(101), -char(116),char(97),char(116),char(111),char(110),char(111),char(115),char(9),char(105),char(111), -char(116),char(97),char(116),char(111),char(110),char(111),char(115),char(20),char(117),char(112), -char(115),char(105),char(108),char(111),char(110),char(100),char(105),char(101),char(114),char(101), -char(115),char(105),char(115),char(116),char(111),char(110),char(111),char(115),char(5),char(97), -char(108),char(112),char(104),char(97),char(4),char(98),char(101),char(116),char(97),char(5), -char(103),char(97),char(109),char(109),char(97),char(5),char(100),char(101),char(108),char(116), -char(97),char(7),char(101),char(112),char(115),char(105),char(108),char(111),char(110),char(4), -char(122),char(101),char(116),char(97),char(3),char(101),char(116),char(97),char(5),char(116), -char(104),char(101),char(116),char(97),char(4),char(105),char(111),char(116),char(97),char(5), -char(107),char(97),char(112),char(112),char(97),char(6),char(108),char(97),char(109),char(98), -char(100),char(97),char(7),char(117),char(110),char(105),char(48),char(51),char(66),char(67), -char(2),char(110),char(117),char(2),char(120),char(105),char(7),char(111),char(109),char(105), -char(99),char(114),char(111),char(110),char(2),char(112),char(105),char(3),char(114),char(104), -char(111),char(6),char(115),char(105),char(103),char(109),char(97),char(49),char(5),char(115), -char(105),char(103),char(109),char(97),char(3),char(116),char(97),char(117),char(7),char(117), -char(112),char(115),char(105),char(108),char(111),char(110),char(3),char(112),char(104),char(105), -char(3),char(99),char(104),char(105),char(3),char(112),char(115),char(105),char(5),char(111), -char(109),char(101),char(103),char(97),char(12),char(105),char(111),char(116),char(97),char(100), -char(105),char(101),char(114),char(101),char(115),char(105),char(115),char(15),char(117),char(112), -char(115),char(105),char(108),char(111),char(110),char(100),char(105),char(101),char(114),char(101), -char(115),char(105),char(115),char(12),char(111),char(109),char(105),char(99),char(114),char(111), -char(110),char(116),char(111),char(110),char(111),char(115),char(12),char(117),char(112),char(115), -char(105),char(108),char(111),char(110),char(116),char(111),char(110),char(111),char(115),char(10), -char(111),char(109),char(101),char(103),char(97),char(116),char(111),char(110),char(111),char(115), -char(9),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(51), -char(9),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(49), -char(9),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(50), -char(9),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(51), -char(9),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(52), -char(13),char(97),char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(53), -char(46),char(97),char(108),char(116),char(13),char(97),char(102),char(105),char(105),char(49), -char(48),char(48),char(53),char(54),char(46),char(97),char(108),char(116),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(52),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(49),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(49),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(49),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(50),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(51),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(52),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(54),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(56),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(55),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(49),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(50),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(52),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(53),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(54),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(55),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(56),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(48),char(57),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(49),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(49),char(57),char(51),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(53),char(48),char(9),char(97), -char(102),char(105),char(105),char(49),char(48),char(48),char(57),char(56),char(6),char(87), -char(103),char(114),char(97),char(118),char(101),char(6),char(119),char(103),char(114),char(97), -char(118),char(101),char(6),char(87),char(97),char(99),char(117),char(116),char(101),char(6), -char(119),char(97),char(99),char(117),char(116),char(101),char(9),char(87),char(100),char(105), -char(101),char(114),char(101),char(115),char(105),char(115),char(9),char(119),char(100),char(105), -char(101),char(114),char(101),char(115),char(105),char(115),char(6),char(89),char(103),char(114), -char(97),char(118),char(101),char(6),char(121),char(103),char(114),char(97),char(118),char(101), -char(6),char(101),char(110),char(100),char(97),char(115),char(104),char(6),char(101),char(109), -char(100),char(97),char(115),char(104),char(9),char(97),char(102),char(105),char(105),char(48), -char(48),char(50),char(48),char(56),char(13),char(117),char(110),char(100),char(101),char(114), -char(115),char(99),char(111),char(114),char(101),char(100),char(98),char(108),char(9),char(113), -char(117),char(111),char(116),char(101),char(108),char(101),char(102),char(116),char(10),char(113), -char(117),char(111),char(116),char(101),char(114),char(105),char(103),char(104),char(116),char(14), -char(113),char(117),char(111),char(116),char(101),char(115),char(105),char(110),char(103),char(108), -char(98),char(97),char(115),char(101),char(13),char(113),char(117),char(111),char(116),char(101), -char(114),char(101),char(118),char(101),char(114),char(115),char(101),char(100),char(12),char(113), -char(117),char(111),char(116),char(101),char(100),char(98),char(108),char(108),char(101),char(102), -char(116),char(13),char(113),char(117),char(111),char(116),char(101),char(100),char(98),char(108), -char(114),char(105),char(103),char(104),char(116),char(12),char(113),char(117),char(111),char(116), -char(101),char(100),char(98),char(108),char(98),char(97),char(115),char(101),char(6),char(100), -char(97),char(103),char(103),char(101),char(114),char(9),char(100),char(97),char(103),char(103), -char(101),char(114),char(100),char(98),char(108),char(6),char(98),char(117),char(108),char(108), -char(101),char(116),char(8),char(101),char(108),char(108),char(105),char(112),char(115),char(105), -char(115),char(11),char(112),char(101),char(114),char(116),char(104),char(111),char(117),char(115), -char(97),char(110),char(100),char(6),char(109),char(105),char(110),char(117),char(116),char(101), -char(6),char(115),char(101),char(99),char(111),char(110),char(100),char(13),char(103),char(117), -char(105),char(108),char(115),char(105),char(110),char(103),char(108),char(108),char(101),char(102), -char(116),char(14),char(103),char(117),char(105),char(108),char(115),char(105),char(110),char(103), -char(108),char(114),char(105),char(103),char(104),char(116),char(9),char(101),char(120),char(99), -char(108),char(97),char(109),char(100),char(98),char(108),char(8),char(102),char(114),char(97), -char(99),char(116),char(105),char(111),char(110),char(9),char(110),char(115),char(117),char(112), -char(101),char(114),char(105),char(111),char(114),char(5),char(102),char(114),char(97),char(110), -char(99),char(9),char(97),char(102),char(105),char(105),char(48),char(56),char(57),char(52), -char(49),char(6),char(112),char(101),char(115),char(101),char(116),char(97),char(4),char(69), -char(117),char(114),char(111),char(9),char(97),char(102),char(105),char(105),char(54),char(49), -char(50),char(52),char(56),char(9),char(97),char(102),char(105),char(105),char(54),char(49), -char(50),char(56),char(57),char(9),char(97),char(102),char(105),char(105),char(54),char(49), -char(51),char(53),char(50),char(9),char(116),char(114),char(97),char(100),char(101),char(109), -char(97),char(114),char(107),char(5),char(79),char(109),char(101),char(103),char(97),char(9), -char(101),char(115),char(116),char(105),char(109),char(97),char(116),char(101),char(100),char(9), -char(111),char(110),char(101),char(101),char(105),char(103),char(104),char(116),char(104),char(12), -char(116),char(104),char(114),char(101),char(101),char(101),char(105),char(103),char(104),char(116), -char(104),char(115),char(11),char(102),char(105),char(118),char(101),char(101),char(105),char(103), -char(104),char(116),char(104),char(115),char(12),char(115),char(101),char(118),char(101),char(110), -char(101),char(105),char(103),char(104),char(116),char(104),char(115),char(11),char(112),char(97), -char(114),char(116),char(105),char(97),char(108),char(100),char(105),char(102),char(102),char(5), -char(68),char(101),char(108),char(116),char(97),char(7),char(112),char(114),char(111),char(100), -char(117),char(99),char(116),char(9),char(115),char(117),char(109),char(109),char(97),char(116), -char(105),char(111),char(110),char(5),char(109),char(105),char(110),char(117),char(115),char(7), -char(114),char(97),char(100),char(105),char(99),char(97),char(108),char(8),char(105),char(110), -char(102),char(105),char(110),char(105),char(116),char(121),char(8),char(105),char(110),char(116), -char(101),char(103),char(114),char(97),char(108),char(11),char(97),char(112),char(112),char(114), -char(111),char(120),char(101),char(113),char(117),char(97),char(108),char(8),char(110),char(111), -char(116),char(101),char(113),char(117),char(97),char(108),char(9),char(108),char(101),char(115), -char(115),char(101),char(113),char(117),char(97),char(108),char(12),char(103),char(114),char(101), -char(97),char(116),char(101),char(114),char(101),char(113),char(117),char(97),char(108),char(7), -char(108),char(111),char(122),char(101),char(110),char(103),char(101),char(7),char(117),char(110), -char(105),char(70),char(66),char(48),char(49),char(7),char(117),char(110),char(105),char(70), -char(66),char(48),char(50),char(13),char(99),char(121),char(114),char(105),char(108),char(108), -char(105),char(99),char(98),char(114),char(101),char(118),char(101),char(8),char(100),char(111), -char(116),char(108),char(101),char(115),char(115),char(106),char(16),char(99),char(97),char(114), -char(111),char(110),char(99),char(111),char(109),char(109),char(97),char(97),char(99),char(99), -char(101),char(110),char(116),char(11),char(99),char(111),char(109),char(109),char(97),char(97), -char(99),char(99),char(101),char(110),char(116),char(17),char(99),char(111),char(109),char(109), -char(97),char(97),char(99),char(99),char(101),char(110),char(116),char(114),char(111),char(116), -char(97),char(116),char(101),char(12),char(122),char(101),char(114),char(111),char(115),char(117), -char(112),char(101),char(114),char(105),char(111),char(114),char(12),char(102),char(111),char(117), -char(114),char(115),char(117),char(112),char(101),char(114),char(105),char(111),char(114),char(12), -char(102),char(105),char(118),char(101),char(115),char(117),char(112),char(101),char(114),char(105), -char(111),char(114),char(11),char(115),char(105),char(120),char(115),char(117),char(112),char(101), -char(114),char(105),char(111),char(114),char(13),char(115),char(101),char(118),char(101),char(110), -char(115),char(117),char(112),char(101),char(114),char(105),char(111),char(114),char(13),char(101), -char(105),char(103),char(104),char(116),char(115),char(117),char(112),char(101),char(114),char(105), -char(111),char(114),char(12),char(110),char(105),char(110),char(101),char(115),char(117),char(112), -char(101),char(114),char(105),char(111),char(114),char(7),char(117),char(110),char(105),char(50), -char(48),char(48),char(48),char(7),char(117),char(110),char(105),char(50),char(48),char(48), -char(49),char(7),char(117),char(110),char(105),char(50),char(48),char(48),char(50),char(7), -char(117),char(110),char(105),char(50),char(48),char(48),char(51),char(7),char(117),char(110), -char(105),char(50),char(48),char(48),char(52),char(7),char(117),char(110),char(105),char(50), -char(48),char(48),char(53),char(7),char(117),char(110),char(105),char(50),char(48),char(48), -char(54),char(7),char(117),char(110),char(105),char(50),char(48),char(48),char(55),char(7), -char(117),char(110),char(105),char(50),char(48),char(48),char(56),char(7),char(117),char(110), -char(105),char(50),char(48),char(48),char(57),char(7),char(117),char(110),char(105),char(50), -char(48),char(48),char(65),char(7),char(117),char(110),char(105),char(50),char(48),char(48), -char(66),char(7),char(117),char(110),char(105),char(70),char(69),char(70),char(70),char(7), -char(117),char(110),char(105),char(70),char(70),char(70),char(67),char(7),char(117),char(110), -char(105),char(70),char(70),char(70),char(68),char(7),char(117),char(110),char(105),char(48), -char(49),char(70),char(48),char(7),char(117),char(110),char(105),char(48),char(50),char(66), -char(67),char(7),char(117),char(110),char(105),char(48),char(51),char(68),char(49),char(7), -char(117),char(110),char(105),char(48),char(51),char(68),char(50),char(7),char(117),char(110), -char(105),char(48),char(51),char(68),char(54),char(7),char(117),char(110),char(105),char(49), -char(69),char(51),char(69),char(7),char(117),char(110),char(105),char(49),char(69),char(51), -char(70),char(7),char(117),char(110),char(105),char(49),char(69),char(48),char(48),char(7), -char(117),char(110),char(105),char(49),char(69),char(48),char(49),char(7),char(117),char(110), -char(105),char(49),char(70),char(52),char(68),char(7),char(117),char(110),char(105),char(48), -char(50),char(70),char(51),char(9),char(100),char(97),char(115),char(105),char(97),char(111), -char(120),char(105),char(97),char(7),char(117),char(110),char(105),char(70),char(66),char(48), -char(51),char(7),char(117),char(110),char(105),char(70),char(66),char(48),char(52),char(5), -char(79),char(104),char(111),char(114),char(110),char(5),char(111),char(104),char(111),char(114), -char(110),char(5),char(85),char(104),char(111),char(114),char(110),char(5),char(117),char(104), -char(111),char(114),char(110),char(7),char(117),char(110),char(105),char(48),char(51),char(48), -char(48),char(7),char(117),char(110),char(105),char(48),char(51),char(48),char(49),char(7), -char(117),char(110),char(105),char(48),char(51),char(48),char(51),char(4),char(104),char(111), -char(111),char(107),char(8),char(100),char(111),char(116),char(98),char(101),char(108),char(111), -char(119),char(7),char(117),char(110),char(105),char(48),char(52),char(48),char(48),char(7), -char(117),char(110),char(105),char(48),char(52),char(48),char(68),char(7),char(117),char(110), -char(105),char(48),char(52),char(53),char(48),char(7),char(117),char(110),char(105),char(48), -char(52),char(53),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(54), -char(48),char(7),char(117),char(110),char(105),char(48),char(52),char(54),char(49),char(7), -char(117),char(110),char(105),char(48),char(52),char(54),char(50),char(7),char(117),char(110), -char(105),char(48),char(52),char(54),char(51),char(7),char(117),char(110),char(105),char(48), -char(52),char(54),char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(54), -char(53),char(7),char(117),char(110),char(105),char(48),char(52),char(54),char(54),char(7), -char(117),char(110),char(105),char(48),char(52),char(54),char(55),char(7),char(117),char(110), -char(105),char(48),char(52),char(54),char(56),char(7),char(117),char(110),char(105),char(48), -char(52),char(54),char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(54), -char(65),char(7),char(117),char(110),char(105),char(48),char(52),char(54),char(66),char(7), -char(117),char(110),char(105),char(48),char(52),char(54),char(67),char(7),char(117),char(110), -char(105),char(48),char(52),char(54),char(68),char(7),char(117),char(110),char(105),char(48), -char(52),char(54),char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(54), -char(70),char(7),char(117),char(110),char(105),char(48),char(52),char(55),char(48),char(7), -char(117),char(110),char(105),char(48),char(52),char(55),char(49),char(7),char(117),char(110), -char(105),char(48),char(52),char(55),char(50),char(7),char(117),char(110),char(105),char(48), -char(52),char(55),char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(55), -char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(55),char(53),char(7), -char(117),char(110),char(105),char(48),char(52),char(55),char(54),char(7),char(117),char(110), -char(105),char(48),char(52),char(55),char(55),char(7),char(117),char(110),char(105),char(48), -char(52),char(55),char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(55), -char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(55),char(65),char(7), -char(117),char(110),char(105),char(48),char(52),char(55),char(66),char(7),char(117),char(110), -char(105),char(48),char(52),char(55),char(67),char(7),char(117),char(110),char(105),char(48), -char(52),char(55),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(55), -char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(55),char(70),char(7), -char(117),char(110),char(105),char(48),char(52),char(56),char(48),char(7),char(117),char(110), -char(105),char(48),char(52),char(56),char(49),char(7),char(117),char(110),char(105),char(48), -char(52),char(56),char(50),char(7),char(117),char(110),char(105),char(48),char(52),char(56), -char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(56),char(52),char(7), -char(117),char(110),char(105),char(48),char(52),char(56),char(53),char(7),char(117),char(110), -char(105),char(48),char(52),char(56),char(54),char(7),char(117),char(110),char(105),char(48), -char(52),char(56),char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(56), -char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(56),char(65),char(7), -char(117),char(110),char(105),char(48),char(52),char(56),char(66),char(7),char(117),char(110), -char(105),char(48),char(52),char(56),char(67),char(7),char(117),char(110),char(105),char(48), -char(52),char(56),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(56), -char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(56),char(70),char(7), -char(117),char(110),char(105),char(48),char(52),char(57),char(50),char(7),char(117),char(110), -char(105),char(48),char(52),char(57),char(51),char(7),char(117),char(110),char(105),char(48), -char(52),char(57),char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(57), -char(53),char(7),char(117),char(110),char(105),char(48),char(52),char(57),char(54),char(7), -char(117),char(110),char(105),char(48),char(52),char(57),char(55),char(7),char(117),char(110), -char(105),char(48),char(52),char(57),char(56),char(7),char(117),char(110),char(105),char(48), -char(52),char(57),char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(57), -char(65),char(7),char(117),char(110),char(105),char(48),char(52),char(57),char(66),char(7), -char(117),char(110),char(105),char(48),char(52),char(57),char(67),char(7),char(117),char(110), -char(105),char(48),char(52),char(57),char(68),char(7),char(117),char(110),char(105),char(48), -char(52),char(57),char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(57), -char(70),char(7),char(117),char(110),char(105),char(48),char(52),char(65),char(48),char(7), -char(117),char(110),char(105),char(48),char(52),char(65),char(49),char(7),char(117),char(110), -char(105),char(48),char(52),char(65),char(50),char(7),char(117),char(110),char(105),char(48), -char(52),char(65),char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(65), -char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(65),char(53),char(7), -char(117),char(110),char(105),char(48),char(52),char(65),char(54),char(7),char(117),char(110), -char(105),char(48),char(52),char(65),char(55),char(7),char(117),char(110),char(105),char(48), -char(52),char(65),char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(65), -char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(65),char(65),char(7), -char(117),char(110),char(105),char(48),char(52),char(65),char(66),char(7),char(117),char(110), -char(105),char(48),char(52),char(65),char(67),char(7),char(117),char(110),char(105),char(48), -char(52),char(65),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(65), -char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(65),char(70),char(7), -char(117),char(110),char(105),char(48),char(52),char(66),char(48),char(7),char(117),char(110), -char(105),char(48),char(52),char(66),char(49),char(7),char(117),char(110),char(105),char(48), -char(52),char(66),char(50),char(7),char(117),char(110),char(105),char(48),char(52),char(66), -char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(66),char(52),char(7), -char(117),char(110),char(105),char(48),char(52),char(66),char(53),char(7),char(117),char(110), -char(105),char(48),char(52),char(66),char(54),char(7),char(117),char(110),char(105),char(48), -char(52),char(66),char(55),char(7),char(117),char(110),char(105),char(48),char(52),char(66), -char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(66),char(57),char(7), -char(117),char(110),char(105),char(48),char(52),char(66),char(65),char(7),char(117),char(110), -char(105),char(48),char(52),char(66),char(66),char(7),char(117),char(110),char(105),char(48), -char(52),char(66),char(67),char(7),char(117),char(110),char(105),char(48),char(52),char(66), -char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(66),char(69),char(7), -char(117),char(110),char(105),char(48),char(52),char(66),char(70),char(11),char(117),char(110), -char(105),char(48),char(52),char(67),char(48),char(46),char(97),char(108),char(116),char(7), -char(117),char(110),char(105),char(48),char(52),char(67),char(49),char(7),char(117),char(110), -char(105),char(48),char(52),char(67),char(50),char(7),char(117),char(110),char(105),char(48), -char(52),char(67),char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(67), -char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(67),char(53),char(7), -char(117),char(110),char(105),char(48),char(52),char(67),char(54),char(7),char(117),char(110), -char(105),char(48),char(52),char(67),char(55),char(7),char(117),char(110),char(105),char(48), -char(52),char(67),char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(67), -char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(67),char(65),char(7), -char(117),char(110),char(105),char(48),char(52),char(67),char(66),char(7),char(117),char(110), -char(105),char(48),char(52),char(67),char(67),char(7),char(117),char(110),char(105),char(48), -char(52),char(67),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(67), -char(69),char(11),char(117),char(110),char(105),char(48),char(52),char(67),char(70),char(46), -char(97),char(108),char(116),char(7),char(117),char(110),char(105),char(48),char(52),char(68), -char(48),char(7),char(117),char(110),char(105),char(48),char(52),char(68),char(49),char(7), -char(117),char(110),char(105),char(48),char(52),char(68),char(50),char(7),char(117),char(110), -char(105),char(48),char(52),char(68),char(51),char(7),char(117),char(110),char(105),char(48), -char(52),char(68),char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(68), -char(53),char(7),char(117),char(110),char(105),char(48),char(52),char(68),char(54),char(7), -char(117),char(110),char(105),char(48),char(52),char(68),char(55),char(7),char(117),char(110), -char(105),char(48),char(52),char(68),char(56),char(7),char(117),char(110),char(105),char(48), -char(52),char(68),char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(68), -char(65),char(7),char(117),char(110),char(105),char(48),char(52),char(68),char(66),char(7), -char(117),char(110),char(105),char(48),char(52),char(68),char(67),char(7),char(117),char(110), -char(105),char(48),char(52),char(68),char(68),char(7),char(117),char(110),char(105),char(48), -char(52),char(68),char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(68), -char(70),char(7),char(117),char(110),char(105),char(48),char(52),char(69),char(48),char(7), -char(117),char(110),char(105),char(48),char(52),char(69),char(49),char(7),char(117),char(110), -char(105),char(48),char(52),char(69),char(50),char(7),char(117),char(110),char(105),char(48), -char(52),char(69),char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(69), -char(52),char(7),char(117),char(110),char(105),char(48),char(52),char(69),char(53),char(7), -char(117),char(110),char(105),char(48),char(52),char(69),char(54),char(7),char(117),char(110), -char(105),char(48),char(52),char(69),char(55),char(7),char(117),char(110),char(105),char(48), -char(52),char(69),char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(69), -char(57),char(7),char(117),char(110),char(105),char(48),char(52),char(69),char(65),char(7), -char(117),char(110),char(105),char(48),char(52),char(69),char(66),char(7),char(117),char(110), -char(105),char(48),char(52),char(69),char(67),char(7),char(117),char(110),char(105),char(48), -char(52),char(69),char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(69), -char(69),char(7),char(117),char(110),char(105),char(48),char(52),char(69),char(70),char(7), -char(117),char(110),char(105),char(48),char(52),char(70),char(48),char(7),char(117),char(110), -char(105),char(48),char(52),char(70),char(49),char(7),char(117),char(110),char(105),char(48), -char(52),char(70),char(50),char(7),char(117),char(110),char(105),char(48),char(52),char(70), -char(51),char(7),char(117),char(110),char(105),char(48),char(52),char(70),char(52),char(7), -char(117),char(110),char(105),char(48),char(52),char(70),char(53),char(7),char(117),char(110), -char(105),char(48),char(52),char(70),char(54),char(7),char(117),char(110),char(105),char(48), -char(52),char(70),char(55),char(7),char(117),char(110),char(105),char(48),char(52),char(70), -char(56),char(7),char(117),char(110),char(105),char(48),char(52),char(70),char(57),char(7), -char(117),char(110),char(105),char(48),char(52),char(70),char(65),char(7),char(117),char(110), -char(105),char(48),char(52),char(70),char(66),char(7),char(117),char(110),char(105),char(48), -char(52),char(70),char(67),char(7),char(117),char(110),char(105),char(48),char(52),char(70), -char(68),char(7),char(117),char(110),char(105),char(48),char(52),char(70),char(69),char(7), -char(117),char(110),char(105),char(48),char(52),char(70),char(70),char(7),char(117),char(110), -char(105),char(48),char(53),char(48),char(48),char(7),char(117),char(110),char(105),char(48), -char(53),char(48),char(49),char(7),char(117),char(110),char(105),char(48),char(53),char(48), -char(50),char(7),char(117),char(110),char(105),char(48),char(53),char(48),char(51),char(7), -char(117),char(110),char(105),char(48),char(53),char(48),char(52),char(7),char(117),char(110), -char(105),char(48),char(53),char(48),char(53),char(7),char(117),char(110),char(105),char(48), -char(53),char(48),char(54),char(7),char(117),char(110),char(105),char(48),char(53),char(48), -char(55),char(7),char(117),char(110),char(105),char(48),char(53),char(48),char(56),char(7), -char(117),char(110),char(105),char(48),char(53),char(48),char(57),char(7),char(117),char(110), -char(105),char(48),char(53),char(48),char(65),char(7),char(117),char(110),char(105),char(48), -char(53),char(48),char(66),char(7),char(117),char(110),char(105),char(48),char(53),char(48), -char(67),char(7),char(117),char(110),char(105),char(48),char(53),char(48),char(68),char(7), -char(117),char(110),char(105),char(48),char(53),char(48),char(69),char(7),char(117),char(110), -char(105),char(48),char(53),char(48),char(70),char(7),char(117),char(110),char(105),char(48), -char(53),char(49),char(48),char(7),char(117),char(110),char(105),char(48),char(53),char(49), -char(49),char(7),char(117),char(110),char(105),char(48),char(53),char(49),char(50),char(7), -char(117),char(110),char(105),char(48),char(53),char(49),char(51),char(7),char(117),char(110), -char(105),char(49),char(69),char(65),char(48),char(7),char(117),char(110),char(105),char(49), -char(69),char(65),char(49),char(7),char(117),char(110),char(105),char(49),char(69),char(65), -char(50),char(7),char(117),char(110),char(105),char(49),char(69),char(65),char(51),char(7), -char(117),char(110),char(105),char(49),char(69),char(65),char(52),char(7),char(117),char(110), -char(105),char(49),char(69),char(65),char(53),char(7),char(117),char(110),char(105),char(49), -char(69),char(65),char(54),char(7),char(117),char(110),char(105),char(49),char(69),char(65), -char(55),char(7),char(117),char(110),char(105),char(49),char(69),char(65),char(56),char(7), -char(117),char(110),char(105),char(49),char(69),char(65),char(57),char(7),char(117),char(110), -char(105),char(49),char(69),char(65),char(65),char(7),char(117),char(110),char(105),char(49), -char(69),char(65),char(66),char(7),char(117),char(110),char(105),char(49),char(69),char(65), -char(67),char(7),char(117),char(110),char(105),char(49),char(69),char(65),char(68),char(7), -char(117),char(110),char(105),char(49),char(69),char(65),char(69),char(7),char(117),char(110), -char(105),char(49),char(69),char(65),char(70),char(7),char(117),char(110),char(105),char(49), -char(69),char(66),char(48),char(7),char(117),char(110),char(105),char(49),char(69),char(66), -char(49),char(7),char(117),char(110),char(105),char(49),char(69),char(66),char(50),char(7), -char(117),char(110),char(105),char(49),char(69),char(66),char(51),char(7),char(117),char(110), -char(105),char(49),char(69),char(66),char(52),char(7),char(117),char(110),char(105),char(49), -char(69),char(66),char(53),char(7),char(117),char(110),char(105),char(49),char(69),char(66), -char(54),char(7),char(117),char(110),char(105),char(49),char(69),char(66),char(55),char(7), -char(117),char(110),char(105),char(49),char(69),char(66),char(56),char(7),char(117),char(110), -char(105),char(49),char(69),char(66),char(57),char(7),char(117),char(110),char(105),char(49), -char(69),char(66),char(65),char(7),char(117),char(110),char(105),char(49),char(69),char(66), -char(66),char(7),char(117),char(110),char(105),char(49),char(69),char(66),char(67),char(7), -char(117),char(110),char(105),char(49),char(69),char(66),char(68),char(7),char(117),char(110), -char(105),char(49),char(69),char(66),char(69),char(7),char(117),char(110),char(105),char(49), -char(69),char(66),char(70),char(7),char(117),char(110),char(105),char(49),char(69),char(67), -char(48),char(7),char(117),char(110),char(105),char(49),char(69),char(67),char(49),char(7), -char(117),char(110),char(105),char(49),char(69),char(67),char(50),char(7),char(117),char(110), -char(105),char(49),char(69),char(67),char(51),char(7),char(117),char(110),char(105),char(49), -char(69),char(67),char(52),char(7),char(117),char(110),char(105),char(49),char(69),char(67), -char(53),char(7),char(117),char(110),char(105),char(49),char(69),char(67),char(54),char(7), -char(117),char(110),char(105),char(49),char(69),char(67),char(55),char(11),char(117),char(110), -char(105),char(49),char(69),char(67),char(56),char(46),char(97),char(108),char(116),char(7), -char(117),char(110),char(105),char(49),char(69),char(67),char(57),char(11),char(117),char(110), -char(105),char(49),char(69),char(67),char(65),char(46),char(97),char(108),char(116),char(7), -char(117),char(110),char(105),char(49),char(69),char(67),char(66),char(7),char(117),char(110), -char(105),char(49),char(69),char(67),char(67),char(7),char(117),char(110),char(105),char(49), -char(69),char(67),char(68),char(7),char(117),char(110),char(105),char(49),char(69),char(67), -char(69),char(7),char(117),char(110),char(105),char(49),char(69),char(67),char(70),char(7), -char(117),char(110),char(105),char(49),char(69),char(68),char(48),char(7),char(117),char(110), -char(105),char(49),char(69),char(68),char(49),char(7),char(117),char(110),char(105),char(49), -char(69),char(68),char(50),char(7),char(117),char(110),char(105),char(49),char(69),char(68), -char(51),char(7),char(117),char(110),char(105),char(49),char(69),char(68),char(52),char(7), -char(117),char(110),char(105),char(49),char(69),char(68),char(53),char(7),char(117),char(110), -char(105),char(49),char(69),char(68),char(54),char(7),char(117),char(110),char(105),char(49), -char(69),char(68),char(55),char(7),char(117),char(110),char(105),char(49),char(69),char(68), -char(56),char(7),char(117),char(110),char(105),char(49),char(69),char(68),char(57),char(7), -char(117),char(110),char(105),char(49),char(69),char(68),char(65),char(7),char(117),char(110), -char(105),char(49),char(69),char(68),char(66),char(7),char(117),char(110),char(105),char(49), -char(69),char(68),char(67),char(7),char(117),char(110),char(105),char(49),char(69),char(68), -char(68),char(7),char(117),char(110),char(105),char(49),char(69),char(68),char(69),char(7), -char(117),char(110),char(105),char(49),char(69),char(68),char(70),char(7),char(117),char(110), -char(105),char(49),char(69),char(69),char(48),char(7),char(117),char(110),char(105),char(49), -char(69),char(69),char(49),char(7),char(117),char(110),char(105),char(49),char(69),char(69), -char(50),char(7),char(117),char(110),char(105),char(49),char(69),char(69),char(51),char(7), -char(117),char(110),char(105),char(49),char(69),char(69),char(52),char(7),char(117),char(110), -char(105),char(49),char(69),char(69),char(53),char(7),char(117),char(110),char(105),char(49), -char(69),char(69),char(54),char(7),char(117),char(110),char(105),char(49),char(69),char(69), -char(55),char(7),char(117),char(110),char(105),char(49),char(69),char(69),char(56),char(7), -char(117),char(110),char(105),char(49),char(69),char(69),char(57),char(7),char(117),char(110), -char(105),char(49),char(69),char(69),char(65),char(7),char(117),char(110),char(105),char(49), -char(69),char(69),char(66),char(7),char(117),char(110),char(105),char(49),char(69),char(69), -char(67),char(7),char(117),char(110),char(105),char(49),char(69),char(69),char(68),char(7), -char(117),char(110),char(105),char(49),char(69),char(69),char(69),char(7),char(117),char(110), -char(105),char(49),char(69),char(69),char(70),char(7),char(117),char(110),char(105),char(49), -char(69),char(70),char(48),char(7),char(117),char(110),char(105),char(49),char(69),char(70), -char(49),char(7),char(117),char(110),char(105),char(49),char(69),char(70),char(52),char(7), -char(117),char(110),char(105),char(49),char(69),char(70),char(53),char(7),char(117),char(110), -char(105),char(49),char(69),char(70),char(54),char(7),char(117),char(110),char(105),char(49), -char(69),char(70),char(55),char(7),char(117),char(110),char(105),char(49),char(69),char(70), -char(56),char(7),char(117),char(110),char(105),char(49),char(69),char(70),char(57),char(7), -char(117),char(110),char(105),char(50),char(48),char(65),char(66),char(7),char(117),char(110), -char(105),char(48),char(51),char(48),char(70),char(19),char(99),char(105),char(114),char(99), -char(117),char(109),char(102),char(108),char(101),char(120),char(97),char(99),char(117),char(116), -char(101),char(99),char(111),char(109),char(98),char(19),char(99),char(105),char(114),char(99), -char(117),char(109),char(102),char(108),char(101),char(120),char(103),char(114),char(97),char(118), -char(101),char(99),char(111),char(109),char(98),char(18),char(99),char(105),char(114),char(99), -char(117),char(109),char(102),char(108),char(101),char(120),char(104),char(111),char(111),char(107), -char(99),char(111),char(109),char(98),char(19),char(99),char(105),char(114),char(99),char(117), -char(109),char(102),char(108),char(101),char(120),char(116),char(105),char(108),char(100),char(101), -char(99),char(111),char(109),char(98),char(14),char(98),char(114),char(101),char(118),char(101), -char(97),char(99),char(117),char(116),char(101),char(99),char(111),char(109),char(98),char(14), -char(98),char(114),char(101),char(118),char(101),char(103),char(114),char(97),char(118),char(101), -char(99),char(111),char(109),char(98),char(13),char(98),char(114),char(101),char(118),char(101), -char(104),char(111),char(111),char(107),char(99),char(111),char(109),char(98),char(14),char(98), -char(114),char(101),char(118),char(101),char(116),char(105),char(108),char(100),char(101),char(99), -char(111),char(109),char(98),char(16),char(99),char(121),char(114),char(105),char(108),char(108), -char(105),char(99),char(104),char(111),char(111),char(107),char(108),char(101),char(102),char(116), -char(17),char(99),char(121),char(114),char(105),char(108),char(108),char(105),char(99),char(98), -char(105),char(103),char(104),char(111),char(111),char(107),char(85),char(67),char(17),char(99), -char(121),char(114),char(105),char(108),char(108),char(105),char(99),char(98),char(105),char(103), -char(104),char(111),char(111),char(107),char(76),char(67),char(8),char(111),char(110),char(101), -char(46),char(112),char(110),char(117),char(109),char(7),char(122),char(101),char(114),char(111), -char(46),char(111),char(115),char(6),char(111),char(110),char(101),char(46),char(111),char(115), -char(6),char(116),char(119),char(111),char(46),char(111),char(115),char(8),char(116),char(104), -char(114),char(101),char(101),char(46),char(111),char(115),char(7),char(102),char(111),char(117), -char(114),char(46),char(111),char(115),char(7),char(102),char(105),char(118),char(101),char(46), -char(111),char(115),char(6),char(115),char(105),char(120),char(46),char(111),char(115),char(8), -char(115),char(101),char(118),char(101),char(110),char(46),char(111),char(115),char(8),char(101), -char(105),char(103),char(104),char(116),char(46),char(111),char(115),char(7),char(110),char(105), -char(110),char(101),char(46),char(111),char(115),char(2),char(102),char(102),char(7),char(117), -char(110),char(105),char(50),char(49),char(50),char(48),char(8),char(84),char(99),char(101), -char(100),char(105),char(108),char(108),char(97),char(8),char(116),char(99),char(101),char(100), -char(105),char(108),char(108),char(97),char(5),char(103),char(46),char(97),char(108),char(116), -char(15),char(103),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108), -char(101),char(120),char(46),char(97),char(108),char(116),char(10),char(103),char(98),char(114), -char(101),char(118),char(101),char(46),char(97),char(108),char(116),char(8),char(103),char(100), -char(111),char(116),char(46),char(97),char(108),char(116),char(16),char(103),char(99),char(111), -char(109),char(109),char(97),char(97),char(99),char(99),char(101),char(110),char(116),char(46), -char(97),char(108),char(116),char(1),char(73),char(6),char(73),char(103),char(114),char(97), -char(118),char(101),char(6),char(73),char(97),char(99),char(117),char(116),char(101),char(11), -char(73),char(99),char(105),char(114),char(99),char(117),char(109),char(102),char(108),char(101), -char(120),char(9),char(73),char(100),char(105),char(101),char(114),char(101),char(115),char(105), -char(115),char(6),char(73),char(116),char(105),char(108),char(100),char(101),char(7),char(73), -char(109),char(97),char(99),char(114),char(111),char(110),char(6),char(73),char(98),char(114), -char(101),char(118),char(101),char(7),char(73),char(111),char(103),char(111),char(110),char(101), -char(107),char(10),char(73),char(100),char(111),char(116),char(97),char(99),char(99),char(101), -char(110),char(116),char(2),char(73),char(74),char(9),char(73),char(111),char(116),char(97), -char(116),char(111),char(110),char(111),char(115),char(4),char(73),char(111),char(116),char(97), -char(12),char(73),char(111),char(116),char(97),char(100),char(105),char(101),char(114),char(101), -char(115),char(105),char(115),char(9),char(97),char(102),char(105),char(105),char(49),char(48), -char(48),char(53),char(53),char(9),char(97),char(102),char(105),char(105),char(49),char(48), -char(48),char(53),char(54),char(7),char(117),char(110),char(105),char(48),char(52),char(67), -char(48),char(7),char(117),char(110),char(105),char(48),char(52),char(67),char(70),char(7), -char(117),char(110),char(105),char(49),char(69),char(67),char(56),char(7),char(117),char(110), -char(105),char(49),char(69),char(67),char(65),char(0),char(0),char(1),char(0),char(3), -char(0),char(8),char(0),char(10),char(0),char(13),char(0),char(7),char(255),char(255), -char(0),char(15),char(0),char(1),char(0),char(0),char(0),char(12),char(0),char(0), -char(0),char(22),char(0),char(0),char(0),char(2),char(0),char(1),char(0),char(0), -char(3),char(169),char(0),char(1),char(0),char(4),char(0),char(0),char(0),char(1), -char(0),char(0),char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(10), -char(0),char(52),char(0),char(54),char(0),char(1),char(108),char(97),char(116),char(110), -char(0),char(8),char(0),char(16),char(0),char(2),char(77),char(79),char(76),char(32), -char(0),char(22),char(82),char(79),char(77),char(32),char(0),char(28),char(0),char(0), -char(255),char(255),char(0),char(0),char(0),char(0),char(255),char(255),char(0),char(0), -char(0),char(0),char(255),char(255),char(0),char(0),char(0),char(0),char(0),char(0), -char(0),char(1),char(0),char(0),char(0),char(10),char(0),char(110),char(1),char(228), -char(0),char(1),char(108),char(97),char(116),char(110),char(0),char(8),char(0),char(16), -char(0),char(2),char(77),char(79),char(76),char(32),char(0),char(40),char(82),char(79), -char(77),char(32),char(0),char(66),char(0),char(0),char(255),char(255),char(0),char(9), -char(0),char(3),char(0),char(8),char(0),char(11),char(0),char(0),char(0),char(14), -char(0),char(17),char(0),char(20),char(0),char(23),char(0),char(26),char(0),char(0), -char(255),char(255),char(0),char(10),char(0),char(4),char(0),char(6),char(0),char(9), -char(0),char(12),char(0),char(1),char(0),char(15),char(0),char(18),char(0),char(21), -char(0),char(24),char(0),char(27),char(0),char(0),char(255),char(255),char(0),char(10), -char(0),char(5),char(0),char(7),char(0),char(10),char(0),char(13),char(0),char(2), -char(0),char(16),char(0),char(19),char(0),char(22),char(0),char(25),char(0),char(28), -char(0),char(29),char(108),char(105),char(103),char(97),char(0),char(176),char(108),char(105), -char(103),char(97),char(0),char(182),char(108),char(105),char(103),char(97),char(0),char(188), -char(108),char(110),char(117),char(109),char(0),char(194),char(108),char(110),char(117),char(109), -char(0),char(200),char(108),char(110),char(117),char(109),char(0),char(206),char(108),char(111), -char(99),char(108),char(0),char(212),char(108),char(111),char(99),char(108),char(0),char(218), -char(111),char(110),char(117),char(109),char(0),char(224),char(111),char(110),char(117),char(109), -char(0),char(232),char(111),char(110),char(117),char(109),char(0),char(240),char(112),char(110), -char(117),char(109),char(0),char(248),char(112),char(110),char(117),char(109),char(0),char(254), -char(112),char(110),char(117),char(109),char(1),char(4),char(115),char(97),char(108),char(116), -char(1),char(10),char(115),char(97),char(108),char(116),char(1),char(18),char(115),char(97), -char(108),char(116),char(1),char(26),char(115),char(115),char(48),char(49),char(1),char(34), -char(115),char(115),char(48),char(49),char(1),char(42),char(115),char(115),char(48),char(49), -char(1),char(50),char(115),char(115),char(48),char(50),char(1),char(58),char(115),char(115), -char(48),char(50),char(1),char(64),char(115),char(115),char(48),char(50),char(1),char(70), -char(115),char(115),char(48),char(51),char(1),char(76),char(115),char(115),char(48),char(51), -char(1),char(82),char(115),char(115),char(48),char(51),char(1),char(88),char(116),char(110), -char(117),char(109),char(1),char(94),char(116),char(110),char(117),char(109),char(1),char(102), -char(116),char(110),char(117),char(109),char(1),char(110),char(0),char(0),char(0),char(1), -char(0),char(9),char(0),char(0),char(0),char(1),char(0),char(9),char(0),char(0), -char(0),char(1),char(0),char(9),char(0),char(0),char(0),char(1),char(0),char(7), -char(0),char(0),char(0),char(1),char(0),char(7),char(0),char(0),char(0),char(1), -char(0),char(7),char(0),char(0),char(0),char(1),char(0),char(8),char(0),char(0), -char(0),char(1),char(0),char(8),char(0),char(0),char(0),char(2),char(0),char(2), -char(0),char(3),char(0),char(0),char(0),char(2),char(0),char(2),char(0),char(3), -char(0),char(0),char(0),char(2),char(0),char(2),char(0),char(3),char(0),char(0), -char(0),char(1),char(0),char(4),char(0),char(0),char(0),char(1),char(0),char(4), -char(0),char(0),char(0),char(1),char(0),char(4),char(0),char(0),char(0),char(2), -char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(2),char(0),char(0), -char(0),char(1),char(0),char(0),char(0),char(2),char(0),char(0),char(0),char(1), -char(0),char(0),char(0),char(2),char(0),char(0),char(0),char(1),char(0),char(0), -char(0),char(2),char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(2), -char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(1),char(0),char(0), -char(0),char(0),char(0),char(1),char(0),char(0),char(0),char(0),char(0),char(1), -char(0),char(0),char(0),char(0),char(0),char(1),char(0),char(1),char(0),char(0), -char(0),char(1),char(0),char(1),char(0),char(0),char(0),char(1),char(0),char(1), -char(0),char(0),char(0),char(2),char(0),char(5),char(0),char(6),char(0),char(0), -char(0),char(2),char(0),char(5),char(0),char(6),char(0),char(0),char(0),char(2), -char(0),char(5),char(0),char(6),char(0),char(10),char(0),char(22),char(0),char(30), -char(0),char(38),char(0),char(46),char(0),char(54),char(0),char(62),char(0),char(70), -char(0),char(78),char(0),char(86),char(0),char(94),char(0),char(1),char(0),char(0), -char(0),char(1),char(0),char(80),char(0),char(1),char(0),char(0),char(0),char(1), -char(0),char(122),char(0),char(1),char(0),char(0),char(0),char(1),char(0),char(170), -char(0),char(1),char(0),char(0),char(0),char(1),char(0),char(198),char(0),char(1), -char(0),char(0),char(0),char(1),char(0),char(238),char(0),char(1),char(0),char(0), -char(0),char(1),char(0),char(244),char(0),char(1),char(0),char(0),char(0),char(1), -char(1),char(16),char(0),char(1),char(0),char(0),char(0),char(1),char(1),char(22), -char(0),char(1),char(0),char(0),char(0),char(1),char(1),char(50),char(0),char(4), -char(0),char(0),char(0),char(1),char(1),char(72),char(0),char(2),char(0),char(16), -char(0),char(5),char(3),char(145),char(3),char(146),char(3),char(147),char(3),char(148), -char(3),char(149),char(0),char(2),char(0),char(5),char(0),char(74),char(0),char(74), -char(0),char(0),char(0),char(223),char(0),char(223),char(0),char(1),char(0),char(225), -char(0),char(225),char(0),char(2),char(0),char(227),char(0),char(227),char(0),char(3), -char(0),char(229),char(0),char(229),char(0),char(4),char(0),char(2),char(0),char(46), -char(0),char(20),char(0),char(44),char(0),char(142),char(0),char(143),char(0),char(144), -char(0),char(145),char(0),char(234),char(0),char(236),char(0),char(238),char(0),char(240), -char(0),char(242),char(0),char(244),char(1),char(90),char(1),char(103),char(1),char(119), -char(1),char(161),char(1),char(162),char(2),char(201),char(2),char(216),char(3),char(69), -char(3),char(71),char(0),char(2),char(0),char(1),char(3),char(150),char(3),char(169), -char(0),char(0),char(0),char(2),char(0),char(26),char(0),char(10),char(3),char(131), -char(3),char(132),char(3),char(133),char(3),char(134),char(3),char(135),char(3),char(136), -char(3),char(137),char(3),char(138),char(3),char(139),char(3),char(140),char(0),char(2), -char(0),char(1),char(0),char(19),char(0),char(28),char(0),char(0),char(0),char(2), -char(0),char(26),char(0),char(10),char(3),char(131),char(3),char(133),char(3),char(134), -char(3),char(135),char(3),char(136),char(3),char(137),char(3),char(138),char(3),char(139), -char(3),char(140),char(3),char(132),char(0),char(2),char(0),char(3),char(0),char(19), -char(0),char(19),char(0),char(0),char(0),char(21),char(0),char(28),char(0),char(1), -char(3),char(130),char(3),char(130),char(0),char(9),char(0),char(2),char(0),char(8), -char(0),char(1),char(3),char(130),char(0),char(1),char(0),char(1),char(0),char(20), -char(0),char(2),char(0),char(26),char(0),char(10),char(0),char(19),char(0),char(20), -char(0),char(21),char(0),char(22),char(0),char(23),char(0),char(24),char(0),char(25), -char(0),char(26),char(0),char(27),char(0),char(28),char(0),char(2),char(0),char(1), -char(3),char(131),char(3),char(140),char(0),char(0),char(0),char(2),char(0),char(8), -char(0),char(1),char(0),char(20),char(0),char(1),char(0),char(1),char(3),char(130), -char(0),char(2),char(0),char(26),char(0),char(10),char(0),char(19),char(3),char(130), -char(0),char(21),char(0),char(22),char(0),char(23),char(0),char(24),char(0),char(25), -char(0),char(26),char(0),char(27),char(0),char(28),char(0),char(2),char(0),char(1), -char(3),char(131),char(3),char(140),char(0),char(0),char(0),char(2),char(0),char(14), -char(0),char(4),char(3),char(143),char(3),char(144),char(1),char(32),char(1),char(33), -char(0),char(2),char(0),char(2),char(1),char(36),char(1),char(37),char(0),char(0), -char(1),char(73),char(1),char(74),char(0),char(2),char(0),char(1),char(0),char(54), -char(0),char(1),char(0),char(8),char(0),char(5),char(0),char(12),char(0),char(20), -char(0),char(28),char(0),char(34),char(0),char(40),char(2),char(94),char(0),char(3), -char(0),char(73),char(0),char(79),char(2),char(93),char(0),char(3),char(0),char(73), -char(0),char(76),char(3),char(141),char(0),char(2),char(0),char(73),char(2),char(53), -char(0),char(2),char(0),char(79),char(2),char(52),char(0),char(2),char(0),char(76), -char(0),char(1),char(0),char(1),char(0),char(73),char(0),char(0),char(0),char(0), -char(0),char(1),char(0),char(1),char(0),char(1),char(0),char(0),char(0),char(1), -char(0),char(0),char(21),char(94),char(0),char(0),char(0),char(20),char(0),char(0), -char(0),char(0),char(0),char(0),char(21),char(86),char(48),char(130),char(21),char(82), -char(6),char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(7), -char(2),char(160),char(130),char(21),char(67),char(48),char(130),char(21),char(63),char(2), -char(1),char(1),char(49),char(11),char(48),char(9),char(6),char(5),char(43),char(14), -char(3),char(2),char(26),char(5),char(0),char(48),char(97),char(6),char(10),char(43), -char(6),char(1),char(4),char(1),char(130),char(55),char(2),char(1),char(4),char(160), -char(83),char(48),char(81),char(48),char(44),char(6),char(10),char(43),char(6),char(1), -char(4),char(1),char(130),char(55),char(2),char(1),char(28),char(162),char(30),char(128), -char(28),char(0),char(60),char(0),char(60),char(0),char(60),char(0),char(79),char(0), -char(98),char(0),char(115),char(0),char(111),char(0),char(108),char(0),char(101),char(0), -char(116),char(0),char(101),char(0),char(62),char(0),char(62),char(0),char(62),char(48), -char(33),char(48),char(9),char(6),char(5),char(43),char(14),char(3),char(2),char(26), -char(5),char(0),char(4),char(20),char(130),char(184),char(185),char(128),char(143),char(217), -char(245),char(64),char(166),char(109),char(110),char(179),char(21),char(84),char(65),char(54), -char(153),char(222),char(211),char(125),char(160),char(130),char(17),char(93),char(48),char(130), -char(3),char(122),char(48),char(130),char(2),char(98),char(160),char(3),char(2),char(1), -char(2),char(2),char(16),char(56),char(37),char(215),char(250),char(248),char(97),char(175), -char(158),char(244),char(144),char(231),char(38),char(181),char(214),char(90),char(213),char(48), -char(13),char(6),char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1), -char(1),char(5),char(5),char(0),char(48),char(83),char(49),char(11),char(48),char(9), -char(6),char(3),char(85),char(4),char(6),char(19),char(2),char(85),char(83),char(49), -char(23),char(48),char(21),char(6),char(3),char(85),char(4),char(10),char(19),char(14), -char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110),char(44),char(32), -char(73),char(110),char(99),char(46),char(49),char(43),char(48),char(41),char(6),char(3), -char(85),char(4),char(3),char(19),char(34),char(86),char(101),char(114),char(105),char(83), -char(105),char(103),char(110),char(32),char(84),char(105),char(109),char(101),char(32),char(83), -char(116),char(97),char(109),char(112),char(105),char(110),char(103),char(32),char(83),char(101), -char(114),char(118),char(105),char(99),char(101),char(115),char(32),char(67),char(65),char(48), -char(30),char(23),char(13),char(48),char(55),char(48),char(54),char(49),char(53),char(48), -char(48),char(48),char(48),char(48),char(48),char(90),char(23),char(13),char(49),char(50), -char(48),char(54),char(49),char(52),char(50),char(51),char(53),char(57),char(53),char(57), -char(90),char(48),char(92),char(49),char(11),char(48),char(9),char(6),char(3),char(85), -char(4),char(6),char(19),char(2),char(85),char(83),char(49),char(23),char(48),char(21), -char(6),char(3),char(85),char(4),char(10),char(19),char(14),char(86),char(101),char(114), -char(105),char(83),char(105),char(103),char(110),char(44),char(32),char(73),char(110),char(99), -char(46),char(49),char(52),char(48),char(50),char(6),char(3),char(85),char(4),char(3), -char(19),char(43),char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110), -char(32),char(84),char(105),char(109),char(101),char(32),char(83),char(116),char(97),char(109), -char(112),char(105),char(110),char(103),char(32),char(83),char(101),char(114),char(118),char(105), -char(99),char(101),char(115),char(32),char(83),char(105),char(103),char(110),char(101),char(114), -char(32),char(45),char(32),char(71),char(50),char(48),char(129),char(159),char(48),char(13), -char(6),char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(1), -char(1),char(5),char(0),char(3),char(129),char(141),char(0),char(48),char(129),char(137), -char(2),char(129),char(129),char(0),char(196),char(181),char(242),char(82),char(21),char(188), -char(136),char(134),char(96),char(41),char(22),char(74),char(91),char(47),char(75),char(145), -char(107),char(135),char(145),char(243),char(53),char(84),char(88),char(53),char(234),char(209), -char(54),char(94),char(98),char(77),char(82),char(81),char(52),char(113),char(194),char(123), -char(102),char(29),char(137),char(200),char(221),char(42),char(196),char(106),char(10),char(246), -char(55),char(217),char(152),char(116),char(145),char(246),char(146),char(174),char(176),char(181), -char(118),char(150),char(241),char(169),char(74),char(99),char(69),char(71),char(46),char(107), -char(11),char(146),char(78),char(75),char(43),char(140),char(238),char(88),char(74),char(139), -char(212),char(7),char(228),char(26),char(44),char(248),char(130),char(170),char(88),char(217), -char(205),char(66),char(243),char(45),char(192),char(117),char(222),char(141),char(171),char(199), -char(142),char(29),char(154),char(108),char(76),char(8),char(149),char(30),char(222),char(219), -char(239),char(103),char(225),char(114),char(194),char(73),char(194),char(158),char(96),char(60), -char(225),char(226),char(190),char(22),char(163),char(99),char(120),char(105),char(20),char(123), -char(173),char(45),char(2),char(3),char(1),char(0),char(1),char(163),char(129),char(196), -char(48),char(129),char(193),char(48),char(52),char(6),char(8),char(43),char(6),char(1), -char(5),char(5),char(7),char(1),char(1),char(4),char(40),char(48),char(38),char(48), -char(36),char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7),char(48), -char(1),char(134),char(24),char(104),char(116),char(116),char(112),char(58),char(47),char(47), -char(111),char(99),char(115),char(112),char(46),char(118),char(101),char(114),char(105),char(115), -char(105),char(103),char(110),char(46),char(99),char(111),char(109),char(48),char(12),char(6), -char(3),char(85),char(29),char(19),char(1),char(1),char(255),char(4),char(2),char(48), -char(0),char(48),char(51),char(6),char(3),char(85),char(29),char(31),char(4),char(44), -char(48),char(42),char(48),char(40),char(160),char(38),char(160),char(36),char(134),char(34), -char(104),char(116),char(116),char(112),char(58),char(47),char(47),char(99),char(114),char(108), -char(46),char(118),char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46), -char(99),char(111),char(109),char(47),char(116),char(115),char(115),char(45),char(99),char(97), -char(46),char(99),char(114),char(108),char(48),char(22),char(6),char(3),char(85),char(29), -char(37),char(1),char(1),char(255),char(4),char(12),char(48),char(10),char(6),char(8), -char(43),char(6),char(1),char(5),char(5),char(7),char(3),char(8),char(48),char(14), -char(6),char(3),char(85),char(29),char(15),char(1),char(1),char(255),char(4),char(4), -char(3),char(2),char(6),char(192),char(48),char(30),char(6),char(3),char(85),char(29), -char(17),char(4),char(23),char(48),char(21),char(164),char(19),char(48),char(17),char(49), -char(15),char(48),char(13),char(6),char(3),char(85),char(4),char(3),char(19),char(6), -char(84),char(83),char(65),char(49),char(45),char(50),char(48),char(13),char(6),char(9), -char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(1),char(5),char(5), -char(0),char(3),char(130),char(1),char(1),char(0),char(80),char(197),char(75),char(200), -char(36),char(128),char(223),char(228),char(13),char(36),char(194),char(222),char(26),char(177), -char(161),char(2),char(161),char(166),char(130),char(45),char(12),char(131),char(21),char(129), -char(55),char(10),char(130),char(14),char(44),char(176),char(90),char(23),char(97),char(181), -char(216),char(5),char(254),char(136),char(219),char(241),char(145),char(145),char(179),char(86), -char(26),char(64),char(166),char(235),char(146),char(190),char(56),char(57),char(176),char(117), -char(54),char(116),char(58),char(152),char(79),char(228),char(55),char(186),char(153),char(137), -char(202),char(149),char(66),char(29),char(176),char(185),char(199),char(160),char(141),char(87), -char(224),char(250),char(213),char(100),char(4),char(66),char(53),char(78),char(1),char(209), -char(51),char(162),char(23),char(200),char(77),char(170),char(39),char(199),char(242),char(225), -char(134),char(76),char(2),char(56),char(77),char(131),char(120),char(198),char(252),char(83), -char(224),char(235),char(224),char(6),char(135),char(221),char(164),char(150),char(158),char(94), -char(12),char(152),char(226),char(165),char(190),char(191),char(130),char(133),char(195),char(96), -char(225),char(223),char(173),char(40),char(216),char(199),char(165),char(75),char(100),char(218), -char(199),char(27),char(91),char(189),char(172),char(57),char(8),char(213),char(56),char(34), -char(161),char(51),char(139),char(47),char(138),char(154),char(235),char(188),char(7),char(33), -char(63),char(68),char(65),char(9),char(7),char(181),char(101),char(28),char(36),char(188), -char(72),char(211),char(68),char(128),char(235),char(161),char(207),char(201),char(2),char(180), -char(20),char(207),char(84),char(199),char(22),char(163),char(128),char(92),char(249),char(121), -char(62),char(93),char(114),char(125),char(136),char(23),char(158),char(44),char(67),char(162), -char(202),char(83),char(206),char(125),char(61),char(246),char(42),char(58),char(184),char(79), -char(148),char(0),char(165),char(109),char(10),char(131),char(93),char(249),char(94),char(83), -char(244),char(24),char(179),char(87),char(15),char(112),char(195),char(251),char(245),char(173), -char(149),char(160),char(14),char(23),char(222),char(196),char(22),char(128),char(96),char(201), -char(15),char(43),char(110),char(134),char(4),char(241),char(235),char(244),char(120),char(39), -char(209),char(5),char(197),char(238),char(52),char(91),char(94),char(185),char(73),char(50), -char(242),char(51),char(48),char(130),char(3),char(196),char(48),char(130),char(3),char(45), -char(160),char(3),char(2),char(1),char(2),char(2),char(16),char(71),char(191),char(25), -char(149),char(223),char(141),char(82),char(70),char(67),char(247),char(219),char(109),char(72), -char(13),char(49),char(164),char(48),char(13),char(6),char(9),char(42),char(134),char(72), -char(134),char(247),char(13),char(1),char(1),char(5),char(5),char(0),char(48),char(129), -char(139),char(49),char(11),char(48),char(9),char(6),char(3),char(85),char(4),char(6), -char(19),char(2),char(90),char(65),char(49),char(21),char(48),char(19),char(6),char(3), -char(85),char(4),char(8),char(19),char(12),char(87),char(101),char(115),char(116),char(101), -char(114),char(110),char(32),char(67),char(97),char(112),char(101),char(49),char(20),char(48), -char(18),char(6),char(3),char(85),char(4),char(7),char(19),char(11),char(68),char(117), -char(114),char(98),char(97),char(110),char(118),char(105),char(108),char(108),char(101),char(49), -char(15),char(48),char(13),char(6),char(3),char(85),char(4),char(10),char(19),char(6), -char(84),char(104),char(97),char(119),char(116),char(101),char(49),char(29),char(48),char(27), -char(6),char(3),char(85),char(4),char(11),char(19),char(20),char(84),char(104),char(97), -char(119),char(116),char(101),char(32),char(67),char(101),char(114),char(116),char(105),char(102), -char(105),char(99),char(97),char(116),char(105),char(111),char(110),char(49),char(31),char(48), -char(29),char(6),char(3),char(85),char(4),char(3),char(19),char(22),char(84),char(104), -char(97),char(119),char(116),char(101),char(32),char(84),char(105),char(109),char(101),char(115), -char(116),char(97),char(109),char(112),char(105),char(110),char(103),char(32),char(67),char(65), -char(48),char(30),char(23),char(13),char(48),char(51),char(49),char(50),char(48),char(52), -char(48),char(48),char(48),char(48),char(48),char(48),char(90),char(23),char(13),char(49), -char(51),char(49),char(50),char(48),char(51),char(50),char(51),char(53),char(57),char(53), -char(57),char(90),char(48),char(83),char(49),char(11),char(48),char(9),char(6),char(3), -char(85),char(4),char(6),char(19),char(2),char(85),char(83),char(49),char(23),char(48), -char(21),char(6),char(3),char(85),char(4),char(10),char(19),char(14),char(86),char(101), -char(114),char(105),char(83),char(105),char(103),char(110),char(44),char(32),char(73),char(110), -char(99),char(46),char(49),char(43),char(48),char(41),char(6),char(3),char(85),char(4), -char(3),char(19),char(34),char(86),char(101),char(114),char(105),char(83),char(105),char(103), -char(110),char(32),char(84),char(105),char(109),char(101),char(32),char(83),char(116),char(97), -char(109),char(112),char(105),char(110),char(103),char(32),char(83),char(101),char(114),char(118), -char(105),char(99),char(101),char(115),char(32),char(67),char(65),char(48),char(130),char(1), -char(34),char(48),char(13),char(6),char(9),char(42),char(134),char(72),char(134),char(247), -char(13),char(1),char(1),char(1),char(5),char(0),char(3),char(130),char(1),char(15), -char(0),char(48),char(130),char(1),char(10),char(2),char(130),char(1),char(1),char(0), -char(169),char(202),char(178),char(164),char(204),char(205),char(32),char(175),char(10),char(125), -char(137),char(172),char(135),char(117),char(240),char(180),char(78),char(241),char(223),char(193), -char(15),char(191),char(103),char(97),char(189),char(163),char(100),char(28),char(218),char(187), -char(249),char(202),char(51),char(171),char(132),char(48),char(137),char(88),char(126),char(140), -char(219),char(107),char(221),char(54),char(158),char(15),char(191),char(209),char(236),char(120), -char(242),char(119),char(166),char(126),char(111),char(60),char(191),char(147),char(175),char(13), -char(186),char(104),char(244),char(108),char(148),char(202),char(189),char(82),char(45),char(171), -char(72),char(61),char(245),char(182),char(213),char(93),char(95),char(27),char(2),char(159), -char(250),char(47),char(107),char(30),char(164),char(247),char(163),char(154),char(166),char(26), -char(200),char(2),char(225),char(127),char(76),char(82),char(227),char(14),char(96),char(236), -char(64),char(28),char(126),char(185),char(13),char(222),char(63),char(199),char(180),char(223), -char(135),char(189),char(95),char(122),char(106),char(49),char(46),char(3),char(153),char(129), -char(19),char(168),char(71),char(32),char(206),char(49),char(115),char(13),char(87),char(45), -char(205),char(120),char(52),char(51),char(149),char(18),char(153),char(18),char(185),char(222), -char(104),char(47),char(170),char(230),char(227),char(194),char(138),char(140),char(42),char(195), -char(139),char(33),char(135),char(102),char(189),char(131),char(88),char(87),char(111),char(117), -char(191),char(60),char(170),char(38),char(135),char(93),char(202),char(16),char(21),char(60), -char(159),char(132),char(234),char(84),char(193),char(10),char(110),char(196),char(254),char(197), -char(74),char(221),char(185),char(7),char(17),char(151),char(34),char(124),char(219),char(62), -char(39),char(209),char(30),char(120),char(236),char(159),char(49),char(201),char(241),char(230), -char(34),char(25),char(219),char(196),char(179),char(71),char(67),char(154),char(26),char(95), -char(160),char(30),char(144),char(228),char(94),char(245),char(238),char(124),char(241),char(125), -char(171),char(98),char(1),char(143),char(245),char(77),char(11),char(222),char(208),char(34), -char(86),char(168),char(149),char(205),char(174),char(136),char(118),char(174),char(238),char(186), -char(13),char(243),char(228),char(77),char(217),char(160),char(251),char(104),char(160),char(174), -char(20),char(59),char(179),char(135),char(193),char(187),char(2),char(3),char(1),char(0), -char(1),char(163),char(129),char(219),char(48),char(129),char(216),char(48),char(52),char(6), -char(8),char(43),char(6),char(1),char(5),char(5),char(7),char(1),char(1),char(4), -char(40),char(48),char(38),char(48),char(36),char(6),char(8),char(43),char(6),char(1), -char(5),char(5),char(7),char(48),char(1),char(134),char(24),char(104),char(116),char(116), -char(112),char(58),char(47),char(47),char(111),char(99),char(115),char(112),char(46),char(118), -char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99),char(111), -char(109),char(48),char(18),char(6),char(3),char(85),char(29),char(19),char(1),char(1), -char(255),char(4),char(8),char(48),char(6),char(1),char(1),char(255),char(2),char(1), -char(0),char(48),char(65),char(6),char(3),char(85),char(29),char(31),char(4),char(58), -char(48),char(56),char(48),char(54),char(160),char(52),char(160),char(50),char(134),char(48), -char(104),char(116),char(116),char(112),char(58),char(47),char(47),char(99),char(114),char(108), -char(46),char(118),char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46), -char(99),char(111),char(109),char(47),char(84),char(104),char(97),char(119),char(116),char(101), -char(84),char(105),char(109),char(101),char(115),char(116),char(97),char(109),char(112),char(105), -char(110),char(103),char(67),char(65),char(46),char(99),char(114),char(108),char(48),char(19), -char(6),char(3),char(85),char(29),char(37),char(4),char(12),char(48),char(10),char(6), -char(8),char(43),char(6),char(1),char(5),char(5),char(7),char(3),char(8),char(48), -char(14),char(6),char(3),char(85),char(29),char(15),char(1),char(1),char(255),char(4), -char(4),char(3),char(2),char(1),char(6),char(48),char(36),char(6),char(3),char(85), -char(29),char(17),char(4),char(29),char(48),char(27),char(164),char(25),char(48),char(23), -char(49),char(21),char(48),char(19),char(6),char(3),char(85),char(4),char(3),char(19), -char(12),char(84),char(83),char(65),char(50),char(48),char(52),char(56),char(45),char(49), -char(45),char(53),char(51),char(48),char(13),char(6),char(9),char(42),char(134),char(72), -char(134),char(247),char(13),char(1),char(1),char(5),char(5),char(0),char(3),char(129), -char(129),char(0),char(74),char(107),char(249),char(234),char(88),char(194),char(68),char(28), -char(49),char(137),char(121),char(153),char(43),char(150),char(191),char(130),char(172),char(1), -char(214),char(28),char(76),char(205),char(176),char(138),char(88),char(110),char(223),char(8), -char(41),char(163),char(94),char(200),char(202),char(147),char(19),char(231),char(4),char(82), -char(13),char(239),char(71),char(39),char(47),char(0),char(56),char(176),char(228),char(201), -char(147),char(78),char(154),char(212),char(34),char(98),char(21),char(247),char(63),char(55), -char(33),char(79),char(112),char(49),char(128),char(241),char(139),char(56),char(135),char(179), -char(232),char(232),char(151),char(0),char(254),char(207),char(85),char(150),char(78),char(36), -char(210),char(169),char(39),char(78),char(122),char(174),char(183),char(97),char(65),char(243), -char(42),char(206),char(231),char(201),char(217),char(94),char(221),char(187),char(43),char(133), -char(62),char(181),char(157),char(181),char(217),char(225),char(87),char(255),char(190),char(180), -char(197),char(126),char(245),char(207),char(12),char(158),char(240),char(151),char(254),char(43), -char(211),char(59),char(82),char(27),char(27),char(56),char(39),char(247),char(63),char(74), -char(48),char(130),char(4),char(252),char(48),char(130),char(4),char(101),char(160),char(3), -char(2),char(1),char(2),char(2),char(16),char(101),char(82),char(38),char(225),char(178), -char(46),char(24),char(225),char(89),char(15),char(41),char(133),char(172),char(34),char(231), -char(92),char(48),char(13),char(6),char(9),char(42),char(134),char(72),char(134),char(247), -char(13),char(1),char(1),char(5),char(5),char(0),char(48),char(95),char(49),char(11), -char(48),char(9),char(6),char(3),char(85),char(4),char(6),char(19),char(2),char(85), -char(83),char(49),char(23),char(48),char(21),char(6),char(3),char(85),char(4),char(10), -char(19),char(14),char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110), -char(44),char(32),char(73),char(110),char(99),char(46),char(49),char(55),char(48),char(53), -char(6),char(3),char(85),char(4),char(11),char(19),char(46),char(67),char(108),char(97), -char(115),char(115),char(32),char(51),char(32),char(80),char(117),char(98),char(108),char(105), -char(99),char(32),char(80),char(114),char(105),char(109),char(97),char(114),char(121),char(32), -char(67),char(101),char(114),char(116),char(105),char(102),char(105),char(99),char(97),char(116), -char(105),char(111),char(110),char(32),char(65),char(117),char(116),char(104),char(111),char(114), -char(105),char(116),char(121),char(48),char(30),char(23),char(13),char(48),char(57),char(48), -char(53),char(50),char(49),char(48),char(48),char(48),char(48),char(48),char(48),char(90), -char(23),char(13),char(49),char(57),char(48),char(53),char(50),char(48),char(50),char(51), -char(53),char(57),char(53),char(57),char(90),char(48),char(129),char(182),char(49),char(11), -char(48),char(9),char(6),char(3),char(85),char(4),char(6),char(19),char(2),char(85), -char(83),char(49),char(23),char(48),char(21),char(6),char(3),char(85),char(4),char(10), -char(19),char(14),char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110), -char(44),char(32),char(73),char(110),char(99),char(46),char(49),char(31),char(48),char(29), -char(6),char(3),char(85),char(4),char(11),char(19),char(22),char(86),char(101),char(114), -char(105),char(83),char(105),char(103),char(110),char(32),char(84),char(114),char(117),char(115), -char(116),char(32),char(78),char(101),char(116),char(119),char(111),char(114),char(107),char(49), -char(59),char(48),char(57),char(6),char(3),char(85),char(4),char(11),char(19),char(50), -char(84),char(101),char(114),char(109),char(115),char(32),char(111),char(102),char(32),char(117), -char(115),char(101),char(32),char(97),char(116),char(32),char(104),char(116),char(116),char(112), -char(115),char(58),char(47),char(47),char(119),char(119),char(119),char(46),char(118),char(101), -char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99),char(111),char(109), -char(47),char(114),char(112),char(97),char(32),char(40),char(99),char(41),char(48),char(57), -char(49),char(48),char(48),char(46),char(6),char(3),char(85),char(4),char(3),char(19), -char(39),char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110),char(32), -char(67),char(108),char(97),char(115),char(115),char(32),char(51),char(32),char(67),char(111), -char(100),char(101),char(32),char(83),char(105),char(103),char(110),char(105),char(110),char(103), -char(32),char(50),char(48),char(48),char(57),char(45),char(50),char(32),char(67),char(65), -char(48),char(130),char(1),char(34),char(48),char(13),char(6),char(9),char(42),char(134), -char(72),char(134),char(247),char(13),char(1),char(1),char(1),char(5),char(0),char(3), -char(130),char(1),char(15),char(0),char(48),char(130),char(1),char(10),char(2),char(130), -char(1),char(1),char(0),char(190),char(103),char(29),char(180),char(96),char(170),char(16), -char(73),char(111),char(86),char(23),char(124),char(102),char(201),char(94),char(134),char(13), -char(213),char(241),char(172),char(167),char(113),char(131),char(142),char(139),char(137),char(248), -char(136),char(4),char(137),char(21),char(6),char(186),char(45),char(132),char(33),char(149), -char(228),char(209),char(156),char(80),char(76),char(251),char(210),char(34),char(189),char(218), -char(242),char(178),char(53),char(59),char(30),char(143),char(195),char(9),char(251),char(252), -char(19),char(46),char(90),char(191),char(137),char(124),char(61),char(59),char(37),char(30), -char(246),char(243),char(88),char(123),char(156),char(244),char(1),char(181),char(198),char(10), -char(184),char(128),char(206),char(190),char(39),char(116),char(97),char(103),char(39),char(77), -char(106),char(229),char(236),char(129),char(97),char(88),char(121),char(163),char(224),char(23), -char(16),char(18),char(21),char(39),char(176),char(225),char(77),char(52),char(127),char(43), -char(71),char(32),char(68),char(185),char(222),char(102),char(36),char(102),char(138),char(205), -char(79),char(186),char(31),char(197),char(56),char(200),char(84),char(144),char(225),char(114), -char(246),char(25),char(102),char(117),char(106),char(185),char(73),char(104),char(207),char(56), -char(121),char(13),char(170),char(48),char(168),char(219),char(44),char(96),char(72),char(158), -char(215),char(170),char(20),char(1),char(169),char(131),char(215),char(56),char(145),char(48), -char(57),char(19),char(150),char(3),char(58),char(124),char(64),char(84),char(182),char(173), -char(224),char(47),char(27),char(131),char(220),char(168),char(17),char(82),char(62),char(2), -char(179),char(215),char(43),char(253),char(33),char(182),char(167),char(92),char(163),char(15), -char(11),char(169),char(166),char(16),char(80),char(14),char(52),char(46),char(77),char(167), -char(206),char(201),char(94),char(37),char(212),char(140),char(188),char(243),char(110),char(124), -char(41),char(188),char(1),char(93),char(252),char(49),char(135),char(90),char(213),char(140), -char(133),char(103),char(88),char(136),char(25),char(160),char(191),char(53),char(240),char(234), -char(43),char(163),char(33),char(231),char(144),char(246),char(131),char(229),char(168),char(237), -char(96),char(120),char(94),char(123),char(96),char(131),char(253),char(87),char(11),char(93), -char(65),char(13),char(99),char(84),char(96),char(214),char(67),char(33),char(239),char(2), -char(3),char(1),char(0),char(1),char(163),char(130),char(1),char(219),char(48),char(130), -char(1),char(215),char(48),char(18),char(6),char(3),char(85),char(29),char(19),char(1), -char(1),char(255),char(4),char(8),char(48),char(6),char(1),char(1),char(255),char(2), -char(1),char(0),char(48),char(112),char(6),char(3),char(85),char(29),char(32),char(4), -char(105),char(48),char(103),char(48),char(101),char(6),char(11),char(96),char(134),char(72), -char(1),char(134),char(248),char(69),char(1),char(7),char(23),char(3),char(48),char(86), -char(48),char(40),char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7), -char(2),char(1),char(22),char(28),char(104),char(116),char(116),char(112),char(115),char(58), -char(47),char(47),char(119),char(119),char(119),char(46),char(118),char(101),char(114),char(105), -char(115),char(105),char(103),char(110),char(46),char(99),char(111),char(109),char(47),char(99), -char(112),char(115),char(48),char(42),char(6),char(8),char(43),char(6),char(1),char(5), -char(5),char(7),char(2),char(2),char(48),char(30),char(26),char(28),char(104),char(116), -char(116),char(112),char(115),char(58),char(47),char(47),char(119),char(119),char(119),char(46), -char(118),char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99), -char(111),char(109),char(47),char(114),char(112),char(97),char(48),char(14),char(6),char(3), -char(85),char(29),char(15),char(1),char(1),char(255),char(4),char(4),char(3),char(2), -char(1),char(6),char(48),char(109),char(6),char(8),char(43),char(6),char(1),char(5), -char(5),char(7),char(1),char(12),char(4),char(97),char(48),char(95),char(161),char(93), -char(160),char(91),char(48),char(89),char(48),char(87),char(48),char(85),char(22),char(9), -char(105),char(109),char(97),char(103),char(101),char(47),char(103),char(105),char(102),char(48), -char(33),char(48),char(31),char(48),char(7),char(6),char(5),char(43),char(14),char(3), -char(2),char(26),char(4),char(20),char(143),char(229),char(211),char(26),char(134),char(172), -char(141),char(142),char(107),char(195),char(207),char(128),char(106),char(212),char(72),char(24), -char(44),char(123),char(25),char(46),char(48),char(37),char(22),char(35),char(104),char(116), -char(116),char(112),char(58),char(47),char(47),char(108),char(111),char(103),char(111),char(46), -char(118),char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99), -char(111),char(109),char(47),char(118),char(115),char(108),char(111),char(103),char(111),char(46), -char(103),char(105),char(102),char(48),char(29),char(6),char(3),char(85),char(29),char(37), -char(4),char(22),char(48),char(20),char(6),char(8),char(43),char(6),char(1),char(5), -char(5),char(7),char(3),char(2),char(6),char(8),char(43),char(6),char(1),char(5), -char(5),char(7),char(3),char(3),char(48),char(52),char(6),char(8),char(43),char(6), -char(1),char(5),char(5),char(7),char(1),char(1),char(4),char(40),char(48),char(38), -char(48),char(36),char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7), -char(48),char(1),char(134),char(24),char(104),char(116),char(116),char(112),char(58),char(47), -char(47),char(111),char(99),char(115),char(112),char(46),char(118),char(101),char(114),char(105), -char(115),char(105),char(103),char(110),char(46),char(99),char(111),char(109),char(48),char(49), -char(6),char(3),char(85),char(29),char(31),char(4),char(42),char(48),char(40),char(48), -char(38),char(160),char(36),char(160),char(34),char(134),char(32),char(104),char(116),char(116), -char(112),char(58),char(47),char(47),char(99),char(114),char(108),char(46),char(118),char(101), -char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99),char(111),char(109), -char(47),char(112),char(99),char(97),char(51),char(46),char(99),char(114),char(108),char(48), -char(41),char(6),char(3),char(85),char(29),char(17),char(4),char(34),char(48),char(32), -char(164),char(30),char(48),char(28),char(49),char(26),char(48),char(24),char(6),char(3), -char(85),char(4),char(3),char(19),char(17),char(67),char(108),char(97),char(115),char(115), -char(51),char(67),char(65),char(50),char(48),char(52),char(56),char(45),char(49),char(45), -char(53),char(53),char(48),char(29),char(6),char(3),char(85),char(29),char(14),char(4), -char(22),char(4),char(20),char(151),char(208),char(107),char(168),char(38),char(112),char(200), -char(161),char(63),char(148),char(31),char(8),char(45),char(196),char(53),char(155),char(164), -char(161),char(30),char(242),char(48),char(13),char(6),char(9),char(42),char(134),char(72), -char(134),char(247),char(13),char(1),char(1),char(5),char(5),char(0),char(3),char(129), -char(129),char(0),char(139),char(3),char(192),char(221),char(148),char(216),char(65),char(162), -char(97),char(105),char(176),char(21),char(168),char(120),char(199),char(48),char(198),char(144), -char(60),char(126),char(66),char(247),char(36),char(182),char(228),char(131),char(115),char(23), -char(4),char(127),char(4),char(16),char(156),char(161),char(226),char(250),char(129),char(47), -char(235),char(192),char(202),char(68),char(231),char(114),char(224),char(80),char(182),char(85), -char(16),char(32),char(131),char(110),char(150),char(146),char(228),char(154),char(81),char(106), -char(180),char(55),char(49),char(220),char(165),char(45),char(235),char(140),char(0),char(199), -char(29),char(79),char(231),char(77),char(50),char(186),char(133),char(248),char(78),char(190), -char(250),char(103),char(85),char(101),char(240),char(106),char(190),char(122),char(202),char(100), -char(56),char(26),char(16),char(16),char(120),char(69),char(118),char(49),char(243),char(134), -char(122),char(3),char(15),char(96),char(194),char(179),char(93),char(157),char(246),char(139), -char(102),char(118),char(130),char(27),char(89),char(225),char(131),char(229),char(189),char(73), -char(165),char(56),char(86),char(229),char(222),char(65),char(119),char(14),char(88),char(15), -char(48),char(130),char(5),char(19),char(48),char(130),char(3),char(251),char(160),char(3), -char(2),char(1),char(2),char(2),char(16),char(102),char(227),char(240),char(103),char(121), -char(202),char(21),char(22),char(109),char(80),char(83),char(111),char(136),char(25),char(26), -char(131),char(48),char(13),char(6),char(9),char(42),char(134),char(72),char(134),char(247), -char(13),char(1),char(1),char(5),char(5),char(0),char(48),char(129),char(182),char(49), -char(11),char(48),char(9),char(6),char(3),char(85),char(4),char(6),char(19),char(2), -char(85),char(83),char(49),char(23),char(48),char(21),char(6),char(3),char(85),char(4), -char(10),char(19),char(14),char(86),char(101),char(114),char(105),char(83),char(105),char(103), -char(110),char(44),char(32),char(73),char(110),char(99),char(46),char(49),char(31),char(48), -char(29),char(6),char(3),char(85),char(4),char(11),char(19),char(22),char(86),char(101), -char(114),char(105),char(83),char(105),char(103),char(110),char(32),char(84),char(114),char(117), -char(115),char(116),char(32),char(78),char(101),char(116),char(119),char(111),char(114),char(107), -char(49),char(59),char(48),char(57),char(6),char(3),char(85),char(4),char(11),char(19), -char(50),char(84),char(101),char(114),char(109),char(115),char(32),char(111),char(102),char(32), -char(117),char(115),char(101),char(32),char(97),char(116),char(32),char(104),char(116),char(116), -char(112),char(115),char(58),char(47),char(47),char(119),char(119),char(119),char(46),char(118), -char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99),char(111), -char(109),char(47),char(114),char(112),char(97),char(32),char(40),char(99),char(41),char(48), -char(57),char(49),char(48),char(48),char(46),char(6),char(3),char(85),char(4),char(3), -char(19),char(39),char(86),char(101),char(114),char(105),char(83),char(105),char(103),char(110), -char(32),char(67),char(108),char(97),char(115),char(115),char(32),char(51),char(32),char(67), -char(111),char(100),char(101),char(32),char(83),char(105),char(103),char(110),char(105),char(110), -char(103),char(32),char(50),char(48),char(48),char(57),char(45),char(50),char(32),char(67), -char(65),char(48),char(30),char(23),char(13),char(49),char(48),char(48),char(55),char(50), -char(57),char(48),char(48),char(48),char(48),char(48),char(48),char(90),char(23),char(13), -char(49),char(50),char(48),char(56),char(48),char(56),char(50),char(51),char(53),char(57), -char(53),char(57),char(90),char(48),char(129),char(208),char(49),char(11),char(48),char(9), -char(6),char(3),char(85),char(4),char(6),char(19),char(2),char(85),char(83),char(49), -char(22),char(48),char(20),char(6),char(3),char(85),char(4),char(8),char(19),char(13), -char(77),char(97),char(115),char(115),char(97),char(99),char(104),char(117),char(115),char(101), -char(116),char(116),char(115),char(49),char(15),char(48),char(13),char(6),char(3),char(85), -char(4),char(7),char(19),char(6),char(87),char(111),char(98),char(117),char(114),char(110), -char(49),char(30),char(48),char(28),char(6),char(3),char(85),char(4),char(10),char(20), -char(21),char(77),char(111),char(110),char(111),char(116),char(121),char(112),char(101),char(32), -char(73),char(109),char(97),char(103),char(105),char(110),char(103),char(32),char(73),char(110), -char(99),char(46),char(49),char(62),char(48),char(60),char(6),char(3),char(85),char(4), -char(11),char(19),char(53),char(68),char(105),char(103),char(105),char(116),char(97),char(108), -char(32),char(73),char(68),char(32),char(67),char(108),char(97),char(115),char(115),char(32), -char(51),char(32),char(45),char(32),char(77),char(105),char(99),char(114),char(111),char(115), -char(111),char(102),char(116),char(32),char(83),char(111),char(102),char(116),char(119),char(97), -char(114),char(101),char(32),char(86),char(97),char(108),char(105),char(100),char(97),char(116), -char(105),char(111),char(110),char(32),char(118),char(50),char(49),char(24),char(48),char(22), -char(6),char(3),char(85),char(4),char(11),char(20),char(15),char(84),char(121),char(112), -char(101),char(32),char(79),char(112),char(101),char(114),char(97),char(116),char(105),char(111), -char(110),char(115),char(49),char(30),char(48),char(28),char(6),char(3),char(85),char(4), -char(3),char(20),char(21),char(77),char(111),char(110),char(111),char(116),char(121),char(112), -char(101),char(32),char(73),char(109),char(97),char(103),char(105),char(110),char(103),char(32), -char(73),char(110),char(99),char(46),char(48),char(129),char(159),char(48),char(13),char(6), -char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(1),char(1), -char(5),char(0),char(3),char(129),char(141),char(0),char(48),char(129),char(137),char(2), -char(129),char(129),char(0),char(148),char(68),char(160),char(149),char(105),char(124),char(85), -char(13),char(208),char(219),char(22),char(141),char(50),char(53),char(138),char(76),char(51), -char(171),char(94),char(32),char(161),char(76),char(215),char(42),char(135),char(56),char(215), -char(152),char(165),char(64),char(240),char(25),char(73),char(11),char(34),char(30),char(83), -char(79),char(194),char(67),char(166),char(202),char(139),char(169),char(86),char(239),char(110), -char(72),char(6),char(168),char(5),char(21),char(57),char(30),char(99),char(59),char(36), -char(18),char(144),char(185),char(152),char(207),char(202),char(8),char(53),char(125),char(114), -char(227),char(71),char(87),char(253),char(121),char(203),char(138),char(74),char(231),char(64), -char(112),char(45),char(53),char(99),char(127),char(174),char(128),char(207),char(196),char(175), -char(216),char(251),char(247),char(201),char(252),char(137),char(216),char(215),char(164),char(160), -char(219),char(9),char(242),char(162),char(242),char(123),char(239),char(205),char(117),char(193), -char(247),char(101),char(80),char(100),char(34),char(157),char(189),char(125),char(188),char(173), -char(184),char(75),char(204),char(88),char(69),char(14),char(77),char(209),char(89),char(76), -char(77),char(2),char(3),char(1),char(0),char(1),char(163),char(130),char(1),char(131), -char(48),char(130),char(1),char(127),char(48),char(9),char(6),char(3),char(85),char(29), -char(19),char(4),char(2),char(48),char(0),char(48),char(14),char(6),char(3),char(85), -char(29),char(15),char(1),char(1),char(255),char(4),char(4),char(3),char(2),char(7), -char(128),char(48),char(68),char(6),char(3),char(85),char(29),char(31),char(4),char(61), -char(48),char(59),char(48),char(57),char(160),char(55),char(160),char(53),char(134),char(51), -char(104),char(116),char(116),char(112),char(58),char(47),char(47),char(99),char(115),char(99), -char(51),char(45),char(50),char(48),char(48),char(57),char(45),char(50),char(45),char(99), -char(114),char(108),char(46),char(118),char(101),char(114),char(105),char(115),char(105),char(103), -char(110),char(46),char(99),char(111),char(109),char(47),char(67),char(83),char(67),char(51), -char(45),char(50),char(48),char(48),char(57),char(45),char(50),char(46),char(99),char(114), -char(108),char(48),char(68),char(6),char(3),char(85),char(29),char(32),char(4),char(61), -char(48),char(59),char(48),char(57),char(6),char(11),char(96),char(134),char(72),char(1), -char(134),char(248),char(69),char(1),char(7),char(23),char(3),char(48),char(42),char(48), -char(40),char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7),char(2), -char(1),char(22),char(28),char(104),char(116),char(116),char(112),char(115),char(58),char(47), -char(47),char(119),char(119),char(119),char(46),char(118),char(101),char(114),char(105),char(115), -char(105),char(103),char(110),char(46),char(99),char(111),char(109),char(47),char(114),char(112), -char(97),char(48),char(19),char(6),char(3),char(85),char(29),char(37),char(4),char(12), -char(48),char(10),char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7), -char(3),char(3),char(48),char(117),char(6),char(8),char(43),char(6),char(1),char(5), -char(5),char(7),char(1),char(1),char(4),char(105),char(48),char(103),char(48),char(36), -char(6),char(8),char(43),char(6),char(1),char(5),char(5),char(7),char(48),char(1), -char(134),char(24),char(104),char(116),char(116),char(112),char(58),char(47),char(47),char(111), -char(99),char(115),char(112),char(46),char(118),char(101),char(114),char(105),char(115),char(105), -char(103),char(110),char(46),char(99),char(111),char(109),char(48),char(63),char(6),char(8), -char(43),char(6),char(1),char(5),char(5),char(7),char(48),char(2),char(134),char(51), -char(104),char(116),char(116),char(112),char(58),char(47),char(47),char(99),char(115),char(99), -char(51),char(45),char(50),char(48),char(48),char(57),char(45),char(50),char(45),char(97), -char(105),char(97),char(46),char(118),char(101),char(114),char(105),char(115),char(105),char(103), -char(110),char(46),char(99),char(111),char(109),char(47),char(67),char(83),char(67),char(51), -char(45),char(50),char(48),char(48),char(57),char(45),char(50),char(46),char(99),char(101), -char(114),char(48),char(31),char(6),char(3),char(85),char(29),char(35),char(4),char(24), -char(48),char(22),char(128),char(20),char(151),char(208),char(107),char(168),char(38),char(112), -char(200),char(161),char(63),char(148),char(31),char(8),char(45),char(196),char(53),char(155), -char(164),char(161),char(30),char(242),char(48),char(17),char(6),char(9),char(96),char(134), -char(72),char(1),char(134),char(248),char(66),char(1),char(1),char(4),char(4),char(3), -char(2),char(4),char(16),char(48),char(22),char(6),char(10),char(43),char(6),char(1), -char(4),char(1),char(130),char(55),char(2),char(1),char(27),char(4),char(8),char(48), -char(6),char(1),char(1),char(0),char(1),char(1),char(255),char(48),char(13),char(6), -char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(1),char(5), -char(5),char(0),char(3),char(130),char(1),char(1),char(0),char(78),char(230),char(34), -char(135),char(223),char(103),char(65),char(21),char(23),char(226),char(210),char(238),char(126), -char(14),char(206),char(194),char(153),char(214),char(99),char(189),char(240),char(181),char(147), -char(229),char(106),char(114),char(98),char(225),char(245),char(210),char(60),char(56),char(238), -char(168),char(61),char(8),char(95),char(186),char(71),char(129),char(130),char(95),char(91), -char(75),char(73),char(244),char(29),char(32),char(250),char(15),char(147),char(9),char(208), -char(29),char(25),char(86),char(68),char(23),char(162),char(136),char(243),char(251),char(141), -char(157),char(174),char(247),char(13),char(53),char(222),char(60),char(12),char(172),char(68), -char(148),char(96),char(69),char(42),char(155),char(254),char(155),char(111),char(76),char(59), -char(177),char(52),char(103),char(112),char(16),char(134),char(255),char(90),char(57),char(92), -char(90),char(227),char(108),char(130),char(171),char(53),char(124),char(101),char(75),char(253), -char(152),char(109),char(181),char(21),char(148),char(73),char(156),char(136),char(112),char(16), -char(190),char(61),char(177),char(98),char(149),char(180),char(219),char(180),char(212),char(218), -char(232),char(157),char(65),char(144),char(126),char(254),char(125),char(185),char(164),char(146), -char(235),char(110),char(242),char(34),char(138),char(198),char(119),char(54),char(77),char(138), -char(90),char(11),char(83),char(5),char(49),char(211),char(43),char(40),char(175),char(82), -char(225),char(141),char(122),char(107),char(181),char(119),char(68),char(189),char(12),char(173), -char(244),char(93),char(37),char(44),char(227),char(205),char(138),char(48),char(62),char(75), -char(3),char(156),char(121),char(202),char(166),char(78),char(174),char(11),char(194),char(204), -char(36),char(7),char(11),char(193),char(148),char(130),char(246),char(16),char(241),char(186), -char(144),char(182),char(155),char(154),char(216),char(92),char(60),char(19),char(241),char(234), -char(2),char(6),char(24),char(39),char(77),char(60),char(137),char(111),char(51),char(138), -char(211),char(134),char(222),char(233),char(88),char(51),char(117),char(61),char(235),char(147), -char(105),char(226),char(68),char(111),char(78),char(0),char(108),char(207),char(213),char(133), -char(218),char(86),char(166),char(154),char(166),char(63),char(203),char(76),char(33),char(104), -char(144),char(242),char(96),char(186),char(225),char(232),char(6),char(93),char(57),char(33), -char(19),char(50),char(237),char(49),char(130),char(3),char(103),char(48),char(130),char(3), -char(99),char(2),char(1),char(1),char(48),char(129),char(203),char(48),char(129),char(182), -char(49),char(11),char(48),char(9),char(6),char(3),char(85),char(4),char(6),char(19), -char(2),char(85),char(83),char(49),char(23),char(48),char(21),char(6),char(3),char(85), -char(4),char(10),char(19),char(14),char(86),char(101),char(114),char(105),char(83),char(105), -char(103),char(110),char(44),char(32),char(73),char(110),char(99),char(46),char(49),char(31), -char(48),char(29),char(6),char(3),char(85),char(4),char(11),char(19),char(22),char(86), -char(101),char(114),char(105),char(83),char(105),char(103),char(110),char(32),char(84),char(114), -char(117),char(115),char(116),char(32),char(78),char(101),char(116),char(119),char(111),char(114), -char(107),char(49),char(59),char(48),char(57),char(6),char(3),char(85),char(4),char(11), -char(19),char(50),char(84),char(101),char(114),char(109),char(115),char(32),char(111),char(102), -char(32),char(117),char(115),char(101),char(32),char(97),char(116),char(32),char(104),char(116), -char(116),char(112),char(115),char(58),char(47),char(47),char(119),char(119),char(119),char(46), -char(118),char(101),char(114),char(105),char(115),char(105),char(103),char(110),char(46),char(99), -char(111),char(109),char(47),char(114),char(112),char(97),char(32),char(40),char(99),char(41), -char(48),char(57),char(49),char(48),char(48),char(46),char(6),char(3),char(85),char(4), -char(3),char(19),char(39),char(86),char(101),char(114),char(105),char(83),char(105),char(103), -char(110),char(32),char(67),char(108),char(97),char(115),char(115),char(32),char(51),char(32), -char(67),char(111),char(100),char(101),char(32),char(83),char(105),char(103),char(110),char(105), -char(110),char(103),char(32),char(50),char(48),char(48),char(57),char(45),char(50),char(32), -char(67),char(65),char(2),char(16),char(102),char(227),char(240),char(103),char(121),char(202), -char(21),char(22),char(109),char(80),char(83),char(111),char(136),char(25),char(26),char(131), -char(48),char(9),char(6),char(5),char(43),char(14),char(3),char(2),char(26),char(5), -char(0),char(160),char(112),char(48),char(16),char(6),char(10),char(43),char(6),char(1), -char(4),char(1),char(130),char(55),char(2),char(1),char(12),char(49),char(2),char(48), -char(0),char(48),char(25),char(6),char(9),char(42),char(134),char(72),char(134),char(247), -char(13),char(1),char(9),char(3),char(49),char(12),char(6),char(10),char(43),char(6), -char(1),char(4),char(1),char(130),char(55),char(2),char(1),char(4),char(48),char(28), -char(6),char(10),char(43),char(6),char(1),char(4),char(1),char(130),char(55),char(2), -char(1),char(11),char(49),char(14),char(48),char(12),char(6),char(10),char(43),char(6), -char(1),char(4),char(1),char(130),char(55),char(2),char(1),char(21),char(48),char(35), -char(6),char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(9), -char(4),char(49),char(22),char(4),char(20),char(72),char(227),char(234),char(219),char(23), -char(99),char(143),char(198),char(177),char(21),char(87),char(39),char(32),char(183),char(101), -char(244),char(25),char(83),char(149),char(24),char(48),char(13),char(6),char(9),char(42), -char(134),char(72),char(134),char(247),char(13),char(1),char(1),char(1),char(5),char(0), -char(4),char(129),char(128),char(69),char(59),char(188),char(212),char(186),char(239),char(218), -char(27),char(191),char(98),char(59),char(222),char(18),char(236),char(74),char(6),char(132), -char(69),char(113),char(65),char(201),char(2),char(254),char(46),char(14),char(149),char(243), -char(137),char(177),char(82),char(244),char(65),char(235),char(109),char(50),char(44),char(72), -char(191),char(41),char(145),char(188),char(178),char(47),char(93),char(100),char(36),char(52), -char(46),char(186),char(150),char(180),char(182),char(74),char(115),char(151),char(224),char(246), -char(159),char(65),char(247),char(247),char(104),char(182),char(245),char(128),char(6),char(120), -char(65),char(190),char(83),char(144),char(192),char(126),char(120),char(82),char(91),char(28), -char(170),char(14),char(33),char(66),char(220),char(190),char(9),char(156),char(51),char(211), -char(70),char(80),char(144),char(59),char(5),char(153),char(16),char(43),char(89),char(105), -char(236),char(133),char(216),char(99),char(209),char(45),char(195),char(6),char(150),char(52), -char(237),char(20),char(163),char(156),char(242),char(241),char(84),char(64),char(213),char(71), -char(23),char(160),char(11),char(0),char(31),char(140),char(102),char(239),char(222),char(62), -char(27),char(161),char(130),char(1),char(127),char(48),char(130),char(1),char(123),char(6), -char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1),char(9),char(6), -char(49),char(130),char(1),char(108),char(48),char(130),char(1),char(104),char(2),char(1), -char(1),char(48),char(103),char(48),char(83),char(49),char(11),char(48),char(9),char(6), -char(3),char(85),char(4),char(6),char(19),char(2),char(85),char(83),char(49),char(23), -char(48),char(21),char(6),char(3),char(85),char(4),char(10),char(19),char(14),char(86), -char(101),char(114),char(105),char(83),char(105),char(103),char(110),char(44),char(32),char(73), -char(110),char(99),char(46),char(49),char(43),char(48),char(41),char(6),char(3),char(85), -char(4),char(3),char(19),char(34),char(86),char(101),char(114),char(105),char(83),char(105), -char(103),char(110),char(32),char(84),char(105),char(109),char(101),char(32),char(83),char(116), -char(97),char(109),char(112),char(105),char(110),char(103),char(32),char(83),char(101),char(114), -char(118),char(105),char(99),char(101),char(115),char(32),char(67),char(65),char(2),char(16), -char(56),char(37),char(215),char(250),char(248),char(97),char(175),char(158),char(244),char(144), -char(231),char(38),char(181),char(214),char(90),char(213),char(48),char(9),char(6),char(5), -char(43),char(14),char(3),char(2),char(26),char(5),char(0),char(160),char(93),char(48), -char(24),char(6),char(9),char(42),char(134),char(72),char(134),char(247),char(13),char(1), -char(9),char(3),char(49),char(11),char(6),char(9),char(42),char(134),char(72),char(134), -char(247),char(13),char(1),char(7),char(1),char(48),char(28),char(6),char(9),char(42), -char(134),char(72),char(134),char(247),char(13),char(1),char(9),char(5),char(49),char(15), -char(23),char(13),char(49),char(49),char(48),char(53),char(48),char(53),char(49),char(54), -char(53),char(53),char(49),char(48),char(90),char(48),char(35),char(6),char(9),char(42), -char(134),char(72),char(134),char(247),char(13),char(1),char(9),char(4),char(49),char(22), -char(4),char(20),char(84),char(23),char(8),char(43),char(11),char(189),char(238),char(26), -char(39),char(14),char(31),char(141),char(252),char(83),char(147),char(244),char(56),char(86), -char(16),char(15),char(48),char(13),char(6),char(9),char(42),char(134),char(72),char(134), -char(247),char(13),char(1),char(1),char(1),char(5),char(0),char(4),char(129),char(128), -char(29),char(193),char(119),char(137),char(174),char(155),char(111),char(34),char(227),char(107), -char(229),char(69),char(218),char(78),char(145),char(64),char(240),char(159),char(239),char(59), -char(31),char(39),char(74),char(86),char(172),char(58),char(253),char(168),char(148),char(106), -char(124),char(247),char(156),char(193),char(127),char(123),char(147),char(96),char(78),char(27), -char(196),char(43),char(87),char(149),char(148),char(203),char(22),char(225),char(154),char(103), -char(51),char(209),char(43),char(41),char(19),char(200),char(236),char(190),char(188),char(89), -char(177),char(3),char(164),char(41),char(153),char(236),char(29),char(136),char(153),char(36), -char(135),char(119),char(15),char(155),char(202),char(20),char(251),char(212),char(212),char(73), -char(76),char(116),char(14),char(200),char(61),char(46),char(111),char(32),char(201),char(3), -char(205),char(232),char(229),char(15),char(208),char(33),char(57),char(179),char(86),char(25), -char(213),char(251),char(172),char(189),char(172),char(169),char(56),char(189),char(176),char(213), -char(12),char(163),char(217),char(99),char(173),char(176),char(149),char(180),char(104),char(88), -char(195),char(226),char(215),char(41),char(255),char(145),char(164),char(199),char(0),char(0), - -}; \ No newline at end of file diff --git a/btgui/enet/callbacks.c b/btgui/enet/callbacks.c deleted file mode 100644 index f94128256..000000000 --- a/btgui/enet/callbacks.c +++ /dev/null @@ -1,47 +0,0 @@ -/** - @file callbacks.c - @brief ENet callback functions -*/ -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -static ENetCallbacks callbacks = { malloc, free, abort }; - -int -enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits) -{ - if (version < ENET_VERSION_CREATE (1, 3, 0)) - return -1; - - if (inits -> malloc != NULL || inits -> free != NULL) - { - if (inits -> malloc == NULL || inits -> free == NULL) - return -1; - - callbacks.malloc = inits -> malloc; - callbacks.free = inits -> free; - } - - if (inits -> no_memory != NULL) - callbacks.no_memory = inits -> no_memory; - - return enet_initialize (); -} - -void * -enet_malloc (size_t size) -{ - void * memory = callbacks.malloc (size); - - if (memory == NULL) - callbacks.no_memory (); - - return memory; -} - -void -enet_free (void * memory) -{ - callbacks.free (memory); -} - diff --git a/btgui/enet/compress.c b/btgui/enet/compress.c deleted file mode 100644 index 784489a78..000000000 --- a/btgui/enet/compress.c +++ /dev/null @@ -1,654 +0,0 @@ -/** - @file compress.c - @brief An adaptive order-2 PPM range coder -*/ -#define ENET_BUILDING_LIB 1 -#include -#include "enet/enet.h" - -typedef struct _ENetSymbol -{ - /* binary indexed tree of symbols */ - enet_uint8 value; - enet_uint8 count; - enet_uint16 under; - enet_uint16 left, right; - - /* context defined by this symbol */ - enet_uint16 symbols; - enet_uint16 escapes; - enet_uint16 total; - enet_uint16 parent; -} ENetSymbol; - -/* adaptation constants tuned aggressively for small packet sizes rather than large file compression */ -enum -{ - ENET_RANGE_CODER_TOP = 1<<24, - ENET_RANGE_CODER_BOTTOM = 1<<16, - - ENET_CONTEXT_SYMBOL_DELTA = 3, - ENET_CONTEXT_SYMBOL_MINIMUM = 1, - ENET_CONTEXT_ESCAPE_MINIMUM = 1, - - ENET_SUBCONTEXT_ORDER = 2, - ENET_SUBCONTEXT_SYMBOL_DELTA = 2, - ENET_SUBCONTEXT_ESCAPE_DELTA = 5 -}; - -/* context exclusion roughly halves compression speed, so disable for now */ -#undef ENET_CONTEXT_EXCLUSION - -typedef struct _ENetRangeCoder -{ - /* only allocate enough symbols for reasonable MTUs, would need to be larger for large file compression */ - ENetSymbol symbols[4096]; -} ENetRangeCoder; - -void * -enet_range_coder_create (void) -{ - ENetRangeCoder * rangeCoder = (ENetRangeCoder *) enet_malloc (sizeof (ENetRangeCoder)); - if (rangeCoder == NULL) - return NULL; - - return rangeCoder; -} - -void -enet_range_coder_destroy (void * context) -{ - ENetRangeCoder * rangeCoder = (ENetRangeCoder *) context; - if (rangeCoder == NULL) - return; - - enet_free (rangeCoder); -} - -#define ENET_SYMBOL_CREATE(symbol, value_, count_) \ -{ \ - symbol = & rangeCoder -> symbols [nextSymbol ++]; \ - symbol -> value = value_; \ - symbol -> count = count_; \ - symbol -> under = count_; \ - symbol -> left = 0; \ - symbol -> right = 0; \ - symbol -> symbols = 0; \ - symbol -> escapes = 0; \ - symbol -> total = 0; \ - symbol -> parent = 0; \ -} - -#define ENET_CONTEXT_CREATE(context, escapes_, minimum) \ -{ \ - ENET_SYMBOL_CREATE (context, 0, 0); \ - (context) -> escapes = escapes_; \ - (context) -> total = escapes_ + 256*minimum; \ - (context) -> symbols = 0; \ -} - -static enet_uint16 -enet_symbol_rescale (ENetSymbol * symbol) -{ - enet_uint16 total = 0; - for (;;) - { - symbol -> count -= symbol->count >> 1; - symbol -> under = symbol -> count; - if (symbol -> left) - symbol -> under += enet_symbol_rescale (symbol + symbol -> left); - total += symbol -> under; - if (! symbol -> right) break; - symbol += symbol -> right; - } - return total; -} - -#define ENET_CONTEXT_RESCALE(context, minimum) \ -{ \ - (context) -> total = (context) -> symbols ? enet_symbol_rescale ((context) + (context) -> symbols) : 0; \ - (context) -> escapes -= (context) -> escapes >> 1; \ - (context) -> total += (context) -> escapes + 256*minimum; \ -} - -#define ENET_RANGE_CODER_OUTPUT(value) \ -{ \ - if (outData >= outEnd) \ - return 0; \ - * outData ++ = value; \ -} - -#define ENET_RANGE_CODER_ENCODE(under, count, total) \ -{ \ - encodeRange /= (total); \ - encodeLow += (under) * encodeRange; \ - encodeRange *= (count); \ - for (;;) \ - { \ - if((encodeLow ^ (encodeLow + encodeRange)) >= ENET_RANGE_CODER_TOP) \ - { \ - if(encodeRange >= ENET_RANGE_CODER_BOTTOM) break; \ - encodeRange = -encodeLow & (ENET_RANGE_CODER_BOTTOM - 1); \ - } \ - ENET_RANGE_CODER_OUTPUT (encodeLow >> 24); \ - encodeRange <<= 8; \ - encodeLow <<= 8; \ - } \ -} - -#define ENET_RANGE_CODER_FLUSH \ -{ \ - while (encodeLow) \ - { \ - ENET_RANGE_CODER_OUTPUT (encodeLow >> 24); \ - encodeLow <<= 8; \ - } \ -} - -#define ENET_RANGE_CODER_FREE_SYMBOLS \ -{ \ - if (nextSymbol >= sizeof (rangeCoder -> symbols) / sizeof (ENetSymbol) - ENET_SUBCONTEXT_ORDER ) \ - { \ - nextSymbol = 0; \ - ENET_CONTEXT_CREATE (root, ENET_CONTEXT_ESCAPE_MINIMUM, ENET_CONTEXT_SYMBOL_MINIMUM); \ - predicted = 0; \ - order = 0; \ - } \ -} - -#define ENET_CONTEXT_ENCODE(context, symbol_, value_, under_, count_, update, minimum) \ -{ \ - under_ = value*minimum; \ - count_ = minimum; \ - if (! (context) -> symbols) \ - { \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - (context) -> symbols = symbol_ - (context); \ - } \ - else \ - { \ - ENetSymbol * node = (context) + (context) -> symbols; \ - for (;;) \ - { \ - if (value_ < node -> value) \ - { \ - node -> under += update; \ - if (node -> left) { node += node -> left; continue; } \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - node -> left = symbol_ - node; \ - } \ - else \ - if (value_ > node -> value) \ - { \ - under_ += node -> under; \ - if (node -> right) { node += node -> right; continue; } \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - node -> right = symbol_ - node; \ - } \ - else \ - { \ - count_ += node -> count; \ - under_ += node -> under - node -> count; \ - node -> under += update; \ - node -> count += update; \ - symbol_ = node; \ - } \ - break; \ - } \ - } \ -} - -#ifdef ENET_CONTEXT_EXCLUSION -static const ENetSymbol emptyContext = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; - -#define ENET_CONTEXT_WALK(context, body) \ -{ \ - const ENetSymbol * node = (context) + (context) -> symbols; \ - const ENetSymbol * stack [256]; \ - size_t stackSize = 0; \ - while (node -> left) \ - { \ - stack [stackSize ++] = node; \ - node += node -> left; \ - } \ - for (;;) \ - { \ - body; \ - if (node -> right) \ - { \ - node += node -> right; \ - while (node -> left) \ - { \ - stack [stackSize ++] = node; \ - node += node -> left; \ - } \ - } \ - else \ - if (stackSize <= 0) \ - break; \ - else \ - node = stack [-- stackSize]; \ - } \ -} - -#define ENET_CONTEXT_ENCODE_EXCLUDE(context, value_, under, total, minimum) \ -ENET_CONTEXT_WALK(context, { \ - if (node -> value != value_) \ - { \ - enet_uint16 parentCount = rangeCoder -> symbols [node -> parent].count + minimum; \ - if (node -> value < value_) \ - under -= parentCount; \ - total -= parentCount; \ - } \ -}) -#endif - -size_t -enet_range_coder_compress (void * context, const ENetBuffer * inBuffers, size_t inBufferCount, size_t inLimit, enet_uint8 * outData, size_t outLimit) -{ - ENetRangeCoder * rangeCoder = (ENetRangeCoder *) context; - enet_uint8 * outStart = outData, * outEnd = & outData [outLimit]; - const enet_uint8 * inData, * inEnd; - enet_uint32 encodeLow = 0, encodeRange = ~0; - ENetSymbol * root; - enet_uint16 predicted = 0; - size_t order = 0, nextSymbol = 0; - - if (rangeCoder == NULL || inBufferCount <= 0 || inLimit <= 0) - return 0; - - inData = (const enet_uint8 *) inBuffers -> data; - inEnd = & inData [inBuffers -> dataLength]; - inBuffers ++; - inBufferCount --; - - ENET_CONTEXT_CREATE (root, ENET_CONTEXT_ESCAPE_MINIMUM, ENET_CONTEXT_SYMBOL_MINIMUM); - - for (;;) - { - ENetSymbol * subcontext, * symbol; -#ifdef ENET_CONTEXT_EXCLUSION - const ENetSymbol * childContext = & emptyContext; -#endif - enet_uint8 value; - enet_uint16 count, under, * parent = & predicted, total; - if (inData >= inEnd) - { - if (inBufferCount <= 0) - break; - inData = (const enet_uint8 *) inBuffers -> data; - inEnd = & inData [inBuffers -> dataLength]; - inBuffers ++; - inBufferCount --; - } - value = * inData ++; - - for (subcontext = & rangeCoder -> symbols [predicted]; - subcontext != root; -#ifdef ENET_CONTEXT_EXCLUSION - childContext = subcontext, -#endif - subcontext = & rangeCoder -> symbols [subcontext -> parent]) - { - ENET_CONTEXT_ENCODE (subcontext, symbol, value, under, count, ENET_SUBCONTEXT_SYMBOL_DELTA, 0); - * parent = symbol - rangeCoder -> symbols; - parent = & symbol -> parent; - total = subcontext -> total; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > ENET_SUBCONTEXT_SYMBOL_DELTA + ENET_SUBCONTEXT_ESCAPE_DELTA) - ENET_CONTEXT_ENCODE_EXCLUDE (childContext, value, under, total, 0); -#endif - if (count > 0) - { - ENET_RANGE_CODER_ENCODE (subcontext -> escapes + under, count, total); - } - else - { - if (subcontext -> escapes > 0 && subcontext -> escapes < total) - ENET_RANGE_CODER_ENCODE (0, subcontext -> escapes, total); - subcontext -> escapes += ENET_SUBCONTEXT_ESCAPE_DELTA; - subcontext -> total += ENET_SUBCONTEXT_ESCAPE_DELTA; - } - subcontext -> total += ENET_SUBCONTEXT_SYMBOL_DELTA; - if (count > 0xFF - 2*ENET_SUBCONTEXT_SYMBOL_DELTA || subcontext -> total > ENET_RANGE_CODER_BOTTOM - 0x100) - ENET_CONTEXT_RESCALE (subcontext, 0); - if (count > 0) goto nextInput; - } - - ENET_CONTEXT_ENCODE (root, symbol, value, under, count, ENET_CONTEXT_SYMBOL_DELTA, ENET_CONTEXT_SYMBOL_MINIMUM); - * parent = symbol - rangeCoder -> symbols; - parent = & symbol -> parent; - total = root -> total; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > ENET_SUBCONTEXT_SYMBOL_DELTA + ENET_SUBCONTEXT_ESCAPE_DELTA) - ENET_CONTEXT_ENCODE_EXCLUDE (childContext, value, under, total, ENET_CONTEXT_SYMBOL_MINIMUM); -#endif - ENET_RANGE_CODER_ENCODE (root -> escapes + under, count, total); - root -> total += ENET_CONTEXT_SYMBOL_DELTA; - if (count > 0xFF - 2*ENET_CONTEXT_SYMBOL_DELTA + ENET_CONTEXT_SYMBOL_MINIMUM || root -> total > ENET_RANGE_CODER_BOTTOM - 0x100) - ENET_CONTEXT_RESCALE (root, ENET_CONTEXT_SYMBOL_MINIMUM); - - nextInput: - if (order >= ENET_SUBCONTEXT_ORDER) - predicted = rangeCoder -> symbols [predicted].parent; - else - order ++; - ENET_RANGE_CODER_FREE_SYMBOLS; - } - - ENET_RANGE_CODER_FLUSH; - - return (size_t) (outData - outStart); -} - -#define ENET_RANGE_CODER_SEED \ -{ \ - if (inData < inEnd) decodeCode |= * inData ++ << 24; \ - if (inData < inEnd) decodeCode |= * inData ++ << 16; \ - if (inData < inEnd) decodeCode |= * inData ++ << 8; \ - if (inData < inEnd) decodeCode |= * inData ++; \ -} - -#define ENET_RANGE_CODER_READ(total) ((decodeCode - decodeLow) / (decodeRange /= (total))) - -#define ENET_RANGE_CODER_DECODE(under, count, total) \ -{ \ - decodeLow += (under) * decodeRange; \ - decodeRange *= (count); \ - for (;;) \ - { \ - if((decodeLow ^ (decodeLow + decodeRange)) >= ENET_RANGE_CODER_TOP) \ - { \ - if(decodeRange >= ENET_RANGE_CODER_BOTTOM) break; \ - decodeRange = -decodeLow & (ENET_RANGE_CODER_BOTTOM - 1); \ - } \ - decodeCode <<= 8; \ - if (inData < inEnd) \ - decodeCode |= * inData ++; \ - decodeRange <<= 8; \ - decodeLow <<= 8; \ - } \ -} - -#define ENET_CONTEXT_DECODE(context, symbol_, code, value_, under_, count_, update, minimum, createRoot, visitNode, createRight, createLeft) \ -{ \ - under_ = 0; \ - count_ = minimum; \ - if (! (context) -> symbols) \ - { \ - createRoot; \ - } \ - else \ - { \ - ENetSymbol * node = (context) + (context) -> symbols; \ - for (;;) \ - { \ - enet_uint16 after = under_ + node -> under + (node -> value + 1)*minimum, before = node -> count + minimum; \ - visitNode; \ - if (code >= after) \ - { \ - under_ += node -> under; \ - if (node -> right) { node += node -> right; continue; } \ - createRight; \ - } \ - else \ - if (code < after - before) \ - { \ - node -> under += update; \ - if (node -> left) { node += node -> left; continue; } \ - createLeft; \ - } \ - else \ - { \ - value_ = node -> value; \ - count_ += node -> count; \ - under_ = after - before; \ - node -> under += update; \ - node -> count += update; \ - symbol_ = node; \ - } \ - break; \ - } \ - } \ -} - -#define ENET_CONTEXT_TRY_DECODE(context, symbol_, code, value_, under_, count_, update, minimum, exclude) \ -ENET_CONTEXT_DECODE (context, symbol_, code, value_, under_, count_, update, minimum, return 0, exclude (node -> value, after, before), return 0, return 0) - -#define ENET_CONTEXT_ROOT_DECODE(context, symbol_, code, value_, under_, count_, update, minimum, exclude) \ -ENET_CONTEXT_DECODE (context, symbol_, code, value_, under_, count_, update, minimum, \ - { \ - value_ = code / minimum; \ - under_ = code - code%minimum; \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - (context) -> symbols = symbol_ - (context); \ - }, \ - exclude (node -> value, after, before), \ - { \ - value_ = node->value + 1 + (code - after)/minimum; \ - under_ = code - (code - after)%minimum; \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - node -> right = symbol_ - node; \ - }, \ - { \ - value_ = node->value - 1 - (after - before - code - 1)/minimum; \ - under_ = code - (after - before - code - 1)%minimum; \ - ENET_SYMBOL_CREATE (symbol_, value_, update); \ - node -> left = symbol_ - node; \ - }) \ - -#ifdef ENET_CONTEXT_EXCLUSION -typedef struct _ENetExclude -{ - enet_uint8 value; - enet_uint16 under; -} ENetExclude; - -#define ENET_CONTEXT_DECODE_EXCLUDE(context, total, minimum) \ -{ \ - enet_uint16 under = 0; \ - nextExclude = excludes; \ - ENET_CONTEXT_WALK (context, { \ - under += rangeCoder -> symbols [node -> parent].count + minimum; \ - nextExclude -> value = node -> value; \ - nextExclude -> under = under; \ - nextExclude ++; \ - }); \ - total -= under; \ -} - -#define ENET_CONTEXT_EXCLUDED(value_, after, before) \ -{ \ - size_t low = 0, high = nextExclude - excludes; \ - for(;;) \ - { \ - size_t mid = (low + high) >> 1; \ - const ENetExclude * exclude = & excludes [mid]; \ - if (value_ < exclude -> value) \ - { \ - if (low + 1 < high) \ - { \ - high = mid; \ - continue; \ - } \ - if (exclude > excludes) \ - after -= exclude [-1].under; \ - } \ - else \ - { \ - if (value_ > exclude -> value) \ - { \ - if (low + 1 < high) \ - { \ - low = mid; \ - continue; \ - } \ - } \ - else \ - before = 0; \ - after -= exclude -> under; \ - } \ - break; \ - } \ -} -#endif - -#define ENET_CONTEXT_NOT_EXCLUDED(value_, after, before) - -size_t -enet_range_coder_decompress (void * context, const enet_uint8 * inData, size_t inLimit, enet_uint8 * outData, size_t outLimit) -{ - ENetRangeCoder * rangeCoder = (ENetRangeCoder *) context; - enet_uint8 * outStart = outData, * outEnd = & outData [outLimit]; - const enet_uint8 * inEnd = & inData [inLimit]; - enet_uint32 decodeLow = 0, decodeCode = 0, decodeRange = ~0; - ENetSymbol * root; - enet_uint16 predicted = 0; - size_t order = 0, nextSymbol = 0; -#ifdef ENET_CONTEXT_EXCLUSION - ENetExclude excludes [256]; - ENetExclude * nextExclude = excludes; -#endif - - if (rangeCoder == NULL || inLimit <= 0) - return 0; - - ENET_CONTEXT_CREATE (root, ENET_CONTEXT_ESCAPE_MINIMUM, ENET_CONTEXT_SYMBOL_MINIMUM); - - ENET_RANGE_CODER_SEED; - - for (;;) - { - ENetSymbol * subcontext, * symbol, * patch; -#ifdef ENET_CONTEXT_EXCLUSION - const ENetSymbol * childContext = & emptyContext; -#endif - enet_uint8 value = 0; - enet_uint16 code, under, count, bottom, * parent = & predicted, total; - - for (subcontext = & rangeCoder -> symbols [predicted]; - subcontext != root; -#ifdef ENET_CONTEXT_EXCLUSION - childContext = subcontext, -#endif - subcontext = & rangeCoder -> symbols [subcontext -> parent]) - { - if (subcontext -> escapes <= 0) - continue; - total = subcontext -> total; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > 0) - ENET_CONTEXT_DECODE_EXCLUDE (childContext, total, 0); -#endif - if (subcontext -> escapes >= total) - continue; - code = ENET_RANGE_CODER_READ (total); - if (code < subcontext -> escapes) - { - ENET_RANGE_CODER_DECODE (0, subcontext -> escapes, total); - continue; - } - code -= subcontext -> escapes; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > 0) - { - ENET_CONTEXT_TRY_DECODE (subcontext, symbol, code, value, under, count, ENET_SUBCONTEXT_SYMBOL_DELTA, 0, ENET_CONTEXT_EXCLUDED); - } - else -#endif - { - ENET_CONTEXT_TRY_DECODE (subcontext, symbol, code, value, under, count, ENET_SUBCONTEXT_SYMBOL_DELTA, 0, ENET_CONTEXT_NOT_EXCLUDED); - } - bottom = symbol - rangeCoder -> symbols; - ENET_RANGE_CODER_DECODE (subcontext -> escapes + under, count, total); - subcontext -> total += ENET_SUBCONTEXT_SYMBOL_DELTA; - if (count > 0xFF - 2*ENET_SUBCONTEXT_SYMBOL_DELTA || subcontext -> total > ENET_RANGE_CODER_BOTTOM - 0x100) - ENET_CONTEXT_RESCALE (subcontext, 0); - goto patchContexts; - } - - total = root -> total; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > 0) - ENET_CONTEXT_DECODE_EXCLUDE (childContext, total, ENET_CONTEXT_SYMBOL_MINIMUM); -#endif - code = ENET_RANGE_CODER_READ (total); - if (code < root -> escapes) - { - ENET_RANGE_CODER_DECODE (0, root -> escapes, total); - break; - } - code -= root -> escapes; -#ifdef ENET_CONTEXT_EXCLUSION - if (childContext -> total > 0) - { - ENET_CONTEXT_ROOT_DECODE (root, symbol, code, value, under, count, ENET_CONTEXT_SYMBOL_DELTA, ENET_CONTEXT_SYMBOL_MINIMUM, ENET_CONTEXT_EXCLUDED); - } - else -#endif - { - ENET_CONTEXT_ROOT_DECODE (root, symbol, code, value, under, count, ENET_CONTEXT_SYMBOL_DELTA, ENET_CONTEXT_SYMBOL_MINIMUM, ENET_CONTEXT_NOT_EXCLUDED); - } - bottom = symbol - rangeCoder -> symbols; - ENET_RANGE_CODER_DECODE (root -> escapes + under, count, total); - root -> total += ENET_CONTEXT_SYMBOL_DELTA; - if (count > 0xFF - 2*ENET_CONTEXT_SYMBOL_DELTA + ENET_CONTEXT_SYMBOL_MINIMUM || root -> total > ENET_RANGE_CODER_BOTTOM - 0x100) - ENET_CONTEXT_RESCALE (root, ENET_CONTEXT_SYMBOL_MINIMUM); - - patchContexts: - for (patch = & rangeCoder -> symbols [predicted]; - patch != subcontext; - patch = & rangeCoder -> symbols [patch -> parent]) - { - ENET_CONTEXT_ENCODE (patch, symbol, value, under, count, ENET_SUBCONTEXT_SYMBOL_DELTA, 0); - * parent = symbol - rangeCoder -> symbols; - parent = & symbol -> parent; - if (count <= 0) - { - patch -> escapes += ENET_SUBCONTEXT_ESCAPE_DELTA; - patch -> total += ENET_SUBCONTEXT_ESCAPE_DELTA; - } - patch -> total += ENET_SUBCONTEXT_SYMBOL_DELTA; - if (count > 0xFF - 2*ENET_SUBCONTEXT_SYMBOL_DELTA || patch -> total > ENET_RANGE_CODER_BOTTOM - 0x100) - ENET_CONTEXT_RESCALE (patch, 0); - } - * parent = bottom; - - ENET_RANGE_CODER_OUTPUT (value); - - if (order >= ENET_SUBCONTEXT_ORDER) - predicted = rangeCoder -> symbols [predicted].parent; - else - order ++; - ENET_RANGE_CODER_FREE_SYMBOLS; - } - - return (size_t) (outData - outStart); -} - -/** @defgroup host ENet host functions - @{ -*/ - -/** Sets the packet compressor the host should use to the default range coder. - @param host host to enable the range coder for - @returns 0 on success, < 0 on failure -*/ -int -enet_host_compress_with_range_coder (ENetHost * host) -{ - ENetCompressor compressor; - memset (& compressor, 0, sizeof (compressor)); - compressor.context = enet_range_coder_create(); - if (compressor.context == NULL) - return -1; - compressor.compress = enet_range_coder_compress; - compressor.decompress = enet_range_coder_decompress; - compressor.destroy = enet_range_coder_destroy; - enet_host_compress (host, & compressor); - return 0; -} - -/** @} */ - - diff --git a/btgui/enet/host.c b/btgui/enet/host.c deleted file mode 100644 index d0ee595cf..000000000 --- a/btgui/enet/host.c +++ /dev/null @@ -1,491 +0,0 @@ -/** - @file host.c - @brief ENet host management functions -*/ -#define ENET_BUILDING_LIB 1 -#include -#include -#include "enet/enet.h" - -/** @defgroup host ENet host functions - @{ -*/ - -/** Creates a host for communicating to peers. - - @param address the address at which other peers may connect to this host. If NULL, then no peers may connect to the host. - @param peerCount the maximum number of peers that should be allocated for the host. - @param channelLimit the maximum number of channels allowed; if 0, then this is equivalent to ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT - @param incomingBandwidth downstream bandwidth of the host in bytes/second; if 0, ENet will assume unlimited bandwidth. - @param outgoingBandwidth upstream bandwidth of the host in bytes/second; if 0, ENet will assume unlimited bandwidth. - - @returns the host on success and NULL on failure - - @remarks ENet will strategically drop packets on specific sides of a connection between hosts - to ensure the host's bandwidth is not overwhelmed. The bandwidth parameters also determine - the window size of a connection which limits the amount of reliable packets that may be in transit - at any given time. -*/ -ENetHost * -enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelLimit, enet_uint32 incomingBandwidth, enet_uint32 outgoingBandwidth) -{ - ENetHost * host; - ENetPeer * currentPeer; - - if (peerCount > ENET_PROTOCOL_MAXIMUM_PEER_ID) - return NULL; - - host = (ENetHost *) enet_malloc (sizeof (ENetHost)); - if (host == NULL) - return NULL; - memset (host, 0, sizeof (ENetHost)); - - host -> peers = (ENetPeer *) enet_malloc (peerCount * sizeof (ENetPeer)); - if (host -> peers == NULL) - { - enet_free (host); - - return NULL; - } - memset (host -> peers, 0, peerCount * sizeof (ENetPeer)); - - host -> socket = enet_socket_create (ENET_SOCKET_TYPE_DATAGRAM); - if (host -> socket == ENET_SOCKET_NULL || (address != NULL && enet_socket_bind (host -> socket, address) < 0)) - { - if (host -> socket != ENET_SOCKET_NULL) - enet_socket_destroy (host -> socket); - - enet_free (host -> peers); - enet_free (host); - - return NULL; - } - - enet_socket_set_option (host -> socket, ENET_SOCKOPT_NONBLOCK, 1); - enet_socket_set_option (host -> socket, ENET_SOCKOPT_BROADCAST, 1); - enet_socket_set_option (host -> socket, ENET_SOCKOPT_RCVBUF, ENET_HOST_RECEIVE_BUFFER_SIZE); - enet_socket_set_option (host -> socket, ENET_SOCKOPT_SNDBUF, ENET_HOST_SEND_BUFFER_SIZE); - - if (address != NULL) - host -> address = * address; - - if (! channelLimit || channelLimit > ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT) - channelLimit = ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT; - else - if (channelLimit < ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT) - channelLimit = ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT; - - host -> randomSeed = (enet_uint32) (size_t) host; -#ifdef WIN32 - host -> randomSeed += (enet_uint32) timeGetTime(); -#else - host -> randomSeed += (enet_uint32) time(NULL); -#endif - host -> randomSeed = (host -> randomSeed << 16) | (host -> randomSeed >> 16); - host -> channelLimit = channelLimit; - host -> incomingBandwidth = incomingBandwidth; - host -> outgoingBandwidth = outgoingBandwidth; - host -> bandwidthThrottleEpoch = 0; - host -> recalculateBandwidthLimits = 0; - host -> mtu = ENET_HOST_DEFAULT_MTU; - host -> peerCount = peerCount; - host -> commandCount = 0; - host -> bufferCount = 0; - host -> checksum = NULL; - host -> receivedAddress.host = ENET_HOST_ANY; - host -> receivedAddress.port = 0; - host -> receivedData = NULL; - host -> receivedDataLength = 0; - - host -> totalSentData = 0; - host -> totalSentPackets = 0; - host -> totalReceivedData = 0; - host -> totalReceivedPackets = 0; - - host -> compressor.context = NULL; - host -> compressor.compress = NULL; - host -> compressor.decompress = NULL; - host -> compressor.destroy = NULL; - - host -> intercept = NULL; - - enet_list_clear (& host -> dispatchQueue); - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - currentPeer -> host = host; - currentPeer -> incomingPeerID = currentPeer - host -> peers; - currentPeer -> outgoingSessionID = currentPeer -> incomingSessionID = 0xFF; - currentPeer -> data = NULL; - - enet_list_clear (& currentPeer -> acknowledgements); - enet_list_clear (& currentPeer -> sentReliableCommands); - enet_list_clear (& currentPeer -> sentUnreliableCommands); - enet_list_clear (& currentPeer -> outgoingReliableCommands); - enet_list_clear (& currentPeer -> outgoingUnreliableCommands); - enet_list_clear (& currentPeer -> dispatchedCommands); - - enet_peer_reset (currentPeer); - } - - return host; -} - -/** Destroys the host and all resources associated with it. - @param host pointer to the host to destroy -*/ -void -enet_host_destroy (ENetHost * host) -{ - ENetPeer * currentPeer; - - if (host == NULL) - return; - - enet_socket_destroy (host -> socket); - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - enet_peer_reset (currentPeer); - } - - if (host -> compressor.context != NULL && host -> compressor.destroy) - (* host -> compressor.destroy) (host -> compressor.context); - - enet_free (host -> peers); - enet_free (host); -} - -/** Initiates a connection to a foreign host. - @param host host seeking the connection - @param address destination for the connection - @param channelCount number of channels to allocate - @param data user data supplied to the receiving host - @returns a peer representing the foreign host on success, NULL on failure - @remarks The peer returned will have not completed the connection until enet_host_service() - notifies of an ENET_EVENT_TYPE_CONNECT event for the peer. -*/ -ENetPeer * -enet_host_connect (ENetHost * host, const ENetAddress * address, size_t channelCount, enet_uint32 data) -{ - ENetPeer * currentPeer; - ENetChannel * channel; - ENetProtocol command; - - if (channelCount < ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT) - channelCount = ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT; - else - if (channelCount > ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT) - channelCount = ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT; - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - if (currentPeer -> state == ENET_PEER_STATE_DISCONNECTED) - break; - } - - if (currentPeer >= & host -> peers [host -> peerCount]) - return NULL; - - currentPeer -> channels = (ENetChannel *) enet_malloc (channelCount * sizeof (ENetChannel)); - if (currentPeer -> channels == NULL) - return NULL; - currentPeer -> channelCount = channelCount; - currentPeer -> state = ENET_PEER_STATE_CONNECTING; - currentPeer -> address = * address; - currentPeer -> connectID = ++ host -> randomSeed; - - if (host -> outgoingBandwidth == 0) - currentPeer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - else - currentPeer -> windowSize = (host -> outgoingBandwidth / - ENET_PEER_WINDOW_SIZE_SCALE) * - ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - - if (currentPeer -> windowSize < ENET_PROTOCOL_MINIMUM_WINDOW_SIZE) - currentPeer -> windowSize = ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - else - if (currentPeer -> windowSize > ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE) - currentPeer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - - for (channel = currentPeer -> channels; - channel < & currentPeer -> channels [channelCount]; - ++ channel) - { - channel -> outgoingReliableSequenceNumber = 0; - channel -> outgoingUnreliableSequenceNumber = 0; - channel -> incomingReliableSequenceNumber = 0; - channel -> incomingUnreliableSequenceNumber = 0; - - enet_list_clear (& channel -> incomingReliableCommands); - enet_list_clear (& channel -> incomingUnreliableCommands); - - channel -> usedReliableWindows = 0; - memset (channel -> reliableWindows, 0, sizeof (channel -> reliableWindows)); - } - - command.header.command = ENET_PROTOCOL_COMMAND_CONNECT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - command.header.channelID = 0xFF; - command.connect.outgoingPeerID = ENET_HOST_TO_NET_16 (currentPeer -> incomingPeerID); - command.connect.incomingSessionID = currentPeer -> incomingSessionID; - command.connect.outgoingSessionID = currentPeer -> outgoingSessionID; - command.connect.mtu = ENET_HOST_TO_NET_32 (currentPeer -> mtu); - command.connect.windowSize = ENET_HOST_TO_NET_32 (currentPeer -> windowSize); - command.connect.channelCount = ENET_HOST_TO_NET_32 (channelCount); - command.connect.incomingBandwidth = ENET_HOST_TO_NET_32 (host -> incomingBandwidth); - command.connect.outgoingBandwidth = ENET_HOST_TO_NET_32 (host -> outgoingBandwidth); - command.connect.packetThrottleInterval = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleInterval); - command.connect.packetThrottleAcceleration = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleAcceleration); - command.connect.packetThrottleDeceleration = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleDeceleration); - command.connect.connectID = currentPeer -> connectID; - command.connect.data = ENET_HOST_TO_NET_32 (data); - - enet_peer_queue_outgoing_command (currentPeer, & command, NULL, 0, 0); - - return currentPeer; -} - -/** Queues a packet to be sent to all peers associated with the host. - @param host host on which to broadcast the packet - @param channelID channel on which to broadcast - @param packet packet to broadcast -*/ -void -enet_host_broadcast (ENetHost * host, enet_uint8 channelID, ENetPacket * packet) -{ - ENetPeer * currentPeer; - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - if (currentPeer -> state != ENET_PEER_STATE_CONNECTED) - continue; - - enet_peer_send (currentPeer, channelID, packet); - } - - if (packet -> referenceCount == 0) - enet_packet_destroy (packet); -} - -/** Sets the packet compressor the host should use to compress and decompress packets. - @param host host to enable or disable compression for - @param compressor callbacks for for the packet compressor; if NULL, then compression is disabled -*/ -void -enet_host_compress (ENetHost * host, const ENetCompressor * compressor) -{ - if (host -> compressor.context != NULL && host -> compressor.destroy) - (* host -> compressor.destroy) (host -> compressor.context); - - if (compressor) - host -> compressor = * compressor; - else - host -> compressor.context = NULL; -} - -/** Limits the maximum allowed channels of future incoming connections. - @param host host to limit - @param channelLimit the maximum number of channels allowed; if 0, then this is equivalent to ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT -*/ -void -enet_host_channel_limit (ENetHost * host, size_t channelLimit) -{ - if (! channelLimit || channelLimit > ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT) - channelLimit = ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT; - else - if (channelLimit < ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT) - channelLimit = ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT; - - host -> channelLimit = channelLimit; -} - - -/** Adjusts the bandwidth limits of a host. - @param host host to adjust - @param incomingBandwidth new incoming bandwidth - @param outgoingBandwidth new outgoing bandwidth - @remarks the incoming and outgoing bandwidth parameters are identical in function to those - specified in enet_host_create(). -*/ -void -enet_host_bandwidth_limit (ENetHost * host, enet_uint32 incomingBandwidth, enet_uint32 outgoingBandwidth) -{ - host -> incomingBandwidth = incomingBandwidth; - host -> outgoingBandwidth = outgoingBandwidth; - host -> recalculateBandwidthLimits = 1; -} - -void -enet_host_bandwidth_throttle (ENetHost * host) -{ - enet_uint32 timeCurrent = enet_time_get (), - elapsedTime = timeCurrent - host -> bandwidthThrottleEpoch, - peersTotal = 0, - dataTotal = 0, - peersRemaining, - bandwidth, - throttle = 0, - bandwidthLimit = 0; - int needsAdjustment; - ENetPeer * peer; - ENetProtocol command; - - if (elapsedTime < ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL) - return; - - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - continue; - - ++ peersTotal; - dataTotal += peer -> outgoingDataTotal; - } - - if (peersTotal == 0) - return; - - peersRemaining = peersTotal; - needsAdjustment = 1; - - if (host -> outgoingBandwidth == 0) - bandwidth = ~0; - else - bandwidth = (host -> outgoingBandwidth * elapsedTime) / 1000; - - while (peersRemaining > 0 && needsAdjustment != 0) - { - needsAdjustment = 0; - - if (dataTotal < bandwidth) - throttle = ENET_PEER_PACKET_THROTTLE_SCALE; - else - throttle = (bandwidth * ENET_PEER_PACKET_THROTTLE_SCALE) / dataTotal; - - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - enet_uint32 peerBandwidth; - - if ((peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) || - peer -> incomingBandwidth == 0 || - peer -> outgoingBandwidthThrottleEpoch == timeCurrent) - continue; - - peerBandwidth = (peer -> incomingBandwidth * elapsedTime) / 1000; - if ((throttle * peer -> outgoingDataTotal) / ENET_PEER_PACKET_THROTTLE_SCALE <= peerBandwidth) - continue; - - peer -> packetThrottleLimit = (peerBandwidth * - ENET_PEER_PACKET_THROTTLE_SCALE) / peer -> outgoingDataTotal; - - if (peer -> packetThrottleLimit == 0) - peer -> packetThrottleLimit = 1; - - if (peer -> packetThrottle > peer -> packetThrottleLimit) - peer -> packetThrottle = peer -> packetThrottleLimit; - - peer -> outgoingBandwidthThrottleEpoch = timeCurrent; - - - needsAdjustment = 1; - -- peersRemaining; - bandwidth -= peerBandwidth; - dataTotal -= peerBandwidth; - } - } - - if (peersRemaining > 0) - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - if ((peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) || - peer -> outgoingBandwidthThrottleEpoch == timeCurrent) - continue; - - peer -> packetThrottleLimit = throttle; - - if (peer -> packetThrottle > peer -> packetThrottleLimit) - peer -> packetThrottle = peer -> packetThrottleLimit; - } - - if (host -> recalculateBandwidthLimits) - { - host -> recalculateBandwidthLimits = 0; - - peersRemaining = peersTotal; - bandwidth = host -> incomingBandwidth; - needsAdjustment = 1; - - if (bandwidth == 0) - bandwidthLimit = 0; - else - while (peersRemaining > 0 && needsAdjustment != 0) - { - needsAdjustment = 0; - bandwidthLimit = bandwidth / peersRemaining; - - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - if ((peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) || - peer -> incomingBandwidthThrottleEpoch == timeCurrent) - continue; - - if (peer -> outgoingBandwidth > 0 && - peer -> outgoingBandwidth >= bandwidthLimit) - continue; - - peer -> incomingBandwidthThrottleEpoch = timeCurrent; - - needsAdjustment = 1; - -- peersRemaining; - bandwidth -= peer -> outgoingBandwidth; - } - } - - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - continue; - - command.header.command = ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - command.header.channelID = 0xFF; - command.bandwidthLimit.outgoingBandwidth = ENET_HOST_TO_NET_32 (host -> outgoingBandwidth); - - if (peer -> incomingBandwidthThrottleEpoch == timeCurrent) - command.bandwidthLimit.incomingBandwidth = ENET_HOST_TO_NET_32 (peer -> outgoingBandwidth); - else - command.bandwidthLimit.incomingBandwidth = ENET_HOST_TO_NET_32 (bandwidthLimit); - - enet_peer_queue_outgoing_command (peer, & command, NULL, 0, 0); - } - } - - host -> bandwidthThrottleEpoch = timeCurrent; - - for (peer = host -> peers; - peer < & host -> peers [host -> peerCount]; - ++ peer) - { - peer -> incomingDataTotal = 0; - peer -> outgoingDataTotal = 0; - } -} - -/** @} */ diff --git a/btgui/enet/include/enet/callbacks.h b/btgui/enet/include/enet/callbacks.h deleted file mode 100644 index 340a4a989..000000000 --- a/btgui/enet/include/enet/callbacks.h +++ /dev/null @@ -1,27 +0,0 @@ -/** - @file callbacks.h - @brief ENet callbacks -*/ -#ifndef __ENET_CALLBACKS_H__ -#define __ENET_CALLBACKS_H__ - -#include - -typedef struct _ENetCallbacks -{ - void * (ENET_CALLBACK * malloc) (size_t size); - void (ENET_CALLBACK * free) (void * memory); - void (ENET_CALLBACK * no_memory) (void); -} ENetCallbacks; - -/** @defgroup callbacks ENet internal callbacks - @{ - @ingroup private -*/ -extern void * enet_malloc (size_t); -extern void enet_free (void *); - -/** @} */ - -#endif /* __ENET_CALLBACKS_H__ */ - diff --git a/btgui/enet/include/enet/enet.h b/btgui/enet/include/enet/enet.h deleted file mode 100644 index 5f9d5403c..000000000 --- a/btgui/enet/include/enet/enet.h +++ /dev/null @@ -1,571 +0,0 @@ -/** - @file enet.h - @brief ENet public header file -*/ -#ifndef __ENET_ENET_H__ -#define __ENET_ENET_H__ - -#ifdef __cplusplus -extern "C" -{ -#endif - -#include - -#ifdef WIN32 -#include "enet/win32.h" -#else -#include "enet/unix.h" -#endif - -#include "enet/types.h" -#include "enet/protocol.h" -#include "enet/list.h" -#include "enet/callbacks.h" - -#define ENET_VERSION_MAJOR 1 -#define ENET_VERSION_MINOR 3 -#define ENET_VERSION_PATCH 7 -#define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch)) -#define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH) - -typedef enet_uint32 ENetVersion; - -struct _ENetHost; -struct _ENetEvent; -struct _ENetPacket; - -typedef enum _ENetSocketType -{ - ENET_SOCKET_TYPE_STREAM = 1, - ENET_SOCKET_TYPE_DATAGRAM = 2 -} ENetSocketType; - -typedef enum _ENetSocketWait -{ - ENET_SOCKET_WAIT_NONE = 0, - ENET_SOCKET_WAIT_SEND = (1 << 0), - ENET_SOCKET_WAIT_RECEIVE = (1 << 1) -} ENetSocketWait; - -typedef enum _ENetSocketOption -{ - ENET_SOCKOPT_NONBLOCK = 1, - ENET_SOCKOPT_BROADCAST = 2, - ENET_SOCKOPT_RCVBUF = 3, - ENET_SOCKOPT_SNDBUF = 4, - ENET_SOCKOPT_REUSEADDR = 5, - ENET_SOCKOPT_RCVTIMEO = 6, - ENET_SOCKOPT_SNDTIMEO = 7 -} ENetSocketOption; - -typedef enum _ENetSocketShutdown -{ - ENET_SOCKET_SHUTDOWN_READ = 0, - ENET_SOCKET_SHUTDOWN_WRITE = 1, - ENET_SOCKET_SHUTDOWN_READ_WRITE = 2 -} ENetSocketShutdown; - -enum -{ - ENET_HOST_ANY = 0, /**< specifies the default server host */ - ENET_HOST_BROADCAST = 0xFFFFFFFF, /**< specifies a subnet-wide broadcast */ - - ENET_PORT_ANY = 0 /**< specifies that a port should be automatically chosen */ -}; - -/** - * Portable internet address structure. - * - * The host must be specified in network byte-order, and the port must be in host - * byte-order. The constant ENET_HOST_ANY may be used to specify the default - * server host. The constant ENET_HOST_BROADCAST may be used to specify the - * broadcast address (255.255.255.255). This makes sense for enet_host_connect, - * but not for enet_host_create. Once a server responds to a broadcast, the - * address is updated from ENET_HOST_BROADCAST to the server's actual IP address. - */ -typedef struct _ENetAddress -{ - enet_uint32 host; - enet_uint16 port; -} ENetAddress; - -/** - * Packet flag bit constants. - * - * The host must be specified in network byte-order, and the port must be in - * host byte-order. The constant ENET_HOST_ANY may be used to specify the - * default server host. - - @sa ENetPacket -*/ -typedef enum _ENetPacketFlag -{ - /** packet must be received by the target peer and resend attempts should be - * made until the packet is delivered */ - ENET_PACKET_FLAG_RELIABLE = (1 << 0), - /** packet will not be sequenced with other packets - * not supported for reliable packets - */ - ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1), - /** packet will not allocate data, and user must supply it instead */ - ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2), - /** packet will be fragmented using unreliable (instead of reliable) sends - * if it exceeds the MTU */ - ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3), - - /** whether the packet has been sent from all queues it has been entered into */ - ENET_PACKET_FLAG_SENT = (1<<8) -} ENetPacketFlag; - -typedef void (ENET_CALLBACK * ENetPacketFreeCallback) (struct _ENetPacket *); - -/** - * ENet packet structure. - * - * An ENet data packet that may be sent to or received from a peer. The shown - * fields should only be read and never modified. The data field contains the - * allocated data for the packet. The dataLength fields specifies the length - * of the allocated data. The flags field is either 0 (specifying no flags), - * or a bitwise-or of any combination of the following flags: - * - * ENET_PACKET_FLAG_RELIABLE - packet must be received by the target peer - * and resend attempts should be made until the packet is delivered - * - * ENET_PACKET_FLAG_UNSEQUENCED - packet will not be sequenced with other packets - * (not supported for reliable packets) - * - * ENET_PACKET_FLAG_NO_ALLOCATE - packet will not allocate data, and user must supply it instead - - @sa ENetPacketFlag - */ -typedef struct _ENetPacket -{ - size_t referenceCount; /**< internal use only */ - enet_uint32 flags; /**< bitwise-or of ENetPacketFlag constants */ - enet_uint8 * data; /**< allocated data for packet */ - size_t dataLength; /**< length of data */ - ENetPacketFreeCallback freeCallback; /**< function to be called when the packet is no longer in use */ - void * userData; /**< application private data, may be freely modified */ -} ENetPacket; - -typedef struct _ENetAcknowledgement -{ - ENetListNode acknowledgementList; - enet_uint32 sentTime; - ENetProtocol command; -} ENetAcknowledgement; - -typedef struct _ENetOutgoingCommand -{ - ENetListNode outgoingCommandList; - enet_uint16 reliableSequenceNumber; - enet_uint16 unreliableSequenceNumber; - enet_uint32 sentTime; - enet_uint32 roundTripTimeout; - enet_uint32 roundTripTimeoutLimit; - enet_uint32 fragmentOffset; - enet_uint16 fragmentLength; - enet_uint16 sendAttempts; - ENetProtocol command; - ENetPacket * packet; -} ENetOutgoingCommand; - -typedef struct _ENetIncomingCommand -{ - ENetListNode incomingCommandList; - enet_uint16 reliableSequenceNumber; - enet_uint16 unreliableSequenceNumber; - ENetProtocol command; - enet_uint32 fragmentCount; - enet_uint32 fragmentsRemaining; - enet_uint32 * fragments; - ENetPacket * packet; -} ENetIncomingCommand; - -typedef enum _ENetPeerState -{ - ENET_PEER_STATE_DISCONNECTED = 0, - ENET_PEER_STATE_CONNECTING = 1, - ENET_PEER_STATE_ACKNOWLEDGING_CONNECT = 2, - ENET_PEER_STATE_CONNECTION_PENDING = 3, - ENET_PEER_STATE_CONNECTION_SUCCEEDED = 4, - ENET_PEER_STATE_CONNECTED = 5, - ENET_PEER_STATE_DISCONNECT_LATER = 6, - ENET_PEER_STATE_DISCONNECTING = 7, - ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT = 8, - ENET_PEER_STATE_ZOMBIE = 9 -} ENetPeerState; - -#ifndef ENET_BUFFER_MAXIMUM -#define ENET_BUFFER_MAXIMUM (1 + 2 * ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS) -#endif - -enum -{ - ENET_HOST_RECEIVE_BUFFER_SIZE = 256 * 1024, - ENET_HOST_SEND_BUFFER_SIZE = 256 * 1024, - ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL = 1000, - ENET_HOST_DEFAULT_MTU = 1400, - - ENET_PEER_DEFAULT_ROUND_TRIP_TIME = 500, - ENET_PEER_DEFAULT_PACKET_THROTTLE = 32, - ENET_PEER_PACKET_THROTTLE_SCALE = 32, - ENET_PEER_PACKET_THROTTLE_COUNTER = 7, - ENET_PEER_PACKET_THROTTLE_ACCELERATION = 2, - ENET_PEER_PACKET_THROTTLE_DECELERATION = 2, - ENET_PEER_PACKET_THROTTLE_INTERVAL = 5000, - ENET_PEER_PACKET_LOSS_SCALE = (1 << 16), - ENET_PEER_PACKET_LOSS_INTERVAL = 10000, - ENET_PEER_WINDOW_SIZE_SCALE = 64 * 1024, - ENET_PEER_TIMEOUT_LIMIT = 32, - ENET_PEER_TIMEOUT_MINIMUM = 5000, - ENET_PEER_TIMEOUT_MAXIMUM = 30000, - ENET_PEER_PING_INTERVAL = 500, - ENET_PEER_UNSEQUENCED_WINDOWS = 64, - ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 1024, - ENET_PEER_FREE_UNSEQUENCED_WINDOWS = 32, - ENET_PEER_RELIABLE_WINDOWS = 16, - ENET_PEER_RELIABLE_WINDOW_SIZE = 0x1000, - ENET_PEER_FREE_RELIABLE_WINDOWS = 8 -}; - -typedef struct _ENetChannel -{ - enet_uint16 outgoingReliableSequenceNumber; - enet_uint16 outgoingUnreliableSequenceNumber; - enet_uint16 usedReliableWindows; - enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; - enet_uint16 incomingReliableSequenceNumber; - enet_uint16 incomingUnreliableSequenceNumber; - ENetList incomingReliableCommands; - ENetList incomingUnreliableCommands; -} ENetChannel; - -/** - * An ENet peer which data packets may be sent or received from. - * - * No fields should be modified unless otherwise specified. - */ -typedef struct _ENetPeer -{ - ENetListNode dispatchList; - struct _ENetHost * host; - enet_uint16 outgoingPeerID; - enet_uint16 incomingPeerID; - enet_uint32 connectID; - enet_uint8 outgoingSessionID; - enet_uint8 incomingSessionID; - ENetAddress address; /**< Internet address of the peer */ - void * data; /**< Application private data, may be freely modified */ - ENetPeerState state; - ENetChannel * channels; - size_t channelCount; /**< Number of channels allocated for communication with peer */ - enet_uint32 incomingBandwidth; /**< Downstream bandwidth of the client in bytes/second */ - enet_uint32 outgoingBandwidth; /**< Upstream bandwidth of the client in bytes/second */ - enet_uint32 incomingBandwidthThrottleEpoch; - enet_uint32 outgoingBandwidthThrottleEpoch; - enet_uint32 incomingDataTotal; - enet_uint32 outgoingDataTotal; - enet_uint32 lastSendTime; - enet_uint32 lastReceiveTime; - enet_uint32 nextTimeout; - enet_uint32 earliestTimeout; - enet_uint32 packetLossEpoch; - enet_uint32 packetsSent; - enet_uint32 packetsLost; - enet_uint32 packetLoss; /**< mean packet loss of reliable packets as a ratio with respect to the constant ENET_PEER_PACKET_LOSS_SCALE */ - enet_uint32 packetLossVariance; - enet_uint32 packetThrottle; - enet_uint32 packetThrottleLimit; - enet_uint32 packetThrottleCounter; - enet_uint32 packetThrottleEpoch; - enet_uint32 packetThrottleAcceleration; - enet_uint32 packetThrottleDeceleration; - enet_uint32 packetThrottleInterval; - enet_uint32 pingInterval; - enet_uint32 timeoutLimit; - enet_uint32 timeoutMinimum; - enet_uint32 timeoutMaximum; - enet_uint32 lastRoundTripTime; - enet_uint32 lowestRoundTripTime; - enet_uint32 lastRoundTripTimeVariance; - enet_uint32 highestRoundTripTimeVariance; - enet_uint32 roundTripTime; /**< mean round trip time (RTT), in milliseconds, between sending a reliable packet and receiving its acknowledgement */ - enet_uint32 roundTripTimeVariance; - enet_uint32 mtu; - enet_uint32 windowSize; - enet_uint32 reliableDataInTransit; - enet_uint16 outgoingReliableSequenceNumber; - ENetList acknowledgements; - ENetList sentReliableCommands; - ENetList sentUnreliableCommands; - ENetList outgoingReliableCommands; - ENetList outgoingUnreliableCommands; - ENetList dispatchedCommands; - int needsDispatch; - enet_uint16 incomingUnsequencedGroup; - enet_uint16 outgoingUnsequencedGroup; - enet_uint32 unsequencedWindow [ENET_PEER_UNSEQUENCED_WINDOW_SIZE / 32]; - enet_uint32 eventData; -} ENetPeer; - -/** An ENet packet compressor for compressing UDP packets before socket sends or receives. - */ -typedef struct _ENetCompressor -{ - /** Context data for the compressor. Must be non-NULL. */ - void * context; - /** Compresses from inBuffers[0:inBufferCount-1], containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ - size_t (ENET_CALLBACK * compress) (void * context, const ENetBuffer * inBuffers, size_t inBufferCount, size_t inLimit, enet_uint8 * outData, size_t outLimit); - /** Decompresses from inData, containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ - size_t (ENET_CALLBACK * decompress) (void * context, const enet_uint8 * inData, size_t inLimit, enet_uint8 * outData, size_t outLimit); - /** Destroys the context when compression is disabled or the host is destroyed. May be NULL. */ - void (ENET_CALLBACK * destroy) (void * context); -} ENetCompressor; - -/** Callback that computes the checksum of the data held in buffers[0:bufferCount-1] */ -typedef enet_uint32 (ENET_CALLBACK * ENetChecksumCallback) (const ENetBuffer * buffers, size_t bufferCount); - -/** Callback for intercepting received raw UDP packets. Should return 1 to intercept, 0 to ignore, or -1 to propagate an error. */ -typedef int (ENET_CALLBACK * ENetInterceptCallback) (struct _ENetHost * host, struct _ENetEvent * event); - -/** An ENet host for communicating with peers. - * - * No fields should be modified unless otherwise stated. - - @sa enet_host_create() - @sa enet_host_destroy() - @sa enet_host_connect() - @sa enet_host_service() - @sa enet_host_flush() - @sa enet_host_broadcast() - @sa enet_host_compress() - @sa enet_host_compress_with_range_coder() - @sa enet_host_channel_limit() - @sa enet_host_bandwidth_limit() - @sa enet_host_bandwidth_throttle() - */ -typedef struct _ENetHost -{ - ENetSocket socket; - ENetAddress address; /**< Internet address of the host */ - enet_uint32 incomingBandwidth; /**< downstream bandwidth of the host */ - enet_uint32 outgoingBandwidth; /**< upstream bandwidth of the host */ - enet_uint32 bandwidthThrottleEpoch; - enet_uint32 mtu; - enet_uint32 randomSeed; - int recalculateBandwidthLimits; - ENetPeer * peers; /**< array of peers allocated for this host */ - size_t peerCount; /**< number of peers allocated for this host */ - size_t channelLimit; /**< maximum number of channels allowed for connected peers */ - enet_uint32 serviceTime; - ENetList dispatchQueue; - int continueSending; - size_t packetSize; - enet_uint16 headerFlags; - ENetProtocol commands [ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS]; - size_t commandCount; - ENetBuffer buffers [ENET_BUFFER_MAXIMUM]; - size_t bufferCount; - ENetChecksumCallback checksum; /**< callback the user can set to enable packet checksums for this host */ - ENetCompressor compressor; - enet_uint8 packetData [2][ENET_PROTOCOL_MAXIMUM_MTU]; - ENetAddress receivedAddress; - enet_uint8 * receivedData; - size_t receivedDataLength; - enet_uint32 totalSentData; /**< total data sent, user should reset to 0 as needed to prevent overflow */ - enet_uint32 totalSentPackets; /**< total UDP packets sent, user should reset to 0 as needed to prevent overflow */ - enet_uint32 totalReceivedData; /**< total data received, user should reset to 0 as needed to prevent overflow */ - enet_uint32 totalReceivedPackets; /**< total UDP packets received, user should reset to 0 as needed to prevent overflow */ - ENetInterceptCallback intercept; /**< callback the user can set to intercept received raw UDP packets */ -} ENetHost; - -/** - * An ENet event type, as specified in @ref ENetEvent. - */ -typedef enum _ENetEventType -{ - /** no event occurred within the specified time limit */ - ENET_EVENT_TYPE_NONE = 0, - - /** a connection request initiated by enet_host_connect has completed. - * The peer field contains the peer which successfully connected. - */ - ENET_EVENT_TYPE_CONNECT = 1, - - /** a peer has disconnected. This event is generated on a successful - * completion of a disconnect initiated by enet_pper_disconnect, if - * a peer has timed out, or if a connection request intialized by - * enet_host_connect has timed out. The peer field contains the peer - * which disconnected. The data field contains user supplied data - * describing the disconnection, or 0, if none is available. - */ - ENET_EVENT_TYPE_DISCONNECT = 2, - - /** a packet has been received from a peer. The peer field specifies the - * peer which sent the packet. The channelID field specifies the channel - * number upon which the packet was received. The packet field contains - * the packet that was received; this packet must be destroyed with - * enet_packet_destroy after use. - */ - ENET_EVENT_TYPE_RECEIVE = 3 -} ENetEventType; - -/** - * An ENet event as returned by enet_host_service(). - - @sa enet_host_service - */ -typedef struct _ENetEvent -{ - ENetEventType type; /**< type of the event */ - ENetPeer * peer; /**< peer that generated a connect, disconnect or receive event */ - enet_uint8 channelID; /**< channel on the peer that generated the event, if appropriate */ - enet_uint32 data; /**< data associated with the event, if appropriate */ - ENetPacket * packet; /**< packet associated with the event, if appropriate */ -} ENetEvent; - -/** @defgroup global ENet global functions - @{ -*/ - -/** - Initializes ENet globally. Must be called prior to using any functions in - ENet. - @returns 0 on success, < 0 on failure -*/ -ENET_API int enet_initialize (void); - -/** - Initializes ENet globally and supplies user-overridden callbacks. Must be called prior to using any functions in ENet. Do not use enet_initialize() if you use this variant. Make sure the ENetCallbacks structure is zeroed out so that any additional callbacks added in future versions will be properly ignored. - - @param version the constant ENET_VERSION should be supplied so ENet knows which version of ENetCallbacks struct to use - @param inits user-overriden callbacks where any NULL callbacks will use ENet's defaults - @returns 0 on success, < 0 on failure -*/ -ENET_API int enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits); - -/** - Shuts down ENet globally. Should be called when a program that has - initialized ENet exits. -*/ -ENET_API void enet_deinitialize (void); - -/** @} */ - -/** @defgroup private ENet private implementation functions */ - -/** - Returns the wall-time in milliseconds. Its initial value is unspecified - unless otherwise set. - */ -ENET_API enet_uint32 enet_time_get (void); -/** - Sets the current wall-time in milliseconds. - */ -ENET_API void enet_time_set (enet_uint32); - -/** @defgroup socket ENet socket functions - @{ -*/ -ENET_API ENetSocket enet_socket_create (ENetSocketType); -ENET_API int enet_socket_bind (ENetSocket, const ENetAddress *); -ENET_API int enet_socket_listen (ENetSocket, int); -ENET_API ENetSocket enet_socket_accept (ENetSocket, ENetAddress *); -ENET_API int enet_socket_connect (ENetSocket, const ENetAddress *); -ENET_API int enet_socket_send (ENetSocket, const ENetAddress *, const ENetBuffer *, size_t); -ENET_API int enet_socket_receive (ENetSocket, ENetAddress *, ENetBuffer *, size_t); -ENET_API int enet_socket_wait (ENetSocket, enet_uint32 *, enet_uint32); -ENET_API int enet_socket_set_option (ENetSocket, ENetSocketOption, int); -ENET_API int enet_socket_shutdown (ENetSocket, ENetSocketShutdown); -ENET_API void enet_socket_destroy (ENetSocket); -ENET_API int enet_socketset_select (ENetSocket, ENetSocketSet *, ENetSocketSet *, enet_uint32); - -/** @} */ - -/** @defgroup Address ENet address functions - @{ -*/ -/** Attempts to resolve the host named by the parameter hostName and sets - the host field in the address parameter if successful. - @param address destination to store resolved address - @param hostName host name to lookup - @retval 0 on success - @retval < 0 on failure - @returns the address of the given hostName in address on success -*/ -ENET_API int enet_address_set_host (ENetAddress * address, const char * hostName); - -/** Gives the printable form of the ip address specified in the address parameter. - @param address address printed - @param hostName destination for name, must not be NULL - @param nameLength maximum length of hostName. - @returns the null-terminated name of the host in hostName on success - @retval 0 on success - @retval < 0 on failure -*/ -ENET_API int enet_address_get_host_ip (const ENetAddress * address, char * hostName, size_t nameLength); - -/** Attempts to do a reverse lookup of the host field in the address parameter. - @param address address used for reverse lookup - @param hostName destination for name, must not be NULL - @param nameLength maximum length of hostName. - @returns the null-terminated name of the host in hostName on success - @retval 0 on success - @retval < 0 on failure -*/ -ENET_API int enet_address_get_host (const ENetAddress * address, char * hostName, size_t nameLength); - -/** @} */ - -ENET_API ENetPacket * enet_packet_create (const void *, size_t, enet_uint32); -ENET_API void enet_packet_destroy (ENetPacket *); -ENET_API int enet_packet_resize (ENetPacket *, size_t); -ENET_API enet_uint32 enet_crc32 (const ENetBuffer *, size_t); - -ENET_API ENetHost * enet_host_create (const ENetAddress *, size_t, size_t, enet_uint32, enet_uint32); -ENET_API void enet_host_destroy (ENetHost *); -ENET_API ENetPeer * enet_host_connect (ENetHost *, const ENetAddress *, size_t, enet_uint32); -ENET_API int enet_host_check_events (ENetHost *, ENetEvent *); -ENET_API int enet_host_service (ENetHost *, ENetEvent *, enet_uint32); -ENET_API void enet_host_flush (ENetHost *); -ENET_API void enet_host_broadcast (ENetHost *, enet_uint8, ENetPacket *); -ENET_API void enet_host_compress (ENetHost *, const ENetCompressor *); -ENET_API int enet_host_compress_with_range_coder (ENetHost * host); -ENET_API void enet_host_channel_limit (ENetHost *, size_t); -ENET_API void enet_host_bandwidth_limit (ENetHost *, enet_uint32, enet_uint32); -extern void enet_host_bandwidth_throttle (ENetHost *); - -ENET_API int enet_peer_send (ENetPeer *, enet_uint8, ENetPacket *); -ENET_API ENetPacket * enet_peer_receive (ENetPeer *, enet_uint8 * channelID); -ENET_API void enet_peer_ping (ENetPeer *); -ENET_API void enet_peer_ping_interval (ENetPeer *, enet_uint32); -ENET_API void enet_peer_timeout (ENetPeer *, enet_uint32, enet_uint32, enet_uint32); -ENET_API void enet_peer_reset (ENetPeer *); -ENET_API void enet_peer_disconnect (ENetPeer *, enet_uint32); -ENET_API void enet_peer_disconnect_now (ENetPeer *, enet_uint32); -ENET_API void enet_peer_disconnect_later (ENetPeer *, enet_uint32); -ENET_API void enet_peer_throttle_configure (ENetPeer *, enet_uint32, enet_uint32, enet_uint32); -extern int enet_peer_throttle (ENetPeer *, enet_uint32); -extern void enet_peer_reset_queues (ENetPeer *); -extern void enet_peer_setup_outgoing_command (ENetPeer *, ENetOutgoingCommand *); -extern ENetOutgoingCommand * enet_peer_queue_outgoing_command (ENetPeer *, const ENetProtocol *, ENetPacket *, enet_uint32, enet_uint16); -extern ENetIncomingCommand * enet_peer_queue_incoming_command (ENetPeer *, const ENetProtocol *, ENetPacket *, enet_uint32); -extern ENetAcknowledgement * enet_peer_queue_acknowledgement (ENetPeer *, const ENetProtocol *, enet_uint16); -extern void enet_peer_dispatch_incoming_unreliable_commands (ENetPeer *, ENetChannel *); -extern void enet_peer_dispatch_incoming_reliable_commands (ENetPeer *, ENetChannel *); - -ENET_API void * enet_range_coder_create (void); -ENET_API void enet_range_coder_destroy (void *); -ENET_API size_t enet_range_coder_compress (void *, const ENetBuffer *, size_t, size_t, enet_uint8 *, size_t); -ENET_API size_t enet_range_coder_decompress (void *, const enet_uint8 *, size_t, enet_uint8 *, size_t); - -extern size_t enet_protocol_command_size (enet_uint8); - -#ifdef __cplusplus -} -#endif - -#endif /* __ENET_ENET_H__ */ - diff --git a/btgui/enet/include/enet/list.h b/btgui/enet/include/enet/list.h deleted file mode 100644 index d7b260084..000000000 --- a/btgui/enet/include/enet/list.h +++ /dev/null @@ -1,43 +0,0 @@ -/** - @file list.h - @brief ENet list management -*/ -#ifndef __ENET_LIST_H__ -#define __ENET_LIST_H__ - -#include - -typedef struct _ENetListNode -{ - struct _ENetListNode * next; - struct _ENetListNode * previous; -} ENetListNode; - -typedef ENetListNode * ENetListIterator; - -typedef struct _ENetList -{ - ENetListNode sentinel; -} ENetList; - -extern void enet_list_clear (ENetList *); - -extern ENetListIterator enet_list_insert (ENetListIterator, void *); -extern void * enet_list_remove (ENetListIterator); -extern ENetListIterator enet_list_move (ENetListIterator, void *, void *); - -extern size_t enet_list_size (ENetList *); - -#define enet_list_begin(list) ((list) -> sentinel.next) -#define enet_list_end(list) (& (list) -> sentinel) - -#define enet_list_empty(list) (enet_list_begin (list) == enet_list_end (list)) - -#define enet_list_next(iterator) ((iterator) -> next) -#define enet_list_previous(iterator) ((iterator) -> previous) - -#define enet_list_front(list) ((void *) (list) -> sentinel.next) -#define enet_list_back(list) ((void *) (list) -> sentinel.previous) - -#endif /* __ENET_LIST_H__ */ - diff --git a/btgui/enet/include/enet/protocol.h b/btgui/enet/include/enet/protocol.h deleted file mode 100644 index f8a27d8e1..000000000 --- a/btgui/enet/include/enet/protocol.h +++ /dev/null @@ -1,199 +0,0 @@ -/** - @file protocol.h - @brief ENet protocol -*/ -#ifndef __ENET_PROTOCOL_H__ -#define __ENET_PROTOCOL_H__ - -#include "enet/types.h" - -enum -{ - ENET_PROTOCOL_MINIMUM_MTU = 576, - ENET_PROTOCOL_MAXIMUM_MTU = 4096, - ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS = 32, - ENET_PROTOCOL_MINIMUM_WINDOW_SIZE = 4096, - ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE = 32768, - ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT = 1, - ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT = 255, - ENET_PROTOCOL_MAXIMUM_PEER_ID = 0xFFF, - ENET_PROTOCOL_MAXIMUM_PACKET_SIZE = 1024 * 1024 * 1024, - ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT = 1024 * 1024 -}; - -typedef enum _ENetProtocolCommand -{ - ENET_PROTOCOL_COMMAND_NONE = 0, - ENET_PROTOCOL_COMMAND_ACKNOWLEDGE = 1, - ENET_PROTOCOL_COMMAND_CONNECT = 2, - ENET_PROTOCOL_COMMAND_VERIFY_CONNECT = 3, - ENET_PROTOCOL_COMMAND_DISCONNECT = 4, - ENET_PROTOCOL_COMMAND_PING = 5, - ENET_PROTOCOL_COMMAND_SEND_RELIABLE = 6, - ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE = 7, - ENET_PROTOCOL_COMMAND_SEND_FRAGMENT = 8, - ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED = 9, - ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10, - ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, - ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12, - ENET_PROTOCOL_COMMAND_COUNT = 13, - - ENET_PROTOCOL_COMMAND_MASK = 0x0F -} ENetProtocolCommand; - -typedef enum _ENetProtocolFlag -{ - ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE = (1 << 7), - ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED = (1 << 6), - - ENET_PROTOCOL_HEADER_FLAG_COMPRESSED = (1 << 14), - ENET_PROTOCOL_HEADER_FLAG_SENT_TIME = (1 << 15), - ENET_PROTOCOL_HEADER_FLAG_MASK = ENET_PROTOCOL_HEADER_FLAG_COMPRESSED | ENET_PROTOCOL_HEADER_FLAG_SENT_TIME, - - ENET_PROTOCOL_HEADER_SESSION_MASK = (3 << 12), - ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12 -} ENetProtocolFlag; - -#ifdef _MSC_VER_ -#pragma pack(push, 1) -#define ENET_PACKED -#elif defined(__GNUC__) -#define ENET_PACKED __attribute__ ((packed)) -#else -#define ENET_PACKED -#endif - -typedef struct _ENetProtocolHeader -{ - enet_uint16 peerID; - enet_uint16 sentTime; -} ENET_PACKED ENetProtocolHeader; - -typedef struct _ENetProtocolCommandHeader -{ - enet_uint8 command; - enet_uint8 channelID; - enet_uint16 reliableSequenceNumber; -} ENET_PACKED ENetProtocolCommandHeader; - -typedef struct _ENetProtocolAcknowledge -{ - ENetProtocolCommandHeader header; - enet_uint16 receivedReliableSequenceNumber; - enet_uint16 receivedSentTime; -} ENET_PACKED ENetProtocolAcknowledge; - -typedef struct _ENetProtocolConnect -{ - ENetProtocolCommandHeader header; - enet_uint16 outgoingPeerID; - enet_uint8 incomingSessionID; - enet_uint8 outgoingSessionID; - enet_uint32 mtu; - enet_uint32 windowSize; - enet_uint32 channelCount; - enet_uint32 incomingBandwidth; - enet_uint32 outgoingBandwidth; - enet_uint32 packetThrottleInterval; - enet_uint32 packetThrottleAcceleration; - enet_uint32 packetThrottleDeceleration; - enet_uint32 connectID; - enet_uint32 data; -} ENET_PACKED ENetProtocolConnect; - -typedef struct _ENetProtocolVerifyConnect -{ - ENetProtocolCommandHeader header; - enet_uint16 outgoingPeerID; - enet_uint8 incomingSessionID; - enet_uint8 outgoingSessionID; - enet_uint32 mtu; - enet_uint32 windowSize; - enet_uint32 channelCount; - enet_uint32 incomingBandwidth; - enet_uint32 outgoingBandwidth; - enet_uint32 packetThrottleInterval; - enet_uint32 packetThrottleAcceleration; - enet_uint32 packetThrottleDeceleration; - enet_uint32 connectID; -} ENET_PACKED ENetProtocolVerifyConnect; - -typedef struct _ENetProtocolBandwidthLimit -{ - ENetProtocolCommandHeader header; - enet_uint32 incomingBandwidth; - enet_uint32 outgoingBandwidth; -} ENET_PACKED ENetProtocolBandwidthLimit; - -typedef struct _ENetProtocolThrottleConfigure -{ - ENetProtocolCommandHeader header; - enet_uint32 packetThrottleInterval; - enet_uint32 packetThrottleAcceleration; - enet_uint32 packetThrottleDeceleration; -} ENET_PACKED ENetProtocolThrottleConfigure; - -typedef struct _ENetProtocolDisconnect -{ - ENetProtocolCommandHeader header; - enet_uint32 data; -} ENET_PACKED ENetProtocolDisconnect; - -typedef struct _ENetProtocolPing -{ - ENetProtocolCommandHeader header; -} ENET_PACKED ENetProtocolPing; - -typedef struct _ENetProtocolSendReliable -{ - ENetProtocolCommandHeader header; - enet_uint16 dataLength; -} ENET_PACKED ENetProtocolSendReliable; - -typedef struct _ENetProtocolSendUnreliable -{ - ENetProtocolCommandHeader header; - enet_uint16 unreliableSequenceNumber; - enet_uint16 dataLength; -} ENET_PACKED ENetProtocolSendUnreliable; - -typedef struct _ENetProtocolSendUnsequenced -{ - ENetProtocolCommandHeader header; - enet_uint16 unsequencedGroup; - enet_uint16 dataLength; -} ENET_PACKED ENetProtocolSendUnsequenced; - -typedef struct _ENetProtocolSendFragment -{ - ENetProtocolCommandHeader header; - enet_uint16 startSequenceNumber; - enet_uint16 dataLength; - enet_uint32 fragmentCount; - enet_uint32 fragmentNumber; - enet_uint32 totalLength; - enet_uint32 fragmentOffset; -} ENET_PACKED ENetProtocolSendFragment; - -typedef union _ENetProtocol -{ - ENetProtocolCommandHeader header; - ENetProtocolAcknowledge acknowledge; - ENetProtocolConnect connect; - ENetProtocolVerifyConnect verifyConnect; - ENetProtocolDisconnect disconnect; - ENetProtocolPing ping; - ENetProtocolSendReliable sendReliable; - ENetProtocolSendUnreliable sendUnreliable; - ENetProtocolSendUnsequenced sendUnsequenced; - ENetProtocolSendFragment sendFragment; - ENetProtocolBandwidthLimit bandwidthLimit; - ENetProtocolThrottleConfigure throttleConfigure; -} ENET_PACKED ENetProtocol; - -#ifdef _MSC_VER_ -#pragma pack(pop) -#endif - -#endif /* __ENET_PROTOCOL_H__ */ - diff --git a/btgui/enet/include/enet/time.h b/btgui/enet/include/enet/time.h deleted file mode 100644 index c82a54603..000000000 --- a/btgui/enet/include/enet/time.h +++ /dev/null @@ -1,18 +0,0 @@ -/** - @file time.h - @brief ENet time constants and macros -*/ -#ifndef __ENET_TIME_H__ -#define __ENET_TIME_H__ - -#define ENET_TIME_OVERFLOW 86400000 - -#define ENET_TIME_LESS(a, b) ((a) - (b) >= ENET_TIME_OVERFLOW) -#define ENET_TIME_GREATER(a, b) ((b) - (a) >= ENET_TIME_OVERFLOW) -#define ENET_TIME_LESS_EQUAL(a, b) (! ENET_TIME_GREATER (a, b)) -#define ENET_TIME_GREATER_EQUAL(a, b) (! ENET_TIME_LESS (a, b)) - -#define ENET_TIME_DIFFERENCE(a, b) ((a) - (b) >= ENET_TIME_OVERFLOW ? (b) - (a) : (a) - (b)) - -#endif /* __ENET_TIME_H__ */ - diff --git a/btgui/enet/include/enet/types.h b/btgui/enet/include/enet/types.h deleted file mode 100644 index ab010a4b1..000000000 --- a/btgui/enet/include/enet/types.h +++ /dev/null @@ -1,13 +0,0 @@ -/** - @file types.h - @brief type definitions for ENet -*/ -#ifndef __ENET_TYPES_H__ -#define __ENET_TYPES_H__ - -typedef unsigned char enet_uint8; /**< unsigned 8-bit type */ -typedef unsigned short enet_uint16; /**< unsigned 16-bit type */ -typedef unsigned int enet_uint32; /**< unsigned 32-bit type */ - -#endif /* __ENET_TYPES_H__ */ - diff --git a/btgui/enet/include/enet/unix.h b/btgui/enet/include/enet/unix.h deleted file mode 100644 index 087015e51..000000000 --- a/btgui/enet/include/enet/unix.h +++ /dev/null @@ -1,45 +0,0 @@ -/** - @file unix.h - @brief ENet Unix header -*/ -#ifndef __ENET_UNIX_H__ -#define __ENET_UNIX_H__ - -#include -#include -#include -#include -#include - -typedef int ENetSocket; - -enum -{ - ENET_SOCKET_NULL = -1 -}; - -#define ENET_HOST_TO_NET_16(value) (htons (value)) /**< macro that converts host to net byte-order of a 16-bit value */ -#define ENET_HOST_TO_NET_32(value) (htonl (value)) /**< macro that converts host to net byte-order of a 32-bit value */ - -#define ENET_NET_TO_HOST_16(value) (ntohs (value)) /**< macro that converts net to host byte-order of a 16-bit value */ -#define ENET_NET_TO_HOST_32(value) (ntohl (value)) /**< macro that converts net to host byte-order of a 32-bit value */ - -typedef struct -{ - void * data; - size_t dataLength; -} ENetBuffer; - -#define ENET_CALLBACK - -#define ENET_API extern - -typedef fd_set ENetSocketSet; - -#define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset)) -#define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset)) -#define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLEAR (socket, & (sockset)) -#define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset)) - -#endif /* __ENET_UNIX_H__ */ - diff --git a/btgui/enet/include/enet/utility.h b/btgui/enet/include/enet/utility.h deleted file mode 100644 index e48a476be..000000000 --- a/btgui/enet/include/enet/utility.h +++ /dev/null @@ -1,12 +0,0 @@ -/** - @file utility.h - @brief ENet utility header -*/ -#ifndef __ENET_UTILITY_H__ -#define __ENET_UTILITY_H__ - -#define ENET_MAX(x, y) ((x) > (y) ? (x) : (y)) -#define ENET_MIN(x, y) ((x) < (y) ? (x) : (y)) - -#endif /* __ENET_UTILITY_H__ */ - diff --git a/btgui/enet/include/enet/win32.h b/btgui/enet/include/enet/win32.h deleted file mode 100644 index 0e1cf0c5a..000000000 --- a/btgui/enet/include/enet/win32.h +++ /dev/null @@ -1,58 +0,0 @@ -/** - @file win32.h - @brief ENet Win32 header -*/ -#ifndef __ENET_WIN32_H__ -#define __ENET_WIN32_H__ - -#ifdef ENET_BUILDING_LIB -#pragma warning (disable: 4996) // 'strncpy' was declared deprecated -#pragma warning (disable: 4267) // size_t to int conversion -#pragma warning (disable: 4244) // 64bit to 32bit int -#pragma warning (disable: 4018) // signed/unsigned mismatch -#endif - -#include -#include - -typedef SOCKET ENetSocket; - -enum -{ - ENET_SOCKET_NULL = INVALID_SOCKET -}; - -#define ENET_HOST_TO_NET_16(value) (htons (value)) -#define ENET_HOST_TO_NET_32(value) (htonl (value)) - -#define ENET_NET_TO_HOST_16(value) (ntohs (value)) -#define ENET_NET_TO_HOST_32(value) (ntohl (value)) - -typedef struct -{ - size_t dataLength; - void * data; -} ENetBuffer; - -#define ENET_CALLBACK __cdecl - -#if defined ENET_DLL -#if defined ENET_BUILDING_LIB -#define ENET_API __declspec( dllexport ) -#else -#define ENET_API __declspec( dllimport ) -#endif /* ENET_BUILDING_LIB */ -#else /* !ENET_DLL */ -#define ENET_API extern -#endif /* ENET_DLL */ - -typedef fd_set ENetSocketSet; - -#define ENET_SOCKETSET_EMPTY(sockset) FD_ZERO (& (sockset)) -#define ENET_SOCKETSET_ADD(sockset, socket) FD_SET (socket, & (sockset)) -#define ENET_SOCKETSET_REMOVE(sockset, socket) FD_CLEAR (socket, & (sockset)) -#define ENET_SOCKETSET_CHECK(sockset, socket) FD_ISSET (socket, & (sockset)) - -#endif /* __ENET_WIN32_H__ */ - - diff --git a/btgui/enet/list.c b/btgui/enet/list.c deleted file mode 100644 index 1c1a8dfaa..000000000 --- a/btgui/enet/list.c +++ /dev/null @@ -1,75 +0,0 @@ -/** - @file list.c - @brief ENet linked list functions -*/ -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -/** - @defgroup list ENet linked list utility functions - @ingroup private - @{ -*/ -void -enet_list_clear (ENetList * list) -{ - list -> sentinel.next = & list -> sentinel; - list -> sentinel.previous = & list -> sentinel; -} - -ENetListIterator -enet_list_insert (ENetListIterator position, void * data) -{ - ENetListIterator result = (ENetListIterator) data; - - result -> previous = position -> previous; - result -> next = position; - - result -> previous -> next = result; - position -> previous = result; - - return result; -} - -void * -enet_list_remove (ENetListIterator position) -{ - position -> previous -> next = position -> next; - position -> next -> previous = position -> previous; - - return position; -} - -ENetListIterator -enet_list_move (ENetListIterator position, void * dataFirst, void * dataLast) -{ - ENetListIterator first = (ENetListIterator) dataFirst, - last = (ENetListIterator) dataLast; - - first -> previous -> next = last -> next; - last -> next -> previous = first -> previous; - - first -> previous = position -> previous; - last -> next = position; - - first -> previous -> next = first; - position -> previous = last; - - return first; -} - -size_t -enet_list_size (ENetList * list) -{ - size_t size = 0; - ENetListIterator position; - - for (position = enet_list_begin (list); - position != enet_list_end (list); - position = enet_list_next (position)) - ++ size; - - return size; -} - -/** @} */ diff --git a/btgui/enet/packet.c b/btgui/enet/packet.c deleted file mode 100644 index 9a997be4e..000000000 --- a/btgui/enet/packet.c +++ /dev/null @@ -1,165 +0,0 @@ -/** - @file packet.c - @brief ENet packet management functions -*/ -#include -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -/** @defgroup Packet ENet packet functions - @{ -*/ - -/** Creates a packet that may be sent to a peer. - @param dataContents initial contents of the packet's data; the packet's data will remain uninitialized if dataContents is NULL. - @param dataLength size of the data allocated for this packet - @param flags flags for this packet as described for the ENetPacket structure. - @returns the packet on success, NULL on failure -*/ -ENetPacket * -enet_packet_create (const void * data, size_t dataLength, enet_uint32 flags) -{ - ENetPacket * packet = (ENetPacket *) enet_malloc (sizeof (ENetPacket)); - if (packet == NULL) - return NULL; - - if (flags & ENET_PACKET_FLAG_NO_ALLOCATE) - packet -> data = (enet_uint8 *) data; - else - if (dataLength <= 0) - packet -> data = NULL; - else - { - packet -> data = (enet_uint8 *) enet_malloc (dataLength); - if (packet -> data == NULL) - { - enet_free (packet); - return NULL; - } - - if (data != NULL) - memcpy (packet -> data, data, dataLength); - } - - packet -> referenceCount = 0; - packet -> flags = flags; - packet -> dataLength = dataLength; - packet -> freeCallback = NULL; - packet -> userData = NULL; - - return packet; -} - -/** Destroys the packet and deallocates its data. - @param packet packet to be destroyed -*/ -void -enet_packet_destroy (ENetPacket * packet) -{ - if (packet == NULL) - return; - - if (packet -> freeCallback != NULL) - (* packet -> freeCallback) (packet); - if (! (packet -> flags & ENET_PACKET_FLAG_NO_ALLOCATE) && - packet -> data != NULL) - enet_free (packet -> data); - enet_free (packet); -} - -/** Attempts to resize the data in the packet to length specified in the - dataLength parameter - @param packet packet to resize - @param dataLength new size for the packet data - @returns 0 on success, < 0 on failure -*/ -int -enet_packet_resize (ENetPacket * packet, size_t dataLength) -{ - enet_uint8 * newData; - - if (dataLength <= packet -> dataLength || (packet -> flags & ENET_PACKET_FLAG_NO_ALLOCATE)) - { - packet -> dataLength = dataLength; - - return 0; - } - - newData = (enet_uint8 *) enet_malloc (dataLength); - if (newData == NULL) - return -1; - - memcpy (newData, packet -> data, packet -> dataLength); - enet_free (packet -> data); - - packet -> data = newData; - packet -> dataLength = dataLength; - - return 0; -} - -static int initializedCRC32 = 0; -static enet_uint32 crcTable [256]; - -static enet_uint32 -reflect_crc (int val, int bits) -{ - int result = 0, bit; - - for (bit = 0; bit < bits; bit ++) - { - if(val & 1) result |= 1 << (bits - 1 - bit); - val >>= 1; - } - - return result; -} - -static void -initialize_crc32 (void) -{ - int byte; - - for (byte = 0; byte < 256; ++ byte) - { - enet_uint32 crc = reflect_crc (byte, 8) << 24; - int offset; - - for(offset = 0; offset < 8; ++ offset) - { - if (crc & 0x80000000) - crc = (crc << 1) ^ 0x04c11db7; - else - crc <<= 1; - } - - crcTable [byte] = reflect_crc (crc, 32); - } - - initializedCRC32 = 1; -} - -enet_uint32 -enet_crc32 (const ENetBuffer * buffers, size_t bufferCount) -{ - enet_uint32 crc = 0xFFFFFFFF; - - if (! initializedCRC32) initialize_crc32 (); - - while (bufferCount -- > 0) - { - const enet_uint8 * data = (const enet_uint8 *) buffers -> data, - * dataEnd = & data [buffers -> dataLength]; - - while (data < dataEnd) - { - crc = (crc >> 8) ^ crcTable [(crc & 0xFF) ^ *data++]; - } - - ++ buffers; - } - - return ENET_HOST_TO_NET_32 (~ crc); -} - -/** @} */ diff --git a/btgui/enet/peer.c b/btgui/enet/peer.c deleted file mode 100644 index a86d793d8..000000000 --- a/btgui/enet/peer.c +++ /dev/null @@ -1,959 +0,0 @@ -/** - @file peer.c - @brief ENet peer management functions -*/ -#include -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -/** @defgroup peer ENet peer functions - @{ -*/ - -/** Configures throttle parameter for a peer. - - Unreliable packets are dropped by ENet in response to the varying conditions - of the Internet connection to the peer. The throttle represents a probability - that an unreliable packet should not be dropped and thus sent by ENet to the peer. - The lowest mean round trip time from the sending of a reliable packet to the - receipt of its acknowledgement is measured over an amount of time specified by - the interval parameter in milliseconds. If a measured round trip time happens to - be significantly less than the mean round trip time measured over the interval, - then the throttle probability is increased to allow more traffic by an amount - specified in the acceleration parameter, which is a ratio to the ENET_PEER_PACKET_THROTTLE_SCALE - constant. If a measured round trip time happens to be significantly greater than - the mean round trip time measured over the interval, then the throttle probability - is decreased to limit traffic by an amount specified in the deceleration parameter, which - is a ratio to the ENET_PEER_PACKET_THROTTLE_SCALE constant. When the throttle has - a value of ENET_PEER_PACKET_THROTTLE_SCALE, no unreliable packets are dropped by - ENet, and so 100% of all unreliable packets will be sent. When the throttle has a - value of 0, all unreliable packets are dropped by ENet, and so 0% of all unreliable - packets will be sent. Intermediate values for the throttle represent intermediate - probabilities between 0% and 100% of unreliable packets being sent. The bandwidth - limits of the local and foreign hosts are taken into account to determine a - sensible limit for the throttle probability above which it should not raise even in - the best of conditions. - - @param peer peer to configure - @param interval interval, in milliseconds, over which to measure lowest mean RTT; the default value is ENET_PEER_PACKET_THROTTLE_INTERVAL. - @param acceleration rate at which to increase the throttle probability as mean RTT declines - @param deceleration rate at which to decrease the throttle probability as mean RTT increases -*/ -void -enet_peer_throttle_configure (ENetPeer * peer, enet_uint32 interval, enet_uint32 acceleration, enet_uint32 deceleration) -{ - ENetProtocol command; - - peer -> packetThrottleInterval = interval; - peer -> packetThrottleAcceleration = acceleration; - peer -> packetThrottleDeceleration = deceleration; - - command.header.command = ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - command.header.channelID = 0xFF; - - command.throttleConfigure.packetThrottleInterval = ENET_HOST_TO_NET_32 (interval); - command.throttleConfigure.packetThrottleAcceleration = ENET_HOST_TO_NET_32 (acceleration); - command.throttleConfigure.packetThrottleDeceleration = ENET_HOST_TO_NET_32 (deceleration); - - enet_peer_queue_outgoing_command (peer, & command, NULL, 0, 0); -} - -int -enet_peer_throttle (ENetPeer * peer, enet_uint32 rtt) -{ - if (peer -> lastRoundTripTime <= peer -> lastRoundTripTimeVariance) - { - peer -> packetThrottle = peer -> packetThrottleLimit; - } - else - if (rtt < peer -> lastRoundTripTime) - { - peer -> packetThrottle += peer -> packetThrottleAcceleration; - - if (peer -> packetThrottle > peer -> packetThrottleLimit) - peer -> packetThrottle = peer -> packetThrottleLimit; - - return 1; - } - else - if (rtt > peer -> lastRoundTripTime + 2 * peer -> lastRoundTripTimeVariance) - { - if (peer -> packetThrottle > peer -> packetThrottleDeceleration) - peer -> packetThrottle -= peer -> packetThrottleDeceleration; - else - peer -> packetThrottle = 0; - - return -1; - } - - return 0; -} - -/** Queues a packet to be sent. - @param peer destination for the packet - @param channelID channel on which to send - @param packet packet to send - @retval 0 on success - @retval < 0 on failure -*/ -int -enet_peer_send (ENetPeer * peer, enet_uint8 channelID, ENetPacket * packet) -{ - ENetChannel * channel = & peer -> channels [channelID]; - ENetProtocol command; - size_t fragmentLength; - - if (peer -> state != ENET_PEER_STATE_CONNECTED || - channelID >= peer -> channelCount || - packet -> dataLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE) - return -1; - - fragmentLength = peer -> mtu - sizeof (ENetProtocolHeader) - sizeof (ENetProtocolSendFragment); - if (peer -> host -> checksum != NULL) - fragmentLength -= sizeof(enet_uint32); - - if (packet -> dataLength > fragmentLength) - { - enet_uint32 fragmentCount = (packet -> dataLength + fragmentLength - 1) / fragmentLength, - fragmentNumber, - fragmentOffset; - enet_uint8 commandNumber; - enet_uint16 startSequenceNumber; - ENetList fragments; - ENetOutgoingCommand * fragment; - - if (fragmentCount > ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT) - return -1; - - if ((packet -> flags & (ENET_PACKET_FLAG_RELIABLE | ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT)) == ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT && - channel -> outgoingUnreliableSequenceNumber < 0xFFFF) - { - commandNumber = ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT; - startSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingUnreliableSequenceNumber + 1); - } - else - { - commandNumber = ENET_PROTOCOL_COMMAND_SEND_FRAGMENT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - startSequenceNumber = ENET_HOST_TO_NET_16 (channel -> outgoingReliableSequenceNumber + 1); - } - - enet_list_clear (& fragments); - - for (fragmentNumber = 0, - fragmentOffset = 0; - fragmentOffset < packet -> dataLength; - ++ fragmentNumber, - fragmentOffset += fragmentLength) - { - if (packet -> dataLength - fragmentOffset < fragmentLength) - fragmentLength = packet -> dataLength - fragmentOffset; - - fragment = (ENetOutgoingCommand *) enet_malloc (sizeof (ENetOutgoingCommand)); - if (fragment == NULL) - { - while (! enet_list_empty (& fragments)) - { - fragment = (ENetOutgoingCommand *) enet_list_remove (enet_list_begin (& fragments)); - - enet_free (fragment); - } - - return -1; - } - - fragment -> fragmentOffset = fragmentOffset; - fragment -> fragmentLength = fragmentLength; - fragment -> packet = packet; - fragment -> command.header.command = commandNumber; - fragment -> command.header.channelID = channelID; - fragment -> command.sendFragment.startSequenceNumber = startSequenceNumber; - fragment -> command.sendFragment.dataLength = ENET_HOST_TO_NET_16 (fragmentLength); - fragment -> command.sendFragment.fragmentCount = ENET_HOST_TO_NET_32 (fragmentCount); - fragment -> command.sendFragment.fragmentNumber = ENET_HOST_TO_NET_32 (fragmentNumber); - fragment -> command.sendFragment.totalLength = ENET_HOST_TO_NET_32 (packet -> dataLength); - fragment -> command.sendFragment.fragmentOffset = ENET_NET_TO_HOST_32 (fragmentOffset); - - enet_list_insert (enet_list_end (& fragments), fragment); - } - - packet -> referenceCount += fragmentNumber; - - while (! enet_list_empty (& fragments)) - { - fragment = (ENetOutgoingCommand *) enet_list_remove (enet_list_begin (& fragments)); - - enet_peer_setup_outgoing_command (peer, fragment); - } - - return 0; - } - - command.header.channelID = channelID; - - if ((packet -> flags & (ENET_PACKET_FLAG_RELIABLE | ENET_PACKET_FLAG_UNSEQUENCED)) == ENET_PACKET_FLAG_UNSEQUENCED) - { - command.header.command = ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED | ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED; - command.sendUnsequenced.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); - } - else - if (packet -> flags & ENET_PACKET_FLAG_RELIABLE || channel -> outgoingUnreliableSequenceNumber >= 0xFFFF) - { - command.header.command = ENET_PROTOCOL_COMMAND_SEND_RELIABLE | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - command.sendReliable.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); - } - else - { - command.header.command = ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE; - command.sendUnreliable.dataLength = ENET_HOST_TO_NET_16 (packet -> dataLength); - } - - if (enet_peer_queue_outgoing_command (peer, & command, packet, 0, packet -> dataLength) == NULL) - return -1; - - return 0; -} - -/** Attempts to dequeue any incoming queued packet. - @param peer peer to dequeue packets from - @param channelID holds the channel ID of the channel the packet was received on success - @returns a pointer to the packet, or NULL if there are no available incoming queued packets -*/ -ENetPacket * -enet_peer_receive (ENetPeer * peer, enet_uint8 * channelID) -{ - ENetIncomingCommand * incomingCommand; - ENetPacket * packet; - - if (enet_list_empty (& peer -> dispatchedCommands)) - return NULL; - - incomingCommand = (ENetIncomingCommand *) enet_list_remove (enet_list_begin (& peer -> dispatchedCommands)); - - if (channelID != NULL) - * channelID = incomingCommand -> command.header.channelID; - - packet = incomingCommand -> packet; - - -- packet -> referenceCount; - - if (incomingCommand -> fragments != NULL) - enet_free (incomingCommand -> fragments); - - enet_free (incomingCommand); - - return packet; -} - -static void -enet_peer_reset_outgoing_commands (ENetList * queue) -{ - ENetOutgoingCommand * outgoingCommand; - - while (! enet_list_empty (queue)) - { - outgoingCommand = (ENetOutgoingCommand *) enet_list_remove (enet_list_begin (queue)); - - if (outgoingCommand -> packet != NULL) - { - -- outgoingCommand -> packet -> referenceCount; - - if (outgoingCommand -> packet -> referenceCount == 0) - enet_packet_destroy (outgoingCommand -> packet); - } - - enet_free (outgoingCommand); - } -} - -static void -enet_peer_remove_incoming_commands (ENetList * queue, ENetListIterator startCommand, ENetListIterator endCommand) -{ - ENetListIterator currentCommand; - - for (currentCommand = startCommand; currentCommand != endCommand; ) - { - ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; - - currentCommand = enet_list_next (currentCommand); - - enet_list_remove (& incomingCommand -> incomingCommandList); - - if (incomingCommand -> packet != NULL) - { - -- incomingCommand -> packet -> referenceCount; - - if (incomingCommand -> packet -> referenceCount == 0) - enet_packet_destroy (incomingCommand -> packet); - } - - if (incomingCommand -> fragments != NULL) - enet_free (incomingCommand -> fragments); - - enet_free (incomingCommand); - } -} - -static void -enet_peer_reset_incoming_commands (ENetList * queue) -{ - enet_peer_remove_incoming_commands(queue, enet_list_begin (queue), enet_list_end (queue)); -} - -void -enet_peer_reset_queues (ENetPeer * peer) -{ - ENetChannel * channel; - - if (peer -> needsDispatch) - { - enet_list_remove (& peer -> dispatchList); - - peer -> needsDispatch = 0; - } - - while (! enet_list_empty (& peer -> acknowledgements)) - enet_free (enet_list_remove (enet_list_begin (& peer -> acknowledgements))); - - enet_peer_reset_outgoing_commands (& peer -> sentReliableCommands); - enet_peer_reset_outgoing_commands (& peer -> sentUnreliableCommands); - enet_peer_reset_outgoing_commands (& peer -> outgoingReliableCommands); - enet_peer_reset_outgoing_commands (& peer -> outgoingUnreliableCommands); - enet_peer_reset_incoming_commands (& peer -> dispatchedCommands); - - if (peer -> channels != NULL && peer -> channelCount > 0) - { - for (channel = peer -> channels; - channel < & peer -> channels [peer -> channelCount]; - ++ channel) - { - enet_peer_reset_incoming_commands (& channel -> incomingReliableCommands); - enet_peer_reset_incoming_commands (& channel -> incomingUnreliableCommands); - } - - enet_free (peer -> channels); - } - - peer -> channels = NULL; - peer -> channelCount = 0; -} - -/** Forcefully disconnects a peer. - @param peer peer to forcefully disconnect - @remarks The foreign host represented by the peer is not notified of the disconnection and will timeout - on its connection to the local host. -*/ -void -enet_peer_reset (ENetPeer * peer) -{ - peer -> outgoingPeerID = ENET_PROTOCOL_MAXIMUM_PEER_ID; - peer -> connectID = 0; - - peer -> state = ENET_PEER_STATE_DISCONNECTED; - - peer -> incomingBandwidth = 0; - peer -> outgoingBandwidth = 0; - peer -> incomingBandwidthThrottleEpoch = 0; - peer -> outgoingBandwidthThrottleEpoch = 0; - peer -> incomingDataTotal = 0; - peer -> outgoingDataTotal = 0; - peer -> lastSendTime = 0; - peer -> lastReceiveTime = 0; - peer -> nextTimeout = 0; - peer -> earliestTimeout = 0; - peer -> packetLossEpoch = 0; - peer -> packetsSent = 0; - peer -> packetsLost = 0; - peer -> packetLoss = 0; - peer -> packetLossVariance = 0; - peer -> packetThrottle = ENET_PEER_DEFAULT_PACKET_THROTTLE; - peer -> packetThrottleLimit = ENET_PEER_PACKET_THROTTLE_SCALE; - peer -> packetThrottleCounter = 0; - peer -> packetThrottleEpoch = 0; - peer -> packetThrottleAcceleration = ENET_PEER_PACKET_THROTTLE_ACCELERATION; - peer -> packetThrottleDeceleration = ENET_PEER_PACKET_THROTTLE_DECELERATION; - peer -> packetThrottleInterval = ENET_PEER_PACKET_THROTTLE_INTERVAL; - peer -> pingInterval = ENET_PEER_PING_INTERVAL; - peer -> timeoutLimit = ENET_PEER_TIMEOUT_LIMIT; - peer -> timeoutMinimum = ENET_PEER_TIMEOUT_MINIMUM; - peer -> timeoutMaximum = ENET_PEER_TIMEOUT_MAXIMUM; - peer -> lastRoundTripTime = ENET_PEER_DEFAULT_ROUND_TRIP_TIME; - peer -> lowestRoundTripTime = ENET_PEER_DEFAULT_ROUND_TRIP_TIME; - peer -> lastRoundTripTimeVariance = 0; - peer -> highestRoundTripTimeVariance = 0; - peer -> roundTripTime = ENET_PEER_DEFAULT_ROUND_TRIP_TIME; - peer -> roundTripTimeVariance = 0; - peer -> mtu = peer -> host -> mtu; - peer -> reliableDataInTransit = 0; - peer -> outgoingReliableSequenceNumber = 0; - peer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - peer -> incomingUnsequencedGroup = 0; - peer -> outgoingUnsequencedGroup = 0; - peer -> eventData = 0; - - memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow)); - - enet_peer_reset_queues (peer); -} - -/** Sends a ping request to a peer. - @param peer destination for the ping request - @remarks ping requests factor into the mean round trip time as designated by the - roundTripTime field in the ENetPeer structure. Enet automatically pings all connected - peers at regular intervals, however, this function may be called to ensure more - frequent ping requests. -*/ -void -enet_peer_ping (ENetPeer * peer) -{ - ENetProtocol command; - - if (peer -> state != ENET_PEER_STATE_CONNECTED) - return; - - command.header.command = ENET_PROTOCOL_COMMAND_PING | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - command.header.channelID = 0xFF; - - enet_peer_queue_outgoing_command (peer, & command, NULL, 0, 0); -} - -/** Sets the interval at which pings will be sent to a peer. - - Pings are used both to monitor the liveness of the connection and also to dynamically - adjust the throttle during periods of low traffic so that the throttle has reasonable - responsiveness during traffic spikes. - - @param peer the peer to adjust - @param pingInterval the interval at which to send pings; defaults to ENET_PEER_PING_INTERVAL if 0 -*/ -void -enet_peer_ping_interval (ENetPeer * peer, enet_uint32 pingInterval) -{ - peer -> pingInterval = pingInterval ? pingInterval : ENET_PEER_PING_INTERVAL; -} - -/** Sets the timeout parameters for a peer. - - The timeout parameter control how and when a peer will timeout from a failure to acknowledge - reliable traffic. Timeout values use an exponential backoff mechanism, where if a reliable - packet is not acknowledge within some multiple of the average RTT plus a variance tolerance, - the timeout will be doubled until it reaches a set limit. If the timeout is thus at this - limit and reliable packets have been sent but not acknowledged within a certain minimum time - period, the peer will be disconnected. Alternatively, if reliable packets have been sent - but not acknowledged for a certain maximum time period, the peer will be disconnected regardless - of the current timeout limit value. - - @param peer the peer to adjust - @param timeoutLimit the timeout limit; defaults to ENET_PEER_TIMEOUT_LIMIT if 0 - @param timeoutMinimum the timeout minimum; defaults to ENET_PEER_TIMEOUT_MINIMUM if 0 - @param timeoutMaximum the timeout maximum; defaults to ENET_PEER_TIMEOUT_MAXIMUM if 0 -*/ - -void -enet_peer_timeout (ENetPeer * peer, enet_uint32 timeoutLimit, enet_uint32 timeoutMinimum, enet_uint32 timeoutMaximum) -{ - peer -> timeoutLimit = timeoutLimit ? timeoutLimit : ENET_PEER_TIMEOUT_LIMIT; - peer -> timeoutMinimum = timeoutMinimum ? timeoutMinimum : ENET_PEER_TIMEOUT_MINIMUM; - peer -> timeoutMaximum = timeoutMaximum ? timeoutMaximum : ENET_PEER_TIMEOUT_MAXIMUM; -} - -/** Force an immediate disconnection from a peer. - @param peer peer to disconnect - @param data data describing the disconnection - @remarks No ENET_EVENT_DISCONNECT event will be generated. The foreign peer is not - guarenteed to receive the disconnect notification, and is reset immediately upon - return from this function. -*/ -void -enet_peer_disconnect_now (ENetPeer * peer, enet_uint32 data) -{ - ENetProtocol command; - - if (peer -> state == ENET_PEER_STATE_DISCONNECTED) - return; - - if (peer -> state != ENET_PEER_STATE_ZOMBIE && - peer -> state != ENET_PEER_STATE_DISCONNECTING) - { - enet_peer_reset_queues (peer); - - command.header.command = ENET_PROTOCOL_COMMAND_DISCONNECT | ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED; - command.header.channelID = 0xFF; - command.disconnect.data = ENET_HOST_TO_NET_32 (data); - - enet_peer_queue_outgoing_command (peer, & command, NULL, 0, 0); - - enet_host_flush (peer -> host); - } - - enet_peer_reset (peer); -} - -/** Request a disconnection from a peer. - @param peer peer to request a disconnection - @param data data describing the disconnection - @remarks An ENET_EVENT_DISCONNECT event will be generated by enet_host_service() - once the disconnection is complete. -*/ -void -enet_peer_disconnect (ENetPeer * peer, enet_uint32 data) -{ - ENetProtocol command; - - if (peer -> state == ENET_PEER_STATE_DISCONNECTING || - peer -> state == ENET_PEER_STATE_DISCONNECTED || - peer -> state == ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT || - peer -> state == ENET_PEER_STATE_ZOMBIE) - return; - - enet_peer_reset_queues (peer); - - command.header.command = ENET_PROTOCOL_COMMAND_DISCONNECT; - command.header.channelID = 0xFF; - command.disconnect.data = ENET_HOST_TO_NET_32 (data); - - if (peer -> state == ENET_PEER_STATE_CONNECTED || peer -> state == ENET_PEER_STATE_DISCONNECT_LATER) - command.header.command |= ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - else - command.header.command |= ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED; - - enet_peer_queue_outgoing_command (peer, & command, NULL, 0, 0); - - if (peer -> state == ENET_PEER_STATE_CONNECTED || peer -> state == ENET_PEER_STATE_DISCONNECT_LATER) - peer -> state = ENET_PEER_STATE_DISCONNECTING; - else - { - enet_host_flush (peer -> host); - enet_peer_reset (peer); - } -} - -/** Request a disconnection from a peer, but only after all queued outgoing packets are sent. - @param peer peer to request a disconnection - @param data data describing the disconnection - @remarks An ENET_EVENT_DISCONNECT event will be generated by enet_host_service() - once the disconnection is complete. -*/ -void -enet_peer_disconnect_later (ENetPeer * peer, enet_uint32 data) -{ - if ((peer -> state == ENET_PEER_STATE_CONNECTED || peer -> state == ENET_PEER_STATE_DISCONNECT_LATER) && - ! (enet_list_empty (& peer -> outgoingReliableCommands) && - enet_list_empty (& peer -> outgoingUnreliableCommands) && - enet_list_empty (& peer -> sentReliableCommands))) - { - peer -> state = ENET_PEER_STATE_DISCONNECT_LATER; - peer -> eventData = data; - } - else - enet_peer_disconnect (peer, data); -} - -ENetAcknowledgement * -enet_peer_queue_acknowledgement (ENetPeer * peer, const ENetProtocol * command, enet_uint16 sentTime) -{ - ENetAcknowledgement * acknowledgement; - - if (command -> header.channelID < peer -> channelCount) - { - ENetChannel * channel = & peer -> channels [command -> header.channelID]; - enet_uint16 reliableWindow = command -> header.reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE, - currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - - if (command -> header.reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - - if (reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1 && reliableWindow <= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS) - return NULL; - } - - acknowledgement = (ENetAcknowledgement *) enet_malloc (sizeof (ENetAcknowledgement)); - if (acknowledgement == NULL) - return NULL; - - peer -> outgoingDataTotal += sizeof (ENetProtocolAcknowledge); - - acknowledgement -> sentTime = sentTime; - acknowledgement -> command = * command; - - enet_list_insert (enet_list_end (& peer -> acknowledgements), acknowledgement); - - return acknowledgement; -} - -void -enet_peer_setup_outgoing_command (ENetPeer * peer, ENetOutgoingCommand * outgoingCommand) -{ - ENetChannel * channel = & peer -> channels [outgoingCommand -> command.header.channelID]; - - peer -> outgoingDataTotal += enet_protocol_command_size (outgoingCommand -> command.header.command) + outgoingCommand -> fragmentLength; - - if (outgoingCommand -> command.header.channelID == 0xFF) - { - ++ peer -> outgoingReliableSequenceNumber; - - outgoingCommand -> reliableSequenceNumber = peer -> outgoingReliableSequenceNumber; - outgoingCommand -> unreliableSequenceNumber = 0; - } - else - if (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE) - { - ++ channel -> outgoingReliableSequenceNumber; - channel -> outgoingUnreliableSequenceNumber = 0; - - outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber; - outgoingCommand -> unreliableSequenceNumber = 0; - } - else - if (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED) - { - ++ peer -> outgoingUnsequencedGroup; - - outgoingCommand -> reliableSequenceNumber = 0; - outgoingCommand -> unreliableSequenceNumber = 0; - } - else - { - if (outgoingCommand -> fragmentOffset == 0) - ++ channel -> outgoingUnreliableSequenceNumber; - - outgoingCommand -> reliableSequenceNumber = channel -> outgoingReliableSequenceNumber; - outgoingCommand -> unreliableSequenceNumber = channel -> outgoingUnreliableSequenceNumber; - } - - outgoingCommand -> sendAttempts = 0; - outgoingCommand -> sentTime = 0; - outgoingCommand -> roundTripTimeout = 0; - outgoingCommand -> roundTripTimeoutLimit = 0; - outgoingCommand -> command.header.reliableSequenceNumber = ENET_HOST_TO_NET_16 (outgoingCommand -> reliableSequenceNumber); - - switch (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) - { - case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE: - outgoingCommand -> command.sendUnreliable.unreliableSequenceNumber = ENET_HOST_TO_NET_16 (outgoingCommand -> unreliableSequenceNumber); - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED: - outgoingCommand -> command.sendUnsequenced.unsequencedGroup = ENET_HOST_TO_NET_16 (peer -> outgoingUnsequencedGroup); - break; - - default: - break; - } - - if (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE) - enet_list_insert (enet_list_end (& peer -> outgoingReliableCommands), outgoingCommand); - else - enet_list_insert (enet_list_end (& peer -> outgoingUnreliableCommands), outgoingCommand); -} - -ENetOutgoingCommand * -enet_peer_queue_outgoing_command (ENetPeer * peer, const ENetProtocol * command, ENetPacket * packet, enet_uint32 offset, enet_uint16 length) -{ - ENetOutgoingCommand * outgoingCommand = (ENetOutgoingCommand *) enet_malloc (sizeof (ENetOutgoingCommand)); - if (outgoingCommand == NULL) - return NULL; - - outgoingCommand -> command = * command; - outgoingCommand -> fragmentOffset = offset; - outgoingCommand -> fragmentLength = length; - outgoingCommand -> packet = packet; - if (packet != NULL) - ++ packet -> referenceCount; - - enet_peer_setup_outgoing_command (peer, outgoingCommand); - - return outgoingCommand; -} - -void -enet_peer_dispatch_incoming_unreliable_commands (ENetPeer * peer, ENetChannel * channel) -{ - ENetListIterator droppedCommand, startCommand, currentCommand; - - for (droppedCommand = startCommand = currentCommand = enet_list_begin (& channel -> incomingUnreliableCommands); - currentCommand != enet_list_end (& channel -> incomingUnreliableCommands); - currentCommand = enet_list_next (currentCommand)) - { - ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; - - if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED) - continue; - - if (incomingCommand -> reliableSequenceNumber == channel -> incomingReliableSequenceNumber) - { - if (incomingCommand -> fragmentsRemaining <= 0) - { - channel -> incomingUnreliableSequenceNumber = incomingCommand -> unreliableSequenceNumber; - continue; - } - - if (startCommand != currentCommand) - { - enet_list_move (enet_list_end (& peer -> dispatchedCommands), startCommand, enet_list_previous (currentCommand)); - - if (! peer -> needsDispatch) - { - enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); - - peer -> needsDispatch = 1; - } - - droppedCommand = currentCommand; - } - else - if (droppedCommand != currentCommand) - droppedCommand = enet_list_previous (currentCommand); - } - else - { - enet_uint16 reliableWindow = incomingCommand -> reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE, - currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - if (reliableWindow >= currentWindow && reliableWindow < currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) - break; - - droppedCommand = enet_list_next (currentCommand); - - if (startCommand != currentCommand) - { - enet_list_move (enet_list_end (& peer -> dispatchedCommands), startCommand, enet_list_previous (currentCommand)); - - if (! peer -> needsDispatch) - { - enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); - - peer -> needsDispatch = 1; - } - } - } - - startCommand = enet_list_next (currentCommand); - } - - if (startCommand != currentCommand) - { - enet_list_move (enet_list_end (& peer -> dispatchedCommands), startCommand, enet_list_previous (currentCommand)); - - if (! peer -> needsDispatch) - { - enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); - - peer -> needsDispatch = 1; - } - - droppedCommand = currentCommand; - } - - enet_peer_remove_incoming_commands (& channel -> incomingUnreliableCommands, enet_list_begin (& channel -> incomingUnreliableCommands), droppedCommand); -} - -void -enet_peer_dispatch_incoming_reliable_commands (ENetPeer * peer, ENetChannel * channel) -{ - ENetListIterator currentCommand; - - for (currentCommand = enet_list_begin (& channel -> incomingReliableCommands); - currentCommand != enet_list_end (& channel -> incomingReliableCommands); - currentCommand = enet_list_next (currentCommand)) - { - ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; - - if (incomingCommand -> fragmentsRemaining > 0 || - incomingCommand -> reliableSequenceNumber != (enet_uint16) (channel -> incomingReliableSequenceNumber + 1)) - break; - - channel -> incomingReliableSequenceNumber = incomingCommand -> reliableSequenceNumber; - - if (incomingCommand -> fragmentCount > 0) - channel -> incomingReliableSequenceNumber += incomingCommand -> fragmentCount - 1; - } - - if (currentCommand == enet_list_begin (& channel -> incomingReliableCommands)) - return; - - channel -> incomingUnreliableSequenceNumber = 0; - - enet_list_move (enet_list_end (& peer -> dispatchedCommands), enet_list_begin (& channel -> incomingReliableCommands), enet_list_previous (currentCommand)); - - if (! peer -> needsDispatch) - { - enet_list_insert (enet_list_end (& peer -> host -> dispatchQueue), & peer -> dispatchList); - - peer -> needsDispatch = 1; - } - - if (! enet_list_empty (& channel -> incomingUnreliableCommands)) - enet_peer_dispatch_incoming_unreliable_commands (peer, channel); -} - -ENetIncomingCommand * -enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command, ENetPacket * packet, enet_uint32 fragmentCount) -{ - static ENetIncomingCommand dummyCommand; - - ENetChannel * channel = & peer -> channels [command -> header.channelID]; - enet_uint32 unreliableSequenceNumber = 0, reliableSequenceNumber = 0; - enet_uint16 reliableWindow, currentWindow; - ENetIncomingCommand * incomingCommand; - ENetListIterator currentCommand; - - if (peer -> state == ENET_PEER_STATE_DISCONNECT_LATER) - goto freePacket; - - if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) != ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED) - { - reliableSequenceNumber = command -> header.reliableSequenceNumber; - reliableWindow = reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - - if (reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - - if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) - goto freePacket; - } - - switch (command -> header.command & ENET_PROTOCOL_COMMAND_MASK) - { - case ENET_PROTOCOL_COMMAND_SEND_FRAGMENT: - case ENET_PROTOCOL_COMMAND_SEND_RELIABLE: - if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber) - goto freePacket; - - for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingReliableCommands)); - currentCommand != enet_list_end (& channel -> incomingReliableCommands); - currentCommand = enet_list_previous (currentCommand)) - { - incomingCommand = (ENetIncomingCommand *) currentCommand; - - if (reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - continue; - } - else - if (incomingCommand -> reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber <= reliableSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < reliableSequenceNumber) - break; - - goto freePacket; - } - } - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE: - case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT: - unreliableSequenceNumber = ENET_NET_TO_HOST_16 (command -> sendUnreliable.unreliableSequenceNumber); - - if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber && - unreliableSequenceNumber <= channel -> incomingUnreliableSequenceNumber) - goto freePacket; - - for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingUnreliableCommands)); - currentCommand != enet_list_end (& channel -> incomingUnreliableCommands); - currentCommand = enet_list_previous (currentCommand)) - { - incomingCommand = (ENetIncomingCommand *) currentCommand; - - if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED) - continue; - - if (reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - continue; - } - else - if (incomingCommand -> reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber < reliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber > reliableSequenceNumber) - continue; - - if (incomingCommand -> unreliableSequenceNumber <= unreliableSequenceNumber) - { - if (incomingCommand -> unreliableSequenceNumber < unreliableSequenceNumber) - break; - - goto freePacket; - } - } - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED: - currentCommand = enet_list_end (& channel -> incomingUnreliableCommands); - break; - - default: - goto freePacket; - } - - incomingCommand = (ENetIncomingCommand *) enet_malloc (sizeof (ENetIncomingCommand)); - if (incomingCommand == NULL) - goto notifyError; - - incomingCommand -> reliableSequenceNumber = command -> header.reliableSequenceNumber; - incomingCommand -> unreliableSequenceNumber = unreliableSequenceNumber & 0xFFFF; - incomingCommand -> command = * command; - incomingCommand -> fragmentCount = fragmentCount; - incomingCommand -> fragmentsRemaining = fragmentCount; - incomingCommand -> packet = packet; - incomingCommand -> fragments = NULL; - - if (fragmentCount > 0) - { - if (fragmentCount <= ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT) - incomingCommand -> fragments = (enet_uint32 *) enet_malloc ((fragmentCount + 31) / 32 * sizeof (enet_uint32)); - if (incomingCommand -> fragments == NULL) - { - enet_free (incomingCommand); - - goto notifyError; - } - memset (incomingCommand -> fragments, 0, (fragmentCount + 31) / 32 * sizeof (enet_uint32)); - } - - if (packet != NULL) - ++ packet -> referenceCount; - - enet_list_insert (enet_list_next (currentCommand), incomingCommand); - - switch (command -> header.command & ENET_PROTOCOL_COMMAND_MASK) - { - case ENET_PROTOCOL_COMMAND_SEND_FRAGMENT: - case ENET_PROTOCOL_COMMAND_SEND_RELIABLE: - enet_peer_dispatch_incoming_reliable_commands (peer, channel); - break; - - default: - enet_peer_dispatch_incoming_unreliable_commands (peer, channel); - break; - } - - return incomingCommand; - -freePacket: - if (fragmentCount > 0) - goto notifyError; - - if (packet != NULL && packet -> referenceCount == 0) - enet_packet_destroy (packet); - - return & dummyCommand; - -notifyError: - if (packet != NULL && packet -> referenceCount == 0) - enet_packet_destroy (packet); - - return NULL; -} - -/** @} */ diff --git a/btgui/enet/premake4.lua b/btgui/enet/premake4.lua deleted file mode 100644 index f5aefe3d5..000000000 --- a/btgui/enet/premake4.lua +++ /dev/null @@ -1,31 +0,0 @@ - project "enet" - - kind "StaticLib" - - if os.is("Windows") then - defines { "WIN32" } - files{"win32.c"} - end - if os.is("Linux") then - defines {"HAS_SOCKLEN_T"} - files {"unix.c",} - end - if os.is("MacOSX") then - files{"unix.c"} - end - - targetdir "../../lib" - - includedirs { - ".","include" - } - files { - "callbacks.c", - "compress.c", - "host.c", - "list.c", - "packet.c", - "peer.c", - "protocol.c", - "**.h" - } diff --git a/btgui/enet/protocol.c b/btgui/enet/protocol.c deleted file mode 100644 index d6cc33a49..000000000 --- a/btgui/enet/protocol.c +++ /dev/null @@ -1,1899 +0,0 @@ -/** - @file protocol.c - @brief ENet protocol functions -*/ -#include -#include -#define ENET_BUILDING_LIB 1 -#include "enet/utility.h" -#include "enet/time.h" -#include "enet/enet.h" - -static size_t commandSizes [ENET_PROTOCOL_COMMAND_COUNT] = -{ - 0, - sizeof (ENetProtocolAcknowledge), - sizeof (ENetProtocolConnect), - sizeof (ENetProtocolVerifyConnect), - sizeof (ENetProtocolDisconnect), - sizeof (ENetProtocolPing), - sizeof (ENetProtocolSendReliable), - sizeof (ENetProtocolSendUnreliable), - sizeof (ENetProtocolSendFragment), - sizeof (ENetProtocolSendUnsequenced), - sizeof (ENetProtocolBandwidthLimit), - sizeof (ENetProtocolThrottleConfigure), - sizeof (ENetProtocolSendFragment) -}; - -size_t -enet_protocol_command_size (enet_uint8 commandNumber) -{ - return commandSizes [commandNumber & ENET_PROTOCOL_COMMAND_MASK]; -} - -static int -enet_protocol_dispatch_incoming_commands (ENetHost * host, ENetEvent * event) -{ - while (! enet_list_empty (& host -> dispatchQueue)) - { - ENetPeer * peer = (ENetPeer *) enet_list_remove (enet_list_begin (& host -> dispatchQueue)); - - peer -> needsDispatch = 0; - - switch (peer -> state) - { - case ENET_PEER_STATE_CONNECTION_PENDING: - case ENET_PEER_STATE_CONNECTION_SUCCEEDED: - peer -> state = ENET_PEER_STATE_CONNECTED; - - event -> type = ENET_EVENT_TYPE_CONNECT; - event -> peer = peer; - event -> data = peer -> eventData; - - return 1; - - case ENET_PEER_STATE_ZOMBIE: - host -> recalculateBandwidthLimits = 1; - - event -> type = ENET_EVENT_TYPE_DISCONNECT; - event -> peer = peer; - event -> data = peer -> eventData; - - enet_peer_reset (peer); - - return 1; - - case ENET_PEER_STATE_CONNECTED: - if (enet_list_empty (& peer -> dispatchedCommands)) - continue; - - event -> packet = enet_peer_receive (peer, & event -> channelID); - if (event -> packet == NULL) - continue; - - event -> type = ENET_EVENT_TYPE_RECEIVE; - event -> peer = peer; - - if (! enet_list_empty (& peer -> dispatchedCommands)) - { - peer -> needsDispatch = 1; - - enet_list_insert (enet_list_end (& host -> dispatchQueue), & peer -> dispatchList); - } - - return 1; - - default: - break; - } - } - - return 0; -} - -static void -enet_protocol_dispatch_state (ENetHost * host, ENetPeer * peer, ENetPeerState state) -{ - peer -> state = state; - - if (! peer -> needsDispatch) - { - enet_list_insert (enet_list_end (& host -> dispatchQueue), & peer -> dispatchList); - - peer -> needsDispatch = 1; - } -} - -static void -enet_protocol_notify_connect (ENetHost * host, ENetPeer * peer, ENetEvent * event) -{ - host -> recalculateBandwidthLimits = 1; - - if (event != NULL) - { - peer -> state = ENET_PEER_STATE_CONNECTED; - - event -> type = ENET_EVENT_TYPE_CONNECT; - event -> peer = peer; - event -> data = peer -> eventData; - } - else - enet_protocol_dispatch_state (host, peer, peer -> state == ENET_PEER_STATE_CONNECTING ? ENET_PEER_STATE_CONNECTION_SUCCEEDED : ENET_PEER_STATE_CONNECTION_PENDING); -} - -static void -enet_protocol_notify_disconnect (ENetHost * host, ENetPeer * peer, ENetEvent * event) -{ - if (peer -> state >= ENET_PEER_STATE_CONNECTION_PENDING) - host -> recalculateBandwidthLimits = 1; - - if (peer -> state != ENET_PEER_STATE_CONNECTING && peer -> state < ENET_PEER_STATE_CONNECTION_SUCCEEDED) - enet_peer_reset (peer); - else - if (event != NULL) - { - event -> type = ENET_EVENT_TYPE_DISCONNECT; - event -> peer = peer; - event -> data = 0; - - enet_peer_reset (peer); - } - else - { - peer -> eventData = 0; - - enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); - } -} - -static void -enet_protocol_remove_sent_unreliable_commands (ENetPeer * peer) -{ - ENetOutgoingCommand * outgoingCommand; - - while (! enet_list_empty (& peer -> sentUnreliableCommands)) - { - outgoingCommand = (ENetOutgoingCommand *) enet_list_front (& peer -> sentUnreliableCommands); - - enet_list_remove (& outgoingCommand -> outgoingCommandList); - - if (outgoingCommand -> packet != NULL) - { - -- outgoingCommand -> packet -> referenceCount; - - if (outgoingCommand -> packet -> referenceCount == 0) - { - outgoingCommand -> packet -> flags |= ENET_PACKET_FLAG_SENT; - - enet_packet_destroy (outgoingCommand -> packet); - } - } - - enet_free (outgoingCommand); - } -} - -static ENetProtocolCommand -enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliableSequenceNumber, enet_uint8 channelID) -{ - ENetOutgoingCommand * outgoingCommand = NULL; - ENetListIterator currentCommand; - ENetProtocolCommand commandNumber; - int wasSent = 1; - - for (currentCommand = enet_list_begin (& peer -> sentReliableCommands); - currentCommand != enet_list_end (& peer -> sentReliableCommands); - currentCommand = enet_list_next (currentCommand)) - { - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - - if (outgoingCommand -> reliableSequenceNumber == reliableSequenceNumber && - outgoingCommand -> command.header.channelID == channelID) - break; - } - - if (currentCommand == enet_list_end (& peer -> sentReliableCommands)) - { - for (currentCommand = enet_list_begin (& peer -> outgoingReliableCommands); - currentCommand != enet_list_end (& peer -> outgoingReliableCommands); - currentCommand = enet_list_next (currentCommand)) - { - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - - if (outgoingCommand -> sendAttempts < 1) return ENET_PROTOCOL_COMMAND_NONE; - - if (outgoingCommand -> reliableSequenceNumber == reliableSequenceNumber && - outgoingCommand -> command.header.channelID == channelID) - break; - } - - if (currentCommand == enet_list_end (& peer -> outgoingReliableCommands)) - return ENET_PROTOCOL_COMMAND_NONE; - - wasSent = 0; - } - - if (outgoingCommand == NULL) - return ENET_PROTOCOL_COMMAND_NONE; - - if (channelID < peer -> channelCount) - { - ENetChannel * channel = & peer -> channels [channelID]; - enet_uint16 reliableWindow = reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - if (channel -> reliableWindows [reliableWindow] > 0) - { - -- channel -> reliableWindows [reliableWindow]; - if (! channel -> reliableWindows [reliableWindow]) - channel -> usedReliableWindows &= ~ (1 << reliableWindow); - } - } - - commandNumber = (ENetProtocolCommand) (outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK); - - enet_list_remove (& outgoingCommand -> outgoingCommandList); - - if (outgoingCommand -> packet != NULL) - { - if (wasSent) - peer -> reliableDataInTransit -= outgoingCommand -> fragmentLength; - - -- outgoingCommand -> packet -> referenceCount; - - if (outgoingCommand -> packet -> referenceCount == 0) - { - outgoingCommand -> packet -> flags |= ENET_PACKET_FLAG_SENT; - - enet_packet_destroy (outgoingCommand -> packet); - } - } - - enet_free (outgoingCommand); - - if (enet_list_empty (& peer -> sentReliableCommands)) - return commandNumber; - - outgoingCommand = (ENetOutgoingCommand *) enet_list_front (& peer -> sentReliableCommands); - - peer -> nextTimeout = outgoingCommand -> sentTime + outgoingCommand -> roundTripTimeout; - - return commandNumber; -} - -static ENetPeer * -enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENetProtocol * command) -{ - enet_uint8 incomingSessionID, outgoingSessionID; - enet_uint32 mtu, windowSize; - ENetChannel * channel; - size_t channelCount; - ENetPeer * currentPeer; - ENetProtocol verifyCommand; - - channelCount = ENET_NET_TO_HOST_32 (command -> connect.channelCount); - - if (channelCount < ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT || - channelCount > ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT) - return NULL; - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - if (currentPeer -> state != ENET_PEER_STATE_DISCONNECTED && - currentPeer -> address.host == host -> receivedAddress.host && - currentPeer -> address.port == host -> receivedAddress.port && - currentPeer -> connectID == command -> connect.connectID) - return NULL; - } - - for (currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - if (currentPeer -> state == ENET_PEER_STATE_DISCONNECTED) - break; - } - - if (currentPeer >= & host -> peers [host -> peerCount]) - return NULL; - - if (channelCount > host -> channelLimit) - channelCount = host -> channelLimit; - currentPeer -> channels = (ENetChannel *) enet_malloc (channelCount * sizeof (ENetChannel)); - if (currentPeer -> channels == NULL) - return NULL; - currentPeer -> channelCount = channelCount; - currentPeer -> state = ENET_PEER_STATE_ACKNOWLEDGING_CONNECT; - currentPeer -> connectID = command -> connect.connectID; - currentPeer -> address = host -> receivedAddress; - currentPeer -> outgoingPeerID = ENET_NET_TO_HOST_16 (command -> connect.outgoingPeerID); - currentPeer -> incomingBandwidth = ENET_NET_TO_HOST_32 (command -> connect.incomingBandwidth); - currentPeer -> outgoingBandwidth = ENET_NET_TO_HOST_32 (command -> connect.outgoingBandwidth); - currentPeer -> packetThrottleInterval = ENET_NET_TO_HOST_32 (command -> connect.packetThrottleInterval); - currentPeer -> packetThrottleAcceleration = ENET_NET_TO_HOST_32 (command -> connect.packetThrottleAcceleration); - currentPeer -> packetThrottleDeceleration = ENET_NET_TO_HOST_32 (command -> connect.packetThrottleDeceleration); - currentPeer -> eventData = ENET_NET_TO_HOST_32 (command -> connect.data); - - incomingSessionID = command -> connect.incomingSessionID == 0xFF ? currentPeer -> outgoingSessionID : command -> connect.incomingSessionID; - incomingSessionID = (incomingSessionID + 1) & (ENET_PROTOCOL_HEADER_SESSION_MASK >> ENET_PROTOCOL_HEADER_SESSION_SHIFT); - if (incomingSessionID == currentPeer -> outgoingSessionID) - incomingSessionID = (incomingSessionID + 1) & (ENET_PROTOCOL_HEADER_SESSION_MASK >> ENET_PROTOCOL_HEADER_SESSION_SHIFT); - currentPeer -> outgoingSessionID = incomingSessionID; - - outgoingSessionID = command -> connect.outgoingSessionID == 0xFF ? currentPeer -> incomingSessionID : command -> connect.outgoingSessionID; - outgoingSessionID = (outgoingSessionID + 1) & (ENET_PROTOCOL_HEADER_SESSION_MASK >> ENET_PROTOCOL_HEADER_SESSION_SHIFT); - if (outgoingSessionID == currentPeer -> incomingSessionID) - outgoingSessionID = (outgoingSessionID + 1) & (ENET_PROTOCOL_HEADER_SESSION_MASK >> ENET_PROTOCOL_HEADER_SESSION_SHIFT); - currentPeer -> incomingSessionID = outgoingSessionID; - - for (channel = currentPeer -> channels; - channel < & currentPeer -> channels [channelCount]; - ++ channel) - { - channel -> outgoingReliableSequenceNumber = 0; - channel -> outgoingUnreliableSequenceNumber = 0; - channel -> incomingReliableSequenceNumber = 0; - channel -> incomingUnreliableSequenceNumber = 0; - - enet_list_clear (& channel -> incomingReliableCommands); - enet_list_clear (& channel -> incomingUnreliableCommands); - - channel -> usedReliableWindows = 0; - memset (channel -> reliableWindows, 0, sizeof (channel -> reliableWindows)); - } - - mtu = ENET_NET_TO_HOST_32 (command -> connect.mtu); - - if (mtu < ENET_PROTOCOL_MINIMUM_MTU) - mtu = ENET_PROTOCOL_MINIMUM_MTU; - else - if (mtu > ENET_PROTOCOL_MAXIMUM_MTU) - mtu = ENET_PROTOCOL_MAXIMUM_MTU; - - currentPeer -> mtu = mtu; - - if (host -> outgoingBandwidth == 0 && - currentPeer -> incomingBandwidth == 0) - currentPeer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - else - if (host -> outgoingBandwidth == 0 || - currentPeer -> incomingBandwidth == 0) - currentPeer -> windowSize = (ENET_MAX (host -> outgoingBandwidth, currentPeer -> incomingBandwidth) / - ENET_PEER_WINDOW_SIZE_SCALE) * - ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - else - currentPeer -> windowSize = (ENET_MIN (host -> outgoingBandwidth, currentPeer -> incomingBandwidth) / - ENET_PEER_WINDOW_SIZE_SCALE) * - ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - - if (currentPeer -> windowSize < ENET_PROTOCOL_MINIMUM_WINDOW_SIZE) - currentPeer -> windowSize = ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - else - if (currentPeer -> windowSize > ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE) - currentPeer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - - if (host -> incomingBandwidth == 0) - windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - else - windowSize = (host -> incomingBandwidth / ENET_PEER_WINDOW_SIZE_SCALE) * - ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - - if (windowSize > ENET_NET_TO_HOST_32 (command -> connect.windowSize)) - windowSize = ENET_NET_TO_HOST_32 (command -> connect.windowSize); - - if (windowSize < ENET_PROTOCOL_MINIMUM_WINDOW_SIZE) - windowSize = ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - else - if (windowSize > ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE) - windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - - verifyCommand.header.command = ENET_PROTOCOL_COMMAND_VERIFY_CONNECT | ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE; - verifyCommand.header.channelID = 0xFF; - verifyCommand.verifyConnect.outgoingPeerID = ENET_HOST_TO_NET_16 (currentPeer -> incomingPeerID); - verifyCommand.verifyConnect.incomingSessionID = incomingSessionID; - verifyCommand.verifyConnect.outgoingSessionID = outgoingSessionID; - verifyCommand.verifyConnect.mtu = ENET_HOST_TO_NET_32 (currentPeer -> mtu); - verifyCommand.verifyConnect.windowSize = ENET_HOST_TO_NET_32 (windowSize); - verifyCommand.verifyConnect.channelCount = ENET_HOST_TO_NET_32 (channelCount); - verifyCommand.verifyConnect.incomingBandwidth = ENET_HOST_TO_NET_32 (host -> incomingBandwidth); - verifyCommand.verifyConnect.outgoingBandwidth = ENET_HOST_TO_NET_32 (host -> outgoingBandwidth); - verifyCommand.verifyConnect.packetThrottleInterval = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleInterval); - verifyCommand.verifyConnect.packetThrottleAcceleration = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleAcceleration); - verifyCommand.verifyConnect.packetThrottleDeceleration = ENET_HOST_TO_NET_32 (currentPeer -> packetThrottleDeceleration); - verifyCommand.verifyConnect.connectID = currentPeer -> connectID; - - enet_peer_queue_outgoing_command (currentPeer, & verifyCommand, NULL, 0, 0); - - return currentPeer; -} - -static int -enet_protocol_handle_send_reliable (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) -{ - ENetPacket * packet; - size_t dataLength; - - if (command -> header.channelID >= peer -> channelCount || - (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) - return -1; - - dataLength = ENET_NET_TO_HOST_16 (command -> sendReliable.dataLength); - * currentData += dataLength; - if (dataLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - * currentData < host -> receivedData || - * currentData > & host -> receivedData [host -> receivedDataLength]) - return -1; - - packet = enet_packet_create ((const enet_uint8 *) command + sizeof (ENetProtocolSendReliable), - dataLength, - ENET_PACKET_FLAG_RELIABLE); - if (packet == NULL || - enet_peer_queue_incoming_command (peer, command, packet, 0) == NULL) - return -1; - - return 0; -} - -static int -enet_protocol_handle_send_unsequenced (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) -{ - ENetPacket * packet; - enet_uint32 unsequencedGroup, index; - size_t dataLength; - - if (command -> header.channelID >= peer -> channelCount || - (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) - return -1; - - dataLength = ENET_NET_TO_HOST_16 (command -> sendUnsequenced.dataLength); - * currentData += dataLength; - if (dataLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - * currentData < host -> receivedData || - * currentData > & host -> receivedData [host -> receivedDataLength]) - return -1; - - unsequencedGroup = ENET_NET_TO_HOST_16 (command -> sendUnsequenced.unsequencedGroup); - index = unsequencedGroup % ENET_PEER_UNSEQUENCED_WINDOW_SIZE; - - if (unsequencedGroup < peer -> incomingUnsequencedGroup) - unsequencedGroup += 0x10000; - - if (unsequencedGroup >= (enet_uint32) peer -> incomingUnsequencedGroup + ENET_PEER_FREE_UNSEQUENCED_WINDOWS * ENET_PEER_UNSEQUENCED_WINDOW_SIZE) - return 0; - - unsequencedGroup &= 0xFFFF; - - if (unsequencedGroup - index != peer -> incomingUnsequencedGroup) - { - peer -> incomingUnsequencedGroup = unsequencedGroup - index; - - memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow)); - } - else - if (peer -> unsequencedWindow [index / 32] & (1 << (index % 32))) - return 0; - - packet = enet_packet_create ((const enet_uint8 *) command + sizeof (ENetProtocolSendUnsequenced), - dataLength, - ENET_PACKET_FLAG_UNSEQUENCED); - if (packet == NULL || - enet_peer_queue_incoming_command (peer, command, packet, 0) == NULL) - return -1; - - peer -> unsequencedWindow [index / 32] |= 1 << (index % 32); - - return 0; -} - -static int -enet_protocol_handle_send_unreliable (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) -{ - ENetPacket * packet; - size_t dataLength; - - if (command -> header.channelID >= peer -> channelCount || - (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) - return -1; - - dataLength = ENET_NET_TO_HOST_16 (command -> sendUnreliable.dataLength); - * currentData += dataLength; - if (dataLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - * currentData < host -> receivedData || - * currentData > & host -> receivedData [host -> receivedDataLength]) - return -1; - - packet = enet_packet_create ((const enet_uint8 *) command + sizeof (ENetProtocolSendUnreliable), - dataLength, - 0); - if (packet == NULL || - enet_peer_queue_incoming_command (peer, command, packet, 0) == NULL) - return -1; - - return 0; -} - -static int -enet_protocol_handle_send_fragment (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) -{ - enet_uint32 fragmentNumber, - fragmentCount, - fragmentOffset, - fragmentLength, - startSequenceNumber, - totalLength; - ENetChannel * channel; - enet_uint16 startWindow, currentWindow; - ENetListIterator currentCommand; - ENetIncomingCommand * startCommand = NULL; - - if (command -> header.channelID >= peer -> channelCount || - (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) - return -1; - - fragmentLength = ENET_NET_TO_HOST_16 (command -> sendFragment.dataLength); - * currentData += fragmentLength; - if (fragmentLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - * currentData < host -> receivedData || - * currentData > & host -> receivedData [host -> receivedDataLength]) - return -1; - - channel = & peer -> channels [command -> header.channelID]; - startSequenceNumber = ENET_NET_TO_HOST_16 (command -> sendFragment.startSequenceNumber); - startWindow = startSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - - if (startSequenceNumber < channel -> incomingReliableSequenceNumber) - startWindow += ENET_PEER_RELIABLE_WINDOWS; - - if (startWindow < currentWindow || startWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) - return 0; - - fragmentNumber = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentNumber); - fragmentCount = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentCount); - fragmentOffset = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentOffset); - totalLength = ENET_NET_TO_HOST_32 (command -> sendFragment.totalLength); - - if (fragmentCount > ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT || - fragmentNumber >= fragmentCount || - totalLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - fragmentOffset >= totalLength || - fragmentLength > totalLength - fragmentOffset) - return -1; - - for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingReliableCommands)); - currentCommand != enet_list_end (& channel -> incomingReliableCommands); - currentCommand = enet_list_previous (currentCommand)) - { - ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; - - if (startSequenceNumber >= channel -> incomingReliableSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - continue; - } - else - if (incomingCommand -> reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber <= startSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < startSequenceNumber) - break; - - if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) != ENET_PROTOCOL_COMMAND_SEND_FRAGMENT || - totalLength != incomingCommand -> packet -> dataLength || - fragmentCount != incomingCommand -> fragmentCount) - return -1; - - startCommand = incomingCommand; - break; - } - } - - if (startCommand == NULL) - { - ENetProtocol hostCommand = * command; - ENetPacket * packet = enet_packet_create (NULL, totalLength, ENET_PACKET_FLAG_RELIABLE); - if (packet == NULL) - return -1; - - hostCommand.header.reliableSequenceNumber = startSequenceNumber; - - startCommand = enet_peer_queue_incoming_command (peer, & hostCommand, packet, fragmentCount); - if (startCommand == NULL) - return -1; - } - - if ((startCommand -> fragments [fragmentNumber / 32] & (1 << (fragmentNumber % 32))) == 0) - { - -- startCommand -> fragmentsRemaining; - - startCommand -> fragments [fragmentNumber / 32] |= (1 << (fragmentNumber % 32)); - - if (fragmentOffset + fragmentLength > startCommand -> packet -> dataLength) - fragmentLength = startCommand -> packet -> dataLength - fragmentOffset; - - memcpy (startCommand -> packet -> data + fragmentOffset, - (enet_uint8 *) command + sizeof (ENetProtocolSendFragment), - fragmentLength); - - if (startCommand -> fragmentsRemaining <= 0) - enet_peer_dispatch_incoming_reliable_commands (peer, channel); - } - - return 0; -} - -static int -enet_protocol_handle_send_unreliable_fragment (ENetHost * host, ENetPeer * peer, const ENetProtocol * command, enet_uint8 ** currentData) -{ - enet_uint32 fragmentNumber, - fragmentCount, - fragmentOffset, - fragmentLength, - reliableSequenceNumber, - startSequenceNumber, - totalLength; - enet_uint16 reliableWindow, currentWindow; - ENetChannel * channel; - ENetListIterator currentCommand; - ENetIncomingCommand * startCommand = NULL; - - if (command -> header.channelID >= peer -> channelCount || - (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)) - return -1; - - fragmentLength = ENET_NET_TO_HOST_16 (command -> sendFragment.dataLength); - * currentData += fragmentLength; - if (fragmentLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - * currentData < host -> receivedData || - * currentData > & host -> receivedData [host -> receivedDataLength]) - return -1; - - channel = & peer -> channels [command -> header.channelID]; - reliableSequenceNumber = command -> header.reliableSequenceNumber; - startSequenceNumber = ENET_NET_TO_HOST_16 (command -> sendFragment.startSequenceNumber); - - reliableWindow = reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - currentWindow = channel -> incomingReliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - - if (reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - reliableWindow += ENET_PEER_RELIABLE_WINDOWS; - - if (reliableWindow < currentWindow || reliableWindow >= currentWindow + ENET_PEER_FREE_RELIABLE_WINDOWS - 1) - return 0; - - if (reliableSequenceNumber == channel -> incomingReliableSequenceNumber && - startSequenceNumber <= channel -> incomingUnreliableSequenceNumber) - return 0; - - fragmentNumber = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentNumber); - fragmentCount = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentCount); - fragmentOffset = ENET_NET_TO_HOST_32 (command -> sendFragment.fragmentOffset); - totalLength = ENET_NET_TO_HOST_32 (command -> sendFragment.totalLength); - - if (fragmentCount > ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT || - fragmentNumber >= fragmentCount || - totalLength > ENET_PROTOCOL_MAXIMUM_PACKET_SIZE || - fragmentOffset >= totalLength || - fragmentLength > totalLength - fragmentOffset) - return -1; - - for (currentCommand = enet_list_previous (enet_list_end (& channel -> incomingUnreliableCommands)); - currentCommand != enet_list_end (& channel -> incomingUnreliableCommands); - currentCommand = enet_list_previous (currentCommand)) - { - ENetIncomingCommand * incomingCommand = (ENetIncomingCommand *) currentCommand; - - if (reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - { - if (incomingCommand -> reliableSequenceNumber < channel -> incomingReliableSequenceNumber) - continue; - } - else - if (incomingCommand -> reliableSequenceNumber >= channel -> incomingReliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber < reliableSequenceNumber) - break; - - if (incomingCommand -> reliableSequenceNumber > reliableSequenceNumber) - continue; - - if (incomingCommand -> unreliableSequenceNumber <= startSequenceNumber) - { - if (incomingCommand -> unreliableSequenceNumber < startSequenceNumber) - break; - - if ((incomingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) != ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT || - totalLength != incomingCommand -> packet -> dataLength || - fragmentCount != incomingCommand -> fragmentCount) - return -1; - - startCommand = incomingCommand; - break; - } - } - - if (startCommand == NULL) - { - ENetPacket * packet = enet_packet_create (NULL, totalLength, ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT); - if (packet == NULL) - return -1; - - startCommand = enet_peer_queue_incoming_command (peer, command, packet, fragmentCount); - if (startCommand == NULL) - return -1; - } - - if ((startCommand -> fragments [fragmentNumber / 32] & (1 << (fragmentNumber % 32))) == 0) - { - -- startCommand -> fragmentsRemaining; - - startCommand -> fragments [fragmentNumber / 32] |= (1 << (fragmentNumber % 32)); - - if (fragmentOffset + fragmentLength > startCommand -> packet -> dataLength) - fragmentLength = startCommand -> packet -> dataLength - fragmentOffset; - - memcpy (startCommand -> packet -> data + fragmentOffset, - (enet_uint8 *) command + sizeof (ENetProtocolSendFragment), - fragmentLength); - - if (startCommand -> fragmentsRemaining <= 0) - enet_peer_dispatch_incoming_unreliable_commands (peer, channel); - } - - return 0; -} - -static int -enet_protocol_handle_ping (ENetHost * host, ENetPeer * peer, const ENetProtocol * command) -{ - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - return -1; - - return 0; -} - -static int -enet_protocol_handle_bandwidth_limit (ENetHost * host, ENetPeer * peer, const ENetProtocol * command) -{ - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - return -1; - - peer -> incomingBandwidth = ENET_NET_TO_HOST_32 (command -> bandwidthLimit.incomingBandwidth); - peer -> outgoingBandwidth = ENET_NET_TO_HOST_32 (command -> bandwidthLimit.outgoingBandwidth); - - if (peer -> incomingBandwidth == 0 && host -> outgoingBandwidth == 0) - peer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - else - peer -> windowSize = (ENET_MIN (peer -> incomingBandwidth, host -> outgoingBandwidth) / - ENET_PEER_WINDOW_SIZE_SCALE) * ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - - if (peer -> windowSize < ENET_PROTOCOL_MINIMUM_WINDOW_SIZE) - peer -> windowSize = ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - else - if (peer -> windowSize > ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE) - peer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - - return 0; -} - -static int -enet_protocol_handle_throttle_configure (ENetHost * host, ENetPeer * peer, const ENetProtocol * command) -{ - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - return -1; - - peer -> packetThrottleInterval = ENET_NET_TO_HOST_32 (command -> throttleConfigure.packetThrottleInterval); - peer -> packetThrottleAcceleration = ENET_NET_TO_HOST_32 (command -> throttleConfigure.packetThrottleAcceleration); - peer -> packetThrottleDeceleration = ENET_NET_TO_HOST_32 (command -> throttleConfigure.packetThrottleDeceleration); - - return 0; -} - -static int -enet_protocol_handle_disconnect (ENetHost * host, ENetPeer * peer, const ENetProtocol * command) -{ - if (peer -> state == ENET_PEER_STATE_DISCONNECTED || peer -> state == ENET_PEER_STATE_ZOMBIE || peer -> state == ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT) - return 0; - - enet_peer_reset_queues (peer); - - if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED || peer -> state == ENET_PEER_STATE_DISCONNECTING) - enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); - else - if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER) - { - if (peer -> state == ENET_PEER_STATE_CONNECTION_PENDING) host -> recalculateBandwidthLimits = 1; - - enet_peer_reset (peer); - } - else - if (command -> header.command & ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE) - peer -> state = ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT; - else - enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); - - if (peer -> state != ENET_PEER_STATE_DISCONNECTED) - peer -> eventData = ENET_NET_TO_HOST_32 (command -> disconnect.data); - - return 0; -} - -static int -enet_protocol_handle_acknowledge (ENetHost * host, ENetEvent * event, ENetPeer * peer, const ENetProtocol * command) -{ - enet_uint32 roundTripTime, - receivedSentTime, - receivedReliableSequenceNumber; - ENetProtocolCommand commandNumber; - - if (peer -> state == ENET_PEER_STATE_DISCONNECTED || peer -> state == ENET_PEER_STATE_ZOMBIE) - return 0; - - receivedSentTime = ENET_NET_TO_HOST_16 (command -> acknowledge.receivedSentTime); - receivedSentTime |= host -> serviceTime & 0xFFFF0000; - if ((receivedSentTime & 0x8000) > (host -> serviceTime & 0x8000)) - receivedSentTime -= 0x10000; - - if (ENET_TIME_LESS (host -> serviceTime, receivedSentTime)) - return 0; - - peer -> lastReceiveTime = host -> serviceTime; - peer -> earliestTimeout = 0; - - roundTripTime = ENET_TIME_DIFFERENCE (host -> serviceTime, receivedSentTime); - - enet_peer_throttle (peer, roundTripTime); - - peer -> roundTripTimeVariance -= peer -> roundTripTimeVariance / 4; - - if (roundTripTime >= peer -> roundTripTime) - { - peer -> roundTripTime += (roundTripTime - peer -> roundTripTime) / 8; - peer -> roundTripTimeVariance += (roundTripTime - peer -> roundTripTime) / 4; - } - else - { - peer -> roundTripTime -= (peer -> roundTripTime - roundTripTime) / 8; - peer -> roundTripTimeVariance += (peer -> roundTripTime - roundTripTime) / 4; - } - - if (peer -> roundTripTime < peer -> lowestRoundTripTime) - peer -> lowestRoundTripTime = peer -> roundTripTime; - - if (peer -> roundTripTimeVariance > peer -> highestRoundTripTimeVariance) - peer -> highestRoundTripTimeVariance = peer -> roundTripTimeVariance; - - if (peer -> packetThrottleEpoch == 0 || - ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> packetThrottleEpoch) >= peer -> packetThrottleInterval) - { - peer -> lastRoundTripTime = peer -> lowestRoundTripTime; - peer -> lastRoundTripTimeVariance = peer -> highestRoundTripTimeVariance; - peer -> lowestRoundTripTime = peer -> roundTripTime; - peer -> highestRoundTripTimeVariance = peer -> roundTripTimeVariance; - peer -> packetThrottleEpoch = host -> serviceTime; - } - - receivedReliableSequenceNumber = ENET_NET_TO_HOST_16 (command -> acknowledge.receivedReliableSequenceNumber); - - commandNumber = enet_protocol_remove_sent_reliable_command (peer, receivedReliableSequenceNumber, command -> header.channelID); - - switch (peer -> state) - { - case ENET_PEER_STATE_ACKNOWLEDGING_CONNECT: - if (commandNumber != ENET_PROTOCOL_COMMAND_VERIFY_CONNECT) - return -1; - - enet_protocol_notify_connect (host, peer, event); - break; - - case ENET_PEER_STATE_DISCONNECTING: - if (commandNumber != ENET_PROTOCOL_COMMAND_DISCONNECT) - return -1; - - enet_protocol_notify_disconnect (host, peer, event); - break; - - case ENET_PEER_STATE_DISCONNECT_LATER: - if (enet_list_empty (& peer -> outgoingReliableCommands) && - enet_list_empty (& peer -> outgoingUnreliableCommands) && - enet_list_empty (& peer -> sentReliableCommands)) - enet_peer_disconnect (peer, peer -> eventData); - break; - - default: - break; - } - - return 0; -} - -static int -enet_protocol_handle_verify_connect (ENetHost * host, ENetEvent * event, ENetPeer * peer, const ENetProtocol * command) -{ - enet_uint32 mtu, windowSize; - size_t channelCount; - - if (peer -> state != ENET_PEER_STATE_CONNECTING) - return 0; - - channelCount = ENET_NET_TO_HOST_32 (command -> verifyConnect.channelCount); - - if (channelCount < ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT || channelCount > ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT || - ENET_NET_TO_HOST_32 (command -> verifyConnect.packetThrottleInterval) != peer -> packetThrottleInterval || - ENET_NET_TO_HOST_32 (command -> verifyConnect.packetThrottleAcceleration) != peer -> packetThrottleAcceleration || - ENET_NET_TO_HOST_32 (command -> verifyConnect.packetThrottleDeceleration) != peer -> packetThrottleDeceleration || - command -> verifyConnect.connectID != peer -> connectID) - { - peer -> eventData = 0; - - enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); - - return -1; - } - - enet_protocol_remove_sent_reliable_command (peer, 1, 0xFF); - - if (channelCount < peer -> channelCount) - peer -> channelCount = channelCount; - - peer -> outgoingPeerID = ENET_NET_TO_HOST_16 (command -> verifyConnect.outgoingPeerID); - peer -> incomingSessionID = command -> verifyConnect.incomingSessionID; - peer -> outgoingSessionID = command -> verifyConnect.outgoingSessionID; - - mtu = ENET_NET_TO_HOST_32 (command -> verifyConnect.mtu); - - if (mtu < ENET_PROTOCOL_MINIMUM_MTU) - mtu = ENET_PROTOCOL_MINIMUM_MTU; - else - if (mtu > ENET_PROTOCOL_MAXIMUM_MTU) - mtu = ENET_PROTOCOL_MAXIMUM_MTU; - - if (mtu < peer -> mtu) - peer -> mtu = mtu; - - windowSize = ENET_NET_TO_HOST_32 (command -> verifyConnect.windowSize); - - if (windowSize < ENET_PROTOCOL_MINIMUM_WINDOW_SIZE) - windowSize = ENET_PROTOCOL_MINIMUM_WINDOW_SIZE; - - if (windowSize > ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE) - windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; - - if (windowSize < peer -> windowSize) - peer -> windowSize = windowSize; - - peer -> incomingBandwidth = ENET_NET_TO_HOST_32 (command -> verifyConnect.incomingBandwidth); - peer -> outgoingBandwidth = ENET_NET_TO_HOST_32 (command -> verifyConnect.outgoingBandwidth); - - enet_protocol_notify_connect (host, peer, event); - return 0; -} - -static int -enet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event) -{ - ENetProtocolHeader * header; - ENetProtocol * command; - ENetPeer * peer; - enet_uint8 * currentData; - size_t headerSize; - enet_uint16 peerID, flags; - enet_uint8 sessionID; - - if (host -> receivedDataLength < (size_t) & ((ENetProtocolHeader *) 0) -> sentTime) - return 0; - - header = (ENetProtocolHeader *) host -> receivedData; - - peerID = ENET_NET_TO_HOST_16 (header -> peerID); - sessionID = (peerID & ENET_PROTOCOL_HEADER_SESSION_MASK) >> ENET_PROTOCOL_HEADER_SESSION_SHIFT; - flags = peerID & ENET_PROTOCOL_HEADER_FLAG_MASK; - peerID &= ~ (ENET_PROTOCOL_HEADER_FLAG_MASK | ENET_PROTOCOL_HEADER_SESSION_MASK); - - headerSize = (flags & ENET_PROTOCOL_HEADER_FLAG_SENT_TIME ? sizeof (ENetProtocolHeader) : (size_t) & ((ENetProtocolHeader *) 0) -> sentTime); - if (host -> checksum != NULL) - headerSize += sizeof (enet_uint32); - - if (peerID == ENET_PROTOCOL_MAXIMUM_PEER_ID) - peer = NULL; - else - if (peerID >= host -> peerCount) - return 0; - else - { - peer = & host -> peers [peerID]; - - if (peer -> state == ENET_PEER_STATE_DISCONNECTED || - peer -> state == ENET_PEER_STATE_ZOMBIE || - ((host -> receivedAddress.host != peer -> address.host || - host -> receivedAddress.port != peer -> address.port) && - peer -> address.host != ENET_HOST_BROADCAST) || - (peer -> outgoingPeerID < ENET_PROTOCOL_MAXIMUM_PEER_ID && - sessionID != peer -> incomingSessionID)) - return 0; - } - - if (flags & ENET_PROTOCOL_HEADER_FLAG_COMPRESSED) - { - size_t originalSize; - if (host -> compressor.context == NULL || host -> compressor.decompress == NULL) - return 0; - - originalSize = host -> compressor.decompress (host -> compressor.context, - host -> receivedData + headerSize, - host -> receivedDataLength - headerSize, - host -> packetData [1] + headerSize, - sizeof (host -> packetData [1]) - headerSize); - if (originalSize <= 0 || originalSize > sizeof (host -> packetData [1]) - headerSize) - return 0; - - memcpy (host -> packetData [1], header, headerSize); - host -> receivedData = host -> packetData [1]; - host -> receivedDataLength = headerSize + originalSize; - } - - if (host -> checksum != NULL) - { - enet_uint32 * checksum = (enet_uint32 *) & host -> receivedData [headerSize - sizeof (enet_uint32)], - desiredChecksum = * checksum; - ENetBuffer buffer; - - * checksum = peer != NULL ? peer -> connectID : 0; - - buffer.data = host -> receivedData; - buffer.dataLength = host -> receivedDataLength; - - if (host -> checksum (& buffer, 1) != desiredChecksum) - return 0; - } - - if (peer != NULL) - { - peer -> address.host = host -> receivedAddress.host; - peer -> address.port = host -> receivedAddress.port; - peer -> incomingDataTotal += host -> receivedDataLength; - } - - currentData = host -> receivedData + headerSize; - - while (currentData < & host -> receivedData [host -> receivedDataLength]) - { - enet_uint8 commandNumber; - size_t commandSize; - - command = (ENetProtocol *) currentData; - - if (currentData + sizeof (ENetProtocolCommandHeader) > & host -> receivedData [host -> receivedDataLength]) - break; - - commandNumber = command -> header.command & ENET_PROTOCOL_COMMAND_MASK; - if (commandNumber >= ENET_PROTOCOL_COMMAND_COUNT) - break; - - commandSize = commandSizes [commandNumber]; - if (commandSize == 0 || currentData + commandSize > & host -> receivedData [host -> receivedDataLength]) - break; - - currentData += commandSize; - - if (peer == NULL && commandNumber != ENET_PROTOCOL_COMMAND_CONNECT) - break; - - command -> header.reliableSequenceNumber = ENET_NET_TO_HOST_16 (command -> header.reliableSequenceNumber); - - switch (commandNumber) - { - case ENET_PROTOCOL_COMMAND_ACKNOWLEDGE: - if (enet_protocol_handle_acknowledge (host, event, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_CONNECT: - if (peer != NULL) - goto commandError; - peer = enet_protocol_handle_connect (host, header, command); - if (peer == NULL) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_VERIFY_CONNECT: - if (enet_protocol_handle_verify_connect (host, event, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_DISCONNECT: - if (enet_protocol_handle_disconnect (host, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_PING: - if (enet_protocol_handle_ping (host, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_SEND_RELIABLE: - if (enet_protocol_handle_send_reliable (host, peer, command, & currentData)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE: - if (enet_protocol_handle_send_unreliable (host, peer, command, & currentData)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED: - if (enet_protocol_handle_send_unsequenced (host, peer, command, & currentData)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_SEND_FRAGMENT: - if (enet_protocol_handle_send_fragment (host, peer, command, & currentData)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT: - if (enet_protocol_handle_bandwidth_limit (host, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE: - if (enet_protocol_handle_throttle_configure (host, peer, command)) - goto commandError; - break; - - case ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT: - if (enet_protocol_handle_send_unreliable_fragment (host, peer, command, & currentData)) - goto commandError; - break; - - default: - goto commandError; - } - - if (peer != NULL && - (command -> header.command & ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE) != 0) - { - enet_uint16 sentTime; - - if (! (flags & ENET_PROTOCOL_HEADER_FLAG_SENT_TIME)) - break; - - sentTime = ENET_NET_TO_HOST_16 (header -> sentTime); - - switch (peer -> state) - { - case ENET_PEER_STATE_DISCONNECTING: - case ENET_PEER_STATE_ACKNOWLEDGING_CONNECT: - case ENET_PEER_STATE_DISCONNECTED: - case ENET_PEER_STATE_ZOMBIE: - break; - - case ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT: - if ((command -> header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_DISCONNECT) - enet_peer_queue_acknowledgement (peer, command, sentTime); - break; - - default: - enet_peer_queue_acknowledgement (peer, command, sentTime); - break; - } - } - } - -commandError: - if (event != NULL && event -> type != ENET_EVENT_TYPE_NONE) - return 1; - - return 0; -} - -static int -enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event) -{ - for (;;) - { - int receivedLength; - ENetBuffer buffer; - - buffer.data = host -> packetData [0]; - buffer.dataLength = sizeof (host -> packetData [0]); - - receivedLength = enet_socket_receive (host -> socket, - & host -> receivedAddress, - & buffer, - 1); - - if (receivedLength < 0) - return -1; - - if (receivedLength == 0) - return 0; - - host -> receivedData = host -> packetData [0]; - host -> receivedDataLength = receivedLength; - - host -> totalReceivedData += receivedLength; - host -> totalReceivedPackets ++; - - if (host -> intercept != NULL) - { - switch (host -> intercept (host, event)) - { - case 1: - if (event != NULL && event -> type != ENET_EVENT_TYPE_NONE) - return 1; - - continue; - - case -1: - return -1; - - default: - break; - } - } - - switch (enet_protocol_handle_incoming_commands (host, event)) - { - case 1: - return 1; - - case -1: - return -1; - - default: - break; - } - } - - return -1; -} - -static void -enet_protocol_send_acknowledgements (ENetHost * host, ENetPeer * peer) -{ - ENetProtocol * command = & host -> commands [host -> commandCount]; - ENetBuffer * buffer = & host -> buffers [host -> bufferCount]; - ENetAcknowledgement * acknowledgement; - ENetListIterator currentAcknowledgement; - - currentAcknowledgement = enet_list_begin (& peer -> acknowledgements); - - while (currentAcknowledgement != enet_list_end (& peer -> acknowledgements)) - { - if (command >= & host -> commands [sizeof (host -> commands) / sizeof (ENetProtocol)] || - buffer >= & host -> buffers [sizeof (host -> buffers) / sizeof (ENetBuffer)] || - peer -> mtu - host -> packetSize < sizeof (ENetProtocolAcknowledge)) - { - host -> continueSending = 1; - - break; - } - - acknowledgement = (ENetAcknowledgement *) currentAcknowledgement; - - currentAcknowledgement = enet_list_next (currentAcknowledgement); - - buffer -> data = command; - buffer -> dataLength = sizeof (ENetProtocolAcknowledge); - - host -> packetSize += buffer -> dataLength; - - command -> header.command = ENET_PROTOCOL_COMMAND_ACKNOWLEDGE; - command -> header.channelID = acknowledgement -> command.header.channelID; - command -> acknowledge.receivedReliableSequenceNumber = ENET_HOST_TO_NET_16 (acknowledgement -> command.header.reliableSequenceNumber); - command -> acknowledge.receivedSentTime = ENET_HOST_TO_NET_16 (acknowledgement -> sentTime); - - if ((acknowledgement -> command.header.command & ENET_PROTOCOL_COMMAND_MASK) == ENET_PROTOCOL_COMMAND_DISCONNECT) - enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE); - - enet_list_remove (& acknowledgement -> acknowledgementList); - enet_free (acknowledgement); - - ++ command; - ++ buffer; - } - - host -> commandCount = command - host -> commands; - host -> bufferCount = buffer - host -> buffers; -} - -static void -enet_protocol_send_unreliable_outgoing_commands (ENetHost * host, ENetPeer * peer) -{ - ENetProtocol * command = & host -> commands [host -> commandCount]; - ENetBuffer * buffer = & host -> buffers [host -> bufferCount]; - ENetOutgoingCommand * outgoingCommand; - ENetListIterator currentCommand; - - currentCommand = enet_list_begin (& peer -> outgoingUnreliableCommands); - - while (currentCommand != enet_list_end (& peer -> outgoingUnreliableCommands)) - { - size_t commandSize; - - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - commandSize = commandSizes [outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK]; - - if (command >= & host -> commands [sizeof (host -> commands) / sizeof (ENetProtocol)] || - buffer + 1 >= & host -> buffers [sizeof (host -> buffers) / sizeof (ENetBuffer)] || - peer -> mtu - host -> packetSize < commandSize || - (outgoingCommand -> packet != NULL && - peer -> mtu - host -> packetSize < commandSize + outgoingCommand -> fragmentLength)) - { - host -> continueSending = 1; - - break; - } - - currentCommand = enet_list_next (currentCommand); - - if (outgoingCommand -> packet != NULL && outgoingCommand -> fragmentOffset == 0) - { - peer -> packetThrottleCounter += ENET_PEER_PACKET_THROTTLE_COUNTER; - peer -> packetThrottleCounter %= ENET_PEER_PACKET_THROTTLE_SCALE; - - if (peer -> packetThrottleCounter > peer -> packetThrottle) - { - enet_uint16 reliableSequenceNumber = outgoingCommand -> reliableSequenceNumber, - unreliableSequenceNumber = outgoingCommand -> unreliableSequenceNumber; - for (;;) - { - -- outgoingCommand -> packet -> referenceCount; - - if (outgoingCommand -> packet -> referenceCount == 0) - enet_packet_destroy (outgoingCommand -> packet); - - enet_list_remove (& outgoingCommand -> outgoingCommandList); - enet_free (outgoingCommand); - - if (currentCommand == enet_list_end (& peer -> outgoingUnreliableCommands)) - break; - - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - if (outgoingCommand -> reliableSequenceNumber != reliableSequenceNumber || - outgoingCommand -> unreliableSequenceNumber != unreliableSequenceNumber) - break; - - currentCommand = enet_list_next (currentCommand); - } - - continue; - } - } - - buffer -> data = command; - buffer -> dataLength = commandSize; - - host -> packetSize += buffer -> dataLength; - - * command = outgoingCommand -> command; - - enet_list_remove (& outgoingCommand -> outgoingCommandList); - - if (outgoingCommand -> packet != NULL) - { - ++ buffer; - - buffer -> data = outgoingCommand -> packet -> data + outgoingCommand -> fragmentOffset; - buffer -> dataLength = outgoingCommand -> fragmentLength; - - host -> packetSize += buffer -> dataLength; - - enet_list_insert (enet_list_end (& peer -> sentUnreliableCommands), outgoingCommand); - } - else - enet_free (outgoingCommand); - - ++ command; - ++ buffer; - } - - host -> commandCount = command - host -> commands; - host -> bufferCount = buffer - host -> buffers; - - if (peer -> state == ENET_PEER_STATE_DISCONNECT_LATER && - enet_list_empty (& peer -> outgoingReliableCommands) && - enet_list_empty (& peer -> outgoingUnreliableCommands) && - enet_list_empty (& peer -> sentReliableCommands)) - enet_peer_disconnect (peer, peer -> eventData); -} - -static int -enet_protocol_check_timeouts (ENetHost * host, ENetPeer * peer, ENetEvent * event) -{ - ENetOutgoingCommand * outgoingCommand; - ENetListIterator currentCommand, insertPosition; - - currentCommand = enet_list_begin (& peer -> sentReliableCommands); - insertPosition = enet_list_begin (& peer -> outgoingReliableCommands); - - while (currentCommand != enet_list_end (& peer -> sentReliableCommands)) - { - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - - currentCommand = enet_list_next (currentCommand); - - if (ENET_TIME_DIFFERENCE (host -> serviceTime, outgoingCommand -> sentTime) < outgoingCommand -> roundTripTimeout) - continue; - - if (peer -> earliestTimeout == 0 || - ENET_TIME_LESS (outgoingCommand -> sentTime, peer -> earliestTimeout)) - peer -> earliestTimeout = outgoingCommand -> sentTime; - - if (peer -> earliestTimeout != 0 && - (ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMaximum || - (outgoingCommand -> roundTripTimeout >= outgoingCommand -> roundTripTimeoutLimit && - ENET_TIME_DIFFERENCE (host -> serviceTime, peer -> earliestTimeout) >= peer -> timeoutMinimum))) - { - enet_protocol_notify_disconnect (host, peer, event); - - return 1; - } - - if (outgoingCommand -> packet != NULL) - peer -> reliableDataInTransit -= outgoingCommand -> fragmentLength; - - ++ peer -> packetsLost; - - outgoingCommand -> roundTripTimeout *= 2; - - enet_list_insert (insertPosition, enet_list_remove (& outgoingCommand -> outgoingCommandList)); - - if (currentCommand == enet_list_begin (& peer -> sentReliableCommands) && - ! enet_list_empty (& peer -> sentReliableCommands)) - { - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - - peer -> nextTimeout = outgoingCommand -> sentTime + outgoingCommand -> roundTripTimeout; - } - } - - return 0; -} - -static int -enet_protocol_send_reliable_outgoing_commands (ENetHost * host, ENetPeer * peer) -{ - ENetProtocol * command = & host -> commands [host -> commandCount]; - ENetBuffer * buffer = & host -> buffers [host -> bufferCount]; - ENetOutgoingCommand * outgoingCommand; - ENetListIterator currentCommand; - ENetChannel *channel; - enet_uint16 reliableWindow; - size_t commandSize; - int windowExceeded = 0, windowWrap = 0, canPing = 1; - - currentCommand = enet_list_begin (& peer -> outgoingReliableCommands); - - while (currentCommand != enet_list_end (& peer -> outgoingReliableCommands)) - { - outgoingCommand = (ENetOutgoingCommand *) currentCommand; - - channel = outgoingCommand -> command.header.channelID < peer -> channelCount ? & peer -> channels [outgoingCommand -> command.header.channelID] : NULL; - reliableWindow = outgoingCommand -> reliableSequenceNumber / ENET_PEER_RELIABLE_WINDOW_SIZE; - if (channel != NULL) - { - if (! windowWrap && - outgoingCommand -> sendAttempts < 1 && - ! (outgoingCommand -> reliableSequenceNumber % ENET_PEER_RELIABLE_WINDOW_SIZE) && - (channel -> reliableWindows [(reliableWindow + ENET_PEER_RELIABLE_WINDOWS - 1) % ENET_PEER_RELIABLE_WINDOWS] >= ENET_PEER_RELIABLE_WINDOW_SIZE || - channel -> usedReliableWindows & ((((1 << ENET_PEER_FREE_RELIABLE_WINDOWS) - 1) << reliableWindow) | - (((1 << ENET_PEER_FREE_RELIABLE_WINDOWS) - 1) >> (ENET_PEER_RELIABLE_WINDOW_SIZE - reliableWindow))))) - windowWrap = 1; - if (windowWrap) - { - currentCommand = enet_list_next (currentCommand); - - continue; - } - } - - if (outgoingCommand -> packet != NULL) - { - if (! windowExceeded) - { - enet_uint32 windowSize = (peer -> packetThrottle * peer -> windowSize) / ENET_PEER_PACKET_THROTTLE_SCALE; - - if (peer -> reliableDataInTransit + outgoingCommand -> fragmentLength > ENET_MAX (windowSize, peer -> mtu)) - windowExceeded = 1; - } - if (windowExceeded) - { - currentCommand = enet_list_next (currentCommand); - - continue; - } - } - - canPing = 0; - - commandSize = commandSizes [outgoingCommand -> command.header.command & ENET_PROTOCOL_COMMAND_MASK]; - if (command >= & host -> commands [sizeof (host -> commands) / sizeof (ENetProtocol)] || - buffer + 1 >= & host -> buffers [sizeof (host -> buffers) / sizeof (ENetBuffer)] || - peer -> mtu - host -> packetSize < commandSize || - (outgoingCommand -> packet != NULL && - (enet_uint16) (peer -> mtu - host -> packetSize) < (enet_uint16) (commandSize + outgoingCommand -> fragmentLength))) - { - host -> continueSending = 1; - - break; - } - - currentCommand = enet_list_next (currentCommand); - - if (channel != NULL && outgoingCommand -> sendAttempts < 1) - { - channel -> usedReliableWindows |= 1 << reliableWindow; - ++ channel -> reliableWindows [reliableWindow]; - } - - ++ outgoingCommand -> sendAttempts; - - if (outgoingCommand -> roundTripTimeout == 0) - { - outgoingCommand -> roundTripTimeout = peer -> roundTripTime + 4 * peer -> roundTripTimeVariance; - outgoingCommand -> roundTripTimeoutLimit = peer -> timeoutLimit * outgoingCommand -> roundTripTimeout; - } - - if (enet_list_empty (& peer -> sentReliableCommands)) - peer -> nextTimeout = host -> serviceTime + outgoingCommand -> roundTripTimeout; - - enet_list_insert (enet_list_end (& peer -> sentReliableCommands), - enet_list_remove (& outgoingCommand -> outgoingCommandList)); - - outgoingCommand -> sentTime = host -> serviceTime; - - buffer -> data = command; - buffer -> dataLength = commandSize; - - host -> packetSize += buffer -> dataLength; - host -> headerFlags |= ENET_PROTOCOL_HEADER_FLAG_SENT_TIME; - - * command = outgoingCommand -> command; - - if (outgoingCommand -> packet != NULL) - { - ++ buffer; - - buffer -> data = outgoingCommand -> packet -> data + outgoingCommand -> fragmentOffset; - buffer -> dataLength = outgoingCommand -> fragmentLength; - - host -> packetSize += outgoingCommand -> fragmentLength; - - peer -> reliableDataInTransit += outgoingCommand -> fragmentLength; - } - - ++ peer -> packetsSent; - - ++ command; - ++ buffer; - } - - host -> commandCount = command - host -> commands; - host -> bufferCount = buffer - host -> buffers; - - return canPing; -} - -static int -enet_protocol_send_outgoing_commands (ENetHost * host, ENetEvent * event, int checkForTimeouts) -{ - enet_uint8 headerData [sizeof (ENetProtocolHeader) + sizeof (enet_uint32)]; - ENetProtocolHeader * header = (ENetProtocolHeader *) headerData; - ENetPeer * currentPeer; - int sentLength; - size_t shouldCompress = 0; - - host -> continueSending = 1; - - while (host -> continueSending) - for (host -> continueSending = 0, - currentPeer = host -> peers; - currentPeer < & host -> peers [host -> peerCount]; - ++ currentPeer) - { - if (currentPeer -> state == ENET_PEER_STATE_DISCONNECTED || - currentPeer -> state == ENET_PEER_STATE_ZOMBIE) - continue; - - host -> headerFlags = 0; - host -> commandCount = 0; - host -> bufferCount = 1; - host -> packetSize = sizeof (ENetProtocolHeader); - - if (! enet_list_empty (& currentPeer -> acknowledgements)) - enet_protocol_send_acknowledgements (host, currentPeer); - - if (checkForTimeouts != 0 && - ! enet_list_empty (& currentPeer -> sentReliableCommands) && - ENET_TIME_GREATER_EQUAL (host -> serviceTime, currentPeer -> nextTimeout) && - enet_protocol_check_timeouts (host, currentPeer, event) == 1) - { - if (event != NULL && event -> type != ENET_EVENT_TYPE_NONE) - return 1; - else - continue; - } - - if ((enet_list_empty (& currentPeer -> outgoingReliableCommands) || - enet_protocol_send_reliable_outgoing_commands (host, currentPeer)) && - enet_list_empty (& currentPeer -> sentReliableCommands) && - ENET_TIME_DIFFERENCE (host -> serviceTime, currentPeer -> lastReceiveTime) >= currentPeer -> pingInterval && - currentPeer -> mtu - host -> packetSize >= sizeof (ENetProtocolPing)) - { - enet_peer_ping (currentPeer); - enet_protocol_send_reliable_outgoing_commands (host, currentPeer); - } - - if (! enet_list_empty (& currentPeer -> outgoingUnreliableCommands)) - enet_protocol_send_unreliable_outgoing_commands (host, currentPeer); - - if (host -> commandCount == 0) - continue; - - if (currentPeer -> packetLossEpoch == 0) - currentPeer -> packetLossEpoch = host -> serviceTime; - else - if (ENET_TIME_DIFFERENCE (host -> serviceTime, currentPeer -> packetLossEpoch) >= ENET_PEER_PACKET_LOSS_INTERVAL && - currentPeer -> packetsSent > 0) - { - enet_uint32 packetLoss = currentPeer -> packetsLost * ENET_PEER_PACKET_LOSS_SCALE / currentPeer -> packetsSent; - -#ifdef ENET_DEBUG -#ifdef WIN32 - printf ( -#else - fprintf (stderr, -#endif - "peer %u: %f%%+-%f%% packet loss, %u+-%u ms round trip time, %f%% throttle, %u/%u outgoing, %u/%u incoming\n", currentPeer -> incomingPeerID, currentPeer -> packetLoss / (float) ENET_PEER_PACKET_LOSS_SCALE, currentPeer -> packetLossVariance / (float) ENET_PEER_PACKET_LOSS_SCALE, currentPeer -> roundTripTime, currentPeer -> roundTripTimeVariance, currentPeer -> packetThrottle / (float) ENET_PEER_PACKET_THROTTLE_SCALE, enet_list_size (& currentPeer -> outgoingReliableCommands), enet_list_size (& currentPeer -> outgoingUnreliableCommands), currentPeer -> channels != NULL ? enet_list_size (& currentPeer -> channels -> incomingReliableCommands) : 0, currentPeer -> channels != NULL ? enet_list_size (& currentPeer -> channels -> incomingUnreliableCommands) : 0); -#endif - - currentPeer -> packetLossVariance -= currentPeer -> packetLossVariance / 4; - - if (packetLoss >= currentPeer -> packetLoss) - { - currentPeer -> packetLoss += (packetLoss - currentPeer -> packetLoss) / 8; - currentPeer -> packetLossVariance += (packetLoss - currentPeer -> packetLoss) / 4; - } - else - { - currentPeer -> packetLoss -= (currentPeer -> packetLoss - packetLoss) / 8; - currentPeer -> packetLossVariance += (currentPeer -> packetLoss - packetLoss) / 4; - } - - currentPeer -> packetLossEpoch = host -> serviceTime; - currentPeer -> packetsSent = 0; - currentPeer -> packetsLost = 0; - } - - host -> buffers -> data = headerData; - if (host -> headerFlags & ENET_PROTOCOL_HEADER_FLAG_SENT_TIME) - { - header -> sentTime = ENET_HOST_TO_NET_16 (host -> serviceTime & 0xFFFF); - - host -> buffers -> dataLength = sizeof (ENetProtocolHeader); - } - else - host -> buffers -> dataLength = (size_t) & ((ENetProtocolHeader *) 0) -> sentTime; - - shouldCompress = 0; - if (host -> compressor.context != NULL && host -> compressor.compress != NULL) - { - size_t originalSize = host -> packetSize - sizeof(ENetProtocolHeader), - compressedSize = host -> compressor.compress (host -> compressor.context, - & host -> buffers [1], host -> bufferCount - 1, - originalSize, - host -> packetData [1], - originalSize); - if (compressedSize > 0 && compressedSize < originalSize) - { - host -> headerFlags |= ENET_PROTOCOL_HEADER_FLAG_COMPRESSED; - shouldCompress = compressedSize; -#ifdef ENET_DEBUG_COMPRESS -#ifdef WIN32 - printf ( -#else - fprintf (stderr, -#endif - "peer %u: compressed %u -> %u (%u%%)\n", currentPeer -> incomingPeerID, originalSize, compressedSize, (compressedSize * 100) / originalSize); -#endif - } - } - - if (currentPeer -> outgoingPeerID < ENET_PROTOCOL_MAXIMUM_PEER_ID) - host -> headerFlags |= currentPeer -> outgoingSessionID << ENET_PROTOCOL_HEADER_SESSION_SHIFT; - header -> peerID = ENET_HOST_TO_NET_16 (currentPeer -> outgoingPeerID | host -> headerFlags); - if (host -> checksum != NULL) - { - enet_uint32 * checksum = (enet_uint32 *) & headerData [host -> buffers -> dataLength]; - * checksum = currentPeer -> outgoingPeerID < ENET_PROTOCOL_MAXIMUM_PEER_ID ? currentPeer -> connectID : 0; - host -> buffers -> dataLength += sizeof (enet_uint32); - * checksum = host -> checksum (host -> buffers, host -> bufferCount); - } - - if (shouldCompress > 0) - { - host -> buffers [1].data = host -> packetData [1]; - host -> buffers [1].dataLength = shouldCompress; - host -> bufferCount = 2; - } - - currentPeer -> lastSendTime = host -> serviceTime; - - sentLength = enet_socket_send (host -> socket, & currentPeer -> address, host -> buffers, host -> bufferCount); - - enet_protocol_remove_sent_unreliable_commands (currentPeer); - - if (sentLength < 0) - return -1; - - host -> totalSentData += sentLength; - host -> totalSentPackets ++; - } - - return 0; -} - -/** Sends any queued packets on the host specified to its designated peers. - - @param host host to flush - @remarks this function need only be used in circumstances where one wishes to send queued packets earlier than in a call to enet_host_service(). - @ingroup host -*/ -void -enet_host_flush (ENetHost * host) -{ - host -> serviceTime = enet_time_get (); - - enet_protocol_send_outgoing_commands (host, NULL, 0); -} - -/** Checks for any queued events on the host and dispatches one if available. - - @param host host to check for events - @param event an event structure where event details will be placed if available - @retval > 0 if an event was dispatched - @retval 0 if no events are available - @retval < 0 on failure - @ingroup host -*/ -int -enet_host_check_events (ENetHost * host, ENetEvent * event) -{ - if (event == NULL) return -1; - - event -> type = ENET_EVENT_TYPE_NONE; - event -> peer = NULL; - event -> packet = NULL; - - return enet_protocol_dispatch_incoming_commands (host, event); -} - -/** Waits for events on the host specified and shuttles packets between - the host and its peers. - - @param host host to service - @param event an event structure where event details will be placed if one occurs - if event == NULL then no events will be delivered - @param timeout number of milliseconds that ENet should wait for events - @retval > 0 if an event occurred within the specified time limit - @retval 0 if no event occurred - @retval < 0 on failure - @remarks enet_host_service should be called fairly regularly for adequate performance - @ingroup host -*/ -int -enet_host_service (ENetHost * host, ENetEvent * event, enet_uint32 timeout) -{ - enet_uint32 waitCondition; - - if (event != NULL) - { - event -> type = ENET_EVENT_TYPE_NONE; - event -> peer = NULL; - event -> packet = NULL; - - switch (enet_protocol_dispatch_incoming_commands (host, event)) - { - case 1: - return 1; - - case -1: - perror ("Error dispatching incoming packets"); - - return -1; - - default: - break; - } - } - - host -> serviceTime = enet_time_get (); - - timeout += host -> serviceTime; - - do - { - if (ENET_TIME_DIFFERENCE (host -> serviceTime, host -> bandwidthThrottleEpoch) >= ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL) - enet_host_bandwidth_throttle (host); - - switch (enet_protocol_send_outgoing_commands (host, event, 1)) - { - case 1: - return 1; - - case -1: - perror ("Error sending outgoing packets"); - - return -1; - - default: - break; - } - - switch (enet_protocol_receive_incoming_commands (host, event)) - { - case 1: - return 1; - - case -1: - perror ("Error receiving incoming packets"); - - return -1; - - default: - break; - } - - switch (enet_protocol_send_outgoing_commands (host, event, 1)) - { - case 1: - return 1; - - case -1: - perror ("Error sending outgoing packets"); - - return -1; - - default: - break; - } - - if (event != NULL) - { - switch (enet_protocol_dispatch_incoming_commands (host, event)) - { - case 1: - return 1; - - case -1: - perror ("Error dispatching incoming packets"); - - return -1; - - default: - break; - } - } - - host -> serviceTime = enet_time_get (); - - if (ENET_TIME_GREATER_EQUAL (host -> serviceTime, timeout)) - return 0; - - waitCondition = ENET_SOCKET_WAIT_RECEIVE; - - if (enet_socket_wait (host -> socket, & waitCondition, ENET_TIME_DIFFERENCE (timeout, host -> serviceTime)) != 0) - return -1; - - host -> serviceTime = enet_time_get (); - } while (waitCondition == ENET_SOCKET_WAIT_RECEIVE); - - return 0; -} - diff --git a/btgui/enet/unix.c b/btgui/enet/unix.c deleted file mode 100644 index d425b4b8a..000000000 --- a/btgui/enet/unix.c +++ /dev/null @@ -1,475 +0,0 @@ -/** - @file unix.c - @brief ENet Unix system specific functions -*/ -#ifndef WIN32 - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -#ifdef __APPLE__ -#ifdef HAS_POLL -#undef HAS_POLL -#endif -#ifndef HAS_FCNTL -#define HAS_FCNTL 1 -#endif -#ifndef HAS_INET_PTON -#define HAS_INET_PTON 1 -#endif -#ifndef HAS_INET_NTOP -#define HAS_INET_NTOP 1 -#endif -#ifndef HAS_MSGHDR_FLAGS -#define HAS_MSGHDR_FLAGS 1 -#endif -#ifndef HAS_SOCKLEN_T -#define HAS_SOCKLEN_T 1 -#endif -#endif - -#ifdef HAS_FCNTL -#include -#endif - -#ifdef HAS_POLL -#include -#endif - -#ifndef HAS_SOCKLEN_T -typedef int socklen_t; -#endif - -#ifndef MSG_NOSIGNAL -#define MSG_NOSIGNAL 0 -#endif - -static enet_uint32 timeBase = 0; - -int -enet_initialize (void) -{ - return 0; -} - -void -enet_deinitialize (void) -{ -} - -enet_uint32 -enet_time_get (void) -{ - struct timeval timeVal; - - gettimeofday (& timeVal, NULL); - - return timeVal.tv_sec * 1000 + timeVal.tv_usec / 1000 - timeBase; -} - -void -enet_time_set (enet_uint32 newTimeBase) -{ - struct timeval timeVal; - - gettimeofday (& timeVal, NULL); - - timeBase = timeVal.tv_sec * 1000 + timeVal.tv_usec / 1000 - newTimeBase; -} - -int -enet_address_set_host (ENetAddress * address, const char * name) -{ - struct hostent * hostEntry = NULL; -#ifdef HAS_GETHOSTBYNAME_R - struct hostent hostData; - char buffer [2048]; - int errnum; - -#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) - gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); -#else - hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); -#endif -#else - hostEntry = gethostbyname (name); -#endif - - if (hostEntry == NULL || - hostEntry -> h_addrtype != AF_INET) - { -#ifdef HAS_INET_PTON - if (! inet_pton (AF_INET, name, & address -> host)) -#else - if (! inet_aton (name, (struct in_addr *) & address -> host)) -#endif - return -1; - return 0; - } - - address -> host = * (enet_uint32 *) hostEntry -> h_addr_list [0]; - - return 0; -} - -int -enet_address_get_host_ip (const ENetAddress * address, char * name, size_t nameLength) -{ -#ifdef HAS_INET_NTOP - if (inet_ntop (AF_INET, & address -> host, name, nameLength) == NULL) -#else - char * addr = inet_ntoa (* (struct in_addr *) & address -> host); - if (addr != NULL) - strncpy (name, addr, nameLength); - else -#endif - return -1; - return 0; -} - -int -enet_address_get_host (const ENetAddress * address, char * name, size_t nameLength) -{ - struct in_addr in; - struct hostent * hostEntry = NULL; -#ifdef HAS_GETHOSTBYADDR_R - struct hostent hostData; - char buffer [2048]; - int errnum; - - in.s_addr = address -> host; - -#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) - gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); -#else - hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); -#endif -#else - in.s_addr = address -> host; - - hostEntry = gethostbyaddr ((char *) & in, sizeof (struct in_addr), AF_INET); -#endif - - if (hostEntry == NULL) - return enet_address_get_host_ip (address, name, nameLength); - - strncpy (name, hostEntry -> h_name, nameLength); - - return 0; -} - -int -enet_socket_bind (ENetSocket socket, const ENetAddress * address) -{ - struct sockaddr_in sin; - - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - - if (address != NULL) - { - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - } - else - { - sin.sin_port = 0; - sin.sin_addr.s_addr = INADDR_ANY; - } - - return bind (socket, - (struct sockaddr *) & sin, - sizeof (struct sockaddr_in)); -} - -int -enet_socket_listen (ENetSocket socket, int backlog) -{ - return listen (socket, backlog < 0 ? SOMAXCONN : backlog); -} - -ENetSocket -enet_socket_create (ENetSocketType type) -{ - return socket (PF_INET, type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0); -} - -int -enet_socket_set_option (ENetSocket socket, ENetSocketOption option, int value) -{ - int result = -1; - switch (option) - { - case ENET_SOCKOPT_NONBLOCK: -#ifdef HAS_FCNTL - result = fcntl (socket, F_SETFL, O_NONBLOCK | fcntl (socket, F_GETFL)); -#else - result = ioctl (socket, FIONBIO, & value); -#endif - break; - - case ENET_SOCKOPT_BROADCAST: - result = setsockopt (socket, SOL_SOCKET, SO_BROADCAST, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_REUSEADDR: - result = setsockopt (socket, SOL_SOCKET, SO_REUSEADDR, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_RCVBUF: - result = setsockopt (socket, SOL_SOCKET, SO_RCVBUF, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_SNDBUF: - result = setsockopt (socket, SOL_SOCKET, SO_SNDBUF, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_RCVTIMEO: - result = setsockopt (socket, SOL_SOCKET, SO_RCVTIMEO, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_SNDTIMEO: - result = setsockopt (socket, SOL_SOCKET, SO_SNDTIMEO, (char *) & value, sizeof (int)); - break; - - default: - break; - } - return result == -1 ? -1 : 0; -} - -int -enet_socket_connect (ENetSocket socket, const ENetAddress * address) -{ - struct sockaddr_in sin; - int result; - - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - - result = connect (socket, (struct sockaddr *) & sin, sizeof (struct sockaddr_in)); - if (result == -1 && errno == EINPROGRESS) - return 0; - - return result; -} - -ENetSocket -enet_socket_accept (ENetSocket socket, ENetAddress * address) -{ - int result; - struct sockaddr_in sin; - socklen_t sinLength = sizeof (struct sockaddr_in); - - result = accept (socket, - address != NULL ? (struct sockaddr *) & sin : NULL, - address != NULL ? & sinLength : NULL); - - if (result == -1) - return ENET_SOCKET_NULL; - - if (address != NULL) - { - address -> host = (enet_uint32) sin.sin_addr.s_addr; - address -> port = ENET_NET_TO_HOST_16 (sin.sin_port); - } - - return result; -} - -int -enet_socket_shutdown (ENetSocket socket, ENetSocketShutdown how) -{ - return shutdown (socket, (int) how); -} - -void -enet_socket_destroy (ENetSocket socket) -{ - if (socket != -1) - close (socket); -} - -int -enet_socket_send (ENetSocket socket, - const ENetAddress * address, - const ENetBuffer * buffers, - size_t bufferCount) -{ - struct msghdr msgHdr; - struct sockaddr_in sin; - int sentLength; - - memset (& msgHdr, 0, sizeof (struct msghdr)); - - if (address != NULL) - { - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - - msgHdr.msg_name = & sin; - msgHdr.msg_namelen = sizeof (struct sockaddr_in); - } - - msgHdr.msg_iov = (struct iovec *) buffers; - msgHdr.msg_iovlen = bufferCount; - - sentLength = sendmsg (socket, & msgHdr, MSG_NOSIGNAL); - - if (sentLength == -1) - { - if (errno == EWOULDBLOCK) - return 0; - - return -1; - } - - return sentLength; -} - -int -enet_socket_receive (ENetSocket socket, - ENetAddress * address, - ENetBuffer * buffers, - size_t bufferCount) -{ - struct msghdr msgHdr; - struct sockaddr_in sin; - int recvLength; - - memset (& msgHdr, 0, sizeof (struct msghdr)); - - if (address != NULL) - { - msgHdr.msg_name = & sin; - msgHdr.msg_namelen = sizeof (struct sockaddr_in); - } - - msgHdr.msg_iov = (struct iovec *) buffers; - msgHdr.msg_iovlen = bufferCount; - - recvLength = recvmsg (socket, & msgHdr, MSG_NOSIGNAL); - - if (recvLength == -1) - { - if (errno == EWOULDBLOCK) - return 0; - - return -1; - } - -#ifdef HAS_MSGHDR_FLAGS - if (msgHdr.msg_flags & MSG_TRUNC) - return -1; -#endif - - if (address != NULL) - { - address -> host = (enet_uint32) sin.sin_addr.s_addr; - address -> port = ENET_NET_TO_HOST_16 (sin.sin_port); - } - - return recvLength; -} - -int -enet_socketset_select (ENetSocket maxSocket, ENetSocketSet * readSet, ENetSocketSet * writeSet, enet_uint32 timeout) -{ - struct timeval timeVal; - - timeVal.tv_sec = timeout / 1000; - timeVal.tv_usec = (timeout % 1000) * 1000; - - return select (maxSocket + 1, readSet, writeSet, NULL, & timeVal); -} - -int -enet_socket_wait (ENetSocket socket, enet_uint32 * condition, enet_uint32 timeout) -{ -#ifdef HAS_POLL - struct pollfd pollSocket; - int pollCount; - - pollSocket.fd = socket; - pollSocket.events = 0; - - if (* condition & ENET_SOCKET_WAIT_SEND) - pollSocket.events |= POLLOUT; - - if (* condition & ENET_SOCKET_WAIT_RECEIVE) - pollSocket.events |= POLLIN; - - pollCount = poll (& pollSocket, 1, timeout); - - if (pollCount < 0) - return -1; - - * condition = ENET_SOCKET_WAIT_NONE; - - if (pollCount == 0) - return 0; - - if (pollSocket.revents & POLLOUT) - * condition |= ENET_SOCKET_WAIT_SEND; - - if (pollSocket.revents & POLLIN) - * condition |= ENET_SOCKET_WAIT_RECEIVE; - - return 0; -#else - fd_set readSet, writeSet; - struct timeval timeVal; - int selectCount; - - timeVal.tv_sec = timeout / 1000; - timeVal.tv_usec = (timeout % 1000) * 1000; - - FD_ZERO (& readSet); - FD_ZERO (& writeSet); - - if (* condition & ENET_SOCKET_WAIT_SEND) - FD_SET (socket, & writeSet); - - if (* condition & ENET_SOCKET_WAIT_RECEIVE) - FD_SET (socket, & readSet); - - selectCount = select (socket + 1, & readSet, & writeSet, NULL, & timeVal); - - if (selectCount < 0) - return -1; - - * condition = ENET_SOCKET_WAIT_NONE; - - if (selectCount == 0) - return 0; - - if (FD_ISSET (socket, & writeSet)) - * condition |= ENET_SOCKET_WAIT_SEND; - - if (FD_ISSET (socket, & readSet)) - * condition |= ENET_SOCKET_WAIT_RECEIVE; - - return 0; -#endif -} - -#endif - diff --git a/btgui/enet/win32.c b/btgui/enet/win32.c deleted file mode 100644 index dcc0791bd..000000000 --- a/btgui/enet/win32.c +++ /dev/null @@ -1,368 +0,0 @@ -/** - @file win32.c - @brief ENet Win32 system specific functions -*/ -#ifdef WIN32 - -#include -#define ENET_BUILDING_LIB 1 -#include "enet/enet.h" - -static enet_uint32 timeBase = 0; - -int -enet_initialize (void) -{ - WORD versionRequested = MAKEWORD (1, 1); - WSADATA wsaData; - - if (WSAStartup (versionRequested, & wsaData)) - return -1; - - if (LOBYTE (wsaData.wVersion) != 1|| - HIBYTE (wsaData.wVersion) != 1) - { - WSACleanup (); - - return -1; - } - - timeBeginPeriod (1); - - return 0; -} - -void -enet_deinitialize (void) -{ - timeEndPeriod (1); - - WSACleanup (); -} - -enet_uint32 -enet_time_get (void) -{ - return (enet_uint32) timeGetTime () - timeBase; -} - -void -enet_time_set (enet_uint32 newTimeBase) -{ - timeBase = (enet_uint32) timeGetTime () - newTimeBase; -} - -int -enet_address_set_host (ENetAddress * address, const char * name) -{ - struct hostent * hostEntry; - - hostEntry = gethostbyname (name); - if (hostEntry == NULL || - hostEntry -> h_addrtype != AF_INET) - { - unsigned long host = inet_addr (name); - if (host == INADDR_NONE) - return -1; - address -> host = host; - return 0; - } - - address -> host = * (enet_uint32 *) hostEntry -> h_addr_list [0]; - - return 0; -} - -int -enet_address_get_host_ip (const ENetAddress * address, char * name, size_t nameLength) -{ - char * addr = inet_ntoa (* (struct in_addr *) & address -> host); - if (addr == NULL) - return -1; - strncpy (name, addr, nameLength); - return 0; -} - -int -enet_address_get_host (const ENetAddress * address, char * name, size_t nameLength) -{ - struct in_addr in; - struct hostent * hostEntry; - - in.s_addr = address -> host; - - hostEntry = gethostbyaddr ((char *) & in, sizeof (struct in_addr), AF_INET); - if (hostEntry == NULL) - return enet_address_get_host_ip (address, name, nameLength); - - strncpy (name, hostEntry -> h_name, nameLength); - - return 0; -} - -int -enet_socket_bind (ENetSocket socket, const ENetAddress * address) -{ - struct sockaddr_in sin; - - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - - if (address != NULL) - { - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - } - else - { - sin.sin_port = 0; - sin.sin_addr.s_addr = INADDR_ANY; - } - - return bind (socket, - (struct sockaddr *) & sin, - sizeof (struct sockaddr_in)) == SOCKET_ERROR ? -1 : 0; -} - -int -enet_socket_listen (ENetSocket socket, int backlog) -{ - return listen (socket, backlog < 0 ? SOMAXCONN : backlog) == SOCKET_ERROR ? -1 : 0; -} - -ENetSocket -enet_socket_create (ENetSocketType type) -{ - return socket (PF_INET, type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0); -} - -int -enet_socket_set_option (ENetSocket socket, ENetSocketOption option, int value) -{ - int result = SOCKET_ERROR; - switch (option) - { - case ENET_SOCKOPT_NONBLOCK: - { - u_long nonBlocking = (u_long) value; - result = ioctlsocket (socket, FIONBIO, & nonBlocking); - break; - } - - case ENET_SOCKOPT_BROADCAST: - result = setsockopt (socket, SOL_SOCKET, SO_BROADCAST, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_REUSEADDR: - result = setsockopt (socket, SOL_SOCKET, SO_REUSEADDR, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_RCVBUF: - result = setsockopt (socket, SOL_SOCKET, SO_RCVBUF, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_SNDBUF: - result = setsockopt (socket, SOL_SOCKET, SO_SNDBUF, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_RCVTIMEO: - result = setsockopt (socket, SOL_SOCKET, SO_RCVTIMEO, (char *) & value, sizeof (int)); - break; - - case ENET_SOCKOPT_SNDTIMEO: - result = setsockopt (socket, SOL_SOCKET, SO_SNDTIMEO, (char *) & value, sizeof (int)); - break; - - default: - break; - } - return result == SOCKET_ERROR ? -1 : 0; -} - -int -enet_socket_connect (ENetSocket socket, const ENetAddress * address) -{ - struct sockaddr_in sin; - int result; - - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - - result = connect (socket, (struct sockaddr *) & sin, sizeof (struct sockaddr_in)); - if (result == SOCKET_ERROR && WSAGetLastError () != WSAEWOULDBLOCK) - return -1; - - return 0; -} - -ENetSocket -enet_socket_accept (ENetSocket socket, ENetAddress * address) -{ - SOCKET result; - struct sockaddr_in sin; - int sinLength = sizeof (struct sockaddr_in); - - result = accept (socket, - address != NULL ? (struct sockaddr *) & sin : NULL, - address != NULL ? & sinLength : NULL); - - if (result == INVALID_SOCKET) - return ENET_SOCKET_NULL; - - if (address != NULL) - { - address -> host = (enet_uint32) sin.sin_addr.s_addr; - address -> port = ENET_NET_TO_HOST_16 (sin.sin_port); - } - - return result; -} - -int -enet_socket_shutdown (ENetSocket socket, ENetSocketShutdown how) -{ - return shutdown (socket, (int) how) == SOCKET_ERROR ? -1 : 0; -} - -void -enet_socket_destroy (ENetSocket socket) -{ - if (socket != INVALID_SOCKET) - closesocket (socket); -} - -int -enet_socket_send (ENetSocket socket, - const ENetAddress * address, - const ENetBuffer * buffers, - size_t bufferCount) -{ - struct sockaddr_in sin; - DWORD sentLength; - - if (address != NULL) - { - memset (& sin, 0, sizeof (struct sockaddr_in)); - - sin.sin_family = AF_INET; - sin.sin_port = ENET_HOST_TO_NET_16 (address -> port); - sin.sin_addr.s_addr = address -> host; - } - - if (WSASendTo (socket, - (LPWSABUF) buffers, - (DWORD) bufferCount, - & sentLength, - 0, - address != NULL ? (struct sockaddr *) & sin : NULL, - address != NULL ? sizeof (struct sockaddr_in) : 0, - NULL, - NULL) == SOCKET_ERROR) - { - if (WSAGetLastError () == WSAEWOULDBLOCK) - return 0; - - return -1; - } - - return (int) sentLength; -} - -int -enet_socket_receive (ENetSocket socket, - ENetAddress * address, - ENetBuffer * buffers, - size_t bufferCount) -{ - INT sinLength = sizeof (struct sockaddr_in); - DWORD flags = 0, - recvLength; - struct sockaddr_in sin; - - if (WSARecvFrom (socket, - (LPWSABUF) buffers, - (DWORD) bufferCount, - & recvLength, - & flags, - address != NULL ? (struct sockaddr *) & sin : NULL, - address != NULL ? & sinLength : NULL, - NULL, - NULL) == SOCKET_ERROR) - { - switch (WSAGetLastError ()) - { - case WSAEWOULDBLOCK: - case WSAECONNRESET: - return 0; - } - - return -1; - } - - if (flags & MSG_PARTIAL) - return -1; - - if (address != NULL) - { - address -> host = (enet_uint32) sin.sin_addr.s_addr; - address -> port = ENET_NET_TO_HOST_16 (sin.sin_port); - } - - return (int) recvLength; -} - -int -enet_socketset_select (ENetSocket maxSocket, ENetSocketSet * readSet, ENetSocketSet * writeSet, enet_uint32 timeout) -{ - struct timeval timeVal; - - timeVal.tv_sec = timeout / 1000; - timeVal.tv_usec = (timeout % 1000) * 1000; - - return select (maxSocket + 1, readSet, writeSet, NULL, & timeVal); -} - -int -enet_socket_wait (ENetSocket socket, enet_uint32 * condition, enet_uint32 timeout) -{ - fd_set readSet, writeSet; - struct timeval timeVal; - int selectCount; - - timeVal.tv_sec = timeout / 1000; - timeVal.tv_usec = (timeout % 1000) * 1000; - - FD_ZERO (& readSet); - FD_ZERO (& writeSet); - - if (* condition & ENET_SOCKET_WAIT_SEND) - FD_SET (socket, & writeSet); - - if (* condition & ENET_SOCKET_WAIT_RECEIVE) - FD_SET (socket, & readSet); - - selectCount = select (socket + 1, & readSet, & writeSet, NULL, & timeVal); - - if (selectCount < 0) - return -1; - - * condition = ENET_SOCKET_WAIT_NONE; - - if (selectCount == 0) - return 0; - - if (FD_ISSET (socket, & writeSet)) - * condition |= ENET_SOCKET_WAIT_SEND; - - if (FD_ISSET (socket, & readSet)) - * condition |= ENET_SOCKET_WAIT_RECEIVE; - - return 0; -} - -#endif - diff --git a/btgui/lua-5.2.3/CMakeLists.txt b/btgui/lua-5.2.3/CMakeLists.txt deleted file mode 100644 index fe5b8c063..000000000 --- a/btgui/lua-5.2.3/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ - -INCLUDE_DIRECTORIES( - . - src -) - -FILE(GLOB_RECURSE lua-5.2.3_SRCS "src/*.c") - -ADD_DEFINITIONS(-DLUA_COMPAT_ALL) - -FILE(GLOB_RECURSE lua-5.2.3_HDRS "src/*.h") - -ADD_LIBRARY(lua-5.2.3 ${lua-5.2.3_SRCS} ${lua-5.2.3_HDRS}) diff --git a/btgui/lua-5.2.3/README b/btgui/lua-5.2.3/README deleted file mode 100644 index 49033adb5..000000000 --- a/btgui/lua-5.2.3/README +++ /dev/null @@ -1,6 +0,0 @@ - -This is Lua 5.2.3, released on 11 Nov 2013. - -For installation instructions, license details, and -further information about Lua, see doc/readme.html. - diff --git a/btgui/lua-5.2.3/lua_compiler/luac.c b/btgui/lua-5.2.3/lua_compiler/luac.c deleted file mode 100644 index 7409706ec..000000000 --- a/btgui/lua-5.2.3/lua_compiler/luac.c +++ /dev/null @@ -1,432 +0,0 @@ -/* -** $Id: luac.c,v 1.69 2011/11/29 17:46:33 lhf Exp $ -** Lua compiler (saves bytecodes to files; also list bytecodes) -** See Copyright Notice in lua.h -*/ - -#include -#include -#include -#include - -#define luac_c -#define LUA_CORE - -#include "lua.h" -#include "lauxlib.h" - -#include "lobject.h" -#include "lstate.h" -#include "lundump.h" - -static void PrintFunction(const Proto* f, int full); -#define luaU_print PrintFunction - -#define PROGNAME "luac" /* default program name */ -#define OUTPUT PROGNAME ".out" /* default output file */ - -static int listing=0; /* list bytecodes? */ -static int dumping=1; /* dump bytecodes? */ -static int stripping=0; /* strip debug information? */ -static char Output[]={ OUTPUT }; /* default output file name */ -static const char* output=Output; /* actual output file name */ -static const char* progname=PROGNAME; /* actual program name */ - -static void fatal(const char* message) -{ - fprintf(stderr,"%s: %s\n",progname,message); - exit(EXIT_FAILURE); -} - -static void cannot(const char* what) -{ - fprintf(stderr,"%s: cannot %s %s: %s\n",progname,what,output,strerror(errno)); - exit(EXIT_FAILURE); -} - -static void usage(const char* message) -{ - if (*message=='-') - fprintf(stderr,"%s: unrecognized option " LUA_QS "\n",progname,message); - else - fprintf(stderr,"%s: %s\n",progname,message); - fprintf(stderr, - "usage: %s [options] [filenames]\n" - "Available options are:\n" - " -l list (use -l -l for full listing)\n" - " -o name output to file " LUA_QL("name") " (default is \"%s\")\n" - " -p parse only\n" - " -s strip debug information\n" - " -v show version information\n" - " -- stop handling options\n" - " - stop handling options and process stdin\n" - ,progname,Output); - exit(EXIT_FAILURE); -} - -#define IS(s) (strcmp(argv[i],s)==0) - -static int doargs(int argc, char* argv[]) -{ - int i; - int version=0; - if (argv[0]!=NULL && *argv[0]!=0) progname=argv[0]; - for (i=1; itop+(i)) - -static const Proto* combine(lua_State* L, int n) -{ - if (n==1) - return toproto(L,-1); - else - { - Proto* f; - int i=n; - if (lua_load(L,reader,&i,"=(" PROGNAME ")",NULL)!=LUA_OK) fatal(lua_tostring(L,-1)); - f=toproto(L,-1); - for (i=0; ip[i]=toproto(L,i-n-1); - if (f->p[i]->sizeupvalues>0) f->p[i]->upvalues[0].instack=0; - } - f->sizelineinfo=0; - return f; - } -} - -static int writer(lua_State* L, const void* p, size_t size, void* u) -{ - UNUSED(L); - return (fwrite(p,size,1,(FILE*)u)!=1) && (size!=0); -} - -static int pmain(lua_State* L) -{ - int argc=(int)lua_tointeger(L,1); - char** argv=(char**)lua_touserdata(L,2); - const Proto* f; - int i; - if (!lua_checkstack(L,argc)) fatal("too many input files"); - for (i=0; i1); - if (dumping) - { - FILE* D= (output==NULL) ? stdout : fopen(output,"wb"); - if (D==NULL) cannot("open"); - lua_lock(L); - luaU_dump(L,f,writer,D,stripping); - lua_unlock(L); - if (ferror(D)) cannot("write"); - if (fclose(D)) cannot("close"); - } - return 0; -} - -int main(int argc, char* argv[]) -{ - lua_State* L; - int i=doargs(argc,argv); - argc-=i; argv+=i; - if (argc<=0) usage("no input files given"); - L=luaL_newstate(); - if (L==NULL) fatal("cannot create state: not enough memory"); - lua_pushcfunction(L,&pmain); - lua_pushinteger(L,argc); - lua_pushlightuserdata(L,argv); - if (lua_pcall(L,2,0,0)!=LUA_OK) fatal(lua_tostring(L,-1)); - lua_close(L); - return EXIT_SUCCESS; -} - -/* -** $Id: print.c,v 1.69 2013/07/04 01:03:46 lhf Exp $ -** print bytecodes -** See Copyright Notice in lua.h -*/ - -#include -#include - -#define luac_c -#define LUA_CORE - -#include "ldebug.h" -#include "lobject.h" -#include "lopcodes.h" - -#define VOID(p) ((const void*)(p)) - -static void PrintString(const TString* ts) -{ - const char* s=getstr(ts); - size_t i,n=ts->tsv.len; - printf("%c",'"'); - for (i=0; ik[i]; - switch (ttypenv(o)) - { - case LUA_TNIL: - printf("nil"); - break; - case LUA_TBOOLEAN: - printf(bvalue(o) ? "true" : "false"); - break; - case LUA_TNUMBER: - printf(LUA_NUMBER_FMT,nvalue(o)); - break; - case LUA_TSTRING: - PrintString(rawtsvalue(o)); - break; - default: /* cannot happen */ - printf("? type=%d",ttype(o)); - break; - } -} - -#define UPVALNAME(x) ((f->upvalues[x].name) ? getstr(f->upvalues[x].name) : "-") -#define MYK(x) (-1-(x)) - -static void PrintCode(const Proto* f) -{ - const Instruction* code=f->code; - int pc,n=f->sizecode; - for (pc=0; pc0) printf("[%d]\t",line); else printf("[-]\t"); - printf("%-9s\t",luaP_opnames[o]); - switch (getOpMode(o)) - { - case iABC: - printf("%d",a); - if (getBMode(o)!=OpArgN) printf(" %d",ISK(b) ? (MYK(INDEXK(b))) : b); - if (getCMode(o)!=OpArgN) printf(" %d",ISK(c) ? (MYK(INDEXK(c))) : c); - break; - case iABx: - printf("%d",a); - if (getBMode(o)==OpArgK) printf(" %d",MYK(bx)); - if (getBMode(o)==OpArgU) printf(" %d",bx); - break; - case iAsBx: - printf("%d %d",a,sbx); - break; - case iAx: - printf("%d",MYK(ax)); - break; - } - switch (o) - { - case OP_LOADK: - printf("\t; "); PrintConstant(f,bx); - break; - case OP_GETUPVAL: - case OP_SETUPVAL: - printf("\t; %s",UPVALNAME(b)); - break; - case OP_GETTABUP: - printf("\t; %s",UPVALNAME(b)); - if (ISK(c)) { printf(" "); PrintConstant(f,INDEXK(c)); } - break; - case OP_SETTABUP: - printf("\t; %s",UPVALNAME(a)); - if (ISK(b)) { printf(" "); PrintConstant(f,INDEXK(b)); } - if (ISK(c)) { printf(" "); PrintConstant(f,INDEXK(c)); } - break; - case OP_GETTABLE: - case OP_SELF: - if (ISK(c)) { printf("\t; "); PrintConstant(f,INDEXK(c)); } - break; - case OP_SETTABLE: - case OP_ADD: - case OP_SUB: - case OP_MUL: - case OP_DIV: - case OP_POW: - case OP_EQ: - case OP_LT: - case OP_LE: - if (ISK(b) || ISK(c)) - { - printf("\t; "); - if (ISK(b)) PrintConstant(f,INDEXK(b)); else printf("-"); - printf(" "); - if (ISK(c)) PrintConstant(f,INDEXK(c)); else printf("-"); - } - break; - case OP_JMP: - case OP_FORLOOP: - case OP_FORPREP: - case OP_TFORLOOP: - printf("\t; to %d",sbx+pc+2); - break; - case OP_CLOSURE: - printf("\t; %p",VOID(f->p[bx])); - break; - case OP_SETLIST: - if (c==0) printf("\t; %d",(int)code[++pc]); else printf("\t; %d",c); - break; - case OP_EXTRAARG: - printf("\t; "); PrintConstant(f,ax); - break; - default: - break; - } - printf("\n"); - } -} - -#define SS(x) ((x==1)?"":"s") -#define S(x) (int)(x),SS(x) - -static void PrintHeader(const Proto* f) -{ - const char* s=f->source ? getstr(f->source) : "=?"; - if (*s=='@' || *s=='=') - s++; - else if (*s==LUA_SIGNATURE[0]) - s="(bstring)"; - else - s="(string)"; - printf("\n%s <%s:%d,%d> (%d instruction%s at %p)\n", - (f->linedefined==0)?"main":"function",s, - f->linedefined,f->lastlinedefined, - S(f->sizecode),VOID(f)); - printf("%d%s param%s, %d slot%s, %d upvalue%s, ", - (int)(f->numparams),f->is_vararg?"+":"",SS(f->numparams), - S(f->maxstacksize),S(f->sizeupvalues)); - printf("%d local%s, %d constant%s, %d function%s\n", - S(f->sizelocvars),S(f->sizek),S(f->sizep)); -} - -static void PrintDebug(const Proto* f) -{ - int i,n; - n=f->sizek; - printf("constants (%d) for %p:\n",n,VOID(f)); - for (i=0; isizelocvars; - printf("locals (%d) for %p:\n",n,VOID(f)); - for (i=0; ilocvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1); - } - n=f->sizeupvalues; - printf("upvalues (%d) for %p:\n",n,VOID(f)); - for (i=0; iupvalues[i].instack,f->upvalues[i].idx); - } -} - -static void PrintFunction(const Proto* f, int full) -{ - int i,n=f->sizep; - PrintHeader(f); - PrintCode(f); - if (full) PrintDebug(f); - for (i=0; ip[i],full); -} diff --git a/btgui/lua-5.2.3/lua_compiler/premake4.lua b/btgui/lua-5.2.3/lua_compiler/premake4.lua deleted file mode 100644 index 1dfe766b1..000000000 --- a/btgui/lua-5.2.3/lua_compiler/premake4.lua +++ /dev/null @@ -1,23 +0,0 @@ - - -project ("App_LuaCompiler") - - language "C++" - - kind "ConsoleApp" - targetdir "../../../bin" - includedirs {"../src"} - - if os.is("Windows") then - end - if os.is("Linux") then - end - if os.is("MacOSX") then - end - - links {"lua-5.2.3"} - - files { - "luac.c", - } - diff --git a/btgui/lua-5.2.3/lua_standalone/lua.c b/btgui/lua-5.2.3/lua_standalone/lua.c deleted file mode 100644 index 4345e554e..000000000 --- a/btgui/lua-5.2.3/lua_standalone/lua.c +++ /dev/null @@ -1,497 +0,0 @@ -/* -** $Id: lua.c,v 1.206.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua stand-alone interpreter -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include -#include - -#define lua_c - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -#if !defined(LUA_PROMPT) -#define LUA_PROMPT "> " -#define LUA_PROMPT2 ">> " -#endif - -#if !defined(LUA_PROGNAME) -#define LUA_PROGNAME "lua" -#endif - -#if !defined(LUA_MAXINPUT) -#define LUA_MAXINPUT 512 -#endif - -#if !defined(LUA_INIT) -#define LUA_INIT "LUA_INIT" -#endif - -#define LUA_INITVERSION \ - LUA_INIT "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR - - -/* -** lua_stdin_is_tty detects whether the standard input is a 'tty' (that -** is, whether we're running lua interactively). -*/ -#if defined(LUA_USE_ISATTY) -#include -#define lua_stdin_is_tty() isatty(0) -#elif defined(LUA_WIN) -#include -#include -#define lua_stdin_is_tty() _isatty(_fileno(stdin)) -#else -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */ -#endif - - -/* -** lua_readline defines how to show a prompt and then read a line from -** the standard input. -** lua_saveline defines how to "save" a read line in a "history". -** lua_freeline defines how to free a line read by lua_readline. -*/ -#if defined(LUA_USE_READLINE) - -#include -#include -#include -#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) -#define lua_saveline(L,idx) \ - if (lua_rawlen(L,idx) > 0) /* non-empty line? */ \ - add_history(lua_tostring(L, idx)); /* add it to history */ -#define lua_freeline(L,b) ((void)L, free(b)) - -#elif !defined(lua_readline) - -#define lua_readline(L,b,p) \ - ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \ - fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */ -#define lua_saveline(L,idx) { (void)L; (void)idx; } -#define lua_freeline(L,b) { (void)L; (void)b; } - -#endif - - - - -static lua_State *globalL = NULL; - -static const char *progname = LUA_PROGNAME; - - - -static void lstop (lua_State *L, lua_Debug *ar) { - (void)ar; /* unused arg. */ - lua_sethook(L, NULL, 0, 0); - luaL_error(L, "interrupted!"); -} - - -static void laction (int i) { - signal(i, SIG_DFL); /* if another SIGINT happens before lstop, - terminate process (default action) */ - lua_sethook(globalL, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1); -} - - -static void print_usage (const char *badoption) { - luai_writestringerror("%s: ", progname); - if (badoption[1] == 'e' || badoption[1] == 'l') - luai_writestringerror("'%s' needs argument\n", badoption); - else - luai_writestringerror("unrecognized option '%s'\n", badoption); - luai_writestringerror( - "usage: %s [options] [script [args]]\n" - "Available options are:\n" - " -e stat execute string " LUA_QL("stat") "\n" - " -i enter interactive mode after executing " LUA_QL("script") "\n" - " -l name require library " LUA_QL("name") "\n" - " -v show version information\n" - " -E ignore environment variables\n" - " -- stop handling options\n" - " - stop handling options and execute stdin\n" - , - progname); -} - - -static void l_message (const char *pname, const char *msg) { - if (pname) luai_writestringerror("%s: ", pname); - luai_writestringerror("%s\n", msg); -} - - -static int report (lua_State *L, int status) { - if (status != LUA_OK && !lua_isnil(L, -1)) { - const char *msg = lua_tostring(L, -1); - if (msg == NULL) msg = "(error object is not a string)"; - l_message(progname, msg); - lua_pop(L, 1); - /* force a complete garbage collection in case of errors */ - lua_gc(L, LUA_GCCOLLECT, 0); - } - return status; -} - - -/* the next function is called unprotected, so it must avoid errors */ -static void finalreport (lua_State *L, int status) { - if (status != LUA_OK) { - const char *msg = (lua_type(L, -1) == LUA_TSTRING) ? lua_tostring(L, -1) - : NULL; - if (msg == NULL) msg = "(error object is not a string)"; - l_message(progname, msg); - lua_pop(L, 1); - } -} - - -static int traceback (lua_State *L) { - const char *msg = lua_tostring(L, 1); - if (msg) - luaL_traceback(L, L, msg, 1); - else if (!lua_isnoneornil(L, 1)) { /* is there an error object? */ - if (!luaL_callmeta(L, 1, "__tostring")) /* try its 'tostring' metamethod */ - lua_pushliteral(L, "(no error message)"); - } - return 1; -} - - -static int docall (lua_State *L, int narg, int nres) { - int status; - int base = lua_gettop(L) - narg; /* function index */ - lua_pushcfunction(L, traceback); /* push traceback function */ - lua_insert(L, base); /* put it under chunk and args */ - globalL = L; /* to be available to 'laction' */ - signal(SIGINT, laction); - status = lua_pcall(L, narg, nres, base); - signal(SIGINT, SIG_DFL); - lua_remove(L, base); /* remove traceback function */ - return status; -} - - -static void print_version (void) { - luai_writestring(LUA_COPYRIGHT, strlen(LUA_COPYRIGHT)); - luai_writeline(); -} - - -static int getargs (lua_State *L, char **argv, int n) { - int narg; - int i; - int argc = 0; - while (argv[argc]) argc++; /* count total number of arguments */ - narg = argc - (n + 1); /* number of arguments to the script */ - luaL_checkstack(L, narg + 3, "too many arguments to script"); - for (i=n+1; i < argc; i++) - lua_pushstring(L, argv[i]); - lua_createtable(L, narg, n + 1); - for (i=0; i < argc; i++) { - lua_pushstring(L, argv[i]); - lua_rawseti(L, -2, i - n); - } - return narg; -} - - -static int dofile (lua_State *L, const char *name) { - int status = luaL_loadfile(L, name); - if (status == LUA_OK) status = docall(L, 0, 0); - return report(L, status); -} - - -static int dostring (lua_State *L, const char *s, const char *name) { - int status = luaL_loadbuffer(L, s, strlen(s), name); - if (status == LUA_OK) status = docall(L, 0, 0); - return report(L, status); -} - - -static int dolibrary (lua_State *L, const char *name) { - int status; - lua_getglobal(L, "require"); - lua_pushstring(L, name); - status = docall(L, 1, 1); /* call 'require(name)' */ - if (status == LUA_OK) - lua_setglobal(L, name); /* global[name] = require return */ - return report(L, status); -} - - -static const char *get_prompt (lua_State *L, int firstline) { - const char *p; - lua_getglobal(L, firstline ? "_PROMPT" : "_PROMPT2"); - p = lua_tostring(L, -1); - if (p == NULL) p = (firstline ? LUA_PROMPT : LUA_PROMPT2); - return p; -} - -/* mark in error messages for incomplete statements */ -#define EOFMARK "" -#define marklen (sizeof(EOFMARK)/sizeof(char) - 1) - -static int incomplete (lua_State *L, int status) { - if (status == LUA_ERRSYNTAX) { - size_t lmsg; - const char *msg = lua_tolstring(L, -1, &lmsg); - if (lmsg >= marklen && strcmp(msg + lmsg - marklen, EOFMARK) == 0) { - lua_pop(L, 1); - return 1; - } - } - return 0; /* else... */ -} - - -static int pushline (lua_State *L, int firstline) { - char buffer[LUA_MAXINPUT]; - char *b = buffer; - size_t l; - const char *prmt = get_prompt(L, firstline); - int readstatus = lua_readline(L, b, prmt); - lua_pop(L, 1); /* remove result from 'get_prompt' */ - if (readstatus == 0) - return 0; /* no input */ - l = strlen(b); - if (l > 0 && b[l-1] == '\n') /* line ends with newline? */ - b[l-1] = '\0'; /* remove it */ - if (firstline && b[0] == '=') /* first line starts with `=' ? */ - lua_pushfstring(L, "return %s", b+1); /* change it to `return' */ - else - lua_pushstring(L, b); - lua_freeline(L, b); - return 1; -} - - -static int loadline (lua_State *L) { - int status; - lua_settop(L, 0); - if (!pushline(L, 1)) - return -1; /* no input */ - for (;;) { /* repeat until gets a complete line */ - size_t l; - const char *line = lua_tolstring(L, 1, &l); - status = luaL_loadbuffer(L, line, l, "=stdin"); - if (!incomplete(L, status)) break; /* cannot try to add lines? */ - if (!pushline(L, 0)) /* no more input? */ - return -1; - lua_pushliteral(L, "\n"); /* add a new line... */ - lua_insert(L, -2); /* ...between the two lines */ - lua_concat(L, 3); /* join them */ - } - lua_saveline(L, 1); - lua_remove(L, 1); /* remove line */ - return status; -} - - -static void dotty (lua_State *L) { - int status; - const char *oldprogname = progname; - progname = NULL; - while ((status = loadline(L)) != -1) { - if (status == LUA_OK) status = docall(L, 0, LUA_MULTRET); - report(L, status); - if (status == LUA_OK && lua_gettop(L) > 0) { /* any result to print? */ - luaL_checkstack(L, LUA_MINSTACK, "too many results to print"); - lua_getglobal(L, "print"); - lua_insert(L, 1); - if (lua_pcall(L, lua_gettop(L)-1, 0, 0) != LUA_OK) - l_message(progname, lua_pushfstring(L, - "error calling " LUA_QL("print") " (%s)", - lua_tostring(L, -1))); - } - } - lua_settop(L, 0); /* clear stack */ - luai_writeline(); - progname = oldprogname; -} - - -static int handle_script (lua_State *L, char **argv, int n) { - int status; - const char *fname; - int narg = getargs(L, argv, n); /* collect arguments */ - lua_setglobal(L, "arg"); - fname = argv[n]; - if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0) - fname = NULL; /* stdin */ - status = luaL_loadfile(L, fname); - lua_insert(L, -(narg+1)); - if (status == LUA_OK) - status = docall(L, narg, LUA_MULTRET); - else - lua_pop(L, narg); - return report(L, status); -} - - -/* check that argument has no extra characters at the end */ -#define noextrachars(x) {if ((x)[2] != '\0') return -1;} - - -/* indices of various argument indicators in array args */ -#define has_i 0 /* -i */ -#define has_v 1 /* -v */ -#define has_e 2 /* -e */ -#define has_E 3 /* -E */ - -#define num_has 4 /* number of 'has_*' */ - - -static int collectargs (char **argv, int *args) { - int i; - for (i = 1; argv[i] != NULL; i++) { - if (argv[i][0] != '-') /* not an option? */ - return i; - switch (argv[i][1]) { /* option */ - case '-': - noextrachars(argv[i]); - return (argv[i+1] != NULL ? i+1 : 0); - case '\0': - return i; - case 'E': - args[has_E] = 1; - break; - case 'i': - noextrachars(argv[i]); - args[has_i] = 1; /* go through */ - case 'v': - noextrachars(argv[i]); - args[has_v] = 1; - break; - case 'e': - args[has_e] = 1; /* go through */ - case 'l': /* both options need an argument */ - if (argv[i][2] == '\0') { /* no concatenated argument? */ - i++; /* try next 'argv' */ - if (argv[i] == NULL || argv[i][0] == '-') - return -(i - 1); /* no next argument or it is another option */ - } - break; - default: /* invalid option; return its index... */ - return -i; /* ...as a negative value */ - } - } - return 0; -} - - -static int runargs (lua_State *L, char **argv, int n) { - int i; - for (i = 1; i < n; i++) { - lua_assert(argv[i][0] == '-'); - switch (argv[i][1]) { /* option */ - case 'e': { - const char *chunk = argv[i] + 2; - if (*chunk == '\0') chunk = argv[++i]; - lua_assert(chunk != NULL); - if (dostring(L, chunk, "=(command line)") != LUA_OK) - return 0; - break; - } - case 'l': { - const char *filename = argv[i] + 2; - if (*filename == '\0') filename = argv[++i]; - lua_assert(filename != NULL); - if (dolibrary(L, filename) != LUA_OK) - return 0; /* stop if file fails */ - break; - } - default: break; - } - } - return 1; -} - - -static int handle_luainit (lua_State *L) { - const char *name = "=" LUA_INITVERSION; - const char *init = getenv(name + 1); - if (init == NULL) { - name = "=" LUA_INIT; - init = getenv(name + 1); /* try alternative name */ - } - if (init == NULL) return LUA_OK; - else if (init[0] == '@') - return dofile(L, init+1); - else - return dostring(L, init, name); -} - - -static int pmain (lua_State *L) { - int argc = (int)lua_tointeger(L, 1); - char **argv = (char **)lua_touserdata(L, 2); - int script; - int args[num_has]; - args[has_i] = args[has_v] = args[has_e] = args[has_E] = 0; - if (argv[0] && argv[0][0]) progname = argv[0]; - script = collectargs(argv, args); - if (script < 0) { /* invalid arg? */ - print_usage(argv[-script]); - return 0; - } - if (args[has_v]) print_version(); - if (args[has_E]) { /* option '-E'? */ - lua_pushboolean(L, 1); /* signal for libraries to ignore env. vars. */ - lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); - } - /* open standard libraries */ - luaL_checkversion(L); - lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ - luaL_openlibs(L); /* open libraries */ - lua_gc(L, LUA_GCRESTART, 0); - if (!args[has_E] && handle_luainit(L) != LUA_OK) - return 0; /* error running LUA_INIT */ - /* execute arguments -e and -l */ - if (!runargs(L, argv, (script > 0) ? script : argc)) return 0; - /* execute main script (if there is one) */ - if (script && handle_script(L, argv, script) != LUA_OK) return 0; - if (args[has_i]) /* -i option? */ - dotty(L); - else if (script == 0 && !args[has_e] && !args[has_v]) { /* no arguments? */ - if (lua_stdin_is_tty()) { - print_version(); - dotty(L); - } - else dofile(L, NULL); /* executes stdin as a file */ - } - lua_pushboolean(L, 1); /* signal no errors */ - return 1; -} - - -int main (int argc, char **argv) { - int status, result; - lua_State *L = luaL_newstate(); /* create state */ - if (L == NULL) { - l_message(argv[0], "cannot create state: not enough memory"); - return EXIT_FAILURE; - } - /* call 'pmain' in protected mode */ - lua_pushcfunction(L, &pmain); - lua_pushinteger(L, argc); /* 1st argument */ - lua_pushlightuserdata(L, argv); /* 2nd argument */ - status = lua_pcall(L, 2, 1, 0); - result = lua_toboolean(L, -1); /* get result */ - finalreport(L, status); - lua_close(L); - return (result && status == LUA_OK) ? EXIT_SUCCESS : EXIT_FAILURE; -} - diff --git a/btgui/lua-5.2.3/lua_standalone/premake4.lua b/btgui/lua-5.2.3/lua_standalone/premake4.lua deleted file mode 100644 index c1c9218af..000000000 --- a/btgui/lua-5.2.3/lua_standalone/premake4.lua +++ /dev/null @@ -1,23 +0,0 @@ - - -project ("App_LuaStandalone") - - language "C++" - - kind "ConsoleApp" - targetdir "../../../bin" - includedirs {"../src"} - - if os.is("Windows") then - end - if os.is("Linux") then - end - if os.is("MacOSX") then - end - - links {"lua-5.2.3"} - - files { - "lua.c", - } - diff --git a/btgui/lua-5.2.3/premake4.lua b/btgui/lua-5.2.3/premake4.lua deleted file mode 100644 index 2a1e4aeae..000000000 --- a/btgui/lua-5.2.3/premake4.lua +++ /dev/null @@ -1,27 +0,0 @@ - project "lua-5.2.3" - - kind "StaticLib" - - --flags {} - - - defines { "LUA_COMPAT_ALL"} - - if os.is("Linux") then - defines {"LUA_USE_LINUX"} - end - if os.is("MacOSX") then - defines {"LUA_USE_MACOSX"} - end - - targetdir "../../lib" - includedirs { - "src" - } - files { - "src/*.c", - "src/*.h" - } - -include "lua_compiler" -include "lua_standalone" diff --git a/btgui/lua-5.2.3/src/lapi.c b/btgui/lua-5.2.3/src/lapi.c deleted file mode 100644 index d011431ea..000000000 --- a/btgui/lua-5.2.3/src/lapi.c +++ /dev/null @@ -1,1284 +0,0 @@ -/* -** $Id: lapi.c,v 2.171.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua API -** See Copyright Notice in lua.h -*/ - - -#include -#include - -#define lapi_c -#define LUA_CORE - -#include "lua.h" - -#include "lapi.h" -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" -#include "lundump.h" -#include "lvm.h" - - - -const char lua_ident[] = - "$LuaVersion: " LUA_COPYRIGHT " $" - "$LuaAuthors: " LUA_AUTHORS " $"; - - -/* value at a non-valid index */ -#define NONVALIDVALUE cast(TValue *, luaO_nilobject) - -/* corresponding test */ -#define isvalid(o) ((o) != luaO_nilobject) - -/* test for pseudo index */ -#define ispseudo(i) ((i) <= LUA_REGISTRYINDEX) - -/* test for valid but not pseudo index */ -#define isstackindex(i, o) (isvalid(o) && !ispseudo(i)) - -#define api_checkvalidindex(L, o) api_check(L, isvalid(o), "invalid index") - -#define api_checkstackindex(L, i, o) \ - api_check(L, isstackindex(i, o), "index not in the stack") - - -static TValue *index2addr (lua_State *L, int idx) { - CallInfo *ci = L->ci; - if (idx > 0) { - TValue *o = ci->func + idx; - api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); - if (o >= L->top) return NONVALIDVALUE; - else return o; - } - else if (!ispseudo(idx)) { /* negative index */ - api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); - return L->top + idx; - } - else if (idx == LUA_REGISTRYINDEX) - return &G(L)->l_registry; - else { /* upvalues */ - idx = LUA_REGISTRYINDEX - idx; - api_check(L, idx <= MAXUPVAL + 1, "upvalue index too large"); - if (ttislcf(ci->func)) /* light C function? */ - return NONVALIDVALUE; /* it has no upvalues */ - else { - CClosure *func = clCvalue(ci->func); - return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : NONVALIDVALUE; - } - } -} - - -/* -** to be called by 'lua_checkstack' in protected mode, to grow stack -** capturing memory errors -*/ -static void growstack (lua_State *L, void *ud) { - int size = *(int *)ud; - luaD_growstack(L, size); -} - - -LUA_API int lua_checkstack (lua_State *L, int size) { - int res; - CallInfo *ci = L->ci; - lua_lock(L); - if (L->stack_last - L->top > size) /* stack large enough? */ - res = 1; /* yes; check is OK */ - else { /* no; need to grow stack */ - int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; - if (inuse > LUAI_MAXSTACK - size) /* can grow without overflow? */ - res = 0; /* no */ - else /* try to grow stack */ - res = (luaD_rawrunprotected(L, &growstack, &size) == LUA_OK); - } - if (res && ci->top < L->top + size) - ci->top = L->top + size; /* adjust frame top */ - lua_unlock(L); - return res; -} - - -LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { - int i; - if (from == to) return; - lua_lock(to); - api_checknelems(from, n); - api_check(from, G(from) == G(to), "moving among independent states"); - api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); - from->top -= n; - for (i = 0; i < n; i++) { - setobj2s(to, to->top++, from->top + i); - } - lua_unlock(to); -} - - -LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { - lua_CFunction old; - lua_lock(L); - old = G(L)->panic; - G(L)->panic = panicf; - lua_unlock(L); - return old; -} - - -LUA_API const lua_Number *lua_version (lua_State *L) { - static const lua_Number version = LUA_VERSION_NUM; - if (L == NULL) return &version; - else return G(L)->version; -} - - - -/* -** basic stack manipulation -*/ - - -/* -** convert an acceptable stack index into an absolute index -*/ -LUA_API int lua_absindex (lua_State *L, int idx) { - return (idx > 0 || ispseudo(idx)) - ? idx - : cast_int(L->top - L->ci->func + idx); -} - - -LUA_API int lua_gettop (lua_State *L) { - return cast_int(L->top - (L->ci->func + 1)); -} - - -LUA_API void lua_settop (lua_State *L, int idx) { - StkId func = L->ci->func; - lua_lock(L); - if (idx >= 0) { - api_check(L, idx <= L->stack_last - (func + 1), "new top too large"); - while (L->top < (func + 1) + idx) - setnilvalue(L->top++); - L->top = (func + 1) + idx; - } - else { - api_check(L, -(idx+1) <= (L->top - (func + 1)), "invalid new top"); - L->top += idx+1; /* `subtract' index (index is negative) */ - } - lua_unlock(L); -} - - -LUA_API void lua_remove (lua_State *L, int idx) { - StkId p; - lua_lock(L); - p = index2addr(L, idx); - api_checkstackindex(L, idx, p); - while (++p < L->top) setobjs2s(L, p-1, p); - L->top--; - lua_unlock(L); -} - - -LUA_API void lua_insert (lua_State *L, int idx) { - StkId p; - StkId q; - lua_lock(L); - p = index2addr(L, idx); - api_checkstackindex(L, idx, p); - for (q = L->top; q > p; q--) /* use L->top as a temporary */ - setobjs2s(L, q, q - 1); - setobjs2s(L, p, L->top); - lua_unlock(L); -} - - -static void moveto (lua_State *L, TValue *fr, int idx) { - TValue *to = index2addr(L, idx); - api_checkvalidindex(L, to); - setobj(L, to, fr); - if (idx < LUA_REGISTRYINDEX) /* function upvalue? */ - luaC_barrier(L, clCvalue(L->ci->func), fr); - /* LUA_REGISTRYINDEX does not need gc barrier - (collector revisits it before finishing collection) */ -} - - -LUA_API void lua_replace (lua_State *L, int idx) { - lua_lock(L); - api_checknelems(L, 1); - moveto(L, L->top - 1, idx); - L->top--; - lua_unlock(L); -} - - -LUA_API void lua_copy (lua_State *L, int fromidx, int toidx) { - TValue *fr; - lua_lock(L); - fr = index2addr(L, fromidx); - moveto(L, fr, toidx); - lua_unlock(L); -} - - -LUA_API void lua_pushvalue (lua_State *L, int idx) { - lua_lock(L); - setobj2s(L, L->top, index2addr(L, idx)); - api_incr_top(L); - lua_unlock(L); -} - - - -/* -** access functions (stack -> C) -*/ - - -LUA_API int lua_type (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - return (isvalid(o) ? ttypenv(o) : LUA_TNONE); -} - - -LUA_API const char *lua_typename (lua_State *L, int t) { - UNUSED(L); - return ttypename(t); -} - - -LUA_API int lua_iscfunction (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - return (ttislcf(o) || (ttisCclosure(o))); -} - - -LUA_API int lua_isnumber (lua_State *L, int idx) { - TValue n; - const TValue *o = index2addr(L, idx); - return tonumber(o, &n); -} - - -LUA_API int lua_isstring (lua_State *L, int idx) { - int t = lua_type(L, idx); - return (t == LUA_TSTRING || t == LUA_TNUMBER); -} - - -LUA_API int lua_isuserdata (lua_State *L, int idx) { - const TValue *o = index2addr(L, idx); - return (ttisuserdata(o) || ttislightuserdata(o)); -} - - -LUA_API int lua_rawequal (lua_State *L, int index1, int index2) { - StkId o1 = index2addr(L, index1); - StkId o2 = index2addr(L, index2); - return (isvalid(o1) && isvalid(o2)) ? luaV_rawequalobj(o1, o2) : 0; -} - - -LUA_API void lua_arith (lua_State *L, int op) { - StkId o1; /* 1st operand */ - StkId o2; /* 2nd operand */ - lua_lock(L); - if (op != LUA_OPUNM) /* all other operations expect two operands */ - api_checknelems(L, 2); - else { /* for unary minus, add fake 2nd operand */ - api_checknelems(L, 1); - setobjs2s(L, L->top, L->top - 1); - L->top++; - } - o1 = L->top - 2; - o2 = L->top - 1; - if (ttisnumber(o1) && ttisnumber(o2)) { - setnvalue(o1, luaO_arith(op, nvalue(o1), nvalue(o2))); - } - else - luaV_arith(L, o1, o1, o2, cast(TMS, op - LUA_OPADD + TM_ADD)); - L->top--; - lua_unlock(L); -} - - -LUA_API int lua_compare (lua_State *L, int index1, int index2, int op) { - StkId o1, o2; - int i = 0; - lua_lock(L); /* may call tag method */ - o1 = index2addr(L, index1); - o2 = index2addr(L, index2); - if (isvalid(o1) && isvalid(o2)) { - switch (op) { - case LUA_OPEQ: i = equalobj(L, o1, o2); break; - case LUA_OPLT: i = luaV_lessthan(L, o1, o2); break; - case LUA_OPLE: i = luaV_lessequal(L, o1, o2); break; - default: api_check(L, 0, "invalid option"); - } - } - lua_unlock(L); - return i; -} - - -LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *isnum) { - TValue n; - const TValue *o = index2addr(L, idx); - if (tonumber(o, &n)) { - if (isnum) *isnum = 1; - return nvalue(o); - } - else { - if (isnum) *isnum = 0; - return 0; - } -} - - -LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum) { - TValue n; - const TValue *o = index2addr(L, idx); - if (tonumber(o, &n)) { - lua_Integer res; - lua_Number num = nvalue(o); - lua_number2integer(res, num); - if (isnum) *isnum = 1; - return res; - } - else { - if (isnum) *isnum = 0; - return 0; - } -} - - -LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *isnum) { - TValue n; - const TValue *o = index2addr(L, idx); - if (tonumber(o, &n)) { - lua_Unsigned res; - lua_Number num = nvalue(o); - lua_number2unsigned(res, num); - if (isnum) *isnum = 1; - return res; - } - else { - if (isnum) *isnum = 0; - return 0; - } -} - - -LUA_API int lua_toboolean (lua_State *L, int idx) { - const TValue *o = index2addr(L, idx); - return !l_isfalse(o); -} - - -LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { - StkId o = index2addr(L, idx); - if (!ttisstring(o)) { - lua_lock(L); /* `luaV_tostring' may create a new string */ - if (!luaV_tostring(L, o)) { /* conversion failed? */ - if (len != NULL) *len = 0; - lua_unlock(L); - return NULL; - } - luaC_checkGC(L); - o = index2addr(L, idx); /* previous call may reallocate the stack */ - lua_unlock(L); - } - if (len != NULL) *len = tsvalue(o)->len; - return svalue(o); -} - - -LUA_API size_t lua_rawlen (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - switch (ttypenv(o)) { - case LUA_TSTRING: return tsvalue(o)->len; - case LUA_TUSERDATA: return uvalue(o)->len; - case LUA_TTABLE: return luaH_getn(hvalue(o)); - default: return 0; - } -} - - -LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - if (ttislcf(o)) return fvalue(o); - else if (ttisCclosure(o)) - return clCvalue(o)->f; - else return NULL; /* not a C function */ -} - - -LUA_API void *lua_touserdata (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - switch (ttypenv(o)) { - case LUA_TUSERDATA: return (rawuvalue(o) + 1); - case LUA_TLIGHTUSERDATA: return pvalue(o); - default: return NULL; - } -} - - -LUA_API lua_State *lua_tothread (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - return (!ttisthread(o)) ? NULL : thvalue(o); -} - - -LUA_API const void *lua_topointer (lua_State *L, int idx) { - StkId o = index2addr(L, idx); - switch (ttype(o)) { - case LUA_TTABLE: return hvalue(o); - case LUA_TLCL: return clLvalue(o); - case LUA_TCCL: return clCvalue(o); - case LUA_TLCF: return cast(void *, cast(size_t, fvalue(o))); - case LUA_TTHREAD: return thvalue(o); - case LUA_TUSERDATA: - case LUA_TLIGHTUSERDATA: - return lua_touserdata(L, idx); - default: return NULL; - } -} - - - -/* -** push functions (C -> stack) -*/ - - -LUA_API void lua_pushnil (lua_State *L) { - lua_lock(L); - setnilvalue(L->top); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_pushnumber (lua_State *L, lua_Number n) { - lua_lock(L); - setnvalue(L->top, n); - luai_checknum(L, L->top, - luaG_runerror(L, "C API - attempt to push a signaling NaN")); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { - lua_lock(L); - setnvalue(L->top, cast_num(n)); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_pushunsigned (lua_State *L, lua_Unsigned u) { - lua_Number n; - lua_lock(L); - n = lua_unsigned2number(u); - setnvalue(L->top, n); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API const char *lua_pushlstring (lua_State *L, const char *s, size_t len) { - TString *ts; - lua_lock(L); - luaC_checkGC(L); - ts = luaS_newlstr(L, s, len); - setsvalue2s(L, L->top, ts); - api_incr_top(L); - lua_unlock(L); - return getstr(ts); -} - - -LUA_API const char *lua_pushstring (lua_State *L, const char *s) { - if (s == NULL) { - lua_pushnil(L); - return NULL; - } - else { - TString *ts; - lua_lock(L); - luaC_checkGC(L); - ts = luaS_new(L, s); - setsvalue2s(L, L->top, ts); - api_incr_top(L); - lua_unlock(L); - return getstr(ts); - } -} - - -LUA_API const char *lua_pushvfstring (lua_State *L, const char *fmt, - va_list argp) { - const char *ret; - lua_lock(L); - luaC_checkGC(L); - ret = luaO_pushvfstring(L, fmt, argp); - lua_unlock(L); - return ret; -} - - -LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) { - const char *ret; - va_list argp; - lua_lock(L); - luaC_checkGC(L); - va_start(argp, fmt); - ret = luaO_pushvfstring(L, fmt, argp); - va_end(argp); - lua_unlock(L); - return ret; -} - - -LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) { - lua_lock(L); - if (n == 0) { - setfvalue(L->top, fn); - } - else { - Closure *cl; - api_checknelems(L, n); - api_check(L, n <= MAXUPVAL, "upvalue index too large"); - luaC_checkGC(L); - cl = luaF_newCclosure(L, n); - cl->c.f = fn; - L->top -= n; - while (n--) - setobj2n(L, &cl->c.upvalue[n], L->top + n); - setclCvalue(L, L->top, cl); - } - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_pushboolean (lua_State *L, int b) { - lua_lock(L); - setbvalue(L->top, (b != 0)); /* ensure that true is 1 */ - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_pushlightuserdata (lua_State *L, void *p) { - lua_lock(L); - setpvalue(L->top, p); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API int lua_pushthread (lua_State *L) { - lua_lock(L); - setthvalue(L, L->top, L); - api_incr_top(L); - lua_unlock(L); - return (G(L)->mainthread == L); -} - - - -/* -** get functions (Lua -> stack) -*/ - - -LUA_API void lua_getglobal (lua_State *L, const char *var) { - Table *reg = hvalue(&G(L)->l_registry); - const TValue *gt; /* global table */ - lua_lock(L); - gt = luaH_getint(reg, LUA_RIDX_GLOBALS); - setsvalue2s(L, L->top++, luaS_new(L, var)); - luaV_gettable(L, gt, L->top - 1, L->top - 1); - lua_unlock(L); -} - - -LUA_API void lua_gettable (lua_State *L, int idx) { - StkId t; - lua_lock(L); - t = index2addr(L, idx); - luaV_gettable(L, t, L->top - 1, L->top - 1); - lua_unlock(L); -} - - -LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { - StkId t; - lua_lock(L); - t = index2addr(L, idx); - setsvalue2s(L, L->top, luaS_new(L, k)); - api_incr_top(L); - luaV_gettable(L, t, L->top - 1, L->top - 1); - lua_unlock(L); -} - - -LUA_API void lua_rawget (lua_State *L, int idx) { - StkId t; - lua_lock(L); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1)); - lua_unlock(L); -} - - -LUA_API void lua_rawgeti (lua_State *L, int idx, int n) { - StkId t; - lua_lock(L); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - setobj2s(L, L->top, luaH_getint(hvalue(t), n)); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_rawgetp (lua_State *L, int idx, const void *p) { - StkId t; - TValue k; - lua_lock(L); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - setpvalue(&k, cast(void *, p)); - setobj2s(L, L->top, luaH_get(hvalue(t), &k)); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { - Table *t; - lua_lock(L); - luaC_checkGC(L); - t = luaH_new(L); - sethvalue(L, L->top, t); - api_incr_top(L); - if (narray > 0 || nrec > 0) - luaH_resize(L, t, narray, nrec); - lua_unlock(L); -} - - -LUA_API int lua_getmetatable (lua_State *L, int objindex) { - const TValue *obj; - Table *mt = NULL; - int res; - lua_lock(L); - obj = index2addr(L, objindex); - switch (ttypenv(obj)) { - case LUA_TTABLE: - mt = hvalue(obj)->metatable; - break; - case LUA_TUSERDATA: - mt = uvalue(obj)->metatable; - break; - default: - mt = G(L)->mt[ttypenv(obj)]; - break; - } - if (mt == NULL) - res = 0; - else { - sethvalue(L, L->top, mt); - api_incr_top(L); - res = 1; - } - lua_unlock(L); - return res; -} - - -LUA_API void lua_getuservalue (lua_State *L, int idx) { - StkId o; - lua_lock(L); - o = index2addr(L, idx); - api_check(L, ttisuserdata(o), "userdata expected"); - if (uvalue(o)->env) { - sethvalue(L, L->top, uvalue(o)->env); - } else - setnilvalue(L->top); - api_incr_top(L); - lua_unlock(L); -} - - -/* -** set functions (stack -> Lua) -*/ - - -LUA_API void lua_setglobal (lua_State *L, const char *var) { - Table *reg = hvalue(&G(L)->l_registry); - const TValue *gt; /* global table */ - lua_lock(L); - api_checknelems(L, 1); - gt = luaH_getint(reg, LUA_RIDX_GLOBALS); - setsvalue2s(L, L->top++, luaS_new(L, var)); - luaV_settable(L, gt, L->top - 1, L->top - 2); - L->top -= 2; /* pop value and key */ - lua_unlock(L); -} - - -LUA_API void lua_settable (lua_State *L, int idx) { - StkId t; - lua_lock(L); - api_checknelems(L, 2); - t = index2addr(L, idx); - luaV_settable(L, t, L->top - 2, L->top - 1); - L->top -= 2; /* pop index and value */ - lua_unlock(L); -} - - -LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { - StkId t; - lua_lock(L); - api_checknelems(L, 1); - t = index2addr(L, idx); - setsvalue2s(L, L->top++, luaS_new(L, k)); - luaV_settable(L, t, L->top - 1, L->top - 2); - L->top -= 2; /* pop value and key */ - lua_unlock(L); -} - - -LUA_API void lua_rawset (lua_State *L, int idx) { - StkId t; - lua_lock(L); - api_checknelems(L, 2); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); - invalidateTMcache(hvalue(t)); - luaC_barrierback(L, gcvalue(t), L->top-1); - L->top -= 2; - lua_unlock(L); -} - - -LUA_API void lua_rawseti (lua_State *L, int idx, int n) { - StkId t; - lua_lock(L); - api_checknelems(L, 1); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - luaH_setint(L, hvalue(t), n, L->top - 1); - luaC_barrierback(L, gcvalue(t), L->top-1); - L->top--; - lua_unlock(L); -} - - -LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) { - StkId t; - TValue k; - lua_lock(L); - api_checknelems(L, 1); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - setpvalue(&k, cast(void *, p)); - setobj2t(L, luaH_set(L, hvalue(t), &k), L->top - 1); - luaC_barrierback(L, gcvalue(t), L->top - 1); - L->top--; - lua_unlock(L); -} - - -LUA_API int lua_setmetatable (lua_State *L, int objindex) { - TValue *obj; - Table *mt; - lua_lock(L); - api_checknelems(L, 1); - obj = index2addr(L, objindex); - if (ttisnil(L->top - 1)) - mt = NULL; - else { - api_check(L, ttistable(L->top - 1), "table expected"); - mt = hvalue(L->top - 1); - } - switch (ttypenv(obj)) { - case LUA_TTABLE: { - hvalue(obj)->metatable = mt; - if (mt) { - luaC_objbarrierback(L, gcvalue(obj), mt); - luaC_checkfinalizer(L, gcvalue(obj), mt); - } - break; - } - case LUA_TUSERDATA: { - uvalue(obj)->metatable = mt; - if (mt) { - luaC_objbarrier(L, rawuvalue(obj), mt); - luaC_checkfinalizer(L, gcvalue(obj), mt); - } - break; - } - default: { - G(L)->mt[ttypenv(obj)] = mt; - break; - } - } - L->top--; - lua_unlock(L); - return 1; -} - - -LUA_API void lua_setuservalue (lua_State *L, int idx) { - StkId o; - lua_lock(L); - api_checknelems(L, 1); - o = index2addr(L, idx); - api_check(L, ttisuserdata(o), "userdata expected"); - if (ttisnil(L->top - 1)) - uvalue(o)->env = NULL; - else { - api_check(L, ttistable(L->top - 1), "table expected"); - uvalue(o)->env = hvalue(L->top - 1); - luaC_objbarrier(L, gcvalue(o), hvalue(L->top - 1)); - } - L->top--; - lua_unlock(L); -} - - -/* -** `load' and `call' functions (run Lua code) -*/ - - -#define checkresults(L,na,nr) \ - api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)), \ - "results from function overflow current stack size") - - -LUA_API int lua_getctx (lua_State *L, int *ctx) { - if (L->ci->callstatus & CIST_YIELDED) { - if (ctx) *ctx = L->ci->u.c.ctx; - return L->ci->u.c.status; - } - else return LUA_OK; -} - - -LUA_API void lua_callk (lua_State *L, int nargs, int nresults, int ctx, - lua_CFunction k) { - StkId func; - lua_lock(L); - api_check(L, k == NULL || !isLua(L->ci), - "cannot use continuations inside hooks"); - api_checknelems(L, nargs+1); - api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); - checkresults(L, nargs, nresults); - func = L->top - (nargs+1); - if (k != NULL && L->nny == 0) { /* need to prepare continuation? */ - L->ci->u.c.k = k; /* save continuation */ - L->ci->u.c.ctx = ctx; /* save context */ - luaD_call(L, func, nresults, 1); /* do the call */ - } - else /* no continuation or no yieldable */ - luaD_call(L, func, nresults, 0); /* just do the call */ - adjustresults(L, nresults); - lua_unlock(L); -} - - - -/* -** Execute a protected call. -*/ -struct CallS { /* data to `f_call' */ - StkId func; - int nresults; -}; - - -static void f_call (lua_State *L, void *ud) { - struct CallS *c = cast(struct CallS *, ud); - luaD_call(L, c->func, c->nresults, 0); -} - - - -LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, - int ctx, lua_CFunction k) { - struct CallS c; - int status; - ptrdiff_t func; - lua_lock(L); - api_check(L, k == NULL || !isLua(L->ci), - "cannot use continuations inside hooks"); - api_checknelems(L, nargs+1); - api_check(L, L->status == LUA_OK, "cannot do calls on non-normal thread"); - checkresults(L, nargs, nresults); - if (errfunc == 0) - func = 0; - else { - StkId o = index2addr(L, errfunc); - api_checkstackindex(L, errfunc, o); - func = savestack(L, o); - } - c.func = L->top - (nargs+1); /* function to be called */ - if (k == NULL || L->nny > 0) { /* no continuation or no yieldable? */ - c.nresults = nresults; /* do a 'conventional' protected call */ - status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func); - } - else { /* prepare continuation (call is already protected by 'resume') */ - CallInfo *ci = L->ci; - ci->u.c.k = k; /* save continuation */ - ci->u.c.ctx = ctx; /* save context */ - /* save information for error recovery */ - ci->extra = savestack(L, c.func); - ci->u.c.old_allowhook = L->allowhook; - ci->u.c.old_errfunc = L->errfunc; - L->errfunc = func; - /* mark that function may do error recovery */ - ci->callstatus |= CIST_YPCALL; - luaD_call(L, c.func, nresults, 1); /* do the call */ - ci->callstatus &= ~CIST_YPCALL; - L->errfunc = ci->u.c.old_errfunc; - status = LUA_OK; /* if it is here, there were no errors */ - } - adjustresults(L, nresults); - lua_unlock(L); - return status; -} - - -LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, - const char *chunkname, const char *mode) { - ZIO z; - int status; - lua_lock(L); - if (!chunkname) chunkname = "?"; - luaZ_init(L, &z, reader, data); - status = luaD_protectedparser(L, &z, chunkname, mode); - if (status == LUA_OK) { /* no errors? */ - LClosure *f = clLvalue(L->top - 1); /* get newly created function */ - if (f->nupvalues == 1) { /* does it have one upvalue? */ - /* get global table from registry */ - Table *reg = hvalue(&G(L)->l_registry); - const TValue *gt = luaH_getint(reg, LUA_RIDX_GLOBALS); - /* set global table as 1st upvalue of 'f' (may be LUA_ENV) */ - setobj(L, f->upvals[0]->v, gt); - luaC_barrier(L, f->upvals[0], gt); - } - } - lua_unlock(L); - return status; -} - - -LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) { - int status; - TValue *o; - lua_lock(L); - api_checknelems(L, 1); - o = L->top - 1; - if (isLfunction(o)) - status = luaU_dump(L, getproto(o), writer, data, 0); - else - status = 1; - lua_unlock(L); - return status; -} - - -LUA_API int lua_status (lua_State *L) { - return L->status; -} - - -/* -** Garbage-collection function -*/ - -LUA_API int lua_gc (lua_State *L, int what, int data) { - int res = 0; - global_State *g; - lua_lock(L); - g = G(L); - switch (what) { - case LUA_GCSTOP: { - g->gcrunning = 0; - break; - } - case LUA_GCRESTART: { - luaE_setdebt(g, 0); - g->gcrunning = 1; - break; - } - case LUA_GCCOLLECT: { - luaC_fullgc(L, 0); - break; - } - case LUA_GCCOUNT: { - /* GC values are expressed in Kbytes: #bytes/2^10 */ - res = cast_int(gettotalbytes(g) >> 10); - break; - } - case LUA_GCCOUNTB: { - res = cast_int(gettotalbytes(g) & 0x3ff); - break; - } - case LUA_GCSTEP: { - if (g->gckind == KGC_GEN) { /* generational mode? */ - res = (g->GCestimate == 0); /* true if it will do major collection */ - luaC_forcestep(L); /* do a single step */ - } - else { - lu_mem debt = cast(lu_mem, data) * 1024 - GCSTEPSIZE; - if (g->gcrunning) - debt += g->GCdebt; /* include current debt */ - luaE_setdebt(g, debt); - luaC_forcestep(L); - if (g->gcstate == GCSpause) /* end of cycle? */ - res = 1; /* signal it */ - } - break; - } - case LUA_GCSETPAUSE: { - res = g->gcpause; - g->gcpause = data; - break; - } - case LUA_GCSETMAJORINC: { - res = g->gcmajorinc; - g->gcmajorinc = data; - break; - } - case LUA_GCSETSTEPMUL: { - res = g->gcstepmul; - g->gcstepmul = data; - break; - } - case LUA_GCISRUNNING: { - res = g->gcrunning; - break; - } - case LUA_GCGEN: { /* change collector to generational mode */ - luaC_changemode(L, KGC_GEN); - break; - } - case LUA_GCINC: { /* change collector to incremental mode */ - luaC_changemode(L, KGC_NORMAL); - break; - } - default: res = -1; /* invalid option */ - } - lua_unlock(L); - return res; -} - - - -/* -** miscellaneous functions -*/ - - -LUA_API int lua_error (lua_State *L) { - lua_lock(L); - api_checknelems(L, 1); - luaG_errormsg(L); - /* code unreachable; will unlock when control actually leaves the kernel */ - return 0; /* to avoid warnings */ -} - - -LUA_API int lua_next (lua_State *L, int idx) { - StkId t; - int more; - lua_lock(L); - t = index2addr(L, idx); - api_check(L, ttistable(t), "table expected"); - more = luaH_next(L, hvalue(t), L->top - 1); - if (more) { - api_incr_top(L); - } - else /* no more elements */ - L->top -= 1; /* remove key */ - lua_unlock(L); - return more; -} - - -LUA_API void lua_concat (lua_State *L, int n) { - lua_lock(L); - api_checknelems(L, n); - if (n >= 2) { - luaC_checkGC(L); - luaV_concat(L, n); - } - else if (n == 0) { /* push empty string */ - setsvalue2s(L, L->top, luaS_newlstr(L, "", 0)); - api_incr_top(L); - } - /* else n == 1; nothing to do */ - lua_unlock(L); -} - - -LUA_API void lua_len (lua_State *L, int idx) { - StkId t; - lua_lock(L); - t = index2addr(L, idx); - luaV_objlen(L, L->top, t); - api_incr_top(L); - lua_unlock(L); -} - - -LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) { - lua_Alloc f; - lua_lock(L); - if (ud) *ud = G(L)->ud; - f = G(L)->frealloc; - lua_unlock(L); - return f; -} - - -LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud) { - lua_lock(L); - G(L)->ud = ud; - G(L)->frealloc = f; - lua_unlock(L); -} - - -LUA_API void *lua_newuserdata (lua_State *L, size_t size) { - Udata *u; - lua_lock(L); - luaC_checkGC(L); - u = luaS_newudata(L, size, NULL); - setuvalue(L, L->top, u); - api_incr_top(L); - lua_unlock(L); - return u + 1; -} - - - -static const char *aux_upvalue (StkId fi, int n, TValue **val, - GCObject **owner) { - switch (ttype(fi)) { - case LUA_TCCL: { /* C closure */ - CClosure *f = clCvalue(fi); - if (!(1 <= n && n <= f->nupvalues)) return NULL; - *val = &f->upvalue[n-1]; - if (owner) *owner = obj2gco(f); - return ""; - } - case LUA_TLCL: { /* Lua closure */ - LClosure *f = clLvalue(fi); - TString *name; - Proto *p = f->p; - if (!(1 <= n && n <= p->sizeupvalues)) return NULL; - *val = f->upvals[n-1]->v; - if (owner) *owner = obj2gco(f->upvals[n - 1]); - name = p->upvalues[n-1].name; - return (name == NULL) ? "" : getstr(name); - } - default: return NULL; /* not a closure */ - } -} - - -LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { - const char *name; - TValue *val = NULL; /* to avoid warnings */ - lua_lock(L); - name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL); - if (name) { - setobj2s(L, L->top, val); - api_incr_top(L); - } - lua_unlock(L); - return name; -} - - -LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { - const char *name; - TValue *val = NULL; /* to avoid warnings */ - GCObject *owner = NULL; /* to avoid warnings */ - StkId fi; - lua_lock(L); - fi = index2addr(L, funcindex); - api_checknelems(L, 1); - name = aux_upvalue(fi, n, &val, &owner); - if (name) { - L->top--; - setobj(L, val, L->top); - luaC_barrier(L, owner, L->top); - } - lua_unlock(L); - return name; -} - - -static UpVal **getupvalref (lua_State *L, int fidx, int n, LClosure **pf) { - LClosure *f; - StkId fi = index2addr(L, fidx); - api_check(L, ttisLclosure(fi), "Lua function expected"); - f = clLvalue(fi); - api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index"); - if (pf) *pf = f; - return &f->upvals[n - 1]; /* get its upvalue pointer */ -} - - -LUA_API void *lua_upvalueid (lua_State *L, int fidx, int n) { - StkId fi = index2addr(L, fidx); - switch (ttype(fi)) { - case LUA_TLCL: { /* lua closure */ - return *getupvalref(L, fidx, n, NULL); - } - case LUA_TCCL: { /* C closure */ - CClosure *f = clCvalue(fi); - api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index"); - return &f->upvalue[n - 1]; - } - default: { - api_check(L, 0, "closure expected"); - return NULL; - } - } -} - - -LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1, - int fidx2, int n2) { - LClosure *f1; - UpVal **up1 = getupvalref(L, fidx1, n1, &f1); - UpVal **up2 = getupvalref(L, fidx2, n2, NULL); - *up1 = *up2; - luaC_objbarrier(L, f1, *up2); -} - diff --git a/btgui/lua-5.2.3/src/lapi.h b/btgui/lua-5.2.3/src/lapi.h deleted file mode 100644 index c7d34ad84..000000000 --- a/btgui/lua-5.2.3/src/lapi.h +++ /dev/null @@ -1,24 +0,0 @@ -/* -** $Id: lapi.h,v 2.7.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions from Lua API -** See Copyright Notice in lua.h -*/ - -#ifndef lapi_h -#define lapi_h - - -#include "llimits.h" -#include "lstate.h" - -#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ - "stack overflow");} - -#define adjustresults(L,nres) \ - { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } - -#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ - "not enough elements in the stack") - - -#endif diff --git a/btgui/lua-5.2.3/src/lauxlib.c b/btgui/lua-5.2.3/src/lauxlib.c deleted file mode 100644 index b00f8c709..000000000 --- a/btgui/lua-5.2.3/src/lauxlib.c +++ /dev/null @@ -1,959 +0,0 @@ -/* -** $Id: lauxlib.c,v 1.248.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions for building Lua libraries -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include -#include -#include - - -/* This file uses only the official API of Lua. -** Any function declared here could be written as an application function. -*/ - -#define lauxlib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" - - -/* -** {====================================================== -** Traceback -** ======================================================= -*/ - - -#define LEVELS1 12 /* size of the first part of the stack */ -#define LEVELS2 10 /* size of the second part of the stack */ - - - -/* -** search for 'objidx' in table at index -1. -** return 1 + string at top if find a good name. -*/ -static int findfield (lua_State *L, int objidx, int level) { - if (level == 0 || !lua_istable(L, -1)) - return 0; /* not found */ - lua_pushnil(L); /* start 'next' loop */ - while (lua_next(L, -2)) { /* for each pair in table */ - if (lua_type(L, -2) == LUA_TSTRING) { /* ignore non-string keys */ - if (lua_rawequal(L, objidx, -1)) { /* found object? */ - lua_pop(L, 1); /* remove value (but keep name) */ - return 1; - } - else if (findfield(L, objidx, level - 1)) { /* try recursively */ - lua_remove(L, -2); /* remove table (but keep name) */ - lua_pushliteral(L, "."); - lua_insert(L, -2); /* place '.' between the two names */ - lua_concat(L, 3); - return 1; - } - } - lua_pop(L, 1); /* remove value */ - } - return 0; /* not found */ -} - - -static int pushglobalfuncname (lua_State *L, lua_Debug *ar) { - int top = lua_gettop(L); - lua_getinfo(L, "f", ar); /* push function */ - lua_pushglobaltable(L); - if (findfield(L, top + 1, 2)) { - lua_copy(L, -1, top + 1); /* move name to proper place */ - lua_pop(L, 2); /* remove pushed values */ - return 1; - } - else { - lua_settop(L, top); /* remove function and global table */ - return 0; - } -} - - -static void pushfuncname (lua_State *L, lua_Debug *ar) { - if (*ar->namewhat != '\0') /* is there a name? */ - lua_pushfstring(L, "function " LUA_QS, ar->name); - else if (*ar->what == 'm') /* main? */ - lua_pushliteral(L, "main chunk"); - else if (*ar->what == 'C') { - if (pushglobalfuncname(L, ar)) { - lua_pushfstring(L, "function " LUA_QS, lua_tostring(L, -1)); - lua_remove(L, -2); /* remove name */ - } - else - lua_pushliteral(L, "?"); - } - else - lua_pushfstring(L, "function <%s:%d>", ar->short_src, ar->linedefined); -} - - -static int countlevels (lua_State *L) { - lua_Debug ar; - int li = 1, le = 1; - /* find an upper bound */ - while (lua_getstack(L, le, &ar)) { li = le; le *= 2; } - /* do a binary search */ - while (li < le) { - int m = (li + le)/2; - if (lua_getstack(L, m, &ar)) li = m + 1; - else le = m; - } - return le - 1; -} - - -LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, - const char *msg, int level) { - lua_Debug ar; - int top = lua_gettop(L); - int numlevels = countlevels(L1); - int mark = (numlevels > LEVELS1 + LEVELS2) ? LEVELS1 : 0; - if (msg) lua_pushfstring(L, "%s\n", msg); - lua_pushliteral(L, "stack traceback:"); - while (lua_getstack(L1, level++, &ar)) { - if (level == mark) { /* too many levels? */ - lua_pushliteral(L, "\n\t..."); /* add a '...' */ - level = numlevels - LEVELS2; /* and skip to last ones */ - } - else { - lua_getinfo(L1, "Slnt", &ar); - lua_pushfstring(L, "\n\t%s:", ar.short_src); - if (ar.currentline > 0) - lua_pushfstring(L, "%d:", ar.currentline); - lua_pushliteral(L, " in "); - pushfuncname(L, &ar); - if (ar.istailcall) - lua_pushliteral(L, "\n\t(...tail calls...)"); - lua_concat(L, lua_gettop(L) - top); - } - } - lua_concat(L, lua_gettop(L) - top); -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Error-report functions -** ======================================================= -*/ - -LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) { - lua_Debug ar; - if (!lua_getstack(L, 0, &ar)) /* no stack frame? */ - return luaL_error(L, "bad argument #%d (%s)", narg, extramsg); - lua_getinfo(L, "n", &ar); - if (strcmp(ar.namewhat, "method") == 0) { - narg--; /* do not count `self' */ - if (narg == 0) /* error is in the self argument itself? */ - return luaL_error(L, "calling " LUA_QS " on bad self (%s)", - ar.name, extramsg); - } - if (ar.name == NULL) - ar.name = (pushglobalfuncname(L, &ar)) ? lua_tostring(L, -1) : "?"; - return luaL_error(L, "bad argument #%d to " LUA_QS " (%s)", - narg, ar.name, extramsg); -} - - -static int typeerror (lua_State *L, int narg, const char *tname) { - const char *msg = lua_pushfstring(L, "%s expected, got %s", - tname, luaL_typename(L, narg)); - return luaL_argerror(L, narg, msg); -} - - -static void tag_error (lua_State *L, int narg, int tag) { - typeerror(L, narg, lua_typename(L, tag)); -} - - -LUALIB_API void luaL_where (lua_State *L, int level) { - lua_Debug ar; - if (lua_getstack(L, level, &ar)) { /* check function at level */ - lua_getinfo(L, "Sl", &ar); /* get info about it */ - if (ar.currentline > 0) { /* is there info? */ - lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline); - return; - } - } - lua_pushliteral(L, ""); /* else, no information available... */ -} - - -LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { - va_list argp; - va_start(argp, fmt); - luaL_where(L, 1); - lua_pushvfstring(L, fmt, argp); - va_end(argp); - lua_concat(L, 2); - return lua_error(L); -} - - -LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) { - int en = errno; /* calls to Lua API may change this value */ - if (stat) { - lua_pushboolean(L, 1); - return 1; - } - else { - lua_pushnil(L); - if (fname) - lua_pushfstring(L, "%s: %s", fname, strerror(en)); - else - lua_pushstring(L, strerror(en)); - lua_pushinteger(L, en); - return 3; - } -} - - -#if !defined(inspectstat) /* { */ - -#if defined(LUA_USE_POSIX) - -#include - -/* -** use appropriate macros to interpret 'pclose' return status -*/ -#define inspectstat(stat,what) \ - if (WIFEXITED(stat)) { stat = WEXITSTATUS(stat); } \ - else if (WIFSIGNALED(stat)) { stat = WTERMSIG(stat); what = "signal"; } - -#else - -#define inspectstat(stat,what) /* no op */ - -#endif - -#endif /* } */ - - -LUALIB_API int luaL_execresult (lua_State *L, int stat) { - const char *what = "exit"; /* type of termination */ - if (stat == -1) /* error? */ - return luaL_fileresult(L, 0, NULL); - else { - inspectstat(stat, what); /* interpret result */ - if (*what == 'e' && stat == 0) /* successful termination? */ - lua_pushboolean(L, 1); - else - lua_pushnil(L); - lua_pushstring(L, what); - lua_pushinteger(L, stat); - return 3; /* return true/nil,what,code */ - } -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Userdata's metatable manipulation -** ======================================================= -*/ - -LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { - luaL_getmetatable(L, tname); /* try to get metatable */ - if (!lua_isnil(L, -1)) /* name already in use? */ - return 0; /* leave previous value on top, but return 0 */ - lua_pop(L, 1); - lua_newtable(L); /* create metatable */ - lua_pushvalue(L, -1); - lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = metatable */ - return 1; -} - - -LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { - luaL_getmetatable(L, tname); - lua_setmetatable(L, -2); -} - - -LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { - void *p = lua_touserdata(L, ud); - if (p != NULL) { /* value is a userdata? */ - if (lua_getmetatable(L, ud)) { /* does it have a metatable? */ - luaL_getmetatable(L, tname); /* get correct metatable */ - if (!lua_rawequal(L, -1, -2)) /* not the same? */ - p = NULL; /* value is a userdata with wrong metatable */ - lua_pop(L, 2); /* remove both metatables */ - return p; - } - } - return NULL; /* value is not a userdata with a metatable */ -} - - -LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { - void *p = luaL_testudata(L, ud, tname); - if (p == NULL) typeerror(L, ud, tname); - return p; -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Argument check functions -** ======================================================= -*/ - -LUALIB_API int luaL_checkoption (lua_State *L, int narg, const char *def, - const char *const lst[]) { - const char *name = (def) ? luaL_optstring(L, narg, def) : - luaL_checkstring(L, narg); - int i; - for (i=0; lst[i]; i++) - if (strcmp(lst[i], name) == 0) - return i; - return luaL_argerror(L, narg, - lua_pushfstring(L, "invalid option " LUA_QS, name)); -} - - -LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) { - /* keep some extra space to run error routines, if needed */ - const int extra = LUA_MINSTACK; - if (!lua_checkstack(L, space + extra)) { - if (msg) - luaL_error(L, "stack overflow (%s)", msg); - else - luaL_error(L, "stack overflow"); - } -} - - -LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) { - if (lua_type(L, narg) != t) - tag_error(L, narg, t); -} - - -LUALIB_API void luaL_checkany (lua_State *L, int narg) { - if (lua_type(L, narg) == LUA_TNONE) - luaL_argerror(L, narg, "value expected"); -} - - -LUALIB_API const char *luaL_checklstring (lua_State *L, int narg, size_t *len) { - const char *s = lua_tolstring(L, narg, len); - if (!s) tag_error(L, narg, LUA_TSTRING); - return s; -} - - -LUALIB_API const char *luaL_optlstring (lua_State *L, int narg, - const char *def, size_t *len) { - if (lua_isnoneornil(L, narg)) { - if (len) - *len = (def ? strlen(def) : 0); - return def; - } - else return luaL_checklstring(L, narg, len); -} - - -LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { - int isnum; - lua_Number d = lua_tonumberx(L, narg, &isnum); - if (!isnum) - tag_error(L, narg, LUA_TNUMBER); - return d; -} - - -LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) { - return luaL_opt(L, luaL_checknumber, narg, def); -} - - -LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { - int isnum; - lua_Integer d = lua_tointegerx(L, narg, &isnum); - if (!isnum) - tag_error(L, narg, LUA_TNUMBER); - return d; -} - - -LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) { - int isnum; - lua_Unsigned d = lua_tounsignedx(L, narg, &isnum); - if (!isnum) - tag_error(L, narg, LUA_TNUMBER); - return d; -} - - -LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, - lua_Integer def) { - return luaL_opt(L, luaL_checkinteger, narg, def); -} - - -LUALIB_API lua_Unsigned luaL_optunsigned (lua_State *L, int narg, - lua_Unsigned def) { - return luaL_opt(L, luaL_checkunsigned, narg, def); -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Generic Buffer manipulation -** ======================================================= -*/ - -/* -** check whether buffer is using a userdata on the stack as a temporary -** buffer -*/ -#define buffonstack(B) ((B)->b != (B)->initb) - - -/* -** returns a pointer to a free area with at least 'sz' bytes -*/ -LUALIB_API char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz) { - lua_State *L = B->L; - if (B->size - B->n < sz) { /* not enough space? */ - char *newbuff; - size_t newsize = B->size * 2; /* double buffer size */ - if (newsize - B->n < sz) /* not big enough? */ - newsize = B->n + sz; - if (newsize < B->n || newsize - B->n < sz) - luaL_error(L, "buffer too large"); - /* create larger buffer */ - newbuff = (char *)lua_newuserdata(L, newsize * sizeof(char)); - /* move content to new buffer */ - memcpy(newbuff, B->b, B->n * sizeof(char)); - if (buffonstack(B)) - lua_remove(L, -2); /* remove old buffer */ - B->b = newbuff; - B->size = newsize; - } - return &B->b[B->n]; -} - - -LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { - char *b = luaL_prepbuffsize(B, l); - memcpy(b, s, l * sizeof(char)); - luaL_addsize(B, l); -} - - -LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { - luaL_addlstring(B, s, strlen(s)); -} - - -LUALIB_API void luaL_pushresult (luaL_Buffer *B) { - lua_State *L = B->L; - lua_pushlstring(L, B->b, B->n); - if (buffonstack(B)) - lua_remove(L, -2); /* remove old buffer */ -} - - -LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) { - luaL_addsize(B, sz); - luaL_pushresult(B); -} - - -LUALIB_API void luaL_addvalue (luaL_Buffer *B) { - lua_State *L = B->L; - size_t l; - const char *s = lua_tolstring(L, -1, &l); - if (buffonstack(B)) - lua_insert(L, -2); /* put value below buffer */ - luaL_addlstring(B, s, l); - lua_remove(L, (buffonstack(B)) ? -2 : -1); /* remove value */ -} - - -LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) { - B->L = L; - B->b = B->initb; - B->n = 0; - B->size = LUAL_BUFFERSIZE; -} - - -LUALIB_API char *luaL_buffinitsize (lua_State *L, luaL_Buffer *B, size_t sz) { - luaL_buffinit(L, B); - return luaL_prepbuffsize(B, sz); -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Reference system -** ======================================================= -*/ - -/* index of free-list header */ -#define freelist 0 - - -LUALIB_API int luaL_ref (lua_State *L, int t) { - int ref; - if (lua_isnil(L, -1)) { - lua_pop(L, 1); /* remove from stack */ - return LUA_REFNIL; /* `nil' has a unique fixed reference */ - } - t = lua_absindex(L, t); - lua_rawgeti(L, t, freelist); /* get first free element */ - ref = (int)lua_tointeger(L, -1); /* ref = t[freelist] */ - lua_pop(L, 1); /* remove it from stack */ - if (ref != 0) { /* any free element? */ - lua_rawgeti(L, t, ref); /* remove it from list */ - lua_rawseti(L, t, freelist); /* (t[freelist] = t[ref]) */ - } - else /* no free elements */ - ref = (int)lua_rawlen(L, t) + 1; /* get a new reference */ - lua_rawseti(L, t, ref); - return ref; -} - - -LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { - if (ref >= 0) { - t = lua_absindex(L, t); - lua_rawgeti(L, t, freelist); - lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */ - lua_pushinteger(L, ref); - lua_rawseti(L, t, freelist); /* t[freelist] = ref */ - } -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Load functions -** ======================================================= -*/ - -typedef struct LoadF { - int n; /* number of pre-read characters */ - FILE *f; /* file being read */ - char buff[LUAL_BUFFERSIZE]; /* area for reading file */ -} LoadF; - - -static const char *getF (lua_State *L, void *ud, size_t *size) { - LoadF *lf = (LoadF *)ud; - (void)L; /* not used */ - if (lf->n > 0) { /* are there pre-read characters to be read? */ - *size = lf->n; /* return them (chars already in buffer) */ - lf->n = 0; /* no more pre-read characters */ - } - else { /* read a block from file */ - /* 'fread' can return > 0 *and* set the EOF flag. If next call to - 'getF' called 'fread', it might still wait for user input. - The next check avoids this problem. */ - if (feof(lf->f)) return NULL; - *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); /* read block */ - } - return lf->buff; -} - - -static int errfile (lua_State *L, const char *what, int fnameindex) { - const char *serr = strerror(errno); - const char *filename = lua_tostring(L, fnameindex) + 1; - lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr); - lua_remove(L, fnameindex); - return LUA_ERRFILE; -} - - -static int skipBOM (LoadF *lf) { - const char *p = "\xEF\xBB\xBF"; /* Utf8 BOM mark */ - int c; - lf->n = 0; - do { - c = getc(lf->f); - if (c == EOF || c != *(const unsigned char *)p++) return c; - lf->buff[lf->n++] = c; /* to be read by the parser */ - } while (*p != '\0'); - lf->n = 0; /* prefix matched; discard it */ - return getc(lf->f); /* return next character */ -} - - -/* -** reads the first character of file 'f' and skips an optional BOM mark -** in its beginning plus its first line if it starts with '#'. Returns -** true if it skipped the first line. In any case, '*cp' has the -** first "valid" character of the file (after the optional BOM and -** a first-line comment). -*/ -static int skipcomment (LoadF *lf, int *cp) { - int c = *cp = skipBOM(lf); - if (c == '#') { /* first line is a comment (Unix exec. file)? */ - do { /* skip first line */ - c = getc(lf->f); - } while (c != EOF && c != '\n') ; - *cp = getc(lf->f); /* skip end-of-line, if present */ - return 1; /* there was a comment */ - } - else return 0; /* no comment */ -} - - -LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename, - const char *mode) { - LoadF lf; - int status, readstatus; - int c; - int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ - if (filename == NULL) { - lua_pushliteral(L, "=stdin"); - lf.f = stdin; - } - else { - lua_pushfstring(L, "@%s", filename); - lf.f = fopen(filename, "r"); - if (lf.f == NULL) return errfile(L, "open", fnameindex); - } - if (skipcomment(&lf, &c)) /* read initial portion */ - lf.buff[lf.n++] = '\n'; /* add line to correct line numbers */ - if (c == LUA_SIGNATURE[0] && filename) { /* binary file? */ - lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ - if (lf.f == NULL) return errfile(L, "reopen", fnameindex); - skipcomment(&lf, &c); /* re-read initial portion */ - } - if (c != EOF) - lf.buff[lf.n++] = c; /* 'c' is the first character of the stream */ - status = lua_load(L, getF, &lf, lua_tostring(L, -1), mode); - readstatus = ferror(lf.f); - if (filename) fclose(lf.f); /* close file (even in case of errors) */ - if (readstatus) { - lua_settop(L, fnameindex); /* ignore results from `lua_load' */ - return errfile(L, "read", fnameindex); - } - lua_remove(L, fnameindex); - return status; -} - - -typedef struct LoadS { - const char *s; - size_t size; -} LoadS; - - -static const char *getS (lua_State *L, void *ud, size_t *size) { - LoadS *ls = (LoadS *)ud; - (void)L; /* not used */ - if (ls->size == 0) return NULL; - *size = ls->size; - ls->size = 0; - return ls->s; -} - - -LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size, - const char *name, const char *mode) { - LoadS ls; - ls.s = buff; - ls.size = size; - return lua_load(L, getS, &ls, name, mode); -} - - -LUALIB_API int luaL_loadstring (lua_State *L, const char *s) { - return luaL_loadbuffer(L, s, strlen(s), s); -} - -/* }====================================================== */ - - - -LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *event) { - if (!lua_getmetatable(L, obj)) /* no metatable? */ - return 0; - lua_pushstring(L, event); - lua_rawget(L, -2); - if (lua_isnil(L, -1)) { - lua_pop(L, 2); /* remove metatable and metafield */ - return 0; - } - else { - lua_remove(L, -2); /* remove only metatable */ - return 1; - } -} - - -LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { - obj = lua_absindex(L, obj); - if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ - return 0; - lua_pushvalue(L, obj); - lua_call(L, 1, 1); - return 1; -} - - -LUALIB_API int luaL_len (lua_State *L, int idx) { - int l; - int isnum; - lua_len(L, idx); - l = (int)lua_tointegerx(L, -1, &isnum); - if (!isnum) - luaL_error(L, "object length is not a number"); - lua_pop(L, 1); /* remove object */ - return l; -} - - -LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) { - if (!luaL_callmeta(L, idx, "__tostring")) { /* no metafield? */ - switch (lua_type(L, idx)) { - case LUA_TNUMBER: - case LUA_TSTRING: - lua_pushvalue(L, idx); - break; - case LUA_TBOOLEAN: - lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false")); - break; - case LUA_TNIL: - lua_pushliteral(L, "nil"); - break; - default: - lua_pushfstring(L, "%s: %p", luaL_typename(L, idx), - lua_topointer(L, idx)); - break; - } - } - return lua_tolstring(L, -1, len); -} - - -/* -** {====================================================== -** Compatibility with 5.1 module functions -** ======================================================= -*/ -#if defined(LUA_COMPAT_MODULE) - -static const char *luaL_findtable (lua_State *L, int idx, - const char *fname, int szhint) { - const char *e; - if (idx) lua_pushvalue(L, idx); - do { - e = strchr(fname, '.'); - if (e == NULL) e = fname + strlen(fname); - lua_pushlstring(L, fname, e - fname); - lua_rawget(L, -2); - if (lua_isnil(L, -1)) { /* no such field? */ - lua_pop(L, 1); /* remove this nil */ - lua_createtable(L, 0, (*e == '.' ? 1 : szhint)); /* new table for field */ - lua_pushlstring(L, fname, e - fname); - lua_pushvalue(L, -2); - lua_settable(L, -4); /* set new table into field */ - } - else if (!lua_istable(L, -1)) { /* field has a non-table value? */ - lua_pop(L, 2); /* remove table and value */ - return fname; /* return problematic part of the name */ - } - lua_remove(L, -2); /* remove previous table */ - fname = e + 1; - } while (*e == '.'); - return NULL; -} - - -/* -** Count number of elements in a luaL_Reg list. -*/ -static int libsize (const luaL_Reg *l) { - int size = 0; - for (; l && l->name; l++) size++; - return size; -} - - -/* -** Find or create a module table with a given name. The function -** first looks at the _LOADED table and, if that fails, try a -** global variable with that name. In any case, leaves on the stack -** the module table. -*/ -LUALIB_API void luaL_pushmodule (lua_State *L, const char *modname, - int sizehint) { - luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 1); /* get _LOADED table */ - lua_getfield(L, -1, modname); /* get _LOADED[modname] */ - if (!lua_istable(L, -1)) { /* not found? */ - lua_pop(L, 1); /* remove previous result */ - /* try global variable (and create one if it does not exist) */ - lua_pushglobaltable(L); - if (luaL_findtable(L, 0, modname, sizehint) != NULL) - luaL_error(L, "name conflict for module " LUA_QS, modname); - lua_pushvalue(L, -1); - lua_setfield(L, -3, modname); /* _LOADED[modname] = new table */ - } - lua_remove(L, -2); /* remove _LOADED table */ -} - - -LUALIB_API void luaL_openlib (lua_State *L, const char *libname, - const luaL_Reg *l, int nup) { - luaL_checkversion(L); - if (libname) { - luaL_pushmodule(L, libname, libsize(l)); /* get/create library table */ - lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ - } - if (l) - luaL_setfuncs(L, l, nup); - else - lua_pop(L, nup); /* remove upvalues */ -} - -#endif -/* }====================================================== */ - -/* -** set functions from list 'l' into table at top - 'nup'; each -** function gets the 'nup' elements at the top as upvalues. -** Returns with only the table at the stack. -*/ -LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { - luaL_checkversion(L); - luaL_checkstack(L, nup, "too many upvalues"); - for (; l->name != NULL; l++) { /* fill the table with given functions */ - int i; - for (i = 0; i < nup; i++) /* copy upvalues to the top */ - lua_pushvalue(L, -nup); - lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ - lua_setfield(L, -(nup + 2), l->name); - } - lua_pop(L, nup); /* remove upvalues */ -} - - -/* -** ensure that stack[idx][fname] has a table and push that table -** into the stack -*/ -LUALIB_API int luaL_getsubtable (lua_State *L, int idx, const char *fname) { - lua_getfield(L, idx, fname); - if (lua_istable(L, -1)) return 1; /* table already there */ - else { - lua_pop(L, 1); /* remove previous result */ - idx = lua_absindex(L, idx); - lua_newtable(L); - lua_pushvalue(L, -1); /* copy to be left at top */ - lua_setfield(L, idx, fname); /* assign new table to field */ - return 0; /* false, because did not find table there */ - } -} - - -/* -** stripped-down 'require'. Calls 'openf' to open a module, -** registers the result in 'package.loaded' table and, if 'glb' -** is true, also registers the result in the global table. -** Leaves resulting module on the top. -*/ -LUALIB_API void luaL_requiref (lua_State *L, const char *modname, - lua_CFunction openf, int glb) { - lua_pushcfunction(L, openf); - lua_pushstring(L, modname); /* argument to open function */ - lua_call(L, 1, 1); /* open module */ - luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED"); - lua_pushvalue(L, -2); /* make copy of module (call result) */ - lua_setfield(L, -2, modname); /* _LOADED[modname] = module */ - lua_pop(L, 1); /* remove _LOADED table */ - if (glb) { - lua_pushvalue(L, -1); /* copy of 'mod' */ - lua_setglobal(L, modname); /* _G[modname] = module */ - } -} - - -LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, - const char *r) { - const char *wild; - size_t l = strlen(p); - luaL_Buffer b; - luaL_buffinit(L, &b); - while ((wild = strstr(s, p)) != NULL) { - luaL_addlstring(&b, s, wild - s); /* push prefix */ - luaL_addstring(&b, r); /* push replacement in place of pattern */ - s = wild + l; /* continue after `p' */ - } - luaL_addstring(&b, s); /* push last suffix */ - luaL_pushresult(&b); - return lua_tostring(L, -1); -} - - -static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) { - (void)ud; (void)osize; /* not used */ - if (nsize == 0) { - free(ptr); - return NULL; - } - else - return realloc(ptr, nsize); -} - - -static int panic (lua_State *L) { - luai_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n", - lua_tostring(L, -1)); - return 0; /* return to Lua to abort */ -} - - -LUALIB_API lua_State *luaL_newstate (void) { - lua_State *L = lua_newstate(l_alloc, NULL); - if (L) lua_atpanic(L, &panic); - return L; -} - - -LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver) { - const lua_Number *v = lua_version(L); - if (v != lua_version(NULL)) - luaL_error(L, "multiple Lua VMs detected"); - else if (*v != ver) - luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", - ver, *v); - /* check conversions number -> integer types */ - lua_pushnumber(L, -(lua_Number)0x1234); - if (lua_tointeger(L, -1) != -0x1234 || - lua_tounsigned(L, -1) != (lua_Unsigned)-0x1234) - luaL_error(L, "bad conversion number->int;" - " must recompile Lua with proper settings"); - lua_pop(L, 1); -} - diff --git a/btgui/lua-5.2.3/src/lauxlib.h b/btgui/lua-5.2.3/src/lauxlib.h deleted file mode 100644 index 0fb023b8e..000000000 --- a/btgui/lua-5.2.3/src/lauxlib.h +++ /dev/null @@ -1,212 +0,0 @@ -/* -** $Id: lauxlib.h,v 1.120.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions for building Lua libraries -** See Copyright Notice in lua.h -*/ - - -#ifndef lauxlib_h -#define lauxlib_h - - -#include -#include - -#include "lua.h" - - - -/* extra error code for `luaL_load' */ -#define LUA_ERRFILE (LUA_ERRERR+1) - - -typedef struct luaL_Reg { - const char *name; - lua_CFunction func; -} luaL_Reg; - - -LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver); -#define luaL_checkversion(L) luaL_checkversion_(L, LUA_VERSION_NUM) - -LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); -LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); -LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); -LUALIB_API int (luaL_argerror) (lua_State *L, int numarg, const char *extramsg); -LUALIB_API const char *(luaL_checklstring) (lua_State *L, int numArg, - size_t *l); -LUALIB_API const char *(luaL_optlstring) (lua_State *L, int numArg, - const char *def, size_t *l); -LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int numArg); -LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int nArg, lua_Number def); - -LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); -LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg, - lua_Integer def); -LUALIB_API lua_Unsigned (luaL_checkunsigned) (lua_State *L, int numArg); -LUALIB_API lua_Unsigned (luaL_optunsigned) (lua_State *L, int numArg, - lua_Unsigned def); - -LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); -LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t); -LUALIB_API void (luaL_checkany) (lua_State *L, int narg); - -LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname); -LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname); -LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname); -LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname); - -LUALIB_API void (luaL_where) (lua_State *L, int lvl); -LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...); - -LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def, - const char *const lst[]); - -LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); -LUALIB_API int (luaL_execresult) (lua_State *L, int stat); - -/* pre-defined references */ -#define LUA_NOREF (-2) -#define LUA_REFNIL (-1) - -LUALIB_API int (luaL_ref) (lua_State *L, int t); -LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); - -LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename, - const char *mode); - -#define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL) - -LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, - const char *name, const char *mode); -LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s); - -LUALIB_API lua_State *(luaL_newstate) (void); - -LUALIB_API int (luaL_len) (lua_State *L, int idx); - -LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p, - const char *r); - -LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup); - -LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname); - -LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1, - const char *msg, int level); - -LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, - lua_CFunction openf, int glb); - -/* -** =============================================================== -** some useful macros -** =============================================================== -*/ - - -#define luaL_newlibtable(L,l) \ - lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1) - -#define luaL_newlib(L,l) (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0)) - -#define luaL_argcheck(L, cond,numarg,extramsg) \ - ((void)((cond) || luaL_argerror(L, (numarg), (extramsg)))) -#define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) -#define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) -#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) -#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) -#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n))) -#define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d))) - -#define luaL_typename(L,i) lua_typename(L, lua_type(L,(i))) - -#define luaL_dofile(L, fn) \ - (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0)) - -#define luaL_dostring(L, s) \ - (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0)) - -#define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n))) - -#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) - -#define luaL_loadbuffer(L,s,sz,n) luaL_loadbufferx(L,s,sz,n,NULL) - - -/* -** {====================================================== -** Generic Buffer manipulation -** ======================================================= -*/ - -typedef struct luaL_Buffer { - char *b; /* buffer address */ - size_t size; /* buffer size */ - size_t n; /* number of characters in buffer */ - lua_State *L; - char initb[LUAL_BUFFERSIZE]; /* initial buffer */ -} luaL_Buffer; - - -#define luaL_addchar(B,c) \ - ((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \ - ((B)->b[(B)->n++] = (c))) - -#define luaL_addsize(B,s) ((B)->n += (s)) - -LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B); -LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz); -LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); -LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s); -LUALIB_API void (luaL_addvalue) (luaL_Buffer *B); -LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); -LUALIB_API void (luaL_pushresultsize) (luaL_Buffer *B, size_t sz); -LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz); - -#define luaL_prepbuffer(B) luaL_prepbuffsize(B, LUAL_BUFFERSIZE) - -/* }====================================================== */ - - - -/* -** {====================================================== -** File handles for IO library -** ======================================================= -*/ - -/* -** A file handle is a userdata with metatable 'LUA_FILEHANDLE' and -** initial structure 'luaL_Stream' (it may contain other fields -** after that initial structure). -*/ - -#define LUA_FILEHANDLE "FILE*" - - -typedef struct luaL_Stream { - FILE *f; /* stream (NULL for incompletely created streams) */ - lua_CFunction closef; /* to close stream (NULL for closed streams) */ -} luaL_Stream; - -/* }====================================================== */ - - - -/* compatibility with old module system */ -#if defined(LUA_COMPAT_MODULE) - -LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname, - int sizehint); -LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, - const luaL_Reg *l, int nup); - -#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0)) - -#endif - - -#endif - - diff --git a/btgui/lua-5.2.3/src/lbaselib.c b/btgui/lua-5.2.3/src/lbaselib.c deleted file mode 100644 index 5255b3cd9..000000000 --- a/btgui/lua-5.2.3/src/lbaselib.c +++ /dev/null @@ -1,458 +0,0 @@ -/* -** $Id: lbaselib.c,v 1.276.1.1 2013/04/12 18:48:47 roberto Exp $ -** Basic library -** See Copyright Notice in lua.h -*/ - - - -#include -#include -#include -#include - -#define lbaselib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -static int luaB_print (lua_State *L) { - int n = lua_gettop(L); /* number of arguments */ - int i; - lua_getglobal(L, "tostring"); - for (i=1; i<=n; i++) { - const char *s; - size_t l; - lua_pushvalue(L, -1); /* function to be called */ - lua_pushvalue(L, i); /* value to print */ - lua_call(L, 1, 1); - s = lua_tolstring(L, -1, &l); /* get result */ - if (s == NULL) - return luaL_error(L, - LUA_QL("tostring") " must return a string to " LUA_QL("print")); - if (i>1) luai_writestring("\t", 1); - luai_writestring(s, l); - lua_pop(L, 1); /* pop result */ - } - luai_writeline(); - return 0; -} - - -#define SPACECHARS " \f\n\r\t\v" - -static int luaB_tonumber (lua_State *L) { - if (lua_isnoneornil(L, 2)) { /* standard conversion */ - int isnum; - lua_Number n = lua_tonumberx(L, 1, &isnum); - if (isnum) { - lua_pushnumber(L, n); - return 1; - } /* else not a number; must be something */ - luaL_checkany(L, 1); - } - else { - size_t l; - const char *s = luaL_checklstring(L, 1, &l); - const char *e = s + l; /* end point for 's' */ - int base = luaL_checkint(L, 2); - int neg = 0; - luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); - s += strspn(s, SPACECHARS); /* skip initial spaces */ - if (*s == '-') { s++; neg = 1; } /* handle signal */ - else if (*s == '+') s++; - if (isalnum((unsigned char)*s)) { - lua_Number n = 0; - do { - int digit = (isdigit((unsigned char)*s)) ? *s - '0' - : toupper((unsigned char)*s) - 'A' + 10; - if (digit >= base) break; /* invalid numeral; force a fail */ - n = n * (lua_Number)base + (lua_Number)digit; - s++; - } while (isalnum((unsigned char)*s)); - s += strspn(s, SPACECHARS); /* skip trailing spaces */ - if (s == e) { /* no invalid trailing characters? */ - lua_pushnumber(L, (neg) ? -n : n); - return 1; - } /* else not a number */ - } /* else not a number */ - } - lua_pushnil(L); /* not a number */ - return 1; -} - - -static int luaB_error (lua_State *L) { - int level = luaL_optint(L, 2, 1); - lua_settop(L, 1); - if (lua_isstring(L, 1) && level > 0) { /* add extra information? */ - luaL_where(L, level); - lua_pushvalue(L, 1); - lua_concat(L, 2); - } - return lua_error(L); -} - - -static int luaB_getmetatable (lua_State *L) { - luaL_checkany(L, 1); - if (!lua_getmetatable(L, 1)) { - lua_pushnil(L); - return 1; /* no metatable */ - } - luaL_getmetafield(L, 1, "__metatable"); - return 1; /* returns either __metatable field (if present) or metatable */ -} - - -static int luaB_setmetatable (lua_State *L) { - int t = lua_type(L, 2); - luaL_checktype(L, 1, LUA_TTABLE); - luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, - "nil or table expected"); - if (luaL_getmetafield(L, 1, "__metatable")) - return luaL_error(L, "cannot change a protected metatable"); - lua_settop(L, 2); - lua_setmetatable(L, 1); - return 1; -} - - -static int luaB_rawequal (lua_State *L) { - luaL_checkany(L, 1); - luaL_checkany(L, 2); - lua_pushboolean(L, lua_rawequal(L, 1, 2)); - return 1; -} - - -static int luaB_rawlen (lua_State *L) { - int t = lua_type(L, 1); - luaL_argcheck(L, t == LUA_TTABLE || t == LUA_TSTRING, 1, - "table or string expected"); - lua_pushinteger(L, lua_rawlen(L, 1)); - return 1; -} - - -static int luaB_rawget (lua_State *L) { - luaL_checktype(L, 1, LUA_TTABLE); - luaL_checkany(L, 2); - lua_settop(L, 2); - lua_rawget(L, 1); - return 1; -} - -static int luaB_rawset (lua_State *L) { - luaL_checktype(L, 1, LUA_TTABLE); - luaL_checkany(L, 2); - luaL_checkany(L, 3); - lua_settop(L, 3); - lua_rawset(L, 1); - return 1; -} - - -static int luaB_collectgarbage (lua_State *L) { - static const char *const opts[] = {"stop", "restart", "collect", - "count", "step", "setpause", "setstepmul", - "setmajorinc", "isrunning", "generational", "incremental", NULL}; - static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, - LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, - LUA_GCSETMAJORINC, LUA_GCISRUNNING, LUA_GCGEN, LUA_GCINC}; - int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; - int ex = luaL_optint(L, 2, 0); - int res = lua_gc(L, o, ex); - switch (o) { - case LUA_GCCOUNT: { - int b = lua_gc(L, LUA_GCCOUNTB, 0); - lua_pushnumber(L, res + ((lua_Number)b/1024)); - lua_pushinteger(L, b); - return 2; - } - case LUA_GCSTEP: case LUA_GCISRUNNING: { - lua_pushboolean(L, res); - return 1; - } - default: { - lua_pushinteger(L, res); - return 1; - } - } -} - - -static int luaB_type (lua_State *L) { - luaL_checkany(L, 1); - lua_pushstring(L, luaL_typename(L, 1)); - return 1; -} - - -static int pairsmeta (lua_State *L, const char *method, int iszero, - lua_CFunction iter) { - if (!luaL_getmetafield(L, 1, method)) { /* no metamethod? */ - luaL_checktype(L, 1, LUA_TTABLE); /* argument must be a table */ - lua_pushcfunction(L, iter); /* will return generator, */ - lua_pushvalue(L, 1); /* state, */ - if (iszero) lua_pushinteger(L, 0); /* and initial value */ - else lua_pushnil(L); - } - else { - lua_pushvalue(L, 1); /* argument 'self' to metamethod */ - lua_call(L, 1, 3); /* get 3 values from metamethod */ - } - return 3; -} - - -static int luaB_next (lua_State *L) { - luaL_checktype(L, 1, LUA_TTABLE); - lua_settop(L, 2); /* create a 2nd argument if there isn't one */ - if (lua_next(L, 1)) - return 2; - else { - lua_pushnil(L); - return 1; - } -} - - -static int luaB_pairs (lua_State *L) { - return pairsmeta(L, "__pairs", 0, luaB_next); -} - - -static int ipairsaux (lua_State *L) { - int i = luaL_checkint(L, 2); - luaL_checktype(L, 1, LUA_TTABLE); - i++; /* next value */ - lua_pushinteger(L, i); - lua_rawgeti(L, 1, i); - return (lua_isnil(L, -1)) ? 1 : 2; -} - - -static int luaB_ipairs (lua_State *L) { - return pairsmeta(L, "__ipairs", 1, ipairsaux); -} - - -static int load_aux (lua_State *L, int status, int envidx) { - if (status == LUA_OK) { - if (envidx != 0) { /* 'env' parameter? */ - lua_pushvalue(L, envidx); /* environment for loaded function */ - if (!lua_setupvalue(L, -2, 1)) /* set it as 1st upvalue */ - lua_pop(L, 1); /* remove 'env' if not used by previous call */ - } - return 1; - } - else { /* error (message is on top of the stack) */ - lua_pushnil(L); - lua_insert(L, -2); /* put before error message */ - return 2; /* return nil plus error message */ - } -} - - -static int luaB_loadfile (lua_State *L) { - const char *fname = luaL_optstring(L, 1, NULL); - const char *mode = luaL_optstring(L, 2, NULL); - int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */ - int status = luaL_loadfilex(L, fname, mode); - return load_aux(L, status, env); -} - - -/* -** {====================================================== -** Generic Read function -** ======================================================= -*/ - - -/* -** reserved slot, above all arguments, to hold a copy of the returned -** string to avoid it being collected while parsed. 'load' has four -** optional arguments (chunk, source name, mode, and environment). -*/ -#define RESERVEDSLOT 5 - - -/* -** Reader for generic `load' function: `lua_load' uses the -** stack for internal stuff, so the reader cannot change the -** stack top. Instead, it keeps its resulting string in a -** reserved slot inside the stack. -*/ -static const char *generic_reader (lua_State *L, void *ud, size_t *size) { - (void)(ud); /* not used */ - luaL_checkstack(L, 2, "too many nested functions"); - lua_pushvalue(L, 1); /* get function */ - lua_call(L, 0, 1); /* call it */ - if (lua_isnil(L, -1)) { - lua_pop(L, 1); /* pop result */ - *size = 0; - return NULL; - } - else if (!lua_isstring(L, -1)) - luaL_error(L, "reader function must return a string"); - lua_replace(L, RESERVEDSLOT); /* save string in reserved slot */ - return lua_tolstring(L, RESERVEDSLOT, size); -} - - -static int luaB_load (lua_State *L) { - int status; - size_t l; - const char *s = lua_tolstring(L, 1, &l); - const char *mode = luaL_optstring(L, 3, "bt"); - int env = (!lua_isnone(L, 4) ? 4 : 0); /* 'env' index or 0 if no 'env' */ - if (s != NULL) { /* loading a string? */ - const char *chunkname = luaL_optstring(L, 2, s); - status = luaL_loadbufferx(L, s, l, chunkname, mode); - } - else { /* loading from a reader function */ - const char *chunkname = luaL_optstring(L, 2, "=(load)"); - luaL_checktype(L, 1, LUA_TFUNCTION); - lua_settop(L, RESERVEDSLOT); /* create reserved slot */ - status = lua_load(L, generic_reader, NULL, chunkname, mode); - } - return load_aux(L, status, env); -} - -/* }====================================================== */ - - -static int dofilecont (lua_State *L) { - return lua_gettop(L) - 1; -} - - -static int luaB_dofile (lua_State *L) { - const char *fname = luaL_optstring(L, 1, NULL); - lua_settop(L, 1); - if (luaL_loadfile(L, fname) != LUA_OK) - return lua_error(L); - lua_callk(L, 0, LUA_MULTRET, 0, dofilecont); - return dofilecont(L); -} - - -static int luaB_assert (lua_State *L) { - if (!lua_toboolean(L, 1)) - return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!")); - return lua_gettop(L); -} - - -static int luaB_select (lua_State *L) { - int n = lua_gettop(L); - if (lua_type(L, 1) == LUA_TSTRING && *lua_tostring(L, 1) == '#') { - lua_pushinteger(L, n-1); - return 1; - } - else { - int i = luaL_checkint(L, 1); - if (i < 0) i = n + i; - else if (i > n) i = n; - luaL_argcheck(L, 1 <= i, 1, "index out of range"); - return n - i; - } -} - - -static int finishpcall (lua_State *L, int status) { - if (!lua_checkstack(L, 1)) { /* no space for extra boolean? */ - lua_settop(L, 0); /* create space for return values */ - lua_pushboolean(L, 0); - lua_pushstring(L, "stack overflow"); - return 2; /* return false, msg */ - } - lua_pushboolean(L, status); /* first result (status) */ - lua_replace(L, 1); /* put first result in first slot */ - return lua_gettop(L); -} - - -static int pcallcont (lua_State *L) { - int status = lua_getctx(L, NULL); - return finishpcall(L, (status == LUA_YIELD)); -} - - -static int luaB_pcall (lua_State *L) { - int status; - luaL_checkany(L, 1); - lua_pushnil(L); - lua_insert(L, 1); /* create space for status result */ - status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, pcallcont); - return finishpcall(L, (status == LUA_OK)); -} - - -static int luaB_xpcall (lua_State *L) { - int status; - int n = lua_gettop(L); - luaL_argcheck(L, n >= 2, 2, "value expected"); - lua_pushvalue(L, 1); /* exchange function... */ - lua_copy(L, 2, 1); /* ...and error handler */ - lua_replace(L, 2); - status = lua_pcallk(L, n - 2, LUA_MULTRET, 1, 0, pcallcont); - return finishpcall(L, (status == LUA_OK)); -} - - -static int luaB_tostring (lua_State *L) { - luaL_checkany(L, 1); - luaL_tolstring(L, 1, NULL); - return 1; -} - - -static const luaL_Reg base_funcs[] = { - {"assert", luaB_assert}, - {"collectgarbage", luaB_collectgarbage}, - {"dofile", luaB_dofile}, - {"error", luaB_error}, - {"getmetatable", luaB_getmetatable}, - {"ipairs", luaB_ipairs}, - {"loadfile", luaB_loadfile}, - {"load", luaB_load}, -#if defined(LUA_COMPAT_LOADSTRING) - {"loadstring", luaB_load}, -#endif - {"next", luaB_next}, - {"pairs", luaB_pairs}, - {"pcall", luaB_pcall}, - {"print", luaB_print}, - {"rawequal", luaB_rawequal}, - {"rawlen", luaB_rawlen}, - {"rawget", luaB_rawget}, - {"rawset", luaB_rawset}, - {"select", luaB_select}, - {"setmetatable", luaB_setmetatable}, - {"tonumber", luaB_tonumber}, - {"tostring", luaB_tostring}, - {"type", luaB_type}, - {"xpcall", luaB_xpcall}, - {NULL, NULL} -}; - - -LUAMOD_API int luaopen_base (lua_State *L) { - /* set global _G */ - lua_pushglobaltable(L); - lua_pushglobaltable(L); - lua_setfield(L, -2, "_G"); - /* open lib into global table */ - luaL_setfuncs(L, base_funcs, 0); - lua_pushliteral(L, LUA_VERSION); - lua_setfield(L, -2, "_VERSION"); /* set global _VERSION */ - return 1; -} - diff --git a/btgui/lua-5.2.3/src/lbitlib.c b/btgui/lua-5.2.3/src/lbitlib.c deleted file mode 100644 index 31c7b66f1..000000000 --- a/btgui/lua-5.2.3/src/lbitlib.c +++ /dev/null @@ -1,212 +0,0 @@ -/* -** $Id: lbitlib.c,v 1.18.1.2 2013/07/09 18:01:41 roberto Exp $ -** Standard library for bitwise operations -** See Copyright Notice in lua.h -*/ - -#define lbitlib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -/* number of bits to consider in a number */ -#if !defined(LUA_NBITS) -#define LUA_NBITS 32 -#endif - - -#define ALLONES (~(((~(lua_Unsigned)0) << (LUA_NBITS - 1)) << 1)) - -/* macro to trim extra bits */ -#define trim(x) ((x) & ALLONES) - - -/* builds a number with 'n' ones (1 <= n <= LUA_NBITS) */ -#define mask(n) (~((ALLONES << 1) << ((n) - 1))) - - -typedef lua_Unsigned b_uint; - - - -static b_uint andaux (lua_State *L) { - int i, n = lua_gettop(L); - b_uint r = ~(b_uint)0; - for (i = 1; i <= n; i++) - r &= luaL_checkunsigned(L, i); - return trim(r); -} - - -static int b_and (lua_State *L) { - b_uint r = andaux(L); - lua_pushunsigned(L, r); - return 1; -} - - -static int b_test (lua_State *L) { - b_uint r = andaux(L); - lua_pushboolean(L, r != 0); - return 1; -} - - -static int b_or (lua_State *L) { - int i, n = lua_gettop(L); - b_uint r = 0; - for (i = 1; i <= n; i++) - r |= luaL_checkunsigned(L, i); - lua_pushunsigned(L, trim(r)); - return 1; -} - - -static int b_xor (lua_State *L) { - int i, n = lua_gettop(L); - b_uint r = 0; - for (i = 1; i <= n; i++) - r ^= luaL_checkunsigned(L, i); - lua_pushunsigned(L, trim(r)); - return 1; -} - - -static int b_not (lua_State *L) { - b_uint r = ~luaL_checkunsigned(L, 1); - lua_pushunsigned(L, trim(r)); - return 1; -} - - -static int b_shift (lua_State *L, b_uint r, int i) { - if (i < 0) { /* shift right? */ - i = -i; - r = trim(r); - if (i >= LUA_NBITS) r = 0; - else r >>= i; - } - else { /* shift left */ - if (i >= LUA_NBITS) r = 0; - else r <<= i; - r = trim(r); - } - lua_pushunsigned(L, r); - return 1; -} - - -static int b_lshift (lua_State *L) { - return b_shift(L, luaL_checkunsigned(L, 1), luaL_checkint(L, 2)); -} - - -static int b_rshift (lua_State *L) { - return b_shift(L, luaL_checkunsigned(L, 1), -luaL_checkint(L, 2)); -} - - -static int b_arshift (lua_State *L) { - b_uint r = luaL_checkunsigned(L, 1); - int i = luaL_checkint(L, 2); - if (i < 0 || !(r & ((b_uint)1 << (LUA_NBITS - 1)))) - return b_shift(L, r, -i); - else { /* arithmetic shift for 'negative' number */ - if (i >= LUA_NBITS) r = ALLONES; - else - r = trim((r >> i) | ~(~(b_uint)0 >> i)); /* add signal bit */ - lua_pushunsigned(L, r); - return 1; - } -} - - -static int b_rot (lua_State *L, int i) { - b_uint r = luaL_checkunsigned(L, 1); - i &= (LUA_NBITS - 1); /* i = i % NBITS */ - r = trim(r); - if (i != 0) /* avoid undefined shift of LUA_NBITS when i == 0 */ - r = (r << i) | (r >> (LUA_NBITS - i)); - lua_pushunsigned(L, trim(r)); - return 1; -} - - -static int b_lrot (lua_State *L) { - return b_rot(L, luaL_checkint(L, 2)); -} - - -static int b_rrot (lua_State *L) { - return b_rot(L, -luaL_checkint(L, 2)); -} - - -/* -** get field and width arguments for field-manipulation functions, -** checking whether they are valid. -** ('luaL_error' called without 'return' to avoid later warnings about -** 'width' being used uninitialized.) -*/ -static int fieldargs (lua_State *L, int farg, int *width) { - int f = luaL_checkint(L, farg); - int w = luaL_optint(L, farg + 1, 1); - luaL_argcheck(L, 0 <= f, farg, "field cannot be negative"); - luaL_argcheck(L, 0 < w, farg + 1, "width must be positive"); - if (f + w > LUA_NBITS) - luaL_error(L, "trying to access non-existent bits"); - *width = w; - return f; -} - - -static int b_extract (lua_State *L) { - int w; - b_uint r = luaL_checkunsigned(L, 1); - int f = fieldargs(L, 2, &w); - r = (r >> f) & mask(w); - lua_pushunsigned(L, r); - return 1; -} - - -static int b_replace (lua_State *L) { - int w; - b_uint r = luaL_checkunsigned(L, 1); - b_uint v = luaL_checkunsigned(L, 2); - int f = fieldargs(L, 3, &w); - int m = mask(w); - v &= m; /* erase bits outside given width */ - r = (r & ~(m << f)) | (v << f); - lua_pushunsigned(L, r); - return 1; -} - - -static const luaL_Reg bitlib[] = { - {"arshift", b_arshift}, - {"band", b_and}, - {"bnot", b_not}, - {"bor", b_or}, - {"bxor", b_xor}, - {"btest", b_test}, - {"extract", b_extract}, - {"lrotate", b_lrot}, - {"lshift", b_lshift}, - {"replace", b_replace}, - {"rrotate", b_rrot}, - {"rshift", b_rshift}, - {NULL, NULL} -}; - - - -LUAMOD_API int luaopen_bit32 (lua_State *L) { - luaL_newlib(L, bitlib); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/lcode.c b/btgui/lua-5.2.3/src/lcode.c deleted file mode 100644 index 820b95c0e..000000000 --- a/btgui/lua-5.2.3/src/lcode.c +++ /dev/null @@ -1,881 +0,0 @@ -/* -** $Id: lcode.c,v 2.62.1.1 2013/04/12 18:48:47 roberto Exp $ -** Code generator for Lua -** See Copyright Notice in lua.h -*/ - - -#include - -#define lcode_c -#define LUA_CORE - -#include "lua.h" - -#include "lcode.h" -#include "ldebug.h" -#include "ldo.h" -#include "lgc.h" -#include "llex.h" -#include "lmem.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lparser.h" -#include "lstring.h" -#include "ltable.h" -#include "lvm.h" - - -#define hasjumps(e) ((e)->t != (e)->f) - - -static int isnumeral(expdesc *e) { - return (e->k == VKNUM && e->t == NO_JUMP && e->f == NO_JUMP); -} - - -void luaK_nil (FuncState *fs, int from, int n) { - Instruction *previous; - int l = from + n - 1; /* last register to set nil */ - if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ - previous = &fs->f->code[fs->pc-1]; - if (GET_OPCODE(*previous) == OP_LOADNIL) { - int pfrom = GETARG_A(*previous); - int pl = pfrom + GETARG_B(*previous); - if ((pfrom <= from && from <= pl + 1) || - (from <= pfrom && pfrom <= l + 1)) { /* can connect both? */ - if (pfrom < from) from = pfrom; /* from = min(from, pfrom) */ - if (pl > l) l = pl; /* l = max(l, pl) */ - SETARG_A(*previous, from); - SETARG_B(*previous, l - from); - return; - } - } /* else go through */ - } - luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ -} - - -int luaK_jump (FuncState *fs) { - int jpc = fs->jpc; /* save list of jumps to here */ - int j; - fs->jpc = NO_JUMP; - j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); - luaK_concat(fs, &j, jpc); /* keep them on hold */ - return j; -} - - -void luaK_ret (FuncState *fs, int first, int nret) { - luaK_codeABC(fs, OP_RETURN, first, nret+1, 0); -} - - -static int condjump (FuncState *fs, OpCode op, int A, int B, int C) { - luaK_codeABC(fs, op, A, B, C); - return luaK_jump(fs); -} - - -static void fixjump (FuncState *fs, int pc, int dest) { - Instruction *jmp = &fs->f->code[pc]; - int offset = dest-(pc+1); - lua_assert(dest != NO_JUMP); - if (abs(offset) > MAXARG_sBx) - luaX_syntaxerror(fs->ls, "control structure too long"); - SETARG_sBx(*jmp, offset); -} - - -/* -** returns current `pc' and marks it as a jump target (to avoid wrong -** optimizations with consecutive instructions not in the same basic block). -*/ -int luaK_getlabel (FuncState *fs) { - fs->lasttarget = fs->pc; - return fs->pc; -} - - -static int getjump (FuncState *fs, int pc) { - int offset = GETARG_sBx(fs->f->code[pc]); - if (offset == NO_JUMP) /* point to itself represents end of list */ - return NO_JUMP; /* end of list */ - else - return (pc+1)+offset; /* turn offset into absolute position */ -} - - -static Instruction *getjumpcontrol (FuncState *fs, int pc) { - Instruction *pi = &fs->f->code[pc]; - if (pc >= 1 && testTMode(GET_OPCODE(*(pi-1)))) - return pi-1; - else - return pi; -} - - -/* -** check whether list has any jump that do not produce a value -** (or produce an inverted value) -*/ -static int need_value (FuncState *fs, int list) { - for (; list != NO_JUMP; list = getjump(fs, list)) { - Instruction i = *getjumpcontrol(fs, list); - if (GET_OPCODE(i) != OP_TESTSET) return 1; - } - return 0; /* not found */ -} - - -static int patchtestreg (FuncState *fs, int node, int reg) { - Instruction *i = getjumpcontrol(fs, node); - if (GET_OPCODE(*i) != OP_TESTSET) - return 0; /* cannot patch other instructions */ - if (reg != NO_REG && reg != GETARG_B(*i)) - SETARG_A(*i, reg); - else /* no register to put value or register already has the value */ - *i = CREATE_ABC(OP_TEST, GETARG_B(*i), 0, GETARG_C(*i)); - - return 1; -} - - -static void removevalues (FuncState *fs, int list) { - for (; list != NO_JUMP; list = getjump(fs, list)) - patchtestreg(fs, list, NO_REG); -} - - -static void patchlistaux (FuncState *fs, int list, int vtarget, int reg, - int dtarget) { - while (list != NO_JUMP) { - int next = getjump(fs, list); - if (patchtestreg(fs, list, reg)) - fixjump(fs, list, vtarget); - else - fixjump(fs, list, dtarget); /* jump to default target */ - list = next; - } -} - - -static void dischargejpc (FuncState *fs) { - patchlistaux(fs, fs->jpc, fs->pc, NO_REG, fs->pc); - fs->jpc = NO_JUMP; -} - - -void luaK_patchlist (FuncState *fs, int list, int target) { - if (target == fs->pc) - luaK_patchtohere(fs, list); - else { - lua_assert(target < fs->pc); - patchlistaux(fs, list, target, NO_REG, target); - } -} - - -LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level) { - level++; /* argument is +1 to reserve 0 as non-op */ - while (list != NO_JUMP) { - int next = getjump(fs, list); - lua_assert(GET_OPCODE(fs->f->code[list]) == OP_JMP && - (GETARG_A(fs->f->code[list]) == 0 || - GETARG_A(fs->f->code[list]) >= level)); - SETARG_A(fs->f->code[list], level); - list = next; - } -} - - -void luaK_patchtohere (FuncState *fs, int list) { - luaK_getlabel(fs); - luaK_concat(fs, &fs->jpc, list); -} - - -void luaK_concat (FuncState *fs, int *l1, int l2) { - if (l2 == NO_JUMP) return; - else if (*l1 == NO_JUMP) - *l1 = l2; - else { - int list = *l1; - int next; - while ((next = getjump(fs, list)) != NO_JUMP) /* find last element */ - list = next; - fixjump(fs, list, l2); - } -} - - -static int luaK_code (FuncState *fs, Instruction i) { - Proto *f = fs->f; - dischargejpc(fs); /* `pc' will change */ - /* put new instruction in code array */ - luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, - MAX_INT, "opcodes"); - f->code[fs->pc] = i; - /* save corresponding line information */ - luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int, - MAX_INT, "opcodes"); - f->lineinfo[fs->pc] = fs->ls->lastline; - return fs->pc++; -} - - -int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) { - lua_assert(getOpMode(o) == iABC); - lua_assert(getBMode(o) != OpArgN || b == 0); - lua_assert(getCMode(o) != OpArgN || c == 0); - lua_assert(a <= MAXARG_A && b <= MAXARG_B && c <= MAXARG_C); - return luaK_code(fs, CREATE_ABC(o, a, b, c)); -} - - -int luaK_codeABx (FuncState *fs, OpCode o, int a, unsigned int bc) { - lua_assert(getOpMode(o) == iABx || getOpMode(o) == iAsBx); - lua_assert(getCMode(o) == OpArgN); - lua_assert(a <= MAXARG_A && bc <= MAXARG_Bx); - return luaK_code(fs, CREATE_ABx(o, a, bc)); -} - - -static int codeextraarg (FuncState *fs, int a) { - lua_assert(a <= MAXARG_Ax); - return luaK_code(fs, CREATE_Ax(OP_EXTRAARG, a)); -} - - -int luaK_codek (FuncState *fs, int reg, int k) { - if (k <= MAXARG_Bx) - return luaK_codeABx(fs, OP_LOADK, reg, k); - else { - int p = luaK_codeABx(fs, OP_LOADKX, reg, 0); - codeextraarg(fs, k); - return p; - } -} - - -void luaK_checkstack (FuncState *fs, int n) { - int newstack = fs->freereg + n; - if (newstack > fs->f->maxstacksize) { - if (newstack >= MAXSTACK) - luaX_syntaxerror(fs->ls, "function or expression too complex"); - fs->f->maxstacksize = cast_byte(newstack); - } -} - - -void luaK_reserveregs (FuncState *fs, int n) { - luaK_checkstack(fs, n); - fs->freereg += n; -} - - -static void freereg (FuncState *fs, int reg) { - if (!ISK(reg) && reg >= fs->nactvar) { - fs->freereg--; - lua_assert(reg == fs->freereg); - } -} - - -static void freeexp (FuncState *fs, expdesc *e) { - if (e->k == VNONRELOC) - freereg(fs, e->u.info); -} - - -static int addk (FuncState *fs, TValue *key, TValue *v) { - lua_State *L = fs->ls->L; - TValue *idx = luaH_set(L, fs->h, key); - Proto *f = fs->f; - int k, oldsize; - if (ttisnumber(idx)) { - lua_Number n = nvalue(idx); - lua_number2int(k, n); - if (luaV_rawequalobj(&f->k[k], v)) - return k; - /* else may be a collision (e.g., between 0.0 and "\0\0\0\0\0\0\0\0"); - go through and create a new entry for this value */ - } - /* constant not found; create a new entry */ - oldsize = f->sizek; - k = fs->nk; - /* numerical value does not need GC barrier; - table has no metatable, so it does not need to invalidate cache */ - setnvalue(idx, cast_num(k)); - luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants"); - while (oldsize < f->sizek) setnilvalue(&f->k[oldsize++]); - setobj(L, &f->k[k], v); - fs->nk++; - luaC_barrier(L, f, v); - return k; -} - - -int luaK_stringK (FuncState *fs, TString *s) { - TValue o; - setsvalue(fs->ls->L, &o, s); - return addk(fs, &o, &o); -} - - -int luaK_numberK (FuncState *fs, lua_Number r) { - int n; - lua_State *L = fs->ls->L; - TValue o; - setnvalue(&o, r); - if (r == 0 || luai_numisnan(NULL, r)) { /* handle -0 and NaN */ - /* use raw representation as key to avoid numeric problems */ - setsvalue(L, L->top++, luaS_newlstr(L, (char *)&r, sizeof(r))); - n = addk(fs, L->top - 1, &o); - L->top--; - } - else - n = addk(fs, &o, &o); /* regular case */ - return n; -} - - -static int boolK (FuncState *fs, int b) { - TValue o; - setbvalue(&o, b); - return addk(fs, &o, &o); -} - - -static int nilK (FuncState *fs) { - TValue k, v; - setnilvalue(&v); - /* cannot use nil as key; instead use table itself to represent nil */ - sethvalue(fs->ls->L, &k, fs->h); - return addk(fs, &k, &v); -} - - -void luaK_setreturns (FuncState *fs, expdesc *e, int nresults) { - if (e->k == VCALL) { /* expression is an open function call? */ - SETARG_C(getcode(fs, e), nresults+1); - } - else if (e->k == VVARARG) { - SETARG_B(getcode(fs, e), nresults+1); - SETARG_A(getcode(fs, e), fs->freereg); - luaK_reserveregs(fs, 1); - } -} - - -void luaK_setoneret (FuncState *fs, expdesc *e) { - if (e->k == VCALL) { /* expression is an open function call? */ - e->k = VNONRELOC; - e->u.info = GETARG_A(getcode(fs, e)); - } - else if (e->k == VVARARG) { - SETARG_B(getcode(fs, e), 2); - e->k = VRELOCABLE; /* can relocate its simple result */ - } -} - - -void luaK_dischargevars (FuncState *fs, expdesc *e) { - switch (e->k) { - case VLOCAL: { - e->k = VNONRELOC; - break; - } - case VUPVAL: { - e->u.info = luaK_codeABC(fs, OP_GETUPVAL, 0, e->u.info, 0); - e->k = VRELOCABLE; - break; - } - case VINDEXED: { - OpCode op = OP_GETTABUP; /* assume 't' is in an upvalue */ - freereg(fs, e->u.ind.idx); - if (e->u.ind.vt == VLOCAL) { /* 't' is in a register? */ - freereg(fs, e->u.ind.t); - op = OP_GETTABLE; - } - e->u.info = luaK_codeABC(fs, op, 0, e->u.ind.t, e->u.ind.idx); - e->k = VRELOCABLE; - break; - } - case VVARARG: - case VCALL: { - luaK_setoneret(fs, e); - break; - } - default: break; /* there is one value available (somewhere) */ - } -} - - -static int code_label (FuncState *fs, int A, int b, int jump) { - luaK_getlabel(fs); /* those instructions may be jump targets */ - return luaK_codeABC(fs, OP_LOADBOOL, A, b, jump); -} - - -static void discharge2reg (FuncState *fs, expdesc *e, int reg) { - luaK_dischargevars(fs, e); - switch (e->k) { - case VNIL: { - luaK_nil(fs, reg, 1); - break; - } - case VFALSE: case VTRUE: { - luaK_codeABC(fs, OP_LOADBOOL, reg, e->k == VTRUE, 0); - break; - } - case VK: { - luaK_codek(fs, reg, e->u.info); - break; - } - case VKNUM: { - luaK_codek(fs, reg, luaK_numberK(fs, e->u.nval)); - break; - } - case VRELOCABLE: { - Instruction *pc = &getcode(fs, e); - SETARG_A(*pc, reg); - break; - } - case VNONRELOC: { - if (reg != e->u.info) - luaK_codeABC(fs, OP_MOVE, reg, e->u.info, 0); - break; - } - default: { - lua_assert(e->k == VVOID || e->k == VJMP); - return; /* nothing to do... */ - } - } - e->u.info = reg; - e->k = VNONRELOC; -} - - -static void discharge2anyreg (FuncState *fs, expdesc *e) { - if (e->k != VNONRELOC) { - luaK_reserveregs(fs, 1); - discharge2reg(fs, e, fs->freereg-1); - } -} - - -static void exp2reg (FuncState *fs, expdesc *e, int reg) { - discharge2reg(fs, e, reg); - if (e->k == VJMP) - luaK_concat(fs, &e->t, e->u.info); /* put this jump in `t' list */ - if (hasjumps(e)) { - int final; /* position after whole expression */ - int p_f = NO_JUMP; /* position of an eventual LOAD false */ - int p_t = NO_JUMP; /* position of an eventual LOAD true */ - if (need_value(fs, e->t) || need_value(fs, e->f)) { - int fj = (e->k == VJMP) ? NO_JUMP : luaK_jump(fs); - p_f = code_label(fs, reg, 0, 1); - p_t = code_label(fs, reg, 1, 0); - luaK_patchtohere(fs, fj); - } - final = luaK_getlabel(fs); - patchlistaux(fs, e->f, final, reg, p_f); - patchlistaux(fs, e->t, final, reg, p_t); - } - e->f = e->t = NO_JUMP; - e->u.info = reg; - e->k = VNONRELOC; -} - - -void luaK_exp2nextreg (FuncState *fs, expdesc *e) { - luaK_dischargevars(fs, e); - freeexp(fs, e); - luaK_reserveregs(fs, 1); - exp2reg(fs, e, fs->freereg - 1); -} - - -int luaK_exp2anyreg (FuncState *fs, expdesc *e) { - luaK_dischargevars(fs, e); - if (e->k == VNONRELOC) { - if (!hasjumps(e)) return e->u.info; /* exp is already in a register */ - if (e->u.info >= fs->nactvar) { /* reg. is not a local? */ - exp2reg(fs, e, e->u.info); /* put value on it */ - return e->u.info; - } - } - luaK_exp2nextreg(fs, e); /* default */ - return e->u.info; -} - - -void luaK_exp2anyregup (FuncState *fs, expdesc *e) { - if (e->k != VUPVAL || hasjumps(e)) - luaK_exp2anyreg(fs, e); -} - - -void luaK_exp2val (FuncState *fs, expdesc *e) { - if (hasjumps(e)) - luaK_exp2anyreg(fs, e); - else - luaK_dischargevars(fs, e); -} - - -int luaK_exp2RK (FuncState *fs, expdesc *e) { - luaK_exp2val(fs, e); - switch (e->k) { - case VTRUE: - case VFALSE: - case VNIL: { - if (fs->nk <= MAXINDEXRK) { /* constant fits in RK operand? */ - e->u.info = (e->k == VNIL) ? nilK(fs) : boolK(fs, (e->k == VTRUE)); - e->k = VK; - return RKASK(e->u.info); - } - else break; - } - case VKNUM: { - e->u.info = luaK_numberK(fs, e->u.nval); - e->k = VK; - /* go through */ - } - case VK: { - if (e->u.info <= MAXINDEXRK) /* constant fits in argC? */ - return RKASK(e->u.info); - else break; - } - default: break; - } - /* not a constant in the right range: put it in a register */ - return luaK_exp2anyreg(fs, e); -} - - -void luaK_storevar (FuncState *fs, expdesc *var, expdesc *ex) { - switch (var->k) { - case VLOCAL: { - freeexp(fs, ex); - exp2reg(fs, ex, var->u.info); - return; - } - case VUPVAL: { - int e = luaK_exp2anyreg(fs, ex); - luaK_codeABC(fs, OP_SETUPVAL, e, var->u.info, 0); - break; - } - case VINDEXED: { - OpCode op = (var->u.ind.vt == VLOCAL) ? OP_SETTABLE : OP_SETTABUP; - int e = luaK_exp2RK(fs, ex); - luaK_codeABC(fs, op, var->u.ind.t, var->u.ind.idx, e); - break; - } - default: { - lua_assert(0); /* invalid var kind to store */ - break; - } - } - freeexp(fs, ex); -} - - -void luaK_self (FuncState *fs, expdesc *e, expdesc *key) { - int ereg; - luaK_exp2anyreg(fs, e); - ereg = e->u.info; /* register where 'e' was placed */ - freeexp(fs, e); - e->u.info = fs->freereg; /* base register for op_self */ - e->k = VNONRELOC; - luaK_reserveregs(fs, 2); /* function and 'self' produced by op_self */ - luaK_codeABC(fs, OP_SELF, e->u.info, ereg, luaK_exp2RK(fs, key)); - freeexp(fs, key); -} - - -static void invertjump (FuncState *fs, expdesc *e) { - Instruction *pc = getjumpcontrol(fs, e->u.info); - lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET && - GET_OPCODE(*pc) != OP_TEST); - SETARG_A(*pc, !(GETARG_A(*pc))); -} - - -static int jumponcond (FuncState *fs, expdesc *e, int cond) { - if (e->k == VRELOCABLE) { - Instruction ie = getcode(fs, e); - if (GET_OPCODE(ie) == OP_NOT) { - fs->pc--; /* remove previous OP_NOT */ - return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond); - } - /* else go through */ - } - discharge2anyreg(fs, e); - freeexp(fs, e); - return condjump(fs, OP_TESTSET, NO_REG, e->u.info, cond); -} - - -void luaK_goiftrue (FuncState *fs, expdesc *e) { - int pc; /* pc of last jump */ - luaK_dischargevars(fs, e); - switch (e->k) { - case VJMP: { - invertjump(fs, e); - pc = e->u.info; - break; - } - case VK: case VKNUM: case VTRUE: { - pc = NO_JUMP; /* always true; do nothing */ - break; - } - default: { - pc = jumponcond(fs, e, 0); - break; - } - } - luaK_concat(fs, &e->f, pc); /* insert last jump in `f' list */ - luaK_patchtohere(fs, e->t); - e->t = NO_JUMP; -} - - -void luaK_goiffalse (FuncState *fs, expdesc *e) { - int pc; /* pc of last jump */ - luaK_dischargevars(fs, e); - switch (e->k) { - case VJMP: { - pc = e->u.info; - break; - } - case VNIL: case VFALSE: { - pc = NO_JUMP; /* always false; do nothing */ - break; - } - default: { - pc = jumponcond(fs, e, 1); - break; - } - } - luaK_concat(fs, &e->t, pc); /* insert last jump in `t' list */ - luaK_patchtohere(fs, e->f); - e->f = NO_JUMP; -} - - -static void codenot (FuncState *fs, expdesc *e) { - luaK_dischargevars(fs, e); - switch (e->k) { - case VNIL: case VFALSE: { - e->k = VTRUE; - break; - } - case VK: case VKNUM: case VTRUE: { - e->k = VFALSE; - break; - } - case VJMP: { - invertjump(fs, e); - break; - } - case VRELOCABLE: - case VNONRELOC: { - discharge2anyreg(fs, e); - freeexp(fs, e); - e->u.info = luaK_codeABC(fs, OP_NOT, 0, e->u.info, 0); - e->k = VRELOCABLE; - break; - } - default: { - lua_assert(0); /* cannot happen */ - break; - } - } - /* interchange true and false lists */ - { int temp = e->f; e->f = e->t; e->t = temp; } - removevalues(fs, e->f); - removevalues(fs, e->t); -} - - -void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) { - lua_assert(!hasjumps(t)); - t->u.ind.t = t->u.info; - t->u.ind.idx = luaK_exp2RK(fs, k); - t->u.ind.vt = (t->k == VUPVAL) ? VUPVAL - : check_exp(vkisinreg(t->k), VLOCAL); - t->k = VINDEXED; -} - - -static int constfolding (OpCode op, expdesc *e1, expdesc *e2) { - lua_Number r; - if (!isnumeral(e1) || !isnumeral(e2)) return 0; - if ((op == OP_DIV || op == OP_MOD) && e2->u.nval == 0) - return 0; /* do not attempt to divide by 0 */ - r = luaO_arith(op - OP_ADD + LUA_OPADD, e1->u.nval, e2->u.nval); - e1->u.nval = r; - return 1; -} - - -static void codearith (FuncState *fs, OpCode op, - expdesc *e1, expdesc *e2, int line) { - if (constfolding(op, e1, e2)) - return; - else { - int o2 = (op != OP_UNM && op != OP_LEN) ? luaK_exp2RK(fs, e2) : 0; - int o1 = luaK_exp2RK(fs, e1); - if (o1 > o2) { - freeexp(fs, e1); - freeexp(fs, e2); - } - else { - freeexp(fs, e2); - freeexp(fs, e1); - } - e1->u.info = luaK_codeABC(fs, op, 0, o1, o2); - e1->k = VRELOCABLE; - luaK_fixline(fs, line); - } -} - - -static void codecomp (FuncState *fs, OpCode op, int cond, expdesc *e1, - expdesc *e2) { - int o1 = luaK_exp2RK(fs, e1); - int o2 = luaK_exp2RK(fs, e2); - freeexp(fs, e2); - freeexp(fs, e1); - if (cond == 0 && op != OP_EQ) { - int temp; /* exchange args to replace by `<' or `<=' */ - temp = o1; o1 = o2; o2 = temp; /* o1 <==> o2 */ - cond = 1; - } - e1->u.info = condjump(fs, op, cond, o1, o2); - e1->k = VJMP; -} - - -void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) { - expdesc e2; - e2.t = e2.f = NO_JUMP; e2.k = VKNUM; e2.u.nval = 0; - switch (op) { - case OPR_MINUS: { - if (isnumeral(e)) /* minus constant? */ - e->u.nval = luai_numunm(NULL, e->u.nval); /* fold it */ - else { - luaK_exp2anyreg(fs, e); - codearith(fs, OP_UNM, e, &e2, line); - } - break; - } - case OPR_NOT: codenot(fs, e); break; - case OPR_LEN: { - luaK_exp2anyreg(fs, e); /* cannot operate on constants */ - codearith(fs, OP_LEN, e, &e2, line); - break; - } - default: lua_assert(0); - } -} - - -void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) { - switch (op) { - case OPR_AND: { - luaK_goiftrue(fs, v); - break; - } - case OPR_OR: { - luaK_goiffalse(fs, v); - break; - } - case OPR_CONCAT: { - luaK_exp2nextreg(fs, v); /* operand must be on the `stack' */ - break; - } - case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV: - case OPR_MOD: case OPR_POW: { - if (!isnumeral(v)) luaK_exp2RK(fs, v); - break; - } - default: { - luaK_exp2RK(fs, v); - break; - } - } -} - - -void luaK_posfix (FuncState *fs, BinOpr op, - expdesc *e1, expdesc *e2, int line) { - switch (op) { - case OPR_AND: { - lua_assert(e1->t == NO_JUMP); /* list must be closed */ - luaK_dischargevars(fs, e2); - luaK_concat(fs, &e2->f, e1->f); - *e1 = *e2; - break; - } - case OPR_OR: { - lua_assert(e1->f == NO_JUMP); /* list must be closed */ - luaK_dischargevars(fs, e2); - luaK_concat(fs, &e2->t, e1->t); - *e1 = *e2; - break; - } - case OPR_CONCAT: { - luaK_exp2val(fs, e2); - if (e2->k == VRELOCABLE && GET_OPCODE(getcode(fs, e2)) == OP_CONCAT) { - lua_assert(e1->u.info == GETARG_B(getcode(fs, e2))-1); - freeexp(fs, e1); - SETARG_B(getcode(fs, e2), e1->u.info); - e1->k = VRELOCABLE; e1->u.info = e2->u.info; - } - else { - luaK_exp2nextreg(fs, e2); /* operand must be on the 'stack' */ - codearith(fs, OP_CONCAT, e1, e2, line); - } - break; - } - case OPR_ADD: case OPR_SUB: case OPR_MUL: case OPR_DIV: - case OPR_MOD: case OPR_POW: { - codearith(fs, cast(OpCode, op - OPR_ADD + OP_ADD), e1, e2, line); - break; - } - case OPR_EQ: case OPR_LT: case OPR_LE: { - codecomp(fs, cast(OpCode, op - OPR_EQ + OP_EQ), 1, e1, e2); - break; - } - case OPR_NE: case OPR_GT: case OPR_GE: { - codecomp(fs, cast(OpCode, op - OPR_NE + OP_EQ), 0, e1, e2); - break; - } - default: lua_assert(0); - } -} - - -void luaK_fixline (FuncState *fs, int line) { - fs->f->lineinfo[fs->pc - 1] = line; -} - - -void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { - int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1; - int b = (tostore == LUA_MULTRET) ? 0 : tostore; - lua_assert(tostore != 0); - if (c <= MAXARG_C) - luaK_codeABC(fs, OP_SETLIST, base, b, c); - else if (c <= MAXARG_Ax) { - luaK_codeABC(fs, OP_SETLIST, base, b, 0); - codeextraarg(fs, c); - } - else - luaX_syntaxerror(fs->ls, "constructor too long"); - fs->freereg = base + 1; /* free registers with list values */ -} - diff --git a/btgui/lua-5.2.3/src/lcode.h b/btgui/lua-5.2.3/src/lcode.h deleted file mode 100644 index 6a1424cf5..000000000 --- a/btgui/lua-5.2.3/src/lcode.h +++ /dev/null @@ -1,83 +0,0 @@ -/* -** $Id: lcode.h,v 1.58.1.1 2013/04/12 18:48:47 roberto Exp $ -** Code generator for Lua -** See Copyright Notice in lua.h -*/ - -#ifndef lcode_h -#define lcode_h - -#include "llex.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lparser.h" - - -/* -** Marks the end of a patch list. It is an invalid value both as an absolute -** address, and as a list link (would link an element to itself). -*/ -#define NO_JUMP (-1) - - -/* -** grep "ORDER OPR" if you change these enums (ORDER OP) -*/ -typedef enum BinOpr { - OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW, - OPR_CONCAT, - OPR_EQ, OPR_LT, OPR_LE, - OPR_NE, OPR_GT, OPR_GE, - OPR_AND, OPR_OR, - OPR_NOBINOPR -} BinOpr; - - -typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; - - -#define getcode(fs,e) ((fs)->f->code[(e)->u.info]) - -#define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) - -#define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) - -#define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) - -LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); -LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); -LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k); -LUAI_FUNC void luaK_fixline (FuncState *fs, int line); -LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); -LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); -LUAI_FUNC void luaK_checkstack (FuncState *fs, int n); -LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s); -LUAI_FUNC int luaK_numberK (FuncState *fs, lua_Number r); -LUAI_FUNC void luaK_dischargevars (FuncState *fs, expdesc *e); -LUAI_FUNC int luaK_exp2anyreg (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_exp2anyregup (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_exp2nextreg (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_exp2val (FuncState *fs, expdesc *e); -LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key); -LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); -LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_goiffalse (FuncState *fs, expdesc *e); -LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); -LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults); -LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e); -LUAI_FUNC int luaK_jump (FuncState *fs); -LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret); -LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); -LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); -LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level); -LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); -LUAI_FUNC int luaK_getlabel (FuncState *fs); -LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); -LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v); -LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, - expdesc *v2, int line); -LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore); - - -#endif diff --git a/btgui/lua-5.2.3/src/lcorolib.c b/btgui/lua-5.2.3/src/lcorolib.c deleted file mode 100644 index ce4f6ad42..000000000 --- a/btgui/lua-5.2.3/src/lcorolib.c +++ /dev/null @@ -1,155 +0,0 @@ -/* -** $Id: lcorolib.c,v 1.5.1.1 2013/04/12 18:48:47 roberto Exp $ -** Coroutine Library -** See Copyright Notice in lua.h -*/ - - -#include - - -#define lcorolib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -static int auxresume (lua_State *L, lua_State *co, int narg) { - int status; - if (!lua_checkstack(co, narg)) { - lua_pushliteral(L, "too many arguments to resume"); - return -1; /* error flag */ - } - if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { - lua_pushliteral(L, "cannot resume dead coroutine"); - return -1; /* error flag */ - } - lua_xmove(L, co, narg); - status = lua_resume(co, L, narg); - if (status == LUA_OK || status == LUA_YIELD) { - int nres = lua_gettop(co); - if (!lua_checkstack(L, nres + 1)) { - lua_pop(co, nres); /* remove results anyway */ - lua_pushliteral(L, "too many results to resume"); - return -1; /* error flag */ - } - lua_xmove(co, L, nres); /* move yielded values */ - return nres; - } - else { - lua_xmove(co, L, 1); /* move error message */ - return -1; /* error flag */ - } -} - - -static int luaB_coresume (lua_State *L) { - lua_State *co = lua_tothread(L, 1); - int r; - luaL_argcheck(L, co, 1, "coroutine expected"); - r = auxresume(L, co, lua_gettop(L) - 1); - if (r < 0) { - lua_pushboolean(L, 0); - lua_insert(L, -2); - return 2; /* return false + error message */ - } - else { - lua_pushboolean(L, 1); - lua_insert(L, -(r + 1)); - return r + 1; /* return true + `resume' returns */ - } -} - - -static int luaB_auxwrap (lua_State *L) { - lua_State *co = lua_tothread(L, lua_upvalueindex(1)); - int r = auxresume(L, co, lua_gettop(L)); - if (r < 0) { - if (lua_isstring(L, -1)) { /* error object is a string? */ - luaL_where(L, 1); /* add extra info */ - lua_insert(L, -2); - lua_concat(L, 2); - } - return lua_error(L); /* propagate error */ - } - return r; -} - - -static int luaB_cocreate (lua_State *L) { - lua_State *NL; - luaL_checktype(L, 1, LUA_TFUNCTION); - NL = lua_newthread(L); - lua_pushvalue(L, 1); /* move function to top */ - lua_xmove(L, NL, 1); /* move function from L to NL */ - return 1; -} - - -static int luaB_cowrap (lua_State *L) { - luaB_cocreate(L); - lua_pushcclosure(L, luaB_auxwrap, 1); - return 1; -} - - -static int luaB_yield (lua_State *L) { - return lua_yield(L, lua_gettop(L)); -} - - -static int luaB_costatus (lua_State *L) { - lua_State *co = lua_tothread(L, 1); - luaL_argcheck(L, co, 1, "coroutine expected"); - if (L == co) lua_pushliteral(L, "running"); - else { - switch (lua_status(co)) { - case LUA_YIELD: - lua_pushliteral(L, "suspended"); - break; - case LUA_OK: { - lua_Debug ar; - if (lua_getstack(co, 0, &ar) > 0) /* does it have frames? */ - lua_pushliteral(L, "normal"); /* it is running */ - else if (lua_gettop(co) == 0) - lua_pushliteral(L, "dead"); - else - lua_pushliteral(L, "suspended"); /* initial state */ - break; - } - default: /* some error occurred */ - lua_pushliteral(L, "dead"); - break; - } - } - return 1; -} - - -static int luaB_corunning (lua_State *L) { - int ismain = lua_pushthread(L); - lua_pushboolean(L, ismain); - return 2; -} - - -static const luaL_Reg co_funcs[] = { - {"create", luaB_cocreate}, - {"resume", luaB_coresume}, - {"running", luaB_corunning}, - {"status", luaB_costatus}, - {"wrap", luaB_cowrap}, - {"yield", luaB_yield}, - {NULL, NULL} -}; - - - -LUAMOD_API int luaopen_coroutine (lua_State *L) { - luaL_newlib(L, co_funcs); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/lctype.c b/btgui/lua-5.2.3/src/lctype.c deleted file mode 100644 index 93f8cadc3..000000000 --- a/btgui/lua-5.2.3/src/lctype.c +++ /dev/null @@ -1,52 +0,0 @@ -/* -** $Id: lctype.c,v 1.11.1.1 2013/04/12 18:48:47 roberto Exp $ -** 'ctype' functions for Lua -** See Copyright Notice in lua.h -*/ - -#define lctype_c -#define LUA_CORE - -#include "lctype.h" - -#if !LUA_USE_CTYPE /* { */ - -#include - -LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = { - 0x00, /* EOZ */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */ - 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 1. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, /* 2. */ - 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, - 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, /* 3. */ - 0x16, 0x16, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, - 0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 4. */ - 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, - 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 5. */ - 0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05, - 0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 6. */ - 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, - 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 7. */ - 0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 8. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 9. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* a. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* b. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* c. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* d. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* e. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -}; - -#endif /* } */ diff --git a/btgui/lua-5.2.3/src/lctype.h b/btgui/lua-5.2.3/src/lctype.h deleted file mode 100644 index b09b21a33..000000000 --- a/btgui/lua-5.2.3/src/lctype.h +++ /dev/null @@ -1,95 +0,0 @@ -/* -** $Id: lctype.h,v 1.12.1.1 2013/04/12 18:48:47 roberto Exp $ -** 'ctype' functions for Lua -** See Copyright Notice in lua.h -*/ - -#ifndef lctype_h -#define lctype_h - -#include "lua.h" - - -/* -** WARNING: the functions defined here do not necessarily correspond -** to the similar functions in the standard C ctype.h. They are -** optimized for the specific needs of Lua -*/ - -#if !defined(LUA_USE_CTYPE) - -#if 'A' == 65 && '0' == 48 -/* ASCII case: can use its own tables; faster and fixed */ -#define LUA_USE_CTYPE 0 -#else -/* must use standard C ctype */ -#define LUA_USE_CTYPE 1 -#endif - -#endif - - -#if !LUA_USE_CTYPE /* { */ - -#include - -#include "llimits.h" - - -#define ALPHABIT 0 -#define DIGITBIT 1 -#define PRINTBIT 2 -#define SPACEBIT 3 -#define XDIGITBIT 4 - - -#define MASK(B) (1 << (B)) - - -/* -** add 1 to char to allow index -1 (EOZ) -*/ -#define testprop(c,p) (luai_ctype_[(c)+1] & (p)) - -/* -** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_' -*/ -#define lislalpha(c) testprop(c, MASK(ALPHABIT)) -#define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT))) -#define lisdigit(c) testprop(c, MASK(DIGITBIT)) -#define lisspace(c) testprop(c, MASK(SPACEBIT)) -#define lisprint(c) testprop(c, MASK(PRINTBIT)) -#define lisxdigit(c) testprop(c, MASK(XDIGITBIT)) - -/* -** this 'ltolower' only works for alphabetic characters -*/ -#define ltolower(c) ((c) | ('A' ^ 'a')) - - -/* two more entries for 0 and -1 (EOZ) */ -LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2]; - - -#else /* }{ */ - -/* -** use standard C ctypes -*/ - -#include - - -#define lislalpha(c) (isalpha(c) || (c) == '_') -#define lislalnum(c) (isalnum(c) || (c) == '_') -#define lisdigit(c) (isdigit(c)) -#define lisspace(c) (isspace(c)) -#define lisprint(c) (isprint(c)) -#define lisxdigit(c) (isxdigit(c)) - -#define ltolower(c) (tolower(c)) - -#endif /* } */ - -#endif - diff --git a/btgui/lua-5.2.3/src/ldblib.c b/btgui/lua-5.2.3/src/ldblib.c deleted file mode 100644 index 84fe3c7d8..000000000 --- a/btgui/lua-5.2.3/src/ldblib.c +++ /dev/null @@ -1,398 +0,0 @@ -/* -** $Id: ldblib.c,v 1.132.1.1 2013/04/12 18:48:47 roberto Exp $ -** Interface from Lua to its debug API -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include - -#define ldblib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -#define HOOKKEY "_HKEY" - - - -static int db_getregistry (lua_State *L) { - lua_pushvalue(L, LUA_REGISTRYINDEX); - return 1; -} - - -static int db_getmetatable (lua_State *L) { - luaL_checkany(L, 1); - if (!lua_getmetatable(L, 1)) { - lua_pushnil(L); /* no metatable */ - } - return 1; -} - - -static int db_setmetatable (lua_State *L) { - int t = lua_type(L, 2); - luaL_argcheck(L, t == LUA_TNIL || t == LUA_TTABLE, 2, - "nil or table expected"); - lua_settop(L, 2); - lua_setmetatable(L, 1); - return 1; /* return 1st argument */ -} - - -static int db_getuservalue (lua_State *L) { - if (lua_type(L, 1) != LUA_TUSERDATA) - lua_pushnil(L); - else - lua_getuservalue(L, 1); - return 1; -} - - -static int db_setuservalue (lua_State *L) { - if (lua_type(L, 1) == LUA_TLIGHTUSERDATA) - luaL_argerror(L, 1, "full userdata expected, got light userdata"); - luaL_checktype(L, 1, LUA_TUSERDATA); - if (!lua_isnoneornil(L, 2)) - luaL_checktype(L, 2, LUA_TTABLE); - lua_settop(L, 2); - lua_setuservalue(L, 1); - return 1; -} - - -static void settabss (lua_State *L, const char *i, const char *v) { - lua_pushstring(L, v); - lua_setfield(L, -2, i); -} - - -static void settabsi (lua_State *L, const char *i, int v) { - lua_pushinteger(L, v); - lua_setfield(L, -2, i); -} - - -static void settabsb (lua_State *L, const char *i, int v) { - lua_pushboolean(L, v); - lua_setfield(L, -2, i); -} - - -static lua_State *getthread (lua_State *L, int *arg) { - if (lua_isthread(L, 1)) { - *arg = 1; - return lua_tothread(L, 1); - } - else { - *arg = 0; - return L; - } -} - - -static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) { - if (L == L1) { - lua_pushvalue(L, -2); - lua_remove(L, -3); - } - else - lua_xmove(L1, L, 1); - lua_setfield(L, -2, fname); -} - - -static int db_getinfo (lua_State *L) { - lua_Debug ar; - int arg; - lua_State *L1 = getthread(L, &arg); - const char *options = luaL_optstring(L, arg+2, "flnStu"); - if (lua_isnumber(L, arg+1)) { - if (!lua_getstack(L1, (int)lua_tointeger(L, arg+1), &ar)) { - lua_pushnil(L); /* level out of range */ - return 1; - } - } - else if (lua_isfunction(L, arg+1)) { - lua_pushfstring(L, ">%s", options); - options = lua_tostring(L, -1); - lua_pushvalue(L, arg+1); - lua_xmove(L, L1, 1); - } - else - return luaL_argerror(L, arg+1, "function or level expected"); - if (!lua_getinfo(L1, options, &ar)) - return luaL_argerror(L, arg+2, "invalid option"); - lua_createtable(L, 0, 2); - if (strchr(options, 'S')) { - settabss(L, "source", ar.source); - settabss(L, "short_src", ar.short_src); - settabsi(L, "linedefined", ar.linedefined); - settabsi(L, "lastlinedefined", ar.lastlinedefined); - settabss(L, "what", ar.what); - } - if (strchr(options, 'l')) - settabsi(L, "currentline", ar.currentline); - if (strchr(options, 'u')) { - settabsi(L, "nups", ar.nups); - settabsi(L, "nparams", ar.nparams); - settabsb(L, "isvararg", ar.isvararg); - } - if (strchr(options, 'n')) { - settabss(L, "name", ar.name); - settabss(L, "namewhat", ar.namewhat); - } - if (strchr(options, 't')) - settabsb(L, "istailcall", ar.istailcall); - if (strchr(options, 'L')) - treatstackoption(L, L1, "activelines"); - if (strchr(options, 'f')) - treatstackoption(L, L1, "func"); - return 1; /* return table */ -} - - -static int db_getlocal (lua_State *L) { - int arg; - lua_State *L1 = getthread(L, &arg); - lua_Debug ar; - const char *name; - int nvar = luaL_checkint(L, arg+2); /* local-variable index */ - if (lua_isfunction(L, arg + 1)) { /* function argument? */ - lua_pushvalue(L, arg + 1); /* push function */ - lua_pushstring(L, lua_getlocal(L, NULL, nvar)); /* push local name */ - return 1; - } - else { /* stack-level argument */ - if (!lua_getstack(L1, luaL_checkint(L, arg+1), &ar)) /* out of range? */ - return luaL_argerror(L, arg+1, "level out of range"); - name = lua_getlocal(L1, &ar, nvar); - if (name) { - lua_xmove(L1, L, 1); /* push local value */ - lua_pushstring(L, name); /* push name */ - lua_pushvalue(L, -2); /* re-order */ - return 2; - } - else { - lua_pushnil(L); /* no name (nor value) */ - return 1; - } - } -} - - -static int db_setlocal (lua_State *L) { - int arg; - lua_State *L1 = getthread(L, &arg); - lua_Debug ar; - if (!lua_getstack(L1, luaL_checkint(L, arg+1), &ar)) /* out of range? */ - return luaL_argerror(L, arg+1, "level out of range"); - luaL_checkany(L, arg+3); - lua_settop(L, arg+3); - lua_xmove(L, L1, 1); - lua_pushstring(L, lua_setlocal(L1, &ar, luaL_checkint(L, arg+2))); - return 1; -} - - -static int auxupvalue (lua_State *L, int get) { - const char *name; - int n = luaL_checkint(L, 2); - luaL_checktype(L, 1, LUA_TFUNCTION); - name = get ? lua_getupvalue(L, 1, n) : lua_setupvalue(L, 1, n); - if (name == NULL) return 0; - lua_pushstring(L, name); - lua_insert(L, -(get+1)); - return get + 1; -} - - -static int db_getupvalue (lua_State *L) { - return auxupvalue(L, 1); -} - - -static int db_setupvalue (lua_State *L) { - luaL_checkany(L, 3); - return auxupvalue(L, 0); -} - - -static int checkupval (lua_State *L, int argf, int argnup) { - lua_Debug ar; - int nup = luaL_checkint(L, argnup); - luaL_checktype(L, argf, LUA_TFUNCTION); - lua_pushvalue(L, argf); - lua_getinfo(L, ">u", &ar); - luaL_argcheck(L, 1 <= nup && nup <= ar.nups, argnup, "invalid upvalue index"); - return nup; -} - - -static int db_upvalueid (lua_State *L) { - int n = checkupval(L, 1, 2); - lua_pushlightuserdata(L, lua_upvalueid(L, 1, n)); - return 1; -} - - -static int db_upvaluejoin (lua_State *L) { - int n1 = checkupval(L, 1, 2); - int n2 = checkupval(L, 3, 4); - luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected"); - luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected"); - lua_upvaluejoin(L, 1, n1, 3, n2); - return 0; -} - - -#define gethooktable(L) luaL_getsubtable(L, LUA_REGISTRYINDEX, HOOKKEY) - - -static void hookf (lua_State *L, lua_Debug *ar) { - static const char *const hooknames[] = - {"call", "return", "line", "count", "tail call"}; - gethooktable(L); - lua_pushthread(L); - lua_rawget(L, -2); - if (lua_isfunction(L, -1)) { - lua_pushstring(L, hooknames[(int)ar->event]); - if (ar->currentline >= 0) - lua_pushinteger(L, ar->currentline); - else lua_pushnil(L); - lua_assert(lua_getinfo(L, "lS", ar)); - lua_call(L, 2, 0); - } -} - - -static int makemask (const char *smask, int count) { - int mask = 0; - if (strchr(smask, 'c')) mask |= LUA_MASKCALL; - if (strchr(smask, 'r')) mask |= LUA_MASKRET; - if (strchr(smask, 'l')) mask |= LUA_MASKLINE; - if (count > 0) mask |= LUA_MASKCOUNT; - return mask; -} - - -static char *unmakemask (int mask, char *smask) { - int i = 0; - if (mask & LUA_MASKCALL) smask[i++] = 'c'; - if (mask & LUA_MASKRET) smask[i++] = 'r'; - if (mask & LUA_MASKLINE) smask[i++] = 'l'; - smask[i] = '\0'; - return smask; -} - - -static int db_sethook (lua_State *L) { - int arg, mask, count; - lua_Hook func; - lua_State *L1 = getthread(L, &arg); - if (lua_isnoneornil(L, arg+1)) { - lua_settop(L, arg+1); - func = NULL; mask = 0; count = 0; /* turn off hooks */ - } - else { - const char *smask = luaL_checkstring(L, arg+2); - luaL_checktype(L, arg+1, LUA_TFUNCTION); - count = luaL_optint(L, arg+3, 0); - func = hookf; mask = makemask(smask, count); - } - if (gethooktable(L) == 0) { /* creating hook table? */ - lua_pushstring(L, "k"); - lua_setfield(L, -2, "__mode"); /** hooktable.__mode = "k" */ - lua_pushvalue(L, -1); - lua_setmetatable(L, -2); /* setmetatable(hooktable) = hooktable */ - } - lua_pushthread(L1); lua_xmove(L1, L, 1); - lua_pushvalue(L, arg+1); - lua_rawset(L, -3); /* set new hook */ - lua_sethook(L1, func, mask, count); /* set hooks */ - return 0; -} - - -static int db_gethook (lua_State *L) { - int arg; - lua_State *L1 = getthread(L, &arg); - char buff[5]; - int mask = lua_gethookmask(L1); - lua_Hook hook = lua_gethook(L1); - if (hook != NULL && hook != hookf) /* external hook? */ - lua_pushliteral(L, "external hook"); - else { - gethooktable(L); - lua_pushthread(L1); lua_xmove(L1, L, 1); - lua_rawget(L, -2); /* get hook */ - lua_remove(L, -2); /* remove hook table */ - } - lua_pushstring(L, unmakemask(mask, buff)); - lua_pushinteger(L, lua_gethookcount(L1)); - return 3; -} - - -static int db_debug (lua_State *L) { - for (;;) { - char buffer[250]; - luai_writestringerror("%s", "lua_debug> "); - if (fgets(buffer, sizeof(buffer), stdin) == 0 || - strcmp(buffer, "cont\n") == 0) - return 0; - if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || - lua_pcall(L, 0, 0, 0)) - luai_writestringerror("%s\n", lua_tostring(L, -1)); - lua_settop(L, 0); /* remove eventual returns */ - } -} - - -static int db_traceback (lua_State *L) { - int arg; - lua_State *L1 = getthread(L, &arg); - const char *msg = lua_tostring(L, arg + 1); - if (msg == NULL && !lua_isnoneornil(L, arg + 1)) /* non-string 'msg'? */ - lua_pushvalue(L, arg + 1); /* return it untouched */ - else { - int level = luaL_optint(L, arg + 2, (L == L1) ? 1 : 0); - luaL_traceback(L, L1, msg, level); - } - return 1; -} - - -static const luaL_Reg dblib[] = { - {"debug", db_debug}, - {"getuservalue", db_getuservalue}, - {"gethook", db_gethook}, - {"getinfo", db_getinfo}, - {"getlocal", db_getlocal}, - {"getregistry", db_getregistry}, - {"getmetatable", db_getmetatable}, - {"getupvalue", db_getupvalue}, - {"upvaluejoin", db_upvaluejoin}, - {"upvalueid", db_upvalueid}, - {"setuservalue", db_setuservalue}, - {"sethook", db_sethook}, - {"setlocal", db_setlocal}, - {"setmetatable", db_setmetatable}, - {"setupvalue", db_setupvalue}, - {"traceback", db_traceback}, - {NULL, NULL} -}; - - -LUAMOD_API int luaopen_debug (lua_State *L) { - luaL_newlib(L, dblib); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/ldebug.c b/btgui/lua-5.2.3/src/ldebug.c deleted file mode 100644 index 20d663eff..000000000 --- a/btgui/lua-5.2.3/src/ldebug.c +++ /dev/null @@ -1,593 +0,0 @@ -/* -** $Id: ldebug.c,v 2.90.1.3 2013/05/16 16:04:15 roberto Exp $ -** Debug Interface -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include - - -#define ldebug_c -#define LUA_CORE - -#include "lua.h" - -#include "lapi.h" -#include "lcode.h" -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" -#include "lvm.h" - - - -#define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) - - -static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name); - - -static int currentpc (CallInfo *ci) { - lua_assert(isLua(ci)); - return pcRel(ci->u.l.savedpc, ci_func(ci)->p); -} - - -static int currentline (CallInfo *ci) { - return getfuncline(ci_func(ci)->p, currentpc(ci)); -} - - -/* -** this function can be called asynchronous (e.g. during a signal) -*/ -LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { - if (func == NULL || mask == 0) { /* turn off hooks? */ - mask = 0; - func = NULL; - } - if (isLua(L->ci)) - L->oldpc = L->ci->u.l.savedpc; - L->hook = func; - L->basehookcount = count; - resethookcount(L); - L->hookmask = cast_byte(mask); - return 1; -} - - -LUA_API lua_Hook lua_gethook (lua_State *L) { - return L->hook; -} - - -LUA_API int lua_gethookmask (lua_State *L) { - return L->hookmask; -} - - -LUA_API int lua_gethookcount (lua_State *L) { - return L->basehookcount; -} - - -LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) { - int status; - CallInfo *ci; - if (level < 0) return 0; /* invalid (negative) level */ - lua_lock(L); - for (ci = L->ci; level > 0 && ci != &L->base_ci; ci = ci->previous) - level--; - if (level == 0 && ci != &L->base_ci) { /* level found? */ - status = 1; - ar->i_ci = ci; - } - else status = 0; /* no such level */ - lua_unlock(L); - return status; -} - - -static const char *upvalname (Proto *p, int uv) { - TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); - if (s == NULL) return "?"; - else return getstr(s); -} - - -static const char *findvararg (CallInfo *ci, int n, StkId *pos) { - int nparams = clLvalue(ci->func)->p->numparams; - if (n >= ci->u.l.base - ci->func - nparams) - return NULL; /* no such vararg */ - else { - *pos = ci->func + nparams + n; - return "(*vararg)"; /* generic name for any vararg */ - } -} - - -static const char *findlocal (lua_State *L, CallInfo *ci, int n, - StkId *pos) { - const char *name = NULL; - StkId base; - if (isLua(ci)) { - if (n < 0) /* access to vararg values? */ - return findvararg(ci, -n, pos); - else { - base = ci->u.l.base; - name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci)); - } - } - else - base = ci->func + 1; - if (name == NULL) { /* no 'standard' name? */ - StkId limit = (ci == L->ci) ? L->top : ci->next->func; - if (limit - base >= n && n > 0) /* is 'n' inside 'ci' stack? */ - name = "(*temporary)"; /* generic name for any valid slot */ - else - return NULL; /* no name */ - } - *pos = base + (n - 1); - return name; -} - - -LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { - const char *name; - lua_lock(L); - if (ar == NULL) { /* information about non-active function? */ - if (!isLfunction(L->top - 1)) /* not a Lua function? */ - name = NULL; - else /* consider live variables at function start (parameters) */ - name = luaF_getlocalname(clLvalue(L->top - 1)->p, n, 0); - } - else { /* active function; get information through 'ar' */ - StkId pos = 0; /* to avoid warnings */ - name = findlocal(L, ar->i_ci, n, &pos); - if (name) { - setobj2s(L, L->top, pos); - api_incr_top(L); - } - } - lua_unlock(L); - return name; -} - - -LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { - StkId pos = 0; /* to avoid warnings */ - const char *name = findlocal(L, ar->i_ci, n, &pos); - lua_lock(L); - if (name) - setobjs2s(L, pos, L->top - 1); - L->top--; /* pop value */ - lua_unlock(L); - return name; -} - - -static void funcinfo (lua_Debug *ar, Closure *cl) { - if (noLuaClosure(cl)) { - ar->source = "=[C]"; - ar->linedefined = -1; - ar->lastlinedefined = -1; - ar->what = "C"; - } - else { - Proto *p = cl->l.p; - ar->source = p->source ? getstr(p->source) : "=?"; - ar->linedefined = p->linedefined; - ar->lastlinedefined = p->lastlinedefined; - ar->what = (ar->linedefined == 0) ? "main" : "Lua"; - } - luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); -} - - -static void collectvalidlines (lua_State *L, Closure *f) { - if (noLuaClosure(f)) { - setnilvalue(L->top); - api_incr_top(L); - } - else { - int i; - TValue v; - int *lineinfo = f->l.p->lineinfo; - Table *t = luaH_new(L); /* new table to store active lines */ - sethvalue(L, L->top, t); /* push it on stack */ - api_incr_top(L); - setbvalue(&v, 1); /* boolean 'true' to be the value of all indices */ - for (i = 0; i < f->l.p->sizelineinfo; i++) /* for all lines with code */ - luaH_setint(L, t, lineinfo[i], &v); /* table[line] = true */ - } -} - - -static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, - Closure *f, CallInfo *ci) { - int status = 1; - for (; *what; what++) { - switch (*what) { - case 'S': { - funcinfo(ar, f); - break; - } - case 'l': { - ar->currentline = (ci && isLua(ci)) ? currentline(ci) : -1; - break; - } - case 'u': { - ar->nups = (f == NULL) ? 0 : f->c.nupvalues; - if (noLuaClosure(f)) { - ar->isvararg = 1; - ar->nparams = 0; - } - else { - ar->isvararg = f->l.p->is_vararg; - ar->nparams = f->l.p->numparams; - } - break; - } - case 't': { - ar->istailcall = (ci) ? ci->callstatus & CIST_TAIL : 0; - break; - } - case 'n': { - /* calling function is a known Lua function? */ - if (ci && !(ci->callstatus & CIST_TAIL) && isLua(ci->previous)) - ar->namewhat = getfuncname(L, ci->previous, &ar->name); - else - ar->namewhat = NULL; - if (ar->namewhat == NULL) { - ar->namewhat = ""; /* not found */ - ar->name = NULL; - } - break; - } - case 'L': - case 'f': /* handled by lua_getinfo */ - break; - default: status = 0; /* invalid option */ - } - } - return status; -} - - -LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { - int status; - Closure *cl; - CallInfo *ci; - StkId func; - lua_lock(L); - if (*what == '>') { - ci = NULL; - func = L->top - 1; - api_check(L, ttisfunction(func), "function expected"); - what++; /* skip the '>' */ - L->top--; /* pop function */ - } - else { - ci = ar->i_ci; - func = ci->func; - lua_assert(ttisfunction(ci->func)); - } - cl = ttisclosure(func) ? clvalue(func) : NULL; - status = auxgetinfo(L, what, ar, cl, ci); - if (strchr(what, 'f')) { - setobjs2s(L, L->top, func); - api_incr_top(L); - } - if (strchr(what, 'L')) - collectvalidlines(L, cl); - lua_unlock(L); - return status; -} - - -/* -** {====================================================== -** Symbolic Execution -** ======================================================= -*/ - -static const char *getobjname (Proto *p, int lastpc, int reg, - const char **name); - - -/* -** find a "name" for the RK value 'c' -*/ -static void kname (Proto *p, int pc, int c, const char **name) { - if (ISK(c)) { /* is 'c' a constant? */ - TValue *kvalue = &p->k[INDEXK(c)]; - if (ttisstring(kvalue)) { /* literal constant? */ - *name = svalue(kvalue); /* it is its own name */ - return; - } - /* else no reasonable name found */ - } - else { /* 'c' is a register */ - const char *what = getobjname(p, pc, c, name); /* search for 'c' */ - if (what && *what == 'c') { /* found a constant name? */ - return; /* 'name' already filled */ - } - /* else no reasonable name found */ - } - *name = "?"; /* no reasonable name found */ -} - - -static int filterpc (int pc, int jmptarget) { - if (pc < jmptarget) /* is code conditional (inside a jump)? */ - return -1; /* cannot know who sets that register */ - else return pc; /* current position sets that register */ -} - - -/* -** try to find last instruction before 'lastpc' that modified register 'reg' -*/ -static int findsetreg (Proto *p, int lastpc, int reg) { - int pc; - int setreg = -1; /* keep last instruction that changed 'reg' */ - int jmptarget = 0; /* any code before this address is conditional */ - for (pc = 0; pc < lastpc; pc++) { - Instruction i = p->code[pc]; - OpCode op = GET_OPCODE(i); - int a = GETARG_A(i); - switch (op) { - case OP_LOADNIL: { - int b = GETARG_B(i); - if (a <= reg && reg <= a + b) /* set registers from 'a' to 'a+b' */ - setreg = filterpc(pc, jmptarget); - break; - } - case OP_TFORCALL: { - if (reg >= a + 2) /* affect all regs above its base */ - setreg = filterpc(pc, jmptarget); - break; - } - case OP_CALL: - case OP_TAILCALL: { - if (reg >= a) /* affect all registers above base */ - setreg = filterpc(pc, jmptarget); - break; - } - case OP_JMP: { - int b = GETARG_sBx(i); - int dest = pc + 1 + b; - /* jump is forward and do not skip `lastpc'? */ - if (pc < dest && dest <= lastpc) { - if (dest > jmptarget) - jmptarget = dest; /* update 'jmptarget' */ - } - break; - } - case OP_TEST: { - if (reg == a) /* jumped code can change 'a' */ - setreg = filterpc(pc, jmptarget); - break; - } - default: - if (testAMode(op) && reg == a) /* any instruction that set A */ - setreg = filterpc(pc, jmptarget); - break; - } - } - return setreg; -} - - -static const char *getobjname (Proto *p, int lastpc, int reg, - const char **name) { - int pc; - *name = luaF_getlocalname(p, reg + 1, lastpc); - if (*name) /* is a local? */ - return "local"; - /* else try symbolic execution */ - pc = findsetreg(p, lastpc, reg); - if (pc != -1) { /* could find instruction? */ - Instruction i = p->code[pc]; - OpCode op = GET_OPCODE(i); - switch (op) { - case OP_MOVE: { - int b = GETARG_B(i); /* move from 'b' to 'a' */ - if (b < GETARG_A(i)) - return getobjname(p, pc, b, name); /* get name for 'b' */ - break; - } - case OP_GETTABUP: - case OP_GETTABLE: { - int k = GETARG_C(i); /* key index */ - int t = GETARG_B(i); /* table index */ - const char *vn = (op == OP_GETTABLE) /* name of indexed variable */ - ? luaF_getlocalname(p, t + 1, pc) - : upvalname(p, t); - kname(p, pc, k, name); - return (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field"; - } - case OP_GETUPVAL: { - *name = upvalname(p, GETARG_B(i)); - return "upvalue"; - } - case OP_LOADK: - case OP_LOADKX: { - int b = (op == OP_LOADK) ? GETARG_Bx(i) - : GETARG_Ax(p->code[pc + 1]); - if (ttisstring(&p->k[b])) { - *name = svalue(&p->k[b]); - return "constant"; - } - break; - } - case OP_SELF: { - int k = GETARG_C(i); /* key index */ - kname(p, pc, k, name); - return "method"; - } - default: break; /* go through to return NULL */ - } - } - return NULL; /* could not find reasonable name */ -} - - -static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name) { - TMS tm; - Proto *p = ci_func(ci)->p; /* calling function */ - int pc = currentpc(ci); /* calling instruction index */ - Instruction i = p->code[pc]; /* calling instruction */ - switch (GET_OPCODE(i)) { - case OP_CALL: - case OP_TAILCALL: /* get function name */ - return getobjname(p, pc, GETARG_A(i), name); - case OP_TFORCALL: { /* for iterator */ - *name = "for iterator"; - return "for iterator"; - } - /* all other instructions can call only through metamethods */ - case OP_SELF: - case OP_GETTABUP: - case OP_GETTABLE: tm = TM_INDEX; break; - case OP_SETTABUP: - case OP_SETTABLE: tm = TM_NEWINDEX; break; - case OP_EQ: tm = TM_EQ; break; - case OP_ADD: tm = TM_ADD; break; - case OP_SUB: tm = TM_SUB; break; - case OP_MUL: tm = TM_MUL; break; - case OP_DIV: tm = TM_DIV; break; - case OP_MOD: tm = TM_MOD; break; - case OP_POW: tm = TM_POW; break; - case OP_UNM: tm = TM_UNM; break; - case OP_LEN: tm = TM_LEN; break; - case OP_LT: tm = TM_LT; break; - case OP_LE: tm = TM_LE; break; - case OP_CONCAT: tm = TM_CONCAT; break; - default: - return NULL; /* else no useful name can be found */ - } - *name = getstr(G(L)->tmname[tm]); - return "metamethod"; -} - -/* }====================================================== */ - - - -/* -** only ANSI way to check whether a pointer points to an array -** (used only for error messages, so efficiency is not a big concern) -*/ -static int isinstack (CallInfo *ci, const TValue *o) { - StkId p; - for (p = ci->u.l.base; p < ci->top; p++) - if (o == p) return 1; - return 0; -} - - -static const char *getupvalname (CallInfo *ci, const TValue *o, - const char **name) { - LClosure *c = ci_func(ci); - int i; - for (i = 0; i < c->nupvalues; i++) { - if (c->upvals[i]->v == o) { - *name = upvalname(c->p, i); - return "upvalue"; - } - } - return NULL; -} - - -l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { - CallInfo *ci = L->ci; - const char *name = NULL; - const char *t = objtypename(o); - const char *kind = NULL; - if (isLua(ci)) { - kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */ - if (!kind && isinstack(ci, o)) /* no? try a register */ - kind = getobjname(ci_func(ci)->p, currentpc(ci), - cast_int(o - ci->u.l.base), &name); - } - if (kind) - luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)", - op, kind, name, t); - else - luaG_runerror(L, "attempt to %s a %s value", op, t); -} - - -l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2) { - if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; - lua_assert(!ttisstring(p1) && !ttisnumber(p1)); - luaG_typeerror(L, p1, "concatenate"); -} - - -l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) { - TValue temp; - if (luaV_tonumber(p1, &temp) == NULL) - p2 = p1; /* first operand is wrong */ - luaG_typeerror(L, p2, "perform arithmetic on"); -} - - -l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { - const char *t1 = objtypename(p1); - const char *t2 = objtypename(p2); - if (t1 == t2) - luaG_runerror(L, "attempt to compare two %s values", t1); - else - luaG_runerror(L, "attempt to compare %s with %s", t1, t2); -} - - -static void addinfo (lua_State *L, const char *msg) { - CallInfo *ci = L->ci; - if (isLua(ci)) { /* is Lua code? */ - char buff[LUA_IDSIZE]; /* add file:line information */ - int line = currentline(ci); - TString *src = ci_func(ci)->p->source; - if (src) - luaO_chunkid(buff, getstr(src), LUA_IDSIZE); - else { /* no source available; use "?" instead */ - buff[0] = '?'; buff[1] = '\0'; - } - luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); - } -} - - -l_noret luaG_errormsg (lua_State *L) { - if (L->errfunc != 0) { /* is there an error handling function? */ - StkId errfunc = restorestack(L, L->errfunc); - if (!ttisfunction(errfunc)) luaD_throw(L, LUA_ERRERR); - setobjs2s(L, L->top, L->top - 1); /* move argument */ - setobjs2s(L, L->top - 1, errfunc); /* push function */ - L->top++; - luaD_call(L, L->top - 2, 1, 0); /* call it */ - } - luaD_throw(L, LUA_ERRRUN); -} - - -l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { - va_list argp; - va_start(argp, fmt); - addinfo(L, luaO_pushvfstring(L, fmt, argp)); - va_end(argp); - luaG_errormsg(L); -} - diff --git a/btgui/lua-5.2.3/src/ldebug.h b/btgui/lua-5.2.3/src/ldebug.h deleted file mode 100644 index 6445c763e..000000000 --- a/btgui/lua-5.2.3/src/ldebug.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -** $Id: ldebug.h,v 2.7.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions from Debug Interface module -** See Copyright Notice in lua.h -*/ - -#ifndef ldebug_h -#define ldebug_h - - -#include "lstate.h" - - -#define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) - -#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) - -#define resethookcount(L) (L->hookcount = L->basehookcount) - -/* Active Lua function (given call info) */ -#define ci_func(ci) (clLvalue((ci)->func)) - - -LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, - const char *opname); -LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2); -LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, - const TValue *p2); -LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, - const TValue *p2); -LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); -LUAI_FUNC l_noret luaG_errormsg (lua_State *L); - -#endif diff --git a/btgui/lua-5.2.3/src/ldo.c b/btgui/lua-5.2.3/src/ldo.c deleted file mode 100644 index e9dd5fa95..000000000 --- a/btgui/lua-5.2.3/src/ldo.c +++ /dev/null @@ -1,681 +0,0 @@ -/* -** $Id: ldo.c,v 2.108.1.3 2013/11/08 18:22:50 roberto Exp $ -** Stack and Call structure of Lua -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include - -#define ldo_c -#define LUA_CORE - -#include "lua.h" - -#include "lapi.h" -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lparser.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" -#include "lundump.h" -#include "lvm.h" -#include "lzio.h" - - - - -/* -** {====================================================== -** Error-recovery functions -** ======================================================= -*/ - -/* -** LUAI_THROW/LUAI_TRY define how Lua does exception handling. By -** default, Lua handles errors with exceptions when compiling as -** C++ code, with _longjmp/_setjmp when asked to use them, and with -** longjmp/setjmp otherwise. -*/ -#if !defined(LUAI_THROW) - -#if defined(__cplusplus) && !defined(LUA_USE_LONGJMP) -/* C++ exceptions */ -#define LUAI_THROW(L,c) throw(c) -#define LUAI_TRY(L,c,a) \ - try { a } catch(...) { if ((c)->status == 0) (c)->status = -1; } -#define luai_jmpbuf int /* dummy variable */ - -#elif defined(LUA_USE_ULONGJMP) -/* in Unix, try _longjmp/_setjmp (more efficient) */ -#define LUAI_THROW(L,c) _longjmp((c)->b, 1) -#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a } -#define luai_jmpbuf jmp_buf - -#else -/* default handling with long jumps */ -#define LUAI_THROW(L,c) longjmp((c)->b, 1) -#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a } -#define luai_jmpbuf jmp_buf - -#endif - -#endif - - - -/* chain list of long jump buffers */ -struct lua_longjmp { - struct lua_longjmp *previous; - luai_jmpbuf b; - volatile int status; /* error code */ -}; - - -static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { - switch (errcode) { - case LUA_ERRMEM: { /* memory error? */ - setsvalue2s(L, oldtop, G(L)->memerrmsg); /* reuse preregistered msg. */ - break; - } - case LUA_ERRERR: { - setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling")); - break; - } - default: { - setobjs2s(L, oldtop, L->top - 1); /* error message on current top */ - break; - } - } - L->top = oldtop + 1; -} - - -l_noret luaD_throw (lua_State *L, int errcode) { - if (L->errorJmp) { /* thread has an error handler? */ - L->errorJmp->status = errcode; /* set status */ - LUAI_THROW(L, L->errorJmp); /* jump to it */ - } - else { /* thread has no error handler */ - L->status = cast_byte(errcode); /* mark it as dead */ - if (G(L)->mainthread->errorJmp) { /* main thread has a handler? */ - setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ - luaD_throw(G(L)->mainthread, errcode); /* re-throw in main thread */ - } - else { /* no handler at all; abort */ - if (G(L)->panic) { /* panic function? */ - lua_unlock(L); - G(L)->panic(L); /* call it (last chance to jump out) */ - } - abort(); - } - } -} - - -int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { - unsigned short oldnCcalls = L->nCcalls; - struct lua_longjmp lj; - lj.status = LUA_OK; - lj.previous = L->errorJmp; /* chain new error handler */ - L->errorJmp = &lj; - LUAI_TRY(L, &lj, - (*f)(L, ud); - ); - L->errorJmp = lj.previous; /* restore old error handler */ - L->nCcalls = oldnCcalls; - return lj.status; -} - -/* }====================================================== */ - - -static void correctstack (lua_State *L, TValue *oldstack) { - CallInfo *ci; - GCObject *up; - L->top = (L->top - oldstack) + L->stack; - for (up = L->openupval; up != NULL; up = up->gch.next) - gco2uv(up)->v = (gco2uv(up)->v - oldstack) + L->stack; - for (ci = L->ci; ci != NULL; ci = ci->previous) { - ci->top = (ci->top - oldstack) + L->stack; - ci->func = (ci->func - oldstack) + L->stack; - if (isLua(ci)) - ci->u.l.base = (ci->u.l.base - oldstack) + L->stack; - } -} - - -/* some space for error handling */ -#define ERRORSTACKSIZE (LUAI_MAXSTACK + 200) - - -void luaD_reallocstack (lua_State *L, int newsize) { - TValue *oldstack = L->stack; - int lim = L->stacksize; - lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE); - lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK); - luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue); - for (; lim < newsize; lim++) - setnilvalue(L->stack + lim); /* erase new segment */ - L->stacksize = newsize; - L->stack_last = L->stack + newsize - EXTRA_STACK; - correctstack(L, oldstack); -} - - -void luaD_growstack (lua_State *L, int n) { - int size = L->stacksize; - if (size > LUAI_MAXSTACK) /* error after extra size? */ - luaD_throw(L, LUA_ERRERR); - else { - int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; - int newsize = 2 * size; - if (newsize > LUAI_MAXSTACK) newsize = LUAI_MAXSTACK; - if (newsize < needed) newsize = needed; - if (newsize > LUAI_MAXSTACK) { /* stack overflow? */ - luaD_reallocstack(L, ERRORSTACKSIZE); - luaG_runerror(L, "stack overflow"); - } - else - luaD_reallocstack(L, newsize); - } -} - - -static int stackinuse (lua_State *L) { - CallInfo *ci; - StkId lim = L->top; - for (ci = L->ci; ci != NULL; ci = ci->previous) { - lua_assert(ci->top <= L->stack_last); - if (lim < ci->top) lim = ci->top; - } - return cast_int(lim - L->stack) + 1; /* part of stack in use */ -} - - -void luaD_shrinkstack (lua_State *L) { - int inuse = stackinuse(L); - int goodsize = inuse + (inuse / 8) + 2*EXTRA_STACK; - if (goodsize > LUAI_MAXSTACK) goodsize = LUAI_MAXSTACK; - if (inuse > LUAI_MAXSTACK || /* handling stack overflow? */ - goodsize >= L->stacksize) /* would grow instead of shrink? */ - condmovestack(L); /* don't change stack (change only for debugging) */ - else - luaD_reallocstack(L, goodsize); /* shrink it */ -} - - -void luaD_hook (lua_State *L, int event, int line) { - lua_Hook hook = L->hook; - if (hook && L->allowhook) { - CallInfo *ci = L->ci; - ptrdiff_t top = savestack(L, L->top); - ptrdiff_t ci_top = savestack(L, ci->top); - lua_Debug ar; - ar.event = event; - ar.currentline = line; - ar.i_ci = ci; - luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */ - ci->top = L->top + LUA_MINSTACK; - lua_assert(ci->top <= L->stack_last); - L->allowhook = 0; /* cannot call hooks inside a hook */ - ci->callstatus |= CIST_HOOKED; - lua_unlock(L); - (*hook)(L, &ar); - lua_lock(L); - lua_assert(!L->allowhook); - L->allowhook = 1; - ci->top = restorestack(L, ci_top); - L->top = restorestack(L, top); - ci->callstatus &= ~CIST_HOOKED; - } -} - - -static void callhook (lua_State *L, CallInfo *ci) { - int hook = LUA_HOOKCALL; - ci->u.l.savedpc++; /* hooks assume 'pc' is already incremented */ - if (isLua(ci->previous) && - GET_OPCODE(*(ci->previous->u.l.savedpc - 1)) == OP_TAILCALL) { - ci->callstatus |= CIST_TAIL; - hook = LUA_HOOKTAILCALL; - } - luaD_hook(L, hook, -1); - ci->u.l.savedpc--; /* correct 'pc' */ -} - - -static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { - int i; - int nfixargs = p->numparams; - StkId base, fixed; - lua_assert(actual >= nfixargs); - /* move fixed parameters to final position */ - luaD_checkstack(L, p->maxstacksize); /* check again for new 'base' */ - fixed = L->top - actual; /* first fixed argument */ - base = L->top; /* final position of first argument */ - for (i=0; itop++, fixed + i); - setnilvalue(fixed + i); - } - return base; -} - - -static StkId tryfuncTM (lua_State *L, StkId func) { - const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); - StkId p; - ptrdiff_t funcr = savestack(L, func); - if (!ttisfunction(tm)) - luaG_typeerror(L, func, "call"); - /* Open a hole inside the stack at `func' */ - for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); - incr_top(L); - func = restorestack(L, funcr); /* previous call may change stack */ - setobj2s(L, func, tm); /* tag method is the new function to be called */ - return func; -} - - - -#define next_ci(L) (L->ci = (L->ci->next ? L->ci->next : luaE_extendCI(L))) - - -/* -** returns true if function has been executed (C function) -*/ -int luaD_precall (lua_State *L, StkId func, int nresults) { - lua_CFunction f; - CallInfo *ci; - int n; /* number of arguments (Lua) or returns (C) */ - ptrdiff_t funcr = savestack(L, func); - switch (ttype(func)) { - case LUA_TLCF: /* light C function */ - f = fvalue(func); - goto Cfunc; - case LUA_TCCL: { /* C closure */ - f = clCvalue(func)->f; - Cfunc: - luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */ - ci = next_ci(L); /* now 'enter' new function */ - ci->nresults = nresults; - ci->func = restorestack(L, funcr); - ci->top = L->top + LUA_MINSTACK; - lua_assert(ci->top <= L->stack_last); - ci->callstatus = 0; - luaC_checkGC(L); /* stack grow uses memory */ - if (L->hookmask & LUA_MASKCALL) - luaD_hook(L, LUA_HOOKCALL, -1); - lua_unlock(L); - n = (*f)(L); /* do the actual call */ - lua_lock(L); - api_checknelems(L, n); - luaD_poscall(L, L->top - n); - return 1; - } - case LUA_TLCL: { /* Lua function: prepare its call */ - StkId base; - Proto *p = clLvalue(func)->p; - n = cast_int(L->top - func) - 1; /* number of real arguments */ - luaD_checkstack(L, p->maxstacksize); - for (; n < p->numparams; n++) - setnilvalue(L->top++); /* complete missing arguments */ - if (!p->is_vararg) { - func = restorestack(L, funcr); - base = func + 1; - } - else { - base = adjust_varargs(L, p, n); - func = restorestack(L, funcr); /* previous call can change stack */ - } - ci = next_ci(L); /* now 'enter' new function */ - ci->nresults = nresults; - ci->func = func; - ci->u.l.base = base; - ci->top = base + p->maxstacksize; - lua_assert(ci->top <= L->stack_last); - ci->u.l.savedpc = p->code; /* starting point */ - ci->callstatus = CIST_LUA; - L->top = ci->top; - luaC_checkGC(L); /* stack grow uses memory */ - if (L->hookmask & LUA_MASKCALL) - callhook(L, ci); - return 0; - } - default: { /* not a function */ - func = tryfuncTM(L, func); /* retry with 'function' tag method */ - return luaD_precall(L, func, nresults); /* now it must be a function */ - } - } -} - - -int luaD_poscall (lua_State *L, StkId firstResult) { - StkId res; - int wanted, i; - CallInfo *ci = L->ci; - if (L->hookmask & (LUA_MASKRET | LUA_MASKLINE)) { - if (L->hookmask & LUA_MASKRET) { - ptrdiff_t fr = savestack(L, firstResult); /* hook may change stack */ - luaD_hook(L, LUA_HOOKRET, -1); - firstResult = restorestack(L, fr); - } - L->oldpc = ci->previous->u.l.savedpc; /* 'oldpc' for caller function */ - } - res = ci->func; /* res == final position of 1st result */ - wanted = ci->nresults; - L->ci = ci = ci->previous; /* back to caller */ - /* move results to correct place */ - for (i = wanted; i != 0 && firstResult < L->top; i--) - setobjs2s(L, res++, firstResult++); - while (i-- > 0) - setnilvalue(res++); - L->top = res; - return (wanted - LUA_MULTRET); /* 0 iff wanted == LUA_MULTRET */ -} - - -/* -** Call a function (C or Lua). The function to be called is at *func. -** The arguments are on the stack, right after the function. -** When returns, all the results are on the stack, starting at the original -** function position. -*/ -void luaD_call (lua_State *L, StkId func, int nResults, int allowyield) { - if (++L->nCcalls >= LUAI_MAXCCALLS) { - if (L->nCcalls == LUAI_MAXCCALLS) - luaG_runerror(L, "C stack overflow"); - else if (L->nCcalls >= (LUAI_MAXCCALLS + (LUAI_MAXCCALLS>>3))) - luaD_throw(L, LUA_ERRERR); /* error while handing stack error */ - } - if (!allowyield) L->nny++; - if (!luaD_precall(L, func, nResults)) /* is a Lua function? */ - luaV_execute(L); /* call it */ - if (!allowyield) L->nny--; - L->nCcalls--; -} - - -static void finishCcall (lua_State *L) { - CallInfo *ci = L->ci; - int n; - lua_assert(ci->u.c.k != NULL); /* must have a continuation */ - lua_assert(L->nny == 0); - if (ci->callstatus & CIST_YPCALL) { /* was inside a pcall? */ - ci->callstatus &= ~CIST_YPCALL; /* finish 'lua_pcall' */ - L->errfunc = ci->u.c.old_errfunc; - } - /* finish 'lua_callk'/'lua_pcall' */ - adjustresults(L, ci->nresults); - /* call continuation function */ - if (!(ci->callstatus & CIST_STAT)) /* no call status? */ - ci->u.c.status = LUA_YIELD; /* 'default' status */ - lua_assert(ci->u.c.status != LUA_OK); - ci->callstatus = (ci->callstatus & ~(CIST_YPCALL | CIST_STAT)) | CIST_YIELDED; - lua_unlock(L); - n = (*ci->u.c.k)(L); - lua_lock(L); - api_checknelems(L, n); - /* finish 'luaD_precall' */ - luaD_poscall(L, L->top - n); -} - - -static void unroll (lua_State *L, void *ud) { - UNUSED(ud); - for (;;) { - if (L->ci == &L->base_ci) /* stack is empty? */ - return; /* coroutine finished normally */ - if (!isLua(L->ci)) /* C function? */ - finishCcall(L); - else { /* Lua function */ - luaV_finishOp(L); /* finish interrupted instruction */ - luaV_execute(L); /* execute down to higher C 'boundary' */ - } - } -} - - -/* -** check whether thread has a suspended protected call -*/ -static CallInfo *findpcall (lua_State *L) { - CallInfo *ci; - for (ci = L->ci; ci != NULL; ci = ci->previous) { /* search for a pcall */ - if (ci->callstatus & CIST_YPCALL) - return ci; - } - return NULL; /* no pending pcall */ -} - - -static int recover (lua_State *L, int status) { - StkId oldtop; - CallInfo *ci = findpcall(L); - if (ci == NULL) return 0; /* no recovery point */ - /* "finish" luaD_pcall */ - oldtop = restorestack(L, ci->extra); - luaF_close(L, oldtop); - seterrorobj(L, status, oldtop); - L->ci = ci; - L->allowhook = ci->u.c.old_allowhook; - L->nny = 0; /* should be zero to be yieldable */ - luaD_shrinkstack(L); - L->errfunc = ci->u.c.old_errfunc; - ci->callstatus |= CIST_STAT; /* call has error status */ - ci->u.c.status = status; /* (here it is) */ - return 1; /* continue running the coroutine */ -} - - -/* -** signal an error in the call to 'resume', not in the execution of the -** coroutine itself. (Such errors should not be handled by any coroutine -** error handler and should not kill the coroutine.) -*/ -static l_noret resume_error (lua_State *L, const char *msg, StkId firstArg) { - L->top = firstArg; /* remove args from the stack */ - setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ - api_incr_top(L); - luaD_throw(L, -1); /* jump back to 'lua_resume' */ -} - - -/* -** do the work for 'lua_resume' in protected mode -*/ -static void resume (lua_State *L, void *ud) { - int nCcalls = L->nCcalls; - StkId firstArg = cast(StkId, ud); - CallInfo *ci = L->ci; - if (nCcalls >= LUAI_MAXCCALLS) - resume_error(L, "C stack overflow", firstArg); - if (L->status == LUA_OK) { /* may be starting a coroutine */ - if (ci != &L->base_ci) /* not in base level? */ - resume_error(L, "cannot resume non-suspended coroutine", firstArg); - /* coroutine is in base level; start running it */ - if (!luaD_precall(L, firstArg - 1, LUA_MULTRET)) /* Lua function? */ - luaV_execute(L); /* call it */ - } - else if (L->status != LUA_YIELD) - resume_error(L, "cannot resume dead coroutine", firstArg); - else { /* resuming from previous yield */ - L->status = LUA_OK; - ci->func = restorestack(L, ci->extra); - if (isLua(ci)) /* yielded inside a hook? */ - luaV_execute(L); /* just continue running Lua code */ - else { /* 'common' yield */ - if (ci->u.c.k != NULL) { /* does it have a continuation? */ - int n; - ci->u.c.status = LUA_YIELD; /* 'default' status */ - ci->callstatus |= CIST_YIELDED; - lua_unlock(L); - n = (*ci->u.c.k)(L); /* call continuation */ - lua_lock(L); - api_checknelems(L, n); - firstArg = L->top - n; /* yield results come from continuation */ - } - luaD_poscall(L, firstArg); /* finish 'luaD_precall' */ - } - unroll(L, NULL); - } - lua_assert(nCcalls == L->nCcalls); -} - - -LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { - int status; - int oldnny = L->nny; /* save 'nny' */ - lua_lock(L); - luai_userstateresume(L, nargs); - L->nCcalls = (from) ? from->nCcalls + 1 : 1; - L->nny = 0; /* allow yields */ - api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs); - status = luaD_rawrunprotected(L, resume, L->top - nargs); - if (status == -1) /* error calling 'lua_resume'? */ - status = LUA_ERRRUN; - else { /* yield or regular error */ - while (status != LUA_OK && status != LUA_YIELD) { /* error? */ - if (recover(L, status)) /* recover point? */ - status = luaD_rawrunprotected(L, unroll, NULL); /* run continuation */ - else { /* unrecoverable error */ - L->status = cast_byte(status); /* mark thread as `dead' */ - seterrorobj(L, status, L->top); - L->ci->top = L->top; - break; - } - } - lua_assert(status == L->status); - } - L->nny = oldnny; /* restore 'nny' */ - L->nCcalls--; - lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); - lua_unlock(L); - return status; -} - - -LUA_API int lua_yieldk (lua_State *L, int nresults, int ctx, lua_CFunction k) { - CallInfo *ci = L->ci; - luai_userstateyield(L, nresults); - lua_lock(L); - api_checknelems(L, nresults); - if (L->nny > 0) { - if (L != G(L)->mainthread) - luaG_runerror(L, "attempt to yield across a C-call boundary"); - else - luaG_runerror(L, "attempt to yield from outside a coroutine"); - } - L->status = LUA_YIELD; - ci->extra = savestack(L, ci->func); /* save current 'func' */ - if (isLua(ci)) { /* inside a hook? */ - api_check(L, k == NULL, "hooks cannot continue after yielding"); - } - else { - if ((ci->u.c.k = k) != NULL) /* is there a continuation? */ - ci->u.c.ctx = ctx; /* save context */ - ci->func = L->top - nresults - 1; /* protect stack below results */ - luaD_throw(L, LUA_YIELD); - } - lua_assert(ci->callstatus & CIST_HOOKED); /* must be inside a hook */ - lua_unlock(L); - return 0; /* return to 'luaD_hook' */ -} - - -int luaD_pcall (lua_State *L, Pfunc func, void *u, - ptrdiff_t old_top, ptrdiff_t ef) { - int status; - CallInfo *old_ci = L->ci; - lu_byte old_allowhooks = L->allowhook; - unsigned short old_nny = L->nny; - ptrdiff_t old_errfunc = L->errfunc; - L->errfunc = ef; - status = luaD_rawrunprotected(L, func, u); - if (status != LUA_OK) { /* an error occurred? */ - StkId oldtop = restorestack(L, old_top); - luaF_close(L, oldtop); /* close possible pending closures */ - seterrorobj(L, status, oldtop); - L->ci = old_ci; - L->allowhook = old_allowhooks; - L->nny = old_nny; - luaD_shrinkstack(L); - } - L->errfunc = old_errfunc; - return status; -} - - - -/* -** Execute a protected parser. -*/ -struct SParser { /* data to `f_parser' */ - ZIO *z; - Mbuffer buff; /* dynamic structure used by the scanner */ - Dyndata dyd; /* dynamic structures used by the parser */ - const char *mode; - const char *name; -}; - - -static void checkmode (lua_State *L, const char *mode, const char *x) { - if (mode && strchr(mode, x[0]) == NULL) { - luaO_pushfstring(L, - "attempt to load a %s chunk (mode is " LUA_QS ")", x, mode); - luaD_throw(L, LUA_ERRSYNTAX); - } -} - - -static void f_parser (lua_State *L, void *ud) { - int i; - Closure *cl; - struct SParser *p = cast(struct SParser *, ud); - int c = zgetc(p->z); /* read first character */ - if (c == LUA_SIGNATURE[0]) { - checkmode(L, p->mode, "binary"); - cl = luaU_undump(L, p->z, &p->buff, p->name); - } - else { - checkmode(L, p->mode, "text"); - cl = luaY_parser(L, p->z, &p->buff, &p->dyd, p->name, c); - } - lua_assert(cl->l.nupvalues == cl->l.p->sizeupvalues); - for (i = 0; i < cl->l.nupvalues; i++) { /* initialize upvalues */ - UpVal *up = luaF_newupval(L); - cl->l.upvals[i] = up; - luaC_objbarrier(L, cl, up); - } -} - - -int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, - const char *mode) { - struct SParser p; - int status; - L->nny++; /* cannot yield during parsing */ - p.z = z; p.name = name; p.mode = mode; - p.dyd.actvar.arr = NULL; p.dyd.actvar.size = 0; - p.dyd.gt.arr = NULL; p.dyd.gt.size = 0; - p.dyd.label.arr = NULL; p.dyd.label.size = 0; - luaZ_initbuffer(L, &p.buff); - status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc); - luaZ_freebuffer(L, &p.buff); - luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size); - luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size); - luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size); - L->nny--; - return status; -} - - diff --git a/btgui/lua-5.2.3/src/ldo.h b/btgui/lua-5.2.3/src/ldo.h deleted file mode 100644 index d3d3082c9..000000000 --- a/btgui/lua-5.2.3/src/ldo.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -** $Id: ldo.h,v 2.20.1.1 2013/04/12 18:48:47 roberto Exp $ -** Stack and Call structure of Lua -** See Copyright Notice in lua.h -*/ - -#ifndef ldo_h -#define ldo_h - - -#include "lobject.h" -#include "lstate.h" -#include "lzio.h" - - -#define luaD_checkstack(L,n) if (L->stack_last - L->top <= (n)) \ - luaD_growstack(L, n); else condmovestack(L); - - -#define incr_top(L) {L->top++; luaD_checkstack(L,0);} - -#define savestack(L,p) ((char *)(p) - (char *)L->stack) -#define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) - - -/* type of protected functions, to be ran by `runprotected' */ -typedef void (*Pfunc) (lua_State *L, void *ud); - -LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, - const char *mode); -LUAI_FUNC void luaD_hook (lua_State *L, int event, int line); -LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults); -LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults, - int allowyield); -LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, - ptrdiff_t oldtop, ptrdiff_t ef); -LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult); -LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); -LUAI_FUNC void luaD_growstack (lua_State *L, int n); -LUAI_FUNC void luaD_shrinkstack (lua_State *L); - -LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode); -LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); - -#endif - diff --git a/btgui/lua-5.2.3/src/ldump.c b/btgui/lua-5.2.3/src/ldump.c deleted file mode 100644 index 61fa2cd89..000000000 --- a/btgui/lua-5.2.3/src/ldump.c +++ /dev/null @@ -1,173 +0,0 @@ -/* -** $Id: ldump.c,v 2.17.1.1 2013/04/12 18:48:47 roberto Exp $ -** save precompiled Lua chunks -** See Copyright Notice in lua.h -*/ - -#include - -#define ldump_c -#define LUA_CORE - -#include "lua.h" - -#include "lobject.h" -#include "lstate.h" -#include "lundump.h" - -typedef struct { - lua_State* L; - lua_Writer writer; - void* data; - int strip; - int status; -} DumpState; - -#define DumpMem(b,n,size,D) DumpBlock(b,(n)*(size),D) -#define DumpVar(x,D) DumpMem(&x,1,sizeof(x),D) - -static void DumpBlock(const void* b, size_t size, DumpState* D) -{ - if (D->status==0) - { - lua_unlock(D->L); - D->status=(*D->writer)(D->L,b,size,D->data); - lua_lock(D->L); - } -} - -static void DumpChar(int y, DumpState* D) -{ - char x=(char)y; - DumpVar(x,D); -} - -static void DumpInt(int x, DumpState* D) -{ - DumpVar(x,D); -} - -static void DumpNumber(lua_Number x, DumpState* D) -{ - DumpVar(x,D); -} - -static void DumpVector(const void* b, int n, size_t size, DumpState* D) -{ - DumpInt(n,D); - DumpMem(b,n,size,D); -} - -static void DumpString(const TString* s, DumpState* D) -{ - if (s==NULL) - { - size_t size=0; - DumpVar(size,D); - } - else - { - size_t size=s->tsv.len+1; /* include trailing '\0' */ - DumpVar(size,D); - DumpBlock(getstr(s),size*sizeof(char),D); - } -} - -#define DumpCode(f,D) DumpVector(f->code,f->sizecode,sizeof(Instruction),D) - -static void DumpFunction(const Proto* f, DumpState* D); - -static void DumpConstants(const Proto* f, DumpState* D) -{ - int i,n=f->sizek; - DumpInt(n,D); - for (i=0; ik[i]; - DumpChar(ttypenv(o),D); - switch (ttypenv(o)) - { - case LUA_TNIL: - break; - case LUA_TBOOLEAN: - DumpChar(bvalue(o),D); - break; - case LUA_TNUMBER: - DumpNumber(nvalue(o),D); - break; - case LUA_TSTRING: - DumpString(rawtsvalue(o),D); - break; - default: lua_assert(0); - } - } - n=f->sizep; - DumpInt(n,D); - for (i=0; ip[i],D); -} - -static void DumpUpvalues(const Proto* f, DumpState* D) -{ - int i,n=f->sizeupvalues; - DumpInt(n,D); - for (i=0; iupvalues[i].instack,D); - DumpChar(f->upvalues[i].idx,D); - } -} - -static void DumpDebug(const Proto* f, DumpState* D) -{ - int i,n; - DumpString((D->strip) ? NULL : f->source,D); - n= (D->strip) ? 0 : f->sizelineinfo; - DumpVector(f->lineinfo,n,sizeof(int),D); - n= (D->strip) ? 0 : f->sizelocvars; - DumpInt(n,D); - for (i=0; ilocvars[i].varname,D); - DumpInt(f->locvars[i].startpc,D); - DumpInt(f->locvars[i].endpc,D); - } - n= (D->strip) ? 0 : f->sizeupvalues; - DumpInt(n,D); - for (i=0; iupvalues[i].name,D); -} - -static void DumpFunction(const Proto* f, DumpState* D) -{ - DumpInt(f->linedefined,D); - DumpInt(f->lastlinedefined,D); - DumpChar(f->numparams,D); - DumpChar(f->is_vararg,D); - DumpChar(f->maxstacksize,D); - DumpCode(f,D); - DumpConstants(f,D); - DumpUpvalues(f,D); - DumpDebug(f,D); -} - -static void DumpHeader(DumpState* D) -{ - lu_byte h[LUAC_HEADERSIZE]; - luaU_header(h); - DumpBlock(h,LUAC_HEADERSIZE,D); -} - -/* -** dump Lua function as precompiled chunk -*/ -int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip) -{ - DumpState D; - D.L=L; - D.writer=w; - D.data=data; - D.strip=strip; - D.status=0; - DumpHeader(&D); - DumpFunction(f,&D); - return D.status; -} diff --git a/btgui/lua-5.2.3/src/lfunc.c b/btgui/lua-5.2.3/src/lfunc.c deleted file mode 100644 index e90e1520c..000000000 --- a/btgui/lua-5.2.3/src/lfunc.c +++ /dev/null @@ -1,161 +0,0 @@ -/* -** $Id: lfunc.c,v 2.30.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions to manipulate prototypes and closures -** See Copyright Notice in lua.h -*/ - - -#include - -#define lfunc_c -#define LUA_CORE - -#include "lua.h" - -#include "lfunc.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" - - - -Closure *luaF_newCclosure (lua_State *L, int n) { - Closure *c = &luaC_newobj(L, LUA_TCCL, sizeCclosure(n), NULL, 0)->cl; - c->c.nupvalues = cast_byte(n); - return c; -} - - -Closure *luaF_newLclosure (lua_State *L, int n) { - Closure *c = &luaC_newobj(L, LUA_TLCL, sizeLclosure(n), NULL, 0)->cl; - c->l.p = NULL; - c->l.nupvalues = cast_byte(n); - while (n--) c->l.upvals[n] = NULL; - return c; -} - - -UpVal *luaF_newupval (lua_State *L) { - UpVal *uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), NULL, 0)->uv; - uv->v = &uv->u.value; - setnilvalue(uv->v); - return uv; -} - - -UpVal *luaF_findupval (lua_State *L, StkId level) { - global_State *g = G(L); - GCObject **pp = &L->openupval; - UpVal *p; - UpVal *uv; - while (*pp != NULL && (p = gco2uv(*pp))->v >= level) { - GCObject *o = obj2gco(p); - lua_assert(p->v != &p->u.value); - lua_assert(!isold(o) || isold(obj2gco(L))); - if (p->v == level) { /* found a corresponding upvalue? */ - if (isdead(g, o)) /* is it dead? */ - changewhite(o); /* resurrect it */ - return p; - } - pp = &p->next; - } - /* not found: create a new one */ - uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), pp, 0)->uv; - uv->v = level; /* current value lives in the stack */ - uv->u.l.prev = &g->uvhead; /* double link it in `uvhead' list */ - uv->u.l.next = g->uvhead.u.l.next; - uv->u.l.next->u.l.prev = uv; - g->uvhead.u.l.next = uv; - lua_assert(uv->u.l.next->u.l.prev == uv && uv->u.l.prev->u.l.next == uv); - return uv; -} - - -static void unlinkupval (UpVal *uv) { - lua_assert(uv->u.l.next->u.l.prev == uv && uv->u.l.prev->u.l.next == uv); - uv->u.l.next->u.l.prev = uv->u.l.prev; /* remove from `uvhead' list */ - uv->u.l.prev->u.l.next = uv->u.l.next; -} - - -void luaF_freeupval (lua_State *L, UpVal *uv) { - if (uv->v != &uv->u.value) /* is it open? */ - unlinkupval(uv); /* remove from open list */ - luaM_free(L, uv); /* free upvalue */ -} - - -void luaF_close (lua_State *L, StkId level) { - UpVal *uv; - global_State *g = G(L); - while (L->openupval != NULL && (uv = gco2uv(L->openupval))->v >= level) { - GCObject *o = obj2gco(uv); - lua_assert(!isblack(o) && uv->v != &uv->u.value); - L->openupval = uv->next; /* remove from `open' list */ - if (isdead(g, o)) - luaF_freeupval(L, uv); /* free upvalue */ - else { - unlinkupval(uv); /* remove upvalue from 'uvhead' list */ - setobj(L, &uv->u.value, uv->v); /* move value to upvalue slot */ - uv->v = &uv->u.value; /* now current value lives here */ - gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */ - g->allgc = o; - luaC_checkupvalcolor(g, uv); - } - } -} - - -Proto *luaF_newproto (lua_State *L) { - Proto *f = &luaC_newobj(L, LUA_TPROTO, sizeof(Proto), NULL, 0)->p; - f->k = NULL; - f->sizek = 0; - f->p = NULL; - f->sizep = 0; - f->code = NULL; - f->cache = NULL; - f->sizecode = 0; - f->lineinfo = NULL; - f->sizelineinfo = 0; - f->upvalues = NULL; - f->sizeupvalues = 0; - f->numparams = 0; - f->is_vararg = 0; - f->maxstacksize = 0; - f->locvars = NULL; - f->sizelocvars = 0; - f->linedefined = 0; - f->lastlinedefined = 0; - f->source = NULL; - return f; -} - - -void luaF_freeproto (lua_State *L, Proto *f) { - luaM_freearray(L, f->code, f->sizecode); - luaM_freearray(L, f->p, f->sizep); - luaM_freearray(L, f->k, f->sizek); - luaM_freearray(L, f->lineinfo, f->sizelineinfo); - luaM_freearray(L, f->locvars, f->sizelocvars); - luaM_freearray(L, f->upvalues, f->sizeupvalues); - luaM_free(L, f); -} - - -/* -** Look for n-th local variable at line `line' in function `func'. -** Returns NULL if not found. -*/ -const char *luaF_getlocalname (const Proto *f, int local_number, int pc) { - int i; - for (i = 0; isizelocvars && f->locvars[i].startpc <= pc; i++) { - if (pc < f->locvars[i].endpc) { /* is variable active? */ - local_number--; - if (local_number == 0) - return getstr(f->locvars[i].varname); - } - } - return NULL; /* not found */ -} - diff --git a/btgui/lua-5.2.3/src/lfunc.h b/btgui/lua-5.2.3/src/lfunc.h deleted file mode 100644 index ca0d3a3e0..000000000 --- a/btgui/lua-5.2.3/src/lfunc.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -** $Id: lfunc.h,v 2.8.1.1 2013/04/12 18:48:47 roberto Exp $ -** Auxiliary functions to manipulate prototypes and closures -** See Copyright Notice in lua.h -*/ - -#ifndef lfunc_h -#define lfunc_h - - -#include "lobject.h" - - -#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ - cast(int, sizeof(TValue)*((n)-1))) - -#define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ - cast(int, sizeof(TValue *)*((n)-1))) - - -LUAI_FUNC Proto *luaF_newproto (lua_State *L); -LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems); -LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems); -LUAI_FUNC UpVal *luaF_newupval (lua_State *L); -LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); -LUAI_FUNC void luaF_close (lua_State *L, StkId level); -LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); -LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); -LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, - int pc); - - -#endif diff --git a/btgui/lua-5.2.3/src/lgc.c b/btgui/lua-5.2.3/src/lgc.c deleted file mode 100644 index 52460dcdd..000000000 --- a/btgui/lua-5.2.3/src/lgc.c +++ /dev/null @@ -1,1220 +0,0 @@ -/* -** $Id: lgc.c,v 2.140.1.2 2013/04/26 18:22:05 roberto Exp $ -** Garbage Collector -** See Copyright Notice in lua.h -*/ - -#include - -#define lgc_c -#define LUA_CORE - -#include "lua.h" - -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" - - - -/* -** cost of sweeping one element (the size of a small object divided -** by some adjust for the sweep speed) -*/ -#define GCSWEEPCOST ((sizeof(TString) + 4) / 4) - -/* maximum number of elements to sweep in each single step */ -#define GCSWEEPMAX (cast_int((GCSTEPSIZE / GCSWEEPCOST) / 4)) - -/* maximum number of finalizers to call in each GC step */ -#define GCFINALIZENUM 4 - - -/* -** macro to adjust 'stepmul': 'stepmul' is actually used like -** 'stepmul / STEPMULADJ' (value chosen by tests) -*/ -#define STEPMULADJ 200 - - -/* -** macro to adjust 'pause': 'pause' is actually used like -** 'pause / PAUSEADJ' (value chosen by tests) -*/ -#define PAUSEADJ 100 - - -/* -** 'makewhite' erases all color bits plus the old bit and then -** sets only the current white bit -*/ -#define maskcolors (~(bit2mask(BLACKBIT, OLDBIT) | WHITEBITS)) -#define makewhite(g,x) \ - (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g))) - -#define white2gray(x) resetbits(gch(x)->marked, WHITEBITS) -#define black2gray(x) resetbit(gch(x)->marked, BLACKBIT) - - -#define isfinalized(x) testbit(gch(x)->marked, FINALIZEDBIT) - -#define checkdeadkey(n) lua_assert(!ttisdeadkey(gkey(n)) || ttisnil(gval(n))) - - -#define checkconsistency(obj) \ - lua_longassert(!iscollectable(obj) || righttt(obj)) - - -#define markvalue(g,o) { checkconsistency(o); \ - if (valiswhite(o)) reallymarkobject(g,gcvalue(o)); } - -#define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \ - reallymarkobject(g, obj2gco(t)); } - -static void reallymarkobject (global_State *g, GCObject *o); - - -/* -** {====================================================== -** Generic functions -** ======================================================= -*/ - - -/* -** one after last element in a hash array -*/ -#define gnodelast(h) gnode(h, cast(size_t, sizenode(h))) - - -/* -** link table 'h' into list pointed by 'p' -*/ -#define linktable(h,p) ((h)->gclist = *(p), *(p) = obj2gco(h)) - - -/* -** if key is not marked, mark its entry as dead (therefore removing it -** from the table) -*/ -static void removeentry (Node *n) { - lua_assert(ttisnil(gval(n))); - if (valiswhite(gkey(n))) - setdeadvalue(gkey(n)); /* unused and unmarked key; remove it */ -} - - -/* -** tells whether a key or value can be cleared from a weak -** table. Non-collectable objects are never removed from weak -** tables. Strings behave as `values', so are never removed too. for -** other objects: if really collected, cannot keep them; for objects -** being finalized, keep them in keys, but not in values -*/ -static int iscleared (global_State *g, const TValue *o) { - if (!iscollectable(o)) return 0; - else if (ttisstring(o)) { - markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */ - return 0; - } - else return iswhite(gcvalue(o)); -} - - -/* -** barrier that moves collector forward, that is, mark the white object -** being pointed by a black object. -*/ -void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) { - global_State *g = G(L); - lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o)); - lua_assert(g->gcstate != GCSpause); - lua_assert(gch(o)->tt != LUA_TTABLE); - if (keepinvariantout(g)) /* must keep invariant? */ - reallymarkobject(g, v); /* restore invariant */ - else { /* sweep phase */ - lua_assert(issweepphase(g)); - makewhite(g, o); /* mark main obj. as white to avoid other barriers */ - } -} - - -/* -** barrier that moves collector backward, that is, mark the black object -** pointing to a white object as gray again. (Current implementation -** only works for tables; access to 'gclist' is not uniform across -** different types.) -*/ -void luaC_barrierback_ (lua_State *L, GCObject *o) { - global_State *g = G(L); - lua_assert(isblack(o) && !isdead(g, o) && gch(o)->tt == LUA_TTABLE); - black2gray(o); /* make object gray (again) */ - gco2t(o)->gclist = g->grayagain; - g->grayagain = o; -} - - -/* -** barrier for prototypes. When creating first closure (cache is -** NULL), use a forward barrier; this may be the only closure of the -** prototype (if it is a "regular" function, with a single instance) -** and the prototype may be big, so it is better to avoid traversing -** it again. Otherwise, use a backward barrier, to avoid marking all -** possible instances. -*/ -LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c) { - global_State *g = G(L); - lua_assert(isblack(obj2gco(p))); - if (p->cache == NULL) { /* first time? */ - luaC_objbarrier(L, p, c); - } - else { /* use a backward barrier */ - black2gray(obj2gco(p)); /* make prototype gray (again) */ - p->gclist = g->grayagain; - g->grayagain = obj2gco(p); - } -} - - -/* -** check color (and invariants) for an upvalue that was closed, -** i.e., moved into the 'allgc' list -*/ -void luaC_checkupvalcolor (global_State *g, UpVal *uv) { - GCObject *o = obj2gco(uv); - lua_assert(!isblack(o)); /* open upvalues are never black */ - if (isgray(o)) { - if (keepinvariant(g)) { - resetoldbit(o); /* see MOVE OLD rule */ - gray2black(o); /* it is being visited now */ - markvalue(g, uv->v); - } - else { - lua_assert(issweepphase(g)); - makewhite(g, o); - } - } -} - - -/* -** create a new collectable object (with given type and size) and link -** it to '*list'. 'offset' tells how many bytes to allocate before the -** object itself (used only by states). -*/ -GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, GCObject **list, - int offset) { - global_State *g = G(L); - char *raw = cast(char *, luaM_newobject(L, novariant(tt), sz)); - GCObject *o = obj2gco(raw + offset); - if (list == NULL) - list = &g->allgc; /* standard list for collectable objects */ - gch(o)->marked = luaC_white(g); - gch(o)->tt = tt; - gch(o)->next = *list; - *list = o; - return o; -} - -/* }====================================================== */ - - - -/* -** {====================================================== -** Mark functions -** ======================================================= -*/ - - -/* -** mark an object. Userdata, strings, and closed upvalues are visited -** and turned black here. Other objects are marked gray and added -** to appropriate list to be visited (and turned black) later. (Open -** upvalues are already linked in 'headuv' list.) -*/ -static void reallymarkobject (global_State *g, GCObject *o) { - lu_mem size; - white2gray(o); - switch (gch(o)->tt) { - case LUA_TSHRSTR: - case LUA_TLNGSTR: { - size = sizestring(gco2ts(o)); - break; /* nothing else to mark; make it black */ - } - case LUA_TUSERDATA: { - Table *mt = gco2u(o)->metatable; - markobject(g, mt); - markobject(g, gco2u(o)->env); - size = sizeudata(gco2u(o)); - break; - } - case LUA_TUPVAL: { - UpVal *uv = gco2uv(o); - markvalue(g, uv->v); - if (uv->v != &uv->u.value) /* open? */ - return; /* open upvalues remain gray */ - size = sizeof(UpVal); - break; - } - case LUA_TLCL: { - gco2lcl(o)->gclist = g->gray; - g->gray = o; - return; - } - case LUA_TCCL: { - gco2ccl(o)->gclist = g->gray; - g->gray = o; - return; - } - case LUA_TTABLE: { - linktable(gco2t(o), &g->gray); - return; - } - case LUA_TTHREAD: { - gco2th(o)->gclist = g->gray; - g->gray = o; - return; - } - case LUA_TPROTO: { - gco2p(o)->gclist = g->gray; - g->gray = o; - return; - } - default: lua_assert(0); return; - } - gray2black(o); - g->GCmemtrav += size; -} - - -/* -** mark metamethods for basic types -*/ -static void markmt (global_State *g) { - int i; - for (i=0; i < LUA_NUMTAGS; i++) - markobject(g, g->mt[i]); -} - - -/* -** mark all objects in list of being-finalized -*/ -static void markbeingfnz (global_State *g) { - GCObject *o; - for (o = g->tobefnz; o != NULL; o = gch(o)->next) { - makewhite(g, o); - reallymarkobject(g, o); - } -} - - -/* -** mark all values stored in marked open upvalues. (See comment in -** 'lstate.h'.) -*/ -static void remarkupvals (global_State *g) { - UpVal *uv; - for (uv = g->uvhead.u.l.next; uv != &g->uvhead; uv = uv->u.l.next) { - if (isgray(obj2gco(uv))) - markvalue(g, uv->v); - } -} - - -/* -** mark root set and reset all gray lists, to start a new -** incremental (or full) collection -*/ -static void restartcollection (global_State *g) { - g->gray = g->grayagain = NULL; - g->weak = g->allweak = g->ephemeron = NULL; - markobject(g, g->mainthread); - markvalue(g, &g->l_registry); - markmt(g); - markbeingfnz(g); /* mark any finalizing object left from previous cycle */ -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Traverse functions -** ======================================================= -*/ - -static void traverseweakvalue (global_State *g, Table *h) { - Node *n, *limit = gnodelast(h); - /* if there is array part, assume it may have white values (do not - traverse it just to check) */ - int hasclears = (h->sizearray > 0); - for (n = gnode(h, 0); n < limit; n++) { - checkdeadkey(n); - if (ttisnil(gval(n))) /* entry is empty? */ - removeentry(n); /* remove it */ - else { - lua_assert(!ttisnil(gkey(n))); - markvalue(g, gkey(n)); /* mark key */ - if (!hasclears && iscleared(g, gval(n))) /* is there a white value? */ - hasclears = 1; /* table will have to be cleared */ - } - } - if (hasclears) - linktable(h, &g->weak); /* has to be cleared later */ - else /* no white values */ - linktable(h, &g->grayagain); /* no need to clean */ -} - - -static int traverseephemeron (global_State *g, Table *h) { - int marked = 0; /* true if an object is marked in this traversal */ - int hasclears = 0; /* true if table has white keys */ - int prop = 0; /* true if table has entry "white-key -> white-value" */ - Node *n, *limit = gnodelast(h); - int i; - /* traverse array part (numeric keys are 'strong') */ - for (i = 0; i < h->sizearray; i++) { - if (valiswhite(&h->array[i])) { - marked = 1; - reallymarkobject(g, gcvalue(&h->array[i])); - } - } - /* traverse hash part */ - for (n = gnode(h, 0); n < limit; n++) { - checkdeadkey(n); - if (ttisnil(gval(n))) /* entry is empty? */ - removeentry(n); /* remove it */ - else if (iscleared(g, gkey(n))) { /* key is not marked (yet)? */ - hasclears = 1; /* table must be cleared */ - if (valiswhite(gval(n))) /* value not marked yet? */ - prop = 1; /* must propagate again */ - } - else if (valiswhite(gval(n))) { /* value not marked yet? */ - marked = 1; - reallymarkobject(g, gcvalue(gval(n))); /* mark it now */ - } - } - if (prop) - linktable(h, &g->ephemeron); /* have to propagate again */ - else if (hasclears) /* does table have white keys? */ - linktable(h, &g->allweak); /* may have to clean white keys */ - else /* no white keys */ - linktable(h, &g->grayagain); /* no need to clean */ - return marked; -} - - -static void traversestrongtable (global_State *g, Table *h) { - Node *n, *limit = gnodelast(h); - int i; - for (i = 0; i < h->sizearray; i++) /* traverse array part */ - markvalue(g, &h->array[i]); - for (n = gnode(h, 0); n < limit; n++) { /* traverse hash part */ - checkdeadkey(n); - if (ttisnil(gval(n))) /* entry is empty? */ - removeentry(n); /* remove it */ - else { - lua_assert(!ttisnil(gkey(n))); - markvalue(g, gkey(n)); /* mark key */ - markvalue(g, gval(n)); /* mark value */ - } - } -} - - -static lu_mem traversetable (global_State *g, Table *h) { - const char *weakkey, *weakvalue; - const TValue *mode = gfasttm(g, h->metatable, TM_MODE); - markobject(g, h->metatable); - if (mode && ttisstring(mode) && /* is there a weak mode? */ - ((weakkey = strchr(svalue(mode), 'k')), - (weakvalue = strchr(svalue(mode), 'v')), - (weakkey || weakvalue))) { /* is really weak? */ - black2gray(obj2gco(h)); /* keep table gray */ - if (!weakkey) /* strong keys? */ - traverseweakvalue(g, h); - else if (!weakvalue) /* strong values? */ - traverseephemeron(g, h); - else /* all weak */ - linktable(h, &g->allweak); /* nothing to traverse now */ - } - else /* not weak */ - traversestrongtable(g, h); - return sizeof(Table) + sizeof(TValue) * h->sizearray + - sizeof(Node) * cast(size_t, sizenode(h)); -} - - -static int traverseproto (global_State *g, Proto *f) { - int i; - if (f->cache && iswhite(obj2gco(f->cache))) - f->cache = NULL; /* allow cache to be collected */ - markobject(g, f->source); - for (i = 0; i < f->sizek; i++) /* mark literals */ - markvalue(g, &f->k[i]); - for (i = 0; i < f->sizeupvalues; i++) /* mark upvalue names */ - markobject(g, f->upvalues[i].name); - for (i = 0; i < f->sizep; i++) /* mark nested protos */ - markobject(g, f->p[i]); - for (i = 0; i < f->sizelocvars; i++) /* mark local-variable names */ - markobject(g, f->locvars[i].varname); - return sizeof(Proto) + sizeof(Instruction) * f->sizecode + - sizeof(Proto *) * f->sizep + - sizeof(TValue) * f->sizek + - sizeof(int) * f->sizelineinfo + - sizeof(LocVar) * f->sizelocvars + - sizeof(Upvaldesc) * f->sizeupvalues; -} - - -static lu_mem traverseCclosure (global_State *g, CClosure *cl) { - int i; - for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ - markvalue(g, &cl->upvalue[i]); - return sizeCclosure(cl->nupvalues); -} - -static lu_mem traverseLclosure (global_State *g, LClosure *cl) { - int i; - markobject(g, cl->p); /* mark its prototype */ - for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ - markobject(g, cl->upvals[i]); - return sizeLclosure(cl->nupvalues); -} - - -static lu_mem traversestack (global_State *g, lua_State *th) { - int n = 0; - StkId o = th->stack; - if (o == NULL) - return 1; /* stack not completely built yet */ - for (; o < th->top; o++) /* mark live elements in the stack */ - markvalue(g, o); - if (g->gcstate == GCSatomic) { /* final traversal? */ - StkId lim = th->stack + th->stacksize; /* real end of stack */ - for (; o < lim; o++) /* clear not-marked stack slice */ - setnilvalue(o); - } - else { /* count call infos to compute size */ - CallInfo *ci; - for (ci = &th->base_ci; ci != th->ci; ci = ci->next) - n++; - } - return sizeof(lua_State) + sizeof(TValue) * th->stacksize + - sizeof(CallInfo) * n; -} - - -/* -** traverse one gray object, turning it to black (except for threads, -** which are always gray). -*/ -static void propagatemark (global_State *g) { - lu_mem size; - GCObject *o = g->gray; - lua_assert(isgray(o)); - gray2black(o); - switch (gch(o)->tt) { - case LUA_TTABLE: { - Table *h = gco2t(o); - g->gray = h->gclist; /* remove from 'gray' list */ - size = traversetable(g, h); - break; - } - case LUA_TLCL: { - LClosure *cl = gco2lcl(o); - g->gray = cl->gclist; /* remove from 'gray' list */ - size = traverseLclosure(g, cl); - break; - } - case LUA_TCCL: { - CClosure *cl = gco2ccl(o); - g->gray = cl->gclist; /* remove from 'gray' list */ - size = traverseCclosure(g, cl); - break; - } - case LUA_TTHREAD: { - lua_State *th = gco2th(o); - g->gray = th->gclist; /* remove from 'gray' list */ - th->gclist = g->grayagain; - g->grayagain = o; /* insert into 'grayagain' list */ - black2gray(o); - size = traversestack(g, th); - break; - } - case LUA_TPROTO: { - Proto *p = gco2p(o); - g->gray = p->gclist; /* remove from 'gray' list */ - size = traverseproto(g, p); - break; - } - default: lua_assert(0); return; - } - g->GCmemtrav += size; -} - - -static void propagateall (global_State *g) { - while (g->gray) propagatemark(g); -} - - -static void propagatelist (global_State *g, GCObject *l) { - lua_assert(g->gray == NULL); /* no grays left */ - g->gray = l; - propagateall(g); /* traverse all elements from 'l' */ -} - -/* -** retraverse all gray lists. Because tables may be reinserted in other -** lists when traversed, traverse the original lists to avoid traversing -** twice the same table (which is not wrong, but inefficient) -*/ -static void retraversegrays (global_State *g) { - GCObject *weak = g->weak; /* save original lists */ - GCObject *grayagain = g->grayagain; - GCObject *ephemeron = g->ephemeron; - g->weak = g->grayagain = g->ephemeron = NULL; - propagateall(g); /* traverse main gray list */ - propagatelist(g, grayagain); - propagatelist(g, weak); - propagatelist(g, ephemeron); -} - - -static void convergeephemerons (global_State *g) { - int changed; - do { - GCObject *w; - GCObject *next = g->ephemeron; /* get ephemeron list */ - g->ephemeron = NULL; /* tables will return to this list when traversed */ - changed = 0; - while ((w = next) != NULL) { - next = gco2t(w)->gclist; - if (traverseephemeron(g, gco2t(w))) { /* traverse marked some value? */ - propagateall(g); /* propagate changes */ - changed = 1; /* will have to revisit all ephemeron tables */ - } - } - } while (changed); -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Sweep Functions -** ======================================================= -*/ - - -/* -** clear entries with unmarked keys from all weaktables in list 'l' up -** to element 'f' -*/ -static void clearkeys (global_State *g, GCObject *l, GCObject *f) { - for (; l != f; l = gco2t(l)->gclist) { - Table *h = gco2t(l); - Node *n, *limit = gnodelast(h); - for (n = gnode(h, 0); n < limit; n++) { - if (!ttisnil(gval(n)) && (iscleared(g, gkey(n)))) { - setnilvalue(gval(n)); /* remove value ... */ - removeentry(n); /* and remove entry from table */ - } - } - } -} - - -/* -** clear entries with unmarked values from all weaktables in list 'l' up -** to element 'f' -*/ -static void clearvalues (global_State *g, GCObject *l, GCObject *f) { - for (; l != f; l = gco2t(l)->gclist) { - Table *h = gco2t(l); - Node *n, *limit = gnodelast(h); - int i; - for (i = 0; i < h->sizearray; i++) { - TValue *o = &h->array[i]; - if (iscleared(g, o)) /* value was collected? */ - setnilvalue(o); /* remove value */ - } - for (n = gnode(h, 0); n < limit; n++) { - if (!ttisnil(gval(n)) && iscleared(g, gval(n))) { - setnilvalue(gval(n)); /* remove value ... */ - removeentry(n); /* and remove entry from table */ - } - } - } -} - - -static void freeobj (lua_State *L, GCObject *o) { - switch (gch(o)->tt) { - case LUA_TPROTO: luaF_freeproto(L, gco2p(o)); break; - case LUA_TLCL: { - luaM_freemem(L, o, sizeLclosure(gco2lcl(o)->nupvalues)); - break; - } - case LUA_TCCL: { - luaM_freemem(L, o, sizeCclosure(gco2ccl(o)->nupvalues)); - break; - } - case LUA_TUPVAL: luaF_freeupval(L, gco2uv(o)); break; - case LUA_TTABLE: luaH_free(L, gco2t(o)); break; - case LUA_TTHREAD: luaE_freethread(L, gco2th(o)); break; - case LUA_TUSERDATA: luaM_freemem(L, o, sizeudata(gco2u(o))); break; - case LUA_TSHRSTR: - G(L)->strt.nuse--; - /* go through */ - case LUA_TLNGSTR: { - luaM_freemem(L, o, sizestring(gco2ts(o))); - break; - } - default: lua_assert(0); - } -} - - -#define sweepwholelist(L,p) sweeplist(L,p,MAX_LUMEM) -static GCObject **sweeplist (lua_State *L, GCObject **p, lu_mem count); - - -/* -** sweep the (open) upvalues of a thread and resize its stack and -** list of call-info structures. -*/ -static void sweepthread (lua_State *L, lua_State *L1) { - if (L1->stack == NULL) return; /* stack not completely built yet */ - sweepwholelist(L, &L1->openupval); /* sweep open upvalues */ - luaE_freeCI(L1); /* free extra CallInfo slots */ - /* should not change the stack during an emergency gc cycle */ - if (G(L)->gckind != KGC_EMERGENCY) - luaD_shrinkstack(L1); -} - - -/* -** sweep at most 'count' elements from a list of GCObjects erasing dead -** objects, where a dead (not alive) object is one marked with the "old" -** (non current) white and not fixed. -** In non-generational mode, change all non-dead objects back to white, -** preparing for next collection cycle. -** In generational mode, keep black objects black, and also mark them as -** old; stop when hitting an old object, as all objects after that -** one will be old too. -** When object is a thread, sweep its list of open upvalues too. -*/ -static GCObject **sweeplist (lua_State *L, GCObject **p, lu_mem count) { - global_State *g = G(L); - int ow = otherwhite(g); - int toclear, toset; /* bits to clear and to set in all live objects */ - int tostop; /* stop sweep when this is true */ - if (isgenerational(g)) { /* generational mode? */ - toclear = ~0; /* clear nothing */ - toset = bitmask(OLDBIT); /* set the old bit of all surviving objects */ - tostop = bitmask(OLDBIT); /* do not sweep old generation */ - } - else { /* normal mode */ - toclear = maskcolors; /* clear all color bits + old bit */ - toset = luaC_white(g); /* make object white */ - tostop = 0; /* do not stop */ - } - while (*p != NULL && count-- > 0) { - GCObject *curr = *p; - int marked = gch(curr)->marked; - if (isdeadm(ow, marked)) { /* is 'curr' dead? */ - *p = gch(curr)->next; /* remove 'curr' from list */ - freeobj(L, curr); /* erase 'curr' */ - } - else { - if (testbits(marked, tostop)) - return NULL; /* stop sweeping this list */ - if (gch(curr)->tt == LUA_TTHREAD) - sweepthread(L, gco2th(curr)); /* sweep thread's upvalues */ - /* update marks */ - gch(curr)->marked = cast_byte((marked & toclear) | toset); - p = &gch(curr)->next; /* go to next element */ - } - } - return (*p == NULL) ? NULL : p; -} - - -/* -** sweep a list until a live object (or end of list) -*/ -static GCObject **sweeptolive (lua_State *L, GCObject **p, int *n) { - GCObject ** old = p; - int i = 0; - do { - i++; - p = sweeplist(L, p, 1); - } while (p == old); - if (n) *n += i; - return p; -} - -/* }====================================================== */ - - -/* -** {====================================================== -** Finalization -** ======================================================= -*/ - -static void checkSizes (lua_State *L) { - global_State *g = G(L); - if (g->gckind != KGC_EMERGENCY) { /* do not change sizes in emergency */ - int hs = g->strt.size / 2; /* half the size of the string table */ - if (g->strt.nuse < cast(lu_int32, hs)) /* using less than that half? */ - luaS_resize(L, hs); /* halve its size */ - luaZ_freebuffer(L, &g->buff); /* free concatenation buffer */ - } -} - - -static GCObject *udata2finalize (global_State *g) { - GCObject *o = g->tobefnz; /* get first element */ - lua_assert(isfinalized(o)); - g->tobefnz = gch(o)->next; /* remove it from 'tobefnz' list */ - gch(o)->next = g->allgc; /* return it to 'allgc' list */ - g->allgc = o; - resetbit(gch(o)->marked, SEPARATED); /* mark that it is not in 'tobefnz' */ - lua_assert(!isold(o)); /* see MOVE OLD rule */ - if (!keepinvariantout(g)) /* not keeping invariant? */ - makewhite(g, o); /* "sweep" object */ - return o; -} - - -static void dothecall (lua_State *L, void *ud) { - UNUSED(ud); - luaD_call(L, L->top - 2, 0, 0); -} - - -static void GCTM (lua_State *L, int propagateerrors) { - global_State *g = G(L); - const TValue *tm; - TValue v; - setgcovalue(L, &v, udata2finalize(g)); - tm = luaT_gettmbyobj(L, &v, TM_GC); - if (tm != NULL && ttisfunction(tm)) { /* is there a finalizer? */ - int status; - lu_byte oldah = L->allowhook; - int running = g->gcrunning; - L->allowhook = 0; /* stop debug hooks during GC metamethod */ - g->gcrunning = 0; /* avoid GC steps */ - setobj2s(L, L->top, tm); /* push finalizer... */ - setobj2s(L, L->top + 1, &v); /* ... and its argument */ - L->top += 2; /* and (next line) call the finalizer */ - status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); - L->allowhook = oldah; /* restore hooks */ - g->gcrunning = running; /* restore state */ - if (status != LUA_OK && propagateerrors) { /* error while running __gc? */ - if (status == LUA_ERRRUN) { /* is there an error object? */ - const char *msg = (ttisstring(L->top - 1)) - ? svalue(L->top - 1) - : "no message"; - luaO_pushfstring(L, "error in __gc metamethod (%s)", msg); - status = LUA_ERRGCMM; /* error in __gc metamethod */ - } - luaD_throw(L, status); /* re-throw error */ - } - } -} - - -/* -** move all unreachable objects (or 'all' objects) that need -** finalization from list 'finobj' to list 'tobefnz' (to be finalized) -*/ -static void separatetobefnz (lua_State *L, int all) { - global_State *g = G(L); - GCObject **p = &g->finobj; - GCObject *curr; - GCObject **lastnext = &g->tobefnz; - /* find last 'next' field in 'tobefnz' list (to add elements in its end) */ - while (*lastnext != NULL) - lastnext = &gch(*lastnext)->next; - while ((curr = *p) != NULL) { /* traverse all finalizable objects */ - lua_assert(!isfinalized(curr)); - lua_assert(testbit(gch(curr)->marked, SEPARATED)); - if (!(iswhite(curr) || all)) /* not being collected? */ - p = &gch(curr)->next; /* don't bother with it */ - else { - l_setbit(gch(curr)->marked, FINALIZEDBIT); /* won't be finalized again */ - *p = gch(curr)->next; /* remove 'curr' from 'finobj' list */ - gch(curr)->next = *lastnext; /* link at the end of 'tobefnz' list */ - *lastnext = curr; - lastnext = &gch(curr)->next; - } - } -} - - -/* -** if object 'o' has a finalizer, remove it from 'allgc' list (must -** search the list to find it) and link it in 'finobj' list. -*/ -void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) { - global_State *g = G(L); - if (testbit(gch(o)->marked, SEPARATED) || /* obj. is already separated... */ - isfinalized(o) || /* ... or is finalized... */ - gfasttm(g, mt, TM_GC) == NULL) /* or has no finalizer? */ - return; /* nothing to be done */ - else { /* move 'o' to 'finobj' list */ - GCObject **p; - GCheader *ho = gch(o); - if (g->sweepgc == &ho->next) { /* avoid removing current sweep object */ - lua_assert(issweepphase(g)); - g->sweepgc = sweeptolive(L, g->sweepgc, NULL); - } - /* search for pointer pointing to 'o' */ - for (p = &g->allgc; *p != o; p = &gch(*p)->next) { /* empty */ } - *p = ho->next; /* remove 'o' from root list */ - ho->next = g->finobj; /* link it in list 'finobj' */ - g->finobj = o; - l_setbit(ho->marked, SEPARATED); /* mark it as such */ - if (!keepinvariantout(g)) /* not keeping invariant? */ - makewhite(g, o); /* "sweep" object */ - else - resetoldbit(o); /* see MOVE OLD rule */ - } -} - -/* }====================================================== */ - - -/* -** {====================================================== -** GC control -** ======================================================= -*/ - - -/* -** set a reasonable "time" to wait before starting a new GC cycle; -** cycle will start when memory use hits threshold -*/ -static void setpause (global_State *g, l_mem estimate) { - l_mem debt, threshold; - estimate = estimate / PAUSEADJ; /* adjust 'estimate' */ - threshold = (g->gcpause < MAX_LMEM / estimate) /* overflow? */ - ? estimate * g->gcpause /* no overflow */ - : MAX_LMEM; /* overflow; truncate to maximum */ - debt = -cast(l_mem, threshold - gettotalbytes(g)); - luaE_setdebt(g, debt); -} - - -#define sweepphases \ - (bitmask(GCSsweepstring) | bitmask(GCSsweepudata) | bitmask(GCSsweep)) - - -/* -** enter first sweep phase (strings) and prepare pointers for other -** sweep phases. The calls to 'sweeptolive' make pointers point to an -** object inside the list (instead of to the header), so that the real -** sweep do not need to skip objects created between "now" and the start -** of the real sweep. -** Returns how many objects it swept. -*/ -static int entersweep (lua_State *L) { - global_State *g = G(L); - int n = 0; - g->gcstate = GCSsweepstring; - lua_assert(g->sweepgc == NULL && g->sweepfin == NULL); - /* prepare to sweep strings, finalizable objects, and regular objects */ - g->sweepstrgc = 0; - g->sweepfin = sweeptolive(L, &g->finobj, &n); - g->sweepgc = sweeptolive(L, &g->allgc, &n); - return n; -} - - -/* -** change GC mode -*/ -void luaC_changemode (lua_State *L, int mode) { - global_State *g = G(L); - if (mode == g->gckind) return; /* nothing to change */ - if (mode == KGC_GEN) { /* change to generational mode */ - /* make sure gray lists are consistent */ - luaC_runtilstate(L, bitmask(GCSpropagate)); - g->GCestimate = gettotalbytes(g); - g->gckind = KGC_GEN; - } - else { /* change to incremental mode */ - /* sweep all objects to turn them back to white - (as white has not changed, nothing extra will be collected) */ - g->gckind = KGC_NORMAL; - entersweep(L); - luaC_runtilstate(L, ~sweepphases); - } -} - - -/* -** call all pending finalizers -*/ -static void callallpendingfinalizers (lua_State *L, int propagateerrors) { - global_State *g = G(L); - while (g->tobefnz) { - resetoldbit(g->tobefnz); - GCTM(L, propagateerrors); - } -} - - -void luaC_freeallobjects (lua_State *L) { - global_State *g = G(L); - int i; - separatetobefnz(L, 1); /* separate all objects with finalizers */ - lua_assert(g->finobj == NULL); - callallpendingfinalizers(L, 0); - g->currentwhite = WHITEBITS; /* this "white" makes all objects look dead */ - g->gckind = KGC_NORMAL; - sweepwholelist(L, &g->finobj); /* finalizers can create objs. in 'finobj' */ - sweepwholelist(L, &g->allgc); - for (i = 0; i < g->strt.size; i++) /* free all string lists */ - sweepwholelist(L, &g->strt.hash[i]); - lua_assert(g->strt.nuse == 0); -} - - -static l_mem atomic (lua_State *L) { - global_State *g = G(L); - l_mem work = -cast(l_mem, g->GCmemtrav); /* start counting work */ - GCObject *origweak, *origall; - lua_assert(!iswhite(obj2gco(g->mainthread))); - markobject(g, L); /* mark running thread */ - /* registry and global metatables may be changed by API */ - markvalue(g, &g->l_registry); - markmt(g); /* mark basic metatables */ - /* remark occasional upvalues of (maybe) dead threads */ - remarkupvals(g); - propagateall(g); /* propagate changes */ - work += g->GCmemtrav; /* stop counting (do not (re)count grays) */ - /* traverse objects caught by write barrier and by 'remarkupvals' */ - retraversegrays(g); - work -= g->GCmemtrav; /* restart counting */ - convergeephemerons(g); - /* at this point, all strongly accessible objects are marked. */ - /* clear values from weak tables, before checking finalizers */ - clearvalues(g, g->weak, NULL); - clearvalues(g, g->allweak, NULL); - origweak = g->weak; origall = g->allweak; - work += g->GCmemtrav; /* stop counting (objects being finalized) */ - separatetobefnz(L, 0); /* separate objects to be finalized */ - markbeingfnz(g); /* mark objects that will be finalized */ - propagateall(g); /* remark, to propagate `preserveness' */ - work -= g->GCmemtrav; /* restart counting */ - convergeephemerons(g); - /* at this point, all resurrected objects are marked. */ - /* remove dead objects from weak tables */ - clearkeys(g, g->ephemeron, NULL); /* clear keys from all ephemeron tables */ - clearkeys(g, g->allweak, NULL); /* clear keys from all allweak tables */ - /* clear values from resurrected weak tables */ - clearvalues(g, g->weak, origweak); - clearvalues(g, g->allweak, origall); - g->currentwhite = cast_byte(otherwhite(g)); /* flip current white */ - work += g->GCmemtrav; /* complete counting */ - return work; /* estimate of memory marked by 'atomic' */ -} - - -static lu_mem singlestep (lua_State *L) { - global_State *g = G(L); - switch (g->gcstate) { - case GCSpause: { - /* start to count memory traversed */ - g->GCmemtrav = g->strt.size * sizeof(GCObject*); - lua_assert(!isgenerational(g)); - restartcollection(g); - g->gcstate = GCSpropagate; - return g->GCmemtrav; - } - case GCSpropagate: { - if (g->gray) { - lu_mem oldtrav = g->GCmemtrav; - propagatemark(g); - return g->GCmemtrav - oldtrav; /* memory traversed in this step */ - } - else { /* no more `gray' objects */ - lu_mem work; - int sw; - g->gcstate = GCSatomic; /* finish mark phase */ - g->GCestimate = g->GCmemtrav; /* save what was counted */; - work = atomic(L); /* add what was traversed by 'atomic' */ - g->GCestimate += work; /* estimate of total memory traversed */ - sw = entersweep(L); - return work + sw * GCSWEEPCOST; - } - } - case GCSsweepstring: { - int i; - for (i = 0; i < GCSWEEPMAX && g->sweepstrgc + i < g->strt.size; i++) - sweepwholelist(L, &g->strt.hash[g->sweepstrgc + i]); - g->sweepstrgc += i; - if (g->sweepstrgc >= g->strt.size) /* no more strings to sweep? */ - g->gcstate = GCSsweepudata; - return i * GCSWEEPCOST; - } - case GCSsweepudata: { - if (g->sweepfin) { - g->sweepfin = sweeplist(L, g->sweepfin, GCSWEEPMAX); - return GCSWEEPMAX*GCSWEEPCOST; - } - else { - g->gcstate = GCSsweep; - return 0; - } - } - case GCSsweep: { - if (g->sweepgc) { - g->sweepgc = sweeplist(L, g->sweepgc, GCSWEEPMAX); - return GCSWEEPMAX*GCSWEEPCOST; - } - else { - /* sweep main thread */ - GCObject *mt = obj2gco(g->mainthread); - sweeplist(L, &mt, 1); - checkSizes(L); - g->gcstate = GCSpause; /* finish collection */ - return GCSWEEPCOST; - } - } - default: lua_assert(0); return 0; - } -} - - -/* -** advances the garbage collector until it reaches a state allowed -** by 'statemask' -*/ -void luaC_runtilstate (lua_State *L, int statesmask) { - global_State *g = G(L); - while (!testbit(statesmask, g->gcstate)) - singlestep(L); -} - - -static void generationalcollection (lua_State *L) { - global_State *g = G(L); - lua_assert(g->gcstate == GCSpropagate); - if (g->GCestimate == 0) { /* signal for another major collection? */ - luaC_fullgc(L, 0); /* perform a full regular collection */ - g->GCestimate = gettotalbytes(g); /* update control */ - } - else { - lu_mem estimate = g->GCestimate; - luaC_runtilstate(L, bitmask(GCSpause)); /* run complete (minor) cycle */ - g->gcstate = GCSpropagate; /* skip restart */ - if (gettotalbytes(g) > (estimate / 100) * g->gcmajorinc) - g->GCestimate = 0; /* signal for a major collection */ - else - g->GCestimate = estimate; /* keep estimate from last major coll. */ - - } - setpause(g, gettotalbytes(g)); - lua_assert(g->gcstate == GCSpropagate); -} - - -static void incstep (lua_State *L) { - global_State *g = G(L); - l_mem debt = g->GCdebt; - int stepmul = g->gcstepmul; - if (stepmul < 40) stepmul = 40; /* avoid ridiculous low values (and 0) */ - /* convert debt from Kb to 'work units' (avoid zero debt and overflows) */ - debt = (debt / STEPMULADJ) + 1; - debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM; - do { /* always perform at least one single step */ - lu_mem work = singlestep(L); /* do some work */ - debt -= work; - } while (debt > -GCSTEPSIZE && g->gcstate != GCSpause); - if (g->gcstate == GCSpause) - setpause(g, g->GCestimate); /* pause until next cycle */ - else { - debt = (debt / stepmul) * STEPMULADJ; /* convert 'work units' to Kb */ - luaE_setdebt(g, debt); - } -} - - -/* -** performs a basic GC step -*/ -void luaC_forcestep (lua_State *L) { - global_State *g = G(L); - int i; - if (isgenerational(g)) generationalcollection(L); - else incstep(L); - /* run a few finalizers (or all of them at the end of a collect cycle) */ - for (i = 0; g->tobefnz && (i < GCFINALIZENUM || g->gcstate == GCSpause); i++) - GCTM(L, 1); /* call one finalizer */ -} - - -/* -** performs a basic GC step only if collector is running -*/ -void luaC_step (lua_State *L) { - global_State *g = G(L); - if (g->gcrunning) luaC_forcestep(L); - else luaE_setdebt(g, -GCSTEPSIZE); /* avoid being called too often */ -} - - - -/* -** performs a full GC cycle; if "isemergency", does not call -** finalizers (which could change stack positions) -*/ -void luaC_fullgc (lua_State *L, int isemergency) { - global_State *g = G(L); - int origkind = g->gckind; - lua_assert(origkind != KGC_EMERGENCY); - if (isemergency) /* do not run finalizers during emergency GC */ - g->gckind = KGC_EMERGENCY; - else { - g->gckind = KGC_NORMAL; - callallpendingfinalizers(L, 1); - } - if (keepinvariant(g)) { /* may there be some black objects? */ - /* must sweep all objects to turn them back to white - (as white has not changed, nothing will be collected) */ - entersweep(L); - } - /* finish any pending sweep phase to start a new cycle */ - luaC_runtilstate(L, bitmask(GCSpause)); - luaC_runtilstate(L, ~bitmask(GCSpause)); /* start new collection */ - luaC_runtilstate(L, bitmask(GCSpause)); /* run entire collection */ - if (origkind == KGC_GEN) { /* generational mode? */ - /* generational mode must be kept in propagate phase */ - luaC_runtilstate(L, bitmask(GCSpropagate)); - } - g->gckind = origkind; - setpause(g, gettotalbytes(g)); - if (!isemergency) /* do not run finalizers during emergency GC */ - callallpendingfinalizers(L, 1); -} - -/* }====================================================== */ - - diff --git a/btgui/lua-5.2.3/src/lgc.h b/btgui/lua-5.2.3/src/lgc.h deleted file mode 100644 index 84bb1cdf9..000000000 --- a/btgui/lua-5.2.3/src/lgc.h +++ /dev/null @@ -1,157 +0,0 @@ -/* -** $Id: lgc.h,v 2.58.1.1 2013/04/12 18:48:47 roberto Exp $ -** Garbage Collector -** See Copyright Notice in lua.h -*/ - -#ifndef lgc_h -#define lgc_h - - -#include "lobject.h" -#include "lstate.h" - -/* -** Collectable objects may have one of three colors: white, which -** means the object is not marked; gray, which means the -** object is marked, but its references may be not marked; and -** black, which means that the object and all its references are marked. -** The main invariant of the garbage collector, while marking objects, -** is that a black object can never point to a white one. Moreover, -** any gray object must be in a "gray list" (gray, grayagain, weak, -** allweak, ephemeron) so that it can be visited again before finishing -** the collection cycle. These lists have no meaning when the invariant -** is not being enforced (e.g., sweep phase). -*/ - - - -/* how much to allocate before next GC step */ -#if !defined(GCSTEPSIZE) -/* ~100 small strings */ -#define GCSTEPSIZE (cast_int(100 * sizeof(TString))) -#endif - - -/* -** Possible states of the Garbage Collector -*/ -#define GCSpropagate 0 -#define GCSatomic 1 -#define GCSsweepstring 2 -#define GCSsweepudata 3 -#define GCSsweep 4 -#define GCSpause 5 - - -#define issweepphase(g) \ - (GCSsweepstring <= (g)->gcstate && (g)->gcstate <= GCSsweep) - -#define isgenerational(g) ((g)->gckind == KGC_GEN) - -/* -** macros to tell when main invariant (white objects cannot point to black -** ones) must be kept. During a non-generational collection, the sweep -** phase may break the invariant, as objects turned white may point to -** still-black objects. The invariant is restored when sweep ends and -** all objects are white again. During a generational collection, the -** invariant must be kept all times. -*/ - -#define keepinvariant(g) (isgenerational(g) || g->gcstate <= GCSatomic) - - -/* -** Outside the collector, the state in generational mode is kept in -** 'propagate', so 'keepinvariant' is always true. -*/ -#define keepinvariantout(g) \ - check_exp(g->gcstate == GCSpropagate || !isgenerational(g), \ - g->gcstate <= GCSatomic) - - -/* -** some useful bit tricks -*/ -#define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) -#define setbits(x,m) ((x) |= (m)) -#define testbits(x,m) ((x) & (m)) -#define bitmask(b) (1<<(b)) -#define bit2mask(b1,b2) (bitmask(b1) | bitmask(b2)) -#define l_setbit(x,b) setbits(x, bitmask(b)) -#define resetbit(x,b) resetbits(x, bitmask(b)) -#define testbit(x,b) testbits(x, bitmask(b)) - - -/* Layout for bit use in `marked' field: */ -#define WHITE0BIT 0 /* object is white (type 0) */ -#define WHITE1BIT 1 /* object is white (type 1) */ -#define BLACKBIT 2 /* object is black */ -#define FINALIZEDBIT 3 /* object has been separated for finalization */ -#define SEPARATED 4 /* object is in 'finobj' list or in 'tobefnz' */ -#define FIXEDBIT 5 /* object is fixed (should not be collected) */ -#define OLDBIT 6 /* object is old (only in generational mode) */ -/* bit 7 is currently used by tests (luaL_checkmemory) */ - -#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) - - -#define iswhite(x) testbits((x)->gch.marked, WHITEBITS) -#define isblack(x) testbit((x)->gch.marked, BLACKBIT) -#define isgray(x) /* neither white nor black */ \ - (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT))) - -#define isold(x) testbit((x)->gch.marked, OLDBIT) - -/* MOVE OLD rule: whenever an object is moved to the beginning of - a GC list, its old bit must be cleared */ -#define resetoldbit(o) resetbit((o)->gch.marked, OLDBIT) - -#define otherwhite(g) (g->currentwhite ^ WHITEBITS) -#define isdeadm(ow,m) (!(((m) ^ WHITEBITS) & (ow))) -#define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked) - -#define changewhite(x) ((x)->gch.marked ^= WHITEBITS) -#define gray2black(x) l_setbit((x)->gch.marked, BLACKBIT) - -#define valiswhite(x) (iscollectable(x) && iswhite(gcvalue(x))) - -#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) - - -#define luaC_condGC(L,c) \ - {if (G(L)->GCdebt > 0) {c;}; condchangemem(L);} -#define luaC_checkGC(L) luaC_condGC(L, luaC_step(L);) - - -#define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \ - luaC_barrier_(L,obj2gco(p),gcvalue(v)); } - -#define luaC_barrierback(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \ - luaC_barrierback_(L,p); } - -#define luaC_objbarrier(L,p,o) \ - { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \ - luaC_barrier_(L,obj2gco(p),obj2gco(o)); } - -#define luaC_objbarrierback(L,p,o) \ - { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) luaC_barrierback_(L,p); } - -#define luaC_barrierproto(L,p,c) \ - { if (isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); } - -LUAI_FUNC void luaC_freeallobjects (lua_State *L); -LUAI_FUNC void luaC_step (lua_State *L); -LUAI_FUNC void luaC_forcestep (lua_State *L); -LUAI_FUNC void luaC_runtilstate (lua_State *L, int statesmask); -LUAI_FUNC void luaC_fullgc (lua_State *L, int isemergency); -LUAI_FUNC GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, - GCObject **list, int offset); -LUAI_FUNC void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v); -LUAI_FUNC void luaC_barrierback_ (lua_State *L, GCObject *o); -LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c); -LUAI_FUNC void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt); -LUAI_FUNC void luaC_checkupvalcolor (global_State *g, UpVal *uv); -LUAI_FUNC void luaC_changemode (lua_State *L, int mode); - -#endif diff --git a/btgui/lua-5.2.3/src/linit.c b/btgui/lua-5.2.3/src/linit.c deleted file mode 100644 index c1a383047..000000000 --- a/btgui/lua-5.2.3/src/linit.c +++ /dev/null @@ -1,67 +0,0 @@ -/* -** $Id: linit.c,v 1.32.1.1 2013/04/12 18:48:47 roberto Exp $ -** Initialization of libraries for lua.c and other clients -** See Copyright Notice in lua.h -*/ - - -/* -** If you embed Lua in your program and need to open the standard -** libraries, call luaL_openlibs in your program. If you need a -** different set of libraries, copy this file to your project and edit -** it to suit your needs. -*/ - - -#define linit_c -#define LUA_LIB - -#include "lua.h" - -#include "lualib.h" -#include "lauxlib.h" - - -/* -** these libs are loaded by lua.c and are readily available to any Lua -** program -*/ -static const luaL_Reg loadedlibs[] = { - {"_G", luaopen_base}, - {LUA_LOADLIBNAME, luaopen_package}, - {LUA_COLIBNAME, luaopen_coroutine}, - {LUA_TABLIBNAME, luaopen_table}, - {LUA_IOLIBNAME, luaopen_io}, - {LUA_OSLIBNAME, luaopen_os}, - {LUA_STRLIBNAME, luaopen_string}, - {LUA_BITLIBNAME, luaopen_bit32}, - {LUA_MATHLIBNAME, luaopen_math}, - {LUA_DBLIBNAME, luaopen_debug}, - {NULL, NULL} -}; - - -/* -** these libs are preloaded and must be required before used -*/ -static const luaL_Reg preloadedlibs[] = { - {NULL, NULL} -}; - - -LUALIB_API void luaL_openlibs (lua_State *L) { - const luaL_Reg *lib; - /* call open functions from 'loadedlibs' and set results to global table */ - for (lib = loadedlibs; lib->func; lib++) { - luaL_requiref(L, lib->name, lib->func, 1); - lua_pop(L, 1); /* remove lib */ - } - /* add open functions from 'preloadedlibs' into 'package.preload' table */ - luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD"); - for (lib = preloadedlibs; lib->func; lib++) { - lua_pushcfunction(L, lib->func); - lua_setfield(L, -2, lib->name); - } - lua_pop(L, 1); /* remove _PRELOAD table */ -} - diff --git a/btgui/lua-5.2.3/src/liolib.c b/btgui/lua-5.2.3/src/liolib.c deleted file mode 100644 index 2a4ec4aa3..000000000 --- a/btgui/lua-5.2.3/src/liolib.c +++ /dev/null @@ -1,666 +0,0 @@ -/* -** $Id: liolib.c,v 2.112.1.1 2013/04/12 18:48:47 roberto Exp $ -** Standard I/O (and system) library -** See Copyright Notice in lua.h -*/ - - -/* -** This definition must come before the inclusion of 'stdio.h'; it -** should not affect non-POSIX systems -*/ -#if !defined(_FILE_OFFSET_BITS) -#define _LARGEFILE_SOURCE 1 -#define _FILE_OFFSET_BITS 64 -#endif - - -#include -#include -#include -#include - -#define liolib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -#if !defined(lua_checkmode) - -/* -** Check whether 'mode' matches '[rwa]%+?b?'. -** Change this macro to accept other modes for 'fopen' besides -** the standard ones. -*/ -#define lua_checkmode(mode) \ - (*mode != '\0' && strchr("rwa", *(mode++)) != NULL && \ - (*mode != '+' || ++mode) && /* skip if char is '+' */ \ - (*mode != 'b' || ++mode) && /* skip if char is 'b' */ \ - (*mode == '\0')) - -#endif - -/* -** {====================================================== -** lua_popen spawns a new process connected to the current -** one through the file streams. -** ======================================================= -*/ - -#if !defined(lua_popen) /* { */ - -#if defined(LUA_USE_POPEN) /* { */ - -#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m)) -#define lua_pclose(L,file) ((void)L, pclose(file)) - -#elif defined(LUA_WIN) /* }{ */ - -#define lua_popen(L,c,m) ((void)L, _popen(c,m)) -#define lua_pclose(L,file) ((void)L, _pclose(file)) - - -#else /* }{ */ - -#define lua_popen(L,c,m) ((void)((void)c, m), \ - luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0) -#define lua_pclose(L,file) ((void)((void)L, file), -1) - - -#endif /* } */ - -#endif /* } */ - -/* }====================================================== */ - - -/* -** {====================================================== -** lua_fseek: configuration for longer offsets -** ======================================================= -*/ - -#if !defined(lua_fseek) && !defined(LUA_ANSI) /* { */ - -#if defined(LUA_USE_POSIX) /* { */ - -#define l_fseek(f,o,w) fseeko(f,o,w) -#define l_ftell(f) ftello(f) -#define l_seeknum off_t - -#elif defined(LUA_WIN) && !defined(_CRTIMP_TYPEINFO) \ - && defined(_MSC_VER) && (_MSC_VER >= 1400) /* }{ */ -/* Windows (but not DDK) and Visual C++ 2005 or higher */ - -#define l_fseek(f,o,w) _fseeki64(f,o,w) -#define l_ftell(f) _ftelli64(f) -#define l_seeknum __int64 - -#endif /* } */ - -#endif /* } */ - - -#if !defined(l_fseek) /* default definitions */ -#define l_fseek(f,o,w) fseek(f,o,w) -#define l_ftell(f) ftell(f) -#define l_seeknum long -#endif - -/* }====================================================== */ - - -#define IO_PREFIX "_IO_" -#define IO_INPUT (IO_PREFIX "input") -#define IO_OUTPUT (IO_PREFIX "output") - - -typedef luaL_Stream LStream; - - -#define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) - -#define isclosed(p) ((p)->closef == NULL) - - -static int io_type (lua_State *L) { - LStream *p; - luaL_checkany(L, 1); - p = (LStream *)luaL_testudata(L, 1, LUA_FILEHANDLE); - if (p == NULL) - lua_pushnil(L); /* not a file */ - else if (isclosed(p)) - lua_pushliteral(L, "closed file"); - else - lua_pushliteral(L, "file"); - return 1; -} - - -static int f_tostring (lua_State *L) { - LStream *p = tolstream(L); - if (isclosed(p)) - lua_pushliteral(L, "file (closed)"); - else - lua_pushfstring(L, "file (%p)", p->f); - return 1; -} - - -static FILE *tofile (lua_State *L) { - LStream *p = tolstream(L); - if (isclosed(p)) - luaL_error(L, "attempt to use a closed file"); - lua_assert(p->f); - return p->f; -} - - -/* -** When creating file handles, always creates a `closed' file handle -** before opening the actual file; so, if there is a memory error, the -** file is not left opened. -*/ -static LStream *newprefile (lua_State *L) { - LStream *p = (LStream *)lua_newuserdata(L, sizeof(LStream)); - p->closef = NULL; /* mark file handle as 'closed' */ - luaL_setmetatable(L, LUA_FILEHANDLE); - return p; -} - - -static int aux_close (lua_State *L) { - LStream *p = tolstream(L); - lua_CFunction cf = p->closef; - p->closef = NULL; /* mark stream as closed */ - return (*cf)(L); /* close it */ -} - - -static int io_close (lua_State *L) { - if (lua_isnone(L, 1)) /* no argument? */ - lua_getfield(L, LUA_REGISTRYINDEX, IO_OUTPUT); /* use standard output */ - tofile(L); /* make sure argument is an open stream */ - return aux_close(L); -} - - -static int f_gc (lua_State *L) { - LStream *p = tolstream(L); - if (!isclosed(p) && p->f != NULL) - aux_close(L); /* ignore closed and incompletely open files */ - return 0; -} - - -/* -** function to close regular files -*/ -static int io_fclose (lua_State *L) { - LStream *p = tolstream(L); - int res = fclose(p->f); - return luaL_fileresult(L, (res == 0), NULL); -} - - -static LStream *newfile (lua_State *L) { - LStream *p = newprefile(L); - p->f = NULL; - p->closef = &io_fclose; - return p; -} - - -static void opencheck (lua_State *L, const char *fname, const char *mode) { - LStream *p = newfile(L); - p->f = fopen(fname, mode); - if (p->f == NULL) - luaL_error(L, "cannot open file " LUA_QS " (%s)", fname, strerror(errno)); -} - - -static int io_open (lua_State *L) { - const char *filename = luaL_checkstring(L, 1); - const char *mode = luaL_optstring(L, 2, "r"); - LStream *p = newfile(L); - const char *md = mode; /* to traverse/check mode */ - luaL_argcheck(L, lua_checkmode(md), 2, "invalid mode"); - p->f = fopen(filename, mode); - return (p->f == NULL) ? luaL_fileresult(L, 0, filename) : 1; -} - - -/* -** function to close 'popen' files -*/ -static int io_pclose (lua_State *L) { - LStream *p = tolstream(L); - return luaL_execresult(L, lua_pclose(L, p->f)); -} - - -static int io_popen (lua_State *L) { - const char *filename = luaL_checkstring(L, 1); - const char *mode = luaL_optstring(L, 2, "r"); - LStream *p = newprefile(L); - p->f = lua_popen(L, filename, mode); - p->closef = &io_pclose; - return (p->f == NULL) ? luaL_fileresult(L, 0, filename) : 1; -} - - -static int io_tmpfile (lua_State *L) { - LStream *p = newfile(L); - p->f = tmpfile(); - return (p->f == NULL) ? luaL_fileresult(L, 0, NULL) : 1; -} - - -static FILE *getiofile (lua_State *L, const char *findex) { - LStream *p; - lua_getfield(L, LUA_REGISTRYINDEX, findex); - p = (LStream *)lua_touserdata(L, -1); - if (isclosed(p)) - luaL_error(L, "standard %s file is closed", findex + strlen(IO_PREFIX)); - return p->f; -} - - -static int g_iofile (lua_State *L, const char *f, const char *mode) { - if (!lua_isnoneornil(L, 1)) { - const char *filename = lua_tostring(L, 1); - if (filename) - opencheck(L, filename, mode); - else { - tofile(L); /* check that it's a valid file handle */ - lua_pushvalue(L, 1); - } - lua_setfield(L, LUA_REGISTRYINDEX, f); - } - /* return current value */ - lua_getfield(L, LUA_REGISTRYINDEX, f); - return 1; -} - - -static int io_input (lua_State *L) { - return g_iofile(L, IO_INPUT, "r"); -} - - -static int io_output (lua_State *L) { - return g_iofile(L, IO_OUTPUT, "w"); -} - - -static int io_readline (lua_State *L); - - -static void aux_lines (lua_State *L, int toclose) { - int i; - int n = lua_gettop(L) - 1; /* number of arguments to read */ - /* ensure that arguments will fit here and into 'io_readline' stack */ - luaL_argcheck(L, n <= LUA_MINSTACK - 3, LUA_MINSTACK - 3, "too many options"); - lua_pushvalue(L, 1); /* file handle */ - lua_pushinteger(L, n); /* number of arguments to read */ - lua_pushboolean(L, toclose); /* close/not close file when finished */ - for (i = 1; i <= n; i++) lua_pushvalue(L, i + 1); /* copy arguments */ - lua_pushcclosure(L, io_readline, 3 + n); -} - - -static int f_lines (lua_State *L) { - tofile(L); /* check that it's a valid file handle */ - aux_lines(L, 0); - return 1; -} - - -static int io_lines (lua_State *L) { - int toclose; - if (lua_isnone(L, 1)) lua_pushnil(L); /* at least one argument */ - if (lua_isnil(L, 1)) { /* no file name? */ - lua_getfield(L, LUA_REGISTRYINDEX, IO_INPUT); /* get default input */ - lua_replace(L, 1); /* put it at index 1 */ - tofile(L); /* check that it's a valid file handle */ - toclose = 0; /* do not close it after iteration */ - } - else { /* open a new file */ - const char *filename = luaL_checkstring(L, 1); - opencheck(L, filename, "r"); - lua_replace(L, 1); /* put file at index 1 */ - toclose = 1; /* close it after iteration */ - } - aux_lines(L, toclose); - return 1; -} - - -/* -** {====================================================== -** READ -** ======================================================= -*/ - - -static int read_number (lua_State *L, FILE *f) { - lua_Number d; - if (fscanf(f, LUA_NUMBER_SCAN, &d) == 1) { - lua_pushnumber(L, d); - return 1; - } - else { - lua_pushnil(L); /* "result" to be removed */ - return 0; /* read fails */ - } -} - - -static int test_eof (lua_State *L, FILE *f) { - int c = getc(f); - ungetc(c, f); - lua_pushlstring(L, NULL, 0); - return (c != EOF); -} - - -static int read_line (lua_State *L, FILE *f, int chop) { - luaL_Buffer b; - luaL_buffinit(L, &b); - for (;;) { - size_t l; - char *p = luaL_prepbuffer(&b); - if (fgets(p, LUAL_BUFFERSIZE, f) == NULL) { /* eof? */ - luaL_pushresult(&b); /* close buffer */ - return (lua_rawlen(L, -1) > 0); /* check whether read something */ - } - l = strlen(p); - if (l == 0 || p[l-1] != '\n') - luaL_addsize(&b, l); - else { - luaL_addsize(&b, l - chop); /* chop 'eol' if needed */ - luaL_pushresult(&b); /* close buffer */ - return 1; /* read at least an `eol' */ - } - } -} - - -#define MAX_SIZE_T (~(size_t)0) - -static void read_all (lua_State *L, FILE *f) { - size_t rlen = LUAL_BUFFERSIZE; /* how much to read in each cycle */ - luaL_Buffer b; - luaL_buffinit(L, &b); - for (;;) { - char *p = luaL_prepbuffsize(&b, rlen); - size_t nr = fread(p, sizeof(char), rlen, f); - luaL_addsize(&b, nr); - if (nr < rlen) break; /* eof? */ - else if (rlen <= (MAX_SIZE_T / 4)) /* avoid buffers too large */ - rlen *= 2; /* double buffer size at each iteration */ - } - luaL_pushresult(&b); /* close buffer */ -} - - -static int read_chars (lua_State *L, FILE *f, size_t n) { - size_t nr; /* number of chars actually read */ - char *p; - luaL_Buffer b; - luaL_buffinit(L, &b); - p = luaL_prepbuffsize(&b, n); /* prepare buffer to read whole block */ - nr = fread(p, sizeof(char), n, f); /* try to read 'n' chars */ - luaL_addsize(&b, nr); - luaL_pushresult(&b); /* close buffer */ - return (nr > 0); /* true iff read something */ -} - - -static int g_read (lua_State *L, FILE *f, int first) { - int nargs = lua_gettop(L) - 1; - int success; - int n; - clearerr(f); - if (nargs == 0) { /* no arguments? */ - success = read_line(L, f, 1); - n = first+1; /* to return 1 result */ - } - else { /* ensure stack space for all results and for auxlib's buffer */ - luaL_checkstack(L, nargs+LUA_MINSTACK, "too many arguments"); - success = 1; - for (n = first; nargs-- && success; n++) { - if (lua_type(L, n) == LUA_TNUMBER) { - size_t l = (size_t)lua_tointeger(L, n); - success = (l == 0) ? test_eof(L, f) : read_chars(L, f, l); - } - else { - const char *p = lua_tostring(L, n); - luaL_argcheck(L, p && p[0] == '*', n, "invalid option"); - switch (p[1]) { - case 'n': /* number */ - success = read_number(L, f); - break; - case 'l': /* line */ - success = read_line(L, f, 1); - break; - case 'L': /* line with end-of-line */ - success = read_line(L, f, 0); - break; - case 'a': /* file */ - read_all(L, f); /* read entire file */ - success = 1; /* always success */ - break; - default: - return luaL_argerror(L, n, "invalid format"); - } - } - } - } - if (ferror(f)) - return luaL_fileresult(L, 0, NULL); - if (!success) { - lua_pop(L, 1); /* remove last result */ - lua_pushnil(L); /* push nil instead */ - } - return n - first; -} - - -static int io_read (lua_State *L) { - return g_read(L, getiofile(L, IO_INPUT), 1); -} - - -static int f_read (lua_State *L) { - return g_read(L, tofile(L), 2); -} - - -static int io_readline (lua_State *L) { - LStream *p = (LStream *)lua_touserdata(L, lua_upvalueindex(1)); - int i; - int n = (int)lua_tointeger(L, lua_upvalueindex(2)); - if (isclosed(p)) /* file is already closed? */ - return luaL_error(L, "file is already closed"); - lua_settop(L , 1); - for (i = 1; i <= n; i++) /* push arguments to 'g_read' */ - lua_pushvalue(L, lua_upvalueindex(3 + i)); - n = g_read(L, p->f, 2); /* 'n' is number of results */ - lua_assert(n > 0); /* should return at least a nil */ - if (!lua_isnil(L, -n)) /* read at least one value? */ - return n; /* return them */ - else { /* first result is nil: EOF or error */ - if (n > 1) { /* is there error information? */ - /* 2nd result is error message */ - return luaL_error(L, "%s", lua_tostring(L, -n + 1)); - } - if (lua_toboolean(L, lua_upvalueindex(3))) { /* generator created file? */ - lua_settop(L, 0); - lua_pushvalue(L, lua_upvalueindex(1)); - aux_close(L); /* close it */ - } - return 0; - } -} - -/* }====================================================== */ - - -static int g_write (lua_State *L, FILE *f, int arg) { - int nargs = lua_gettop(L) - arg; - int status = 1; - for (; nargs--; arg++) { - if (lua_type(L, arg) == LUA_TNUMBER) { - /* optimization: could be done exactly as for strings */ - status = status && - fprintf(f, LUA_NUMBER_FMT, lua_tonumber(L, arg)) > 0; - } - else { - size_t l; - const char *s = luaL_checklstring(L, arg, &l); - status = status && (fwrite(s, sizeof(char), l, f) == l); - } - } - if (status) return 1; /* file handle already on stack top */ - else return luaL_fileresult(L, status, NULL); -} - - -static int io_write (lua_State *L) { - return g_write(L, getiofile(L, IO_OUTPUT), 1); -} - - -static int f_write (lua_State *L) { - FILE *f = tofile(L); - lua_pushvalue(L, 1); /* push file at the stack top (to be returned) */ - return g_write(L, f, 2); -} - - -static int f_seek (lua_State *L) { - static const int mode[] = {SEEK_SET, SEEK_CUR, SEEK_END}; - static const char *const modenames[] = {"set", "cur", "end", NULL}; - FILE *f = tofile(L); - int op = luaL_checkoption(L, 2, "cur", modenames); - lua_Number p3 = luaL_optnumber(L, 3, 0); - l_seeknum offset = (l_seeknum)p3; - luaL_argcheck(L, (lua_Number)offset == p3, 3, - "not an integer in proper range"); - op = l_fseek(f, offset, mode[op]); - if (op) - return luaL_fileresult(L, 0, NULL); /* error */ - else { - lua_pushnumber(L, (lua_Number)l_ftell(f)); - return 1; - } -} - - -static int f_setvbuf (lua_State *L) { - static const int mode[] = {_IONBF, _IOFBF, _IOLBF}; - static const char *const modenames[] = {"no", "full", "line", NULL}; - FILE *f = tofile(L); - int op = luaL_checkoption(L, 2, NULL, modenames); - lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); - int res = setvbuf(f, NULL, mode[op], sz); - return luaL_fileresult(L, res == 0, NULL); -} - - - -static int io_flush (lua_State *L) { - return luaL_fileresult(L, fflush(getiofile(L, IO_OUTPUT)) == 0, NULL); -} - - -static int f_flush (lua_State *L) { - return luaL_fileresult(L, fflush(tofile(L)) == 0, NULL); -} - - -/* -** functions for 'io' library -*/ -static const luaL_Reg iolib[] = { - {"close", io_close}, - {"flush", io_flush}, - {"input", io_input}, - {"lines", io_lines}, - {"open", io_open}, - {"output", io_output}, - {"popen", io_popen}, - {"read", io_read}, - {"tmpfile", io_tmpfile}, - {"type", io_type}, - {"write", io_write}, - {NULL, NULL} -}; - - -/* -** methods for file handles -*/ -static const luaL_Reg flib[] = { - {"close", io_close}, - {"flush", f_flush}, - {"lines", f_lines}, - {"read", f_read}, - {"seek", f_seek}, - {"setvbuf", f_setvbuf}, - {"write", f_write}, - {"__gc", f_gc}, - {"__tostring", f_tostring}, - {NULL, NULL} -}; - - -static void createmeta (lua_State *L) { - luaL_newmetatable(L, LUA_FILEHANDLE); /* create metatable for file handles */ - lua_pushvalue(L, -1); /* push metatable */ - lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */ - luaL_setfuncs(L, flib, 0); /* add file methods to new metatable */ - lua_pop(L, 1); /* pop new metatable */ -} - - -/* -** function to (not) close the standard files stdin, stdout, and stderr -*/ -static int io_noclose (lua_State *L) { - LStream *p = tolstream(L); - p->closef = &io_noclose; /* keep file opened */ - lua_pushnil(L); - lua_pushliteral(L, "cannot close standard file"); - return 2; -} - - -static void createstdfile (lua_State *L, FILE *f, const char *k, - const char *fname) { - LStream *p = newprefile(L); - p->f = f; - p->closef = &io_noclose; - if (k != NULL) { - lua_pushvalue(L, -1); - lua_setfield(L, LUA_REGISTRYINDEX, k); /* add file to registry */ - } - lua_setfield(L, -2, fname); /* add file to module */ -} - - -LUAMOD_API int luaopen_io (lua_State *L) { - luaL_newlib(L, iolib); /* new module */ - createmeta(L); - /* create (and set) default files */ - createstdfile(L, stdin, IO_INPUT, "stdin"); - createstdfile(L, stdout, IO_OUTPUT, "stdout"); - createstdfile(L, stderr, NULL, "stderr"); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/llex.c b/btgui/lua-5.2.3/src/llex.c deleted file mode 100644 index c4b820e83..000000000 --- a/btgui/lua-5.2.3/src/llex.c +++ /dev/null @@ -1,530 +0,0 @@ -/* -** $Id: llex.c,v 2.63.1.2 2013/08/30 15:49:41 roberto Exp $ -** Lexical Analyzer -** See Copyright Notice in lua.h -*/ - - -#include -#include - -#define llex_c -#define LUA_CORE - -#include "lua.h" - -#include "lctype.h" -#include "ldo.h" -#include "llex.h" -#include "lobject.h" -#include "lparser.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "lzio.h" - - - -#define next(ls) (ls->current = zgetc(ls->z)) - - - -#define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') - - -/* ORDER RESERVED */ -static const char *const luaX_tokens [] = { - "and", "break", "do", "else", "elseif", - "end", "false", "for", "function", "goto", "if", - "in", "local", "nil", "not", "or", "repeat", - "return", "then", "true", "until", "while", - "..", "...", "==", ">=", "<=", "~=", "::", "", - "", "", "" -}; - - -#define save_and_next(ls) (save(ls, ls->current), next(ls)) - - -static l_noret lexerror (LexState *ls, const char *msg, int token); - - -static void save (LexState *ls, int c) { - Mbuffer *b = ls->buff; - if (luaZ_bufflen(b) + 1 > luaZ_sizebuffer(b)) { - size_t newsize; - if (luaZ_sizebuffer(b) >= MAX_SIZET/2) - lexerror(ls, "lexical element too long", 0); - newsize = luaZ_sizebuffer(b) * 2; - luaZ_resizebuffer(ls->L, b, newsize); - } - b->buffer[luaZ_bufflen(b)++] = cast(char, c); -} - - -void luaX_init (lua_State *L) { - int i; - for (i=0; itsv.extra = cast_byte(i+1); /* reserved word */ - } -} - - -const char *luaX_token2str (LexState *ls, int token) { - if (token < FIRST_RESERVED) { /* single-byte symbols? */ - lua_assert(token == cast(unsigned char, token)); - return (lisprint(token)) ? luaO_pushfstring(ls->L, LUA_QL("%c"), token) : - luaO_pushfstring(ls->L, "char(%d)", token); - } - else { - const char *s = luaX_tokens[token - FIRST_RESERVED]; - if (token < TK_EOS) /* fixed format (symbols and reserved words)? */ - return luaO_pushfstring(ls->L, LUA_QS, s); - else /* names, strings, and numerals */ - return s; - } -} - - -static const char *txtToken (LexState *ls, int token) { - switch (token) { - case TK_NAME: - case TK_STRING: - case TK_NUMBER: - save(ls, '\0'); - return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff)); - default: - return luaX_token2str(ls, token); - } -} - - -static l_noret lexerror (LexState *ls, const char *msg, int token) { - char buff[LUA_IDSIZE]; - luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); - msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); - if (token) - luaO_pushfstring(ls->L, "%s near %s", msg, txtToken(ls, token)); - luaD_throw(ls->L, LUA_ERRSYNTAX); -} - - -l_noret luaX_syntaxerror (LexState *ls, const char *msg) { - lexerror(ls, msg, ls->t.token); -} - - -/* -** creates a new string and anchors it in function's table so that -** it will not be collected until the end of the function's compilation -** (by that time it should be anchored in function's prototype) -*/ -TString *luaX_newstring (LexState *ls, const char *str, size_t l) { - lua_State *L = ls->L; - TValue *o; /* entry for `str' */ - TString *ts = luaS_newlstr(L, str, l); /* create new string */ - setsvalue2s(L, L->top++, ts); /* temporarily anchor it in stack */ - o = luaH_set(L, ls->fs->h, L->top - 1); - if (ttisnil(o)) { /* not in use yet? (see 'addK') */ - /* boolean value does not need GC barrier; - table has no metatable, so it does not need to invalidate cache */ - setbvalue(o, 1); /* t[string] = true */ - luaC_checkGC(L); - } - else { /* string already present */ - ts = rawtsvalue(keyfromval(o)); /* re-use value previously stored */ - } - L->top--; /* remove string from stack */ - return ts; -} - - -/* -** increment line number and skips newline sequence (any of -** \n, \r, \n\r, or \r\n) -*/ -static void inclinenumber (LexState *ls) { - int old = ls->current; - lua_assert(currIsNewline(ls)); - next(ls); /* skip `\n' or `\r' */ - if (currIsNewline(ls) && ls->current != old) - next(ls); /* skip `\n\r' or `\r\n' */ - if (++ls->linenumber >= MAX_INT) - luaX_syntaxerror(ls, "chunk has too many lines"); -} - - -void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, - int firstchar) { - ls->decpoint = '.'; - ls->L = L; - ls->current = firstchar; - ls->lookahead.token = TK_EOS; /* no look-ahead token */ - ls->z = z; - ls->fs = NULL; - ls->linenumber = 1; - ls->lastline = 1; - ls->source = source; - ls->envn = luaS_new(L, LUA_ENV); /* create env name */ - luaS_fix(ls->envn); /* never collect this name */ - luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */ -} - - - -/* -** ======================================================= -** LEXICAL ANALYZER -** ======================================================= -*/ - - - -static int check_next (LexState *ls, const char *set) { - if (ls->current == '\0' || !strchr(set, ls->current)) - return 0; - save_and_next(ls); - return 1; -} - - -/* -** change all characters 'from' in buffer to 'to' -*/ -static void buffreplace (LexState *ls, char from, char to) { - size_t n = luaZ_bufflen(ls->buff); - char *p = luaZ_buffer(ls->buff); - while (n--) - if (p[n] == from) p[n] = to; -} - - -#if !defined(getlocaledecpoint) -#define getlocaledecpoint() (localeconv()->decimal_point[0]) -#endif - - -#define buff2d(b,e) luaO_str2d(luaZ_buffer(b), luaZ_bufflen(b) - 1, e) - -/* -** in case of format error, try to change decimal point separator to -** the one defined in the current locale and check again -*/ -static void trydecpoint (LexState *ls, SemInfo *seminfo) { - char old = ls->decpoint; - ls->decpoint = getlocaledecpoint(); - buffreplace(ls, old, ls->decpoint); /* try new decimal separator */ - if (!buff2d(ls->buff, &seminfo->r)) { - /* format error with correct decimal point: no more options */ - buffreplace(ls, ls->decpoint, '.'); /* undo change (for error message) */ - lexerror(ls, "malformed number", TK_NUMBER); - } -} - - -/* LUA_NUMBER */ -/* -** this function is quite liberal in what it accepts, as 'luaO_str2d' -** will reject ill-formed numerals. -*/ -static void read_numeral (LexState *ls, SemInfo *seminfo) { - const char *expo = "Ee"; - int first = ls->current; - lua_assert(lisdigit(ls->current)); - save_and_next(ls); - if (first == '0' && check_next(ls, "Xx")) /* hexadecimal? */ - expo = "Pp"; - for (;;) { - if (check_next(ls, expo)) /* exponent part? */ - check_next(ls, "+-"); /* optional exponent sign */ - if (lisxdigit(ls->current) || ls->current == '.') - save_and_next(ls); - else break; - } - save(ls, '\0'); - buffreplace(ls, '.', ls->decpoint); /* follow locale for decimal point */ - if (!buff2d(ls->buff, &seminfo->r)) /* format error? */ - trydecpoint(ls, seminfo); /* try to update decimal point separator */ -} - - -/* -** skip a sequence '[=*[' or ']=*]' and return its number of '='s or -** -1 if sequence is malformed -*/ -static int skip_sep (LexState *ls) { - int count = 0; - int s = ls->current; - lua_assert(s == '[' || s == ']'); - save_and_next(ls); - while (ls->current == '=') { - save_and_next(ls); - count++; - } - return (ls->current == s) ? count : (-count) - 1; -} - - -static void read_long_string (LexState *ls, SemInfo *seminfo, int sep) { - save_and_next(ls); /* skip 2nd `[' */ - if (currIsNewline(ls)) /* string starts with a newline? */ - inclinenumber(ls); /* skip it */ - for (;;) { - switch (ls->current) { - case EOZ: - lexerror(ls, (seminfo) ? "unfinished long string" : - "unfinished long comment", TK_EOS); - break; /* to avoid warnings */ - case ']': { - if (skip_sep(ls) == sep) { - save_and_next(ls); /* skip 2nd `]' */ - goto endloop; - } - break; - } - case '\n': case '\r': { - save(ls, '\n'); - inclinenumber(ls); - if (!seminfo) luaZ_resetbuffer(ls->buff); /* avoid wasting space */ - break; - } - default: { - if (seminfo) save_and_next(ls); - else next(ls); - } - } - } endloop: - if (seminfo) - seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + (2 + sep), - luaZ_bufflen(ls->buff) - 2*(2 + sep)); -} - - -static void escerror (LexState *ls, int *c, int n, const char *msg) { - int i; - luaZ_resetbuffer(ls->buff); /* prepare error message */ - save(ls, '\\'); - for (i = 0; i < n && c[i] != EOZ; i++) - save(ls, c[i]); - lexerror(ls, msg, TK_STRING); -} - - -static int readhexaesc (LexState *ls) { - int c[3], i; /* keep input for error message */ - int r = 0; /* result accumulator */ - c[0] = 'x'; /* for error message */ - for (i = 1; i < 3; i++) { /* read two hexadecimal digits */ - c[i] = next(ls); - if (!lisxdigit(c[i])) - escerror(ls, c, i + 1, "hexadecimal digit expected"); - r = (r << 4) + luaO_hexavalue(c[i]); - } - return r; -} - - -static int readdecesc (LexState *ls) { - int c[3], i; - int r = 0; /* result accumulator */ - for (i = 0; i < 3 && lisdigit(ls->current); i++) { /* read up to 3 digits */ - c[i] = ls->current; - r = 10*r + c[i] - '0'; - next(ls); - } - if (r > UCHAR_MAX) - escerror(ls, c, i, "decimal escape too large"); - return r; -} - - -static void read_string (LexState *ls, int del, SemInfo *seminfo) { - save_and_next(ls); /* keep delimiter (for error messages) */ - while (ls->current != del) { - switch (ls->current) { - case EOZ: - lexerror(ls, "unfinished string", TK_EOS); - break; /* to avoid warnings */ - case '\n': - case '\r': - lexerror(ls, "unfinished string", TK_STRING); - break; /* to avoid warnings */ - case '\\': { /* escape sequences */ - int c; /* final character to be saved */ - next(ls); /* do not save the `\' */ - switch (ls->current) { - case 'a': c = '\a'; goto read_save; - case 'b': c = '\b'; goto read_save; - case 'f': c = '\f'; goto read_save; - case 'n': c = '\n'; goto read_save; - case 'r': c = '\r'; goto read_save; - case 't': c = '\t'; goto read_save; - case 'v': c = '\v'; goto read_save; - case 'x': c = readhexaesc(ls); goto read_save; - case '\n': case '\r': - inclinenumber(ls); c = '\n'; goto only_save; - case '\\': case '\"': case '\'': - c = ls->current; goto read_save; - case EOZ: goto no_save; /* will raise an error next loop */ - case 'z': { /* zap following span of spaces */ - next(ls); /* skip the 'z' */ - while (lisspace(ls->current)) { - if (currIsNewline(ls)) inclinenumber(ls); - else next(ls); - } - goto no_save; - } - default: { - if (!lisdigit(ls->current)) - escerror(ls, &ls->current, 1, "invalid escape sequence"); - /* digital escape \ddd */ - c = readdecesc(ls); - goto only_save; - } - } - read_save: next(ls); /* read next character */ - only_save: save(ls, c); /* save 'c' */ - no_save: break; - } - default: - save_and_next(ls); - } - } - save_and_next(ls); /* skip delimiter */ - seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1, - luaZ_bufflen(ls->buff) - 2); -} - - -static int llex (LexState *ls, SemInfo *seminfo) { - luaZ_resetbuffer(ls->buff); - for (;;) { - switch (ls->current) { - case '\n': case '\r': { /* line breaks */ - inclinenumber(ls); - break; - } - case ' ': case '\f': case '\t': case '\v': { /* spaces */ - next(ls); - break; - } - case '-': { /* '-' or '--' (comment) */ - next(ls); - if (ls->current != '-') return '-'; - /* else is a comment */ - next(ls); - if (ls->current == '[') { /* long comment? */ - int sep = skip_sep(ls); - luaZ_resetbuffer(ls->buff); /* `skip_sep' may dirty the buffer */ - if (sep >= 0) { - read_long_string(ls, NULL, sep); /* skip long comment */ - luaZ_resetbuffer(ls->buff); /* previous call may dirty the buff. */ - break; - } - } - /* else short comment */ - while (!currIsNewline(ls) && ls->current != EOZ) - next(ls); /* skip until end of line (or end of file) */ - break; - } - case '[': { /* long string or simply '[' */ - int sep = skip_sep(ls); - if (sep >= 0) { - read_long_string(ls, seminfo, sep); - return TK_STRING; - } - else if (sep == -1) return '['; - else lexerror(ls, "invalid long string delimiter", TK_STRING); - } - case '=': { - next(ls); - if (ls->current != '=') return '='; - else { next(ls); return TK_EQ; } - } - case '<': { - next(ls); - if (ls->current != '=') return '<'; - else { next(ls); return TK_LE; } - } - case '>': { - next(ls); - if (ls->current != '=') return '>'; - else { next(ls); return TK_GE; } - } - case '~': { - next(ls); - if (ls->current != '=') return '~'; - else { next(ls); return TK_NE; } - } - case ':': { - next(ls); - if (ls->current != ':') return ':'; - else { next(ls); return TK_DBCOLON; } - } - case '"': case '\'': { /* short literal strings */ - read_string(ls, ls->current, seminfo); - return TK_STRING; - } - case '.': { /* '.', '..', '...', or number */ - save_and_next(ls); - if (check_next(ls, ".")) { - if (check_next(ls, ".")) - return TK_DOTS; /* '...' */ - else return TK_CONCAT; /* '..' */ - } - else if (!lisdigit(ls->current)) return '.'; - /* else go through */ - } - case '0': case '1': case '2': case '3': case '4': - case '5': case '6': case '7': case '8': case '9': { - read_numeral(ls, seminfo); - return TK_NUMBER; - } - case EOZ: { - return TK_EOS; - } - default: { - if (lislalpha(ls->current)) { /* identifier or reserved word? */ - TString *ts; - do { - save_and_next(ls); - } while (lislalnum(ls->current)); - ts = luaX_newstring(ls, luaZ_buffer(ls->buff), - luaZ_bufflen(ls->buff)); - seminfo->ts = ts; - if (isreserved(ts)) /* reserved word? */ - return ts->tsv.extra - 1 + FIRST_RESERVED; - else { - return TK_NAME; - } - } - else { /* single-char tokens (+ - / ...) */ - int c = ls->current; - next(ls); - return c; - } - } - } - } -} - - -void luaX_next (LexState *ls) { - ls->lastline = ls->linenumber; - if (ls->lookahead.token != TK_EOS) { /* is there a look-ahead token? */ - ls->t = ls->lookahead; /* use this one */ - ls->lookahead.token = TK_EOS; /* and discharge it */ - } - else - ls->t.token = llex(ls, &ls->t.seminfo); /* read next token */ -} - - -int luaX_lookahead (LexState *ls) { - lua_assert(ls->lookahead.token == TK_EOS); - ls->lookahead.token = llex(ls, &ls->lookahead.seminfo); - return ls->lookahead.token; -} - diff --git a/btgui/lua-5.2.3/src/llex.h b/btgui/lua-5.2.3/src/llex.h deleted file mode 100644 index a4acdd302..000000000 --- a/btgui/lua-5.2.3/src/llex.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -** $Id: llex.h,v 1.72.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lexical Analyzer -** See Copyright Notice in lua.h -*/ - -#ifndef llex_h -#define llex_h - -#include "lobject.h" -#include "lzio.h" - - -#define FIRST_RESERVED 257 - - - -/* -* WARNING: if you change the order of this enumeration, -* grep "ORDER RESERVED" -*/ -enum RESERVED { - /* terminal symbols denoted by reserved words */ - TK_AND = FIRST_RESERVED, TK_BREAK, - TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FALSE, TK_FOR, TK_FUNCTION, - TK_GOTO, TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT, - TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, - /* other terminal symbols */ - TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_DBCOLON, TK_EOS, - TK_NUMBER, TK_NAME, TK_STRING -}; - -/* number of reserved words */ -#define NUM_RESERVED (cast(int, TK_WHILE-FIRST_RESERVED+1)) - - -typedef union { - lua_Number r; - TString *ts; -} SemInfo; /* semantics information */ - - -typedef struct Token { - int token; - SemInfo seminfo; -} Token; - - -/* state of the lexer plus state of the parser when shared by all - functions */ -typedef struct LexState { - int current; /* current character (charint) */ - int linenumber; /* input line counter */ - int lastline; /* line of last token `consumed' */ - Token t; /* current token */ - Token lookahead; /* look ahead token */ - struct FuncState *fs; /* current function (parser) */ - struct lua_State *L; - ZIO *z; /* input stream */ - Mbuffer *buff; /* buffer for tokens */ - struct Dyndata *dyd; /* dynamic structures used by the parser */ - TString *source; /* current source name */ - TString *envn; /* environment variable name */ - char decpoint; /* locale decimal point */ -} LexState; - - -LUAI_FUNC void luaX_init (lua_State *L); -LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, - TString *source, int firstchar); -LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l); -LUAI_FUNC void luaX_next (LexState *ls); -LUAI_FUNC int luaX_lookahead (LexState *ls); -LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s); -LUAI_FUNC const char *luaX_token2str (LexState *ls, int token); - - -#endif diff --git a/btgui/lua-5.2.3/src/llimits.h b/btgui/lua-5.2.3/src/llimits.h deleted file mode 100644 index 152dd0551..000000000 --- a/btgui/lua-5.2.3/src/llimits.h +++ /dev/null @@ -1,309 +0,0 @@ -/* -** $Id: llimits.h,v 1.103.1.1 2013/04/12 18:48:47 roberto Exp $ -** Limits, basic types, and some other `installation-dependent' definitions -** See Copyright Notice in lua.h -*/ - -#ifndef llimits_h -#define llimits_h - - -#include -#include - - -#include "lua.h" - - -typedef unsigned LUA_INT32 lu_int32; - -typedef LUAI_UMEM lu_mem; - -typedef LUAI_MEM l_mem; - - - -/* chars used as small naturals (so that `char' is reserved for characters) */ -typedef unsigned char lu_byte; - - -#define MAX_SIZET ((size_t)(~(size_t)0)-2) - -#define MAX_LUMEM ((lu_mem)(~(lu_mem)0)-2) - -#define MAX_LMEM ((l_mem) ((MAX_LUMEM >> 1) - 2)) - - -#define MAX_INT (INT_MAX-2) /* maximum value of an int (-2 for safety) */ - -/* -** conversion of pointer to integer -** this is for hashing only; there is no problem if the integer -** cannot hold the whole pointer value -*/ -#define IntPoint(p) ((unsigned int)(lu_mem)(p)) - - - -/* type to ensure maximum alignment */ -#if !defined(LUAI_USER_ALIGNMENT_T) -#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } -#endif - -typedef LUAI_USER_ALIGNMENT_T L_Umaxalign; - - -/* result of a `usual argument conversion' over lua_Number */ -typedef LUAI_UACNUMBER l_uacNumber; - - -/* internal assertions for in-house debugging */ -#if defined(lua_assert) -#define check_exp(c,e) (lua_assert(c), (e)) -/* to avoid problems with conditions too long */ -#define lua_longassert(c) { if (!(c)) lua_assert(0); } -#else -#define lua_assert(c) ((void)0) -#define check_exp(c,e) (e) -#define lua_longassert(c) ((void)0) -#endif - -/* -** assertion for checking API calls -*/ -#if !defined(luai_apicheck) - -#if defined(LUA_USE_APICHECK) -#include -#define luai_apicheck(L,e) assert(e) -#else -#define luai_apicheck(L,e) lua_assert(e) -#endif - -#endif - -#define api_check(l,e,msg) luai_apicheck(l,(e) && msg) - - -#if !defined(UNUSED) -#define UNUSED(x) ((void)(x)) /* to avoid warnings */ -#endif - - -#define cast(t, exp) ((t)(exp)) - -#define cast_byte(i) cast(lu_byte, (i)) -#define cast_num(i) cast(lua_Number, (i)) -#define cast_int(i) cast(int, (i)) -#define cast_uchar(i) cast(unsigned char, (i)) - - -/* -** non-return type -*/ -#if defined(__GNUC__) -#define l_noret void __attribute__((noreturn)) -#elif defined(_MSC_VER) -#define l_noret void __declspec(noreturn) -#else -#define l_noret void -#endif - - - -/* -** maximum depth for nested C calls and syntactical nested non-terminals -** in a program. (Value must fit in an unsigned short int.) -*/ -#if !defined(LUAI_MAXCCALLS) -#define LUAI_MAXCCALLS 200 -#endif - -/* -** maximum number of upvalues in a closure (both C and Lua). (Value -** must fit in an unsigned char.) -*/ -#define MAXUPVAL UCHAR_MAX - - -/* -** type for virtual-machine instructions -** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) -*/ -typedef lu_int32 Instruction; - - - -/* maximum stack for a Lua function */ -#define MAXSTACK 250 - - - -/* minimum size for the string table (must be power of 2) */ -#if !defined(MINSTRTABSIZE) -#define MINSTRTABSIZE 32 -#endif - - -/* minimum size for string buffer */ -#if !defined(LUA_MINBUFFER) -#define LUA_MINBUFFER 32 -#endif - - -#if !defined(lua_lock) -#define lua_lock(L) ((void) 0) -#define lua_unlock(L) ((void) 0) -#endif - -#if !defined(luai_threadyield) -#define luai_threadyield(L) {lua_unlock(L); lua_lock(L);} -#endif - - -/* -** these macros allow user-specific actions on threads when you defined -** LUAI_EXTRASPACE and need to do something extra when a thread is -** created/deleted/resumed/yielded. -*/ -#if !defined(luai_userstateopen) -#define luai_userstateopen(L) ((void)L) -#endif - -#if !defined(luai_userstateclose) -#define luai_userstateclose(L) ((void)L) -#endif - -#if !defined(luai_userstatethread) -#define luai_userstatethread(L,L1) ((void)L) -#endif - -#if !defined(luai_userstatefree) -#define luai_userstatefree(L,L1) ((void)L) -#endif - -#if !defined(luai_userstateresume) -#define luai_userstateresume(L,n) ((void)L) -#endif - -#if !defined(luai_userstateyield) -#define luai_userstateyield(L,n) ((void)L) -#endif - -/* -** lua_number2int is a macro to convert lua_Number to int. -** lua_number2integer is a macro to convert lua_Number to lua_Integer. -** lua_number2unsigned is a macro to convert a lua_Number to a lua_Unsigned. -** lua_unsigned2number is a macro to convert a lua_Unsigned to a lua_Number. -** luai_hashnum is a macro to hash a lua_Number value into an integer. -** The hash must be deterministic and give reasonable values for -** both small and large values (outside the range of integers). -*/ - -#if defined(MS_ASMTRICK) || defined(LUA_MSASMTRICK) /* { */ -/* trick with Microsoft assembler for X86 */ - -#define lua_number2int(i,n) __asm {__asm fld n __asm fistp i} -#define lua_number2integer(i,n) lua_number2int(i, n) -#define lua_number2unsigned(i,n) \ - {__int64 l; __asm {__asm fld n __asm fistp l} i = (unsigned int)l;} - - -#elif defined(LUA_IEEE754TRICK) /* }{ */ -/* the next trick should work on any machine using IEEE754 with - a 32-bit int type */ - -union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; - -#if !defined(LUA_IEEEENDIAN) /* { */ -#define LUAI_EXTRAIEEE \ - static const union luai_Cast ieeeendian = {-(33.0 + 6755399441055744.0)}; -#define LUA_IEEEENDIANLOC (ieeeendian.l_p[1] == 33) -#else -#define LUA_IEEEENDIANLOC LUA_IEEEENDIAN -#define LUAI_EXTRAIEEE /* empty */ -#endif /* } */ - -#define lua_number2int32(i,n,t) \ - { LUAI_EXTRAIEEE \ - volatile union luai_Cast u; u.l_d = (n) + 6755399441055744.0; \ - (i) = (t)u.l_p[LUA_IEEEENDIANLOC]; } - -#define luai_hashnum(i,n) \ - { volatile union luai_Cast u; u.l_d = (n) + 1.0; /* avoid -0 */ \ - (i) = u.l_p[0]; (i) += u.l_p[1]; } /* add double bits for his hash */ - -#define lua_number2int(i,n) lua_number2int32(i, n, int) -#define lua_number2unsigned(i,n) lua_number2int32(i, n, lua_Unsigned) - -/* the trick can be expanded to lua_Integer when it is a 32-bit value */ -#if defined(LUA_IEEELL) -#define lua_number2integer(i,n) lua_number2int32(i, n, lua_Integer) -#endif - -#endif /* } */ - - -/* the following definitions always work, but may be slow */ - -#if !defined(lua_number2int) -#define lua_number2int(i,n) ((i)=(int)(n)) -#endif - -#if !defined(lua_number2integer) -#define lua_number2integer(i,n) ((i)=(lua_Integer)(n)) -#endif - -#if !defined(lua_number2unsigned) /* { */ -/* the following definition assures proper modulo behavior */ -#if defined(LUA_NUMBER_DOUBLE) || defined(LUA_NUMBER_FLOAT) -#include -#define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) -#define lua_number2unsigned(i,n) \ - ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED)) -#else -#define lua_number2unsigned(i,n) ((i)=(lua_Unsigned)(n)) -#endif -#endif /* } */ - - -#if !defined(lua_unsigned2number) -/* on several machines, coercion from unsigned to double is slow, - so it may be worth to avoid */ -#define lua_unsigned2number(u) \ - (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u)) -#endif - - - -#if defined(ltable_c) && !defined(luai_hashnum) - -#include -#include - -#define luai_hashnum(i,n) { int e; \ - n = l_mathop(frexp)(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ - lua_number2int(i, n); i += e; } - -#endif - - - -/* -** macro to control inclusion of some hard tests on stack reallocation -*/ -#if !defined(HARDSTACKTESTS) -#define condmovestack(L) ((void)0) -#else -/* realloc stack keeping its size */ -#define condmovestack(L) luaD_reallocstack((L), (L)->stacksize) -#endif - -#if !defined(HARDMEMTESTS) -#define condchangemem(L) condmovestack(L) -#else -#define condchangemem(L) \ - ((void)(!(G(L)->gcrunning) || (luaC_fullgc(L, 0), 1))) -#endif - -#endif diff --git a/btgui/lua-5.2.3/src/lmathlib.c b/btgui/lua-5.2.3/src/lmathlib.c deleted file mode 100644 index fe9fc5423..000000000 --- a/btgui/lua-5.2.3/src/lmathlib.c +++ /dev/null @@ -1,279 +0,0 @@ -/* -** $Id: lmathlib.c,v 1.83.1.1 2013/04/12 18:48:47 roberto Exp $ -** Standard mathematical library -** See Copyright Notice in lua.h -*/ - - -#include -#include - -#define lmathlib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -#undef PI -#define PI ((lua_Number)(3.1415926535897932384626433832795)) -#define RADIANS_PER_DEGREE ((lua_Number)(PI/180.0)) - - - -static int math_abs (lua_State *L) { - lua_pushnumber(L, l_mathop(fabs)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_sin (lua_State *L) { - lua_pushnumber(L, l_mathop(sin)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_sinh (lua_State *L) { - lua_pushnumber(L, l_mathop(sinh)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_cos (lua_State *L) { - lua_pushnumber(L, l_mathop(cos)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_cosh (lua_State *L) { - lua_pushnumber(L, l_mathop(cosh)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_tan (lua_State *L) { - lua_pushnumber(L, l_mathop(tan)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_tanh (lua_State *L) { - lua_pushnumber(L, l_mathop(tanh)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_asin (lua_State *L) { - lua_pushnumber(L, l_mathop(asin)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_acos (lua_State *L) { - lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_atan (lua_State *L) { - lua_pushnumber(L, l_mathop(atan)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_atan2 (lua_State *L) { - lua_pushnumber(L, l_mathop(atan2)(luaL_checknumber(L, 1), - luaL_checknumber(L, 2))); - return 1; -} - -static int math_ceil (lua_State *L) { - lua_pushnumber(L, l_mathop(ceil)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_floor (lua_State *L) { - lua_pushnumber(L, l_mathop(floor)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_fmod (lua_State *L) { - lua_pushnumber(L, l_mathop(fmod)(luaL_checknumber(L, 1), - luaL_checknumber(L, 2))); - return 1; -} - -static int math_modf (lua_State *L) { - lua_Number ip; - lua_Number fp = l_mathop(modf)(luaL_checknumber(L, 1), &ip); - lua_pushnumber(L, ip); - lua_pushnumber(L, fp); - return 2; -} - -static int math_sqrt (lua_State *L) { - lua_pushnumber(L, l_mathop(sqrt)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_pow (lua_State *L) { - lua_Number x = luaL_checknumber(L, 1); - lua_Number y = luaL_checknumber(L, 2); - lua_pushnumber(L, l_mathop(pow)(x, y)); - return 1; -} - -static int math_log (lua_State *L) { - lua_Number x = luaL_checknumber(L, 1); - lua_Number res; - if (lua_isnoneornil(L, 2)) - res = l_mathop(log)(x); - else { - lua_Number base = luaL_checknumber(L, 2); - if (base == (lua_Number)10.0) res = l_mathop(log10)(x); - else res = l_mathop(log)(x)/l_mathop(log)(base); - } - lua_pushnumber(L, res); - return 1; -} - -#if defined(LUA_COMPAT_LOG10) -static int math_log10 (lua_State *L) { - lua_pushnumber(L, l_mathop(log10)(luaL_checknumber(L, 1))); - return 1; -} -#endif - -static int math_exp (lua_State *L) { - lua_pushnumber(L, l_mathop(exp)(luaL_checknumber(L, 1))); - return 1; -} - -static int math_deg (lua_State *L) { - lua_pushnumber(L, luaL_checknumber(L, 1)/RADIANS_PER_DEGREE); - return 1; -} - -static int math_rad (lua_State *L) { - lua_pushnumber(L, luaL_checknumber(L, 1)*RADIANS_PER_DEGREE); - return 1; -} - -static int math_frexp (lua_State *L) { - int e; - lua_pushnumber(L, l_mathop(frexp)(luaL_checknumber(L, 1), &e)); - lua_pushinteger(L, e); - return 2; -} - -static int math_ldexp (lua_State *L) { - lua_Number x = luaL_checknumber(L, 1); - int ep = luaL_checkint(L, 2); - lua_pushnumber(L, l_mathop(ldexp)(x, ep)); - return 1; -} - - - -static int math_min (lua_State *L) { - int n = lua_gettop(L); /* number of arguments */ - lua_Number dmin = luaL_checknumber(L, 1); - int i; - for (i=2; i<=n; i++) { - lua_Number d = luaL_checknumber(L, i); - if (d < dmin) - dmin = d; - } - lua_pushnumber(L, dmin); - return 1; -} - - -static int math_max (lua_State *L) { - int n = lua_gettop(L); /* number of arguments */ - lua_Number dmax = luaL_checknumber(L, 1); - int i; - for (i=2; i<=n; i++) { - lua_Number d = luaL_checknumber(L, i); - if (d > dmax) - dmax = d; - } - lua_pushnumber(L, dmax); - return 1; -} - - -static int math_random (lua_State *L) { - /* the `%' avoids the (rare) case of r==1, and is needed also because on - some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */ - lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; - switch (lua_gettop(L)) { /* check number of arguments */ - case 0: { /* no arguments */ - lua_pushnumber(L, r); /* Number between 0 and 1 */ - break; - } - case 1: { /* only upper limit */ - lua_Number u = luaL_checknumber(L, 1); - luaL_argcheck(L, (lua_Number)1.0 <= u, 1, "interval is empty"); - lua_pushnumber(L, l_mathop(floor)(r*u) + (lua_Number)(1.0)); /* [1, u] */ - break; - } - case 2: { /* lower and upper limits */ - lua_Number l = luaL_checknumber(L, 1); - lua_Number u = luaL_checknumber(L, 2); - luaL_argcheck(L, l <= u, 2, "interval is empty"); - lua_pushnumber(L, l_mathop(floor)(r*(u-l+1)) + l); /* [l, u] */ - break; - } - default: return luaL_error(L, "wrong number of arguments"); - } - return 1; -} - - -static int math_randomseed (lua_State *L) { - srand(luaL_checkunsigned(L, 1)); - (void)rand(); /* discard first value to avoid undesirable correlations */ - return 0; -} - - -static const luaL_Reg mathlib[] = { - {"abs", math_abs}, - {"acos", math_acos}, - {"asin", math_asin}, - {"atan2", math_atan2}, - {"atan", math_atan}, - {"ceil", math_ceil}, - {"cosh", math_cosh}, - {"cos", math_cos}, - {"deg", math_deg}, - {"exp", math_exp}, - {"floor", math_floor}, - {"fmod", math_fmod}, - {"frexp", math_frexp}, - {"ldexp", math_ldexp}, -#if defined(LUA_COMPAT_LOG10) - {"log10", math_log10}, -#endif - {"log", math_log}, - {"max", math_max}, - {"min", math_min}, - {"modf", math_modf}, - {"pow", math_pow}, - {"rad", math_rad}, - {"random", math_random}, - {"randomseed", math_randomseed}, - {"sinh", math_sinh}, - {"sin", math_sin}, - {"sqrt", math_sqrt}, - {"tanh", math_tanh}, - {"tan", math_tan}, - {NULL, NULL} -}; - - -/* -** Open math library -*/ -LUAMOD_API int luaopen_math (lua_State *L) { - luaL_newlib(L, mathlib); - lua_pushnumber(L, PI); - lua_setfield(L, -2, "pi"); - lua_pushnumber(L, HUGE_VAL); - lua_setfield(L, -2, "huge"); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/lmem.c b/btgui/lua-5.2.3/src/lmem.c deleted file mode 100644 index ee343e3e0..000000000 --- a/btgui/lua-5.2.3/src/lmem.c +++ /dev/null @@ -1,99 +0,0 @@ -/* -** $Id: lmem.c,v 1.84.1.1 2013/04/12 18:48:47 roberto Exp $ -** Interface to Memory Manager -** See Copyright Notice in lua.h -*/ - - -#include - -#define lmem_c -#define LUA_CORE - -#include "lua.h" - -#include "ldebug.h" -#include "ldo.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" - - - -/* -** About the realloc function: -** void * frealloc (void *ud, void *ptr, size_t osize, size_t nsize); -** (`osize' is the old size, `nsize' is the new size) -** -** * frealloc(ud, NULL, x, s) creates a new block of size `s' (no -** matter 'x'). -** -** * frealloc(ud, p, x, 0) frees the block `p' -** (in this specific case, frealloc must return NULL); -** particularly, frealloc(ud, NULL, 0, 0) does nothing -** (which is equivalent to free(NULL) in ANSI C) -** -** frealloc returns NULL if it cannot create or reallocate the area -** (any reallocation to an equal or smaller size cannot fail!) -*/ - - - -#define MINSIZEARRAY 4 - - -void *luaM_growaux_ (lua_State *L, void *block, int *size, size_t size_elems, - int limit, const char *what) { - void *newblock; - int newsize; - if (*size >= limit/2) { /* cannot double it? */ - if (*size >= limit) /* cannot grow even a little? */ - luaG_runerror(L, "too many %s (limit is %d)", what, limit); - newsize = limit; /* still have at least one free place */ - } - else { - newsize = (*size)*2; - if (newsize < MINSIZEARRAY) - newsize = MINSIZEARRAY; /* minimum size */ - } - newblock = luaM_reallocv(L, block, *size, newsize, size_elems); - *size = newsize; /* update only when everything else is OK */ - return newblock; -} - - -l_noret luaM_toobig (lua_State *L) { - luaG_runerror(L, "memory allocation error: block too big"); -} - - - -/* -** generic allocation routine. -*/ -void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { - void *newblock; - global_State *g = G(L); - size_t realosize = (block) ? osize : 0; - lua_assert((realosize == 0) == (block == NULL)); -#if defined(HARDMEMTESTS) - if (nsize > realosize && g->gcrunning) - luaC_fullgc(L, 1); /* force a GC whenever possible */ -#endif - newblock = (*g->frealloc)(g->ud, block, osize, nsize); - if (newblock == NULL && nsize > 0) { - api_check(L, nsize > realosize, - "realloc cannot fail when shrinking a block"); - if (g->gcrunning) { - luaC_fullgc(L, 1); /* try to free some memory... */ - newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ - } - if (newblock == NULL) - luaD_throw(L, LUA_ERRMEM); - } - lua_assert((nsize == 0) == (newblock == NULL)); - g->GCdebt = (g->GCdebt + nsize) - realosize; - return newblock; -} - diff --git a/btgui/lua-5.2.3/src/lmem.h b/btgui/lua-5.2.3/src/lmem.h deleted file mode 100644 index bd4f4e072..000000000 --- a/btgui/lua-5.2.3/src/lmem.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -** $Id: lmem.h,v 1.40.1.1 2013/04/12 18:48:47 roberto Exp $ -** Interface to Memory Manager -** See Copyright Notice in lua.h -*/ - -#ifndef lmem_h -#define lmem_h - - -#include - -#include "llimits.h" -#include "lua.h" - - -/* -** This macro avoids the runtime division MAX_SIZET/(e), as 'e' is -** always constant. -** The macro is somewhat complex to avoid warnings: -** +1 avoids warnings of "comparison has constant result"; -** cast to 'void' avoids warnings of "value unused". -*/ -#define luaM_reallocv(L,b,on,n,e) \ - (cast(void, \ - (cast(size_t, (n)+1) > MAX_SIZET/(e)) ? (luaM_toobig(L), 0) : 0), \ - luaM_realloc_(L, (b), (on)*(e), (n)*(e))) - -#define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) -#define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) -#define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) - -#define luaM_malloc(L,s) luaM_realloc_(L, NULL, 0, (s)) -#define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) -#define luaM_newvector(L,n,t) \ - cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) - -#define luaM_newobject(L,tag,s) luaM_realloc_(L, NULL, tag, (s)) - -#define luaM_growvector(L,v,nelems,size,t,limit,e) \ - if ((nelems)+1 > (size)) \ - ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) - -#define luaM_reallocvector(L, v,oldn,n,t) \ - ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) - -LUAI_FUNC l_noret luaM_toobig (lua_State *L); - -/* not to be called directly */ -LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, - size_t size); -LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, - size_t size_elem, int limit, - const char *what); - -#endif - diff --git a/btgui/lua-5.2.3/src/loadlib.c b/btgui/lua-5.2.3/src/loadlib.c deleted file mode 100644 index 9318a9980..000000000 --- a/btgui/lua-5.2.3/src/loadlib.c +++ /dev/null @@ -1,726 +0,0 @@ -/* -** $Id: loadlib.c,v 1.111.1.1 2013/04/12 18:48:47 roberto Exp $ -** Dynamic library loader for Lua -** See Copyright Notice in lua.h -** -** This module contains an implementation of loadlib for Unix systems -** that have dlfcn, an implementation for Windows, and a stub for other -** systems. -*/ - - -/* -** if needed, includes windows header before everything else -*/ -#if defined(_WIN32) -#include -#endif - - -#include -#include - - -#define loadlib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -/* -** LUA_PATH and LUA_CPATH are the names of the environment -** variables that Lua check to set its paths. -*/ -#if !defined(LUA_PATH) -#define LUA_PATH "LUA_PATH" -#endif - -#if !defined(LUA_CPATH) -#define LUA_CPATH "LUA_CPATH" -#endif - -#define LUA_PATHSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR - -#define LUA_PATHVERSION LUA_PATH LUA_PATHSUFFIX -#define LUA_CPATHVERSION LUA_CPATH LUA_PATHSUFFIX - -/* -** LUA_PATH_SEP is the character that separates templates in a path. -** LUA_PATH_MARK is the string that marks the substitution points in a -** template. -** LUA_EXEC_DIR in a Windows path is replaced by the executable's -** directory. -** LUA_IGMARK is a mark to ignore all before it when building the -** luaopen_ function name. -*/ -#if !defined (LUA_PATH_SEP) -#define LUA_PATH_SEP ";" -#endif -#if !defined (LUA_PATH_MARK) -#define LUA_PATH_MARK "?" -#endif -#if !defined (LUA_EXEC_DIR) -#define LUA_EXEC_DIR "!" -#endif -#if !defined (LUA_IGMARK) -#define LUA_IGMARK "-" -#endif - - -/* -** LUA_CSUBSEP is the character that replaces dots in submodule names -** when searching for a C loader. -** LUA_LSUBSEP is the character that replaces dots in submodule names -** when searching for a Lua loader. -*/ -#if !defined(LUA_CSUBSEP) -#define LUA_CSUBSEP LUA_DIRSEP -#endif - -#if !defined(LUA_LSUBSEP) -#define LUA_LSUBSEP LUA_DIRSEP -#endif - - -/* prefix for open functions in C libraries */ -#define LUA_POF "luaopen_" - -/* separator for open functions in C libraries */ -#define LUA_OFSEP "_" - - -/* table (in the registry) that keeps handles for all loaded C libraries */ -#define CLIBS "_CLIBS" - -#define LIB_FAIL "open" - - -/* error codes for ll_loadfunc */ -#define ERRLIB 1 -#define ERRFUNC 2 - -#define setprogdir(L) ((void)0) - - -/* -** system-dependent functions -*/ -static void ll_unloadlib (void *lib); -static void *ll_load (lua_State *L, const char *path, int seeglb); -static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym); - - - -#if defined(LUA_USE_DLOPEN) - -/* -** {======================================================================== -** This is an implementation of loadlib based on the dlfcn interface. -** The dlfcn interface is available in Linux, SunOS, Solaris, IRIX, FreeBSD, -** NetBSD, AIX 4.2, HPUX 11, and probably most other Unix flavors, at least -** as an emulation layer on top of native functions. -** ========================================================================= -*/ - -#include - -static void ll_unloadlib (void *lib) { - dlclose(lib); -} - - -static void *ll_load (lua_State *L, const char *path, int seeglb) { - void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL)); - if (lib == NULL) lua_pushstring(L, dlerror()); - return lib; -} - - -static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { - lua_CFunction f = (lua_CFunction)dlsym(lib, sym); - if (f == NULL) lua_pushstring(L, dlerror()); - return f; -} - -/* }====================================================== */ - - - -#elif defined(LUA_DL_DLL) -/* -** {====================================================================== -** This is an implementation of loadlib for Windows using native functions. -** ======================================================================= -*/ - -#undef setprogdir - -/* -** optional flags for LoadLibraryEx -*/ -#if !defined(LUA_LLE_FLAGS) -#define LUA_LLE_FLAGS 0 -#endif - - -static void setprogdir (lua_State *L) { - char buff[MAX_PATH + 1]; - char *lb; - DWORD nsize = sizeof(buff)/sizeof(char); - DWORD n = GetModuleFileNameA(NULL, buff, nsize); - if (n == 0 || n == nsize || (lb = strrchr(buff, '\\')) == NULL) - luaL_error(L, "unable to get ModuleFileName"); - else { - *lb = '\0'; - luaL_gsub(L, lua_tostring(L, -1), LUA_EXEC_DIR, buff); - lua_remove(L, -2); /* remove original string */ - } -} - - -static void pusherror (lua_State *L) { - int error = GetLastError(); - char buffer[128]; - if (FormatMessageA(FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM, - NULL, error, 0, buffer, sizeof(buffer)/sizeof(char), NULL)) - lua_pushstring(L, buffer); - else - lua_pushfstring(L, "system error %d\n", error); -} - -static void ll_unloadlib (void *lib) { - FreeLibrary((HMODULE)lib); -} - - -static void *ll_load (lua_State *L, const char *path, int seeglb) { - HMODULE lib = LoadLibraryExA(path, NULL, LUA_LLE_FLAGS); - (void)(seeglb); /* not used: symbols are 'global' by default */ - if (lib == NULL) pusherror(L); - return lib; -} - - -static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { - lua_CFunction f = (lua_CFunction)GetProcAddress((HMODULE)lib, sym); - if (f == NULL) pusherror(L); - return f; -} - -/* }====================================================== */ - - -#else -/* -** {====================================================== -** Fallback for other systems -** ======================================================= -*/ - -#undef LIB_FAIL -#define LIB_FAIL "absent" - - -#define DLMSG "dynamic libraries not enabled; check your Lua installation" - - -static void ll_unloadlib (void *lib) { - (void)(lib); /* not used */ -} - - -static void *ll_load (lua_State *L, const char *path, int seeglb) { - (void)(path); (void)(seeglb); /* not used */ - lua_pushliteral(L, DLMSG); - return NULL; -} - - -static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { - (void)(lib); (void)(sym); /* not used */ - lua_pushliteral(L, DLMSG); - return NULL; -} - -/* }====================================================== */ -#endif - - -static void *ll_checkclib (lua_State *L, const char *path) { - void *plib; - lua_getfield(L, LUA_REGISTRYINDEX, CLIBS); - lua_getfield(L, -1, path); - plib = lua_touserdata(L, -1); /* plib = CLIBS[path] */ - lua_pop(L, 2); /* pop CLIBS table and 'plib' */ - return plib; -} - - -static void ll_addtoclib (lua_State *L, const char *path, void *plib) { - lua_getfield(L, LUA_REGISTRYINDEX, CLIBS); - lua_pushlightuserdata(L, plib); - lua_pushvalue(L, -1); - lua_setfield(L, -3, path); /* CLIBS[path] = plib */ - lua_rawseti(L, -2, luaL_len(L, -2) + 1); /* CLIBS[#CLIBS + 1] = plib */ - lua_pop(L, 1); /* pop CLIBS table */ -} - - -/* -** __gc tag method for CLIBS table: calls 'll_unloadlib' for all lib -** handles in list CLIBS -*/ -static int gctm (lua_State *L) { - int n = luaL_len(L, 1); - for (; n >= 1; n--) { /* for each handle, in reverse order */ - lua_rawgeti(L, 1, n); /* get handle CLIBS[n] */ - ll_unloadlib(lua_touserdata(L, -1)); - lua_pop(L, 1); /* pop handle */ - } - return 0; -} - - -static int ll_loadfunc (lua_State *L, const char *path, const char *sym) { - void *reg = ll_checkclib(L, path); /* check loaded C libraries */ - if (reg == NULL) { /* must load library? */ - reg = ll_load(L, path, *sym == '*'); - if (reg == NULL) return ERRLIB; /* unable to load library */ - ll_addtoclib(L, path, reg); - } - if (*sym == '*') { /* loading only library (no function)? */ - lua_pushboolean(L, 1); /* return 'true' */ - return 0; /* no errors */ - } - else { - lua_CFunction f = ll_sym(L, reg, sym); - if (f == NULL) - return ERRFUNC; /* unable to find function */ - lua_pushcfunction(L, f); /* else create new function */ - return 0; /* no errors */ - } -} - - -static int ll_loadlib (lua_State *L) { - const char *path = luaL_checkstring(L, 1); - const char *init = luaL_checkstring(L, 2); - int stat = ll_loadfunc(L, path, init); - if (stat == 0) /* no errors? */ - return 1; /* return the loaded function */ - else { /* error; error message is on stack top */ - lua_pushnil(L); - lua_insert(L, -2); - lua_pushstring(L, (stat == ERRLIB) ? LIB_FAIL : "init"); - return 3; /* return nil, error message, and where */ - } -} - - - -/* -** {====================================================== -** 'require' function -** ======================================================= -*/ - - -static int readable (const char *filename) { - FILE *f = fopen(filename, "r"); /* try to open file */ - if (f == NULL) return 0; /* open failed */ - fclose(f); - return 1; -} - - -static const char *pushnexttemplate (lua_State *L, const char *path) { - const char *l; - while (*path == *LUA_PATH_SEP) path++; /* skip separators */ - if (*path == '\0') return NULL; /* no more templates */ - l = strchr(path, *LUA_PATH_SEP); /* find next separator */ - if (l == NULL) l = path + strlen(path); - lua_pushlstring(L, path, l - path); /* template */ - return l; -} - - -static const char *searchpath (lua_State *L, const char *name, - const char *path, - const char *sep, - const char *dirsep) { - luaL_Buffer msg; /* to build error message */ - luaL_buffinit(L, &msg); - if (*sep != '\0') /* non-empty separator? */ - name = luaL_gsub(L, name, sep, dirsep); /* replace it by 'dirsep' */ - while ((path = pushnexttemplate(L, path)) != NULL) { - const char *filename = luaL_gsub(L, lua_tostring(L, -1), - LUA_PATH_MARK, name); - lua_remove(L, -2); /* remove path template */ - if (readable(filename)) /* does file exist and is readable? */ - return filename; /* return that file name */ - lua_pushfstring(L, "\n\tno file " LUA_QS, filename); - lua_remove(L, -2); /* remove file name */ - luaL_addvalue(&msg); /* concatenate error msg. entry */ - } - luaL_pushresult(&msg); /* create error message */ - return NULL; /* not found */ -} - - -static int ll_searchpath (lua_State *L) { - const char *f = searchpath(L, luaL_checkstring(L, 1), - luaL_checkstring(L, 2), - luaL_optstring(L, 3, "."), - luaL_optstring(L, 4, LUA_DIRSEP)); - if (f != NULL) return 1; - else { /* error message is on top of the stack */ - lua_pushnil(L); - lua_insert(L, -2); - return 2; /* return nil + error message */ - } -} - - -static const char *findfile (lua_State *L, const char *name, - const char *pname, - const char *dirsep) { - const char *path; - lua_getfield(L, lua_upvalueindex(1), pname); - path = lua_tostring(L, -1); - if (path == NULL) - luaL_error(L, LUA_QL("package.%s") " must be a string", pname); - return searchpath(L, name, path, ".", dirsep); -} - - -static int checkload (lua_State *L, int stat, const char *filename) { - if (stat) { /* module loaded successfully? */ - lua_pushstring(L, filename); /* will be 2nd argument to module */ - return 2; /* return open function and file name */ - } - else - return luaL_error(L, "error loading module " LUA_QS - " from file " LUA_QS ":\n\t%s", - lua_tostring(L, 1), filename, lua_tostring(L, -1)); -} - - -static int searcher_Lua (lua_State *L) { - const char *filename; - const char *name = luaL_checkstring(L, 1); - filename = findfile(L, name, "path", LUA_LSUBSEP); - if (filename == NULL) return 1; /* module not found in this path */ - return checkload(L, (luaL_loadfile(L, filename) == LUA_OK), filename); -} - - -static int loadfunc (lua_State *L, const char *filename, const char *modname) { - const char *funcname; - const char *mark; - modname = luaL_gsub(L, modname, ".", LUA_OFSEP); - mark = strchr(modname, *LUA_IGMARK); - if (mark) { - int stat; - funcname = lua_pushlstring(L, modname, mark - modname); - funcname = lua_pushfstring(L, LUA_POF"%s", funcname); - stat = ll_loadfunc(L, filename, funcname); - if (stat != ERRFUNC) return stat; - modname = mark + 1; /* else go ahead and try old-style name */ - } - funcname = lua_pushfstring(L, LUA_POF"%s", modname); - return ll_loadfunc(L, filename, funcname); -} - - -static int searcher_C (lua_State *L) { - const char *name = luaL_checkstring(L, 1); - const char *filename = findfile(L, name, "cpath", LUA_CSUBSEP); - if (filename == NULL) return 1; /* module not found in this path */ - return checkload(L, (loadfunc(L, filename, name) == 0), filename); -} - - -static int searcher_Croot (lua_State *L) { - const char *filename; - const char *name = luaL_checkstring(L, 1); - const char *p = strchr(name, '.'); - int stat; - if (p == NULL) return 0; /* is root */ - lua_pushlstring(L, name, p - name); - filename = findfile(L, lua_tostring(L, -1), "cpath", LUA_CSUBSEP); - if (filename == NULL) return 1; /* root not found */ - if ((stat = loadfunc(L, filename, name)) != 0) { - if (stat != ERRFUNC) - return checkload(L, 0, filename); /* real error */ - else { /* open function not found */ - lua_pushfstring(L, "\n\tno module " LUA_QS " in file " LUA_QS, - name, filename); - return 1; - } - } - lua_pushstring(L, filename); /* will be 2nd argument to module */ - return 2; -} - - -static int searcher_preload (lua_State *L) { - const char *name = luaL_checkstring(L, 1); - lua_getfield(L, LUA_REGISTRYINDEX, "_PRELOAD"); - lua_getfield(L, -1, name); - if (lua_isnil(L, -1)) /* not found? */ - lua_pushfstring(L, "\n\tno field package.preload['%s']", name); - return 1; -} - - -static void findloader (lua_State *L, const char *name) { - int i; - luaL_Buffer msg; /* to build error message */ - luaL_buffinit(L, &msg); - lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */ - if (!lua_istable(L, 3)) - luaL_error(L, LUA_QL("package.searchers") " must be a table"); - /* iterate over available searchers to find a loader */ - for (i = 1; ; i++) { - lua_rawgeti(L, 3, i); /* get a searcher */ - if (lua_isnil(L, -1)) { /* no more searchers? */ - lua_pop(L, 1); /* remove nil */ - luaL_pushresult(&msg); /* create error message */ - luaL_error(L, "module " LUA_QS " not found:%s", - name, lua_tostring(L, -1)); - } - lua_pushstring(L, name); - lua_call(L, 1, 2); /* call it */ - if (lua_isfunction(L, -2)) /* did it find a loader? */ - return; /* module loader found */ - else if (lua_isstring(L, -2)) { /* searcher returned error message? */ - lua_pop(L, 1); /* remove extra return */ - luaL_addvalue(&msg); /* concatenate error message */ - } - else - lua_pop(L, 2); /* remove both returns */ - } -} - - -static int ll_require (lua_State *L) { - const char *name = luaL_checkstring(L, 1); - lua_settop(L, 1); /* _LOADED table will be at index 2 */ - lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED"); - lua_getfield(L, 2, name); /* _LOADED[name] */ - if (lua_toboolean(L, -1)) /* is it there? */ - return 1; /* package is already loaded */ - /* else must load package */ - lua_pop(L, 1); /* remove 'getfield' result */ - findloader(L, name); - lua_pushstring(L, name); /* pass name as argument to module loader */ - lua_insert(L, -2); /* name is 1st argument (before search data) */ - lua_call(L, 2, 1); /* run loader to load module */ - if (!lua_isnil(L, -1)) /* non-nil return? */ - lua_setfield(L, 2, name); /* _LOADED[name] = returned value */ - lua_getfield(L, 2, name); - if (lua_isnil(L, -1)) { /* module did not set a value? */ - lua_pushboolean(L, 1); /* use true as result */ - lua_pushvalue(L, -1); /* extra copy to be returned */ - lua_setfield(L, 2, name); /* _LOADED[name] = true */ - } - return 1; -} - -/* }====================================================== */ - - - -/* -** {====================================================== -** 'module' function -** ======================================================= -*/ -#if defined(LUA_COMPAT_MODULE) - -/* -** changes the environment variable of calling function -*/ -static void set_env (lua_State *L) { - lua_Debug ar; - if (lua_getstack(L, 1, &ar) == 0 || - lua_getinfo(L, "f", &ar) == 0 || /* get calling function */ - lua_iscfunction(L, -1)) - luaL_error(L, LUA_QL("module") " not called from a Lua function"); - lua_pushvalue(L, -2); /* copy new environment table to top */ - lua_setupvalue(L, -2, 1); - lua_pop(L, 1); /* remove function */ -} - - -static void dooptions (lua_State *L, int n) { - int i; - for (i = 2; i <= n; i++) { - if (lua_isfunction(L, i)) { /* avoid 'calling' extra info. */ - lua_pushvalue(L, i); /* get option (a function) */ - lua_pushvalue(L, -2); /* module */ - lua_call(L, 1, 0); - } - } -} - - -static void modinit (lua_State *L, const char *modname) { - const char *dot; - lua_pushvalue(L, -1); - lua_setfield(L, -2, "_M"); /* module._M = module */ - lua_pushstring(L, modname); - lua_setfield(L, -2, "_NAME"); - dot = strrchr(modname, '.'); /* look for last dot in module name */ - if (dot == NULL) dot = modname; - else dot++; - /* set _PACKAGE as package name (full module name minus last part) */ - lua_pushlstring(L, modname, dot - modname); - lua_setfield(L, -2, "_PACKAGE"); -} - - -static int ll_module (lua_State *L) { - const char *modname = luaL_checkstring(L, 1); - int lastarg = lua_gettop(L); /* last parameter */ - luaL_pushmodule(L, modname, 1); /* get/create module table */ - /* check whether table already has a _NAME field */ - lua_getfield(L, -1, "_NAME"); - if (!lua_isnil(L, -1)) /* is table an initialized module? */ - lua_pop(L, 1); - else { /* no; initialize it */ - lua_pop(L, 1); - modinit(L, modname); - } - lua_pushvalue(L, -1); - set_env(L); - dooptions(L, lastarg); - return 1; -} - - -static int ll_seeall (lua_State *L) { - luaL_checktype(L, 1, LUA_TTABLE); - if (!lua_getmetatable(L, 1)) { - lua_createtable(L, 0, 1); /* create new metatable */ - lua_pushvalue(L, -1); - lua_setmetatable(L, 1); - } - lua_pushglobaltable(L); - lua_setfield(L, -2, "__index"); /* mt.__index = _G */ - return 0; -} - -#endif -/* }====================================================== */ - - - -/* auxiliary mark (for internal use) */ -#define AUXMARK "\1" - - -/* -** return registry.LUA_NOENV as a boolean -*/ -static int noenv (lua_State *L) { - int b; - lua_getfield(L, LUA_REGISTRYINDEX, "LUA_NOENV"); - b = lua_toboolean(L, -1); - lua_pop(L, 1); /* remove value */ - return b; -} - - -static void setpath (lua_State *L, const char *fieldname, const char *envname1, - const char *envname2, const char *def) { - const char *path = getenv(envname1); - if (path == NULL) /* no environment variable? */ - path = getenv(envname2); /* try alternative name */ - if (path == NULL || noenv(L)) /* no environment variable? */ - lua_pushstring(L, def); /* use default */ - else { - /* replace ";;" by ";AUXMARK;" and then AUXMARK by default path */ - path = luaL_gsub(L, path, LUA_PATH_SEP LUA_PATH_SEP, - LUA_PATH_SEP AUXMARK LUA_PATH_SEP); - luaL_gsub(L, path, AUXMARK, def); - lua_remove(L, -2); - } - setprogdir(L); - lua_setfield(L, -2, fieldname); -} - - -static const luaL_Reg pk_funcs[] = { - {"loadlib", ll_loadlib}, - {"searchpath", ll_searchpath}, -#if defined(LUA_COMPAT_MODULE) - {"seeall", ll_seeall}, -#endif - {NULL, NULL} -}; - - -static const luaL_Reg ll_funcs[] = { -#if defined(LUA_COMPAT_MODULE) - {"module", ll_module}, -#endif - {"require", ll_require}, - {NULL, NULL} -}; - - -static void createsearcherstable (lua_State *L) { - static const lua_CFunction searchers[] = - {searcher_preload, searcher_Lua, searcher_C, searcher_Croot, NULL}; - int i; - /* create 'searchers' table */ - lua_createtable(L, sizeof(searchers)/sizeof(searchers[0]) - 1, 0); - /* fill it with pre-defined searchers */ - for (i=0; searchers[i] != NULL; i++) { - lua_pushvalue(L, -2); /* set 'package' as upvalue for all searchers */ - lua_pushcclosure(L, searchers[i], 1); - lua_rawseti(L, -2, i+1); - } -} - - -LUAMOD_API int luaopen_package (lua_State *L) { - /* create table CLIBS to keep track of loaded C libraries */ - luaL_getsubtable(L, LUA_REGISTRYINDEX, CLIBS); - lua_createtable(L, 0, 1); /* metatable for CLIBS */ - lua_pushcfunction(L, gctm); - lua_setfield(L, -2, "__gc"); /* set finalizer for CLIBS table */ - lua_setmetatable(L, -2); - /* create `package' table */ - luaL_newlib(L, pk_funcs); - createsearcherstable(L); -#if defined(LUA_COMPAT_LOADERS) - lua_pushvalue(L, -1); /* make a copy of 'searchers' table */ - lua_setfield(L, -3, "loaders"); /* put it in field `loaders' */ -#endif - lua_setfield(L, -2, "searchers"); /* put it in field 'searchers' */ - /* set field 'path' */ - setpath(L, "path", LUA_PATHVERSION, LUA_PATH, LUA_PATH_DEFAULT); - /* set field 'cpath' */ - setpath(L, "cpath", LUA_CPATHVERSION, LUA_CPATH, LUA_CPATH_DEFAULT); - /* store config information */ - lua_pushliteral(L, LUA_DIRSEP "\n" LUA_PATH_SEP "\n" LUA_PATH_MARK "\n" - LUA_EXEC_DIR "\n" LUA_IGMARK "\n"); - lua_setfield(L, -2, "config"); - /* set field `loaded' */ - luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED"); - lua_setfield(L, -2, "loaded"); - /* set field `preload' */ - luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD"); - lua_setfield(L, -2, "preload"); - lua_pushglobaltable(L); - lua_pushvalue(L, -2); /* set 'package' as upvalue for next lib */ - luaL_setfuncs(L, ll_funcs, 1); /* open lib into global table */ - lua_pop(L, 1); /* pop global table */ - return 1; /* return 'package' table */ -} - diff --git a/btgui/lua-5.2.3/src/lobject.c b/btgui/lua-5.2.3/src/lobject.c deleted file mode 100644 index 882d994d4..000000000 --- a/btgui/lua-5.2.3/src/lobject.c +++ /dev/null @@ -1,287 +0,0 @@ -/* -** $Id: lobject.c,v 2.58.1.1 2013/04/12 18:48:47 roberto Exp $ -** Some generic functions over Lua objects -** See Copyright Notice in lua.h -*/ - -#include -#include -#include -#include - -#define lobject_c -#define LUA_CORE - -#include "lua.h" - -#include "lctype.h" -#include "ldebug.h" -#include "ldo.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" -#include "lvm.h" - - - -LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT}; - - -/* -** converts an integer to a "floating point byte", represented as -** (eeeeexxx), where the real value is (1xxx) * 2^(eeeee - 1) if -** eeeee != 0 and (xxx) otherwise. -*/ -int luaO_int2fb (unsigned int x) { - int e = 0; /* exponent */ - if (x < 8) return x; - while (x >= 0x10) { - x = (x+1) >> 1; - e++; - } - return ((e+1) << 3) | (cast_int(x) - 8); -} - - -/* converts back */ -int luaO_fb2int (int x) { - int e = (x >> 3) & 0x1f; - if (e == 0) return x; - else return ((x & 7) + 8) << (e - 1); -} - - -int luaO_ceillog2 (unsigned int x) { - static const lu_byte log_2[256] = { - 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5, - 6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, - 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, - 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, - 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8 - }; - int l = 0; - x--; - while (x >= 256) { l += 8; x >>= 8; } - return l + log_2[x]; -} - - -lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2) { - switch (op) { - case LUA_OPADD: return luai_numadd(NULL, v1, v2); - case LUA_OPSUB: return luai_numsub(NULL, v1, v2); - case LUA_OPMUL: return luai_nummul(NULL, v1, v2); - case LUA_OPDIV: return luai_numdiv(NULL, v1, v2); - case LUA_OPMOD: return luai_nummod(NULL, v1, v2); - case LUA_OPPOW: return luai_numpow(NULL, v1, v2); - case LUA_OPUNM: return luai_numunm(NULL, v1); - default: lua_assert(0); return 0; - } -} - - -int luaO_hexavalue (int c) { - if (lisdigit(c)) return c - '0'; - else return ltolower(c) - 'a' + 10; -} - - -#if !defined(lua_strx2number) - -#include - - -static int isneg (const char **s) { - if (**s == '-') { (*s)++; return 1; } - else if (**s == '+') (*s)++; - return 0; -} - - -static lua_Number readhexa (const char **s, lua_Number r, int *count) { - for (; lisxdigit(cast_uchar(**s)); (*s)++) { /* read integer part */ - r = (r * cast_num(16.0)) + cast_num(luaO_hexavalue(cast_uchar(**s))); - (*count)++; - } - return r; -} - - -/* -** convert an hexadecimal numeric string to a number, following -** C99 specification for 'strtod' -*/ -static lua_Number lua_strx2number (const char *s, char **endptr) { - lua_Number r = 0.0; - int e = 0, i = 0; - int neg = 0; /* 1 if number is negative */ - *endptr = cast(char *, s); /* nothing is valid yet */ - while (lisspace(cast_uchar(*s))) s++; /* skip initial spaces */ - neg = isneg(&s); /* check signal */ - if (!(*s == '0' && (*(s + 1) == 'x' || *(s + 1) == 'X'))) /* check '0x' */ - return 0.0; /* invalid format (no '0x') */ - s += 2; /* skip '0x' */ - r = readhexa(&s, r, &i); /* read integer part */ - if (*s == '.') { - s++; /* skip dot */ - r = readhexa(&s, r, &e); /* read fractional part */ - } - if (i == 0 && e == 0) - return 0.0; /* invalid format (no digit) */ - e *= -4; /* each fractional digit divides value by 2^-4 */ - *endptr = cast(char *, s); /* valid up to here */ - if (*s == 'p' || *s == 'P') { /* exponent part? */ - int exp1 = 0; - int neg1; - s++; /* skip 'p' */ - neg1 = isneg(&s); /* signal */ - if (!lisdigit(cast_uchar(*s))) - goto ret; /* must have at least one digit */ - while (lisdigit(cast_uchar(*s))) /* read exponent */ - exp1 = exp1 * 10 + *(s++) - '0'; - if (neg1) exp1 = -exp1; - e += exp1; - } - *endptr = cast(char *, s); /* valid up to here */ - ret: - if (neg) r = -r; - return l_mathop(ldexp)(r, e); -} - -#endif - - -int luaO_str2d (const char *s, size_t len, lua_Number *result) { - char *endptr; - if (strpbrk(s, "nN")) /* reject 'inf' and 'nan' */ - return 0; - else if (strpbrk(s, "xX")) /* hexa? */ - *result = lua_strx2number(s, &endptr); - else - *result = lua_str2number(s, &endptr); - if (endptr == s) return 0; /* nothing recognized */ - while (lisspace(cast_uchar(*endptr))) endptr++; - return (endptr == s + len); /* OK if no trailing characters */ -} - - - -static void pushstr (lua_State *L, const char *str, size_t l) { - setsvalue2s(L, L->top++, luaS_newlstr(L, str, l)); -} - - -/* this function handles only `%d', `%c', %f, %p, and `%s' formats */ -const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { - int n = 0; - for (;;) { - const char *e = strchr(fmt, '%'); - if (e == NULL) break; - luaD_checkstack(L, 2); /* fmt + item */ - pushstr(L, fmt, e - fmt); - switch (*(e+1)) { - case 's': { - const char *s = va_arg(argp, char *); - if (s == NULL) s = "(null)"; - pushstr(L, s, strlen(s)); - break; - } - case 'c': { - char buff; - buff = cast(char, va_arg(argp, int)); - pushstr(L, &buff, 1); - break; - } - case 'd': { - setnvalue(L->top++, cast_num(va_arg(argp, int))); - break; - } - case 'f': { - setnvalue(L->top++, cast_num(va_arg(argp, l_uacNumber))); - break; - } - case 'p': { - char buff[4*sizeof(void *) + 8]; /* should be enough space for a `%p' */ - int l = sprintf(buff, "%p", va_arg(argp, void *)); - pushstr(L, buff, l); - break; - } - case '%': { - pushstr(L, "%", 1); - break; - } - default: { - luaG_runerror(L, - "invalid option " LUA_QL("%%%c") " to " LUA_QL("lua_pushfstring"), - *(e + 1)); - } - } - n += 2; - fmt = e+2; - } - luaD_checkstack(L, 1); - pushstr(L, fmt, strlen(fmt)); - if (n > 0) luaV_concat(L, n + 1); - return svalue(L->top - 1); -} - - -const char *luaO_pushfstring (lua_State *L, const char *fmt, ...) { - const char *msg; - va_list argp; - va_start(argp, fmt); - msg = luaO_pushvfstring(L, fmt, argp); - va_end(argp); - return msg; -} - - -/* number of chars of a literal string without the ending \0 */ -#define LL(x) (sizeof(x)/sizeof(char) - 1) - -#define RETS "..." -#define PRE "[string \"" -#define POS "\"]" - -#define addstr(a,b,l) ( memcpy(a,b,(l) * sizeof(char)), a += (l) ) - -void luaO_chunkid (char *out, const char *source, size_t bufflen) { - size_t l = strlen(source); - if (*source == '=') { /* 'literal' source */ - if (l <= bufflen) /* small enough? */ - memcpy(out, source + 1, l * sizeof(char)); - else { /* truncate it */ - addstr(out, source + 1, bufflen - 1); - *out = '\0'; - } - } - else if (*source == '@') { /* file name */ - if (l <= bufflen) /* small enough? */ - memcpy(out, source + 1, l * sizeof(char)); - else { /* add '...' before rest of name */ - addstr(out, RETS, LL(RETS)); - bufflen -= LL(RETS); - memcpy(out, source + 1 + l - bufflen, bufflen * sizeof(char)); - } - } - else { /* string; format as [string "source"] */ - const char *nl = strchr(source, '\n'); /* find first new line (if any) */ - addstr(out, PRE, LL(PRE)); /* add prefix */ - bufflen -= LL(PRE RETS POS) + 1; /* save space for prefix+suffix+'\0' */ - if (l < bufflen && nl == NULL) { /* small one-line source? */ - addstr(out, source, l); /* keep it */ - } - else { - if (nl != NULL) l = nl - source; /* stop at first newline */ - if (l > bufflen) l = bufflen; - addstr(out, source, l); - addstr(out, RETS, LL(RETS)); - } - memcpy(out, POS, (LL(POS) + 1) * sizeof(char)); - } -} - diff --git a/btgui/lua-5.2.3/src/lobject.h b/btgui/lua-5.2.3/src/lobject.h deleted file mode 100644 index 3a630b944..000000000 --- a/btgui/lua-5.2.3/src/lobject.h +++ /dev/null @@ -1,607 +0,0 @@ -/* -** $Id: lobject.h,v 2.71.1.1 2013/04/12 18:48:47 roberto Exp $ -** Type definitions for Lua objects -** See Copyright Notice in lua.h -*/ - - -#ifndef lobject_h -#define lobject_h - - -#include - - -#include "llimits.h" -#include "lua.h" - - -/* -** Extra tags for non-values -*/ -#define LUA_TPROTO LUA_NUMTAGS -#define LUA_TUPVAL (LUA_NUMTAGS+1) -#define LUA_TDEADKEY (LUA_NUMTAGS+2) - -/* -** number of all possible tags (including LUA_TNONE but excluding DEADKEY) -*/ -#define LUA_TOTALTAGS (LUA_TUPVAL+2) - - -/* -** tags for Tagged Values have the following use of bits: -** bits 0-3: actual tag (a LUA_T* value) -** bits 4-5: variant bits -** bit 6: whether value is collectable -*/ - -#define VARBITS (3 << 4) - - -/* -** LUA_TFUNCTION variants: -** 0 - Lua function -** 1 - light C function -** 2 - regular C function (closure) -*/ - -/* Variant tags for functions */ -#define LUA_TLCL (LUA_TFUNCTION | (0 << 4)) /* Lua closure */ -#define LUA_TLCF (LUA_TFUNCTION | (1 << 4)) /* light C function */ -#define LUA_TCCL (LUA_TFUNCTION | (2 << 4)) /* C closure */ - - -/* Variant tags for strings */ -#define LUA_TSHRSTR (LUA_TSTRING | (0 << 4)) /* short strings */ -#define LUA_TLNGSTR (LUA_TSTRING | (1 << 4)) /* long strings */ - - -/* Bit mark for collectable types */ -#define BIT_ISCOLLECTABLE (1 << 6) - -/* mark a tag as collectable */ -#define ctb(t) ((t) | BIT_ISCOLLECTABLE) - - -/* -** Union of all collectable objects -*/ -typedef union GCObject GCObject; - - -/* -** Common Header for all collectable objects (in macro form, to be -** included in other objects) -*/ -#define CommonHeader GCObject *next; lu_byte tt; lu_byte marked - - -/* -** Common header in struct form -*/ -typedef struct GCheader { - CommonHeader; -} GCheader; - - - -/* -** Union of all Lua values -*/ -typedef union Value Value; - - -#define numfield lua_Number n; /* numbers */ - - - -/* -** Tagged Values. This is the basic representation of values in Lua, -** an actual value plus a tag with its type. -*/ - -#define TValuefields Value value_; int tt_ - -typedef struct lua_TValue TValue; - - -/* macro defining a nil value */ -#define NILCONSTANT {NULL}, LUA_TNIL - - -#define val_(o) ((o)->value_) -#define num_(o) (val_(o).n) - - -/* raw type tag of a TValue */ -#define rttype(o) ((o)->tt_) - -/* tag with no variants (bits 0-3) */ -#define novariant(x) ((x) & 0x0F) - -/* type tag of a TValue (bits 0-3 for tags + variant bits 4-5) */ -#define ttype(o) (rttype(o) & 0x3F) - -/* type tag of a TValue with no variants (bits 0-3) */ -#define ttypenv(o) (novariant(rttype(o))) - - -/* Macros to test type */ -#define checktag(o,t) (rttype(o) == (t)) -#define checktype(o,t) (ttypenv(o) == (t)) -#define ttisnumber(o) checktag((o), LUA_TNUMBER) -#define ttisnil(o) checktag((o), LUA_TNIL) -#define ttisboolean(o) checktag((o), LUA_TBOOLEAN) -#define ttislightuserdata(o) checktag((o), LUA_TLIGHTUSERDATA) -#define ttisstring(o) checktype((o), LUA_TSTRING) -#define ttisshrstring(o) checktag((o), ctb(LUA_TSHRSTR)) -#define ttislngstring(o) checktag((o), ctb(LUA_TLNGSTR)) -#define ttistable(o) checktag((o), ctb(LUA_TTABLE)) -#define ttisfunction(o) checktype(o, LUA_TFUNCTION) -#define ttisclosure(o) ((rttype(o) & 0x1F) == LUA_TFUNCTION) -#define ttisCclosure(o) checktag((o), ctb(LUA_TCCL)) -#define ttisLclosure(o) checktag((o), ctb(LUA_TLCL)) -#define ttislcf(o) checktag((o), LUA_TLCF) -#define ttisuserdata(o) checktag((o), ctb(LUA_TUSERDATA)) -#define ttisthread(o) checktag((o), ctb(LUA_TTHREAD)) -#define ttisdeadkey(o) checktag((o), LUA_TDEADKEY) - -#define ttisequal(o1,o2) (rttype(o1) == rttype(o2)) - -/* Macros to access values */ -#define nvalue(o) check_exp(ttisnumber(o), num_(o)) -#define gcvalue(o) check_exp(iscollectable(o), val_(o).gc) -#define pvalue(o) check_exp(ttislightuserdata(o), val_(o).p) -#define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts) -#define tsvalue(o) (&rawtsvalue(o)->tsv) -#define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u) -#define uvalue(o) (&rawuvalue(o)->uv) -#define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl) -#define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l) -#define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c) -#define fvalue(o) check_exp(ttislcf(o), val_(o).f) -#define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h) -#define bvalue(o) check_exp(ttisboolean(o), val_(o).b) -#define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th) -/* a dead value may get the 'gc' field, but cannot access its contents */ -#define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc)) - -#define l_isfalse(o) (ttisnil(o) || (ttisboolean(o) && bvalue(o) == 0)) - - -#define iscollectable(o) (rttype(o) & BIT_ISCOLLECTABLE) - - -/* Macros for internal tests */ -#define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt) - -#define checkliveness(g,obj) \ - lua_longassert(!iscollectable(obj) || \ - (righttt(obj) && !isdead(g,gcvalue(obj)))) - - -/* Macros to set values */ -#define settt_(o,t) ((o)->tt_=(t)) - -#define setnvalue(obj,x) \ - { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); } - -#define setnilvalue(obj) settt_(obj, LUA_TNIL) - -#define setfvalue(obj,x) \ - { TValue *io=(obj); val_(io).f=(x); settt_(io, LUA_TLCF); } - -#define setpvalue(obj,x) \ - { TValue *io=(obj); val_(io).p=(x); settt_(io, LUA_TLIGHTUSERDATA); } - -#define setbvalue(obj,x) \ - { TValue *io=(obj); val_(io).b=(x); settt_(io, LUA_TBOOLEAN); } - -#define setgcovalue(L,obj,x) \ - { TValue *io=(obj); GCObject *i_g=(x); \ - val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); } - -#define setsvalue(L,obj,x) \ - { TValue *io=(obj); \ - TString *x_ = (x); \ - val_(io).gc=cast(GCObject *, x_); settt_(io, ctb(x_->tsv.tt)); \ - checkliveness(G(L),io); } - -#define setuvalue(L,obj,x) \ - { TValue *io=(obj); \ - val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TUSERDATA)); \ - checkliveness(G(L),io); } - -#define setthvalue(L,obj,x) \ - { TValue *io=(obj); \ - val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTHREAD)); \ - checkliveness(G(L),io); } - -#define setclLvalue(L,obj,x) \ - { TValue *io=(obj); \ - val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TLCL)); \ - checkliveness(G(L),io); } - -#define setclCvalue(L,obj,x) \ - { TValue *io=(obj); \ - val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TCCL)); \ - checkliveness(G(L),io); } - -#define sethvalue(L,obj,x) \ - { TValue *io=(obj); \ - val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTABLE)); \ - checkliveness(G(L),io); } - -#define setdeadvalue(obj) settt_(obj, LUA_TDEADKEY) - - - -#define setobj(L,obj1,obj2) \ - { const TValue *io2=(obj2); TValue *io1=(obj1); \ - io1->value_ = io2->value_; io1->tt_ = io2->tt_; \ - checkliveness(G(L),io1); } - - -/* -** different types of assignments, according to destination -*/ - -/* from stack to (same) stack */ -#define setobjs2s setobj -/* to stack (not from same stack) */ -#define setobj2s setobj -#define setsvalue2s setsvalue -#define sethvalue2s sethvalue -#define setptvalue2s setptvalue -/* from table to same table */ -#define setobjt2t setobj -/* to table */ -#define setobj2t setobj -/* to new object */ -#define setobj2n setobj -#define setsvalue2n setsvalue - - -/* check whether a number is valid (useful only for NaN trick) */ -#define luai_checknum(L,o,c) { /* empty */ } - - -/* -** {====================================================== -** NaN Trick -** ======================================================= -*/ -#if defined(LUA_NANTRICK) - -/* -** numbers are represented in the 'd_' field. All other values have the -** value (NNMARK | tag) in 'tt__'. A number with such pattern would be -** a "signaled NaN", which is never generated by regular operations by -** the CPU (nor by 'strtod') -*/ - -/* allows for external implementation for part of the trick */ -#if !defined(NNMARK) /* { */ - - -#if !defined(LUA_IEEEENDIAN) -#error option 'LUA_NANTRICK' needs 'LUA_IEEEENDIAN' -#endif - - -#define NNMARK 0x7FF7A500 -#define NNMASK 0x7FFFFF00 - -#undef TValuefields -#undef NILCONSTANT - -#if (LUA_IEEEENDIAN == 0) /* { */ - -/* little endian */ -#define TValuefields \ - union { struct { Value v__; int tt__; } i; double d__; } u -#define NILCONSTANT {{{NULL}, tag2tt(LUA_TNIL)}} -/* field-access macros */ -#define v_(o) ((o)->u.i.v__) -#define d_(o) ((o)->u.d__) -#define tt_(o) ((o)->u.i.tt__) - -#else /* }{ */ - -/* big endian */ -#define TValuefields \ - union { struct { int tt__; Value v__; } i; double d__; } u -#define NILCONSTANT {{tag2tt(LUA_TNIL), {NULL}}} -/* field-access macros */ -#define v_(o) ((o)->u.i.v__) -#define d_(o) ((o)->u.d__) -#define tt_(o) ((o)->u.i.tt__) - -#endif /* } */ - -#endif /* } */ - - -/* correspondence with standard representation */ -#undef val_ -#define val_(o) v_(o) -#undef num_ -#define num_(o) d_(o) - - -#undef numfield -#define numfield /* no such field; numbers are the entire struct */ - -/* basic check to distinguish numbers from non-numbers */ -#undef ttisnumber -#define ttisnumber(o) ((tt_(o) & NNMASK) != NNMARK) - -#define tag2tt(t) (NNMARK | (t)) - -#undef rttype -#define rttype(o) (ttisnumber(o) ? LUA_TNUMBER : tt_(o) & 0xff) - -#undef settt_ -#define settt_(o,t) (tt_(o) = tag2tt(t)) - -#undef setnvalue -#define setnvalue(obj,x) \ - { TValue *io_=(obj); num_(io_)=(x); lua_assert(ttisnumber(io_)); } - -#undef setobj -#define setobj(L,obj1,obj2) \ - { const TValue *o2_=(obj2); TValue *o1_=(obj1); \ - o1_->u = o2_->u; \ - checkliveness(G(L),o1_); } - - -/* -** these redefinitions are not mandatory, but these forms are more efficient -*/ - -#undef checktag -#undef checktype -#define checktag(o,t) (tt_(o) == tag2tt(t)) -#define checktype(o,t) (ctb(tt_(o) | VARBITS) == ctb(tag2tt(t) | VARBITS)) - -#undef ttisequal -#define ttisequal(o1,o2) \ - (ttisnumber(o1) ? ttisnumber(o2) : (tt_(o1) == tt_(o2))) - - -#undef luai_checknum -#define luai_checknum(L,o,c) { if (!ttisnumber(o)) c; } - -#endif -/* }====================================================== */ - - - -/* -** {====================================================== -** types and prototypes -** ======================================================= -*/ - - -union Value { - GCObject *gc; /* collectable objects */ - void *p; /* light userdata */ - int b; /* booleans */ - lua_CFunction f; /* light C functions */ - numfield /* numbers */ -}; - - -struct lua_TValue { - TValuefields; -}; - - -typedef TValue *StkId; /* index to stack elements */ - - - - -/* -** Header for string value; string bytes follow the end of this structure -*/ -typedef union TString { - L_Umaxalign dummy; /* ensures maximum alignment for strings */ - struct { - CommonHeader; - lu_byte extra; /* reserved words for short strings; "has hash" for longs */ - unsigned int hash; - size_t len; /* number of characters in string */ - } tsv; -} TString; - - -/* get the actual string (array of bytes) from a TString */ -#define getstr(ts) cast(const char *, (ts) + 1) - -/* get the actual string (array of bytes) from a Lua value */ -#define svalue(o) getstr(rawtsvalue(o)) - - -/* -** Header for userdata; memory area follows the end of this structure -*/ -typedef union Udata { - L_Umaxalign dummy; /* ensures maximum alignment for `local' udata */ - struct { - CommonHeader; - struct Table *metatable; - struct Table *env; - size_t len; /* number of bytes */ - } uv; -} Udata; - - - -/* -** Description of an upvalue for function prototypes -*/ -typedef struct Upvaldesc { - TString *name; /* upvalue name (for debug information) */ - lu_byte instack; /* whether it is in stack */ - lu_byte idx; /* index of upvalue (in stack or in outer function's list) */ -} Upvaldesc; - - -/* -** Description of a local variable for function prototypes -** (used for debug information) -*/ -typedef struct LocVar { - TString *varname; - int startpc; /* first point where variable is active */ - int endpc; /* first point where variable is dead */ -} LocVar; - - -/* -** Function Prototypes -*/ -typedef struct Proto { - CommonHeader; - TValue *k; /* constants used by the function */ - Instruction *code; - struct Proto **p; /* functions defined inside the function */ - int *lineinfo; /* map from opcodes to source lines (debug information) */ - LocVar *locvars; /* information about local variables (debug information) */ - Upvaldesc *upvalues; /* upvalue information */ - union Closure *cache; /* last created closure with this prototype */ - TString *source; /* used for debug information */ - int sizeupvalues; /* size of 'upvalues' */ - int sizek; /* size of `k' */ - int sizecode; - int sizelineinfo; - int sizep; /* size of `p' */ - int sizelocvars; - int linedefined; - int lastlinedefined; - GCObject *gclist; - lu_byte numparams; /* number of fixed parameters */ - lu_byte is_vararg; - lu_byte maxstacksize; /* maximum stack used by this function */ -} Proto; - - - -/* -** Lua Upvalues -*/ -typedef struct UpVal { - CommonHeader; - TValue *v; /* points to stack or to its own value */ - union { - TValue value; /* the value (when closed) */ - struct { /* double linked list (when open) */ - struct UpVal *prev; - struct UpVal *next; - } l; - } u; -} UpVal; - - -/* -** Closures -*/ - -#define ClosureHeader \ - CommonHeader; lu_byte nupvalues; GCObject *gclist - -typedef struct CClosure { - ClosureHeader; - lua_CFunction f; - TValue upvalue[1]; /* list of upvalues */ -} CClosure; - - -typedef struct LClosure { - ClosureHeader; - struct Proto *p; - UpVal *upvals[1]; /* list of upvalues */ -} LClosure; - - -typedef union Closure { - CClosure c; - LClosure l; -} Closure; - - -#define isLfunction(o) ttisLclosure(o) - -#define getproto(o) (clLvalue(o)->p) - - -/* -** Tables -*/ - -typedef union TKey { - struct { - TValuefields; - struct Node *next; /* for chaining */ - } nk; - TValue tvk; -} TKey; - - -typedef struct Node { - TValue i_val; - TKey i_key; -} Node; - - -typedef struct Table { - CommonHeader; - lu_byte flags; /* 1<

lsizenode)) - - -/* -** (address of) a fixed nil value -*/ -#define luaO_nilobject (&luaO_nilobject_) - - -LUAI_DDEC const TValue luaO_nilobject_; - - -LUAI_FUNC int luaO_int2fb (unsigned int x); -LUAI_FUNC int luaO_fb2int (int x); -LUAI_FUNC int luaO_ceillog2 (unsigned int x); -LUAI_FUNC lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2); -LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); -LUAI_FUNC int luaO_hexavalue (int c); -LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, - va_list argp); -LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); -LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len); - - -#endif - diff --git a/btgui/lua-5.2.3/src/lopcodes.c b/btgui/lua-5.2.3/src/lopcodes.c deleted file mode 100644 index 4190dc762..000000000 --- a/btgui/lua-5.2.3/src/lopcodes.c +++ /dev/null @@ -1,107 +0,0 @@ -/* -** $Id: lopcodes.c,v 1.49.1.1 2013/04/12 18:48:47 roberto Exp $ -** Opcodes for Lua virtual machine -** See Copyright Notice in lua.h -*/ - - -#define lopcodes_c -#define LUA_CORE - - -#include "lopcodes.h" - - -/* ORDER OP */ - -LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { - "MOVE", - "LOADK", - "LOADKX", - "LOADBOOL", - "LOADNIL", - "GETUPVAL", - "GETTABUP", - "GETTABLE", - "SETTABUP", - "SETUPVAL", - "SETTABLE", - "NEWTABLE", - "SELF", - "ADD", - "SUB", - "MUL", - "DIV", - "MOD", - "POW", - "UNM", - "NOT", - "LEN", - "CONCAT", - "JMP", - "EQ", - "LT", - "LE", - "TEST", - "TESTSET", - "CALL", - "TAILCALL", - "RETURN", - "FORLOOP", - "FORPREP", - "TFORCALL", - "TFORLOOP", - "SETLIST", - "CLOSURE", - "VARARG", - "EXTRAARG", - NULL -}; - - -#define opmode(t,a,b,c,m) (((t)<<7) | ((a)<<6) | ((b)<<4) | ((c)<<2) | (m)) - -LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { -/* T A B C mode opcode */ - opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_MOVE */ - ,opmode(0, 1, OpArgK, OpArgN, iABx) /* OP_LOADK */ - ,opmode(0, 1, OpArgN, OpArgN, iABx) /* OP_LOADKX */ - ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_LOADBOOL */ - ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_LOADNIL */ - ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_GETUPVAL */ - ,opmode(0, 1, OpArgU, OpArgK, iABC) /* OP_GETTABUP */ - ,opmode(0, 1, OpArgR, OpArgK, iABC) /* OP_GETTABLE */ - ,opmode(0, 0, OpArgK, OpArgK, iABC) /* OP_SETTABUP */ - ,opmode(0, 0, OpArgU, OpArgN, iABC) /* OP_SETUPVAL */ - ,opmode(0, 0, OpArgK, OpArgK, iABC) /* OP_SETTABLE */ - ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_NEWTABLE */ - ,opmode(0, 1, OpArgR, OpArgK, iABC) /* OP_SELF */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_ADD */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_SUB */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_MUL */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_DIV */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_MOD */ - ,opmode(0, 1, OpArgK, OpArgK, iABC) /* OP_POW */ - ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_UNM */ - ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_NOT */ - ,opmode(0, 1, OpArgR, OpArgN, iABC) /* OP_LEN */ - ,opmode(0, 1, OpArgR, OpArgR, iABC) /* OP_CONCAT */ - ,opmode(0, 0, OpArgR, OpArgN, iAsBx) /* OP_JMP */ - ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_EQ */ - ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LT */ - ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LE */ - ,opmode(1, 0, OpArgN, OpArgU, iABC) /* OP_TEST */ - ,opmode(1, 1, OpArgR, OpArgU, iABC) /* OP_TESTSET */ - ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_CALL */ - ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_TAILCALL */ - ,opmode(0, 0, OpArgU, OpArgN, iABC) /* OP_RETURN */ - ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORLOOP */ - ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORPREP */ - ,opmode(0, 0, OpArgN, OpArgU, iABC) /* OP_TFORCALL */ - ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_TFORLOOP */ - ,opmode(0, 0, OpArgU, OpArgU, iABC) /* OP_SETLIST */ - ,opmode(0, 1, OpArgU, OpArgN, iABx) /* OP_CLOSURE */ - ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_VARARG */ - ,opmode(0, 0, OpArgU, OpArgU, iAx) /* OP_EXTRAARG */ -}; - diff --git a/btgui/lua-5.2.3/src/lopcodes.h b/btgui/lua-5.2.3/src/lopcodes.h deleted file mode 100644 index 51f579154..000000000 --- a/btgui/lua-5.2.3/src/lopcodes.h +++ /dev/null @@ -1,288 +0,0 @@ -/* -** $Id: lopcodes.h,v 1.142.1.1 2013/04/12 18:48:47 roberto Exp $ -** Opcodes for Lua virtual machine -** See Copyright Notice in lua.h -*/ - -#ifndef lopcodes_h -#define lopcodes_h - -#include "llimits.h" - - -/*=========================================================================== - We assume that instructions are unsigned numbers. - All instructions have an opcode in the first 6 bits. - Instructions can have the following fields: - `A' : 8 bits - `B' : 9 bits - `C' : 9 bits - 'Ax' : 26 bits ('A', 'B', and 'C' together) - `Bx' : 18 bits (`B' and `C' together) - `sBx' : signed Bx - - A signed argument is represented in excess K; that is, the number - value is the unsigned value minus K. K is exactly the maximum value - for that argument (so that -max is represented by 0, and +max is - represented by 2*max), which is half the maximum for the corresponding - unsigned argument. -===========================================================================*/ - - -enum OpMode {iABC, iABx, iAsBx, iAx}; /* basic instruction format */ - - -/* -** size and position of opcode arguments. -*/ -#define SIZE_C 9 -#define SIZE_B 9 -#define SIZE_Bx (SIZE_C + SIZE_B) -#define SIZE_A 8 -#define SIZE_Ax (SIZE_C + SIZE_B + SIZE_A) - -#define SIZE_OP 6 - -#define POS_OP 0 -#define POS_A (POS_OP + SIZE_OP) -#define POS_C (POS_A + SIZE_A) -#define POS_B (POS_C + SIZE_C) -#define POS_Bx POS_C -#define POS_Ax POS_A - - -/* -** limits for opcode arguments. -** we use (signed) int to manipulate most arguments, -** so they must fit in LUAI_BITSINT-1 bits (-1 for sign) -*/ -#if SIZE_Bx < LUAI_BITSINT-1 -#define MAXARG_Bx ((1<>1) /* `sBx' is signed */ -#else -#define MAXARG_Bx MAX_INT -#define MAXARG_sBx MAX_INT -#endif - -#if SIZE_Ax < LUAI_BITSINT-1 -#define MAXARG_Ax ((1<>POS_OP) & MASK1(SIZE_OP,0))) -#define SET_OPCODE(i,o) ((i) = (((i)&MASK0(SIZE_OP,POS_OP)) | \ - ((cast(Instruction, o)<>pos) & MASK1(size,0))) -#define setarg(i,v,pos,size) ((i) = (((i)&MASK0(size,pos)) | \ - ((cast(Instruction, v)<= R(A) + 1 */ -OP_EQ,/* A B C if ((RK(B) == RK(C)) ~= A) then pc++ */ -OP_LT,/* A B C if ((RK(B) < RK(C)) ~= A) then pc++ */ -OP_LE,/* A B C if ((RK(B) <= RK(C)) ~= A) then pc++ */ - -OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ -OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ - -OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ -OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ -OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see note) */ - -OP_FORLOOP,/* A sBx R(A)+=R(A+2); - if R(A) > 4) & 3)) -#define getCMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 2) & 3)) -#define testAMode(m) (luaP_opmodes[m] & (1 << 6)) -#define testTMode(m) (luaP_opmodes[m] & (1 << 7)) - - -LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ - - -/* number of list items to accumulate before a SETLIST instruction */ -#define LFIELDS_PER_FLUSH 50 - - -#endif diff --git a/btgui/lua-5.2.3/src/loslib.c b/btgui/lua-5.2.3/src/loslib.c deleted file mode 100644 index 052ba1744..000000000 --- a/btgui/lua-5.2.3/src/loslib.c +++ /dev/null @@ -1,323 +0,0 @@ -/* -** $Id: loslib.c,v 1.40.1.1 2013/04/12 18:48:47 roberto Exp $ -** Standard Operating System library -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include -#include -#include - -#define loslib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -/* -** list of valid conversion specifiers for the 'strftime' function -*/ -#if !defined(LUA_STRFTIMEOPTIONS) - -#if !defined(LUA_USE_POSIX) -#define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" } -#else -#define LUA_STRFTIMEOPTIONS \ - { "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "" \ - "", "E", "cCxXyY", \ - "O", "deHImMSuUVwWy" } -#endif - -#endif - - - -/* -** By default, Lua uses tmpnam except when POSIX is available, where it -** uses mkstemp. -*/ -#if defined(LUA_USE_MKSTEMP) -#include -#define LUA_TMPNAMBUFSIZE 32 -#define lua_tmpnam(b,e) { \ - strcpy(b, "/tmp/lua_XXXXXX"); \ - e = mkstemp(b); \ - if (e != -1) close(e); \ - e = (e == -1); } - -#elif !defined(lua_tmpnam) - -#define LUA_TMPNAMBUFSIZE L_tmpnam -#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); } - -#endif - - -/* -** By default, Lua uses gmtime/localtime, except when POSIX is available, -** where it uses gmtime_r/localtime_r -*/ -#if defined(LUA_USE_GMTIME_R) - -#define l_gmtime(t,r) gmtime_r(t,r) -#define l_localtime(t,r) localtime_r(t,r) - -#elif !defined(l_gmtime) - -#define l_gmtime(t,r) ((void)r, gmtime(t)) -#define l_localtime(t,r) ((void)r, localtime(t)) - -#endif - - - -static int os_execute (lua_State *L) { - const char *cmd = luaL_optstring(L, 1, NULL); - int stat = system(cmd); - if (cmd != NULL) - return luaL_execresult(L, stat); - else { - lua_pushboolean(L, stat); /* true if there is a shell */ - return 1; - } -} - - -static int os_remove (lua_State *L) { - const char *filename = luaL_checkstring(L, 1); - return luaL_fileresult(L, remove(filename) == 0, filename); -} - - -static int os_rename (lua_State *L) { - const char *fromname = luaL_checkstring(L, 1); - const char *toname = luaL_checkstring(L, 2); - return luaL_fileresult(L, rename(fromname, toname) == 0, NULL); -} - - -static int os_tmpname (lua_State *L) { - char buff[LUA_TMPNAMBUFSIZE]; - int err; - lua_tmpnam(buff, err); - if (err) - return luaL_error(L, "unable to generate a unique filename"); - lua_pushstring(L, buff); - return 1; -} - - -static int os_getenv (lua_State *L) { - lua_pushstring(L, getenv(luaL_checkstring(L, 1))); /* if NULL push nil */ - return 1; -} - - -static int os_clock (lua_State *L) { - lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC); - return 1; -} - - -/* -** {====================================================== -** Time/Date operations -** { year=%Y, month=%m, day=%d, hour=%H, min=%M, sec=%S, -** wday=%w+1, yday=%j, isdst=? } -** ======================================================= -*/ - -static void setfield (lua_State *L, const char *key, int value) { - lua_pushinteger(L, value); - lua_setfield(L, -2, key); -} - -static void setboolfield (lua_State *L, const char *key, int value) { - if (value < 0) /* undefined? */ - return; /* does not set field */ - lua_pushboolean(L, value); - lua_setfield(L, -2, key); -} - -static int getboolfield (lua_State *L, const char *key) { - int res; - lua_getfield(L, -1, key); - res = lua_isnil(L, -1) ? -1 : lua_toboolean(L, -1); - lua_pop(L, 1); - return res; -} - - -static int getfield (lua_State *L, const char *key, int d) { - int res, isnum; - lua_getfield(L, -1, key); - res = (int)lua_tointegerx(L, -1, &isnum); - if (!isnum) { - if (d < 0) - return luaL_error(L, "field " LUA_QS " missing in date table", key); - res = d; - } - lua_pop(L, 1); - return res; -} - - -static const char *checkoption (lua_State *L, const char *conv, char *buff) { - static const char *const options[] = LUA_STRFTIMEOPTIONS; - unsigned int i; - for (i = 0; i < sizeof(options)/sizeof(options[0]); i += 2) { - if (*conv != '\0' && strchr(options[i], *conv) != NULL) { - buff[1] = *conv; - if (*options[i + 1] == '\0') { /* one-char conversion specifier? */ - buff[2] = '\0'; /* end buffer */ - return conv + 1; - } - else if (*(conv + 1) != '\0' && - strchr(options[i + 1], *(conv + 1)) != NULL) { - buff[2] = *(conv + 1); /* valid two-char conversion specifier */ - buff[3] = '\0'; /* end buffer */ - return conv + 2; - } - } - } - luaL_argerror(L, 1, - lua_pushfstring(L, "invalid conversion specifier '%%%s'", conv)); - return conv; /* to avoid warnings */ -} - - -static int os_date (lua_State *L) { - const char *s = luaL_optstring(L, 1, "%c"); - time_t t = luaL_opt(L, (time_t)luaL_checknumber, 2, time(NULL)); - struct tm tmr, *stm; - if (*s == '!') { /* UTC? */ - stm = l_gmtime(&t, &tmr); - s++; /* skip `!' */ - } - else - stm = l_localtime(&t, &tmr); - if (stm == NULL) /* invalid date? */ - lua_pushnil(L); - else if (strcmp(s, "*t") == 0) { - lua_createtable(L, 0, 9); /* 9 = number of fields */ - setfield(L, "sec", stm->tm_sec); - setfield(L, "min", stm->tm_min); - setfield(L, "hour", stm->tm_hour); - setfield(L, "day", stm->tm_mday); - setfield(L, "month", stm->tm_mon+1); - setfield(L, "year", stm->tm_year+1900); - setfield(L, "wday", stm->tm_wday+1); - setfield(L, "yday", stm->tm_yday+1); - setboolfield(L, "isdst", stm->tm_isdst); - } - else { - char cc[4]; - luaL_Buffer b; - cc[0] = '%'; - luaL_buffinit(L, &b); - while (*s) { - if (*s != '%') /* no conversion specifier? */ - luaL_addchar(&b, *s++); - else { - size_t reslen; - char buff[200]; /* should be big enough for any conversion result */ - s = checkoption(L, s + 1, cc); - reslen = strftime(buff, sizeof(buff), cc, stm); - luaL_addlstring(&b, buff, reslen); - } - } - luaL_pushresult(&b); - } - return 1; -} - - -static int os_time (lua_State *L) { - time_t t; - if (lua_isnoneornil(L, 1)) /* called without args? */ - t = time(NULL); /* get current time */ - else { - struct tm ts; - luaL_checktype(L, 1, LUA_TTABLE); - lua_settop(L, 1); /* make sure table is at the top */ - ts.tm_sec = getfield(L, "sec", 0); - ts.tm_min = getfield(L, "min", 0); - ts.tm_hour = getfield(L, "hour", 12); - ts.tm_mday = getfield(L, "day", -1); - ts.tm_mon = getfield(L, "month", -1) - 1; - ts.tm_year = getfield(L, "year", -1) - 1900; - ts.tm_isdst = getboolfield(L, "isdst"); - t = mktime(&ts); - } - if (t == (time_t)(-1)) - lua_pushnil(L); - else - lua_pushnumber(L, (lua_Number)t); - return 1; -} - - -static int os_difftime (lua_State *L) { - lua_pushnumber(L, difftime((time_t)(luaL_checknumber(L, 1)), - (time_t)(luaL_optnumber(L, 2, 0)))); - return 1; -} - -/* }====================================================== */ - - -static int os_setlocale (lua_State *L) { - static const int cat[] = {LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, - LC_NUMERIC, LC_TIME}; - static const char *const catnames[] = {"all", "collate", "ctype", "monetary", - "numeric", "time", NULL}; - const char *l = luaL_optstring(L, 1, NULL); - int op = luaL_checkoption(L, 2, "all", catnames); - lua_pushstring(L, setlocale(cat[op], l)); - return 1; -} - - -static int os_exit (lua_State *L) { - int status; - if (lua_isboolean(L, 1)) - status = (lua_toboolean(L, 1) ? EXIT_SUCCESS : EXIT_FAILURE); - else - status = luaL_optint(L, 1, EXIT_SUCCESS); - if (lua_toboolean(L, 2)) - lua_close(L); - if (L) exit(status); /* 'if' to avoid warnings for unreachable 'return' */ - return 0; -} - - -static const luaL_Reg syslib[] = { - {"clock", os_clock}, - {"date", os_date}, - {"difftime", os_difftime}, - {"execute", os_execute}, - {"exit", os_exit}, - {"getenv", os_getenv}, - {"remove", os_remove}, - {"rename", os_rename}, - {"setlocale", os_setlocale}, - {"time", os_time}, - {"tmpname", os_tmpname}, - {NULL, NULL} -}; - -/* }====================================================== */ - - - -LUAMOD_API int luaopen_os (lua_State *L) { - luaL_newlib(L, syslib); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/lparser.c b/btgui/lua-5.2.3/src/lparser.c deleted file mode 100644 index 9e1a9ca2c..000000000 --- a/btgui/lua-5.2.3/src/lparser.c +++ /dev/null @@ -1,1638 +0,0 @@ -/* -** $Id: lparser.c,v 2.130.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua Parser -** See Copyright Notice in lua.h -*/ - - -#include - -#define lparser_c -#define LUA_CORE - -#include "lua.h" - -#include "lcode.h" -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "llex.h" -#include "lmem.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lparser.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" - - - -/* maximum number of local variables per function (must be smaller - than 250, due to the bytecode format) */ -#define MAXVARS 200 - - -#define hasmultret(k) ((k) == VCALL || (k) == VVARARG) - - - -/* -** nodes for block list (list of active blocks) -*/ -typedef struct BlockCnt { - struct BlockCnt *previous; /* chain */ - short firstlabel; /* index of first label in this block */ - short firstgoto; /* index of first pending goto in this block */ - lu_byte nactvar; /* # active locals outside the block */ - lu_byte upval; /* true if some variable in the block is an upvalue */ - lu_byte isloop; /* true if `block' is a loop */ -} BlockCnt; - - - -/* -** prototypes for recursive non-terminal functions -*/ -static void statement (LexState *ls); -static void expr (LexState *ls, expdesc *v); - - -static void anchor_token (LexState *ls) { - /* last token from outer function must be EOS */ - lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); - if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) { - TString *ts = ls->t.seminfo.ts; - luaX_newstring(ls, getstr(ts), ts->tsv.len); - } -} - - -/* semantic error */ -static l_noret semerror (LexState *ls, const char *msg) { - ls->t.token = 0; /* remove 'near to' from final message */ - luaX_syntaxerror(ls, msg); -} - - -static l_noret error_expected (LexState *ls, int token) { - luaX_syntaxerror(ls, - luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token))); -} - - -static l_noret errorlimit (FuncState *fs, int limit, const char *what) { - lua_State *L = fs->ls->L; - const char *msg; - int line = fs->f->linedefined; - const char *where = (line == 0) - ? "main function" - : luaO_pushfstring(L, "function at line %d", line); - msg = luaO_pushfstring(L, "too many %s (limit is %d) in %s", - what, limit, where); - luaX_syntaxerror(fs->ls, msg); -} - - -static void checklimit (FuncState *fs, int v, int l, const char *what) { - if (v > l) errorlimit(fs, l, what); -} - - -static int testnext (LexState *ls, int c) { - if (ls->t.token == c) { - luaX_next(ls); - return 1; - } - else return 0; -} - - -static void check (LexState *ls, int c) { - if (ls->t.token != c) - error_expected(ls, c); -} - - -static void checknext (LexState *ls, int c) { - check(ls, c); - luaX_next(ls); -} - - -#define check_condition(ls,c,msg) { if (!(c)) luaX_syntaxerror(ls, msg); } - - - -static void check_match (LexState *ls, int what, int who, int where) { - if (!testnext(ls, what)) { - if (where == ls->linenumber) - error_expected(ls, what); - else { - luaX_syntaxerror(ls, luaO_pushfstring(ls->L, - "%s expected (to close %s at line %d)", - luaX_token2str(ls, what), luaX_token2str(ls, who), where)); - } - } -} - - -static TString *str_checkname (LexState *ls) { - TString *ts; - check(ls, TK_NAME); - ts = ls->t.seminfo.ts; - luaX_next(ls); - return ts; -} - - -static void init_exp (expdesc *e, expkind k, int i) { - e->f = e->t = NO_JUMP; - e->k = k; - e->u.info = i; -} - - -static void codestring (LexState *ls, expdesc *e, TString *s) { - init_exp(e, VK, luaK_stringK(ls->fs, s)); -} - - -static void checkname (LexState *ls, expdesc *e) { - codestring(ls, e, str_checkname(ls)); -} - - -static int registerlocalvar (LexState *ls, TString *varname) { - FuncState *fs = ls->fs; - Proto *f = fs->f; - int oldsize = f->sizelocvars; - luaM_growvector(ls->L, f->locvars, fs->nlocvars, f->sizelocvars, - LocVar, SHRT_MAX, "local variables"); - while (oldsize < f->sizelocvars) f->locvars[oldsize++].varname = NULL; - f->locvars[fs->nlocvars].varname = varname; - luaC_objbarrier(ls->L, f, varname); - return fs->nlocvars++; -} - - -static void new_localvar (LexState *ls, TString *name) { - FuncState *fs = ls->fs; - Dyndata *dyd = ls->dyd; - int reg = registerlocalvar(ls, name); - checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal, - MAXVARS, "local variables"); - luaM_growvector(ls->L, dyd->actvar.arr, dyd->actvar.n + 1, - dyd->actvar.size, Vardesc, MAX_INT, "local variables"); - dyd->actvar.arr[dyd->actvar.n++].idx = cast(short, reg); -} - - -static void new_localvarliteral_ (LexState *ls, const char *name, size_t sz) { - new_localvar(ls, luaX_newstring(ls, name, sz)); -} - -#define new_localvarliteral(ls,v) \ - new_localvarliteral_(ls, "" v, (sizeof(v)/sizeof(char))-1) - - -static LocVar *getlocvar (FuncState *fs, int i) { - int idx = fs->ls->dyd->actvar.arr[fs->firstlocal + i].idx; - lua_assert(idx < fs->nlocvars); - return &fs->f->locvars[idx]; -} - - -static void adjustlocalvars (LexState *ls, int nvars) { - FuncState *fs = ls->fs; - fs->nactvar = cast_byte(fs->nactvar + nvars); - for (; nvars; nvars--) { - getlocvar(fs, fs->nactvar - nvars)->startpc = fs->pc; - } -} - - -static void removevars (FuncState *fs, int tolevel) { - fs->ls->dyd->actvar.n -= (fs->nactvar - tolevel); - while (fs->nactvar > tolevel) - getlocvar(fs, --fs->nactvar)->endpc = fs->pc; -} - - -static int searchupvalue (FuncState *fs, TString *name) { - int i; - Upvaldesc *up = fs->f->upvalues; - for (i = 0; i < fs->nups; i++) { - if (luaS_eqstr(up[i].name, name)) return i; - } - return -1; /* not found */ -} - - -static int newupvalue (FuncState *fs, TString *name, expdesc *v) { - Proto *f = fs->f; - int oldsize = f->sizeupvalues; - checklimit(fs, fs->nups + 1, MAXUPVAL, "upvalues"); - luaM_growvector(fs->ls->L, f->upvalues, fs->nups, f->sizeupvalues, - Upvaldesc, MAXUPVAL, "upvalues"); - while (oldsize < f->sizeupvalues) f->upvalues[oldsize++].name = NULL; - f->upvalues[fs->nups].instack = (v->k == VLOCAL); - f->upvalues[fs->nups].idx = cast_byte(v->u.info); - f->upvalues[fs->nups].name = name; - luaC_objbarrier(fs->ls->L, f, name); - return fs->nups++; -} - - -static int searchvar (FuncState *fs, TString *n) { - int i; - for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { - if (luaS_eqstr(n, getlocvar(fs, i)->varname)) - return i; - } - return -1; /* not found */ -} - - -/* - Mark block where variable at given level was defined - (to emit close instructions later). -*/ -static void markupval (FuncState *fs, int level) { - BlockCnt *bl = fs->bl; - while (bl->nactvar > level) bl = bl->previous; - bl->upval = 1; -} - - -/* - Find variable with given name 'n'. If it is an upvalue, add this - upvalue into all intermediate functions. -*/ -static int singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { - if (fs == NULL) /* no more levels? */ - return VVOID; /* default is global */ - else { - int v = searchvar(fs, n); /* look up locals at current level */ - if (v >= 0) { /* found? */ - init_exp(var, VLOCAL, v); /* variable is local */ - if (!base) - markupval(fs, v); /* local will be used as an upval */ - return VLOCAL; - } - else { /* not found as local at current level; try upvalues */ - int idx = searchupvalue(fs, n); /* try existing upvalues */ - if (idx < 0) { /* not found? */ - if (singlevaraux(fs->prev, n, var, 0) == VVOID) /* try upper levels */ - return VVOID; /* not found; is a global */ - /* else was LOCAL or UPVAL */ - idx = newupvalue(fs, n, var); /* will be a new upvalue */ - } - init_exp(var, VUPVAL, idx); - return VUPVAL; - } - } -} - - -static void singlevar (LexState *ls, expdesc *var) { - TString *varname = str_checkname(ls); - FuncState *fs = ls->fs; - if (singlevaraux(fs, varname, var, 1) == VVOID) { /* global name? */ - expdesc key; - singlevaraux(fs, ls->envn, var, 1); /* get environment variable */ - lua_assert(var->k == VLOCAL || var->k == VUPVAL); - codestring(ls, &key, varname); /* key is variable name */ - luaK_indexed(fs, var, &key); /* env[varname] */ - } -} - - -static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) { - FuncState *fs = ls->fs; - int extra = nvars - nexps; - if (hasmultret(e->k)) { - extra++; /* includes call itself */ - if (extra < 0) extra = 0; - luaK_setreturns(fs, e, extra); /* last exp. provides the difference */ - if (extra > 1) luaK_reserveregs(fs, extra-1); - } - else { - if (e->k != VVOID) luaK_exp2nextreg(fs, e); /* close last expression */ - if (extra > 0) { - int reg = fs->freereg; - luaK_reserveregs(fs, extra); - luaK_nil(fs, reg, extra); - } - } -} - - -static void enterlevel (LexState *ls) { - lua_State *L = ls->L; - ++L->nCcalls; - checklimit(ls->fs, L->nCcalls, LUAI_MAXCCALLS, "C levels"); -} - - -#define leavelevel(ls) ((ls)->L->nCcalls--) - - -static void closegoto (LexState *ls, int g, Labeldesc *label) { - int i; - FuncState *fs = ls->fs; - Labellist *gl = &ls->dyd->gt; - Labeldesc *gt = &gl->arr[g]; - lua_assert(luaS_eqstr(gt->name, label->name)); - if (gt->nactvar < label->nactvar) { - TString *vname = getlocvar(fs, gt->nactvar)->varname; - const char *msg = luaO_pushfstring(ls->L, - " at line %d jumps into the scope of local " LUA_QS, - getstr(gt->name), gt->line, getstr(vname)); - semerror(ls, msg); - } - luaK_patchlist(fs, gt->pc, label->pc); - /* remove goto from pending list */ - for (i = g; i < gl->n - 1; i++) - gl->arr[i] = gl->arr[i + 1]; - gl->n--; -} - - -/* -** try to close a goto with existing labels; this solves backward jumps -*/ -static int findlabel (LexState *ls, int g) { - int i; - BlockCnt *bl = ls->fs->bl; - Dyndata *dyd = ls->dyd; - Labeldesc *gt = &dyd->gt.arr[g]; - /* check labels in current block for a match */ - for (i = bl->firstlabel; i < dyd->label.n; i++) { - Labeldesc *lb = &dyd->label.arr[i]; - if (luaS_eqstr(lb->name, gt->name)) { /* correct label? */ - if (gt->nactvar > lb->nactvar && - (bl->upval || dyd->label.n > bl->firstlabel)) - luaK_patchclose(ls->fs, gt->pc, lb->nactvar); - closegoto(ls, g, lb); /* close it */ - return 1; - } - } - return 0; /* label not found; cannot close goto */ -} - - -static int newlabelentry (LexState *ls, Labellist *l, TString *name, - int line, int pc) { - int n = l->n; - luaM_growvector(ls->L, l->arr, n, l->size, - Labeldesc, SHRT_MAX, "labels/gotos"); - l->arr[n].name = name; - l->arr[n].line = line; - l->arr[n].nactvar = ls->fs->nactvar; - l->arr[n].pc = pc; - l->n++; - return n; -} - - -/* -** check whether new label 'lb' matches any pending gotos in current -** block; solves forward jumps -*/ -static void findgotos (LexState *ls, Labeldesc *lb) { - Labellist *gl = &ls->dyd->gt; - int i = ls->fs->bl->firstgoto; - while (i < gl->n) { - if (luaS_eqstr(gl->arr[i].name, lb->name)) - closegoto(ls, i, lb); - else - i++; - } -} - - -/* -** "export" pending gotos to outer level, to check them against -** outer labels; if the block being exited has upvalues, and -** the goto exits the scope of any variable (which can be the -** upvalue), close those variables being exited. -*/ -static void movegotosout (FuncState *fs, BlockCnt *bl) { - int i = bl->firstgoto; - Labellist *gl = &fs->ls->dyd->gt; - /* correct pending gotos to current block and try to close it - with visible labels */ - while (i < gl->n) { - Labeldesc *gt = &gl->arr[i]; - if (gt->nactvar > bl->nactvar) { - if (bl->upval) - luaK_patchclose(fs, gt->pc, bl->nactvar); - gt->nactvar = bl->nactvar; - } - if (!findlabel(fs->ls, i)) - i++; /* move to next one */ - } -} - - -static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isloop) { - bl->isloop = isloop; - bl->nactvar = fs->nactvar; - bl->firstlabel = fs->ls->dyd->label.n; - bl->firstgoto = fs->ls->dyd->gt.n; - bl->upval = 0; - bl->previous = fs->bl; - fs->bl = bl; - lua_assert(fs->freereg == fs->nactvar); -} - - -/* -** create a label named "break" to resolve break statements -*/ -static void breaklabel (LexState *ls) { - TString *n = luaS_new(ls->L, "break"); - int l = newlabelentry(ls, &ls->dyd->label, n, 0, ls->fs->pc); - findgotos(ls, &ls->dyd->label.arr[l]); -} - -/* -** generates an error for an undefined 'goto'; choose appropriate -** message when label name is a reserved word (which can only be 'break') -*/ -static l_noret undefgoto (LexState *ls, Labeldesc *gt) { - const char *msg = isreserved(gt->name) - ? "<%s> at line %d not inside a loop" - : "no visible label " LUA_QS " for at line %d"; - msg = luaO_pushfstring(ls->L, msg, getstr(gt->name), gt->line); - semerror(ls, msg); -} - - -static void leaveblock (FuncState *fs) { - BlockCnt *bl = fs->bl; - LexState *ls = fs->ls; - if (bl->previous && bl->upval) { - /* create a 'jump to here' to close upvalues */ - int j = luaK_jump(fs); - luaK_patchclose(fs, j, bl->nactvar); - luaK_patchtohere(fs, j); - } - if (bl->isloop) - breaklabel(ls); /* close pending breaks */ - fs->bl = bl->previous; - removevars(fs, bl->nactvar); - lua_assert(bl->nactvar == fs->nactvar); - fs->freereg = fs->nactvar; /* free registers */ - ls->dyd->label.n = bl->firstlabel; /* remove local labels */ - if (bl->previous) /* inner block? */ - movegotosout(fs, bl); /* update pending gotos to outer block */ - else if (bl->firstgoto < ls->dyd->gt.n) /* pending gotos in outer block? */ - undefgoto(ls, &ls->dyd->gt.arr[bl->firstgoto]); /* error */ -} - - -/* -** adds a new prototype into list of prototypes -*/ -static Proto *addprototype (LexState *ls) { - Proto *clp; - lua_State *L = ls->L; - FuncState *fs = ls->fs; - Proto *f = fs->f; /* prototype of current function */ - if (fs->np >= f->sizep) { - int oldsize = f->sizep; - luaM_growvector(L, f->p, fs->np, f->sizep, Proto *, MAXARG_Bx, "functions"); - while (oldsize < f->sizep) f->p[oldsize++] = NULL; - } - f->p[fs->np++] = clp = luaF_newproto(L); - luaC_objbarrier(L, f, clp); - return clp; -} - - -/* -** codes instruction to create new closure in parent function. -** The OP_CLOSURE instruction must use the last available register, -** so that, if it invokes the GC, the GC knows which registers -** are in use at that time. -*/ -static void codeclosure (LexState *ls, expdesc *v) { - FuncState *fs = ls->fs->prev; - init_exp(v, VRELOCABLE, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1)); - luaK_exp2nextreg(fs, v); /* fix it at the last register */ -} - - -static void open_func (LexState *ls, FuncState *fs, BlockCnt *bl) { - lua_State *L = ls->L; - Proto *f; - fs->prev = ls->fs; /* linked list of funcstates */ - fs->ls = ls; - ls->fs = fs; - fs->pc = 0; - fs->lasttarget = 0; - fs->jpc = NO_JUMP; - fs->freereg = 0; - fs->nk = 0; - fs->np = 0; - fs->nups = 0; - fs->nlocvars = 0; - fs->nactvar = 0; - fs->firstlocal = ls->dyd->actvar.n; - fs->bl = NULL; - f = fs->f; - f->source = ls->source; - f->maxstacksize = 2; /* registers 0/1 are always valid */ - fs->h = luaH_new(L); - /* anchor table of constants (to avoid being collected) */ - sethvalue2s(L, L->top, fs->h); - incr_top(L); - enterblock(fs, bl, 0); -} - - -static void close_func (LexState *ls) { - lua_State *L = ls->L; - FuncState *fs = ls->fs; - Proto *f = fs->f; - luaK_ret(fs, 0, 0); /* final return */ - leaveblock(fs); - luaM_reallocvector(L, f->code, f->sizecode, fs->pc, Instruction); - f->sizecode = fs->pc; - luaM_reallocvector(L, f->lineinfo, f->sizelineinfo, fs->pc, int); - f->sizelineinfo = fs->pc; - luaM_reallocvector(L, f->k, f->sizek, fs->nk, TValue); - f->sizek = fs->nk; - luaM_reallocvector(L, f->p, f->sizep, fs->np, Proto *); - f->sizep = fs->np; - luaM_reallocvector(L, f->locvars, f->sizelocvars, fs->nlocvars, LocVar); - f->sizelocvars = fs->nlocvars; - luaM_reallocvector(L, f->upvalues, f->sizeupvalues, fs->nups, Upvaldesc); - f->sizeupvalues = fs->nups; - lua_assert(fs->bl == NULL); - ls->fs = fs->prev; - /* last token read was anchored in defunct function; must re-anchor it */ - anchor_token(ls); - L->top--; /* pop table of constants */ - luaC_checkGC(L); -} - - - -/*============================================================*/ -/* GRAMMAR RULES */ -/*============================================================*/ - - -/* -** check whether current token is in the follow set of a block. -** 'until' closes syntactical blocks, but do not close scope, -** so it handled in separate. -*/ -static int block_follow (LexState *ls, int withuntil) { - switch (ls->t.token) { - case TK_ELSE: case TK_ELSEIF: - case TK_END: case TK_EOS: - return 1; - case TK_UNTIL: return withuntil; - default: return 0; - } -} - - -static void statlist (LexState *ls) { - /* statlist -> { stat [`;'] } */ - while (!block_follow(ls, 1)) { - if (ls->t.token == TK_RETURN) { - statement(ls); - return; /* 'return' must be last statement */ - } - statement(ls); - } -} - - -static void fieldsel (LexState *ls, expdesc *v) { - /* fieldsel -> ['.' | ':'] NAME */ - FuncState *fs = ls->fs; - expdesc key; - luaK_exp2anyregup(fs, v); - luaX_next(ls); /* skip the dot or colon */ - checkname(ls, &key); - luaK_indexed(fs, v, &key); -} - - -static void yindex (LexState *ls, expdesc *v) { - /* index -> '[' expr ']' */ - luaX_next(ls); /* skip the '[' */ - expr(ls, v); - luaK_exp2val(ls->fs, v); - checknext(ls, ']'); -} - - -/* -** {====================================================================== -** Rules for Constructors -** ======================================================================= -*/ - - -struct ConsControl { - expdesc v; /* last list item read */ - expdesc *t; /* table descriptor */ - int nh; /* total number of `record' elements */ - int na; /* total number of array elements */ - int tostore; /* number of array elements pending to be stored */ -}; - - -static void recfield (LexState *ls, struct ConsControl *cc) { - /* recfield -> (NAME | `['exp1`]') = exp1 */ - FuncState *fs = ls->fs; - int reg = ls->fs->freereg; - expdesc key, val; - int rkkey; - if (ls->t.token == TK_NAME) { - checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); - checkname(ls, &key); - } - else /* ls->t.token == '[' */ - yindex(ls, &key); - cc->nh++; - checknext(ls, '='); - rkkey = luaK_exp2RK(fs, &key); - expr(ls, &val); - luaK_codeABC(fs, OP_SETTABLE, cc->t->u.info, rkkey, luaK_exp2RK(fs, &val)); - fs->freereg = reg; /* free registers */ -} - - -static void closelistfield (FuncState *fs, struct ConsControl *cc) { - if (cc->v.k == VVOID) return; /* there is no list item */ - luaK_exp2nextreg(fs, &cc->v); - cc->v.k = VVOID; - if (cc->tostore == LFIELDS_PER_FLUSH) { - luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */ - cc->tostore = 0; /* no more items pending */ - } -} - - -static void lastlistfield (FuncState *fs, struct ConsControl *cc) { - if (cc->tostore == 0) return; - if (hasmultret(cc->v.k)) { - luaK_setmultret(fs, &cc->v); - luaK_setlist(fs, cc->t->u.info, cc->na, LUA_MULTRET); - cc->na--; /* do not count last expression (unknown number of elements) */ - } - else { - if (cc->v.k != VVOID) - luaK_exp2nextreg(fs, &cc->v); - luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); - } -} - - -static void listfield (LexState *ls, struct ConsControl *cc) { - /* listfield -> exp */ - expr(ls, &cc->v); - checklimit(ls->fs, cc->na, MAX_INT, "items in a constructor"); - cc->na++; - cc->tostore++; -} - - -static void field (LexState *ls, struct ConsControl *cc) { - /* field -> listfield | recfield */ - switch(ls->t.token) { - case TK_NAME: { /* may be 'listfield' or 'recfield' */ - if (luaX_lookahead(ls) != '=') /* expression? */ - listfield(ls, cc); - else - recfield(ls, cc); - break; - } - case '[': { - recfield(ls, cc); - break; - } - default: { - listfield(ls, cc); - break; - } - } -} - - -static void constructor (LexState *ls, expdesc *t) { - /* constructor -> '{' [ field { sep field } [sep] ] '}' - sep -> ',' | ';' */ - FuncState *fs = ls->fs; - int line = ls->linenumber; - int pc = luaK_codeABC(fs, OP_NEWTABLE, 0, 0, 0); - struct ConsControl cc; - cc.na = cc.nh = cc.tostore = 0; - cc.t = t; - init_exp(t, VRELOCABLE, pc); - init_exp(&cc.v, VVOID, 0); /* no value (yet) */ - luaK_exp2nextreg(ls->fs, t); /* fix it at stack top */ - checknext(ls, '{'); - do { - lua_assert(cc.v.k == VVOID || cc.tostore > 0); - if (ls->t.token == '}') break; - closelistfield(fs, &cc); - field(ls, &cc); - } while (testnext(ls, ',') || testnext(ls, ';')); - check_match(ls, '}', '{', line); - lastlistfield(fs, &cc); - SETARG_B(fs->f->code[pc], luaO_int2fb(cc.na)); /* set initial array size */ - SETARG_C(fs->f->code[pc], luaO_int2fb(cc.nh)); /* set initial table size */ -} - -/* }====================================================================== */ - - - -static void parlist (LexState *ls) { - /* parlist -> [ param { `,' param } ] */ - FuncState *fs = ls->fs; - Proto *f = fs->f; - int nparams = 0; - f->is_vararg = 0; - if (ls->t.token != ')') { /* is `parlist' not empty? */ - do { - switch (ls->t.token) { - case TK_NAME: { /* param -> NAME */ - new_localvar(ls, str_checkname(ls)); - nparams++; - break; - } - case TK_DOTS: { /* param -> `...' */ - luaX_next(ls); - f->is_vararg = 1; - break; - } - default: luaX_syntaxerror(ls, " or " LUA_QL("...") " expected"); - } - } while (!f->is_vararg && testnext(ls, ',')); - } - adjustlocalvars(ls, nparams); - f->numparams = cast_byte(fs->nactvar); - luaK_reserveregs(fs, fs->nactvar); /* reserve register for parameters */ -} - - -static void body (LexState *ls, expdesc *e, int ismethod, int line) { - /* body -> `(' parlist `)' block END */ - FuncState new_fs; - BlockCnt bl; - new_fs.f = addprototype(ls); - new_fs.f->linedefined = line; - open_func(ls, &new_fs, &bl); - checknext(ls, '('); - if (ismethod) { - new_localvarliteral(ls, "self"); /* create 'self' parameter */ - adjustlocalvars(ls, 1); - } - parlist(ls); - checknext(ls, ')'); - statlist(ls); - new_fs.f->lastlinedefined = ls->linenumber; - check_match(ls, TK_END, TK_FUNCTION, line); - codeclosure(ls, e); - close_func(ls); -} - - -static int explist (LexState *ls, expdesc *v) { - /* explist -> expr { `,' expr } */ - int n = 1; /* at least one expression */ - expr(ls, v); - while (testnext(ls, ',')) { - luaK_exp2nextreg(ls->fs, v); - expr(ls, v); - n++; - } - return n; -} - - -static void funcargs (LexState *ls, expdesc *f, int line) { - FuncState *fs = ls->fs; - expdesc args; - int base, nparams; - switch (ls->t.token) { - case '(': { /* funcargs -> `(' [ explist ] `)' */ - luaX_next(ls); - if (ls->t.token == ')') /* arg list is empty? */ - args.k = VVOID; - else { - explist(ls, &args); - luaK_setmultret(fs, &args); - } - check_match(ls, ')', '(', line); - break; - } - case '{': { /* funcargs -> constructor */ - constructor(ls, &args); - break; - } - case TK_STRING: { /* funcargs -> STRING */ - codestring(ls, &args, ls->t.seminfo.ts); - luaX_next(ls); /* must use `seminfo' before `next' */ - break; - } - default: { - luaX_syntaxerror(ls, "function arguments expected"); - } - } - lua_assert(f->k == VNONRELOC); - base = f->u.info; /* base register for call */ - if (hasmultret(args.k)) - nparams = LUA_MULTRET; /* open call */ - else { - if (args.k != VVOID) - luaK_exp2nextreg(fs, &args); /* close last argument */ - nparams = fs->freereg - (base+1); - } - init_exp(f, VCALL, luaK_codeABC(fs, OP_CALL, base, nparams+1, 2)); - luaK_fixline(fs, line); - fs->freereg = base+1; /* call remove function and arguments and leaves - (unless changed) one result */ -} - - - - -/* -** {====================================================================== -** Expression parsing -** ======================================================================= -*/ - - -static void primaryexp (LexState *ls, expdesc *v) { - /* primaryexp -> NAME | '(' expr ')' */ - switch (ls->t.token) { - case '(': { - int line = ls->linenumber; - luaX_next(ls); - expr(ls, v); - check_match(ls, ')', '(', line); - luaK_dischargevars(ls->fs, v); - return; - } - case TK_NAME: { - singlevar(ls, v); - return; - } - default: { - luaX_syntaxerror(ls, "unexpected symbol"); - } - } -} - - -static void suffixedexp (LexState *ls, expdesc *v) { - /* suffixedexp -> - primaryexp { '.' NAME | '[' exp ']' | ':' NAME funcargs | funcargs } */ - FuncState *fs = ls->fs; - int line = ls->linenumber; - primaryexp(ls, v); - for (;;) { - switch (ls->t.token) { - case '.': { /* fieldsel */ - fieldsel(ls, v); - break; - } - case '[': { /* `[' exp1 `]' */ - expdesc key; - luaK_exp2anyregup(fs, v); - yindex(ls, &key); - luaK_indexed(fs, v, &key); - break; - } - case ':': { /* `:' NAME funcargs */ - expdesc key; - luaX_next(ls); - checkname(ls, &key); - luaK_self(fs, v, &key); - funcargs(ls, v, line); - break; - } - case '(': case TK_STRING: case '{': { /* funcargs */ - luaK_exp2nextreg(fs, v); - funcargs(ls, v, line); - break; - } - default: return; - } - } -} - - -static void simpleexp (LexState *ls, expdesc *v) { - /* simpleexp -> NUMBER | STRING | NIL | TRUE | FALSE | ... | - constructor | FUNCTION body | suffixedexp */ - switch (ls->t.token) { - case TK_NUMBER: { - init_exp(v, VKNUM, 0); - v->u.nval = ls->t.seminfo.r; - break; - } - case TK_STRING: { - codestring(ls, v, ls->t.seminfo.ts); - break; - } - case TK_NIL: { - init_exp(v, VNIL, 0); - break; - } - case TK_TRUE: { - init_exp(v, VTRUE, 0); - break; - } - case TK_FALSE: { - init_exp(v, VFALSE, 0); - break; - } - case TK_DOTS: { /* vararg */ - FuncState *fs = ls->fs; - check_condition(ls, fs->f->is_vararg, - "cannot use " LUA_QL("...") " outside a vararg function"); - init_exp(v, VVARARG, luaK_codeABC(fs, OP_VARARG, 0, 1, 0)); - break; - } - case '{': { /* constructor */ - constructor(ls, v); - return; - } - case TK_FUNCTION: { - luaX_next(ls); - body(ls, v, 0, ls->linenumber); - return; - } - default: { - suffixedexp(ls, v); - return; - } - } - luaX_next(ls); -} - - -static UnOpr getunopr (int op) { - switch (op) { - case TK_NOT: return OPR_NOT; - case '-': return OPR_MINUS; - case '#': return OPR_LEN; - default: return OPR_NOUNOPR; - } -} - - -static BinOpr getbinopr (int op) { - switch (op) { - case '+': return OPR_ADD; - case '-': return OPR_SUB; - case '*': return OPR_MUL; - case '/': return OPR_DIV; - case '%': return OPR_MOD; - case '^': return OPR_POW; - case TK_CONCAT: return OPR_CONCAT; - case TK_NE: return OPR_NE; - case TK_EQ: return OPR_EQ; - case '<': return OPR_LT; - case TK_LE: return OPR_LE; - case '>': return OPR_GT; - case TK_GE: return OPR_GE; - case TK_AND: return OPR_AND; - case TK_OR: return OPR_OR; - default: return OPR_NOBINOPR; - } -} - - -static const struct { - lu_byte left; /* left priority for each binary operator */ - lu_byte right; /* right priority */ -} priority[] = { /* ORDER OPR */ - {6, 6}, {6, 6}, {7, 7}, {7, 7}, {7, 7}, /* `+' `-' `*' `/' `%' */ - {10, 9}, {5, 4}, /* ^, .. (right associative) */ - {3, 3}, {3, 3}, {3, 3}, /* ==, <, <= */ - {3, 3}, {3, 3}, {3, 3}, /* ~=, >, >= */ - {2, 2}, {1, 1} /* and, or */ -}; - -#define UNARY_PRIORITY 8 /* priority for unary operators */ - - -/* -** subexpr -> (simpleexp | unop subexpr) { binop subexpr } -** where `binop' is any binary operator with a priority higher than `limit' -*/ -static BinOpr subexpr (LexState *ls, expdesc *v, int limit) { - BinOpr op; - UnOpr uop; - enterlevel(ls); - uop = getunopr(ls->t.token); - if (uop != OPR_NOUNOPR) { - int line = ls->linenumber; - luaX_next(ls); - subexpr(ls, v, UNARY_PRIORITY); - luaK_prefix(ls->fs, uop, v, line); - } - else simpleexp(ls, v); - /* expand while operators have priorities higher than `limit' */ - op = getbinopr(ls->t.token); - while (op != OPR_NOBINOPR && priority[op].left > limit) { - expdesc v2; - BinOpr nextop; - int line = ls->linenumber; - luaX_next(ls); - luaK_infix(ls->fs, op, v); - /* read sub-expression with higher priority */ - nextop = subexpr(ls, &v2, priority[op].right); - luaK_posfix(ls->fs, op, v, &v2, line); - op = nextop; - } - leavelevel(ls); - return op; /* return first untreated operator */ -} - - -static void expr (LexState *ls, expdesc *v) { - subexpr(ls, v, 0); -} - -/* }==================================================================== */ - - - -/* -** {====================================================================== -** Rules for Statements -** ======================================================================= -*/ - - -static void block (LexState *ls) { - /* block -> statlist */ - FuncState *fs = ls->fs; - BlockCnt bl; - enterblock(fs, &bl, 0); - statlist(ls); - leaveblock(fs); -} - - -/* -** structure to chain all variables in the left-hand side of an -** assignment -*/ -struct LHS_assign { - struct LHS_assign *prev; - expdesc v; /* variable (global, local, upvalue, or indexed) */ -}; - - -/* -** check whether, in an assignment to an upvalue/local variable, the -** upvalue/local variable is begin used in a previous assignment to a -** table. If so, save original upvalue/local value in a safe place and -** use this safe copy in the previous assignment. -*/ -static void check_conflict (LexState *ls, struct LHS_assign *lh, expdesc *v) { - FuncState *fs = ls->fs; - int extra = fs->freereg; /* eventual position to save local variable */ - int conflict = 0; - for (; lh; lh = lh->prev) { /* check all previous assignments */ - if (lh->v.k == VINDEXED) { /* assigning to a table? */ - /* table is the upvalue/local being assigned now? */ - if (lh->v.u.ind.vt == v->k && lh->v.u.ind.t == v->u.info) { - conflict = 1; - lh->v.u.ind.vt = VLOCAL; - lh->v.u.ind.t = extra; /* previous assignment will use safe copy */ - } - /* index is the local being assigned? (index cannot be upvalue) */ - if (v->k == VLOCAL && lh->v.u.ind.idx == v->u.info) { - conflict = 1; - lh->v.u.ind.idx = extra; /* previous assignment will use safe copy */ - } - } - } - if (conflict) { - /* copy upvalue/local value to a temporary (in position 'extra') */ - OpCode op = (v->k == VLOCAL) ? OP_MOVE : OP_GETUPVAL; - luaK_codeABC(fs, op, extra, v->u.info, 0); - luaK_reserveregs(fs, 1); - } -} - - -static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { - expdesc e; - check_condition(ls, vkisvar(lh->v.k), "syntax error"); - if (testnext(ls, ',')) { /* assignment -> ',' suffixedexp assignment */ - struct LHS_assign nv; - nv.prev = lh; - suffixedexp(ls, &nv.v); - if (nv.v.k != VINDEXED) - check_conflict(ls, lh, &nv.v); - checklimit(ls->fs, nvars + ls->L->nCcalls, LUAI_MAXCCALLS, - "C levels"); - assignment(ls, &nv, nvars+1); - } - else { /* assignment -> `=' explist */ - int nexps; - checknext(ls, '='); - nexps = explist(ls, &e); - if (nexps != nvars) { - adjust_assign(ls, nvars, nexps, &e); - if (nexps > nvars) - ls->fs->freereg -= nexps - nvars; /* remove extra values */ - } - else { - luaK_setoneret(ls->fs, &e); /* close last expression */ - luaK_storevar(ls->fs, &lh->v, &e); - return; /* avoid default */ - } - } - init_exp(&e, VNONRELOC, ls->fs->freereg-1); /* default assignment */ - luaK_storevar(ls->fs, &lh->v, &e); -} - - -static int cond (LexState *ls) { - /* cond -> exp */ - expdesc v; - expr(ls, &v); /* read condition */ - if (v.k == VNIL) v.k = VFALSE; /* `falses' are all equal here */ - luaK_goiftrue(ls->fs, &v); - return v.f; -} - - -static void gotostat (LexState *ls, int pc) { - int line = ls->linenumber; - TString *label; - int g; - if (testnext(ls, TK_GOTO)) - label = str_checkname(ls); - else { - luaX_next(ls); /* skip break */ - label = luaS_new(ls->L, "break"); - } - g = newlabelentry(ls, &ls->dyd->gt, label, line, pc); - findlabel(ls, g); /* close it if label already defined */ -} - - -/* check for repeated labels on the same block */ -static void checkrepeated (FuncState *fs, Labellist *ll, TString *label) { - int i; - for (i = fs->bl->firstlabel; i < ll->n; i++) { - if (luaS_eqstr(label, ll->arr[i].name)) { - const char *msg = luaO_pushfstring(fs->ls->L, - "label " LUA_QS " already defined on line %d", - getstr(label), ll->arr[i].line); - semerror(fs->ls, msg); - } - } -} - - -/* skip no-op statements */ -static void skipnoopstat (LexState *ls) { - while (ls->t.token == ';' || ls->t.token == TK_DBCOLON) - statement(ls); -} - - -static void labelstat (LexState *ls, TString *label, int line) { - /* label -> '::' NAME '::' */ - FuncState *fs = ls->fs; - Labellist *ll = &ls->dyd->label; - int l; /* index of new label being created */ - checkrepeated(fs, ll, label); /* check for repeated labels */ - checknext(ls, TK_DBCOLON); /* skip double colon */ - /* create new entry for this label */ - l = newlabelentry(ls, ll, label, line, fs->pc); - skipnoopstat(ls); /* skip other no-op statements */ - if (block_follow(ls, 0)) { /* label is last no-op statement in the block? */ - /* assume that locals are already out of scope */ - ll->arr[l].nactvar = fs->bl->nactvar; - } - findgotos(ls, &ll->arr[l]); -} - - -static void whilestat (LexState *ls, int line) { - /* whilestat -> WHILE cond DO block END */ - FuncState *fs = ls->fs; - int whileinit; - int condexit; - BlockCnt bl; - luaX_next(ls); /* skip WHILE */ - whileinit = luaK_getlabel(fs); - condexit = cond(ls); - enterblock(fs, &bl, 1); - checknext(ls, TK_DO); - block(ls); - luaK_jumpto(fs, whileinit); - check_match(ls, TK_END, TK_WHILE, line); - leaveblock(fs); - luaK_patchtohere(fs, condexit); /* false conditions finish the loop */ -} - - -static void repeatstat (LexState *ls, int line) { - /* repeatstat -> REPEAT block UNTIL cond */ - int condexit; - FuncState *fs = ls->fs; - int repeat_init = luaK_getlabel(fs); - BlockCnt bl1, bl2; - enterblock(fs, &bl1, 1); /* loop block */ - enterblock(fs, &bl2, 0); /* scope block */ - luaX_next(ls); /* skip REPEAT */ - statlist(ls); - check_match(ls, TK_UNTIL, TK_REPEAT, line); - condexit = cond(ls); /* read condition (inside scope block) */ - if (bl2.upval) /* upvalues? */ - luaK_patchclose(fs, condexit, bl2.nactvar); - leaveblock(fs); /* finish scope */ - luaK_patchlist(fs, condexit, repeat_init); /* close the loop */ - leaveblock(fs); /* finish loop */ -} - - -static int exp1 (LexState *ls) { - expdesc e; - int reg; - expr(ls, &e); - luaK_exp2nextreg(ls->fs, &e); - lua_assert(e.k == VNONRELOC); - reg = e.u.info; - return reg; -} - - -static void forbody (LexState *ls, int base, int line, int nvars, int isnum) { - /* forbody -> DO block */ - BlockCnt bl; - FuncState *fs = ls->fs; - int prep, endfor; - adjustlocalvars(ls, 3); /* control variables */ - checknext(ls, TK_DO); - prep = isnum ? luaK_codeAsBx(fs, OP_FORPREP, base, NO_JUMP) : luaK_jump(fs); - enterblock(fs, &bl, 0); /* scope for declared variables */ - adjustlocalvars(ls, nvars); - luaK_reserveregs(fs, nvars); - block(ls); - leaveblock(fs); /* end of scope for declared variables */ - luaK_patchtohere(fs, prep); - if (isnum) /* numeric for? */ - endfor = luaK_codeAsBx(fs, OP_FORLOOP, base, NO_JUMP); - else { /* generic for */ - luaK_codeABC(fs, OP_TFORCALL, base, 0, nvars); - luaK_fixline(fs, line); - endfor = luaK_codeAsBx(fs, OP_TFORLOOP, base + 2, NO_JUMP); - } - luaK_patchlist(fs, endfor, prep + 1); - luaK_fixline(fs, line); -} - - -static void fornum (LexState *ls, TString *varname, int line) { - /* fornum -> NAME = exp1,exp1[,exp1] forbody */ - FuncState *fs = ls->fs; - int base = fs->freereg; - new_localvarliteral(ls, "(for index)"); - new_localvarliteral(ls, "(for limit)"); - new_localvarliteral(ls, "(for step)"); - new_localvar(ls, varname); - checknext(ls, '='); - exp1(ls); /* initial value */ - checknext(ls, ','); - exp1(ls); /* limit */ - if (testnext(ls, ',')) - exp1(ls); /* optional step */ - else { /* default step = 1 */ - luaK_codek(fs, fs->freereg, luaK_numberK(fs, 1)); - luaK_reserveregs(fs, 1); - } - forbody(ls, base, line, 1, 1); -} - - -static void forlist (LexState *ls, TString *indexname) { - /* forlist -> NAME {,NAME} IN explist forbody */ - FuncState *fs = ls->fs; - expdesc e; - int nvars = 4; /* gen, state, control, plus at least one declared var */ - int line; - int base = fs->freereg; - /* create control variables */ - new_localvarliteral(ls, "(for generator)"); - new_localvarliteral(ls, "(for state)"); - new_localvarliteral(ls, "(for control)"); - /* create declared variables */ - new_localvar(ls, indexname); - while (testnext(ls, ',')) { - new_localvar(ls, str_checkname(ls)); - nvars++; - } - checknext(ls, TK_IN); - line = ls->linenumber; - adjust_assign(ls, 3, explist(ls, &e), &e); - luaK_checkstack(fs, 3); /* extra space to call generator */ - forbody(ls, base, line, nvars - 3, 0); -} - - -static void forstat (LexState *ls, int line) { - /* forstat -> FOR (fornum | forlist) END */ - FuncState *fs = ls->fs; - TString *varname; - BlockCnt bl; - enterblock(fs, &bl, 1); /* scope for loop and control variables */ - luaX_next(ls); /* skip `for' */ - varname = str_checkname(ls); /* first variable name */ - switch (ls->t.token) { - case '=': fornum(ls, varname, line); break; - case ',': case TK_IN: forlist(ls, varname); break; - default: luaX_syntaxerror(ls, LUA_QL("=") " or " LUA_QL("in") " expected"); - } - check_match(ls, TK_END, TK_FOR, line); - leaveblock(fs); /* loop scope (`break' jumps to this point) */ -} - - -static void test_then_block (LexState *ls, int *escapelist) { - /* test_then_block -> [IF | ELSEIF] cond THEN block */ - BlockCnt bl; - FuncState *fs = ls->fs; - expdesc v; - int jf; /* instruction to skip 'then' code (if condition is false) */ - luaX_next(ls); /* skip IF or ELSEIF */ - expr(ls, &v); /* read condition */ - checknext(ls, TK_THEN); - if (ls->t.token == TK_GOTO || ls->t.token == TK_BREAK) { - luaK_goiffalse(ls->fs, &v); /* will jump to label if condition is true */ - enterblock(fs, &bl, 0); /* must enter block before 'goto' */ - gotostat(ls, v.t); /* handle goto/break */ - skipnoopstat(ls); /* skip other no-op statements */ - if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ - leaveblock(fs); - return; /* and that is it */ - } - else /* must skip over 'then' part if condition is false */ - jf = luaK_jump(fs); - } - else { /* regular case (not goto/break) */ - luaK_goiftrue(ls->fs, &v); /* skip over block if condition is false */ - enterblock(fs, &bl, 0); - jf = v.f; - } - statlist(ls); /* `then' part */ - leaveblock(fs); - if (ls->t.token == TK_ELSE || - ls->t.token == TK_ELSEIF) /* followed by 'else'/'elseif'? */ - luaK_concat(fs, escapelist, luaK_jump(fs)); /* must jump over it */ - luaK_patchtohere(fs, jf); -} - - -static void ifstat (LexState *ls, int line) { - /* ifstat -> IF cond THEN block {ELSEIF cond THEN block} [ELSE block] END */ - FuncState *fs = ls->fs; - int escapelist = NO_JUMP; /* exit list for finished parts */ - test_then_block(ls, &escapelist); /* IF cond THEN block */ - while (ls->t.token == TK_ELSEIF) - test_then_block(ls, &escapelist); /* ELSEIF cond THEN block */ - if (testnext(ls, TK_ELSE)) - block(ls); /* `else' part */ - check_match(ls, TK_END, TK_IF, line); - luaK_patchtohere(fs, escapelist); /* patch escape list to 'if' end */ -} - - -static void localfunc (LexState *ls) { - expdesc b; - FuncState *fs = ls->fs; - new_localvar(ls, str_checkname(ls)); /* new local variable */ - adjustlocalvars(ls, 1); /* enter its scope */ - body(ls, &b, 0, ls->linenumber); /* function created in next register */ - /* debug information will only see the variable after this point! */ - getlocvar(fs, b.u.info)->startpc = fs->pc; -} - - -static void localstat (LexState *ls) { - /* stat -> LOCAL NAME {`,' NAME} [`=' explist] */ - int nvars = 0; - int nexps; - expdesc e; - do { - new_localvar(ls, str_checkname(ls)); - nvars++; - } while (testnext(ls, ',')); - if (testnext(ls, '=')) - nexps = explist(ls, &e); - else { - e.k = VVOID; - nexps = 0; - } - adjust_assign(ls, nvars, nexps, &e); - adjustlocalvars(ls, nvars); -} - - -static int funcname (LexState *ls, expdesc *v) { - /* funcname -> NAME {fieldsel} [`:' NAME] */ - int ismethod = 0; - singlevar(ls, v); - while (ls->t.token == '.') - fieldsel(ls, v); - if (ls->t.token == ':') { - ismethod = 1; - fieldsel(ls, v); - } - return ismethod; -} - - -static void funcstat (LexState *ls, int line) { - /* funcstat -> FUNCTION funcname body */ - int ismethod; - expdesc v, b; - luaX_next(ls); /* skip FUNCTION */ - ismethod = funcname(ls, &v); - body(ls, &b, ismethod, line); - luaK_storevar(ls->fs, &v, &b); - luaK_fixline(ls->fs, line); /* definition `happens' in the first line */ -} - - -static void exprstat (LexState *ls) { - /* stat -> func | assignment */ - FuncState *fs = ls->fs; - struct LHS_assign v; - suffixedexp(ls, &v.v); - if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */ - v.prev = NULL; - assignment(ls, &v, 1); - } - else { /* stat -> func */ - check_condition(ls, v.v.k == VCALL, "syntax error"); - SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */ - } -} - - -static void retstat (LexState *ls) { - /* stat -> RETURN [explist] [';'] */ - FuncState *fs = ls->fs; - expdesc e; - int first, nret; /* registers with returned values */ - if (block_follow(ls, 1) || ls->t.token == ';') - first = nret = 0; /* return no values */ - else { - nret = explist(ls, &e); /* optional return values */ - if (hasmultret(e.k)) { - luaK_setmultret(fs, &e); - if (e.k == VCALL && nret == 1) { /* tail call? */ - SET_OPCODE(getcode(fs,&e), OP_TAILCALL); - lua_assert(GETARG_A(getcode(fs,&e)) == fs->nactvar); - } - first = fs->nactvar; - nret = LUA_MULTRET; /* return all values */ - } - else { - if (nret == 1) /* only one single value? */ - first = luaK_exp2anyreg(fs, &e); - else { - luaK_exp2nextreg(fs, &e); /* values must go to the `stack' */ - first = fs->nactvar; /* return all `active' values */ - lua_assert(nret == fs->freereg - first); - } - } - } - luaK_ret(fs, first, nret); - testnext(ls, ';'); /* skip optional semicolon */ -} - - -static void statement (LexState *ls) { - int line = ls->linenumber; /* may be needed for error messages */ - enterlevel(ls); - switch (ls->t.token) { - case ';': { /* stat -> ';' (empty statement) */ - luaX_next(ls); /* skip ';' */ - break; - } - case TK_IF: { /* stat -> ifstat */ - ifstat(ls, line); - break; - } - case TK_WHILE: { /* stat -> whilestat */ - whilestat(ls, line); - break; - } - case TK_DO: { /* stat -> DO block END */ - luaX_next(ls); /* skip DO */ - block(ls); - check_match(ls, TK_END, TK_DO, line); - break; - } - case TK_FOR: { /* stat -> forstat */ - forstat(ls, line); - break; - } - case TK_REPEAT: { /* stat -> repeatstat */ - repeatstat(ls, line); - break; - } - case TK_FUNCTION: { /* stat -> funcstat */ - funcstat(ls, line); - break; - } - case TK_LOCAL: { /* stat -> localstat */ - luaX_next(ls); /* skip LOCAL */ - if (testnext(ls, TK_FUNCTION)) /* local function? */ - localfunc(ls); - else - localstat(ls); - break; - } - case TK_DBCOLON: { /* stat -> label */ - luaX_next(ls); /* skip double colon */ - labelstat(ls, str_checkname(ls), line); - break; - } - case TK_RETURN: { /* stat -> retstat */ - luaX_next(ls); /* skip RETURN */ - retstat(ls); - break; - } - case TK_BREAK: /* stat -> breakstat */ - case TK_GOTO: { /* stat -> 'goto' NAME */ - gotostat(ls, luaK_jump(ls->fs)); - break; - } - default: { /* stat -> func | assignment */ - exprstat(ls); - break; - } - } - lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg && - ls->fs->freereg >= ls->fs->nactvar); - ls->fs->freereg = ls->fs->nactvar; /* free registers */ - leavelevel(ls); -} - -/* }====================================================================== */ - - -/* -** compiles the main function, which is a regular vararg function with an -** upvalue named LUA_ENV -*/ -static void mainfunc (LexState *ls, FuncState *fs) { - BlockCnt bl; - expdesc v; - open_func(ls, fs, &bl); - fs->f->is_vararg = 1; /* main function is always vararg */ - init_exp(&v, VLOCAL, 0); /* create and... */ - newupvalue(fs, ls->envn, &v); /* ...set environment upvalue */ - luaX_next(ls); /* read first token */ - statlist(ls); /* parse main body */ - check(ls, TK_EOS); - close_func(ls); -} - - -Closure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, - Dyndata *dyd, const char *name, int firstchar) { - LexState lexstate; - FuncState funcstate; - Closure *cl = luaF_newLclosure(L, 1); /* create main closure */ - /* anchor closure (to avoid being collected) */ - setclLvalue(L, L->top, cl); - incr_top(L); - funcstate.f = cl->l.p = luaF_newproto(L); - funcstate.f->source = luaS_new(L, name); /* create and anchor TString */ - lexstate.buff = buff; - lexstate.dyd = dyd; - dyd->actvar.n = dyd->gt.n = dyd->label.n = 0; - luaX_setinput(L, &lexstate, z, funcstate.f->source, firstchar); - mainfunc(&lexstate, &funcstate); - lua_assert(!funcstate.prev && funcstate.nups == 1 && !lexstate.fs); - /* all scopes should be correctly finished */ - lua_assert(dyd->actvar.n == 0 && dyd->gt.n == 0 && dyd->label.n == 0); - return cl; /* it's on the stack too */ -} - diff --git a/btgui/lua-5.2.3/src/lparser.h b/btgui/lua-5.2.3/src/lparser.h deleted file mode 100644 index 0346e3c41..000000000 --- a/btgui/lua-5.2.3/src/lparser.h +++ /dev/null @@ -1,119 +0,0 @@ -/* -** $Id: lparser.h,v 1.70.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua Parser -** See Copyright Notice in lua.h -*/ - -#ifndef lparser_h -#define lparser_h - -#include "llimits.h" -#include "lobject.h" -#include "lzio.h" - - -/* -** Expression descriptor -*/ - -typedef enum { - VVOID, /* no value */ - VNIL, - VTRUE, - VFALSE, - VK, /* info = index of constant in `k' */ - VKNUM, /* nval = numerical value */ - VNONRELOC, /* info = result register */ - VLOCAL, /* info = local register */ - VUPVAL, /* info = index of upvalue in 'upvalues' */ - VINDEXED, /* t = table register/upvalue; idx = index R/K */ - VJMP, /* info = instruction pc */ - VRELOCABLE, /* info = instruction pc */ - VCALL, /* info = instruction pc */ - VVARARG /* info = instruction pc */ -} expkind; - - -#define vkisvar(k) (VLOCAL <= (k) && (k) <= VINDEXED) -#define vkisinreg(k) ((k) == VNONRELOC || (k) == VLOCAL) - -typedef struct expdesc { - expkind k; - union { - struct { /* for indexed variables (VINDEXED) */ - short idx; /* index (R/K) */ - lu_byte t; /* table (register or upvalue) */ - lu_byte vt; /* whether 't' is register (VLOCAL) or upvalue (VUPVAL) */ - } ind; - int info; /* for generic use */ - lua_Number nval; /* for VKNUM */ - } u; - int t; /* patch list of `exit when true' */ - int f; /* patch list of `exit when false' */ -} expdesc; - - -/* description of active local variable */ -typedef struct Vardesc { - short idx; /* variable index in stack */ -} Vardesc; - - -/* description of pending goto statements and label statements */ -typedef struct Labeldesc { - TString *name; /* label identifier */ - int pc; /* position in code */ - int line; /* line where it appeared */ - lu_byte nactvar; /* local level where it appears in current block */ -} Labeldesc; - - -/* list of labels or gotos */ -typedef struct Labellist { - Labeldesc *arr; /* array */ - int n; /* number of entries in use */ - int size; /* array size */ -} Labellist; - - -/* dynamic structures used by the parser */ -typedef struct Dyndata { - struct { /* list of active local variables */ - Vardesc *arr; - int n; - int size; - } actvar; - Labellist gt; /* list of pending gotos */ - Labellist label; /* list of active labels */ -} Dyndata; - - -/* control of blocks */ -struct BlockCnt; /* defined in lparser.c */ - - -/* state needed to generate code for a given function */ -typedef struct FuncState { - Proto *f; /* current function header */ - Table *h; /* table to find (and reuse) elements in `k' */ - struct FuncState *prev; /* enclosing function */ - struct LexState *ls; /* lexical state */ - struct BlockCnt *bl; /* chain of current blocks */ - int pc; /* next position to code (equivalent to `ncode') */ - int lasttarget; /* 'label' of last 'jump label' */ - int jpc; /* list of pending jumps to `pc' */ - int nk; /* number of elements in `k' */ - int np; /* number of elements in `p' */ - int firstlocal; /* index of first local var (in Dyndata array) */ - short nlocvars; /* number of elements in 'f->locvars' */ - lu_byte nactvar; /* number of active local variables */ - lu_byte nups; /* number of upvalues */ - lu_byte freereg; /* first free register */ -} FuncState; - - -LUAI_FUNC Closure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, - Dyndata *dyd, const char *name, int firstchar); - - -#endif diff --git a/btgui/lua-5.2.3/src/lstate.c b/btgui/lua-5.2.3/src/lstate.c deleted file mode 100644 index c7f2672be..000000000 --- a/btgui/lua-5.2.3/src/lstate.c +++ /dev/null @@ -1,323 +0,0 @@ -/* -** $Id: lstate.c,v 2.99.1.2 2013/11/08 17:45:31 roberto Exp $ -** Global State -** See Copyright Notice in lua.h -*/ - - -#include -#include - -#define lstate_c -#define LUA_CORE - -#include "lua.h" - -#include "lapi.h" -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lgc.h" -#include "llex.h" -#include "lmem.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" - - -#if !defined(LUAI_GCPAUSE) -#define LUAI_GCPAUSE 200 /* 200% */ -#endif - -#if !defined(LUAI_GCMAJOR) -#define LUAI_GCMAJOR 200 /* 200% */ -#endif - -#if !defined(LUAI_GCMUL) -#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ -#endif - - -#define MEMERRMSG "not enough memory" - - -/* -** a macro to help the creation of a unique random seed when a state is -** created; the seed is used to randomize hashes. -*/ -#if !defined(luai_makeseed) -#include -#define luai_makeseed() cast(unsigned int, time(NULL)) -#endif - - - -/* -** thread state + extra space -*/ -typedef struct LX { -#if defined(LUAI_EXTRASPACE) - char buff[LUAI_EXTRASPACE]; -#endif - lua_State l; -} LX; - - -/* -** Main thread combines a thread state and the global state -*/ -typedef struct LG { - LX l; - global_State g; -} LG; - - - -#define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l))) - - -/* -** Compute an initial seed as random as possible. In ANSI, rely on -** Address Space Layout Randomization (if present) to increase -** randomness.. -*/ -#define addbuff(b,p,e) \ - { size_t t = cast(size_t, e); \ - memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); } - -static unsigned int makeseed (lua_State *L) { - char buff[4 * sizeof(size_t)]; - unsigned int h = luai_makeseed(); - int p = 0; - addbuff(buff, p, L); /* heap variable */ - addbuff(buff, p, &h); /* local variable */ - addbuff(buff, p, luaO_nilobject); /* global variable */ - addbuff(buff, p, &lua_newstate); /* public function */ - lua_assert(p == sizeof(buff)); - return luaS_hash(buff, p, h); -} - - -/* -** set GCdebt to a new value keeping the value (totalbytes + GCdebt) -** invariant -*/ -void luaE_setdebt (global_State *g, l_mem debt) { - g->totalbytes -= (debt - g->GCdebt); - g->GCdebt = debt; -} - - -CallInfo *luaE_extendCI (lua_State *L) { - CallInfo *ci = luaM_new(L, CallInfo); - lua_assert(L->ci->next == NULL); - L->ci->next = ci; - ci->previous = L->ci; - ci->next = NULL; - return ci; -} - - -void luaE_freeCI (lua_State *L) { - CallInfo *ci = L->ci; - CallInfo *next = ci->next; - ci->next = NULL; - while ((ci = next) != NULL) { - next = ci->next; - luaM_free(L, ci); - } -} - - -static void stack_init (lua_State *L1, lua_State *L) { - int i; CallInfo *ci; - /* initialize stack array */ - L1->stack = luaM_newvector(L, BASIC_STACK_SIZE, TValue); - L1->stacksize = BASIC_STACK_SIZE; - for (i = 0; i < BASIC_STACK_SIZE; i++) - setnilvalue(L1->stack + i); /* erase new stack */ - L1->top = L1->stack; - L1->stack_last = L1->stack + L1->stacksize - EXTRA_STACK; - /* initialize first ci */ - ci = &L1->base_ci; - ci->next = ci->previous = NULL; - ci->callstatus = 0; - ci->func = L1->top; - setnilvalue(L1->top++); /* 'function' entry for this 'ci' */ - ci->top = L1->top + LUA_MINSTACK; - L1->ci = ci; -} - - -static void freestack (lua_State *L) { - if (L->stack == NULL) - return; /* stack not completely built yet */ - L->ci = &L->base_ci; /* free the entire 'ci' list */ - luaE_freeCI(L); - luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ -} - - -/* -** Create registry table and its predefined values -*/ -static void init_registry (lua_State *L, global_State *g) { - TValue mt; - /* create registry */ - Table *registry = luaH_new(L); - sethvalue(L, &g->l_registry, registry); - luaH_resize(L, registry, LUA_RIDX_LAST, 0); - /* registry[LUA_RIDX_MAINTHREAD] = L */ - setthvalue(L, &mt, L); - luaH_setint(L, registry, LUA_RIDX_MAINTHREAD, &mt); - /* registry[LUA_RIDX_GLOBALS] = table of globals */ - sethvalue(L, &mt, luaH_new(L)); - luaH_setint(L, registry, LUA_RIDX_GLOBALS, &mt); -} - - -/* -** open parts of the state that may cause memory-allocation errors -*/ -static void f_luaopen (lua_State *L, void *ud) { - global_State *g = G(L); - UNUSED(ud); - stack_init(L, L); /* init stack */ - init_registry(L, g); - luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ - luaT_init(L); - luaX_init(L); - /* pre-create memory-error message */ - g->memerrmsg = luaS_newliteral(L, MEMERRMSG); - luaS_fix(g->memerrmsg); /* it should never be collected */ - g->gcrunning = 1; /* allow gc */ - g->version = lua_version(NULL); - luai_userstateopen(L); -} - - -/* -** preinitialize a state with consistent values without allocating -** any memory (to avoid errors) -*/ -static void preinit_state (lua_State *L, global_State *g) { - G(L) = g; - L->stack = NULL; - L->ci = NULL; - L->stacksize = 0; - L->errorJmp = NULL; - L->nCcalls = 0; - L->hook = NULL; - L->hookmask = 0; - L->basehookcount = 0; - L->allowhook = 1; - resethookcount(L); - L->openupval = NULL; - L->nny = 1; - L->status = LUA_OK; - L->errfunc = 0; -} - - -static void close_state (lua_State *L) { - global_State *g = G(L); - luaF_close(L, L->stack); /* close all upvalues for this thread */ - luaC_freeallobjects(L); /* collect all objects */ - if (g->version) /* closing a fully built state? */ - luai_userstateclose(L); - luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size); - luaZ_freebuffer(L, &g->buff); - freestack(L); - lua_assert(gettotalbytes(g) == sizeof(LG)); - (*g->frealloc)(g->ud, fromstate(L), sizeof(LG), 0); /* free main block */ -} - - -LUA_API lua_State *lua_newthread (lua_State *L) { - lua_State *L1; - lua_lock(L); - luaC_checkGC(L); - L1 = &luaC_newobj(L, LUA_TTHREAD, sizeof(LX), NULL, offsetof(LX, l))->th; - setthvalue(L, L->top, L1); - api_incr_top(L); - preinit_state(L1, G(L)); - L1->hookmask = L->hookmask; - L1->basehookcount = L->basehookcount; - L1->hook = L->hook; - resethookcount(L1); - luai_userstatethread(L, L1); - stack_init(L1, L); /* init stack */ - lua_unlock(L); - return L1; -} - - -void luaE_freethread (lua_State *L, lua_State *L1) { - LX *l = fromstate(L1); - luaF_close(L1, L1->stack); /* close all upvalues for this thread */ - lua_assert(L1->openupval == NULL); - luai_userstatefree(L, L1); - freestack(L1); - luaM_free(L, l); -} - - -LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { - int i; - lua_State *L; - global_State *g; - LG *l = cast(LG *, (*f)(ud, NULL, LUA_TTHREAD, sizeof(LG))); - if (l == NULL) return NULL; - L = &l->l.l; - g = &l->g; - L->next = NULL; - L->tt = LUA_TTHREAD; - g->currentwhite = bit2mask(WHITE0BIT, FIXEDBIT); - L->marked = luaC_white(g); - g->gckind = KGC_NORMAL; - preinit_state(L, g); - g->frealloc = f; - g->ud = ud; - g->mainthread = L; - g->seed = makeseed(L); - g->uvhead.u.l.prev = &g->uvhead; - g->uvhead.u.l.next = &g->uvhead; - g->gcrunning = 0; /* no GC while building state */ - g->GCestimate = 0; - g->strt.size = 0; - g->strt.nuse = 0; - g->strt.hash = NULL; - setnilvalue(&g->l_registry); - luaZ_initbuffer(L, &g->buff); - g->panic = NULL; - g->version = NULL; - g->gcstate = GCSpause; - g->allgc = NULL; - g->finobj = NULL; - g->tobefnz = NULL; - g->sweepgc = g->sweepfin = NULL; - g->gray = g->grayagain = NULL; - g->weak = g->ephemeron = g->allweak = NULL; - g->totalbytes = sizeof(LG); - g->GCdebt = 0; - g->gcpause = LUAI_GCPAUSE; - g->gcmajorinc = LUAI_GCMAJOR; - g->gcstepmul = LUAI_GCMUL; - for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; - if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { - /* memory allocation error: free partial state */ - close_state(L); - L = NULL; - } - return L; -} - - -LUA_API void lua_close (lua_State *L) { - L = G(L)->mainthread; /* only the main thread can be closed */ - lua_lock(L); - close_state(L); -} - - diff --git a/btgui/lua-5.2.3/src/lstate.h b/btgui/lua-5.2.3/src/lstate.h deleted file mode 100644 index daffd9aac..000000000 --- a/btgui/lua-5.2.3/src/lstate.h +++ /dev/null @@ -1,228 +0,0 @@ -/* -** $Id: lstate.h,v 2.82.1.1 2013/04/12 18:48:47 roberto Exp $ -** Global State -** See Copyright Notice in lua.h -*/ - -#ifndef lstate_h -#define lstate_h - -#include "lua.h" - -#include "lobject.h" -#include "ltm.h" -#include "lzio.h" - - -/* - -** Some notes about garbage-collected objects: All objects in Lua must -** be kept somehow accessible until being freed. -** -** Lua keeps most objects linked in list g->allgc. The link uses field -** 'next' of the CommonHeader. -** -** Strings are kept in several lists headed by the array g->strt.hash. -** -** Open upvalues are not subject to independent garbage collection. They -** are collected together with their respective threads. Lua keeps a -** double-linked list with all open upvalues (g->uvhead) so that it can -** mark objects referred by them. (They are always gray, so they must -** be remarked in the atomic step. Usually their contents would be marked -** when traversing the respective threads, but the thread may already be -** dead, while the upvalue is still accessible through closures.) -** -** Objects with finalizers are kept in the list g->finobj. -** -** The list g->tobefnz links all objects being finalized. - -*/ - - -struct lua_longjmp; /* defined in ldo.c */ - - - -/* extra stack space to handle TM calls and some other extras */ -#define EXTRA_STACK 5 - - -#define BASIC_STACK_SIZE (2*LUA_MINSTACK) - - -/* kinds of Garbage Collection */ -#define KGC_NORMAL 0 -#define KGC_EMERGENCY 1 /* gc was forced by an allocation failure */ -#define KGC_GEN 2 /* generational collection */ - - -typedef struct stringtable { - GCObject **hash; - lu_int32 nuse; /* number of elements */ - int size; -} stringtable; - - -/* -** information about a call -*/ -typedef struct CallInfo { - StkId func; /* function index in the stack */ - StkId top; /* top for this function */ - struct CallInfo *previous, *next; /* dynamic call link */ - short nresults; /* expected number of results from this function */ - lu_byte callstatus; - ptrdiff_t extra; - union { - struct { /* only for Lua functions */ - StkId base; /* base for this function */ - const Instruction *savedpc; - } l; - struct { /* only for C functions */ - int ctx; /* context info. in case of yields */ - lua_CFunction k; /* continuation in case of yields */ - ptrdiff_t old_errfunc; - lu_byte old_allowhook; - lu_byte status; - } c; - } u; -} CallInfo; - - -/* -** Bits in CallInfo status -*/ -#define CIST_LUA (1<<0) /* call is running a Lua function */ -#define CIST_HOOKED (1<<1) /* call is running a debug hook */ -#define CIST_REENTRY (1<<2) /* call is running on same invocation of - luaV_execute of previous call */ -#define CIST_YIELDED (1<<3) /* call reentered after suspension */ -#define CIST_YPCALL (1<<4) /* call is a yieldable protected call */ -#define CIST_STAT (1<<5) /* call has an error status (pcall) */ -#define CIST_TAIL (1<<6) /* call was tail called */ -#define CIST_HOOKYIELD (1<<7) /* last hook called yielded */ - - -#define isLua(ci) ((ci)->callstatus & CIST_LUA) - - -/* -** `global state', shared by all threads of this state -*/ -typedef struct global_State { - lua_Alloc frealloc; /* function to reallocate memory */ - void *ud; /* auxiliary data to `frealloc' */ - lu_mem totalbytes; /* number of bytes currently allocated - GCdebt */ - l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ - lu_mem GCmemtrav; /* memory traversed by the GC */ - lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ - stringtable strt; /* hash table for strings */ - TValue l_registry; - unsigned int seed; /* randomized seed for hashes */ - lu_byte currentwhite; - lu_byte gcstate; /* state of garbage collector */ - lu_byte gckind; /* kind of GC running */ - lu_byte gcrunning; /* true if GC is running */ - int sweepstrgc; /* position of sweep in `strt' */ - GCObject *allgc; /* list of all collectable objects */ - GCObject *finobj; /* list of collectable objects with finalizers */ - GCObject **sweepgc; /* current position of sweep in list 'allgc' */ - GCObject **sweepfin; /* current position of sweep in list 'finobj' */ - GCObject *gray; /* list of gray objects */ - GCObject *grayagain; /* list of objects to be traversed atomically */ - GCObject *weak; /* list of tables with weak values */ - GCObject *ephemeron; /* list of ephemeron tables (weak keys) */ - GCObject *allweak; /* list of all-weak tables */ - GCObject *tobefnz; /* list of userdata to be GC */ - UpVal uvhead; /* head of double-linked list of all open upvalues */ - Mbuffer buff; /* temporary buffer for string concatenation */ - int gcpause; /* size of pause between successive GCs */ - int gcmajorinc; /* pause between major collections (only in gen. mode) */ - int gcstepmul; /* GC `granularity' */ - lua_CFunction panic; /* to be called in unprotected errors */ - struct lua_State *mainthread; - const lua_Number *version; /* pointer to version number */ - TString *memerrmsg; /* memory-error message */ - TString *tmname[TM_N]; /* array with tag-method names */ - struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ -} global_State; - - -/* -** `per thread' state -*/ -struct lua_State { - CommonHeader; - lu_byte status; - StkId top; /* first free slot in the stack */ - global_State *l_G; - CallInfo *ci; /* call info for current function */ - const Instruction *oldpc; /* last pc traced */ - StkId stack_last; /* last free slot in the stack */ - StkId stack; /* stack base */ - int stacksize; - unsigned short nny; /* number of non-yieldable calls in stack */ - unsigned short nCcalls; /* number of nested C calls */ - lu_byte hookmask; - lu_byte allowhook; - int basehookcount; - int hookcount; - lua_Hook hook; - GCObject *openupval; /* list of open upvalues in this stack */ - GCObject *gclist; - struct lua_longjmp *errorJmp; /* current error recover point */ - ptrdiff_t errfunc; /* current error handling function (stack index) */ - CallInfo base_ci; /* CallInfo for first level (C calling Lua) */ -}; - - -#define G(L) (L->l_G) - - -/* -** Union of all collectable objects -*/ -union GCObject { - GCheader gch; /* common header */ - union TString ts; - union Udata u; - union Closure cl; - struct Table h; - struct Proto p; - struct UpVal uv; - struct lua_State th; /* thread */ -}; - - -#define gch(o) (&(o)->gch) - -/* macros to convert a GCObject into a specific value */ -#define rawgco2ts(o) \ - check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts)) -#define gco2ts(o) (&rawgco2ts(o)->tsv) -#define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u)) -#define gco2u(o) (&rawgco2u(o)->uv) -#define gco2lcl(o) check_exp((o)->gch.tt == LUA_TLCL, &((o)->cl.l)) -#define gco2ccl(o) check_exp((o)->gch.tt == LUA_TCCL, &((o)->cl.c)) -#define gco2cl(o) \ - check_exp(novariant((o)->gch.tt) == LUA_TFUNCTION, &((o)->cl)) -#define gco2t(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h)) -#define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p)) -#define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv)) -#define gco2th(o) check_exp((o)->gch.tt == LUA_TTHREAD, &((o)->th)) - -/* macro to convert any Lua object into a GCObject */ -#define obj2gco(v) (cast(GCObject *, (v))) - - -/* actual number of total bytes allocated */ -#define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) - -LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); -LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); -LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); -LUAI_FUNC void luaE_freeCI (lua_State *L); - - -#endif - diff --git a/btgui/lua-5.2.3/src/lstring.c b/btgui/lua-5.2.3/src/lstring.c deleted file mode 100644 index af96c89c1..000000000 --- a/btgui/lua-5.2.3/src/lstring.c +++ /dev/null @@ -1,185 +0,0 @@ -/* -** $Id: lstring.c,v 2.26.1.1 2013/04/12 18:48:47 roberto Exp $ -** String table (keeps all strings handled by Lua) -** See Copyright Notice in lua.h -*/ - - -#include - -#define lstring_c -#define LUA_CORE - -#include "lua.h" - -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" - - -/* -** Lua will use at most ~(2^LUAI_HASHLIMIT) bytes from a string to -** compute its hash -*/ -#if !defined(LUAI_HASHLIMIT) -#define LUAI_HASHLIMIT 5 -#endif - - -/* -** equality for long strings -*/ -int luaS_eqlngstr (TString *a, TString *b) { - size_t len = a->tsv.len; - lua_assert(a->tsv.tt == LUA_TLNGSTR && b->tsv.tt == LUA_TLNGSTR); - return (a == b) || /* same instance or... */ - ((len == b->tsv.len) && /* equal length and ... */ - (memcmp(getstr(a), getstr(b), len) == 0)); /* equal contents */ -} - - -/* -** equality for strings -*/ -int luaS_eqstr (TString *a, TString *b) { - return (a->tsv.tt == b->tsv.tt) && - (a->tsv.tt == LUA_TSHRSTR ? eqshrstr(a, b) : luaS_eqlngstr(a, b)); -} - - -unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { - unsigned int h = seed ^ cast(unsigned int, l); - size_t l1; - size_t step = (l >> LUAI_HASHLIMIT) + 1; - for (l1 = l; l1 >= step; l1 -= step) - h = h ^ ((h<<5) + (h>>2) + cast_byte(str[l1 - 1])); - return h; -} - - -/* -** resizes the string table -*/ -void luaS_resize (lua_State *L, int newsize) { - int i; - stringtable *tb = &G(L)->strt; - /* cannot resize while GC is traversing strings */ - luaC_runtilstate(L, ~bitmask(GCSsweepstring)); - if (newsize > tb->size) { - luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); - for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; - } - /* rehash */ - for (i=0; isize; i++) { - GCObject *p = tb->hash[i]; - tb->hash[i] = NULL; - while (p) { /* for each node in the list */ - GCObject *next = gch(p)->next; /* save next */ - unsigned int h = lmod(gco2ts(p)->hash, newsize); /* new position */ - gch(p)->next = tb->hash[h]; /* chain it */ - tb->hash[h] = p; - resetoldbit(p); /* see MOVE OLD rule */ - p = next; - } - } - if (newsize < tb->size) { - /* shrinking slice must be empty */ - lua_assert(tb->hash[newsize] == NULL && tb->hash[tb->size - 1] == NULL); - luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); - } - tb->size = newsize; -} - - -/* -** creates a new string object -*/ -static TString *createstrobj (lua_State *L, const char *str, size_t l, - int tag, unsigned int h, GCObject **list) { - TString *ts; - size_t totalsize; /* total size of TString object */ - totalsize = sizeof(TString) + ((l + 1) * sizeof(char)); - ts = &luaC_newobj(L, tag, totalsize, list, 0)->ts; - ts->tsv.len = l; - ts->tsv.hash = h; - ts->tsv.extra = 0; - memcpy(ts+1, str, l*sizeof(char)); - ((char *)(ts+1))[l] = '\0'; /* ending 0 */ - return ts; -} - - -/* -** creates a new short string, inserting it into string table -*/ -static TString *newshrstr (lua_State *L, const char *str, size_t l, - unsigned int h) { - GCObject **list; /* (pointer to) list where it will be inserted */ - stringtable *tb = &G(L)->strt; - TString *s; - if (tb->nuse >= cast(lu_int32, tb->size) && tb->size <= MAX_INT/2) - luaS_resize(L, tb->size*2); /* too crowded */ - list = &tb->hash[lmod(h, tb->size)]; - s = createstrobj(L, str, l, LUA_TSHRSTR, h, list); - tb->nuse++; - return s; -} - - -/* -** checks whether short string exists and reuses it or creates a new one -*/ -static TString *internshrstr (lua_State *L, const char *str, size_t l) { - GCObject *o; - global_State *g = G(L); - unsigned int h = luaS_hash(str, l, g->seed); - for (o = g->strt.hash[lmod(h, g->strt.size)]; - o != NULL; - o = gch(o)->next) { - TString *ts = rawgco2ts(o); - if (h == ts->tsv.hash && - l == ts->tsv.len && - (memcmp(str, getstr(ts), l * sizeof(char)) == 0)) { - if (isdead(G(L), o)) /* string is dead (but was not collected yet)? */ - changewhite(o); /* resurrect it */ - return ts; - } - } - return newshrstr(L, str, l, h); /* not found; create a new string */ -} - - -/* -** new string (with explicit length) -*/ -TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { - if (l <= LUAI_MAXSHORTLEN) /* short string? */ - return internshrstr(L, str, l); - else { - if (l + 1 > (MAX_SIZET - sizeof(TString))/sizeof(char)) - luaM_toobig(L); - return createstrobj(L, str, l, LUA_TLNGSTR, G(L)->seed, NULL); - } -} - - -/* -** new zero-terminated string -*/ -TString *luaS_new (lua_State *L, const char *str) { - return luaS_newlstr(L, str, strlen(str)); -} - - -Udata *luaS_newudata (lua_State *L, size_t s, Table *e) { - Udata *u; - if (s > MAX_SIZET - sizeof(Udata)) - luaM_toobig(L); - u = &luaC_newobj(L, LUA_TUSERDATA, sizeof(Udata) + s, NULL, 0)->u; - u->uv.len = s; - u->uv.metatable = NULL; - u->uv.env = e; - return u; -} - diff --git a/btgui/lua-5.2.3/src/lstring.h b/btgui/lua-5.2.3/src/lstring.h deleted file mode 100644 index 260e7f169..000000000 --- a/btgui/lua-5.2.3/src/lstring.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -** $Id: lstring.h,v 1.49.1.1 2013/04/12 18:48:47 roberto Exp $ -** String table (keep all strings handled by Lua) -** See Copyright Notice in lua.h -*/ - -#ifndef lstring_h -#define lstring_h - -#include "lgc.h" -#include "lobject.h" -#include "lstate.h" - - -#define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) - -#define sizeudata(u) (sizeof(union Udata)+(u)->len) - -#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ - (sizeof(s)/sizeof(char))-1)) - -#define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) - - -/* -** test whether a string is a reserved word -*/ -#define isreserved(s) ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0) - - -/* -** equality for short strings, which are always internalized -*/ -#define eqshrstr(a,b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) - - -LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); -LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); -LUAI_FUNC int luaS_eqstr (TString *a, TString *b); -LUAI_FUNC void luaS_resize (lua_State *L, int newsize); -LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); -LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); -LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); - - -#endif diff --git a/btgui/lua-5.2.3/src/lstrlib.c b/btgui/lua-5.2.3/src/lstrlib.c deleted file mode 100644 index 9261fd220..000000000 --- a/btgui/lua-5.2.3/src/lstrlib.c +++ /dev/null @@ -1,1019 +0,0 @@ -/* -** $Id: lstrlib.c,v 1.178.1.1 2013/04/12 18:48:47 roberto Exp $ -** Standard library for string operations and pattern-matching -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include -#include -#include - -#define lstrlib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -/* -** maximum number of captures that a pattern can do during -** pattern-matching. This limit is arbitrary. -*/ -#if !defined(LUA_MAXCAPTURES) -#define LUA_MAXCAPTURES 32 -#endif - - -/* macro to `unsign' a character */ -#define uchar(c) ((unsigned char)(c)) - - - -static int str_len (lua_State *L) { - size_t l; - luaL_checklstring(L, 1, &l); - lua_pushinteger(L, (lua_Integer)l); - return 1; -} - - -/* translate a relative string position: negative means back from end */ -static size_t posrelat (ptrdiff_t pos, size_t len) { - if (pos >= 0) return (size_t)pos; - else if (0u - (size_t)pos > len) return 0; - else return len - ((size_t)-pos) + 1; -} - - -static int str_sub (lua_State *L) { - size_t l; - const char *s = luaL_checklstring(L, 1, &l); - size_t start = posrelat(luaL_checkinteger(L, 2), l); - size_t end = posrelat(luaL_optinteger(L, 3, -1), l); - if (start < 1) start = 1; - if (end > l) end = l; - if (start <= end) - lua_pushlstring(L, s + start - 1, end - start + 1); - else lua_pushliteral(L, ""); - return 1; -} - - -static int str_reverse (lua_State *L) { - size_t l, i; - luaL_Buffer b; - const char *s = luaL_checklstring(L, 1, &l); - char *p = luaL_buffinitsize(L, &b, l); - for (i = 0; i < l; i++) - p[i] = s[l - i - 1]; - luaL_pushresultsize(&b, l); - return 1; -} - - -static int str_lower (lua_State *L) { - size_t l; - size_t i; - luaL_Buffer b; - const char *s = luaL_checklstring(L, 1, &l); - char *p = luaL_buffinitsize(L, &b, l); - for (i=0; i> 1) - -static int str_rep (lua_State *L) { - size_t l, lsep; - const char *s = luaL_checklstring(L, 1, &l); - int n = luaL_checkint(L, 2); - const char *sep = luaL_optlstring(L, 3, "", &lsep); - if (n <= 0) lua_pushliteral(L, ""); - else if (l + lsep < l || l + lsep >= MAXSIZE / n) /* may overflow? */ - return luaL_error(L, "resulting string too large"); - else { - size_t totallen = n * l + (n - 1) * lsep; - luaL_Buffer b; - char *p = luaL_buffinitsize(L, &b, totallen); - while (n-- > 1) { /* first n-1 copies (followed by separator) */ - memcpy(p, s, l * sizeof(char)); p += l; - if (lsep > 0) { /* avoid empty 'memcpy' (may be expensive) */ - memcpy(p, sep, lsep * sizeof(char)); p += lsep; - } - } - memcpy(p, s, l * sizeof(char)); /* last copy (not followed by separator) */ - luaL_pushresultsize(&b, totallen); - } - return 1; -} - - -static int str_byte (lua_State *L) { - size_t l; - const char *s = luaL_checklstring(L, 1, &l); - size_t posi = posrelat(luaL_optinteger(L, 2, 1), l); - size_t pose = posrelat(luaL_optinteger(L, 3, posi), l); - int n, i; - if (posi < 1) posi = 1; - if (pose > l) pose = l; - if (posi > pose) return 0; /* empty interval; return no values */ - n = (int)(pose - posi + 1); - if (posi + n <= pose) /* (size_t -> int) overflow? */ - return luaL_error(L, "string slice too long"); - luaL_checkstack(L, n, "string slice too long"); - for (i=0; i= ms->level || ms->capture[l].len == CAP_UNFINISHED) - return luaL_error(ms->L, "invalid capture index %%%d", l + 1); - return l; -} - - -static int capture_to_close (MatchState *ms) { - int level = ms->level; - for (level--; level>=0; level--) - if (ms->capture[level].len == CAP_UNFINISHED) return level; - return luaL_error(ms->L, "invalid pattern capture"); -} - - -static const char *classend (MatchState *ms, const char *p) { - switch (*p++) { - case L_ESC: { - if (p == ms->p_end) - luaL_error(ms->L, "malformed pattern (ends with " LUA_QL("%%") ")"); - return p+1; - } - case '[': { - if (*p == '^') p++; - do { /* look for a `]' */ - if (p == ms->p_end) - luaL_error(ms->L, "malformed pattern (missing " LUA_QL("]") ")"); - if (*(p++) == L_ESC && p < ms->p_end) - p++; /* skip escapes (e.g. `%]') */ - } while (*p != ']'); - return p+1; - } - default: { - return p; - } - } -} - - -static int match_class (int c, int cl) { - int res; - switch (tolower(cl)) { - case 'a' : res = isalpha(c); break; - case 'c' : res = iscntrl(c); break; - case 'd' : res = isdigit(c); break; - case 'g' : res = isgraph(c); break; - case 'l' : res = islower(c); break; - case 'p' : res = ispunct(c); break; - case 's' : res = isspace(c); break; - case 'u' : res = isupper(c); break; - case 'w' : res = isalnum(c); break; - case 'x' : res = isxdigit(c); break; - case 'z' : res = (c == 0); break; /* deprecated option */ - default: return (cl == c); - } - return (islower(cl) ? res : !res); -} - - -static int matchbracketclass (int c, const char *p, const char *ec) { - int sig = 1; - if (*(p+1) == '^') { - sig = 0; - p++; /* skip the `^' */ - } - while (++p < ec) { - if (*p == L_ESC) { - p++; - if (match_class(c, uchar(*p))) - return sig; - } - else if ((*(p+1) == '-') && (p+2 < ec)) { - p+=2; - if (uchar(*(p-2)) <= c && c <= uchar(*p)) - return sig; - } - else if (uchar(*p) == c) return sig; - } - return !sig; -} - - -static int singlematch (MatchState *ms, const char *s, const char *p, - const char *ep) { - if (s >= ms->src_end) - return 0; - else { - int c = uchar(*s); - switch (*p) { - case '.': return 1; /* matches any char */ - case L_ESC: return match_class(c, uchar(*(p+1))); - case '[': return matchbracketclass(c, p, ep-1); - default: return (uchar(*p) == c); - } - } -} - - -static const char *matchbalance (MatchState *ms, const char *s, - const char *p) { - if (p >= ms->p_end - 1) - luaL_error(ms->L, "malformed pattern " - "(missing arguments to " LUA_QL("%%b") ")"); - if (*s != *p) return NULL; - else { - int b = *p; - int e = *(p+1); - int cont = 1; - while (++s < ms->src_end) { - if (*s == e) { - if (--cont == 0) return s+1; - } - else if (*s == b) cont++; - } - } - return NULL; /* string ends out of balance */ -} - - -static const char *max_expand (MatchState *ms, const char *s, - const char *p, const char *ep) { - ptrdiff_t i = 0; /* counts maximum expand for item */ - while (singlematch(ms, s + i, p, ep)) - i++; - /* keeps trying to match with the maximum repetitions */ - while (i>=0) { - const char *res = match(ms, (s+i), ep+1); - if (res) return res; - i--; /* else didn't match; reduce 1 repetition to try again */ - } - return NULL; -} - - -static const char *min_expand (MatchState *ms, const char *s, - const char *p, const char *ep) { - for (;;) { - const char *res = match(ms, s, ep+1); - if (res != NULL) - return res; - else if (singlematch(ms, s, p, ep)) - s++; /* try with one more repetition */ - else return NULL; - } -} - - -static const char *start_capture (MatchState *ms, const char *s, - const char *p, int what) { - const char *res; - int level = ms->level; - if (level >= LUA_MAXCAPTURES) luaL_error(ms->L, "too many captures"); - ms->capture[level].init = s; - ms->capture[level].len = what; - ms->level = level+1; - if ((res=match(ms, s, p)) == NULL) /* match failed? */ - ms->level--; /* undo capture */ - return res; -} - - -static const char *end_capture (MatchState *ms, const char *s, - const char *p) { - int l = capture_to_close(ms); - const char *res; - ms->capture[l].len = s - ms->capture[l].init; /* close capture */ - if ((res = match(ms, s, p)) == NULL) /* match failed? */ - ms->capture[l].len = CAP_UNFINISHED; /* undo capture */ - return res; -} - - -static const char *match_capture (MatchState *ms, const char *s, int l) { - size_t len; - l = check_capture(ms, l); - len = ms->capture[l].len; - if ((size_t)(ms->src_end-s) >= len && - memcmp(ms->capture[l].init, s, len) == 0) - return s+len; - else return NULL; -} - - -static const char *match (MatchState *ms, const char *s, const char *p) { - if (ms->matchdepth-- == 0) - luaL_error(ms->L, "pattern too complex"); - init: /* using goto's to optimize tail recursion */ - if (p != ms->p_end) { /* end of pattern? */ - switch (*p) { - case '(': { /* start capture */ - if (*(p + 1) == ')') /* position capture? */ - s = start_capture(ms, s, p + 2, CAP_POSITION); - else - s = start_capture(ms, s, p + 1, CAP_UNFINISHED); - break; - } - case ')': { /* end capture */ - s = end_capture(ms, s, p + 1); - break; - } - case '$': { - if ((p + 1) != ms->p_end) /* is the `$' the last char in pattern? */ - goto dflt; /* no; go to default */ - s = (s == ms->src_end) ? s : NULL; /* check end of string */ - break; - } - case L_ESC: { /* escaped sequences not in the format class[*+?-]? */ - switch (*(p + 1)) { - case 'b': { /* balanced string? */ - s = matchbalance(ms, s, p + 2); - if (s != NULL) { - p += 4; goto init; /* return match(ms, s, p + 4); */ - } /* else fail (s == NULL) */ - break; - } - case 'f': { /* frontier? */ - const char *ep; char previous; - p += 2; - if (*p != '[') - luaL_error(ms->L, "missing " LUA_QL("[") " after " - LUA_QL("%%f") " in pattern"); - ep = classend(ms, p); /* points to what is next */ - previous = (s == ms->src_init) ? '\0' : *(s - 1); - if (!matchbracketclass(uchar(previous), p, ep - 1) && - matchbracketclass(uchar(*s), p, ep - 1)) { - p = ep; goto init; /* return match(ms, s, ep); */ - } - s = NULL; /* match failed */ - break; - } - case '0': case '1': case '2': case '3': - case '4': case '5': case '6': case '7': - case '8': case '9': { /* capture results (%0-%9)? */ - s = match_capture(ms, s, uchar(*(p + 1))); - if (s != NULL) { - p += 2; goto init; /* return match(ms, s, p + 2) */ - } - break; - } - default: goto dflt; - } - break; - } - default: dflt: { /* pattern class plus optional suffix */ - const char *ep = classend(ms, p); /* points to optional suffix */ - /* does not match at least once? */ - if (!singlematch(ms, s, p, ep)) { - if (*ep == '*' || *ep == '?' || *ep == '-') { /* accept empty? */ - p = ep + 1; goto init; /* return match(ms, s, ep + 1); */ - } - else /* '+' or no suffix */ - s = NULL; /* fail */ - } - else { /* matched once */ - switch (*ep) { /* handle optional suffix */ - case '?': { /* optional */ - const char *res; - if ((res = match(ms, s + 1, ep + 1)) != NULL) - s = res; - else { - p = ep + 1; goto init; /* else return match(ms, s, ep + 1); */ - } - break; - } - case '+': /* 1 or more repetitions */ - s++; /* 1 match already done */ - /* go through */ - case '*': /* 0 or more repetitions */ - s = max_expand(ms, s, p, ep); - break; - case '-': /* 0 or more repetitions (minimum) */ - s = min_expand(ms, s, p, ep); - break; - default: /* no suffix */ - s++; p = ep; goto init; /* return match(ms, s + 1, ep); */ - } - } - break; - } - } - } - ms->matchdepth++; - return s; -} - - - -static const char *lmemfind (const char *s1, size_t l1, - const char *s2, size_t l2) { - if (l2 == 0) return s1; /* empty strings are everywhere */ - else if (l2 > l1) return NULL; /* avoids a negative `l1' */ - else { - const char *init; /* to search for a `*s2' inside `s1' */ - l2--; /* 1st char will be checked by `memchr' */ - l1 = l1-l2; /* `s2' cannot be found after that */ - while (l1 > 0 && (init = (const char *)memchr(s1, *s2, l1)) != NULL) { - init++; /* 1st char is already checked */ - if (memcmp(init, s2+1, l2) == 0) - return init-1; - else { /* correct `l1' and `s1' to try again */ - l1 -= init-s1; - s1 = init; - } - } - return NULL; /* not found */ - } -} - - -static void push_onecapture (MatchState *ms, int i, const char *s, - const char *e) { - if (i >= ms->level) { - if (i == 0) /* ms->level == 0, too */ - lua_pushlstring(ms->L, s, e - s); /* add whole match */ - else - luaL_error(ms->L, "invalid capture index"); - } - else { - ptrdiff_t l = ms->capture[i].len; - if (l == CAP_UNFINISHED) luaL_error(ms->L, "unfinished capture"); - if (l == CAP_POSITION) - lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1); - else - lua_pushlstring(ms->L, ms->capture[i].init, l); - } -} - - -static int push_captures (MatchState *ms, const char *s, const char *e) { - int i; - int nlevels = (ms->level == 0 && s) ? 1 : ms->level; - luaL_checkstack(ms->L, nlevels, "too many captures"); - for (i = 0; i < nlevels; i++) - push_onecapture(ms, i, s, e); - return nlevels; /* number of strings pushed */ -} - - -/* check whether pattern has no special characters */ -static int nospecials (const char *p, size_t l) { - size_t upto = 0; - do { - if (strpbrk(p + upto, SPECIALS)) - return 0; /* pattern has a special character */ - upto += strlen(p + upto) + 1; /* may have more after \0 */ - } while (upto <= l); - return 1; /* no special chars found */ -} - - -static int str_find_aux (lua_State *L, int find) { - size_t ls, lp; - const char *s = luaL_checklstring(L, 1, &ls); - const char *p = luaL_checklstring(L, 2, &lp); - size_t init = posrelat(luaL_optinteger(L, 3, 1), ls); - if (init < 1) init = 1; - else if (init > ls + 1) { /* start after string's end? */ - lua_pushnil(L); /* cannot find anything */ - return 1; - } - /* explicit request or no special characters? */ - if (find && (lua_toboolean(L, 4) || nospecials(p, lp))) { - /* do a plain search */ - const char *s2 = lmemfind(s + init - 1, ls - init + 1, p, lp); - if (s2) { - lua_pushinteger(L, s2 - s + 1); - lua_pushinteger(L, s2 - s + lp); - return 2; - } - } - else { - MatchState ms; - const char *s1 = s + init - 1; - int anchor = (*p == '^'); - if (anchor) { - p++; lp--; /* skip anchor character */ - } - ms.L = L; - ms.matchdepth = MAXCCALLS; - ms.src_init = s; - ms.src_end = s + ls; - ms.p_end = p + lp; - do { - const char *res; - ms.level = 0; - lua_assert(ms.matchdepth == MAXCCALLS); - if ((res=match(&ms, s1, p)) != NULL) { - if (find) { - lua_pushinteger(L, s1 - s + 1); /* start */ - lua_pushinteger(L, res - s); /* end */ - return push_captures(&ms, NULL, 0) + 2; - } - else - return push_captures(&ms, s1, res); - } - } while (s1++ < ms.src_end && !anchor); - } - lua_pushnil(L); /* not found */ - return 1; -} - - -static int str_find (lua_State *L) { - return str_find_aux(L, 1); -} - - -static int str_match (lua_State *L) { - return str_find_aux(L, 0); -} - - -static int gmatch_aux (lua_State *L) { - MatchState ms; - size_t ls, lp; - const char *s = lua_tolstring(L, lua_upvalueindex(1), &ls); - const char *p = lua_tolstring(L, lua_upvalueindex(2), &lp); - const char *src; - ms.L = L; - ms.matchdepth = MAXCCALLS; - ms.src_init = s; - ms.src_end = s+ls; - ms.p_end = p + lp; - for (src = s + (size_t)lua_tointeger(L, lua_upvalueindex(3)); - src <= ms.src_end; - src++) { - const char *e; - ms.level = 0; - lua_assert(ms.matchdepth == MAXCCALLS); - if ((e = match(&ms, src, p)) != NULL) { - lua_Integer newstart = e-s; - if (e == src) newstart++; /* empty match? go at least one position */ - lua_pushinteger(L, newstart); - lua_replace(L, lua_upvalueindex(3)); - return push_captures(&ms, src, e); - } - } - return 0; /* not found */ -} - - -static int gmatch (lua_State *L) { - luaL_checkstring(L, 1); - luaL_checkstring(L, 2); - lua_settop(L, 2); - lua_pushinteger(L, 0); - lua_pushcclosure(L, gmatch_aux, 3); - return 1; -} - - -static void add_s (MatchState *ms, luaL_Buffer *b, const char *s, - const char *e) { - size_t l, i; - const char *news = lua_tolstring(ms->L, 3, &l); - for (i = 0; i < l; i++) { - if (news[i] != L_ESC) - luaL_addchar(b, news[i]); - else { - i++; /* skip ESC */ - if (!isdigit(uchar(news[i]))) { - if (news[i] != L_ESC) - luaL_error(ms->L, "invalid use of " LUA_QL("%c") - " in replacement string", L_ESC); - luaL_addchar(b, news[i]); - } - else if (news[i] == '0') - luaL_addlstring(b, s, e - s); - else { - push_onecapture(ms, news[i] - '1', s, e); - luaL_addvalue(b); /* add capture to accumulated result */ - } - } - } -} - - -static void add_value (MatchState *ms, luaL_Buffer *b, const char *s, - const char *e, int tr) { - lua_State *L = ms->L; - switch (tr) { - case LUA_TFUNCTION: { - int n; - lua_pushvalue(L, 3); - n = push_captures(ms, s, e); - lua_call(L, n, 1); - break; - } - case LUA_TTABLE: { - push_onecapture(ms, 0, s, e); - lua_gettable(L, 3); - break; - } - default: { /* LUA_TNUMBER or LUA_TSTRING */ - add_s(ms, b, s, e); - return; - } - } - if (!lua_toboolean(L, -1)) { /* nil or false? */ - lua_pop(L, 1); - lua_pushlstring(L, s, e - s); /* keep original text */ - } - else if (!lua_isstring(L, -1)) - luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1)); - luaL_addvalue(b); /* add result to accumulator */ -} - - -static int str_gsub (lua_State *L) { - size_t srcl, lp; - const char *src = luaL_checklstring(L, 1, &srcl); - const char *p = luaL_checklstring(L, 2, &lp); - int tr = lua_type(L, 3); - size_t max_s = luaL_optinteger(L, 4, srcl+1); - int anchor = (*p == '^'); - size_t n = 0; - MatchState ms; - luaL_Buffer b; - luaL_argcheck(L, tr == LUA_TNUMBER || tr == LUA_TSTRING || - tr == LUA_TFUNCTION || tr == LUA_TTABLE, 3, - "string/function/table expected"); - luaL_buffinit(L, &b); - if (anchor) { - p++; lp--; /* skip anchor character */ - } - ms.L = L; - ms.matchdepth = MAXCCALLS; - ms.src_init = src; - ms.src_end = src+srcl; - ms.p_end = p + lp; - while (n < max_s) { - const char *e; - ms.level = 0; - lua_assert(ms.matchdepth == MAXCCALLS); - e = match(&ms, src, p); - if (e) { - n++; - add_value(&ms, &b, src, e, tr); - } - if (e && e>src) /* non empty match? */ - src = e; /* skip it */ - else if (src < ms.src_end) - luaL_addchar(&b, *src++); - else break; - if (anchor) break; - } - luaL_addlstring(&b, src, ms.src_end-src); - luaL_pushresult(&b); - lua_pushinteger(L, n); /* number of substitutions */ - return 2; -} - -/* }====================================================== */ - - - -/* -** {====================================================== -** STRING FORMAT -** ======================================================= -*/ - -/* -** LUA_INTFRMLEN is the length modifier for integer conversions in -** 'string.format'; LUA_INTFRM_T is the integer type corresponding to -** the previous length -*/ -#if !defined(LUA_INTFRMLEN) /* { */ -#if defined(LUA_USE_LONGLONG) - -#define LUA_INTFRMLEN "ll" -#define LUA_INTFRM_T long long - -#else - -#define LUA_INTFRMLEN "l" -#define LUA_INTFRM_T long - -#endif -#endif /* } */ - - -/* -** LUA_FLTFRMLEN is the length modifier for float conversions in -** 'string.format'; LUA_FLTFRM_T is the float type corresponding to -** the previous length -*/ -#if !defined(LUA_FLTFRMLEN) - -#define LUA_FLTFRMLEN "" -#define LUA_FLTFRM_T double - -#endif - - -/* maximum size of each formatted item (> len(format('%99.99f', -1e308))) */ -#define MAX_ITEM 512 -/* valid flags in a format specification */ -#define FLAGS "-+ #0" -/* -** maximum size of each format specification (such as '%-099.99d') -** (+10 accounts for %99.99x plus margin of error) -*/ -#define MAX_FORMAT (sizeof(FLAGS) + sizeof(LUA_INTFRMLEN) + 10) - - -static void addquoted (lua_State *L, luaL_Buffer *b, int arg) { - size_t l; - const char *s = luaL_checklstring(L, arg, &l); - luaL_addchar(b, '"'); - while (l--) { - if (*s == '"' || *s == '\\' || *s == '\n') { - luaL_addchar(b, '\\'); - luaL_addchar(b, *s); - } - else if (*s == '\0' || iscntrl(uchar(*s))) { - char buff[10]; - if (!isdigit(uchar(*(s+1)))) - sprintf(buff, "\\%d", (int)uchar(*s)); - else - sprintf(buff, "\\%03d", (int)uchar(*s)); - luaL_addstring(b, buff); - } - else - luaL_addchar(b, *s); - s++; - } - luaL_addchar(b, '"'); -} - -static const char *scanformat (lua_State *L, const char *strfrmt, char *form) { - const char *p = strfrmt; - while (*p != '\0' && strchr(FLAGS, *p) != NULL) p++; /* skip flags */ - if ((size_t)(p - strfrmt) >= sizeof(FLAGS)/sizeof(char)) - luaL_error(L, "invalid format (repeated flags)"); - if (isdigit(uchar(*p))) p++; /* skip width */ - if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ - if (*p == '.') { - p++; - if (isdigit(uchar(*p))) p++; /* skip precision */ - if (isdigit(uchar(*p))) p++; /* (2 digits at most) */ - } - if (isdigit(uchar(*p))) - luaL_error(L, "invalid format (width or precision too long)"); - *(form++) = '%'; - memcpy(form, strfrmt, (p - strfrmt + 1) * sizeof(char)); - form += p - strfrmt + 1; - *form = '\0'; - return p; -} - - -/* -** add length modifier into formats -*/ -static void addlenmod (char *form, const char *lenmod) { - size_t l = strlen(form); - size_t lm = strlen(lenmod); - char spec = form[l - 1]; - strcpy(form + l - 1, lenmod); - form[l + lm - 1] = spec; - form[l + lm] = '\0'; -} - - -static int str_format (lua_State *L) { - int top = lua_gettop(L); - int arg = 1; - size_t sfl; - const char *strfrmt = luaL_checklstring(L, arg, &sfl); - const char *strfrmt_end = strfrmt+sfl; - luaL_Buffer b; - luaL_buffinit(L, &b); - while (strfrmt < strfrmt_end) { - if (*strfrmt != L_ESC) - luaL_addchar(&b, *strfrmt++); - else if (*++strfrmt == L_ESC) - luaL_addchar(&b, *strfrmt++); /* %% */ - else { /* format item */ - char form[MAX_FORMAT]; /* to store the format (`%...') */ - char *buff = luaL_prepbuffsize(&b, MAX_ITEM); /* to put formatted item */ - int nb = 0; /* number of bytes in added item */ - if (++arg > top) - luaL_argerror(L, arg, "no value"); - strfrmt = scanformat(L, strfrmt, form); - switch (*strfrmt++) { - case 'c': { - nb = sprintf(buff, form, luaL_checkint(L, arg)); - break; - } - case 'd': case 'i': { - lua_Number n = luaL_checknumber(L, arg); - LUA_INTFRM_T ni = (LUA_INTFRM_T)n; - lua_Number diff = n - (lua_Number)ni; - luaL_argcheck(L, -1 < diff && diff < 1, arg, - "not a number in proper range"); - addlenmod(form, LUA_INTFRMLEN); - nb = sprintf(buff, form, ni); - break; - } - case 'o': case 'u': case 'x': case 'X': { - lua_Number n = luaL_checknumber(L, arg); - unsigned LUA_INTFRM_T ni = (unsigned LUA_INTFRM_T)n; - lua_Number diff = n - (lua_Number)ni; - luaL_argcheck(L, -1 < diff && diff < 1, arg, - "not a non-negative number in proper range"); - addlenmod(form, LUA_INTFRMLEN); - nb = sprintf(buff, form, ni); - break; - } - case 'e': case 'E': case 'f': -#if defined(LUA_USE_AFORMAT) - case 'a': case 'A': -#endif - case 'g': case 'G': { - addlenmod(form, LUA_FLTFRMLEN); - nb = sprintf(buff, form, (LUA_FLTFRM_T)luaL_checknumber(L, arg)); - break; - } - case 'q': { - addquoted(L, &b, arg); - break; - } - case 's': { - size_t l; - const char *s = luaL_tolstring(L, arg, &l); - if (!strchr(form, '.') && l >= 100) { - /* no precision and string is too long to be formatted; - keep original string */ - luaL_addvalue(&b); - break; - } - else { - nb = sprintf(buff, form, s); - lua_pop(L, 1); /* remove result from 'luaL_tolstring' */ - break; - } - } - default: { /* also treat cases `pnLlh' */ - return luaL_error(L, "invalid option " LUA_QL("%%%c") " to " - LUA_QL("format"), *(strfrmt - 1)); - } - } - luaL_addsize(&b, nb); - } - } - luaL_pushresult(&b); - return 1; -} - -/* }====================================================== */ - - -static const luaL_Reg strlib[] = { - {"byte", str_byte}, - {"char", str_char}, - {"dump", str_dump}, - {"find", str_find}, - {"format", str_format}, - {"gmatch", gmatch}, - {"gsub", str_gsub}, - {"len", str_len}, - {"lower", str_lower}, - {"match", str_match}, - {"rep", str_rep}, - {"reverse", str_reverse}, - {"sub", str_sub}, - {"upper", str_upper}, - {NULL, NULL} -}; - - -static void createmetatable (lua_State *L) { - lua_createtable(L, 0, 1); /* table to be metatable for strings */ - lua_pushliteral(L, ""); /* dummy string */ - lua_pushvalue(L, -2); /* copy table */ - lua_setmetatable(L, -2); /* set table as metatable for strings */ - lua_pop(L, 1); /* pop dummy string */ - lua_pushvalue(L, -2); /* get string library */ - lua_setfield(L, -2, "__index"); /* metatable.__index = string */ - lua_pop(L, 1); /* pop metatable */ -} - - -/* -** Open string library -*/ -LUAMOD_API int luaopen_string (lua_State *L) { - luaL_newlib(L, strlib); - createmetatable(L); - return 1; -} - diff --git a/btgui/lua-5.2.3/src/ltable.c b/btgui/lua-5.2.3/src/ltable.c deleted file mode 100644 index 5d76f97ec..000000000 --- a/btgui/lua-5.2.3/src/ltable.c +++ /dev/null @@ -1,588 +0,0 @@ -/* -** $Id: ltable.c,v 2.72.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua tables (hash) -** See Copyright Notice in lua.h -*/ - - -/* -** Implementation of tables (aka arrays, objects, or hash tables). -** Tables keep its elements in two parts: an array part and a hash part. -** Non-negative integer keys are all candidates to be kept in the array -** part. The actual size of the array is the largest `n' such that at -** least half the slots between 0 and n are in use. -** Hash uses a mix of chained scatter table with Brent's variation. -** A main invariant of these tables is that, if an element is not -** in its main position (i.e. the `original' position that its hash gives -** to it), then the colliding element is in its own main position. -** Hence even when the load factor reaches 100%, performance remains good. -*/ - -#include - -#define ltable_c -#define LUA_CORE - -#include "lua.h" - -#include "ldebug.h" -#include "ldo.h" -#include "lgc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "lvm.h" - - -/* -** max size of array part is 2^MAXBITS -*/ -#if LUAI_BITSINT >= 32 -#define MAXBITS 30 -#else -#define MAXBITS (LUAI_BITSINT-2) -#endif - -#define MAXASIZE (1 << MAXBITS) - - -#define hashpow2(t,n) (gnode(t, lmod((n), sizenode(t)))) - -#define hashstr(t,str) hashpow2(t, (str)->tsv.hash) -#define hashboolean(t,p) hashpow2(t, p) - - -/* -** for some types, it is better to avoid modulus by power of 2, as -** they tend to have many 2 factors. -*/ -#define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) - - -#define hashpointer(t,p) hashmod(t, IntPoint(p)) - - -#define dummynode (&dummynode_) - -#define isdummy(n) ((n) == dummynode) - -static const Node dummynode_ = { - {NILCONSTANT}, /* value */ - {{NILCONSTANT, NULL}} /* key */ -}; - - -/* -** hash for lua_Numbers -*/ -static Node *hashnum (const Table *t, lua_Number n) { - int i; - luai_hashnum(i, n); - if (i < 0) { - if (cast(unsigned int, i) == 0u - i) /* use unsigned to avoid overflows */ - i = 0; /* handle INT_MIN */ - i = -i; /* must be a positive value */ - } - return hashmod(t, i); -} - - - -/* -** returns the `main' position of an element in a table (that is, the index -** of its hash value) -*/ -static Node *mainposition (const Table *t, const TValue *key) { - switch (ttype(key)) { - case LUA_TNUMBER: - return hashnum(t, nvalue(key)); - case LUA_TLNGSTR: { - TString *s = rawtsvalue(key); - if (s->tsv.extra == 0) { /* no hash? */ - s->tsv.hash = luaS_hash(getstr(s), s->tsv.len, s->tsv.hash); - s->tsv.extra = 1; /* now it has its hash */ - } - return hashstr(t, rawtsvalue(key)); - } - case LUA_TSHRSTR: - return hashstr(t, rawtsvalue(key)); - case LUA_TBOOLEAN: - return hashboolean(t, bvalue(key)); - case LUA_TLIGHTUSERDATA: - return hashpointer(t, pvalue(key)); - case LUA_TLCF: - return hashpointer(t, fvalue(key)); - default: - return hashpointer(t, gcvalue(key)); - } -} - - -/* -** returns the index for `key' if `key' is an appropriate key to live in -** the array part of the table, -1 otherwise. -*/ -static int arrayindex (const TValue *key) { - if (ttisnumber(key)) { - lua_Number n = nvalue(key); - int k; - lua_number2int(k, n); - if (luai_numeq(cast_num(k), n)) - return k; - } - return -1; /* `key' did not match some condition */ -} - - -/* -** returns the index of a `key' for table traversals. First goes all -** elements in the array part, then elements in the hash part. The -** beginning of a traversal is signaled by -1. -*/ -static int findindex (lua_State *L, Table *t, StkId key) { - int i; - if (ttisnil(key)) return -1; /* first iteration */ - i = arrayindex(key); - if (0 < i && i <= t->sizearray) /* is `key' inside array part? */ - return i-1; /* yes; that's the index (corrected to C) */ - else { - Node *n = mainposition(t, key); - for (;;) { /* check whether `key' is somewhere in the chain */ - /* key may be dead already, but it is ok to use it in `next' */ - if (luaV_rawequalobj(gkey(n), key) || - (ttisdeadkey(gkey(n)) && iscollectable(key) && - deadvalue(gkey(n)) == gcvalue(key))) { - i = cast_int(n - gnode(t, 0)); /* key index in hash table */ - /* hash elements are numbered after array ones */ - return i + t->sizearray; - } - else n = gnext(n); - if (n == NULL) - luaG_runerror(L, "invalid key to " LUA_QL("next")); /* key not found */ - } - } -} - - -int luaH_next (lua_State *L, Table *t, StkId key) { - int i = findindex(L, t, key); /* find original element */ - for (i++; i < t->sizearray; i++) { /* try first array part */ - if (!ttisnil(&t->array[i])) { /* a non-nil value? */ - setnvalue(key, cast_num(i+1)); - setobj2s(L, key+1, &t->array[i]); - return 1; - } - } - for (i -= t->sizearray; i < sizenode(t); i++) { /* then hash part */ - if (!ttisnil(gval(gnode(t, i)))) { /* a non-nil value? */ - setobj2s(L, key, gkey(gnode(t, i))); - setobj2s(L, key+1, gval(gnode(t, i))); - return 1; - } - } - return 0; /* no more elements */ -} - - -/* -** {============================================================= -** Rehash -** ============================================================== -*/ - - -static int computesizes (int nums[], int *narray) { - int i; - int twotoi; /* 2^i */ - int a = 0; /* number of elements smaller than 2^i */ - int na = 0; /* number of elements to go to array part */ - int n = 0; /* optimal size for array part */ - for (i = 0, twotoi = 1; twotoi/2 < *narray; i++, twotoi *= 2) { - if (nums[i] > 0) { - a += nums[i]; - if (a > twotoi/2) { /* more than half elements present? */ - n = twotoi; /* optimal size (till now) */ - na = a; /* all elements smaller than n will go to array part */ - } - } - if (a == *narray) break; /* all elements already counted */ - } - *narray = n; - lua_assert(*narray/2 <= na && na <= *narray); - return na; -} - - -static int countint (const TValue *key, int *nums) { - int k = arrayindex(key); - if (0 < k && k <= MAXASIZE) { /* is `key' an appropriate array index? */ - nums[luaO_ceillog2(k)]++; /* count as such */ - return 1; - } - else - return 0; -} - - -static int numusearray (const Table *t, int *nums) { - int lg; - int ttlg; /* 2^lg */ - int ause = 0; /* summation of `nums' */ - int i = 1; /* count to traverse all array keys */ - for (lg=0, ttlg=1; lg<=MAXBITS; lg++, ttlg*=2) { /* for each slice */ - int lc = 0; /* counter */ - int lim = ttlg; - if (lim > t->sizearray) { - lim = t->sizearray; /* adjust upper limit */ - if (i > lim) - break; /* no more elements to count */ - } - /* count elements in range (2^(lg-1), 2^lg] */ - for (; i <= lim; i++) { - if (!ttisnil(&t->array[i-1])) - lc++; - } - nums[lg] += lc; - ause += lc; - } - return ause; -} - - -static int numusehash (const Table *t, int *nums, int *pnasize) { - int totaluse = 0; /* total number of elements */ - int ause = 0; /* summation of `nums' */ - int i = sizenode(t); - while (i--) { - Node *n = &t->node[i]; - if (!ttisnil(gval(n))) { - ause += countint(gkey(n), nums); - totaluse++; - } - } - *pnasize += ause; - return totaluse; -} - - -static void setarrayvector (lua_State *L, Table *t, int size) { - int i; - luaM_reallocvector(L, t->array, t->sizearray, size, TValue); - for (i=t->sizearray; iarray[i]); - t->sizearray = size; -} - - -static void setnodevector (lua_State *L, Table *t, int size) { - int lsize; - if (size == 0) { /* no elements to hash part? */ - t->node = cast(Node *, dummynode); /* use common `dummynode' */ - lsize = 0; - } - else { - int i; - lsize = luaO_ceillog2(size); - if (lsize > MAXBITS) - luaG_runerror(L, "table overflow"); - size = twoto(lsize); - t->node = luaM_newvector(L, size, Node); - for (i=0; ilsizenode = cast_byte(lsize); - t->lastfree = gnode(t, size); /* all positions are free */ -} - - -void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize) { - int i; - int oldasize = t->sizearray; - int oldhsize = t->lsizenode; - Node *nold = t->node; /* save old hash ... */ - if (nasize > oldasize) /* array part must grow? */ - setarrayvector(L, t, nasize); - /* create new hash part with appropriate size */ - setnodevector(L, t, nhsize); - if (nasize < oldasize) { /* array part must shrink? */ - t->sizearray = nasize; - /* re-insert elements from vanishing slice */ - for (i=nasize; iarray[i])) - luaH_setint(L, t, i + 1, &t->array[i]); - } - /* shrink array */ - luaM_reallocvector(L, t->array, oldasize, nasize, TValue); - } - /* re-insert elements from hash part */ - for (i = twoto(oldhsize) - 1; i >= 0; i--) { - Node *old = nold+i; - if (!ttisnil(gval(old))) { - /* doesn't need barrier/invalidate cache, as entry was - already present in the table */ - setobjt2t(L, luaH_set(L, t, gkey(old)), gval(old)); - } - } - if (!isdummy(nold)) - luaM_freearray(L, nold, cast(size_t, twoto(oldhsize))); /* free old array */ -} - - -void luaH_resizearray (lua_State *L, Table *t, int nasize) { - int nsize = isdummy(t->node) ? 0 : sizenode(t); - luaH_resize(L, t, nasize, nsize); -} - - -static void rehash (lua_State *L, Table *t, const TValue *ek) { - int nasize, na; - int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */ - int i; - int totaluse; - for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */ - nasize = numusearray(t, nums); /* count keys in array part */ - totaluse = nasize; /* all those keys are integer keys */ - totaluse += numusehash(t, nums, &nasize); /* count keys in hash part */ - /* count extra key */ - nasize += countint(ek, nums); - totaluse++; - /* compute new size for array part */ - na = computesizes(nums, &nasize); - /* resize the table to new computed sizes */ - luaH_resize(L, t, nasize, totaluse - na); -} - - - -/* -** }============================================================= -*/ - - -Table *luaH_new (lua_State *L) { - Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table), NULL, 0)->h; - t->metatable = NULL; - t->flags = cast_byte(~0); - t->array = NULL; - t->sizearray = 0; - setnodevector(L, t, 0); - return t; -} - - -void luaH_free (lua_State *L, Table *t) { - if (!isdummy(t->node)) - luaM_freearray(L, t->node, cast(size_t, sizenode(t))); - luaM_freearray(L, t->array, t->sizearray); - luaM_free(L, t); -} - - -static Node *getfreepos (Table *t) { - while (t->lastfree > t->node) { - t->lastfree--; - if (ttisnil(gkey(t->lastfree))) - return t->lastfree; - } - return NULL; /* could not find a free place */ -} - - - -/* -** inserts a new key into a hash table; first, check whether key's main -** position is free. If not, check whether colliding node is in its main -** position or not: if it is not, move colliding node to an empty place and -** put new key in its main position; otherwise (colliding node is in its main -** position), new key goes to an empty position. -*/ -TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { - Node *mp; - if (ttisnil(key)) luaG_runerror(L, "table index is nil"); - else if (ttisnumber(key) && luai_numisnan(L, nvalue(key))) - luaG_runerror(L, "table index is NaN"); - mp = mainposition(t, key); - if (!ttisnil(gval(mp)) || isdummy(mp)) { /* main position is taken? */ - Node *othern; - Node *n = getfreepos(t); /* get a free place */ - if (n == NULL) { /* cannot find a free place? */ - rehash(L, t, key); /* grow table */ - /* whatever called 'newkey' take care of TM cache and GC barrier */ - return luaH_set(L, t, key); /* insert key into grown table */ - } - lua_assert(!isdummy(n)); - othern = mainposition(t, gkey(mp)); - if (othern != mp) { /* is colliding node out of its main position? */ - /* yes; move colliding node into free position */ - while (gnext(othern) != mp) othern = gnext(othern); /* find previous */ - gnext(othern) = n; /* redo the chain with `n' in place of `mp' */ - *n = *mp; /* copy colliding node into free pos. (mp->next also goes) */ - gnext(mp) = NULL; /* now `mp' is free */ - setnilvalue(gval(mp)); - } - else { /* colliding node is in its own main position */ - /* new node will go into free position */ - gnext(n) = gnext(mp); /* chain new position */ - gnext(mp) = n; - mp = n; - } - } - setobj2t(L, gkey(mp), key); - luaC_barrierback(L, obj2gco(t), key); - lua_assert(ttisnil(gval(mp))); - return gval(mp); -} - - -/* -** search function for integers -*/ -const TValue *luaH_getint (Table *t, int key) { - /* (1 <= key && key <= t->sizearray) */ - if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) - return &t->array[key-1]; - else { - lua_Number nk = cast_num(key); - Node *n = hashnum(t, nk); - do { /* check whether `key' is somewhere in the chain */ - if (ttisnumber(gkey(n)) && luai_numeq(nvalue(gkey(n)), nk)) - return gval(n); /* that's it */ - else n = gnext(n); - } while (n); - return luaO_nilobject; - } -} - - -/* -** search function for short strings -*/ -const TValue *luaH_getstr (Table *t, TString *key) { - Node *n = hashstr(t, key); - lua_assert(key->tsv.tt == LUA_TSHRSTR); - do { /* check whether `key' is somewhere in the chain */ - if (ttisshrstring(gkey(n)) && eqshrstr(rawtsvalue(gkey(n)), key)) - return gval(n); /* that's it */ - else n = gnext(n); - } while (n); - return luaO_nilobject; -} - - -/* -** main search function -*/ -const TValue *luaH_get (Table *t, const TValue *key) { - switch (ttype(key)) { - case LUA_TSHRSTR: return luaH_getstr(t, rawtsvalue(key)); - case LUA_TNIL: return luaO_nilobject; - case LUA_TNUMBER: { - int k; - lua_Number n = nvalue(key); - lua_number2int(k, n); - if (luai_numeq(cast_num(k), n)) /* index is int? */ - return luaH_getint(t, k); /* use specialized version */ - /* else go through */ - } - default: { - Node *n = mainposition(t, key); - do { /* check whether `key' is somewhere in the chain */ - if (luaV_rawequalobj(gkey(n), key)) - return gval(n); /* that's it */ - else n = gnext(n); - } while (n); - return luaO_nilobject; - } - } -} - - -/* -** beware: when using this function you probably need to check a GC -** barrier and invalidate the TM cache. -*/ -TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { - const TValue *p = luaH_get(t, key); - if (p != luaO_nilobject) - return cast(TValue *, p); - else return luaH_newkey(L, t, key); -} - - -void luaH_setint (lua_State *L, Table *t, int key, TValue *value) { - const TValue *p = luaH_getint(t, key); - TValue *cell; - if (p != luaO_nilobject) - cell = cast(TValue *, p); - else { - TValue k; - setnvalue(&k, cast_num(key)); - cell = luaH_newkey(L, t, &k); - } - setobj2t(L, cell, value); -} - - -static int unbound_search (Table *t, unsigned int j) { - unsigned int i = j; /* i is zero or a present index */ - j++; - /* find `i' and `j' such that i is present and j is not */ - while (!ttisnil(luaH_getint(t, j))) { - i = j; - j *= 2; - if (j > cast(unsigned int, MAX_INT)) { /* overflow? */ - /* table was built with bad purposes: resort to linear search */ - i = 1; - while (!ttisnil(luaH_getint(t, i))) i++; - return i - 1; - } - } - /* now do a binary search between them */ - while (j - i > 1) { - unsigned int m = (i+j)/2; - if (ttisnil(luaH_getint(t, m))) j = m; - else i = m; - } - return i; -} - - -/* -** Try to find a boundary in table `t'. A `boundary' is an integer index -** such that t[i] is non-nil and t[i+1] is nil (and 0 if t[1] is nil). -*/ -int luaH_getn (Table *t) { - unsigned int j = t->sizearray; - if (j > 0 && ttisnil(&t->array[j - 1])) { - /* there is a boundary in the array part: (binary) search for it */ - unsigned int i = 0; - while (j - i > 1) { - unsigned int m = (i+j)/2; - if (ttisnil(&t->array[m - 1])) j = m; - else i = m; - } - return i; - } - /* else must find a boundary in hash part */ - else if (isdummy(t->node)) /* hash part is empty? */ - return j; /* that is easy... */ - else return unbound_search(t, j); -} - - - -#if defined(LUA_DEBUG) - -Node *luaH_mainposition (const Table *t, const TValue *key) { - return mainposition(t, key); -} - -int luaH_isdummy (Node *n) { return isdummy(n); } - -#endif diff --git a/btgui/lua-5.2.3/src/ltable.h b/btgui/lua-5.2.3/src/ltable.h deleted file mode 100644 index d69449b2b..000000000 --- a/btgui/lua-5.2.3/src/ltable.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -** $Id: ltable.h,v 2.16.1.2 2013/08/30 15:49:41 roberto Exp $ -** Lua tables (hash) -** See Copyright Notice in lua.h -*/ - -#ifndef ltable_h -#define ltable_h - -#include "lobject.h" - - -#define gnode(t,i) (&(t)->node[i]) -#define gkey(n) (&(n)->i_key.tvk) -#define gval(n) (&(n)->i_val) -#define gnext(n) ((n)->i_key.nk.next) - -#define invalidateTMcache(t) ((t)->flags = 0) - -/* returns the key, given the value of a table entry */ -#define keyfromval(v) \ - (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val)))) - - -LUAI_FUNC const TValue *luaH_getint (Table *t, int key); -LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); -LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); -LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); -LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); -LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); -LUAI_FUNC Table *luaH_new (lua_State *L); -LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); -LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); -LUAI_FUNC void luaH_free (lua_State *L, Table *t); -LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); -LUAI_FUNC int luaH_getn (Table *t); - - -#if defined(LUA_DEBUG) -LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); -LUAI_FUNC int luaH_isdummy (Node *n); -#endif - - -#endif diff --git a/btgui/lua-5.2.3/src/ltablib.c b/btgui/lua-5.2.3/src/ltablib.c deleted file mode 100644 index 6001224e3..000000000 --- a/btgui/lua-5.2.3/src/ltablib.c +++ /dev/null @@ -1,283 +0,0 @@ -/* -** $Id: ltablib.c,v 1.65.1.1 2013/04/12 18:48:47 roberto Exp $ -** Library for Table Manipulation -** See Copyright Notice in lua.h -*/ - - -#include - -#define ltablib_c -#define LUA_LIB - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" - - -#define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), luaL_len(L, n)) - - - -#if defined(LUA_COMPAT_MAXN) -static int maxn (lua_State *L) { - lua_Number max = 0; - luaL_checktype(L, 1, LUA_TTABLE); - lua_pushnil(L); /* first key */ - while (lua_next(L, 1)) { - lua_pop(L, 1); /* remove value */ - if (lua_type(L, -1) == LUA_TNUMBER) { - lua_Number v = lua_tonumber(L, -1); - if (v > max) max = v; - } - } - lua_pushnumber(L, max); - return 1; -} -#endif - - -static int tinsert (lua_State *L) { - int e = aux_getn(L, 1) + 1; /* first empty element */ - int pos; /* where to insert new element */ - switch (lua_gettop(L)) { - case 2: { /* called with only 2 arguments */ - pos = e; /* insert new element at the end */ - break; - } - case 3: { - int i; - pos = luaL_checkint(L, 2); /* 2nd argument is the position */ - luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds"); - for (i = e; i > pos; i--) { /* move up elements */ - lua_rawgeti(L, 1, i-1); - lua_rawseti(L, 1, i); /* t[i] = t[i-1] */ - } - break; - } - default: { - return luaL_error(L, "wrong number of arguments to " LUA_QL("insert")); - } - } - lua_rawseti(L, 1, pos); /* t[pos] = v */ - return 0; -} - - -static int tremove (lua_State *L) { - int size = aux_getn(L, 1); - int pos = luaL_optint(L, 2, size); - if (pos != size) /* validate 'pos' if given */ - luaL_argcheck(L, 1 <= pos && pos <= size + 1, 1, "position out of bounds"); - lua_rawgeti(L, 1, pos); /* result = t[pos] */ - for ( ; pos < size; pos++) { - lua_rawgeti(L, 1, pos+1); - lua_rawseti(L, 1, pos); /* t[pos] = t[pos+1] */ - } - lua_pushnil(L); - lua_rawseti(L, 1, pos); /* t[pos] = nil */ - return 1; -} - - -static void addfield (lua_State *L, luaL_Buffer *b, int i) { - lua_rawgeti(L, 1, i); - if (!lua_isstring(L, -1)) - luaL_error(L, "invalid value (%s) at index %d in table for " - LUA_QL("concat"), luaL_typename(L, -1), i); - luaL_addvalue(b); -} - - -static int tconcat (lua_State *L) { - luaL_Buffer b; - size_t lsep; - int i, last; - const char *sep = luaL_optlstring(L, 2, "", &lsep); - luaL_checktype(L, 1, LUA_TTABLE); - i = luaL_optint(L, 3, 1); - last = luaL_opt(L, luaL_checkint, 4, luaL_len(L, 1)); - luaL_buffinit(L, &b); - for (; i < last; i++) { - addfield(L, &b, i); - luaL_addlstring(&b, sep, lsep); - } - if (i == last) /* add last value (if interval was not empty) */ - addfield(L, &b, i); - luaL_pushresult(&b); - return 1; -} - - -/* -** {====================================================== -** Pack/unpack -** ======================================================= -*/ - -static int pack (lua_State *L) { - int n = lua_gettop(L); /* number of elements to pack */ - lua_createtable(L, n, 1); /* create result table */ - lua_pushinteger(L, n); - lua_setfield(L, -2, "n"); /* t.n = number of elements */ - if (n > 0) { /* at least one element? */ - int i; - lua_pushvalue(L, 1); - lua_rawseti(L, -2, 1); /* insert first element */ - lua_replace(L, 1); /* move table into index 1 */ - for (i = n; i >= 2; i--) /* assign other elements */ - lua_rawseti(L, 1, i); - } - return 1; /* return table */ -} - - -static int unpack (lua_State *L) { - int i, e, n; - luaL_checktype(L, 1, LUA_TTABLE); - i = luaL_optint(L, 2, 1); - e = luaL_opt(L, luaL_checkint, 3, luaL_len(L, 1)); - if (i > e) return 0; /* empty range */ - n = e - i + 1; /* number of elements */ - if (n <= 0 || !lua_checkstack(L, n)) /* n <= 0 means arith. overflow */ - return luaL_error(L, "too many results to unpack"); - lua_rawgeti(L, 1, i); /* push arg[i] (avoiding overflow problems) */ - while (i++ < e) /* push arg[i + 1...e] */ - lua_rawgeti(L, 1, i); - return n; -} - -/* }====================================================== */ - - - -/* -** {====================================================== -** Quicksort -** (based on `Algorithms in MODULA-3', Robert Sedgewick; -** Addison-Wesley, 1993.) -** ======================================================= -*/ - - -static void set2 (lua_State *L, int i, int j) { - lua_rawseti(L, 1, i); - lua_rawseti(L, 1, j); -} - -static int sort_comp (lua_State *L, int a, int b) { - if (!lua_isnil(L, 2)) { /* function? */ - int res; - lua_pushvalue(L, 2); - lua_pushvalue(L, a-1); /* -1 to compensate function */ - lua_pushvalue(L, b-2); /* -2 to compensate function and `a' */ - lua_call(L, 2, 1); - res = lua_toboolean(L, -1); - lua_pop(L, 1); - return res; - } - else /* a < b? */ - return lua_compare(L, a, b, LUA_OPLT); -} - -static void auxsort (lua_State *L, int l, int u) { - while (l < u) { /* for tail recursion */ - int i, j; - /* sort elements a[l], a[(l+u)/2] and a[u] */ - lua_rawgeti(L, 1, l); - lua_rawgeti(L, 1, u); - if (sort_comp(L, -1, -2)) /* a[u] < a[l]? */ - set2(L, l, u); /* swap a[l] - a[u] */ - else - lua_pop(L, 2); - if (u-l == 1) break; /* only 2 elements */ - i = (l+u)/2; - lua_rawgeti(L, 1, i); - lua_rawgeti(L, 1, l); - if (sort_comp(L, -2, -1)) /* a[i]= P */ - while (lua_rawgeti(L, 1, ++i), sort_comp(L, -1, -2)) { - if (i>=u) luaL_error(L, "invalid order function for sorting"); - lua_pop(L, 1); /* remove a[i] */ - } - /* repeat --j until a[j] <= P */ - while (lua_rawgeti(L, 1, --j), sort_comp(L, -3, -1)) { - if (j<=l) luaL_error(L, "invalid order function for sorting"); - lua_pop(L, 1); /* remove a[j] */ - } - if (j - -#define ltm_c -#define LUA_CORE - -#include "lua.h" - -#include "lobject.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" - - -static const char udatatypename[] = "userdata"; - -LUAI_DDEF const char *const luaT_typenames_[LUA_TOTALTAGS] = { - "no value", - "nil", "boolean", udatatypename, "number", - "string", "table", "function", udatatypename, "thread", - "proto", "upval" /* these last two cases are used for tests only */ -}; - - -void luaT_init (lua_State *L) { - static const char *const luaT_eventname[] = { /* ORDER TM */ - "__index", "__newindex", - "__gc", "__mode", "__len", "__eq", - "__add", "__sub", "__mul", "__div", "__mod", - "__pow", "__unm", "__lt", "__le", - "__concat", "__call" - }; - int i; - for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]); - luaS_fix(G(L)->tmname[i]); /* never collect these names */ - } -} - - -/* -** function to be used with macro "fasttm": optimized for absence of -** tag methods -*/ -const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { - const TValue *tm = luaH_getstr(events, ename); - lua_assert(event <= TM_EQ); - if (ttisnil(tm)) { /* no tag method? */ - events->flags |= cast_byte(1u<metatable; - break; - case LUA_TUSERDATA: - mt = uvalue(o)->metatable; - break; - default: - mt = G(L)->mt[ttypenv(o)]; - } - return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); -} - diff --git a/btgui/lua-5.2.3/src/ltm.h b/btgui/lua-5.2.3/src/ltm.h deleted file mode 100644 index 7f89c841f..000000000 --- a/btgui/lua-5.2.3/src/ltm.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $ -** Tag methods -** See Copyright Notice in lua.h -*/ - -#ifndef ltm_h -#define ltm_h - - -#include "lobject.h" - - -/* -* WARNING: if you change the order of this enumeration, -* grep "ORDER TM" -*/ -typedef enum { - TM_INDEX, - TM_NEWINDEX, - TM_GC, - TM_MODE, - TM_LEN, - TM_EQ, /* last tag method with `fast' access */ - TM_ADD, - TM_SUB, - TM_MUL, - TM_DIV, - TM_MOD, - TM_POW, - TM_UNM, - TM_LT, - TM_LE, - TM_CONCAT, - TM_CALL, - TM_N /* number of elements in the enum */ -} TMS; - - - -#define gfasttm(g,et,e) ((et) == NULL ? NULL : \ - ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) - -#define fasttm(l,et,e) gfasttm(G(l), et, e) - -#define ttypename(x) luaT_typenames_[(x) + 1] -#define objtypename(x) ttypename(ttypenv(x)) - -LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS]; - - -LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); -LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, - TMS event); -LUAI_FUNC void luaT_init (lua_State *L); - -#endif diff --git a/btgui/lua-5.2.3/src/lua.h b/btgui/lua-5.2.3/src/lua.h deleted file mode 100644 index 149a2c37b..000000000 --- a/btgui/lua-5.2.3/src/lua.h +++ /dev/null @@ -1,444 +0,0 @@ -/* -** $Id: lua.h,v 1.285.1.2 2013/11/11 12:09:16 roberto Exp $ -** Lua - A Scripting Language -** Lua.org, PUC-Rio, Brazil (http://www.lua.org) -** See Copyright Notice at the end of this file -*/ - - -#ifndef lua_h -#define lua_h - -#include -#include - - -#include "luaconf.h" - - -#define LUA_VERSION_MAJOR "5" -#define LUA_VERSION_MINOR "2" -#define LUA_VERSION_NUM 502 -#define LUA_VERSION_RELEASE "3" - -#define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR -#define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE -#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2013 Lua.org, PUC-Rio" -#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" - - -/* mark for precompiled code ('Lua') */ -#define LUA_SIGNATURE "\033Lua" - -/* option for multiple returns in 'lua_pcall' and 'lua_call' */ -#define LUA_MULTRET (-1) - - -/* -** pseudo-indices -*/ -#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX -#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) - - -/* thread status */ -#define LUA_OK 0 -#define LUA_YIELD 1 -#define LUA_ERRRUN 2 -#define LUA_ERRSYNTAX 3 -#define LUA_ERRMEM 4 -#define LUA_ERRGCMM 5 -#define LUA_ERRERR 6 - - -typedef struct lua_State lua_State; - -typedef int (*lua_CFunction) (lua_State *L); - - -/* -** functions that read/write blocks when loading/dumping Lua chunks -*/ -typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); - -typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); - - -/* -** prototype for memory-allocation functions -*/ -typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); - - -/* -** basic types -*/ -#define LUA_TNONE (-1) - -#define LUA_TNIL 0 -#define LUA_TBOOLEAN 1 -#define LUA_TLIGHTUSERDATA 2 -#define LUA_TNUMBER 3 -#define LUA_TSTRING 4 -#define LUA_TTABLE 5 -#define LUA_TFUNCTION 6 -#define LUA_TUSERDATA 7 -#define LUA_TTHREAD 8 - -#define LUA_NUMTAGS 9 - - - -/* minimum Lua stack available to a C function */ -#define LUA_MINSTACK 20 - - -/* predefined values in the registry */ -#define LUA_RIDX_MAINTHREAD 1 -#define LUA_RIDX_GLOBALS 2 -#define LUA_RIDX_LAST LUA_RIDX_GLOBALS - - -/* type of numbers in Lua */ -typedef LUA_NUMBER lua_Number; - - -/* type for integer functions */ -typedef LUA_INTEGER lua_Integer; - -/* unsigned integer type */ -typedef LUA_UNSIGNED lua_Unsigned; - - - -/* -** generic extra include file -*/ -#if defined(LUA_USER_H) -#include LUA_USER_H -#endif - - -/* -** RCS ident string -*/ -extern const char lua_ident[]; - - -/* -** state manipulation -*/ -LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); -LUA_API void (lua_close) (lua_State *L); -LUA_API lua_State *(lua_newthread) (lua_State *L); - -LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); - - -LUA_API const lua_Number *(lua_version) (lua_State *L); - - -/* -** basic stack manipulation -*/ -LUA_API int (lua_absindex) (lua_State *L, int idx); -LUA_API int (lua_gettop) (lua_State *L); -LUA_API void (lua_settop) (lua_State *L, int idx); -LUA_API void (lua_pushvalue) (lua_State *L, int idx); -LUA_API void (lua_remove) (lua_State *L, int idx); -LUA_API void (lua_insert) (lua_State *L, int idx); -LUA_API void (lua_replace) (lua_State *L, int idx); -LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); -LUA_API int (lua_checkstack) (lua_State *L, int sz); - -LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); - - -/* -** access functions (stack -> C) -*/ - -LUA_API int (lua_isnumber) (lua_State *L, int idx); -LUA_API int (lua_isstring) (lua_State *L, int idx); -LUA_API int (lua_iscfunction) (lua_State *L, int idx); -LUA_API int (lua_isuserdata) (lua_State *L, int idx); -LUA_API int (lua_type) (lua_State *L, int idx); -LUA_API const char *(lua_typename) (lua_State *L, int tp); - -LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum); -LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); -LUA_API lua_Unsigned (lua_tounsignedx) (lua_State *L, int idx, int *isnum); -LUA_API int (lua_toboolean) (lua_State *L, int idx); -LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); -LUA_API size_t (lua_rawlen) (lua_State *L, int idx); -LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); -LUA_API void *(lua_touserdata) (lua_State *L, int idx); -LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); -LUA_API const void *(lua_topointer) (lua_State *L, int idx); - - -/* -** Comparison and arithmetic functions -*/ - -#define LUA_OPADD 0 /* ORDER TM */ -#define LUA_OPSUB 1 -#define LUA_OPMUL 2 -#define LUA_OPDIV 3 -#define LUA_OPMOD 4 -#define LUA_OPPOW 5 -#define LUA_OPUNM 6 - -LUA_API void (lua_arith) (lua_State *L, int op); - -#define LUA_OPEQ 0 -#define LUA_OPLT 1 -#define LUA_OPLE 2 - -LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); -LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op); - - -/* -** push functions (C -> stack) -*/ -LUA_API void (lua_pushnil) (lua_State *L); -LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); -LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); -LUA_API void (lua_pushunsigned) (lua_State *L, lua_Unsigned n); -LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t l); -LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); -LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, - va_list argp); -LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); -LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); -LUA_API void (lua_pushboolean) (lua_State *L, int b); -LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); -LUA_API int (lua_pushthread) (lua_State *L); - - -/* -** get functions (Lua -> stack) -*/ -LUA_API void (lua_getglobal) (lua_State *L, const char *var); -LUA_API void (lua_gettable) (lua_State *L, int idx); -LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); -LUA_API void (lua_rawget) (lua_State *L, int idx); -LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n); -LUA_API void (lua_rawgetp) (lua_State *L, int idx, const void *p); -LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); -LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); -LUA_API int (lua_getmetatable) (lua_State *L, int objindex); -LUA_API void (lua_getuservalue) (lua_State *L, int idx); - - -/* -** set functions (stack -> Lua) -*/ -LUA_API void (lua_setglobal) (lua_State *L, const char *var); -LUA_API void (lua_settable) (lua_State *L, int idx); -LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); -LUA_API void (lua_rawset) (lua_State *L, int idx); -LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); -LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p); -LUA_API int (lua_setmetatable) (lua_State *L, int objindex); -LUA_API void (lua_setuservalue) (lua_State *L, int idx); - - -/* -** 'load' and 'call' functions (load and run Lua code) -*/ -LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx, - lua_CFunction k); -#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) - -LUA_API int (lua_getctx) (lua_State *L, int *ctx); - -LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, - int ctx, lua_CFunction k); -#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) - -LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, - const char *chunkname, - const char *mode); - -LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); - - -/* -** coroutine functions -*/ -LUA_API int (lua_yieldk) (lua_State *L, int nresults, int ctx, - lua_CFunction k); -#define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) -LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); -LUA_API int (lua_status) (lua_State *L); - -/* -** garbage-collection function and options -*/ - -#define LUA_GCSTOP 0 -#define LUA_GCRESTART 1 -#define LUA_GCCOLLECT 2 -#define LUA_GCCOUNT 3 -#define LUA_GCCOUNTB 4 -#define LUA_GCSTEP 5 -#define LUA_GCSETPAUSE 6 -#define LUA_GCSETSTEPMUL 7 -#define LUA_GCSETMAJORINC 8 -#define LUA_GCISRUNNING 9 -#define LUA_GCGEN 10 -#define LUA_GCINC 11 - -LUA_API int (lua_gc) (lua_State *L, int what, int data); - - -/* -** miscellaneous functions -*/ - -LUA_API int (lua_error) (lua_State *L); - -LUA_API int (lua_next) (lua_State *L, int idx); - -LUA_API void (lua_concat) (lua_State *L, int n); -LUA_API void (lua_len) (lua_State *L, int idx); - -LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); -LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); - - - -/* -** =============================================================== -** some useful macros -** =============================================================== -*/ - -#define lua_tonumber(L,i) lua_tonumberx(L,i,NULL) -#define lua_tointeger(L,i) lua_tointegerx(L,i,NULL) -#define lua_tounsigned(L,i) lua_tounsignedx(L,i,NULL) - -#define lua_pop(L,n) lua_settop(L, -(n)-1) - -#define lua_newtable(L) lua_createtable(L, 0, 0) - -#define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) - -#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) - -#define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) -#define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) -#define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) -#define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL) -#define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN) -#define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD) -#define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE) -#define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) - -#define lua_pushliteral(L, s) \ - lua_pushlstring(L, "" s, (sizeof(s)/sizeof(char))-1) - -#define lua_pushglobaltable(L) \ - lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS) - -#define lua_tostring(L,i) lua_tolstring(L, (i), NULL) - - - -/* -** {====================================================================== -** Debug API -** ======================================================================= -*/ - - -/* -** Event codes -*/ -#define LUA_HOOKCALL 0 -#define LUA_HOOKRET 1 -#define LUA_HOOKLINE 2 -#define LUA_HOOKCOUNT 3 -#define LUA_HOOKTAILCALL 4 - - -/* -** Event masks -*/ -#define LUA_MASKCALL (1 << LUA_HOOKCALL) -#define LUA_MASKRET (1 << LUA_HOOKRET) -#define LUA_MASKLINE (1 << LUA_HOOKLINE) -#define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) - -typedef struct lua_Debug lua_Debug; /* activation record */ - - -/* Functions to be called by the debugger in specific events */ -typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); - - -LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); -LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); -LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n); -LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n); -LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); -LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); - -LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n); -LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, - int fidx2, int n2); - -LUA_API int (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); -LUA_API lua_Hook (lua_gethook) (lua_State *L); -LUA_API int (lua_gethookmask) (lua_State *L); -LUA_API int (lua_gethookcount) (lua_State *L); - - -struct lua_Debug { - int event; - const char *name; /* (n) */ - const char *namewhat; /* (n) 'global', 'local', 'field', 'method' */ - const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */ - const char *source; /* (S) */ - int currentline; /* (l) */ - int linedefined; /* (S) */ - int lastlinedefined; /* (S) */ - unsigned char nups; /* (u) number of upvalues */ - unsigned char nparams;/* (u) number of parameters */ - char isvararg; /* (u) */ - char istailcall; /* (t) */ - char short_src[LUA_IDSIZE]; /* (S) */ - /* private part */ - struct CallInfo *i_ci; /* active function */ -}; - -/* }====================================================================== */ - - -/****************************************************************************** -* Copyright (C) 1994-2013 Lua.org, PUC-Rio. -* -* 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 above copyright notice and this permission notice shall be -* included in all copies or substantial portions of the Software. -* -* 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. -******************************************************************************/ - - -#endif diff --git a/btgui/lua-5.2.3/src/lua.hpp b/btgui/lua-5.2.3/src/lua.hpp deleted file mode 100644 index ec417f594..000000000 --- a/btgui/lua-5.2.3/src/lua.hpp +++ /dev/null @@ -1,9 +0,0 @@ -// lua.hpp -// Lua header files for C++ -// <> not supplied automatically because Lua also compiles as C++ - -extern "C" { -#include "lua.h" -#include "lualib.h" -#include "lauxlib.h" -} diff --git a/btgui/lua-5.2.3/src/luaconf.h b/btgui/lua-5.2.3/src/luaconf.h deleted file mode 100644 index e8aee009a..000000000 --- a/btgui/lua-5.2.3/src/luaconf.h +++ /dev/null @@ -1,551 +0,0 @@ -/* -** $Id: luaconf.h,v 1.176.1.1 2013/04/12 18:48:47 roberto Exp $ -** Configuration file for Lua -** See Copyright Notice in lua.h -*/ - - -#ifndef lconfig_h -#define lconfig_h - -#include -#include - - -/* -** ================================================================== -** Search for "@@" to find all configurable definitions. -** =================================================================== -*/ - - -/* -@@ LUA_ANSI controls the use of non-ansi features. -** CHANGE it (define it) if you want Lua to avoid the use of any -** non-ansi feature or library. -*/ -#if !defined(LUA_ANSI) && defined(__STRICT_ANSI__) -#define LUA_ANSI -#endif - - -#if !defined(LUA_ANSI) && defined(_WIN32) && !defined(_WIN32_WCE) -#define LUA_WIN /* enable goodies for regular Windows platforms */ -#endif - -#if defined(LUA_WIN) -#define LUA_DL_DLL -#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ -#endif - - - -#if defined(LUA_USE_LINUX) -#define LUA_USE_POSIX -//#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ -//#define LUA_USE_READLINE /* needs some extra libraries */ -#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */ -#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ -#define LUA_USE_LONGLONG /* assume support for long long */ -#endif - -#if defined(LUA_USE_MACOSX) -#define LUA_USE_POSIX -//#define LUA_USE_DLOPEN /* does not need -ldl */ -//#define LUA_USE_READLINE /* needs an extra library: -lreadline */ -#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */ -#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ -#define LUA_USE_LONGLONG /* assume support for long long */ -#endif - - - -/* -@@ LUA_USE_POSIX includes all functionality listed as X/Open System -@* Interfaces Extension (XSI). -** CHANGE it (define it) if your system is XSI compatible. -*/ -#if defined(LUA_USE_POSIX) -#define LUA_USE_MKSTEMP -#define LUA_USE_ISATTY -#define LUA_USE_POPEN -#define LUA_USE_ULONGJMP -#define LUA_USE_GMTIME_R -#endif - - - -/* -@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for -@* Lua libraries. -@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for -@* C libraries. -** CHANGE them if your machine has a non-conventional directory -** hierarchy or if you want to install your libraries in -** non-conventional directories. -*/ -#if defined(_WIN32) /* { */ -/* -** In Windows, any exclamation mark ('!') in the path is replaced by the -** path of the directory of the executable file of the current process. -*/ -#define LUA_LDIR "!\\lua\\" -#define LUA_CDIR "!\\" -#define LUA_PATH_DEFAULT \ - LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" ".\\?.lua" -#define LUA_CPATH_DEFAULT \ - LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll" - -#else /* }{ */ - -#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" -#define LUA_ROOT "/usr/local/" -#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR -#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR -#define LUA_PATH_DEFAULT \ - LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua" -#define LUA_CPATH_DEFAULT \ - LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so" -#endif /* } */ - - -/* -@@ LUA_DIRSEP is the directory separator (for submodules). -** CHANGE it if your machine does not use "/" as the directory separator -** and is not Windows. (On Windows Lua automatically uses "\".) -*/ -#if defined(_WIN32) -#define LUA_DIRSEP "\\" -#else -#define LUA_DIRSEP "/" -#endif - - -/* -@@ LUA_ENV is the name of the variable that holds the current -@@ environment, used to access global names. -** CHANGE it if you do not like this name. -*/ -#define LUA_ENV "_ENV" - - -/* -@@ LUA_API is a mark for all core API functions. -@@ LUALIB_API is a mark for all auxiliary library functions. -@@ LUAMOD_API is a mark for all standard library opening functions. -** CHANGE them if you need to define those functions in some special way. -** For instance, if you want to create one Windows DLL with the core and -** the libraries, you may want to use the following definition (define -** LUA_BUILD_AS_DLL to get it). -*/ -#if defined(LUA_BUILD_AS_DLL) /* { */ - -#if defined(LUA_CORE) || defined(LUA_LIB) /* { */ -#define LUA_API __declspec(dllexport) -#else /* }{ */ -#define LUA_API __declspec(dllimport) -#endif /* } */ - -#else /* }{ */ - -#define LUA_API extern - -#endif /* } */ - - -/* more often than not the libs go together with the core */ -#define LUALIB_API LUA_API -#define LUAMOD_API LUALIB_API - - -/* -@@ LUAI_FUNC is a mark for all extern functions that are not to be -@* exported to outside modules. -@@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables -@* that are not to be exported to outside modules (LUAI_DDEF for -@* definitions and LUAI_DDEC for declarations). -** CHANGE them if you need to mark them in some special way. Elf/gcc -** (versions 3.2 and later) mark them as "hidden" to optimize access -** when Lua is compiled as a shared library. Not all elf targets support -** this attribute. Unfortunately, gcc does not offer a way to check -** whether the target offers that support, and those without support -** give a warning about it. To avoid these warnings, change to the -** default definition. -*/ -#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \ - defined(__ELF__) /* { */ -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern -#define LUAI_DDEC LUAI_FUNC -#define LUAI_DDEF /* empty */ - -#else /* }{ */ -#define LUAI_FUNC extern -#define LUAI_DDEC extern -#define LUAI_DDEF /* empty */ -#endif /* } */ - - - -/* -@@ LUA_QL describes how error messages quote program elements. -** CHANGE it if you want a different appearance. -*/ -#define LUA_QL(x) "'" x "'" -#define LUA_QS LUA_QL("%s") - - -/* -@@ LUA_IDSIZE gives the maximum size for the description of the source -@* of a function in debug information. -** CHANGE it if you want a different size. -*/ -#define LUA_IDSIZE 60 - - -/* -@@ luai_writestring/luai_writeline define how 'print' prints its results. -** They are only used in libraries and the stand-alone program. (The #if -** avoids including 'stdio.h' everywhere.) -*/ -#if defined(LUA_LIB) || defined(lua_c) -#include -#define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) -#define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) -#endif - -/* -@@ luai_writestringerror defines how to print error messages. -** (A format string with one argument is enough for Lua...) -*/ -#define luai_writestringerror(s,p) \ - (fprintf(stderr, (s), (p)), fflush(stderr)) - - -/* -@@ LUAI_MAXSHORTLEN is the maximum length for short strings, that is, -** strings that are internalized. (Cannot be smaller than reserved words -** or tags for metamethods, as these strings must be internalized; -** #("function") = 8, #("__newindex") = 10.) -*/ -#define LUAI_MAXSHORTLEN 40 - - - -/* -** {================================================================== -** Compatibility with previous versions -** =================================================================== -*/ - -/* -@@ LUA_COMPAT_ALL controls all compatibility options. -** You can define it to get all options, or change specific options -** to fit your specific needs. -*/ -#if defined(LUA_COMPAT_ALL) /* { */ - -/* -@@ LUA_COMPAT_UNPACK controls the presence of global 'unpack'. -** You can replace it with 'table.unpack'. -*/ -#define LUA_COMPAT_UNPACK - -/* -@@ LUA_COMPAT_LOADERS controls the presence of table 'package.loaders'. -** You can replace it with 'package.searchers'. -*/ -#define LUA_COMPAT_LOADERS - -/* -@@ macro 'lua_cpcall' emulates deprecated function lua_cpcall. -** You can call your C function directly (with light C functions). -*/ -#define lua_cpcall(L,f,u) \ - (lua_pushcfunction(L, (f)), \ - lua_pushlightuserdata(L,(u)), \ - lua_pcall(L,1,0,0)) - - -/* -@@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. -** You can rewrite 'log10(x)' as 'log(x, 10)'. -*/ -#define LUA_COMPAT_LOG10 - -/* -@@ LUA_COMPAT_LOADSTRING defines the function 'loadstring' in the base -** library. You can rewrite 'loadstring(s)' as 'load(s)'. -*/ -#define LUA_COMPAT_LOADSTRING - -/* -@@ LUA_COMPAT_MAXN defines the function 'maxn' in the table library. -*/ -#define LUA_COMPAT_MAXN - -/* -@@ The following macros supply trivial compatibility for some -** changes in the API. The macros themselves document how to -** change your code to avoid using them. -*/ -#define lua_strlen(L,i) lua_rawlen(L, (i)) - -#define lua_objlen(L,i) lua_rawlen(L, (i)) - -#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) -#define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) - -/* -@@ LUA_COMPAT_MODULE controls compatibility with previous -** module functions 'module' (Lua) and 'luaL_register' (C). -*/ -#define LUA_COMPAT_MODULE - -#endif /* } */ - -/* }================================================================== */ - - - -/* -@@ LUAI_BITSINT defines the number of bits in an int. -** CHANGE here if Lua cannot automatically detect the number of bits of -** your machine. Probably you do not need to change this. -*/ -/* avoid overflows in comparison */ -#if INT_MAX-20 < 32760 /* { */ -#define LUAI_BITSINT 16 -#elif INT_MAX > 2147483640L /* }{ */ -/* int has at least 32 bits */ -#define LUAI_BITSINT 32 -#else /* }{ */ -#error "you must define LUA_BITSINT with number of bits in an integer" -#endif /* } */ - - -/* -@@ LUA_INT32 is an signed integer with exactly 32 bits. -@@ LUAI_UMEM is an unsigned integer big enough to count the total -@* memory used by Lua. -@@ LUAI_MEM is a signed integer big enough to count the total memory -@* used by Lua. -** CHANGE here if for some weird reason the default definitions are not -** good enough for your machine. Probably you do not need to change -** this. -*/ -#if LUAI_BITSINT >= 32 /* { */ -#define LUA_INT32 int -#define LUAI_UMEM size_t -#define LUAI_MEM ptrdiff_t -#else /* }{ */ -/* 16-bit ints */ -#define LUA_INT32 long -#define LUAI_UMEM unsigned long -#define LUAI_MEM long -#endif /* } */ - - -/* -@@ LUAI_MAXSTACK limits the size of the Lua stack. -** CHANGE it if you need a different limit. This limit is arbitrary; -** its only purpose is to stop Lua to consume unlimited stack -** space (and to reserve some numbers for pseudo-indices). -*/ -#if LUAI_BITSINT >= 32 -#define LUAI_MAXSTACK 1000000 -#else -#define LUAI_MAXSTACK 15000 -#endif - -/* reserve some space for error handling */ -#define LUAI_FIRSTPSEUDOIDX (-LUAI_MAXSTACK - 1000) - - - - -/* -@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. -** CHANGE it if it uses too much C-stack space. -*/ -#define LUAL_BUFFERSIZE BUFSIZ - - - - -/* -** {================================================================== -@@ LUA_NUMBER is the type of numbers in Lua. -** CHANGE the following definitions only if you want to build Lua -** with a number type different from double. You may also need to -** change lua_number2int & lua_number2integer. -** =================================================================== -*/ - -#define LUA_NUMBER_DOUBLE -#define LUA_NUMBER double - -/* -@@ LUAI_UACNUMBER is the result of an 'usual argument conversion' -@* over a number. -*/ -#define LUAI_UACNUMBER double - - -/* -@@ LUA_NUMBER_SCAN is the format for reading numbers. -@@ LUA_NUMBER_FMT is the format for writing numbers. -@@ lua_number2str converts a number to a string. -@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion. -*/ -#define LUA_NUMBER_SCAN "%lf" -#define LUA_NUMBER_FMT "%.14g" -#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n)) -#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */ - - -/* -@@ l_mathop allows the addition of an 'l' or 'f' to all math operations -*/ -#define l_mathop(x) (x) - - -/* -@@ lua_str2number converts a decimal numeric string to a number. -@@ lua_strx2number converts an hexadecimal numeric string to a number. -** In C99, 'strtod' does both conversions. C89, however, has no function -** to convert floating hexadecimal strings to numbers. For these -** systems, you can leave 'lua_strx2number' undefined and Lua will -** provide its own implementation. -*/ -#define lua_str2number(s,p) strtod((s), (p)) - -#if defined(LUA_USE_STRTODHEX) -#define lua_strx2number(s,p) strtod((s), (p)) -#endif - - -/* -@@ The luai_num* macros define the primitive operations over numbers. -*/ - -/* the following operations need the math library */ -#if defined(lobject_c) || defined(lvm_c) -#include -#define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b)) -#define luai_numpow(L,a,b) (l_mathop(pow)(a,b)) -#endif - -/* these are quite standard operations */ -#if defined(LUA_CORE) -#define luai_numadd(L,a,b) ((a)+(b)) -#define luai_numsub(L,a,b) ((a)-(b)) -#define luai_nummul(L,a,b) ((a)*(b)) -#define luai_numdiv(L,a,b) ((a)/(b)) -#define luai_numunm(L,a) (-(a)) -#define luai_numeq(a,b) ((a)==(b)) -#define luai_numlt(L,a,b) ((a)<(b)) -#define luai_numle(L,a,b) ((a)<=(b)) -#define luai_numisnan(L,a) (!luai_numeq((a), (a))) -#endif - - - -/* -@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger. -** CHANGE that if ptrdiff_t is not adequate on your machine. (On most -** machines, ptrdiff_t gives a good choice between int or long.) -*/ -#define LUA_INTEGER ptrdiff_t - -/* -@@ LUA_UNSIGNED is the integral type used by lua_pushunsigned/lua_tounsigned. -** It must have at least 32 bits. -*/ -#define LUA_UNSIGNED unsigned LUA_INT32 - - - -/* -** Some tricks with doubles -*/ - -#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) /* { */ -/* -** The next definitions activate some tricks to speed up the -** conversion from doubles to integer types, mainly to LUA_UNSIGNED. -** -@@ LUA_MSASMTRICK uses Microsoft assembler to avoid clashes with a -** DirectX idiosyncrasy. -** -@@ LUA_IEEE754TRICK uses a trick that should work on any machine -** using IEEE754 with a 32-bit integer type. -** -@@ LUA_IEEELL extends the trick to LUA_INTEGER; should only be -** defined when LUA_INTEGER is a 32-bit integer. -** -@@ LUA_IEEEENDIAN is the endianness of doubles in your machine -** (0 for little endian, 1 for big endian); if not defined, Lua will -** check it dynamically for LUA_IEEE754TRICK (but not for LUA_NANTRICK). -** -@@ LUA_NANTRICK controls the use of a trick to pack all types into -** a single double value, using NaN values to represent non-number -** values. The trick only works on 32-bit machines (ints and pointers -** are 32-bit values) with numbers represented as IEEE 754-2008 doubles -** with conventional endianess (12345678 or 87654321), in CPUs that do -** not produce signaling NaN values (all NaNs are quiet). -*/ - -/* Microsoft compiler on a Pentium (32 bit) ? */ -#if defined(LUA_WIN) && defined(_MSC_VER) && defined(_M_IX86) /* { */ - -#define LUA_MSASMTRICK -#define LUA_IEEEENDIAN 0 -#define LUA_NANTRICK - - -/* pentium 32 bits? */ -#elif defined(__i386__) || defined(__i386) || defined(__X86__) /* }{ */ - -#define LUA_IEEE754TRICK -#define LUA_IEEELL -#define LUA_IEEEENDIAN 0 -#define LUA_NANTRICK - -/* pentium 64 bits? */ -#elif defined(__x86_64) /* }{ */ - -#define LUA_IEEE754TRICK -#define LUA_IEEEENDIAN 0 - -#elif defined(__POWERPC__) || defined(__ppc__) /* }{ */ - -#define LUA_IEEE754TRICK -#define LUA_IEEEENDIAN 1 - -#else /* }{ */ - -/* assume IEEE754 and a 32-bit integer type */ -#define LUA_IEEE754TRICK - -#endif /* } */ - -#endif /* } */ - -/* }================================================================== */ - - - - -/* =================================================================== */ - -/* -** Local configuration. You can use this space to add your redefinitions -** without modifying the main part of the file. -*/ - - - -#endif - diff --git a/btgui/lua-5.2.3/src/lualib.h b/btgui/lua-5.2.3/src/lualib.h deleted file mode 100644 index da82005c9..000000000 --- a/btgui/lua-5.2.3/src/lualib.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua standard libraries -** See Copyright Notice in lua.h -*/ - - -#ifndef lualib_h -#define lualib_h - -#include "lua.h" - - - -LUAMOD_API int (luaopen_base) (lua_State *L); - -#define LUA_COLIBNAME "coroutine" -LUAMOD_API int (luaopen_coroutine) (lua_State *L); - -#define LUA_TABLIBNAME "table" -LUAMOD_API int (luaopen_table) (lua_State *L); - -#define LUA_IOLIBNAME "io" -LUAMOD_API int (luaopen_io) (lua_State *L); - -#define LUA_OSLIBNAME "os" -LUAMOD_API int (luaopen_os) (lua_State *L); - -#define LUA_STRLIBNAME "string" -LUAMOD_API int (luaopen_string) (lua_State *L); - -#define LUA_BITLIBNAME "bit32" -LUAMOD_API int (luaopen_bit32) (lua_State *L); - -#define LUA_MATHLIBNAME "math" -LUAMOD_API int (luaopen_math) (lua_State *L); - -#define LUA_DBLIBNAME "debug" -LUAMOD_API int (luaopen_debug) (lua_State *L); - -#define LUA_LOADLIBNAME "package" -LUAMOD_API int (luaopen_package) (lua_State *L); - - -/* open all previous libraries */ -LUALIB_API void (luaL_openlibs) (lua_State *L); - - - -#if !defined(lua_assert) -#define lua_assert(x) ((void)0) -#endif - - -#endif diff --git a/btgui/lua-5.2.3/src/lundump.c b/btgui/lua-5.2.3/src/lundump.c deleted file mode 100644 index 4163cb5d3..000000000 --- a/btgui/lua-5.2.3/src/lundump.c +++ /dev/null @@ -1,258 +0,0 @@ -/* -** $Id: lundump.c,v 2.22.1.1 2013/04/12 18:48:47 roberto Exp $ -** load precompiled Lua chunks -** See Copyright Notice in lua.h -*/ - -#include - -#define lundump_c -#define LUA_CORE - -#include "lua.h" - -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lmem.h" -#include "lobject.h" -#include "lstring.h" -#include "lundump.h" -#include "lzio.h" - -typedef struct { - lua_State* L; - ZIO* Z; - Mbuffer* b; - const char* name; -} LoadState; - -static l_noret error(LoadState* S, const char* why) -{ - luaO_pushfstring(S->L,"%s: %s precompiled chunk",S->name,why); - luaD_throw(S->L,LUA_ERRSYNTAX); -} - -#define LoadMem(S,b,n,size) LoadBlock(S,b,(n)*(size)) -#define LoadByte(S) (lu_byte)LoadChar(S) -#define LoadVar(S,x) LoadMem(S,&x,1,sizeof(x)) -#define LoadVector(S,b,n,size) LoadMem(S,b,n,size) - -#if !defined(luai_verifycode) -#define luai_verifycode(L,b,f) /* empty */ -#endif - -static void LoadBlock(LoadState* S, void* b, size_t size) -{ - if (luaZ_read(S->Z,b,size)!=0) error(S,"truncated"); -} - -static int LoadChar(LoadState* S) -{ - char x; - LoadVar(S,x); - return x; -} - -static int LoadInt(LoadState* S) -{ - int x; - LoadVar(S,x); - if (x<0) error(S,"corrupted"); - return x; -} - -static lua_Number LoadNumber(LoadState* S) -{ - lua_Number x; - LoadVar(S,x); - return x; -} - -static TString* LoadString(LoadState* S) -{ - size_t size; - LoadVar(S,size); - if (size==0) - return NULL; - else - { - char* s=luaZ_openspace(S->L,S->b,size); - LoadBlock(S,s,size*sizeof(char)); - return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */ - } -} - -static void LoadCode(LoadState* S, Proto* f) -{ - int n=LoadInt(S); - f->code=luaM_newvector(S->L,n,Instruction); - f->sizecode=n; - LoadVector(S,f->code,n,sizeof(Instruction)); -} - -static void LoadFunction(LoadState* S, Proto* f); - -static void LoadConstants(LoadState* S, Proto* f) -{ - int i,n; - n=LoadInt(S); - f->k=luaM_newvector(S->L,n,TValue); - f->sizek=n; - for (i=0; ik[i]); - for (i=0; ik[i]; - int t=LoadChar(S); - switch (t) - { - case LUA_TNIL: - setnilvalue(o); - break; - case LUA_TBOOLEAN: - setbvalue(o,LoadChar(S)); - break; - case LUA_TNUMBER: - setnvalue(o,LoadNumber(S)); - break; - case LUA_TSTRING: - setsvalue2n(S->L,o,LoadString(S)); - break; - default: lua_assert(0); - } - } - n=LoadInt(S); - f->p=luaM_newvector(S->L,n,Proto*); - f->sizep=n; - for (i=0; ip[i]=NULL; - for (i=0; ip[i]=luaF_newproto(S->L); - LoadFunction(S,f->p[i]); - } -} - -static void LoadUpvalues(LoadState* S, Proto* f) -{ - int i,n; - n=LoadInt(S); - f->upvalues=luaM_newvector(S->L,n,Upvaldesc); - f->sizeupvalues=n; - for (i=0; iupvalues[i].name=NULL; - for (i=0; iupvalues[i].instack=LoadByte(S); - f->upvalues[i].idx=LoadByte(S); - } -} - -static void LoadDebug(LoadState* S, Proto* f) -{ - int i,n; - f->source=LoadString(S); - n=LoadInt(S); - f->lineinfo=luaM_newvector(S->L,n,int); - f->sizelineinfo=n; - LoadVector(S,f->lineinfo,n,sizeof(int)); - n=LoadInt(S); - f->locvars=luaM_newvector(S->L,n,LocVar); - f->sizelocvars=n; - for (i=0; ilocvars[i].varname=NULL; - for (i=0; ilocvars[i].varname=LoadString(S); - f->locvars[i].startpc=LoadInt(S); - f->locvars[i].endpc=LoadInt(S); - } - n=LoadInt(S); - for (i=0; iupvalues[i].name=LoadString(S); -} - -static void LoadFunction(LoadState* S, Proto* f) -{ - f->linedefined=LoadInt(S); - f->lastlinedefined=LoadInt(S); - f->numparams=LoadByte(S); - f->is_vararg=LoadByte(S); - f->maxstacksize=LoadByte(S); - LoadCode(S,f); - LoadConstants(S,f); - LoadUpvalues(S,f); - LoadDebug(S,f); -} - -/* the code below must be consistent with the code in luaU_header */ -#define N0 LUAC_HEADERSIZE -#define N1 (sizeof(LUA_SIGNATURE)-sizeof(char)) -#define N2 N1+2 -#define N3 N2+6 - -static void LoadHeader(LoadState* S) -{ - lu_byte h[LUAC_HEADERSIZE]; - lu_byte s[LUAC_HEADERSIZE]; - luaU_header(h); - memcpy(s,h,sizeof(char)); /* first char already read */ - LoadBlock(S,s+sizeof(char),LUAC_HEADERSIZE-sizeof(char)); - if (memcmp(h,s,N0)==0) return; - if (memcmp(h,s,N1)!=0) error(S,"not a"); - if (memcmp(h,s,N2)!=0) error(S,"version mismatch in"); - if (memcmp(h,s,N3)!=0) error(S,"incompatible"); else error(S,"corrupted"); -} - -/* -** load precompiled chunk -*/ -Closure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name) -{ - LoadState S; - Closure* cl; - if (*name=='@' || *name=='=') - S.name=name+1; - else if (*name==LUA_SIGNATURE[0]) - S.name="binary string"; - else - S.name=name; - S.L=L; - S.Z=Z; - S.b=buff; - LoadHeader(&S); - cl=luaF_newLclosure(L,1); - setclLvalue(L,L->top,cl); incr_top(L); - cl->l.p=luaF_newproto(L); - LoadFunction(&S,cl->l.p); - if (cl->l.p->sizeupvalues != 1) - { - Proto* p=cl->l.p; - cl=luaF_newLclosure(L,cl->l.p->sizeupvalues); - cl->l.p=p; - setclLvalue(L,L->top-1,cl); - } - luai_verifycode(L,buff,cl->l.p); - return cl; -} - -#define MYINT(s) (s[0]-'0') -#define VERSION MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR) -#define FORMAT 0 /* this is the official format */ - -/* -* make header for precompiled chunks -* if you change the code below be sure to update LoadHeader and FORMAT above -* and LUAC_HEADERSIZE in lundump.h -*/ -void luaU_header (lu_byte* h) -{ - int x=1; - memcpy(h,LUA_SIGNATURE,sizeof(LUA_SIGNATURE)-sizeof(char)); - h+=sizeof(LUA_SIGNATURE)-sizeof(char); - *h++=cast_byte(VERSION); - *h++=cast_byte(FORMAT); - *h++=cast_byte(*(char*)&x); /* endianness */ - *h++=cast_byte(sizeof(int)); - *h++=cast_byte(sizeof(size_t)); - *h++=cast_byte(sizeof(Instruction)); - *h++=cast_byte(sizeof(lua_Number)); - *h++=cast_byte(((lua_Number)0.5)==0); /* is lua_Number integral? */ - memcpy(h,LUAC_TAIL,sizeof(LUAC_TAIL)-sizeof(char)); -} diff --git a/btgui/lua-5.2.3/src/lundump.h b/btgui/lua-5.2.3/src/lundump.h deleted file mode 100644 index 5255db259..000000000 --- a/btgui/lua-5.2.3/src/lundump.h +++ /dev/null @@ -1,28 +0,0 @@ -/* -** $Id: lundump.h,v 1.39.1.1 2013/04/12 18:48:47 roberto Exp $ -** load precompiled Lua chunks -** See Copyright Notice in lua.h -*/ - -#ifndef lundump_h -#define lundump_h - -#include "lobject.h" -#include "lzio.h" - -/* load one chunk; from lundump.c */ -LUAI_FUNC Closure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); - -/* make header; from lundump.c */ -LUAI_FUNC void luaU_header (lu_byte* h); - -/* dump one chunk; from ldump.c */ -LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); - -/* data to catch conversion errors */ -#define LUAC_TAIL "\x19\x93\r\n\x1a\n" - -/* size in bytes of header of binary files */ -#define LUAC_HEADERSIZE (sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char)) - -#endif diff --git a/btgui/lua-5.2.3/src/lvm.c b/btgui/lua-5.2.3/src/lvm.c deleted file mode 100644 index 141b9fd19..000000000 --- a/btgui/lua-5.2.3/src/lvm.c +++ /dev/null @@ -1,867 +0,0 @@ -/* -** $Id: lvm.c,v 2.155.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua virtual machine -** See Copyright Notice in lua.h -*/ - - -#include -#include -#include - -#define lvm_c -#define LUA_CORE - -#include "lua.h" - -#include "ldebug.h" -#include "ldo.h" -#include "lfunc.h" -#include "lgc.h" -#include "lobject.h" -#include "lopcodes.h" -#include "lstate.h" -#include "lstring.h" -#include "ltable.h" -#include "ltm.h" -#include "lvm.h" - - - -/* limit for table tag-method chains (to avoid loops) */ -#define MAXTAGLOOP 100 - - -const TValue *luaV_tonumber (const TValue *obj, TValue *n) { - lua_Number num; - if (ttisnumber(obj)) return obj; - if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { - setnvalue(n, num); - return n; - } - else - return NULL; -} - - -int luaV_tostring (lua_State *L, StkId obj) { - if (!ttisnumber(obj)) - return 0; - else { - char s[LUAI_MAXNUMBER2STR]; - lua_Number n = nvalue(obj); - int l = lua_number2str(s, n); - setsvalue2s(L, obj, luaS_newlstr(L, s, l)); - return 1; - } -} - - -static void traceexec (lua_State *L) { - CallInfo *ci = L->ci; - lu_byte mask = L->hookmask; - int counthook = ((mask & LUA_MASKCOUNT) && L->hookcount == 0); - if (counthook) - resethookcount(L); /* reset count */ - if (ci->callstatus & CIST_HOOKYIELD) { /* called hook last time? */ - ci->callstatus &= ~CIST_HOOKYIELD; /* erase mark */ - return; /* do not call hook again (VM yielded, so it did not move) */ - } - if (counthook) - luaD_hook(L, LUA_HOOKCOUNT, -1); /* call count hook */ - if (mask & LUA_MASKLINE) { - Proto *p = ci_func(ci)->p; - int npc = pcRel(ci->u.l.savedpc, p); - int newline = getfuncline(p, npc); - if (npc == 0 || /* call linehook when enter a new function, */ - ci->u.l.savedpc <= L->oldpc || /* when jump back (loop), or when */ - newline != getfuncline(p, pcRel(L->oldpc, p))) /* enter a new line */ - luaD_hook(L, LUA_HOOKLINE, newline); /* call line hook */ - } - L->oldpc = ci->u.l.savedpc; - if (L->status == LUA_YIELD) { /* did hook yield? */ - if (counthook) - L->hookcount = 1; /* undo decrement to zero */ - ci->u.l.savedpc--; /* undo increment (resume will increment it again) */ - ci->callstatus |= CIST_HOOKYIELD; /* mark that it yielded */ - ci->func = L->top - 1; /* protect stack below results */ - luaD_throw(L, LUA_YIELD); - } -} - - -static void callTM (lua_State *L, const TValue *f, const TValue *p1, - const TValue *p2, TValue *p3, int hasres) { - ptrdiff_t result = savestack(L, p3); - setobj2s(L, L->top++, f); /* push function */ - setobj2s(L, L->top++, p1); /* 1st argument */ - setobj2s(L, L->top++, p2); /* 2nd argument */ - if (!hasres) /* no result? 'p3' is third argument */ - setobj2s(L, L->top++, p3); /* 3rd argument */ - /* metamethod may yield only when called from Lua code */ - luaD_call(L, L->top - (4 - hasres), hasres, isLua(L->ci)); - if (hasres) { /* if has result, move it to its place */ - p3 = restorestack(L, result); - setobjs2s(L, p3, --L->top); - } -} - - -void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { - int loop; - for (loop = 0; loop < MAXTAGLOOP; loop++) { - const TValue *tm; - if (ttistable(t)) { /* `t' is a table? */ - Table *h = hvalue(t); - const TValue *res = luaH_get(h, key); /* do a primitive get */ - if (!ttisnil(res) || /* result is not nil? */ - (tm = fasttm(L, h->metatable, TM_INDEX)) == NULL) { /* or no TM? */ - setobj2s(L, val, res); - return; - } - /* else will try the tag method */ - } - else if (ttisnil(tm = luaT_gettmbyobj(L, t, TM_INDEX))) - luaG_typeerror(L, t, "index"); - if (ttisfunction(tm)) { - callTM(L, tm, t, key, val, 1); - return; - } - t = tm; /* else repeat with 'tm' */ - } - luaG_runerror(L, "loop in gettable"); -} - - -void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { - int loop; - for (loop = 0; loop < MAXTAGLOOP; loop++) { - const TValue *tm; - if (ttistable(t)) { /* `t' is a table? */ - Table *h = hvalue(t); - TValue *oldval = cast(TValue *, luaH_get(h, key)); - /* if previous value is not nil, there must be a previous entry - in the table; moreover, a metamethod has no relevance */ - if (!ttisnil(oldval) || - /* previous value is nil; must check the metamethod */ - ((tm = fasttm(L, h->metatable, TM_NEWINDEX)) == NULL && - /* no metamethod; is there a previous entry in the table? */ - (oldval != luaO_nilobject || - /* no previous entry; must create one. (The next test is - always true; we only need the assignment.) */ - (oldval = luaH_newkey(L, h, key), 1)))) { - /* no metamethod and (now) there is an entry with given key */ - setobj2t(L, oldval, val); /* assign new value to that entry */ - invalidateTMcache(h); - luaC_barrierback(L, obj2gco(h), val); - return; - } - /* else will try the metamethod */ - } - else /* not a table; check metamethod */ - if (ttisnil(tm = luaT_gettmbyobj(L, t, TM_NEWINDEX))) - luaG_typeerror(L, t, "index"); - /* there is a metamethod */ - if (ttisfunction(tm)) { - callTM(L, tm, t, key, val, 0); - return; - } - t = tm; /* else repeat with 'tm' */ - } - luaG_runerror(L, "loop in settable"); -} - - -static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, - StkId res, TMS event) { - const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ - if (ttisnil(tm)) - tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ - if (ttisnil(tm)) return 0; - callTM(L, tm, p1, p2, res, 1); - return 1; -} - - -static const TValue *get_equalTM (lua_State *L, Table *mt1, Table *mt2, - TMS event) { - const TValue *tm1 = fasttm(L, mt1, event); - const TValue *tm2; - if (tm1 == NULL) return NULL; /* no metamethod */ - if (mt1 == mt2) return tm1; /* same metatables => same metamethods */ - tm2 = fasttm(L, mt2, event); - if (tm2 == NULL) return NULL; /* no metamethod */ - if (luaV_rawequalobj(tm1, tm2)) /* same metamethods? */ - return tm1; - return NULL; -} - - -static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2, - TMS event) { - if (!call_binTM(L, p1, p2, L->top, event)) - return -1; /* no metamethod */ - else - return !l_isfalse(L->top); -} - - -static int l_strcmp (const TString *ls, const TString *rs) { - const char *l = getstr(ls); - size_t ll = ls->tsv.len; - const char *r = getstr(rs); - size_t lr = rs->tsv.len; - for (;;) { - int temp = strcoll(l, r); - if (temp != 0) return temp; - else { /* strings are equal up to a `\0' */ - size_t len = strlen(l); /* index of first `\0' in both strings */ - if (len == lr) /* r is finished? */ - return (len == ll) ? 0 : 1; - else if (len == ll) /* l is finished? */ - return -1; /* l is smaller than r (because r is not finished) */ - /* both strings longer than `len'; go on comparing (after the `\0') */ - len++; - l += len; ll -= len; r += len; lr -= len; - } - } -} - - -int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) { - int res; - if (ttisnumber(l) && ttisnumber(r)) - return luai_numlt(L, nvalue(l), nvalue(r)); - else if (ttisstring(l) && ttisstring(r)) - return l_strcmp(rawtsvalue(l), rawtsvalue(r)) < 0; - else if ((res = call_orderTM(L, l, r, TM_LT)) < 0) - luaG_ordererror(L, l, r); - return res; -} - - -int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) { - int res; - if (ttisnumber(l) && ttisnumber(r)) - return luai_numle(L, nvalue(l), nvalue(r)); - else if (ttisstring(l) && ttisstring(r)) - return l_strcmp(rawtsvalue(l), rawtsvalue(r)) <= 0; - else if ((res = call_orderTM(L, l, r, TM_LE)) >= 0) /* first try `le' */ - return res; - else if ((res = call_orderTM(L, r, l, TM_LT)) < 0) /* else try `lt' */ - luaG_ordererror(L, l, r); - return !res; -} - - -/* -** equality of Lua values. L == NULL means raw equality (no metamethods) -*/ -int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2) { - const TValue *tm; - lua_assert(ttisequal(t1, t2)); - switch (ttype(t1)) { - case LUA_TNIL: return 1; - case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2)); - case LUA_TBOOLEAN: return bvalue(t1) == bvalue(t2); /* true must be 1 !! */ - case LUA_TLIGHTUSERDATA: return pvalue(t1) == pvalue(t2); - case LUA_TLCF: return fvalue(t1) == fvalue(t2); - case LUA_TSHRSTR: return eqshrstr(rawtsvalue(t1), rawtsvalue(t2)); - case LUA_TLNGSTR: return luaS_eqlngstr(rawtsvalue(t1), rawtsvalue(t2)); - case LUA_TUSERDATA: { - if (uvalue(t1) == uvalue(t2)) return 1; - else if (L == NULL) return 0; - tm = get_equalTM(L, uvalue(t1)->metatable, uvalue(t2)->metatable, TM_EQ); - break; /* will try TM */ - } - case LUA_TTABLE: { - if (hvalue(t1) == hvalue(t2)) return 1; - else if (L == NULL) return 0; - tm = get_equalTM(L, hvalue(t1)->metatable, hvalue(t2)->metatable, TM_EQ); - break; /* will try TM */ - } - default: - lua_assert(iscollectable(t1)); - return gcvalue(t1) == gcvalue(t2); - } - if (tm == NULL) return 0; /* no TM? */ - callTM(L, tm, t1, t2, L->top, 1); /* call TM */ - return !l_isfalse(L->top); -} - - -void luaV_concat (lua_State *L, int total) { - lua_assert(total >= 2); - do { - StkId top = L->top; - int n = 2; /* number of elements handled in this pass (at least 2) */ - if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { - if (!call_binTM(L, top-2, top-1, top-2, TM_CONCAT)) - luaG_concaterror(L, top-2, top-1); - } - else if (tsvalue(top-1)->len == 0) /* second operand is empty? */ - (void)tostring(L, top - 2); /* result is first operand */ - else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { - setobjs2s(L, top - 2, top - 1); /* result is second op. */ - } - else { - /* at least two non-empty string values; get as many as possible */ - size_t tl = tsvalue(top-1)->len; - char *buffer; - int i; - /* collect total length */ - for (i = 1; i < total && tostring(L, top-i-1); i++) { - size_t l = tsvalue(top-i-1)->len; - if (l >= (MAX_SIZET/sizeof(char)) - tl) - luaG_runerror(L, "string length overflow"); - tl += l; - } - buffer = luaZ_openspace(L, &G(L)->buff, tl); - tl = 0; - n = i; - do { /* concat all strings */ - size_t l = tsvalue(top-i)->len; - memcpy(buffer+tl, svalue(top-i), l * sizeof(char)); - tl += l; - } while (--i > 0); - setsvalue2s(L, top-n, luaS_newlstr(L, buffer, tl)); - } - total -= n-1; /* got 'n' strings to create 1 new */ - L->top -= n-1; /* popped 'n' strings and pushed one */ - } while (total > 1); /* repeat until only 1 result left */ -} - - -void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { - const TValue *tm; - switch (ttypenv(rb)) { - case LUA_TTABLE: { - Table *h = hvalue(rb); - tm = fasttm(L, h->metatable, TM_LEN); - if (tm) break; /* metamethod? break switch to call it */ - setnvalue(ra, cast_num(luaH_getn(h))); /* else primitive len */ - return; - } - case LUA_TSTRING: { - setnvalue(ra, cast_num(tsvalue(rb)->len)); - return; - } - default: { /* try metamethod */ - tm = luaT_gettmbyobj(L, rb, TM_LEN); - if (ttisnil(tm)) /* no metamethod? */ - luaG_typeerror(L, rb, "get length of"); - break; - } - } - callTM(L, tm, rb, rb, ra, 1); -} - - -void luaV_arith (lua_State *L, StkId ra, const TValue *rb, - const TValue *rc, TMS op) { - TValue tempb, tempc; - const TValue *b, *c; - if ((b = luaV_tonumber(rb, &tempb)) != NULL && - (c = luaV_tonumber(rc, &tempc)) != NULL) { - lua_Number res = luaO_arith(op - TM_ADD + LUA_OPADD, nvalue(b), nvalue(c)); - setnvalue(ra, res); - } - else if (!call_binTM(L, rb, rc, ra, op)) - luaG_aritherror(L, rb, rc); -} - - -/* -** check whether cached closure in prototype 'p' may be reused, that is, -** whether there is a cached closure with the same upvalues needed by -** new closure to be created. -*/ -static Closure *getcached (Proto *p, UpVal **encup, StkId base) { - Closure *c = p->cache; - if (c != NULL) { /* is there a cached closure? */ - int nup = p->sizeupvalues; - Upvaldesc *uv = p->upvalues; - int i; - for (i = 0; i < nup; i++) { /* check whether it has right upvalues */ - TValue *v = uv[i].instack ? base + uv[i].idx : encup[uv[i].idx]->v; - if (c->l.upvals[i]->v != v) - return NULL; /* wrong upvalue; cannot reuse closure */ - } - } - return c; /* return cached closure (or NULL if no cached closure) */ -} - - -/* -** create a new Lua closure, push it in the stack, and initialize -** its upvalues. Note that the call to 'luaC_barrierproto' must come -** before the assignment to 'p->cache', as the function needs the -** original value of that field. -*/ -static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, - StkId ra) { - int nup = p->sizeupvalues; - Upvaldesc *uv = p->upvalues; - int i; - Closure *ncl = luaF_newLclosure(L, nup); - ncl->l.p = p; - setclLvalue(L, ra, ncl); /* anchor new closure in stack */ - for (i = 0; i < nup; i++) { /* fill in its upvalues */ - if (uv[i].instack) /* upvalue refers to local variable? */ - ncl->l.upvals[i] = luaF_findupval(L, base + uv[i].idx); - else /* get upvalue from enclosing function */ - ncl->l.upvals[i] = encup[uv[i].idx]; - } - luaC_barrierproto(L, p, ncl); - p->cache = ncl; /* save it on cache for reuse */ -} - - -/* -** finish execution of an opcode interrupted by an yield -*/ -void luaV_finishOp (lua_State *L) { - CallInfo *ci = L->ci; - StkId base = ci->u.l.base; - Instruction inst = *(ci->u.l.savedpc - 1); /* interrupted instruction */ - OpCode op = GET_OPCODE(inst); - switch (op) { /* finish its execution */ - case OP_ADD: case OP_SUB: case OP_MUL: case OP_DIV: - case OP_MOD: case OP_POW: case OP_UNM: case OP_LEN: - case OP_GETTABUP: case OP_GETTABLE: case OP_SELF: { - setobjs2s(L, base + GETARG_A(inst), --L->top); - break; - } - case OP_LE: case OP_LT: case OP_EQ: { - int res = !l_isfalse(L->top - 1); - L->top--; - /* metamethod should not be called when operand is K */ - lua_assert(!ISK(GETARG_B(inst))); - if (op == OP_LE && /* "<=" using "<" instead? */ - ttisnil(luaT_gettmbyobj(L, base + GETARG_B(inst), TM_LE))) - res = !res; /* invert result */ - lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_JMP); - if (res != GETARG_A(inst)) /* condition failed? */ - ci->u.l.savedpc++; /* skip jump instruction */ - break; - } - case OP_CONCAT: { - StkId top = L->top - 1; /* top when 'call_binTM' was called */ - int b = GETARG_B(inst); /* first element to concatenate */ - int total = cast_int(top - 1 - (base + b)); /* yet to concatenate */ - setobj2s(L, top - 2, top); /* put TM result in proper position */ - if (total > 1) { /* are there elements to concat? */ - L->top = top - 1; /* top is one after last element (at top-2) */ - luaV_concat(L, total); /* concat them (may yield again) */ - } - /* move final result to final position */ - setobj2s(L, ci->u.l.base + GETARG_A(inst), L->top - 1); - L->top = ci->top; /* restore top */ - break; - } - case OP_TFORCALL: { - lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_TFORLOOP); - L->top = ci->top; /* correct top */ - break; - } - case OP_CALL: { - if (GETARG_C(inst) - 1 >= 0) /* nresults >= 0? */ - L->top = ci->top; /* adjust results */ - break; - } - case OP_TAILCALL: case OP_SETTABUP: case OP_SETTABLE: - break; - default: lua_assert(0); - } -} - - - -/* -** some macros for common tasks in `luaV_execute' -*/ - -#if !defined luai_runtimecheck -#define luai_runtimecheck(L, c) /* void */ -#endif - - -#define RA(i) (base+GETARG_A(i)) -/* to be used after possible stack reallocation */ -#define RB(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgR, base+GETARG_B(i)) -#define RC(i) check_exp(getCMode(GET_OPCODE(i)) == OpArgR, base+GETARG_C(i)) -#define RKB(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgK, \ - ISK(GETARG_B(i)) ? k+INDEXK(GETARG_B(i)) : base+GETARG_B(i)) -#define RKC(i) check_exp(getCMode(GET_OPCODE(i)) == OpArgK, \ - ISK(GETARG_C(i)) ? k+INDEXK(GETARG_C(i)) : base+GETARG_C(i)) -#define KBx(i) \ - (k + (GETARG_Bx(i) != 0 ? GETARG_Bx(i) - 1 : GETARG_Ax(*ci->u.l.savedpc++))) - - -/* execute a jump instruction */ -#define dojump(ci,i,e) \ - { int a = GETARG_A(i); \ - if (a > 0) luaF_close(L, ci->u.l.base + a - 1); \ - ci->u.l.savedpc += GETARG_sBx(i) + e; } - -/* for test instructions, execute the jump instruction that follows it */ -#define donextjump(ci) { i = *ci->u.l.savedpc; dojump(ci, i, 1); } - - -#define Protect(x) { {x;}; base = ci->u.l.base; } - -#define checkGC(L,c) \ - Protect( luaC_condGC(L,{L->top = (c); /* limit of live values */ \ - luaC_step(L); \ - L->top = ci->top;}) /* restore top */ \ - luai_threadyield(L); ) - - -#define arith_op(op,tm) { \ - TValue *rb = RKB(i); \ - TValue *rc = RKC(i); \ - if (ttisnumber(rb) && ttisnumber(rc)) { \ - lua_Number nb = nvalue(rb), nc = nvalue(rc); \ - setnvalue(ra, op(L, nb, nc)); \ - } \ - else { Protect(luaV_arith(L, ra, rb, rc, tm)); } } - - -#define vmdispatch(o) switch(o) -#define vmcase(l,b) case l: {b} break; -#define vmcasenb(l,b) case l: {b} /* nb = no break */ - -void luaV_execute (lua_State *L) { - CallInfo *ci = L->ci; - LClosure *cl; - TValue *k; - StkId base; - newframe: /* reentry point when frame changes (call/return) */ - lua_assert(ci == L->ci); - cl = clLvalue(ci->func); - k = cl->p->k; - base = ci->u.l.base; - /* main loop of interpreter */ - for (;;) { - Instruction i = *(ci->u.l.savedpc++); - StkId ra; - if ((L->hookmask & (LUA_MASKLINE | LUA_MASKCOUNT)) && - (--L->hookcount == 0 || L->hookmask & LUA_MASKLINE)) { - Protect(traceexec(L)); - } - /* WARNING: several calls may realloc the stack and invalidate `ra' */ - ra = RA(i); - lua_assert(base == ci->u.l.base); - lua_assert(base <= L->top && L->top < L->stack + L->stacksize); - vmdispatch (GET_OPCODE(i)) { - vmcase(OP_MOVE, - setobjs2s(L, ra, RB(i)); - ) - vmcase(OP_LOADK, - TValue *rb = k + GETARG_Bx(i); - setobj2s(L, ra, rb); - ) - vmcase(OP_LOADKX, - TValue *rb; - lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_EXTRAARG); - rb = k + GETARG_Ax(*ci->u.l.savedpc++); - setobj2s(L, ra, rb); - ) - vmcase(OP_LOADBOOL, - setbvalue(ra, GETARG_B(i)); - if (GETARG_C(i)) ci->u.l.savedpc++; /* skip next instruction (if C) */ - ) - vmcase(OP_LOADNIL, - int b = GETARG_B(i); - do { - setnilvalue(ra++); - } while (b--); - ) - vmcase(OP_GETUPVAL, - int b = GETARG_B(i); - setobj2s(L, ra, cl->upvals[b]->v); - ) - vmcase(OP_GETTABUP, - int b = GETARG_B(i); - Protect(luaV_gettable(L, cl->upvals[b]->v, RKC(i), ra)); - ) - vmcase(OP_GETTABLE, - Protect(luaV_gettable(L, RB(i), RKC(i), ra)); - ) - vmcase(OP_SETTABUP, - int a = GETARG_A(i); - Protect(luaV_settable(L, cl->upvals[a]->v, RKB(i), RKC(i))); - ) - vmcase(OP_SETUPVAL, - UpVal *uv = cl->upvals[GETARG_B(i)]; - setobj(L, uv->v, ra); - luaC_barrier(L, uv, ra); - ) - vmcase(OP_SETTABLE, - Protect(luaV_settable(L, ra, RKB(i), RKC(i))); - ) - vmcase(OP_NEWTABLE, - int b = GETARG_B(i); - int c = GETARG_C(i); - Table *t = luaH_new(L); - sethvalue(L, ra, t); - if (b != 0 || c != 0) - luaH_resize(L, t, luaO_fb2int(b), luaO_fb2int(c)); - checkGC(L, ra + 1); - ) - vmcase(OP_SELF, - StkId rb = RB(i); - setobjs2s(L, ra+1, rb); - Protect(luaV_gettable(L, rb, RKC(i), ra)); - ) - vmcase(OP_ADD, - arith_op(luai_numadd, TM_ADD); - ) - vmcase(OP_SUB, - arith_op(luai_numsub, TM_SUB); - ) - vmcase(OP_MUL, - arith_op(luai_nummul, TM_MUL); - ) - vmcase(OP_DIV, - arith_op(luai_numdiv, TM_DIV); - ) - vmcase(OP_MOD, - arith_op(luai_nummod, TM_MOD); - ) - vmcase(OP_POW, - arith_op(luai_numpow, TM_POW); - ) - vmcase(OP_UNM, - TValue *rb = RB(i); - if (ttisnumber(rb)) { - lua_Number nb = nvalue(rb); - setnvalue(ra, luai_numunm(L, nb)); - } - else { - Protect(luaV_arith(L, ra, rb, rb, TM_UNM)); - } - ) - vmcase(OP_NOT, - TValue *rb = RB(i); - int res = l_isfalse(rb); /* next assignment may change this value */ - setbvalue(ra, res); - ) - vmcase(OP_LEN, - Protect(luaV_objlen(L, ra, RB(i))); - ) - vmcase(OP_CONCAT, - int b = GETARG_B(i); - int c = GETARG_C(i); - StkId rb; - L->top = base + c + 1; /* mark the end of concat operands */ - Protect(luaV_concat(L, c - b + 1)); - ra = RA(i); /* 'luav_concat' may invoke TMs and move the stack */ - rb = b + base; - setobjs2s(L, ra, rb); - checkGC(L, (ra >= rb ? ra + 1 : rb)); - L->top = ci->top; /* restore top */ - ) - vmcase(OP_JMP, - dojump(ci, i, 0); - ) - vmcase(OP_EQ, - TValue *rb = RKB(i); - TValue *rc = RKC(i); - Protect( - if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i)) - ci->u.l.savedpc++; - else - donextjump(ci); - ) - ) - vmcase(OP_LT, - Protect( - if (luaV_lessthan(L, RKB(i), RKC(i)) != GETARG_A(i)) - ci->u.l.savedpc++; - else - donextjump(ci); - ) - ) - vmcase(OP_LE, - Protect( - if (luaV_lessequal(L, RKB(i), RKC(i)) != GETARG_A(i)) - ci->u.l.savedpc++; - else - donextjump(ci); - ) - ) - vmcase(OP_TEST, - if (GETARG_C(i) ? l_isfalse(ra) : !l_isfalse(ra)) - ci->u.l.savedpc++; - else - donextjump(ci); - ) - vmcase(OP_TESTSET, - TValue *rb = RB(i); - if (GETARG_C(i) ? l_isfalse(rb) : !l_isfalse(rb)) - ci->u.l.savedpc++; - else { - setobjs2s(L, ra, rb); - donextjump(ci); - } - ) - vmcase(OP_CALL, - int b = GETARG_B(i); - int nresults = GETARG_C(i) - 1; - if (b != 0) L->top = ra+b; /* else previous instruction set top */ - if (luaD_precall(L, ra, nresults)) { /* C function? */ - if (nresults >= 0) L->top = ci->top; /* adjust results */ - base = ci->u.l.base; - } - else { /* Lua function */ - ci = L->ci; - ci->callstatus |= CIST_REENTRY; - goto newframe; /* restart luaV_execute over new Lua function */ - } - ) - vmcase(OP_TAILCALL, - int b = GETARG_B(i); - if (b != 0) L->top = ra+b; /* else previous instruction set top */ - lua_assert(GETARG_C(i) - 1 == LUA_MULTRET); - if (luaD_precall(L, ra, LUA_MULTRET)) /* C function? */ - base = ci->u.l.base; - else { - /* tail call: put called frame (n) in place of caller one (o) */ - CallInfo *nci = L->ci; /* called frame */ - CallInfo *oci = nci->previous; /* caller frame */ - StkId nfunc = nci->func; /* called function */ - StkId ofunc = oci->func; /* caller function */ - /* last stack slot filled by 'precall' */ - StkId lim = nci->u.l.base + getproto(nfunc)->numparams; - int aux; - /* close all upvalues from previous call */ - if (cl->p->sizep > 0) luaF_close(L, oci->u.l.base); - /* move new frame into old one */ - for (aux = 0; nfunc + aux < lim; aux++) - setobjs2s(L, ofunc + aux, nfunc + aux); - oci->u.l.base = ofunc + (nci->u.l.base - nfunc); /* correct base */ - oci->top = L->top = ofunc + (L->top - nfunc); /* correct top */ - oci->u.l.savedpc = nci->u.l.savedpc; - oci->callstatus |= CIST_TAIL; /* function was tail called */ - ci = L->ci = oci; /* remove new frame */ - lua_assert(L->top == oci->u.l.base + getproto(ofunc)->maxstacksize); - goto newframe; /* restart luaV_execute over new Lua function */ - } - ) - vmcasenb(OP_RETURN, - int b = GETARG_B(i); - if (b != 0) L->top = ra+b-1; - if (cl->p->sizep > 0) luaF_close(L, base); - b = luaD_poscall(L, ra); - if (!(ci->callstatus & CIST_REENTRY)) /* 'ci' still the called one */ - return; /* external invocation: return */ - else { /* invocation via reentry: continue execution */ - ci = L->ci; - if (b) L->top = ci->top; - lua_assert(isLua(ci)); - lua_assert(GET_OPCODE(*((ci)->u.l.savedpc - 1)) == OP_CALL); - goto newframe; /* restart luaV_execute over new Lua function */ - } - ) - vmcase(OP_FORLOOP, - lua_Number step = nvalue(ra+2); - lua_Number idx = luai_numadd(L, nvalue(ra), step); /* increment index */ - lua_Number limit = nvalue(ra+1); - if (luai_numlt(L, 0, step) ? luai_numle(L, idx, limit) - : luai_numle(L, limit, idx)) { - ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ - setnvalue(ra, idx); /* update internal index... */ - setnvalue(ra+3, idx); /* ...and external index */ - } - ) - vmcase(OP_FORPREP, - const TValue *init = ra; - const TValue *plimit = ra+1; - const TValue *pstep = ra+2; - if (!tonumber(init, ra)) - luaG_runerror(L, LUA_QL("for") " initial value must be a number"); - else if (!tonumber(plimit, ra+1)) - luaG_runerror(L, LUA_QL("for") " limit must be a number"); - else if (!tonumber(pstep, ra+2)) - luaG_runerror(L, LUA_QL("for") " step must be a number"); - setnvalue(ra, luai_numsub(L, nvalue(ra), nvalue(pstep))); - ci->u.l.savedpc += GETARG_sBx(i); - ) - vmcasenb(OP_TFORCALL, - StkId cb = ra + 3; /* call base */ - setobjs2s(L, cb+2, ra+2); - setobjs2s(L, cb+1, ra+1); - setobjs2s(L, cb, ra); - L->top = cb + 3; /* func. + 2 args (state and index) */ - Protect(luaD_call(L, cb, GETARG_C(i), 1)); - L->top = ci->top; - i = *(ci->u.l.savedpc++); /* go to next instruction */ - ra = RA(i); - lua_assert(GET_OPCODE(i) == OP_TFORLOOP); - goto l_tforloop; - ) - vmcase(OP_TFORLOOP, - l_tforloop: - if (!ttisnil(ra + 1)) { /* continue loop? */ - setobjs2s(L, ra, ra + 1); /* save control variable */ - ci->u.l.savedpc += GETARG_sBx(i); /* jump back */ - } - ) - vmcase(OP_SETLIST, - int n = GETARG_B(i); - int c = GETARG_C(i); - int last; - Table *h; - if (n == 0) n = cast_int(L->top - ra) - 1; - if (c == 0) { - lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_EXTRAARG); - c = GETARG_Ax(*ci->u.l.savedpc++); - } - luai_runtimecheck(L, ttistable(ra)); - h = hvalue(ra); - last = ((c-1)*LFIELDS_PER_FLUSH) + n; - if (last > h->sizearray) /* needs more space? */ - luaH_resizearray(L, h, last); /* pre-allocate it at once */ - for (; n > 0; n--) { - TValue *val = ra+n; - luaH_setint(L, h, last--, val); - luaC_barrierback(L, obj2gco(h), val); - } - L->top = ci->top; /* correct top (in case of previous open call) */ - ) - vmcase(OP_CLOSURE, - Proto *p = cl->p->p[GETARG_Bx(i)]; - Closure *ncl = getcached(p, cl->upvals, base); /* cached closure */ - if (ncl == NULL) /* no match? */ - pushclosure(L, p, cl->upvals, base, ra); /* create a new one */ - else - setclLvalue(L, ra, ncl); /* push cashed closure */ - checkGC(L, ra + 1); - ) - vmcase(OP_VARARG, - int b = GETARG_B(i) - 1; - int j; - int n = cast_int(base - ci->func) - cl->p->numparams - 1; - if (b < 0) { /* B == 0? */ - b = n; /* get all var. arguments */ - Protect(luaD_checkstack(L, n)); - ra = RA(i); /* previous call may change the stack */ - L->top = ra + n; - } - for (j = 0; j < b; j++) { - if (j < n) { - setobjs2s(L, ra + j, base - n + j); - } - else { - setnilvalue(ra + j); - } - } - ) - vmcase(OP_EXTRAARG, - lua_assert(0); - ) - } - } -} - diff --git a/btgui/lua-5.2.3/src/lvm.h b/btgui/lua-5.2.3/src/lvm.h deleted file mode 100644 index 5380270da..000000000 --- a/btgui/lua-5.2.3/src/lvm.h +++ /dev/null @@ -1,44 +0,0 @@ -/* -** $Id: lvm.h,v 2.18.1.1 2013/04/12 18:48:47 roberto Exp $ -** Lua virtual machine -** See Copyright Notice in lua.h -*/ - -#ifndef lvm_h -#define lvm_h - - -#include "ldo.h" -#include "lobject.h" -#include "ltm.h" - - -#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o))) - -#define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) - -#define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2)) - -#define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2) - - -/* not to called directly */ -LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); - - -LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); -LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); -LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); -LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); -LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, - StkId val); -LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, - StkId val); -LUAI_FUNC void luaV_finishOp (lua_State *L); -LUAI_FUNC void luaV_execute (lua_State *L); -LUAI_FUNC void luaV_concat (lua_State *L, int total); -LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb, - const TValue *rc, TMS op); -LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb); - -#endif diff --git a/btgui/lua-5.2.3/src/lzio.c b/btgui/lua-5.2.3/src/lzio.c deleted file mode 100644 index 20efea983..000000000 --- a/btgui/lua-5.2.3/src/lzio.c +++ /dev/null @@ -1,76 +0,0 @@ -/* -** $Id: lzio.c,v 1.35.1.1 2013/04/12 18:48:47 roberto Exp $ -** Buffered streams -** See Copyright Notice in lua.h -*/ - - -#include - -#define lzio_c -#define LUA_CORE - -#include "lua.h" - -#include "llimits.h" -#include "lmem.h" -#include "lstate.h" -#include "lzio.h" - - -int luaZ_fill (ZIO *z) { - size_t size; - lua_State *L = z->L; - const char *buff; - lua_unlock(L); - buff = z->reader(L, z->data, &size); - lua_lock(L); - if (buff == NULL || size == 0) - return EOZ; - z->n = size - 1; /* discount char being returned */ - z->p = buff; - return cast_uchar(*(z->p++)); -} - - -void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) { - z->L = L; - z->reader = reader; - z->data = data; - z->n = 0; - z->p = NULL; -} - - -/* --------------------------------------------------------------- read --- */ -size_t luaZ_read (ZIO *z, void *b, size_t n) { - while (n) { - size_t m; - if (z->n == 0) { /* no bytes in buffer? */ - if (luaZ_fill(z) == EOZ) /* try to read more */ - return n; /* no more input; return number of missing bytes */ - else { - z->n++; /* luaZ_fill consumed first byte; put it back */ - z->p--; - } - } - m = (n <= z->n) ? n : z->n; /* min. between n and z->n */ - memcpy(b, z->p, m); - z->n -= m; - z->p += m; - b = (char *)b + m; - n -= m; - } - return 0; -} - -/* ------------------------------------------------------------------------ */ -char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { - if (n > buff->buffsize) { - if (n < LUA_MINBUFFER) n = LUA_MINBUFFER; - luaZ_resizebuffer(L, buff, n); - } - return buff->buffer; -} - - diff --git a/btgui/lua-5.2.3/src/lzio.h b/btgui/lua-5.2.3/src/lzio.h deleted file mode 100644 index 441f7479c..000000000 --- a/btgui/lua-5.2.3/src/lzio.h +++ /dev/null @@ -1,65 +0,0 @@ -/* -** $Id: lzio.h,v 1.26.1.1 2013/04/12 18:48:47 roberto Exp $ -** Buffered streams -** See Copyright Notice in lua.h -*/ - - -#ifndef lzio_h -#define lzio_h - -#include "lua.h" - -#include "lmem.h" - - -#define EOZ (-1) /* end of stream */ - -typedef struct Zio ZIO; - -#define zgetc(z) (((z)->n--)>0 ? cast_uchar(*(z)->p++) : luaZ_fill(z)) - - -typedef struct Mbuffer { - char *buffer; - size_t n; - size_t buffsize; -} Mbuffer; - -#define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) - -#define luaZ_buffer(buff) ((buff)->buffer) -#define luaZ_sizebuffer(buff) ((buff)->buffsize) -#define luaZ_bufflen(buff) ((buff)->n) - -#define luaZ_resetbuffer(buff) ((buff)->n = 0) - - -#define luaZ_resizebuffer(L, buff, size) \ - (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \ - (buff)->buffsize = size) - -#define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) - - -LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); -LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, - void *data); -LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ - - - -/* --------- Private Part ------------------ */ - -struct Zio { - size_t n; /* bytes still unread */ - const char *p; /* current position in buffer */ - lua_Reader reader; /* reader function */ - void* data; /* additional data */ - lua_State *L; /* Lua state (for reader) */ -}; - - -LUAI_FUNC int luaZ_fill (ZIO *z); - -#endif diff --git a/btgui/stb_image/stb_image.cpp b/btgui/stb_image/stb_image.cpp deleted file mode 100644 index 226d7a8c8..000000000 --- a/btgui/stb_image/stb_image.cpp +++ /dev/null @@ -1,4341 +0,0 @@ -#include "stb_image.h" - -#ifndef STBI_HEADER_FILE_ONLY - -#ifndef STBI_NO_HDR -#include // ldexp -#include // strcmp, strtok -#endif - -#ifndef STBI_NO_STDIO -#include -#endif -#include -#include -#include -#include - -#ifndef _MSC_VER - #ifdef __cplusplus - #define stbi_inline inline - #else - #define stbi_inline - #endif -#else - #define stbi_inline __forceinline -#endif - - -// implementation: -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef signed short int16; -typedef unsigned int uint32; -typedef signed int int32; -typedef unsigned int uint; - -// should produce compiler error if size is wrong -typedef unsigned char validate_uint32[sizeof(uint32)==4 ? 1 : -1]; - -#if defined(STBI_NO_STDIO) && !defined(STBI_NO_WRITE) -#define STBI_NO_WRITE -#endif - -#define STBI_NOTUSED(v) (void)sizeof(v) - -#ifdef _MSC_VER -#define STBI_HAS_LROTL -#endif - -#ifdef STBI_HAS_LROTL - #define stbi_lrot(x,y) _lrotl(x,y) -#else - #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (32 - (y)))) -#endif - -/////////////////////////////////////////////// -// -// stbi struct and start_xxx functions - -// stbi structure is our basic context used by all images, so it -// contains all the IO context, plus some basic image information -typedef struct -{ - uint32 img_x, img_y; - int img_n, img_out_n; - - stbi_io_callbacks io; - void *io_user_data; - - int read_from_callbacks; - int buflen; - uint8 buffer_start[128]; - - uint8 *img_buffer, *img_buffer_end; - uint8 *img_buffer_original; -} stbi; - - -static void refill_buffer(stbi *s); - -// initialize a memory-decode context -static void start_mem(stbi *s, uint8 const *buffer, int len) -{ - s->io.read = NULL; - s->read_from_callbacks = 0; - s->img_buffer = s->img_buffer_original = (uint8 *) buffer; - s->img_buffer_end = (uint8 *) buffer+len; -} - -// initialize a callback-based context -static void start_callbacks(stbi *s, stbi_io_callbacks *c, void *user) -{ - s->io = *c; - s->io_user_data = user; - s->buflen = sizeof(s->buffer_start); - s->read_from_callbacks = 1; - s->img_buffer_original = s->buffer_start; - refill_buffer(s); -} - -#ifndef STBI_NO_STDIO - -static int stdio_read(void *user, char *data, int size) -{ - return (int) fread(data,1,size,(FILE*) user); -} - -static void stdio_skip(void *user, unsigned n) -{ - fseek((FILE*) user, n, SEEK_CUR); -} - -static int stdio_eof(void *user) -{ - return feof((FILE*) user); -} - -static stbi_io_callbacks stbi_stdio_callbacks = -{ - stdio_read, - stdio_skip, - stdio_eof, -}; - -static void start_file(stbi *s, FILE *f) -{ - start_callbacks(s, &stbi_stdio_callbacks, (void *) f); -} - -//static void stop_file(stbi *s) { } - -#endif // !STBI_NO_STDIO - -static void stbi_rewind(stbi *s) -{ - // conceptually rewind SHOULD rewind to the beginning of the stream, - // but we just rewind to the beginning of the initial buffer, because - // we only use it after doing 'test', which only ever looks at at most 92 bytes - s->img_buffer = s->img_buffer_original; -} - -static int stbi_jpeg_test(stbi *s); -static stbi_uc *stbi_jpeg_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_jpeg_info(stbi *s, int *x, int *y, int *comp); -static int stbi_png_test(stbi *s); -static stbi_uc *stbi_png_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_png_info(stbi *s, int *x, int *y, int *comp); -static int stbi_bmp_test(stbi *s); -static stbi_uc *stbi_bmp_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_tga_test(stbi *s); -static stbi_uc *stbi_tga_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_tga_info(stbi *s, int *x, int *y, int *comp); -static int stbi_psd_test(stbi *s); -static stbi_uc *stbi_psd_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_hdr_test(stbi *s); -static float *stbi_hdr_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_pic_test(stbi *s); -static stbi_uc *stbi_pic_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_gif_test(stbi *s); -static stbi_uc *stbi_gif_load(stbi *s, int *x, int *y, int *comp, int req_comp); -static int stbi_gif_info(stbi *s, int *x, int *y, int *comp); - - -// this is not threadsafe -static const char *failure_reason; - -const char *stbi_failure_reason(void) -{ - return failure_reason; -} - -static int e(const char *str) -{ - failure_reason = str; - return 0; -} - -// e - error -// epf - error returning pointer to float -// epuc - error returning pointer to unsigned char - -#ifdef STBI_NO_FAILURE_STRINGS - #define e(x,y) 0 -#elif defined(STBI_FAILURE_USERMSG) - #define e(x,y) e(y) -#else - #define e(x,y) e(x) -#endif - -#define epf(x,y) ((float *) (e(x,y)?NULL:NULL)) -#define epuc(x,y) ((unsigned char *) (e(x,y)?NULL:NULL)) - -void stbi_image_free(void *retval_from_stbi_load) -{ - free(retval_from_stbi_load); -} - -#ifndef STBI_NO_HDR -static float *ldr_to_hdr(stbi_uc *data, int x, int y, int comp); -static stbi_uc *hdr_to_ldr(float *data, int x, int y, int comp); -#endif - -static unsigned char *stbi_load_main(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - if (stbi_jpeg_test(s)) return stbi_jpeg_load(s,x,y,comp,req_comp); - if (stbi_png_test(s)) return stbi_png_load(s,x,y,comp,req_comp); - if (stbi_bmp_test(s)) return stbi_bmp_load(s,x,y,comp,req_comp); - if (stbi_gif_test(s)) return stbi_gif_load(s,x,y,comp,req_comp); - if (stbi_psd_test(s)) return stbi_psd_load(s,x,y,comp,req_comp); - if (stbi_pic_test(s)) return stbi_pic_load(s,x,y,comp,req_comp); - - #ifndef STBI_NO_HDR - if (stbi_hdr_test(s)) { - float *hdr = stbi_hdr_load(s, x,y,comp,req_comp); - return hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp); - } - #endif - - // test tga last because it's a crappy test! - if (stbi_tga_test(s)) - return stbi_tga_load(s,x,y,comp,req_comp); - return epuc("unknown image type", "Image not of any known type, or corrupt"); -} - -#ifndef STBI_NO_STDIO -unsigned char *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) -{ - FILE *f = fopen(filename, "rb"); - unsigned char *result; - if (!f) return epuc("can't fopen", "Unable to open file"); - result = stbi_load_from_file(f,x,y,comp,req_comp); - fclose(f); - return result; -} - -unsigned char *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_file(&s,f); - return stbi_load_main(&s,x,y,comp,req_comp); -} -#endif //!STBI_NO_STDIO - -unsigned char *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_mem(&s,buffer,len); - return stbi_load_main(&s,x,y,comp,req_comp); -} - -unsigned char *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_callbacks(&s, (stbi_io_callbacks *) clbk, user); - return stbi_load_main(&s,x,y,comp,req_comp); -} - -#ifndef STBI_NO_HDR - -float *stbi_loadf_main(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - unsigned char *data; - #ifndef STBI_NO_HDR - if (stbi_hdr_test(s)) - return stbi_hdr_load(s,x,y,comp,req_comp); - #endif - data = stbi_load_main(s, x, y, comp, req_comp); - if (data) - return ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp); - return epf("unknown image type", "Image not of any known type, or corrupt"); -} - -float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_mem(&s,buffer,len); - return stbi_loadf_main(&s,x,y,comp,req_comp); -} - -float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_callbacks(&s, (stbi_io_callbacks *) clbk, user); - return stbi_loadf_main(&s,x,y,comp,req_comp); -} - -#ifndef STBI_NO_STDIO -float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp) -{ - FILE *f = fopen(filename, "rb"); - float *result; - if (!f) return epf("can't fopen", "Unable to open file"); - result = stbi_loadf_from_file(f,x,y,comp,req_comp); - fclose(f); - return result; -} - -float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) -{ - stbi s; - start_file(&s,f); - return stbi_loadf_main(&s,x,y,comp,req_comp); -} -#endif // !STBI_NO_STDIO - -#endif // !STBI_NO_HDR - -// these is-hdr-or-not is defined independent of whether STBI_NO_HDR is -// defined, for API simplicity; if STBI_NO_HDR is defined, it always -// reports false! - -int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len) -{ - #ifndef STBI_NO_HDR - stbi s; - start_mem(&s,buffer,len); - return stbi_hdr_test(&s); - #else - STBI_NOTUSED(buffer); - STBI_NOTUSED(len); - return 0; - #endif -} - -#ifndef STBI_NO_STDIO -extern int stbi_is_hdr (char const *filename) -{ - FILE *f = fopen(filename, "rb"); - int result=0; - if (f) { - result = stbi_is_hdr_from_file(f); - fclose(f); - } - return result; -} - -extern int stbi_is_hdr_from_file(FILE *f) -{ - #ifndef STBI_NO_HDR - stbi s; - start_file(&s,f); - return stbi_hdr_test(&s); - #else - return 0; - #endif -} -#endif // !STBI_NO_STDIO - -extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) -{ - #ifndef STBI_NO_HDR - stbi s; - start_callbacks(&s, (stbi_io_callbacks *) clbk, user); - return stbi_hdr_test(&s); - #else - return 0; - #endif -} - -#ifndef STBI_NO_HDR -static float h2l_gamma_i=1.0f/2.2f, h2l_scale_i=1.0f; -static float l2h_gamma=2.2f, l2h_scale=1.0f; - -void stbi_hdr_to_ldr_gamma(float gamma) { h2l_gamma_i = 1/gamma; } -void stbi_hdr_to_ldr_scale(float scale) { h2l_scale_i = 1/scale; } - -void stbi_ldr_to_hdr_gamma(float gamma) { l2h_gamma = gamma; } -void stbi_ldr_to_hdr_scale(float scale) { l2h_scale = scale; } -#endif - - -////////////////////////////////////////////////////////////////////////////// -// -// Common code used by all image loaders -// - -enum -{ - SCAN_load=0, - SCAN_type, - SCAN_header -}; - -static void refill_buffer(stbi *s) -{ - int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen); - if (n == 0) { - // at end of file, treat same as if from memory - s->read_from_callbacks = 0; - s->img_buffer = s->img_buffer_end-1; - *s->img_buffer = 0; - } else { - s->img_buffer = s->buffer_start; - s->img_buffer_end = s->buffer_start + n; - } -} - -stbi_inline static int get8(stbi *s) -{ - if (s->img_buffer < s->img_buffer_end) - return *s->img_buffer++; - if (s->read_from_callbacks) { - refill_buffer(s); - return *s->img_buffer++; - } - return 0; -} - -stbi_inline static int at_eof(stbi *s) -{ - if (s->io.read) { - if (!(s->io.eof)(s->io_user_data)) return 0; - // if feof() is true, check if buffer = end - // special case: we've only got the special 0 character at the end - if (s->read_from_callbacks == 0) return 1; - } - - return s->img_buffer >= s->img_buffer_end; -} - -stbi_inline static uint8 get8u(stbi *s) -{ - return (uint8) get8(s); -} - -static void skip(stbi *s, int n) -{ - if (s->io.read) { - int blen = s->img_buffer_end - s->img_buffer; - if (blen < n) { - s->img_buffer = s->img_buffer_end; - (s->io.skip)(s->io_user_data, n - blen); - return; - } - } - s->img_buffer += n; -} - -static int getn(stbi *s, stbi_uc *buffer, int n) -{ - if (s->io.read) { - int blen = s->img_buffer_end - s->img_buffer; - if (blen < n) { - int res, count; - - memcpy(buffer, s->img_buffer, blen); - - count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen); - res = (count == (n-blen)); - s->img_buffer = s->img_buffer_end; - return res; - } - } - - if (s->img_buffer+n <= s->img_buffer_end) { - memcpy(buffer, s->img_buffer, n); - s->img_buffer += n; - return 1; - } else - return 0; -} - -static int get16(stbi *s) -{ - int z = get8(s); - return (z << 8) + get8(s); -} - -static uint32 get32(stbi *s) -{ - uint32 z = get16(s); - return (z << 16) + get16(s); -} - -static int get16le(stbi *s) -{ - int z = get8(s); - return z + (get8(s) << 8); -} - -static uint32 get32le(stbi *s) -{ - uint32 z = get16le(s); - return z + (get16le(s) << 16); -} - -////////////////////////////////////////////////////////////////////////////// -// -// generic converter from built-in img_n to req_comp -// individual types do this automatically as much as possible (e.g. jpeg -// does all cases internally since it needs to colorspace convert anyway, -// and it never has alpha, so very few cases ). png can automatically -// interleave an alpha=255 channel, but falls back to this for other cases -// -// assume data buffer is malloced, so malloc a new one and free that one -// only failure mode is malloc failing - -static uint8 compute_y(int r, int g, int b) -{ - return (uint8) (((r*77) + (g*150) + (29*b)) >> 8); -} - -static unsigned char *convert_format(unsigned char *data, int img_n, int req_comp, uint x, uint y) -{ - int i,j; - unsigned char *good; - - if (req_comp == img_n) return data; - assert(req_comp >= 1 && req_comp <= 4); - - good = (unsigned char *) malloc(req_comp * x * y); - if (good == NULL) { - free(data); - return epuc("outofmem", "Out of memory"); - } - - for (j=0; j < (int) y; ++j) { - unsigned char *src = data + j * x * img_n ; - unsigned char *dest = good + j * x * req_comp; - - #define COMBO(a,b) ((a)*8+(b)) - #define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) - // convert source image with img_n components to one with req_comp components; - // avoid switch per pixel, so use switch per scanline and massive macros - switch (COMBO(img_n, req_comp)) { - CASE(1,2) dest[0]=src[0], dest[1]=255; break; - CASE(1,3) dest[0]=dest[1]=dest[2]=src[0]; break; - CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255; break; - CASE(2,1) dest[0]=src[0]; break; - CASE(2,3) dest[0]=dest[1]=dest[2]=src[0]; break; - CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1]; break; - CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255; break; - CASE(3,1) dest[0]=compute_y(src[0],src[1],src[2]); break; - CASE(3,2) dest[0]=compute_y(src[0],src[1],src[2]), dest[1] = 255; break; - CASE(4,1) dest[0]=compute_y(src[0],src[1],src[2]); break; - CASE(4,2) dest[0]=compute_y(src[0],src[1],src[2]), dest[1] = src[3]; break; - CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2]; break; - default: assert(0); - } - #undef CASE - } - - free(data); - return good; -} - -#ifndef STBI_NO_HDR -static float *ldr_to_hdr(stbi_uc *data, int x, int y, int comp) -{ - int i,k,n; - float *output = (float *) malloc(x * y * comp * sizeof(float)); - if (output == NULL) { free(data); return epf("outofmem", "Out of memory"); } - // compute number of non-alpha components - if (comp & 1) n = comp; else n = comp-1; - for (i=0; i < x*y; ++i) { - for (k=0; k < n; ++k) { - output[i*comp + k] = (float) pow(data[i*comp+k]/255.0f, l2h_gamma) * l2h_scale; - } - if (k < comp) output[i*comp + k] = data[i*comp+k]/255.0f; - } - free(data); - return output; -} - -#define float2int(x) ((int) (x)) -static stbi_uc *hdr_to_ldr(float *data, int x, int y, int comp) -{ - int i,k,n; - stbi_uc *output = (stbi_uc *) malloc(x * y * comp); - if (output == NULL) { free(data); return epuc("outofmem", "Out of memory"); } - // compute number of non-alpha components - if (comp & 1) n = comp; else n = comp-1; - for (i=0; i < x*y; ++i) { - for (k=0; k < n; ++k) { - float z = (float) pow(data[i*comp+k]*h2l_scale_i, h2l_gamma_i) * 255 + 0.5f; - if (z < 0) z = 0; - if (z > 255) z = 255; - output[i*comp + k] = (uint8) float2int(z); - } - if (k < comp) { - float z = data[i*comp+k] * 255 + 0.5f; - if (z < 0) z = 0; - if (z > 255) z = 255; - output[i*comp + k] = (uint8) float2int(z); - } - } - free(data); - return output; -} -#endif - -////////////////////////////////////////////////////////////////////////////// -// -// "baseline" JPEG/JFIF decoder (not actually fully baseline implementation) -// -// simple implementation -// - channel subsampling of at most 2 in each dimension -// - doesn't support delayed output of y-dimension -// - simple interface (only one output format: 8-bit interleaved RGB) -// - doesn't try to recover corrupt jpegs -// - doesn't allow partial loading, loading multiple at once -// - still fast on x86 (copying globals into locals doesn't help x86) -// - allocates lots of intermediate memory (full size of all components) -// - non-interleaved case requires this anyway -// - allows good upsampling (see next) -// high-quality -// - upsampled channels are bilinearly interpolated, even across blocks -// - quality integer IDCT derived from IJG's 'slow' -// performance -// - fast huffman; reasonable integer IDCT -// - uses a lot of intermediate memory, could cache poorly -// - load http://nothings.org/remote/anemones.jpg 3 times on 2.8Ghz P4 -// stb_jpeg: 1.34 seconds (MSVC6, default release build) -// stb_jpeg: 1.06 seconds (MSVC6, processor = Pentium Pro) -// IJL11.dll: 1.08 seconds (compiled by intel) -// IJG 1998: 0.98 seconds (MSVC6, makefile provided by IJG) -// IJG 1998: 0.95 seconds (MSVC6, makefile + proc=PPro) - -// huffman decoding acceleration -#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache - -typedef struct -{ - uint8 fast[1 << FAST_BITS]; - // weirdly, repacking this into AoS is a 10% speed loss, instead of a win - uint16 code[256]; - uint8 values[256]; - uint8 size[257]; - unsigned int maxcode[18]; - int delta[17]; // old 'firstsymbol' - old 'firstcode' -} huffman; - -typedef struct -{ - #ifdef STBI_SIMD - unsigned short dequant2[4][64]; - #endif - stbi *s; - huffman huff_dc[4]; - huffman huff_ac[4]; - uint8 dequant[4][64]; - -// sizes for components, interleaved MCUs - int img_h_max, img_v_max; - int img_mcu_x, img_mcu_y; - int img_mcu_w, img_mcu_h; - -// definition of jpeg image component - struct - { - int id; - int h,v; - int tq; - int hd,ha; - int dc_pred; - - int x,y,w2,h2; - uint8 *data; - void *raw_data; - uint8 *linebuf; - } img_comp[4]; - - uint32 code_buffer; // jpeg entropy-coded buffer - int code_bits; // number of valid bits - unsigned char marker; // marker seen while filling entropy buffer - int nomore; // flag if we saw a marker so must stop - - int scan_n, order[4]; - int restart_interval, todo; -} jpeg; - -static int build_huffman(huffman *h, int *count) -{ - int i,j,k=0,code; - // build size list for each symbol (from JPEG spec) - for (i=0; i < 16; ++i) - for (j=0; j < count[i]; ++j) - h->size[k++] = (uint8) (i+1); - h->size[k] = 0; - - // compute actual symbols (from jpeg spec) - code = 0; - k = 0; - for(j=1; j <= 16; ++j) { - // compute delta to add to code to compute symbol id - h->delta[j] = k - code; - if (h->size[k] == j) { - while (h->size[k] == j) - h->code[k++] = (uint16) (code++); - if (code-1 >= (1 << j)) return e("bad code lengths","Corrupt JPEG"); - } - // compute largest code + 1 for this size, preshifted as needed later - h->maxcode[j] = code << (16-j); - code <<= 1; - } - h->maxcode[j] = 0xffffffff; - - // build non-spec acceleration table; 255 is flag for not-accelerated - memset(h->fast, 255, 1 << FAST_BITS); - for (i=0; i < k; ++i) { - int s = h->size[i]; - if (s <= FAST_BITS) { - int c = h->code[i] << (FAST_BITS-s); - int m = 1 << (FAST_BITS-s); - for (j=0; j < m; ++j) { - h->fast[c+j] = (uint8) i; - } - } - } - return 1; -} - -static void grow_buffer_unsafe(jpeg *j) -{ - do { - int b = j->nomore ? 0 : get8(j->s); - if (b == 0xff) { - int c = get8(j->s); - if (c != 0) { - j->marker = (unsigned char) c; - j->nomore = 1; - return; - } - } - j->code_buffer |= b << (24 - j->code_bits); - j->code_bits += 8; - } while (j->code_bits <= 24); -} - -// (1 << n) - 1 -static uint32 bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}; - -// decode a jpeg huffman value from the bitstream -stbi_inline static int decode(jpeg *j, huffman *h) -{ - unsigned int temp; - int c,k; - - if (j->code_bits < 16) grow_buffer_unsafe(j); - - // look at the top FAST_BITS and determine what symbol ID it is, - // if the code is <= FAST_BITS - c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); - k = h->fast[c]; - if (k < 255) { - int s = h->size[k]; - if (s > j->code_bits) - return -1; - j->code_buffer <<= s; - j->code_bits -= s; - return h->values[k]; - } - - // naive test is to shift the code_buffer down so k bits are - // valid, then test against maxcode. To speed this up, we've - // preshifted maxcode left so that it has (16-k) 0s at the - // end; in other words, regardless of the number of bits, it - // wants to be compared against something shifted to have 16; - // that way we don't need to shift inside the loop. - temp = j->code_buffer >> 16; - for (k=FAST_BITS+1 ; ; ++k) - if (temp < h->maxcode[k]) - break; - if (k == 17) { - // error! code not found - j->code_bits -= 16; - return -1; - } - - if (k > j->code_bits) - return -1; - - // convert the huffman code to the symbol id - c = ((j->code_buffer >> (32 - k)) & bmask[k]) + h->delta[k]; - assert((((j->code_buffer) >> (32 - h->size[c])) & bmask[h->size[c]]) == h->code[c]); - - // convert the id to a symbol - j->code_bits -= k; - j->code_buffer <<= k; - return h->values[c]; -} - -// combined JPEG 'receive' and JPEG 'extend', since baseline -// always extends everything it receives. -stbi_inline static int extend_receive(jpeg *j, int n) -{ - unsigned int m = 1 << (n-1); - unsigned int k; - if (j->code_bits < n) grow_buffer_unsafe(j); - - #if 1 - k = stbi_lrot(j->code_buffer, n); - j->code_buffer = k & ~bmask[n]; - k &= bmask[n]; - j->code_bits -= n; - #else - k = (j->code_buffer >> (32 - n)) & bmask[n]; - j->code_bits -= n; - j->code_buffer <<= n; - #endif - // the following test is probably a random branch that won't - // predict well. I tried to table accelerate it but failed. - // maybe it's compiling as a conditional move? - if (k < m) - return (-1 << n) + k + 1; - else - return k; -} - -// given a value that's at position X in the zigzag stream, -// where does it appear in the 8x8 matrix coded as row-major? -static uint8 dezigzag[64+15] = -{ - 0, 1, 8, 16, 9, 2, 3, 10, - 17, 24, 32, 25, 18, 11, 4, 5, - 12, 19, 26, 33, 40, 48, 41, 34, - 27, 20, 13, 6, 7, 14, 21, 28, - 35, 42, 49, 56, 57, 50, 43, 36, - 29, 22, 15, 23, 30, 37, 44, 51, - 58, 59, 52, 45, 38, 31, 39, 46, - 53, 60, 61, 54, 47, 55, 62, 63, - // let corrupt input sample past end - 63, 63, 63, 63, 63, 63, 63, 63, - 63, 63, 63, 63, 63, 63, 63 -}; - -// decode one 64-entry block-- -static int decode_block(jpeg *j, short data[64], huffman *hdc, huffman *hac, int b) -{ - int diff,dc,k; - int t = decode(j, hdc); - if (t < 0) return e("bad huffman code","Corrupt JPEG"); - - // 0 all the ac values now so we can do it 32-bits at a time - memset(data,0,64*sizeof(data[0])); - - diff = t ? extend_receive(j, t) : 0; - dc = j->img_comp[b].dc_pred + diff; - j->img_comp[b].dc_pred = dc; - data[0] = (short) dc; - - // decode AC components, see JPEG spec - k = 1; - do { - int r,s; - int rs = decode(j, hac); - if (rs < 0) return e("bad huffman code","Corrupt JPEG"); - s = rs & 15; - r = rs >> 4; - if (s == 0) { - if (rs != 0xf0) break; // end block - k += 16; - } else { - k += r; - // decode into unzigzag'd location - data[dezigzag[k++]] = (short) extend_receive(j,s); - } - } while (k < 64); - return 1; -} - -// take a -128..127 value and clamp it and convert to 0..255 -stbi_inline static uint8 clamp(int x) -{ - // trick to use a single test to catch both cases - if ((unsigned int) x > 255) { - if (x < 0) return 0; - if (x > 255) return 255; - } - return (uint8) x; -} - -#define f2f(x) (int) (((x) * 4096 + 0.5)) -#define fsh(x) ((x) << 12) - -// derived from jidctint -- DCT_ISLOW -#define IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \ - int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \ - p2 = s2; \ - p3 = s6; \ - p1 = (p2+p3) * f2f(0.5411961f); \ - t2 = p1 + p3*f2f(-1.847759065f); \ - t3 = p1 + p2*f2f( 0.765366865f); \ - p2 = s0; \ - p3 = s4; \ - t0 = fsh(p2+p3); \ - t1 = fsh(p2-p3); \ - x0 = t0+t3; \ - x3 = t0-t3; \ - x1 = t1+t2; \ - x2 = t1-t2; \ - t0 = s7; \ - t1 = s5; \ - t2 = s3; \ - t3 = s1; \ - p3 = t0+t2; \ - p4 = t1+t3; \ - p1 = t0+t3; \ - p2 = t1+t2; \ - p5 = (p3+p4)*f2f( 1.175875602f); \ - t0 = t0*f2f( 0.298631336f); \ - t1 = t1*f2f( 2.053119869f); \ - t2 = t2*f2f( 3.072711026f); \ - t3 = t3*f2f( 1.501321110f); \ - p1 = p5 + p1*f2f(-0.899976223f); \ - p2 = p5 + p2*f2f(-2.562915447f); \ - p3 = p3*f2f(-1.961570560f); \ - p4 = p4*f2f(-0.390180644f); \ - t3 += p1+p4; \ - t2 += p2+p3; \ - t1 += p2+p4; \ - t0 += p1+p3; - -#ifdef STBI_SIMD -typedef unsigned short stbi_dequantize_t; -#else -typedef uint8 stbi_dequantize_t; -#endif - -// .344 seconds on 3*anemones.jpg -static void idct_block(uint8 *out, int out_stride, short data[64], stbi_dequantize_t *dequantize) -{ - int i,val[64],*v=val; - stbi_dequantize_t *dq = dequantize; - uint8 *o; - short *d = data; - - // columns - for (i=0; i < 8; ++i,++d,++dq, ++v) { - // if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing - if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0 - && d[40]==0 && d[48]==0 && d[56]==0) { - // no shortcut 0 seconds - // (1|2|3|4|5|6|7)==0 0 seconds - // all separate -0.047 seconds - // 1 && 2|3 && 4|5 && 6|7: -0.047 seconds - int dcterm = d[0] * dq[0] << 2; - v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm; - } else { - IDCT_1D(d[ 0]*dq[ 0],d[ 8]*dq[ 8],d[16]*dq[16],d[24]*dq[24], - d[32]*dq[32],d[40]*dq[40],d[48]*dq[48],d[56]*dq[56]) - // constants scaled things up by 1<<12; let's bring them back - // down, but keep 2 extra bits of precision - x0 += 512; x1 += 512; x2 += 512; x3 += 512; - v[ 0] = (x0+t3) >> 10; - v[56] = (x0-t3) >> 10; - v[ 8] = (x1+t2) >> 10; - v[48] = (x1-t2) >> 10; - v[16] = (x2+t1) >> 10; - v[40] = (x2-t1) >> 10; - v[24] = (x3+t0) >> 10; - v[32] = (x3-t0) >> 10; - } - } - - for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) { - // no fast case since the first 1D IDCT spread components out - IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7]) - // constants scaled things up by 1<<12, plus we had 1<<2 from first - // loop, plus horizontal and vertical each scale by sqrt(8) so together - // we've got an extra 1<<3, so 1<<17 total we need to remove. - // so we want to round that, which means adding 0.5 * 1<<17, - // aka 65536. Also, we'll end up with -128 to 127 that we want - // to encode as 0..255 by adding 128, so we'll add that before the shift - x0 += 65536 + (128<<17); - x1 += 65536 + (128<<17); - x2 += 65536 + (128<<17); - x3 += 65536 + (128<<17); - // tried computing the shifts into temps, or'ing the temps to see - // if any were out of range, but that was slower - o[0] = clamp((x0+t3) >> 17); - o[7] = clamp((x0-t3) >> 17); - o[1] = clamp((x1+t2) >> 17); - o[6] = clamp((x1-t2) >> 17); - o[2] = clamp((x2+t1) >> 17); - o[5] = clamp((x2-t1) >> 17); - o[3] = clamp((x3+t0) >> 17); - o[4] = clamp((x3-t0) >> 17); - } -} - -#ifdef STBI_SIMD -static stbi_idct_8x8 stbi_idct_installed = idct_block; - -void stbi_install_idct(stbi_idct_8x8 func) -{ - stbi_idct_installed = func; -} -#endif - -#define MARKER_none 0xff -// if there's a pending marker from the entropy stream, return that -// otherwise, fetch from the stream and get a marker. if there's no -// marker, return 0xff, which is never a valid marker value -static uint8 get_marker(jpeg *j) -{ - uint8 x; - if (j->marker != MARKER_none) { x = j->marker; j->marker = MARKER_none; return x; } - x = get8u(j->s); - if (x != 0xff) return MARKER_none; - while (x == 0xff) - x = get8u(j->s); - return x; -} - -// in each scan, we'll have scan_n components, and the order -// of the components is specified by order[] -#define RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) - -// after a restart interval, reset the entropy decoder and -// the dc prediction -static void reset(jpeg *j) -{ - j->code_bits = 0; - j->code_buffer = 0; - j->nomore = 0; - j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = 0; - j->marker = MARKER_none; - j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; - // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, - // since we don't even allow 1<<30 pixels -} - -static int parse_entropy_coded_data(jpeg *z) -{ - reset(z); - if (z->scan_n == 1) { - int i,j; - #ifdef STBI_SIMD - __declspec(align(16)) - #endif - short data[64]; - int n = z->order[0]; - // non-interleaved data, we just need to process one block at a time, - // in trivial scanline order - // number of blocks to do just depends on how many actual "pixels" this - // component has, independent of interleaved MCU blocking and such - int w = (z->img_comp[n].x+7) >> 3; - int h = (z->img_comp[n].y+7) >> 3; - for (j=0; j < h; ++j) { - for (i=0; i < w; ++i) { - if (!decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+z->img_comp[n].ha, n)) return 0; - #ifdef STBI_SIMD - stbi_idct_installed(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data, z->dequant2[z->img_comp[n].tq]); - #else - idct_block(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data, z->dequant[z->img_comp[n].tq]); - #endif - // every data block is an MCU, so countdown the restart interval - if (--z->todo <= 0) { - if (z->code_bits < 24) grow_buffer_unsafe(z); - // if it's NOT a restart, then just bail, so we get corrupt data - // rather than no data - if (!RESTART(z->marker)) return 1; - reset(z); - } - } - } - } else { // interleaved! - int i,j,k,x,y; - short data[64]; - for (j=0; j < z->img_mcu_y; ++j) { - for (i=0; i < z->img_mcu_x; ++i) { - // scan an interleaved mcu... process scan_n components in order - for (k=0; k < z->scan_n; ++k) { - int n = z->order[k]; - // scan out an mcu's worth of this component; that's just determined - // by the basic H and V specified for the component - for (y=0; y < z->img_comp[n].v; ++y) { - for (x=0; x < z->img_comp[n].h; ++x) { - int x2 = (i*z->img_comp[n].h + x)*8; - int y2 = (j*z->img_comp[n].v + y)*8; - if (!decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+z->img_comp[n].ha, n)) return 0; - #ifdef STBI_SIMD - stbi_idct_installed(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data, z->dequant2[z->img_comp[n].tq]); - #else - idct_block(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data, z->dequant[z->img_comp[n].tq]); - #endif - } - } - } - // after all interleaved components, that's an interleaved MCU, - // so now count down the restart interval - if (--z->todo <= 0) { - if (z->code_bits < 24) grow_buffer_unsafe(z); - // if it's NOT a restart, then just bail, so we get corrupt data - // rather than no data - if (!RESTART(z->marker)) return 1; - reset(z); - } - } - } - } - return 1; -} - -static int process_marker(jpeg *z, int m) -{ - int L; - switch (m) { - case MARKER_none: // no marker found - return e("expected marker","Corrupt JPEG"); - - case 0xC2: // SOF - progressive - return e("progressive jpeg","JPEG format not supported (progressive)"); - - case 0xDD: // DRI - specify restart interval - if (get16(z->s) != 4) return e("bad DRI len","Corrupt JPEG"); - z->restart_interval = get16(z->s); - return 1; - - case 0xDB: // DQT - define quantization table - L = get16(z->s)-2; - while (L > 0) { - int q = get8(z->s); - int p = q >> 4; - int t = q & 15,i; - if (p != 0) return e("bad DQT type","Corrupt JPEG"); - if (t > 3) return e("bad DQT table","Corrupt JPEG"); - for (i=0; i < 64; ++i) - z->dequant[t][dezigzag[i]] = get8u(z->s); - #ifdef STBI_SIMD - for (i=0; i < 64; ++i) - z->dequant2[t][i] = z->dequant[t][i]; - #endif - L -= 65; - } - return L==0; - - case 0xC4: // DHT - define huffman table - L = get16(z->s)-2; - while (L > 0) { - uint8 *v; - int sizes[16],i,m=0; - int q = get8(z->s); - int tc = q >> 4; - int th = q & 15; - if (tc > 1 || th > 3) return e("bad DHT header","Corrupt JPEG"); - for (i=0; i < 16; ++i) { - sizes[i] = get8(z->s); - m += sizes[i]; - } - L -= 17; - if (tc == 0) { - if (!build_huffman(z->huff_dc+th, sizes)) return 0; - v = z->huff_dc[th].values; - } else { - if (!build_huffman(z->huff_ac+th, sizes)) return 0; - v = z->huff_ac[th].values; - } - for (i=0; i < m; ++i) - v[i] = get8u(z->s); - L -= m; - } - return L==0; - } - // check for comment block or APP blocks - if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) { - skip(z->s, get16(z->s)-2); - return 1; - } - return 0; -} - -// after we see SOS -static int process_scan_header(jpeg *z) -{ - int i; - int Ls = get16(z->s); - z->scan_n = get8(z->s); - if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return e("bad SOS component count","Corrupt JPEG"); - if (Ls != 6+2*z->scan_n) return e("bad SOS len","Corrupt JPEG"); - for (i=0; i < z->scan_n; ++i) { - int id = get8(z->s), which; - int q = get8(z->s); - for (which = 0; which < z->s->img_n; ++which) - if (z->img_comp[which].id == id) - break; - if (which == z->s->img_n) return 0; - z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return e("bad DC huff","Corrupt JPEG"); - z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return e("bad AC huff","Corrupt JPEG"); - z->order[i] = which; - } - if (get8(z->s) != 0) return e("bad SOS","Corrupt JPEG"); - get8(z->s); // should be 63, but might be 0 - if (get8(z->s) != 0) return e("bad SOS","Corrupt JPEG"); - - return 1; -} - -static int process_frame_header(jpeg *z, int scan) -{ - stbi *s = z->s; - int Lf,p,i,q, h_max=1,v_max=1,c; - Lf = get16(s); if (Lf < 11) return e("bad SOF len","Corrupt JPEG"); // JPEG - p = get8(s); if (p != 8) return e("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline - s->img_y = get16(s); if (s->img_y == 0) return e("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG - s->img_x = get16(s); if (s->img_x == 0) return e("0 width","Corrupt JPEG"); // JPEG requires - c = get8(s); - if (c != 3 && c != 1) return e("bad component count","Corrupt JPEG"); // JFIF requires - s->img_n = c; - for (i=0; i < c; ++i) { - z->img_comp[i].data = NULL; - z->img_comp[i].linebuf = NULL; - } - - if (Lf != 8+3*s->img_n) return e("bad SOF len","Corrupt JPEG"); - - for (i=0; i < s->img_n; ++i) { - z->img_comp[i].id = get8(s); - if (z->img_comp[i].id != i+1) // JFIF requires - if (z->img_comp[i].id != i) // some version of jpegtran outputs non-JFIF-compliant files! - return e("bad component ID","Corrupt JPEG"); - q = get8(s); - z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return e("bad H","Corrupt JPEG"); - z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return e("bad V","Corrupt JPEG"); - z->img_comp[i].tq = get8(s); if (z->img_comp[i].tq > 3) return e("bad TQ","Corrupt JPEG"); - } - - if (scan != SCAN_load) return 1; - - if ((1 << 30) / s->img_x / s->img_n < s->img_y) return e("too large", "Image too large to decode"); - - for (i=0; i < s->img_n; ++i) { - if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; - if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; - } - - // compute interleaved mcu info - z->img_h_max = h_max; - z->img_v_max = v_max; - z->img_mcu_w = h_max * 8; - z->img_mcu_h = v_max * 8; - z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w; - z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h; - - for (i=0; i < s->img_n; ++i) { - // number of effective pixels (e.g. for non-interleaved MCU) - z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; - z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; - // to simplify generation, we'll allocate enough memory to decode - // the bogus oversized data from using interleaved MCUs and their - // big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't - // discard the extra data until colorspace conversion - z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; - z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; - z->img_comp[i].raw_data = malloc(z->img_comp[i].w2 * z->img_comp[i].h2+15); - if (z->img_comp[i].raw_data == NULL) { - for(--i; i >= 0; --i) { - free(z->img_comp[i].raw_data); - z->img_comp[i].data = NULL; - } - return e("outofmem", "Out of memory"); - } - // align blocks for installable-idct using mmx/sse - z->img_comp[i].data = (uint8*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); - z->img_comp[i].linebuf = NULL; - } - - return 1; -} - -// use comparisons since in some cases we handle more than one case (e.g. SOF) -#define DNL(x) ((x) == 0xdc) -#define SOI(x) ((x) == 0xd8) -#define EOI(x) ((x) == 0xd9) -#define SOF(x) ((x) == 0xc0 || (x) == 0xc1) -#define SOS(x) ((x) == 0xda) - -static int decode_jpeg_header(jpeg *z, int scan) -{ - int m; - z->marker = MARKER_none; // initialize cached marker to empty - m = get_marker(z); - if (!SOI(m)) return e("no SOI","Corrupt JPEG"); - if (scan == SCAN_type) return 1; - m = get_marker(z); - while (!SOF(m)) { - if (!process_marker(z,m)) return 0; - m = get_marker(z); - while (m == MARKER_none) { - // some files have extra padding after their blocks, so ok, we'll scan - if (at_eof(z->s)) return e("no SOF", "Corrupt JPEG"); - m = get_marker(z); - } - } - if (!process_frame_header(z, scan)) return 0; - return 1; -} - -static int decode_jpeg_image(jpeg *j) -{ - int m; - j->restart_interval = 0; - if (!decode_jpeg_header(j, SCAN_load)) return 0; - m = get_marker(j); - while (!EOI(m)) { - if (SOS(m)) { - if (!process_scan_header(j)) return 0; - if (!parse_entropy_coded_data(j)) return 0; - if (j->marker == MARKER_none ) { - // handle 0s at the end of image data from IP Kamera 9060 - while (!at_eof(j->s)) { - int x = get8(j->s); - if (x == 255) { - j->marker = get8u(j->s); - break; - } else if (x != 0) { - return 0; - } - } - // if we reach eof without hitting a marker, get_marker() below will fail and we'll eventually return 0 - } - } else { - if (!process_marker(j, m)) return 0; - } - m = get_marker(j); - } - return 1; -} - -// static jfif-centered resampling (across block boundaries) - -typedef uint8 *(*resample_row_func)(uint8 *out, uint8 *in0, uint8 *in1, - int w, int hs); - -#define div4(x) ((uint8) ((x) >> 2)) - -static uint8 *resample_row_1(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) -{ - STBI_NOTUSED(out); - STBI_NOTUSED(in_far); - STBI_NOTUSED(w); - STBI_NOTUSED(hs); - return in_near; -} - -static uint8* resample_row_v_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) -{ - // need to generate two samples vertically for every one in input - int i; - STBI_NOTUSED(hs); - for (i=0; i < w; ++i) - out[i] = div4(3*in_near[i] + in_far[i] + 2); - return out; -} - -static uint8* resample_row_h_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) -{ - // need to generate two samples horizontally for every one in input - int i; - uint8 *input = in_near; - - if (w == 1) { - // if only one sample, can't do any interpolation - out[0] = out[1] = input[0]; - return out; - } - - out[0] = input[0]; - out[1] = div4(input[0]*3 + input[1] + 2); - for (i=1; i < w-1; ++i) { - int n = 3*input[i]+2; - out[i*2+0] = div4(n+input[i-1]); - out[i*2+1] = div4(n+input[i+1]); - } - out[i*2+0] = div4(input[w-2]*3 + input[w-1] + 2); - out[i*2+1] = input[w-1]; - - STBI_NOTUSED(in_far); - STBI_NOTUSED(hs); - - return out; -} - -#define div16(x) ((uint8) ((x) >> 4)) - -static uint8 *resample_row_hv_2(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) -{ - // need to generate 2x2 samples for every one in input - int i,t0,t1; - if (w == 1) { - out[0] = out[1] = div4(3*in_near[0] + in_far[0] + 2); - return out; - } - - t1 = 3*in_near[0] + in_far[0]; - out[0] = div4(t1+2); - for (i=1; i < w; ++i) { - t0 = t1; - t1 = 3*in_near[i]+in_far[i]; - out[i*2-1] = div16(3*t0 + t1 + 8); - out[i*2 ] = div16(3*t1 + t0 + 8); - } - out[w*2-1] = div4(t1+2); - - STBI_NOTUSED(hs); - - return out; -} - -static uint8 *resample_row_generic(uint8 *out, uint8 *in_near, uint8 *in_far, int w, int hs) -{ - // resample with nearest-neighbor - int i,j; - for (i=0; i < w; ++i) - for (j=0; j < hs; ++j) - out[i*hs+j] = in_near[i]; - return out; -} - -#define float2fixed(x) ((int) ((x) * 65536 + 0.5)) - -// 0.38 seconds on 3*anemones.jpg (0.25 with processor = Pro) -// VC6 without processor=Pro is generating multiple LEAs per multiply! -static void YCbCr_to_RGB_row(uint8 *out, const uint8 *y, const uint8 *pcb, const uint8 *pcr, int count, int step) -{ - int i; - for (i=0; i < count; ++i) { - int y_fixed = (y[i] << 16) + 32768; // rounding - int r,g,b; - int cr = pcr[i] - 128; - int cb = pcb[i] - 128; - r = y_fixed + cr*float2fixed(1.40200f); - g = y_fixed - cr*float2fixed(0.71414f) - cb*float2fixed(0.34414f); - b = y_fixed + cb*float2fixed(1.77200f); - r >>= 16; - g >>= 16; - b >>= 16; - if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } - if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } - if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } - out[0] = (uint8)r; - out[1] = (uint8)g; - out[2] = (uint8)b; - out[3] = 255; - out += step; - } -} - -#ifdef STBI_SIMD -static stbi_YCbCr_to_RGB_run stbi_YCbCr_installed = YCbCr_to_RGB_row; - -void stbi_install_YCbCr_to_RGB(stbi_YCbCr_to_RGB_run func) -{ - stbi_YCbCr_installed = func; -} -#endif - - -// clean up the temporary component buffers -static void cleanup_jpeg(jpeg *j) -{ - int i; - for (i=0; i < j->s->img_n; ++i) { - if (j->img_comp[i].data) { - free(j->img_comp[i].raw_data); - j->img_comp[i].data = NULL; - } - if (j->img_comp[i].linebuf) { - free(j->img_comp[i].linebuf); - j->img_comp[i].linebuf = NULL; - } - } -} - -typedef struct -{ - resample_row_func resample; - uint8 *line0,*line1; - int hs,vs; // expansion factor in each axis - int w_lores; // horizontal pixels pre-expansion - int ystep; // how far through vertical expansion we are - int ypos; // which pre-expansion row we're on -} stbi_resample; - -static uint8 *load_jpeg_image(jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) -{ - int n, decode_n; - // validate req_comp - if (req_comp < 0 || req_comp > 4) return epuc("bad req_comp", "Internal error"); - z->s->img_n = 0; - - // load a jpeg image from whichever source - if (!decode_jpeg_image(z)) { cleanup_jpeg(z); return NULL; } - - // determine actual number of components to generate - n = req_comp ? req_comp : z->s->img_n; - - if (z->s->img_n == 3 && n < 3) - decode_n = 1; - else - decode_n = z->s->img_n; - - // resample and color-convert - { - int k; - uint i,j; - uint8 *output; - uint8 *coutput[4]; - - stbi_resample res_comp[4]; - - for (k=0; k < decode_n; ++k) { - stbi_resample *r = &res_comp[k]; - - // allocate line buffer big enough for upsampling off the edges - // with upsample factor of 4 - z->img_comp[k].linebuf = (uint8 *) malloc(z->s->img_x + 3); - if (!z->img_comp[k].linebuf) { cleanup_jpeg(z); return epuc("outofmem", "Out of memory"); } - - r->hs = z->img_h_max / z->img_comp[k].h; - r->vs = z->img_v_max / z->img_comp[k].v; - r->ystep = r->vs >> 1; - r->w_lores = (z->s->img_x + r->hs-1) / r->hs; - r->ypos = 0; - r->line0 = r->line1 = z->img_comp[k].data; - - if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1; - else if (r->hs == 1 && r->vs == 2) r->resample = resample_row_v_2; - else if (r->hs == 2 && r->vs == 1) r->resample = resample_row_h_2; - else if (r->hs == 2 && r->vs == 2) r->resample = resample_row_hv_2; - else r->resample = resample_row_generic; - } - - // can't error after this so, this is safe - output = (uint8 *) malloc(n * z->s->img_x * z->s->img_y + 1); - if (!output) { cleanup_jpeg(z); return epuc("outofmem", "Out of memory"); } - - // now go ahead and resample - for (j=0; j < z->s->img_y; ++j) { - uint8 *out = output + n * z->s->img_x * j; - for (k=0; k < decode_n; ++k) { - stbi_resample *r = &res_comp[k]; - int y_bot = r->ystep >= (r->vs >> 1); - coutput[k] = r->resample(z->img_comp[k].linebuf, - y_bot ? r->line1 : r->line0, - y_bot ? r->line0 : r->line1, - r->w_lores, r->hs); - if (++r->ystep >= r->vs) { - r->ystep = 0; - r->line0 = r->line1; - if (++r->ypos < z->img_comp[k].y) - r->line1 += z->img_comp[k].w2; - } - } - if (n >= 3) { - uint8 *y = coutput[0]; - if (z->s->img_n == 3) { - #ifdef STBI_SIMD - stbi_YCbCr_installed(out, y, coutput[1], coutput[2], z->s.img_x, n); - #else - YCbCr_to_RGB_row(out, y, coutput[1], coutput[2], z->s->img_x, n); - #endif - } else - for (i=0; i < z->s->img_x; ++i) { - out[0] = out[1] = out[2] = y[i]; - out[3] = 255; // not used if n==3 - out += n; - } - } else { - uint8 *y = coutput[0]; - if (n == 1) - for (i=0; i < z->s->img_x; ++i) out[i] = y[i]; - else - for (i=0; i < z->s->img_x; ++i) *out++ = y[i], *out++ = 255; - } - } - cleanup_jpeg(z); - *out_x = z->s->img_x; - *out_y = z->s->img_y; - if (comp) *comp = z->s->img_n; // report original components, not output - return output; - } -} - -static unsigned char *stbi_jpeg_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - jpeg j; - j.s = s; - return load_jpeg_image(&j, x,y,comp,req_comp); -} - -static int stbi_jpeg_test(stbi *s) -{ - int r; - jpeg j; - j.s = s; - r = decode_jpeg_header(&j, SCAN_type); - stbi_rewind(s); - return r; -} - -static int stbi_jpeg_info_raw(jpeg *j, int *x, int *y, int *comp) -{ - if (!decode_jpeg_header(j, SCAN_header)) { - stbi_rewind( j->s ); - return 0; - } - if (x) *x = j->s->img_x; - if (y) *y = j->s->img_y; - if (comp) *comp = j->s->img_n; - return 1; -} - -static int stbi_jpeg_info(stbi *s, int *x, int *y, int *comp) -{ - jpeg j; - j.s = s; - return stbi_jpeg_info_raw(&j, x, y, comp); -} - -// public domain zlib decode v0.2 Sean Barrett 2006-11-18 -// simple implementation -// - all input must be provided in an upfront buffer -// - all output is written to a single output buffer (can malloc/realloc) -// performance -// - fast huffman - -// fast-way is faster to check than jpeg huffman, but slow way is slower -#define ZFAST_BITS 9 // accelerate all cases in default tables -#define ZFAST_MASK ((1 << ZFAST_BITS) - 1) - -// zlib-style huffman encoding -// (jpegs packs from left, zlib from right, so can't share code) -typedef struct -{ - uint16 fast[1 << ZFAST_BITS]; - uint16 firstcode[16]; - int maxcode[17]; - uint16 firstsymbol[16]; - uint8 size[288]; - uint16 value[288]; -} zhuffman; - -stbi_inline static int bitreverse16(int n) -{ - n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1); - n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2); - n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4); - n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8); - return n; -} - -stbi_inline static int bit_reverse(int v, int bits) -{ - assert(bits <= 16); - // to bit reverse n bits, reverse 16 and shift - // e.g. 11 bits, bit reverse and shift away 5 - return bitreverse16(v) >> (16-bits); -} - -static int zbuild_huffman(zhuffman *z, uint8 *sizelist, int num) -{ - int i,k=0; - int code, next_code[16], sizes[17]; - - // DEFLATE spec for generating codes - memset(sizes, 0, sizeof(sizes)); - memset(z->fast, 255, sizeof(z->fast)); - for (i=0; i < num; ++i) - ++sizes[sizelist[i]]; - sizes[0] = 0; - for (i=1; i < 16; ++i) - assert(sizes[i] <= (1 << i)); - code = 0; - for (i=1; i < 16; ++i) { - next_code[i] = code; - z->firstcode[i] = (uint16) code; - z->firstsymbol[i] = (uint16) k; - code = (code + sizes[i]); - if (sizes[i]) - if (code-1 >= (1 << i)) return e("bad codelengths","Corrupt JPEG"); - z->maxcode[i] = code << (16-i); // preshift for inner loop - code <<= 1; - k += sizes[i]; - } - z->maxcode[16] = 0x10000; // sentinel - for (i=0; i < num; ++i) { - int s = sizelist[i]; - if (s) { - int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s]; - z->size[c] = (uint8)s; - z->value[c] = (uint16)i; - if (s <= ZFAST_BITS) { - int k = bit_reverse(next_code[s],s); - while (k < (1 << ZFAST_BITS)) { - z->fast[k] = (uint16) c; - k += (1 << s); - } - } - ++next_code[s]; - } - } - return 1; -} - -// zlib-from-memory implementation for PNG reading -// because PNG allows splitting the zlib stream arbitrarily, -// and it's annoying structurally to have PNG call ZLIB call PNG, -// we require PNG read all the IDATs and combine them into a single -// memory buffer - -typedef struct -{ - uint8 *zbuffer, *zbuffer_end; - int num_bits; - uint32 code_buffer; - - char *zout; - char *zout_start; - char *zout_end; - int z_expandable; - - zhuffman z_length, z_distance; -} zbuf; - -stbi_inline static int zget8(zbuf *z) -{ - if (z->zbuffer >= z->zbuffer_end) return 0; - return *z->zbuffer++; -} - -static void fill_bits(zbuf *z) -{ - do { - assert(z->code_buffer < (1U << z->num_bits)); - z->code_buffer |= zget8(z) << z->num_bits; - z->num_bits += 8; - } while (z->num_bits <= 24); -} - -stbi_inline static unsigned int zreceive(zbuf *z, int n) -{ - unsigned int k; - if (z->num_bits < n) fill_bits(z); - k = z->code_buffer & ((1 << n) - 1); - z->code_buffer >>= n; - z->num_bits -= n; - return k; -} - -stbi_inline static int zhuffman_decode(zbuf *a, zhuffman *z) -{ - int b,s,k; - if (a->num_bits < 16) fill_bits(a); - b = z->fast[a->code_buffer & ZFAST_MASK]; - if (b < 0xffff) { - s = z->size[b]; - a->code_buffer >>= s; - a->num_bits -= s; - return z->value[b]; - } - - // not resolved by fast table, so compute it the slow way - // use jpeg approach, which requires MSbits at top - k = bit_reverse(a->code_buffer, 16); - for (s=ZFAST_BITS+1; ; ++s) - if (k < z->maxcode[s]) - break; - if (s == 16) return -1; // invalid code! - // code size is s, so: - b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s]; - assert(z->size[b] == s); - a->code_buffer >>= s; - a->num_bits -= s; - return z->value[b]; -} - -static int expand(zbuf *z, int n) // need to make room for n bytes -{ - char *q; - int cur, limit; - if (!z->z_expandable) return e("output buffer limit","Corrupt PNG"); - cur = (int) (z->zout - z->zout_start); - limit = (int) (z->zout_end - z->zout_start); - while (cur + n > limit) - limit *= 2; - q = (char *) realloc(z->zout_start, limit); - if (q == NULL) return e("outofmem", "Out of memory"); - z->zout_start = q; - z->zout = q + cur; - z->zout_end = q + limit; - return 1; -} - -static int length_base[31] = { - 3,4,5,6,7,8,9,10,11,13, - 15,17,19,23,27,31,35,43,51,59, - 67,83,99,115,131,163,195,227,258,0,0 }; - -static int length_extra[31]= -{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }; - -static int dist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, -257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}; - -static int dist_extra[32] = -{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; - -static int parse_huffman_block(zbuf *a) -{ - for(;;) { - int z = zhuffman_decode(a, &a->z_length); - if (z < 256) { - if (z < 0) return e("bad huffman code","Corrupt PNG"); // error in huffman codes - if (a->zout >= a->zout_end) if (!expand(a, 1)) return 0; - *a->zout++ = (char) z; - } else { - uint8 *p; - int len,dist; - if (z == 256) return 1; - z -= 257; - len = length_base[z]; - if (length_extra[z]) len += zreceive(a, length_extra[z]); - z = zhuffman_decode(a, &a->z_distance); - if (z < 0) return e("bad huffman code","Corrupt PNG"); - dist = dist_base[z]; - if (dist_extra[z]) dist += zreceive(a, dist_extra[z]); - if (a->zout - a->zout_start < dist) return e("bad dist","Corrupt PNG"); - if (a->zout + len > a->zout_end) if (!expand(a, len)) return 0; - p = (uint8 *) (a->zout - dist); - while (len--) - *a->zout++ = *p++; - } - } -} - -static int compute_huffman_codes(zbuf *a) -{ - static uint8 length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; - zhuffman z_codelength; - uint8 lencodes[286+32+137];//padding for maximum single op - uint8 codelength_sizes[19]; - int i,n; - - int hlit = zreceive(a,5) + 257; - int hdist = zreceive(a,5) + 1; - int hclen = zreceive(a,4) + 4; - - memset(codelength_sizes, 0, sizeof(codelength_sizes)); - for (i=0; i < hclen; ++i) { - int s = zreceive(a,3); - codelength_sizes[length_dezigzag[i]] = (uint8) s; - } - if (!zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; - - n = 0; - while (n < hlit + hdist) { - int c = zhuffman_decode(a, &z_codelength); - assert(c >= 0 && c < 19); - if (c < 16) - lencodes[n++] = (uint8) c; - else if (c == 16) { - c = zreceive(a,2)+3; - memset(lencodes+n, lencodes[n-1], c); - n += c; - } else if (c == 17) { - c = zreceive(a,3)+3; - memset(lencodes+n, 0, c); - n += c; - } else { - assert(c == 18); - c = zreceive(a,7)+11; - memset(lencodes+n, 0, c); - n += c; - } - } - if (n != hlit+hdist) return e("bad codelengths","Corrupt PNG"); - if (!zbuild_huffman(&a->z_length, lencodes, hlit)) return 0; - if (!zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0; - return 1; -} - -static int parse_uncompressed_block(zbuf *a) -{ - uint8 header[4]; - int len,nlen,k; - if (a->num_bits & 7) - zreceive(a, a->num_bits & 7); // discard - // drain the bit-packed data into header - k = 0; - while (a->num_bits > 0) { - header[k++] = (uint8) (a->code_buffer & 255); // wtf this warns? - a->code_buffer >>= 8; - a->num_bits -= 8; - } - assert(a->num_bits == 0); - // now fill header the normal way - while (k < 4) - header[k++] = (uint8) zget8(a); - len = header[1] * 256 + header[0]; - nlen = header[3] * 256 + header[2]; - if (nlen != (len ^ 0xffff)) return e("zlib corrupt","Corrupt PNG"); - if (a->zbuffer + len > a->zbuffer_end) return e("read past buffer","Corrupt PNG"); - if (a->zout + len > a->zout_end) - if (!expand(a, len)) return 0; - memcpy(a->zout, a->zbuffer, len); - a->zbuffer += len; - a->zout += len; - return 1; -} - -static int parse_zlib_header(zbuf *a) -{ - int cmf = zget8(a); - int cm = cmf & 15; - /* int cinfo = cmf >> 4; */ - int flg = zget8(a); - if ((cmf*256+flg) % 31 != 0) return e("bad zlib header","Corrupt PNG"); // zlib spec - if (flg & 32) return e("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png - if (cm != 8) return e("bad compression","Corrupt PNG"); // DEFLATE required for png - // window = 1 << (8 + cinfo)... but who cares, we fully buffer output - return 1; -} - -// @TODO: should statically initialize these for optimal thread safety -static uint8 default_length[288], default_distance[32]; -static void init_defaults(void) -{ - int i; // use <= to match clearly with spec - for (i=0; i <= 143; ++i) default_length[i] = 8; - for ( ; i <= 255; ++i) default_length[i] = 9; - for ( ; i <= 279; ++i) default_length[i] = 7; - for ( ; i <= 287; ++i) default_length[i] = 8; - - for (i=0; i <= 31; ++i) default_distance[i] = 5; -} - -int stbi_png_partial; // a quick hack to only allow decoding some of a PNG... I should implement real streaming support instead -static int parse_zlib(zbuf *a, int parse_header) -{ - int final, type; - if (parse_header) - if (!parse_zlib_header(a)) return 0; - a->num_bits = 0; - a->code_buffer = 0; - do { - final = zreceive(a,1); - type = zreceive(a,2); - if (type == 0) { - if (!parse_uncompressed_block(a)) return 0; - } else if (type == 3) { - return 0; - } else { - if (type == 1) { - // use fixed code lengths - if (!default_distance[31]) init_defaults(); - if (!zbuild_huffman(&a->z_length , default_length , 288)) return 0; - if (!zbuild_huffman(&a->z_distance, default_distance, 32)) return 0; - } else { - if (!compute_huffman_codes(a)) return 0; - } - if (!parse_huffman_block(a)) return 0; - } - if (stbi_png_partial && a->zout - a->zout_start > 65536) - break; - } while (!final); - return 1; -} - -static int do_zlib(zbuf *a, char *obuf, int olen, int exp, int parse_header) -{ - a->zout_start = obuf; - a->zout = obuf; - a->zout_end = obuf + olen; - a->z_expandable = exp; - - return parse_zlib(a, parse_header); -} - -char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen) -{ - zbuf a; - char *p = (char *) malloc(initial_size); - if (p == NULL) return NULL; - a.zbuffer = (uint8 *) buffer; - a.zbuffer_end = (uint8 *) buffer + len; - if (do_zlib(&a, p, initial_size, 1, 1)) { - if (outlen) *outlen = (int) (a.zout - a.zout_start); - return a.zout_start; - } else { - free(a.zout_start); - return NULL; - } -} - -char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen) -{ - return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen); -} - -char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) -{ - zbuf a; - char *p = (char *) malloc(initial_size); - if (p == NULL) return NULL; - a.zbuffer = (uint8 *) buffer; - a.zbuffer_end = (uint8 *) buffer + len; - if (do_zlib(&a, p, initial_size, 1, parse_header)) { - if (outlen) *outlen = (int) (a.zout - a.zout_start); - return a.zout_start; - } else { - free(a.zout_start); - return NULL; - } -} - -int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen) -{ - zbuf a; - a.zbuffer = (uint8 *) ibuffer; - a.zbuffer_end = (uint8 *) ibuffer + ilen; - if (do_zlib(&a, obuffer, olen, 0, 1)) - return (int) (a.zout - a.zout_start); - else - return -1; -} - -char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen) -{ - zbuf a; - char *p = (char *) malloc(16384); - if (p == NULL) return NULL; - a.zbuffer = (uint8 *) buffer; - a.zbuffer_end = (uint8 *) buffer+len; - if (do_zlib(&a, p, 16384, 1, 0)) { - if (outlen) *outlen = (int) (a.zout - a.zout_start); - return a.zout_start; - } else { - free(a.zout_start); - return NULL; - } -} - -int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) -{ - zbuf a; - a.zbuffer = (uint8 *) ibuffer; - a.zbuffer_end = (uint8 *) ibuffer + ilen; - if (do_zlib(&a, obuffer, olen, 0, 0)) - return (int) (a.zout - a.zout_start); - else - return -1; -} - -// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18 -// simple implementation -// - only 8-bit samples -// - no CRC checking -// - allocates lots of intermediate memory -// - avoids problem of streaming data between subsystems -// - avoids explicit window management -// performance -// - uses stb_zlib, a PD zlib implementation with fast huffman decoding - - -typedef struct -{ - uint32 length; - uint32 type; -} chunk; - -#define PNG_TYPE(a,b,c,d) (((a) << 24) + ((b) << 16) + ((c) << 8) + (d)) - -static chunk get_chunk_header(stbi *s) -{ - chunk c; - c.length = get32(s); - c.type = get32(s); - return c; -} - -static int check_png_header(stbi *s) -{ - static uint8 png_sig[8] = { 137,80,78,71,13,10,26,10 }; - int i; - for (i=0; i < 8; ++i) - if (get8u(s) != png_sig[i]) return e("bad png sig","Not a PNG"); - return 1; -} - -typedef struct -{ - stbi *s; - uint8 *idata, *expanded, *out; -} png; - - -enum { - F_none=0, F_sub=1, F_up=2, F_avg=3, F_paeth=4, - F_avg_first, F_paeth_first -}; - -static uint8 first_row_filter[5] = -{ - F_none, F_sub, F_none, F_avg_first, F_paeth_first -}; - -static int paeth(int a, int b, int c) -{ - int p = a + b - c; - int pa = abs(p-a); - int pb = abs(p-b); - int pc = abs(p-c); - if (pa <= pb && pa <= pc) return a; - if (pb <= pc) return b; - return c; -} - -// create the png data from post-deflated data -static int create_png_image_raw(png *a, uint8 *raw, uint32 raw_len, int out_n, uint32 x, uint32 y) -{ - stbi *s = a->s; - uint32 i,j,stride = x*out_n; - int k; - int img_n = s->img_n; // copy it into a local for later - assert(out_n == s->img_n || out_n == s->img_n+1); - if (stbi_png_partial) y = 1; - a->out = (uint8 *) malloc(x * y * out_n); - if (!a->out) return e("outofmem", "Out of memory"); - if (!stbi_png_partial) { - if (s->img_x == x && s->img_y == y) { - if (raw_len != (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); - } else { // interlaced: - if (raw_len < (img_n * x + 1) * y) return e("not enough pixels","Corrupt PNG"); - } - } - for (j=0; j < y; ++j) { - uint8 *cur = a->out + stride*j; - uint8 *prior = cur - stride; - int filter = *raw++; - if (filter > 4) return e("invalid filter","Corrupt PNG"); - // if first row, use special filter that doesn't sample previous row - if (j == 0) filter = first_row_filter[filter]; - // handle first pixel explicitly - for (k=0; k < img_n; ++k) { - switch (filter) { - case F_none : cur[k] = raw[k]; break; - case F_sub : cur[k] = raw[k]; break; - case F_up : cur[k] = raw[k] + prior[k]; break; - case F_avg : cur[k] = raw[k] + (prior[k]>>1); break; - case F_paeth : cur[k] = (uint8) (raw[k] + paeth(0,prior[k],0)); break; - case F_avg_first : cur[k] = raw[k]; break; - case F_paeth_first: cur[k] = raw[k]; break; - } - } - if (img_n != out_n) cur[img_n] = 255; - raw += img_n; - cur += out_n; - prior += out_n; - // this is a little gross, so that we don't switch per-pixel or per-component - if (img_n == out_n) { - #define CASE(f) \ - case f: \ - for (i=x-1; i >= 1; --i, raw+=img_n,cur+=img_n,prior+=img_n) \ - for (k=0; k < img_n; ++k) - switch (filter) { - CASE(F_none) cur[k] = raw[k]; break; - CASE(F_sub) cur[k] = raw[k] + cur[k-img_n]; break; - CASE(F_up) cur[k] = raw[k] + prior[k]; break; - CASE(F_avg) cur[k] = raw[k] + ((prior[k] + cur[k-img_n])>>1); break; - CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],prior[k],prior[k-img_n])); break; - CASE(F_avg_first) cur[k] = raw[k] + (cur[k-img_n] >> 1); break; - CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],0,0)); break; - } - #undef CASE - } else { - assert(img_n+1 == out_n); - #define CASE(f) \ - case f: \ - for (i=x-1; i >= 1; --i, cur[img_n]=255,raw+=img_n,cur+=out_n,prior+=out_n) \ - for (k=0; k < img_n; ++k) - switch (filter) { - CASE(F_none) cur[k] = raw[k]; break; - CASE(F_sub) cur[k] = raw[k] + cur[k-out_n]; break; - CASE(F_up) cur[k] = raw[k] + prior[k]; break; - CASE(F_avg) cur[k] = raw[k] + ((prior[k] + cur[k-out_n])>>1); break; - CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],prior[k],prior[k-out_n])); break; - CASE(F_avg_first) cur[k] = raw[k] + (cur[k-out_n] >> 1); break; - CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],0,0)); break; - } - #undef CASE - } - } - return 1; -} - -static int create_png_image(png *a, uint8 *raw, uint32 raw_len, int out_n, int interlaced) -{ - uint8 *final; - int p; - int save; - if (!interlaced) - return create_png_image_raw(a, raw, raw_len, out_n, a->s->img_x, a->s->img_y); - save = stbi_png_partial; - stbi_png_partial = 0; - - // de-interlacing - final = (uint8 *) malloc(a->s->img_x * a->s->img_y * out_n); - for (p=0; p < 7; ++p) { - int xorig[] = { 0,4,0,2,0,1,0 }; - int yorig[] = { 0,0,4,0,2,0,1 }; - int xspc[] = { 8,8,4,4,2,2,1 }; - int yspc[] = { 8,8,8,4,4,2,2 }; - int i,j,x,y; - // pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1 - x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p]; - y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p]; - if (x && y) { - if (!create_png_image_raw(a, raw, raw_len, out_n, x, y)) { - free(final); - return 0; - } - for (j=0; j < y; ++j) - for (i=0; i < x; ++i) - memcpy(final + (j*yspc[p]+yorig[p])*a->s->img_x*out_n + (i*xspc[p]+xorig[p])*out_n, - a->out + (j*x+i)*out_n, out_n); - free(a->out); - raw += (x*out_n+1)*y; - raw_len -= (x*out_n+1)*y; - } - } - a->out = final; - - stbi_png_partial = save; - return 1; -} - -static int compute_transparency(png *z, uint8 tc[3], int out_n) -{ - stbi *s = z->s; - uint32 i, pixel_count = s->img_x * s->img_y; - uint8 *p = z->out; - - // compute color-based transparency, assuming we've - // already got 255 as the alpha value in the output - assert(out_n == 2 || out_n == 4); - - if (out_n == 2) { - for (i=0; i < pixel_count; ++i) { - p[1] = (p[0] == tc[0] ? 0 : 255); - p += 2; - } - } else { - for (i=0; i < pixel_count; ++i) { - if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) - p[3] = 0; - p += 4; - } - } - return 1; -} - -static int expand_palette(png *a, uint8 *palette, int len, int pal_img_n) -{ - uint32 i, pixel_count = a->s->img_x * a->s->img_y; - uint8 *p, *temp_out, *orig = a->out; - - p = (uint8 *) malloc(pixel_count * pal_img_n); - if (p == NULL) return e("outofmem", "Out of memory"); - - // between here and free(out) below, exitting would leak - temp_out = p; - - if (pal_img_n == 3) { - for (i=0; i < pixel_count; ++i) { - int n = orig[i]*4; - p[0] = palette[n ]; - p[1] = palette[n+1]; - p[2] = palette[n+2]; - p += 3; - } - } else { - for (i=0; i < pixel_count; ++i) { - int n = orig[i]*4; - p[0] = palette[n ]; - p[1] = palette[n+1]; - p[2] = palette[n+2]; - p[3] = palette[n+3]; - p += 4; - } - } - free(a->out); - a->out = temp_out; - - STBI_NOTUSED(len); - - return 1; -} - -static int stbi_unpremultiply_on_load = 0; -static int stbi_de_iphone_flag = 0; - -void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply) -{ - stbi_unpremultiply_on_load = flag_true_if_should_unpremultiply; -} -void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert) -{ - stbi_de_iphone_flag = flag_true_if_should_convert; -} - -static void stbi_de_iphone(png *z) -{ - stbi *s = z->s; - uint32 i, pixel_count = s->img_x * s->img_y; - uint8 *p = z->out; - - if (s->img_out_n == 3) { // convert bgr to rgb - for (i=0; i < pixel_count; ++i) { - uint8 t = p[0]; - p[0] = p[2]; - p[2] = t; - p += 3; - } - } else { - assert(s->img_out_n == 4); - if (stbi_unpremultiply_on_load) { - // convert bgr to rgb and unpremultiply - for (i=0; i < pixel_count; ++i) { - uint8 a = p[3]; - uint8 t = p[0]; - if (a) { - p[0] = p[2] * 255 / a; - p[1] = p[1] * 255 / a; - p[2] = t * 255 / a; - } else { - p[0] = p[2]; - p[2] = t; - } - p += 4; - } - } else { - // convert bgr to rgb - for (i=0; i < pixel_count; ++i) { - uint8 t = p[0]; - p[0] = p[2]; - p[2] = t; - p += 4; - } - } - } -} - -static int parse_png_file(png *z, int scan, int req_comp) -{ - uint8 palette[1024], pal_img_n=0; - uint8 has_trans=0, tc[3]; - uint32 ioff=0, idata_limit=0, i, pal_len=0; - int first=1,k,interlace=0, iphone=0; - stbi *s = z->s; - - z->expanded = NULL; - z->idata = NULL; - z->out = NULL; - - if (!check_png_header(s)) return 0; - - if (scan == SCAN_type) return 1; - - for (;;) { - chunk c = get_chunk_header(s); - switch (c.type) { - case PNG_TYPE('C','g','B','I'): - iphone = stbi_de_iphone_flag; - skip(s, c.length); - break; - case PNG_TYPE('I','H','D','R'): { - int depth,color,comp,filter; - if (!first) return e("multiple IHDR","Corrupt PNG"); - first = 0; - if (c.length != 13) return e("bad IHDR len","Corrupt PNG"); - s->img_x = get32(s); if (s->img_x > (1 << 24)) return e("too large","Very large image (corrupt?)"); - s->img_y = get32(s); if (s->img_y > (1 << 24)) return e("too large","Very large image (corrupt?)"); - depth = get8(s); if (depth != 8) return e("8bit only","PNG not supported: 8-bit only"); - color = get8(s); if (color > 6) return e("bad ctype","Corrupt PNG"); - if (color == 3) pal_img_n = 3; else if (color & 1) return e("bad ctype","Corrupt PNG"); - comp = get8(s); if (comp) return e("bad comp method","Corrupt PNG"); - filter= get8(s); if (filter) return e("bad filter method","Corrupt PNG"); - interlace = get8(s); if (interlace>1) return e("bad interlace method","Corrupt PNG"); - if (!s->img_x || !s->img_y) return e("0-pixel image","Corrupt PNG"); - if (!pal_img_n) { - s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0); - if ((1 << 30) / s->img_x / s->img_n < s->img_y) return e("too large", "Image too large to decode"); - if (scan == SCAN_header) return 1; - } else { - // if paletted, then pal_n is our final components, and - // img_n is # components to decompress/filter. - s->img_n = 1; - if ((1 << 30) / s->img_x / 4 < s->img_y) return e("too large","Corrupt PNG"); - // if SCAN_header, have to scan to see if we have a tRNS - } - break; - } - - case PNG_TYPE('P','L','T','E'): { - if (first) return e("first not IHDR", "Corrupt PNG"); - if (c.length > 256*3) return e("invalid PLTE","Corrupt PNG"); - pal_len = c.length / 3; - if (pal_len * 3 != c.length) return e("invalid PLTE","Corrupt PNG"); - for (i=0; i < pal_len; ++i) { - palette[i*4+0] = get8u(s); - palette[i*4+1] = get8u(s); - palette[i*4+2] = get8u(s); - palette[i*4+3] = 255; - } - break; - } - - case PNG_TYPE('t','R','N','S'): { - if (first) return e("first not IHDR", "Corrupt PNG"); - if (z->idata) return e("tRNS after IDAT","Corrupt PNG"); - if (pal_img_n) { - if (scan == SCAN_header) { s->img_n = 4; return 1; } - if (pal_len == 0) return e("tRNS before PLTE","Corrupt PNG"); - if (c.length > pal_len) return e("bad tRNS len","Corrupt PNG"); - pal_img_n = 4; - for (i=0; i < c.length; ++i) - palette[i*4+3] = get8u(s); - } else { - if (!(s->img_n & 1)) return e("tRNS with alpha","Corrupt PNG"); - if (c.length != (uint32) s->img_n*2) return e("bad tRNS len","Corrupt PNG"); - has_trans = 1; - for (k=0; k < s->img_n; ++k) - tc[k] = (uint8) get16(s); // non 8-bit images will be larger - } - break; - } - - case PNG_TYPE('I','D','A','T'): { - if (first) return e("first not IHDR", "Corrupt PNG"); - if (pal_img_n && !pal_len) return e("no PLTE","Corrupt PNG"); - if (scan == SCAN_header) { s->img_n = pal_img_n; return 1; } - if (ioff + c.length > idata_limit) { - uint8 *p; - if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096; - while (ioff + c.length > idata_limit) - idata_limit *= 2; - p = (uint8 *) realloc(z->idata, idata_limit); if (p == NULL) return e("outofmem", "Out of memory"); - z->idata = p; - } - if (!getn(s, z->idata+ioff,c.length)) return e("outofdata","Corrupt PNG"); - ioff += c.length; - break; - } - - case PNG_TYPE('I','E','N','D'): { - uint32 raw_len; - if (first) return e("first not IHDR", "Corrupt PNG"); - if (scan != SCAN_load) return 1; - if (z->idata == NULL) return e("no IDAT","Corrupt PNG"); - z->expanded = (uint8 *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, 16384, (int *) &raw_len, !iphone); - if (z->expanded == NULL) return 0; // zlib should set error - free(z->idata); z->idata = NULL; - if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans) - s->img_out_n = s->img_n+1; - else - s->img_out_n = s->img_n; - if (!create_png_image(z, z->expanded, raw_len, s->img_out_n, interlace)) return 0; - if (has_trans) - if (!compute_transparency(z, tc, s->img_out_n)) return 0; - if (iphone && s->img_out_n > 2) - stbi_de_iphone(z); - if (pal_img_n) { - // pal_img_n == 3 or 4 - s->img_n = pal_img_n; // record the actual colors we had - s->img_out_n = pal_img_n; - if (req_comp >= 3) s->img_out_n = req_comp; - if (!expand_palette(z, palette, pal_len, s->img_out_n)) - return 0; - } - free(z->expanded); z->expanded = NULL; - return 1; - } - - default: - // if critical, fail - if (first) return e("first not IHDR", "Corrupt PNG"); - if ((c.type & (1 << 29)) == 0) { - #ifndef STBI_NO_FAILURE_STRINGS - // not threadsafe - static char invalid_chunk[] = "XXXX chunk not known"; - invalid_chunk[0] = (uint8) (c.type >> 24); - invalid_chunk[1] = (uint8) (c.type >> 16); - invalid_chunk[2] = (uint8) (c.type >> 8); - invalid_chunk[3] = (uint8) (c.type >> 0); - #endif - return e(invalid_chunk, "PNG not supported: unknown chunk type"); - } - skip(s, c.length); - break; - } - // end of chunk, read and skip CRC - get32(s); - } -} - -static unsigned char *do_png(png *p, int *x, int *y, int *n, int req_comp) -{ - unsigned char *result=NULL; - if (req_comp < 0 || req_comp > 4) return epuc("bad req_comp", "Internal error"); - if (parse_png_file(p, SCAN_load, req_comp)) { - result = p->out; - p->out = NULL; - if (req_comp && req_comp != p->s->img_out_n) { - result = convert_format(result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); - p->s->img_out_n = req_comp; - if (result == NULL) return result; - } - *x = p->s->img_x; - *y = p->s->img_y; - if (n) *n = p->s->img_n; - } - free(p->out); p->out = NULL; - free(p->expanded); p->expanded = NULL; - free(p->idata); p->idata = NULL; - - return result; -} - -static unsigned char *stbi_png_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - png p; - p.s = s; - return do_png(&p, x,y,comp,req_comp); -} - -static int stbi_png_test(stbi *s) -{ - int r; - r = check_png_header(s); - stbi_rewind(s); - return r; -} - -static int stbi_png_info_raw(png *p, int *x, int *y, int *comp) -{ - if (!parse_png_file(p, SCAN_header, 0)) { - stbi_rewind( p->s ); - return 0; - } - if (x) *x = p->s->img_x; - if (y) *y = p->s->img_y; - if (comp) *comp = p->s->img_n; - return 1; -} - -static int stbi_png_info(stbi *s, int *x, int *y, int *comp) -{ - png p; - p.s = s; - return stbi_png_info_raw(&p, x, y, comp); -} - -// Microsoft/Windows BMP image - -static int bmp_test(stbi *s) -{ - int sz; - if (get8(s) != 'B') return 0; - if (get8(s) != 'M') return 0; - get32le(s); // discard filesize - get16le(s); // discard reserved - get16le(s); // discard reserved - get32le(s); // discard data offset - sz = get32le(s); - if (sz == 12 || sz == 40 || sz == 56 || sz == 108) return 1; - return 0; -} - -static int stbi_bmp_test(stbi *s) -{ - int r = bmp_test(s); - stbi_rewind(s); - return r; -} - - -// returns 0..31 for the highest set bit -static int high_bit(unsigned int z) -{ - int n=0; - if (z == 0) return -1; - if (z >= 0x10000) n += 16, z >>= 16; - if (z >= 0x00100) n += 8, z >>= 8; - if (z >= 0x00010) n += 4, z >>= 4; - if (z >= 0x00004) n += 2, z >>= 2; - if (z >= 0x00002) n += 1, z >>= 1; - return n; -} - -static int bitcount(unsigned int a) -{ - a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2 - a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4 - a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits - a = (a + (a >> 8)); // max 16 per 8 bits - a = (a + (a >> 16)); // max 32 per 8 bits - return a & 0xff; -} - -static int shiftsigned(int v, int shift, int bits) -{ - int result; - int z=0; - - if (shift < 0) v <<= -shift; - else v >>= shift; - result = v; - - z = bits; - while (z < 8) { - result += v >> z; - z += bits; - } - return result; -} - -static stbi_uc *bmp_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - uint8 *out; - unsigned int mr=0,mg=0,mb=0,ma=0, fake_a=0; - stbi_uc pal[256][4]; - int psize=0,i,j,compress=0,width; - int bpp, flip_vertically, pad, target, offset, hsz; - if (get8(s) != 'B' || get8(s) != 'M') return epuc("not BMP", "Corrupt BMP"); - get32le(s); // discard filesize - get16le(s); // discard reserved - get16le(s); // discard reserved - offset = get32le(s); - hsz = get32le(s); - if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) return epuc("unknown BMP", "BMP type not supported: unknown"); - if (hsz == 12) { - s->img_x = get16le(s); - s->img_y = get16le(s); - } else { - s->img_x = get32le(s); - s->img_y = get32le(s); - } - if (get16le(s) != 1) return epuc("bad BMP", "bad BMP"); - bpp = get16le(s); - if (bpp == 1) return epuc("monochrome", "BMP type not supported: 1-bit"); - flip_vertically = ((int) s->img_y) > 0; - s->img_y = abs((int) s->img_y); - if (hsz == 12) { - if (bpp < 24) - psize = (offset - 14 - 24) / 3; - } else { - compress = get32le(s); - if (compress == 1 || compress == 2) return epuc("BMP RLE", "BMP type not supported: RLE"); - get32le(s); // discard sizeof - get32le(s); // discard hres - get32le(s); // discard vres - get32le(s); // discard colorsused - get32le(s); // discard max important - if (hsz == 40 || hsz == 56) { - if (hsz == 56) { - get32le(s); - get32le(s); - get32le(s); - get32le(s); - } - if (bpp == 16 || bpp == 32) { - mr = mg = mb = 0; - if (compress == 0) { - if (bpp == 32) { - mr = 0xffu << 16; - mg = 0xffu << 8; - mb = 0xffu << 0; - ma = 0xffu << 24; - fake_a = 1; // @TODO: check for cases like alpha value is all 0 and switch it to 255 - } else { - mr = 31u << 10; - mg = 31u << 5; - mb = 31u << 0; - } - } else if (compress == 3) { - mr = get32le(s); - mg = get32le(s); - mb = get32le(s); - // not documented, but generated by photoshop and handled by mspaint - if (mr == mg && mg == mb) { - // ?!?!? - return epuc("bad BMP", "bad BMP"); - } - } else - return epuc("bad BMP", "bad BMP"); - } - } else { - assert(hsz == 108); - mr = get32le(s); - mg = get32le(s); - mb = get32le(s); - ma = get32le(s); - get32le(s); // discard color space - for (i=0; i < 12; ++i) - get32le(s); // discard color space parameters - } - if (bpp < 16) - psize = (offset - 14 - hsz) >> 2; - } - s->img_n = ma ? 4 : 3; - if (req_comp && req_comp >= 3) // we can directly decode 3 or 4 - target = req_comp; - else - target = s->img_n; // if they want monochrome, we'll post-convert - out = (stbi_uc *) malloc(target * s->img_x * s->img_y); - if (!out) return epuc("outofmem", "Out of memory"); - if (bpp < 16) { - int z=0; - if (psize == 0 || psize > 256) { free(out); return epuc("invalid", "Corrupt BMP"); } - for (i=0; i < psize; ++i) { - pal[i][2] = get8u(s); - pal[i][1] = get8u(s); - pal[i][0] = get8u(s); - if (hsz != 12) get8(s); - pal[i][3] = 255; - } - skip(s, offset - 14 - hsz - psize * (hsz == 12 ? 3 : 4)); - if (bpp == 4) width = (s->img_x + 1) >> 1; - else if (bpp == 8) width = s->img_x; - else { free(out); return epuc("bad bpp", "Corrupt BMP"); } - pad = (-width)&3; - for (j=0; j < (int) s->img_y; ++j) { - for (i=0; i < (int) s->img_x; i += 2) { - int v=get8(s),v2=0; - if (bpp == 4) { - v2 = v & 15; - v >>= 4; - } - out[z++] = pal[v][0]; - out[z++] = pal[v][1]; - out[z++] = pal[v][2]; - if (target == 4) out[z++] = 255; - if (i+1 == (int) s->img_x) break; - v = (bpp == 8) ? get8(s) : v2; - out[z++] = pal[v][0]; - out[z++] = pal[v][1]; - out[z++] = pal[v][2]; - if (target == 4) out[z++] = 255; - } - skip(s, pad); - } - } else { - int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; - int z = 0; - int easy=0; - skip(s, offset - 14 - hsz); - if (bpp == 24) width = 3 * s->img_x; - else if (bpp == 16) width = 2*s->img_x; - else /* bpp = 32 and pad = 0 */ width=0; - pad = (-width) & 3; - if (bpp == 24) { - easy = 1; - } else if (bpp == 32) { - if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000) - easy = 2; - } - if (!easy) { - if (!mr || !mg || !mb) { free(out); return epuc("bad masks", "Corrupt BMP"); } - // right shift amt to put high bit in position #7 - rshift = high_bit(mr)-7; rcount = bitcount(mr); - gshift = high_bit(mg)-7; gcount = bitcount(mr); - bshift = high_bit(mb)-7; bcount = bitcount(mr); - ashift = high_bit(ma)-7; acount = bitcount(mr); - } - for (j=0; j < (int) s->img_y; ++j) { - if (easy) { - for (i=0; i < (int) s->img_x; ++i) { - int a; - out[z+2] = get8u(s); - out[z+1] = get8u(s); - out[z+0] = get8u(s); - z += 3; - a = (easy == 2 ? get8(s) : 255); - if (target == 4) out[z++] = (uint8) a; - } - } else { - for (i=0; i < (int) s->img_x; ++i) { - uint32 v = (bpp == 16 ? get16le(s) : get32le(s)); - int a; - out[z++] = (uint8) shiftsigned(v & mr, rshift, rcount); - out[z++] = (uint8) shiftsigned(v & mg, gshift, gcount); - out[z++] = (uint8) shiftsigned(v & mb, bshift, bcount); - a = (ma ? shiftsigned(v & ma, ashift, acount) : 255); - if (target == 4) out[z++] = (uint8) a; - } - } - skip(s, pad); - } - } - if (flip_vertically) { - stbi_uc t; - for (j=0; j < (int) s->img_y>>1; ++j) { - stbi_uc *p1 = out + j *s->img_x*target; - stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target; - for (i=0; i < (int) s->img_x*target; ++i) { - t = p1[i], p1[i] = p2[i], p2[i] = t; - } - } - } - - if (req_comp && req_comp != target) { - out = convert_format(out, target, req_comp, s->img_x, s->img_y); - if (out == NULL) return out; // convert_format frees input on failure - } - - *x = s->img_x; - *y = s->img_y; - if (comp) *comp = s->img_n; - return out; -} - -static stbi_uc *stbi_bmp_load(stbi *s,int *x, int *y, int *comp, int req_comp) -{ - return bmp_load(s, x,y,comp,req_comp); -} - - -// Targa Truevision - TGA -// by Jonathan Dummer - -static int tga_info(stbi *s, int *x, int *y, int *comp) -{ - int tga_w, tga_h, tga_comp; - int sz; - get8u(s); // discard Offset - sz = get8u(s); // color type - if( sz > 1 ) { - stbi_rewind(s); - return 0; // only RGB or indexed allowed - } - sz = get8u(s); // image type - // only RGB or grey allowed, +/- RLE - if ((sz != 1) && (sz != 2) && (sz != 3) && (sz != 9) && (sz != 10) && (sz != 11)) return 0; - skip(s,9); - tga_w = get16le(s); - if( tga_w < 1 ) { - stbi_rewind(s); - return 0; // test width - } - tga_h = get16le(s); - if( tga_h < 1 ) { - stbi_rewind(s); - return 0; // test height - } - sz = get8(s); // bits per pixel - // only RGB or RGBA or grey allowed - if ((sz != 8) && (sz != 16) && (sz != 24) && (sz != 32)) { - stbi_rewind(s); - return 0; - } - tga_comp = sz; - if (x) *x = tga_w; - if (y) *y = tga_h; - if (comp) *comp = tga_comp / 8; - return 1; // seems to have passed everything -} - -int stbi_tga_info(stbi *s, int *x, int *y, int *comp) -{ - return tga_info(s, x, y, comp); -} - -static int tga_test(stbi *s) -{ - int sz; - get8u(s); // discard Offset - sz = get8u(s); // color type - if ( sz > 1 ) return 0; // only RGB or indexed allowed - sz = get8u(s); // image type - if ( (sz != 1) && (sz != 2) && (sz != 3) && (sz != 9) && (sz != 10) && (sz != 11) ) return 0; // only RGB or grey allowed, +/- RLE - get16(s); // discard palette start - get16(s); // discard palette length - get8(s); // discard bits per palette color entry - get16(s); // discard x origin - get16(s); // discard y origin - if ( get16(s) < 1 ) return 0; // test width - if ( get16(s) < 1 ) return 0; // test height - sz = get8(s); // bits per pixel - if ( (sz != 8) && (sz != 16) && (sz != 24) && (sz != 32) ) return 0; // only RGB or RGBA or grey allowed - return 1; // seems to have passed everything -} - -static int stbi_tga_test(stbi *s) -{ - int res = tga_test(s); - stbi_rewind(s); - return res; -} - -static stbi_uc *tga_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - // read in the TGA header stuff - int tga_offset = get8u(s); - int tga_indexed = get8u(s); - int tga_image_type = get8u(s); - int tga_is_RLE = 0; - int tga_palette_start = get16le(s); - int tga_palette_len = get16le(s); - int tga_palette_bits = get8u(s); - int tga_x_origin = get16le(s); - int tga_y_origin = get16le(s); - int tga_width = get16le(s); - int tga_height = get16le(s); - int tga_bits_per_pixel = get8u(s); - int tga_inverted = get8u(s); - // image data - unsigned char *tga_data; - unsigned char *tga_palette = NULL; - int i, j; - unsigned char raw_data[4]; - unsigned char trans_data[4]; - int RLE_count = 0; - int RLE_repeating = 0; - int read_next_pixel = 1; - - // do a tiny bit of precessing - if ( tga_image_type >= 8 ) - { - tga_image_type -= 8; - tga_is_RLE = 1; - } - /* int tga_alpha_bits = tga_inverted & 15; */ - tga_inverted = 1 - ((tga_inverted >> 5) & 1); - - // error check - if ( //(tga_indexed) || - (tga_width < 1) || (tga_height < 1) || - (tga_image_type < 1) || (tga_image_type > 3) || - ((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16) && - (tga_bits_per_pixel != 24) && (tga_bits_per_pixel != 32)) - ) - { - return NULL; // we don't report this as a bad TGA because we don't even know if it's TGA - } - - // If I'm paletted, then I'll use the number of bits from the palette - if ( tga_indexed ) - { - tga_bits_per_pixel = tga_palette_bits; - } - - // tga info - *x = tga_width; - *y = tga_height; - if ( (req_comp < 1) || (req_comp > 4) ) - { - // just use whatever the file was - req_comp = tga_bits_per_pixel / 8; - *comp = req_comp; - } else - { - // force a new number of components - *comp = tga_bits_per_pixel/8; - } - tga_data = (unsigned char*)malloc( tga_width * tga_height * req_comp ); - if (!tga_data) return epuc("outofmem", "Out of memory"); - - // skip to the data's starting position (offset usually = 0) - skip(s, tga_offset ); - // do I need to load a palette? - if ( tga_indexed ) - { - // any data to skip? (offset usually = 0) - skip(s, tga_palette_start ); - // load the palette - tga_palette = (unsigned char*)malloc( tga_palette_len * tga_palette_bits / 8 ); - if (!tga_palette) return epuc("outofmem", "Out of memory"); - if (!getn(s, tga_palette, tga_palette_len * tga_palette_bits / 8 )) { - free(tga_data); - free(tga_palette); - return epuc("bad palette", "Corrupt TGA"); - } - } - // load the data - trans_data[0] = trans_data[1] = trans_data[2] = trans_data[3] = 0; - for (i=0; i < tga_width * tga_height; ++i) - { - // if I'm in RLE mode, do I need to get a RLE chunk? - if ( tga_is_RLE ) - { - if ( RLE_count == 0 ) - { - // yep, get the next byte as a RLE command - int RLE_cmd = get8u(s); - RLE_count = 1 + (RLE_cmd & 127); - RLE_repeating = RLE_cmd >> 7; - read_next_pixel = 1; - } else if ( !RLE_repeating ) - { - read_next_pixel = 1; - } - } else - { - read_next_pixel = 1; - } - // OK, if I need to read a pixel, do it now - if ( read_next_pixel ) - { - // load however much data we did have - if ( tga_indexed ) - { - // read in 1 byte, then perform the lookup - int pal_idx = get8u(s); - if ( pal_idx >= tga_palette_len ) - { - // invalid index - pal_idx = 0; - } - pal_idx *= tga_bits_per_pixel / 8; - for (j = 0; j*8 < tga_bits_per_pixel; ++j) - { - raw_data[j] = tga_palette[pal_idx+j]; - } - } else - { - // read in the data raw - for (j = 0; j*8 < tga_bits_per_pixel; ++j) - { - raw_data[j] = get8u(s); - } - } - // convert raw to the intermediate format - switch (tga_bits_per_pixel) - { - case 8: - // Luminous => RGBA - trans_data[0] = raw_data[0]; - trans_data[1] = raw_data[0]; - trans_data[2] = raw_data[0]; - trans_data[3] = 255; - break; - case 16: - // Luminous,Alpha => RGBA - trans_data[0] = raw_data[0]; - trans_data[1] = raw_data[0]; - trans_data[2] = raw_data[0]; - trans_data[3] = raw_data[1]; - break; - case 24: - // BGR => RGBA - trans_data[0] = raw_data[2]; - trans_data[1] = raw_data[1]; - trans_data[2] = raw_data[0]; - trans_data[3] = 255; - break; - case 32: - // BGRA => RGBA - trans_data[0] = raw_data[2]; - trans_data[1] = raw_data[1]; - trans_data[2] = raw_data[0]; - trans_data[3] = raw_data[3]; - break; - } - // clear the reading flag for the next pixel - read_next_pixel = 0; - } // end of reading a pixel - // convert to final format - switch (req_comp) - { - case 1: - // RGBA => Luminance - tga_data[i*req_comp+0] = compute_y(trans_data[0],trans_data[1],trans_data[2]); - break; - case 2: - // RGBA => Luminance,Alpha - tga_data[i*req_comp+0] = compute_y(trans_data[0],trans_data[1],trans_data[2]); - tga_data[i*req_comp+1] = trans_data[3]; - break; - case 3: - // RGBA => RGB - tga_data[i*req_comp+0] = trans_data[0]; - tga_data[i*req_comp+1] = trans_data[1]; - tga_data[i*req_comp+2] = trans_data[2]; - break; - case 4: - // RGBA => RGBA - tga_data[i*req_comp+0] = trans_data[0]; - tga_data[i*req_comp+1] = trans_data[1]; - tga_data[i*req_comp+2] = trans_data[2]; - tga_data[i*req_comp+3] = trans_data[3]; - break; - } - // in case we're in RLE mode, keep counting down - --RLE_count; - } - // do I need to invert the image? - if ( tga_inverted ) - { - for (j = 0; j*2 < tga_height; ++j) - { - int index1 = j * tga_width * req_comp; - int index2 = (tga_height - 1 - j) * tga_width * req_comp; - for (i = tga_width * req_comp; i > 0; --i) - { - unsigned char temp = tga_data[index1]; - tga_data[index1] = tga_data[index2]; - tga_data[index2] = temp; - ++index1; - ++index2; - } - } - } - // clear my palette, if I had one - if ( tga_palette != NULL ) - { - free( tga_palette ); - } - // the things I do to get rid of an error message, and yet keep - // Microsoft's C compilers happy... [8^( - tga_palette_start = tga_palette_len = tga_palette_bits = - tga_x_origin = tga_y_origin = 0; - // OK, done - return tga_data; -} - -static stbi_uc *stbi_tga_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - return tga_load(s,x,y,comp,req_comp); -} - - -// ************************************************************************************************* -// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB - -static int psd_test(stbi *s) -{ - if (get32(s) != 0x38425053) return 0; // "8BPS" - else return 1; -} - -static int stbi_psd_test(stbi *s) -{ - int r = psd_test(s); - stbi_rewind(s); - return r; -} - -static stbi_uc *psd_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - int pixelCount; - int channelCount, compression; - int channel, i, count, len; - int w,h; - uint8 *out; - - // Check identifier - if (get32(s) != 0x38425053) // "8BPS" - return epuc("not PSD", "Corrupt PSD image"); - - // Check file type version. - if (get16(s) != 1) - return epuc("wrong version", "Unsupported version of PSD image"); - - // Skip 6 reserved bytes. - skip(s, 6 ); - - // Read the number of channels (R, G, B, A, etc). - channelCount = get16(s); - if (channelCount < 0 || channelCount > 16) - return epuc("wrong channel count", "Unsupported number of channels in PSD image"); - - // Read the rows and columns of the image. - h = get32(s); - w = get32(s); - - // Make sure the depth is 8 bits. - if (get16(s) != 8) - return epuc("unsupported bit depth", "PSD bit depth is not 8 bit"); - - // Make sure the color mode is RGB. - // Valid options are: - // 0: Bitmap - // 1: Grayscale - // 2: Indexed color - // 3: RGB color - // 4: CMYK color - // 7: Multichannel - // 8: Duotone - // 9: Lab color - if (get16(s) != 3) - return epuc("wrong color format", "PSD is not in RGB color format"); - - // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.) - skip(s,get32(s) ); - - // Skip the image resources. (resolution, pen tool paths, etc) - skip(s, get32(s) ); - - // Skip the reserved data. - skip(s, get32(s) ); - - // Find out if the data is compressed. - // Known values: - // 0: no compression - // 1: RLE compressed - compression = get16(s); - if (compression > 1) - return epuc("bad compression", "PSD has an unknown compression format"); - - // Create the destination image. - out = (stbi_uc *) malloc(4 * w*h); - if (!out) return epuc("outofmem", "Out of memory"); - pixelCount = w*h; - - // Initialize the data to zero. - //memset( out, 0, pixelCount * 4 ); - - // Finally, the image data. - if (compression) { - // RLE as used by .PSD and .TIFF - // Loop until you get the number of unpacked bytes you are expecting: - // Read the next source byte into n. - // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally. - // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times. - // Else if n is 128, noop. - // Endloop - - // The RLE-compressed data is preceeded by a 2-byte data count for each row in the data, - // which we're going to just skip. - skip(s, h * channelCount * 2 ); - - // Read the RLE data by channel. - for (channel = 0; channel < 4; channel++) { - uint8 *p; - - p = out+channel; - if (channel >= channelCount) { - // Fill this channel with default data. - for (i = 0; i < pixelCount; i++) *p = (channel == 3 ? 255 : 0), p += 4; - } else { - // Read the RLE data. - count = 0; - while (count < pixelCount) { - len = get8(s); - if (len == 128) { - // No-op. - } else if (len < 128) { - // Copy next len+1 bytes literally. - len++; - count += len; - while (len) { - *p = get8u(s); - p += 4; - len--; - } - } else if (len > 128) { - uint8 val; - // Next -len+1 bytes in the dest are replicated from next source byte. - // (Interpret len as a negative 8-bit int.) - len ^= 0x0FF; - len += 2; - val = get8u(s); - count += len; - while (len) { - *p = val; - p += 4; - len--; - } - } - } - } - } - - } else { - // We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...) - // where each channel consists of an 8-bit value for each pixel in the image. - - // Read the data by channel. - for (channel = 0; channel < 4; channel++) { - uint8 *p; - - p = out + channel; - if (channel > channelCount) { - // Fill this channel with default data. - for (i = 0; i < pixelCount; i++) *p = channel == 3 ? 255 : 0, p += 4; - } else { - // Read the data. - for (i = 0; i < pixelCount; i++) - *p = get8u(s), p += 4; - } - } - } - - if (req_comp && req_comp != 4) { - out = convert_format(out, 4, req_comp, w, h); - if (out == NULL) return out; // convert_format frees input on failure - } - - if (comp) *comp = channelCount; - *y = h; - *x = w; - - return out; -} - -static stbi_uc *stbi_psd_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - return psd_load(s,x,y,comp,req_comp); -} - -// ************************************************************************************************* -// Softimage PIC loader -// by Tom Seddon -// -// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format -// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/ - -static int pic_is4(stbi *s,const char *str) -{ - int i; - for (i=0; i<4; ++i) - if (get8(s) != (stbi_uc)str[i]) - return 0; - - return 1; -} - -static int pic_test(stbi *s) -{ - int i; - - if (!pic_is4(s,"\x53\x80\xF6\x34")) - return 0; - - for(i=0;i<84;++i) - get8(s); - - if (!pic_is4(s,"PICT")) - return 0; - - return 1; -} - -typedef struct -{ - stbi_uc size,type,channel; -} pic_packet_t; - -static stbi_uc *pic_readval(stbi *s, int channel, stbi_uc *dest) -{ - int mask=0x80, i; - - for (i=0; i<4; ++i, mask>>=1) { - if (channel & mask) { - if (at_eof(s)) return epuc("bad file","PIC file too short"); - dest[i]=get8u(s); - } - } - - return dest; -} - -static void pic_copyval(int channel,stbi_uc *dest,const stbi_uc *src) -{ - int mask=0x80,i; - - for (i=0;i<4; ++i, mask>>=1) - if (channel&mask) - dest[i]=src[i]; -} - -static stbi_uc *pic_load2(stbi *s,int width,int height,int *comp, stbi_uc *result) -{ - int act_comp=0,num_packets=0,y,chained; - pic_packet_t packets[10]; - - // this will (should...) cater for even some bizarre stuff like having data - // for the same channel in multiple packets. - do { - pic_packet_t *packet; - - if (num_packets==sizeof(packets)/sizeof(packets[0])) - return epuc("bad format","too many packets"); - - packet = &packets[num_packets++]; - - chained = get8(s); - packet->size = get8u(s); - packet->type = get8u(s); - packet->channel = get8u(s); - - act_comp |= packet->channel; - - if (at_eof(s)) return epuc("bad file","file too short (reading packets)"); - if (packet->size != 8) return epuc("bad format","packet isn't 8bpp"); - } while (chained); - - *comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel? - - for(y=0; ytype) { - default: - return epuc("bad format","packet has bad compression type"); - - case 0: {//uncompressed - int x; - - for(x=0;xchannel,dest)) - return 0; - break; - } - - case 1://Pure RLE - { - int left=width, i; - - while (left>0) { - stbi_uc count,value[4]; - - count=get8u(s); - if (at_eof(s)) return epuc("bad file","file too short (pure read count)"); - - if (count > left) - count = (uint8) left; - - if (!pic_readval(s,packet->channel,value)) return 0; - - for(i=0; ichannel,dest,value); - left -= count; - } - } - break; - - case 2: {//Mixed RLE - int left=width; - while (left>0) { - int count = get8(s), i; - if (at_eof(s)) return epuc("bad file","file too short (mixed read count)"); - - if (count >= 128) { // Repeated - stbi_uc value[4]; - int i; - - if (count==128) - count = get16(s); - else - count -= 127; - if (count > left) - return epuc("bad file","scanline overrun"); - - if (!pic_readval(s,packet->channel,value)) - return 0; - - for(i=0;ichannel,dest,value); - } else { // Raw - ++count; - if (count>left) return epuc("bad file","scanline overrun"); - - for(i=0;ichannel,dest)) - return 0; - } - left-=count; - } - break; - } - } - } - } - - return result; -} - -static stbi_uc *pic_load(stbi *s,int *px,int *py,int *comp,int req_comp) -{ - stbi_uc *result; - int i, x,y; - - for (i=0; i<92; ++i) - get8(s); - - x = get16(s); - y = get16(s); - if (at_eof(s)) return epuc("bad file","file too short (pic header)"); - if ((1 << 28) / x < y) return epuc("too large", "Image too large to decode"); - - get32(s); //skip `ratio' - get16(s); //skip `fields' - get16(s); //skip `pad' - - // intermediate buffer is RGBA - result = (stbi_uc *) malloc(x*y*4); - memset(result, 0xff, x*y*4); - - if (!pic_load2(s,x,y,comp, result)) { - free(result); - result=0; - } - *px = x; - *py = y; - if (req_comp == 0) req_comp = *comp; - result=convert_format(result,4,req_comp,x,y); - - return result; -} - -static int stbi_pic_test(stbi *s) -{ - int r = pic_test(s); - stbi_rewind(s); - return r; -} - -static stbi_uc *stbi_pic_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - return pic_load(s,x,y,comp,req_comp); -} - -// ************************************************************************************************* -// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb -typedef struct stbi_gif_lzw_struct { - int16 prefix; - uint8 first; - uint8 suffix; -} stbi_gif_lzw; - -typedef struct stbi_gif_struct -{ - int w,h; - stbi_uc *out; // output buffer (always 4 components) - int flags, bgindex, ratio, transparent, eflags; - uint8 pal[256][4]; - uint8 lpal[256][4]; - stbi_gif_lzw codes[4096]; - uint8 *color_table; - int parse, step; - int lflags; - int start_x, start_y; - int max_x, max_y; - int cur_x, cur_y; - int line_size; -} stbi_gif; - -static int gif_test(stbi *s) -{ - int sz; - if (get8(s) != 'G' || get8(s) != 'I' || get8(s) != 'F' || get8(s) != '8') return 0; - sz = get8(s); - if (sz != '9' && sz != '7') return 0; - if (get8(s) != 'a') return 0; - return 1; -} - -static int stbi_gif_test(stbi *s) -{ - int r = gif_test(s); - stbi_rewind(s); - return r; -} - -static void stbi_gif_parse_colortable(stbi *s, uint8 pal[256][4], int num_entries, int transp) -{ - int i; - for (i=0; i < num_entries; ++i) { - pal[i][2] = get8u(s); - pal[i][1] = get8u(s); - pal[i][0] = get8u(s); - pal[i][3] = transp ? 0 : 255; - } -} - -static int stbi_gif_header(stbi *s, stbi_gif *g, int *comp, int is_info) -{ - uint8 version; - if (get8(s) != 'G' || get8(s) != 'I' || get8(s) != 'F' || get8(s) != '8') - return e("not GIF", "Corrupt GIF"); - - version = get8u(s); - if (version != '7' && version != '9') return e("not GIF", "Corrupt GIF"); - if (get8(s) != 'a') return e("not GIF", "Corrupt GIF"); - - failure_reason = ""; - g->w = get16le(s); - g->h = get16le(s); - g->flags = get8(s); - g->bgindex = get8(s); - g->ratio = get8(s); - g->transparent = -1; - - if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments - - if (is_info) return 1; - - if (g->flags & 0x80) - stbi_gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); - - return 1; -} - -static int stbi_gif_info_raw(stbi *s, int *x, int *y, int *comp) -{ - stbi_gif g; - if (!stbi_gif_header(s, &g, comp, 1)) { - stbi_rewind( s ); - return 0; - } - if (x) *x = g.w; - if (y) *y = g.h; - return 1; -} - -static void stbi_out_gif_code(stbi_gif *g, uint16 code) -{ - uint8 *p, *c; - - // recurse to decode the prefixes, since the linked-list is backwards, - // and working backwards through an interleaved image would be nasty - if (g->codes[code].prefix >= 0) - stbi_out_gif_code(g, g->codes[code].prefix); - - if (g->cur_y >= g->max_y) return; - - p = &g->out[g->cur_x + g->cur_y]; - c = &g->color_table[g->codes[code].suffix * 4]; - - if (c[3] >= 128) { - p[0] = c[2]; - p[1] = c[1]; - p[2] = c[0]; - p[3] = c[3]; - } - g->cur_x += 4; - - if (g->cur_x >= g->max_x) { - g->cur_x = g->start_x; - g->cur_y += g->step; - - while (g->cur_y >= g->max_y && g->parse > 0) { - g->step = (1 << g->parse) * g->line_size; - g->cur_y = g->start_y + (g->step >> 1); - --g->parse; - } - } -} - -static uint8 *stbi_process_gif_raster(stbi *s, stbi_gif *g) -{ - uint8 lzw_cs; - int32 len, code; - uint32 first; - int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; - stbi_gif_lzw *p; - - lzw_cs = get8u(s); - clear = 1 << lzw_cs; - first = 1; - codesize = lzw_cs + 1; - codemask = (1 << codesize) - 1; - bits = 0; - valid_bits = 0; - for (code = 0; code < clear; code++) { - g->codes[code].prefix = -1; - g->codes[code].first = (uint8) code; - g->codes[code].suffix = (uint8) code; - } - - // support no starting clear code - avail = clear+2; - oldcode = -1; - - len = 0; - for(;;) { - if (valid_bits < codesize) { - if (len == 0) { - len = get8(s); // start new block - if (len == 0) - return g->out; - } - --len; - bits |= (int32) get8(s) << valid_bits; - valid_bits += 8; - } else { - int32 code = bits & codemask; - bits >>= codesize; - valid_bits -= codesize; - // @OPTIMIZE: is there some way we can accelerate the non-clear path? - if (code == clear) { // clear code - codesize = lzw_cs + 1; - codemask = (1 << codesize) - 1; - avail = clear + 2; - oldcode = -1; - first = 0; - } else if (code == clear + 1) { // end of stream code - skip(s, len); - while ((len = get8(s)) > 0) - skip(s,len); - return g->out; - } else if (code <= avail) { - if (first) return epuc("no clear code", "Corrupt GIF"); - - if (oldcode >= 0) { - p = &g->codes[avail++]; - if (avail > 4096) return epuc("too many codes", "Corrupt GIF"); - p->prefix = (int16) oldcode; - p->first = g->codes[oldcode].first; - p->suffix = (code == avail) ? p->first : g->codes[code].first; - } else if (code == avail) - return epuc("illegal code in raster", "Corrupt GIF"); - - stbi_out_gif_code(g, (uint16) code); - - if ((avail & codemask) == 0 && avail <= 0x0FFF) { - codesize++; - codemask = (1 << codesize) - 1; - } - - oldcode = code; - } else { - return epuc("illegal code in raster", "Corrupt GIF"); - } - } - } -} - -static void stbi_fill_gif_background(stbi_gif *g) -{ - int i; - uint8 *c = g->pal[g->bgindex]; - // @OPTIMIZE: write a dword at a time - for (i = 0; i < g->w * g->h * 4; i += 4) { - uint8 *p = &g->out[i]; - p[0] = c[2]; - p[1] = c[1]; - p[2] = c[0]; - p[3] = c[3]; - } -} - -// this function is designed to support animated gifs, although stb_image doesn't support it -static uint8 *stbi_gif_load_next(stbi *s, stbi_gif *g, int *comp, int req_comp) -{ - int i; - uint8 *old_out = 0; - - if (g->out == 0) { - if (!stbi_gif_header(s, g, comp,0)) return 0; // failure_reason set by stbi_gif_header - g->out = (uint8 *) malloc(4 * g->w * g->h); - if (g->out == 0) return epuc("outofmem", "Out of memory"); - stbi_fill_gif_background(g); - } else { - // animated-gif-only path - if (((g->eflags & 0x1C) >> 2) == 3) { - old_out = g->out; - g->out = (uint8 *) malloc(4 * g->w * g->h); - if (g->out == 0) return epuc("outofmem", "Out of memory"); - memcpy(g->out, old_out, g->w*g->h*4); - } - } - - for (;;) { - switch (get8(s)) { - case 0x2C: /* Image Descriptor */ - { - int32 x, y, w, h; - uint8 *o; - - x = get16le(s); - y = get16le(s); - w = get16le(s); - h = get16le(s); - if (((x + w) > (g->w)) || ((y + h) > (g->h))) - return epuc("bad Image Descriptor", "Corrupt GIF"); - - g->line_size = g->w * 4; - g->start_x = x * 4; - g->start_y = y * g->line_size; - g->max_x = g->start_x + w * 4; - g->max_y = g->start_y + h * g->line_size; - g->cur_x = g->start_x; - g->cur_y = g->start_y; - - g->lflags = get8(s); - - if (g->lflags & 0x40) { - g->step = 8 * g->line_size; // first interlaced spacing - g->parse = 3; - } else { - g->step = g->line_size; - g->parse = 0; - } - - if (g->lflags & 0x80) { - stbi_gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1); - g->color_table = (uint8 *) g->lpal; - } else if (g->flags & 0x80) { - for (i=0; i < 256; ++i) // @OPTIMIZE: reset only the previous transparent - g->pal[i][3] = 255; - if (g->transparent >= 0 && (g->eflags & 0x01)) - g->pal[g->transparent][3] = 0; - g->color_table = (uint8 *) g->pal; - } else - return epuc("missing color table", "Corrupt GIF"); - - o = stbi_process_gif_raster(s, g); - if (o == NULL) return NULL; - - if (req_comp && req_comp != 4) - o = convert_format(o, 4, req_comp, g->w, g->h); - return o; - } - - case 0x21: // Comment Extension. - { - int len; - if (get8(s) == 0xF9) { // Graphic Control Extension. - len = get8(s); - if (len == 4) { - g->eflags = get8(s); - get16le(s); // delay - g->transparent = get8(s); - } else { - skip(s, len); - break; - } - } - while ((len = get8(s)) != 0) - skip(s, len); - break; - } - - case 0x3B: // gif stream termination code - return (uint8 *) 1; - - default: - return epuc("unknown code", "Corrupt GIF"); - } - } -} - -static stbi_uc *stbi_gif_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - uint8 *u = 0; - stbi_gif g={0}; - - u = stbi_gif_load_next(s, &g, comp, req_comp); - if (u == (void *) 1) u = 0; // end of animated gif marker - if (u) { - *x = g.w; - *y = g.h; - } - - return u; -} - -static int stbi_gif_info(stbi *s, int *x, int *y, int *comp) -{ - return stbi_gif_info_raw(s,x,y,comp); -} - - -// ************************************************************************************************* -// Radiance RGBE HDR loader -// originally by Nicolas Schulz -#ifndef STBI_NO_HDR -static int hdr_test(stbi *s) -{ - const char *signature = "#?RADIANCE\n"; - int i; - for (i=0; signature[i]; ++i) - if (get8(s) != signature[i]) - return 0; - return 1; -} - -static int stbi_hdr_test(stbi* s) -{ - int r = hdr_test(s); - stbi_rewind(s); - return r; -} - -#define HDR_BUFLEN 1024 -static char *hdr_gettoken(stbi *z, char *buffer) -{ - int len=0; - char c = '\0'; - - c = (char) get8(z); - - while (!at_eof(z) && c != '\n') { - buffer[len++] = c; - if (len == HDR_BUFLEN-1) { - // flush to end of line - while (!at_eof(z) && get8(z) != '\n') - ; - break; - } - c = (char) get8(z); - } - - buffer[len] = 0; - return buffer; -} - -static void hdr_convert(float *output, stbi_uc *input, int req_comp) -{ - if ( input[3] != 0 ) { - float f1; - // Exponent - f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8)); - if (req_comp <= 2) - output[0] = (input[0] + input[1] + input[2]) * f1 / 3; - else { - output[0] = input[0] * f1; - output[1] = input[1] * f1; - output[2] = input[2] * f1; - } - if (req_comp == 2) output[1] = 1; - if (req_comp == 4) output[3] = 1; - } else { - switch (req_comp) { - case 4: output[3] = 1; /* fallthrough */ - case 3: output[0] = output[1] = output[2] = 0; - break; - case 2: output[1] = 1; /* fallthrough */ - case 1: output[0] = 0; - break; - } - } -} - -static float *hdr_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - char buffer[HDR_BUFLEN]; - char *token; - int valid = 0; - int width, height; - stbi_uc *scanline; - float *hdr_data; - int len; - unsigned char count, value; - int i, j, k, c1,c2, z; - - - // Check identifier - if (strcmp(hdr_gettoken(s,buffer), "#?RADIANCE") != 0) - return epf("not HDR", "Corrupt HDR image"); - - // Parse header - for(;;) { - token = hdr_gettoken(s,buffer); - if (token[0] == 0) break; - if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; - } - - if (!valid) return epf("unsupported format", "Unsupported HDR format"); - - // Parse width and height - // can't use sscanf() if we're not using stdio! - token = hdr_gettoken(s,buffer); - if (strncmp(token, "-Y ", 3)) return epf("unsupported data layout", "Unsupported HDR format"); - token += 3; - height = strtol(token, &token, 10); - while (*token == ' ') ++token; - if (strncmp(token, "+X ", 3)) return epf("unsupported data layout", "Unsupported HDR format"); - token += 3; - width = strtol(token, NULL, 10); - - *x = width; - *y = height; - - *comp = 3; - if (req_comp == 0) req_comp = 3; - - // Read data - hdr_data = (float *) malloc(height * width * req_comp * sizeof(float)); - - // Load image data - // image data is stored as some number of sca - if ( width < 8 || width >= 32768) { - // Read flat data - for (j=0; j < height; ++j) { - for (i=0; i < width; ++i) { - stbi_uc rgbe[4]; - main_decode_loop: - getn(s, rgbe, 4); - hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp); - } - } - } else { - // Read RLE-encoded data - scanline = NULL; - - for (j = 0; j < height; ++j) { - c1 = get8(s); - c2 = get8(s); - len = get8(s); - if (c1 != 2 || c2 != 2 || (len & 0x80)) { - // not run-length encoded, so we have to actually use THIS data as a decoded - // pixel (note this can't be a valid pixel--one of RGB must be >= 128) - uint8 rgbe[4]; - rgbe[0] = (uint8) c1; - rgbe[1] = (uint8) c2; - rgbe[2] = (uint8) len; - rgbe[3] = (uint8) get8u(s); - hdr_convert(hdr_data, rgbe, req_comp); - i = 1; - j = 0; - free(scanline); - goto main_decode_loop; // yes, this makes no sense - } - len <<= 8; - len |= get8(s); - if (len != width) { free(hdr_data); free(scanline); return epf("invalid decoded scanline length", "corrupt HDR"); } - if (scanline == NULL) scanline = (stbi_uc *) malloc(width * 4); - - for (k = 0; k < 4; ++k) { - i = 0; - while (i < width) { - count = get8u(s); - if (count > 128) { - // Run - value = get8u(s); - count -= 128; - for (z = 0; z < count; ++z) - scanline[i++ * 4 + k] = value; - } else { - // Dump - for (z = 0; z < count; ++z) - scanline[i++ * 4 + k] = get8u(s); - } - } - } - for (i=0; i < width; ++i) - hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp); - } - free(scanline); - } - - return hdr_data; -} - -static float *stbi_hdr_load(stbi *s, int *x, int *y, int *comp, int req_comp) -{ - return hdr_load(s,x,y,comp,req_comp); -} - -static int stbi_hdr_info(stbi *s, int *x, int *y, int *comp) -{ - char buffer[HDR_BUFLEN]; - char *token; - int valid = 0; - - if (strcmp(hdr_gettoken(s,buffer), "#?RADIANCE") != 0) { - stbi_rewind( s ); - return 0; - } - - for(;;) { - token = hdr_gettoken(s,buffer); - if (token[0] == 0) break; - if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; - } - - if (!valid) { - stbi_rewind( s ); - return 0; - } - token = hdr_gettoken(s,buffer); - if (strncmp(token, "-Y ", 3)) { - stbi_rewind( s ); - return 0; - } - token += 3; - *y = strtol(token, &token, 10); - while (*token == ' ') ++token; - if (strncmp(token, "+X ", 3)) { - stbi_rewind( s ); - return 0; - } - token += 3; - *x = strtol(token, NULL, 10); - *comp = 3; - return 1; -} -#endif // STBI_NO_HDR - -static int stbi_bmp_info(stbi *s, int *x, int *y, int *comp) -{ - int hsz; - if (get8(s) != 'B' || get8(s) != 'M') { - stbi_rewind( s ); - return 0; - } - skip(s,12); - hsz = get32le(s); - if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108) { - stbi_rewind( s ); - return 0; - } - if (hsz == 12) { - *x = get16le(s); - *y = get16le(s); - } else { - *x = get32le(s); - *y = get32le(s); - } - if (get16le(s) != 1) { - stbi_rewind( s ); - return 0; - } - *comp = get16le(s) / 8; - return 1; -} - -static int stbi_psd_info(stbi *s, int *x, int *y, int *comp) -{ - int channelCount; - if (get32(s) != 0x38425053) { - stbi_rewind( s ); - return 0; - } - if (get16(s) != 1) { - stbi_rewind( s ); - return 0; - } - skip(s, 6); - channelCount = get16(s); - if (channelCount < 0 || channelCount > 16) { - stbi_rewind( s ); - return 0; - } - *y = get32(s); - *x = get32(s); - if (get16(s) != 8) { - stbi_rewind( s ); - return 0; - } - if (get16(s) != 3) { - stbi_rewind( s ); - return 0; - } - *comp = 4; - return 1; -} - -static int stbi_pic_info(stbi *s, int *x, int *y, int *comp) -{ - int act_comp=0,num_packets=0,chained; - pic_packet_t packets[10]; - - skip(s, 92); - - *x = get16(s); - *y = get16(s); - if (at_eof(s)) return 0; - if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { - stbi_rewind( s ); - return 0; - } - - skip(s, 8); - - do { - pic_packet_t *packet; - - if (num_packets==sizeof(packets)/sizeof(packets[0])) - return 0; - - packet = &packets[num_packets++]; - chained = get8(s); - packet->size = get8u(s); - packet->type = get8u(s); - packet->channel = get8u(s); - act_comp |= packet->channel; - - if (at_eof(s)) { - stbi_rewind( s ); - return 0; - } - if (packet->size != 8) { - stbi_rewind( s ); - return 0; - } - } while (chained); - - *comp = (act_comp & 0x10 ? 4 : 3); - - return 1; -} - -static int stbi_info_main(stbi *s, int *x, int *y, int *comp) -{ - if (stbi_jpeg_info(s, x, y, comp)) - return 1; - if (stbi_png_info(s, x, y, comp)) - return 1; - if (stbi_gif_info(s, x, y, comp)) - return 1; - if (stbi_bmp_info(s, x, y, comp)) - return 1; - if (stbi_psd_info(s, x, y, comp)) - return 1; - if (stbi_pic_info(s, x, y, comp)) - return 1; - #ifndef STBI_NO_HDR - if (stbi_hdr_info(s, x, y, comp)) - return 1; - #endif - // test tga last because it's a crappy test! - if (stbi_tga_info(s, x, y, comp)) - return 1; - return e("unknown image type", "Image not of any known type, or corrupt"); -} - -#ifndef STBI_NO_STDIO -int stbi_info(char const *filename, int *x, int *y, int *comp) -{ - FILE *f = fopen(filename, "rb"); - int result; - if (!f) return e("can't fopen", "Unable to open file"); - result = stbi_info_from_file(f, x, y, comp); - fclose(f); - return result; -} - -int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) -{ - int r; - stbi s; - long pos = ftell(f); - start_file(&s, f); - r = stbi_info_main(&s,x,y,comp); - fseek(f,pos,SEEK_SET); - return r; -} -#endif // !STBI_NO_STDIO - -int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) -{ - stbi s; - start_mem(&s,buffer,len); - return stbi_info_main(&s,x,y,comp); -} - -int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp) -{ - stbi s; - start_callbacks(&s, (stbi_io_callbacks *) c, user); - return stbi_info_main(&s,x,y,comp); -} - -#endif // STBI_HEADER_FILE_ONLY - -/* - revision history: - 1.33 (2011-07-14) - make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements - 1.32 (2011-07-13) - support for "info" function for all supported filetypes (SpartanJ) - 1.31 (2011-06-20) - a few more leak fixes, bug in PNG handling (SpartanJ) - 1.30 (2011-06-11) - added ability to load files via callbacks to accomidate custom input streams (Ben Wenger) - removed deprecated format-specific test/load functions - removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway - error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) - fix inefficiency in decoding 32-bit BMP (David Woo) - 1.29 (2010-08-16) - various warning fixes from Aurelien Pocheville - 1.28 (2010-08-01) - fix bug in GIF palette transparency (SpartanJ) - 1.27 (2010-08-01) - cast-to-uint8 to fix warnings - 1.26 (2010-07-24) - fix bug in file buffering for PNG reported by SpartanJ - 1.25 (2010-07-17) - refix trans_data warning (Won Chun) - 1.24 (2010-07-12) - perf improvements reading from files on platforms with lock-heavy fgetc() - minor perf improvements for jpeg - deprecated type-specific functions so we'll get feedback if they're needed - attempt to fix trans_data warning (Won Chun) - 1.23 fixed bug in iPhone support - 1.22 (2010-07-10) - removed image *writing* support - stbi_info support from Jetro Lauha - GIF support from Jean-Marc Lienher - iPhone PNG-extensions from James Brown - warning-fixes from Nicolas Schulz and Janez Zemva (i.e. Janez (U+017D)emva) - 1.21 fix use of 'uint8' in header (reported by jon blow) - 1.20 added support for Softimage PIC, by Tom Seddon - 1.19 bug in interlaced PNG corruption check (found by ryg) - 1.18 2008-08-02 - fix a threading bug (local mutable static) - 1.17 support interlaced PNG - 1.16 major bugfix - convert_format converted one too many pixels - 1.15 initialize some fields for thread safety - 1.14 fix threadsafe conversion bug - header-file-only version (#define STBI_HEADER_FILE_ONLY before including) - 1.13 threadsafe - 1.12 const qualifiers in the API - 1.11 Support installable IDCT, colorspace conversion routines - 1.10 Fixes for 64-bit (don't use "unsigned long") - optimized upsampling by Fabian "ryg" Giesen - 1.09 Fix format-conversion for PSD code (bad global variables!) - 1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz - 1.07 attempt to fix C++ warning/errors again - 1.06 attempt to fix C++ warning/errors again - 1.05 fix TGA loading to return correct *comp and use good luminance calc - 1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free - 1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR - 1.02 support for (subset of) HDR files, float interface for preferred access to them - 1.01 fix bug: possible bug in handling right-side up bmps... not sure - fix bug: the stbi_bmp_load() and stbi_tga_load() functions didn't work at all - 1.00 interface to zlib that skips zlib header - 0.99 correct handling of alpha in palette - 0.98 TGA loader by lonesock; dynamically add loaders (untested) - 0.97 jpeg errors on too large a file; also catch another malloc failure - 0.96 fix detection of invalid v value - particleman@mollyrocket forum - 0.95 during header scan, seek to markers in case of padding - 0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same - 0.93 handle jpegtran output; verbose errors - 0.92 read 4,8,16,24,32-bit BMP files of several formats - 0.91 output 24-bit Windows 3.0 BMP files - 0.90 fix a few more warnings; bump version number to approach 1.0 - 0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd - 0.60 fix compiling as c++ - 0.59 fix warnings: merge Dave Moore's -Wall fixes - 0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian - 0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available - 0.56 fix bug: zlib uncompressed mode len vs. nlen - 0.55 fix bug: restart_interval not initialized to 0 - 0.54 allow NULL for 'int *comp' - 0.53 fix bug in png 3->4; speedup png decoding - 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments - 0.51 obey req_comp requests, 1-component jpegs return as 1-component, - on 'test' only check type, not whether we support this variant - 0.50 first released version -*/ diff --git a/btgui/stb_image/stb_image.h b/btgui/stb_image/stb_image.h deleted file mode 100644 index f66bfd12f..000000000 --- a/btgui/stb_image/stb_image.h +++ /dev/null @@ -1,332 +0,0 @@ -/* stbi-1.33 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c - when you control the images you're loading - no warranty implied; use at your own risk - - QUICK NOTES: - Primarily of interest to game developers and other people who can - avoid problematic images and only need the trivial interface - - JPEG baseline (no JPEG progressive) - PNG 8-bit only - - TGA (not sure what subset, if a subset) - BMP non-1bpp, non-RLE - PSD (composited view only, no extra channels) - - GIF (*comp always reports as 4-channel) - HDR (radiance rgbE format) - PIC (Softimage PIC) - - - decode from memory or through FILE (define STBI_NO_STDIO to remove code) - - decode from arbitrary I/O callbacks - - overridable dequantizing-IDCT, YCbCr-to-RGB conversion (define STBI_SIMD) - - Latest revisions: - 1.33 (2011-07-14) minor fixes suggested by Dave Moore - 1.32 (2011-07-13) info support for all filetypes (SpartanJ) - 1.31 (2011-06-19) a few more leak fixes, bug in PNG handling (SpartanJ) - 1.30 (2011-06-11) added ability to load files via io callbacks (Ben Wenger) - 1.29 (2010-08-16) various warning fixes from Aurelien Pocheville - 1.28 (2010-08-01) fix bug in GIF palette transparency (SpartanJ) - 1.27 (2010-08-01) cast-to-uint8 to fix warnings (Laurent Gomila) - allow trailing 0s at end of image data (Laurent Gomila) - 1.26 (2010-07-24) fix bug in file buffering for PNG reported by SpartanJ - - See end of file for full revision history. - - TODO: - stbi_info support for BMP,PSD,HDR,PIC - - - ============================ Contributors ========================= - - Image formats Optimizations & bugfixes - Sean Barrett (jpeg, png, bmp) Fabian "ryg" Giesen - Nicolas Schulz (hdr, psd) - Jonathan Dummer (tga) Bug fixes & warning fixes - Jean-Marc Lienher (gif) Marc LeBlanc - Tom Seddon (pic) Christpher Lloyd - Thatcher Ulrich (psd) Dave Moore - Won Chun - the Horde3D community - Extensions, features Janez Zemva - Jetro Lauha (stbi_info) Jonathan Blow - James "moose2000" Brown (iPhone PNG) Laurent Gomila - Ben "Disch" Wenger (io callbacks) Aruelien Pocheville - Martin "SpartanJ" Golini Ryamond Barbiero - David Woo - - - If your name should be here but isn't, let Sean know. - -*/ - -#ifndef STBI_INCLUDE_STB_IMAGE_H -#define STBI_INCLUDE_STB_IMAGE_H - -// To get a header file for this, either cut and paste the header, -// or create stb_image.h, #define STBI_HEADER_FILE_ONLY, and -// then include stb_image.c from it. - -//// begin header file //////////////////////////////////////////////////// -// -// Limitations: -// - no jpeg progressive support -// - non-HDR formats support 8-bit samples only (jpeg, png) -// - no delayed line count (jpeg) -- IJG doesn't support either -// - no 1-bit BMP -// - GIF always returns *comp=4 -// -// Basic usage (see HDR discussion below): -// int x,y,n; -// unsigned char *data = stbi_load(filename, &x, &y, &n, 0); -// // ... process data if not NULL ... -// // ... x = width, y = height, n = # 8-bit components per pixel ... -// // ... replace '0' with '1'..'4' to force that many components per pixel -// // ... but 'n' will always be the number that it would have been if you said 0 -// stbi_image_free(data) -// -// Standard parameters: -// int *x -- outputs image width in pixels -// int *y -- outputs image height in pixels -// int *comp -- outputs # of image components in image file -// int req_comp -- if non-zero, # of image components requested in result -// -// The return value from an image loader is an 'unsigned char *' which points -// to the pixel data. The pixel data consists of *y scanlines of *x pixels, -// with each pixel consisting of N interleaved 8-bit components; the first -// pixel pointed to is top-left-most in the image. There is no padding between -// image scanlines or between pixels, regardless of format. The number of -// components N is 'req_comp' if req_comp is non-zero, or *comp otherwise. -// If req_comp is non-zero, *comp has the number of components that _would_ -// have been output otherwise. E.g. if you set req_comp to 4, you will always -// get RGBA output, but you can check *comp to easily see if it's opaque. -// -// An output image with N components has the following components interleaved -// in this order in each pixel: -// -// N=#comp components -// 1 grey -// 2 grey, alpha -// 3 red, green, blue -// 4 red, green, blue, alpha -// -// If image loading fails for any reason, the return value will be NULL, -// and *x, *y, *comp will be unchanged. The function stbi_failure_reason() -// can be queried for an extremely brief, end-user unfriendly explanation -// of why the load failed. Define STBI_NO_FAILURE_STRINGS to avoid -// compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly -// more user-friendly ones. -// -// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. -// -// =========================================================================== -// -// iPhone PNG support: -// -// By default we convert iphone-formatted PNGs back to RGB; nominally they -// would silently load as BGR, except the existing code should have just -// failed on such iPhone PNGs. But you can disable this conversion by -// by calling stbi_convert_iphone_png_to_rgb(0), in which case -// you will always just get the native iphone "format" through. -// -// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per -// pixel to remove any premultiplied alpha *only* if the image file explicitly -// says there's premultiplied data (currently only happens in iPhone images, -// and only if iPhone convert-to-rgb processing is on). -// -// =========================================================================== -// -// HDR image support (disable by defining STBI_NO_HDR) -// -// stb_image now supports loading HDR images in general, and currently -// the Radiance .HDR file format, although the support is provided -// generically. You can still load any file through the existing interface; -// if you attempt to load an HDR file, it will be automatically remapped to -// LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1; -// both of these constants can be reconfigured through this interface: -// -// stbi_hdr_to_ldr_gamma(2.2f); -// stbi_hdr_to_ldr_scale(1.0f); -// -// (note, do not use _inverse_ constants; stbi_image will invert them -// appropriately). -// -// Additionally, there is a new, parallel interface for loading files as -// (linear) floats to preserve the full dynamic range: -// -// float *data = stbi_loadf(filename, &x, &y, &n, 0); -// -// If you load LDR images through this interface, those images will -// be promoted to floating point values, run through the inverse of -// constants corresponding to the above: -// -// stbi_ldr_to_hdr_scale(1.0f); -// stbi_ldr_to_hdr_gamma(2.2f); -// -// Finally, given a filename (or an open file or memory block--see header -// file for details) containing image data, you can query for the "most -// appropriate" interface to use (that is, whether the image is HDR or -// not), using: -// -// stbi_is_hdr(char *filename); -// -// =========================================================================== -// -// I/O callbacks -// -// I/O callbacks allow you to read from arbitrary sources, like packaged -// files or some other source. Data read from callbacks are processed -// through a small internal buffer (currently 128 bytes) to try to reduce -// overhead. -// -// The three functions you must define are "read" (reads some bytes of data), -// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end). - - -#ifndef STBI_NO_STDIO - -#if defined(_MSC_VER) && _MSC_VER >= 0x1400 -#define _CRT_SECURE_NO_WARNINGS // suppress bogus warnings about fopen() -#endif - -#include -#endif - -#define STBI_VERSION 1 - -enum -{ - STBI_default = 0, // only used for req_comp - - STBI_grey = 1, - STBI_grey_alpha = 2, - STBI_rgb = 3, - STBI_rgb_alpha = 4 -}; - -typedef unsigned char stbi_uc; - -#ifdef __cplusplus -extern "C" { -#endif - -////////////////////////////////////////////////////////////////////////////// -// -// PRIMARY API - works on images of any type -// - -// -// load image by filename, open file, or memory buffer -// - -extern stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp); - -#ifndef STBI_NO_STDIO -extern stbi_uc *stbi_load (char const *filename, int *x, int *y, int *comp, int req_comp); -extern stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *comp, int req_comp); -// for stbi_load_from_file, file pointer is left pointing immediately after image -#endif - -typedef struct -{ - int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read - void (*skip) (void *user,unsigned n); // skip the next 'n' bytes - int (*eof) (void *user); // returns nonzero if we are at end of file/data -} stbi_io_callbacks; - -extern stbi_uc *stbi_load_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp); - -#ifndef STBI_NO_HDR - extern float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp); - - #ifndef STBI_NO_STDIO - extern float *stbi_loadf (char const *filename, int *x, int *y, int *comp, int req_comp); - extern float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *comp, int req_comp); - #endif - - extern float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp); - - extern void stbi_hdr_to_ldr_gamma(float gamma); - extern void stbi_hdr_to_ldr_scale(float scale); - - extern void stbi_ldr_to_hdr_gamma(float gamma); - extern void stbi_ldr_to_hdr_scale(float scale); -#endif // STBI_NO_HDR - -// stbi_is_hdr is always defined -extern int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user); -extern int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len); -#ifndef STBI_NO_STDIO -extern int stbi_is_hdr (char const *filename); -extern int stbi_is_hdr_from_file(FILE *f); -#endif // STBI_NO_STDIO - - -// get a VERY brief reason for failure -// NOT THREADSAFE -extern const char *stbi_failure_reason (void); - -// free the loaded image -- this is just free() -extern void stbi_image_free (void *retval_from_stbi_load); - -// get image dimensions & components without fully decoding -extern int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp); -extern int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp); - -#ifndef STBI_NO_STDIO -extern int stbi_info (char const *filename, int *x, int *y, int *comp); -extern int stbi_info_from_file (FILE *f, int *x, int *y, int *comp); - -#endif - - - -// for image formats that explicitly notate that they have premultiplied alpha, -// we just return the colors as stored in the file. set this flag to force -// unpremultiplication. results are undefined if the unpremultiply overflow. -extern void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply); - -// indicate whether we should process iphone images back to canonical format, -// or just pass them through "as-is" -extern void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert); - - -// ZLIB client - used by PNG, available for other purposes - -extern char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); -extern char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen); -extern int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); - -extern char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen); -extern int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); - - -// define faster low-level operations (typically SIMD support) -#ifdef STBI_SIMD -typedef void (*stbi_idct_8x8)(stbi_uc *out, int out_stride, short data[64], unsigned short *dequantize); -// compute an integer IDCT on "input" -// input[x] = data[x] * dequantize[x] -// write results to 'out': 64 samples, each run of 8 spaced by 'out_stride' -// CLAMP results to 0..255 -typedef void (*stbi_YCbCr_to_RGB_run)(stbi_uc *output, stbi_uc const *y, stbi_uc const *cb, stbi_uc const *cr, int count, int step); -// compute a conversion from YCbCr to RGB -// 'count' pixels -// write pixels to 'output'; each pixel is 'step' bytes (either 3 or 4; if 4, write '255' as 4th), order R,G,B -// y: Y input channel -// cb: Cb input channel; scale/biased to be 0..255 -// cr: Cr input channel; scale/biased to be 0..255 - -extern void stbi_install_idct(stbi_idct_8x8 func); -extern void stbi_install_YCbCr_to_RGB(stbi_YCbCr_to_RGB_run func); -#endif // STBI_SIMD - - -#ifdef __cplusplus -} -#endif - -// -// -//// end header file ///////////////////////////////////////////////////// -#endif // STBI_INCLUDE_STB_IMAGE_H diff --git a/build3/bin2cpp.bat b/build3/bin2cpp.bat index 28c5bedc0..df84f9259 100644 --- a/build3/bin2cpp.bat +++ b/build3/bin2cpp.bat @@ -2,6 +2,6 @@ rem @echo off -premake4 --file=bin2cpp.lua --binfile="../btgui/FontFiles/OpenSans.ttf" --cppfile="../btgui/OpenGLWindow/OpenSans.cpp" --stringname="OpenSansData" bin2cpp +premake4 --file=bin2cpp.lua --binfile="../btgui/OpenGLWindow/OpenSans.ttf" --cppfile="../btgui/OpenGLWindow/OpenSans.cpp" --stringname="OpenSansData" bin2cpp pause diff --git a/build3/bin2cpp.lua b/build3/bin2cpp.lua index b3d82a4b8..8ae42290f 100644 --- a/build3/bin2cpp.lua +++ b/build3/bin2cpp.lua @@ -9,7 +9,7 @@ function convertFile(filenameIn, filenameOut, stringname) local bytes = f:read(block) if not bytes then break end for b in string.gfind(bytes, ".") do - fw:write(string.format("char(%u),", string.byte(b))) + fw:write(string.format("%u,", string.byte(b))) end --io.write(string.rep(" ", block - string.len(bytes) + 1)) --io.write(string.gsub(bytes, "%c", "."), "\n") diff --git a/build3/findOpenGLGlewGlut.lua b/build3/findOpenGLGlewGlut.lua index e3e2581cd..886b6a561 100644 --- a/build3/findOpenGLGlewGlut.lua +++ b/build3/findOpenGLGlewGlut.lua @@ -43,26 +43,6 @@ configuration{} end - function initGlut() - configuration {} - if os.is("Windows") then - configuration {"Windows"} - includedirs { - projectRootDir .. "btgui/OpenGLWindow/Glut" - } - libdirs { projectRootDir .. "btgui/OpenGLWindow/Glut"} - configuration {"Windows", "x32"} - links {"glut32"} - configuration {"Windows", "x64"} - links {"glut64"} - end - - configuration {"MacOSX"} - links { "Glut.framework" } - configuration {"Linux"} - links {"glut"} - configuration{} - end function initGlew() configuration {} @@ -70,9 +50,9 @@ configuration {"Windows"} defines { "GLEW_STATIC"} includedirs { - projectRootDir .. "btgui/OpenGLWindow/GlewWindows" + projectRootDir .. "examples/ThirdPartyLibs/Glew" } - files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"} + files { projectRootDir .. "examples/ThirdPartyLibs/Glew/glew.c"} end if os.is("Linux") then configuration{"Linux"} @@ -83,9 +63,9 @@ print("Using static glew and dynamic loading of glx functions") defines { "GLEW_STATIC","GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1"} includedirs { - projectRootDir .. "btgui/OpenGLWindow/GlewWindows" + projectRootDir .. "examples/ThirdPartyLibs/Glew" } - files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"} + files { projectRootDir .. "examples/ThirdPartyLibs/Glew/glew.c"} links {"dl"} end @@ -100,7 +80,7 @@ else print("No X11/X.h found, using dynamic loading of X11") includedirs { - projectRootDir .. "btgui/OpenGLWindow/optionalX11" + projectRootDir .. "examples/ThirdPartyLibs/optionalX11" } defines {"DYNAMIC_LOAD_X11_FUNCTIONS"} links {"dl","pthread"} diff --git a/build3/premake4.lua b/build3/premake4.lua index f6f9bd39b..797e5c4f4 100644 --- a/build3/premake4.lua +++ b/build3/premake4.lua @@ -94,7 +94,7 @@ { 'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"', 'VALID_ARCHS = "x86_64 i386"', --- 'SDKROOT = "macosx10.9"', + 'SDKROOT = "macosx10.9"', } end @@ -114,83 +114,36 @@ language "C++" + include "../examples/ExampleBrowser" + include "../examples/OpenGLWindow" + + include "../examples/ThirdPartyLibs/Gwen" + + include "../examples/HelloWorld" + include "../examples/BasicDemo" + + + if not _OPTIONS["without-gtest"] then include "../test/gtest-1.7.0" -- include "../test/hello_gtest" include "../test/collision" include "../test/TestBullet3OpenCL" + include "../test/GwenOpenGLTest" end - -if findOpenGL3() then - include "../Demos3/AllBullet2Demos" - include "../Demos3/GpuDemos" - include"../Demos3/BasicDemoConsole" - include"../Demos3/BasicDemoCustomOpenGL2" --- include "../Demos3/CpuDemos" --- include "../Demos3/Wavefront" --- include "../btgui/MultiThreading" - - include "../btgui/OpenGLWindow" - include "../btgui/Bullet3AppSupport" - --- include "../Demos3/ImplicitCloth" - include "../Demos3/SimpleOpenGL3" - include "../btgui/urdf" - - include "../btgui/lua-5.2.3" - include "../test/lua" - include "../btgui/Gwen" - include "../btgui/GwenOpenGLTest" -end - - --- include "../demo/gpudemo" -if _OPTIONS["midi"] then - include "../btgui/MidiTest" -end - --- include "../opencl/vector_add_simplified" --- include "../opencl/vector_add" --- include "../test/clew" --- include "../Demos3/GpuGuiInitialize" - --- include "../test/OpenCL/BasicInitialize" - include "../test/OpenCL/KernelLaunch"-- --- include "../test/OpenCL/BroadphaseCollision" --- include "../test/OpenCL/NarrowphaseCollision" - include "../test/OpenCL/ParallelPrimitives" - include "../test/OpenCL/RadixSortBenchmark" - - include "../src/BulletSoftBody" - include "../src/BulletDynamics" - include "../src/BulletCollision" - include "../src/LinearMath" - - include "../src/Bullet3Dynamics" - include "../src/Bullet3Common" - include "../src/Bullet3Geometry" - include "../src/Bullet3Collision" - include "../src/Bullet3Serialize/Bullet2FileLoader" - include "../src/Bullet3OpenCL" - --- include "../demo/gpu_initialize" --- include "../opencl/lds_bank_conflict" --- include "../opencl/reduce" --- include "../btgui/OpenGLWindow" --- include "../demo/ObjLoader" --- include "../test/b3DynamicBvhBroadphase" - - if _OPTIONS["enet"] then - include "../btgui/enet" - include "../test/enet/server" - include "../test/enet/client" - end - - if _OPTIONS["bullet2demos"] then - include "../Extras" - if findOpenGL() then - include "../Demos" - end - end - + + include "../src/BulletSoftBody" + include "../src/BulletDynamics" + include "../src/BulletCollision" + include "../src/LinearMath" + + include "../src/Bullet3Common" + include "../src/Bullet3Geometry" + include "../src/Bullet3Collision" + include "../src/Bullet3Dynamics" + include "../src/Bullet3OpenCL" + include "../src/Bullet3Serialize/Bullet2FileLoader" + + + diff --git a/Demos/BspDemo/BspDemo.bsp b/data/BspDemo.bsp similarity index 100% rename from Demos/BspDemo/BspDemo.bsp rename to data/BspDemo.bsp diff --git a/data/sphere2.urdf b/data/sphere2.urdf new file mode 100644 index 000000000..35bf786a6 --- /dev/null +++ b/data/sphere2.urdf @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/BulletQuickstart.pdf b/docs/BulletQuickstart.pdf new file mode 100644 index 000000000..a78539c08 Binary files /dev/null and b/docs/BulletQuickstart.pdf differ diff --git a/docs/Bullet_User_Manual.pdf b/docs/Bullet_User_Manual.pdf new file mode 100644 index 000000000..e68a91698 Binary files /dev/null and b/docs/Bullet_User_Manual.pdf differ diff --git a/docs/GPU_rigidbody_using_OpenCL.pdf b/docs/GPU_rigidbody_using_OpenCL.pdf deleted file mode 100644 index 1a69b36e5..000000000 Binary files a/docs/GPU_rigidbody_using_OpenCL.pdf and /dev/null differ diff --git a/docs/b3GpuParallelLinearBvh.pdf b/docs/b3GpuParallelLinearBvh.pdf deleted file mode 100644 index 55327bff9..000000000 Binary files a/docs/b3GpuParallelLinearBvh.pdf and /dev/null differ diff --git a/docs/latex/BulletQuickstart.tex b/docs/latex/BulletQuickstart.tex new file mode 100644 index 000000000..f731e6404 --- /dev/null +++ b/docs/latex/BulletQuickstart.tex @@ -0,0 +1,106 @@ + +% Bullet Physics manual +% http://bulletphysics.org +% Written by Erwin Coumans + +% Preamble (global definitions of the book/manual) +% Use openany option for documentclass to avoid empty page after TOC + +\documentclass[openany]{book} +%scrbook is easier on the eyes, and use a bigger font +%\documentclass[openany,DIV=calc,16pt]{scrbook} + +% The english package can help breaking words +\usepackage[english]{babel} + +%The Charter or Utopia font is easier on the eyes for screen +\renewcommand{\familydefault}{bch}%Charter font +%\renewcommand{\familydefault}{put} %Utopia font + + +% Titlepic allows us to use a picture on the frontpage +\usepackage{titlepic} +\usepackage{graphicx} + +\usepackage[a4paper, left=2cm, right=1cm, top=2cm, bottom=3.5cm]{geometry} +\usepackage[latin1]{inputenc} + +% If using \doublespacing include the setspace package +% \usepackage{setspace} +\usepackage{fancyhdr} +\usepackage{tocloft} + + +% The hyperref package already include package url +\usepackage[colorlinks=true, linkcolor=blue, urlcolor=blue]{hyperref} + +% \setcounter{secnumdepth}{4} +\usepackage{makeidx}\makeindex + +%support for C++ source code snippets +%you can even import existing C++ code as-is +%or a range of lines within markers beween rangeprefix/rangesuffix +\usepackage{listings} +%\usepackage{color} +\renewcommand{\lstlistingname}{Source Code} +\renewcommand{\lstlistlistingname}{Source Code Listings} +\lstset{ + tabsize=2, language=C++, keywordstyle=\color[rgb]{0,0,1}, + commentstyle=\color[rgb]{0.133,0.545,0.133}, + stringstyle=\color[rgb]{0.627,0.126,0.941}, + breaklines=true, + numberstyle=\small, + basicstyle=\ttfamily\small, + rangeprefix=///-----, rangesuffix=-----, + includerangemarker=false, + numbers=left, stepnumber=1, + frame=single, +} + + +% Set the tolerance so TeX really breaks the line +% and don't run into the right margin (avoid overfull boxes) +\tolerance=10000 + +%end of preamble + +\begin{document} + +% \pagestyle{fancy} + +%\pagenumbering{} +% + \title{\textbf{Bullet 2.83 Quickstart Guide}} + \titlepic{\includegraphics[width=0.4\textwidth]{bullet_logo_2010_9.eps}} +% + \author{Erwin Coumans} + \maketitle + + + \renewcommand{\cftchapdotsep}{\cftdotsep} + \tableofcontents + \pagenumbering{arabic} + +% \fancyhf{} +% \doublespacing + +% include all the chapters as separate tex files +% on Mac OSX it is really nice to use the Texpad application for automatic navigation + + + \include{intro} + \include{building} + \include{helloworld} + \include{faq} + + \clearpage + \addcontentsline{toc}{chapter}{Source code listings} + \lstlistoflistings + + \clearpage + \addcontentsline{toc}{chapter}{Index} + \printindex + + +\end{document} + diff --git a/docs/latex/building.tex b/docs/latex/building.tex new file mode 100644 index 000000000..49b19346d --- /dev/null +++ b/docs/latex/building.tex @@ -0,0 +1,45 @@ +\chapter{Building the Bullet SDK and demos} +Windows developers can download the zipped sources of Bullet from \url{http://bullet.googlecode.com}. Mac OS X, Linux and other developers should download the gzipped tar archive. +Bullet provides several build systems. + +\section{Microsoft Visual Studio} +After unzipping the source code you can open the \path{Bullet/build/vs2010/0BulletSolution.sln}, hit F5 and your first Bullet demo will run. Note that by default Visual Studio uses an unoptimized Debug configuration that is very slow. It is best to enable the Release configuration. + +\section{Using Premake} +\index{premake}\href{http://industriousone.com/premake}{Premake} is a meta build system based on the Lua scripting language that can generate project files for Microsoft Visual Studio, Apple Xcode as well as Makefiles for GNU make and other build systems. Bullet comes with Premake executables for Windows, Mac OSX and Linux. +\subsection{Premake Visual Studio project generation} +You can double-click on \path{Bullet/build/vs2010.bat} to generate Visual Studio 2010 project files and solution. This batch file calls Premake. Just open \path{Bullet/build/vs2010/0BulletSolution.sln} +\subsection{Premake Mac OSX Xcode project generation} +On Mac OSX it is easiest to open a Terminal window and switch current directory to Bullet/build and use the following command to generate XCode projects: + \begin{lstlisting}[caption=Premake for Mac OSX, label=premake_osx] +cd Bullet/build +./premake_osx xcode4 +open xcode4/0BulletSolution.xcworkspace +\end{lstlisting} + +\subsection{Premake iOS Xcode project generation} +XCode project generation for iOS, such as iPhone and iPad, is similar to Mac OSX. Just provide the --ios option to premake and premake will automatically customize the project and append ios to the directory: + \begin{lstlisting}[caption=Premake for iOS, label=premake_ios] +cd Bullet/build +./premake_osx --ios xcode4 +open xcode4ios/0BulletSolution.xcworkspace +\end{lstlisting} +Note that Bullet comes with a modified version of \path{premake_osx} that enables the iOS specific customizations that are required by XCode. +\subsection{Premake GNU Makefile generation} +You can also generate GNU Makefiles for Mac OSX or Linux using premake: +\begin{lstlisting}[caption=Premake to GNU Makefile, label=premake_make] +cd Bullet/build +./premake_osx gmake +cd gmake +make config=release64 +\end{lstlisting} +\section{Using cmake} +Similar to premake, CMake adds support for many other build environments and platforms, including Microsoft Visual Studio, XCode for Mac OSX, KDevelop for Linux and Unix Makefiles. Download and install \index{CMake}CMake from \url{http://cmake.org} and use the CMake cmake-gui tool. +\section{Using autotools} +Open a shell terminal and go to the Bullet root directory. Then execute +\begin{lstlisting}[caption=autotools to Makefile, label=autotools_make] +./autogen.sh +./configure +make +\end{lstlisting} +The \path{autogen.sh} step is optional and not needed for downloaded packages. diff --git a/docs/latex/bullet_logo_2010_9.eps b/docs/latex/bullet_logo_2010_9.eps new file mode 100644 index 000000000..b4061d399 --- /dev/null +++ b/docs/latex/bullet_logo_2010_9.eps @@ -0,0 +1,1815 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: cairo 1.8.6 (http://cairographics.org) +%%CreationDate: Sat Feb 06 02:01:21 2010 +%%Pages: 1 +%%BoundingBox: 0 0 262 96 +%%DocumentData: Clean7Bit +%%LanguageLevel: 2 +%%EndComments +%%BeginProlog +/cairo_eps_state save def +/dict_count countdictstack def +/op_count count 1 sub def +userdict begin +/q { gsave } bind def +/Q { grestore } bind def +/cm { 6 array astore concat } bind def +/w { setlinewidth } bind def +/J { setlinecap } bind def +/j { setlinejoin } bind def +/M { setmiterlimit } bind def +/d { setdash } bind def +/m { moveto } bind def +/l { lineto } bind def +/c { curveto } bind def +/h { closepath } bind def +/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto + 0 exch rlineto 0 rlineto closepath } bind def +/S { stroke } bind def +/f { fill } bind def +/f* { eofill } bind def +/B { fill stroke } bind def +/B* { eofill stroke } bind def +/n { newpath } bind def +/W { clip } bind def +/W* { eoclip } bind def +/BT { } bind def +/ET { } bind def +/pdfmark where { pop globaldict /?pdfmark /exec load put } + { globaldict begin /?pdfmark /pop load def /pdfmark + /cleartomark load def end } ifelse +/BDC { mark 3 1 roll /BDC pdfmark } bind def +/EMC { mark /EMC pdfmark } bind def +/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def +/Tj { show currentpoint cairo_store_point } bind def +/TJ { + { + dup + type /stringtype eq + { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse + } forall + currentpoint cairo_store_point +} bind def +/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore + cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def +/Tf { pop /cairo_font exch def /cairo_font_matrix where + { pop cairo_selectfont } if } bind def +/Td { matrix translate cairo_font_matrix matrix concatmatrix dup + /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point + /cairo_font where { pop cairo_selectfont } if } bind def +/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def + cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def +/g { setgray } bind def +/rg { setrgbcolor } bind def +/d1 { setcachedevice } bind def +%%EndProlog +11 dict begin +/FontType 42 def +/FontName /f-0-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0042 put +Encoding 2 /uni0055 put +Encoding 3 /uni004C put +Encoding 4 /uni0045 put +Encoding 5 /uni0054 put +/CharStrings 6 dict dup begin +/.notdef 0 def +/uni0042 1 def +/uni0055 2 def +/uni004C 3 def +/uni0045 4 def +/uni0054 5 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700021f090000003680000004a63767420b6ae99420000 +03b40000055c6670676ddcad863100000910000005a9676c7966fa0e9463000000ac000002bc +68656164d015fad800000ebc00000036686865611123079400000ef400000024686d747818d9 +025600000f18000000186c6f636102ea023a00000f300000000e6d61787003b504ac00000f40 +0000002070726570fbaaa82600000f600000073c00020100000005000500000300070050b105 +04b80126b2000607bb012600020001020cb50303000a0605b80125b60303024a090704b80125 +b4010049089fb9011e00182b4e10f43c4df53c4e10f63c4d10f53c003f3c10fd3cf53c10f53c +3130211121112521112101000400fc2003c0fc400500fb002004c00000000003005400000428 +06530011001b00230045b5080518080813b8024340121c1c121d77110812770002057f181820 +7f0cb80249b625121d65115d2410f6fd3c10f6fd3c10ed003fed3fed12392fed19392f011112 +3931301321321e01151406071e011d01140e01232101113633323635342e0103113e013d0134 +265401a4c7cd7e598392684ba4fefe1901a51b0f3e221c2d4159312c06533ebdd28e701e2199 +9e96a49e3a053efe98013d904c3d10fd9dfe3b03326297682c0000000001004effde04110653 +001500224009150d11770609146501b80249b5170e650b5d1610f6ed10f4ed003fed2f3c3130 +0111140e0223222e02190121111416333236351104111876c18391de6e1401a5172328170653 +fbc6b8959d51609aab011203befb426a3b417904a90000010054000002f906530005001a400d +028504080503d0070165045d0610f6ed10e6002f3fed313001112111211101f90100fd5b0653 +faf1febc0653000100540000032e0653000b003fb900040245402060070107070b0385000209 +850b080916134309090d020205790d0308650b5d0c10f6fd3c10f4392f11392f2b003fed3ffd +11392f71ed31301321112111211121112111215402befee70107fef90135fd260653febcfecd +feccfe9cfebc00000001000c000003a4065300070040402401068507040802656f05010f051f +055f05bf05df05ef050620056f0502050506019609062f10e4014bb03250587c5911392f185d +7172ed003f2ffd3c3130011123112111231103a4fafe5bf90653febcfaf1050f014400000000 +0002000300000000001400010000000000340004002000000004000400010000f005ffff0000 +f000ffff10000001000000000006001600000000000600000001000200030004000500000653 +00000653002206530022052f00180000ffde0000ffe80000ffdeff43ffd80653000000000000 +0342ffed066e000000000000000000000000000000000000000000000000000005e600000000 +0000000000000000000000000000000000000000000000000227000000000000000000000000 +00000000000000000000000000000000000000000000000001a1000001a10000000000000000 +000000000000000000000000000000000024003f00410055ffdb00ea006700eb0054003c0071 +0048ffbd00040025019401a5000701940008000c004300c9014b00f9010003c2ffc000480043 +0062009a00f000f4011203a2ffab008e0194000c00d2013001a5008d000c001c004000cb0144 +017d03cf0001000c0025011501310144017b0026005800f4012f016a0194ffb7ffdbfff40000 +00200024003b005f007e00d20100015ffff40008000c004f00540060013d02140266000c001a +0022002500490076009400b900c000c500d5013801680169016d016e018701af023102ac030b +03c20410ffca0008003f004c0081008400a600ac0108010f01140137014f01940195ffe70001 +000c00300054004e0062006900720075009700cf00d800f600f900f9010b0123012a01440163 +017e019401d8024f02670279038904afffabffc7fff3000300240033003600390056005b0075 +00780081009200930095009b009c00a500b100c700c900cc00cd00cf00d500db00e600f00100 +010b010e010f0114011c012a014a0153016001690176017c018601a001c901e402a505940691 +ff00ff69ff7dfff4000b000c001600200020002100310032003e00430048004b004e00540055 +00550058005e0066006800710074007400750079007f00810085008500910096009700980098 +009b00a200a500b100b900bb00bc00c100c300d300d500d600e200ef00f200f50105010a0118 +011a01260144014c017001720185018b01920194019f01a301af01b801bc01bd01f701fc021a +021f022b0242024702500259027a02c502da02db03040336034c038b039703ac03dc03ee03f4 +0402042f047804c30513054306070693fe11fecfff0dff2dff96ffabffafffc9000300080013 +001d002200230024002400250028002b00360039004d004d004e004f00510054005400610069 +007300730074007400740081008e008f009a009d00a400a500a500ae00ae00b000b700bd00c3 +00c400c900ce00d900dc00e600ee00f000f300f300f400f800fa010001020103011d011f0121 +012201230125013201380139014101410146014a014d0168016a0171017a017a01820187018b +01940195019a01a501a501c001c001c001d301d401ef01fa01fd021302360237024502460247 +024f025a026a027a0283029202a502ab02b103040308031f03340376037c039d03a703bd03bf +03e103fa040a04250428044804770483049204cc0500050f056105640567059c05e405ed05fc +068406b70710075c079b07eb0818019401a50194000000000000000000000000000000eb00eb +014400eb019401a501940048ffb70027ffd9000afff602310054ffab0030ffd0000afff6024e +0027ffd900f90014000cfff4019001b800fc011f013400d201870031ffb1ffdb00fc009601d2 +0170017d01490094017d0077028300ef0168016801cc00fe01b6013d017a010f01bc01690221 +00ba0374007e020b00c7011d008900e0010c012800f60066019e0085008f00d3002501580274 +023c0152029902c90037024f00ac03a600f4027a00a6010000f7022c00e50254ffe7054b0270 +021800f2018a018a0300030000ac00ac007f005c004f00ac00a500b00011003f012800ec013a +00ce020b00400084018501540052042f01ea01c0011e0037003e023c0217020d01f801e20225 +047b404044434241403f3e3d3c383734333231302f2e2d2c2b2a292827262524232221201f1e +1d1c1b1a191817161514131211100f0e0d0c0b0a090807060504030201002c4523466020b026 +60b004262348482d2c452346236120b02661b004262348482d2c45234660b0206120b04660b0 +04262348482d2c4523462361b0206020b02661b02061b004262348482d2c45234660b0406120 +b06660b004262348482d2c4523462361b0406020b02661b04061b004262348482d2c0110203c +003c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed51582320b04d44235920 +b0042651582320b00d44235921212d2c20204518684420b001602045b04676688a4560442d2c +01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0462370b101463e01b0462370b10246 +453ab10200080d2d2c45b04a234445b04923442d2c2045b00325456164b050515845441b2121 +592d2cb00143632362b0002342b00f2b2d2c2045b0004360442d2c01b00643b00743650a2d2c +2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b00361592d2c45b0112bb0 +472344b0477ae4182d2cb801a65458b00943b801005458b9004aff80b14980444459592d2cb0 +1243588745b0112bb0472344b0477ae41b038a45186920b04723448a8a8720b0a05158b0112b +b0472344b0477ae41b21b0477ae45959182d2c2d2c4b52582145441b23458c20b00325455258 +441b212159592d2c01182f2d2c20b0032545b049234445b04a23444565234520b00325606a20 +b009234223688a6a606120b01a8ab000527921b21a4a40b9ffe0004a45208a54582321b03f1b +235961441cb114008a5279b34940204945208a54582321b03f1b235961442d2cb11011432343 +0b2d2cb10e0f4323430b2d2cb10c0d4323430b2d2cb10c0d432343650b2d2cb10e0f43234365 +0b2d2cb11011432343650b2d2c4b525845441b2121592d2c0120b003252349b04060b0206320 +b000525823b002253823b002256538008a63381b212121212159012d2c4569b00943608a103a +2d2c01b005251023208af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c +01b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110203c003c2d2cb02b2b +b02a2a2d2c00b00743b006430b2d2c3eb02a2a2d2c352d2c76b04b23701020b04b4520b00050 +58b00161593a2f182d2c21210c6423648bb84000622d2c21b08051580c6423648bb82000621b +b200402f2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c +6423648bb84000626023212d2cb4000100000015b00826b00826b00826b008260f1016134568 +3ab001162d2cb4000100000015b00826b00826b00826b008260f1016134568653ab001162d2c +4523204520b10405258a505826618a8b1b26608a8c59442d2c462346608a8a462320468a608a +61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068 +013a2d2cb0332bb02a2a2d2cb0134358031b02592d2cb0134358021b03592d2c01b0022545b0 +0225456460b0408b6ab00325456a6120b00425456a208a8b65b0042523448cb0032523442121 +2d2c01456823456961b00325456a6120b00425456a208a8b65b0042523448cb0032523442121 +2d2c018a8a45642345646164422d2c01b0022543b04054b0022543b000545a58b003252045b0 +40614459b0022543b00054b0022543b040545a58b004252045b040604459212121212d2c014b +525843b00225452361441b2121592d2c014b525843b00225452360441b2121592d2c4b5258b0 +0425b0042549b00425b00425496120b0005458212043b0005558b00325b00325b8ffc038b8ff +c038591bb04054582043b0005458b00225b8ffc038591b2043b0005458b00325b00325b8ffc0 +38b8ffc0381bb00325b8ffc03859595959212121212d2c4b52584365381b2121592d2c4b5258 +43381b2121592d000000000100000005000085924a7a5f0f3cf5001b080000000000a692c6fa +00000000c142e82dfef7fd5b0a170958000000090001000000000000000100000812fe500000 +0a46fef7fef70a1700010000000000000000000000000000000606000100046b00540460004e +030b00540353005403b0000c0000003e009c00d200f0012a015e000000010000000600f2003c +0052000500020010002f004500000315033600030001b902a202a3b22a1f30be02a3007002a3 +00c002a300030116b6651f1f00d601d6b8024cb22a1f8bb80245b5141fb074321fb8025db28c +391fb80155b25c241fb801e4b2941f1fbd028a02890032001f0154027c4017641f306c406c50 +6c036c94151f9394301f37ab54341f00ba026f00c0026fb402ba7f341fbc029a02980023001f +029fb294141fb8029eb294321fb80165b265331fb80289b265321fb80113b265141fb8024eb3 +65281f50410a0282006002820070028200e0028200040280027fb22f1f30411d027f0040027f +0050027f00030030027f0040027f00b0027f00c0027f00040030027f0040027f0050027f0060 +027f00b0027f00c0027f00d0027fb507d067e06702b801d5b267151fb8025cb2941f1fb8025e +b2941e1fb80114b394151f4fbe0256008f025600cf025600030256401086361fb686361f2086 +40868086c08604b80252401186361f8694361f00464600000012110840b8021cb41809180990 +be01d200070090015f00070090010540160790e90790a907907e07905f07905b079058079056 +07410a024002340064001f023f02380064001f01210239b2641faabc02380064001f018a0235 +b2641f95b80235b2641f71b80234b2641f70bb0112000102a60236b2651fd041090239002800 +1f024a02370065001f02490235b2651f05bc02340065001f01630235b2651fd4b80234b2651f +9ab80236b2651f96b80239b2651f89b80236b2651f81b80239b2651f79b80235b2651f5db802 +34b2651f53410902340065001f028402320065001f02a0022db2651f55b80231b21e1f984111 +02320065001f023c022e0042001f023b022d0042001f023c02300065001f023b022fb2651f61 +b8022eb2651f60b8022db2651f5e4109022d0065001f023900160800004002360237b216173f +4109023602370017003e02360237003c02340235b3163e090fba0235001f0235b2023d3f4122 +0235006f02350002008002340001023402350065023a003d005f0234008f0234009f023400af +023400bf02340005000f0234001f023400020232001408000040022f0230b214153f4109022f +02300015003e022f0230003c022d022eb3143e096f4112022e007f022e00af022e00ef022e00 +04000f022e001f022e004f022e00b0022d00f0022db205400fb8022eb2013910411a022d0020 +022d0050022d0090022d0004003f022e007f022e00af022e00e0022d000400cf022e00ff022e +0002022d022e00940233b23d09dfbb022d0001000f022db201451f410d022d000100bf022d00 +ef022d00ff022d0003001f022d004f022db502b865321f6dbb022900c8001f0246b35c081f5c +b80229b2081f77bb02280014001f0245b2851e1fb80244b385281fe0ba024300010243b3851e +1f85bc02280014001f01dc021db2641f67b8021db2321f94b8021eb2961f7bb8021eb2961fbb +bb022b0026001f024fb265291fb8024eb365321f30410e011200900112000200400112008001 +1200d0011200e0011200040112b265081fb80242b265261fb80113b265321fb80241b365291f +65bc021d00fa001f0187021db2081f7fb8021db3fa1f0900b8021eb20145b0410a021d00d002 +1e0002022c022a0032001f022b022ab2321f374112022902270008001f022802270014001f02 +1e021c0032001f021d021c0032001f022a021cb3321f3710410d021c00b0021c000200c0021c +0001022702260014001f021c0226402b081f2408220820081e081c081a081808160814081208 +10080e080c080a0808080608040802080008002038014bb0c063004b6220b0f65323b8010a51 +5ab005234201b0124b004b544218b013034b024b5342b0382b4bb8080052b0372b4bb009505b +58b101018e59b0382bb00288b801005458b80119b101018e851bb0124358b90001012c858d1b +b90001012c858d59592b1db0644b5358b0781d59b0324b5358b0901d5900162b2b2b2b2b2b2b +2b2b2b2b2b2b2b2b2b2b2b2b18012b002b01b9021c021c457d69441873742b2b012b2b002b2b +2b2b2b755e735e012b2b2b2b2b2b2b73742b2b2b2b2b2b2b002b2b732b2b2b2b2b2b2b737475 +5e73745e2b7374755e735e73745e2b2b2b2b2b73742b74755e735e2b2b2b2b2b2b2b2b2b2b2b +2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b732b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b01 +4b5079bc001f01980007001f0135b6071fe0071f73072b2b2b2b4b5379bc0090019800070090 +0135b60790e0079073072b2b2b2b180145695342014b5058b108004259435c58b108004259b3 +020b0a124358601b2159421610703eb0124358b93b21187e1bba040001a8000b2b59b00c2342 +b00d2342b0124358b92d412d411bba04000400000b2b59b00e2342b00f2342b0124358b9187e +3b211bba01a80400000b2b59b0102342b0112342012b2b732b2b732b2b2b2b757374752b732b +2b2b2b2b2b2b2bb802a14568b060456a61b061456a60b0944569206061b8026f2344732b2b2b +2b742b2b002b2b2b2b2b2b752b732b00b0034568b802954568b0408b60b0202344b0074568b8 +02964568b0408b60b022234400> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-1-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0050 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0050 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001740000004263767420178b170c0000 +01b8000000986670676d97486b110000025000000619676c7966b4278d95000000ac000000c8 +68656164ee14e98a0000086c00000036686865610ea7036e000008a400000024686d747808fb +0120000008c8000000086c6f636100640014000008d0000000066d61787002590395000008d8 +0000002070726570ee7b813d000008f80000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000200a0000004a10528000c0019004a +400a061e9013a013b0130313b8ffc04010090f4813130c1b0a0d1eb00cc00c020cb8ffc0400e +080c480c0d1f09090b0d191f0010003fed3f392fed012f2b5dfdc41112392f2b5ded31301321 +321e02151404232111231321323e0235342e022321a001fa66bc8f56ff00fcfef1f6f6011444 +5f3c1c29475d33fef10528235b9b78d3d3fe0f02d31931472f3945270d000000000200030000 +0000001400010000000000340004002000000004000400010000f001ffff0000f000ffff1000 +0001000000000006000e000000000002000000010000052805280000ffec00f600d200d400fa +00f600b70102009201890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e00000000 +00000000000000f000dc00c800d200b2008a00d7000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000000000000000000000000000000000000000403b5451504f4e4d4c4b4a4948474645 +44434241403f3e3d3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b0a090807 +060504030201002c4523466020b02660b004262348482d2c452346236120b02661b004262348 +482d2c45234660b0206120b04660b004262348482d2c4523462361b0206020b02661b02061b0 +04262348482d2c45234660b0406120b06660b004262348482d2c4523462361b0406020b02661 +b04061b004262348482d2c0110203c003c2d2c20452320b0cd442320b8015a51582320b08d44 +235920b0ed51582320b04d44235920b0042651582320b00d44235921212d2c20204518684420 +b001602045b04676688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0 +282370b101283e01b0282370b10228453ab10200080d2d2c2045b00325456164b05051584544 +1b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b20b12cc0 +8a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344b0297ae4 +182d2c4565b02c234445b02b23442d2c4b525845441b2121592d2c01b005251023208af500b0 +016023edec2d2c01b005251023208af500b0016123edec2d2c01b0062510f500edec2d2c20b0 +01600110203c003c2d2c20b001610110203c003c2d2c00b00743b006430b2d2c21210c642364 +8bb84000622d2c21b08051580c6423648bb82000621bb200402f2b59b002602d2c21b0c05158 +0c6423648bb81555621bb200802f2b59b002602d2c0c6423648bb84000626023212d2c452345 +6023456023456023766818b08062202d2cb00426b00426b00425b0042545234520b003266062 +636820b0032661658a2344442d2c2045b0005458b040442045b04061441b2121592d2c45b130 +2f4523456160b0016069442d2c4b5158b02f2370b01423421b2121592d2c4b515820b0032545 +695358441b2121591b2121592d2c45b01443b0006063b0016069442d2cb02f45442d2c452320 +458a60442d2c45234560442d2c4b235158b90033ffe0b134201bb3330034005944442d2cb016 +4358b00326458a586466b01f601b64b020606620581b21b04059b001615923586559b0292344 +2310b029e01b2121212121592d2cb0164358b004254564b020606620581b21b04059b0016123 +586559b0292344b00425b00725082058021b0359b0052510b004252046b0042523423cb00725 +10b006252046b00425b0016023423c2058011b0059b0052510b00425b029e0b0072510b00625 +b029e0b00425b00725082058021b0359b00425b003254348b00625b00325b0016043481b2159 +212121212121212d2cb0164358b004254564b020606620581b21b04059b0016123581b6559b0 +292344b00525b00825082058021b0359b0042510b005252046b0042523423cb00425b0072508 +b0072510b006252046b00425b0016023423c2058011b0059b0042510b00525b029e0b0292045 +6544b0072510b00625b029e0b00525b00825082058021b0359b00525b003254348b00425b007 +2508b00625b00325b0016043481b2159212121212121212d2c02b00425202046b004252342b0 +052508b003254548212121212d2c02b0032520b0042508b0022543482121212d2c4523204518 +20b00050205823652359236820b040505821b04059235865598a60442d2c4b53234b515a5820 +458a60441b2121592d2c4b545820458a60441b2121592d2c4b53234b515a58381b2121592d2c +4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121592d2c00 +208a49b0005158b04023208a3812341b2121592d2c462346608a8a462320468a608a61b8ff80 +62232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068013a2d2c +208a2349648a2353583c1b21592d2cb1020042b123018851b1400188535a58b9100000208854 +58b202010243604259b12401885158b920000040885458b2020202436042b12401885458b202 +2002436042004b014b5258b2020802436042591bb940000080885458b202040243604259b940 +00008063b80100885458b202080243604259b94000010063b80200885458b202100243604259 +b94000020063b80400885458b202400243604259595959592d000000000100000005e666e562 +51eb5f0f3cf5001b080000000000c3738d9600000000c5c82d5ffb20fab90a84087800010009 +0002000000000000000100000800fab801000aa2fb20fe110a84000100000000000000000000 +0000000000020400008004fb00a00000001400640000000100000002007f0008008700070002 +001000400055000001df024c0003000140590704181f24042b1f1f05271f1e04271fbf0401af +04019f04013f04012f04011f04010f04011615231f1110231f13122c1f0302231f140d231f0e +0d231f0100231f2f17012f15012f14012f0d012f02012f10012f12012f0001b1020042b21711 +018820b022518a2378b0405278b10a2088b810005578b1020142b0031c212101b0124b004b54 +42b013014b004b5342b0024358004bb03c524bb008505b58b101018e591b4bb80190524bb008 +505b58b101018e5959b00288b8010054b00488b8020054b012435a5b58b80119b101018e851b +b900010100b04b60858d59b0501db0644b5358b0801d59b0324b5358b0901d59007373737373 +7373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-2-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0048 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0048 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001580000004263767420178b170c0000 +019c000000986670676d97486b110000023400000619676c79663224714e000000ac000000ac +68656164ee14e98a0000085000000036686865610ea7036e0000088800000024686d74780962 +0120000008ac000000086c6f636100560014000008b4000000066d61787002590395000008bc +0000002070726570ee7b813d000008dc0000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100a0000004c20528000b00554025 +0b1e0910012001300103000110012001d0010401010d0603071e000601b006c006e0060306b8 +ffc0400f080c4806091f020201070b1004010d003fc43fc412392fed012f2b5d71fdc4111239 +2f5d71c4ed313021231121112311331121113304c2f8fdccf6f60234f80249fdb70528fe0401 +fc0000000002000300000000001400010000000000340004002000000004000400010000f001 +ffff0000f000ffff10000001000000000006000e000000000002000000010000052805280000 +ffec00f600d200d400fa00f600b70102009201890000ffea00db0528053e03bb03d2ffeafe7c +fe900444028e0000000000000000000000f000dc00c800d200b2008a00d70000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000403b5451504f +4e4d4c4b4a494847464544434241403f3e3d3c3b3a39383736352f2e2d2c2826252423221f18 +1411100f0d0b0a090807060504030201002c4523466020b02660b004262348482d2c45234623 +6120b02661b004262348482d2c45234660b0206120b04660b004262348482d2c4523462361b0 +206020b02661b02061b004262348482d2c45234660b0406120b06660b004262348482d2c4523 +462361b0406020b02661b04061b004262348482d2c0110203c003c2d2c20452320b0cd442320 +b8015a51582320b08d44235920b0ed51582320b04d44235920b0042651582320b00d44235921 +212d2c20204518684420b001602045b04676688a4560442d2c01b10b0a432343650a2d2c00b1 +0a0b4323430b2d2c00b0282370b101283e01b0282370b10228453ab10200080d2d2c2045b003 +25456164b050515845441b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c2069 +b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a87b0 +112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c4b525845441b2121592d2c01 +b005251023208af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c01b006 +2510f500edec2d2c20b001600110203c003c2d2c20b001610110203c003c2d2c00b00743b006 +430b2d2c21210c6423648bb84000622d2c21b08051580c6423648bb82000621bb200402f2b59 +b002602d2c21b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c6423648bb840 +00626023212d2c4523456023456023456023766818b08062202d2cb00426b00426b00425b004 +2545234520b003266062636820b0032661658a2344442d2c2045b0005458b040442045b04061 +441b2121592d2c45b1302f4523456160b0016069442d2c4b5158b02f2370b01423421b212159 +2d2c4b515820b0032545695358441b2121591b2121592d2c45b01443b0006063b0016069442d +2cb02f45442d2c452320458a60442d2c45234560442d2c4b235158b90033ffe0b134201bb333 +0034005944442d2cb0164358b00326458a586466b01f601b64b020606620581b21b04059b001 +615923586559b02923442310b029e01b2121212121592d2cb0164358b004254564b020606620 +581b21b04059b0016123586559b0292344b00425b00725082058021b0359b0052510b0042520 +46b0042523423cb0072510b006252046b00425b0016023423c2058011b0059b0052510b00425 +b029e0b0072510b00625b029e0b00425b00725082058021b0359b00425b003254348b00625b0 +0325b0016043481b2159212121212121212d2cb0164358b004254564b020606620581b21b040 +59b0016123581b6559b0292344b00525b00825082058021b0359b0042510b005252046b00425 +23423cb00425b0072508b0072510b006252046b00425b0016023423c2058011b0059b0042510 +b00525b029e0b02920456544b0072510b00625b029e0b00525b00825082058021b0359b00525 +b003254348b00425b0072508b00625b00325b0016043481b2159212121212121212d2c02b004 +25202046b004252342b0052508b003254548212121212d2c02b0032520b0042508b002254348 +2121212d2c452320451820b00050205823652359236820b040505821b04059235865598a6044 +2d2c4b53234b515a5820458a60441b2121592d2c4b545820458a60441b2121592d2c4b53234b +515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a +5823381b2121592d2c00208a49b0005158b04023208a3812341b2121592d2c462346608a8a46 +2320468a608a61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb046 +8c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1020042b123018851b1400188 +535a58b910000020885458b202010243604259b12401885158b920000040885458b202020243 +6042b12401885458b2022002436042004b014b5258b2020802436042591bb940000080885458 +b202040243604259b94000008063b80100885458b202080243604259b94000010063b8020088 +5458b202100243604259b94000020063b80400885458b202400243604259595959592d000000 +000100000005e666e8b68b915f0f3cf5001b080000000000c3738d9600000000c5c82d5ffb20 +fab90a840878000100090002000000000000000100000800fab801000aa2fb20fe110a840001 +0000000000000000000000000000000204000080056200a00000001400560000000100000002 +007f0008008700070002001000400055000001df024c0003000140590704181f24042b1f1f05 +271f1e04271fbf0401af04019f04013f04012f04011f04010f04011615231f1110231f13122c +1f0302231f140d231f0e0d231f0100231f2f17012f15012f14012f0d012f02012f10012f1201 +2f0001b1020042b21711018820b022518a2378b0405278b10a2088b810005578b1020142b003 +1c212101b0124b004b5442b013014b004b5342b0024358004bb03c524bb008505b58b101018e +591b4bb80190524bb008505b58b101018e5959b00288b8010054b00488b8020054b012435a5b +58b80119b101018e851bb900010100b04b60858d59b0501db0644b5358b0801d59b0324b5358 +b0901d590073737373737373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-3-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0059 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0059 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001640000004263767420178b170c0000 +01a8000000986670676d97486b110000024000000619676c7966e625d8da000000ac000000b8 +68656164ee14e98a0000085c00000036686865610ea7036e0000089400000024686d7478093e +0099000008b8000000086c6f6361005c0014000008c0000000066d61787002590395000008c8 +0000002070726570ee7b813d000008e80000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100190000052505280008005d4034 +07060708062405041405041b050105040708000107010824000114000114000100011e100420 +040204040103050800060510030d003f3fc4d4c411123939012f5dfddd5d872b1000c187057d +10c4011810dd5d872b087d10c431300101112311012101010525fdf6f7fdf5012a015d015b05 +28fd03fdd5022b02fdfdea021600000000020003000000000014000100000000003400040020 +00000004000400010000f001ffff0000f000ffff10000001000000000006000e000000000002 +000000010000052805280000ffec00f600d200d400fa00f600b70102009201890000ffea00db +0528053e03bb03d2ffeafe7cfe900444028e0000000000000000000000f000dc00c800d200b2 +008a00d700000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000403b5451504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a3938373635 +2f2e2d2c2826252423221f181411100f0d0b0a090807060504030201002c4523466020b02660 +b004262348482d2c452346236120b02661b004262348482d2c45234660b0206120b04660b004 +262348482d2c4523462361b0206020b02661b02061b004262348482d2c45234660b0406120b0 +6660b004262348482d2c4523462361b0406020b02661b04061b004262348482d2c0110203c00 +3c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed51582320b04d44235920b0 +042651582320b00d44235921212d2c20204518684420b001602045b04676688a4560442d2c01 +b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b101283e01b0282370b1022845 +3ab10200080d2d2c2045b00325456164b050515845441b2121592d2c2045b0004360442d2c01 +b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b0 +0361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c +4b525845441b2121592d2c01b005251023208af500b0016023edec2d2c01b005251023208af5 +00b0016123edec2d2c01b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110 +203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000622d2c21b08051580c642364 +8bb82000621bb200402f2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59 +b002602d2c0c6423648bb84000626023212d2c4523456023456023456023766818b08062202d +2cb00426b00426b00425b0042545234520b003266062636820b0032661658a2344442d2c2045 +b0005458b040442045b04061441b2121592d2c45b1302f4523456160b0016069442d2c4b5158 +b02f2370b01423421b2121592d2c4b515820b0032545695358441b2121591b2121592d2c45b0 +1443b0006063b0016069442d2cb02f45442d2c452320458a60442d2c45234560442d2c4b2351 +58b90033ffe0b134201bb3330034005944442d2cb0164358b00326458a586466b01f601b64b0 +20606620581b21b04059b001615923586559b02923442310b029e01b2121212121592d2cb016 +4358b004254564b020606620581b21b04059b0016123586559b0292344b00425b00725082058 +021b0359b0052510b004252046b0042523423cb0072510b006252046b00425b0016023423c20 +58011b0059b0052510b00425b029e0b0072510b00625b029e0b00425b00725082058021b0359 +b00425b003254348b00625b00325b0016043481b2159212121212121212d2cb0164358b00425 +4564b020606620581b21b04059b0016123581b6559b0292344b00525b00825082058021b0359 +b0042510b005252046b0042523423cb00425b0072508b0072510b006252046b00425b0016023 +423c2058011b0059b0042510b00525b029e0b02920456544b0072510b00625b029e0b00525b0 +0825082058021b0359b00525b003254348b00425b0072508b00625b00325b0016043481b2159 +212121212121212d2c02b00425202046b004252342b0052508b003254548212121212d2c02b0 +032520b0042508b0022543482121212d2c452320451820b00050205823652359236820b04050 +5821b04059235865598a60442d2c4b53234b515a5820458a60441b2121592d2c4b545820458a +60441b2121592d2c4b53234b515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c +2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0005158b04023208a3812341b +2121592d2c462346608a8a462320468a608a61b8ff8062232010238ab14b4b8a70456020b000 +5058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1 +020042b123018851b1400188535a58b910000020885458b202010243604259b12401885158b9 +20000040885458b2020202436042b12401885458b2022002436042004b014b5258b202080243 +6042591bb940000080885458b202040243604259b94000008063b80100885458b20208024360 +4259b94000010063b80200885458b202100243604259b94000020063b80400885458b2024002 +43604259595959592d000000000100000005e66680efbd0f5f0f3cf5001b080000000000c373 +8d9600000000c5c82d5ffb20fab90a840878000100090002000000000000000100000800fab8 +01000aa2fb20fe110a8400010000000000000000000000000000000204000080053e00190000 +0014005c0000000100000002007f0008008700070002001000400055000001df024c00030001 +40590704181f24042b1f1f05271f1e04271fbf0401af04019f04013f04012f04011f04010f04 +011615231f1110231f13122c1f0302231f140d231f0e0d231f0100231f2f17012f15012f1401 +2f0d012f02012f10012f12012f0001b1020042b21711018820b022518a2378b0405278b10a20 +88b810005578b1020142b0031c212101b0124b004b5442b013014b004b5342b0024358004bb0 +3c524bb008505b58b101018e591b4bb80190524bb008505b58b101018e5959b00288b8010054 +b00488b8020054b012435a5b58b80119b101018e851bb900010100b04b60858d59b0501db064 +4b5358b0801d59b0324b5358b0901d590073737373737373732b2b2b2b2b2b2b737373737373 +732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-4-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0053 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0053 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001f00000004263767420178b170c0000 +0234000000986670676d97486b11000002cc00000619676c79665c1182fa000000ac00000144 +68656164ee14e98a000008e800000036686865610ea7036e0000092000000024686d747808f8 +00e400000944000000086c6f636100a200140000094c000000066d6178700259039500000954 +0000002070726570ee7b813d000009740000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad880042800010064ffeb0494053e003a00784019 +2924301e0a1e1e1f1f0f000a100a200a03a00ab00ac00a030ab8ffc0400e090f480a0a143c00 +1e3a3a241e14b8ffc0401c080c48140f003a013a3a213504290108291e1e19051f350e211f19 +11003fed3fed11392f395e5d1112392f5d39012f2bed332fed1112392f2b5d7139332fed10ed +11393130011e0333323e0235342e02272e0335343e0233321e0217232623220615141e02171e +0515140e0223222e022701550c3b556a3b3c6347262554886371a46932467fb26c6cb4875209 +f02ae1787f1c3d5f443b7d776a502e4b86b76d88ce8d4f0901b93d593b1c182d4128283a2c26 +1518435b784e538d6639396a9b61bc51461d2b231e0e0d1d2a3b56744d5b976d3d437aaa6700 +000000000002000300000000001400010000000000340004002000000004000400010000f001 +ffff0000f000ffff10000001000000000006000e000000000002000000010000052805280000 +ffec00f600d200d400fa00f600b70102009201890000ffea00db0528053e03bb03d2ffeafe7c +fe900444028e0000000000000000000000f000dc00c800d200b2008a00d70000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000403b5451504f +4e4d4c4b4a494847464544434241403f3e3d3c3b3a39383736352f2e2d2c2826252423221f18 +1411100f0d0b0a090807060504030201002c4523466020b02660b004262348482d2c45234623 +6120b02661b004262348482d2c45234660b0206120b04660b004262348482d2c4523462361b0 +206020b02661b02061b004262348482d2c45234660b0406120b06660b004262348482d2c4523 +462361b0406020b02661b04061b004262348482d2c0110203c003c2d2c20452320b0cd442320 +b8015a51582320b08d44235920b0ed51582320b04d44235920b0042651582320b00d44235921 +212d2c20204518684420b001602045b04676688a4560442d2c01b10b0a432343650a2d2c00b1 +0a0b4323430b2d2c00b0282370b101283e01b0282370b10228453ab10200080d2d2c2045b003 +25456164b050515845441b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c2069 +b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a87b0 +112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c4b525845441b2121592d2c01 +b005251023208af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c01b006 +2510f500edec2d2c20b001600110203c003c2d2c20b001610110203c003c2d2c00b00743b006 +430b2d2c21210c6423648bb84000622d2c21b08051580c6423648bb82000621bb200402f2b59 +b002602d2c21b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c6423648bb840 +00626023212d2c4523456023456023456023766818b08062202d2cb00426b00426b00425b004 +2545234520b003266062636820b0032661658a2344442d2c2045b0005458b040442045b04061 +441b2121592d2c45b1302f4523456160b0016069442d2c4b5158b02f2370b01423421b212159 +2d2c4b515820b0032545695358441b2121591b2121592d2c45b01443b0006063b0016069442d +2cb02f45442d2c452320458a60442d2c45234560442d2c4b235158b90033ffe0b134201bb333 +0034005944442d2cb0164358b00326458a586466b01f601b64b020606620581b21b04059b001 +615923586559b02923442310b029e01b2121212121592d2cb0164358b004254564b020606620 +581b21b04059b0016123586559b0292344b00425b00725082058021b0359b0052510b0042520 +46b0042523423cb0072510b006252046b00425b0016023423c2058011b0059b0052510b00425 +b029e0b0072510b00625b029e0b00425b00725082058021b0359b00425b003254348b00625b0 +0325b0016043481b2159212121212121212d2cb0164358b004254564b020606620581b21b040 +59b0016123581b6559b0292344b00525b00825082058021b0359b0042510b005252046b00425 +23423cb00425b0072508b0072510b006252046b00425b0016023423c2058011b0059b0042510 +b00525b029e0b02920456544b0072510b00625b029e0b00525b00825082058021b0359b00525 +b003254348b00425b0072508b00625b00325b0016043481b2159212121212121212d2c02b004 +25202046b004252342b0052508b003254548212121212d2c02b0032520b0042508b002254348 +2121212d2c452320451820b00050205823652359236820b040505821b04059235865598a6044 +2d2c4b53234b515a5820458a60441b2121592d2c4b545820458a60441b2121592d2c4b53234b +515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a +5823381b2121592d2c00208a49b0005158b04023208a3812341b2121592d2c462346608a8a46 +2320468a608a61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb046 +8c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1020042b123018851b1400188 +535a58b910000020885458b202010243604259b12401885158b920000040885458b202020243 +6042b12401885458b2022002436042004b014b5258b2020802436042591bb940000080885458 +b202040243604259b94000008063b80100885458b202080243604259b94000010063b8020088 +5458b202100243604259b94000020063b80400885458b202400243604259595959592d000000 +000100000005e666951862c15f0f3cf5001b080000000000c3738d9600000000c5c82d5ffb20 +fab90a840878000100090002000000000000000100000800fab801000aa2fb20fe110a840001 +000000000000000000000000000000020400008004f800640000001400a20000000100000002 +007f0008008700070002001000400055000001df024c0003000140590704181f24042b1f1f05 +271f1e04271fbf0401af04019f04013f04012f04011f04010f04011615231f1110231f13122c +1f0302231f140d231f0e0d231f0100231f2f17012f15012f14012f0d012f02012f10012f1201 +2f0001b1020042b21711018820b022518a2378b0405278b10a2088b810005578b1020142b003 +1c212101b0124b004b5442b013014b004b5342b0024358004bb03c524bb008505b58b101018e +591b4bb80190524bb008505b58b101018e5959b00288b8010054b00488b8020054b012435a5b +58b80119b101018e851bb900010100b04b60858d59b0501db0644b5358b0801d59b0324b5358 +b0901d590073737373737373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-5-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0049 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0049 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001180000004263767420178b170c0000 +015c000000986670676d97486b11000001f400000619676c7966b5b1895d000000ac0000006c +68656164ee14e98a0000081000000036686865610ea7036e0000084800000024686d74780635 +01200000086c000000086c6f63610036001400000874000000066d617870025903950000087c +0000002070726570ee7b813d0000089c0000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100a00000019505280003002a4011 +031e00011001200103b001c001e0010301b8ffc0b7080c48010310010d003f3f012f2b5d71ed +3130212311330195f5f505280000000000020003000000000014000100000000003400040020 +00000004000400010000f001ffff0000f000ffff10000001000000000006000e000000000002 +000000010000052805280000ffec00f600d200d400fa00f600b70102009201890000ffea00db +0528053e03bb03d2ffeafe7cfe900444028e0000000000000000000000f000dc00c800d200b2 +008a00d700000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000403b5451504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a3938373635 +2f2e2d2c2826252423221f181411100f0d0b0a090807060504030201002c4523466020b02660 +b004262348482d2c452346236120b02661b004262348482d2c45234660b0206120b04660b004 +262348482d2c4523462361b0206020b02661b02061b004262348482d2c45234660b0406120b0 +6660b004262348482d2c4523462361b0406020b02661b04061b004262348482d2c0110203c00 +3c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed51582320b04d44235920b0 +042651582320b00d44235921212d2c20204518684420b001602045b04676688a4560442d2c01 +b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b101283e01b0282370b1022845 +3ab10200080d2d2c2045b00325456164b050515845441b2121592d2c2045b0004360442d2c01 +b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b0 +0361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c +4b525845441b2121592d2c01b005251023208af500b0016023edec2d2c01b005251023208af5 +00b0016123edec2d2c01b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110 +203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000622d2c21b08051580c642364 +8bb82000621bb200402f2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59 +b002602d2c0c6423648bb84000626023212d2c4523456023456023456023766818b08062202d +2cb00426b00426b00425b0042545234520b003266062636820b0032661658a2344442d2c2045 +b0005458b040442045b04061441b2121592d2c45b1302f4523456160b0016069442d2c4b5158 +b02f2370b01423421b2121592d2c4b515820b0032545695358441b2121591b2121592d2c45b0 +1443b0006063b0016069442d2cb02f45442d2c452320458a60442d2c45234560442d2c4b2351 +58b90033ffe0b134201bb3330034005944442d2cb0164358b00326458a586466b01f601b64b0 +20606620581b21b04059b001615923586559b02923442310b029e01b2121212121592d2cb016 +4358b004254564b020606620581b21b04059b0016123586559b0292344b00425b00725082058 +021b0359b0052510b004252046b0042523423cb0072510b006252046b00425b0016023423c20 +58011b0059b0052510b00425b029e0b0072510b00625b029e0b00425b00725082058021b0359 +b00425b003254348b00625b00325b0016043481b2159212121212121212d2cb0164358b00425 +4564b020606620581b21b04059b0016123581b6559b0292344b00525b00825082058021b0359 +b0042510b005252046b0042523423cb00425b0072508b0072510b006252046b00425b0016023 +423c2058011b0059b0042510b00525b029e0b02920456544b0072510b00625b029e0b00525b0 +0825082058021b0359b00525b003254348b00425b0072508b00625b00325b0016043481b2159 +212121212121212d2c02b00425202046b004252342b0052508b003254548212121212d2c02b0 +032520b0042508b0022543482121212d2c452320451820b00050205823652359236820b04050 +5821b04059235865598a60442d2c4b53234b515a5820458a60441b2121592d2c4b545820458a +60441b2121592d2c4b53234b515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c +2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0005158b04023208a3812341b +2121592d2c462346608a8a462320468a608a61b8ff8062232010238ab14b4b8a70456020b000 +5058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1 +020042b123018851b1400188535a58b910000020885458b202010243604259b12401885158b9 +20000040885458b2020202436042b12401885458b2022002436042004b014b5258b202080243 +6042591bb940000080885458b202040243604259b94000008063b80100885458b20208024360 +4259b94000010063b80200885458b202100243604259b94000020063b80400885458b2024002 +43604259595959592d000000000100000005e666e8365df35f0f3cf5001b080000000000c373 +8d9600000000c5c82d5ffb20fab90a840878000100090002000000000000000100000800fab8 +01000aa2fb20fe110a8400010000000000000000000000000000000204000080023500a00000 +001400360000000100000002007f0008008700070002001000400055000001df024c00030001 +40590704181f24042b1f1f05271f1e04271fbf0401af04019f04013f04012f04011f04010f04 +011615231f1110231f13122c1f0302231f140d231f0e0d231f0100231f2f17012f15012f1401 +2f0d012f02012f10012f12012f0001b1020042b21711018820b022518a2378b0405278b10a20 +88b810005578b1020142b0031c212101b0124b004b5442b013014b004b5342b0024358004bb0 +3c524bb008505b58b101018e591b4bb80190524bb008505b58b101018e5959b00288b8010054 +b00488b8020054b012435a5b58b80119b101018e851bb900010100b04b60858d59b0501db064 +4b5358b0801d59b0324b5358b0901d590073737373737373732b2b2b2b2b2b2b737373737373 +732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-6-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0043 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0043 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001800000004263767420178b170c0000 +01c4000000986670676d97486b110000025c00000619676c7966fe8c5eaf000000ac000000d4 +68656164ee14e98a0000087800000036686865610ea7036e000008b000000024686d74780955 +00e4000008d4000000086c6f6361006a0014000008dc000000066d61787002590395000008e4 +0000002070726570ee7b813d000009040000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad880042800010064ffeb04f1053e0027003ab627 +1e0000131e12b8ffc04018080d481212290a1e201d301d021d27051f2211130f1f180e003fed +cd3fedcd012f5ded12392f2bed332fed3130012e0323220e0215141e0233323637330e032322 +2e0235343e0233321e021703f30a344c62375588603434608753779c14fd0e5d8fbb6d8fe5a0 +5758a1e58d66b690621103893350371d3c74ab706fac773d7b756fab753c60b2fc9c9cfcb160 +3e72a26300000002000300000000001400010000000000340004002000000004000400010000 +f001ffff0000f000ffff10000001000000000006000e00000000000200000001000005280528 +0000ffec00f600d200d400fa00f600b70102009201890000ffea00db0528053e03bb03d2ffea +fe7cfe900444028e0000000000000000000000f000dc00c800d200b2008a00d7000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +00000000000000000000000000000000000000000000000000000000000000000000403b5451 +504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a39383736352f2e2d2c282625242322 +1f181411100f0d0b0a090807060504030201002c4523466020b02660b004262348482d2c4523 +46236120b02661b004262348482d2c45234660b0206120b04660b004262348482d2c45234623 +61b0206020b02661b02061b004262348482d2c45234660b0406120b06660b004262348482d2c +4523462361b0406020b02661b04061b004262348482d2c0110203c003c2d2c20452320b0cd44 +2320b8015a51582320b08d44235920b0ed51582320b04d44235920b0042651582320b00d4423 +5921212d2c20204518684420b001602045b04676688a4560442d2c01b10b0a432343650a2d2c +00b10a0b4323430b2d2c00b0282370b101283e01b0282370b10228453ab10200080d2d2c2045 +b00325456164b050515845441b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c +2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a +87b0112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c4b525845441b2121592d +2c01b005251023208af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c01 +b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110203c003c2d2c00b00743 +b006430b2d2c21210c6423648bb84000622d2c21b08051580c6423648bb82000621bb200402f +2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c6423648b +b84000626023212d2c4523456023456023456023766818b08062202d2cb00426b00426b00425 +b0042545234520b003266062636820b0032661658a2344442d2c2045b0005458b040442045b0 +4061441b2121592d2c45b1302f4523456160b0016069442d2c4b5158b02f2370b01423421b21 +21592d2c4b515820b0032545695358441b2121591b2121592d2c45b01443b0006063b0016069 +442d2cb02f45442d2c452320458a60442d2c45234560442d2c4b235158b90033ffe0b134201b +b3330034005944442d2cb0164358b00326458a586466b01f601b64b020606620581b21b04059 +b001615923586559b02923442310b029e01b2121212121592d2cb0164358b004254564b02060 +6620581b21b04059b0016123586559b0292344b00425b00725082058021b0359b0052510b004 +252046b0042523423cb0072510b006252046b00425b0016023423c2058011b0059b0052510b0 +0425b029e0b0072510b00625b029e0b00425b00725082058021b0359b00425b003254348b006 +25b00325b0016043481b2159212121212121212d2cb0164358b004254564b020606620581b21 +b04059b0016123581b6559b0292344b00525b00825082058021b0359b0042510b005252046b0 +042523423cb00425b0072508b0072510b006252046b00425b0016023423c2058011b0059b004 +2510b00525b029e0b02920456544b0072510b00625b029e0b00525b00825082058021b0359b0 +0525b003254348b00425b0072508b00625b00325b0016043481b2159212121212121212d2c02 +b00425202046b004252342b0052508b003254548212121212d2c02b0032520b0042508b00225 +43482121212d2c452320451820b00050205823652359236820b040505821b04059235865598a +60442d2c4b53234b515a5820458a60441b2121592d2c4b545820458a60441b2121592d2c4b53 +234b515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b +515a5823381b2121592d2c00208a49b0005158b04023208a3812341b2121592d2c462346608a +8a462320468a608a61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1b +b0468c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1020042b123018851b140 +0188535a58b910000020885458b202010243604259b12401885158b920000040885458b20202 +02436042b12401885458b2022002436042004b014b5258b2020802436042591bb94000008088 +5458b202040243604259b94000008063b80100885458b202080243604259b94000010063b802 +00885458b202100243604259b94000020063b80400885458b202400243604259595959592d00 +0000000100000005e6664fd8afb75f0f3cf5001b080000000000c3738d9600000000c5c82d5f +fb20fab90a840878000100090002000000000000000100000800fab801000aa2fb20fe110a84 +000100000000000000000000000000000002040000800555006400000014006a000000010000 +0002007f0008008700070002001000400055000001df024c0003000140590704181f24042b1f +1f05271f1e04271fbf0401af04019f04013f04012f04011f04010f04011615231f1110231f13 +122c1f0302231f140d231f0e0d231f0100231f2f17012f15012f14012f0d012f02012f10012f +12012f0001b1020042b21711018820b022518a2378b0405278b10a2088b810005578b1020142 +b0031c212101b0124b004b5442b013014b004b5342b0024358004bb03c524bb008505b58b101 +018e591b4bb80190524bb008505b58b101018e5959b00288b8010054b00488b8020054b01243 +5a5b58b80119b101018e851bb900010100b04b60858d59b0501db0644b5358b0801d59b0324b +5358b0901d590073737373737373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-7-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0053 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0053 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001f00000004263767420178b170c0000 +0234000000986670676d97486b11000002cc00000619676c79665c1182fa000000ac00000144 +68656164ee14e98a000008e800000036686865610ea7036e0000092000000024686d747808f8 +00e400000944000000086c6f636100a200140000094c000000066d6178700259039500000954 +0000002070726570ee7b813d000009740000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad880042800010064ffeb0494053e003a00784019 +2924301e0a1e1e1f1f0f000a100a200a03a00ab00ac00a030ab8ffc0400e090f480a0a143c00 +1e3a3a241e14b8ffc0401c080c48140f003a013a3a213504290108291e1e19051f350e211f19 +11003fed3fed11392f395e5d1112392f5d39012f2bed332fed1112392f2b5d7139332fed10ed +11393130011e0333323e0235342e02272e0335343e0233321e0217232623220615141e02171e +0515140e0223222e022701550c3b556a3b3c6347262554886371a46932467fb26c6cb4875209 +f02ae1787f1c3d5f443b7d776a502e4b86b76d88ce8d4f0901b93d593b1c182d4128283a2c26 +1518435b784e538d6639396a9b61bc51461d2b231e0e0d1d2a3b56744d5b976d3d437aaa6700 +000000000002000300000000001400010000000000340004002000000004000400010000f001 +ffff0000f000ffff10000001000000000006000e000000000002000000010000052805280000 +ffec00f600d200d400fa00f600b70102009201890000ffea00db0528053e03bb03d2ffeafe7c +fe900444028e0000000000000000000000f000dc00c800d200b2008a00d70000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000403b5451504f +4e4d4c4b4a494847464544434241403f3e3d3c3b3a39383736352f2e2d2c2826252423221f18 +1411100f0d0b0a090807060504030201002c4523466020b02660b004262348482d2c45234623 +6120b02661b004262348482d2c45234660b0206120b04660b004262348482d2c4523462361b0 +206020b02661b02061b004262348482d2c45234660b0406120b06660b004262348482d2c4523 +462361b0406020b02661b04061b004262348482d2c0110203c003c2d2c20452320b0cd442320 +b8015a51582320b08d44235920b0ed51582320b04d44235920b0042651582320b00d44235921 +212d2c20204518684420b001602045b04676688a4560442d2c01b10b0a432343650a2d2c00b1 +0a0b4323430b2d2c00b0282370b101283e01b0282370b10228453ab10200080d2d2c2045b003 +25456164b050515845441b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c2069 +b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a87b0 +112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c4b525845441b2121592d2c01 +b005251023208af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c01b006 +2510f500edec2d2c20b001600110203c003c2d2c20b001610110203c003c2d2c00b00743b006 +430b2d2c21210c6423648bb84000622d2c21b08051580c6423648bb82000621bb200402f2b59 +b002602d2c21b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c6423648bb840 +00626023212d2c4523456023456023456023766818b08062202d2cb00426b00426b00425b004 +2545234520b003266062636820b0032661658a2344442d2c2045b0005458b040442045b04061 +441b2121592d2c45b1302f4523456160b0016069442d2c4b5158b02f2370b01423421b212159 +2d2c4b515820b0032545695358441b2121591b2121592d2c45b01443b0006063b0016069442d +2cb02f45442d2c452320458a60442d2c45234560442d2c4b235158b90033ffe0b134201bb333 +0034005944442d2cb0164358b00326458a586466b01f601b64b020606620581b21b04059b001 +615923586559b02923442310b029e01b2121212121592d2cb0164358b004254564b020606620 +581b21b04059b0016123586559b0292344b00425b00725082058021b0359b0052510b0042520 +46b0042523423cb0072510b006252046b00425b0016023423c2058011b0059b0052510b00425 +b029e0b0072510b00625b029e0b00425b00725082058021b0359b00425b003254348b00625b0 +0325b0016043481b2159212121212121212d2cb0164358b004254564b020606620581b21b040 +59b0016123581b6559b0292344b00525b00825082058021b0359b0042510b005252046b00425 +23423cb00425b0072508b0072510b006252046b00425b0016023423c2058011b0059b0042510 +b00525b029e0b02920456544b0072510b00625b029e0b00525b00825082058021b0359b00525 +b003254348b00425b0072508b00625b00325b0016043481b2159212121212121212d2c02b004 +25202046b004252342b0052508b003254548212121212d2c02b0032520b0042508b002254348 +2121212d2c452320451820b00050205823652359236820b040505821b04059235865598a6044 +2d2c4b53234b515a5820458a60441b2121592d2c4b545820458a60441b2121592d2c4b53234b +515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a +5823381b2121592d2c00208a49b0005158b04023208a3812341b2121592d2c462346608a8a46 +2320468a608a61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb046 +8c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1020042b123018851b1400188 +535a58b910000020885458b202010243604259b12401885158b920000040885458b202020243 +6042b12401885458b2022002436042004b014b5258b2020802436042591bb940000080885458 +b202040243604259b94000008063b80100885458b202080243604259b94000010063b8020088 +5458b202100243604259b94000020063b80400885458b202400243604259595959592d000000 +000100000005e666951862c15f0f3cf5001b080000000000c3738d9600000000c5c82d5ffb20 +fab90a840878000100090002000000000000000100000800fab801000aa2fb20fe110a840001 +000000000000000000000000000000020400008004f800640000001400a20000000100000002 +007f0008008700070002001000400055000001df024c0003000140590704181f24042b1f1f05 +271f1e04271fbf0401af04019f04013f04012f04011f04010f04011615231f1110231f13122c +1f0302231f140d231f0e0d231f0100231f2f17012f15012f14012f0d012f02012f10012f1201 +2f0001b1020042b21711018820b022518a2378b0405278b10a2088b810005578b1020142b003 +1c212101b0124b004b5442b013014b004b5342b0024358004bb03c524bb008505b58b101018e +591b4bb80190524bb008505b58b101018e5959b00288b8010054b00488b8020054b012435a5b +58b80119b101018e851bb900010100b04b60858d59b0501db0644b5358b0801d59b0324b5358 +b0901d590073737373737373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-8-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni004C put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni004C 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001240000004263767420178b170c0000 +0168000000986670676d97486b110000020000000619676c79663a46b4af000000ac00000078 +68656164ee14e98a0000081c00000036686865610ea7036e0000085400000024686d74780844 +012000000878000000086c6f6361003c001400000880000000066d6178700259039500000888 +0000002070726570ee7b813d000008a80000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100a0000003f405280005002e400e +0005100520050308050507041e01b8ffc0400a080c48010210041f010d003fed3f012f2bed12 +392f5e5d313021211133112103f4fcacf6025e0528fbbb000000000000020003000000000014 +00010000000000340004002000000004000400010000f001ffff0000f000ffff100000010000 +00000006000e000000000002000000010000052805280000ffec00f600d200d400fa00f600b7 +0102009201890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e0000000000000000 +000000f000dc00c800d200b2008a00d700000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000403b5451504f4e4d4c4b4a494847464544434241 +403f3e3d3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b0a09080706050403 +0201002c4523466020b02660b004262348482d2c452346236120b02661b004262348482d2c45 +234660b0206120b04660b004262348482d2c4523462361b0206020b02661b02061b004262348 +482d2c45234660b0406120b06660b004262348482d2c4523462361b0406020b02661b04061b0 +04262348482d2c0110203c003c2d2c20452320b0cd442320b8015a51582320b08d44235920b0 +ed51582320b04d44235920b0042651582320b00d44235921212d2c20204518684420b0016020 +45b04676688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b1 +01283e01b0282370b10228453ab10200080d2d2c2045b00325456164b050515845441b212159 +2d2c2045b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb810 +0062602b0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c45 +65b02c234445b02b23442d2c4b525845441b2121592d2c01b005251023208af500b0016023ed +ec2d2c01b005251023208af500b0016123edec2d2c01b0062510f500edec2d2c20b001600110 +203c003c2d2c20b001610110203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000 +622d2c21b08051580c6423648bb82000621bb200402f2b59b002602d2c21b0c051580c642364 +8bb81555621bb200802f2b59b002602d2c0c6423648bb84000626023212d2c45234560234560 +23456023766818b08062202d2cb00426b00426b00425b0042545234520b003266062636820b0 +032661658a2344442d2c2045b0005458b040442045b04061441b2121592d2c45b1302f452345 +6160b0016069442d2c4b5158b02f2370b01423421b2121592d2c4b515820b003254569535844 +1b2121591b2121592d2c45b01443b0006063b0016069442d2cb02f45442d2c452320458a6044 +2d2c45234560442d2c4b235158b90033ffe0b134201bb3330034005944442d2cb0164358b003 +26458a586466b01f601b64b020606620581b21b04059b001615923586559b02923442310b029 +e01b2121212121592d2cb0164358b004254564b020606620581b21b04059b0016123586559b0 +292344b00425b00725082058021b0359b0052510b004252046b0042523423cb0072510b00625 +2046b00425b0016023423c2058011b0059b0052510b00425b029e0b0072510b00625b029e0b0 +0425b00725082058021b0359b00425b003254348b00625b00325b0016043481b215921212121 +2121212d2cb0164358b004254564b020606620581b21b04059b0016123581b6559b0292344b0 +0525b00825082058021b0359b0042510b005252046b0042523423cb00425b0072508b0072510 +b006252046b00425b0016023423c2058011b0059b0042510b00525b029e0b02920456544b007 +2510b00625b029e0b00525b00825082058021b0359b00525b003254348b00425b0072508b006 +25b00325b0016043481b2159212121212121212d2c02b00425202046b004252342b0052508b0 +03254548212121212d2c02b0032520b0042508b0022543482121212d2c452320451820b00050 +205823652359236820b040505821b04059235865598a60442d2c4b53234b515a5820458a6044 +1b2121592d2c4b545820458a60441b2121592d2c4b53234b515a58381b2121592d2c4b545838 +1b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0 +005158b04023208a3812341b2121592d2c462346608a8a462320468a608a61b8ff8062232010 +238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349 +648a2353583c1b21592d2cb1020042b123018851b1400188535a58b910000020885458b20201 +0243604259b12401885158b920000040885458b2020202436042b12401885458b20220024360 +42004b014b5258b2020802436042591bb940000080885458b202040243604259b94000008063 +b80100885458b202080243604259b94000010063b80200885458b202100243604259b9400002 +0063b80400885458b202400243604259595959592d000000000100000005e666dae206d75f0f +3cf5001b080000000000c3738d9600000000c5c82d5ffb20fab90a8408780001000900020000 +00000000000100000800fab801000aa2fb20fe110a8400010000000000000000000000000000 +000204000080044400a000000014003c0000000100000002007f000800870007000200100040 +0055000001df024c0003000140590704181f24042b1f1f05271f1e04271fbf0401af04019f04 +013f04012f04011f04010f04011615231f1110231f13122c1f0302231f140d231f0e0d231f01 +00231f2f17012f15012f14012f0d012f02012f10012f12012f0001b1020042b21711018820b0 +22518a2378b0405278b10a2088b810005578b1020142b0031c212101b0124b004b5442b01301 +4b004b5342b0024358004bb03c524bb008505b58b101018e591b4bb80190524bb008505b58b1 +01018e5959b00288b8010054b00488b8020054b012435a5b58b80119b101018e851bb9000101 +00b04b60858d59b0501db0644b5358b0801d59b0324b5358b0901d590073737373737373732b +2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-9-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0049 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0049 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001180000004263767420178b170c0000 +015c000000986670676d97486b11000001f400000619676c7966b5b1895d000000ac0000006c +68656164ee14e98a0000081000000036686865610ea7036e0000084800000024686d74780635 +01200000086c000000086c6f63610036001400000874000000066d617870025903950000087c +0000002070726570ee7b813d0000089c0000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100a00000019505280003002a4011 +031e00011001200103b001c001e0010301b8ffc0b7080c48010310010d003f3f012f2b5d71ed +3130212311330195f5f505280000000000020003000000000014000100000000003400040020 +00000004000400010000f001ffff0000f000ffff10000001000000000006000e000000000002 +000000010000052805280000ffec00f600d200d400fa00f600b70102009201890000ffea00db +0528053e03bb03d2ffeafe7cfe900444028e0000000000000000000000f000dc00c800d200b2 +008a00d700000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000403b5451504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a3938373635 +2f2e2d2c2826252423221f181411100f0d0b0a090807060504030201002c4523466020b02660 +b004262348482d2c452346236120b02661b004262348482d2c45234660b0206120b04660b004 +262348482d2c4523462361b0206020b02661b02061b004262348482d2c45234660b0406120b0 +6660b004262348482d2c4523462361b0406020b02661b04061b004262348482d2c0110203c00 +3c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed51582320b04d44235920b0 +042651582320b00d44235921212d2c20204518684420b001602045b04676688a4560442d2c01 +b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b101283e01b0282370b1022845 +3ab10200080d2d2c2045b00325456164b050515845441b2121592d2c2045b0004360442d2c01 +b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b0 +0361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c +4b525845441b2121592d2c01b005251023208af500b0016023edec2d2c01b005251023208af5 +00b0016123edec2d2c01b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110 +203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000622d2c21b08051580c642364 +8bb82000621bb200402f2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59 +b002602d2c0c6423648bb84000626023212d2c4523456023456023456023766818b08062202d +2cb00426b00426b00425b0042545234520b003266062636820b0032661658a2344442d2c2045 +b0005458b040442045b04061441b2121592d2c45b1302f4523456160b0016069442d2c4b5158 +b02f2370b01423421b2121592d2c4b515820b0032545695358441b2121591b2121592d2c45b0 +1443b0006063b0016069442d2cb02f45442d2c452320458a60442d2c45234560442d2c4b2351 +58b90033ffe0b134201bb3330034005944442d2cb0164358b00326458a586466b01f601b64b0 +20606620581b21b04059b001615923586559b02923442310b029e01b2121212121592d2cb016 +4358b004254564b020606620581b21b04059b0016123586559b0292344b00425b00725082058 +021b0359b0052510b004252046b0042523423cb0072510b006252046b00425b0016023423c20 +58011b0059b0052510b00425b029e0b0072510b00625b029e0b00425b00725082058021b0359 +b00425b003254348b00625b00325b0016043481b2159212121212121212d2cb0164358b00425 +4564b020606620581b21b04059b0016123581b6559b0292344b00525b00825082058021b0359 +b0042510b005252046b0042523423cb00425b0072508b0072510b006252046b00425b0016023 +423c2058011b0059b0042510b00525b029e0b02920456544b0072510b00625b029e0b00525b0 +0825082058021b0359b00525b003254348b00425b0072508b00625b00325b0016043481b2159 +212121212121212d2c02b00425202046b004252342b0052508b003254548212121212d2c02b0 +032520b0042508b0022543482121212d2c452320451820b00050205823652359236820b04050 +5821b04059235865598a60442d2c4b53234b515a5820458a60441b2121592d2c4b545820458a +60441b2121592d2c4b53234b515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c +2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0005158b04023208a3812341b +2121592d2c462346608a8a462320468a608a61b8ff8062232010238ab14b4b8a70456020b000 +5058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1 +020042b123018851b1400188535a58b910000020885458b202010243604259b12401885158b9 +20000040885458b2020202436042b12401885458b2022002436042004b014b5258b202080243 +6042591bb940000080885458b202040243604259b94000008063b80100885458b20208024360 +4259b94000010063b80200885458b202100243604259b94000020063b80400885458b2024002 +43604259595959592d000000000100000005e666e8365df35f0f3cf5001b080000000000c373 +8d9600000000c5c82d5ffb20fab90a840878000100090002000000000000000100000800fab8 +01000aa2fb20fe110a8400010000000000000000000000000000000204000080023500a00000 +001400360000000100000002007f0008008700070002001000400055000001df024c00030001 +40590704181f24042b1f1f05271f1e04271fbf0401af04019f04013f04012f04011f04010f04 +011615231f1110231f13122c1f0302231f140d231f0e0d231f0100231f2f17012f15012f1401 +2f0d012f02012f10012f12012f0001b1020042b21711018820b022518a2378b0405278b10a20 +88b810005578b1020142b0031c212101b0124b004b5442b013014b004b5342b0024358004bb0 +3c524bb008505b58b101018e591b4bb80190524bb008505b58b101018e5959b00288b8010054 +b00488b8020054b012435a5b58b80119b101018e851bb900010100b04b60858d59b0501db064 +4b5358b0801d59b0324b5358b0901d590073737373737373732b2b2b2b2b2b2b737373737373 +732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-10-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0042 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0042 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001c40000004263767420178b170c0000 +0208000000986670676d97486b11000002a000000619676c796635437db5000000ac00000118 +68656164ee14e98a000008bc00000036686865610ea7036e000008f400000024686d747808f8 +012000000918000000086c6f6361008c001400000920000000066d6178700259039500000928 +0000002070726570ee7b813d000009480000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000300a00000049405280012001d0027 +0076401d060e160e260e660e04080e270b1e1717001e0021019021a021b0210321b8ffc04013 +090d482121042913271eb004c004028f040104b8ffc04017080c48040e131f3f264f26022626 +1e1d1f05101e1f040d003fed3fed11392f5ded39012f2b5d5dfdc41112392f2b5d71ed332fed +11395e5d313001140623211121321e02151406071e030133323635342e02232311213235342e +0223230494fdfcfe0501e36aad7a433e4130462f17fd02ec736d19395b43dc0104fd1a406a50 +ed0191c6cb0528315c8453547c301741505b015f455124362411fc9eae2d422b150000000002 +000300000000001400010000000000340004002000000004000400010000f001ffff0000f000 +ffff10000001000000000006000e000000000002000000010000052805280000ffec00f600d2 +00d400fa00f600b70102009201890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e +0000000000000000000000f000dc00c800d200b2008a00d70000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000403b5451504f4e4d4c4b4a49 +4847464544434241403f3e3d3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b +0a090807060504030201002c4523466020b02660b004262348482d2c452346236120b02661b0 +04262348482d2c45234660b0206120b04660b004262348482d2c4523462361b0206020b02661 +b02061b004262348482d2c45234660b0406120b06660b004262348482d2c4523462361b04060 +20b02661b04061b004262348482d2c0110203c003c2d2c20452320b0cd442320b8015a515823 +20b08d44235920b0ed51582320b04d44235920b0042651582320b00d44235921212d2c202045 +18684420b001602045b04676688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b +2d2c00b0282370b101283e01b0282370b10228453ab10200080d2d2c2045b00325456164b050 +515845441b2121592d2c2045b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b +20b12cc08a8cb8100062602b0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344 +b0297ae4182d2c4565b02c234445b02b23442d2c4b525845441b2121592d2c01b00525102320 +8af500b0016023edec2d2c01b005251023208af500b0016123edec2d2c01b0062510f500edec +2d2c20b001600110203c003c2d2c20b001610110203c003c2d2c00b00743b006430b2d2c2121 +0c6423648bb84000622d2c21b08051580c6423648bb82000621bb200402f2b59b002602d2c21 +b0c051580c6423648bb81555621bb200802f2b59b002602d2c0c6423648bb84000626023212d +2c4523456023456023456023766818b08062202d2cb00426b00426b00425b0042545234520b0 +03266062636820b0032661658a2344442d2c2045b0005458b040442045b04061441b2121592d +2c45b1302f4523456160b0016069442d2c4b5158b02f2370b01423421b2121592d2c4b515820 +b0032545695358441b2121591b2121592d2c45b01443b0006063b0016069442d2cb02f45442d +2c452320458a60442d2c45234560442d2c4b235158b90033ffe0b134201bb333003400594444 +2d2cb0164358b00326458a586466b01f601b64b020606620581b21b04059b001615923586559 +b02923442310b029e01b2121212121592d2cb0164358b004254564b020606620581b21b04059 +b0016123586559b0292344b00425b00725082058021b0359b0052510b004252046b004252342 +3cb0072510b006252046b00425b0016023423c2058011b0059b0052510b00425b029e0b00725 +10b00625b029e0b00425b00725082058021b0359b00425b003254348b00625b00325b0016043 +481b2159212121212121212d2cb0164358b004254564b020606620581b21b04059b001612358 +1b6559b0292344b00525b00825082058021b0359b0042510b005252046b0042523423cb00425 +b0072508b0072510b006252046b00425b0016023423c2058011b0059b0042510b00525b029e0 +b02920456544b0072510b00625b029e0b00525b00825082058021b0359b00525b003254348b0 +0425b0072508b00625b00325b0016043481b2159212121212121212d2c02b00425202046b004 +252342b0052508b003254548212121212d2c02b0032520b0042508b0022543482121212d2c45 +2320451820b00050205823652359236820b040505821b04059235865598a60442d2c4b53234b +515a5820458a60441b2121592d2c4b545820458a60441b2121592d2c4b53234b515a58381b21 +21592d2c4b5458381b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121 +592d2c00208a49b0005158b04023208a3812341b2121592d2c462346608a8a462320468a608a +61b8ff8062232010238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068 +013a2d2c208a2349648a2353583c1b21592d2cb1020042b123018851b1400188535a58b91000 +0020885458b202010243604259b12401885158b920000040885458b2020202436042b1240188 +5458b2022002436042004b014b5258b2020802436042591bb940000080885458b20204024360 +4259b94000008063b80100885458b202080243604259b94000010063b80200885458b2021002 +43604259b94000020063b80400885458b202400243604259595959592d000000000100000005 +e666e2e06e8b5f0f3cf5001b080000000000c3738d9600000000c5c82d5ffb20fab90a840878 +000100090002000000000000000100000800fab801000aa2fb20fe110a840001000000000000 +000000000000000000020400008004f800a000000014008c0000000100000002007f00080087 +00070002001000400055000001df024c0003000140590704181f24042b1f1f05271f1e04271f +bf0401af04019f04013f04012f04011f04010f04011615231f1110231f13122c1f0302231f14 +0d231f0e0d231f0100231f2f17012f15012f14012f0d012f02012f10012f12012f0001b10200 +42b21711018820b022518a2378b0405278b10a2088b810005578b1020142b0031c212101b012 +4b004b5442b013014b004b5342b0024358004bb03c524bb008505b58b101018e591b4bb80190 +524bb008505b58b101018e5959b00288b8010054b00488b8020054b012435a5b58b80119b101 +018e851bb900010100b04b60858d59b0501db0644b5358b0801d59b0324b5358b0901d590073 +737373737373732b2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-11-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0052 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0052 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001bc0000004263767420178b170c0000 +0200000000986670676d97486b110000029800000619676c79664a8630a4000000ac00000110 +68656164ee14e98a000008b400000036686865610ea7036e000008ec00000024686d7478096a +012000000910000000086c6f63610088001400000918000000066d6178700259039500000920 +0000002070726570ee7b813d000009400000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000200a0000005100528001a0025006b +4026180001001a1a2419181419180715010815181b1919121e0021102120210321210827061b +1e08b8ffc04015080c480818001a1b1f15050507251f09101a19070d003fc4c43fed11392f33 +ed123939012f2bfdc41112392f5ded322f1239395e5d872b7d10c4015d3130012e0323211123 +1121321e021716161514060716161713210121323e02353426232103880d2e3c4929fef8f702 +503560585025414175662b441a8efef6fd910148425e3c1c6d72fe9f0167253f2e1afded0528 +0512241f379e5379ad2e206348fe7902f6122a43315852000000000000020003000000000014 +00010000000000340004002000000004000400010000f001ffff0000f000ffff100000010000 +00000006000e000000000002000000010000052805280000ffec00f600d200d400fa00f600b7 +0102009201890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e0000000000000000 +000000f000dc00c800d200b2008a00d700000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000403b5451504f4e4d4c4b4a494847464544434241 +403f3e3d3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b0a09080706050403 +0201002c4523466020b02660b004262348482d2c452346236120b02661b004262348482d2c45 +234660b0206120b04660b004262348482d2c4523462361b0206020b02661b02061b004262348 +482d2c45234660b0406120b06660b004262348482d2c4523462361b0406020b02661b04061b0 +04262348482d2c0110203c003c2d2c20452320b0cd442320b8015a51582320b08d44235920b0 +ed51582320b04d44235920b0042651582320b00d44235921212d2c20204518684420b0016020 +45b04676688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b1 +01283e01b0282370b10228453ab10200080d2d2c2045b00325456164b050515845441b212159 +2d2c2045b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb810 +0062602b0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c45 +65b02c234445b02b23442d2c4b525845441b2121592d2c01b005251023208af500b0016023ed +ec2d2c01b005251023208af500b0016123edec2d2c01b0062510f500edec2d2c20b001600110 +203c003c2d2c20b001610110203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000 +622d2c21b08051580c6423648bb82000621bb200402f2b59b002602d2c21b0c051580c642364 +8bb81555621bb200802f2b59b002602d2c0c6423648bb84000626023212d2c45234560234560 +23456023766818b08062202d2cb00426b00426b00425b0042545234520b003266062636820b0 +032661658a2344442d2c2045b0005458b040442045b04061441b2121592d2c45b1302f452345 +6160b0016069442d2c4b5158b02f2370b01423421b2121592d2c4b515820b003254569535844 +1b2121591b2121592d2c45b01443b0006063b0016069442d2cb02f45442d2c452320458a6044 +2d2c45234560442d2c4b235158b90033ffe0b134201bb3330034005944442d2cb0164358b003 +26458a586466b01f601b64b020606620581b21b04059b001615923586559b02923442310b029 +e01b2121212121592d2cb0164358b004254564b020606620581b21b04059b0016123586559b0 +292344b00425b00725082058021b0359b0052510b004252046b0042523423cb0072510b00625 +2046b00425b0016023423c2058011b0059b0052510b00425b029e0b0072510b00625b029e0b0 +0425b00725082058021b0359b00425b003254348b00625b00325b0016043481b215921212121 +2121212d2cb0164358b004254564b020606620581b21b04059b0016123581b6559b0292344b0 +0525b00825082058021b0359b0042510b005252046b0042523423cb00425b0072508b0072510 +b006252046b00425b0016023423c2058011b0059b0042510b00525b029e0b02920456544b007 +2510b00625b029e0b00525b00825082058021b0359b00525b003254348b00425b0072508b006 +25b00325b0016043481b2159212121212121212d2c02b00425202046b004252342b0052508b0 +03254548212121212d2c02b0032520b0042508b0022543482121212d2c452320451820b00050 +205823652359236820b040505821b04059235865598a60442d2c4b53234b515a5820458a6044 +1b2121592d2c4b545820458a60441b2121592d2c4b53234b515a58381b2121592d2c4b545838 +1b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0 +005158b04023208a3812341b2121592d2c462346608a8a462320468a608a61b8ff8062232010 +238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349 +648a2353583c1b21592d2cb1020042b123018851b1400188535a58b910000020885458b20201 +0243604259b12401885158b920000040885458b2020202436042b12401885458b20220024360 +42004b014b5258b2020802436042591bb940000080885458b202040243604259b94000008063 +b80100885458b202080243604259b94000010063b80200885458b202100243604259b9400002 +0063b80400885458b202400243604259595959592d000000000100000005e666b77f08fd5f0f +3cf5001b080000000000c3738d9600000000c5c82d5ffb20fab90a8408780001000900020000 +00000000000100000800fab801000aa2fb20fe110a8400010000000000000000000000000000 +000204000080056a00a00000001400880000000100000002007f000800870007000200100040 +0055000001df024c0003000140590704181f24042b1f1f05271f1e04271fbf0401af04019f04 +013f04012f04011f04010f04011615231f1110231f13122c1f0302231f140d231f0e0d231f01 +00231f2f17012f15012f14012f0d012f02012f10012f12012f0001b1020042b21711018820b0 +22518a2378b0405278b10a2088b810005578b1020142b0031c212101b0124b004b5442b01301 +4b004b5342b0024358004bb03c524bb008505b58b101018e591b4bb80190524bb008505b58b1 +01018e5959b00288b8010054b00488b8020054b012435a5b58b80119b101018e851bb9000101 +00b04b60858d59b0501db0644b5358b0801d59b0324b5358b0901d590073737373737373732b +2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-12-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0041 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0041 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001b80000004263767420178b170c0000 +01fc000000986670676d97486b110000029400000619676c7966e1c853b3000000ac0000010c +68656164ee14e98a000008b000000036686865610ea7036e000008e800000024686d7478090a +00850000090c000000086c6f63610086001400000914000000066d617870025903950000091c +0000002070726570ee7b813d0000093c0000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000200050000050505290002000a00a7 +406706020107014809013909011d09010f090116070104070109070107240809140809a00801 +08080500010401470a01360a01120a01000a011904010b04010a04010424030a14030a0303ab +01010106051f000002100220024002040202070a091007080403080d01002f3fd4c410c43fc4 +12392f5dc4fdc4013d2f5dc9182f872b877dc4015d5d5d5d5d5d1087c4c401c9182f5d872b87 +7dc4015d5d5d5d5d5d1087c4c4313001030301210321032101330315a0970327feed90fe328a +fefb01fcea024b01a3fe5dfdb5017afe86052900000000000002000300000000001400010000 +000000340004002000000004000400010000f001ffff0000f000ffff10000001000000000006 +000e000000000002000000010000052805280000ffec00f600d200d400fa00f600b701020092 +01890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e0000000000000000000000f0 +00dc00c800d200b2008a00d70000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000403b5451504f4e4d4c4b4a494847464544434241403f3e3d +3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b0a090807060504030201002c +4523466020b02660b004262348482d2c452346236120b02661b004262348482d2c45234660b0 +206120b04660b004262348482d2c4523462361b0206020b02661b02061b004262348482d2c45 +234660b0406120b06660b004262348482d2c4523462361b0406020b02661b04061b004262348 +482d2c0110203c003c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed515823 +20b04d44235920b0042651582320b00d44235921212d2c20204518684420b001602045b04676 +688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b101283e01 +b0282370b10228453ab10200080d2d2c2045b00325456164b050515845441b2121592d2c2045 +b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb8100062602b +0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c4565b02c23 +4445b02b23442d2c4b525845441b2121592d2c01b005251023208af500b0016023edec2d2c01 +b005251023208af500b0016123edec2d2c01b0062510f500edec2d2c20b001600110203c003c +2d2c20b001610110203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000622d2c21 +b08051580c6423648bb82000621bb200402f2b59b002602d2c21b0c051580c6423648bb81555 +621bb200802f2b59b002602d2c0c6423648bb84000626023212d2c4523456023456023456023 +766818b08062202d2cb00426b00426b00425b0042545234520b003266062636820b003266165 +8a2344442d2c2045b0005458b040442045b04061441b2121592d2c45b1302f4523456160b001 +6069442d2c4b5158b02f2370b01423421b2121592d2c4b515820b0032545695358441b212159 +1b2121592d2c45b01443b0006063b0016069442d2cb02f45442d2c452320458a60442d2c4523 +4560442d2c4b235158b90033ffe0b134201bb3330034005944442d2cb0164358b00326458a58 +6466b01f601b64b020606620581b21b04059b001615923586559b02923442310b029e01b2121 +212121592d2cb0164358b004254564b020606620581b21b04059b0016123586559b0292344b0 +0425b00725082058021b0359b0052510b004252046b0042523423cb0072510b006252046b004 +25b0016023423c2058011b0059b0052510b00425b029e0b0072510b00625b029e0b00425b007 +25082058021b0359b00425b003254348b00625b00325b0016043481b2159212121212121212d +2cb0164358b004254564b020606620581b21b04059b0016123581b6559b0292344b00525b008 +25082058021b0359b0042510b005252046b0042523423cb00425b0072508b0072510b0062520 +46b00425b0016023423c2058011b0059b0042510b00525b029e0b02920456544b0072510b006 +25b029e0b00525b00825082058021b0359b00525b003254348b00425b0072508b00625b00325 +b0016043481b2159212121212121212d2c02b00425202046b004252342b0052508b003254548 +212121212d2c02b0032520b0042508b0022543482121212d2c452320451820b0005020582365 +2359236820b040505821b04059235865598a60442d2c4b53234b515a5820458a60441b212159 +2d2c4b545820458a60441b2121592d2c4b53234b515a58381b2121592d2c4b5458381b212159 +2d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0005158b0 +4023208a3812341b2121592d2c462346608a8a462320468a608a61b8ff8062232010238ab14b +4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349648a2353 +583c1b21592d2cb1020042b123018851b1400188535a58b910000020885458b2020102436042 +59b12401885158b920000040885458b2020202436042b12401885458b2022002436042004b01 +4b5258b2020802436042591bb940000080885458b202040243604259b94000008063b8010088 +5458b202080243604259b94000010063b80200885458b202100243604259b94000020063b804 +00885458b202400243604259595959592d000000000100000005e66689bec43d5f0f3cf5001b +080000000000c3738d9600000000c5c82d5ffb20fab90a840878000100090002000000000000 +000100000800fab801000aa2fb20fe110a840001000000000000000000000000000000020400 +0080050a00050000001400860000000100000002007f00080087000700020010004000550000 +01df024c0003000140590704181f24042b1f1f05271f1e04271fbf0401af04019f04013f0401 +2f04011f04010f04011615231f1110231f13122c1f0302231f140d231f0e0d231f0100231f2f +17012f15012f14012f0d012f02012f10012f12012f0001b1020042b21711018820b022518a23 +78b0405278b10a2088b810005578b1020142b0031c212101b0124b004b5442b013014b004b53 +42b0024358004bb03c524bb008505b58b101018e591b4bb80190524bb008505b58b101018e59 +59b00288b8010054b00488b8020054b012435a5b58b80119b101018e851bb900010100b04b60 +858d59b0501db0644b5358b0801d59b0324b5358b0901d590073737373737373732b2b2b2b2b +2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-13-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0052 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0052 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001bc0000004263767420178b170c0000 +0200000000986670676d97486b110000029800000619676c79664a8630a4000000ac00000110 +68656164ee14e98a000008b400000036686865610ea7036e000008ec00000024686d7478096a +012000000910000000086c6f63610088001400000918000000066d6178700259039500000920 +0000002070726570ee7b813d000009400000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000200a0000005100528001a0025006b +4026180001001a1a2419181419180715010815181b1919121e0021102120210321210827061b +1e08b8ffc04015080c480818001a1b1f15050507251f09101a19070d003fc4c43fed11392f33 +ed123939012f2bfdc41112392f5ded322f1239395e5d872b7d10c4015d3130012e0323211123 +1121321e021716161514060716161713210121323e02353426232103880d2e3c4929fef8f702 +503560585025414175662b441a8efef6fd910148425e3c1c6d72fe9f0167253f2e1afded0528 +0512241f379e5379ad2e206348fe7902f6122a43315852000000000000020003000000000014 +00010000000000340004002000000004000400010000f001ffff0000f000ffff100000010000 +00000006000e000000000002000000010000052805280000ffec00f600d200d400fa00f600b7 +0102009201890000ffea00db0528053e03bb03d2ffeafe7cfe900444028e0000000000000000 +000000f000dc00c800d200b2008a00d700000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000403b5451504f4e4d4c4b4a494847464544434241 +403f3e3d3c3b3a39383736352f2e2d2c2826252423221f181411100f0d0b0a09080706050403 +0201002c4523466020b02660b004262348482d2c452346236120b02661b004262348482d2c45 +234660b0206120b04660b004262348482d2c4523462361b0206020b02661b02061b004262348 +482d2c45234660b0406120b06660b004262348482d2c4523462361b0406020b02661b04061b0 +04262348482d2c0110203c003c2d2c20452320b0cd442320b8015a51582320b08d44235920b0 +ed51582320b04d44235920b0042651582320b00d44235921212d2c20204518684420b0016020 +45b04676688a4560442d2c01b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b1 +01283e01b0282370b10228453ab10200080d2d2c2045b00325456164b050515845441b212159 +2d2c2045b0004360442d2c01b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb810 +0062602b0c642364615c58b00361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c45 +65b02c234445b02b23442d2c4b525845441b2121592d2c01b005251023208af500b0016023ed +ec2d2c01b005251023208af500b0016123edec2d2c01b0062510f500edec2d2c20b001600110 +203c003c2d2c20b001610110203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000 +622d2c21b08051580c6423648bb82000621bb200402f2b59b002602d2c21b0c051580c642364 +8bb81555621bb200802f2b59b002602d2c0c6423648bb84000626023212d2c45234560234560 +23456023766818b08062202d2cb00426b00426b00425b0042545234520b003266062636820b0 +032661658a2344442d2c2045b0005458b040442045b04061441b2121592d2c45b1302f452345 +6160b0016069442d2c4b5158b02f2370b01423421b2121592d2c4b515820b003254569535844 +1b2121591b2121592d2c45b01443b0006063b0016069442d2cb02f45442d2c452320458a6044 +2d2c45234560442d2c4b235158b90033ffe0b134201bb3330034005944442d2cb0164358b003 +26458a586466b01f601b64b020606620581b21b04059b001615923586559b02923442310b029 +e01b2121212121592d2cb0164358b004254564b020606620581b21b04059b0016123586559b0 +292344b00425b00725082058021b0359b0052510b004252046b0042523423cb0072510b00625 +2046b00425b0016023423c2058011b0059b0052510b00425b029e0b0072510b00625b029e0b0 +0425b00725082058021b0359b00425b003254348b00625b00325b0016043481b215921212121 +2121212d2cb0164358b004254564b020606620581b21b04059b0016123581b6559b0292344b0 +0525b00825082058021b0359b0042510b005252046b0042523423cb00425b0072508b0072510 +b006252046b00425b0016023423c2058011b0059b0042510b00525b029e0b02920456544b007 +2510b00625b029e0b00525b00825082058021b0359b00525b003254348b00425b0072508b006 +25b00325b0016043481b2159212121212121212d2c02b00425202046b004252342b0052508b0 +03254548212121212d2c02b0032520b0042508b0022543482121212d2c452320451820b00050 +205823652359236820b040505821b04059235865598a60442d2c4b53234b515a5820458a6044 +1b2121592d2c4b545820458a60441b2121592d2c4b53234b515a58381b2121592d2c4b545838 +1b2121592d2c2d2c2d2c2d2c2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0 +005158b04023208a3812341b2121592d2c462346608a8a462320468a608a61b8ff8062232010 +238ab14b4b8a70456020b0005058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349 +648a2353583c1b21592d2cb1020042b123018851b1400188535a58b910000020885458b20201 +0243604259b12401885158b920000040885458b2020202436042b12401885458b20220024360 +42004b014b5258b2020802436042591bb940000080885458b202040243604259b94000008063 +b80100885458b202080243604259b94000010063b80200885458b202100243604259b9400002 +0063b80400885458b202400243604259595959592d000000000100000005e666b77f08fd5f0f +3cf5001b080000000000c3738d9600000000c5c82d5ffb20fab90a8408780001000900020000 +00000000000100000800fab801000aa2fb20fe110a8400010000000000000000000000000000 +000204000080056a00a00000001400880000000100000002007f000800870007000200100040 +0055000001df024c0003000140590704181f24042b1f1f05271f1e04271fbf0401af04019f04 +013f04012f04011f04010f04011615231f1110231f13122c1f0302231f140d231f0e0d231f01 +00231f2f17012f15012f14012f0d012f02012f10012f12012f0001b1020042b21711018820b0 +22518a2378b0405278b10a2088b810005578b1020142b0031c212101b0124b004b5442b01301 +4b004b5342b0024358004bb03c524bb008505b58b101018e591b4bb80190524bb008505b58b1 +01018e5959b00288b8010054b00488b8020054b012435a5b58b80119b101018e851bb9000101 +00b04b60858d59b0501db0644b5358b0801d59b0324b5358b0901d590073737373737373732b +2b2b2b2b2b2b737373737373732b2b2b2b0000> +] def +FontName currentdict end definefont pop +11 dict begin +/FontType 42 def +/FontName /f-14-0 def +/PaintType 0 def +/FontMatrix [ 1 0 0 1 0 0 ] def +/FontBBox [ 0 0 0 0 ] def +/Encoding 256 array def +0 1 255 { Encoding exch /.notdef put } for +Encoding 1 /uni0059 put +/CharStrings 2 dict dup begin +/.notdef 0 def +/uni0059 1 def +end readonly def +/sfnts [ +<00010000000a008000030020636d61700015f07e000001640000004263767420178b170c0000 +01a8000000986670676d97486b110000024000000619676c7966e625d8da000000ac000000b8 +68656164ee14e98a0000085c00000036686865610ea7036e0000089400000024686d7478093e +0099000008b8000000086c6f6361005c0014000008c0000000066d61787002590395000008c8 +0000002070726570ee7b813d000008e80000010f000200800000038005280003000700003311 +211125211121800300fd800200fe000528fad8800428000100190000052505280008005d4034 +07060708062405041405041b050105040708000107010824000114000114000100011e100420 +040204040103050800060510030d003f3fc4d4c411123939012f5dfddd5d872b1000c187057d +10c4011810dd5d872b087d10c431300101112311012101010525fdf6f7fdf5012a015d015b05 +28fd03fdd5022b02fdfdea021600000000020003000000000014000100000000003400040020 +00000004000400010000f001ffff0000f000ffff10000001000000000006000e000000000002 +000000010000052805280000ffec00f600d200d400fa00f600b70102009201890000ffea00db +0528053e03bb03d2ffeafe7cfe900444028e0000000000000000000000f000dc00c800d200b2 +008a00d700000000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000000000000000 +000000000000403b5451504f4e4d4c4b4a494847464544434241403f3e3d3c3b3a3938373635 +2f2e2d2c2826252423221f181411100f0d0b0a090807060504030201002c4523466020b02660 +b004262348482d2c452346236120b02661b004262348482d2c45234660b0206120b04660b004 +262348482d2c4523462361b0206020b02661b02061b004262348482d2c45234660b0406120b0 +6660b004262348482d2c4523462361b0406020b02661b04061b004262348482d2c0110203c00 +3c2d2c20452320b0cd442320b8015a51582320b08d44235920b0ed51582320b04d44235920b0 +042651582320b00d44235921212d2c20204518684420b001602045b04676688a4560442d2c01 +b10b0a432343650a2d2c00b10a0b4323430b2d2c00b0282370b101283e01b0282370b1022845 +3ab10200080d2d2c2045b00325456164b050515845441b2121592d2c2045b0004360442d2c01 +b00643b00743650a2d2c2069b04061b0008b20b12cc08a8cb8100062602b0c642364615c58b0 +0361592d2c8a03458a8a87b0112bb0292344b0297ae4182d2c4565b02c234445b02b23442d2c +4b525845441b2121592d2c01b005251023208af500b0016023edec2d2c01b005251023208af5 +00b0016123edec2d2c01b0062510f500edec2d2c20b001600110203c003c2d2c20b001610110 +203c003c2d2c00b00743b006430b2d2c21210c6423648bb84000622d2c21b08051580c642364 +8bb82000621bb200402f2b59b002602d2c21b0c051580c6423648bb81555621bb200802f2b59 +b002602d2c0c6423648bb84000626023212d2c4523456023456023456023766818b08062202d +2cb00426b00426b00425b0042545234520b003266062636820b0032661658a2344442d2c2045 +b0005458b040442045b04061441b2121592d2c45b1302f4523456160b0016069442d2c4b5158 +b02f2370b01423421b2121592d2c4b515820b0032545695358441b2121591b2121592d2c45b0 +1443b0006063b0016069442d2cb02f45442d2c452320458a60442d2c45234560442d2c4b2351 +58b90033ffe0b134201bb3330034005944442d2cb0164358b00326458a586466b01f601b64b0 +20606620581b21b04059b001615923586559b02923442310b029e01b2121212121592d2cb016 +4358b004254564b020606620581b21b04059b0016123586559b0292344b00425b00725082058 +021b0359b0052510b004252046b0042523423cb0072510b006252046b00425b0016023423c20 +58011b0059b0052510b00425b029e0b0072510b00625b029e0b00425b00725082058021b0359 +b00425b003254348b00625b00325b0016043481b2159212121212121212d2cb0164358b00425 +4564b020606620581b21b04059b0016123581b6559b0292344b00525b00825082058021b0359 +b0042510b005252046b0042523423cb00425b0072508b0072510b006252046b00425b0016023 +423c2058011b0059b0042510b00525b029e0b02920456544b0072510b00625b029e0b00525b0 +0825082058021b0359b00525b003254348b00425b0072508b00625b00325b0016043481b2159 +212121212121212d2c02b00425202046b004252342b0052508b003254548212121212d2c02b0 +032520b0042508b0022543482121212d2c452320451820b00050205823652359236820b04050 +5821b04059235865598a60442d2c4b53234b515a5820458a60441b2121592d2c4b545820458a +60441b2121592d2c4b53234b515a58381b2121592d2c4b5458381b2121592d2c2d2c2d2c2d2c +2d2c208a08234b538a4b515a5823381b2121592d2c00208a49b0005158b04023208a3812341b +2121592d2c462346608a8a462320468a608a61b8ff8062232010238ab14b4b8a70456020b000 +5058b00161b8ffba8b1bb0468c59b0106068013a2d2c208a2349648a2353583c1b21592d2cb1 +020042b123018851b1400188535a58b910000020885458b202010243604259b12401885158b9 +20000040885458b2020202436042b12401885458b2022002436042004b014b5258b202080243 +6042591bb940000080885458b202040243604259b94000008063b80100885458b20208024360 +4259b94000010063b80200885458b202100243604259b94000020063b80400885458b2024002 +43604259595959592d000000000100000005e66680efbd0f5f0f3cf5001b080000000000c373 +8d9600000000c5c82d5ffb20fab90a840878000100090002000000000000000100000800fab8 +01000aa2fb20fe110a8400010000000000000000000000000000000204000080053e00190000 +0014005c0000000100000002007f0008008700070002001000400055000001df024c00030001 +40590704181f24042b1f1f05271f1e04271fbf0401af04019f04013f04012f04011f04010f04 +011615231f1110231f13122c1f0302231f140d231f0e0d231f0100231f2f17012f15012f1401 +2f0d012f02012f10012f12012f0001b1020042b21711018820b022518a2378b0405278b10a20 +88b810005578b1020142b0031c212101b0124b004b5442b013014b004b5342b0024358004bb0 +3c524bb008505b58b101018e591b4bb80190524bb008505b58b101018e5959b00288b8010054 +b00488b8020054b012435a5b58b80119b101018e851bb900010100b04b60858d59b0501db064 +4b5358b0801d59b0324b5358b0901d590073737373737373732b2b2b2b2b2b2b737373737373 +732b2b2b2b0000> +] def +FontName currentdict end definefont pop +%%Page: 1 1 +%%BeginPageSetup +%%PageBoundingBox: 0 0 262 96 +%%EndPageSetup +q +0.701961 g +120.16 62.468 m 120.168 59.538 l 120.359 59.308 l 120.16 62.468 l h +120.16 62.468 m 120.359 59.308 l 120.352 62.179 l 120.16 62.468 l h +120.227 36.124 m 120.23 33.198 l 120.422 33.484 l 120.223 36.124 l h +120.227 36.124 m 120.422 33.484 l 120.414 36.351 l 120.227 36.124 l h +126.207 62.452 m 126.199 33.21 l 126.273 33.495 l 126.207 62.452 l h +126.207 62.452 m 126.273 33.495 l 126.281 62.163 l 126.207 62.452 l h +94.578 59.612 m 120.168 59.538 l 120.16 62.468 l 94.578 59.612 l h +122.57 59.538 m 126.207 62.452 l 122.563 62.452 l 122.57 59.538 l h +122.57 59.538 m 126.199 33.21 l 126.207 62.452 l 122.57 59.538 l h +95.242 56.71 m 120.168 59.538 l 94.578 59.612 l 95.242 56.71 l h +95.242 56.71 m 122.57 59.538 l 120.168 59.538 l 95.242 56.71 l h +95.242 56.71 m 122.629 36.124 l 122.609 43.929 122.59 51.734 122.57 +59.538 c 95.242 56.71 l h +122.629 36.124 m 126.199 33.21 l 122.57 59.538 l 122.629 36.124 l h +94.578 59.612 m 120.16 62.468 l 93.73 62.468 l 94.578 59.612 l h +95.723 53.773 m 122.629 36.124 l 95.242 56.71 l 95.723 53.773 l h +96.016 50.812 m 122.629 36.124 l 95.723 53.773 l 96.016 50.812 l h +96.117 47.839 m 122.629 36.124 l 96.016 50.812 l 96.117 47.839 l h +96.027 44.862 m 122.629 36.124 l 96.117 47.839 l 96.027 44.862 l h +95.75 41.902 m 122.629 36.124 l 96.027 44.862 l 95.75 41.902 l h +95.285 38.96 m 122.629 36.124 l 95.75 41.902 l 95.285 38.96 l h +94.637 36.058 m 120.227 36.124 l 95.285 38.96 l 94.637 36.058 l h +120.227 36.124 m 122.629 36.124 l 95.285 38.96 l 120.227 36.124 l h +94.637 36.058 m 120.23 33.198 l 120.227 36.124 l 94.637 36.058 l h +122.637 33.21 m 126.199 33.21 l 122.629 36.124 l 122.633 33.21 l h +93.801 33.198 m 120.23 33.198 l 94.637 36.058 l 93.801 33.198 l h +93.801 33.198 m f +1 0.603922 0 rg +45.156 0.452 m 48.172 0.366 l 51.191 0.464 l 45.156 0.452 l h +45.156 0.452 m 51.191 0.464 l 42.148 0.726 l 45.156 0.452 l h +42.148 0.726 m 51.191 0.464 l 54.195 0.753 l 42.148 0.726 l h +42.148 0.726 m 54.195 0.753 l 39.164 1.183 l 42.148 0.726 l h +39.164 1.183 m 54.195 0.753 l 57.176 1.226 l 39.164 1.183 l h +39.164 1.183 m 57.176 1.226 l 36.219 1.823 l 39.164 1.183 l h +36.219 1.823 m 57.176 1.226 l 60.121 1.882 l 36.219 1.823 l h +36.219 1.823 m 60.121 1.882 l 33.316 2.648 l 36.219 1.823 l h +33.316 2.648 m 60.121 1.882 l 63.02 2.718 l 33.316 2.648 l h +33.316 2.648 m 63.02 2.718 l 30.473 3.648 l 33.316 2.648 l h +30.473 3.648 m 63.02 2.718 l 65.855 3.734 l 30.473 3.648 l h +30.473 3.648 m 65.855 3.734 l 27.699 4.823 l 30.473 3.648 l h +27.699 4.823 m 65.855 3.734 l 68.625 4.921 l 27.699 4.823 l h +27.699 4.823 m 68.625 4.921 l 25.008 6.167 l 27.699 4.823 l h +25.008 6.167 m 68.625 4.921 l 71.313 6.277 l 25.008 6.167 l h +25.008 6.167 m 71.313 6.277 l 22.402 7.679 l 25.008 6.167 l h +22.402 7.679 m 71.313 6.277 l 73.906 7.796 l 22.402 7.679 l h +22.402 7.679 m 73.906 7.796 l 19.902 9.343 l 22.402 7.679 l h +19.902 9.343 m 73.906 7.796 l 76.398 9.476 l 19.902 9.343 l h +19.902 9.343 m 76.398 9.476 l 17.512 11.163 l 19.902 9.343 l h +17.512 11.163 m 76.398 9.476 l 78.781 11.304 l 17.512 11.163 l h +17.512 11.163 m 78.781 11.304 l 15.242 13.124 l 17.512 11.163 l h +15.242 13.124 m 78.781 11.304 l 81.039 13.277 l 15.242 13.124 l h +15.242 13.124 m 81.039 13.277 l 13.102 15.222 l 15.242 13.124 l h +13.102 15.222 m 81.039 13.277 l 83.168 15.386 l 13.102 15.222 l h +13.102 15.222 m 83.168 15.386 l 11.102 17.448 l 13.102 15.222 l h +11.102 17.448 m 83.168 15.386 l 85.16 17.624 l 11.102 17.448 l h +11.102 17.448 m 85.16 17.624 l 9.246 19.796 l 11.102 17.448 l h +9.246 19.796 m 85.16 17.624 l 87.004 19.98 l 9.246 19.796 l h +9.246 19.796 m 87.004 19.98 l 7.543 22.253 l 9.246 19.796 l h +7.543 22.253 m 87.004 19.98 l 88.695 22.444 l 7.543 22.253 l h +7.543 22.253 m 88.695 22.444 l 6 24.812 l 7.543 22.253 l h +6 24.812 m 88.695 22.444 l 90.227 25.007 l 6 24.812 l h +6 24.812 m 90.227 25.007 l 4.621 27.456 l 6 24.812 l h +4.621 27.456 m 90.227 25.007 l 91.59 27.663 l 4.621 27.456 l h +4.621 27.456 m 91.59 27.663 l 3.418 30.187 l 4.621 27.456 l h +3.418 30.187 m 91.59 27.663 l 92.785 30.394 l 3.418 30.187 l h +3.418 30.187 m 92.785 30.394 l 2.387 32.984 l 3.418 30.187 l h +2.387 32.984 m 92.785 30.394 l 93.801 33.198 l 2.387 32.984 l h +2.387 32.984 m 93.801 33.198 l 67.582 33.198 l 2.387 32.984 l h +2.387 32.984 m 67.582 33.198 l 66.648 33.226 l 2.387 32.984 l h +2.387 32.984 m 66.648 33.226 l 65.719 33.312 l 2.387 32.984 l h +2.387 32.984 m 65.719 33.312 l 64.797 33.452 l 2.387 32.984 l h +2.387 32.984 m 64.797 33.452 l 63.887 33.652 l 2.387 32.984 l h +2.387 32.984 m 63.887 33.652 l 62.988 33.905 l 2.387 32.984 l h +2.387 32.984 m 62.988 33.905 l 62.109 34.218 l 2.387 32.984 l h +2.387 32.984 m 62.109 34.218 l 61.254 34.581 l 2.387 32.984 l h +2.387 32.984 m 61.254 34.581 l 60.422 34.995 l 2.387 32.984 l h +2.387 32.984 m 60.422 34.995 l 59.617 35.464 l 2.387 32.984 l h +2.387 32.984 m 59.617 35.464 l 1.539 35.839 l 2.387 32.984 l h +1.539 35.839 m 59.617 35.464 l 58.844 35.98 l 1.539 35.839 l h +1.539 35.839 m 58.844 35.98 l 58.105 36.542 l 1.539 35.839 l h +1.539 35.839 m 58.105 36.542 l 57.406 37.148 l 1.539 35.839 l h +1.539 35.839 m 57.406 37.148 l 56.742 37.796 l 1.539 35.839 l h +1.539 35.839 m 56.742 37.796 l 56.125 38.487 l 1.539 35.839 l h +1.539 35.839 m 56.125 38.487 l 0.871 38.741 l 1.539 35.839 l h +0.871 38.741 m 56.125 38.487 l 55.551 39.214 l 0.871 38.741 l h +0.871 38.741 m 55.551 39.214 l 55.027 39.972 l 0.871 38.741 l h +0.871 38.741 m 55.027 39.972 l 54.551 40.761 l 0.871 38.741 l h +0.871 38.741 m 54.551 40.761 l 54.125 41.581 l 0.871 38.741 l h +0.871 38.741 m 54.125 41.581 l 0.395 41.679 l 0.871 38.741 l h +0.395 41.679 m 54.125 41.581 l 53.754 42.425 l 0.395 41.679 l h +0.395 41.679 m 53.754 42.425 l 53.434 43.288 l 0.395 41.679 l h +0.395 41.679 m 53.434 43.288 l 53.172 44.171 l 0.395 41.679 l h +0.395 41.679 m 53.172 44.171 l 0.102 44.64 l 0.395 41.679 l h +0.102 44.64 m 53.172 44.171 l 52.969 45.069 l 0.102 44.64 l h +0.102 44.64 m 52.969 45.069 l 52.82 45.98 l 0.102 44.64 l h +0.102 44.64 m 52.82 45.98 l 52.73 46.894 l 0.102 44.64 l h +0.102 44.64 m 52.73 46.894 l 0 47.612 l 0.102 44.64 l h +0 47.612 m 52.73 46.894 l 52.699 47.812 l 0 47.612 l h +0 47.612 m 52.699 47.812 l 52.727 48.734 l 0 47.612 l h +0 47.612 m 52.727 48.734 l 52.813 49.648 l 0 47.612 l h +0 47.612 m 52.813 49.648 l 52.957 50.558 l 0 47.612 l h +0 47.612 m 52.957 50.558 l 0.09 50.585 l 0 47.612 l h +0.09 50.585 m 52.957 50.558 l 53.16 51.452 l 0.09 50.585 l h +0.09 50.585 m 53.16 51.452 l 53.418 52.339 l 0.09 50.585 l h +0.09 50.585 m 53.418 52.339 l 53.734 53.202 l 0.09 50.585 l h +0.09 50.585 m 53.734 53.202 l 0.363 53.55 l 0.09 50.585 l h +0.363 53.55 m 53.734 53.202 l 54.102 54.05 l 0.363 53.55 l h +0.363 53.55 m 54.102 54.05 l 54.523 54.87 l 0.363 53.55 l h +0.363 53.55 m 54.523 54.87 l 55 55.659 l 0.363 53.55 l h +0.363 53.55 m 55 55.659 l 55.52 56.421 l 0.363 53.55 l h +0.363 53.55 m 55.52 56.421 l 0.828 56.487 l 0.363 53.55 l h +0.828 56.487 m 55.52 56.421 l 56.094 57.152 l 0.828 56.487 l h +0.828 56.487 m 56.094 57.152 l 56.707 57.843 l 0.828 56.487 l h +0.828 56.487 m 56.707 57.843 l 57.367 58.491 l 0.828 56.487 l h +0.828 56.487 m 57.367 58.491 l 58.066 59.101 l 0.828 56.487 l h +0.828 56.487 m 58.066 59.101 l 1.48 59.394 l 0.828 56.487 l h +1.48 59.394 m 58.066 59.101 l 58.801 59.667 l 1.48 59.394 l h +1.48 59.394 m 58.801 59.667 l 59.574 60.187 l 1.48 59.394 l h +1.48 59.394 m 59.574 60.187 l 60.375 60.655 l 1.48 59.394 l h +1.48 59.394 m 60.375 60.655 l 61.207 61.073 l 1.48 59.394 l h +1.48 59.394 m 61.207 61.073 l 62.063 61.441 l 1.48 59.394 l h +1.48 59.394 m 62.063 61.441 l 62.941 61.753 l 1.48 59.394 l h +1.48 59.394 m 62.941 61.753 l 63.836 62.011 l 1.48 59.394 l h +1.48 59.394 m 63.836 62.011 l 64.746 62.214 l 1.48 59.394 l h +1.48 59.394 m 64.746 62.214 l 2.316 62.253 l 1.48 59.394 l h +2.316 62.253 m 64.746 62.214 l 65.668 62.359 l 2.316 62.253 l h +2.316 62.253 m 65.668 62.359 l 66.598 62.448 l 2.316 62.253 l h +2.316 62.253 m 66.598 62.448 l 67.531 62.48 l 2.316 62.253 l h +67.531 62.48 m 93.73 62.468 l 3.332 65.054 l 67.531 62.48 l h +2.316 62.253 m 67.531 62.48 l 3.332 65.054 l 2.316 62.253 l h +3.332 65.054 m 93.73 62.468 l 92.699 65.265 l 3.332 65.054 l h +3.332 65.054 m 92.699 65.265 l 4.523 67.788 l 3.332 65.054 l h +4.523 67.788 m 92.699 65.265 l 91.492 67.991 l 4.523 67.788 l h +4.523 67.788 m 91.492 67.991 l 5.891 70.441 l 4.523 67.788 l h +5.891 70.441 m 91.492 67.991 l 90.117 70.64 l 5.891 70.441 l h +5.891 70.441 m 90.117 70.64 l 7.422 73.007 l 5.891 70.441 l h +7.422 73.007 m 90.117 70.64 l 88.574 73.198 l 7.422 73.007 l h +7.422 73.007 m 88.574 73.198 l 9.113 75.472 l 7.422 73.007 l h +9.113 75.472 m 88.574 73.198 l 86.871 75.655 l 9.113 75.472 l h +9.113 75.472 m 86.871 75.655 l 10.957 77.827 l 9.113 75.472 l h +10.957 77.827 m 86.871 75.655 l 85.016 77.999 l 10.957 77.827 l h +10.957 77.827 m 85.016 77.999 l 12.949 80.062 l 10.957 77.827 l h +12.949 80.062 m 85.016 77.999 l 83.012 80.226 l 12.949 80.062 l h +12.949 80.062 m 83.012 80.226 l 15.078 82.171 l 12.949 80.062 l h +15.078 82.171 m 83.012 80.226 l 80.875 82.327 l 15.078 82.171 l h +15.078 82.171 m 80.875 82.327 l 17.336 84.144 l 15.078 82.171 l h +17.336 84.144 m 80.875 82.327 l 78.605 84.288 l 17.336 84.144 l h +17.336 84.144 m 78.605 84.288 l 19.719 85.976 l 17.336 84.144 l h +19.719 85.976 m 78.605 84.288 l 76.215 86.105 l 19.719 85.976 l h +19.719 85.976 m 76.215 86.105 l 22.211 87.652 l 19.719 85.976 l h +22.211 87.652 m 76.215 86.105 l 73.715 87.773 l 22.211 87.652 l h +22.211 87.652 m 73.715 87.773 l 24.805 89.171 l 22.211 87.652 l h +24.805 89.171 m 73.715 87.773 l 71.109 89.28 l 24.805 89.171 l h +24.805 89.171 m 71.109 89.28 l 27.492 90.53 l 24.805 89.171 l h +27.492 90.53 m 71.109 89.28 l 68.418 90.624 l 27.492 90.53 l h +27.492 90.53 m 68.418 90.624 l 30.262 91.718 l 27.492 90.53 l h +30.262 91.718 m 68.418 90.624 l 65.645 91.8 l 30.262 91.718 l h +30.262 91.718 m 65.645 91.8 l 33.098 92.734 l 30.262 91.718 l h +33.098 92.734 m 65.645 91.8 l 62.801 92.804 l 33.098 92.734 l h +33.098 92.734 m 62.801 92.804 l 35.996 93.569 l 33.098 92.734 l h +35.996 93.569 m 62.801 92.804 l 59.898 93.624 l 35.996 93.569 l h +35.996 93.569 m 59.898 93.624 l 38.941 94.226 l 35.996 93.569 l h +38.941 94.226 m 59.898 93.624 l 56.953 94.269 l 38.941 94.226 l h +38.941 94.226 m 56.953 94.269 l 41.922 94.698 l 38.941 94.226 l h +41.922 94.698 m 56.953 94.269 l 53.969 94.726 l 41.922 94.698 l h +41.922 94.698 m 53.969 94.726 l 44.926 94.984 l 41.922 94.698 l h +44.926 94.984 m 53.969 94.726 l 50.961 94.999 l 44.926 94.984 l h +44.926 94.984 m 50.961 94.999 l 47.945 95.085 l 44.926 94.984 l h +66.648 33.226 m 68.805 33.484 l 67.891 33.511 l 66.648 33.226 l h +66.648 33.226 m 67.582 33.198 l 68.805 33.484 l 66.648 33.226 l h +65.719 33.312 m 67.891 33.511 l 66.98 33.593 l 65.719 33.312 l h +65.719 33.312 m 66.648 33.226 l 67.891 33.511 l 65.719 33.312 l h +64.797 33.452 m 66.98 33.593 l 66.074 33.734 l 64.797 33.452 l h +64.797 33.452 m 65.719 33.312 l 66.98 33.593 l 64.797 33.452 l h +63.887 33.652 m 66.074 33.734 l 65.184 33.929 l 63.887 33.652 l h +63.887 33.652 m 64.797 33.452 l 66.074 33.734 l 63.887 33.652 l h +62.988 33.905 m 65.184 33.929 l 64.301 34.179 l 62.988 33.905 l h +62.988 33.905 m 63.887 33.652 l 65.184 33.929 l 62.988 33.905 l h +62.109 34.218 m 64.301 34.179 l 63.441 34.484 l 62.109 34.218 l h +62.109 34.218 m 62.988 33.905 l 64.301 34.179 l 62.109 34.218 l h +61.254 34.581 m 63.441 34.484 l 62.602 34.839 l 61.254 34.581 l h +61.254 34.581 m 62.109 34.218 l 63.441 34.484 l 61.254 34.581 l h +60.422 34.995 m 62.602 34.839 l 61.785 35.245 l 60.422 34.995 l h +60.422 34.995 m 61.254 34.581 l 62.602 34.839 l 60.422 34.995 l h +59.617 35.464 m 61.785 35.245 l 60.996 35.702 l 59.617 35.464 l h +59.617 35.464 m 60.422 34.995 l 61.785 35.245 l 59.617 35.464 l h +58.844 35.98 m 60.996 35.702 l 60.238 36.21 l 58.844 35.98 l h +58.844 35.98 m 59.617 35.464 l 60.996 35.702 l 58.844 35.98 l h +58.105 36.542 m 60.238 36.21 l 59.516 36.761 l 58.105 36.542 l h +58.105 36.542 m 58.844 35.98 l 60.238 36.21 l 58.105 36.542 l h +57.406 37.148 m 59.516 36.761 l 58.828 37.355 l 57.406 37.148 l h +57.406 37.148 m 58.105 36.542 l 59.516 36.761 l 57.406 37.148 l h +56.742 37.8 m 58.828 37.355 l 58.18 37.991 l 56.742 37.8 l h +56.742 37.8 m 57.406 37.148 l 58.828 37.355 l 56.742 37.8 l h +56.125 38.487 m 58.18 37.991 l 57.574 38.667 l 56.125 38.487 l h +56.125 38.487 m 56.742 37.8 l 58.18 37.991 l 56.125 38.487 l h +55.551 39.214 m 57.574 38.667 l 57.012 39.378 l 55.551 39.214 l h +55.551 39.214 m 56.125 38.487 l 57.574 38.667 l 55.551 39.214 l h +55.027 39.972 m 57.012 39.378 l 56.496 40.124 l 55.027 39.972 l h +55.027 39.972 m 55.551 39.214 l 57.012 39.378 l 55.027 39.972 l h +54.551 40.761 m 56.496 40.124 l 56.027 40.898 l 54.551 40.761 l h +54.551 40.761 m 55.027 39.972 l 56.496 40.124 l 54.551 40.761 l h +54.125 41.581 m 56.027 40.898 l 55.609 41.702 l 54.125 41.581 l h +54.125 41.581 m 54.551 40.761 l 56.027 40.898 l 54.125 41.581 l h +53.754 42.425 m 55.609 41.702 l 55.246 42.53 l 53.754 42.425 l h +53.754 42.425 m 54.125 41.581 l 55.609 41.702 l 53.754 42.425 l h +53.434 43.292 m 55.246 42.53 l 54.934 43.378 l 53.434 43.292 l h +53.434 43.292 m 53.754 42.425 l 55.246 42.53 l 53.434 43.292 l h +53.172 44.171 m 54.934 43.378 l 54.68 44.241 l 53.172 44.171 l h +53.172 44.171 m 53.434 43.292 l 54.934 43.378 l 53.172 44.171 l h +52.969 45.069 m 54.68 44.241 l 54.477 45.12 l 52.969 45.069 l h +52.969 45.069 m 53.172 44.171 l 54.68 44.241 l 52.969 45.069 l h +52.82 45.98 m 54.477 45.12 l 54.332 46.011 l 52.82 45.98 l h +52.82 45.98 m 52.969 45.069 l 54.477 45.12 l 52.82 45.98 l h +52.73 46.894 m 54.332 46.011 l 54.246 46.909 l 52.73 46.894 l h +52.73 46.894 m 52.82 45.98 l 54.332 46.011 l 52.73 46.894 l h +52.699 47.812 m 54.246 46.909 l 54.215 47.812 l 52.699 47.812 l h +52.699 47.812 m 52.73 46.894 l 54.246 46.909 l 52.699 47.812 l h +52.727 48.734 m 54.215 47.812 l 54.242 48.714 l 52.727 48.734 l h +52.727 48.734 m 52.699 47.812 l 54.215 47.812 l 52.727 48.734 l h +52.813 49.648 m 54.242 48.714 l 54.328 49.609 l 52.813 49.648 l h +52.813 49.648 m 52.727 48.734 l 54.242 48.714 l 52.813 49.648 l h +52.957 50.558 m 54.328 49.609 l 54.469 50.499 l 52.957 50.558 l h +52.957 50.558 m 52.813 49.648 l 54.328 49.609 l 52.957 50.558 l h +53.16 51.456 m 54.469 50.499 l 54.664 51.382 l 53.16 51.456 l h +53.16 51.456 m 52.957 50.558 l 54.469 50.499 l 53.16 51.456 l h +53.418 52.339 m 54.664 51.382 l 54.918 52.249 l 53.418 52.339 l h +53.418 52.339 m 53.16 51.456 l 54.664 51.382 l 53.418 52.339 l h +53.734 53.202 m 54.918 52.249 l 55.227 53.097 l 53.734 53.202 l h +53.734 53.202 m 53.418 52.339 l 54.918 52.249 l 53.734 53.202 l h +54.102 54.05 m 55.227 53.097 l 55.59 53.925 l 54.102 54.05 l h +54.102 54.05 m 53.734 53.202 l 55.227 53.097 l 54.102 54.05 l h +54.523 54.87 m 55.59 53.925 l 56.004 54.73 l 54.523 54.87 l h +54.523 54.87 m 54.102 54.05 l 55.59 53.925 l 54.523 54.87 l h +55 55.659 m 56.004 54.73 l 56.469 55.507 l 55 55.659 l h +55 55.659 m 54.523 54.87 l 56.004 54.73 l 55 55.659 l h +55.52 56.421 m 56.469 55.507 l 56.98 56.253 l 55.52 56.421 l h +55.52 56.421 m 55 55.659 l 56.469 55.507 l 55.52 56.421 l h +56.094 57.152 m 56.98 56.253 l 57.539 56.964 l 56.094 57.152 l h +56.094 57.152 m 55.52 56.421 l 56.98 56.253 l 56.094 57.152 l h +56.707 57.843 m 57.539 56.964 l 58.145 57.644 l 56.707 57.843 l h +56.707 57.843 m 56.094 57.152 l 57.539 56.964 l 56.707 57.843 l h +57.367 58.491 m 58.145 57.644 l 58.789 58.28 l 57.367 58.491 l h +57.367 58.491 m 56.707 57.843 l 58.145 57.644 l 57.367 58.491 l h +58.066 59.105 m 58.789 58.28 l 59.477 58.878 l 58.066 59.105 l h +58.066 59.105 m 57.367 58.491 l 58.789 58.28 l 58.066 59.105 l h +58.801 59.667 m 59.477 58.878 l 60.199 59.433 l 58.801 59.667 l h +58.801 59.667 m 58.066 59.105 l 59.477 58.878 l 58.801 59.667 l h +59.574 60.187 m 60.199 59.433 l 60.953 59.941 l 59.574 60.187 l h +59.574 60.187 m 58.801 59.667 l 60.199 59.433 l 59.574 60.187 l h +60.375 60.655 m 60.953 59.941 l 61.738 60.402 l 60.375 60.655 l h +60.375 60.655 m 59.574 60.187 l 60.953 59.941 l 60.375 60.655 l h +61.207 61.073 m 61.738 60.402 l 62.555 60.812 l 61.207 61.073 l h +61.207 61.073 m 60.375 60.655 l 61.738 60.402 l 61.207 61.073 l h +62.063 61.441 m 62.555 60.812 l 63.395 61.171 l 62.063 61.441 l h +62.063 61.441 m 61.207 61.073 l 62.555 60.812 l 62.063 61.441 l h +62.941 61.753 m 63.395 61.171 l 64.254 61.48 l 62.941 61.753 l h +62.941 61.753 m 62.063 61.441 l 63.395 61.171 l 62.941 61.753 l h +63.836 62.011 m 64.254 61.48 l 65.133 61.734 l 63.836 62.011 l h +63.836 62.011 m 62.941 61.753 l 64.254 61.48 l 63.836 62.011 l h +64.746 62.214 m 65.133 61.734 l 66.023 61.929 l 64.746 62.214 l h +64.746 62.214 m 63.836 62.011 l 65.133 61.734 l 64.746 62.214 l h +65.668 62.359 m 66.023 61.929 l 66.93 62.073 l 65.668 62.359 l h +65.668 62.359 m 64.746 62.214 l 66.023 61.929 l 65.668 62.359 l h +66.598 62.448 m 66.93 62.073 l 67.84 62.159 l 66.598 62.448 l h +66.598 62.448 m 65.668 62.359 l 66.93 62.073 l 66.598 62.448 l h +67.531 62.48 m 67.84 62.159 l 68.754 62.191 l 67.531 62.48 l h +67.531 62.48 m 66.598 62.448 l 67.84 62.159 l 67.531 62.48 l h +67.582 33.198 m 94.508 33.484 l 68.805 33.484 l 67.582 33.198 l h +67.582 33.198 m 93.801 33.198 l 94.508 33.484 l 67.582 33.198 l h +78.781 11.304 m 77.449 10.226 l 79.785 12.019 l 78.781 11.304 l h +78.781 11.304 m 76.398 9.476 l 77.449 10.226 l 78.781 11.304 l h +81.039 13.277 m 79.785 12.019 l 82 13.952 l 81.039 13.277 l h +81.039 13.277 m 78.781 11.304 l 79.785 12.019 l 81.039 13.277 l h +83.168 15.386 m 82 13.952 l 84.086 16.023 l 83.168 15.386 l h +83.168 15.386 m 81.039 13.277 l 82 13.952 l 83.168 15.386 l h +85.16 17.624 m 84.086 16.023 l 86.039 18.214 l 85.16 17.624 l h +85.16 17.624 m 83.168 15.386 l 84.086 16.023 l 85.16 17.624 l h +87.004 19.98 m 86.039 18.214 l 87.848 20.523 l 87.004 19.98 l h +87.004 19.98 m 85.16 17.624 l 86.039 18.214 l 87.004 19.98 l h +88.695 22.444 m 87.848 20.523 l 89.508 22.941 l 88.695 22.444 l h +88.695 22.444 m 87.004 19.98 l 87.848 20.523 l 88.695 22.444 l h +90.227 25.007 m 89.508 22.941 l 91.008 25.452 l 90.227 25.007 l h +90.227 25.007 m 88.695 22.444 l 89.508 22.941 l 90.227 25.007 l h +91.59 27.663 m 90.227 25.007 l 91.008 25.452 l 91.59 27.663 l h +93.73 62.468 m 68.754 62.191 l 94.441 62.179 l 93.73 62.468 l h +93.73 62.468 m 67.531 62.48 l 68.754 62.191 l 93.73 62.468 l h +90.117 70.64 m 92.25 67.593 l 90.898 70.191 l 90.117 70.64 l h +90.117 70.64 m 91.492 67.991 l 92.25 67.593 l 90.117 70.64 l h +88.574 73.198 m 90.898 70.191 l 89.387 72.698 l 88.574 73.198 l h +88.574 73.198 m 90.117 70.64 l 90.898 70.191 l 88.574 73.198 l h +86.871 75.655 m 89.387 72.698 l 87.715 75.105 l 86.871 75.655 l h +86.871 75.655 m 88.574 73.198 l 89.387 72.698 l 86.871 75.655 l h +85.016 77.999 m 87.715 75.105 l 85.895 77.405 l 85.016 77.999 l h +85.016 77.999 m 86.871 75.655 l 87.715 75.105 l 85.016 77.999 l h +83.012 80.226 m 85.895 77.405 l 83.934 79.589 l 83.012 80.226 l h +83.012 80.226 m 85.016 77.999 l 85.895 77.405 l 83.012 80.226 l h +80.875 82.327 m 83.934 79.589 l 81.836 81.648 l 80.875 82.327 l h +80.875 82.327 m 83.012 80.226 l 83.934 79.589 l 80.875 82.327 l h +78.605 84.288 m 81.836 81.648 l 79.609 83.573 l 78.605 84.288 l h +78.605 84.288 m 80.875 82.327 l 81.836 81.648 l 78.605 84.288 l h +76.215 86.105 m 79.609 83.573 l 77.27 85.355 l 76.215 86.105 l h +76.215 86.105 m 78.605 84.288 l 79.609 83.573 l 76.215 86.105 l h +91.492 67.991 m 92.699 65.265 l 93.43 64.921 l 91.492 67.991 l h +91.492 67.991 m 93.43 64.921 l 92.25 67.593 l 91.492 67.991 l h +92.699 65.265 m 93.73 62.468 l 94.441 62.179 l 92.699 65.265 l h +92.699 65.265 m 94.441 62.179 l 93.43 64.921 l 92.699 65.265 l h +93.801 33.198 m 92.785 30.394 l 93.512 30.734 l 93.801 33.198 l h +93.801 33.198 m 93.512 30.734 l 94.508 33.484 l 93.801 33.198 l h +92.785 30.394 m 91.59 27.663 l 92.344 28.054 l 92.785 30.394 l h +92.785 30.394 m 92.344 28.054 l 93.512 30.734 l 92.785 30.394 l h +91.59 27.663 m 91.008 25.452 l 92.344 28.054 l 91.59 27.663 l h +91.59 27.663 m f +128.605 51.343 m 128.605 44.323 l 183.871 47.831 l 128.605 51.343 l h +260.77 62.452 m 128.609 62.452 l 128.609 56.605 l 260.77 62.452 l h +128.605 39.058 m 128.602 33.21 l 260.762 33.21 l 128.605 39.058 l h +128.605 39.058 m 258.199 33.495 l 128.629 39.23 l 128.605 39.058 l h +128.605 39.058 m 260.762 33.21 l 258.199 33.495 l 128.605 39.058 l h +128.605 56.605 m 258.203 62.163 l 260.77 62.452 l 128.605 56.605 l h +128.605 56.605 m 128.633 56.429 l 258.203 62.163 l 128.605 56.605 l h +128.605 56.605 m f +0.701961 g +BT +60.913132 0 0 22.53534 93.670855 11.585044 Tm +/f-0-0 1 Tf +[<010203>-1<0304>-1<05>]TJ +ET +0 g +57.547 65.73 m 40.297 75.804 l 49.949 92.702 l 67.199 82.632 l 57.547 +65.73 l h +57.547 65.73 m f +43.293 47.835 m 23.574 51.515 l 26.746 70.632 l 46.469 66.952 l 43.293 +47.835 l h +43.293 47.835 m f +47.531 27.269 m 27.715 24.116 l 24.027 43.144 l 43.844 46.296 l 47.531 +27.269 l h +47.531 27.269 m f +59.633 23.691 m 59.359 4.011 l 39.605 3.753 l 39.879 23.437 l 59.633 +23.691 l h +59.633 23.691 m f +BT +13.363021 0 0 14.275113 94.96445 0.00000172127 Tm +/f-1-0 1 Tf +<01>Tj +14.826648 0 0 14.275113 106.759489 -0.000000768731 Tm +/f-2-0 1 Tf +<01>Tj +14.826647 0 0 14.275112 119.430098 -0.000000768731 Tm +/f-3-0 1 Tf +<01>Tj +/f-4-0 1 Tf +0.794147 0.010254 Td +<01>Tj +/f-5-0 1 Tf +0.803797 -0.010254 Td +<01>Tj +/f-6-0 1 Tf +0.467029 0.010254 Td +<01>Tj +/f-7-0 1 Tf +[<>-107<01>]TJ +/f-8-0 1 Tf +2.632227 -0.010254 Td +<01>Tj +/f-9-0 1 Tf +[<>-154<01>]TJ +/f-10-0 1 Tf +[<>-199<01>]TJ +/f-11-0 1 Tf +[<>-130<01>]TJ +/f-12-0 1 Tf +[<>-129<01>]TJ +/f-13-0 1 Tf +[<>-155<01>]TJ +/f-14-0 1 Tf +[<>-109<01>]TJ +ET +Q +showpage +%%Trailer +count op_count sub {pop} repeat +countdictstack dict_count sub {end} repeat +cairo_eps_state restore +%%EOF diff --git a/docs/latex/faq.tex b/docs/latex/faq.tex new file mode 100644 index 000000000..6979d7898 --- /dev/null +++ b/docs/latex/faq.tex @@ -0,0 +1,3 @@ + +\chapter{Frequently asked questions} +Here is a placeholder for a future FAQ. For more information it is best to visit the Bullet Physics forums and wiki at \url{http://bulletphysics.org}. diff --git a/docs/latex/helloworld.tex b/docs/latex/helloworld.tex new file mode 100644 index 000000000..1a7904d3c --- /dev/null +++ b/docs/latex/helloworld.tex @@ -0,0 +1,15 @@ +\chapter{Hello World} +\section{C++ console program} +Let's discuss the creation of a basic Bullet simulation from the beginning to the end. For simplicity we print the state of the simulation to console using printf, instead of using 3D graphics to display the objects. The source code of this tutorial is located in \path{examples/HelloWorld/HelloWorld.cpp}. + +It is a good idea to try to compile, link and run this HelloWorld.cpp program first. + +As you can see in \ref{helloworld_includefiles} you can include a convenience header file \path{btBulletDynamicsCommon.h}. + +\lstinputlisting[caption=HelloWorld.cpp include header, label=helloworld_includefiles,linerange=includes_start-includes_end]{../../examples/HelloWorld/HelloWorld.cpp} +Now we create the dynamics world: +\lstinputlisting[caption=HelloWorld.cpp initialize world, label=stepsimulation,linerange=initialization_start-initialization_end]{../../examples/HelloWorld/HelloWorld.cpp} +Once the world is created you can step the simulation as follows: +\lstinputlisting[caption=HelloWorld.cpp step simulation, label=stepsimulation,linerange=stepsimulation_start-stepsimulation_end]{../../examples/HelloWorld/HelloWorld.cpp} +At the end of the program you delete all objects in the reverse order of creation. Here is the cleanup listing of our HelloWorld.cpp program. +\lstinputlisting[caption=HelloWorld.cpp cleanup, label=cleanup,linerange=cleanup_start-cleanup_end]{../../examples/HelloWorld/HelloWorld.cpp} diff --git a/docs/latex/intro.tex b/docs/latex/intro.tex new file mode 100644 index 000000000..56e26a15d --- /dev/null +++ b/docs/latex/intro.tex @@ -0,0 +1,50 @@ + +%Use the \path{Demos/MyDemo} instead of \texttt{Demos/MyDemo} otherwise text doesn't wrap +%and runs into the right margin + +\chapter{Introduction to Bullet} +%\section{blablaIntroduction} +Bullet Physics is a professional open source collision detection, rigid body and soft body dynamics library. Bullet Physics targets real-time and interactive use in games, visual effects in movies and robotics. The library is free for commercial use under the \index{zlib license} \href{http://opensource.org/licenses/zlib-license.php}{zlib license}. + +\section{Main Features} + +\begin{itemize} + \item Open source C++ code under zlib license and free for any commercial use on all platforms including PLAYSTATION 3, XBox 360, Wii, PC, Linux, Mac OSX, Android and iPhone + \item Discrete and continuous collision detection including ray and convex sweep test. Collision shapes include concave and convex meshes and all basic primitives + \item Fast and stable rigid body dynamics constraint solver, vehicle dynamics, character controller and slider, hinge, generic 6DOF and cone twist constraint for ragdolls + \item Soft Body dynamics for cloth, rope and deformable volumes with two-way interaction with rigid bodies, including constraint support + \item Native binary .bullet file format and example importers for URDF, Wavefront obj and Quake bsp files. +\end{itemize} + +\section{Contact and Support} +\begin{itemize} + \item Public forum for support and feedback is available at \url{http://bulletphysics.org} +\end{itemize} + +\section{What's new} + +\subsection{New in Bullet 2.83} +\begin{itemize} + \item New ExampleBrowser, replacing the standalone demos. See \path{examples/ExampleBrowser}. + \item Import of Universal Robot Description Files (URDF). See \path{examples/Importers/ImportURDFDemo}. + \item Improved support for btMultiBody with multi-degree of freedom mobilizers, thanks to Jakub Stepien. See \path{examples/MultiBody/MultiDofDemo}. + \item New btGeneric6DofSpring2Constraint, replacing the old generic 6dof constraint, thanks to Gabor PUHR and Tamas Umenhoffer. See \path{examples/Dof6Spring2Setup} +\end{itemize} +\subsection{New in Bullet 2.82} +\begin{itemize} + \item Featherstone articulated body algorithm implementation with integration in the Bullet constraint solver. See \path{examples/MultiBodyDemo} + \item New MLCP constraint solver interface for higher quality direct solvers. Dantzig (OpenDE), PATH and Projected Gauss Seidel MLCP solvers, with fallback to the original Bullet sequential impulse solver. See \path{src/BulletDynamics/MLCPSolvers} + \item New btFixedConstraint as alternative to a btGeneric6DofConstraint with all DOFs locked. See \path{Demos/VoronoiFractureDemo} + \item Various bug fixes, related to force feedback and friction. Improved performance between btCompoundShape using the new btCompoundCompoundCollisionAlgorithm. See the commit log at \url{https://code.google.com/p/bullet/source/list} +\end{itemize} +\subsection{New in Bullet 2.81} +\begin{itemize} + \item SIMD and Neon optimizations for iOS and Mac OSX, thanks to a contribution from Apple + \item Rolling Friction using a constraint, thanks to Erin Catto for the idea. See \path{Demos/RollingFrictionDemo/RollingFrictionDemo.cpp} + \item XML serialization. See \path{Bullet/Demos/BulletXmlImportDemo} and \path{Bullet/Demos/SerializeDemo} + \item Gear constraint. See \path{Bullet/Demos/ConstraintDemo}. + \item Improved continuous collision response, feeding speculative contacts to the constraint solver. See \path{Bullet/Demos/CcdPhysicsDemo} + \item Improved premake4 build system including support for Mac OSX, Linux and iOS + \item Refactoring of collision detection pipeline using stack allocation instead of modifying the collision object. This will allow better future multithreading optimizations. +\end{itemize} + diff --git a/docs/latex/titlepic.sty b/docs/latex/titlepic.sty new file mode 100644 index 000000000..974885c89 --- /dev/null +++ b/docs/latex/titlepic.sty @@ -0,0 +1,68 @@ +% titlepic.sty is a LaTeX package to show a picture on the cover produced by \maketitle. +% By Thomas ten Cate . Free software, no warranty of any kind. +% +% Version history: +% 1.1: now more self-contained, comes with a PDF manual +% 1.0: first release +% +% ----------------------------------------------------------------------------- + +% No idea whether it works on older LaTeXes. +\NeedsTeXFormat{LaTeX2e} + +% Package identification and version number. +\ProvidesPackage{titlepic}[2009/08/03 1.1 Package to display a picture on the title page] + +% Declare the options. +\DeclareOption{tt}{\gdef\@tptopspace{}\gdef\@tpsepspace{\vskip 3em}} +\DeclareOption{tc}{\gdef\@tptopspace{}\gdef\@tpsepspace{\vfil}} +\DeclareOption{cc}{\gdef\@tptopspace{\null\vfil}\gdef\@tpsepspace{\vskip 3em}} +\ExecuteOptions{cc} +\ProcessOptions + +% Define the sole command introduced by this package. +% Very similar to the definition of \title, etc. +\def\titlepic#1{\gdef\@titlepic{#1}} +\def\@titlepic{\@empty} % default: no picture + +% If a title page was requested from the document class (article/report/book), +% override \maketitle to show our picture. +\if@titlepage +\renewcommand\maketitle{ + \begin{titlepage}% + \let\footnotesize\small + \let\footnoterule\relax + \let \footnote \thanks + \@tptopspace% + \begin{center}% + {\LARGE \@title \par}% + \vskip 3em% + {\large + \lineskip .75em% + \begin{tabular}[t]{c}% + \@author + \end{tabular}\par% + }% + \vskip 1.5em% + {\large \@date \par}% % Set date in \large size. + \end{center}\par + \@tpsepspace% + {\centering\@titlepic\par} + \vfil + \@thanks + \end{titlepage}% + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\@titlepic\@empty + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\and\relax + \global\let\titlepic\relax +} +\fi diff --git a/examples/BasicDemo/BasicExample.cpp b/examples/BasicDemo/BasicExample.cpp new file mode 100644 index 000000000..5e251e6c2 --- /dev/null +++ b/examples/BasicDemo/BasicExample.cpp @@ -0,0 +1,137 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2015 Google Inc. http://bulletphysics.org + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + + + +#include "BasicExample.h" + +#include "btBulletDynamicsCommon.h" +#define ARRAY_SIZE_Y 5 +#define ARRAY_SIZE_X 5 +#define ARRAY_SIZE_Z 5 + +#include "LinearMath/btVector3.h" +#include "LinearMath/btAlignedObjectArray.h" + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +struct BasicExample : public CommonRigidBodyBase +{ + BasicExample(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) + { + } + virtual ~BasicExample(){} + virtual void initPhysics(); + virtual void renderScene(); +}; + +void BasicExample::initPhysics() +{ + m_guiHelper->setUpAxis(1); + + createEmptyDynamicsWorld(); + + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + + if (m_dynamicsWorld->getDebugDrawer()) + m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe+btIDebugDraw::DBG_DrawContactPoints); + + ///create a few basic rigid bodies + btBoxShape* groundShape = createBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(50.))); + m_guiHelper->createCollisionShapeGraphicsObject(groundShape); + + //groundShape->initializePolyhedralFeatures(); +// btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),50); + + m_collisionShapes.push_back(groundShape); + + btTransform groundTransform; + groundTransform.setIdentity(); + groundTransform.setOrigin(btVector3(0,-50,0)); + + { + btScalar mass(0.); + btRigidBody* body = createRigidBody(mass,groundTransform,groundShape, btVector4(0,0,1,1)); + m_guiHelper->createRigidBodyGraphicsObject(body, btVector3(0, 1, 0)); + } + + + { + //create a few dynamic rigidbodies + // Re-using the same collision is better for memory usage and performance + + btBoxShape* colShape = createBoxShape(btVector3(1,1,1)); + m_guiHelper->createCollisionShapeGraphicsObject(colShape); + + //btCollisionShape* colShape = new btSphereShape(btScalar(1.)); + m_collisionShapes.push_back(colShape); + + /// Create Dynamic Objects + btTransform startTransform; + startTransform.setIdentity(); + + btScalar mass(1.f); + + //rigidbody is dynamic if and only if mass is non zero, otherwise static + bool isDynamic = (mass != 0.f); + + btVector3 localInertia(0,0,0); + if (isDynamic) + colShape->calculateLocalInertia(mass,localInertia); + + + for (int k=0;kcreateRigidBodyGraphicsObject(body, btVector3(1, 1, 0)); + + } + } + } + } + + +} + + +void BasicExample::renderScene() +{ + CommonRigidBodyBase::renderScene(); + +} + + + + + +CommonExampleInterface* BasicExampleCreateFunc(PhysicsInterface* pint, GUIHelperInterface* helper, int option) +{ + return new BasicExample(helper); +} + + + diff --git a/Demos3/BasicDemo/Win32BasicDemo.cpp b/examples/BasicDemo/BasicExample.h similarity index 75% rename from Demos3/BasicDemo/Win32BasicDemo.cpp rename to examples/BasicDemo/BasicExample.h index 72f92a15f..831244b9b 100644 --- a/Demos3/BasicDemo/Win32BasicDemo.cpp +++ b/examples/BasicDemo/BasicExample.h @@ -1,7 +1,6 @@ -#ifdef _WINDOWS /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org +Copyright (c) 2015 Google Inc. http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -14,12 +13,10 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -#include "BasicDemo.h" +#ifndef BASIC_EXAMPLE_H +#define BASIC_EXAMPLE_H -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new BasicDemo(); -} +class CommonExampleInterface* BasicExampleCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); -#endif + +#endif //BASIC_DEMO_PHYSICS_SETUP_H diff --git a/examples/BasicDemo/CMakeLists.txt b/examples/BasicDemo/CMakeLists.txt new file mode 100644 index 000000000..8f3b50a5a --- /dev/null +++ b/examples/BasicDemo/CMakeLists.txt @@ -0,0 +1,31 @@ +# App_BasicExample is a minimal sample creating, stepping and deleting a Bullet dynamics world + +INCLUDE_DIRECTORIES( +${BULLET_PHYSICS_SOURCE_DIR}/src +) + +LINK_LIBRARIES( + BulletDynamics BulletCollision LinearMath +) + +IF (WIN32) + ADD_EXECUTABLE(App_BasicExample + BasicExample.cpp + main.cpp + ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc + ) +ELSE() + ADD_EXECUTABLE(App_BasicExample + BasicExample.cpp + main.cpp + ) +ENDIF() + + + + +IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) + SET_TARGET_PROPERTIES(App_BasicExample PROPERTIES DEBUG_POSTFIX "_Debug") + SET_TARGET_PROPERTIES(App_BasicExample PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") + SET_TARGET_PROPERTIES(App_BasicExample PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") +ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/RollingFrictionDemo/main.cpp b/examples/BasicDemo/main.cpp similarity index 64% rename from Demos/RollingFrictionDemo/main.cpp rename to examples/BasicDemo/main.cpp index 561be99df..b829f6773 100644 --- a/Demos/RollingFrictionDemo/main.cpp +++ b/examples/BasicDemo/main.cpp @@ -1,6 +1,6 @@ /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2007 Erwin Coumans http://continuousphysics.com/Bullet/ +Copyright (c) 2015 Google Inc. http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -13,29 +13,31 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -#include "RollingFrictionDemo.h" -#include "GlutStuff.h" -#include "btBulletDynamicsCommon.h" -#include "LinearMath/btHashMap.h" + +#include "BasicExample.h" + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" - -int main(int argc,char** argv) +int main(int argc, char* argv[]) { - - RollingFrictionDemo ccdDemo; - ccdDemo.initPhysics(); - - -#ifdef CHECK_MEMORY_LEAKS - ccdDemo.exitPhysics(); -#else - return glutmain(argc, argv,1024,600,"Bullet Physics Demo. http://bulletphysics.org",&ccdDemo); -#endif + struct PhysicsInterface* pint = 0; - //default glut doesn't return from mainloop + DummyGUIHelper noGfx; + + int option = 0; + + CommonExampleInterface* example = BasicExampleCreateFunc(pint, &noGfx, option); + + example->initPhysics(); + example->stepSimulation(1.f/60.f); + example->exitPhysics(); + + delete example; + return 0; } diff --git a/Demos/Benchmarks/premake4.lua b/examples/BasicDemo/premake4.lua similarity index 88% rename from Demos/Benchmarks/premake4.lua rename to examples/BasicDemo/premake4.lua index 05e5b9c0a..b4901e92b 100644 --- a/Demos/Benchmarks/premake4.lua +++ b/examples/BasicDemo/premake4.lua @@ -1,5 +1,5 @@ -project "AppBenchmarks" +project "App_BasicExample" if _OPTIONS["ios"] then kind "WindowedApp" diff --git a/Demos/Benchmarks/BenchmarkDemo.cpp b/examples/Benchmarks/BenchmarkDemo.cpp similarity index 78% rename from Demos/Benchmarks/BenchmarkDemo.cpp rename to examples/Benchmarks/BenchmarkDemo.cpp index 701b5e1a5..0e33c57d8 100644 --- a/Demos/Benchmarks/BenchmarkDemo.cpp +++ b/examples/Benchmarks/BenchmarkDemo.cpp @@ -19,67 +19,96 @@ subject to the following restrictions: #define COLLISION_RADIUS 0.0f #include "BenchmarkDemo.h" -#ifdef USE_GRAPHICAL_BENCHMARK -#include "GlutStuff.h" -#endif //USE_GRAPHICAL_BENCHMARK + ///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. #include "btBulletDynamicsCommon.h" #include //printf debugging -#include "Taru.mdl" -#include "landscape.mdl" +#include "TaruData.h" +#include "landscapeData.h" #include "BulletCollision/BroadphaseCollision/btDbvtBroadphase.h" -#ifdef USE_PARALLEL_DISPATCHER_BENCHMARK -#include "BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "BulletMultiThreaded/SequentialThreadSupport.h" -#include "BulletMultiThreaded/SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" -#endif #include "BulletCollision/CollisionDispatch/btSimulationIslandManager.h" +#include "LinearMath/btAlignedObjectArray.h" +#include "LinearMath/btTransform.h" -#ifdef USE_PARALLEL_DISPATCHER_BENCHMARK -#ifdef _WIN32 -#include "BulletMultiThreaded/Win32ThreadSupport.h" -#elif defined (USE_PTHREADS) -#include "BulletMultiThreaded/PosixThreadSupport.h" -#endif -#include "BulletMultiThreaded/SpuGatheringCollisionDispatcher.h" -#include "BulletMultiThreaded/btParallelConstraintSolver.h" +class btDynamicsWorld; + +#define NUMRAYS 500 + +class btRigidBody; +class btBroadphaseInterface; +class btCollisionShape; +class btOverlappingPairCache; +class btCollisionDispatcher; +class btConstraintSolver; +struct btCollisionAlgorithmCreateFunc; +class btDefaultCollisionConfiguration; + + +#include "../CommonInterfaces/CommonRigidBodyBase.h" - -btThreadSupportInterface* createSolverThreadSupport(int maxNumThreads) +class BenchmarkDemo : public CommonRigidBodyBase { -//#define SEQUENTIAL -#ifdef SEQUENTIAL - SequentialThreadSupport::SequentialThreadConstructionInfo tci("solverThreads",SolverThreadFunc,SolverlsMemoryFunc); - SequentialThreadSupport* threadSupport = new SequentialThreadSupport(tci); - threadSupport->startSPU(); -#else -#ifdef _WIN32 - Win32ThreadSupport::Win32ThreadConstructionInfo threadConstructionInfo("solverThreads",SolverThreadFunc,SolverlsMemoryFunc,maxNumThreads); - Win32ThreadSupport* threadSupport = new Win32ThreadSupport(threadConstructionInfo); - threadSupport->startSPU(); -#elif defined (USE_PTHREADS) - PosixThreadSupport::ThreadConstructionInfo solverConstructionInfo("solver", SolverThreadFunc, - SolverlsMemoryFunc, maxNumThreads); - - PosixThreadSupport* threadSupport = new PosixThreadSupport(solverConstructionInfo); - -#else - SequentialThreadSupport::SequentialThreadConstructionInfo tci("solverThreads",SolverThreadFunc,SolverlsMemoryFunc); - SequentialThreadSupport* threadSupport = new SequentialThreadSupport(tci); - threadSupport->startSPU(); -#endif - -#endif + //keep the collision shapes, for deletion/cleanup + + btAlignedObjectArray m_ragdolls; + + int m_benchmark; + + void myinit() + { + //?? + } + + void setCameraDistance(btScalar dist) + { + } + void createTest1(); + void createTest2(); + void createTest3(); + void createTest4(); + void createTest5(); + void createTest6(); + void createTest7(); + + void createWall(const btVector3& offsetPosition,int stackSize,const btVector3& boxSize); + void createPyramid(const btVector3& offsetPosition,int stackSize,const btVector3& boxSize); + void createTowerCircle(const btVector3& offsetPosition,int stackSize,int rotSize,const btVector3& boxSize); + void createLargeMeshBody(); + + + class SpuBatchRaycaster* m_batchRaycaster; + class btThreadSupportInterface* m_batchRaycasterThreadSupport; + + void castRays(); + void initRays(); + + public: + + BenchmarkDemo(struct GUIHelperInterface* helper, int benchmark) + :CommonRigidBodyBase(helper), + m_benchmark(benchmark) + { + } + virtual ~BenchmarkDemo() + { + exitPhysics(); + } + void initPhysics(); + + void exitPhysics(); + + void stepSimulation(float deltaTime); + +}; + + - return threadSupport; -} -#endif class btRaycastBar2 { @@ -224,7 +253,7 @@ public: void draw () { -#ifdef USE_GRAPHICAL_BENCHMARK +#if 0 glDisable (GL_LIGHTING); glColor3f (0.0, 1.0, 0.0); glBegin (GL_LINES); @@ -260,24 +289,13 @@ public: static btRaycastBar2 raycastBar; - -void BenchmarkDemo::clientMoveAndDisplay() +void BenchmarkDemo::stepSimulation(float deltaTime) { -#ifdef USE_GRAPHICAL_BENCHMARK - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); -#endif //USE_GRAPHICAL_BENCHMARK - - //simple dynamics world doesn't handle fixed-time-stepping - //float ms = getDeltaTimeMicroseconds(); - - ///step the simulation if (m_dynamicsWorld) { - m_dynamicsWorld->stepSimulation(btScalar(1./60.)); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); + m_dynamicsWorld->stepSimulation(deltaTime); } - + if (m_benchmark==7) { castRays(); @@ -286,40 +304,15 @@ void BenchmarkDemo::clientMoveAndDisplay() } - renderme(); - -#ifdef USE_GRAPHICAL_BENCHMARK - glFlush(); - - swapBuffers(); -#endif //USE_GRAPHICAL_BENCHMARK - } -void BenchmarkDemo::displayCallback(void) -{ - -#ifdef USE_GRAPHICAL_BENCHMARK - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); -#endif //USE_GRAPHICAL_BENCHMARK -} - - void BenchmarkDemo::initPhysics() { + m_guiHelper->setUpAxis(1); setCameraDistance(btScalar(100.)); @@ -333,19 +326,6 @@ void BenchmarkDemo::initPhysics() m_dispatcher->setDispatcherFlags(btCollisionDispatcher::CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION); -#if USE_PARALLEL_DISPATCHER_BENCHMARK - - int maxNumOutstandingTasks = 4; -#ifdef _WIN32 - Win32ThreadSupport* threadSupportCollision = new Win32ThreadSupport(Win32ThreadSupport::Win32ThreadConstructionInfo( "collision",processCollisionTask, createCollisionLocalStoreMemory,maxNumOutstandingTasks)); -#elif defined (USE_PTHREADS) - PosixThreadSupport::ThreadConstructionInfo collisionConstructionInfo( "collision",processCollisionTask, createCollisionLocalStoreMemory,maxNumOutstandingTasks); - PosixThreadSupport* threadSupportCollision = new PosixThreadSupport(collisionConstructionInfo); -#endif - //SequentialThreadSupport::SequentialThreadConstructionInfo sci("spuCD", processCollisionTask, createCollisionLocalStoreMemory); - //SequentialThreadSupport* seq = new SequentialThreadSupport(sci); - m_dispatcher = new SpuGatheringCollisionDispatcher(threadSupportCollision,1,m_collisionConfiguration); -#endif ///the maximum size of the collision world. Make sure objects stay within these boundaries @@ -354,29 +334,20 @@ void BenchmarkDemo::initPhysics() btVector3 worldAabbMax(1000,1000,1000); btHashedOverlappingPairCache* pairCache = new btHashedOverlappingPairCache(); - m_overlappingPairCache = new btAxisSweep3(worldAabbMin,worldAabbMax,3500,pairCache); -// m_overlappingPairCache = new btSimpleBroadphase(); -// m_overlappingPairCache = new btDbvtBroadphase(); + m_broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax,3500,pairCache); +// m_broadphase = new btSimpleBroadphase(); +// m_broadphase = new btDbvtBroadphase(); ///the default constraint solver. For parallel processing you can use a different solver (see Extras/BulletMultiThreaded) -#ifdef USE_PARALLEL_DISPATCHER_BENCHMARK - - btThreadSupportInterface* thread = createSolverThreadSupport(4); - btConstraintSolver* sol = new btParallelConstraintSolver(thread); -#else btSequentialImpulseConstraintSolver* sol = new btSequentialImpulseConstraintSolver; -#endif //USE_PARALLEL_DISPATCHER_BENCHMARK m_solver = sol; btDiscreteDynamicsWorld* dynamicsWorld; - m_dynamicsWorld = dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_solver,m_collisionConfiguration); + m_dynamicsWorld = dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); -#ifdef USE_PARALLEL_DISPATCHER_BENCHMARK - dynamicsWorld->getSimulationIslandManager()->setSplitIslands(false); -#endif //USE_PARALLEL_DISPATCHER_BENCHMARK ///the following 3 lines increase the performance dramatically, with a little bit of loss of quality m_dynamicsWorld->getSolverInfo().m_solverMode |=SOLVER_ENABLE_FRICTION_DIRECTION_CACHING; //don't recalculate friction values each frame @@ -398,7 +369,7 @@ void BenchmarkDemo::initPhysics() groundTransform.setIdentity(); groundTransform.setOrigin(btVector3(0,-50,0)); - //We can also use DemoApplication::localCreateRigidBody, but for clarity it is provided here: + //We can also use DemoApplication::createRigidBody, but for clarity it is provided here: { btScalar mass(0.); @@ -463,8 +434,8 @@ void BenchmarkDemo::initPhysics() } } + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); - clientResetScene(); } @@ -493,7 +464,7 @@ void BenchmarkDemo::createTest1() trans.setOrigin(pos); btRigidBody* cmbody; - cmbody= localCreateRigidBody(mass,trans,blockShape); + cmbody= createRigidBody(mass,trans,blockShape); } } offset -= 0.05f * spacing * (size-1); @@ -530,7 +501,7 @@ void BenchmarkDemo::createWall(const btVector3& offsetPosition,int stackSize,con pos[2] = offset + (float)i * (diffZ * 2.0f); trans.setOrigin(offsetPosition + pos); - localCreateRigidBody(mass,trans,blockShape); + createRigidBody(mass,trans,blockShape); } offset += diffZ; @@ -566,7 +537,7 @@ void BenchmarkDemo::createPyramid(const btVector3& offsetPosition,int stackSize, for(int i=0;ilocalCreateRigidBody(mass,trans,blockShape); + this->createRigidBody(mass,trans,blockShape); } @@ -618,7 +589,7 @@ void BenchmarkDemo::createTowerCircle(const btVector3& offsetPosition,int stackS trans.setOrigin(offsetPosition+ rotate(rotY,btVector3(0.0f , posY, radius))); trans.setRotation(rotY); - localCreateRigidBody(mass,trans,blockShape); + createRigidBody(mass,trans,blockShape); rotY *= btQuaternion(btVector3(0,1,0),SIMD_PI/(rotSize*btScalar(0.5))); } @@ -707,7 +678,7 @@ class RagDoll btRigidBody* m_bodies[BODYPART_COUNT]; btTypedConstraint* m_joints[JOINT_COUNT]; - btRigidBody* localCreateRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape) + btRigidBody* createRigidBody (btScalar mass, const btTransform& startTransform, btCollisionShape* shape) { bool isDynamic = (mass != 0.f); @@ -749,51 +720,51 @@ public: btTransform transform; transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.), btScalar(1.), btScalar(0.))); - m_bodies[BODYPART_PELVIS] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS]); + m_bodies[BODYPART_PELVIS] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_PELVIS]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.), btScalar(1.2), btScalar(0.))); - m_bodies[BODYPART_SPINE] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE]); + m_bodies[BODYPART_SPINE] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_SPINE]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.), btScalar(1.6), btScalar(0.))); - m_bodies[BODYPART_HEAD] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); + m_bodies[BODYPART_HEAD] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_HEAD]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(-0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_LEFT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); + m_bodies[BODYPART_LEFT_UPPER_LEG] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_LEG]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(-0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_LEFT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); + m_bodies[BODYPART_LEFT_LOWER_LEG] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_LEG]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.18), btScalar(0.65), btScalar(0.))); - m_bodies[BODYPART_RIGHT_UPPER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); + m_bodies[BODYPART_RIGHT_UPPER_LEG] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_LEG]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.18), btScalar(0.2), btScalar(0.))); - m_bodies[BODYPART_RIGHT_LOWER_LEG] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); + m_bodies[BODYPART_RIGHT_LOWER_LEG] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_LEG]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(-0.35), btScalar(1.45), btScalar(0.))); transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); + m_bodies[BODYPART_LEFT_UPPER_ARM] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_UPPER_ARM]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(-0.7), btScalar(1.45), btScalar(0.))); transform.getBasis().setEulerZYX(0,0,M_PI_2); - m_bodies[BODYPART_LEFT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); + m_bodies[BODYPART_LEFT_LOWER_ARM] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_LEFT_LOWER_ARM]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.35), btScalar(1.45), btScalar(0.))); transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_UPPER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); + m_bodies[BODYPART_RIGHT_UPPER_ARM] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_UPPER_ARM]); transform.setIdentity(); transform.setOrigin(scale*btVector3(btScalar(0.7), btScalar(1.45), btScalar(0.))); transform.getBasis().setEulerZYX(0,0,-M_PI_2); - m_bodies[BODYPART_RIGHT_LOWER_ARM] = localCreateRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); + m_bodies[BODYPART_RIGHT_LOWER_ARM] = createRigidBody(btScalar(1.), offset*transform, m_shapes[BODYPART_RIGHT_LOWER_ARM]); // Setup some damping on the m_bodies for (int i = 0; i < BODYPART_COUNT; ++i) @@ -987,7 +958,7 @@ void BenchmarkDemo::createTest4() for(int i=0;isetFriction (btScalar(0.9)); } @@ -1137,7 +1108,7 @@ void BenchmarkDemo::createTest5() { float r = 0.5f * (idx+1); btBoxShape* boxShape = new btBoxShape(boxSize*r); - localCreateRigidBody(boxMass*r,trans,boxShape); + createRigidBody(boxMass*r,trans,boxShape); } break; @@ -1145,7 +1116,7 @@ void BenchmarkDemo::createTest5() { float r = 0.5f * (idx-3+1); btSphereShape* sphereShape = new btSphereShape(sphereRadius*r); - localCreateRigidBody(sphereMass*r,trans,sphereShape); + createRigidBody(sphereMass*r,trans,sphereShape); } break; @@ -1153,7 +1124,7 @@ void BenchmarkDemo::createTest5() { float r = 0.5f * (idx-6+1); btCapsuleShape* capsuleShape = new btCapsuleShape(capsuleRadius*r,capsuleHalf*r); - localCreateRigidBody(capsuleMass*r,trans,capsuleShape); + createRigidBody(capsuleMass*r,trans,capsuleShape); } break; } @@ -1209,7 +1180,7 @@ void BenchmarkDemo::createTest6() btVector3 bpos = btVector3(0,25,0) + btVector3(5.0f,1.0f,5.0f)*pos; trans.setOrigin(bpos); - localCreateRigidBody(mass,trans,convexHullShape); + createRigidBody(mass,trans,convexHullShape); } } offset -= 0.05f * spacing * (size-1); @@ -1252,78 +1223,18 @@ void BenchmarkDemo::exitPhysics() RagDoll* doll = m_ragdolls[i]; delete doll; } - m_ragdolls.clear(); + m_ragdolls.clear(); - //cleanup in the reverse order of creation/initialization - if (m_dynamicsWorld) - { - //remove the rigidbodies from the dynamics world and delete them - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - } - - //delete collision shapes - for (int j=0;jgetShapeType() != INVALID_SHAPE_PROXYTYPE)); - - //rigidbody is dynamic if and only if mass is non zero, otherwise static - bool isDynamic = (mass != 0.f); - - btVector3 localInertia(0,0,0); - if (isDynamic) - shape->calculateLocalInertia(mass,localInertia); - - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects - - btRigidBody* body = new btRigidBody(mass,0,shape,localInertia); - body->setWorldTransform(startTransform); - body->setContactProcessingThreshold(m_defaultContactProcessingThreshold); - m_dynamicsWorld->addRigidBody(body); - - return body; -} -#endif //USE_GRAPHICAL_BENCHMARK - + return new BenchmarkDemo(helper,option); +} \ No newline at end of file diff --git a/Demos/DynamicControlDemo/main.cpp b/examples/Benchmarks/BenchmarkDemo.h similarity index 79% rename from Demos/DynamicControlDemo/main.cpp rename to examples/Benchmarks/BenchmarkDemo.h index 188c88d5f..473d783bd 100644 --- a/Demos/DynamicControlDemo/main.cpp +++ b/examples/Benchmarks/BenchmarkDemo.h @@ -12,17 +12,12 @@ subject to the following restrictions: 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#ifndef BENCHMARK_EXAMPLE_H +#define BENCHMARK_EXAMPLE_H + +class CommonExampleInterface* BenchmarkCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); -#include "MotorDemo.h" -#include "GlutStuff.h" -int main(int argc,char* argv[]) -{ - MotorDemo demoApp; +#endif //BENCHMARK_EXAMPLE_H - demoApp.initPhysics(); - - - return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bullet.sf.net",&demoApp); -} diff --git a/Demos/Benchmarks/Taru.mdl b/examples/Benchmarks/TaruData.h similarity index 100% rename from Demos/Benchmarks/Taru.mdl rename to examples/Benchmarks/TaruData.h diff --git a/Demos/Benchmarks/landscape.mdl b/examples/Benchmarks/landscapeData.h similarity index 100% rename from Demos/Benchmarks/landscape.mdl rename to examples/Benchmarks/landscapeData.h diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 000000000..48806f681 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1 @@ +SUBDIRS( ExampleBrowser HelloWorld BasicDemo ThirdPartyLibs/Gwen OpenGLWindow) diff --git a/btgui/Bullet3AppSupport/Common2dCanvasInterface.h b/examples/CommonInterfaces/Common2dCanvasInterface.h similarity index 100% rename from btgui/Bullet3AppSupport/Common2dCanvasInterface.h rename to examples/CommonInterfaces/Common2dCanvasInterface.h diff --git a/examples/CommonInterfaces/CommonCameraInterface.h b/examples/CommonInterfaces/CommonCameraInterface.h new file mode 100644 index 000000000..8f0565986 --- /dev/null +++ b/examples/CommonInterfaces/CommonCameraInterface.h @@ -0,0 +1,36 @@ +#ifndef COMMON_CAMERA_INTERFACE_H +#define COMMON_CAMERA_INTERFACE_H + +struct CommonCameraInterface +{ + virtual void getCameraProjectionMatrix(float m[16])const = 0; + virtual void getCameraViewMatrix(float m[16]) const = 0; + + virtual void getCameraTargetPosition(float pos[3]) const = 0; + virtual void getCameraPosition(float pos[3]) const = 0; + + virtual void getCameraTargetPosition(double pos[3]) const = 0; + virtual void getCameraPosition(double pos[3]) const = 0; + + virtual void setCameraTargetPosition(float x,float y,float z) = 0; + virtual void setCameraDistance(float dist) = 0; + virtual float getCameraDistance() const = 0; + + virtual void setCameraUpVector(float x,float y, float z) = 0; + virtual void getCameraUpVector(float up[3]) const = 0; + ///the setCameraUpAxis will call the 'setCameraUpVector' and 'setCameraForwardVector' + virtual void setCameraUpAxis(int axis) = 0; + virtual int getCameraUpAxis() const = 0; + + virtual void setCameraYaw(float yaw) = 0; + virtual float getCameraYaw() const = 0; + + virtual void setCameraPitch(float pitch) = 0; + virtual float getCameraPitch() const = 0; + + virtual void setAspectRatio(float ratio) = 0; + virtual float getAspectRatio() const = 0; +}; + +#endif //COMMON_CAMERA_INTERFACE_H + diff --git a/examples/CommonInterfaces/CommonExampleInterface.h b/examples/CommonInterfaces/CommonExampleInterface.h new file mode 100644 index 000000000..a9ccda4ba --- /dev/null +++ b/examples/CommonInterfaces/CommonExampleInterface.h @@ -0,0 +1,31 @@ + + +#ifndef COMMON_EXAMPLE_INTERFACE_H +#define COMMON_EXAMPLE_INTERFACE_H + + +class CommonExampleInterface +{ +public: + + typedef class CommonExampleInterface* (CreateFunc)(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + virtual ~CommonExampleInterface() + { + } + + + virtual void initPhysics()=0; + virtual void exitPhysics()=0; + virtual void stepSimulation(float deltaTime)=0; + virtual void renderScene()=0; + virtual void physicsDebugDraw(int debugFlags)=0;//for now we reuse the flags in Bullet/src/LinearMath/btIDebugDraw.h + virtual bool mouseMoveCallback(float x,float y)=0; + virtual bool mouseButtonCallback(int button, int state, float x, float y)=0; + virtual bool keyboardCallback(int key, int state)=0; + +}; + + + +#endif //COMMON_EXAMPLE_INTERFACE_H diff --git a/examples/CommonInterfaces/CommonGUIHelperInterface.h b/examples/CommonInterfaces/CommonGUIHelperInterface.h new file mode 100644 index 000000000..43ada3f59 --- /dev/null +++ b/examples/CommonInterfaces/CommonGUIHelperInterface.h @@ -0,0 +1,112 @@ +#ifndef GUI_HELPER_INTERFACE_H +#define GUI_HELPER_INTERFACE_H + + +class btRigidBody; +class btVector3; +class btCollisionObject; +class btDiscreteDynamicsWorld; +class btCollisionShape; +struct Common2dCanvasInterface; +struct CommonParameterInterface; +struct CommonRenderInterface; +struct CommonGraphicsApp; + +///The Bullet 2 GraphicsPhysicsBridge let's the graphics engine create graphics representation and synchronize +struct GUIHelperInterface +{ + virtual ~GUIHelperInterface() {} + + virtual void createRigidBodyGraphicsObject(btRigidBody* body,const btVector3& color) = 0; + + virtual void createCollisionObjectGraphicsObject(btCollisionObject* obj,const btVector3& color) = 0; + + virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape)=0; + + virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld)=0; + + virtual void render(const btDiscreteDynamicsWorld* rbWorld)=0; + + virtual void createPhysicsDebugDrawer( btDiscreteDynamicsWorld* rbWorld)=0; + + virtual int registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices) =0; + + virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) =0; + + virtual Common2dCanvasInterface* get2dCanvasInterface()=0; + + virtual CommonParameterInterface* getParameterInterface()=0; + + virtual CommonRenderInterface* getRenderInterface()=0; + + virtual CommonGraphicsApp* getAppInterface()=0; + + virtual void setUpAxis(int axis)=0; + + virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) =0; + + virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size)=0; + + +}; + + +///the DummyGUIHelper does nothing, so we can test the examples without GUI/graphics (in 'console mode') +struct DummyGUIHelper : public GUIHelperInterface +{ + DummyGUIHelper() {} + virtual ~DummyGUIHelper() {} + + virtual void createRigidBodyGraphicsObject(btRigidBody* body,const btVector3& color){} + + virtual void createCollisionObjectGraphicsObject(btCollisionObject* obj,const btVector3& color) {} + + virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape){} + + virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld){} + + virtual void render(const btDiscreteDynamicsWorld* rbWorld) {} + + virtual void createPhysicsDebugDrawer( btDiscreteDynamicsWorld* rbWorld){} + + virtual int registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices) { return -1; } + + virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) { return -1;} + + virtual Common2dCanvasInterface* get2dCanvasInterface() + { + return 0; + } + + virtual CommonParameterInterface* getParameterInterface() + { + return 0; + } + + virtual CommonRenderInterface* getRenderInterface() + { + return 0; + } + + virtual CommonGraphicsApp* getAppInterface() + { + return 0; + } + + + virtual void setUpAxis(int axis) + { + } + + virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) + { + } + + virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size) + { + } + +}; + +#endif //GUI_HELPER_INTERFACE_H + diff --git a/examples/CommonInterfaces/CommonGraphicsAppInterface.h b/examples/CommonInterfaces/CommonGraphicsAppInterface.h new file mode 100644 index 000000000..03c69c4ca --- /dev/null +++ b/examples/CommonInterfaces/CommonGraphicsAppInterface.h @@ -0,0 +1,227 @@ +#ifndef COMMON_GRAPHICS_APP_H +#define COMMON_GRAPHICS_APP_H + + + +#include "Bullet3Common/b3Vector3.h" +#include "CommonRenderInterface.h" +#include "CommonWindowInterface.h" +#include "CommonCameraInterface.h" + +struct DrawGridData +{ + int gridSize; + float upOffset; + int upAxis; + float gridColor[4]; + + DrawGridData() + :gridSize(10), + upOffset(0.001f), + upAxis(1) + { + gridColor[0] = 0.6f; + gridColor[1] = 0.6f; + gridColor[2] = 0.6f; + gridColor[3] = 1.f; + } +}; + +struct CommonGraphicsApp +{ + class CommonWindowInterface* m_window; + struct CommonRenderInterface* m_renderer; + struct CommonParameterInterface* m_parameterInterface; + struct Common2dCanvasInterface* m_2dCanvasInterface; + + bool m_leftMouseButton; + bool m_middleMouseButton; + bool m_rightMouseButton; + float m_wheelMultiplier; + float m_mouseMoveMultiplier; + float m_mouseXpos; + float m_mouseYpos; + bool m_mouseInitialized; + + CommonGraphicsApp() + :m_window(0), + m_renderer(0), + m_parameterInterface(0), + m_2dCanvasInterface(0), + m_leftMouseButton(false), + m_middleMouseButton(false), + m_rightMouseButton(false), + m_wheelMultiplier(0.01f), + m_mouseMoveMultiplier(0.4f), + m_mouseXpos(0.f), + m_mouseYpos(0.f), + m_mouseInitialized(false) + { + } + virtual ~CommonGraphicsApp() + { + } + + virtual void drawGrid(DrawGridData data=DrawGridData()) = 0; + virtual void setUpAxis(int axis) = 0; + virtual int getUpAxis() const = 0; + + virtual void swapBuffer() = 0; + virtual void drawText( const char* txt, int posX, int posY) = 0; + virtual void drawText3D( const char* txt, float posX, float posZY, float posZ, float size)=0; + virtual int registerCubeShape(float halfExtentsX,float halfExtentsY, float halfExtentsZ)=0; + virtual int registerGraphicsSphereShape(float radius, bool usePointSprites=true, int largeSphereThreshold=100, int mediumSphereThreshold=10)=0; + virtual void registerGrid(int xres, int yres, float color0[4], float color1[4])=0; + + void defaultMouseButtonCallback( int button, int state, float x, float y) + { + if (button==0) + m_leftMouseButton= (state==1); + if (button==1) + m_middleMouseButton= (state==1); + + if (button==2) + m_rightMouseButton= (state==1); + + m_mouseXpos = x; + m_mouseYpos = y; + m_mouseInitialized = true; + } + void defaultMouseMoveCallback( float x, float y) + { + + if (m_window && m_renderer) + { + CommonCameraInterface* camera = m_renderer->getActiveCamera(); + + bool isAltPressed = m_window->isModifierKeyPressed(B3G_ALT); + bool isControlPressed = m_window->isModifierKeyPressed(B3G_CONTROL); + + + if (isAltPressed || isControlPressed) + { + float xDelta = x-m_mouseXpos; + float yDelta = y-m_mouseYpos; + float cameraDistance = camera->getCameraDistance(); + float pitch = camera->getCameraPitch(); + float yaw = camera->getCameraYaw(); + + float targPos[3]; + float camPos[3]; + + camera->getCameraTargetPosition(targPos); + camera->getCameraPosition(camPos); + + b3Vector3 cameraPosition = b3MakeVector3(b3Scalar(camPos[0]), + b3Scalar(camPos[1]), + b3Scalar(camPos[2])); + + b3Vector3 cameraTargetPosition = b3MakeVector3( b3Scalar(targPos[0]), + b3Scalar(targPos[1]), + b3Scalar(targPos[2])); + b3Vector3 cameraUp = b3MakeVector3(0,0,0); + cameraUp[camera->getCameraUpAxis()] = 1.f; + + if (m_leftMouseButton) + { + // if (b3Fabs(xDelta)>b3Fabs(yDelta)) + // { + pitch -= xDelta*m_mouseMoveMultiplier; + // } else + // { + yaw += yDelta*m_mouseMoveMultiplier; + // } + } + + if (m_middleMouseButton) + { + cameraTargetPosition += cameraUp * yDelta*0.01; + + + b3Vector3 fwd = cameraTargetPosition-cameraPosition; + b3Vector3 side = cameraUp.cross(fwd); + side.normalize(); + cameraTargetPosition += side * xDelta*0.01; + + } + if (m_rightMouseButton) + { + cameraDistance -= xDelta*0.01f; + cameraDistance -= yDelta*0.01f; + if (cameraDistance<1) + cameraDistance=1; + if (cameraDistance>1000) + cameraDistance=1000; + } + camera->setCameraDistance(cameraDistance); + camera->setCameraPitch(pitch); + camera->setCameraYaw(yaw); + camera->setCameraTargetPosition(cameraTargetPosition[0],cameraTargetPosition[1],cameraTargetPosition[2]); + + } + + }//m_window && m_renderer + + m_mouseXpos = x; + m_mouseYpos = y; + m_mouseInitialized = true; + } +// void defaultKeyboardCallback(int key, int state) +// { +// } + void defaultWheelCallback( float deltax, float deltay) + { + + if (m_renderer) + { + b3Vector3 cameraTargetPosition, cameraPosition, cameraUp = b3MakeVector3(0,0,0); + cameraUp[getUpAxis()] = 1; + CommonCameraInterface* camera = m_renderer->getActiveCamera(); + + camera->getCameraPosition(cameraPosition); + camera->getCameraTargetPosition(cameraTargetPosition); + + if (!m_leftMouseButton) + { + + float cameraDistance = camera->getCameraDistance(); + if (deltay<0 || cameraDistance>1) + { + cameraDistance -= deltay*0.1f; + if (cameraDistance<1) + cameraDistance=1; + camera->setCameraDistance(cameraDistance); + + } else + { + + b3Vector3 fwd = cameraTargetPosition-cameraPosition; + fwd.normalize(); + cameraTargetPosition += fwd*deltay*m_wheelMultiplier;//todo: expose it in the GUI? + } + } else + { + if (b3Fabs(deltax)>b3Fabs(deltay)) + { + b3Vector3 fwd = cameraTargetPosition-cameraPosition; + b3Vector3 side = cameraUp.cross(fwd); + side.normalize(); + cameraTargetPosition += side * deltax*m_wheelMultiplier; + + } else + { + cameraTargetPosition -= cameraUp * deltay*m_wheelMultiplier; + + } + } + + camera->setCameraTargetPosition(cameraTargetPosition[0],cameraTargetPosition[1],cameraTargetPosition[2]); + } + + } + + +}; + + +#endif //COMMON_GRAPHICS_APP_H diff --git a/btgui/Bullet3AppSupport/CommonMultiBodySetup.h b/examples/CommonInterfaces/CommonMultiBodyBase.h similarity index 71% rename from btgui/Bullet3AppSupport/CommonMultiBodySetup.h rename to examples/CommonInterfaces/CommonMultiBodyBase.h index 53fc8156e..4fa9537b9 100644 --- a/btgui/Bullet3AppSupport/CommonMultiBodySetup.h +++ b/examples/CommonInterfaces/CommonMultiBodyBase.h @@ -2,15 +2,23 @@ #ifndef COMMON_MULTI_BODY_SETUP_H #define COMMON_MULTI_BODY_SETUP_H -//todo: replace this 'btBulletDynamicsCommon.h' header with specific used header files + #include "btBulletDynamicsCommon.h" -#include "CommonPhysicsSetup.h" + #include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" #include "BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h" #include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" #include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -struct CommonMultiBodySetup : public CommonPhysicsSetup +#include "btBulletDynamicsCommon.h" +#include "CommonExampleInterface.h" +#include "CommonGUIHelperInterface.h" +#include "CommonRenderInterface.h" +#include "CommonGraphicsAppInterface.h" +#include "CommonWindowInterface.h" +#include "CommonCameraInterface.h" + +struct CommonMultiBodyBase : public CommonExampleInterface { //keep the collision shapes, for deletion/cleanup btAlignedObjectArray m_collisionShapes; @@ -30,7 +38,9 @@ struct CommonMultiBodySetup : public CommonPhysicsSetup btScalar m_oldPickingDist; bool m_prevCanSleep; - CommonMultiBodySetup() + struct GUIHelperInterface* m_guiHelper; + + CommonMultiBodyBase(GUIHelperInterface* helper) :m_broadphase(0), m_dispatcher(0), m_solver(0), @@ -39,7 +49,8 @@ struct CommonMultiBodySetup : public CommonPhysicsSetup m_pickedBody(0), m_pickedConstraint(0), m_pickingMultiBodyPoint2Point(0), - m_prevCanSleep(false) + m_prevCanSleep(false), + m_guiHelper(helper) { } @@ -117,15 +128,25 @@ struct CommonMultiBodySetup : public CommonPhysicsSetup delete m_collisionConfiguration; } - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) + virtual void syncPhysicsToGraphics() { if (m_dynamicsWorld) { - gfxBridge.syncPhysicsToGraphics(m_dynamicsWorld); + m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld); } } - virtual void debugDraw(int debugDrawFlags) + virtual void renderScene() + { + m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld); + + if (m_guiHelper->getRenderInterface()) + { + m_guiHelper->getRenderInterface()->renderScene(); + } + } + + virtual void physicsDebugDraw(int debugDrawFlags) { if (m_dynamicsWorld) { @@ -138,6 +159,135 @@ struct CommonMultiBodySetup : public CommonPhysicsSetup } + virtual bool keyboardCallback(int key, int state) + { + return false;//don't handle this key + } + + + btVector3 getRayTo(int x,int y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return btVector3(0,0,0); + } + + float top = 1.f; + float bottom = -1.f; + float nearPlane = 1.f; + float tanFov = (top-bottom)*0.5f / nearPlane; + float fov = btScalar(2.0) * btAtan(tanFov); + + btVector3 camPos,camTarget; + renderer->getActiveCamera()->getCameraPosition(camPos); + renderer->getActiveCamera()->getCameraTargetPosition(camTarget); + + btVector3 rayFrom = camPos; + btVector3 rayForward = (camTarget-camPos); + rayForward.normalize(); + float farPlane = 10000.f; + rayForward*= farPlane; + + btVector3 rightOffset; + btVector3 cameraUp=btVector3(0,0,0); + cameraUp[m_guiHelper->getAppInterface()->getUpAxis()]=1; + + btVector3 vertical = cameraUp; + + btVector3 hor; + hor = rayForward.cross(vertical); + hor.normalize(); + vertical = hor.cross(rayForward); + vertical.normalize(); + + float tanfov = tanf(0.5f*fov); + + + hor *= 2.f * farPlane * tanfov; + vertical *= 2.f * farPlane * tanfov; + + btScalar aspect; + float width = float(renderer->getScreenWidth()); + float height = float (renderer->getScreenHeight()); + + aspect = width / height; + + hor*=aspect; + + + btVector3 rayToCenter = rayFrom + rayForward; + btVector3 dHor = hor * 1.f/width; + btVector3 dVert = vertical * 1.f/height; + + + btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; + rayTo += btScalar(x) * dHor; + rayTo -= btScalar(y) * dVert; + return rayTo; + } + + virtual bool mouseMoveCallback(float x,float y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return false; + } + + btVector3 rayTo = getRayTo(int(x), int(y)); + btVector3 rayFrom; + renderer->getActiveCamera()->getCameraPosition(rayFrom); + movePickedBody(rayFrom,rayTo); + + return false; + } + + virtual bool mouseButtonCallback(int button, int state, float x, float y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return false; + } + + CommonWindowInterface* window = m_guiHelper->getAppInterface()->m_window; + + + if (state==1) + { + if(button==0 && (!window->isModifierKeyPressed(B3G_ALT) && !window->isModifierKeyPressed(B3G_CONTROL) )) + { + btVector3 camPos; + renderer->getActiveCamera()->getCameraPosition(camPos); + + btVector3 rayFrom = camPos; + btVector3 rayTo = getRayTo(int(x),int(y)); + + pickBody(rayFrom, rayTo); + + + } + } else + { + if (button==0) + { + removePickingConstraint(); + //remove p2p + } + } + + //printf("button=%d, state=%d\n",button,state); + return false; + } + + virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) { if (m_dynamicsWorld==0) diff --git a/btgui/Bullet3AppSupport/CommonParameterInterface.h b/examples/CommonInterfaces/CommonParameterInterface.h similarity index 100% rename from btgui/Bullet3AppSupport/CommonParameterInterface.h rename to examples/CommonInterfaces/CommonParameterInterface.h diff --git a/btgui/OpenGLWindow/CommonRenderInterface.h b/examples/CommonInterfaces/CommonRenderInterface.h similarity index 83% rename from btgui/OpenGLWindow/CommonRenderInterface.h rename to examples/CommonInterfaces/CommonRenderInterface.h index a6aa7181c..cc4862905 100644 --- a/btgui/OpenGLWindow/CommonRenderInterface.h +++ b/examples/CommonInterfaces/CommonRenderInterface.h @@ -1,6 +1,8 @@ #ifndef COMMON_RENDER_INTERFACE_H #define COMMON_RENDER_INTERFACE_H +struct CommonCameraInterface; + enum { B3_GL_TRIANGLES = 1, @@ -20,26 +22,18 @@ struct CommonRenderInterface virtual void init()=0; virtual void updateCamera(int upAxis)=0; virtual void removeAllInstances() = 0; - virtual void setCameraDistance(float dist) = 0; - virtual void setCameraPitch(float pitch) = 0; - virtual void setCameraTargetPosition(float x, float y, float z)=0; + + virtual const CommonCameraInterface* getActiveCamera() const =0; + virtual CommonCameraInterface* getActiveCamera()=0; + virtual void setActiveCamera(CommonCameraInterface* cam)=0; - - virtual void getCameraPosition(float cameraPos[4])=0; - virtual void getCameraPosition(double cameraPos[4])=0; - - virtual void setCameraTargetPosition(float cameraPos[4])=0; - virtual void getCameraTargetPosition(float cameraPos[4]) const=0; - virtual void getCameraTargetPosition(double cameraPos[4]) const=0; - - virtual void getCameraViewMatrix(float viewMat[16]) const=0; - virtual void getCameraProjectionMatrix(float projMat[16]) const=0; - virtual void renderScene()=0; virtual int getScreenWidth() = 0; virtual int getScreenHeight() = 0; + virtual void resize(int width, int height) = 0; + virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling)=0; virtual int registerGraphicsInstance(int shapeIndex, const double* position, const double* quaternion, const double* color, const double* scaling)=0; virtual void drawLines(const float* positions, const float color[4], int numPoints, int pointStrideInBytes, const unsigned int* indices, int numIndices, float pointDrawSize)=0; diff --git a/btgui/Bullet3AppSupport/CommonRigidBodySetup.h b/examples/CommonInterfaces/CommonRigidBodyBase.h similarity index 60% rename from btgui/Bullet3AppSupport/CommonRigidBodySetup.h rename to examples/CommonInterfaces/CommonRigidBodyBase.h index 239bd13f3..a76de8f41 100644 --- a/btgui/Bullet3AppSupport/CommonRigidBodySetup.h +++ b/examples/CommonInterfaces/CommonRigidBodyBase.h @@ -1,12 +1,18 @@ -#ifndef COMMON_RIGID_BODY_SETUP_H -#define COMMON_RIGID_BODY_SETUP_H +#ifndef COMMON_RIGID_BODY_BASE_H +#define COMMON_RIGID_BODY_BASE_H + -//todo: replace this 'btBulletDynamicsCommon.h' header with specific used header files #include "btBulletDynamicsCommon.h" -#include "CommonPhysicsSetup.h" +#include "CommonExampleInterface.h" +#include "CommonGUIHelperInterface.h" +#include "CommonRenderInterface.h" +#include "CommonCameraInterface.h" -struct CommonRigidBodySetup : public CommonPhysicsSetup +#include "CommonGraphicsAppInterface.h" +#include "CommonWindowInterface.h" + +struct CommonRigidBodyBase : public CommonExampleInterface { //keep the collision shapes, for deletion/cleanup btAlignedObjectArray m_collisionShapes; @@ -22,17 +28,28 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup btVector3 m_oldPickingPos; btVector3 m_hitPos; btScalar m_oldPickingDist; + struct GUIHelperInterface* m_guiHelper; - CommonRigidBodySetup() + CommonRigidBodyBase(struct GUIHelperInterface* helper) :m_broadphase(0), m_dispatcher(0), m_solver(0), m_collisionConfiguration(0), m_dynamicsWorld(0), m_pickedBody(0), - m_pickedConstraint(0) + m_pickedConstraint(0), + m_guiHelper(helper) { } + virtual ~CommonRigidBodyBase() + { + } + + + btDiscreteDynamicsWorld* getDynamicsWorld() + { + return m_dynamicsWorld; + } virtual void createEmptyDynamicsWorld() { @@ -63,6 +80,14 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup } } + virtual void physicsDebugDraw(int debugFlags) + { + if (m_dynamicsWorld && m_dynamicsWorld->getDebugDrawer()) + { + m_dynamicsWorld->getDebugDrawer()->setDebugMode(debugFlags); + m_dynamicsWorld->debugDrawWorld(); + } + } virtual void exitPhysics() { @@ -100,24 +125,22 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup m_collisionShapes.clear(); delete m_dynamicsWorld; + m_dynamicsWorld=0; delete m_solver; + m_solver=0; delete m_broadphase; + m_broadphase=0; delete m_dispatcher; + m_dispatcher=0; delete m_collisionConfiguration; + m_collisionConfiguration=0; } - virtual void syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) - { - if (m_dynamicsWorld) - { - gfxBridge.syncPhysicsToGraphics(m_dynamicsWorld); - } - } - + virtual void debugDraw(int debugDrawFlags) { if (m_dynamicsWorld) @@ -131,6 +154,162 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup } + virtual bool keyboardCallback(int key, int state) + { + return false;//don't handle this key + } + + + btVector3 getRayTo(int x,int y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return btVector3(0,0,0); + } + + float top = 1.f; + float bottom = -1.f; + float nearPlane = 1.f; + float tanFov = (top-bottom)*0.5f / nearPlane; + float fov = btScalar(2.0) * btAtan(tanFov); + + btVector3 camPos,camTarget; + + renderer->getActiveCamera()->getCameraPosition(camPos); + renderer->getActiveCamera()->getCameraTargetPosition(camTarget); + + btVector3 rayFrom = camPos; + btVector3 rayForward = (camTarget-camPos); + rayForward.normalize(); + float farPlane = 10000.f; + rayForward*= farPlane; + + btVector3 rightOffset; + btVector3 cameraUp=btVector3(0,0,0); + cameraUp[m_guiHelper->getAppInterface()->getUpAxis()]=1; + + btVector3 vertical = cameraUp; + + btVector3 hor; + hor = rayForward.cross(vertical); + hor.normalize(); + vertical = hor.cross(rayForward); + vertical.normalize(); + + float tanfov = tanf(0.5f*fov); + + + hor *= 2.f * farPlane * tanfov; + vertical *= 2.f * farPlane * tanfov; + + btScalar aspect; + float width = float(renderer->getScreenWidth()); + float height = float (renderer->getScreenHeight()); + + aspect = width / height; + + hor*=aspect; + + + btVector3 rayToCenter = rayFrom + rayForward; + btVector3 dHor = hor * 1.f/width; + btVector3 dVert = vertical * 1.f/height; + + + btVector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; + rayTo += btScalar(x) * dHor; + rayTo -= btScalar(y) * dVert; + return rayTo; + } + + virtual bool mouseMoveCallback(float x,float y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return false; + } + + btVector3 rayTo = getRayTo(int(x), int(y)); + btVector3 rayFrom; + renderer->getActiveCamera()->getCameraPosition(rayFrom); + movePickedBody(rayFrom,rayTo); + + return false; + } + + virtual bool mouseButtonCallback(int button, int state, float x, float y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + btAssert(0); + return false; + } + + CommonWindowInterface* window = m_guiHelper->getAppInterface()->m_window; + +#if 0 + if (window->isModifierKeyPressed(B3G_ALT)) + { + printf("ALT pressed\n"); + } else + { + printf("NO ALT pressed\n"); + } + + if (window->isModifierKeyPressed(B3G_SHIFT)) + { + printf("SHIFT pressed\n"); + } else + { + printf("NO SHIFT pressed\n"); + } + + if (window->isModifierKeyPressed(B3G_CONTROL)) + { + printf("CONTROL pressed\n"); + } else + { + printf("NO CONTROL pressed\n"); + } +#endif + + + if (state==1) + { + if(button==0 && (!window->isModifierKeyPressed(B3G_ALT) && !window->isModifierKeyPressed(B3G_CONTROL) )) + { + btVector3 camPos; + renderer->getActiveCamera()->getCameraPosition(camPos); + + btVector3 rayFrom = camPos; + btVector3 rayTo = getRayTo(int(x),int(y)); + + pickBody(rayFrom, rayTo); + + + } + } else + { + if (button==0) + { + removePickingConstraint(); + //remove p2p + } + } + + //printf("button=%d, state=%d\n",button,state); + return false; + } + + virtual bool pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) { if (m_dynamicsWorld==0) @@ -245,6 +424,15 @@ struct CommonRigidBodySetup : public CommonPhysicsSetup m_dynamicsWorld->addRigidBody(body); return body; } + + + + virtual void renderScene() + { + m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld); + + m_guiHelper->render(m_dynamicsWorld); + } }; #endif //COMMON_RIGID_BODY_SETUP_H diff --git a/btgui/OpenGLWindow/b3gWindowInterface.h b/examples/CommonInterfaces/CommonWindowInterface.h similarity index 95% rename from btgui/OpenGLWindow/b3gWindowInterface.h rename to examples/CommonInterfaces/CommonWindowInterface.h index 64f4e6989..f94189c00 100644 --- a/btgui/OpenGLWindow/b3gWindowInterface.h +++ b/examples/CommonInterfaces/CommonWindowInterface.h @@ -67,11 +67,11 @@ struct b3gWindowConstructionInfo }; -class b3gWindowInterface +class CommonWindowInterface { public: - virtual ~b3gWindowInterface() + virtual ~CommonWindowInterface() { } @@ -96,6 +96,7 @@ class b3gWindowInterface virtual void endRendering()=0; + virtual bool isModifierKeyPressed(int key) = 0; virtual void setMouseMoveCallback(b3MouseMoveCallback mouseCallback)=0; virtual b3MouseMoveCallback getMouseMoveCallback()=0; diff --git a/Demos/ConstraintDemo/ConstraintDemo.cpp b/examples/Constraints/ConstraintDemo.cpp similarity index 86% rename from Demos/ConstraintDemo/ConstraintDemo.cpp rename to examples/Constraints/ConstraintDemo.cpp index 765c533f6..14bc2504c 100644 --- a/Demos/ConstraintDemo/ConstraintDemo.cpp +++ b/examples/Constraints/ConstraintDemo.cpp @@ -1,6 +1,6 @@ /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ +Copyright (c) 2003-2015 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -15,21 +15,47 @@ subject to the following restrictions: +#include "ConstraintDemo.h" #include "btBulletDynamicsCommon.h" #include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" - -#include "GLDebugFont.h" #include //printf debugging -#include "ConstraintDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" -#include "GLDebugDrawer.h" -static GLDebugDrawer gDebugDrawer; +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + + + + +///AllConstraintDemo shows how to create a constraint, like Hinge or btGenericD6constraint +class AllConstraintDemo : public CommonRigidBodyBase +{ + //keep track of variables to delete memory at the end + + void setupEmptyDynamicsWorld(); + + + public: + + AllConstraintDemo(struct GUIHelperInterface* helper); + + virtual ~AllConstraintDemo(); + + void initPhysics(); + + void exitPhysics(); + + + + virtual void keyboardCallback(unsigned char key, int x, int y); + + // for cone-twist motor driving + float m_Time; + class btConeTwistConstraint* m_ctc; + +}; @@ -59,53 +85,28 @@ static bool s_bTestConeTwistMotor = false; -void drawLimit() -{ - btVector3 from = sliderTransform*lowerSliderLimit; - btVector3 to = sliderTransform*hiSliderLimit; - btVector3 color(255,0,0); - glBegin(GL_LINES); - glColor3f(color.getX(), color.getY(), color.getZ()); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - if (d6body0) - { - from = d6body0->getWorldTransform().getOrigin(); - to = from + d6body0->getWorldTransform().getBasis() * btVector3(0,0,10); - glVertex3d(from.getX(), from.getY(), from.getZ()); - glVertex3d(to.getX(), to.getY(), to.getZ()); - } - glEnd(); -} -void ConstraintDemo::setupEmptyDynamicsWorld() +void AllConstraintDemo::setupEmptyDynamicsWorld() { m_collisionConfiguration = new btDefaultCollisionConfiguration(); m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - m_overlappingPairCache = new btDbvtBroadphase(); - m_constraintSolver = new btSequentialImpulseConstraintSolver(); - m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_overlappingPairCache,m_constraintSolver,m_collisionConfiguration); + m_broadphase = new btDbvtBroadphase(); + m_solver = new btSequentialImpulseConstraintSolver(); + m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); } -void ConstraintDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} -void ConstraintDemo::initPhysics() -{ - setTexturing(true); - setShadows(true); - setCameraDistance(26.f); +void AllConstraintDemo::initPhysics() +{ + m_guiHelper->setUpAxis(1); + m_Time = 0; setupEmptyDynamicsWorld(); - m_dynamicsWorld->setDebugDrawer(&gDebugDrawer); - + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); //btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(40.),btScalar(50.))); btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),40); @@ -115,7 +116,7 @@ void ConstraintDemo::initPhysics() groundTransform.setIdentity(); groundTransform.setOrigin(btVector3(0,-56,0)); btRigidBody* groundBody; - groundBody= localCreateRigidBody(0, groundTransform, groundShape); + groundBody= createRigidBody(0, groundTransform, groundShape); @@ -203,13 +204,13 @@ void ConstraintDemo::initPhysics() { trans.setIdentity(); trans.setOrigin(btVector3(1,30,-5)); - localCreateRigidBody( mass,trans,shape); + createRigidBody( mass,trans,shape); trans.setOrigin(btVector3(0,0,-5)); - btRigidBody* body0 = localCreateRigidBody( mass,trans,shape); + btRigidBody* body0 = createRigidBody( mass,trans,shape); trans.setOrigin(btVector3(2*CUBE_HALF_EXTENTS,20,0)); mass = 1.f; - // btRigidBody* body1 = 0;//localCreateRigidBody( mass,trans,shape); + // btRigidBody* body1 = 0;//createRigidBody( mass,trans,shape); btVector3 pivotInA(CUBE_HALF_EXTENTS,CUBE_HALF_EXTENTS,0); btTypedConstraint* p2p = new btPoint2PointConstraint(*body0,pivotInA); m_dynamicsWorld->addConstraint(p2p); @@ -223,12 +224,12 @@ void ConstraintDemo::initPhysics() #if ENABLE_ALL_DEMOS //point to point constraint (ball socket) { - btRigidBody* body0 = localCreateRigidBody( mass,trans,shape); + btRigidBody* body0 = createRigidBody( mass,trans,shape); trans.setOrigin(btVector3(2*CUBE_HALF_EXTENTS,20,0)); mass = 1.f; -// btRigidBody* body1 = 0;//localCreateRigidBody( mass,trans,shape); -// btRigidBody* body1 = localCreateRigidBody( 0.0,trans,0); +// btRigidBody* body1 = 0;//createRigidBody( mass,trans,shape); +// btRigidBody* body1 = createRigidBody( 0.0,trans,0); //body1->setActivationState(DISABLE_DEACTIVATION); //body1->setDamping(0.3,0.3); @@ -278,15 +279,15 @@ void ConstraintDemo::initPhysics() frameInA = btTransform::getIdentity(); frameInB = btTransform::getIdentity(); - btRigidBody* pRbA1 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbA1 = localCreateRigidBody(0.f, trans, shape); + btRigidBody* pRbA1 = createRigidBody(mass, trans, shape); +// btRigidBody* pRbA1 = createRigidBody(0.f, trans, shape); pRbA1->setActivationState(DISABLE_DEACTIVATION); // add dynamic rigid body B1 worldPos.setValue(-30,0,30); trans.setOrigin(worldPos); - btRigidBody* pRbB1 = localCreateRigidBody(mass, trans, shape); -// btRigidBody* pRbB1 = localCreateRigidBody(0.f, trans, shape); + btRigidBody* pRbB1 = createRigidBody(mass, trans, shape); +// btRigidBody* pRbB1 = createRigidBody(0.f, trans, shape); pRbB1->setActivationState(DISABLE_DEACTIVATION); // create slider constraint between A1 and B1 and add it to world @@ -322,9 +323,9 @@ void ConstraintDemo::initPhysics() //trans.setBasis(sliderOrientation); sliderTransform = trans; - d6body0 = localCreateRigidBody( mass,trans,shape); + d6body0 = createRigidBody( mass,trans,shape); d6body0->setActivationState(DISABLE_DEACTIVATION); - btRigidBody* fixedBody1 = localCreateRigidBody(0,trans,0); + btRigidBody* fixedBody1 = createRigidBody(0,trans,0); m_dynamicsWorld->addRigidBody(fixedBody1); btTransform frameInA, frameInB; @@ -364,7 +365,7 @@ void ConstraintDemo::initPhysics() btTransform doorTrans; doorTrans.setIdentity(); doorTrans.setOrigin(btVector3(-5.0f, -2.0f, 0.0f)); - btRigidBody* pDoorBody = localCreateRigidBody( 1.0, doorTrans, pDoorShape); + btRigidBody* pDoorBody = createRigidBody( 1.0, doorTrans, pDoorShape); pDoorBody->setActivationState(DISABLE_DEACTIVATION); const btVector3 btPivotA(10.f + 2.1f, -2.0f, 0.0f ); // right next to the door slightly outside btVector3 btAxisA( 0.0f, 1.0f, 0.0f ); // pointing upwards, aka Y-axis @@ -385,7 +386,7 @@ void ConstraintDemo::initPhysics() spDoorHinge->setDbgDrawSize(btScalar(5.f)); //doorTrans.setOrigin(btVector3(-5.0f, 2.0f, 0.0f)); - //btRigidBody* pDropBody = localCreateRigidBody( 10.0, doorTrans, shape); + //btRigidBody* pDropBody = createRigidBody( 10.0, doorTrans, shape); } #endif #if ENABLE_ALL_DEMOS @@ -395,16 +396,16 @@ void ConstraintDemo::initPhysics() tr.setIdentity(); tr.setOrigin(btVector3(btScalar(10.), btScalar(6.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); -// btRigidBody* pBodyA = localCreateRigidBody( mass, tr, shape); - btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, shape); -// btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, 0); +// btRigidBody* pBodyA = createRigidBody( mass, tr, shape); + btRigidBody* pBodyA = createRigidBody( 0.0, tr, shape); +// btRigidBody* pBodyA = createRigidBody( 0.0, tr, 0); pBodyA->setActivationState(DISABLE_DEACTIVATION); tr.setIdentity(); tr.setOrigin(btVector3(btScalar(0.), btScalar(6.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); - btRigidBody* pBodyB = localCreateRigidBody(mass, tr, shape); -// btRigidBody* pBodyB = localCreateRigidBody(0.f, tr, shape); + btRigidBody* pBodyB = createRigidBody(mass, tr, shape); +// btRigidBody* pBodyB = createRigidBody(0.f, tr, shape); pBodyB->setActivationState(DISABLE_DEACTIVATION); btTransform frameInA, frameInB; @@ -461,15 +462,15 @@ void ConstraintDemo::initPhysics() tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-10.), btScalar(5.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); - btRigidBody* pBodyA = localCreateRigidBody( 1.0, tr, shape); -// btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, shape); + btRigidBody* pBodyA = createRigidBody( 1.0, tr, shape); +// btRigidBody* pBodyA = createRigidBody( 0.0, tr, shape); pBodyA->setActivationState(DISABLE_DEACTIVATION); tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-10.), btScalar(-5.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); - btRigidBody* pBodyB = localCreateRigidBody(0.0, tr, shape); -// btRigidBody* pBodyB = localCreateRigidBody(1.0, tr, shape); + btRigidBody* pBodyB = createRigidBody(0.0, tr, shape); +// btRigidBody* pBodyB = createRigidBody(1.0, tr, shape); btTransform frameInA, frameInB; frameInA = btTransform::getIdentity(); @@ -494,7 +495,7 @@ void ConstraintDemo::initPhysics() btTransform tr; tr.setIdentity(); tr.setOrigin(btVector3(btScalar(0.), btScalar(0.), btScalar(0.))); - btRigidBody* pBody = localCreateRigidBody( 1.0, tr, shape); + btRigidBody* pBody = createRigidBody( 1.0, tr, shape); pBody->setActivationState(DISABLE_DEACTIVATION); const btVector3 btPivotA( 10.0f, 0.0f, 0.0f ); btVector3 btAxisA( 0.0f, 0.0f, 1.0f ); @@ -515,12 +516,12 @@ void ConstraintDemo::initPhysics() btTransform tr; tr.setIdentity(); tr.setOrigin(btVector3(btScalar(20.), btScalar(4.), btScalar(0.))); - btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, shape); + btRigidBody* pBodyA = createRigidBody( 0.0, tr, shape); pBodyA->setActivationState(DISABLE_DEACTIVATION); // dynamic bodyB (child) below it : tr.setIdentity(); tr.setOrigin(btVector3(btScalar(20.), btScalar(0.), btScalar(0.))); - btRigidBody* pBodyB = localCreateRigidBody(1.0, tr, shape); + btRigidBody* pBodyB = createRigidBody(1.0, tr, shape); pBodyB->setActivationState(DISABLE_DEACTIVATION); // add some (arbitrary) data to build constraint frames btVector3 parentAxis(1.f, 0.f, 0.f); @@ -544,13 +545,13 @@ void ConstraintDemo::initPhysics() tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-20.), btScalar(16.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); - btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, shape); + btRigidBody* pBodyA = createRigidBody( 0.0, tr, shape); pBodyA->setActivationState(DISABLE_DEACTIVATION); tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-10.), btScalar(16.), btScalar(0.))); tr.getBasis().setEulerZYX(0,0,0); - btRigidBody* pBodyB = localCreateRigidBody(1.0, tr, shape); + btRigidBody* pBodyB = createRigidBody(1.0, tr, shape); pBodyB->setActivationState(DISABLE_DEACTIVATION); btTransform frameInA, frameInB; @@ -586,12 +587,12 @@ void ConstraintDemo::initPhysics() btTransform tr; tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-20.), btScalar(4.), btScalar(0.))); - btRigidBody* pBodyA = localCreateRigidBody( 0.0, tr, shape); + btRigidBody* pBodyA = createRigidBody( 0.0, tr, shape); pBodyA->setActivationState(DISABLE_DEACTIVATION); // dynamic bodyB (child) below it : tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-20.), btScalar(0.), btScalar(0.))); - btRigidBody* pBodyB = localCreateRigidBody(1.0, tr, shape); + btRigidBody* pBodyB = createRigidBody(1.0, tr, shape); pBodyB->setActivationState(DISABLE_DEACTIVATION); // add some data to build constraint frames btVector3 parentAxis(0.f, 1.f, 0.f); @@ -614,12 +615,12 @@ void ConstraintDemo::initPhysics() btTransform tr; tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-20.), btScalar(-2.), btScalar(0.))); - btRigidBody* pBodyA = localCreateRigidBody( 1.0f, tr, shape); + btRigidBody* pBodyA = createRigidBody( 1.0f, tr, shape); pBodyA->setActivationState(DISABLE_DEACTIVATION); // dynamic bodyB: tr.setIdentity(); tr.setOrigin(btVector3(btScalar(-30.), btScalar(-2.), btScalar(0.))); - btRigidBody* pBodyB = localCreateRigidBody(10.0, tr, shape); + btRigidBody* pBodyB = createRigidBody(10.0, tr, shape); pBodyB->setActivationState(DISABLE_DEACTIVATION); // add some data to build constraint frames btVector3 axisA(0.f, 1.f, 0.f); @@ -640,7 +641,7 @@ void ConstraintDemo::initPhysics() btTransform tr; tr.setIdentity(); tr.setOrigin(btVector3(btScalar(10.), btScalar(-15.), btScalar(0.))); - btRigidBody* pBody = localCreateRigidBody( 1.0, tr, shape); + btRigidBody* pBody = createRigidBody( 1.0, tr, shape); pBody->setActivationState(DISABLE_DEACTIVATION); btTransform frameB; frameB.setIdentity(); @@ -659,11 +660,12 @@ void ConstraintDemo::initPhysics() } #endif + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } -void ConstraintDemo::exitPhysics() +void AllConstraintDemo::exitPhysics() { int i; @@ -704,12 +706,15 @@ void ConstraintDemo::exitPhysics() //delete dynamics world delete m_dynamicsWorld; + m_dynamicsWorld=0; //delete solver - delete m_constraintSolver; + delete m_solver; + m_solver=0; //delete broadphase - delete m_overlappingPairCache; + delete m_broadphase; + m_broadphase=0; //delete dispatcher delete m_dispatcher; @@ -718,16 +723,21 @@ void ConstraintDemo::exitPhysics() } -ConstraintDemo::~ConstraintDemo() +AllConstraintDemo::AllConstraintDemo(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) +{ +} + +AllConstraintDemo::~AllConstraintDemo() { //cleanup in the reverse order of creation/initialization - exitPhysics(); + btAssert(m_dynamicsWorld==0); } - -void ConstraintDemo::clientMoveAndDisplay() +#if 0 +void AllConstraintDemo::clientMoveAndDisplay() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); @@ -806,7 +816,7 @@ void ConstraintDemo::clientMoveAndDisplay() -void ConstraintDemo::displayCallback(void) { +void AllConstraintDemo::displayCallback(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); @@ -820,9 +830,9 @@ void ConstraintDemo::displayCallback(void) { glFlush(); swapBuffers(); } +#endif - -void ConstraintDemo::keyboardCallback(unsigned char key, int x, int y) +void AllConstraintDemo::keyboardCallback(unsigned char key, int x, int y) { (void)x; (void)y; @@ -856,8 +866,13 @@ void ConstraintDemo::keyboardCallback(unsigned char key, int x, int y) break; default : { - DemoApplication::keyboardCallback(key, x, y); + } break; } } + +class CommonExampleInterface* AllConstraintCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new AllConstraintDemo(helper); +} \ No newline at end of file diff --git a/Demos/TerrainDemo/TerrainDemo.h b/examples/Constraints/ConstraintDemo.h similarity index 74% rename from Demos/TerrainDemo/TerrainDemo.h rename to examples/Constraints/ConstraintDemo.h index 1b6a3e6ac..6b21d5709 100644 --- a/Demos/TerrainDemo/TerrainDemo.h +++ b/examples/Constraints/ConstraintDemo.h @@ -1,6 +1,6 @@ /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2006,2008 Erwin Coumans http://continuousphysics.com/Bullet/ +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -12,16 +12,11 @@ subject to the following restrictions: 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ -#ifndef TERRAIN_DEMO_H -#define TERRAIN_DEMO_H +#ifndef ALL_CONSTRAINT_DEMO_H +#define ALL_CONSTRAINT_DEMO_H + +class CommonExampleInterface* AllConstraintCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); -#include "GlutDemoApplication.h" - - -// all we need to expose publicly is the factory method! -GlutDemoApplication * btCreateTerrainDemo(void); - - -#endif //TERRAIN_DEMO_H +#endif //ALL_CONSTRAINT_DEMO_H diff --git a/Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp b/examples/Constraints/ConstraintPhysicsSetup.cpp similarity index 73% rename from Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp rename to examples/Constraints/ConstraintPhysicsSetup.cpp index 003ad00ae..f6bf81a88 100644 --- a/Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp +++ b/examples/Constraints/ConstraintPhysicsSetup.cpp @@ -1,6 +1,23 @@ #include "ConstraintPhysicsSetup.h" -ConstraintPhysicsSetup::ConstraintPhysicsSetup() + +#include "../CommonInterfaces/CommonRigidBodyBase.h" +#include "../CommonInterfaces/CommonParameterInterface.h" + + + +struct ConstraintPhysicsSetup : public CommonRigidBodyBase +{ + ConstraintPhysicsSetup(struct GUIHelperInterface* helper); + virtual ~ConstraintPhysicsSetup(); + virtual void initPhysics(); + + virtual void stepSimulation(float deltaTime); + +}; + +ConstraintPhysicsSetup::ConstraintPhysicsSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) { } ConstraintPhysicsSetup::~ConstraintPhysicsSetup() @@ -65,13 +82,13 @@ void ConstraintPhysicsSetup::stepSimulation(float deltaTime) -void ConstraintPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void ConstraintPhysicsSetup::initPhysics() { - gfxBridge.setUpAxis(1); + m_guiHelper->setUpAxis(1); createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); int mode = btIDebugDraw::DBG_DrawWireframe +btIDebugDraw::DBG_DrawConstraints +btIDebugDraw::DBG_DrawConstraintLimits; @@ -82,21 +99,21 @@ void ConstraintPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) SliderParams slider("target vel",&targetVel); slider.m_minVal=-4; slider.m_maxVal=4; - gfxBridge.getParameterInterface()->registerSliderFloatParameter(slider); + m_guiHelper->getParameterInterface()->registerSliderFloatParameter(slider); } { SliderParams slider("max impulse",&maxImpulse); slider.m_minVal=0; slider.m_maxVal=1000; - gfxBridge.getParameterInterface()->registerSliderFloatParameter(slider); + m_guiHelper->getParameterInterface()->registerSliderFloatParameter(slider); } { SliderParams slider("actual vel",&actualHingeVelocity); slider.m_minVal=-4; slider.m_maxVal=4; - gfxBridge.getParameterInterface()->registerSliderFloatParameter(slider); + m_guiHelper->getParameterInterface()->registerSliderFloatParameter(slider); } val=1.f; @@ -104,7 +121,7 @@ void ConstraintPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) SliderParams slider("angle",&val); slider.m_minVal=-720; slider.m_maxVal=720; - gfxBridge.getParameterInterface()->registerSliderFloatParameter(slider); + m_guiHelper->getParameterInterface()->registerSliderFloatParameter(slider); } { // create a door using hinge constraint attached to the world @@ -124,5 +141,10 @@ void ConstraintPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) spDoorHinge->setDbgDrawSize(btScalar(5.f)); } - gfxBridge.autogenerateGraphicsObjects(m_dynamicsWorld); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); +} + +class CommonExampleInterface* ConstraintCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new ConstraintPhysicsSetup(helper); } diff --git a/examples/Constraints/ConstraintPhysicsSetup.h b/examples/Constraints/ConstraintPhysicsSetup.h new file mode 100644 index 000000000..241a2b02f --- /dev/null +++ b/examples/Constraints/ConstraintPhysicsSetup.h @@ -0,0 +1,6 @@ +#ifndef CONSTAINT_PHYSICS_SETUP_H +#define CONSTAINT_PHYSICS_SETUP_H + +class CommonExampleInterface* ConstraintCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //CONSTAINT_PHYSICS_SETUP_H diff --git a/Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.cpp b/examples/Constraints/Dof6Spring2Setup.cpp similarity index 95% rename from Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.cpp rename to examples/Constraints/Dof6Spring2Setup.cpp index 78b8ebeac..1860bd173 100644 --- a/Demos3/bullet2/ConstraintDemo/Dof6Spring2Setup.cpp +++ b/examples/Constraints/Dof6Spring2Setup.cpp @@ -35,6 +35,26 @@ extern float g_additionalBodyMass; #define EXTRAPARAMS ,true #endif +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + + + +struct Dof6Spring2Setup : public CommonRigidBodyBase +{ + struct Dof6Spring2SetupInternalData* m_data; + + Dof6Spring2Setup(struct GUIHelperInterface* helper); + virtual ~Dof6Spring2Setup(); + virtual void initPhysics(); + + virtual void stepSimulation(float deltaTime); + + void animate(); +}; + + + struct Dof6Spring2SetupInternalData { btRigidBody* m_TranslateSpringBody; @@ -60,7 +80,8 @@ struct Dof6Spring2SetupInternalData } }; -Dof6Spring2Setup::Dof6Spring2Setup() +Dof6Spring2Setup::Dof6Spring2Setup(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) { m_data = new Dof6Spring2SetupInternalData; } @@ -69,10 +90,12 @@ Dof6Spring2Setup::~Dof6Spring2Setup() exitPhysics(); delete m_data; } -void Dof6Spring2Setup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void Dof6Spring2Setup::initPhysics() { // Setup the basic world + m_guiHelper->setUpAxis(1); + m_collisionConfiguration = new btDefaultCollisionConfiguration(); m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); btVector3 worldAabbMin(-10000,-10000,-10000); @@ -390,7 +413,7 @@ void Dof6Spring2Setup::initPhysics(GraphicsPhysicsBridge& gfxBridge) m_data->m_ChainRightConstraint->setParam(BT_CONSTRAINT_STOP_CFM,0.0,a); } } - gfxBridge.autogenerateGraphicsObjects(m_dynamicsWorld); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } @@ -451,3 +474,8 @@ void Dof6Spring2Setup::stepSimulation(float deltaTime) animate(); m_dynamicsWorld->stepSimulation(deltaTime); } + +class CommonExampleInterface* Dof6Spring2CreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new Dof6Spring2Setup(helper); +} diff --git a/examples/Constraints/Dof6Spring2Setup.h b/examples/Constraints/Dof6Spring2Setup.h new file mode 100644 index 000000000..8cda64578 --- /dev/null +++ b/examples/Constraints/Dof6Spring2Setup.h @@ -0,0 +1,6 @@ +#ifndef GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H +#define GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H + +class CommonExampleInterface* Dof6Spring2CreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //GENERIC_6DOF_SPRING2_CONSTRAINT_DEMO_H diff --git a/examples/ExampleBrowser/CMakeLists.txt b/examples/ExampleBrowser/CMakeLists.txt new file mode 100644 index 000000000..4cbd0c47d --- /dev/null +++ b/examples/ExampleBrowser/CMakeLists.txt @@ -0,0 +1,171 @@ + + +INCLUDE_DIRECTORIES( + . + ${BULLET_PHYSICS_SOURCE_DIR}/src + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs +) + +FILE(GLOB ExampleBrowser_SRCS "*" "GwenGUISupport/*" ) +FILE(GLOB ExampleBrowser_HDRS "*" "GwenGUISupport/*" ) + + + +SET(App_ExampleBrowser_SRCS + main.cpp + ExampleEntries.cpp + ExampleEntries.h + ../BasicDemo/BasicExample.cpp + ../BasicDemo/BasicExample.h + ../ForkLift/ForkLiftDemo.cpp + ../ForkLift/ForkLiftDemo.h + ../GyroscopicDemo/GyroscopicSetup.cpp + ../GyroscopicDemo/GyroscopicSetup.h + ../Planar2D/Planar2D.cpp + ../Planar2D/Planar2D.h + ../RenderingExamples/CoordinateSystemDemo.cpp + ../RenderingExamples/CoordinateSystemDemo.h + ../RenderingExamples/RaytracerSetup.cpp + ../RenderingExamples/RaytracerSetup.h + ../RenderingExamples/RenderInstancingDemo.cpp + ../RenderingExamples/RenderInstancingDemo.h + ../Benchmarks/BenchmarkDemo.cpp + ../Benchmarks/BenchmarkDemo.h + ../Benchmarks/landscapeData.h + ../Benchmarks/TaruData + ../Raycast/RaytestDemo.cpp + ../Importers/ImportBsp/BspConverter.h + ../Importers/ImportBullet/SerializeSetup.cpp + ../Importers/ImportBullet/SerializeSetup.h + + ../../Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp + ../../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp +../../Extras/Serialize/BulletFileLoader/bChunk.cpp ../../Extras/Serialize/BulletFileLoader/bFile.cpp +../../Extras/Serialize/BulletFileLoader/bDNA.cpp ../../Extras/Serialize/BulletFileLoader/btBulletFile.cpp + + ../Importers/ImportBsp/BspLoader.h + ../Importers/ImportBsp/ImportBspExample.h + ../Importers/ImportColladaDemo/btMatrix4x4.h + ../Importers/ImportColladaDemo/ColladaGraphicsInstance.h + ../Importers/ImportColladaDemo/ImportColladaSetup.h + ../Importers/ImportColladaDemo/LoadMeshFromCollada.h + ../Importers/ImportObjDemo/ImportObjExample.h + ../Importers/ImportObjDemo/LoadMeshFromObj.h + ../Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h + ../Importers/ImportSTLDemo/ImportSTLSetup.h + ../Importers/ImportSTLDemo/LoadMeshFromSTL.h + ../Importers/ImportURDFDemo/ConvertRigidBodies2MultiBody.h + ../Importers/ImportURDFDemo/ImportURDFSetup.h + ../Importers/ImportURDFDemo/URDF2Bullet.h + ../Importers/ImportURDFDemo/urdf_samples.h + ../Importers/ImportBsp/BspConverter.cpp + ../Importers/ImportBsp/BspLoader.cpp + ../Importers/ImportBsp/ImportBspExample.cpp + ../Importers/ImportColladaDemo/ImportColladaSetup.cpp + ../Importers/ImportColladaDemo/LoadMeshFromCollada.cpp + ../Importers/ImportObjDemo/ImportObjExample.cpp + ../Importers/ImportObjDemo/LoadMeshFromObj.cpp + ../Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp + ../Importers/ImportSTLDemo/ImportSTLSetup.cpp + ../Importers/ImportURDFDemo/ImportURDFSetup.cpp + ../Importers/ImportURDFDemo/URDF2Bullet.cpp + ../Importers/ImportURDFDemo/MyMultiBodyCreator.cpp + ../Importers/ImportURDFDemo/MyMultiBodyCreator.h + ../Importers/ImportURDFDemo/MyURDFImporter.cpp + ../Importers/ImportURDFDemo/MyURDFImporter.h + ../VoronoiFracture/VoronoiFractureDemo.cpp + ../VoronoiFracture/VoronoiFractureDemo.h + ../VoronoiFracture/btConvexConvexMprAlgorithm.cpp + ../VoronoiFracture/btConvexConvexMprAlgorithm.h + ../Vehicles/Hinge2Vehicle.cpp + ../Vehicles/Hinge2Vehicle.h + ../MultiBody/TestJointTorqueSetup.cpp + ../MultiBody/TestJointTorqueSetup.h + ../MultiBody/MultiDofDemo.cpp + ../MultiBody/MultiDofDemo.h + ../Constraints/ConstraintDemo.cpp + ../Constraints/ConstraintDemo.h + ../Constraints/Dof6Spring2Setup.cpp + ../Constraints/Dof6Spring2Setup.h + ../Constraints/ConstraintPhysicsSetup.cpp + ../Constraints/ConstraintPhysicsSetup.h + ../Experiments/ImplicitCloth/ImplicitClothExample.cpp + ../Experiments/ImplicitCloth/stan/Cloth.cpp + ../Experiments/ImplicitCloth/stan/SpringNetwork.cpp + ../Experiments/ImplicitCloth/stan/vec3n.cpp + ../Experiments/ImplicitCloth/stan/vecmath.cpp + + + ../ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp + ../ThirdPartyLibs/tinyxml/tinystr.cpp + ../ThirdPartyLibs/tinyxml/tinyxml.cpp + ../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp + ../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp + + + ../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/pose.cpp + ../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/model.cpp + ../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/link.cpp + ../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/joint.cpp + ../ThirdPartyLibs/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h + ../ThirdPartyLibs/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h + ../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h + ../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h + ../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h + ../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h + ../ThirdPartyLibs/tinyxml/tinystr.cpp + ../ThirdPartyLibs/tinyxml/tinyxml.cpp + ../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp + ../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp + ../ThirdPartyLibs/urdf/boost_replacement/lexical_cast.h + ../ThirdPartyLibs/urdf/boost_replacement/shared_ptr.h + ../ThirdPartyLibs/urdf/boost_replacement/printf_console.cpp + ../ThirdPartyLibs/urdf/boost_replacement/printf_console.h + ../ThirdPartyLibs/urdf/boost_replacement/string_split.cpp + ../ThirdPartyLibs/urdf/boost_replacement/string_split.h + ../Utils/b3Clock.cpp + ../Utils/b3Clock.h + ${ExampleBrowser_SRCS} + ${ExampleBrowser_HDRS} + ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc +) + +LINK_LIBRARIES( + Bullet3Common BulletSoftBody BulletDynamics BulletCollision LinearMath OpenGLWindow gwen ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} +) + +IF (WIN32) + SET(App_ExampleBrowser_SRCS ${App_ExampleBrowser_SRCS} ) + INCLUDE_DIRECTORIES( + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew + ) + ADD_DEFINITIONS(-DGLEW_STATIC) +ELSE(WIN32) + IF(APPLE) + find_library(COCOA NAMES Cocoa) + MESSAGE(${COCOA}) + link_libraries(${COCOA}) + ELSE(APPLE) + ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") + ADD_DEFINITIONS("-DGLEW_STATIC") + ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") + INCLUDE_DIRECTORIES( + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew + ) + LINK_LIBRARIES( pthread dl) + ENDIF(APPLE) +ENDIF(WIN32) + + + + +ADD_EXECUTABLE(App_ExampleBrowser + ${App_ExampleBrowser_SRCS} +) + + +IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) + SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES DEBUG_POSTFIX "_Debug") + SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") + SET_TARGET_PROPERTIES(App_ExampleBrowser PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") +ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) diff --git a/examples/ExampleBrowser/EmptyBrowser.h b/examples/ExampleBrowser/EmptyBrowser.h new file mode 100644 index 000000000..240e4d17f --- /dev/null +++ b/examples/ExampleBrowser/EmptyBrowser.h @@ -0,0 +1,38 @@ +#ifndef EMPTY_BROWSER +#define EMPTY_BROWSER + +#include "ExampleBrowserInterface.h" +#include "EmptyExample.h" + +class EmptyBrowser : public ExampleBrowserInterface +{ +public: + + EmptyExample m_emptyExample; + + virtual CommonExampleInterface* getCurrentExample() + { + return &m_emptyExample; + } + + EmptyBrowser(class ExampleEntries* examples) + { + } + + virtual bool init(int /*argc*/, char* argv[]) + { + return true; + } + + virtual void update(float deltaTime) + { + m_emptyExample.stepSimulation(deltaTime); + } + + virtual bool requestedExit() + { + return false; + } +}; + +#endif //EMPTY_BROWSER diff --git a/examples/ExampleBrowser/EmptyExample.h b/examples/ExampleBrowser/EmptyExample.h new file mode 100644 index 000000000..862f97d0f --- /dev/null +++ b/examples/ExampleBrowser/EmptyExample.h @@ -0,0 +1,32 @@ +#ifndef EMPTY_EXAMPLE_H +#define EMPTY_EXAMPLE_H + +#include "../CommonInterfaces/CommonExampleInterface.h" + +class EmptyExample : public CommonExampleInterface +{ +public: + + EmptyExample() {} + virtual ~EmptyExample(){} + + static CommonExampleInterface* CreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) + { + return new EmptyExample; + } + + virtual void initPhysics(){} + virtual void exitPhysics(){} + virtual void stepSimulation(float deltaTime){} + virtual void renderScene(){} + virtual void physicsDebugDraw(int debugFlags){} + virtual bool mouseMoveCallback(float x,float y){ return false;} + virtual bool mouseButtonCallback(int button, int state, float x, float y){return false;} + virtual bool keyboardCallback(int key, int state){return false;} + +}; + + + +#endif //EMPTY_EXAMPLE_H + diff --git a/examples/ExampleBrowser/ExampleBrowserInterface.h b/examples/ExampleBrowser/ExampleBrowserInterface.h new file mode 100644 index 000000000..a3cb5e8d5 --- /dev/null +++ b/examples/ExampleBrowser/ExampleBrowserInterface.h @@ -0,0 +1,23 @@ +#ifndef EXAMPLE_BROWSER_GUI_H +#define EXAMPLE_BROWSER_GUI_H + +#include "../CommonInterfaces/CommonExampleInterface.h" + +class ExampleBrowserInterface +{ + public: + + virtual ~ExampleBrowserInterface() {} + + virtual CommonExampleInterface* getCurrentExample() = 0; + + virtual bool init(int argc, char* argv[])=0; + + virtual void update(float deltaTime)=0; + + virtual bool requestedExit()=0; +}; + + + +#endif //EXAMPLE_BROWSER_GUI_H \ No newline at end of file diff --git a/examples/ExampleBrowser/ExampleEntries.cpp b/examples/ExampleBrowser/ExampleEntries.cpp new file mode 100644 index 000000000..468d002e0 --- /dev/null +++ b/examples/ExampleBrowser/ExampleEntries.cpp @@ -0,0 +1,254 @@ + + +#include "ExampleEntries.h" + +#include "LinearMath/btAlignedObjectArray.h" +#include "EmptyExample.h" +#include "../RenderingExamples/RenderInstancingDemo.h" +#include "../RenderingExamples/CoordinateSystemDemo.h" +#include "../RenderingExamples/RaytracerSetup.h" +#include "../ForkLift/ForkLiftDemo.h" +#include "../BasicDemo/BasicExample.h" +#include "../Planar2D/Planar2D.h" +#include "../Benchmarks/BenchmarkDemo.h" +#include "../Importers/ImportObjDemo/ImportObjExample.h" +#include "../Importers/ImportBsp/ImportBspExample.h" +#include "../Importers/ImportColladaDemo/ImportColladaSetup.h" +#include "../Importers/ImportSTLDemo/ImportSTLSetup.h" +#include "../Importers/ImportURDFDemo/ImportURDFSetup.h" +#include "../GyroscopicDemo/GyroscopicSetup.h" +#include "../Constraints/Dof6Spring2Setup.h" +#include "../Constraints/ConstraintPhysicsSetup.h" +#include "../MultiBody/TestJointTorqueSetup.h" +#include "../MultiBody/MultiDofDemo.h" +#include "../VoronoiFracture/VoronoiFractureDemo.h" +#include "../SoftDemo/SoftDemo.h" +#include "../Constraints/ConstraintDemo.h" +#include "../Vehicles/Hinge2Vehicle.h" +#include "../Experiments/ImplicitCloth/ImplicitClothExample.h" +#include "../Importers/ImportBullet/SerializeSetup.h" +#include "../Raycast/RaytestDemo.h" +#include "../OpenCL/broadphase/PairBench.h" + + +struct ExampleEntry +{ + int m_menuLevel; + const char* m_name; + const char* m_description; + CommonExampleInterface::CreateFunc* m_createFunc; + int m_option; + + ExampleEntry(int menuLevel, const char* name) + :m_menuLevel(menuLevel), m_name(name), m_description(0), m_createFunc(0), m_option(0) + { + } + + ExampleEntry(int menuLevel, const char* name,const char* description, CommonExampleInterface::CreateFunc* createFunc, int option=0) + :m_menuLevel(menuLevel), m_name(name), m_description(description), m_createFunc(createFunc), m_option(option) + { + } +}; + + +static ExampleEntry gDefaultExamples[]= +{ + + + ExampleEntry(0,"API"), + ExampleEntry(1,"Basic Example","Create some rigid bodies using box collision shapes. This is a good example to familiarize with the basic initialization of Bullet. The Basic Example can also be compiled without graphical user interface, as a console application.", BasicExampleCreateFunc), + + ExampleEntry(1,"Gyroscopic", "Show the Dzhanibekov effect using various settings of the gyroscopic term. You can select the gyroscopic term computation using btRigidBody::setFlags, with arguments BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT (using explicit integration, which adds energy and can lead to explosions), BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD, BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY. If you don't set any of these flags, there is no gyroscopic term used.", GyroscopicCreateFunc), + + ExampleEntry(1,"Planar 2D","Show the use of 2D collision shapes and rigid body simulation. The collision shape is wrapped into a btConvex2dShape. The rigid bodies are restricted in a plane using the 'setAngularFactor' and 'setLinearFactor' API call.",Planar2DCreateFunc), + ExampleEntry(1,"Constraints","Use of a btHingeConstraint. You can adjust the first slider to change the target velocity, and the second slider to adjust the maximum impulse applied to reach the target velocity. Note that the hinge angle can reach beyond -360 and 360 degrees.", ConstraintCreateFunc), + ExampleEntry(1,"6DofSpring2","Show the use of the btGeneric6DofSpring2Constraint.", + Dof6Spring2CreateFunc), + + ExampleEntry(1,"Constraints","Show the use of the various constraints in Bullet.", + AllConstraintCreateFunc), + + + ExampleEntry(0,"MultiBody"), + ExampleEntry(1,"MultiDofCreateFunc","Create a basic btMultiBody with 3-DOF spherical joints (mobilizers). The demo uses a fixed base or a floating base at restart.", MultiDofCreateFunc), + ExampleEntry(1,"TestJointTorque","Apply a torque to a btMultiBody with 1-DOF joints (mobilizers).", TestJointTorqueCreateFunc), + + +#ifdef INCLUDE_CLOTH_DEMOS + ExampleEntry(0,"Soft Body"), + ExampleEntry(1,"Cloth","Simulate a patch of cloth.", SoftDemoCreateFunc,0), + + ExampleEntry(1,"Pressure","Simulate 3d soft body using a pressure constraint.",SoftDemoCreateFunc,1), + ExampleEntry(1,"Volume","Simulate 3d soft body using a volume constraint.",SoftDemoCreateFunc,2), + ExampleEntry(1,"Ropes","Simulate ropes", SoftDemoCreateFunc,3), + ExampleEntry(1,"Rope Attach","Simulate a rigid body connected to a rope.", SoftDemoCreateFunc,4), + ExampleEntry(1,"Cloth Attach","A rigid body attached to a cloth.", SoftDemoCreateFunc,5), + ExampleEntry(1,"Sticks","Show simulation of ropes fixed to the ground.", SoftDemoCreateFunc,6), + ExampleEntry(1,"Capsule Collision","Collision detection between a capsule shape and cloth.", SoftDemoCreateFunc,7), + + ExampleEntry(1,"Collide","Soft body collision", SoftDemoCreateFunc,8), + ExampleEntry(1,"Collide 2","Soft body collision",SoftDemoCreateFunc,9), + ExampleEntry(1,"Collide 3","Soft body collision",SoftDemoCreateFunc,10), + ExampleEntry(1,"Impact","Soft body impact",SoftDemoCreateFunc,11), + ExampleEntry(1,"Aero","Rudimentary aero dynamics simulation", SoftDemoCreateFunc,12), + ExampleEntry(1,"Aero 2","Rudimentary aero dynamics simulation",SoftDemoCreateFunc,13), + ExampleEntry(1,"Friction","Simulate soft body friction with friction coefficients ranging from 0 to 1.", SoftDemoCreateFunc,14), + ExampleEntry(1,"Torus","Simulate a soft body torus.",SoftDemoCreateFunc,15), + ExampleEntry(1,"Torus (Shape Match)","Simulate a soft body torus using shape matching.", SoftDemoCreateFunc,16), + ExampleEntry(1,"Bunny","Simulate the Stanford bunny as deformable object.", SoftDemoCreateFunc,17), + ExampleEntry(1,"Bunny (Shape Match)","Simulate the Stanford bunny as deformable object including shape matching.", SoftDemoCreateFunc,18), + ExampleEntry(1,"Cutting","Allow cutting of the soft body, by clicking on the cloth", SoftDemoCreateFunc,19), + ExampleEntry(1,"Cluster Deform","Soft body collision detection using convex collision clusters.", SoftDemoCreateFunc,20), + ExampleEntry(1,"Cluster Collide1","Collision detection between soft bodies using convex collision clusters.", SoftDemoCreateFunc,21), + ExampleEntry(1,"Cluster Collide2","Collision detection between soft bodies using convex collision clusters.",SoftDemoCreateFunc,22), + ExampleEntry(1,"Cluster Socket","Soft bodies connected by a point to point (ball-socket) constraints. This requires collision clusters, in order to define a frame of reference for the constraint." + , SoftDemoCreateFunc,23), + ExampleEntry(1,"Cluster Hinge","Soft bodies connected by a hinge constraints. This requires collision clusters, in order to define a frame of reference for the constraint.", SoftDemoCreateFunc,24), + ExampleEntry(1,"Cluster Combine","Simulate soft bodies using collision clusters.", SoftDemoCreateFunc,25), + ExampleEntry(1,"Cluster Car","Simulate the Stanford bunny by multiple soft bodies connected by constraints.", SoftDemoCreateFunc,26), + ExampleEntry(1,"Cluster Robot","A rigid body base connected by soft body wheels, connected by constraints.", SoftDemoCreateFunc,27), + ExampleEntry(1,"Cluster Stack Soft","Stacking of soft bodies.", SoftDemoCreateFunc,28), + ExampleEntry(1,"Cluster Stack Mixed","Stacking of soft bodies and rigid bodies.",SoftDemoCreateFunc,29), + ExampleEntry(1,"Tetra Cube","Simulate a volumetric soft body cube defined by tetrahedra.", SoftDemoCreateFunc,30), + ExampleEntry(1,"Tetra Bunny","Simulate a volumetric soft body Stanford bunny defined by tetrahedra.", SoftDemoCreateFunc,31), + +#endif //INCLUDE_CLOTH_DEMOS + + ///we disable the benchmarks in debug mode, they are way too slow and benchmarking in debug mode is not recommended +#ifndef _DEBUG + ExampleEntry(0,"Benchmarks"), + ExampleEntry(1,"3000 boxes", "Benchmark a stack of 3000 boxes. It will stress the collision detection, a specialized box-box implementation based on the separating axis test, and the constraint solver. ", BenchmarkCreateFunc, 1), + ExampleEntry(1,"1000 stack", "Benchmark a stack of 3000 boxes. It will stress the collision detection, a specialized box-box implementation based on the separating axis test, and the constraint solver. ", + BenchmarkCreateFunc, 2), + ExampleEntry(1,"Ragdolls", "Benchmark the performance of the ragdoll constraints, btHingeConstraint and btConeTwistConstraint, in addition to capsule collision detection.", BenchmarkCreateFunc, 3), + ExampleEntry(1,"Convex stack", "Benchmark the performance and stability of rigid bodies using btConvexHullShape.", BenchmarkCreateFunc, 4), + ExampleEntry(1,"Prim vs Mesh", "Benchmark the performance and stability of rigid bodies using primitive collision shapes (btSphereShape, btBoxShape), resting on a triangle mesh, btBvhTriangleMeshShape.", BenchmarkCreateFunc, 5), + ExampleEntry(1,"Convex vs Mesh", "Benchmark the performance and stability of rigid bodies using convex hull collision shapes (btConvexHullShape), resting on a triangle mesh, btBvhTriangleMeshShape.", BenchmarkCreateFunc, 6), + ExampleEntry(1,"Raycast", "Benchmark the performance of the btCollisionWorld::rayTest. Note that currently the rays are not rendered.", BenchmarkCreateFunc, 7), +#endif + + + + + ExampleEntry(0,"Importers"), + ExampleEntry(1,"Import .bullet", "Load a binary .bullet file. The serialization mechanism can deal with versioning, differences in endianess, 32 and 64bit, double/single precision. It is easy to save a .bullet file, see the examples/Importers/ImportBullet/SerializeDemo.cpp for a code example how to export a .bullet file.", SerializeBulletCreateFunc), + + ExampleEntry(1,"Wavefront Obj", "Import a Wavefront .obj file", ImportObjCreateFunc, 0), + + ExampleEntry(1,"Quake BSP", "Import a Quake .bsp file", ImportBspCreateFunc, 0), + ExampleEntry(1,"COLLADA dae", "Import the geometric mesh data from a COLLADA file. This is used as part of the URDF importer. This loader can also be used to import collision geometry in general. ", + ImportColladaCreateFunc, 0), + ExampleEntry(1,"STL", "Import the geometric mesh data from a STL file. This is used as part of the URDF importer. This loader can also be used to import collision geometry in general. ",ImportSTLCreateFunc, 0), + ExampleEntry(1,"URDF (RigidBody)", "Import a URDF file, and create rigid bodies (btRigidBody) connected by constraints.", ImportURDFCreateFunc, 0), + ExampleEntry(1,"URDF (MultiBody)", "Import a URDF file and create a single multibody (btMultiBody) with tree hierarchy of links (mobilizers).", + ImportURDFCreateFunc, 1), + + ExampleEntry(0,"Vehicles"), + ExampleEntry(1,"Hinge2 Vehicle", "A rigid body chassis with 4 rigid body wheels attached by a btHinge2Constraint",Hinge2VehicleCreateFunc), + ExampleEntry(1,"ForkLift","Simulate a fork lift vehicle with a working fork lift that can be moved using the cursor keys. The wheels collision is simplified using ray tests." + "There are currently some issues with the wheel rendering, the wheels rotate when picking up the object." + "The demo implementation allows to choose various MLCP constraint solvers.", + ForkLiftCreateFunc), + + ExampleEntry(0,"Raycast"), + ExampleEntry(1,"Raytest", "Cast rays using the btCollisionWorld::rayTest method. The example shows how to receive the hit position and normal along the ray against the first object. Also it shows how to receive all the hits along a ray.", RaytestCreateFunc), + ExampleEntry(1,"Raytracer","Implement an extremely simple ray tracer using the ray trace functionality in btCollisionWorld.", + RayTracerCreateFunc), + + + ExampleEntry(0,"Experiments"), + + ExampleEntry(1,"Voronoi Fracture", "Automatically create a compound rigid body using voronoi tesselation. Individual parts are modeled as rigid bodies using a btConvexHullShape.", + VoronoiFractureCreateFunc), + + ExampleEntry(1,"Implicit Cloth", "Cloth simulation using implicit integration, by Stan Melax. The cloth is only attached at the corners. Note the stability using a large time step even with high stiffness.", + ImplicitClothCreateFunc), + +#ifdef B3_USE_CLEW + ExampleEntry(0,"OpenCL (experimental)"), + ExampleEntry(1,"Pair Bench", "Benchmark of overlapping pair search using OpenCL.", PairBenchOpenCLCreateFunc), +#endif // + ExampleEntry(0,"Rendering"), + ExampleEntry(1,"Instanced Rendering", "Simple example of fast instanced rendering, only active when using OpenGL3+.",RenderInstancingCreateFunc), + ExampleEntry(1,"CoordinateSystemDemo","Show the axis and positive rotation direction around the axis.", CoordinateSystemCreateFunc), + +}; + + +static btAlignedObjectArray gAdditionalRegisteredExamples; + + +struct ExampleEntriesInternalData +{ + btAlignedObjectArray m_allExamples; +}; + +ExampleEntries::ExampleEntries() +{ + m_data = new ExampleEntriesInternalData; +} + +ExampleEntries::~ExampleEntries() +{ + delete m_data; +} + +void ExampleEntries::initExampleEntries() +{ + m_data->m_allExamples.clear(); + + + + + int numDefaultEntries = sizeof(gDefaultExamples)/sizeof(ExampleEntry); + for (int i=0;im_allExamples.push_back(gDefaultExamples[i]); + } + + if (m_data->m_allExamples.size()==0) + { + + { + ExampleEntry e(0,"Empty"); + m_data->m_allExamples.push_back(e); + } + + { + ExampleEntry e(1,"Empty","Empty Description", EmptyExample::CreateFunc); + m_data->m_allExamples.push_back(e); + } + } + +} + +void ExampleEntries::registerExampleEntry(int menuLevel, const char* name,const char* description, CommonExampleInterface::CreateFunc* createFunc, int option) +{ + ExampleEntry e( menuLevel,name,description, createFunc, option); + gAdditionalRegisteredExamples.push_back(e); +} + +int ExampleEntries::getNumRegisteredExamples() +{ + return m_data->m_allExamples.size(); +} + +CommonExampleInterface::CreateFunc* ExampleEntries::getExampleCreateFunc(int index) +{ + return m_data->m_allExamples[index].m_createFunc; +} + +int ExampleEntries::getExampleOption(int index) +{ + return m_data->m_allExamples[index].m_option; +} + +const char* ExampleEntries::getExampleName(int index) +{ + return m_data->m_allExamples[index].m_name; +} + +const char* ExampleEntries::getExampleDescription(int index) +{ + return m_data->m_allExamples[index].m_description; +} diff --git a/examples/ExampleBrowser/ExampleEntries.h b/examples/ExampleBrowser/ExampleEntries.h new file mode 100644 index 000000000..1e6c56e42 --- /dev/null +++ b/examples/ExampleBrowser/ExampleEntries.h @@ -0,0 +1,38 @@ + +#ifndef EXAMPLE_ENTRIES_H +#define EXAMPLE_ENTRIES_H + +#include "../CommonInterfaces/CommonExampleInterface.h" + + + + +class ExampleEntries +{ + + struct ExampleEntriesInternalData* m_data; + +public: + + ExampleEntries(); + virtual ~ExampleEntries(); + + static void registerExampleEntry(int menuLevel, const char* name,const char* description, CommonExampleInterface::CreateFunc* createFunc, int option=0); + + void initExampleEntries(); + + int getNumRegisteredExamples(); + + CommonExampleInterface::CreateFunc* getExampleCreateFunc(int index); + + const char* getExampleName(int index); + + const char* getExampleDescription(int index); + + int getExampleOption(int index); + +}; + + + +#endif //EXAMPLE_ENTRIES_H diff --git a/Demos/OpenGL/GL_ShapeDrawer.cpp b/examples/ExampleBrowser/GL_ShapeDrawer.cpp similarity index 80% rename from Demos/OpenGL/GL_ShapeDrawer.cpp rename to examples/ExampleBrowser/GL_ShapeDrawer.cpp index a471db017..ddf68f39a 100644 --- a/Demos/OpenGL/GL_ShapeDrawer.cpp +++ b/examples/ExampleBrowser/GL_ShapeDrawer.cpp @@ -16,11 +16,10 @@ subject to the following restrictions: #ifdef _WIN32 //needed for glut.h #include #endif -#include "GLDebugFont.h" + +#include "../OpenGLWindow/OpenGL2Include.h" - -#include "GlutStuff.h" #include "GL_ShapeDrawer.h" #include "BulletCollision/CollisionShapes/btPolyhedralConvexShape.h" #include "BulletCollision/CollisionShapes/btTriangleMeshShape.h" @@ -36,6 +35,9 @@ subject to the following restrictions: #include "BulletCollision/CollisionShapes/btStaticPlaneShape.h" #include "BulletCollision/CollisionShapes/btMultiSphereShape.h" #include "BulletCollision/CollisionShapes/btConvexPolyhedron.h" +#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h" +#include "BulletDynamics/Dynamics/btRigidBody.h" +#include "LinearMath/btDefaultMotionState.h" /// #include "BulletCollision/CollisionShapes/btShapeHull.h" @@ -48,137 +50,17 @@ subject to the following restrictions: #include //printf debugging -//#define USE_DISPLAY_LISTS 1 -#ifdef USE_DISPLAY_LISTS - -#include - -using namespace std; - -//Set for storing Display list per trimesh -struct TRIMESH_KEY -{ - btCollisionShape* m_shape; - GLuint m_dlist;//OpenGL display list -}; - -typedef map TRIMESH_KEY_MAP; - -typedef pair TRIMESH_KEY_PAIR; - -TRIMESH_KEY_MAP g_display_lists; - -class GlDisplaylistDrawcallback : public btTriangleCallback -{ -public: - - virtual void processTriangle(btVector3* triangle,int partId, int triangleIndex) - { - - btVector3 diff1 = triangle[1] - triangle[0]; - btVector3 diff2 = triangle[2] - triangle[0]; - btVector3 normal = diff1.cross(diff2); - - normal.normalize(); - - glBegin(GL_TRIANGLES); - glColor3f(1, 1, 1); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[0].getX(), triangle[0].getY(), triangle[0].getZ()); - - //glColor3f(0, 1, 0); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[1].getX(), triangle[1].getY(), triangle[1].getZ()); - - //glColor3f(0, 1, 0); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[2].getX(), triangle[2].getY(), triangle[2].getZ()); - glEnd(); - - /*glBegin(GL_LINES); - glColor3f(1, 1, 0); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[0].getX(), triangle[0].getY(), triangle[0].getZ()); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[1].getX(), triangle[1].getY(), triangle[1].getZ()); - glColor3f(1, 1, 0); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[2].getX(), triangle[2].getY(), triangle[2].getZ()); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[1].getX(), triangle[1].getY(), triangle[1].getZ()); - glColor3f(1, 1, 0); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[2].getX(), triangle[2].getY(), triangle[2].getZ()); - glNormal3d(normal.getX(),normal.getY(),normal.getZ()); - glVertex3d(triangle[0].getX(), triangle[0].getY(), triangle[0].getZ()); - glEnd();*/ - - - } -}; - -GLuint OGL_get_displaylist_for_shape(btCollisionShape * shape) -{ - TRIMESH_KEY_MAP::iterator map_iter; - - unsigned long key = (unsigned long)shape; - map_iter = g_display_lists.find(key); - if(map_iter!=g_display_lists.end()) - { - return map_iter->second.m_dlist; - } - - return 0; -} - -void OGL_displaylist_clean() -{ - TRIMESH_KEY_MAP::iterator map_iter,map_itend; - - map_iter = g_display_lists.begin(); - - while(map_iter!=map_itend) - { - glDeleteLists(map_iter->second.m_dlist,1); - map_iter++; - } - - g_display_lists.clear(); -} - - -void OGL_displaylist_register_shape(btCollisionShape * shape) -{ - btVector3 aabbMax(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); - btVector3 aabbMin(-btScalar(BT_LARGE_FLOAT),-btScalar(BT_LARGE_FLOAT),-btScalar(BT_LARGE_FLOAT)); - GlDisplaylistDrawcallback drawCallback; - TRIMESH_KEY dlist; - - dlist.m_dlist = glGenLists(1); - dlist.m_shape = shape; - - unsigned long key = (unsigned long)shape; - - g_display_lists.insert(TRIMESH_KEY_PAIR(key,dlist)); - - glNewList(dlist.m_dlist,GL_COMPILE); - -// glEnable(GL_CULL_FACE); - - glCullFace(GL_BACK); - - if (shape->isConcave()) - { - btConcaveShape* concaveMesh = (btConcaveShape*) shape; - //todo pass camera, for some culling - concaveMesh->processAllTriangles(&drawCallback,aabbMin,aabbMax); - } - -// glDisable(GL_CULL_FACE); - - glEndList(); -} -#endif //USE_DISPLAY_LISTS +#if defined(BT_USE_DOUBLE_PRECISION) +#define btglLoadMatrix glLoadMatrixd +#define btglMultMatrix glMultMatrixd +#define btglColor3 glColor3d +#define btglVertex3 glVertex3d +#else +#define btglLoadMatrix glLoadMatrixf +#define btglMultMatrix glMultMatrixf +#define btglColor3 glColor3f +#define btglVertex3 glVertex3d +#endif void GL_ShapeDrawer::drawCoordSystem() { glBegin(GL_LINES); @@ -790,34 +672,7 @@ void GL_ShapeDrawer::drawOpenGL(btScalar* m, const btCollisionShape* shape, cons } -#ifdef USE_DISPLAY_LISTS - if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE||shape->getShapeType() == GIMPACT_SHAPE_PROXYTYPE) - { - GLuint dlist = OGL_get_displaylist_for_shape((btCollisionShape * )shape); - if (dlist) - { - glCallList(dlist); - } - else - { -#else - if (shape->isConcave() && !shape->isInfinite()) - { - btConcaveShape* concaveMesh = (btConcaveShape*) shape; - - GlDrawcallback drawCallback; - drawCallback.m_wireframe = (debugMode & btIDebugDraw::DBG_DrawWireframe)!=0; - - concaveMesh->processAllTriangles(&drawCallback,worldBoundsMin,worldBoundsMax); - - } -#endif - -#ifdef USE_DISPLAY_LISTS - } -} -#endif @@ -926,4 +781,162 @@ GL_ShapeDrawer::~GL_ShapeDrawer() } } +void GL_ShapeDrawer::drawSceneInternal(const btDiscreteDynamicsWorld* dynamicsWorld, int pass) +{ + btAssert(dynamicsWorld); + + + btScalar m[16]; + btMatrix3x3 rot;rot.setIdentity(); + const int numObjects=dynamicsWorld->getNumCollisionObjects(); + btVector3 wireColor(1,0,0); + //glDisable(GL_CULL_FACE); + + for(int i=0;igetCollisionObjectArray()[i]; + const btRigidBody* body=btRigidBody::upcast(colObj); + if(body&&body->getMotionState()) + { + btDefaultMotionState* myMotionState = (btDefaultMotionState*)body->getMotionState(); + myMotionState->m_graphicsWorldTrans.getOpenGLMatrix(m); + rot=myMotionState->m_graphicsWorldTrans.getBasis(); + } + else + { + colObj->getWorldTransform().getOpenGLMatrix(m); + rot=colObj->getWorldTransform().getBasis(); + } + btVector3 wireColor(1.f,1.0f,0.5f); //wants deactivation + if(i&1) wireColor=btVector3(0.f,0.0f,1.f); + ///color differently for active, sleeping, wantsdeactivation states + if (colObj->getActivationState() == 1) //active + { + if (i & 1) + { + wireColor += btVector3 (1.f,0.f,0.f); + } + else + { + wireColor += btVector3 (.5f,0.f,0.f); + } + } + if(colObj->getActivationState()==2) //ISLAND_SLEEPING + { + if(i&1) + { + wireColor += btVector3 (0.f,1.f, 0.f); + } + else + { + wireColor += btVector3 (0.f,0.5f,0.f); + } + } + + btVector3 aabbMin(0,0,0),aabbMax(0,0,0); + //m_dynamicsWorld->getBroadphase()->getBroadphaseAabb(aabbMin,aabbMax); + + aabbMin-=btVector3(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); + aabbMax+=btVector3(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT); + // printf("aabbMin=(%f,%f,%f)\n",aabbMin.getX(),aabbMin.getY(),aabbMin.getZ()); + // printf("aabbMax=(%f,%f,%f)\n",aabbMax.getX(),aabbMax.getY(),aabbMax.getZ()); + // m_dynamicsWorld->getDebugDrawer()->drawAabb(aabbMin,aabbMax,btVector3(1,1,1)); + + //switch(pass) + + //if (!(getDebugMode()& btIDebugDraw::DBG_DrawWireframe)) + int debugMode = 0;//getDebugMode() + //btVector3 m_sundirection(-1,-1,-1); + btVector3 m_sundirection(btVector3(1,-2,1)*1000); + + switch(pass) + { + case 0: drawOpenGL(m,colObj->getCollisionShape(),wireColor,debugMode,aabbMin,aabbMax);break; + case 1: drawShadow(m,m_sundirection*rot,colObj->getCollisionShape(),aabbMin,aabbMax);break; + case 2: drawOpenGL(m,colObj->getCollisionShape(),wireColor*btScalar(0.3),0,aabbMin,aabbMax);break; + } + } + +} + +void GL_ShapeDrawer::drawScene(const btDiscreteDynamicsWorld* dynamicsWorld, bool useShadows) +{ + + GLfloat light_ambient[] = { btScalar(0.2), btScalar(0.2), btScalar(0.2), btScalar(1.0) }; + GLfloat light_diffuse[] = { btScalar(1.0), btScalar(1.0), btScalar(1.0), btScalar(1.0) }; + GLfloat light_specular[] = { btScalar(1.0), btScalar(1.0), btScalar(1.0), btScalar(1.0 )}; + /* light_position is NOT default value */ + GLfloat light_position0[] = { btScalar(1.0), btScalar(10.0), btScalar(1.0), btScalar(0.0 )}; + GLfloat light_position1[] = { btScalar(-1.0), btScalar(-10.0), btScalar(-1.0), btScalar(0.0) }; + + glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient); + glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); + glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); + glLightfv(GL_LIGHT0, GL_POSITION, light_position0); + + glLightfv(GL_LIGHT1, GL_AMBIENT, light_ambient); + glLightfv(GL_LIGHT1, GL_DIFFUSE, light_diffuse); + glLightfv(GL_LIGHT1, GL_SPECULAR, light_specular); + glLightfv(GL_LIGHT1, GL_POSITION, light_position1); + + glEnable(GL_LIGHTING); + glEnable(GL_LIGHT0); + glEnable(GL_LIGHT1); + + + glShadeModel(GL_SMOOTH); + glEnable(GL_DEPTH_TEST); + glDepthFunc(GL_LESS); + + glClearColor(btScalar(0.7),btScalar(0.7),btScalar(0.7),btScalar(0)); + + + if(useShadows) + { + glClear(GL_STENCIL_BUFFER_BIT); + glEnable(GL_CULL_FACE); + drawSceneInternal(dynamicsWorld,0); + + glDisable(GL_LIGHTING); + glDepthMask(GL_FALSE); + glDepthFunc(GL_LEQUAL); + glEnable(GL_STENCIL_TEST); + glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE); + glStencilFunc(GL_ALWAYS,1,0xFFFFFFFFL); + glFrontFace(GL_CCW); + glStencilOp(GL_KEEP,GL_KEEP,GL_INCR); + drawSceneInternal(dynamicsWorld,1); + glFrontFace(GL_CW); + glStencilOp(GL_KEEP,GL_KEEP,GL_DECR); + drawSceneInternal(dynamicsWorld,1); + glFrontFace(GL_CCW); + + glPolygonMode(GL_FRONT,GL_FILL); + glPolygonMode(GL_BACK,GL_FILL); + glShadeModel(GL_SMOOTH); + glEnable(GL_DEPTH_TEST); + glDepthFunc(GL_LESS); + glEnable(GL_LIGHTING); + glDepthMask(GL_TRUE); + glCullFace(GL_BACK); + glFrontFace(GL_CCW); + glEnable(GL_CULL_FACE); + glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE); + + glDepthFunc(GL_LEQUAL); + glStencilFunc( GL_NOTEQUAL, 0, 0xFFFFFFFFL ); + glStencilOp( GL_KEEP, GL_KEEP, GL_KEEP ); + glDisable(GL_LIGHTING); + drawSceneInternal(dynamicsWorld,2); + glEnable(GL_LIGHTING); + glDepthFunc(GL_LESS); + glDisable(GL_STENCIL_TEST); + glDisable(GL_CULL_FACE); + } + else + { + glDisable(GL_CULL_FACE); + drawSceneInternal(dynamicsWorld,0); + } +} \ No newline at end of file diff --git a/Demos/OpenGL/GL_ShapeDrawer.h b/examples/ExampleBrowser/GL_ShapeDrawer.h similarity index 92% rename from Demos/OpenGL/GL_ShapeDrawer.h rename to examples/ExampleBrowser/GL_ShapeDrawer.h index eeab4d71d..4d9ce701a 100644 --- a/Demos/OpenGL/GL_ShapeDrawer.h +++ b/examples/ExampleBrowser/GL_ShapeDrawer.h @@ -17,6 +17,8 @@ subject to the following restrictions: class btCollisionShape; class btShapeHull; +class btDiscreteDynamicsWorld; + #include "LinearMath/btAlignedObjectArray.h" #include "LinearMath/btVector3.h" @@ -42,11 +44,17 @@ protected: ShapeCache* cache(btConvexShape*); + virtual void drawSceneInternal(const btDiscreteDynamicsWorld* world, int pass); + public: GL_ShapeDrawer(); virtual ~GL_ShapeDrawer(); + + + virtual void drawScene(const btDiscreteDynamicsWorld* world, bool useShadows); + ///drawOpenGL might allocate temporary memoty, stores pointer in shape userpointer virtual void drawOpenGL(btScalar* m, const btCollisionShape* shape, const btVector3& color,int debugMode,const btVector3& worldBoundsMin,const btVector3& worldBoundsMax); virtual void drawShadow(btScalar* m, const btVector3& extrusion,const btCollisionShape* shape,const btVector3& worldBoundsMin,const btVector3& worldBoundsMax); diff --git a/btgui/Bullet3AppSupport/GraphingTexture.cpp b/examples/ExampleBrowser/GwenGUISupport/GraphingTexture.cpp similarity index 98% rename from btgui/Bullet3AppSupport/GraphingTexture.cpp rename to examples/ExampleBrowser/GwenGUISupport/GraphingTexture.cpp index 19eac1ff8..5ff5f2116 100644 --- a/btgui/Bullet3AppSupport/GraphingTexture.cpp +++ b/examples/ExampleBrowser/GwenGUISupport/GraphingTexture.cpp @@ -1,5 +1,5 @@ #include "GraphingTexture.h" -#include "OpenGLWindow/OpenGLInclude.h" +#include "../OpenGLWindow/OpenGLInclude.h" #include GraphingTexture::GraphingTexture() diff --git a/btgui/Bullet3AppSupport/GraphingTexture.h b/examples/ExampleBrowser/GwenGUISupport/GraphingTexture.h similarity index 100% rename from btgui/Bullet3AppSupport/GraphingTexture.h rename to examples/ExampleBrowser/GwenGUISupport/GraphingTexture.h diff --git a/btgui/Bullet3AppSupport/GwenParameterInterface.cpp b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp similarity index 100% rename from btgui/Bullet3AppSupport/GwenParameterInterface.cpp rename to examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp diff --git a/btgui/Bullet3AppSupport/GwenParameterInterface.h b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.h similarity index 90% rename from btgui/Bullet3AppSupport/GwenParameterInterface.h rename to examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.h index a78ec20cb..d168c7e5a 100644 --- a/btgui/Bullet3AppSupport/GwenParameterInterface.h +++ b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.h @@ -1,7 +1,7 @@ #ifndef GWEN_PARAMETER_INTERFACE_H #define GWEN_PARAMETER_INTERFACE_H -#include "CommonParameterInterface.h" +#include "../CommonInterfaces/CommonParameterInterface.h" struct GwenParameterInterface : public CommonParameterInterface { diff --git a/btgui/Bullet3AppSupport/GwenProfileWindow.cpp b/examples/ExampleBrowser/GwenGUISupport/GwenProfileWindow.cpp similarity index 100% rename from btgui/Bullet3AppSupport/GwenProfileWindow.cpp rename to examples/ExampleBrowser/GwenGUISupport/GwenProfileWindow.cpp diff --git a/btgui/Bullet3AppSupport/GwenProfileWindow.h b/examples/ExampleBrowser/GwenGUISupport/GwenProfileWindow.h similarity index 100% rename from btgui/Bullet3AppSupport/GwenProfileWindow.h rename to examples/ExampleBrowser/GwenGUISupport/GwenProfileWindow.h diff --git a/btgui/Bullet3AppSupport/GwenTextureWindow.cpp b/examples/ExampleBrowser/GwenGUISupport/GwenTextureWindow.cpp similarity index 100% rename from btgui/Bullet3AppSupport/GwenTextureWindow.cpp rename to examples/ExampleBrowser/GwenGUISupport/GwenTextureWindow.cpp diff --git a/btgui/Bullet3AppSupport/GwenTextureWindow.h b/examples/ExampleBrowser/GwenGUISupport/GwenTextureWindow.h similarity index 100% rename from btgui/Bullet3AppSupport/GwenTextureWindow.h rename to examples/ExampleBrowser/GwenGUISupport/GwenTextureWindow.h diff --git a/btgui/Bullet3AppSupport/gwenInternalData.h b/examples/ExampleBrowser/GwenGUISupport/gwenInternalData.h similarity index 87% rename from btgui/Bullet3AppSupport/gwenInternalData.h rename to examples/ExampleBrowser/GwenGUISupport/gwenInternalData.h index a78553ff8..ec0982571 100644 --- a/btgui/Bullet3AppSupport/gwenInternalData.h +++ b/examples/ExampleBrowser/GwenGUISupport/gwenInternalData.h @@ -1,8 +1,8 @@ #ifndef GWEN_INTERNAL_DATA_H #define GWEN_INTERNAL_DATA_H -#include "OpenGLWindow/GwenOpenGL3CoreRenderer.h" -#include "OpenGLWindow/GLPrimitiveRenderer.h" +#include "../OpenGLWindow/GwenOpenGL3CoreRenderer.h" +#include "../OpenGLWindow/GLPrimitiveRenderer.h" #include "Gwen/Platform.h" #include "Gwen/Controls/TreeControl.h" #include "Gwen/Controls/RadioButtonController.h" @@ -42,6 +42,10 @@ struct GwenInternalData Gwen::Controls::TreeControl* m_explorerTreeCtrl; Gwen::Controls::MenuItem* m_viewMenu; class MyMenuItems* m_menuItems; + Gwen::Controls::ListBox* m_TextOutput; + Gwen::Controls::Label* m_exampleInfoGroupBox; + Gwen::Controls::ListBox* m_exampleInfoTextOutput; + int m_curYposition; diff --git a/btgui/Bullet3AppSupport/gwenUserInterface.cpp b/examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.cpp similarity index 80% rename from btgui/Bullet3AppSupport/gwenUserInterface.cpp rename to examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.cpp index 8100c57d2..42086312f 100644 --- a/btgui/Bullet3AppSupport/gwenUserInterface.cpp +++ b/examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.cpp @@ -140,6 +140,78 @@ struct MyButtonHander :public Gwen::Event::Handler }; +void GwenUserInterface::textOutput(const char* message) +{ + Gwen::UnicodeString msg = Gwen::Utility::StringToUnicode(message); + m_data->m_TextOutput->AddItem( msg ); + m_data->m_TextOutput->Scroller()->ScrollToBottom(); +} + + +void GwenUserInterface::setExampleDescription(const char* message) +{ + //Gwen apparently doesn't have text/word wrap, so do rudimentary brute-force implementation here. + + std::string wrapmessage=message; + int startPos = 0; + + std::string lastFit = ""; + bool hasSpace = false; + std::string lastFitSpace = ""; + int spacePos = 0; + + m_data->m_exampleInfoTextOutput->Clear(); + int fixedWidth = m_data->m_exampleInfoTextOutput->GetBounds().w-25; + + for (int endPos=0;endPos<=wrapmessage.length();endPos++) + { + std::string sub = wrapmessage.substr(startPos,(endPos-startPos)); + Gwen::Point pt = m_data->pRenderer->MeasureText(m_data->pCanvas->GetSkin()->GetDefaultFont(),sub); + + if (pt.x <= fixedWidth) + { + lastFit = sub; + + if (message[endPos]==' ' ||message[endPos]=='.' || message[endPos]==',' ) + { + hasSpace = true; + lastFitSpace = sub; + spacePos = endPos; + } + } else + { + //submit and + if (hasSpace) + { + endPos = spacePos+1; + hasSpace = false; + lastFit = lastFitSpace; + startPos = endPos; + } else + { + startPos = endPos-1; + } + Gwen::UnicodeString msg = Gwen::Utility::StringToUnicode(lastFit); + + m_data->m_exampleInfoTextOutput->AddItem( msg ); + m_data->m_exampleInfoTextOutput->Scroller()->ScrollToBottom(); + + } + } + + if (lastFit.length()) + { + Gwen::UnicodeString msg = Gwen::Utility::StringToUnicode(lastFit); + m_data->m_exampleInfoTextOutput->AddItem( msg ); + m_data->m_exampleInfoTextOutput->Scroller()->ScrollToBottom(); + + } + +} + + + + void GwenUserInterface::setStatusBarMessage(const char* message, bool isLeft) { Gwen::UnicodeString msg = Gwen::Utility::StringToUnicode(message); @@ -171,10 +243,13 @@ void GwenUserInterface::init(int width, int height,Gwen::Renderer::Base* rendere m_data->pCanvas->SetDrawBackground( false); m_data->pCanvas->SetBackgroundColor( Gwen::Color( 150, 170, 170, 255 ) ); + + MyTestMenuBar* menubar = new MyTestMenuBar(m_data->pCanvas); m_data->m_viewMenu = menubar->m_viewMenu; m_data->m_menuItems = menubar->m_menuItems; + Gwen::Controls::StatusBar* bar = new Gwen::Controls::StatusBar(m_data->pCanvas); @@ -183,6 +258,10 @@ void GwenUserInterface::init(int width, int height,Gwen::Renderer::Base* rendere //m_data->m_rightStatusBar->SetText( L"Label Added to Right" ); bar->AddControl( m_data->m_rightStatusBar, true ); + m_data->m_TextOutput = new Gwen::Controls::ListBox( m_data->pCanvas ); + m_data->m_TextOutput->Dock( Gwen::Pos::Bottom ); + m_data->m_TextOutput->SetHeight( 100 ); + m_data->m_leftStatusBar = new Gwen::Controls::Label( bar ); //m_data->m_leftStatusBar->SetText( L"Label Added to Left" ); m_data->m_leftStatusBar->SetWidth(width/2); @@ -266,6 +345,14 @@ void GwenUserInterface::init(int width, int height,Gwen::Renderer::Base* rendere //tab->Dock(Gwen::Pos::Left); explorerTab->Dock(Gwen::Pos::Fill); + + + + + //m_data->m_exampleInfoTextOutput->SetBounds(2, 10, 236, 400); + + //windowRight + Gwen::UnicodeString explorerStr1(L"Explorer"); m_data->m_explorerPage = explorerTab->AddPage(explorerStr1); Gwen::UnicodeString shapesStr1(L"Shapes"); @@ -279,6 +366,21 @@ void GwenUserInterface::init(int width, int height,Gwen::Renderer::Base* rendere ctrl->Focus(); ctrl->SetBounds(2, 10, 236, 400); + m_data->m_exampleInfoGroupBox = new Gwen::Controls::Label( m_data->m_explorerPage->GetPage() ); + m_data->m_exampleInfoGroupBox->SetPos(2, 414); + m_data->m_exampleInfoGroupBox->SetHeight( 15 ); + m_data->m_exampleInfoGroupBox->SetWidth(234); + m_data->m_exampleInfoGroupBox->SetText("Example Description"); + + m_data->m_exampleInfoTextOutput = new Gwen::Controls::ListBox(m_data->m_explorerPage->GetPage()); + + + //m_data->m_exampleInfoTextOutput->Dock( Gwen::Pos::Bottom ); + m_data->m_exampleInfoTextOutput->SetPos(2, 432); + m_data->m_exampleInfoTextOutput->SetHeight( 150 ); + m_data->m_exampleInfoTextOutput->SetWidth(233); + + } @@ -401,7 +503,7 @@ bool GwenUserInterface::mouseMoveCallback( float x, float y) return handled; } -#include "OpenGLWindow/b3gWindowInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" bool GwenUserInterface::keyboardCallback(int bulletKey, int state) { diff --git a/btgui/Bullet3AppSupport/gwenUserInterface.h b/examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.h similarity index 94% rename from btgui/Bullet3AppSupport/gwenUserInterface.h rename to examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.h index 4b7fac785..ce2c3bafe 100644 --- a/btgui/Bullet3AppSupport/gwenUserInterface.h +++ b/examples/ExampleBrowser/GwenGUISupport/gwenUserInterface.h @@ -48,6 +48,10 @@ class GwenUserInterface void setStatusBarMessage(const char* message, bool isLeft=true); + void textOutput(const char* msg); + void setExampleDescription(const char* msg); + + void registerFileOpenCallback(b3FileOpenCallback callback); GwenInternalData* getInternalData() diff --git a/Demos3/AllBullet2Demos/main.cpp b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp similarity index 69% rename from Demos3/AllBullet2Demos/main.cpp rename to examples/ExampleBrowser/OpenGLExampleBrowser.cpp index aec219c93..d56a7a835 100644 --- a/Demos3/AllBullet2Demos/main.cpp +++ b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp @@ -1,61 +1,64 @@ -#include "OpenGLWindow/OpenGLInclude.h" -//#include "OpenGL/gl.h" -//#define USE_OPENGL2 - -#include "OpenGLWindow/SimpleOpenGL2App.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" - -#include "OpenGLWindow/CommonRenderInterface.h" +#include "OpenGLExampleBrowser.h" +#include "LinearMath/btQuickprof.h" +#include "../OpenGLWindow/OpenGLInclude.h" +#include "../OpenGLWindow/SimpleOpenGL2App.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" +#include "../CommonInterfaces/CommonRenderInterface.h" #ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" +#include "../OpenGLWindow/MacOpenGLWindow.h" #else - -#include "GL/glew.h" #ifdef _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" +#include "../OpenGLWindow/Win32OpenGLWindow.h" #else //let's cross the fingers it is Linux/X11 -#include "OpenGLWindow/X11OpenGLWindow.h" +#include "../OpenGLWindow/X11OpenGLWindow.h" #endif //_WIN32 #endif//__APPLE__ -#include "Gwen/Renderers/OpenGL_DebugFont.h" +#include "../ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.h" #include "Bullet3Common/b3Vector3.h" #include "assert.h" #include -#include "Bullet3AppSupport/gwenInternalData.h" -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "BulletDemoEntries.h" -#include "Bullet3AppSupport/b3Clock.h" -#include "Bullet3AppSupport/GwenParameterInterface.h" -#include "Bullet3AppSupport/GwenProfileWindow.h" -#include "Bullet3AppSupport/GwenTextureWindow.h" -#include "Bullet3AppSupport/GraphingTexture.h" -#include "Bullet3AppSupport/Common2dCanvasInterface.h" +#include "GwenGUISupport/gwenInternalData.h" +#include "GwenGUISupport/gwenUserInterface.h" +#include "../Utils/b3Clock.h" +#include "GwenGUISupport/GwenParameterInterface.h" +#include "GwenGUISupport/GwenProfileWindow.h" +#include "GwenGUISupport/GwenTextureWindow.h" +#include "GwenGUISupport/GraphingTexture.h" +#include "../CommonInterfaces/Common2dCanvasInterface.h" +#include "../CommonInterfaces/CommonExampleInterface.h" #include "Bullet3Common/b3CommandLineArgs.h" +#include "../OpenGLWindow/SimpleCamera.h" +#include "../OpenGLWindow/SimpleOpenGL2Renderer.h" +#include "ExampleEntries.h" +#include "OpenGLGuiHelper.h" +#include "LinearMath/btIDebugDraw.h" +static CommonGraphicsApp* s_app=0; -#include "OpenGLWindow/SimpleCamera.h" -#include "OpenGLWindow/SimpleOpenGL2Renderer.h" +static CommonWindowInterface* s_window = 0; +static CommonParameterInterface* s_parameterInterface=0; +static CommonRenderInterface* s_instancingRenderer=0; +static OpenGLGuiHelper* s_guiHelper=0; +static MyProfileWindow* s_profWindow =0; -CommonGraphicsApp* app=0; - -b3gWindowInterface* s_window = 0; -CommonParameterInterface* s_parameterInterface=0; -CommonRenderInterface* s_instancingRenderer=0; #define DEMO_SELECTION_COMBOBOX 13 const char* startFileName = "bulletDemo.txt"; static GwenUserInterface* gui = 0; static int sCurrentDemoIndex = 0; static int sCurrentHightlighted = 0; -static BulletDemoInterface* sCurrentDemo = 0; +static CommonExampleInterface* sCurrentDemo = 0; static b3AlignedObjectArray allNames; + +static class ExampleEntries* gAllExamples=0; +bool sUseOpenGL2 = false; bool drawGUI=true; extern bool useShadowMap; static bool visualWireframe=false; static bool renderVisualGeometry=true; static bool renderGrid = true; -int gDebugDrawFlags = 0; +int gDebugDrawFlags = btIDebugDraw::DBG_DrawWireframe; static bool pauseSimulation=false; int midiBaseIndex = 176; extern bool gDisableDeactivation; @@ -76,16 +79,20 @@ void MyKeyboardCallback(int key, int state) //printf("key=%d, state=%d\n", key, state); bool handled = false; - if (gui) + + if (gui && !handled ) { - handled = gui->keyboardCallback(key, state); } + if (!handled && sCurrentDemo) { handled = sCurrentDemo->keyboardCallback(key,state); } + + + //checkout: is it desired to ignore keys, if the demo already handles them? //if (handled) // return; @@ -113,6 +120,8 @@ void MyKeyboardCallback(int key, int state) visualWireframe=!visualWireframe; gDebugDrawFlags ^= btIDebugDraw::DBG_DrawWireframe; } + + if (key=='v' && state) { renderVisualGeometry = !renderVisualGeometry; @@ -181,7 +190,7 @@ static void MyMouseButtonCallback(int button, int state, float x, float y) void openURDFDemo(const char* filename) { - +#if 0 if (sCurrentDemo) { sCurrentDemo->exitPhysics(); @@ -194,24 +203,25 @@ void openURDFDemo(const char* filename) ImportUrdfSetup* physicsSetup = new ImportUrdfSetup(); physicsSetup->setFileName(filename); - - sCurrentDemo = new BasicDemo(app, physicsSetup); - app->setUpAxis(2); + sCurrentDemo = new BasicDemo(s_app, physicsSetup); + s_app->setUpAxis(2); if (sCurrentDemo) { sCurrentDemo->initPhysics(); } - +#endif } + + void selectDemo(int demoIndex) { sCurrentDemoIndex = demoIndex; sCurrentHightlighted = demoIndex; - int numDemos = sizeof(allDemos)/sizeof(BulletDemoEntry); + int numDemos = gAllExamples->getNumRegisteredExamples(); if (demoIndex>numDemos) { demoIndex = 0; @@ -222,11 +232,16 @@ void selectDemo(int demoIndex) s_instancingRenderer->removeAllInstances(); delete sCurrentDemo; sCurrentDemo=0; + delete s_guiHelper; + s_guiHelper = 0; } - if (allDemos[demoIndex].m_createFunc) + CommonExampleInterface::CreateFunc* func = gAllExamples->getExampleCreateFunc(demoIndex); + if (func) { s_parameterInterface->removeAllParameters(); - sCurrentDemo = (*allDemos[demoIndex].m_createFunc)(app); + int option = gAllExamples->getExampleOption(demoIndex); + s_guiHelper= new OpenGLGuiHelper(s_app, sUseOpenGL2); + sCurrentDemo = (*func)(0,s_guiHelper, option); if (sCurrentDemo) { if (gui) @@ -234,12 +249,44 @@ void selectDemo(int demoIndex) bool isLeft = true; gui->setStatusBarMessage("Status: OK", false); } + b3Printf("Selected demo: %s",gAllExamples->getExampleName(demoIndex)); + gui->setExampleDescription(gAllExamples->getExampleDescription(demoIndex)); sCurrentDemo->initPhysics(); } } } +#include + + +static void saveCurrentDemoEntry(int currentEntry,const char* startFileName) +{ + FILE* f = fopen(startFileName,"w"); + if (f) + { + fprintf(f,"%d\n",currentEntry); + fclose(f); + } +}; + +static int loadCurrentDemoEntry(const char* startFileName) +{ + int currentEntry= 0; + FILE* f = fopen(startFileName,"r"); + if (f) + { + int result; + result = fscanf(f,"%d",¤tEntry); + if (result) + { + return currentEntry; + } + fclose(f); + } + return 0; +}; + void MyComboBoxCallback(int comboId, const char* item) { //printf("comboId = %d, item = %s\n",comboId, item); @@ -260,6 +307,17 @@ void MyComboBoxCallback(int comboId, const char* item) } +void MyGuiPrintf(const char* msg) +{ + printf("b3Printf: %s\n",msg); + if (gui) + { + gui->textOutput(msg); + gui->forceUpdateScrollBars(); + } +} + + void MyStatusBarPrintf(const char* msg) { @@ -314,19 +372,21 @@ struct MyMenuItemHander :public Gwen::Event::Handler Gwen::String laa = Gwen::Utility::UnicodeToString(la); //const char* ha = laa.c_str(); - + bool handled = false; + selectDemo(sCurrentHightlighted); saveCurrentDemoEntry(sCurrentDemoIndex, startFileName); } void onButtonC(Gwen::Controls::Base* pControl) { -// Gwen::Controls::Label* label = (Gwen::Controls::Label*) pControl; - // Gwen::UnicodeString la = label->GetText();// node->GetButton()->GetName();// GetText(); - // Gwen::String laa = Gwen::Utility::UnicodeToString(la); - // const char* ha = laa.c_str(); + /*Gwen::Controls::Label* label = (Gwen::Controls::Label*) pControl; + Gwen::UnicodeString la = label->GetText();// node->GetButton()->GetName();// GetText(); + Gwen::String laa = Gwen::Utility::UnicodeToString(la); + const char* ha = laa.c_str(); -// printf("onButtonC ! %s\n", ha); + printf("onButtonC ! %s\n", ha); + */ } void onButtonD(Gwen::Controls::Base* pControl) { @@ -346,6 +406,7 @@ struct MyMenuItemHander :public Gwen::Event::Handler { // printf("select %d\n",m_buttonId); sCurrentHightlighted = m_buttonId; + gui->setExampleDescription(gAllExamples->getExampleDescription(sCurrentHightlighted)); } void onButtonF(Gwen::Controls::Base* pControl) @@ -460,31 +521,38 @@ struct QuickCanvas : public Common2dCanvasInterface } }; -extern float shadowMapWorldSize; -int main(int argc, char* argv[]) + +OpenGLExampleBrowser::OpenGLExampleBrowser(class ExampleEntries* examples) +{ + gAllExamples = examples; +} + +OpenGLExampleBrowser::~OpenGLExampleBrowser() +{ + gAllExamples = 0; +} + +#include "EmptyExample.h" + +bool OpenGLExampleBrowser::init(int argc, char* argv[]) { b3CommandLineArgs args(argc,argv); - shadowMapWorldSize = 25; - - b3Clock clock; - - //float dt = 1./120.f; - int width = 1024; + int width = 1024; int height=768; - // wci.m_resizeCallback = MyResizeCallback; - SimpleOpenGL3App* simpleApp=0; - bool useOpenGL2=false; - if (useOpenGL2) + sUseOpenGL2 =args.CheckCmdLineFlag("opengl2"); + + if (sUseOpenGL2 ) { - app = new SimpleOpenGL2App("AllBullet2Demos",width,height); - app->m_renderer = new SimpleOpenGL2Renderer(width,height); + + s_app = new SimpleOpenGL2App("AllBullet2Demos",width,height); + s_app->m_renderer = new SimpleOpenGL2Renderer(width,height); } else { simpleApp = new SimpleOpenGL3App("AllBullet2Demos",width,height); - app = simpleApp; + s_app = simpleApp; } char* gVideoFileName = 0; args.GetCmdLineArgument("mp4",gVideoFileName); @@ -493,8 +561,8 @@ int main(int argc, char* argv[]) simpleApp->dumpFramesToVideo(gVideoFileName); - s_instancingRenderer = app->m_renderer; - s_window = app->m_window; + s_instancingRenderer = s_app->m_renderer; + s_window = s_app->m_window; prevMouseMoveCallback = s_window->getMouseMoveCallback(); s_window->setMouseMoveCallback(MyMouseMoveCallback); @@ -503,33 +571,23 @@ int main(int argc, char* argv[]) prevKeyboardCallback = s_window->getKeyboardCallback(); s_window->setKeyboardCallback(MyKeyboardCallback); - app->m_renderer->setCameraDistance(13); - app->m_renderer->setCameraPitch(0); - app->m_renderer->setCameraTargetPosition(0,0,0); + s_app->m_renderer->getActiveCamera()->setCameraDistance(13); + s_app->m_renderer->getActiveCamera()->setCameraPitch(0); + s_app->m_renderer->getActiveCamera()->setCameraTargetPosition(0,0,0); b3SetCustomWarningMessageFunc(MyStatusBarWarning); - b3SetCustomPrintfFunc(MyStatusBarPrintf); + //b3SetCustomPrintfFunc(MyStatusBarPrintf); + b3SetCustomPrintfFunc(MyGuiPrintf); - /* - SimpleOpenGL3App* app = new SimpleOpenGL3App("AllBullet2Demos",width,height); - s_instancingRenderer->setCameraDistance(13); - s_instancingRenderer->setCameraPitch(0); - s_instancingRenderer->setCameraTargetPosition(0,0,0); - s_window->setMouseMoveCallback(MyMouseMoveCallback); - s_window->setMouseButtonCallback(MyMouseButtonCallback); - s_window->setKeyboardCallback(MyKeyboardCallback); - - */ assert(glGetError()==GL_NO_ERROR); - gui = new GwenUserInterface; GL3TexLoader* myTexLoader = new GL3TexLoader; Gwen::Renderer::Base* gwenRenderer = 0; - if (useOpenGL2) + if (sUseOpenGL2 ) { gwenRenderer = new Gwen::Renderer::OpenGL_DebugFont(); } else @@ -540,6 +598,10 @@ int main(int argc, char* argv[]) // gui->init(width,height,gwenRenderer,s_window->getRetinaScale()); + + + + // gui->getInternalData()->m_explorerPage Gwen::Controls::TreeControl* tree = gui->getInternalData()->m_explorerTreeCtrl; @@ -547,61 +609,20 @@ int main(int argc, char* argv[]) //gui->getInternalData()->pRenderer->setTextureLoader(myTexLoader); - MyProfileWindow* profWindow = setupProfileWindow(gui->getInternalData()); - profileWindowSetVisible(profWindow,false); + s_profWindow= setupProfileWindow(gui->getInternalData()); + profileWindowSetVisible(s_profWindow,false); gui->setFocus(); -#if 0 - { - MyGraphInput input(gui->getInternalData()); - input.m_width=300; - input.m_height=300; - input.m_xPos = 0; - input.m_yPos = height-input.m_height; - input.m_name="Test Graph1"; - input.m_texName = "graph1"; - GraphingTexture* gt = new GraphingTexture; - gt->create(256,256); - int texId = gt->getTextureId(); - myTexLoader->m_hashMap.insert("graph1", texId); - //MyGraphWindow* gw = - setupTextureWindow(input); - } - if (1) - { - MyGraphInput input(gui->getInternalData()); - input.m_width=300; - input.m_height=300; - input.m_xPos = width-input.m_width; - input.m_yPos = height-input.m_height; - input.m_name="Test Graph2"; - input.m_texName = "graph2"; - GraphingTexture* gt = new GraphingTexture; - int texWidth = 512; - int texHeight = 512; - gt->create(texWidth,texHeight); - for (int i=0;isetPixel(i,j,0,0,0,255); - } - } - gt->uploadImageData(); - - int texId = gt->getTextureId(); - input.m_xPos = width-input.m_width; - myTexLoader->m_hashMap.insert("graph2", texId); - //MyGraphWindow* gw = - setupTextureWindow(input); - } - //destroyTextureWindow(gw); -#endif - s_parameterInterface = app->m_parameterInterface = new GwenParameterInterface(gui->getInternalData()); - app->m_2dCanvasInterface = new QuickCanvas(myTexLoader); - //gui->getInternalData()->m_demoPage; + s_parameterInterface = s_app->m_parameterInterface = new GwenParameterInterface(gui->getInternalData()); + s_app->m_2dCanvasInterface = new QuickCanvas(myTexLoader); - int numDemos = sizeof(allDemos)/sizeof(BulletDemoEntry); + + ///add some demos to the gAllExamples + + + + + int numDemos = gAllExamples->getNumRegisteredExamples(); //char nodeText[1024]; //int curDemo = 0; @@ -610,14 +631,22 @@ int main(int argc, char* argv[]) MyMenuItemHander* handler2 = new MyMenuItemHander(-1); tree->onReturnKeyDown.Add(handler2, &MyMenuItemHander::onButtonD); + int firstAvailableDemoIndex=-1; + Gwen::Controls::TreeNode* firstNode=0; for (int d = 0; dgetExampleName(d)); + if (gAllExamples->getExampleCreateFunc(d))//was test for gAllExamples[d].m_menuLevel==1 { Gwen::Controls::TreeNode* pNode = curNode->AddNode(nodeUText); + + if (firstAvailableDemoIndex<0) + { + firstAvailableDemoIndex = d; + firstNode = pNode; + } if (d == selectedDemo) { pNode->SetSelected(true); @@ -645,41 +674,69 @@ int main(int argc, char* argv[]) } } -/* for (int i=0;i=0) + { + firstNode->SetSelected(true); + tree->ExpandAll(); + selectDemo(firstAvailableDemoIndex); + } + } - */ - //selectDemo(loadCurrentDemoEntry(startFileName)); - /* - gui->registerComboBox(DEMO_SELECTION_COMBOBOX,allNames.size(),&allNames[0],sCurrentDemoIndex); - - //const char* names2[] = {"comboF", "comboG","comboH"}; - //gui->registerComboBox(2,3,&names2[0],0); - - gui->setComboBoxCallback(MyComboBoxCallback); - */ - unsigned long int prevTimeInMicroseconds = clock.getTimeMicroseconds(); - + btAssert(sCurrentDemo!=0); + if (sCurrentDemo==0) + { + printf("Error, no demo/example\n"); + exit(0); + } + gui->registerFileOpenCallback(fileOpenCallback); - do - { + return true; +} - assert(glGetError()==GL_NO_ERROR); + + +CommonExampleInterface* OpenGLExampleBrowser::getCurrentExample() +{ + btAssert(sCurrentDemo); + return sCurrentDemo; +} + +bool OpenGLExampleBrowser::requestedExit() +{ + return s_window->requestedExit(); +} + +void OpenGLExampleBrowser::update(float deltaTime) +{ +/* if (sCurrentDemo) + { + sCurrentDemo->stepSimulation(deltaTime); + } + */ + + assert(glGetError()==GL_NO_ERROR); s_instancingRenderer->init(); DrawGridData dg; - dg.upAxis = app->getUpAxis(); + dg.upAxis = s_app->getUpAxis(); { - BT_PROFILE("Update Camera"); + BT_PROFILE("Update Camera and Light"); + + + s_instancingRenderer->updateCamera(dg.upAxis); } if (renderGrid) { BT_PROFILE("Draw Grid"); - app->drawGrid(dg); + glPolygonOffset(3.0, 3); + glEnable(GL_POLYGON_OFFSET_FILL); + s_app->drawGrid(dg); + } static int frameCount = 0; frameCount++; @@ -689,21 +746,18 @@ int main(int argc, char* argv[]) BT_PROFILE("Draw frame counter"); char bla[1024]; sprintf(bla,"Frame %d", frameCount); - app->drawText(bla,10,10); + s_app->drawText(bla,10,10); } + if (sCurrentDemo) { if (!pauseSimulation) { - unsigned long int curTimeInMicroseconds = clock.getTimeMicroseconds(); - unsigned long int diff = curTimeInMicroseconds-prevTimeInMicroseconds; - float deltaTimeInSeconds = (diff)*1.e-6; //printf("---------------------------------------------------\n"); //printf("Framecount = %d\n",frameCount); - sCurrentDemo->stepSimulation(deltaTimeInSeconds);//1./60.f); - prevTimeInMicroseconds = curTimeInMicroseconds; + sCurrentDemo->stepSimulation(deltaTime);//1./60.f); } if (renderVisualGeometry) @@ -725,19 +779,20 @@ int main(int argc, char* argv[]) if (1) { if (!pauseSimulation) - processProfileData(profWindow,false); + processProfileData(s_profWindow,false); + + if (sUseOpenGL2) + { + + saveOpenGLState(s_instancingRenderer->getScreenWidth(),s_instancingRenderer->getScreenHeight()); + } + BT_PROFILE("Draw Gwen GUI"); + gui->draw(s_instancingRenderer->getScreenWidth(),s_instancingRenderer->getScreenHeight()); + if (sUseOpenGL2) { - if (useOpenGL2) - { - saveOpenGLState(width,height); - } - BT_PROFILE("Draw Gwen GUI"); - gui->draw(s_instancingRenderer->getScreenWidth(),s_instancingRenderer->getScreenHeight()); - if (useOpenGL2) - { - restoreOpenGLState(); - } + restoreOpenGLState(); } + } toggle=1-toggle; { @@ -746,14 +801,9 @@ int main(int argc, char* argv[]) } { BT_PROFILE("Swap Buffers"); - app->swapBuffer(); + s_app->swapBuffer(); } - + gui->forceUpdateScrollBars(); - } while (!s_window->requestedExit()); -// selectDemo(0); - delete gui; - delete app; - return 0; } diff --git a/examples/ExampleBrowser/OpenGLExampleBrowser.h b/examples/ExampleBrowser/OpenGLExampleBrowser.h new file mode 100644 index 000000000..7d181e068 --- /dev/null +++ b/examples/ExampleBrowser/OpenGLExampleBrowser.h @@ -0,0 +1,23 @@ +#ifndef OPENGL_BROWSER_GUI_H +#define OPENGL_BROWSER_GUI_H + +#include "ExampleBrowserInterface.h" + +class OpenGLExampleBrowser : public ExampleBrowserInterface +{ +public: + + OpenGLExampleBrowser(class ExampleEntries* examples); + virtual ~OpenGLExampleBrowser(); + + virtual CommonExampleInterface* getCurrentExample(); + + virtual bool init(int argc, char* argv[]); + + virtual void update(float deltaTime); + + virtual bool requestedExit(); + +}; + +#endif //OPENGL_BROWSER_GUI_H diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.cpp b/examples/ExampleBrowser/OpenGLGuiHelper.cpp new file mode 100644 index 000000000..71061ac30 --- /dev/null +++ b/examples/ExampleBrowser/OpenGLGuiHelper.cpp @@ -0,0 +1,548 @@ +#include "OpenGLGuiHelper.h" + +#include "btBulletDynamicsCommon.h" + +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "Bullet3Common/b3Scalar.h" + +#include "BulletCollision/CollisionShapes/btShapeHull.h"//to create a tesselation of a generic btConvexShape + +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" +//backwards compatibility +#include "GL_ShapeDrawer.h" + + +#define BT_LINE_BATCH_SIZE 512 + +struct MyDebugVec3 +{ + MyDebugVec3(const btVector3& org) + :x(org.x()), + y(org.y()), + z(org.z()) + { + } + + float x; + float y; + float z; +}; +class MyDebugDrawer : public btIDebugDraw +{ + CommonGraphicsApp* m_glApp; + int m_debugMode; + + btAlignedObjectArray m_linePoints; + btAlignedObjectArray m_lineIndices; + btVector3 m_currentLineColor; + +public: + + MyDebugDrawer(CommonGraphicsApp* app) + : m_glApp(app) + ,m_debugMode(btIDebugDraw::DBG_DrawWireframe|btIDebugDraw::DBG_DrawAabb), + m_currentLineColor(-1,-1,-1) + { + + } + virtual void drawLine(const btVector3& from1,const btVector3& to1,const btVector3& color1) + { + //float from[4] = {from1[0],from1[1],from1[2],from1[3]}; + //float to[4] = {to1[0],to1[1],to1[2],to1[3]}; + //float color[4] = {color1[0],color1[1],color1[2],color1[3]}; + //m_glApp->m_instancingRenderer->drawLine(from,to,color); + if (m_currentLineColor!=color1 || m_linePoints.size() >= BT_LINE_BATCH_SIZE) + { + flushLines(); + m_currentLineColor = color1; + } + MyDebugVec3 from(from1); + MyDebugVec3 to(to1); + + m_linePoints.push_back(from); + m_linePoints.push_back(to); + + m_lineIndices.push_back(m_lineIndices.size()); + m_lineIndices.push_back(m_lineIndices.size()); + + } + + virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color) + { + drawLine(PointOnB,PointOnB+normalOnB,color); + } + + + virtual void reportErrorWarning(const char* warningString) + { + } + + virtual void draw3dText(const btVector3& location,const char* textString) + { + } + + virtual void setDebugMode(int debugMode) + { + m_debugMode = debugMode; + } + + virtual int getDebugMode() const + { + return m_debugMode; + } + + virtual void flushLines() + { + int sz = m_linePoints.size(); + if (sz) + { + float debugColor[4]; + debugColor[0] = m_currentLineColor.x(); + debugColor[1] = m_currentLineColor.y(); + debugColor[2] = m_currentLineColor.z(); + debugColor[3] = 1.f; + m_glApp->m_renderer->drawLines(&m_linePoints[0].x,debugColor, + m_linePoints.size(),sizeof(MyDebugVec3), + &m_lineIndices[0], + m_lineIndices.size(), + 1); + m_linePoints.clear(); + m_lineIndices.clear(); + } + } + +}; + +static btVector4 sColors[4] = +{ + btVector4(0.3,0.3,1,1), + btVector4(1,0,0,1), + btVector4(0,1,0,1), + btVector4(0,1,1,1), + //btVector4(1,1,0,1), +}; + + +struct OpenGLGuiHelperInternalData +{ + struct CommonGraphicsApp* m_glApp; + class MyDebugDrawer* m_debugDraw; + int m_curColor; + GL_ShapeDrawer* m_gl2ShapeDrawer; +}; + + + +OpenGLGuiHelper::OpenGLGuiHelper(CommonGraphicsApp* glApp, bool useOpenGL2) +{ + m_data = new OpenGLGuiHelperInternalData; + m_data->m_glApp = glApp; + m_data->m_debugDraw = 0; + m_data->m_curColor = 0; + m_data->m_gl2ShapeDrawer = 0; + + if (useOpenGL2) + { + m_data->m_gl2ShapeDrawer = new GL_ShapeDrawer(); + + } +} + +OpenGLGuiHelper::~OpenGLGuiHelper() +{ + delete m_data->m_gl2ShapeDrawer; + delete m_data; +} + +struct CommonRenderInterface* OpenGLGuiHelper::getRenderInterface() +{ + return m_data->m_glApp->m_renderer; +} + +void OpenGLGuiHelper::createRigidBodyGraphicsObject(btRigidBody* body, const btVector3& color) +{ + createCollisionObjectGraphicsObject(body,color); +} + +void OpenGLGuiHelper::createCollisionObjectGraphicsObject(btCollisionObject* body, const btVector3& color) +{ + btCollisionShape* shape = body->getCollisionShape(); + btTransform startTransform = body->getWorldTransform(); + int graphicsShapeId = shape->getUserIndex(); + if (graphicsShapeId>=0) + { + // btAssert(graphicsShapeId >= 0); + btVector3 localScaling = shape->getLocalScaling(); + int graphicsInstanceId = m_data->m_glApp->m_renderer->registerGraphicsInstance(graphicsShapeId, startTransform.getOrigin(), startTransform.getRotation(), color, localScaling); + body->setUserIndex(graphicsInstanceId); + } +} + +int OpenGLGuiHelper::registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices) +{ + int shapeId = m_data->m_glApp->m_renderer->registerShape(vertices, numvertices,indices,numIndices); + return shapeId; +} + +int OpenGLGuiHelper::registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling) +{ + return m_data->m_glApp->m_renderer->registerGraphicsInstance(shapeIndex,position,quaternion,color,scaling); +} + +static void createCollisionShapeGraphicsObjectInternal(btCollisionShape* collisionShape, const btTransform& parentTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut) +{ +//todo: support all collision shape types + switch (collisionShape->getShapeType()) + { + case SOFTBODY_SHAPE_PROXYTYPE: + { + //skip the soft body collision shape for now + break; + } + case STATIC_PLANE_PROXYTYPE: + { + //draw a box, oriented along the plane normal + const btStaticPlaneShape* staticPlaneShape = static_cast(collisionShape); + btScalar planeConst = staticPlaneShape->getPlaneConstant(); + const btVector3& planeNormal = staticPlaneShape->getPlaneNormal(); + btVector3 planeOrigin = planeNormal * planeConst; + btVector3 vec0,vec1; + btPlaneSpace1(planeNormal,vec0,vec1); + btScalar vecLen = 100.f; + btVector3 verts[4]; + + verts[0] = planeOrigin + vec0*vecLen + vec1*vecLen; + verts[1] = planeOrigin - vec0*vecLen + vec1*vecLen; + verts[2] = planeOrigin - vec0*vecLen - vec1*vecLen; + verts[3] = planeOrigin + vec0*vecLen - vec1*vecLen; + + int startIndex = verticesOut.size(); + indicesOut.push_back(startIndex+0); + indicesOut.push_back(startIndex+1); + indicesOut.push_back(startIndex+2); + indicesOut.push_back(startIndex+0); + indicesOut.push_back(startIndex+2); + indicesOut.push_back(startIndex+3); + + btVector3 triNormal = parentTransform.getBasis()*planeNormal; + + + for (int i=0;i<4;i++) + { + GLInstanceVertex vtx; + btVector3 pos =parentTransform*verts[i]; + vtx.xyzw[0] = pos.x(); + vtx.xyzw[1] = pos.y(); + vtx.xyzw[2] = pos.z(); + vtx.xyzw[3] = 0.f; + + vtx.normal[0] =triNormal.x(); + vtx.normal[1] =triNormal.y(); + vtx.normal[2] =triNormal.z(); + + vtx.uv[0] = 0.5f; + vtx.uv[1] = 0.5f; + verticesOut.push_back(vtx); + } + break; + } + case TRIANGLE_MESH_SHAPE_PROXYTYPE: + { + + + btBvhTriangleMeshShape* trimesh = (btBvhTriangleMeshShape*) collisionShape; + btVector3 trimeshScaling = trimesh->getLocalScaling(); + btStridingMeshInterface* meshInterface = trimesh->getMeshInterface(); + btAlignedObjectArray vertices; + btAlignedObjectArray indices; + + for (int partId=0;partIdgetNumSubParts();partId++) + { + + const unsigned char *vertexbase = 0; + int numverts = 0; + PHY_ScalarType type = PHY_INTEGER; + int stride = 0; + const unsigned char *indexbase = 0; + int indexstride = 0; + int numfaces = 0; + PHY_ScalarType indicestype = PHY_INTEGER; + //PHY_ScalarType indexType=0; + + btVector3 triangleVerts[3]; + meshInterface->getLockedReadOnlyVertexIndexBase(&vertexbase,numverts, type,stride,&indexbase,indexstride,numfaces,indicestype,partId); + btVector3 aabbMin,aabbMax; + + for (int triangleIndex = 0 ; triangleIndex < numfaces;triangleIndex++) + { + unsigned int* gfxbase = (unsigned int*)(indexbase+triangleIndex*indexstride); + + for (int j=2;j>=0;j--) + { + + int graphicsindex = indicestype==PHY_SHORT?((unsigned short*)gfxbase)[j]:gfxbase[j]; + if (type == PHY_FLOAT) + { + float* graphicsbase = (float*)(vertexbase+graphicsindex*stride); + triangleVerts[j] = btVector3( + graphicsbase[0]*trimeshScaling.getX(), + graphicsbase[1]*trimeshScaling.getY(), + graphicsbase[2]*trimeshScaling.getZ()); + } + else + { + double* graphicsbase = (double*)(vertexbase+graphicsindex*stride); + triangleVerts[j] = btVector3( btScalar(graphicsbase[0]*trimeshScaling.getX()), + btScalar(graphicsbase[1]*trimeshScaling.getY()), + btScalar(graphicsbase[2]*trimeshScaling.getZ())); + } + } + indices.push_back(vertices.size()); + vertices.push_back(triangleVerts[0]); + indices.push_back(vertices.size()); + vertices.push_back(triangleVerts[1]); + indices.push_back(vertices.size()); + vertices.push_back(triangleVerts[2]); + + btVector3 triNormal = (triangleVerts[1]-triangleVerts[0]).cross(triangleVerts[2]-triangleVerts[0]); + triNormal.normalize(); + + for (int v=0;v<3;v++) + { + GLInstanceVertex vtx; + btVector3 pos =parentTransform*triangleVerts[v]; + vtx.xyzw[0] = pos.x(); + vtx.xyzw[1] = pos.y(); + vtx.xyzw[2] = pos.z(); + vtx.xyzw[3] = 0.f; + + + vtx.normal[0] =triNormal.x(); + vtx.normal[1] =triNormal.y(); + vtx.normal[2] =triNormal.z(); + + vtx.uv[0] = 0.5f; + vtx.uv[1] = 0.5f; + + indicesOut.push_back(verticesOut.size()); + verticesOut.push_back(vtx); + } + + + } + } + + break; + } + default: + { + if (collisionShape->isConvex()) + { + btConvexShape* convex = (btConvexShape*)collisionShape; + { + btShapeHull* hull = new btShapeHull(convex); + hull->buildHull(0.0); + + { + //int strideInBytes = 9*sizeof(float); + //int numVertices = hull->numVertices(); + //int numIndices =hull->numIndices(); + + for (int t=0;tnumTriangles();t++) + { + + btVector3 triNormal; + + int index0 = hull->getIndexPointer()[t*3+0]; + int index1 = hull->getIndexPointer()[t*3+1]; + int index2 = hull->getIndexPointer()[t*3+2]; + btVector3 pos0 =parentTransform*hull->getVertexPointer()[index0]; + btVector3 pos1 =parentTransform*hull->getVertexPointer()[index1]; + btVector3 pos2 =parentTransform*hull->getVertexPointer()[index2]; + triNormal = (pos1-pos0).cross(pos2-pos0); + triNormal.normalize(); + + for (int v=0;v<3;v++) + { + int index = hull->getIndexPointer()[t*3+v]; + GLInstanceVertex vtx; + btVector3 pos =parentTransform*hull->getVertexPointer()[index]; + vtx.xyzw[0] = pos.x(); + vtx.xyzw[1] = pos.y(); + vtx.xyzw[2] = pos.z(); + vtx.xyzw[3] = 0.f; + + vtx.normal[0] =triNormal.x(); + vtx.normal[1] =triNormal.y(); + vtx.normal[2] =triNormal.z(); + + vtx.uv[0] = 0.5f; + vtx.uv[1] = 0.5f; + + indicesOut.push_back(verticesOut.size()); + verticesOut.push_back(vtx); + } + } + } + } + } else + { + if (collisionShape->isCompound()) + { + btCompoundShape* compound = (btCompoundShape*) collisionShape; + for (int i=0;igetNumChildShapes();i++) + { + + btTransform childWorldTrans = parentTransform * compound->getChildTransform(i); + createCollisionShapeGraphicsObjectInternal(compound->getChildShape(i),childWorldTrans,verticesOut,indicesOut); + } + } else + { + btAssert(0); + } + + } + } + }; +} + +void OpenGLGuiHelper::createCollisionShapeGraphicsObject(btCollisionShape* collisionShape) +{ + //already has a graphics object? + if (collisionShape->getUserIndex()>=0) + return; + + btAlignedObjectArray vertices; + btAlignedObjectArray indices; + btTransform startTrans;startTrans.setIdentity(); + + createCollisionShapeGraphicsObjectInternal(collisionShape,startTrans,vertices,indices); + + if (vertices.size() && indices.size()) + { + int shapeId = m_data->m_glApp->m_renderer->registerShape(&vertices[0].xyzw[0],vertices.size(),&indices[0],indices.size()); + collisionShape->setUserIndex(shapeId); + } + +} +void OpenGLGuiHelper::syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld) +{ + int numCollisionObjects = rbWorld->getNumCollisionObjects(); + for (int i = 0; igetCollisionObjectArray()[i]; + btVector3 pos = colObj->getWorldTransform().getOrigin(); + btQuaternion orn = colObj->getWorldTransform().getRotation(); + int index = colObj->getUserIndex(); + if (index >= 0) + { + m_data->m_glApp->m_renderer->writeSingleInstanceTransformToCPU(pos, orn, index); + } + } + m_data->m_glApp->m_renderer->writeTransforms(); +} + + + +void OpenGLGuiHelper::render(const btDiscreteDynamicsWorld* rbWorld) +{ + + m_data->m_glApp->m_renderer->renderScene(); + //backwards compatible OpenGL2 rendering + + if (m_data->m_gl2ShapeDrawer && rbWorld) + { + m_data->m_gl2ShapeDrawer->enableTexture(true); + m_data->m_gl2ShapeDrawer->drawScene(rbWorld,true); + } +} +void OpenGLGuiHelper::createPhysicsDebugDrawer(btDiscreteDynamicsWorld* rbWorld) +{ + btAssert(rbWorld); + m_data->m_debugDraw = new MyDebugDrawer(m_data->m_glApp); + rbWorld->setDebugDrawer(m_data->m_debugDraw ); + + + m_data->m_debugDraw->setDebugMode( + btIDebugDraw::DBG_DrawWireframe + +btIDebugDraw::DBG_DrawAabb + //btIDebugDraw::DBG_DrawContactPoints + ); + +} + +struct Common2dCanvasInterface* OpenGLGuiHelper::get2dCanvasInterface() +{ + return m_data->m_glApp->m_2dCanvasInterface; +} + +CommonParameterInterface* OpenGLGuiHelper::getParameterInterface() +{ + return m_data->m_glApp->m_parameterInterface; +} + +void OpenGLGuiHelper::setUpAxis(int axis) +{ + m_data->m_glApp->setUpAxis(axis); +} + + +btVector3 OpenGLGuiHelper::selectColor() +{ + btVector4 color = sColors[m_data->m_curColor]; + m_data->m_curColor++; + m_data->m_curColor&=3; + return color; +} + +struct MyConvertPointerSizeT +{ + union + { + const void* m_ptr; + size_t m_int; + }; +}; +bool shapePointerCompareFunc(const btCollisionObject* colA, const btCollisionObject* colB) +{ + MyConvertPointerSizeT a,b; + a.m_ptr = colA->getCollisionShape(); + b.m_ptr = colB->getCollisionShape(); + return (a.m_int sortedObjects; + sortedObjects.reserve(rbWorld->getNumCollisionObjects()); + for (int i=0;igetNumCollisionObjects();i++) + { + btCollisionObject* colObj = rbWorld->getCollisionObjectArray()[i]; + sortedObjects.push_back(colObj); + } + sortedObjects.quickSort(shapePointerCompareFunc); + for (int i=0;igetCollisionShape()); + btVector3 color= selectColor(); + createCollisionObjectGraphicsObject(colObj,color); + + } +} + +void OpenGLGuiHelper::drawText3D( const char* txt, float posX, float posY, float posZ, float size) +{ + btAssert(m_data->m_glApp); + m_data->m_glApp->drawText3D(txt,posX,posY,posZ,size); +} + +struct CommonGraphicsApp* OpenGLGuiHelper::getAppInterface() +{ + return m_data->m_glApp; +} diff --git a/examples/ExampleBrowser/OpenGLGuiHelper.h b/examples/ExampleBrowser/OpenGLGuiHelper.h new file mode 100644 index 000000000..96045bf91 --- /dev/null +++ b/examples/ExampleBrowser/OpenGLGuiHelper.h @@ -0,0 +1,58 @@ +#ifndef OPENGL_GUI_HELPER_H +#define OPENGL_GUI_HELPER_H +#include "../CommonInterfaces/CommonGUIHelperInterface.h" + +class btCollisionShape; +class btTransform; +#include "LinearMath/btAlignedObjectArray.h" + +struct OpenGLGuiHelper : public GUIHelperInterface +{ + struct OpenGLGuiHelperInternalData* m_data; + + OpenGLGuiHelper(struct CommonGraphicsApp* glApp, bool useOpenGL2); + + virtual ~OpenGLGuiHelper(); + + virtual struct CommonRenderInterface* getRenderInterface(); + + virtual void createRigidBodyGraphicsObject(btRigidBody* body, const btVector3& color); + + virtual void createCollisionObjectGraphicsObject(btCollisionObject* body, const btVector3& color); + + virtual int registerGraphicsShape(const float* vertices, int numvertices, const int* indices, int numIndices); + + virtual int registerGraphicsInstance(int shapeIndex, const float* position, const float* quaternion, const float* color, const float* scaling); + + + + virtual void createCollisionShapeGraphicsObject(btCollisionShape* collisionShape); + + virtual void syncPhysicsToGraphics(const btDiscreteDynamicsWorld* rbWorld); + + + + virtual void render(const btDiscreteDynamicsWorld* rbWorld); + + virtual void createPhysicsDebugDrawer(btDiscreteDynamicsWorld* rbWorld); + + virtual struct Common2dCanvasInterface* get2dCanvasInterface(); + + virtual CommonParameterInterface* getParameterInterface(); + + virtual struct CommonGraphicsApp* getAppInterface(); + + + virtual void setUpAxis(int axis); + + btVector3 selectColor(); + + virtual void autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWorld) ; + + virtual void drawText3D( const char* txt, float posX, float posY, float posZ, float size); + + void renderInternalGl2(int pass, const btDiscreteDynamicsWorld* dynamicsWorld); +}; + +#endif //OPENGL_GUI_HELPER_H + diff --git a/examples/ExampleBrowser/main.cpp b/examples/ExampleBrowser/main.cpp new file mode 100644 index 000000000..f1e103e76 --- /dev/null +++ b/examples/ExampleBrowser/main.cpp @@ -0,0 +1,39 @@ + +//#define EXAMPLE_CONSOLE_ONLY +#ifdef EXAMPLE_CONSOLE_ONLY + #include "EmptyBrowser.h" + typedef EmptyBrowser DefaultBrowser; +#else + #include "OpenGLExampleBrowser.h" + typedef OpenGLExampleBrowser DefaultBrowser; +#endif //EXAMPLE_CONSOLE_ONLY + +#include "Bullet3Common/b3CommandLineArgs.h" +#include "../Utils/b3Clock.h" + +#include "ExampleEntries.h" + +int main(int argc, char* argv[]) +{ + b3CommandLineArgs args(argc,argv); + b3Clock clock; + + ExampleEntries examples; + examples.initExampleEntries(); + + ExampleBrowserInterface* exampleBrowser = new DefaultBrowser(&examples); + bool init = exampleBrowser->init(argc,argv); + if (init) + { + do + { + float deltaTimeInSeconds = 1./120.f; + exampleBrowser->update(deltaTimeInSeconds); + + } while (!exampleBrowser->requestedExit()); + } + delete exampleBrowser; + + + return 0; +} diff --git a/examples/ExampleBrowser/premake4.lua b/examples/ExampleBrowser/premake4.lua new file mode 100644 index 000000000..0ef8c69e8 --- /dev/null +++ b/examples/ExampleBrowser/premake4.lua @@ -0,0 +1,107 @@ + + project "App_ExampleBrowser" + + hasCL = findOpenCL("clew") + + if (hasCL) then + + -- project ("App_Bullet3_OpenCL_Demos_" .. vendor) + + initOpenCL("clew") + + end + + language "C++" + + kind "ConsoleApp" + + includedirs { + ".", + "../../src", + "../ThirdPartyLibs", + } + + + links{"gwen", "OpenGL_Window","BulletSoftBody", "BulletDynamics","BulletCollision","LinearMath","Bullet3Common"} + initOpenGL() + initGlew() + + if (hasCL) then + links { + "Bullet3OpenCL_clew", + "Bullet3Dynamics", + "Bullet3Collision", + "Bullet3Geometry", + "Bullet3Common", + } + end + + defines {"INCLUDE_CLOTH_DEMOS"} + + + + files { + "**.cpp", + "**.h", + "../BasicDemo/BasicExample.*", + "../Benchmarks/*", + "../CommonInterfaces/*", + "../ForkLift/ForkLiftDemo.*", + "../Importers/**", + "../../Extras/Serialize/BulletWorldImporter/*", + "../../Extras/Serialize/BulletFileLoader/*", + "../Planar2D/Planar2D.*", + "../RenderingExamples/*", + "../VoronoiFracture/*", + "../SoftDemo/*", + "../Constraints/*", + "../Vehicles/*", + "../Raycast/*", + "../MultiBody/MultiDofDemo.cpp", + "../MultiBody/TestJointTorqueSetup.cpp", + "../ThirdPartyLibs/Wavefront/tiny_obj_loader.*", + "../ThirdPartyLibs/tinyxml/*", + "../Utils/b3Clock.*", + "../GyroscopicDemo/GyroscopicSetup.cpp", + "../GyroscopicDemo/GyroscopicSetup.h", + "../Experiments/ImplicitCloth/**.cpp", + "../Experiments/ImplicitCloth/**.h", + "../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/pose.cpp", + "../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/model.cpp", + "../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/link.cpp", + "../ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/joint.cpp", + "../ThirdPartyLibs/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h", + "../ThirdPartyLibs/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h", + "../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h", + "../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h", + "../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h", + "../ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h", + "../ThirdPartyLibs/tinyxml/tinystr.cpp", + "../ThirdPartyLibs/tinyxml/tinyxml.cpp", + "../ThirdPartyLibs/tinyxml/tinyxmlerror.cpp", + "../ThirdPartyLibs/tinyxml/tinyxmlparser.cpp", + "../ThirdPartyLibs/urdf/boost_replacement/lexical_cast.h", + "../ThirdPartyLibs/urdf/boost_replacement/shared_ptr.h", + "../ThirdPartyLibs/urdf/boost_replacement/printf_console.cpp", + "../ThirdPartyLibs/urdf/boost_replacement/printf_console.h", + "../ThirdPartyLibs/urdf/boost_replacement/string_split.cpp", + "../ThirdPartyLibs/urdf/boost_replacement/string_split.h", + + } + + if (hasCL) then + files { + "../OpenCL/broadphase/*", + "../OpenCL/CommonOpenCL/*" + } + end + +if os.is("Linux") then + initX11() +end + +if os.is("MacOSX") then + links{"Cocoa.framework"} +end + + \ No newline at end of file diff --git a/examples/Experiments/ImplicitCloth/ImplicitClothExample.cpp b/examples/Experiments/ImplicitCloth/ImplicitClothExample.cpp new file mode 100644 index 000000000..7e2d409de --- /dev/null +++ b/examples/Experiments/ImplicitCloth/ImplicitClothExample.cpp @@ -0,0 +1,120 @@ +#include "ImplicitClothExample.h" + + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonCameraInterface.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" +#include "stan/vecmath.h" +#include "stan/Cloth.h" +#include "Bullet3Common/b3Vector3.h" +#include "Bullet3Common/b3AlignedObjectArray.h" + + +#ifdef _DEBUG +int numX = 20, numY=20; +#else +int numX = 60, numY=60; +#endif +const size_t total_points = (numX)*(numY); + + +struct ImplicitClothExample : public CommonExampleInterface +{ + struct GUIHelperInterface* m_guiHelper; + int m_option; + + Cloth* m_cloth; + + + + +public: + ImplicitClothExample(struct GUIHelperInterface* helper, int option) + :m_guiHelper(helper), + m_option(option), + m_cloth(0) + { + } + virtual void initPhysics(); + virtual void exitPhysics(); + virtual void stepSimulation(float deltaTime); + virtual void renderScene(); + virtual void physicsDebugDraw(int debugFlags);//for now we reuse the flags in Bullet/src/LinearMath/btIDebugDraw.h + virtual bool mouseMoveCallback(float x,float y) + { + return false; + } + virtual bool mouseButtonCallback(int button, int state, float x, float y) + { + return false; + } + virtual bool keyboardCallback(int key, int state) + { + return false; + } + + + +}; + + +void ImplicitClothExample::initPhysics() +{ + float size=10; + m_cloth = ClothCreate(numX,numY,size); + +} +void ImplicitClothExample::exitPhysics() +{ + delete m_cloth; + m_cloth=0; +} +void ImplicitClothExample::stepSimulation(float deltaTime) +{ + m_cloth->Simulate(deltaTime); + m_cloth->cloth_gravity.y = -9.8;//-9.8;//-9.8;//-9.8;//0;//-9.8;//0;//-9.8;//0;//-9.8; + m_cloth->cloth_gravity.z =-9.8;//0;//-9.8;//0;//-9.8; + + m_cloth->spring_struct=10000000.0f; + m_cloth->spring_shear=10000000.0f; + + //m_cloth->spring_struct=1000000.0f; + //m_cloth->spring_shear=1000000.0f; + + m_cloth->spring_damp = 0;//100; + + +} +void ImplicitClothExample::renderScene() +{ +} +void ImplicitClothExample::physicsDebugDraw(int debugFlags) +{ + + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + b3AlignedObjectArray indices; + + for (int i=0;isprings.count;i++) + { + indices.push_back(m_cloth->springs[i].a); + indices.push_back(m_cloth->springs[i].b); + } + float lineColor[4]={0.4,0.4,1.0,1}; + renderer->drawLines(&m_cloth->X[0].x,lineColor,total_points,sizeof(float3),&indices[0],indices.size(),1); + + float pointColor[4]={1,0.4,0.4,1}; + +// renderer->drawPoints(&m_cloth->X[0].x,pointColor,total_points,sizeof(float3),3); + + +} + + +class CommonExampleInterface* ImplicitClothCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new ImplicitClothExample(helper, option); +} diff --git a/examples/Experiments/ImplicitCloth/ImplicitClothExample.h b/examples/Experiments/ImplicitCloth/ImplicitClothExample.h new file mode 100644 index 000000000..1856a5ed1 --- /dev/null +++ b/examples/Experiments/ImplicitCloth/ImplicitClothExample.h @@ -0,0 +1,8 @@ +#ifndef IMPLICIT_CLOTH_EXAMPLE_H +#define IMPLICIT_CLOTH_EXAMPLE_H + +class CommonExampleInterface* ImplicitClothCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //IMPLICIT_CLOTH_EXAMPLE_H + diff --git a/Demos3/ImplicitCloth/stan/Cloth.cpp b/examples/Experiments/ImplicitCloth/stan/Cloth.cpp similarity index 100% rename from Demos3/ImplicitCloth/stan/Cloth.cpp rename to examples/Experiments/ImplicitCloth/stan/Cloth.cpp diff --git a/Demos3/ImplicitCloth/stan/Cloth.h b/examples/Experiments/ImplicitCloth/stan/Cloth.h similarity index 100% rename from Demos3/ImplicitCloth/stan/Cloth.h rename to examples/Experiments/ImplicitCloth/stan/Cloth.h diff --git a/Demos3/ImplicitCloth/stan/SpringNetwork.cpp b/examples/Experiments/ImplicitCloth/stan/SpringNetwork.cpp similarity index 100% rename from Demos3/ImplicitCloth/stan/SpringNetwork.cpp rename to examples/Experiments/ImplicitCloth/stan/SpringNetwork.cpp diff --git a/Demos3/ImplicitCloth/stan/SpringNetwork.h b/examples/Experiments/ImplicitCloth/stan/SpringNetwork.h similarity index 100% rename from Demos3/ImplicitCloth/stan/SpringNetwork.h rename to examples/Experiments/ImplicitCloth/stan/SpringNetwork.h diff --git a/Demos3/ImplicitCloth/stan/array.h b/examples/Experiments/ImplicitCloth/stan/array.h similarity index 100% rename from Demos3/ImplicitCloth/stan/array.h rename to examples/Experiments/ImplicitCloth/stan/array.h diff --git a/Demos3/ImplicitCloth/stan/vec3n.cpp b/examples/Experiments/ImplicitCloth/stan/vec3n.cpp similarity index 100% rename from Demos3/ImplicitCloth/stan/vec3n.cpp rename to examples/Experiments/ImplicitCloth/stan/vec3n.cpp diff --git a/Demos3/ImplicitCloth/stan/vec3n.h b/examples/Experiments/ImplicitCloth/stan/vec3n.h similarity index 100% rename from Demos3/ImplicitCloth/stan/vec3n.h rename to examples/Experiments/ImplicitCloth/stan/vec3n.h diff --git a/Demos3/ImplicitCloth/stan/vecmath.cpp b/examples/Experiments/ImplicitCloth/stan/vecmath.cpp similarity index 100% rename from Demos3/ImplicitCloth/stan/vecmath.cpp rename to examples/Experiments/ImplicitCloth/stan/vecmath.cpp diff --git a/Demos3/ImplicitCloth/stan/vecmath.h b/examples/Experiments/ImplicitCloth/stan/vecmath.h similarity index 100% rename from Demos3/ImplicitCloth/stan/vecmath.h rename to examples/Experiments/ImplicitCloth/stan/vecmath.h diff --git a/Demos/ForkLiftDemo/ForkLiftDemo.cpp b/examples/ForkLift/ForkLiftDemo.cpp similarity index 69% rename from Demos/ForkLiftDemo/ForkLiftDemo.cpp rename to examples/ForkLift/ForkLiftDemo.cpp index dec0633d8..c606c492e 100644 --- a/Demos/ForkLiftDemo/ForkLiftDemo.cpp +++ b/examples/ForkLift/ForkLiftDemo.cpp @@ -20,14 +20,139 @@ subject to the following restrictions: ///with gears etc. #include "btBulletDynamicsCommon.h" #include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" -#include "GLDebugFont.h" + #include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" #include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" #include "BulletDynamics/MLCPSolvers/btMLCPSolver.h" +class btVehicleTuning; +struct btVehicleRaycaster; +class btCollisionShape; -btScalar maxMotorImpulse = 1400.f; +#include "BulletDynamics/Vehicle/btRaycastVehicle.h" +#include "BulletDynamics/ConstraintSolver/btHingeConstraint.h" +#include "BulletDynamics/ConstraintSolver/btSliderConstraint.h" + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "LinearMath/btAlignedObjectArray.h" +#include "btBulletCollisionCommon.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" + +///VehicleDemo shows how to setup and use the built-in raycast vehicle +class ForkLiftDemo : public CommonExampleInterface +{ + public: + + /* extra stuff*/ + btVector3 m_cameraPosition; + class btDiscreteDynamicsWorld* m_dynamicsWorld; + btDiscreteDynamicsWorld* getDynamicsWorld() + { + return m_dynamicsWorld; + } + btRigidBody* m_carChassis; + btRigidBody* localCreateRigidBody(btScalar mass, const btTransform& worldTransform, btCollisionShape* colSape); + + GUIHelperInterface* m_guiHelper; + int m_wheelInstances[4]; + +//---------------------------- + btRigidBody* m_liftBody; + btVector3 m_liftStartPos; + btHingeConstraint* m_liftHinge; + + btRigidBody* m_forkBody; + btVector3 m_forkStartPos; + btSliderConstraint* m_forkSlider; + + btRigidBody* m_loadBody; + btVector3 m_loadStartPos; + + void lockLiftHinge(void); + void lockForkSlider(void); + + bool m_useDefaultCamera; +//---------------------------- + + + btAlignedObjectArray m_collisionShapes; + + class btBroadphaseInterface* m_overlappingPairCache; + + class btCollisionDispatcher* m_dispatcher; + + class btConstraintSolver* m_constraintSolver; + + class btDefaultCollisionConfiguration* m_collisionConfiguration; + + class btTriangleIndexVertexArray* m_indexVertexArrays; + + btVector3* m_vertices; + + + btRaycastVehicle::btVehicleTuning m_tuning; + btVehicleRaycaster* m_vehicleRayCaster; + btRaycastVehicle* m_vehicle; + btCollisionShape* m_wheelShape; + + float m_cameraHeight; + + float m_minCameraDistance; + float m_maxCameraDistance; + + + ForkLiftDemo(struct GUIHelperInterface* helper); + + virtual ~ForkLiftDemo(); + + virtual void stepSimulation(float deltaTime); + + virtual void resetForklift(); + + virtual void clientResetScene(); + + virtual void displayCallback(); + + virtual void specialKeyboard(int key, int x, int y); + + virtual void specialKeyboardUp(int key, int x, int y); + + virtual bool mouseMoveCallback(float x,float y) + { + return false; + } + + virtual bool mouseButtonCallback(int button, int state, float x, float y) + { + return false; + } + + virtual bool keyboardCallback(int key, int state); + + virtual void renderScene(); + + virtual void physicsDebugDraw(int debugFlags); + + + void initPhysics(); + void exitPhysics(); + + /*static DemoApplication* Create() + { + ForkLiftDemo* demo = new ForkLiftDemo(); + demo->myinit(); + demo->initPhysics(); + return demo; + } + */ +}; + + +btScalar maxMotorImpulse = 4000.f; //the sequential impulse solver has difficulties dealing with large mass ratios (differences), between loadMass and the fork parts btScalar loadMass = 350.f;// @@ -46,35 +171,18 @@ btScalar loadMass = 350.f;// #define M_PI_4 0.785398163397448309616 #endif -//#define LIFT_EPS 0.0000001f -// -// By default, Bullet Vehicle uses Y as up axis. -// You can override the up axis, for example Z-axis up. Enable this define to see how to: -//#define FORCE_ZAXIS_UP 1 -// - -#ifdef FORCE_ZAXIS_UP - int rightIndex = 0; - int upIndex = 2; - int forwardIndex = 1; - btVector3 wheelDirectionCS0(0,0,-1); - btVector3 wheelAxleCS(1,0,0); -#else int rightIndex = 0; int upIndex = 1; int forwardIndex = 2; btVector3 wheelDirectionCS0(0,-1,0); btVector3 wheelAxleCS(-1,0,0); -#endif bool useMCLPSolver = true; -#include "GLDebugDrawer.h" + #include //printf debugging -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" #include "ForkLiftDemo.h" @@ -115,8 +223,8 @@ btScalar suspensionRestLength(0.6); -ForkLiftDemo::ForkLiftDemo() -: +ForkLiftDemo::ForkLiftDemo(struct GUIHelperInterface* helper) +:m_guiHelper(helper), m_carChassis(0), m_liftBody(0), m_forkBody(0), @@ -127,12 +235,13 @@ m_cameraHeight(4.f), m_minCameraDistance(3.f), m_maxCameraDistance(10.f) { + helper->setUpAxis(1); m_vehicle = 0; m_wheelShape = 0; m_cameraPosition = btVector3(30,30,30); m_useDefaultCamera = false; - setTexturing(true); - setShadows(true); +// setTexturing(true); +// setShadows(true); } @@ -178,40 +287,51 @@ void ForkLiftDemo::exitPhysics() //delete dynamics world delete m_dynamicsWorld; + m_dynamicsWorld=0; delete m_vehicleRayCaster; + m_vehicleRayCaster = 0; delete m_vehicle; + m_vehicle=0; delete m_wheelShape; + m_wheelShape=0; //delete solver delete m_constraintSolver; + m_constraintSolver=0; //delete broadphase delete m_overlappingPairCache; + m_overlappingPairCache=0; //delete dispatcher delete m_dispatcher; + m_dispatcher=0; delete m_collisionConfiguration; + m_collisionConfiguration=0; } ForkLiftDemo::~ForkLiftDemo() { - exitPhysics(); + //exitPhysics(); } void ForkLiftDemo::initPhysics() { - -#ifdef FORCE_ZAXIS_UP - m_cameraUp = btVector3(0,0,1); - m_forwardAxis = 1; -#endif - btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); + + + int upAxis = 1; + + m_guiHelper->setUpAxis(upAxis); + + btVector3 groundExtents(50,50,50); + groundExtents[upAxis]=3; + btCollisionShape* groundShape = new btBoxShape(groundExtents); m_collisionShapes.push_back(groundShape); m_collisionConfiguration = new btDefaultCollisionConfiguration(); m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); @@ -236,9 +356,9 @@ void ForkLiftDemo::initPhysics() { m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 128;//for direct solver, it is better to solve multiple objects together, small batches have high overhead } -#ifdef FORCE_ZAXIS_UP - m_dynamicsWorld->setGravity(btVector3(0,0,-10)); -#endif + + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + //m_dynamicsWorld->setGravity(btVector3(0,0,0)); btTransform tr; @@ -251,17 +371,6 @@ tr.setOrigin(btVector3(0,-3,0)); //create ground object localCreateRigidBody(0,tr,groundShape); -#ifdef FORCE_ZAXIS_UP -// indexRightAxis = 0; -// indexUpAxis = 2; -// indexForwardAxis = 1; - btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,2.f, 0.5f)); - btCompoundShape* compound = new btCompoundShape(); - btTransform localTrans; - localTrans.setIdentity(); - //localTrans effectively shifts the center of mass with respect to the chassis - localTrans.setOrigin(btVector3(0,0,1)); -#else btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,0.5f,2.f)); m_collisionShapes.push_back(chassisShape); @@ -271,7 +380,6 @@ tr.setOrigin(btVector3(0,-3,0)); localTrans.setIdentity(); //localTrans effectively shifts the center of mass with respect to the chassis localTrans.setOrigin(btVector3(0,1,0)); -#endif compound->addChildShape(localTrans,chassisShape); @@ -291,6 +399,21 @@ tr.setOrigin(btVector3(0,-3,0)); m_wheelShape = new btCylinderShapeX(btVector3(wheelWidth,wheelRadius,wheelRadius)); + m_guiHelper->createCollisionShapeGraphicsObject(m_wheelShape); + int wheelGraphicsIndex = m_wheelShape->getUserIndex(); + + const float position[4]={0,10,10,0}; + const float quaternion[4]={0,0,0,1}; + const float color[4]={0,1,0,1}; + const float scaling[4] = {1,1,1,1}; + + for (int i=0;i<4;i++) + { + m_wheelInstances[i] = m_guiHelper->registerGraphicsInstance(wheelGraphicsIndex, position, quaternion, color, scaling); + } + + + { btCollisionShape* liftShape = new btBoxShape(btVector3(0.5f,2.0f,0.05f)); m_collisionShapes.push_back(liftShape); @@ -400,32 +523,16 @@ tr.setOrigin(btVector3(0,-3,0)); //choose coordinate system m_vehicle->setCoordinateSystem(rightIndex,upIndex,forwardIndex); -#ifdef FORCE_ZAXIS_UP - btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else btVector3 connectionPointCS0(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),2*CUBE_HALF_EXTENTS-wheelRadius, connectionHeight); -#else connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,2*CUBE_HALF_EXTENTS-wheelRadius); -#endif m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else connectionPointCS0 = btVector3(-CUBE_HALF_EXTENTS+(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif //FORCE_ZAXIS_UP isFrontWheel = false; m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); -#ifdef FORCE_ZAXIS_UP - connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),-2*CUBE_HALF_EXTENTS+wheelRadius, connectionHeight); -#else connectionPointCS0 = btVector3(CUBE_HALF_EXTENTS-(0.3*wheelWidth),connectionHeight,-2*CUBE_HALF_EXTENTS+wheelRadius); -#endif m_vehicle->addWheel(connectionPointCS0,wheelDirectionCS0,wheelAxleCS,suspensionRestLength,wheelRadius,m_tuning,isFrontWheel); for (int i=0;igetNumWheels();i++) @@ -441,16 +548,44 @@ tr.setOrigin(btVector3(0,-3,0)); resetForklift(); - setCameraDistance(26.f); +// setCameraDistance(26.f); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } +void ForkLiftDemo::physicsDebugDraw(int debugFlags) +{ + if (m_dynamicsWorld && m_dynamicsWorld->getDebugDrawer()) + { + m_dynamicsWorld->getDebugDrawer()->setDebugMode(debugFlags); + m_dynamicsWorld->debugDrawWorld(); + } +} //to be implemented by the demo -void ForkLiftDemo::renderme() +void ForkLiftDemo::renderScene() { + m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld); + + for (int i=0;igetNumWheels();i++) + { + //synchronize the wheels with the (interpolated) chassis worldtransform + m_vehicle->updateWheelTransform(i,true); + + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + if (renderer) + { + btTransform tr = m_vehicle->getWheelInfo(i).m_worldTransform; + btVector3 pos=tr.getOrigin(); + btQuaternion orn = tr.getRotation(); + renderer->writeSingleInstanceTransformToCPU(pos,orn,m_wheelInstances[i]); + } + } + + + m_guiHelper->render(m_dynamicsWorld); + - updateCamera(); ATTRIBUTE_ALIGNED16(btScalar) m[16]; int i; @@ -468,10 +603,10 @@ void ForkLiftDemo::renderme() m_vehicle->updateWheelTransform(i,true); //draw wheels (cylinders) m_vehicle->getWheelInfo(i).m_worldTransform.getOpenGLMatrix(m); - m_shapeDrawer->drawOpenGL(m,m_wheelShape,wheelColor,getDebugMode(),worldBoundsMin,worldBoundsMax); +// m_shapeDrawer->drawOpenGL(m,m_wheelShape,wheelColor,getDebugMode(),worldBoundsMin,worldBoundsMax); } - +#if 0 int lineWidth=400; int xStart = m_glutScreenWidth - lineWidth; int yStart = 20; @@ -528,13 +663,13 @@ void ForkLiftDemo::renderme() resetPerspectiveProjection(); glEnable(GL_LIGHTING); } - DemoApplication::renderme(); +#endif } -void ForkLiftDemo::clientMoveAndDisplay() +void ForkLiftDemo::stepSimulation(float deltaTime) { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); { @@ -554,15 +689,13 @@ void ForkLiftDemo::clientMoveAndDisplay() } - float dt = getDeltaTimeMicroseconds() * 0.000001f; + float dt = deltaTime; if (m_dynamicsWorld) { //during idle mode, just run 1 simulation step maximum - int maxSimSubSteps = m_idle ? 1 : 2; - if (m_idle) - dt = 1.0/420.f; - + int maxSimSubSteps = 2; + int numSimSteps; numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps); @@ -602,44 +735,22 @@ void ForkLiftDemo::clientMoveAndDisplay() - - - -#ifdef USE_QUICKPROF - btProfiler::beginBlock("render"); -#endif //USE_QUICKPROF - - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - -#ifdef USE_QUICKPROF - btProfiler::endBlock("render"); -#endif - - - glFlush(); - glutSwapBuffers(); - } void ForkLiftDemo::displayCallback(void) { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); +// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - renderme(); + //renderme(); //optional but useful: debug drawing if (m_dynamicsWorld) m_dynamicsWorld->debugDrawWorld(); - glFlush(); - glutSwapBuffers(); +// glFlush(); +// glutSwapBuffers(); } @@ -704,41 +815,182 @@ void ForkLiftDemo::resetForklift() } +bool ForkLiftDemo::keyboardCallback(int key, int state) +{ + bool handled = false; + bool isShiftPressed = m_guiHelper->getAppInterface()->m_window->isModifierKeyPressed(B3G_SHIFT); + + if (state) + { + if (isShiftPressed) + { + switch (key) + { + case B3G_LEFT_ARROW : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, -0.1, maxMotorImpulse); + handled = true; + break; + } + case B3G_RIGHT_ARROW : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, 0.1, maxMotorImpulse); + handled = true; + break; + } + case B3G_UP_ARROW : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(1.0); + handled = true; + break; + } + case B3G_DOWN_ARROW : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(-1.0); + handled = true; + break; + } + } + + } else + { + switch (key) + { + case B3G_LEFT_ARROW : + { + handled = true; + gVehicleSteering += steeringIncrement; + if ( gVehicleSteering > steeringClamp) + gVehicleSteering = steeringClamp; + + break; + } + case B3G_RIGHT_ARROW : + { + handled = true; + gVehicleSteering -= steeringIncrement; + if ( gVehicleSteering < -steeringClamp) + gVehicleSteering = -steeringClamp; + + break; + } + case B3G_UP_ARROW : + { + handled = true; + gEngineForce = maxEngineForce; + gBreakingForce = 0.f; + break; + } + case B3G_DOWN_ARROW : + { + handled = true; + gEngineForce = -maxEngineForce; + gBreakingForce = 0.f; + break; + } + + case B3G_F7: + { + handled = true; + btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*)m_dynamicsWorld; + world->setLatencyMotionStateInterpolation(!world->getLatencyMotionStateInterpolation()); + printf("world latencyMotionStateInterpolation = %d\n", world->getLatencyMotionStateInterpolation()); + break; + } + case B3G_F6: + { + handled = true; + //switch solver (needs demo restart) + useMCLPSolver = !useMCLPSolver; + printf("switching to useMLCPSolver = %d\n", useMCLPSolver); + + delete m_constraintSolver; + if (useMCLPSolver) + { + btDantzigSolver* mlcp = new btDantzigSolver(); + //btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; + btMLCPSolver* sol = new btMLCPSolver(mlcp); + m_constraintSolver = sol; + } else + { + m_constraintSolver = new btSequentialImpulseConstraintSolver(); + } + + m_dynamicsWorld->setConstraintSolver(m_constraintSolver); + + + //exitPhysics(); + //initPhysics(); + break; + } + + case B3G_F5: + handled = true; + m_useDefaultCamera = !m_useDefaultCamera; + break; + default: + break; + } + } + + } else + { + switch (key) + { + case B3G_UP_ARROW: + { + lockForkSlider(); + gEngineForce = 0.f; + gBreakingForce = defaultBreakingForce; + handled=true; + break; + } + case B3G_DOWN_ARROW: + { + lockForkSlider(); + gEngineForce = 0.f; + gBreakingForce = defaultBreakingForce; + handled=true; + break; + } + case B3G_LEFT_ARROW: + case B3G_RIGHT_ARROW: + { + lockLiftHinge(); + handled=true; + break; + } + default: + + break; + } + } + return handled; +} void ForkLiftDemo::specialKeyboardUp(int key, int x, int y) { - switch (key) - { - case GLUT_KEY_UP : - { - lockForkSlider(); - gEngineForce = 0.f; - gBreakingForce = defaultBreakingForce; - break; - } - case GLUT_KEY_DOWN : - { - lockForkSlider(); - gEngineForce = 0.f; - gBreakingForce = defaultBreakingForce; - break; - } - case GLUT_KEY_LEFT: - case GLUT_KEY_RIGHT: - { - lockLiftHinge(); - break; - } - default: - DemoApplication::specialKeyboardUp(key,x,y); - break; - } +#if 0 + +#endif } void ForkLiftDemo::specialKeyboard(int key, int x, int y) { - +#if 0 if (key==GLUT_KEY_END) return; @@ -865,64 +1117,9 @@ void ForkLiftDemo::specialKeyboard(int key, int x, int y) } // glutPostRedisplay(); - +#endif } -void ForkLiftDemo::updateCamera() -{ - -//#define DISABLE_CAMERA 1 - if(m_useDefaultCamera) - { - DemoApplication::updateCamera(); - return; - } - - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - - btTransform chassisWorldTrans; - - //look at the vehicle - m_carChassis->getMotionState()->getWorldTransform(chassisWorldTrans); - m_cameraTargetPosition = chassisWorldTrans.getOrigin(); - - //interpolate the camera height -#ifdef FORCE_ZAXIS_UP - m_cameraPosition[2] = (15.0*m_cameraPosition[2] + m_cameraTargetPosition[2] + m_cameraHeight)/16.0; -#else - m_cameraPosition[1] = (15.0*m_cameraPosition[1] + m_cameraTargetPosition[1] + m_cameraHeight)/16.0; -#endif - - btVector3 camToObject = m_cameraTargetPosition - m_cameraPosition; - - //keep distance between min and max distance - float cameraDistance = camToObject.length(); - float correctionFactor = 0.f; - if (cameraDistance < m_minCameraDistance) - { - correctionFactor = 0.15*(m_minCameraDistance-cameraDistance)/cameraDistance; - } - if (cameraDistance > m_maxCameraDistance) - { - correctionFactor = 0.15*(m_maxCameraDistance-cameraDistance)/cameraDistance; - } - m_cameraPosition -= correctionFactor*camToObject; - - //update OpenGL camera settings - btScalar aspect = m_glutScreenWidth / (btScalar)m_glutScreenHeight; - glFrustum (-aspect, aspect, -1.0, 1.0, 1.0, 10000.0); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - gluLookAt(m_cameraPosition[0],m_cameraPosition[1],m_cameraPosition[2], - m_cameraTargetPosition[0],m_cameraTargetPosition[1], m_cameraTargetPosition[2], - m_cameraUp.getX(),m_cameraUp.getY(),m_cameraUp.getZ()); - - - -} void ForkLiftDemo::lockLiftHinge(void) { @@ -971,3 +1168,39 @@ void ForkLiftDemo::lockForkSlider(void) } return; } // ForkLiftDemo::lockForkSlider() + +btRigidBody* ForkLiftDemo::localCreateRigidBody(btScalar mass, const btTransform& startTransform, btCollisionShape* shape) +{ + btAssert((!shape || shape->getShapeType() != INVALID_SHAPE_PROXYTYPE)); + + //rigidbody is dynamic if and only if mass is non zero, otherwise static + bool isDynamic = (mass != 0.f); + + btVector3 localInertia(0,0,0); + if (isDynamic) + shape->calculateLocalInertia(mass,localInertia); + + //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects + +#define USE_MOTIONSTATE 1 +#ifdef USE_MOTIONSTATE + btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); + + btRigidBody::btRigidBodyConstructionInfo cInfo(mass,myMotionState,shape,localInertia); + + btRigidBody* body = new btRigidBody(cInfo); + //body->setContactProcessingThreshold(m_defaultContactProcessingThreshold); + +#else + btRigidBody* body = new btRigidBody(mass,0,shape,localInertia); + body->setWorldTransform(startTransform); +#endif// + + m_dynamicsWorld->addRigidBody(body); + return body; +} + +CommonExampleInterface* ForkLiftCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new ForkLiftDemo(helper); +} diff --git a/Demos/BasicDemo/Win32BasicDemo.cpp b/examples/ForkLift/ForkLiftDemo.h similarity index 75% rename from Demos/BasicDemo/Win32BasicDemo.cpp rename to examples/ForkLift/ForkLiftDemo.h index 72f92a15f..0510a0088 100644 --- a/Demos/BasicDemo/Win32BasicDemo.cpp +++ b/examples/ForkLift/ForkLiftDemo.h @@ -1,7 +1,6 @@ -#ifdef _WINDOWS /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -13,13 +12,11 @@ subject to the following restrictions: 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#ifndef FORKLIFT_DEMO_H +#define FORKLIFT_DEMO_H -#include "BasicDemo.h" +class CommonExampleInterface* ForkLiftCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif // FORKLIFT_DEMO_H -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new BasicDemo(); -} -#endif diff --git a/Demos/GyroscopicDemo/GyroscopicSetup.cpp b/examples/GyroscopicDemo/GyroscopicSetup.cpp similarity index 72% rename from Demos/GyroscopicDemo/GyroscopicSetup.cpp rename to examples/GyroscopicDemo/GyroscopicSetup.cpp index 3b3b497dd..dfa24df33 100644 --- a/Demos/GyroscopicDemo/GyroscopicSetup.cpp +++ b/examples/GyroscopicDemo/GyroscopicSetup.cpp @@ -1,5 +1,26 @@ #include "GyroscopicSetup.h" + + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +struct GyroscopicSetup : public CommonRigidBodyBase +{ + + GyroscopicSetup(struct GUIHelperInterface* helper); + + virtual ~GyroscopicSetup() + { + } + virtual void initPhysics(); + + + virtual void physicsDebugDraw(int debugFlags); + +}; + + static int gyroflags[4] = { 0,//none, no gyroscopic term BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT, @@ -8,19 +29,25 @@ static int gyroflags[4] = { }; static const char* gyroNames[4] = { - "No Coriolis", + "No Gyroscopic", "Explicit", "Implicit (World)", "Implicit (Body)" }; -void GyroscopicSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +GyroscopicSetup::GyroscopicSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) { - gfxBridge.setUpAxis(2); + +} + +void GyroscopicSetup::initPhysics() +{ + m_guiHelper->setUpAxis(1); createEmptyDynamicsWorld(); m_dynamicsWorld->setGravity(btVector3(0, 0, 0)); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); btVector3 positions[4] = { @@ -64,7 +91,7 @@ void GyroscopicSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) { //btCollisionShape* groundShape = new btBoxShape(btVector3(btScalar(50.),btScalar(50.),btScalar(0.5))); - btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0, 0, 1), 0); + btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0, 1, 0), 0); m_collisionShapes.push_back(groundShape); btTransform groundTransform; @@ -74,12 +101,13 @@ void GyroscopicSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) groundBody = createRigidBody(0, groundTransform, groundShape); groundBody->setFriction(btSqrt(2)); } - gfxBridge.autogenerateGraphicsObjects(m_dynamicsWorld); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } -void GyroscopicSetup::syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) +void GyroscopicSetup::physicsDebugDraw(int debugFlags) { - CommonRigidBodySetup::syncPhysicsToGraphics(gfxBridge); + CommonRigidBodyBase::physicsDebugDraw(debugFlags); + //render method names above objects for (int i=0;igetNumCollisionObjects();i++) { @@ -89,7 +117,13 @@ void GyroscopicSetup::syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) btTransform tr = body->getWorldTransform(); btVector3 pos = tr.getOrigin()+btVector3(0,0,2); btScalar size=1; - gfxBridge.drawText3D(gyroNames[i],pos.x(),pos.y(),pos.z(),size); + m_guiHelper->drawText3D(gyroNames[i],pos.x(),pos.y(),pos.z(),size); } } } + + +class CommonExampleInterface* GyroscopicCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new GyroscopicSetup(helper); +} \ No newline at end of file diff --git a/examples/GyroscopicDemo/GyroscopicSetup.h b/examples/GyroscopicDemo/GyroscopicSetup.h new file mode 100644 index 000000000..9ffcbd4c5 --- /dev/null +++ b/examples/GyroscopicDemo/GyroscopicSetup.h @@ -0,0 +1,7 @@ + +#ifndef GYROSCOPIC_SETUP_H +#define GYROSCOPIC_SETUP_H + +class CommonExampleInterface* GyroscopicCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //GYROSCOPIC_SETUP_H diff --git a/Demos/HelloWorld/CMakeLists.txt b/examples/HelloWorld/CMakeLists.txt similarity index 56% rename from Demos/HelloWorld/CMakeLists.txt rename to examples/HelloWorld/CMakeLists.txt index 3c15ad1d7..66fcab054 100644 --- a/Demos/HelloWorld/CMakeLists.txt +++ b/examples/HelloWorld/CMakeLists.txt @@ -9,12 +9,12 @@ LINK_LIBRARIES( ) IF (WIN32) - ADD_EXECUTABLE(AppHelloWorld + ADD_EXECUTABLE(App_HelloWorld HelloWorld.cpp ${BULLET_PHYSICS_SOURCE_DIR}/build3/bullet.rc ) ELSE() - ADD_EXECUTABLE(AppHelloWorld + ADD_EXECUTABLE(App_HelloWorld HelloWorld.cpp ) ENDIF() @@ -23,7 +23,7 @@ ENDIF() IF (INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) - SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES DEBUG_POSTFIX "_Debug") - SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") - SET_TARGET_PROPERTIES(AppHelloWorld PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") + SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES DEBUG_POSTFIX "_Debug") + SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES MINSIZEREL_POSTFIX "_MinsizeRel") + SET_TARGET_PROPERTIES(App_HelloWorld PROPERTIES RELWITHDEBINFO_POSTFIX "_RelWithDebugInfo") ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES) \ No newline at end of file diff --git a/Demos/HelloWorld/HelloWorld.cpp b/examples/HelloWorld/HelloWorld.cpp similarity index 93% rename from Demos/HelloWorld/HelloWorld.cpp rename to examples/HelloWorld/HelloWorld.cpp index f1934b269..f7a195746 100644 --- a/Demos/HelloWorld/HelloWorld.cpp +++ b/examples/HelloWorld/HelloWorld.cpp @@ -67,7 +67,7 @@ int main(int argc, char** argv) if (isDynamic) groundShape->calculateLocalInertia(mass,localInertia); - //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects + //using motionstate is optional, it provides interpolation capabilities, and only synchronizes 'active' objects btDefaultMotionState* myMotionState = new btDefaultMotionState(groundTransform); btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,groundShape,localInertia); btRigidBody* body = new btRigidBody(rbInfo); @@ -122,12 +122,16 @@ int main(int argc, char** argv) { btCollisionObject* obj = dynamicsWorld->getCollisionObjectArray()[j]; btRigidBody* body = btRigidBody::upcast(obj); + btTransform trans; if (body && body->getMotionState()) { - btTransform trans; body->getMotionState()->getWorldTransform(trans); - printf("world pos = %f,%f,%f\n",float(trans.getOrigin().getX()),float(trans.getOrigin().getY()),float(trans.getOrigin().getZ())); + + } else + { + trans = obj->getWorldTransform(); } + printf("world pos object %d = %f,%f,%f\n",j,float(trans.getOrigin().getX()),float(trans.getOrigin().getY()),float(trans.getOrigin().getZ())); } } @@ -176,5 +180,7 @@ int main(int argc, char** argv) collisionShapes.clear(); ///-----cleanup_end----- + printf("Press a key to exit\n"); + getchar(); } diff --git a/Demos/HelloWorld/premake4.lua b/examples/HelloWorld/premake4.lua similarity index 100% rename from Demos/HelloWorld/premake4.lua rename to examples/HelloWorld/premake4.lua diff --git a/Demos/BspDemo/BspConverter.cpp b/examples/Importers/ImportBsp/BspConverter.cpp similarity index 100% rename from Demos/BspDemo/BspConverter.cpp rename to examples/Importers/ImportBsp/BspConverter.cpp diff --git a/Demos/BspDemo/BspConverter.h b/examples/Importers/ImportBsp/BspConverter.h similarity index 100% rename from Demos/BspDemo/BspConverter.h rename to examples/Importers/ImportBsp/BspConverter.h diff --git a/Demos/BspDemo/BspLoader.cpp b/examples/Importers/ImportBsp/BspLoader.cpp similarity index 100% rename from Demos/BspDemo/BspLoader.cpp rename to examples/Importers/ImportBsp/BspLoader.cpp diff --git a/Demos/BspDemo/BspLoader.h b/examples/Importers/ImportBsp/BspLoader.h similarity index 100% rename from Demos/BspDemo/BspLoader.h rename to examples/Importers/ImportBsp/BspLoader.h diff --git a/Demos/BspDemo/BspDemo.cpp b/examples/Importers/ImportBsp/ImportBspExample.cpp similarity index 75% rename from Demos/BspDemo/BspDemo.cpp rename to examples/Importers/ImportBsp/ImportBspExample.cpp index 52e48eb1b..7045d2bf4 100644 --- a/Demos/BspDemo/BspDemo.cpp +++ b/examples/Importers/ImportBsp/ImportBspExample.cpp @@ -13,12 +13,13 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ +#include "ImportBspExample.h" + #include "btBulletDynamicsCommon.h" #include "LinearMath/btQuickprof.h" -#include "LinearMath/btIDebugDraw.h" -#include "GLDebugDrawer.h" + #define QUAKE_BSP_IMPORTING 1 @@ -32,13 +33,42 @@ subject to the following restrictions: #include //printf debugging -#include "BspDemo.h" -#include "GL_ShapeDrawer.h" -#include "GlutStuff.h" +#include "LinearMath/btAlignedObjectArray.h" + + + + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +///BspDemo shows the convex collision detection, by converting a Quake BSP file into convex objects and allowing interaction with boxes. +class BspDemo : public CommonRigidBodyBase +{ + public: + + //keep the collision shapes, for deletion/cleanup + + + BspDemo(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) + { + } + + virtual ~BspDemo(); + + virtual void initPhysics(); + + void initPhysics(const char* bspfilename); + + + +}; + + #define CUBE_HALF_EXTENTS 1 #define EXTRA_HEIGHT -20.f @@ -74,7 +104,7 @@ public: m_demoApp->m_collisionShapes.push_back(shape); //btRigidBody* body = m_demoApp->localCreateRigidBody(mass, startTransform,shape); - m_demoApp->localCreateRigidBody(mass, startTransform,shape); + m_demoApp->createRigidBody(mass, startTransform,shape); } } }; @@ -93,42 +123,7 @@ public: BspDemo::~BspDemo() { - //cleanup in the reverse order of creation/initialization - - //remove the rigidbodies from the dynamics world and delete them - int i; - for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) - { - btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; - btRigidBody* body = btRigidBody::upcast(obj); - if (body && body->getMotionState()) - { - delete body->getMotionState(); - } - m_dynamicsWorld->removeCollisionObject( obj ); - delete obj; - } - - //delete collision shapes - for (int j=0;jsetUpAxis(cameraUpAxis); + btVector3 grav(0,0,0); + grav[cameraUpAxis] = -10; + m_guiHelper->setUpAxis(cameraUpAxis); + +//_cameraUp = btVector3(0,0,1); +//_forwardAxis = 1; - setCameraDistance(22.f); +//etCameraDistance(22.f); ///Setup a Physics Simulation Environment @@ -163,8 +162,8 @@ void BspDemo::initPhysics(const char* bspfilename) m_solver = new btSequentialImpulseConstraintSolver(); //ConstraintSolver* solver = new OdeConstraintSolver; m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - - m_dynamicsWorld->setGravity(-m_cameraUp * 10); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->setGravity(grav); #ifdef QUAKE_BSP_IMPORTING @@ -173,8 +172,7 @@ void BspDemo::initPhysics(const char* bspfilename) const char* filename = "BspDemo.bsp"; - const char* prefix[]={"./","../","../../","../../../","../../../../", "BspDemo/", "Demos/BspDemo/", - "../Demos/BspDemo/","../../Demos/BspDemo/"}; + const char* prefix[]={"./","./data/","../data/","../../data/","../../../data/","../../../../data/"}; int numPrefixes = sizeof(prefix)/sizeof(const char*); char relativeFileName[1024]; FILE* file=0; @@ -211,47 +209,13 @@ void BspDemo::initPhysics(const char* bspfilename) #endif + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); - - clientResetScene(); - -} - - -void BspDemo::clientMoveAndDisplay() -{ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - float dt = getDeltaTimeMicroseconds() * 0.000001f; - - m_dynamicsWorld->stepSimulation(dt); - - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); - - renderme(); - - glFlush(); - glutSwapBuffers(); - } -void BspDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - - renderme(); - - //optional but useful: debug drawing - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - glutSwapBuffers(); -} @@ -311,3 +275,22 @@ char* makeExeToBspFilename(const char* lpCmdLine) return cleaned_filename; } + + +struct CommonExampleInterface* ImportBspCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + BspDemo* demo = new BspDemo(helper); + + demo->initPhysics("BspDemo.bsp"); + return demo; + +} +/* +static DemoApplication* Create() + { + BspDemo* demo = new BspDemo; + demo->myinit(); + demo->initPhysics("BspDemo.bsp"); + return demo; + } + */ \ No newline at end of file diff --git a/examples/Importers/ImportBsp/ImportBspExample.h b/examples/Importers/ImportBsp/ImportBspExample.h new file mode 100644 index 000000000..297aa6216 --- /dev/null +++ b/examples/Importers/ImportBsp/ImportBspExample.h @@ -0,0 +1,23 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ +#ifndef BSP_DEMO_H +#define BSP_DEMO_H + +class CommonExampleInterface* ImportBspCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //BSP_DEMO_H + + diff --git a/Demos/SerializeDemo/SerializeSetup.cpp b/examples/Importers/ImportBullet/SerializeSetup.cpp similarity index 53% rename from Demos/SerializeDemo/SerializeSetup.cpp rename to examples/Importers/ImportBullet/SerializeSetup.cpp index e0773b58e..7351b0cbd 100644 --- a/Demos/SerializeDemo/SerializeSetup.cpp +++ b/examples/Importers/ImportBullet/SerializeSetup.cpp @@ -1,7 +1,22 @@ #include "SerializeSetup.h" #include "../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.h" -SerializeSetup::SerializeSetup() + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + +class SerializeSetup : public CommonRigidBodyBase +{ +public: + SerializeSetup(struct GUIHelperInterface* helper); + virtual ~SerializeSetup(); + + virtual void initPhysics(); + virtual void stepSimulation(float deltaTime); +}; + + +SerializeSetup::SerializeSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) { } @@ -10,10 +25,10 @@ SerializeSetup::~SerializeSetup() } -void SerializeSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void SerializeSetup::initPhysics() { this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe+btIDebugDraw::DBG_DrawContactPoints); btBulletWorldImporter* importer = new btBulletWorldImporter(m_dynamicsWorld); const char* someFileName="spider.bullet"; @@ -46,16 +61,35 @@ void SerializeSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) //for now, guess the up axis from gravity if (m_dynamicsWorld->getGravity()[1] == 0.f) { - gfxBridge.setUpAxis(2); + m_guiHelper->setUpAxis(2); } else { - gfxBridge.setUpAxis(1); + m_guiHelper->setUpAxis(1); } - gfxBridge.autogenerateGraphicsObjects(m_dynamicsWorld); + + //example code to export the dynamics world to a .bullet file + + + btDefaultSerializer* serializer = new btDefaultSerializer(); + m_dynamicsWorld->serialize(serializer); + + FILE* file = fopen("testFile.bullet","wb"); + fwrite(serializer->getBufferPointer(),serializer->getCurrentBufferSize(),1, file); + fclose(file); + + + + + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } void SerializeSetup::stepSimulation(float deltaTime) { - CommonRigidBodySetup::stepSimulation(deltaTime); + CommonRigidBodyBase::stepSimulation(deltaTime); +} + +class CommonExampleInterface* SerializeBulletCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new SerializeSetup(helper); } diff --git a/examples/Importers/ImportBullet/SerializeSetup.h b/examples/Importers/ImportBullet/SerializeSetup.h new file mode 100644 index 000000000..81a0500e6 --- /dev/null +++ b/examples/Importers/ImportBullet/SerializeSetup.h @@ -0,0 +1,7 @@ +#ifndef SERIALIZE_SETUP_H +#define SERIALIZE_SETUP_H + +class CommonExampleInterface* SerializeBulletCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //SERIALIZE_SETUP_H diff --git a/Demos3/ImportColladaDemo/ColladaGraphicsInstance.h b/examples/Importers/ImportColladaDemo/ColladaGraphicsInstance.h similarity index 100% rename from Demos3/ImportColladaDemo/ColladaGraphicsInstance.h rename to examples/Importers/ImportColladaDemo/ColladaGraphicsInstance.h diff --git a/Demos3/ImportColladaDemo/ImportColladaSetup.cpp b/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp similarity index 83% rename from Demos3/ImportColladaDemo/ImportColladaSetup.cpp rename to examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp index da2f1a9d2..746edab27 100644 --- a/Demos3/ImportColladaDemo/ImportColladaSetup.cpp +++ b/examples/Importers/ImportColladaDemo/ImportColladaSetup.cpp @@ -18,15 +18,29 @@ subject to the following restrictions: #include "ImportColladaSetup.h" #include -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include "btBulletDynamicsCommon.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" #include "LoadMeshFromCollada.h" #include "Bullet3Common/b3FileUtils.h" -ImportColladaSetup::ImportColladaSetup(CommonGraphicsApp* app) -:m_app(app) +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + + +class ImportColladaSetup : public CommonRigidBodyBase +{ + +public: + ImportColladaSetup(struct GUIHelperInterface* helper); + virtual ~ImportColladaSetup(); + + virtual void initPhysics(); +}; + +ImportColladaSetup::ImportColladaSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) { } @@ -44,12 +58,12 @@ static int ColladaGraphicsInstanceSortfnc(const ColladaGraphicsInstance& a,const } -void ImportColladaSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void ImportColladaSetup::initPhysics() { int upAxis=1; - gfxBridge.setUpAxis(upAxis); + m_guiHelper->setUpAxis(upAxis); this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe); static int fileIndex = 0; @@ -173,12 +187,17 @@ void ImportColladaSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) verts[v].xyzw[2] = float(pos[2]); } - int shapeId = m_app->m_renderer->registerShape(&verts[0].xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); + int shapeId = m_guiHelper->getRenderInterface()->registerShape(&verts[0].xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); //btVector3 instanceScaling(instance->m_scaling[0],instance->m_scaling[1],instance->m_scaling[2]); - m_app->m_renderer->registerGraphicsInstance(shapeId,position,orn,color,scaling); + m_guiHelper->getRenderInterface()->registerGraphicsInstance(shapeId,position,orn,color,scaling); } } } } + +class CommonExampleInterface* ImportColladaCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new ImportColladaSetup(helper); +} \ No newline at end of file diff --git a/Demos3/ImportColladaDemo/ImportColladaSetup.h b/examples/Importers/ImportColladaDemo/ImportColladaSetup.h similarity index 77% rename from Demos3/ImportColladaDemo/ImportColladaSetup.h rename to examples/Importers/ImportColladaDemo/ImportColladaSetup.h index d95a4b679..954167025 100644 --- a/Demos3/ImportColladaDemo/ImportColladaSetup.h +++ b/examples/Importers/ImportColladaDemo/ImportColladaSetup.h @@ -19,17 +19,7 @@ subject to the following restrictions: #ifndef IMPORT_COLLADA_SETUP_H #define IMPORT_COLLADA_SETUP_H +class CommonExampleInterface* ImportColladaCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); -#include "Bullet3AppSupport/CommonRigidBodySetup.h" - -class ImportColladaSetup : public CommonRigidBodySetup -{ - struct CommonGraphicsApp* m_app; -public: - ImportColladaSetup(CommonGraphicsApp* app); - virtual ~ImportColladaSetup(); - - virtual void initPhysics(GraphicsPhysicsBridge& gfxBridge); -}; #endif //IMPORT_COLLADA_SETUP_H diff --git a/Demos3/ImportColladaDemo/LoadMeshFromCollada.cpp b/examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp similarity index 100% rename from Demos3/ImportColladaDemo/LoadMeshFromCollada.cpp rename to examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp diff --git a/Demos3/ImportColladaDemo/LoadMeshFromCollada.h b/examples/Importers/ImportColladaDemo/LoadMeshFromCollada.h similarity index 97% rename from Demos3/ImportColladaDemo/LoadMeshFromCollada.h rename to examples/Importers/ImportColladaDemo/LoadMeshFromCollada.h index 7e2d02bfd..c65666f8b 100644 --- a/Demos3/ImportColladaDemo/LoadMeshFromCollada.h +++ b/examples/Importers/ImportColladaDemo/LoadMeshFromCollada.h @@ -21,7 +21,7 @@ subject to the following restrictions: #include "LinearMath/btAlignedObjectArray.h" #include "LinearMath/btTransform.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include "ColladaGraphicsInstance.h" diff --git a/Demos3/ImportColladaDemo/btMatrix4x4.h b/examples/Importers/ImportColladaDemo/btMatrix4x4.h similarity index 100% rename from Demos3/ImportColladaDemo/btMatrix4x4.h rename to examples/Importers/ImportColladaDemo/btMatrix4x4.h diff --git a/examples/Importers/ImportObjDemo/ImportObjExample.cpp b/examples/Importers/ImportObjDemo/ImportObjExample.cpp new file mode 100644 index 000000000..5088733db --- /dev/null +++ b/examples/Importers/ImportObjDemo/ImportObjExample.cpp @@ -0,0 +1,105 @@ +#include "ImportObjExample.h" +#include +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include"Wavefront/tiny_obj_loader.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" +#include "btBulletDynamicsCommon.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" +#include "Wavefront2GLInstanceGraphicsShape.h" + + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +class ImportObjSetup : public CommonRigidBodyBase +{ + +public: + ImportObjSetup(struct GUIHelperInterface* helper); + virtual ~ImportObjSetup(); + + virtual void initPhysics(); +}; + +ImportObjSetup::ImportObjSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) +{ + +} + +ImportObjSetup::~ImportObjSetup() +{ + +} + + + + + + + +void ImportObjSetup::initPhysics() +{ + m_guiHelper->setUpAxis(2); + this->createEmptyDynamicsWorld(); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe); + const char* fileName = "samurai_monastry.obj"; + char relativeFileName[1024]; + const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; + int prefixIndex=-1; + { + + int numPrefixes = sizeof(prefix)/sizeof(char*); + + for (int i=0;i shapes; + std::string err = tinyobj::LoadObj(shapes, relativeFileName, prefix[prefixIndex]); + + GLInstanceGraphicsShape* gfxShape = btgCreateGraphicsShapeFromWavefrontObj(shapes); + + btTransform trans; + trans.setIdentity(); + trans.setRotation(btQuaternion(btVector3(1,0,0),SIMD_HALF_PI)); + + btVector3 position = trans.getOrigin(); + btQuaternion orn = trans.getRotation(); + + btVector3 color(0,0,1); + + + int shapeId = m_guiHelper->getRenderInterface()->registerShape(&gfxShape->m_vertices->at(0).xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); + + //int id = + m_guiHelper->getRenderInterface()->registerGraphicsInstance(shapeId,position,orn,color,scaling); + + + } +} + + CommonExampleInterface* ImportObjCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) + { + return new ImportObjSetup(helper); + } diff --git a/examples/Importers/ImportObjDemo/ImportObjExample.h b/examples/Importers/ImportObjDemo/ImportObjExample.h new file mode 100644 index 000000000..305736830 --- /dev/null +++ b/examples/Importers/ImportObjDemo/ImportObjExample.h @@ -0,0 +1,7 @@ +#ifndef IMPORT_OBJ_EXAMPLE_H +#define IMPORT_OBJ_EXAMPLE_H + +class CommonExampleInterface* ImportObjCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //IMPORT_OBJ_EXAMPLE_H diff --git a/Demos3/ImportObjDemo/LoadMeshFromObj.cpp b/examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp similarity index 84% rename from Demos3/ImportObjDemo/LoadMeshFromObj.cpp rename to examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp index f309c0f16..4988fb877 100644 --- a/Demos3/ImportObjDemo/LoadMeshFromObj.cpp +++ b/examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp @@ -1,6 +1,6 @@ #include "LoadMeshFromObj.h" -#include"../Wavefront/tiny_obj_loader.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include"Wavefront/tiny_obj_loader.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include //fopen #include "Bullet3Common/b3AlignedObjectArray.h" #include @@ -14,4 +14,4 @@ GLInstanceGraphicsShape* LoadMeshFromObj(const char* relativeFileName, const cha GLInstanceGraphicsShape* gfxShape = btgCreateGraphicsShapeFromWavefrontObj(shapes); return gfxShape; -} \ No newline at end of file +} diff --git a/Demos3/ImportObjDemo/LoadMeshFromObj.h b/examples/Importers/ImportObjDemo/LoadMeshFromObj.h similarity index 100% rename from Demos3/ImportObjDemo/LoadMeshFromObj.h rename to examples/Importers/ImportObjDemo/LoadMeshFromObj.h diff --git a/Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp b/examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp similarity index 93% rename from Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp rename to examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp index f7d6d7d19..d7d18e701 100644 --- a/Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp +++ b/examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp @@ -1,12 +1,12 @@ #include "Wavefront2GLInstanceGraphicsShape.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include "btBulletDynamicsCommon.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" #include "Wavefront2GLInstanceGraphicsShape.h" -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" GLInstanceGraphicsShape* btgCreateGraphicsShapeFromWavefrontObj(std::vector& shapes) { diff --git a/Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h b/examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h similarity index 84% rename from Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h rename to examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h index 09f0bf683..c93d1c465 100644 --- a/Demos3/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h +++ b/examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.h @@ -1,7 +1,7 @@ #ifndef WAVEFRONT2GRAPHICS_H #define WAVEFRONT2GRAPHICS_H -#include"../Wavefront/tiny_obj_loader.h" +#include"Wavefront/tiny_obj_loader.h" #include struct GLInstanceGraphicsShape* btgCreateGraphicsShapeFromWavefrontObj(std::vector& shapes); diff --git a/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp b/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp new file mode 100644 index 000000000..7af6ccc96 --- /dev/null +++ b/examples/Importers/ImportSTLDemo/ImportSTLSetup.cpp @@ -0,0 +1,98 @@ +#include "ImportSTLSetup.h" +#include +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" +#include "btBulletDynamicsCommon.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" +#include "LoadMeshFromSTL.h" +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + + + +class ImportSTLSetup : public CommonRigidBodyBase +{ + +public: + ImportSTLSetup(struct GUIHelperInterface* helper); + virtual ~ImportSTLSetup(); + + virtual void initPhysics(); +}; + + +ImportSTLSetup::ImportSTLSetup(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper) +{ + +} + +ImportSTLSetup::~ImportSTLSetup() +{ + +} + + + +void ImportSTLSetup::initPhysics() +{ + m_guiHelper->setUpAxis(2); + this->createEmptyDynamicsWorld(); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->getDebugDrawer()->setDebugMode(btIDebugDraw::DBG_DrawWireframe); + + const char* fileName = "l_finger_tip.stl"; + char relativeFileName[1024]; + const char* prefix[]={"./data/","../data/","../../data/","../../../data/","../../../../data/"}; + int prefixIndex=-1; + { + + int numPrefixes = sizeof(prefix)/sizeof(char*); + + for (int i=0;igetRenderInterface()->registerShape(&gfxShape->m_vertices->at(0).xyzw[0], gfxShape->m_numvertices, &gfxShape->m_indices->at(0), gfxShape->m_numIndices); + + + + m_guiHelper->getRenderInterface()->registerGraphicsInstance(shapeId,position,orn,color,scaling); + + } +} + +class CommonExampleInterface* ImportSTLCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new ImportSTLSetup(helper); +} diff --git a/examples/Importers/ImportSTLDemo/ImportSTLSetup.h b/examples/Importers/ImportSTLDemo/ImportSTLSetup.h new file mode 100644 index 000000000..75c5da01c --- /dev/null +++ b/examples/Importers/ImportSTLDemo/ImportSTLSetup.h @@ -0,0 +1,6 @@ +#ifndef IMPORT_STL_SETUP_H +#define IMPORT_STL_SETUP_H + +class CommonExampleInterface* ImportSTLCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //IMPORT_OBJ_SETUP_H diff --git a/Demos3/ImportSTLDemo/LoadMeshFromSTL.h b/examples/Importers/ImportSTLDemo/LoadMeshFromSTL.h similarity index 98% rename from Demos3/ImportSTLDemo/LoadMeshFromSTL.h rename to examples/Importers/ImportSTLDemo/LoadMeshFromSTL.h index d6f7fa01e..a71bd8185 100644 --- a/Demos3/ImportSTLDemo/LoadMeshFromSTL.h +++ b/examples/Importers/ImportSTLDemo/LoadMeshFromSTL.h @@ -2,7 +2,7 @@ #ifndef LOAD_MESH_FROM_STL_H #define LOAD_MESH_FROM_STL_H -#include "OpenGLWindow/GLInstanceGraphicsShape.h" +#include "../OpenGLWindow/GLInstanceGraphicsShape.h" #include //fopen #include "Bullet3Common/b3AlignedObjectArray.h" diff --git a/Demos3/ImportURDFDemo/ConvertRigidBodies2MultiBody.h b/examples/Importers/ImportURDFDemo/ConvertRigidBodies2MultiBody.h similarity index 100% rename from Demos3/ImportURDFDemo/ConvertRigidBodies2MultiBody.h rename to examples/Importers/ImportURDFDemo/ConvertRigidBodies2MultiBody.h diff --git a/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp b/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp new file mode 100644 index 000000000..ff21149d1 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/ImportURDFSetup.cpp @@ -0,0 +1,277 @@ + +#include "ImportURDFSetup.h" +#include "BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.h" + + +#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" +#include "Bullet3Common/b3FileUtils.h" + +#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" +#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" +#include "../CommonInterfaces/CommonParameterInterface.h" +#include "MyURDFImporter.h" + + +#include "URDF2Bullet.h" + + +//#include "urdf_samples.h" + + + + + +#include "../CommonInterfaces/CommonMultiBodyBase.h" + +#include "MyMultiBodyCreator.h" + + +class ImportUrdfSetup : public CommonMultiBodyBase +{ + char m_fileName[1024]; + + struct ImportUrdfInternalData* m_data; + bool m_useMultiBody; + +public: + ImportUrdfSetup(struct GUIHelperInterface* helper, int option); + virtual ~ImportUrdfSetup(); + + virtual void initPhysics(); + virtual void stepSimulation(float deltaTime); + + void setFileName(const char* urdfFileName); +}; + + +btAlignedObjectArray gFileNameArray; + + +#define MAX_NUM_MOTORS 1024 + +struct ImportUrdfInternalData +{ + ImportUrdfInternalData() + :m_numMotors(0) + { + } + + btScalar m_motorTargetVelocities[MAX_NUM_MOTORS]; + btMultiBodyJointMotor* m_jointMotors [MAX_NUM_MOTORS]; + int m_numMotors; +}; + + +ImportUrdfSetup::ImportUrdfSetup(struct GUIHelperInterface* helper, int option) + :CommonMultiBodyBase(helper) +{ + if (option==1) + { + m_useMultiBody = true; + } else + { + m_useMultiBody = false; + } + + static int count = 0; + gFileNameArray.clear(); + gFileNameArray.push_back("r2d2.urdf"); + + m_data = new ImportUrdfInternalData; + + //load additional urdf file names from file + + FILE* f = fopen("urdf_files.txt","r"); + if (f) + { + int result; + //warning: we don't avoid string buffer overflow in this basic example in fscanf + char fileName[1024]; + do + { + result = fscanf(f,"%s",fileName); + if (result==1) + { + gFileNameArray.push_back(fileName); + } + } while (result==1); + + fclose(f); + } + + int numFileNames = gFileNameArray.size(); + + if (count>=numFileNames) + { + count=0; + } + sprintf(m_fileName,gFileNameArray[count++].c_str()); +} + +ImportUrdfSetup::~ImportUrdfSetup() +{ + delete m_data; +} + +static btVector4 colors[4] = +{ + btVector4(1,0,0,1), + btVector4(0,1,0,1), + btVector4(0,1,1,1), + btVector4(1,1,0,1), +}; + + +btVector3 selectColor() +{ + + static int curColor = 0; + btVector4 color = colors[curColor]; + curColor++; + curColor&=3; + return color; +} + +void ImportUrdfSetup::setFileName(const char* urdfFileName) +{ + memcpy(m_fileName,urdfFileName,strlen(urdfFileName)+1); +} + + + + +void ImportUrdfSetup::initPhysics() +{ + + int upAxis = 2; + m_guiHelper->setUpAxis(2); + + this->createEmptyDynamicsWorld(); + //m_dynamicsWorld->getSolverInfo().m_numIterations = 100; + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->getDebugDrawer()->setDebugMode( + btIDebugDraw::DBG_DrawConstraints + +btIDebugDraw::DBG_DrawContactPoints + +btIDebugDraw::DBG_DrawAabb + );//+btIDebugDraw::DBG_DrawConstraintLimits); + + + btVector3 gravity(0,0,0); + gravity[upAxis]=-9.8; + + m_dynamicsWorld->setGravity(gravity); + + + + //now print the tree using the new interface + MyURDFImporter u2b(m_guiHelper); + bool loadOk = u2b.loadURDF(m_fileName); + + if (loadOk) + { + u2b.printTree(); + + btTransform identityTrans; + identityTrans.setIdentity(); + + + { + + + btMultiBody* mb = 0; + + + //todo: move these internal API called inside the 'ConvertURDF2Bullet' call, hidden from the user + int rootLinkIndex = u2b.getRootLinkIndex(); + printf("urdf root link index = %d\n",rootLinkIndex); + MyMultiBodyCreator creation(m_guiHelper); + + ConvertURDF2Bullet(u2b,creation, identityTrans,m_dynamicsWorld,m_useMultiBody,u2b.getPathPrefix()); + mb = creation.getBulletMultiBody(); + + if (m_useMultiBody) + { + + + + //create motors for each joint + + for (int i=0;igetNumLinks();i++) + { + int mbLinkIndex = i; + if (mb->getLink(mbLinkIndex).m_jointType==btMultibodyLink::eRevolute) + { + if (m_data->m_numMotorsm_motorTargetVelocities[m_data->m_numMotors]; + *motorVel = 0.f; + SliderParams slider(motorName,motorVel); + slider.m_minVal=-4; + slider.m_maxVal=4; + m_guiHelper->getParameterInterface()->registerSliderFloatParameter(slider); + float maxMotorImpulse = 0.1f; + btMultiBodyJointMotor* motor = new btMultiBodyJointMotor(mb,mbLinkIndex,0,0,maxMotorImpulse); + m_data->m_jointMotors[m_data->m_numMotors]=motor; + m_dynamicsWorld->addMultiBodyConstraint(motor); + m_data->m_numMotors++; + } + } + + } + } + } + + //the btMultiBody support is work-in-progress :-) + + + + + bool createGround=true; + if (createGround) + { + btVector3 groundHalfExtents(20,20,20); + groundHalfExtents[upAxis]=1.f; + btBoxShape* box = new btBoxShape(groundHalfExtents); + box->initializePolyhedralFeatures(); + + m_guiHelper->createCollisionShapeGraphicsObject(box); + btTransform start; start.setIdentity(); + btVector3 groundOrigin(0,0,0); + groundOrigin[upAxis]=-2;//.5; + start.setOrigin(groundOrigin); + btRigidBody* body = createRigidBody(0,start,box); + //m_dynamicsWorld->removeRigidBody(body); + // m_dynamicsWorld->addRigidBody(body,2,1); + btVector3 color(0.5,0.5,0.5); + m_guiHelper->createRigidBodyGraphicsObject(body,color); + } + + ///this extra stepSimulation call makes sure that all the btMultibody transforms are properly propagates. + m_dynamicsWorld->stepSimulation(1. / 240., 0);// 1., 10, 1. / 240.); + } +} + +void ImportUrdfSetup::stepSimulation(float deltaTime) +{ + if (m_dynamicsWorld) + { + for (int i=0;im_numMotors;i++) + { + m_data->m_jointMotors[i]->setVelocityTarget(m_data->m_motorTargetVelocities[i]); + } + + //the maximal coordinates/iterative MLCP solver requires a smallish timestep to converge + m_dynamicsWorld->stepSimulation(deltaTime,10,1./240.); + } +} + +class CommonExampleInterface* ImportURDFCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + + return new ImportUrdfSetup(helper, option); +} \ No newline at end of file diff --git a/examples/Importers/ImportURDFDemo/ImportURDFSetup.h b/examples/Importers/ImportURDFDemo/ImportURDFSetup.h new file mode 100644 index 000000000..fb7732a39 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/ImportURDFSetup.h @@ -0,0 +1,7 @@ +#ifndef IMPORT_URDF_SETUP_H +#define IMPORT_URDF_SETUP_H + + +class CommonExampleInterface* ImportURDFCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //IMPORT_URDF_SETUP_H diff --git a/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h b/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h new file mode 100644 index 000000000..04cd5bd93 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/MultiBodyCreationInterface.h @@ -0,0 +1,30 @@ +#ifndef MULTIBODY_CREATION_INTERFACE_H +#define MULTIBODY_CREATION_INTERFACE_H + +#include "LinearMath/btTransform.h" + +class MultiBodyCreationInterface +{ +public: + + virtual ~MultiBodyCreationInterface() {} + + + virtual void createRigidBodyGraphicsInstance(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) = 0; + + ///optionally create some graphical representation from a collision object, usually for visual debugging purposes. + virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* col, const btVector3& colorRgba) = 0; + + virtual class btMultiBody* allocateMultiBody(int urdfLinkIndex, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep, bool multiDof) =0; + + virtual class btRigidBody* allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape) = 0; + + virtual class btGeneric6DofSpring2Constraint* allocateGeneric6DofSpring2Constraint(int urdfLinkIndex, btRigidBody& rbA /*parent*/, btRigidBody& rbB, const btTransform& offsetInA, const btTransform& offsetInB, int rotateOrder=0) = 0; + + virtual class btMultiBodyLinkCollider* allocateMultiBodyLinkCollider(int urdfLinkIndex, int mbLinkIndex, btMultiBody* body) = 0; + + virtual void addLinkMapping(int urdfLinkIndex, int mbLinkIndex) = 0; + +}; + +#endif //MULTIBODY_CREATION_INTERFACE_H \ No newline at end of file diff --git a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp new file mode 100644 index 000000000..c0f60066d --- /dev/null +++ b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp @@ -0,0 +1,72 @@ +#include "MyMultiBodyCreator.h" + +#include "../CommonInterfaces/CommonGUIHelperInterface.h" + +#include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" +#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" + +#include "BulletCollision/CollisionShapes/btCompoundShape.h" + +#include "btBulletDynamicsCommon.h" +#include "BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.h" + + +MyMultiBodyCreator::MyMultiBodyCreator(GUIHelperInterface* guiHelper) + :m_guiHelper(guiHelper), + m_bulletMultiBody(0) +{ +} + + + class btMultiBody* MyMultiBodyCreator::allocateMultiBody(int /* urdfLinkIndex */, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep, bool multiDof) +{ + m_urdf2mbLink.resize(totalNumJoints+1,-2); + m_mb2urdfLink.resize(totalNumJoints+1,-2); + + m_bulletMultiBody = new btMultiBody(totalNumJoints,mass,localInertiaDiagonal,isFixedBase,canSleep,multiDof); + return m_bulletMultiBody; +} + +class btRigidBody* MyMultiBodyCreator::allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape) +{ + btRigidBody::btRigidBodyConstructionInfo rbci(mass, 0, colShape, localInertiaDiagonal); + rbci.m_startWorldTransform = initialWorldTrans; + btRigidBody* body = new btRigidBody(rbci); + return body; +} + +class btMultiBodyLinkCollider* MyMultiBodyCreator::allocateMultiBodyLinkCollider(int /*urdfLinkIndex*/, int mbLinkIndex, btMultiBody* multiBody) +{ + btMultiBodyLinkCollider* mbCol= new btMultiBodyLinkCollider(multiBody, mbLinkIndex); + return mbCol; +} + + +class btGeneric6DofSpring2Constraint* MyMultiBodyCreator::allocateGeneric6DofSpring2Constraint(int urdfLinkIndex, btRigidBody& rbA /*parent*/, btRigidBody& rbB, const btTransform& offsetInA, const btTransform& offsetInB, int rotateOrder) +{ + btGeneric6DofSpring2Constraint* c = new btGeneric6DofSpring2Constraint(rbA,rbB,offsetInA, offsetInB, (RotateOrder)rotateOrder); + return c; +} + +void MyMultiBodyCreator::addLinkMapping(int urdfLinkIndex, int mbLinkIndex) +{ + m_urdf2mbLink[urdfLinkIndex] = mbLinkIndex; + m_mb2urdfLink[mbLinkIndex] = urdfLinkIndex; +} + +void MyMultiBodyCreator::createRigidBodyGraphicsInstance(int linkIndex, btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) +{ + + m_guiHelper->createRigidBodyGraphicsObject(body, colorRgba); +} + +void MyMultiBodyCreator::createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* colObj, const btVector3& colorRgba) +{ + m_guiHelper->createCollisionObjectGraphicsObject(colObj,colorRgba); +} + +btMultiBody* MyMultiBodyCreator::getBulletMultiBody() +{ + return m_bulletMultiBody; +} + diff --git a/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h new file mode 100644 index 000000000..f28360313 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/MyMultiBodyCreator.h @@ -0,0 +1,49 @@ + +#ifndef MY_MULTIBODY_CREATOR +#define MY_MULTIBODY_CREATOR + +#include "MultiBodyCreationInterface.h" +#include "LinearMath/btAlignedObjectArray.h" + +struct GUIHelperInterface; +class btMultiBody; + +class MyMultiBodyCreator : public MultiBodyCreationInterface +{ + + btMultiBody* m_bulletMultiBody; + + struct GUIHelperInterface* m_guiHelper; + + + +public: + + btAlignedObjectArray m_urdf2mbLink; + btAlignedObjectArray m_mb2urdfLink; + + + MyMultiBodyCreator(GUIHelperInterface* guiHelper); + + virtual ~MyMultiBodyCreator() {} + + virtual void createRigidBodyGraphicsInstance(int linkIndex, class btRigidBody* body, const btVector3& colorRgba, int graphicsIndex) ; + + ///optionally create some graphical representation from a collision object, usually for visual debugging purposes. + virtual void createCollisionObjectGraphicsInstance(int linkIndex, class btCollisionObject* col, const btVector3& colorRgba); + + virtual class btMultiBody* allocateMultiBody(int urdfLinkIndex, int totalNumJoints,btScalar mass, const btVector3& localInertiaDiagonal, bool isFixedBase, bool canSleep, bool multiDof); + + virtual class btRigidBody* allocateRigidBody(int urdfLinkIndex, btScalar mass, const btVector3& localInertiaDiagonal, const btTransform& initialWorldTrans, class btCollisionShape* colShape); + + virtual class btGeneric6DofSpring2Constraint* allocateGeneric6DofSpring2Constraint(int urdfLinkIndex, btRigidBody& rbA /*parent*/, btRigidBody& rbB, const btTransform& offsetInA, const btTransform& offsetInB, int rotateOrder=0); + + virtual class btMultiBodyLinkCollider* allocateMultiBodyLinkCollider(int urdfLinkIndex, int mbLinkIndex, btMultiBody* body); + + virtual void addLinkMapping(int urdfLinkIndex, int mbLinkIndex); + + btMultiBody* getBulletMultiBody(); + +}; + +#endif //MY_MULTIBODY_CREATOR diff --git a/examples/Importers/ImportURDFDemo/MyURDFImporter.cpp b/examples/Importers/ImportURDFDemo/MyURDFImporter.cpp new file mode 100644 index 000000000..737477ba7 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/MyURDFImporter.cpp @@ -0,0 +1,881 @@ +/* Copyright (C) 2015 Google + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + + +#include "MyURDFImporter.h" + + +#include "URDFImporterInterface.h" +#include "btBulletCollisionCommon.h" +#include "../ImportObjDemo/LoadMeshFromObj.h" +#include "../ImportSTLDemo/LoadMeshFromSTL.h" +#include "../ImportColladaDemo/LoadMeshFromCollada.h" +#include "BulletCollision/CollisionShapes/btShapeHull.h"//to create a tesselation of a generic btConvexShape +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "Bullet3Common/b3FileUtils.h" +#include + +#include "urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h" +#include +#include +using namespace urdf; + +void convertURDFToVisualShape(const Visual* visual, const char* pathPrefix, const btTransform& visualTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut); +btCollisionShape* convertURDFToCollisionShape(const Collision* visual, const char* pathPrefix); + + + + +static void printTreeInternal(my_shared_ptr link,int level = 0) +{ + level+=2; + int count = 0; + for (std::vector >::const_iterator child = link->child_links.begin(); child != link->child_links.end(); child++) + { + if (*child) + { + for(int j=0;jname << std::endl; + // first grandchild + printTreeInternal(*child,level); + } + else + { + for(int j=0;jname << " has a null child!" << *child << std::endl; + } + } + +} + + + + +struct MyURDFInternalData +{ + my_shared_ptr m_robot; + std::vector > m_links; + struct GUIHelperInterface* m_guiHelper; + const char* m_pathPrefix; + +}; + +void MyURDFImporter::printTree() +{ + printTreeInternal(m_data->m_robot->getRoot(),0); +} + +enum MyFileType +{ + FILE_STL=1, + FILE_COLLADA=2, + FILE_OBJ=3, +}; + + + +MyURDFImporter::MyURDFImporter(struct GUIHelperInterface* helper) +{ + m_data = new MyURDFInternalData; + m_data->m_robot = 0; + m_data->m_guiHelper = helper; + m_data->m_pathPrefix=0; + + + +} + +bool MyURDFImporter::loadURDF(const char* fileName) +{ + + +//int argc=0; + char relativeFileName[1024]; + + b3FileUtils fu; + + bool fileFound = fu.findFile(fileName, relativeFileName, 1024); + + std::string xml_string; + char pathPrefix[1024]; + pathPrefix[0] = 0; + + if (!fileFound){ + std::cerr << "URDF file not found" << std::endl; + return false; + } else + { + + int maxPathLen = 1024; + fu.extractPath(relativeFileName,pathPrefix,maxPathLen); + + + std::fstream xml_file(relativeFileName, std::fstream::in); + while ( xml_file.good() ) + { + std::string line; + std::getline( xml_file, line); + xml_string += (line + "\n"); + } + xml_file.close(); + } + + my_shared_ptr robot = parseURDF(xml_string); + if (!robot){ + std::cerr << "ERROR: Model Parsing the xml failed" << std::endl; + return false; + } + std::cout << "robot name is: " << robot->getName() << std::endl; + + // get info from parser + std::cout << "Successfully Parsed URDF" << std::endl; + // get root link + my_shared_ptr root_link=robot->getRoot(); + if (!root_link) + { + std::cout << "Failed to find root link in URDF" << std::endl; + return false; + } + + + m_data->m_robot = robot; + + m_data->m_robot->getLinks(m_data->m_links); + + //initialize the 'index' of each link + for (int i=0;im_links.size();i++) + { + m_data->m_links[i]->m_link_index = i; + } + + return true; +} + +const char* MyURDFImporter::getPathPrefix() +{ + return m_data->m_pathPrefix; +} + + +MyURDFImporter::~MyURDFImporter() +{ + delete m_data; +} + + +int MyURDFImporter::getRootLinkIndex() const +{ + if (m_data->m_links.size()) + { + int rootLinkIndex = m_data->m_robot->getRoot()->m_link_index; + // btAssert(m_links[0]->m_link_index == rootLinkIndex); + return rootLinkIndex; + } + return -1; +}; + +void MyURDFImporter::getLinkChildIndices(int linkIndex, btAlignedObjectArray& childLinkIndices) const +{ + childLinkIndices.resize(0); + int numChildren = m_data->m_links[linkIndex]->child_links.size(); + + for (int i=0;im_links[linkIndex]->child_links[i]->m_link_index; + childLinkIndices.push_back(childIndex); + } +} + +std::string MyURDFImporter::getLinkName(int linkIndex) const +{ + std::string n = m_data->m_links[linkIndex]->name; + return n; +} + +std::string MyURDFImporter::getJointName(int linkIndex) const +{ + return m_data->m_links[linkIndex]->parent_joint->name; +} + + +void MyURDFImporter::getMassAndInertia(int linkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const +{ + if ((*m_data->m_links[linkIndex]).inertial) + { + mass = (*m_data->m_links[linkIndex]).inertial->mass; + localInertiaDiagonal.setValue((*m_data->m_links[linkIndex]).inertial->ixx,(*m_data->m_links[linkIndex]).inertial->iyy,(*m_data->m_links[linkIndex]).inertial->izz); + inertialFrame.setOrigin(btVector3((*m_data->m_links[linkIndex]).inertial->origin.position.x,(*m_data->m_links[linkIndex]).inertial->origin.position.y,(*m_data->m_links[linkIndex]).inertial->origin.position.z)); + inertialFrame.setRotation(btQuaternion((*m_data->m_links[linkIndex]).inertial->origin.rotation.x,(*m_data->m_links[linkIndex]).inertial->origin.rotation.y,(*m_data->m_links[linkIndex]).inertial->origin.rotation.z,(*m_data->m_links[linkIndex]).inertial->origin.rotation.w)); + } else + { + mass = 1.f; + localInertiaDiagonal.setValue(1,1,1); + inertialFrame.setIdentity(); + } +} + +bool MyURDFImporter::getJointInfo(int urdfLinkIndex, btTransform& parent2joint, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit) const +{ + jointLowerLimit = 0.f; + jointUpperLimit = 0.f; + + if ((*m_data->m_links[urdfLinkIndex]).parent_joint) + { + my_shared_ptr pj =(*m_data->m_links[urdfLinkIndex]).parent_joint; + + const urdf::Vector3 pos = pj->parent_to_joint_origin_transform.position; + const urdf::Rotation orn = pj->parent_to_joint_origin_transform.rotation; + + jointAxisInJointSpace.setValue(pj->axis.x,pj->axis.y,pj->axis.z); + parent2joint.setOrigin(btVector3(pos.x,pos.y,pos.z)); + parent2joint.setRotation(btQuaternion(orn.x,orn.y,orn.z,orn.w)); + + switch (pj->type) + { + case Joint::REVOLUTE: + jointType = URDFRevoluteJoint; + break; + case Joint::FIXED: + jointType = URDFFixedJoint; + break; + case Joint::PRISMATIC: + jointType = URDFPrismaticJoint; + break; + case Joint::PLANAR: + jointType = URDFPlanarJoint; + break; + case Joint::CONTINUOUS: + jointType = URDFContinuousJoint; + break; + default: + { + printf("Error: unknown joint type %d\n", pj->type); + btAssert(0); + } + + }; + + if (pj->limits) + { + jointLowerLimit = pj->limits.get()->lower; + jointUpperLimit = pj->limits.get()->upper; + } + return true; + } else + { + parent2joint.setIdentity(); + return false; + } +} + + + +void convertURDFToVisualShape(const Visual* visual, const char* pathPrefix, const btTransform& visualTransform, btAlignedObjectArray& verticesOut, btAlignedObjectArray& indicesOut) +{ + + + GLInstanceGraphicsShape* glmesh = 0; + + btConvexShape* convexColShape = 0; + + switch (visual->geometry->type) + { + case Geometry::CYLINDER: + { + printf("processing a cylinder\n"); + urdf::Cylinder* cyl = (urdf::Cylinder*)visual->geometry.get(); + btAlignedObjectArray vertices; + + //int numVerts = sizeof(barrel_vertices)/(9*sizeof(float)); + int numSteps = 32; + for (int i = 0; iradius*btSin(SIMD_2_PI*(float(i) / numSteps)), cyl->radius*btCos(SIMD_2_PI*(float(i) / numSteps)), cyl->length / 2.); + vertices.push_back(vert); + vert[2] = -cyl->length / 2.; + vertices.push_back(vert); + } + + btConvexHullShape* cylZShape = new btConvexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); + cylZShape->setMargin(0.001); + convexColShape = cylZShape; + break; + } + case Geometry::BOX: + { + printf("processing a box\n"); + urdf::Box* box = (urdf::Box*)visual->geometry.get(); + btVector3 extents(box->dim.x, box->dim.y, box->dim.z); + btBoxShape* boxShape = new btBoxShape(extents*0.5f); + //btConvexShape* boxShape = new btConeShapeX(extents[2]*0.5,extents[0]*0.5); + convexColShape = boxShape; + convexColShape->setMargin(0.001); + break; + } + case Geometry::SPHERE: + { + printf("processing a sphere\n"); + urdf::Sphere* sphere = (urdf::Sphere*)visual->geometry.get(); + btScalar radius = sphere->radius; + btSphereShape* sphereShape = new btSphereShape(radius); + convexColShape = sphereShape; + convexColShape->setMargin(0.001); + break; + + break; + } + case Geometry::MESH: + { + if (visual->name.length()) + { + printf("visual->name=%s\n", visual->name.c_str()); + } + if (visual->geometry) + { + const urdf::Mesh* mesh = (const urdf::Mesh*) visual->geometry.get(); + if (mesh->filename.length()) + { + const char* filename = mesh->filename.c_str(); + printf("mesh->filename=%s\n", filename); + char fullPath[1024]; + int fileType = 0; + sprintf(fullPath, "%s%s", pathPrefix, filename); + b3FileUtils::toLower(fullPath); + if (strstr(fullPath, ".dae")) + { + fileType = FILE_COLLADA; + } + if (strstr(fullPath, ".stl")) + { + fileType = FILE_STL; + } + if (strstr(fullPath,".obj")) + { + fileType = FILE_OBJ; + } + + + sprintf(fullPath, "%s%s", pathPrefix, filename); + FILE* f = fopen(fullPath, "rb"); + if (f) + { + fclose(f); + + + + switch (fileType) + { + case FILE_OBJ: + { + glmesh = LoadMeshFromObj(fullPath,pathPrefix); + break; + } + + case FILE_STL: + { + glmesh = LoadMeshFromSTL(fullPath); + break; + } + case FILE_COLLADA: + { + + btAlignedObjectArray visualShapes; + btAlignedObjectArray visualShapeInstances; + btTransform upAxisTrans; upAxisTrans.setIdentity(); + float unitMeterScaling = 1; + int upAxis = 2; + + LoadMeshFromCollada(fullPath, + visualShapes, + visualShapeInstances, + upAxisTrans, + unitMeterScaling, + upAxis); + + glmesh = new GLInstanceGraphicsShape; + int index = 0; + glmesh->m_indices = new b3AlignedObjectArray(); + glmesh->m_vertices = new b3AlignedObjectArray(); + + for (int i = 0; im_shapeIndex]; + + b3AlignedObjectArray verts; + verts.resize(gfxShape->m_vertices->size()); + + int baseIndex = glmesh->m_vertices->size(); + + for (int i = 0; im_vertices->size(); i++) + { + verts[i].normal[0] = gfxShape->m_vertices->at(i).normal[0]; + verts[i].normal[1] = gfxShape->m_vertices->at(i).normal[1]; + verts[i].normal[2] = gfxShape->m_vertices->at(i).normal[2]; + verts[i].uv[0] = gfxShape->m_vertices->at(i).uv[0]; + verts[i].uv[1] = gfxShape->m_vertices->at(i).uv[1]; + verts[i].xyzw[0] = gfxShape->m_vertices->at(i).xyzw[0]; + verts[i].xyzw[1] = gfxShape->m_vertices->at(i).xyzw[1]; + verts[i].xyzw[2] = gfxShape->m_vertices->at(i).xyzw[2]; + verts[i].xyzw[3] = gfxShape->m_vertices->at(i).xyzw[3]; + + } + + int curNumIndices = glmesh->m_indices->size(); + int additionalIndices = gfxShape->m_indices->size(); + glmesh->m_indices->resize(curNumIndices + additionalIndices); + for (int k = 0; km_indices->at(curNumIndices + k) = gfxShape->m_indices->at(k) + baseIndex; + } + + //compensate upAxisTrans and unitMeterScaling here + btMatrix4x4 upAxisMat; + upAxisMat.setIdentity(); +// upAxisMat.setPureRotation(upAxisTrans.getRotation()); + btMatrix4x4 unitMeterScalingMat; + unitMeterScalingMat.setPureScaling(btVector3(unitMeterScaling, unitMeterScaling, unitMeterScaling)); + btMatrix4x4 worldMat = unitMeterScalingMat*upAxisMat*instance->m_worldTransform; + //btMatrix4x4 worldMat = instance->m_worldTransform; + int curNumVertices = glmesh->m_vertices->size(); + int additionalVertices = verts.size(); + glmesh->m_vertices->reserve(curNumVertices + additionalVertices); + + for (int v = 0; vm_vertices->push_back(verts[v]); + } + } + glmesh->m_numIndices = glmesh->m_indices->size(); + glmesh->m_numvertices = glmesh->m_vertices->size(); + //glmesh = LoadMeshFromCollada(fullPath); + + break; + } + default: + { + printf("Error: unsupported file type for Visual mesh: %s\n", fullPath); + btAssert(0); + } + } + + + if (glmesh && (glmesh->m_numvertices>0)) + { + } + else + { + printf("issue extracting mesh from COLLADA/STL file %s\n", fullPath); + } + + } + else + { + printf("mesh geometry not found %s\n", fullPath); + } + + + } + } + + + break; + } + default: + { + printf("Error: unknown visual geometry type\n"); + } + } + + //if we have a convex, tesselate into localVertices/localIndices + if (convexColShape) + { + btShapeHull* hull = new btShapeHull(convexColShape); + hull->buildHull(0.0); + { + // int strideInBytes = 9*sizeof(float); + int numVertices = hull->numVertices(); + int numIndices = hull->numIndices(); + + + glmesh = new GLInstanceGraphicsShape; + int index = 0; + glmesh->m_indices = new b3AlignedObjectArray(); + glmesh->m_vertices = new b3AlignedObjectArray(); + + + for (int i = 0; i < numVertices; i++) + { + GLInstanceVertex vtx; + btVector3 pos = hull->getVertexPointer()[i]; + vtx.xyzw[0] = pos.x(); + vtx.xyzw[1] = pos.y(); + vtx.xyzw[2] = pos.z(); + vtx.xyzw[3] = 1.f; + pos.normalize(); + vtx.normal[0] = pos.x(); + vtx.normal[1] = pos.y(); + vtx.normal[2] = pos.z(); + vtx.uv[0] = 0.5f; + vtx.uv[1] = 0.5f; + glmesh->m_vertices->push_back(vtx); + } + + btAlignedObjectArray indices; + for (int i = 0; i < numIndices; i++) + { + glmesh->m_indices->push_back(hull->getIndexPointer()[i]); + } + + glmesh->m_numvertices = glmesh->m_vertices->size(); + glmesh->m_numIndices = glmesh->m_indices->size(); + } + delete convexColShape; + convexColShape = 0; + + } + + if (glmesh && glmesh->m_numIndices>0 && glmesh->m_numvertices >0) + { + + int baseIndex = verticesOut.size(); + + + + for (int i = 0; i < glmesh->m_indices->size(); i++) + { + indicesOut.push_back(glmesh->m_indices->at(i) + baseIndex); + } + + for (int i = 0; i < glmesh->m_vertices->size(); i++) + { + GLInstanceVertex& v = glmesh->m_vertices->at(i); + btVector3 vert(v.xyzw[0],v.xyzw[1],v.xyzw[2]); + btVector3 vt = visualTransform*vert; + v.xyzw[0] = vt[0]; + v.xyzw[1] = vt[1]; + v.xyzw[2] = vt[2]; + btVector3 triNormal(v.normal[0],v.normal[1],v.normal[2]); + triNormal = visualTransform.getBasis()*triNormal; + v.normal[0] = triNormal[0]; + v.normal[1] = triNormal[1]; + v.normal[2] = triNormal[2]; + verticesOut.push_back(v); + } + } +} + + + + +btCollisionShape* convertURDFToCollisionShape(const Collision* visual, const char* pathPrefix) +{ + btCollisionShape* shape = 0; + + switch (visual->geometry->type) + { + case Geometry::CYLINDER: + { + printf("processing a cylinder\n"); + urdf::Cylinder* cyl = (urdf::Cylinder*)visual->geometry.get(); + + btAlignedObjectArray vertices; + //int numVerts = sizeof(barrel_vertices)/(9*sizeof(float)); + int numSteps = 32; + for (int i=0;iradius*btSin(SIMD_2_PI*(float(i)/numSteps)),cyl->radius*btCos(SIMD_2_PI*(float(i)/numSteps)),cyl->length/2.); + vertices.push_back(vert); + vert[2] = -cyl->length/2.; + vertices.push_back(vert); + + } + btConvexHullShape* cylZShape = new btConvexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); + cylZShape->setMargin(0.001); + cylZShape->initializePolyhedralFeatures(); + //btConvexShape* cylZShape = new btConeShapeZ(cyl->radius,cyl->length);//(vexHullShape(&vertices[0].x(), vertices.size(), sizeof(btVector3)); + + //btVector3 halfExtents(cyl->radius,cyl->radius,cyl->length/2.); + //btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents); + + + shape = cylZShape; + break; + } + case Geometry::BOX: + { + printf("processing a box\n"); + urdf::Box* box = (urdf::Box*)visual->geometry.get(); + btVector3 extents(box->dim.x,box->dim.y,box->dim.z); + btBoxShape* boxShape = new btBoxShape(extents*0.5f); + //btConvexShape* boxShape = new btConeShapeX(extents[2]*0.5,extents[0]*0.5); + shape = boxShape; + shape ->setMargin(0.001); + break; + } + case Geometry::SPHERE: + { + printf("processing a sphere\n"); + urdf::Sphere* sphere = (urdf::Sphere*)visual->geometry.get(); + btScalar radius = sphere->radius; + btSphereShape* sphereShape = new btSphereShape(radius); + shape = sphereShape; + shape ->setMargin(0.001); + break; + + break; + } + case Geometry::MESH: + { + if (visual->name.length()) + { + printf("visual->name=%s\n",visual->name.c_str()); + } + if (visual->geometry) + { + const urdf::Mesh* mesh = (const urdf::Mesh*) visual->geometry.get(); + if (mesh->filename.length()) + { + const char* filename = mesh->filename.c_str(); + printf("mesh->filename=%s\n",filename); + char fullPath[1024]; + int fileType = 0; + sprintf(fullPath,"%s%s",pathPrefix,filename); + b3FileUtils::toLower(fullPath); + if (strstr(fullPath,".dae")) + { + fileType = FILE_COLLADA; + } + if (strstr(fullPath,".stl")) + { + fileType = FILE_STL; + } + if (strstr(fullPath,".obj")) + { + fileType = FILE_OBJ; + } + + sprintf(fullPath,"%s%s",pathPrefix,filename); + FILE* f = fopen(fullPath,"rb"); + if (f) + { + fclose(f); + GLInstanceGraphicsShape* glmesh = 0; + + + switch (fileType) + { + case FILE_OBJ: + { + glmesh = LoadMeshFromObj(fullPath,pathPrefix); + break; + } + case FILE_STL: + { + glmesh = LoadMeshFromSTL(fullPath); + break; + } + case FILE_COLLADA: + { + + btAlignedObjectArray visualShapes; + btAlignedObjectArray visualShapeInstances; + btTransform upAxisTrans;upAxisTrans.setIdentity(); + float unitMeterScaling=1; + int upAxis = 2; + LoadMeshFromCollada(fullPath, + visualShapes, + visualShapeInstances, + upAxisTrans, + unitMeterScaling, + upAxis ); + + glmesh = new GLInstanceGraphicsShape; + int index = 0; + glmesh->m_indices = new b3AlignedObjectArray(); + glmesh->m_vertices = new b3AlignedObjectArray(); + + for (int i=0;im_shapeIndex]; + + b3AlignedObjectArray verts; + verts.resize(gfxShape->m_vertices->size()); + + int baseIndex = glmesh->m_vertices->size(); + + for (int i=0;im_vertices->size();i++) + { + verts[i].normal[0] = gfxShape->m_vertices->at(i).normal[0]; + verts[i].normal[1] = gfxShape->m_vertices->at(i).normal[1]; + verts[i].normal[2] = gfxShape->m_vertices->at(i).normal[2]; + verts[i].uv[0] = gfxShape->m_vertices->at(i).uv[0]; + verts[i].uv[1] = gfxShape->m_vertices->at(i).uv[1]; + verts[i].xyzw[0] = gfxShape->m_vertices->at(i).xyzw[0]; + verts[i].xyzw[1] = gfxShape->m_vertices->at(i).xyzw[1]; + verts[i].xyzw[2] = gfxShape->m_vertices->at(i).xyzw[2]; + verts[i].xyzw[3] = gfxShape->m_vertices->at(i).xyzw[3]; + + } + + int curNumIndices = glmesh->m_indices->size(); + int additionalIndices = gfxShape->m_indices->size(); + glmesh->m_indices->resize(curNumIndices+additionalIndices); + for (int k=0;km_indices->at(curNumIndices+k)=gfxShape->m_indices->at(k)+baseIndex; + } + + //compensate upAxisTrans and unitMeterScaling here + btMatrix4x4 upAxisMat; + upAxisMat.setPureRotation(upAxisTrans.getRotation()); + btMatrix4x4 unitMeterScalingMat; + unitMeterScalingMat.setPureScaling(btVector3(unitMeterScaling,unitMeterScaling,unitMeterScaling)); + btMatrix4x4 worldMat = unitMeterScalingMat*instance->m_worldTransform*upAxisMat; + //btMatrix4x4 worldMat = instance->m_worldTransform; + int curNumVertices = glmesh->m_vertices->size(); + int additionalVertices = verts.size(); + glmesh->m_vertices->reserve(curNumVertices+additionalVertices); + + for(int v=0;vm_vertices->push_back(verts[v]); + } + } + glmesh->m_numIndices = glmesh->m_indices->size(); + glmesh->m_numvertices = glmesh->m_vertices->size(); + //glmesh = LoadMeshFromCollada(fullPath); + + break; + } + default: + { + printf("Unsupported file type in Collision: %s\n",fullPath); + btAssert(0); + } + } + + + if (glmesh && (glmesh->m_numvertices>0)) + { + printf("extracted %d verticed from STL file %s\n", glmesh->m_numvertices,fullPath); + //int shapeId = m_glApp->m_instancingRenderer->registerShape(&gvertices[0].pos[0],gvertices.size(),&indices[0],indices.size()); + //convex->setUserIndex(shapeId); + btAlignedObjectArray convertedVerts; + convertedVerts.reserve(glmesh->m_numvertices); + for (int i=0;im_numvertices;i++) + { + convertedVerts.push_back(btVector3(glmesh->m_vertices->at(i).xyzw[0],glmesh->m_vertices->at(i).xyzw[1],glmesh->m_vertices->at(i).xyzw[2])); + } + //btConvexHullShape* cylZShape = new btConvexHullShape(&glmesh->m_vertices->at(0).xyzw[0], glmesh->m_numvertices, sizeof(GLInstanceVertex)); + btConvexHullShape* cylZShape = new btConvexHullShape(&convertedVerts[0].getX(), convertedVerts.size(), sizeof(btVector3)); + //cylZShape->initializePolyhedralFeatures(); + //btVector3 halfExtents(cyl->radius,cyl->radius,cyl->length/2.); + //btCylinderShapeZ* cylZShape = new btCylinderShapeZ(halfExtents); + cylZShape->setMargin(0.001); + shape = cylZShape; + } else + { + printf("issue extracting mesh from STL file %s\n", fullPath); + } + + } else + { + printf("mesh geometry not found %s\n",fullPath); + } + + + } + } + + + break; + } + default: + { + printf("Error: unknown visual geometry type\n"); + } + } + return shape; +} + + + + +int MyURDFImporter::convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& inertialFrame) const +{ + btAlignedObjectArray vertices; + btAlignedObjectArray indices; + btTransform startTrans; startTrans.setIdentity(); + int graphicsIndex = -1; + + for (int v = 0; v < (int)m_data->m_links[linkIndex]->visual_array.size(); v++) + { + const Visual* vis = m_data->m_links[linkIndex]->visual_array[v].get(); + btVector3 childPos(vis->origin.position.x, vis->origin.position.y, vis->origin.position.z); + btQuaternion childOrn(vis->origin.rotation.x, vis->origin.rotation.y, vis->origin.rotation.z, vis->origin.rotation.w); + btTransform childTrans; + childTrans.setOrigin(childPos); + childTrans.setRotation(childOrn); + + convertURDFToVisualShape(vis, pathPrefix, inertialFrame.inverse()*childTrans, vertices, indices); + + } + + if (vertices.size() && indices.size()) + { + graphicsIndex = m_data->m_guiHelper->registerGraphicsShape(&vertices[0].xyzw[0], vertices.size(), &indices[0], indices.size()); + } + + return graphicsIndex; + +} + + class btCompoundShape* MyURDFImporter::convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const +{ + + btCompoundShape* compoundShape = new btCompoundShape(); + compoundShape->setMargin(0.001); + + for (int v=0;v<(int)m_data->m_links[linkIndex]->collision_array.size();v++) + { + const Collision* col = m_data->m_links[linkIndex]->collision_array[v].get(); + btCollisionShape* childShape = convertURDFToCollisionShape(col ,pathPrefix); + + if (childShape) + { + btVector3 childPos(col->origin.position.x, col->origin.position.y, col->origin.position.z); + btQuaternion childOrn(col->origin.rotation.x, col->origin.rotation.y, col->origin.rotation.z, col->origin.rotation.w); + btTransform childTrans; + childTrans.setOrigin(childPos); + childTrans.setRotation(childOrn); + compoundShape->addChildShape(localInertiaFrame.inverse()*childTrans,childShape); + + } + } + + return compoundShape; +} diff --git a/examples/Importers/ImportURDFDemo/MyURDFImporter.h b/examples/Importers/ImportURDFDemo/MyURDFImporter.h new file mode 100644 index 000000000..d36d42d11 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/MyURDFImporter.h @@ -0,0 +1,44 @@ +#ifndef MY_URDF_IMPORTER_H +#define MY_URDF_IMPORTER_H + +#include "URDFImporterInterface.h" + + +class MyURDFImporter : public URDFImporterInterface +{ + + struct MyURDFInternalData* m_data; + + +public: + + MyURDFImporter(struct GUIHelperInterface* guiHelper); + + virtual ~MyURDFImporter(); + + virtual bool loadURDF(const char* fileName); + + const char* getPathPrefix(); + + void printTree(); //for debugging + + virtual int getRootLinkIndex() const; + + virtual void getLinkChildIndices(int linkIndex, btAlignedObjectArray& childLinkIndices) const; + + virtual std::string getLinkName(int linkIndex) const; + + virtual std::string getJointName(int linkIndex) const; + + virtual void getMassAndInertia(int linkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const; + + virtual bool getJointInfo(int urdfLinkIndex, btTransform& parent2joint, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit) const; + + virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const; + + virtual class btCompoundShape* convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const; + +}; + + +#endif //MY_URDF_IMPORTER_H diff --git a/Demos3/ImportURDFDemo/URDF2Bullet.cpp b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp similarity index 84% rename from Demos3/ImportURDFDemo/URDF2Bullet.cpp rename to examples/Importers/ImportURDFDemo/URDF2Bullet.cpp index 510fe9915..c389d6b3c 100644 --- a/Demos3/ImportURDFDemo/URDF2Bullet.cpp +++ b/examples/Importers/ImportURDFDemo/URDF2Bullet.cpp @@ -1,4 +1,4 @@ -#include "URDF2Bullet.h" +#include "URDFImporterInterface.h" #include #include "LinearMath/btTransform.h" #include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h" @@ -6,7 +6,9 @@ #include "BulletDynamics/Dynamics/btRigidBody.h" #include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" #include "BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.h" - +#include "URDFImporterInterface.h" +#include "MultiBodyCreationInterface.h" +#include static int bodyCollisionFilterGroup=btBroadphaseProxy::CharacterFilter; static int bodyCollisionFilterMask=btBroadphaseProxy::AllFilter&(~btBroadphaseProxy::CharacterFilter); static bool enableConstraints = true; @@ -30,7 +32,7 @@ static btVector3 selectColor2() return color; } -void printTree(const URDF2Bullet& u2b, int linkIndex, int indentationLevel) +void printTree(const URDFImporterInterface& u2b, int linkIndex, int indentationLevel) { btAlignedObjectArray childIndices; u2b.getLinkChildIndices(linkIndex,childIndices); @@ -50,6 +52,7 @@ void printTree(const URDF2Bullet& u2b, int linkIndex, int indentationLevel) } } + struct URDF2BulletCachedData { URDF2BulletCachedData() @@ -104,7 +107,7 @@ struct URDF2BulletCachedData }; -void ComputeTotalNumberOfJoints(const URDF2Bullet& u2b, URDF2BulletCachedData& cache, int linkIndex) +void ComputeTotalNumberOfJoints(const URDFImporterInterface& u2b, URDF2BulletCachedData& cache, int linkIndex) { btAlignedObjectArray childIndices; u2b.getLinkChildIndices(linkIndex,childIndices); @@ -121,7 +124,7 @@ void ComputeTotalNumberOfJoints(const URDF2Bullet& u2b, URDF2BulletCachedData& c } } -void ComputeParentIndices(const URDF2Bullet& u2b, URDF2BulletCachedData& cache, int urdfLinkIndex, int urdfParentIndex) +void ComputeParentIndices(const URDFImporterInterface& u2b, URDF2BulletCachedData& cache, int urdfLinkIndex, int urdfParentIndex) { cache.m_urdfLinkParentIndices[urdfLinkIndex]=urdfParentIndex; cache.m_urdfLinkIndices2BulletLinkIndices[urdfLinkIndex]=cache.m_currentMultiBodyLinkIndex++; @@ -134,7 +137,7 @@ void ComputeParentIndices(const URDF2Bullet& u2b, URDF2BulletCachedData& cache, } } -void InitURDF2BulletCache(const URDF2Bullet& u2b, URDF2BulletCachedData& cache) +void InitURDF2BulletCache(const URDFImporterInterface& u2b, URDF2BulletCachedData& cache) { //compute the number of links, and compute parent indices array (and possibly other cached data?) cache.m_totalNumJoints1 = 0; @@ -156,7 +159,7 @@ void InitURDF2BulletCache(const URDF2Bullet& u2b, URDF2BulletCachedData& cache) } -void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& cache, int urdfLinkIndex, const btTransform& parentTransformInWorldSpace, btMultiBodyDynamicsWorld* world1,bool createMultiBody, const char* pathPrefix) +void ConvertURDF2BulletInternal(const URDFImporterInterface& u2b, MultiBodyCreationInterface& creation, URDF2BulletCachedData& cache, int urdfLinkIndex, const btTransform& parentTransformInWorldSpace, btMultiBodyDynamicsWorld* world1,bool createMultiBody, const char* pathPrefix) { printf("start converting/extracting data from URDF interface\n"); @@ -241,14 +244,14 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c if (!createMultiBody) { - btRigidBody* body = u2b.allocateRigidBody(urdfLinkIndex, mass, localInertiaDiagonal, inertialFrameInWorldSpace, compoundShape); + btRigidBody* body = creation.allocateRigidBody(urdfLinkIndex, mass, localInertiaDiagonal, inertialFrameInWorldSpace, compoundShape); linkRigidBody = body; world1->addRigidBody(body, bodyCollisionFilterGroup, bodyCollisionFilterMask); compoundShape->setUserIndex(graphicsIndex); - u2b.createRigidBodyGraphicsInstance(urdfLinkIndex, body, color, graphicsIndex); + creation.createRigidBodyGraphicsInstance(urdfLinkIndex, body, color, graphicsIndex); cache.registerRigidBody(urdfLinkIndex, body, inertialFrameInWorldSpace, mass, localInertiaDiagonal, compoundShape, localInertialFrame); } else { @@ -258,7 +261,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c bool canSleep = false; bool isFixedBase = (mass==0);//todo: figure out when base is fixed int totalNumJoints = cache.m_totalNumJoints1; - cache.m_bulletMultiBody = u2b.allocateMultiBody(urdfLinkIndex, totalNumJoints,mass, localInertiaDiagonal, isFixedBase, canSleep, multiDof); + cache.m_bulletMultiBody = creation.allocateMultiBody(urdfLinkIndex, totalNumJoints,mass, localInertiaDiagonal, isFixedBase, canSleep, multiDof); cache.registerMultiBody(urdfLinkIndex, cache.m_bulletMultiBody, inertialFrameInWorldSpace, mass, localInertiaDiagonal, compoundShape, localInertialFrame); } @@ -275,7 +278,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c bool disableParentCollision = true; switch (jointType) { - case URDF2Bullet::FixedJoint: + case URDFFixedJoint: { if (createMultiBody) { @@ -285,13 +288,9 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c btQuaternion rot = offsetInA.inverse().getRotation();//parent2joint.inverse().getRotation(); cache.m_bulletMultiBody->setupFixed(mbLinkIndex, mass, localInertiaDiagonal, mbParentIndex, rot*offsetInB.getRotation(), offsetInA.getOrigin(),-offsetInB.getOrigin(),disableParentCollision); - u2b.addLinkMapping(urdfLinkIndex,mbLinkIndex); - - btMatrix3x3 rm(rot); - btScalar y,p,r; - rm.getEulerZYX(y,p,r); - printf("y=%f,p=%f,r=%f\n", y,p,r); + creation.addLinkMapping(urdfLinkIndex,mbLinkIndex); + } else { printf("Fixed joint\n"); @@ -302,7 +301,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c printf("y=%f,p=%f,r=%f\n", y,p,r); //we could also use btFixedConstraint but it has some issues - btGeneric6DofSpring2Constraint* dof6 = u2b.allocateGeneric6DofSpring2Constraint(urdfLinkIndex, *parentRigidBody, *linkRigidBody, offsetInA, offsetInB); + btGeneric6DofSpring2Constraint* dof6 = creation.allocateGeneric6DofSpring2Constraint(urdfLinkIndex, *parentRigidBody, *linkRigidBody, offsetInA, offsetInB); dof6->setLinearLowerLimit(btVector3(0,0,0)); dof6->setLinearUpperLimit(btVector3(0,0,0)); @@ -315,8 +314,8 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c } break; } - case URDF2Bullet::ContinuousJoint: - case URDF2Bullet::RevoluteJoint: + case URDFContinuousJoint: + case URDFRevoluteJoint: { if (createMultiBody) { @@ -326,7 +325,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c offsetInA.inverse().getRotation()*offsetInB.getRotation(), quatRotate(offsetInB.inverse().getRotation(),jointAxisInJointSpace), offsetInA.getOrigin(),//parent2joint.getOrigin(), -offsetInB.getOrigin(), disableParentCollision); - u2b.addLinkMapping(urdfLinkIndex,mbLinkIndex); + creation.addLinkMapping(urdfLinkIndex,mbLinkIndex); } else { @@ -337,7 +336,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c { case 0: { - btGeneric6DofSpring2Constraint* dof6 = u2b.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_ZYX); + btGeneric6DofSpring2Constraint* dof6 = creation.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_ZYX); dof6->setLinearLowerLimit(btVector3(0,0,0)); dof6->setLinearUpperLimit(btVector3(0,0,0)); @@ -350,7 +349,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c } case 1: { - btGeneric6DofSpring2Constraint* dof6 = u2b.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_XZY); + btGeneric6DofSpring2Constraint* dof6 = creation.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_XZY); dof6->setLinearLowerLimit(btVector3(0,0,0)); dof6->setLinearUpperLimit(btVector3(0,0,0)); @@ -364,7 +363,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c case 2: default: { - btGeneric6DofSpring2Constraint* dof6 = u2b.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_XYZ); + btGeneric6DofSpring2Constraint* dof6 = creation.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB,RO_XYZ); dof6->setLinearLowerLimit(btVector3(0,0,0)); dof6->setLinearUpperLimit(btVector3(0,0,0)); @@ -379,7 +378,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c } break; } - case URDF2Bullet::PrismaticJoint: + case URDFPrismaticJoint: { if (createMultiBody) { @@ -389,11 +388,11 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c -offsetInB.getOrigin(), disableParentCollision); - u2b.addLinkMapping(urdfLinkIndex,mbLinkIndex); + creation.addLinkMapping(urdfLinkIndex,mbLinkIndex); } else { - btGeneric6DofSpring2Constraint* dof6 = u2b.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB); + btGeneric6DofSpring2Constraint* dof6 = creation.allocateGeneric6DofSpring2Constraint(urdfLinkIndex,*parentRigidBody, *linkRigidBody, offsetInA, offsetInB); //todo(erwincoumans) for now, we only support principle axis along X, Y or Z int principleAxis = jointAxisInJointSpace.closestAxis(); switch (principleAxis) @@ -440,7 +439,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c { if (compoundShape->getNumChildShapes()>0) { - btMultiBodyLinkCollider* col= u2b.allocateMultiBodyLinkCollider(urdfLinkIndex, mbLinkIndex, cache.m_bulletMultiBody); + btMultiBodyLinkCollider* col= creation.allocateMultiBodyLinkCollider(urdfLinkIndex, mbLinkIndex, cache.m_bulletMultiBody); compoundShape->setUserIndex(graphicsIndex); @@ -462,7 +461,7 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c btVector3 color = selectColor2();//(0.0,0.0,0.5); - u2b.createCollisionObjectGraphicsInstance(urdfLinkIndex,col,color); + creation.createCollisionObjectGraphicsInstance(urdfLinkIndex,col,color); btScalar friction = 0.5f; @@ -489,19 +488,29 @@ void ConvertURDF2BulletInternal(const URDF2Bullet& u2b, URDF2BulletCachedData& c { int urdfChildLinkIndex = urdfChildIndices[i]; - ConvertURDF2BulletInternal(u2b,cache,urdfChildLinkIndex,linkTransformInWorldSpace,world1,createMultiBody,pathPrefix); + ConvertURDF2BulletInternal(u2b,creation, cache,urdfChildLinkIndex,linkTransformInWorldSpace,world1,createMultiBody,pathPrefix); } } -void ConvertURDF2Bullet(const URDF2Bullet& u2b, const btTransform& rootTransformInWorldSpace, btMultiBodyDynamicsWorld* world1,bool createMultiBody, const char* pathPrefix) +void ConvertURDF2Bullet(const URDFImporterInterface& u2b, MultiBodyCreationInterface& creation, const btTransform& rootTransformInWorldSpace, btMultiBodyDynamicsWorld* world1,bool createMultiBody, const char* pathPrefix) { URDF2BulletCachedData cache; InitURDF2BulletCache(u2b,cache); int urdfLinkIndex = u2b.getRootLinkIndex(); - ConvertURDF2BulletInternal(u2b, cache, urdfLinkIndex,rootTransformInWorldSpace,world1,createMultiBody,pathPrefix); + ConvertURDF2BulletInternal(u2b, creation, cache, urdfLinkIndex,rootTransformInWorldSpace,world1,createMultiBody,pathPrefix); + if (world1 && cache.m_bulletMultiBody) + { + btMultiBody* mb = cache.m_bulletMultiBody; + mb->setHasSelfCollision(false); + mb->finalizeMultiDof(); + + mb->setBaseWorldTransform(rootTransformInWorldSpace); + + world1->addMultiBody(mb); + } } diff --git a/examples/Importers/ImportURDFDemo/URDF2Bullet.h b/examples/Importers/ImportURDFDemo/URDF2Bullet.h new file mode 100644 index 000000000..73745e217 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/URDF2Bullet.h @@ -0,0 +1,28 @@ +#ifndef _URDF2BULLET_H +#define _URDF2BULLET_H +#include "LinearMath/btAlignedObjectArray.h" +#include "LinearMath/btTransform.h" +#include +class btVector3; +class btTransform; +class btMultiBodyDynamicsWorld; +class btTransform; + + +class URDFImporterInterface; +class MultiBodyCreationInterface; + + +void printTree(const URDFImporterInterface& u2b, int linkIndex, int identationLevel=0); + + +void ConvertURDF2Bullet(const URDFImporterInterface& u2b, + MultiBodyCreationInterface& creationCallback, + const btTransform& rootTransformInWorldSpace, + btMultiBodyDynamicsWorld* world, + bool createMultiBody, + const char* pathPrefix); + + +#endif //_URDF2BULLET_H + diff --git a/examples/Importers/ImportURDFDemo/URDFImporterInterface.h b/examples/Importers/ImportURDFDemo/URDFImporterInterface.h new file mode 100644 index 000000000..ea8bd46b5 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/URDFImporterInterface.h @@ -0,0 +1,41 @@ +#ifndef URDF_IMPORTER_INTERFACE_H +#define URDF_IMPORTER_INTERFACE_H + +#include +#include "LinearMath/btAlignedObjectArray.h" +#include "LinearMath/btTransform.h" +#include "URDFJointTypes.h" + +class URDFImporterInterface +{ + +public: + + + virtual ~URDFImporterInterface() {} + + + ///return >=0 for the root link index, -1 if there is no root link + virtual int getRootLinkIndex() const = 0; + + ///pure virtual interfaces, precondition is a valid linkIndex (you can assert/terminate if the linkIndex is out of range) + virtual std::string getLinkName(int linkIndex) const =0; + + virtual std::string getJointName(int linkIndex) const = 0; + + //fill mass and inertial data. If inertial data is missing, please initialize mass, inertia to sensitive values, and inertialFrame to identity. + virtual void getMassAndInertia(int urdfLinkIndex, btScalar& mass,btVector3& localInertiaDiagonal, btTransform& inertialFrame) const =0; + + ///fill an array of child link indices for this link, btAlignedObjectArray behaves like a std::vector so just use push_back and resize(0) if needed + virtual void getLinkChildIndices(int urdfLinkIndex, btAlignedObjectArray& childLinkIndices) const =0; + + virtual bool getJointInfo(int urdfLinkIndex, btTransform& parent2joint, btVector3& jointAxisInJointSpace, int& jointType, btScalar& jointLowerLimit, btScalar& jointUpperLimit) const =0; + + ///quick hack: need to rethink the API/dependencies of this + virtual int convertLinkVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& inertialFrame) const = 0; + + virtual class btCompoundShape* convertLinkCollisionShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame) const = 0; +}; + +#endif //URDF_IMPORTER_INTERFACE_H + diff --git a/examples/Importers/ImportURDFDemo/URDFJointTypes.h b/examples/Importers/ImportURDFDemo/URDFJointTypes.h new file mode 100644 index 000000000..3024536e4 --- /dev/null +++ b/examples/Importers/ImportURDFDemo/URDFJointTypes.h @@ -0,0 +1,16 @@ +#ifndef URDF_JOINT_TYPES_H +#define URDF_JOINT_TYPES_H + + +enum +{ + URDFRevoluteJoint=1, + URDFPrismaticJoint, + URDFContinuousJoint, + URDFFloatingJoint, + URDFPlanarJoint, + URDFFixedJoint, +}; + + +#endif //URDF_JOINT_TYPES_H diff --git a/Demos3/ImportURDFDemo/urdf_samples.h b/examples/Importers/ImportURDFDemo/urdf_samples.h similarity index 100% rename from Demos3/ImportURDFDemo/urdf_samples.h rename to examples/Importers/ImportURDFDemo/urdf_samples.h diff --git a/Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp b/examples/MultiBody/MultiDofDemo.cpp similarity index 87% rename from Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp rename to examples/MultiBody/MultiDofDemo.cpp index db813c25e..e7a4fa585 100644 --- a/Demos3/bullet2/FeatherstoneMultiBodyDemo/MultiDofDemo.cpp +++ b/examples/MultiBody/MultiDofDemo.cpp @@ -1,5 +1,5 @@ #include "MultiDofDemo.h" -#include "OpenGLWindow/SimpleOpenGL3App.h" +#include "../OpenGLWindow/SimpleOpenGL3App.h" #include "btBulletDynamicsCommon.h" #include "BulletDynamics/Featherstone/btMultiBody.h" @@ -11,9 +11,33 @@ #include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h" #include "BulletDynamics/Featherstone/btMultiBodyPoint2Point.h" -#include "OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" #include "BulletCollision/CollisionShapes/btShapeHull.h" +#include "../CommonInterfaces/CommonMultiBodyBase.h" + + +class MultiDofDemo : public CommonMultiBodyBase +{ + +public: + + MultiDofDemo(GUIHelperInterface* helper); + virtual ~MultiDofDemo(); + + virtual void initPhysics(); + + virtual void stepSimulation(float deltaTime); + + + btMultiBody* createFeatherstoneMultiBody_testMultiDof(class btMultiBodyDynamicsWorld* world, int numLinks, const btVector3& basePosition, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents, bool spherical = false, bool floating = false); + void addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBodyDynamicsWorld *pWorld, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents); + void addBoxes_testMultiDof(); + + +}; + +static bool g_floatingBase = false; static bool g_firstInit = true; static float scaling = 0.4f; static float friction = 1.; @@ -32,10 +56,10 @@ static float friction = 1.; -MultiDofDemo::MultiDofDemo(CommonGraphicsApp* app) -:FeatherstoneDemo1(app) +MultiDofDemo::MultiDofDemo(GUIHelperInterface* helper) +:CommonMultiBodyBase(helper) { - app->setUpAxis(1); + m_guiHelper->setUpAxis(1); } MultiDofDemo::~MultiDofDemo() { @@ -46,38 +70,18 @@ void MultiDofDemo::stepSimulation(float deltaTime) //use a smaller internal timestep, there are stability issues float internalTimeStep = 1./240.f; m_dynamicsWorld->stepSimulation(deltaTime,10,internalTimeStep); -// CProfileManager::dumpAll(); - /* - for (int i=0;igetDispatcher()->getNumManifolds();i++) - { - btPersistentManifold* contact = m_dynamicsWorld->getDispatcher()->getManifoldByIndexInternal(i); - for (int c=0;cgetNumContacts();c++) - { - btManifoldPoint& pt = contact->getContactPoint(c); - btScalar dist = pt.getDistance(); - if (dist< contact->getContactProcessingThreshold()) - { - printf("normalImpulse[%d.%d] = %f\n",i,c,pt.m_appliedImpulse); - - } else - { - printf("?\n"); - } - } - } - */ } void MultiDofDemo::initPhysics() { - + m_guiHelper->setUpAxis(1); if(g_firstInit) { - this->m_glApp->m_renderer->setCameraDistance(btScalar(10.*scaling)); - this->m_glApp->m_renderer->setCameraPitch(50); + m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraDistance(btScalar(10.*scaling)); + m_guiHelper->getRenderInterface()->getActiveCamera()->setCameraPitch(50); g_firstInit = false; } ///collision configuration contains default setup for memory, collision setup @@ -113,7 +117,7 @@ void MultiDofDemo::initPhysics() ///////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////// - bool floating = false; + bool damping = true; bool gyro = true; int numLinks = 5; @@ -124,9 +128,10 @@ void MultiDofDemo::initPhysics() btVector3 linkHalfExtents(0.05, 0.37, 0.1); btVector3 baseHalfExtents(0.05, 0.37, 0.1); - btMultiBody* mbC = createFeatherstoneMultiBody_testMultiDof(world, numLinks, btVector3(-0.4f, 3.f, 0.f), linkHalfExtents, baseHalfExtents, spherical, floating); + btMultiBody* mbC = createFeatherstoneMultiBody_testMultiDof(world, numLinks, btVector3(-0.4f, 3.f, 0.f), linkHalfExtents, baseHalfExtents, spherical, g_floatingBase); //mbC->forceMultiDof(); //if !spherical, you can comment this line to check the 1DoF algorithm + g_floatingBase = ! g_floatingBase; mbC->setCanSleep(canSleep); mbC->setHasSelfCollision(selfCollide); mbC->setUseGyroTerm(gyro); @@ -160,7 +165,7 @@ void MultiDofDemo::initPhysics() /// addColliders_testMultiDof(mbC, world, baseHalfExtents, linkHalfExtents); - int cubeShapeId = m_glApp->registerCubeShape(1,1,1); + ///////////////////////////////////////////////////////////////// btScalar groundHeight = -51.55; if (!multibodyOnly) @@ -184,9 +189,7 @@ void MultiDofDemo::initPhysics() //add the body to the dynamics world m_dynamicsWorld->addRigidBody(body,1,1+2);//,1,1+2); - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,groundTransform.getOrigin(),groundTransform.getRotation(),btVector4(0,1,0,1),groundHalfExtents); - body->setUserIndex(index); - + } @@ -224,12 +227,11 @@ void MultiDofDemo::initPhysics() m_dynamicsWorld->addRigidBody(body);//,1,1+2); - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,startTransform.getOrigin(),startTransform.getRotation(),btVector4(1,1,0,1),halfExtents); - body->setUserIndex(index); } - m_glApp->m_renderer->writeTransforms(); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); + ///////////////////////////////////////////////////////////////// } @@ -296,8 +298,7 @@ btMultiBody* MultiDofDemo::createFeatherstoneMultiBody_testMultiDof(btMultiBodyD void MultiDofDemo::addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBodyDynamicsWorld *pWorld, const btVector3 &baseHalfExtents, const btVector3 &linkHalfExtents) { - int cubeShapeId = m_glApp->registerCubeShape(1,1,1); - + btAlignedObjectArray world_to_local; world_to_local.resize(pMultiBody->getNumLinks() + 1); @@ -326,9 +327,7 @@ void MultiDofDemo::addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBod pWorld->addCollisionObject(col, 2,1+2); - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),btVector4(0,0,1,1),baseHalfExtents); - col->setUserIndex(index); - + col->setFriction(friction); pMultiBody->setBaseCollider(col); @@ -364,9 +363,7 @@ void MultiDofDemo::addColliders_testMultiDof(btMultiBody *pMultiBody, btMultiBod col->setWorldTransform(tr); col->setFriction(friction); pWorld->addCollisionObject(col,2,1+2); - int index = m_glApp->m_renderer->registerGraphicsInstance(cubeShapeId,tr.getOrigin(),tr.getRotation(),btVector4(0,0,1,1),linkHalfExtents); - col->setUserIndex(index); - + pMultiBody->getLink(i).m_collider=col; } @@ -420,3 +417,8 @@ void MultiDofDemo::addBoxes_testMultiDof() } } } + +class CommonExampleInterface* MultiDofCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new MultiDofDemo(helper); +} \ No newline at end of file diff --git a/examples/MultiBody/MultiDofDemo.h b/examples/MultiBody/MultiDofDemo.h new file mode 100644 index 000000000..4a5a54873 --- /dev/null +++ b/examples/MultiBody/MultiDofDemo.h @@ -0,0 +1,8 @@ + +#ifndef MULTI_DOF_DEMO_H +#define MULTI_DOF_DEMO_H + +class CommonExampleInterface* MultiDofCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //MULTI_DOF_DEMO_H + diff --git a/Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp b/examples/MultiBody/TestJointTorqueSetup.cpp similarity index 87% rename from Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp rename to examples/MultiBody/TestJointTorqueSetup.cpp index f253d6f37..95bbc4db2 100644 --- a/Demos3/bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp +++ b/examples/MultiBody/TestJointTorqueSetup.cpp @@ -2,7 +2,26 @@ #include "TestJointTorqueSetup.h" #include "BulletDynamics/Featherstone/btMultiBodyLinkCollider.h" -TestJointTorqueSetup::TestJointTorqueSetup() + +#include "../CommonInterfaces/CommonMultiBodyBase.h" + +struct TestJointTorqueSetup : public CommonMultiBodyBase +{ + btMultiBody* m_multiBody; + +public: + + TestJointTorqueSetup(struct GUIHelperInterface* helper); + virtual ~TestJointTorqueSetup(); + + virtual void initPhysics(); + + virtual void stepSimulation(float deltaTime); + +}; + +TestJointTorqueSetup::TestJointTorqueSetup(struct GUIHelperInterface* helper) +:CommonMultiBodyBase(helper) { } @@ -11,9 +30,10 @@ TestJointTorqueSetup::~TestJointTorqueSetup() } -void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void TestJointTorqueSetup::initPhysics() { int upAxis = 2; + m_guiHelper->setUpAxis(upAxis); btVector4 colors[4] = { @@ -26,35 +46,35 @@ void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) - gfxBridge.setUpAxis(upAxis); - - this->createEmptyDynamicsWorld(); - gfxBridge.createPhysicsDebugDrawer(m_dynamicsWorld); - m_dynamicsWorld->getDebugDrawer()->setDebugMode( + + + this->createEmptyDynamicsWorld(); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->getDebugDrawer()->setDebugMode( //btIDebugDraw::DBG_DrawConstraints - +btIDebugDraw::DBG_DrawWireframe - +btIDebugDraw::DBG_DrawContactPoints - +btIDebugDraw::DBG_DrawAabb + +btIDebugDraw::DBG_DrawWireframe + +btIDebugDraw::DBG_DrawContactPoints + +btIDebugDraw::DBG_DrawAabb );//+btIDebugDraw::DBG_DrawConstraintLimits); //create a static ground object if (0) - { - btVector3 groundHalfExtents(20,20,20); - groundHalfExtents[upAxis]=1.f; - btBoxShape* box = new btBoxShape(groundHalfExtents); - box->initializePolyhedralFeatures(); - - gfxBridge.createCollisionShapeGraphicsObject(box); - btTransform start; start.setIdentity(); - btVector3 groundOrigin(0,0,0); - groundOrigin[upAxis]=-1.5; - start.setOrigin(groundOrigin); - btRigidBody* body = createRigidBody(0,start,box); + { + btVector3 groundHalfExtents(20,20,20); + groundHalfExtents[upAxis]=1.f; + btBoxShape* box = new btBoxShape(groundHalfExtents); + box->initializePolyhedralFeatures(); + + m_guiHelper->createCollisionShapeGraphicsObject(box); + btTransform start; start.setIdentity(); + btVector3 groundOrigin(0,0,0); + groundOrigin[upAxis]=-1.5; + start.setOrigin(groundOrigin); + btRigidBody* body = createRigidBody(0,start,box); btVector4 color = colors[curColor]; curColor++; - curColor&=3; - gfxBridge.createRigidBodyGraphicsObject(body,color); + curColor&=3; + m_guiHelper->createRigidBodyGraphicsObject(body,color); } { @@ -177,7 +197,7 @@ void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) if (1) { btCollisionShape* box = new btBoxShape(baseHalfExtents); - gfxBridge.createCollisionShapeGraphicsObject(box); + m_guiHelper->createCollisionShapeGraphicsObject(box); btMultiBodyLinkCollider* col= new btMultiBodyLinkCollider(pMultiBody, -1); col->setCollisionShape(box); @@ -194,7 +214,7 @@ void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) world->addCollisionObject(col, 2,1+2); btVector3 color(0.0,0.0,0.5); - gfxBridge.createCollisionObjectGraphicsObject(col,color); + m_guiHelper->createCollisionObjectGraphicsObject(col,color); col->setFriction(friction); pMultiBody->setBaseCollider(col); @@ -220,7 +240,7 @@ void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) float quat[4]={-world_to_local[i+1].x(),-world_to_local[i+1].y(),-world_to_local[i+1].z(),world_to_local[i+1].w()}; btCollisionShape* box = new btBoxShape(linkHalfExtents); - gfxBridge.createCollisionShapeGraphicsObject(box); + m_guiHelper->createCollisionShapeGraphicsObject(box); btMultiBodyLinkCollider* col = new btMultiBodyLinkCollider(pMultiBody, i); col->setCollisionShape(box); @@ -234,7 +254,7 @@ void TestJointTorqueSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) btVector4 color = colors[curColor]; curColor++; curColor&=3; - gfxBridge.createCollisionObjectGraphicsObject(col,color); + m_guiHelper->createCollisionObjectGraphicsObject(col,color); pMultiBody->getLink(i).m_collider=col; @@ -249,3 +269,8 @@ void TestJointTorqueSetup::stepSimulation(float deltaTime) m_dynamicsWorld->stepSimulation(deltaTime); } + +class CommonExampleInterface* TestJointTorqueCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new TestJointTorqueSetup(helper); +} \ No newline at end of file diff --git a/examples/MultiBody/TestJointTorqueSetup.h b/examples/MultiBody/TestJointTorqueSetup.h new file mode 100644 index 000000000..26cb530a2 --- /dev/null +++ b/examples/MultiBody/TestJointTorqueSetup.h @@ -0,0 +1,7 @@ +#ifndef TEST_JOINT_TORQUE_SETUP_H +#define TEST_JOINT_TORQUE_SETUP_H + +class CommonExampleInterface* TestJointTorqueCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //TEST_JOINT_TORQUE_SETUP_H + diff --git a/examples/OpenCL/CommonOpenCL/CommonOpenCLBase.h b/examples/OpenCL/CommonOpenCL/CommonOpenCLBase.h new file mode 100644 index 000000000..c8f50e93f --- /dev/null +++ b/examples/OpenCL/CommonOpenCL/CommonOpenCLBase.h @@ -0,0 +1,171 @@ +#ifndef COMMON_MULTI_BODY_SETUP_H +#define COMMON_MULTI_BODY_SETUP_H + + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" +#include "../CommonInterfaces/CommonCameraInterface.h" + +#include "GpuDemoInternalData.h" +#include "Bullet3Common/b3Scalar.h" +#include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" + +struct CommonOpenCLBase : public CommonExampleInterface +{ + + struct GUIHelperInterface* m_guiHelper; + struct GpuDemoInternalData* m_clData; + + + CommonOpenCLBase (GUIHelperInterface* helper) + :m_guiHelper(helper), + m_clData(0) + { + m_clData = new GpuDemoInternalData(); + } + + virtual ~CommonOpenCLBase() + { + delete m_clData; + m_clData = 0; + } + + virtual void stepSimulation(float deltaTime) + { + } + + + + + + virtual void initCL(int preferredDeviceIndex, int preferredPlatformIndex) + { + void* glCtx=0; + void* glDC = 0; + + + + int ciErrNum = 0; + + cl_device_type deviceType = CL_DEVICE_TYPE_GPU; + //if (gAllowCpuOpenCL) + // deviceType = CL_DEVICE_TYPE_ALL; + + + + // if (useInterop) + // { + // m_data->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); + // } else + { + m_clData->m_clContext = b3OpenCLUtils::createContextFromType(deviceType, &ciErrNum, 0,0,preferredDeviceIndex, preferredPlatformIndex,&m_clData->m_platformId); + } + + + oclCHECKERROR(ciErrNum, CL_SUCCESS); + + int numDev = b3OpenCLUtils::getNumDevices(m_clData->m_clContext); + + if (numDev>0) + { + m_clData->m_clDevice= b3OpenCLUtils::getDevice(m_clData->m_clContext,0); + m_clData->m_clQueue = clCreateCommandQueue(m_clData->m_clContext, m_clData->m_clDevice, 0, &ciErrNum); + oclCHECKERROR(ciErrNum, CL_SUCCESS); + + + b3OpenCLDeviceInfo info; + b3OpenCLUtils::getDeviceInfo(m_clData->m_clDevice,&info); + m_clData->m_clDeviceName = info.m_deviceName; + m_clData->m_clInitialized = true; + + } + } + + virtual void exitCL() + { + + if (m_clData && m_clData->m_clInitialized) + { + clReleaseCommandQueue(m_clData->m_clQueue); + clReleaseContext(m_clData->m_clContext); + m_clData->m_clInitialized = false; + } + } + + + + virtual void renderScene() + { + if (m_guiHelper->getRenderInterface()) + { + m_guiHelper->getRenderInterface()->renderScene(); + } + } + + virtual void physicsDebugDraw(int debugDrawFlags) + { + + + } + + virtual bool keyboardCallback(int key, int state) + { + return false;//don't handle this key + } + + + + virtual bool mouseMoveCallback(float x,float y) + { + return false; + } + + virtual bool mouseButtonCallback(int button, int state, float x, float y) + { + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + + if (!renderer) + { + b3Assert(0); + return false; + } + + CommonWindowInterface* window = m_guiHelper->getAppInterface()->m_window; + + + if (state==1) + { + if(button==0 && (!window->isModifierKeyPressed(B3G_ALT) && !window->isModifierKeyPressed(B3G_CONTROL) )) + { + /*btVector3 camPos; + renderer->getActiveCamera()->getCameraPosition(camPos); + + btVector3 rayFrom = camPos; + btVector3 rayTo = getRayTo(int(x),int(y)); + + pickBody(rayFrom, rayTo); + */ + + + } + } else + { + if (button==0) + { +// removePickingConstraint(); + //remove p2p + } + } + + //printf("button=%d, state=%d\n",button,state); + return false; + } + + + }; + +#endif //COMMON_MULTI_BODY_SETUP_H + diff --git a/Demos3/GpuDemos/GpuDemoInternalData.h b/examples/OpenCL/CommonOpenCL/GpuDemoInternalData.h similarity index 100% rename from Demos3/GpuDemos/GpuDemoInternalData.h rename to examples/OpenCL/CommonOpenCL/GpuDemoInternalData.h diff --git a/Demos3/GpuDemos/broadphase/PairBench.cpp b/examples/OpenCL/broadphase/PairBench.cpp similarity index 63% rename from Demos3/GpuDemos/broadphase/PairBench.cpp rename to examples/OpenCL/broadphase/PairBench.cpp index 9ec61a217..b05bda95c 100644 --- a/Demos3/GpuDemos/broadphase/PairBench.cpp +++ b/examples/OpenCL/broadphase/PairBench.cpp @@ -1,80 +1,71 @@ //those header files need to be at the top, because of conflict __global and STL -#include "Bullet3AppSupport/gwenUserInterface.h" -#include "Bullet3AppSupport/gwenInternalData.h" #include "PairBench.h" -#include "OpenGLWindow/ShapeData.h" -#include "OpenGLWindow/GLInstancingRenderer.h" #include "Bullet3Common/b3Quaternion.h" -#include "OpenGLWindow/b3gWindowInterface.h" + #include "Bullet3OpenCL/BroadphaseCollision/b3GpuSapBroadphase.h" #include "Bullet3OpenCL/BroadphaseCollision/b3GpuGridBroadphase.h" #include "Bullet3OpenCL/BroadphaseCollision/b3GpuParallelLinearBvhBroadphase.h" +#include "../Utils/b3Clock.h" -#include "../GpuDemoInternalData.h" +//#include "../GpuDemoInternalData.h" #include "Bullet3OpenCL/Initialize/b3OpenCLUtils.h" -#include "OpenGLWindow/OpenGLInclude.h" -#include "OpenGLWindow/GLInstanceRendererInternalData.h" + #include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" -#include "../../../btgui/Bullet3AppSupport/b3Quickprof.h" + +#include "../OpenGLWindow/OpenGLInclude.h" +#include "../OpenGLWindow/ShapeData.h" #include #include "pairsKernel.h" + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonCameraInterface.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" +#include "../CommonOpenCL/CommonOpenCLBase.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLInstanceRendererInternalData.h" + + + +class PairBench : public CommonOpenCLBase +{ + + struct PairBenchInternalData* m_data; + + GLInstancingRenderer* m_instancingRenderer; + +public: + + PairBench(GUIHelperInterface* helper); + virtual ~PairBench(); + + virtual void initPhysics(); + virtual void exitPhysics(); + + + + void createBroadphase(int xdim, int ydim, int zdim); + void deleteBroadphase(); + + virtual void stepSimulation(float deltaTime); + + virtual void renderScene(); + +}; + + + //we use an offset, just for testing to make sure there is no assumption in the broadphase that 'index' starts at 0 #define TEST_INDEX_OFFSET 1024 -#ifdef B3_USE_MIDI -#include "../../../btgui/MidiTest/RtMidi.h" -bool chooseMidiPort( RtMidiIn *rtmidi ) -{ - if (!rtmidi) - return false; - /* - - std::cout << "\nWould you like to open a virtual input port? [y/N] "; - - std::string keyHit; - std::getline( std::cin, keyHit ); - if ( keyHit == "y" ) { - rtmidi->openVirtualPort(); - return true; - } - */ - - std::string portName; - unsigned int i = 0, nPorts = rtmidi->getPortCount(); - if ( nPorts == 0 ) { - std::cout << "No input ports available!" << std::endl; - return false; - } - - if ( nPorts == 1 ) { - std::cout << "\nOpening " << rtmidi->getPortName() << std::endl; - } - else { - for ( i=0; igetPortName(i); - std::cout << " Input port #" << i << ": " << portName << '\n'; - } - - do { - std::cout << "\nChoose a port number: "; - std::cin >> i; - } while ( i >= nPorts ); - } - -// std::getline( std::cin, keyHit ); // used to clear out stdin - rtmidi->openPort( i ); - - return true; -} -#endif - -static b3KeyboardCallback oldCallback = 0; char* gPairBenchFileName = 0; extern bool useShadowMap; @@ -128,7 +119,6 @@ struct PairBenchInternalData cl_kernel m_colorPairsKernel; cl_kernel m_updateAabbSimple; - GwenUserInterface* m_gui; b3OpenCLArray* m_instancePosOrnColor; b3OpenCLArray* m_bodyTimes; @@ -145,19 +135,15 @@ struct PairBenchInternalData int m_oldYposition; - b3AlignedObjectArray m_myControls; -#ifdef B3_USE_MIDI - RtMidiIn* m_midiIn; -#endif //B3_USE_MIDI + }; -PairBench::PairBench() -:m_instancingRenderer(0), -m_window(0) +PairBench::PairBench(GUIHelperInterface* helper) +:CommonOpenCLBase(helper) { m_data = new PairBenchInternalData; - + m_instancingRenderer = (GLInstancingRenderer*) helper->getRenderInterface(); m_data->m_validationBroadphase = 0; } PairBench::~PairBench() @@ -170,18 +156,6 @@ PairBench::~PairBench() - -static void PairKeyboardCallback(int key, int state) -{ - if (key=='R' && state) - { - gReset = true; - } - - //b3DefaultKeyboardCallback(key,state); - oldCallback(key,state); -} - static inline float parseFloat(const char*& token) { token += strspn(token, " \t"); @@ -201,305 +175,24 @@ enum PairToggleButtons -struct PairComboBoxHander :public Gwen::Event::Handler + +void PairBench::initPhysics() { - - int m_buttonId; - int m_active; + dimensions[0] = 10; + dimensions[1] = 10; + dimensions[2] = 10; - PairComboBoxHander (int buttonId) - :m_buttonId(buttonId), - m_active(false) - { - } - - void onSelect( Gwen::Controls::Base* pControl ) - { - if (m_active) - { - Gwen::Controls::ComboBox* but = (Gwen::Controls::ComboBox*) pControl; - - Gwen::String str = Gwen::Utility::UnicodeToString( but->GetSelectedItem()->GetText()); - - int numItems = sizeof(allBroadphases)/sizeof(BroadphaseEntry); - - //find selected item - for (int i=0;ideleteBroadphase(); - sPairDemo->createBroadphase(dimensions[0],dimensions[1],dimensions[2]); - break; - } - } - } - - } - - void onSelectUseLargeAabb( Gwen::Controls::Base* pControl ) - { - if (m_active) - { - Gwen::Controls::ComboBox* but = (Gwen::Controls::ComboBox*) pControl; - - Gwen::String str = Gwen::Utility::UnicodeToString( but->GetSelectedItem()->GetText()); - - int numItems = sizeof(useLargeAabbOptions)/sizeof(const char*); - - //find selected item - for (int i=0;ideleteBroadphase(); - sPairDemo->createBroadphase(dimensions[0],dimensions[1],dimensions[2]); - break; - } - } - - - - } - } - -}; - - -template -struct MySliderEventHandler : public Gwen::Event::Handler -{ - Gwen::Controls::TextBox* m_label; - Gwen::Controls::Slider* m_pSlider; - char m_variableName[1024]; - T* m_targetValue; - - MySliderEventHandler(const char* varName, Gwen::Controls::TextBox* label, Gwen::Controls::Slider* pSlider,T* target) - :m_label(label), - m_pSlider(pSlider), - m_targetValue(target) - { - memcpy(m_variableName,varName,strlen(varName)+1); - } - - - void SliderMoved( Gwen::Controls::Base* pControl ) - { - Gwen::Controls::Slider* pSlider = (Gwen::Controls::Slider*)pControl; - //printf("value = %f\n", pSlider->GetValue());//UnitPrint( Utility::Format( L"Slider Value: %.2f", pSlider->GetValue() ) ); - float bla = pSlider->GetValue(); - T v = T(bla); - SetValue(v); - - } - - void SetValue(T v) - { - if (v < m_pSlider->GetRangeMin()) - { - printf("?\n"); - } - - if (v > m_pSlider->GetRangeMax()) - { - printf("?\n"); - - } - m_pSlider->SetValue(v,true); - (*m_targetValue) = v; - int val = int(v);//todo: specialize on template type - char txt[1024]; - sprintf(txt,"%s : %d", m_variableName,val); - m_label->SetText(txt); - - } -}; - -MySliderEventHandler* test = 0; - -#ifdef B3_USE_MIDI -//todo: create a mapping from midi channel to variable 'slider' or 'knob' - - -void PairMidiCallback( double deltatime, std::vector< unsigned char > *message, void *userData ) -{ - unsigned int nBytes = message->size(); - if (nBytes==3) - { - if (test && message->at(1)==16) - { - test->SetValue(message->at(2)); - } - } -} - -#endif - -void PairBench::initPhysics(const ConstructionInfo& ci) -{ - dimensions[0] = ci.arraySizeX; - dimensions[1] = ci.arraySizeY; - dimensions[2] = ci.arraySizeZ; - -#ifdef B3_USE_MIDI - m_data->m_midiIn = new RtMidiIn(); - if (!chooseMidiPort(m_data->m_midiIn)) - { - delete m_data->m_midiIn; - m_data->m_midiIn = 0; - } else - { - m_data->m_midiIn->setCallback( &PairMidiCallback,this ); - // Don't ignore sysex, timing, or active sensing messages. - m_data->m_midiIn->ignoreTypes( false, false, false ); - } -#endif //B3_USE_MIDI - m_instancingRenderer = ci.m_instancingRenderer; + //m_instancingRenderer = ci.m_instancingRenderer; sPairDemo = this; useShadowMap = false; - m_data->m_gui = ci.m_gui; - - //remember the old position in the GUI, to restore at exit - - GwenInternalData* data = m_data->m_gui->getInternalData(); - m_data->m_oldYposition = data->m_curYposition; - - - - data->m_curYposition+=40; - - { - - - int startItem = curSelectedBroadphase; - int numBroadphases = sizeof(allBroadphases)/sizeof(BroadphaseEntry); - - Gwen::Controls::ComboBox* combobox = new Gwen::Controls::ComboBox(data->m_demoPage->GetPage()); - PairComboBoxHander* handler = new PairComboBoxHander(555); - m_data->m_myControls.push_back(combobox); - - - combobox->onSelection.Add(handler,&PairComboBoxHander::onSelect); - int ypos = data->m_curYposition; - combobox->SetPos(10, ypos ); - combobox->SetWidth( 100 ); - - - for (int i=0;iAddItem(Gwen::Utility::StringToUnicode(allBroadphases[i].m_name)); - if (i==startItem) - combobox->OnItemSelected(item); - } - - handler->m_active = true; - - data->m_curYposition+=22; - } - - { - int startItem = curUseLargeAabbOption; - int numUseLargeAabb = sizeof(useLargeAabbOptions)/sizeof(const char*); - - Gwen::Controls::ComboBox* combobox = new Gwen::Controls::ComboBox(data->m_demoPage->GetPage()); - PairComboBoxHander* handler = new PairComboBoxHander(555); - m_data->m_myControls.push_back(combobox); - - - combobox->onSelection.Add(handler,&PairComboBoxHander::onSelectUseLargeAabb); - int ypos = data->m_curYposition; - combobox->SetPos(10, ypos ); - combobox->SetWidth( 100 ); - - for (int i=0;iAddItem(Gwen::Utility::StringToUnicode(useLargeAabbOptions[i])); - if (i==startItem) - combobox->OnItemSelected(item); - } - - handler->m_active = true; - - data->m_curYposition+=22; - } - data->m_curYposition+=22; - - if (1) - for (int i=0;i<3;i++) - { - { - Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(data->m_demoPage->GetPage()); - m_data->m_myControls.push_back(label); - label->SetText( "Text Label" ); - label->SetPos( 10, 10 + 25 ); - label->SetWidth(100); - label->SetPos(10,data->m_curYposition); - data->m_curYposition+=22; - - Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider( data->m_demoPage->GetPage()); - m_data->m_myControls.push_back(pSlider); - pSlider->SetPos( 10, data->m_curYposition ); - pSlider->SetSize( 100, 20 ); - pSlider->SetRange( 0, 100 ); - pSlider->SetValue( dimensions[i] ); - char labelName[1024]; - sprintf(labelName,"%s",axisNames[0]); - MySliderEventHandler* handler = new MySliderEventHandler(labelName,label,pSlider,&dimensions[i]); - pSlider->onValueChanged.Add( handler, &MySliderEventHandler::SliderMoved ); - handler->SliderMoved(pSlider); - float v = pSlider->GetValue(); - data->m_curYposition+=22; - } - } - if (1) - { - { - Gwen::Controls::TextBox* label = new Gwen::Controls::TextBox(data->m_demoPage->GetPage()); - m_data->m_myControls.push_back(label); - const char* labelName = "Scale: "; - label->SetText( labelName); - label->SetPos( 10, 10 + 25 ); - label->SetWidth(100); - label->SetPos(10,data->m_curYposition); - data->m_curYposition+=22; - - Gwen::Controls::HorizontalSlider* pSlider = new Gwen::Controls::HorizontalSlider( data->m_demoPage->GetPage()); - m_data->m_myControls.push_back(pSlider); - pSlider->SetPos( 10, data->m_curYposition ); - pSlider->SetSize( 100, 20 ); - pSlider->SetRange( 0, 300); - pSlider->SetValue( mAmplitude ); - - MySliderEventHandler* handler = new MySliderEventHandler(labelName,label,pSlider,&mAmplitude); - test = handler; - pSlider->onValueChanged.Add( handler, &MySliderEventHandler::SliderMoved ); - handler->SliderMoved(pSlider); - float v = pSlider->GetValue(); - data->m_curYposition+=22; - } - } - //pSlider->onValueChanged.Add( this, &Slider::SliderMoved ); - - - data->m_curYposition+=22; - - /*m_data->m_gui->registerToggleButton(MY_RESET,"reset"); - sOldCallback = m_data->m_gui->getToggleButtonCallback(); - m_data->m_gui->setToggleButtonCallback(PairButtonCallback); - */ int startItem = 0; - //m_data->m_gui->registerComboBox(BP_COMBO_INDEX,numBroadphases,&mydemonames[0],startItem); - //sOldComboCallback = m_data->m_gui->getComboBoxCallback(); + int preferredOpenCLDeviceIndex=-1; + int preferredOpenCLPlatformIndex=-1; - //m_data->m_gui->setComboBoxCallback(PairComboBoxCallback); - - - initCL(ci.preferredOpenCLDeviceIndex,ci.preferredOpenCLPlatformIndex); + initCL(preferredOpenCLDeviceIndex,preferredOpenCLPlatformIndex); if (m_clData->m_clContext) { @@ -522,21 +215,7 @@ void PairBench::initPhysics(const ConstructionInfo& ci) m_data->m_validationBroadphase = b3GpuParallelLinearBvhBroadphase::CreateFunc(m_clData->m_clContext,m_clData->m_clDevice,m_clData->m_clQueue); } - if (ci.m_window) - { - m_window = ci.m_window; - oldCallback = ci.m_window->getKeyboardCallback(); - ci.m_window->setKeyboardCallback(PairKeyboardCallback); - - } - - - -#ifndef B3_NO_PROFILE - b3ProfileManager::CleanupMemory(); -#endif //B3_NO_PROFILE - - createBroadphase(ci.arraySizeX,ci.arraySizeY,ci.arraySizeZ); + createBroadphase(dimensions[0],dimensions[1],dimensions[2]); } @@ -726,13 +405,13 @@ void PairBench::createBroadphase(int arraySizeX, int arraySizeY, int arraySizeZ) } float camPos[4]={15.5,12.5,15.5,0}; - m_instancingRenderer->setCameraTargetPosition(camPos); + m_instancingRenderer->getActiveCamera()->setCameraTargetPosition(camPos[0],camPos[1],camPos[2]); if (gPairBenchFileName) { - m_instancingRenderer->setCameraDistance(830); + m_instancingRenderer->getActiveCamera()->setCameraDistance(830); } else { - m_instancingRenderer->setCameraDistance(130); + m_instancingRenderer->getActiveCamera()->setCameraDistance(130); } m_instancingRenderer->writeTransforms(); @@ -761,23 +440,8 @@ void PairBench::exitPhysics() m_data->m_validationBroadphase = 0; } -#ifdef B3_USE_MIDI - if (m_data->m_midiIn) - { - delete m_data->m_midiIn; - m_data->m_midiIn = 0; - } -#endif //B3_USE_MIDI - m_data->m_gui->getInternalData()->m_curYposition = m_data->m_oldYposition; - - for (int i=0;im_myControls.size();i++) - { - delete m_data->m_myControls[i]; - } - sPairDemo = 0; - m_window->setKeyboardCallback(oldCallback); exitCL(); } @@ -799,7 +463,7 @@ struct OverlappingPairSortPredicate } }; -void PairBench::clientMoveAndDisplay() +void PairBench::stepSimulation(float deltaTime) { //color all objects blue @@ -1042,7 +706,8 @@ void PairBench::clientMoveAndDisplay() printf("Broadphase validation: %d \n", success); } } - + + /* if (m_data->m_gui) { B3_PROFILE("update Gui"); @@ -1057,7 +722,7 @@ void PairBench::clientMoveAndDisplay() //printf("msg=%s\n",msg); m_data->m_gui->setStatusBarMessage(msg,true); } - + */ if (numObjects) { @@ -1101,3 +766,8 @@ void PairBench::clientMoveAndDisplay() } } + +class CommonExampleInterface* PairBenchOpenCLCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new PairBench(helper); +} diff --git a/examples/OpenCL/broadphase/PairBench.h b/examples/OpenCL/broadphase/PairBench.h new file mode 100644 index 000000000..def128055 --- /dev/null +++ b/examples/OpenCL/broadphase/PairBench.h @@ -0,0 +1,8 @@ +#ifndef PAIR_BENCH_H +#define PAIR_BENCH_H + +class CommonExampleInterface* PairBenchOpenCLCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif + diff --git a/Demos3/GpuDemos/broadphase/pairsKernel.cl b/examples/OpenCL/broadphase/pairsKernel.cl similarity index 100% rename from Demos3/GpuDemos/broadphase/pairsKernel.cl rename to examples/OpenCL/broadphase/pairsKernel.cl diff --git a/Demos3/GpuDemos/broadphase/pairsKernel.h b/examples/OpenCL/broadphase/pairsKernel.h similarity index 100% rename from Demos3/GpuDemos/broadphase/pairsKernel.h rename to examples/OpenCL/broadphase/pairsKernel.h diff --git a/btgui/OpenGLWindow/CMakeLists.txt b/examples/OpenGLWindow/CMakeLists.txt similarity index 79% rename from btgui/OpenGLWindow/CMakeLists.txt rename to examples/OpenGLWindow/CMakeLists.txt index f552958bb..451ea3dcd 100644 --- a/btgui/OpenGLWindow/CMakeLists.txt +++ b/examples/OpenGLWindow/CMakeLists.txt @@ -19,9 +19,9 @@ LIST(REMOVE_ITEM OpenGLWindowCommon_CPP X11OpenGLWindow.cpp ) #MESSAGE (${OpenGLWindowCommon_CPP}) IF (WIN32) - SET(OpenGLWindow_SRCS GlewWindows/glew.c ${OpenGLWindowWin32_CPP} ${OpenGLWindowCommon_CPP}) + SET(OpenGLWindow_SRCS ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew/glew.c ${OpenGLWindowWin32_CPP} ${OpenGLWindowCommon_CPP}) INCLUDE_DIRECTORIES( - GlewWindows + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew ) ADD_DEFINITIONS(-DGLEW_STATIC) ENDIF(WIN32) @@ -33,13 +33,13 @@ ENDIF(APPLE) #no Linux detection? IF(NOT WIN32 AND NOT APPLE) INCLUDE_DIRECTORIES( - GlewWindows + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew ) ADD_DEFINITIONS(-DGLEW_STATIC) ADD_DEFINITIONS("-DGLEW_INIT_OPENGL11_FUNCTIONS=1") ADD_DEFINITIONS("-DGLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS=1") - SET(OpenGLWindow_SRCS ${OpenGLWindowLinux_CPP} GlewWindows/glew.c ${OpenGLWindowCommon_CPP} ) + SET(OpenGLWindow_SRCS ${OpenGLWindowLinux_CPP} ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew/glew.c ${OpenGLWindowCommon_CPP} ) ENDIF() diff --git a/btgui/OpenGLWindow/GLInstanceGraphicsShape.h b/examples/OpenGLWindow/GLInstanceGraphicsShape.h similarity index 100% rename from btgui/OpenGLWindow/GLInstanceGraphicsShape.h rename to examples/OpenGLWindow/GLInstanceGraphicsShape.h diff --git a/btgui/OpenGLWindow/GLInstanceRendererInternalData.h b/examples/OpenGLWindow/GLInstanceRendererInternalData.h similarity index 100% rename from btgui/OpenGLWindow/GLInstanceRendererInternalData.h rename to examples/OpenGLWindow/GLInstanceRendererInternalData.h diff --git a/btgui/OpenGLWindow/GLInstancingRenderer.cpp b/examples/OpenGLWindow/GLInstancingRenderer.cpp similarity index 84% rename from btgui/OpenGLWindow/GLInstancingRenderer.cpp rename to examples/OpenGLWindow/GLInstancingRenderer.cpp index ec2d21921..11709002e 100644 --- a/btgui/OpenGLWindow/GLInstancingRenderer.cpp +++ b/examples/OpenGLWindow/GLInstancingRenderer.cpp @@ -19,14 +19,13 @@ bool useShadowMap=true;//false;//true; int shadowMapWidth=8192; int shadowMapHeight=8192; float shadowMapWorldSize=100; -float WHEEL_MULTIPLIER=0.01f; -float MOUSE_MOVE_MULTIPLIER = 0.4f; + #define MAX_POINTS_IN_BATCH 1024 #define MAX_LINES_IN_BATCH 1024 #include "OpenGLInclude.h" -#include "b3gWindowInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" //#include "Bullet3Common/b3MinMax.h" #ifndef __APPLE__ @@ -54,18 +53,18 @@ float MOUSE_MOVE_MULTIPLIER = 0.4f; #include "GLInstanceRendererInternalData.h" //GLSL shader strings, embedded using build3/stringify -#include "OpenGLWindow/Shaders/pointSpriteVS.h" -#include "OpenGLWindow/Shaders/pointSpritePS.h" -#include "OpenGLWindow/Shaders/instancingVS.h" -#include "OpenGLWindow/Shaders/instancingPS.h" -#include "OpenGLWindow/Shaders/createShadowMapInstancingVS.h" -#include "OpenGLWindow/Shaders/createShadowMapInstancingPS.h" -#include "OpenGLWindow/Shaders/useShadowMapInstancingVS.h" -#include "OpenGLWindow/Shaders/useShadowMapInstancingPS.h" -#include "OpenGLWindow/Shaders/linesPS.h" -#include "OpenGLWindow/Shaders/linesVS.h" +#include "Shaders/pointSpriteVS.h" +#include "Shaders/pointSpritePS.h" +#include "Shaders/instancingVS.h" +#include "Shaders/instancingPS.h" +#include "Shaders/createShadowMapInstancingVS.h" +#include "Shaders/createShadowMapInstancingPS.h" +#include "Shaders/useShadowMapInstancingVS.h" +#include "Shaders/useShadowMapInstancingPS.h" +#include "Shaders/linesPS.h" +#include "Shaders/linesVS.h" -#include "OpenGLWindow/GLRenderToTexture.h" +#include "GLRenderToTexture.h" @@ -141,20 +140,7 @@ extern int gShapeIndex; struct InternalDataRenderer : public GLInstanceRendererInternalData { - - b3Vector3 m_cameraPosition; - b3Vector3 m_cameraTargetPosition; - float m_cameraDistance; - b3Vector3 m_cameraUp; - float m_azi; - float m_ele; - - float m_mouseXpos; - float m_mouseYpos; - bool m_mouseInitialized; - int m_leftMouseButton; - int m_middleMouseButton; - int m_rightMouseButton; + SimpleCamera m_defaultCamera; GLfloat m_projectionMatrix[16]; GLfloat m_viewMatrix[16]; @@ -165,25 +151,10 @@ struct InternalDataRenderer : public GLInstanceRendererInternalData GLRenderToTexture* m_shadowMap; GLuint m_shadowTexture; - int m_altPressed; - int m_controlPressed; - + InternalDataRenderer() : - m_cameraPosition(b3MakeVector3(0,0,0)), - m_cameraTargetPosition(b3MakeVector3(15,2,-24)), - m_cameraDistance(150), - m_cameraUp(b3MakeVector3(0,1,0)), - m_azi(100.f),//135.f), - //m_ele(25.f), - m_ele(25.f), - m_mouseInitialized(false), - m_leftMouseButton(0), - m_middleMouseButton(0), - m_rightMouseButton(0), m_shadowMap(0), - m_shadowTexture(0), - m_altPressed(0), - m_controlPressed(0) + m_shadowTexture(0) { //clear to zero to make it obvious if the matrix is used uninitialized for (int i=0;i<16;i++) @@ -194,113 +165,7 @@ struct InternalDataRenderer : public GLInstanceRendererInternalData } - void wheelCallback( float deltax, float deltay) - { - if (!m_leftMouseButton) - { - - if (deltay<0 || m_cameraDistance>1) - { - m_cameraDistance -= deltay*0.1f; - if (m_cameraDistance<1) - m_cameraDistance=1; - } else - { - b3Vector3 fwd = m_cameraTargetPosition-m_cameraPosition; - fwd.normalize(); - m_cameraTargetPosition += fwd*deltay*WHEEL_MULTIPLIER; - } - } else - { - if (b3Fabs(deltax)>b3Fabs(deltay)) - { - b3Vector3 fwd = m_cameraTargetPosition-m_cameraPosition; - b3Vector3 side = m_cameraUp.cross(fwd); - side.normalize(); - m_cameraTargetPosition += side * deltax*WHEEL_MULTIPLIER; - - } else - { - m_cameraTargetPosition -= m_cameraUp * deltay*WHEEL_MULTIPLIER; - - } - } - } - - void mouseMoveCallback(float x, float y) - { -// printf("moved to %f,%f\n",x,y); - if (m_altPressed || m_controlPressed) - { - float xDelta = x-m_mouseXpos; - float yDelta = y-m_mouseYpos; - - if (m_leftMouseButton) - { - // if (b3Fabs(xDelta)>b3Fabs(yDelta)) - // { - m_azi -= xDelta*MOUSE_MOVE_MULTIPLIER; - // } else - // { - m_ele += yDelta*MOUSE_MOVE_MULTIPLIER; - // } - } - if (m_middleMouseButton) - { - m_cameraTargetPosition += m_cameraUp * yDelta*0.01; - - - b3Vector3 fwd = m_cameraTargetPosition-m_cameraPosition; - b3Vector3 side = m_cameraUp.cross(fwd); - side.normalize(); - m_cameraTargetPosition += side * xDelta*0.01; - - } - if (m_rightMouseButton) - { - m_cameraDistance -= xDelta*0.01f; - m_cameraDistance -= yDelta*0.01f; - if (m_cameraDistance<1) - m_cameraDistance=1; - if (m_cameraDistance>1000) - m_cameraDistance=1000; - } - } - - //printf("m_azi/pitch = %f\n", m_azi); -// printf("m_ele/yaw = %f\n", m_ele); - - m_mouseXpos = x; - m_mouseYpos = y; - m_mouseInitialized = true; - } - - void mouseButtonCallback(int button, int state, float x, float y) - { - - if (button==0) - m_leftMouseButton=state; - if (button==1) - m_middleMouseButton=state; - - if (button==2) - m_rightMouseButton=state; - - m_mouseXpos = x; - m_mouseYpos = y; - m_mouseInitialized = true; - } - void keyboardCallback(int key, int state) - { - if (key==B3G_CONTROL) - { - m_controlPressed=state; - } - if (key==B3G_ALT) - { - m_altPressed = state; - } - } + }; @@ -309,28 +174,6 @@ struct GLInstanceRendererInternalData* GLInstancingRenderer::getInternalData() return m_data; } -void b3DefaultWheelCallback(float deltax, float deltay) -{ - if (sData2) - sData2->wheelCallback(deltax,deltay); -} -void b3DefaultMouseButtonCallback(int button, int state, float x, float y) -{ - if (sData2) - sData2->mouseButtonCallback(button, state, x, y); -} -void b3DefaultMouseMoveCallback( float x, float y) -{ - if (sData2) - sData2->mouseMoveCallback( x, y); -} - -void b3DefaultKeyboardCallback(int key, int state) -{ - if (sData2) - sData2->keyboardCallback(key,state); -} - static GLuint linesShader; // The line renderer static GLuint useShadowMapInstancingShader; // The shadow instancing renderer @@ -966,111 +809,6 @@ void GLInstancingRenderer::init() } -static void b3CreateFrustum( - float left, - float right, - float bottom, - float top, - float nearVal, - float farVal, - float frustum[16]) -{ - - frustum[0*4+0] = (float(2) * nearVal) / (right - left); - frustum[0*4+1] = float(0); - frustum[0*4+2] = float(0); - frustum[0*4+3] = float(0); - - frustum[1*4+0] = float(0); - frustum[1*4+1] = (float(2) * nearVal) / (top - bottom); - frustum[1*4+2] = float(0); - frustum[1*4+3] = float(0); - - frustum[2*4+0] = (right + left) / (right - left); - frustum[2*4+1] = (top + bottom) / (top - bottom); - frustum[2*4+2] = -(farVal + nearVal) / (farVal - nearVal); - frustum[2*4+3] = float(-1); - - frustum[3*4+0] = float(0); - frustum[3*4+1] = float(0); - frustum[3*4+2] = -(float(2) * farVal * nearVal) / (farVal - nearVal); - frustum[3*4+3] = float(0); - -} - - -static void b3Matrix4x4Mul(GLfloat aIn[4][4], GLfloat bIn[4][4], GLfloat result[4][4]) -{ - for (int j=0;j<4;j++) - for (int i=0;i<4;i++) - result[j][i] = aIn[0][i] * bIn[j][0] + aIn[1][i] * bIn[j][1] + aIn[2][i] * bIn[j][2] + aIn[3][i] * bIn[j][3]; -} - -static void b3Matrix4x4Mul16(GLfloat aIn[16], GLfloat bIn[16], GLfloat result[16]) -{ - for (int j=0;j<4;j++) - for (int i=0;i<4;i++) - result[j*4+i] = aIn[0*4+i] * bIn[j*4+0] + aIn[1*4+i] * bIn[j*4+1] + aIn[2*4+i] * bIn[j*4+2] + aIn[3*4+i] * bIn[j*4+3]; -} - - -static void b3CreateDiagonalMatrix(GLfloat value, GLfloat result[4][4]) -{ - for (int i=0;i<4;i++) - { - for (int j=0;j<4;j++) - { - if (i==j) - { - result[i][j] = value; - } else - { - result[i][j] = 0.f; - } - } - } -} - -static void b3CreateOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar, GLfloat result[4][4]) -{ - b3CreateDiagonalMatrix(1.f,result); - - result[0][0] = 2.f / (right - left); - result[1][1] = 2.f / (top - bottom); - result[2][2] = - 2.f / (zFar - zNear); - result[3][0] = - (right + left) / (right - left); - result[3][1] = - (top + bottom) / (top - bottom); - result[3][2] = - (zFar + zNear) / (zFar - zNear); -} - -static void b3CreateLookAt(const b3Vector3& eye, const b3Vector3& center,const b3Vector3& up, GLfloat result[16]) -{ - b3Vector3 f = (center - eye).normalized(); - b3Vector3 u = up.normalized(); - b3Vector3 s = (f.cross(u)).normalized(); - u = s.cross(f); - - result[0*4+0] = s.x; - result[1*4+0] = s.y; - result[2*4+0] = s.z; - - result[0*4+1] = u.x; - result[1*4+1] = u.y; - result[2*4+1] = u.z; - - result[0*4+2] =-f.x; - result[1*4+2] =-f.y; - result[2*4+2] =-f.z; - - result[0*4+3] = 0.f; - result[1*4+3] = 0.f; - result[2*4+3] = 0.f; - - result[3*4+0] = -s.dot(eye); - result[3*4+1] = -u.dot(eye); - result[3*4+2] = f.dot(eye); - result[3*4+3] = 1.f; -} void GLInstancingRenderer::resize(int width, int height) @@ -1079,188 +817,53 @@ void GLInstancingRenderer::resize(int width, int height) m_screenHeight = height; } + +const CommonCameraInterface* GLInstancingRenderer::getActiveCamera() const +{ + return &m_data->m_defaultCamera; +} + +CommonCameraInterface* GLInstancingRenderer::getActiveCamera() +{ + return &m_data->m_defaultCamera; +} + + +void GLInstancingRenderer::setActiveCamera(CommonCameraInterface* cam) +{ + b3Assert(0);//not supported yet +} + + void GLInstancingRenderer::updateCamera(int upAxis) { b3Assert(glGetError() ==GL_NO_ERROR); - m_upAxis = upAxis; - int m_forwardAxis(-1); switch (upAxis) { case 1: - m_forwardAxis = 2; - m_data->m_cameraUp = b3MakeVector3(0,1,0); - gLightPos = b3MakeVector3(-50.f,100,30); + gLightPos = b3MakeVector3(-50.f,100,30); break; case 2: - m_forwardAxis = 1; - m_data->m_cameraUp = b3MakeVector3(0,0,1); gLightPos = b3MakeVector3(-50.f,30,100); break; default: b3Assert(0); }; + m_data->m_defaultCamera.setCameraUpAxis(upAxis); + m_data->m_defaultCamera.setAspectRatio((float)m_screenWidth/(float)m_screenHeight); + m_data->m_defaultCamera.update(); - float m_frustumZNear=0.01; - float m_frustumZFar=1000.f; - - -// m_azi=m_azi+0.01; - b3Scalar rele = m_data->m_ele * b3Scalar(0.01745329251994329547);// rads per deg - b3Scalar razi = m_data->m_azi * b3Scalar(0.01745329251994329547);// rads per deg - - - b3Quaternion rot(m_data->m_cameraUp,razi); - - b3Vector3 eyePos = b3MakeVector3(0,0,0); - eyePos[m_forwardAxis] = -m_data->m_cameraDistance; - - b3Vector3 forward = b3MakeVector3(eyePos[0],eyePos[1],eyePos[2]); - if (forward.length2() < B3_EPSILON) - { - forward.setValue(1.f,0.f,0.f); - } - b3Vector3 right = m_data->m_cameraUp.cross(forward); - b3Quaternion roll(right,-rele); - - eyePos = b3Matrix3x3(rot) * b3Matrix3x3(roll) * eyePos; - - m_data->m_cameraPosition[0] = eyePos.x; - m_data->m_cameraPosition[1] = eyePos.y; - m_data->m_cameraPosition[2] = eyePos.z; - m_data->m_cameraPosition += m_data->m_cameraTargetPosition; - - if (m_screenWidth == 0 && m_screenHeight == 0) - return; - - b3Scalar aspect; - b3Vector3 extents; - - aspect = m_screenWidth / (b3Scalar)m_screenHeight; - extents.setValue(aspect * 1.0f, 1.0f,0); - - - if (m_screenWidth > m_screenHeight) - { - b3CreateFrustum(-aspect * m_frustumZNear, aspect * m_frustumZNear, -m_frustumZNear, m_frustumZNear, m_frustumZNear, m_frustumZFar,m_data->m_projectionMatrix); - } else - { - b3CreateFrustum(-aspect * m_frustumZNear, aspect * m_frustumZNear, -m_frustumZNear, m_frustumZNear, m_frustumZNear, m_frustumZFar,m_data->m_projectionMatrix); - } - - b3CreateLookAt(m_data->m_cameraPosition,m_data->m_cameraTargetPosition,m_data->m_cameraUp,m_data->m_viewMatrix); - + m_data->m_defaultCamera.getCameraProjectionMatrix(m_data->m_projectionMatrix); + m_data->m_defaultCamera.getCameraViewMatrix(m_data->m_viewMatrix); + + } -void GLInstancingRenderer::getCameraPosition(float cameraPos[4]) -{ - cameraPos[0] = m_data->m_cameraPosition[0]; - cameraPos[1] = m_data->m_cameraPosition[1]; - cameraPos[2] = m_data->m_cameraPosition[2]; - cameraPos[3] = 1.f; -} - -void GLInstancingRenderer::setCameraDistance(float dist) -{ - m_data->m_cameraDistance = dist; -} - -void GLInstancingRenderer::setCameraYaw(float yaw) -{ - m_data->m_ele = yaw; -} -void GLInstancingRenderer::setCameraPitch(float pitch) -{ - m_data->m_azi = pitch; -} - -float GLInstancingRenderer::getCameraYaw() const -{ - return m_data->m_ele; -} -float GLInstancingRenderer::getCameraPitch() const -{ - return m_data->m_azi; -} - -void GLInstancingRenderer::setCameraTargetPosition(float x, float y, float z) -{ - m_data->m_cameraTargetPosition = b3MakeVector3(x,y,z); -} -void GLInstancingRenderer::setCameraTargetPosition(float cameraPos[4]) -{ - setCameraTargetPosition(cameraPos[0],cameraPos[1],cameraPos[2]); -} - -void GLInstancingRenderer::getCameraTargetPosition(float cameraPos[4]) const -{ - cameraPos[0] = m_data->m_cameraTargetPosition.x; - cameraPos[1] = m_data->m_cameraTargetPosition.y; - cameraPos[2] = m_data->m_cameraTargetPosition.z; -} - - -float GLInstancingRenderer::getCameraDistance() const -{ - return m_data->m_cameraDistance; -} - - -void GLInstancingRenderer::getMouseDirection(float* dir, int x, int y) -{ - float top = 1.f; - float bottom = -1.f; - float nearPlane = 1.f; - float tanFov = (top-bottom)*0.5f / nearPlane; - float fov = b3Scalar(2.0) * b3Atan(tanFov); - - b3Vector3 rayFrom = m_data->m_cameraPosition; - b3Vector3 rayForward = (m_data->m_cameraTargetPosition-m_data->m_cameraPosition); - rayForward.normalize(); - float farPlane = 10000.f; - rayForward*= farPlane; - -// b3Vector3 rightOffset; - b3Vector3 vertical = m_data->m_cameraUp; - - b3Vector3 hor; - hor = rayForward.cross(vertical); - hor.normalize(); - vertical = hor.cross(rayForward); - vertical.normalize(); - - float tanfov = tanf(0.5f*fov); - - - hor *= 2.f * farPlane * tanfov; - vertical *= 2.f * farPlane * tanfov; - - b3Scalar aspect; - - aspect = m_screenWidth / (b3Scalar)m_screenHeight; - - hor*=aspect; - - - b3Vector3 rayToCenter = rayFrom + rayForward; - b3Vector3 dHor = hor * 1.f/float(m_screenWidth); - b3Vector3 dVert = vertical * 1.f/float(m_screenHeight); - - - b3Vector3 rayTo = rayToCenter - 0.5f * hor + 0.5f * vertical; - rayTo += b3Scalar(x) * dHor; - rayTo -= b3Scalar(y) * dVert; - - dir[0] = rayTo[0]; - dir[1] = rayTo[1]; - dir[2] = rayTo[2]; - -} - //#define STB_IMAGE_WRITE_IMPLEMENTATION @@ -1560,6 +1163,119 @@ struct PointerCaster }; + + + + +static void b3CreateFrustum( + float left, + float right, + float bottom, + float top, + float nearVal, + float farVal, + float frustum[16]) +{ + + frustum[0*4+0] = (float(2) * nearVal) / (right - left); + frustum[0*4+1] = float(0); + frustum[0*4+2] = float(0); + frustum[0*4+3] = float(0); + + frustum[1*4+0] = float(0); + frustum[1*4+1] = (float(2) * nearVal) / (top - bottom); + frustum[1*4+2] = float(0); + frustum[1*4+3] = float(0); + + frustum[2*4+0] = (right + left) / (right - left); + frustum[2*4+1] = (top + bottom) / (top - bottom); + frustum[2*4+2] = -(farVal + nearVal) / (farVal - nearVal); + frustum[2*4+3] = float(-1); + + frustum[3*4+0] = float(0); + frustum[3*4+1] = float(0); + frustum[3*4+2] = -(float(2) * farVal * nearVal) / (farVal - nearVal); + frustum[3*4+3] = float(0); + +} + + +static void b3Matrix4x4Mul(GLfloat aIn[4][4], GLfloat bIn[4][4], GLfloat result[4][4]) +{ + for (int j=0;j<4;j++) + for (int i=0;i<4;i++) + result[j][i] = aIn[0][i] * bIn[j][0] + aIn[1][i] * bIn[j][1] + aIn[2][i] * bIn[j][2] + aIn[3][i] * bIn[j][3]; +} + +static void b3Matrix4x4Mul16(GLfloat aIn[16], GLfloat bIn[16], GLfloat result[16]) +{ + for (int j=0;j<4;j++) + for (int i=0;i<4;i++) + result[j*4+i] = aIn[0*4+i] * bIn[j*4+0] + aIn[1*4+i] * bIn[j*4+1] + aIn[2*4+i] * bIn[j*4+2] + aIn[3*4+i] * bIn[j*4+3]; +} + + +static void b3CreateDiagonalMatrix(GLfloat value, GLfloat result[4][4]) +{ + for (int i=0;i<4;i++) + { + for (int j=0;j<4;j++) + { + if (i==j) + { + result[i][j] = value; + } else + { + result[i][j] = 0.f; + } + } + } +} + +static void b3CreateOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar, GLfloat result[4][4]) +{ + b3CreateDiagonalMatrix(1.f,result); + + result[0][0] = 2.f / (right - left); + result[1][1] = 2.f / (top - bottom); + result[2][2] = - 2.f / (zFar - zNear); + result[3][0] = - (right + left) / (right - left); + result[3][1] = - (top + bottom) / (top - bottom); + result[3][2] = - (zFar + zNear) / (zFar - zNear); +} + +static void b3CreateLookAt(const b3Vector3& eye, const b3Vector3& center,const b3Vector3& up, GLfloat result[16]) +{ + b3Vector3 f = (center - eye).normalized(); + b3Vector3 u = up.normalized(); + b3Vector3 s = (f.cross(u)).normalized(); + u = s.cross(f); + + result[0*4+0] = s.x; + result[1*4+0] = s.y; + result[2*4+0] = s.z; + + result[0*4+1] = u.x; + result[1*4+1] = u.y; + result[2*4+1] = u.z; + + result[0*4+2] =-f.x; + result[1*4+2] =-f.y; + result[2*4+2] =-f.z; + + result[0*4+3] = 0.f; + result[1*4+3] = 0.f; + result[2*4+3] = 0.f; + + result[3*4+0] = -s.dot(eye); + result[3*4+1] = -u.dot(eye); + result[3*4+2] = f.dot(eye); + result[3*4+3] = 1.f; +} + + + + void GLInstancingRenderer::renderSceneInternal(int renderMode) { @@ -1644,7 +1360,9 @@ void GLInstancingRenderer::renderSceneInternal(int renderMode) b3CreateOrtho(-shadowMapWorldSize,shadowMapWorldSize,-shadowMapWorldSize,shadowMapWorldSize,1,300,depthProjectionMatrix);//-14,14,-14,14,1,200, depthProjectionMatrix); float depthViewMatrix[4][4]; b3Vector3 center = b3MakeVector3(0,0,0); - b3Vector3 up =b3MakeVector3(0,1,0); + float upf[3]; + m_data->m_defaultCamera.getCameraUpVector(upf); + b3Vector3 up = b3MakeVector3(upf[0],upf[1],upf[2]); b3CreateLookAt(gLightPos,center,up,&depthViewMatrix[0][0]); //b3CreateLookAt(lightPos,m_data->m_cameraTargetPosition,b3Vector3(0,1,0),(float*)depthModelViewMatrix2); @@ -1912,18 +1630,3 @@ void GLInstancingRenderer::enableShadowMap() } -void GLInstancingRenderer::getCameraViewMatrix(float viewMat[16]) const -{ - for (int i=0;i<16;i++) - { - viewMat[i] = m_data->m_viewMatrix[i]; - } - -} -void GLInstancingRenderer::getCameraProjectionMatrix(float projMat[16]) const -{ - for (int i=0;i<16;i++) - { - projMat[i] = m_data->m_projectionMatrix[i]; - } -} diff --git a/btgui/OpenGLWindow/GLInstancingRenderer.h b/examples/OpenGLWindow/GLInstancingRenderer.h similarity index 75% rename from btgui/OpenGLWindow/GLInstancingRenderer.h rename to examples/OpenGLWindow/GLInstancingRenderer.h index e02b937d8..97ab43a86 100644 --- a/btgui/OpenGLWindow/GLInstancingRenderer.h +++ b/examples/OpenGLWindow/GLInstancingRenderer.h @@ -17,13 +17,10 @@ subject to the following restrictions: #define GL_INSTANCING_RENDERER_H #include "Bullet3Common/b3AlignedObjectArray.h" -#include "OpenGLWindow/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "SimpleCamera.h" -void b3DefaultMouseButtonCallback( int button, int state, float x, float y); -void b3DefaultMouseMoveCallback( float x, float y); -void b3DefaultKeyboardCallback(int key, int state); -void b3DefaultWheelCallback( float deltax, float deltay); @@ -48,6 +45,7 @@ class GLInstancingRenderer : public CommonRenderInterface void renderSceneInternal(int renderMode=B3_DEFAULT_RENDERMODE); + public: GLInstancingRenderer(int m_maxObjectCapacity, int maxShapeCapacityInBytes = 56*1024*1024); virtual ~GLInstancingRenderer(); @@ -95,8 +93,7 @@ public: virtual void writeSingleInstanceColorToCPU(float* color, int srcIndex); virtual void writeSingleInstanceColorToCPU(double* color, int srcIndex); - virtual void getMouseDirection(float* dir, int mouseX, int mouseY); - + struct GLInstanceRendererInternalData* getInternalData(); virtual void drawLine(const float from[4], const float to[4], const float color[4], float lineWidth=1); @@ -107,44 +104,11 @@ public: virtual void drawPoint(const double* position, const double color[4], double pointDrawSize=1); virtual void updateCamera(int upAxis=1); - virtual void getCameraPosition(float cameraPos[4]); - virtual void getCameraPosition(double cameraPos[4]) - { - float campos[4]; - getCameraPosition(campos); - cameraPos[0] = campos[0]; - cameraPos[1] = campos[1]; - cameraPos[2] = campos[2]; - cameraPos[3] = campos[3]; - } - - virtual void setCameraDistance(float dist); - virtual float getCameraDistance() const; - - //set the camera 'target' - virtual void setCameraTargetPosition(float x, float y, float z); - virtual void setCameraTargetPosition(float cameraPos[4]); - virtual void getCameraTargetPosition(float cameraPos[4]) const; - virtual void getCameraTargetPosition(double cameraPos[4]) const - { - float campos[4]; - getCameraTargetPosition(campos); - cameraPos[0] = campos[0]; - cameraPos[1] = campos[1]; - cameraPos[2] = campos[2]; - cameraPos[3] = campos[3]; - - } + virtual const CommonCameraInterface* getActiveCamera() const; + virtual CommonCameraInterface* getActiveCamera(); + virtual void setActiveCamera(CommonCameraInterface* cam); + - virtual void setCameraYaw(float yaw); - virtual void setCameraPitch(float pitch); - virtual float getCameraYaw() const; - virtual float getCameraPitch() const; - - virtual void getCameraViewMatrix(float viewMat[16]) const; - virtual void getCameraProjectionMatrix(float projMat[16]) const; - - virtual void resize(int width, int height); virtual int getScreenWidth() { diff --git a/btgui/OpenGLWindow/GLPrimInternalData.h b/examples/OpenGLWindow/GLPrimInternalData.h similarity index 100% rename from btgui/OpenGLWindow/GLPrimInternalData.h rename to examples/OpenGLWindow/GLPrimInternalData.h diff --git a/btgui/OpenGLWindow/GLPrimitiveRenderer.cpp b/examples/OpenGLWindow/GLPrimitiveRenderer.cpp similarity index 100% rename from btgui/OpenGLWindow/GLPrimitiveRenderer.cpp rename to examples/OpenGLWindow/GLPrimitiveRenderer.cpp diff --git a/btgui/OpenGLWindow/GLPrimitiveRenderer.h b/examples/OpenGLWindow/GLPrimitiveRenderer.h similarity index 100% rename from btgui/OpenGLWindow/GLPrimitiveRenderer.h rename to examples/OpenGLWindow/GLPrimitiveRenderer.h diff --git a/btgui/OpenGLWindow/GLRenderToTexture.cpp b/examples/OpenGLWindow/GLRenderToTexture.cpp similarity index 100% rename from btgui/OpenGLWindow/GLRenderToTexture.cpp rename to examples/OpenGLWindow/GLRenderToTexture.cpp diff --git a/btgui/OpenGLWindow/GLRenderToTexture.h b/examples/OpenGLWindow/GLRenderToTexture.h similarity index 100% rename from btgui/OpenGLWindow/GLRenderToTexture.h rename to examples/OpenGLWindow/GLRenderToTexture.h diff --git a/btgui/OpenGLWindow/GwenOpenGL3CoreRenderer.h b/examples/OpenGLWindow/GwenOpenGL3CoreRenderer.h similarity index 99% rename from btgui/OpenGLWindow/GwenOpenGL3CoreRenderer.h rename to examples/OpenGLWindow/GwenOpenGL3CoreRenderer.h index fb3abe410..2bc1a01de 100644 --- a/btgui/OpenGLWindow/GwenOpenGL3CoreRenderer.h +++ b/examples/OpenGLWindow/GwenOpenGL3CoreRenderer.h @@ -5,7 +5,7 @@ #include "Gwen/Gwen.h" #include "Gwen/BaseRender.h" #include "GLPrimitiveRenderer.h" -#include "OpenGLWindow/OpenGLInclude.h" +#include "../OpenGLWindow/OpenGLInclude.h" struct sth_stash; #include "fontstash.h" diff --git a/btgui/OpenGLWindow/LoadShader.cpp b/examples/OpenGLWindow/LoadShader.cpp similarity index 100% rename from btgui/OpenGLWindow/LoadShader.cpp rename to examples/OpenGLWindow/LoadShader.cpp diff --git a/btgui/OpenGLWindow/LoadShader.h b/examples/OpenGLWindow/LoadShader.h similarity index 100% rename from btgui/OpenGLWindow/LoadShader.h rename to examples/OpenGLWindow/LoadShader.h diff --git a/btgui/OpenGLWindow/MacOpenGLWindow.h b/examples/OpenGLWindow/MacOpenGLWindow.h similarity index 92% rename from btgui/OpenGLWindow/MacOpenGLWindow.h rename to examples/OpenGLWindow/MacOpenGLWindow.h index d31387574..81bb935b1 100644 --- a/btgui/OpenGLWindow/MacOpenGLWindow.h +++ b/examples/OpenGLWindow/MacOpenGLWindow.h @@ -1,11 +1,11 @@ #ifndef MAC_OPENGL_WINDOW_H #define MAC_OPENGL_WINDOW_H -#include "b3gWindowInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" #define b3gDefaultOpenGLWindow MacOpenGLWindow -class MacOpenGLWindow : public b3gWindowInterface +class MacOpenGLWindow : public CommonWindowInterface { struct MacOpenGLWindowInternalData* m_internalData; float m_mouseX; @@ -39,6 +39,8 @@ public: void getMouseCoordinates(int& x, int& y); void runMainLoop(); + + virtual bool isModifierKeyPressed(int key); void setMouseButtonCallback(b3MouseButtonCallback mouseCallback) { @@ -51,7 +53,8 @@ public: } void setResizeCallback(b3ResizeCallback resizeCallback); - + + void setKeyboardCallback( b3KeyboardCallback keyboardCallback) { m_keyboardCallback = keyboardCallback; diff --git a/btgui/OpenGLWindow/MacOpenGLWindow.mm b/examples/OpenGLWindow/MacOpenGLWindow.mm similarity index 95% rename from btgui/OpenGLWindow/MacOpenGLWindow.mm rename to examples/OpenGLWindow/MacOpenGLWindow.mm index 50998b7e7..b2c120db9 100644 --- a/btgui/OpenGLWindow/MacOpenGLWindow.mm +++ b/examples/OpenGLWindow/MacOpenGLWindow.mm @@ -12,7 +12,12 @@ #include - +enum +{ + MY_MAC_ALTKEY=1, + MY_MAC_SHIFTKEY=2, + MY_MAC_CONTROL_KEY=4 +}; /* report GL errors, if any, to stderr */ static void checkError(const char *functionName) @@ -222,6 +227,35 @@ MacOpenGLWindow::~MacOpenGLWindow() } +bool MacOpenGLWindow::isModifierKeyPressed(int key) +{ + bool isPressed = false; + + switch (key) + { + case B3G_ALT: + { + isPressed = ((m_modifierFlags & MY_MAC_ALTKEY)!=0); + break; + }; + case B3G_SHIFT: + { + isPressed = ((m_modifierFlags & MY_MAC_SHIFTKEY)!=0); + break; + }; + case B3G_CONTROL: + { + isPressed = ((m_modifierFlags & MY_MAC_CONTROL_KEY )!=0); + break; + }; + + default: + { + } + }; + return isPressed; +} + float MacOpenGLWindow::getTimeInSeconds() { return 0.f; @@ -743,37 +777,43 @@ void MacOpenGLWindow::startRendering() if ((modifiers & NSShiftKeyMask)) { m_keyboardCallback(B3G_SHIFT,1); + m_modifierFlags |= MY_MAC_SHIFTKEY; }else { - if (m_modifierFlags&NSShiftKeyMask) + if (m_modifierFlags& MY_MAC_SHIFTKEY) { - m_keyboardCallback(B3G_SHIFT,0); + m_keyboardCallback(B3G_SHIFT,0); + m_modifierFlags &= ~MY_MAC_SHIFTKEY; } } if (modifiers & NSControlKeyMask) { m_keyboardCallback(B3G_CONTROL,1); + m_modifierFlags |= MY_MAC_CONTROL_KEY; } else { - if (m_modifierFlags&NSControlKeyMask) + if (m_modifierFlags&MY_MAC_CONTROL_KEY) { m_keyboardCallback(B3G_CONTROL,0); + m_modifierFlags &= ~MY_MAC_CONTROL_KEY; } } if (modifiers & NSAlternateKeyMask) - { - m_keyboardCallback(B3G_ALT,1); - } else - { - if (m_modifierFlags&NSAlternateKeyMask) - { - m_keyboardCallback(B3G_ALT,0); - } - } + { + m_keyboardCallback(B3G_ALT,1); + m_modifierFlags |= MY_MAC_ALTKEY; + } else + { + if (m_modifierFlags&MY_MAC_ALTKEY) + { + m_keyboardCallback(B3G_ALT,0); + m_modifierFlags &= ~MY_MAC_ALTKEY; + + } + } //handle NSCommandKeyMask } - m_modifierFlags=modifiers; } if ([event type] == NSKeyUp) { diff --git a/btgui/OpenGLWindow/OpenGL2Include.h b/examples/OpenGLWindow/OpenGL2Include.h similarity index 94% rename from btgui/OpenGLWindow/OpenGL2Include.h rename to examples/OpenGLWindow/OpenGL2Include.h index 25d48ad33..34caaaf07 100644 --- a/btgui/OpenGLWindow/OpenGL2Include.h +++ b/examples/OpenGLWindow/OpenGL2Include.h @@ -24,7 +24,11 @@ subject to the following restrictions: #include #else -#include "GlewWindows/GL/glew.h" +#ifdef GLEW_STATIC +#include "CustomGL/glew.h" +#else +#include +#endif//GLEW_STATIC #ifdef _WINDOWS #include diff --git a/btgui/OpenGLWindow/OpenGLInclude.h b/examples/OpenGLWindow/OpenGLInclude.h similarity index 94% rename from btgui/OpenGLWindow/OpenGLInclude.h rename to examples/OpenGLWindow/OpenGLInclude.h index 6b4f3df11..fee6a3095 100644 --- a/btgui/OpenGLWindow/OpenGLInclude.h +++ b/examples/OpenGLWindow/OpenGLInclude.h @@ -31,7 +31,11 @@ subject to the following restrictions: #endif #else -#include "GlewWindows/GL/glew.h" +#ifdef GLEW_STATIC +#include "CustomGL/glew.h" +#else +#include +#endif //GLEW_STATIC #ifdef _WINDOWS #include diff --git a/examples/OpenGLWindow/OpenSans.cpp b/examples/OpenGLWindow/OpenSans.cpp new file mode 100644 index 000000000..964eec975 --- /dev/null +++ b/examples/OpenGLWindow/OpenSans.cpp @@ -0,0 +1,21738 @@ +unsigned char OpenSansData[]={0,1,0,0,0,19,1,0,0,4, +0,48,68,83,73,71,158,18,68,29, +0,3,59,156,0,0,21,116,71,68, +69,70,0,38,3,175,0,3,55,124, +0,0,0,30,71,80,79,83,11,55, +15,55,0,3,55,156,0,0,0,56, +71,83,85,66,14,43,61,183,0,3, +55,212,0,0,3,198,79,83,47,50, +161,62,158,201,0,0,1,184,0,0, +0,96,99,109,97,112,41,171,47,104, +0,0,16,180,0,0,4,26,99,118, +116,32,15,77,24,164,0,0,29,144, +0,0,0,162,102,112,103,109,126,97, +182,17,0,0,20,208,0,0,7,180, +103,97,115,112,0,21,0,35,0,3, +55,108,0,0,0,16,103,108,121,102, +116,56,153,75,0,0,37,140,0,1, +47,180,104,101,97,100,247,118,226,166, +0,0,1,60,0,0,0,54,104,104, +101,97,13,204,9,115,0,0,1,116, +0,0,0,36,104,109,116,120,232,53, +60,221,0,0,2,24,0,0,14,154, +107,101,114,110,84,43,9,126,0,1, +85,64,0,1,182,54,108,111,99,97, +41,20,220,241,0,0,30,52,0,0, +7,86,109,97,120,112,5,67,2,10, +0,0,1,152,0,0,0,32,110,97, +109,101,115,176,136,133,0,3,11,120, +0,0,5,199,112,111,115,116,2,67, +239,108,0,3,17,64,0,0,38,43, +112,114,101,112,67,183,150,164,0,0, +28,132,0,0,1,9,0,1,0,0, +0,1,25,154,33,199,245,95,95,15, +60,245,0,9,8,0,0,0,0,0, +201,53,49,139,0,0,0,0,201,232, +76,76,251,154,253,213,9,162,8,98, +0,0,0,9,0,2,0,0,0,0, +0,0,0,1,0,0,8,141,253,168, +0,0,9,172,251,154,254,123,9,162, +0,1,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,3,163,0,1, +0,0,3,170,0,138,0,22,0,86, +0,5,0,2,0,16,0,47,0,92, +0,0,1,14,0,248,0,3,0,1, +0,3,4,182,1,144,0,5,0,8, +5,154,5,51,0,0,1,31,5,154, +5,51,0,0,3,209,0,102,1,241, +8,2,2,11,6,6,3,5,4,2, +2,4,224,0,2,239,64,0,32,91, +0,0,0,40,0,0,0,0,49,65, +83,67,0,64,0,32,255,253,6,31, +254,20,0,132,8,141,2,88,32,0, +1,159,0,0,0,0,4,72,5,182, +0,0,0,32,0,3,4,205,0,193, +0,0,0,0,4,20,0,0,2,20, +0,0,2,35,0,152,3,53,0,133, +5,43,0,51,4,147,0,131,6,150, +0,104,5,215,0,113,1,197,0,133, +2,94,0,82,2,94,0,61,4,106, +0,86,4,147,0,104,1,246,0,63, +2,147,0,84,2,33,0,152,2,240, +0,20,4,147,0,102,4,147,0,188, +4,147,0,100,4,147,0,94,4,147, +0,43,4,147,0,133,4,147,0,117, +4,147,0,94,4,147,0,104,4,147, +0,106,2,33,0,152,2,33,0,63, +4,147,0,104,4,147,0,119,4,147, +0,104,3,111,0,27,7,49,0,121, +5,16,0,0,5,47,0,201,5,12, +0,125,5,213,0,201,4,115,0,201, +4,33,0,201,5,211,0,125,5,231, +0,201,2,170,0,84,2,35,255,96, +4,233,0,201,4,39,0,201,7,57, +0,201,6,8,0,201,6,59,0,125, +4,209,0,201,6,59,0,125,4,242, +0,201,4,100,0,106,4,109,0,18, +5,211,0,186,4,195,0,0,7,104, +0,27,4,158,0,8,4,123,0,0, +4,145,0,82,2,162,0,166,2,240, +0,23,2,162,0,51,4,86,0,49, +3,150,255,252,4,158,1,137,4,115, +0,94,4,231,0,176,3,207,0,115, +4,231,0,115,4,125,0,115,2,182, +0,29,4,98,0,39,4,233,0,176, +2,6,0,162,2,6,255,145,4,51, +0,176,2,6,0,176,7,113,0,176, +4,233,0,176,4,213,0,115,4,231, +0,176,4,231,0,115,3,68,0,176, +3,209,0,106,2,211,0,31,4,233, +0,164,4,2,0,0,6,57,0,23, +4,49,0,39,4,8,0,2,3,190, +0,82,3,8,0,61,4,104,1,238, +3,8,0,72,4,147,0,104,2,20, +0,0,2,35,0,152,4,147,0,190, +4,147,0,63,4,147,0,123,4,147, +0,31,4,104,1,238,4,33,0,123, +4,158,1,53,6,168,0,100,2,213, +0,70,3,250,0,82,4,147,0,104, +2,147,0,84,6,168,0,100,4,0, +255,250,3,109,0,127,4,147,0,104, +2,199,0,49,2,199,0,33,4,158, +1,137,4,244,0,176,5,61,0,113, +2,33,0,152,1,209,0,37,2,199, +0,76,3,0,0,66,3,250,0,80, +6,61,0,75,6,61,0,46,6,61, +0,26,3,111,0,51,5,16,0,0, +5,16,0,0,5,16,0,0,5,16, +0,0,5,16,0,0,5,16,0,0, +6,252,255,254,5,12,0,125,4,115, +0,201,4,115,0,201,4,115,0,201, +4,115,0,201,2,170,0,60,2,170, +0,84,2,170,255,255,2,170,0,60, +5,199,0,47,6,8,0,201,6,59, +0,125,6,59,0,125,6,59,0,125, +6,59,0,125,6,59,0,125,4,147, +0,133,6,59,0,125,5,211,0,186, +5,211,0,186,5,211,0,186,5,211, +0,186,4,123,0,0,4,227,0,201, +4,250,0,176,4,115,0,94,4,115, +0,94,4,115,0,94,4,115,0,94, +4,115,0,94,4,115,0,94,6,221, +0,94,3,207,0,115,4,125,0,115, +4,125,0,115,4,125,0,115,4,125, +0,115,2,6,255,218,2,6,0,169, +2,6,255,179,2,6,255,236,4,197, +0,113,4,233,0,176,4,213,0,115, +4,213,0,115,4,213,0,115,4,213, +0,115,4,213,0,115,4,147,0,104, +4,213,0,115,4,233,0,164,4,233, +0,164,4,233,0,164,4,233,0,164, +4,8,0,2,4,231,0,176,4,8, +0,2,5,16,0,0,4,115,0,94, +5,16,0,0,4,115,0,94,5,16, +0,0,4,115,0,94,5,12,0,125, +3,207,0,115,5,12,0,125,3,207, +0,115,5,12,0,125,3,207,0,115, +5,12,0,125,3,207,0,115,5,213, +0,201,4,231,0,115,5,199,0,47, +4,231,0,115,4,115,0,201,4,125, +0,115,4,115,0,201,4,125,0,115, +4,115,0,201,4,125,0,115,4,115, +0,201,4,125,0,115,4,115,0,201, +4,125,0,115,5,211,0,125,4,98, +0,39,5,211,0,125,4,98,0,39, +5,211,0,125,4,98,0,39,5,211, +0,125,4,98,0,39,5,231,0,201, +4,233,0,176,5,231,0,0,4,233, +0,20,2,170,255,226,2,6,255,144, +2,170,0,42,2,6,255,218,2,170, +0,30,2,6,255,204,2,170,0,84, +2,6,0,53,2,170,0,84,2,6, +0,176,4,205,0,84,4,12,0,162, +2,35,255,96,2,6,255,145,4,233, +0,201,4,51,0,176,4,37,0,176, +4,39,0,201,2,6,0,163,4,39, +0,201,2,6,0,89,4,39,0,201, +2,6,0,176,4,39,0,201,2,131, +0,176,4,47,0,29,2,23,255,252, +6,8,0,201,4,233,0,176,6,8, +0,201,4,233,0,176,6,8,0,201, +4,233,0,176,5,115,0,1,6,8, +0,201,4,233,0,176,6,59,0,125, +4,213,0,115,6,59,0,125,4,213, +0,115,6,59,0,125,4,213,0,115, +7,98,0,125,7,137,0,113,4,242, +0,201,3,68,0,176,4,242,0,201, +3,68,0,96,4,242,0,201,3,68, +0,130,4,100,0,106,3,209,0,106, +4,100,0,106,3,209,0,106,4,100, +0,106,3,209,0,106,4,100,0,106, +3,209,0,106,4,109,0,18,2,211, +0,31,4,109,0,18,2,211,0,31, +4,109,0,18,2,211,0,31,5,211, +0,186,4,233,0,164,5,211,0,186, +4,233,0,164,5,211,0,186,4,233, +0,164,5,211,0,186,4,233,0,164, +5,211,0,186,4,233,0,164,5,211, +0,186,4,233,0,164,7,104,0,27, +6,57,0,23,4,123,0,0,4,8, +0,2,4,123,0,0,4,145,0,82, +3,190,0,82,4,145,0,82,3,190, +0,82,4,145,0,82,3,190,0,82, +2,143,0,176,4,158,0,195,5,20, +0,0,4,115,0,94,6,252,255,254, +6,221,0,94,6,59,0,125,4,213, +0,115,4,100,0,106,3,209,0,106, +4,188,1,12,4,188,1,12,4,178, +1,45,4,188,1,37,2,6,0,162, +4,158,1,111,1,147,0,37,4,188, +1,8,4,158,0,231,4,158,1,252, +4,158,1,27,5,16,0,0,2,33, +0,152,4,242,255,212,6,125,255,212, +3,152,255,228,6,129,255,228,5,133, +255,212,6,129,255,228,2,182,255,233, +5,16,0,0,5,47,0,201,4,41, +0,201,4,147,0,39,4,115,0,201, +4,145,0,82,5,231,0,201,6,59, +0,125,2,170,0,84,4,233,0,201, +4,211,0,0,7,57,0,201,6,8, +0,201,4,109,0,72,6,59,0,125, +5,213,0,201,4,209,0,201,4,137, +0,74,4,109,0,18,4,123,0,0, +6,98,0,106,4,158,0,8,6,94, +0,109,6,66,0,80,2,170,0,60, +4,123,0,0,4,227,0,115,3,205, +0,90,4,233,0,176,2,182,0,168, +4,223,0,164,4,227,0,115,5,6, +0,176,4,25,0,10,4,164,0,113, +3,205,0,90,3,221,0,115,4,233, +0,176,4,188,0,115,2,182,0,168, +4,37,0,176,4,70,255,242,4,244, +0,176,4,86,0,0,3,205,0,113, +4,213,0,115,5,51,0,25,4,213, +0,166,3,219,0,115,4,231,0,115, +3,201,0,18,4,223,0,164,5,190, +0,115,4,94,255,236,6,6,0,164, +6,47,0,115,2,182,0,9,4,223, +0,164,4,213,0,115,4,223,0,164, +6,47,0,115,4,115,0,201,5,223, +0,18,4,41,0,201,5,29,0,125, +4,100,0,106,2,170,0,84,2,170, +0,60,2,35,255,96,7,111,0,0, +7,160,0,201,5,223,0,18,4,229, +0,201,4,248,0,27,5,213,0,201, +5,16,0,0,4,231,0,201,5,47, +0,201,4,41,0,201,5,119,0,14, +4,115,0,201,6,193,0,2,4,166, +0,74,6,25,0,203,6,25,0,203, +4,229,0,201,5,162,0,0,7,57, +0,201,5,231,0,201,6,59,0,125, +5,213,0,201,4,209,0,201,5,12, +0,125,4,109,0,18,4,248,0,27, +6,98,0,106,4,158,0,8,5,229, +0,201,5,143,0,170,8,66,0,201, +8,68,0,201,5,129,0,18,6,211, +0,201,5,37,0,201,5,10,0,61, +8,102,0,201,5,23,0,51,4,115, +0,94,4,197,0,119,4,141,0,176, +3,109,0,176,4,147,0,41,4,125, +0,115,5,227,0,4,3,221,0,68, +5,18,0,176,5,18,0,176,4,39, +0,176,4,145,0,16,5,225,0,176, +5,18,0,176,4,213,0,115,4,248, +0,176,4,231,0,176,3,207,0,115, +3,188,0,41,4,8,0,2,5,184, +0,113,4,49,0,39,5,2,0,176, +4,221,0,156,7,31,0,176,7,45, +0,176,5,143,0,41,6,41,0,176, +4,188,0,176,3,240,0,57,6,166, +0,176,4,113,0,37,4,125,0,115, +4,233,0,20,3,109,0,176,3,240, +0,115,3,209,0,106,2,6,0,162, +2,6,255,236,2,6,255,145,6,178, +0,16,7,23,0,176,4,233,0,20, +4,39,0,176,4,8,0,2,4,248, +0,176,4,55,0,201,3,109,0,176, +7,104,0,27,6,57,0,23,7,104, +0,27,6,57,0,23,7,104,0,27, +6,57,0,23,4,123,0,0,4,8, +0,2,4,0,0,82,8,0,0,82, +8,0,0,82,3,74,255,252,1,92, +0,25,1,92,0,25,1,246,0,63, +1,92,0,25,2,205,0,25,2,205, +0,25,3,61,0,25,4,4,0,123, +4,20,0,123,3,2,0,164,6,70, +0,152,9,158,0,100,1,197,0,133, +3,37,0,133,2,111,0,82,2,111, +0,80,3,227,0,152,1,10,254,121, +3,39,0,109,4,147,0,98,4,147, +0,68,6,27,0,154,4,184,0,63, +6,152,0,141,4,41,0,119,8,39, +0,201,6,53,0,37,6,66,0,80, +4,244,0,102,6,61,0,71,6,61, +0,32,6,61,0,71,6,61,0,106, +4,166,0,102,4,147,0,39,5,233, +0,201,5,12,0,76,4,147,0,104, +4,100,0,37,5,164,0,119,3,18, +0,12,4,147,0,98,4,147,0,104, +4,147,0,104,4,147,0,104,4,170, +0,111,4,188,0,29,4,188,0,29, +4,158,0,219,2,6,255,145,4,0, +1,137,4,0,1,113,4,0,1,129, +2,199,0,39,2,199,0,20,2,199, +0,59,2,199,0,41,2,199,0,57, +2,199,0,51,2,199,0,35,4,0, +0,0,8,0,0,0,4,0,0,0, +8,0,0,0,2,170,0,0,2,0, +0,0,1,86,0,0,4,121,0,0, +2,33,0,0,1,154,0,0,0,205, +0,0,0,0,0,0,0,0,0,0, +8,0,0,84,8,0,0,84,2,6, +255,145,1,92,0,25,4,250,0,10, +4,133,0,0,6,184,0,18,7,57, +0,201,7,113,0,176,5,16,0,0, +4,115,0,94,6,82,254,223,2,170, +0,117,3,51,0,152,7,117,0,29, +7,117,0,29,6,61,0,125,4,223, +0,115,6,37,0,186,5,82,0,164, +0,0,252,83,0,0,253,13,0,0, +252,25,0,0,253,8,0,0,253,59, +4,115,0,201,6,25,0,203,4,125, +0,115,5,18,0,176,8,23,0,133, +6,141,0,0,5,102,0,23,5,14, +0,23,7,90,0,201,5,227,0,176, +5,109,0,0,4,131,0,10,7,94, +0,201,6,33,0,176,5,197,0,20, +5,35,0,12,7,203,0,201,6,197, +0,176,4,168,0,63,3,221,0,25, +6,94,0,109,6,6,0,164,6,61, +0,125,4,213,0,115,5,2,0,0, +4,12,0,0,5,2,0,0,4,12, +0,0,9,172,0,125,8,125,0,115, +6,141,0,125,5,66,0,115,7,254, +0,125,6,119,0,115,7,223,0,94, +6,141,0,0,5,29,0,125,3,231, +0,115,4,223,0,106,4,117,0,203, +4,158,0,248,4,158,1,223,4,158, +1,225,7,233,0,41,7,166,0,41, +6,41,0,201,5,37,0,176,4,231, +0,47,4,188,0,20,4,227,0,201, +4,231,0,176,4,55,0,47,3,109, +0,18,5,35,0,201,4,51,0,176, +7,31,0,2,6,61,0,4,4,166, +0,74,3,221,0,68,5,74,0,201, +4,92,0,176,4,233,0,201,4,68, +0,176,4,233,0,47,4,35,0,20, +5,131,0,16,4,236,0,41,5,248, +0,201,5,47,0,176,6,129,0,201, +5,227,0,176,8,137,0,201,6,236, +0,176,6,59,0,125,5,31,0,115, +5,12,0,125,3,207,0,115,4,109, +0,16,3,188,0,41,4,123,0,0, +4,2,0,0,4,123,0,0,4,2, +0,0,4,244,0,8,4,86,0,39, +6,215,0,16,5,188,0,41,5,137, +0,170,4,223,0,156,5,143,0,170, +4,205,0,156,5,143,0,201,4,174, +0,176,6,180,0,61,5,70,0,51, +6,180,0,61,5,70,0,51,2,170, +0,84,6,193,0,2,5,227,0,4, +5,131,0,201,4,100,0,176,5,166, +0,0,4,147,0,16,5,209,0,201, +4,238,0,176,5,246,0,201,5,57, +0,176,5,143,0,170,4,221,0,156, +7,59,0,201,5,227,0,176,2,170, +0,84,5,16,0,0,4,115,0,94, +5,16,0,0,4,115,0,94,6,252, +255,254,6,221,0,94,4,115,0,201, +4,125,0,115,5,215,0,117,4,121, +0,102,5,215,0,117,4,121,0,102, +6,193,0,2,5,227,0,4,4,166, +0,74,3,221,0,68,4,170,0,74, +3,233,0,27,6,25,0,203,5,18, +0,176,6,25,0,203,5,18,0,176, +6,59,0,125,4,213,0,115,6,61, +0,125,4,213,0,115,6,61,0,125, +4,213,0,115,5,10,0,61,3,240, +0,57,4,248,0,27,4,8,0,2, +4,248,0,27,4,8,0,2,4,248, +0,27,4,8,0,2,5,143,0,170, +4,221,0,156,4,55,0,201,3,109, +0,176,6,211,0,201,6,41,0,176, +4,55,0,47,3,109,0,18,4,248, +0,8,4,82,0,39,4,158,0,6, +4,49,0,39,4,231,0,131,4,231, +0,115,7,49,0,131,7,43,0,115, +7,59,0,78,6,106,0,80,5,0, +0,78,4,47,0,80,7,217,0,0, +6,207,0,16,8,25,0,201,7,78, +0,176,6,12,0,125,5,31,0,115, +5,174,0,16,5,45,0,41,4,170, +0,111,3,205,0,90,5,154,0,0, +4,145,0,16,5,16,0,0,4,115, +0,94,5,16,0,0,4,115,0,94, +5,16,0,0,4,115,0,94,5,16, +0,0,4,115,0,45,5,16,0,0, +4,115,0,94,5,16,0,0,4,115, +0,94,5,16,0,0,4,115,0,94, +5,16,0,0,4,115,0,94,5,16, +0,0,4,115,0,94,5,16,0,0, +4,115,0,94,5,16,0,0,4,115, +0,94,5,16,0,0,4,115,0,94, +4,115,0,201,4,125,0,115,4,115, +0,201,4,125,0,115,4,115,0,201, +4,125,0,115,4,115,0,201,4,125, +0,115,4,115,0,93,4,125,0,74, +4,115,0,201,4,125,0,115,4,115, +0,201,4,125,0,115,4,115,0,201, +4,125,0,115,2,170,0,84,2,6, +0,123,2,170,0,84,2,6,0,157, +6,59,0,125,4,213,0,115,6,59, +0,125,4,213,0,115,6,59,0,125, +4,213,0,115,6,59,0,125,4,213, +0,97,6,59,0,125,4,213,0,115, +6,59,0,125,4,213,0,115,6,59, +0,125,4,213,0,115,6,61,0,125, +4,223,0,115,6,61,0,125,4,223, +0,115,6,61,0,125,4,223,0,115, +6,61,0,125,4,223,0,115,6,61, +0,125,4,223,0,115,5,211,0,186, +4,233,0,164,5,211,0,186,4,233, +0,164,6,37,0,186,5,82,0,164, +6,37,0,186,5,82,0,164,6,37, +0,186,5,82,0,164,6,37,0,186, +5,82,0,164,6,37,0,186,5,82, +0,164,4,123,0,0,4,8,0,2, +4,123,0,0,4,8,0,2,4,123, +0,0,4,8,0,2,4,231,0,115, +0,0,251,229,0,0,252,113,0,0, +251,154,0,0,252,113,0,0,252,104, +0,0,252,121,0,0,252,121,0,0, +252,121,0,0,252,104,1,164,0,49, +1,164,0,25,1,164,0,25,3,45, +0,52,4,137,0,115,2,244,0,45, +4,20,0,41,4,147,0,94,4,143, +0,23,4,147,0,133,4,147,0,117, +4,147,0,94,4,147,0,104,4,147, +0,106,5,109,0,29,6,90,0,92, +4,109,0,18,2,211,0,31,4,231, +0,113,4,231,0,113,4,231,0,113, +4,231,0,113,4,231,0,113,2,59, +0,201,2,59,0,5,2,59,0,179, +2,59,255,199,2,59,0,5,2,59, +255,171,2,59,255,243,2,59,255,231, +2,59,0,86,2,59,0,187,4,94, +0,201,2,229,255,228,2,59,0,201, +0,5,0,201,0,5,0,201,0,201, +0,153,0,184,0,0,0,0,0,1, +0,3,0,1,0,0,0,12,0,4, +4,14,0,0,0,176,0,128,0,6, +0,48,0,72,0,73,0,126,0,203, +0,207,1,39,1,50,1,97,1,127, +1,146,1,161,1,176,1,240,1,255, +2,27,2,55,2,188,2,199,2,201, +2,221,2,243,3,1,3,3,3,9, +3,15,3,35,3,138,3,140,3,161, +3,170,3,206,3,210,3,214,4,13, +4,79,4,95,4,134,4,145,4,191, +4,207,5,19,30,1,30,63,30,133, +30,199,30,202,30,241,30,249,31,77, +32,11,32,21,32,30,32,34,32,38, +32,48,32,51,32,58,32,60,32,68, +32,112,32,121,32,127,32,164,32,167, +32,172,33,5,33,19,33,22,33,32, +33,34,33,38,33,46,33,94,34,2, +34,6,34,15,34,18,34,26,34,30, +34,43,34,72,34,96,34,101,37,202, +251,4,254,255,255,253,255,255,0,0, +0,32,0,73,0,74,0,160,0,204, +0,208,1,40,1,51,1,98,1,146, +1,160,1,175,1,240,1,250,2,24, +2,55,2,188,2,198,2,201,2,216, +2,243,3,0,3,3,3,9,3,15, +3,35,3,132,3,140,3,142,3,163, +3,171,3,209,3,214,4,0,4,14, +4,80,4,96,4,136,4,146,4,192, +4,208,30,0,30,62,30,128,30,160, +30,200,30,203,30,242,31,77,32,0, +32,19,32,23,32,32,32,38,32,48, +32,50,32,57,32,60,32,68,32,112, +32,116,32,127,32,163,32,167,32,171, +33,5,33,19,33,22,33,32,33,34, +33,38,33,46,33,91,34,2,34,6, +34,15,34,17,34,26,34,30,34,43, +34,72,34,96,34,100,37,202,251,0, +254,255,255,252,255,255,255,227,0,0, +255,227,255,194,0,0,255,194,0,0, +255,194,0,0,255,176,0,191,0,178, +0,97,255,73,0,0,0,0,255,150, +254,133,254,132,254,118,255,104,255,99, +255,98,255,93,0,103,255,68,0,0, +253,207,0,0,0,0,253,205,254,130, +254,127,0,0,253,154,0,0,254,12, +0,0,254,9,0,0,254,9,228,88, +228,24,227,122,228,125,0,0,228,125, +0,0,227,13,226,66,225,239,225,238, +225,237,225,234,225,225,225,224,225,219, +225,218,225,211,225,203,225,200,225,153, +225,118,225,116,0,0,225,24,225,11, +225,9,226,110,224,254,224,251,224,244, +224,200,224,37,224,34,224,26,224,25, +224,18,224,15,224,3,223,231,223,208, +223,205,220,105,0,0,3,79,2,83, +0,1,0,0,0,174,0,0,0,0, +0,170,0,0,0,174,0,0,0,192, +0,0,0,0,0,0,0,0,0,0, +0,240,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,224,0,0,0,234, +1,16,0,0,0,0,0,0,1,24, +0,0,1,48,0,0,1,76,0,0, +1,92,0,0,0,0,0,0,0,0, +0,0,1,112,0,0,1,114,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +1,96,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +1,60,0,0,0,0,0,0,3,150, +3,151,3,152,3,153,3,154,3,155, +0,235,3,156,0,237,3,157,0,239, +3,158,0,241,3,159,0,243,3,160, +3,143,3,144,1,38,1,39,1,40, +1,41,1,42,1,43,1,44,1,45, +1,46,1,47,1,48,1,49,1,50, +1,51,1,52,1,53,1,54,1,55, +1,56,1,57,1,58,1,59,1,60, +1,61,1,62,1,63,1,64,1,65, +1,73,1,74,1,36,1,37,1,84, +1,85,1,86,1,87,1,88,1,89, +3,161,1,92,1,93,1,94,1,95, +1,96,1,97,1,98,1,99,1,100, +1,101,1,102,3,162,1,104,1,105, +1,106,1,107,1,108,1,109,1,110, +1,111,1,112,1,113,1,114,1,115, +1,116,1,117,1,118,3,163,2,104, +1,156,1,157,1,158,1,159,1,160, +3,164,3,165,1,163,1,164,1,165, +1,166,1,167,2,105,2,106,1,234, +1,235,1,236,1,237,1,238,1,239, +1,240,1,241,1,242,1,243,1,244, +1,245,2,107,1,246,1,247,2,147, +2,148,2,149,2,150,2,151,2,152, +2,153,2,154,1,248,1,249,3,166, +2,202,2,203,2,204,2,205,2,206, +2,207,2,208,2,209,2,210,2,211, +2,212,2,213,2,214,2,215,3,167, +3,168,3,70,3,169,2,0,2,1, +3,111,3,112,3,113,3,114,3,115, +3,116,3,117,2,28,3,141,2,52, +2,53,2,93,2,94,0,0,64,71, +91,90,89,88,85,84,83,82,81,80, +79,78,77,76,75,74,73,72,71,70, +69,68,67,66,65,64,63,62,61,60, +59,58,57,56,55,54,53,49,48,47, +46,45,44,40,39,38,37,36,35,34, +33,31,24,20,17,16,15,14,13,11, +10,9,8,7,6,5,4,3,2,1, +0,44,32,176,1,96,69,176,3,37, +32,17,70,97,35,69,35,97,72,45, +44,32,69,24,104,68,45,44,69,35, +70,96,176,32,97,32,176,70,96,176, +4,38,35,72,72,45,44,69,35,70, +35,97,176,32,96,32,176,38,97,176, +32,97,176,4,38,35,72,72,45,44, +69,35,70,96,176,64,97,32,176,102, +96,176,4,38,35,72,72,45,44,69, +35,70,35,97,176,64,96,32,176,38, +97,176,64,97,176,4,38,35,72,72, +45,44,1,16,32,60,0,60,45,44, +32,69,35,32,176,205,68,35,32,184, +1,90,81,88,35,32,176,141,68,35, +89,32,176,237,81,88,35,32,176,77, +68,35,89,32,176,4,38,81,88,35, +32,176,13,68,35,89,33,33,45,44, +32,32,69,24,104,68,32,176,1,96, +32,69,176,70,118,104,138,69,96,68, +45,44,1,177,11,10,67,35,67,101, +10,45,44,0,177,10,11,67,35,67, +11,45,44,0,176,40,35,112,177,1, +40,62,1,176,40,35,112,177,2,40, +69,58,177,2,0,8,13,45,44,32, +69,176,3,37,69,97,100,176,80,81, +88,69,68,27,33,33,89,45,44,73, +176,14,35,68,45,44,32,69,176,0, +67,96,68,45,44,1,176,6,67,176, +7,67,101,10,45,44,32,105,176,64, +97,176,0,139,32,177,44,192,138,140, +184,16,0,98,96,43,12,100,35,100, +97,92,88,176,3,97,89,45,44,138, +3,69,138,138,135,176,17,43,176,41, +35,68,176,41,122,228,24,45,44,69, +101,176,44,35,68,69,176,43,35,68, +45,44,75,82,88,69,68,27,33,33, +89,45,44,75,81,88,69,68,27,33, +33,89,45,44,1,176,5,37,16,35, +32,138,245,0,176,1,96,35,237,236, +45,44,1,176,5,37,16,35,32,138, +245,0,176,1,97,35,237,236,45,44, +1,176,6,37,16,245,0,237,236,45, +44,176,2,67,176,1,82,88,33,33, +33,33,33,27,70,35,70,96,138,138, +70,35,32,70,138,96,138,97,184,255, +128,98,35,32,16,35,138,177,12,12, +138,112,69,96,32,176,0,80,88,176, +1,97,184,255,186,139,27,176,70,140, +89,176,16,96,104,1,58,89,45,44, +32,69,176,3,37,70,82,75,176,19, +81,91,88,176,2,37,70,32,104,97, +176,3,37,176,3,37,63,35,33,56, +27,33,17,89,45,44,32,69,176,3, +37,70,80,88,176,2,37,70,32,104, +97,176,3,37,176,3,37,63,35,33, +56,27,33,17,89,45,44,0,176,7, +67,176,6,67,11,45,44,33,33,12, +100,35,100,139,184,64,0,98,45,44, +33,176,128,81,88,12,100,35,100,139, +184,32,0,98,27,178,0,64,47,43, +89,176,2,96,45,44,33,176,192,81, +88,12,100,35,100,139,184,21,85,98, +27,178,0,128,47,43,89,176,2,96, +45,44,12,100,35,100,139,184,64,0, +98,96,35,33,45,44,75,83,88,138, +176,4,37,73,100,35,69,105,176,64, +139,97,176,128,98,176,32,97,106,176, +14,35,68,35,16,176,14,246,27,33, +35,138,18,17,32,57,47,89,45,44, +75,83,88,32,176,3,37,73,100,105, +32,176,5,38,176,6,37,73,100,35, +97,176,128,98,176,32,97,106,176,14, +35,68,176,4,38,16,176,14,246,138, +16,176,14,35,68,176,14,246,176,14, +35,68,176,14,237,27,138,176,4,38, +17,18,32,57,35,32,57,47,47,89, +45,44,69,35,69,96,35,69,96,35, +69,96,35,118,104,24,176,128,98,32, +45,44,176,72,43,45,44,32,69,176, +0,84,88,176,64,68,32,69,176,64, +97,68,27,33,33,89,45,44,69,177, +48,47,69,35,69,97,96,176,1,96, +105,68,45,44,75,81,88,176,47,35, +112,176,20,35,66,27,33,33,89,45, +44,75,81,88,32,176,3,37,69,105, +83,88,68,27,33,33,89,27,33,33, +89,45,44,69,176,20,67,176,0,96, +99,176,1,96,105,68,45,44,176,47, +69,68,45,44,69,35,32,69,138,96, +68,45,44,69,35,69,96,68,45,44, +75,35,81,88,185,0,51,255,224,177, +52,32,27,179,51,0,52,0,89,68, +68,45,44,176,22,67,88,176,3,38, +69,138,88,100,102,176,31,96,27,100, +176,32,96,102,32,88,27,33,176,64, +89,176,1,97,89,35,88,101,89,176, +41,35,68,35,16,176,41,224,27,33, +33,33,33,33,89,45,44,176,2,67, +84,88,75,83,35,75,81,90,88,56, +27,33,33,89,27,33,33,33,33,89, +45,44,176,22,67,88,176,4,37,69, +100,176,32,96,102,32,88,27,33,176, +64,89,176,1,97,35,88,27,101,89, +176,41,35,68,176,5,37,176,8,37, +8,32,88,2,27,3,89,176,4,37, +16,176,5,37,32,70,176,4,37,35, +66,60,176,4,37,176,7,37,8,176, +7,37,16,176,6,37,32,70,176,4, +37,176,1,96,35,66,60,32,88,1, +27,0,89,176,4,37,16,176,5,37, +176,41,224,176,41,32,69,101,68,176, +7,37,16,176,6,37,176,41,224,176, +5,37,176,8,37,8,32,88,2,27, +3,89,176,5,37,176,3,37,67,72, +176,4,37,176,7,37,8,176,6,37, +176,3,37,176,1,96,67,72,27,33, +89,33,33,33,33,33,33,33,45,44, +2,176,4,37,32,32,70,176,4,37, +35,66,176,5,37,8,176,3,37,69, +72,33,33,33,33,45,44,2,176,3, +37,32,176,4,37,8,176,2,37,67, +72,33,33,33,45,44,69,35,32,69, +24,32,176,0,80,32,88,35,101,35, +89,35,104,32,176,64,80,88,33,176, +64,89,35,88,101,89,138,96,68,45, +44,75,83,35,75,81,90,88,32,69, +138,96,68,27,33,33,89,45,44,75, +84,88,32,69,138,96,68,27,33,33, +89,45,44,75,83,35,75,81,90,88, +56,27,33,33,89,45,44,176,0,33, +75,84,88,56,27,33,33,89,45,44, +176,2,67,84,88,176,70,43,27,33, +33,33,33,89,45,44,176,2,67,84, +88,176,71,43,27,33,33,33,89,45, +44,176,2,67,84,88,176,72,43,27, +33,33,33,33,89,45,44,176,2,67, +84,88,176,73,43,27,33,33,33,89, +45,44,32,138,8,35,75,83,138,75, +81,90,88,35,56,27,33,33,89,45, +44,0,176,2,37,73,176,0,83,88, +32,176,64,56,17,27,33,89,45,44, +1,70,35,70,96,35,70,97,35,32, +16,32,70,138,97,184,255,128,98,138, +177,64,64,138,112,69,96,104,58,45, +44,32,138,35,73,100,138,35,83,88, +60,27,33,89,45,44,75,82,88,125, +27,122,89,45,44,176,18,0,75,1, +75,84,66,45,44,177,2,0,66,177, +35,1,136,81,177,64,1,136,83,90, +88,185,16,0,0,32,136,84,88,178, +2,1,2,67,96,66,89,177,36,1, +136,81,88,185,32,0,0,64,136,84, +88,178,2,2,2,67,96,66,177,36, +1,136,84,88,178,2,32,2,67,96, +66,0,75,1,75,82,88,178,2,8, +2,67,96,66,89,27,185,64,0,0, +128,136,84,88,178,2,4,2,67,96, +66,89,185,64,0,0,128,99,184,1, +0,136,84,88,178,2,8,2,67,96, +66,89,185,64,0,1,0,99,184,2, +0,136,84,88,178,2,16,2,67,96, +66,89,177,38,1,136,81,88,185,64, +0,2,0,99,184,4,0,136,84,88, +178,2,64,2,67,96,66,89,185,64, +0,4,0,99,184,8,0,136,84,88, +178,2,128,2,67,96,66,89,89,89, +89,89,89,177,0,2,67,84,88,64, +10,5,64,8,64,9,64,12,2,13, +2,27,177,1,2,67,84,88,178,5, +64,8,186,1,0,0,9,1,0,179, +12,1,13,1,27,177,128,2,67,82, +88,178,5,64,8,184,1,128,177,9, +64,27,178,5,64,8,186,1,128,0, +9,1,64,89,185,64,0,0,128,136, +85,185,64,0,2,0,99,184,4,0, +136,85,90,88,179,12,0,13,1,27, +179,12,0,13,1,89,89,89,66,66, +66,66,66,45,44,69,24,104,35,75, +81,88,35,32,69,32,100,176,64,80, +88,124,89,104,138,96,89,68,45,44, +176,0,22,176,2,37,176,2,37,1, +176,1,35,62,0,176,2,35,62,177, +1,2,6,12,176,10,35,101,66,176, +11,35,66,1,176,1,35,63,0,176, +2,35,63,177,1,2,6,12,176,6, +35,101,66,176,7,35,66,176,1,22, +1,45,44,176,128,176,2,67,80,176, +1,176,2,67,84,91,88,33,35,16, +176,32,26,201,27,138,16,237,89,45, +44,176,89,43,45,44,138,16,229,45, +64,153,9,33,72,32,85,32,1,30, +85,31,72,3,85,31,30,1,15,30, +63,30,175,30,3,77,75,38,31,76, +75,51,31,75,70,37,31,38,52,16, +85,37,51,36,85,25,19,255,31,7, +4,255,31,6,3,255,31,74,73,51, +31,73,70,37,31,19,51,18,85,5, +1,3,85,4,51,3,85,31,3,1, +15,3,63,3,175,3,3,71,70,25, +31,235,70,1,35,51,34,85,28,51, +27,85,22,51,21,85,17,1,15,85, +16,51,15,85,15,15,79,15,2,31, +15,207,15,2,15,15,255,15,2,6, +2,1,0,85,1,51,0,85,111,0, +127,0,175,0,239,0,4,16,0,1, +128,22,1,5,1,184,1,144,177,84, +83,43,43,75,184,7,255,82,75,176, +9,80,91,176,1,136,176,37,83,176, +1,136,176,64,81,90,176,6,136,176, +0,85,90,91,88,177,1,1,142,89, +133,141,141,0,66,29,75,176,50,83, +88,176,32,29,89,75,176,100,83,88, +176,16,29,177,22,0,66,89,115,115, +43,43,94,115,116,117,43,43,43,43, +43,116,43,115,116,43,43,43,43,43, +43,43,43,43,43,43,43,43,115,116, +43,43,43,24,94,0,0,0,6,20, +0,23,0,78,5,182,0,23,0,117, +5,182,5,205,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,4,72, +0,20,0,145,0,0,255,236,0,0, +0,0,255,236,0,0,0,0,255,236, +0,0,254,20,255,236,0,0,5,182, +0,19,252,148,255,237,254,133,255,234, +254,169,255,236,0,24,254,188,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,8,0,0,0,0,0,0,139, +0,129,0,221,0,152,0,143,0,142, +0,153,0,136,0,129,1,15,0,138, +0,0,0,0,0,31,0,31,0,31, +0,31,0,81,0,119,0,255,1,123, +1,236,2,106,2,131,2,174,2,217, +3,21,3,65,3,95,3,116,3,150, +3,175,3,241,4,26,4,91,4,185, +4,251,5,70,5,163,5,197,6,52, +6,145,6,199,6,251,7,27,7,68, +7,100,7,187,8,65,8,128,8,219, +9,25,9,85,9,138,9,184,10,8, +10,57,10,108,10,148,10,195,10,225, +11,31,11,86,11,156,11,217,12,44, +12,121,12,204,12,240,13,36,13,75, +13,143,13,191,13,230,14,18,14,54, +14,79,14,114,14,147,14,169,14,200, +15,36,15,121,15,180,16,7,16,84, +16,148,17,40,17,102,17,148,17,210, +18,16,18,39,18,127,18,185,18,250, +19,79,19,163,19,214,20,40,20,104, +20,165,20,204,21,23,21,71,21,128, +21,172,21,238,22,6,22,75,22,133, +22,133,22,182,23,1,23,83,23,161, +23,245,24,26,24,149,24,203,25,71, +25,148,25,207,25,237,25,245,26,127, +26,149,26,205,26,217,27,19,27,99, +27,130,27,193,27,241,28,19,28,69, +28,108,28,165,28,221,28,243,29,8, +29,30,29,123,29,140,29,157,29,174, +29,191,29,209,29,221,30,43,30,55, +30,72,30,89,30,106,30,124,30,141, +30,158,30,175,30,193,31,25,31,42, +31,59,31,76,31,93,31,110,31,128, +31,174,32,25,32,42,32,59,32,76, +32,94,32,111,32,177,33,24,33,40, +33,56,33,72,33,88,33,105,33,122, +34,5,34,17,34,33,34,49,34,65, +34,82,34,99,34,116,34,133,34,151, +34,255,35,15,35,31,35,47,35,63, +35,79,35,96,35,166,36,12,36,28, +36,44,36,60,36,77,36,93,36,180, +36,197,36,214,36,230,36,247,37,7, +37,19,37,31,37,48,37,64,37,81, +37,97,37,114,37,131,37,148,37,164, +37,181,37,198,37,206,38,58,38,75, +38,91,38,108,38,124,38,141,38,158, +38,170,38,182,38,199,38,215,38,232, +38,248,39,9,39,25,39,42,39,59, +39,71,39,87,39,104,39,121,39,201, +40,34,40,51,40,68,40,85,40,102, +40,119,40,136,40,147,40,158,40,175, +40,198,40,210,40,222,40,239,41,0, +41,12,41,23,41,76,41,93,41,110, +41,121,41,133,41,150,41,166,41,178, +41,190,41,248,42,45,42,62,42,78, +42,90,42,101,42,118,42,134,42,151, +42,222,43,39,43,56,43,72,43,89, +43,105,43,123,43,140,43,239,44,105, +44,122,44,138,44,149,44,161,44,178, +44,195,44,212,44,228,44,245,45,5, +45,17,45,29,45,46,45,62,45,73, +45,84,45,101,45,117,45,178,46,4, +46,21,46,37,46,54,46,70,46,87, +46,103,46,121,46,138,46,156,46,173, +46,185,46,197,46,214,46,231,46,248, +47,8,47,26,47,43,47,59,47,76, +47,93,47,110,47,126,47,165,47,248, +48,119,49,22,49,39,49,56,49,73, +49,89,49,100,49,111,49,152,49,193, +49,215,49,255,50,31,50,84,50,123, +50,180,50,230,51,5,51,78,51,95, +51,103,51,120,51,138,51,156,51,173, +51,191,51,208,51,227,51,235,51,243, +52,18,52,26,52,34,52,42,52,50, +52,139,52,147,52,155,52,193,52,201, +52,209,53,6,53,14,53,50,53,58, +53,113,53,121,53,129,53,232,53,240, +54,60,54,144,54,162,54,180,54,196, +54,212,54,228,54,245,55,7,55,107, +55,208,56,6,56,103,56,197,57,18, +57,76,57,166,57,210,57,218,58,44, +58,52,58,95,58,202,58,210,59,16, +59,92,59,168,59,237,60,37,60,93, +60,186,61,16,61,95,61,185,61,203, +61,220,61,236,61,252,62,13,62,31, +62,111,62,128,62,202,62,210,62,218, +62,236,62,244,63,83,63,166,63,229, +63,246,64,7,64,55,64,63,64,134, +64,142,64,150,64,223,64,231,65,44, +65,137,65,193,65,210,66,1,66,60, +66,68,66,76,66,84,66,92,66,100, +66,108,66,116,66,179,66,187,66,195, +66,244,67,43,67,91,67,149,67,219, +68,35,68,97,68,175,69,15,69,86, +69,94,69,186,70,21,70,52,70,124, +70,132,70,202,71,35,71,91,71,107, +71,155,71,209,72,20,72,73,72,81, +72,117,72,125,72,133,72,170,72,178, +73,19,73,27,73,76,73,131,73,180, +73,239,74,52,74,125,74,184,75,8, +75,101,75,169,75,186,76,37,76,53, +76,131,76,139,76,147,76,165,76,173, +77,6,77,88,77,96,77,112,77,128, +77,177,77,214,77,253,78,14,78,30, +78,47,78,64,78,82,78,100,78,117, +78,134,78,155,78,176,78,184,78,218, +78,247,79,21,79,29,79,58,79,105, +79,154,79,180,79,242,80,90,80,122, +80,138,81,36,81,44,81,52,81,87, +81,123,81,135,81,160,81,211,82,24, +82,134,82,248,83,110,83,212,84,44, +84,160,84,244,84,252,85,75,85,98, +85,121,85,144,85,167,86,10,86,62, +86,99,86,151,86,174,86,210,87,50, +87,98,87,227,88,44,88,62,88,80, +88,125,88,137,88,149,88,188,88,227, +89,2,89,33,89,64,89,117,89,183, +89,252,90,77,90,110,90,211,91,39, +91,39,91,39,91,39,91,39,91,39, +91,39,91,39,91,39,91,39,91,39, +91,39,91,39,91,39,92,113,92,204, +92,221,92,229,93,108,93,167,94,11, +94,28,94,45,94,57,94,69,94,87, +94,140,94,195,94,211,94,227,95,64, +95,151,95,224,96,49,96,58,96,67, +96,76,96,122,96,153,96,170,96,187, +96,203,96,219,97,78,97,153,97,237, +98,59,98,155,98,254,99,63,99,128, +99,214,100,44,100,143,100,244,101,105, +101,224,102,140,103,48,103,56,103,64, +103,157,103,246,104,47,104,103,104,121, +104,139,105,1,105,13,105,128,105,243, +106,157,107,59,107,209,108,58,108,125, +108,191,109,3,109,51,109,96,109,134, +109,172,110,144,111,27,111,129,111,223, +112,49,112,130,112,215,113,67,113,123, +113,180,114,6,114,85,114,168,114,251, +115,7,115,19,115,80,115,140,115,205, +116,16,116,88,116,172,116,230,117,30, +117,93,117,162,117,221,118,29,118,115, +118,198,119,66,119,185,119,197,119,209, +120,2,120,52,120,60,120,111,120,173, +120,241,121,48,121,113,121,174,121,236, +122,48,122,115,122,191,123,11,123,67, +123,122,123,232,124,75,124,193,125,45, +125,53,125,70,125,87,125,172,125,252, +126,68,126,135,126,204,127,21,127,85, +127,150,127,218,128,30,128,111,128,189, +128,197,128,214,128,230,128,248,129,9, +129,17,129,25,129,42,129,58,129,139, +129,218,129,236,129,253,130,15,130,33, +130,51,130,68,130,144,130,218,130,235, +130,251,131,13,131,30,131,48,131,65, +131,73,131,81,131,99,131,116,131,134, +131,151,131,168,131,184,131,202,131,219, +131,237,131,254,132,16,132,33,132,76, +132,119,132,137,132,155,132,167,132,178, +132,190,132,202,133,16,133,86,133,148, +133,156,133,246,134,100,134,201,135,39, +135,129,135,212,136,43,136,121,136,196, +137,19,137,102,137,176,137,239,138,45, +138,138,138,146,138,158,138,170,138,182, +138,194,138,211,138,228,138,246,139,8, +139,26,139,44,139,62,139,80,139,98, +139,116,139,137,139,157,139,175,139,193, +139,211,139,229,139,247,140,9,140,27, +140,45,140,66,140,86,140,98,140,110, +140,127,140,144,140,161,140,177,140,195, +140,213,140,231,140,249,141,11,141,29, +141,47,141,65,141,86,141,106,141,123, +141,140,141,152,141,164,141,176,141,188, +141,205,141,222,141,240,142,2,142,20, +142,38,142,56,142,74,142,92,142,110, +142,131,142,151,142,168,142,184,142,201, +142,217,142,234,142,251,143,12,143,28, +143,40,143,52,143,64,143,76,143,93, +143,110,143,127,143,143,143,160,143,176, +143,193,143,210,143,227,143,243,143,255, +144,11,144,23,144,35,144,52,144,69, +144,86,144,102,144,114,144,166,144,225, +145,29,145,106,145,194,145,250,146,50, +146,123,146,205,146,245,147,24,147,59, +147,68,147,131,147,173,147,238,148,78, +148,147,148,222,148,230,149,9,149,17, +149,110,149,122,149,246,150,2,150,14, +150,113,150,129,150,145,150,162,150,178, +150,199,150,216,150,233,150,250,151,12, +151,29,151,46,151,63,151,74,151,91, +151,103,151,121,151,129,151,147,151,155, +151,173,151,181,151,189,151,206,151,218, +0,0,0,2,0,193,0,0,4,10, +5,182,0,3,0,7,0,21,183,4, +3,5,2,4,3,7,0,0,47,50, +47,51,1,47,51,47,51,49,48,19, +33,17,33,55,33,17,33,193,3,73, +252,183,104,2,121,253,135,5,182,250, +74,104,4,230,0,2,0,152,255,227, +1,137,5,182,0,3,0,14,0,43, +64,20,3,9,9,2,4,4,15,16, +1,1,12,2,12,6,79,89,12,22, +2,3,0,63,63,43,17,18,0,57, +24,47,17,18,1,57,17,51,51,17, +51,49,48,1,35,3,51,3,52,51, +50,22,21,20,6,35,34,38,1,70, +105,51,207,225,120,58,63,64,57,52, +68,1,147,4,35,250,180,136,70,66, +64,71,63,0,0,2,0,133,3,166, +2,176,5,182,0,3,0,7,0,31, +64,13,0,3,7,4,3,4,8,9, +6,2,7,3,3,0,63,51,205,50, +17,18,1,57,57,17,51,17,51,49, +48,1,3,35,3,33,3,35,3,1, +63,40,105,41,2,43,41,104,41,5, +182,253,240,2,16,253,240,2,16,0, +0,2,0,51,0,0,4,246,5,182, +0,27,0,31,0,153,64,85,8,31, +28,21,4,20,9,17,12,12,9,18, +15,14,11,4,10,19,19,20,22,29, +30,7,4,6,23,4,1,0,25,4, +24,5,5,6,20,6,10,33,3,26, +23,3,24,10,24,32,33,8,4,12, +13,12,78,89,28,1,13,31,0,16, +17,16,78,89,25,21,17,79,13,1, +79,17,1,13,17,13,17,5,23,19, +3,10,5,0,47,51,63,51,18,57, +57,47,47,93,93,17,51,51,43,17, +0,51,51,17,51,51,43,17,0,51, +51,17,18,1,57,57,17,23,51,17, +18,57,57,17,51,17,18,23,57,17, +18,23,57,17,51,17,18,23,57,50, +50,17,51,17,18,23,57,49,48,1, +3,33,21,33,3,35,19,33,3,35, +19,33,53,33,19,33,53,33,19,51, +3,33,19,51,3,33,21,1,33,19, +33,3,213,66,1,27,254,205,84,137, +84,254,209,82,136,80,254,250,1,31, +68,254,235,1,43,82,139,82,1,49, +84,134,84,1,8,252,229,1,47,66, +254,209,3,131,254,172,129,254,82,1, +174,254,82,1,174,129,1,84,127,1, +180,254,76,1,180,254,76,127,254,172, +1,84,0,3,0,131,255,137,4,12, +6,18,0,32,0,38,0,45,0,102, +64,53,39,17,37,29,23,4,4,42, +20,13,5,33,0,0,25,5,17,9, +5,46,47,37,13,6,13,77,89,3, +6,36,14,42,14,76,89,29,42,43, +28,20,28,77,89,23,42,20,6,20, +6,20,5,22,5,0,47,47,18,57, +57,47,47,18,57,50,43,17,0,51, +17,51,43,17,0,51,17,51,43,17, +0,51,17,18,1,23,57,17,51,17, +51,51,51,51,17,51,51,51,17,51, +49,48,1,20,6,7,21,35,53,34, +38,39,53,22,22,51,17,38,38,53, +52,54,55,53,51,21,22,23,7,38, +39,17,30,2,7,52,38,39,17,54, +1,20,22,23,17,6,6,4,12,204, +183,129,112,210,67,83,217,89,205,165, +203,167,129,184,171,52,149,154,157,156, +74,170,89,128,217,253,221,90,111,99, +102,1,193,136,177,23,232,223,35,31, +156,37,47,1,184,65,172,136,131,168, +18,182,180,5,69,131,59,11,254,78, +50,95,123,101,72,89,44,254,123,30, +3,7,76,92,41,1,131,16,93,0, +0,5,0,104,255,236,6,45,5,203, +0,9,0,21,0,33,0,45,0,49, +0,69,64,36,0,16,5,10,22,40, +28,34,34,46,40,10,48,16,6,50, +51,3,13,31,43,13,43,13,43,48, +49,6,48,24,25,37,25,7,19,7, +0,63,51,63,51,63,63,18,57,57, +47,47,17,51,17,51,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,19,20,22,51,50,17,16,35,34, +6,5,20,6,35,34,38,53,52,54, +51,50,22,1,20,22,51,50,54,53, +52,38,35,34,6,5,20,6,35,34, +38,53,52,54,51,50,22,1,1,35, +1,242,74,83,164,164,83,74,1,202, +153,148,140,155,149,146,145,156,1,166, +74,84,84,80,80,84,84,74,1,203, +153,148,142,153,149,146,142,159,254,254, +252,213,147,3,43,4,2,170,170,1, +84,1,82,168,170,228,233,238,223,227, +230,238,252,219,171,169,167,173,171,165, +165,171,227,233,238,222,227,230,235,3, +32,250,74,5,182,0,0,3,0,113, +255,236,5,211,5,205,0,11,0,21, +0,53,0,81,64,48,19,22,0,29, +6,35,42,43,46,43,45,35,14,38, +25,29,22,9,54,55,51,12,73,89, +51,19,15,39,45,14,48,5,47,3, +25,38,3,42,42,32,47,18,32,9, +74,89,32,4,0,63,43,0,24,63, +18,57,47,23,57,18,23,57,63,43, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,1,20,22,23,54, +54,53,52,38,35,34,6,19,50,55, +1,14,2,21,20,22,37,52,54,55, +46,2,53,52,54,51,50,22,21,20, +6,7,1,54,54,55,51,2,7,1, +35,39,6,6,35,34,38,1,158,72, +87,129,101,103,86,89,111,155,241,159, +254,75,111,92,44,155,254,185,139,180, +85,61,36,196,175,162,186,136,157,1, +151,56,67,23,168,68,137,1,43,229, +185,118,244,150,215,237,4,147,69,125, +88,75,127,83,77,97,96,251,157,154, +1,168,68,89,102,65,117,137,250,130, +200,102,95,98,106,57,150,168,167,149, +107,181,93,254,121,62,167,99,254,226, +148,254,221,178,106,92,212,0,0,1, +0,133,3,166,1,63,5,182,0,3, +0,20,183,0,3,3,4,5,2,3, +3,0,63,205,17,18,1,57,17,51, +49,48,1,3,35,3,1,63,40,105, +41,5,182,253,240,2,16,0,0,1, +0,82,254,188,2,33,5,182,0,13, +0,28,64,12,7,0,10,4,0,4, +14,15,11,39,3,3,0,63,63,17, +18,1,57,57,17,51,17,51,49,48, +19,16,18,55,51,6,2,21,20,18, +23,35,38,2,82,155,146,162,144,145, +148,139,160,147,154,2,49,1,9,1, +206,174,193,254,50,244,240,254,54,189, +170,1,198,0,0,1,0,61,254,188, +2,12,5,182,0,13,0,28,64,12, +4,10,7,0,10,0,14,15,10,3, +4,39,0,63,63,17,18,1,57,57, +17,51,17,51,49,48,1,16,2,7, +35,54,18,53,52,2,39,51,22,18, +2,12,155,146,160,139,148,145,144,162, +147,154,2,49,254,249,254,58,168,188, +1,203,240,244,1,206,193,175,254,49, +0,1,0,86,2,127,4,14,6,20, +0,14,0,48,64,27,3,5,4,1, +7,13,10,9,11,9,15,16,4,10, +1,13,2,12,12,13,10,7,4,6, +8,14,0,0,63,196,50,23,57,17, +51,17,51,17,51,17,18,1,23,57, +49,48,1,3,37,23,5,19,7,3, +3,39,19,37,55,5,3,2,145,43, +1,142,26,254,131,248,172,176,160,176, +242,254,135,29,1,135,43,6,20,254, +117,111,182,31,254,186,94,1,106,254, +150,94,1,70,31,182,111,1,139,0, +0,1,0,104,0,227,4,41,4,195, +0,11,0,40,64,19,0,4,4,9, +5,5,12,13,3,7,8,7,80,89, +0,15,8,1,8,0,47,93,51,43, +17,0,51,17,18,1,57,17,51,51, +17,51,49,48,1,33,21,33,17,35, +17,33,53,33,17,51,2,141,1,156, +254,100,139,254,102,1,154,139,3,23, +138,254,86,1,170,138,1,172,0,1, +0,63,254,248,1,109,0,238,0,8, +0,17,181,5,0,9,10,5,0,0, +47,205,17,18,1,57,57,49,48,37, +23,6,2,7,35,54,18,55,1,94, +15,26,98,53,125,27,65,13,238,23, +100,254,247,114,104,1,50,92,0,1, +0,84,1,217,2,63,2,113,0,3, +0,17,181,2,0,5,4,0,1,0, +47,51,17,18,1,57,57,49,48,19, +53,33,21,84,1,235,1,217,152,152, +0,1,0,152,255,227,1,137,0,242, +0,11,0,24,64,11,6,0,0,12, +13,9,3,79,89,9,22,0,63,43, +17,18,1,57,17,51,49,48,55,52, +54,51,50,22,21,20,6,35,34,38, +152,61,57,58,65,66,57,51,67,106, +67,69,69,67,65,70,63,0,0,1, +0,20,0,0,2,219,5,182,0,3, +0,19,183,2,0,4,5,3,3,2, +18,0,63,63,17,18,1,57,57,49, +48,1,1,35,1,2,219,253,223,166, +2,33,5,182,250,74,5,182,0,2, +0,102,255,236,4,45,5,205,0,11, +0,23,0,40,64,20,18,0,12,6, +0,6,25,24,9,21,75,89,9,7, +3,15,75,89,3,25,0,63,43,0, +24,63,43,17,18,1,57,57,17,51, +17,51,49,48,1,16,2,35,34,2, +17,16,18,51,50,18,1,16,18,51, +50,18,17,16,2,35,34,2,4,45, +239,246,236,246,238,244,238,247,252,225, +150,164,166,149,149,166,164,150,2,221, +254,133,254,138,1,127,1,114,1,126, +1,114,254,126,254,146,254,193,254,221, +1,39,1,59,1,59,1,37,254,223, +0,1,0,188,0,0,2,203,5,182, +0,10,0,36,64,16,9,0,1,8, +1,11,12,4,9,7,7,1,9,6, +1,24,0,63,63,18,57,47,18,57, +17,18,1,57,57,17,51,51,49,48, +33,35,17,52,55,6,6,7,39,1, +51,2,203,162,8,21,52,212,88,1, +131,140,4,18,130,116,21,46,172,114, +1,43,0,1,0,100,0,0,4,37, +5,203,0,25,0,43,64,23,24,1, +7,19,0,19,14,1,4,26,27,16, +10,75,89,16,7,1,24,76,89,1, +24,0,63,43,0,24,63,43,17,18, +1,23,57,17,51,17,51,49,48,33, +33,53,1,62,2,53,52,38,35,34, +6,7,39,54,51,50,22,21,20,2, +7,1,21,33,4,37,252,63,1,129, +176,112,56,142,126,91,163,100,88,202, +238,206,234,156,214,254,192,2,240,143, +1,131,178,152,144,83,117,137,60,79, +113,168,211,178,139,254,240,208,254,199, +8,0,0,1,0,94,255,236,4,27, +5,203,0,39,0,67,64,36,27,0, +19,7,7,0,3,22,34,13,6,40, +41,3,23,22,23,22,75,89,23,23, +10,37,37,30,75,89,37,7,10,17, +75,89,10,25,0,63,43,0,24,63, +43,17,18,0,57,24,47,43,17,18, +0,57,17,18,1,23,57,17,51,17, +51,49,48,1,20,6,7,21,22,22, +21,20,4,33,34,38,39,53,22,22, +51,32,17,16,33,35,53,51,50,54, +53,52,38,35,34,6,7,39,54,54, +51,50,22,3,238,157,144,176,170,254, +222,254,245,116,193,91,95,215,96,1, +123,254,94,144,146,171,200,147,126,96, +170,109,84,90,235,130,213,236,4,94, +140,178,30,8,22,180,146,209,225,35, +44,158,47,49,1,41,1,10,143,151, +134,107,122,52,70,112,71,81,195,0, +0,2,0,43,0,0,4,106,5,190, +0,10,0,18,0,60,64,30,18,5, +9,2,2,11,7,3,0,3,5,3, +19,20,1,5,18,5,76,89,9,15, +7,18,18,3,7,6,3,24,0,63, +63,18,57,47,18,57,51,43,17,0, +51,17,18,1,23,57,17,51,51,51, +17,51,17,51,49,48,1,35,17,35, +17,33,53,1,51,17,51,33,17,52, +55,35,6,7,1,4,106,217,159,253, +57,2,182,176,217,254,136,10,8,48, +42,254,55,1,80,254,176,1,80,145, +3,221,252,41,1,230,143,180,96,63, +253,118,0,1,0,133,255,236,4,29, +5,182,0,26,0,58,64,31,15,3, +25,20,8,20,23,3,4,28,27,0, +17,75,89,0,0,6,21,21,24,76, +89,21,6,6,12,75,89,6,25,0, +63,43,0,24,63,43,17,18,0,57, +24,47,43,17,18,1,23,57,17,51, +17,51,49,48,1,50,4,21,20,0, +35,34,39,53,22,22,51,50,54,53, +16,33,34,7,39,19,33,21,33,3, +54,2,45,231,1,9,254,223,254,247, +130,70,208,101,176,195,254,137,95,159, +86,55,2,215,253,183,37,115,3,125, +229,199,227,254,254,79,160,45,51,166, +157,1,50,29,55,2,172,153,254,73, +23,0,0,2,0,117,255,236,4,47, +5,203,0,22,0,36,0,68,64,35, +26,17,11,33,33,0,0,6,17,3, +38,37,12,11,14,29,77,89,11,14, +14,20,3,20,23,75,89,20,25,3, +8,77,89,3,7,0,63,43,0,24, +63,43,17,18,0,57,24,47,57,43, +17,0,51,17,18,1,23,57,17,51, +17,51,17,51,49,48,19,16,0,33, +50,23,21,38,35,34,2,3,51,54, +51,50,22,21,20,2,35,34,0,5, +50,54,53,52,38,35,34,6,6,21, +20,22,22,117,1,79,1,72,113,65, +77,99,235,248,12,12,110,238,197,227, +249,212,227,254,246,1,235,142,157,146, +145,90,150,89,80,147,2,113,1,175, +1,171,19,143,25,254,219,254,198,172, +238,204,228,254,251,1,85,200,179,169, +145,166,74,130,70,103,178,104,0,1, +0,94,0,0,4,43,5,182,0,6, +0,31,64,16,1,5,5,0,2,3, +7,8,3,2,76,89,3,6,0,24, +0,63,63,43,17,18,1,23,57,17, +51,49,48,33,1,33,53,33,21,1, +1,29,2,94,252,227,3,205,253,170, +5,29,153,133,250,207,0,3,0,104, +255,236,4,41,5,203,0,22,0,34, +0,46,0,77,64,41,23,15,38,20, +44,3,29,9,9,3,6,17,20,15, +6,47,48,6,17,41,32,41,32,75, +89,41,41,12,0,12,26,77,89,12, +25,0,35,77,89,0,7,0,63,43, +0,24,63,43,17,18,0,57,24,47, +43,17,18,0,57,57,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,1,50,22,21,20,6,7,22,22, +21,20,6,35,34,38,53,52,37,38, +38,53,52,54,3,20,22,51,50,54, +53,52,38,39,6,6,1,34,6,21, +20,22,23,54,54,53,52,38,2,72, +200,234,134,147,178,150,254,221,234,252, +1,50,138,120,235,119,167,151,149,166, +156,194,149,134,1,58,125,142,118,159, +143,119,145,5,203,186,164,108,178,73, +85,187,123,182,217,205,188,251,140,78, +181,112,159,189,251,166,120,134,140,122, +97,151,71,64,155,3,103,120,100,92, +132,66,60,138,92,101,119,0,0,2, +0,106,255,236,4,37,5,203,0,23, +0,37,0,65,64,34,27,17,34,10, +10,0,0,4,17,3,38,39,14,30, +77,89,11,20,14,14,2,20,20,24, +75,89,20,7,2,7,77,89,2,25, +0,63,43,0,24,63,43,17,18,0, +57,24,47,18,57,43,17,18,1,23, +57,17,51,17,51,17,51,49,48,1, +16,33,34,39,53,22,51,50,18,19, +35,6,6,35,34,38,53,52,18,51, +50,22,18,1,34,6,21,20,22,51, +50,54,54,53,52,38,38,4,37,253, +104,116,68,80,102,240,245,11,12,55, +182,114,194,228,255,208,149,223,120,254, +20,143,156,144,147,91,153,88,82,147, +3,70,252,166,20,143,26,1,41,1, +51,83,87,232,208,228,1,8,153,254, +219,1,48,184,164,144,165,74,128,70, +105,178,102,0,0,2,0,152,255,227, +1,137,4,100,0,11,0,21,0,40, +64,20,16,6,6,12,0,0,22,23, +14,19,79,89,14,16,9,3,79,89, +9,22,0,63,43,0,24,63,43,17, +18,1,57,17,51,51,17,51,49,48, +55,52,54,51,50,22,21,20,6,35, +34,38,17,52,51,50,21,20,6,35, +34,38,152,61,57,58,65,66,57,51, +67,118,123,66,57,51,67,106,67,69, +69,67,65,70,63,3,187,135,135,65, +70,63,0,2,0,63,254,248,1,133, +4,100,0,8,0,18,0,34,64,16, +1,13,13,5,9,9,20,19,11,16, +79,89,11,16,5,0,0,47,205,63, +43,17,18,1,57,17,51,51,17,51, +49,48,37,23,6,2,7,35,54,18, +55,3,52,51,50,21,20,6,35,34, +38,1,94,15,26,98,53,125,27,65, +13,21,119,123,66,57,58,61,238,23, +100,254,247,114,104,1,50,92,2,239, +135,135,65,70,70,0,0,1,0,104, +0,242,4,41,4,217,0,6,0,21, +64,9,4,0,5,1,4,7,8,3, +0,0,47,47,17,18,1,23,57,49, +48,37,1,53,1,21,1,1,4,41, +252,63,3,193,252,242,3,14,242,1, +166,98,1,223,149,254,141,254,184,0, +0,2,0,119,1,193,4,25,3,227, +0,3,0,7,0,42,64,21,7,2, +4,0,2,0,9,8,4,5,80,89, +4,1,0,80,89,15,1,1,1,0, +47,93,43,0,24,47,43,17,18,1, +57,57,17,51,17,51,49,48,19,53, +33,21,1,53,33,21,119,3,162,252, +94,3,162,3,90,137,137,254,103,137, +137,0,0,1,0,104,0,242,4,41, +4,217,0,6,0,21,64,9,5,1, +2,0,4,7,8,6,3,0,47,47, +17,18,1,23,57,49,48,19,1,1, +53,1,21,1,104,3,15,252,241,3, +193,252,63,1,137,1,70,1,117,149, +254,33,98,254,90,0,0,2,0,27, +255,227,3,57,5,203,0,27,0,38, +0,57,64,29,33,28,27,0,7,19, +19,0,28,14,4,39,40,0,0,36, +16,36,30,79,89,36,22,16,10,73, +89,16,4,0,63,43,0,24,63,43, +17,18,0,57,24,47,17,18,1,23, +57,17,51,17,51,17,51,49,48,1, +53,52,54,55,54,54,53,52,38,35, +34,6,7,39,54,51,50,22,21,20, +6,6,7,6,6,21,21,3,52,51, +50,22,21,20,6,35,34,38,1,33, +72,98,136,71,131,123,79,150,97,59, +189,206,191,212,39,76,126,101,65,178, +120,58,63,64,57,52,68,1,147,54, +117,151,84,115,116,82,102,111,37,49, +135,99,188,171,73,111,99,110,86,114, +95,33,254,215,136,70,66,64,71,63, +0,2,0,121,255,70,6,184,5,180, +0,53,0,63,0,69,64,34,35,46, +54,14,59,7,20,27,0,0,41,20, +14,46,5,64,65,24,56,56,4,61, +8,17,11,17,11,17,43,31,50,3, +38,43,0,47,51,63,51,18,57,57, +47,47,18,57,50,51,51,17,51,17, +18,1,23,57,17,51,17,51,51,17, +51,17,51,49,48,1,20,6,6,35, +34,38,39,35,6,6,35,34,38,53, +52,54,51,50,22,23,3,21,20,51, +50,54,53,52,2,36,35,34,4,2, +21,16,0,33,50,55,21,6,35,32, +0,17,16,18,36,33,50,4,18,1, +20,51,50,19,19,38,35,34,6,6, +184,88,160,104,86,118,11,8,40,149, +102,150,169,236,192,68,172,69,25,133, +91,114,148,254,239,177,223,254,182,174, +1,66,1,47,210,226,192,244,254,149, +254,111,214,1,140,1,0,215,1,79, +183,251,246,195,207,18,14,72,85,130, +147,2,217,142,236,130,104,81,87,98, +205,176,204,255,25,22,254,42,22,178, +215,172,181,1,16,147,185,254,169,225, +254,207,254,184,86,133,84,1,143,1, +102,1,4,1,150,223,181,254,179,254, +164,254,1,57,1,5,20,180,0,2, +0,0,0,0,5,16,5,188,0,7, +0,14,0,57,64,30,2,14,11,8, +1,5,0,3,0,7,3,4,7,4, +16,15,14,2,73,89,11,5,14,14, +4,5,3,0,4,18,0,63,51,63, +18,57,47,18,57,43,17,18,1,57, +57,17,51,17,51,17,18,23,57,49, +48,33,3,33,3,35,1,51,1,1, +3,38,39,6,7,3,4,96,182,253, +182,180,172,2,66,143,2,63,254,101, +170,33,35,22,41,172,1,209,254,47, +5,188,250,68,2,106,1,197,86,125, +96,115,254,59,0,3,0,201,0,0, +4,190,5,182,0,14,0,23,0,32, +0,73,64,38,19,4,29,10,15,25, +25,14,10,4,7,14,4,33,34,8, +15,24,15,24,74,89,15,15,14,0, +14,25,74,89,14,18,0,23,74,89, +0,3,0,63,43,0,24,63,43,17, +18,0,57,24,47,43,17,18,0,57, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,19,33,32,4,21, +20,6,7,21,4,17,20,4,35,33, +19,33,50,54,53,52,38,35,35,17, +17,33,50,54,53,52,38,35,201,1, +157,1,35,1,4,145,139,1,77,254, +247,238,254,2,170,1,24,180,158,176, +192,250,1,49,177,179,183,187,5,182, +174,188,130,169,25,10,57,254,219,196, +220,3,68,113,134,123,109,253,145,253, +221,137,146,136,128,0,0,1,0,125, +255,236,4,207,5,203,0,22,0,38, +64,20,3,14,20,9,14,3,23,24, +18,0,73,89,18,4,11,6,73,89, +11,19,0,63,43,0,24,63,43,17, +18,1,23,57,17,51,49,48,1,34, +0,17,16,0,51,50,55,21,6,35, +32,0,17,52,18,36,51,50,23,7, +38,3,59,241,254,233,1,13,249,153, +196,152,223,254,189,254,161,169,1,63, +216,230,172,72,166,5,51,254,191,254, +233,254,225,254,199,55,149,57,1,136, +1,105,226,1,84,184,84,146,78,0, +0,2,0,201,0,0,5,88,5,182, +0,8,0,17,0,40,64,20,14,4, +9,0,4,0,18,19,5,13,74,89, +5,3,4,14,74,89,4,18,0,63, +43,0,24,63,43,17,18,1,57,57, +17,51,17,51,49,48,1,16,0,33, +33,17,33,32,0,3,16,0,33,35, +17,51,32,0,5,88,254,119,254,143, +254,107,1,192,1,85,1,122,180,254, +225,254,229,247,207,1,48,1,50,2, +233,254,150,254,129,5,182,254,134,254, +167,1,30,1,34,251,112,1,43,0, +0,1,0,201,0,0,3,248,5,182, +0,11,0,58,64,31,6,10,10,1, +4,0,8,1,4,12,13,6,9,73, +89,6,6,1,2,2,5,73,89,2, +3,1,10,73,89,1,18,0,63,43, +0,24,63,43,17,18,0,57,24,47, +43,17,18,1,23,57,17,51,17,51, +49,48,33,33,17,33,21,33,17,33, +21,33,17,33,3,248,252,209,3,47, +253,123,2,94,253,162,2,133,5,182, +151,254,41,150,253,230,0,1,0,201, +0,0,3,248,5,182,0,9,0,50, +64,26,6,0,0,1,3,8,1,3, +10,11,6,9,73,89,6,6,1,2, +2,5,73,89,2,3,1,18,0,63, +63,43,17,18,0,57,24,47,43,17, +18,1,23,57,17,51,17,51,49,48, +33,35,17,33,21,33,17,33,21,33, +1,115,170,3,47,253,123,2,94,253, +162,5,182,151,253,233,151,0,0,1, +0,125,255,236,5,61,5,203,0,27, +0,58,64,31,20,8,25,2,2,14, +27,8,4,28,29,0,27,73,89,0, +0,5,12,12,17,73,89,12,4,5, +23,73,89,5,19,0,63,43,0,24, +63,43,17,18,0,57,24,47,43,17, +18,1,23,57,17,51,17,51,49,48, +1,33,17,6,6,35,32,0,17,52, +18,36,51,50,23,7,38,35,32,0, +17,16,0,33,50,55,17,33,3,76, +1,241,116,240,158,254,180,254,142,183, +1,88,231,234,202,66,198,183,254,245, +254,212,1,33,1,24,152,145,254,185, +2,254,253,57,37,38,1,139,1,100, +228,1,87,181,86,150,84,254,194,254, +230,254,216,254,206,35,1,194,0,1, +0,201,0,0,5,31,5,182,0,11, +0,51,64,25,9,1,1,0,8,4, +4,5,0,5,13,12,8,3,73,89, +8,8,5,10,6,3,1,5,18,0, +63,51,63,51,18,57,47,43,17,18, +1,57,57,17,51,17,51,17,51,17, +51,49,48,33,35,17,33,17,35,17, +51,17,33,17,51,5,31,170,252,254, +170,170,3,2,170,2,176,253,80,5, +182,253,146,2,110,0,0,1,0,84, +0,0,2,86,5,182,0,11,0,55, +64,28,5,1,10,3,8,0,0,3, +1,3,12,13,9,4,6,4,74,89, +6,3,10,3,1,3,74,89,1,18, +0,63,43,17,0,51,24,63,43,17, +0,51,17,18,1,23,57,17,51,17, +51,17,51,49,48,33,33,53,55,17, +39,53,33,21,7,17,23,2,86,253, +254,172,172,2,2,172,172,98,35,4, +170,37,98,98,37,251,86,35,0,1, +255,96,254,127,1,104,5,182,0,13, +0,29,64,13,11,8,8,14,15,9, +3,0,5,73,89,0,34,0,63,43, +0,24,63,17,18,1,57,17,51,49, +48,3,34,39,53,22,51,50,54,53, +17,51,17,20,6,12,94,54,71,77, +99,103,170,192,254,127,27,145,20,120, +113,5,182,250,88,190,209,0,0,1, +0,201,0,0,4,233,5,182,0,11, +0,42,64,21,8,4,4,5,5,2, +11,10,0,5,13,12,2,8,5,9, +6,3,1,5,18,0,63,51,63,51, +18,57,57,17,18,1,23,57,17,51, +17,51,49,48,33,35,1,7,17,35, +17,51,17,1,51,1,4,233,200,253, +235,153,170,170,2,151,201,253,180,2, +197,136,253,195,5,182,253,43,2,213, +253,133,0,1,0,201,0,0,3,248, +5,182,0,5,0,31,64,14,3,0, +0,4,6,7,1,3,0,3,73,89, +0,18,0,63,43,0,24,63,17,18, +1,57,57,17,51,49,48,51,17,51, +17,33,21,201,170,2,133,5,182,250, +228,154,0,1,0,201,0,0,6,113, +5,182,0,19,0,50,64,24,8,5, +5,6,11,14,14,13,6,13,20,21, +1,10,17,3,6,11,7,3,14,0, +6,18,0,63,51,51,63,51,18,23, +57,17,18,1,57,57,17,51,17,51, +17,51,17,51,49,48,33,1,35,22, +21,17,35,17,33,1,51,1,51,17, +35,17,52,55,35,1,3,80,254,16, +8,14,157,1,0,1,207,8,1,211, +254,170,14,8,254,12,5,16,154,212, +252,94,5,182,251,74,4,182,250,74, +3,174,162,190,250,242,0,1,0,201, +0,0,5,63,5,182,0,16,0,46, +64,21,9,6,6,7,1,15,15,0, +7,0,17,18,11,3,7,15,8,3, +1,7,18,0,63,51,63,51,18,57, +57,17,18,1,57,57,17,51,17,51, +17,51,17,51,49,48,33,35,1,35, +22,21,17,35,17,51,1,51,38,2, +55,17,51,5,63,194,252,225,8,16, +157,192,3,29,8,2,14,2,159,4, +203,216,180,252,193,5,182,251,58,27, +1,37,63,3,71,0,0,2,0,125, +255,236,5,190,5,205,0,11,0,23, +0,40,64,20,18,0,12,6,0,6, +25,24,9,21,73,89,9,4,3,15, +73,89,3,19,0,63,43,0,24,63, +43,17,18,1,57,57,17,51,17,51, +49,48,1,16,0,33,32,0,17,16, +0,33,32,0,1,16,18,51,50,18, +17,16,2,35,34,2,5,190,254,157, +254,196,254,189,254,161,1,96,1,68, +1,59,1,98,251,115,253,241,243,248, +247,242,243,253,2,221,254,161,254,110, +1,139,1,104,1,101,1,137,254,112, +254,160,254,215,254,205,1,50,1,42, +1,39,1,49,254,205,0,2,0,201, +0,0,4,104,5,182,0,9,0,18, +0,52,64,26,10,5,5,6,14,0, +6,0,19,20,10,4,74,89,10,10, +6,7,7,18,74,89,7,3,6,18, +0,63,63,43,17,18,0,57,24,47, +43,17,18,1,57,57,17,51,17,51, +17,51,49,48,1,20,4,33,35,17, +35,17,33,32,1,51,50,54,53,52, +38,35,35,4,104,254,209,254,230,172, +170,1,123,2,36,253,11,153,226,202, +190,201,190,4,12,222,239,253,193,5, +182,253,27,146,161,145,142,0,0,2, +0,125,254,164,5,190,5,205,0,15, +0,27,0,52,64,27,16,10,22,0, +0,4,3,10,4,28,29,3,13,7, +13,25,73,89,13,4,7,19,73,89, +5,7,19,0,63,198,43,0,24,63, +43,17,18,0,57,17,18,1,23,57, +17,51,17,51,49,48,1,16,2,7, +1,35,1,7,32,0,17,16,0,33, +32,0,1,16,18,51,50,18,17,16, +2,35,34,2,5,190,226,206,1,92, +247,254,227,55,254,189,254,161,1,96, +1,68,1,59,1,98,251,115,253,241, +243,248,247,242,243,253,2,221,254,231, +254,140,66,254,150,1,74,2,1,139, +1,104,1,101,1,137,254,112,254,160, +254,215,254,205,1,50,1,42,1,39, +1,49,254,205,0,2,0,201,0,0, +4,207,5,182,0,12,0,21,0,72, +64,37,13,1,1,2,12,9,17,7, +11,10,10,7,9,2,4,22,23,9, +13,0,13,0,74,89,13,13,2,3, +3,21,73,89,3,3,11,2,18,0, +63,51,63,43,17,18,0,57,24,47, +43,17,18,0,57,17,18,1,23,57, +17,51,17,51,17,51,17,51,17,51, +49,48,1,17,35,17,33,32,4,21, +16,5,1,35,1,37,51,50,54,53, +52,38,35,35,1,115,170,1,145,1, +13,1,1,254,218,1,141,201,254,158, +254,207,233,180,168,171,189,221,2,96, +253,160,5,182,206,207,254,222,102,253, +111,2,96,146,143,143,145,128,0,1, +0,106,255,236,4,2,5,203,0,36, +0,52,64,27,30,19,12,0,0,24, +19,5,4,37,38,12,30,3,22,22, +27,73,89,22,4,3,9,73,89,3, +19,0,63,43,0,24,63,43,17,18, +0,57,57,17,18,1,23,57,17,51, +17,51,49,48,1,20,4,35,32,39, +53,22,22,51,50,54,53,52,38,38, +39,38,38,53,52,54,51,50,23,7, +38,35,34,6,21,20,22,22,23,22, +22,4,2,254,232,240,254,252,140,90, +212,104,170,172,61,143,146,204,175,254, +209,218,183,53,181,171,135,152,56,133, +137,230,173,1,133,193,216,67,164,38, +44,129,115,76,97,82,52,73,200,161, +169,200,80,148,76,116,103,76,97,81, +49,82,188,0,0,1,0,18,0,0, +4,90,5,182,0,7,0,36,64,18, +0,1,5,1,3,3,8,9,7,3, +4,3,73,89,4,3,1,18,0,63, +63,43,17,0,51,17,18,1,23,57, +17,51,49,48,33,35,17,33,53,33, +21,33,2,139,170,254,49,4,72,254, +49,5,31,151,151,0,0,1,0,186, +255,236,5,25,5,182,0,17,0,37, +64,17,16,1,10,7,1,7,19,18, +17,8,3,4,13,73,89,4,19,0, +63,43,0,24,63,51,17,18,1,57, +57,17,51,17,51,49,48,1,17,20, +0,33,32,0,53,17,51,17,20,22, +51,50,54,53,17,5,25,254,210,254, +248,254,248,254,223,170,200,194,185,200, +5,182,252,78,250,254,226,1,32,252, +3,174,252,70,183,196,197,184,3,184, +0,1,0,0,0,0,4,195,5,182, +0,10,0,26,64,11,1,4,12,11, +8,3,0,4,3,3,18,0,63,63, +51,18,57,17,18,1,57,57,49,48, +1,51,1,35,1,51,1,22,23,54, +55,4,12,183,253,241,168,253,244,180, +1,80,58,34,36,58,5,182,250,74, +5,182,252,78,163,154,162,161,0,1, +0,27,0,0,7,76,5,182,0,25, +0,36,64,16,25,10,27,26,21,14, +14,5,9,24,17,10,3,1,9,18, +0,63,51,63,51,51,18,57,57,17, +51,17,18,1,57,57,49,48,33,35, +1,38,38,39,6,7,1,35,1,51, +19,22,23,54,55,1,51,1,22,23, +54,55,19,51,5,197,168,254,217,21, +52,1,22,48,254,226,168,254,123,180, +231,48,22,27,53,1,6,180,1,19, +48,33,19,53,230,180,3,211,65,198, +20,132,157,252,51,5,182,252,121,190, +154,183,175,3,121,252,127,155,195,142, +204,3,133,0,0,1,0,8,0,0, +4,150,5,182,0,11,0,35,64,18, +4,6,5,11,10,0,6,13,12,2, +8,4,9,6,3,1,4,18,0,63, +51,63,51,18,57,57,17,18,1,23, +57,49,48,33,35,1,1,35,1,1, +51,1,1,51,1,4,150,193,254,119, +254,112,180,1,230,254,59,188,1,107, +1,110,181,254,59,2,131,253,125,2, +252,2,186,253,189,2,67,253,76,0, +0,1,0,0,0,0,4,123,5,182, +0,8,0,32,64,15,4,5,2,5, +7,3,9,10,0,5,1,7,3,5, +18,0,63,63,51,18,57,17,18,1, +23,57,17,51,49,48,1,1,51,1, +17,35,17,1,51,2,61,1,134,184, +254,24,172,254,25,186,2,219,2,219, +252,129,253,201,2,47,3,135,0,1, +0,82,0,0,4,63,5,182,0,9, +0,43,64,23,8,1,3,7,0,7, +4,1,4,10,11,5,4,73,89,5, +3,1,8,73,89,1,18,0,63,43, +0,24,63,43,17,18,1,23,57,17, +51,17,51,49,48,33,33,53,1,33, +53,33,21,1,33,4,63,252,19,3, +8,253,16,3,191,252,248,3,30,133, +4,152,153,133,251,105,0,1,0,166, +254,188,2,111,5,182,0,7,0,32, +64,14,6,1,4,0,1,0,8,9, +5,2,3,6,1,39,0,63,51,63, +51,17,18,1,57,57,17,51,17,51, +49,48,1,33,17,33,21,33,17,33, +2,111,254,55,1,201,254,223,1,33, +254,188,6,250,141,250,33,0,0,1, +0,23,0,0,2,221,5,182,0,3, +0,19,183,3,1,4,5,3,3,2, +18,0,63,63,17,18,1,57,57,49, +48,19,1,35,1,186,2,35,166,253, +224,5,182,250,74,5,182,0,0,1, +0,51,254,188,1,252,5,182,0,7, +0,32,64,14,3,0,1,6,0,6, +8,9,0,7,39,3,4,3,0,63, +51,63,51,17,18,1,57,57,17,51, +17,51,49,48,23,33,17,33,53,33, +17,33,51,1,33,254,223,1,201,254, +55,182,5,223,141,249,6,0,0,1, +0,49,2,39,4,35,5,193,0,6, +0,24,64,9,0,3,7,8,5,2, +0,4,2,0,47,47,51,18,57,17, +18,1,57,57,49,48,19,1,51,1, +35,1,1,49,1,178,99,1,221,152, +254,140,254,178,2,39,3,154,252,102, +2,233,253,23,0,1,255,252,254,197, +3,154,255,72,0,3,0,17,181,0, +5,1,4,1,2,0,47,51,17,1, +51,17,51,49,48,1,33,53,33,3, +154,252,98,3,158,254,197,131,0,1, +1,137,4,217,3,18,6,33,0,9, +0,19,182,0,4,11,10,6,128,1, +0,47,26,205,17,18,1,57,57,49, +48,1,35,38,38,39,53,51,22,22, +23,3,18,110,65,178,40,203,32,114, +44,4,217,52,192,63,21,69,181,53, +0,2,0,94,255,236,3,205,4,90, +0,25,0,36,0,71,64,37,34,8, +11,30,30,25,25,18,8,3,37,38, +1,2,11,30,71,89,2,11,11,0, +21,21,15,70,89,21,16,5,26,70, +89,5,22,0,21,0,63,63,43,0, +24,63,43,17,18,0,57,24,47,57, +43,17,0,51,17,18,1,23,57,17, +51,17,51,17,51,49,48,33,39,35, +6,6,35,34,38,53,16,37,55,53, +52,38,35,34,7,39,54,54,51,50, +22,21,17,37,50,54,53,53,7,6, +6,21,20,22,3,82,33,8,82,163, +122,163,185,2,19,186,111,122,137,173, +51,81,193,97,196,189,254,14,155,177, +166,198,175,109,156,103,73,168,155,1, +76,16,6,68,129,123,84,127,44,50, +174,192,253,20,117,170,153,99,7,7, +109,115,90,94,0,2,0,176,255,236, +4,117,6,20,0,19,0,31,0,68, +64,34,10,23,23,15,15,12,29,3, +12,3,32,33,13,0,12,21,18,17, +10,17,6,0,6,26,70,89,6,22, +0,20,70,89,0,16,0,63,43,0, +24,63,43,17,18,0,57,57,17,51, +24,63,63,17,18,1,57,57,17,51, +17,51,17,51,17,51,49,48,1,50, +18,17,16,2,35,34,38,39,35,7, +35,17,51,17,20,7,51,54,23,34, +6,21,20,22,51,50,54,53,52,38, +2,174,216,239,241,214,107,177,60,12, +35,119,166,8,8,116,204,170,150,154, +170,153,150,150,4,90,254,217,254,242, +254,242,254,213,79,82,141,6,20,254, +134,127,101,164,139,195,231,231,199,223, +209,214,210,0,0,1,0,115,255,236, +3,139,4,92,0,22,0,38,64,20, +15,3,3,21,9,3,24,23,6,13, +70,89,6,16,0,18,70,89,0,22, +0,63,43,0,24,63,43,17,18,1, +23,57,17,51,49,48,5,34,0,17, +16,0,51,50,22,23,7,38,38,35, +32,17,20,22,51,50,55,21,6,2, +102,238,254,251,1,9,245,79,158,45, +51,55,130,50,254,178,163,160,137,144, +110,20,1,37,1,12,1,19,1,44, +34,23,141,22,29,254,86,202,216,59, +147,57,0,2,0,115,255,236,4,55, +6,20,0,18,0,31,0,66,64,33, +29,6,23,0,14,14,17,6,17,32, +33,18,21,15,0,0,1,1,12,3, +9,9,26,70,89,9,16,3,19,70, +89,3,22,0,63,43,0,24,63,43, +17,18,0,57,57,17,51,24,63,63, +17,18,1,57,57,17,51,17,51,51, +17,51,49,48,37,35,6,35,34,2, +17,16,18,51,50,23,51,39,39,17, +51,17,35,37,50,54,53,53,52,38, +35,34,6,21,20,22,3,154,9,115, +229,215,239,240,214,223,119,13,7,4, +166,135,254,158,170,153,155,170,146,155, +154,147,167,1,38,1,15,1,15,1, +44,162,79,77,1,190,249,236,119,185, +206,35,233,199,227,207,210,214,0,2, +0,115,255,236,4,18,4,92,0,19, +0,26,0,59,64,31,24,10,23,11, +3,3,17,10,3,28,27,23,11,70, +89,23,23,0,6,6,20,70,89,6, +16,0,14,70,89,0,22,0,63,43, +0,24,63,43,17,18,0,57,24,47, +43,17,18,1,23,57,17,51,51,17, +51,49,48,5,34,0,17,16,0,51, +50,18,21,21,33,22,22,51,50,55, +21,6,6,3,34,6,7,33,52,38, +2,127,243,254,231,1,5,220,206,240, +253,13,5,185,168,177,173,88,157,156, +132,157,14,2,61,140,20,1,40,1, +7,1,9,1,56,254,241,222,105,193, +200,74,148,38,33,3,229,172,152,157, +167,0,0,1,0,29,0,0,3,14, +6,31,0,20,0,57,64,29,20,12, +12,19,2,2,7,3,5,3,21,22, +10,15,70,89,10,0,1,5,7,5, +70,89,19,7,15,3,21,0,63,63, +51,43,17,0,51,24,63,43,17,18, +1,57,57,17,51,51,17,51,51,18, +57,49,48,1,33,17,35,17,35,53, +55,53,16,33,50,23,7,38,35,34, +6,21,21,33,2,158,254,233,166,196, +196,1,97,87,117,43,96,68,94,90, +1,23,3,199,252,57,3,199,75,60, +61,1,148,35,133,31,125,138,71,0, +0,3,0,39,254,20,4,49,4,92, +0,42,0,55,0,65,0,110,64,62, +43,25,56,37,12,31,61,5,49,19, +1,19,5,2,42,34,28,31,37,25, +10,66,67,28,15,53,15,53,70,89, +8,59,71,89,10,34,8,42,15,8, +15,8,22,42,42,2,71,89,42,15, +40,63,71,89,40,16,22,46,71,89, +22,27,0,63,43,0,24,63,43,0, +24,63,43,17,18,0,57,57,24,47, +47,17,18,57,57,43,43,17,18,0, +57,17,18,1,23,57,17,51,17,51, +17,51,17,51,17,51,49,48,1,21, +7,22,22,21,20,6,35,34,39,6, +21,20,22,51,51,50,22,21,20,4, +33,34,38,53,52,54,55,38,38,53, +52,54,55,38,38,53,52,54,51,50, +23,1,20,22,51,50,54,53,52,38, +35,35,34,6,19,20,22,51,50,53, +52,35,34,6,4,49,203,28,44,220, +192,49,43,106,74,90,194,178,191,254, +220,254,232,215,233,128,116,42,57,64, +69,85,107,216,198,86,69,254,17,150, +140,209,201,110,152,199,113,126,90,130, +116,243,246,117,126,4,72,105,24,35, +113,71,161,192,8,56,85,45,43,150, +143,182,191,160,146,100,146,26,19,80, +53,60,90,42,35,168,108,180,195,20, +251,0,89,92,125,107,89,69,108,3, +60,115,118,236,247,126,0,1,0,176, +0,0,4,68,6,20,0,22,0,51, +64,25,14,12,8,8,9,0,22,9, +22,23,24,14,9,18,18,4,70,89, +18,16,10,0,0,9,21,0,63,51, +63,63,43,17,18,0,57,17,18,1, +57,57,17,51,17,51,17,51,51,49, +48,33,17,52,38,35,34,6,21,17, +35,17,51,17,20,7,51,54,54,51, +50,22,21,17,3,158,122,130,173,159, +166,166,8,10,49,181,116,201,201,2, +197,134,132,188,214,253,195,6,20,254, +41,85,56,79,91,191,208,253,53,0, +0,2,0,162,0,0,1,102,5,223, +0,3,0,15,0,35,64,17,10,0, +0,4,1,1,16,17,13,7,72,89, +13,2,15,1,21,0,63,63,206,43, +17,18,1,57,17,51,51,17,51,49, +48,33,35,17,51,3,52,54,51,50, +22,21,20,6,35,34,38,1,86,166, +166,180,56,42,40,58,58,40,42,56, +4,72,1,41,57,53,54,56,56,55, +55,0,0,2,255,145,254,20,1,102, +5,223,0,12,0,24,0,44,64,22, +19,11,11,13,8,8,25,26,22,16, +72,89,22,64,9,15,0,5,70,89, +0,27,0,63,43,0,24,63,26,206, +43,17,18,1,57,17,51,51,17,51, +49,48,19,34,39,53,22,51,50,54, +53,17,51,17,16,3,52,54,51,50, +22,21,20,6,35,34,38,43,95,59, +69,67,78,73,166,180,56,42,40,58, +58,40,42,56,254,20,25,135,20,85, +87,4,252,251,16,254,188,7,93,57, +53,54,56,56,55,55,0,1,0,176, +0,0,4,29,6,20,0,16,0,54, +64,27,16,14,10,10,11,11,8,6, +4,5,8,4,17,18,12,0,0,16, +16,8,8,3,7,11,21,3,15,0, +63,63,51,18,57,47,57,17,51,63, +17,18,1,23,57,17,57,17,51,17, +51,51,49,48,1,54,55,1,51,1, +1,35,1,7,17,35,17,51,17,20, +7,1,84,43,88,1,98,197,254,68, +1,219,201,254,125,125,164,164,8,2, +49,61,99,1,119,254,45,253,139,2, +6,108,254,102,6,20,252,199,55,115, +0,1,0,176,0,0,1,86,6,20, +0,3,0,22,64,9,0,1,1,4, +5,2,0,1,21,0,63,63,17,18, +1,57,17,51,49,48,33,35,17,51, +1,86,166,166,6,20,0,1,0,176, +0,0,6,203,4,92,0,35,0,70, +64,35,21,17,17,18,8,9,0,35, +9,18,35,3,36,37,28,22,21,21, +18,25,4,13,25,13,70,89,31,25, +16,19,15,9,0,18,21,0,63,51, +51,63,63,51,43,17,0,51,17,18, +57,24,47,51,51,17,18,1,23,57, +17,51,17,51,17,51,17,51,49,48, +33,17,52,38,35,34,6,21,17,35, +17,52,38,35,34,6,21,17,35,17, +51,23,51,54,54,51,32,23,51,54, +54,51,50,22,21,17,6,37,112,118, +155,148,166,112,119,156,145,166,135,27, +8,47,171,106,1,1,79,8,49,186, +119,186,185,2,201,131,131,178,185,253, +156,2,201,131,131,187,213,253,193,4, +72,150,80,90,186,86,100,191,210,253, +53,0,0,1,0,176,0,0,4,68, +4,92,0,20,0,49,64,24,0,20, +12,8,8,9,20,9,22,21,12,9, +16,16,4,70,89,16,16,10,15,0, +9,21,0,63,51,63,63,43,17,18, +0,57,17,18,1,57,57,17,51,17, +51,17,51,49,48,33,17,52,38,35, +34,6,21,17,35,17,51,23,51,54, +54,51,50,22,21,17,3,158,122,130, +172,160,166,135,27,8,51,184,113,198, +200,2,197,134,132,186,214,253,193,4, +72,150,81,89,191,210,253,53,0,2, +0,115,255,236,4,98,4,92,0,12, +0,24,0,40,64,20,19,0,13,7, +0,7,26,25,10,22,70,89,10,16, +3,16,70,89,3,22,0,63,43,0, +24,63,43,17,18,1,57,57,17,51, +17,51,49,48,1,16,0,35,34,38, +2,53,16,0,51,50,0,1,20,22, +51,50,54,53,52,38,35,34,6,4, +98,254,242,238,147,228,124,1,12,238, +230,1,15,252,189,168,163,163,169,169, +165,163,166,2,37,254,244,254,211,138, +1,2,173,1,12,1,43,254,206,254, +251,210,220,219,211,209,217,214,0,2, +0,176,254,20,4,117,4,92,0,20, +0,33,0,63,64,32,25,11,4,7, +7,8,31,18,8,18,34,35,4,11, +0,15,15,21,70,89,15,16,9,15, +8,27,0,28,70,89,0,22,0,63, +43,0,24,63,63,63,43,17,18,0, +57,57,17,18,1,57,57,17,51,17, +51,17,51,51,51,49,48,5,34,38, +39,35,22,21,17,35,17,51,23,51, +54,54,51,50,18,17,16,2,3,34, +6,7,21,20,22,51,50,54,53,52, +38,2,174,107,177,60,12,12,166,135, +23,8,64,170,110,218,237,241,238,168, +150,2,154,170,142,161,161,20,79,82, +96,86,254,61,6,52,150,90,80,254, +214,254,243,254,242,254,213,3,227,186, +203,37,231,199,230,202,205,219,0,2, +0,115,254,20,4,55,4,92,0,12, +0,31,0,68,64,34,10,16,29,22, +3,26,26,25,16,25,32,33,26,27, +23,15,29,30,30,22,13,19,19,7, +70,89,19,16,13,0,70,89,13,22, +0,63,43,0,24,63,43,17,18,0, +57,57,17,51,24,63,63,17,18,1, +57,57,17,51,17,51,51,51,17,51, +49,48,37,50,54,55,53,52,38,35, +34,6,21,20,22,23,34,2,17,16, +18,51,50,23,51,55,51,17,35,17, +52,55,35,6,2,78,166,152,5,156, +169,146,155,153,125,212,238,240,214,225, +121,9,24,131,166,11,13,115,119,178, +211,37,230,202,227,207,207,217,139,1, +42,1,11,1,13,1,46,170,150,249, +204,1,213,100,70,167,0,1,0,176, +0,0,3,39,4,92,0,16,0,42, +64,20,13,9,9,10,10,2,17,18, +11,15,13,0,10,21,0,5,70,89, +0,16,0,63,43,0,24,63,18,57, +63,17,18,1,57,57,17,51,17,51, +49,48,1,50,23,7,38,35,34,6, +21,17,35,17,51,23,51,54,54,2, +164,73,58,23,68,52,133,189,166,137, +19,8,61,172,4,92,12,154,15,216, +161,253,180,4,72,203,107,116,0,1, +0,106,255,236,3,115,4,92,0,36, +0,54,64,28,30,19,12,0,0,24, +5,19,4,37,38,12,30,3,22,22, +27,70,89,22,16,6,3,9,70,89, +3,22,0,63,43,0,24,47,63,43, +17,18,0,57,57,17,18,1,23,57, +17,51,17,51,49,48,1,20,6,35, +34,39,53,22,22,51,50,54,53,52, +38,39,46,2,53,52,54,51,50,23, +7,38,35,34,6,21,20,22,22,23, +22,22,3,115,228,206,218,122,79,181, +84,130,140,111,161,153,129,63,218,190, +177,169,59,165,134,118,120,45,100,142, +195,137,1,43,153,166,69,154,40,46, +83,85,64,91,62,57,85,108,75,134, +155,72,135,68,74,65,44,62,56,53, +71,144,0,1,0,31,255,236,2,168, +5,70,0,22,0,52,64,27,16,20, +20,9,11,9,18,3,4,24,23,10, +19,16,19,71,89,14,64,16,15,7, +0,70,89,7,22,0,63,43,0,24, +63,26,205,43,17,0,51,17,18,1, +23,57,17,51,17,51,49,48,37,50, +54,55,21,6,6,35,32,17,17,35, +53,55,55,51,21,33,21,33,17,20, +22,2,18,44,82,24,27,105,42,254, +194,157,157,70,96,1,62,254,194,94, +117,13,7,127,13,17,1,79,2,140, +80,69,234,254,129,253,123,99,106,0, +0,1,0,164,255,236,4,57,4,72, +0,20,0,52,64,25,1,19,7,12, +12,10,19,10,21,22,12,13,13,16, +8,20,15,16,4,70,89,16,22,11, +21,0,63,63,43,0,24,63,51,18, +57,17,51,17,18,1,57,57,17,51, +17,51,17,51,49,48,1,17,20,22, +51,50,54,53,17,51,17,35,39,35, +6,6,35,34,38,53,17,1,76,122, +130,172,159,166,137,24,9,51,181,116, +200,199,4,72,253,57,134,132,188,213, +2,64,251,184,147,81,86,190,209,2, +205,0,0,1,0,0,0,0,4,2, +4,72,0,11,0,24,64,10,1,10, +12,13,5,9,1,15,0,21,0,63, +63,51,57,17,18,1,57,57,49,48, +33,1,51,19,22,23,51,54,18,19, +51,1,1,160,254,96,178,236,80,14, +8,11,117,204,178,254,96,4,72,253, +118,228,68,53,1,77,2,48,251,184, +0,1,0,23,0,0,6,35,4,72, +0,28,0,44,64,20,9,27,29,30, +23,22,14,13,3,4,13,4,8,26, +18,9,15,0,8,21,0,63,51,63, +51,51,18,57,57,17,51,17,51,51, +51,17,18,1,57,57,49,48,33,3, +38,39,35,6,7,3,35,1,51,18, +18,23,51,54,54,55,19,51,19,22, +23,51,54,54,19,51,1,4,47,201, +19,52,8,40,30,207,192,254,213,174, +106,111,8,8,11,49,18,201,180,196, +56,20,8,4,35,191,172,254,209,2, +131,59,209,175,95,253,127,4,72,254, +99,254,80,75,57,181,53,2,117,253, +139,172,117,36,150,2,220,251,184,0, +0,1,0,39,0,0,4,8,4,72, +0,11,0,34,64,17,7,5,6,0, +1,5,12,13,9,3,1,8,11,21, +4,1,15,0,63,51,63,51,18,57, +57,17,18,1,23,57,49,48,1,1, +51,1,1,51,1,1,35,1,1,35, +1,184,254,131,189,1,33,1,32,187, +254,131,1,145,188,254,205,254,202,188, +2,49,2,23,254,92,1,164,253,233, +253,207,1,188,254,68,0,1,0,2, +254,20,4,6,4,72,0,21,0,36, +64,18,9,15,0,3,22,23,4,13, +0,13,18,70,89,13,27,8,0,15, +0,63,50,63,43,17,18,0,57,17, +18,1,23,57,49,48,19,51,19,22, +23,51,54,54,19,51,1,6,6,35, +34,39,53,22,51,50,55,55,2,178, +240,79,19,8,13,83,230,178,254,41, +70,187,136,76,74,55,68,171,73,61, +4,72,253,143,214,95,51,247,2,124, +251,32,185,155,17,133,12,192,156,0, +0,1,0,82,0,0,3,109,4,72, +0,9,0,43,64,23,8,1,3,7, +0,7,4,1,4,10,11,5,4,71, +89,5,15,1,8,71,89,1,21,0, +63,43,0,24,63,43,17,18,1,23, +57,17,51,17,51,49,48,33,33,53, +1,33,53,33,21,1,33,3,109,252, +229,2,86,253,207,2,231,253,178,2, +93,113,3,86,129,129,252,186,0,1, +0,61,254,188,2,193,5,182,0,28, +0,44,64,21,25,26,26,11,23,0, +0,15,7,20,3,3,7,11,3,29, +30,19,3,4,39,0,63,63,17,18, +1,23,57,17,51,17,51,51,17,51, +17,51,17,51,49,48,37,20,22,23, +21,38,38,53,17,52,38,35,53,54, +54,53,17,52,54,51,21,6,21,17, +20,7,21,22,21,1,219,117,113,190, +208,126,120,130,116,216,182,230,223,223, +12,102,92,2,140,2,170,154,1,47, +104,89,141,2,92,96,1,50,155,172, +139,6,193,254,217,215,39,12,39,215, +0,1,1,238,254,16,2,123,6,20, +0,3,0,22,64,9,2,3,3,4, +5,3,27,0,0,0,63,63,17,18, +1,57,17,51,49,48,1,51,17,35, +1,238,141,141,6,20,247,252,0,1, +0,72,254,188,2,203,5,182,0,29, +0,44,64,21,21,5,10,18,18,2, +25,0,29,29,14,14,25,5,3,30, +31,21,39,6,3,0,63,63,17,18, +1,23,57,17,51,17,51,17,51,51, +17,51,17,51,49,48,1,38,53,17, +52,39,53,50,22,21,17,20,22,23, +21,34,6,21,17,20,6,7,53,54, +54,53,17,52,54,55,2,10,223,227, +184,211,118,130,122,126,205,190,111,116, +110,113,2,63,39,215,1,39,193,6, +139,174,153,254,206,97,91,2,141,89, +104,254,209,153,171,2,140,2,92,102, +1,41,114,120,20,0,0,1,0,104, +2,80,4,41,3,84,0,23,0,36, +64,17,3,15,24,25,18,12,80,89, +3,18,15,6,6,0,80,89,6,0, +47,43,0,16,24,196,47,196,43,17, +18,1,57,57,49,48,1,34,6,7, +53,54,51,50,22,23,22,22,51,50, +54,55,21,6,35,34,38,39,38,38, +1,82,53,127,54,100,144,68,113,89, +66,98,47,54,128,54,102,142,72,126, +72,75,90,2,201,67,54,151,109,28, +38,28,27,64,57,150,110,33,32,32, +24,0,0,2,0,152,254,139,1,137, +4,94,0,3,0,14,0,43,64,20, +2,4,4,3,9,9,15,16,0,0, +3,12,12,6,79,89,12,16,3,34, +0,63,63,43,17,18,0,57,24,47, +17,18,1,57,17,51,51,17,51,49, +48,19,51,19,35,19,20,35,34,38, +53,52,54,51,50,22,219,105,51,207, +225,121,60,60,63,57,51,70,2,172, +251,223,5,76,135,71,64,63,72,64, +0,1,0,190,255,236,3,219,5,203, +0,27,0,62,64,30,22,8,13,3, +3,10,4,0,16,16,4,8,3,28, +29,25,5,2,19,10,13,2,13,2, +13,4,11,7,4,25,0,63,63,18, +57,57,47,47,17,51,51,17,51,51, +17,18,1,23,57,17,51,17,51,51, +17,51,17,51,49,48,37,6,7,21, +35,53,38,2,53,16,37,53,51,21, +22,22,23,7,38,35,34,6,21,20, +22,51,50,55,3,203,105,147,133,203, +193,1,140,135,75,142,49,49,133,109, +172,162,159,167,141,142,240,54,6,200, +206,32,1,17,250,1,252,62,172,164, +3,33,23,140,51,211,217,212,203,59, +0,1,0,63,0,0,4,68,5,201, +0,29,0,72,64,38,24,19,9,13, +13,26,22,17,2,11,22,19,5,30, +31,12,24,25,24,78,89,9,25,25, +19,0,19,16,76,89,19,24,0,5, +75,89,0,7,0,63,43,0,24,63, +43,17,18,0,57,24,47,51,43,17, +0,51,17,18,1,23,57,17,51,51, +17,51,17,51,49,48,1,50,23,7, +38,35,34,6,21,17,33,21,33,21, +20,6,7,33,21,33,53,54,53,53, +35,53,51,17,52,54,2,170,190,170, +61,154,143,123,125,1,166,254,90,65, +74,3,27,251,251,205,198,198,224,5, +201,84,133,77,124,140,254,217,127,221, +100,136,44,154,141,47,244,223,127,1, +60,178,205,0,0,2,0,123,1,6, +4,23,4,160,0,27,0,39,0,32, +64,13,28,0,34,14,0,14,40,41, +31,21,21,37,7,0,47,51,51,47, +51,17,18,1,57,57,17,51,17,51, +49,48,19,52,55,39,55,23,54,51, +50,23,55,23,7,22,21,20,7,23, +7,39,6,35,34,39,7,39,55,38, +55,20,22,51,50,54,53,52,38,35, +34,6,184,74,135,94,135,104,130,127, +102,137,95,134,74,74,131,92,137,102, +127,134,100,135,92,133,74,129,157,116, +116,158,160,114,116,157,2,211,122,107, +140,92,133,73,73,133,92,138,113,118, +131,103,135,92,133,71,73,133,92,136, +107,124,112,160,159,113,114,162,164,0, +0,1,0,31,0,0,4,113,5,182, +0,22,0,86,64,46,18,14,7,11, +11,16,12,5,9,2,9,3,12,20, +14,21,7,23,24,10,14,14,7,15, +6,18,18,3,0,19,21,15,19,31, +19,2,15,19,15,19,12,1,21,6, +12,24,0,63,63,51,18,57,57,47, +47,93,17,18,57,50,50,17,51,17, +51,51,17,51,17,18,1,23,57,17, +51,17,51,51,17,51,17,51,49,48, +1,1,51,1,33,21,33,21,33,21, +33,17,35,17,33,53,33,53,33,53, +33,1,51,2,72,1,123,174,254,96, +1,6,254,195,1,61,254,195,164,254, +196,1,60,254,196,1,0,254,101,178, +2,223,2,215,252,254,127,170,127,254, +244,1,12,127,170,127,3,2,0,2, +1,238,254,16,2,123,6,20,0,3, +0,7,0,36,64,16,2,6,6,3, +7,7,8,9,4,3,4,3,7,27, +0,0,0,63,63,57,57,47,47,17, +18,1,57,17,51,51,17,51,49,48, +1,51,17,35,17,51,17,35,1,238, +141,141,141,141,6,20,252,248,254,13, +252,247,0,2,0,123,255,248,3,150, +6,29,0,49,0,61,0,67,64,38, +50,0,19,6,42,30,56,25,25,30, +12,6,0,35,6,62,63,21,3,59, +54,28,45,6,33,9,33,39,71,89, +33,21,9,16,71,89,9,0,0,63, +43,0,24,63,43,17,18,0,23,57, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,19,52,54,55,38, +38,53,52,54,51,50,22,23,7,38, +38,35,34,6,21,20,22,23,22,22, +21,20,6,7,22,21,20,6,35,34, +39,53,22,22,51,50,54,53,52,38, +38,39,46,2,55,20,22,23,23,54, +53,52,38,39,6,6,139,86,78,74, +84,207,197,94,159,97,53,98,135,76, +116,116,123,154,186,150,82,74,153,234, +212,218,128,78,194,82,134,141,48,108, +115,142,134,66,146,132,167,49,137,147, +185,68,85,3,41,86,137,37,40,111, +85,121,139,29,39,131,39,27,59,64, +60,84,55,68,151,107,90,141,41,81, +146,140,153,65,148,37,45,76,71,46, +58,58,43,52,90,114,98,77,105,61, +19,80,111,83,112,57,19,100,0,2, +1,53,5,14,3,104,5,211,0,11, +0,23,0,30,64,12,6,0,12,18, +0,18,24,25,15,3,21,9,0,47, +51,205,50,17,18,1,57,57,17,51, +17,51,49,48,1,52,54,51,50,22, +21,20,6,35,34,38,37,52,54,51, +50,22,21,20,6,35,34,38,1,53, +53,37,38,55,55,38,37,53,1,125, +53,37,37,55,55,37,37,53,5,113, +52,46,46,52,50,49,49,50,52,46, +46,52,50,49,49,0,0,3,0,100, +255,236,6,68,5,203,0,22,0,38, +0,54,0,70,64,39,39,23,3,15, +47,31,31,20,9,15,23,5,55,56, +6,12,0,18,15,12,31,12,2,0, +18,16,18,2,12,18,12,18,27,43, +35,19,51,27,4,0,63,51,63,51, +18,57,57,47,47,93,93,17,51,17, +51,17,18,1,23,57,17,51,17,51, +17,51,49,48,1,34,6,21,20,22, +51,50,55,21,6,6,35,34,38,53, +52,54,51,50,23,7,38,1,52,18, +36,51,50,4,18,21,20,2,4,35, +34,36,2,55,20,18,4,51,50,36, +18,53,52,2,36,35,34,4,2,3, +125,125,135,127,131,86,125,48,101,70, +194,208,221,191,128,118,58,108,252,151, +200,1,94,202,200,1,94,202,194,254, +162,208,207,254,162,195,105,174,1,45, +172,174,1,42,175,174,254,215,176,174, +254,214,175,4,35,174,154,168,162,45, +124,20,28,241,216,209,246,60,118,51, +254,184,200,1,94,202,200,254,162,202, +197,254,166,208,207,1,90,198,173,254, +211,173,174,1,41,176,174,1,42,175, +174,254,215,0,0,2,0,70,3,20, +2,113,5,199,0,22,0,31,0,55, +64,28,23,6,27,10,1,1,22,22, +16,6,3,32,33,28,10,10,18,25, +22,0,3,16,3,2,3,13,18,31, +0,63,51,212,93,196,51,18,57,47, +51,17,18,1,23,57,17,51,17,51, +51,17,51,49,48,1,39,6,35,34, +38,53,52,54,55,55,53,52,35,34, +7,39,54,51,50,22,21,17,37,20, +51,50,53,53,7,6,6,2,20,24, +92,140,95,111,154,165,117,148,100,104, +43,114,133,130,137,254,80,112,201,98, +112,103,3,33,84,97,99,102,102,105, +6,4,39,133,51,96,56,105,121,254, +60,188,100,180,49,4,4,57,0,2, +0,82,0,117,3,170,3,190,0,6, +0,13,0,41,64,19,3,6,10,13, +2,4,11,9,9,4,13,6,4,14, +15,12,5,8,1,0,47,51,47,51, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,19,1,23,1,1, +7,1,37,1,23,1,1,7,1,82, +1,86,119,254,223,1,33,119,254,170, +1,139,1,88,117,254,225,1,31,117, +254,168,2,39,1,151,69,254,162,254, +161,71,1,151,27,1,151,69,254,162, +254,161,71,1,151,0,0,1,0,104, +1,8,4,41,3,23,0,5,0,27, +64,12,2,1,4,1,6,7,5,4, +80,89,5,2,0,47,47,43,17,18, +1,57,57,17,51,49,48,1,17,35, +17,33,53,4,41,137,252,200,3,23, +253,241,1,133,138,0,255,255,0,84, +1,217,2,63,2,113,2,6,0,16, +0,0,0,4,0,100,255,236,6,68, +5,203,0,8,0,22,0,38,0,54, +0,93,64,51,39,23,0,17,17,18, +4,9,47,31,31,13,9,12,18,23, +6,55,56,12,16,16,0,0,14,19, +14,18,8,19,15,18,31,18,2,0, +19,16,19,2,18,19,18,19,27,43, +35,19,51,27,4,0,63,51,63,51, +18,57,57,47,47,93,93,17,51,17, +51,17,18,57,47,51,17,51,17,18, +1,23,57,17,51,17,51,17,51,17, +51,17,51,49,48,1,51,50,54,53, +52,38,35,35,5,20,6,7,19,35, +3,35,17,35,17,33,50,22,1,52, +18,36,51,50,4,18,21,20,2,4, +35,34,36,2,55,20,18,4,51,50, +36,18,53,52,2,36,35,34,4,2, +2,211,108,80,97,86,93,106,1,178, +85,77,238,168,207,135,148,1,5,166, +155,251,223,200,1,94,202,200,1,94, +202,194,254,162,208,207,254,162,195,105, +174,1,45,172,174,1,42,175,174,254, +215,176,174,254,214,175,2,250,83,64, +75,65,136,80,123,30,254,117,1,98, +254,158,3,123,130,254,197,200,1,94, +202,200,254,162,202,197,254,166,208,207, +1,90,198,173,254,211,173,174,1,41, +176,174,1,42,175,174,254,215,0,1, +255,250,6,20,4,6,6,147,0,3, +0,17,181,0,5,1,4,1,2,0, +47,51,17,1,51,17,51,49,48,1, +33,53,33,4,6,251,244,4,12,6, +20,127,0,2,0,127,3,92,2,238, +5,203,0,12,0,24,0,33,64,14, +13,0,19,6,0,6,25,26,16,10, +192,22,3,4,0,63,51,26,204,50, +17,18,1,57,57,17,51,17,51,49, +48,19,52,54,51,50,22,21,20,6, +6,35,34,38,55,20,22,51,50,54, +53,52,38,35,34,6,127,181,130,130, +182,82,146,84,130,181,115,117,81,80, +115,113,82,83,115,4,147,130,182,181, +131,84,143,84,180,131,82,114,113,83, +84,113,114,0,255,255,0,104,0,1, +4,41,4,195,2,38,0,14,0,0, +0,7,2,43,0,0,253,116,0,1, +0,49,2,74,2,141,5,201,0,24, +0,35,64,17,7,19,23,1,1,14, +19,0,4,26,25,10,16,31,23,1, +32,0,63,51,63,51,17,18,1,23, +57,17,51,17,51,49,48,1,33,53, +55,62,2,53,52,38,35,34,6,7, +39,54,51,50,22,21,20,6,7,7, +33,2,141,253,164,236,89,82,33,80, +63,52,98,69,66,131,152,132,147,89, +147,174,1,184,2,74,104,230,86,97, +76,54,68,69,38,50,88,111,130,112, +80,151,138,165,0,1,0,33,2,57, +2,141,5,201,0,35,0,57,64,34, +15,5,5,0,3,18,30,10,6,36, +37,18,93,19,109,19,2,76,19,1, +11,19,27,19,2,19,19,8,26,33, +31,13,8,33,0,63,51,63,51,18, +57,47,93,93,93,51,17,18,1,23, +57,17,51,49,48,1,20,6,7,22, +21,20,6,35,34,39,53,22,51,50, +53,52,35,35,53,51,50,54,53,52, +38,35,34,6,7,39,54,54,51,50, +22,2,115,82,68,176,184,168,152,116, +147,123,211,231,117,119,103,99,80,67, +66,112,56,69,63,140,94,136,157,4, +231,80,103,23,47,162,128,143,56,123, +68,162,145,107,79,68,61,68,43,35, +90,45,54,119,0,1,1,137,4,217, +3,18,6,33,0,9,0,19,182,9, +4,10,11,4,128,9,0,47,26,205, +17,18,1,57,57,49,48,1,54,54, +55,51,21,6,6,7,35,1,137,48, +111,32,202,44,174,64,111,4,242,62, +176,65,21,65,190,52,0,1,0,176, +254,20,4,68,4,72,0,22,0,53, +64,26,5,10,10,8,16,0,19,19, +20,8,20,24,23,6,21,15,20,27, +13,2,70,89,13,22,9,21,0,63, +63,43,0,24,63,63,51,17,18,1, +57,57,17,51,17,51,51,17,51,17, +51,49,48,1,16,51,50,54,53,17, +51,17,35,39,35,6,35,34,39,35, +22,21,17,35,17,51,1,86,254,171, +159,166,136,26,10,111,229,150,88,10, +10,166,166,1,125,254,250,189,212,2, +64,251,184,147,167,92,84,160,254,192, +6,52,0,1,0,113,254,252,4,96, +6,20,0,15,0,39,64,18,4,5, +1,0,0,5,11,3,16,17,8,8, +5,3,15,5,1,5,0,47,51,63, +51,18,57,47,17,18,1,23,57,17, +51,17,51,49,48,1,35,17,35,17, +35,17,6,35,34,38,53,16,54,51, +33,4,96,114,213,115,62,84,216,203, +218,232,2,45,254,252,6,176,249,80, +3,51,18,250,251,1,4,254,0,1, +0,152,2,76,1,137,3,90,0,11, +0,23,64,10,6,0,0,13,12,3, +9,79,89,3,0,47,43,17,18,1, +57,17,51,49,48,19,52,54,51,50, +22,21,20,6,35,34,38,152,62,56, +58,65,66,57,51,67,2,211,66,69, +69,66,65,70,63,0,0,1,0,37, +254,20,1,180,0,0,0,18,0,36, +64,16,17,14,11,0,0,14,5,3, +19,20,14,17,17,8,3,16,0,47, +204,50,57,47,51,17,18,1,23,57, +17,51,17,51,49,48,1,20,6,35, +34,39,53,22,51,50,54,53,52,38, +39,55,51,7,22,1,180,153,150,51, +45,45,59,79,81,79,109,88,110,55, +180,254,223,97,106,9,106,8,40,54, +43,53,17,178,115,39,0,1,0,76, +2,74,1,225,5,182,0,10,0,32, +64,14,2,0,3,3,10,12,11,9, +9,3,32,6,0,30,0,63,50,63, +57,47,17,18,1,57,57,17,51,51, +49,48,1,51,17,35,17,52,55,6, +6,7,39,1,82,143,133,6,22,54, +135,67,5,182,252,148,2,67,91,90, +22,45,95,96,0,2,0,66,3,20, +2,190,5,199,0,11,0,23,0,37, +64,18,12,6,18,0,6,0,24,25, +15,0,3,16,3,2,3,21,9,31, +0,63,51,196,93,50,17,18,1,57, +57,17,51,17,51,49,48,1,20,6, +35,34,38,53,52,54,51,50,22,5, +20,22,51,50,54,53,52,38,35,34, +6,2,190,171,150,146,169,168,151,152, +165,253,254,91,104,105,92,92,105,103, +92,4,111,164,183,186,161,163,181,182, +162,122,122,122,122,123,118,118,0,2, +0,80,0,117,3,168,3,190,0,6, +0,13,0,35,64,17,11,9,4,2, +0,3,7,2,10,9,6,14,15,12, +5,8,1,0,47,51,47,51,17,18, +1,23,57,17,51,17,51,49,48,1, +1,39,1,1,55,1,5,1,39,1, +1,55,1,3,168,254,168,117,1,31, +254,225,117,1,88,254,117,254,168,117, +1,31,254,225,117,1,88,2,12,254, +105,71,1,95,1,94,69,254,105,27, +254,105,71,1,95,1,94,69,254,105, +255,255,0,75,0,0,5,209,5,182, +0,39,2,23,2,131,0,0,0,38, +0,123,255,0,1,7,2,60,3,29, +253,183,0,9,179,3,2,18,24,0, +63,53,53,0,255,255,0,46,0,0, +5,219,5,182,0,39,2,23,2,63, +0,0,0,38,0,123,226,0,1,7, +0,116,3,78,253,183,0,7,178,2, +16,24,0,63,53,0,255,255,0,26, +0,0,6,33,5,201,0,38,0,117, +249,0,0,39,2,23,2,223,0,0, +1,7,2,60,3,109,253,183,0,9, +179,3,2,43,24,0,63,53,53,0, +0,2,0,51,254,119,3,84,4,94, +0,29,0,40,0,65,64,34,8,20, +30,35,1,28,15,28,35,20,4,41, +42,0,29,1,12,3,29,29,17,38, +38,32,79,89,38,16,17,11,73,89, +17,35,0,63,43,0,24,63,43,17, +18,0,57,24,47,95,94,93,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,21,20,6,7,14,2,21,20, +22,51,50,54,55,23,6,35,34,38, +53,52,62,2,55,54,54,53,53,19, +20,35,34,38,53,52,54,51,50,22, +2,78,75,97,121,61,25,132,122,80, +150,98,59,197,198,190,216,35,64,89, +54,101,65,180,121,59,62,66,55,51, +70,2,172,51,122,148,84,106,75,77, +56,100,113,38,48,135,96,186,170,70, +105,89,82,47,88,116,93,31,1,43, +135,69,66,64,71,64,255,255,0,0, +0,0,5,16,7,115,2,38,0,36, +0,0,1,7,0,67,255,194,1,82, +0,8,179,2,16,5,38,0,43,53, +255,255,0,0,0,0,5,16,7,115, +2,38,0,36,0,0,1,7,0,118, +0,133,1,82,0,8,179,2,24,5, +38,0,43,53,255,255,0,0,0,0, +5,16,7,115,2,38,0,36,0,0, +1,7,1,75,0,35,1,82,0,8, +179,2,29,5,38,0,43,53,255,255, +0,0,0,0,5,16,7,47,2,38, +0,36,0,0,1,7,1,82,0,4, +1,82,0,8,179,2,24,5,38,0, +43,53,255,255,0,0,0,0,5,16, +7,37,2,38,0,36,0,0,1,7, +0,106,0,55,1,82,0,10,180,3, +2,36,5,38,0,43,53,53,255,255, +0,0,0,0,5,16,7,6,2,38, +0,36,0,0,0,7,1,80,0,57, +0,129,0,2,255,254,0,0,6,129, +5,182,0,15,0,19,0,78,64,44, +10,14,14,17,1,0,8,12,1,16, +5,5,21,5,20,9,19,6,19,73, +89,16,3,73,89,10,13,73,89,16, +10,16,10,1,6,3,5,18,1,14, +73,89,1,18,0,63,43,0,24,63, +63,18,57,57,47,47,43,43,43,17, +0,51,17,1,51,17,18,23,57,17, +51,51,17,51,49,48,33,33,17,33, +3,35,1,33,21,33,17,33,21,33, +17,33,1,33,17,35,6,129,253,18, +253,254,227,176,2,186,3,201,253,188, +2,29,253,227,2,68,251,84,1,190, +118,1,209,254,47,5,182,151,254,41, +150,253,230,1,210,2,181,0,255,255, +0,125,254,20,4,207,5,203,2,38, +0,38,0,0,0,7,0,122,2,2, +0,0,255,255,0,201,0,0,3,248, +7,115,2,38,0,40,0,0,1,7, +0,67,255,183,1,82,0,8,179,1, +13,5,38,0,43,53,255,255,0,201, +0,0,3,248,7,115,2,38,0,40, +0,0,1,7,0,118,0,63,1,82, +0,8,179,1,21,5,38,0,43,53, +255,255,0,201,0,0,3,248,7,115, +2,38,0,40,0,0,1,7,1,75, +255,251,1,82,0,8,179,1,26,5, +38,0,43,53,255,255,0,201,0,0, +3,248,7,37,2,38,0,40,0,0, +1,7,0,106,0,18,1,82,0,10, +180,2,1,33,5,38,0,43,53,53, +255,255,0,60,0,0,2,86,7,115, +2,38,0,44,0,0,1,7,0,67, +254,179,1,82,0,8,179,1,13,5, +38,0,43,53,255,255,0,84,0,0, +2,115,7,115,2,38,0,44,0,0, +1,7,0,118,255,97,1,82,0,8, +179,1,21,5,38,0,43,53,255,255, +255,255,0,0,2,161,7,115,2,38, +0,44,0,0,1,7,1,75,254,243, +1,82,0,8,179,1,26,5,38,0, +43,53,255,255,0,60,0,0,2,111, +7,37,2,38,0,44,0,0,1,7, +0,106,255,7,1,82,0,10,180,2, +1,33,5,38,0,43,53,53,0,2, +0,47,0,0,5,72,5,182,0,12, +0,23,0,87,64,50,17,21,21,8, +4,13,0,0,19,4,6,4,24,25, +20,6,7,6,73,89,17,15,7,63, +7,175,7,207,7,223,7,5,11,3, +7,7,4,9,9,16,74,89,9,3, +4,21,74,89,4,18,0,63,43,0, +24,63,43,17,18,0,57,24,47,95, +94,93,51,43,17,0,51,17,18,1, +23,57,17,51,17,51,51,17,51,49, +48,1,16,0,33,33,17,35,53,51, +17,33,32,0,3,16,33,35,17,33, +21,33,17,51,32,5,72,254,119,254, +143,254,123,154,154,1,178,1,81,1, +124,181,253,199,231,1,123,254,133,190, +2,98,2,233,254,150,254,129,2,137, +150,2,151,254,137,254,164,2,64,253, +252,150,254,10,255,255,0,201,0,0, +5,63,7,47,2,38,0,49,0,0, +1,7,1,82,0,147,1,82,0,8, +179,1,26,5,38,0,43,53,255,255, +0,125,255,236,5,190,7,115,2,38, +0,50,0,0,1,7,0,67,0,121, +1,82,0,8,179,2,25,5,38,0, +43,53,255,255,0,125,255,236,5,190, +7,115,2,38,0,50,0,0,1,7, +0,118,1,10,1,82,0,8,179,2, +33,5,38,0,43,53,255,255,0,125, +255,236,5,190,7,115,2,38,0,50, +0,0,1,7,1,75,0,180,1,82, +0,8,179,2,38,5,38,0,43,53, +255,255,0,125,255,236,5,190,7,47, +2,38,0,50,0,0,1,7,1,82, +0,154,1,82,0,8,179,2,33,5, +38,0,43,53,255,255,0,125,255,236, +5,190,7,37,2,38,0,50,0,0, +1,7,0,106,0,213,1,82,0,10, +180,3,2,45,5,38,0,43,53,53, +0,1,0,133,1,16,4,12,4,152, +0,11,0,25,64,9,7,9,3,1, +9,1,12,13,8,0,25,47,17,18, +1,57,57,17,51,17,51,49,48,1, +23,1,1,7,1,1,39,1,1,55, +1,3,172,96,254,160,1,94,96,254, +158,254,164,101,1,94,254,160,100,1, +97,4,152,99,254,158,254,160,99,1, +95,254,161,99,1,96,1,96,101,254, +157,0,0,3,0,125,255,195,5,190, +5,246,0,19,0,27,0,35,0,78, +64,44,22,31,23,30,4,28,20,28, +10,20,0,0,18,15,5,8,10,6, +36,37,22,30,33,25,13,33,73,89, +15,18,8,5,4,3,16,13,4,3, +25,73,89,6,3,19,0,63,198,43, +0,24,63,198,18,23,57,43,17,18, +0,57,57,17,18,1,23,57,17,51, +17,51,17,18,23,57,49,48,1,16, +0,33,34,39,7,39,55,38,17,16, +0,33,50,23,55,23,7,22,3,16, +39,1,22,51,50,18,1,16,23,1, +38,35,34,2,5,190,254,157,254,196, +235,148,101,120,108,178,1,96,1,68, +209,157,97,120,106,192,180,110,253,96, +115,176,243,248,252,39,101,2,157,106, +168,243,253,2,221,254,161,254,110,100, +141,79,154,198,1,109,1,101,1,137, +94,135,80,148,202,254,149,1,16,154, +252,76,82,1,50,1,42,254,250,154, +3,175,73,254,205,0,255,255,0,186, +255,236,5,25,7,115,2,38,0,56, +0,0,1,7,0,67,0,70,1,82, +0,8,179,1,19,5,38,0,43,53, +255,255,0,186,255,236,5,25,7,115, +2,38,0,56,0,0,1,7,0,118, +0,207,1,82,0,8,179,1,27,5, +38,0,43,53,255,255,0,186,255,236, +5,25,7,115,2,38,0,56,0,0, +1,7,1,75,0,125,1,82,0,8, +179,1,32,5,38,0,43,53,255,255, +0,186,255,236,5,25,7,37,2,38, +0,56,0,0,1,7,0,106,0,152, +1,82,0,10,180,2,1,39,5,38, +0,43,53,53,255,255,0,0,0,0, +4,123,7,115,2,38,0,60,0,0, +1,7,0,118,0,49,1,82,0,8, +179,1,18,5,38,0,43,53,0,2, +0,201,0,0,4,121,5,182,0,12, +0,21,0,54,64,28,13,9,5,5, +6,17,0,6,0,22,23,13,4,74, +89,9,21,74,89,13,9,13,9,6, +7,3,6,18,0,63,63,18,57,57, +47,47,43,43,17,18,1,57,57,17, +51,17,51,17,51,51,49,48,1,20, +4,33,35,17,35,17,51,17,51,32, +4,1,51,50,54,53,52,38,35,35, +4,121,254,209,254,225,184,170,170,215, +1,25,1,22,252,250,168,226,202,190, +202,204,3,16,227,238,254,193,5,182, +255,0,207,253,234,143,164,149,138,0, +0,1,0,176,255,236,4,156,6,31, +0,48,0,65,64,34,41,42,5,29, +35,0,23,12,12,0,29,17,42,5, +49,50,18,18,42,46,46,38,70,89, +46,0,42,21,15,21,70,89,15,22, +0,63,43,0,24,63,63,43,17,18, +0,57,24,47,17,18,1,23,57,17, +51,17,51,17,51,17,51,49,48,1, +20,7,6,6,21,20,22,22,23,22, +22,21,20,6,35,34,39,53,22,22, +51,50,53,52,38,39,38,38,53,52, +54,55,54,54,53,52,38,35,32,21, +17,35,17,52,54,51,50,22,4,25, +143,88,56,27,71,78,140,102,194,179, +188,107,63,156,72,215,83,110,127,96, +69,71,75,64,136,127,254,236,166,220, +222,206,225,4,242,135,115,70,67,33, +32,42,57,51,95,157,101,160,171,69, +154,39,47,182,75,107,70,82,123,84, +63,106,53,57,90,53,80,85,223,251, +76,4,178,178,187,157,255,255,0,94, +255,236,3,205,6,33,2,38,0,68, +0,0,1,6,0,67,142,0,0,8, +179,2,38,17,38,0,43,53,255,255, +0,94,255,236,3,205,6,33,2,38, +0,68,0,0,1,6,0,118,43,0, +0,8,179,2,46,17,38,0,43,53, +255,255,0,94,255,236,3,205,6,33, +2,38,0,68,0,0,1,6,1,75, +216,0,0,8,179,2,51,17,38,0, +43,53,255,255,0,94,255,236,3,205, +5,221,2,38,0,68,0,0,1,6, +1,82,189,0,0,8,179,2,46,17, +38,0,43,53,255,255,0,94,255,236, +3,205,5,211,2,38,0,68,0,0, +1,6,0,106,226,0,0,10,180,3, +2,58,17,38,0,43,53,53,255,255, +0,94,255,236,3,205,6,133,2,38, +0,68,0,0,1,6,1,80,247,0, +0,10,180,3,2,40,17,38,0,43, +53,53,0,3,0,94,255,236,6,115, +4,92,0,41,0,52,0,59,0,97, +64,51,42,0,36,17,48,56,25,25, +4,48,57,24,24,31,48,11,0,5, +60,61,27,45,39,45,70,89,25,49, +4,49,71,89,56,36,39,17,4,4, +14,34,39,22,53,8,14,8,70,89, +20,14,16,0,63,51,43,17,0,51, +24,63,51,18,57,47,57,18,57,51, +43,17,0,51,43,17,0,51,17,18, +1,23,57,17,51,17,51,51,17,51, +18,57,57,17,51,49,48,19,52,54, +55,55,53,52,38,35,34,7,39,54, +54,51,50,22,23,54,54,51,50,18, +21,21,33,18,33,50,54,55,21,6, +6,35,32,39,6,6,35,34,38,55, +20,22,51,50,54,53,53,7,6,6, +1,34,6,7,33,52,38,94,248,254, +184,116,119,144,163,52,74,199,98,130, +165,41,53,171,110,192,232,253,67,8, +1,58,91,157,84,86,149,101,254,223, +125,81,197,134,163,185,174,107,88,145, +168,158,186,164,3,189,121,139,11,2, +7,128,1,47,161,179,8,6,68,129, +123,84,127,41,53,87,95,88,96,254, +245,222,107,254,117,35,39,148,38,33, +233,127,106,170,151,95,89,169,154,99, +7,8,109,2,50,166,158,156,168,0, +255,255,0,115,254,20,3,139,4,92, +2,38,0,70,0,0,0,7,0,122, +1,70,0,0,255,255,0,115,255,236, +4,18,6,33,2,38,0,72,0,0, +1,6,0,67,181,0,0,8,179,2, +28,17,38,0,43,53,255,255,0,115, +255,236,4,18,6,33,2,38,0,72, +0,0,1,6,0,118,78,0,0,8, +179,2,36,17,38,0,43,53,255,255, +0,115,255,236,4,18,6,33,2,38, +0,72,0,0,1,6,1,75,247,0, +0,8,179,2,41,17,38,0,43,53, +255,255,0,115,255,236,4,18,5,211, +2,38,0,72,0,0,1,6,0,106, +10,0,0,10,180,3,2,48,17,38, +0,43,53,53,255,255,255,218,0,0, +1,99,6,33,2,38,0,243,0,0, +1,7,0,67,254,81,0,0,0,8, +179,1,5,17,38,0,43,53,255,255, +0,169,0,0,2,50,6,33,2,38, +0,243,0,0,1,7,0,118,255,32, +0,0,0,8,179,1,13,17,38,0, +43,53,255,255,255,179,0,0,2,85, +6,33,2,38,0,243,0,0,1,7, +1,75,254,167,0,0,0,8,179,1, +18,17,38,0,43,53,255,255,255,236, +0,0,2,31,5,211,2,38,0,243, +0,0,1,7,0,106,254,183,0,0, +0,10,180,2,1,25,17,38,0,43, +53,53,0,2,0,113,255,236,4,98, +6,33,0,27,0,38,0,74,64,43, +33,6,12,28,28,0,0,24,25,22, +14,17,19,16,6,9,39,40,9,31, +70,89,11,3,22,17,25,14,15,5, +20,9,9,3,23,20,1,3,36,70, +89,3,22,0,63,43,0,24,63,51, +18,57,47,18,23,57,18,57,43,17, +18,1,23,57,17,51,17,51,17,51, +49,48,1,16,0,35,34,0,53,52, +0,51,50,23,55,38,39,5,39,55, +38,39,55,22,23,55,23,7,22,18, +3,52,38,35,32,17,20,22,51,50, +54,4,98,254,251,247,222,254,233,1, +7,220,226,100,8,57,205,254,241,73, +233,92,94,69,156,102,238,76,207,152, +165,168,180,156,254,175,175,162,175,161, +2,51,254,231,254,210,1,13,226,230, +1,6,121,4,214,191,155,108,133,62, +49,117,73,75,138,107,119,143,254,114, +254,232,147,170,254,152,167,183,201,0, +255,255,0,176,0,0,4,68,5,221, +2,38,0,81,0,0,1,6,1,82, +14,0,0,8,179,1,30,17,38,0, +43,53,255,255,0,115,255,236,4,98, +6,33,2,38,0,82,0,0,1,6, +0,67,212,0,0,8,179,2,26,17, +38,0,43,53,255,255,0,115,255,236, +4,98,6,33,2,38,0,82,0,0, +1,6,0,118,86,0,0,8,179,2, +34,17,38,0,43,53,255,255,0,115, +255,236,4,98,6,33,2,38,0,82, +0,0,1,6,1,75,14,0,0,8, +179,2,39,17,38,0,43,53,255,255, +0,115,255,236,4,98,5,221,2,38, +0,82,0,0,1,6,1,82,241,0, +0,8,179,2,34,17,38,0,43,53, +255,255,0,115,255,236,4,98,5,211, +2,38,0,82,0,0,1,6,0,106, +27,0,0,10,180,3,2,46,17,38, +0,43,53,53,0,3,0,104,0,252, +4,41,4,168,0,3,0,15,0,27, +0,51,64,24,22,10,10,16,4,2, +4,1,3,28,29,25,19,19,1,7, +13,13,1,1,0,80,89,1,0,47, +43,17,0,51,24,47,51,17,51,47, +51,17,18,1,23,57,17,51,51,17, +51,49,48,19,53,33,21,1,52,54, +51,50,22,21,20,6,35,34,38,17, +52,54,51,50,22,21,20,6,35,34, +38,104,3,193,253,174,59,54,52,58, +59,51,52,61,59,54,52,58,59,51, +52,61,2,141,138,138,254,232,60,61, +63,58,57,64,63,2,244,60,61,63, +58,57,64,63,0,3,0,115,255,188, +4,98,4,135,0,19,0,27,0,35, +0,75,64,41,23,31,28,20,20,10, +28,0,0,18,15,5,8,10,6,36, +37,22,30,33,25,13,25,70,89,15, +18,8,5,4,3,16,13,16,3,33, +70,89,6,3,22,0,63,198,43,0, +24,63,198,18,23,57,43,17,18,0, +57,57,17,18,1,23,57,17,51,17, +51,17,18,57,57,49,48,1,16,0, +35,34,39,7,39,55,38,17,16,0, +51,50,23,55,23,7,22,5,20,23, +1,38,35,34,6,5,52,39,1,22, +51,50,54,4,98,254,242,238,154,112, +84,114,94,129,1,12,238,154,116,84, +117,97,127,252,189,53,1,209,75,114, +163,166,2,151,51,254,47,71,113,163, +169,2,37,254,244,254,211,69,117,78, +131,152,1,0,1,12,1,43,76,119, +76,133,152,249,171,102,2,134,53,214, +212,164,100,253,125,51,219,0,255,255, +0,164,255,236,4,57,6,33,2,38, +0,88,0,0,1,6,0,67,196,0, +0,8,179,1,22,17,38,0,43,53, +255,255,0,164,255,236,4,57,6,33, +2,38,0,88,0,0,1,6,0,118, +113,0,0,8,179,1,30,17,38,0, +43,53,255,255,0,164,255,236,4,57, +6,33,2,38,0,88,0,0,1,6, +1,75,18,0,0,8,179,1,35,17, +38,0,43,53,255,255,0,164,255,236, +4,57,5,211,2,38,0,88,0,0, +1,6,0,106,33,0,0,10,180,2, +1,42,17,38,0,43,53,53,255,255, +0,2,254,20,4,6,6,33,2,38, +0,92,0,0,1,6,0,118,18,0, +0,8,179,1,31,17,38,0,43,53, +0,2,0,176,254,20,4,117,6,20, +0,22,0,34,0,62,64,31,32,6, +27,20,16,16,17,6,17,36,35,18, +0,17,27,12,22,9,3,9,30,70, +89,9,22,3,23,70,89,3,16,0, +63,43,0,24,63,43,17,18,0,57, +57,24,63,63,17,18,1,57,57,17, +51,17,51,51,17,51,49,48,1,54, +54,51,50,18,17,16,2,35,34,39, +35,23,22,21,17,35,17,51,17,20, +7,37,34,6,7,21,20,22,51,32, +17,52,38,1,88,66,170,106,215,240, +241,214,222,122,12,4,8,166,166,6, +1,72,168,152,2,154,170,1,47,148, +3,180,89,79,254,212,254,245,254,244, +254,211,161,34,77,63,254,53,8,0, +254,46,52,90,27,184,201,41,231,199, +1,176,215,209,255,255,0,2,254,20, +4,6,5,211,2,38,0,92,0,0, +1,6,0,106,181,0,0,10,180,2, +1,43,17,38,0,43,53,53,255,255, +0,0,0,0,5,16,6,180,2,38, +0,36,0,0,1,7,1,77,0,63, +1,82,0,8,179,2,18,5,38,0, +43,53,255,255,0,94,255,236,3,205, +5,98,2,38,0,68,0,0,1,6, +1,77,245,0,0,8,179,2,40,17, +38,0,43,53,255,255,0,0,0,0, +5,16,7,55,2,38,0,36,0,0, +1,7,1,78,0,43,1,82,0,8, +179,2,15,5,38,0,43,53,255,255, +0,94,255,236,3,205,5,229,2,38, +0,68,0,0,1,6,1,78,228,0, +0,8,179,2,37,17,38,0,43,53, +255,255,0,0,254,66,5,17,5,188, +2,38,0,36,0,0,0,7,1,81, +3,160,0,0,255,255,0,94,254,66, +4,0,4,90,2,38,0,68,0,0, +0,7,1,81,2,143,0,0,255,255, +0,125,255,236,4,207,7,115,2,38, +0,38,0,0,1,7,0,118,1,8, +1,82,0,8,179,1,32,5,38,0, +43,53,255,255,0,115,255,236,3,139, +6,33,2,38,0,70,0,0,1,6, +0,118,68,0,0,8,179,1,32,17, +38,0,43,53,255,255,0,125,255,236, +4,207,7,115,2,38,0,38,0,0, +1,7,1,75,0,172,1,82,0,8, +179,1,37,5,38,0,43,53,255,255, +0,115,255,236,3,139,6,33,2,38, +0,70,0,0,1,6,1,75,212,0, +0,8,179,1,37,17,38,0,43,53, +255,255,0,125,255,236,4,207,7,49, +2,38,0,38,0,0,1,7,1,79, +2,27,1,82,0,8,179,1,32,5, +38,0,43,53,255,255,0,115,255,236, +3,139,5,223,2,38,0,70,0,0, +1,7,1,79,1,80,0,0,0,8, +179,1,32,17,38,0,43,53,255,255, +0,125,255,236,4,207,7,115,2,38, +0,38,0,0,1,7,1,76,0,193, +1,82,0,8,179,1,34,5,38,0, +43,53,255,255,0,115,255,236,3,161, +6,33,2,38,0,70,0,0,1,6, +1,76,243,0,0,8,179,1,34,17, +38,0,43,53,255,255,0,201,0,0, +5,88,7,115,2,38,0,39,0,0, +1,7,1,76,0,88,1,82,0,8, +179,2,29,5,38,0,43,53,255,255, +0,115,255,236,5,129,6,20,2,38, +0,71,0,0,1,7,2,56,3,12, +0,0,0,7,178,2,35,0,0,63, +53,0,255,255,0,47,0,0,5,72, +5,182,2,6,0,146,0,0,0,2, +0,115,255,236,4,211,6,20,0,26, +0,39,0,100,64,55,37,6,18,14, +0,30,30,21,25,22,25,16,6,4, +40,41,26,21,24,16,17,16,71,89, +21,15,17,31,17,47,17,3,9,3, +17,17,9,19,0,1,12,3,9,9, +34,70,89,9,16,3,27,70,89,3, +22,0,63,43,0,24,63,43,17,18, +0,57,57,24,63,18,57,47,95,94, +93,51,43,17,0,51,24,63,17,18, +1,23,57,17,51,51,17,51,51,51, +17,51,49,48,37,35,6,35,34,2, +17,16,18,51,50,23,51,38,53,53, +33,53,33,53,51,21,51,21,35,17, +35,37,50,54,53,53,52,38,35,34, +6,21,20,22,3,154,9,115,229,215, +239,240,214,223,119,13,11,254,64,1, +192,166,156,156,135,254,158,170,153,155, +170,146,155,154,147,167,1,38,1,15, +1,15,1,44,162,83,73,133,129,184, +184,129,251,37,119,185,206,35,233,199, +227,207,210,214,255,255,0,201,0,0, +3,248,6,180,2,38,0,40,0,0, +1,7,1,77,0,18,1,82,0,8, +179,1,15,5,38,0,43,53,255,255, +0,115,255,236,4,18,5,98,2,38, +0,72,0,0,1,6,1,77,10,0, +0,8,179,2,30,17,38,0,43,53, +255,255,0,201,0,0,3,248,7,55, +2,38,0,40,0,0,1,7,1,78, +0,16,1,82,0,8,179,1,12,5, +38,0,43,53,255,255,0,115,255,236, +4,18,5,229,2,38,0,72,0,0, +1,6,1,78,251,0,0,8,179,2, +27,17,38,0,43,53,255,255,0,201, +0,0,3,248,7,20,2,38,0,40, +0,0,1,7,1,79,1,111,1,53, +0,8,179,1,21,5,38,0,43,53, +255,255,0,115,255,236,4,18,5,223, +2,38,0,72,0,0,1,7,1,79, +1,84,0,0,0,8,179,2,36,17, +38,0,43,53,255,255,0,201,254,66, +3,248,5,182,2,38,0,40,0,0, +0,7,1,81,2,115,0,0,255,255, +0,115,254,97,4,18,4,92,2,38, +0,72,0,0,0,7,1,81,2,102, +0,31,255,255,0,201,0,0,3,248, +7,115,2,38,0,40,0,0,1,7, +1,76,0,16,1,82,0,8,179,1, +23,5,38,0,43,53,255,255,0,115, +255,236,4,18,6,33,2,38,0,72, +0,0,1,6,1,76,251,0,0,8, +179,2,38,17,38,0,43,53,255,255, +0,125,255,236,5,61,7,115,2,38, +0,42,0,0,1,7,1,75,0,233, +1,82,0,8,179,1,42,5,38,0, +43,53,255,255,0,39,254,20,4,49, +6,33,2,38,0,74,0,0,1,6, +1,75,202,0,0,8,179,3,80,17, +38,0,43,53,255,255,0,125,255,236, +5,61,7,55,2,38,0,42,0,0, +1,7,1,78,1,0,1,82,0,8, +179,1,28,5,38,0,43,53,255,255, +0,39,254,20,4,49,5,229,2,38, +0,74,0,0,1,6,1,78,206,0, +0,8,179,3,66,17,38,0,43,53, +255,255,0,125,255,236,5,61,7,49, +2,38,0,42,0,0,1,7,1,79, +2,100,1,82,0,8,179,1,37,5, +38,0,43,53,255,255,0,39,254,20, +4,49,5,223,2,38,0,74,0,0, +1,7,1,79,1,31,0,0,0,8, +179,3,75,17,38,0,43,53,255,255, +0,125,254,59,5,61,5,203,2,38, +0,42,0,0,0,7,2,57,1,39, +0,0,255,255,0,39,254,20,4,49, +6,33,2,38,0,74,0,0,1,6, +2,58,68,0,0,8,179,3,70,17, +38,0,43,53,255,255,0,201,0,0, +5,31,7,115,2,38,0,43,0,0, +1,7,1,75,0,150,1,82,0,8, +179,1,26,5,38,0,43,53,255,255, +0,176,0,0,4,68,7,170,2,38, +0,75,0,0,1,7,1,75,0,31, +1,137,0,8,179,1,37,2,38,0, +43,53,0,2,0,0,0,0,5,231, +5,182,0,19,0,23,0,84,64,44, +23,3,15,15,0,16,20,4,12,12, +7,11,8,11,16,18,4,24,25,23, +14,73,89,22,10,18,19,18,74,89, +7,3,19,23,19,23,19,1,12,16, +18,5,1,3,0,63,51,63,51,18, +57,57,47,47,17,51,51,43,17,0, +51,51,43,17,18,1,23,57,17,51, +51,17,51,51,17,51,51,17,51,51, +49,48,19,53,51,21,33,53,51,21, +51,21,35,17,35,17,33,17,35,17, +35,53,1,53,33,21,201,170,3,2, +170,200,200,170,252,254,170,201,4,117, +252,254,4,190,248,248,248,248,141,251, +207,2,176,253,80,4,49,141,254,138, +233,233,0,1,0,20,0,0,4,68, +6,20,0,30,0,89,64,50,22,20, +16,8,8,13,9,0,30,30,18,9, +11,4,31,32,23,22,26,4,70,89, +19,11,12,11,71,89,16,12,15,12, +31,12,47,12,3,22,26,12,12,26, +22,3,9,14,0,0,9,21,0,63, +51,63,18,23,57,47,47,47,93,17, +51,43,17,0,51,43,17,0,51,17, +18,1,23,57,17,51,17,51,51,17, +51,51,51,49,48,33,17,52,38,35, +34,6,21,17,35,17,35,53,51,53, +51,21,33,21,33,21,20,7,51,54, +54,51,50,22,21,17,3,158,122,130, +174,158,166,156,156,166,1,193,254,63, +8,10,49,181,116,201,201,2,158,134, +132,186,213,253,231,4,219,127,186,186, +127,196,84,56,79,91,191,210,253,92, +255,255,255,226,0,0,2,202,7,47, +2,38,0,44,0,0,1,7,1,82, +254,218,1,82,0,8,179,1,21,5, +38,0,43,53,255,255,255,144,0,0, +2,120,5,221,2,38,0,243,0,0, +1,7,1,82,254,136,0,0,0,8, +179,1,13,17,38,0,43,53,255,255, +0,42,0,0,2,130,6,180,2,38, +0,44,0,0,1,7,1,77,254,253, +1,82,0,8,179,1,15,5,38,0, +43,53,255,255,255,218,0,0,2,50, +5,98,2,38,0,243,0,0,1,7, +1,77,254,173,0,0,0,8,179,1, +7,17,38,0,43,53,255,255,0,30, +0,0,2,138,7,55,2,38,0,44, +0,0,1,7,1,78,254,249,1,82, +0,8,179,1,12,5,38,0,43,53, +255,255,255,204,0,0,2,56,5,229, +2,38,0,243,0,0,1,7,1,78, +254,167,0,0,0,8,179,1,4,17, +38,0,43,53,255,255,0,84,254,66, +2,86,5,182,2,38,0,44,0,0, +0,6,1,81,104,0,255,255,0,53, +254,66,1,129,5,223,2,38,0,76, +0,0,0,6,1,81,16,0,255,255, +0,84,0,0,2,86,7,49,2,38, +0,44,0,0,1,7,1,79,0,80, +1,82,0,8,179,1,21,5,38,0, +43,53,0,1,0,176,0,0,1,86, +4,72,0,3,0,22,64,9,0,1, +1,5,4,2,15,1,21,0,63,63, +17,18,1,57,17,51,49,48,33,35, +17,51,1,86,166,166,4,72,255,255, +0,84,254,127,4,16,5,182,0,38, +0,44,0,0,0,7,0,45,2,168, +0,0,255,255,0,162,254,20,3,108, +5,223,0,38,0,76,0,0,0,7, +0,77,2,6,0,0,255,255,255,96, +254,127,2,101,7,115,2,38,0,45, +0,0,1,7,1,75,254,183,1,82, +0,8,179,1,28,5,38,0,43,53, +255,255,255,145,254,20,2,79,6,33, +2,38,2,55,0,0,1,7,1,75, +254,161,0,0,0,8,179,1,27,17, +38,0,43,53,255,255,0,201,254,59, +4,233,5,182,2,38,0,46,0,0, +0,7,2,57,0,137,0,0,255,255, +0,176,254,59,4,29,6,20,2,38, +0,78,0,0,0,6,2,57,43,0, +0,1,0,176,0,0,4,27,4,70, +0,13,0,47,64,25,13,11,7,7, +8,3,1,2,5,8,5,14,15,2, +13,5,6,4,8,0,9,15,4,8, +21,0,63,51,63,51,18,23,57,17, +18,1,23,57,17,51,17,51,51,49, +48,1,51,1,1,35,1,7,17,35, +17,51,17,20,7,3,47,207,254,98, +1,187,201,254,151,135,178,178,12,4, +70,254,30,253,156,1,248,113,254,121, +4,70,254,229,166,113,255,255,0,201, +0,0,3,248,7,115,2,38,0,47, +0,0,1,7,0,118,255,99,1,82, +0,8,179,1,15,5,38,0,43,53, +255,255,0,163,0,0,2,44,7,172, +2,38,0,79,0,0,1,7,0,118, +255,26,1,139,0,8,179,1,13,2, +38,0,43,53,255,255,0,201,254,59, +3,248,5,182,2,38,0,47,0,0, +0,6,2,57,49,0,255,255,0,89, +254,59,1,87,6,20,2,38,0,79, +0,0,0,7,2,57,254,232,0,0, +255,255,0,201,0,0,3,248,5,183, +2,38,0,47,0,0,1,7,2,56, +1,29,255,163,0,7,178,1,9,3, +0,63,53,0,255,255,0,176,0,0, +2,160,6,20,2,38,0,79,0,0, +1,6,2,56,43,0,0,7,178,1, +7,0,0,63,53,0,255,255,0,201, +0,0,3,248,5,182,2,38,0,47, +0,0,0,7,1,79,2,4,253,103, +255,255,0,176,0,0,2,168,6,20, +0,38,0,79,0,0,0,7,1,79, +1,66,253,56,0,1,0,29,0,0, +3,248,5,182,0,13,0,61,64,33, +7,11,11,4,0,12,9,0,3,4, +15,14,9,7,4,10,3,1,6,8, +2,8,2,8,0,5,3,0,11,73, +89,0,18,0,63,43,0,24,63,18, +57,57,47,47,18,23,57,17,18,1, +23,57,17,51,51,17,51,49,48,51, +17,7,39,55,17,51,17,37,23,5, +17,33,21,201,105,67,172,170,1,41, +67,254,148,2,133,1,252,59,114,101, +3,30,253,70,174,121,211,254,60,154, +0,1,255,252,0,0,2,39,6,20, +0,11,0,55,64,28,0,4,4,9, +5,5,12,2,13,8,12,0,2,9, +3,8,6,6,1,7,1,7,1,5, +10,0,5,21,0,63,63,18,57,57, +47,47,18,23,57,17,1,51,17,51, +18,57,17,51,51,17,51,49,48,1, +55,23,7,17,35,17,7,39,55,17, +51,1,86,137,72,209,166,110,70,180, +166,3,96,94,112,141,253,63,2,84, +72,113,119,3,32,0,255,255,0,201, +0,0,5,63,7,115,2,38,0,49, +0,0,1,7,0,118,1,2,1,82, +0,8,179,1,26,5,38,0,43,53, +255,255,0,176,0,0,4,68,6,33, +2,38,0,81,0,0,1,6,0,118, +121,0,0,8,179,1,30,17,38,0, +43,53,255,255,0,201,254,59,5,63, +5,182,2,38,0,49,0,0,0,7, +2,57,0,205,0,0,255,255,0,176, +254,59,4,68,4,92,2,38,0,81, +0,0,0,6,2,57,86,0,255,255, +0,201,0,0,5,63,7,115,2,38, +0,49,0,0,1,7,1,76,0,166, +1,82,0,8,179,1,28,5,38,0, +43,53,255,255,0,176,0,0,4,68, +6,33,2,38,0,81,0,0,1,6, +1,76,31,0,0,8,179,1,32,17, +38,0,43,53,255,255,0,1,0,0, +4,203,5,182,0,39,0,81,0,135, +0,0,1,6,2,7,232,0,0,7, +178,1,28,3,0,63,53,0,0,1, +0,201,254,127,5,63,5,182,0,25, +0,56,64,28,16,13,13,14,8,20, +20,23,23,2,14,3,26,27,18,10, +14,21,15,3,14,18,0,5,73,89, +0,34,0,63,43,0,24,63,63,51, +18,57,57,17,18,1,23,57,17,51, +17,51,17,51,17,51,49,48,1,34, +39,53,22,51,50,54,53,1,35,18, +21,17,35,17,51,1,51,38,53,17, +51,17,20,6,3,201,98,54,71,83, +105,106,252,192,8,16,157,192,3,29, +8,14,159,193,254,127,27,145,20,122, +111,4,203,254,248,158,252,219,5,182, +251,78,149,224,3,61,250,88,195,204, +0,1,0,176,254,20,4,68,4,92, +0,29,0,56,64,30,19,15,15,16, +7,27,27,2,16,3,30,31,23,11, +70,89,23,16,19,16,17,15,16,21, +0,5,70,89,0,27,0,63,43,0, +24,63,63,18,57,63,43,17,18,1, +23,57,17,51,17,51,17,51,49,48, +1,34,39,53,22,51,50,53,17,52, +38,35,34,6,21,17,35,17,51,23, +51,54,54,51,50,22,21,17,20,6, +3,37,86,55,60,62,140,122,130,172, +160,166,135,27,10,52,180,110,203,199, +140,254,20,25,135,20,172,3,121,134, +132,186,214,253,193,4,72,150,82,88, +191,210,252,141,154,170,255,255,0,125, +255,236,5,190,6,180,2,38,0,50, +0,0,1,7,1,77,0,199,1,82, +0,8,179,2,27,5,38,0,43,53, +255,255,0,115,255,236,4,98,5,98, +2,38,0,82,0,0,1,6,1,77, +18,0,0,8,179,2,28,17,38,0, +43,53,255,255,0,125,255,236,5,190, +7,55,2,38,0,50,0,0,1,7, +1,78,0,193,1,82,0,8,179,2, +24,5,38,0,43,53,255,255,0,115, +255,236,4,98,5,229,2,38,0,82, +0,0,1,6,1,78,14,0,0,8, +179,2,25,17,38,0,43,53,255,255, +0,125,255,236,5,190,7,115,2,38, +0,50,0,0,1,7,1,83,1,20, +1,82,0,10,180,3,2,43,5,38, +0,43,53,53,255,255,0,115,255,236, +4,98,6,33,2,38,0,82,0,0, +1,6,1,83,90,0,0,10,180,3, +2,44,17,38,0,43,53,53,0,2, +0,125,255,236,6,231,5,205,0,20, +0,31,0,83,64,46,24,6,15,19, +19,29,0,13,17,29,6,5,32,33, +15,18,73,89,15,15,0,11,11,14, +73,89,11,3,9,21,73,89,9,4, +3,27,73,89,3,18,0,19,73,89, +0,18,0,63,43,0,24,63,43,0, +24,63,43,0,24,63,43,17,18,0, +57,24,47,43,17,18,1,23,57,17, +51,17,51,17,51,49,48,33,33,6, +35,32,0,17,16,0,33,50,23,33, +21,33,17,33,21,33,17,33,1,34, +0,17,16,0,51,50,55,17,38,6, +231,253,0,102,92,254,185,254,159,1, +92,1,64,102,90,3,14,253,179,2, +39,253,217,2,77,252,68,249,254,255, +1,1,247,112,87,87,20,1,137,1, +106,1,104,1,134,23,151,254,41,150, +253,230,4,157,254,207,254,217,254,215, +254,205,33,4,117,30,0,3,0,113, +255,236,7,31,4,90,0,30,0,42, +0,49,0,85,64,45,31,8,14,2, +22,22,37,47,21,21,28,37,8,4, +50,51,43,40,11,40,70,89,46,22, +70,89,2,5,14,11,46,46,5,17, +11,16,24,34,5,34,70,89,0,5, +22,0,63,51,43,17,0,51,24,63, +51,18,57,47,18,57,18,57,43,43, +17,0,51,17,18,1,23,57,17,51, +17,51,18,57,57,17,51,49,48,5, +32,39,6,6,35,34,0,17,16,0, +51,50,22,23,54,54,51,50,18,21, +21,33,18,33,50,54,55,21,6,6, +1,20,22,51,50,54,53,52,38,35, +34,6,37,34,6,7,33,52,38,5, +150,254,219,125,62,209,137,223,254,244, +1,6,235,131,205,62,58,192,126,201, +238,253,39,8,1,74,94,161,87,88, +152,251,33,152,167,163,153,155,165,166, +149,4,71,127,145,12,2,32,132,20, +235,116,119,1,49,1,8,1,9,1, +44,119,114,112,121,254,247,226,105,254, +119,35,39,148,39,32,2,57,211,219, +213,209,221,213,216,216,164,158,158,164, +255,255,0,201,0,0,4,207,7,115, +2,38,0,53,0,0,1,7,0,118, +0,121,1,82,0,8,179,2,31,5, +38,0,43,53,255,255,0,176,0,0, +3,39,6,33,2,38,0,85,0,0, +1,6,0,118,220,0,0,8,179,1, +26,17,38,0,43,53,255,255,0,201, +254,59,4,207,5,182,2,38,0,53, +0,0,0,6,2,57,125,0,255,255, +0,96,254,59,3,39,4,92,2,38, +0,85,0,0,0,7,2,57,254,239, +0,0,255,255,0,201,0,0,4,207, +7,115,2,38,0,53,0,0,1,7, +1,76,0,27,1,82,0,8,179,2, +33,5,38,0,43,53,255,255,0,130, +0,0,3,39,6,33,2,38,0,85, +0,0,1,7,1,76,255,118,0,0, +0,8,179,1,28,17,38,0,43,53, +255,255,0,106,255,236,4,2,7,115, +2,38,0,54,0,0,1,7,0,118, +0,80,1,82,0,8,179,1,46,5, +38,0,43,53,255,255,0,106,255,236, +3,115,6,33,2,38,0,86,0,0, +1,6,0,118,234,0,0,8,179,1, +46,17,38,0,43,53,255,255,0,106, +255,236,4,2,7,115,2,38,0,54, +0,0,1,7,1,75,255,234,1,82, +0,8,179,1,51,5,38,0,43,53, +255,255,0,106,255,236,3,115,6,33, +2,38,0,86,0,0,1,6,1,75, +151,0,0,8,179,1,51,17,38,0, +43,53,255,255,0,106,254,20,4,2, +5,203,2,38,0,54,0,0,0,7, +0,122,1,39,0,0,255,255,0,106, +254,20,3,115,4,92,2,38,0,86, +0,0,0,7,0,122,0,213,0,0, +255,255,0,106,255,236,4,2,7,115, +2,38,0,54,0,0,1,7,1,76, +255,228,1,82,0,8,179,1,48,5, +38,0,43,53,255,255,0,106,255,236, +3,115,6,33,2,38,0,86,0,0, +1,6,1,76,153,0,0,8,179,1, +48,17,38,0,43,53,255,255,0,18, +254,59,4,90,5,182,2,38,0,55, +0,0,0,6,2,57,25,0,255,255, +0,31,254,59,2,168,5,70,2,38, +0,87,0,0,0,6,2,57,130,0, +255,255,0,18,0,0,4,90,7,115, +2,38,0,55,0,0,1,7,1,76, +255,220,1,82,0,8,179,1,19,5, +38,0,43,53,255,255,0,31,255,236, +2,215,6,20,2,38,0,87,0,0, +1,6,2,56,98,0,0,7,178,1, +26,0,0,63,53,0,0,1,0,18, +0,0,4,90,5,182,0,15,0,63, +64,33,7,11,11,0,12,4,9,12, +14,2,5,16,17,10,14,15,14,74, +89,7,15,15,3,12,18,6,2,3, +2,73,89,3,3,0,63,43,17,0, +51,24,63,18,57,47,51,43,17,0, +51,17,18,1,23,57,17,51,51,17, +51,49,48,1,17,33,53,33,21,33, +17,33,21,33,17,35,17,33,53,1, +225,254,49,4,72,254,49,1,54,254, +202,170,254,199,3,47,1,240,151,151, +254,16,141,253,94,2,162,141,0,1, +0,31,255,236,2,168,5,70,0,28, +0,76,64,41,23,19,27,27,12,8, +2,21,25,8,10,14,6,29,30,14, +22,19,22,71,89,26,10,11,10,71, +89,23,11,11,6,17,64,19,15,6, +0,70,89,6,22,0,63,43,0,24, +63,26,205,18,57,47,51,43,17,0, +51,43,17,0,51,17,18,1,23,57, +17,51,51,17,51,51,49,48,37,50, +55,21,6,6,35,32,17,53,35,53, +51,17,35,53,55,55,51,21,33,21, +33,17,33,21,33,21,20,2,23,85, +60,32,106,42,254,200,141,141,157,157, +70,96,1,62,254,194,1,45,254,211, +117,20,127,14,16,1,92,254,129,1, +0,80,69,234,254,129,255,0,129,244, +221,0,255,255,0,186,255,236,5,25, +7,47,2,38,0,56,0,0,1,7, +1,82,0,111,1,82,0,8,179,1, +27,5,38,0,43,53,255,255,0,164, +255,236,4,57,5,221,2,38,0,88, +0,0,1,6,1,82,247,0,0,8, +179,1,30,17,38,0,43,53,255,255, +0,186,255,236,5,25,6,180,2,38, +0,56,0,0,1,7,1,77,0,145, +1,82,0,8,179,1,21,5,38,0, +43,53,255,255,0,164,255,236,4,57, +5,98,2,38,0,88,0,0,1,6, +1,77,25,0,0,8,179,1,24,17, +38,0,43,53,255,255,0,186,255,236, +5,25,7,55,2,38,0,56,0,0, +1,7,1,78,0,139,1,82,0,8, +179,1,18,5,38,0,43,53,255,255, +0,164,255,236,4,57,5,229,2,38, +0,88,0,0,1,6,1,78,18,0, +0,8,179,1,21,17,38,0,43,53, +255,255,0,186,255,236,5,25,7,215, +2,38,0,56,0,0,1,7,1,80, +0,156,1,82,0,10,180,2,1,21, +5,38,0,43,53,53,255,255,0,164, +255,236,4,57,6,133,2,38,0,88, +0,0,1,6,1,80,35,0,0,10, +180,2,1,24,17,38,0,43,53,53, +255,255,0,186,255,236,5,25,7,115, +2,38,0,56,0,0,1,7,1,83, +0,225,1,82,0,10,180,2,1,37, +5,38,0,43,53,53,255,255,0,164, +255,236,4,57,6,33,2,38,0,88, +0,0,1,6,1,83,104,0,0,10, +180,2,1,40,17,38,0,43,53,53, +255,255,0,186,254,66,5,25,5,182, +2,38,0,56,0,0,0,7,1,81, +2,33,0,0,255,255,0,164,254,66, +4,101,4,72,2,38,0,88,0,0, +0,7,1,81,2,244,0,0,255,255, +0,27,0,0,7,76,7,115,2,38, +0,58,0,0,1,7,1,75,1,84, +1,82,0,8,179,1,40,5,38,0, +43,53,255,255,0,23,0,0,6,35, +6,33,2,38,0,90,0,0,1,7, +1,75,0,193,0,0,0,8,179,1, +43,17,38,0,43,53,255,255,0,0, +0,0,4,123,7,115,2,38,0,60, +0,0,1,7,1,75,255,224,1,82, +0,8,179,1,23,5,38,0,43,53, +255,255,0,2,254,20,4,6,6,33, +2,38,0,92,0,0,1,6,1,75, +173,0,0,8,179,1,36,17,38,0, +43,53,255,255,0,0,0,0,4,123, +7,37,2,38,0,60,0,0,1,7, +0,106,255,241,1,82,0,10,180,2, +1,30,5,38,0,43,53,53,255,255, +0,82,0,0,4,63,7,115,2,38, +0,61,0,0,1,7,0,118,0,66, +1,82,0,8,179,1,19,5,38,0, +43,53,255,255,0,82,0,0,3,109, +6,33,2,38,0,93,0,0,1,6, +0,118,232,0,0,8,179,1,19,17, +38,0,43,53,255,255,0,82,0,0, +4,63,7,49,2,38,0,61,0,0, +1,7,1,79,1,68,1,82,0,8, +179,1,19,5,38,0,43,53,255,255, +0,82,0,0,3,109,5,223,2,38, +0,93,0,0,1,7,1,79,0,223, +0,0,0,8,179,1,19,17,38,0, +43,53,255,255,0,82,0,0,4,63, +7,115,2,38,0,61,0,0,1,7, +1,76,255,237,1,82,0,8,179,1, +21,5,38,0,43,53,255,255,0,82, +0,0,3,109,6,33,2,38,0,93, +0,0,1,6,1,76,134,0,0,8, +179,1,21,17,38,0,43,53,0,1, +0,176,0,0,2,219,6,31,0,12, +0,29,64,14,0,1,1,13,6,14, +4,9,70,89,4,0,1,21,0,63, +63,43,17,1,51,18,57,17,51,49, +48,33,35,17,16,33,50,23,7,38, +35,34,6,21,1,86,166,1,103,96, +100,43,87,73,97,89,4,156,1,131, +37,133,30,123,122,0,0,1,0,195, +254,20,4,23,5,203,0,32,0,68, +64,36,26,30,30,12,8,18,28,8, +10,2,5,33,34,29,10,12,10,70, +89,26,12,12,16,0,16,22,70,89, +16,4,0,5,70,89,0,27,0,63, +43,0,24,63,43,17,18,0,57,24, +47,51,43,17,0,51,17,18,1,23, +57,17,51,51,17,51,49,48,1,34, +39,53,22,51,50,54,53,17,35,53, +55,53,52,54,51,50,23,7,7,38, +35,34,6,21,21,33,21,33,17,20, +6,1,72,69,64,70,61,95,77,222, +222,162,182,85,120,22,21,102,60,98, +80,1,26,254,234,158,254,20,19,139, +18,102,113,3,205,75,60,139,195,178, +43,64,65,32,105,124,149,129,252,55, +184,175,0,4,0,0,0,0,5,20, +7,170,0,16,0,24,0,34,0,46, +0,97,64,52,17,5,4,24,6,20, +7,4,3,7,8,35,0,41,11,8, +11,9,34,20,2,0,29,3,9,48, +47,38,14,44,2,9,24,6,73,89, +9,20,14,24,34,14,24,24,14,34, +3,8,28,4,8,18,0,63,51,47, +18,23,57,47,47,47,17,18,57,57, +43,17,0,51,51,17,51,17,18,1, +23,57,17,51,17,51,17,51,17,51, +17,18,57,57,17,57,57,49,48,1, +20,7,1,35,3,33,3,35,1,38, +53,52,54,51,50,22,19,3,38,39, +6,6,7,3,19,54,54,55,51,21, +6,6,7,35,19,52,38,35,34,6, +21,20,22,51,50,54,3,104,104,2, +20,174,176,253,158,166,174,2,20,106, +122,99,100,125,27,178,25,47,14,48, +9,177,152,49,102,23,203,32,168,66, +111,211,66,51,51,66,60,57,53,64, +5,150,133,56,251,39,1,145,254,111, +4,215,52,136,101,114,117,252,54,1, +176,58,145,48,135,24,254,84,4,133, +59,149,42,16,46,161,45,254,245,57, +60,60,57,55,61,61,0,5,0,94, +255,236,3,205,7,170,0,9,0,36, +0,47,0,59,0,71,0,103,64,55, +45,18,66,54,60,48,41,21,21,11, +36,36,6,48,0,54,29,18,7,72, +73,9,9,4,63,57,69,51,17,11, +12,21,41,71,89,12,21,21,15,32, +32,25,70,89,32,16,15,37,70,89, +15,22,10,21,4,0,47,63,63,43, +0,24,63,43,17,18,0,57,24,47, +57,43,17,0,51,24,63,51,196,50, +17,57,47,17,18,1,23,57,17,51, +51,17,51,17,51,17,51,17,51,49, +48,1,53,54,54,55,33,21,6,6, +7,1,39,35,6,6,35,34,38,53, +16,37,55,53,52,38,35,34,6,7, +39,54,54,51,50,22,21,17,37,50, +54,53,53,7,6,6,21,20,22,1, +20,6,35,34,38,53,52,54,51,50, +22,7,52,38,35,34,6,21,20,22, +51,50,54,1,215,46,106,22,1,4, +21,164,128,1,2,33,8,82,163,122, +163,185,2,25,180,119,133,96,167,71, +55,84,208,101,209,201,254,14,155,177, +166,198,175,109,1,170,123,102,101,121, +121,101,101,124,109,65,51,51,66,60, +57,52,64,6,217,16,42,120,31,12, +24,105,68,249,39,156,103,73,168,155, +1,76,16,6,68,130,122,52,32,127, +43,51,174,192,253,20,117,170,153,99, +7,7,109,115,90,94,5,61,98,119, +116,99,98,115,119,94,56,61,61,56, +56,61,61,0,255,255,255,254,0,0, +6,129,7,115,2,38,0,136,0,0, +1,7,0,118,2,76,1,82,0,8, +179,2,29,5,38,0,43,53,255,255, +0,94,255,236,6,115,6,33,2,38, +0,168,0,0,1,7,0,118,1,133, +0,0,0,8,179,3,69,17,38,0, +43,53,255,255,0,125,255,195,5,190, +7,115,2,38,0,154,0,0,1,7, +0,118,1,25,1,82,0,8,179,3, +45,5,38,0,43,53,255,255,0,115, +255,188,4,98,6,33,2,38,0,186, +0,0,1,6,0,118,86,0,0,8, +179,3,45,17,38,0,43,53,255,255, +0,106,254,59,4,2,5,203,2,38, +0,54,0,0,0,6,2,57,6,0, +255,255,0,106,254,59,3,115,4,92, +2,38,0,86,0,0,0,6,2,57, +185,0,0,1,1,12,4,217,3,174, +6,33,0,14,0,24,64,9,7,0, +16,15,11,4,128,14,9,0,47,51, +26,205,50,17,18,1,57,57,49,48, +1,54,54,55,51,22,22,23,21,35, +38,39,6,7,35,1,12,127,102,23, +166,22,109,125,119,88,133,136,83,115, +4,240,136,128,41,42,133,130,23,55, +131,134,52,0,0,1,1,12,4,217, +3,174,6,33,0,14,0,24,64,9, +6,0,16,15,5,1,128,3,11,0, +47,51,26,205,50,17,18,1,57,57, +49,48,1,51,22,23,54,55,51,21, +7,6,7,35,38,38,39,1,12,115, +114,105,130,91,119,66,144,46,166,23, +102,127,6,33,74,115,130,59,25,68, +148,87,41,126,136,0,0,1,1,45, +4,217,3,133,5,98,0,3,0,17, +181,0,1,4,5,0,3,0,47,51, +17,18,1,57,57,49,48,1,33,21, +33,1,45,2,88,253,168,5,98,137, +0,1,1,37,4,217,3,145,5,229, +0,14,0,24,64,9,12,3,16,15, +11,4,128,8,0,0,47,50,26,204, +50,17,18,1,57,57,49,48,1,34, +38,39,51,30,2,51,50,54,55,51, +6,6,2,86,140,156,9,104,6,41, +73,85,101,96,10,104,10,167,4,217, +137,131,49,56,26,64,67,126,142,0, +0,1,0,162,5,2,1,102,5,223, +0,11,0,19,182,6,0,0,12,13, +3,9,0,47,205,17,18,1,57,17, +51,49,48,19,52,54,51,50,22,21, +20,6,35,34,38,162,56,42,40,58, +58,40,42,56,5,113,57,53,54,56, +56,55,55,0,0,2,1,111,4,217, +3,45,6,133,0,11,0,23,0,30, +64,12,18,6,12,0,6,0,24,25, +15,9,21,3,0,47,51,204,50,17, +18,1,57,57,17,51,17,51,49,48, +1,20,6,35,34,38,53,52,54,51, +50,22,7,52,38,35,34,6,21,20, +22,51,50,54,3,45,123,102,101,120, +121,100,101,124,108,66,51,51,66,60, +57,52,65,5,178,98,119,117,98,98, +115,119,94,56,61,61,56,56,61,61, +0,1,0,37,254,66,1,113,0,0, +0,15,0,24,64,10,0,9,4,13, +9,3,16,17,2,7,0,47,51,17, +18,1,23,57,17,51,49,48,23,20, +51,50,55,21,6,35,34,53,52,54, +55,51,6,6,178,94,42,55,65,60, +207,86,72,120,68,69,238,94,13,109, +18,188,70,135,53,66,109,0,0,1, +1,8,4,217,3,240,5,221,0,23, +0,36,64,15,9,21,24,25,17,0, +5,12,0,12,0,12,21,128,9,0, +47,26,204,57,57,47,47,17,51,17, +51,17,18,1,57,57,49,48,1,34, +46,2,35,34,6,7,35,54,54,51, +50,30,2,51,50,54,55,51,6,6, +3,20,43,82,79,73,34,50,51,14, +98,13,115,91,46,86,78,72,32,49, +48,15,99,13,113,4,219,37,45,37, +60,61,121,137,37,45,37,59,62,121, +137,0,0,2,0,231,4,217,3,182, +6,33,0,9,0,19,0,27,64,12, +14,5,19,9,4,20,21,13,4,128, +19,9,0,47,51,26,205,50,17,18, +1,23,57,49,48,19,54,54,55,51, +21,6,6,7,35,37,54,54,55,51, +21,6,6,7,35,231,36,110,31,186, +37,171,58,97,1,101,49,101,26,186, +37,171,58,96,4,242,48,186,69,21, +63,196,48,25,68,177,58,21,63,196, +48,0,0,1,1,252,4,217,3,16, +6,115,0,9,0,19,182,4,0,11, +10,4,128,9,0,47,26,205,17,18, +1,57,57,49,48,1,54,54,55,51, +21,6,6,7,35,1,252,27,53,12, +184,18,109,49,100,4,246,72,227,82, +23,74,237,76,0,3,1,27,5,14, +3,131,6,180,0,8,0,20,0,32, +0,43,64,20,15,9,21,27,27,3, +8,9,4,33,34,24,12,8,12,8, +12,3,30,18,0,47,51,204,57,57, +47,47,17,51,17,18,1,23,57,17, +51,17,51,49,48,1,54,55,51,21, +6,6,7,35,39,52,54,51,50,22, +21,20,6,35,34,38,37,52,54,51, +50,22,21,20,6,35,34,38,2,0, +65,31,189,33,121,51,80,229,52,38, +41,49,55,35,38,52,1,180,52,38, +41,49,55,35,38,52,5,133,169,134, +20,67,179,61,4,52,46,52,46,50, +49,49,50,52,46,52,46,50,49,49, +255,255,0,0,0,0,5,16,6,10, +2,38,0,36,0,0,1,7,1,84, +254,32,255,151,0,7,178,2,18,0, +0,63,53,0,255,255,0,152,2,76, +1,137,3,90,2,6,0,121,0,0, +255,255,255,212,0,0,4,117,6,10, +0,38,0,40,125,0,1,7,1,84, +253,216,255,151,0,7,178,1,16,0, +0,63,53,0,255,255,255,212,0,0, +5,181,6,10,0,39,0,43,0,150, +0,0,1,7,1,84,253,216,255,151, +0,7,178,1,16,0,0,63,53,0, +255,255,255,228,0,0,3,68,6,10, +0,39,0,44,0,238,0,0,1,7, +1,84,253,232,255,151,0,7,178,1, +16,0,0,63,53,0,255,255,255,228, +255,236,6,2,6,10,0,38,0,50, +68,0,1,7,1,84,253,232,255,151, +0,7,178,2,28,0,0,63,53,0, +255,255,255,212,0,0,5,133,6,10, +0,39,0,60,1,10,0,0,1,7, +1,84,253,216,255,151,0,7,178,1, +13,0,0,63,53,0,255,255,255,228, +0,0,6,51,6,10,0,38,1,118, +63,0,1,7,1,84,253,232,255,151, +0,7,178,1,35,0,0,63,53,0, +255,255,255,233,255,236,2,147,6,180, +2,38,1,134,0,0,1,7,1,85, +254,206,0,0,0,12,181,3,2,1, +46,17,38,0,43,53,53,53,255,255, +0,0,0,0,5,16,5,188,2,6, +0,36,0,0,255,255,0,201,0,0, +4,190,5,182,2,6,0,37,0,0, +0,1,0,201,0,0,3,248,5,182, +0,5,0,29,64,14,3,4,4,0, +6,7,5,2,73,89,5,3,4,18, +0,63,63,43,17,18,1,57,57,17, +51,49,48,1,21,33,17,35,17,3, +248,253,123,170,5,182,153,250,227,5, +182,0,255,255,0,39,0,0,4,109, +5,182,2,6,2,40,0,0,255,255, +0,201,0,0,3,248,5,182,2,6, +0,40,0,0,255,255,0,82,0,0, +4,63,5,182,2,6,0,61,0,0, +255,255,0,201,0,0,5,31,5,182, +2,6,0,43,0,0,0,3,0,125, +255,236,5,190,5,205,0,3,0,15, +0,27,0,63,64,32,2,3,16,22, +16,10,22,4,10,4,28,29,0,3, +73,89,0,0,7,13,13,25,73,89, +13,4,7,19,73,89,7,19,0,63, +43,0,24,63,43,17,18,0,57,24, +47,43,17,18,1,57,57,17,51,17, +51,17,18,57,57,49,48,1,33,21, +33,37,16,0,33,32,0,17,16,0, +33,32,0,1,16,18,51,50,18,17, +16,2,35,34,2,1,227,2,117,253, +139,3,219,254,157,254,196,254,189,254, +161,1,96,1,68,1,59,1,98,251, +115,250,244,243,248,247,242,245,251,3, +51,149,63,254,161,254,110,1,139,1, +104,1,101,1,137,254,112,254,160,254, +216,254,204,1,48,1,44,1,42,1, +46,254,206,0,255,255,0,84,0,0, +2,86,5,182,2,6,0,44,0,0, +255,255,0,201,0,0,4,233,5,182, +2,6,0,46,0,0,0,1,0,0, +0,0,4,211,5,182,0,10,0,26, +64,11,8,0,12,11,4,8,9,3, +1,8,18,0,63,51,63,18,57,17, +18,1,57,57,49,48,33,35,1,38, +39,6,7,1,35,1,51,4,211,182, +254,182,87,22,33,71,254,184,182,2, +16,177,3,160,252,90,139,201,252,94, +5,182,255,255,0,201,0,0,6,113, +5,182,2,6,0,48,0,0,255,255, +0,201,0,0,5,63,5,182,2,6, +0,49,0,0,0,3,0,72,0,0, +4,37,5,182,0,3,0,7,0,11, +0,52,64,29,10,7,3,2,6,8, +6,13,12,0,3,73,89,0,0,10, +4,10,11,73,89,10,18,4,7,73, +89,4,3,0,63,43,0,24,63,43, +17,18,0,57,24,47,43,17,18,1, +23,57,49,48,19,33,21,33,3,33, +21,33,1,21,33,53,195,2,231,253, +25,82,3,139,252,117,3,180,252,35, +3,72,150,3,4,151,251,121,152,152, +255,255,0,125,255,236,5,190,5,205, +2,6,0,50,0,0,0,1,0,201, +0,0,5,12,5,182,0,7,0,35, +64,17,1,0,4,5,0,5,9,8, +6,3,73,89,6,3,1,5,18,0, +63,51,63,43,17,18,1,57,57,17, +51,17,51,49,48,33,35,17,33,17, +35,17,33,5,12,170,253,17,170,4, +67,5,31,250,225,5,182,0,255,255, +0,201,0,0,4,104,5,182,2,6, +0,51,0,0,0,1,0,74,0,0, +4,92,5,182,0,12,0,53,64,28, +8,10,10,0,9,2,11,6,3,2, +0,5,13,14,7,8,4,8,73,89, +4,3,0,10,73,89,0,18,0,63, +43,0,24,63,43,17,0,51,17,18, +1,23,57,17,51,17,51,17,51,49, +48,51,53,1,1,53,33,21,33,39, +1,1,33,21,74,1,225,254,43,3, +203,253,92,96,1,204,254,31,3,84, +141,2,111,2,43,143,153,2,253,223, +253,154,152,0,255,255,0,18,0,0, +4,90,5,182,2,6,0,55,0,0, +255,255,0,0,0,0,4,123,5,182, +2,6,0,60,0,0,0,3,0,106, +255,236,5,248,5,203,0,25,0,34, +0,43,0,80,64,41,39,20,26,2, +13,13,43,25,14,30,7,7,14,20, +3,44,45,12,16,26,42,16,42,74, +89,34,36,24,36,74,89,2,24,16, +24,16,24,14,19,0,4,0,63,63, +57,57,47,47,17,51,43,17,0,51, +43,17,0,51,17,51,17,18,1,23, +57,17,51,17,51,51,51,17,51,51, +17,51,49,48,1,51,21,51,50,22, +22,21,20,2,4,35,35,21,35,53, +35,34,36,2,53,52,54,54,51,51, +19,51,50,54,53,52,38,43,3,34, +6,21,20,22,51,51,2,219,172,70, +171,251,133,149,254,253,176,41,172,45, +176,254,254,146,135,252,171,67,172,25, +201,223,206,185,58,172,57,182,209,222, +202,24,5,203,180,136,248,159,166,254, +253,130,225,225,132,1,4,161,158,248, +139,252,69,219,195,185,210,212,183,197, +217,0,255,255,0,8,0,0,4,150, +5,182,2,6,0,59,0,0,0,1, +0,109,0,0,5,242,5,182,0,29, +0,62,64,31,10,7,17,0,0,14, +1,21,24,24,1,7,3,30,31,29, +3,13,3,73,89,17,13,13,1,22, +15,8,3,1,18,0,63,63,51,51, +18,57,47,51,43,17,0,51,17,18, +1,23,57,17,51,17,51,51,17,51, +17,51,49,48,33,35,17,35,34,38, +38,53,17,51,17,20,22,51,51,17, +51,17,51,50,54,53,17,51,17,20, +6,4,35,35,3,131,170,45,176,255, +144,174,207,212,27,170,29,211,207,176, +144,254,253,175,45,1,190,122,247,164, +1,227,254,33,188,201,3,100,252,156, +198,187,1,227,254,31,165,247,123,0, +0,1,0,80,0,0,5,244,5,205, +0,31,0,57,64,32,3,13,29,19, +24,19,22,25,7,10,13,8,8,32, +33,16,0,73,89,16,4,26,22,6, +9,8,9,73,89,25,8,18,0,63, +51,43,17,0,51,51,51,24,63,43, +17,18,1,23,57,17,51,17,51,49, +48,1,34,2,21,20,18,23,21,33, +53,33,38,2,53,16,0,33,32,0, +17,20,2,7,33,21,33,53,54,18, +53,52,2,3,33,238,250,173,180,253, +182,1,108,151,160,1,98,1,58,1, +59,1,98,158,151,1,107,253,182,183, +169,249,5,53,254,255,253,225,254,179, +132,133,152,118,1,94,203,1,54,1, +96,254,165,254,199,207,254,166,120,152, +133,134,1,78,222,252,1,2,255,255, +0,60,0,0,2,111,7,37,2,38, +0,44,0,0,1,7,0,106,255,7, +1,82,0,10,180,2,1,33,5,38, +0,43,53,53,255,255,0,0,0,0, +4,123,7,37,2,38,0,60,0,0, +1,7,0,106,255,239,1,82,0,10, +180,2,1,30,5,38,0,43,53,53, +255,255,0,115,255,236,4,199,6,115, +2,38,1,126,0,0,1,6,1,84, +29,0,0,8,179,2,52,17,38,0, +43,53,255,255,0,90,255,236,3,135, +6,115,2,38,1,130,0,0,1,6, +1,84,200,0,0,8,179,1,47,17, +38,0,43,53,255,255,0,176,254,20, +4,68,6,115,2,38,1,132,0,0, +1,6,1,84,59,0,0,8,179,1, +30,17,38,0,43,53,255,255,0,168, +255,236,2,147,6,115,2,38,1,134, +0,0,1,7,1,84,254,196,0,0, +0,8,179,1,25,17,38,0,43,53, +255,255,0,164,255,236,4,113,6,180, +2,38,1,146,0,0,1,6,1,85, +59,0,0,12,181,3,2,1,52,17, +38,0,43,53,53,53,0,2,0,115, +255,236,4,199,4,92,0,11,0,42, +0,71,64,36,9,15,39,21,4,4, +29,34,29,15,3,43,44,24,15,39, +40,40,22,12,18,18,7,70,89,18, +16,31,0,12,0,70,89,36,12,22, +0,63,51,43,17,0,51,24,63,43, +17,18,0,57,57,17,51,24,63,17, +18,1,23,57,17,51,17,51,51,17, +51,49,48,37,50,54,53,53,52,38, +35,32,17,20,22,23,34,2,17,16, +18,51,50,22,23,51,54,55,51,6, +6,21,17,20,51,50,55,21,6,35, +34,38,39,35,6,6,2,80,169,150, +152,169,254,209,147,133,214,238,244,225, +121,161,54,12,24,41,129,21,28,84, +29,33,46,65,81,89,18,13,59,167, +119,195,218,15,229,199,254,80,212,212, +139,1,41,1,12,1,18,1,41,84, +84,92,56,66,246,116,254,73,114,10, +119,26,81,86,86,81,0,2,0,176, +254,20,4,168,6,31,0,19,0,41, +0,76,64,40,24,15,15,16,39,3, +30,8,8,3,5,34,16,5,42,43, +16,27,35,34,70,89,14,35,14,35, +11,0,11,27,70,89,11,22,0,20, +70,89,0,0,0,63,43,0,24,63, +43,17,18,0,57,57,24,47,47,43, +0,24,63,17,18,1,23,57,17,51, +17,51,17,51,17,51,49,48,1,50, +22,21,16,5,21,4,17,20,4,35, +34,38,39,17,35,17,52,54,23,34, +6,21,17,22,22,51,50,54,53,52, +38,35,35,53,51,50,54,53,52,38, +2,147,220,249,254,199,1,121,254,248, +238,109,160,79,166,253,228,158,157,93, +161,86,171,173,190,177,112,92,155,162, +156,6,31,208,183,254,218,51,8,42, +254,145,209,225,31,38,253,227,6,52, +225,246,140,172,165,252,137,49,37,150, +157,157,164,142,147,137,123,133,0,1, +0,10,254,20,4,14,4,72,0,18, +0,33,64,16,15,4,1,5,4,19, +20,10,9,9,1,14,5,15,1,27, +0,63,63,51,18,57,47,51,17,18, +1,23,57,49,48,1,35,52,18,55, +1,51,19,22,23,51,62,2,19,51, +1,6,2,2,20,180,64,43,254,63, +172,240,94,19,8,5,41,43,234,172, +254,107,48,53,254,20,96,1,38,114, +4,60,253,184,235,103,30,142,129,2, +109,251,211,124,254,220,0,2,0,113, +255,236,4,96,6,18,0,30,0,42, +0,59,64,32,37,28,16,3,31,22, +22,9,0,3,28,5,43,44,16,0, +34,3,25,6,25,40,70,89,25,22, +6,13,70,89,6,0,0,63,43,0, +24,63,43,17,18,0,23,57,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,38,38,53,52,54,51,50,22, +23,7,38,38,35,34,6,21,20,22, +23,22,22,21,20,0,35,34,36,53, +52,18,1,52,38,39,6,6,21,20, +22,51,50,54,2,33,140,116,194,164, +103,189,126,72,112,159,81,85,97,107, +167,210,177,254,240,236,227,254,240,226, +2,97,123,141,206,191,178,147,162,174, +3,168,78,159,99,130,152,45,63,135, +62,44,79,66,71,111,91,115,241,164, +235,254,248,248,210,177,1,5,254,115, +128,183,74,53,217,160,144,171,186,0, +0,1,0,90,255,236,3,135,4,92, +0,37,0,77,64,43,4,16,35,23, +29,11,1,19,23,16,6,38,39,20, +37,2,37,2,70,89,15,37,31,37, +2,11,3,37,37,13,26,26,33,70, +89,26,16,13,7,70,89,13,22,0, +63,43,0,24,63,43,17,18,0,57, +24,47,95,94,93,43,17,18,0,57, +17,18,1,23,57,17,51,17,51,49, +48,1,21,35,32,21,20,22,51,50, +54,55,21,6,35,34,38,53,52,54, +55,53,38,38,53,52,54,51,50,22, +23,7,38,38,35,34,21,20,33,2, +203,148,254,201,147,146,84,166,100,137, +221,210,241,110,130,98,107,224,192,97, +165,100,63,94,130,79,250,1,61,2, +129,141,195,90,98,39,47,148,75,169, +148,98,131,41,11,28,127,92,133,158, +33,45,133,42,28,162,172,0,0,1, +0,115,254,111,3,160,6,20,0,32, +0,48,64,24,7,25,30,19,19,14, +14,3,0,25,4,33,34,17,35,30, +3,0,1,0,70,89,1,0,0,63, +43,17,0,51,51,24,63,17,18,1, +23,57,17,51,17,51,17,51,49,48, +19,53,33,21,6,0,2,21,20,22, +22,23,22,22,21,20,7,35,54,53, +52,38,39,38,38,53,52,62,2,55, +6,33,176,2,240,215,254,224,138,59, +125,172,149,136,127,166,125,111,143,203, +188,59,112,201,242,40,254,241,5,135, +141,129,180,254,189,254,223,166,98,118, +73,37,31,109,91,149,164,161,107,56, +61,26,36,219,194,114,208,195,229,218, +8,0,0,1,0,176,254,20,4,68, +4,92,0,20,0,47,64,24,0,20, +12,8,8,9,20,9,22,21,16,4, +70,89,16,16,12,9,10,15,9,21, +0,27,0,63,63,63,18,57,63,43, +17,18,1,57,57,17,51,17,51,17, +51,49,48,1,17,52,38,35,34,6, +21,17,35,17,51,23,51,54,54,51, +50,22,21,17,3,158,122,130,172,160, +166,135,27,8,51,184,113,198,200,254, +20,4,177,134,132,186,214,253,193,4, +72,150,81,89,191,210,251,73,0,3, +0,115,255,236,4,74,6,43,0,11, +0,18,0,25,0,73,64,39,22,16, +16,6,23,15,15,0,6,0,26,27, +22,16,70,89,15,22,191,22,2,11, +3,22,22,3,9,9,19,70,89,9, +1,3,12,70,89,3,22,0,63,43, +0,24,63,43,17,18,0,57,24,47, +95,94,93,43,17,18,1,57,57,17, +51,17,51,17,51,17,51,49,48,1, +16,2,35,34,2,17,16,18,51,50, +18,1,50,18,19,33,18,18,19,34, +2,3,33,2,2,4,74,244,250,240, +249,245,244,244,250,254,18,164,156,6, +253,121,4,150,167,161,150,10,2,133, +11,152,3,12,254,106,254,118,1,147, +1,141,1,151,1,136,254,107,251,225, +1,49,1,51,254,208,254,204,5,41, +254,225,254,231,1,25,1,31,0,1, +0,168,255,236,2,147,4,72,0,15, +0,31,64,14,1,14,7,14,17,16, +15,15,11,4,70,89,11,22,0,63, +43,0,24,63,17,18,1,57,57,17, +51,49,48,1,17,20,22,51,50,54, +55,21,6,6,35,34,38,53,17,1, +78,73,87,37,101,27,31,105,50,160, +145,4,72,252,250,104,101,13,7,127, +13,17,168,169,3,11,255,255,0,176, +0,0,4,27,4,70,2,6,0,250, +0,0,0,1,255,242,255,236,4,70, +6,33,0,34,0,51,64,27,8,1, +21,3,36,0,0,35,24,19,70,89, +24,22,30,31,31,0,11,11,6,70, +89,11,1,0,21,0,63,63,43,17, +18,0,57,17,51,24,63,43,17,1, +51,17,18,23,57,49,48,35,1,39, +46,2,35,34,7,53,54,51,50,22, +22,23,1,22,22,51,50,55,21,6, +35,34,38,39,3,38,39,35,6,7, +3,14,1,217,58,30,50,67,49,58, +57,68,63,91,121,88,54,1,107,19, +42,35,27,33,48,61,74,83,29,156, +84,22,9,28,88,254,4,55,162,85, +70,36,13,133,17,60,130,152,252,12, +49,51,10,121,24,76,83,1,180,240, +96,116,209,253,182,0,255,255,0,176, +254,20,4,68,4,72,2,6,0,119, +0,0,0,1,0,0,0,0,4,2, +4,72,0,14,0,28,64,12,9,10, +10,0,16,15,5,14,21,9,0,15, +0,63,50,63,57,17,18,1,57,57, +17,51,49,48,17,51,19,22,22,23, +51,54,18,17,51,16,2,7,35,172, +219,26,83,16,8,177,159,166,207,225, +186,4,72,253,178,67,238,62,175,1, +189,1,81,254,149,254,4,225,0,1, +0,113,254,111,3,160,6,20,0,49, +0,73,64,39,4,25,45,31,29,28, +19,12,12,40,0,28,31,37,25,7, +50,51,28,48,1,48,1,71,89,48, +48,16,38,41,37,38,37,70,89,38, +0,16,35,0,63,63,43,17,0,51, +17,18,57,24,47,43,17,18,0,57, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,1,35,34,6,21, +20,30,2,23,22,22,21,20,6,7, +35,54,54,53,52,38,39,38,38,53, +52,54,55,53,38,53,52,54,55,6, +35,35,53,33,21,35,34,6,6,21, +20,22,51,51,3,86,178,176,213,50, +95,135,84,142,135,54,67,156,53,66, +115,143,200,199,158,128,217,139,166,128, +115,68,2,186,51,130,224,127,167,175, +170,2,242,178,142,80,98,61,36,18, +29,110,90,65,149,99,71,147,52,55, +61,25,34,200,176,140,210,39,12,64, +217,117,158,50,12,141,131,80,144,95, +115,108,255,255,0,115,255,236,4,98, +4,92,2,6,0,82,0,0,0,1, +0,25,255,236,4,244,4,72,0,21, +0,54,64,29,10,11,7,19,16,3, +19,11,13,5,22,23,18,9,13,15, +13,70,89,15,15,11,21,5,0,70, +89,5,22,0,63,43,0,24,63,63, +43,17,0,51,51,17,18,1,23,57, +17,51,17,51,49,48,37,50,55,21, +6,35,34,53,17,33,17,35,17,35, +53,55,33,21,35,17,20,22,4,125, +38,48,43,84,219,254,35,166,221,143, +4,76,213,51,117,18,131,24,253,2, +209,252,70,3,186,74,68,142,253,60, +74,55,0,2,0,166,254,20,4,98, +4,92,0,16,0,28,0,54,64,27, +21,9,9,10,26,0,10,0,29,30, +6,3,14,14,17,70,89,14,16,10, +27,3,23,70,89,3,22,0,63,43, +0,24,63,63,43,17,18,0,57,17, +18,1,57,57,17,51,17,51,17,51, +49,48,1,16,0,35,34,39,35,22, +21,17,35,17,16,18,51,50,18,37, +34,6,21,17,22,51,50,54,53,52, +38,4,98,255,0,233,179,120,8,8, +168,251,234,219,252,254,33,158,151,122, +183,159,152,144,2,37,254,241,254,214, +94,61,212,254,219,4,31,1,10,1, +31,254,209,162,207,209,254,174,102,208, +222,214,212,0,0,1,0,115,254,111, +3,162,4,92,0,32,0,46,64,23, +14,7,0,21,21,7,27,3,34,33, +4,18,18,24,11,24,30,70,89,24, +16,11,35,0,63,63,43,17,18,0, +57,17,51,17,18,1,23,57,17,51, +17,51,49,48,1,20,22,22,23,22, +22,21,20,6,7,35,54,54,53,52, +38,38,39,38,38,53,16,0,51,50, +22,23,7,38,35,34,6,1,31,59, +143,160,148,131,54,67,156,54,67,51, +110,97,204,195,1,20,248,79,158,54, +53,130,114,176,170,2,10,135,132,80, +34,32,107,90,66,152,95,70,148,50, +40,47,38,18,37,254,219,1,30,1, +54,33,24,141,51,218,0,2,0,115, +255,236,4,182,4,72,0,13,0,25, +0,48,64,25,20,0,14,7,7,12, +0,11,4,27,26,12,23,9,23,70, +89,9,15,4,17,70,89,4,22,0, +63,43,0,24,63,43,17,0,51,17, +18,1,23,57,17,51,17,51,49,48, +1,20,6,6,35,34,0,53,16,33, +33,21,33,22,1,20,22,51,50,54, +53,16,39,35,34,6,4,96,123,229, +154,235,254,248,2,80,1,243,254,248, +178,252,191,170,161,159,171,174,65,222, +200,1,252,157,241,130,1,32,254,2, +62,142,167,254,247,194,209,197,182,1, +14,186,208,0,0,1,0,18,255,231, +3,147,4,72,0,19,0,44,64,23, +3,15,0,9,15,17,4,20,21,2, +17,19,17,70,89,19,15,12,5,70, +89,12,22,0,63,43,0,24,63,43, +17,0,51,17,18,1,23,57,17,51, +49,48,1,21,33,17,20,51,50,54, +55,21,6,6,35,34,38,53,17,33, +53,55,3,147,254,80,205,47,98,27, +35,111,48,181,170,254,215,148,4,72, +142,253,150,223,13,7,125,15,18,170, +170,2,127,74,68,0,0,1,0,164, +255,236,4,113,4,72,0,21,0,37, +64,17,12,19,6,3,19,3,23,22, +15,4,15,0,9,70,89,0,22,0, +63,43,0,24,63,51,17,18,1,57, +57,17,51,17,51,49,48,5,34,38, +17,17,51,17,20,22,51,50,54,53, +52,38,39,51,22,22,21,16,0,2, +115,231,232,166,158,153,167,161,28,34, +166,36,28,254,254,20,250,1,10,2, +88,253,176,192,195,238,251,130,224,136, +144,214,140,254,194,254,212,0,0,2, +0,115,254,20,5,76,4,92,0,24, +0,34,0,65,64,35,10,4,32,24, +24,12,0,25,19,19,0,7,4,4, +35,36,16,28,70,89,16,16,6,15, +32,12,1,12,70,89,23,1,22,0, +27,0,63,63,51,43,17,0,51,24, +63,63,43,17,18,1,23,57,17,51, +17,51,51,17,51,17,51,49,48,1, +17,36,0,17,16,55,23,6,6,21, +16,5,17,52,54,51,50,18,21,20, +2,6,7,17,1,52,38,35,34,6, +21,17,54,54,2,131,254,252,254,244, +207,131,89,81,1,104,166,149,180,218, +136,248,165,1,121,124,102,73,78,179, +198,254,20,1,218,11,1,35,1,15, +1,40,253,90,117,224,124,254,117,35, +2,108,187,190,254,219,250,178,254,251, +144,8,254,38,4,39,185,219,120,114, +253,146,16,236,0,1,255,236,254,20, +4,80,4,78,0,32,0,57,64,33, +14,7,8,5,21,24,30,7,34,23, +33,5,24,8,21,4,6,23,27,17, +12,70,89,17,27,6,15,0,28,70, +89,0,15,0,63,43,0,24,63,63, +43,0,24,63,18,23,57,17,1,51, +18,23,57,49,48,19,50,22,22,23, +19,1,51,1,19,22,22,51,50,55, +21,6,35,34,38,39,3,1,35,1, +3,38,38,35,34,7,53,54,178,54, +78,62,44,145,1,62,180,254,84,190, +48,82,63,45,45,60,59,115,141,59, +150,254,150,178,1,208,172,38,70,43, +37,27,49,4,78,43,91,112,254,143, +2,97,252,252,254,28,122,74,8,129, +15,118,159,1,131,253,104,3,68,1, +188,99,80,11,129,17,0,1,0,164, +254,20,5,135,6,18,0,26,0,61, +64,31,22,19,1,14,14,25,15,4, +10,10,15,19,3,27,28,26,0,7, +20,15,1,25,16,25,70,89,13,16, +22,15,27,0,63,63,51,43,17,0, +51,24,63,51,63,17,18,1,23,57, +17,51,17,51,51,17,51,17,51,49, +48,1,17,54,54,53,52,38,39,51, +18,21,16,0,5,17,35,17,36,0, +17,17,51,17,20,22,23,17,3,90, +188,203,26,37,166,63,254,227,254,240, +164,254,248,254,246,166,180,184,6,18, +250,105,15,231,204,120,235,168,254,240, +244,254,236,254,206,16,254,38,1,218, +9,1,34,1,16,2,31,253,219,195, +218,13,5,153,0,1,0,115,255,236, +5,188,4,72,0,39,0,61,64,30, +10,3,38,19,19,16,25,32,32,16, +3,3,40,41,38,17,17,0,28,6, +15,22,13,0,13,70,89,35,0,22, +0,63,50,43,17,0,51,24,63,51, +18,57,47,57,17,18,1,23,57,17, +51,17,51,18,57,17,51,49,48,5, +34,2,53,52,18,55,51,6,6,21, +20,22,51,50,54,53,17,51,17,20, +22,51,50,54,53,52,2,39,51,22, +18,21,20,2,35,34,39,35,6,1, +244,182,203,55,68,172,68,57,120,107, +94,105,161,106,93,107,120,55,69,172, +65,57,203,182,220,68,9,65,20,1, +40,254,156,1,1,153,156,255,157,193, +216,143,125,1,55,254,201,128,140,216, +193,151,1,4,157,146,254,249,157,252, +254,214,182,182,255,255,0,9,255,236, +2,147,5,211,2,38,1,134,0,0, +1,7,0,106,254,212,0,0,0,10, +180,2,1,37,17,38,0,43,53,53, +255,255,0,164,255,236,4,113,5,211, +2,38,1,146,0,0,1,6,0,106, +57,0,0,10,180,2,1,43,17,38, +0,43,53,53,255,255,0,115,255,236, +4,98,6,115,2,38,0,82,0,0, +1,6,1,84,33,0,0,8,179,2, +34,17,38,0,43,53,255,255,0,164, +255,236,4,113,6,115,2,38,1,146, +0,0,1,6,1,84,39,0,0,8, +179,1,31,17,38,0,43,53,255,255, +0,115,255,236,5,188,6,115,2,38, +1,150,0,0,1,7,1,84,0,201, +0,0,0,8,179,1,49,17,38,0, +43,53,255,255,0,201,0,0,3,248, +7,37,2,38,0,40,0,0,1,7, +0,106,0,39,1,82,0,10,180,2, +1,33,5,38,0,43,53,53,0,1, +0,18,255,236,5,66,5,182,0,29, +0,70,64,38,22,14,14,15,8,27, +27,20,2,15,17,5,30,31,22,13, +73,89,22,22,15,18,21,17,18,17, +73,89,18,3,15,18,0,5,73,89, +0,19,0,63,43,0,24,63,63,43, +17,0,51,17,18,57,24,47,43,17, +18,1,23,57,17,51,17,51,17,51, +49,48,5,34,39,53,22,51,50,54, +53,53,52,38,35,33,17,35,17,33, +53,33,21,33,17,33,50,22,21,21, +20,6,3,207,96,54,55,91,101,104, +131,140,254,131,170,254,176,3,183,254, +67,1,140,205,221,196,20,22,150,19, +124,112,131,128,113,253,27,5,31,151, +151,254,94,191,178,143,190,211,255,255, +0,201,0,0,3,248,7,115,2,38, +1,97,0,0,1,7,0,118,0,90, +1,82,0,8,179,1,15,5,38,0, +43,53,0,1,0,125,255,236,4,227, +5,205,0,24,0,56,64,30,6,3, +17,22,12,5,17,4,25,26,3,6, +73,89,3,3,14,20,20,0,73,89, +20,4,14,9,73,89,14,19,0,63, +43,0,24,63,43,17,18,0,57,24, +47,43,17,18,1,23,57,17,51,51, +49,48,1,34,4,7,33,21,33,18, +0,51,50,55,21,6,35,32,0,17, +16,0,33,50,23,7,38,3,66,226, +254,243,30,2,211,253,41,10,1,11, +249,162,201,161,226,254,180,254,162,1, +121,1,78,237,178,71,169,5,51,250, +241,150,254,238,254,227,55,149,57,1, +132,1,109,1,95,1,145,88,148,82, +255,255,0,106,255,236,4,2,5,203, +2,6,0,54,0,0,255,255,0,84, +0,0,2,86,5,182,2,6,0,44, +0,0,255,255,0,60,0,0,2,111, +7,37,2,38,0,44,0,0,1,7, +0,106,255,7,1,82,0,10,180,2, +1,33,5,38,0,43,53,53,255,255, +255,96,254,127,1,104,5,182,2,6, +0,45,0,0,0,2,0,0,255,233, +7,35,5,182,0,26,0,35,0,71, +64,38,24,27,27,4,31,0,0,4, +13,3,36,37,24,35,73,89,24,24, +11,22,22,6,73,89,22,3,11,16, +74,89,11,18,4,27,74,89,4,18, +0,63,43,0,24,63,43,0,24,63, +43,17,18,0,57,24,47,43,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,20,4,33,33,17,33,2,2, +6,6,35,34,39,53,22,51,50,62, +2,18,19,33,17,51,32,1,51,50, +54,53,52,38,35,35,7,35,254,237, +254,252,254,185,254,147,57,84,80,139, +107,69,64,50,63,48,65,43,55,68, +65,2,166,122,2,58,253,76,133,198, +183,192,220,102,1,170,206,220,5,31, +254,72,253,246,251,121,25,143,26,62, +103,250,1,190,1,226,253,144,253,77, +139,140,138,124,0,2,0,201,0,0, +7,84,5,182,0,17,0,26,0,74, +64,38,11,7,7,8,15,18,18,12, +4,22,0,0,4,8,3,27,28,26, +6,11,6,73,89,15,11,11,4,13, +9,3,8,18,4,18,74,89,4,18, +0,63,43,0,24,63,63,51,18,57, +47,51,43,17,0,51,17,18,1,23, +57,17,51,17,51,51,17,51,17,51, +17,51,49,48,1,20,4,33,33,17, +33,17,35,17,51,17,33,17,51,17, +51,32,1,51,50,54,53,52,38,35, +35,7,84,254,240,254,251,254,183,253, +125,170,170,2,131,172,121,2,57,253, +78,133,196,185,193,219,102,1,170,206, +220,2,176,253,80,5,182,253,146,2, +110,253,144,253,77,139,140,137,125,0, +0,1,0,18,0,0,5,66,5,182, +0,19,0,58,64,31,0,12,12,13, +6,5,5,18,13,15,4,20,21,19, +15,16,15,73,89,0,11,73,89,0, +0,13,16,3,6,13,18,0,63,51, +63,18,57,47,43,43,17,0,51,17, +18,1,23,57,17,51,17,51,17,51, +49,48,1,33,50,22,21,17,35,17, +52,38,35,33,17,35,17,33,53,33, +21,33,2,12,1,144,205,217,170,125, +140,254,125,170,254,176,3,246,254,4, +3,125,188,181,253,244,1,246,126,113, +253,27,5,31,151,151,255,255,0,201, +0,0,4,229,7,115,2,38,1,180, +0,0,1,7,0,118,0,162,1,82, +0,8,179,1,20,5,38,0,43,53, +255,255,0,27,255,236,4,248,7,94, +2,38,1,189,0,0,1,7,2,54, +0,68,1,82,0,8,179,1,23,5, +38,0,43,53,0,1,0,201,254,131, +5,12,5,182,0,11,0,48,64,24, +8,5,2,3,9,0,0,3,5,3, +12,13,10,6,3,5,8,73,89,1, +5,18,3,34,0,63,63,51,43,0, +24,63,51,17,18,1,23,57,17,51, +17,51,17,51,49,48,33,33,17,35, +17,33,17,51,17,33,17,51,5,12, +254,47,176,254,62,170,2,239,170,254, +131,1,125,5,182,250,228,5,28,0, +255,255,0,0,0,0,5,16,5,188, +2,6,0,36,0,0,0,2,0,201, +0,0,4,125,5,182,0,13,0,22, +0,61,64,32,18,0,9,14,14,4, +4,7,0,3,24,23,9,22,73,89, +9,9,4,5,5,8,73,89,5,3, +4,14,74,89,4,18,0,63,43,0, +24,63,43,17,18,0,57,24,47,43, +17,18,1,23,57,17,51,17,51,17, +51,49,48,1,20,4,33,33,17,33, +21,33,17,51,50,22,22,1,51,50, +54,53,52,38,35,35,4,125,254,253, +254,251,254,84,3,94,253,76,227,193, +242,116,252,246,239,190,173,176,219,207, +1,170,218,208,5,182,151,254,39,89, +174,254,84,130,149,142,120,0,255,255, +0,201,0,0,4,190,5,182,2,6, +0,37,0,0,255,255,0,201,0,0, +3,248,5,182,2,6,1,97,0,0, +0,2,0,14,254,131,5,74,5,182, +0,13,0,19,0,67,64,36,4,5, +19,7,16,10,14,12,1,0,0,12, +10,7,5,5,20,21,10,16,73,89, +10,3,1,5,34,19,12,6,3,6, +73,89,3,18,0,63,43,17,0,51, +51,24,63,51,63,43,17,18,1,23, +57,17,51,17,51,17,51,17,51,17, +51,49,48,1,35,17,33,17,35,17, +51,18,18,19,33,17,51,33,17,33, +6,2,7,5,74,162,252,8,162,113, +154,219,12,2,145,185,254,157,254,179, +18,206,137,254,131,1,125,254,131,2, +23,1,3,2,230,1,51,250,228,4, +131,242,253,89,234,0,255,255,0,201, +0,0,3,248,5,182,2,6,0,40, +0,0,0,1,0,2,0,0,6,188, +5,182,0,17,0,60,64,31,6,13, +13,3,14,10,9,8,1,14,0,17, +7,18,19,15,12,9,6,3,0,0, +1,14,11,17,18,7,4,1,3,0, +63,51,51,63,51,51,18,57,17,51, +51,51,51,51,17,18,1,23,57,17, +51,51,17,51,49,48,1,1,51,1, +17,51,17,1,51,1,1,35,1,17, +35,17,1,35,2,86,253,193,190,2, +57,164,2,58,190,253,192,2,82,196, +253,186,164,253,187,199,2,240,2,198, +253,60,2,196,253,60,2,196,253,60, +253,14,2,229,253,27,2,229,253,27, +0,1,0,74,255,236,4,53,5,203, +0,40,0,67,64,36,28,0,19,7, +7,0,3,23,35,12,6,41,42,3, +24,23,24,23,74,89,24,24,10,38, +38,31,74,89,38,4,10,16,74,89, +10,19,0,63,43,0,24,63,43,17, +18,0,57,24,47,43,17,18,0,57, +17,18,1,23,57,17,51,17,51,49, +48,1,20,6,7,21,22,22,21,20, +4,33,34,39,53,22,22,51,50,54, +53,52,38,35,35,53,51,50,54,53, +52,38,35,34,6,7,39,54,54,51, +50,22,4,25,183,161,183,189,254,206, +254,233,255,163,96,223,103,198,203,225, +223,218,209,205,225,162,137,110,178,117, +84,101,251,135,225,255,4,96,144,180, +24,8,25,180,145,205,229,79,158,46, +50,150,141,134,138,143,147,132,107,128, +50,74,114,75,77,197,0,1,0,203, +0,0,5,82,5,182,0,15,0,52, +64,24,14,2,2,15,6,9,9,8, +15,8,16,17,5,4,12,13,4,13, +9,15,18,6,0,3,0,63,50,63, +51,57,57,17,51,17,51,17,18,1, +57,57,17,51,17,51,17,51,17,51, +49,48,19,51,17,20,7,51,1,51, +17,35,17,52,55,35,1,35,203,159, +14,8,3,52,186,160,17,9,252,203, +186,5,182,252,211,225,182,4,196,250, +74,3,37,201,221,251,53,0,255,255, +0,203,0,0,5,82,7,94,2,38, +1,178,0,0,1,7,2,54,0,225, +1,82,0,8,179,1,16,5,38,0, +43,53,0,1,0,201,0,0,4,229, +5,182,0,10,0,45,64,22,7,3, +3,4,0,9,10,4,4,11,12,10, +7,2,7,4,8,5,3,1,4,18, +0,63,51,63,51,18,57,57,17,51, +17,18,1,23,57,17,51,17,51,49, +48,33,35,1,17,35,17,51,17,1, +51,1,4,229,206,253,92,170,170,2, +147,195,253,121,2,229,253,27,5,182, +253,60,2,196,253,58,0,1,0,0, +255,231,4,217,5,182,0,19,0,45, +64,24,3,18,1,0,0,18,10,3, +20,21,18,3,73,89,18,3,8,13, +74,89,8,19,1,18,0,63,63,43, +0,24,63,43,17,18,1,23,57,17, +51,17,51,49,48,33,35,17,33,7, +2,2,6,39,34,39,53,22,51,50, +54,54,18,19,33,4,217,170,254,37, +31,61,93,152,126,74,59,54,59,53, +79,61,93,56,3,18,5,31,240,254, +33,254,69,174,2,25,143,26,87,215, +2,89,1,184,255,255,0,201,0,0, +6,113,5,182,2,6,0,48,0,0, +255,255,0,201,0,0,5,31,5,182, +2,6,0,43,0,0,255,255,0,125, +255,236,5,190,5,205,2,6,0,50, +0,0,255,255,0,201,0,0,5,12, +5,182,2,6,1,110,0,0,255,255, +0,201,0,0,4,104,5,182,2,6, +0,51,0,0,255,255,0,125,255,236, +4,207,5,203,2,6,0,38,0,0, +255,255,0,18,0,0,4,90,5,182, +2,6,0,55,0,0,0,1,0,27, +255,236,4,248,5,182,0,22,0,42, +64,21,18,8,2,9,4,23,24,14, +13,8,13,0,17,9,3,0,5,73, +89,0,19,0,63,43,0,24,63,51, +18,57,57,17,51,17,18,1,23,57, +49,48,5,34,39,53,22,51,50,54, +55,1,51,1,22,23,51,54,55,1, +51,1,14,2,1,37,111,84,93,96, +110,133,66,253,199,188,1,176,25,14, +8,28,11,1,103,180,254,45,84,135, +169,20,30,166,43,101,139,4,65,252, +193,49,47,84,22,3,53,251,234,187, +170,79,255,255,0,106,255,236,5,248, +5,203,2,6,1,115,0,0,255,255, +0,8,0,0,4,150,5,182,2,6, +0,59,0,0,0,1,0,201,254,131, +5,184,5,182,0,11,0,50,64,25, +8,5,9,0,3,2,2,0,5,3, +12,13,10,6,3,0,8,5,8,73, +89,5,18,3,34,0,63,63,43,17, +0,51,24,63,51,17,18,1,23,57, +17,51,17,51,17,51,49,48,37,51, +17,35,17,33,17,51,17,33,17,51, +5,12,172,161,251,178,170,2,239,170, +154,253,233,1,125,5,182,250,228,5, +28,0,0,1,0,170,0,0,4,199, +5,182,0,19,0,45,64,22,11,8, +17,1,1,0,8,0,20,21,5,14, +73,89,5,5,1,18,9,3,1,18, +0,63,63,51,18,57,47,43,17,18, +1,57,57,17,51,17,51,17,51,49, +48,33,35,17,6,6,35,34,38,53, +17,51,17,20,22,51,50,54,55,17, +51,4,199,170,149,198,106,207,223,170, +127,143,97,177,169,170,2,92,53,39, +190,179,2,69,253,207,121,116,29,55, +2,202,0,1,0,201,0,0,7,121, +5,182,0,11,0,49,64,24,4,1, +8,5,9,0,0,5,1,3,12,13, +10,6,2,3,8,4,1,4,73,89, +1,18,0,63,43,17,0,51,24,63, +51,51,17,18,1,23,57,17,51,17, +51,17,51,49,48,33,33,17,51,17, +33,17,51,17,33,17,51,7,121,249, +80,170,2,88,170,2,88,172,5,182, +250,228,5,28,250,228,5,28,0,1, +0,201,254,131,8,4,5,182,0,15, +0,59,64,30,3,0,7,4,8,11, +14,13,13,11,4,0,4,16,17,14, +34,9,5,1,3,11,7,3,0,3, +73,89,0,18,0,63,43,17,0,51, +51,24,63,51,51,63,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,51,17,51,17,33,17,51,17,33, +17,51,17,51,17,35,17,201,170,2, +71,172,2,72,170,172,162,5,182,250, +228,5,28,250,228,5,28,250,228,253, +233,1,125,0,0,2,0,18,0,0, +5,23,5,182,0,12,0,21,0,61, +64,32,9,13,13,4,17,0,0,4, +6,3,22,23,9,21,73,89,9,9, +4,7,7,6,73,89,7,3,4,13, +74,89,4,18,0,63,43,0,24,63, +43,17,18,0,57,24,47,43,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,20,4,35,33,17,33,53,33, +17,51,32,4,1,51,50,54,53,52, +38,35,35,5,23,254,253,249,254,71, +254,176,1,250,244,1,5,1,18,252, +245,252,181,169,175,203,224,1,170,206, +220,5,31,151,253,144,205,254,26,139, +140,136,126,0,0,3,0,201,0,0, +6,10,5,182,0,10,0,19,0,23, +0,63,64,32,3,11,11,0,15,7, +21,20,20,7,0,3,24,25,21,18, +3,19,73,89,3,3,0,22,1,3, +0,11,74,89,0,18,0,63,43,0, +24,63,51,18,57,47,43,0,24,63, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,51,17,51,17,51, +32,4,21,20,4,35,37,51,50,54, +53,52,38,35,35,1,35,17,51,201, +170,239,1,5,1,18,254,253,249,254, +246,247,181,170,179,200,219,4,151,170, +170,5,182,253,144,205,207,206,220,145, +141,140,137,123,253,82,5,182,0,2, +0,201,0,0,4,186,5,182,0,10, +0,18,0,50,64,25,7,11,11,4, +14,0,4,0,19,20,7,18,73,89, +7,7,4,5,3,4,11,74,89,4, +18,0,63,43,0,24,63,18,57,47, +43,17,18,1,57,57,17,51,17,51, +17,51,49,48,1,20,4,35,33,17, +51,17,33,32,4,1,33,32,17,52, +38,35,33,4,186,254,241,251,254,25, +170,1,35,1,11,1,25,252,185,1, +43,1,108,187,206,254,242,1,170,203, +223,5,182,253,144,211,254,32,1,23, +135,127,0,1,0,61,255,236,4,137, +5,203,0,26,0,58,64,31,24,21, +21,9,9,22,15,3,4,27,28,23, +22,73,89,23,23,12,5,12,18,73, +89,12,19,5,0,73,89,5,4,0, +63,43,0,24,63,43,17,18,0,57, +24,47,43,17,18,1,23,57,17,51, +17,51,49,48,1,34,7,39,54,51, +50,4,18,21,16,0,33,34,39,53, +22,22,51,32,0,19,33,53,33,38, +0,1,211,172,162,72,172,236,217,1, +57,162,254,148,254,170,227,156,83,172, +99,1,15,1,20,8,253,49,2,205, +22,254,241,5,51,76,144,84,176,254, +186,221,254,136,254,108,57,149,21,34, +1,33,1,16,152,229,1,2,0,2, +0,201,255,236,7,231,5,205,0,18, +0,30,0,71,64,38,12,8,8,9, +19,13,6,25,0,0,6,9,3,31, +32,16,28,73,89,16,4,12,7,73, +89,12,12,9,10,3,9,18,3,22, +73,89,3,19,0,63,43,0,24,63, +63,18,57,47,43,0,24,63,43,17, +18,1,23,57,17,51,17,51,51,17, +51,17,51,49,48,1,16,0,33,32, +0,3,33,17,35,17,51,17,33,18, +0,33,32,0,1,16,18,51,50,18, +17,16,2,35,34,2,7,231,254,171, +254,208,254,211,254,171,11,254,158,170, +170,1,100,23,1,81,1,31,1,51, +1,86,251,160,238,231,234,237,235,232, +233,240,2,221,254,158,254,113,1,111, +1,85,253,80,5,182,253,146,1,55, +1,78,254,111,254,161,254,216,254,204, +1,50,1,42,1,42,1,46,254,207, +0,2,0,51,0,0,4,78,5,182, +0,13,0,21,0,61,64,32,21,12, +12,11,18,6,2,6,3,11,4,23, +22,0,20,74,89,3,9,0,0,2, +9,9,15,74,89,9,3,12,2,18, +0,63,51,63,43,17,18,0,57,24, +47,18,57,43,17,18,1,23,57,17, +51,17,51,17,51,49,48,1,1,35, +1,38,38,53,52,36,33,33,17,35, +17,17,35,34,6,21,16,33,51,2, +123,254,129,201,1,154,161,146,1,15, +1,19,1,146,170,227,183,190,1,123, +221,2,98,253,158,2,127,51,207,158, +196,211,250,74,2,98,2,193,126,142, +254,221,255,255,0,94,255,236,3,205, +4,90,2,6,0,68,0,0,0,2, +0,119,255,236,4,84,6,33,0,23, +0,34,0,59,64,30,26,18,32,11, +0,0,6,18,3,36,35,12,11,15, +28,70,89,11,15,15,21,5,21,24, +70,89,21,22,5,1,0,63,63,43, +17,18,0,57,24,47,57,43,17,0, +51,17,18,1,23,57,17,51,51,17, +51,49,48,19,16,18,55,36,55,23, +4,7,6,6,7,51,54,54,51,50, +18,21,16,0,35,34,0,5,32,17, +16,33,34,6,6,7,16,18,119,212, +230,1,30,218,31,254,165,149,145,145, +7,12,62,196,107,202,226,254,250,234, +231,254,250,1,252,1,49,254,235,76, +141,117,32,166,2,145,1,104,1,147, +50,61,38,146,58,34,33,246,212,84, +96,254,250,232,254,255,254,223,1,98, +215,1,133,1,115,63,104,55,254,249, +254,237,0,3,0,176,0,0,4,76, +4,72,0,14,0,22,0,31,0,73, +64,38,28,20,20,11,23,0,15,7, +7,0,3,11,4,32,33,4,28,19, +28,19,70,89,28,28,11,12,12,27, +70,89,12,15,11,20,70,89,11,21, +0,63,43,0,24,63,43,17,18,0, +57,24,47,43,17,18,0,57,17,18, +1,23,57,17,51,17,51,17,51,17, +51,49,48,1,20,6,7,21,22,22, +21,20,6,35,33,17,33,32,3,52, +38,35,33,17,33,32,3,52,38,35, +33,17,33,50,54,4,41,123,111,140, +129,225,216,254,29,1,225,1,152,131, +135,156,254,211,1,49,1,31,31,123, +125,254,199,1,25,154,126,3,53,107, +111,19,9,19,126,111,153,166,4,72, +253,2,89,81,254,151,2,154,80,67, +254,203,76,0,0,1,0,176,0,0, +3,68,4,72,0,5,0,29,64,14, +2,3,0,3,7,6,4,1,70,89, +4,15,3,21,0,63,63,43,17,18, +1,57,57,17,51,49,48,1,33,17, +35,17,33,3,68,254,18,166,2,148, +3,186,252,70,4,72,0,2,0,41, +254,133,4,104,4,72,0,13,0,19, +0,67,64,36,4,5,19,7,16,10, +14,12,1,0,0,12,10,7,5,5, +20,21,10,16,71,89,10,15,1,5, +34,19,12,6,3,6,70,89,3,21, +0,63,43,17,0,51,51,24,63,51, +63,43,17,18,1,23,57,17,51,17, +51,17,51,17,51,17,51,49,48,1, +35,17,33,17,35,17,51,54,18,19, +33,17,51,33,17,35,6,2,7,4, +104,161,253,2,160,86,134,152,3,2, +43,157,254,195,246,13,145,108,254,133, +1,123,254,133,2,10,182,1,234,1, +25,252,71,3,54,222,254,57,145,0, +255,255,0,115,255,236,4,18,4,92, +2,6,0,72,0,0,0,1,0,4, +0,0,5,223,4,70,0,17,0,60, +64,31,2,9,9,17,10,6,4,5, +10,14,15,13,7,19,18,17,11,8, +5,2,14,14,13,3,0,15,15,10, +7,13,21,0,63,51,51,63,51,51, +18,57,17,51,51,51,51,51,17,18, +1,23,57,17,51,51,17,51,49,48, +1,51,17,1,51,1,1,35,1,17, +35,17,1,35,1,1,51,1,2,164, +153,1,197,182,254,54,1,241,192,254, +30,153,254,31,191,1,240,254,55,182, +1,195,4,70,253,237,2,19,253,237, +253,205,2,43,253,213,2,43,253,213, +2,51,2,19,253,237,0,1,0,68, +255,236,3,127,4,92,0,34,0,77, +64,43,2,13,30,19,19,13,15,33, +8,24,6,35,36,16,34,33,34,33, +70,89,15,34,31,34,2,11,3,34, +34,22,10,22,27,70,89,22,22,10, +4,70,89,10,16,0,63,43,0,24, +63,43,17,18,0,57,24,47,95,94, +93,43,17,18,0,57,17,18,1,23, +57,17,51,17,51,49,48,1,32,53, +52,35,34,6,7,39,54,51,50,22, +21,20,7,21,22,22,21,20,6,35, +34,39,53,22,51,50,54,53,52,33, +35,53,1,129,1,55,252,77,126,102, +59,170,201,189,218,205,126,116,245,216, +237,129,183,187,144,147,254,201,152,2, +129,172,162,28,42,135,76,155,134,184, +57,8,37,137,103,152,169,71,152,86, +99,93,191,141,0,1,0,176,0,0, +4,98,4,72,0,13,0,52,64,25, +8,4,7,7,6,11,3,3,12,6, +12,15,14,3,10,12,4,13,15,12, +21,7,21,4,15,0,63,63,63,63, +17,18,57,57,17,18,1,57,57,17, +51,17,51,17,51,17,51,51,49,48, +1,17,7,7,1,51,17,35,17,55, +55,1,35,17,1,76,7,3,2,81, +207,155,3,5,253,176,207,4,72,253, +73,182,57,3,166,251,184,2,158,132, +130,252,92,4,72,0,255,255,0,176, +0,0,4,98,6,12,2,38,1,210, +0,0,1,6,2,54,61,0,0,8, +179,1,14,17,38,0,43,53,0,1, +0,176,0,0,4,12,4,72,0,10, +0,45,64,22,10,6,6,7,3,1, +2,7,4,12,11,2,10,5,10,7, +0,8,15,4,7,21,0,63,51,63, +51,18,57,57,17,51,17,18,1,23, +57,17,51,17,51,49,48,1,51,1, +1,35,1,17,35,17,51,17,3,47, +182,254,39,2,0,194,254,12,166,166, +4,72,253,239,253,201,2,43,253,213, +4,72,253,235,0,1,0,16,255,242, +3,225,4,72,0,16,0,45,64,24, +1,0,3,15,10,15,0,3,18,17, +15,3,70,89,15,15,7,12,71,89, +7,22,1,21,0,63,63,43,0,24, +63,43,17,18,1,23,57,17,51,17, +51,49,48,33,35,17,33,2,2,6, +35,34,39,53,22,51,50,18,19,33, +3,225,168,254,183,27,96,153,118,54, +32,22,28,115,136,35,2,129,3,186, +254,156,254,94,194,12,123,6,1,230, +1,239,0,1,0,176,0,0,5,47, +4,70,0,20,0,53,64,25,3,6, +6,5,18,15,15,16,5,16,22,21, +7,14,0,14,11,3,17,15,6,16, +21,11,21,0,63,63,51,63,51,18, +57,57,17,51,17,18,1,57,57,17, +51,17,51,17,51,17,51,49,48,37, +55,55,1,51,17,35,17,7,7,1, +35,1,38,39,17,35,17,51,1,22, +2,233,31,43,1,41,211,147,20,58, +254,229,139,254,229,53,20,148,203,1, +31,43,160,93,118,2,211,251,186,3, +137,58,153,253,74,2,184,134,75,252, +119,4,70,253,73,110,0,1,0,176, +0,0,4,98,4,72,0,11,0,57, +64,30,2,6,6,5,1,9,9,10, +5,10,13,12,1,8,70,89,47,1, +63,1,2,1,1,10,3,11,15,6, +10,21,0,63,51,63,51,18,57,47, +93,43,17,18,1,57,57,17,51,17, +51,17,51,17,51,49,48,1,17,33, +17,51,17,35,17,33,17,35,17,1, +86,2,102,166,166,253,154,166,4,72, +254,53,1,203,251,184,1,238,254,18, +4,72,255,255,0,115,255,236,4,98, +4,92,2,6,0,82,0,0,0,1, +0,176,0,0,4,72,4,72,0,7, +0,35,64,17,0,1,5,4,1,4, +8,9,2,7,70,89,2,15,5,1, +21,0,63,51,63,43,17,18,1,57, +57,17,51,17,51,49,48,33,35,17, +33,17,35,17,33,1,86,166,3,152, +168,253,182,4,72,251,184,3,184,0, +255,255,0,176,254,20,4,117,4,92, +2,6,0,83,0,0,255,255,0,115, +255,236,3,139,4,92,2,6,0,70, +0,0,0,1,0,41,0,0,3,147, +4,72,0,7,0,36,64,18,2,3, +0,3,5,3,8,9,1,5,6,5, +70,89,6,15,3,21,0,63,63,43, +17,0,51,17,18,1,23,57,17,51, +49,48,1,33,17,35,17,33,53,33, +3,147,254,156,166,254,160,3,106,3, +186,252,70,3,186,142,255,255,0,2, +254,20,4,6,4,72,2,6,0,92, +0,0,0,3,0,113,254,20,5,70, +6,20,0,17,0,24,0,30,0,76, +64,39,18,9,28,15,4,4,21,12, +5,25,0,0,5,9,3,31,32,13, +0,27,22,12,22,70,89,15,12,16, +28,21,6,21,70,89,3,6,22,5, +27,0,63,63,51,43,17,0,51,24, +63,51,43,17,0,51,24,63,17,18, +1,23,57,17,51,17,51,51,51,17, +51,51,17,51,49,48,1,20,0,7, +17,35,17,38,0,53,52,0,55,17, +51,17,22,0,5,20,22,23,17,6, +6,5,16,37,17,54,54,5,70,254, +229,254,164,248,254,224,1,31,255,158, +251,1,30,251,217,176,192,185,183,3, +123,254,147,190,175,2,37,249,254,217, +21,254,36,1,220,19,1,46,244,249, +1,38,20,1,188,254,68,23,254,212, +240,192,218,18,3,84,17,207,200,1, +127,39,252,174,19,218,255,255,0,39, +0,0,4,8,4,72,2,6,0,91, +0,0,0,1,0,176,254,133,4,221, +4,72,0,11,0,50,64,25,6,3, +7,10,1,0,0,10,3,3,12,13, +8,4,15,10,6,3,6,70,89,3, +21,1,34,0,63,63,43,17,0,51, +24,63,51,17,18,1,23,57,17,51, +17,51,17,51,49,48,1,35,17,33, +17,51,17,33,17,51,17,51,4,221, +166,252,121,166,2,70,166,155,254,133, +1,123,4,72,252,71,3,185,252,71, +0,1,0,156,0,0,4,45,4,72, +0,18,0,45,64,22,6,10,10,9, +1,17,9,17,20,19,3,14,70,89, +3,3,10,7,18,15,10,21,0,63, +63,51,18,57,47,43,17,18,1,57, +57,17,51,17,51,17,51,49,48,1, +17,20,51,50,54,55,17,51,17,35, +17,6,6,35,34,38,53,17,1,66, +219,91,166,105,166,166,105,179,113,164, +186,4,72,254,112,192,56,67,1,213, +251,184,1,240,72,59,172,147,1,156, +0,1,0,176,0,0,6,111,4,72, +0,11,0,49,64,24,8,5,0,9, +1,4,4,9,5,3,12,13,10,2, +6,15,0,8,5,8,70,89,5,21, +0,63,43,17,0,51,24,63,51,51, +17,18,1,23,57,17,51,17,51,17, +51,49,48,37,33,17,51,17,33,17, +51,17,33,17,51,3,225,1,230,168, +250,65,166,1,229,166,143,3,185,251, +184,4,72,252,71,3,185,0,0,1, +0,176,254,135,7,10,4,70,0,15, +0,59,64,30,12,9,0,13,1,4, +7,6,6,4,13,9,4,16,17,14, +2,10,15,4,0,12,9,12,70,89, +9,21,7,34,0,63,63,43,17,0, +51,51,24,63,51,51,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,37,33,17,51,17,51,17,35,17, +33,17,51,17,33,17,51,3,225,1, +230,166,157,168,250,78,166,1,229,166, +143,3,183,252,73,253,248,1,121,4, +70,252,73,3,183,0,0,2,0,41, +0,0,5,29,4,72,0,12,0,20, +0,61,64,32,0,18,18,8,13,4, +4,8,10,3,21,22,0,17,70,89, +0,0,8,11,11,10,70,89,11,15, +8,18,70,89,8,21,0,63,43,0, +24,63,43,17,18,0,57,24,47,43, +17,18,1,23,57,17,51,17,51,17, +51,49,48,1,33,50,22,21,20,6, +35,33,17,33,53,33,1,52,38,35, +33,17,33,32,2,45,1,57,224,215, +223,220,254,37,254,162,2,4,2,76, +124,157,254,205,1,57,1,19,2,131, +154,155,166,168,3,186,142,252,252,93, +83,254,151,0,0,3,0,176,0,0, +5,121,4,72,0,10,0,14,0,22, +0,63,64,32,0,16,16,8,4,19, +12,11,11,19,8,3,23,24,12,21, +0,15,70,89,0,0,8,13,9,15, +8,16,70,89,8,21,0,63,43,0, +24,63,51,18,57,47,43,0,24,63, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,1,33,50,22,21, +20,6,35,33,17,51,1,35,17,51, +1,17,33,32,53,52,38,35,1,86, +1,43,209,201,213,207,254,57,166,4, +35,166,166,251,221,1,25,1,8,122, +147,2,131,155,154,165,169,4,72,251, +184,4,72,253,172,254,151,185,92,84, +0,2,0,176,0,0,4,76,4,72, +0,9,0,18,0,50,64,25,15,3, +0,11,11,7,3,7,20,19,0,10, +70,89,0,0,7,8,15,7,11,70, +89,7,21,0,63,43,0,24,63,18, +57,47,43,17,18,1,57,57,17,51, +17,51,17,51,49,48,1,33,32,17, +20,6,35,33,17,51,17,17,33,50, +54,53,52,38,35,1,86,1,82,1, +164,219,211,254,18,166,1,64,132,140, +129,148,2,131,254,203,162,172,4,72, +253,172,254,151,92,93,91,85,0,1, +0,57,255,236,3,125,4,92,0,26, +0,68,64,38,12,9,9,24,24,10, +18,2,4,27,28,11,10,70,89,15, +11,31,11,2,11,3,11,11,0,21, +21,15,70,89,21,16,0,6,70,89, +0,22,0,63,43,0,24,63,43,17, +18,0,57,24,47,95,94,93,43,17, +18,1,23,57,17,51,17,51,49,48, +5,34,39,53,22,22,51,50,54,55, +33,53,33,38,38,35,34,7,39,54, +54,51,32,0,17,16,0,1,86,167, +118,60,140,91,174,189,10,253,213,2, +41,16,169,161,103,151,47,55,164,80, +1,0,1,10,254,223,20,57,147,23, +36,186,185,141,172,160,54,140,26,35, +254,219,254,236,254,243,254,214,0,2, +0,176,255,236,6,51,4,92,0,18, +0,30,0,81,64,45,12,8,8,9, +19,13,6,25,0,0,6,9,3,31, +32,16,28,70,89,16,16,12,7,70, +89,15,12,31,12,2,11,3,12,12, +9,10,15,9,21,3,22,70,89,3, +22,0,63,43,0,24,63,63,18,57, +47,95,94,93,43,0,24,63,43,17, +18,1,23,57,17,51,17,51,51,17, +51,17,51,49,48,1,16,0,35,34, +2,39,33,17,35,17,51,17,33,54, +54,51,50,0,1,20,22,51,50,54, +53,52,38,35,34,6,6,51,254,255, +224,213,250,14,254,225,166,166,1,33, +20,252,207,220,1,1,252,238,146,161, +158,149,146,161,161,146,2,37,254,243, +254,212,1,11,247,254,18,4,72,254, +53,228,251,254,207,254,250,211,219,213, +217,210,216,216,0,2,0,37,0,0, +3,193,4,72,0,13,0,20,0,61, +64,32,17,11,11,10,14,5,1,5, +2,10,4,22,21,13,16,70,89,2, +8,13,13,1,8,8,19,70,89,8, +15,11,1,21,0,63,51,63,43,17, +18,0,57,24,47,18,57,43,17,18, +1,23,57,17,51,17,51,17,51,49, +48,51,35,1,38,38,53,52,54,51, +33,17,35,17,33,1,20,33,33,17, +33,34,231,194,1,59,127,135,202,181, +1,232,166,254,235,254,246,1,20,1, +11,254,211,242,1,207,28,161,122,150, +172,251,184,1,182,1,78,190,1,114, +255,255,0,115,255,236,4,18,5,211, +2,38,0,72,0,0,1,6,0,106, +8,0,0,10,180,3,2,48,17,38, +0,43,53,53,0,1,0,20,254,20, +4,68,6,20,0,39,0,102,64,58, +29,27,23,15,15,20,16,7,37,37, +25,2,16,18,5,40,41,30,29,33, +11,70,89,26,18,19,18,71,89,23, +19,15,19,31,19,47,19,3,9,3, +29,33,19,19,33,29,3,16,21,0, +16,21,0,5,70,89,0,27,0,63, +43,0,24,63,63,18,23,57,47,47, +47,95,94,93,17,51,43,17,0,51, +43,17,0,51,17,18,1,23,57,17, +51,17,51,51,17,51,51,51,49,48, +1,34,39,53,22,51,50,53,17,52, +38,35,34,6,21,17,35,17,35,53, +51,53,51,21,33,21,33,21,20,7, +51,54,54,51,50,22,21,17,20,6, +3,47,79,52,58,55,129,122,130,173, +157,168,156,156,166,1,145,254,111,8, +10,49,181,116,201,201,137,254,20,25, +137,20,170,3,82,134,132,188,211,253, +231,4,219,127,186,186,127,196,84,56, +79,91,191,210,252,182,156,170,255,255, +0,176,0,0,3,68,6,33,2,38, +1,205,0,0,1,6,0,118,241,0, +0,8,179,1,15,17,38,0,43,53, +0,1,0,115,255,236,3,170,4,92, +0,25,0,68,64,38,15,18,18,3, +9,24,17,3,4,26,27,15,18,70, +89,15,15,31,15,2,11,3,15,15, +0,6,6,12,70,89,6,16,0,21, +70,89,0,22,0,63,43,0,24,63, +43,17,18,0,57,24,47,95,94,93, +43,17,18,1,23,57,17,51,17,51, +49,48,5,34,0,17,16,0,51,50, +22,23,7,38,35,34,6,7,33,21, +33,22,22,51,50,55,21,6,2,121, +248,254,242,1,19,251,82,158,57,49, +143,109,164,170,16,2,41,253,213,9, +170,167,140,151,116,20,1,35,1,16, +1,19,1,42,32,25,141,51,163,169, +141,190,181,59,147,57,255,255,0,106, +255,236,3,115,4,92,2,6,0,86, +0,0,255,255,0,162,0,0,1,102, +5,223,2,6,0,76,0,0,255,255, +255,236,0,0,2,31,5,211,2,38, +0,243,0,0,1,7,0,106,254,183, +0,0,0,10,180,2,1,25,17,38, +0,43,53,53,255,255,255,145,254,20, +1,102,5,223,2,6,0,77,0,0, +0,2,0,16,255,242,6,66,4,72, +0,21,0,29,0,76,64,41,9,20, +0,27,27,7,22,4,4,7,20,14, +4,30,31,0,26,70,89,0,0,12, +20,20,9,70,89,20,15,12,17,71, +89,12,21,7,27,70,89,7,21,0, +63,43,0,24,63,43,0,24,63,43, +17,18,0,57,24,47,43,17,18,1, +23,57,17,51,17,51,17,51,17,51, +49,48,1,51,50,22,21,16,33,33, +17,33,2,2,35,34,39,53,22,51, +50,18,19,33,1,52,38,35,35,17, +51,32,3,176,244,211,203,254,75,254, +101,254,254,40,181,171,56,32,22,28, +115,136,35,2,80,1,236,125,158,231, +237,1,21,2,131,155,154,254,178,3, +186,253,250,254,62,12,123,6,1,230, +1,239,252,252,91,85,254,151,0,2, +0,176,0,0,6,164,4,70,0,17, +0,25,0,74,64,38,15,11,11,12, +1,19,19,16,8,22,5,5,8,12, +3,26,27,18,10,15,10,70,89,1, +15,15,8,17,13,15,12,21,8,19, +70,89,8,21,0,63,43,0,24,63, +63,51,18,57,47,51,43,17,0,51, +17,18,1,23,57,17,51,17,51,51, +17,51,17,51,17,51,49,48,1,17, +33,50,22,21,16,33,33,17,33,17, +35,17,51,17,33,17,19,17,51,32, +53,52,38,35,4,0,1,0,217,203, +254,78,254,96,254,10,172,172,1,250, +166,240,1,20,128,153,4,70,254,59, +153,154,254,178,1,238,254,18,4,70, +254,55,1,201,253,174,254,151,185,92, +84,0,255,255,0,20,0,0,4,68, +6,20,2,6,0,233,0,0,255,255, +0,176,0,0,4,12,6,33,2,38, +1,212,0,0,1,6,0,118,51,0, +0,8,179,1,20,17,38,0,43,53, +255,255,0,2,254,20,4,6,6,12, +2,38,0,92,0,0,1,6,2,54, +183,0,0,8,179,1,22,17,38,0, +43,53,0,1,0,176,254,135,4,70, +4,70,0,11,0,50,64,25,4,1, +10,11,5,8,8,11,1,3,12,13, +11,34,6,2,15,9,1,1,4,70, +89,1,21,0,63,43,17,0,51,24, +63,51,63,17,18,1,23,57,17,51, +17,51,17,51,49,48,33,33,17,51, +17,33,17,51,17,33,17,35,2,47, +254,129,166,2,74,166,254,143,166,4, +70,252,73,3,183,251,186,254,135,0, +0,1,0,201,0,0,4,8,6,227, +0,7,0,35,64,17,0,3,5,6, +3,6,9,8,7,4,73,89,1,7, +3,6,18,0,63,63,198,43,17,18, +1,57,57,17,51,17,51,49,48,1, +17,51,17,33,17,35,17,3,102,162, +253,107,170,5,182,1,45,254,58,250, +227,5,182,0,0,1,0,176,0,0, +3,68,5,137,0,7,0,39,64,18, +5,0,2,3,0,3,9,8,6,4, +4,1,71,89,4,15,3,21,0,63, +63,43,0,24,16,198,17,18,1,57, +57,17,51,17,51,49,48,1,33,17, +35,17,33,17,51,3,68,254,18,166, +1,238,166,3,199,252,57,4,72,1, +65,0,255,255,0,27,0,0,7,76, +7,115,2,38,0,58,0,0,1,7, +0,67,1,23,1,82,0,8,179,1, +27,5,38,0,43,53,255,255,0,23, +0,0,6,35,6,33,2,38,0,90, +0,0,1,6,0,67,115,0,0,8, +179,1,30,17,38,0,43,53,255,255, +0,27,0,0,7,76,7,115,2,38, +0,58,0,0,1,7,0,118,1,176, +1,82,0,8,179,1,35,5,38,0, +43,53,255,255,0,23,0,0,6,35, +6,33,2,38,0,90,0,0,1,7, +0,118,1,27,0,0,0,8,179,1, +38,17,38,0,43,53,255,255,0,27, +0,0,7,76,7,37,2,38,0,58, +0,0,1,7,0,106,1,100,1,82, +0,10,180,2,1,47,5,38,0,43, +53,53,255,255,0,23,0,0,6,35, +5,211,2,38,0,90,0,0,1,7, +0,106,0,207,0,0,0,10,180,2, +1,50,17,38,0,43,53,53,255,255, +0,0,0,0,4,123,7,115,2,38, +0,60,0,0,1,7,0,67,255,148, +1,82,0,8,179,1,10,5,38,0, +43,53,255,255,0,2,254,20,4,6, +6,33,2,38,0,92,0,0,1,7, +0,67,255,97,0,0,0,8,179,1, +23,17,38,0,43,53,0,1,0,82, +1,217,3,174,2,113,0,3,0,17, +181,0,2,4,5,0,1,0,47,51, +17,18,1,57,57,49,48,19,53,33, +21,82,3,92,1,217,152,152,0,1, +0,82,1,217,7,174,2,113,0,3, +0,17,181,0,2,4,5,0,1,0, +47,51,17,18,1,57,57,49,48,19, +53,33,21,82,7,92,1,217,152,152, +255,255,0,82,1,217,7,174,2,113, +2,6,2,3,0,0,0,2,255,252, +254,49,3,78,255,211,0,3,0,7, +0,28,64,11,4,0,9,5,1,1, +8,5,6,2,1,0,47,51,47,51, +17,1,51,17,51,17,51,50,49,48, +1,33,53,33,53,33,53,33,3,78, +252,174,3,82,252,174,3,82,254,49, +139,140,139,0,0,1,0,25,3,193, +1,68,5,182,0,7,0,18,182,1, +5,8,9,0,4,3,0,63,205,17, +18,1,57,57,49,48,19,39,54,18, +55,51,6,7,37,12,22,98,56,123, +66,37,3,193,22,90,1,12,121,254, +247,0,0,1,0,25,3,193,1,68, +5,182,0,7,0,18,182,5,1,8, +9,5,7,3,0,63,198,17,18,1, +57,57,49,48,1,23,6,2,7,35, +18,55,1,53,15,26,98,53,122,70, +32,5,182,22,100,254,247,114,1,29, +216,0,255,255,0,63,254,248,1,109, +0,238,2,6,0,15,0,0,0,1, +0,25,3,193,1,70,5,182,0,7, +0,18,182,2,6,9,8,3,7,3, +0,63,205,17,18,1,57,57,49,48, +19,22,23,35,38,2,39,55,223,37, +66,123,45,109,24,14,5,182,251,250, +94,1,28,101,22,0,0,2,0,25, +3,193,2,180,5,182,0,7,0,15, +0,26,64,12,4,1,13,9,4,16, +17,0,8,3,12,3,0,63,51,205, +50,17,18,1,23,57,49,48,1,39, +54,19,51,6,2,7,33,39,54,18, +55,51,6,7,1,150,15,56,122,123, +30,59,13,253,215,12,22,98,56,123, +66,37,3,193,22,215,1,8,115,254, +223,97,22,90,1,12,121,254,247,0, +0,2,0,25,3,193,2,180,5,182, +0,7,0,16,0,26,64,12,9,13, +1,5,4,17,18,13,5,16,7,3, +0,63,51,198,50,17,18,1,23,57, +49,48,1,23,6,2,7,35,18,55, +33,23,6,2,7,35,54,18,55,1, +53,15,26,98,53,122,70,32,2,39, +14,24,96,56,125,26,66,13,5,182, +22,100,254,247,114,1,29,216,22,91, +254,246,122,100,1,52,93,0,255,255, +0,25,254,249,2,180,0,238,1,7, +2,11,0,0,251,56,0,32,183,1, +0,7,64,13,13,72,7,184,255,192, +179,12,12,72,7,184,255,192,179,9, +9,72,7,0,17,43,43,43,53,53, +0,1,0,123,0,0,3,137,6,20, +0,11,0,67,64,33,9,2,2,8, +3,10,1,1,7,4,0,4,3,5, +4,12,13,0,5,5,11,6,6,7, +8,0,1,4,4,10,7,3,18,0, +63,46,51,51,17,51,63,18,57,47, +51,51,17,51,17,18,1,23,57,17, +51,51,17,51,17,51,51,17,51,49, +48,1,37,19,35,19,5,53,5,3, +51,3,37,3,137,254,160,49,196,49, +254,180,1,76,49,196,49,1,96,3, +231,31,251,250,4,6,31,170,30,1, +161,254,95,30,0,1,0,123,0,0, +3,154,6,20,0,21,0,117,64,58, +12,7,21,16,4,4,15,10,5,20, +17,0,3,3,14,11,9,6,19,1, +1,6,5,7,4,22,23,1,8,8, +2,7,3,6,6,0,9,20,11,11, +17,14,19,12,12,18,9,14,13,7, +13,7,13,5,15,0,5,18,0,63, +63,18,57,57,47,47,18,57,57,50, +50,17,51,17,51,51,17,51,17,51, +51,17,51,17,51,51,17,51,17,18, +1,23,57,17,51,17,51,51,51,51, +17,51,51,51,17,51,51,51,17,51, +51,17,51,49,48,1,37,21,37,19, +35,19,5,53,5,3,19,5,53,5, +3,51,3,37,21,37,19,2,57,1, +97,254,159,49,198,49,254,166,1,90, +43,43,254,166,1,90,49,198,49,1, +97,254,159,43,1,231,31,168,29,254, +133,1,123,29,168,31,1,43,1,27, +31,168,30,1,124,254,132,30,168,31, +254,229,0,1,0,164,1,244,2,94, +3,227,0,11,0,19,182,6,0,0, +12,13,9,3,0,47,205,17,18,1, +57,17,51,49,48,19,52,54,51,50, +22,21,20,6,35,34,38,164,113,108, +105,116,115,106,107,114,2,236,121,126, +124,123,119,129,131,0,255,255,0,152, +255,227,5,174,0,242,0,38,0,17, +0,0,0,39,0,17,2,18,0,0, +0,7,0,17,4,37,0,0,0,7, +0,100,255,236,9,59,5,203,0,9, +0,20,0,24,0,36,0,47,0,59, +0,70,0,91,64,48,0,16,5,10, +48,66,54,60,25,43,31,37,37,43, +60,21,66,10,23,16,8,71,72,28, +51,51,40,63,25,3,13,34,57,57, +45,68,13,68,13,68,23,24,6,23, +24,7,18,7,0,63,51,63,63,18, +57,57,47,47,17,51,51,17,51,17, +51,63,51,51,17,51,17,18,1,23, +57,17,51,17,51,17,51,17,51,17, +51,17,51,49,48,19,20,22,51,50, +17,16,35,34,6,5,20,6,35,34, +38,53,16,33,50,22,37,1,35,1, +1,20,22,51,50,54,53,52,38,35, +34,6,5,20,6,35,34,38,53,16, +33,50,22,5,20,22,51,50,54,53, +52,38,35,34,6,5,20,6,35,34, +38,53,16,33,50,22,236,83,93,180, +180,93,83,1,237,161,156,149,163,1, +56,152,165,2,105,252,213,148,3,43, +2,160,83,93,91,89,89,91,93,83, +1,237,162,155,148,163,1,55,150,167, +251,56,81,93,91,89,89,91,93,81, +1,235,162,155,149,163,1,56,150,167, +4,2,170,170,1,84,1,82,168,170, +230,231,238,223,1,201,240,219,250,74, +5,182,252,2,171,169,167,173,171,165, +165,171,230,230,239,221,1,201,236,221, +171,169,167,173,171,165,165,171,230,230, +238,222,1,201,236,0,255,255,0,133, +3,166,1,63,5,182,2,6,0,10, +0,0,255,255,0,133,3,166,2,176, +5,182,0,6,0,5,0,0,0,1, +0,82,0,117,2,31,3,190,0,6, +0,26,64,10,4,2,3,6,2,6, +8,7,5,1,0,47,47,17,18,1, +57,57,17,51,17,51,49,48,19,1, +23,1,1,7,1,82,1,86,119,254, +223,1,33,119,254,170,2,39,1,151, +69,254,162,254,161,71,1,151,0,1, +0,80,0,117,2,29,3,190,0,6, +0,26,64,10,3,0,4,2,0,2, +8,7,5,1,0,47,47,17,18,1, +57,57,17,51,17,51,49,48,1,1, +39,1,1,55,1,2,29,254,168,117, +1,31,254,225,117,1,88,2,12,254, +105,71,1,95,1,94,69,254,105,0, +255,255,0,152,255,227,3,74,5,182, +0,38,0,4,0,0,0,7,0,4, +1,193,0,0,0,1,254,121,0,0, +2,143,5,182,0,3,0,19,183,0, +5,2,4,3,3,2,18,0,63,63, +17,1,51,17,51,49,48,1,1,35, +1,2,143,252,121,143,3,135,5,182, +250,74,5,182,0,1,0,109,3,33, +2,195,5,199,0,18,0,38,64,17, +0,18,12,8,8,9,18,9,20,19, +4,15,31,0,9,10,31,0,63,205, +50,63,51,17,18,1,57,57,17,51, +17,51,17,51,49,48,1,17,52,38, +35,34,6,21,17,35,17,51,23,51, +54,51,32,21,17,2,76,78,80,114, +91,116,96,14,10,75,145,1,2,3, +33,1,164,84,71,105,122,254,164,2, +153,88,101,250,254,84,0,1,0,98, +0,0,4,35,5,182,0,17,0,75, +64,40,14,0,4,4,9,5,11,16, +2,5,7,5,18,19,3,7,8,7, +78,89,0,8,14,17,76,89,8,14, +8,14,5,10,10,13,76,89,10,6, +5,24,0,63,63,43,17,18,0,57, +57,24,47,47,43,17,0,51,43,17, +0,51,17,18,1,23,57,17,51,51, +17,51,51,49,48,1,33,21,33,17, +35,17,35,53,51,17,33,21,33,17, +33,21,33,1,184,1,52,254,204,166, +176,176,3,17,253,149,2,68,253,188, +1,139,129,254,246,1,10,129,4,43, +151,253,233,151,0,1,0,68,0,0, +4,72,5,201,0,37,0,112,64,64, +13,9,17,17,34,30,26,11,15,21, +2,15,26,28,32,23,7,38,39,16, +28,29,28,78,89,13,29,12,32,33, +32,78,89,9,33,15,33,31,33,63, +33,79,33,4,9,3,29,33,29,33, +23,0,23,20,76,89,23,24,0,5, +75,89,0,7,0,63,43,0,24,63, +43,17,18,0,57,57,24,47,47,95, +94,93,17,51,43,17,0,51,17,51, +43,17,0,51,17,18,1,23,57,17, +51,17,51,51,51,17,51,51,49,48, +1,50,23,7,38,35,34,6,21,21, +33,21,33,21,33,21,33,21,20,6, +7,33,21,33,53,54,53,53,35,53, +51,53,35,53,51,53,52,54,2,176, +201,158,60,152,147,122,126,1,164,254, +92,1,164,254,92,65,74,3,27,251, +252,206,200,200,200,200,224,5,201,80, +131,71,135,129,186,129,166,129,33,100, +136,44,154,141,48,243,35,129,166,129, +207,178,205,0,0,3,0,154,255,236, +5,209,5,182,0,22,0,33,0,42, +0,96,64,55,34,28,28,29,38,23, +16,20,20,13,9,2,18,9,23,11, +29,6,43,44,27,34,75,89,16,19, +78,89,3,27,11,16,14,14,16,11, +27,3,5,29,30,30,42,75,89,30, +6,29,24,6,0,77,89,6,25,0, +63,43,0,24,63,63,43,17,18,0, +23,57,24,47,47,47,47,47,43,43, +17,18,1,23,57,17,51,51,17,51, +17,51,17,51,17,51,49,48,37,50, +54,55,21,6,35,34,38,53,17,35, +53,55,55,51,21,51,21,35,17,20, +22,1,20,4,33,35,17,35,17,33, +32,22,1,51,50,54,53,52,38,35, +35,5,78,34,86,11,60,110,109,129, +157,157,62,98,221,221,52,254,145,254, +235,254,246,64,165,1,6,1,0,254, +253,161,52,200,185,172,183,82,117,14, +4,125,30,136,138,1,207,80,69,191, +211,129,254,71,77,82,3,151,227,234, +253,193,5,182,211,253,238,145,162,145, +142,0,0,1,0,63,255,236,4,137, +5,203,0,38,0,113,64,63,29,23, +31,22,22,26,11,2,7,7,26,36, +17,4,10,26,23,6,39,40,11,23, +24,23,78,89,8,24,5,29,30,29, +78,89,2,30,15,30,31,30,47,30, +3,9,3,24,30,24,30,19,34,34, +0,76,89,34,7,19,14,76,89,19, +25,0,63,43,0,24,63,43,17,18, +0,57,57,24,47,47,95,94,93,17, +51,43,17,0,51,17,51,43,17,0, +51,17,18,1,23,57,17,51,17,51, +51,17,51,17,51,17,51,49,48,1, +32,3,33,21,33,7,21,23,33,21, +33,22,22,51,50,55,21,6,35,34, +0,3,35,53,51,39,53,55,35,53, +51,18,0,51,50,23,7,38,3,27, +254,193,79,1,254,253,244,2,2,1, +207,254,65,37,203,170,156,153,146,171, +237,254,223,46,166,152,2,2,152,164, +39,1,36,237,201,165,71,166,5,53, +254,109,129,57,64,45,129,180,197,66, +150,65,1,13,1,1,129,42,44,80, +129,1,5,1,36,97,139,86,0,4, +0,141,255,248,6,10,5,193,0,3, +0,15,0,23,0,43,0,69,64,36, +37,27,32,42,16,10,20,4,4,0, +10,42,2,27,6,44,45,35,30,6, +18,7,24,22,13,39,24,13,24,13, +24,2,3,6,2,24,0,63,63,18, +57,57,47,47,17,51,17,51,63,51, +63,51,17,18,1,23,57,17,51,17, +51,17,51,17,51,49,48,1,1,35, +1,1,20,6,35,34,38,53,52,54, +51,50,22,5,20,51,50,53,52,35, +34,37,34,38,53,52,54,51,50,23, +7,38,35,34,21,20,51,50,55,21, +6,5,31,252,213,148,3,43,1,127, +169,148,139,170,167,148,141,170,254,21, +178,176,176,178,253,202,166,182,188,171, +104,88,33,81,80,224,220,98,90,78, +5,182,250,74,5,182,251,152,159,183, +185,157,158,184,186,156,238,238,235,219, +177,161,168,179,35,103,31,238,235,33, +101,37,0,2,0,119,255,236,3,156, +5,203,0,28,0,36,0,61,64,31, +35,26,26,15,9,29,22,3,22,9, +12,4,37,38,35,15,13,25,10,5, +12,19,2,12,2,12,6,31,19,0, +6,0,47,51,47,51,18,57,57,47, +47,17,18,23,57,17,18,1,23,57, +17,51,17,51,51,17,51,49,48,37, +50,55,51,6,6,35,34,38,53,53, +6,7,53,54,55,17,52,54,51,50, +22,21,20,2,7,17,20,22,19,52, +35,34,6,21,17,36,2,125,174,18, +95,8,153,142,150,160,96,96,78,114, +150,135,117,135,206,175,82,174,127,67, +62,1,0,111,213,166,178,181,169,243, +35,22,113,21,38,1,242,138,159,161, +138,185,254,208,74,254,229,104,123,4, +43,194,86,108,254,75,137,0,0,4, +0,201,0,0,7,195,5,182,0,15, +0,27,0,39,0,43,0,95,64,49, +9,6,6,7,1,13,13,0,28,22, +34,16,16,43,40,22,0,7,6,44, +45,31,19,37,25,11,40,19,3,25, +8,19,25,19,25,40,8,40,41,74, +89,40,18,14,8,3,1,7,18,0, +63,51,63,51,63,43,17,18,0,57, +57,24,47,47,17,18,57,17,18,57, +17,51,17,51,17,18,1,23,57,17, +51,17,51,17,51,17,51,17,51,17, +51,49,48,33,35,1,35,18,21,17, +35,17,51,1,51,38,53,17,51,1, +20,6,35,34,38,53,52,54,51,50, +22,5,20,22,51,50,54,53,52,38, +35,34,6,3,53,33,21,4,199,187, +253,76,8,16,151,194,2,170,8,14, +152,2,252,161,147,139,162,161,147,139, +162,254,34,81,93,91,79,79,91,92, +82,86,2,0,4,203,254,224,108,252, +193,5,182,251,58,245,138,3,71,252, +183,163,184,187,160,163,181,187,157,114, +118,117,115,115,112,112,253,32,135,135, +0,2,0,37,2,229,5,133,5,182, +0,7,0,24,0,79,64,39,0,1, +15,12,12,13,17,20,20,19,19,13, +6,1,3,5,25,26,23,22,9,10, +10,17,14,14,4,7,3,3,4,16, +8,8,20,13,1,4,3,0,63,196, +50,50,57,47,51,17,51,17,51,17, +51,17,51,51,17,51,51,51,17,18, +1,23,57,17,51,17,51,17,51,17, +51,17,51,49,48,1,35,17,35,53, +33,21,35,1,3,35,23,17,35,17, +51,19,19,51,17,35,17,55,35,3, +1,113,123,209,2,31,211,2,88,201, +8,6,119,187,196,203,180,127,6,8, +211,2,229,2,103,106,106,253,153,2, +47,129,254,82,2,209,253,209,2,47, +253,47,1,164,137,253,211,0,255,255, +0,80,0,0,5,244,5,205,2,6, +1,118,0,0,0,2,0,102,255,221, +4,139,4,72,0,23,0,31,0,52, +64,26,31,14,14,4,24,12,12,21, +4,3,32,33,13,20,47,31,63,31, +2,31,31,17,28,8,17,0,0,47, +50,47,51,18,57,47,93,57,51,17, +18,1,23,57,17,51,17,51,17,51, +49,48,5,34,38,2,53,52,54,54, +51,50,22,18,21,33,17,22,22,51, +50,54,55,23,6,6,19,17,38,38, +35,34,7,17,2,121,157,241,133,138, +244,149,152,243,135,252,197,49,166,82, +131,183,81,72,98,217,147,50,163,88, +173,122,35,147,1,5,157,171,255,140, +142,254,253,165,254,156,53,70,105,129, +41,155,124,2,139,1,21,53,66,117, +254,233,255,255,0,71,255,236,5,243, +5,182,0,39,2,23,2,92,0,0, +0,38,0,123,251,0,1,7,2,64, +3,96,253,179,0,11,180,4,3,2, +25,25,0,63,53,53,53,0,255,255, +0,32,255,236,6,8,5,201,0,39, +2,23,2,162,0,0,0,39,2,64, +3,117,253,179,1,6,0,117,255,0, +0,11,180,1,3,2,14,25,0,63, +53,53,53,0,255,255,0,71,255,236, +6,4,5,182,0,39,2,23,2,156, +0,0,0,38,2,61,12,0,1,7, +2,64,3,113,253,179,0,11,180,4, +3,2,44,25,0,63,53,53,53,0, +255,255,0,106,255,236,6,0,5,182, +0,39,2,23,2,70,0,0,0,39, +2,64,3,109,253,179,1,6,2,63, +49,0,0,11,180,1,3,2,14,25, +0,63,53,53,53,0,0,2,0,102, +255,236,4,53,5,199,0,26,0,40, +0,65,64,34,38,7,31,15,15,0, +0,20,7,3,41,42,11,34,71,89, +14,4,11,11,24,4,24,17,70,89, +24,3,4,27,70,89,4,22,0,63, +43,0,24,63,43,17,18,0,57,24, +47,18,57,43,17,18,1,23,57,17, +51,17,51,17,51,49,48,1,16,2, +4,35,34,38,53,52,18,54,51,50, +22,23,55,16,33,34,6,7,53,54, +54,51,50,18,1,50,54,18,55,38, +38,35,34,6,6,21,20,22,4,53, +167,254,236,173,172,187,136,232,151,97, +146,43,4,254,230,62,144,48,47,155, +74,210,216,253,162,95,166,120,22,25, +128,80,101,165,101,101,3,166,254,250, +254,53,233,201,192,169,1,51,161,93, +75,90,1,149,44,33,159,23,37,254, +236,251,198,144,1,3,150,97,108,132, +250,128,118,130,0,2,0,39,0,0, +4,109,5,182,0,5,0,12,0,40, +64,19,9,5,10,4,5,4,14,13, +6,5,1,5,9,73,89,5,18,1, +3,0,63,63,43,17,18,0,57,17, +18,1,57,57,17,51,17,51,49,48, +55,1,51,1,21,33,1,6,7,1, +33,1,38,39,1,207,166,1,209,251, +186,2,33,61,40,254,252,2,209,254, +254,68,104,5,78,250,176,102,4,244, +225,121,252,254,2,249,202,0,0,1, +0,201,254,16,5,33,5,182,0,7, +0,35,64,17,0,7,3,4,7,4, +9,8,5,2,73,89,5,3,0,4, +27,0,63,51,63,43,17,18,1,57, +57,17,51,17,51,49,48,1,17,33, +17,35,17,33,17,4,119,252,252,170, +4,88,254,16,7,13,248,243,7,166, +248,90,0,1,0,76,254,16,4,221, +5,182,0,11,0,49,64,26,7,9, +9,3,0,8,2,10,6,2,0,4, +12,13,4,7,73,89,4,3,0,9, +73,89,0,27,0,63,43,0,24,63, +43,17,18,1,23,57,17,51,17,51, +51,17,51,49,48,19,53,1,1,53, +33,21,33,1,1,33,21,76,2,119, +253,153,4,64,252,176,2,67,253,164, +3,170,254,16,107,3,156,3,51,108, +151,252,252,252,141,152,0,1,0,104, +2,141,4,41,3,23,0,3,0,21, +64,9,2,0,5,4,1,0,80,89, +1,0,47,43,17,18,1,57,57,49, +48,19,53,33,21,104,3,193,2,141, +138,138,0,1,0,37,255,242,4,188, +6,152,0,8,0,28,64,11,8,10, +3,9,3,6,4,4,1,8,1,0, +47,47,18,57,47,57,51,17,1,51, +17,51,49,48,5,35,1,35,53,33, +19,1,51,2,111,127,254,233,180,1, +33,235,2,2,137,14,3,14,135,253, +84,5,189,0,0,3,0,119,1,147, +5,45,4,12,0,21,0,33,0,45, +0,51,64,24,31,12,43,0,0,37, +25,12,4,46,47,34,28,28,17,6, +9,19,15,40,22,22,3,9,0,47, +51,51,17,51,47,51,18,57,57,51, +17,51,17,18,1,23,57,17,51,17, +51,49,48,1,20,6,35,34,38,39, +6,6,35,34,38,53,52,54,51,50, +23,54,51,50,22,1,50,54,55,38, +38,35,34,6,21,20,22,1,34,6, +7,22,22,51,50,54,53,52,38,5, +45,167,128,93,153,65,60,153,88,131, +168,168,131,181,122,124,185,133,162,252, +125,66,109,54,50,109,72,76,100,97, +2,161,66,109,55,51,110,71,76,100, +101,2,207,131,185,106,116,104,113,173, +142,134,179,219,215,175,254,187,91,100, +97,93,105,87,83,106,1,121,92,98, +97,94,107,84,85,105,0,1,0,12, +254,20,2,248,6,20,0,20,0,28, +64,12,8,18,2,18,13,3,21,22, +16,11,5,0,0,47,50,47,51,17, +18,1,23,57,17,51,49,48,1,50, +23,21,38,35,34,21,17,20,6,35, +34,39,53,22,51,50,53,17,16,2, +125,79,44,49,62,176,165,163,74,59, +61,58,182,6,20,16,137,22,243,250, +225,176,187,19,135,22,243,5,31,1, +106,0,0,2,0,98,1,135,4,45, +4,31,0,23,0,47,0,112,64,64, +40,15,27,3,15,3,49,48,39,30, +30,24,80,89,15,30,31,30,47,30, +3,9,3,30,42,64,42,36,80,89, +27,42,64,15,6,6,0,80,89,15, +6,31,6,47,6,3,9,3,6,18, +64,18,12,80,89,3,0,18,16,18, +32,18,3,18,0,47,93,196,43,0, +26,24,16,205,95,94,93,43,0,16, +24,196,26,222,196,43,0,26,24,16, +205,95,94,93,43,0,16,24,196,17, +18,1,57,57,17,51,17,51,49,48, +1,34,6,7,53,54,51,50,22,23, +22,22,51,50,54,55,21,6,35,34, +38,39,38,38,3,34,6,7,53,54, +51,50,22,23,22,22,51,50,54,55, +21,6,35,34,38,39,38,38,1,80, +54,127,57,108,148,67,112,88,77,91, +45,53,128,54,101,153,67,111,88,73, +91,49,57,128,53,106,150,69,116,82, +69,95,49,55,129,51,100,154,69,118, +79,84,85,2,0,64,57,150,110,28, +37,33,25,66,57,151,109,29,37,30, +25,1,150,68,53,149,109,32,34,29, +26,66,55,150,110,32,33,34,24,0, +0,1,0,104,0,166,4,41,5,2, +0,19,0,70,64,38,5,1,16,11, +11,9,10,14,4,0,19,1,8,20, +21,13,5,6,5,80,89,10,8,15, +6,1,9,3,6,14,2,1,2,80, +89,18,17,1,0,47,51,196,43,17, +0,51,24,47,95,94,93,198,51,43, +17,0,51,17,18,1,23,57,17,51, +17,51,49,48,1,33,53,33,19,33, +53,33,19,23,7,33,21,33,3,33, +21,33,3,39,1,125,254,235,1,84, +127,254,45,2,19,135,125,109,1,23, +254,170,129,1,215,253,233,131,125,1, +193,137,1,16,137,1,31,57,230,137, +254,240,137,254,229,55,255,255,0,104, +0,1,4,41,4,217,2,38,0,31, +0,0,1,7,2,43,0,0,253,116, +0,9,179,1,0,7,18,0,63,53, +53,0,255,255,0,104,0,1,4,41, +4,217,2,38,0,33,0,0,1,7, +2,43,0,0,253,116,0,9,179,1, +0,7,18,0,63,53,53,0,0,2, +0,111,0,0,4,61,5,195,0,5, +0,9,0,32,64,13,8,0,6,3, +0,3,10,11,9,7,2,5,2,0, +47,47,18,57,57,17,18,1,57,57, +17,51,17,51,49,48,19,1,51,1, +1,35,9,3,111,1,194,72,1,196, +254,60,72,1,98,254,195,254,195,1, +61,2,223,2,228,253,28,253,33,2, +225,2,19,253,237,253,236,0,255,255, +0,29,0,0,4,28,6,31,0,38, +0,73,0,0,0,7,0,76,2,182, +0,0,255,255,0,29,0,0,4,12, +6,31,0,38,0,73,0,0,0,7, +0,79,2,182,0,0,0,1,0,219, +4,217,3,190,6,12,0,13,0,24, +64,9,11,3,15,14,10,4,128,7, +0,0,47,50,26,204,50,17,18,1, +57,57,49,48,1,34,38,39,51,22, +22,51,50,54,55,51,6,6,2,72, +185,170,10,156,9,91,113,103,99,11, +157,12,178,4,217,143,164,104,82,88, +98,158,149,0,0,1,255,145,254,20, +1,86,4,72,0,12,0,29,64,13, +11,8,8,14,13,9,15,0,5,70, +89,0,27,0,63,43,0,24,63,17, +18,1,57,17,51,49,48,19,34,39, +53,22,51,50,54,53,17,51,17,16, +43,95,59,69,67,78,73,166,254,20, +25,135,20,85,87,4,252,251,16,254, +188,0,0,1,1,137,4,205,2,117, +6,20,0,9,0,19,182,9,4,10, +11,4,128,9,0,47,26,205,17,18, +1,57,57,49,48,1,54,54,55,51, +21,6,6,7,35,1,137,19,39,10, +168,11,88,47,90,4,229,55,167,81, +18,51,188,70,0,1,1,113,254,59, +2,111,255,131,0,9,0,19,182,9, +4,10,11,9,128,4,0,47,26,205, +17,18,1,57,57,49,48,1,54,54, +55,51,21,6,6,7,35,1,113,28, +51,7,168,11,98,55,90,254,84,64, +186,53,18,51,193,66,0,1,1,129, +4,217,2,127,6,33,0,9,0,19, +182,9,4,10,11,9,128,4,0,47, +26,205,17,18,1,57,57,49,48,1, +6,6,7,35,53,54,54,55,51,2, +127,29,53,6,166,14,99,49,92,6, +8,61,193,49,19,61,191,57,0,2, +0,39,2,57,2,158,5,199,0,11, +0,21,0,32,64,14,6,12,0,17, +12,17,23,22,9,19,31,3,14,33, +0,63,51,63,51,17,18,1,57,57, +17,51,17,51,49,48,19,20,22,51, +50,54,53,52,38,35,34,6,5,16, +33,34,38,53,16,33,50,22,176,82, +94,94,86,86,94,94,82,1,238,254, +196,158,157,1,59,158,158,4,0,168, +166,165,171,170,164,165,169,254,55,236, +221,1,197,232,0,2,0,20,2,74, +2,180,5,188,0,10,0,20,0,60, +64,31,20,5,11,7,3,3,9,2, +0,2,5,3,21,22,1,5,5,9, +15,20,31,20,2,20,20,3,14,7, +31,3,32,0,63,63,51,18,57,47, +93,51,51,17,51,17,18,1,23,57, +17,51,51,17,51,51,17,51,49,48, +1,35,21,35,53,33,53,1,51,17, +51,33,53,52,55,14,3,7,7,2, +180,125,145,254,110,1,152,139,125,254, +242,6,5,24,30,30,11,168,3,20, +202,202,101,2,67,253,205,195,134,75, +12,39,45,45,17,246,0,1,0,59, +2,55,2,137,5,170,0,29,0,43, +64,21,16,3,28,23,9,23,26,3, +4,31,30,19,0,0,6,27,24,30, +13,6,33,0,63,51,63,51,18,57, +47,51,17,18,1,23,57,17,51,17, +51,49,48,1,50,22,21,20,6,35, +34,38,39,53,22,22,51,50,54,53, +52,38,35,34,6,7,39,19,33,21, +33,7,54,1,72,145,176,170,166,74, +139,41,56,140,54,95,110,109,102,57, +76,31,59,33,1,239,254,131,20,62, +4,104,143,123,140,155,31,23,131,34, +38,83,89,78,88,17,8,41,1,160, +104,230,12,0,0,2,0,41,2,57, +2,162,5,199,0,23,0,35,0,54, +64,28,27,18,33,11,0,0,6,18, +3,37,36,30,11,21,0,15,16,15, +2,15,15,3,24,21,33,8,3,31, +0,63,51,63,51,18,57,47,93,18, +57,51,17,18,1,23,57,17,51,51, +17,51,49,48,19,16,54,51,50,23, +21,38,35,34,6,7,51,54,54,51, +50,22,21,20,6,35,34,38,5,50, +54,53,52,38,35,34,6,21,20,22, +41,219,219,74,49,52,83,141,150,10, +8,29,113,85,125,148,166,141,153,173, +1,68,81,99,88,86,85,112,106,3, +195,1,5,255,15,114,18,153,166,43, +59,148,126,144,164,210,99,93,99,79, +91,90,59,89,124,0,0,1,0,57, +2,74,2,143,5,182,0,6,0,28, +64,13,1,5,5,0,2,3,7,8, +2,3,30,0,32,0,63,63,51,17, +18,1,23,57,17,51,49,48,19,1, +33,53,33,21,1,162,1,94,254,57, +2,86,254,160,2,74,2,248,116,94, +252,242,0,3,0,51,2,57,2,147, +5,199,0,21,0,34,0,45,0,63, +64,34,22,13,38,19,43,3,28,7, +7,3,5,16,19,13,6,46,47,5, +16,32,32,11,41,27,41,2,41,41, +25,10,33,35,0,31,0,63,50,63, +51,57,47,93,51,18,57,57,17,18, +1,23,57,17,51,17,51,17,51,17, +51,49,48,1,50,22,21,20,7,22, +21,20,6,35,34,38,53,52,54,55, +38,38,53,52,54,3,20,22,51,50, +54,53,52,38,39,39,6,6,19,34, +6,21,20,22,23,54,53,52,38,1, +100,124,151,148,176,165,138,146,159,73, +85,74,57,157,53,84,86,90,84,93, +81,28,72,70,172,68,75,68,81,140, +78,5,199,118,104,130,76,74,158,113, +137,128,116,69,116,46,46,93,68,102, +126,253,102,60,73,73,60,63,79,28, +10,34,84,1,239,60,57,47,71,33, +54,97,57,60,0,2,0,35,2,57, +2,156,5,201,0,22,0,34,0,60, +64,31,26,17,32,10,0,0,5,17, +3,35,36,29,14,10,11,11,20,15, +14,31,14,2,14,14,3,23,20,31, +8,3,33,0,63,51,63,51,18,57, +47,93,18,57,17,51,17,51,17,18, +1,23,57,17,51,51,17,51,49,48, +1,16,6,35,34,39,53,22,51,32, +19,35,6,6,35,34,38,53,52,54, +51,50,22,37,34,6,21,20,22,51, +50,54,53,52,38,2,156,218,212,83, +49,49,93,1,20,21,10,35,116,65, +131,153,169,136,152,176,254,184,81,95, +85,87,84,115,103,4,70,254,242,255, +15,116,20,1,70,51,52,146,131,136, +165,202,91,95,87,81,95,85,62,97, +114,0,0,22,0,84,254,129,7,193, +5,238,0,5,0,11,0,17,0,23, +0,27,0,31,0,35,0,39,0,43, +0,47,0,51,0,55,0,59,0,63, +0,67,0,71,0,83,0,91,0,107, +0,116,0,124,0,137,0,248,64,135, +65,64,61,60,49,48,15,5,0,12, +84,78,88,72,118,107,112,96,122,103, +133,134,69,68,41,40,37,36,20,10, +9,23,23,134,6,18,59,27,127,103, +96,56,24,55,47,107,52,44,72,35, +31,32,28,3,17,78,12,25,138,139, +10,0,42,66,90,81,134,92,116,92, +41,65,70,62,100,117,117,108,69,61, +130,125,86,75,107,118,107,38,50,37, +49,21,13,0,66,1,65,62,92,61, +108,13,49,50,3,107,12,92,108,107, +107,108,92,3,1,45,44,29,28,25, +24,19,18,15,12,57,56,53,52,33, +32,7,6,4,1,0,47,51,51,51, +51,51,51,51,51,51,47,51,51,51, +51,51,51,51,51,51,18,23,57,47, +47,47,17,18,23,57,17,57,18,57, +57,17,57,57,17,51,17,51,17,51, +17,51,16,196,50,196,50,17,51,17, +51,18,57,17,51,17,51,17,51,16, +196,196,50,17,51,17,51,17,18,1, +23,57,17,51,51,51,51,51,51,51, +51,51,17,51,17,51,17,51,17,51, +17,51,17,51,17,51,51,51,51,51, +51,51,51,51,49,48,19,17,33,21, +35,21,37,53,33,17,35,53,1,17, +51,21,51,21,33,53,51,53,51,17, +33,53,33,21,33,53,33,21,1,53, +33,21,1,35,17,51,17,35,17,51, +1,53,33,21,1,35,17,51,1,53, +33,21,51,53,33,21,1,35,17,51, +53,35,17,51,1,35,17,51,5,20, +6,35,34,38,53,52,54,51,50,22, +5,20,51,50,53,52,35,34,37,51, +50,22,21,20,6,7,21,22,22,21, +20,6,35,35,19,51,50,54,53,52, +38,35,35,21,21,51,50,54,53,52, +35,1,34,39,53,22,51,50,53,17, +51,17,20,6,84,1,47,192,5,206, +1,48,109,249,0,111,192,5,14,195, +109,253,73,1,17,251,225,1,14,254, +242,1,14,4,183,109,109,109,109,251, +194,1,16,252,48,111,111,2,192,1, +16,119,1,17,250,168,111,111,111,111, +6,254,109,109,251,159,135,127,127,135, +135,127,126,136,254,115,135,135,135,135, +1,225,172,109,112,46,44,61,46,109, +94,207,123,66,46,36,42,47,59,74, +49,37,90,1,94,52,28,43,25,86, +125,105,4,190,1,48,111,193,193,111, +254,208,193,249,2,1,47,194,109,109, +194,254,209,109,109,109,109,6,254,111, +111,250,168,1,14,2,2,1,15,250, +59,109,109,1,166,1,14,4,74,111, +111,111,111,252,47,1,16,121,1,15, +253,104,1,16,73,145,156,156,145,146, +155,154,147,197,197,196,97,67,83,49, +66,8,8,14,68,53,81,89,1,98, +34,32,34,29,227,154,43,37,74,254, +250,10,102,8,86,1,146,254,114,95, +99,0,0,3,0,84,254,193,7,170, +6,20,0,3,0,30,0,42,0,46, +64,25,1,11,23,37,4,30,31,17, +3,9,43,44,40,30,20,14,34,30, +14,14,30,34,3,2,0,0,47,47, +23,57,47,47,47,17,51,17,51,17, +18,1,23,57,49,48,9,3,5,53, +52,54,55,54,54,53,52,38,35,34, +6,7,23,54,51,50,22,21,20,6, +7,6,6,21,21,3,20,22,51,50, +54,53,52,38,35,34,6,3,254,3, +172,252,84,252,86,3,235,44,65,103, +73,187,165,79,186,71,82,160,90,63, +62,49,72,84,59,27,71,70,66,73, +72,67,72,69,6,20,252,86,252,87, +3,169,251,47,50,65,49,82,126,88, +135,154,56,42,178,80,58,47,53,75, +54,68,112,74,59,254,237,63,72,73, +62,64,73,72,255,255,255,145,254,20, +2,87,6,33,2,38,2,55,0,0, +1,7,1,76,254,169,0,0,0,8, +179,1,24,17,38,0,43,53,255,255, +0,25,3,193,1,68,5,182,2,6, +2,7,0,0,0,2,0,10,255,236, +4,223,6,43,0,45,0,54,0,102, +64,57,27,7,23,11,52,37,46,31, +31,43,2,45,2,37,11,7,18,6, +55,56,20,14,71,89,0,33,46,33, +71,89,43,46,15,46,31,46,2,9, +3,20,46,20,46,5,40,40,49,70, +89,40,1,5,29,70,89,5,22,0, +63,43,0,24,63,43,17,18,0,57, +57,24,47,47,95,94,93,17,51,43, +17,0,51,43,17,18,1,23,57,17, +51,51,17,51,17,51,17,51,17,51, +49,48,1,22,21,16,0,33,32,17, +52,55,54,53,52,38,35,34,6,7, +39,54,51,50,22,21,20,7,6,21, +20,51,32,17,52,39,38,36,38,53, +52,54,51,50,0,19,51,21,37,38, +2,35,34,6,21,20,4,4,86,4, +254,224,254,253,254,119,16,15,36,32, +25,54,15,33,83,95,88,93,15,16, +233,1,119,4,223,254,201,160,182,168, +208,1,0,42,143,254,199,28,183,123, +93,97,1,19,3,78,46,65,254,159, +254,110,1,88,57,123,122,23,47,35, +15,9,118,39,93,93,35,131,132,58, +207,2,112,63,44,2,105,188,131,144, +163,254,205,254,215,129,129,211,1,0, +95,75,141,154,0,1,0,0,0,0, +4,123,5,195,0,21,0,40,64,20, +17,18,7,18,20,3,22,23,0,18, +20,3,18,18,5,10,74,89,5,4, +0,63,43,0,24,63,63,18,57,17, +18,1,23,57,17,51,49,48,1,18, +18,54,54,51,50,23,21,38,35,34, +14,3,7,17,35,17,1,51,2,57, +122,141,77,92,58,48,40,26,31,40, +59,86,124,101,31,172,254,35,186,2, +205,1,35,1,55,108,48,15,135,6, +56,161,252,236,85,253,227,2,47,3, +135,0,0,2,0,18,255,236,6,119, +4,72,0,20,0,41,0,76,64,39, +24,3,18,33,33,30,39,13,10,13, +30,3,6,5,42,43,19,31,31,0, +8,21,11,6,8,6,70,89,8,15, +36,27,0,27,70,89,16,0,22,0, +63,50,43,17,0,51,24,63,43,17, +0,51,51,17,18,57,24,47,57,17, +18,1,23,57,17,51,17,51,18,57, +17,51,49,48,5,34,38,53,52,19, +33,53,55,33,21,35,22,21,20,6, +35,34,39,35,6,1,6,2,21,20, +22,51,50,54,53,53,51,21,20,22, +51,50,54,53,52,39,2,41,186,199, +135,254,227,142,5,215,250,117,200,185, +221,68,8,68,254,207,63,66,108,117, +93,108,162,107,93,117,109,111,20,231, +240,240,1,7,74,68,142,252,251,240, +231,182,182,3,206,132,254,254,103,174, +168,143,125,188,188,122,146,169,173,254, +239,0,255,255,0,201,0,0,6,113, +7,117,2,38,0,48,0,0,1,7, +0,118,1,156,1,84,0,8,179,1, +29,5,38,0,43,53,255,255,0,176, +0,0,6,203,6,33,2,38,0,80, +0,0,1,7,0,118,1,205,0,0, +0,8,179,1,45,17,38,0,43,53, +255,255,0,0,253,213,5,16,5,188, +2,38,0,36,0,0,0,7,2,91, +1,53,0,0,255,255,0,94,253,213, +3,205,4,90,2,38,0,68,0,0, +0,7,2,91,0,199,0,0,255,255, +254,223,255,236,5,210,5,205,0,38, +0,50,20,0,1,7,2,92,254,71, +0,0,0,9,179,3,2,26,3,0, +63,53,53,0,0,2,0,117,253,213, +2,53,255,131,0,11,0,23,0,30, +64,12,18,6,12,0,6,0,24,25, +21,3,15,9,0,47,51,204,50,17, +18,1,57,57,17,51,17,51,49,48, +1,20,6,35,34,38,53,52,54,51, +50,22,7,52,38,35,34,6,21,20, +22,51,50,54,2,53,125,102,101,120, +120,101,101,126,110,66,51,51,66,60, +57,53,64,254,174,97,120,117,98,98, +117,118,97,57,60,60,57,56,61,61, +0,2,0,152,4,104,2,207,5,197, +0,8,0,23,0,30,64,14,14,9, +3,8,12,19,9,5,24,25,2,11, +8,21,0,47,196,220,198,17,18,1, +23,57,17,51,49,48,1,54,55,51, +21,6,6,7,35,37,52,55,21,6, +21,20,30,2,21,20,35,34,38,1, +176,70,28,189,41,119,49,78,254,232, +237,121,31,37,31,93,55,67,4,135, +181,122,20,78,172,57,118,163,61,72, +41,53,20,19,16,26,28,74,68,0, +255,255,0,29,0,0,6,211,6,31, +0,39,0,73,2,176,0,0,0,38, +0,73,0,0,0,7,0,76,5,109, +0,0,255,255,0,29,0,0,6,195, +6,31,0,39,0,73,2,176,0,0, +0,38,0,73,0,0,0,7,0,79, +5,109,0,0,0,2,0,125,255,236, +6,100,6,20,0,21,0,33,0,60, +64,31,22,6,15,17,17,28,0,0, +20,11,6,4,34,35,20,11,3,9, +9,31,73,89,15,9,4,3,25,73, +89,3,19,0,63,43,0,24,63,198, +43,17,18,0,57,57,17,18,1,23, +57,17,51,51,17,51,17,51,49,48, +1,16,0,33,32,0,17,16,0,33, +32,23,62,2,53,51,23,6,6,7, +22,1,16,18,51,50,18,17,16,2, +35,34,2,5,188,254,157,254,198,254, +189,254,161,1,97,1,67,1,69,179, +50,58,27,182,14,29,131,104,96,251, +117,250,244,243,246,245,242,243,253,2, +221,254,158,254,113,1,137,1,106,1, +104,1,134,215,12,67,102,105,22,155, +173,39,176,254,254,254,214,254,206,1, +49,1,43,1,39,1,49,254,209,0, +0,2,0,115,255,236,5,25,4,240, +0,22,0,34,0,60,64,31,23,7, +16,18,18,29,0,0,21,12,7,4, +35,36,21,12,3,10,10,32,70,89, +16,10,16,3,26,70,89,3,22,0, +63,43,0,24,63,198,43,17,18,0, +57,57,17,18,1,23,57,17,51,51, +17,51,17,51,49,48,1,16,0,35, +34,38,2,53,16,0,51,50,23,62, +2,53,51,23,6,6,7,22,5,20, +22,51,50,54,53,52,38,35,34,6, +4,98,254,242,238,147,228,124,1,12, +238,217,137,51,58,26,180,15,31,121, +102,71,252,189,158,173,175,157,159,175, +173,156,2,37,254,244,254,211,138,1, +2,173,1,12,1,43,141,15,65,99, +110,23,156,175,38,138,185,211,219,219, +211,210,216,216,0,1,0,186,255,236, +6,123,6,20,0,27,0,51,64,24, +5,7,7,1,11,20,17,11,17,29, +28,10,1,14,27,5,18,3,14,23, +73,89,14,19,0,63,43,0,24,63, +198,51,18,57,57,17,18,1,57,57, +17,51,17,51,51,17,51,49,48,1, +21,62,2,53,51,23,6,6,7,17, +16,0,33,32,0,53,17,51,17,20, +22,51,50,54,53,17,5,25,58,70, +31,181,14,33,172,149,254,225,254,248, +254,244,254,212,170,204,198,184,193,5, +182,198,8,62,112,110,22,182,184,25, +253,141,254,254,254,234,1,31,253,3, +174,252,70,183,196,193,188,3,184,0, +0,1,0,164,255,236,5,150,4,242, +0,29,0,68,64,34,1,28,13,15, +15,19,20,7,7,10,19,28,19,30, +31,21,22,10,18,22,3,20,13,8, +29,15,25,4,70,89,25,22,20,21, +0,63,63,43,0,24,63,51,198,18, +23,57,17,51,17,18,1,57,57,17, +51,51,17,51,17,51,17,51,17,51, +49,48,1,17,20,22,51,50,54,53, +17,51,21,54,54,53,51,23,6,6, +7,17,35,39,35,6,6,35,34,38, +53,17,1,76,122,130,172,159,166,82, +74,178,15,32,176,141,137,24,9,52, +181,111,203,200,4,70,253,59,134,132, +188,213,2,62,121,11,128,154,23,186, +191,14,252,172,147,82,85,190,209,2, +203,0,255,255,252,83,4,217,253,220, +6,33,0,7,0,67,250,202,0,0, +255,255,253,13,4,217,254,150,6,33, +0,7,0,118,251,132,0,0,255,255, +252,25,4,217,255,1,5,221,0,7, +1,82,251,17,0,0,0,1,253,8, +4,184,254,115,6,143,0,17,0,30, +64,12,2,5,5,13,13,8,0,0, +19,11,16,4,0,47,204,50,17,1, +51,17,51,51,18,57,17,51,49,48, +1,20,7,7,35,39,54,54,53,52, +38,35,34,7,53,54,51,32,254,115, +166,10,105,12,86,78,67,73,62,32, +38,69,1,0,5,215,140,34,113,176, +14,50,43,43,41,6,100,10,0,1, +253,59,254,160,254,2,255,125,0,11, +0,17,181,6,0,0,13,9,3,0, +47,205,17,1,51,17,51,49,48,5, +52,54,51,50,22,21,20,6,35,34, +38,253,59,59,42,40,58,58,40,42, +59,242,57,54,54,57,55,55,55,0, +255,255,0,201,0,0,3,248,7,115, +2,38,0,40,0,0,1,7,0,67, +255,216,1,82,0,8,179,1,13,5, +38,0,43,53,255,255,0,203,0,0, +5,82,7,115,2,38,1,178,0,0, +1,7,0,67,0,104,1,82,0,8, +179,1,17,5,38,0,43,53,255,255, +0,115,255,236,4,18,6,33,2,38, +0,72,0,0,1,6,0,67,183,0, +0,8,179,2,28,17,38,0,43,53, +255,255,0,176,0,0,4,98,6,33, +2,38,1,210,0,0,1,6,0,67, +220,0,0,8,179,1,15,17,38,0, +43,53,0,1,0,133,255,236,7,145, +5,201,0,49,0,69,64,36,34,22, +42,39,47,9,9,4,39,27,22,5, +50,51,0,31,25,31,73,89,16,40, +40,19,6,25,4,44,37,19,37,73, +89,12,19,19,0,63,51,43,17,0, +51,24,63,51,18,57,47,57,43,17, +0,51,17,18,1,23,57,17,51,17, +51,17,51,49,48,1,34,6,7,39, +54,51,50,0,17,16,0,35,34,38, +39,35,6,6,35,32,0,17,16,18, +51,50,23,7,38,38,35,34,2,17, +16,18,51,50,55,17,51,17,22,51, +50,18,17,16,2,5,164,60,94,45, +69,126,150,228,1,1,254,229,255,108, +172,83,8,80,169,107,255,0,254,229, +255,228,153,124,70,45,93,60,147,165, +207,187,139,102,170,102,142,187,206,165, +5,47,41,31,146,80,254,136,254,173, +254,141,254,97,45,51,50,46,1,155, +1,119,1,83,1,120,80,146,31,41, +254,215,254,246,254,211,254,178,76,1, +201,254,55,76,1,75,1,48,1,11, +1,40,0,1,0,0,0,0,6,29, +4,72,0,29,0,40,64,22,23,0, +13,14,5,5,30,31,27,21,13,0, +18,10,4,4,22,14,5,15,4,21, +0,63,63,51,51,18,23,57,63,17, +18,1,23,57,49,48,1,6,6,3, +35,1,51,19,22,23,51,54,54,19, +3,51,0,22,23,51,54,18,17,51, +16,2,7,35,3,38,3,39,10,20, +179,213,254,127,172,246,32,46,8,19, +74,142,172,178,1,9,45,10,8,173, +153,166,195,219,182,125,33,1,201,26, +51,254,132,4,72,253,73,93,189,53, +163,1,36,1,213,252,255,144,44,184, +1,179,1,82,254,150,254,7,229,1, +90,92,0,2,0,23,0,0,4,252, +6,20,0,17,0,26,0,76,64,40, +8,4,18,18,1,15,22,11,11,6, +15,0,4,27,28,7,17,0,17,73, +89,4,0,8,26,73,89,0,8,0, +8,15,2,0,15,18,74,89,15,18, +0,63,43,0,24,63,18,57,57,47, +47,43,17,0,51,43,17,0,51,17, +18,1,23,57,17,51,17,51,51,17, +51,51,49,48,19,33,17,51,17,33, +21,33,17,51,32,17,20,4,33,33, +17,33,1,51,50,54,53,52,38,35, +35,23,1,63,172,1,162,254,94,201, +2,49,254,247,254,251,254,104,254,193, +1,235,213,192,181,186,218,182,4,250, +1,26,254,230,148,254,224,254,100,208, +218,4,102,252,43,137,144,138,122,0, +0,2,0,23,0,0,4,156,5,39, +0,17,0,25,0,71,64,38,4,0, +19,19,15,11,22,7,7,2,11,13, +4,26,27,3,13,14,13,70,89,4, +18,70,89,4,4,11,16,0,14,15, +11,19,70,89,11,21,0,63,43,0, +24,63,51,198,18,57,47,43,43,17, +0,51,17,18,1,23,57,17,51,17, +51,51,17,51,51,49,48,1,33,21, +33,17,33,32,17,20,6,35,33,17, +35,53,51,53,51,17,17,33,32,53, +52,38,35,1,168,1,88,254,168,1, +63,1,181,223,220,254,33,235,235,166, +1,49,1,31,135,156,4,72,140,254, +197,254,205,166,168,3,188,140,223,252, +205,254,151,185,92,84,0,1,0,201, +255,236,7,33,5,203,0,32,0,74, +64,41,23,19,19,20,6,24,29,12, +5,24,17,20,6,33,34,27,0,73, +89,27,4,6,18,23,18,73,89,3, +23,23,20,21,3,20,18,14,9,73, +89,14,19,0,63,43,0,24,63,63, +18,57,47,51,43,17,0,51,24,63, +43,17,18,1,23,57,17,51,17,51, +17,51,49,48,1,34,4,7,33,21, +33,18,0,51,50,55,21,6,35,32, +0,3,33,17,35,17,51,17,33,18, +0,37,50,23,7,38,38,5,143,227, +254,252,31,2,191,253,61,8,1,9, +247,154,194,152,222,254,193,254,165,8, +254,162,170,170,1,100,30,1,113,1, +48,213,182,72,100,157,5,51,250,241, +150,254,239,254,226,55,149,57,1,112, +1,84,253,80,5,182,253,146,1,51, +1,78,2,92,146,48,38,0,0,1, +0,176,255,236,5,156,4,92,0,33, +0,89,64,50,22,25,25,10,3,9, +5,5,6,16,32,24,3,6,5,34, +35,13,19,70,89,13,16,25,4,9, +4,70,89,22,15,9,31,9,2,11, +3,9,9,6,7,15,6,21,0,28, +70,89,0,22,0,63,43,0,24,63, +63,18,57,47,95,94,93,51,43,17, +0,51,24,63,43,17,18,1,23,57, +17,51,17,51,17,51,51,17,51,49, +48,5,34,0,39,33,17,35,17,51, +17,33,54,36,51,50,22,23,7,38, +35,34,6,7,33,21,33,22,22,51, +50,54,55,21,6,4,119,235,254,244, +11,254,225,166,166,1,33,24,1,13, +223,81,154,54,50,138,101,163,167,16, +2,24,253,230,9,169,164,61,119,98, +110,20,1,10,248,254,18,4,72,254, +51,235,246,32,25,141,51,164,170,141, +188,181,22,37,147,57,0,2,0,0, +0,0,5,109,5,182,0,11,0,18, +0,52,64,27,2,3,7,12,3,13, +10,5,20,19,1,5,12,5,73,89, +16,8,12,12,7,8,3,11,3,7, +18,0,63,51,51,63,18,57,47,18, +57,43,17,0,51,17,18,1,23,57, +17,51,49,48,1,35,17,35,17,35, +1,35,1,51,1,35,1,33,39,38, +39,6,7,3,152,148,156,149,254,223, +178,2,104,158,2,103,183,253,92,1, +76,82,56,30,24,64,2,170,253,86, +2,170,253,86,5,182,250,74,3,63, +207,144,100,98,164,0,0,2,0,10, +0,0,4,121,4,72,0,11,0,18, +0,53,64,28,5,6,10,12,6,13, +3,1,6,20,19,4,8,12,8,70, +89,17,11,12,12,10,11,15,6,2, +10,21,0,63,51,51,63,18,57,47, +18,57,43,17,0,51,17,18,1,23, +57,17,51,49,48,1,1,35,3,35, +17,35,17,35,3,35,1,3,33,38, +38,39,35,6,2,168,1,209,172,207, +113,151,115,205,172,1,209,33,1,15, +43,56,34,9,28,4,72,251,184,1, +233,254,23,1,233,254,23,4,72,254, +45,108,138,106,92,0,0,2,0,201, +0,0,7,94,5,182,0,19,0,26, +0,70,64,37,14,10,10,11,2,3, +18,21,3,20,8,7,11,7,27,28, +5,1,9,14,9,73,89,20,24,12, +14,14,11,16,12,3,19,7,3,11, +18,0,63,51,51,51,63,51,18,57, +47,18,57,51,43,17,0,51,51,17, +18,1,23,57,17,51,17,51,17,51, +49,48,1,35,17,35,17,35,1,35, +1,33,17,35,17,51,17,33,1,51, +1,35,1,33,2,38,39,6,6,5, +133,143,154,147,254,227,186,1,34,254, +95,170,170,1,225,1,6,158,2,102, +188,253,102,1,62,118,28,12,19,35, +2,176,253,80,2,176,253,80,2,176, +253,80,5,182,253,146,2,110,250,74, +3,72,1,53,86,47,67,104,0,2, +0,176,0,0,6,20,4,72,0,19, +0,25,0,77,64,43,17,13,13,14, +5,6,1,25,6,24,11,10,14,7, +26,27,8,4,12,17,12,70,89,24, +21,19,47,17,63,17,2,17,17,14, +19,15,15,15,10,6,2,14,21,0, +63,51,51,51,63,63,18,57,47,93, +18,57,51,43,17,0,51,51,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,1,35,3,35,17,35,17,35, +3,35,19,33,17,35,17,51,17,33, +19,23,35,6,6,7,33,4,70,1, +206,170,208,113,152,110,209,172,209,254, +223,166,166,1,94,197,104,8,10,32, +89,1,12,4,72,251,184,1,238,254, +18,1,238,254,18,1,238,254,18,4, +72,254,51,1,205,115,34,95,217,0, +0,2,0,20,0,0,5,174,5,182, +0,31,0,34,0,75,64,40,32,1, +15,16,33,30,30,29,16,2,1,7, +6,36,35,30,1,33,31,31,33,73, +89,14,18,29,18,74,89,34,2,29, +29,24,31,3,16,8,24,18,0,63, +51,51,63,18,57,47,51,51,43,17, +0,51,43,17,18,0,57,57,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,21,1,30,2,23,19,35,3, +46,2,35,35,17,35,17,35,34,6, +6,7,3,35,19,62,2,55,1,53, +5,33,1,5,41,254,90,118,154,100, +50,133,174,137,35,68,101,89,27,170, +26,91,99,65,32,135,185,136,47,99, +149,118,254,101,3,190,253,10,1,123, +5,182,133,254,17,6,72,139,164,254, +59,1,201,111,96,38,253,66,2,190, +39,95,111,254,55,1,197,159,142,73, +7,1,239,133,153,254,57,0,0,2, +0,12,0,0,5,20,4,72,0,32, +0,35,0,78,64,42,33,1,15,16, +34,31,24,31,30,16,2,1,7,7, +37,36,31,1,34,32,32,34,70,89, +17,14,18,30,18,71,89,35,2,30, +30,24,32,15,16,8,24,21,0,63, +51,51,63,18,57,47,51,51,43,17, +0,51,51,43,17,18,0,57,57,17, +18,1,23,57,17,51,17,51,17,51, +49,48,1,21,1,30,3,19,35,3, +46,2,35,35,17,35,17,35,34,6, +6,7,3,35,19,62,3,55,1,53, +5,33,1,4,139,254,174,87,111,73, +49,155,172,133,34,58,84,76,10,153, +11,75,82,56,39,135,170,131,24,48, +73,110,87,254,177,3,32,253,180,1, +37,4,72,105,254,160,7,48,80,105, +254,113,1,80,87,71,28,253,246,2, +10,26,64,94,254,174,1,80,61,105, +79,50,8,1,96,105,140,254,193,0, +0,2,0,201,0,0,7,197,5,182, +0,36,0,39,0,97,64,53,33,29, +29,30,38,35,15,16,2,39,37,1, +7,1,39,16,34,27,35,24,30,9, +41,40,35,1,36,38,36,38,73,89, +18,14,28,33,28,73,89,39,2,33, +33,30,36,3,31,3,24,16,8,30, +18,0,63,51,51,51,63,63,18,57, +47,51,51,43,17,0,51,51,43,17, +18,0,57,57,17,18,1,23,57,17, +51,17,51,17,51,17,51,17,51,17, +51,49,48,1,21,1,30,2,23,19, +35,3,46,2,35,35,17,35,17,35, +34,6,6,7,3,35,19,54,55,33, +17,35,17,51,17,33,1,53,5,33, +1,7,61,254,93,120,153,101,45,136, +168,138,31,70,105,95,24,172,25,94, +100,66,33,135,178,135,55,56,254,82, +170,170,2,215,254,104,3,193,253,10, +1,123,5,182,133,254,14,6,72,144, +156,254,59,1,201,104,99,40,253,68, +2,188,40,95,108,254,55,1,190,184, +58,253,80,5,182,253,146,1,233,133, +153,254,55,0,0,2,0,176,0,0, +6,186,4,72,0,36,0,39,0,103, +64,58,33,29,29,30,38,35,15,16, +2,39,37,1,7,1,39,16,34,27, +35,24,30,9,41,40,35,1,36,38, +36,38,70,89,18,14,28,33,28,70, +89,39,2,47,33,63,33,2,33,33, +30,36,15,31,15,24,16,8,30,21, +0,63,51,51,51,63,63,18,57,47, +93,51,51,43,17,0,51,51,43,17, +18,0,57,57,17,18,1,23,57,17, +51,17,51,17,51,17,51,17,51,17, +51,49,48,1,21,1,30,3,19,35, +3,46,2,35,35,17,35,17,35,34, +6,6,7,3,35,19,54,55,33,17, +35,17,51,17,33,1,53,5,33,1, +6,49,254,174,88,111,73,48,155,172, +133,34,58,86,74,10,154,10,75,84, +55,38,135,170,131,47,37,254,205,166, +166,2,53,254,176,3,33,253,180,1, +37,4,72,105,254,158,7,49,78,105, +254,114,1,80,86,70,28,253,248,2, +8,27,63,92,254,174,1,80,120,40, +254,16,4,72,254,53,1,98,105,140, +254,199,0,1,0,63,254,78,4,53, +6,209,0,75,0,132,64,77,0,19, +33,63,25,70,70,10,63,55,67,60, +42,28,45,40,19,11,76,77,73,22, +74,89,73,19,57,52,49,15,46,31, +46,47,46,3,9,3,46,42,64,67, +29,28,29,28,74,89,29,29,16,60, +42,42,36,74,89,42,4,10,9,73, +89,10,16,16,3,73,89,16,35,12, +7,73,89,12,34,0,63,43,0,24, +63,43,0,24,16,198,43,0,24,63, +43,17,0,51,18,57,24,47,43,17, +18,0,57,26,24,16,221,95,94,93, +57,196,50,63,43,17,18,1,23,57, +17,51,17,51,17,51,49,48,23,20, +22,51,50,55,54,51,50,23,21,38, +35,34,7,6,35,34,38,53,52,54, +55,54,54,53,16,33,35,53,51,50, +54,53,52,38,35,34,6,7,39,54, +55,38,39,39,53,51,22,23,54,54, +51,50,23,21,38,35,34,6,7,22, +22,21,20,6,7,21,22,22,21,20, +4,5,6,6,240,87,89,97,120,120, +70,155,71,80,160,68,105,105,105,179, +184,217,232,204,181,254,64,218,209,205, +225,162,137,106,187,110,86,168,190,57, +117,49,123,92,131,92,131,64,50,48, +24,43,44,111,48,178,193,191,170,186, +203,254,229,254,230,138,134,137,55,50, +7,6,39,166,51,5,5,125,133,126, +129,9,8,138,141,1,12,143,147,132, +107,128,55,69,114,114,28,66,121,52, +27,59,136,115,86,14,113,10,82,71, +23,189,143,140,184,26,8,24,178,144, +208,213,9,5,55,0,0,1,0,25, +254,123,3,127,5,78,0,70,0,131, +64,78,23,41,54,11,46,16,16,32, +11,3,14,8,62,50,64,60,41,11, +71,72,68,62,65,0,5,71,89,0, +15,65,31,65,47,65,3,9,3,65, +62,38,26,70,89,35,29,70,89,14, +51,50,51,50,70,89,38,35,51,51, +35,38,3,32,62,62,56,70,89,8, +62,16,32,34,19,44,71,89,19,22, +0,63,43,0,24,63,63,51,43,17, +18,0,23,57,24,47,47,47,43,17, +18,0,57,43,43,0,24,16,212,95, +94,93,196,43,17,18,0,57,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,50,23,21,38,35,34,6,7, +22,22,21,20,7,21,22,21,20,6, +7,14,2,21,20,22,51,50,55,55, +50,23,21,38,38,35,7,6,35,34, +38,53,52,54,55,36,53,52,38,35, +35,53,51,32,53,52,35,34,6,7, +39,54,55,38,39,53,51,22,23,54, +54,2,248,51,45,24,41,47,103,45, +122,140,211,248,242,225,93,109,48,75, +89,86,122,175,125,39,21,84,55,179, +130,92,144,159,190,180,1,78,156,159, +148,119,1,55,252,74,143,88,59,124, +126,92,103,123,75,140,88,134,5,78, +15,112,10,79,62,28,138,107,184,57, +8,71,202,148,168,3,2,23,42,44, +49,43,5,5,39,143,19,24,5,5, +119,112,116,125,3,4,190,97,90,141, +172,162,34,36,135,55,15,117,98,27, +52,137,110,85,255,255,0,109,0,0, +5,242,5,182,2,6,1,117,0,0, +255,255,0,164,254,20,5,135,6,18, +2,6,1,149,0,0,0,3,0,125, +255,236,5,190,5,205,0,11,0,18, +0,25,0,71,64,37,22,16,16,6, +23,15,15,0,6,0,26,27,22,16, +73,89,15,22,1,11,3,22,22,3, +9,9,19,73,89,9,4,3,12,73, +89,3,19,0,63,43,0,24,63,43, +17,18,0,57,24,47,95,94,93,43, +17,18,1,57,57,17,51,17,51,17, +51,17,51,49,48,1,16,0,33,32, +0,17,16,0,33,32,0,1,50,18, +19,33,18,18,19,34,2,3,33,38, +2,5,190,254,157,254,196,254,189,254, +161,1,96,1,68,1,59,1,98,253, +97,229,247,13,252,43,13,249,232,224, +251,19,3,211,17,244,2,221,254,161, +254,110,1,139,1,104,1,101,1,137, +254,112,252,68,1,17,1,12,254,245, +254,238,4,180,254,254,255,0,254,1, +4,0,0,3,0,115,255,236,4,98, +4,92,0,12,0,19,0,26,0,73, +64,39,23,17,17,7,24,16,16,0, +7,0,27,28,23,17,70,89,15,23, +31,23,2,11,3,23,23,3,10,10, +20,70,89,10,16,3,13,70,89,3, +22,0,63,43,0,24,63,43,17,18, +0,57,24,47,95,94,93,43,17,18, +1,57,57,17,51,17,51,17,51,17, +51,49,48,1,16,0,35,34,38,2, +53,16,0,51,50,0,1,50,54,55, +33,22,22,19,34,6,7,33,38,38, +4,98,254,242,238,147,228,124,1,12, +238,230,1,15,254,8,158,164,10,253, +105,9,160,160,156,158,13,2,147,15, +161,2,37,254,244,254,211,138,1,2, +173,1,12,1,43,254,206,253,77,184, +191,186,189,3,88,173,167,168,172,0, +0,1,0,0,0,0,5,72,5,195, +0,21,0,32,64,16,6,22,19,23, +17,0,74,89,17,4,10,5,6,3, +5,18,0,63,63,18,57,63,43,17, +1,51,18,57,49,48,1,34,6,7, +1,35,1,51,1,22,23,54,55,19, +62,2,51,50,23,21,38,4,225,59, +78,57,254,184,197,253,238,180,1,82, +72,35,32,70,162,59,84,110,89,42, +79,56,5,55,103,181,251,229,5,182, +252,86,199,143,144,223,2,6,191,152, +65,19,141,20,0,1,0,0,0,0, +4,61,4,82,0,22,0,30,64,15, +1,23,15,24,13,18,71,89,13,16, +5,1,15,0,21,0,63,63,57,63, +43,17,1,51,18,57,49,48,33,1, +51,19,18,23,51,54,19,19,62,2, +51,50,23,21,38,35,34,6,7,3, +1,150,254,106,174,225,100,19,8,23, +82,96,37,71,91,84,45,30,29,38, +47,58,28,248,4,72,253,155,254,244, +100,118,1,11,1,53,122,123,52,10, +127,8,84,92,252,223,255,255,0,0, +0,0,5,72,7,115,2,38,2,128, +0,0,1,7,3,118,4,215,1,82, +0,10,180,2,1,33,5,38,0,43, +53,53,255,255,0,0,0,0,4,61, +6,33,2,38,2,129,0,0,1,7, +3,118,4,100,0,0,0,10,180,2, +1,34,17,38,0,43,53,53,0,3, +0,125,254,20,9,162,5,205,0,11, +0,23,0,46,0,68,64,38,12,6, +18,0,33,46,39,24,0,6,6,47, +48,37,42,74,89,37,27,29,28,28, +3,32,24,15,9,21,73,89,9,4, +3,15,73,89,3,19,0,63,43,0, +24,63,43,0,24,63,51,18,57,17, +51,63,43,17,18,1,23,57,17,51, +17,51,49,48,1,16,0,33,32,0, +17,16,0,33,32,0,1,16,18,51, +50,18,17,16,2,35,34,2,37,51, +19,22,23,51,54,54,19,51,1,6, +6,35,34,39,53,22,51,50,54,55, +55,5,84,254,185,254,220,254,215,254, +189,1,67,1,44,1,35,1,69,251, +221,223,217,218,221,220,216,218,225,4, +111,176,246,78,20,8,11,83,228,176, +254,43,69,188,136,76,74,55,66,94, +117,35,61,2,221,254,160,254,111,1, +139,1,104,1,102,1,136,254,112,254, +160,254,215,254,205,1,49,1,43,1, +41,1,47,254,210,65,253,139,207,102, +44,251,2,131,251,32,182,158,17,133, +12,103,89,156,255,255,0,115,254,20, +8,123,4,92,0,38,0,82,0,0, +0,7,0,92,4,117,0,0,0,2, +0,125,255,135,6,16,6,45,0,19, +0,40,0,81,64,42,20,10,38,13, +7,17,34,34,3,28,31,0,0,28, +7,23,10,5,41,42,36,34,38,13, +38,73,89,17,15,13,3,28,26,23, +7,23,73,89,5,3,7,18,0,63, +51,51,43,17,0,51,51,24,63,51, +51,43,17,0,51,51,17,18,1,23, +57,17,51,17,51,51,17,51,17,51, +51,17,51,49,48,1,16,0,5,6, +35,34,39,36,0,17,16,0,37,54, +51,50,23,4,0,1,20,18,23,54, +54,51,50,23,54,18,53,52,2,39, +6,35,34,39,6,2,6,16,254,209, +254,248,26,119,124,20,254,244,254,209, +1,43,1,16,20,124,121,22,1,12, +1,45,251,33,202,189,17,73,54,110, +31,189,202,202,189,31,110,113,31,189, +202,2,221,254,210,254,115,44,111,111, +41,1,138,1,54,1,49,1,133,44, +108,108,44,254,115,254,213,244,254,207, +41,48,38,86,41,1,49,244,244,1, +47,39,88,86,39,254,211,0,0,2, +0,115,255,147,4,207,4,180,0,23, +0,45,0,80,64,42,24,12,15,9, +43,27,37,21,3,35,0,0,3,32, +27,9,12,6,46,47,40,37,43,15, +43,70,89,21,18,15,16,32,30,27, +9,27,70,89,6,3,9,21,0,63, +51,51,43,17,0,51,51,24,63,51, +51,43,17,0,51,51,17,18,1,23, +57,17,51,17,51,51,17,51,17,51, +17,51,49,48,1,20,2,7,6,6, +35,34,38,39,38,2,53,52,18,55, +54,54,51,50,22,23,22,18,5,20, +22,23,54,54,51,50,23,54,54,53, +16,37,6,6,35,34,38,39,6,6, +4,207,224,204,9,64,56,57,61,9, +203,229,224,208,8,62,57,56,64,9, +202,226,252,80,125,137,12,60,53,103, +24,134,124,254,252,13,61,51,53,60, +12,137,125,2,37,233,254,223,37,54, +45,43,56,36,1,38,229,233,1,32, +36,56,42,43,57,38,254,220,225,177, +210,31,42,34,74,31,210,175,1,96, +62,42,32,32,44,31,209,0,0,3, +0,125,255,236,7,127,8,59,0,21, +0,69,0,84,0,85,64,46,67,55, +31,43,43,1,38,70,75,80,72,60, +12,55,10,85,86,21,2,2,7,7, +16,12,82,64,72,58,34,64,58,64, +73,89,40,58,4,28,22,52,22,73, +89,46,52,19,0,63,51,43,17,0, +51,24,63,51,43,17,0,51,24,16, +214,26,220,212,205,50,18,57,47,51, +17,18,1,23,57,17,51,17,51,49, +48,1,21,35,34,46,2,35,34,6, +21,21,35,53,52,54,51,50,30,2, +51,1,50,54,55,22,22,51,50,18, +17,16,2,35,34,6,7,39,54,51, +50,0,17,16,0,33,34,38,39,6, +6,35,32,0,17,16,0,51,50,23, +7,38,38,35,34,2,17,16,18,1, +20,7,53,54,53,52,46,2,53,52, +51,50,22,5,162,17,84,142,120,102, +43,47,60,125,116,112,58,112,119,133, +78,253,40,88,171,61,55,171,93,188, +210,165,147,60,95,43,70,121,154,228, +1,1,254,224,254,253,104,170,76,75, +167,110,254,252,254,227,1,1,228,154, +121,70,43,94,60,148,165,210,2,128, +237,120,31,36,31,92,56,67,7,199, +121,36,43,36,52,51,16,28,103,110, +36,44,36,248,186,66,63,57,72,1, +78,1,45,1,11,1,40,43,31,146, +82,254,136,254,173,254,140,254,98,40, +48,45,43,1,157,1,117,1,85,1, +118,82,146,31,43,254,217,254,244,254, +209,254,180,6,104,162,61,72,41,53, +20,18,17,26,28,73,68,0,0,3, +0,115,255,236,6,4,7,6,0,42, +0,63,0,78,0,92,64,51,19,7, +28,40,40,44,34,64,69,13,74,66, +54,7,10,79,80,50,58,63,45,45, +54,76,66,10,64,31,16,10,16,70, +89,2,23,70,89,2,4,37,10,16, +26,21,4,21,70,89,0,4,22,0, +63,51,43,17,0,51,24,63,51,18, +57,43,43,17,0,51,26,24,16,222, +220,212,50,17,51,205,50,17,18,1, +23,57,17,51,17,51,49,48,5,34, +39,6,35,34,2,17,16,18,51,50, +22,23,7,38,35,34,6,21,16,33, +50,55,22,22,51,32,17,52,38,35, +34,7,39,54,54,51,50,18,17,16, +2,3,21,35,34,46,2,35,34,21, +21,35,53,52,54,51,50,30,2,51, +5,20,7,53,54,53,52,46,2,53, +52,51,50,22,4,43,148,94,92,143, +225,250,207,186,62,119,40,57,89,71, +116,109,1,49,123,112,62,111,67,1, +45,110,115,71,89,57,40,119,62,187, +206,247,81,16,84,143,120,101,43,107, +125,115,112,58,113,118,131,78,254,240, +238,119,30,36,30,92,56,67,20,65, +65,1,35,1,14,1,23,1,40,32, +25,139,51,214,214,254,94,80,42,38, +1,162,214,214,51,139,25,32,254,215, +254,234,254,245,254,218,6,165,120,36, +42,36,102,17,31,100,111,37,43,37, +221,161,62,72,40,56,20,17,17,25, +27,74,68,0,0,2,0,94,255,236, +7,127,7,4,0,13,0,64,0,95, +64,52,48,36,57,54,62,23,23,1, +18,54,41,12,36,7,65,66,14,45, +39,45,73,89,30,55,55,33,39,5, +9,9,13,64,9,15,72,13,7,3, +11,64,20,39,4,59,51,33,51,73, +89,26,33,19,0,63,51,43,17,0, +51,24,63,51,26,222,50,50,205,43, +50,17,51,17,18,57,47,57,43,17, +0,51,17,18,1,23,57,17,51,17, +51,17,51,49,48,1,21,7,35,39, +35,7,35,39,35,7,35,39,53,1, +34,6,7,39,54,51,50,18,17,16, +0,33,34,38,39,35,6,6,35,32, +0,17,16,0,51,50,23,7,38,38, +35,34,2,17,16,18,51,50,54,55, +17,51,17,22,51,50,18,17,16,2, +5,139,80,32,50,186,49,33,49,188, +47,33,80,3,67,60,93,45,70,124, +153,228,255,254,226,254,253,116,172,76, +9,78,172,112,254,252,254,227,1,1, +229,150,126,70,45,93,60,147,165,210, +190,65,130,51,170,102,145,188,212,165, +7,4,27,172,103,103,103,103,172,27, +254,43,41,31,146,80,254,136,254,173, +254,139,254,99,48,48,49,47,1,160, +1,114,1,85,1,118,80,146,31,41, +254,215,254,246,254,209,254,180,38,38, +1,201,254,55,76,1,74,1,49,1, +11,1,40,0,0,2,0,0,0,0, +6,29,5,164,0,13,0,42,0,63, +64,36,36,1,14,26,27,12,18,7, +43,44,40,21,14,31,22,3,17,18, +5,9,9,13,64,9,15,72,13,7, +3,11,35,27,18,15,17,21,0,63, +63,51,51,222,50,50,205,43,50,17, +51,17,18,23,57,63,17,18,1,23, +57,49,48,1,21,7,35,39,35,7, +35,39,35,7,35,39,53,1,7,3, +35,1,51,19,22,23,51,54,54,19, +3,51,0,22,23,51,54,18,17,51, +16,2,7,35,3,38,4,182,82,30, +50,188,49,31,49,188,50,30,80,1, +172,39,170,213,254,127,172,246,39,41, +8,12,35,186,172,178,1,9,45,10, +8,173,153,166,195,219,182,125,33,5, +164,27,172,103,103,103,103,172,27,252, +37,95,254,150,4,72,253,73,111,171, +35,81,1,136,1,213,252,255,144,44, +184,1,179,1,82,254,150,254,7,229, +1,90,92,0,0,1,0,125,254,20, +4,227,5,203,0,23,0,45,64,24, +3,15,9,10,21,10,15,3,24,25, +19,0,73,89,19,4,12,6,73,89, +12,19,10,27,0,63,63,43,0,24, +63,43,17,18,1,23,57,17,51,17, +51,49,48,1,34,0,17,16,0,33, +50,55,17,35,17,35,32,0,17,52, +18,36,51,50,23,7,38,3,72,245, +254,224,1,10,1,2,111,57,170,20, +254,181,254,159,175,1,72,216,237,170, +71,171,5,51,254,192,254,232,254,218, +254,212,23,253,116,1,216,1,132,1, +109,224,1,86,184,84,146,78,0,1, +0,115,254,20,3,162,4,92,0,24, +0,47,64,24,15,3,23,22,9,22, +3,3,25,26,23,27,6,12,70,89, +6,16,0,18,70,89,0,22,0,63, +43,0,24,63,43,0,24,63,17,18, +1,23,57,17,51,17,51,49,48,5, +34,0,17,16,0,51,50,22,23,7, +38,35,34,6,21,20,22,51,50,54, +55,17,35,17,2,117,254,254,252,1, +17,251,79,164,48,49,142,104,177,171, +171,171,53,80,57,166,20,1,31,1, +18,1,20,1,43,34,23,141,51,205, +221,220,200,17,26,253,110,1,216,0, +0,1,0,106,255,252,4,117,5,6, +0,19,0,47,64,33,4,2,8,3, +6,0,17,7,10,16,13,18,12,14, +14,21,20,19,0,3,17,6,15,5, +16,7,13,10,9,12,11,1,18,0, +63,205,23,57,17,18,1,23,57,49, +48,1,3,39,19,37,55,5,19,37, +55,5,19,23,3,5,7,37,3,5, +7,2,2,182,121,182,254,225,66,1, +33,205,254,223,67,1,33,185,118,184, +1,33,68,254,225,204,1,30,65,1, +57,254,195,67,1,66,166,115,168,1, +100,166,117,168,1,61,67,254,192,166, +115,166,254,158,168,115,0,1,0,203, +4,145,3,172,5,180,0,19,0,30, +64,12,0,6,10,16,6,16,20,21, +3,0,13,9,0,47,51,51,50,17, +18,1,57,57,17,51,17,51,49,48, +1,6,6,35,34,38,53,52,54,51, +33,54,54,51,50,22,21,20,6,35, +1,135,6,42,48,51,41,42,54,1, +193,6,43,47,51,45,44,54,4,240, +45,50,50,53,53,41,46,48,49,51, +56,40,0,1,0,248,4,229,3,219, +5,215,0,19,0,28,64,11,7,18, +21,20,0,18,18,12,4,128,9,0, +47,26,204,50,51,17,51,17,18,1, +57,57,49,48,1,50,55,54,51,50, +22,21,21,35,53,52,35,34,14,2, +35,35,53,1,4,120,150,149,81,111, +116,125,106,43,102,121,142,84,16,5, +98,59,58,111,100,31,17,102,36,43, +36,121,0,1,1,223,4,215,2,205, +6,53,0,14,0,24,64,10,10,0, +12,5,0,3,15,16,3,13,0,47, +204,17,18,1,23,57,17,51,49,48, +1,52,54,51,50,21,20,14,2,21, +20,23,21,38,1,223,67,56,92,30, +36,30,119,238,5,184,56,69,76,27, +25,16,18,20,54,40,74,64,0,1, +1,225,4,215,2,207,6,53,0,14, +0,24,64,10,5,0,0,10,2,3, +15,16,12,2,0,47,204,17,18,1, +23,57,17,51,49,48,1,20,7,53, +54,53,52,46,2,53,52,51,50,22, +2,207,238,119,30,36,30,92,56,67, +5,184,161,64,74,40,54,20,18,16, +25,27,76,69,0,8,0,41,254,193, +7,193,5,145,0,12,0,26,0,40, +0,54,0,68,0,82,0,95,0,109, +0,128,64,73,95,40,68,90,34,62, +12,26,7,20,82,54,109,76,48,103, +16,110,111,0,7,58,72,72,65,79, +69,68,62,76,86,99,99,92,106,102, +95,90,109,30,44,44,37,51,47,34, +40,3,54,16,23,7,79,76,106,109, +51,54,23,23,54,51,109,106,76,79, +7,8,9,13,20,3,9,0,47,51, +47,51,18,23,57,47,47,47,47,47, +47,47,47,17,51,17,23,51,17,51, +51,17,51,17,51,51,51,17,51,51, +17,51,17,51,51,51,17,51,51,17, +51,17,51,17,18,1,23,57,49,48, +1,38,38,35,34,6,7,35,54,51, +50,22,23,3,38,38,35,34,6,7, +35,54,54,51,50,22,23,1,38,38, +35,34,6,7,35,54,54,51,50,22, +23,33,38,38,35,34,6,7,35,54, +54,51,50,22,23,1,38,38,35,34, +6,7,35,54,54,51,50,22,23,33, +38,38,35,34,6,7,35,54,54,51, +50,22,23,1,38,38,35,34,6,7, +35,54,51,50,22,23,33,38,38,35, +34,6,7,35,54,54,51,50,22,23, +4,111,5,60,69,78,50,5,75,11, +197,93,113,7,79,5,60,69,78,50, +5,75,5,100,103,92,115,6,1,244, +5,60,68,78,50,5,76,5,101,103, +92,115,6,251,47,5,60,68,78,50, +5,76,5,101,103,92,115,6,4,49, +5,60,68,78,50,5,76,5,101,103, +92,115,6,251,47,5,60,68,78,50, +5,76,5,101,103,92,115,6,4,240, +5,60,68,78,51,5,75,11,198,92, +115,6,249,190,5,60,68,78,50,5, +76,5,101,103,92,115,6,4,207,44, +44,41,47,194,101,93,249,242,44,44, +41,47,89,105,102,92,1,22,45,43, +39,49,90,105,102,93,45,43,39,49, +90,105,102,93,3,219,45,43,39,49, +90,105,102,93,45,43,39,49,90,105, +102,93,254,25,44,44,40,48,194,104, +90,45,43,39,49,90,104,102,92,0, +0,8,0,41,254,127,7,125,5,211, +0,7,0,15,0,23,0,31,0,39, +0,46,0,53,0,62,0,52,64,37, +21,23,37,32,62,58,5,1,41,44, +31,28,50,53,9,13,16,63,64,59, +43,7,46,54,25,21,29,17,47,39, +15,36,51,14,5,12,5,0,47,47, +18,23,57,17,18,1,23,57,49,48, +5,23,6,6,7,35,54,55,3,39, +54,54,55,51,6,7,1,55,22,22, +23,21,38,39,5,7,38,38,39,53, +22,23,1,55,54,54,55,23,6,7, +1,7,6,7,39,54,55,3,39,38, +39,55,22,23,1,23,22,22,23,7, +38,38,39,4,55,11,17,70,36,97, +53,17,59,11,19,73,31,97,52,18, +2,35,14,71,200,65,221,129,251,104, +14,66,191,79,221,129,3,166,2,67, +190,67,69,177,120,252,234,2,155,169, +69,177,120,43,17,82,69,67,123,76, +3,106,17,39,90,22,67,31,130,38, +35,14,66,191,79,221,129,4,152,14, +71,200,65,220,130,254,22,11,19,73, +31,97,53,17,59,11,17,70,36,97, +53,17,1,170,16,39,88,25,68,110, +88,252,149,16,89,63,68,110,88,2, +222,2,140,183,70,198,99,252,233,2, +69,194,60,70,50,195,52,0,0,2, +0,201,254,131,6,8,7,94,0,20, +0,34,0,89,64,47,13,10,12,7, +14,14,9,19,2,2,20,20,24,32, +9,10,5,36,35,20,18,6,5,17, +18,5,18,14,0,14,9,73,89,14, +18,12,34,31,15,24,1,24,28,21, +7,0,3,0,63,50,222,50,205,93, +50,63,63,43,17,18,0,57,57,17, +51,17,51,24,63,17,18,1,23,57, +17,51,17,51,17,51,17,51,51,17, +51,49,48,19,51,17,20,7,7,51, +1,51,17,51,3,35,19,35,17,52, +55,35,1,35,1,34,38,39,51,22, +22,51,50,54,55,51,6,6,201,161, +10,4,8,3,52,184,184,143,197,156, +160,19,9,252,201,186,2,67,186,168, +10,155,10,93,110,105,99,9,158,12, +181,5,182,252,209,118,206,83,4,198, +250,226,253,235,1,125,3,37,175,247, +251,53,6,43,143,164,108,78,93,93, +159,148,0,2,0,176,254,135,5,18, +6,12,0,17,0,31,0,79,64,42, +10,7,9,4,11,11,6,15,1,1, +16,16,21,29,6,7,5,33,32,3, +14,16,17,15,11,6,70,89,11,16, +21,9,34,28,15,21,1,21,25,18, +4,15,0,63,222,50,205,93,50,63, +63,51,43,0,24,63,18,57,57,17, +18,1,23,57,17,51,17,51,17,51, +17,51,51,17,51,49,48,1,17,20, +7,1,51,17,51,3,35,19,35,17, +52,55,1,35,17,37,34,38,39,51, +22,22,51,50,54,55,51,6,6,1, +76,10,2,81,207,176,129,172,125,155, +8,253,174,205,1,236,185,170,10,156, +7,90,116,103,100,10,157,12,178,4, +72,253,106,136,136,3,166,252,71,253, +248,1,121,2,160,158,104,252,90,4, +72,145,143,164,102,84,90,96,158,149, +0,2,0,47,0,0,4,125,5,182, +0,17,0,25,0,77,64,41,8,4, +18,18,1,15,21,11,11,6,15,17, +4,26,27,8,25,73,89,7,17,0, +17,73,89,4,0,8,0,8,0,15, +2,15,18,74,89,15,18,2,3,0, +63,63,43,17,18,0,57,57,24,47, +47,17,51,43,17,0,51,43,17,18, +1,23,57,17,51,17,51,51,17,51, +51,49,48,19,51,53,51,21,33,21, +33,17,51,32,17,20,4,33,33,17, +35,1,51,32,17,52,38,35,35,47, +154,170,1,86,254,170,192,2,74,254, +236,254,241,254,111,154,1,68,221,1, +123,184,201,215,4,252,186,186,150,254, +224,254,100,210,216,4,102,252,43,1, +25,132,128,0,0,2,0,20,0,0, +4,76,6,20,0,18,0,26,0,75, +64,40,4,0,20,20,16,12,23,8, +8,2,12,14,4,27,28,4,19,70, +89,3,14,15,14,71,89,0,15,4, +15,4,15,12,17,0,12,20,70,89, +12,21,0,63,43,0,24,63,18,57, +57,47,47,17,51,43,17,0,51,43, +17,18,1,23,57,17,51,17,51,51, +17,51,51,49,48,1,33,21,33,17, +33,50,22,21,20,6,35,33,17,35, +53,51,53,51,17,17,33,32,53,52, +38,35,1,86,1,39,254,217,1,64, +223,215,224,221,254,33,156,156,166,1, +49,1,31,132,159,5,31,129,253,229, +154,155,164,170,4,158,129,245,251,224, +254,151,185,92,84,0,0,2,0,201, +0,0,4,121,5,182,0,15,0,28, +0,72,64,41,16,10,10,11,24,0, +0,4,5,3,22,6,21,19,20,11, +10,29,30,22,19,28,16,12,28,74, +89,9,16,74,89,6,3,12,9,9, +11,12,3,11,18,0,63,63,18,57, +47,18,57,57,43,43,17,18,0,57, +57,17,18,1,23,57,17,51,17,51, +17,51,49,48,1,20,6,7,23,7, +39,6,35,35,17,35,17,33,32,4, +1,51,50,55,39,55,23,54,53,52, +38,35,35,4,121,115,108,120,100,149, +102,136,184,170,1,137,1,18,1,21, +252,250,166,87,76,108,108,140,127,194, +202,200,4,12,127,201,57,157,84,192, +27,253,193,5,182,215,253,242,10,141, +82,176,72,178,145,142,0,2,0,176, +254,20,4,117,4,92,0,24,0,41, +0,85,64,49,29,11,4,7,7,8, +39,18,18,21,22,20,37,23,34,36, +35,8,10,42,43,37,34,25,32,15, +25,70,89,12,11,11,4,20,23,4, +0,15,16,9,15,8,27,0,32,70, +89,0,22,0,63,43,0,24,63,63, +63,18,23,57,17,51,43,17,18,0, +57,57,17,18,1,23,57,17,51,17, +51,17,51,51,51,49,48,5,34,38, +39,35,22,21,17,35,17,51,23,51, +54,54,51,50,18,17,16,7,23,7, +39,6,3,34,6,7,21,20,22,51, +50,55,39,55,23,54,53,52,38,2, +174,107,177,60,12,12,166,135,25,8, +64,169,109,218,237,183,115,100,131,71, +109,168,150,2,154,170,47,41,121,106, +129,101,150,20,79,82,148,34,254,61, +6,52,150,90,80,254,214,254,243,254, +174,145,156,80,174,24,3,227,186,203, +37,231,199,12,158,80,170,103,249,215, +209,0,0,1,0,47,0,0,4,8, +5,182,0,13,0,60,64,31,3,7, +7,12,8,0,5,8,10,4,14,15, +6,10,11,10,73,89,3,11,11,8, +13,13,2,73,89,13,3,8,18,0, +63,63,43,17,18,0,57,24,47,51, +43,17,0,51,17,18,1,23,57,17, +51,51,17,51,49,48,1,21,33,17, +33,21,33,17,35,17,35,53,51,17, +4,8,253,107,1,168,254,88,170,154, +154,5,182,153,254,2,150,253,119,2, +137,150,2,151,0,1,0,18,0,0, +3,66,4,72,0,13,0,60,64,31, +2,6,6,11,7,0,4,7,9,4, +14,15,5,9,10,9,71,89,2,10, +10,7,12,12,1,70,89,12,15,7, +21,0,63,63,43,17,18,0,57,24, +47,51,43,17,0,51,17,18,1,23, +57,17,51,51,17,51,49,48,1,33, +17,33,21,33,17,35,17,35,53,51, +17,33,3,66,254,20,1,90,254,166, +166,158,158,2,146,3,188,254,168,127, +254,27,1,229,127,1,228,0,0,1, +0,201,254,0,4,219,5,182,0,27, +0,65,64,35,9,3,3,4,25,14, +14,7,20,4,4,28,29,17,23,73, +89,17,28,11,0,73,89,11,11,4, +5,5,8,73,89,5,3,4,18,0, +63,63,43,17,18,0,57,24,47,43, +0,24,63,43,17,18,1,23,57,17, +51,17,51,17,51,49,48,1,34,7, +17,35,17,33,21,33,17,54,51,32, +0,17,16,0,33,34,38,39,53,22, +51,32,17,52,0,2,49,100,90,170, +3,73,253,97,90,121,1,64,1,85, +254,226,254,253,83,125,70,123,137,1, +127,255,0,2,143,12,253,125,5,182, +153,253,252,10,254,173,254,198,254,197, +254,165,21,28,152,49,1,254,245,1, +4,0,0,1,0,176,254,10,3,250, +4,72,0,27,0,65,64,35,8,25, +20,14,14,15,15,2,18,25,4,29, +28,22,11,70,89,22,22,15,16,16, +19,70,89,16,15,15,21,0,5,70, +89,0,27,0,63,43,0,24,63,63, +43,17,18,0,57,24,47,43,17,18, +1,23,57,17,51,17,51,17,51,49, +48,1,34,39,53,22,51,50,54,53, +52,38,35,34,7,17,35,17,33,21, +33,17,54,51,32,0,17,16,2,2, +70,145,101,116,123,133,136,178,181,69, +74,166,2,154,254,12,82,59,1,16, +1,7,228,254,10,60,149,63,202,215, +223,208,17,254,37,4,72,142,254,183, +12,254,229,254,217,254,245,254,218,0, +0,1,0,2,254,131,6,248,5,182, +0,21,0,77,64,41,6,17,17,3, +18,13,12,12,8,9,18,0,1,21, +7,22,23,18,21,18,19,16,9,6, +3,0,0,15,1,15,10,73,89,15, +18,13,34,7,4,1,3,0,63,51, +51,63,63,43,17,18,0,57,17,51, +51,51,51,51,24,63,51,17,18,1, +23,57,17,51,17,51,51,17,51,49, +48,1,1,51,1,17,51,17,1,51, +1,1,51,17,35,17,35,1,17,35, +17,1,35,2,86,253,193,190,2,57, +164,2,58,190,253,192,1,218,180,162, +94,253,186,164,253,187,199,2,240,2, +198,253,60,2,196,253,60,2,196,253, +60,253,168,253,233,1,125,2,229,253, +27,2,229,253,27,0,0,1,0,4, +254,135,6,31,4,72,0,21,0,75, +64,40,2,13,13,21,14,9,8,8, +4,5,14,18,19,17,7,22,23,21, +15,12,5,2,18,18,11,3,0,19, +15,14,17,21,11,6,70,89,11,21, +9,34,0,63,63,43,0,24,63,51, +63,51,51,18,57,17,51,51,51,51, +51,17,18,1,23,57,17,51,17,51, +51,17,51,49,48,1,51,17,1,51, +1,1,51,17,35,17,35,1,17,35, +17,1,35,1,1,51,1,2,164,153, +1,197,182,254,54,1,112,193,162,94, +254,30,153,254,31,191,1,240,254,55, +182,1,195,4,72,253,237,2,19,253, +237,254,90,253,248,1,121,2,45,253, +211,2,45,253,211,2,53,2,19,253, +237,0,255,255,0,74,254,66,4,53, +5,203,2,38,1,177,0,0,0,7, +3,127,1,88,0,0,255,255,0,68, +254,66,3,127,4,92,2,38,1,209, +0,0,0,7,3,127,1,8,0,0, +0,1,0,201,254,131,5,43,5,182, +0,15,0,59,64,32,12,8,8,9, +3,2,2,14,15,6,9,5,16,17, +15,12,6,3,5,13,10,3,9,18, +5,0,73,89,5,18,3,34,0,63, +63,43,0,24,63,63,51,18,23,57, +17,18,1,23,57,17,51,17,51,17, +51,49,48,37,51,17,35,17,35,1, +7,17,35,17,51,17,1,51,1,4, +127,172,162,102,253,233,153,170,170,2, +151,201,253,180,154,253,233,1,125,2, +197,136,253,195,5,182,253,43,2,213, +253,133,0,1,0,176,254,133,4,61, +4,72,0,14,0,58,64,31,14,10, +10,11,6,5,5,1,2,11,4,15, +16,2,14,9,3,8,0,12,15,11, +21,8,3,70,89,8,21,6,34,0, +63,63,43,0,24,63,63,51,18,23, +57,17,18,1,23,57,17,51,17,51, +17,51,49,48,1,51,1,1,51,17, +35,17,35,1,17,35,17,51,17,3, +47,182,254,39,1,127,178,159,84,254, +12,166,166,4,72,253,239,254,88,253, +246,1,123,2,43,253,213,4,72,253, +235,0,0,1,0,201,0,0,4,233, +5,182,0,18,0,56,64,30,6,2, +2,3,10,17,17,7,18,14,12,18, +3,4,19,20,8,10,6,0,16,18, +6,3,11,4,3,15,3,18,0,63, +51,63,51,18,23,57,17,18,1,23, +57,17,51,51,17,51,17,51,17,51, +49,48,1,7,17,35,17,51,17,55, +17,51,21,1,51,1,1,35,1,17, +35,1,240,125,170,170,125,125,1,155, +203,253,180,2,98,200,254,76,125,2, +168,107,253,195,5,182,253,37,139,1, +93,211,1,198,253,133,252,197,2,92, +254,207,0,1,0,176,0,0,4,59, +4,72,0,19,0,58,64,31,6,2, +2,3,14,10,18,18,7,19,15,12, +19,3,4,20,21,8,10,6,1,17, +19,6,3,11,4,15,16,3,21,0, +63,51,63,51,18,23,57,17,18,1, +23,57,17,51,51,17,51,51,17,51, +17,51,49,48,1,39,17,35,17,51, +17,55,17,51,21,1,51,1,21,1, +35,1,21,35,1,205,119,166,166,119, +131,1,14,182,254,60,1,235,194,254, +213,129,1,178,121,253,213,4,72,253, +235,121,1,74,205,1,31,254,37,107, +253,254,1,59,221,0,0,1,0,47, +0,0,4,233,5,182,0,19,0,71, +64,38,8,4,16,16,1,17,11,14, +12,10,6,14,17,19,6,20,21,7, +19,0,19,73,89,4,11,8,14,3, +17,0,0,2,13,17,18,9,2,3, +0,63,51,63,51,18,57,47,18,23, +57,51,43,17,0,51,17,18,1,23, +57,17,51,17,51,51,17,51,51,49, +48,19,51,53,51,21,51,21,35,17, +1,51,1,1,35,1,7,17,35,17, +35,47,154,170,221,221,2,149,203,253, +180,2,98,206,253,241,153,170,154,5, +4,178,178,151,254,110,2,219,253,133, +252,197,2,197,134,253,193,4,109,0, +0,1,0,20,0,0,4,27,6,20, +0,25,0,77,64,43,10,8,4,22, +22,1,23,18,16,6,17,23,25,6, +26,27,20,10,15,19,23,21,7,25, +0,25,71,89,4,15,0,31,0,47, +0,3,0,0,2,15,15,2,0,0, +63,63,18,57,47,93,51,43,17,0, +51,24,63,51,18,57,57,17,18,1, +23,57,17,51,51,17,51,51,51,49, +48,19,51,53,51,21,33,21,33,17, +7,7,51,55,54,54,1,51,1,1, +35,1,7,17,35,17,35,20,156,164, +1,125,254,131,3,3,8,18,55,40, +1,112,199,254,68,1,217,199,254,125, +125,164,156,5,90,186,186,127,253,232, +91,55,24,74,48,1,133,254,45,253, +139,2,4,106,254,102,4,219,0,1, +0,16,0,0,5,131,5,182,0,13, +0,53,64,27,2,10,10,11,5,8, +6,4,8,11,4,14,15,8,2,0, +7,11,18,3,3,0,13,73,89,0, +3,0,63,43,0,24,63,63,51,18, +57,57,17,18,1,23,57,17,51,17, +51,17,51,49,48,19,33,17,1,51, +1,1,35,1,7,17,35,17,33,16, +1,252,2,150,203,253,180,2,98,201, +253,236,154,170,254,174,5,182,253,37, +2,219,253,133,252,197,2,197,136,253, +195,5,29,0,0,1,0,41,0,0, +4,227,4,72,0,12,0,53,64,27, +5,1,1,9,9,10,12,10,4,6, +4,14,13,8,2,0,7,10,21,3, +15,0,12,70,89,0,15,0,63,43, +0,24,63,63,51,18,57,57,17,18, +1,23,57,17,51,17,51,17,51,49, +48,19,33,17,1,51,1,1,35,1, +17,35,17,33,41,2,2,1,219,182, +254,39,2,0,194,254,10,164,254,162, +4,72,253,235,2,21,253,237,253,203, +2,43,253,213,3,188,0,1,0,201, +254,131,5,193,5,182,0,15,0,68, +64,36,12,8,8,9,13,5,5,0, +3,2,2,0,9,3,16,17,12,7, +73,89,12,12,5,14,10,3,9,18, +5,0,73,89,5,18,3,34,0,63, +63,43,0,24,63,63,51,18,57,47, +43,17,18,1,23,57,17,51,17,51, +17,51,17,51,17,51,49,48,37,51, +17,35,17,35,17,33,17,35,17,51, +17,33,17,51,5,31,162,162,170,252, +254,170,170,3,2,170,154,253,233,1, +125,2,176,253,80,5,182,253,146,2, +110,0,0,1,0,176,254,135,4,248, +4,72,0,15,0,78,64,43,1,13, +13,14,2,10,10,5,8,7,7,5, +14,3,16,17,1,12,70,89,15,1, +31,1,2,11,3,1,1,10,3,15, +15,14,21,10,5,70,89,10,21,8, +34,0,63,63,43,0,24,63,63,51, +18,57,47,95,94,93,43,17,18,1, +23,57,17,51,17,51,17,51,17,51, +17,51,49,48,1,17,33,17,51,17, +51,17,35,17,35,17,33,17,35,17, +1,86,2,102,166,150,166,150,253,154, +166,4,72,254,53,1,203,252,71,253, +248,1,121,1,238,254,18,4,72,0, +0,1,0,201,0,0,6,111,5,182, +0,13,0,63,64,33,10,6,6,7, +11,3,3,2,0,2,7,3,14,15, +10,5,73,89,10,10,7,12,12,1, +73,89,12,3,8,3,3,7,18,0, +63,51,63,63,43,17,18,0,57,24, +47,43,17,18,1,23,57,17,51,17, +51,17,51,17,51,49,48,1,33,17, +35,17,33,17,35,17,51,17,33,17, +33,6,111,254,176,172,253,0,170,170, +3,0,1,252,5,29,250,227,2,176, +253,80,5,182,253,146,2,110,0,1, +0,176,0,0,5,193,4,72,0,13, +0,73,64,39,1,11,11,12,2,8, +8,7,4,7,12,3,14,15,13,15, +1,10,70,89,15,1,31,1,2,11, +3,1,1,3,8,12,21,3,6,70, +89,3,15,0,63,43,0,24,63,51, +18,57,47,95,94,93,43,0,24,63, +17,18,1,23,57,17,51,17,51,17, +51,17,51,49,48,1,17,33,17,33, +21,33,17,35,17,33,17,35,17,1, +86,2,102,2,5,254,161,166,253,154, +166,4,72,254,53,1,203,140,252,68, +1,238,254,18,4,72,0,1,0,201, +254,0,8,29,5,182,0,29,0,71, +64,38,4,5,8,0,0,1,23,13, +13,18,1,5,4,30,31,16,21,73, +89,16,28,10,26,73,89,10,10,5, +6,6,3,73,89,6,3,1,5,18, +0,63,51,63,43,17,18,0,57,24, +47,43,0,24,63,43,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,33,35,17,33,17,35,17,33,17, +54,51,32,0,17,16,0,33,34,39, +53,22,51,32,17,52,2,35,34,6, +7,4,217,170,253,68,170,4,16,68, +125,1,50,1,81,254,229,254,254,156, +123,134,127,1,122,230,232,42,127,24, +5,29,250,227,5,182,253,97,12,254, +168,254,200,254,199,254,166,49,152,49, +1,254,242,1,5,7,5,0,0,1, +0,176,254,10,6,168,4,72,0,28, +0,71,64,38,17,18,21,13,13,14, +7,26,26,2,14,18,4,29,30,23, +10,70,89,23,23,18,19,19,16,70, +89,19,15,14,18,21,0,5,70,89, +0,27,0,63,43,0,24,63,51,63, +43,17,18,0,57,24,47,43,17,18, +1,23,57,17,51,17,51,17,51,17, +51,49,48,1,34,39,53,22,51,50, +17,52,38,35,34,7,17,35,17,33, +17,35,17,33,17,54,51,50,0,17, +16,2,5,23,131,97,109,108,240,166, +172,67,72,168,253,223,166,3,111,75, +66,246,1,6,209,254,10,60,149,63, +1,161,223,208,21,254,41,3,184,252, +72,4,72,254,39,14,254,215,254,231, +254,244,254,219,0,2,0,125,255,172, +5,225,5,205,0,40,0,52,0,80, +64,44,27,17,47,35,41,0,8,0, +3,22,32,35,17,7,53,54,38,44, +74,89,12,50,38,38,14,20,20,25, +73,89,20,4,10,5,73,89,10,14, +14,30,73,89,14,19,0,63,43,0, +24,16,196,43,0,24,63,43,17,18, +0,57,24,47,57,57,43,17,18,1, +23,57,17,51,17,51,17,51,49,48, +1,20,2,7,22,51,50,55,21,6, +35,34,39,6,35,32,0,17,16,0, +33,50,23,7,38,35,32,17,16,18, +51,50,55,38,2,53,52,18,51,50, +18,3,52,38,35,34,6,21,20,22, +23,54,54,5,184,138,116,66,90,78, +61,56,91,178,148,102,144,254,202,254, +161,1,73,1,58,127,92,47,84,90, +254,51,255,235,54,46,86,92,198,175, +181,193,176,103,93,94,103,93,83,102, +115,2,166,181,254,203,86,30,22,153, +25,100,36,1,137,1,86,1,120,1, +138,35,145,28,253,158,254,224,254,206, +10,103,1,28,160,244,1,10,254,246, +254,254,177,204,201,176,140,254,85,67, +255,0,0,2,0,115,255,199,4,211, +4,92,0,10,0,53,0,80,64,44, +30,19,0,38,6,44,52,44,47,24, +36,38,19,7,54,55,41,8,71,89, +13,3,41,41,15,22,22,27,70,89, +22,16,11,49,70,89,11,15,15,33, +70,89,15,22,0,63,43,0,24,16, +196,43,0,24,63,43,17,18,0,57, +24,47,57,57,43,17,18,1,23,57, +17,51,17,51,17,51,49,48,1,20, +22,23,54,54,53,52,35,34,6,1, +34,39,6,35,34,38,38,53,16,18, +51,50,23,7,38,35,34,6,21,20, +22,51,50,54,55,38,53,52,54,51, +50,22,21,20,6,7,22,51,50,55, +21,6,2,238,68,63,68,83,135,72, +75,1,102,147,130,96,123,149,226,122, +248,227,91,77,37,54,79,156,145,170, +164,37,53,6,139,168,151,148,157,107, +94,52,67,66,49,39,1,242,94,161, +53,44,158,110,235,125,253,99,77,40, +139,254,164,1,19,1,48,22,138,19, +209,231,206,210,9,3,148,225,173,193, +189,177,125,209,64,26,14,137,14,0, +255,255,0,125,254,66,4,207,5,203, +2,38,0,38,0,0,0,7,3,127, +2,37,0,0,255,255,0,115,254,66, +3,139,4,92,2,38,0,70,0,0, +0,7,3,127,1,131,0,0,0,1, +0,16,254,131,4,90,5,182,0,11, +0,50,64,27,6,11,8,9,3,9, +11,1,4,12,13,11,6,73,89,11, +18,9,34,5,1,2,1,73,89,2, +3,0,63,43,17,0,51,24,63,63, +43,17,18,1,23,57,17,51,17,51, +49,48,1,33,53,33,21,33,17,51, +17,35,17,35,1,223,254,49,4,74, +254,49,162,162,172,5,29,153,153,251, +125,253,233,1,125,0,0,1,0,41, +254,135,3,145,4,72,0,11,0,52, +64,27,6,11,8,9,3,9,11,1, +4,12,13,9,34,5,1,2,1,70, +89,2,15,11,6,70,89,11,21,0, +63,43,0,24,63,43,17,0,51,24, +63,17,18,1,23,57,17,51,17,51, +49,48,1,33,53,33,21,33,17,51, +17,35,17,35,1,137,254,160,3,104, +254,158,150,166,150,3,188,140,140,252, +211,253,248,1,121,0,255,255,0,0, +0,0,4,123,5,182,2,6,0,60, +0,0,0,1,0,0,254,20,4,2, +4,72,0,13,0,41,64,20,0,1, +12,1,3,3,14,15,8,7,13,7, +2,11,3,15,2,21,1,27,0,63, +63,63,51,18,57,57,17,51,17,18, +1,23,57,17,51,49,48,1,35,17, +1,51,19,22,23,51,54,55,19,51, +1,2,84,166,254,82,172,236,83,19, +8,33,70,233,172,254,82,254,20,1, +232,4,76,253,155,222,97,138,181,2, +101,251,180,0,0,1,0,0,0,0, +4,123,5,182,0,16,0,58,64,30, +4,8,8,13,9,2,6,9,11,15, +5,17,18,7,11,12,11,73,89,4, +0,15,12,12,9,1,15,3,9,18, +0,63,63,51,18,57,47,18,57,51, +43,17,0,51,17,18,1,23,57,17, +51,51,17,51,49,48,1,1,51,1, +21,33,21,33,17,35,17,33,53,33, +53,1,51,2,61,1,134,184,254,24, +1,43,254,213,172,254,211,1,45,254, +25,186,2,219,2,219,252,129,59,152, +254,156,1,100,152,51,3,135,0,1, +0,0,254,20,4,2,4,72,0,19, +0,60,64,31,17,1,1,6,2,16, +19,2,4,7,5,20,21,12,11,11, +5,15,7,15,0,4,5,4,71,89, +17,5,21,2,27,0,63,63,51,43, +17,0,51,24,63,51,18,57,17,51, +17,18,1,23,57,17,51,51,17,51, +49,48,5,17,35,17,33,53,33,1, +51,19,22,23,51,54,55,19,51,1, +33,21,2,84,166,254,234,1,20,254, +84,172,236,83,19,8,33,70,233,172, +254,84,1,18,129,254,149,1,107,129, +4,72,253,155,222,97,138,181,2,101, +251,184,129,0,0,1,0,8,254,131, +4,213,5,182,0,15,0,55,64,32, +3,2,2,14,15,12,6,9,10,8, +8,16,17,12,15,9,6,4,5,13, +10,3,8,18,5,0,73,89,5,18, +3,34,0,63,63,43,0,24,63,63, +51,18,23,57,17,18,1,23,57,17, +51,49,48,37,51,17,35,17,35,1, +1,35,1,1,51,1,1,51,1,4, +51,162,162,94,254,119,254,112,180,1, +230,254,59,188,1,107,1,110,181,254, +59,154,253,233,1,125,2,131,253,125, +2,252,2,186,253,189,2,67,253,76, +0,1,0,39,254,133,4,55,4,72, +0,15,0,57,64,33,10,9,9,5, +6,3,13,0,1,15,8,16,17,15, +21,3,6,0,13,4,12,1,12,7, +70,89,12,21,10,34,4,1,15,0, +63,51,63,63,43,17,18,0,23,57, +24,63,17,18,1,23,57,17,51,49, +48,1,1,51,1,1,51,1,1,51, +17,35,17,35,1,1,35,1,184,254, +131,189,1,33,1,32,187,254,131,1, +43,149,166,69,254,205,254,202,188,2, +49,2,23,254,92,1,164,253,233,254, +94,253,246,1,123,1,188,254,68,0, +0,1,0,16,254,131,6,168,5,182, +0,15,0,64,64,34,12,5,0,13, +3,2,2,13,10,5,7,5,16,17, +14,3,11,7,8,7,73,89,8,3, +0,12,5,12,73,89,5,18,3,34, +0,63,63,43,17,0,51,24,63,43, +17,0,51,24,63,17,18,1,23,57, +17,51,17,51,17,51,49,48,37,51, +17,35,17,33,17,33,53,33,21,33, +17,33,17,51,5,254,170,162,251,180, +254,86,4,47,254,37,2,240,170,154, +253,233,1,125,5,29,153,153,251,125, +5,28,0,1,0,41,254,135,5,152, +4,70,0,15,0,63,64,34,2,11, +6,3,9,8,8,3,0,11,13,5, +16,17,1,13,14,13,70,89,14,15, +6,2,11,2,70,89,11,21,9,34, +4,15,0,63,63,63,43,17,0,51, +24,63,43,17,0,51,17,18,1,23, +57,17,51,17,51,17,51,49,48,1, +33,17,33,17,51,17,51,17,35,17, +33,17,33,53,33,3,121,254,151,2, +70,166,156,166,252,120,254,191,3,80, +3,186,252,213,3,183,252,73,253,248, +1,121,3,186,140,0,0,1,0,170, +254,131,5,104,5,182,0,23,0,59, +64,31,21,0,5,3,2,15,12,2, +5,12,3,24,25,18,9,73,89,18, +18,5,22,13,3,5,0,73,89,5, +18,3,34,0,63,63,43,0,24,63, +51,18,57,47,43,17,18,1,23,57, +17,51,17,51,17,51,51,49,48,37, +51,17,35,17,35,17,6,6,35,34, +38,53,17,51,17,20,22,51,50,54, +55,17,51,4,199,161,161,170,149,198, +106,207,223,170,127,143,97,177,169,170, +154,253,233,1,125,2,92,53,39,190, +179,2,69,253,207,121,116,29,55,2, +202,0,0,1,0,156,254,133,4,195, +4,72,0,22,0,59,64,31,1,21, +9,6,14,12,11,11,14,21,3,23, +24,3,18,70,89,3,3,14,7,22, +15,14,9,70,89,14,21,12,34,0, +63,63,43,0,24,63,51,18,57,47, +43,17,18,1,23,57,17,51,17,51, +51,17,51,49,48,1,17,20,51,50, +54,55,17,51,17,51,17,35,17,35, +17,6,6,35,34,38,53,17,1,66, +219,91,166,105,166,150,166,150,105,179, +113,164,186,4,72,254,112,192,56,67, +1,213,252,71,253,246,1,123,1,240, +72,59,172,147,1,156,0,1,0,170, +0,0,4,199,5,182,0,22,0,74, +64,38,5,2,11,21,21,8,22,13, +17,17,16,16,22,2,3,23,24,20, +0,8,0,73,89,11,8,22,8,9, +9,8,22,3,3,17,18,14,3,3, +0,63,51,63,18,23,57,47,47,47, +17,51,43,17,0,51,17,18,1,23, +57,17,51,17,51,17,51,51,17,51, +17,51,49,48,1,32,17,17,51,17, +20,22,51,17,51,17,54,55,17,51, +17,35,17,6,7,17,35,2,117,254, +53,170,135,154,125,134,163,172,172,168, +129,125,2,0,1,113,2,69,253,207, +119,118,1,92,254,170,13,60,2,207, +250,74,2,88,65,17,254,207,0,1, +0,156,0,0,4,29,4,72,0,23, +0,74,64,38,1,22,6,16,16,3, +17,8,12,12,11,11,17,22,3,24, +25,15,19,3,19,70,89,6,3,17, +3,4,4,3,17,3,12,9,23,15, +12,21,0,63,63,51,18,23,57,47, +47,47,17,51,43,17,0,51,17,18, +1,23,57,17,51,17,51,17,51,51, +17,51,17,51,49,48,1,17,20,23, +17,51,17,54,55,17,51,17,35,17, +6,7,21,35,53,35,34,38,53,17, +1,66,200,119,113,133,166,166,128,118, +119,22,160,184,4,72,254,112,186,6, +1,45,254,221,24,89,1,213,251,184, +1,240,91,26,248,234,170,149,1,156, +0,1,0,201,0,0,4,229,5,182, +0,18,0,47,64,23,2,17,17,18, +9,8,8,18,20,19,4,13,73,89, +2,18,4,4,9,18,18,0,3,0, +63,63,51,57,47,18,57,43,17,18, +1,57,57,17,51,17,51,17,51,49, +48,19,51,17,36,51,50,22,21,17, +35,17,52,38,35,34,6,7,17,35, +201,170,1,0,196,207,223,170,127,143, +107,186,149,170,5,182,253,164,92,191, +177,253,186,2,49,120,118,34,50,253, +53,0,0,1,0,176,0,0,4,66, +4,72,0,18,0,47,64,23,0,18, +11,7,7,8,18,8,20,19,14,3, +70,89,11,14,14,8,9,15,0,8, +21,0,63,51,63,18,57,47,57,43, +17,18,1,57,57,17,51,17,51,17, +51,49,48,33,17,52,35,34,6,7, +17,35,17,51,17,54,54,51,50,22, +21,17,3,154,217,88,156,119,166,166, +95,186,114,163,190,1,141,193,49,74, +254,45,4,72,254,14,69,62,168,151, +254,102,0,2,0,61,255,236,6,63, +5,205,0,32,0,39,0,81,64,42, +5,3,0,36,17,17,8,30,37,16, +16,24,30,0,4,40,41,17,30,7, +30,73,89,36,7,2,7,2,27,12, +27,20,73,89,27,19,12,33,73,89, +12,4,0,63,43,0,24,63,43,17, +18,0,57,57,24,47,47,51,43,17, +0,51,17,18,1,23,57,17,51,17, +51,51,17,51,17,51,51,49,48,19, +52,55,51,6,21,20,51,51,55,18, +0,33,32,0,17,21,33,18,0,51, +50,54,55,21,6,6,35,32,0,3, +34,38,1,34,2,7,33,16,38,61, +27,145,20,113,34,5,29,1,77,1, +23,1,41,1,40,251,220,14,1,5, +247,101,202,141,114,221,130,254,198,254, +163,19,142,155,3,175,209,240,16,3, +110,203,3,135,73,54,50,60,103,43, +1,42,1,71,254,133,254,143,69,254, +248,254,239,31,43,156,39,30,1,100, +1,76,118,2,35,254,245,249,1,9, +251,0,0,2,0,51,255,236,4,221, +4,90,0,31,0,38,0,76,64,40, +10,8,5,22,13,36,21,21,29,13, +3,5,5,39,40,22,3,12,3,70, +89,35,12,7,12,7,0,17,17,32, +70,89,17,16,0,25,70,89,0,22, +0,63,43,0,24,63,43,17,18,0, +57,57,24,47,47,51,43,17,0,51, +17,18,1,23,57,17,51,17,51,17, +51,51,49,48,5,34,0,39,36,53, +52,55,51,6,21,20,51,51,55,54, +54,51,50,18,21,21,33,22,22,51, +50,54,55,21,6,6,3,34,6,7, +33,52,38,3,74,243,254,236,6,254, +246,25,141,20,106,21,6,34,250,183, +207,241,253,12,6,172,173,101,159,98, +88,157,160,134,151,14,2,61,140,20, +1,30,252,4,221,69,50,47,59,103, +35,202,224,254,247,226,105,198,195,32, +42,148,38,33,3,227,164,158,157,165, +0,2,0,61,254,131,6,63,5,205, +0,34,0,41,0,93,64,49,11,9, +6,38,23,23,14,3,33,34,39,22, +22,30,34,3,6,5,42,43,34,34, +32,19,23,3,13,3,73,89,38,13, +8,13,8,0,18,18,35,73,89,18, +4,0,26,74,89,0,19,0,63,43, +0,24,63,43,17,18,0,57,57,24, +47,47,51,43,17,0,51,24,63,63, +17,18,1,23,57,17,51,17,51,17, +51,51,17,51,17,51,51,49,48,5, +36,0,3,34,38,53,52,55,51,6, +21,20,51,51,55,18,0,33,32,0, +17,21,33,18,0,51,50,54,55,21, +6,7,17,35,19,34,2,7,33,16, +38,3,160,254,254,254,219,19,142,155, +27,145,20,113,34,5,29,1,77,1, +23,1,41,1,40,251,220,14,1,5, +247,101,202,141,176,235,166,76,209,240, +16,3,110,203,12,29,1,90,1,49, +118,117,73,54,50,60,103,43,1,42, +1,71,254,133,254,143,69,254,248,254, +239,31,43,156,62,5,254,149,6,178, +254,245,249,1,9,251,0,2,0,51, +254,135,4,221,4,90,0,33,0,40, +0,88,64,47,10,8,5,22,13,32, +33,38,21,21,29,33,13,3,5,6, +41,42,33,34,31,22,22,3,12,3, +70,89,37,12,7,12,7,0,17,17, +34,70,89,17,16,0,25,70,89,0, +21,0,63,43,0,24,63,43,17,18, +0,57,57,24,47,47,51,43,17,0, +51,24,63,63,17,18,1,23,57,17, +51,17,51,17,51,17,51,51,49,48, +5,38,2,39,36,53,52,55,51,6, +21,20,51,51,55,54,54,51,50,18, +21,21,33,22,22,51,50,54,55,21, +6,7,17,35,19,34,6,7,33,52, +38,2,213,191,211,6,254,246,25,141, +20,106,21,6,34,250,183,207,241,253, +12,6,172,173,101,159,98,142,165,166, +68,134,151,14,2,61,140,10,31,1, +17,224,4,221,69,50,47,59,103,35, +202,224,254,247,226,105,198,195,32,42, +148,65,4,254,153,5,72,164,158,157, +165,0,255,255,0,84,0,0,2,86, +5,182,2,6,0,44,0,0,255,255, +0,2,0,0,6,188,7,96,2,38, +1,176,0,0,1,7,2,54,1,16, +1,84,0,8,179,1,18,5,38,0, +43,53,255,255,0,4,0,0,5,223, +6,12,2,38,1,208,0,0,1,7, +2,54,0,164,0,0,0,8,179,1, +18,17,38,0,43,53,0,1,0,201, +254,0,5,25,5,182,0,28,0,66, +64,37,7,3,3,4,26,14,14,9, +10,20,4,5,29,30,17,23,73,89, +17,28,7,2,73,89,11,0,74,89, +7,11,11,4,8,5,3,4,18,0, +63,63,51,18,57,47,57,43,43,0, +24,63,43,17,18,1,23,57,17,51, +17,51,17,51,49,48,1,34,7,17, +35,17,51,17,1,51,1,55,32,0, +17,16,0,33,34,38,39,53,22,51, +50,18,53,52,36,2,94,140,95,170, +170,2,137,205,253,133,26,1,79,1, +98,254,217,254,245,82,124,70,122,152, +187,200,254,235,2,123,31,253,164,5, +182,253,60,2,196,253,84,2,254,187, +254,207,254,198,254,164,20,29,152,49, +1,13,241,232,253,0,0,1,0,176, +254,10,4,33,4,72,0,28,0,66, +64,37,4,0,0,1,23,10,16,10, +6,7,1,5,29,30,14,20,70,89, +14,27,4,28,71,89,7,26,70,89, +4,7,7,1,5,2,15,1,21,0, +63,63,51,18,57,47,57,43,43,0, +24,63,43,17,18,1,23,57,17,51, +17,51,17,51,49,48,33,35,17,51, +17,1,51,1,4,18,17,20,6,6, +35,34,39,53,22,22,51,50,54,53, +52,38,35,34,7,1,84,164,164,1, +227,183,254,55,1,0,252,110,204,133, +136,95,46,108,71,135,152,187,190,82, +92,4,72,253,250,2,6,254,30,4, +254,228,254,245,177,252,132,60,145,25, +38,217,200,211,207,24,0,1,0,0, +254,131,5,145,5,182,0,23,0,57, +64,31,3,0,5,4,1,1,5,14, +3,24,25,22,7,73,89,22,3,12, +17,74,89,12,18,5,0,73,89,5, +18,3,34,0,63,63,43,0,24,63, +43,0,24,63,43,17,18,1,23,57, +17,51,17,51,51,49,48,37,51,3, +35,19,35,17,33,7,2,2,6,39, +34,39,53,22,51,50,54,54,18,19, +33,4,217,184,143,197,156,170,254,37, +31,61,93,152,126,74,59,54,59,53, +79,61,93,56,3,18,154,253,233,1, +125,5,31,240,254,33,254,69,174,2, +25,143,26,87,215,2,89,1,184,0, +0,1,0,16,254,135,4,143,4,70, +0,20,0,57,64,31,3,0,5,4, +1,1,5,13,3,21,22,19,7,70, +89,19,15,11,16,71,89,11,21,5, +0,70,89,5,21,3,34,0,63,63, +43,0,24,63,43,0,24,63,43,17, +18,1,23,57,17,51,17,51,51,49, +48,37,51,3,35,19,35,17,33,2, +2,6,35,34,39,53,22,51,50,18, +19,33,3,223,176,129,172,125,166,254, +181,28,94,152,118,58,28,22,28,113, +137,34,2,129,143,253,248,1,121,3, +184,254,152,254,100,192,10,127,6,1, +217,1,246,0,0,1,0,201,254,0, +5,31,5,182,0,21,0,61,64,32, +18,14,14,15,19,11,11,0,0,6, +15,3,22,23,18,13,73,89,18,18, +15,20,16,3,15,18,3,9,73,89, +3,28,0,63,43,0,24,63,63,51, +18,57,47,43,17,18,1,23,57,17, +51,17,51,17,51,17,51,49,48,37, +16,0,33,34,38,39,53,22,51,32, +17,17,33,17,35,17,51,17,33,17, +51,5,31,254,230,254,251,82,122,77, +123,135,1,140,252,254,170,170,3,2, +170,150,254,194,254,168,19,30,150,49, +1,247,2,35,253,80,5,182,253,146, +2,110,0,1,0,176,254,10,4,98, +4,72,0,21,0,71,64,39,15,11, +11,12,16,8,8,19,19,2,12,3, +22,23,15,10,70,89,15,15,31,15, +2,11,3,15,15,12,17,13,15,12, +21,0,5,70,89,0,27,0,63,43, +0,24,63,63,51,18,57,47,95,94, +93,43,17,18,1,23,57,17,51,17, +51,17,51,17,51,49,48,1,34,39, +53,22,51,50,54,53,17,33,17,35, +17,51,17,33,17,51,17,16,2,2, +211,132,93,111,102,125,118,253,156,166, +166,2,100,168,207,254,10,58,149,61, +198,207,1,189,254,18,4,72,254,53, +1,203,251,235,254,244,254,227,0,1, +0,201,254,131,5,215,5,182,0,15, +0,68,64,36,12,8,8,9,13,3, +0,5,4,1,1,5,9,3,16,17, +12,7,73,89,12,12,5,14,10,3, +9,18,5,0,73,89,5,18,3,34, +0,63,63,43,0,24,63,63,51,18, +57,47,43,17,18,1,23,57,17,51, +17,51,51,51,17,51,17,51,49,48, +37,51,3,35,19,35,17,33,17,35, +17,51,17,33,17,51,5,31,184,145, +197,158,170,252,254,170,170,3,2,170, +154,253,233,1,125,2,176,253,80,5, +182,253,146,2,110,0,0,1,0,176, +254,135,5,18,4,70,0,15,0,68, +64,36,1,13,13,14,8,5,2,10, +9,6,6,10,14,3,16,17,1,12, +70,89,1,1,10,3,15,15,14,21, +10,5,70,89,10,21,8,34,0,63, +63,43,0,24,63,63,51,18,57,47, +43,17,18,1,23,57,17,51,17,51, +51,51,17,51,17,51,49,48,1,17, +33,17,51,17,51,3,35,19,35,17, +33,17,35,17,1,86,2,102,166,176, +129,172,125,166,253,154,166,4,70,254, +55,1,201,252,73,253,248,1,121,1, +238,254,18,4,70,0,0,1,0,170, +254,131,4,199,5,182,0,23,0,61, +64,32,15,12,2,3,21,5,5,0, +0,3,12,3,24,25,18,9,73,89, +18,18,1,22,13,3,3,34,1,4, +73,89,1,18,0,63,43,0,24,63, +63,51,18,57,47,43,17,18,1,23, +57,17,51,17,51,17,51,17,51,49, +48,33,35,17,35,17,51,17,6,6, +35,34,38,53,17,51,17,20,22,51, +50,54,55,17,51,4,199,170,162,162, +149,198,106,207,223,170,127,143,97,177, +169,170,254,131,2,23,1,194,53,39, +190,179,2,69,253,207,121,116,29,55, +2,202,0,1,0,156,254,133,4,45, +4,72,0,22,0,61,64,32,1,21, +11,12,6,14,14,9,9,12,21,3, +23,24,3,18,70,89,3,3,10,7, +22,15,12,34,10,13,70,89,10,21, +0,63,43,0,24,63,63,51,18,57, +47,43,17,18,1,23,57,17,51,17, +51,17,51,17,51,49,48,1,17,20, +51,50,54,55,17,51,17,35,17,35, +17,51,17,6,6,35,34,38,53,17, +1,66,219,91,166,105,166,149,166,149, +105,179,113,164,186,4,72,254,112,192, +56,67,1,213,251,184,254,133,2,10, +1,97,72,59,172,147,1,156,0,1, +0,201,254,131,7,41,5,182,0,24, +0,72,64,37,9,6,6,7,17,14, +12,19,18,15,15,19,7,3,25,26, +23,22,2,11,2,19,8,19,14,73, +89,19,18,17,34,12,8,3,0,7, +18,0,63,51,63,51,63,63,43,17, +18,0,57,57,17,51,51,17,18,1, +23,57,17,51,17,51,51,51,17,51, +17,51,49,48,33,1,35,23,22,21, +17,35,17,33,1,51,1,51,17,51, +3,35,19,35,17,52,55,35,1,3, +80,254,16,8,7,7,157,1,0,1, +209,8,1,209,254,184,143,199,158,170, +14,8,254,12,5,16,127,192,47,252, +94,5,182,251,74,4,182,250,228,253, +233,1,125,3,174,132,220,250,242,0, +0,1,0,176,254,135,5,223,4,70, +0,24,0,63,64,32,19,20,8,5, +10,9,6,6,10,20,3,25,26,11, +18,0,18,15,3,21,15,20,21,10, +5,70,89,10,15,21,8,34,0,63, +63,51,43,0,24,63,63,51,18,57, +57,17,51,17,18,1,23,57,17,51, +17,51,51,17,51,49,48,37,55,55, +1,51,17,51,3,35,19,35,17,7, +7,1,35,1,38,39,17,35,17,51, +1,22,2,233,31,43,1,41,211,176, +129,172,125,147,20,58,254,229,139,254, +229,53,20,148,203,1,41,45,160,93, +118,2,211,252,73,253,248,1,121,3, +137,58,153,253,74,2,184,134,75,252, +119,4,70,253,45,110,255,255,0,84, +0,0,2,86,5,182,2,6,0,44, +0,0,255,255,0,0,0,0,5,16, +7,94,2,38,0,36,0,0,1,7, +2,54,0,57,1,82,0,8,179,2, +15,5,38,0,43,53,255,255,0,94, +255,236,3,205,6,12,2,38,0,68, +0,0,1,6,2,54,232,0,0,8, +179,2,37,17,38,0,43,53,255,255, +0,0,0,0,5,16,7,37,2,38, +0,36,0,0,1,7,0,106,0,61, +1,82,0,10,180,3,2,36,5,38, +0,43,53,53,255,255,0,94,255,236, +3,205,5,211,2,38,0,68,0,0, +1,6,0,106,243,0,0,10,180,3, +2,58,17,38,0,43,53,53,255,255, +255,254,0,0,6,129,5,182,2,6, +0,136,0,0,255,255,0,94,255,236, +6,115,4,92,2,6,0,168,0,0, +255,255,0,201,0,0,3,248,7,94, +2,38,0,40,0,0,1,7,2,54, +0,16,1,82,0,8,179,1,12,5, +38,0,43,53,255,255,0,115,255,236, +4,18,6,12,2,38,0,72,0,0, +1,6,2,54,12,0,0,8,179,2, +27,17,38,0,43,53,0,2,0,117, +255,236,5,88,5,205,0,18,0,25, +0,61,64,32,23,14,16,22,22,9, +9,2,14,3,26,27,15,23,73,89, +15,15,12,6,12,19,73,89,12,19, +6,0,73,89,6,4,0,63,43,0, +24,63,43,17,18,0,57,24,47,43, +17,18,1,23,57,17,51,17,51,17, +51,49,48,1,34,7,53,54,54,51, +32,0,17,16,0,33,32,17,53,33, +2,0,3,50,18,55,33,16,22,2, +152,227,226,115,210,134,1,75,1,111, +254,166,254,203,253,172,4,47,17,254, +249,195,210,249,16,252,135,204,5,53, +76,158,38,32,254,113,254,155,254,162, +254,113,2,235,70,1,10,1,14,251, +78,1,13,247,254,248,252,0,0,2, +0,102,255,236,4,6,4,92,0,20, +0,27,0,59,64,31,25,9,24,11, +3,3,17,9,3,28,29,10,25,70, +89,10,10,6,0,6,21,70,89,6, +22,0,14,70,89,0,16,0,63,43, +0,24,63,43,17,18,0,57,24,47, +43,17,18,1,23,57,17,51,51,17, +51,49,48,1,50,0,17,16,0,35, +34,2,53,53,33,38,38,35,34,6, +7,53,54,54,19,50,54,55,33,20, +22,1,250,245,1,23,254,253,218,208, +243,2,244,5,179,166,98,165,95,89, +162,154,133,154,12,253,195,141,4,92, +254,212,254,251,254,248,254,201,1,12, +225,105,204,187,33,41,147,40,34,252, +27,165,156,157,164,0,255,255,0,117, +255,236,5,88,7,37,2,38,2,225, +0,0,1,7,0,106,0,147,1,82, +0,10,180,3,2,47,5,38,0,43, +53,53,255,255,0,102,255,236,4,6, +5,211,2,38,2,226,0,0,1,6, +0,106,234,0,0,10,180,3,2,49, +17,38,0,43,53,53,255,255,0,2, +0,0,6,188,7,37,2,38,1,176, +0,0,1,7,0,106,1,16,1,82, +0,10,180,2,1,39,5,38,0,43, +53,53,255,255,0,4,0,0,5,223, +5,211,2,38,1,208,0,0,1,7, +0,106,0,162,0,0,0,10,180,2, +1,39,17,38,0,43,53,53,255,255, +0,74,255,236,4,53,7,37,2,38, +1,177,0,0,1,7,0,106,255,243, +1,82,0,10,180,2,1,62,5,38, +0,43,53,53,255,255,0,68,255,236, +3,127,5,211,2,38,1,209,0,0, +1,6,0,106,148,0,0,10,180,2, +1,56,17,38,0,43,53,53,0,1, +0,74,255,236,4,55,5,182,0,25, +0,64,64,35,0,19,21,25,15,3, +3,25,19,22,8,5,26,27,25,22, +23,22,73,89,0,18,74,89,0,0, +6,23,3,6,12,74,89,6,19,0, +63,43,0,24,63,18,57,47,43,43, +17,0,51,17,18,1,23,57,17,51, +17,51,17,51,49,48,1,4,4,21, +20,4,33,32,39,53,22,22,51,50, +54,53,52,38,35,35,53,1,33,53, +33,21,1,252,1,23,1,36,254,205, +254,234,254,255,163,96,222,106,199,202, +225,223,140,1,238,253,78,3,135,3, +63,9,211,193,206,232,79,158,46,50, +153,144,134,138,141,1,222,153,139,0, +0,1,0,27,254,20,3,166,4,72, +0,25,0,64,64,35,0,19,21,25, +15,4,4,25,19,22,9,5,26,27, +25,22,23,22,70,89,0,18,71,89, +0,0,7,23,15,7,12,70,89,7, +27,0,63,43,0,24,63,18,57,47, +43,43,17,0,51,17,18,1,23,57, +17,51,17,51,17,51,49,48,1,30, +2,21,20,0,35,34,39,53,22,51, +50,54,53,52,38,35,35,53,1,33, +53,33,21,1,172,149,230,127,254,216, +239,234,138,183,200,161,197,214,202,121, +1,197,253,137,3,56,1,207,7,114, +202,136,222,254,238,70,154,86,190,160, +164,170,114,1,254,142,123,0,255,255, +0,203,0,0,5,82,6,180,2,38, +1,178,0,0,1,7,1,77,0,180, +1,82,0,8,179,1,19,5,38,0, +43,53,255,255,0,176,0,0,4,98, +5,98,2,38,1,210,0,0,1,6, +1,77,49,0,0,8,179,1,17,17, +38,0,43,53,255,255,0,203,0,0, +5,82,7,37,2,38,1,178,0,0, +1,7,0,106,0,190,1,82,0,10, +180,2,1,37,5,38,0,43,53,53, +255,255,0,176,0,0,4,98,5,211, +2,38,1,210,0,0,1,6,0,106, +61,0,0,10,180,2,1,35,17,38, +0,43,53,53,255,255,0,125,255,236, +5,190,7,37,2,38,0,50,0,0, +1,7,0,106,0,209,1,82,0,10, +180,3,2,45,5,38,0,43,53,53, +255,255,0,115,255,236,4,98,5,211, +2,38,0,82,0,0,1,6,0,106, +29,0,0,10,180,3,2,46,17,38, +0,43,53,53,255,255,0,125,255,236, +5,190,5,205,2,6,2,126,0,0, +255,255,0,115,255,236,4,98,4,92, +2,6,2,127,0,0,255,255,0,125, +255,236,5,190,7,37,2,38,2,126, +0,0,1,7,0,106,0,209,1,82, +0,10,180,4,3,47,5,38,0,43, +53,53,255,255,0,115,255,236,4,98, +5,211,2,38,2,127,0,0,1,6, +0,106,27,0,0,10,180,4,3,48, +17,38,0,43,53,53,255,255,0,61, +255,236,4,137,7,37,2,38,1,199, +0,0,1,7,0,106,255,237,1,82, +0,10,180,2,1,48,5,38,0,43, +53,53,255,255,0,57,255,236,3,125, +5,211,2,38,1,231,0,0,1,6, +0,106,142,0,0,10,180,2,1,48, +17,38,0,43,53,53,255,255,0,27, +255,236,4,248,6,180,2,38,1,189, +0,0,1,7,1,77,0,47,1,82, +0,8,179,1,26,5,38,0,43,53, +255,255,0,2,254,20,4,6,5,98, +2,38,0,92,0,0,1,6,1,77, +173,0,0,8,179,1,25,17,38,0, +43,53,255,255,0,27,255,236,4,248, +7,37,2,38,1,189,0,0,1,7, +0,106,0,59,1,82,0,10,180,2, +1,44,5,38,0,43,53,53,255,255, +0,2,254,20,4,6,5,211,2,38, +0,92,0,0,1,6,0,106,183,0, +0,10,180,2,1,43,17,38,0,43, +53,53,255,255,0,27,255,236,4,248, +7,115,2,38,1,189,0,0,1,7, +1,83,0,141,1,82,0,10,180,2, +1,42,5,38,0,43,53,53,255,255, +0,2,254,20,4,6,6,33,2,38, +0,92,0,0,1,6,1,83,4,0, +0,10,180,2,1,41,17,38,0,43, +53,53,255,255,0,170,0,0,4,199, +7,37,2,38,1,193,0,0,1,7, +0,106,0,106,1,82,0,10,180,2, +1,41,5,38,0,43,53,53,255,255, +0,156,0,0,4,45,5,211,2,38, +1,225,0,0,1,6,0,106,23,0, +0,10,180,2,1,40,17,38,0,43, +53,53,0,1,0,201,254,131,4,8, +5,182,0,9,0,45,64,24,4,9, +6,7,1,7,9,3,10,11,9,4, +73,89,9,18,7,34,0,3,73,89, +0,3,0,63,43,0,24,63,63,43, +17,18,1,23,57,17,51,17,51,49, +48,19,33,21,33,17,51,17,35,17, +35,201,3,63,253,107,161,161,170,5, +182,153,251,125,253,233,1,125,0,1, +0,176,254,135,3,66,4,70,0,9, +0,45,64,24,4,9,6,7,1,7, +9,3,10,11,9,4,70,89,9,21, +7,34,0,3,70,89,0,15,0,63, +43,0,24,63,63,43,17,18,1,23, +57,17,51,17,51,49,48,19,33,21, +33,17,51,17,35,17,35,176,2,146, +254,20,150,166,150,4,70,140,252,213, +253,248,1,121,255,255,0,201,0,0, +6,10,7,37,2,38,1,197,0,0, +1,7,0,106,1,27,1,82,0,10, +180,4,3,45,5,38,0,43,53,53, +255,255,0,176,0,0,5,121,5,211, +2,38,1,229,0,0,1,7,0,106, +0,197,0,0,0,10,180,4,3,44, +17,38,0,43,53,53,255,255,0,47, +254,117,4,8,5,182,2,38,2,155, +0,0,0,7,3,128,0,147,0,0, +255,255,0,18,254,117,3,66,4,72, +2,38,2,156,0,0,0,6,3,129, +117,0,255,255,0,8,254,117,4,201, +5,182,0,38,0,59,0,0,0,7, +3,128,3,88,0,0,255,255,0,39, +254,117,4,52,4,72,0,38,0,91, +0,0,0,7,3,129,2,195,0,0, +0,1,0,6,0,0,4,150,5,182, +0,17,0,59,64,34,15,2,17,1, +16,13,4,10,7,9,6,11,12,19, +18,10,17,0,17,73,89,7,13,15, +4,0,0,2,12,15,18,5,2,3, +0,63,51,63,51,18,57,47,57,18, +57,51,43,17,0,51,17,18,1,23, +57,49,48,19,33,1,51,1,1,51, +1,33,21,33,1,35,1,1,35,1, +33,127,1,51,254,119,188,1,107,1, +108,183,254,112,1,60,254,186,1,189, +193,254,119,254,112,182,1,191,254,186, +3,84,2,98,253,187,2,69,253,158, +152,253,68,2,131,253,125,2,188,0, +0,1,0,39,0,0,4,8,4,72, +0,17,0,59,64,34,15,2,17,1, +16,13,4,10,7,9,6,11,12,19, +18,10,17,0,17,71,89,7,13,15, +4,0,0,2,12,15,21,5,2,15, +0,63,51,63,51,18,57,47,57,18, +57,51,43,17,0,51,17,18,1,23, +57,49,48,19,33,1,51,1,1,51, +1,33,21,33,1,35,1,1,35,1, +33,117,1,18,254,180,189,1,33,1, +32,187,254,178,1,24,254,226,1,104, +188,254,205,254,202,188,1,102,254,232, +2,119,1,209,254,92,1,164,254,47, +129,254,10,1,188,254,68,1,246,0, +0,2,0,131,0,0,4,55,5,182, +0,10,0,19,0,52,64,26,4,19, +19,7,15,0,7,0,21,20,3,12, +73,89,3,3,8,5,8,18,74,89, +8,18,5,3,0,63,63,43,17,18, +0,57,24,47,43,17,18,1,57,57, +17,51,17,51,17,51,49,48,19,52, +36,33,51,17,51,17,33,32,36,1, +35,34,6,21,20,22,51,51,131,1, +36,1,32,198,170,254,99,254,245,254, +244,3,10,186,222,194,182,203,217,1, +164,212,206,2,112,250,74,213,1,219, +124,142,143,132,255,255,0,115,255,236, +4,55,6,20,2,6,0,71,0,0, +0,2,0,131,255,236,6,119,5,182, +0,25,0,35,0,70,64,36,30,3, +24,10,10,7,35,15,18,18,35,3, +3,36,37,6,27,73,89,24,6,16, +6,16,0,8,3,12,32,0,32,74, +89,21,0,19,0,63,50,43,17,0, +51,24,63,18,57,57,47,47,57,43, +17,18,1,23,57,17,51,17,51,51, +18,57,17,51,49,48,5,34,38,53, +52,36,33,51,17,51,17,20,51,50, +54,53,17,51,17,20,6,35,34,38, +39,6,19,35,34,6,21,16,33,50, +54,53,2,78,226,233,1,42,1,34, +145,170,230,100,121,170,207,184,118,159, +51,113,41,151,212,194,1,33,127,141, +18,209,208,217,222,2,112,251,183,236, +123,110,1,230,254,24,174,206,82,90, +170,2,192,139,150,254,244,119,112,0, +0,2,0,115,255,236,6,135,6,20, +0,34,0,46,0,81,64,41,44,19, +12,32,32,29,26,38,3,6,6,38, +19,3,47,48,30,0,13,16,26,22, +4,4,16,22,22,42,70,89,22,16, +0,35,16,35,70,89,9,16,22,0, +63,51,43,17,0,51,24,63,43,17, +18,0,57,24,47,18,57,18,57,63, +17,18,1,23,57,17,51,17,51,51, +51,18,57,17,51,49,48,37,50,54, +53,17,51,17,20,6,35,34,38,39, +35,6,6,35,34,2,17,16,18,51, +50,22,23,51,38,38,53,17,51,17, +20,22,33,50,54,53,53,52,38,35, +32,17,20,22,4,254,118,107,168,200, +189,129,158,43,8,75,185,129,208,232, +231,207,106,159,63,12,2,8,166,109, +253,185,162,146,148,162,254,226,139,119, +132,136,1,57,254,189,200,197,91,113, +113,91,1,41,1,12,1,12,1,47, +77,85,17,112,27,1,190,251,140,160, +137,185,206,35,231,201,254,78,214,210, +0,1,0,78,255,236,6,129,5,203, +0,42,0,75,64,40,6,19,40,25, +31,34,34,22,25,19,1,13,6,43, +44,23,2,1,2,1,74,89,2,32, +2,32,37,16,37,28,73,89,37,19, +16,9,74,89,16,4,0,63,43,0, +24,63,43,17,18,0,57,57,24,47, +47,43,17,18,0,57,17,18,1,23, +57,17,51,17,51,17,51,49,48,1, +35,53,51,50,54,53,52,38,35,34, +6,7,39,54,54,51,50,22,21,20, +6,7,21,4,19,22,22,51,50,54, +53,17,51,17,20,6,35,34,38,39, +38,38,1,174,201,193,192,213,154,128, +103,177,103,84,93,246,130,214,245,178, +156,1,98,6,2,108,124,119,112,168, +210,189,202,208,2,2,205,2,172,143, +147,132,108,127,55,69,114,72,80,196, +167,141,183,26,8,51,254,209,150,127, +121,135,1,205,254,41,198,199,209,200, +150,145,0,1,0,80,255,236,5,197, +4,92,0,37,0,75,64,40,18,30, +10,36,2,5,5,36,30,32,14,24, +6,38,39,33,15,14,15,14,70,89, +15,3,15,3,8,27,27,20,70,89, +27,16,8,0,70,89,8,22,0,63, +43,0,24,63,43,17,18,0,57,57, +24,47,47,43,17,18,0,57,17,18, +1,23,57,17,51,17,51,17,51,49, +48,37,50,17,17,51,17,20,6,35, +32,3,38,38,35,35,53,51,32,53, +52,35,34,6,7,39,54,54,51,50, +22,21,20,7,21,22,22,23,22,4, +66,221,166,187,196,254,134,16,5,141, +148,140,111,1,33,242,75,135,77,57, +85,163,104,184,211,192,99,123,5,9, +119,1,12,1,57,254,189,202,195,1, +77,99,88,141,172,162,36,34,135,40, +36,155,134,184,57,8,20,122,106,211, +0,1,0,78,254,131,4,209,5,203, +0,35,0,74,64,40,25,26,30,35, +33,32,32,22,26,35,4,16,6,36, +37,26,5,4,5,4,74,89,5,5, +35,19,35,30,73,89,35,18,33,34, +19,12,74,89,19,4,0,63,43,0, +24,63,63,43,17,18,0,57,24,47, +43,17,18,0,57,17,18,1,23,57, +17,51,17,51,17,51,49,48,1,52, +38,35,35,53,51,50,54,53,52,38, +35,34,6,7,39,54,54,51,50,22, +21,20,6,7,21,22,22,21,17,51, +17,35,17,35,3,131,229,226,217,209, +205,225,164,135,105,195,105,84,97,254, +132,220,253,189,163,184,195,172,162,172, +1,156,133,139,143,147,132,107,128,58, +66,114,74,78,196,167,140,183,25,8, +25,179,148,254,254,253,233,1,125,0, +0,1,0,80,254,135,4,16,4,90, +0,30,0,74,64,40,7,18,25,30, +28,27,27,21,30,18,3,13,6,32, +31,21,4,3,4,3,70,89,4,4, +30,15,30,25,70,89,30,21,28,34, +15,10,70,89,15,16,0,63,43,0, +24,63,63,43,17,18,0,57,24,47, +43,17,18,0,57,17,18,1,23,57, +17,51,17,51,17,51,49,48,1,52, +33,35,53,51,32,53,52,38,35,34, +7,39,54,51,50,22,21,20,7,21, +22,22,21,21,51,17,35,17,35,2, +213,254,203,150,117,1,57,133,119,153, +150,61,161,203,191,213,203,126,112,157, +166,149,1,45,199,141,172,82,80,70, +135,74,154,135,182,57,11,37,137,102, +156,253,248,1,121,0,0,1,0,0, +255,233,7,33,5,182,0,35,0,58, +64,29,20,35,26,29,29,35,9,3, +36,37,27,27,7,18,18,1,73,89, +18,3,23,12,7,12,74,89,32,7, +19,0,63,51,43,17,0,51,24,63, +43,17,18,0,57,24,47,17,18,1, +23,57,17,51,17,51,49,48,1,33, +7,2,2,6,6,35,34,39,53,22, +51,50,54,54,18,18,19,33,17,20, +22,51,50,54,53,17,51,17,20,6, +35,34,38,53,4,12,254,72,31,43, +76,83,130,100,69,64,50,63,49,64, +44,56,74,55,2,239,111,115,112,113, +168,205,188,196,200,5,31,240,254,174, +254,68,210,102,25,143,26,62,104,1, +2,1,233,1,174,251,207,137,121,121, +135,1,205,254,41,193,204,204,197,0, +0,1,0,16,255,236,6,41,4,70, +0,29,0,58,64,29,0,14,5,8, +8,14,22,3,31,30,6,6,20,28, +28,16,70,89,28,15,3,25,20,25, +71,89,11,20,22,0,63,51,43,17, +0,51,24,63,43,17,18,0,57,24, +47,17,18,1,23,57,17,51,17,51, +49,48,1,20,22,51,50,17,17,51, +17,20,6,35,34,38,53,17,33,2, +2,6,35,34,39,53,22,51,50,18, +19,33,3,207,104,119,213,166,187,190, +188,203,254,197,28,94,152,118,58,28, +22,28,113,137,34,2,113,1,131,137, +131,1,10,1,59,254,189,202,195,196, +203,2,61,254,152,254,100,192,10,127, +6,1,217,1,246,0,0,1,0,201, +255,236,7,94,5,182,0,25,0,67, +64,35,23,0,15,6,9,22,18,18, +19,9,15,19,3,26,27,22,17,73, +89,22,7,22,7,19,24,20,3,19, +18,12,3,73,89,12,19,0,63,43, +0,24,63,63,51,18,57,57,47,47, +43,17,18,1,23,57,17,51,17,51, +17,51,17,51,51,49,48,1,20,22, +51,50,54,53,17,51,17,20,6,35, +34,38,53,17,33,17,35,17,51,17, +33,17,51,4,246,110,115,112,113,166, +200,191,195,200,253,39,170,170,2,217, +170,1,133,137,121,121,135,1,205,254, +41,191,206,203,198,1,51,253,80,5, +182,253,146,2,110,0,0,1,0,176, +255,236,6,168,4,72,0,24,0,77, +64,42,5,2,19,10,13,1,22,22, +23,13,19,23,3,25,26,1,21,70, +89,15,1,31,1,2,11,3,1,11, +1,11,23,3,24,15,23,21,16,8, +70,89,16,22,0,63,43,0,24,63, +63,51,18,57,57,47,47,95,94,93, +43,17,18,1,23,57,17,51,17,51, +17,51,17,51,51,49,48,1,17,33, +17,51,17,20,22,51,50,17,17,51, +17,20,6,35,34,38,53,53,33,17, +35,17,1,86,2,80,166,106,119,213, +166,187,192,186,205,253,176,166,4,72, +254,53,1,203,253,61,137,133,1,12, +1,57,254,189,202,195,198,201,115,254, +18,4,72,0,0,1,0,125,255,236, +5,154,5,203,0,28,0,58,64,31, +22,8,27,2,2,15,28,8,4,29, +30,0,28,73,89,0,0,5,12,12, +19,73,89,12,4,5,25,73,89,5, +19,0,63,43,0,24,63,43,17,18, +0,57,24,47,43,17,18,1,23,57, +17,51,17,51,49,48,1,33,21,16, +0,33,32,0,17,52,18,36,51,50, +22,23,7,38,38,35,32,0,17,16, +0,51,32,17,33,3,102,2,52,254, +204,254,201,254,187,254,147,179,1,85, +234,120,237,83,66,90,214,87,254,245, +254,222,1,11,247,1,180,254,127,2, +240,86,254,161,254,177,1,145,1,96, +229,1,84,181,49,39,148,38,46,254, +197,254,227,254,227,254,195,1,215,0, +0,1,0,115,255,236,4,176,4,92, +0,25,0,58,64,31,18,7,24,2, +2,12,25,7,4,26,27,0,25,70, +89,0,0,4,10,10,15,70,89,10, +16,4,21,70,89,4,22,0,63,43, +0,24,63,43,17,18,0,57,24,47, +43,17,18,1,23,57,17,51,17,51, +49,48,1,33,21,16,33,32,0,17, +16,0,33,50,23,7,38,35,34,6, +21,20,22,51,50,54,53,33,2,178, +1,254,253,254,254,238,254,215,1,67, +1,33,212,175,59,168,166,205,229,204, +197,169,175,254,170,2,63,67,253,240, +1,39,1,16,1,14,1,43,80,131, +74,222,210,207,223,160,157,0,0,1, +0,16,255,236,4,244,5,182,0,20, +0,57,64,29,5,19,10,13,13,3, +19,0,4,21,22,11,11,16,1,16, +8,73,89,16,19,4,0,1,0,73, +89,1,3,0,63,43,17,0,51,24, +63,43,17,18,0,57,24,47,17,18, +1,23,57,17,51,17,51,49,48,19, +53,33,21,33,17,20,22,51,50,17, +17,51,17,20,6,35,34,38,53,17, +16,4,60,254,47,119,114,232,168,211, +189,198,205,5,29,153,153,252,104,137, +123,1,0,1,207,254,41,192,205,206, +195,3,160,0,0,1,0,41,255,236, +4,135,4,70,0,20,0,54,64,28, +2,16,7,10,10,0,16,18,4,21, +22,1,18,19,18,70,89,8,8,13, +19,15,13,5,70,89,13,22,0,63, +43,0,24,63,18,57,47,43,17,0, +51,17,18,1,23,57,17,51,17,51, +49,48,1,33,17,20,22,51,50,17, +17,51,17,20,6,35,34,38,53,17, +33,53,33,3,129,254,166,109,118,215, +166,189,192,192,201,254,168,3,88,3, +186,253,201,137,131,1,4,1,65,254, +189,202,195,203,196,2,63,140,0,1, +0,111,255,236,4,88,5,203,0,38, +0,71,64,38,21,32,12,0,36,35, +5,27,17,35,0,32,6,39,40,35, +15,18,15,18,74,89,15,15,29,3, +29,24,74,89,29,19,3,9,74,89, +3,4,0,63,43,0,24,63,43,17, +18,0,57,24,47,43,17,18,0,57, +17,18,1,23,57,17,51,17,51,17, +51,49,48,19,52,36,51,32,23,7, +38,38,35,34,6,21,20,22,51,51, +21,35,34,6,21,20,22,51,50,55, +21,6,33,32,36,53,52,54,55,53, +38,38,156,1,8,225,1,2,209,94, +105,181,101,140,159,209,200,217,213,222, +232,202,183,233,199,175,254,251,254,244, +254,219,207,188,170,180,4,92,169,198, +144,120,68,52,123,114,128,147,141,142, +138,142,141,92,158,77,220,197,151,192, +22,8,25,178,255,255,0,90,255,236, +3,135,4,92,2,6,1,130,0,0, +255,255,0,0,254,117,5,107,5,182, +0,38,1,181,0,0,0,7,3,128, +3,250,0,0,255,255,0,16,254,117, +4,115,4,72,2,38,1,213,0,0, +0,7,3,129,3,2,0,0,255,255, +0,0,254,160,5,16,5,188,2,38, +0,36,0,0,0,7,2,103,4,233, +0,0,255,255,0,94,254,160,3,205, +4,90,2,38,0,68,0,0,0,7, +2,103,4,121,0,0,255,255,0,0, +0,0,5,16,7,225,2,38,0,36, +0,0,1,7,2,102,4,252,1,82, +0,8,179,2,19,5,38,0,43,53, +255,255,0,94,255,236,3,205,6,143, +2,38,0,68,0,0,1,7,2,102, +4,166,0,0,0,8,179,2,41,17, +38,0,43,53,255,255,0,0,0,0, +5,16,7,209,2,38,0,36,0,0, +1,7,3,119,4,229,1,82,0,10, +180,3,2,21,5,38,0,43,53,53, +255,255,0,94,255,236,4,65,6,127, +2,38,0,68,0,0,1,7,3,119, +4,147,0,0,0,10,180,3,2,43, +17,38,0,43,53,53,255,255,0,0, +0,0,5,16,7,209,2,38,0,36, +0,0,1,7,3,120,4,221,1,82, +0,10,180,3,2,21,5,38,0,43, +53,53,255,255,0,45,255,236,3,205, +6,127,2,38,0,68,0,0,1,7, +3,120,4,147,0,0,0,10,180,3, +2,43,17,38,0,43,53,53,255,255, +0,0,0,0,5,16,8,74,2,38, +0,36,0,0,1,7,3,121,4,217, +1,82,0,10,180,3,2,21,5,38, +0,43,53,53,255,255,0,94,255,236, +4,23,6,248,2,38,0,68,0,0, +1,7,3,121,4,156,0,0,0,10, +180,3,2,43,17,38,0,43,53,53, +255,255,0,0,0,0,5,16,8,98, +2,38,0,36,0,0,1,7,3,122, +4,229,1,82,0,10,180,3,2,45, +5,38,0,43,53,53,255,255,0,94, +255,236,3,205,7,16,2,38,0,68, +0,0,1,7,3,122,4,145,0,0, +0,10,180,3,2,67,17,38,0,43, +53,53,255,255,0,0,254,160,5,16, +7,115,2,38,0,36,0,0,0,39, +2,103,4,233,0,0,1,7,1,75, +0,43,1,82,0,8,179,3,41,5, +38,0,43,53,255,255,0,94,254,160, +3,205,6,33,2,38,0,68,0,0, +0,39,2,103,4,121,0,0,1,6, +1,75,212,0,0,8,179,3,62,17, +38,0,43,53,255,255,0,0,0,0, +5,16,8,19,2,38,0,36,0,0, +1,7,3,123,4,236,1,82,0,10, +180,3,2,23,5,38,0,43,53,53, +255,255,0,94,255,236,3,205,6,193, +2,38,0,68,0,0,1,7,3,123, +4,154,0,0,0,10,180,3,2,45, +17,38,0,43,53,53,255,255,0,0, +0,0,5,16,8,19,2,38,0,36, +0,0,1,7,3,124,4,233,1,82, +0,10,180,3,2,23,5,38,0,43, +53,53,255,255,0,94,255,236,3,205, +6,193,2,38,0,68,0,0,1,7, +3,124,4,152,0,0,0,10,180,3, +2,45,17,38,0,43,53,53,255,255, +0,0,0,0,5,16,8,88,2,38, +0,36,0,0,1,7,3,125,4,233, +1,82,0,10,180,3,2,33,5,38, +0,43,53,53,255,255,0,94,255,236, +3,205,7,6,2,38,0,68,0,0, +1,7,3,125,4,160,0,0,0,10, +180,3,2,55,17,38,0,43,53,53, +255,255,0,0,0,0,5,16,8,94, +2,38,0,36,0,0,1,7,3,126, +4,227,1,82,0,10,180,3,2,39, +5,38,0,43,53,53,255,255,0,94, +255,236,3,205,7,12,2,38,0,68, +0,0,1,7,3,126,4,152,0,0, +0,10,180,3,2,61,17,38,0,43, +53,53,255,255,0,0,254,160,5,16, +7,73,2,38,0,36,0,0,0,39, +1,78,0,45,1,100,1,7,2,103, +4,233,0,0,0,8,179,2,15,5, +38,0,43,53,255,255,0,94,254,160, +3,205,5,229,2,38,0,68,0,0, +0,38,1,78,216,0,1,7,2,103, +4,121,0,0,0,8,179,2,37,17, +38,0,43,53,255,255,0,201,254,160, +3,248,5,182,2,38,0,40,0,0, +0,7,2,103,4,193,0,0,255,255, +0,115,254,160,4,18,4,92,2,38, +0,72,0,0,0,7,2,103,4,184, +0,0,255,255,0,201,0,0,3,248, +7,225,2,38,0,40,0,0,1,7, +2,102,4,209,1,82,0,8,179,1, +16,5,38,0,43,53,255,255,0,115, +255,236,4,18,6,143,2,38,0,72, +0,0,1,7,2,102,4,201,0,0, +0,8,179,2,31,17,38,0,43,53, +255,255,0,201,0,0,3,248,7,47, +2,38,0,40,0,0,1,7,1,82, +255,228,1,82,0,8,179,1,21,5, +38,0,43,53,255,255,0,115,255,236, +4,18,5,221,2,38,0,72,0,0, +1,6,1,82,208,0,0,8,179,2, +36,17,38,0,43,53,255,255,0,201, +0,0,4,111,7,209,2,38,0,40, +0,0,1,7,3,119,4,193,1,82, +0,10,180,2,1,18,5,38,0,43, +53,53,255,255,0,115,255,236,4,92, +6,127,2,38,0,72,0,0,1,7, +3,119,4,174,0,0,0,10,180,3, +2,33,17,38,0,43,53,53,255,255, +0,93,0,0,3,248,7,209,2,38, +0,40,0,0,1,7,3,120,4,195, +1,82,0,10,180,2,1,18,5,38, +0,43,53,53,255,255,0,74,255,236, +4,18,6,127,2,38,0,72,0,0, +1,7,3,120,4,176,0,0,0,10, +180,3,2,33,17,38,0,43,53,53, +255,255,0,201,0,0,4,57,8,74, +2,38,0,40,0,0,1,7,3,121, +4,190,1,82,0,10,180,2,1,18, +5,38,0,43,53,53,255,255,0,115, +255,236,4,29,6,248,2,38,0,72, +0,0,1,7,3,121,4,162,0,0, +0,10,180,3,2,33,17,38,0,43, +53,53,255,255,0,201,0,0,3,248, +8,98,2,38,0,40,0,0,1,7, +3,122,4,184,1,82,0,10,180,2, +1,42,5,38,0,43,53,53,255,255, +0,115,255,236,4,18,7,16,2,38, +0,72,0,0,1,7,3,122,4,162, +0,0,0,10,180,3,2,57,17,38, +0,43,53,53,255,255,0,201,254,160, +3,248,7,115,2,38,0,40,0,0, +0,39,2,103,4,190,0,0,1,7, +1,75,0,2,1,82,0,8,179,2, +37,5,38,0,43,53,255,255,0,115, +254,160,4,18,6,33,2,38,0,72, +0,0,0,39,2,103,4,176,0,0, +1,6,1,75,241,0,0,8,179,3, +52,17,38,0,43,53,255,255,0,84, +0,0,2,86,7,225,2,38,0,44, +0,0,1,7,2,102,3,201,1,82, +0,8,179,1,16,5,38,0,43,53, +255,255,0,123,0,0,1,230,6,143, +2,38,0,243,0,0,1,7,2,102, +3,115,0,0,0,8,179,1,8,17, +38,0,43,53,255,255,0,84,254,160, +2,86,5,182,2,38,0,44,0,0, +0,7,2,103,3,180,0,0,255,255, +0,157,254,160,1,102,5,223,2,38, +0,76,0,0,0,7,2,103,3,98, +0,0,255,255,0,125,254,160,5,190, +5,205,2,38,0,50,0,0,0,7, +2,103,5,127,0,0,255,255,0,115, +254,160,4,98,4,92,2,38,0,82, +0,0,0,7,2,103,4,201,0,0, +255,255,0,125,255,236,5,190,7,225, +2,38,0,50,0,0,1,7,2,102, +5,143,1,82,0,8,179,2,28,5, +38,0,43,53,255,255,0,115,255,236, +4,98,6,143,2,38,0,82,0,0, +1,7,2,102,4,217,0,0,0,8, +179,2,29,17,38,0,43,53,255,255, +0,125,255,236,5,190,7,209,2,38, +0,50,0,0,1,7,3,119,5,125, +1,82,0,10,180,3,2,30,5,38, +0,43,53,53,255,255,0,115,255,236, +4,117,6,127,2,38,0,82,0,0, +1,7,3,119,4,199,0,0,0,10, +180,3,2,31,17,38,0,43,53,53, +255,255,0,125,255,236,5,190,7,209, +2,38,0,50,0,0,1,7,3,120, +5,125,1,82,0,10,180,3,2,30, +5,38,0,43,53,53,255,255,0,97, +255,236,4,98,6,127,2,38,0,82, +0,0,1,7,3,120,4,199,0,0, +0,10,180,3,2,31,17,38,0,43, +53,53,255,255,0,125,255,236,5,190, +8,74,2,38,0,50,0,0,1,7, +3,121,5,123,1,82,0,10,180,3, +2,30,5,38,0,43,53,53,255,255, +0,115,255,236,4,98,6,248,2,38, +0,82,0,0,1,7,3,121,4,199, +0,0,0,10,180,3,2,31,17,38, +0,43,53,53,255,255,0,125,255,236, +5,190,8,98,2,38,0,50,0,0, +1,7,3,122,5,121,1,82,0,10, +180,3,2,54,5,38,0,43,53,53, +255,255,0,115,255,236,4,98,7,16, +2,38,0,82,0,0,1,7,3,122, +4,197,0,0,0,10,180,3,2,55, +17,38,0,43,53,53,255,255,0,125, +254,160,5,190,7,115,2,38,0,50, +0,0,0,39,2,103,5,127,0,0, +1,7,1,75,0,193,1,82,0,8, +179,3,49,5,38,0,43,53,255,255, +0,115,254,160,4,98,6,33,2,38, +0,82,0,0,0,39,2,103,4,205, +0,0,1,6,1,75,14,0,0,8, +179,3,50,17,38,0,43,53,255,255, +0,125,255,236,6,100,7,115,2,38, +2,95,0,0,1,7,0,118,1,43, +1,82,0,8,179,2,43,5,38,0, +43,53,255,255,0,115,255,236,5,25, +6,33,2,38,2,96,0,0,1,6, +0,118,109,0,0,8,179,2,43,17, +38,0,43,53,255,255,0,125,255,236, +6,100,7,115,2,38,2,95,0,0, +1,7,0,67,0,135,1,82,0,8, +179,2,35,5,38,0,43,53,255,255, +0,115,255,236,5,25,6,33,2,38, +2,96,0,0,1,6,0,67,212,0, +0,8,179,2,36,17,38,0,43,53, +255,255,0,125,255,236,6,100,7,225, +2,38,2,95,0,0,1,7,2,102, +5,143,1,82,0,8,179,2,38,5, +38,0,43,53,255,255,0,115,255,236, +5,25,6,143,2,38,2,96,0,0, +1,7,2,102,4,217,0,0,0,8, +179,2,39,17,38,0,43,53,255,255, +0,125,255,236,6,100,7,47,2,38, +2,95,0,0,1,7,1,82,0,160, +1,82,0,8,179,2,43,5,38,0, +43,53,255,255,0,115,255,236,5,25, +5,221,2,38,2,96,0,0,1,6, +1,82,245,0,0,8,179,2,35,17, +38,0,43,53,255,255,0,125,254,160, +6,100,6,20,2,38,2,95,0,0, +0,7,2,103,5,123,0,0,255,255, +0,115,254,160,5,25,4,240,2,38, +2,96,0,0,0,7,2,103,4,201, +0,0,255,255,0,186,254,160,5,25, +5,182,2,38,0,56,0,0,0,7, +2,103,5,74,0,0,255,255,0,164, +254,160,4,57,4,72,2,38,0,88, +0,0,0,7,2,103,4,184,0,0, +255,255,0,186,255,236,5,25,7,225, +2,38,0,56,0,0,1,7,2,102, +5,84,1,82,0,8,179,1,22,5, +38,0,43,53,255,255,0,164,255,236, +4,57,6,143,2,38,0,88,0,0, +1,7,2,102,4,213,0,0,0,8, +179,1,25,17,38,0,43,53,255,255, +0,186,255,236,6,123,7,115,2,38, +2,97,0,0,1,7,0,118,0,238, +1,82,0,8,179,1,37,5,38,0, +43,53,255,255,0,164,255,236,5,150, +6,33,2,38,2,98,0,0,1,6, +0,118,121,0,0,8,179,1,38,17, +38,0,43,53,255,255,0,186,255,236, +6,123,7,115,2,38,2,97,0,0, +1,7,0,67,0,90,1,82,0,8, +179,1,29,5,38,0,43,53,255,255, +0,164,255,236,5,150,6,33,2,38, +2,98,0,0,1,6,0,67,187,0, +0,8,179,1,31,17,38,0,43,53, +255,255,0,186,255,236,6,123,7,225, +2,38,2,97,0,0,1,7,2,102, +5,96,1,82,0,8,179,1,32,5, +38,0,43,53,255,255,0,164,255,236, +5,150,6,143,2,38,2,98,0,0, +1,7,2,102,4,219,0,0,0,8, +179,1,34,17,38,0,43,53,255,255, +0,186,255,236,6,123,7,47,2,38, +2,97,0,0,1,7,1,82,0,127, +1,82,0,8,179,1,37,5,38,0, +43,53,255,255,0,164,255,236,5,150, +5,221,2,38,2,98,0,0,1,6, +1,82,255,0,0,8,179,1,30,17, +38,0,43,53,255,255,0,186,254,160, +6,123,6,20,2,38,2,97,0,0, +0,7,2,103,5,76,0,0,255,255, +0,164,254,160,5,150,4,242,2,38, +2,98,0,0,0,7,2,103,4,178, +0,0,255,255,0,0,254,160,4,123, +5,182,2,38,0,60,0,0,0,7, +2,103,4,156,0,0,255,255,0,2, +254,20,4,6,4,72,2,38,0,92, +0,0,0,7,2,103,5,158,255,253, +255,255,0,0,0,0,4,123,7,225, +2,38,0,60,0,0,1,7,2,102, +4,170,1,82,0,8,179,1,13,5, +38,0,43,53,255,255,0,2,254,20, +4,6,6,143,2,38,0,92,0,0, +1,7,2,102,4,106,0,0,0,8, +179,1,26,17,38,0,43,53,255,255, +0,0,0,0,4,123,7,47,2,38, +0,60,0,0,1,7,1,82,255,194, +1,82,0,8,179,1,18,5,38,0, +43,53,255,255,0,2,254,20,4,6, +5,221,2,38,0,92,0,0,1,6, +1,82,138,0,0,8,179,1,31,17, +38,0,43,53,255,255,0,115,254,197, +4,211,6,20,2,38,0,211,0,0, +0,7,0,66,0,180,0,0,0,2, +251,229,4,217,254,180,6,33,0,9, +0,19,0,30,64,12,4,10,14,14, +0,0,21,15,6,128,11,1,0,47, +51,26,205,50,17,1,51,17,51,18, +57,57,49,48,1,35,38,38,39,53, +51,22,22,23,5,35,38,38,39,53, +51,22,22,23,254,180,96,52,177,37, +186,28,99,49,254,156,96,56,174,37, +187,28,99,49,4,217,42,202,63,21, +61,174,68,25,44,200,63,21,61,174, +68,0,0,2,252,113,4,217,255,174, +6,127,0,13,0,21,0,40,64,17, +21,0,6,17,17,23,3,6,10,21, +10,21,10,17,192,6,1,0,47,51, +26,204,57,57,47,47,17,18,57,17, +1,51,17,51,57,57,49,48,1,35, +38,39,6,7,35,53,55,54,55,51, +22,23,39,54,55,51,21,6,7,35, +254,211,94,112,99,114,97,94,53,112, +52,176,66,151,80,73,54,172,83,120, +96,4,217,75,91,101,65,25,60,123, +77,94,166,194,91,112,21,110,96,0, +0,2,251,154,4,217,254,215,6,127, +0,13,0,21,0,42,64,18,6,14, +17,17,0,0,23,3,6,10,15,10, +15,10,19,192,6,1,0,47,51,26, +204,57,57,47,47,17,18,57,17,1, +51,17,51,18,57,57,49,48,1,35, +38,39,6,7,35,53,55,54,55,51, +22,23,37,35,38,39,53,51,22,23, +254,215,94,97,114,106,105,94,53,112, +52,176,66,151,253,238,95,120,84,172, +52,75,4,217,65,101,96,70,23,60, +123,77,94,166,172,94,112,21,108,97, +0,2,252,113,4,217,255,123,6,248, +0,13,0,31,0,52,64,24,16,19, +0,19,27,3,6,6,22,14,14,33, +3,10,6,18,10,18,10,25,30,192, +6,1,0,47,51,26,204,50,57,57, +47,47,17,18,57,17,1,51,17,51, +51,18,23,57,17,51,49,48,1,35, +38,39,6,7,35,53,55,54,55,51, +22,23,19,20,7,7,35,39,54,54, +53,52,38,35,34,7,53,54,51,50, +254,211,94,112,99,114,97,94,53,112, +52,176,66,151,168,127,6,80,10,57, +63,57,43,46,26,25,55,195,4,217, +75,91,101,65,25,60,123,77,94,166, +1,123,103,29,81,131,9,32,38,37, +25,6,80,6,0,2,252,104,4,217, +254,231,7,16,0,23,0,37,0,58, +64,27,24,30,9,9,21,21,39,27, +30,34,30,25,17,9,0,5,12,34, +0,12,12,0,34,3,21,192,25,0, +47,26,204,23,57,47,47,47,17,51, +16,196,51,17,51,17,18,57,17,1, +51,17,51,18,57,57,49,48,1,34, +46,2,35,34,6,7,35,54,54,51, +50,30,2,51,50,54,55,51,6,6, +19,35,38,39,6,7,35,53,55,54, +55,51,22,23,254,45,37,71,67,63, +28,40,42,14,91,13,101,75,37,73, +67,62,27,40,42,12,90,11,99,94, +94,97,114,106,105,94,53,112,52,176, +66,151,6,53,30,37,30,49,50,106, +113,30,36,30,49,49,104,115,254,164, +65,101,96,70,23,60,123,77,94,166, +0,2,252,121,4,217,254,199,6,193, +0,7,0,20,0,36,64,15,7,4, +10,10,18,18,22,3,64,7,17,10, +128,14,8,0,47,51,26,221,50,212, +26,205,17,1,51,17,51,18,57,57, +49,48,1,54,55,51,21,6,7,35, +19,32,3,51,22,22,51,50,54,55, +51,6,6,253,94,80,49,172,86,119, +96,62,254,236,15,102,9,76,106,98, +86,8,105,11,149,5,244,104,101,21, +114,93,254,252,1,4,72,57,65,64, +120,140,0,2,252,121,4,217,254,199, +6,193,0,7,0,20,0,36,64,15, +7,4,10,10,18,18,22,4,64,1, +17,10,128,14,8,0,47,51,26,221, +50,212,26,205,17,1,51,17,51,18, +57,57,49,48,1,35,38,39,53,51, +22,23,3,32,3,51,22,22,51,50, +54,55,51,6,6,253,209,94,119,86, +172,52,75,53,254,236,15,102,9,76, +106,98,86,8,105,11,149,5,221,93, +114,21,108,97,254,229,1,4,72,57, +65,64,120,140,0,2,252,121,4,217, +254,199,7,6,0,17,0,30,0,46, +64,21,8,0,0,5,13,3,20,20, +28,28,32,11,16,4,4,24,24,27, +20,128,18,0,47,26,205,50,51,17, +57,47,196,50,17,1,51,17,51,18, +23,57,17,51,49,48,1,20,7,7, +35,39,54,54,53,52,38,35,34,7, +53,54,51,50,3,32,3,51,22,22, +51,50,54,55,51,6,6,254,49,127, +6,82,10,57,66,57,44,37,36,22, +62,192,149,254,236,15,102,9,76,106, +98,86,8,105,11,149,6,121,100,29, +41,90,9,32,37,37,26,6,78,8, +253,211,1,4,72,57,65,64,120,140, +0,2,252,104,4,217,254,231,7,12, +0,23,0,36,0,48,64,21,26,34, +9,9,21,38,5,12,12,30,30,24, +21,64,17,9,0,33,26,128,24,0, +47,26,221,50,214,196,51,26,205,17, +51,17,57,47,51,17,1,51,50,17, +57,57,49,48,1,34,46,2,35,34, +6,7,35,54,54,51,50,30,2,51, +50,54,55,51,6,6,3,32,3,51, +22,22,51,50,54,55,51,6,6,254, +45,37,71,67,63,28,40,42,14,91, +13,100,76,37,73,67,62,27,40,42, +12,90,11,99,221,254,236,15,102,9, +76,106,98,86,8,105,11,149,6,51, +30,36,30,48,50,104,113,30,36,30, +49,49,103,114,254,166,1,4,72,57, +65,64,120,140,0,1,0,49,254,66, +1,109,0,0,0,15,0,26,64,11, +0,5,5,2,10,3,16,17,13,8, +3,0,47,204,50,17,18,1,23,57, +17,51,49,48,23,52,39,51,22,21, +20,6,35,34,39,53,22,51,50,54, +223,139,123,158,102,99,65,50,32,54, +37,51,238,103,135,120,132,91,103,16, +108,10,48,0,0,1,0,25,254,117, +1,113,0,154,0,11,0,24,64,9, +10,0,6,0,12,13,8,3,0,0, +47,204,50,17,18,1,57,57,17,51, +49,48,37,17,16,35,34,39,53,22, +51,50,53,17,1,113,228,56,60,41, +61,94,154,254,223,254,252,24,140,19, +100,1,48,0,0,1,0,25,254,117, +1,113,0,143,0,11,0,24,64,9, +10,0,6,0,12,13,8,3,0,0, +47,204,50,17,18,1,57,57,17,51, +49,48,37,17,16,35,34,39,53,22, +51,50,53,17,1,113,228,56,60,41, +61,94,143,254,234,254,252,24,140,19, +100,1,37,0,255,255,0,52,0,0, +2,67,5,182,0,7,0,20,255,120, +0,0,0,2,0,115,255,236,4,23, +4,115,0,11,0,23,0,40,64,20, +12,6,18,0,6,0,24,25,9,21, +75,89,9,38,3,15,77,89,3,25, +0,63,43,0,24,63,43,17,18,1, +57,57,17,51,17,51,49,48,1,16, +2,35,34,2,17,16,18,51,50,18, +1,20,22,51,50,54,53,52,38,35, +34,6,4,23,247,222,217,246,249,218, +216,249,253,4,155,142,141,158,158,143, +141,154,2,47,254,245,254,200,1,53, +1,14,1,15,1,53,254,203,254,241, +208,232,234,206,204,236,233,0,0,1, +0,45,0,0,2,55,4,94,0,10, +0,38,64,17,9,1,1,0,8,0, +11,12,7,4,7,4,1,9,16,1, +24,0,63,63,18,57,57,47,47,17, +18,1,57,57,17,51,17,51,49,48, +33,35,17,52,55,6,7,7,39,1, +51,2,55,161,8,67,62,150,90,1, +127,139,2,49,239,140,67,48,112,114, +1,35,0,1,0,41,0,0,3,215, +4,115,0,25,0,44,64,24,7,19, +0,19,23,14,1,5,26,27,16,10, +75,89,16,38,24,23,1,23,76,89, +1,24,0,63,43,17,0,51,24,63, +43,17,18,1,23,57,17,51,49,48, +33,33,53,1,62,2,53,52,38,35, +34,6,7,39,54,51,50,22,21,20, +6,7,5,23,33,3,215,252,82,1, +145,157,113,44,139,119,88,156,92,90, +192,242,198,218,130,186,254,185,2,2, +190,133,1,47,119,104,83,65,87,103, +61,74,109,168,168,150,115,187,128,231, +6,0,0,1,0,94,254,149,4,27, +4,116,0,39,0,71,64,38,3,4, +27,0,19,7,7,0,4,22,34,13, +6,40,41,4,23,22,23,22,75,89, +23,23,10,37,37,30,75,89,37,38, +10,17,75,89,10,37,0,63,43,0, +24,63,43,17,18,0,57,24,47,43, +17,18,0,57,17,18,1,23,57,17, +51,17,51,17,51,49,48,1,20,6, +7,21,22,22,21,20,4,33,34,38, +39,53,22,22,51,32,17,16,33,35, +53,51,50,54,53,52,38,35,34,6, +7,39,54,54,51,50,22,3,238,157, +144,176,170,254,222,254,245,116,193,91, +95,215,96,1,123,254,94,144,146,171, +200,147,126,96,170,109,84,90,235,130, +213,236,3,7,140,178,30,8,22,180, +146,209,225,35,44,158,47,49,1,41, +1,10,143,151,134,107,122,52,70,112, +71,81,195,0,0,2,0,23,254,168, +4,102,4,94,0,10,0,18,0,66, +64,33,18,5,9,2,2,11,7,3, +0,3,5,3,19,20,1,5,18,5, +77,89,9,18,14,15,15,7,18,18, +3,7,16,3,36,0,63,63,18,57, +47,18,57,17,51,17,51,43,17,0, +51,17,18,1,23,57,17,51,51,51, +17,51,17,51,49,48,37,35,17,35, +17,33,53,1,51,17,51,33,17,52, +55,35,6,7,1,4,102,217,168,253, +50,2,190,184,217,254,134,12,10,41, +68,254,57,27,254,141,1,115,125,3, +198,252,68,1,92,218,222,86,92,253, +158,0,0,1,0,133,254,149,4,29, +4,95,0,26,0,58,64,31,15,3, +25,20,8,20,23,3,4,28,27,0, +17,75,89,0,0,6,21,21,24,76, +89,21,16,6,12,75,89,6,37,0, +63,43,0,24,63,43,17,18,0,57, +24,47,43,17,18,1,23,57,17,51, +17,51,49,48,1,50,4,21,20,0, +35,34,39,53,22,22,51,50,54,53, +16,33,34,7,39,19,33,21,33,3, +54,2,45,231,1,9,254,223,254,247, +130,70,208,101,176,195,254,137,94,160, +86,55,2,215,253,183,37,115,2,38, +229,199,227,254,254,79,160,45,51,166, +157,1,50,29,55,2,172,153,254,73, +23,0,255,255,0,117,255,236,4,47, +5,203,2,6,0,25,0,0,0,1, +0,94,254,169,4,43,4,95,0,6, +0,31,64,16,1,5,5,0,2,3, +7,8,3,2,76,89,3,16,0,36, +0,63,63,43,17,18,1,23,57,17, +51,49,48,1,1,33,53,33,21,1, +1,29,2,94,252,227,3,205,253,170, +254,169,5,29,153,133,250,207,255,255, +0,104,255,236,4,41,5,203,2,6, +0,27,0,0,0,2,0,106,254,149, +4,37,4,116,0,23,0,37,0,65, +64,34,27,17,34,10,10,0,0,4, +17,3,38,39,14,30,77,89,10,20, +14,14,2,20,20,24,75,89,20,38, +2,7,77,89,2,37,0,63,43,0, +24,63,43,17,18,0,57,24,47,18, +57,43,17,18,1,23,57,17,51,17, +51,17,51,49,48,1,16,33,34,39, +53,22,51,50,18,19,35,6,6,35, +34,38,53,52,18,51,50,22,18,1, +34,6,21,20,22,51,50,54,54,53, +52,38,38,4,37,253,104,116,68,80, +102,240,245,11,12,55,182,114,194,228, +255,208,149,223,120,254,20,143,156,144, +147,91,153,88,82,147,1,239,252,166, +20,143,26,1,41,1,51,83,87,232, +208,228,1,8,153,254,219,1,48,184, +164,144,165,74,128,70,105,178,102,0, +255,255,0,29,0,0,5,196,6,31, +0,39,0,73,2,182,0,0,0,6, +0,73,0,0,0,2,0,92,2,221, +5,170,5,193,0,34,0,51,0,90, +64,46,44,48,48,46,42,38,38,40, +10,0,28,17,5,17,22,0,40,46, +6,53,52,43,49,36,3,45,47,45, +41,47,35,35,40,28,10,20,8,3, +3,40,41,25,20,20,41,3,0,63, +51,47,51,16,205,50,47,51,18,57, +57,17,51,17,51,17,51,17,18,23, +57,17,18,1,23,57,17,51,17,51, +17,51,17,51,17,51,17,51,49,48, +1,20,6,35,34,39,53,22,51,50, +53,52,38,38,39,38,38,53,52,54, +51,50,23,7,38,35,34,6,21,20, +22,22,23,22,22,1,3,35,23,17, +35,17,51,19,19,51,17,35,17,55, +35,3,2,72,149,124,145,74,106,119, +148,23,54,85,120,81,142,110,125,92, +34,100,83,60,75,18,43,95,129,80, +1,166,201,8,6,119,188,195,203,180, +127,6,8,211,3,172,98,109,33,108, +40,100,33,40,33,31,44,91,76,86, +105,39,99,37,46,40,29,36,28,36, +50,90,254,236,2,47,129,254,82,2, +209,253,209,2,47,253,47,1,164,137, +253,211,255,255,0,18,254,20,4,90, +5,182,2,38,0,55,0,0,0,7, +0,122,1,63,0,0,255,255,0,31, +254,20,2,168,5,70,2,38,0,87, +0,0,0,7,0,122,0,197,0,0, +0,2,0,113,254,20,4,55,4,92, +0,12,0,42,0,71,64,38,10,21, +26,3,42,42,30,30,36,21,3,43, +44,33,39,70,89,36,33,27,28,15, +26,15,24,18,24,7,70,89,24,16, +18,0,70,89,18,22,0,63,43,0, +24,63,43,17,18,0,57,57,24,63, +63,51,43,17,18,1,23,57,17,51, +17,51,51,17,51,49,48,37,50,54, +55,53,52,38,35,34,6,21,20,22, +5,52,55,35,6,35,34,2,17,16, +18,51,50,23,51,55,51,17,20,6, +35,34,39,53,22,22,51,50,54,53, +2,76,170,151,4,158,171,144,153,151, +1,219,9,11,112,230,217,239,243,211, +223,123,11,24,131,236,249,242,149,75, +210,118,142,165,119,183,202,43,226,204, +224,208,209,217,107,36,99,167,1,45, +1,10,1,8,1,49,166,146,251,164, +236,236,70,158,42,46,169,146,255,255, +0,113,254,20,4,55,6,33,2,38, +3,145,0,0,1,6,1,75,6,0, +0,8,179,2,57,17,38,0,43,53, +255,255,0,113,254,20,4,55,5,229, +2,38,3,145,0,0,1,6,1,78, +12,0,0,8,179,2,43,17,38,0, +43,53,255,255,0,113,254,20,4,55, +5,223,2,38,3,145,0,0,1,7, +1,79,1,86,0,0,0,8,179,2, +52,17,38,0,43,53,255,255,0,113, +254,20,4,55,6,33,2,38,3,145, +0,0,1,6,2,58,119,0,0,8, +179,2,47,17,38,0,43,53,0,1, +0,201,0,0,1,115,5,182,0,3, +0,17,182,0,4,5,1,3,0,18, +0,63,63,17,18,1,57,49,48,51, +17,51,17,201,170,5,182,250,74,0, +255,255,0,5,0,0,1,142,7,115, +2,38,3,150,0,0,1,7,0,67, +254,124,1,82,0,8,179,1,5,5, +38,0,43,53,255,255,0,179,0,0, +2,60,7,115,2,38,3,150,0,0, +1,7,0,118,255,42,1,82,0,8, +179,1,13,5,38,0,43,53,255,255, +255,199,0,0,2,105,7,115,2,38, +3,150,0,0,1,7,1,75,254,187, +1,82,0,8,179,1,18,5,38,0, +43,53,255,255,0,5,0,0,2,56, +7,37,2,38,3,150,0,0,1,7, +0,106,254,208,1,82,0,10,180,2, +1,25,5,38,0,43,53,53,255,255, +255,171,0,0,2,147,7,47,2,38, +3,150,0,0,1,7,1,82,254,163, +1,82,0,8,179,1,13,5,38,0, +43,53,255,255,255,243,0,0,2,75, +6,180,2,38,3,150,0,0,1,7, +1,77,254,198,1,82,0,8,179,1, +7,5,38,0,43,53,255,255,255,231, +0,0,2,83,7,55,2,38,3,150, +0,0,1,7,1,78,254,194,1,82, +0,8,179,1,4,5,38,0,43,53, +255,255,0,86,254,66,1,162,5,182, +2,38,3,150,0,0,0,6,1,81, +49,0,255,255,0,187,0,0,1,127, +7,49,2,38,3,150,0,0,1,7, +1,79,0,25,1,82,0,8,179,1, +13,5,38,0,43,53,255,255,0,201, +254,127,3,163,5,182,0,38,3,150, +0,0,0,7,0,45,2,59,0,0, +255,255,255,228,0,0,2,29,6,10, +0,39,3,150,0,170,0,0,1,7, +1,84,253,232,255,151,0,7,178,1, +8,0,0,63,53,0,255,255,0,201, +0,0,1,115,5,182,2,6,3,150, +0,0,255,255,0,5,0,0,2,56, +7,37,2,38,3,150,0,0,1,7, +0,106,254,208,1,82,0,10,180,2, +1,25,5,38,0,43,53,53,255,255, +0,201,0,0,1,115,5,182,2,6, +3,150,0,0,255,255,0,5,0,0, +2,56,7,37,2,38,3,150,0,0, +1,7,0,106,254,208,1,82,0,10, +180,2,1,25,5,38,0,43,53,53, +255,255,0,201,0,0,1,115,5,182, +2,6,3,150,0,0,255,255,0,201, +0,0,1,115,5,182,2,6,3,150, +0,0,255,255,0,153,0,0,2,4, +7,225,2,38,3,150,0,0,1,7, +2,102,3,145,1,82,0,8,179,1, +8,5,38,0,43,53,255,255,0,184, +254,160,1,127,5,182,2,38,3,150, +0,0,0,7,2,103,3,125,0,0, +0,0,0,1,0,0,182,50,0,1, +73,6,128,0,0,14,54,36,0,5, +0,36,255,113,0,5,0,55,0,41, +0,5,0,57,0,41,0,5,0,58, +0,41,0,5,0,60,0,20,0,5, +0,68,255,174,0,5,0,70,255,133, +0,5,0,71,255,133,0,5,0,72, +255,133,0,5,0,74,255,195,0,5, +0,80,255,195,0,5,0,81,255,195, +0,5,0,82,255,133,0,5,0,83, +255,195,0,5,0,84,255,133,0,5, +0,85,255,195,0,5,0,86,255,195, +0,5,0,88,255,195,0,5,0,130, +255,113,0,5,0,131,255,113,0,5, +0,132,255,113,0,5,0,133,255,113, +0,5,0,134,255,113,0,5,0,135, +255,113,0,5,0,159,0,20,0,5, +0,162,255,133,0,5,0,163,255,174, +0,5,0,164,255,174,0,5,0,165, +255,174,0,5,0,166,255,174,0,5, +0,167,255,174,0,5,0,168,255,174, +0,5,0,169,255,133,0,5,0,170, +255,133,0,5,0,171,255,133,0,5, +0,172,255,133,0,5,0,173,255,133, +0,5,0,180,255,133,0,5,0,181, +255,133,0,5,0,182,255,133,0,5, +0,183,255,133,0,5,0,184,255,133, +0,5,0,186,255,133,0,5,0,187, +255,195,0,5,0,188,255,195,0,5, +0,189,255,195,0,5,0,190,255,195, +0,5,0,194,255,113,0,5,0,195, +255,174,0,5,0,196,255,113,0,5, +0,197,255,174,0,5,0,198,255,113, +0,5,0,199,255,174,0,5,0,201, +255,133,0,5,0,203,255,133,0,5, +0,205,255,133,0,5,0,207,255,133, +0,5,0,209,255,133,0,5,0,211, +255,133,0,5,0,213,255,133,0,5, +0,215,255,133,0,5,0,217,255,133, +0,5,0,219,255,133,0,5,0,221, +255,133,0,5,0,223,255,195,0,5, +0,225,255,195,0,5,0,227,255,195, +0,5,0,229,255,195,0,5,0,250, +255,195,0,5,1,6,255,195,0,5, +1,8,255,195,0,5,1,13,255,195, +0,5,1,15,255,133,0,5,1,17, +255,133,0,5,1,19,255,133,0,5, +1,21,255,133,0,5,1,23,255,195, +0,5,1,25,255,195,0,5,1,29, +255,195,0,5,1,33,255,195,0,5, +1,36,0,41,0,5,1,38,0,41, +0,5,1,43,255,195,0,5,1,45, +255,195,0,5,1,47,255,195,0,5, +1,49,255,195,0,5,1,51,255,195, +0,5,1,53,255,195,0,5,1,54, +0,41,0,5,1,56,0,20,0,5, +1,58,0,20,0,5,1,67,255,113, +0,5,1,68,255,174,0,5,1,70, +255,174,0,5,1,72,255,133,0,5, +1,74,255,195,0,5,1,86,255,113, +0,5,1,95,255,113,0,5,1,98, +255,113,0,5,1,105,255,113,0,5, +1,121,255,174,0,5,1,122,255,215, +0,5,1,123,255,215,0,5,1,126, +255,174,0,5,1,129,255,195,0,5, +1,130,255,215,0,5,1,131,255,215, +0,5,1,132,255,215,0,5,1,135, +255,215,0,5,1,137,255,215,0,5, +1,140,255,174,0,5,1,142,255,195, +0,5,1,143,255,174,0,5,1,144, +255,174,0,5,1,147,255,174,0,5, +1,153,255,174,0,5,1,164,255,133, +0,5,1,170,255,113,0,5,1,174, +255,133,0,5,1,181,255,133,0,5, +1,202,255,215,0,5,1,206,255,113, +0,5,1,207,255,133,0,5,1,213, +255,113,0,5,1,216,255,133,0,5, +1,219,255,133,0,5,1,222,255,133, +0,5,1,234,255,133,0,5,1,237, +255,133,0,5,1,238,255,195,0,5, +1,242,255,113,0,5,1,250,0,41, +0,5,1,252,0,41,0,5,1,254, +0,41,0,5,2,0,0,20,0,5, +2,87,255,195,0,5,2,88,255,113, +0,5,2,89,255,174,0,5,2,96, +255,133,0,5,2,98,255,195,0,5, +2,106,255,133,0,5,2,114,255,113, +0,5,2,115,255,113,0,5,2,125, +255,236,0,5,2,127,255,133,0,5, +2,133,255,133,0,5,2,135,255,133, +0,5,2,137,255,133,0,5,2,141, +255,133,0,5,2,178,255,133,0,5, +2,180,255,133,0,5,2,206,255,133, +0,5,2,207,255,113,0,5,2,217, +255,113,0,5,2,218,255,215,0,5, +2,219,255,113,0,5,2,220,255,215, +0,5,2,221,255,113,0,5,2,222, +255,215,0,5,2,224,255,133,0,5, +2,226,255,215,0,5,2,228,255,215, +0,5,2,240,255,133,0,5,2,242, +255,133,0,5,2,244,255,133,0,5, +3,9,255,113,0,5,3,10,255,133, +0,5,3,11,255,113,0,5,3,12, +255,133,0,5,3,17,255,133,0,5, +3,18,255,113,0,5,3,22,255,133, +0,5,3,26,255,133,0,5,3,27, +255,133,0,5,3,28,255,113,0,5, +3,29,255,113,0,5,3,30,255,174, +0,5,3,31,255,113,0,5,3,32, +255,174,0,5,3,33,255,113,0,5, +3,34,255,174,0,5,3,35,255,113, +0,5,3,37,255,113,0,5,3,38, +255,174,0,5,3,39,255,113,0,5, +3,40,255,174,0,5,3,41,255,113, +0,5,3,42,255,174,0,5,3,43, +255,113,0,5,3,44,255,174,0,5, +3,45,255,113,0,5,3,46,255,174, +0,5,3,47,255,113,0,5,3,48, +255,174,0,5,3,49,255,113,0,5, +3,50,255,174,0,5,3,51,255,113, +0,5,3,52,255,174,0,5,3,54, +255,133,0,5,3,56,255,133,0,5, +3,58,255,133,0,5,3,60,255,133, +0,5,3,64,255,133,0,5,3,66, +255,133,0,5,3,68,255,133,0,5, +3,74,255,133,0,5,3,76,255,133, +0,5,3,78,255,133,0,5,3,82, +255,133,0,5,3,84,255,133,0,5, +3,86,255,133,0,5,3,88,255,133, +0,5,3,90,255,133,0,5,3,92, +255,133,0,5,3,94,255,133,0,5, +3,96,255,133,0,5,3,98,255,195, +0,5,3,100,255,195,0,5,3,102, +255,195,0,5,3,104,255,195,0,5, +3,106,255,195,0,5,3,108,255,195, +0,5,3,110,255,195,0,5,3,111, +0,20,0,5,3,113,0,20,0,5, +3,115,0,20,0,5,3,143,0,41, +0,10,0,36,255,113,0,10,0,55, +0,41,0,10,0,57,0,41,0,10, +0,58,0,41,0,10,0,60,0,20, +0,10,0,68,255,174,0,10,0,70, +255,133,0,10,0,71,255,133,0,10, +0,72,255,133,0,10,0,74,255,195, +0,10,0,80,255,195,0,10,0,81, +255,195,0,10,0,82,255,133,0,10, +0,83,255,195,0,10,0,84,255,133, +0,10,0,85,255,195,0,10,0,86, +255,195,0,10,0,88,255,195,0,10, +0,130,255,113,0,10,0,131,255,113, +0,10,0,132,255,113,0,10,0,133, +255,113,0,10,0,134,255,113,0,10, +0,135,255,113,0,10,0,159,0,20, +0,10,0,162,255,133,0,10,0,163, +255,174,0,10,0,164,255,174,0,10, +0,165,255,174,0,10,0,166,255,174, +0,10,0,167,255,174,0,10,0,168, +255,174,0,10,0,169,255,133,0,10, +0,170,255,133,0,10,0,171,255,133, +0,10,0,172,255,133,0,10,0,173, +255,133,0,10,0,180,255,133,0,10, +0,181,255,133,0,10,0,182,255,133, +0,10,0,183,255,133,0,10,0,184, +255,133,0,10,0,186,255,133,0,10, +0,187,255,195,0,10,0,188,255,195, +0,10,0,189,255,195,0,10,0,190, +255,195,0,10,0,194,255,113,0,10, +0,195,255,174,0,10,0,196,255,113, +0,10,0,197,255,174,0,10,0,198, +255,113,0,10,0,199,255,174,0,10, +0,201,255,133,0,10,0,203,255,133, +0,10,0,205,255,133,0,10,0,207, +255,133,0,10,0,209,255,133,0,10, +0,211,255,133,0,10,0,213,255,133, +0,10,0,215,255,133,0,10,0,217, +255,133,0,10,0,219,255,133,0,10, +0,221,255,133,0,10,0,223,255,195, +0,10,0,225,255,195,0,10,0,227, +255,195,0,10,0,229,255,195,0,10, +0,250,255,195,0,10,1,6,255,195, +0,10,1,8,255,195,0,10,1,13, +255,195,0,10,1,15,255,133,0,10, +1,17,255,133,0,10,1,19,255,133, +0,10,1,21,255,133,0,10,1,23, +255,195,0,10,1,25,255,195,0,10, +1,29,255,195,0,10,1,33,255,195, +0,10,1,36,0,41,0,10,1,38, +0,41,0,10,1,43,255,195,0,10, +1,45,255,195,0,10,1,47,255,195, +0,10,1,49,255,195,0,10,1,51, +255,195,0,10,1,53,255,195,0,10, +1,54,0,41,0,10,1,56,0,20, +0,10,1,58,0,20,0,10,1,67, +255,113,0,10,1,68,255,174,0,10, +1,70,255,174,0,10,1,72,255,133, +0,10,1,74,255,195,0,10,1,86, +255,113,0,10,1,95,255,113,0,10, +1,98,255,113,0,10,1,105,255,113, +0,10,1,121,255,174,0,10,1,122, +255,215,0,10,1,123,255,215,0,10, +1,126,255,174,0,10,1,129,255,195, +0,10,1,130,255,215,0,10,1,131, +255,215,0,10,1,132,255,215,0,10, +1,135,255,215,0,10,1,137,255,215, +0,10,1,140,255,174,0,10,1,142, +255,195,0,10,1,143,255,174,0,10, +1,144,255,174,0,10,1,147,255,174, +0,10,1,153,255,174,0,10,1,164, +255,133,0,10,1,170,255,113,0,10, +1,174,255,133,0,10,1,181,255,133, +0,10,1,202,255,215,0,10,1,206, +255,113,0,10,1,207,255,133,0,10, +1,213,255,113,0,10,1,216,255,133, +0,10,1,219,255,133,0,10,1,222, +255,133,0,10,1,234,255,133,0,10, +1,237,255,133,0,10,1,238,255,195, +0,10,1,242,255,113,0,10,1,250, +0,41,0,10,1,252,0,41,0,10, +1,254,0,41,0,10,2,0,0,20, +0,10,2,87,255,195,0,10,2,88, +255,113,0,10,2,89,255,174,0,10, +2,96,255,133,0,10,2,98,255,195, +0,10,2,106,255,133,0,10,2,114, +255,113,0,10,2,115,255,113,0,10, +2,125,255,236,0,10,2,127,255,133, +0,10,2,133,255,133,0,10,2,135, +255,133,0,10,2,137,255,133,0,10, +2,141,255,133,0,10,2,178,255,133, +0,10,2,180,255,133,0,10,2,206, +255,133,0,10,2,207,255,113,0,10, +2,217,255,113,0,10,2,218,255,215, +0,10,2,219,255,113,0,10,2,220, +255,215,0,10,2,221,255,113,0,10, +2,222,255,215,0,10,2,224,255,133, +0,10,2,226,255,215,0,10,2,228, +255,215,0,10,2,240,255,133,0,10, +2,242,255,133,0,10,2,244,255,133, +0,10,3,9,255,113,0,10,3,10, +255,133,0,10,3,11,255,113,0,10, +3,12,255,133,0,10,3,17,255,133, +0,10,3,18,255,113,0,10,3,22, +255,133,0,10,3,26,255,133,0,10, +3,27,255,133,0,10,3,28,255,113, +0,10,3,29,255,113,0,10,3,30, +255,174,0,10,3,31,255,113,0,10, +3,32,255,174,0,10,3,33,255,113, +0,10,3,34,255,174,0,10,3,35, +255,113,0,10,3,37,255,113,0,10, +3,38,255,174,0,10,3,39,255,113, +0,10,3,40,255,174,0,10,3,41, +255,113,0,10,3,42,255,174,0,10, +3,43,255,113,0,10,3,44,255,174, +0,10,3,45,255,113,0,10,3,46, +255,174,0,10,3,47,255,113,0,10, +3,48,255,174,0,10,3,49,255,113, +0,10,3,50,255,174,0,10,3,51, +255,113,0,10,3,52,255,174,0,10, +3,54,255,133,0,10,3,56,255,133, +0,10,3,58,255,133,0,10,3,60, +255,133,0,10,3,64,255,133,0,10, +3,66,255,133,0,10,3,68,255,133, +0,10,3,74,255,133,0,10,3,76, +255,133,0,10,3,78,255,133,0,10, +3,82,255,133,0,10,3,84,255,133, +0,10,3,86,255,133,0,10,3,88, +255,133,0,10,3,90,255,133,0,10, +3,92,255,133,0,10,3,94,255,133, +0,10,3,96,255,133,0,10,3,98, +255,195,0,10,3,100,255,195,0,10, +3,102,255,195,0,10,3,104,255,195, +0,10,3,106,255,195,0,10,3,108, +255,195,0,10,3,110,255,195,0,10, +3,111,0,20,0,10,3,113,0,20, +0,10,3,115,0,20,0,10,3,143, +0,41,0,11,0,45,0,184,0,15, +0,38,255,154,0,15,0,42,255,154, +0,15,0,50,255,154,0,15,0,52, +255,154,0,15,0,55,255,113,0,15, +0,56,255,215,0,15,0,57,255,133, +0,15,0,58,255,133,0,15,0,60, +255,133,0,15,0,137,255,154,0,15, +0,148,255,154,0,15,0,149,255,154, +0,15,0,150,255,154,0,15,0,151, +255,154,0,15,0,152,255,154,0,15, +0,154,255,154,0,15,0,155,255,215, +0,15,0,156,255,215,0,15,0,157, +255,215,0,15,0,158,255,215,0,15, +0,159,255,133,0,15,0,200,255,154, +0,15,0,202,255,154,0,15,0,204, +255,154,0,15,0,206,255,154,0,15, +0,222,255,154,0,15,0,224,255,154, +0,15,0,226,255,154,0,15,0,228, +255,154,0,15,1,14,255,154,0,15, +1,16,255,154,0,15,1,18,255,154, +0,15,1,20,255,154,0,15,1,36, +255,113,0,15,1,38,255,113,0,15, +1,42,255,215,0,15,1,44,255,215, +0,15,1,46,255,215,0,15,1,48, +255,215,0,15,1,50,255,215,0,15, +1,52,255,215,0,15,1,54,255,133, +0,15,1,56,255,133,0,15,1,58, +255,133,0,15,1,71,255,154,0,15, +1,102,255,174,0,15,1,109,255,174, +0,15,1,113,255,113,0,15,1,114, +255,133,0,15,1,115,255,154,0,15, +1,117,255,133,0,15,1,120,255,133, +0,15,1,133,255,215,0,15,1,157, +255,113,0,15,1,159,255,154,0,15, +1,166,255,113,0,15,1,184,255,154, +0,15,1,187,255,154,0,15,1,188, +255,113,0,15,1,190,255,174,0,15, +1,193,255,92,0,15,1,196,255,113, +0,15,1,220,255,154,0,15,1,225, +255,133,0,15,1,228,255,154,0,15, +1,250,255,133,0,15,1,252,255,133, +0,15,1,254,255,133,0,15,2,0, +255,133,0,15,2,84,255,133,0,15, +2,95,255,154,0,15,2,97,255,215, +0,15,2,108,255,154,0,15,2,124, +255,92,0,15,2,126,255,154,0,15, +2,128,255,133,0,15,2,130,255,133, +0,15,2,132,255,154,0,15,2,134, +255,154,0,15,2,136,255,154,0,15, +2,138,255,154,0,15,2,140,255,154, +0,15,2,169,255,113,0,15,2,170, +255,154,0,15,2,177,255,154,0,15, +2,179,255,154,0,15,2,181,255,113, +0,15,2,182,255,154,0,15,2,183, +255,133,0,15,2,185,255,133,0,15, +2,189,255,113,0,15,2,190,255,154, +0,15,2,191,255,92,0,15,2,192, +255,133,0,15,2,193,255,92,0,15, +2,194,255,133,0,15,2,197,255,133, +0,15,2,199,255,133,0,15,2,212, +255,92,0,15,2,213,255,133,0,15, +2,239,255,154,0,15,2,241,255,154, +0,15,2,243,255,154,0,15,2,253, +255,92,0,15,2,254,255,133,0,15, +3,13,255,133,0,15,3,14,255,154, +0,15,3,15,255,133,0,15,3,16, +255,154,0,15,3,21,255,154,0,15, +3,23,255,113,0,15,3,24,255,154, +0,15,3,73,255,154,0,15,3,75, +255,154,0,15,3,77,255,154,0,15, +3,79,255,154,0,15,3,81,255,154, +0,15,3,83,255,154,0,15,3,85, +255,154,0,15,3,87,255,154,0,15, +3,89,255,154,0,15,3,91,255,154, +0,15,3,93,255,154,0,15,3,95, +255,154,0,15,3,97,255,215,0,15, +3,99,255,215,0,15,3,101,255,215, +0,15,3,103,255,215,0,15,3,105, +255,215,0,15,3,107,255,215,0,15, +3,109,255,215,0,15,3,111,255,133, +0,15,3,113,255,133,0,15,3,115, +255,133,0,15,3,143,255,113,0,16, +0,55,255,174,0,16,1,36,255,174, +0,16,1,38,255,174,0,16,1,113, +255,174,0,16,1,157,255,174,0,16, +1,166,255,174,0,16,1,188,255,174, +0,16,1,196,255,174,0,16,1,220, +255,215,0,16,1,228,255,215,0,16, +2,169,255,174,0,16,2,170,255,215, +0,16,2,181,255,174,0,16,2,182, +255,215,0,16,2,189,255,174,0,16, +2,190,255,215,0,16,3,23,255,174, +0,16,3,24,255,215,0,16,3,143, +255,174,0,17,0,38,255,154,0,17, +0,42,255,154,0,17,0,50,255,154, +0,17,0,52,255,154,0,17,0,55, +255,113,0,17,0,56,255,215,0,17, +0,57,255,133,0,17,0,58,255,133, +0,17,0,60,255,133,0,17,0,137, +255,154,0,17,0,148,255,154,0,17, +0,149,255,154,0,17,0,150,255,154, +0,17,0,151,255,154,0,17,0,152, +255,154,0,17,0,154,255,154,0,17, +0,155,255,215,0,17,0,156,255,215, +0,17,0,157,255,215,0,17,0,158, +255,215,0,17,0,159,255,133,0,17, +0,200,255,154,0,17,0,202,255,154, +0,17,0,204,255,154,0,17,0,206, +255,154,0,17,0,222,255,154,0,17, +0,224,255,154,0,17,0,226,255,154, +0,17,0,228,255,154,0,17,1,14, +255,154,0,17,1,16,255,154,0,17, +1,18,255,154,0,17,1,20,255,154, +0,17,1,36,255,113,0,17,1,38, +255,113,0,17,1,42,255,215,0,17, +1,44,255,215,0,17,1,46,255,215, +0,17,1,48,255,215,0,17,1,50, +255,215,0,17,1,52,255,215,0,17, +1,54,255,133,0,17,1,56,255,133, +0,17,1,58,255,133,0,17,1,71, +255,154,0,17,1,102,255,174,0,17, +1,109,255,174,0,17,1,113,255,113, +0,17,1,114,255,133,0,17,1,115, +255,154,0,17,1,117,255,133,0,17, +1,120,255,133,0,17,1,133,255,215, +0,17,1,157,255,113,0,17,1,159, +255,154,0,17,1,166,255,113,0,17, +1,184,255,154,0,17,1,187,255,154, +0,17,1,188,255,113,0,17,1,190, +255,174,0,17,1,193,255,92,0,17, +1,196,255,113,0,17,1,220,255,154, +0,17,1,225,255,133,0,17,1,228, +255,154,0,17,1,250,255,133,0,17, +1,252,255,133,0,17,1,254,255,133, +0,17,2,0,255,133,0,17,2,84, +255,133,0,17,2,95,255,154,0,17, +2,97,255,215,0,17,2,108,255,154, +0,17,2,124,255,92,0,17,2,126, +255,154,0,17,2,128,255,133,0,17, +2,130,255,133,0,17,2,132,255,154, +0,17,2,134,255,154,0,17,2,136, +255,154,0,17,2,138,255,154,0,17, +2,140,255,154,0,17,2,169,255,113, +0,17,2,170,255,154,0,17,2,177, +255,154,0,17,2,179,255,154,0,17, +2,181,255,113,0,17,2,182,255,154, +0,17,2,183,255,133,0,17,2,185, +255,133,0,17,2,189,255,113,0,17, +2,190,255,154,0,17,2,191,255,92, +0,17,2,192,255,133,0,17,2,193, +255,92,0,17,2,194,255,133,0,17, +2,197,255,133,0,17,2,199,255,133, +0,17,2,212,255,92,0,17,2,213, +255,133,0,17,2,239,255,154,0,17, +2,241,255,154,0,17,2,243,255,154, +0,17,2,253,255,92,0,17,2,254, +255,133,0,17,3,13,255,133,0,17, +3,14,255,154,0,17,3,15,255,133, +0,17,3,16,255,154,0,17,3,21, +255,154,0,17,3,23,255,113,0,17, +3,24,255,154,0,17,3,73,255,154, +0,17,3,75,255,154,0,17,3,77, +255,154,0,17,3,79,255,154,0,17, +3,81,255,154,0,17,3,83,255,154, +0,17,3,85,255,154,0,17,3,87, +255,154,0,17,3,89,255,154,0,17, +3,91,255,154,0,17,3,93,255,154, +0,17,3,95,255,154,0,17,3,97, +255,215,0,17,3,99,255,215,0,17, +3,101,255,215,0,17,3,103,255,215, +0,17,3,105,255,215,0,17,3,107, +255,215,0,17,3,109,255,215,0,17, +3,111,255,133,0,17,3,113,255,133, +0,17,3,115,255,133,0,17,3,143, +255,113,0,36,0,5,255,113,0,36, +0,10,255,113,0,36,0,38,255,215, +0,36,0,42,255,215,0,36,0,45, +1,10,0,36,0,50,255,215,0,36, +0,52,255,215,0,36,0,55,255,113, +0,36,0,57,255,174,0,36,0,58, +255,174,0,36,0,60,255,133,0,36, +0,137,255,215,0,36,0,148,255,215, +0,36,0,149,255,215,0,36,0,150, +255,215,0,36,0,151,255,215,0,36, +0,152,255,215,0,36,0,154,255,215, +0,36,0,159,255,133,0,36,0,200, +255,215,0,36,0,202,255,215,0,36, +0,204,255,215,0,36,0,206,255,215, +0,36,0,222,255,215,0,36,0,224, +255,215,0,36,0,226,255,215,0,36, +0,228,255,215,0,36,1,14,255,215, +0,36,1,16,255,215,0,36,1,18, +255,215,0,36,1,20,255,215,0,36, +1,36,255,113,0,36,1,38,255,113, +0,36,1,54,255,174,0,36,1,56, +255,133,0,36,1,58,255,133,0,36, +1,71,255,215,0,36,1,250,255,174, +0,36,1,252,255,174,0,36,1,254, +255,174,0,36,2,0,255,133,0,36, +2,7,255,113,0,36,2,11,255,113, +0,36,2,95,255,215,0,36,3,73, +255,215,0,36,3,75,255,215,0,36, +3,77,255,215,0,36,3,79,255,215, +0,36,3,81,255,215,0,36,3,83, +255,215,0,36,3,85,255,215,0,36, +3,87,255,215,0,36,3,89,255,215, +0,36,3,91,255,215,0,36,3,93, +255,215,0,36,3,95,255,215,0,36, +3,111,255,133,0,36,3,113,255,133, +0,36,3,115,255,133,0,36,3,143, +255,113,0,37,0,15,255,174,0,37, +0,17,255,174,0,37,0,36,255,215, +0,37,0,55,255,195,0,37,0,57, +255,236,0,37,0,58,255,236,0,37, +0,59,255,215,0,37,0,60,255,236, +0,37,0,61,255,236,0,37,0,130, +255,215,0,37,0,131,255,215,0,37, +0,132,255,215,0,37,0,133,255,215, +0,37,0,134,255,215,0,37,0,135, +255,215,0,37,0,159,255,236,0,37, +0,194,255,215,0,37,0,196,255,215, +0,37,0,198,255,215,0,37,1,36, +255,195,0,37,1,38,255,195,0,37, +1,54,255,236,0,37,1,56,255,236, +0,37,1,58,255,236,0,37,1,59, +255,236,0,37,1,61,255,236,0,37, +1,63,255,236,0,37,1,67,255,215, +0,37,1,160,255,236,0,37,1,250, +255,236,0,37,1,252,255,236,0,37, +1,254,255,236,0,37,2,0,255,236, +0,37,2,8,255,174,0,37,2,12, +255,174,0,37,2,88,255,215,0,37, +3,29,255,215,0,37,3,31,255,215, +0,37,3,33,255,215,0,37,3,35, +255,215,0,37,3,37,255,215,0,37, +3,39,255,215,0,37,3,41,255,215, +0,37,3,43,255,215,0,37,3,45, +255,215,0,37,3,47,255,215,0,37, +3,49,255,215,0,37,3,51,255,215, +0,37,3,111,255,236,0,37,3,113, +255,236,0,37,3,115,255,236,0,37, +3,143,255,195,0,38,0,38,255,215, +0,38,0,42,255,215,0,38,0,50, +255,215,0,38,0,52,255,215,0,38, +0,137,255,215,0,38,0,148,255,215, +0,38,0,149,255,215,0,38,0,150, +255,215,0,38,0,151,255,215,0,38, +0,152,255,215,0,38,0,154,255,215, +0,38,0,200,255,215,0,38,0,202, +255,215,0,38,0,204,255,215,0,38, +0,206,255,215,0,38,0,222,255,215, +0,38,0,224,255,215,0,38,0,226, +255,215,0,38,0,228,255,215,0,38, +1,14,255,215,0,38,1,16,255,215, +0,38,1,18,255,215,0,38,1,20, +255,215,0,38,1,71,255,215,0,38, +2,95,255,215,0,38,3,73,255,215, +0,38,3,75,255,215,0,38,3,77, +255,215,0,38,3,79,255,215,0,38, +3,81,255,215,0,38,3,83,255,215, +0,38,3,85,255,215,0,38,3,87, +255,215,0,38,3,89,255,215,0,38, +3,91,255,215,0,38,3,93,255,215, +0,38,3,95,255,215,0,39,0,15, +255,174,0,39,0,17,255,174,0,39, +0,36,255,215,0,39,0,55,255,195, +0,39,0,57,255,236,0,39,0,58, +255,236,0,39,0,59,255,215,0,39, +0,60,255,236,0,39,0,61,255,236, +0,39,0,130,255,215,0,39,0,131, +255,215,0,39,0,132,255,215,0,39, +0,133,255,215,0,39,0,134,255,215, +0,39,0,135,255,215,0,39,0,159, +255,236,0,39,0,194,255,215,0,39, +0,196,255,215,0,39,0,198,255,215, +0,39,1,36,255,195,0,39,1,38, +255,195,0,39,1,54,255,236,0,39, +1,56,255,236,0,39,1,58,255,236, +0,39,1,59,255,236,0,39,1,61, +255,236,0,39,1,63,255,236,0,39, +1,67,255,215,0,39,1,160,255,236, +0,39,1,250,255,236,0,39,1,252, +255,236,0,39,1,254,255,236,0,39, +2,0,255,236,0,39,2,8,255,174, +0,39,2,12,255,174,0,39,2,88, +255,215,0,39,3,29,255,215,0,39, +3,31,255,215,0,39,3,33,255,215, +0,39,3,35,255,215,0,39,3,37, +255,215,0,39,3,39,255,215,0,39, +3,41,255,215,0,39,3,43,255,215, +0,39,3,45,255,215,0,39,3,47, +255,215,0,39,3,49,255,215,0,39, +3,51,255,215,0,39,3,111,255,236, +0,39,3,113,255,236,0,39,3,115, +255,236,0,39,3,143,255,195,0,40, +0,45,0,123,0,41,0,15,255,133, +0,41,0,17,255,133,0,41,0,34, +0,41,0,41,0,36,255,215,0,41, +0,130,255,215,0,41,0,131,255,215, +0,41,0,132,255,215,0,41,0,133, +255,215,0,41,0,134,255,215,0,41, +0,135,255,215,0,41,0,194,255,215, +0,41,0,196,255,215,0,41,0,198, +255,215,0,41,1,67,255,215,0,41, +2,8,255,133,0,41,2,12,255,133, +0,41,2,88,255,215,0,41,3,29, +255,215,0,41,3,31,255,215,0,41, +3,33,255,215,0,41,3,35,255,215, +0,41,3,37,255,215,0,41,3,39, +255,215,0,41,3,41,255,215,0,41, +3,43,255,215,0,41,3,45,255,215, +0,41,3,47,255,215,0,41,3,49, +255,215,0,41,3,51,255,215,0,46, +0,38,255,215,0,46,0,42,255,215, +0,46,0,50,255,215,0,46,0,52, +255,215,0,46,0,137,255,215,0,46, +0,148,255,215,0,46,0,149,255,215, +0,46,0,150,255,215,0,46,0,151, +255,215,0,46,0,152,255,215,0,46, +0,154,255,215,0,46,0,200,255,215, +0,46,0,202,255,215,0,46,0,204, +255,215,0,46,0,206,255,215,0,46, +0,222,255,215,0,46,0,224,255,215, +0,46,0,226,255,215,0,46,0,228, +255,215,0,46,1,14,255,215,0,46, +1,16,255,215,0,46,1,18,255,215, +0,46,1,20,255,215,0,46,1,71, +255,215,0,46,2,95,255,215,0,46, +3,73,255,215,0,46,3,75,255,215, +0,46,3,77,255,215,0,46,3,79, +255,215,0,46,3,81,255,215,0,46, +3,83,255,215,0,46,3,85,255,215, +0,46,3,87,255,215,0,46,3,89, +255,215,0,46,3,91,255,215,0,46, +3,93,255,215,0,46,3,95,255,215, +0,47,0,5,255,92,0,47,0,10, +255,92,0,47,0,38,255,215,0,47, +0,42,255,215,0,47,0,50,255,215, +0,47,0,52,255,215,0,47,0,55, +255,215,0,47,0,56,255,236,0,47, +0,57,255,215,0,47,0,58,255,215, +0,47,0,60,255,195,0,47,0,137, +255,215,0,47,0,148,255,215,0,47, +0,149,255,215,0,47,0,150,255,215, +0,47,0,151,255,215,0,47,0,152, +255,215,0,47,0,154,255,215,0,47, +0,155,255,236,0,47,0,156,255,236, +0,47,0,157,255,236,0,47,0,158, +255,236,0,47,0,159,255,195,0,47, +0,200,255,215,0,47,0,202,255,215, +0,47,0,204,255,215,0,47,0,206, +255,215,0,47,0,222,255,215,0,47, +0,224,255,215,0,47,0,226,255,215, +0,47,0,228,255,215,0,47,1,14, +255,215,0,47,1,16,255,215,0,47, +1,18,255,215,0,47,1,20,255,215, +0,47,1,36,255,215,0,47,1,38, +255,215,0,47,1,42,255,236,0,47, +1,44,255,236,0,47,1,46,255,236, +0,47,1,48,255,236,0,47,1,50, +255,236,0,47,1,52,255,236,0,47, +1,54,255,215,0,47,1,56,255,195, +0,47,1,58,255,195,0,47,1,71, +255,215,0,47,1,250,255,215,0,47, +1,252,255,215,0,47,1,254,255,215, +0,47,2,0,255,195,0,47,2,7, +255,92,0,47,2,11,255,92,0,47, +2,95,255,215,0,47,2,97,255,236, +0,47,3,73,255,215,0,47,3,75, +255,215,0,47,3,77,255,215,0,47, +3,79,255,215,0,47,3,81,255,215, +0,47,3,83,255,215,0,47,3,85, +255,215,0,47,3,87,255,215,0,47, +3,89,255,215,0,47,3,91,255,215, +0,47,3,93,255,215,0,47,3,95, +255,215,0,47,3,97,255,236,0,47, +3,99,255,236,0,47,3,101,255,236, +0,47,3,103,255,236,0,47,3,105, +255,236,0,47,3,107,255,236,0,47, +3,109,255,236,0,47,3,111,255,195, +0,47,3,113,255,195,0,47,3,115, +255,195,0,47,3,143,255,215,0,50, +0,15,255,174,0,50,0,17,255,174, +0,50,0,36,255,215,0,50,0,55, +255,195,0,50,0,57,255,236,0,50, +0,58,255,236,0,50,0,59,255,215, +0,50,0,60,255,236,0,50,0,61, +255,236,0,50,0,130,255,215,0,50, +0,131,255,215,0,50,0,132,255,215, +0,50,0,133,255,215,0,50,0,134, +255,215,0,50,0,135,255,215,0,50, +0,159,255,236,0,50,0,194,255,215, +0,50,0,196,255,215,0,50,0,198, +255,215,0,50,1,36,255,195,0,50, +1,38,255,195,0,50,1,54,255,236, +0,50,1,56,255,236,0,50,1,58, +255,236,0,50,1,59,255,236,0,50, +1,61,255,236,0,50,1,63,255,236, +0,50,1,67,255,215,0,50,1,160, +255,236,0,50,1,250,255,236,0,50, +1,252,255,236,0,50,1,254,255,236, +0,50,2,0,255,236,0,50,2,8, +255,174,0,50,2,12,255,174,0,50, +2,88,255,215,0,50,3,29,255,215, +0,50,3,31,255,215,0,50,3,33, +255,215,0,50,3,35,255,215,0,50, +3,37,255,215,0,50,3,39,255,215, +0,50,3,41,255,215,0,50,3,43, +255,215,0,50,3,45,255,215,0,50, +3,47,255,215,0,50,3,49,255,215, +0,50,3,51,255,215,0,50,3,111, +255,236,0,50,3,113,255,236,0,50, +3,115,255,236,0,50,3,143,255,195, +0,51,0,15,254,246,0,51,0,17, +254,246,0,51,0,36,255,154,0,51, +0,59,255,215,0,51,0,61,255,236, +0,51,0,130,255,154,0,51,0,131, +255,154,0,51,0,132,255,154,0,51, +0,133,255,154,0,51,0,134,255,154, +0,51,0,135,255,154,0,51,0,194, +255,154,0,51,0,196,255,154,0,51, +0,198,255,154,0,51,1,59,255,236, +0,51,1,61,255,236,0,51,1,63, +255,236,0,51,1,67,255,154,0,51, +2,8,254,246,0,51,2,12,254,246, +0,51,2,88,255,154,0,51,3,29, +255,154,0,51,3,31,255,154,0,51, +3,33,255,154,0,51,3,35,255,154, +0,51,3,37,255,154,0,51,3,39, +255,154,0,51,3,41,255,154,0,51, +3,43,255,154,0,51,3,45,255,154, +0,51,3,47,255,154,0,51,3,49, +255,154,0,51,3,51,255,154,0,52, +0,15,255,174,0,52,0,17,255,174, +0,52,0,36,255,215,0,52,0,55, +255,195,0,52,0,57,255,236,0,52, +0,58,255,236,0,52,0,59,255,215, +0,52,0,60,255,236,0,52,0,61, +255,236,0,52,0,130,255,215,0,52, +0,131,255,215,0,52,0,132,255,215, +0,52,0,133,255,215,0,52,0,134, +255,215,0,52,0,135,255,215,0,52, +0,159,255,236,0,52,0,194,255,215, +0,52,0,196,255,215,0,52,0,198, +255,215,0,52,1,36,255,195,0,52, +1,38,255,195,0,52,1,54,255,236, +0,52,1,56,255,236,0,52,1,58, +255,236,0,52,1,59,255,236,0,52, +1,61,255,236,0,52,1,63,255,236, +0,52,1,67,255,215,0,52,1,160, +255,236,0,52,1,250,255,236,0,52, +1,252,255,236,0,52,1,254,255,236, +0,52,2,0,255,236,0,52,2,8, +255,174,0,52,2,12,255,174,0,52, +2,88,255,215,0,52,3,29,255,215, +0,52,3,31,255,215,0,52,3,33, +255,215,0,52,3,35,255,215,0,52, +3,37,255,215,0,52,3,39,255,215, +0,52,3,41,255,215,0,52,3,43, +255,215,0,52,3,45,255,215,0,52, +3,47,255,215,0,52,3,49,255,215, +0,52,3,51,255,215,0,52,3,111, +255,236,0,52,3,113,255,236,0,52, +3,115,255,236,0,52,3,143,255,195, +0,55,0,15,255,133,0,55,0,16, +255,174,0,55,0,17,255,133,0,55, +0,34,0,41,0,55,0,36,255,113, +0,55,0,38,255,215,0,55,0,42, +255,215,0,55,0,50,255,215,0,55, +0,52,255,215,0,55,0,55,0,41, +0,55,0,68,255,92,0,55,0,70, +255,113,0,55,0,71,255,113,0,55, +0,72,255,113,0,55,0,74,255,113, +0,55,0,80,255,154,0,55,0,81, +255,154,0,55,0,82,255,113,0,55, +0,83,255,154,0,55,0,84,255,113, +0,55,0,85,255,154,0,55,0,86, +255,133,0,55,0,88,255,154,0,55, +0,89,255,215,0,55,0,90,255,215, +0,55,0,91,255,215,0,55,0,92, +255,215,0,55,0,93,255,174,0,55, +0,130,255,113,0,55,0,131,255,113, +0,55,0,132,255,113,0,55,0,133, +255,113,0,55,0,134,255,113,0,55, +0,135,255,113,0,55,0,137,255,215, +0,55,0,148,255,215,0,55,0,149, +255,215,0,55,0,150,255,215,0,55, +0,151,255,215,0,55,0,152,255,215, +0,55,0,154,255,215,0,55,0,162, +255,113,0,55,0,163,255,92,0,55, +0,164,255,92,0,55,0,165,255,92, +0,55,0,166,255,92,0,55,0,167, +255,92,0,55,0,168,255,92,0,55, +0,169,255,113,0,55,0,170,255,113, +0,55,0,171,255,113,0,55,0,172, +255,113,0,55,0,173,255,113,0,55, +0,180,255,113,0,55,0,181,255,113, +0,55,0,182,255,113,0,55,0,183, +255,113,0,55,0,184,255,113,0,55, +0,186,255,113,0,55,0,187,255,154, +0,55,0,188,255,154,0,55,0,189, +255,154,0,55,0,190,255,154,0,55, +0,191,255,215,0,55,0,194,255,113, +0,55,0,195,255,92,0,55,0,196, +255,113,0,55,0,197,255,92,0,55, +0,198,255,113,0,55,0,199,255,92, +0,55,0,200,255,215,0,55,0,201, +255,113,0,55,0,202,255,215,0,55, +0,203,255,113,0,55,0,204,255,215, +0,55,0,205,255,113,0,55,0,206, +255,215,0,55,0,207,255,113,0,55, +0,209,255,113,0,55,0,211,255,113, +0,55,0,213,255,113,0,55,0,215, +255,113,0,55,0,217,255,113,0,55, +0,219,255,113,0,55,0,221,255,113, +0,55,0,222,255,215,0,55,0,223, +255,113,0,55,0,224,255,215,0,55, +0,225,255,113,0,55,0,226,255,215, +0,55,0,227,255,113,0,55,0,228, +255,215,0,55,0,229,255,113,0,55, +0,250,255,154,0,55,1,6,255,154, +0,55,1,8,255,154,0,55,1,13, +255,154,0,55,1,14,255,215,0,55, +1,15,255,113,0,55,1,16,255,215, +0,55,1,17,255,113,0,55,1,18, +255,215,0,55,1,19,255,113,0,55, +1,20,255,215,0,55,1,21,255,113, +0,55,1,23,255,154,0,55,1,25, +255,154,0,55,1,29,255,133,0,55, +1,33,255,133,0,55,1,36,0,41, +0,55,1,38,0,41,0,55,1,43, +255,154,0,55,1,45,255,154,0,55, +1,47,255,154,0,55,1,49,255,154, +0,55,1,51,255,154,0,55,1,53, +255,154,0,55,1,55,255,215,0,55, +1,60,255,174,0,55,1,62,255,174, +0,55,1,64,255,174,0,55,1,67, +255,113,0,55,1,68,255,92,0,55, +1,70,255,92,0,55,1,71,255,215, +0,55,1,72,255,113,0,55,1,74, +255,133,0,55,1,251,255,215,0,55, +1,253,255,215,0,55,2,2,255,174, +0,55,2,3,255,174,0,55,2,4, +255,174,0,55,2,8,255,133,0,55, +2,12,255,133,0,55,2,87,255,154, +0,55,2,88,255,113,0,55,2,89, +255,92,0,55,2,95,255,215,0,55, +2,96,255,113,0,55,2,98,255,154, +0,55,3,29,255,113,0,55,3,30, +255,92,0,55,3,31,255,113,0,55, +3,32,255,92,0,55,3,33,255,113, +0,55,3,34,255,92,0,55,3,35, +255,113,0,55,3,37,255,113,0,55, +3,38,255,92,0,55,3,39,255,113, +0,55,3,40,255,92,0,55,3,41, +255,113,0,55,3,42,255,92,0,55, +3,43,255,113,0,55,3,44,255,92, +0,55,3,45,255,113,0,55,3,46, +255,92,0,55,3,47,255,113,0,55, +3,48,255,92,0,55,3,49,255,113, +0,55,3,50,255,92,0,55,3,51, +255,113,0,55,3,52,255,92,0,55, +3,54,255,113,0,55,3,56,255,113, +0,55,3,58,255,113,0,55,3,60, +255,113,0,55,3,64,255,113,0,55, +3,66,255,113,0,55,3,68,255,113, +0,55,3,73,255,215,0,55,3,74, +255,113,0,55,3,75,255,215,0,55, +3,76,255,113,0,55,3,77,255,215, +0,55,3,78,255,113,0,55,3,79, +255,215,0,55,3,81,255,215,0,55, +3,82,255,113,0,55,3,83,255,215, +0,55,3,84,255,113,0,55,3,85, +255,215,0,55,3,86,255,113,0,55, +3,87,255,215,0,55,3,88,255,113, +0,55,3,89,255,215,0,55,3,90, +255,113,0,55,3,91,255,215,0,55, +3,92,255,113,0,55,3,93,255,215, +0,55,3,94,255,113,0,55,3,95, +255,215,0,55,3,96,255,113,0,55, +3,98,255,154,0,55,3,100,255,154, +0,55,3,102,255,154,0,55,3,104, +255,154,0,55,3,106,255,154,0,55, +3,108,255,154,0,55,3,110,255,154, +0,55,3,112,255,215,0,55,3,143, +0,41,0,56,0,15,255,215,0,56, +0,17,255,215,0,56,0,36,255,236, +0,56,0,130,255,236,0,56,0,131, +255,236,0,56,0,132,255,236,0,56, +0,133,255,236,0,56,0,134,255,236, +0,56,0,135,255,236,0,56,0,194, +255,236,0,56,0,196,255,236,0,56, +0,198,255,236,0,56,1,67,255,236, +0,56,2,8,255,215,0,56,2,12, +255,215,0,56,2,88,255,236,0,56, +3,29,255,236,0,56,3,31,255,236, +0,56,3,33,255,236,0,56,3,35, +255,236,0,56,3,37,255,236,0,56, +3,39,255,236,0,56,3,41,255,236, +0,56,3,43,255,236,0,56,3,45, +255,236,0,56,3,47,255,236,0,56, +3,49,255,236,0,56,3,51,255,236, +0,57,0,15,255,154,0,57,0,17, +255,154,0,57,0,34,0,41,0,57, +0,36,255,174,0,57,0,38,255,236, +0,57,0,42,255,236,0,57,0,50, +255,236,0,57,0,52,255,236,0,57, +0,68,255,215,0,57,0,70,255,215, +0,57,0,71,255,215,0,57,0,72, +255,215,0,57,0,74,255,236,0,57, +0,80,255,236,0,57,0,81,255,236, +0,57,0,82,255,215,0,57,0,83, +255,236,0,57,0,84,255,215,0,57, +0,85,255,236,0,57,0,86,255,236, +0,57,0,88,255,236,0,57,0,130, +255,174,0,57,0,131,255,174,0,57, +0,132,255,174,0,57,0,133,255,174, +0,57,0,134,255,174,0,57,0,135, +255,174,0,57,0,137,255,236,0,57, +0,148,255,236,0,57,0,149,255,236, +0,57,0,150,255,236,0,57,0,151, +255,236,0,57,0,152,255,236,0,57, +0,154,255,236,0,57,0,162,255,215, +0,57,0,163,255,215,0,57,0,164, +255,215,0,57,0,165,255,215,0,57, +0,166,255,215,0,57,0,167,255,215, +0,57,0,168,255,215,0,57,0,169, +255,215,0,57,0,170,255,215,0,57, +0,171,255,215,0,57,0,172,255,215, +0,57,0,173,255,215,0,57,0,180, +255,215,0,57,0,181,255,215,0,57, +0,182,255,215,0,57,0,183,255,215, +0,57,0,184,255,215,0,57,0,186, +255,215,0,57,0,187,255,236,0,57, +0,188,255,236,0,57,0,189,255,236, +0,57,0,190,255,236,0,57,0,194, +255,174,0,57,0,195,255,215,0,57, +0,196,255,174,0,57,0,197,255,215, +0,57,0,198,255,174,0,57,0,199, +255,215,0,57,0,200,255,236,0,57, +0,201,255,215,0,57,0,202,255,236, +0,57,0,203,255,215,0,57,0,204, +255,236,0,57,0,205,255,215,0,57, +0,206,255,236,0,57,0,207,255,215, +0,57,0,209,255,215,0,57,0,211, +255,215,0,57,0,213,255,215,0,57, +0,215,255,215,0,57,0,217,255,215, +0,57,0,219,255,215,0,57,0,221, +255,215,0,57,0,222,255,236,0,57, +0,223,255,236,0,57,0,224,255,236, +0,57,0,225,255,236,0,57,0,226, +255,236,0,57,0,227,255,236,0,57, +0,228,255,236,0,57,0,229,255,236, +0,57,0,250,255,236,0,57,1,6, +255,236,0,57,1,8,255,236,0,57, +1,13,255,236,0,57,1,14,255,236, +0,57,1,15,255,215,0,57,1,16, +255,236,0,57,1,17,255,215,0,57, +1,18,255,236,0,57,1,19,255,215, +0,57,1,20,255,236,0,57,1,21, +255,215,0,57,1,23,255,236,0,57, +1,25,255,236,0,57,1,29,255,236, +0,57,1,33,255,236,0,57,1,43, +255,236,0,57,1,45,255,236,0,57, +1,47,255,236,0,57,1,49,255,236, +0,57,1,51,255,236,0,57,1,53, +255,236,0,57,1,67,255,174,0,57, +1,68,255,215,0,57,1,70,255,215, +0,57,1,71,255,236,0,57,1,72, +255,215,0,57,1,74,255,236,0,57, +2,8,255,154,0,57,2,12,255,154, +0,57,2,87,255,236,0,57,2,88, +255,174,0,57,2,89,255,215,0,57, +2,95,255,236,0,57,2,96,255,215, +0,57,2,98,255,236,0,57,3,29, +255,174,0,57,3,30,255,215,0,57, +3,31,255,174,0,57,3,32,255,215, +0,57,3,33,255,174,0,57,3,34, +255,215,0,57,3,35,255,174,0,57, +3,37,255,174,0,57,3,38,255,215, +0,57,3,39,255,174,0,57,3,40, +255,215,0,57,3,41,255,174,0,57, +3,42,255,215,0,57,3,43,255,174, +0,57,3,44,255,215,0,57,3,45, +255,174,0,57,3,46,255,215,0,57, +3,47,255,174,0,57,3,48,255,215, +0,57,3,49,255,174,0,57,3,50, +255,215,0,57,3,51,255,174,0,57, +3,52,255,215,0,57,3,54,255,215, +0,57,3,56,255,215,0,57,3,58, +255,215,0,57,3,60,255,215,0,57, +3,64,255,215,0,57,3,66,255,215, +0,57,3,68,255,215,0,57,3,73, +255,236,0,57,3,74,255,215,0,57, +3,75,255,236,0,57,3,76,255,215, +0,57,3,77,255,236,0,57,3,78, +255,215,0,57,3,79,255,236,0,57, +3,81,255,236,0,57,3,82,255,215, +0,57,3,83,255,236,0,57,3,84, +255,215,0,57,3,85,255,236,0,57, +3,86,255,215,0,57,3,87,255,236, +0,57,3,88,255,215,0,57,3,89, +255,236,0,57,3,90,255,215,0,57, +3,91,255,236,0,57,3,92,255,215, +0,57,3,93,255,236,0,57,3,94, +255,215,0,57,3,95,255,236,0,57, +3,96,255,215,0,57,3,98,255,236, +0,57,3,100,255,236,0,57,3,102, +255,236,0,57,3,104,255,236,0,57, +3,106,255,236,0,57,3,108,255,236, +0,57,3,110,255,236,0,58,0,15, +255,154,0,58,0,17,255,154,0,58, +0,34,0,41,0,58,0,36,255,174, +0,58,0,38,255,236,0,58,0,42, +255,236,0,58,0,50,255,236,0,58, +0,52,255,236,0,58,0,68,255,215, +0,58,0,70,255,215,0,58,0,71, +255,215,0,58,0,72,255,215,0,58, +0,74,255,236,0,58,0,80,255,236, +0,58,0,81,255,236,0,58,0,82, +255,215,0,58,0,83,255,236,0,58, +0,84,255,215,0,58,0,85,255,236, +0,58,0,86,255,236,0,58,0,88, +255,236,0,58,0,130,255,174,0,58, +0,131,255,174,0,58,0,132,255,174, +0,58,0,133,255,174,0,58,0,134, +255,174,0,58,0,135,255,174,0,58, +0,137,255,236,0,58,0,148,255,236, +0,58,0,149,255,236,0,58,0,150, +255,236,0,58,0,151,255,236,0,58, +0,152,255,236,0,58,0,154,255,236, +0,58,0,162,255,215,0,58,0,163, +255,215,0,58,0,164,255,215,0,58, +0,165,255,215,0,58,0,166,255,215, +0,58,0,167,255,215,0,58,0,168, +255,215,0,58,0,169,255,215,0,58, +0,170,255,215,0,58,0,171,255,215, +0,58,0,172,255,215,0,58,0,173, +255,215,0,58,0,180,255,215,0,58, +0,181,255,215,0,58,0,182,255,215, +0,58,0,183,255,215,0,58,0,184, +255,215,0,58,0,186,255,215,0,58, +0,187,255,236,0,58,0,188,255,236, +0,58,0,189,255,236,0,58,0,190, +255,236,0,58,0,194,255,174,0,58, +0,195,255,215,0,58,0,196,255,174, +0,58,0,197,255,215,0,58,0,198, +255,174,0,58,0,199,255,215,0,58, +0,200,255,236,0,58,0,201,255,215, +0,58,0,202,255,236,0,58,0,203, +255,215,0,58,0,204,255,236,0,58, +0,205,255,215,0,58,0,206,255,236, +0,58,0,207,255,215,0,58,0,209, +255,215,0,58,0,211,255,215,0,58, +0,213,255,215,0,58,0,215,255,215, +0,58,0,217,255,215,0,58,0,219, +255,215,0,58,0,221,255,215,0,58, +0,222,255,236,0,58,0,223,255,236, +0,58,0,224,255,236,0,58,0,225, +255,236,0,58,0,226,255,236,0,58, +0,227,255,236,0,58,0,228,255,236, +0,58,0,229,255,236,0,58,0,250, +255,236,0,58,1,6,255,236,0,58, +1,8,255,236,0,58,1,13,255,236, +0,58,1,14,255,236,0,58,1,15, +255,215,0,58,1,16,255,236,0,58, +1,17,255,215,0,58,1,18,255,236, +0,58,1,19,255,215,0,58,1,20, +255,236,0,58,1,21,255,215,0,58, +1,23,255,236,0,58,1,25,255,236, +0,58,1,29,255,236,0,58,1,33, +255,236,0,58,1,43,255,236,0,58, +1,45,255,236,0,58,1,47,255,236, +0,58,1,49,255,236,0,58,1,51, +255,236,0,58,1,53,255,236,0,58, +1,67,255,174,0,58,1,68,255,215, +0,58,1,70,255,215,0,58,1,71, +255,236,0,58,1,72,255,215,0,58, +1,74,255,236,0,58,2,8,255,154, +0,58,2,12,255,154,0,58,2,87, +255,236,0,58,2,88,255,174,0,58, +2,89,255,215,0,58,2,95,255,236, +0,58,2,96,255,215,0,58,2,98, +255,236,0,58,3,29,255,174,0,58, +3,30,255,215,0,58,3,31,255,174, +0,58,3,32,255,215,0,58,3,33, +255,174,0,58,3,34,255,215,0,58, +3,35,255,174,0,58,3,37,255,174, +0,58,3,38,255,215,0,58,3,39, +255,174,0,58,3,40,255,215,0,58, +3,41,255,174,0,58,3,42,255,215, +0,58,3,43,255,174,0,58,3,44, +255,215,0,58,3,45,255,174,0,58, +3,46,255,215,0,58,3,47,255,174, +0,58,3,48,255,215,0,58,3,49, +255,174,0,58,3,50,255,215,0,58, +3,51,255,174,0,58,3,52,255,215, +0,58,3,54,255,215,0,58,3,56, +255,215,0,58,3,58,255,215,0,58, +3,60,255,215,0,58,3,64,255,215, +0,58,3,66,255,215,0,58,3,68, +255,215,0,58,3,73,255,236,0,58, +3,74,255,215,0,58,3,75,255,236, +0,58,3,76,255,215,0,58,3,77, +255,236,0,58,3,78,255,215,0,58, +3,79,255,236,0,58,3,81,255,236, +0,58,3,82,255,215,0,58,3,83, +255,236,0,58,3,84,255,215,0,58, +3,85,255,236,0,58,3,86,255,215, +0,58,3,87,255,236,0,58,3,88, +255,215,0,58,3,89,255,236,0,58, +3,90,255,215,0,58,3,91,255,236, +0,58,3,92,255,215,0,58,3,93, +255,236,0,58,3,94,255,215,0,58, +3,95,255,236,0,58,3,96,255,215, +0,58,3,98,255,236,0,58,3,100, +255,236,0,58,3,102,255,236,0,58, +3,104,255,236,0,58,3,106,255,236, +0,58,3,108,255,236,0,58,3,110, +255,236,0,59,0,38,255,215,0,59, +0,42,255,215,0,59,0,50,255,215, +0,59,0,52,255,215,0,59,0,137, +255,215,0,59,0,148,255,215,0,59, +0,149,255,215,0,59,0,150,255,215, +0,59,0,151,255,215,0,59,0,152, +255,215,0,59,0,154,255,215,0,59, +0,200,255,215,0,59,0,202,255,215, +0,59,0,204,255,215,0,59,0,206, +255,215,0,59,0,222,255,215,0,59, +0,224,255,215,0,59,0,226,255,215, +0,59,0,228,255,215,0,59,1,14, +255,215,0,59,1,16,255,215,0,59, +1,18,255,215,0,59,1,20,255,215, +0,59,1,71,255,215,0,59,2,95, +255,215,0,59,3,73,255,215,0,59, +3,75,255,215,0,59,3,77,255,215, +0,59,3,79,255,215,0,59,3,81, +255,215,0,59,3,83,255,215,0,59, +3,85,255,215,0,59,3,87,255,215, +0,59,3,89,255,215,0,59,3,91, +255,215,0,59,3,93,255,215,0,59, +3,95,255,215,0,60,0,15,255,133, +0,60,0,17,255,133,0,60,0,34, +0,41,0,60,0,36,255,133,0,60, +0,38,255,215,0,60,0,42,255,215, +0,60,0,50,255,215,0,60,0,52, +255,215,0,60,0,68,255,154,0,60, +0,70,255,154,0,60,0,71,255,154, +0,60,0,72,255,154,0,60,0,74, +255,215,0,60,0,80,255,195,0,60, +0,81,255,195,0,60,0,82,255,154, +0,60,0,83,255,195,0,60,0,84, +255,154,0,60,0,85,255,195,0,60, +0,86,255,174,0,60,0,88,255,195, +0,60,0,93,255,215,0,60,0,130, +255,133,0,60,0,131,255,133,0,60, +0,132,255,133,0,60,0,133,255,133, +0,60,0,134,255,133,0,60,0,135, +255,133,0,60,0,137,255,215,0,60, +0,148,255,215,0,60,0,149,255,215, +0,60,0,150,255,215,0,60,0,151, +255,215,0,60,0,152,255,215,0,60, +0,154,255,215,0,60,0,162,255,154, +0,60,0,163,255,154,0,60,0,164, +255,154,0,60,0,165,255,154,0,60, +0,166,255,154,0,60,0,167,255,154, +0,60,0,168,255,154,0,60,0,169, +255,154,0,60,0,170,255,154,0,60, +0,171,255,154,0,60,0,172,255,154, +0,60,0,173,255,154,0,60,0,180, +255,154,0,60,0,181,255,154,0,60, +0,182,255,154,0,60,0,183,255,154, +0,60,0,184,255,154,0,60,0,186, +255,154,0,60,0,187,255,195,0,60, +0,188,255,195,0,60,0,189,255,195, +0,60,0,190,255,195,0,60,0,194, +255,133,0,60,0,195,255,154,0,60, +0,196,255,133,0,60,0,197,255,154, +0,60,0,198,255,133,0,60,0,199, +255,154,0,60,0,200,255,215,0,60, +0,201,255,154,0,60,0,202,255,215, +0,60,0,203,255,154,0,60,0,204, +255,215,0,60,0,205,255,154,0,60, +0,206,255,215,0,60,0,207,255,154, +0,60,0,209,255,154,0,60,0,211, +255,154,0,60,0,213,255,154,0,60, +0,215,255,154,0,60,0,217,255,154, +0,60,0,219,255,154,0,60,0,221, +255,154,0,60,0,222,255,215,0,60, +0,223,255,215,0,60,0,224,255,215, +0,60,0,225,255,215,0,60,0,226, +255,215,0,60,0,227,255,215,0,60, +0,228,255,215,0,60,0,229,255,215, +0,60,0,250,255,195,0,60,1,6, +255,195,0,60,1,8,255,195,0,60, +1,13,255,195,0,60,1,14,255,215, +0,60,1,15,255,154,0,60,1,16, +255,215,0,60,1,17,255,154,0,60, +1,18,255,215,0,60,1,19,255,154, +0,60,1,20,255,215,0,60,1,21, +255,154,0,60,1,23,255,195,0,60, +1,25,255,195,0,60,1,29,255,174, +0,60,1,33,255,174,0,60,1,43, +255,195,0,60,1,45,255,195,0,60, +1,47,255,195,0,60,1,49,255,195, +0,60,1,51,255,195,0,60,1,53, +255,195,0,60,1,60,255,215,0,60, +1,62,255,215,0,60,1,64,255,215, +0,60,1,67,255,133,0,60,1,68, +255,154,0,60,1,70,255,154,0,60, +1,71,255,215,0,60,1,72,255,154, +0,60,1,74,255,174,0,60,2,8, +255,133,0,60,2,12,255,133,0,60, +2,87,255,195,0,60,2,88,255,133, +0,60,2,89,255,154,0,60,2,95, +255,215,0,60,2,96,255,154,0,60, +2,98,255,195,0,60,3,29,255,133, +0,60,3,30,255,154,0,60,3,31, +255,133,0,60,3,32,255,154,0,60, +3,33,255,133,0,60,3,34,255,154, +0,60,3,35,255,133,0,60,3,37, +255,133,0,60,3,38,255,154,0,60, +3,39,255,133,0,60,3,40,255,154, +0,60,3,41,255,133,0,60,3,42, +255,154,0,60,3,43,255,133,0,60, +3,44,255,154,0,60,3,45,255,133, +0,60,3,46,255,154,0,60,3,47, +255,133,0,60,3,48,255,154,0,60, +3,49,255,133,0,60,3,50,255,154, +0,60,3,51,255,133,0,60,3,52, +255,154,0,60,3,54,255,154,0,60, +3,56,255,154,0,60,3,58,255,154, +0,60,3,60,255,154,0,60,3,64, +255,154,0,60,3,66,255,154,0,60, +3,68,255,154,0,60,3,73,255,215, +0,60,3,74,255,154,0,60,3,75, +255,215,0,60,3,76,255,154,0,60, +3,77,255,215,0,60,3,78,255,154, +0,60,3,79,255,215,0,60,3,81, +255,215,0,60,3,82,255,154,0,60, +3,83,255,215,0,60,3,84,255,154, +0,60,3,85,255,215,0,60,3,86, +255,154,0,60,3,87,255,215,0,60, +3,88,255,154,0,60,3,89,255,215, +0,60,3,90,255,154,0,60,3,91, +255,215,0,60,3,92,255,154,0,60, +3,93,255,215,0,60,3,94,255,154, +0,60,3,95,255,215,0,60,3,96, +255,154,0,60,3,98,255,195,0,60, +3,100,255,195,0,60,3,102,255,195, +0,60,3,104,255,195,0,60,3,106, +255,195,0,60,3,108,255,195,0,60, +3,110,255,195,0,61,0,38,255,236, +0,61,0,42,255,236,0,61,0,50, +255,236,0,61,0,52,255,236,0,61, +0,137,255,236,0,61,0,148,255,236, +0,61,0,149,255,236,0,61,0,150, +255,236,0,61,0,151,255,236,0,61, +0,152,255,236,0,61,0,154,255,236, +0,61,0,200,255,236,0,61,0,202, +255,236,0,61,0,204,255,236,0,61, +0,206,255,236,0,61,0,222,255,236, +0,61,0,224,255,236,0,61,0,226, +255,236,0,61,0,228,255,236,0,61, +1,14,255,236,0,61,1,16,255,236, +0,61,1,18,255,236,0,61,1,20, +255,236,0,61,1,71,255,236,0,61, +2,95,255,236,0,61,3,73,255,236, +0,61,3,75,255,236,0,61,3,77, +255,236,0,61,3,79,255,236,0,61, +3,81,255,236,0,61,3,83,255,236, +0,61,3,85,255,236,0,61,3,87, +255,236,0,61,3,89,255,236,0,61, +3,91,255,236,0,61,3,93,255,236, +0,61,3,95,255,236,0,62,0,45, +0,184,0,68,0,5,255,236,0,68, +0,10,255,236,0,68,2,7,255,236, +0,68,2,11,255,236,0,69,0,5, +255,236,0,69,0,10,255,236,0,69, +0,89,255,215,0,69,0,90,255,215, +0,69,0,91,255,215,0,69,0,92, +255,215,0,69,0,93,255,236,0,69, +0,191,255,215,0,69,1,55,255,215, +0,69,1,60,255,236,0,69,1,62, +255,236,0,69,1,64,255,236,0,69, +1,251,255,215,0,69,1,253,255,215, +0,69,2,7,255,236,0,69,2,11, +255,236,0,69,3,112,255,215,0,70, +0,5,0,41,0,70,0,10,0,41, +0,70,2,7,0,41,0,70,2,11, +0,41,0,72,0,5,255,236,0,72, +0,10,255,236,0,72,0,89,255,215, +0,72,0,90,255,215,0,72,0,91, +255,215,0,72,0,92,255,215,0,72, +0,93,255,236,0,72,0,191,255,215, +0,72,1,55,255,215,0,72,1,60, +255,236,0,72,1,62,255,236,0,72, +1,64,255,236,0,72,1,251,255,215, +0,72,1,253,255,215,0,72,2,7, +255,236,0,72,2,11,255,236,0,72, +3,112,255,215,0,73,0,5,0,123, +0,73,0,10,0,123,0,73,2,7, +0,123,0,73,2,11,0,123,0,75, +0,5,255,236,0,75,0,10,255,236, +0,75,2,7,255,236,0,75,2,11, +255,236,0,78,0,70,255,215,0,78, +0,71,255,215,0,78,0,72,255,215, +0,78,0,82,255,215,0,78,0,84, +255,215,0,78,0,162,255,215,0,78, +0,169,255,215,0,78,0,170,255,215, +0,78,0,171,255,215,0,78,0,172, +255,215,0,78,0,173,255,215,0,78, +0,180,255,215,0,78,0,181,255,215, +0,78,0,182,255,215,0,78,0,183, +255,215,0,78,0,184,255,215,0,78, +0,186,255,215,0,78,0,201,255,215, +0,78,0,203,255,215,0,78,0,205, +255,215,0,78,0,207,255,215,0,78, +0,209,255,215,0,78,0,211,255,215, +0,78,0,213,255,215,0,78,0,215, +255,215,0,78,0,217,255,215,0,78, +0,219,255,215,0,78,0,221,255,215, +0,78,1,15,255,215,0,78,1,17, +255,215,0,78,1,19,255,215,0,78, +1,21,255,215,0,78,1,72,255,215, +0,78,2,96,255,215,0,78,3,54, +255,215,0,78,3,56,255,215,0,78, +3,58,255,215,0,78,3,60,255,215, +0,78,3,64,255,215,0,78,3,66, +255,215,0,78,3,68,255,215,0,78, +3,74,255,215,0,78,3,76,255,215, +0,78,3,78,255,215,0,78,3,82, +255,215,0,78,3,84,255,215,0,78, +3,86,255,215,0,78,3,88,255,215, +0,78,3,90,255,215,0,78,3,92, +255,215,0,78,3,94,255,215,0,78, +3,96,255,215,0,80,0,5,255,236, +0,80,0,10,255,236,0,80,2,7, +255,236,0,80,2,11,255,236,0,81, +0,5,255,236,0,81,0,10,255,236, +0,81,2,7,255,236,0,81,2,11, +255,236,0,82,0,5,255,236,0,82, +0,10,255,236,0,82,0,89,255,215, +0,82,0,90,255,215,0,82,0,91, +255,215,0,82,0,92,255,215,0,82, +0,93,255,236,0,82,0,191,255,215, +0,82,1,55,255,215,0,82,1,60, +255,236,0,82,1,62,255,236,0,82, +1,64,255,236,0,82,1,251,255,215, +0,82,1,253,255,215,0,82,2,7, +255,236,0,82,2,11,255,236,0,82, +3,112,255,215,0,83,0,5,255,236, +0,83,0,10,255,236,0,83,0,89, +255,215,0,83,0,90,255,215,0,83, +0,91,255,215,0,83,0,92,255,215, +0,83,0,93,255,236,0,83,0,191, +255,215,0,83,1,55,255,215,0,83, +1,60,255,236,0,83,1,62,255,236, +0,83,1,64,255,236,0,83,1,251, +255,215,0,83,1,253,255,215,0,83, +2,7,255,236,0,83,2,11,255,236, +0,83,3,112,255,215,0,85,0,5, +0,82,0,85,0,10,0,82,0,85, +0,68,255,215,0,85,0,70,255,215, +0,85,0,71,255,215,0,85,0,72, +255,215,0,85,0,74,255,236,0,85, +0,82,255,215,0,85,0,84,255,215, +0,85,0,162,255,215,0,85,0,163, +255,215,0,85,0,164,255,215,0,85, +0,165,255,215,0,85,0,166,255,215, +0,85,0,167,255,215,0,85,0,168, +255,215,0,85,0,169,255,215,0,85, +0,170,255,215,0,85,0,171,255,215, +0,85,0,172,255,215,0,85,0,173, +255,215,0,85,0,180,255,215,0,85, +0,181,255,215,0,85,0,182,255,215, +0,85,0,183,255,215,0,85,0,184, +255,215,0,85,0,186,255,215,0,85, +0,195,255,215,0,85,0,197,255,215, +0,85,0,199,255,215,0,85,0,201, +255,215,0,85,0,203,255,215,0,85, +0,205,255,215,0,85,0,207,255,215, +0,85,0,209,255,215,0,85,0,211, +255,215,0,85,0,213,255,215,0,85, +0,215,255,215,0,85,0,217,255,215, +0,85,0,219,255,215,0,85,0,221, +255,215,0,85,0,223,255,236,0,85, +0,225,255,236,0,85,0,227,255,236, +0,85,0,229,255,236,0,85,1,15, +255,215,0,85,1,17,255,215,0,85, +1,19,255,215,0,85,1,21,255,215, +0,85,1,68,255,215,0,85,1,70, +255,215,0,85,1,72,255,215,0,85, +2,7,0,82,0,85,2,11,0,82, +0,85,2,89,255,215,0,85,2,96, +255,215,0,85,3,30,255,215,0,85, +3,32,255,215,0,85,3,34,255,215, +0,85,3,38,255,215,0,85,3,40, +255,215,0,85,3,42,255,215,0,85, +3,44,255,215,0,85,3,46,255,215, +0,85,3,48,255,215,0,85,3,50, +255,215,0,85,3,52,255,215,0,85, +3,54,255,215,0,85,3,56,255,215, +0,85,3,58,255,215,0,85,3,60, +255,215,0,85,3,64,255,215,0,85, +3,66,255,215,0,85,3,68,255,215, +0,85,3,74,255,215,0,85,3,76, +255,215,0,85,3,78,255,215,0,85, +3,82,255,215,0,85,3,84,255,215, +0,85,3,86,255,215,0,85,3,88, +255,215,0,85,3,90,255,215,0,85, +3,92,255,215,0,85,3,94,255,215, +0,85,3,96,255,215,0,87,0,5, +0,41,0,87,0,10,0,41,0,87, +2,7,0,41,0,87,2,11,0,41, +0,89,0,5,0,82,0,89,0,10, +0,82,0,89,0,15,255,174,0,89, +0,17,255,174,0,89,0,34,0,41, +0,89,2,7,0,82,0,89,2,8, +255,174,0,89,2,11,0,82,0,89, +2,12,255,174,0,90,0,5,0,82, +0,90,0,10,0,82,0,90,0,15, +255,174,0,90,0,17,255,174,0,90, +0,34,0,41,0,90,2,7,0,82, +0,90,2,8,255,174,0,90,2,11, +0,82,0,90,2,12,255,174,0,91, +0,70,255,215,0,91,0,71,255,215, +0,91,0,72,255,215,0,91,0,82, +255,215,0,91,0,84,255,215,0,91, +0,162,255,215,0,91,0,169,255,215, +0,91,0,170,255,215,0,91,0,171, +255,215,0,91,0,172,255,215,0,91, +0,173,255,215,0,91,0,180,255,215, +0,91,0,181,255,215,0,91,0,182, +255,215,0,91,0,183,255,215,0,91, +0,184,255,215,0,91,0,186,255,215, +0,91,0,201,255,215,0,91,0,203, +255,215,0,91,0,205,255,215,0,91, +0,207,255,215,0,91,0,209,255,215, +0,91,0,211,255,215,0,91,0,213, +255,215,0,91,0,215,255,215,0,91, +0,217,255,215,0,91,0,219,255,215, +0,91,0,221,255,215,0,91,1,15, +255,215,0,91,1,17,255,215,0,91, +1,19,255,215,0,91,1,21,255,215, +0,91,1,72,255,215,0,91,2,96, +255,215,0,91,3,54,255,215,0,91, +3,56,255,215,0,91,3,58,255,215, +0,91,3,60,255,215,0,91,3,64, +255,215,0,91,3,66,255,215,0,91, +3,68,255,215,0,91,3,74,255,215, +0,91,3,76,255,215,0,91,3,78, +255,215,0,91,3,82,255,215,0,91, +3,84,255,215,0,91,3,86,255,215, +0,91,3,88,255,215,0,91,3,90, +255,215,0,91,3,92,255,215,0,91, +3,94,255,215,0,91,3,96,255,215, +0,92,0,5,0,82,0,92,0,10, +0,82,0,92,0,15,255,174,0,92, +0,17,255,174,0,92,0,34,0,41, +0,92,2,7,0,82,0,92,2,8, +255,174,0,92,2,11,0,82,0,92, +2,12,255,174,0,94,0,45,0,184, +0,130,0,5,255,113,0,130,0,10, +255,113,0,130,0,38,255,215,0,130, +0,42,255,215,0,130,0,45,1,10, +0,130,0,50,255,215,0,130,0,52, +255,215,0,130,0,55,255,113,0,130, +0,57,255,174,0,130,0,58,255,174, +0,130,0,60,255,133,0,130,0,137, +255,215,0,130,0,148,255,215,0,130, +0,149,255,215,0,130,0,150,255,215, +0,130,0,151,255,215,0,130,0,152, +255,215,0,130,0,154,255,215,0,130, +0,159,255,133,0,130,0,200,255,215, +0,130,0,202,255,215,0,130,0,204, +255,215,0,130,0,206,255,215,0,130, +0,222,255,215,0,130,0,224,255,215, +0,130,0,226,255,215,0,130,0,228, +255,215,0,130,1,14,255,215,0,130, +1,16,255,215,0,130,1,18,255,215, +0,130,1,20,255,215,0,130,1,36, +255,113,0,130,1,38,255,113,0,130, +1,54,255,174,0,130,1,56,255,133, +0,130,1,58,255,133,0,130,1,71, +255,215,0,130,1,250,255,174,0,130, +1,252,255,174,0,130,1,254,255,174, +0,130,2,0,255,133,0,130,2,7, +255,113,0,130,2,11,255,113,0,130, +2,95,255,215,0,130,3,73,255,215, +0,130,3,75,255,215,0,130,3,77, +255,215,0,130,3,79,255,215,0,130, +3,81,255,215,0,130,3,83,255,215, +0,130,3,85,255,215,0,130,3,87, +255,215,0,130,3,89,255,215,0,130, +3,91,255,215,0,130,3,93,255,215, +0,130,3,95,255,215,0,130,3,111, +255,133,0,130,3,113,255,133,0,130, +3,115,255,133,0,130,3,143,255,113, +0,131,0,5,255,113,0,131,0,10, +255,113,0,131,0,38,255,215,0,131, +0,42,255,215,0,131,0,45,1,10, +0,131,0,50,255,215,0,131,0,52, +255,215,0,131,0,55,255,113,0,131, +0,57,255,174,0,131,0,58,255,174, +0,131,0,60,255,133,0,131,0,137, +255,215,0,131,0,148,255,215,0,131, +0,149,255,215,0,131,0,150,255,215, +0,131,0,151,255,215,0,131,0,152, +255,215,0,131,0,154,255,215,0,131, +0,159,255,133,0,131,0,200,255,215, +0,131,0,202,255,215,0,131,0,204, +255,215,0,131,0,206,255,215,0,131, +0,222,255,215,0,131,0,224,255,215, +0,131,0,226,255,215,0,131,0,228, +255,215,0,131,1,14,255,215,0,131, +1,16,255,215,0,131,1,18,255,215, +0,131,1,20,255,215,0,131,1,36, +255,113,0,131,1,38,255,113,0,131, +1,54,255,174,0,131,1,56,255,133, +0,131,1,58,255,133,0,131,1,71, +255,215,0,131,1,250,255,174,0,131, +1,252,255,174,0,131,1,254,255,174, +0,131,2,0,255,133,0,131,2,7, +255,113,0,131,2,11,255,113,0,131, +2,95,255,215,0,131,3,73,255,215, +0,131,3,75,255,215,0,131,3,77, +255,215,0,131,3,79,255,215,0,131, +3,81,255,215,0,131,3,83,255,215, +0,131,3,85,255,215,0,131,3,87, +255,215,0,131,3,89,255,215,0,131, +3,91,255,215,0,131,3,93,255,215, +0,131,3,95,255,215,0,131,3,111, +255,133,0,131,3,113,255,133,0,131, +3,115,255,133,0,131,3,143,255,113, +0,132,0,5,255,113,0,132,0,10, +255,113,0,132,0,38,255,215,0,132, +0,42,255,215,0,132,0,45,1,10, +0,132,0,50,255,215,0,132,0,52, +255,215,0,132,0,55,255,113,0,132, +0,57,255,174,0,132,0,58,255,174, +0,132,0,60,255,133,0,132,0,137, +255,215,0,132,0,148,255,215,0,132, +0,149,255,215,0,132,0,150,255,215, +0,132,0,151,255,215,0,132,0,152, +255,215,0,132,0,154,255,215,0,132, +0,159,255,133,0,132,0,200,255,215, +0,132,0,202,255,215,0,132,0,204, +255,215,0,132,0,206,255,215,0,132, +0,222,255,215,0,132,0,224,255,215, +0,132,0,226,255,215,0,132,0,228, +255,215,0,132,1,14,255,215,0,132, +1,16,255,215,0,132,1,18,255,215, +0,132,1,20,255,215,0,132,1,36, +255,113,0,132,1,38,255,113,0,132, +1,54,255,174,0,132,1,56,255,133, +0,132,1,58,255,133,0,132,1,71, +255,215,0,132,1,250,255,174,0,132, +1,252,255,174,0,132,1,254,255,174, +0,132,2,0,255,133,0,132,2,7, +255,113,0,132,2,11,255,113,0,132, +2,95,255,215,0,132,3,73,255,215, +0,132,3,75,255,215,0,132,3,77, +255,215,0,132,3,79,255,215,0,132, +3,81,255,215,0,132,3,83,255,215, +0,132,3,85,255,215,0,132,3,87, +255,215,0,132,3,89,255,215,0,132, +3,91,255,215,0,132,3,93,255,215, +0,132,3,95,255,215,0,132,3,111, +255,133,0,132,3,113,255,133,0,132, +3,115,255,133,0,132,3,143,255,113, +0,133,0,5,255,113,0,133,0,10, +255,113,0,133,0,38,255,215,0,133, +0,42,255,215,0,133,0,45,1,10, +0,133,0,50,255,215,0,133,0,52, +255,215,0,133,0,55,255,113,0,133, +0,57,255,174,0,133,0,58,255,174, +0,133,0,60,255,133,0,133,0,137, +255,215,0,133,0,148,255,215,0,133, +0,149,255,215,0,133,0,150,255,215, +0,133,0,151,255,215,0,133,0,152, +255,215,0,133,0,154,255,215,0,133, +0,159,255,133,0,133,0,200,255,215, +0,133,0,202,255,215,0,133,0,204, +255,215,0,133,0,206,255,215,0,133, +0,222,255,215,0,133,0,224,255,215, +0,133,0,226,255,215,0,133,0,228, +255,215,0,133,1,14,255,215,0,133, +1,16,255,215,0,133,1,18,255,215, +0,133,1,20,255,215,0,133,1,36, +255,113,0,133,1,38,255,113,0,133, +1,54,255,174,0,133,1,56,255,133, +0,133,1,58,255,133,0,133,1,71, +255,215,0,133,1,250,255,174,0,133, +1,252,255,174,0,133,1,254,255,174, +0,133,2,0,255,133,0,133,2,7, +255,113,0,133,2,11,255,113,0,133, +2,95,255,215,0,133,3,73,255,215, +0,133,3,75,255,215,0,133,3,77, +255,215,0,133,3,79,255,215,0,133, +3,81,255,215,0,133,3,83,255,215, +0,133,3,85,255,215,0,133,3,87, +255,215,0,133,3,89,255,215,0,133, +3,91,255,215,0,133,3,93,255,215, +0,133,3,95,255,215,0,133,3,111, +255,133,0,133,3,113,255,133,0,133, +3,115,255,133,0,133,3,143,255,113, +0,134,0,5,255,113,0,134,0,10, +255,113,0,134,0,38,255,215,0,134, +0,42,255,215,0,134,0,45,1,10, +0,134,0,50,255,215,0,134,0,52, +255,215,0,134,0,55,255,113,0,134, +0,57,255,174,0,134,0,58,255,174, +0,134,0,60,255,133,0,134,0,137, +255,215,0,134,0,148,255,215,0,134, +0,149,255,215,0,134,0,150,255,215, +0,134,0,151,255,215,0,134,0,152, +255,215,0,134,0,154,255,215,0,134, +0,159,255,133,0,134,0,200,255,215, +0,134,0,202,255,215,0,134,0,204, +255,215,0,134,0,206,255,215,0,134, +0,222,255,215,0,134,0,224,255,215, +0,134,0,226,255,215,0,134,0,228, +255,215,0,134,1,14,255,215,0,134, +1,16,255,215,0,134,1,18,255,215, +0,134,1,20,255,215,0,134,1,36, +255,113,0,134,1,38,255,113,0,134, +1,54,255,174,0,134,1,56,255,133, +0,134,1,58,255,133,0,134,1,71, +255,215,0,134,1,250,255,174,0,134, +1,252,255,174,0,134,1,254,255,174, +0,134,2,0,255,133,0,134,2,7, +255,113,0,134,2,11,255,113,0,134, +2,95,255,215,0,134,3,73,255,215, +0,134,3,75,255,215,0,134,3,77, +255,215,0,134,3,79,255,215,0,134, +3,81,255,215,0,134,3,83,255,215, +0,134,3,85,255,215,0,134,3,87, +255,215,0,134,3,89,255,215,0,134, +3,91,255,215,0,134,3,93,255,215, +0,134,3,95,255,215,0,134,3,111, +255,133,0,134,3,113,255,133,0,134, +3,115,255,133,0,134,3,143,255,113, +0,135,0,5,255,113,0,135,0,10, +255,113,0,135,0,38,255,215,0,135, +0,42,255,215,0,135,0,45,1,10, +0,135,0,50,255,215,0,135,0,52, +255,215,0,135,0,55,255,113,0,135, +0,57,255,174,0,135,0,58,255,174, +0,135,0,60,255,133,0,135,0,137, +255,215,0,135,0,148,255,215,0,135, +0,149,255,215,0,135,0,150,255,215, +0,135,0,151,255,215,0,135,0,152, +255,215,0,135,0,154,255,215,0,135, +0,159,255,133,0,135,0,200,255,215, +0,135,0,202,255,215,0,135,0,204, +255,215,0,135,0,206,255,215,0,135, +0,222,255,215,0,135,0,224,255,215, +0,135,0,226,255,215,0,135,0,228, +255,215,0,135,1,14,255,215,0,135, +1,16,255,215,0,135,1,18,255,215, +0,135,1,20,255,215,0,135,1,36, +255,113,0,135,1,38,255,113,0,135, +1,54,255,174,0,135,1,56,255,133, +0,135,1,58,255,133,0,135,1,71, +255,215,0,135,1,250,255,174,0,135, +1,252,255,174,0,135,1,254,255,174, +0,135,2,0,255,133,0,135,2,7, +255,113,0,135,2,11,255,113,0,135, +2,95,255,215,0,135,3,73,255,215, +0,135,3,75,255,215,0,135,3,77, +255,215,0,135,3,79,255,215,0,135, +3,81,255,215,0,135,3,83,255,215, +0,135,3,85,255,215,0,135,3,87, +255,215,0,135,3,89,255,215,0,135, +3,91,255,215,0,135,3,93,255,215, +0,135,3,95,255,215,0,135,3,111, +255,133,0,135,3,113,255,133,0,135, +3,115,255,133,0,135,3,143,255,113, +0,136,0,45,0,123,0,137,0,38, +255,215,0,137,0,42,255,215,0,137, +0,50,255,215,0,137,0,52,255,215, +0,137,0,137,255,215,0,137,0,148, +255,215,0,137,0,149,255,215,0,137, +0,150,255,215,0,137,0,151,255,215, +0,137,0,152,255,215,0,137,0,154, +255,215,0,137,0,200,255,215,0,137, +0,202,255,215,0,137,0,204,255,215, +0,137,0,206,255,215,0,137,0,222, +255,215,0,137,0,224,255,215,0,137, +0,226,255,215,0,137,0,228,255,215, +0,137,1,14,255,215,0,137,1,16, +255,215,0,137,1,18,255,215,0,137, +1,20,255,215,0,137,1,71,255,215, +0,137,2,95,255,215,0,137,3,73, +255,215,0,137,3,75,255,215,0,137, +3,77,255,215,0,137,3,79,255,215, +0,137,3,81,255,215,0,137,3,83, +255,215,0,137,3,85,255,215,0,137, +3,87,255,215,0,137,3,89,255,215, +0,137,3,91,255,215,0,137,3,93, +255,215,0,137,3,95,255,215,0,138, +0,45,0,123,0,139,0,45,0,123, +0,140,0,45,0,123,0,141,0,45, +0,123,0,146,0,15,255,174,0,146, +0,17,255,174,0,146,0,36,255,215, +0,146,0,55,255,195,0,146,0,57, +255,236,0,146,0,58,255,236,0,146, +0,59,255,215,0,146,0,60,255,236, +0,146,0,61,255,236,0,146,0,130, +255,215,0,146,0,131,255,215,0,146, +0,132,255,215,0,146,0,133,255,215, +0,146,0,134,255,215,0,146,0,135, +255,215,0,146,0,159,255,236,0,146, +0,194,255,215,0,146,0,196,255,215, +0,146,0,198,255,215,0,146,1,36, +255,195,0,146,1,38,255,195,0,146, +1,54,255,236,0,146,1,56,255,236, +0,146,1,58,255,236,0,146,1,59, +255,236,0,146,1,61,255,236,0,146, +1,63,255,236,0,146,1,67,255,215, +0,146,1,160,255,236,0,146,1,250, +255,236,0,146,1,252,255,236,0,146, +1,254,255,236,0,146,2,0,255,236, +0,146,2,8,255,174,0,146,2,12, +255,174,0,146,2,88,255,215,0,146, +3,29,255,215,0,146,3,31,255,215, +0,146,3,33,255,215,0,146,3,35, +255,215,0,146,3,37,255,215,0,146, +3,39,255,215,0,146,3,41,255,215, +0,146,3,43,255,215,0,146,3,45, +255,215,0,146,3,47,255,215,0,146, +3,49,255,215,0,146,3,51,255,215, +0,146,3,111,255,236,0,146,3,113, +255,236,0,146,3,115,255,236,0,146, +3,143,255,195,0,148,0,15,255,174, +0,148,0,17,255,174,0,148,0,36, +255,215,0,148,0,55,255,195,0,148, +0,57,255,236,0,148,0,58,255,236, +0,148,0,59,255,215,0,148,0,60, +255,236,0,148,0,61,255,236,0,148, +0,130,255,215,0,148,0,131,255,215, +0,148,0,132,255,215,0,148,0,133, +255,215,0,148,0,134,255,215,0,148, +0,135,255,215,0,148,0,159,255,236, +0,148,0,194,255,215,0,148,0,196, +255,215,0,148,0,198,255,215,0,148, +1,36,255,195,0,148,1,38,255,195, +0,148,1,54,255,236,0,148,1,56, +255,236,0,148,1,58,255,236,0,148, +1,59,255,236,0,148,1,61,255,236, +0,148,1,63,255,236,0,148,1,67, +255,215,0,148,1,160,255,236,0,148, +1,250,255,236,0,148,1,252,255,236, +0,148,1,254,255,236,0,148,2,0, +255,236,0,148,2,8,255,174,0,148, +2,12,255,174,0,148,2,88,255,215, +0,148,3,29,255,215,0,148,3,31, +255,215,0,148,3,33,255,215,0,148, +3,35,255,215,0,148,3,37,255,215, +0,148,3,39,255,215,0,148,3,41, +255,215,0,148,3,43,255,215,0,148, +3,45,255,215,0,148,3,47,255,215, +0,148,3,49,255,215,0,148,3,51, +255,215,0,148,3,111,255,236,0,148, +3,113,255,236,0,148,3,115,255,236, +0,148,3,143,255,195,0,149,0,15, +255,174,0,149,0,17,255,174,0,149, +0,36,255,215,0,149,0,55,255,195, +0,149,0,57,255,236,0,149,0,58, +255,236,0,149,0,59,255,215,0,149, +0,60,255,236,0,149,0,61,255,236, +0,149,0,130,255,215,0,149,0,131, +255,215,0,149,0,132,255,215,0,149, +0,133,255,215,0,149,0,134,255,215, +0,149,0,135,255,215,0,149,0,159, +255,236,0,149,0,194,255,215,0,149, +0,196,255,215,0,149,0,198,255,215, +0,149,1,36,255,195,0,149,1,38, +255,195,0,149,1,54,255,236,0,149, +1,56,255,236,0,149,1,58,255,236, +0,149,1,59,255,236,0,149,1,61, +255,236,0,149,1,63,255,236,0,149, +1,67,255,215,0,149,1,160,255,236, +0,149,1,250,255,236,0,149,1,252, +255,236,0,149,1,254,255,236,0,149, +2,0,255,236,0,149,2,8,255,174, +0,149,2,12,255,174,0,149,2,88, +255,215,0,149,3,29,255,215,0,149, +3,31,255,215,0,149,3,33,255,215, +0,149,3,35,255,215,0,149,3,37, +255,215,0,149,3,39,255,215,0,149, +3,41,255,215,0,149,3,43,255,215, +0,149,3,45,255,215,0,149,3,47, +255,215,0,149,3,49,255,215,0,149, +3,51,255,215,0,149,3,111,255,236, +0,149,3,113,255,236,0,149,3,115, +255,236,0,149,3,143,255,195,0,150, +0,15,255,174,0,150,0,17,255,174, +0,150,0,36,255,215,0,150,0,55, +255,195,0,150,0,57,255,236,0,150, +0,58,255,236,0,150,0,59,255,215, +0,150,0,60,255,236,0,150,0,61, +255,236,0,150,0,130,255,215,0,150, +0,131,255,215,0,150,0,132,255,215, +0,150,0,133,255,215,0,150,0,134, +255,215,0,150,0,135,255,215,0,150, +0,159,255,236,0,150,0,194,255,215, +0,150,0,196,255,215,0,150,0,198, +255,215,0,150,1,36,255,195,0,150, +1,38,255,195,0,150,1,54,255,236, +0,150,1,56,255,236,0,150,1,58, +255,236,0,150,1,59,255,236,0,150, +1,61,255,236,0,150,1,63,255,236, +0,150,1,67,255,215,0,150,1,160, +255,236,0,150,1,250,255,236,0,150, +1,252,255,236,0,150,1,254,255,236, +0,150,2,0,255,236,0,150,2,8, +255,174,0,150,2,12,255,174,0,150, +2,88,255,215,0,150,3,29,255,215, +0,150,3,31,255,215,0,150,3,33, +255,215,0,150,3,35,255,215,0,150, +3,37,255,215,0,150,3,39,255,215, +0,150,3,41,255,215,0,150,3,43, +255,215,0,150,3,45,255,215,0,150, +3,47,255,215,0,150,3,49,255,215, +0,150,3,51,255,215,0,150,3,111, +255,236,0,150,3,113,255,236,0,150, +3,115,255,236,0,150,3,143,255,195, +0,151,0,15,255,174,0,151,0,17, +255,174,0,151,0,36,255,215,0,151, +0,55,255,195,0,151,0,57,255,236, +0,151,0,58,255,236,0,151,0,59, +255,215,0,151,0,60,255,236,0,151, +0,61,255,236,0,151,0,130,255,215, +0,151,0,131,255,215,0,151,0,132, +255,215,0,151,0,133,255,215,0,151, +0,134,255,215,0,151,0,135,255,215, +0,151,0,159,255,236,0,151,0,194, +255,215,0,151,0,196,255,215,0,151, +0,198,255,215,0,151,1,36,255,195, +0,151,1,38,255,195,0,151,1,54, +255,236,0,151,1,56,255,236,0,151, +1,58,255,236,0,151,1,59,255,236, +0,151,1,61,255,236,0,151,1,63, +255,236,0,151,1,67,255,215,0,151, +1,160,255,236,0,151,1,250,255,236, +0,151,1,252,255,236,0,151,1,254, +255,236,0,151,2,0,255,236,0,151, +2,8,255,174,0,151,2,12,255,174, +0,151,2,88,255,215,0,151,3,29, +255,215,0,151,3,31,255,215,0,151, +3,33,255,215,0,151,3,35,255,215, +0,151,3,37,255,215,0,151,3,39, +255,215,0,151,3,41,255,215,0,151, +3,43,255,215,0,151,3,45,255,215, +0,151,3,47,255,215,0,151,3,49, +255,215,0,151,3,51,255,215,0,151, +3,111,255,236,0,151,3,113,255,236, +0,151,3,115,255,236,0,151,3,143, +255,195,0,152,0,15,255,174,0,152, +0,17,255,174,0,152,0,36,255,215, +0,152,0,55,255,195,0,152,0,57, +255,236,0,152,0,58,255,236,0,152, +0,59,255,215,0,152,0,60,255,236, +0,152,0,61,255,236,0,152,0,130, +255,215,0,152,0,131,255,215,0,152, +0,132,255,215,0,152,0,133,255,215, +0,152,0,134,255,215,0,152,0,135, +255,215,0,152,0,159,255,236,0,152, +0,194,255,215,0,152,0,196,255,215, +0,152,0,198,255,215,0,152,1,36, +255,195,0,152,1,38,255,195,0,152, +1,54,255,236,0,152,1,56,255,236, +0,152,1,58,255,236,0,152,1,59, +255,236,0,152,1,61,255,236,0,152, +1,63,255,236,0,152,1,67,255,215, +0,152,1,160,255,236,0,152,1,250, +255,236,0,152,1,252,255,236,0,152, +1,254,255,236,0,152,2,0,255,236, +0,152,2,8,255,174,0,152,2,12, +255,174,0,152,2,88,255,215,0,152, +3,29,255,215,0,152,3,31,255,215, +0,152,3,33,255,215,0,152,3,35, +255,215,0,152,3,37,255,215,0,152, +3,39,255,215,0,152,3,41,255,215, +0,152,3,43,255,215,0,152,3,45, +255,215,0,152,3,47,255,215,0,152, +3,49,255,215,0,152,3,51,255,215, +0,152,3,111,255,236,0,152,3,113, +255,236,0,152,3,115,255,236,0,152, +3,143,255,195,0,154,0,15,255,174, +0,154,0,17,255,174,0,154,0,36, +255,215,0,154,0,55,255,195,0,154, +0,57,255,236,0,154,0,58,255,236, +0,154,0,59,255,215,0,154,0,60, +255,236,0,154,0,61,255,236,0,154, +0,130,255,215,0,154,0,131,255,215, +0,154,0,132,255,215,0,154,0,133, +255,215,0,154,0,134,255,215,0,154, +0,135,255,215,0,154,0,159,255,236, +0,154,0,194,255,215,0,154,0,196, +255,215,0,154,0,198,255,215,0,154, +1,36,255,195,0,154,1,38,255,195, +0,154,1,54,255,236,0,154,1,56, +255,236,0,154,1,58,255,236,0,154, +1,59,255,236,0,154,1,61,255,236, +0,154,1,63,255,236,0,154,1,67, +255,215,0,154,1,160,255,236,0,154, +1,250,255,236,0,154,1,252,255,236, +0,154,1,254,255,236,0,154,2,0, +255,236,0,154,2,8,255,174,0,154, +2,12,255,174,0,154,2,88,255,215, +0,154,3,29,255,215,0,154,3,31, +255,215,0,154,3,33,255,215,0,154, +3,35,255,215,0,154,3,37,255,215, +0,154,3,39,255,215,0,154,3,41, +255,215,0,154,3,43,255,215,0,154, +3,45,255,215,0,154,3,47,255,215, +0,154,3,49,255,215,0,154,3,51, +255,215,0,154,3,111,255,236,0,154, +3,113,255,236,0,154,3,115,255,236, +0,154,3,143,255,195,0,155,0,15, +255,215,0,155,0,17,255,215,0,155, +0,36,255,236,0,155,0,130,255,236, +0,155,0,131,255,236,0,155,0,132, +255,236,0,155,0,133,255,236,0,155, +0,134,255,236,0,155,0,135,255,236, +0,155,0,194,255,236,0,155,0,196, +255,236,0,155,0,198,255,236,0,155, +1,67,255,236,0,155,2,8,255,215, +0,155,2,12,255,215,0,155,2,88, +255,236,0,155,3,29,255,236,0,155, +3,31,255,236,0,155,3,33,255,236, +0,155,3,35,255,236,0,155,3,37, +255,236,0,155,3,39,255,236,0,155, +3,41,255,236,0,155,3,43,255,236, +0,155,3,45,255,236,0,155,3,47, +255,236,0,155,3,49,255,236,0,155, +3,51,255,236,0,156,0,15,255,215, +0,156,0,17,255,215,0,156,0,36, +255,236,0,156,0,130,255,236,0,156, +0,131,255,236,0,156,0,132,255,236, +0,156,0,133,255,236,0,156,0,134, +255,236,0,156,0,135,255,236,0,156, +0,194,255,236,0,156,0,196,255,236, +0,156,0,198,255,236,0,156,1,67, +255,236,0,156,2,8,255,215,0,156, +2,12,255,215,0,156,2,88,255,236, +0,156,3,29,255,236,0,156,3,31, +255,236,0,156,3,33,255,236,0,156, +3,35,255,236,0,156,3,37,255,236, +0,156,3,39,255,236,0,156,3,41, +255,236,0,156,3,43,255,236,0,156, +3,45,255,236,0,156,3,47,255,236, +0,156,3,49,255,236,0,156,3,51, +255,236,0,157,0,15,255,215,0,157, +0,17,255,215,0,157,0,36,255,236, +0,157,0,130,255,236,0,157,0,131, +255,236,0,157,0,132,255,236,0,157, +0,133,255,236,0,157,0,134,255,236, +0,157,0,135,255,236,0,157,0,194, +255,236,0,157,0,196,255,236,0,157, +0,198,255,236,0,157,1,67,255,236, +0,157,2,8,255,215,0,157,2,12, +255,215,0,157,2,88,255,236,0,157, +3,29,255,236,0,157,3,31,255,236, +0,157,3,33,255,236,0,157,3,35, +255,236,0,157,3,37,255,236,0,157, +3,39,255,236,0,157,3,41,255,236, +0,157,3,43,255,236,0,157,3,45, +255,236,0,157,3,47,255,236,0,157, +3,49,255,236,0,157,3,51,255,236, +0,158,0,15,255,215,0,158,0,17, +255,215,0,158,0,36,255,236,0,158, +0,130,255,236,0,158,0,131,255,236, +0,158,0,132,255,236,0,158,0,133, +255,236,0,158,0,134,255,236,0,158, +0,135,255,236,0,158,0,194,255,236, +0,158,0,196,255,236,0,158,0,198, +255,236,0,158,1,67,255,236,0,158, +2,8,255,215,0,158,2,12,255,215, +0,158,2,88,255,236,0,158,3,29, +255,236,0,158,3,31,255,236,0,158, +3,33,255,236,0,158,3,35,255,236, +0,158,3,37,255,236,0,158,3,39, +255,236,0,158,3,41,255,236,0,158, +3,43,255,236,0,158,3,45,255,236, +0,158,3,47,255,236,0,158,3,49, +255,236,0,158,3,51,255,236,0,159, +0,15,255,133,0,159,0,17,255,133, +0,159,0,34,0,41,0,159,0,36, +255,133,0,159,0,38,255,215,0,159, +0,42,255,215,0,159,0,50,255,215, +0,159,0,52,255,215,0,159,0,68, +255,154,0,159,0,70,255,154,0,159, +0,71,255,154,0,159,0,72,255,154, +0,159,0,74,255,215,0,159,0,80, +255,195,0,159,0,81,255,195,0,159, +0,82,255,154,0,159,0,83,255,195, +0,159,0,84,255,154,0,159,0,85, +255,195,0,159,0,86,255,174,0,159, +0,88,255,195,0,159,0,93,255,215, +0,159,0,130,255,133,0,159,0,131, +255,133,0,159,0,132,255,133,0,159, +0,133,255,133,0,159,0,134,255,133, +0,159,0,135,255,133,0,159,0,137, +255,215,0,159,0,148,255,215,0,159, +0,149,255,215,0,159,0,150,255,215, +0,159,0,151,255,215,0,159,0,152, +255,215,0,159,0,154,255,215,0,159, +0,162,255,154,0,159,0,163,255,154, +0,159,0,164,255,154,0,159,0,165, +255,154,0,159,0,166,255,154,0,159, +0,167,255,154,0,159,0,168,255,154, +0,159,0,169,255,154,0,159,0,170, +255,154,0,159,0,171,255,154,0,159, +0,172,255,154,0,159,0,173,255,154, +0,159,0,180,255,154,0,159,0,181, +255,154,0,159,0,182,255,154,0,159, +0,183,255,154,0,159,0,184,255,154, +0,159,0,186,255,154,0,159,0,187, +255,195,0,159,0,188,255,195,0,159, +0,189,255,195,0,159,0,190,255,195, +0,159,0,194,255,133,0,159,0,195, +255,154,0,159,0,196,255,133,0,159, +0,197,255,154,0,159,0,198,255,133, +0,159,0,199,255,154,0,159,0,200, +255,215,0,159,0,201,255,154,0,159, +0,202,255,215,0,159,0,203,255,154, +0,159,0,204,255,215,0,159,0,205, +255,154,0,159,0,206,255,215,0,159, +0,207,255,154,0,159,0,209,255,154, +0,159,0,211,255,154,0,159,0,213, +255,154,0,159,0,215,255,154,0,159, +0,217,255,154,0,159,0,219,255,154, +0,159,0,221,255,154,0,159,0,222, +255,215,0,159,0,223,255,215,0,159, +0,224,255,215,0,159,0,225,255,215, +0,159,0,226,255,215,0,159,0,227, +255,215,0,159,0,228,255,215,0,159, +0,229,255,215,0,159,0,250,255,195, +0,159,1,6,255,195,0,159,1,8, +255,195,0,159,1,13,255,195,0,159, +1,14,255,215,0,159,1,15,255,154, +0,159,1,16,255,215,0,159,1,17, +255,154,0,159,1,18,255,215,0,159, +1,19,255,154,0,159,1,20,255,215, +0,159,1,21,255,154,0,159,1,23, +255,195,0,159,1,25,255,195,0,159, +1,29,255,174,0,159,1,33,255,174, +0,159,1,43,255,195,0,159,1,45, +255,195,0,159,1,47,255,195,0,159, +1,49,255,195,0,159,1,51,255,195, +0,159,1,53,255,195,0,159,1,60, +255,215,0,159,1,62,255,215,0,159, +1,64,255,215,0,159,1,67,255,133, +0,159,1,68,255,154,0,159,1,70, +255,154,0,159,1,71,255,215,0,159, +1,72,255,154,0,159,1,74,255,174, +0,159,2,8,255,133,0,159,2,12, +255,133,0,159,2,87,255,195,0,159, +2,88,255,133,0,159,2,89,255,154, +0,159,2,95,255,215,0,159,2,96, +255,154,0,159,2,98,255,195,0,159, +3,29,255,133,0,159,3,30,255,154, +0,159,3,31,255,133,0,159,3,32, +255,154,0,159,3,33,255,133,0,159, +3,34,255,154,0,159,3,35,255,133, +0,159,3,37,255,133,0,159,3,38, +255,154,0,159,3,39,255,133,0,159, +3,40,255,154,0,159,3,41,255,133, +0,159,3,42,255,154,0,159,3,43, +255,133,0,159,3,44,255,154,0,159, +3,45,255,133,0,159,3,46,255,154, +0,159,3,47,255,133,0,159,3,48, +255,154,0,159,3,49,255,133,0,159, +3,50,255,154,0,159,3,51,255,133, +0,159,3,52,255,154,0,159,3,54, +255,154,0,159,3,56,255,154,0,159, +3,58,255,154,0,159,3,60,255,154, +0,159,3,64,255,154,0,159,3,66, +255,154,0,159,3,68,255,154,0,159, +3,73,255,215,0,159,3,74,255,154, +0,159,3,75,255,215,0,159,3,76, +255,154,0,159,3,77,255,215,0,159, +3,78,255,154,0,159,3,79,255,215, +0,159,3,81,255,215,0,159,3,82, +255,154,0,159,3,83,255,215,0,159, +3,84,255,154,0,159,3,85,255,215, +0,159,3,86,255,154,0,159,3,87, +255,215,0,159,3,88,255,154,0,159, +3,89,255,215,0,159,3,90,255,154, +0,159,3,91,255,215,0,159,3,92, +255,154,0,159,3,93,255,215,0,159, +3,94,255,154,0,159,3,95,255,215, +0,159,3,96,255,154,0,159,3,98, +255,195,0,159,3,100,255,195,0,159, +3,102,255,195,0,159,3,104,255,195, +0,159,3,106,255,195,0,159,3,108, +255,195,0,159,3,110,255,195,0,160, +0,15,254,246,0,160,0,17,254,246, +0,160,0,36,255,154,0,160,0,59, +255,215,0,160,0,61,255,236,0,160, +0,130,255,154,0,160,0,131,255,154, +0,160,0,132,255,154,0,160,0,133, +255,154,0,160,0,134,255,154,0,160, +0,135,255,154,0,160,0,194,255,154, +0,160,0,196,255,154,0,160,0,198, +255,154,0,160,1,59,255,236,0,160, +1,61,255,236,0,160,1,63,255,236, +0,160,1,67,255,154,0,160,2,8, +254,246,0,160,2,12,254,246,0,160, +2,88,255,154,0,160,3,29,255,154, +0,160,3,31,255,154,0,160,3,33, +255,154,0,160,3,35,255,154,0,160, +3,37,255,154,0,160,3,39,255,154, +0,160,3,41,255,154,0,160,3,43, +255,154,0,160,3,45,255,154,0,160, +3,47,255,154,0,160,3,49,255,154, +0,160,3,51,255,154,0,162,0,5, +255,236,0,162,0,10,255,236,0,162, +2,7,255,236,0,162,2,11,255,236, +0,163,0,5,255,236,0,163,0,10, +255,236,0,163,2,7,255,236,0,163, +2,11,255,236,0,164,0,5,255,236, +0,164,0,10,255,236,0,164,2,7, +255,236,0,164,2,11,255,236,0,165, +0,5,255,236,0,165,0,10,255,236, +0,165,2,7,255,236,0,165,2,11, +255,236,0,166,0,5,255,236,0,166, +0,10,255,236,0,166,2,7,255,236, +0,166,2,11,255,236,0,167,0,5, +255,236,0,167,0,10,255,236,0,167, +2,7,255,236,0,167,2,11,255,236, +0,170,0,5,255,236,0,170,0,10, +255,236,0,170,0,89,255,215,0,170, +0,90,255,215,0,170,0,91,255,215, +0,170,0,92,255,215,0,170,0,93, +255,236,0,170,0,191,255,215,0,170, +1,55,255,215,0,170,1,60,255,236, +0,170,1,62,255,236,0,170,1,64, +255,236,0,170,1,251,255,215,0,170, +1,253,255,215,0,170,2,7,255,236, +0,170,2,11,255,236,0,170,3,112, +255,215,0,171,0,5,255,236,0,171, +0,10,255,236,0,171,0,89,255,215, +0,171,0,90,255,215,0,171,0,91, +255,215,0,171,0,92,255,215,0,171, +0,93,255,236,0,171,0,191,255,215, +0,171,1,55,255,215,0,171,1,60, +255,236,0,171,1,62,255,236,0,171, +1,64,255,236,0,171,1,251,255,215, +0,171,1,253,255,215,0,171,2,7, +255,236,0,171,2,11,255,236,0,171, +3,112,255,215,0,172,0,5,255,236, +0,172,0,10,255,236,0,172,0,89, +255,215,0,172,0,90,255,215,0,172, +0,91,255,215,0,172,0,92,255,215, +0,172,0,93,255,236,0,172,0,191, +255,215,0,172,1,55,255,215,0,172, +1,60,255,236,0,172,1,62,255,236, +0,172,1,64,255,236,0,172,1,251, +255,215,0,172,1,253,255,215,0,172, +2,7,255,236,0,172,2,11,255,236, +0,172,3,112,255,215,0,173,0,5, +255,236,0,173,0,10,255,236,0,173, +0,89,255,215,0,173,0,90,255,215, +0,173,0,91,255,215,0,173,0,92, +255,215,0,173,0,93,255,236,0,173, +0,191,255,215,0,173,1,55,255,215, +0,173,1,60,255,236,0,173,1,62, +255,236,0,173,1,64,255,236,0,173, +1,251,255,215,0,173,1,253,255,215, +0,173,2,7,255,236,0,173,2,11, +255,236,0,173,3,112,255,215,0,178, +0,5,255,236,0,178,0,10,255,236, +0,178,0,89,255,215,0,178,0,90, +255,215,0,178,0,91,255,215,0,178, +0,92,255,215,0,178,0,93,255,236, +0,178,0,191,255,215,0,178,1,55, +255,215,0,178,1,60,255,236,0,178, +1,62,255,236,0,178,1,64,255,236, +0,178,1,251,255,215,0,178,1,253, +255,215,0,178,2,7,255,236,0,178, +2,11,255,236,0,178,3,112,255,215, +0,180,0,5,255,236,0,180,0,10, +255,236,0,180,0,89,255,215,0,180, +0,90,255,215,0,180,0,91,255,215, +0,180,0,92,255,215,0,180,0,93, +255,236,0,180,0,191,255,215,0,180, +1,55,255,215,0,180,1,60,255,236, +0,180,1,62,255,236,0,180,1,64, +255,236,0,180,1,251,255,215,0,180, +1,253,255,215,0,180,2,7,255,236, +0,180,2,11,255,236,0,180,3,112, +255,215,0,181,0,5,255,236,0,181, +0,10,255,236,0,181,0,89,255,215, +0,181,0,90,255,215,0,181,0,91, +255,215,0,181,0,92,255,215,0,181, +0,93,255,236,0,181,0,191,255,215, +0,181,1,55,255,215,0,181,1,60, +255,236,0,181,1,62,255,236,0,181, +1,64,255,236,0,181,1,251,255,215, +0,181,1,253,255,215,0,181,2,7, +255,236,0,181,2,11,255,236,0,181, +3,112,255,215,0,182,0,5,255,236, +0,182,0,10,255,236,0,182,0,89, +255,215,0,182,0,90,255,215,0,182, +0,91,255,215,0,182,0,92,255,215, +0,182,0,93,255,236,0,182,0,191, +255,215,0,182,1,55,255,215,0,182, +1,60,255,236,0,182,1,62,255,236, +0,182,1,64,255,236,0,182,1,251, +255,215,0,182,1,253,255,215,0,182, +2,7,255,236,0,182,2,11,255,236, +0,182,3,112,255,215,0,184,0,5, +255,215,0,184,0,10,255,215,0,184, +2,7,255,215,0,184,2,11,255,215, +0,186,0,5,255,236,0,186,0,10, +255,236,0,186,0,89,255,215,0,186, +0,90,255,215,0,186,0,91,255,215, +0,186,0,92,255,215,0,186,0,93, +255,236,0,186,0,191,255,215,0,186, +1,55,255,215,0,186,1,60,255,236, +0,186,1,62,255,236,0,186,1,64, +255,236,0,186,1,251,255,215,0,186, +1,253,255,215,0,186,2,7,255,236, +0,186,2,11,255,236,0,186,3,112, +255,215,0,191,0,5,0,82,0,191, +0,10,0,82,0,191,0,15,255,174, +0,191,0,17,255,174,0,191,0,34, +0,41,0,191,2,7,0,82,0,191, +2,8,255,174,0,191,2,11,0,82, +0,191,2,12,255,174,0,192,0,5, +255,236,0,192,0,10,255,236,0,192, +0,89,255,215,0,192,0,90,255,215, +0,192,0,91,255,215,0,192,0,92, +255,215,0,192,0,93,255,236,0,192, +0,191,255,215,0,192,1,55,255,215, +0,192,1,60,255,236,0,192,1,62, +255,236,0,192,1,64,255,236,0,192, +1,251,255,215,0,192,1,253,255,215, +0,192,2,7,255,236,0,192,2,11, +255,236,0,192,3,112,255,215,0,193, +0,5,0,82,0,193,0,10,0,82, +0,193,0,15,255,174,0,193,0,17, +255,174,0,193,0,34,0,41,0,193, +2,7,0,82,0,193,2,8,255,174, +0,193,2,11,0,82,0,193,2,12, +255,174,0,194,0,5,255,113,0,194, +0,10,255,113,0,194,0,38,255,215, +0,194,0,42,255,215,0,194,0,45, +1,10,0,194,0,50,255,215,0,194, +0,52,255,215,0,194,0,55,255,113, +0,194,0,57,255,174,0,194,0,58, +255,174,0,194,0,60,255,133,0,194, +0,137,255,215,0,194,0,148,255,215, +0,194,0,149,255,215,0,194,0,150, +255,215,0,194,0,151,255,215,0,194, +0,152,255,215,0,194,0,154,255,215, +0,194,0,159,255,133,0,194,0,200, +255,215,0,194,0,202,255,215,0,194, +0,204,255,215,0,194,0,206,255,215, +0,194,0,222,255,215,0,194,0,224, +255,215,0,194,0,226,255,215,0,194, +0,228,255,215,0,194,1,14,255,215, +0,194,1,16,255,215,0,194,1,18, +255,215,0,194,1,20,255,215,0,194, +1,36,255,113,0,194,1,38,255,113, +0,194,1,54,255,174,0,194,1,56, +255,133,0,194,1,58,255,133,0,194, +1,71,255,215,0,194,1,250,255,174, +0,194,1,252,255,174,0,194,1,254, +255,174,0,194,2,0,255,133,0,194, +2,7,255,113,0,194,2,11,255,113, +0,194,2,95,255,215,0,194,3,73, +255,215,0,194,3,75,255,215,0,194, +3,77,255,215,0,194,3,79,255,215, +0,194,3,81,255,215,0,194,3,83, +255,215,0,194,3,85,255,215,0,194, +3,87,255,215,0,194,3,89,255,215, +0,194,3,91,255,215,0,194,3,93, +255,215,0,194,3,95,255,215,0,194, +3,111,255,133,0,194,3,113,255,133, +0,194,3,115,255,133,0,194,3,143, +255,113,0,195,0,5,255,236,0,195, +0,10,255,236,0,195,2,7,255,236, +0,195,2,11,255,236,0,196,0,5, +255,113,0,196,0,10,255,113,0,196, +0,38,255,215,0,196,0,42,255,215, +0,196,0,45,1,10,0,196,0,50, +255,215,0,196,0,52,255,215,0,196, +0,55,255,113,0,196,0,57,255,174, +0,196,0,58,255,174,0,196,0,60, +255,133,0,196,0,137,255,215,0,196, +0,148,255,215,0,196,0,149,255,215, +0,196,0,150,255,215,0,196,0,151, +255,215,0,196,0,152,255,215,0,196, +0,154,255,215,0,196,0,159,255,133, +0,196,0,200,255,215,0,196,0,202, +255,215,0,196,0,204,255,215,0,196, +0,206,255,215,0,196,0,222,255,215, +0,196,0,224,255,215,0,196,0,226, +255,215,0,196,0,228,255,215,0,196, +1,14,255,215,0,196,1,16,255,215, +0,196,1,18,255,215,0,196,1,20, +255,215,0,196,1,36,255,113,0,196, +1,38,255,113,0,196,1,54,255,174, +0,196,1,56,255,133,0,196,1,58, +255,133,0,196,1,71,255,215,0,196, +1,250,255,174,0,196,1,252,255,174, +0,196,1,254,255,174,0,196,2,0, +255,133,0,196,2,7,255,113,0,196, +2,11,255,113,0,196,2,95,255,215, +0,196,3,73,255,215,0,196,3,75, +255,215,0,196,3,77,255,215,0,196, +3,79,255,215,0,196,3,81,255,215, +0,196,3,83,255,215,0,196,3,85, +255,215,0,196,3,87,255,215,0,196, +3,89,255,215,0,196,3,91,255,215, +0,196,3,93,255,215,0,196,3,95, +255,215,0,196,3,111,255,133,0,196, +3,113,255,133,0,196,3,115,255,133, +0,196,3,143,255,113,0,197,0,5, +255,236,0,197,0,10,255,236,0,197, +2,7,255,236,0,197,2,11,255,236, +0,198,0,5,255,113,0,198,0,10, +255,113,0,198,0,38,255,215,0,198, +0,42,255,215,0,198,0,45,1,10, +0,198,0,50,255,215,0,198,0,52, +255,215,0,198,0,55,255,113,0,198, +0,57,255,174,0,198,0,58,255,174, +0,198,0,60,255,133,0,198,0,137, +255,215,0,198,0,148,255,215,0,198, +0,149,255,215,0,198,0,150,255,215, +0,198,0,151,255,215,0,198,0,152, +255,215,0,198,0,154,255,215,0,198, +0,159,255,133,0,198,0,200,255,215, +0,198,0,202,255,215,0,198,0,204, +255,215,0,198,0,206,255,215,0,198, +0,222,255,215,0,198,0,224,255,215, +0,198,0,226,255,215,0,198,0,228, +255,215,0,198,1,14,255,215,0,198, +1,16,255,215,0,198,1,18,255,215, +0,198,1,20,255,215,0,198,1,36, +255,113,0,198,1,38,255,113,0,198, +1,54,255,174,0,198,1,56,255,133, +0,198,1,58,255,133,0,198,1,71, +255,215,0,198,1,250,255,174,0,198, +1,252,255,174,0,198,1,254,255,174, +0,198,2,0,255,133,0,198,2,7, +255,113,0,198,2,11,255,113,0,198, +2,95,255,215,0,198,3,73,255,215, +0,198,3,75,255,215,0,198,3,77, +255,215,0,198,3,79,255,215,0,198, +3,81,255,215,0,198,3,83,255,215, +0,198,3,85,255,215,0,198,3,87, +255,215,0,198,3,89,255,215,0,198, +3,91,255,215,0,198,3,93,255,215, +0,198,3,95,255,215,0,198,3,111, +255,133,0,198,3,113,255,133,0,198, +3,115,255,133,0,198,3,143,255,113, +0,199,0,5,255,236,0,199,0,10, +255,236,0,199,2,7,255,236,0,199, +2,11,255,236,0,200,0,38,255,215, +0,200,0,42,255,215,0,200,0,50, +255,215,0,200,0,52,255,215,0,200, +0,137,255,215,0,200,0,148,255,215, +0,200,0,149,255,215,0,200,0,150, +255,215,0,200,0,151,255,215,0,200, +0,152,255,215,0,200,0,154,255,215, +0,200,0,200,255,215,0,200,0,202, +255,215,0,200,0,204,255,215,0,200, +0,206,255,215,0,200,0,222,255,215, +0,200,0,224,255,215,0,200,0,226, +255,215,0,200,0,228,255,215,0,200, +1,14,255,215,0,200,1,16,255,215, +0,200,1,18,255,215,0,200,1,20, +255,215,0,200,1,71,255,215,0,200, +2,95,255,215,0,200,3,73,255,215, +0,200,3,75,255,215,0,200,3,77, +255,215,0,200,3,79,255,215,0,200, +3,81,255,215,0,200,3,83,255,215, +0,200,3,85,255,215,0,200,3,87, +255,215,0,200,3,89,255,215,0,200, +3,91,255,215,0,200,3,93,255,215, +0,200,3,95,255,215,0,202,0,38, +255,215,0,202,0,42,255,215,0,202, +0,50,255,215,0,202,0,52,255,215, +0,202,0,137,255,215,0,202,0,148, +255,215,0,202,0,149,255,215,0,202, +0,150,255,215,0,202,0,151,255,215, +0,202,0,152,255,215,0,202,0,154, +255,215,0,202,0,200,255,215,0,202, +0,202,255,215,0,202,0,204,255,215, +0,202,0,206,255,215,0,202,0,222, +255,215,0,202,0,224,255,215,0,202, +0,226,255,215,0,202,0,228,255,215, +0,202,1,14,255,215,0,202,1,16, +255,215,0,202,1,18,255,215,0,202, +1,20,255,215,0,202,1,71,255,215, +0,202,2,95,255,215,0,202,3,73, +255,215,0,202,3,75,255,215,0,202, +3,77,255,215,0,202,3,79,255,215, +0,202,3,81,255,215,0,202,3,83, +255,215,0,202,3,85,255,215,0,202, +3,87,255,215,0,202,3,89,255,215, +0,202,3,91,255,215,0,202,3,93, +255,215,0,202,3,95,255,215,0,204, +0,38,255,215,0,204,0,42,255,215, +0,204,0,50,255,215,0,204,0,52, +255,215,0,204,0,137,255,215,0,204, +0,148,255,215,0,204,0,149,255,215, +0,204,0,150,255,215,0,204,0,151, +255,215,0,204,0,152,255,215,0,204, +0,154,255,215,0,204,0,200,255,215, +0,204,0,202,255,215,0,204,0,204, +255,215,0,204,0,206,255,215,0,204, +0,222,255,215,0,204,0,224,255,215, +0,204,0,226,255,215,0,204,0,228, +255,215,0,204,1,14,255,215,0,204, +1,16,255,215,0,204,1,18,255,215, +0,204,1,20,255,215,0,204,1,71, +255,215,0,204,2,95,255,215,0,204, +3,73,255,215,0,204,3,75,255,215, +0,204,3,77,255,215,0,204,3,79, +255,215,0,204,3,81,255,215,0,204, +3,83,255,215,0,204,3,85,255,215, +0,204,3,87,255,215,0,204,3,89, +255,215,0,204,3,91,255,215,0,204, +3,93,255,215,0,204,3,95,255,215, +0,206,0,38,255,215,0,206,0,42, +255,215,0,206,0,50,255,215,0,206, +0,52,255,215,0,206,0,137,255,215, +0,206,0,148,255,215,0,206,0,149, +255,215,0,206,0,150,255,215,0,206, +0,151,255,215,0,206,0,152,255,215, +0,206,0,154,255,215,0,206,0,200, +255,215,0,206,0,202,255,215,0,206, +0,204,255,215,0,206,0,206,255,215, +0,206,0,222,255,215,0,206,0,224, +255,215,0,206,0,226,255,215,0,206, +0,228,255,215,0,206,1,14,255,215, +0,206,1,16,255,215,0,206,1,18, +255,215,0,206,1,20,255,215,0,206, +1,71,255,215,0,206,2,95,255,215, +0,206,3,73,255,215,0,206,3,75, +255,215,0,206,3,77,255,215,0,206, +3,79,255,215,0,206,3,81,255,215, +0,206,3,83,255,215,0,206,3,85, +255,215,0,206,3,87,255,215,0,206, +3,89,255,215,0,206,3,91,255,215, +0,206,3,93,255,215,0,206,3,95, +255,215,0,208,0,15,255,174,0,208, +0,17,255,174,0,208,0,36,255,215, +0,208,0,55,255,195,0,208,0,57, +255,236,0,208,0,58,255,236,0,208, +0,59,255,215,0,208,0,60,255,236, +0,208,0,61,255,236,0,208,0,130, +255,215,0,208,0,131,255,215,0,208, +0,132,255,215,0,208,0,133,255,215, +0,208,0,134,255,215,0,208,0,135, +255,215,0,208,0,159,255,236,0,208, +0,194,255,215,0,208,0,196,255,215, +0,208,0,198,255,215,0,208,1,36, +255,195,0,208,1,38,255,195,0,208, +1,54,255,236,0,208,1,56,255,236, +0,208,1,58,255,236,0,208,1,59, +255,236,0,208,1,61,255,236,0,208, +1,63,255,236,0,208,1,67,255,215, +0,208,1,160,255,236,0,208,1,250, +255,236,0,208,1,252,255,236,0,208, +1,254,255,236,0,208,2,0,255,236, +0,208,2,8,255,174,0,208,2,12, +255,174,0,208,2,88,255,215,0,208, +3,29,255,215,0,208,3,31,255,215, +0,208,3,33,255,215,0,208,3,35, +255,215,0,208,3,37,255,215,0,208, +3,39,255,215,0,208,3,41,255,215, +0,208,3,43,255,215,0,208,3,45, +255,215,0,208,3,47,255,215,0,208, +3,49,255,215,0,208,3,51,255,215, +0,208,3,111,255,236,0,208,3,113, +255,236,0,208,3,115,255,236,0,208, +3,143,255,195,0,209,0,5,0,82, +0,209,0,10,0,82,0,209,0,12, +0,143,0,209,0,34,0,164,0,209, +0,64,0,143,0,209,0,69,0,61, +0,209,0,75,0,61,0,209,0,78, +0,61,0,209,0,79,0,61,0,209, +0,96,0,143,0,209,0,231,0,61, +0,209,0,233,0,123,0,209,2,7, +0,82,0,209,2,11,0,82,0,210, +0,15,255,174,0,210,0,17,255,174, +0,210,0,36,255,215,0,210,0,55, +255,195,0,210,0,57,255,236,0,210, +0,58,255,236,0,210,0,59,255,215, +0,210,0,60,255,236,0,210,0,61, +255,236,0,210,0,130,255,215,0,210, +0,131,255,215,0,210,0,132,255,215, +0,210,0,133,255,215,0,210,0,134, +255,215,0,210,0,135,255,215,0,210, +0,159,255,236,0,210,0,194,255,215, +0,210,0,196,255,215,0,210,0,198, +255,215,0,210,1,36,255,195,0,210, +1,38,255,195,0,210,1,54,255,236, +0,210,1,56,255,236,0,210,1,58, +255,236,0,210,1,59,255,236,0,210, +1,61,255,236,0,210,1,63,255,236, +0,210,1,67,255,215,0,210,1,160, +255,236,0,210,1,250,255,236,0,210, +1,252,255,236,0,210,1,254,255,236, +0,210,2,0,255,236,0,210,2,8, +255,174,0,210,2,12,255,174,0,210, +2,88,255,215,0,210,3,29,255,215, +0,210,3,31,255,215,0,210,3,33, +255,215,0,210,3,35,255,215,0,210, +3,37,255,215,0,210,3,39,255,215, +0,210,3,41,255,215,0,210,3,43, +255,215,0,210,3,45,255,215,0,210, +3,47,255,215,0,210,3,49,255,215, +0,210,3,51,255,215,0,210,3,111, +255,236,0,210,3,113,255,236,0,210, +3,115,255,236,0,210,3,143,255,195, +0,212,0,45,0,123,0,213,0,5, +255,236,0,213,0,10,255,236,0,213, +0,89,255,215,0,213,0,90,255,215, +0,213,0,91,255,215,0,213,0,92, +255,215,0,213,0,93,255,236,0,213, +0,191,255,215,0,213,1,55,255,215, +0,213,1,60,255,236,0,213,1,62, +255,236,0,213,1,64,255,236,0,213, +1,251,255,215,0,213,1,253,255,215, +0,213,2,7,255,236,0,213,2,11, +255,236,0,213,3,112,255,215,0,214, +0,45,0,123,0,215,0,5,255,236, +0,215,0,10,255,236,0,215,0,89, +255,215,0,215,0,90,255,215,0,215, +0,91,255,215,0,215,0,92,255,215, +0,215,0,93,255,236,0,215,0,191, +255,215,0,215,1,55,255,215,0,215, +1,60,255,236,0,215,1,62,255,236, +0,215,1,64,255,236,0,215,1,251, +255,215,0,215,1,253,255,215,0,215, +2,7,255,236,0,215,2,11,255,236, +0,215,3,112,255,215,0,216,0,45, +0,123,0,217,0,5,255,236,0,217, +0,10,255,236,0,217,0,89,255,215, +0,217,0,90,255,215,0,217,0,91, +255,215,0,217,0,92,255,215,0,217, +0,93,255,236,0,217,0,191,255,215, +0,217,1,55,255,215,0,217,1,60, +255,236,0,217,1,62,255,236,0,217, +1,64,255,236,0,217,1,251,255,215, +0,217,1,253,255,215,0,217,2,7, +255,236,0,217,2,11,255,236,0,217, +3,112,255,215,0,218,0,45,0,123, +0,219,0,5,255,236,0,219,0,10, +255,236,0,219,0,89,255,215,0,219, +0,90,255,215,0,219,0,91,255,215, +0,219,0,92,255,215,0,219,0,93, +255,236,0,219,0,191,255,215,0,219, +1,55,255,215,0,219,1,60,255,236, +0,219,1,62,255,236,0,219,1,64, +255,236,0,219,1,251,255,215,0,219, +1,253,255,215,0,219,2,7,255,236, +0,219,2,11,255,236,0,219,3,112, +255,215,0,220,0,45,0,123,0,221, +0,5,255,236,0,221,0,10,255,236, +0,221,0,89,255,215,0,221,0,90, +255,215,0,221,0,91,255,215,0,221, +0,92,255,215,0,221,0,93,255,236, +0,221,0,191,255,215,0,221,1,55, +255,215,0,221,1,60,255,236,0,221, +1,62,255,236,0,221,1,64,255,236, +0,221,1,251,255,215,0,221,1,253, +255,215,0,221,2,7,255,236,0,221, +2,11,255,236,0,221,3,112,255,215, +0,231,0,5,255,236,0,231,0,10, +255,236,0,231,2,7,255,236,0,231, +2,11,255,236,0,248,0,38,255,215, +0,248,0,42,255,215,0,248,0,50, +255,215,0,248,0,52,255,215,0,248, +0,137,255,215,0,248,0,148,255,215, +0,248,0,149,255,215,0,248,0,150, +255,215,0,248,0,151,255,215,0,248, +0,152,255,215,0,248,0,154,255,215, +0,248,0,200,255,215,0,248,0,202, +255,215,0,248,0,204,255,215,0,248, +0,206,255,215,0,248,0,222,255,215, +0,248,0,224,255,215,0,248,0,226, +255,215,0,248,0,228,255,215,0,248, +1,14,255,215,0,248,1,16,255,215, +0,248,1,18,255,215,0,248,1,20, +255,215,0,248,1,71,255,215,0,248, +2,95,255,215,0,248,3,73,255,215, +0,248,3,75,255,215,0,248,3,77, +255,215,0,248,3,79,255,215,0,248, +3,81,255,215,0,248,3,83,255,215, +0,248,3,85,255,215,0,248,3,87, +255,215,0,248,3,89,255,215,0,248, +3,91,255,215,0,248,3,93,255,215, +0,248,3,95,255,215,0,249,0,70, +255,215,0,249,0,71,255,215,0,249, +0,72,255,215,0,249,0,82,255,215, +0,249,0,84,255,215,0,249,0,162, +255,215,0,249,0,169,255,215,0,249, +0,170,255,215,0,249,0,171,255,215, +0,249,0,172,255,215,0,249,0,173, +255,215,0,249,0,180,255,215,0,249, +0,181,255,215,0,249,0,182,255,215, +0,249,0,183,255,215,0,249,0,184, +255,215,0,249,0,186,255,215,0,249, +0,201,255,215,0,249,0,203,255,215, +0,249,0,205,255,215,0,249,0,207, +255,215,0,249,0,209,255,215,0,249, +0,211,255,215,0,249,0,213,255,215, +0,249,0,215,255,215,0,249,0,217, +255,215,0,249,0,219,255,215,0,249, +0,221,255,215,0,249,1,15,255,215, +0,249,1,17,255,215,0,249,1,19, +255,215,0,249,1,21,255,215,0,249, +1,72,255,215,0,249,2,96,255,215, +0,249,3,54,255,215,0,249,3,56, +255,215,0,249,3,58,255,215,0,249, +3,60,255,215,0,249,3,64,255,215, +0,249,3,66,255,215,0,249,3,68, +255,215,0,249,3,74,255,215,0,249, +3,76,255,215,0,249,3,78,255,215, +0,249,3,82,255,215,0,249,3,84, +255,215,0,249,3,86,255,215,0,249, +3,88,255,215,0,249,3,90,255,215, +0,249,3,92,255,215,0,249,3,94, +255,215,0,249,3,96,255,215,0,250, +0,70,255,215,0,250,0,71,255,215, +0,250,0,72,255,215,0,250,0,82, +255,215,0,250,0,84,255,215,0,250, +0,162,255,215,0,250,0,169,255,215, +0,250,0,170,255,215,0,250,0,171, +255,215,0,250,0,172,255,215,0,250, +0,173,255,215,0,250,0,180,255,215, +0,250,0,181,255,215,0,250,0,182, +255,215,0,250,0,183,255,215,0,250, +0,184,255,215,0,250,0,186,255,215, +0,250,0,201,255,215,0,250,0,203, +255,215,0,250,0,205,255,215,0,250, +0,207,255,215,0,250,0,209,255,215, +0,250,0,211,255,215,0,250,0,213, +255,215,0,250,0,215,255,215,0,250, +0,217,255,215,0,250,0,219,255,215, +0,250,0,221,255,215,0,250,1,15, +255,215,0,250,1,17,255,215,0,250, +1,19,255,215,0,250,1,21,255,215, +0,250,1,72,255,215,0,250,2,96, +255,215,0,250,3,54,255,215,0,250, +3,56,255,215,0,250,3,58,255,215, +0,250,3,60,255,215,0,250,3,64, +255,215,0,250,3,66,255,215,0,250, +3,68,255,215,0,250,3,74,255,215, +0,250,3,76,255,215,0,250,3,78, +255,215,0,250,3,82,255,215,0,250, +3,84,255,215,0,250,3,86,255,215, +0,250,3,88,255,215,0,250,3,90, +255,215,0,250,3,92,255,215,0,250, +3,94,255,215,0,250,3,96,255,215, +0,251,0,5,255,92,0,251,0,10, +255,92,0,251,0,38,255,215,0,251, +0,42,255,215,0,251,0,50,255,215, +0,251,0,52,255,215,0,251,0,55, +255,215,0,251,0,56,255,236,0,251, +0,57,255,215,0,251,0,58,255,215, +0,251,0,60,255,195,0,251,0,137, +255,215,0,251,0,148,255,215,0,251, +0,149,255,215,0,251,0,150,255,215, +0,251,0,151,255,215,0,251,0,152, +255,215,0,251,0,154,255,215,0,251, +0,155,255,236,0,251,0,156,255,236, +0,251,0,157,255,236,0,251,0,158, +255,236,0,251,0,159,255,195,0,251, +0,200,255,215,0,251,0,202,255,215, +0,251,0,204,255,215,0,251,0,206, +255,215,0,251,0,222,255,215,0,251, +0,224,255,215,0,251,0,226,255,215, +0,251,0,228,255,215,0,251,1,14, +255,215,0,251,1,16,255,215,0,251, +1,18,255,215,0,251,1,20,255,215, +0,251,1,36,255,215,0,251,1,38, +255,215,0,251,1,42,255,236,0,251, +1,44,255,236,0,251,1,46,255,236, +0,251,1,48,255,236,0,251,1,50, +255,236,0,251,1,52,255,236,0,251, +1,54,255,215,0,251,1,56,255,195, +0,251,1,58,255,195,0,251,1,71, +255,215,0,251,1,250,255,215,0,251, +1,252,255,215,0,251,1,254,255,215, +0,251,2,0,255,195,0,251,2,7, +255,92,0,251,2,11,255,92,0,251, +2,95,255,215,0,251,2,97,255,236, +0,251,3,73,255,215,0,251,3,75, +255,215,0,251,3,77,255,215,0,251, +3,79,255,215,0,251,3,81,255,215, +0,251,3,83,255,215,0,251,3,85, +255,215,0,251,3,87,255,215,0,251, +3,89,255,215,0,251,3,91,255,215, +0,251,3,93,255,215,0,251,3,95, +255,215,0,251,3,97,255,236,0,251, +3,99,255,236,0,251,3,101,255,236, +0,251,3,103,255,236,0,251,3,105, +255,236,0,251,3,107,255,236,0,251, +3,109,255,236,0,251,3,111,255,195, +0,251,3,113,255,195,0,251,3,115, +255,195,0,251,3,143,255,215,0,253, +0,5,255,92,0,253,0,10,255,92, +0,253,0,38,255,215,0,253,0,42, +255,215,0,253,0,50,255,215,0,253, +0,52,255,215,0,253,0,55,255,215, +0,253,0,56,255,236,0,253,0,57, +255,215,0,253,0,58,255,215,0,253, +0,60,255,195,0,253,0,137,255,215, +0,253,0,148,255,215,0,253,0,149, +255,215,0,253,0,150,255,215,0,253, +0,151,255,215,0,253,0,152,255,215, +0,253,0,154,255,215,0,253,0,155, +255,236,0,253,0,156,255,236,0,253, +0,157,255,236,0,253,0,158,255,236, +0,253,0,159,255,195,0,253,0,200, +255,215,0,253,0,202,255,215,0,253, +0,204,255,215,0,253,0,206,255,215, +0,253,0,222,255,215,0,253,0,224, +255,215,0,253,0,226,255,215,0,253, +0,228,255,215,0,253,1,14,255,215, +0,253,1,16,255,215,0,253,1,18, +255,215,0,253,1,20,255,215,0,253, +1,36,255,215,0,253,1,38,255,215, +0,253,1,42,255,236,0,253,1,44, +255,236,0,253,1,46,255,236,0,253, +1,48,255,236,0,253,1,50,255,236, +0,253,1,52,255,236,0,253,1,54, +255,215,0,253,1,56,255,195,0,253, +1,58,255,195,0,253,1,71,255,215, +0,253,1,250,255,215,0,253,1,252, +255,215,0,253,1,254,255,215,0,253, +2,0,255,195,0,253,2,7,255,92, +0,253,2,11,255,92,0,253,2,95, +255,215,0,253,2,97,255,236,0,253, +3,73,255,215,0,253,3,75,255,215, +0,253,3,77,255,215,0,253,3,79, +255,215,0,253,3,81,255,215,0,253, +3,83,255,215,0,253,3,85,255,215, +0,253,3,87,255,215,0,253,3,89, +255,215,0,253,3,91,255,215,0,253, +3,93,255,215,0,253,3,95,255,215, +0,253,3,97,255,236,0,253,3,99, +255,236,0,253,3,101,255,236,0,253, +3,103,255,236,0,253,3,105,255,236, +0,253,3,107,255,236,0,253,3,109, +255,236,0,253,3,111,255,195,0,253, +3,113,255,195,0,253,3,115,255,195, +0,253,3,143,255,215,0,255,0,5, +255,92,0,255,0,10,255,92,0,255, +0,38,255,215,0,255,0,42,255,215, +0,255,0,50,255,215,0,255,0,52, +255,215,0,255,0,55,255,215,0,255, +0,56,255,236,0,255,0,57,255,215, +0,255,0,58,255,215,0,255,0,60, +255,195,0,255,0,137,255,215,0,255, +0,148,255,215,0,255,0,149,255,215, +0,255,0,150,255,215,0,255,0,151, +255,215,0,255,0,152,255,215,0,255, +0,154,255,215,0,255,0,155,255,236, +0,255,0,156,255,236,0,255,0,157, +255,236,0,255,0,158,255,236,0,255, +0,159,255,195,0,255,0,200,255,215, +0,255,0,202,255,215,0,255,0,204, +255,215,0,255,0,206,255,215,0,255, +0,222,255,215,0,255,0,224,255,215, +0,255,0,226,255,215,0,255,0,228, +255,215,0,255,1,14,255,215,0,255, +1,16,255,215,0,255,1,18,255,215, +0,255,1,20,255,215,0,255,1,36, +255,215,0,255,1,38,255,215,0,255, +1,42,255,236,0,255,1,44,255,236, +0,255,1,46,255,236,0,255,1,48, +255,236,0,255,1,50,255,236,0,255, +1,52,255,236,0,255,1,54,255,215, +0,255,1,56,255,195,0,255,1,58, +255,195,0,255,1,71,255,215,0,255, +1,250,255,215,0,255,1,252,255,215, +0,255,1,254,255,215,0,255,2,0, +255,195,0,255,2,7,255,92,0,255, +2,11,255,92,0,255,2,95,255,215, +0,255,2,97,255,236,0,255,3,73, +255,215,0,255,3,75,255,215,0,255, +3,77,255,215,0,255,3,79,255,215, +0,255,3,81,255,215,0,255,3,83, +255,215,0,255,3,85,255,215,0,255, +3,87,255,215,0,255,3,89,255,215, +0,255,3,91,255,215,0,255,3,93, +255,215,0,255,3,95,255,215,0,255, +3,97,255,236,0,255,3,99,255,236, +0,255,3,101,255,236,0,255,3,103, +255,236,0,255,3,105,255,236,0,255, +3,107,255,236,0,255,3,109,255,236, +0,255,3,111,255,195,0,255,3,113, +255,195,0,255,3,115,255,195,0,255, +3,143,255,215,1,0,0,5,0,82, +1,0,0,10,0,82,1,0,0,12, +0,143,1,0,0,34,0,143,1,0, +0,64,0,143,1,0,0,69,0,61, +1,0,0,75,0,61,1,0,0,78, +0,61,1,0,0,79,0,61,1,0, +0,96,0,143,1,0,0,231,0,61, +1,0,0,233,0,143,1,0,2,7, +0,82,1,0,2,11,0,82,1,1, +0,5,255,92,1,1,0,10,255,92, +1,1,0,38,255,215,1,1,0,42, +255,215,1,1,0,50,255,215,1,1, +0,52,255,215,1,1,0,55,255,215, +1,1,0,56,255,236,1,1,0,57, +255,215,1,1,0,58,255,215,1,1, +0,60,255,195,1,1,0,137,255,215, +1,1,0,148,255,215,1,1,0,149, +255,215,1,1,0,150,255,215,1,1, +0,151,255,215,1,1,0,152,255,215, +1,1,0,154,255,215,1,1,0,155, +255,236,1,1,0,156,255,236,1,1, +0,157,255,236,1,1,0,158,255,236, +1,1,0,159,255,195,1,1,0,200, +255,215,1,1,0,202,255,215,1,1, +0,204,255,215,1,1,0,206,255,215, +1,1,0,222,255,215,1,1,0,224, +255,215,1,1,0,226,255,215,1,1, +0,228,255,215,1,1,1,14,255,215, +1,1,1,16,255,215,1,1,1,18, +255,215,1,1,1,20,255,215,1,1, +1,36,255,215,1,1,1,38,255,215, +1,1,1,42,255,236,1,1,1,44, +255,236,1,1,1,46,255,236,1,1, +1,48,255,236,1,1,1,50,255,236, +1,1,1,52,255,236,1,1,1,54, +255,215,1,1,1,56,255,195,1,1, +1,58,255,195,1,1,1,71,255,215, +1,1,1,250,255,215,1,1,1,252, +255,215,1,1,1,254,255,215,1,1, +2,0,255,195,1,1,2,7,255,92, +1,1,2,11,255,92,1,1,2,95, +255,215,1,1,2,97,255,236,1,1, +3,73,255,215,1,1,3,75,255,215, +1,1,3,77,255,215,1,1,3,79, +255,215,1,1,3,81,255,215,1,1, +3,83,255,215,1,1,3,85,255,215, +1,1,3,87,255,215,1,1,3,89, +255,215,1,1,3,91,255,215,1,1, +3,93,255,215,1,1,3,95,255,215, +1,1,3,97,255,236,1,1,3,99, +255,236,1,1,3,101,255,236,1,1, +3,103,255,236,1,1,3,105,255,236, +1,1,3,107,255,236,1,1,3,109, +255,236,1,1,3,111,255,195,1,1, +3,113,255,195,1,1,3,115,255,195, +1,1,3,143,255,215,1,3,0,5, +255,92,1,3,0,10,255,92,1,3, +0,38,255,215,1,3,0,42,255,215, +1,3,0,50,255,215,1,3,0,52, +255,215,1,3,0,55,255,215,1,3, +0,56,255,236,1,3,0,57,255,215, +1,3,0,58,255,215,1,3,0,60, +255,195,1,3,0,137,255,215,1,3, +0,148,255,215,1,3,0,149,255,215, +1,3,0,150,255,215,1,3,0,151, +255,215,1,3,0,152,255,215,1,3, +0,154,255,215,1,3,0,155,255,236, +1,3,0,156,255,236,1,3,0,157, +255,236,1,3,0,158,255,236,1,3, +0,159,255,195,1,3,0,200,255,215, +1,3,0,202,255,215,1,3,0,204, +255,215,1,3,0,206,255,215,1,3, +0,222,255,215,1,3,0,224,255,215, +1,3,0,226,255,215,1,3,0,228, +255,215,1,3,1,14,255,215,1,3, +1,16,255,215,1,3,1,18,255,215, +1,3,1,20,255,215,1,3,1,36, +255,215,1,3,1,38,255,215,1,3, +1,42,255,236,1,3,1,44,255,236, +1,3,1,46,255,236,1,3,1,48, +255,236,1,3,1,50,255,236,1,3, +1,52,255,236,1,3,1,54,255,215, +1,3,1,56,255,195,1,3,1,58, +255,195,1,3,1,71,255,215,1,3, +1,250,255,215,1,3,1,252,255,215, +1,3,1,254,255,215,1,3,2,0, +255,195,1,3,2,7,255,92,1,3, +2,11,255,92,1,3,2,95,255,215, +1,3,2,97,255,236,1,3,3,73, +255,215,1,3,3,75,255,215,1,3, +3,77,255,215,1,3,3,79,255,215, +1,3,3,81,255,215,1,3,3,83, +255,215,1,3,3,85,255,215,1,3, +3,87,255,215,1,3,3,89,255,215, +1,3,3,91,255,215,1,3,3,93, +255,215,1,3,3,95,255,215,1,3, +3,97,255,236,1,3,3,99,255,236, +1,3,3,101,255,236,1,3,3,103, +255,236,1,3,3,105,255,236,1,3, +3,107,255,236,1,3,3,109,255,236, +1,3,3,111,255,195,1,3,3,113, +255,195,1,3,3,115,255,195,1,3, +3,143,255,215,1,8,0,5,255,236, +1,8,0,10,255,236,1,8,2,7, +255,236,1,8,2,11,255,236,1,14, +0,15,255,174,1,14,0,17,255,174, +1,14,0,36,255,215,1,14,0,55, +255,195,1,14,0,57,255,236,1,14, +0,58,255,236,1,14,0,59,255,215, +1,14,0,60,255,236,1,14,0,61, +255,236,1,14,0,130,255,215,1,14, +0,131,255,215,1,14,0,132,255,215, +1,14,0,133,255,215,1,14,0,134, +255,215,1,14,0,135,255,215,1,14, +0,159,255,236,1,14,0,194,255,215, +1,14,0,196,255,215,1,14,0,198, +255,215,1,14,1,36,255,195,1,14, +1,38,255,195,1,14,1,54,255,236, +1,14,1,56,255,236,1,14,1,58, +255,236,1,14,1,59,255,236,1,14, +1,61,255,236,1,14,1,63,255,236, +1,14,1,67,255,215,1,14,1,160, +255,236,1,14,1,250,255,236,1,14, +1,252,255,236,1,14,1,254,255,236, +1,14,2,0,255,236,1,14,2,8, +255,174,1,14,2,12,255,174,1,14, +2,88,255,215,1,14,3,29,255,215, +1,14,3,31,255,215,1,14,3,33, +255,215,1,14,3,35,255,215,1,14, +3,37,255,215,1,14,3,39,255,215, +1,14,3,41,255,215,1,14,3,43, +255,215,1,14,3,45,255,215,1,14, +3,47,255,215,1,14,3,49,255,215, +1,14,3,51,255,215,1,14,3,111, +255,236,1,14,3,113,255,236,1,14, +3,115,255,236,1,14,3,143,255,195, +1,16,0,15,255,174,1,16,0,17, +255,174,1,16,0,36,255,215,1,16, +0,55,255,195,1,16,0,57,255,236, +1,16,0,58,255,236,1,16,0,59, +255,215,1,16,0,60,255,236,1,16, +0,61,255,236,1,16,0,130,255,215, +1,16,0,131,255,215,1,16,0,132, +255,215,1,16,0,133,255,215,1,16, +0,134,255,215,1,16,0,135,255,215, +1,16,0,159,255,236,1,16,0,194, +255,215,1,16,0,196,255,215,1,16, +0,198,255,215,1,16,1,36,255,195, +1,16,1,38,255,195,1,16,1,54, +255,236,1,16,1,56,255,236,1,16, +1,58,255,236,1,16,1,59,255,236, +1,16,1,61,255,236,1,16,1,63, +255,236,1,16,1,67,255,215,1,16, +1,160,255,236,1,16,1,250,255,236, +1,16,1,252,255,236,1,16,1,254, +255,236,1,16,2,0,255,236,1,16, +2,8,255,174,1,16,2,12,255,174, +1,16,2,88,255,215,1,16,3,29, +255,215,1,16,3,31,255,215,1,16, +3,33,255,215,1,16,3,35,255,215, +1,16,3,37,255,215,1,16,3,39, +255,215,1,16,3,41,255,215,1,16, +3,43,255,215,1,16,3,45,255,215, +1,16,3,47,255,215,1,16,3,49, +255,215,1,16,3,51,255,215,1,16, +3,111,255,236,1,16,3,113,255,236, +1,16,3,115,255,236,1,16,3,143, +255,195,1,18,0,15,255,174,1,18, +0,17,255,174,1,18,0,36,255,215, +1,18,0,55,255,195,1,18,0,57, +255,236,1,18,0,58,255,236,1,18, +0,59,255,215,1,18,0,60,255,236, +1,18,0,61,255,236,1,18,0,130, +255,215,1,18,0,131,255,215,1,18, +0,132,255,215,1,18,0,133,255,215, +1,18,0,134,255,215,1,18,0,135, +255,215,1,18,0,159,255,236,1,18, +0,194,255,215,1,18,0,196,255,215, +1,18,0,198,255,215,1,18,1,36, +255,195,1,18,1,38,255,195,1,18, +1,54,255,236,1,18,1,56,255,236, +1,18,1,58,255,236,1,18,1,59, +255,236,1,18,1,61,255,236,1,18, +1,63,255,236,1,18,1,67,255,215, +1,18,1,160,255,236,1,18,1,250, +255,236,1,18,1,252,255,236,1,18, +1,254,255,236,1,18,2,0,255,236, +1,18,2,8,255,174,1,18,2,12, +255,174,1,18,2,88,255,215,1,18, +3,29,255,215,1,18,3,31,255,215, +1,18,3,33,255,215,1,18,3,35, +255,215,1,18,3,37,255,215,1,18, +3,39,255,215,1,18,3,41,255,215, +1,18,3,43,255,215,1,18,3,45, +255,215,1,18,3,47,255,215,1,18, +3,49,255,215,1,18,3,51,255,215, +1,18,3,111,255,236,1,18,3,113, +255,236,1,18,3,115,255,236,1,18, +3,143,255,195,1,20,0,45,0,123, +1,23,0,5,0,82,1,23,0,10, +0,82,1,23,0,68,255,215,1,23, +0,70,255,215,1,23,0,71,255,215, +1,23,0,72,255,215,1,23,0,74, +255,236,1,23,0,82,255,215,1,23, +0,84,255,215,1,23,0,162,255,215, +1,23,0,163,255,215,1,23,0,164, +255,215,1,23,0,165,255,215,1,23, +0,166,255,215,1,23,0,167,255,215, +1,23,0,168,255,215,1,23,0,169, +255,215,1,23,0,170,255,215,1,23, +0,171,255,215,1,23,0,172,255,215, +1,23,0,173,255,215,1,23,0,180, +255,215,1,23,0,181,255,215,1,23, +0,182,255,215,1,23,0,183,255,215, +1,23,0,184,255,215,1,23,0,186, +255,215,1,23,0,195,255,215,1,23, +0,197,255,215,1,23,0,199,255,215, +1,23,0,201,255,215,1,23,0,203, +255,215,1,23,0,205,255,215,1,23, +0,207,255,215,1,23,0,209,255,215, +1,23,0,211,255,215,1,23,0,213, +255,215,1,23,0,215,255,215,1,23, +0,217,255,215,1,23,0,219,255,215, +1,23,0,221,255,215,1,23,0,223, +255,236,1,23,0,225,255,236,1,23, +0,227,255,236,1,23,0,229,255,236, +1,23,1,15,255,215,1,23,1,17, +255,215,1,23,1,19,255,215,1,23, +1,21,255,215,1,23,1,68,255,215, +1,23,1,70,255,215,1,23,1,72, +255,215,1,23,2,7,0,82,1,23, +2,11,0,82,1,23,2,89,255,215, +1,23,2,96,255,215,1,23,3,30, +255,215,1,23,3,32,255,215,1,23, +3,34,255,215,1,23,3,38,255,215, +1,23,3,40,255,215,1,23,3,42, +255,215,1,23,3,44,255,215,1,23, +3,46,255,215,1,23,3,48,255,215, +1,23,3,50,255,215,1,23,3,52, +255,215,1,23,3,54,255,215,1,23, +3,56,255,215,1,23,3,58,255,215, +1,23,3,60,255,215,1,23,3,64, +255,215,1,23,3,66,255,215,1,23, +3,68,255,215,1,23,3,74,255,215, +1,23,3,76,255,215,1,23,3,78, +255,215,1,23,3,82,255,215,1,23, +3,84,255,215,1,23,3,86,255,215, +1,23,3,88,255,215,1,23,3,90, +255,215,1,23,3,92,255,215,1,23, +3,94,255,215,1,23,3,96,255,215, +1,25,0,5,0,82,1,25,0,10, +0,82,1,25,0,68,255,215,1,25, +0,70,255,215,1,25,0,71,255,215, +1,25,0,72,255,215,1,25,0,74, +255,236,1,25,0,82,255,215,1,25, +0,84,255,215,1,25,0,162,255,215, +1,25,0,163,255,215,1,25,0,164, +255,215,1,25,0,165,255,215,1,25, +0,166,255,215,1,25,0,167,255,215, +1,25,0,168,255,215,1,25,0,169, +255,215,1,25,0,170,255,215,1,25, +0,171,255,215,1,25,0,172,255,215, +1,25,0,173,255,215,1,25,0,180, +255,215,1,25,0,181,255,215,1,25, +0,182,255,215,1,25,0,183,255,215, +1,25,0,184,255,215,1,25,0,186, +255,215,1,25,0,195,255,215,1,25, +0,197,255,215,1,25,0,199,255,215, +1,25,0,201,255,215,1,25,0,203, +255,215,1,25,0,205,255,215,1,25, +0,207,255,215,1,25,0,209,255,215, +1,25,0,211,255,215,1,25,0,213, +255,215,1,25,0,215,255,215,1,25, +0,217,255,215,1,25,0,219,255,215, +1,25,0,221,255,215,1,25,0,223, +255,236,1,25,0,225,255,236,1,25, +0,227,255,236,1,25,0,229,255,236, +1,25,1,15,255,215,1,25,1,17, +255,215,1,25,1,19,255,215,1,25, +1,21,255,215,1,25,1,68,255,215, +1,25,1,70,255,215,1,25,1,72, +255,215,1,25,2,7,0,82,1,25, +2,11,0,82,1,25,2,89,255,215, +1,25,2,96,255,215,1,25,3,30, +255,215,1,25,3,32,255,215,1,25, +3,34,255,215,1,25,3,38,255,215, +1,25,3,40,255,215,1,25,3,42, +255,215,1,25,3,44,255,215,1,25, +3,46,255,215,1,25,3,48,255,215, +1,25,3,50,255,215,1,25,3,52, +255,215,1,25,3,54,255,215,1,25, +3,56,255,215,1,25,3,58,255,215, +1,25,3,60,255,215,1,25,3,64, +255,215,1,25,3,66,255,215,1,25, +3,68,255,215,1,25,3,74,255,215, +1,25,3,76,255,215,1,25,3,78, +255,215,1,25,3,82,255,215,1,25, +3,84,255,215,1,25,3,86,255,215, +1,25,3,88,255,215,1,25,3,90, +255,215,1,25,3,92,255,215,1,25, +3,94,255,215,1,25,3,96,255,215, +1,27,0,5,0,82,1,27,0,10, +0,82,1,27,0,68,255,215,1,27, +0,70,255,215,1,27,0,71,255,215, +1,27,0,72,255,215,1,27,0,74, +255,236,1,27,0,82,255,215,1,27, +0,84,255,215,1,27,0,162,255,215, +1,27,0,163,255,215,1,27,0,164, +255,215,1,27,0,165,255,215,1,27, +0,166,255,215,1,27,0,167,255,215, +1,27,0,168,255,215,1,27,0,169, +255,215,1,27,0,170,255,215,1,27, +0,171,255,215,1,27,0,172,255,215, +1,27,0,173,255,215,1,27,0,180, +255,215,1,27,0,181,255,215,1,27, +0,182,255,215,1,27,0,183,255,215, +1,27,0,184,255,215,1,27,0,186, +255,215,1,27,0,195,255,215,1,27, +0,197,255,215,1,27,0,199,255,215, +1,27,0,201,255,215,1,27,0,203, +255,215,1,27,0,205,255,215,1,27, +0,207,255,215,1,27,0,209,255,215, +1,27,0,211,255,215,1,27,0,213, +255,215,1,27,0,215,255,215,1,27, +0,217,255,215,1,27,0,219,255,215, +1,27,0,221,255,215,1,27,0,223, +255,236,1,27,0,225,255,236,1,27, +0,227,255,236,1,27,0,229,255,236, +1,27,1,15,255,215,1,27,1,17, +255,215,1,27,1,19,255,215,1,27, +1,21,255,215,1,27,1,68,255,215, +1,27,1,70,255,215,1,27,1,72, +255,215,1,27,2,7,0,82,1,27, +2,11,0,82,1,27,2,89,255,215, +1,27,2,96,255,215,1,27,3,30, +255,215,1,27,3,32,255,215,1,27, +3,34,255,215,1,27,3,38,255,215, +1,27,3,40,255,215,1,27,3,42, +255,215,1,27,3,44,255,215,1,27, +3,46,255,215,1,27,3,48,255,215, +1,27,3,50,255,215,1,27,3,52, +255,215,1,27,3,54,255,215,1,27, +3,56,255,215,1,27,3,58,255,215, +1,27,3,60,255,215,1,27,3,64, +255,215,1,27,3,66,255,215,1,27, +3,68,255,215,1,27,3,74,255,215, +1,27,3,76,255,215,1,27,3,78, +255,215,1,27,3,82,255,215,1,27, +3,84,255,215,1,27,3,86,255,215, +1,27,3,88,255,215,1,27,3,90, +255,215,1,27,3,92,255,215,1,27, +3,94,255,215,1,27,3,96,255,215, +1,36,0,15,255,133,1,36,0,16, +255,174,1,36,0,17,255,133,1,36, +0,34,0,41,1,36,0,36,255,113, +1,36,0,38,255,215,1,36,0,42, +255,215,1,36,0,50,255,215,1,36, +0,52,255,215,1,36,0,55,0,41, +1,36,0,68,255,92,1,36,0,70, +255,113,1,36,0,71,255,113,1,36, +0,72,255,113,1,36,0,74,255,113, +1,36,0,80,255,154,1,36,0,81, +255,154,1,36,0,82,255,113,1,36, +0,83,255,154,1,36,0,84,255,113, +1,36,0,85,255,154,1,36,0,86, +255,133,1,36,0,88,255,154,1,36, +0,89,255,215,1,36,0,90,255,215, +1,36,0,91,255,215,1,36,0,92, +255,215,1,36,0,93,255,174,1,36, +0,130,255,113,1,36,0,131,255,113, +1,36,0,132,255,113,1,36,0,133, +255,113,1,36,0,134,255,113,1,36, +0,135,255,113,1,36,0,137,255,215, +1,36,0,148,255,215,1,36,0,149, +255,215,1,36,0,150,255,215,1,36, +0,151,255,215,1,36,0,152,255,215, +1,36,0,154,255,215,1,36,0,162, +255,113,1,36,0,163,255,92,1,36, +0,164,255,92,1,36,0,165,255,92, +1,36,0,166,255,92,1,36,0,167, +255,92,1,36,0,168,255,92,1,36, +0,169,255,113,1,36,0,170,255,113, +1,36,0,171,255,113,1,36,0,172, +255,113,1,36,0,173,255,113,1,36, +0,180,255,113,1,36,0,181,255,113, +1,36,0,182,255,113,1,36,0,183, +255,113,1,36,0,184,255,113,1,36, +0,186,255,113,1,36,0,187,255,154, +1,36,0,188,255,154,1,36,0,189, +255,154,1,36,0,190,255,154,1,36, +0,191,255,215,1,36,0,194,255,113, +1,36,0,195,255,92,1,36,0,196, +255,113,1,36,0,197,255,92,1,36, +0,198,255,113,1,36,0,199,255,92, +1,36,0,200,255,215,1,36,0,201, +255,113,1,36,0,202,255,215,1,36, +0,203,255,113,1,36,0,204,255,215, +1,36,0,205,255,113,1,36,0,206, +255,215,1,36,0,207,255,113,1,36, +0,209,255,113,1,36,0,211,255,113, +1,36,0,213,255,113,1,36,0,215, +255,113,1,36,0,217,255,113,1,36, +0,219,255,113,1,36,0,221,255,113, +1,36,0,222,255,215,1,36,0,223, +255,113,1,36,0,224,255,215,1,36, +0,225,255,113,1,36,0,226,255,215, +1,36,0,227,255,113,1,36,0,228, +255,215,1,36,0,229,255,113,1,36, +0,250,255,154,1,36,1,6,255,154, +1,36,1,8,255,154,1,36,1,13, +255,154,1,36,1,14,255,215,1,36, +1,15,255,113,1,36,1,16,255,215, +1,36,1,17,255,113,1,36,1,18, +255,215,1,36,1,19,255,113,1,36, +1,20,255,215,1,36,1,21,255,113, +1,36,1,23,255,154,1,36,1,25, +255,154,1,36,1,29,255,133,1,36, +1,33,255,133,1,36,1,36,0,41, +1,36,1,38,0,41,1,36,1,43, +255,154,1,36,1,45,255,154,1,36, +1,47,255,154,1,36,1,49,255,154, +1,36,1,51,255,154,1,36,1,53, +255,154,1,36,1,55,255,215,1,36, +1,60,255,174,1,36,1,62,255,174, +1,36,1,64,255,174,1,36,1,67, +255,113,1,36,1,68,255,92,1,36, +1,70,255,92,1,36,1,71,255,215, +1,36,1,72,255,113,1,36,1,74, +255,133,1,36,1,251,255,215,1,36, +1,253,255,215,1,36,2,2,255,174, +1,36,2,3,255,174,1,36,2,4, +255,174,1,36,2,8,255,133,1,36, +2,12,255,133,1,36,2,87,255,154, +1,36,2,88,255,113,1,36,2,89, +255,92,1,36,2,95,255,215,1,36, +2,96,255,113,1,36,2,98,255,154, +1,36,3,29,255,113,1,36,3,30, +255,92,1,36,3,31,255,113,1,36, +3,32,255,92,1,36,3,33,255,113, +1,36,3,34,255,92,1,36,3,35, +255,113,1,36,3,37,255,113,1,36, +3,38,255,92,1,36,3,39,255,113, +1,36,3,40,255,92,1,36,3,41, +255,113,1,36,3,42,255,92,1,36, +3,43,255,113,1,36,3,44,255,92, +1,36,3,45,255,113,1,36,3,46, +255,92,1,36,3,47,255,113,1,36, +3,48,255,92,1,36,3,49,255,113, +1,36,3,50,255,92,1,36,3,51, +255,113,1,36,3,52,255,92,1,36, +3,54,255,113,1,36,3,56,255,113, +1,36,3,58,255,113,1,36,3,60, +255,113,1,36,3,64,255,113,1,36, +3,66,255,113,1,36,3,68,255,113, +1,36,3,73,255,215,1,36,3,74, +255,113,1,36,3,75,255,215,1,36, +3,76,255,113,1,36,3,77,255,215, +1,36,3,78,255,113,1,36,3,79, +255,215,1,36,3,81,255,215,1,36, +3,82,255,113,1,36,3,83,255,215, +1,36,3,84,255,113,1,36,3,85, +255,215,1,36,3,86,255,113,1,36, +3,87,255,215,1,36,3,88,255,113, +1,36,3,89,255,215,1,36,3,90, +255,113,1,36,3,91,255,215,1,36, +3,92,255,113,1,36,3,93,255,215, +1,36,3,94,255,113,1,36,3,95, +255,215,1,36,3,96,255,113,1,36, +3,98,255,154,1,36,3,100,255,154, +1,36,3,102,255,154,1,36,3,104, +255,154,1,36,3,106,255,154,1,36, +3,108,255,154,1,36,3,110,255,154, +1,36,3,112,255,215,1,36,3,143, +0,41,1,37,0,5,0,41,1,37, +0,10,0,41,1,37,2,7,0,41, +1,37,2,11,0,41,1,38,0,15, +255,133,1,38,0,16,255,174,1,38, +0,17,255,133,1,38,0,34,0,41, +1,38,0,36,255,113,1,38,0,38, +255,215,1,38,0,42,255,215,1,38, +0,50,255,215,1,38,0,52,255,215, +1,38,0,55,0,41,1,38,0,68, +255,92,1,38,0,70,255,113,1,38, +0,71,255,113,1,38,0,72,255,113, +1,38,0,74,255,113,1,38,0,80, +255,154,1,38,0,81,255,154,1,38, +0,82,255,113,1,38,0,83,255,154, +1,38,0,84,255,113,1,38,0,85, +255,154,1,38,0,86,255,133,1,38, +0,88,255,154,1,38,0,89,255,215, +1,38,0,90,255,215,1,38,0,91, +255,215,1,38,0,92,255,215,1,38, +0,93,255,174,1,38,0,130,255,113, +1,38,0,131,255,113,1,38,0,132, +255,113,1,38,0,133,255,113,1,38, +0,134,255,113,1,38,0,135,255,113, +1,38,0,137,255,215,1,38,0,148, +255,215,1,38,0,149,255,215,1,38, +0,150,255,215,1,38,0,151,255,215, +1,38,0,152,255,215,1,38,0,154, +255,215,1,38,0,162,255,113,1,38, +0,163,255,92,1,38,0,164,255,92, +1,38,0,165,255,92,1,38,0,166, +255,92,1,38,0,167,255,92,1,38, +0,168,255,92,1,38,0,169,255,113, +1,38,0,170,255,113,1,38,0,171, +255,113,1,38,0,172,255,113,1,38, +0,173,255,113,1,38,0,180,255,113, +1,38,0,181,255,113,1,38,0,182, +255,113,1,38,0,183,255,113,1,38, +0,184,255,113,1,38,0,186,255,113, +1,38,0,187,255,154,1,38,0,188, +255,154,1,38,0,189,255,154,1,38, +0,190,255,154,1,38,0,191,255,215, +1,38,0,194,255,113,1,38,0,195, +255,92,1,38,0,196,255,113,1,38, +0,197,255,92,1,38,0,198,255,113, +1,38,0,199,255,92,1,38,0,200, +255,215,1,38,0,201,255,113,1,38, +0,202,255,215,1,38,0,203,255,113, +1,38,0,204,255,215,1,38,0,205, +255,113,1,38,0,206,255,215,1,38, +0,207,255,113,1,38,0,209,255,113, +1,38,0,211,255,113,1,38,0,213, +255,113,1,38,0,215,255,113,1,38, +0,217,255,113,1,38,0,219,255,113, +1,38,0,221,255,113,1,38,0,222, +255,215,1,38,0,223,255,113,1,38, +0,224,255,215,1,38,0,225,255,113, +1,38,0,226,255,215,1,38,0,227, +255,113,1,38,0,228,255,215,1,38, +0,229,255,113,1,38,0,250,255,154, +1,38,1,6,255,154,1,38,1,8, +255,154,1,38,1,13,255,154,1,38, +1,14,255,215,1,38,1,15,255,113, +1,38,1,16,255,215,1,38,1,17, +255,113,1,38,1,18,255,215,1,38, +1,19,255,113,1,38,1,20,255,215, +1,38,1,21,255,113,1,38,1,23, +255,154,1,38,1,25,255,154,1,38, +1,29,255,133,1,38,1,33,255,133, +1,38,1,36,0,41,1,38,1,38, +0,41,1,38,1,43,255,154,1,38, +1,45,255,154,1,38,1,47,255,154, +1,38,1,49,255,154,1,38,1,51, +255,154,1,38,1,53,255,154,1,38, +1,55,255,215,1,38,1,60,255,174, +1,38,1,62,255,174,1,38,1,64, +255,174,1,38,1,67,255,113,1,38, +1,68,255,92,1,38,1,70,255,92, +1,38,1,71,255,215,1,38,1,72, +255,113,1,38,1,74,255,133,1,38, +1,251,255,215,1,38,1,253,255,215, +1,38,2,2,255,174,1,38,2,3, +255,174,1,38,2,4,255,174,1,38, +2,8,255,133,1,38,2,12,255,133, +1,38,2,87,255,154,1,38,2,88, +255,113,1,38,2,89,255,92,1,38, +2,95,255,215,1,38,2,96,255,113, +1,38,2,98,255,154,1,38,3,29, +255,113,1,38,3,30,255,92,1,38, +3,31,255,113,1,38,3,32,255,92, +1,38,3,33,255,113,1,38,3,34, +255,92,1,38,3,35,255,113,1,38, +3,37,255,113,1,38,3,38,255,92, +1,38,3,39,255,113,1,38,3,40, +255,92,1,38,3,41,255,113,1,38, +3,42,255,92,1,38,3,43,255,113, +1,38,3,44,255,92,1,38,3,45, +255,113,1,38,3,46,255,92,1,38, +3,47,255,113,1,38,3,48,255,92, +1,38,3,49,255,113,1,38,3,50, +255,92,1,38,3,51,255,113,1,38, +3,52,255,92,1,38,3,54,255,113, +1,38,3,56,255,113,1,38,3,58, +255,113,1,38,3,60,255,113,1,38, +3,64,255,113,1,38,3,66,255,113, +1,38,3,68,255,113,1,38,3,73, +255,215,1,38,3,74,255,113,1,38, +3,75,255,215,1,38,3,76,255,113, +1,38,3,77,255,215,1,38,3,78, +255,113,1,38,3,79,255,215,1,38, +3,81,255,215,1,38,3,82,255,113, +1,38,3,83,255,215,1,38,3,84, +255,113,1,38,3,85,255,215,1,38, +3,86,255,113,1,38,3,87,255,215, +1,38,3,88,255,113,1,38,3,89, +255,215,1,38,3,90,255,113,1,38, +3,91,255,215,1,38,3,92,255,113, +1,38,3,93,255,215,1,38,3,94, +255,113,1,38,3,95,255,215,1,38, +3,96,255,113,1,38,3,98,255,154, +1,38,3,100,255,154,1,38,3,102, +255,154,1,38,3,104,255,154,1,38, +3,106,255,154,1,38,3,108,255,154, +1,38,3,110,255,154,1,38,3,112, +255,215,1,38,3,143,0,41,1,39, +0,5,0,41,1,39,0,10,0,41, +1,39,2,7,0,41,1,39,2,11, +0,41,1,40,0,15,255,133,1,40, +0,16,255,174,1,40,0,17,255,133, +1,40,0,34,0,41,1,40,0,36, +255,113,1,40,0,38,255,215,1,40, +0,42,255,215,1,40,0,50,255,215, +1,40,0,52,255,215,1,40,0,55, +0,41,1,40,0,68,255,92,1,40, +0,70,255,113,1,40,0,71,255,113, +1,40,0,72,255,113,1,40,0,74, +255,113,1,40,0,80,255,154,1,40, +0,81,255,154,1,40,0,82,255,113, +1,40,0,83,255,154,1,40,0,84, +255,113,1,40,0,85,255,154,1,40, +0,86,255,133,1,40,0,88,255,154, +1,40,0,89,255,215,1,40,0,90, +255,215,1,40,0,91,255,215,1,40, +0,92,255,215,1,40,0,93,255,174, +1,40,0,130,255,113,1,40,0,131, +255,113,1,40,0,132,255,113,1,40, +0,133,255,113,1,40,0,134,255,113, +1,40,0,135,255,113,1,40,0,137, +255,215,1,40,0,148,255,215,1,40, +0,149,255,215,1,40,0,150,255,215, +1,40,0,151,255,215,1,40,0,152, +255,215,1,40,0,154,255,215,1,40, +0,162,255,113,1,40,0,163,255,92, +1,40,0,164,255,92,1,40,0,165, +255,92,1,40,0,166,255,92,1,40, +0,167,255,92,1,40,0,168,255,92, +1,40,0,169,255,113,1,40,0,170, +255,113,1,40,0,171,255,113,1,40, +0,172,255,113,1,40,0,173,255,113, +1,40,0,180,255,113,1,40,0,181, +255,113,1,40,0,182,255,113,1,40, +0,183,255,113,1,40,0,184,255,113, +1,40,0,186,255,113,1,40,0,187, +255,154,1,40,0,188,255,154,1,40, +0,189,255,154,1,40,0,190,255,154, +1,40,0,191,255,215,1,40,0,194, +255,113,1,40,0,195,255,92,1,40, +0,196,255,113,1,40,0,197,255,92, +1,40,0,198,255,113,1,40,0,199, +255,92,1,40,0,200,255,215,1,40, +0,201,255,113,1,40,0,202,255,215, +1,40,0,203,255,113,1,40,0,204, +255,215,1,40,0,205,255,113,1,40, +0,206,255,215,1,40,0,207,255,113, +1,40,0,209,255,113,1,40,0,211, +255,113,1,40,0,213,255,113,1,40, +0,215,255,113,1,40,0,217,255,113, +1,40,0,219,255,113,1,40,0,221, +255,113,1,40,0,222,255,215,1,40, +0,223,255,113,1,40,0,224,255,215, +1,40,0,225,255,113,1,40,0,226, +255,215,1,40,0,227,255,113,1,40, +0,228,255,215,1,40,0,229,255,113, +1,40,0,250,255,154,1,40,1,6, +255,154,1,40,1,8,255,154,1,40, +1,13,255,154,1,40,1,14,255,215, +1,40,1,15,255,113,1,40,1,16, +255,215,1,40,1,17,255,113,1,40, +1,18,255,215,1,40,1,19,255,113, +1,40,1,20,255,215,1,40,1,21, +255,113,1,40,1,23,255,154,1,40, +1,25,255,154,1,40,1,29,255,133, +1,40,1,33,255,133,1,40,1,36, +0,41,1,40,1,38,0,41,1,40, +1,43,255,154,1,40,1,45,255,154, +1,40,1,47,255,154,1,40,1,49, +255,154,1,40,1,51,255,154,1,40, +1,53,255,154,1,40,1,55,255,215, +1,40,1,60,255,174,1,40,1,62, +255,174,1,40,1,64,255,174,1,40, +1,67,255,113,1,40,1,68,255,92, +1,40,1,70,255,92,1,40,1,71, +255,215,1,40,1,72,255,113,1,40, +1,74,255,133,1,40,1,251,255,215, +1,40,1,253,255,215,1,40,2,2, +255,174,1,40,2,3,255,174,1,40, +2,4,255,174,1,40,2,8,255,133, +1,40,2,12,255,133,1,40,2,87, +255,154,1,40,2,88,255,113,1,40, +2,89,255,92,1,40,2,95,255,215, +1,40,2,96,255,113,1,40,2,98, +255,154,1,40,3,29,255,113,1,40, +3,30,255,92,1,40,3,31,255,113, +1,40,3,32,255,92,1,40,3,33, +255,113,1,40,3,34,255,92,1,40, +3,35,255,113,1,40,3,37,255,113, +1,40,3,38,255,92,1,40,3,39, +255,113,1,40,3,40,255,92,1,40, +3,41,255,113,1,40,3,42,255,92, +1,40,3,43,255,113,1,40,3,44, +255,92,1,40,3,45,255,113,1,40, +3,46,255,92,1,40,3,47,255,113, +1,40,3,48,255,92,1,40,3,49, +255,113,1,40,3,50,255,92,1,40, +3,51,255,113,1,40,3,52,255,92, +1,40,3,54,255,113,1,40,3,56, +255,113,1,40,3,58,255,113,1,40, +3,60,255,113,1,40,3,64,255,113, +1,40,3,66,255,113,1,40,3,68, +255,113,1,40,3,73,255,215,1,40, +3,74,255,113,1,40,3,75,255,215, +1,40,3,76,255,113,1,40,3,77, +255,215,1,40,3,78,255,113,1,40, +3,79,255,215,1,40,3,81,255,215, +1,40,3,82,255,113,1,40,3,83, +255,215,1,40,3,84,255,113,1,40, +3,85,255,215,1,40,3,86,255,113, +1,40,3,87,255,215,1,40,3,88, +255,113,1,40,3,89,255,215,1,40, +3,90,255,113,1,40,3,91,255,215, +1,40,3,92,255,113,1,40,3,93, +255,215,1,40,3,94,255,113,1,40, +3,95,255,215,1,40,3,96,255,113, +1,40,3,98,255,154,1,40,3,100, +255,154,1,40,3,102,255,154,1,40, +3,104,255,154,1,40,3,106,255,154, +1,40,3,108,255,154,1,40,3,110, +255,154,1,40,3,112,255,215,1,40, +3,143,0,41,1,42,0,15,255,215, +1,42,0,17,255,215,1,42,0,36, +255,236,1,42,0,130,255,236,1,42, +0,131,255,236,1,42,0,132,255,236, +1,42,0,133,255,236,1,42,0,134, +255,236,1,42,0,135,255,236,1,42, +0,194,255,236,1,42,0,196,255,236, +1,42,0,198,255,236,1,42,1,67, +255,236,1,42,2,8,255,215,1,42, +2,12,255,215,1,42,2,88,255,236, +1,42,3,29,255,236,1,42,3,31, +255,236,1,42,3,33,255,236,1,42, +3,35,255,236,1,42,3,37,255,236, +1,42,3,39,255,236,1,42,3,41, +255,236,1,42,3,43,255,236,1,42, +3,45,255,236,1,42,3,47,255,236, +1,42,3,49,255,236,1,42,3,51, +255,236,1,44,0,15,255,215,1,44, +0,17,255,215,1,44,0,36,255,236, +1,44,0,130,255,236,1,44,0,131, +255,236,1,44,0,132,255,236,1,44, +0,133,255,236,1,44,0,134,255,236, +1,44,0,135,255,236,1,44,0,194, +255,236,1,44,0,196,255,236,1,44, +0,198,255,236,1,44,1,67,255,236, +1,44,2,8,255,215,1,44,2,12, +255,215,1,44,2,88,255,236,1,44, +3,29,255,236,1,44,3,31,255,236, +1,44,3,33,255,236,1,44,3,35, +255,236,1,44,3,37,255,236,1,44, +3,39,255,236,1,44,3,41,255,236, +1,44,3,43,255,236,1,44,3,45, +255,236,1,44,3,47,255,236,1,44, +3,49,255,236,1,44,3,51,255,236, +1,46,0,15,255,215,1,46,0,17, +255,215,1,46,0,36,255,236,1,46, +0,130,255,236,1,46,0,131,255,236, +1,46,0,132,255,236,1,46,0,133, +255,236,1,46,0,134,255,236,1,46, +0,135,255,236,1,46,0,194,255,236, +1,46,0,196,255,236,1,46,0,198, +255,236,1,46,1,67,255,236,1,46, +2,8,255,215,1,46,2,12,255,215, +1,46,2,88,255,236,1,46,3,29, +255,236,1,46,3,31,255,236,1,46, +3,33,255,236,1,46,3,35,255,236, +1,46,3,37,255,236,1,46,3,39, +255,236,1,46,3,41,255,236,1,46, +3,43,255,236,1,46,3,45,255,236, +1,46,3,47,255,236,1,46,3,49, +255,236,1,46,3,51,255,236,1,48, +0,15,255,215,1,48,0,17,255,215, +1,48,0,36,255,236,1,48,0,130, +255,236,1,48,0,131,255,236,1,48, +0,132,255,236,1,48,0,133,255,236, +1,48,0,134,255,236,1,48,0,135, +255,236,1,48,0,194,255,236,1,48, +0,196,255,236,1,48,0,198,255,236, +1,48,1,67,255,236,1,48,2,8, +255,215,1,48,2,12,255,215,1,48, +2,88,255,236,1,48,3,29,255,236, +1,48,3,31,255,236,1,48,3,33, +255,236,1,48,3,35,255,236,1,48, +3,37,255,236,1,48,3,39,255,236, +1,48,3,41,255,236,1,48,3,43, +255,236,1,48,3,45,255,236,1,48, +3,47,255,236,1,48,3,49,255,236, +1,48,3,51,255,236,1,50,0,15, +255,215,1,50,0,17,255,215,1,50, +0,36,255,236,1,50,0,130,255,236, +1,50,0,131,255,236,1,50,0,132, +255,236,1,50,0,133,255,236,1,50, +0,134,255,236,1,50,0,135,255,236, +1,50,0,194,255,236,1,50,0,196, +255,236,1,50,0,198,255,236,1,50, +1,67,255,236,1,50,2,8,255,215, +1,50,2,12,255,215,1,50,2,88, +255,236,1,50,3,29,255,236,1,50, +3,31,255,236,1,50,3,33,255,236, +1,50,3,35,255,236,1,50,3,37, +255,236,1,50,3,39,255,236,1,50, +3,41,255,236,1,50,3,43,255,236, +1,50,3,45,255,236,1,50,3,47, +255,236,1,50,3,49,255,236,1,50, +3,51,255,236,1,52,0,15,255,215, +1,52,0,17,255,215,1,52,0,36, +255,236,1,52,0,130,255,236,1,52, +0,131,255,236,1,52,0,132,255,236, +1,52,0,133,255,236,1,52,0,134, +255,236,1,52,0,135,255,236,1,52, +0,194,255,236,1,52,0,196,255,236, +1,52,0,198,255,236,1,52,1,67, +255,236,1,52,2,8,255,215,1,52, +2,12,255,215,1,52,2,88,255,236, +1,52,3,29,255,236,1,52,3,31, +255,236,1,52,3,33,255,236,1,52, +3,35,255,236,1,52,3,37,255,236, +1,52,3,39,255,236,1,52,3,41, +255,236,1,52,3,43,255,236,1,52, +3,45,255,236,1,52,3,47,255,236, +1,52,3,49,255,236,1,52,3,51, +255,236,1,54,0,15,255,154,1,54, +0,17,255,154,1,54,0,34,0,41, +1,54,0,36,255,174,1,54,0,38, +255,236,1,54,0,42,255,236,1,54, +0,50,255,236,1,54,0,52,255,236, +1,54,0,68,255,215,1,54,0,70, +255,215,1,54,0,71,255,215,1,54, +0,72,255,215,1,54,0,74,255,236, +1,54,0,80,255,236,1,54,0,81, +255,236,1,54,0,82,255,215,1,54, +0,83,255,236,1,54,0,84,255,215, +1,54,0,85,255,236,1,54,0,86, +255,236,1,54,0,88,255,236,1,54, +0,130,255,174,1,54,0,131,255,174, +1,54,0,132,255,174,1,54,0,133, +255,174,1,54,0,134,255,174,1,54, +0,135,255,174,1,54,0,137,255,236, +1,54,0,148,255,236,1,54,0,149, +255,236,1,54,0,150,255,236,1,54, +0,151,255,236,1,54,0,152,255,236, +1,54,0,154,255,236,1,54,0,162, +255,215,1,54,0,163,255,215,1,54, +0,164,255,215,1,54,0,165,255,215, +1,54,0,166,255,215,1,54,0,167, +255,215,1,54,0,168,255,215,1,54, +0,169,255,215,1,54,0,170,255,215, +1,54,0,171,255,215,1,54,0,172, +255,215,1,54,0,173,255,215,1,54, +0,180,255,215,1,54,0,181,255,215, +1,54,0,182,255,215,1,54,0,183, +255,215,1,54,0,184,255,215,1,54, +0,186,255,215,1,54,0,187,255,236, +1,54,0,188,255,236,1,54,0,189, +255,236,1,54,0,190,255,236,1,54, +0,194,255,174,1,54,0,195,255,215, +1,54,0,196,255,174,1,54,0,197, +255,215,1,54,0,198,255,174,1,54, +0,199,255,215,1,54,0,200,255,236, +1,54,0,201,255,215,1,54,0,202, +255,236,1,54,0,203,255,215,1,54, +0,204,255,236,1,54,0,205,255,215, +1,54,0,206,255,236,1,54,0,207, +255,215,1,54,0,209,255,215,1,54, +0,211,255,215,1,54,0,213,255,215, +1,54,0,215,255,215,1,54,0,217, +255,215,1,54,0,219,255,215,1,54, +0,221,255,215,1,54,0,222,255,236, +1,54,0,223,255,236,1,54,0,224, +255,236,1,54,0,225,255,236,1,54, +0,226,255,236,1,54,0,227,255,236, +1,54,0,228,255,236,1,54,0,229, +255,236,1,54,0,250,255,236,1,54, +1,6,255,236,1,54,1,8,255,236, +1,54,1,13,255,236,1,54,1,14, +255,236,1,54,1,15,255,215,1,54, +1,16,255,236,1,54,1,17,255,215, +1,54,1,18,255,236,1,54,1,19, +255,215,1,54,1,20,255,236,1,54, +1,21,255,215,1,54,1,23,255,236, +1,54,1,25,255,236,1,54,1,29, +255,236,1,54,1,33,255,236,1,54, +1,43,255,236,1,54,1,45,255,236, +1,54,1,47,255,236,1,54,1,49, +255,236,1,54,1,51,255,236,1,54, +1,53,255,236,1,54,1,67,255,174, +1,54,1,68,255,215,1,54,1,70, +255,215,1,54,1,71,255,236,1,54, +1,72,255,215,1,54,1,74,255,236, +1,54,2,8,255,154,1,54,2,12, +255,154,1,54,2,87,255,236,1,54, +2,88,255,174,1,54,2,89,255,215, +1,54,2,95,255,236,1,54,2,96, +255,215,1,54,2,98,255,236,1,54, +3,29,255,174,1,54,3,30,255,215, +1,54,3,31,255,174,1,54,3,32, +255,215,1,54,3,33,255,174,1,54, +3,34,255,215,1,54,3,35,255,174, +1,54,3,37,255,174,1,54,3,38, +255,215,1,54,3,39,255,174,1,54, +3,40,255,215,1,54,3,41,255,174, +1,54,3,42,255,215,1,54,3,43, +255,174,1,54,3,44,255,215,1,54, +3,45,255,174,1,54,3,46,255,215, +1,54,3,47,255,174,1,54,3,48, +255,215,1,54,3,49,255,174,1,54, +3,50,255,215,1,54,3,51,255,174, +1,54,3,52,255,215,1,54,3,54, +255,215,1,54,3,56,255,215,1,54, +3,58,255,215,1,54,3,60,255,215, +1,54,3,64,255,215,1,54,3,66, +255,215,1,54,3,68,255,215,1,54, +3,73,255,236,1,54,3,74,255,215, +1,54,3,75,255,236,1,54,3,76, +255,215,1,54,3,77,255,236,1,54, +3,78,255,215,1,54,3,79,255,236, +1,54,3,81,255,236,1,54,3,82, +255,215,1,54,3,83,255,236,1,54, +3,84,255,215,1,54,3,85,255,236, +1,54,3,86,255,215,1,54,3,87, +255,236,1,54,3,88,255,215,1,54, +3,89,255,236,1,54,3,90,255,215, +1,54,3,91,255,236,1,54,3,92, +255,215,1,54,3,93,255,236,1,54, +3,94,255,215,1,54,3,95,255,236, +1,54,3,96,255,215,1,54,3,98, +255,236,1,54,3,100,255,236,1,54, +3,102,255,236,1,54,3,104,255,236, +1,54,3,106,255,236,1,54,3,108, +255,236,1,54,3,110,255,236,1,55, +0,5,0,82,1,55,0,10,0,82, +1,55,0,15,255,174,1,55,0,17, +255,174,1,55,0,34,0,41,1,55, +2,7,0,82,1,55,2,8,255,174, +1,55,2,11,0,82,1,55,2,12, +255,174,1,56,0,15,255,133,1,56, +0,17,255,133,1,56,0,34,0,41, +1,56,0,36,255,133,1,56,0,38, +255,215,1,56,0,42,255,215,1,56, +0,50,255,215,1,56,0,52,255,215, +1,56,0,68,255,154,1,56,0,70, +255,154,1,56,0,71,255,154,1,56, +0,72,255,154,1,56,0,74,255,215, +1,56,0,80,255,195,1,56,0,81, +255,195,1,56,0,82,255,154,1,56, +0,83,255,195,1,56,0,84,255,154, +1,56,0,85,255,195,1,56,0,86, +255,174,1,56,0,88,255,195,1,56, +0,93,255,215,1,56,0,130,255,133, +1,56,0,131,255,133,1,56,0,132, +255,133,1,56,0,133,255,133,1,56, +0,134,255,133,1,56,0,135,255,133, +1,56,0,137,255,215,1,56,0,148, +255,215,1,56,0,149,255,215,1,56, +0,150,255,215,1,56,0,151,255,215, +1,56,0,152,255,215,1,56,0,154, +255,215,1,56,0,162,255,154,1,56, +0,163,255,154,1,56,0,164,255,154, +1,56,0,165,255,154,1,56,0,166, +255,154,1,56,0,167,255,154,1,56, +0,168,255,154,1,56,0,169,255,154, +1,56,0,170,255,154,1,56,0,171, +255,154,1,56,0,172,255,154,1,56, +0,173,255,154,1,56,0,180,255,154, +1,56,0,181,255,154,1,56,0,182, +255,154,1,56,0,183,255,154,1,56, +0,184,255,154,1,56,0,186,255,154, +1,56,0,187,255,195,1,56,0,188, +255,195,1,56,0,189,255,195,1,56, +0,190,255,195,1,56,0,194,255,133, +1,56,0,195,255,154,1,56,0,196, +255,133,1,56,0,197,255,154,1,56, +0,198,255,133,1,56,0,199,255,154, +1,56,0,200,255,215,1,56,0,201, +255,154,1,56,0,202,255,215,1,56, +0,203,255,154,1,56,0,204,255,215, +1,56,0,205,255,154,1,56,0,206, +255,215,1,56,0,207,255,154,1,56, +0,209,255,154,1,56,0,211,255,154, +1,56,0,213,255,154,1,56,0,215, +255,154,1,56,0,217,255,154,1,56, +0,219,255,154,1,56,0,221,255,154, +1,56,0,222,255,215,1,56,0,223, +255,215,1,56,0,224,255,215,1,56, +0,225,255,215,1,56,0,226,255,215, +1,56,0,227,255,215,1,56,0,228, +255,215,1,56,0,229,255,215,1,56, +0,250,255,195,1,56,1,6,255,195, +1,56,1,8,255,195,1,56,1,13, +255,195,1,56,1,14,255,215,1,56, +1,15,255,154,1,56,1,16,255,215, +1,56,1,17,255,154,1,56,1,18, +255,215,1,56,1,19,255,154,1,56, +1,20,255,215,1,56,1,21,255,154, +1,56,1,23,255,195,1,56,1,25, +255,195,1,56,1,29,255,174,1,56, +1,33,255,174,1,56,1,43,255,195, +1,56,1,45,255,195,1,56,1,47, +255,195,1,56,1,49,255,195,1,56, +1,51,255,195,1,56,1,53,255,195, +1,56,1,60,255,215,1,56,1,62, +255,215,1,56,1,64,255,215,1,56, +1,67,255,133,1,56,1,68,255,154, +1,56,1,70,255,154,1,56,1,71, +255,215,1,56,1,72,255,154,1,56, +1,74,255,174,1,56,2,8,255,133, +1,56,2,12,255,133,1,56,2,87, +255,195,1,56,2,88,255,133,1,56, +2,89,255,154,1,56,2,95,255,215, +1,56,2,96,255,154,1,56,2,98, +255,195,1,56,3,29,255,133,1,56, +3,30,255,154,1,56,3,31,255,133, +1,56,3,32,255,154,1,56,3,33, +255,133,1,56,3,34,255,154,1,56, +3,35,255,133,1,56,3,37,255,133, +1,56,3,38,255,154,1,56,3,39, +255,133,1,56,3,40,255,154,1,56, +3,41,255,133,1,56,3,42,255,154, +1,56,3,43,255,133,1,56,3,44, +255,154,1,56,3,45,255,133,1,56, +3,46,255,154,1,56,3,47,255,133, +1,56,3,48,255,154,1,56,3,49, +255,133,1,56,3,50,255,154,1,56, +3,51,255,133,1,56,3,52,255,154, +1,56,3,54,255,154,1,56,3,56, +255,154,1,56,3,58,255,154,1,56, +3,60,255,154,1,56,3,64,255,154, +1,56,3,66,255,154,1,56,3,68, +255,154,1,56,3,73,255,215,1,56, +3,74,255,154,1,56,3,75,255,215, +1,56,3,76,255,154,1,56,3,77, +255,215,1,56,3,78,255,154,1,56, +3,79,255,215,1,56,3,81,255,215, +1,56,3,82,255,154,1,56,3,83, +255,215,1,56,3,84,255,154,1,56, +3,85,255,215,1,56,3,86,255,154, +1,56,3,87,255,215,1,56,3,88, +255,154,1,56,3,89,255,215,1,56, +3,90,255,154,1,56,3,91,255,215, +1,56,3,92,255,154,1,56,3,93, +255,215,1,56,3,94,255,154,1,56, +3,95,255,215,1,56,3,96,255,154, +1,56,3,98,255,195,1,56,3,100, +255,195,1,56,3,102,255,195,1,56, +3,104,255,195,1,56,3,106,255,195, +1,56,3,108,255,195,1,56,3,110, +255,195,1,57,0,5,0,82,1,57, +0,10,0,82,1,57,0,15,255,174, +1,57,0,17,255,174,1,57,0,34, +0,41,1,57,2,7,0,82,1,57, +2,8,255,174,1,57,2,11,0,82, +1,57,2,12,255,174,1,58,0,15, +255,133,1,58,0,17,255,133,1,58, +0,34,0,41,1,58,0,36,255,133, +1,58,0,38,255,215,1,58,0,42, +255,215,1,58,0,50,255,215,1,58, +0,52,255,215,1,58,0,68,255,154, +1,58,0,70,255,154,1,58,0,71, +255,154,1,58,0,72,255,154,1,58, +0,74,255,215,1,58,0,80,255,195, +1,58,0,81,255,195,1,58,0,82, +255,154,1,58,0,83,255,195,1,58, +0,84,255,154,1,58,0,85,255,195, +1,58,0,86,255,174,1,58,0,88, +255,195,1,58,0,93,255,215,1,58, +0,130,255,133,1,58,0,131,255,133, +1,58,0,132,255,133,1,58,0,133, +255,133,1,58,0,134,255,133,1,58, +0,135,255,133,1,58,0,137,255,215, +1,58,0,148,255,215,1,58,0,149, +255,215,1,58,0,150,255,215,1,58, +0,151,255,215,1,58,0,152,255,215, +1,58,0,154,255,215,1,58,0,162, +255,154,1,58,0,163,255,154,1,58, +0,164,255,154,1,58,0,165,255,154, +1,58,0,166,255,154,1,58,0,167, +255,154,1,58,0,168,255,154,1,58, +0,169,255,154,1,58,0,170,255,154, +1,58,0,171,255,154,1,58,0,172, +255,154,1,58,0,173,255,154,1,58, +0,180,255,154,1,58,0,181,255,154, +1,58,0,182,255,154,1,58,0,183, +255,154,1,58,0,184,255,154,1,58, +0,186,255,154,1,58,0,187,255,195, +1,58,0,188,255,195,1,58,0,189, +255,195,1,58,0,190,255,195,1,58, +0,194,255,133,1,58,0,195,255,154, +1,58,0,196,255,133,1,58,0,197, +255,154,1,58,0,198,255,133,1,58, +0,199,255,154,1,58,0,200,255,215, +1,58,0,201,255,154,1,58,0,202, +255,215,1,58,0,203,255,154,1,58, +0,204,255,215,1,58,0,205,255,154, +1,58,0,206,255,215,1,58,0,207, +255,154,1,58,0,209,255,154,1,58, +0,211,255,154,1,58,0,213,255,154, +1,58,0,215,255,154,1,58,0,217, +255,154,1,58,0,219,255,154,1,58, +0,221,255,154,1,58,0,222,255,215, +1,58,0,223,255,215,1,58,0,224, +255,215,1,58,0,225,255,215,1,58, +0,226,255,215,1,58,0,227,255,215, +1,58,0,228,255,215,1,58,0,229, +255,215,1,58,0,250,255,195,1,58, +1,6,255,195,1,58,1,8,255,195, +1,58,1,13,255,195,1,58,1,14, +255,215,1,58,1,15,255,154,1,58, +1,16,255,215,1,58,1,17,255,154, +1,58,1,18,255,215,1,58,1,19, +255,154,1,58,1,20,255,215,1,58, +1,21,255,154,1,58,1,23,255,195, +1,58,1,25,255,195,1,58,1,29, +255,174,1,58,1,33,255,174,1,58, +1,43,255,195,1,58,1,45,255,195, +1,58,1,47,255,195,1,58,1,49, +255,195,1,58,1,51,255,195,1,58, +1,53,255,195,1,58,1,60,255,215, +1,58,1,62,255,215,1,58,1,64, +255,215,1,58,1,67,255,133,1,58, +1,68,255,154,1,58,1,70,255,154, +1,58,1,71,255,215,1,58,1,72, +255,154,1,58,1,74,255,174,1,58, +2,8,255,133,1,58,2,12,255,133, +1,58,2,87,255,195,1,58,2,88, +255,133,1,58,2,89,255,154,1,58, +2,95,255,215,1,58,2,96,255,154, +1,58,2,98,255,195,1,58,3,29, +255,133,1,58,3,30,255,154,1,58, +3,31,255,133,1,58,3,32,255,154, +1,58,3,33,255,133,1,58,3,34, +255,154,1,58,3,35,255,133,1,58, +3,37,255,133,1,58,3,38,255,154, +1,58,3,39,255,133,1,58,3,40, +255,154,1,58,3,41,255,133,1,58, +3,42,255,154,1,58,3,43,255,133, +1,58,3,44,255,154,1,58,3,45, +255,133,1,58,3,46,255,154,1,58, +3,47,255,133,1,58,3,48,255,154, +1,58,3,49,255,133,1,58,3,50, +255,154,1,58,3,51,255,133,1,58, +3,52,255,154,1,58,3,54,255,154, +1,58,3,56,255,154,1,58,3,58, +255,154,1,58,3,60,255,154,1,58, +3,64,255,154,1,58,3,66,255,154, +1,58,3,68,255,154,1,58,3,73, +255,215,1,58,3,74,255,154,1,58, +3,75,255,215,1,58,3,76,255,154, +1,58,3,77,255,215,1,58,3,78, +255,154,1,58,3,79,255,215,1,58, +3,81,255,215,1,58,3,82,255,154, +1,58,3,83,255,215,1,58,3,84, +255,154,1,58,3,85,255,215,1,58, +3,86,255,154,1,58,3,87,255,215, +1,58,3,88,255,154,1,58,3,89, +255,215,1,58,3,90,255,154,1,58, +3,91,255,215,1,58,3,92,255,154, +1,58,3,93,255,215,1,58,3,94, +255,154,1,58,3,95,255,215,1,58, +3,96,255,154,1,58,3,98,255,195, +1,58,3,100,255,195,1,58,3,102, +255,195,1,58,3,104,255,195,1,58, +3,106,255,195,1,58,3,108,255,195, +1,58,3,110,255,195,1,59,0,38, +255,236,1,59,0,42,255,236,1,59, +0,50,255,236,1,59,0,52,255,236, +1,59,0,137,255,236,1,59,0,148, +255,236,1,59,0,149,255,236,1,59, +0,150,255,236,1,59,0,151,255,236, +1,59,0,152,255,236,1,59,0,154, +255,236,1,59,0,200,255,236,1,59, +0,202,255,236,1,59,0,204,255,236, +1,59,0,206,255,236,1,59,0,222, +255,236,1,59,0,224,255,236,1,59, +0,226,255,236,1,59,0,228,255,236, +1,59,1,14,255,236,1,59,1,16, +255,236,1,59,1,18,255,236,1,59, +1,20,255,236,1,59,1,71,255,236, +1,59,2,95,255,236,1,59,3,73, +255,236,1,59,3,75,255,236,1,59, +3,77,255,236,1,59,3,79,255,236, +1,59,3,81,255,236,1,59,3,83, +255,236,1,59,3,85,255,236,1,59, +3,87,255,236,1,59,3,89,255,236, +1,59,3,91,255,236,1,59,3,93, +255,236,1,59,3,95,255,236,1,61, +0,38,255,236,1,61,0,42,255,236, +1,61,0,50,255,236,1,61,0,52, +255,236,1,61,0,137,255,236,1,61, +0,148,255,236,1,61,0,149,255,236, +1,61,0,150,255,236,1,61,0,151, +255,236,1,61,0,152,255,236,1,61, +0,154,255,236,1,61,0,200,255,236, +1,61,0,202,255,236,1,61,0,204, +255,236,1,61,0,206,255,236,1,61, +0,222,255,236,1,61,0,224,255,236, +1,61,0,226,255,236,1,61,0,228, +255,236,1,61,1,14,255,236,1,61, +1,16,255,236,1,61,1,18,255,236, +1,61,1,20,255,236,1,61,1,71, +255,236,1,61,2,95,255,236,1,61, +3,73,255,236,1,61,3,75,255,236, +1,61,3,77,255,236,1,61,3,79, +255,236,1,61,3,81,255,236,1,61, +3,83,255,236,1,61,3,85,255,236, +1,61,3,87,255,236,1,61,3,89, +255,236,1,61,3,91,255,236,1,61, +3,93,255,236,1,61,3,95,255,236, +1,63,0,38,255,236,1,63,0,42, +255,236,1,63,0,50,255,236,1,63, +0,52,255,236,1,63,0,137,255,236, +1,63,0,148,255,236,1,63,0,149, +255,236,1,63,0,150,255,236,1,63, +0,151,255,236,1,63,0,152,255,236, +1,63,0,154,255,236,1,63,0,200, +255,236,1,63,0,202,255,236,1,63, +0,204,255,236,1,63,0,206,255,236, +1,63,0,222,255,236,1,63,0,224, +255,236,1,63,0,226,255,236,1,63, +0,228,255,236,1,63,1,14,255,236, +1,63,1,16,255,236,1,63,1,18, +255,236,1,63,1,20,255,236,1,63, +1,71,255,236,1,63,2,95,255,236, +1,63,3,73,255,236,1,63,3,75, +255,236,1,63,3,77,255,236,1,63, +3,79,255,236,1,63,3,81,255,236, +1,63,3,83,255,236,1,63,3,85, +255,236,1,63,3,87,255,236,1,63, +3,89,255,236,1,63,3,91,255,236, +1,63,3,93,255,236,1,63,3,95, +255,236,1,67,0,5,255,113,1,67, +0,10,255,113,1,67,0,38,255,215, +1,67,0,42,255,215,1,67,0,45, +1,10,1,67,0,50,255,215,1,67, +0,52,255,215,1,67,0,55,255,113, +1,67,0,57,255,174,1,67,0,58, +255,174,1,67,0,60,255,133,1,67, +0,137,255,215,1,67,0,148,255,215, +1,67,0,149,255,215,1,67,0,150, +255,215,1,67,0,151,255,215,1,67, +0,152,255,215,1,67,0,154,255,215, +1,67,0,159,255,133,1,67,0,200, +255,215,1,67,0,202,255,215,1,67, +0,204,255,215,1,67,0,206,255,215, +1,67,0,222,255,215,1,67,0,224, +255,215,1,67,0,226,255,215,1,67, +0,228,255,215,1,67,1,14,255,215, +1,67,1,16,255,215,1,67,1,18, +255,215,1,67,1,20,255,215,1,67, +1,36,255,113,1,67,1,38,255,113, +1,67,1,54,255,174,1,67,1,56, +255,133,1,67,1,58,255,133,1,67, +1,71,255,215,1,67,1,250,255,174, +1,67,1,252,255,174,1,67,1,254, +255,174,1,67,2,0,255,133,1,67, +2,7,255,113,1,67,2,11,255,113, +1,67,2,95,255,215,1,67,3,73, +255,215,1,67,3,75,255,215,1,67, +3,77,255,215,1,67,3,79,255,215, +1,67,3,81,255,215,1,67,3,83, +255,215,1,67,3,85,255,215,1,67, +3,87,255,215,1,67,3,89,255,215, +1,67,3,91,255,215,1,67,3,93, +255,215,1,67,3,95,255,215,1,67, +3,111,255,133,1,67,3,113,255,133, +1,67,3,115,255,133,1,67,3,143, +255,113,1,68,0,5,255,236,1,68, +0,10,255,236,1,68,2,7,255,236, +1,68,2,11,255,236,1,69,0,45, +0,123,1,71,0,15,255,174,1,71, +0,17,255,174,1,71,0,36,255,215, +1,71,0,55,255,195,1,71,0,57, +255,236,1,71,0,58,255,236,1,71, +0,59,255,215,1,71,0,60,255,236, +1,71,0,61,255,236,1,71,0,130, +255,215,1,71,0,131,255,215,1,71, +0,132,255,215,1,71,0,133,255,215, +1,71,0,134,255,215,1,71,0,135, +255,215,1,71,0,159,255,236,1,71, +0,194,255,215,1,71,0,196,255,215, +1,71,0,198,255,215,1,71,1,36, +255,195,1,71,1,38,255,195,1,71, +1,54,255,236,1,71,1,56,255,236, +1,71,1,58,255,236,1,71,1,59, +255,236,1,71,1,61,255,236,1,71, +1,63,255,236,1,71,1,67,255,215, +1,71,1,160,255,236,1,71,1,250, +255,236,1,71,1,252,255,236,1,71, +1,254,255,236,1,71,2,0,255,236, +1,71,2,8,255,174,1,71,2,12, +255,174,1,71,2,88,255,215,1,71, +3,29,255,215,1,71,3,31,255,215, +1,71,3,33,255,215,1,71,3,35, +255,215,1,71,3,37,255,215,1,71, +3,39,255,215,1,71,3,41,255,215, +1,71,3,43,255,215,1,71,3,45, +255,215,1,71,3,47,255,215,1,71, +3,49,255,215,1,71,3,51,255,215, +1,71,3,111,255,236,1,71,3,113, +255,236,1,71,3,115,255,236,1,71, +3,143,255,195,1,86,0,5,255,113, +1,86,0,10,255,113,1,86,1,102, +255,215,1,86,1,109,255,215,1,86, +1,113,255,113,1,86,1,114,255,133, +1,86,1,115,255,215,1,86,1,117, +255,174,1,86,1,120,255,133,1,86, +2,7,255,113,1,86,2,11,255,113, +1,86,2,84,255,133,1,91,0,15, +255,174,1,91,0,17,255,174,1,91, +1,86,255,215,1,91,1,95,255,215, +1,91,1,98,255,215,1,91,1,100, +255,236,1,91,1,105,255,215,1,91, +1,112,255,236,1,91,1,113,255,195, +1,91,1,114,255,236,1,91,1,116, +255,215,1,91,1,117,255,236,1,91, +1,120,255,236,1,91,1,136,255,236, +1,91,2,8,255,174,1,91,2,12, +255,174,1,91,2,84,255,236,1,92, +0,15,255,133,1,92,0,17,255,133, +1,92,1,86,255,133,1,92,1,95, +255,133,1,92,1,98,255,133,1,92, +1,102,255,215,1,92,1,105,255,133, +1,92,1,109,255,215,1,92,1,115, +255,195,1,92,1,118,255,236,1,92, +1,121,255,154,1,92,1,122,255,174, +1,92,1,123,255,195,1,92,1,124, +255,195,1,92,1,125,255,195,1,92, +1,126,255,154,1,92,1,129,255,195, +1,92,1,130,255,174,1,92,1,132, +255,195,1,92,1,134,255,195,1,92, +1,135,255,195,1,92,1,137,255,195, +1,92,1,140,255,154,1,92,1,142, +255,154,1,92,1,143,255,154,1,92, +1,144,255,154,1,92,1,146,255,195, +1,92,1,147,255,154,1,92,1,149, +255,195,1,92,1,150,255,195,1,92, +1,152,255,195,1,92,1,153,255,154, +1,92,1,154,255,195,1,92,1,155, +255,195,1,92,2,8,255,133,1,92, +2,12,255,133,1,92,2,33,255,236, +1,93,1,113,255,215,1,93,1,114, +255,236,1,93,1,120,255,236,1,93, +2,84,255,236,1,94,0,5,255,215, +1,94,0,10,255,215,1,94,2,7, +255,215,1,94,2,11,255,215,1,95, +0,5,255,113,1,95,0,10,255,113, +1,95,1,102,255,215,1,95,1,109, +255,215,1,95,1,113,255,113,1,95, +1,114,255,133,1,95,1,115,255,215, +1,95,1,117,255,174,1,95,1,120, +255,133,1,95,2,7,255,113,1,95, +2,11,255,113,1,95,2,84,255,133, +1,96,0,15,255,174,1,96,0,17, +255,174,1,96,1,86,255,215,1,96, +1,95,255,215,1,96,1,98,255,215, +1,96,1,105,255,215,1,96,1,116, +255,215,1,96,2,8,255,174,1,96, +2,12,255,174,1,97,0,15,255,133, +1,97,0,16,255,174,1,97,0,17, +255,133,1,97,1,86,255,92,1,97, +1,95,255,92,1,97,1,98,255,92, +1,97,1,102,255,195,1,97,1,105, +255,92,1,97,1,109,255,195,1,97, +1,115,255,154,1,97,1,118,255,195, +1,97,1,121,255,113,1,97,1,122, +255,154,1,97,1,123,255,154,1,97, +1,124,255,174,1,97,1,125,255,154, +1,97,1,126,255,113,1,97,1,128, +255,215,1,97,1,129,255,195,1,97, +1,130,255,154,1,97,1,132,255,154, +1,97,1,134,255,174,1,97,1,135, +255,154,1,97,1,137,255,154,1,97, +1,138,255,215,1,97,1,140,255,113, +1,97,1,142,255,154,1,97,1,143, +255,113,1,97,1,144,255,113,1,97, +1,146,255,154,1,97,1,147,255,113, +1,97,1,148,255,215,1,97,1,149, +255,154,1,97,1,150,255,154,1,97, +1,152,255,154,1,97,1,153,255,113, +1,97,1,154,255,154,1,97,1,155, +255,154,1,97,2,2,255,174,1,97, +2,3,255,174,1,97,2,4,255,174, +1,97,2,8,255,133,1,97,2,12, +255,133,1,97,2,33,255,195,1,97, +2,83,255,215,1,98,0,5,255,113, +1,98,0,10,255,113,1,98,1,102, +255,215,1,98,1,109,255,215,1,98, +1,113,255,113,1,98,1,114,255,133, +1,98,1,115,255,215,1,98,1,117, +255,174,1,98,1,120,255,133,1,98, +2,7,255,113,1,98,2,11,255,113, +1,98,2,84,255,133,1,100,1,102, +255,236,1,100,1,109,255,236,1,100, +1,115,255,195,1,102,0,15,255,174, +1,102,0,17,255,174,1,102,1,86, +255,215,1,102,1,95,255,215,1,102, +1,98,255,215,1,102,1,100,255,236, +1,102,1,105,255,215,1,102,1,112, +255,236,1,102,1,113,255,195,1,102, +1,114,255,236,1,102,1,116,255,215, +1,102,1,117,255,236,1,102,1,120, +255,236,1,102,1,136,255,236,1,102, +2,8,255,174,1,102,2,12,255,174, +1,102,2,84,255,236,1,104,1,102, +255,215,1,104,1,109,255,215,1,104, +1,115,255,195,1,104,1,141,255,236, +1,104,1,145,255,236,1,105,0,5, +255,113,1,105,0,10,255,113,1,105, +1,102,255,215,1,105,1,109,255,215, +1,105,1,113,255,113,1,105,1,114, +255,133,1,105,1,115,255,215,1,105, +1,117,255,174,1,105,1,120,255,133, +1,105,2,7,255,113,1,105,2,11, +255,113,1,105,2,84,255,133,1,109, +0,15,255,174,1,109,0,17,255,174, +1,109,1,86,255,215,1,109,1,95, +255,215,1,109,1,98,255,215,1,109, +1,100,255,236,1,109,1,105,255,215, +1,109,1,112,255,236,1,109,1,113, +255,195,1,109,1,114,255,236,1,109, +1,116,255,215,1,109,1,117,255,236, +1,109,1,120,255,236,1,109,1,136, +255,236,1,109,2,8,255,174,1,109, +2,12,255,174,1,109,2,84,255,236, +1,111,0,15,254,246,1,111,0,17, +254,246,1,111,1,86,255,154,1,111, +1,95,255,154,1,111,1,98,255,154, +1,111,1,100,255,236,1,111,1,105, +255,154,1,111,1,116,255,215,1,111, +1,136,255,215,1,111,2,8,254,246, +1,111,2,12,254,246,1,113,0,15, +255,133,1,113,0,16,255,174,1,113, +0,17,255,133,1,113,1,86,255,92, +1,113,1,95,255,92,1,113,1,98, +255,92,1,113,1,102,255,195,1,113, +1,105,255,92,1,113,1,109,255,195, +1,113,1,115,255,154,1,113,1,118, +255,195,1,113,1,121,255,113,1,113, +1,122,255,154,1,113,1,123,255,154, +1,113,1,124,255,174,1,113,1,125, +255,154,1,113,1,126,255,113,1,113, +1,128,255,215,1,113,1,129,255,195, +1,113,1,130,255,154,1,113,1,132, +255,154,1,113,1,134,255,174,1,113, +1,135,255,154,1,113,1,137,255,154, +1,113,1,138,255,215,1,113,1,140, +255,113,1,113,1,142,255,154,1,113, +1,143,255,113,1,113,1,144,255,113, +1,113,1,146,255,154,1,113,1,147, +255,113,1,113,1,148,255,215,1,113, +1,149,255,154,1,113,1,150,255,154, +1,113,1,152,255,154,1,113,1,153, +255,113,1,113,1,154,255,154,1,113, +1,155,255,154,1,113,2,2,255,174, +1,113,2,3,255,174,1,113,2,4, +255,174,1,113,2,8,255,133,1,113, +2,12,255,133,1,113,2,33,255,195, +1,113,2,83,255,215,1,114,0,15, +255,133,1,114,0,17,255,133,1,114, +1,86,255,133,1,114,1,95,255,133, +1,114,1,98,255,133,1,114,1,102, +255,215,1,114,1,105,255,133,1,114, +1,109,255,215,1,114,1,115,255,195, +1,114,1,118,255,236,1,114,1,121, +255,154,1,114,1,122,255,174,1,114, +1,123,255,195,1,114,1,124,255,195, +1,114,1,125,255,195,1,114,1,126, +255,154,1,114,1,129,255,195,1,114, +1,130,255,174,1,114,1,132,255,195, +1,114,1,134,255,195,1,114,1,135, +255,195,1,114,1,137,255,195,1,114, +1,140,255,154,1,114,1,142,255,154, +1,114,1,143,255,154,1,114,1,144, +255,154,1,114,1,146,255,195,1,114, +1,147,255,154,1,114,1,149,255,195, +1,114,1,150,255,195,1,114,1,152, +255,195,1,114,1,153,255,154,1,114, +1,154,255,195,1,114,1,155,255,195, +1,114,2,8,255,133,1,114,2,12, +255,133,1,114,2,33,255,236,1,115, +0,15,255,154,1,115,0,17,255,154, +1,115,1,86,255,215,1,115,1,95, +255,215,1,115,1,98,255,215,1,115, +1,100,255,195,1,115,1,105,255,215, +1,115,1,112,255,236,1,115,1,113, +255,174,1,115,1,114,255,195,1,115, +1,116,255,236,1,115,1,120,255,195, +1,115,1,136,255,236,1,115,2,8, +255,154,1,115,2,12,255,154,1,115, +2,84,255,195,1,116,1,102,255,215, +1,116,1,109,255,215,1,116,1,115, +255,195,1,116,1,141,255,236,1,116, +1,145,255,236,1,117,0,15,255,133, +1,117,0,17,255,133,1,117,1,86, +255,174,1,117,1,95,255,174,1,117, +1,98,255,174,1,117,1,102,255,236, +1,117,1,105,255,174,1,117,1,109, +255,236,1,117,2,8,255,133,1,117, +2,12,255,133,1,118,1,113,255,215, +1,118,1,114,255,236,1,118,1,120, +255,236,1,118,2,84,255,236,1,120, +0,15,255,133,1,120,0,17,255,133, +1,120,1,86,255,133,1,120,1,95, +255,133,1,120,1,98,255,133,1,120, +1,102,255,215,1,120,1,105,255,133, +1,120,1,109,255,215,1,120,1,115, +255,195,1,120,1,118,255,236,1,120, +1,121,255,154,1,120,1,122,255,174, +1,120,1,123,255,195,1,120,1,124, +255,195,1,120,1,125,255,195,1,120, +1,126,255,154,1,120,1,129,255,195, +1,120,1,130,255,174,1,120,1,132, +255,195,1,120,1,134,255,195,1,120, +1,135,255,195,1,120,1,137,255,195, +1,120,1,140,255,154,1,120,1,142, +255,154,1,120,1,143,255,154,1,120, +1,144,255,154,1,120,1,146,255,195, +1,120,1,147,255,154,1,120,1,149, +255,195,1,120,1,150,255,195,1,120, +1,152,255,195,1,120,1,153,255,154, +1,120,1,154,255,195,1,120,1,155, +255,195,1,120,2,8,255,133,1,120, +2,12,255,133,1,120,2,33,255,236, +1,121,1,136,0,41,1,123,0,5, +255,236,1,123,0,10,255,236,1,123, +2,7,255,236,1,123,2,11,255,236, +1,124,0,5,255,174,1,124,0,10, +255,174,1,124,1,141,255,236,1,124, +1,145,255,236,1,124,2,7,255,174, +1,124,2,11,255,174,1,126,1,136, +0,41,1,128,0,15,255,174,1,128, +0,17,255,174,1,128,1,136,255,236, +1,128,2,8,255,174,1,128,2,12, +255,174,1,131,0,16,255,154,1,131, +1,121,255,215,1,131,1,126,255,215, +1,131,1,129,255,215,1,131,1,140, +255,215,1,131,1,141,255,215,1,131, +1,143,255,215,1,131,1,144,255,215, +1,131,1,145,255,215,1,131,1,147, +255,215,1,131,1,153,255,215,1,131, +2,2,255,154,1,131,2,3,255,154, +1,131,2,4,255,154,1,132,0,5, +255,236,1,132,0,10,255,236,1,132, +2,7,255,236,1,132,2,11,255,236, +1,133,0,15,255,215,1,133,0,17, +255,215,1,133,2,8,255,215,1,133, +2,12,255,215,1,134,0,5,255,174, +1,134,0,10,255,174,1,134,1,141, +255,236,1,134,1,145,255,236,1,134, +2,7,255,174,1,134,2,11,255,174, +1,135,1,121,255,215,1,135,1,126, +255,215,1,135,1,140,255,215,1,135, +1,143,255,215,1,135,1,144,255,215, +1,135,1,147,255,215,1,135,1,153, +255,215,1,136,0,5,255,133,1,136, +0,10,255,133,1,136,1,121,255,236, +1,136,1,126,255,236,1,136,1,128, +255,215,1,136,1,138,255,215,1,136, +1,140,255,236,1,136,1,141,255,215, +1,136,1,143,255,236,1,136,1,144, +255,236,1,136,1,145,255,215,1,136, +1,147,255,236,1,136,1,153,255,236, +1,136,2,7,255,133,1,136,2,11, +255,133,1,138,0,15,255,174,1,138, +0,17,255,174,1,138,1,136,255,236, +1,138,2,8,255,174,1,138,2,12, +255,174,1,140,0,5,255,236,1,140, +0,10,255,236,1,140,1,128,255,215, +1,140,1,138,255,215,1,140,2,7, +255,236,1,140,2,11,255,236,1,142, +0,5,255,236,1,142,0,10,255,236, +1,142,1,128,255,215,1,142,1,138, +255,215,1,142,2,7,255,236,1,142, +2,11,255,236,1,144,0,15,255,236, +1,144,0,17,255,236,1,144,2,8, +255,236,1,144,2,12,255,236,1,147, +0,5,255,236,1,147,0,10,255,236, +1,147,1,128,255,215,1,147,1,138, +255,215,1,147,2,7,255,236,1,147, +2,11,255,236,1,148,0,15,255,195, +1,148,0,16,255,215,1,148,0,17, +255,195,1,148,1,121,255,215,1,148, +1,126,255,215,1,148,1,129,255,215, +1,148,1,140,255,215,1,148,1,143, +255,215,1,148,1,144,255,215,1,148, +1,147,255,215,1,148,1,153,255,215, +1,148,2,2,255,215,1,148,2,3, +255,215,1,148,2,4,255,215,1,148, +2,8,255,195,1,148,2,12,255,195, +1,151,0,5,255,215,1,151,0,10, +255,215,1,151,2,7,255,215,1,151, +2,11,255,215,1,153,0,5,255,236, +1,153,0,10,255,236,1,153,1,128, +255,215,1,153,1,138,255,215,1,153, +2,7,255,236,1,153,2,11,255,236, +1,157,0,5,255,174,1,157,0,10, +255,174,1,157,1,157,255,133,1,157, +1,166,255,133,1,157,1,168,255,215, +1,157,1,188,255,154,1,157,1,189, +255,215,1,157,1,193,255,154,1,157, +1,196,255,133,1,157,1,220,255,215, +1,157,1,221,255,215,1,157,1,225, +255,215,1,157,1,228,255,215,1,157, +1,246,255,215,1,157,2,7,255,174, +1,157,2,11,255,174,1,157,2,110, +255,174,1,157,2,124,255,154,1,157, +2,128,255,174,1,157,2,130,255,174, +1,157,2,151,255,174,1,157,2,155, +255,174,1,157,2,167,255,174,1,157, +2,169,255,133,1,157,2,170,255,215, +1,157,2,181,255,154,1,157,2,182, +255,215,1,157,2,183,255,154,1,157, +2,184,255,215,1,157,2,185,255,154, +1,157,2,186,255,215,1,157,2,189, +255,133,1,157,2,190,255,215,1,157, +2,191,255,154,1,157,2,192,255,215, +1,157,2,193,255,154,1,157,2,194, +255,215,1,157,2,212,255,154,1,157, +2,213,255,215,1,157,2,247,255,215, +1,157,2,248,255,215,1,157,2,249, +255,215,1,157,2,250,255,215,1,157, +2,251,255,215,1,157,2,252,255,215, +1,157,2,253,255,154,1,157,2,254, +255,215,1,157,3,3,255,174,1,157, +3,13,255,154,1,157,3,14,255,195, +1,157,3,15,255,154,1,157,3,16, +255,195,1,157,3,23,255,133,1,157, +3,24,255,215,1,158,0,15,255,133, +1,158,0,16,255,174,1,158,0,17, +255,133,1,158,1,159,255,215,1,158, +1,164,255,154,1,158,1,170,255,113, +1,158,1,174,255,154,1,158,1,181, +255,154,1,158,1,184,255,215,1,158, +1,187,255,215,1,158,1,188,0,41, +1,158,1,190,255,174,1,158,1,204, +255,154,1,158,1,205,255,154,1,158, +1,206,255,133,1,158,1,207,255,113, +1,158,1,208,255,215,1,158,1,209, +255,215,1,158,1,210,255,154,1,158, +1,211,255,154,1,158,1,212,255,154, +1,158,1,213,255,133,1,158,1,214, +255,154,1,158,1,215,255,154,1,158, +1,216,255,113,1,158,1,217,255,154, +1,158,1,218,255,154,1,158,1,219, +255,113,1,158,1,220,255,174,1,158, +1,221,255,174,1,158,1,222,255,113, +1,158,1,223,255,215,1,158,1,224, +255,154,1,158,1,225,255,154,1,158, +1,226,255,154,1,158,1,227,255,154, +1,158,1,228,255,174,1,158,1,229, +255,154,1,158,1,230,255,154,1,158, +1,231,255,215,1,158,1,232,255,154, +1,158,1,233,255,195,1,158,1,234, +255,113,1,158,1,236,255,154,1,158, +1,237,255,113,1,158,1,238,255,133, +1,158,1,242,255,133,1,158,1,243, +255,154,1,158,1,245,255,154,1,158, +1,246,255,174,1,158,1,247,255,154, +1,158,1,249,255,154,1,158,2,2, +255,174,1,158,2,3,255,174,1,158, +2,4,255,174,1,158,2,8,255,133, +1,158,2,12,255,133,1,158,2,106, +255,113,1,158,2,107,255,154,1,158, +2,108,255,215,1,158,2,109,255,215, +1,158,2,113,255,154,1,158,2,114, +255,113,1,158,2,115,255,133,1,158, +2,117,255,154,1,158,2,119,255,154, +1,158,2,121,255,154,1,158,2,125, +255,154,1,158,2,126,255,215,1,158, +2,127,255,113,1,158,2,129,255,215, +1,158,2,131,255,215,1,158,2,132, +255,215,1,158,2,133,255,113,1,158, +2,134,255,215,1,158,2,135,255,113, +1,158,2,136,255,215,1,158,2,137, +255,113,1,158,2,138,255,215,1,158, +2,139,255,215,1,158,2,140,255,215, +1,158,2,141,255,113,1,158,2,150, +255,154,1,158,2,154,255,154,1,158, +2,158,255,154,1,158,2,160,255,215, +1,158,2,162,255,215,1,158,2,164, +255,154,1,158,2,166,255,154,1,158, +2,170,255,174,1,158,2,172,255,154, +1,158,2,174,255,154,1,158,2,176, +255,154,1,158,2,177,255,215,1,158, +2,178,255,113,1,158,2,179,255,215, +1,158,2,180,255,113,1,158,2,181, +0,41,1,158,2,182,255,174,1,158, +2,184,255,174,1,158,2,186,255,174, +1,158,2,188,255,215,1,158,2,190, +255,174,1,158,2,192,255,154,1,158, +2,194,255,154,1,158,2,196,255,154, +1,158,2,197,255,154,1,158,2,198, +255,113,1,158,2,199,255,154,1,158, +2,200,255,113,1,158,2,203,255,215, +1,158,2,205,255,154,1,158,2,206, +255,154,1,158,2,207,255,133,1,158, +2,209,255,154,1,158,2,211,255,154, +1,158,2,213,255,154,1,158,2,215, +255,154,1,158,2,217,255,113,1,158, +2,219,255,113,1,158,2,221,255,113, +1,158,2,224,255,113,1,158,2,230, +255,215,1,158,2,232,255,215,1,158, +2,234,255,195,1,158,2,236,255,154, +1,158,2,238,255,154,1,158,2,239, +255,215,1,158,2,240,255,113,1,158, +2,241,255,215,1,158,2,242,255,113, +1,158,2,243,255,215,1,158,2,244, +255,113,1,158,2,246,255,215,1,158, +2,248,255,174,1,158,2,250,255,174, +1,158,2,252,255,174,1,158,2,254, +255,154,1,158,3,0,255,154,1,158, +3,2,255,154,1,158,3,6,255,215, +1,158,3,8,255,215,1,158,3,9, +255,113,1,158,3,10,255,113,1,158, +3,11,255,113,1,158,3,12,255,113, +1,158,3,14,255,154,1,158,3,16, +255,154,1,158,3,17,255,154,1,158, +3,18,255,133,1,158,3,20,255,154, +1,158,3,21,255,215,1,158,3,22, +255,113,1,158,3,24,255,174,1,158, +3,26,255,113,1,158,3,27,255,154, +1,158,3,28,255,133,1,159,1,159, +255,215,1,159,1,184,255,215,1,159, +1,187,255,215,1,159,1,190,255,215, +1,159,1,225,255,215,1,159,2,108, +255,215,1,159,2,126,255,215,1,159, +2,132,255,215,1,159,2,134,255,215, +1,159,2,136,255,215,1,159,2,138, +255,215,1,159,2,140,255,215,1,159, +2,177,255,215,1,159,2,179,255,215, +1,159,2,192,255,215,1,159,2,194, +255,215,1,159,2,197,255,215,1,159, +2,199,255,215,1,159,2,213,255,215, +1,159,2,239,255,215,1,159,2,241, +255,215,1,159,2,243,255,215,1,159, +2,254,255,215,1,159,3,9,255,215, +1,159,3,11,255,215,1,159,3,14, +255,215,1,159,3,16,255,215,1,159, +3,21,255,215,1,160,3,14,255,215, +1,160,3,16,255,215,1,164,0,5, +255,174,1,164,0,10,255,174,1,164, +1,157,255,133,1,164,1,166,255,133, +1,164,1,168,255,215,1,164,1,188, +255,154,1,164,1,189,255,215,1,164, +1,193,255,154,1,164,1,196,255,133, +1,164,1,220,255,215,1,164,1,221, +255,215,1,164,1,225,255,215,1,164, +1,228,255,215,1,164,1,246,255,215, +1,164,2,7,255,174,1,164,2,11, +255,174,1,164,2,110,255,174,1,164, +2,124,255,154,1,164,2,128,255,174, +1,164,2,130,255,174,1,164,2,151, +255,174,1,164,2,155,255,174,1,164, +2,167,255,174,1,164,2,169,255,133, +1,164,2,170,255,215,1,164,2,181, +255,154,1,164,2,182,255,215,1,164, +2,183,255,154,1,164,2,184,255,215, +1,164,2,185,255,154,1,164,2,186, +255,215,1,164,2,189,255,133,1,164, +2,190,255,215,1,164,2,191,255,154, +1,164,2,192,255,215,1,164,2,193, +255,154,1,164,2,194,255,215,1,164, +2,212,255,154,1,164,2,213,255,215, +1,164,2,247,255,215,1,164,2,248, +255,215,1,164,2,249,255,215,1,164, +2,250,255,215,1,164,2,251,255,215, +1,164,2,252,255,215,1,164,2,253, +255,154,1,164,2,254,255,215,1,164, +3,3,255,174,1,164,3,13,255,154, +1,164,3,14,255,195,1,164,3,15, +255,154,1,164,3,16,255,195,1,164, +3,23,255,133,1,164,3,24,255,215, +1,165,0,5,255,174,1,165,0,10, +255,174,1,165,1,157,255,133,1,165, +1,166,255,133,1,165,1,168,255,215, +1,165,1,188,255,154,1,165,1,189, +255,215,1,165,1,193,255,154,1,165, +1,196,255,133,1,165,1,220,255,215, +1,165,1,221,255,215,1,165,1,225, +255,215,1,165,1,228,255,215,1,165, +1,246,255,215,1,165,2,7,255,174, +1,165,2,11,255,174,1,165,2,110, +255,174,1,165,2,124,255,154,1,165, +2,128,255,174,1,165,2,130,255,174, +1,165,2,151,255,174,1,165,2,155, +255,174,1,165,2,167,255,174,1,165, +2,169,255,133,1,165,2,170,255,215, +1,165,2,181,255,154,1,165,2,182, +255,215,1,165,2,183,255,154,1,165, +2,184,255,215,1,165,2,185,255,154, +1,165,2,186,255,215,1,165,2,189, +255,133,1,165,2,190,255,215,1,165, +2,191,255,154,1,165,2,192,255,215, +1,165,2,193,255,154,1,165,2,194, +255,215,1,165,2,212,255,154,1,165, +2,213,255,215,1,165,2,247,255,215, +1,165,2,248,255,215,1,165,2,249, +255,215,1,165,2,250,255,215,1,165, +2,251,255,215,1,165,2,252,255,215, +1,165,2,253,255,154,1,165,2,254, +255,215,1,165,3,3,255,174,1,165, +3,13,255,154,1,165,3,14,255,195, +1,165,3,15,255,154,1,165,3,16, +255,195,1,165,3,23,255,133,1,165, +3,24,255,215,1,166,0,5,255,174, +1,166,0,10,255,174,1,166,1,157, +255,133,1,166,1,166,255,133,1,166, +1,168,255,215,1,166,1,188,255,154, +1,166,1,189,255,215,1,166,1,193, +255,154,1,166,1,196,255,133,1,166, +1,220,255,215,1,166,1,221,255,215, +1,166,1,225,255,215,1,166,1,228, +255,215,1,166,1,246,255,215,1,166, +2,7,255,174,1,166,2,11,255,174, +1,166,2,110,255,174,1,166,2,124, +255,154,1,166,2,128,255,174,1,166, +2,130,255,174,1,166,2,151,255,174, +1,166,2,155,255,174,1,166,2,167, +255,174,1,166,2,169,255,133,1,166, +2,170,255,215,1,166,2,181,255,154, +1,166,2,182,255,215,1,166,2,183, +255,154,1,166,2,184,255,215,1,166, +2,185,255,154,1,166,2,186,255,215, +1,166,2,189,255,133,1,166,2,190, +255,215,1,166,2,191,255,154,1,166, +2,192,255,215,1,166,2,193,255,154, +1,166,2,194,255,215,1,166,2,212, +255,154,1,166,2,213,255,215,1,166, +2,247,255,215,1,166,2,248,255,215, +1,166,2,249,255,215,1,166,2,250, +255,215,1,166,2,251,255,215,1,166, +2,252,255,215,1,166,2,253,255,154, +1,166,2,254,255,215,1,166,3,3, +255,174,1,166,3,13,255,154,1,166, +3,14,255,195,1,166,3,15,255,154, +1,166,3,16,255,195,1,166,3,23, +255,133,1,166,3,24,255,215,1,167, +1,159,255,215,1,167,1,184,255,215, +1,167,1,187,255,215,1,167,1,190, +255,215,1,167,1,193,255,215,1,167, +1,225,255,215,1,167,2,108,255,215, +1,167,2,124,255,215,1,167,2,126, +255,215,1,167,2,132,255,215,1,167, +2,134,255,215,1,167,2,136,255,215, +1,167,2,138,255,215,1,167,2,140, +255,215,1,167,2,177,255,215,1,167, +2,179,255,215,1,167,2,191,255,215, +1,167,2,192,255,215,1,167,2,193, +255,215,1,167,2,194,255,215,1,167, +2,197,255,154,1,167,2,199,255,154, +1,167,2,212,255,215,1,167,2,213, +255,215,1,167,2,239,255,215,1,167, +2,241,255,215,1,167,2,243,255,215, +1,167,2,253,255,215,1,167,2,254, +255,215,1,167,3,9,255,215,1,167, +3,11,255,215,1,167,3,14,255,215, +1,167,3,16,255,215,1,167,3,21, +255,215,1,167,3,25,255,236,1,168, +0,15,255,133,1,168,0,17,255,133, +1,168,1,159,255,236,1,168,1,164, +255,154,1,168,1,170,255,113,1,168, +1,174,255,154,1,168,1,181,255,154, +1,168,1,184,255,236,1,168,1,187, +255,236,1,168,1,190,255,195,1,168, +1,201,255,236,1,168,1,206,255,174, +1,168,1,207,255,215,1,168,1,213, +255,174,1,168,1,216,255,215,1,168, +1,219,255,215,1,168,1,222,255,215, +1,168,1,225,255,215,1,168,1,234, +255,215,1,168,1,235,0,102,1,168, +1,237,255,215,1,168,1,238,255,236, +1,168,1,242,255,174,1,168,1,244, +0,102,1,168,2,8,255,133,1,168, +2,12,255,133,1,168,2,106,255,215, +1,168,2,108,255,236,1,168,2,114, +255,113,1,168,2,115,255,174,1,168, +2,126,255,236,1,168,2,127,255,215, +1,168,2,132,255,236,1,168,2,133, +255,215,1,168,2,134,255,236,1,168, +2,135,255,215,1,168,2,136,255,236, +1,168,2,137,255,215,1,168,2,138, +255,236,1,168,2,140,255,236,1,168, +2,141,255,215,1,168,2,152,0,102, +1,168,2,168,0,102,1,168,2,177, +255,236,1,168,2,178,255,215,1,168, +2,179,255,236,1,168,2,180,255,215, +1,168,2,192,255,215,1,168,2,194, +255,215,1,168,2,197,255,215,1,168, +2,198,255,195,1,168,2,199,255,215, +1,168,2,200,255,195,1,168,2,206, +255,154,1,168,2,207,255,174,1,168, +2,213,255,215,1,168,2,217,255,113, +1,168,2,219,255,113,1,168,2,221, +255,113,1,168,2,224,255,215,1,168, +2,239,255,236,1,168,2,240,255,215, +1,168,2,241,255,236,1,168,2,242, +255,215,1,168,2,243,255,236,1,168, +2,244,255,215,1,168,2,254,255,215, +1,168,3,9,255,113,1,168,3,10, +255,215,1,168,3,11,255,113,1,168, +3,12,255,215,1,168,3,17,255,154, +1,168,3,18,255,174,1,168,3,21, +255,236,1,168,3,22,255,215,1,168, +3,26,255,215,1,168,3,27,255,154, +1,168,3,28,255,174,1,170,0,5, +255,113,1,170,0,10,255,113,1,170, +1,157,255,154,1,170,1,166,255,154, +1,170,1,188,255,113,1,170,1,190, +255,215,1,170,1,193,255,154,1,170, +1,196,255,154,1,170,1,220,255,215, +1,170,1,225,255,215,1,170,1,228, +255,215,1,170,2,7,255,113,1,170, +2,11,255,113,1,170,2,110,255,215, +1,170,2,124,255,154,1,170,2,128, +255,174,1,170,2,130,255,174,1,170, +2,151,255,215,1,170,2,155,255,215, +1,170,2,167,255,215,1,170,2,169, +255,154,1,170,2,170,255,215,1,170, +2,181,255,113,1,170,2,182,255,215, +1,170,2,183,255,133,1,170,2,185, +255,133,1,170,2,189,255,154,1,170, +2,190,255,215,1,170,2,191,255,154, +1,170,2,192,255,215,1,170,2,193, +255,154,1,170,2,194,255,215,1,170, +2,197,255,154,1,170,2,199,255,154, +1,170,2,212,255,154,1,170,2,213, +255,215,1,170,2,225,255,215,1,170, +2,227,255,215,1,170,2,253,255,154, +1,170,2,254,255,215,1,170,3,3, +255,215,1,170,3,13,255,113,1,170, +3,14,255,215,1,170,3,15,255,113, +1,170,3,16,255,215,1,170,3,23, +255,154,1,170,3,24,255,215,1,171, +0,5,255,215,1,171,0,10,255,215, +1,171,1,170,255,236,1,171,1,193, +255,215,1,171,2,7,255,215,1,171, +2,11,255,215,1,171,2,114,255,236, +1,171,2,124,255,215,1,171,2,191, +255,215,1,171,2,193,255,215,1,171, +2,197,255,215,1,171,2,199,255,215, +1,171,2,212,255,215,1,171,2,217, +255,236,1,171,2,219,255,236,1,171, +2,221,255,236,1,171,2,253,255,215, +1,172,0,15,255,174,1,172,0,17, +255,174,1,172,2,8,255,174,1,172, +2,12,255,174,1,172,2,128,255,236, +1,172,2,130,255,236,1,172,2,183, +255,236,1,172,2,185,255,236,1,172, +3,13,255,215,1,172,3,15,255,215, +1,173,0,15,255,133,1,173,0,16, +255,174,1,173,0,17,255,133,1,173, +1,159,255,215,1,173,1,164,255,154, +1,173,1,170,255,113,1,173,1,174, +255,154,1,173,1,181,255,154,1,173, +1,184,255,215,1,173,1,187,255,215, +1,173,1,188,0,41,1,173,1,190, +255,174,1,173,1,204,255,154,1,173, +1,205,255,154,1,173,1,206,255,133, +1,173,1,207,255,113,1,173,1,208, +255,215,1,173,1,209,255,215,1,173, +1,210,255,154,1,173,1,211,255,154, +1,173,1,212,255,154,1,173,1,213, +255,133,1,173,1,214,255,154,1,173, +1,215,255,154,1,173,1,216,255,113, +1,173,1,217,255,154,1,173,1,218, +255,154,1,173,1,219,255,113,1,173, +1,220,255,174,1,173,1,221,255,174, +1,173,1,222,255,113,1,173,1,223, +255,215,1,173,1,224,255,154,1,173, +1,225,255,154,1,173,1,226,255,154, +1,173,1,227,255,154,1,173,1,228, +255,174,1,173,1,229,255,154,1,173, +1,230,255,154,1,173,1,231,255,215, +1,173,1,232,255,154,1,173,1,233, +255,195,1,173,1,234,255,113,1,173, +1,236,255,154,1,173,1,237,255,113, +1,173,1,238,255,133,1,173,1,242, +255,133,1,173,1,243,255,154,1,173, +1,245,255,154,1,173,1,246,255,174, +1,173,1,247,255,154,1,173,1,249, +255,154,1,173,2,2,255,174,1,173, +2,3,255,174,1,173,2,4,255,174, +1,173,2,8,255,133,1,173,2,12, +255,133,1,173,2,106,255,113,1,173, +2,107,255,154,1,173,2,108,255,215, +1,173,2,109,255,215,1,173,2,113, +255,154,1,173,2,114,255,113,1,173, +2,115,255,133,1,173,2,117,255,154, +1,173,2,119,255,154,1,173,2,121, +255,154,1,173,2,125,255,154,1,173, +2,126,255,215,1,173,2,127,255,113, +1,173,2,129,255,215,1,173,2,131, +255,215,1,173,2,132,255,215,1,173, +2,133,255,113,1,173,2,134,255,215, +1,173,2,135,255,113,1,173,2,136, +255,215,1,173,2,137,255,113,1,173, +2,138,255,215,1,173,2,139,255,215, +1,173,2,140,255,215,1,173,2,141, +255,113,1,173,2,150,255,154,1,173, +2,154,255,154,1,173,2,158,255,154, +1,173,2,160,255,215,1,173,2,162, +255,215,1,173,2,164,255,154,1,173, +2,166,255,154,1,173,2,170,255,174, +1,173,2,172,255,154,1,173,2,174, +255,154,1,173,2,176,255,154,1,173, +2,177,255,215,1,173,2,178,255,113, +1,173,2,179,255,215,1,173,2,180, +255,113,1,173,2,181,0,41,1,173, +2,182,255,174,1,173,2,184,255,174, +1,173,2,186,255,174,1,173,2,188, +255,215,1,173,2,190,255,174,1,173, +2,192,255,154,1,173,2,194,255,154, +1,173,2,196,255,154,1,173,2,197, +255,154,1,173,2,198,255,113,1,173, +2,199,255,154,1,173,2,200,255,113, +1,173,2,203,255,215,1,173,2,205, +255,154,1,173,2,206,255,154,1,173, +2,207,255,133,1,173,2,209,255,154, +1,173,2,211,255,154,1,173,2,213, +255,154,1,173,2,215,255,154,1,173, +2,217,255,113,1,173,2,219,255,113, +1,173,2,221,255,113,1,173,2,224, +255,113,1,173,2,230,255,215,1,173, +2,232,255,215,1,173,2,234,255,195, +1,173,2,236,255,154,1,173,2,238, +255,154,1,173,2,239,255,215,1,173, +2,240,255,113,1,173,2,241,255,215, +1,173,2,242,255,113,1,173,2,243, +255,215,1,173,2,244,255,113,1,173, +2,246,255,215,1,173,2,248,255,174, +1,173,2,250,255,174,1,173,2,252, +255,174,1,173,2,254,255,154,1,173, +3,0,255,154,1,173,3,2,255,154, +1,173,3,6,255,215,1,173,3,8, +255,215,1,173,3,9,255,113,1,173, +3,10,255,113,1,173,3,11,255,113, +1,173,3,12,255,113,1,173,3,14, +255,154,1,173,3,16,255,154,1,173, +3,17,255,154,1,173,3,18,255,133, +1,173,3,20,255,154,1,173,3,21, +255,215,1,173,3,22,255,113,1,173, +3,24,255,174,1,173,3,26,255,113, +1,173,3,27,255,154,1,173,3,28, +255,133,1,174,1,163,0,225,1,174, +2,234,0,41,1,174,3,14,255,215, +1,174,3,16,255,215,1,176,1,159, +255,215,1,176,1,184,255,215,1,176, +1,187,255,215,1,176,1,190,255,215, +1,176,1,193,255,215,1,176,1,225, +255,215,1,176,2,108,255,215,1,176, +2,124,255,215,1,176,2,126,255,215, +1,176,2,132,255,215,1,176,2,134, +255,215,1,176,2,136,255,215,1,176, +2,138,255,215,1,176,2,140,255,215, +1,176,2,177,255,215,1,176,2,179, +255,215,1,176,2,191,255,215,1,176, +2,192,255,215,1,176,2,193,255,215, +1,176,2,194,255,215,1,176,2,197, +255,154,1,176,2,199,255,154,1,176, +2,212,255,215,1,176,2,213,255,215, +1,176,2,239,255,215,1,176,2,241, +255,215,1,176,2,243,255,215,1,176, +2,253,255,215,1,176,2,254,255,215, +1,176,3,9,255,215,1,176,3,11, +255,215,1,176,3,14,255,215,1,176, +3,16,255,215,1,176,3,21,255,215, +1,176,3,25,255,236,1,177,0,15, +255,174,1,177,0,17,255,174,1,177, +2,8,255,174,1,177,2,12,255,174, +1,177,2,128,255,236,1,177,2,130, +255,236,1,177,2,183,255,236,1,177, +2,185,255,236,1,177,3,13,255,215, +1,177,3,15,255,215,1,180,1,159, +255,215,1,180,1,184,255,215,1,180, +1,187,255,215,1,180,1,190,255,215, +1,180,1,193,255,215,1,180,1,225, +255,215,1,180,2,108,255,215,1,180, +2,124,255,215,1,180,2,126,255,215, +1,180,2,132,255,215,1,180,2,134, +255,215,1,180,2,136,255,215,1,180, +2,138,255,215,1,180,2,140,255,215, +1,180,2,177,255,215,1,180,2,179, +255,215,1,180,2,191,255,215,1,180, +2,192,255,215,1,180,2,193,255,215, +1,180,2,194,255,215,1,180,2,197, +255,154,1,180,2,199,255,154,1,180, +2,212,255,215,1,180,2,213,255,215, +1,180,2,239,255,215,1,180,2,241, +255,215,1,180,2,243,255,215,1,180, +2,253,255,215,1,180,2,254,255,215, +1,180,3,9,255,215,1,180,3,11, +255,215,1,180,3,14,255,215,1,180, +3,16,255,215,1,180,3,21,255,215, +1,180,3,25,255,236,1,184,0,15, +255,174,1,184,0,17,255,174,1,184, +1,157,255,236,1,184,1,164,255,215, +1,184,1,166,255,236,1,184,1,168, +255,215,1,184,1,170,255,215,1,184, +1,174,255,215,1,184,1,176,255,215, +1,184,1,177,255,236,1,184,1,181, +255,215,1,184,1,188,255,195,1,184, +1,189,255,215,1,184,1,191,255,215, +1,184,1,193,255,215,1,184,1,196, +255,236,1,184,1,199,255,236,1,184, +1,206,255,236,1,184,1,213,255,236, +1,184,1,242,255,236,1,184,2,8, +255,174,1,184,2,12,255,174,1,184, +2,114,255,215,1,184,2,115,255,236, +1,184,2,122,255,236,1,184,2,124, +255,215,1,184,2,128,255,236,1,184, +2,130,255,236,1,184,2,159,255,215, +1,184,2,161,255,236,1,184,2,169, +255,236,1,184,2,181,255,195,1,184, +2,183,255,236,1,184,2,185,255,236, +1,184,2,187,255,215,1,184,2,189, +255,236,1,184,2,191,255,215,1,184, +2,193,255,215,1,184,2,202,255,215, +1,184,2,206,255,215,1,184,2,207, +255,236,1,184,2,212,255,215,1,184, +2,217,255,215,1,184,2,219,255,215, +1,184,2,221,255,215,1,184,2,229, +255,215,1,184,2,231,255,236,1,184, +2,245,255,236,1,184,2,247,255,215, +1,184,2,249,255,215,1,184,2,251, +255,215,1,184,2,253,255,215,1,184, +3,5,255,215,1,184,3,7,255,215, +1,184,3,13,255,215,1,184,3,15, +255,215,1,184,3,17,255,215,1,184, +3,18,255,236,1,184,3,23,255,236, +1,184,3,27,255,215,1,184,3,28, +255,236,1,186,0,15,254,246,1,186, +0,17,254,246,1,186,1,164,255,133, +1,186,1,170,255,154,1,186,1,174, +255,133,1,186,1,176,255,215,1,186, +1,181,255,133,1,186,1,191,255,215, +1,186,1,206,255,154,1,186,1,213, +255,154,1,186,1,242,255,154,1,186, +2,8,254,246,1,186,2,12,254,246, +1,186,2,114,255,154,1,186,2,115, +255,154,1,186,2,118,255,236,1,186, +2,159,255,215,1,186,2,187,255,215, +1,186,2,202,255,215,1,186,2,206, +255,133,1,186,2,207,255,154,1,186, +2,217,255,154,1,186,2,219,255,154, +1,186,2,221,255,154,1,186,2,229, +255,215,1,186,3,5,255,215,1,186, +3,7,255,215,1,186,3,9,255,174, +1,186,3,11,255,174,1,186,3,17, +255,133,1,186,3,18,255,154,1,186, +3,27,255,133,1,186,3,28,255,154, +1,187,1,159,255,215,1,187,1,184, +255,215,1,187,1,187,255,215,1,187, +1,190,255,215,1,187,1,225,255,215, +1,187,2,108,255,215,1,187,2,126, +255,215,1,187,2,132,255,215,1,187, +2,134,255,215,1,187,2,136,255,215, +1,187,2,138,255,215,1,187,2,140, +255,215,1,187,2,177,255,215,1,187, +2,179,255,215,1,187,2,192,255,215, +1,187,2,194,255,215,1,187,2,197, +255,215,1,187,2,199,255,215,1,187, +2,213,255,215,1,187,2,239,255,215, +1,187,2,241,255,215,1,187,2,243, +255,215,1,187,2,254,255,215,1,187, +3,9,255,215,1,187,3,11,255,215, +1,187,3,14,255,215,1,187,3,16, +255,215,1,187,3,21,255,215,1,188, +0,15,255,133,1,188,0,16,255,174, +1,188,0,17,255,133,1,188,1,159, +255,215,1,188,1,164,255,154,1,188, +1,170,255,113,1,188,1,174,255,154, +1,188,1,181,255,154,1,188,1,184, +255,215,1,188,1,187,255,215,1,188, +1,188,0,41,1,188,1,190,255,174, +1,188,1,204,255,154,1,188,1,205, +255,154,1,188,1,206,255,133,1,188, +1,207,255,113,1,188,1,208,255,215, +1,188,1,209,255,215,1,188,1,210, +255,154,1,188,1,211,255,154,1,188, +1,212,255,154,1,188,1,213,255,133, +1,188,1,214,255,154,1,188,1,215, +255,154,1,188,1,216,255,113,1,188, +1,217,255,154,1,188,1,218,255,154, +1,188,1,219,255,113,1,188,1,220, +255,174,1,188,1,221,255,174,1,188, +1,222,255,113,1,188,1,223,255,215, +1,188,1,224,255,154,1,188,1,225, +255,154,1,188,1,226,255,154,1,188, +1,227,255,154,1,188,1,228,255,174, +1,188,1,229,255,154,1,188,1,230, +255,154,1,188,1,231,255,215,1,188, +1,232,255,154,1,188,1,233,255,195, +1,188,1,234,255,113,1,188,1,236, +255,154,1,188,1,237,255,113,1,188, +1,238,255,133,1,188,1,242,255,133, +1,188,1,243,255,154,1,188,1,245, +255,154,1,188,1,246,255,174,1,188, +1,247,255,154,1,188,1,249,255,154, +1,188,2,2,255,174,1,188,2,3, +255,174,1,188,2,4,255,174,1,188, +2,8,255,133,1,188,2,12,255,133, +1,188,2,106,255,113,1,188,2,107, +255,154,1,188,2,108,255,215,1,188, +2,109,255,215,1,188,2,113,255,154, +1,188,2,114,255,113,1,188,2,115, +255,133,1,188,2,117,255,154,1,188, +2,119,255,154,1,188,2,121,255,154, +1,188,2,125,255,154,1,188,2,126, +255,215,1,188,2,127,255,113,1,188, +2,129,255,215,1,188,2,131,255,215, +1,188,2,132,255,215,1,188,2,133, +255,113,1,188,2,134,255,215,1,188, +2,135,255,113,1,188,2,136,255,215, +1,188,2,137,255,113,1,188,2,138, +255,215,1,188,2,139,255,215,1,188, +2,140,255,215,1,188,2,141,255,113, +1,188,2,150,255,154,1,188,2,154, +255,154,1,188,2,158,255,154,1,188, +2,160,255,215,1,188,2,162,255,215, +1,188,2,164,255,154,1,188,2,166, +255,154,1,188,2,170,255,174,1,188, +2,172,255,154,1,188,2,174,255,154, +1,188,2,176,255,154,1,188,2,177, +255,215,1,188,2,178,255,113,1,188, +2,179,255,215,1,188,2,180,255,113, +1,188,2,181,0,41,1,188,2,182, +255,174,1,188,2,184,255,174,1,188, +2,186,255,174,1,188,2,188,255,215, +1,188,2,190,255,174,1,188,2,192, +255,154,1,188,2,194,255,154,1,188, +2,196,255,154,1,188,2,197,255,154, +1,188,2,198,255,113,1,188,2,199, +255,154,1,188,2,200,255,113,1,188, +2,203,255,215,1,188,2,205,255,154, +1,188,2,206,255,154,1,188,2,207, +255,133,1,188,2,209,255,154,1,188, +2,211,255,154,1,188,2,213,255,154, +1,188,2,215,255,154,1,188,2,217, +255,113,1,188,2,219,255,113,1,188, +2,221,255,113,1,188,2,224,255,113, +1,188,2,230,255,215,1,188,2,232, +255,215,1,188,2,234,255,195,1,188, +2,236,255,154,1,188,2,238,255,154, +1,188,2,239,255,215,1,188,2,240, +255,113,1,188,2,241,255,215,1,188, +2,242,255,113,1,188,2,243,255,215, +1,188,2,244,255,113,1,188,2,246, +255,215,1,188,2,248,255,174,1,188, +2,250,255,174,1,188,2,252,255,174, +1,188,2,254,255,154,1,188,3,0, +255,154,1,188,3,2,255,154,1,188, +3,6,255,215,1,188,3,8,255,215, +1,188,3,9,255,113,1,188,3,10, +255,113,1,188,3,11,255,113,1,188, +3,12,255,113,1,188,3,14,255,154, +1,188,3,16,255,154,1,188,3,17, +255,154,1,188,3,18,255,133,1,188, +3,20,255,154,1,188,3,21,255,215, +1,188,3,22,255,113,1,188,3,24, +255,174,1,188,3,26,255,113,1,188, +3,27,255,154,1,188,3,28,255,133, +1,189,0,15,255,133,1,189,0,17, +255,133,1,189,1,159,255,236,1,189, +1,164,255,154,1,189,1,170,255,113, +1,189,1,174,255,154,1,189,1,181, +255,154,1,189,1,184,255,236,1,189, +1,187,255,236,1,189,1,190,255,195, +1,189,1,201,255,236,1,189,1,206, +255,174,1,189,1,207,255,215,1,189, +1,213,255,174,1,189,1,216,255,215, +1,189,1,219,255,215,1,189,1,222, +255,215,1,189,1,225,255,215,1,189, +1,234,255,215,1,189,1,235,0,102, +1,189,1,237,255,215,1,189,1,238, +255,236,1,189,1,242,255,174,1,189, +1,244,0,102,1,189,2,8,255,133, +1,189,2,12,255,133,1,189,2,106, +255,215,1,189,2,108,255,236,1,189, +2,114,255,113,1,189,2,115,255,174, +1,189,2,126,255,236,1,189,2,127, +255,215,1,189,2,132,255,236,1,189, +2,133,255,215,1,189,2,134,255,236, +1,189,2,135,255,215,1,189,2,136, +255,236,1,189,2,137,255,215,1,189, +2,138,255,236,1,189,2,140,255,236, +1,189,2,141,255,215,1,189,2,152, +0,102,1,189,2,168,0,102,1,189, +2,177,255,236,1,189,2,178,255,215, +1,189,2,179,255,236,1,189,2,180, +255,215,1,189,2,192,255,215,1,189, +2,194,255,215,1,189,2,197,255,215, +1,189,2,198,255,195,1,189,2,199, +255,215,1,189,2,200,255,195,1,189, +2,206,255,154,1,189,2,207,255,174, +1,189,2,213,255,215,1,189,2,217, +255,113,1,189,2,219,255,113,1,189, +2,221,255,113,1,189,2,224,255,215, +1,189,2,239,255,236,1,189,2,240, +255,215,1,189,2,241,255,236,1,189, +2,242,255,215,1,189,2,243,255,236, +1,189,2,244,255,215,1,189,2,254, +255,215,1,189,3,9,255,113,1,189, +3,10,255,215,1,189,3,11,255,113, +1,189,3,12,255,215,1,189,3,17, +255,154,1,189,3,18,255,174,1,189, +3,21,255,236,1,189,3,22,255,215, +1,189,3,26,255,215,1,189,3,27, +255,154,1,189,3,28,255,174,1,190, +0,15,255,174,1,190,0,17,255,174, +1,190,1,157,255,215,1,190,1,164, +255,215,1,190,1,166,255,215,1,190, +1,168,255,195,1,190,1,170,255,215, +1,190,1,174,255,215,1,190,1,176, +255,215,1,190,1,177,255,215,1,190, +1,181,255,215,1,190,1,188,255,195, +1,190,1,189,255,195,1,190,1,191, +255,215,1,190,1,196,255,215,1,190, +1,199,255,215,1,190,1,206,255,236, +1,190,1,213,255,236,1,190,1,242, +255,236,1,190,2,8,255,174,1,190, +2,12,255,174,1,190,2,114,255,215, +1,190,2,115,255,236,1,190,2,122, +255,215,1,190,2,128,255,236,1,190, +2,130,255,236,1,190,2,159,255,215, +1,190,2,161,255,215,1,190,2,169, +255,215,1,190,2,181,255,195,1,190, +2,183,255,195,1,190,2,185,255,195, +1,190,2,187,255,215,1,190,2,189, +255,215,1,190,2,202,255,215,1,190, +2,206,255,215,1,190,2,207,255,236, +1,190,2,217,255,215,1,190,2,219, +255,215,1,190,2,221,255,215,1,190, +2,229,255,215,1,190,2,231,255,215, +1,190,2,245,255,215,1,190,2,247, +255,195,1,190,2,249,255,195,1,190, +2,251,255,195,1,190,3,5,255,215, +1,190,3,7,255,215,1,190,3,13, +255,215,1,190,3,15,255,215,1,190, +3,17,255,215,1,190,3,18,255,236, +1,190,3,23,255,215,1,190,3,27, +255,215,1,190,3,28,255,236,1,191, +1,159,255,215,1,191,1,184,255,215, +1,191,1,187,255,215,1,191,1,190, +255,215,1,191,1,193,255,215,1,191, +1,225,255,215,1,191,2,108,255,215, +1,191,2,124,255,215,1,191,2,126, +255,215,1,191,2,132,255,215,1,191, +2,134,255,215,1,191,2,136,255,215, +1,191,2,138,255,215,1,191,2,140, +255,215,1,191,2,177,255,215,1,191, +2,179,255,215,1,191,2,191,255,215, +1,191,2,192,255,215,1,191,2,193, +255,215,1,191,2,194,255,215,1,191, +2,197,255,154,1,191,2,199,255,154, +1,191,2,212,255,215,1,191,2,213, +255,215,1,191,2,239,255,215,1,191, +2,241,255,215,1,191,2,243,255,215, +1,191,2,253,255,215,1,191,2,254, +255,215,1,191,3,9,255,215,1,191, +3,11,255,215,1,191,3,14,255,215, +1,191,3,16,255,215,1,191,3,21, +255,215,1,191,3,25,255,236,1,192, +1,163,0,225,1,192,2,234,0,41, +1,192,3,14,255,215,1,192,3,16, +255,215,1,195,1,163,0,225,1,195, +2,234,0,41,1,195,3,14,255,215, +1,195,3,16,255,215,1,196,0,5, +255,174,1,196,0,10,255,174,1,196, +1,157,255,133,1,196,1,166,255,133, +1,196,1,168,255,215,1,196,1,188, +255,154,1,196,1,189,255,215,1,196, +1,193,255,154,1,196,1,196,255,133, +1,196,1,220,255,215,1,196,1,221, +255,215,1,196,1,225,255,215,1,196, +1,228,255,215,1,196,1,246,255,215, +1,196,2,7,255,174,1,196,2,11, +255,174,1,196,2,110,255,174,1,196, +2,124,255,154,1,196,2,128,255,174, +1,196,2,130,255,174,1,196,2,151, +255,174,1,196,2,155,255,174,1,196, +2,167,255,174,1,196,2,169,255,133, +1,196,2,170,255,215,1,196,2,181, +255,154,1,196,2,182,255,215,1,196, +2,183,255,154,1,196,2,184,255,215, +1,196,2,185,255,154,1,196,2,186, +255,215,1,196,2,189,255,133,1,196, +2,190,255,215,1,196,2,191,255,154, +1,196,2,192,255,215,1,196,2,193, +255,154,1,196,2,194,255,215,1,196, +2,212,255,154,1,196,2,213,255,215, +1,196,2,247,255,215,1,196,2,248, +255,215,1,196,2,249,255,215,1,196, +2,250,255,215,1,196,2,251,255,215, +1,196,2,252,255,215,1,196,2,253, +255,154,1,196,2,254,255,215,1,196, +3,3,255,174,1,196,3,13,255,154, +1,196,3,14,255,195,1,196,3,15, +255,154,1,196,3,16,255,195,1,196, +3,23,255,133,1,196,3,24,255,215, +1,198,0,5,255,174,1,198,0,10, +255,174,1,198,1,157,255,133,1,198, +1,166,255,133,1,198,1,168,255,215, +1,198,1,188,255,154,1,198,1,189, +255,215,1,198,1,193,255,154,1,198, +1,196,255,133,1,198,1,220,255,215, +1,198,1,221,255,215,1,198,1,225, +255,215,1,198,1,228,255,215,1,198, +1,246,255,215,1,198,2,7,255,174, +1,198,2,11,255,174,1,198,2,110, +255,174,1,198,2,124,255,154,1,198, +2,128,255,174,1,198,2,130,255,174, +1,198,2,151,255,174,1,198,2,155, +255,174,1,198,2,167,255,174,1,198, +2,169,255,133,1,198,2,170,255,215, +1,198,2,181,255,154,1,198,2,182, +255,215,1,198,2,183,255,154,1,198, +2,184,255,215,1,198,2,185,255,154, +1,198,2,186,255,215,1,198,2,189, +255,133,1,198,2,190,255,215,1,198, +2,191,255,154,1,198,2,192,255,215, +1,198,2,193,255,154,1,198,2,194, +255,215,1,198,2,212,255,154,1,198, +2,213,255,215,1,198,2,247,255,215, +1,198,2,248,255,215,1,198,2,249, +255,215,1,198,2,250,255,215,1,198, +2,251,255,215,1,198,2,252,255,215, +1,198,2,253,255,154,1,198,2,254, +255,215,1,198,3,3,255,174,1,198, +3,13,255,154,1,198,3,14,255,195, +1,198,3,15,255,154,1,198,3,16, +255,195,1,198,3,23,255,133,1,198, +3,24,255,215,1,199,0,15,255,174, +1,199,0,17,255,174,1,199,1,157, +255,236,1,199,1,164,255,215,1,199, +1,166,255,236,1,199,1,168,255,215, +1,199,1,170,255,215,1,199,1,174, +255,215,1,199,1,176,255,215,1,199, +1,177,255,236,1,199,1,181,255,215, +1,199,1,188,255,195,1,199,1,189, +255,215,1,199,1,191,255,215,1,199, +1,193,255,215,1,199,1,196,255,236, +1,199,1,199,255,236,1,199,1,206, +255,236,1,199,1,213,255,236,1,199, +1,242,255,236,1,199,2,8,255,174, +1,199,2,12,255,174,1,199,2,114, +255,215,1,199,2,115,255,236,1,199, +2,122,255,236,1,199,2,124,255,215, +1,199,2,128,255,236,1,199,2,130, +255,236,1,199,2,159,255,215,1,199, +2,161,255,236,1,199,2,169,255,236, +1,199,2,181,255,195,1,199,2,183, +255,236,1,199,2,185,255,236,1,199, +2,187,255,215,1,199,2,189,255,236, +1,199,2,191,255,215,1,199,2,193, +255,215,1,199,2,202,255,215,1,199, +2,206,255,215,1,199,2,207,255,236, +1,199,2,212,255,215,1,199,2,217, +255,215,1,199,2,219,255,215,1,199, +2,221,255,215,1,199,2,229,255,215, +1,199,2,231,255,236,1,199,2,245, +255,236,1,199,2,247,255,215,1,199, +2,249,255,215,1,199,2,251,255,215, +1,199,2,253,255,215,1,199,3,5, +255,215,1,199,3,7,255,215,1,199, +3,13,255,215,1,199,3,15,255,215, +1,199,3,17,255,215,1,199,3,18, +255,236,1,199,3,23,255,236,1,199, +3,27,255,215,1,199,3,28,255,236, +1,200,0,15,255,174,1,200,0,17, +255,174,1,200,1,157,255,236,1,200, +1,164,255,215,1,200,1,166,255,236, +1,200,1,168,255,215,1,200,1,170, +255,215,1,200,1,174,255,215,1,200, +1,176,255,215,1,200,1,177,255,236, +1,200,1,181,255,215,1,200,1,188, +255,195,1,200,1,189,255,215,1,200, +1,191,255,215,1,200,1,193,255,215, +1,200,1,196,255,236,1,200,1,199, +255,236,1,200,1,206,255,236,1,200, +1,213,255,236,1,200,1,242,255,236, +1,200,2,8,255,174,1,200,2,12, +255,174,1,200,2,114,255,215,1,200, +2,115,255,236,1,200,2,122,255,236, +1,200,2,124,255,215,1,200,2,128, +255,236,1,200,2,130,255,236,1,200, +2,159,255,215,1,200,2,161,255,236, +1,200,2,169,255,236,1,200,2,181, +255,195,1,200,2,183,255,236,1,200, +2,185,255,236,1,200,2,187,255,215, +1,200,2,189,255,236,1,200,2,191, +255,215,1,200,2,193,255,215,1,200, +2,202,255,215,1,200,2,206,255,215, +1,200,2,207,255,236,1,200,2,212, +255,215,1,200,2,217,255,215,1,200, +2,219,255,215,1,200,2,221,255,215, +1,200,2,229,255,215,1,200,2,231, +255,236,1,200,2,245,255,236,1,200, +2,247,255,215,1,200,2,249,255,215, +1,200,2,251,255,215,1,200,2,253, +255,215,1,200,3,5,255,215,1,200, +3,7,255,215,1,200,3,13,255,215, +1,200,3,15,255,215,1,200,3,17, +255,215,1,200,3,18,255,236,1,200, +3,23,255,236,1,200,3,27,255,215, +1,200,3,28,255,236,1,202,0,5, +255,236,1,202,0,10,255,236,1,202, +2,7,255,236,1,202,2,11,255,236, +1,204,1,233,0,41,1,205,0,15, +255,154,1,205,0,16,255,215,1,205, +0,17,255,154,1,205,1,206,255,195, +1,205,1,207,255,236,1,205,1,213, +255,195,1,205,1,216,255,236,1,205, +1,219,255,236,1,205,1,222,255,236, +1,205,1,234,255,236,1,205,1,237, +255,236,1,205,1,242,255,195,1,205, +2,2,255,215,1,205,2,3,255,215, +1,205,2,4,255,215,1,205,2,8, +255,154,1,205,2,12,255,154,1,205, +2,106,255,236,1,205,2,115,255,195, +1,205,2,127,255,236,1,205,2,133, +255,236,1,205,2,135,255,236,1,205, +2,137,255,236,1,205,2,141,255,236, +1,205,2,178,255,236,1,205,2,180, +255,236,1,205,2,207,255,195,1,205, +2,224,255,236,1,205,2,240,255,236, +1,205,2,242,255,236,1,205,2,244, +255,236,1,205,3,10,255,236,1,205, +3,12,255,236,1,205,3,18,255,195, +1,205,3,22,255,236,1,205,3,26, +255,236,1,205,3,28,255,195,1,206, +0,5,255,236,1,206,0,10,255,236, +1,206,2,7,255,236,1,206,2,11, +255,236,1,207,0,5,255,236,1,207, +0,10,255,236,1,207,2,7,255,236, +1,207,2,11,255,236,1,208,1,207, +255,215,1,208,1,216,255,215,1,208, +1,219,255,215,1,208,1,222,255,215, +1,208,1,225,255,215,1,208,1,234, +255,215,1,208,1,237,255,215,1,208, +2,106,255,215,1,208,2,127,255,215, +1,208,2,133,255,215,1,208,2,135, +255,215,1,208,2,137,255,215,1,208, +2,141,255,215,1,208,2,178,255,215, +1,208,2,180,255,215,1,208,2,192, +255,215,1,208,2,194,255,215,1,208, +2,198,255,215,1,208,2,200,255,215, +1,208,2,213,255,215,1,208,2,224, +255,215,1,208,2,240,255,215,1,208, +2,242,255,215,1,208,2,244,255,215, +1,208,2,254,255,215,1,208,3,10, +255,215,1,208,3,12,255,215,1,208, +3,22,255,215,1,208,3,26,255,215, +1,209,1,233,0,41,1,212,1,207, +255,215,1,212,1,216,255,215,1,212, +1,219,255,215,1,212,1,222,255,215, +1,212,1,225,255,215,1,212,1,234, +255,215,1,212,1,237,255,215,1,212, +2,106,255,215,1,212,2,127,255,215, +1,212,2,133,255,215,1,212,2,135, +255,215,1,212,2,137,255,215,1,212, +2,141,255,215,1,212,2,178,255,215, +1,212,2,180,255,215,1,212,2,192, +255,215,1,212,2,194,255,215,1,212, +2,198,255,215,1,212,2,200,255,215, +1,212,2,213,255,215,1,212,2,224, +255,215,1,212,2,240,255,215,1,212, +2,242,255,215,1,212,2,244,255,215, +1,212,2,254,255,215,1,212,3,10, +255,215,1,212,3,12,255,215,1,212, +3,22,255,215,1,212,3,26,255,215, +1,216,0,5,255,236,1,216,0,10, +255,236,1,216,1,208,255,215,1,216, +1,220,255,236,1,216,1,221,255,236, +1,216,1,223,255,215,1,216,1,225, +255,236,1,216,1,228,255,236,1,216, +1,246,255,236,1,216,2,7,255,236, +1,216,2,11,255,236,1,216,2,160, +255,215,1,216,2,170,255,236,1,216, +2,182,255,236,1,216,2,188,255,215, +1,216,2,190,255,236,1,216,2,192, +255,236,1,216,2,194,255,236,1,216, +2,203,255,215,1,216,2,213,255,236, +1,216,2,230,255,215,1,216,2,248, +255,236,1,216,2,250,255,236,1,216, +2,252,255,236,1,216,2,254,255,236, +1,216,3,6,255,215,1,216,3,8, +255,215,1,216,3,14,255,236,1,216, +3,16,255,236,1,216,3,24,255,236, +1,218,0,5,255,236,1,218,0,10, +255,236,1,218,1,208,255,215,1,218, +1,220,255,236,1,218,1,221,255,236, +1,218,1,223,255,215,1,218,1,225, +255,236,1,218,1,228,255,236,1,218, +1,246,255,236,1,218,2,7,255,236, +1,218,2,11,255,236,1,218,2,160, +255,215,1,218,2,170,255,236,1,218, +2,182,255,236,1,218,2,188,255,215, +1,218,2,190,255,236,1,218,2,192, +255,236,1,218,2,194,255,236,1,218, +2,203,255,215,1,218,2,213,255,236, +1,218,2,230,255,215,1,218,2,248, +255,236,1,218,2,250,255,236,1,218, +2,252,255,236,1,218,2,254,255,236, +1,218,3,6,255,215,1,218,3,8, +255,215,1,218,3,14,255,236,1,218, +3,16,255,236,1,218,3,24,255,236, +1,220,0,15,255,154,1,220,0,16, +255,215,1,220,0,17,255,154,1,220, +1,206,255,195,1,220,1,207,255,236, +1,220,1,213,255,195,1,220,1,216, +255,236,1,220,1,219,255,236,1,220, +1,222,255,236,1,220,1,234,255,236, +1,220,1,237,255,236,1,220,1,242, +255,195,1,220,2,2,255,215,1,220, +2,3,255,215,1,220,2,4,255,215, +1,220,2,8,255,154,1,220,2,12, +255,154,1,220,2,106,255,236,1,220, +2,115,255,195,1,220,2,127,255,236, +1,220,2,133,255,236,1,220,2,135, +255,236,1,220,2,137,255,236,1,220, +2,141,255,236,1,220,2,178,255,236, +1,220,2,180,255,236,1,220,2,207, +255,195,1,220,2,224,255,236,1,220, +2,240,255,236,1,220,2,242,255,236, +1,220,2,244,255,236,1,220,3,10, +255,236,1,220,3,12,255,236,1,220, +3,18,255,195,1,220,3,22,255,236, +1,220,3,26,255,236,1,220,3,28, +255,195,1,221,0,15,255,174,1,221, +0,17,255,174,1,221,1,206,255,215, +1,221,1,213,255,215,1,221,1,242, +255,215,1,221,2,8,255,174,1,221, +2,12,255,174,1,221,2,115,255,215, +1,221,2,207,255,215,1,221,3,18, +255,215,1,221,3,28,255,215,1,222, +0,5,255,236,1,222,0,10,255,236, +1,222,1,208,255,215,1,222,1,220, +255,236,1,222,1,221,255,236,1,222, +1,223,255,215,1,222,1,225,255,236, +1,222,1,228,255,236,1,222,1,246, +255,236,1,222,2,7,255,236,1,222, +2,11,255,236,1,222,2,160,255,215, +1,222,2,170,255,236,1,222,2,182, +255,236,1,222,2,188,255,215,1,222, +2,190,255,236,1,222,2,192,255,236, +1,222,2,194,255,236,1,222,2,203, +255,215,1,222,2,213,255,236,1,222, +2,230,255,215,1,222,2,248,255,236, +1,222,2,250,255,236,1,222,2,252, +255,236,1,222,2,254,255,236,1,222, +3,6,255,215,1,222,3,8,255,215, +1,222,3,14,255,236,1,222,3,16, +255,236,1,222,3,24,255,236,1,223, +1,207,255,215,1,223,1,216,255,215, +1,223,1,219,255,215,1,223,1,222, +255,215,1,223,1,225,255,215,1,223, +1,234,255,215,1,223,1,237,255,215, +1,223,2,106,255,215,1,223,2,127, +255,215,1,223,2,133,255,215,1,223, +2,135,255,215,1,223,2,137,255,215, +1,223,2,141,255,215,1,223,2,178, +255,215,1,223,2,180,255,215,1,223, +2,192,255,215,1,223,2,194,255,215, +1,223,2,198,255,215,1,223,2,200, +255,215,1,223,2,213,255,215,1,223, +2,224,255,215,1,223,2,240,255,215, +1,223,2,242,255,215,1,223,2,244, +255,215,1,223,2,254,255,215,1,223, +3,10,255,215,1,223,3,12,255,215, +1,223,3,22,255,215,1,223,3,26, +255,215,1,224,0,5,255,236,1,224, +0,10,255,236,1,224,2,7,255,236, +1,224,2,11,255,236,1,227,0,5, +255,236,1,227,0,10,255,236,1,227, +2,7,255,236,1,227,2,11,255,236, +1,228,0,5,255,133,1,228,0,10, +255,133,1,228,1,208,255,215,1,228, +1,220,255,154,1,228,1,221,255,195, +1,228,1,223,255,215,1,228,1,225, +255,174,1,228,1,228,255,154,1,228, +1,246,255,195,1,228,2,7,255,133, +1,228,2,11,255,133,1,228,2,109, +255,215,1,228,2,129,255,215,1,228, +2,131,255,215,1,228,2,139,255,215, +1,228,2,160,255,215,1,228,2,170, +255,154,1,228,2,182,255,154,1,228, +2,184,255,195,1,228,2,186,255,195, +1,228,2,188,255,215,1,228,2,190, +255,154,1,228,2,192,255,174,1,228, +2,194,255,174,1,228,2,198,255,215, +1,228,2,200,255,215,1,228,2,203, +255,215,1,228,2,213,255,174,1,228, +2,230,255,215,1,228,2,234,255,215, +1,228,2,248,255,195,1,228,2,250, +255,195,1,228,2,252,255,195,1,228, +2,254,255,174,1,228,3,6,255,215, +1,228,3,8,255,215,1,228,3,14, +255,154,1,228,3,16,255,154,1,228, +3,24,255,154,1,230,0,5,255,133, +1,230,0,10,255,133,1,230,1,208, +255,215,1,230,1,220,255,154,1,230, +1,221,255,195,1,230,1,223,255,215, +1,230,1,225,255,174,1,230,1,228, +255,154,1,230,1,246,255,195,1,230, +2,7,255,133,1,230,2,11,255,133, +1,230,2,109,255,215,1,230,2,129, +255,215,1,230,2,131,255,215,1,230, +2,139,255,215,1,230,2,160,255,215, +1,230,2,170,255,154,1,230,2,182, +255,154,1,230,2,184,255,195,1,230, +2,186,255,195,1,230,2,188,255,215, +1,230,2,190,255,154,1,230,2,192, +255,174,1,230,2,194,255,174,1,230, +2,198,255,215,1,230,2,200,255,215, +1,230,2,203,255,215,1,230,2,213, +255,174,1,230,2,230,255,215,1,230, +2,234,255,215,1,230,2,248,255,195, +1,230,2,250,255,195,1,230,2,252, +255,195,1,230,2,254,255,174,1,230, +3,6,255,215,1,230,3,8,255,215, +1,230,3,14,255,154,1,230,3,16, +255,154,1,230,3,24,255,154,1,231, +0,5,255,236,1,231,0,10,255,236, +1,231,1,208,255,215,1,231,1,220, +255,236,1,231,1,221,255,236,1,231, +1,223,255,215,1,231,1,225,255,236, +1,231,1,228,255,236,1,231,1,246, +255,236,1,231,2,7,255,236,1,231, +2,11,255,236,1,231,2,160,255,215, +1,231,2,170,255,236,1,231,2,182, +255,236,1,231,2,188,255,215,1,231, +2,190,255,236,1,231,2,192,255,236, +1,231,2,194,255,236,1,231,2,203, +255,215,1,231,2,213,255,236,1,231, +2,230,255,215,1,231,2,248,255,236, +1,231,2,250,255,236,1,231,2,252, +255,236,1,231,2,254,255,236,1,231, +3,6,255,215,1,231,3,8,255,215, +1,231,3,14,255,236,1,231,3,16, +255,236,1,231,3,24,255,236,1,232, +0,5,255,236,1,232,0,10,255,236, +1,232,1,208,255,215,1,232,1,220, +255,236,1,232,1,221,255,236,1,232, +1,223,255,215,1,232,1,225,255,236, +1,232,1,228,255,236,1,232,1,246, +255,236,1,232,2,7,255,236,1,232, +2,11,255,236,1,232,2,160,255,215, +1,232,2,170,255,236,1,232,2,182, +255,236,1,232,2,188,255,215,1,232, +2,190,255,236,1,232,2,192,255,236, +1,232,2,194,255,236,1,232,2,203, +255,215,1,232,2,213,255,236,1,232, +2,230,255,215,1,232,2,248,255,236, +1,232,2,250,255,236,1,232,2,252, +255,236,1,232,2,254,255,236,1,232, +3,6,255,215,1,232,3,8,255,215, +1,232,3,14,255,236,1,232,3,16, +255,236,1,232,3,24,255,236,1,234, +0,5,255,236,1,234,0,10,255,236, +1,234,2,7,255,236,1,234,2,11, +255,236,1,235,0,5,255,236,1,235, +0,10,255,236,1,235,2,7,255,236, +1,235,2,11,255,236,1,235,3,14, +255,215,1,235,3,16,255,215,1,236, +0,15,255,154,1,236,0,16,255,215, +1,236,0,17,255,154,1,236,1,206, +255,195,1,236,1,207,255,236,1,236, +1,213,255,195,1,236,1,216,255,236, +1,236,1,219,255,236,1,236,1,222, +255,236,1,236,1,234,255,236,1,236, +1,237,255,236,1,236,1,242,255,195, +1,236,2,2,255,215,1,236,2,3, +255,215,1,236,2,4,255,215,1,236, +2,8,255,154,1,236,2,12,255,154, +1,236,2,106,255,236,1,236,2,115, +255,195,1,236,2,127,255,236,1,236, +2,133,255,236,1,236,2,135,255,236, +1,236,2,137,255,236,1,236,2,141, +255,236,1,236,2,178,255,236,1,236, +2,180,255,236,1,236,2,207,255,195, +1,236,2,224,255,236,1,236,2,240, +255,236,1,236,2,242,255,236,1,236, +2,244,255,236,1,236,3,10,255,236, +1,236,3,12,255,236,1,236,3,18, +255,195,1,236,3,22,255,236,1,236, +3,26,255,236,1,236,3,28,255,195, +1,242,0,5,255,133,1,242,0,10, +255,133,1,242,1,208,255,215,1,242, +1,220,255,154,1,242,1,221,255,195, +1,242,1,223,255,215,1,242,1,225, +255,174,1,242,1,228,255,154,1,242, +1,246,255,195,1,242,2,7,255,133, +1,242,2,11,255,133,1,242,2,109, +255,215,1,242,2,129,255,215,1,242, +2,131,255,215,1,242,2,139,255,215, +1,242,2,160,255,215,1,242,2,170, +255,154,1,242,2,182,255,154,1,242, +2,184,255,195,1,242,2,186,255,195, +1,242,2,188,255,215,1,242,2,190, +255,154,1,242,2,192,255,174,1,242, +2,194,255,174,1,242,2,198,255,215, +1,242,2,200,255,215,1,242,2,203, +255,215,1,242,2,213,255,174,1,242, +2,230,255,215,1,242,2,234,255,215, +1,242,2,248,255,195,1,242,2,250, +255,195,1,242,2,252,255,195,1,242, +2,254,255,174,1,242,3,6,255,215, +1,242,3,8,255,215,1,242,3,14, +255,154,1,242,3,16,255,154,1,242, +3,24,255,154,1,243,0,5,255,133, +1,243,0,10,255,133,1,243,1,208, +255,215,1,243,1,220,255,154,1,243, +1,221,255,195,1,243,1,223,255,215, +1,243,1,225,255,174,1,243,1,228, +255,154,1,243,1,246,255,195,1,243, +2,7,255,133,1,243,2,11,255,133, +1,243,2,109,255,215,1,243,2,129, +255,215,1,243,2,131,255,215,1,243, +2,139,255,215,1,243,2,160,255,215, +1,243,2,170,255,154,1,243,2,182, +255,154,1,243,2,184,255,195,1,243, +2,186,255,195,1,243,2,188,255,215, +1,243,2,190,255,154,1,243,2,192, +255,174,1,243,2,194,255,174,1,243, +2,198,255,215,1,243,2,200,255,215, +1,243,2,203,255,215,1,243,2,213, +255,174,1,243,2,230,255,215,1,243, +2,234,255,215,1,243,2,248,255,195, +1,243,2,250,255,195,1,243,2,252, +255,195,1,243,2,254,255,174,1,243, +3,6,255,215,1,243,3,8,255,215, +1,243,3,14,255,154,1,243,3,16, +255,154,1,243,3,24,255,154,1,244, +0,5,255,236,1,244,0,10,255,236, +1,244,2,7,255,236,1,244,2,11, +255,236,1,244,3,14,255,215,1,244, +3,16,255,215,1,245,1,207,255,215, +1,245,1,216,255,215,1,245,1,219, +255,215,1,245,1,222,255,215,1,245, +1,225,255,215,1,245,1,234,255,215, +1,245,1,237,255,215,1,245,2,106, +255,215,1,245,2,127,255,215,1,245, +2,133,255,215,1,245,2,135,255,215, +1,245,2,137,255,215,1,245,2,141, +255,215,1,245,2,178,255,215,1,245, +2,180,255,215,1,245,2,192,255,215, +1,245,2,194,255,215,1,245,2,198, +255,215,1,245,2,200,255,215,1,245, +2,213,255,215,1,245,2,224,255,215, +1,245,2,240,255,215,1,245,2,242, +255,215,1,245,2,244,255,215,1,245, +2,254,255,215,1,245,3,10,255,215, +1,245,3,12,255,215,1,245,3,22, +255,215,1,245,3,26,255,215,1,246, +0,15,255,174,1,246,0,17,255,174, +1,246,1,206,255,215,1,246,1,213, +255,215,1,246,1,242,255,215,1,246, +2,8,255,174,1,246,2,12,255,174, +1,246,2,115,255,215,1,246,2,207, +255,215,1,246,3,18,255,215,1,246, +3,28,255,215,1,248,0,15,255,133, +1,248,0,16,255,174,1,248,0,17, +255,133,1,248,1,159,255,215,1,248, +1,164,255,154,1,248,1,170,255,113, +1,248,1,174,255,154,1,248,1,181, +255,154,1,248,1,184,255,215,1,248, +1,187,255,215,1,248,1,188,0,41, +1,248,1,190,255,174,1,248,1,204, +255,154,1,248,1,205,255,154,1,248, +1,206,255,133,1,248,1,207,255,113, +1,248,1,208,255,215,1,248,1,209, +255,215,1,248,1,210,255,154,1,248, +1,211,255,154,1,248,1,212,255,154, +1,248,1,213,255,133,1,248,1,214, +255,154,1,248,1,215,255,154,1,248, +1,216,255,113,1,248,1,217,255,154, +1,248,1,218,255,154,1,248,1,219, +255,113,1,248,1,220,255,174,1,248, +1,221,255,174,1,248,1,222,255,113, +1,248,1,223,255,215,1,248,1,224, +255,154,1,248,1,225,255,154,1,248, +1,226,255,154,1,248,1,227,255,154, +1,248,1,228,255,174,1,248,1,229, +255,154,1,248,1,230,255,154,1,248, +1,231,255,215,1,248,1,232,255,154, +1,248,1,233,255,195,1,248,1,234, +255,113,1,248,1,236,255,154,1,248, +1,237,255,113,1,248,1,238,255,133, +1,248,1,242,255,133,1,248,1,243, +255,154,1,248,1,245,255,154,1,248, +1,246,255,174,1,248,1,247,255,154, +1,248,1,249,255,154,1,248,2,2, +255,174,1,248,2,3,255,174,1,248, +2,4,255,174,1,248,2,8,255,133, +1,248,2,12,255,133,1,248,2,106, +255,113,1,248,2,107,255,154,1,248, +2,108,255,215,1,248,2,109,255,215, +1,248,2,113,255,154,1,248,2,114, +255,113,1,248,2,115,255,133,1,248, +2,117,255,154,1,248,2,119,255,154, +1,248,2,121,255,154,1,248,2,125, +255,154,1,248,2,126,255,215,1,248, +2,127,255,113,1,248,2,129,255,215, +1,248,2,131,255,215,1,248,2,132, +255,215,1,248,2,133,255,113,1,248, +2,134,255,215,1,248,2,135,255,113, +1,248,2,136,255,215,1,248,2,137, +255,113,1,248,2,138,255,215,1,248, +2,139,255,215,1,248,2,140,255,215, +1,248,2,141,255,113,1,248,2,150, +255,154,1,248,2,154,255,154,1,248, +2,158,255,154,1,248,2,160,255,215, +1,248,2,162,255,215,1,248,2,164, +255,154,1,248,2,166,255,154,1,248, +2,170,255,174,1,248,2,172,255,154, +1,248,2,174,255,154,1,248,2,176, +255,154,1,248,2,177,255,215,1,248, +2,178,255,113,1,248,2,179,255,215, +1,248,2,180,255,113,1,248,2,181, +0,41,1,248,2,182,255,174,1,248, +2,184,255,174,1,248,2,186,255,174, +1,248,2,188,255,215,1,248,2,190, +255,174,1,248,2,192,255,154,1,248, +2,194,255,154,1,248,2,196,255,154, +1,248,2,197,255,154,1,248,2,198, +255,113,1,248,2,199,255,154,1,248, +2,200,255,113,1,248,2,203,255,215, +1,248,2,205,255,154,1,248,2,206, +255,154,1,248,2,207,255,133,1,248, +2,209,255,154,1,248,2,211,255,154, +1,248,2,213,255,154,1,248,2,215, +255,154,1,248,2,217,255,113,1,248, +2,219,255,113,1,248,2,221,255,113, +1,248,2,224,255,113,1,248,2,230, +255,215,1,248,2,232,255,215,1,248, +2,234,255,195,1,248,2,236,255,154, +1,248,2,238,255,154,1,248,2,239, +255,215,1,248,2,240,255,113,1,248, +2,241,255,215,1,248,2,242,255,113, +1,248,2,243,255,215,1,248,2,244, +255,113,1,248,2,246,255,215,1,248, +2,248,255,174,1,248,2,250,255,174, +1,248,2,252,255,174,1,248,2,254, +255,154,1,248,3,0,255,154,1,248, +3,2,255,154,1,248,3,6,255,215, +1,248,3,8,255,215,1,248,3,9, +255,113,1,248,3,10,255,113,1,248, +3,11,255,113,1,248,3,12,255,113, +1,248,3,14,255,154,1,248,3,16, +255,154,1,248,3,17,255,154,1,248, +3,18,255,133,1,248,3,20,255,154, +1,248,3,21,255,215,1,248,3,22, +255,113,1,248,3,24,255,174,1,248, +3,26,255,113,1,248,3,27,255,154, +1,248,3,28,255,133,1,249,0,15, +255,154,1,249,0,16,255,215,1,249, +0,17,255,154,1,249,1,206,255,195, +1,249,1,207,255,236,1,249,1,213, +255,195,1,249,1,216,255,236,1,249, +1,219,255,236,1,249,1,222,255,236, +1,249,1,234,255,236,1,249,1,237, +255,236,1,249,1,242,255,195,1,249, +2,2,255,215,1,249,2,3,255,215, +1,249,2,4,255,215,1,249,2,8, +255,154,1,249,2,12,255,154,1,249, +2,106,255,236,1,249,2,115,255,195, +1,249,2,127,255,236,1,249,2,133, +255,236,1,249,2,135,255,236,1,249, +2,137,255,236,1,249,2,141,255,236, +1,249,2,178,255,236,1,249,2,180, +255,236,1,249,2,207,255,195,1,249, +2,224,255,236,1,249,2,240,255,236, +1,249,2,242,255,236,1,249,2,244, +255,236,1,249,3,10,255,236,1,249, +3,12,255,236,1,249,3,18,255,195, +1,249,3,22,255,236,1,249,3,26, +255,236,1,249,3,28,255,195,1,250, +0,15,255,154,1,250,0,17,255,154, +1,250,0,34,0,41,1,250,0,36, +255,174,1,250,0,38,255,236,1,250, +0,42,255,236,1,250,0,50,255,236, +1,250,0,52,255,236,1,250,0,68, +255,215,1,250,0,70,255,215,1,250, +0,71,255,215,1,250,0,72,255,215, +1,250,0,74,255,236,1,250,0,80, +255,236,1,250,0,81,255,236,1,250, +0,82,255,215,1,250,0,83,255,236, +1,250,0,84,255,215,1,250,0,85, +255,236,1,250,0,86,255,236,1,250, +0,88,255,236,1,250,0,130,255,174, +1,250,0,131,255,174,1,250,0,132, +255,174,1,250,0,133,255,174,1,250, +0,134,255,174,1,250,0,135,255,174, +1,250,0,137,255,236,1,250,0,148, +255,236,1,250,0,149,255,236,1,250, +0,150,255,236,1,250,0,151,255,236, +1,250,0,152,255,236,1,250,0,154, +255,236,1,250,0,162,255,215,1,250, +0,163,255,215,1,250,0,164,255,215, +1,250,0,165,255,215,1,250,0,166, +255,215,1,250,0,167,255,215,1,250, +0,168,255,215,1,250,0,169,255,215, +1,250,0,170,255,215,1,250,0,171, +255,215,1,250,0,172,255,215,1,250, +0,173,255,215,1,250,0,180,255,215, +1,250,0,181,255,215,1,250,0,182, +255,215,1,250,0,183,255,215,1,250, +0,184,255,215,1,250,0,186,255,215, +1,250,0,187,255,236,1,250,0,188, +255,236,1,250,0,189,255,236,1,250, +0,190,255,236,1,250,0,194,255,174, +1,250,0,195,255,215,1,250,0,196, +255,174,1,250,0,197,255,215,1,250, +0,198,255,174,1,250,0,199,255,215, +1,250,0,200,255,236,1,250,0,201, +255,215,1,250,0,202,255,236,1,250, +0,203,255,215,1,250,0,204,255,236, +1,250,0,205,255,215,1,250,0,206, +255,236,1,250,0,207,255,215,1,250, +0,209,255,215,1,250,0,211,255,215, +1,250,0,213,255,215,1,250,0,215, +255,215,1,250,0,217,255,215,1,250, +0,219,255,215,1,250,0,221,255,215, +1,250,0,222,255,236,1,250,0,223, +255,236,1,250,0,224,255,236,1,250, +0,225,255,236,1,250,0,226,255,236, +1,250,0,227,255,236,1,250,0,228, +255,236,1,250,0,229,255,236,1,250, +0,250,255,236,1,250,1,6,255,236, +1,250,1,8,255,236,1,250,1,13, +255,236,1,250,1,14,255,236,1,250, +1,15,255,215,1,250,1,16,255,236, +1,250,1,17,255,215,1,250,1,18, +255,236,1,250,1,19,255,215,1,250, +1,20,255,236,1,250,1,21,255,215, +1,250,1,23,255,236,1,250,1,25, +255,236,1,250,1,29,255,236,1,250, +1,33,255,236,1,250,1,43,255,236, +1,250,1,45,255,236,1,250,1,47, +255,236,1,250,1,49,255,236,1,250, +1,51,255,236,1,250,1,53,255,236, +1,250,1,67,255,174,1,250,1,68, +255,215,1,250,1,70,255,215,1,250, +1,71,255,236,1,250,1,72,255,215, +1,250,1,74,255,236,1,250,2,8, +255,154,1,250,2,12,255,154,1,250, +2,87,255,236,1,250,2,88,255,174, +1,250,2,89,255,215,1,250,2,95, +255,236,1,250,2,96,255,215,1,250, +2,98,255,236,1,250,3,29,255,174, +1,250,3,30,255,215,1,250,3,31, +255,174,1,250,3,32,255,215,1,250, +3,33,255,174,1,250,3,34,255,215, +1,250,3,35,255,174,1,250,3,37, +255,174,1,250,3,38,255,215,1,250, +3,39,255,174,1,250,3,40,255,215, +1,250,3,41,255,174,1,250,3,42, +255,215,1,250,3,43,255,174,1,250, +3,44,255,215,1,250,3,45,255,174, +1,250,3,46,255,215,1,250,3,47, +255,174,1,250,3,48,255,215,1,250, +3,49,255,174,1,250,3,50,255,215, +1,250,3,51,255,174,1,250,3,52, +255,215,1,250,3,54,255,215,1,250, +3,56,255,215,1,250,3,58,255,215, +1,250,3,60,255,215,1,250,3,64, +255,215,1,250,3,66,255,215,1,250, +3,68,255,215,1,250,3,73,255,236, +1,250,3,74,255,215,1,250,3,75, +255,236,1,250,3,76,255,215,1,250, +3,77,255,236,1,250,3,78,255,215, +1,250,3,79,255,236,1,250,3,81, +255,236,1,250,3,82,255,215,1,250, +3,83,255,236,1,250,3,84,255,215, +1,250,3,85,255,236,1,250,3,86, +255,215,1,250,3,87,255,236,1,250, +3,88,255,215,1,250,3,89,255,236, +1,250,3,90,255,215,1,250,3,91, +255,236,1,250,3,92,255,215,1,250, +3,93,255,236,1,250,3,94,255,215, +1,250,3,95,255,236,1,250,3,96, +255,215,1,250,3,98,255,236,1,250, +3,100,255,236,1,250,3,102,255,236, +1,250,3,104,255,236,1,250,3,106, +255,236,1,250,3,108,255,236,1,250, +3,110,255,236,1,251,0,5,0,82, +1,251,0,10,0,82,1,251,0,15, +255,174,1,251,0,17,255,174,1,251, +0,34,0,41,1,251,2,7,0,82, +1,251,2,8,255,174,1,251,2,11, +0,82,1,251,2,12,255,174,1,252, +0,15,255,154,1,252,0,17,255,154, +1,252,0,34,0,41,1,252,0,36, +255,174,1,252,0,38,255,236,1,252, +0,42,255,236,1,252,0,50,255,236, +1,252,0,52,255,236,1,252,0,68, +255,215,1,252,0,70,255,215,1,252, +0,71,255,215,1,252,0,72,255,215, +1,252,0,74,255,236,1,252,0,80, +255,236,1,252,0,81,255,236,1,252, +0,82,255,215,1,252,0,83,255,236, +1,252,0,84,255,215,1,252,0,85, +255,236,1,252,0,86,255,236,1,252, +0,88,255,236,1,252,0,130,255,174, +1,252,0,131,255,174,1,252,0,132, +255,174,1,252,0,133,255,174,1,252, +0,134,255,174,1,252,0,135,255,174, +1,252,0,137,255,236,1,252,0,148, +255,236,1,252,0,149,255,236,1,252, +0,150,255,236,1,252,0,151,255,236, +1,252,0,152,255,236,1,252,0,154, +255,236,1,252,0,162,255,215,1,252, +0,163,255,215,1,252,0,164,255,215, +1,252,0,165,255,215,1,252,0,166, +255,215,1,252,0,167,255,215,1,252, +0,168,255,215,1,252,0,169,255,215, +1,252,0,170,255,215,1,252,0,171, +255,215,1,252,0,172,255,215,1,252, +0,173,255,215,1,252,0,180,255,215, +1,252,0,181,255,215,1,252,0,182, +255,215,1,252,0,183,255,215,1,252, +0,184,255,215,1,252,0,186,255,215, +1,252,0,187,255,236,1,252,0,188, +255,236,1,252,0,189,255,236,1,252, +0,190,255,236,1,252,0,194,255,174, +1,252,0,195,255,215,1,252,0,196, +255,174,1,252,0,197,255,215,1,252, +0,198,255,174,1,252,0,199,255,215, +1,252,0,200,255,236,1,252,0,201, +255,215,1,252,0,202,255,236,1,252, +0,203,255,215,1,252,0,204,255,236, +1,252,0,205,255,215,1,252,0,206, +255,236,1,252,0,207,255,215,1,252, +0,209,255,215,1,252,0,211,255,215, +1,252,0,213,255,215,1,252,0,215, +255,215,1,252,0,217,255,215,1,252, +0,219,255,215,1,252,0,221,255,215, +1,252,0,222,255,236,1,252,0,223, +255,236,1,252,0,224,255,236,1,252, +0,225,255,236,1,252,0,226,255,236, +1,252,0,227,255,236,1,252,0,228, +255,236,1,252,0,229,255,236,1,252, +0,250,255,236,1,252,1,6,255,236, +1,252,1,8,255,236,1,252,1,13, +255,236,1,252,1,14,255,236,1,252, +1,15,255,215,1,252,1,16,255,236, +1,252,1,17,255,215,1,252,1,18, +255,236,1,252,1,19,255,215,1,252, +1,20,255,236,1,252,1,21,255,215, +1,252,1,23,255,236,1,252,1,25, +255,236,1,252,1,29,255,236,1,252, +1,33,255,236,1,252,1,43,255,236, +1,252,1,45,255,236,1,252,1,47, +255,236,1,252,1,49,255,236,1,252, +1,51,255,236,1,252,1,53,255,236, +1,252,1,67,255,174,1,252,1,68, +255,215,1,252,1,70,255,215,1,252, +1,71,255,236,1,252,1,72,255,215, +1,252,1,74,255,236,1,252,2,8, +255,154,1,252,2,12,255,154,1,252, +2,87,255,236,1,252,2,88,255,174, +1,252,2,89,255,215,1,252,2,95, +255,236,1,252,2,96,255,215,1,252, +2,98,255,236,1,252,3,29,255,174, +1,252,3,30,255,215,1,252,3,31, +255,174,1,252,3,32,255,215,1,252, +3,33,255,174,1,252,3,34,255,215, +1,252,3,35,255,174,1,252,3,37, +255,174,1,252,3,38,255,215,1,252, +3,39,255,174,1,252,3,40,255,215, +1,252,3,41,255,174,1,252,3,42, +255,215,1,252,3,43,255,174,1,252, +3,44,255,215,1,252,3,45,255,174, +1,252,3,46,255,215,1,252,3,47, +255,174,1,252,3,48,255,215,1,252, +3,49,255,174,1,252,3,50,255,215, +1,252,3,51,255,174,1,252,3,52, +255,215,1,252,3,54,255,215,1,252, +3,56,255,215,1,252,3,58,255,215, +1,252,3,60,255,215,1,252,3,64, +255,215,1,252,3,66,255,215,1,252, +3,68,255,215,1,252,3,73,255,236, +1,252,3,74,255,215,1,252,3,75, +255,236,1,252,3,76,255,215,1,252, +3,77,255,236,1,252,3,78,255,215, +1,252,3,79,255,236,1,252,3,81, +255,236,1,252,3,82,255,215,1,252, +3,83,255,236,1,252,3,84,255,215, +1,252,3,85,255,236,1,252,3,86, +255,215,1,252,3,87,255,236,1,252, +3,88,255,215,1,252,3,89,255,236, +1,252,3,90,255,215,1,252,3,91, +255,236,1,252,3,92,255,215,1,252, +3,93,255,236,1,252,3,94,255,215, +1,252,3,95,255,236,1,252,3,96, +255,215,1,252,3,98,255,236,1,252, +3,100,255,236,1,252,3,102,255,236, +1,252,3,104,255,236,1,252,3,106, +255,236,1,252,3,108,255,236,1,252, +3,110,255,236,1,253,0,5,0,82, +1,253,0,10,0,82,1,253,0,15, +255,174,1,253,0,17,255,174,1,253, +0,34,0,41,1,253,2,7,0,82, +1,253,2,8,255,174,1,253,2,11, +0,82,1,253,2,12,255,174,1,254, +0,15,255,154,1,254,0,17,255,154, +1,254,0,34,0,41,1,254,0,36, +255,174,1,254,0,38,255,236,1,254, +0,42,255,236,1,254,0,50,255,236, +1,254,0,52,255,236,1,254,0,68, +255,215,1,254,0,70,255,215,1,254, +0,71,255,215,1,254,0,72,255,215, +1,254,0,74,255,236,1,254,0,80, +255,236,1,254,0,81,255,236,1,254, +0,82,255,215,1,254,0,83,255,236, +1,254,0,84,255,215,1,254,0,85, +255,236,1,254,0,86,255,236,1,254, +0,88,255,236,1,254,0,130,255,174, +1,254,0,131,255,174,1,254,0,132, +255,174,1,254,0,133,255,174,1,254, +0,134,255,174,1,254,0,135,255,174, +1,254,0,137,255,236,1,254,0,148, +255,236,1,254,0,149,255,236,1,254, +0,150,255,236,1,254,0,151,255,236, +1,254,0,152,255,236,1,254,0,154, +255,236,1,254,0,162,255,215,1,254, +0,163,255,215,1,254,0,164,255,215, +1,254,0,165,255,215,1,254,0,166, +255,215,1,254,0,167,255,215,1,254, +0,168,255,215,1,254,0,169,255,215, +1,254,0,170,255,215,1,254,0,171, +255,215,1,254,0,172,255,215,1,254, +0,173,255,215,1,254,0,180,255,215, +1,254,0,181,255,215,1,254,0,182, +255,215,1,254,0,183,255,215,1,254, +0,184,255,215,1,254,0,186,255,215, +1,254,0,187,255,236,1,254,0,188, +255,236,1,254,0,189,255,236,1,254, +0,190,255,236,1,254,0,194,255,174, +1,254,0,195,255,215,1,254,0,196, +255,174,1,254,0,197,255,215,1,254, +0,198,255,174,1,254,0,199,255,215, +1,254,0,200,255,236,1,254,0,201, +255,215,1,254,0,202,255,236,1,254, +0,203,255,215,1,254,0,204,255,236, +1,254,0,205,255,215,1,254,0,206, +255,236,1,254,0,207,255,215,1,254, +0,209,255,215,1,254,0,211,255,215, +1,254,0,213,255,215,1,254,0,215, +255,215,1,254,0,217,255,215,1,254, +0,219,255,215,1,254,0,221,255,215, +1,254,0,222,255,236,1,254,0,223, +255,236,1,254,0,224,255,236,1,254, +0,225,255,236,1,254,0,226,255,236, +1,254,0,227,255,236,1,254,0,228, +255,236,1,254,0,229,255,236,1,254, +0,250,255,236,1,254,1,6,255,236, +1,254,1,8,255,236,1,254,1,13, +255,236,1,254,1,14,255,236,1,254, +1,15,255,215,1,254,1,16,255,236, +1,254,1,17,255,215,1,254,1,18, +255,236,1,254,1,19,255,215,1,254, +1,20,255,236,1,254,1,21,255,215, +1,254,1,23,255,236,1,254,1,25, +255,236,1,254,1,29,255,236,1,254, +1,33,255,236,1,254,1,43,255,236, +1,254,1,45,255,236,1,254,1,47, +255,236,1,254,1,49,255,236,1,254, +1,51,255,236,1,254,1,53,255,236, +1,254,1,67,255,174,1,254,1,68, +255,215,1,254,1,70,255,215,1,254, +1,71,255,236,1,254,1,72,255,215, +1,254,1,74,255,236,1,254,2,8, +255,154,1,254,2,12,255,154,1,254, +2,87,255,236,1,254,2,88,255,174, +1,254,2,89,255,215,1,254,2,95, +255,236,1,254,2,96,255,215,1,254, +2,98,255,236,1,254,3,29,255,174, +1,254,3,30,255,215,1,254,3,31, +255,174,1,254,3,32,255,215,1,254, +3,33,255,174,1,254,3,34,255,215, +1,254,3,35,255,174,1,254,3,37, +255,174,1,254,3,38,255,215,1,254, +3,39,255,174,1,254,3,40,255,215, +1,254,3,41,255,174,1,254,3,42, +255,215,1,254,3,43,255,174,1,254, +3,44,255,215,1,254,3,45,255,174, +1,254,3,46,255,215,1,254,3,47, +255,174,1,254,3,48,255,215,1,254, +3,49,255,174,1,254,3,50,255,215, +1,254,3,51,255,174,1,254,3,52, +255,215,1,254,3,54,255,215,1,254, +3,56,255,215,1,254,3,58,255,215, +1,254,3,60,255,215,1,254,3,64, +255,215,1,254,3,66,255,215,1,254, +3,68,255,215,1,254,3,73,255,236, +1,254,3,74,255,215,1,254,3,75, +255,236,1,254,3,76,255,215,1,254, +3,77,255,236,1,254,3,78,255,215, +1,254,3,79,255,236,1,254,3,81, +255,236,1,254,3,82,255,215,1,254, +3,83,255,236,1,254,3,84,255,215, +1,254,3,85,255,236,1,254,3,86, +255,215,1,254,3,87,255,236,1,254, +3,88,255,215,1,254,3,89,255,236, +1,254,3,90,255,215,1,254,3,91, +255,236,1,254,3,92,255,215,1,254, +3,93,255,236,1,254,3,94,255,215, +1,254,3,95,255,236,1,254,3,96, +255,215,1,254,3,98,255,236,1,254, +3,100,255,236,1,254,3,102,255,236, +1,254,3,104,255,236,1,254,3,106, +255,236,1,254,3,108,255,236,1,254, +3,110,255,236,1,255,0,5,0,82, +1,255,0,10,0,82,1,255,0,15, +255,174,1,255,0,17,255,174,1,255, +0,34,0,41,1,255,2,7,0,82, +1,255,2,8,255,174,1,255,2,11, +0,82,1,255,2,12,255,174,2,0, +0,15,255,133,2,0,0,17,255,133, +2,0,0,34,0,41,2,0,0,36, +255,133,2,0,0,38,255,215,2,0, +0,42,255,215,2,0,0,50,255,215, +2,0,0,52,255,215,2,0,0,68, +255,154,2,0,0,70,255,154,2,0, +0,71,255,154,2,0,0,72,255,154, +2,0,0,74,255,215,2,0,0,80, +255,195,2,0,0,81,255,195,2,0, +0,82,255,154,2,0,0,83,255,195, +2,0,0,84,255,154,2,0,0,85, +255,195,2,0,0,86,255,174,2,0, +0,88,255,195,2,0,0,93,255,215, +2,0,0,130,255,133,2,0,0,131, +255,133,2,0,0,132,255,133,2,0, +0,133,255,133,2,0,0,134,255,133, +2,0,0,135,255,133,2,0,0,137, +255,215,2,0,0,148,255,215,2,0, +0,149,255,215,2,0,0,150,255,215, +2,0,0,151,255,215,2,0,0,152, +255,215,2,0,0,154,255,215,2,0, +0,162,255,154,2,0,0,163,255,154, +2,0,0,164,255,154,2,0,0,165, +255,154,2,0,0,166,255,154,2,0, +0,167,255,154,2,0,0,168,255,154, +2,0,0,169,255,154,2,0,0,170, +255,154,2,0,0,171,255,154,2,0, +0,172,255,154,2,0,0,173,255,154, +2,0,0,180,255,154,2,0,0,181, +255,154,2,0,0,182,255,154,2,0, +0,183,255,154,2,0,0,184,255,154, +2,0,0,186,255,154,2,0,0,187, +255,195,2,0,0,188,255,195,2,0, +0,189,255,195,2,0,0,190,255,195, +2,0,0,194,255,133,2,0,0,195, +255,154,2,0,0,196,255,133,2,0, +0,197,255,154,2,0,0,198,255,133, +2,0,0,199,255,154,2,0,0,200, +255,215,2,0,0,201,255,154,2,0, +0,202,255,215,2,0,0,203,255,154, +2,0,0,204,255,215,2,0,0,205, +255,154,2,0,0,206,255,215,2,0, +0,207,255,154,2,0,0,209,255,154, +2,0,0,211,255,154,2,0,0,213, +255,154,2,0,0,215,255,154,2,0, +0,217,255,154,2,0,0,219,255,154, +2,0,0,221,255,154,2,0,0,222, +255,215,2,0,0,223,255,215,2,0, +0,224,255,215,2,0,0,225,255,215, +2,0,0,226,255,215,2,0,0,227, +255,215,2,0,0,228,255,215,2,0, +0,229,255,215,2,0,0,250,255,195, +2,0,1,6,255,195,2,0,1,8, +255,195,2,0,1,13,255,195,2,0, +1,14,255,215,2,0,1,15,255,154, +2,0,1,16,255,215,2,0,1,17, +255,154,2,0,1,18,255,215,2,0, +1,19,255,154,2,0,1,20,255,215, +2,0,1,21,255,154,2,0,1,23, +255,195,2,0,1,25,255,195,2,0, +1,29,255,174,2,0,1,33,255,174, +2,0,1,43,255,195,2,0,1,45, +255,195,2,0,1,47,255,195,2,0, +1,49,255,195,2,0,1,51,255,195, +2,0,1,53,255,195,2,0,1,60, +255,215,2,0,1,62,255,215,2,0, +1,64,255,215,2,0,1,67,255,133, +2,0,1,68,255,154,2,0,1,70, +255,154,2,0,1,71,255,215,2,0, +1,72,255,154,2,0,1,74,255,174, +2,0,2,8,255,133,2,0,2,12, +255,133,2,0,2,87,255,195,2,0, +2,88,255,133,2,0,2,89,255,154, +2,0,2,95,255,215,2,0,2,96, +255,154,2,0,2,98,255,195,2,0, +3,29,255,133,2,0,3,30,255,154, +2,0,3,31,255,133,2,0,3,32, +255,154,2,0,3,33,255,133,2,0, +3,34,255,154,2,0,3,35,255,133, +2,0,3,37,255,133,2,0,3,38, +255,154,2,0,3,39,255,133,2,0, +3,40,255,154,2,0,3,41,255,133, +2,0,3,42,255,154,2,0,3,43, +255,133,2,0,3,44,255,154,2,0, +3,45,255,133,2,0,3,46,255,154, +2,0,3,47,255,133,2,0,3,48, +255,154,2,0,3,49,255,133,2,0, +3,50,255,154,2,0,3,51,255,133, +2,0,3,52,255,154,2,0,3,54, +255,154,2,0,3,56,255,154,2,0, +3,58,255,154,2,0,3,60,255,154, +2,0,3,64,255,154,2,0,3,66, +255,154,2,0,3,68,255,154,2,0, +3,73,255,215,2,0,3,74,255,154, +2,0,3,75,255,215,2,0,3,76, +255,154,2,0,3,77,255,215,2,0, +3,78,255,154,2,0,3,79,255,215, +2,0,3,81,255,215,2,0,3,82, +255,154,2,0,3,83,255,215,2,0, +3,84,255,154,2,0,3,85,255,215, +2,0,3,86,255,154,2,0,3,87, +255,215,2,0,3,88,255,154,2,0, +3,89,255,215,2,0,3,90,255,154, +2,0,3,91,255,215,2,0,3,92, +255,154,2,0,3,93,255,215,2,0, +3,94,255,154,2,0,3,95,255,215, +2,0,3,96,255,154,2,0,3,98, +255,195,2,0,3,100,255,195,2,0, +3,102,255,195,2,0,3,104,255,195, +2,0,3,106,255,195,2,0,3,108, +255,195,2,0,3,110,255,195,2,1, +0,5,0,82,2,1,0,10,0,82, +2,1,0,15,255,174,2,1,0,17, +255,174,2,1,0,34,0,41,2,1, +2,7,0,82,2,1,2,8,255,174, +2,1,2,11,0,82,2,1,2,12, +255,174,2,2,0,55,255,174,2,2, +1,36,255,174,2,2,1,38,255,174, +2,2,1,113,255,174,2,2,1,157, +255,174,2,2,1,166,255,174,2,2, +1,188,255,174,2,2,1,196,255,174, +2,2,1,220,255,215,2,2,1,228, +255,215,2,2,2,169,255,174,2,2, +2,170,255,215,2,2,2,181,255,174, +2,2,2,182,255,215,2,2,2,189, +255,174,2,2,2,190,255,215,2,2, +3,23,255,174,2,2,3,24,255,215, +2,2,3,143,255,174,2,3,0,55, +255,174,2,3,1,36,255,174,2,3, +1,38,255,174,2,3,1,113,255,174, +2,3,1,157,255,174,2,3,1,166, +255,174,2,3,1,188,255,174,2,3, +1,196,255,174,2,3,1,220,255,215, +2,3,1,228,255,215,2,3,2,169, +255,174,2,3,2,170,255,215,2,3, +2,181,255,174,2,3,2,182,255,215, +2,3,2,189,255,174,2,3,2,190, +255,215,2,3,3,23,255,174,2,3, +3,24,255,215,2,3,3,143,255,174, +2,4,0,55,255,174,2,4,1,36, +255,174,2,4,1,38,255,174,2,4, +1,113,255,174,2,4,1,157,255,174, +2,4,1,166,255,174,2,4,1,188, +255,174,2,4,1,196,255,174,2,4, +1,220,255,215,2,4,1,228,255,215, +2,4,2,169,255,174,2,4,2,170, +255,215,2,4,2,181,255,174,2,4, +2,182,255,215,2,4,2,189,255,174, +2,4,2,190,255,215,2,4,3,23, +255,174,2,4,3,24,255,215,2,4, +3,143,255,174,2,6,0,36,255,113, +2,6,0,55,0,41,2,6,0,57, +0,41,2,6,0,58,0,41,2,6, +0,60,0,20,2,6,0,68,255,174, +2,6,0,70,255,133,2,6,0,71, +255,133,2,6,0,72,255,133,2,6, +0,74,255,195,2,6,0,80,255,195, +2,6,0,81,255,195,2,6,0,82, +255,133,2,6,0,83,255,195,2,6, +0,84,255,133,2,6,0,85,255,195, +2,6,0,86,255,195,2,6,0,88, +255,195,2,6,0,130,255,113,2,6, +0,131,255,113,2,6,0,132,255,113, +2,6,0,133,255,113,2,6,0,134, +255,113,2,6,0,135,255,113,2,6, +0,159,0,20,2,6,0,162,255,133, +2,6,0,163,255,174,2,6,0,164, +255,174,2,6,0,165,255,174,2,6, +0,166,255,174,2,6,0,167,255,174, +2,6,0,168,255,174,2,6,0,169, +255,133,2,6,0,170,255,133,2,6, +0,171,255,133,2,6,0,172,255,133, +2,6,0,173,255,133,2,6,0,180, +255,133,2,6,0,181,255,133,2,6, +0,182,255,133,2,6,0,183,255,133, +2,6,0,184,255,133,2,6,0,186, +255,133,2,6,0,187,255,195,2,6, +0,188,255,195,2,6,0,189,255,195, +2,6,0,190,255,195,2,6,0,194, +255,113,2,6,0,195,255,174,2,6, +0,196,255,113,2,6,0,197,255,174, +2,6,0,198,255,113,2,6,0,199, +255,174,2,6,0,201,255,133,2,6, +0,203,255,133,2,6,0,205,255,133, +2,6,0,207,255,133,2,6,0,209, +255,133,2,6,0,211,255,133,2,6, +0,213,255,133,2,6,0,215,255,133, +2,6,0,217,255,133,2,6,0,219, +255,133,2,6,0,221,255,133,2,6, +0,223,255,195,2,6,0,225,255,195, +2,6,0,227,255,195,2,6,0,229, +255,195,2,6,0,250,255,195,2,6, +1,6,255,195,2,6,1,8,255,195, +2,6,1,13,255,195,2,6,1,15, +255,133,2,6,1,17,255,133,2,6, +1,19,255,133,2,6,1,21,255,133, +2,6,1,23,255,195,2,6,1,25, +255,195,2,6,1,29,255,195,2,6, +1,33,255,195,2,6,1,36,0,41, +2,6,1,38,0,41,2,6,1,43, +255,195,2,6,1,45,255,195,2,6, +1,47,255,195,2,6,1,49,255,195, +2,6,1,51,255,195,2,6,1,53, +255,195,2,6,1,54,0,41,2,6, +1,56,0,20,2,6,1,58,0,20, +2,6,1,67,255,113,2,6,1,68, +255,174,2,6,1,70,255,174,2,6, +1,72,255,133,2,6,1,74,255,195, +2,6,1,86,255,113,2,6,1,95, +255,113,2,6,1,98,255,113,2,6, +1,105,255,113,2,6,1,121,255,174, +2,6,1,122,255,215,2,6,1,123, +255,215,2,6,1,126,255,174,2,6, +1,129,255,195,2,6,1,130,255,215, +2,6,1,131,255,215,2,6,1,132, +255,215,2,6,1,135,255,215,2,6, +1,137,255,215,2,6,1,140,255,174, +2,6,1,142,255,195,2,6,1,143, +255,174,2,6,1,144,255,174,2,6, +1,147,255,174,2,6,1,153,255,174, +2,6,1,164,255,133,2,6,1,170, +255,113,2,6,1,174,255,133,2,6, +1,181,255,133,2,6,1,202,255,215, +2,6,1,206,255,113,2,6,1,207, +255,133,2,6,1,213,255,113,2,6, +1,216,255,133,2,6,1,219,255,133, +2,6,1,222,255,133,2,6,1,234, +255,133,2,6,1,237,255,133,2,6, +1,238,255,195,2,6,1,242,255,113, +2,6,1,250,0,41,2,6,1,252, +0,41,2,6,1,254,0,41,2,6, +2,0,0,20,2,6,2,87,255,195, +2,6,2,88,255,113,2,6,2,89, +255,174,2,6,2,96,255,133,2,6, +2,98,255,195,2,6,2,106,255,133, +2,6,2,114,255,113,2,6,2,115, +255,113,2,6,2,125,255,236,2,6, +2,127,255,133,2,6,2,133,255,133, +2,6,2,135,255,133,2,6,2,137, +255,133,2,6,2,141,255,133,2,6, +2,178,255,133,2,6,2,180,255,133, +2,6,2,206,255,133,2,6,2,207, +255,113,2,6,2,217,255,113,2,6, +2,218,255,215,2,6,2,219,255,113, +2,6,2,220,255,215,2,6,2,221, +255,113,2,6,2,222,255,215,2,6, +2,224,255,133,2,6,2,226,255,215, +2,6,2,228,255,215,2,6,2,240, +255,133,2,6,2,242,255,133,2,6, +2,244,255,133,2,6,3,9,255,113, +2,6,3,10,255,133,2,6,3,11, +255,113,2,6,3,12,255,133,2,6, +3,17,255,133,2,6,3,18,255,113, +2,6,3,22,255,133,2,6,3,26, +255,133,2,6,3,27,255,133,2,6, +3,28,255,113,2,6,3,29,255,113, +2,6,3,30,255,174,2,6,3,31, +255,113,2,6,3,32,255,174,2,6, +3,33,255,113,2,6,3,34,255,174, +2,6,3,35,255,113,2,6,3,37, +255,113,2,6,3,38,255,174,2,6, +3,39,255,113,2,6,3,40,255,174, +2,6,3,41,255,113,2,6,3,42, +255,174,2,6,3,43,255,113,2,6, +3,44,255,174,2,6,3,45,255,113, +2,6,3,46,255,174,2,6,3,47, +255,113,2,6,3,48,255,174,2,6, +3,49,255,113,2,6,3,50,255,174, +2,6,3,51,255,113,2,6,3,52, +255,174,2,6,3,54,255,133,2,6, +3,56,255,133,2,6,3,58,255,133, +2,6,3,60,255,133,2,6,3,64, +255,133,2,6,3,66,255,133,2,6, +3,68,255,133,2,6,3,74,255,133, +2,6,3,76,255,133,2,6,3,78, +255,133,2,6,3,82,255,133,2,6, +3,84,255,133,2,6,3,86,255,133, +2,6,3,88,255,133,2,6,3,90, +255,133,2,6,3,92,255,133,2,6, +3,94,255,133,2,6,3,96,255,133, +2,6,3,98,255,195,2,6,3,100, +255,195,2,6,3,102,255,195,2,6, +3,104,255,195,2,6,3,106,255,195, +2,6,3,108,255,195,2,6,3,110, +255,195,2,6,3,111,0,20,2,6, +3,113,0,20,2,6,3,115,0,20, +2,6,3,143,0,41,2,7,0,36, +255,113,2,7,0,55,0,41,2,7, +0,57,0,41,2,7,0,58,0,41, +2,7,0,60,0,20,2,7,0,68, +255,174,2,7,0,70,255,133,2,7, +0,71,255,133,2,7,0,72,255,133, +2,7,0,74,255,195,2,7,0,80, +255,195,2,7,0,81,255,195,2,7, +0,82,255,133,2,7,0,83,255,195, +2,7,0,84,255,133,2,7,0,85, +255,195,2,7,0,86,255,195,2,7, +0,88,255,195,2,7,0,130,255,113, +2,7,0,131,255,113,2,7,0,132, +255,113,2,7,0,133,255,113,2,7, +0,134,255,113,2,7,0,135,255,113, +2,7,0,159,0,20,2,7,0,162, +255,133,2,7,0,163,255,174,2,7, +0,164,255,174,2,7,0,165,255,174, +2,7,0,166,255,174,2,7,0,167, +255,174,2,7,0,168,255,174,2,7, +0,169,255,133,2,7,0,170,255,133, +2,7,0,171,255,133,2,7,0,172, +255,133,2,7,0,173,255,133,2,7, +0,180,255,133,2,7,0,181,255,133, +2,7,0,182,255,133,2,7,0,183, +255,133,2,7,0,184,255,133,2,7, +0,186,255,133,2,7,0,187,255,195, +2,7,0,188,255,195,2,7,0,189, +255,195,2,7,0,190,255,195,2,7, +0,194,255,113,2,7,0,195,255,174, +2,7,0,196,255,113,2,7,0,197, +255,174,2,7,0,198,255,113,2,7, +0,199,255,174,2,7,0,201,255,133, +2,7,0,203,255,133,2,7,0,205, +255,133,2,7,0,207,255,133,2,7, +0,209,255,133,2,7,0,211,255,133, +2,7,0,213,255,133,2,7,0,215, +255,133,2,7,0,217,255,133,2,7, +0,219,255,133,2,7,0,221,255,133, +2,7,0,223,255,195,2,7,0,225, +255,195,2,7,0,227,255,195,2,7, +0,229,255,195,2,7,0,250,255,195, +2,7,1,6,255,195,2,7,1,8, +255,195,2,7,1,13,255,195,2,7, +1,15,255,133,2,7,1,17,255,133, +2,7,1,19,255,133,2,7,1,21, +255,133,2,7,1,23,255,195,2,7, +1,25,255,195,2,7,1,29,255,195, +2,7,1,33,255,195,2,7,1,36, +0,41,2,7,1,38,0,41,2,7, +1,43,255,195,2,7,1,45,255,195, +2,7,1,47,255,195,2,7,1,49, +255,195,2,7,1,51,255,195,2,7, +1,53,255,195,2,7,1,54,0,41, +2,7,1,56,0,20,2,7,1,58, +0,20,2,7,1,67,255,113,2,7, +1,68,255,174,2,7,1,70,255,174, +2,7,1,72,255,133,2,7,1,74, +255,195,2,7,1,86,255,113,2,7, +1,95,255,113,2,7,1,98,255,113, +2,7,1,105,255,113,2,7,1,121, +255,174,2,7,1,122,255,215,2,7, +1,123,255,215,2,7,1,126,255,174, +2,7,1,129,255,195,2,7,1,130, +255,215,2,7,1,131,255,215,2,7, +1,132,255,215,2,7,1,135,255,215, +2,7,1,137,255,215,2,7,1,140, +255,174,2,7,1,142,255,195,2,7, +1,143,255,174,2,7,1,144,255,174, +2,7,1,147,255,174,2,7,1,153, +255,174,2,7,1,164,255,133,2,7, +1,170,255,113,2,7,1,174,255,133, +2,7,1,181,255,133,2,7,1,202, +255,215,2,7,1,206,255,113,2,7, +1,207,255,133,2,7,1,213,255,113, +2,7,1,216,255,133,2,7,1,219, +255,133,2,7,1,222,255,133,2,7, +1,234,255,133,2,7,1,237,255,133, +2,7,1,238,255,195,2,7,1,242, +255,113,2,7,1,250,0,41,2,7, +1,252,0,41,2,7,1,254,0,41, +2,7,2,0,0,20,2,7,2,87, +255,195,2,7,2,88,255,113,2,7, +2,89,255,174,2,7,2,96,255,133, +2,7,2,98,255,195,2,7,2,106, +255,133,2,7,2,114,255,113,2,7, +2,115,255,113,2,7,2,125,255,236, +2,7,2,127,255,133,2,7,2,133, +255,133,2,7,2,135,255,133,2,7, +2,137,255,133,2,7,2,141,255,133, +2,7,2,178,255,133,2,7,2,180, +255,133,2,7,2,206,255,133,2,7, +2,207,255,113,2,7,2,217,255,113, +2,7,2,218,255,215,2,7,2,219, +255,113,2,7,2,220,255,215,2,7, +2,221,255,113,2,7,2,222,255,215, +2,7,2,224,255,133,2,7,2,226, +255,215,2,7,2,228,255,215,2,7, +2,240,255,133,2,7,2,242,255,133, +2,7,2,244,255,133,2,7,3,9, +255,113,2,7,3,10,255,133,2,7, +3,11,255,113,2,7,3,12,255,133, +2,7,3,17,255,133,2,7,3,18, +255,113,2,7,3,22,255,133,2,7, +3,26,255,133,2,7,3,27,255,133, +2,7,3,28,255,113,2,7,3,29, +255,113,2,7,3,30,255,174,2,7, +3,31,255,113,2,7,3,32,255,174, +2,7,3,33,255,113,2,7,3,34, +255,174,2,7,3,35,255,113,2,7, +3,37,255,113,2,7,3,38,255,174, +2,7,3,39,255,113,2,7,3,40, +255,174,2,7,3,41,255,113,2,7, +3,42,255,174,2,7,3,43,255,113, +2,7,3,44,255,174,2,7,3,45, +255,113,2,7,3,46,255,174,2,7, +3,47,255,113,2,7,3,48,255,174, +2,7,3,49,255,113,2,7,3,50, +255,174,2,7,3,51,255,113,2,7, +3,52,255,174,2,7,3,54,255,133, +2,7,3,56,255,133,2,7,3,58, +255,133,2,7,3,60,255,133,2,7, +3,64,255,133,2,7,3,66,255,133, +2,7,3,68,255,133,2,7,3,74, +255,133,2,7,3,76,255,133,2,7, +3,78,255,133,2,7,3,82,255,133, +2,7,3,84,255,133,2,7,3,86, +255,133,2,7,3,88,255,133,2,7, +3,90,255,133,2,7,3,92,255,133, +2,7,3,94,255,133,2,7,3,96, +255,133,2,7,3,98,255,195,2,7, +3,100,255,195,2,7,3,102,255,195, +2,7,3,104,255,195,2,7,3,106, +255,195,2,7,3,108,255,195,2,7, +3,110,255,195,2,7,3,111,0,20, +2,7,3,113,0,20,2,7,3,115, +0,20,2,7,3,143,0,41,2,8, +0,38,255,154,2,8,0,42,255,154, +2,8,0,50,255,154,2,8,0,52, +255,154,2,8,0,55,255,113,2,8, +0,56,255,215,2,8,0,57,255,133, +2,8,0,58,255,133,2,8,0,60, +255,133,2,8,0,137,255,154,2,8, +0,148,255,154,2,8,0,149,255,154, +2,8,0,150,255,154,2,8,0,151, +255,154,2,8,0,152,255,154,2,8, +0,154,255,154,2,8,0,155,255,215, +2,8,0,156,255,215,2,8,0,157, +255,215,2,8,0,158,255,215,2,8, +0,159,255,133,2,8,0,200,255,154, +2,8,0,202,255,154,2,8,0,204, +255,154,2,8,0,206,255,154,2,8, +0,222,255,154,2,8,0,224,255,154, +2,8,0,226,255,154,2,8,0,228, +255,154,2,8,1,14,255,154,2,8, +1,16,255,154,2,8,1,18,255,154, +2,8,1,20,255,154,2,8,1,36, +255,113,2,8,1,38,255,113,2,8, +1,42,255,215,2,8,1,44,255,215, +2,8,1,46,255,215,2,8,1,48, +255,215,2,8,1,50,255,215,2,8, +1,52,255,215,2,8,1,54,255,133, +2,8,1,56,255,133,2,8,1,58, +255,133,2,8,1,71,255,154,2,8, +1,102,255,174,2,8,1,109,255,174, +2,8,1,113,255,113,2,8,1,114, +255,133,2,8,1,115,255,154,2,8, +1,117,255,133,2,8,1,120,255,133, +2,8,1,133,255,215,2,8,1,157, +255,113,2,8,1,159,255,154,2,8, +1,166,255,113,2,8,1,184,255,154, +2,8,1,187,255,154,2,8,1,188, +255,113,2,8,1,190,255,174,2,8, +1,193,255,92,2,8,1,196,255,113, +2,8,1,220,255,154,2,8,1,225, +255,133,2,8,1,228,255,154,2,8, +1,250,255,133,2,8,1,252,255,133, +2,8,1,254,255,133,2,8,2,0, +255,133,2,8,2,84,255,133,2,8, +2,95,255,154,2,8,2,97,255,215, +2,8,2,108,255,154,2,8,2,124, +255,92,2,8,2,126,255,154,2,8, +2,128,255,133,2,8,2,130,255,133, +2,8,2,132,255,154,2,8,2,134, +255,154,2,8,2,136,255,154,2,8, +2,138,255,154,2,8,2,140,255,154, +2,8,2,169,255,113,2,8,2,170, +255,154,2,8,2,177,255,154,2,8, +2,179,255,154,2,8,2,181,255,113, +2,8,2,182,255,154,2,8,2,183, +255,133,2,8,2,185,255,133,2,8, +2,189,255,113,2,8,2,190,255,154, +2,8,2,191,255,92,2,8,2,192, +255,133,2,8,2,193,255,92,2,8, +2,194,255,133,2,8,2,197,255,133, +2,8,2,199,255,133,2,8,2,212, +255,92,2,8,2,213,255,133,2,8, +2,239,255,154,2,8,2,241,255,154, +2,8,2,243,255,154,2,8,2,253, +255,92,2,8,2,254,255,133,2,8, +3,13,255,133,2,8,3,14,255,154, +2,8,3,15,255,133,2,8,3,16, +255,154,2,8,3,21,255,154,2,8, +3,23,255,113,2,8,3,24,255,154, +2,8,3,73,255,154,2,8,3,75, +255,154,2,8,3,77,255,154,2,8, +3,79,255,154,2,8,3,81,255,154, +2,8,3,83,255,154,2,8,3,85, +255,154,2,8,3,87,255,154,2,8, +3,89,255,154,2,8,3,91,255,154, +2,8,3,93,255,154,2,8,3,95, +255,154,2,8,3,97,255,215,2,8, +3,99,255,215,2,8,3,101,255,215, +2,8,3,103,255,215,2,8,3,105, +255,215,2,8,3,107,255,215,2,8, +3,109,255,215,2,8,3,111,255,133, +2,8,3,113,255,133,2,8,3,115, +255,133,2,8,3,143,255,113,2,10, +0,36,255,113,2,10,0,55,0,41, +2,10,0,57,0,41,2,10,0,58, +0,41,2,10,0,60,0,20,2,10, +0,68,255,174,2,10,0,70,255,133, +2,10,0,71,255,133,2,10,0,72, +255,133,2,10,0,74,255,195,2,10, +0,80,255,195,2,10,0,81,255,195, +2,10,0,82,255,133,2,10,0,83, +255,195,2,10,0,84,255,133,2,10, +0,85,255,195,2,10,0,86,255,195, +2,10,0,88,255,195,2,10,0,130, +255,113,2,10,0,131,255,113,2,10, +0,132,255,113,2,10,0,133,255,113, +2,10,0,134,255,113,2,10,0,135, +255,113,2,10,0,159,0,20,2,10, +0,162,255,133,2,10,0,163,255,174, +2,10,0,164,255,174,2,10,0,165, +255,174,2,10,0,166,255,174,2,10, +0,167,255,174,2,10,0,168,255,174, +2,10,0,169,255,133,2,10,0,170, +255,133,2,10,0,171,255,133,2,10, +0,172,255,133,2,10,0,173,255,133, +2,10,0,180,255,133,2,10,0,181, +255,133,2,10,0,182,255,133,2,10, +0,183,255,133,2,10,0,184,255,133, +2,10,0,186,255,133,2,10,0,187, +255,195,2,10,0,188,255,195,2,10, +0,189,255,195,2,10,0,190,255,195, +2,10,0,194,255,113,2,10,0,195, +255,174,2,10,0,196,255,113,2,10, +0,197,255,174,2,10,0,198,255,113, +2,10,0,199,255,174,2,10,0,201, +255,133,2,10,0,203,255,133,2,10, +0,205,255,133,2,10,0,207,255,133, +2,10,0,209,255,133,2,10,0,211, +255,133,2,10,0,213,255,133,2,10, +0,215,255,133,2,10,0,217,255,133, +2,10,0,219,255,133,2,10,0,221, +255,133,2,10,0,223,255,195,2,10, +0,225,255,195,2,10,0,227,255,195, +2,10,0,229,255,195,2,10,0,250, +255,195,2,10,1,6,255,195,2,10, +1,8,255,195,2,10,1,13,255,195, +2,10,1,15,255,133,2,10,1,17, +255,133,2,10,1,19,255,133,2,10, +1,21,255,133,2,10,1,23,255,195, +2,10,1,25,255,195,2,10,1,29, +255,195,2,10,1,33,255,195,2,10, +1,36,0,41,2,10,1,38,0,41, +2,10,1,43,255,195,2,10,1,45, +255,195,2,10,1,47,255,195,2,10, +1,49,255,195,2,10,1,51,255,195, +2,10,1,53,255,195,2,10,1,54, +0,41,2,10,1,56,0,20,2,10, +1,58,0,20,2,10,1,67,255,113, +2,10,1,68,255,174,2,10,1,70, +255,174,2,10,1,72,255,133,2,10, +1,74,255,195,2,10,1,86,255,113, +2,10,1,95,255,113,2,10,1,98, +255,113,2,10,1,105,255,113,2,10, +1,121,255,174,2,10,1,122,255,215, +2,10,1,123,255,215,2,10,1,126, +255,174,2,10,1,129,255,195,2,10, +1,130,255,215,2,10,1,131,255,215, +2,10,1,132,255,215,2,10,1,135, +255,215,2,10,1,137,255,215,2,10, +1,140,255,174,2,10,1,142,255,195, +2,10,1,143,255,174,2,10,1,144, +255,174,2,10,1,147,255,174,2,10, +1,153,255,174,2,10,1,164,255,133, +2,10,1,170,255,113,2,10,1,174, +255,133,2,10,1,181,255,133,2,10, +1,202,255,215,2,10,1,206,255,113, +2,10,1,207,255,133,2,10,1,213, +255,113,2,10,1,216,255,133,2,10, +1,219,255,133,2,10,1,222,255,133, +2,10,1,234,255,133,2,10,1,237, +255,133,2,10,1,238,255,195,2,10, +1,242,255,113,2,10,1,250,0,41, +2,10,1,252,0,41,2,10,1,254, +0,41,2,10,2,0,0,20,2,10, +2,87,255,195,2,10,2,88,255,113, +2,10,2,89,255,174,2,10,2,96, +255,133,2,10,2,98,255,195,2,10, +2,106,255,133,2,10,2,114,255,113, +2,10,2,115,255,113,2,10,2,125, +255,236,2,10,2,127,255,133,2,10, +2,133,255,133,2,10,2,135,255,133, +2,10,2,137,255,133,2,10,2,141, +255,133,2,10,2,178,255,133,2,10, +2,180,255,133,2,10,2,206,255,133, +2,10,2,207,255,113,2,10,2,217, +255,113,2,10,2,218,255,215,2,10, +2,219,255,113,2,10,2,220,255,215, +2,10,2,221,255,113,2,10,2,222, +255,215,2,10,2,224,255,133,2,10, +2,226,255,215,2,10,2,228,255,215, +2,10,2,240,255,133,2,10,2,242, +255,133,2,10,2,244,255,133,2,10, +3,9,255,113,2,10,3,10,255,133, +2,10,3,11,255,113,2,10,3,12, +255,133,2,10,3,17,255,133,2,10, +3,18,255,113,2,10,3,22,255,133, +2,10,3,26,255,133,2,10,3,27, +255,133,2,10,3,28,255,113,2,10, +3,29,255,113,2,10,3,30,255,174, +2,10,3,31,255,113,2,10,3,32, +255,174,2,10,3,33,255,113,2,10, +3,34,255,174,2,10,3,35,255,113, +2,10,3,37,255,113,2,10,3,38, +255,174,2,10,3,39,255,113,2,10, +3,40,255,174,2,10,3,41,255,113, +2,10,3,42,255,174,2,10,3,43, +255,113,2,10,3,44,255,174,2,10, +3,45,255,113,2,10,3,46,255,174, +2,10,3,47,255,113,2,10,3,48, +255,174,2,10,3,49,255,113,2,10, +3,50,255,174,2,10,3,51,255,113, +2,10,3,52,255,174,2,10,3,54, +255,133,2,10,3,56,255,133,2,10, +3,58,255,133,2,10,3,60,255,133, +2,10,3,64,255,133,2,10,3,66, +255,133,2,10,3,68,255,133,2,10, +3,74,255,133,2,10,3,76,255,133, +2,10,3,78,255,133,2,10,3,82, +255,133,2,10,3,84,255,133,2,10, +3,86,255,133,2,10,3,88,255,133, +2,10,3,90,255,133,2,10,3,92, +255,133,2,10,3,94,255,133,2,10, +3,96,255,133,2,10,3,98,255,195, +2,10,3,100,255,195,2,10,3,102, +255,195,2,10,3,104,255,195,2,10, +3,106,255,195,2,10,3,108,255,195, +2,10,3,110,255,195,2,10,3,111, +0,20,2,10,3,113,0,20,2,10, +3,115,0,20,2,10,3,143,0,41, +2,12,0,38,255,154,2,12,0,42, +255,154,2,12,0,50,255,154,2,12, +0,52,255,154,2,12,0,55,255,113, +2,12,0,56,255,215,2,12,0,57, +255,133,2,12,0,58,255,133,2,12, +0,60,255,133,2,12,0,137,255,154, +2,12,0,148,255,154,2,12,0,149, +255,154,2,12,0,150,255,154,2,12, +0,151,255,154,2,12,0,152,255,154, +2,12,0,154,255,154,2,12,0,155, +255,215,2,12,0,156,255,215,2,12, +0,157,255,215,2,12,0,158,255,215, +2,12,0,159,255,133,2,12,0,200, +255,154,2,12,0,202,255,154,2,12, +0,204,255,154,2,12,0,206,255,154, +2,12,0,222,255,154,2,12,0,224, +255,154,2,12,0,226,255,154,2,12, +0,228,255,154,2,12,1,14,255,154, +2,12,1,16,255,154,2,12,1,18, +255,154,2,12,1,20,255,154,2,12, +1,36,255,113,2,12,1,38,255,113, +2,12,1,42,255,215,2,12,1,44, +255,215,2,12,1,46,255,215,2,12, +1,48,255,215,2,12,1,50,255,215, +2,12,1,52,255,215,2,12,1,54, +255,133,2,12,1,56,255,133,2,12, +1,58,255,133,2,12,1,71,255,154, +2,12,1,102,255,174,2,12,1,109, +255,174,2,12,1,113,255,113,2,12, +1,114,255,133,2,12,1,115,255,154, +2,12,1,117,255,133,2,12,1,120, +255,133,2,12,1,133,255,215,2,12, +1,157,255,113,2,12,1,159,255,154, +2,12,1,166,255,113,2,12,1,184, +255,154,2,12,1,187,255,154,2,12, +1,188,255,113,2,12,1,190,255,174, +2,12,1,193,255,92,2,12,1,196, +255,113,2,12,1,220,255,154,2,12, +1,225,255,133,2,12,1,228,255,154, +2,12,1,250,255,133,2,12,1,252, +255,133,2,12,1,254,255,133,2,12, +2,0,255,133,2,12,2,84,255,133, +2,12,2,95,255,154,2,12,2,97, +255,215,2,12,2,108,255,154,2,12, +2,124,255,92,2,12,2,126,255,154, +2,12,2,128,255,133,2,12,2,130, +255,133,2,12,2,132,255,154,2,12, +2,134,255,154,2,12,2,136,255,154, +2,12,2,138,255,154,2,12,2,140, +255,154,2,12,2,169,255,113,2,12, +2,170,255,154,2,12,2,177,255,154, +2,12,2,179,255,154,2,12,2,181, +255,113,2,12,2,182,255,154,2,12, +2,183,255,133,2,12,2,185,255,133, +2,12,2,189,255,113,2,12,2,190, +255,154,2,12,2,191,255,92,2,12, +2,192,255,133,2,12,2,193,255,92, +2,12,2,194,255,133,2,12,2,197, +255,133,2,12,2,199,255,133,2,12, +2,212,255,92,2,12,2,213,255,133, +2,12,2,239,255,154,2,12,2,241, +255,154,2,12,2,243,255,154,2,12, +2,253,255,92,2,12,2,254,255,133, +2,12,3,13,255,133,2,12,3,14, +255,154,2,12,3,15,255,133,2,12, +3,16,255,154,2,12,3,21,255,154, +2,12,3,23,255,113,2,12,3,24, +255,154,2,12,3,73,255,154,2,12, +3,75,255,154,2,12,3,77,255,154, +2,12,3,79,255,154,2,12,3,81, +255,154,2,12,3,83,255,154,2,12, +3,85,255,154,2,12,3,87,255,154, +2,12,3,89,255,154,2,12,3,91, +255,154,2,12,3,93,255,154,2,12, +3,95,255,154,2,12,3,97,255,215, +2,12,3,99,255,215,2,12,3,101, +255,215,2,12,3,103,255,215,2,12, +3,105,255,215,2,12,3,107,255,215, +2,12,3,109,255,215,2,12,3,111, +255,133,2,12,3,113,255,133,2,12, +3,115,255,133,2,12,3,143,255,113, +2,33,1,113,255,215,2,33,1,114, +255,236,2,33,1,120,255,236,2,33, +2,84,255,236,2,83,0,15,255,195, +2,83,0,17,255,195,2,83,2,8, +255,195,2,83,2,12,255,195,2,84, +0,15,255,133,2,84,0,17,255,133, +2,84,1,86,255,133,2,84,1,95, +255,133,2,84,1,98,255,133,2,84, +1,102,255,215,2,84,1,105,255,133, +2,84,1,109,255,215,2,84,1,115, +255,195,2,84,1,118,255,236,2,84, +1,121,255,154,2,84,1,122,255,174, +2,84,1,123,255,195,2,84,1,124, +255,195,2,84,1,125,255,195,2,84, +1,126,255,154,2,84,1,129,255,195, +2,84,1,130,255,174,2,84,1,132, +255,195,2,84,1,134,255,195,2,84, +1,135,255,195,2,84,1,137,255,195, +2,84,1,140,255,154,2,84,1,142, +255,154,2,84,1,143,255,154,2,84, +1,144,255,154,2,84,1,146,255,195, +2,84,1,147,255,154,2,84,1,149, +255,195,2,84,1,150,255,195,2,84, +1,152,255,195,2,84,1,153,255,154, +2,84,1,154,255,195,2,84,1,155, +255,195,2,84,2,8,255,133,2,84, +2,12,255,133,2,84,2,33,255,236, +2,88,0,5,255,113,2,88,0,10, +255,113,2,88,0,38,255,215,2,88, +0,42,255,215,2,88,0,45,1,10, +2,88,0,50,255,215,2,88,0,52, +255,215,2,88,0,55,255,113,2,88, +0,57,255,174,2,88,0,58,255,174, +2,88,0,60,255,133,2,88,0,137, +255,215,2,88,0,148,255,215,2,88, +0,149,255,215,2,88,0,150,255,215, +2,88,0,151,255,215,2,88,0,152, +255,215,2,88,0,154,255,215,2,88, +0,159,255,133,2,88,0,200,255,215, +2,88,0,202,255,215,2,88,0,204, +255,215,2,88,0,206,255,215,2,88, +0,222,255,215,2,88,0,224,255,215, +2,88,0,226,255,215,2,88,0,228, +255,215,2,88,1,14,255,215,2,88, +1,16,255,215,2,88,1,18,255,215, +2,88,1,20,255,215,2,88,1,36, +255,113,2,88,1,38,255,113,2,88, +1,54,255,174,2,88,1,56,255,133, +2,88,1,58,255,133,2,88,1,71, +255,215,2,88,1,250,255,174,2,88, +1,252,255,174,2,88,1,254,255,174, +2,88,2,0,255,133,2,88,2,7, +255,113,2,88,2,11,255,113,2,88, +2,95,255,215,2,88,3,73,255,215, +2,88,3,75,255,215,2,88,3,77, +255,215,2,88,3,79,255,215,2,88, +3,81,255,215,2,88,3,83,255,215, +2,88,3,85,255,215,2,88,3,87, +255,215,2,88,3,89,255,215,2,88, +3,91,255,215,2,88,3,93,255,215, +2,88,3,95,255,215,2,88,3,111, +255,133,2,88,3,113,255,133,2,88, +3,115,255,133,2,88,3,143,255,113, +2,89,0,5,255,236,2,89,0,10, +255,236,2,89,2,7,255,236,2,89, +2,11,255,236,2,90,0,15,255,174, +2,90,0,17,255,174,2,90,1,86, +255,215,2,90,1,95,255,215,2,90, +1,98,255,215,2,90,1,100,255,236, +2,90,1,105,255,215,2,90,1,112, +255,236,2,90,1,113,255,195,2,90, +1,114,255,236,2,90,1,116,255,215, +2,90,1,117,255,236,2,90,1,120, +255,236,2,90,1,136,255,236,2,90, +2,8,255,174,2,90,2,12,255,174, +2,90,2,84,255,236,2,96,0,73, +0,82,2,96,0,87,0,82,2,96, +0,89,0,102,2,96,0,90,0,102, +2,96,0,91,0,102,2,96,0,92, +0,102,2,96,0,191,0,102,2,96, +1,37,0,82,2,96,1,39,0,82, +2,96,1,55,0,102,2,96,1,251, +0,102,2,96,1,253,0,102,2,96, +2,52,0,82,2,96,2,53,0,82, +2,96,2,93,0,82,2,96,2,94, +0,82,2,96,3,112,0,102,2,96, +3,141,0,82,2,96,3,144,0,82, +2,98,0,73,0,102,2,98,0,87, +0,102,2,98,0,89,0,102,2,98, +0,90,0,102,2,98,0,91,0,102, +2,98,0,92,0,102,2,98,0,191, +0,102,2,98,1,37,0,102,2,98, +1,39,0,102,2,98,1,55,0,102, +2,98,1,251,0,102,2,98,1,253, +0,102,2,98,2,52,0,102,2,98, +2,53,0,102,2,98,2,93,0,102, +2,98,2,94,0,102,2,98,3,112, +0,102,2,98,3,141,0,102,2,98, +3,144,0,102,2,106,0,5,255,236, +2,106,0,10,255,236,2,106,2,7, +255,236,2,106,2,11,255,236,2,108, +0,15,255,174,2,108,0,17,255,174, +2,108,1,157,255,236,2,108,1,164, +255,215,2,108,1,166,255,236,2,108, +1,168,255,215,2,108,1,170,255,215, +2,108,1,174,255,215,2,108,1,176, +255,215,2,108,1,177,255,236,2,108, +1,181,255,215,2,108,1,188,255,195, +2,108,1,189,255,215,2,108,1,191, +255,215,2,108,1,193,255,215,2,108, +1,196,255,236,2,108,1,199,255,236, +2,108,1,206,255,236,2,108,1,213, +255,236,2,108,1,242,255,236,2,108, +2,8,255,174,2,108,2,12,255,174, +2,108,2,114,255,215,2,108,2,115, +255,236,2,108,2,122,255,236,2,108, +2,124,255,215,2,108,2,128,255,236, +2,108,2,130,255,236,2,108,2,159, +255,215,2,108,2,161,255,236,2,108, +2,169,255,236,2,108,2,181,255,195, +2,108,2,183,255,236,2,108,2,185, +255,236,2,108,2,187,255,215,2,108, +2,189,255,236,2,108,2,191,255,215, +2,108,2,193,255,215,2,108,2,202, +255,215,2,108,2,206,255,215,2,108, +2,207,255,236,2,108,2,212,255,215, +2,108,2,217,255,215,2,108,2,219, +255,215,2,108,2,221,255,215,2,108, +2,229,255,215,2,108,2,231,255,236, +2,108,2,245,255,236,2,108,2,247, +255,215,2,108,2,249,255,215,2,108, +2,251,255,215,2,108,2,253,255,215, +2,108,3,5,255,215,2,108,3,7, +255,215,2,108,3,13,255,215,2,108, +3,15,255,215,2,108,3,17,255,215, +2,108,3,18,255,236,2,108,3,23, +255,236,2,108,3,27,255,215,2,108, +3,28,255,236,2,109,0,15,255,174, +2,109,0,17,255,174,2,109,1,206, +255,215,2,109,1,213,255,215,2,109, +1,242,255,215,2,109,2,8,255,174, +2,109,2,12,255,174,2,109,2,115, +255,215,2,109,2,207,255,215,2,109, +3,18,255,215,2,109,3,28,255,215, +2,110,0,5,255,174,2,110,0,10, +255,174,2,110,1,157,255,215,2,110, +1,166,255,215,2,110,1,188,255,174, +2,110,1,193,255,174,2,110,1,196, +255,215,2,110,1,220,255,215,2,110, +1,228,255,215,2,110,2,7,255,174, +2,110,2,11,255,174,2,110,2,124, +255,174,2,110,2,128,255,195,2,110, +2,130,255,195,2,110,2,169,255,215, +2,110,2,170,255,215,2,110,2,181, +255,174,2,110,2,182,255,215,2,110, +2,183,255,195,2,110,2,185,255,195, +2,110,2,189,255,215,2,110,2,190, +255,215,2,110,2,191,255,174,2,110, +2,193,255,174,2,110,2,212,255,174, +2,110,2,253,255,174,2,110,3,13, +255,154,2,110,3,15,255,154,2,110, +3,23,255,215,2,110,3,24,255,215, +2,111,0,5,255,133,2,111,0,10, +255,133,2,111,1,208,255,215,2,111, +1,220,255,154,2,111,1,221,255,195, +2,111,1,223,255,215,2,111,1,225, +255,174,2,111,1,228,255,154,2,111, +1,246,255,195,2,111,2,7,255,133, +2,111,2,11,255,133,2,111,2,109, +255,215,2,111,2,129,255,215,2,111, +2,131,255,215,2,111,2,139,255,215, +2,111,2,160,255,215,2,111,2,170, +255,154,2,111,2,182,255,154,2,111, +2,184,255,195,2,111,2,186,255,195, +2,111,2,188,255,215,2,111,2,190, +255,154,2,111,2,192,255,174,2,111, +2,194,255,174,2,111,2,198,255,215, +2,111,2,200,255,215,2,111,2,203, +255,215,2,111,2,213,255,174,2,111, +2,230,255,215,2,111,2,234,255,215, +2,111,2,248,255,195,2,111,2,250, +255,195,2,111,2,252,255,195,2,111, +2,254,255,174,2,111,3,6,255,215, +2,111,3,8,255,215,2,111,3,14, +255,154,2,111,3,16,255,154,2,111, +3,24,255,154,2,112,1,159,255,215, +2,112,1,184,255,215,2,112,1,187, +255,215,2,112,1,190,255,215,2,112, +1,225,255,215,2,112,2,108,255,215, +2,112,2,126,255,215,2,112,2,132, +255,215,2,112,2,134,255,215,2,112, +2,136,255,215,2,112,2,138,255,215, +2,112,2,140,255,215,2,112,2,177, +255,215,2,112,2,179,255,215,2,112, +2,192,255,215,2,112,2,194,255,215, +2,112,2,197,255,215,2,112,2,199, +255,215,2,112,2,213,255,215,2,112, +2,239,255,215,2,112,2,241,255,215, +2,112,2,243,255,215,2,112,2,254, +255,215,2,112,3,9,255,215,2,112, +3,11,255,215,2,112,3,14,255,215, +2,112,3,16,255,215,2,112,3,21, +255,215,2,114,0,5,255,113,2,114, +0,10,255,113,2,114,1,157,255,154, +2,114,1,166,255,154,2,114,1,188, +255,113,2,114,1,190,255,215,2,114, +1,193,255,154,2,114,1,196,255,154, +2,114,1,220,255,215,2,114,1,225, +255,215,2,114,1,228,255,215,2,114, +2,7,255,113,2,114,2,11,255,113, +2,114,2,110,255,215,2,114,2,124, +255,154,2,114,2,128,255,174,2,114, +2,130,255,174,2,114,2,151,255,215, +2,114,2,155,255,215,2,114,2,167, +255,215,2,114,2,169,255,154,2,114, +2,170,255,215,2,114,2,181,255,113, +2,114,2,182,255,215,2,114,2,183, +255,133,2,114,2,185,255,133,2,114, +2,189,255,154,2,114,2,190,255,215, +2,114,2,191,255,154,2,114,2,192, +255,215,2,114,2,193,255,154,2,114, +2,194,255,215,2,114,2,197,255,154, +2,114,2,199,255,154,2,114,2,212, +255,154,2,114,2,213,255,215,2,114, +2,225,255,215,2,114,2,227,255,215, +2,114,2,253,255,154,2,114,2,254, +255,215,2,114,3,3,255,215,2,114, +3,13,255,113,2,114,3,14,255,215, +2,114,3,15,255,113,2,114,3,16, +255,215,2,114,3,23,255,154,2,114, +3,24,255,215,2,115,0,5,255,113, +2,115,0,10,255,113,2,115,1,207, +255,215,2,115,1,216,255,215,2,115, +1,219,255,215,2,115,1,220,255,154, +2,115,1,221,255,195,2,115,1,222, +255,215,2,115,1,225,255,195,2,115, +1,228,255,154,2,115,1,234,255,215, +2,115,1,237,255,215,2,115,1,246, +255,195,2,115,2,7,255,113,2,115, +2,11,255,113,2,115,2,106,255,215, +2,115,2,109,255,215,2,115,2,125, +255,236,2,115,2,127,255,215,2,115, +2,129,255,215,2,115,2,131,255,215, +2,115,2,133,255,215,2,115,2,135, +255,215,2,115,2,137,255,215,2,115, +2,139,255,215,2,115,2,141,255,215, +2,115,2,170,255,154,2,115,2,178, +255,215,2,115,2,180,255,215,2,115, +2,182,255,154,2,115,2,184,255,215, +2,115,2,186,255,215,2,115,2,190, +255,154,2,115,2,192,255,195,2,115, +2,194,255,195,2,115,2,198,255,215, +2,115,2,200,255,215,2,115,2,213, +255,195,2,115,2,224,255,215,2,115, +2,240,255,215,2,115,2,242,255,215, +2,115,2,244,255,215,2,115,2,248, +255,195,2,115,2,250,255,195,2,115, +2,252,255,195,2,115,2,254,255,195, +2,115,3,10,255,215,2,115,3,12, +255,215,2,115,3,14,255,133,2,115, +3,16,255,133,2,115,3,22,255,215, +2,115,3,24,255,154,2,115,3,26, +255,215,2,116,0,5,255,113,2,116, +0,10,255,113,2,116,1,157,255,154, +2,116,1,166,255,154,2,116,1,188, +255,113,2,116,1,190,255,215,2,116, +1,193,255,154,2,116,1,196,255,154, +2,116,1,220,255,215,2,116,1,225, +255,215,2,116,1,228,255,215,2,116, +2,7,255,113,2,116,2,11,255,113, +2,116,2,110,255,215,2,116,2,124, +255,154,2,116,2,128,255,174,2,116, +2,130,255,174,2,116,2,151,255,215, +2,116,2,155,255,215,2,116,2,167, +255,215,2,116,2,169,255,154,2,116, +2,170,255,215,2,116,2,181,255,113, +2,116,2,182,255,215,2,116,2,183, +255,133,2,116,2,185,255,133,2,116, +2,189,255,154,2,116,2,190,255,215, +2,116,2,191,255,154,2,116,2,192, +255,215,2,116,2,193,255,154,2,116, +2,194,255,215,2,116,2,197,255,154, +2,116,2,199,255,154,2,116,2,212, +255,154,2,116,2,213,255,215,2,116, +2,225,255,215,2,116,2,227,255,215, +2,116,2,253,255,154,2,116,2,254, +255,215,2,116,3,3,255,215,2,116, +3,13,255,113,2,116,3,14,255,215, +2,116,3,15,255,113,2,116,3,16, +255,215,2,116,3,23,255,154,2,116, +3,24,255,215,2,117,0,5,255,113, +2,117,0,10,255,113,2,117,1,207, +255,215,2,117,1,216,255,215,2,117, +1,219,255,215,2,117,1,220,255,154, +2,117,1,221,255,195,2,117,1,222, +255,215,2,117,1,225,255,195,2,117, +1,228,255,154,2,117,1,234,255,215, +2,117,1,237,255,215,2,117,1,246, +255,195,2,117,2,7,255,113,2,117, +2,11,255,113,2,117,2,106,255,215, +2,117,2,109,255,215,2,117,2,125, +255,236,2,117,2,127,255,215,2,117, +2,129,255,215,2,117,2,131,255,215, +2,117,2,133,255,215,2,117,2,135, +255,215,2,117,2,137,255,215,2,117, +2,139,255,215,2,117,2,141,255,215, +2,117,2,170,255,154,2,117,2,178, +255,215,2,117,2,180,255,215,2,117, +2,182,255,154,2,117,2,184,255,215, +2,117,2,186,255,215,2,117,2,190, +255,154,2,117,2,192,255,195,2,117, +2,194,255,195,2,117,2,198,255,215, +2,117,2,200,255,215,2,117,2,213, +255,195,2,117,2,224,255,215,2,117, +2,240,255,215,2,117,2,242,255,215, +2,117,2,244,255,215,2,117,2,248, +255,195,2,117,2,250,255,195,2,117, +2,252,255,195,2,117,2,254,255,195, +2,117,3,10,255,215,2,117,3,12, +255,215,2,117,3,14,255,133,2,117, +3,16,255,133,2,117,3,22,255,215, +2,117,3,24,255,154,2,117,3,26, +255,215,2,118,3,13,255,236,2,118, +3,15,255,236,2,120,3,13,255,236, +2,120,3,15,255,236,2,122,0,15, +255,174,2,122,0,17,255,174,2,122, +2,8,255,174,2,122,2,12,255,174, +2,122,2,128,255,236,2,122,2,130, +255,236,2,122,2,183,255,236,2,122, +2,185,255,236,2,122,3,13,255,215, +2,122,3,15,255,215,2,124,0,15, +255,113,2,124,0,17,255,113,2,124, +1,164,255,195,2,124,1,170,255,174, +2,124,1,174,255,195,2,124,1,181, +255,195,2,124,1,206,255,215,2,124, +1,213,255,215,2,124,1,242,255,215, +2,124,2,8,255,113,2,124,2,12, +255,113,2,124,2,114,255,174,2,124, +2,115,255,215,2,124,2,206,255,195, +2,124,2,207,255,215,2,124,2,217, +255,174,2,124,2,219,255,174,2,124, +2,221,255,174,2,124,3,9,255,174, +2,124,3,11,255,174,2,124,3,17, +255,195,2,124,3,18,255,215,2,124, +3,27,255,195,2,124,3,28,255,215, +2,125,0,5,255,236,2,125,0,10, +255,236,2,125,1,208,255,215,2,125, +1,220,255,236,2,125,1,221,255,236, +2,125,1,223,255,215,2,125,1,225, +255,236,2,125,1,228,255,236,2,125, +1,246,255,236,2,125,2,7,255,236, +2,125,2,11,255,236,2,125,2,160, +255,215,2,125,2,170,255,236,2,125, +2,182,255,236,2,125,2,188,255,215, +2,125,2,190,255,236,2,125,2,192, +255,236,2,125,2,194,255,236,2,125, +2,203,255,215,2,125,2,213,255,236, +2,125,2,230,255,215,2,125,2,248, +255,236,2,125,2,250,255,236,2,125, +2,252,255,236,2,125,2,254,255,236, +2,125,3,6,255,215,2,125,3,8, +255,215,2,125,3,14,255,236,2,125, +3,16,255,236,2,125,3,24,255,236, +2,126,0,15,255,174,2,126,0,17, +255,174,2,126,1,157,255,236,2,126, +1,164,255,215,2,126,1,166,255,236, +2,126,1,168,255,215,2,126,1,170, +255,215,2,126,1,174,255,215,2,126, +1,176,255,215,2,126,1,177,255,236, +2,126,1,181,255,215,2,126,1,188, +255,195,2,126,1,189,255,215,2,126, +1,191,255,215,2,126,1,193,255,215, +2,126,1,196,255,236,2,126,1,199, +255,236,2,126,1,206,255,236,2,126, +1,213,255,236,2,126,1,242,255,236, +2,126,2,8,255,174,2,126,2,12, +255,174,2,126,2,114,255,215,2,126, +2,115,255,236,2,126,2,122,255,236, +2,126,2,124,255,215,2,126,2,128, +255,236,2,126,2,130,255,236,2,126, +2,159,255,215,2,126,2,161,255,236, +2,126,2,169,255,236,2,126,2,181, +255,195,2,126,2,183,255,236,2,126, +2,185,255,236,2,126,2,187,255,215, +2,126,2,189,255,236,2,126,2,191, +255,215,2,126,2,193,255,215,2,126, +2,202,255,215,2,126,2,206,255,215, +2,126,2,207,255,236,2,126,2,212, +255,215,2,126,2,217,255,215,2,126, +2,219,255,215,2,126,2,221,255,215, +2,126,2,229,255,215,2,126,2,231, +255,236,2,126,2,245,255,236,2,126, +2,247,255,215,2,126,2,249,255,215, +2,126,2,251,255,215,2,126,2,253, +255,215,2,126,3,5,255,215,2,126, +3,7,255,215,2,126,3,13,255,215, +2,126,3,15,255,215,2,126,3,17, +255,215,2,126,3,18,255,236,2,126, +3,23,255,236,2,126,3,27,255,215, +2,126,3,28,255,236,2,127,0,5, +255,236,2,127,0,10,255,236,2,127, +1,208,255,215,2,127,1,220,255,236, +2,127,1,221,255,236,2,127,1,223, +255,215,2,127,1,225,255,236,2,127, +1,228,255,236,2,127,1,246,255,236, +2,127,2,7,255,236,2,127,2,11, +255,236,2,127,2,160,255,215,2,127, +2,170,255,236,2,127,2,182,255,236, +2,127,2,188,255,215,2,127,2,190, +255,236,2,127,2,192,255,236,2,127, +2,194,255,236,2,127,2,203,255,215, +2,127,2,213,255,236,2,127,2,230, +255,215,2,127,2,248,255,236,2,127, +2,250,255,236,2,127,2,252,255,236, +2,127,2,254,255,236,2,127,3,6, +255,215,2,127,3,8,255,215,2,127, +3,14,255,236,2,127,3,16,255,236, +2,127,3,24,255,236,2,128,0,15, +255,133,2,128,0,17,255,133,2,128, +1,159,255,236,2,128,1,164,255,154, +2,128,1,170,255,113,2,128,1,174, +255,154,2,128,1,181,255,154,2,128, +1,184,255,236,2,128,1,187,255,236, +2,128,1,190,255,195,2,128,1,201, +255,236,2,128,1,206,255,174,2,128, +1,207,255,215,2,128,1,213,255,174, +2,128,1,216,255,215,2,128,1,219, +255,215,2,128,1,222,255,215,2,128, +1,225,255,215,2,128,1,234,255,215, +2,128,1,235,0,102,2,128,1,237, +255,215,2,128,1,238,255,236,2,128, +1,242,255,174,2,128,1,244,0,102, +2,128,2,8,255,133,2,128,2,12, +255,133,2,128,2,106,255,215,2,128, +2,108,255,236,2,128,2,114,255,113, +2,128,2,115,255,174,2,128,2,126, +255,236,2,128,2,127,255,215,2,128, +2,132,255,236,2,128,2,133,255,215, +2,128,2,134,255,236,2,128,2,135, +255,215,2,128,2,136,255,236,2,128, +2,137,255,215,2,128,2,138,255,236, +2,128,2,140,255,236,2,128,2,141, +255,215,2,128,2,152,0,102,2,128, +2,168,0,102,2,128,2,177,255,236, +2,128,2,178,255,215,2,128,2,179, +255,236,2,128,2,180,255,215,2,128, +2,192,255,215,2,128,2,194,255,215, +2,128,2,197,255,215,2,128,2,198, +255,195,2,128,2,199,255,215,2,128, +2,200,255,195,2,128,2,206,255,154, +2,128,2,207,255,174,2,128,2,213, +255,215,2,128,2,217,255,113,2,128, +2,219,255,113,2,128,2,221,255,113, +2,128,2,224,255,215,2,128,2,239, +255,236,2,128,2,240,255,215,2,128, +2,241,255,236,2,128,2,242,255,215, +2,128,2,243,255,236,2,128,2,244, +255,215,2,128,2,254,255,215,2,128, +3,9,255,113,2,128,3,10,255,215, +2,128,3,11,255,113,2,128,3,12, +255,215,2,128,3,17,255,154,2,128, +3,18,255,174,2,128,3,21,255,236, +2,128,3,22,255,215,2,128,3,26, +255,215,2,128,3,27,255,154,2,128, +3,28,255,174,2,129,0,15,255,174, +2,129,0,17,255,174,2,129,1,206, +255,215,2,129,1,213,255,215,2,129, +1,242,255,215,2,129,2,8,255,174, +2,129,2,12,255,174,2,129,2,115, +255,215,2,129,2,207,255,215,2,129, +3,18,255,215,2,129,3,28,255,215, +2,130,0,15,255,133,2,130,0,17, +255,133,2,130,1,159,255,236,2,130, +1,164,255,154,2,130,1,170,255,113, +2,130,1,174,255,154,2,130,1,181, +255,154,2,130,1,184,255,236,2,130, +1,187,255,236,2,130,1,190,255,195, +2,130,1,201,255,236,2,130,1,206, +255,174,2,130,1,207,255,215,2,130, +1,213,255,174,2,130,1,216,255,215, +2,130,1,219,255,215,2,130,1,222, +255,215,2,130,1,225,255,215,2,130, +1,234,255,215,2,130,1,235,0,102, +2,130,1,237,255,215,2,130,1,238, +255,236,2,130,1,242,255,174,2,130, +1,244,0,102,2,130,2,8,255,133, +2,130,2,12,255,133,2,130,2,106, +255,215,2,130,2,108,255,236,2,130, +2,114,255,113,2,130,2,115,255,174, +2,130,2,126,255,236,2,130,2,127, +255,215,2,130,2,132,255,236,2,130, +2,133,255,215,2,130,2,134,255,236, +2,130,2,135,255,215,2,130,2,136, +255,236,2,130,2,137,255,215,2,130, +2,138,255,236,2,130,2,140,255,236, +2,130,2,141,255,215,2,130,2,152, +0,102,2,130,2,168,0,102,2,130, +2,177,255,236,2,130,2,178,255,215, +2,130,2,179,255,236,2,130,2,180, +255,215,2,130,2,192,255,215,2,130, +2,194,255,215,2,130,2,197,255,215, +2,130,2,198,255,195,2,130,2,199, +255,215,2,130,2,200,255,195,2,130, +2,206,255,154,2,130,2,207,255,174, +2,130,2,213,255,215,2,130,2,217, +255,113,2,130,2,219,255,113,2,130, +2,221,255,113,2,130,2,224,255,215, +2,130,2,239,255,236,2,130,2,240, +255,215,2,130,2,241,255,236,2,130, +2,242,255,215,2,130,2,243,255,236, +2,130,2,244,255,215,2,130,2,254, +255,215,2,130,3,9,255,113,2,130, +3,10,255,215,2,130,3,11,255,113, +2,130,3,12,255,215,2,130,3,17, +255,154,2,130,3,18,255,174,2,130, +3,21,255,236,2,130,3,22,255,215, +2,130,3,26,255,215,2,130,3,27, +255,154,2,130,3,28,255,174,2,131, +0,15,255,174,2,131,0,17,255,174, +2,131,1,206,255,215,2,131,1,213, +255,215,2,131,1,242,255,215,2,131, +2,8,255,174,2,131,2,12,255,174, +2,131,2,115,255,215,2,131,2,207, +255,215,2,131,3,18,255,215,2,131, +3,28,255,215,2,132,0,15,255,174, +2,132,0,17,255,174,2,132,1,206, +255,215,2,132,1,213,255,215,2,132, +1,242,255,215,2,132,2,8,255,174, +2,132,2,12,255,174,2,132,2,115, +255,215,2,132,2,207,255,215,2,132, +3,18,255,215,2,132,3,28,255,215, +2,133,0,15,255,174,2,133,0,17, +255,174,2,133,1,206,255,215,2,133, +1,213,255,215,2,133,1,242,255,215, +2,133,2,8,255,174,2,133,2,12, +255,174,2,133,2,115,255,215,2,133, +2,207,255,215,2,133,3,18,255,215, +2,133,3,28,255,215,2,134,0,15, +255,174,2,134,0,17,255,174,2,134, +1,157,255,236,2,134,1,164,255,215, +2,134,1,166,255,236,2,134,1,168, +255,215,2,134,1,170,255,215,2,134, +1,174,255,215,2,134,1,176,255,215, +2,134,1,177,255,236,2,134,1,181, +255,215,2,134,1,188,255,195,2,134, +1,189,255,215,2,134,1,191,255,215, +2,134,1,193,255,215,2,134,1,196, +255,236,2,134,1,199,255,236,2,134, +1,206,255,236,2,134,1,213,255,236, +2,134,1,242,255,236,2,134,2,8, +255,174,2,134,2,12,255,174,2,134, +2,114,255,215,2,134,2,115,255,236, +2,134,2,122,255,236,2,134,2,124, +255,215,2,134,2,128,255,236,2,134, +2,130,255,236,2,134,2,159,255,215, +2,134,2,161,255,236,2,134,2,169, +255,236,2,134,2,181,255,195,2,134, +2,183,255,236,2,134,2,185,255,236, +2,134,2,187,255,215,2,134,2,189, +255,236,2,134,2,191,255,215,2,134, +2,193,255,215,2,134,2,202,255,215, +2,134,2,206,255,215,2,134,2,207, +255,236,2,134,2,212,255,215,2,134, +2,217,255,215,2,134,2,219,255,215, +2,134,2,221,255,215,2,134,2,229, +255,215,2,134,2,231,255,236,2,134, +2,245,255,236,2,134,2,247,255,215, +2,134,2,249,255,215,2,134,2,251, +255,215,2,134,2,253,255,215,2,134, +3,5,255,215,2,134,3,7,255,215, +2,134,3,13,255,215,2,134,3,15, +255,215,2,134,3,17,255,215,2,134, +3,18,255,236,2,134,3,23,255,236, +2,134,3,27,255,215,2,134,3,28, +255,236,2,135,0,5,255,236,2,135, +0,10,255,236,2,135,1,208,255,215, +2,135,1,220,255,236,2,135,1,221, +255,236,2,135,1,223,255,215,2,135, +1,225,255,236,2,135,1,228,255,236, +2,135,1,246,255,236,2,135,2,7, +255,236,2,135,2,11,255,236,2,135, +2,160,255,215,2,135,2,170,255,236, +2,135,2,182,255,236,2,135,2,188, +255,215,2,135,2,190,255,236,2,135, +2,192,255,236,2,135,2,194,255,236, +2,135,2,203,255,215,2,135,2,213, +255,236,2,135,2,230,255,215,2,135, +2,248,255,236,2,135,2,250,255,236, +2,135,2,252,255,236,2,135,2,254, +255,236,2,135,3,6,255,215,2,135, +3,8,255,215,2,135,3,14,255,236, +2,135,3,16,255,236,2,135,3,24, +255,236,2,136,0,15,255,174,2,136, +0,17,255,174,2,136,1,157,255,236, +2,136,1,164,255,215,2,136,1,166, +255,236,2,136,1,168,255,215,2,136, +1,170,255,215,2,136,1,174,255,215, +2,136,1,176,255,215,2,136,1,177, +255,236,2,136,1,181,255,215,2,136, +1,188,255,195,2,136,1,189,255,215, +2,136,1,191,255,215,2,136,1,193, +255,215,2,136,1,196,255,236,2,136, +1,199,255,236,2,136,1,206,255,236, +2,136,1,213,255,236,2,136,1,242, +255,236,2,136,2,8,255,174,2,136, +2,12,255,174,2,136,2,114,255,215, +2,136,2,115,255,236,2,136,2,122, +255,236,2,136,2,124,255,215,2,136, +2,128,255,236,2,136,2,130,255,236, +2,136,2,159,255,215,2,136,2,161, +255,236,2,136,2,169,255,236,2,136, +2,181,255,195,2,136,2,183,255,236, +2,136,2,185,255,236,2,136,2,187, +255,215,2,136,2,189,255,236,2,136, +2,191,255,215,2,136,2,193,255,215, +2,136,2,202,255,215,2,136,2,206, +255,215,2,136,2,207,255,236,2,136, +2,212,255,215,2,136,2,217,255,215, +2,136,2,219,255,215,2,136,2,221, +255,215,2,136,2,229,255,215,2,136, +2,231,255,236,2,136,2,245,255,236, +2,136,2,247,255,215,2,136,2,249, +255,215,2,136,2,251,255,215,2,136, +2,253,255,215,2,136,3,5,255,215, +2,136,3,7,255,215,2,136,3,13, +255,215,2,136,3,15,255,215,2,136, +3,17,255,215,2,136,3,18,255,236, +2,136,3,23,255,236,2,136,3,27, +255,215,2,136,3,28,255,236,2,137, +0,5,255,236,2,137,0,10,255,236, +2,137,1,208,255,215,2,137,1,220, +255,236,2,137,1,221,255,236,2,137, +1,223,255,215,2,137,1,225,255,236, +2,137,1,228,255,236,2,137,1,246, +255,236,2,137,2,7,255,236,2,137, +2,11,255,236,2,137,2,160,255,215, +2,137,2,170,255,236,2,137,2,182, +255,236,2,137,2,188,255,215,2,137, +2,190,255,236,2,137,2,192,255,236, +2,137,2,194,255,236,2,137,2,203, +255,215,2,137,2,213,255,236,2,137, +2,230,255,215,2,137,2,248,255,236, +2,137,2,250,255,236,2,137,2,252, +255,236,2,137,2,254,255,236,2,137, +3,6,255,215,2,137,3,8,255,215, +2,137,3,14,255,236,2,137,3,16, +255,236,2,137,3,24,255,236,2,138, +0,15,255,174,2,138,0,17,255,174, +2,138,1,157,255,236,2,138,1,164, +255,215,2,138,1,166,255,236,2,138, +1,168,255,215,2,138,1,170,255,215, +2,138,1,174,255,215,2,138,1,176, +255,215,2,138,1,177,255,236,2,138, +1,181,255,215,2,138,1,188,255,195, +2,138,1,189,255,215,2,138,1,191, +255,215,2,138,1,193,255,215,2,138, +1,196,255,236,2,138,1,199,255,236, +2,138,1,206,255,236,2,138,1,213, +255,236,2,138,1,242,255,236,2,138, +2,8,255,174,2,138,2,12,255,174, +2,138,2,114,255,215,2,138,2,115, +255,236,2,138,2,122,255,236,2,138, +2,124,255,215,2,138,2,128,255,236, +2,138,2,130,255,236,2,138,2,159, +255,215,2,138,2,161,255,236,2,138, +2,169,255,236,2,138,2,181,255,195, +2,138,2,183,255,236,2,138,2,185, +255,236,2,138,2,187,255,215,2,138, +2,189,255,236,2,138,2,191,255,215, +2,138,2,193,255,215,2,138,2,202, +255,215,2,138,2,206,255,215,2,138, +2,207,255,236,2,138,2,212,255,215, +2,138,2,217,255,215,2,138,2,219, +255,215,2,138,2,221,255,215,2,138, +2,229,255,215,2,138,2,231,255,236, +2,138,2,245,255,236,2,138,2,247, +255,215,2,138,2,249,255,215,2,138, +2,251,255,215,2,138,2,253,255,215, +2,138,3,5,255,215,2,138,3,7, +255,215,2,138,3,13,255,215,2,138, +3,15,255,215,2,138,3,17,255,215, +2,138,3,18,255,236,2,138,3,23, +255,236,2,138,3,27,255,215,2,138, +3,28,255,236,2,139,0,15,255,174, +2,139,0,17,255,174,2,139,1,206, +255,215,2,139,1,213,255,215,2,139, +1,242,255,215,2,139,2,8,255,174, +2,139,2,12,255,174,2,139,2,115, +255,215,2,139,2,207,255,215,2,139, +3,18,255,215,2,139,3,28,255,215, +2,140,1,159,255,215,2,140,1,184, +255,215,2,140,1,187,255,215,2,140, +1,190,255,215,2,140,1,225,255,215, +2,140,2,108,255,215,2,140,2,126, +255,215,2,140,2,132,255,215,2,140, +2,134,255,215,2,140,2,136,255,215, +2,140,2,138,255,215,2,140,2,140, +255,215,2,140,2,177,255,215,2,140, +2,179,255,215,2,140,2,192,255,215, +2,140,2,194,255,215,2,140,2,197, +255,215,2,140,2,199,255,215,2,140, +2,213,255,215,2,140,2,239,255,215, +2,140,2,241,255,215,2,140,2,243, +255,215,2,140,2,254,255,215,2,140, +3,9,255,215,2,140,3,11,255,215, +2,140,3,14,255,215,2,140,3,16, +255,215,2,140,3,21,255,215,2,149, +1,163,0,225,2,149,2,234,0,41, +2,149,3,14,255,215,2,149,3,16, +255,215,2,150,0,5,255,236,2,150, +0,10,255,236,2,150,2,7,255,236, +2,150,2,11,255,236,2,151,0,5, +255,174,2,151,0,10,255,174,2,151, +1,157,255,215,2,151,1,166,255,215, +2,151,1,188,255,174,2,151,1,193, +255,174,2,151,1,196,255,215,2,151, +1,220,255,215,2,151,1,228,255,215, +2,151,2,7,255,174,2,151,2,11, +255,174,2,151,2,124,255,174,2,151, +2,128,255,195,2,151,2,130,255,195, +2,151,2,169,255,215,2,151,2,170, +255,215,2,151,2,181,255,174,2,151, +2,182,255,215,2,151,2,183,255,195, +2,151,2,185,255,195,2,151,2,189, +255,215,2,151,2,190,255,215,2,151, +2,191,255,174,2,151,2,193,255,174, +2,151,2,212,255,174,2,151,2,253, +255,174,2,151,3,13,255,154,2,151, +3,15,255,154,2,151,3,23,255,215, +2,151,3,24,255,215,2,152,0,5, +255,133,2,152,0,10,255,133,2,152, +1,208,255,215,2,152,1,220,255,154, +2,152,1,221,255,195,2,152,1,223, +255,215,2,152,1,225,255,174,2,152, +1,228,255,154,2,152,1,246,255,195, +2,152,2,7,255,133,2,152,2,11, +255,133,2,152,2,109,255,215,2,152, +2,129,255,215,2,152,2,131,255,215, +2,152,2,139,255,215,2,152,2,160, +255,215,2,152,2,170,255,154,2,152, +2,182,255,154,2,152,2,184,255,195, +2,152,2,186,255,195,2,152,2,188, +255,215,2,152,2,190,255,154,2,152, +2,192,255,174,2,152,2,194,255,174, +2,152,2,198,255,215,2,152,2,200, +255,215,2,152,2,203,255,215,2,152, +2,213,255,174,2,152,2,230,255,215, +2,152,2,234,255,215,2,152,2,248, +255,195,2,152,2,250,255,195,2,152, +2,252,255,195,2,152,2,254,255,174, +2,152,3,6,255,215,2,152,3,8, +255,215,2,152,3,14,255,154,2,152, +3,16,255,154,2,152,3,24,255,154, +2,153,0,15,254,246,2,153,0,17, +254,246,2,153,1,164,255,133,2,153, +1,170,255,154,2,153,1,174,255,133, +2,153,1,176,255,215,2,153,1,181, +255,133,2,153,1,191,255,215,2,153, +1,206,255,154,2,153,1,213,255,154, +2,153,1,242,255,154,2,153,2,8, +254,246,2,153,2,12,254,246,2,153, +2,114,255,154,2,153,2,115,255,154, +2,153,2,118,255,236,2,153,2,159, +255,215,2,153,2,187,255,215,2,153, +2,202,255,215,2,153,2,206,255,133, +2,153,2,207,255,154,2,153,2,217, +255,154,2,153,2,219,255,154,2,153, +2,221,255,154,2,153,2,229,255,215, +2,153,3,5,255,215,2,153,3,7, +255,215,2,153,3,9,255,174,2,153, +3,11,255,174,2,153,3,17,255,133, +2,153,3,18,255,154,2,153,3,27, +255,133,2,153,3,28,255,154,2,154, +0,5,255,236,2,154,0,10,255,236, +2,154,1,208,255,215,2,154,1,220, +255,236,2,154,1,221,255,236,2,154, +1,223,255,215,2,154,1,225,255,236, +2,154,1,228,255,236,2,154,1,246, +255,236,2,154,2,7,255,236,2,154, +2,11,255,236,2,154,2,160,255,215, +2,154,2,170,255,236,2,154,2,182, +255,236,2,154,2,188,255,215,2,154, +2,190,255,236,2,154,2,192,255,236, +2,154,2,194,255,236,2,154,2,203, +255,215,2,154,2,213,255,236,2,154, +2,230,255,215,2,154,2,248,255,236, +2,154,2,250,255,236,2,154,2,252, +255,236,2,154,2,254,255,236,2,154, +3,6,255,215,2,154,3,8,255,215, +2,154,3,14,255,236,2,154,3,16, +255,236,2,154,3,24,255,236,2,155, +0,15,255,154,2,155,0,16,255,215, +2,155,0,17,255,154,2,155,1,157, +0,41,2,155,1,159,255,215,2,155, +1,164,255,174,2,155,1,166,0,41, +2,155,1,170,255,133,2,155,1,174, +255,174,2,155,1,181,255,174,2,155, +1,184,255,215,2,155,1,187,255,215, +2,155,1,188,0,41,2,155,1,190, +255,195,2,155,1,196,0,41,2,155, +1,204,255,195,2,155,1,205,255,195, +2,155,1,206,255,154,2,155,1,207, +255,174,2,155,1,208,255,215,2,155, +1,209,255,215,2,155,1,210,255,195, +2,155,1,211,255,195,2,155,1,212, +255,195,2,155,1,213,255,154,2,155, +1,214,255,195,2,155,1,215,255,195, +2,155,1,216,255,174,2,155,1,217, +255,195,2,155,1,218,255,195,2,155, +1,219,255,174,2,155,1,222,255,174, +2,155,1,223,255,215,2,155,1,224, +255,195,2,155,1,225,255,154,2,155, +1,226,255,195,2,155,1,227,255,195, +2,155,1,229,255,195,2,155,1,230, +255,195,2,155,1,231,255,215,2,155, +1,232,255,195,2,155,1,234,255,174, +2,155,1,235,0,41,2,155,1,236, +255,195,2,155,1,237,255,174,2,155, +1,238,255,195,2,155,1,242,255,154, +2,155,1,243,255,195,2,155,1,244, +0,41,2,155,1,245,255,195,2,155, +1,247,255,195,2,155,1,249,255,195, +2,155,2,2,255,215,2,155,2,3, +255,215,2,155,2,4,255,215,2,155, +2,8,255,154,2,155,2,12,255,154, +2,155,2,106,255,174,2,155,2,107, +255,195,2,155,2,108,255,215,2,155, +2,113,255,195,2,155,2,114,255,133, +2,155,2,115,255,154,2,155,2,117, +255,195,2,155,2,119,255,215,2,155, +2,121,255,195,2,155,2,125,255,195, +2,155,2,126,255,215,2,155,2,127, +255,174,2,155,2,132,255,215,2,155, +2,133,255,174,2,155,2,134,255,215, +2,155,2,135,255,174,2,155,2,136, +255,215,2,155,2,137,255,174,2,155, +2,138,255,215,2,155,2,140,255,215, +2,155,2,141,255,174,2,155,2,150, +255,195,2,155,2,152,0,41,2,155, +2,154,255,195,2,155,2,158,255,195, +2,155,2,160,255,215,2,155,2,162, +255,215,2,155,2,164,255,195,2,155, +2,166,255,195,2,155,2,168,0,41, +2,155,2,169,0,41,2,155,2,172, +255,195,2,155,2,174,255,195,2,155, +2,176,255,195,2,155,2,177,255,215, +2,155,2,178,255,174,2,155,2,179, +255,215,2,155,2,180,255,174,2,155, +2,181,0,41,2,155,2,188,255,215, +2,155,2,189,0,41,2,155,2,192, +255,154,2,155,2,194,255,154,2,155, +2,196,255,195,2,155,2,197,255,215, +2,155,2,198,255,195,2,155,2,199, +255,215,2,155,2,200,255,195,2,155, +2,203,255,215,2,155,2,205,255,195, +2,155,2,206,255,174,2,155,2,207, +255,154,2,155,2,209,255,195,2,155, +2,211,255,195,2,155,2,213,255,154, +2,155,2,215,255,195,2,155,2,217, +255,133,2,155,2,219,255,133,2,155, +2,221,255,133,2,155,2,224,255,174, +2,155,2,230,255,215,2,155,2,232, +255,215,2,155,2,236,255,195,2,155, +2,238,255,195,2,155,2,239,255,215, +2,155,2,240,255,174,2,155,2,241, +255,215,2,155,2,242,255,174,2,155, +2,243,255,215,2,155,2,244,255,174, +2,155,2,246,255,215,2,155,2,254, +255,154,2,155,3,0,255,195,2,155, +3,2,255,195,2,155,3,6,255,215, +2,155,3,8,255,215,2,155,3,9, +255,154,2,155,3,10,255,174,2,155, +3,11,255,154,2,155,3,12,255,174, +2,155,3,14,255,215,2,155,3,16, +255,215,2,155,3,17,255,174,2,155, +3,18,255,154,2,155,3,20,255,195, +2,155,3,21,255,215,2,155,3,22, +255,174,2,155,3,23,0,41,2,155, +3,26,255,174,2,155,3,27,255,174, +2,155,3,28,255,154,2,156,0,15, +255,195,2,156,0,17,255,195,2,156, +1,206,255,195,2,156,1,207,255,215, +2,156,1,213,255,195,2,156,1,216, +255,215,2,156,1,219,255,215,2,156, +1,222,255,215,2,156,1,234,255,215, +2,156,1,237,255,215,2,156,1,242, +255,195,2,156,2,8,255,195,2,156, +2,12,255,195,2,156,2,106,255,215, +2,156,2,115,255,195,2,156,2,127, +255,215,2,156,2,133,255,215,2,156, +2,135,255,215,2,156,2,137,255,215, +2,156,2,141,255,215,2,156,2,178, +255,215,2,156,2,180,255,215,2,156, +2,207,255,195,2,156,2,224,255,215, +2,156,2,240,255,215,2,156,2,242, +255,215,2,156,2,244,255,215,2,156, +3,10,255,215,2,156,3,12,255,215, +2,156,3,18,255,195,2,156,3,22, +255,215,2,156,3,26,255,215,2,156, +3,28,255,195,2,157,0,5,255,195, +2,157,0,10,255,195,2,157,1,157, +255,195,2,157,1,163,0,102,2,157, +1,166,255,195,2,157,1,188,255,195, +2,157,1,193,255,174,2,157,1,196, +255,195,2,157,1,220,255,215,2,157, +1,225,255,215,2,157,1,228,255,215, +2,157,2,7,255,195,2,157,2,11, +255,195,2,157,2,124,255,174,2,157, +2,128,255,195,2,157,2,130,255,195, +2,157,2,169,255,195,2,157,2,170, +255,215,2,157,2,181,255,195,2,157, +2,182,255,215,2,157,2,183,255,215, +2,157,2,185,255,215,2,157,2,189, +255,195,2,157,2,190,255,215,2,157, +2,191,255,174,2,157,2,192,255,215, +2,157,2,193,255,174,2,157,2,194, +255,215,2,157,2,212,255,174,2,157, +2,213,255,215,2,157,2,253,255,174, +2,157,2,254,255,215,2,157,3,13, +255,215,2,157,3,14,255,195,2,157, +3,15,255,215,2,157,3,16,255,195, +2,157,3,23,255,195,2,157,3,24, +255,215,2,158,0,5,255,195,2,158, +0,10,255,195,2,158,2,7,255,195, +2,158,2,11,255,195,2,158,3,14, +255,215,2,158,3,16,255,215,2,159, +1,159,255,215,2,159,1,163,0,225, +2,159,1,184,255,215,2,159,1,187, +255,215,2,159,1,190,255,195,2,159, +1,220,255,215,2,159,1,225,255,174, +2,159,1,228,255,215,2,159,2,108, +255,215,2,159,2,123,0,61,2,159, +2,125,255,236,2,159,2,126,255,215, +2,159,2,132,255,215,2,159,2,134, +255,215,2,159,2,136,255,215,2,159, +2,138,255,215,2,159,2,140,255,215, +2,159,2,170,255,215,2,159,2,177, +255,215,2,159,2,179,255,215,2,159, +2,182,255,215,2,159,2,190,255,215, +2,159,2,192,255,174,2,159,2,194, +255,174,2,159,2,197,255,195,2,159, +2,198,255,215,2,159,2,199,255,195, +2,159,2,200,255,215,2,159,2,213, +255,174,2,159,2,239,255,215,2,159, +2,241,255,215,2,159,2,243,255,215, +2,159,2,254,255,174,2,159,3,14, +255,215,2,159,3,16,255,215,2,159, +3,21,255,215,2,159,3,24,255,215, +2,160,1,207,255,236,2,160,1,216, +255,236,2,160,1,219,255,236,2,160, +1,222,255,236,2,160,1,225,255,236, +2,160,1,234,255,236,2,160,1,237, +255,236,2,160,2,106,255,236,2,160, +2,127,255,236,2,160,2,133,255,236, +2,160,2,135,255,236,2,160,2,137, +255,236,2,160,2,141,255,236,2,160, +2,178,255,236,2,160,2,180,255,236, +2,160,2,192,255,236,2,160,2,194, +255,236,2,160,2,213,255,236,2,160, +2,224,255,236,2,160,2,240,255,236, +2,160,2,242,255,236,2,160,2,244, +255,236,2,160,2,254,255,236,2,160, +3,10,255,236,2,160,3,12,255,236, +2,160,3,14,255,215,2,160,3,16, +255,215,2,160,3,22,255,236,2,160, +3,26,255,236,2,161,0,15,255,174, +2,161,0,17,255,174,2,161,2,8, +255,174,2,161,2,12,255,174,2,161, +2,128,255,236,2,161,2,130,255,236, +2,161,2,183,255,236,2,161,2,185, +255,236,2,161,3,13,255,215,2,161, +3,15,255,215,2,162,1,233,0,41, +2,163,1,159,255,215,2,163,1,163, +0,225,2,163,1,184,255,215,2,163, +1,187,255,215,2,163,1,190,255,195, +2,163,1,220,255,215,2,163,1,225, +255,174,2,163,1,228,255,215,2,163, +2,108,255,215,2,163,2,123,0,61, +2,163,2,125,255,236,2,163,2,126, +255,215,2,163,2,132,255,215,2,163, +2,134,255,215,2,163,2,136,255,215, +2,163,2,138,255,215,2,163,2,140, +255,215,2,163,2,170,255,215,2,163, +2,177,255,215,2,163,2,179,255,215, +2,163,2,182,255,215,2,163,2,190, +255,215,2,163,2,192,255,174,2,163, +2,194,255,174,2,163,2,197,255,195, +2,163,2,198,255,215,2,163,2,199, +255,195,2,163,2,200,255,215,2,163, +2,213,255,174,2,163,2,239,255,215, +2,163,2,241,255,215,2,163,2,243, +255,215,2,163,2,254,255,174,2,163, +3,14,255,215,2,163,3,16,255,215, +2,163,3,21,255,215,2,163,3,24, +255,215,2,164,1,207,255,236,2,164, +1,216,255,236,2,164,1,219,255,236, +2,164,1,222,255,236,2,164,1,225, +255,236,2,164,1,234,255,236,2,164, +1,237,255,236,2,164,2,106,255,236, +2,164,2,127,255,236,2,164,2,133, +255,236,2,164,2,135,255,236,2,164, +2,137,255,236,2,164,2,141,255,236, +2,164,2,178,255,236,2,164,2,180, +255,236,2,164,2,192,255,236,2,164, +2,194,255,236,2,164,2,213,255,236, +2,164,2,224,255,236,2,164,2,240, +255,236,2,164,2,242,255,236,2,164, +2,244,255,236,2,164,2,254,255,236, +2,164,3,10,255,236,2,164,3,12, +255,236,2,164,3,14,255,215,2,164, +3,16,255,215,2,164,3,22,255,236, +2,164,3,26,255,236,2,165,1,159, +255,215,2,165,1,184,255,215,2,165, +1,187,255,215,2,165,1,190,255,215, +2,165,1,193,255,215,2,165,1,225, +255,215,2,165,2,108,255,215,2,165, +2,124,255,215,2,165,2,126,255,215, +2,165,2,132,255,215,2,165,2,134, +255,215,2,165,2,136,255,215,2,165, +2,138,255,215,2,165,2,140,255,215, +2,165,2,177,255,215,2,165,2,179, +255,215,2,165,2,191,255,215,2,165, +2,192,255,215,2,165,2,193,255,215, +2,165,2,194,255,215,2,165,2,197, +255,154,2,165,2,199,255,154,2,165, +2,212,255,215,2,165,2,213,255,215, +2,165,2,239,255,215,2,165,2,241, +255,215,2,165,2,243,255,215,2,165, +2,253,255,215,2,165,2,254,255,215, +2,165,3,9,255,215,2,165,3,11, +255,215,2,165,3,14,255,215,2,165, +3,16,255,215,2,165,3,21,255,215, +2,165,3,25,255,236,2,166,1,207, +255,215,2,166,1,216,255,215,2,166, +1,219,255,215,2,166,1,222,255,215, +2,166,1,225,255,215,2,166,1,234, +255,215,2,166,1,237,255,215,2,166, +2,106,255,215,2,166,2,127,255,215, +2,166,2,133,255,215,2,166,2,135, +255,215,2,166,2,137,255,215,2,166, +2,141,255,215,2,166,2,178,255,215, +2,166,2,180,255,215,2,166,2,192, +255,215,2,166,2,194,255,215,2,166, +2,198,255,215,2,166,2,200,255,215, +2,166,2,213,255,215,2,166,2,224, +255,215,2,166,2,240,255,215,2,166, +2,242,255,215,2,166,2,244,255,215, +2,166,2,254,255,215,2,166,3,10, +255,215,2,166,3,12,255,215,2,166, +3,22,255,215,2,166,3,26,255,215, +2,167,1,159,255,215,2,167,1,184, +255,215,2,167,1,187,255,215,2,167, +1,190,255,215,2,167,1,193,255,215, +2,167,1,225,255,215,2,167,2,108, +255,215,2,167,2,124,255,215,2,167, +2,126,255,215,2,167,2,132,255,215, +2,167,2,134,255,215,2,167,2,136, +255,215,2,167,2,138,255,215,2,167, +2,140,255,215,2,167,2,177,255,215, +2,167,2,179,255,215,2,167,2,191, +255,215,2,167,2,192,255,215,2,167, +2,193,255,215,2,167,2,194,255,215, +2,167,2,197,255,154,2,167,2,199, +255,154,2,167,2,212,255,215,2,167, +2,213,255,215,2,167,2,239,255,215, +2,167,2,241,255,215,2,167,2,243, +255,215,2,167,2,253,255,215,2,167, +2,254,255,215,2,167,3,9,255,215, +2,167,3,11,255,215,2,167,3,14, +255,215,2,167,3,16,255,215,2,167, +3,21,255,215,2,167,3,25,255,236, +2,168,1,207,255,215,2,168,1,216, +255,215,2,168,1,219,255,215,2,168, +1,222,255,215,2,168,1,225,255,215, +2,168,1,234,255,215,2,168,1,237, +255,215,2,168,2,106,255,215,2,168, +2,127,255,215,2,168,2,133,255,215, +2,168,2,135,255,215,2,168,2,137, +255,215,2,168,2,141,255,215,2,168, +2,178,255,215,2,168,2,180,255,215, +2,168,2,192,255,215,2,168,2,194, +255,215,2,168,2,198,255,215,2,168, +2,200,255,215,2,168,2,213,255,215, +2,168,2,224,255,215,2,168,2,240, +255,215,2,168,2,242,255,215,2,168, +2,244,255,215,2,168,2,254,255,215, +2,168,3,10,255,215,2,168,3,12, +255,215,2,168,3,22,255,215,2,168, +3,26,255,215,2,169,1,159,255,215, +2,169,1,184,255,215,2,169,1,187, +255,215,2,169,1,190,255,215,2,169, +1,193,255,215,2,169,1,225,255,215, +2,169,2,108,255,215,2,169,2,124, +255,215,2,169,2,126,255,215,2,169, +2,132,255,215,2,169,2,134,255,215, +2,169,2,136,255,215,2,169,2,138, +255,215,2,169,2,140,255,215,2,169, +2,177,255,215,2,169,2,179,255,215, +2,169,2,191,255,215,2,169,2,192, +255,215,2,169,2,193,255,215,2,169, +2,194,255,215,2,169,2,197,255,154, +2,169,2,199,255,154,2,169,2,212, +255,215,2,169,2,213,255,215,2,169, +2,239,255,215,2,169,2,241,255,215, +2,169,2,243,255,215,2,169,2,253, +255,215,2,169,2,254,255,215,2,169, +3,9,255,215,2,169,3,11,255,215, +2,169,3,14,255,215,2,169,3,16, +255,215,2,169,3,21,255,215,2,169, +3,25,255,236,2,170,1,207,255,215, +2,170,1,216,255,215,2,170,1,219, +255,215,2,170,1,222,255,215,2,170, +1,225,255,215,2,170,1,234,255,215, +2,170,1,237,255,215,2,170,2,106, +255,215,2,170,2,127,255,215,2,170, +2,133,255,215,2,170,2,135,255,215, +2,170,2,137,255,215,2,170,2,141, +255,215,2,170,2,178,255,215,2,170, +2,180,255,215,2,170,2,192,255,215, +2,170,2,194,255,215,2,170,2,198, +255,215,2,170,2,200,255,215,2,170, +2,213,255,215,2,170,2,224,255,215, +2,170,2,240,255,215,2,170,2,242, +255,215,2,170,2,244,255,215,2,170, +2,254,255,215,2,170,3,10,255,215, +2,170,3,12,255,215,2,170,3,22, +255,215,2,170,3,26,255,215,2,171, +1,163,0,225,2,171,2,234,0,41, +2,171,3,14,255,215,2,171,3,16, +255,215,2,172,0,5,255,236,2,172, +0,10,255,236,2,172,2,7,255,236, +2,172,2,11,255,236,2,173,0,15, +255,154,2,173,0,16,255,215,2,173, +0,17,255,154,2,173,1,157,0,41, +2,173,1,159,255,215,2,173,1,164, +255,174,2,173,1,166,0,41,2,173, +1,170,255,133,2,173,1,174,255,174, +2,173,1,181,255,174,2,173,1,184, +255,215,2,173,1,187,255,215,2,173, +1,188,0,41,2,173,1,190,255,195, +2,173,1,196,0,41,2,173,1,204, +255,195,2,173,1,205,255,195,2,173, +1,206,255,154,2,173,1,207,255,174, +2,173,1,208,255,215,2,173,1,209, +255,215,2,173,1,210,255,195,2,173, +1,211,255,195,2,173,1,212,255,195, +2,173,1,213,255,154,2,173,1,214, +255,195,2,173,1,215,255,195,2,173, +1,216,255,174,2,173,1,217,255,195, +2,173,1,218,255,195,2,173,1,219, +255,174,2,173,1,222,255,174,2,173, +1,223,255,215,2,173,1,224,255,195, +2,173,1,225,255,154,2,173,1,226, +255,195,2,173,1,227,255,195,2,173, +1,229,255,195,2,173,1,230,255,195, +2,173,1,231,255,215,2,173,1,232, +255,195,2,173,1,234,255,174,2,173, +1,235,0,41,2,173,1,236,255,195, +2,173,1,237,255,174,2,173,1,238, +255,195,2,173,1,242,255,154,2,173, +1,243,255,195,2,173,1,244,0,41, +2,173,1,245,255,195,2,173,1,247, +255,195,2,173,1,249,255,195,2,173, +2,2,255,215,2,173,2,3,255,215, +2,173,2,4,255,215,2,173,2,8, +255,154,2,173,2,12,255,154,2,173, +2,106,255,174,2,173,2,107,255,195, +2,173,2,108,255,215,2,173,2,113, +255,195,2,173,2,114,255,133,2,173, +2,115,255,154,2,173,2,117,255,195, +2,173,2,119,255,215,2,173,2,121, +255,195,2,173,2,125,255,195,2,173, +2,126,255,215,2,173,2,127,255,174, +2,173,2,132,255,215,2,173,2,133, +255,174,2,173,2,134,255,215,2,173, +2,135,255,174,2,173,2,136,255,215, +2,173,2,137,255,174,2,173,2,138, +255,215,2,173,2,140,255,215,2,173, +2,141,255,174,2,173,2,150,255,195, +2,173,2,152,0,41,2,173,2,154, +255,195,2,173,2,158,255,195,2,173, +2,160,255,215,2,173,2,162,255,215, +2,173,2,164,255,195,2,173,2,166, +255,195,2,173,2,168,0,41,2,173, +2,169,0,41,2,173,2,172,255,195, +2,173,2,174,255,195,2,173,2,176, +255,195,2,173,2,177,255,215,2,173, +2,178,255,174,2,173,2,179,255,215, +2,173,2,180,255,174,2,173,2,181, +0,41,2,173,2,188,255,215,2,173, +2,189,0,41,2,173,2,192,255,154, +2,173,2,194,255,154,2,173,2,196, +255,195,2,173,2,197,255,215,2,173, +2,198,255,195,2,173,2,199,255,215, +2,173,2,200,255,195,2,173,2,203, +255,215,2,173,2,205,255,195,2,173, +2,206,255,174,2,173,2,207,255,154, +2,173,2,209,255,195,2,173,2,211, +255,195,2,173,2,213,255,154,2,173, +2,215,255,195,2,173,2,217,255,133, +2,173,2,219,255,133,2,173,2,221, +255,133,2,173,2,224,255,174,2,173, +2,230,255,215,2,173,2,232,255,215, +2,173,2,236,255,195,2,173,2,238, +255,195,2,173,2,239,255,215,2,173, +2,240,255,174,2,173,2,241,255,215, +2,173,2,242,255,174,2,173,2,243, +255,215,2,173,2,244,255,174,2,173, +2,246,255,215,2,173,2,254,255,154, +2,173,3,0,255,195,2,173,3,2, +255,195,2,173,3,6,255,215,2,173, +3,8,255,215,2,173,3,9,255,154, +2,173,3,10,255,174,2,173,3,11, +255,154,2,173,3,12,255,174,2,173, +3,14,255,215,2,173,3,16,255,215, +2,173,3,17,255,174,2,173,3,18, +255,154,2,173,3,20,255,195,2,173, +3,21,255,215,2,173,3,22,255,174, +2,173,3,23,0,41,2,173,3,26, +255,174,2,173,3,27,255,174,2,173, +3,28,255,154,2,174,0,15,255,154, +2,174,0,16,255,215,2,174,0,17, +255,154,2,174,1,206,255,195,2,174, +1,207,255,236,2,174,1,213,255,195, +2,174,1,216,255,236,2,174,1,219, +255,236,2,174,1,222,255,236,2,174, +1,234,255,236,2,174,1,237,255,236, +2,174,1,242,255,195,2,174,2,2, +255,215,2,174,2,3,255,215,2,174, +2,4,255,215,2,174,2,8,255,154, +2,174,2,12,255,154,2,174,2,106, +255,236,2,174,2,115,255,195,2,174, +2,127,255,236,2,174,2,133,255,236, +2,174,2,135,255,236,2,174,2,137, +255,236,2,174,2,141,255,236,2,174, +2,178,255,236,2,174,2,180,255,236, +2,174,2,207,255,195,2,174,2,224, +255,236,2,174,2,240,255,236,2,174, +2,242,255,236,2,174,2,244,255,236, +2,174,3,10,255,236,2,174,3,12, +255,236,2,174,3,18,255,195,2,174, +3,22,255,236,2,174,3,26,255,236, +2,174,3,28,255,195,2,175,0,5, +255,92,2,175,0,10,255,92,2,175, +1,157,255,154,2,175,1,163,0,102, +2,175,1,166,255,154,2,175,1,188, +255,72,2,175,1,193,255,133,2,175, +1,196,255,154,2,175,1,220,255,174, +2,175,1,225,255,215,2,175,1,228, +255,174,2,175,2,7,255,92,2,175, +2,11,255,92,2,175,2,124,255,133, +2,175,2,128,255,113,2,175,2,130, +255,113,2,175,2,169,255,154,2,175, +2,170,255,174,2,175,2,181,255,72, +2,175,2,182,255,174,2,175,2,183, +255,154,2,175,2,185,255,154,2,175, +2,189,255,154,2,175,2,190,255,174, +2,175,2,191,255,133,2,175,2,192, +255,215,2,175,2,193,255,133,2,175, +2,194,255,215,2,175,2,197,255,195, +2,175,2,198,255,215,2,175,2,199, +255,195,2,175,2,200,255,215,2,175, +2,212,255,133,2,175,2,213,255,215, +2,175,2,253,255,133,2,175,2,254, +255,215,2,175,3,13,255,72,2,175, +3,14,255,174,2,175,3,15,255,72, +2,175,3,16,255,174,2,175,3,23, +255,154,2,175,3,24,255,174,2,176, +0,5,255,113,2,176,0,10,255,113, +2,176,1,220,255,154,2,176,1,225, +255,215,2,176,1,228,255,154,2,176, +2,7,255,113,2,176,2,11,255,113, +2,176,2,109,255,215,2,176,2,129, +255,215,2,176,2,131,255,215,2,176, +2,139,255,215,2,176,2,170,255,154, +2,176,2,182,255,154,2,176,2,184, +255,215,2,176,2,186,255,215,2,176, +2,190,255,154,2,176,2,192,255,215, +2,176,2,194,255,215,2,176,2,198, +255,215,2,176,2,200,255,215,2,176, +2,213,255,215,2,176,2,254,255,215, +2,176,3,14,255,113,2,176,3,16, +255,113,2,176,3,24,255,154,2,177, +1,157,255,215,2,177,1,166,255,215, +2,177,1,188,255,195,2,177,1,196, +255,215,2,177,2,128,255,236,2,177, +2,130,255,236,2,177,2,169,255,215, +2,177,2,181,255,195,2,177,2,183, +255,236,2,177,2,185,255,236,2,177, +2,189,255,215,2,177,3,13,255,215, +2,177,3,15,255,215,2,177,3,23, +255,215,2,178,0,5,255,236,2,178, +0,10,255,236,2,178,1,208,255,215, +2,178,1,220,255,236,2,178,1,221, +255,236,2,178,1,223,255,215,2,178, +1,225,255,236,2,178,1,228,255,236, +2,178,1,246,255,236,2,178,2,7, +255,236,2,178,2,11,255,236,2,178, +2,160,255,215,2,178,2,170,255,236, +2,178,2,182,255,236,2,178,2,188, +255,215,2,178,2,190,255,236,2,178, +2,192,255,236,2,178,2,194,255,236, +2,178,2,203,255,215,2,178,2,213, +255,236,2,178,2,230,255,215,2,178, +2,248,255,236,2,178,2,250,255,236, +2,178,2,252,255,236,2,178,2,254, +255,236,2,178,3,6,255,215,2,178, +3,8,255,215,2,178,3,14,255,236, +2,178,3,16,255,236,2,178,3,24, +255,236,2,179,1,159,255,215,2,179, +1,184,255,215,2,179,1,187,255,215, +2,179,1,190,255,215,2,179,1,225, +255,215,2,179,2,108,255,215,2,179, +2,126,255,215,2,179,2,132,255,215, +2,179,2,134,255,215,2,179,2,136, +255,215,2,179,2,138,255,215,2,179, +2,140,255,215,2,179,2,177,255,215, +2,179,2,179,255,215,2,179,2,192, +255,215,2,179,2,194,255,215,2,179, +2,197,255,215,2,179,2,199,255,215, +2,179,2,213,255,215,2,179,2,239, +255,215,2,179,2,241,255,215,2,179, +2,243,255,215,2,179,2,254,255,215, +2,179,3,9,255,215,2,179,3,11, +255,215,2,179,3,14,255,215,2,179, +3,16,255,215,2,179,3,21,255,215, +2,181,0,15,255,133,2,181,0,16, +255,174,2,181,0,17,255,133,2,181, +1,159,255,215,2,181,1,164,255,154, +2,181,1,170,255,113,2,181,1,174, +255,154,2,181,1,181,255,154,2,181, +1,184,255,215,2,181,1,187,255,215, +2,181,1,188,0,41,2,181,1,190, +255,174,2,181,1,204,255,154,2,181, +1,205,255,154,2,181,1,206,255,133, +2,181,1,207,255,113,2,181,1,208, +255,215,2,181,1,209,255,215,2,181, +1,210,255,154,2,181,1,211,255,154, +2,181,1,212,255,154,2,181,1,213, +255,133,2,181,1,214,255,154,2,181, +1,215,255,154,2,181,1,216,255,113, +2,181,1,217,255,154,2,181,1,218, +255,154,2,181,1,219,255,113,2,181, +1,220,255,174,2,181,1,221,255,174, +2,181,1,222,255,113,2,181,1,223, +255,215,2,181,1,224,255,154,2,181, +1,225,255,154,2,181,1,226,255,154, +2,181,1,227,255,154,2,181,1,228, +255,174,2,181,1,229,255,154,2,181, +1,230,255,154,2,181,1,231,255,215, +2,181,1,232,255,154,2,181,1,233, +255,195,2,181,1,234,255,113,2,181, +1,236,255,154,2,181,1,237,255,113, +2,181,1,238,255,133,2,181,1,242, +255,133,2,181,1,243,255,154,2,181, +1,245,255,154,2,181,1,246,255,174, +2,181,1,247,255,154,2,181,1,249, +255,154,2,181,2,2,255,174,2,181, +2,3,255,174,2,181,2,4,255,174, +2,181,2,8,255,133,2,181,2,12, +255,133,2,181,2,106,255,113,2,181, +2,107,255,154,2,181,2,108,255,215, +2,181,2,109,255,215,2,181,2,113, +255,154,2,181,2,114,255,113,2,181, +2,115,255,133,2,181,2,117,255,154, +2,181,2,119,255,154,2,181,2,121, +255,154,2,181,2,125,255,154,2,181, +2,126,255,215,2,181,2,127,255,113, +2,181,2,129,255,215,2,181,2,131, +255,215,2,181,2,132,255,215,2,181, +2,133,255,113,2,181,2,134,255,215, +2,181,2,135,255,113,2,181,2,136, +255,215,2,181,2,137,255,113,2,181, +2,138,255,215,2,181,2,139,255,215, +2,181,2,140,255,215,2,181,2,141, +255,113,2,181,2,150,255,154,2,181, +2,154,255,154,2,181,2,158,255,154, +2,181,2,160,255,215,2,181,2,162, +255,215,2,181,2,164,255,154,2,181, +2,166,255,154,2,181,2,170,255,174, +2,181,2,172,255,154,2,181,2,174, +255,154,2,181,2,176,255,154,2,181, +2,177,255,215,2,181,2,178,255,113, +2,181,2,179,255,215,2,181,2,180, +255,113,2,181,2,181,0,41,2,181, +2,182,255,174,2,181,2,184,255,174, +2,181,2,186,255,174,2,181,2,188, +255,215,2,181,2,190,255,174,2,181, +2,192,255,154,2,181,2,194,255,154, +2,181,2,196,255,154,2,181,2,197, +255,154,2,181,2,198,255,113,2,181, +2,199,255,154,2,181,2,200,255,113, +2,181,2,203,255,215,2,181,2,205, +255,154,2,181,2,206,255,154,2,181, +2,207,255,133,2,181,2,209,255,154, +2,181,2,211,255,154,2,181,2,213, +255,154,2,181,2,215,255,154,2,181, +2,217,255,113,2,181,2,219,255,113, +2,181,2,221,255,113,2,181,2,224, +255,113,2,181,2,230,255,215,2,181, +2,232,255,215,2,181,2,234,255,195, +2,181,2,236,255,154,2,181,2,238, +255,154,2,181,2,239,255,215,2,181, +2,240,255,113,2,181,2,241,255,215, +2,181,2,242,255,113,2,181,2,243, +255,215,2,181,2,244,255,113,2,181, +2,246,255,215,2,181,2,248,255,174, +2,181,2,250,255,174,2,181,2,252, +255,174,2,181,2,254,255,154,2,181, +3,0,255,154,2,181,3,2,255,154, +2,181,3,6,255,215,2,181,3,8, +255,215,2,181,3,9,255,113,2,181, +3,10,255,113,2,181,3,11,255,113, +2,181,3,12,255,113,2,181,3,14, +255,154,2,181,3,16,255,154,2,181, +3,17,255,154,2,181,3,18,255,133, +2,181,3,20,255,154,2,181,3,21, +255,215,2,181,3,22,255,113,2,181, +3,24,255,174,2,181,3,26,255,113, +2,181,3,27,255,154,2,181,3,28, +255,133,2,182,0,15,255,154,2,182, +0,16,255,215,2,182,0,17,255,154, +2,182,1,206,255,195,2,182,1,207, +255,236,2,182,1,213,255,195,2,182, +1,216,255,236,2,182,1,219,255,236, +2,182,1,222,255,236,2,182,1,234, +255,236,2,182,1,237,255,236,2,182, +1,242,255,195,2,182,2,2,255,215, +2,182,2,3,255,215,2,182,2,4, +255,215,2,182,2,8,255,154,2,182, +2,12,255,154,2,182,2,106,255,236, +2,182,2,115,255,195,2,182,2,127, +255,236,2,182,2,133,255,236,2,182, +2,135,255,236,2,182,2,137,255,236, +2,182,2,141,255,236,2,182,2,178, +255,236,2,182,2,180,255,236,2,182, +2,207,255,195,2,182,2,224,255,236, +2,182,2,240,255,236,2,182,2,242, +255,236,2,182,2,244,255,236,2,182, +3,10,255,236,2,182,3,12,255,236, +2,182,3,18,255,195,2,182,3,22, +255,236,2,182,3,26,255,236,2,182, +3,28,255,195,2,183,0,15,255,133, +2,183,0,17,255,133,2,183,1,159, +255,215,2,183,1,164,255,174,2,183, +1,170,255,133,2,183,1,174,255,174, +2,183,1,181,255,174,2,183,1,184, +255,215,2,183,1,187,255,215,2,183, +1,190,255,195,2,183,1,202,255,174, +2,183,1,204,255,195,2,183,1,205, +255,195,2,183,1,206,255,154,2,183, +1,207,255,154,2,183,1,210,255,195, +2,183,1,211,255,195,2,183,1,212, +255,195,2,183,1,213,255,154,2,183, +1,214,255,195,2,183,1,215,255,195, +2,183,1,216,255,154,2,183,1,217, +255,195,2,183,1,218,255,195,2,183, +1,219,255,154,2,183,1,222,255,154, +2,183,1,224,255,195,2,183,1,225, +255,174,2,183,1,226,255,195,2,183, +1,227,255,195,2,183,1,229,255,195, +2,183,1,230,255,195,2,183,1,232, +255,195,2,183,1,233,255,215,2,183, +1,234,255,154,2,183,1,235,0,41, +2,183,1,236,255,195,2,183,1,237, +255,154,2,183,1,238,255,174,2,183, +1,242,255,154,2,183,1,243,255,195, +2,183,1,244,0,41,2,183,1,245, +255,195,2,183,1,247,255,195,2,183, +1,249,255,195,2,183,2,8,255,133, +2,183,2,12,255,133,2,183,2,106, +255,154,2,183,2,107,255,195,2,183, +2,108,255,215,2,183,2,113,255,195, +2,183,2,114,255,133,2,183,2,115, +255,154,2,183,2,117,255,195,2,183, +2,119,255,215,2,183,2,121,255,195, +2,183,2,125,255,215,2,183,2,126, +255,215,2,183,2,127,255,154,2,183, +2,132,255,215,2,183,2,133,255,154, +2,183,2,134,255,215,2,183,2,135, +255,154,2,183,2,136,255,215,2,183, +2,137,255,154,2,183,2,138,255,215, +2,183,2,140,255,215,2,183,2,141, +255,154,2,183,2,150,255,195,2,183, +2,152,0,41,2,183,2,154,255,195, +2,183,2,158,255,195,2,183,2,164, +255,195,2,183,2,166,255,195,2,183, +2,168,0,41,2,183,2,172,255,195, +2,183,2,174,255,195,2,183,2,176, +255,195,2,183,2,177,255,215,2,183, +2,178,255,154,2,183,2,179,255,215, +2,183,2,180,255,154,2,183,2,192, +255,174,2,183,2,194,255,174,2,183, +2,196,255,195,2,183,2,198,255,174, +2,183,2,200,255,174,2,183,2,205, +255,195,2,183,2,206,255,174,2,183, +2,207,255,154,2,183,2,209,255,195, +2,183,2,211,255,195,2,183,2,213, +255,174,2,183,2,215,255,195,2,183, +2,217,255,133,2,183,2,218,255,174, +2,183,2,219,255,133,2,183,2,220, +255,174,2,183,2,221,255,133,2,183, +2,222,255,174,2,183,2,224,255,154, +2,183,2,225,255,236,2,183,2,226, +255,174,2,183,2,227,255,236,2,183, +2,228,255,174,2,183,2,236,255,195, +2,183,2,238,255,195,2,183,2,239, +255,215,2,183,2,240,255,154,2,183, +2,241,255,215,2,183,2,242,255,154, +2,183,2,243,255,215,2,183,2,244, +255,154,2,183,2,254,255,174,2,183, +3,0,255,195,2,183,3,2,255,195, +2,183,3,9,255,174,2,183,3,10, +255,154,2,183,3,11,255,174,2,183, +3,12,255,154,2,183,3,14,255,215, +2,183,3,16,255,215,2,183,3,17, +255,174,2,183,3,18,255,154,2,183, +3,20,255,195,2,183,3,21,255,215, +2,183,3,22,255,154,2,183,3,25, +255,236,2,183,3,26,255,154,2,183, +3,27,255,174,2,183,3,28,255,154, +2,184,0,15,255,174,2,184,0,17, +255,174,2,184,1,206,255,236,2,184, +1,213,255,236,2,184,1,242,255,236, +2,184,2,8,255,174,2,184,2,12, +255,174,2,184,2,115,255,236,2,184, +2,207,255,236,2,184,3,18,255,236, +2,184,3,28,255,236,2,185,0,15, +255,133,2,185,0,17,255,133,2,185, +1,159,255,215,2,185,1,164,255,174, +2,185,1,170,255,133,2,185,1,174, +255,174,2,185,1,181,255,174,2,185, +1,184,255,215,2,185,1,187,255,215, +2,185,1,190,255,195,2,185,1,202, +255,174,2,185,1,204,255,195,2,185, +1,205,255,195,2,185,1,206,255,154, +2,185,1,207,255,154,2,185,1,210, +255,195,2,185,1,211,255,195,2,185, +1,212,255,195,2,185,1,213,255,154, +2,185,1,214,255,195,2,185,1,215, +255,195,2,185,1,216,255,154,2,185, +1,217,255,195,2,185,1,218,255,195, +2,185,1,219,255,154,2,185,1,222, +255,154,2,185,1,224,255,195,2,185, +1,225,255,174,2,185,1,226,255,195, +2,185,1,227,255,195,2,185,1,229, +255,195,2,185,1,230,255,195,2,185, +1,232,255,195,2,185,1,233,255,215, +2,185,1,234,255,154,2,185,1,235, +0,41,2,185,1,236,255,195,2,185, +1,237,255,154,2,185,1,238,255,174, +2,185,1,242,255,154,2,185,1,243, +255,195,2,185,1,244,0,41,2,185, +1,245,255,195,2,185,1,247,255,195, +2,185,1,249,255,195,2,185,2,8, +255,133,2,185,2,12,255,133,2,185, +2,106,255,154,2,185,2,107,255,195, +2,185,2,108,255,215,2,185,2,113, +255,195,2,185,2,114,255,133,2,185, +2,115,255,154,2,185,2,117,255,195, +2,185,2,119,255,215,2,185,2,121, +255,195,2,185,2,125,255,215,2,185, +2,126,255,215,2,185,2,127,255,154, +2,185,2,132,255,215,2,185,2,133, +255,154,2,185,2,134,255,215,2,185, +2,135,255,154,2,185,2,136,255,215, +2,185,2,137,255,154,2,185,2,138, +255,215,2,185,2,140,255,215,2,185, +2,141,255,154,2,185,2,150,255,195, +2,185,2,152,0,41,2,185,2,154, +255,195,2,185,2,158,255,195,2,185, +2,164,255,195,2,185,2,166,255,195, +2,185,2,168,0,41,2,185,2,172, +255,195,2,185,2,174,255,195,2,185, +2,176,255,195,2,185,2,177,255,215, +2,185,2,178,255,154,2,185,2,179, +255,215,2,185,2,180,255,154,2,185, +2,192,255,174,2,185,2,194,255,174, +2,185,2,196,255,195,2,185,2,198, +255,174,2,185,2,200,255,174,2,185, +2,205,255,195,2,185,2,206,255,174, +2,185,2,207,255,154,2,185,2,209, +255,195,2,185,2,211,255,195,2,185, +2,213,255,174,2,185,2,215,255,195, +2,185,2,217,255,133,2,185,2,218, +255,174,2,185,2,219,255,133,2,185, +2,220,255,174,2,185,2,221,255,133, +2,185,2,222,255,174,2,185,2,224, +255,154,2,185,2,225,255,236,2,185, +2,226,255,174,2,185,2,227,255,236, +2,185,2,228,255,174,2,185,2,236, +255,195,2,185,2,238,255,195,2,185, +2,239,255,215,2,185,2,240,255,154, +2,185,2,241,255,215,2,185,2,242, +255,154,2,185,2,243,255,215,2,185, +2,244,255,154,2,185,2,254,255,174, +2,185,3,0,255,195,2,185,3,2, +255,195,2,185,3,9,255,174,2,185, +3,10,255,154,2,185,3,11,255,174, +2,185,3,12,255,154,2,185,3,14, +255,215,2,185,3,16,255,215,2,185, +3,17,255,174,2,185,3,18,255,154, +2,185,3,20,255,195,2,185,3,21, +255,215,2,185,3,22,255,154,2,185, +3,25,255,236,2,185,3,26,255,154, +2,185,3,27,255,174,2,185,3,28, +255,154,2,186,0,15,255,174,2,186, +0,17,255,174,2,186,1,206,255,236, +2,186,1,213,255,236,2,186,1,242, +255,236,2,186,2,8,255,174,2,186, +2,12,255,174,2,186,2,115,255,236, +2,186,2,207,255,236,2,186,3,18, +255,236,2,186,3,28,255,236,2,187, +1,159,255,215,2,187,1,163,0,225, +2,187,1,184,255,215,2,187,1,187, +255,215,2,187,1,190,255,195,2,187, +1,220,255,215,2,187,1,225,255,174, +2,187,1,228,255,215,2,187,2,108, +255,215,2,187,2,123,0,61,2,187, +2,125,255,236,2,187,2,126,255,215, +2,187,2,132,255,215,2,187,2,134, +255,215,2,187,2,136,255,215,2,187, +2,138,255,215,2,187,2,140,255,215, +2,187,2,170,255,215,2,187,2,177, +255,215,2,187,2,179,255,215,2,187, +2,182,255,215,2,187,2,190,255,215, +2,187,2,192,255,174,2,187,2,194, +255,174,2,187,2,197,255,195,2,187, +2,198,255,215,2,187,2,199,255,195, +2,187,2,200,255,215,2,187,2,213, +255,174,2,187,2,239,255,215,2,187, +2,241,255,215,2,187,2,243,255,215, +2,187,2,254,255,174,2,187,3,14, +255,215,2,187,3,16,255,215,2,187, +3,21,255,215,2,187,3,24,255,215, +2,188,1,207,255,236,2,188,1,216, +255,236,2,188,1,219,255,236,2,188, +1,222,255,236,2,188,1,225,255,236, +2,188,1,234,255,236,2,188,1,237, +255,236,2,188,2,106,255,236,2,188, +2,127,255,236,2,188,2,133,255,236, +2,188,2,135,255,236,2,188,2,137, +255,236,2,188,2,141,255,236,2,188, +2,178,255,236,2,188,2,180,255,236, +2,188,2,192,255,236,2,188,2,194, +255,236,2,188,2,213,255,236,2,188, +2,224,255,236,2,188,2,240,255,236, +2,188,2,242,255,236,2,188,2,244, +255,236,2,188,2,254,255,236,2,188, +3,10,255,236,2,188,3,12,255,236, +2,188,3,14,255,215,2,188,3,16, +255,215,2,188,3,22,255,236,2,188, +3,26,255,236,2,189,1,163,0,225, +2,189,2,234,0,41,2,189,3,14, +255,215,2,189,3,16,255,215,2,190, +0,5,255,236,2,190,0,10,255,236, +2,190,2,7,255,236,2,190,2,11, +255,236,2,191,1,163,0,225,2,191, +2,234,0,41,2,191,3,14,255,215, +2,191,3,16,255,215,2,192,0,5, +255,236,2,192,0,10,255,236,2,192, +2,7,255,236,2,192,2,11,255,236, +2,195,0,5,255,195,2,195,0,10, +255,195,2,195,1,157,255,215,2,195, +1,166,255,215,2,195,1,188,255,133, +2,195,1,193,255,174,2,195,1,196, +255,215,2,195,1,220,255,215,2,195, +1,221,255,236,2,195,1,225,255,236, +2,195,1,228,255,215,2,195,1,246, +255,236,2,195,2,7,255,195,2,195, +2,11,255,195,2,195,2,124,255,174, +2,195,2,128,255,195,2,195,2,130, +255,195,2,195,2,169,255,215,2,195, +2,170,255,215,2,195,2,181,255,133, +2,195,2,182,255,215,2,195,2,183, +255,154,2,195,2,185,255,154,2,195, +2,189,255,215,2,195,2,190,255,215, +2,195,2,191,255,174,2,195,2,192, +255,236,2,195,2,193,255,174,2,195, +2,194,255,236,2,195,2,212,255,174, +2,195,2,213,255,236,2,195,2,248, +255,236,2,195,2,250,255,236,2,195, +2,252,255,236,2,195,2,253,255,174, +2,195,2,254,255,236,2,195,3,13, +255,174,2,195,3,14,255,215,2,195, +3,15,255,174,2,195,3,16,255,215, +2,195,3,23,255,215,2,195,3,24, +255,215,2,196,0,5,255,154,2,196, +0,10,255,154,2,196,1,220,255,215, +2,196,1,221,255,215,2,196,1,228, +255,215,2,196,1,246,255,215,2,196, +2,7,255,154,2,196,2,11,255,154, +2,196,2,170,255,215,2,196,2,182, +255,215,2,196,2,184,255,215,2,196, +2,186,255,215,2,196,2,190,255,215, +2,196,2,248,255,215,2,196,2,250, +255,215,2,196,2,252,255,215,2,196, +3,14,255,174,2,196,3,16,255,174, +2,196,3,24,255,215,2,197,1,188, +255,215,2,197,2,128,255,236,2,197, +2,130,255,236,2,197,2,181,255,215, +2,197,2,183,255,236,2,197,2,185, +255,236,2,197,3,13,255,236,2,197, +3,15,255,236,2,198,0,5,255,236, +2,198,0,10,255,236,2,198,2,7, +255,236,2,198,2,11,255,236,2,199, +1,188,255,215,2,199,2,128,255,236, +2,199,2,130,255,236,2,199,2,181, +255,215,2,199,2,183,255,236,2,199, +2,185,255,236,2,199,3,13,255,236, +2,199,3,15,255,236,2,200,0,5, +255,236,2,200,0,10,255,236,2,200, +2,7,255,236,2,200,2,11,255,236, +2,202,1,159,255,215,2,202,1,184, +255,215,2,202,1,187,255,215,2,202, +1,190,255,215,2,202,1,193,255,215, +2,202,1,225,255,215,2,202,2,108, +255,215,2,202,2,124,255,215,2,202, +2,126,255,215,2,202,2,132,255,215, +2,202,2,134,255,215,2,202,2,136, +255,215,2,202,2,138,255,215,2,202, +2,140,255,215,2,202,2,177,255,215, +2,202,2,179,255,215,2,202,2,191, +255,215,2,202,2,192,255,215,2,202, +2,193,255,215,2,202,2,194,255,215, +2,202,2,197,255,154,2,202,2,199, +255,154,2,202,2,212,255,215,2,202, +2,213,255,215,2,202,2,239,255,215, +2,202,2,241,255,215,2,202,2,243, +255,215,2,202,2,253,255,215,2,202, +2,254,255,215,2,202,3,9,255,215, +2,202,3,11,255,215,2,202,3,14, +255,215,2,202,3,16,255,215,2,202, +3,21,255,215,2,202,3,25,255,236, +2,203,1,207,255,215,2,203,1,216, +255,215,2,203,1,219,255,215,2,203, +1,222,255,215,2,203,1,225,255,215, +2,203,1,234,255,215,2,203,1,237, +255,215,2,203,2,106,255,215,2,203, +2,127,255,215,2,203,2,133,255,215, +2,203,2,135,255,215,2,203,2,137, +255,215,2,203,2,141,255,215,2,203, +2,178,255,215,2,203,2,180,255,215, +2,203,2,192,255,215,2,203,2,194, +255,215,2,203,2,198,255,215,2,203, +2,200,255,215,2,203,2,213,255,215, +2,203,2,224,255,215,2,203,2,240, +255,215,2,203,2,242,255,215,2,203, +2,244,255,215,2,203,2,254,255,215, +2,203,3,10,255,215,2,203,3,12, +255,215,2,203,3,22,255,215,2,203, +3,26,255,215,2,204,0,5,255,195, +2,204,0,10,255,195,2,204,1,163, +0,102,2,204,1,188,255,215,2,204, +1,190,255,215,2,204,1,193,255,174, +2,204,1,220,255,195,2,204,1,225, +255,215,2,204,1,228,255,195,2,204, +2,7,255,195,2,204,2,11,255,195, +2,204,2,109,255,236,2,204,2,124, +255,174,2,204,2,128,255,215,2,204, +2,129,255,236,2,204,2,130,255,215, +2,204,2,131,255,236,2,204,2,139, +255,236,2,204,2,170,255,195,2,204, +2,181,255,215,2,204,2,182,255,195, +2,204,2,183,255,215,2,204,2,184, +255,236,2,204,2,185,255,215,2,204, +2,186,255,236,2,204,2,190,255,195, +2,204,2,191,255,174,2,204,2,192, +255,215,2,204,2,193,255,174,2,204, +2,194,255,215,2,204,2,197,255,195, +2,204,2,198,255,215,2,204,2,199, +255,195,2,204,2,200,255,215,2,204, +2,212,255,174,2,204,2,213,255,215, +2,204,2,253,255,174,2,204,2,254, +255,215,2,204,3,13,255,215,2,204, +3,14,255,195,2,204,3,15,255,215, +2,204,3,16,255,195,2,204,3,24, +255,195,2,205,1,225,255,215,2,205, +2,192,255,215,2,205,2,194,255,215, +2,205,2,213,255,215,2,205,2,254, +255,215,2,206,1,163,0,225,2,206, +2,234,0,41,2,206,3,14,255,215, +2,206,3,16,255,215,2,207,0,5, +255,236,2,207,0,10,255,236,2,207, +2,7,255,236,2,207,2,11,255,236, +2,210,1,163,0,225,2,210,2,234, +0,41,2,210,3,14,255,215,2,210, +3,16,255,215,2,211,0,5,255,236, +2,211,0,10,255,236,2,211,2,7, +255,236,2,211,2,11,255,236,2,214, +1,163,0,225,2,214,2,234,0,41, +2,214,3,14,255,215,2,214,3,16, +255,215,2,215,0,5,255,236,2,215, +0,10,255,236,2,215,2,7,255,236, +2,215,2,11,255,236,2,217,0,5, +255,113,2,217,0,10,255,113,2,217, +1,157,255,154,2,217,1,166,255,154, +2,217,1,188,255,113,2,217,1,190, +255,215,2,217,1,193,255,154,2,217, +1,196,255,154,2,217,1,220,255,215, +2,217,1,225,255,215,2,217,1,228, +255,215,2,217,2,7,255,113,2,217, +2,11,255,113,2,217,2,110,255,215, +2,217,2,124,255,154,2,217,2,128, +255,174,2,217,2,130,255,174,2,217, +2,151,255,215,2,217,2,155,255,215, +2,217,2,167,255,215,2,217,2,169, +255,154,2,217,2,170,255,215,2,217, +2,181,255,113,2,217,2,182,255,215, +2,217,2,183,255,133,2,217,2,185, +255,133,2,217,2,189,255,154,2,217, +2,190,255,215,2,217,2,191,255,154, +2,217,2,192,255,215,2,217,2,193, +255,154,2,217,2,194,255,215,2,217, +2,197,255,154,2,217,2,199,255,154, +2,217,2,212,255,154,2,217,2,213, +255,215,2,217,2,225,255,215,2,217, +2,227,255,215,2,217,2,253,255,154, +2,217,2,254,255,215,2,217,3,3, +255,215,2,217,3,13,255,113,2,217, +3,14,255,215,2,217,3,15,255,113, +2,217,3,16,255,215,2,217,3,23, +255,154,2,217,3,24,255,215,2,218, +0,5,255,236,2,218,0,10,255,236, +2,218,2,7,255,236,2,218,2,11, +255,236,2,219,0,5,255,113,2,219, +0,10,255,113,2,219,1,157,255,154, +2,219,1,166,255,154,2,219,1,188, +255,113,2,219,1,190,255,215,2,219, +1,193,255,154,2,219,1,196,255,154, +2,219,1,220,255,215,2,219,1,225, +255,215,2,219,1,228,255,215,2,219, +2,7,255,113,2,219,2,11,255,113, +2,219,2,110,255,215,2,219,2,124, +255,154,2,219,2,128,255,174,2,219, +2,130,255,174,2,219,2,151,255,215, +2,219,2,155,255,215,2,219,2,167, +255,215,2,219,2,169,255,154,2,219, +2,170,255,215,2,219,2,181,255,113, +2,219,2,182,255,215,2,219,2,183, +255,133,2,219,2,185,255,133,2,219, +2,189,255,154,2,219,2,190,255,215, +2,219,2,191,255,154,2,219,2,192, +255,215,2,219,2,193,255,154,2,219, +2,194,255,215,2,219,2,197,255,154, +2,219,2,199,255,154,2,219,2,212, +255,154,2,219,2,213,255,215,2,219, +2,225,255,215,2,219,2,227,255,215, +2,219,2,253,255,154,2,219,2,254, +255,215,2,219,3,3,255,215,2,219, +3,13,255,113,2,219,3,14,255,215, +2,219,3,15,255,113,2,219,3,16, +255,215,2,219,3,23,255,154,2,219, +3,24,255,215,2,220,0,5,255,236, +2,220,0,10,255,236,2,220,2,7, +255,236,2,220,2,11,255,236,2,222, +0,5,255,236,2,222,0,10,255,236, +2,222,2,7,255,236,2,222,2,11, +255,236,2,224,0,5,255,236,2,224, +0,10,255,236,2,224,2,7,255,236, +2,224,2,11,255,236,2,225,0,15, +255,174,2,225,0,17,255,174,2,225, +1,157,255,236,2,225,1,164,255,215, +2,225,1,166,255,236,2,225,1,168, +255,215,2,225,1,170,255,215,2,225, +1,174,255,215,2,225,1,176,255,215, +2,225,1,177,255,236,2,225,1,181, +255,215,2,225,1,188,255,195,2,225, +1,189,255,215,2,225,1,191,255,215, +2,225,1,193,255,215,2,225,1,196, +255,236,2,225,1,199,255,236,2,225, +1,206,255,236,2,225,1,213,255,236, +2,225,1,242,255,236,2,225,2,8, +255,174,2,225,2,12,255,174,2,225, +2,114,255,215,2,225,2,115,255,236, +2,225,2,122,255,236,2,225,2,124, +255,215,2,225,2,128,255,236,2,225, +2,130,255,236,2,225,2,159,255,215, +2,225,2,161,255,236,2,225,2,169, +255,236,2,225,2,181,255,195,2,225, +2,183,255,236,2,225,2,185,255,236, +2,225,2,187,255,215,2,225,2,189, +255,236,2,225,2,191,255,215,2,225, +2,193,255,215,2,225,2,202,255,215, +2,225,2,206,255,215,2,225,2,207, +255,236,2,225,2,212,255,215,2,225, +2,217,255,215,2,225,2,219,255,215, +2,225,2,221,255,215,2,225,2,229, +255,215,2,225,2,231,255,236,2,225, +2,245,255,236,2,225,2,247,255,215, +2,225,2,249,255,215,2,225,2,251, +255,215,2,225,2,253,255,215,2,225, +3,5,255,215,2,225,3,7,255,215, +2,225,3,13,255,215,2,225,3,15, +255,215,2,225,3,17,255,215,2,225, +3,18,255,236,2,225,3,23,255,236, +2,225,3,27,255,215,2,225,3,28, +255,236,2,226,0,5,255,236,2,226, +0,10,255,236,2,226,1,208,255,215, +2,226,1,220,255,236,2,226,1,221, +255,236,2,226,1,223,255,215,2,226, +1,225,255,236,2,226,1,228,255,236, +2,226,1,246,255,236,2,226,2,7, +255,236,2,226,2,11,255,236,2,226, +2,160,255,215,2,226,2,170,255,236, +2,226,2,182,255,236,2,226,2,188, +255,215,2,226,2,190,255,236,2,226, +2,192,255,236,2,226,2,194,255,236, +2,226,2,203,255,215,2,226,2,213, +255,236,2,226,2,230,255,215,2,226, +2,248,255,236,2,226,2,250,255,236, +2,226,2,252,255,236,2,226,2,254, +255,236,2,226,3,6,255,215,2,226, +3,8,255,215,2,226,3,14,255,236, +2,226,3,16,255,236,2,226,3,24, +255,236,2,227,0,15,255,174,2,227, +0,17,255,174,2,227,1,157,255,236, +2,227,1,164,255,215,2,227,1,166, +255,236,2,227,1,168,255,215,2,227, +1,170,255,215,2,227,1,174,255,215, +2,227,1,176,255,215,2,227,1,177, +255,236,2,227,1,181,255,215,2,227, +1,188,255,195,2,227,1,189,255,215, +2,227,1,191,255,215,2,227,1,193, +255,215,2,227,1,196,255,236,2,227, +1,199,255,236,2,227,1,206,255,236, +2,227,1,213,255,236,2,227,1,242, +255,236,2,227,2,8,255,174,2,227, +2,12,255,174,2,227,2,114,255,215, +2,227,2,115,255,236,2,227,2,122, +255,236,2,227,2,124,255,215,2,227, +2,128,255,236,2,227,2,130,255,236, +2,227,2,159,255,215,2,227,2,161, +255,236,2,227,2,169,255,236,2,227, +2,181,255,195,2,227,2,183,255,236, +2,227,2,185,255,236,2,227,2,187, +255,215,2,227,2,189,255,236,2,227, +2,191,255,215,2,227,2,193,255,215, +2,227,2,202,255,215,2,227,2,206, +255,215,2,227,2,207,255,236,2,227, +2,212,255,215,2,227,2,217,255,215, +2,227,2,219,255,215,2,227,2,221, +255,215,2,227,2,229,255,215,2,227, +2,231,255,236,2,227,2,245,255,236, +2,227,2,247,255,215,2,227,2,249, +255,215,2,227,2,251,255,215,2,227, +2,253,255,215,2,227,3,5,255,215, +2,227,3,7,255,215,2,227,3,13, +255,215,2,227,3,15,255,215,2,227, +3,17,255,215,2,227,3,18,255,236, +2,227,3,23,255,236,2,227,3,27, +255,215,2,227,3,28,255,236,2,228, +0,5,255,236,2,228,0,10,255,236, +2,228,1,208,255,215,2,228,1,220, +255,236,2,228,1,221,255,236,2,228, +1,223,255,215,2,228,1,225,255,236, +2,228,1,228,255,236,2,228,1,246, +255,236,2,228,2,7,255,236,2,228, +2,11,255,236,2,228,2,160,255,215, +2,228,2,170,255,236,2,228,2,182, +255,236,2,228,2,188,255,215,2,228, +2,190,255,236,2,228,2,192,255,236, +2,228,2,194,255,236,2,228,2,203, +255,215,2,228,2,213,255,236,2,228, +2,230,255,215,2,228,2,248,255,236, +2,228,2,250,255,236,2,228,2,252, +255,236,2,228,2,254,255,236,2,228, +3,6,255,215,2,228,3,8,255,215, +2,228,3,14,255,236,2,228,3,16, +255,236,2,228,3,24,255,236,2,229, +1,159,255,215,2,229,1,184,255,215, +2,229,1,187,255,215,2,229,1,190, +255,215,2,229,1,193,255,215,2,229, +1,225,255,215,2,229,2,108,255,215, +2,229,2,124,255,215,2,229,2,126, +255,215,2,229,2,132,255,215,2,229, +2,134,255,215,2,229,2,136,255,215, +2,229,2,138,255,215,2,229,2,140, +255,215,2,229,2,177,255,215,2,229, +2,179,255,215,2,229,2,191,255,215, +2,229,2,192,255,215,2,229,2,193, +255,215,2,229,2,194,255,215,2,229, +2,197,255,154,2,229,2,199,255,154, +2,229,2,212,255,215,2,229,2,213, +255,215,2,229,2,239,255,215,2,229, +2,241,255,215,2,229,2,243,255,215, +2,229,2,253,255,215,2,229,2,254, +255,215,2,229,3,9,255,215,2,229, +3,11,255,215,2,229,3,14,255,215, +2,229,3,16,255,215,2,229,3,21, +255,215,2,229,3,25,255,236,2,230, +1,207,255,215,2,230,1,216,255,215, +2,230,1,219,255,215,2,230,1,222, +255,215,2,230,1,225,255,215,2,230, +1,234,255,215,2,230,1,237,255,215, +2,230,2,106,255,215,2,230,2,127, +255,215,2,230,2,133,255,215,2,230, +2,135,255,215,2,230,2,137,255,215, +2,230,2,141,255,215,2,230,2,178, +255,215,2,230,2,180,255,215,2,230, +2,192,255,215,2,230,2,194,255,215, +2,230,2,198,255,215,2,230,2,200, +255,215,2,230,2,213,255,215,2,230, +2,224,255,215,2,230,2,240,255,215, +2,230,2,242,255,215,2,230,2,244, +255,215,2,230,2,254,255,215,2,230, +3,10,255,215,2,230,3,12,255,215, +2,230,3,22,255,215,2,230,3,26, +255,215,2,231,0,15,255,174,2,231, +0,17,255,174,2,231,2,8,255,174, +2,231,2,12,255,174,2,231,2,128, +255,236,2,231,2,130,255,236,2,231, +2,183,255,236,2,231,2,185,255,236, +2,231,3,13,255,215,2,231,3,15, +255,215,2,232,1,233,0,41,2,233, +0,5,255,236,2,233,0,10,255,236, +2,233,2,7,255,236,2,233,2,11, +255,236,2,233,3,14,255,215,2,233, +3,16,255,215,2,239,0,15,255,174, +2,239,0,17,255,174,2,239,1,157, +255,236,2,239,1,164,255,215,2,239, +1,166,255,236,2,239,1,168,255,215, +2,239,1,170,255,215,2,239,1,174, +255,215,2,239,1,176,255,215,2,239, +1,177,255,236,2,239,1,181,255,215, +2,239,1,188,255,195,2,239,1,189, +255,215,2,239,1,191,255,215,2,239, +1,193,255,215,2,239,1,196,255,236, +2,239,1,199,255,236,2,239,1,206, +255,236,2,239,1,213,255,236,2,239, +1,242,255,236,2,239,2,8,255,174, +2,239,2,12,255,174,2,239,2,114, +255,215,2,239,2,115,255,236,2,239, +2,122,255,236,2,239,2,124,255,215, +2,239,2,128,255,236,2,239,2,130, +255,236,2,239,2,159,255,215,2,239, +2,161,255,236,2,239,2,169,255,236, +2,239,2,181,255,195,2,239,2,183, +255,236,2,239,2,185,255,236,2,239, +2,187,255,215,2,239,2,189,255,236, +2,239,2,191,255,215,2,239,2,193, +255,215,2,239,2,202,255,215,2,239, +2,206,255,215,2,239,2,207,255,236, +2,239,2,212,255,215,2,239,2,217, +255,215,2,239,2,219,255,215,2,239, +2,221,255,215,2,239,2,229,255,215, +2,239,2,231,255,236,2,239,2,245, +255,236,2,239,2,247,255,215,2,239, +2,249,255,215,2,239,2,251,255,215, +2,239,2,253,255,215,2,239,3,5, +255,215,2,239,3,7,255,215,2,239, +3,13,255,215,2,239,3,15,255,215, +2,239,3,17,255,215,2,239,3,18, +255,236,2,239,3,23,255,236,2,239, +3,27,255,215,2,239,3,28,255,236, +2,240,0,5,255,236,2,240,0,10, +255,236,2,240,1,208,255,215,2,240, +1,220,255,236,2,240,1,221,255,236, +2,240,1,223,255,215,2,240,1,225, +255,236,2,240,1,228,255,236,2,240, +1,246,255,236,2,240,2,7,255,236, +2,240,2,11,255,236,2,240,2,160, +255,215,2,240,2,170,255,236,2,240, +2,182,255,236,2,240,2,188,255,215, +2,240,2,190,255,236,2,240,2,192, +255,236,2,240,2,194,255,236,2,240, +2,203,255,215,2,240,2,213,255,236, +2,240,2,230,255,215,2,240,2,248, +255,236,2,240,2,250,255,236,2,240, +2,252,255,236,2,240,2,254,255,236, +2,240,3,6,255,215,2,240,3,8, +255,215,2,240,3,14,255,236,2,240, +3,16,255,236,2,240,3,24,255,236, +2,241,0,15,255,174,2,241,0,17, +255,174,2,241,1,157,255,236,2,241, +1,164,255,215,2,241,1,166,255,236, +2,241,1,168,255,215,2,241,1,170, +255,215,2,241,1,174,255,215,2,241, +1,176,255,215,2,241,1,177,255,236, +2,241,1,181,255,215,2,241,1,188, +255,195,2,241,1,189,255,215,2,241, +1,191,255,215,2,241,1,193,255,215, +2,241,1,196,255,236,2,241,1,199, +255,236,2,241,1,206,255,236,2,241, +1,213,255,236,2,241,1,242,255,236, +2,241,2,8,255,174,2,241,2,12, +255,174,2,241,2,114,255,215,2,241, +2,115,255,236,2,241,2,122,255,236, +2,241,2,124,255,215,2,241,2,128, +255,236,2,241,2,130,255,236,2,241, +2,159,255,215,2,241,2,161,255,236, +2,241,2,169,255,236,2,241,2,181, +255,195,2,241,2,183,255,236,2,241, +2,185,255,236,2,241,2,187,255,215, +2,241,2,189,255,236,2,241,2,191, +255,215,2,241,2,193,255,215,2,241, +2,202,255,215,2,241,2,206,255,215, +2,241,2,207,255,236,2,241,2,212, +255,215,2,241,2,217,255,215,2,241, +2,219,255,215,2,241,2,221,255,215, +2,241,2,229,255,215,2,241,2,231, +255,236,2,241,2,245,255,236,2,241, +2,247,255,215,2,241,2,249,255,215, +2,241,2,251,255,215,2,241,2,253, +255,215,2,241,3,5,255,215,2,241, +3,7,255,215,2,241,3,13,255,215, +2,241,3,15,255,215,2,241,3,17, +255,215,2,241,3,18,255,236,2,241, +3,23,255,236,2,241,3,27,255,215, +2,241,3,28,255,236,2,242,0,5, +255,236,2,242,0,10,255,236,2,242, +1,208,255,215,2,242,1,220,255,236, +2,242,1,221,255,236,2,242,1,223, +255,215,2,242,1,225,255,236,2,242, +1,228,255,236,2,242,1,246,255,236, +2,242,2,7,255,236,2,242,2,11, +255,236,2,242,2,160,255,215,2,242, +2,170,255,236,2,242,2,182,255,236, +2,242,2,188,255,215,2,242,2,190, +255,236,2,242,2,192,255,236,2,242, +2,194,255,236,2,242,2,203,255,215, +2,242,2,213,255,236,2,242,2,230, +255,215,2,242,2,248,255,236,2,242, +2,250,255,236,2,242,2,252,255,236, +2,242,2,254,255,236,2,242,3,6, +255,215,2,242,3,8,255,215,2,242, +3,14,255,236,2,242,3,16,255,236, +2,242,3,24,255,236,2,243,0,15, +255,174,2,243,0,17,255,174,2,243, +1,157,255,236,2,243,1,164,255,215, +2,243,1,166,255,236,2,243,1,168, +255,215,2,243,1,170,255,215,2,243, +1,174,255,215,2,243,1,176,255,215, +2,243,1,177,255,236,2,243,1,181, +255,215,2,243,1,188,255,195,2,243, +1,189,255,215,2,243,1,191,255,215, +2,243,1,193,255,215,2,243,1,196, +255,236,2,243,1,199,255,236,2,243, +1,206,255,236,2,243,1,213,255,236, +2,243,1,242,255,236,2,243,2,8, +255,174,2,243,2,12,255,174,2,243, +2,114,255,215,2,243,2,115,255,236, +2,243,2,122,255,236,2,243,2,124, +255,215,2,243,2,128,255,236,2,243, +2,130,255,236,2,243,2,159,255,215, +2,243,2,161,255,236,2,243,2,169, +255,236,2,243,2,181,255,195,2,243, +2,183,255,236,2,243,2,185,255,236, +2,243,2,187,255,215,2,243,2,189, +255,236,2,243,2,191,255,215,2,243, +2,193,255,215,2,243,2,202,255,215, +2,243,2,206,255,215,2,243,2,207, +255,236,2,243,2,212,255,215,2,243, +2,217,255,215,2,243,2,219,255,215, +2,243,2,221,255,215,2,243,2,229, +255,215,2,243,2,231,255,236,2,243, +2,245,255,236,2,243,2,247,255,215, +2,243,2,249,255,215,2,243,2,251, +255,215,2,243,2,253,255,215,2,243, +3,5,255,215,2,243,3,7,255,215, +2,243,3,13,255,215,2,243,3,15, +255,215,2,243,3,17,255,215,2,243, +3,18,255,236,2,243,3,23,255,236, +2,243,3,27,255,215,2,243,3,28, +255,236,2,244,0,5,255,236,2,244, +0,10,255,236,2,244,1,208,255,215, +2,244,1,220,255,236,2,244,1,221, +255,236,2,244,1,223,255,215,2,244, +1,225,255,236,2,244,1,228,255,236, +2,244,1,246,255,236,2,244,2,7, +255,236,2,244,2,11,255,236,2,244, +2,160,255,215,2,244,2,170,255,236, +2,244,2,182,255,236,2,244,2,188, +255,215,2,244,2,190,255,236,2,244, +2,192,255,236,2,244,2,194,255,236, +2,244,2,203,255,215,2,244,2,213, +255,236,2,244,2,230,255,215,2,244, +2,248,255,236,2,244,2,250,255,236, +2,244,2,252,255,236,2,244,2,254, +255,236,2,244,3,6,255,215,2,244, +3,8,255,215,2,244,3,14,255,236, +2,244,3,16,255,236,2,244,3,24, +255,236,2,245,0,15,255,174,2,245, +0,17,255,174,2,245,1,157,255,236, +2,245,1,164,255,215,2,245,1,166, +255,236,2,245,1,168,255,215,2,245, +1,170,255,215,2,245,1,174,255,215, +2,245,1,176,255,215,2,245,1,177, +255,236,2,245,1,181,255,215,2,245, +1,188,255,195,2,245,1,189,255,215, +2,245,1,191,255,215,2,245,1,193, +255,215,2,245,1,196,255,236,2,245, +1,199,255,236,2,245,1,206,255,236, +2,245,1,213,255,236,2,245,1,242, +255,236,2,245,2,8,255,174,2,245, +2,12,255,174,2,245,2,114,255,215, +2,245,2,115,255,236,2,245,2,122, +255,236,2,245,2,124,255,215,2,245, +2,128,255,236,2,245,2,130,255,236, +2,245,2,159,255,215,2,245,2,161, +255,236,2,245,2,169,255,236,2,245, +2,181,255,195,2,245,2,183,255,236, +2,245,2,185,255,236,2,245,2,187, +255,215,2,245,2,189,255,236,2,245, +2,191,255,215,2,245,2,193,255,215, +2,245,2,202,255,215,2,245,2,206, +255,215,2,245,2,207,255,236,2,245, +2,212,255,215,2,245,2,217,255,215, +2,245,2,219,255,215,2,245,2,221, +255,215,2,245,2,229,255,215,2,245, +2,231,255,236,2,245,2,245,255,236, +2,245,2,247,255,215,2,245,2,249, +255,215,2,245,2,251,255,215,2,245, +2,253,255,215,2,245,3,5,255,215, +2,245,3,7,255,215,2,245,3,13, +255,215,2,245,3,15,255,215,2,245, +3,17,255,215,2,245,3,18,255,236, +2,245,3,23,255,236,2,245,3,27, +255,215,2,245,3,28,255,236,2,246, +0,5,255,236,2,246,0,10,255,236, +2,246,1,208,255,215,2,246,1,220, +255,236,2,246,1,221,255,236,2,246, +1,223,255,215,2,246,1,225,255,236, +2,246,1,228,255,236,2,246,1,246, +255,236,2,246,2,7,255,236,2,246, +2,11,255,236,2,246,2,160,255,215, +2,246,2,170,255,236,2,246,2,182, +255,236,2,246,2,188,255,215,2,246, +2,190,255,236,2,246,2,192,255,236, +2,246,2,194,255,236,2,246,2,203, +255,215,2,246,2,213,255,236,2,246, +2,230,255,215,2,246,2,248,255,236, +2,246,2,250,255,236,2,246,2,252, +255,236,2,246,2,254,255,236,2,246, +3,6,255,215,2,246,3,8,255,215, +2,246,3,14,255,236,2,246,3,16, +255,236,2,246,3,24,255,236,2,247, +0,15,255,133,2,247,0,17,255,133, +2,247,1,159,255,236,2,247,1,164, +255,154,2,247,1,170,255,113,2,247, +1,174,255,154,2,247,1,181,255,154, +2,247,1,184,255,236,2,247,1,187, +255,236,2,247,1,190,255,195,2,247, +1,201,255,236,2,247,1,206,255,174, +2,247,1,207,255,215,2,247,1,213, +255,174,2,247,1,216,255,215,2,247, +1,219,255,215,2,247,1,222,255,215, +2,247,1,225,255,215,2,247,1,234, +255,215,2,247,1,235,0,102,2,247, +1,237,255,215,2,247,1,238,255,236, +2,247,1,242,255,174,2,247,1,244, +0,102,2,247,2,8,255,133,2,247, +2,12,255,133,2,247,2,106,255,215, +2,247,2,108,255,236,2,247,2,114, +255,113,2,247,2,115,255,174,2,247, +2,126,255,236,2,247,2,127,255,215, +2,247,2,132,255,236,2,247,2,133, +255,215,2,247,2,134,255,236,2,247, +2,135,255,215,2,247,2,136,255,236, +2,247,2,137,255,215,2,247,2,138, +255,236,2,247,2,140,255,236,2,247, +2,141,255,215,2,247,2,152,0,102, +2,247,2,168,0,102,2,247,2,177, +255,236,2,247,2,178,255,215,2,247, +2,179,255,236,2,247,2,180,255,215, +2,247,2,192,255,215,2,247,2,194, +255,215,2,247,2,197,255,215,2,247, +2,198,255,195,2,247,2,199,255,215, +2,247,2,200,255,195,2,247,2,206, +255,154,2,247,2,207,255,174,2,247, +2,213,255,215,2,247,2,217,255,113, +2,247,2,219,255,113,2,247,2,221, +255,113,2,247,2,224,255,215,2,247, +2,239,255,236,2,247,2,240,255,215, +2,247,2,241,255,236,2,247,2,242, +255,215,2,247,2,243,255,236,2,247, +2,244,255,215,2,247,2,254,255,215, +2,247,3,9,255,113,2,247,3,10, +255,215,2,247,3,11,255,113,2,247, +3,12,255,215,2,247,3,17,255,154, +2,247,3,18,255,174,2,247,3,21, +255,236,2,247,3,22,255,215,2,247, +3,26,255,215,2,247,3,27,255,154, +2,247,3,28,255,174,2,248,0,15, +255,174,2,248,0,17,255,174,2,248, +1,206,255,215,2,248,1,213,255,215, +2,248,1,242,255,215,2,248,2,8, +255,174,2,248,2,12,255,174,2,248, +2,115,255,215,2,248,2,207,255,215, +2,248,3,18,255,215,2,248,3,28, +255,215,2,249,0,15,255,133,2,249, +0,17,255,133,2,249,1,159,255,236, +2,249,1,164,255,154,2,249,1,170, +255,113,2,249,1,174,255,154,2,249, +1,181,255,154,2,249,1,184,255,236, +2,249,1,187,255,236,2,249,1,190, +255,195,2,249,1,201,255,236,2,249, +1,206,255,174,2,249,1,207,255,215, +2,249,1,213,255,174,2,249,1,216, +255,215,2,249,1,219,255,215,2,249, +1,222,255,215,2,249,1,225,255,215, +2,249,1,234,255,215,2,249,1,235, +0,102,2,249,1,237,255,215,2,249, +1,238,255,236,2,249,1,242,255,174, +2,249,1,244,0,102,2,249,2,8, +255,133,2,249,2,12,255,133,2,249, +2,106,255,215,2,249,2,108,255,236, +2,249,2,114,255,113,2,249,2,115, +255,174,2,249,2,126,255,236,2,249, +2,127,255,215,2,249,2,132,255,236, +2,249,2,133,255,215,2,249,2,134, +255,236,2,249,2,135,255,215,2,249, +2,136,255,236,2,249,2,137,255,215, +2,249,2,138,255,236,2,249,2,140, +255,236,2,249,2,141,255,215,2,249, +2,152,0,102,2,249,2,168,0,102, +2,249,2,177,255,236,2,249,2,178, +255,215,2,249,2,179,255,236,2,249, +2,180,255,215,2,249,2,192,255,215, +2,249,2,194,255,215,2,249,2,197, +255,215,2,249,2,198,255,195,2,249, +2,199,255,215,2,249,2,200,255,195, +2,249,2,206,255,154,2,249,2,207, +255,174,2,249,2,213,255,215,2,249, +2,217,255,113,2,249,2,219,255,113, +2,249,2,221,255,113,2,249,2,224, +255,215,2,249,2,239,255,236,2,249, +2,240,255,215,2,249,2,241,255,236, +2,249,2,242,255,215,2,249,2,243, +255,236,2,249,2,244,255,215,2,249, +2,254,255,215,2,249,3,9,255,113, +2,249,3,10,255,215,2,249,3,11, +255,113,2,249,3,12,255,215,2,249, +3,17,255,154,2,249,3,18,255,174, +2,249,3,21,255,236,2,249,3,22, +255,215,2,249,3,26,255,215,2,249, +3,27,255,154,2,249,3,28,255,174, +2,250,0,15,255,174,2,250,0,17, +255,174,2,250,1,206,255,215,2,250, +1,213,255,215,2,250,1,242,255,215, +2,250,2,8,255,174,2,250,2,12, +255,174,2,250,2,115,255,215,2,250, +2,207,255,215,2,250,3,18,255,215, +2,250,3,28,255,215,2,251,0,15, +255,133,2,251,0,17,255,133,2,251, +1,159,255,236,2,251,1,164,255,154, +2,251,1,170,255,113,2,251,1,174, +255,154,2,251,1,181,255,154,2,251, +1,184,255,236,2,251,1,187,255,236, +2,251,1,190,255,195,2,251,1,201, +255,236,2,251,1,206,255,174,2,251, +1,207,255,215,2,251,1,213,255,174, +2,251,1,216,255,215,2,251,1,219, +255,215,2,251,1,222,255,215,2,251, +1,225,255,215,2,251,1,234,255,215, +2,251,1,235,0,102,2,251,1,237, +255,215,2,251,1,238,255,236,2,251, +1,242,255,174,2,251,1,244,0,102, +2,251,2,8,255,133,2,251,2,12, +255,133,2,251,2,106,255,215,2,251, +2,108,255,236,2,251,2,114,255,113, +2,251,2,115,255,174,2,251,2,126, +255,236,2,251,2,127,255,215,2,251, +2,132,255,236,2,251,2,133,255,215, +2,251,2,134,255,236,2,251,2,135, +255,215,2,251,2,136,255,236,2,251, +2,137,255,215,2,251,2,138,255,236, +2,251,2,140,255,236,2,251,2,141, +255,215,2,251,2,152,0,102,2,251, +2,168,0,102,2,251,2,177,255,236, +2,251,2,178,255,215,2,251,2,179, +255,236,2,251,2,180,255,215,2,251, +2,192,255,215,2,251,2,194,255,215, +2,251,2,197,255,215,2,251,2,198, +255,195,2,251,2,199,255,215,2,251, +2,200,255,195,2,251,2,206,255,154, +2,251,2,207,255,174,2,251,2,213, +255,215,2,251,2,217,255,113,2,251, +2,219,255,113,2,251,2,221,255,113, +2,251,2,224,255,215,2,251,2,239, +255,236,2,251,2,240,255,215,2,251, +2,241,255,236,2,251,2,242,255,215, +2,251,2,243,255,236,2,251,2,244, +255,215,2,251,2,254,255,215,2,251, +3,9,255,113,2,251,3,10,255,215, +2,251,3,11,255,113,2,251,3,12, +255,215,2,251,3,17,255,154,2,251, +3,18,255,174,2,251,3,21,255,236, +2,251,3,22,255,215,2,251,3,26, +255,215,2,251,3,27,255,154,2,251, +3,28,255,174,2,252,0,15,255,174, +2,252,0,17,255,174,2,252,1,206, +255,215,2,252,1,213,255,215,2,252, +1,242,255,215,2,252,2,8,255,174, +2,252,2,12,255,174,2,252,2,115, +255,215,2,252,2,207,255,215,2,252, +3,18,255,215,2,252,3,28,255,215, +2,255,0,15,255,133,2,255,0,16, +255,174,2,255,0,17,255,133,2,255, +1,159,255,215,2,255,1,164,255,154, +2,255,1,170,255,113,2,255,1,174, +255,154,2,255,1,181,255,154,2,255, +1,184,255,215,2,255,1,187,255,215, +2,255,1,188,0,41,2,255,1,190, +255,174,2,255,1,204,255,154,2,255, +1,205,255,154,2,255,1,206,255,133, +2,255,1,207,255,113,2,255,1,208, +255,215,2,255,1,209,255,215,2,255, +1,210,255,154,2,255,1,211,255,154, +2,255,1,212,255,154,2,255,1,213, +255,133,2,255,1,214,255,154,2,255, +1,215,255,154,2,255,1,216,255,113, +2,255,1,217,255,154,2,255,1,218, +255,154,2,255,1,219,255,113,2,255, +1,220,255,174,2,255,1,221,255,174, +2,255,1,222,255,113,2,255,1,223, +255,215,2,255,1,224,255,154,2,255, +1,225,255,154,2,255,1,226,255,154, +2,255,1,227,255,154,2,255,1,228, +255,174,2,255,1,229,255,154,2,255, +1,230,255,154,2,255,1,231,255,215, +2,255,1,232,255,154,2,255,1,233, +255,195,2,255,1,234,255,113,2,255, +1,236,255,154,2,255,1,237,255,113, +2,255,1,238,255,133,2,255,1,242, +255,133,2,255,1,243,255,154,2,255, +1,245,255,154,2,255,1,246,255,174, +2,255,1,247,255,154,2,255,1,249, +255,154,2,255,2,2,255,174,2,255, +2,3,255,174,2,255,2,4,255,174, +2,255,2,8,255,133,2,255,2,12, +255,133,2,255,2,106,255,113,2,255, +2,107,255,154,2,255,2,108,255,215, +2,255,2,109,255,215,2,255,2,113, +255,154,2,255,2,114,255,113,2,255, +2,115,255,133,2,255,2,117,255,154, +2,255,2,119,255,154,2,255,2,121, +255,154,2,255,2,125,255,154,2,255, +2,126,255,215,2,255,2,127,255,113, +2,255,2,129,255,215,2,255,2,131, +255,215,2,255,2,132,255,215,2,255, +2,133,255,113,2,255,2,134,255,215, +2,255,2,135,255,113,2,255,2,136, +255,215,2,255,2,137,255,113,2,255, +2,138,255,215,2,255,2,139,255,215, +2,255,2,140,255,215,2,255,2,141, +255,113,2,255,2,150,255,154,2,255, +2,154,255,154,2,255,2,158,255,154, +2,255,2,160,255,215,2,255,2,162, +255,215,2,255,2,164,255,154,2,255, +2,166,255,154,2,255,2,170,255,174, +2,255,2,172,255,154,2,255,2,174, +255,154,2,255,2,176,255,154,2,255, +2,177,255,215,2,255,2,178,255,113, +2,255,2,179,255,215,2,255,2,180, +255,113,2,255,2,181,0,41,2,255, +2,182,255,174,2,255,2,184,255,174, +2,255,2,186,255,174,2,255,2,188, +255,215,2,255,2,190,255,174,2,255, +2,192,255,154,2,255,2,194,255,154, +2,255,2,196,255,154,2,255,2,197, +255,154,2,255,2,198,255,113,2,255, +2,199,255,154,2,255,2,200,255,113, +2,255,2,203,255,215,2,255,2,205, +255,154,2,255,2,206,255,154,2,255, +2,207,255,133,2,255,2,209,255,154, +2,255,2,211,255,154,2,255,2,213, +255,154,2,255,2,215,255,154,2,255, +2,217,255,113,2,255,2,219,255,113, +2,255,2,221,255,113,2,255,2,224, +255,113,2,255,2,230,255,215,2,255, +2,232,255,215,2,255,2,234,255,195, +2,255,2,236,255,154,2,255,2,238, +255,154,2,255,2,239,255,215,2,255, +2,240,255,113,2,255,2,241,255,215, +2,255,2,242,255,113,2,255,2,243, +255,215,2,255,2,244,255,113,2,255, +2,246,255,215,2,255,2,248,255,174, +2,255,2,250,255,174,2,255,2,252, +255,174,2,255,2,254,255,154,2,255, +3,0,255,154,2,255,3,2,255,154, +2,255,3,6,255,215,2,255,3,8, +255,215,2,255,3,9,255,113,2,255, +3,10,255,113,2,255,3,11,255,113, +2,255,3,12,255,113,2,255,3,14, +255,154,2,255,3,16,255,154,2,255, +3,17,255,154,2,255,3,18,255,133, +2,255,3,20,255,154,2,255,3,21, +255,215,2,255,3,22,255,113,2,255, +3,24,255,174,2,255,3,26,255,113, +2,255,3,27,255,154,2,255,3,28, +255,133,3,0,0,15,255,154,3,0, +0,16,255,215,3,0,0,17,255,154, +3,0,1,206,255,195,3,0,1,207, +255,236,3,0,1,213,255,195,3,0, +1,216,255,236,3,0,1,219,255,236, +3,0,1,222,255,236,3,0,1,234, +255,236,3,0,1,237,255,236,3,0, +1,242,255,195,3,0,2,2,255,215, +3,0,2,3,255,215,3,0,2,4, +255,215,3,0,2,8,255,154,3,0, +2,12,255,154,3,0,2,106,255,236, +3,0,2,115,255,195,3,0,2,127, +255,236,3,0,2,133,255,236,3,0, +2,135,255,236,3,0,2,137,255,236, +3,0,2,141,255,236,3,0,2,178, +255,236,3,0,2,180,255,236,3,0, +2,207,255,195,3,0,2,224,255,236, +3,0,2,240,255,236,3,0,2,242, +255,236,3,0,2,244,255,236,3,0, +3,10,255,236,3,0,3,12,255,236, +3,0,3,18,255,195,3,0,3,22, +255,236,3,0,3,26,255,236,3,0, +3,28,255,195,3,3,0,15,255,154, +3,3,0,16,255,215,3,3,0,17, +255,154,3,3,1,157,0,41,3,3, +1,159,255,215,3,3,1,164,255,174, +3,3,1,166,0,41,3,3,1,170, +255,133,3,3,1,174,255,174,3,3, +1,181,255,174,3,3,1,184,255,215, +3,3,1,187,255,215,3,3,1,188, +0,41,3,3,1,190,255,195,3,3, +1,196,0,41,3,3,1,204,255,195, +3,3,1,205,255,195,3,3,1,206, +255,154,3,3,1,207,255,174,3,3, +1,208,255,215,3,3,1,209,255,215, +3,3,1,210,255,195,3,3,1,211, +255,195,3,3,1,212,255,195,3,3, +1,213,255,154,3,3,1,214,255,195, +3,3,1,215,255,195,3,3,1,216, +255,174,3,3,1,217,255,195,3,3, +1,218,255,195,3,3,1,219,255,174, +3,3,1,222,255,174,3,3,1,223, +255,215,3,3,1,224,255,195,3,3, +1,225,255,154,3,3,1,226,255,195, +3,3,1,227,255,195,3,3,1,229, +255,195,3,3,1,230,255,195,3,3, +1,231,255,215,3,3,1,232,255,195, +3,3,1,234,255,174,3,3,1,235, +0,41,3,3,1,236,255,195,3,3, +1,237,255,174,3,3,1,238,255,195, +3,3,1,242,255,154,3,3,1,243, +255,195,3,3,1,244,0,41,3,3, +1,245,255,195,3,3,1,247,255,195, +3,3,1,249,255,195,3,3,2,2, +255,215,3,3,2,3,255,215,3,3, +2,4,255,215,3,3,2,8,255,154, +3,3,2,12,255,154,3,3,2,106, +255,174,3,3,2,107,255,195,3,3, +2,108,255,215,3,3,2,113,255,195, +3,3,2,114,255,133,3,3,2,115, +255,154,3,3,2,117,255,195,3,3, +2,119,255,215,3,3,2,121,255,195, +3,3,2,125,255,195,3,3,2,126, +255,215,3,3,2,127,255,174,3,3, +2,132,255,215,3,3,2,133,255,174, +3,3,2,134,255,215,3,3,2,135, +255,174,3,3,2,136,255,215,3,3, +2,137,255,174,3,3,2,138,255,215, +3,3,2,140,255,215,3,3,2,141, +255,174,3,3,2,150,255,195,3,3, +2,152,0,41,3,3,2,154,255,195, +3,3,2,158,255,195,3,3,2,160, +255,215,3,3,2,162,255,215,3,3, +2,164,255,195,3,3,2,166,255,195, +3,3,2,168,0,41,3,3,2,169, +0,41,3,3,2,172,255,195,3,3, +2,174,255,195,3,3,2,176,255,195, +3,3,2,177,255,215,3,3,2,178, +255,174,3,3,2,179,255,215,3,3, +2,180,255,174,3,3,2,181,0,41, +3,3,2,188,255,215,3,3,2,189, +0,41,3,3,2,192,255,154,3,3, +2,194,255,154,3,3,2,196,255,195, +3,3,2,197,255,215,3,3,2,198, +255,195,3,3,2,199,255,215,3,3, +2,200,255,195,3,3,2,203,255,215, +3,3,2,205,255,195,3,3,2,206, +255,174,3,3,2,207,255,154,3,3, +2,209,255,195,3,3,2,211,255,195, +3,3,2,213,255,154,3,3,2,215, +255,195,3,3,2,217,255,133,3,3, +2,219,255,133,3,3,2,221,255,133, +3,3,2,224,255,174,3,3,2,230, +255,215,3,3,2,232,255,215,3,3, +2,236,255,195,3,3,2,238,255,195, +3,3,2,239,255,215,3,3,2,240, +255,174,3,3,2,241,255,215,3,3, +2,242,255,174,3,3,2,243,255,215, +3,3,2,244,255,174,3,3,2,246, +255,215,3,3,2,254,255,154,3,3, +3,0,255,195,3,3,3,2,255,195, +3,3,3,6,255,215,3,3,3,8, +255,215,3,3,3,9,255,154,3,3, +3,10,255,174,3,3,3,11,255,154, +3,3,3,12,255,174,3,3,3,14, +255,215,3,3,3,16,255,215,3,3, +3,17,255,174,3,3,3,18,255,154, +3,3,3,20,255,195,3,3,3,21, +255,215,3,3,3,22,255,174,3,3, +3,23,0,41,3,3,3,26,255,174, +3,3,3,27,255,174,3,3,3,28, +255,154,3,4,0,15,255,195,3,4, +0,17,255,195,3,4,1,206,255,195, +3,4,1,207,255,215,3,4,1,213, +255,195,3,4,1,216,255,215,3,4, +1,219,255,215,3,4,1,222,255,215, +3,4,1,234,255,215,3,4,1,237, +255,215,3,4,1,242,255,195,3,4, +2,8,255,195,3,4,2,12,255,195, +3,4,2,106,255,215,3,4,2,115, +255,195,3,4,2,127,255,215,3,4, +2,133,255,215,3,4,2,135,255,215, +3,4,2,137,255,215,3,4,2,141, +255,215,3,4,2,178,255,215,3,4, +2,180,255,215,3,4,2,207,255,195, +3,4,2,224,255,215,3,4,2,240, +255,215,3,4,2,242,255,215,3,4, +2,244,255,215,3,4,3,10,255,215, +3,4,3,12,255,215,3,4,3,18, +255,195,3,4,3,22,255,215,3,4, +3,26,255,215,3,4,3,28,255,195, +3,5,1,159,255,215,3,5,1,163, +0,225,3,5,1,184,255,215,3,5, +1,187,255,215,3,5,1,190,255,195, +3,5,1,220,255,215,3,5,1,225, +255,174,3,5,1,228,255,215,3,5, +2,108,255,215,3,5,2,123,0,61, +3,5,2,125,255,236,3,5,2,126, +255,215,3,5,2,132,255,215,3,5, +2,134,255,215,3,5,2,136,255,215, +3,5,2,138,255,215,3,5,2,140, +255,215,3,5,2,170,255,215,3,5, +2,177,255,215,3,5,2,179,255,215, +3,5,2,182,255,215,3,5,2,190, +255,215,3,5,2,192,255,174,3,5, +2,194,255,174,3,5,2,197,255,195, +3,5,2,198,255,215,3,5,2,199, +255,195,3,5,2,200,255,215,3,5, +2,213,255,174,3,5,2,239,255,215, +3,5,2,241,255,215,3,5,2,243, +255,215,3,5,2,254,255,174,3,5, +3,14,255,215,3,5,3,16,255,215, +3,5,3,21,255,215,3,5,3,24, +255,215,3,6,1,207,255,236,3,6, +1,216,255,236,3,6,1,219,255,236, +3,6,1,222,255,236,3,6,1,225, +255,236,3,6,1,234,255,236,3,6, +1,237,255,236,3,6,2,106,255,236, +3,6,2,127,255,236,3,6,2,133, +255,236,3,6,2,135,255,236,3,6, +2,137,255,236,3,6,2,141,255,236, +3,6,2,178,255,236,3,6,2,180, +255,236,3,6,2,192,255,236,3,6, +2,194,255,236,3,6,2,213,255,236, +3,6,2,224,255,236,3,6,2,240, +255,236,3,6,2,242,255,236,3,6, +2,244,255,236,3,6,2,254,255,236, +3,6,3,10,255,236,3,6,3,12, +255,236,3,6,3,14,255,215,3,6, +3,16,255,215,3,6,3,22,255,236, +3,6,3,26,255,236,3,7,1,159, +255,215,3,7,1,184,255,215,3,7, +1,187,255,215,3,7,1,190,255,215, +3,7,1,193,255,215,3,7,1,225, +255,215,3,7,2,108,255,215,3,7, +2,124,255,215,3,7,2,126,255,215, +3,7,2,132,255,215,3,7,2,134, +255,215,3,7,2,136,255,215,3,7, +2,138,255,215,3,7,2,140,255,215, +3,7,2,177,255,215,3,7,2,179, +255,215,3,7,2,191,255,215,3,7, +2,192,255,215,3,7,2,193,255,215, +3,7,2,194,255,215,3,7,2,197, +255,154,3,7,2,199,255,154,3,7, +2,212,255,215,3,7,2,213,255,215, +3,7,2,239,255,215,3,7,2,241, +255,215,3,7,2,243,255,215,3,7, +2,253,255,215,3,7,2,254,255,215, +3,7,3,9,255,215,3,7,3,11, +255,215,3,7,3,14,255,215,3,7, +3,16,255,215,3,7,3,21,255,215, +3,7,3,25,255,236,3,8,1,207, +255,236,3,8,1,216,255,236,3,8, +1,219,255,236,3,8,1,222,255,236, +3,8,1,225,255,236,3,8,1,234, +255,236,3,8,1,237,255,236,3,8, +2,106,255,236,3,8,2,127,255,236, +3,8,2,133,255,236,3,8,2,135, +255,236,3,8,2,137,255,236,3,8, +2,141,255,236,3,8,2,178,255,236, +3,8,2,180,255,236,3,8,2,192, +255,236,3,8,2,194,255,236,3,8, +2,213,255,236,3,8,2,224,255,236, +3,8,2,240,255,236,3,8,2,242, +255,236,3,8,2,244,255,236,3,8, +2,254,255,236,3,8,3,10,255,236, +3,8,3,12,255,236,3,8,3,14, +255,215,3,8,3,16,255,215,3,8, +3,22,255,236,3,8,3,26,255,236, +3,11,0,5,255,154,3,11,0,10, +255,154,3,11,1,157,255,174,3,11, +1,166,255,174,3,11,1,168,255,195, +3,11,1,170,255,195,3,11,1,176, +255,195,3,11,1,188,255,113,3,11, +1,189,255,195,3,11,1,191,255,195, +3,11,1,193,255,195,3,11,1,196, +255,174,3,11,1,208,255,215,3,11, +1,220,255,195,3,11,1,223,255,215, +3,11,1,225,255,215,3,11,1,228, +255,195,3,11,2,7,255,154,3,11, +2,11,255,154,3,11,2,114,255,195, +3,11,2,118,255,215,3,11,2,124, +255,195,3,11,2,128,255,195,3,11, +2,130,255,195,3,11,2,159,255,195, +3,11,2,160,255,215,3,11,2,169, +255,174,3,11,2,170,255,195,3,11, +2,181,255,113,3,11,2,182,255,195, +3,11,2,183,255,195,3,11,2,185, +255,195,3,11,2,187,255,195,3,11, +2,188,255,215,3,11,2,189,255,174, +3,11,2,190,255,195,3,11,2,191, +255,195,3,11,2,192,255,215,3,11, +2,193,255,195,3,11,2,194,255,215, +3,11,2,202,255,195,3,11,2,203, +255,215,3,11,2,212,255,195,3,11, +2,213,255,215,3,11,2,217,255,195, +3,11,2,219,255,195,3,11,2,221, +255,195,3,11,2,229,255,195,3,11, +2,230,255,215,3,11,2,247,255,195, +3,11,2,249,255,195,3,11,2,251, +255,195,3,11,2,253,255,195,3,11, +2,254,255,215,3,11,3,5,255,195, +3,11,3,6,255,215,3,11,3,7, +255,195,3,11,3,8,255,215,3,11, +3,13,255,215,3,11,3,14,255,215, +3,11,3,15,255,215,3,11,3,16, +255,215,3,11,3,23,255,174,3,11, +3,24,255,195,3,12,0,5,255,154, +3,12,0,10,255,154,3,12,1,208, +255,215,3,12,1,220,255,195,3,12, +1,221,255,215,3,12,1,223,255,215, +3,12,1,225,255,215,3,12,1,228, +255,195,3,12,1,246,255,215,3,12, +2,7,255,154,3,12,2,11,255,154, +3,12,2,160,255,215,3,12,2,170, +255,195,3,12,2,182,255,195,3,12, +2,188,255,215,3,12,2,190,255,195, +3,12,2,192,255,215,3,12,2,194, +255,215,3,12,2,203,255,215,3,12, +2,213,255,215,3,12,2,230,255,215, +3,12,2,248,255,215,3,12,2,250, +255,215,3,12,2,252,255,215,3,12, +2,254,255,215,3,12,3,6,255,215, +3,12,3,8,255,215,3,12,3,14, +255,154,3,12,3,16,255,154,3,12, +3,24,255,195,3,13,0,5,255,154, +3,13,0,10,255,154,3,13,1,157, +255,174,3,13,1,166,255,174,3,13, +1,168,255,195,3,13,1,170,255,195, +3,13,1,176,255,195,3,13,1,188, +255,113,3,13,1,189,255,195,3,13, +1,191,255,195,3,13,1,193,255,195, +3,13,1,196,255,174,3,13,1,208, +255,215,3,13,1,220,255,195,3,13, +1,223,255,215,3,13,1,225,255,215, +3,13,1,228,255,195,3,13,2,7, +255,154,3,13,2,11,255,154,3,13, +2,114,255,195,3,13,2,118,255,215, +3,13,2,124,255,195,3,13,2,128, +255,195,3,13,2,130,255,195,3,13, +2,159,255,195,3,13,2,160,255,215, +3,13,2,169,255,174,3,13,2,170, +255,195,3,13,2,181,255,113,3,13, +2,182,255,195,3,13,2,183,255,195, +3,13,2,185,255,195,3,13,2,187, +255,195,3,13,2,188,255,215,3,13, +2,189,255,174,3,13,2,190,255,195, +3,13,2,191,255,195,3,13,2,192, +255,215,3,13,2,193,255,195,3,13, +2,194,255,215,3,13,2,202,255,195, +3,13,2,203,255,215,3,13,2,212, +255,195,3,13,2,213,255,215,3,13, +2,217,255,195,3,13,2,219,255,195, +3,13,2,221,255,195,3,13,2,229, +255,195,3,13,2,230,255,215,3,13, +2,247,255,195,3,13,2,249,255,195, +3,13,2,251,255,195,3,13,2,253, +255,195,3,13,2,254,255,215,3,13, +3,5,255,195,3,13,3,6,255,215, +3,13,3,7,255,195,3,13,3,8, +255,215,3,13,3,13,255,215,3,13, +3,14,255,215,3,13,3,15,255,215, +3,13,3,16,255,215,3,13,3,23, +255,174,3,13,3,24,255,195,3,14, +0,5,255,154,3,14,0,10,255,154, +3,14,1,208,255,215,3,14,1,220, +255,195,3,14,1,221,255,215,3,14, +1,223,255,215,3,14,1,225,255,215, +3,14,1,228,255,195,3,14,1,246, +255,215,3,14,2,7,255,154,3,14, +2,11,255,154,3,14,2,160,255,215, +3,14,2,170,255,195,3,14,2,182, +255,195,3,14,2,188,255,215,3,14, +2,190,255,195,3,14,2,192,255,215, +3,14,2,194,255,215,3,14,2,203, +255,215,3,14,2,213,255,215,3,14, +2,230,255,215,3,14,2,248,255,215, +3,14,2,250,255,215,3,14,2,252, +255,215,3,14,2,254,255,215,3,14, +3,6,255,215,3,14,3,8,255,215, +3,14,3,14,255,154,3,14,3,16, +255,154,3,14,3,24,255,195,3,15, +1,163,0,225,3,15,2,234,0,41, +3,15,3,14,255,215,3,15,3,16, +255,215,3,16,0,5,255,236,3,16, +0,10,255,236,3,16,2,7,255,236, +3,16,2,11,255,236,3,17,0,5, +255,154,3,17,0,10,255,154,3,17, +1,157,255,174,3,17,1,166,255,174, +3,17,1,168,255,195,3,17,1,170, +255,195,3,17,1,176,255,195,3,17, +1,188,255,113,3,17,1,189,255,195, +3,17,1,191,255,195,3,17,1,193, +255,195,3,17,1,196,255,174,3,17, +1,208,255,215,3,17,1,220,255,195, +3,17,1,223,255,215,3,17,1,225, +255,215,3,17,1,228,255,195,3,17, +2,7,255,154,3,17,2,11,255,154, +3,17,2,114,255,195,3,17,2,118, +255,215,3,17,2,124,255,195,3,17, +2,128,255,195,3,17,2,130,255,195, +3,17,2,159,255,195,3,17,2,160, +255,215,3,17,2,169,255,174,3,17, +2,170,255,195,3,17,2,181,255,113, +3,17,2,182,255,195,3,17,2,183, +255,195,3,17,2,185,255,195,3,17, +2,187,255,195,3,17,2,188,255,215, +3,17,2,189,255,174,3,17,2,190, +255,195,3,17,2,191,255,195,3,17, +2,192,255,215,3,17,2,193,255,195, +3,17,2,194,255,215,3,17,2,202, +255,195,3,17,2,203,255,215,3,17, +2,212,255,195,3,17,2,213,255,215, +3,17,2,217,255,195,3,17,2,219, +255,195,3,17,2,221,255,195,3,17, +2,229,255,195,3,17,2,230,255,215, +3,17,2,247,255,195,3,17,2,249, +255,195,3,17,2,251,255,195,3,17, +2,253,255,195,3,17,2,254,255,215, +3,17,3,5,255,195,3,17,3,6, +255,215,3,17,3,7,255,195,3,17, +3,8,255,215,3,17,3,13,255,215, +3,17,3,14,255,215,3,17,3,15, +255,215,3,17,3,16,255,215,3,17, +3,23,255,174,3,17,3,24,255,195, +3,18,0,5,255,154,3,18,0,10, +255,154,3,18,1,208,255,215,3,18, +1,220,255,195,3,18,1,221,255,215, +3,18,1,223,255,215,3,18,1,225, +255,215,3,18,1,228,255,195,3,18, +1,246,255,215,3,18,2,7,255,154, +3,18,2,11,255,154,3,18,2,160, +255,215,3,18,2,170,255,195,3,18, +2,182,255,195,3,18,2,188,255,215, +3,18,2,190,255,195,3,18,2,192, +255,215,3,18,2,194,255,215,3,18, +2,203,255,215,3,18,2,213,255,215, +3,18,2,230,255,215,3,18,2,248, +255,215,3,18,2,250,255,215,3,18, +2,252,255,215,3,18,2,254,255,215, +3,18,3,6,255,215,3,18,3,8, +255,215,3,18,3,14,255,154,3,18, +3,16,255,154,3,18,3,24,255,195, +3,19,0,5,255,154,3,19,0,10, +255,154,3,19,1,157,255,174,3,19, +1,166,255,174,3,19,1,168,255,195, +3,19,1,170,255,195,3,19,1,176, +255,195,3,19,1,188,255,113,3,19, +1,189,255,195,3,19,1,191,255,195, +3,19,1,193,255,195,3,19,1,196, +255,174,3,19,1,208,255,215,3,19, +1,220,255,195,3,19,1,223,255,215, +3,19,1,225,255,215,3,19,1,228, +255,195,3,19,2,7,255,154,3,19, +2,11,255,154,3,19,2,114,255,195, +3,19,2,118,255,215,3,19,2,124, +255,195,3,19,2,128,255,195,3,19, +2,130,255,195,3,19,2,159,255,195, +3,19,2,160,255,215,3,19,2,169, +255,174,3,19,2,170,255,195,3,19, +2,181,255,113,3,19,2,182,255,195, +3,19,2,183,255,195,3,19,2,185, +255,195,3,19,2,187,255,195,3,19, +2,188,255,215,3,19,2,189,255,174, +3,19,2,190,255,195,3,19,2,191, +255,195,3,19,2,192,255,215,3,19, +2,193,255,195,3,19,2,194,255,215, +3,19,2,202,255,195,3,19,2,203, +255,215,3,19,2,212,255,195,3,19, +2,213,255,215,3,19,2,217,255,195, +3,19,2,219,255,195,3,19,2,221, +255,195,3,19,2,229,255,195,3,19, +2,230,255,215,3,19,2,247,255,195, +3,19,2,249,255,195,3,19,2,251, +255,195,3,19,2,253,255,195,3,19, +2,254,255,215,3,19,3,5,255,195, +3,19,3,6,255,215,3,19,3,7, +255,195,3,19,3,8,255,215,3,19, +3,13,255,215,3,19,3,14,255,215, +3,19,3,15,255,215,3,19,3,16, +255,215,3,19,3,23,255,174,3,19, +3,24,255,195,3,20,0,5,255,154, +3,20,0,10,255,154,3,20,1,208, +255,215,3,20,1,220,255,195,3,20, +1,221,255,215,3,20,1,223,255,215, +3,20,1,225,255,215,3,20,1,228, +255,195,3,20,1,246,255,215,3,20, +2,7,255,154,3,20,2,11,255,154, +3,20,2,160,255,215,3,20,2,170, +255,195,3,20,2,182,255,195,3,20, +2,188,255,215,3,20,2,190,255,195, +3,20,2,192,255,215,3,20,2,194, +255,215,3,20,2,203,255,215,3,20, +2,213,255,215,3,20,2,230,255,215, +3,20,2,248,255,215,3,20,2,250, +255,215,3,20,2,252,255,215,3,20, +2,254,255,215,3,20,3,6,255,215, +3,20,3,8,255,215,3,20,3,14, +255,154,3,20,3,16,255,154,3,20, +3,24,255,195,3,21,0,15,255,174, +3,21,0,17,255,174,3,21,1,170, +255,236,3,21,1,176,255,215,3,21, +1,188,255,215,3,21,1,191,255,215, +3,21,2,8,255,174,3,21,2,12, +255,174,3,21,2,114,255,236,3,21, +2,128,255,236,3,21,2,130,255,236, +3,21,2,159,255,215,3,21,2,181, +255,215,3,21,2,183,255,236,3,21, +2,185,255,236,3,21,2,187,255,215, +3,21,2,202,255,215,3,21,2,217, +255,236,3,21,2,219,255,236,3,21, +2,221,255,236,3,21,2,229,255,215, +3,21,3,5,255,215,3,21,3,7, +255,215,3,22,0,5,255,215,3,22, +0,10,255,215,3,22,1,208,255,236, +3,22,1,221,255,236,3,22,1,223, +255,236,3,22,1,246,255,236,3,22, +2,7,255,215,3,22,2,11,255,215, +3,22,2,160,255,236,3,22,2,188, +255,236,3,22,2,203,255,236,3,22, +2,230,255,236,3,22,2,248,255,236, +3,22,2,250,255,236,3,22,2,252, +255,236,3,22,3,6,255,236,3,22, +3,8,255,236,3,22,3,14,255,215, +3,22,3,16,255,215,3,23,0,5, +255,174,3,23,0,10,255,174,3,23, +1,157,255,195,3,23,1,166,255,195, +3,23,1,170,255,215,3,23,1,176, +255,215,3,23,1,188,255,195,3,23, +1,191,255,215,3,23,1,193,255,215, +3,23,1,196,255,195,3,23,1,220, +255,215,3,23,1,228,255,215,3,23, +2,7,255,174,3,23,2,11,255,174, +3,23,2,114,255,215,3,23,2,124, +255,215,3,23,2,128,255,215,3,23, +2,130,255,215,3,23,2,159,255,215, +3,23,2,169,255,195,3,23,2,170, +255,215,3,23,2,181,255,195,3,23, +2,182,255,215,3,23,2,183,255,215, +3,23,2,185,255,215,3,23,2,187, +255,215,3,23,2,189,255,195,3,23, +2,190,255,215,3,23,2,191,255,215, +3,23,2,193,255,215,3,23,2,202, +255,215,3,23,2,212,255,215,3,23, +2,217,255,215,3,23,2,219,255,215, +3,23,2,221,255,215,3,23,2,229, +255,215,3,23,2,253,255,215,3,23, +3,5,255,215,3,23,3,7,255,215, +3,23,3,13,255,215,3,23,3,15, +255,215,3,23,3,23,255,195,3,23, +3,24,255,215,3,24,0,5,255,154, +3,24,0,10,255,154,3,24,1,208, +255,215,3,24,1,220,255,195,3,24, +1,221,255,215,3,24,1,223,255,215, +3,24,1,225,255,215,3,24,1,228, +255,195,3,24,1,246,255,215,3,24, +2,7,255,154,3,24,2,11,255,154, +3,24,2,160,255,215,3,24,2,170, +255,195,3,24,2,182,255,195,3,24, +2,188,255,215,3,24,2,190,255,195, +3,24,2,192,255,215,3,24,2,194, +255,215,3,24,2,203,255,215,3,24, +2,213,255,215,3,24,2,230,255,215, +3,24,2,248,255,215,3,24,2,250, +255,215,3,24,2,252,255,215,3,24, +2,254,255,215,3,24,3,6,255,215, +3,24,3,8,255,215,3,24,3,14, +255,154,3,24,3,16,255,154,3,24, +3,24,255,195,3,25,1,225,255,215, +3,25,2,192,255,215,3,25,2,194, +255,215,3,25,2,213,255,215,3,25, +2,254,255,215,3,27,1,163,0,225, +3,27,2,234,0,41,3,27,3,14, +255,215,3,27,3,16,255,215,3,28, +0,5,255,236,3,28,0,10,255,236, +3,28,2,7,255,236,3,28,2,11, +255,236,3,29,0,5,255,113,3,29, +0,10,255,113,3,29,0,38,255,215, +3,29,0,42,255,215,3,29,0,45, +1,10,3,29,0,50,255,215,3,29, +0,52,255,215,3,29,0,55,255,113, +3,29,0,57,255,174,3,29,0,58, +255,174,3,29,0,60,255,133,3,29, +0,137,255,215,3,29,0,148,255,215, +3,29,0,149,255,215,3,29,0,150, +255,215,3,29,0,151,255,215,3,29, +0,152,255,215,3,29,0,154,255,215, +3,29,0,159,255,133,3,29,0,200, +255,215,3,29,0,202,255,215,3,29, +0,204,255,215,3,29,0,206,255,215, +3,29,0,222,255,215,3,29,0,224, +255,215,3,29,0,226,255,215,3,29, +0,228,255,215,3,29,1,14,255,215, +3,29,1,16,255,215,3,29,1,18, +255,215,3,29,1,20,255,215,3,29, +1,36,255,113,3,29,1,38,255,113, +3,29,1,54,255,174,3,29,1,56, +255,133,3,29,1,58,255,133,3,29, +1,71,255,215,3,29,1,250,255,174, +3,29,1,252,255,174,3,29,1,254, +255,174,3,29,2,0,255,133,3,29, +2,7,255,113,3,29,2,11,255,113, +3,29,2,95,255,215,3,29,3,73, +255,215,3,29,3,75,255,215,3,29, +3,77,255,215,3,29,3,79,255,215, +3,29,3,81,255,215,3,29,3,83, +255,215,3,29,3,85,255,215,3,29, +3,87,255,215,3,29,3,89,255,215, +3,29,3,91,255,215,3,29,3,93, +255,215,3,29,3,95,255,215,3,29, +3,111,255,133,3,29,3,113,255,133, +3,29,3,115,255,133,3,29,3,143, +255,113,3,30,0,5,255,236,3,30, +0,10,255,236,3,30,2,7,255,236, +3,30,2,11,255,236,3,31,0,5, +255,113,3,31,0,10,255,113,3,31, +0,38,255,215,3,31,0,42,255,215, +3,31,0,45,1,10,3,31,0,50, +255,215,3,31,0,52,255,215,3,31, +0,55,255,113,3,31,0,57,255,174, +3,31,0,58,255,174,3,31,0,60, +255,133,3,31,0,137,255,215,3,31, +0,148,255,215,3,31,0,149,255,215, +3,31,0,150,255,215,3,31,0,151, +255,215,3,31,0,152,255,215,3,31, +0,154,255,215,3,31,0,159,255,133, +3,31,0,200,255,215,3,31,0,202, +255,215,3,31,0,204,255,215,3,31, +0,206,255,215,3,31,0,222,255,215, +3,31,0,224,255,215,3,31,0,226, +255,215,3,31,0,228,255,215,3,31, +1,14,255,215,3,31,1,16,255,215, +3,31,1,18,255,215,3,31,1,20, +255,215,3,31,1,36,255,113,3,31, +1,38,255,113,3,31,1,54,255,174, +3,31,1,56,255,133,3,31,1,58, +255,133,3,31,1,71,255,215,3,31, +1,250,255,174,3,31,1,252,255,174, +3,31,1,254,255,174,3,31,2,0, +255,133,3,31,2,7,255,113,3,31, +2,11,255,113,3,31,2,95,255,215, +3,31,3,73,255,215,3,31,3,75, +255,215,3,31,3,77,255,215,3,31, +3,79,255,215,3,31,3,81,255,215, +3,31,3,83,255,215,3,31,3,85, +255,215,3,31,3,87,255,215,3,31, +3,89,255,215,3,31,3,91,255,215, +3,31,3,93,255,215,3,31,3,95, +255,215,3,31,3,111,255,133,3,31, +3,113,255,133,3,31,3,115,255,133, +3,31,3,143,255,113,3,32,0,5, +255,236,3,32,0,10,255,236,3,32, +2,7,255,236,3,32,2,11,255,236, +3,33,0,5,255,113,3,33,0,10, +255,113,3,33,0,38,255,215,3,33, +0,42,255,215,3,33,0,45,1,10, +3,33,0,50,255,215,3,33,0,52, +255,215,3,33,0,55,255,113,3,33, +0,57,255,174,3,33,0,58,255,174, +3,33,0,60,255,133,3,33,0,137, +255,215,3,33,0,148,255,215,3,33, +0,149,255,215,3,33,0,150,255,215, +3,33,0,151,255,215,3,33,0,152, +255,215,3,33,0,154,255,215,3,33, +0,159,255,133,3,33,0,200,255,215, +3,33,0,202,255,215,3,33,0,204, +255,215,3,33,0,206,255,215,3,33, +0,222,255,215,3,33,0,224,255,215, +3,33,0,226,255,215,3,33,0,228, +255,215,3,33,1,14,255,215,3,33, +1,16,255,215,3,33,1,18,255,215, +3,33,1,20,255,215,3,33,1,36, +255,113,3,33,1,38,255,113,3,33, +1,54,255,174,3,33,1,56,255,133, +3,33,1,58,255,133,3,33,1,71, +255,215,3,33,1,250,255,174,3,33, +1,252,255,174,3,33,1,254,255,174, +3,33,2,0,255,133,3,33,2,7, +255,113,3,33,2,11,255,113,3,33, +2,95,255,215,3,33,3,73,255,215, +3,33,3,75,255,215,3,33,3,77, +255,215,3,33,3,79,255,215,3,33, +3,81,255,215,3,33,3,83,255,215, +3,33,3,85,255,215,3,33,3,87, +255,215,3,33,3,89,255,215,3,33, +3,91,255,215,3,33,3,93,255,215, +3,33,3,95,255,215,3,33,3,111, +255,133,3,33,3,113,255,133,3,33, +3,115,255,133,3,33,3,143,255,113, +3,34,0,5,255,236,3,34,0,10, +255,236,3,34,2,7,255,236,3,34, +2,11,255,236,3,35,0,5,255,113, +3,35,0,10,255,113,3,35,0,38, +255,215,3,35,0,42,255,215,3,35, +0,45,1,10,3,35,0,50,255,215, +3,35,0,52,255,215,3,35,0,55, +255,113,3,35,0,57,255,174,3,35, +0,58,255,174,3,35,0,60,255,133, +3,35,0,137,255,215,3,35,0,148, +255,215,3,35,0,149,255,215,3,35, +0,150,255,215,3,35,0,151,255,215, +3,35,0,152,255,215,3,35,0,154, +255,215,3,35,0,159,255,133,3,35, +0,200,255,215,3,35,0,202,255,215, +3,35,0,204,255,215,3,35,0,206, +255,215,3,35,0,222,255,215,3,35, +0,224,255,215,3,35,0,226,255,215, +3,35,0,228,255,215,3,35,1,14, +255,215,3,35,1,16,255,215,3,35, +1,18,255,215,3,35,1,20,255,215, +3,35,1,36,255,113,3,35,1,38, +255,113,3,35,1,54,255,174,3,35, +1,56,255,133,3,35,1,58,255,133, +3,35,1,71,255,215,3,35,1,250, +255,174,3,35,1,252,255,174,3,35, +1,254,255,174,3,35,2,0,255,133, +3,35,2,7,255,113,3,35,2,11, +255,113,3,35,2,95,255,215,3,35, +3,73,255,215,3,35,3,75,255,215, +3,35,3,77,255,215,3,35,3,79, +255,215,3,35,3,81,255,215,3,35, +3,83,255,215,3,35,3,85,255,215, +3,35,3,87,255,215,3,35,3,89, +255,215,3,35,3,91,255,215,3,35, +3,93,255,215,3,35,3,95,255,215, +3,35,3,111,255,133,3,35,3,113, +255,133,3,35,3,115,255,133,3,35, +3,143,255,113,3,36,0,5,255,236, +3,36,0,10,255,236,3,36,2,7, +255,236,3,36,2,11,255,236,3,37, +0,5,255,113,3,37,0,10,255,113, +3,37,0,38,255,215,3,37,0,42, +255,215,3,37,0,45,1,10,3,37, +0,50,255,215,3,37,0,52,255,215, +3,37,0,55,255,113,3,37,0,57, +255,174,3,37,0,58,255,174,3,37, +0,60,255,133,3,37,0,137,255,215, +3,37,0,148,255,215,3,37,0,149, +255,215,3,37,0,150,255,215,3,37, +0,151,255,215,3,37,0,152,255,215, +3,37,0,154,255,215,3,37,0,159, +255,133,3,37,0,200,255,215,3,37, +0,202,255,215,3,37,0,204,255,215, +3,37,0,206,255,215,3,37,0,222, +255,215,3,37,0,224,255,215,3,37, +0,226,255,215,3,37,0,228,255,215, +3,37,1,14,255,215,3,37,1,16, +255,215,3,37,1,18,255,215,3,37, +1,20,255,215,3,37,1,36,255,113, +3,37,1,38,255,113,3,37,1,54, +255,174,3,37,1,56,255,133,3,37, +1,58,255,133,3,37,1,71,255,215, +3,37,1,250,255,174,3,37,1,252, +255,174,3,37,1,254,255,174,3,37, +2,0,255,133,3,37,2,7,255,113, +3,37,2,11,255,113,3,37,2,95, +255,215,3,37,3,73,255,215,3,37, +3,75,255,215,3,37,3,77,255,215, +3,37,3,79,255,215,3,37,3,81, +255,215,3,37,3,83,255,215,3,37, +3,85,255,215,3,37,3,87,255,215, +3,37,3,89,255,215,3,37,3,91, +255,215,3,37,3,93,255,215,3,37, +3,95,255,215,3,37,3,111,255,133, +3,37,3,113,255,133,3,37,3,115, +255,133,3,37,3,143,255,113,3,38, +0,5,255,236,3,38,0,10,255,236, +3,38,2,7,255,236,3,38,2,11, +255,236,3,39,0,5,255,113,3,39, +0,10,255,113,3,39,0,38,255,215, +3,39,0,42,255,215,3,39,0,45, +1,10,3,39,0,50,255,215,3,39, +0,52,255,215,3,39,0,55,255,113, +3,39,0,57,255,174,3,39,0,58, +255,174,3,39,0,60,255,133,3,39, +0,137,255,215,3,39,0,148,255,215, +3,39,0,149,255,215,3,39,0,150, +255,215,3,39,0,151,255,215,3,39, +0,152,255,215,3,39,0,154,255,215, +3,39,0,159,255,133,3,39,0,200, +255,215,3,39,0,202,255,215,3,39, +0,204,255,215,3,39,0,206,255,215, +3,39,0,222,255,215,3,39,0,224, +255,215,3,39,0,226,255,215,3,39, +0,228,255,215,3,39,1,14,255,215, +3,39,1,16,255,215,3,39,1,18, +255,215,3,39,1,20,255,215,3,39, +1,36,255,113,3,39,1,38,255,113, +3,39,1,54,255,174,3,39,1,56, +255,133,3,39,1,58,255,133,3,39, +1,71,255,215,3,39,1,250,255,174, +3,39,1,252,255,174,3,39,1,254, +255,174,3,39,2,0,255,133,3,39, +2,7,255,113,3,39,2,11,255,113, +3,39,2,95,255,215,3,39,3,73, +255,215,3,39,3,75,255,215,3,39, +3,77,255,215,3,39,3,79,255,215, +3,39,3,81,255,215,3,39,3,83, +255,215,3,39,3,85,255,215,3,39, +3,87,255,215,3,39,3,89,255,215, +3,39,3,91,255,215,3,39,3,93, +255,215,3,39,3,95,255,215,3,39, +3,111,255,133,3,39,3,113,255,133, +3,39,3,115,255,133,3,39,3,143, +255,113,3,40,0,5,255,236,3,40, +0,10,255,236,3,40,2,7,255,236, +3,40,2,11,255,236,3,41,0,5, +255,113,3,41,0,10,255,113,3,41, +0,38,255,215,3,41,0,42,255,215, +3,41,0,45,1,10,3,41,0,50, +255,215,3,41,0,52,255,215,3,41, +0,55,255,113,3,41,0,57,255,174, +3,41,0,58,255,174,3,41,0,60, +255,133,3,41,0,137,255,215,3,41, +0,148,255,215,3,41,0,149,255,215, +3,41,0,150,255,215,3,41,0,151, +255,215,3,41,0,152,255,215,3,41, +0,154,255,215,3,41,0,159,255,133, +3,41,0,200,255,215,3,41,0,202, +255,215,3,41,0,204,255,215,3,41, +0,206,255,215,3,41,0,222,255,215, +3,41,0,224,255,215,3,41,0,226, +255,215,3,41,0,228,255,215,3,41, +1,14,255,215,3,41,1,16,255,215, +3,41,1,18,255,215,3,41,1,20, +255,215,3,41,1,36,255,113,3,41, +1,38,255,113,3,41,1,54,255,174, +3,41,1,56,255,133,3,41,1,58, +255,133,3,41,1,71,255,215,3,41, +1,250,255,174,3,41,1,252,255,174, +3,41,1,254,255,174,3,41,2,0, +255,133,3,41,2,7,255,113,3,41, +2,11,255,113,3,41,2,95,255,215, +3,41,3,73,255,215,3,41,3,75, +255,215,3,41,3,77,255,215,3,41, +3,79,255,215,3,41,3,81,255,215, +3,41,3,83,255,215,3,41,3,85, +255,215,3,41,3,87,255,215,3,41, +3,89,255,215,3,41,3,91,255,215, +3,41,3,93,255,215,3,41,3,95, +255,215,3,41,3,111,255,133,3,41, +3,113,255,133,3,41,3,115,255,133, +3,41,3,143,255,113,3,42,0,5, +255,236,3,42,0,10,255,236,3,42, +2,7,255,236,3,42,2,11,255,236, +3,43,0,5,255,113,3,43,0,10, +255,113,3,43,0,38,255,215,3,43, +0,42,255,215,3,43,0,45,1,10, +3,43,0,50,255,215,3,43,0,52, +255,215,3,43,0,55,255,113,3,43, +0,57,255,174,3,43,0,58,255,174, +3,43,0,60,255,133,3,43,0,137, +255,215,3,43,0,148,255,215,3,43, +0,149,255,215,3,43,0,150,255,215, +3,43,0,151,255,215,3,43,0,152, +255,215,3,43,0,154,255,215,3,43, +0,159,255,133,3,43,0,200,255,215, +3,43,0,202,255,215,3,43,0,204, +255,215,3,43,0,206,255,215,3,43, +0,222,255,215,3,43,0,224,255,215, +3,43,0,226,255,215,3,43,0,228, +255,215,3,43,1,14,255,215,3,43, +1,16,255,215,3,43,1,18,255,215, +3,43,1,20,255,215,3,43,1,36, +255,113,3,43,1,38,255,113,3,43, +1,54,255,174,3,43,1,56,255,133, +3,43,1,58,255,133,3,43,1,71, +255,215,3,43,1,250,255,174,3,43, +1,252,255,174,3,43,1,254,255,174, +3,43,2,0,255,133,3,43,2,7, +255,113,3,43,2,11,255,113,3,43, +2,95,255,215,3,43,3,73,255,215, +3,43,3,75,255,215,3,43,3,77, +255,215,3,43,3,79,255,215,3,43, +3,81,255,215,3,43,3,83,255,215, +3,43,3,85,255,215,3,43,3,87, +255,215,3,43,3,89,255,215,3,43, +3,91,255,215,3,43,3,93,255,215, +3,43,3,95,255,215,3,43,3,111, +255,133,3,43,3,113,255,133,3,43, +3,115,255,133,3,43,3,143,255,113, +3,44,0,5,255,236,3,44,0,10, +255,236,3,44,2,7,255,236,3,44, +2,11,255,236,3,45,0,5,255,113, +3,45,0,10,255,113,3,45,0,38, +255,215,3,45,0,42,255,215,3,45, +0,45,1,10,3,45,0,50,255,215, +3,45,0,52,255,215,3,45,0,55, +255,113,3,45,0,57,255,174,3,45, +0,58,255,174,3,45,0,60,255,133, +3,45,0,137,255,215,3,45,0,148, +255,215,3,45,0,149,255,215,3,45, +0,150,255,215,3,45,0,151,255,215, +3,45,0,152,255,215,3,45,0,154, +255,215,3,45,0,159,255,133,3,45, +0,200,255,215,3,45,0,202,255,215, +3,45,0,204,255,215,3,45,0,206, +255,215,3,45,0,222,255,215,3,45, +0,224,255,215,3,45,0,226,255,215, +3,45,0,228,255,215,3,45,1,14, +255,215,3,45,1,16,255,215,3,45, +1,18,255,215,3,45,1,20,255,215, +3,45,1,36,255,113,3,45,1,38, +255,113,3,45,1,54,255,174,3,45, +1,56,255,133,3,45,1,58,255,133, +3,45,1,71,255,215,3,45,1,250, +255,174,3,45,1,252,255,174,3,45, +1,254,255,174,3,45,2,0,255,133, +3,45,2,7,255,113,3,45,2,11, +255,113,3,45,2,95,255,215,3,45, +3,73,255,215,3,45,3,75,255,215, +3,45,3,77,255,215,3,45,3,79, +255,215,3,45,3,81,255,215,3,45, +3,83,255,215,3,45,3,85,255,215, +3,45,3,87,255,215,3,45,3,89, +255,215,3,45,3,91,255,215,3,45, +3,93,255,215,3,45,3,95,255,215, +3,45,3,111,255,133,3,45,3,113, +255,133,3,45,3,115,255,133,3,45, +3,143,255,113,3,46,0,5,255,236, +3,46,0,10,255,236,3,46,2,7, +255,236,3,46,2,11,255,236,3,47, +0,5,255,113,3,47,0,10,255,113, +3,47,0,38,255,215,3,47,0,42, +255,215,3,47,0,45,1,10,3,47, +0,50,255,215,3,47,0,52,255,215, +3,47,0,55,255,113,3,47,0,57, +255,174,3,47,0,58,255,174,3,47, +0,60,255,133,3,47,0,137,255,215, +3,47,0,148,255,215,3,47,0,149, +255,215,3,47,0,150,255,215,3,47, +0,151,255,215,3,47,0,152,255,215, +3,47,0,154,255,215,3,47,0,159, +255,133,3,47,0,200,255,215,3,47, +0,202,255,215,3,47,0,204,255,215, +3,47,0,206,255,215,3,47,0,222, +255,215,3,47,0,224,255,215,3,47, +0,226,255,215,3,47,0,228,255,215, +3,47,1,14,255,215,3,47,1,16, +255,215,3,47,1,18,255,215,3,47, +1,20,255,215,3,47,1,36,255,113, +3,47,1,38,255,113,3,47,1,54, +255,174,3,47,1,56,255,133,3,47, +1,58,255,133,3,47,1,71,255,215, +3,47,1,250,255,174,3,47,1,252, +255,174,3,47,1,254,255,174,3,47, +2,0,255,133,3,47,2,7,255,113, +3,47,2,11,255,113,3,47,2,95, +255,215,3,47,3,73,255,215,3,47, +3,75,255,215,3,47,3,77,255,215, +3,47,3,79,255,215,3,47,3,81, +255,215,3,47,3,83,255,215,3,47, +3,85,255,215,3,47,3,87,255,215, +3,47,3,89,255,215,3,47,3,91, +255,215,3,47,3,93,255,215,3,47, +3,95,255,215,3,47,3,111,255,133, +3,47,3,113,255,133,3,47,3,115, +255,133,3,47,3,143,255,113,3,48, +0,5,255,236,3,48,0,10,255,236, +3,48,2,7,255,236,3,48,2,11, +255,236,3,49,0,5,255,113,3,49, +0,10,255,113,3,49,0,38,255,215, +3,49,0,42,255,215,3,49,0,45, +1,10,3,49,0,50,255,215,3,49, +0,52,255,215,3,49,0,55,255,113, +3,49,0,57,255,174,3,49,0,58, +255,174,3,49,0,60,255,133,3,49, +0,137,255,215,3,49,0,148,255,215, +3,49,0,149,255,215,3,49,0,150, +255,215,3,49,0,151,255,215,3,49, +0,152,255,215,3,49,0,154,255,215, +3,49,0,159,255,133,3,49,0,200, +255,215,3,49,0,202,255,215,3,49, +0,204,255,215,3,49,0,206,255,215, +3,49,0,222,255,215,3,49,0,224, +255,215,3,49,0,226,255,215,3,49, +0,228,255,215,3,49,1,14,255,215, +3,49,1,16,255,215,3,49,1,18, +255,215,3,49,1,20,255,215,3,49, +1,36,255,113,3,49,1,38,255,113, +3,49,1,54,255,174,3,49,1,56, +255,133,3,49,1,58,255,133,3,49, +1,71,255,215,3,49,1,250,255,174, +3,49,1,252,255,174,3,49,1,254, +255,174,3,49,2,0,255,133,3,49, +2,7,255,113,3,49,2,11,255,113, +3,49,2,95,255,215,3,49,3,73, +255,215,3,49,3,75,255,215,3,49, +3,77,255,215,3,49,3,79,255,215, +3,49,3,81,255,215,3,49,3,83, +255,215,3,49,3,85,255,215,3,49, +3,87,255,215,3,49,3,89,255,215, +3,49,3,91,255,215,3,49,3,93, +255,215,3,49,3,95,255,215,3,49, +3,111,255,133,3,49,3,113,255,133, +3,49,3,115,255,133,3,49,3,143, +255,113,3,50,0,5,255,236,3,50, +0,10,255,236,3,50,2,7,255,236, +3,50,2,11,255,236,3,51,0,5, +255,113,3,51,0,10,255,113,3,51, +0,38,255,215,3,51,0,42,255,215, +3,51,0,45,1,10,3,51,0,50, +255,215,3,51,0,52,255,215,3,51, +0,55,255,113,3,51,0,57,255,174, +3,51,0,58,255,174,3,51,0,60, +255,133,3,51,0,137,255,215,3,51, +0,148,255,215,3,51,0,149,255,215, +3,51,0,150,255,215,3,51,0,151, +255,215,3,51,0,152,255,215,3,51, +0,154,255,215,3,51,0,159,255,133, +3,51,0,200,255,215,3,51,0,202, +255,215,3,51,0,204,255,215,3,51, +0,206,255,215,3,51,0,222,255,215, +3,51,0,224,255,215,3,51,0,226, +255,215,3,51,0,228,255,215,3,51, +1,14,255,215,3,51,1,16,255,215, +3,51,1,18,255,215,3,51,1,20, +255,215,3,51,1,36,255,113,3,51, +1,38,255,113,3,51,1,54,255,174, +3,51,1,56,255,133,3,51,1,58, +255,133,3,51,1,71,255,215,3,51, +1,250,255,174,3,51,1,252,255,174, +3,51,1,254,255,174,3,51,2,0, +255,133,3,51,2,7,255,113,3,51, +2,11,255,113,3,51,2,95,255,215, +3,51,3,73,255,215,3,51,3,75, +255,215,3,51,3,77,255,215,3,51, +3,79,255,215,3,51,3,81,255,215, +3,51,3,83,255,215,3,51,3,85, +255,215,3,51,3,87,255,215,3,51, +3,89,255,215,3,51,3,91,255,215, +3,51,3,93,255,215,3,51,3,95, +255,215,3,51,3,111,255,133,3,51, +3,113,255,133,3,51,3,115,255,133, +3,51,3,143,255,113,3,52,0,5, +255,236,3,52,0,10,255,236,3,52, +2,7,255,236,3,52,2,11,255,236, +3,53,0,45,0,123,3,54,0,5, +255,236,3,54,0,10,255,236,3,54, +0,89,255,215,3,54,0,90,255,215, +3,54,0,91,255,215,3,54,0,92, +255,215,3,54,0,93,255,236,3,54, +0,191,255,215,3,54,1,55,255,215, +3,54,1,60,255,236,3,54,1,62, +255,236,3,54,1,64,255,236,3,54, +1,251,255,215,3,54,1,253,255,215, +3,54,2,7,255,236,3,54,2,11, +255,236,3,54,3,112,255,215,3,55, +0,45,0,123,3,56,0,5,255,236, +3,56,0,10,255,236,3,56,0,89, +255,215,3,56,0,90,255,215,3,56, +0,91,255,215,3,56,0,92,255,215, +3,56,0,93,255,236,3,56,0,191, +255,215,3,56,1,55,255,215,3,56, +1,60,255,236,3,56,1,62,255,236, +3,56,1,64,255,236,3,56,1,251, +255,215,3,56,1,253,255,215,3,56, +2,7,255,236,3,56,2,11,255,236, +3,56,3,112,255,215,3,57,0,45, +0,123,3,58,0,5,255,236,3,58, +0,10,255,236,3,58,0,89,255,215, +3,58,0,90,255,215,3,58,0,91, +255,215,3,58,0,92,255,215,3,58, +0,93,255,236,3,58,0,191,255,215, +3,58,1,55,255,215,3,58,1,60, +255,236,3,58,1,62,255,236,3,58, +1,64,255,236,3,58,1,251,255,215, +3,58,1,253,255,215,3,58,2,7, +255,236,3,58,2,11,255,236,3,58, +3,112,255,215,3,59,0,45,0,123, +3,60,0,5,255,236,3,60,0,10, +255,236,3,60,0,89,255,215,3,60, +0,90,255,215,3,60,0,91,255,215, +3,60,0,92,255,215,3,60,0,93, +255,236,3,60,0,191,255,215,3,60, +1,55,255,215,3,60,1,60,255,236, +3,60,1,62,255,236,3,60,1,64, +255,236,3,60,1,251,255,215,3,60, +1,253,255,215,3,60,2,7,255,236, +3,60,2,11,255,236,3,60,3,112, +255,215,3,61,0,45,0,123,3,62, +0,5,255,236,3,62,0,10,255,236, +3,62,0,89,255,215,3,62,0,90, +255,215,3,62,0,91,255,215,3,62, +0,92,255,215,3,62,0,93,255,236, +3,62,0,191,255,215,3,62,1,55, +255,215,3,62,1,60,255,236,3,62, +1,62,255,236,3,62,1,64,255,236, +3,62,1,251,255,215,3,62,1,253, +255,215,3,62,2,7,255,236,3,62, +2,11,255,236,3,62,3,112,255,215, +3,63,0,45,0,123,3,64,0,5, +255,236,3,64,0,10,255,236,3,64, +0,89,255,215,3,64,0,90,255,215, +3,64,0,91,255,215,3,64,0,92, +255,215,3,64,0,93,255,236,3,64, +0,191,255,215,3,64,1,55,255,215, +3,64,1,60,255,236,3,64,1,62, +255,236,3,64,1,64,255,236,3,64, +1,251,255,215,3,64,1,253,255,215, +3,64,2,7,255,236,3,64,2,11, +255,236,3,64,3,112,255,215,3,65, +0,45,0,123,3,66,0,5,255,236, +3,66,0,10,255,236,3,66,0,89, +255,215,3,66,0,90,255,215,3,66, +0,91,255,215,3,66,0,92,255,215, +3,66,0,93,255,236,3,66,0,191, +255,215,3,66,1,55,255,215,3,66, +1,60,255,236,3,66,1,62,255,236, +3,66,1,64,255,236,3,66,1,251, +255,215,3,66,1,253,255,215,3,66, +2,7,255,236,3,66,2,11,255,236, +3,66,3,112,255,215,3,67,0,45, +0,123,3,68,0,5,255,236,3,68, +0,10,255,236,3,68,0,89,255,215, +3,68,0,90,255,215,3,68,0,91, +255,215,3,68,0,92,255,215,3,68, +0,93,255,236,3,68,0,191,255,215, +3,68,1,55,255,215,3,68,1,60, +255,236,3,68,1,62,255,236,3,68, +1,64,255,236,3,68,1,251,255,215, +3,68,1,253,255,215,3,68,2,7, +255,236,3,68,2,11,255,236,3,68, +3,112,255,215,3,73,0,15,255,174, +3,73,0,17,255,174,3,73,0,36, +255,215,3,73,0,55,255,195,3,73, +0,57,255,236,3,73,0,58,255,236, +3,73,0,59,255,215,3,73,0,60, +255,236,3,73,0,61,255,236,3,73, +0,130,255,215,3,73,0,131,255,215, +3,73,0,132,255,215,3,73,0,133, +255,215,3,73,0,134,255,215,3,73, +0,135,255,215,3,73,0,159,255,236, +3,73,0,194,255,215,3,73,0,196, +255,215,3,73,0,198,255,215,3,73, +1,36,255,195,3,73,1,38,255,195, +3,73,1,54,255,236,3,73,1,56, +255,236,3,73,1,58,255,236,3,73, +1,59,255,236,3,73,1,61,255,236, +3,73,1,63,255,236,3,73,1,67, +255,215,3,73,1,160,255,236,3,73, +1,250,255,236,3,73,1,252,255,236, +3,73,1,254,255,236,3,73,2,0, +255,236,3,73,2,8,255,174,3,73, +2,12,255,174,3,73,2,88,255,215, +3,73,3,29,255,215,3,73,3,31, +255,215,3,73,3,33,255,215,3,73, +3,35,255,215,3,73,3,37,255,215, +3,73,3,39,255,215,3,73,3,41, +255,215,3,73,3,43,255,215,3,73, +3,45,255,215,3,73,3,47,255,215, +3,73,3,49,255,215,3,73,3,51, +255,215,3,73,3,111,255,236,3,73, +3,113,255,236,3,73,3,115,255,236, +3,73,3,143,255,195,3,74,0,5, +255,236,3,74,0,10,255,236,3,74, +0,89,255,215,3,74,0,90,255,215, +3,74,0,91,255,215,3,74,0,92, +255,215,3,74,0,93,255,236,3,74, +0,191,255,215,3,74,1,55,255,215, +3,74,1,60,255,236,3,74,1,62, +255,236,3,74,1,64,255,236,3,74, +1,251,255,215,3,74,1,253,255,215, +3,74,2,7,255,236,3,74,2,11, +255,236,3,74,3,112,255,215,3,75, +0,15,255,174,3,75,0,17,255,174, +3,75,0,36,255,215,3,75,0,55, +255,195,3,75,0,57,255,236,3,75, +0,58,255,236,3,75,0,59,255,215, +3,75,0,60,255,236,3,75,0,61, +255,236,3,75,0,130,255,215,3,75, +0,131,255,215,3,75,0,132,255,215, +3,75,0,133,255,215,3,75,0,134, +255,215,3,75,0,135,255,215,3,75, +0,159,255,236,3,75,0,194,255,215, +3,75,0,196,255,215,3,75,0,198, +255,215,3,75,1,36,255,195,3,75, +1,38,255,195,3,75,1,54,255,236, +3,75,1,56,255,236,3,75,1,58, +255,236,3,75,1,59,255,236,3,75, +1,61,255,236,3,75,1,63,255,236, +3,75,1,67,255,215,3,75,1,160, +255,236,3,75,1,250,255,236,3,75, +1,252,255,236,3,75,1,254,255,236, +3,75,2,0,255,236,3,75,2,8, +255,174,3,75,2,12,255,174,3,75, +2,88,255,215,3,75,3,29,255,215, +3,75,3,31,255,215,3,75,3,33, +255,215,3,75,3,35,255,215,3,75, +3,37,255,215,3,75,3,39,255,215, +3,75,3,41,255,215,3,75,3,43, +255,215,3,75,3,45,255,215,3,75, +3,47,255,215,3,75,3,49,255,215, +3,75,3,51,255,215,3,75,3,111, +255,236,3,75,3,113,255,236,3,75, +3,115,255,236,3,75,3,143,255,195, +3,76,0,5,255,236,3,76,0,10, +255,236,3,76,0,89,255,215,3,76, +0,90,255,215,3,76,0,91,255,215, +3,76,0,92,255,215,3,76,0,93, +255,236,3,76,0,191,255,215,3,76, +1,55,255,215,3,76,1,60,255,236, +3,76,1,62,255,236,3,76,1,64, +255,236,3,76,1,251,255,215,3,76, +1,253,255,215,3,76,2,7,255,236, +3,76,2,11,255,236,3,76,3,112, +255,215,3,77,0,15,255,174,3,77, +0,17,255,174,3,77,0,36,255,215, +3,77,0,55,255,195,3,77,0,57, +255,236,3,77,0,58,255,236,3,77, +0,59,255,215,3,77,0,60,255,236, +3,77,0,61,255,236,3,77,0,130, +255,215,3,77,0,131,255,215,3,77, +0,132,255,215,3,77,0,133,255,215, +3,77,0,134,255,215,3,77,0,135, +255,215,3,77,0,159,255,236,3,77, +0,194,255,215,3,77,0,196,255,215, +3,77,0,198,255,215,3,77,1,36, +255,195,3,77,1,38,255,195,3,77, +1,54,255,236,3,77,1,56,255,236, +3,77,1,58,255,236,3,77,1,59, +255,236,3,77,1,61,255,236,3,77, +1,63,255,236,3,77,1,67,255,215, +3,77,1,160,255,236,3,77,1,250, +255,236,3,77,1,252,255,236,3,77, +1,254,255,236,3,77,2,0,255,236, +3,77,2,8,255,174,3,77,2,12, +255,174,3,77,2,88,255,215,3,77, +3,29,255,215,3,77,3,31,255,215, +3,77,3,33,255,215,3,77,3,35, +255,215,3,77,3,37,255,215,3,77, +3,39,255,215,3,77,3,41,255,215, +3,77,3,43,255,215,3,77,3,45, +255,215,3,77,3,47,255,215,3,77, +3,49,255,215,3,77,3,51,255,215, +3,77,3,111,255,236,3,77,3,113, +255,236,3,77,3,115,255,236,3,77, +3,143,255,195,3,79,0,15,255,174, +3,79,0,17,255,174,3,79,0,36, +255,215,3,79,0,55,255,195,3,79, +0,57,255,236,3,79,0,58,255,236, +3,79,0,59,255,215,3,79,0,60, +255,236,3,79,0,61,255,236,3,79, +0,130,255,215,3,79,0,131,255,215, +3,79,0,132,255,215,3,79,0,133, +255,215,3,79,0,134,255,215,3,79, +0,135,255,215,3,79,0,159,255,236, +3,79,0,194,255,215,3,79,0,196, +255,215,3,79,0,198,255,215,3,79, +1,36,255,195,3,79,1,38,255,195, +3,79,1,54,255,236,3,79,1,56, +255,236,3,79,1,58,255,236,3,79, +1,59,255,236,3,79,1,61,255,236, +3,79,1,63,255,236,3,79,1,67, +255,215,3,79,1,160,255,236,3,79, +1,250,255,236,3,79,1,252,255,236, +3,79,1,254,255,236,3,79,2,0, +255,236,3,79,2,8,255,174,3,79, +2,12,255,174,3,79,2,88,255,215, +3,79,3,29,255,215,3,79,3,31, +255,215,3,79,3,33,255,215,3,79, +3,35,255,215,3,79,3,37,255,215, +3,79,3,39,255,215,3,79,3,41, +255,215,3,79,3,43,255,215,3,79, +3,45,255,215,3,79,3,47,255,215, +3,79,3,49,255,215,3,79,3,51, +255,215,3,79,3,111,255,236,3,79, +3,113,255,236,3,79,3,115,255,236, +3,79,3,143,255,195,3,81,0,15, +255,174,3,81,0,17,255,174,3,81, +0,36,255,215,3,81,0,55,255,195, +3,81,0,57,255,236,3,81,0,58, +255,236,3,81,0,59,255,215,3,81, +0,60,255,236,3,81,0,61,255,236, +3,81,0,130,255,215,3,81,0,131, +255,215,3,81,0,132,255,215,3,81, +0,133,255,215,3,81,0,134,255,215, +3,81,0,135,255,215,3,81,0,159, +255,236,3,81,0,194,255,215,3,81, +0,196,255,215,3,81,0,198,255,215, +3,81,1,36,255,195,3,81,1,38, +255,195,3,81,1,54,255,236,3,81, +1,56,255,236,3,81,1,58,255,236, +3,81,1,59,255,236,3,81,1,61, +255,236,3,81,1,63,255,236,3,81, +1,67,255,215,3,81,1,160,255,236, +3,81,1,250,255,236,3,81,1,252, +255,236,3,81,1,254,255,236,3,81, +2,0,255,236,3,81,2,8,255,174, +3,81,2,12,255,174,3,81,2,88, +255,215,3,81,3,29,255,215,3,81, +3,31,255,215,3,81,3,33,255,215, +3,81,3,35,255,215,3,81,3,37, +255,215,3,81,3,39,255,215,3,81, +3,41,255,215,3,81,3,43,255,215, +3,81,3,45,255,215,3,81,3,47, +255,215,3,81,3,49,255,215,3,81, +3,51,255,215,3,81,3,111,255,236, +3,81,3,113,255,236,3,81,3,115, +255,236,3,81,3,143,255,195,3,83, +0,15,255,174,3,83,0,17,255,174, +3,83,0,36,255,215,3,83,0,55, +255,195,3,83,0,57,255,236,3,83, +0,58,255,236,3,83,0,59,255,215, +3,83,0,60,255,236,3,83,0,61, +255,236,3,83,0,130,255,215,3,83, +0,131,255,215,3,83,0,132,255,215, +3,83,0,133,255,215,3,83,0,134, +255,215,3,83,0,135,255,215,3,83, +0,159,255,236,3,83,0,194,255,215, +3,83,0,196,255,215,3,83,0,198, +255,215,3,83,1,36,255,195,3,83, +1,38,255,195,3,83,1,54,255,236, +3,83,1,56,255,236,3,83,1,58, +255,236,3,83,1,59,255,236,3,83, +1,61,255,236,3,83,1,63,255,236, +3,83,1,67,255,215,3,83,1,160, +255,236,3,83,1,250,255,236,3,83, +1,252,255,236,3,83,1,254,255,236, +3,83,2,0,255,236,3,83,2,8, +255,174,3,83,2,12,255,174,3,83, +2,88,255,215,3,83,3,29,255,215, +3,83,3,31,255,215,3,83,3,33, +255,215,3,83,3,35,255,215,3,83, +3,37,255,215,3,83,3,39,255,215, +3,83,3,41,255,215,3,83,3,43, +255,215,3,83,3,45,255,215,3,83, +3,47,255,215,3,83,3,49,255,215, +3,83,3,51,255,215,3,83,3,111, +255,236,3,83,3,113,255,236,3,83, +3,115,255,236,3,83,3,143,255,195, +3,85,0,15,255,174,3,85,0,17, +255,174,3,85,0,36,255,215,3,85, +0,55,255,195,3,85,0,57,255,236, +3,85,0,58,255,236,3,85,0,59, +255,215,3,85,0,60,255,236,3,85, +0,61,255,236,3,85,0,130,255,215, +3,85,0,131,255,215,3,85,0,132, +255,215,3,85,0,133,255,215,3,85, +0,134,255,215,3,85,0,135,255,215, +3,85,0,159,255,236,3,85,0,194, +255,215,3,85,0,196,255,215,3,85, +0,198,255,215,3,85,1,36,255,195, +3,85,1,38,255,195,3,85,1,54, +255,236,3,85,1,56,255,236,3,85, +1,58,255,236,3,85,1,59,255,236, +3,85,1,61,255,236,3,85,1,63, +255,236,3,85,1,67,255,215,3,85, +1,160,255,236,3,85,1,250,255,236, +3,85,1,252,255,236,3,85,1,254, +255,236,3,85,2,0,255,236,3,85, +2,8,255,174,3,85,2,12,255,174, +3,85,2,88,255,215,3,85,3,29, +255,215,3,85,3,31,255,215,3,85, +3,33,255,215,3,85,3,35,255,215, +3,85,3,37,255,215,3,85,3,39, +255,215,3,85,3,41,255,215,3,85, +3,43,255,215,3,85,3,45,255,215, +3,85,3,47,255,215,3,85,3,49, +255,215,3,85,3,51,255,215,3,85, +3,111,255,236,3,85,3,113,255,236, +3,85,3,115,255,236,3,85,3,143, +255,195,3,88,0,73,0,82,3,88, +0,87,0,82,3,88,0,89,0,102, +3,88,0,90,0,102,3,88,0,91, +0,102,3,88,0,92,0,102,3,88, +0,191,0,102,3,88,1,37,0,82, +3,88,1,39,0,82,3,88,1,55, +0,102,3,88,1,251,0,102,3,88, +1,253,0,102,3,88,2,52,0,82, +3,88,2,53,0,82,3,88,2,93, +0,82,3,88,2,94,0,82,3,88, +3,112,0,102,3,88,3,141,0,82, +3,88,3,144,0,82,3,90,0,73, +0,82,3,90,0,87,0,82,3,90, +0,89,0,102,3,90,0,90,0,102, +3,90,0,91,0,102,3,90,0,92, +0,102,3,90,0,191,0,102,3,90, +1,37,0,82,3,90,1,39,0,82, +3,90,1,55,0,102,3,90,1,251, +0,102,3,90,1,253,0,102,3,90, +2,52,0,82,3,90,2,53,0,82, +3,90,2,93,0,82,3,90,2,94, +0,82,3,90,3,112,0,102,3,90, +3,141,0,82,3,90,3,144,0,82, +3,92,0,73,0,82,3,92,0,87, +0,82,3,92,0,89,0,102,3,92, +0,90,0,102,3,92,0,91,0,102, +3,92,0,92,0,102,3,92,0,191, +0,102,3,92,1,37,0,82,3,92, +1,39,0,82,3,92,1,55,0,102, +3,92,1,251,0,102,3,92,1,253, +0,102,3,92,2,52,0,82,3,92, +2,53,0,82,3,92,2,93,0,82, +3,92,2,94,0,82,3,92,3,112, +0,102,3,92,3,141,0,82,3,92, +3,144,0,82,3,94,0,73,0,82, +3,94,0,87,0,82,3,94,0,89, +0,102,3,94,0,90,0,102,3,94, +0,91,0,102,3,94,0,92,0,102, +3,94,0,191,0,102,3,94,1,37, +0,82,3,94,1,39,0,82,3,94, +1,55,0,102,3,94,1,251,0,102, +3,94,1,253,0,102,3,94,2,52, +0,82,3,94,2,53,0,82,3,94, +2,93,0,82,3,94,2,94,0,82, +3,94,3,112,0,102,3,94,3,141, +0,82,3,94,3,144,0,82,3,96, +0,73,0,82,3,96,0,87,0,82, +3,96,0,89,0,102,3,96,0,90, +0,102,3,96,0,91,0,102,3,96, +0,92,0,102,3,96,0,191,0,102, +3,96,1,37,0,82,3,96,1,39, +0,82,3,96,1,55,0,102,3,96, +1,251,0,102,3,96,1,253,0,102, +3,96,2,52,0,82,3,96,2,53, +0,82,3,96,2,93,0,82,3,96, +2,94,0,82,3,96,3,112,0,102, +3,96,3,141,0,82,3,96,3,144, +0,82,3,97,0,15,255,215,3,97, +0,17,255,215,3,97,0,36,255,236, +3,97,0,130,255,236,3,97,0,131, +255,236,3,97,0,132,255,236,3,97, +0,133,255,236,3,97,0,134,255,236, +3,97,0,135,255,236,3,97,0,194, +255,236,3,97,0,196,255,236,3,97, +0,198,255,236,3,97,1,67,255,236, +3,97,2,8,255,215,3,97,2,12, +255,215,3,97,2,88,255,236,3,97, +3,29,255,236,3,97,3,31,255,236, +3,97,3,33,255,236,3,97,3,35, +255,236,3,97,3,37,255,236,3,97, +3,39,255,236,3,97,3,41,255,236, +3,97,3,43,255,236,3,97,3,45, +255,236,3,97,3,47,255,236,3,97, +3,49,255,236,3,97,3,51,255,236, +3,102,0,73,0,102,3,102,0,87, +0,102,3,102,0,89,0,102,3,102, +0,90,0,102,3,102,0,91,0,102, +3,102,0,92,0,102,3,102,0,191, +0,102,3,102,1,37,0,102,3,102, +1,39,0,102,3,102,1,55,0,102, +3,102,1,251,0,102,3,102,1,253, +0,102,3,102,2,52,0,102,3,102, +2,53,0,102,3,102,2,93,0,102, +3,102,2,94,0,102,3,102,3,112, +0,102,3,102,3,141,0,102,3,102, +3,144,0,102,3,104,0,73,0,102, +3,104,0,87,0,102,3,104,0,89, +0,102,3,104,0,90,0,102,3,104, +0,91,0,102,3,104,0,92,0,102, +3,104,0,191,0,102,3,104,1,37, +0,102,3,104,1,39,0,102,3,104, +1,55,0,102,3,104,1,251,0,102, +3,104,1,253,0,102,3,104,2,52, +0,102,3,104,2,53,0,102,3,104, +2,93,0,102,3,104,2,94,0,102, +3,104,3,112,0,102,3,104,3,141, +0,102,3,104,3,144,0,102,3,106, +0,73,0,102,3,106,0,87,0,102, +3,106,0,89,0,102,3,106,0,90, +0,102,3,106,0,91,0,102,3,106, +0,92,0,102,3,106,0,191,0,102, +3,106,1,37,0,102,3,106,1,39, +0,102,3,106,1,55,0,102,3,106, +1,251,0,102,3,106,1,253,0,102, +3,106,2,52,0,102,3,106,2,53, +0,102,3,106,2,93,0,102,3,106, +2,94,0,102,3,106,3,112,0,102, +3,106,3,141,0,102,3,106,3,144, +0,102,3,108,0,73,0,102,3,108, +0,87,0,102,3,108,0,89,0,102, +3,108,0,90,0,102,3,108,0,91, +0,102,3,108,0,92,0,102,3,108, +0,191,0,102,3,108,1,37,0,102, +3,108,1,39,0,102,3,108,1,55, +0,102,3,108,1,251,0,102,3,108, +1,253,0,102,3,108,2,52,0,102, +3,108,2,53,0,102,3,108,2,93, +0,102,3,108,2,94,0,102,3,108, +3,112,0,102,3,108,3,141,0,102, +3,108,3,144,0,102,3,110,0,73, +0,102,3,110,0,87,0,102,3,110, +0,89,0,102,3,110,0,90,0,102, +3,110,0,91,0,102,3,110,0,92, +0,102,3,110,0,191,0,102,3,110, +1,37,0,102,3,110,1,39,0,102, +3,110,1,55,0,102,3,110,1,251, +0,102,3,110,1,253,0,102,3,110, +2,52,0,102,3,110,2,53,0,102, +3,110,2,93,0,102,3,110,2,94, +0,102,3,110,3,112,0,102,3,110, +3,141,0,102,3,110,3,144,0,102, +3,111,0,15,255,133,3,111,0,17, +255,133,3,111,0,34,0,41,3,111, +0,36,255,133,3,111,0,38,255,215, +3,111,0,42,255,215,3,111,0,50, +255,215,3,111,0,52,255,215,3,111, +0,68,255,154,3,111,0,70,255,154, +3,111,0,71,255,154,3,111,0,72, +255,154,3,111,0,74,255,215,3,111, +0,80,255,195,3,111,0,81,255,195, +3,111,0,82,255,154,3,111,0,83, +255,195,3,111,0,84,255,154,3,111, +0,85,255,195,3,111,0,86,255,174, +3,111,0,88,255,195,3,111,0,93, +255,215,3,111,0,130,255,133,3,111, +0,131,255,133,3,111,0,132,255,133, +3,111,0,133,255,133,3,111,0,134, +255,133,3,111,0,135,255,133,3,111, +0,137,255,215,3,111,0,148,255,215, +3,111,0,149,255,215,3,111,0,150, +255,215,3,111,0,151,255,215,3,111, +0,152,255,215,3,111,0,154,255,215, +3,111,0,162,255,154,3,111,0,163, +255,154,3,111,0,164,255,154,3,111, +0,165,255,154,3,111,0,166,255,154, +3,111,0,167,255,154,3,111,0,168, +255,154,3,111,0,169,255,154,3,111, +0,170,255,154,3,111,0,171,255,154, +3,111,0,172,255,154,3,111,0,173, +255,154,3,111,0,180,255,154,3,111, +0,181,255,154,3,111,0,182,255,154, +3,111,0,183,255,154,3,111,0,184, +255,154,3,111,0,186,255,154,3,111, +0,187,255,195,3,111,0,188,255,195, +3,111,0,189,255,195,3,111,0,190, +255,195,3,111,0,194,255,133,3,111, +0,195,255,154,3,111,0,196,255,133, +3,111,0,197,255,154,3,111,0,198, +255,133,3,111,0,199,255,154,3,111, +0,200,255,215,3,111,0,201,255,154, +3,111,0,202,255,215,3,111,0,203, +255,154,3,111,0,204,255,215,3,111, +0,205,255,154,3,111,0,206,255,215, +3,111,0,207,255,154,3,111,0,209, +255,154,3,111,0,211,255,154,3,111, +0,213,255,154,3,111,0,215,255,154, +3,111,0,217,255,154,3,111,0,219, +255,154,3,111,0,221,255,154,3,111, +0,222,255,215,3,111,0,223,255,215, +3,111,0,224,255,215,3,111,0,225, +255,215,3,111,0,226,255,215,3,111, +0,227,255,215,3,111,0,228,255,215, +3,111,0,229,255,215,3,111,0,250, +255,195,3,111,1,6,255,195,3,111, +1,8,255,195,3,111,1,13,255,195, +3,111,1,14,255,215,3,111,1,15, +255,154,3,111,1,16,255,215,3,111, +1,17,255,154,3,111,1,18,255,215, +3,111,1,19,255,154,3,111,1,20, +255,215,3,111,1,21,255,154,3,111, +1,23,255,195,3,111,1,25,255,195, +3,111,1,29,255,174,3,111,1,33, +255,174,3,111,1,43,255,195,3,111, +1,45,255,195,3,111,1,47,255,195, +3,111,1,49,255,195,3,111,1,51, +255,195,3,111,1,53,255,195,3,111, +1,60,255,215,3,111,1,62,255,215, +3,111,1,64,255,215,3,111,1,67, +255,133,3,111,1,68,255,154,3,111, +1,70,255,154,3,111,1,71,255,215, +3,111,1,72,255,154,3,111,1,74, +255,174,3,111,2,8,255,133,3,111, +2,12,255,133,3,111,2,87,255,195, +3,111,2,88,255,133,3,111,2,89, +255,154,3,111,2,95,255,215,3,111, +2,96,255,154,3,111,2,98,255,195, +3,111,3,29,255,133,3,111,3,30, +255,154,3,111,3,31,255,133,3,111, +3,32,255,154,3,111,3,33,255,133, +3,111,3,34,255,154,3,111,3,35, +255,133,3,111,3,37,255,133,3,111, +3,38,255,154,3,111,3,39,255,133, +3,111,3,40,255,154,3,111,3,41, +255,133,3,111,3,42,255,154,3,111, +3,43,255,133,3,111,3,44,255,154, +3,111,3,45,255,133,3,111,3,46, +255,154,3,111,3,47,255,133,3,111, +3,48,255,154,3,111,3,49,255,133, +3,111,3,50,255,154,3,111,3,51, +255,133,3,111,3,52,255,154,3,111, +3,54,255,154,3,111,3,56,255,154, +3,111,3,58,255,154,3,111,3,60, +255,154,3,111,3,64,255,154,3,111, +3,66,255,154,3,111,3,68,255,154, +3,111,3,73,255,215,3,111,3,74, +255,154,3,111,3,75,255,215,3,111, +3,76,255,154,3,111,3,77,255,215, +3,111,3,78,255,154,3,111,3,79, +255,215,3,111,3,81,255,215,3,111, +3,82,255,154,3,111,3,83,255,215, +3,111,3,84,255,154,3,111,3,85, +255,215,3,111,3,86,255,154,3,111, +3,87,255,215,3,111,3,88,255,154, +3,111,3,89,255,215,3,111,3,90, +255,154,3,111,3,91,255,215,3,111, +3,92,255,154,3,111,3,93,255,215, +3,111,3,94,255,154,3,111,3,95, +255,215,3,111,3,96,255,154,3,111, +3,98,255,195,3,111,3,100,255,195, +3,111,3,102,255,195,3,111,3,104, +255,195,3,111,3,106,255,195,3,111, +3,108,255,195,3,111,3,110,255,195, +3,112,0,5,0,82,3,112,0,10, +0,82,3,112,0,15,255,174,3,112, +0,17,255,174,3,112,0,34,0,41, +3,112,2,7,0,82,3,112,2,8, +255,174,3,112,2,11,0,82,3,112, +2,12,255,174,3,113,0,15,255,133, +3,113,0,17,255,133,3,113,0,34, +0,41,3,113,0,36,255,133,3,113, +0,38,255,215,3,113,0,42,255,215, +3,113,0,50,255,215,3,113,0,52, +255,215,3,113,0,68,255,154,3,113, +0,70,255,154,3,113,0,71,255,154, +3,113,0,72,255,154,3,113,0,74, +255,215,3,113,0,80,255,195,3,113, +0,81,255,195,3,113,0,82,255,154, +3,113,0,83,255,195,3,113,0,84, +255,154,3,113,0,85,255,195,3,113, +0,86,255,174,3,113,0,88,255,195, +3,113,0,93,255,215,3,113,0,130, +255,133,3,113,0,131,255,133,3,113, +0,132,255,133,3,113,0,133,255,133, +3,113,0,134,255,133,3,113,0,135, +255,133,3,113,0,137,255,215,3,113, +0,148,255,215,3,113,0,149,255,215, +3,113,0,150,255,215,3,113,0,151, +255,215,3,113,0,152,255,215,3,113, +0,154,255,215,3,113,0,162,255,154, +3,113,0,163,255,154,3,113,0,164, +255,154,3,113,0,165,255,154,3,113, +0,166,255,154,3,113,0,167,255,154, +3,113,0,168,255,154,3,113,0,169, +255,154,3,113,0,170,255,154,3,113, +0,171,255,154,3,113,0,172,255,154, +3,113,0,173,255,154,3,113,0,180, +255,154,3,113,0,181,255,154,3,113, +0,182,255,154,3,113,0,183,255,154, +3,113,0,184,255,154,3,113,0,186, +255,154,3,113,0,187,255,195,3,113, +0,188,255,195,3,113,0,189,255,195, +3,113,0,190,255,195,3,113,0,194, +255,133,3,113,0,195,255,154,3,113, +0,196,255,133,3,113,0,197,255,154, +3,113,0,198,255,133,3,113,0,199, +255,154,3,113,0,200,255,215,3,113, +0,201,255,154,3,113,0,202,255,215, +3,113,0,203,255,154,3,113,0,204, +255,215,3,113,0,205,255,154,3,113, +0,206,255,215,3,113,0,207,255,154, +3,113,0,209,255,154,3,113,0,211, +255,154,3,113,0,213,255,154,3,113, +0,215,255,154,3,113,0,217,255,154, +3,113,0,219,255,154,3,113,0,221, +255,154,3,113,0,222,255,215,3,113, +0,223,255,215,3,113,0,224,255,215, +3,113,0,225,255,215,3,113,0,226, +255,215,3,113,0,227,255,215,3,113, +0,228,255,215,3,113,0,229,255,215, +3,113,0,250,255,195,3,113,1,6, +255,195,3,113,1,8,255,195,3,113, +1,13,255,195,3,113,1,14,255,215, +3,113,1,15,255,154,3,113,1,16, +255,215,3,113,1,17,255,154,3,113, +1,18,255,215,3,113,1,19,255,154, +3,113,1,20,255,215,3,113,1,21, +255,154,3,113,1,23,255,195,3,113, +1,25,255,195,3,113,1,29,255,174, +3,113,1,33,255,174,3,113,1,43, +255,195,3,113,1,45,255,195,3,113, +1,47,255,195,3,113,1,49,255,195, +3,113,1,51,255,195,3,113,1,53, +255,195,3,113,1,60,255,215,3,113, +1,62,255,215,3,113,1,64,255,215, +3,113,1,67,255,133,3,113,1,68, +255,154,3,113,1,70,255,154,3,113, +1,71,255,215,3,113,1,72,255,154, +3,113,1,74,255,174,3,113,2,8, +255,133,3,113,2,12,255,133,3,113, +2,87,255,195,3,113,2,88,255,133, +3,113,2,89,255,154,3,113,2,95, +255,215,3,113,2,96,255,154,3,113, +2,98,255,195,3,113,3,29,255,133, +3,113,3,30,255,154,3,113,3,31, +255,133,3,113,3,32,255,154,3,113, +3,33,255,133,3,113,3,34,255,154, +3,113,3,35,255,133,3,113,3,37, +255,133,3,113,3,38,255,154,3,113, +3,39,255,133,3,113,3,40,255,154, +3,113,3,41,255,133,3,113,3,42, +255,154,3,113,3,43,255,133,3,113, +3,44,255,154,3,113,3,45,255,133, +3,113,3,46,255,154,3,113,3,47, +255,133,3,113,3,48,255,154,3,113, +3,49,255,133,3,113,3,50,255,154, +3,113,3,51,255,133,3,113,3,52, +255,154,3,113,3,54,255,154,3,113, +3,56,255,154,3,113,3,58,255,154, +3,113,3,60,255,154,3,113,3,64, +255,154,3,113,3,66,255,154,3,113, +3,68,255,154,3,113,3,73,255,215, +3,113,3,74,255,154,3,113,3,75, +255,215,3,113,3,76,255,154,3,113, +3,77,255,215,3,113,3,78,255,154, +3,113,3,79,255,215,3,113,3,81, +255,215,3,113,3,82,255,154,3,113, +3,83,255,215,3,113,3,84,255,154, +3,113,3,85,255,215,3,113,3,86, +255,154,3,113,3,87,255,215,3,113, +3,88,255,154,3,113,3,89,255,215, +3,113,3,90,255,154,3,113,3,91, +255,215,3,113,3,92,255,154,3,113, +3,93,255,215,3,113,3,94,255,154, +3,113,3,95,255,215,3,113,3,96, +255,154,3,113,3,98,255,195,3,113, +3,100,255,195,3,113,3,102,255,195, +3,113,3,104,255,195,3,113,3,106, +255,195,3,113,3,108,255,195,3,113, +3,110,255,195,3,114,0,5,0,82, +3,114,0,10,0,82,3,114,0,15, +255,174,3,114,0,17,255,174,3,114, +0,34,0,41,3,114,2,7,0,82, +3,114,2,8,255,174,3,114,2,11, +0,82,3,114,2,12,255,174,3,115, +0,15,255,133,3,115,0,17,255,133, +3,115,0,34,0,41,3,115,0,36, +255,133,3,115,0,38,255,215,3,115, +0,42,255,215,3,115,0,50,255,215, +3,115,0,52,255,215,3,115,0,68, +255,154,3,115,0,70,255,154,3,115, +0,71,255,154,3,115,0,72,255,154, +3,115,0,74,255,215,3,115,0,80, +255,195,3,115,0,81,255,195,3,115, +0,82,255,154,3,115,0,83,255,195, +3,115,0,84,255,154,3,115,0,85, +255,195,3,115,0,86,255,174,3,115, +0,88,255,195,3,115,0,93,255,215, +3,115,0,130,255,133,3,115,0,131, +255,133,3,115,0,132,255,133,3,115, +0,133,255,133,3,115,0,134,255,133, +3,115,0,135,255,133,3,115,0,137, +255,215,3,115,0,148,255,215,3,115, +0,149,255,215,3,115,0,150,255,215, +3,115,0,151,255,215,3,115,0,152, +255,215,3,115,0,154,255,215,3,115, +0,162,255,154,3,115,0,163,255,154, +3,115,0,164,255,154,3,115,0,165, +255,154,3,115,0,166,255,154,3,115, +0,167,255,154,3,115,0,168,255,154, +3,115,0,169,255,154,3,115,0,170, +255,154,3,115,0,171,255,154,3,115, +0,172,255,154,3,115,0,173,255,154, +3,115,0,180,255,154,3,115,0,181, +255,154,3,115,0,182,255,154,3,115, +0,183,255,154,3,115,0,184,255,154, +3,115,0,186,255,154,3,115,0,187, +255,195,3,115,0,188,255,195,3,115, +0,189,255,195,3,115,0,190,255,195, +3,115,0,194,255,133,3,115,0,195, +255,154,3,115,0,196,255,133,3,115, +0,197,255,154,3,115,0,198,255,133, +3,115,0,199,255,154,3,115,0,200, +255,215,3,115,0,201,255,154,3,115, +0,202,255,215,3,115,0,203,255,154, +3,115,0,204,255,215,3,115,0,205, +255,154,3,115,0,206,255,215,3,115, +0,207,255,154,3,115,0,209,255,154, +3,115,0,211,255,154,3,115,0,213, +255,154,3,115,0,215,255,154,3,115, +0,217,255,154,3,115,0,219,255,154, +3,115,0,221,255,154,3,115,0,222, +255,215,3,115,0,223,255,215,3,115, +0,224,255,215,3,115,0,225,255,215, +3,115,0,226,255,215,3,115,0,227, +255,215,3,115,0,228,255,215,3,115, +0,229,255,215,3,115,0,250,255,195, +3,115,1,6,255,195,3,115,1,8, +255,195,3,115,1,13,255,195,3,115, +1,14,255,215,3,115,1,15,255,154, +3,115,1,16,255,215,3,115,1,17, +255,154,3,115,1,18,255,215,3,115, +1,19,255,154,3,115,1,20,255,215, +3,115,1,21,255,154,3,115,1,23, +255,195,3,115,1,25,255,195,3,115, +1,29,255,174,3,115,1,33,255,174, +3,115,1,43,255,195,3,115,1,45, +255,195,3,115,1,47,255,195,3,115, +1,49,255,195,3,115,1,51,255,195, +3,115,1,53,255,195,3,115,1,60, +255,215,3,115,1,62,255,215,3,115, +1,64,255,215,3,115,1,67,255,133, +3,115,1,68,255,154,3,115,1,70, +255,154,3,115,1,71,255,215,3,115, +1,72,255,154,3,115,1,74,255,174, +3,115,2,8,255,133,3,115,2,12, +255,133,3,115,2,87,255,195,3,115, +2,88,255,133,3,115,2,89,255,154, +3,115,2,95,255,215,3,115,2,96, +255,154,3,115,2,98,255,195,3,115, +3,29,255,133,3,115,3,30,255,154, +3,115,3,31,255,133,3,115,3,32, +255,154,3,115,3,33,255,133,3,115, +3,34,255,154,3,115,3,35,255,133, +3,115,3,37,255,133,3,115,3,38, +255,154,3,115,3,39,255,133,3,115, +3,40,255,154,3,115,3,41,255,133, +3,115,3,42,255,154,3,115,3,43, +255,133,3,115,3,44,255,154,3,115, +3,45,255,133,3,115,3,46,255,154, +3,115,3,47,255,133,3,115,3,48, +255,154,3,115,3,49,255,133,3,115, +3,50,255,154,3,115,3,51,255,133, +3,115,3,52,255,154,3,115,3,54, +255,154,3,115,3,56,255,154,3,115, +3,58,255,154,3,115,3,60,255,154, +3,115,3,64,255,154,3,115,3,66, +255,154,3,115,3,68,255,154,3,115, +3,73,255,215,3,115,3,74,255,154, +3,115,3,75,255,215,3,115,3,76, +255,154,3,115,3,77,255,215,3,115, +3,78,255,154,3,115,3,79,255,215, +3,115,3,81,255,215,3,115,3,82, +255,154,3,115,3,83,255,215,3,115, +3,84,255,154,3,115,3,85,255,215, +3,115,3,86,255,154,3,115,3,87, +255,215,3,115,3,88,255,154,3,115, +3,89,255,215,3,115,3,90,255,154, +3,115,3,91,255,215,3,115,3,92, +255,154,3,115,3,93,255,215,3,115, +3,94,255,154,3,115,3,95,255,215, +3,115,3,96,255,154,3,115,3,98, +255,195,3,115,3,100,255,195,3,115, +3,102,255,195,3,115,3,104,255,195, +3,115,3,106,255,195,3,115,3,108, +255,195,3,115,3,110,255,195,3,116, +0,5,0,82,3,116,0,10,0,82, +3,116,0,15,255,174,3,116,0,17, +255,174,3,116,0,34,0,41,3,116, +2,7,0,82,3,116,2,8,255,174, +3,116,2,11,0,82,3,116,2,12, +255,174,3,141,0,5,0,123,3,141, +0,10,0,123,3,141,2,7,0,123, +3,141,2,11,0,123,3,143,0,15, +255,133,3,143,0,16,255,174,3,143, +0,17,255,133,3,143,0,34,0,41, +3,143,0,36,255,113,3,143,0,38, +255,215,3,143,0,42,255,215,3,143, +0,50,255,215,3,143,0,52,255,215, +3,143,0,55,0,41,3,143,0,68, +255,92,3,143,0,70,255,113,3,143, +0,71,255,113,3,143,0,72,255,113, +3,143,0,74,255,113,3,143,0,80, +255,154,3,143,0,81,255,154,3,143, +0,82,255,113,3,143,0,83,255,154, +3,143,0,84,255,113,3,143,0,85, +255,154,3,143,0,86,255,133,3,143, +0,88,255,154,3,143,0,89,255,215, +3,143,0,90,255,215,3,143,0,91, +255,215,3,143,0,92,255,215,3,143, +0,93,255,174,3,143,0,130,255,113, +3,143,0,131,255,113,3,143,0,132, +255,113,3,143,0,133,255,113,3,143, +0,134,255,113,3,143,0,135,255,113, +3,143,0,137,255,215,3,143,0,148, +255,215,3,143,0,149,255,215,3,143, +0,150,255,215,3,143,0,151,255,215, +3,143,0,152,255,215,3,143,0,154, +255,215,3,143,0,162,255,113,3,143, +0,163,255,92,3,143,0,164,255,92, +3,143,0,165,255,92,3,143,0,166, +255,92,3,143,0,167,255,92,3,143, +0,168,255,92,3,143,0,169,255,113, +3,143,0,170,255,113,3,143,0,171, +255,113,3,143,0,172,255,113,3,143, +0,173,255,113,3,143,0,180,255,113, +3,143,0,181,255,113,3,143,0,182, +255,113,3,143,0,183,255,113,3,143, +0,184,255,113,3,143,0,186,255,113, +3,143,0,187,255,154,3,143,0,188, +255,154,3,143,0,189,255,154,3,143, +0,190,255,154,3,143,0,191,255,215, +3,143,0,194,255,113,3,143,0,195, +255,92,3,143,0,196,255,113,3,143, +0,197,255,92,3,143,0,198,255,113, +3,143,0,199,255,92,3,143,0,200, +255,215,3,143,0,201,255,113,3,143, +0,202,255,215,3,143,0,203,255,113, +3,143,0,204,255,215,3,143,0,205, +255,113,3,143,0,206,255,215,3,143, +0,207,255,113,3,143,0,209,255,113, +3,143,0,211,255,113,3,143,0,213, +255,113,3,143,0,215,255,113,3,143, +0,217,255,113,3,143,0,219,255,113, +3,143,0,221,255,113,3,143,0,222, +255,215,3,143,0,223,255,113,3,143, +0,224,255,215,3,143,0,225,255,113, +3,143,0,226,255,215,3,143,0,227, +255,113,3,143,0,228,255,215,3,143, +0,229,255,113,3,143,0,250,255,154, +3,143,1,6,255,154,3,143,1,8, +255,154,3,143,1,13,255,154,3,143, +1,14,255,215,3,143,1,15,255,113, +3,143,1,16,255,215,3,143,1,17, +255,113,3,143,1,18,255,215,3,143, +1,19,255,113,3,143,1,20,255,215, +3,143,1,21,255,113,3,143,1,23, +255,154,3,143,1,25,255,154,3,143, +1,29,255,133,3,143,1,33,255,133, +3,143,1,36,0,41,3,143,1,38, +0,41,3,143,1,43,255,154,3,143, +1,45,255,154,3,143,1,47,255,154, +3,143,1,49,255,154,3,143,1,51, +255,154,3,143,1,53,255,154,3,143, +1,55,255,215,3,143,1,60,255,174, +3,143,1,62,255,174,3,143,1,64, +255,174,3,143,1,67,255,113,3,143, +1,68,255,92,3,143,1,70,255,92, +3,143,1,71,255,215,3,143,1,72, +255,113,3,143,1,74,255,133,3,143, +1,251,255,215,3,143,1,253,255,215, +3,143,2,2,255,174,3,143,2,3, +255,174,3,143,2,4,255,174,3,143, +2,8,255,133,3,143,2,12,255,133, +3,143,2,87,255,154,3,143,2,88, +255,113,3,143,2,89,255,92,3,143, +2,95,255,215,3,143,2,96,255,113, +3,143,2,98,255,154,3,143,3,29, +255,113,3,143,3,30,255,92,3,143, +3,31,255,113,3,143,3,32,255,92, +3,143,3,33,255,113,3,143,3,34, +255,92,3,143,3,35,255,113,3,143, +3,37,255,113,3,143,3,38,255,92, +3,143,3,39,255,113,3,143,3,40, +255,92,3,143,3,41,255,113,3,143, +3,42,255,92,3,143,3,43,255,113, +3,143,3,44,255,92,3,143,3,45, +255,113,3,143,3,46,255,92,3,143, +3,47,255,113,3,143,3,48,255,92, +3,143,3,49,255,113,3,143,3,50, +255,92,3,143,3,51,255,113,3,143, +3,52,255,92,3,143,3,54,255,113, +3,143,3,56,255,113,3,143,3,58, +255,113,3,143,3,60,255,113,3,143, +3,64,255,113,3,143,3,66,255,113, +3,143,3,68,255,113,3,143,3,73, +255,215,3,143,3,74,255,113,3,143, +3,75,255,215,3,143,3,76,255,113, +3,143,3,77,255,215,3,143,3,78, +255,113,3,143,3,79,255,215,3,143, +3,81,255,215,3,143,3,82,255,113, +3,143,3,83,255,215,3,143,3,84, +255,113,3,143,3,85,255,215,3,143, +3,86,255,113,3,143,3,87,255,215, +3,143,3,88,255,113,3,143,3,89, +255,215,3,143,3,90,255,113,3,143, +3,91,255,215,3,143,3,92,255,113, +3,143,3,93,255,215,3,143,3,94, +255,113,3,143,3,95,255,215,3,143, +3,96,255,113,3,143,3,98,255,154, +3,143,3,100,255,154,3,143,3,102, +255,154,3,143,3,104,255,154,3,143, +3,106,255,154,3,143,3,108,255,154, +3,143,3,110,255,154,3,143,3,112, +255,215,3,143,3,143,0,41,3,144, +0,5,0,41,3,144,0,10,0,41, +3,144,2,7,0,41,3,144,2,11, +0,41,0,0,0,0,0,26,1,62, +0,1,0,0,0,0,0,0,0,57, +0,0,0,1,0,0,0,0,0,1, +0,9,0,57,0,1,0,0,0,0, +0,2,0,7,0,66,0,1,0,0, +0,0,0,3,0,30,0,73,0,1, +0,0,0,0,0,4,0,9,0,57, +0,1,0,0,0,0,0,5,0,12, +0,103,0,1,0,0,0,0,0,6, +0,8,0,115,0,1,0,0,0,0, +0,7,0,82,0,123,0,1,0,0, +0,0,0,8,0,20,0,205,0,1, +0,0,0,0,0,11,0,28,0,225, +0,1,0,0,0,0,0,12,0,46, +0,253,0,1,0,0,0,0,0,13, +0,46,1,43,0,1,0,0,0,0, +0,14,0,42,1,89,0,3,0,1, +4,9,0,0,0,114,1,131,0,3, +0,1,4,9,0,1,0,18,1,245, +0,3,0,1,4,9,0,2,0,14, +2,7,0,3,0,1,4,9,0,3, +0,60,2,21,0,3,0,1,4,9, +0,4,0,18,1,245,0,3,0,1, +4,9,0,5,0,24,2,81,0,3, +0,1,4,9,0,6,0,16,2,105, +0,3,0,1,4,9,0,7,0,164, +2,121,0,3,0,1,4,9,0,8, +0,40,3,29,0,3,0,1,4,9, +0,11,0,56,3,69,0,3,0,1, +4,9,0,12,0,92,3,125,0,3, +0,1,4,9,0,13,0,92,3,217, +0,3,0,1,4,9,0,14,0,84, +4,53,68,105,103,105,116,105,122,101, +100,32,100,97,116,97,32,99,111,112, +121,114,105,103,104,116,32,169,32,50, +48,49,48,45,50,48,49,49,44,32, +71,111,111,103,108,101,32,67,111,114, +112,111,114,97,116,105,111,110,46,79, +112,101,110,32,83,97,110,115,82,101, +103,117,108,97,114,65,115,99,101,110, +100,101,114,32,45,32,79,112,101,110, +32,83,97,110,115,32,66,117,105,108, +100,32,49,48,48,86,101,114,115,105, +111,110,32,49,46,49,48,79,112,101, +110,83,97,110,115,79,112,101,110,32, +83,97,110,115,32,105,115,32,97,32, +116,114,97,100,101,109,97,114,107,32, +111,102,32,71,111,111,103,108,101,32, +97,110,100,32,109,97,121,32,98,101, +32,114,101,103,105,115,116,101,114,101, +100,32,105,110,32,99,101,114,116,97, +105,110,32,106,117,114,105,115,100,105, +99,116,105,111,110,115,46,65,115,99, +101,110,100,101,114,32,67,111,114,112, +111,114,97,116,105,111,110,104,116,116, +112,58,47,47,119,119,119,46,97,115, +99,101,110,100,101,114,99,111,114,112, +46,99,111,109,47,104,116,116,112,58, +47,47,119,119,119,46,97,115,99,101, +110,100,101,114,99,111,114,112,46,99, +111,109,47,116,121,112,101,100,101,115, +105,103,110,101,114,115,46,104,116,109, +108,76,105,99,101,110,115,101,100,32, +117,110,100,101,114,32,116,104,101,32, +65,112,97,99,104,101,32,76,105,99, +101,110,115,101,44,32,86,101,114,115, +105,111,110,32,50,46,48,104,116,116, +112,58,47,47,119,119,119,46,97,112, +97,99,104,101,46,111,114,103,47,108, +105,99,101,110,115,101,115,47,76,73, +67,69,78,83,69,45,50,46,48,0, +68,0,105,0,103,0,105,0,116,0, +105,0,122,0,101,0,100,0,32,0, +100,0,97,0,116,0,97,0,32,0, +99,0,111,0,112,0,121,0,114,0, +105,0,103,0,104,0,116,0,32,0, +169,0,32,0,50,0,48,0,49,0, +48,0,45,0,50,0,48,0,49,0, +49,0,44,0,32,0,71,0,111,0, +111,0,103,0,108,0,101,0,32,0, +67,0,111,0,114,0,112,0,111,0, +114,0,97,0,116,0,105,0,111,0, +110,0,46,0,79,0,112,0,101,0, +110,0,32,0,83,0,97,0,110,0, +115,0,82,0,101,0,103,0,117,0, +108,0,97,0,114,0,65,0,115,0, +99,0,101,0,110,0,100,0,101,0, +114,0,32,0,45,0,32,0,79,0, +112,0,101,0,110,0,32,0,83,0, +97,0,110,0,115,0,32,0,66,0, +117,0,105,0,108,0,100,0,32,0, +49,0,48,0,48,0,86,0,101,0, +114,0,115,0,105,0,111,0,110,0, +32,0,49,0,46,0,49,0,48,0, +79,0,112,0,101,0,110,0,83,0, +97,0,110,0,115,0,79,0,112,0, +101,0,110,0,32,0,83,0,97,0, +110,0,115,0,32,0,105,0,115,0, +32,0,97,0,32,0,116,0,114,0, +97,0,100,0,101,0,109,0,97,0, +114,0,107,0,32,0,111,0,102,0, +32,0,71,0,111,0,111,0,103,0, +108,0,101,0,32,0,97,0,110,0, +100,0,32,0,109,0,97,0,121,0, +32,0,98,0,101,0,32,0,114,0, +101,0,103,0,105,0,115,0,116,0, +101,0,114,0,101,0,100,0,32,0, +105,0,110,0,32,0,99,0,101,0, +114,0,116,0,97,0,105,0,110,0, +32,0,106,0,117,0,114,0,105,0, +115,0,100,0,105,0,99,0,116,0, +105,0,111,0,110,0,115,0,46,0, +65,0,115,0,99,0,101,0,110,0, +100,0,101,0,114,0,32,0,67,0, +111,0,114,0,112,0,111,0,114,0, +97,0,116,0,105,0,111,0,110,0, +104,0,116,0,116,0,112,0,58,0, +47,0,47,0,119,0,119,0,119,0, +46,0,97,0,115,0,99,0,101,0, +110,0,100,0,101,0,114,0,99,0, +111,0,114,0,112,0,46,0,99,0, +111,0,109,0,47,0,104,0,116,0, +116,0,112,0,58,0,47,0,47,0, +119,0,119,0,119,0,46,0,97,0, +115,0,99,0,101,0,110,0,100,0, +101,0,114,0,99,0,111,0,114,0, +112,0,46,0,99,0,111,0,109,0, +47,0,116,0,121,0,112,0,101,0, +100,0,101,0,115,0,105,0,103,0, +110,0,101,0,114,0,115,0,46,0, +104,0,116,0,109,0,108,0,76,0, +105,0,99,0,101,0,110,0,115,0, +101,0,100,0,32,0,117,0,110,0, +100,0,101,0,114,0,32,0,116,0, +104,0,101,0,32,0,65,0,112,0, +97,0,99,0,104,0,101,0,32,0, +76,0,105,0,99,0,101,0,110,0, +115,0,101,0,44,0,32,0,86,0, +101,0,114,0,115,0,105,0,111,0, +110,0,32,0,50,0,46,0,48,0, +104,0,116,0,116,0,112,0,58,0, +47,0,47,0,119,0,119,0,119,0, +46,0,97,0,112,0,97,0,99,0, +104,0,101,0,46,0,111,0,114,0, +103,0,47,0,108,0,105,0,99,0, +101,0,110,0,115,0,101,0,115,0, +47,0,76,0,73,0,67,0,69,0, +78,0,83,0,69,0,45,0,50,0, +46,0,48,0,0,2,0,0,0,0, +0,0,255,102,0,102,0,0,0,0, +0,0,0,0,0,0,0,0,0,0, +0,0,0,0,0,0,3,170,1,2, +1,3,1,4,1,5,1,6,1,7, +1,8,1,9,1,10,1,11,1,12, +1,13,1,14,1,15,1,16,1,17, +1,18,1,19,1,20,1,21,1,22, +1,23,1,24,1,25,1,26,1,27, +1,28,1,29,1,30,1,31,1,32, +1,33,1,34,1,35,1,36,1,37, +1,38,1,39,1,40,1,41,1,42, +1,43,1,44,1,45,1,46,1,47, +1,48,1,49,1,50,1,51,1,52, +1,53,1,54,1,55,1,56,1,57, +1,58,1,59,1,60,1,61,1,62, +1,63,1,64,1,65,1,66,1,67, +1,68,1,69,1,70,1,71,1,72, +1,73,1,74,1,75,1,76,1,77, +1,78,1,79,1,80,1,81,1,82, +1,83,1,84,1,85,1,86,1,87, +1,88,1,89,1,90,1,91,1,92, +1,93,1,94,1,95,1,96,1,97, +1,98,1,99,1,100,1,101,1,102, +1,103,1,104,1,105,1,106,1,107, +1,108,1,109,1,110,1,111,1,112, +1,113,1,114,1,115,1,116,1,117, +1,118,1,119,1,120,1,121,1,122, +1,123,1,124,1,125,1,126,1,127, +1,128,1,129,1,130,1,131,1,132, +1,133,1,134,1,135,1,136,1,137, +1,138,1,139,1,140,1,141,1,142, +1,143,1,144,1,145,1,146,1,147, +1,148,1,149,1,150,1,151,1,152, +1,153,1,154,1,155,1,156,1,157, +1,158,1,159,1,160,1,161,1,162, +1,163,1,164,1,165,1,166,1,167, +1,168,1,169,1,170,1,171,1,172, +1,173,1,174,1,175,1,176,1,177, +1,178,1,179,1,180,1,181,1,182, +1,183,1,184,1,185,1,186,1,187, +1,188,1,189,1,190,1,191,1,192, +1,193,1,194,1,195,1,196,1,197, +1,198,1,199,1,200,1,201,1,202, +1,203,1,204,1,205,1,206,1,207, +1,208,1,209,1,210,1,211,1,212, +1,213,1,214,1,215,1,216,1,217, +1,218,1,219,1,220,1,221,1,222, +1,223,1,224,1,225,1,226,1,227, +1,228,1,229,1,230,1,231,1,232, +1,233,1,234,1,235,1,236,1,237, +1,238,1,239,1,240,1,241,1,242, +1,243,1,244,1,245,1,246,1,247, +1,248,1,249,1,250,1,251,1,252, +1,253,1,254,1,255,2,0,2,1, +2,2,2,3,2,4,2,5,2,6, +2,7,2,8,2,9,2,10,2,11, +2,12,2,13,2,14,2,15,2,16, +2,17,2,18,2,19,2,20,2,21, +2,22,2,23,2,24,2,25,2,26, +2,27,2,28,2,29,2,30,2,31, +2,32,2,33,2,34,2,35,2,36, +2,37,2,38,2,39,2,40,2,41, +2,42,2,43,2,44,2,45,2,46, +2,47,2,48,2,49,2,50,2,51, +2,52,2,53,2,54,2,55,2,56, +2,57,2,58,2,59,2,60,2,61, +2,62,2,63,2,64,2,65,2,66, +2,67,2,68,2,69,2,70,2,71, +2,72,2,73,2,74,2,75,2,76, +2,77,2,78,2,79,2,80,2,81, +2,82,2,83,2,84,2,85,2,86, +2,87,2,88,2,89,2,90,2,91, +2,92,2,93,2,94,2,95,2,96, +2,97,2,98,2,99,2,100,2,101, +2,102,2,103,2,104,2,105,2,106, +2,107,2,108,2,109,2,110,2,111, +2,112,2,113,2,114,2,115,2,116, +2,117,2,118,2,119,2,120,2,121, +2,122,2,123,2,124,2,125,2,126, +2,127,2,128,2,129,2,130,2,131, +2,132,2,133,2,134,2,135,2,136, +2,137,2,138,2,139,2,140,2,141, +2,142,2,143,2,144,2,145,2,146, +2,147,2,148,2,149,2,150,2,151, +2,152,2,153,2,154,2,155,2,156, +2,157,2,158,2,159,2,160,2,161, +2,162,2,163,2,164,2,165,2,166, +2,167,2,168,2,169,2,170,2,171, +2,172,2,173,2,174,2,175,2,176, +2,177,2,178,2,179,2,180,2,181, +2,182,2,183,2,184,2,185,2,186, +2,187,2,188,2,189,2,190,2,191, +2,192,2,193,2,194,2,195,2,196, +2,197,2,198,2,199,2,200,2,201, +2,202,2,203,2,204,2,205,2,206, +2,207,2,208,2,209,2,210,2,211, +2,212,2,213,2,214,2,215,2,216, +2,217,2,218,2,219,2,220,2,221, +2,222,2,223,2,224,2,225,2,226, +2,227,2,228,2,229,2,230,2,231, +2,232,2,233,2,234,2,235,2,236, +2,237,2,238,2,239,2,240,2,241, +2,242,2,243,2,244,2,245,2,246, +2,247,2,248,2,249,2,250,2,251, +2,252,2,253,2,254,2,255,3,0, +3,1,3,2,3,3,3,4,3,5, +3,6,3,7,3,8,3,9,3,10, +3,11,3,12,3,13,3,14,3,15, +3,16,3,17,3,18,3,19,3,20, +3,21,3,22,3,23,3,24,3,25, +3,26,3,27,3,28,3,29,3,30, +3,31,3,32,3,33,3,34,3,35, +3,36,3,37,3,38,3,39,3,40, +3,41,3,42,3,43,3,44,3,45, +3,46,3,47,3,48,3,49,3,50, +3,51,3,52,3,53,3,54,3,55, +3,56,3,57,3,58,3,59,3,60, +3,61,3,62,3,63,3,64,3,65, +3,66,3,67,3,68,3,69,3,70, +3,71,3,72,3,73,3,74,3,75, +3,76,3,77,3,78,3,79,3,80, +3,81,3,82,3,83,3,84,3,85, +3,86,3,87,3,88,3,89,3,90, +3,91,3,92,3,93,3,94,3,95, +3,96,3,97,3,98,3,99,3,100, +3,101,3,102,3,103,3,104,3,105, +3,106,3,107,3,108,3,109,3,110, +3,111,3,112,3,113,3,114,3,115, +3,116,3,117,3,118,3,119,3,120, +3,121,3,122,3,123,3,124,3,125, +3,126,3,127,3,128,3,129,3,130, +3,131,3,132,3,133,3,134,3,135, +3,136,3,137,3,138,3,139,3,140, +3,141,3,142,3,143,3,144,3,145, +3,146,3,147,3,148,3,149,3,150, +3,151,3,152,3,153,3,154,3,155, +3,156,3,157,3,158,3,159,3,160, +3,161,3,162,3,163,3,164,3,165, +3,166,3,167,3,168,3,169,3,170, +3,171,3,172,3,173,3,174,3,175, +3,176,3,177,3,178,3,179,3,180, +3,181,3,182,3,183,3,184,3,185, +3,186,3,187,3,188,3,189,3,190, +3,191,3,192,3,193,3,194,3,195, +3,196,3,197,3,198,3,199,3,200, +3,201,3,202,3,203,3,204,3,205, +3,206,3,207,3,208,3,209,3,210, +3,211,3,212,3,213,3,214,3,215, +3,216,3,217,3,218,3,219,3,220, +3,221,3,222,3,223,3,224,3,225, +3,226,3,227,3,228,3,229,3,230, +3,231,3,232,3,233,3,234,3,235, +3,236,3,237,3,238,3,239,3,240, +3,241,3,242,3,243,3,244,3,245, +3,246,3,247,3,248,3,249,3,250, +3,251,3,252,3,253,3,254,3,255, +4,0,4,1,4,2,4,3,4,4, +4,5,4,6,4,7,4,8,4,9, +4,10,4,11,4,12,4,13,4,14, +4,15,4,16,4,17,4,18,4,19, +4,20,4,21,4,22,4,23,4,24, +4,25,4,26,4,27,4,28,4,29, +4,30,4,31,4,32,4,33,4,34, +4,35,4,36,4,37,4,38,4,39, +4,40,4,41,4,42,4,43,4,44, +4,45,4,46,4,47,4,48,4,49, +4,50,4,51,4,52,4,53,4,54, +4,55,4,56,4,57,4,58,4,59, +4,60,4,61,4,62,4,63,4,64, +4,65,4,66,4,67,4,68,4,69, +4,70,4,71,4,72,4,73,4,74, +4,75,4,76,4,77,4,78,4,79, +4,80,4,81,4,82,4,83,4,84, +4,85,4,86,4,87,4,88,4,89, +4,90,4,91,4,92,4,93,4,94, +4,95,4,96,4,97,4,98,4,99, +4,100,4,101,4,102,4,103,4,104, +4,105,4,106,4,107,4,108,4,109, +4,110,4,111,4,112,4,113,4,114, +4,115,4,116,4,117,4,118,4,119, +4,120,4,121,4,122,4,123,4,124, +4,125,4,126,4,127,4,128,4,129, +4,130,4,131,4,132,4,133,4,134, +4,135,4,136,4,137,4,138,4,139, +4,140,4,141,4,142,4,143,4,144, +4,145,4,146,4,147,4,148,4,149, +4,150,4,151,4,152,4,153,4,154, +4,155,4,156,4,157,4,158,4,159, +4,160,4,161,4,162,4,163,4,164, +4,165,4,166,4,167,4,168,4,169, +4,170,4,171,7,46,110,111,116,100, +101,102,4,110,117,108,108,16,110,111, +110,109,97,114,107,105,110,103,114,101, +116,117,114,110,5,115,112,97,99,101, +6,101,120,99,108,97,109,8,113,117, +111,116,101,100,98,108,10,110,117,109, +98,101,114,115,105,103,110,6,100,111, +108,108,97,114,7,112,101,114,99,101, +110,116,9,97,109,112,101,114,115,97, +110,100,11,113,117,111,116,101,115,105, +110,103,108,101,9,112,97,114,101,110, +108,101,102,116,10,112,97,114,101,110, +114,105,103,104,116,8,97,115,116,101, +114,105,115,107,4,112,108,117,115,5, +99,111,109,109,97,6,104,121,112,104, +101,110,6,112,101,114,105,111,100,5, +115,108,97,115,104,4,122,101,114,111, +3,111,110,101,3,116,119,111,5,116, +104,114,101,101,4,102,111,117,114,4, +102,105,118,101,3,115,105,120,5,115, +101,118,101,110,5,101,105,103,104,116, +4,110,105,110,101,5,99,111,108,111, +110,9,115,101,109,105,99,111,108,111, +110,4,108,101,115,115,5,101,113,117, +97,108,7,103,114,101,97,116,101,114, +8,113,117,101,115,116,105,111,110,2, +97,116,1,65,1,66,1,67,1,68, +1,69,1,70,1,71,1,72,5,73, +46,97,108,116,1,74,1,75,1,76, +1,77,1,78,1,79,1,80,1,81, +1,82,1,83,1,84,1,85,1,86, +1,87,1,88,1,89,1,90,11,98, +114,97,99,107,101,116,108,101,102,116, +9,98,97,99,107,115,108,97,115,104, +12,98,114,97,99,107,101,116,114,105, +103,104,116,11,97,115,99,105,105,99, +105,114,99,117,109,10,117,110,100,101, +114,115,99,111,114,101,5,103,114,97, +118,101,1,97,1,98,1,99,1,100, +1,101,1,102,1,103,1,104,1,105, +1,106,1,107,1,108,1,109,1,110, +1,111,1,112,1,113,1,114,1,115, +1,116,1,117,1,118,1,119,1,120, +1,121,1,122,9,98,114,97,99,101, +108,101,102,116,3,98,97,114,10,98, +114,97,99,101,114,105,103,104,116,10, +97,115,99,105,105,116,105,108,100,101, +16,110,111,110,98,114,101,97,107,105, +110,103,115,112,97,99,101,10,101,120, +99,108,97,109,100,111,119,110,4,99, +101,110,116,8,115,116,101,114,108,105, +110,103,8,99,117,114,114,101,110,99, +121,3,121,101,110,9,98,114,111,107, +101,110,98,97,114,7,115,101,99,116, +105,111,110,8,100,105,101,114,101,115, +105,115,9,99,111,112,121,114,105,103, +104,116,11,111,114,100,102,101,109,105, +110,105,110,101,13,103,117,105,108,108, +101,109,111,116,108,101,102,116,10,108, +111,103,105,99,97,108,110,111,116,7, +117,110,105,48,48,65,68,10,114,101, +103,105,115,116,101,114,101,100,9,111, +118,101,114,115,99,111,114,101,6,100, +101,103,114,101,101,9,112,108,117,115, +109,105,110,117,115,11,116,119,111,115, +117,112,101,114,105,111,114,13,116,104, +114,101,101,115,117,112,101,114,105,111, +114,5,97,99,117,116,101,2,109,117, +9,112,97,114,97,103,114,97,112,104, +14,112,101,114,105,111,100,99,101,110, +116,101,114,101,100,7,99,101,100,105, +108,108,97,11,111,110,101,115,117,112, +101,114,105,111,114,12,111,114,100,109, +97,115,99,117,108,105,110,101,14,103, +117,105,108,108,101,109,111,116,114,105, +103,104,116,10,111,110,101,113,117,97, +114,116,101,114,7,111,110,101,104,97, +108,102,13,116,104,114,101,101,113,117, +97,114,116,101,114,115,12,113,117,101, +115,116,105,111,110,100,111,119,110,6, +65,103,114,97,118,101,6,65,97,99, +117,116,101,11,65,99,105,114,99,117, +109,102,108,101,120,6,65,116,105,108, +100,101,9,65,100,105,101,114,101,115, +105,115,5,65,114,105,110,103,2,65, +69,8,67,99,101,100,105,108,108,97, +6,69,103,114,97,118,101,6,69,97, +99,117,116,101,11,69,99,105,114,99, +117,109,102,108,101,120,9,69,100,105, +101,114,101,115,105,115,10,73,103,114, +97,118,101,46,97,108,116,10,73,97, +99,117,116,101,46,97,108,116,15,73, +99,105,114,99,117,109,102,108,101,120, +46,97,108,116,13,73,100,105,101,114, +101,115,105,115,46,97,108,116,3,69, +116,104,6,78,116,105,108,100,101,6, +79,103,114,97,118,101,6,79,97,99, +117,116,101,11,79,99,105,114,99,117, +109,102,108,101,120,6,79,116,105,108, +100,101,9,79,100,105,101,114,101,115, +105,115,8,109,117,108,116,105,112,108, +121,6,79,115,108,97,115,104,6,85, +103,114,97,118,101,6,85,97,99,117, +116,101,11,85,99,105,114,99,117,109, +102,108,101,120,9,85,100,105,101,114, +101,115,105,115,6,89,97,99,117,116, +101,5,84,104,111,114,110,10,103,101, +114,109,97,110,100,98,108,115,6,97, +103,114,97,118,101,6,97,97,99,117, +116,101,11,97,99,105,114,99,117,109, +102,108,101,120,6,97,116,105,108,100, +101,9,97,100,105,101,114,101,115,105, +115,5,97,114,105,110,103,2,97,101, +8,99,99,101,100,105,108,108,97,6, +101,103,114,97,118,101,6,101,97,99, +117,116,101,11,101,99,105,114,99,117, +109,102,108,101,120,9,101,100,105,101, +114,101,115,105,115,6,105,103,114,97, +118,101,6,105,97,99,117,116,101,11, +105,99,105,114,99,117,109,102,108,101, +120,9,105,100,105,101,114,101,115,105, +115,3,101,116,104,6,110,116,105,108, +100,101,6,111,103,114,97,118,101,6, +111,97,99,117,116,101,11,111,99,105, +114,99,117,109,102,108,101,120,6,111, +116,105,108,100,101,9,111,100,105,101, +114,101,115,105,115,6,100,105,118,105, +100,101,6,111,115,108,97,115,104,6, +117,103,114,97,118,101,6,117,97,99, +117,116,101,11,117,99,105,114,99,117, +109,102,108,101,120,9,117,100,105,101, +114,101,115,105,115,6,121,97,99,117, +116,101,5,116,104,111,114,110,9,121, +100,105,101,114,101,115,105,115,7,65, +109,97,99,114,111,110,7,97,109,97, +99,114,111,110,6,65,98,114,101,118, +101,6,97,98,114,101,118,101,7,65, +111,103,111,110,101,107,7,97,111,103, +111,110,101,107,6,67,97,99,117,116, +101,6,99,97,99,117,116,101,11,67, +99,105,114,99,117,109,102,108,101,120, +11,99,99,105,114,99,117,109,102,108, +101,120,4,67,100,111,116,4,99,100, +111,116,6,67,99,97,114,111,110,6, +99,99,97,114,111,110,6,68,99,97, +114,111,110,6,100,99,97,114,111,110, +6,68,99,114,111,97,116,6,100,99, +114,111,97,116,7,69,109,97,99,114, +111,110,7,101,109,97,99,114,111,110, +6,69,98,114,101,118,101,6,101,98, +114,101,118,101,10,69,100,111,116,97, +99,99,101,110,116,10,101,100,111,116, +97,99,99,101,110,116,7,69,111,103, +111,110,101,107,7,101,111,103,111,110, +101,107,6,69,99,97,114,111,110,6, +101,99,97,114,111,110,11,71,99,105, +114,99,117,109,102,108,101,120,11,103, +99,105,114,99,117,109,102,108,101,120, +6,71,98,114,101,118,101,6,103,98, +114,101,118,101,4,71,100,111,116,4, +103,100,111,116,12,71,99,111,109,109, +97,97,99,99,101,110,116,12,103,99, +111,109,109,97,97,99,99,101,110,116, +11,72,99,105,114,99,117,109,102,108, +101,120,11,104,99,105,114,99,117,109, +102,108,101,120,4,72,98,97,114,4, +104,98,97,114,10,73,116,105,108,100, +101,46,97,108,116,6,105,116,105,108, +100,101,11,73,109,97,99,114,111,110, +46,97,108,116,7,105,109,97,99,114, +111,110,10,73,98,114,101,118,101,46, +97,108,116,6,105,98,114,101,118,101, +11,73,111,103,111,110,101,107,46,97, +108,116,7,105,111,103,111,110,101,107, +14,73,100,111,116,97,99,99,101,110, +116,46,97,108,116,8,100,111,116,108, +101,115,115,105,6,73,74,46,97,108, +116,2,105,106,11,74,99,105,114,99, +117,109,102,108,101,120,11,106,99,105, +114,99,117,109,102,108,101,120,12,75, +99,111,109,109,97,97,99,99,101,110, +116,12,107,99,111,109,109,97,97,99, +99,101,110,116,12,107,103,114,101,101, +110,108,97,110,100,105,99,6,76,97, +99,117,116,101,6,108,97,99,117,116, +101,12,76,99,111,109,109,97,97,99, +99,101,110,116,12,108,99,111,109,109, +97,97,99,99,101,110,116,6,76,99, +97,114,111,110,6,108,99,97,114,111, +110,4,76,100,111,116,4,108,100,111, +116,6,76,115,108,97,115,104,6,108, +115,108,97,115,104,6,78,97,99,117, +116,101,6,110,97,99,117,116,101,12, +78,99,111,109,109,97,97,99,99,101, +110,116,12,110,99,111,109,109,97,97, +99,99,101,110,116,6,78,99,97,114, +111,110,6,110,99,97,114,111,110,11, +110,97,112,111,115,116,114,111,112,104, +101,3,69,110,103,3,101,110,103,7, +79,109,97,99,114,111,110,7,111,109, +97,99,114,111,110,6,79,98,114,101, +118,101,6,111,98,114,101,118,101,13, +79,104,117,110,103,97,114,117,109,108, +97,117,116,13,111,104,117,110,103,97, +114,117,109,108,97,117,116,2,79,69, +2,111,101,6,82,97,99,117,116,101, +6,114,97,99,117,116,101,12,82,99, +111,109,109,97,97,99,99,101,110,116, +12,114,99,111,109,109,97,97,99,99, +101,110,116,6,82,99,97,114,111,110, +6,114,99,97,114,111,110,6,83,97, +99,117,116,101,6,115,97,99,117,116, +101,11,83,99,105,114,99,117,109,102, +108,101,120,11,115,99,105,114,99,117, +109,102,108,101,120,8,83,99,101,100, +105,108,108,97,8,115,99,101,100,105, +108,108,97,6,83,99,97,114,111,110, +6,115,99,97,114,111,110,12,84,99, +111,109,109,97,97,99,99,101,110,116, +12,116,99,111,109,109,97,97,99,99, +101,110,116,6,84,99,97,114,111,110, +6,116,99,97,114,111,110,4,84,98, +97,114,4,116,98,97,114,6,85,116, +105,108,100,101,6,117,116,105,108,100, +101,7,85,109,97,99,114,111,110,7, +117,109,97,99,114,111,110,6,85,98, +114,101,118,101,6,117,98,114,101,118, +101,5,85,114,105,110,103,5,117,114, +105,110,103,13,85,104,117,110,103,97, +114,117,109,108,97,117,116,13,117,104, +117,110,103,97,114,117,109,108,97,117, +116,7,85,111,103,111,110,101,107,7, +117,111,103,111,110,101,107,11,87,99, +105,114,99,117,109,102,108,101,120,11, +119,99,105,114,99,117,109,102,108,101, +120,11,89,99,105,114,99,117,109,102, +108,101,120,11,121,99,105,114,99,117, +109,102,108,101,120,9,89,100,105,101, +114,101,115,105,115,6,90,97,99,117, +116,101,6,122,97,99,117,116,101,10, +90,100,111,116,97,99,99,101,110,116, +10,122,100,111,116,97,99,99,101,110, +116,6,90,99,97,114,111,110,6,122, +99,97,114,111,110,5,108,111,110,103, +115,6,102,108,111,114,105,110,10,65, +114,105,110,103,97,99,117,116,101,10, +97,114,105,110,103,97,99,117,116,101, +7,65,69,97,99,117,116,101,7,97, +101,97,99,117,116,101,11,79,115,108, +97,115,104,97,99,117,116,101,11,111, +115,108,97,115,104,97,99,117,116,101, +12,83,99,111,109,109,97,97,99,99, +101,110,116,12,115,99,111,109,109,97, +97,99,99,101,110,116,10,99,105,114, +99,117,109,102,108,101,120,5,99,97, +114,111,110,6,109,97,99,114,111,110, +5,98,114,101,118,101,9,100,111,116, +97,99,99,101,110,116,4,114,105,110, +103,6,111,103,111,110,101,107,5,116, +105,108,100,101,12,104,117,110,103,97, +114,117,109,108,97,117,116,5,116,111, +110,111,115,13,100,105,101,114,101,115, +105,115,116,111,110,111,115,10,65,108, +112,104,97,116,111,110,111,115,9,97, +110,111,116,101,108,101,105,97,12,69, +112,115,105,108,111,110,116,111,110,111, +115,8,69,116,97,116,111,110,111,115, +13,73,111,116,97,116,111,110,111,115, +46,97,108,116,12,79,109,105,99,114, +111,110,116,111,110,111,115,12,85,112, +115,105,108,111,110,116,111,110,111,115, +10,79,109,101,103,97,116,111,110,111, +115,17,105,111,116,97,100,105,101,114, +101,115,105,115,116,111,110,111,115,5, +65,108,112,104,97,4,66,101,116,97, +5,71,97,109,109,97,7,117,110,105, +48,51,57,52,7,69,112,115,105,108, +111,110,4,90,101,116,97,3,69,116, +97,5,84,104,101,116,97,8,73,111, +116,97,46,97,108,116,5,75,97,112, +112,97,6,76,97,109,98,100,97,2, +77,117,2,78,117,2,88,105,7,79, +109,105,99,114,111,110,2,80,105,3, +82,104,111,5,83,105,103,109,97,3, +84,97,117,7,85,112,115,105,108,111, +110,3,80,104,105,3,67,104,105,3, +80,115,105,7,117,110,105,48,51,65, +57,16,73,111,116,97,100,105,101,114, +101,115,105,115,46,97,108,116,15,85, +112,115,105,108,111,110,100,105,101,114, +101,115,105,115,10,97,108,112,104,97, +116,111,110,111,115,12,101,112,115,105, +108,111,110,116,111,110,111,115,8,101, +116,97,116,111,110,111,115,9,105,111, +116,97,116,111,110,111,115,20,117,112, +115,105,108,111,110,100,105,101,114,101, +115,105,115,116,111,110,111,115,5,97, +108,112,104,97,4,98,101,116,97,5, +103,97,109,109,97,5,100,101,108,116, +97,7,101,112,115,105,108,111,110,4, +122,101,116,97,3,101,116,97,5,116, +104,101,116,97,4,105,111,116,97,5, +107,97,112,112,97,6,108,97,109,98, +100,97,7,117,110,105,48,51,66,67, +2,110,117,2,120,105,7,111,109,105, +99,114,111,110,2,112,105,3,114,104, +111,6,115,105,103,109,97,49,5,115, +105,103,109,97,3,116,97,117,7,117, +112,115,105,108,111,110,3,112,104,105, +3,99,104,105,3,112,115,105,5,111, +109,101,103,97,12,105,111,116,97,100, +105,101,114,101,115,105,115,15,117,112, +115,105,108,111,110,100,105,101,114,101, +115,105,115,12,111,109,105,99,114,111, +110,116,111,110,111,115,12,117,112,115, +105,108,111,110,116,111,110,111,115,10, +111,109,101,103,97,116,111,110,111,115, +9,97,102,105,105,49,48,48,50,51, +9,97,102,105,105,49,48,48,53,49, +9,97,102,105,105,49,48,48,53,50, +9,97,102,105,105,49,48,48,53,51, +9,97,102,105,105,49,48,48,53,52, +13,97,102,105,105,49,48,48,53,53, +46,97,108,116,13,97,102,105,105,49, +48,48,53,54,46,97,108,116,9,97, +102,105,105,49,48,48,53,55,9,97, +102,105,105,49,48,48,53,56,9,97, +102,105,105,49,48,48,53,57,9,97, +102,105,105,49,48,48,54,48,9,97, +102,105,105,49,48,48,54,49,9,97, +102,105,105,49,48,48,54,50,9,97, +102,105,105,49,48,49,52,53,9,97, +102,105,105,49,48,48,49,55,9,97, +102,105,105,49,48,48,49,56,9,97, +102,105,105,49,48,48,49,57,9,97, +102,105,105,49,48,48,50,48,9,97, +102,105,105,49,48,48,50,49,9,97, +102,105,105,49,48,48,50,50,9,97, +102,105,105,49,48,48,50,52,9,97, +102,105,105,49,48,48,50,53,9,97, +102,105,105,49,48,48,50,54,9,97, +102,105,105,49,48,48,50,55,9,97, +102,105,105,49,48,48,50,56,9,97, +102,105,105,49,48,48,50,57,9,97, +102,105,105,49,48,48,51,48,9,97, +102,105,105,49,48,48,51,49,9,97, +102,105,105,49,48,48,51,50,9,97, +102,105,105,49,48,48,51,51,9,97, +102,105,105,49,48,48,51,52,9,97, +102,105,105,49,48,48,51,53,9,97, +102,105,105,49,48,48,51,54,9,97, +102,105,105,49,48,48,51,55,9,97, +102,105,105,49,48,48,51,56,9,97, +102,105,105,49,48,48,51,57,9,97, +102,105,105,49,48,48,52,48,9,97, +102,105,105,49,48,48,52,49,9,97, +102,105,105,49,48,48,52,50,9,97, +102,105,105,49,48,48,52,51,9,97, +102,105,105,49,48,48,52,52,9,97, +102,105,105,49,48,48,52,53,9,97, +102,105,105,49,48,48,52,54,9,97, +102,105,105,49,48,48,52,55,9,97, +102,105,105,49,48,48,52,56,9,97, +102,105,105,49,48,48,52,57,9,97, +102,105,105,49,48,48,54,53,9,97, +102,105,105,49,48,48,54,54,9,97, +102,105,105,49,48,48,54,55,9,97, +102,105,105,49,48,48,54,56,9,97, +102,105,105,49,48,48,54,57,9,97, +102,105,105,49,48,48,55,48,9,97, +102,105,105,49,48,48,55,50,9,97, +102,105,105,49,48,48,55,51,9,97, +102,105,105,49,48,48,55,52,9,97, +102,105,105,49,48,48,55,53,9,97, +102,105,105,49,48,48,55,54,9,97, +102,105,105,49,48,48,55,55,9,97, +102,105,105,49,48,48,55,56,9,97, +102,105,105,49,48,48,55,57,9,97, +102,105,105,49,48,48,56,48,9,97, +102,105,105,49,48,48,56,49,9,97, +102,105,105,49,48,48,56,50,9,97, +102,105,105,49,48,48,56,51,9,97, +102,105,105,49,48,48,56,52,9,97, +102,105,105,49,48,48,56,53,9,97, +102,105,105,49,48,48,56,54,9,97, +102,105,105,49,48,48,56,55,9,97, +102,105,105,49,48,48,56,56,9,97, +102,105,105,49,48,48,56,57,9,97, +102,105,105,49,48,48,57,48,9,97, +102,105,105,49,48,48,57,49,9,97, +102,105,105,49,48,48,57,50,9,97, +102,105,105,49,48,48,57,51,9,97, +102,105,105,49,48,48,57,52,9,97, +102,105,105,49,48,48,57,53,9,97, +102,105,105,49,48,48,57,54,9,97, +102,105,105,49,48,48,57,55,9,97, +102,105,105,49,48,48,55,49,9,97, +102,105,105,49,48,48,57,57,9,97, +102,105,105,49,48,49,48,48,9,97, +102,105,105,49,48,49,48,49,9,97, +102,105,105,49,48,49,48,50,9,97, +102,105,105,49,48,49,48,51,9,97, +102,105,105,49,48,49,48,52,9,97, +102,105,105,49,48,49,48,53,9,97, +102,105,105,49,48,49,48,54,9,97, +102,105,105,49,48,49,48,55,9,97, +102,105,105,49,48,49,48,56,9,97, +102,105,105,49,48,49,48,57,9,97, +102,105,105,49,48,49,49,48,9,97, +102,105,105,49,48,49,57,51,9,97, +102,105,105,49,48,48,53,48,9,97, +102,105,105,49,48,48,57,56,6,87, +103,114,97,118,101,6,119,103,114,97, +118,101,6,87,97,99,117,116,101,6, +119,97,99,117,116,101,9,87,100,105, +101,114,101,115,105,115,9,119,100,105, +101,114,101,115,105,115,6,89,103,114, +97,118,101,6,121,103,114,97,118,101, +6,101,110,100,97,115,104,6,101,109, +100,97,115,104,9,97,102,105,105,48, +48,50,48,56,13,117,110,100,101,114, +115,99,111,114,101,100,98,108,9,113, +117,111,116,101,108,101,102,116,10,113, +117,111,116,101,114,105,103,104,116,14, +113,117,111,116,101,115,105,110,103,108, +98,97,115,101,13,113,117,111,116,101, +114,101,118,101,114,115,101,100,12,113, +117,111,116,101,100,98,108,108,101,102, +116,13,113,117,111,116,101,100,98,108, +114,105,103,104,116,12,113,117,111,116, +101,100,98,108,98,97,115,101,6,100, +97,103,103,101,114,9,100,97,103,103, +101,114,100,98,108,6,98,117,108,108, +101,116,8,101,108,108,105,112,115,105, +115,11,112,101,114,116,104,111,117,115, +97,110,100,6,109,105,110,117,116,101, +6,115,101,99,111,110,100,13,103,117, +105,108,115,105,110,103,108,108,101,102, +116,14,103,117,105,108,115,105,110,103, +108,114,105,103,104,116,9,101,120,99, +108,97,109,100,98,108,8,102,114,97, +99,116,105,111,110,9,110,115,117,112, +101,114,105,111,114,5,102,114,97,110, +99,9,97,102,105,105,48,56,57,52, +49,6,112,101,115,101,116,97,4,69, +117,114,111,9,97,102,105,105,54,49, +50,52,56,9,97,102,105,105,54,49, +50,56,57,9,97,102,105,105,54,49, +51,53,50,9,116,114,97,100,101,109, +97,114,107,5,79,109,101,103,97,9, +101,115,116,105,109,97,116,101,100,9, +111,110,101,101,105,103,104,116,104,12, +116,104,114,101,101,101,105,103,104,116, +104,115,11,102,105,118,101,101,105,103, +104,116,104,115,12,115,101,118,101,110, +101,105,103,104,116,104,115,11,112,97, +114,116,105,97,108,100,105,102,102,5, +68,101,108,116,97,7,112,114,111,100, +117,99,116,9,115,117,109,109,97,116, +105,111,110,5,109,105,110,117,115,7, +114,97,100,105,99,97,108,8,105,110, +102,105,110,105,116,121,8,105,110,116, +101,103,114,97,108,11,97,112,112,114, +111,120,101,113,117,97,108,8,110,111, +116,101,113,117,97,108,9,108,101,115, +115,101,113,117,97,108,12,103,114,101, +97,116,101,114,101,113,117,97,108,7, +108,111,122,101,110,103,101,7,117,110, +105,70,66,48,49,7,117,110,105,70, +66,48,50,13,99,121,114,105,108,108, +105,99,98,114,101,118,101,8,100,111, +116,108,101,115,115,106,16,99,97,114, +111,110,99,111,109,109,97,97,99,99, +101,110,116,11,99,111,109,109,97,97, +99,99,101,110,116,17,99,111,109,109, +97,97,99,99,101,110,116,114,111,116, +97,116,101,12,122,101,114,111,115,117, +112,101,114,105,111,114,12,102,111,117, +114,115,117,112,101,114,105,111,114,12, +102,105,118,101,115,117,112,101,114,105, +111,114,11,115,105,120,115,117,112,101, +114,105,111,114,13,115,101,118,101,110, +115,117,112,101,114,105,111,114,13,101, +105,103,104,116,115,117,112,101,114,105, +111,114,12,110,105,110,101,115,117,112, +101,114,105,111,114,7,117,110,105,50, +48,48,48,7,117,110,105,50,48,48, +49,7,117,110,105,50,48,48,50,7, +117,110,105,50,48,48,51,7,117,110, +105,50,48,48,52,7,117,110,105,50, +48,48,53,7,117,110,105,50,48,48, +54,7,117,110,105,50,48,48,55,7, +117,110,105,50,48,48,56,7,117,110, +105,50,48,48,57,7,117,110,105,50, +48,48,65,7,117,110,105,50,48,48, +66,7,117,110,105,70,69,70,70,7, +117,110,105,70,70,70,67,7,117,110, +105,70,70,70,68,7,117,110,105,48, +49,70,48,7,117,110,105,48,50,66, +67,7,117,110,105,48,51,68,49,7, +117,110,105,48,51,68,50,7,117,110, +105,48,51,68,54,7,117,110,105,49, +69,51,69,7,117,110,105,49,69,51, +70,7,117,110,105,49,69,48,48,7, +117,110,105,49,69,48,49,7,117,110, +105,49,70,52,68,7,117,110,105,48, +50,70,51,9,100,97,115,105,97,111, +120,105,97,7,117,110,105,70,66,48, +51,7,117,110,105,70,66,48,52,5, +79,104,111,114,110,5,111,104,111,114, +110,5,85,104,111,114,110,5,117,104, +111,114,110,7,117,110,105,48,51,48, +48,7,117,110,105,48,51,48,49,7, +117,110,105,48,51,48,51,4,104,111, +111,107,8,100,111,116,98,101,108,111, +119,7,117,110,105,48,52,48,48,7, +117,110,105,48,52,48,68,7,117,110, +105,48,52,53,48,7,117,110,105,48, +52,53,68,7,117,110,105,48,52,54, +48,7,117,110,105,48,52,54,49,7, +117,110,105,48,52,54,50,7,117,110, +105,48,52,54,51,7,117,110,105,48, +52,54,52,7,117,110,105,48,52,54, +53,7,117,110,105,48,52,54,54,7, +117,110,105,48,52,54,55,7,117,110, +105,48,52,54,56,7,117,110,105,48, +52,54,57,7,117,110,105,48,52,54, +65,7,117,110,105,48,52,54,66,7, +117,110,105,48,52,54,67,7,117,110, +105,48,52,54,68,7,117,110,105,48, +52,54,69,7,117,110,105,48,52,54, +70,7,117,110,105,48,52,55,48,7, +117,110,105,48,52,55,49,7,117,110, +105,48,52,55,50,7,117,110,105,48, +52,55,51,7,117,110,105,48,52,55, +52,7,117,110,105,48,52,55,53,7, +117,110,105,48,52,55,54,7,117,110, +105,48,52,55,55,7,117,110,105,48, +52,55,56,7,117,110,105,48,52,55, +57,7,117,110,105,48,52,55,65,7, +117,110,105,48,52,55,66,7,117,110, +105,48,52,55,67,7,117,110,105,48, +52,55,68,7,117,110,105,48,52,55, +69,7,117,110,105,48,52,55,70,7, +117,110,105,48,52,56,48,7,117,110, +105,48,52,56,49,7,117,110,105,48, +52,56,50,7,117,110,105,48,52,56, +51,7,117,110,105,48,52,56,52,7, +117,110,105,48,52,56,53,7,117,110, +105,48,52,56,54,7,117,110,105,48, +52,56,56,7,117,110,105,48,52,56, +57,7,117,110,105,48,52,56,65,7, +117,110,105,48,52,56,66,7,117,110, +105,48,52,56,67,7,117,110,105,48, +52,56,68,7,117,110,105,48,52,56, +69,7,117,110,105,48,52,56,70,7, +117,110,105,48,52,57,50,7,117,110, +105,48,52,57,51,7,117,110,105,48, +52,57,52,7,117,110,105,48,52,57, +53,7,117,110,105,48,52,57,54,7, +117,110,105,48,52,57,55,7,117,110, +105,48,52,57,56,7,117,110,105,48, +52,57,57,7,117,110,105,48,52,57, +65,7,117,110,105,48,52,57,66,7, +117,110,105,48,52,57,67,7,117,110, +105,48,52,57,68,7,117,110,105,48, +52,57,69,7,117,110,105,48,52,57, +70,7,117,110,105,48,52,65,48,7, +117,110,105,48,52,65,49,7,117,110, +105,48,52,65,50,7,117,110,105,48, +52,65,51,7,117,110,105,48,52,65, +52,7,117,110,105,48,52,65,53,7, +117,110,105,48,52,65,54,7,117,110, +105,48,52,65,55,7,117,110,105,48, +52,65,56,7,117,110,105,48,52,65, +57,7,117,110,105,48,52,65,65,7, +117,110,105,48,52,65,66,7,117,110, +105,48,52,65,67,7,117,110,105,48, +52,65,68,7,117,110,105,48,52,65, +69,7,117,110,105,48,52,65,70,7, +117,110,105,48,52,66,48,7,117,110, +105,48,52,66,49,7,117,110,105,48, +52,66,50,7,117,110,105,48,52,66, +51,7,117,110,105,48,52,66,52,7, +117,110,105,48,52,66,53,7,117,110, +105,48,52,66,54,7,117,110,105,48, +52,66,55,7,117,110,105,48,52,66, +56,7,117,110,105,48,52,66,57,7, +117,110,105,48,52,66,65,7,117,110, +105,48,52,66,66,7,117,110,105,48, +52,66,67,7,117,110,105,48,52,66, +68,7,117,110,105,48,52,66,69,7, +117,110,105,48,52,66,70,11,117,110, +105,48,52,67,48,46,97,108,116,7, +117,110,105,48,52,67,49,7,117,110, +105,48,52,67,50,7,117,110,105,48, +52,67,51,7,117,110,105,48,52,67, +52,7,117,110,105,48,52,67,53,7, +117,110,105,48,52,67,54,7,117,110, +105,48,52,67,55,7,117,110,105,48, +52,67,56,7,117,110,105,48,52,67, +57,7,117,110,105,48,52,67,65,7, +117,110,105,48,52,67,66,7,117,110, +105,48,52,67,67,7,117,110,105,48, +52,67,68,7,117,110,105,48,52,67, +69,11,117,110,105,48,52,67,70,46, +97,108,116,7,117,110,105,48,52,68, +48,7,117,110,105,48,52,68,49,7, +117,110,105,48,52,68,50,7,117,110, +105,48,52,68,51,7,117,110,105,48, +52,68,52,7,117,110,105,48,52,68, +53,7,117,110,105,48,52,68,54,7, +117,110,105,48,52,68,55,7,117,110, +105,48,52,68,56,7,117,110,105,48, +52,68,57,7,117,110,105,48,52,68, +65,7,117,110,105,48,52,68,66,7, +117,110,105,48,52,68,67,7,117,110, +105,48,52,68,68,7,117,110,105,48, +52,68,69,7,117,110,105,48,52,68, +70,7,117,110,105,48,52,69,48,7, +117,110,105,48,52,69,49,7,117,110, +105,48,52,69,50,7,117,110,105,48, +52,69,51,7,117,110,105,48,52,69, +52,7,117,110,105,48,52,69,53,7, +117,110,105,48,52,69,54,7,117,110, +105,48,52,69,55,7,117,110,105,48, +52,69,56,7,117,110,105,48,52,69, +57,7,117,110,105,48,52,69,65,7, +117,110,105,48,52,69,66,7,117,110, +105,48,52,69,67,7,117,110,105,48, +52,69,68,7,117,110,105,48,52,69, +69,7,117,110,105,48,52,69,70,7, +117,110,105,48,52,70,48,7,117,110, +105,48,52,70,49,7,117,110,105,48, +52,70,50,7,117,110,105,48,52,70, +51,7,117,110,105,48,52,70,52,7, +117,110,105,48,52,70,53,7,117,110, +105,48,52,70,54,7,117,110,105,48, +52,70,55,7,117,110,105,48,52,70, +56,7,117,110,105,48,52,70,57,7, +117,110,105,48,52,70,65,7,117,110, +105,48,52,70,66,7,117,110,105,48, +52,70,67,7,117,110,105,48,52,70, +68,7,117,110,105,48,52,70,69,7, +117,110,105,48,52,70,70,7,117,110, +105,48,53,48,48,7,117,110,105,48, +53,48,49,7,117,110,105,48,53,48, +50,7,117,110,105,48,53,48,51,7, +117,110,105,48,53,48,52,7,117,110, +105,48,53,48,53,7,117,110,105,48, +53,48,54,7,117,110,105,48,53,48, +55,7,117,110,105,48,53,48,56,7, +117,110,105,48,53,48,57,7,117,110, +105,48,53,48,65,7,117,110,105,48, +53,48,66,7,117,110,105,48,53,48, +67,7,117,110,105,48,53,48,68,7, +117,110,105,48,53,48,69,7,117,110, +105,48,53,48,70,7,117,110,105,48, +53,49,48,7,117,110,105,48,53,49, +49,7,117,110,105,48,53,49,50,7, +117,110,105,48,53,49,51,7,117,110, +105,49,69,65,48,7,117,110,105,49, +69,65,49,7,117,110,105,49,69,65, +50,7,117,110,105,49,69,65,51,7, +117,110,105,49,69,65,52,7,117,110, +105,49,69,65,53,7,117,110,105,49, +69,65,54,7,117,110,105,49,69,65, +55,7,117,110,105,49,69,65,56,7, +117,110,105,49,69,65,57,7,117,110, +105,49,69,65,65,7,117,110,105,49, +69,65,66,7,117,110,105,49,69,65, +67,7,117,110,105,49,69,65,68,7, +117,110,105,49,69,65,69,7,117,110, +105,49,69,65,70,7,117,110,105,49, +69,66,48,7,117,110,105,49,69,66, +49,7,117,110,105,49,69,66,50,7, +117,110,105,49,69,66,51,7,117,110, +105,49,69,66,52,7,117,110,105,49, +69,66,53,7,117,110,105,49,69,66, +54,7,117,110,105,49,69,66,55,7, +117,110,105,49,69,66,56,7,117,110, +105,49,69,66,57,7,117,110,105,49, +69,66,65,7,117,110,105,49,69,66, +66,7,117,110,105,49,69,66,67,7, +117,110,105,49,69,66,68,7,117,110, +105,49,69,66,69,7,117,110,105,49, +69,66,70,7,117,110,105,49,69,67, +48,7,117,110,105,49,69,67,49,7, +117,110,105,49,69,67,50,7,117,110, +105,49,69,67,51,7,117,110,105,49, +69,67,52,7,117,110,105,49,69,67, +53,7,117,110,105,49,69,67,54,7, +117,110,105,49,69,67,55,11,117,110, +105,49,69,67,56,46,97,108,116,7, +117,110,105,49,69,67,57,11,117,110, +105,49,69,67,65,46,97,108,116,7, +117,110,105,49,69,67,66,7,117,110, +105,49,69,67,67,7,117,110,105,49, +69,67,68,7,117,110,105,49,69,67, +69,7,117,110,105,49,69,67,70,7, +117,110,105,49,69,68,48,7,117,110, +105,49,69,68,49,7,117,110,105,49, +69,68,50,7,117,110,105,49,69,68, +51,7,117,110,105,49,69,68,52,7, +117,110,105,49,69,68,53,7,117,110, +105,49,69,68,54,7,117,110,105,49, +69,68,55,7,117,110,105,49,69,68, +56,7,117,110,105,49,69,68,57,7, +117,110,105,49,69,68,65,7,117,110, +105,49,69,68,66,7,117,110,105,49, +69,68,67,7,117,110,105,49,69,68, +68,7,117,110,105,49,69,68,69,7, +117,110,105,49,69,68,70,7,117,110, +105,49,69,69,48,7,117,110,105,49, +69,69,49,7,117,110,105,49,69,69, +50,7,117,110,105,49,69,69,51,7, +117,110,105,49,69,69,52,7,117,110, +105,49,69,69,53,7,117,110,105,49, +69,69,54,7,117,110,105,49,69,69, +55,7,117,110,105,49,69,69,56,7, +117,110,105,49,69,69,57,7,117,110, +105,49,69,69,65,7,117,110,105,49, +69,69,66,7,117,110,105,49,69,69, +67,7,117,110,105,49,69,69,68,7, +117,110,105,49,69,69,69,7,117,110, +105,49,69,69,70,7,117,110,105,49, +69,70,48,7,117,110,105,49,69,70, +49,7,117,110,105,49,69,70,52,7, +117,110,105,49,69,70,53,7,117,110, +105,49,69,70,54,7,117,110,105,49, +69,70,55,7,117,110,105,49,69,70, +56,7,117,110,105,49,69,70,57,7, +117,110,105,50,48,65,66,7,117,110, +105,48,51,48,70,19,99,105,114,99, +117,109,102,108,101,120,97,99,117,116, +101,99,111,109,98,19,99,105,114,99, +117,109,102,108,101,120,103,114,97,118, +101,99,111,109,98,18,99,105,114,99, +117,109,102,108,101,120,104,111,111,107, +99,111,109,98,19,99,105,114,99,117, +109,102,108,101,120,116,105,108,100,101, +99,111,109,98,14,98,114,101,118,101, +97,99,117,116,101,99,111,109,98,14, +98,114,101,118,101,103,114,97,118,101, +99,111,109,98,13,98,114,101,118,101, +104,111,111,107,99,111,109,98,14,98, +114,101,118,101,116,105,108,100,101,99, +111,109,98,16,99,121,114,105,108,108, +105,99,104,111,111,107,108,101,102,116, +17,99,121,114,105,108,108,105,99,98, +105,103,104,111,111,107,85,67,17,99, +121,114,105,108,108,105,99,98,105,103, +104,111,111,107,76,67,8,111,110,101, +46,112,110,117,109,7,122,101,114,111, +46,111,115,6,111,110,101,46,111,115, +6,116,119,111,46,111,115,8,116,104, +114,101,101,46,111,115,7,102,111,117, +114,46,111,115,7,102,105,118,101,46, +111,115,6,115,105,120,46,111,115,8, +115,101,118,101,110,46,111,115,8,101, +105,103,104,116,46,111,115,7,110,105, +110,101,46,111,115,2,102,102,7,117, +110,105,50,49,50,48,8,84,99,101, +100,105,108,108,97,8,116,99,101,100, +105,108,108,97,5,103,46,97,108,116, +15,103,99,105,114,99,117,109,102,108, +101,120,46,97,108,116,10,103,98,114, +101,118,101,46,97,108,116,8,103,100, +111,116,46,97,108,116,16,103,99,111, +109,109,97,97,99,99,101,110,116,46, +97,108,116,1,73,6,73,103,114,97, +118,101,6,73,97,99,117,116,101,11, +73,99,105,114,99,117,109,102,108,101, +120,9,73,100,105,101,114,101,115,105, +115,6,73,116,105,108,100,101,7,73, +109,97,99,114,111,110,6,73,98,114, +101,118,101,7,73,111,103,111,110,101, +107,10,73,100,111,116,97,99,99,101, +110,116,2,73,74,9,73,111,116,97, +116,111,110,111,115,4,73,111,116,97, +12,73,111,116,97,100,105,101,114,101, +115,105,115,9,97,102,105,105,49,48, +48,53,53,9,97,102,105,105,49,48, +48,53,54,7,117,110,105,48,52,67, +48,7,117,110,105,48,52,67,70,7, +117,110,105,49,69,67,56,7,117,110, +105,49,69,67,65,0,0,1,0,3, +0,8,0,10,0,13,0,7,255,255, +0,15,0,1,0,0,0,12,0,0, +0,22,0,0,0,2,0,1,0,0, +3,169,0,1,0,4,0,0,0,1, +0,0,0,0,0,1,0,0,0,10, +0,52,0,54,0,1,108,97,116,110, +0,8,0,16,0,2,77,79,76,32, +0,22,82,79,77,32,0,28,0,0, +255,255,0,0,0,0,255,255,0,0, +0,0,255,255,0,0,0,0,0,0, +0,1,0,0,0,10,0,110,1,228, +0,1,108,97,116,110,0,8,0,16, +0,2,77,79,76,32,0,40,82,79, +77,32,0,66,0,0,255,255,0,9, +0,3,0,8,0,11,0,0,0,14, +0,17,0,20,0,23,0,26,0,0, +255,255,0,10,0,4,0,6,0,9, +0,12,0,1,0,15,0,18,0,21, +0,24,0,27,0,0,255,255,0,10, +0,5,0,7,0,10,0,13,0,2, +0,16,0,19,0,22,0,25,0,28, +0,29,108,105,103,97,0,176,108,105, +103,97,0,182,108,105,103,97,0,188, +108,110,117,109,0,194,108,110,117,109, +0,200,108,110,117,109,0,206,108,111, +99,108,0,212,108,111,99,108,0,218, +111,110,117,109,0,224,111,110,117,109, +0,232,111,110,117,109,0,240,112,110, +117,109,0,248,112,110,117,109,0,254, +112,110,117,109,1,4,115,97,108,116, +1,10,115,97,108,116,1,18,115,97, +108,116,1,26,115,115,48,49,1,34, +115,115,48,49,1,42,115,115,48,49, +1,50,115,115,48,50,1,58,115,115, +48,50,1,64,115,115,48,50,1,70, +115,115,48,51,1,76,115,115,48,51, +1,82,115,115,48,51,1,88,116,110, +117,109,1,94,116,110,117,109,1,102, +116,110,117,109,1,110,0,0,0,1, +0,9,0,0,0,1,0,9,0,0, +0,1,0,9,0,0,0,1,0,7, +0,0,0,1,0,7,0,0,0,1, +0,7,0,0,0,1,0,8,0,0, +0,1,0,8,0,0,0,2,0,2, +0,3,0,0,0,2,0,2,0,3, +0,0,0,2,0,2,0,3,0,0, +0,1,0,4,0,0,0,1,0,4, +0,0,0,1,0,4,0,0,0,2, +0,0,0,1,0,0,0,2,0,0, +0,1,0,0,0,2,0,0,0,1, +0,0,0,2,0,0,0,1,0,0, +0,2,0,0,0,1,0,0,0,2, +0,0,0,1,0,0,0,1,0,0, +0,0,0,1,0,0,0,0,0,1, +0,0,0,0,0,1,0,1,0,0, +0,1,0,1,0,0,0,1,0,1, +0,0,0,2,0,5,0,6,0,0, +0,2,0,5,0,6,0,0,0,2, +0,5,0,6,0,10,0,22,0,30, +0,38,0,46,0,54,0,62,0,70, +0,78,0,86,0,94,0,1,0,0, +0,1,0,80,0,1,0,0,0,1, +0,122,0,1,0,0,0,1,0,170, +0,1,0,0,0,1,0,198,0,1, +0,0,0,1,0,238,0,1,0,0, +0,1,0,244,0,1,0,0,0,1, +1,16,0,1,0,0,0,1,1,22, +0,1,0,0,0,1,1,50,0,4, +0,0,0,1,1,72,0,2,0,16, +0,5,3,145,3,146,3,147,3,148, +3,149,0,2,0,5,0,74,0,74, +0,0,0,223,0,223,0,1,0,225, +0,225,0,2,0,227,0,227,0,3, +0,229,0,229,0,4,0,2,0,46, +0,20,0,44,0,142,0,143,0,144, +0,145,0,234,0,236,0,238,0,240, +0,242,0,244,1,90,1,103,1,119, +1,161,1,162,2,201,2,216,3,69, +3,71,0,2,0,1,3,150,3,169, +0,0,0,2,0,26,0,10,3,131, +3,132,3,133,3,134,3,135,3,136, +3,137,3,138,3,139,3,140,0,2, +0,1,0,19,0,28,0,0,0,2, +0,26,0,10,3,131,3,133,3,134, +3,135,3,136,3,137,3,138,3,139, +3,140,3,132,0,2,0,3,0,19, +0,19,0,0,0,21,0,28,0,1, +3,130,3,130,0,9,0,2,0,8, +0,1,3,130,0,1,0,1,0,20, +0,2,0,26,0,10,0,19,0,20, +0,21,0,22,0,23,0,24,0,25, +0,26,0,27,0,28,0,2,0,1, +3,131,3,140,0,0,0,2,0,8, +0,1,0,20,0,1,0,1,3,130, +0,2,0,26,0,10,0,19,3,130, +0,21,0,22,0,23,0,24,0,25, +0,26,0,27,0,28,0,2,0,1, +3,131,3,140,0,0,0,2,0,14, +0,4,3,143,3,144,1,32,1,33, +0,2,0,2,1,36,1,37,0,0, +1,73,1,74,0,2,0,1,0,54, +0,1,0,8,0,5,0,12,0,20, +0,28,0,34,0,40,2,94,0,3, +0,73,0,79,2,93,0,3,0,73, +0,76,3,141,0,2,0,73,2,53, +0,2,0,79,2,52,0,2,0,76, +0,1,0,1,0,73,0,0,0,0, +0,1,0,1,0,1,0,0,0,1, +0,0,21,94,0,0,0,20,0,0, +0,0,0,0,21,86,48,130,21,82, +6,9,42,134,72,134,247,13,1,7, +2,160,130,21,67,48,130,21,63,2, +1,1,49,11,48,9,6,5,43,14, +3,2,26,5,0,48,97,6,10,43, +6,1,4,1,130,55,2,1,4,160, +83,48,81,48,44,6,10,43,6,1, +4,1,130,55,2,1,28,162,30,128, +28,0,60,0,60,0,60,0,79,0, +98,0,115,0,111,0,108,0,101,0, +116,0,101,0,62,0,62,0,62,48, +33,48,9,6,5,43,14,3,2,26, +5,0,4,20,130,184,185,128,143,217, +245,64,166,109,110,179,21,84,65,54, +153,222,211,125,160,130,17,93,48,130, +3,122,48,130,2,98,160,3,2,1, +2,2,16,56,37,215,250,248,97,175, +158,244,144,231,38,181,214,90,213,48, +13,6,9,42,134,72,134,247,13,1, +1,5,5,0,48,83,49,11,48,9, +6,3,85,4,6,19,2,85,83,49, +23,48,21,6,3,85,4,10,19,14, +86,101,114,105,83,105,103,110,44,32, +73,110,99,46,49,43,48,41,6,3, +85,4,3,19,34,86,101,114,105,83, +105,103,110,32,84,105,109,101,32,83, +116,97,109,112,105,110,103,32,83,101, +114,118,105,99,101,115,32,67,65,48, +30,23,13,48,55,48,54,49,53,48, +48,48,48,48,48,90,23,13,49,50, +48,54,49,52,50,51,53,57,53,57, +90,48,92,49,11,48,9,6,3,85, +4,6,19,2,85,83,49,23,48,21, +6,3,85,4,10,19,14,86,101,114, +105,83,105,103,110,44,32,73,110,99, +46,49,52,48,50,6,3,85,4,3, +19,43,86,101,114,105,83,105,103,110, +32,84,105,109,101,32,83,116,97,109, +112,105,110,103,32,83,101,114,118,105, +99,101,115,32,83,105,103,110,101,114, +32,45,32,71,50,48,129,159,48,13, +6,9,42,134,72,134,247,13,1,1, +1,5,0,3,129,141,0,48,129,137, +2,129,129,0,196,181,242,82,21,188, +136,134,96,41,22,74,91,47,75,145, +107,135,145,243,53,84,88,53,234,209, +54,94,98,77,82,81,52,113,194,123, +102,29,137,200,221,42,196,106,10,246, +55,217,152,116,145,246,146,174,176,181, +118,150,241,169,74,99,69,71,46,107, +11,146,78,75,43,140,238,88,74,139, +212,7,228,26,44,248,130,170,88,217, +205,66,243,45,192,117,222,141,171,199, +142,29,154,108,76,8,149,30,222,219, +239,103,225,114,194,73,194,158,96,60, +225,226,190,22,163,99,120,105,20,123, +173,45,2,3,1,0,1,163,129,196, +48,129,193,48,52,6,8,43,6,1, +5,5,7,1,1,4,40,48,38,48, +36,6,8,43,6,1,5,5,7,48, +1,134,24,104,116,116,112,58,47,47, +111,99,115,112,46,118,101,114,105,115, +105,103,110,46,99,111,109,48,12,6, +3,85,29,19,1,1,255,4,2,48, +0,48,51,6,3,85,29,31,4,44, +48,42,48,40,160,38,160,36,134,34, +104,116,116,112,58,47,47,99,114,108, +46,118,101,114,105,115,105,103,110,46, +99,111,109,47,116,115,115,45,99,97, +46,99,114,108,48,22,6,3,85,29, +37,1,1,255,4,12,48,10,6,8, +43,6,1,5,5,7,3,8,48,14, +6,3,85,29,15,1,1,255,4,4, +3,2,6,192,48,30,6,3,85,29, +17,4,23,48,21,164,19,48,17,49, +15,48,13,6,3,85,4,3,19,6, +84,83,65,49,45,50,48,13,6,9, +42,134,72,134,247,13,1,1,5,5, +0,3,130,1,1,0,80,197,75,200, +36,128,223,228,13,36,194,222,26,177, +161,2,161,166,130,45,12,131,21,129, +55,10,130,14,44,176,90,23,97,181, +216,5,254,136,219,241,145,145,179,86, +26,64,166,235,146,190,56,57,176,117, +54,116,58,152,79,228,55,186,153,137, +202,149,66,29,176,185,199,160,141,87, +224,250,213,100,4,66,53,78,1,209, +51,162,23,200,77,170,39,199,242,225, +134,76,2,56,77,131,120,198,252,83, +224,235,224,6,135,221,164,150,158,94, +12,152,226,165,190,191,130,133,195,96, +225,223,173,40,216,199,165,75,100,218, +199,27,91,189,172,57,8,213,56,34, +161,51,139,47,138,154,235,188,7,33, +63,68,65,9,7,181,101,28,36,188, +72,211,68,128,235,161,207,201,2,180, +20,207,84,199,22,163,128,92,249,121, +62,93,114,125,136,23,158,44,67,162, +202,83,206,125,61,246,42,58,184,79, +148,0,165,109,10,131,93,249,94,83, +244,24,179,87,15,112,195,251,245,173, +149,160,14,23,222,196,22,128,96,201, +15,43,110,134,4,241,235,244,120,39, +209,5,197,238,52,91,94,185,73,50, +242,51,48,130,3,196,48,130,3,45, +160,3,2,1,2,2,16,71,191,25, +149,223,141,82,70,67,247,219,109,72, +13,49,164,48,13,6,9,42,134,72, +134,247,13,1,1,5,5,0,48,129, +139,49,11,48,9,6,3,85,4,6, +19,2,90,65,49,21,48,19,6,3, +85,4,8,19,12,87,101,115,116,101, +114,110,32,67,97,112,101,49,20,48, +18,6,3,85,4,7,19,11,68,117, +114,98,97,110,118,105,108,108,101,49, +15,48,13,6,3,85,4,10,19,6, +84,104,97,119,116,101,49,29,48,27, +6,3,85,4,11,19,20,84,104,97, +119,116,101,32,67,101,114,116,105,102, +105,99,97,116,105,111,110,49,31,48, +29,6,3,85,4,3,19,22,84,104, +97,119,116,101,32,84,105,109,101,115, +116,97,109,112,105,110,103,32,67,65, +48,30,23,13,48,51,49,50,48,52, +48,48,48,48,48,48,90,23,13,49, +51,49,50,48,51,50,51,53,57,53, +57,90,48,83,49,11,48,9,6,3, +85,4,6,19,2,85,83,49,23,48, +21,6,3,85,4,10,19,14,86,101, +114,105,83,105,103,110,44,32,73,110, +99,46,49,43,48,41,6,3,85,4, +3,19,34,86,101,114,105,83,105,103, +110,32,84,105,109,101,32,83,116,97, +109,112,105,110,103,32,83,101,114,118, +105,99,101,115,32,67,65,48,130,1, +34,48,13,6,9,42,134,72,134,247, +13,1,1,1,5,0,3,130,1,15, +0,48,130,1,10,2,130,1,1,0, +169,202,178,164,204,205,32,175,10,125, +137,172,135,117,240,180,78,241,223,193, +15,191,103,97,189,163,100,28,218,187, +249,202,51,171,132,48,137,88,126,140, +219,107,221,54,158,15,191,209,236,120, +242,119,166,126,111,60,191,147,175,13, +186,104,244,108,148,202,189,82,45,171, +72,61,245,182,213,93,95,27,2,159, +250,47,107,30,164,247,163,154,166,26, +200,2,225,127,76,82,227,14,96,236, +64,28,126,185,13,222,63,199,180,223, +135,189,95,122,106,49,46,3,153,129, +19,168,71,32,206,49,115,13,87,45, +205,120,52,51,149,18,153,18,185,222, +104,47,170,230,227,194,138,140,42,195, +139,33,135,102,189,131,88,87,111,117, +191,60,170,38,135,93,202,16,21,60, +159,132,234,84,193,10,110,196,254,197, +74,221,185,7,17,151,34,124,219,62, +39,209,30,120,236,159,49,201,241,230, +34,25,219,196,179,71,67,154,26,95, +160,30,144,228,94,245,238,124,241,125, +171,98,1,143,245,77,11,222,208,34, +86,168,149,205,174,136,118,174,238,186, +13,243,228,77,217,160,251,104,160,174, +20,59,179,135,193,187,2,3,1,0, +1,163,129,219,48,129,216,48,52,6, +8,43,6,1,5,5,7,1,1,4, +40,48,38,48,36,6,8,43,6,1, +5,5,7,48,1,134,24,104,116,116, +112,58,47,47,111,99,115,112,46,118, +101,114,105,115,105,103,110,46,99,111, +109,48,18,6,3,85,29,19,1,1, +255,4,8,48,6,1,1,255,2,1, +0,48,65,6,3,85,29,31,4,58, +48,56,48,54,160,52,160,50,134,48, +104,116,116,112,58,47,47,99,114,108, +46,118,101,114,105,115,105,103,110,46, +99,111,109,47,84,104,97,119,116,101, +84,105,109,101,115,116,97,109,112,105, +110,103,67,65,46,99,114,108,48,19, +6,3,85,29,37,4,12,48,10,6, +8,43,6,1,5,5,7,3,8,48, +14,6,3,85,29,15,1,1,255,4, +4,3,2,1,6,48,36,6,3,85, +29,17,4,29,48,27,164,25,48,23, +49,21,48,19,6,3,85,4,3,19, +12,84,83,65,50,48,52,56,45,49, +45,53,51,48,13,6,9,42,134,72, +134,247,13,1,1,5,5,0,3,129, +129,0,74,107,249,234,88,194,68,28, +49,137,121,153,43,150,191,130,172,1, +214,28,76,205,176,138,88,110,223,8, +41,163,94,200,202,147,19,231,4,82, +13,239,71,39,47,0,56,176,228,201, +147,78,154,212,34,98,21,247,63,55, +33,79,112,49,128,241,139,56,135,179, +232,232,151,0,254,207,85,150,78,36, +210,169,39,78,122,174,183,97,65,243, +42,206,231,201,217,94,221,187,43,133, +62,181,157,181,217,225,87,255,190,180, +197,126,245,207,12,158,240,151,254,43, +211,59,82,27,27,56,39,247,63,74, +48,130,4,252,48,130,4,101,160,3, +2,1,2,2,16,101,82,38,225,178, +46,24,225,89,15,41,133,172,34,231, +92,48,13,6,9,42,134,72,134,247, +13,1,1,5,5,0,48,95,49,11, +48,9,6,3,85,4,6,19,2,85, +83,49,23,48,21,6,3,85,4,10, +19,14,86,101,114,105,83,105,103,110, +44,32,73,110,99,46,49,55,48,53, +6,3,85,4,11,19,46,67,108,97, +115,115,32,51,32,80,117,98,108,105, +99,32,80,114,105,109,97,114,121,32, +67,101,114,116,105,102,105,99,97,116, +105,111,110,32,65,117,116,104,111,114, +105,116,121,48,30,23,13,48,57,48, +53,50,49,48,48,48,48,48,48,90, +23,13,49,57,48,53,50,48,50,51, +53,57,53,57,90,48,129,182,49,11, +48,9,6,3,85,4,6,19,2,85, +83,49,23,48,21,6,3,85,4,10, +19,14,86,101,114,105,83,105,103,110, +44,32,73,110,99,46,49,31,48,29, +6,3,85,4,11,19,22,86,101,114, +105,83,105,103,110,32,84,114,117,115, +116,32,78,101,116,119,111,114,107,49, +59,48,57,6,3,85,4,11,19,50, +84,101,114,109,115,32,111,102,32,117, +115,101,32,97,116,32,104,116,116,112, +115,58,47,47,119,119,119,46,118,101, +114,105,115,105,103,110,46,99,111,109, +47,114,112,97,32,40,99,41,48,57, +49,48,48,46,6,3,85,4,3,19, +39,86,101,114,105,83,105,103,110,32, +67,108,97,115,115,32,51,32,67,111, +100,101,32,83,105,103,110,105,110,103, +32,50,48,48,57,45,50,32,67,65, +48,130,1,34,48,13,6,9,42,134, +72,134,247,13,1,1,1,5,0,3, +130,1,15,0,48,130,1,10,2,130, +1,1,0,190,103,29,180,96,170,16, +73,111,86,23,124,102,201,94,134,13, +213,241,172,167,113,131,142,139,137,248, +136,4,137,21,6,186,45,132,33,149, +228,209,156,80,76,251,210,34,189,218, +242,178,53,59,30,143,195,9,251,252, +19,46,90,191,137,124,61,59,37,30, +246,243,88,123,156,244,1,181,198,10, +184,128,206,190,39,116,97,103,39,77, +106,229,236,129,97,88,121,163,224,23, +16,18,21,39,176,225,77,52,127,43, +71,32,68,185,222,102,36,102,138,205, +79,186,31,197,56,200,84,144,225,114, +246,25,102,117,106,185,73,104,207,56, +121,13,170,48,168,219,44,96,72,158, +215,170,20,1,169,131,215,56,145,48, +57,19,150,3,58,124,64,84,182,173, +224,47,27,131,220,168,17,82,62,2, +179,215,43,253,33,182,167,92,163,15, +11,169,166,16,80,14,52,46,77,167, +206,201,94,37,212,140,188,243,110,124, +41,188,1,93,252,49,135,90,213,140, +133,103,88,136,25,160,191,53,240,234, +43,163,33,231,144,246,131,229,168,237, +96,120,94,123,96,131,253,87,11,93, +65,13,99,84,96,214,67,33,239,2, +3,1,0,1,163,130,1,219,48,130, +1,215,48,18,6,3,85,29,19,1, +1,255,4,8,48,6,1,1,255,2, +1,0,48,112,6,3,85,29,32,4, +105,48,103,48,101,6,11,96,134,72, +1,134,248,69,1,7,23,3,48,86, +48,40,6,8,43,6,1,5,5,7, +2,1,22,28,104,116,116,112,115,58, +47,47,119,119,119,46,118,101,114,105, +115,105,103,110,46,99,111,109,47,99, +112,115,48,42,6,8,43,6,1,5, +5,7,2,2,48,30,26,28,104,116, +116,112,115,58,47,47,119,119,119,46, +118,101,114,105,115,105,103,110,46,99, +111,109,47,114,112,97,48,14,6,3, +85,29,15,1,1,255,4,4,3,2, +1,6,48,109,6,8,43,6,1,5, +5,7,1,12,4,97,48,95,161,93, +160,91,48,89,48,87,48,85,22,9, +105,109,97,103,101,47,103,105,102,48, +33,48,31,48,7,6,5,43,14,3, +2,26,4,20,143,229,211,26,134,172, +141,142,107,195,207,128,106,212,72,24, +44,123,25,46,48,37,22,35,104,116, +116,112,58,47,47,108,111,103,111,46, +118,101,114,105,115,105,103,110,46,99, +111,109,47,118,115,108,111,103,111,46, +103,105,102,48,29,6,3,85,29,37, +4,22,48,20,6,8,43,6,1,5, +5,7,3,2,6,8,43,6,1,5, +5,7,3,3,48,52,6,8,43,6, +1,5,5,7,1,1,4,40,48,38, +48,36,6,8,43,6,1,5,5,7, +48,1,134,24,104,116,116,112,58,47, +47,111,99,115,112,46,118,101,114,105, +115,105,103,110,46,99,111,109,48,49, +6,3,85,29,31,4,42,48,40,48, +38,160,36,160,34,134,32,104,116,116, +112,58,47,47,99,114,108,46,118,101, +114,105,115,105,103,110,46,99,111,109, +47,112,99,97,51,46,99,114,108,48, +41,6,3,85,29,17,4,34,48,32, +164,30,48,28,49,26,48,24,6,3, +85,4,3,19,17,67,108,97,115,115, +51,67,65,50,48,52,56,45,49,45, +53,53,48,29,6,3,85,29,14,4, +22,4,20,151,208,107,168,38,112,200, +161,63,148,31,8,45,196,53,155,164, +161,30,242,48,13,6,9,42,134,72, +134,247,13,1,1,5,5,0,3,129, +129,0,139,3,192,221,148,216,65,162, +97,105,176,21,168,120,199,48,198,144, +60,126,66,247,36,182,228,131,115,23, +4,127,4,16,156,161,226,250,129,47, +235,192,202,68,231,114,224,80,182,85, +16,32,131,110,150,146,228,154,81,106, +180,55,49,220,165,45,235,140,0,199, +29,79,231,77,50,186,133,248,78,190, +250,103,85,101,240,106,190,122,202,100, +56,26,16,16,120,69,118,49,243,134, +122,3,15,96,194,179,93,157,246,139, +102,118,130,27,89,225,131,229,189,73, +165,56,86,229,222,65,119,14,88,15, +48,130,5,19,48,130,3,251,160,3, +2,1,2,2,16,102,227,240,103,121, +202,21,22,109,80,83,111,136,25,26, +131,48,13,6,9,42,134,72,134,247, +13,1,1,5,5,0,48,129,182,49, +11,48,9,6,3,85,4,6,19,2, +85,83,49,23,48,21,6,3,85,4, +10,19,14,86,101,114,105,83,105,103, +110,44,32,73,110,99,46,49,31,48, +29,6,3,85,4,11,19,22,86,101, +114,105,83,105,103,110,32,84,114,117, +115,116,32,78,101,116,119,111,114,107, +49,59,48,57,6,3,85,4,11,19, +50,84,101,114,109,115,32,111,102,32, +117,115,101,32,97,116,32,104,116,116, +112,115,58,47,47,119,119,119,46,118, +101,114,105,115,105,103,110,46,99,111, +109,47,114,112,97,32,40,99,41,48, +57,49,48,48,46,6,3,85,4,3, +19,39,86,101,114,105,83,105,103,110, +32,67,108,97,115,115,32,51,32,67, +111,100,101,32,83,105,103,110,105,110, +103,32,50,48,48,57,45,50,32,67, +65,48,30,23,13,49,48,48,55,50, +57,48,48,48,48,48,48,90,23,13, +49,50,48,56,48,56,50,51,53,57, +53,57,90,48,129,208,49,11,48,9, +6,3,85,4,6,19,2,85,83,49, +22,48,20,6,3,85,4,8,19,13, +77,97,115,115,97,99,104,117,115,101, +116,116,115,49,15,48,13,6,3,85, +4,7,19,6,87,111,98,117,114,110, +49,30,48,28,6,3,85,4,10,20, +21,77,111,110,111,116,121,112,101,32, +73,109,97,103,105,110,103,32,73,110, +99,46,49,62,48,60,6,3,85,4, +11,19,53,68,105,103,105,116,97,108, +32,73,68,32,67,108,97,115,115,32, +51,32,45,32,77,105,99,114,111,115, +111,102,116,32,83,111,102,116,119,97, +114,101,32,86,97,108,105,100,97,116, +105,111,110,32,118,50,49,24,48,22, +6,3,85,4,11,20,15,84,121,112, +101,32,79,112,101,114,97,116,105,111, +110,115,49,30,48,28,6,3,85,4, +3,20,21,77,111,110,111,116,121,112, +101,32,73,109,97,103,105,110,103,32, +73,110,99,46,48,129,159,48,13,6, +9,42,134,72,134,247,13,1,1,1, +5,0,3,129,141,0,48,129,137,2, +129,129,0,148,68,160,149,105,124,85, +13,208,219,22,141,50,53,138,76,51, +171,94,32,161,76,215,42,135,56,215, +152,165,64,240,25,73,11,34,30,83, +79,194,67,166,202,139,169,86,239,110, +72,6,168,5,21,57,30,99,59,36, +18,144,185,152,207,202,8,53,125,114, +227,71,87,253,121,203,138,74,231,64, +112,45,53,99,127,174,128,207,196,175, +216,251,247,201,252,137,216,215,164,160, +219,9,242,162,242,123,239,205,117,193, +247,101,80,100,34,157,189,125,188,173, +184,75,204,88,69,14,77,209,89,76, +77,2,3,1,0,1,163,130,1,131, +48,130,1,127,48,9,6,3,85,29, +19,4,2,48,0,48,14,6,3,85, +29,15,1,1,255,4,4,3,2,7, +128,48,68,6,3,85,29,31,4,61, +48,59,48,57,160,55,160,53,134,51, +104,116,116,112,58,47,47,99,115,99, +51,45,50,48,48,57,45,50,45,99, +114,108,46,118,101,114,105,115,105,103, +110,46,99,111,109,47,67,83,67,51, +45,50,48,48,57,45,50,46,99,114, +108,48,68,6,3,85,29,32,4,61, +48,59,48,57,6,11,96,134,72,1, +134,248,69,1,7,23,3,48,42,48, +40,6,8,43,6,1,5,5,7,2, +1,22,28,104,116,116,112,115,58,47, +47,119,119,119,46,118,101,114,105,115, +105,103,110,46,99,111,109,47,114,112, +97,48,19,6,3,85,29,37,4,12, +48,10,6,8,43,6,1,5,5,7, +3,3,48,117,6,8,43,6,1,5, +5,7,1,1,4,105,48,103,48,36, +6,8,43,6,1,5,5,7,48,1, +134,24,104,116,116,112,58,47,47,111, +99,115,112,46,118,101,114,105,115,105, +103,110,46,99,111,109,48,63,6,8, +43,6,1,5,5,7,48,2,134,51, +104,116,116,112,58,47,47,99,115,99, +51,45,50,48,48,57,45,50,45,97, +105,97,46,118,101,114,105,115,105,103, +110,46,99,111,109,47,67,83,67,51, +45,50,48,48,57,45,50,46,99,101, +114,48,31,6,3,85,29,35,4,24, +48,22,128,20,151,208,107,168,38,112, +200,161,63,148,31,8,45,196,53,155, +164,161,30,242,48,17,6,9,96,134, +72,1,134,248,66,1,1,4,4,3, +2,4,16,48,22,6,10,43,6,1, +4,1,130,55,2,1,27,4,8,48, +6,1,1,0,1,1,255,48,13,6, +9,42,134,72,134,247,13,1,1,5, +5,0,3,130,1,1,0,78,230,34, +135,223,103,65,21,23,226,210,238,126, +14,206,194,153,214,99,189,240,181,147, +229,106,114,98,225,245,210,60,56,238, +168,61,8,95,186,71,129,130,95,91, +75,73,244,29,32,250,15,147,9,208, +29,25,86,68,23,162,136,243,251,141, +157,174,247,13,53,222,60,12,172,68, +148,96,69,42,155,254,155,111,76,59, +177,52,103,112,16,134,255,90,57,92, +90,227,108,130,171,53,124,101,75,253, +152,109,181,21,148,73,156,136,112,16, +190,61,177,98,149,180,219,180,212,218, +232,157,65,144,126,254,125,185,164,146, +235,110,242,34,138,198,119,54,77,138, +90,11,83,5,49,211,43,40,175,82, +225,141,122,107,181,119,68,189,12,173, +244,93,37,44,227,205,138,48,62,75, +3,156,121,202,166,78,174,11,194,204, +36,7,11,193,148,130,246,16,241,186, +144,182,155,154,216,92,60,19,241,234, +2,6,24,39,77,60,137,111,51,138, +211,134,222,233,88,51,117,61,235,147, +105,226,68,111,78,0,108,207,213,133, +218,86,166,154,166,63,203,76,33,104, +144,242,96,186,225,232,6,93,57,33, +19,50,237,49,130,3,103,48,130,3, +99,2,1,1,48,129,203,48,129,182, +49,11,48,9,6,3,85,4,6,19, +2,85,83,49,23,48,21,6,3,85, +4,10,19,14,86,101,114,105,83,105, +103,110,44,32,73,110,99,46,49,31, +48,29,6,3,85,4,11,19,22,86, +101,114,105,83,105,103,110,32,84,114, +117,115,116,32,78,101,116,119,111,114, +107,49,59,48,57,6,3,85,4,11, +19,50,84,101,114,109,115,32,111,102, +32,117,115,101,32,97,116,32,104,116, +116,112,115,58,47,47,119,119,119,46, +118,101,114,105,115,105,103,110,46,99, +111,109,47,114,112,97,32,40,99,41, +48,57,49,48,48,46,6,3,85,4, +3,19,39,86,101,114,105,83,105,103, +110,32,67,108,97,115,115,32,51,32, +67,111,100,101,32,83,105,103,110,105, +110,103,32,50,48,48,57,45,50,32, +67,65,2,16,102,227,240,103,121,202, +21,22,109,80,83,111,136,25,26,131, +48,9,6,5,43,14,3,2,26,5, +0,160,112,48,16,6,10,43,6,1, +4,1,130,55,2,1,12,49,2,48, +0,48,25,6,9,42,134,72,134,247, +13,1,9,3,49,12,6,10,43,6, +1,4,1,130,55,2,1,4,48,28, +6,10,43,6,1,4,1,130,55,2, +1,11,49,14,48,12,6,10,43,6, +1,4,1,130,55,2,1,21,48,35, +6,9,42,134,72,134,247,13,1,9, +4,49,22,4,20,72,227,234,219,23, +99,143,198,177,21,87,39,32,183,101, +244,25,83,149,24,48,13,6,9,42, +134,72,134,247,13,1,1,1,5,0, +4,129,128,69,59,188,212,186,239,218, +27,191,98,59,222,18,236,74,6,132, +69,113,65,201,2,254,46,14,149,243, +137,177,82,244,65,235,109,50,44,72, +191,41,145,188,178,47,93,100,36,52, +46,186,150,180,182,74,115,151,224,246, +159,65,247,247,104,182,245,128,6,120, +65,190,83,144,192,126,120,82,91,28, +170,14,33,66,220,190,9,156,51,211, +70,80,144,59,5,153,16,43,89,105, +236,133,216,99,209,45,195,6,150,52, +237,20,163,156,242,241,84,64,213,71, +23,160,11,0,31,140,102,239,222,62, +27,161,130,1,127,48,130,1,123,6, +9,42,134,72,134,247,13,1,9,6, +49,130,1,108,48,130,1,104,2,1, +1,48,103,48,83,49,11,48,9,6, +3,85,4,6,19,2,85,83,49,23, +48,21,6,3,85,4,10,19,14,86, +101,114,105,83,105,103,110,44,32,73, +110,99,46,49,43,48,41,6,3,85, +4,3,19,34,86,101,114,105,83,105, +103,110,32,84,105,109,101,32,83,116, +97,109,112,105,110,103,32,83,101,114, +118,105,99,101,115,32,67,65,2,16, +56,37,215,250,248,97,175,158,244,144, +231,38,181,214,90,213,48,9,6,5, +43,14,3,2,26,5,0,160,93,48, +24,6,9,42,134,72,134,247,13,1, +9,3,49,11,6,9,42,134,72,134, +247,13,1,7,1,48,28,6,9,42, +134,72,134,247,13,1,9,5,49,15, +23,13,49,49,48,53,48,53,49,54, +53,53,49,48,90,48,35,6,9,42, +134,72,134,247,13,1,9,4,49,22, +4,20,84,23,8,43,11,189,238,26, +39,14,31,141,252,83,147,244,56,86, +16,15,48,13,6,9,42,134,72,134, +247,13,1,1,1,5,0,4,129,128, +29,193,119,137,174,155,111,34,227,107, +229,69,218,78,145,64,240,159,239,59, +31,39,74,86,172,58,253,168,148,106, +124,247,156,193,127,123,147,96,78,27, +196,43,87,149,148,203,22,225,154,103, +51,209,43,41,19,200,236,190,188,89, +177,3,164,41,153,236,29,136,153,36, +135,119,15,155,202,20,251,212,212,73, +76,116,14,200,61,46,111,32,201,3, +205,232,229,15,208,33,57,179,86,25, +213,251,172,189,172,169,56,189,176,213, +12,163,217,99,173,176,149,180,104,88, +195,226,215,41,255,145,164,199,0,0, + +}; \ No newline at end of file diff --git a/btgui/OpenGLWindow/OpenSans.ttf b/examples/OpenGLWindow/OpenSans.ttf similarity index 100% rename from btgui/OpenGLWindow/OpenSans.ttf rename to examples/OpenGLWindow/OpenSans.ttf diff --git a/btgui/OpenGLWindow/Shaders/createShadowMapInstancingPS.glsl b/examples/OpenGLWindow/Shaders/createShadowMapInstancingPS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/createShadowMapInstancingPS.glsl rename to examples/OpenGLWindow/Shaders/createShadowMapInstancingPS.glsl diff --git a/btgui/OpenGLWindow/Shaders/createShadowMapInstancingPS.h b/examples/OpenGLWindow/Shaders/createShadowMapInstancingPS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/createShadowMapInstancingPS.h rename to examples/OpenGLWindow/Shaders/createShadowMapInstancingPS.h diff --git a/btgui/OpenGLWindow/Shaders/createShadowMapInstancingVS.glsl b/examples/OpenGLWindow/Shaders/createShadowMapInstancingVS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/createShadowMapInstancingVS.glsl rename to examples/OpenGLWindow/Shaders/createShadowMapInstancingVS.glsl diff --git a/btgui/OpenGLWindow/Shaders/createShadowMapInstancingVS.h b/examples/OpenGLWindow/Shaders/createShadowMapInstancingVS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/createShadowMapInstancingVS.h rename to examples/OpenGLWindow/Shaders/createShadowMapInstancingVS.h diff --git a/btgui/OpenGLWindow/Shaders/instancingPS.glsl b/examples/OpenGLWindow/Shaders/instancingPS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/instancingPS.glsl rename to examples/OpenGLWindow/Shaders/instancingPS.glsl diff --git a/btgui/OpenGLWindow/Shaders/instancingPS.h b/examples/OpenGLWindow/Shaders/instancingPS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/instancingPS.h rename to examples/OpenGLWindow/Shaders/instancingPS.h diff --git a/btgui/OpenGLWindow/Shaders/instancingVS.glsl b/examples/OpenGLWindow/Shaders/instancingVS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/instancingVS.glsl rename to examples/OpenGLWindow/Shaders/instancingVS.glsl diff --git a/btgui/OpenGLWindow/Shaders/instancingVS.h b/examples/OpenGLWindow/Shaders/instancingVS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/instancingVS.h rename to examples/OpenGLWindow/Shaders/instancingVS.h diff --git a/btgui/OpenGLWindow/Shaders/linesPS.glsl b/examples/OpenGLWindow/Shaders/linesPS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/linesPS.glsl rename to examples/OpenGLWindow/Shaders/linesPS.glsl diff --git a/btgui/OpenGLWindow/Shaders/linesPS.h b/examples/OpenGLWindow/Shaders/linesPS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/linesPS.h rename to examples/OpenGLWindow/Shaders/linesPS.h diff --git a/btgui/OpenGLWindow/Shaders/linesVS.glsl b/examples/OpenGLWindow/Shaders/linesVS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/linesVS.glsl rename to examples/OpenGLWindow/Shaders/linesVS.glsl diff --git a/btgui/OpenGLWindow/Shaders/linesVS.h b/examples/OpenGLWindow/Shaders/linesVS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/linesVS.h rename to examples/OpenGLWindow/Shaders/linesVS.h diff --git a/btgui/OpenGLWindow/Shaders/pointSpritePS.glsl b/examples/OpenGLWindow/Shaders/pointSpritePS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/pointSpritePS.glsl rename to examples/OpenGLWindow/Shaders/pointSpritePS.glsl diff --git a/btgui/OpenGLWindow/Shaders/pointSpritePS.h b/examples/OpenGLWindow/Shaders/pointSpritePS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/pointSpritePS.h rename to examples/OpenGLWindow/Shaders/pointSpritePS.h diff --git a/btgui/OpenGLWindow/Shaders/pointSpriteVS.glsl b/examples/OpenGLWindow/Shaders/pointSpriteVS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/pointSpriteVS.glsl rename to examples/OpenGLWindow/Shaders/pointSpriteVS.glsl diff --git a/btgui/OpenGLWindow/Shaders/pointSpriteVS.h b/examples/OpenGLWindow/Shaders/pointSpriteVS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/pointSpriteVS.h rename to examples/OpenGLWindow/Shaders/pointSpriteVS.h diff --git a/btgui/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl rename to examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.glsl diff --git a/btgui/OpenGLWindow/Shaders/useShadowMapInstancingPS.h b/examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/useShadowMapInstancingPS.h rename to examples/OpenGLWindow/Shaders/useShadowMapInstancingPS.h diff --git a/btgui/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl similarity index 100% rename from btgui/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl rename to examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.glsl diff --git a/btgui/OpenGLWindow/Shaders/useShadowMapInstancingVS.h b/examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h similarity index 100% rename from btgui/OpenGLWindow/Shaders/useShadowMapInstancingVS.h rename to examples/OpenGLWindow/Shaders/useShadowMapInstancingVS.h diff --git a/btgui/OpenGLWindow/ShapeData.h b/examples/OpenGLWindow/ShapeData.h similarity index 100% rename from btgui/OpenGLWindow/ShapeData.h rename to examples/OpenGLWindow/ShapeData.h diff --git a/btgui/OpenGLWindow/SimpleCamera.cpp b/examples/OpenGLWindow/SimpleCamera.cpp similarity index 86% rename from btgui/OpenGLWindow/SimpleCamera.cpp rename to examples/OpenGLWindow/SimpleCamera.cpp index 46d7dd09c..a01f9499f 100644 --- a/btgui/OpenGLWindow/SimpleCamera.cpp +++ b/examples/OpenGLWindow/SimpleCamera.cpp @@ -1,4 +1,4 @@ -#include "OpenGLWindow/SimpleCamera.h" +#include "SimpleCamera.h" #include "Bullet3Common/b3Vector3.h" #include "Bullet3Common/b3Quaternion.h" @@ -149,6 +149,11 @@ void SimpleCamera::setCameraUpAxis(int upAxis) update(); } +int SimpleCamera::getCameraUpAxis() const +{ + return m_data->m_cameraUpAxis; +} + void SimpleCamera::update() { @@ -212,6 +217,21 @@ void SimpleCamera::getCameraViewMatrix(float viewMatrix[16]) const b3CreateLookAt(m_data->m_cameraPosition,m_data->m_cameraTargetPosition,m_data->m_cameraUp,viewMatrix); } +void SimpleCamera::getCameraTargetPosition(double pos[3]) const +{ + pos[0] =m_data->m_cameraTargetPosition[0]; + pos[1] =m_data->m_cameraTargetPosition[1]; + pos[2] =m_data->m_cameraTargetPosition[2]; +} + +void SimpleCamera::getCameraPosition(double pos[3]) const +{ + pos[0] =m_data->m_cameraPosition[0]; + pos[1] =m_data->m_cameraPosition[1]; + pos[2] =m_data->m_cameraPosition[2]; +} + + void SimpleCamera::getCameraTargetPosition(float pos[3]) const { pos[0] =m_data->m_cameraTargetPosition[0]; @@ -230,6 +250,11 @@ void SimpleCamera::setCameraTargetPosition(float x,float y,float z) m_data->m_cameraTargetPosition.setValue(x,y,z); update(); } +float SimpleCamera::getCameraDistance() const +{ + return m_data->m_cameraDistance; +} + void SimpleCamera::setCameraDistance(float dist) { m_data->m_cameraDistance = dist; @@ -241,12 +266,25 @@ void SimpleCamera::setCameraUpVector(float x,float y ,float z) update(); } +void SimpleCamera::getCameraUpVector(float up[3]) const +{ + up[0] = float(m_data->m_cameraUp[0]); + up[1] = float(m_data->m_cameraUp[1]); + up[2] = float(m_data->m_cameraUp[2]); +} + + void SimpleCamera::setCameraYaw(float yaw) { m_data->m_yaw = yaw; update(); } +float SimpleCamera::getCameraYaw() const +{ + return m_data->m_yaw; +} + void SimpleCamera::setCameraPitch(float pitch) { m_data->m_pitch = pitch; @@ -258,3 +296,12 @@ void SimpleCamera::setAspectRatio(float ratio) m_data->m_aspect = ratio; update(); } + +float SimpleCamera::getCameraPitch() const +{ + return m_data->m_pitch; +} +float SimpleCamera::getAspectRatio() const +{ + return m_data->m_aspect; +} diff --git a/btgui/OpenGLWindow/SimpleCamera.h b/examples/OpenGLWindow/SimpleCamera.h similarity index 68% rename from btgui/OpenGLWindow/SimpleCamera.h rename to examples/OpenGLWindow/SimpleCamera.h index 5506d884f..51a6c3c1b 100644 --- a/btgui/OpenGLWindow/SimpleCamera.h +++ b/examples/OpenGLWindow/SimpleCamera.h @@ -1,11 +1,7 @@ #ifndef SIMPLE_CAMERA_H #define SIMPLE_CAMERA_H -struct CommonCameraInterface -{ - virtual void getCameraProjectionMatrix(float m[16])const = 0; - virtual void getCameraViewMatrix(float m[16]) const = 0; -}; +#include "../CommonInterfaces/CommonCameraInterface.h" struct SimpleCamera : public CommonCameraInterface { @@ -21,16 +17,28 @@ struct SimpleCamera : public CommonCameraInterface virtual void getCameraTargetPosition(float pos[3]) const; virtual void getCameraPosition(float pos[3]) const; + virtual void getCameraTargetPosition(double pos[3]) const; + virtual void getCameraPosition(double pos[3]) const; + + virtual void setCameraTargetPosition(float x,float y,float z); virtual void setCameraDistance(float dist); + virtual float getCameraDistance() const; + virtual void setCameraUpVector(float x,float y, float z); + void getCameraUpVector(float up[3]) const; ///the setCameraUpAxis will call the 'setCameraUpVector' and 'setCameraForwardVector' virtual void setCameraUpAxis(int axis); - virtual void setCameraYaw(float yaw); - - virtual void setCameraPitch(float pitch); - virtual void setAspectRatio(float ratio); + virtual int getCameraUpAxis() const; + virtual void setCameraYaw(float yaw); + virtual float getCameraYaw() const; + + virtual void setCameraPitch(float pitch); + virtual float getCameraPitch() const; + + virtual void setAspectRatio(float ratio); + virtual float getAspectRatio() const; }; #endif //SIMPLE_CAMERA_H \ No newline at end of file diff --git a/btgui/OpenGLWindow/SimpleOpenGL2App.cpp b/examples/OpenGLWindow/SimpleOpenGL2App.cpp similarity index 77% rename from btgui/OpenGLWindow/SimpleOpenGL2App.cpp rename to examples/OpenGLWindow/SimpleOpenGL2App.cpp index 7730416f0..78dfa4f4b 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL2App.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL2App.cpp @@ -1,5 +1,5 @@ -#include "OpenGLWindow/SimpleOpenGL2App.h" -#include "OpenGLWindow/OpenGLInclude.h" +#include "SimpleOpenGL2App.h" +#include "OpenGLInclude.h" #include "Bullet3Common/b3Logging.h"//b3Assert? #include "Bullet3Common/b3Scalar.h" @@ -10,20 +10,60 @@ #include "stdlib.h" #ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" +#include "MacOpenGLWindow.h" #else -#include "OpenGLWindow/GlewWindows/GL/glew.h" + //#include "GL/glew.h" #ifdef _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" +#include "Win32OpenGLWindow.h" #else //let's cross the fingers it is Linux/X11 -#include "OpenGLWindow/X11OpenGLWindow.h" +#include "X11OpenGLWindow.h" #endif //_WIN32 #endif//__APPLE__ #include -#include "OpenGLWindow/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" + +static SimpleOpenGL2App* gApp2=0; + +static void Simple2ResizeCallback( float widthf, float heightf) +{ + int width = (int)widthf; + int height = (int)heightf; + if (gApp2->m_renderer) + gApp2->m_renderer->resize(width,height); + //gApp2->m_renderer->setScreenSize(width,height); + +} + +static void Simple2KeyboardCallback(int key, int state) +{ + if (key==B3G_ESCAPE && gApp2 && gApp2->m_window) + { + gApp2->m_window->setRequestExit(); + } else + { + //gApp2->defaultKeyboardCallback(key,state); + } +} + +void Simple2MouseButtonCallback( int button, int state, float x, float y) +{ + gApp2->defaultMouseButtonCallback(button,state,x,y); +} +void Simple2MouseMoveCallback( float x, float y) +{ + gApp2->defaultMouseMoveCallback(x,y); +} + +void Simple2WheelCallback( float deltax, float deltay) +{ + gApp2->defaultWheelCallback(deltax,deltay); +} + + + struct SimpleOpenGL2AppInternalData { @@ -32,6 +72,7 @@ struct SimpleOpenGL2AppInternalData SimpleOpenGL2App::SimpleOpenGL2App(const char* title, int width, int height) { + gApp2 = this; m_data = new SimpleOpenGL2AppInternalData; m_window = new b3gDefaultOpenGLWindow(); @@ -81,10 +122,17 @@ SimpleOpenGL2App::SimpleOpenGL2App(const char* title, int width, int height) //m_instancingRenderer->InitShaders(); + m_window->setMouseMoveCallback(Simple2MouseMoveCallback); + m_window->setMouseButtonCallback(Simple2MouseButtonCallback); + m_window->setKeyboardCallback(Simple2KeyboardCallback); + m_window->setWheelCallback(Simple2WheelCallback); + m_window->setResizeCallback(Simple2ResizeCallback); + } SimpleOpenGL2App::~SimpleOpenGL2App() { + gApp2 = 0; delete m_data; } diff --git a/btgui/OpenGLWindow/SimpleOpenGL2App.h b/examples/OpenGLWindow/SimpleOpenGL2App.h similarity index 94% rename from btgui/OpenGLWindow/SimpleOpenGL2App.h rename to examples/OpenGLWindow/SimpleOpenGL2App.h index 5393902c5..78d9dd0f0 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL2App.h +++ b/examples/OpenGLWindow/SimpleOpenGL2App.h @@ -1,7 +1,7 @@ #ifndef SIMPLE_OPENGL2_APP_H #define SIMPLE_OPENGL2_APP_H -#include "OpenGLWindow/CommonGraphicsApp.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" class SimpleOpenGL2App : public CommonGraphicsApp { diff --git a/btgui/OpenGLWindow/SimpleOpenGL2Renderer.cpp b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp similarity index 78% rename from btgui/OpenGLWindow/SimpleOpenGL2Renderer.cpp rename to examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp index 6016e57d0..a1108f8e4 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL2Renderer.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL2Renderer.cpp @@ -15,6 +15,19 @@ void SimpleOpenGL2Renderer::init() { } +const CommonCameraInterface* SimpleOpenGL2Renderer::getActiveCamera() const +{ + return &m_camera; +} +CommonCameraInterface* SimpleOpenGL2Renderer::getActiveCamera() +{ + return &m_camera; +} +void SimpleOpenGL2Renderer::setActiveCamera(CommonCameraInterface* cam) +{ + b3Assert(0);//not supported yet +} + void SimpleOpenGL2Renderer::updateCamera(int upAxis) { float projection[16]; @@ -43,56 +56,6 @@ void SimpleOpenGL2Renderer::removeAllInstances() { } -void SimpleOpenGL2Renderer::setCameraDistance(float dist) -{ - m_camera.setCameraDistance(dist); -} - -void SimpleOpenGL2Renderer::setCameraPitch(float pitch) -{ - m_camera.setCameraPitch(pitch); -} - -void SimpleOpenGL2Renderer::setCameraTargetPosition(float x, float y, float z) -{ - m_camera.setCameraTargetPosition(x,y,z); -} - -void SimpleOpenGL2Renderer::getCameraPosition(float cameraPos[4]) -{ - float pos[3]; - m_camera.getCameraPosition(pos); - cameraPos[0] = pos[0]; - cameraPos[1] = pos[1]; - cameraPos[2] = pos[2]; - -} - -void SimpleOpenGL2Renderer::getCameraPosition(double cameraPos[4]) -{ - float pos[3]; - m_camera.getCameraPosition(pos); - cameraPos[0] = pos[0]; - cameraPos[1] = pos[1]; - cameraPos[2] = pos[2]; -} - -void SimpleOpenGL2Renderer::setCameraTargetPosition(float cameraPos[4]) -{ - m_camera.setCameraTargetPosition(cameraPos[0],cameraPos[1],cameraPos[2]); -} - -void SimpleOpenGL2Renderer::getCameraTargetPosition(float cameraPos[4]) const -{ - m_camera.getCameraTargetPosition(cameraPos); -} - -void SimpleOpenGL2Renderer::getCameraTargetPosition(double cameraPos[4]) const -{ - cameraPos[0] = 1; - cameraPos[1] = 1; - cameraPos[2] = 1; -} void SimpleOpenGL2Renderer::writeSingleInstanceColorToCPU(float* color, int srcIndex) { diff --git a/btgui/OpenGLWindow/SimpleOpenGL2Renderer.h b/examples/OpenGLWindow/SimpleOpenGL2Renderer.h similarity index 81% rename from btgui/OpenGLWindow/SimpleOpenGL2Renderer.h rename to examples/OpenGLWindow/SimpleOpenGL2Renderer.h index f56e735cf..766d0a2e4 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL2Renderer.h +++ b/examples/OpenGLWindow/SimpleOpenGL2Renderer.h @@ -2,7 +2,7 @@ #ifndef SIMPLE_OPENGL2_RENDERER_H #define SIMPLE_OPENGL2_RENDERER_H -#include "CommonRenderInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" #include "SimpleCamera.h" struct SimpleOpenGL2Renderer : public CommonRenderInterface @@ -17,23 +17,18 @@ struct SimpleOpenGL2Renderer : public CommonRenderInterface virtual void updateCamera(int upAxis); + virtual const CommonCameraInterface* getActiveCamera() const; + virtual CommonCameraInterface* getActiveCamera(); + virtual void setActiveCamera(CommonCameraInterface* cam); + + virtual void resize(int width, int height) + { + m_width = width; + m_height = height; + } + virtual void removeAllInstances(); - virtual void setCameraDistance(float dist); - - virtual void setCameraPitch(float pitch); - - virtual void setCameraTargetPosition(float x, float y, float z); - - virtual void getCameraPosition(float cameraPos[4]); - - virtual void getCameraPosition(double cameraPos[4]); - - virtual void setCameraTargetPosition(float cameraPos[4]); - - virtual void getCameraTargetPosition(float cameraPos[4]) const; - - virtual void getCameraTargetPosition(double cameraPos[4]) const; virtual void writeSingleInstanceColorToCPU(float* color, int srcIndex); virtual void writeSingleInstanceColorToCPU(double* color, int srcIndex); diff --git a/btgui/OpenGLWindow/SimpleOpenGL3App.cpp b/examples/OpenGLWindow/SimpleOpenGL3App.cpp similarity index 95% rename from btgui/OpenGLWindow/SimpleOpenGL3App.cpp rename to examples/OpenGLWindow/SimpleOpenGL3App.cpp index e8df27f5e..4c5545f96 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL3App.cpp +++ b/examples/OpenGLWindow/SimpleOpenGL3App.cpp @@ -1,31 +1,31 @@ #include "SimpleOpenGL3App.h" #include "ShapeData.h" #ifdef __APPLE__ -#include "OpenGLWindow/MacOpenGLWindow.h" +#include "MacOpenGLWindow.h" #else -#include "OpenGLWindow/GlewWindows/GL/glew.h" -//#include "GL/glew.h" + + #ifdef _WIN32 -#include "OpenGLWindow/Win32OpenGLWindow.h" +#include "Win32OpenGLWindow.h" #else //let's cross the fingers it is Linux/X11 -#include "OpenGLWindow/X11OpenGLWindow.h" +#include "X11OpenGLWindow.h" #endif //_WIN32 #endif//__APPLE__ #include -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "OpenGLWindow/GLInstancingRenderer.h" +#include "GLPrimitiveRenderer.h" +#include "GLInstancingRenderer.h" #include "Bullet3Common/b3Vector3.h" #include "Bullet3Common/b3Logging.h" -#include "OpenGLWindow/fontstash.h" -#include "OpenGLWindow/TwFonts.h" -#include "OpenGLWindow/opengl_fontstashcallbacks.h" +#include "fontstash.h" +#include "TwFonts.h" +#include "opengl_fontstashcallbacks.h" #include -#include "OpenGLWindow/GLRenderToTexture.h" +#include "GLRenderToTexture.h" #include "Bullet3Common/b3Quaternion.h" #ifdef _WIN32 @@ -66,10 +66,24 @@ static void SimpleKeyboardCallback(int key, int state) gApp->m_window->setRequestExit(); } else { - b3DefaultKeyboardCallback(key,state); + //gApp->defaultKeyboardCallback(key,state); } } +void SimpleMouseButtonCallback( int button, int state, float x, float y) +{ + gApp->defaultMouseButtonCallback(button,state,x,y); +} +void SimpleMouseMoveCallback( float x, float y) +{ + gApp->defaultMouseMoveCallback(x,y); +} + +void SimpleWheelCallback( float deltax, float deltay) +{ + gApp->defaultWheelCallback(deltax,deltay); +} + @@ -94,7 +108,7 @@ static GLuint BindFont(const CTexFont *_Font) return TexID; } -extern char OpenSansData[]; +extern unsigned char OpenSansData[]; SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height) { @@ -152,10 +166,10 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height) m_instancingRenderer->InitShaders(); - m_window->setMouseMoveCallback(b3DefaultMouseMoveCallback); - m_window->setMouseButtonCallback(b3DefaultMouseButtonCallback); + m_window->setMouseMoveCallback(SimpleMouseMoveCallback); + m_window->setMouseButtonCallback(SimpleMouseButtonCallback); m_window->setKeyboardCallback(SimpleKeyboardCallback); - m_window->setWheelCallback(b3DefaultWheelCallback); + m_window->setWheelCallback(SimpleWheelCallback); m_window->setResizeCallback(SimpleResizeCallback); TwGenerateDefaultFonts(); @@ -179,7 +193,7 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height) } - char* data2 = OpenSansData; + unsigned char* data2 = OpenSansData; unsigned char* data = (unsigned char*) data2; if (!(m_data->m_droidRegular = sth_add_font_from_memory(m_data->m_fontStash, data))) { @@ -200,12 +214,14 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world float viewMat[16]; float projMat[16]; - m_instancingRenderer->getCameraViewMatrix(viewMat); - m_instancingRenderer->getCameraProjectionMatrix(projMat); + CommonCameraInterface* cam = m_instancingRenderer->getActiveCamera(); + + cam->getCameraViewMatrix(viewMat); + cam->getCameraProjectionMatrix(projMat); float camPos[4]; - this->m_instancingRenderer->getCameraPosition(camPos); + cam->getCameraPosition(camPos); b3Vector3 cp= b3MakeVector3(camPos[0],camPos[2],camPos[1]); b3Vector3 p = b3MakeVector3(worldPosX,worldPosY,worldPosZ); //float dist = (cp-p).length(); @@ -663,7 +679,7 @@ SimpleOpenGL3App::~SimpleOpenGL3App() } //#define STB_IMAGE_WRITE_IMPLEMENTATION -#include "OpenGLWindow/stb_image_write.h" +#include "stb_image_write.h" static void writeTextureToFile(int textureWidth, int textureHeight, const char* fileName, FILE* ffmpegVideo) { int numComponents = 4; diff --git a/btgui/OpenGLWindow/SimpleOpenGL3App.h b/examples/OpenGLWindow/SimpleOpenGL3App.h similarity index 84% rename from btgui/OpenGLWindow/SimpleOpenGL3App.h rename to examples/OpenGLWindow/SimpleOpenGL3App.h index 54bb0e0b1..ff9d323be 100644 --- a/btgui/OpenGLWindow/SimpleOpenGL3App.h +++ b/examples/OpenGLWindow/SimpleOpenGL3App.h @@ -1,11 +1,11 @@ #ifndef SIMPLE_OPENGL3_APP_H #define SIMPLE_OPENGL3_APP_H -#include "OpenGLWindow/GLInstancingRenderer.h" -#include "OpenGLWindow/GLPrimitiveRenderer.h" -#include "OpenGLWindow/b3gWindowInterface.h" +#include "../OpenGLWindow/GLInstancingRenderer.h" +#include "../OpenGLWindow/GLPrimitiveRenderer.h" +#include "../CommonInterfaces/CommonWindowInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" struct SimpleOpenGL3App : public CommonGraphicsApp diff --git a/btgui/OpenGLWindow/TwFonts.cpp b/examples/OpenGLWindow/TwFonts.cpp similarity index 100% rename from btgui/OpenGLWindow/TwFonts.cpp rename to examples/OpenGLWindow/TwFonts.cpp diff --git a/btgui/OpenGLWindow/TwFonts.h b/examples/OpenGLWindow/TwFonts.h similarity index 96% rename from btgui/OpenGLWindow/TwFonts.h rename to examples/OpenGLWindow/TwFonts.h index 801cf96a4..e64a69901 100644 --- a/btgui/OpenGLWindow/TwFonts.h +++ b/examples/OpenGLWindow/TwFonts.h @@ -1,67 +1,67 @@ -// --------------------------------------------------------------------------- -// -// @file TwFonts.h -// @brief Bitmaps fonts -// @author Philippe Decaudin - http://www.antisphere.com -// @license This file is part of the AntTweakBar library. -// For conditions of distribution and use, see License.txt -// -// note: Private header -// -// --------------------------------------------------------------------------- - - -#if !defined ANT_TW_FONTS_INCLUDED -#define ANT_TW_FONTS_INCLUDED - -//#include - -/* -A source bitmap includes 224 characters starting from ascii char 32 (i.e. space) to ascii char 255: - - !"#$%&'()*+,-./0123456789:;<=>? -@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ -`abcdefghijklmnopqrstuvwxyz{|}~ -€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ - ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ -ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß -àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ - -First column of a source bitmap is a delimiter with color=zero at the end of each line of characters. -Last row of a line of characters is a delimiter with color=zero at the last pixel of each character. - -*/ - - -struct CTexFont -{ - unsigned char * m_TexBytes; - int m_TexWidth; // power of 2 - int m_TexHeight; // power of 2 - float m_CharU0[256]; - float m_CharV0[256]; - float m_CharU1[256]; - float m_CharV1[256]; - int m_CharWidth[256]; - int m_CharHeight; - int m_NbCharRead; - - CTexFont(); - ~CTexFont(); -}; - - -CTexFont *TwGenerateFont(const unsigned char *_Bitmap, int _BmWidth, int _BmHeight); - - -extern CTexFont *g_DefaultSmallFont; -extern CTexFont *g_DefaultNormalFont; -extern CTexFont *g_DefaultNormalFontAA; -extern CTexFont *g_DefaultLargeFont; -extern CTexFont *g_DefaultFixed1Font; - -void TwGenerateDefaultFonts(); -void TwDeleteDefaultFonts(); - - -#endif // !defined ANT_TW_FONTS_INCLUDED +// --------------------------------------------------------------------------- +// +// @file TwFonts.h +// @brief Bitmaps fonts +// @author Philippe Decaudin - http://www.antisphere.com +// @license This file is part of the AntTweakBar library. +// For conditions of distribution and use, see License.txt +// +// note: Private header +// +// --------------------------------------------------------------------------- + + +#if !defined ANT_TW_FONTS_INCLUDED +#define ANT_TW_FONTS_INCLUDED + +//#include + +/* +A source bitmap includes 224 characters starting from ascii char 32 (i.e. space) to ascii char 255: + + !"#$%&'()*+,-./0123456789:;<=>? +@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +`abcdefghijklmnopqrstuvwxyz{|}~ +€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ + ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ +ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß +àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ + +First column of a source bitmap is a delimiter with color=zero at the end of each line of characters. +Last row of a line of characters is a delimiter with color=zero at the last pixel of each character. + +*/ + + +struct CTexFont +{ + unsigned char * m_TexBytes; + int m_TexWidth; // power of 2 + int m_TexHeight; // power of 2 + float m_CharU0[256]; + float m_CharV0[256]; + float m_CharU1[256]; + float m_CharV1[256]; + int m_CharWidth[256]; + int m_CharHeight; + int m_NbCharRead; + + CTexFont(); + ~CTexFont(); +}; + + +CTexFont *TwGenerateFont(const unsigned char *_Bitmap, int _BmWidth, int _BmHeight); + + +extern CTexFont *g_DefaultSmallFont; +extern CTexFont *g_DefaultNormalFont; +extern CTexFont *g_DefaultNormalFontAA; +extern CTexFont *g_DefaultLargeFont; +extern CTexFont *g_DefaultFixed1Font; + +void TwGenerateDefaultFonts(); +void TwDeleteDefaultFonts(); + + +#endif // !defined ANT_TW_FONTS_INCLUDED diff --git a/btgui/OpenGLWindow/Win32InternalWindowData.h b/examples/OpenGLWindow/Win32InternalWindowData.h similarity index 94% rename from btgui/OpenGLWindow/Win32InternalWindowData.h rename to examples/OpenGLWindow/Win32InternalWindowData.h index 9f4b2f376..a512bc763 100644 --- a/btgui/OpenGLWindow/Win32InternalWindowData.h +++ b/examples/OpenGLWindow/Win32InternalWindowData.h @@ -4,6 +4,7 @@ #include + struct InternalData2 { HWND m_hWnd;; @@ -26,6 +27,8 @@ struct InternalData2 int m_mouseXpos; int m_mouseYpos; + int m_internalKeyModifierFlags; + b3WheelCallback m_wheelCallback; b3MouseMoveCallback m_mouseMoveCallback; b3MouseButtonCallback m_mouseButtonCallback; @@ -40,7 +43,7 @@ struct InternalData2 m_mouseLButton=0; m_mouseRButton=0; m_mouseMButton=0; - + m_internalKeyModifierFlags = 0; m_fullWindowWidth = 0; m_fullWindowHeight= 0; m_openglViewportHeight=0; diff --git a/btgui/OpenGLWindow/Win32OpenGLWindow.cpp b/examples/OpenGLWindow/Win32OpenGLWindow.cpp similarity index 99% rename from btgui/OpenGLWindow/Win32OpenGLWindow.cpp rename to examples/OpenGLWindow/Win32OpenGLWindow.cpp index ce7ffa5a7..d52f1545b 100644 --- a/btgui/OpenGLWindow/Win32OpenGLWindow.cpp +++ b/examples/OpenGLWindow/Win32OpenGLWindow.cpp @@ -117,6 +117,7 @@ void Win32OpenGLWindow::closeWindow() } + void Win32OpenGLWindow::startRendering() { pumpMessage(); diff --git a/btgui/OpenGLWindow/Win32OpenGLWindow.h b/examples/OpenGLWindow/Win32OpenGLWindow.h similarity index 100% rename from btgui/OpenGLWindow/Win32OpenGLWindow.h rename to examples/OpenGLWindow/Win32OpenGLWindow.h diff --git a/btgui/OpenGLWindow/Win32Window.cpp b/examples/OpenGLWindow/Win32Window.cpp similarity index 92% rename from btgui/OpenGLWindow/Win32Window.cpp rename to examples/OpenGLWindow/Win32Window.cpp index d83f0b61d..5f3e9a2b3 100644 --- a/btgui/OpenGLWindow/Win32Window.cpp +++ b/examples/OpenGLWindow/Win32Window.cpp @@ -24,7 +24,12 @@ static InternalData2* sData = 0; #include "Win32InternalWindowData.h" - +enum +{ + INTERNAL_SHIFT_MODIFIER=1, + INTERNAL_ALT_MODIFIER=2, + INTERNAL_CONTROL_MODIFIER=4, +}; void Win32Window::pumpMessage() { @@ -108,6 +113,36 @@ int getAsciiCodeFromVirtualKeycode(int virtualKeyCode) return keycode; } +bool Win32Window::isModifierKeyPressed(int key) +{ + bool isPressed = false; + + switch (key) + { + case B3G_ALT: + { + isPressed = ((sData->m_internalKeyModifierFlags&INTERNAL_ALT_MODIFIER)!=0); + break; + }; + case B3G_SHIFT: + { + isPressed = ((sData->m_internalKeyModifierFlags&INTERNAL_SHIFT_MODIFIER)!=0); + break; + }; + case B3G_CONTROL: + { + isPressed = ((sData->m_internalKeyModifierFlags&INTERNAL_CONTROL_MODIFIER)!=0); + break; + }; + + default: + { + } + }; + return isPressed;//m_internalKeyModifierFlags +} + + LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { //printf("msg = %d\n", message); @@ -142,7 +177,24 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int keycode = getAsciiCodeFromVirtualKeycode(wParam); - + switch (keycode) + { + case B3G_ALT: + { + sData->m_internalKeyModifierFlags&=~INTERNAL_ALT_MODIFIER; + break; + }; + case B3G_SHIFT: + { + sData->m_internalKeyModifierFlags &= ~INTERNAL_SHIFT_MODIFIER; + break; + }; + case B3G_CONTROL: + { + sData->m_internalKeyModifierFlags &=~INTERNAL_CONTROL_MODIFIER; + break; + }; + } if (keycode>=0 && sData && sData->m_keyboardCallback ) { @@ -169,7 +221,24 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_KEYDOWN: { int keycode = getAsciiCodeFromVirtualKeycode(wParam); - + switch (keycode) + { + case B3G_ALT: + { + sData->m_internalKeyModifierFlags|=INTERNAL_ALT_MODIFIER; + break; + }; + case B3G_SHIFT: + { + sData->m_internalKeyModifierFlags |= INTERNAL_SHIFT_MODIFIER; + break; + }; + case B3G_CONTROL: + { + sData->m_internalKeyModifierFlags |=INTERNAL_CONTROL_MODIFIER; + break; + }; + } if (keycode>=0 && sData && sData->m_keyboardCallback)// && ((HIWORD(lParam) & KF_REPEAT) == 0)) { int state = 1; @@ -726,4 +795,4 @@ b3WheelCallback Win32Window::getWheelCallback() return m_data->m_wheelCallback; } - \ No newline at end of file + diff --git a/btgui/OpenGLWindow/Win32Window.h b/examples/OpenGLWindow/Win32Window.h similarity index 94% rename from btgui/OpenGLWindow/Win32Window.h rename to examples/OpenGLWindow/Win32Window.h index b7b5adae9..70681b3cd 100644 --- a/btgui/OpenGLWindow/Win32Window.h +++ b/examples/OpenGLWindow/Win32Window.h @@ -21,9 +21,9 @@ subject to the following restrictions: struct InternalData2; -#include "b3gWindowInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" -class Win32Window : public b3gWindowInterface +class Win32Window : public CommonWindowInterface { protected: @@ -79,6 +79,8 @@ public: virtual void setRenderCallback( b3RenderCallback renderCallback); virtual void setWindowTitle(const char* title); + + virtual bool isModifierKeyPressed(int key); }; #endif //_WIN32_WINDOW_H \ No newline at end of file diff --git a/btgui/OpenGLWindow/X11OpenGLWindow.cpp b/examples/OpenGLWindow/X11OpenGLWindow.cpp similarity index 94% rename from btgui/OpenGLWindow/X11OpenGLWindow.cpp rename to examples/OpenGLWindow/X11OpenGLWindow.cpp index 961863580..c191d9f35 100644 --- a/btgui/OpenGLWindow/X11OpenGLWindow.cpp +++ b/examples/OpenGLWindow/X11OpenGLWindow.cpp @@ -3,9 +3,14 @@ #include #include -#include "GlewWindows/GL/glew.h" +#ifdef GLEW_STATIC +#include "CustomGL/glew.h" +#else +#include +#endif//GLEW_STATIC + #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS -#include "GlewWindows/GL/glxew.h" +#include "CustomGL/glxew.h" #else #include #endif // GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS @@ -146,6 +151,14 @@ typedef Status (*PFNXGETWINDOWATTRIBUTES) (Display* a,Window b,XWindowAttributes #define MyXLookupKeysym XLookupKeysym #endif//DYNAMIC_LOAD_X11_FUNCTIONS + +enum +{ + MY_X11_ALT_KEY = 1, + MY_X11_SHIFT_KEY = 2, + MY_X11_CONTROL_KEY = 4 +}; + struct InternalData2 { Display* m_dpy; @@ -158,6 +171,7 @@ struct InternalData2 XWindowAttributes m_gwa; XEvent m_xev; GLXFBConfig m_bestFbc; + int m_modifierFlags; #ifdef DYNAMIC_LOAD_X11_FUNCTIONS //dynamically load stuff @@ -720,6 +734,35 @@ int X11OpenGLWindow::getAsciiCodeFromVirtualKeycode(int keycode) return result; } +bool X11OpenGLWindow::isModifierKeyPressed(int key) +{ + bool isPressed = false; + + switch (key) + { + case B3G_ALT: + { + isPressed = ((m_data->m_modifierFlags & MY_X11_ALT_KEY)!=0); + break; + }; + case B3G_SHIFT: + { + isPressed = ((m_data->m_modifierFlags & MY_X11_SHIFT_KEY)!=0); + break; + }; + case B3G_CONTROL: + { + isPressed = ((m_data->m_modifierFlags & MY_X11_CONTROL_KEY )!=0); + break; + }; + + default: + { + } + }; + return isPressed; +} + void X11OpenGLWindow::pumpMessage() { @@ -735,9 +778,24 @@ void X11OpenGLWindow::pumpMessage() { case KeyPress: { - if (m_data->m_keyboardCallback) - { int keycode = getAsciiCodeFromVirtualKeycode(m_data->m_xev.xkey.keycode); + switch (keycode) + { + case B3G_ALT: + m_data->m_modifierFlags |= MY_X11_ALT_KEY; + break; + case B3G_SHIFT: + m_data->m_modifierFlags |= MY_X11_SHIFT_KEY; + break; + case B3G_CONTROL: + m_data->m_modifierFlags |= MY_X11_CONTROL_KEY; + break; + default: + {} + }; + if (m_data->m_keyboardCallback) + { + int state = 1; (*m_data->m_keyboardCallback)(keycode,state); // printf("keycode %d",keycode); @@ -750,6 +808,21 @@ void X11OpenGLWindow::pumpMessage() case KeyRelease: { // fflush(stdout); + int keycode = getAsciiCodeFromVirtualKeycode( m_data->m_xev.xkey.keycode); + switch (keycode) + { + case B3G_ALT: + m_data->m_modifierFlags &= ~MY_X11_ALT_KEY; + break; + case B3G_SHIFT: + m_data->m_modifierFlags &= ~MY_X11_SHIFT_KEY; + break; + case B3G_CONTROL: + m_data->m_modifierFlags &= ~MY_X11_CONTROL_KEY; + break; + default: + {} + }; if (m_data->m_keyboardCallback) { @@ -774,7 +847,6 @@ void X11OpenGLWindow::pumpMessage() } } #endif - int keycode = getAsciiCodeFromVirtualKeycode( m_data->m_xev.xkey.keycode); int state = 0; (*m_data->m_keyboardCallback)(keycode,state); } diff --git a/btgui/OpenGLWindow/X11OpenGLWindow.h b/examples/OpenGLWindow/X11OpenGLWindow.h similarity index 92% rename from btgui/OpenGLWindow/X11OpenGLWindow.h rename to examples/OpenGLWindow/X11OpenGLWindow.h index 4d29a637d..fd8fc6127 100644 --- a/btgui/OpenGLWindow/X11OpenGLWindow.h +++ b/examples/OpenGLWindow/X11OpenGLWindow.h @@ -3,9 +3,9 @@ #define b3gDefaultOpenGLWindow X11OpenGLWindow -#include "b3gWindowInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" -class X11OpenGLWindow : public b3gWindowInterface +class X11OpenGLWindow : public CommonWindowInterface { struct InternalData2* m_data; @@ -47,6 +47,7 @@ public: virtual bool requestedExit() const; virtual void setRequestExit() ; + virtual bool isModifierKeyPressed(int key); virtual void setMouseMoveCallback(b3MouseMoveCallback mouseCallback); virtual void setMouseButtonCallback(b3MouseButtonCallback mouseCallback); diff --git a/btgui/OpenGLWindow/fontstash.cpp b/examples/OpenGLWindow/fontstash.cpp similarity index 100% rename from btgui/OpenGLWindow/fontstash.cpp rename to examples/OpenGLWindow/fontstash.cpp diff --git a/btgui/OpenGLWindow/fontstash.h b/examples/OpenGLWindow/fontstash.h similarity index 100% rename from btgui/OpenGLWindow/fontstash.h rename to examples/OpenGLWindow/fontstash.h diff --git a/btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp b/examples/OpenGLWindow/opengl_fontstashcallbacks.cpp similarity index 100% rename from btgui/OpenGLWindow/opengl_fontstashcallbacks.cpp rename to examples/OpenGLWindow/opengl_fontstashcallbacks.cpp diff --git a/btgui/OpenGLWindow/opengl_fontstashcallbacks.h b/examples/OpenGLWindow/opengl_fontstashcallbacks.h similarity index 100% rename from btgui/OpenGLWindow/opengl_fontstashcallbacks.h rename to examples/OpenGLWindow/opengl_fontstashcallbacks.h diff --git a/btgui/OpenGLWindow/premake4.lua b/examples/OpenGLWindow/premake4.lua similarity index 98% rename from btgui/OpenGLWindow/premake4.lua rename to examples/OpenGLWindow/premake4.lua index f2af4c31a..d70344f05 100644 --- a/btgui/OpenGLWindow/premake4.lua +++ b/examples/OpenGLWindow/premake4.lua @@ -9,7 +9,7 @@ initGlew() includedirs { - "..", + "../../src", } diff --git a/btgui/OpenGLWindow/stb_image_write.h b/examples/OpenGLWindow/stb_image_write.h similarity index 100% rename from btgui/OpenGLWindow/stb_image_write.h rename to examples/OpenGLWindow/stb_image_write.h diff --git a/btgui/OpenGLWindow/stb_truetype.h b/examples/OpenGLWindow/stb_truetype.h similarity index 100% rename from btgui/OpenGLWindow/stb_truetype.h rename to examples/OpenGLWindow/stb_truetype.h diff --git a/Demos/Box2dDemo/Box2dDemo.cpp b/examples/Planar2D/Planar2D.cpp similarity index 69% rename from Demos/Box2dDemo/Box2dDemo.cpp rename to examples/Planar2D/Planar2D.cpp index 69e0ed7af..c74c21744 100644 --- a/Demos/Box2dDemo/Box2dDemo.cpp +++ b/examples/Planar2D/Planar2D.cpp @@ -17,8 +17,6 @@ subject to the following restrictions: #include "BulletCollision/CollisionDispatch/btEmptyCollisionAlgorithm.h" #include "BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h" #include "BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h" -#include "GL_DialogDynamicsWorld.h" -#include "GL_DialogWindow.h" #include "BulletCollision/CollisionShapes/btBox2dShape.h" @@ -39,108 +37,74 @@ subject to the following restrictions: #define START_POS_Y -5 #define START_POS_Z -3 -#include "Box2dDemo.h" -#include "GlutStuff.h" +#include "Planar2D.h" + ///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. #include "btBulletDynamicsCommon.h" #include //printf debugging -void Box2dDemo::clientMoveAndDisplay() + +#include "LinearMath/btAlignedObjectArray.h" + +class btBroadphaseInterface; +class btCollisionShape; +class btOverlappingPairCache; +class btCollisionDispatcher; +class btConstraintSolver; +struct btCollisionAlgorithmCreateFunc; +class btDefaultCollisionConfiguration; +class GL_DialogDynamicsWorld; + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +class Planar2D : public CommonRigidBodyBase { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + //keep the collision shapes, for deletion/cleanup + btAlignedObjectArray m_collisionShapes; - //simple dynamics world doesn't handle fixed-time-stepping - float ms = getDeltaTimeMicroseconds(); - - ///step the simulation - if (m_dynamicsWorld) + btBroadphaseInterface* m_broadphase; + + btCollisionDispatcher* m_dispatcher; + + btConstraintSolver* m_solver; + + btDefaultCollisionConfiguration* m_collisionConfiguration; + + btConvex2dConvex2dAlgorithm::CreateFunc* m_convexAlgo2d; + btVoronoiSimplexSolver* m_simplexSolver; + btMinkowskiPenetrationDepthSolver* m_pdSolver; + btBox2dBox2dCollisionAlgorithm::CreateFunc* m_box2dbox2dAlgo; + public: + + Planar2D(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) { - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - //optional but useful: debug drawing - m_dynamicsWorld->debugDrawWorld(); } - - renderme(); - - if (m_dialogDynamicsWorld) - m_dialogDynamicsWorld->draw(ms / 1000000.f); - - glFlush(); - - swapBuffers(); - -} + virtual ~Planar2D() + { + exitPhysics(); + } + void initPhysics(); -void Box2dDemo::displayCallback(void) { + void exitPhysics(); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - if (m_dialogDynamicsWorld) - m_dialogDynamicsWorld->draw(0.f); - - glFlush(); - swapBuffers(); -} + + +}; -void Box2dDemo::reshape(int w, int h) -{ - if (m_dialogDynamicsWorld) - m_dialogDynamicsWorld->setScreenSize(w,h); - PlatformDemoApplication::reshape(w,h); -} -void Box2dDemo::initPhysics() +void Planar2D::initPhysics() { - m_dialogDynamicsWorld = new GL_DialogDynamicsWorld(); - - //m_dialogDynamicsWorld->createDialog(100,110,200,50); - //m_dialogDynamicsWorld->createDialog(100,00,100,100); - //m_dialogDynamicsWorld->createDialog(0,0,100,100); - GL_DialogWindow* settings = m_dialogDynamicsWorld->createDialog(50,0,200,120,"Settings"); - GL_ToggleControl* toggle = m_dialogDynamicsWorld->createToggle(settings,"Toggle 1"); - toggle = m_dialogDynamicsWorld->createToggle(settings,"Toggle 2"); - toggle ->m_active = true; - toggle = m_dialogDynamicsWorld->createToggle(settings,"Toggle 3"); - //GL_SliderControl* slider = m_dialogDynamicsWorld->createSlider(settings,"Slider"); - - GL_DialogWindow* dialog = m_dialogDynamicsWorld->createDialog(0,200,420,300,"Help"); - GL_TextControl* txt = new GL_TextControl; - dialog->addControl(txt); - txt->m_textLines.push_back("Mouse to move"); - txt->m_textLines.push_back("Test 2"); - txt->m_textLines.push_back("mouse to interact"); - txt->m_textLines.push_back("ALT + mouse to move camera"); - txt->m_textLines.push_back("space to reset"); - txt->m_textLines.push_back("cursor keys and z,x to navigate"); - txt->m_textLines.push_back("i to toggle simulation, s single step"); - txt->m_textLines.push_back("q to quit"); - txt->m_textLines.push_back(". to shoot box"); - txt->m_textLines.push_back("d to toggle deactivation"); - txt->m_textLines.push_back("g to toggle mesh animation (ConcaveDemo)"); - txt->m_textLines.push_back("h to toggle help text"); - txt->m_textLines.push_back("o to toggle orthogonal/perspective view"); - //txt->m_textLines.push_back("+- shooting speed = %10.2f",m_ShootBoxInitialSpeed); - - - - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(SCALING*50.)); - m_cameraTargetPosition.setValue(0,0,0);//0, ARRAY_SIZE_Y, 0); + m_guiHelper->setUpAxis(1); ///collision configuration contains default setup for memory, collision setup m_collisionConfiguration = new btDefaultCollisionConfiguration(); @@ -149,16 +113,17 @@ void Box2dDemo::initPhysics() ///use the default collision dispatcher. For parallel processing you can use a diffent dispatcher (see Extras/BulletMultiThreaded) m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); - btVoronoiSimplexSolver* simplex = new btVoronoiSimplexSolver(); - btMinkowskiPenetrationDepthSolver* pdSolver = new btMinkowskiPenetrationDepthSolver(); + m_simplexSolver = new btVoronoiSimplexSolver(); + m_pdSolver = new btMinkowskiPenetrationDepthSolver(); - btConvex2dConvex2dAlgorithm::CreateFunc* convexAlgo2d = new btConvex2dConvex2dAlgorithm::CreateFunc(simplex,pdSolver); - - m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,convexAlgo2d); - m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,new btBox2dBox2dCollisionAlgorithm::CreateFunc()); + m_convexAlgo2d = new btConvex2dConvex2dAlgorithm::CreateFunc(m_simplexSolver,m_pdSolver); + m_box2dbox2dAlgo = new btBox2dBox2dCollisionAlgorithm::CreateFunc(); + + m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,m_convexAlgo2d); + m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,CONVEX_2D_SHAPE_PROXYTYPE,m_convexAlgo2d); + m_dispatcher->registerCollisionCreateFunc(CONVEX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,m_convexAlgo2d); + m_dispatcher->registerCollisionCreateFunc(BOX_2D_SHAPE_PROXYTYPE,BOX_2D_SHAPE_PROXYTYPE,m_box2dbox2dAlgo); m_broadphase = new btDbvtBroadphase(); //m_broadphase = new btSimpleBroadphase(); @@ -170,7 +135,8 @@ void Box2dDemo::initPhysics() m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); //m_dynamicsWorld->getSolverInfo().m_erp = 1.f; //m_dynamicsWorld->getSolverInfo().m_numIterations = 4; - + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->setGravity(btVector3(0,-10,0)); @@ -300,15 +266,13 @@ void Box2dDemo::initPhysics() } - - clientResetScene(); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } - -void Box2dDemo::exitPhysics() + +void Planar2D::exitPhysics() { - delete m_dialogDynamicsWorld; - m_dialogDynamicsWorld = 0; + //cleanup in the reverse order of creation/initialization @@ -345,26 +309,23 @@ void Box2dDemo::exitPhysics() delete m_collisionConfiguration; + delete m_convexAlgo2d; + delete m_pdSolver; + delete m_simplexSolver; + delete m_box2dbox2dAlgo; + m_dynamicsWorld = 0; m_solver = 0; m_broadphase = 0; m_dispatcher = 0; m_collisionConfiguration = 0; - + m_convexAlgo2d=0; + m_pdSolver = 0; + m_simplexSolver = 0; + m_box2dbox2dAlgo = 0; } -void Box2dDemo::mouseFunc(int button, int state, int x, int y) +CommonExampleInterface* Planar2DCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) { - - if (!m_dialogDynamicsWorld->mouseFunc(button,state,x,y)) - { - DemoApplication::mouseFunc(button,state,x,y); - } + return new Planar2D(helper); } - -void Box2dDemo::mouseMotionFunc(int x,int y) -{ - m_dialogDynamicsWorld->mouseMotionFunc(x,y); - DemoApplication::mouseMotionFunc(x,y); -} - diff --git a/examples/Planar2D/Planar2D.h b/examples/Planar2D/Planar2D.h new file mode 100644 index 000000000..cdae4d6b4 --- /dev/null +++ b/examples/Planar2D/Planar2D.h @@ -0,0 +1,21 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ +#ifndef PLANAR2D_H +#define PLANAR2D_H + +class CommonExampleInterface* Planar2DCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //BOX2D_DEMO_H + diff --git a/Demos/RaytestDemo/RaytestDemo.cpp b/examples/Raycast/RaytestDemo.cpp similarity index 81% rename from Demos/RaytestDemo/RaytestDemo.cpp rename to examples/Raycast/RaytestDemo.cpp index d16fb1e02..ad27bc3d0 100644 --- a/Demos/RaytestDemo/RaytestDemo.cpp +++ b/examples/Raycast/RaytestDemo.cpp @@ -16,17 +16,45 @@ subject to the following restrictions: #include "RaytestDemo.h" -#include "GlutStuff.h" ///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. #include "btBulletDynamicsCommon.h" #include "BulletCollision/NarrowPhaseCollision/btRaycastCallback.h" #include "BulletCollision/Gimpact/btGImpactShape.h" #include //printf debugging -#include "GLDebugDrawer.h" -static GLDebugDrawer sDebugDraw; +#include "LinearMath/btAlignedObjectArray.h" + +///RaytestDemo shows how to use the btCollisionWorld::rayTest feature + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +class RaytestDemo : public CommonRigidBodyBase +{ + + +public: + + RaytestDemo(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) + { + } + virtual ~RaytestDemo() + { + } + virtual void initPhysics(); + + virtual void exitPhysics(); + + void castRays(); + + virtual void stepSimulation(float deltaTime); + + + +}; void RaytestDemo::castRays() { @@ -34,7 +62,7 @@ void RaytestDemo::castRays() static float up = 0.f; static float dir = 1.f; //add some simple animation - if (!m_idle) + //if (!m_idle) { up+=0.01*dir; @@ -65,10 +93,11 @@ void RaytestDemo::castRays() { btVector3 from(-30,1+up,0); btVector3 to(30,1,0); - sDebugDraw.drawLine(from,to,btVector4(0,0,0,1)); + m_dynamicsWorld->getDebugDrawer()->drawLine(from,to,btVector4(0,0,0,1)); btCollisionWorld::AllHitsRayResultCallback allResults(from,to); allResults.m_flags |= btTriangleRaycastCallback::kF_KeepUnflippedNormal; //kF_UseGjkConvexRaytest flag is now enabled by default, use the faster but more approximate algorithm + //allResults.m_flags |= btTriangleRaycastCallback::kF_UseSubSimplexConvexCastRaytest; allResults.m_flags |= btTriangleRaycastCallback::kF_UseSubSimplexConvexCastRaytest; m_dynamicsWorld->rayTest(from,to,allResults); @@ -76,7 +105,8 @@ void RaytestDemo::castRays() for (int i=0;igetDebugDrawer()->drawSphere(p,0.1,red); + m_dynamicsWorld->getDebugDrawer()->drawLine(p,p+allResults.m_hitNormalWorld[i],red); } } @@ -84,19 +114,19 @@ void RaytestDemo::castRays() { btVector3 from(-30,1.2,0); btVector3 to(30,1.2,0); - sDebugDraw.drawLine(from,to,btVector4(0,0,1,1)); + m_dynamicsWorld->getDebugDrawer()->drawLine(from,to,btVector4(0,0,1,1)); btCollisionWorld::ClosestRayResultCallback closestResults(from,to); closestResults.m_flags |= btTriangleRaycastCallback::kF_FilterBackfaces; - m_dynamicsWorld->rayTest(from,to,closestResults); + if (closestResults.hasHit()) { btVector3 p = from.lerp(to,closestResults.m_closestHitFraction); - sDebugDraw.drawSphere(p,0.1,blue); - sDebugDraw.drawLine(p,p+closestResults.m_hitNormalWorld,blue); + m_dynamicsWorld->getDebugDrawer()->drawSphere(p,0.1,blue); + m_dynamicsWorld->getDebugDrawer()->drawLine(p,p+closestResults.m_hitNormalWorld,blue); } } @@ -105,46 +135,10 @@ void RaytestDemo::castRays() } -void RaytestDemo::clientMoveAndDisplay() + void RaytestDemo::stepSimulation(float deltaTime) { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - castRays(); - - if (m_dynamicsWorld) - { - float ms = getDeltaTimeMicroseconds(); - m_dynamicsWorld->stepSimulation(ms / 1000000.f); - - m_dynamicsWorld->debugDrawWorld(); - } - - - - renderme(); - - glFlush(); - - swapBuffers(); - -} - - - -void RaytestDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - castRays(); - - renderme(); - - //optional but useful: debug drawing to detect problems - if (m_dynamicsWorld) - m_dynamicsWorld->debugDrawWorld(); - - glFlush(); - swapBuffers(); + CommonRigidBodyBase::stepSimulation(deltaTime); } @@ -153,14 +147,7 @@ void RaytestDemo::displayCallback(void) { void RaytestDemo::initPhysics() { - m_ele = 10; - m_azi = 75; - - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(20.)); - + ///collision configuration contains default setup for memory, collision setup m_collisionConfiguration = new btDefaultCollisionConfiguration(); //m_collisionConfiguration->setConvexConvexMultipointIterations(); @@ -175,7 +162,9 @@ void RaytestDemo::initPhysics() m_solver = sol; m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); - m_dynamicsWorld ->setDebugDrawer(&sDebugDraw); + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + + m_dynamicsWorld->setGravity(btVector3(0,-10,0)); ///create a few basic rigid bodies @@ -224,9 +213,9 @@ void RaytestDemo::initPhysics() mesh->addTriangle(quad[0],quad[1],quad[2],true); mesh->addTriangle(quad[0],quad[2],quad[3],true); - //btBvhTriangleMeshShape* trimesh = new btBvhTriangleMeshShape(mesh,true,true); - btGImpactMeshShape * trimesh = new btGImpactMeshShape(mesh); - trimesh->updateBound(); + btBvhTriangleMeshShape* trimesh = new btBvhTriangleMeshShape(mesh,true,true); + //btGImpactMeshShape * trimesh = new btGImpactMeshShape(mesh); + //trimesh->updateBound(); #define NUM_SHAPES 6 @@ -280,13 +269,10 @@ void RaytestDemo::initPhysics() } } -} -void RaytestDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); +} + void RaytestDemo::exitPhysics() { @@ -316,18 +302,25 @@ void RaytestDemo::exitPhysics() m_collisionShapes.clear(); delete m_dynamicsWorld; + m_dynamicsWorld = 0; delete m_solver; + m_solver = 0; delete m_broadphase; + m_broadphase = 0; delete m_dispatcher; - + m_dispatcher = 0; + delete m_collisionConfiguration; - + m_collisionConfiguration = 0; } - +class CommonExampleInterface* RaytestCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new RaytestDemo(helper); +} diff --git a/examples/Raycast/RaytestDemo.h b/examples/Raycast/RaytestDemo.h new file mode 100644 index 000000000..5d647379d --- /dev/null +++ b/examples/Raycast/RaytestDemo.h @@ -0,0 +1,22 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ +#ifndef BT_RAYTEST_DEMO_H +#define BT_RAYTEST_DEMO_H + +class CommonExampleInterface* RaytestCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //BT_RAYTEST_DEMO_H + diff --git a/Demos3/bullet2/BasicConcepts/CoordinateSystemDemo.h b/examples/RenderingExamples/CoordinateSystemDemo.cpp similarity index 88% rename from Demos3/bullet2/BasicConcepts/CoordinateSystemDemo.h rename to examples/RenderingExamples/CoordinateSystemDemo.cpp index 7c772aebb..ed8df0677 100644 --- a/Demos3/bullet2/BasicConcepts/CoordinateSystemDemo.h +++ b/examples/RenderingExamples/CoordinateSystemDemo.cpp @@ -1,12 +1,13 @@ -#ifndef COORDINATE_SYSTEM_DEMO_H -#define COORDINATE_SYSTEM_DEMO_H - -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" +#include "CoordinateSystemDemo.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "LinearMath/btTransform.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" ///quick demo showing the right-handed coordinate system and positive rotations around each axis -class CoordinateSystemDemo : public BulletDemoInterface +class CoordinateSystemDemo : public CommonExampleInterface { CommonGraphicsApp* m_app; float m_x; @@ -38,10 +39,7 @@ public: { m_app->m_renderer->enableBlend(false); } - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new CoordinateSystemDemo(app); - } + virtual void initPhysics() { @@ -142,5 +140,9 @@ public: } }; -#endif //COORDINATE_SYSTEM_DEMO_H + +struct CommonExampleInterface* CoordinateSystemCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new CoordinateSystemDemo(helper->getAppInterface()); +} diff --git a/examples/RenderingExamples/CoordinateSystemDemo.h b/examples/RenderingExamples/CoordinateSystemDemo.h new file mode 100644 index 000000000..8e3085c72 --- /dev/null +++ b/examples/RenderingExamples/CoordinateSystemDemo.h @@ -0,0 +1,8 @@ +#ifndef COORDINATE_SYSTEM_DEMO_H +#define COORDINATE_SYSTEM_DEMO_H + +class CommonExampleInterface* CoordinateSystemCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //COORDINATE_SYSTEM_DEMO_H + diff --git a/Demos/Raytracer/RaytracerSetup.cpp b/examples/RenderingExamples/RaytracerSetup.cpp similarity index 74% rename from Demos/Raytracer/RaytracerSetup.cpp rename to examples/RenderingExamples/RaytracerSetup.cpp index 6855ffc43..859f0f64a 100644 --- a/Demos/Raytracer/RaytracerSetup.cpp +++ b/examples/RenderingExamples/RaytracerSetup.cpp @@ -1,10 +1,62 @@ #include "RaytracerSetup.h" -#include "Bullet3AppSupport/Common2dCanvasInterface.h" + +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" +#include "Bullet3Common/b3Quaternion.h" +#include "Bullet3Common/b3AlignedObjectArray.h" +#include "../CommonInterfaces/CommonRenderInterface.h" + + +#include "../CommonInterfaces/Common2dCanvasInterface.h" //#include "BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h" #include "BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.h" //#include "BulletCollision/NarrowPhaseCollision/btGjkConvexCast.h" //#include "BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.h" +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "LinearMath/btAlignedObjectArray.h" +#include "btBulletCollisionCommon.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" + +struct RaytracerPhysicsSetup : public CommonExampleInterface +{ + + struct CommonGraphicsApp* m_app; + struct RaytracerInternalData* m_internalData; + + RaytracerPhysicsSetup(struct CommonGraphicsApp* app); + + virtual ~RaytracerPhysicsSetup(); + + virtual void initPhysics(); + + virtual void exitPhysics(); + + virtual void stepSimulation(float deltaTime); + + + virtual void physicsDebugDraw(int debugFlags); + + virtual void syncPhysicsToGraphics(struct GraphicsPhysicsBridge& gfxBridge); + + ///worldRaytest performs a ray versus all objects in a collision world, returning true is a hit is found (filling in worldNormal and worldHitPoint) + bool worldRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); + + ///singleObjectRaytest performs a ray versus one collision shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) + bool singleObjectRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); + + ///lowlevelRaytest performs a ray versus convex shape, returning true is a hit is found (filling in worldNormal and worldHitPoint) + bool lowlevelRaytest(const btVector3& rayFrom,const btVector3& rayTo,btVector3& worldNormal,btVector3& worldHitPoint); + + virtual bool mouseMoveCallback(float x,float y); + + virtual bool mouseButtonCallback(int button, int state, float x, float y); + + virtual bool keyboardCallback(int key, int state); + + virtual void renderScene() + { + } +}; struct RaytracerInternalData { @@ -27,8 +79,13 @@ struct RaytracerInternalData m_roll(0), m_pitch(0), m_yaw(0), +#ifdef _DEBUG + m_width(64), + m_height(64) +#else m_width(128), m_height(128) +#endif { btConeShape* cone = new btConeShape(1,1); btSphereShape* sphere = new btSphereShape(1); @@ -62,8 +119,9 @@ struct RaytracerInternalData }; -RaytracerPhysicsSetup::RaytracerPhysicsSetup() +RaytracerPhysicsSetup::RaytracerPhysicsSetup(struct CommonGraphicsApp* app) { + m_app = app; m_internalData = new RaytracerInternalData; } @@ -72,13 +130,13 @@ RaytracerPhysicsSetup::~RaytracerPhysicsSetup() delete m_internalData; } -void RaytracerPhysicsSetup::initPhysics(GraphicsPhysicsBridge& gfxBridge) +void RaytracerPhysicsSetup::initPhysics() { //request a visual bitma/texture we can render to - m_internalData->m_canvas = gfxBridge.get2dCanvasInterface(); + m_internalData->m_canvas = m_app->m_2dCanvasInterface; if (m_internalData->m_canvas) @@ -296,23 +354,31 @@ void RaytracerPhysicsSetup::stepSimulation(float deltaTime) } -void RaytracerPhysicsSetup::debugDraw(int debugDrawFlags) +void RaytracerPhysicsSetup::physicsDebugDraw(int debugDrawFlags) { } -bool RaytracerPhysicsSetup::pickBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) +bool RaytracerPhysicsSetup::mouseMoveCallback(float x,float y) { return false; } -bool RaytracerPhysicsSetup::movePickedBody(const btVector3& rayFromWorld, const btVector3& rayToWorld) + +bool RaytracerPhysicsSetup::mouseButtonCallback(int button, int state, float x, float y) { return false; } -void RaytracerPhysicsSetup::removePickingConstraint() + +bool RaytracerPhysicsSetup::keyboardCallback(int key, int state) { + return false; } void RaytracerPhysicsSetup::syncPhysicsToGraphics(GraphicsPhysicsBridge& gfxBridge) { -} \ No newline at end of file +} + + CommonExampleInterface* RayTracerCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) + { + return new RaytracerPhysicsSetup(helper->getAppInterface()); + } diff --git a/examples/RenderingExamples/RaytracerSetup.h b/examples/RenderingExamples/RaytracerSetup.h new file mode 100644 index 000000000..f3692af33 --- /dev/null +++ b/examples/RenderingExamples/RaytracerSetup.h @@ -0,0 +1,6 @@ +#ifndef RAYTRACER_SETUP_H +#define RAYTRACER_SETUP_H + +class CommonExampleInterface* RayTracerCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //RAYTRACER_SETUP_H diff --git a/Demos3/Geometry/RenderInstancingDemo.h b/examples/RenderingExamples/RenderInstancingDemo.cpp similarity index 84% rename from Demos3/Geometry/RenderInstancingDemo.h rename to examples/RenderingExamples/RenderInstancingDemo.cpp index 454d35510..61d0d37cc 100644 --- a/Demos3/Geometry/RenderInstancingDemo.h +++ b/examples/RenderingExamples/RenderInstancingDemo.cpp @@ -1,14 +1,16 @@ #ifndef RENDER_INSTANCING_DEMO_H #define RENDER_INSTANCING_DEMO_H -#include "Bullet3AppSupport/BulletDemoInterface.h" -#include "OpenGLWindow/CommonGraphicsApp.h" + +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" #include "Bullet3Common/b3Quaternion.h" - - +#include "Bullet3Common/b3AlignedObjectArray.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" ///quick demo showing the right-handed coordinate system and positive rotations around each axis -class RenderInstancingDemo : public BulletDemoInterface +class RenderInstancingDemo : public CommonExampleInterface { CommonGraphicsApp* m_app; float m_x; @@ -69,10 +71,7 @@ public: m_app->m_renderer->enableBlend(false); } - static BulletDemoInterface* CreateFunc(CommonGraphicsApp* app) - { - return new RenderInstancingDemo(app); - } + virtual void physicsDebugDraw(int debugDrawMode) { @@ -127,5 +126,13 @@ public: } }; + + +class CommonExampleInterface* RenderInstancingCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new RenderInstancingDemo(helper->getAppInterface()); +} + #endif //RENDER_INSTANCING_DEMO_H + diff --git a/examples/RenderingExamples/RenderInstancingDemo.h b/examples/RenderingExamples/RenderInstancingDemo.h new file mode 100644 index 000000000..e71136c22 --- /dev/null +++ b/examples/RenderingExamples/RenderInstancingDemo.h @@ -0,0 +1,6 @@ +#ifndef RENDER_INSTANCING_DEMO_H +#define RENDER_INSTANCING_DEMO_H + +class CommonExampleInterface* RenderInstancingCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif //RENDER_INSTANCING_DEMO_H diff --git a/Demos3/SimpleOpenGL3/CMakeLists.txt b/examples/SimpleOpenGL3/CMakeLists.txt similarity index 100% rename from Demos3/SimpleOpenGL3/CMakeLists.txt rename to examples/SimpleOpenGL3/CMakeLists.txt diff --git a/Demos3/SimpleOpenGL3/main.cpp b/examples/SimpleOpenGL3/main.cpp similarity index 100% rename from Demos3/SimpleOpenGL3/main.cpp rename to examples/SimpleOpenGL3/main.cpp diff --git a/Demos3/SimpleOpenGL3/premake4.lua b/examples/SimpleOpenGL3/premake4.lua similarity index 92% rename from Demos3/SimpleOpenGL3/premake4.lua rename to examples/SimpleOpenGL3/premake4.lua index bc35d9a4e..4bd8bbdda 100644 --- a/Demos3/SimpleOpenGL3/premake4.lua +++ b/examples/SimpleOpenGL3/premake4.lua @@ -8,7 +8,7 @@ includedirs { ".", "../../src", - "../../btgui" + ".." } diff --git a/Demos/GimpactTestDemo/BunnyMesh.h b/examples/SoftDemo/BunnyMesh.h similarity index 100% rename from Demos/GimpactTestDemo/BunnyMesh.h rename to examples/SoftDemo/BunnyMesh.h diff --git a/Demos/SoftDemo/SoftDemo.cpp b/examples/SoftDemo/SoftDemo.cpp similarity index 89% rename from Demos/SoftDemo/SoftDemo.cpp rename to examples/SoftDemo/SoftDemo.cpp index 1928b36bf..67ee63d6e 100644 --- a/Demos/SoftDemo/SoftDemo.cpp +++ b/examples/SoftDemo/SoftDemo.cpp @@ -24,8 +24,8 @@ subject to the following restrictions: #include "LinearMath/btQuickprof.h" #include "LinearMath/btIDebugDraw.h" -#include "../GimpactTestDemo/BunnyMesh.h" -#include "../GimpactTestDemo/TorusMesh.h" +#include "BunnyMesh.h" +#include "TorusMesh.h" #include //printf debugging #include "LinearMath/btConvexHull.h" #include "BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h" @@ -33,8 +33,174 @@ subject to the following restrictions: #include "SoftDemo.h" #include "GL_ShapeDrawer.h" -#include "GLDebugFont.h" -#include "GlutStuff.h" + + +#include "LinearMath/btAlignedObjectArray.h" +#include "BulletSoftBody/btSoftBody.h" + + +class btBroadphaseInterface; +class btCollisionShape; +class btOverlappingPairCache; +class btCollisionDispatcher; +class btConstraintSolver; +struct btCollisionAlgorithmCreateFunc; +class btDefaultCollisionConfiguration; + +///collisions between two btSoftBody's +class btSoftSoftCollisionAlgorithm; + +///collisions between a btSoftBody and a btRigidBody +class btSoftRididCollisionAlgorithm; +class btSoftRigidDynamicsWorld; + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +class SoftDemo : public CommonRigidBodyBase +{ +public: + + btAlignedObjectArray m_SoftSoftCollisionAlgorithms; + + btAlignedObjectArray m_SoftRigidCollisionAlgorithms; + + btSoftBodyWorldInfo m_softBodyWorldInfo; + + + + bool m_autocam; + bool m_cutting; + bool m_raycast; + btScalar m_animtime; + btClock m_clock; + int m_lastmousepos[2]; + btVector3 m_impact; + btSoftBody::sRayCast m_results; + btSoftBody::Node* m_node; + btVector3 m_goal; + bool m_drag; + + + //keep the collision shapes, for deletion/cleanup + btAlignedObjectArray m_collisionShapes; + + btBroadphaseInterface* m_broadphase; + + btCollisionDispatcher* m_dispatcher; + + + btConstraintSolver* m_solver; + + btCollisionAlgorithmCreateFunc* m_boxBoxCF; + + btDefaultCollisionConfiguration* m_collisionConfiguration; + + +public: + + void initPhysics(); + + void exitPhysics(); + + SoftDemo(struct GUIHelperInterface* helper) + : CommonRigidBodyBase(helper), + m_drag(false) + + { + + } + virtual ~SoftDemo() + { + btAssert(m_dynamicsWorld==0); + } + + //virtual void clientMoveAndDisplay(); + + //virtual void displayCallback(); + + void createStack( btCollisionShape* boxShape, float halfCubeSize, int size, float zPos ); + + + + virtual void setDrawClusters(bool drawClusters); + + virtual const btSoftRigidDynamicsWorld* getSoftDynamicsWorld() const + { + ///just make it a btSoftRigidDynamicsWorld please + ///or we will add type checking + return (btSoftRigidDynamicsWorld*) m_dynamicsWorld; + } + + virtual btSoftRigidDynamicsWorld* getSoftDynamicsWorld() + { + ///just make it a btSoftRigidDynamicsWorld please + ///or we will add type checking + return (btSoftRigidDynamicsWorld*) m_dynamicsWorld; + } + + // + //void clientResetScene(); + void renderme(); + void keyboardCallback(unsigned char key, int x, int y); + void mouseFunc(int button, int state, int x, int y); + void mouseMotionFunc(int x,int y); + + GUIHelperInterface* getGUIHelper() + { + return m_guiHelper; + } +}; + + +#define MACRO_SOFT_DEMO(a) class SoftDemo##a : public SoftDemo\ +{\ +public:\ + static DemoApplication* Create()\ + {\ + SoftDemo* demo = new SoftDemo##a;\ + extern int current_demo;\ + current_demo=a;\ + demo->initPhysics();\ + return demo;\ + }\ +}; + + + +//MACRO_SOFT_DEMO(0) //Init_Cloth +#if 0 +MACRO_SOFT_DEMO(1) //Init_Pressure +MACRO_SOFT_DEMO(2)//Init_Volume +MACRO_SOFT_DEMO(3)//Init_Ropes +MACRO_SOFT_DEMO(4)//Init_Ropes_Attach +MACRO_SOFT_DEMO(5)//Init_ClothAttach +MACRO_SOFT_DEMO(6)//Init_Sticks +MACRO_SOFT_DEMO(7)//Init_Collide +MACRO_SOFT_DEMO(8)//Init_Collide2 +MACRO_SOFT_DEMO(9)//Init_Collide3 +MACRO_SOFT_DEMO(10)//Init_Impact +MACRO_SOFT_DEMO(11)//Init_Aero +MACRO_SOFT_DEMO(12)//Init_Friction +MACRO_SOFT_DEMO(13)//Init_Torus +MACRO_SOFT_DEMO(14)//Init_TorusMatch +MACRO_SOFT_DEMO(15)//Init_Bunny +MACRO_SOFT_DEMO(16)//Init_BunnyMatch +MACRO_SOFT_DEMO(17)//Init_Cutting1 +MACRO_SOFT_DEMO(18)//Init_ClusterDeform +MACRO_SOFT_DEMO(19)//Init_ClusterCollide1 +MACRO_SOFT_DEMO(20)//Init_ClusterCollide2 +MACRO_SOFT_DEMO(21)//Init_ClusterSocket +MACRO_SOFT_DEMO(22)//Init_ClusterHinge +MACRO_SOFT_DEMO(23)//Init_ClusterCombine +MACRO_SOFT_DEMO(24)//Init_ClusterCar +MACRO_SOFT_DEMO(25)//Init_ClusterRobot +MACRO_SOFT_DEMO(26)//Init_ClusterStackSoft +MACRO_SOFT_DEMO(27)//Init_ClusterStackMixed +MACRO_SOFT_DEMO(28)//Init_TetraCube +MACRO_SOFT_DEMO(29)//Init_TetraBunny + +#endif extern float eye[3]; extern int glutScreenWidth; @@ -68,149 +234,6 @@ const int maxNumObjects = 32760; #define EXTRA_HEIGHT -10.f -#ifdef USE_AMD_OPENCL -#include "btOpenCLUtils.h" -#include "BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCL.h" -#include "BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolver_OpenCLSIMDAware.h" -#include "BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/btSoftBodySolverVertexBuffer_OpenGL.h" - -btOpenCLSoftBodySolver* g_openCLSIMDSolver=0; -btSoftBodySolverOutputCLtoCPU* g_softBodyOutput = 0; - -cl_context g_cxMainContext; -cl_device_id g_cdDevice; -cl_command_queue g_cqCommandQue; - -void initCL( void* glCtx, void* glDC ) -{ - int ciErrNum = 0; - -#if defined(CL_PLATFORM_MINI_CL) - cl_device_type deviceType = CL_DEVICE_TYPE_CPU;//or use CL_DEVICE_TYPE_DEBUG to debug MiniCL -#elif defined(CL_PLATFORM_INTEL) - cl_device_type deviceType = CL_DEVICE_TYPE_CPU; -#elif defined(CL_PLATFORM_AMD) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#elif defined(CL_PLATFORM_NVIDIA) - cl_device_type deviceType = CL_DEVICE_TYPE_GPU; -#else -#ifdef __APPLE__ - cl_device_type deviceType = CL_DEVICE_TYPE_ALL;//GPU; -#else - cl_device_type deviceType = CL_DEVICE_TYPE_CPU;//CL_DEVICE_TYPE_ALL -#endif//__APPLE__ -#endif - - g_cxMainContext = btOpenCLUtils::createContextFromType(deviceType, &ciErrNum, glCtx, glDC); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - - int numDev = btOpenCLUtils::getNumDevices(g_cxMainContext); - if (!numDev) - { - btAssert(0); - exit(0);//this is just a demo, exit now - } - - g_cdDevice = btOpenCLUtils::getDevice(g_cxMainContext,0); - oclCHECKERROR(ciErrNum, CL_SUCCESS); - - btOpenCLDeviceInfo clInfo; - btOpenCLUtils::getDeviceInfo(g_cdDevice,clInfo); - btOpenCLUtils::printDeviceInfo(g_cdDevice); - - // create a command-queue - g_cqCommandQue = clCreateCommandQueue(g_cxMainContext, g_cdDevice, 0, &ciErrNum); - oclCHECKERROR(ciErrNum, CL_SUCCESS); -} - -class CachingCLFunctions : public CLFunctions -{ -protected: - - cl_device_id m_device; - - const char* strip(const char* name, const char* pattern); - -public: - CachingCLFunctions(cl_command_queue cqCommandQue, cl_context cxMainContext) : - CLFunctions(cqCommandQue,cxMainContext) - { - size_t actualSize; - cl_int retval = clGetCommandQueueInfo ( cqCommandQue, CL_QUEUE_DEVICE, sizeof(cl_device_id), - &m_device, &actualSize); - } - - /** - * Compile a compute shader kernel from a string and return the appropriate cl_kernel object. - */ - virtual cl_kernel compileCLKernelFromString( const char* kernelSource, const char* kernelName, const char* additionalMacros , const char* orgSrcFileNameForCaching) - { - char srcFileNameForCaching[1024]; - sprintf(srcFileNameForCaching,"%s/%s","../../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL",orgSrcFileNameForCaching); - - btAssert(additionalMacros); - btAssert(srcFileNameForCaching && strlen(srcFileNameForCaching)); - - printf("compiling kernelName: %s ",kernelName); - cl_kernel kernel=0; - cl_int ciErrNum; - - - size_t program_length = strlen(kernelSource); - - cl_program m_cpProgram = btOpenCLUtils::compileCLProgramFromString(m_cxMainContext, m_device, kernelSource, &ciErrNum, additionalMacros); - - - // Create the kernel - kernel = clCreateKernel(m_cpProgram, kernelName, &ciErrNum); - if (ciErrNum != CL_SUCCESS) - { - const char* msg = ""; - switch(ciErrNum) - { - case CL_INVALID_PROGRAM: - msg = "Program is not a valid program object."; - break; - case CL_INVALID_PROGRAM_EXECUTABLE: - msg = "There is no successfully built executable for program."; - break; - case CL_INVALID_KERNEL_NAME: - msg = "kernel_name is not found in program."; - break; - case CL_INVALID_KERNEL_DEFINITION: - msg = "the function definition for __kernel function given by kernel_name such as the number of arguments, the argument types are not the same for all devices for which the program executable has been built."; - break; - case CL_INVALID_VALUE: - msg = "kernel_name is NULL."; - break; - case CL_OUT_OF_HOST_MEMORY: - msg = "Failure to allocate resources required by the OpenCL implementation on the host."; - break; - default: - { - } - } - - printf("Error in clCreateKernel for kernel '%s', error is \"%s\", Line %u in file %s !!!\n\n", kernelName, msg, __LINE__, __FILE__); - - #ifndef BT_SUPPRESS_OPENCL_ASSERTS - btAssert(0); - #endif //BT_SUPPRESS_OPENCL_ASSERTS - m_kernelCompilationFailures++; - return 0; - } - - printf("ready. \n"); - if (!kernel) - m_kernelCompilationFailures++; - return kernel; - } - -}; - - -#endif //USE_AMD_OPENCL // void SoftDemo::createStack( btCollisionShape* boxShape, float halfCubeSize, int size, float zPos ) @@ -234,7 +257,7 @@ void SoftDemo::createStack( btCollisionShape* boxShape, float halfCubeSize, int btScalar mass = 1.f; btRigidBody* body = 0; - body = localCreateRigidBody(mass,trans,boxShape); + body = createRigidBody(mass,trans,boxShape); } } @@ -255,10 +278,18 @@ void pickingPreTickCallback (btDynamicsWorld *world, btScalar timeStep) { const int x=softDemo->m_lastmousepos[0]; const int y=softDemo->m_lastmousepos[1]; - const btVector3 rayFrom=softDemo->getCameraPosition(); + float rf[3]; + softDemo->getGUIHelper()->getRenderInterface()->getActiveCamera()->getCameraPosition(rf); + float target[3]; + softDemo->getGUIHelper()->getRenderInterface()->getActiveCamera()->getCameraTargetPosition(target); + btVector3 cameraTargetPosition(target[0],target[1],target[2]); + + const btVector3 cameraPosition(rf[0],rf[1],rf[2]); + const btVector3 rayFrom=cameraPosition; + const btVector3 rayTo=softDemo->getRayTo(x,y); const btVector3 rayDir=(rayTo-rayFrom).normalized(); - const btVector3 N=(softDemo->getCameraTargetPosition()-softDemo->getCameraPosition()).normalized(); + const btVector3 N=(cameraTargetPosition-cameraPosition).normalized(); const btScalar O=btDot(softDemo->m_impact,N); const btScalar den=btDot(N,rayDir); if((den*den)>0) @@ -283,16 +314,6 @@ void pickingPreTickCallback (btDynamicsWorld *world, btScalar timeStep) -void SoftDemo::displayCallback(void) { - - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - - renderme(); - - glFlush(); - swapBuffers(); -} // @@ -377,8 +398,8 @@ static void Ctor_RbUpStack(SoftDemo* pdemo,int count) btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(0,2+6*i,0)); - pdemo->localCreateRigidBody(mass,startTransform,shape[i%nshapes]); - //pdemo->localCreateRigidBody(mass,startTransform,shape[0]); + pdemo->createRigidBody(mass,startTransform,shape[i%nshapes]); + //pdemo->createRigidBody(mass,startTransform,shape[0]); } } @@ -390,7 +411,7 @@ static void Ctor_BigBall(SoftDemo* pdemo,btScalar mass=10) btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(0,13,0)); - pdemo->localCreateRigidBody(mass,startTransform,new btSphereShape(3)); + pdemo->createRigidBody(mass,startTransform,new btSphereShape(3)); } // @@ -401,7 +422,7 @@ static btRigidBody* Ctor_BigPlate(SoftDemo* pdemo,btScalar mass=15,btScalar heig btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(0,height,0.5)); - btRigidBody* body=pdemo->localCreateRigidBody(mass,startTransform,new btBoxShape(btVector3(5,1,5))); + btRigidBody* body=pdemo->createRigidBody(mass,startTransform,new btBoxShape(btVector3(5,1,5))); body->setFriction(1); return(body); } @@ -417,7 +438,7 @@ static void Ctor_LinearStair(SoftDemo* pdemo,const btVector3& org,const btVector btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(org+btVector3(sizes.x()*i*2,sizes.y()*i*2,0)); - btRigidBody* body=pdemo->localCreateRigidBody(0,startTransform,shape); + btRigidBody* body=pdemo->createRigidBody(0,startTransform,shape); body->setFriction(1); } } @@ -505,7 +526,7 @@ static void Init_RopeAttach(SoftDemo* pdemo) btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(12,8,0)); - btRigidBody* body=pdemo->localCreateRigidBody(50,startTransform,new btBoxShape(btVector3(2,6,2))); + btRigidBody* body=pdemo->createRigidBody(50,startTransform,new btBoxShape(btVector3(2,6,2))); btSoftBody* psb0=Functors::CtorRope(pdemo,btVector3(0,8,-1)); btSoftBody* psb1=Functors::CtorRope(pdemo,btVector3(0,8,+1)); psb0->appendAnchor(psb0->m_nodes.size()-1,body); @@ -530,7 +551,7 @@ static void Init_ClothAttach(SoftDemo* pdemo) btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(0,h,-(s+3.5))); - btRigidBody* body=pdemo->localCreateRigidBody(20,startTransform,new btBoxShape(btVector3(s,1,3))); + btRigidBody* body=pdemo->createRigidBody(20,startTransform,new btBoxShape(btVector3(s,1,3))); psb->appendAnchor(0,body); psb->appendAnchor(r-1,body); pdemo->m_cutting=true; @@ -551,7 +572,7 @@ static void Init_Impact(SoftDemo* pdemo) btTransform startTransform; startTransform.setIdentity(); startTransform.setOrigin(btVector3(0,20,0)); - pdemo->localCreateRigidBody(10,startTransform,new btBoxShape(btVector3(2,2,2))); + pdemo->createRigidBody(10,startTransform,new btBoxShape(btVector3(2,2,2))); } static void Init_CapsuleCollision(SoftDemo* pdemo) @@ -575,8 +596,8 @@ static void Init_CapsuleCollision(SoftDemo* pdemo) capsuleShape->setMargin( 0.5 ); // capsule->setLocalScaling(btVector3(5,1,1)); -// btRigidBody* body=pdemo->localCreateRigidBody(20,startTransform,capsuleShape); - btRigidBody* body=pdemo->localCreateRigidBody(0,startTransform,capsuleShape); +// btRigidBody* body=pdemo->createRigidBody(20,startTransform,capsuleShape); + btRigidBody* body=pdemo->createRigidBody(0,startTransform,capsuleShape); body->setFriction( 0.8f ); int fixed=0;//4+8; @@ -1076,7 +1097,7 @@ static void Ctor_Gear(SoftDemo* pdemo,const btVector3& pos,btScalar speed) shape->addChildShape(btTransform(btQuaternion(0,0,0)),new btCylinderShapeZ(btVector3(5,1,7))); shape->addChildShape(btTransform(btQuaternion(0,0,SIMD_HALF_PI)),new btBoxShape(btVector3(4,1,8))); #endif - btRigidBody* body=pdemo->localCreateRigidBody(10,startTransform,shape); + btRigidBody* body=pdemo->createRigidBody(10,startTransform,shape); body->setFriction(1); btDynamicsWorld* world=pdemo->getDynamicsWorld(); btHingeConstraint* hinge=new btHingeConstraint(*body,btTransform::getIdentity()); @@ -1298,7 +1319,7 @@ static void Init_ClusterCombine(SoftDemo* pdemo) // static void Init_ClusterCar(SoftDemo* pdemo) { - pdemo->setAzi(180); +// pdemo->setAzi(180); const btVector3 origin(100,80,0); const btQuaternion orientation(-SIMD_PI/2,0,0); const btScalar widthf=8; @@ -1397,7 +1418,7 @@ static void Init_ClusterRobot(SoftDemo* pdemo) btSoftBody* psb2=Functor::CreateBall(pdemo,base+btVector3(0,0,+8*btSqrt(2))); const btVector3 ctr=(psb0->clusterCom(0)+psb1->clusterCom(0)+psb2->clusterCom(0))/3; btCylinderShape* pshp=new btCylinderShape(btVector3(8,1,8)); - btRigidBody* prb=pdemo->localCreateRigidBody(50,btTransform(btQuaternion(0,0,0),ctr+btVector3(0,5,0)),pshp); + btRigidBody* prb=pdemo->createRigidBody(50,btTransform(btQuaternion(0,0,0),ctr+btVector3(0,5,0)),pshp); btSoftBody::LJoint::Specs ls; ls.erp=0.5f; ls.position=psb0->clusterCom(0);psb0->appendLinearJoint(ls,prb); @@ -1405,7 +1426,7 @@ static void Init_ClusterRobot(SoftDemo* pdemo) ls.position=psb2->clusterCom(0);psb2->appendLinearJoint(ls,prb); btBoxShape* pbox=new btBoxShape(btVector3(20,1,40)); - btRigidBody* pgrn=pdemo->localCreateRigidBody(0,btTransform(btQuaternion(0,-SIMD_HALF_PI/2,0),btVector3(0,0,0)),pbox); + btRigidBody* pgrn=pdemo->createRigidBody(0,btTransform(btQuaternion(0,-SIMD_HALF_PI/2,0),btVector3(0,0,0)),pbox); pdemo->m_autocam=true; @@ -1542,13 +1563,14 @@ static void Init_TetraCube(SoftDemo* pdemo) Init_TetraBunny, }; +#if 0 void SoftDemo::clientResetScene() { m_azi = 0; m_cameraDistance = 30.f; m_cameraTargetPosition.setValue(0,0,0); - DemoApplication::clientResetScene(); + /* Clean up */ for(int i=m_dynamicsWorld->getNumCollisionObjects()-1;i>=0;i--) { @@ -1580,60 +1602,10 @@ void SoftDemo::clientResetScene() } - //create ground object - btTransform tr; - tr.setIdentity(); - tr.setOrigin(btVector3(0,-12,0)); - - btCollisionObject* newOb = new btCollisionObject(); - newOb->setWorldTransform(tr); - newOb->setInterpolationWorldTransform( tr); - int lastDemo = (sizeof(demofncs)/sizeof(demofncs[0]))-1; - - if (current_demo<0) - current_demo = lastDemo; - if (current_demo > lastDemo) - current_demo =0; - - - if (current_demo>19) - { - newOb->setCollisionShape(m_collisionShapes[0]); - } else - { - newOb->setCollisionShape(m_collisionShapes[1]); - } - - m_dynamicsWorld->addCollisionObject(newOb); - - m_softBodyWorldInfo.m_sparsesdf.Reset(); - - - - - - - motorcontrol.goal = 0; - motorcontrol.maxtorque = 0; - - - - m_softBodyWorldInfo.air_density = (btScalar)1.2; - m_softBodyWorldInfo.water_density = 0; - m_softBodyWorldInfo.water_offset = 0; - m_softBodyWorldInfo.water_normal = btVector3(0,0,0); - m_softBodyWorldInfo.m_gravity.setValue(0,-10,0); - - - m_autocam = false; - m_raycast = false; - m_cutting = false; - m_results.fraction = 1.f; - demofncs[current_demo](this); } - +#if 0 void SoftDemo::clientMoveAndDisplay() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); @@ -1739,9 +1711,10 @@ void SoftDemo::clientMoveAndDisplay() swapBuffers(); } +#endif - +#if 0 void SoftDemo::renderme() { btIDebugDraw* idraw=m_dynamicsWorld->getDebugDrawer(); @@ -1928,6 +1901,8 @@ void SoftDemo::renderme() DemoApplication::renderme(); } +#endif +#endif void SoftDemo::setDrawClusters(bool drawClusters) { @@ -1941,7 +1916,7 @@ void SoftDemo::setDrawClusters(bool drawClusters) } - +#if 0 void SoftDemo::keyboardCallback(unsigned char key, int x, int y) { switch(key) @@ -1969,7 +1944,7 @@ void SoftDemo::keyboardCallback(unsigned char key, int x, int y) default: DemoApplication::keyboardCallback(key,x,y); } } - +#endif // void SoftDemo::mouseMotionFunc(int x,int y) { @@ -1990,12 +1965,9 @@ void SoftDemo::mouseMotionFunc(int x,int y) m_lastmousepos[1] = y; } } - else - { - DemoApplication::mouseMotionFunc(x,y); - } } +#if 0 // void SoftDemo::mouseFunc(int button, int state, int x, int y) { @@ -2085,14 +2057,14 @@ void SoftDemo::mouseFunc(int button, int state, int x, int y) DemoApplication::mouseFunc(button,state,x,y); } } - +#endif void SoftDemo::initPhysics() { ///create concave ground mesh - - m_azi = 0; + m_guiHelper->setUpAxis(1); +// m_azi = 0; //reset and disable motorcontrol at the start motorcontrol.goal = 0; @@ -2235,11 +2207,66 @@ void SoftDemo::initPhysics() m_dynamicsWorld->getDispatchInfo().m_enableSPU = true; m_dynamicsWorld->setGravity(btVector3(0,-10,0)); m_softBodyWorldInfo.m_gravity.setValue(0,-10,0); - + m_guiHelper->createPhysicsDebugDrawer(world); // clientResetScene(); m_softBodyWorldInfo.m_sparsesdf.Initialize(); - clientResetScene(); +// clientResetScene(); + + //create ground object + btTransform tr; + tr.setIdentity(); + tr.setOrigin(btVector3(0,-12,0)); + + btCollisionObject* newOb = new btCollisionObject(); + newOb->setWorldTransform(tr); + newOb->setInterpolationWorldTransform( tr); + int lastDemo = (sizeof(demofncs)/sizeof(demofncs[0]))-1; + + if (current_demo<0) + current_demo = lastDemo; + if (current_demo > lastDemo) + current_demo =0; + + + if (current_demo>19) + { + newOb->setCollisionShape(m_collisionShapes[0]); + } else + { + newOb->setCollisionShape(m_collisionShapes[1]); + } + + m_dynamicsWorld->addCollisionObject(newOb); + + m_softBodyWorldInfo.m_sparsesdf.Reset(); + + + + + + + + motorcontrol.goal = 0; + motorcontrol.maxtorque = 0; + + + + m_softBodyWorldInfo.air_density = (btScalar)1.2; + m_softBodyWorldInfo.water_density = 0; + m_softBodyWorldInfo.water_offset = 0; + m_softBodyWorldInfo.water_normal = btVector3(0,0,0); + m_softBodyWorldInfo.m_gravity.setValue(0,-10,0); + + + m_autocam = false; + m_raycast = false; + m_cutting = false; + m_results.fraction = 1.f; + + demofncs[current_demo](this); + + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } @@ -2276,6 +2303,7 @@ void SoftDemo::exitPhysics() //delete dynamics world delete m_dynamicsWorld; + m_dynamicsWorld = 0; //delete solver delete m_solver; @@ -2294,7 +2322,11 @@ void SoftDemo::exitPhysics() } - +class CommonExampleInterface* SoftDemoCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + current_demo = option; + return new SoftDemo(helper); +} diff --git a/Demos/AllBulletDemos/DemoEntries.h b/examples/SoftDemo/SoftDemo.h similarity index 79% rename from Demos/AllBulletDemos/DemoEntries.h rename to examples/SoftDemo/SoftDemo.h index 41fd8571a..c2d974ecb 100644 --- a/Demos/AllBulletDemos/DemoEntries.h +++ b/examples/SoftDemo/SoftDemo.h @@ -1,3 +1,4 @@ + /* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ @@ -13,22 +14,17 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -#ifndef BT_DEMO_ENTRIES_H -#define BT_DEMO_ENTRIES_H +///btSoftBody implementation by Nathanael Presson + +#ifndef SOFT_DEMO_H +#define SOFT_DEMO_H + +class CommonExampleInterface* SoftDemoCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + + +#endif //CCD_PHYSICS_DEMO_H -class DemoApplication; - -typedef DemoApplication* DemoCreateFcn(); - -struct btDemoEntry -{ - const char *name; - DemoCreateFcn *createFcn; -}; - -extern btDemoEntry g_demoEntries[]; -#endif //BT_DEMO_ENTRIES_H diff --git a/Demos/GimpactTestDemo/TorusMesh.h b/examples/SoftDemo/TorusMesh.h similarity index 100% rename from Demos/GimpactTestDemo/TorusMesh.h rename to examples/SoftDemo/TorusMesh.h diff --git a/Demos/SoftDemo/bunny.inl b/examples/SoftDemo/bunny.inl similarity index 100% rename from Demos/SoftDemo/bunny.inl rename to examples/SoftDemo/bunny.inl diff --git a/Demos/SoftDemo/cube.inl b/examples/SoftDemo/cube.inl similarity index 100% rename from Demos/SoftDemo/cube.inl rename to examples/SoftDemo/cube.inl diff --git a/btgui/OpenGLWindow/GlewWindows/GL/glew.h b/examples/ThirdPartyLibs/Glew/CustomGL/glew.h similarity index 100% rename from btgui/OpenGLWindow/GlewWindows/GL/glew.h rename to examples/ThirdPartyLibs/Glew/CustomGL/glew.h diff --git a/btgui/OpenGLWindow/GlewWindows/GL/glxew.h b/examples/ThirdPartyLibs/Glew/CustomGL/glxew.h similarity index 100% rename from btgui/OpenGLWindow/GlewWindows/GL/glxew.h rename to examples/ThirdPartyLibs/Glew/CustomGL/glxew.h diff --git a/btgui/OpenGLWindow/GlewWindows/GL/wglew.h b/examples/ThirdPartyLibs/Glew/CustomGL/wglew.h similarity index 100% rename from btgui/OpenGLWindow/GlewWindows/GL/wglew.h rename to examples/ThirdPartyLibs/Glew/CustomGL/wglew.h diff --git a/btgui/OpenGLWindow/GlewWindows/glew.c b/examples/ThirdPartyLibs/Glew/glew.c similarity index 99% rename from btgui/OpenGLWindow/GlewWindows/glew.c rename to examples/ThirdPartyLibs/Glew/glew.c index c90af794a..1be61489e 100644 --- a/btgui/OpenGLWindow/GlewWindows/glew.c +++ b/examples/ThirdPartyLibs/Glew/glew.c @@ -29,12 +29,12 @@ ** THE POSSIBILITY OF SUCH DAMAGE. */ -#include "GL/glew.h" +#include "CustomGL/glew.h" #if defined(_WIN32) -# include +# include #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) -# include "GL/glxew.h" +# include "CustomGL/glxew.h" #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS diff --git a/btgui/Gwen/Align.h b/examples/ThirdPartyLibs/Gwen/Align.h similarity index 100% rename from btgui/Gwen/Align.h rename to examples/ThirdPartyLibs/Gwen/Align.h diff --git a/btgui/Gwen/Anim.cpp b/examples/ThirdPartyLibs/Gwen/Anim.cpp similarity index 100% rename from btgui/Gwen/Anim.cpp rename to examples/ThirdPartyLibs/Gwen/Anim.cpp diff --git a/btgui/Gwen/Anim.h b/examples/ThirdPartyLibs/Gwen/Anim.h similarity index 100% rename from btgui/Gwen/Anim.h rename to examples/ThirdPartyLibs/Gwen/Anim.h diff --git a/btgui/Gwen/BaseRender.cpp b/examples/ThirdPartyLibs/Gwen/BaseRender.cpp similarity index 100% rename from btgui/Gwen/BaseRender.cpp rename to examples/ThirdPartyLibs/Gwen/BaseRender.cpp diff --git a/btgui/Gwen/BaseRender.h b/examples/ThirdPartyLibs/Gwen/BaseRender.h similarity index 100% rename from btgui/Gwen/BaseRender.h rename to examples/ThirdPartyLibs/Gwen/BaseRender.h diff --git a/btgui/Gwen/CMakeLists.txt b/examples/ThirdPartyLibs/Gwen/CMakeLists.txt similarity index 74% rename from btgui/Gwen/CMakeLists.txt rename to examples/ThirdPartyLibs/Gwen/CMakeLists.txt index 6ab8afd74..2fad3951c 100644 --- a/btgui/Gwen/CMakeLists.txt +++ b/examples/ThirdPartyLibs/Gwen/CMakeLists.txt @@ -1,10 +1,11 @@ INCLUDE_DIRECTORIES( ${BULLET_PHYSICS_SOURCE_DIR}/src - ${BULLET_PHYSICS_SOURCE_DIR}/btgui + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs + ${BULLET_PHYSICS_SOURCE_DIR}/examples/ThirdPartyLibs/Glew ) -ADD_DEFINITIONS( -DGWEN_COMPILE_STATIC -D_HAS_EXCEPTIONS=0 -D_STATIC_CPPLIB ) +ADD_DEFINITIONS( -DGLEW_STATIC -DGWEN_COMPILE_STATIC -D_HAS_EXCEPTIONS=0 -D_STATIC_CPPLIB ) FILE(GLOB gwen_SRCS "*.cpp" "Controls/*.cpp" "Controls/Dialog/*.cpp" "Controls/Dialogs/*.cpp" "Controls/Layout/*.cpp" "Controls/Property/*.cpp" "Input/*.cpp" "Platforms/*.cpp" "Renderers/*.cpp" "Skins/*.cpp") FILE(GLOB gwen_HDRS "*.h" "Controls/*.h" "Controls/Dialog/*.h" "Controls/Dialogs/*.h" "Controls/Layout/*.h" "Controls/Property/*.h" "Input/*.h" "Platforms/*.h" "Renderers/*.h" "Skins/*.h") diff --git a/btgui/Gwen/Config.h b/examples/ThirdPartyLibs/Gwen/Config.h similarity index 100% rename from btgui/Gwen/Config.h rename to examples/ThirdPartyLibs/Gwen/Config.h diff --git a/btgui/Gwen/Controls.h b/examples/ThirdPartyLibs/Gwen/Controls.h similarity index 100% rename from btgui/Gwen/Controls.h rename to examples/ThirdPartyLibs/Gwen/Controls.h diff --git a/btgui/Gwen/Controls/Base.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Base.cpp similarity index 100% rename from btgui/Gwen/Controls/Base.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Base.cpp diff --git a/btgui/Gwen/Controls/Base.h b/examples/ThirdPartyLibs/Gwen/Controls/Base.h similarity index 100% rename from btgui/Gwen/Controls/Base.h rename to examples/ThirdPartyLibs/Gwen/Controls/Base.h diff --git a/btgui/Gwen/Controls/Button.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Button.cpp similarity index 100% rename from btgui/Gwen/Controls/Button.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Button.cpp diff --git a/btgui/Gwen/Controls/Button.h b/examples/ThirdPartyLibs/Gwen/Controls/Button.h similarity index 100% rename from btgui/Gwen/Controls/Button.h rename to examples/ThirdPartyLibs/Gwen/Controls/Button.h diff --git a/btgui/Gwen/Controls/Canvas.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Canvas.cpp similarity index 100% rename from btgui/Gwen/Controls/Canvas.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Canvas.cpp diff --git a/btgui/Gwen/Controls/Canvas.h b/examples/ThirdPartyLibs/Gwen/Controls/Canvas.h similarity index 100% rename from btgui/Gwen/Controls/Canvas.h rename to examples/ThirdPartyLibs/Gwen/Controls/Canvas.h diff --git a/btgui/Gwen/Controls/CheckBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/CheckBox.cpp similarity index 100% rename from btgui/Gwen/Controls/CheckBox.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/CheckBox.cpp diff --git a/btgui/Gwen/Controls/CheckBox.h b/examples/ThirdPartyLibs/Gwen/Controls/CheckBox.h similarity index 100% rename from btgui/Gwen/Controls/CheckBox.h rename to examples/ThirdPartyLibs/Gwen/Controls/CheckBox.h diff --git a/btgui/Gwen/Controls/ColorControls.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ColorControls.cpp similarity index 100% rename from btgui/Gwen/Controls/ColorControls.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ColorControls.cpp diff --git a/btgui/Gwen/Controls/ColorControls.h b/examples/ThirdPartyLibs/Gwen/Controls/ColorControls.h similarity index 100% rename from btgui/Gwen/Controls/ColorControls.h rename to examples/ThirdPartyLibs/Gwen/Controls/ColorControls.h diff --git a/btgui/Gwen/Controls/ColorPicker.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ColorPicker.cpp similarity index 100% rename from btgui/Gwen/Controls/ColorPicker.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ColorPicker.cpp diff --git a/btgui/Gwen/Controls/ColorPicker.h b/examples/ThirdPartyLibs/Gwen/Controls/ColorPicker.h similarity index 100% rename from btgui/Gwen/Controls/ColorPicker.h rename to examples/ThirdPartyLibs/Gwen/Controls/ColorPicker.h diff --git a/btgui/Gwen/Controls/ComboBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ComboBox.cpp similarity index 100% rename from btgui/Gwen/Controls/ComboBox.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ComboBox.cpp diff --git a/btgui/Gwen/Controls/ComboBox.h b/examples/ThirdPartyLibs/Gwen/Controls/ComboBox.h similarity index 100% rename from btgui/Gwen/Controls/ComboBox.h rename to examples/ThirdPartyLibs/Gwen/Controls/ComboBox.h diff --git a/btgui/Gwen/Controls/CrossSplitter.cpp b/examples/ThirdPartyLibs/Gwen/Controls/CrossSplitter.cpp similarity index 100% rename from btgui/Gwen/Controls/CrossSplitter.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/CrossSplitter.cpp diff --git a/btgui/Gwen/Controls/CrossSplitter.h b/examples/ThirdPartyLibs/Gwen/Controls/CrossSplitter.h similarity index 100% rename from btgui/Gwen/Controls/CrossSplitter.h rename to examples/ThirdPartyLibs/Gwen/Controls/CrossSplitter.h diff --git a/btgui/Gwen/Controls/Dialog/FileOpen.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileOpen.cpp similarity index 100% rename from btgui/Gwen/Controls/Dialog/FileOpen.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileOpen.cpp diff --git a/btgui/Gwen/Controls/Dialog/FileSave.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileSave.cpp similarity index 100% rename from btgui/Gwen/Controls/Dialog/FileSave.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Dialog/FileSave.cpp diff --git a/btgui/Gwen/Controls/Dialog/Query.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Dialog/Query.cpp similarity index 100% rename from btgui/Gwen/Controls/Dialog/Query.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Dialog/Query.cpp diff --git a/btgui/Gwen/Controls/Dialogs/FileOpen.h b/examples/ThirdPartyLibs/Gwen/Controls/Dialogs/FileOpen.h similarity index 100% rename from btgui/Gwen/Controls/Dialogs/FileOpen.h rename to examples/ThirdPartyLibs/Gwen/Controls/Dialogs/FileOpen.h diff --git a/btgui/Gwen/Controls/Dialogs/FileSave.h b/examples/ThirdPartyLibs/Gwen/Controls/Dialogs/FileSave.h similarity index 100% rename from btgui/Gwen/Controls/Dialogs/FileSave.h rename to examples/ThirdPartyLibs/Gwen/Controls/Dialogs/FileSave.h diff --git a/btgui/Gwen/Controls/Dialogs/Query.h b/examples/ThirdPartyLibs/Gwen/Controls/Dialogs/Query.h similarity index 100% rename from btgui/Gwen/Controls/Dialogs/Query.h rename to examples/ThirdPartyLibs/Gwen/Controls/Dialogs/Query.h diff --git a/btgui/Gwen/Controls/DockBase.cpp b/examples/ThirdPartyLibs/Gwen/Controls/DockBase.cpp similarity index 100% rename from btgui/Gwen/Controls/DockBase.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/DockBase.cpp diff --git a/btgui/Gwen/Controls/DockBase.h b/examples/ThirdPartyLibs/Gwen/Controls/DockBase.h similarity index 100% rename from btgui/Gwen/Controls/DockBase.h rename to examples/ThirdPartyLibs/Gwen/Controls/DockBase.h diff --git a/btgui/Gwen/Controls/DockedTabControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/DockedTabControl.cpp similarity index 100% rename from btgui/Gwen/Controls/DockedTabControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/DockedTabControl.cpp diff --git a/btgui/Gwen/Controls/DockedTabControl.h b/examples/ThirdPartyLibs/Gwen/Controls/DockedTabControl.h similarity index 100% rename from btgui/Gwen/Controls/DockedTabControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/DockedTabControl.h diff --git a/btgui/Gwen/Controls/Dragger.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Dragger.cpp similarity index 100% rename from btgui/Gwen/Controls/Dragger.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Dragger.cpp diff --git a/btgui/Gwen/Controls/Dragger.h b/examples/ThirdPartyLibs/Gwen/Controls/Dragger.h similarity index 100% rename from btgui/Gwen/Controls/Dragger.h rename to examples/ThirdPartyLibs/Gwen/Controls/Dragger.h diff --git a/btgui/Gwen/Controls/GroupBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/GroupBox.cpp similarity index 100% rename from btgui/Gwen/Controls/GroupBox.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/GroupBox.cpp diff --git a/btgui/Gwen/Controls/GroupBox.h b/examples/ThirdPartyLibs/Gwen/Controls/GroupBox.h similarity index 100% rename from btgui/Gwen/Controls/GroupBox.h rename to examples/ThirdPartyLibs/Gwen/Controls/GroupBox.h diff --git a/btgui/Gwen/Controls/HSVColorPicker.cpp b/examples/ThirdPartyLibs/Gwen/Controls/HSVColorPicker.cpp similarity index 100% rename from btgui/Gwen/Controls/HSVColorPicker.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/HSVColorPicker.cpp diff --git a/btgui/Gwen/Controls/HSVColorPicker.h b/examples/ThirdPartyLibs/Gwen/Controls/HSVColorPicker.h similarity index 100% rename from btgui/Gwen/Controls/HSVColorPicker.h rename to examples/ThirdPartyLibs/Gwen/Controls/HSVColorPicker.h diff --git a/btgui/Gwen/Controls/Highlight.h b/examples/ThirdPartyLibs/Gwen/Controls/Highlight.h similarity index 100% rename from btgui/Gwen/Controls/Highlight.h rename to examples/ThirdPartyLibs/Gwen/Controls/Highlight.h diff --git a/btgui/Gwen/Controls/HorizontalScrollBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/HorizontalScrollBar.cpp similarity index 100% rename from btgui/Gwen/Controls/HorizontalScrollBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/HorizontalScrollBar.cpp diff --git a/btgui/Gwen/Controls/HorizontalScrollBar.h b/examples/ThirdPartyLibs/Gwen/Controls/HorizontalScrollBar.h similarity index 100% rename from btgui/Gwen/Controls/HorizontalScrollBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/HorizontalScrollBar.h diff --git a/btgui/Gwen/Controls/HorizontalSlider.cpp b/examples/ThirdPartyLibs/Gwen/Controls/HorizontalSlider.cpp similarity index 100% rename from btgui/Gwen/Controls/HorizontalSlider.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/HorizontalSlider.cpp diff --git a/btgui/Gwen/Controls/HorizontalSlider.h b/examples/ThirdPartyLibs/Gwen/Controls/HorizontalSlider.h similarity index 100% rename from btgui/Gwen/Controls/HorizontalSlider.h rename to examples/ThirdPartyLibs/Gwen/Controls/HorizontalSlider.h diff --git a/btgui/Gwen/Controls/ImagePanel.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ImagePanel.cpp similarity index 100% rename from btgui/Gwen/Controls/ImagePanel.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ImagePanel.cpp diff --git a/btgui/Gwen/Controls/ImagePanel.h b/examples/ThirdPartyLibs/Gwen/Controls/ImagePanel.h similarity index 100% rename from btgui/Gwen/Controls/ImagePanel.h rename to examples/ThirdPartyLibs/Gwen/Controls/ImagePanel.h diff --git a/btgui/Gwen/Controls/Label.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Label.cpp similarity index 100% rename from btgui/Gwen/Controls/Label.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Label.cpp diff --git a/btgui/Gwen/Controls/Label.h b/examples/ThirdPartyLibs/Gwen/Controls/Label.h similarity index 100% rename from btgui/Gwen/Controls/Label.h rename to examples/ThirdPartyLibs/Gwen/Controls/Label.h diff --git a/btgui/Gwen/Controls/LabelClickable.cpp b/examples/ThirdPartyLibs/Gwen/Controls/LabelClickable.cpp similarity index 100% rename from btgui/Gwen/Controls/LabelClickable.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/LabelClickable.cpp diff --git a/btgui/Gwen/Controls/LabelClickable.h b/examples/ThirdPartyLibs/Gwen/Controls/LabelClickable.h similarity index 100% rename from btgui/Gwen/Controls/LabelClickable.h rename to examples/ThirdPartyLibs/Gwen/Controls/LabelClickable.h diff --git a/btgui/Gwen/Controls/Layout/Splitter (2).h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter (2).h similarity index 100% rename from btgui/Gwen/Controls/Layout/Splitter (2).h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter (2).h diff --git a/btgui/Gwen/Controls/Layout/Splitter - Copy.h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter - Copy.h similarity index 100% rename from btgui/Gwen/Controls/Layout/Splitter - Copy.h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter - Copy.h diff --git a/btgui/Gwen/Controls/Layout/Splitter.h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter.h similarity index 100% rename from btgui/Gwen/Controls/Layout/Splitter.h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Splitter.h diff --git a/btgui/Gwen/Controls/Layout/Table (2).h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Table (2).h similarity index 100% rename from btgui/Gwen/Controls/Layout/Table (2).h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Table (2).h diff --git a/btgui/Gwen/Controls/Layout/Table - Copy.h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Table - Copy.h similarity index 100% rename from btgui/Gwen/Controls/Layout/Table - Copy.h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Table - Copy.h diff --git a/btgui/Gwen/Controls/Layout/Table.h b/examples/ThirdPartyLibs/Gwen/Controls/Layout/Table.h similarity index 100% rename from btgui/Gwen/Controls/Layout/Table.h rename to examples/ThirdPartyLibs/Gwen/Controls/Layout/Table.h diff --git a/btgui/Gwen/Controls/ListBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ListBox.cpp similarity index 100% rename from btgui/Gwen/Controls/ListBox.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ListBox.cpp diff --git a/btgui/Gwen/Controls/ListBox.h b/examples/ThirdPartyLibs/Gwen/Controls/ListBox.h similarity index 100% rename from btgui/Gwen/Controls/ListBox.h rename to examples/ThirdPartyLibs/Gwen/Controls/ListBox.h diff --git a/btgui/Gwen/Controls/Menu.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Menu.cpp similarity index 100% rename from btgui/Gwen/Controls/Menu.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Menu.cpp diff --git a/btgui/Gwen/Controls/Menu.h b/examples/ThirdPartyLibs/Gwen/Controls/Menu.h similarity index 100% rename from btgui/Gwen/Controls/Menu.h rename to examples/ThirdPartyLibs/Gwen/Controls/Menu.h diff --git a/btgui/Gwen/Controls/MenuItem.cpp b/examples/ThirdPartyLibs/Gwen/Controls/MenuItem.cpp similarity index 100% rename from btgui/Gwen/Controls/MenuItem.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/MenuItem.cpp diff --git a/btgui/Gwen/Controls/MenuItem.h b/examples/ThirdPartyLibs/Gwen/Controls/MenuItem.h similarity index 100% rename from btgui/Gwen/Controls/MenuItem.h rename to examples/ThirdPartyLibs/Gwen/Controls/MenuItem.h diff --git a/btgui/Gwen/Controls/MenuStrip.cpp b/examples/ThirdPartyLibs/Gwen/Controls/MenuStrip.cpp similarity index 100% rename from btgui/Gwen/Controls/MenuStrip.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/MenuStrip.cpp diff --git a/btgui/Gwen/Controls/MenuStrip.h b/examples/ThirdPartyLibs/Gwen/Controls/MenuStrip.h similarity index 100% rename from btgui/Gwen/Controls/MenuStrip.h rename to examples/ThirdPartyLibs/Gwen/Controls/MenuStrip.h diff --git a/btgui/Gwen/Controls/Modal.h b/examples/ThirdPartyLibs/Gwen/Controls/Modal.h similarity index 100% rename from btgui/Gwen/Controls/Modal.h rename to examples/ThirdPartyLibs/Gwen/Controls/Modal.h diff --git a/btgui/Gwen/Controls/NumericUpDown.cpp b/examples/ThirdPartyLibs/Gwen/Controls/NumericUpDown.cpp similarity index 100% rename from btgui/Gwen/Controls/NumericUpDown.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/NumericUpDown.cpp diff --git a/btgui/Gwen/Controls/NumericUpDown.h b/examples/ThirdPartyLibs/Gwen/Controls/NumericUpDown.h similarity index 100% rename from btgui/Gwen/Controls/NumericUpDown.h rename to examples/ThirdPartyLibs/Gwen/Controls/NumericUpDown.h diff --git a/btgui/Gwen/Controls/PanelListPanel.cpp b/examples/ThirdPartyLibs/Gwen/Controls/PanelListPanel.cpp similarity index 100% rename from btgui/Gwen/Controls/PanelListPanel.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/PanelListPanel.cpp diff --git a/btgui/Gwen/Controls/PanelListPanel.h b/examples/ThirdPartyLibs/Gwen/Controls/PanelListPanel.h similarity index 100% rename from btgui/Gwen/Controls/PanelListPanel.h rename to examples/ThirdPartyLibs/Gwen/Controls/PanelListPanel.h diff --git a/btgui/Gwen/Controls/ProgressBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ProgressBar.cpp similarity index 100% rename from btgui/Gwen/Controls/ProgressBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ProgressBar.cpp diff --git a/btgui/Gwen/Controls/ProgressBar.h b/examples/ThirdPartyLibs/Gwen/Controls/ProgressBar.h similarity index 100% rename from btgui/Gwen/Controls/ProgressBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/ProgressBar.h diff --git a/btgui/Gwen/Controls/Properties.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Properties.cpp similarity index 100% rename from btgui/Gwen/Controls/Properties.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Properties.cpp diff --git a/btgui/Gwen/Controls/Properties.h b/examples/ThirdPartyLibs/Gwen/Controls/Properties.h similarity index 100% rename from btgui/Gwen/Controls/Properties.h rename to examples/ThirdPartyLibs/Gwen/Controls/Properties.h diff --git a/btgui/Gwen/Controls/Property/BaseProperty.h b/examples/ThirdPartyLibs/Gwen/Controls/Property/BaseProperty.h similarity index 100% rename from btgui/Gwen/Controls/Property/BaseProperty.h rename to examples/ThirdPartyLibs/Gwen/Controls/Property/BaseProperty.h diff --git a/btgui/Gwen/Controls/Property/ColorSelector.h b/examples/ThirdPartyLibs/Gwen/Controls/Property/ColorSelector.h similarity index 100% rename from btgui/Gwen/Controls/Property/ColorSelector.h rename to examples/ThirdPartyLibs/Gwen/Controls/Property/ColorSelector.h diff --git a/btgui/Gwen/Controls/Property/Text.h b/examples/ThirdPartyLibs/Gwen/Controls/Property/Text.h similarity index 100% rename from btgui/Gwen/Controls/Property/Text.h rename to examples/ThirdPartyLibs/Gwen/Controls/Property/Text.h diff --git a/btgui/Gwen/Controls/PropertyTree.h b/examples/ThirdPartyLibs/Gwen/Controls/PropertyTree.h similarity index 100% rename from btgui/Gwen/Controls/PropertyTree.h rename to examples/ThirdPartyLibs/Gwen/Controls/PropertyTree.h diff --git a/btgui/Gwen/Controls/RadioButton.cpp b/examples/ThirdPartyLibs/Gwen/Controls/RadioButton.cpp similarity index 100% rename from btgui/Gwen/Controls/RadioButton.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/RadioButton.cpp diff --git a/btgui/Gwen/Controls/RadioButton.h b/examples/ThirdPartyLibs/Gwen/Controls/RadioButton.h similarity index 100% rename from btgui/Gwen/Controls/RadioButton.h rename to examples/ThirdPartyLibs/Gwen/Controls/RadioButton.h diff --git a/btgui/Gwen/Controls/RadioButtonController.cpp b/examples/ThirdPartyLibs/Gwen/Controls/RadioButtonController.cpp similarity index 100% rename from btgui/Gwen/Controls/RadioButtonController.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/RadioButtonController.cpp diff --git a/btgui/Gwen/Controls/RadioButtonController.h b/examples/ThirdPartyLibs/Gwen/Controls/RadioButtonController.h similarity index 100% rename from btgui/Gwen/Controls/RadioButtonController.h rename to examples/ThirdPartyLibs/Gwen/Controls/RadioButtonController.h diff --git a/btgui/Gwen/Controls/ResizableControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ResizableControl.cpp similarity index 100% rename from btgui/Gwen/Controls/ResizableControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ResizableControl.cpp diff --git a/btgui/Gwen/Controls/ResizableControl.h b/examples/ThirdPartyLibs/Gwen/Controls/ResizableControl.h similarity index 100% rename from btgui/Gwen/Controls/ResizableControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/ResizableControl.h diff --git a/btgui/Gwen/Controls/Resizer.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Resizer.cpp similarity index 100% rename from btgui/Gwen/Controls/Resizer.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Resizer.cpp diff --git a/btgui/Gwen/Controls/Resizer.h b/examples/ThirdPartyLibs/Gwen/Controls/Resizer.h similarity index 100% rename from btgui/Gwen/Controls/Resizer.h rename to examples/ThirdPartyLibs/Gwen/Controls/Resizer.h diff --git a/btgui/Gwen/Controls/RichLabel.cpp b/examples/ThirdPartyLibs/Gwen/Controls/RichLabel.cpp similarity index 100% rename from btgui/Gwen/Controls/RichLabel.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/RichLabel.cpp diff --git a/btgui/Gwen/Controls/RichLabel.h b/examples/ThirdPartyLibs/Gwen/Controls/RichLabel.h similarity index 100% rename from btgui/Gwen/Controls/RichLabel.h rename to examples/ThirdPartyLibs/Gwen/Controls/RichLabel.h diff --git a/btgui/Gwen/Controls/ScrollBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBar.cpp similarity index 100% rename from btgui/Gwen/Controls/ScrollBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBar.cpp diff --git a/btgui/Gwen/Controls/ScrollBar.h b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBar.h similarity index 100% rename from btgui/Gwen/Controls/ScrollBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBar.h diff --git a/btgui/Gwen/Controls/ScrollBarBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBarBar.cpp similarity index 100% rename from btgui/Gwen/Controls/ScrollBarBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBarBar.cpp diff --git a/btgui/Gwen/Controls/ScrollBarBar.h b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBarBar.h similarity index 100% rename from btgui/Gwen/Controls/ScrollBarBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBarBar.h diff --git a/btgui/Gwen/Controls/ScrollBarButton.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBarButton.cpp similarity index 100% rename from btgui/Gwen/Controls/ScrollBarButton.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBarButton.cpp diff --git a/btgui/Gwen/Controls/ScrollBarButton.h b/examples/ThirdPartyLibs/Gwen/Controls/ScrollBarButton.h similarity index 100% rename from btgui/Gwen/Controls/ScrollBarButton.h rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollBarButton.h diff --git a/btgui/Gwen/Controls/ScrollControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/ScrollControl.cpp similarity index 100% rename from btgui/Gwen/Controls/ScrollControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollControl.cpp diff --git a/btgui/Gwen/Controls/ScrollControl.h b/examples/ThirdPartyLibs/Gwen/Controls/ScrollControl.h similarity index 100% rename from btgui/Gwen/Controls/ScrollControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/ScrollControl.h diff --git a/btgui/Gwen/Controls/Slider.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Slider.cpp similarity index 100% rename from btgui/Gwen/Controls/Slider.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Slider.cpp diff --git a/btgui/Gwen/Controls/Slider.h b/examples/ThirdPartyLibs/Gwen/Controls/Slider.h similarity index 100% rename from btgui/Gwen/Controls/Slider.h rename to examples/ThirdPartyLibs/Gwen/Controls/Slider.h diff --git a/btgui/Gwen/Controls/SplitterBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/SplitterBar.cpp similarity index 100% rename from btgui/Gwen/Controls/SplitterBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/SplitterBar.cpp diff --git a/btgui/Gwen/Controls/SplitterBar.h b/examples/ThirdPartyLibs/Gwen/Controls/SplitterBar.h similarity index 100% rename from btgui/Gwen/Controls/SplitterBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/SplitterBar.h diff --git a/btgui/Gwen/Controls/StatusBar.h b/examples/ThirdPartyLibs/Gwen/Controls/StatusBar.h similarity index 100% rename from btgui/Gwen/Controls/StatusBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/StatusBar.h diff --git a/btgui/Gwen/Controls/Symbol.h b/examples/ThirdPartyLibs/Gwen/Controls/Symbol.h similarity index 100% rename from btgui/Gwen/Controls/Symbol.h rename to examples/ThirdPartyLibs/Gwen/Controls/Symbol.h diff --git a/btgui/Gwen/Controls/TabButton.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TabButton.cpp similarity index 100% rename from btgui/Gwen/Controls/TabButton.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TabButton.cpp diff --git a/btgui/Gwen/Controls/TabButton.h b/examples/ThirdPartyLibs/Gwen/Controls/TabButton.h similarity index 100% rename from btgui/Gwen/Controls/TabButton.h rename to examples/ThirdPartyLibs/Gwen/Controls/TabButton.h diff --git a/btgui/Gwen/Controls/TabControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TabControl.cpp similarity index 100% rename from btgui/Gwen/Controls/TabControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TabControl.cpp diff --git a/btgui/Gwen/Controls/TabControl.h b/examples/ThirdPartyLibs/Gwen/Controls/TabControl.h similarity index 100% rename from btgui/Gwen/Controls/TabControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/TabControl.h diff --git a/btgui/Gwen/Controls/TabStrip.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TabStrip.cpp similarity index 100% rename from btgui/Gwen/Controls/TabStrip.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TabStrip.cpp diff --git a/btgui/Gwen/Controls/TabStrip.h b/examples/ThirdPartyLibs/Gwen/Controls/TabStrip.h similarity index 100% rename from btgui/Gwen/Controls/TabStrip.h rename to examples/ThirdPartyLibs/Gwen/Controls/TabStrip.h diff --git a/btgui/Gwen/Controls/TabTitleBar.h b/examples/ThirdPartyLibs/Gwen/Controls/TabTitleBar.h similarity index 100% rename from btgui/Gwen/Controls/TabTitleBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/TabTitleBar.h diff --git a/btgui/Gwen/Controls/Text.cpp b/examples/ThirdPartyLibs/Gwen/Controls/Text.cpp similarity index 100% rename from btgui/Gwen/Controls/Text.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/Text.cpp diff --git a/btgui/Gwen/Controls/Text.h b/examples/ThirdPartyLibs/Gwen/Controls/Text.h similarity index 100% rename from btgui/Gwen/Controls/Text.h rename to examples/ThirdPartyLibs/Gwen/Controls/Text.h diff --git a/btgui/Gwen/Controls/TextBox.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp similarity index 100% rename from btgui/Gwen/Controls/TextBox.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TextBox.cpp diff --git a/btgui/Gwen/Controls/TextBox.h b/examples/ThirdPartyLibs/Gwen/Controls/TextBox.h similarity index 100% rename from btgui/Gwen/Controls/TextBox.h rename to examples/ThirdPartyLibs/Gwen/Controls/TextBox.h diff --git a/btgui/Gwen/Controls/TextBoxNumeric.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TextBoxNumeric.cpp similarity index 100% rename from btgui/Gwen/Controls/TextBoxNumeric.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TextBoxNumeric.cpp diff --git a/btgui/Gwen/Controls/ToolBar.h b/examples/ThirdPartyLibs/Gwen/Controls/ToolBar.h similarity index 100% rename from btgui/Gwen/Controls/ToolBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/ToolBar.h diff --git a/btgui/Gwen/Controls/TreeControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TreeControl.cpp similarity index 100% rename from btgui/Gwen/Controls/TreeControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TreeControl.cpp diff --git a/btgui/Gwen/Controls/TreeControl.h b/examples/ThirdPartyLibs/Gwen/Controls/TreeControl.h similarity index 100% rename from btgui/Gwen/Controls/TreeControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/TreeControl.h diff --git a/btgui/Gwen/Controls/TreeNode.cpp b/examples/ThirdPartyLibs/Gwen/Controls/TreeNode.cpp similarity index 98% rename from btgui/Gwen/Controls/TreeNode.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/TreeNode.cpp index 0877c8a46..d74d12064 100644 --- a/btgui/Gwen/Controls/TreeNode.cpp +++ b/examples/ThirdPartyLibs/Gwen/Controls/TreeNode.cpp @@ -144,7 +144,8 @@ void TreeNode::Open() m_InnerPanel->Show(); if ( m_ToggleButton ) m_ToggleButton->SetToggleState( true ); Invalidate(); - m_TreeControl->ForceUpdateScrollBars(); + if (m_TreeControl) + m_TreeControl->ForceUpdateScrollBars(); } void TreeNode::Close() @@ -153,7 +154,8 @@ void TreeNode::Close() if ( m_ToggleButton ) m_ToggleButton->SetToggleState( false ); Invalidate(); - m_TreeControl->ForceUpdateScrollBars(); + if (m_TreeControl) + m_TreeControl->ForceUpdateScrollBars(); } void TreeNode::ExpandAll() diff --git a/btgui/Gwen/Controls/TreeNode.h b/examples/ThirdPartyLibs/Gwen/Controls/TreeNode.h similarity index 100% rename from btgui/Gwen/Controls/TreeNode.h rename to examples/ThirdPartyLibs/Gwen/Controls/TreeNode.h diff --git a/btgui/Gwen/Controls/VerticalScrollBar.cpp b/examples/ThirdPartyLibs/Gwen/Controls/VerticalScrollBar.cpp similarity index 100% rename from btgui/Gwen/Controls/VerticalScrollBar.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/VerticalScrollBar.cpp diff --git a/btgui/Gwen/Controls/VerticalScrollBar.h b/examples/ThirdPartyLibs/Gwen/Controls/VerticalScrollBar.h similarity index 100% rename from btgui/Gwen/Controls/VerticalScrollBar.h rename to examples/ThirdPartyLibs/Gwen/Controls/VerticalScrollBar.h diff --git a/btgui/Gwen/Controls/VerticalSlider.cpp b/examples/ThirdPartyLibs/Gwen/Controls/VerticalSlider.cpp similarity index 100% rename from btgui/Gwen/Controls/VerticalSlider.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/VerticalSlider.cpp diff --git a/btgui/Gwen/Controls/VerticalSlider.h b/examples/ThirdPartyLibs/Gwen/Controls/VerticalSlider.h similarity index 100% rename from btgui/Gwen/Controls/VerticalSlider.h rename to examples/ThirdPartyLibs/Gwen/Controls/VerticalSlider.h diff --git a/btgui/Gwen/Controls/WindowControl.cpp b/examples/ThirdPartyLibs/Gwen/Controls/WindowControl.cpp similarity index 100% rename from btgui/Gwen/Controls/WindowControl.cpp rename to examples/ThirdPartyLibs/Gwen/Controls/WindowControl.cpp diff --git a/btgui/Gwen/Controls/WindowControl.h b/examples/ThirdPartyLibs/Gwen/Controls/WindowControl.h similarity index 100% rename from btgui/Gwen/Controls/WindowControl.h rename to examples/ThirdPartyLibs/Gwen/Controls/WindowControl.h diff --git a/btgui/Gwen/DragAndDrop.cpp b/examples/ThirdPartyLibs/Gwen/DragAndDrop.cpp similarity index 100% rename from btgui/Gwen/DragAndDrop.cpp rename to examples/ThirdPartyLibs/Gwen/DragAndDrop.cpp diff --git a/btgui/Gwen/DragAndDrop.h b/examples/ThirdPartyLibs/Gwen/DragAndDrop.h similarity index 100% rename from btgui/Gwen/DragAndDrop.h rename to examples/ThirdPartyLibs/Gwen/DragAndDrop.h diff --git a/btgui/Gwen/Events.h b/examples/ThirdPartyLibs/Gwen/Events.h similarity index 100% rename from btgui/Gwen/Events.h rename to examples/ThirdPartyLibs/Gwen/Events.h diff --git a/btgui/Gwen/Exports.h b/examples/ThirdPartyLibs/Gwen/Exports.h similarity index 100% rename from btgui/Gwen/Exports.h rename to examples/ThirdPartyLibs/Gwen/Exports.h diff --git a/btgui/Gwen/Font.h b/examples/ThirdPartyLibs/Gwen/Font.h similarity index 100% rename from btgui/Gwen/Font.h rename to examples/ThirdPartyLibs/Gwen/Font.h diff --git a/btgui/Gwen/Gwen.cpp b/examples/ThirdPartyLibs/Gwen/Gwen.cpp similarity index 100% rename from btgui/Gwen/Gwen.cpp rename to examples/ThirdPartyLibs/Gwen/Gwen.cpp diff --git a/btgui/Gwen/Gwen.h b/examples/ThirdPartyLibs/Gwen/Gwen.h similarity index 100% rename from btgui/Gwen/Gwen.h rename to examples/ThirdPartyLibs/Gwen/Gwen.h diff --git a/btgui/Gwen/Hook.cpp b/examples/ThirdPartyLibs/Gwen/Hook.cpp similarity index 100% rename from btgui/Gwen/Hook.cpp rename to examples/ThirdPartyLibs/Gwen/Hook.cpp diff --git a/btgui/Gwen/Hook.h b/examples/ThirdPartyLibs/Gwen/Hook.h similarity index 100% rename from btgui/Gwen/Hook.h rename to examples/ThirdPartyLibs/Gwen/Hook.h diff --git a/btgui/Gwen/Input/SDL13.h b/examples/ThirdPartyLibs/Gwen/Input/SDL13.h similarity index 100% rename from btgui/Gwen/Input/SDL13.h rename to examples/ThirdPartyLibs/Gwen/Input/SDL13.h diff --git a/btgui/Gwen/Input/SFML.h b/examples/ThirdPartyLibs/Gwen/Input/SFML.h similarity index 100% rename from btgui/Gwen/Input/SFML.h rename to examples/ThirdPartyLibs/Gwen/Input/SFML.h diff --git a/btgui/Gwen/Input/Windows.h b/examples/ThirdPartyLibs/Gwen/Input/Windows.h similarity index 100% rename from btgui/Gwen/Input/Windows.h rename to examples/ThirdPartyLibs/Gwen/Input/Windows.h diff --git a/btgui/Gwen/InputHandler.h b/examples/ThirdPartyLibs/Gwen/InputHandler.h similarity index 100% rename from btgui/Gwen/InputHandler.h rename to examples/ThirdPartyLibs/Gwen/InputHandler.h diff --git a/btgui/Gwen/Macros.h b/examples/ThirdPartyLibs/Gwen/Macros.h similarity index 100% rename from btgui/Gwen/Macros.h rename to examples/ThirdPartyLibs/Gwen/Macros.h diff --git a/btgui/Gwen/Platform.h b/examples/ThirdPartyLibs/Gwen/Platform.h similarity index 100% rename from btgui/Gwen/Platform.h rename to examples/ThirdPartyLibs/Gwen/Platform.h diff --git a/btgui/Gwen/Platforms/Null.cpp b/examples/ThirdPartyLibs/Gwen/Platforms/Null.cpp similarity index 100% rename from btgui/Gwen/Platforms/Null.cpp rename to examples/ThirdPartyLibs/Gwen/Platforms/Null.cpp diff --git a/btgui/Gwen/Platforms/Windows.cpp b/examples/ThirdPartyLibs/Gwen/Platforms/Windows.cpp similarity index 100% rename from btgui/Gwen/Platforms/Windows.cpp rename to examples/ThirdPartyLibs/Gwen/Platforms/Windows.cpp diff --git a/btgui/Gwen/Renderers/DirectX9.h b/examples/ThirdPartyLibs/Gwen/Renderers/DirectX9.h similarity index 100% rename from btgui/Gwen/Renderers/DirectX9.h rename to examples/ThirdPartyLibs/Gwen/Renderers/DirectX9.h diff --git a/btgui/Gwen/Renderers/FontData.h b/examples/ThirdPartyLibs/Gwen/Renderers/FontData.h similarity index 100% rename from btgui/Gwen/Renderers/FontData.h rename to examples/ThirdPartyLibs/Gwen/Renderers/FontData.h diff --git a/btgui/Gwen/Renderers/GDIPlus.h b/examples/ThirdPartyLibs/Gwen/Renderers/GDIPlus.h similarity index 100% rename from btgui/Gwen/Renderers/GDIPlus.h rename to examples/ThirdPartyLibs/Gwen/Renderers/GDIPlus.h diff --git a/btgui/Gwen/Renderers/OpenGL.h b/examples/ThirdPartyLibs/Gwen/Renderers/OpenGL.h similarity index 100% rename from btgui/Gwen/Renderers/OpenGL.h rename to examples/ThirdPartyLibs/Gwen/Renderers/OpenGL.h diff --git a/btgui/Gwen/Renderers/OpenGL_DebugFont.cpp b/examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.cpp similarity index 98% rename from btgui/Gwen/Renderers/OpenGL_DebugFont.cpp rename to examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.cpp index c8c351b06..bf876b475 100644 --- a/btgui/Gwen/Renderers/OpenGL_DebugFont.cpp +++ b/examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.cpp @@ -5,7 +5,17 @@ #include "Gwen/Texture.h" #include -#include "OpenGLWindow/GlewWindows/GL/glew.h" + +#if defined(__APPLE__) && !defined (VMDMESA) + #include + #include +#else + #ifdef GLEW_STATIC + #include "CustomGL/glew.h" + #else + #include + #endif +#endif #include "FontData.h" @@ -402,4 +412,4 @@ namespace Gwen } } -} \ No newline at end of file +} diff --git a/btgui/Gwen/Renderers/OpenGL_DebugFont.h b/examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.h similarity index 93% rename from btgui/Gwen/Renderers/OpenGL_DebugFont.h rename to examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.h index fa625a30a..021a71443 100644 --- a/btgui/Gwen/Renderers/OpenGL_DebugFont.h +++ b/examples/ThirdPartyLibs/Gwen/Renderers/OpenGL_DebugFont.h @@ -7,8 +7,8 @@ #ifndef GWEN_RENDERERS_OPENGL_DEBUGFONT_H #define GWEN_RENDERERS_OPENGL_DEBUGFONT_H -#include "Gwen/Gwen.h" -#include "Gwen/Renderers/OpenGL.h" +#include "../ThirdPartyLibs/Gwen/Gwen.h" +#include "../ThirdPartyLibs/Gwen/Renderers/OpenGL.h" void restoreOpenGLState(); void saveOpenGLState(int screenWidth, int screenHeight); diff --git a/btgui/Gwen/Renderers/SFML.h b/examples/ThirdPartyLibs/Gwen/Renderers/SFML.h similarity index 100% rename from btgui/Gwen/Renderers/SFML.h rename to examples/ThirdPartyLibs/Gwen/Renderers/SFML.h diff --git a/btgui/Gwen/Skin.cpp b/examples/ThirdPartyLibs/Gwen/Skin.cpp similarity index 100% rename from btgui/Gwen/Skin.cpp rename to examples/ThirdPartyLibs/Gwen/Skin.cpp diff --git a/btgui/Gwen/Skin.h b/examples/ThirdPartyLibs/Gwen/Skin.h similarity index 100% rename from btgui/Gwen/Skin.h rename to examples/ThirdPartyLibs/Gwen/Skin.h diff --git a/btgui/Gwen/Skins/Simple.h b/examples/ThirdPartyLibs/Gwen/Skins/Simple.h similarity index 100% rename from btgui/Gwen/Skins/Simple.h rename to examples/ThirdPartyLibs/Gwen/Skins/Simple.h diff --git a/btgui/Gwen/Skins/TexturedBase.h b/examples/ThirdPartyLibs/Gwen/Skins/TexturedBase.h similarity index 100% rename from btgui/Gwen/Skins/TexturedBase.h rename to examples/ThirdPartyLibs/Gwen/Skins/TexturedBase.h diff --git a/btgui/Gwen/Skins/Texturing.h b/examples/ThirdPartyLibs/Gwen/Skins/Texturing.h similarity index 100% rename from btgui/Gwen/Skins/Texturing.h rename to examples/ThirdPartyLibs/Gwen/Skins/Texturing.h diff --git a/btgui/Gwen/Structures.h b/examples/ThirdPartyLibs/Gwen/Structures.h similarity index 100% rename from btgui/Gwen/Structures.h rename to examples/ThirdPartyLibs/Gwen/Structures.h diff --git a/btgui/Gwen/TextObject.h b/examples/ThirdPartyLibs/Gwen/TextObject.h similarity index 100% rename from btgui/Gwen/TextObject.h rename to examples/ThirdPartyLibs/Gwen/TextObject.h diff --git a/btgui/Gwen/Texture.h b/examples/ThirdPartyLibs/Gwen/Texture.h similarity index 100% rename from btgui/Gwen/Texture.h rename to examples/ThirdPartyLibs/Gwen/Texture.h diff --git a/btgui/Gwen/ToolTip.cpp b/examples/ThirdPartyLibs/Gwen/ToolTip.cpp similarity index 100% rename from btgui/Gwen/ToolTip.cpp rename to examples/ThirdPartyLibs/Gwen/ToolTip.cpp diff --git a/btgui/Gwen/ToolTip.h b/examples/ThirdPartyLibs/Gwen/ToolTip.h similarity index 100% rename from btgui/Gwen/ToolTip.h rename to examples/ThirdPartyLibs/Gwen/ToolTip.h diff --git a/btgui/Gwen/UnitTest/UnitTest.h b/examples/ThirdPartyLibs/Gwen/UnitTest/UnitTest.h similarity index 100% rename from btgui/Gwen/UnitTest/UnitTest.h rename to examples/ThirdPartyLibs/Gwen/UnitTest/UnitTest.h diff --git a/btgui/Gwen/Utility.cpp b/examples/ThirdPartyLibs/Gwen/Utility.cpp similarity index 100% rename from btgui/Gwen/Utility.cpp rename to examples/ThirdPartyLibs/Gwen/Utility.cpp diff --git a/btgui/Gwen/Utility.h b/examples/ThirdPartyLibs/Gwen/Utility.h similarity index 100% rename from btgui/Gwen/Utility.h rename to examples/ThirdPartyLibs/Gwen/Utility.h diff --git a/btgui/Gwen/events.cpp b/examples/ThirdPartyLibs/Gwen/events.cpp similarity index 100% rename from btgui/Gwen/events.cpp rename to examples/ThirdPartyLibs/Gwen/events.cpp diff --git a/btgui/Gwen/inputhandler.cpp b/examples/ThirdPartyLibs/Gwen/inputhandler.cpp similarity index 100% rename from btgui/Gwen/inputhandler.cpp rename to examples/ThirdPartyLibs/Gwen/inputhandler.cpp diff --git a/btgui/Gwen/premake4.lua b/examples/ThirdPartyLibs/Gwen/premake4.lua similarity index 100% rename from btgui/Gwen/premake4.lua rename to examples/ThirdPartyLibs/Gwen/premake4.lua diff --git a/Demos3/Wavefront/README.md b/examples/ThirdPartyLibs/Wavefront/README.md similarity index 100% rename from Demos3/Wavefront/README.md rename to examples/ThirdPartyLibs/Wavefront/README.md diff --git a/Demos3/Wavefront/main.cpp b/examples/ThirdPartyLibs/Wavefront/main.cpp similarity index 100% rename from Demos3/Wavefront/main.cpp rename to examples/ThirdPartyLibs/Wavefront/main.cpp diff --git a/Demos3/Wavefront/premake4.lua b/examples/ThirdPartyLibs/Wavefront/premake4.lua similarity index 100% rename from Demos3/Wavefront/premake4.lua rename to examples/ThirdPartyLibs/Wavefront/premake4.lua diff --git a/Demos3/Wavefront/tiny_obj_loader.cpp b/examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp similarity index 100% rename from Demos3/Wavefront/tiny_obj_loader.cpp rename to examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp diff --git a/Demos3/Wavefront/tiny_obj_loader.h b/examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h similarity index 100% rename from Demos3/Wavefront/tiny_obj_loader.h rename to examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h diff --git a/btgui/minizip/crypt.h b/examples/ThirdPartyLibs/minizip/crypt.h similarity index 100% rename from btgui/minizip/crypt.h rename to examples/ThirdPartyLibs/minizip/crypt.h diff --git a/btgui/minizip/ioapi.c b/examples/ThirdPartyLibs/minizip/ioapi.c similarity index 100% rename from btgui/minizip/ioapi.c rename to examples/ThirdPartyLibs/minizip/ioapi.c diff --git a/btgui/minizip/ioapi.h b/examples/ThirdPartyLibs/minizip/ioapi.h similarity index 100% rename from btgui/minizip/ioapi.h rename to examples/ThirdPartyLibs/minizip/ioapi.h diff --git a/btgui/minizip/unzip.c b/examples/ThirdPartyLibs/minizip/unzip.c similarity index 100% rename from btgui/minizip/unzip.c rename to examples/ThirdPartyLibs/minizip/unzip.c diff --git a/btgui/minizip/unzip.h b/examples/ThirdPartyLibs/minizip/unzip.h similarity index 100% rename from btgui/minizip/unzip.h rename to examples/ThirdPartyLibs/minizip/unzip.h diff --git a/btgui/minizip/zip.c b/examples/ThirdPartyLibs/minizip/zip.c similarity index 100% rename from btgui/minizip/zip.c rename to examples/ThirdPartyLibs/minizip/zip.c diff --git a/btgui/minizip/zip.h b/examples/ThirdPartyLibs/minizip/zip.h similarity index 100% rename from btgui/minizip/zip.h rename to examples/ThirdPartyLibs/minizip/zip.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/X.h b/examples/ThirdPartyLibs/optionalX11/X11/X.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/X.h rename to examples/ThirdPartyLibs/optionalX11/X11/X.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/XKBlib.h b/examples/ThirdPartyLibs/optionalX11/X11/XKBlib.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/XKBlib.h rename to examples/ThirdPartyLibs/optionalX11/X11/XKBlib.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xatom.h b/examples/ThirdPartyLibs/optionalX11/X11/Xatom.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xatom.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xatom.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xfuncproto.h b/examples/ThirdPartyLibs/optionalX11/X11/Xfuncproto.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xfuncproto.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xfuncproto.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xfuncs.h b/examples/ThirdPartyLibs/optionalX11/X11/Xfuncs.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xfuncs.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xfuncs.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xlib.h b/examples/ThirdPartyLibs/optionalX11/X11/Xlib.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xlib.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xlib.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/XlibConf.h b/examples/ThirdPartyLibs/optionalX11/X11/XlibConf.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/XlibConf.h rename to examples/ThirdPartyLibs/optionalX11/X11/XlibConf.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xlibint.h b/examples/ThirdPartyLibs/optionalX11/X11/Xlibint.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xlibint.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xlibint.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xmd.h b/examples/ThirdPartyLibs/optionalX11/X11/Xmd.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xmd.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xmd.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xosdefs.h b/examples/ThirdPartyLibs/optionalX11/X11/Xosdefs.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xosdefs.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xosdefs.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xproto.h b/examples/ThirdPartyLibs/optionalX11/X11/Xproto.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xproto.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xproto.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xprotostr.h b/examples/ThirdPartyLibs/optionalX11/X11/Xprotostr.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xprotostr.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xprotostr.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/Xutil.h b/examples/ThirdPartyLibs/optionalX11/X11/Xutil.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/Xutil.h rename to examples/ThirdPartyLibs/optionalX11/X11/Xutil.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/cursorfont.h b/examples/ThirdPartyLibs/optionalX11/X11/cursorfont.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/cursorfont.h rename to examples/ThirdPartyLibs/optionalX11/X11/cursorfont.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/XKB.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/XKB.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/XKB.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/XKB.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/XKBstr.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/XKBstr.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/XKBstr.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/XKBstr.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/XShm.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/XShm.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/XShm.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/XShm.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/Xext.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/Xext.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/Xext.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/Xext.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/extutil.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/extutil.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/extutil.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/extutil.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/shape.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/shape.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/shape.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/shape.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/shapeconst.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/shapeconst.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/shapeconst.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/shapeconst.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/extensions/shm.h b/examples/ThirdPartyLibs/optionalX11/X11/extensions/shm.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/extensions/shm.h rename to examples/ThirdPartyLibs/optionalX11/X11/extensions/shm.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/keysym.h b/examples/ThirdPartyLibs/optionalX11/X11/keysym.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/keysym.h rename to examples/ThirdPartyLibs/optionalX11/X11/keysym.h diff --git a/btgui/OpenGLWindow/optionalX11/X11/keysymdef.h b/examples/ThirdPartyLibs/optionalX11/X11/keysymdef.h similarity index 100% rename from btgui/OpenGLWindow/optionalX11/X11/keysymdef.h rename to examples/ThirdPartyLibs/optionalX11/X11/keysymdef.h diff --git a/Demos/OpenGL/stb_image.cpp b/examples/ThirdPartyLibs/stb_image/stb_image.cpp similarity index 100% rename from Demos/OpenGL/stb_image.cpp rename to examples/ThirdPartyLibs/stb_image/stb_image.cpp diff --git a/Demos/OpenGL/stb_image.h b/examples/ThirdPartyLibs/stb_image/stb_image.h similarity index 100% rename from Demos/OpenGL/stb_image.h rename to examples/ThirdPartyLibs/stb_image/stb_image.h diff --git a/btgui/tinyxml/tinystr.cpp b/examples/ThirdPartyLibs/tinyxml/tinystr.cpp old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinystr.cpp rename to examples/ThirdPartyLibs/tinyxml/tinystr.cpp diff --git a/btgui/tinyxml/tinystr.h b/examples/ThirdPartyLibs/tinyxml/tinystr.h old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinystr.h rename to examples/ThirdPartyLibs/tinyxml/tinystr.h diff --git a/btgui/tinyxml/tinyxml.cpp b/examples/ThirdPartyLibs/tinyxml/tinyxml.cpp old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinyxml.cpp rename to examples/ThirdPartyLibs/tinyxml/tinyxml.cpp diff --git a/btgui/tinyxml/tinyxml.h b/examples/ThirdPartyLibs/tinyxml/tinyxml.h old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinyxml.h rename to examples/ThirdPartyLibs/tinyxml/tinyxml.h diff --git a/btgui/tinyxml/tinyxmlerror.cpp b/examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinyxmlerror.cpp rename to examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp diff --git a/btgui/tinyxml/tinyxmlparser.cpp b/examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp old mode 100755 new mode 100644 similarity index 100% rename from btgui/tinyxml/tinyxmlparser.cpp rename to examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp diff --git a/btgui/urdf/boost_replacement/lexical_cast.h b/examples/ThirdPartyLibs/urdf/boost_replacement/lexical_cast.h similarity index 100% rename from btgui/urdf/boost_replacement/lexical_cast.h rename to examples/ThirdPartyLibs/urdf/boost_replacement/lexical_cast.h diff --git a/btgui/urdf/boost_replacement/printf_console.cpp b/examples/ThirdPartyLibs/urdf/boost_replacement/printf_console.cpp similarity index 100% rename from btgui/urdf/boost_replacement/printf_console.cpp rename to examples/ThirdPartyLibs/urdf/boost_replacement/printf_console.cpp diff --git a/btgui/urdf/boost_replacement/printf_console.h b/examples/ThirdPartyLibs/urdf/boost_replacement/printf_console.h similarity index 100% rename from btgui/urdf/boost_replacement/printf_console.h rename to examples/ThirdPartyLibs/urdf/boost_replacement/printf_console.h diff --git a/btgui/urdf/boost_replacement/shared_ptr.h b/examples/ThirdPartyLibs/urdf/boost_replacement/shared_ptr.h similarity index 100% rename from btgui/urdf/boost_replacement/shared_ptr.h rename to examples/ThirdPartyLibs/urdf/boost_replacement/shared_ptr.h diff --git a/btgui/urdf/boost_replacement/string_split.cpp b/examples/ThirdPartyLibs/urdf/boost_replacement/string_split.cpp similarity index 100% rename from btgui/urdf/boost_replacement/string_split.cpp rename to examples/ThirdPartyLibs/urdf/boost_replacement/string_split.cpp diff --git a/btgui/urdf/boost_replacement/string_split.h b/examples/ThirdPartyLibs/urdf/boost_replacement/string_split.h similarity index 100% rename from btgui/urdf/boost_replacement/string_split.h rename to examples/ThirdPartyLibs/urdf/boost_replacement/string_split.h diff --git a/btgui/urdf/premake4.lua b/examples/ThirdPartyLibs/urdf/premake4.lua similarity index 100% rename from btgui/urdf/premake4.lua rename to examples/ThirdPartyLibs/urdf/premake4.lua diff --git a/btgui/urdf/urdfdom/LICENSE b/examples/ThirdPartyLibs/urdf/urdfdom/LICENSE similarity index 100% rename from btgui/urdf/urdfdom/LICENSE rename to examples/ThirdPartyLibs/urdf/urdfdom/LICENSE diff --git a/btgui/urdf/urdfdom/README.txt b/examples/ThirdPartyLibs/urdf/urdfdom/README.txt similarity index 100% rename from btgui/urdf/urdfdom/README.txt rename to examples/ThirdPartyLibs/urdf/urdfdom/README.txt diff --git a/btgui/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/include/urdf_parser/urdf_parser.h diff --git a/btgui/urdf/urdfdom/urdf_parser/src/check_urdf.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/check_urdf.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/check_urdf.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/check_urdf.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/joint.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/joint.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/joint.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/joint.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/link.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/link.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/link.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/link.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/model.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/model.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/model.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/model.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/pose.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/pose.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/pose.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/pose.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/twist.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/twist.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/twist.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/twist.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/urdf_model_state.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/urdf_model_state.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/urdf_model_state.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/urdf_model_state.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/urdf_sensor.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/urdf_sensor.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/urdf_sensor.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/urdf_sensor.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/src/world.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/world.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/src/world.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/src/world.cpp diff --git a/btgui/urdf/urdfdom/urdf_parser/test/memtest.cpp b/examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/test/memtest.cpp similarity index 100% rename from btgui/urdf/urdfdom/urdf_parser/test/memtest.cpp rename to examples/ThirdPartyLibs/urdf/urdfdom/urdf_parser/test/memtest.cpp diff --git a/btgui/urdf/urdfdom_headers/LICENSE b/examples/ThirdPartyLibs/urdf/urdfdom_headers/LICENSE similarity index 100% rename from btgui/urdf/urdfdom_headers/LICENSE rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/LICENSE diff --git a/btgui/urdf/urdfdom_headers/README.txt b/examples/ThirdPartyLibs/urdf/urdfdom_headers/README.txt similarity index 100% rename from btgui/urdf/urdfdom_headers/README.txt rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/README.txt diff --git a/btgui/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_exception/include/urdf_exception/exception.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/color.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/color.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/color.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/color.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/joint.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/link.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/model.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/pose.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/twist.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/twist.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model/include/urdf_model/twist.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model/include/urdf_model/twist.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/model_state.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/model_state.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/model_state.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/model_state.h diff --git a/btgui/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/twist.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/twist.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/twist.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_model_state/include/urdf_model_state/twist.h diff --git a/btgui/urdf/urdfdom_headers/urdf_sensor/include/urdf_sensor/sensor.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_sensor/include/urdf_sensor/sensor.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_sensor/include/urdf_sensor/sensor.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_sensor/include/urdf_sensor/sensor.h diff --git a/btgui/urdf/urdfdom_headers/urdf_world/include/urdf_world/world.h b/examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_world/include/urdf_world/world.h similarity index 100% rename from btgui/urdf/urdfdom_headers/urdf_world/include/urdf_world/world.h rename to examples/ThirdPartyLibs/urdf/urdfdom_headers/urdf_world/include/urdf_world/world.h diff --git a/btgui/zlib/adler32.c b/examples/ThirdPartyLibs/zlib/adler32.c similarity index 100% rename from btgui/zlib/adler32.c rename to examples/ThirdPartyLibs/zlib/adler32.c diff --git a/btgui/zlib/compress.c b/examples/ThirdPartyLibs/zlib/compress.c similarity index 100% rename from btgui/zlib/compress.c rename to examples/ThirdPartyLibs/zlib/compress.c diff --git a/btgui/zlib/crc32.c b/examples/ThirdPartyLibs/zlib/crc32.c similarity index 100% rename from btgui/zlib/crc32.c rename to examples/ThirdPartyLibs/zlib/crc32.c diff --git a/btgui/zlib/crc32.h b/examples/ThirdPartyLibs/zlib/crc32.h similarity index 100% rename from btgui/zlib/crc32.h rename to examples/ThirdPartyLibs/zlib/crc32.h diff --git a/btgui/zlib/deflate.c b/examples/ThirdPartyLibs/zlib/deflate.c similarity index 100% rename from btgui/zlib/deflate.c rename to examples/ThirdPartyLibs/zlib/deflate.c diff --git a/btgui/zlib/deflate.h b/examples/ThirdPartyLibs/zlib/deflate.h similarity index 100% rename from btgui/zlib/deflate.h rename to examples/ThirdPartyLibs/zlib/deflate.h diff --git a/btgui/zlib/gzclose.c b/examples/ThirdPartyLibs/zlib/gzclose.c similarity index 100% rename from btgui/zlib/gzclose.c rename to examples/ThirdPartyLibs/zlib/gzclose.c diff --git a/btgui/zlib/gzguts.h b/examples/ThirdPartyLibs/zlib/gzguts.h similarity index 100% rename from btgui/zlib/gzguts.h rename to examples/ThirdPartyLibs/zlib/gzguts.h diff --git a/btgui/zlib/gzlib.c b/examples/ThirdPartyLibs/zlib/gzlib.c similarity index 100% rename from btgui/zlib/gzlib.c rename to examples/ThirdPartyLibs/zlib/gzlib.c diff --git a/btgui/zlib/gzread.c b/examples/ThirdPartyLibs/zlib/gzread.c similarity index 100% rename from btgui/zlib/gzread.c rename to examples/ThirdPartyLibs/zlib/gzread.c diff --git a/btgui/zlib/gzwrite.c b/examples/ThirdPartyLibs/zlib/gzwrite.c similarity index 100% rename from btgui/zlib/gzwrite.c rename to examples/ThirdPartyLibs/zlib/gzwrite.c diff --git a/btgui/zlib/infback.c b/examples/ThirdPartyLibs/zlib/infback.c similarity index 100% rename from btgui/zlib/infback.c rename to examples/ThirdPartyLibs/zlib/infback.c diff --git a/btgui/zlib/inffast.c b/examples/ThirdPartyLibs/zlib/inffast.c similarity index 100% rename from btgui/zlib/inffast.c rename to examples/ThirdPartyLibs/zlib/inffast.c diff --git a/btgui/zlib/inffast.h b/examples/ThirdPartyLibs/zlib/inffast.h similarity index 100% rename from btgui/zlib/inffast.h rename to examples/ThirdPartyLibs/zlib/inffast.h diff --git a/btgui/zlib/inffixed.h b/examples/ThirdPartyLibs/zlib/inffixed.h similarity index 100% rename from btgui/zlib/inffixed.h rename to examples/ThirdPartyLibs/zlib/inffixed.h diff --git a/btgui/zlib/inflate.c b/examples/ThirdPartyLibs/zlib/inflate.c similarity index 100% rename from btgui/zlib/inflate.c rename to examples/ThirdPartyLibs/zlib/inflate.c diff --git a/btgui/zlib/inflate.h b/examples/ThirdPartyLibs/zlib/inflate.h similarity index 100% rename from btgui/zlib/inflate.h rename to examples/ThirdPartyLibs/zlib/inflate.h diff --git a/btgui/zlib/inftrees.c b/examples/ThirdPartyLibs/zlib/inftrees.c similarity index 100% rename from btgui/zlib/inftrees.c rename to examples/ThirdPartyLibs/zlib/inftrees.c diff --git a/btgui/zlib/inftrees.h b/examples/ThirdPartyLibs/zlib/inftrees.h similarity index 100% rename from btgui/zlib/inftrees.h rename to examples/ThirdPartyLibs/zlib/inftrees.h diff --git a/btgui/zlib/trees.c b/examples/ThirdPartyLibs/zlib/trees.c similarity index 100% rename from btgui/zlib/trees.c rename to examples/ThirdPartyLibs/zlib/trees.c diff --git a/btgui/zlib/trees.h b/examples/ThirdPartyLibs/zlib/trees.h similarity index 100% rename from btgui/zlib/trees.h rename to examples/ThirdPartyLibs/zlib/trees.h diff --git a/btgui/zlib/uncompr.c b/examples/ThirdPartyLibs/zlib/uncompr.c similarity index 100% rename from btgui/zlib/uncompr.c rename to examples/ThirdPartyLibs/zlib/uncompr.c diff --git a/btgui/zlib/zconf.h b/examples/ThirdPartyLibs/zlib/zconf.h similarity index 100% rename from btgui/zlib/zconf.h rename to examples/ThirdPartyLibs/zlib/zconf.h diff --git a/btgui/zlib/zlib.h b/examples/ThirdPartyLibs/zlib/zlib.h similarity index 100% rename from btgui/zlib/zlib.h rename to examples/ThirdPartyLibs/zlib/zlib.h diff --git a/btgui/zlib/zutil.c b/examples/ThirdPartyLibs/zlib/zutil.c similarity index 100% rename from btgui/zlib/zutil.c rename to examples/ThirdPartyLibs/zlib/zutil.c diff --git a/btgui/zlib/zutil.h b/examples/ThirdPartyLibs/zlib/zutil.h similarity index 100% rename from btgui/zlib/zutil.h rename to examples/ThirdPartyLibs/zlib/zutil.h diff --git a/btgui/Bullet3AppSupport/b3Clock.cpp b/examples/Utils/b3Clock.cpp similarity index 100% rename from btgui/Bullet3AppSupport/b3Clock.cpp rename to examples/Utils/b3Clock.cpp diff --git a/btgui/Bullet3AppSupport/b3Clock.h b/examples/Utils/b3Clock.h similarity index 100% rename from btgui/Bullet3AppSupport/b3Clock.h rename to examples/Utils/b3Clock.h diff --git a/btgui/Bullet3AppSupport/b3Quickprof.cpp b/examples/Utils/b3Quickprof.cpp similarity index 100% rename from btgui/Bullet3AppSupport/b3Quickprof.cpp rename to examples/Utils/b3Quickprof.cpp diff --git a/btgui/Bullet3AppSupport/b3Quickprof.h b/examples/Utils/b3Quickprof.h similarity index 100% rename from btgui/Bullet3AppSupport/b3Quickprof.h rename to examples/Utils/b3Quickprof.h diff --git a/examples/Vehicles/Hinge2Vehicle.cpp b/examples/Vehicles/Hinge2Vehicle.cpp new file mode 100644 index 000000000..ec4f7fcbd --- /dev/null +++ b/examples/Vehicles/Hinge2Vehicle.cpp @@ -0,0 +1,1176 @@ +/* +Bullet Continuous Collision Detection and Physics Library +Copyright (c) 2003-2015 Erwin Coumans http://bulletphysics.org + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + +///May 2015: implemented the wheels using the Hinge2Constraint +///todo: add controls for the motors etc. + +#include "Hinge2Vehicle.h" + +#include "btBulletDynamicsCommon.h" +#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" + + +#include "BulletDynamics/MLCPSolvers/btDantzigSolver.h" +#include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h" +#include "BulletDynamics/MLCPSolvers/btMLCPSolver.h" + +class btVehicleTuning; + +class btCollisionShape; + + +#include "BulletDynamics/ConstraintSolver/btHingeConstraint.h" +#include "BulletDynamics/ConstraintSolver/btSliderConstraint.h" + +#include "../CommonInterfaces/CommonExampleInterface.h" +#include "LinearMath/btAlignedObjectArray.h" +#include "btBulletCollisionCommon.h" +#include "../CommonInterfaces/CommonGUIHelperInterface.h" +#include "../CommonInterfaces/CommonRenderInterface.h" +#include "../CommonInterfaces/CommonWindowInterface.h" +#include "../CommonInterfaces/CommonGraphicsAppInterface.h" + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + +class Hinge2Vehicle : public CommonRigidBodyBase +{ + public: + + /* extra stuff*/ + btVector3 m_cameraPosition; + + btRigidBody* m_carChassis; + btRigidBody* localCreateRigidBody(btScalar mass, const btTransform& worldTransform, btCollisionShape* colSape); + + GUIHelperInterface* m_guiHelper; + int m_wheelInstances[4]; + +//---------------------------- + btRigidBody* m_liftBody; + btVector3 m_liftStartPos; + btHingeConstraint* m_liftHinge; + + btRigidBody* m_forkBody; + btVector3 m_forkStartPos; + btSliderConstraint* m_forkSlider; + + btRigidBody* m_loadBody; + btVector3 m_loadStartPos; + + void lockLiftHinge(void); + void lockForkSlider(void); + + bool m_useDefaultCamera; +//---------------------------- + + + class btTriangleIndexVertexArray* m_indexVertexArrays; + + btVector3* m_vertices; + + + + btCollisionShape* m_wheelShape; + + float m_cameraHeight; + + float m_minCameraDistance; + float m_maxCameraDistance; + + + Hinge2Vehicle(struct GUIHelperInterface* helper); + + virtual ~Hinge2Vehicle(); + + virtual void stepSimulation(float deltaTime); + + virtual void resetForklift(); + + virtual void clientResetScene(); + + virtual void displayCallback(); + + + virtual void specialKeyboard(int key, int x, int y); + + virtual void specialKeyboardUp(int key, int x, int y); + + + virtual bool keyboardCallback(int key, int state); + + virtual void renderScene(); + + virtual void physicsDebugDraw(int debugFlags); + + + void initPhysics(); + void exitPhysics(); + + /*static DemoApplication* Create() + { + Hinge2Vehicle* demo = new Hinge2Vehicle(); + demo->myinit(); + demo->initPhysics(); + return demo; + } + */ +}; + + +static btScalar maxMotorImpulse = 4000.f; + +//the sequential impulse solver has difficulties dealing with large mass ratios (differences), between loadMass and the fork parts +static btScalar loadMass = 350.f;// +//btScalar loadMass = 10.f;//this should work fine for the SI solver + + +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + +#ifndef M_PI_2 +#define M_PI_2 1.57079632679489661923 +#endif + +#ifndef M_PI_4 +#define M_PI_4 0.785398163397448309616 +#endif + + +static int rightIndex = 0; +static int upIndex = 1; +static int forwardIndex = 2; +static btVector3 wheelDirectionCS0(0,-1,0); +static btVector3 wheelAxleCS(-1,0,0); + +static bool useMCLPSolver = false;//true; + + +#include //printf debugging + + +#include "Hinge2Vehicle.h" + + +static const int maxProxies = 32766; +static const int maxOverlap = 65535; + +static float gEngineForce = 0.f; + +static float defaultBreakingForce = 10.f; +static float gBreakingForce = 100.f; + +static float maxEngineForce = 1000.f;//this should be engine/velocity dependent +static float maxBreakingForce = 100.f; + +static float gVehicleSteering = 0.f; +static float steeringIncrement = 0.04f; +static float steeringClamp = 0.3f; +static float wheelRadius = 0.5f; +static float wheelWidth = 0.4f; +static float wheelFriction = 1000;//BT_LARGE_FLOAT; +static float suspensionStiffness = 20.f; +static float suspensionDamping = 2.3f; +static float suspensionCompression = 4.4f; +static float rollInfluence = 0.1f;//1.0f; + + +static btScalar suspensionRestLength(0.6); + +#define CUBE_HALF_EXTENTS 1 + + + +//////////////////////////////////// + + + + +Hinge2Vehicle::Hinge2Vehicle(struct GUIHelperInterface* helper) +:CommonRigidBodyBase(helper), +m_guiHelper(helper), +m_carChassis(0), +m_liftBody(0), +m_forkBody(0), +m_loadBody(0), +m_indexVertexArrays(0), +m_vertices(0), +m_cameraHeight(4.f), +m_minCameraDistance(3.f), +m_maxCameraDistance(10.f) +{ + helper->setUpAxis(1); + + m_wheelShape = 0; + m_cameraPosition = btVector3(30,30,30); + m_useDefaultCamera = false; +// setTexturing(true); +// setShadows(true); + +} + + +void Hinge2Vehicle::exitPhysics() +{ + //cleanup in the reverse order of creation/initialization + + //remove the rigidbodies from the dynamics world and delete them + int i; + for (i=m_dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) + { + btCollisionObject* obj = m_dynamicsWorld->getCollisionObjectArray()[i]; + btRigidBody* body = btRigidBody::upcast(obj); + if (body && body->getMotionState()) + { + + while (body->getNumConstraintRefs()) + { + btTypedConstraint* constraint = body->getConstraintRef(0); + m_dynamicsWorld->removeConstraint(constraint); + delete constraint; + } + delete body->getMotionState(); + m_dynamicsWorld->removeRigidBody(body); + } else + { + m_dynamicsWorld->removeCollisionObject( obj ); + } + delete obj; + } + + //delete collision shapes + for (int j=0;jsetUpAxis(1); + + shadowMapWorldSize = 10; + + btCollisionShape* groundShape = new btBoxShape(btVector3(50,3,50)); + m_collisionShapes.push_back(groundShape); + m_collisionConfiguration = new btDefaultCollisionConfiguration(); + m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration); + btVector3 worldMin(-1000,-1000,-1000); + btVector3 worldMax(1000,1000,1000); + m_broadphase = new btAxisSweep3(worldMin,worldMax); + if (useMCLPSolver) + { + btDantzigSolver* mlcp = new btDantzigSolver(); + //btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; + btMLCPSolver* sol = new btMLCPSolver(mlcp); + m_solver = sol; + } else + { + m_solver = new btSequentialImpulseConstraintSolver(); + } + m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); + if (useMCLPSolver) + { + m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 1;//for direct solver it is better to have a small A matrix + } else + { + m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 128;//for direct solver, it is better to solve multiple objects together, small batches have high overhead + } + m_dynamicsWorld->getSolverInfo().m_numIterations = 100; + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + + + //m_dynamicsWorld->setGravity(btVector3(0,0,0)); +btTransform tr; +tr.setIdentity(); +tr.setOrigin(btVector3(0,-3,0)); + +//either use heightfield or triangle mesh + + + //create ground object + localCreateRigidBody(0,tr,groundShape); + + btCollisionShape* chassisShape = new btBoxShape(btVector3(1.f,0.5f,2.f)); + m_collisionShapes.push_back(chassisShape); + + btCompoundShape* compound = new btCompoundShape(); + m_collisionShapes.push_back(compound); + btTransform localTrans; + localTrans.setIdentity(); + //localTrans effectively shifts the center of mass with respect to the chassis + localTrans.setOrigin(btVector3(0,1,0)); + + compound->addChildShape(localTrans,chassisShape); + + { + btCollisionShape* suppShape = new btBoxShape(btVector3(0.5f,0.1f,0.5f)); + btTransform suppLocalTrans; + suppLocalTrans.setIdentity(); + //localTrans effectively shifts the center of mass with respect to the chassis + suppLocalTrans.setOrigin(btVector3(0,1.0,2.5)); + compound->addChildShape(suppLocalTrans, suppShape); + } + + tr.setOrigin(btVector3(0,0.f,0)); + + btScalar chassisMass = 800; + m_carChassis = localCreateRigidBody(chassisMass,tr,compound);//chassisShape); + //m_carChassis->setDamping(0.2,0.2); + + //m_wheelShape = new btCylinderShapeX(btVector3(wheelWidth,wheelRadius,wheelRadius)); + m_wheelShape = new btCylinderShapeX(btVector3(wheelWidth,wheelRadius,wheelRadius)); + + + const float position[4]={0,10,10,0}; + const float quaternion[4]={0,0,0,1}; + const float color[4]={0,1,0,1}; + const float scaling[4] = {1,1,1,1}; + + btVector3 wheelPos[4] = { + btVector3(btScalar(-1.), btScalar(-0.25), btScalar(1.25)), + btVector3(btScalar(1.), btScalar(-0.25), btScalar(1.25)), + btVector3(btScalar(1.), btScalar(-0.25), btScalar(-1.25)), + btVector3(btScalar(-1.), btScalar(-0.25), btScalar(-1.25)) + }; + + + for (int i=0;i<4;i++) + { + // create a Hinge2 joint + // create two rigid bodies + // static bodyA (parent) on top: + + + btRigidBody* pBodyA = this->m_carChassis;//m_chassis;//createRigidBody( 0.0, tr, m_wheelShape); + pBodyA->setActivationState(DISABLE_DEACTIVATION); + // dynamic bodyB (child) below it : + btTransform tr; + tr.setIdentity(); + tr.setOrigin(wheelPos[i]); + + btRigidBody* pBodyB = createRigidBody(10.0, tr, m_wheelShape); + pBodyB->setFriction(1110); + pBodyB->setActivationState(DISABLE_DEACTIVATION); + // add some data to build constraint frames + btVector3 parentAxis(0.f, 1.f, 0.f); + btVector3 childAxis(1.f, 0.f, 0.f); + btVector3 anchor = tr.getOrigin();//(0.f, 0.f, 0.f); + btHinge2Constraint* pHinge2 = new btHinge2Constraint(*pBodyA, *pBodyB, anchor, parentAxis, childAxis); + + //m_guiHelper->get2dCanvasInterface(); + + + pHinge2->setLowerLimit(-SIMD_HALF_PI * 0.5f); + pHinge2->setUpperLimit( SIMD_HALF_PI * 0.5f); + // add constraint to world + m_dynamicsWorld->addConstraint(pHinge2, true); + // draw constraint frames and limits for debugging + { + int motorAxis = 3; + pHinge2->enableMotor(motorAxis,true); + pHinge2->setMaxMotorForce(motorAxis,1000); + pHinge2->setTargetVelocity(motorAxis,-1); + } + + { + int motorAxis = 5; + pHinge2->enableMotor(motorAxis,true); + pHinge2->setMaxMotorForce(motorAxis,1000); + pHinge2->setTargetVelocity(motorAxis,0); + } + + pHinge2->setDbgDrawSize(btScalar(5.f)); + } + + + { + btCollisionShape* liftShape = new btBoxShape(btVector3(0.5f,2.0f,0.05f)); + m_collisionShapes.push_back(liftShape); + btTransform liftTrans; + m_liftStartPos = btVector3(0.0f, 2.5f, 3.05f); + liftTrans.setIdentity(); + liftTrans.setOrigin(m_liftStartPos); + m_liftBody = localCreateRigidBody(10,liftTrans, liftShape); + + btTransform localA, localB; + localA.setIdentity(); + localB.setIdentity(); + localA.getBasis().setEulerZYX(0, M_PI_2, 0); + localA.setOrigin(btVector3(0.0, 1.0, 3.05)); + localB.getBasis().setEulerZYX(0, M_PI_2, 0); + localB.setOrigin(btVector3(0.0, -1.5, -0.05)); + m_liftHinge = new btHingeConstraint(*m_carChassis,*m_liftBody, localA, localB); +// m_liftHinge->setLimit(-LIFT_EPS, LIFT_EPS); + m_liftHinge->setLimit(0.0f, 0.0f); + m_dynamicsWorld->addConstraint(m_liftHinge, true); + + btCollisionShape* forkShapeA = new btBoxShape(btVector3(1.0f,0.1f,0.1f)); + m_collisionShapes.push_back(forkShapeA); + btCompoundShape* forkCompound = new btCompoundShape(); + m_collisionShapes.push_back(forkCompound); + btTransform forkLocalTrans; + forkLocalTrans.setIdentity(); + forkCompound->addChildShape(forkLocalTrans, forkShapeA); + + btCollisionShape* forkShapeB = new btBoxShape(btVector3(0.1f,0.02f,0.6f)); + m_collisionShapes.push_back(forkShapeB); + forkLocalTrans.setIdentity(); + forkLocalTrans.setOrigin(btVector3(-0.9f, -0.08f, 0.7f)); + forkCompound->addChildShape(forkLocalTrans, forkShapeB); + + btCollisionShape* forkShapeC = new btBoxShape(btVector3(0.1f,0.02f,0.6f)); + m_collisionShapes.push_back(forkShapeC); + forkLocalTrans.setIdentity(); + forkLocalTrans.setOrigin(btVector3(0.9f, -0.08f, 0.7f)); + forkCompound->addChildShape(forkLocalTrans, forkShapeC); + + btTransform forkTrans; + m_forkStartPos = btVector3(0.0f, 0.6f, 3.2f); + forkTrans.setIdentity(); + forkTrans.setOrigin(m_forkStartPos); + m_forkBody = localCreateRigidBody(5, forkTrans, forkCompound); + + localA.setIdentity(); + localB.setIdentity(); + localA.getBasis().setEulerZYX(0, 0, M_PI_2); + localA.setOrigin(btVector3(0.0f, -1.9f, 0.05f)); + localB.getBasis().setEulerZYX(0, 0, M_PI_2); + localB.setOrigin(btVector3(0.0, 0.0, -0.1)); + m_forkSlider = new btSliderConstraint(*m_liftBody, *m_forkBody, localA, localB, true); + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(0.1f); +// m_forkSlider->setLowerAngLimit(-LIFT_EPS); +// m_forkSlider->setUpperAngLimit(LIFT_EPS); + m_forkSlider->setLowerAngLimit(0.0f); + m_forkSlider->setUpperAngLimit(0.0f); + m_dynamicsWorld->addConstraint(m_forkSlider, true); + + + btCompoundShape* loadCompound = new btCompoundShape(); + m_collisionShapes.push_back(loadCompound); + btCollisionShape* loadShapeA = new btBoxShape(btVector3(2.0f,0.5f,0.5f)); + m_collisionShapes.push_back(loadShapeA); + btTransform loadTrans; + loadTrans.setIdentity(); + loadCompound->addChildShape(loadTrans, loadShapeA); + btCollisionShape* loadShapeB = new btBoxShape(btVector3(0.1f,1.0f,1.0f)); + m_collisionShapes.push_back(loadShapeB); + loadTrans.setIdentity(); + loadTrans.setOrigin(btVector3(2.1f, 0.0f, 0.0f)); + loadCompound->addChildShape(loadTrans, loadShapeB); + btCollisionShape* loadShapeC = new btBoxShape(btVector3(0.1f,1.0f,1.0f)); + m_collisionShapes.push_back(loadShapeC); + loadTrans.setIdentity(); + loadTrans.setOrigin(btVector3(-2.1f, 0.0f, 0.0f)); + loadCompound->addChildShape(loadTrans, loadShapeC); + loadTrans.setIdentity(); + m_loadStartPos = btVector3(0.0f, 3.5f, 7.0f); + loadTrans.setOrigin(m_loadStartPos); + m_loadBody = localCreateRigidBody(loadMass, loadTrans, loadCompound); + } + + + + + resetForklift(); + +// setCameraDistance(26.f); + + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); +} + +void Hinge2Vehicle::physicsDebugDraw(int debugFlags) +{ + if (m_dynamicsWorld && m_dynamicsWorld->getDebugDrawer()) + { + m_dynamicsWorld->getDebugDrawer()->setDebugMode(debugFlags); + m_dynamicsWorld->debugDrawWorld(); + } +} + +//to be implemented by the demo +void Hinge2Vehicle::renderScene() +{ + m_guiHelper->syncPhysicsToGraphics(m_dynamicsWorld); +#if 0 + for (int i=0;igetNumWheels();i++) + { + //synchronize the wheels with the (interpolated) chassis worldtransform + m_vehicle->updateWheelTransform(i,true); + + CommonRenderInterface* renderer = m_guiHelper->getRenderInterface(); + if (renderer) + { + btTransform tr = m_vehicle->getWheelInfo(i).m_worldTransform; + btVector3 pos=tr.getOrigin(); + btQuaternion orn = tr.getRotation(); + renderer->writeSingleInstanceTransformToCPU(pos,orn,m_wheelInstances[i]); + } + } +#endif + + m_guiHelper->render(m_dynamicsWorld); + + + + ATTRIBUTE_ALIGNED16(btScalar) m[16]; + int i; + + btVector3 wheelColor(1,0,0); + + btVector3 worldBoundsMin,worldBoundsMax; + getDynamicsWorld()->getBroadphase()->getBroadphaseAabb(worldBoundsMin,worldBoundsMax); + + + + +#if 0 + int lineWidth=400; + int xStart = m_glutScreenWidth - lineWidth; + int yStart = 20; + + if((getDebugMode() & btIDebugDraw::DBG_NoHelpText)==0) + { + setOrthographicProjection(); + glDisable(GL_LIGHTING); + glColor3f(0, 0, 0); + char buf[124]; + + sprintf(buf,"SHIFT+Cursor Left/Right - rotate lift"); + GLDebugDrawString(xStart,20,buf); + yStart+=20; + sprintf(buf,"SHIFT+Cursor UP/Down - fork up/down"); + yStart+=20; + GLDebugDrawString(xStart,yStart,buf); + + if (m_useDefaultCamera) + { + sprintf(buf,"F5 - camera mode (free)"); + } else + { + sprintf(buf,"F5 - camera mode (follow)"); + } + yStart+=20; + GLDebugDrawString(xStart,yStart,buf); + + yStart+=20; + if (m_dynamicsWorld->getConstraintSolver()->getSolverType()==BT_MLCP_SOLVER) + { + sprintf(buf,"F6 - solver (direct MLCP)"); + } else + { + sprintf(buf,"F6 - solver (sequential impulse)"); + } + GLDebugDrawString(xStart,yStart,buf); + btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*) m_dynamicsWorld; + if (world->getLatencyMotionStateInterpolation()) + { + sprintf(buf,"F7 - motionstate interpolation (on)"); + } else + { + sprintf(buf,"F7 - motionstate interpolation (off)"); + } + yStart+=20; + GLDebugDrawString(xStart,yStart,buf); + + sprintf(buf,"Click window for keyboard focus"); + yStart+=20; + GLDebugDrawString(xStart,yStart,buf); + + + resetPerspectiveProjection(); + glEnable(GL_LIGHTING); + } +#endif +} + +void Hinge2Vehicle::stepSimulation(float deltaTime) +{ + + //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + +#if 0 + { + int wheelIndex = 2; + m_vehicle->applyEngineForce(gEngineForce,wheelIndex); + m_vehicle->setBrake(gBreakingForce,wheelIndex); + wheelIndex = 3; + m_vehicle->applyEngineForce(gEngineForce,wheelIndex); + m_vehicle->setBrake(gBreakingForce,wheelIndex); + + + wheelIndex = 0; + m_vehicle->setSteeringValue(gVehicleSteering,wheelIndex); + wheelIndex = 1; + m_vehicle->setSteeringValue(gVehicleSteering,wheelIndex); + + } +#endif + + float dt = deltaTime; + + if (m_dynamicsWorld) + { + //during idle mode, just run 1 simulation step maximum + int maxSimSubSteps = 2; + + int numSimSteps; + numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps); + + if (m_dynamicsWorld->getConstraintSolver()->getSolverType()==BT_MLCP_SOLVER) + { + btMLCPSolver* sol = (btMLCPSolver*) m_dynamicsWorld->getConstraintSolver(); + int numFallbacks = sol->getNumFallbacks(); + if (numFallbacks) + { + static int totalFailures = 0; + totalFailures+=numFallbacks; + printf("MLCP solver failed %d times, falling back to btSequentialImpulseSolver (SI)\n",totalFailures); + } + sol->setNumFallbacks(0); + } + + +//#define VERBOSE_FEEDBACK +#ifdef VERBOSE_FEEDBACK + if (!numSimSteps) + printf("Interpolated transforms\n"); + else + { + if (numSimSteps > maxSimSubSteps) + { + //detect dropping frames + printf("Dropped (%i) simulation steps out of %i\n",numSimSteps - maxSimSubSteps,numSimSteps); + } else + { + printf("Simulated (%i) steps\n",numSimSteps); + } + } +#endif //VERBOSE_FEEDBACK + + } + + + + +} + + + +void Hinge2Vehicle::displayCallback(void) +{ +// glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + + //renderme(); + +//optional but useful: debug drawing + if (m_dynamicsWorld) + m_dynamicsWorld->debugDrawWorld(); + +// glFlush(); +// glutSwapBuffers(); +} + + +void Hinge2Vehicle::clientResetScene() +{ + exitPhysics(); + initPhysics(); +} + +void Hinge2Vehicle::resetForklift() +{ + gVehicleSteering = 0.f; + gBreakingForce = defaultBreakingForce; + gEngineForce = 0.f; + + m_carChassis->setCenterOfMassTransform(btTransform::getIdentity()); + m_carChassis->setLinearVelocity(btVector3(0,0,0)); + m_carChassis->setAngularVelocity(btVector3(0,0,0)); + m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(m_carChassis->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher()); +#if 0 + if (m_vehicle) + { + m_vehicle->resetSuspension(); + for (int i=0;igetNumWheels();i++) + { + //synchronize the wheels with the (interpolated) chassis worldtransform + m_vehicle->updateWheelTransform(i,true); + } + } +#endif + btTransform liftTrans; + liftTrans.setIdentity(); + liftTrans.setOrigin(m_liftStartPos); + m_liftBody->activate(); + m_liftBody->setCenterOfMassTransform(liftTrans); + m_liftBody->setLinearVelocity(btVector3(0,0,0)); + m_liftBody->setAngularVelocity(btVector3(0,0,0)); + + btTransform forkTrans; + forkTrans.setIdentity(); + forkTrans.setOrigin(m_forkStartPos); + m_forkBody->activate(); + m_forkBody->setCenterOfMassTransform(forkTrans); + m_forkBody->setLinearVelocity(btVector3(0,0,0)); + m_forkBody->setAngularVelocity(btVector3(0,0,0)); + +// m_liftHinge->setLimit(-LIFT_EPS, LIFT_EPS); + m_liftHinge->setLimit(0.0f, 0.0f); + m_liftHinge->enableAngularMotor(false, 0, 0); + + + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(0.1f); + m_forkSlider->setPoweredLinMotor(false); + + btTransform loadTrans; + loadTrans.setIdentity(); + loadTrans.setOrigin(m_loadStartPos); + m_loadBody->activate(); + m_loadBody->setCenterOfMassTransform(loadTrans); + m_loadBody->setLinearVelocity(btVector3(0,0,0)); + m_loadBody->setAngularVelocity(btVector3(0,0,0)); + +} + + +bool Hinge2Vehicle::keyboardCallback(int key, int state) +{ + bool handled = false; + bool isShiftPressed = m_guiHelper->getAppInterface()->m_window->isModifierKeyPressed(B3G_SHIFT); + + if (state) + { + if (isShiftPressed) + { + switch (key) + { + case B3G_LEFT_ARROW : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, -0.1, maxMotorImpulse); + handled = true; + break; + } + case B3G_RIGHT_ARROW : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, 0.1, maxMotorImpulse); + handled = true; + break; + } + case B3G_UP_ARROW : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(1.0); + handled = true; + break; + } + case B3G_DOWN_ARROW : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(-1.0); + handled = true; + break; + } + } + + } else + { + switch (key) + { + case B3G_LEFT_ARROW : + { + handled = true; + gVehicleSteering += steeringIncrement; + if ( gVehicleSteering > steeringClamp) + gVehicleSteering = steeringClamp; + + break; + } + case B3G_RIGHT_ARROW : + { + handled = true; + gVehicleSteering -= steeringIncrement; + if ( gVehicleSteering < -steeringClamp) + gVehicleSteering = -steeringClamp; + + break; + } + case B3G_UP_ARROW : + { + handled = true; + gEngineForce = maxEngineForce; + gBreakingForce = 0.f; + break; + } + case B3G_DOWN_ARROW : + { + handled = true; + gEngineForce = -maxEngineForce; + gBreakingForce = 0.f; + break; + } + + case B3G_F7: + { + handled = true; + btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*)m_dynamicsWorld; + world->setLatencyMotionStateInterpolation(!world->getLatencyMotionStateInterpolation()); + printf("world latencyMotionStateInterpolation = %d\n", world->getLatencyMotionStateInterpolation()); + break; + } + case B3G_F6: + { + handled = true; + //switch solver (needs demo restart) + useMCLPSolver = !useMCLPSolver; + printf("switching to useMLCPSolver = %d\n", useMCLPSolver); + + delete m_solver; + if (useMCLPSolver) + { + btDantzigSolver* mlcp = new btDantzigSolver(); + //btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; + btMLCPSolver* sol = new btMLCPSolver(mlcp); + m_solver = sol; + } else + { + m_solver = new btSequentialImpulseConstraintSolver(); + } + + m_dynamicsWorld->setConstraintSolver(m_solver); + + + //exitPhysics(); + //initPhysics(); + break; + } + + case B3G_F5: + handled = true; + m_useDefaultCamera = !m_useDefaultCamera; + break; + default: + break; + } + } + + } else + { + switch (key) + { + case B3G_UP_ARROW: + { + lockForkSlider(); + gEngineForce = 0.f; + gBreakingForce = defaultBreakingForce; + handled=true; + break; + } + case B3G_DOWN_ARROW: + { + lockForkSlider(); + gEngineForce = 0.f; + gBreakingForce = defaultBreakingForce; + handled=true; + break; + } + case B3G_LEFT_ARROW: + case B3G_RIGHT_ARROW: + { + lockLiftHinge(); + handled=true; + break; + } + default: + + break; + } + } + return handled; +} + +void Hinge2Vehicle::specialKeyboardUp(int key, int x, int y) +{ +#if 0 + +#endif +} + + +void Hinge2Vehicle::specialKeyboard(int key, int x, int y) +{ +#if 0 + if (key==GLUT_KEY_END) + return; + + // printf("key = %i x=%i y=%i\n",key,x,y); + + int state; + state=glutGetModifiers(); + if (state & GLUT_ACTIVE_SHIFT) + { + switch (key) + { + case GLUT_KEY_LEFT : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, -0.1, maxMotorImpulse); + break; + } + case GLUT_KEY_RIGHT : + { + + m_liftHinge->setLimit(-M_PI/16.0f, M_PI/8.0f); + m_liftHinge->enableAngularMotor(true, 0.1, maxMotorImpulse); + break; + } + case GLUT_KEY_UP : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(1.0); + break; + } + case GLUT_KEY_DOWN : + { + m_forkSlider->setLowerLinLimit(0.1f); + m_forkSlider->setUpperLinLimit(3.9f); + m_forkSlider->setPoweredLinMotor(true); + m_forkSlider->setMaxLinMotorForce(maxMotorImpulse); + m_forkSlider->setTargetLinMotorVelocity(-1.0); + break; + } + + default: + DemoApplication::specialKeyboard(key,x,y); + break; + } + + } else + { + switch (key) + { + case GLUT_KEY_LEFT : + { + gVehicleSteering += steeringIncrement; + if ( gVehicleSteering > steeringClamp) + gVehicleSteering = steeringClamp; + + break; + } + case GLUT_KEY_RIGHT : + { + gVehicleSteering -= steeringIncrement; + if ( gVehicleSteering < -steeringClamp) + gVehicleSteering = -steeringClamp; + + break; + } + case GLUT_KEY_UP : + { + gEngineForce = maxEngineForce; + gBreakingForce = 0.f; + break; + } + case GLUT_KEY_DOWN : + { + gEngineForce = -maxEngineForce; + gBreakingForce = 0.f; + break; + } + + case GLUT_KEY_F7: + { + btDiscreteDynamicsWorld* world = (btDiscreteDynamicsWorld*)m_dynamicsWorld; + world->setLatencyMotionStateInterpolation(!world->getLatencyMotionStateInterpolation()); + printf("world latencyMotionStateInterpolation = %d\n", world->getLatencyMotionStateInterpolation()); + break; + } + case GLUT_KEY_F6: + { + //switch solver (needs demo restart) + useMCLPSolver = !useMCLPSolver; + printf("switching to useMLCPSolver = %d\n", useMCLPSolver); + + delete m_solver; + if (useMCLPSolver) + { + btDantzigSolver* mlcp = new btDantzigSolver(); + //btSolveProjectedGaussSeidel* mlcp = new btSolveProjectedGaussSeidel; + btMLCPSolver* sol = new btMLCPSolver(mlcp); + m_solver = sol; + } else + { + m_solver = new btSequentialImpulseConstraintSolver(); + } + + m_dynamicsWorld->setConstraintSolver(m_solver); + + + //exitPhysics(); + //initPhysics(); + break; + } + + case GLUT_KEY_F5: + m_useDefaultCamera = !m_useDefaultCamera; + break; + default: + DemoApplication::specialKeyboard(key,x,y); + break; + } + + } + // glutPostRedisplay(); + +#endif +} + + +void Hinge2Vehicle::lockLiftHinge(void) +{ + btScalar hingeAngle = m_liftHinge->getHingeAngle(); + btScalar lowLim = m_liftHinge->getLowerLimit(); + btScalar hiLim = m_liftHinge->getUpperLimit(); + m_liftHinge->enableAngularMotor(false, 0, 0); + if(hingeAngle < lowLim) + { +// m_liftHinge->setLimit(lowLim, lowLim + LIFT_EPS); + m_liftHinge->setLimit(lowLim, lowLim); + } + else if(hingeAngle > hiLim) + { +// m_liftHinge->setLimit(hiLim - LIFT_EPS, hiLim); + m_liftHinge->setLimit(hiLim, hiLim); + } + else + { +// m_liftHinge->setLimit(hingeAngle - LIFT_EPS, hingeAngle + LIFT_EPS); + m_liftHinge->setLimit(hingeAngle, hingeAngle); + } + return; +} // Hinge2Vehicle::lockLiftHinge() + +void Hinge2Vehicle::lockForkSlider(void) +{ + btScalar linDepth = m_forkSlider->getLinearPos(); + btScalar lowLim = m_forkSlider->getLowerLinLimit(); + btScalar hiLim = m_forkSlider->getUpperLinLimit(); + m_forkSlider->setPoweredLinMotor(false); + if(linDepth <= lowLim) + { + m_forkSlider->setLowerLinLimit(lowLim); + m_forkSlider->setUpperLinLimit(lowLim); + } + else if(linDepth > hiLim) + { + m_forkSlider->setLowerLinLimit(hiLim); + m_forkSlider->setUpperLinLimit(hiLim); + } + else + { + m_forkSlider->setLowerLinLimit(linDepth); + m_forkSlider->setUpperLinLimit(linDepth); + } + return; +} // Hinge2Vehicle::lockForkSlider() + +btRigidBody* Hinge2Vehicle::localCreateRigidBody(btScalar mass, const btTransform& startTransform, btCollisionShape* shape) +{ + btAssert((!shape || shape->getShapeType() != INVALID_SHAPE_PROXYTYPE)); + + //rigidbody is dynamic if and only if mass is non zero, otherwise static + bool isDynamic = (mass != 0.f); + + btVector3 localInertia(0,0,0); + if (isDynamic) + shape->calculateLocalInertia(mass,localInertia); + + //using motionstate is recommended, it provides interpolation capabilities, and only synchronizes 'active' objects + +#define USE_MOTIONSTATE 1 +#ifdef USE_MOTIONSTATE + btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform); + + btRigidBody::btRigidBodyConstructionInfo cInfo(mass,myMotionState,shape,localInertia); + + btRigidBody* body = new btRigidBody(cInfo); + //body->setContactProcessingThreshold(m_defaultContactProcessingThreshold); + +#else + btRigidBody* body = new btRigidBody(mass,0,shape,localInertia); + body->setWorldTransform(startTransform); +#endif// + + m_dynamicsWorld->addRigidBody(body); + return body; +} + +CommonExampleInterface* Hinge2VehicleCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option) +{ + return new Hinge2Vehicle(helper); +} diff --git a/Demos/RaytestDemo/Win32RaytestDemo.cpp b/examples/Vehicles/Hinge2Vehicle.h similarity index 75% rename from Demos/RaytestDemo/Win32RaytestDemo.cpp rename to examples/Vehicles/Hinge2Vehicle.h index 6a7f32fec..30e347a96 100644 --- a/Demos/RaytestDemo/Win32RaytestDemo.cpp +++ b/examples/Vehicles/Hinge2Vehicle.h @@ -1,7 +1,6 @@ -#ifdef _WINDOWS /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org +Copyright (c) 2003-2015 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -14,12 +13,11 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ -#include "RaytestDemo.h" +#ifndef HINGE2_VEHICLE_H +#define HINGE2_VEHICLE_H + +class CommonExampleInterface* Hinge2VehicleCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); + +#endif // HINGE2_VEHICLE_H -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new RaytestDemo(); -} -#endif diff --git a/Demos/VoronoiFractureDemo/VoronoiFractureDemo.cpp b/examples/VoronoiFracture/VoronoiFractureDemo.cpp similarity index 90% rename from Demos/VoronoiFractureDemo/VoronoiFractureDemo.cpp rename to examples/VoronoiFracture/VoronoiFractureDemo.cpp index 19cf7ddd2..c3926b2ad 100644 --- a/Demos/VoronoiFractureDemo/VoronoiFractureDemo.cpp +++ b/examples/VoronoiFracture/VoronoiFractureDemo.cpp @@ -30,28 +30,95 @@ Voronoi fracture and shatter code and demo copyright (c) 2011 Alain Ducharme static int useMpr = 0; #include "VoronoiFractureDemo.h" -#include "GlutStuff.h" + ///btBulletDynamicsCommon.h is the main Bullet include file, contains most common include files. #include "btBulletDynamicsCommon.h" -#include "GLDebugFont.h" #include //printf debugging -#include "GLDebugDrawer.h" -static GLDebugDrawer sDebugDraw; + static bool useGenericConstraint = false; #include "btConvexConvexMprAlgorithm.h" +#include "LinearMath/btAlignedObjectArray.h" +#include "LinearMath/btConvexHullComputer.h" +#include "LinearMath/btQuaternion.h" +#include +#include + +class btBroadphaseInterface; +class btCollisionShape; +class btOverlappingPairCache; +class btCollisionDispatcher; +class btConstraintSolver; +struct btCollisionAlgorithmCreateFunc; +class btDefaultCollisionConfiguration; + +#include "../CommonInterfaces/CommonRigidBodyBase.h" + + +class VoronoiFractureDemo : public CommonRigidBodyBase +{ + //keep the collision shapes, for deletion/cleanup + btAlignedObjectArray m_collisionShapes; + + btBroadphaseInterface* m_broadphase; + + btCollisionDispatcher* m_dispatcher; + + btConstraintSolver* m_solver; + + btDefaultCollisionConfiguration* m_collisionConfiguration; + + btClock m_perfmTimer; + + public: + + VoronoiFractureDemo(struct GUIHelperInterface* helper) + :CommonRigidBodyBase(helper) + { + srand((unsigned)time(NULL)); // Seed it... + } + virtual ~VoronoiFractureDemo() + { + btAssert(m_dynamicsWorld==0); + } + + + void initPhysics(); + + void exitPhysics(); + + //virtual void renderme(); + + void getVerticesInsidePlanes(const btAlignedObjectArray& planes, btAlignedObjectArray& verticesOut, std::set& planeIndicesOut); + void voronoiBBShatter(const btAlignedObjectArray& points, const btVector3& bbmin, const btVector3& bbmax, const btQuaternion& bbq, const btVector3& bbt, btScalar matDensity); + void voronoiConvexHullShatter(const btAlignedObjectArray& points, const btAlignedObjectArray& verts, const btQuaternion& bbq, const btVector3& bbt, btScalar matDensity); + + //virtual void clientMoveAndDisplay(); + + //virtual void displayCallback(); + //virtual void clientResetScene(); + + //virtual void keyboardCallback(unsigned char key, int x, int y); + + void attachFixedConstraints(); + + + + +}; + void VoronoiFractureDemo::attachFixedConstraints() { btAlignedObjectArray bodies; - int numManifolds = getDynamicsWorld()->getDispatcher()->getNumManifolds(); + int numManifolds = m_dynamicsWorld->getDispatcher()->getNumManifolds(); for (int i=0;igetDispatcher()->getManifoldByIndexInternal(i); + btPersistentManifold* manifold = m_dynamicsWorld->getDispatcher()->getManifoldByIndexInternal(i); if (!manifold->getNumContacts()) continue; @@ -109,14 +176,14 @@ void VoronoiFractureDemo::attachFixedConstraints() for (int i=0;i<6;i++) dof6->setLimit(i,0,0); - getDynamicsWorld()->addConstraint(dof6,true); + m_dynamicsWorld->addConstraint(dof6,true); } else { btFixedConstraint* fixed = new btFixedConstraint(*body0,*body1,trA,trB); fixed->setBreakingImpulseThreshold(BREAKING_THRESHOLD*totalMass); fixed ->setOverrideNumSolverIterations(30); - getDynamicsWorld()->addConstraint(fixed,true); + m_dynamicsWorld->addConstraint(fixed,true); } @@ -129,11 +196,11 @@ void VoronoiFractureDemo::attachFixedConstraints() for (int i=0;iremoveRigidBody(bodies[i]); - getDynamicsWorld()->addRigidBody(bodies[i]); + m_dynamicsWorld->removeRigidBody(bodies[i]); + m_dynamicsWorld->addRigidBody(bodies[i]); } } - +/* void VoronoiFractureDemo::keyboardCallback(unsigned char key, int x, int y) { if (key == 'g') @@ -144,7 +211,7 @@ void VoronoiFractureDemo::keyboardCallback(unsigned char key, int x, int y) PlatformDemoApplication::keyboardCallback(key,x,y); } } - +*/ void VoronoiFractureDemo::getVerticesInsidePlanes(const btAlignedObjectArray& planes, btAlignedObjectArray& verticesOut, std::set& planeIndicesOut) { @@ -486,6 +553,7 @@ void VoronoiFractureDemo::voronoiConvexHullShatter(const btAlignedObjectArraysetUpAxis(1); + srand(13); useGenericConstraint = !useGenericConstraint; printf("useGenericConstraint = %d\n", useGenericConstraint); - setTexturing(true); - setShadows(true); - - setCameraDistance(btScalar(20.)); ///collision configuration contains default setup for memory, collision setup m_collisionConfiguration = new btDefaultCollisionConfiguration(); @@ -586,7 +653,9 @@ void VoronoiFractureDemo::initPhysics() m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration); m_dynamicsWorld->getSolverInfo().m_splitImpulse = true; - m_dynamicsWorld->setDebugDrawer(&sDebugDraw); + + m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld); + m_dynamicsWorld->setGravity(btVector3(0,-10,0)); @@ -680,13 +749,9 @@ void VoronoiFractureDemo::initPhysics() attachFixedConstraints(); + m_guiHelper->autogenerateGraphicsObjects(m_dynamicsWorld); } -void VoronoiFractureDemo::clientResetScene() -{ - exitPhysics(); - initPhysics(); -} - + void VoronoiFractureDemo::exitPhysics() { @@ -725,13 +790,34 @@ void VoronoiFractureDemo::exitPhysics() m_collisionShapes.clear(); delete m_dynamicsWorld; + m_dynamicsWorld = 0; delete m_solver; + m_solver=0; delete m_broadphase; + m_broadphase=0; delete m_dispatcher; + m_dispatcher=0; delete m_collisionConfiguration; + m_collisionConfiguration=0; } + +/* +static DemoApplication* Create() + { + VoronoiFractureDemo* demo = new VoronoiFractureDemo; + demo->myinit(); + demo->initPhysics(); + return demo; + } + +*/ + +CommonExampleInterface* VoronoiFractureCreateFunc(PhysicsInterface* pint, GUIHelperInterface* helper, int option) +{ + return new VoronoiFractureDemo(helper); +} diff --git a/Demos/Benchmarks/Win32BenchmarkDemo.cpp b/examples/VoronoiFracture/VoronoiFractureDemo.h similarity index 73% rename from Demos/Benchmarks/Win32BenchmarkDemo.cpp rename to examples/VoronoiFracture/VoronoiFractureDemo.h index 486f308a9..de8b8f8bb 100644 --- a/Demos/Benchmarks/Win32BenchmarkDemo.cpp +++ b/examples/VoronoiFracture/VoronoiFractureDemo.h @@ -1,7 +1,6 @@ -#ifdef _WINDOWS /* Bullet Continuous Collision Detection and Physics Library -Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org +Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. @@ -13,13 +12,10 @@ subject to the following restrictions: 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ +#ifndef VORONOI_FRACTURE_DEMO_H +#define VORONOI_FRACTURE_DEMO_H -#include "BenchmarkDemo.h" +class CommonExampleInterface* VoronoiFractureCreateFunc(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option); -///The 'createDemo' function is called from Bullet/Demos/OpenGL/Win32AppMain.cpp to instantiate this particular demo -DemoApplication* createDemo() -{ - return new BenchmarkDemo(1); -} +#endif //VORONOI_FRACTURE_DEMO_H -#endif diff --git a/Demos/VoronoiFractureDemo/btConvexConvexMprAlgorithm.cpp b/examples/VoronoiFracture/btConvexConvexMprAlgorithm.cpp similarity index 100% rename from Demos/VoronoiFractureDemo/btConvexConvexMprAlgorithm.cpp rename to examples/VoronoiFracture/btConvexConvexMprAlgorithm.cpp diff --git a/Demos/VoronoiFractureDemo/btConvexConvexMprAlgorithm.h b/examples/VoronoiFracture/btConvexConvexMprAlgorithm.h similarity index 100% rename from Demos/VoronoiFractureDemo/btConvexConvexMprAlgorithm.h rename to examples/VoronoiFracture/btConvexConvexMprAlgorithm.h diff --git a/src/Bullet3Common/b3FileUtils.h b/src/Bullet3Common/b3FileUtils.h index 5d2efe0cd..9a26f8c6b 100644 --- a/src/Bullet3Common/b3FileUtils.h +++ b/src/Bullet3Common/b3FileUtils.h @@ -4,6 +4,7 @@ #include #include "b3Scalar.h" #include //ptrdiff_h +#include struct b3FileUtils { diff --git a/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp b/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp index f42773622..674e681ce 100644 --- a/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp +++ b/src/BulletCollision/CollisionDispatch/btCollisionWorld.cpp @@ -309,6 +309,7 @@ void btCollisionWorld::rayTestSingleInternal(const btTransform& rayFromTrans,con { if (castResult.m_fraction < resultCallback.m_closestHitFraction) { + //todo: figure out what this is about. When is rayFromTest.getBasis() not identity? #ifdef USE_SUBSIMPLEX_CONVEX_CAST //rotate normal into worldspace castResult.m_normal = rayFromTrans.getBasis() * castResult.m_normal; diff --git a/src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.h b/src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.h index ba03015d4..9a6d16fbe 100644 --- a/src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.h +++ b/src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.h @@ -24,7 +24,7 @@ subject to the following restrictions: class btCollisionShape; class btCollisionObject; -class btBulletSerializedArrays; +struct btBulletSerializedArrays; struct ConstraintInput; diff --git a/src/BulletCollision/NarrowPhaseCollision/btMprPenetration.h b/src/BulletCollision/NarrowPhaseCollision/btMprPenetration.h index e311b2212..052f48b8c 100644 --- a/src/BulletCollision/NarrowPhaseCollision/btMprPenetration.h +++ b/src/BulletCollision/NarrowPhaseCollision/btMprPenetration.h @@ -678,8 +678,15 @@ inline float btMprVec3PointTriDist2(const btVector3 *P, q = btMprVec3Dot(&a, &d2); r = btMprVec3Dot(&d1, &d2); - s = (q * r - w * p) / (w * v - r * r); - t = (-s * r - q) / w; + btScalar div = (w * v - r * r); + if (btMprIsZero(div)) + { + s=-1; + } else + { + s = (q * r - w * p) / div; + t = (-s * r - q) / w; + } if ((btMprIsZero(s) || s > 0.f) && (btMprEq(s, 1.f) || s < 1.f) diff --git a/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp b/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp index ee57ca72b..cfa997bc5 100644 --- a/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpring2Constraint.cpp @@ -772,14 +772,14 @@ int btGeneric6DofSpring2Constraint::get_limit_motor_info2( //info->m_lowerLimit[srow] = -SIMD_INFINITY; //info->m_upperLimit[srow] = SIMD_INFINITY; - btScalar dt = 1.0 / info->fps; + btScalar dt = BT_ONE / info->fps; btScalar kd = limot->m_springDamping; btScalar ks = limot->m_springStiffness; btScalar vel = rotational ? angVelA.dot(ax1) - angVelB.dot(ax1) : linVelA.dot(ax1) - linVelB.dot(ax1); // btScalar erp = 0.1; - btScalar cfm = 0.0; - btScalar mA = 1.0 / m_rbA.getInvMass(); - btScalar mB = 1.0 / m_rbB.getInvMass(); + btScalar cfm = BT_ZERO; + btScalar mA = BT_ONE / m_rbA.getInvMass(); + btScalar mB = BT_ONE / m_rbB.getInvMass(); btScalar m = mA > mB ? mB : mA; btScalar angularfreq = sqrt(ks / m); @@ -787,7 +787,7 @@ int btGeneric6DofSpring2Constraint::get_limit_motor_info2( //limit stiffness (the spring should not be sampled faster that the quarter of its angular frequency) if( 0.25 < angularfreq * dt) { - ks = 1.0 / dt / dt / 16.0 / m; + ks = BT_ONE / dt / dt / btScalar(16.0) / m; } //avoid overdamping if(kd * dt > m) diff --git a/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp b/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp index 29123d526..4be2aabe4 100644 --- a/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.cpp @@ -25,7 +25,7 @@ subject to the following restrictions: // anchor, axis1 and axis2 are in world coordinate system // axis1 must be orthogonal to axis2 btHinge2Constraint::btHinge2Constraint(btRigidBody& rbA, btRigidBody& rbB, btVector3& anchor, btVector3& axis1, btVector3& axis2) -: btGeneric6DofSpringConstraint(rbA, rbB, btTransform::getIdentity(), btTransform::getIdentity(), true), +: btGeneric6DofSpring2Constraint(rbA, rbB, btTransform::getIdentity(), btTransform::getIdentity(),RO_XYZ), m_anchor(anchor), m_axis1(axis1), m_axis2(axis2) @@ -59,7 +59,7 @@ btHinge2Constraint::btHinge2Constraint(btRigidBody& rbA, btRigidBody& rbB, btVec setAngularUpperLimit(btVector3(-1.f, 0.f, SIMD_HALF_PI * 0.5f)); // enable suspension enableSpring(2, true); - setStiffness(2, SIMD_PI * SIMD_PI * 4.f); // period 1 sec for 1 kilogramm weel :-) + setStiffness(2, SIMD_PI * SIMD_PI * 4.f); setDamping(2, 0.01f); setEquilibriumPoint(); } diff --git a/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h b/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h index 9a0049869..06a8e3ecd 100644 --- a/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h +++ b/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h @@ -20,7 +20,7 @@ subject to the following restrictions: #include "LinearMath/btVector3.h" #include "btTypedConstraint.h" -#include "btGeneric6DofSpringConstraint.h" +#include "btGeneric6DofSpring2Constraint.h" @@ -29,7 +29,7 @@ subject to the following restrictions: // 2 rotational degrees of freedom, similar to Euler rotations around Z (axis 1) and X (axis 2) // 1 translational (along axis Z) with suspension spring -ATTRIBUTE_ALIGNED16(class) btHinge2Constraint : public btGeneric6DofSpringConstraint +ATTRIBUTE_ALIGNED16(class) btHinge2Constraint : public btGeneric6DofSpring2Constraint { protected: btVector3 m_anchor; diff --git a/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp b/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp index 857fe9199..76a150947 100644 --- a/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp @@ -303,7 +303,7 @@ void btHingeConstraint::buildJacobian() static inline btScalar btNormalizeAnglePositive(btScalar angle) { - return btFmod(btFmod(angle, 2.0*SIMD_PI) + 2.0*SIMD_PI, 2.0*SIMD_PI); + return btFmod(btFmod(angle, btScalar(2.0*SIMD_PI)) + btScalar(2.0*SIMD_PI), btScalar(2.0*SIMD_PI)); } diff --git a/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp b/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp index aff9f27f5..f8f81bfe6 100755 --- a/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp +++ b/src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp @@ -539,8 +539,8 @@ void btSliderConstraint::getInfo2NonVirtual(btConstraintInfo2* info, const btTra btScalar tag_vel = getTargetLinMotorVelocity(); btScalar mot_fact = getMotorFactor(m_linPos, m_lowerLinLimit, m_upperLinLimit, tag_vel, info->fps * currERP); info->m_constraintError[srow] -= signFact * mot_fact * getTargetLinMotorVelocity(); - info->m_lowerLimit[srow] += -getMaxLinMotorForce() * info->fps; - info->m_upperLimit[srow] += getMaxLinMotorForce() * info->fps; + info->m_lowerLimit[srow] += -getMaxLinMotorForce() / info->fps; + info->m_upperLimit[srow] += getMaxLinMotorForce() / info->fps; } if(limit) { @@ -641,8 +641,8 @@ void btSliderConstraint::getInfo2NonVirtual(btConstraintInfo2* info, const btTra } btScalar mot_fact = getMotorFactor(m_angPos, m_lowerAngLimit, m_upperAngLimit, getTargetAngMotorVelocity(), info->fps * currERP); info->m_constraintError[srow] = mot_fact * getTargetAngMotorVelocity(); - info->m_lowerLimit[srow] = -getMaxAngMotorForce() * info->fps; - info->m_upperLimit[srow] = getMaxAngMotorForce() * info->fps; + info->m_lowerLimit[srow] = -getMaxAngMotorForce() / info->fps; + info->m_upperLimit[srow] = getMaxAngMotorForce() / info->fps; } if(limit) { diff --git a/src/BulletDynamics/Featherstone/btMultiBody.h b/src/BulletDynamics/Featherstone/btMultiBody.h index 2e2f645ff..c24b6db2d 100644 --- a/src/BulletDynamics/Featherstone/btMultiBody.h +++ b/src/BulletDynamics/Featherstone/btMultiBody.h @@ -178,6 +178,13 @@ public: { m_basePos = pos; } + + void setBaseWorldTransform(const btTransform& tr) + { + setBasePos(tr.getOrigin()); + setWorldToBaseRot(tr.getRotation().inverse()); + + } void setBaseVel(const btVector3 &vel) { diff --git a/src/BulletDynamics/Featherstone/btMultiBodyLink.h b/src/BulletDynamics/Featherstone/btMultiBodyLink.h index 90acef7d3..1ae859aaa 100644 --- a/src/BulletDynamics/Featherstone/btMultiBodyLink.h +++ b/src/BulletDynamics/Featherstone/btMultiBodyLink.h @@ -36,311 +36,7 @@ enum btMultiBodyLinkFlags #ifdef TEST_SPATIAL_ALGEBRA_LAYER - struct btSpatialForceVector - { - btVector3 m_topVec, m_bottomVec; - // - btSpatialForceVector() { setZero(); } - btSpatialForceVector(const btVector3 &angular, const btVector3 &linear) : m_topVec(linear), m_bottomVec(angular) {} - btSpatialForceVector(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) - { - setValue(ax, ay, az, lx, ly, lz); - } - // - void setVector(const btVector3 &angular, const btVector3 &linear) { m_topVec = linear; m_bottomVec = angular; } - void setValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) - { - m_bottomVec.setValue(ax, ay, az); m_topVec.setValue(lx, ly, lz); - } - // - void addVector(const btVector3 &angular, const btVector3 &linear) { m_topVec += linear; m_bottomVec += angular; } - void addValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) - { - m_bottomVec[0] += ax; m_bottomVec[1] += ay; m_bottomVec[2] += az; - m_topVec[0] += lx; m_topVec[1] += ly; m_topVec[2] += lz; - } - // - const btVector3 & getLinear() const { return m_topVec; } - const btVector3 & getAngular() const { return m_bottomVec; } - // - void setLinear(const btVector3 &linear) { m_topVec = linear; } - void setAngular(const btVector3 &angular) { m_bottomVec = angular; } - // - void addAngular(const btVector3 &angular) { m_bottomVec += angular; } - void addLinear(const btVector3 &linear) { m_topVec += linear; } - // - void setZero() { m_topVec.setZero(); m_bottomVec.setZero(); } - // - btSpatialForceVector & operator += (const btSpatialForceVector &vec) { m_topVec += vec.m_topVec; m_bottomVec += vec.m_bottomVec; return *this; } - btSpatialForceVector & operator -= (const btSpatialForceVector &vec) { m_topVec -= vec.m_topVec; m_bottomVec -= vec.m_bottomVec; return *this; } - btSpatialForceVector operator - (const btSpatialForceVector &vec) const { return btSpatialForceVector(m_bottomVec - vec.m_bottomVec, m_topVec - vec.m_topVec); } - btSpatialForceVector operator + (const btSpatialForceVector &vec) const { return btSpatialForceVector(m_bottomVec + vec.m_bottomVec, m_topVec + vec.m_topVec); } - btSpatialForceVector operator - () const { return btSpatialForceVector(-m_bottomVec, -m_topVec); } - btSpatialForceVector operator * (const btScalar &s) const { return btSpatialForceVector(s * m_bottomVec, s * m_topVec); } - //btSpatialForceVector & operator = (const btSpatialForceVector &vec) { m_topVec = vec.m_topVec; m_bottomVec = vec.m_bottomVec; return *this; } - }; - - struct btSpatialMotionVector - { - btVector3 m_topVec, m_bottomVec; - // - btSpatialMotionVector() { setZero(); } - btSpatialMotionVector(const btVector3 &angular, const btVector3 &linear) : m_topVec(angular), m_bottomVec(linear) {} - // - void setVector(const btVector3 &angular, const btVector3 &linear) { m_topVec = angular; m_bottomVec = linear; } - void setValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) - { - m_topVec.setValue(ax, ay, az); m_bottomVec.setValue(lx, ly, lz); - } - // - void addVector(const btVector3 &angular, const btVector3 &linear) { m_topVec += linear; m_bottomVec += angular; } - void addValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) - { - m_topVec[0] += ax; m_topVec[1] += ay; m_topVec[2] += az; - m_bottomVec[0] += lx; m_bottomVec[1] += ly; m_bottomVec[2] += lz; - } - // - const btVector3 & getAngular() const { return m_topVec; } - const btVector3 & getLinear() const { return m_bottomVec; } - // - void setAngular(const btVector3 &angular) { m_topVec = angular; } - void setLinear(const btVector3 &linear) { m_bottomVec = linear; } - // - void addAngular(const btVector3 &angular) { m_topVec += angular; } - void addLinear(const btVector3 &linear) { m_bottomVec += linear; } - // - void setZero() { m_topVec.setZero(); m_bottomVec.setZero(); } - // - btScalar dot(const btSpatialForceVector &b) const - { - return m_bottomVec.dot(b.m_topVec) + m_topVec.dot(b.m_bottomVec); - } - // - template - void cross(const SpatialVectorType &b, SpatialVectorType &out) const - { - out.m_topVec = m_topVec.cross(b.m_topVec); - out.m_bottomVec = m_bottomVec.cross(b.m_topVec) + m_topVec.cross(b.m_bottomVec); - } - template - SpatialVectorType cross(const SpatialVectorType &b) const - { - SpatialVectorType out; - out.m_topVec = m_topVec.cross(b.m_topVec); - out.m_bottomVec = m_bottomVec.cross(b.m_topVec) + m_topVec.cross(b.m_bottomVec); - return out; - } - // - btSpatialMotionVector & operator += (const btSpatialMotionVector &vec) { m_topVec += vec.m_topVec; m_bottomVec += vec.m_bottomVec; return *this; } - btSpatialMotionVector & operator -= (const btSpatialMotionVector &vec) { m_topVec -= vec.m_topVec; m_bottomVec -= vec.m_bottomVec; return *this; } - btSpatialMotionVector & operator *= (const btScalar &s) { m_topVec *= s; m_bottomVec *= s; return *this; } - btSpatialMotionVector operator - (const btSpatialMotionVector &vec) const { return btSpatialMotionVector(m_topVec - vec.m_topVec, m_bottomVec - vec.m_bottomVec); } - btSpatialMotionVector operator + (const btSpatialMotionVector &vec) const { return btSpatialMotionVector(m_topVec + vec.m_topVec, m_bottomVec + vec.m_bottomVec); } - btSpatialMotionVector operator - () const { return btSpatialMotionVector(-m_topVec, -m_bottomVec); } - btSpatialMotionVector operator * (const btScalar &s) const { return btSpatialMotionVector(s * m_topVec, s * m_bottomVec); } - }; - - struct btSymmetricSpatialDyad - { - btMatrix3x3 m_topLeftMat, m_topRightMat, m_bottomLeftMat; - // - btSymmetricSpatialDyad() { setIdentity(); } - btSymmetricSpatialDyad(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) { setMatrix(topLeftMat, topRightMat, bottomLeftMat); } - // - void setMatrix(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) - { - m_topLeftMat = topLeftMat; - m_topRightMat = topRightMat; - m_bottomLeftMat = bottomLeftMat; - } - // - void addMatrix(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) - { - m_topLeftMat += topLeftMat; - m_topRightMat += topRightMat; - m_bottomLeftMat += bottomLeftMat; - } - // - void setIdentity() { m_topLeftMat.setIdentity(); m_topRightMat.setIdentity(); m_bottomLeftMat.setIdentity(); } - // - btSymmetricSpatialDyad & operator -= (const btSymmetricSpatialDyad &mat) - { - m_topLeftMat -= mat.m_topLeftMat; - m_topRightMat -= mat.m_topRightMat; - m_bottomLeftMat -= mat.m_bottomLeftMat; - return *this; - } - // - btSpatialForceVector operator * (const btSpatialMotionVector &vec) - { - return btSpatialForceVector(m_bottomLeftMat * vec.m_topVec + m_topLeftMat.transpose() * vec.m_bottomVec, m_topLeftMat * vec.m_topVec + m_topRightMat * vec.m_bottomVec); - } - }; - - struct btSpatialTransformationMatrix - { - btMatrix3x3 m_rotMat; //btMatrix3x3 m_trnCrossMat; - btVector3 m_trnVec; - // - enum eOutputOperation - { - None = 0, - Add = 1, - Subtract = 2 - }; - // - template - void transform( const SpatialVectorType &inVec, - SpatialVectorType &outVec, - eOutputOperation outOp = None) - { - if(outOp == None) - { - outVec.m_topVec = m_rotMat * inVec.m_topVec; - outVec.m_bottomVec = -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; - } - else if(outOp == Add) - { - outVec.m_topVec += m_rotMat * inVec.m_topVec; - outVec.m_bottomVec += -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; - } - else if(outOp == Subtract) - { - outVec.m_topVec -= m_rotMat * inVec.m_topVec; - outVec.m_bottomVec -= -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; - } - - } - - template - void transformRotationOnly( const SpatialVectorType &inVec, - SpatialVectorType &outVec, - eOutputOperation outOp = None) - { - if(outOp == None) - { - outVec.m_topVec = m_rotMat * inVec.m_topVec; - outVec.m_bottomVec = m_rotMat * inVec.m_bottomVec; - } - else if(outOp == Add) - { - outVec.m_topVec += m_rotMat * inVec.m_topVec; - outVec.m_bottomVec += m_rotMat * inVec.m_bottomVec; - } - else if(outOp == Subtract) - { - outVec.m_topVec -= m_rotMat * inVec.m_topVec; - outVec.m_bottomVec -= m_rotMat * inVec.m_bottomVec; - } - - } - - template - void transformInverse( const SpatialVectorType &inVec, - SpatialVectorType &outVec, - eOutputOperation outOp = None) - { - if(outOp == None) - { - outVec.m_topVec = m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec = m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); - } - else if(outOp == Add) - { - outVec.m_topVec += m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec += m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); - } - else if(outOp == Subtract) - { - outVec.m_topVec -= m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec -= m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); - } - } - - template - void transformInverseRotationOnly( const SpatialVectorType &inVec, - SpatialVectorType &outVec, - eOutputOperation outOp = None) - { - if(outOp == None) - { - outVec.m_topVec = m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec = m_rotMat.transpose() * inVec.m_bottomVec; - } - else if(outOp == Add) - { - outVec.m_topVec += m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec += m_rotMat.transpose() * inVec.m_bottomVec; - } - else if(outOp == Subtract) - { - outVec.m_topVec -= m_rotMat.transpose() * inVec.m_topVec; - outVec.m_bottomVec -= m_rotMat.transpose() * inVec.m_bottomVec; - } - - } - - void transformInverse( const btSymmetricSpatialDyad &inMat, - btSymmetricSpatialDyad &outMat, - eOutputOperation outOp = None) - { - const btMatrix3x3 r_cross( 0, -m_trnVec[2], m_trnVec[1], - m_trnVec[2], 0, -m_trnVec[0], - -m_trnVec[1], m_trnVec[0], 0); - - - if(outOp == None) - { - outMat.m_topLeftMat = m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; - outMat.m_topRightMat = m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; - outMat.m_bottomLeftMat = m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; - } - else if(outOp == Add) - { - outMat.m_topLeftMat += m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; - outMat.m_topRightMat += m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; - outMat.m_bottomLeftMat += m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; - } - else if(outOp == Subtract) - { - outMat.m_topLeftMat -= m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; - outMat.m_topRightMat -= m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; - outMat.m_bottomLeftMat -= m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; - } - } - - template - SpatialVectorType operator * (const SpatialVectorType &vec) - { - SpatialVectorType out; - transform(vec, out); - return out; - } - }; - - template - void symmetricSpatialOuterProduct(const SpatialVectorType &a, const SpatialVectorType &b, btSymmetricSpatialDyad &out) - { - //output op maybe? - - out.m_topLeftMat = outerProduct(a.m_topVec, b.m_bottomVec); - out.m_topRightMat = outerProduct(a.m_topVec, b.m_topVec); - out.m_topLeftMat = outerProduct(a.m_bottomVec, b.m_bottomVec); - //maybe simple a*spatTranspose(a) would be nicer? - } - - template - btSymmetricSpatialDyad symmetricSpatialOuterProduct(const SpatialVectorType &a, const SpatialVectorType &b) - { - btSymmetricSpatialDyad out; - - out.m_topLeftMat = outerProduct(a.m_topVec, b.m_bottomVec); - out.m_topRightMat = outerProduct(a.m_topVec, b.m_topVec); - out.m_bottomLeftMat = outerProduct(a.m_bottomVec, b.m_bottomVec); - - return out; - //maybe simple a*spatTranspose(a) would be nicer? - } +#include "LinearMath/btSpatialAlgebra.h" #endif //} diff --git a/src/LinearMath/btMatrixX.h b/src/LinearMath/btMatrixX.h index abaaf6fd7..a3e46b2d4 100644 --- a/src/LinearMath/btMatrixX.h +++ b/src/LinearMath/btMatrixX.h @@ -94,7 +94,7 @@ struct btVectorX { T temp; temp = scale / absxi; - ssq = ssq * (temp * temp) + 1.0; + ssq = ssq * (temp * temp) + BT_ONE; scale = absxi; } else diff --git a/src/LinearMath/btScalar.h b/src/LinearMath/btScalar.h index abed6cbdd..2523ef4ba 100644 --- a/src/LinearMath/btScalar.h +++ b/src/LinearMath/btScalar.h @@ -486,9 +486,17 @@ SIMD_FORCE_INLINE btScalar btFmod(btScalar x,btScalar y) { return fmodf(x,y); } #ifdef BT_USE_DOUBLE_PRECISION #define SIMD_EPSILON DBL_EPSILON #define SIMD_INFINITY DBL_MAX +#define BT_ONE 1.0 +#define BT_ZERO 0.0 +#define BT_TWO 2.0 +#define BT_HALF 0.5 #else #define SIMD_EPSILON FLT_EPSILON #define SIMD_INFINITY FLT_MAX +#define BT_ONE 1.0f +#define BT_ZERO 0.0f +#define BT_TWO 2.0f +#define BT_HALF 0.5f #endif SIMD_FORCE_INLINE btScalar btAtan2Fast(btScalar y, btScalar x) diff --git a/src/LinearMath/btSpatialAlgebra.h b/src/LinearMath/btSpatialAlgebra.h new file mode 100644 index 000000000..8e59658bc --- /dev/null +++ b/src/LinearMath/btSpatialAlgebra.h @@ -0,0 +1,331 @@ +/* +Copyright (c) 2003-2015 Erwin Coumans, Jakub Stepien + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the use of this software. +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it freely, +subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. +*/ + +///These spatial algebra classes are used for btMultiBody, +///see BulletDynamics/Featherstone + +#ifndef BT_SPATIAL_ALGEBRA_H +#define BT_SPATIAL_ALGEBRA_H + + +#include "btMatrix3x3.h" + +struct btSpatialForceVector +{ + btVector3 m_topVec, m_bottomVec; + // + btSpatialForceVector() { setZero(); } + btSpatialForceVector(const btVector3 &angular, const btVector3 &linear) : m_topVec(linear), m_bottomVec(angular) {} + btSpatialForceVector(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) + { + setValue(ax, ay, az, lx, ly, lz); + } + // + void setVector(const btVector3 &angular, const btVector3 &linear) { m_topVec = linear; m_bottomVec = angular; } + void setValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) + { + m_bottomVec.setValue(ax, ay, az); m_topVec.setValue(lx, ly, lz); + } + // + void addVector(const btVector3 &angular, const btVector3 &linear) { m_topVec += linear; m_bottomVec += angular; } + void addValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) + { + m_bottomVec[0] += ax; m_bottomVec[1] += ay; m_bottomVec[2] += az; + m_topVec[0] += lx; m_topVec[1] += ly; m_topVec[2] += lz; + } + // + const btVector3 & getLinear() const { return m_topVec; } + const btVector3 & getAngular() const { return m_bottomVec; } + // + void setLinear(const btVector3 &linear) { m_topVec = linear; } + void setAngular(const btVector3 &angular) { m_bottomVec = angular; } + // + void addAngular(const btVector3 &angular) { m_bottomVec += angular; } + void addLinear(const btVector3 &linear) { m_topVec += linear; } + // + void setZero() { m_topVec.setZero(); m_bottomVec.setZero(); } + // + btSpatialForceVector & operator += (const btSpatialForceVector &vec) { m_topVec += vec.m_topVec; m_bottomVec += vec.m_bottomVec; return *this; } + btSpatialForceVector & operator -= (const btSpatialForceVector &vec) { m_topVec -= vec.m_topVec; m_bottomVec -= vec.m_bottomVec; return *this; } + btSpatialForceVector operator - (const btSpatialForceVector &vec) const { return btSpatialForceVector(m_bottomVec - vec.m_bottomVec, m_topVec - vec.m_topVec); } + btSpatialForceVector operator + (const btSpatialForceVector &vec) const { return btSpatialForceVector(m_bottomVec + vec.m_bottomVec, m_topVec + vec.m_topVec); } + btSpatialForceVector operator - () const { return btSpatialForceVector(-m_bottomVec, -m_topVec); } + btSpatialForceVector operator * (const btScalar &s) const { return btSpatialForceVector(s * m_bottomVec, s * m_topVec); } + //btSpatialForceVector & operator = (const btSpatialForceVector &vec) { m_topVec = vec.m_topVec; m_bottomVec = vec.m_bottomVec; return *this; } +}; + +struct btSpatialMotionVector +{ + btVector3 m_topVec, m_bottomVec; + // + btSpatialMotionVector() { setZero(); } + btSpatialMotionVector(const btVector3 &angular, const btVector3 &linear) : m_topVec(angular), m_bottomVec(linear) {} + // + void setVector(const btVector3 &angular, const btVector3 &linear) { m_topVec = angular; m_bottomVec = linear; } + void setValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) + { + m_topVec.setValue(ax, ay, az); m_bottomVec.setValue(lx, ly, lz); + } + // + void addVector(const btVector3 &angular, const btVector3 &linear) { m_topVec += linear; m_bottomVec += angular; } + void addValue(const btScalar &ax, const btScalar &ay, const btScalar &az, const btScalar &lx, const btScalar &ly, const btScalar &lz) + { + m_topVec[0] += ax; m_topVec[1] += ay; m_topVec[2] += az; + m_bottomVec[0] += lx; m_bottomVec[1] += ly; m_bottomVec[2] += lz; + } + // + const btVector3 & getAngular() const { return m_topVec; } + const btVector3 & getLinear() const { return m_bottomVec; } + // + void setAngular(const btVector3 &angular) { m_topVec = angular; } + void setLinear(const btVector3 &linear) { m_bottomVec = linear; } + // + void addAngular(const btVector3 &angular) { m_topVec += angular; } + void addLinear(const btVector3 &linear) { m_bottomVec += linear; } + // + void setZero() { m_topVec.setZero(); m_bottomVec.setZero(); } + // + btScalar dot(const btSpatialForceVector &b) const + { + return m_bottomVec.dot(b.m_topVec) + m_topVec.dot(b.m_bottomVec); + } + // + template + void cross(const SpatialVectorType &b, SpatialVectorType &out) const + { + out.m_topVec = m_topVec.cross(b.m_topVec); + out.m_bottomVec = m_bottomVec.cross(b.m_topVec) + m_topVec.cross(b.m_bottomVec); + } + template + SpatialVectorType cross(const SpatialVectorType &b) const + { + SpatialVectorType out; + out.m_topVec = m_topVec.cross(b.m_topVec); + out.m_bottomVec = m_bottomVec.cross(b.m_topVec) + m_topVec.cross(b.m_bottomVec); + return out; + } + // + btSpatialMotionVector & operator += (const btSpatialMotionVector &vec) { m_topVec += vec.m_topVec; m_bottomVec += vec.m_bottomVec; return *this; } + btSpatialMotionVector & operator -= (const btSpatialMotionVector &vec) { m_topVec -= vec.m_topVec; m_bottomVec -= vec.m_bottomVec; return *this; } + btSpatialMotionVector & operator *= (const btScalar &s) { m_topVec *= s; m_bottomVec *= s; return *this; } + btSpatialMotionVector operator - (const btSpatialMotionVector &vec) const { return btSpatialMotionVector(m_topVec - vec.m_topVec, m_bottomVec - vec.m_bottomVec); } + btSpatialMotionVector operator + (const btSpatialMotionVector &vec) const { return btSpatialMotionVector(m_topVec + vec.m_topVec, m_bottomVec + vec.m_bottomVec); } + btSpatialMotionVector operator - () const { return btSpatialMotionVector(-m_topVec, -m_bottomVec); } + btSpatialMotionVector operator * (const btScalar &s) const { return btSpatialMotionVector(s * m_topVec, s * m_bottomVec); } +}; + +struct btSymmetricSpatialDyad +{ + btMatrix3x3 m_topLeftMat, m_topRightMat, m_bottomLeftMat; + // + btSymmetricSpatialDyad() { setIdentity(); } + btSymmetricSpatialDyad(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) { setMatrix(topLeftMat, topRightMat, bottomLeftMat); } + // + void setMatrix(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) + { + m_topLeftMat = topLeftMat; + m_topRightMat = topRightMat; + m_bottomLeftMat = bottomLeftMat; + } + // + void addMatrix(const btMatrix3x3 &topLeftMat, const btMatrix3x3 &topRightMat, const btMatrix3x3 &bottomLeftMat) + { + m_topLeftMat += topLeftMat; + m_topRightMat += topRightMat; + m_bottomLeftMat += bottomLeftMat; + } + // + void setIdentity() { m_topLeftMat.setIdentity(); m_topRightMat.setIdentity(); m_bottomLeftMat.setIdentity(); } + // + btSymmetricSpatialDyad & operator -= (const btSymmetricSpatialDyad &mat) + { + m_topLeftMat -= mat.m_topLeftMat; + m_topRightMat -= mat.m_topRightMat; + m_bottomLeftMat -= mat.m_bottomLeftMat; + return *this; + } + // + btSpatialForceVector operator * (const btSpatialMotionVector &vec) + { + return btSpatialForceVector(m_bottomLeftMat * vec.m_topVec + m_topLeftMat.transpose() * vec.m_bottomVec, m_topLeftMat * vec.m_topVec + m_topRightMat * vec.m_bottomVec); + } +}; + +struct btSpatialTransformationMatrix +{ + btMatrix3x3 m_rotMat; //btMatrix3x3 m_trnCrossMat; + btVector3 m_trnVec; + // + enum eOutputOperation + { + None = 0, + Add = 1, + Subtract = 2 + }; + // + template + void transform( const SpatialVectorType &inVec, + SpatialVectorType &outVec, + eOutputOperation outOp = None) + { + if(outOp == None) + { + outVec.m_topVec = m_rotMat * inVec.m_topVec; + outVec.m_bottomVec = -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; + } + else if(outOp == Add) + { + outVec.m_topVec += m_rotMat * inVec.m_topVec; + outVec.m_bottomVec += -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; + } + else if(outOp == Subtract) + { + outVec.m_topVec -= m_rotMat * inVec.m_topVec; + outVec.m_bottomVec -= -m_trnVec.cross(outVec.m_topVec) + m_rotMat * inVec.m_bottomVec; + } + + } + + template + void transformRotationOnly( const SpatialVectorType &inVec, + SpatialVectorType &outVec, + eOutputOperation outOp = None) + { + if(outOp == None) + { + outVec.m_topVec = m_rotMat * inVec.m_topVec; + outVec.m_bottomVec = m_rotMat * inVec.m_bottomVec; + } + else if(outOp == Add) + { + outVec.m_topVec += m_rotMat * inVec.m_topVec; + outVec.m_bottomVec += m_rotMat * inVec.m_bottomVec; + } + else if(outOp == Subtract) + { + outVec.m_topVec -= m_rotMat * inVec.m_topVec; + outVec.m_bottomVec -= m_rotMat * inVec.m_bottomVec; + } + + } + + template + void transformInverse( const SpatialVectorType &inVec, + SpatialVectorType &outVec, + eOutputOperation outOp = None) + { + if(outOp == None) + { + outVec.m_topVec = m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec = m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); + } + else if(outOp == Add) + { + outVec.m_topVec += m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec += m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); + } + else if(outOp == Subtract) + { + outVec.m_topVec -= m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec -= m_rotMat.transpose() * (inVec.m_bottomVec + m_trnVec.cross(inVec.m_topVec)); + } + } + + template + void transformInverseRotationOnly( const SpatialVectorType &inVec, + SpatialVectorType &outVec, + eOutputOperation outOp = None) + { + if(outOp == None) + { + outVec.m_topVec = m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec = m_rotMat.transpose() * inVec.m_bottomVec; + } + else if(outOp == Add) + { + outVec.m_topVec += m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec += m_rotMat.transpose() * inVec.m_bottomVec; + } + else if(outOp == Subtract) + { + outVec.m_topVec -= m_rotMat.transpose() * inVec.m_topVec; + outVec.m_bottomVec -= m_rotMat.transpose() * inVec.m_bottomVec; + } + + } + + void transformInverse( const btSymmetricSpatialDyad &inMat, + btSymmetricSpatialDyad &outMat, + eOutputOperation outOp = None) + { + const btMatrix3x3 r_cross( 0, -m_trnVec[2], m_trnVec[1], + m_trnVec[2], 0, -m_trnVec[0], + -m_trnVec[1], m_trnVec[0], 0); + + + if(outOp == None) + { + outMat.m_topLeftMat = m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; + outMat.m_topRightMat = m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; + outMat.m_bottomLeftMat = m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; + } + else if(outOp == Add) + { + outMat.m_topLeftMat += m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; + outMat.m_topRightMat += m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; + outMat.m_bottomLeftMat += m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; + } + else if(outOp == Subtract) + { + outMat.m_topLeftMat -= m_rotMat.transpose() * ( inMat.m_topLeftMat - inMat.m_topRightMat * r_cross ) * m_rotMat; + outMat.m_topRightMat -= m_rotMat.transpose() * inMat.m_topRightMat * m_rotMat; + outMat.m_bottomLeftMat -= m_rotMat.transpose() * (r_cross * (inMat.m_topLeftMat - inMat.m_topRightMat * r_cross) + inMat.m_bottomLeftMat - inMat.m_topLeftMat.transpose() * r_cross) * m_rotMat; + } + } + + template + SpatialVectorType operator * (const SpatialVectorType &vec) + { + SpatialVectorType out; + transform(vec, out); + return out; + } +}; + +template +void symmetricSpatialOuterProduct(const SpatialVectorType &a, const SpatialVectorType &b, btSymmetricSpatialDyad &out) +{ + //output op maybe? + + out.m_topLeftMat = outerProduct(a.m_topVec, b.m_bottomVec); + out.m_topRightMat = outerProduct(a.m_topVec, b.m_topVec); + out.m_topLeftMat = outerProduct(a.m_bottomVec, b.m_bottomVec); + //maybe simple a*spatTranspose(a) would be nicer? +} + +template +btSymmetricSpatialDyad symmetricSpatialOuterProduct(const SpatialVectorType &a, const SpatialVectorType &b) +{ + btSymmetricSpatialDyad out; + + out.m_topLeftMat = outerProduct(a.m_topVec, b.m_bottomVec); + out.m_topRightMat = outerProduct(a.m_topVec, b.m_topVec); + out.m_bottomLeftMat = outerProduct(a.m_bottomVec, b.m_bottomVec); + + return out; + //maybe simple a*spatTranspose(a) would be nicer? +} + +#endif //BT_SPATIAL_ALGEBRA_H + diff --git a/btgui/GwenOpenGLTest/Button.cpp b/test/GwenOpenGLTest/Button.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Button.cpp rename to test/GwenOpenGLTest/Button.cpp diff --git a/btgui/GwenOpenGLTest/Checkbox.cpp b/test/GwenOpenGLTest/Checkbox.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Checkbox.cpp rename to test/GwenOpenGLTest/Checkbox.cpp diff --git a/btgui/GwenOpenGLTest/ComboBox.cpp b/test/GwenOpenGLTest/ComboBox.cpp similarity index 100% rename from btgui/GwenOpenGLTest/ComboBox.cpp rename to test/GwenOpenGLTest/ComboBox.cpp diff --git a/btgui/GwenOpenGLTest/CrossSplitter.cpp b/test/GwenOpenGLTest/CrossSplitter.cpp similarity index 100% rename from btgui/GwenOpenGLTest/CrossSplitter.cpp rename to test/GwenOpenGLTest/CrossSplitter.cpp diff --git a/btgui/GwenOpenGLTest/GroupBox.cpp b/test/GwenOpenGLTest/GroupBox.cpp similarity index 100% rename from btgui/GwenOpenGLTest/GroupBox.cpp rename to test/GwenOpenGLTest/GroupBox.cpp diff --git a/btgui/GwenOpenGLTest/ImagePanel.cpp b/test/GwenOpenGLTest/ImagePanel.cpp similarity index 100% rename from btgui/GwenOpenGLTest/ImagePanel.cpp rename to test/GwenOpenGLTest/ImagePanel.cpp diff --git a/btgui/GwenOpenGLTest/Label.cpp b/test/GwenOpenGLTest/Label.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Label.cpp rename to test/GwenOpenGLTest/Label.cpp diff --git a/btgui/GwenOpenGLTest/ListBox.cpp b/test/GwenOpenGLTest/ListBox.cpp similarity index 100% rename from btgui/GwenOpenGLTest/ListBox.cpp rename to test/GwenOpenGLTest/ListBox.cpp diff --git a/btgui/GwenOpenGLTest/MenuStrip.cpp b/test/GwenOpenGLTest/MenuStrip.cpp similarity index 100% rename from btgui/GwenOpenGLTest/MenuStrip.cpp rename to test/GwenOpenGLTest/MenuStrip.cpp diff --git a/btgui/GwenOpenGLTest/Numeric.cpp b/test/GwenOpenGLTest/Numeric.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Numeric.cpp rename to test/GwenOpenGLTest/Numeric.cpp diff --git a/btgui/GwenOpenGLTest/OpenGLSample.cpp b/test/GwenOpenGLTest/OpenGLSample.cpp similarity index 98% rename from btgui/GwenOpenGLTest/OpenGLSample.cpp rename to test/GwenOpenGLTest/OpenGLSample.cpp index 53f16e24f..3f1452f34 100644 --- a/btgui/GwenOpenGLTest/OpenGLSample.cpp +++ b/test/GwenOpenGLTest/OpenGLSample.cpp @@ -5,14 +5,14 @@ #include "UnitTest.h" -extern char OpenSansData[]; +extern unsigned char OpenSansData[]; #include "Gwen/Renderers/OpenGL_DebugFont.h" #ifdef __APPLE__ #include "OpenGLWindow/MacOpenGLWindow.h" #else -#include "GL/glew.h" +//#include "CustomGL/glew.h" #ifdef _WIN32 #include "OpenGLWindow/Win32OpenGLWindow.h" #else @@ -203,8 +203,8 @@ sth_stash* initFont(GLPrimitiveRenderer* primRenderer) return 0; } #else - char* data2 = OpenSansData; - unsigned char* data = (unsigned char*) data2; + unsigned char* data = OpenSansData; + if (!(droidRegular = sth_add_font_from_memory(stash, data))) { printf("error!\n"); diff --git a/btgui/GwenOpenGLTest/PanelListPanel.cpp b/test/GwenOpenGLTest/PanelListPanel.cpp similarity index 100% rename from btgui/GwenOpenGLTest/PanelListPanel.cpp rename to test/GwenOpenGLTest/PanelListPanel.cpp diff --git a/btgui/GwenOpenGLTest/ProgressBar.cpp b/test/GwenOpenGLTest/ProgressBar.cpp similarity index 100% rename from btgui/GwenOpenGLTest/ProgressBar.cpp rename to test/GwenOpenGLTest/ProgressBar.cpp diff --git a/btgui/GwenOpenGLTest/Properties.cpp b/test/GwenOpenGLTest/Properties.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Properties.cpp rename to test/GwenOpenGLTest/Properties.cpp diff --git a/btgui/GwenOpenGLTest/RadioButton.cpp b/test/GwenOpenGLTest/RadioButton.cpp similarity index 100% rename from btgui/GwenOpenGLTest/RadioButton.cpp rename to test/GwenOpenGLTest/RadioButton.cpp diff --git a/btgui/GwenOpenGLTest/ScrollControl.cpp b/test/GwenOpenGLTest/ScrollControl.cpp similarity index 100% rename from btgui/GwenOpenGLTest/ScrollControl.cpp rename to test/GwenOpenGLTest/ScrollControl.cpp diff --git a/btgui/GwenOpenGLTest/Slider.cpp b/test/GwenOpenGLTest/Slider.cpp similarity index 100% rename from btgui/GwenOpenGLTest/Slider.cpp rename to test/GwenOpenGLTest/Slider.cpp diff --git a/btgui/GwenOpenGLTest/StatusBar.cpp b/test/GwenOpenGLTest/StatusBar.cpp similarity index 100% rename from btgui/GwenOpenGLTest/StatusBar.cpp rename to test/GwenOpenGLTest/StatusBar.cpp diff --git a/btgui/GwenOpenGLTest/TabControl.cpp b/test/GwenOpenGLTest/TabControl.cpp similarity index 100% rename from btgui/GwenOpenGLTest/TabControl.cpp rename to test/GwenOpenGLTest/TabControl.cpp diff --git a/btgui/GwenOpenGLTest/TextBox.cpp b/test/GwenOpenGLTest/TextBox.cpp similarity index 100% rename from btgui/GwenOpenGLTest/TextBox.cpp rename to test/GwenOpenGLTest/TextBox.cpp diff --git a/btgui/GwenOpenGLTest/TreeControl.cpp b/test/GwenOpenGLTest/TreeControl.cpp similarity index 100% rename from btgui/GwenOpenGLTest/TreeControl.cpp rename to test/GwenOpenGLTest/TreeControl.cpp diff --git a/btgui/GwenOpenGLTest/UnitTest.cpp b/test/GwenOpenGLTest/UnitTest.cpp similarity index 100% rename from btgui/GwenOpenGLTest/UnitTest.cpp rename to test/GwenOpenGLTest/UnitTest.cpp diff --git a/btgui/GwenOpenGLTest/UnitTest.h b/test/GwenOpenGLTest/UnitTest.h similarity index 100% rename from btgui/GwenOpenGLTest/UnitTest.h rename to test/GwenOpenGLTest/UnitTest.h diff --git a/test/GwenOpenGLTest/premake4.lua b/test/GwenOpenGLTest/premake4.lua new file mode 100644 index 000000000..4980f002b --- /dev/null +++ b/test/GwenOpenGLTest/premake4.lua @@ -0,0 +1,69 @@ + + project "Test_Gwen_OpenGL" + + kind "ConsoleApp" + flags {"Unicode"} + + defines { "GWEN_COMPILE_STATIC" , "_HAS_EXCEPTIONS=0", "_STATIC_CPPLIB" } + defines { "DONT_USE_GLUT"} + + targetdir "../../bin" + + includedirs + { + + "../../examples/ThirdPartyLibs", + "../../examples", + ".", + } + + initOpenGL() + initGlew() + + links { + "gwen", + } + + + files { + "../../examples/OpenGLWindow/OpenSans.cpp", + "../../examples/OpenGLWindow/TwFonts.cpp", + "../../examples/OpenGLWindow/TwFonts.h", + "../../examples/OpenGLWindow/LoadShader.cpp", + "../../examples/OpenGLWindow/LoadShader.h", + "../../examples/OpenGLWindow/GLPrimitiveRenderer.cpp", + "../../examples/OpenGLWindow/GLPrimitiveRenderer.h", + "../../examples/OpenGLWindow/GwenOpenGL3CoreRenderer.h", + "../../examples/OpenGLWindow/fontstash.cpp", + "../../examples/OpenGLWindow/fontstash.h", + "../../examples/OpenGLWindow/opengl_fontstashcallbacks.cpp", + "../../examples/OpenGLWindow/opengl_fontstashcallbacks.h", + "../../examples/Utils/b3Clock.cpp", + "../../examples/Utils/b3Clock.h", + "**.cpp", + "**.h", + } + if os.is("Windows") then + files { + "../../examples/OpenGLWindow/Win32OpenGLWindow.cpp", + "../../examples/OpenGLWindow/Win32OpenGLWindow.h", + "../../examples/OpenGLWindow/Win32Window.cpp", + "../../examples/OpenGLWindow/Win32Window.h", + } + end + if os.is("Linux") then + initX11() + files{ + "../../examples/OpenGLWindow/X11OpenGLWindow.h", + "../../examples/OpenGLWindow/X11OpenGLWindow.cpp" + } + links{"pthread"} + end + if os.is("MacOSX") then + links{"Cocoa.framework"} +print("hello!") + files{ + "../../examples/OpenGLWindow/MacOpenGLWindow.mm", + "../../examples/OpenGLWindow/MacOpenGLWindow.h", + } + end diff --git a/test/OpenCL/AllBullet3Kernels/testExecuteBullet3NarrowphaseKernels.cpp b/test/OpenCL/AllBullet3Kernels/testExecuteBullet3NarrowphaseKernels.cpp index d45b7d294..06f32b43a 100644 --- a/test/OpenCL/AllBullet3Kernels/testExecuteBullet3NarrowphaseKernels.cpp +++ b/test/OpenCL/AllBullet3Kernels/testExecuteBullet3NarrowphaseKernels.cpp @@ -12,7 +12,7 @@ #include "Bullet3OpenCL/NarrowphaseCollision/kernels/primitiveContacts.h" #ifdef B3_USE_ZLIB -#include "../btgui/minizip/unzip.h" +#include "minizip/unzip.h" #endif #include "Bullet3OpenCL/ParallelPrimitives/b3LauncherCL.h" diff --git a/test/TestBullet3OpenCL/premake4.lua b/test/TestBullet3OpenCL/premake4.lua index f2a6e0042..1a51d3499 100644 --- a/test/TestBullet3OpenCL/premake4.lua +++ b/test/TestBullet3OpenCL/premake4.lua @@ -20,6 +20,7 @@ function createProject(vendor) { ".","../gtest-1.7.0/include", "../../src", + "../../examples/ThirdPartyLibs", --for unzip } links {"gtest", @@ -34,8 +35,8 @@ function createProject(vendor) --you can comment out the following few lines, then you need to unzip the untest_data.zip manually defines {"B3_USE_ZLIB"} files { - "../../btgui/minizip/*.c", - "../../btgui/zlib/*.c", + "../../examples/ThirdPartyLibs/minizip/*.c", + "../../examples/ThirdPartyLibs/zlib/*.c", } files { diff --git a/test/collision/premake4.lua b/test/collision/premake4.lua index 0fdc92f65..f0a56f600 100644 --- a/test/collision/premake4.lua +++ b/test/collision/premake4.lua @@ -15,6 +15,12 @@ } + + if os.is("Windows") then + --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012 + defines {"_VARIADIC_MAX=10"} + end + links {"LinearMath", "gtest"} files { diff --git a/test/enet/client/main.cpp b/test/enet/client/main.cpp deleted file mode 100644 index a351c6d2d..000000000 --- a/test/enet/client/main.cpp +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - -#include -#include - - -int main(int argc, char* argv[]) -{ - printf("starting client (and server)\n"); - - if (enet_initialize () != 0) - { - fprintf (stderr, "An error occurred while initializing ENet.\n"); - return EXIT_FAILURE; - } - atexit (enet_deinitialize); - - ENetAddress selfaddress; - selfaddress.host = ENET_HOST_ANY; - /* Bind the server to port 1111. */ - selfaddress.port = 1111; - - ENetHost * client=0; - while (!client) - { - client = enet_host_create (&selfaddress/* create a client host */, - 32 /* only 32 connections */, - 2 /* allow up 2 channels to be used, 0 and 1 */, - 0/*57600 / 8 56K modem with 56 Kbps downstream bandwidth */, - 0 /* 14400 / 8 56K modem with 14 Kbps upstream bandwidth */); - if (client == NULL) - { - selfaddress.port++; - } - } - if (client == NULL) - { - fprintf (stderr, - "An error occurred while trying to create an ENet client host.\n"); - exit (EXIT_FAILURE); - } - - - - ENetAddress dedicatedserveraddress; - ENetEvent event; - ENetPeer* dedicatedpeer=0; - ENetPeer* natpeer=0; - - /* Connect to some.server.net:1234. */ - enet_address_set_host (& dedicatedserveraddress, "bulletphysics.org");//localhost"); - dedicatedserveraddress.port = 1234; - /* Initiate the connection, allocating the two channels 0 and 1. */ - dedicatedpeer = enet_host_connect (client, & dedicatedserveraddress, 2, 0); - if (dedicatedpeer == NULL) - { - fprintf (stderr, "No available peers for initiating an ENet connection.\n"); - exit (EXIT_FAILURE); - } - /* Wait up to 5 seconds for the connection attempt to succeed. */ - if (enet_host_service (client, & event, 5000) > 0 && - event.type == ENET_EVENT_TYPE_CONNECT) - { - char servername[1024]; - enet_address_get_host(&dedicatedserveraddress,servername, 1024); - char serverinfo[1024]; - - sprintf(serverinfo,"Connection to %s:%d succeeded", servername,dedicatedserveraddress.port); - puts (serverinfo); - - /////.... - - /* Wait up to 1000 milliseconds for an event. */ - while (enet_host_service (client, & event, 1000000000) > 0) - { - if (natpeer) - { - /* Create a reliable packet of size 7 containing "packet\0" */ - ENetPacket * packet = enet_packet_create ("packet", - strlen ("packet") + 1, - ENET_PACKET_FLAG_RELIABLE); - /* Extend the packet so and append the string "foo", so it now */ - /* contains "packetfoo\0" */ - enet_packet_resize (packet, strlen ("packetfoo") + 1); - strcpy ((char*)& packet -> data [strlen ("packet")], "foo"); - /* Send the packet to the peer over channel id 0. */ - /* One could also broadcast the packet by */ - /* enet_host_broadcast (host, 0, packet); */ - enet_peer_send (natpeer, 0, packet); - } - switch (event.type) - { - case ENET_EVENT_TYPE_CONNECT: - printf ("A new client connected from %x:%u.\n", - event.peer -> address.host, - event.peer -> address.port); - /* Store any relevant client information here. */ - event.peer -> data = "Client information"; - break; - case ENET_EVENT_TYPE_RECEIVE: - printf ("A packet of length %u containing %s was received from %s on channel %u.\n", - event.packet -> dataLength, - event.packet -> data, - event.peer -> data, - event.channelID); - /* Clean up the packet now that we're done using it. */ - - if (event.packet->dataLength==sizeof(ENetAddress)) - { - ENetAddress* address = (ENetAddress*)event.packet->data; - printf("received other client's address from server, connecting...\n"); - natpeer = enet_host_connect (client, address, 2, 0); - if (natpeer== NULL) - { - fprintf (stderr, "No available peers for initiating an ENet connection.\n"); - exit (EXIT_FAILURE); - } - /* Wait up to 5 seconds for the connection attempt to succeed. */ - if (enet_host_service (client, & event, 5000) > 0 && - event.type == ENET_EVENT_TYPE_CONNECT) - { - puts ("Connection to natpeer succeeded."); - } else - { - enet_peer_reset (natpeer); - puts ("Connection to natpeer failed."); - natpeer=0; - exit(0); - } - - } - - enet_packet_destroy (event.packet); - break; - - case ENET_EVENT_TYPE_DISCONNECT: - printf ("%s disconected.\n", event.peer -> data); - /* Reset the peer's client information. */ - event.peer -> data = NULL; - } - } - /* One could just use enet_host_service() instead. */ - enet_host_flush (client);//host); - } - else - { - /* Either the 5 seconds are up or a disconnect event was */ - /* received. Reset the peer in the event the 5 seconds */ - /* had run out without any significant event. */ - enet_peer_reset (dedicatedpeer); - puts ("Connection to some.server.net:1234 failed."); - } - - - - - - - enet_host_destroy(client); - - return 0; -} - - - - - - - - - - - - diff --git a/test/enet/client/premake4.lua b/test/enet/client/premake4.lua deleted file mode 100644 index b9eea8600..000000000 --- a/test/enet/client/premake4.lua +++ /dev/null @@ -1,25 +0,0 @@ - - -project ("Test_enet_client") - - language "C++" - - kind "ConsoleApp" - targetdir "../../../bin" - includedirs {"../../../btgui/enet/include"} - - if os.is("Windows") then - defines { "WIN32" } - links {"Ws2_32","Winmm"} - end - if os.is("Linux") then - end - if os.is("MacOSX") then - end - - links {"enet"} - - files { - "main.cpp", - } - diff --git a/test/enet/server/main.cpp b/test/enet/server/main.cpp deleted file mode 100644 index 31ea9cc46..000000000 --- a/test/enet/server/main.cpp +++ /dev/null @@ -1,111 +0,0 @@ - -#include -#include - - -ENetPeer* mypeers[2]={0,0}; -ENetAddress clientAddresses[2]; -int numpeers=0; - -int main(int argc, char* argv[]) -{ - fprintf(stderr,"starting enet dedicated server\n"); - - if (enet_initialize () != 0) - { - fprintf (stderr, "An error occurred while initializing ENet.\n"); - return EXIT_FAILURE; - } - atexit (enet_deinitialize); - - ENetAddress address; - ENetHost * server; - /* Bind the server to the default localhost. */ - /* A specific host address can be specified by */ - /* enet_address_set_host (& address, "x.x.x.x"); */ - address.host = ENET_HOST_ANY; - /* Bind the server to port 1234. */ - address.port = 1234; - server = enet_host_create (& address /* the address to bind the server host to */, - 32 /* allow up to 32 clients and/or outgoing connections */, - 2 /* allow up to 2 channels to be used, 0 and 1 */, - 0 /* assume any amount of incoming bandwidth */, - 0 /* assume any amount of outgoing bandwidth */); - if (server == NULL) - { - fprintf (stderr, - "An error occurred while trying to create an ENet server host.\n"); - exit (EXIT_FAILURE); - } - - - ENetEvent event; - - /* Wait up to 10000000 milliseconds for an event. */ - while (enet_host_service (server, & event, 10000000) > 0) - { - switch (event.type) - { - case ENET_EVENT_TYPE_CONNECT: - char clientname[1024]; - enet_address_get_host(&event.peer -> address,clientname, 1024); - printf ("A new client connected from %s:%u.\n", - clientname, - event.peer -> address.port); - /* Store any relevant client information here. */ - event.peer -> data = "Client information"; - if (numpeers<2) - { - clientAddresses[numpeers] = event.peer->address; - mypeers[numpeers] = event.peer; - } - numpeers++; - if (numpeers==2) - { - printf("exchanging addresses for NAT punchthrough\n"); - //exchange the address info - for (int i=0;i<2;i++) - { - int sz = sizeof(ENetAddress); - /* Create a reliable packet of size 7 containing "packet\0" */ - ENetPacket * packet = enet_packet_create (&clientAddresses[i], - sz, - ENET_PACKET_FLAG_RELIABLE); - enet_peer_send (mypeers[1-i], 0, packet); - - - } - //prepare for the next pair of clients to connect/NAT punchthrough - numpeers=0; - } - - break; - case ENET_EVENT_TYPE_RECEIVE: - printf ("A packet of length %u containing %s was received from %s on channel %u.\n", - event.packet -> dataLength, - event.packet -> data, - event.peer -> data, - event.channelID); - /* Clean up the packet now that we're done using it. */ - enet_packet_destroy (event.packet); - - break; - - case ENET_EVENT_TYPE_DISCONNECT: - printf ("%s disconected.\n", event.peer -> data); - /* Reset the peer's client information. */ - event.peer -> data = NULL; - } - } - - - - - - - enet_host_destroy(server); - printf("server exited, press key\n"); - getchar(); - - return 0; -} \ No newline at end of file diff --git a/test/enet/server/premake4.lua b/test/enet/server/premake4.lua deleted file mode 100644 index e5013324c..000000000 --- a/test/enet/server/premake4.lua +++ /dev/null @@ -1,26 +0,0 @@ - - -project ("Test_enet_server") - - language "C++" - - kind "ConsoleApp" - targetdir "../../../bin" - includedirs {"../../../btgui/enet/include"} - - if os.is("Windows") then - defines { "WIN32" } - - links {"Ws2_32","Winmm"} - end - if os.is("Linux") then - end - if os.is("MacOSX") then - end - - links {"enet"} - - files { - "main.cpp", - } - diff --git a/test/gtest-1.7.0/premake4.lua b/test/gtest-1.7.0/premake4.lua index 5fdf84042..676f06e66 100644 --- a/test/gtest-1.7.0/premake4.lua +++ b/test/gtest-1.7.0/premake4.lua @@ -5,9 +5,11 @@ files{"src/gtest-all.cc"} --defines {"GTEST_HAS_PTHREAD=1"} - - --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012 - defines {"_VARIADIC_MAX=10"} + + if os.is("Windows") then + --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012 + defines {"_VARIADIC_MAX=10"} + end --targetdir "../../lib" diff --git a/test/hello_gtest/premake4.lua b/test/hello_gtest/premake4.lua index 983b9ad08..fb89c2035 100644 --- a/test/hello_gtest/premake4.lua +++ b/test/hello_gtest/premake4.lua @@ -12,6 +12,11 @@ ".","../gtest-1.7.0/include" } + if os.is("Windows") then + --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012 + defines {"_VARIADIC_MAX=10"} + end + -- linkLib "gtest" links "gtest" diff --git a/test/lua/main.cpp b/test/lua/main.cpp deleted file mode 100644 index 409f05bce..000000000 --- a/test/lua/main.cpp +++ /dev/null @@ -1,179 +0,0 @@ - -// Some quick experiments to use Lua and C (C++) together -// so Lua can be used to setup the Bullet demos -// See http://csl.name/lua/ -// and http://stackoverflow.com/questions/7298642/passing-c-struct-pointer-to-lua-script - - -#include -#include - -extern "C" { - #include "lua.h" - #include "lualib.h" -#include "lauxlib.h" -} - - - -struct MyTest -{ - int m_bla; - MyTest():m_bla(10) - { - - } - - void methodPrint() - { - printf("t->m_bla=%d\n",m_bla); - } - -}; - -std::vector gValidPointers; - -bool isValidPointer(MyTest* ptr) -{ - bool result = false; - - for (int i=0;imethodPrint(); - } else - { - std::cerr << "error my_printTest called with invalid argument "; - } - } - return 0; -} - -int my_createFunction(lua_State *L) -{ - int argc = lua_gettop(L); - - std::cerr << "-- my_function() called with " << argc - << " arguments:" << std::endl; - - for ( int n=1; n<=argc; ++n ) { - std::cerr << "-- argument " << n << ": " - << lua_tostring(L, n) << std::endl; - } - - - - MyTest* newTest = new MyTest(); - gValidPointers.push_back(newTest); - lua_pushlightuserdata (L, newTest); - - - - return 1; // number of return values -} - -int my_deleteFunction(lua_State *L) -{ - int argc = lua_gettop(L); - if (argc==1) - { - MyTest* tst = (MyTest*) lua_touserdata(L,1); - if (tst) - { - bool result = removeValidPointer(tst); - if (result) - { - delete tst; - } else - { - std::cerr << "error my_deleteFunction called with invalid pointer argument "; - } - } else - { - std::cerr << "error my_deleteFunction called with non-pointer argument "; - } - } - - return 0; // number of return values -} - - - -void report_errors(lua_State *L, int status) -{ - if ( status!=0 ) { - std::cerr << "-- " << lua_tostring(L, -1) << std::endl; - lua_pop(L, 1); // remove error message - } -} - -int main(int argc, char** argv) -{ - for ( int n=1; n